@univerjs-pro/sheets-shape-ui 1.0.0-alpha.4 → 1.0.0-alpha.6
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/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2daf50=_0x4b78;(function(_0x518c15,_0x499a86){const _0x17b719=_0x4b78,_0xa33eb8=_0x518c15();while(!![]){try{const _0x53396d=-parseInt(_0x17b719(0x46d))/0x1*(parseInt(_0x17b719(0x2b2))/0x2)+-parseInt(_0x17b719(0x3d7))/0x3*(-parseInt(_0x17b719(0x1ae))/0x4)+parseInt(_0x17b719(0x3d3))/0x5*(-parseInt(_0x17b719(0x418))/0x6)+parseInt(_0x17b719(0x41f))/0x7+parseInt(_0x17b719(0x3ab))/0x8*(parseInt(_0x17b719(0x322))/0x9)+parseInt(_0x17b719(0x291))/0xa*(parseInt(_0x17b719(0x289))/0xb)+parseInt(_0x17b719(0x1a3))/0xc*(-parseInt(_0x17b719(0x1de))/0xd);if(_0x53396d===_0x499a86)break;else _0xa33eb8['push'](_0xa33eb8['shift']());}catch(_0x56d57b){_0xa33eb8['push'](_0xa33eb8['shift']());}}}(_0xa756,0x3c677),Object[_0x2daf50(0x34c)](exports,Symbol['toStringTag'],{'value':_0x2daf50(0x231)}));let e=require('@univerjs/ui'),t=require('@univerjs-pro/engine-shape'),n=require('@univerjs-pro/shape-editor-ui'),r=require('@univerjs-pro/sheets-shape'),i=require('@univerjs/core'),a=require('@univerjs/sheets'),o=require('@univerjs/drawing'),s=require('@univerjs/engine-render'),c=require('@univerjs/sheets-ui'),l=require('rxjs'),u=require('@univerjs/drawing-ui'),d=require('react/jsx-runtime'),f=require('@univerjs-pro/license'),p=require('@univerjs/sheets-drawing-ui'),m=require('@univerjs/icons'),h=require('@univerjs/sheets-drawing'),g=require('react'),_=require('@univerjs/docs'),v=require('@univerjs/docs-ui');function y(_0x48e22a,_0x4d6f33){const _0x27823f=_0x2daf50;let _0xf2f389={};for(let _0x2e7722 of Object[_0x27823f(0x296)](_0x4d6f33)){let _0x3e99e0=_0x4d6f33[_0x2e7722],_0x4f7765=_0x48e22a[_0x2e7722];if(_0x3e99e0!==void 0x0){if(_0x4f7765===void 0x0){_0xf2f389[_0x2e7722]=void 0x0;continue;}typeof _0x3e99e0==_0x27823f(0x25c)&&_0x3e99e0&&!Array[_0x27823f(0x390)](_0x3e99e0)&&typeof _0x4f7765==_0x27823f(0x25c)&&_0x4f7765&&!Array[_0x27823f(0x390)](_0x4f7765)?_0xf2f389[_0x2e7722]=y(_0x4f7765,_0x3e99e0):_0xf2f389[_0x2e7722]=_0x4f7765;}}return _0xf2f389;}const b={'type':i[_0x2daf50(0x429)][_0x2daf50(0x2ba)],'id':_0x2daf50(0x480),'handler':(_0x22f33e,_0x22e278)=>{const _0x31dde6=_0x2daf50;let _0x480fdb=_0x22f33e[_0x31dde6(0x423)](r['SheetsShapeService']),{unitId:_0x47bc06,subUnitId:_0x145b7a,shapeType:_0x5260b4,shapeId:_0x325729,shapeData:_0x30a14d,oldShapeJSON:_0x380e61}=_0x22e278;if(!_0x480fdb['getShapeModel'](_0x47bc06,_0x145b7a,_0x325729))return!0x1;let _0x5d2f73=_0x22f33e[_0x31dde6(0x423)](i['ICommandService']),_0x5f03dc=_0x22f33e[_0x31dde6(0x423)](i['IUndoRedoService']),{oldShapeType:_0x46f26c,oldShapeData:_0x21e547={}}=_0x380e61,_0x4643e0=y(_0x21e547,_0x30a14d||{}),_0x405872={'id':r[_0x31dde6(0x3dc)]['id'],'params':{'unitId':_0x47bc06,'subUnitId':_0x145b7a,'shapeId':_0x325729,'shapeType':_0x5260b4,'shapeData':_0x30a14d}},_0x181bcc={'id':r['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x47bc06,'subUnitId':_0x145b7a,'shapeId':_0x325729,'shapeType':_0x46f26c,'shapeData':_0x4643e0}};return _0x5d2f73['syncExecuteCommand'](_0x405872['id'],_0x405872[_0x31dde6(0x3e9)])?(_0x5f03dc['pushUndoRedo']({'unitID':_0x47bc06,'undoMutations':[_0x181bcc],'redoMutations':[_0x405872]}),!0x0):!0x1;}};function x(_0x203829,_0x4cfd0d,_0x59a7cc,_0x1b8897,_0x3438c7,_0x504208){const _0x395e82=_0x2daf50;let _0x3123cd={'unitId':_0x4cfd0d,'subUnitId':_0x59a7cc,'shapeId':_0x1b8897,'shapeData':_0x504208,'oldShapeJSON':_0x3438c7};return _0x203829[_0x395e82(0x374)](b['id'],_0x3123cd);}function S(_0x110954,_0x106cc3,_0x593083,_0x2e66f6,_0x59f694,_0x193f5d){const _0x2f66ea=_0x2daf50;let _0x293712={'unitId':_0x106cc3,'subUnitId':_0x593083,'shapeId':_0x2e66f6,'shapeData':_0x193f5d,'oldShapeJSON':_0x59f694};return _0x110954[_0x2f66ea(0x374)](b['id'],_0x293712);}function C(_0x409264){'@babel/helpers - typeof';const _0x3683d2=_0x2daf50;return C=typeof Symbol==_0x3683d2(0x33e)&&typeof Symbol['iterator']==_0x3683d2(0x1bc)?function(_0x5d917d){return typeof _0x5d917d;}:function(_0x54b040){const _0xfda1ac=_0x3683d2;return _0x54b040&&typeof Symbol=='function'&&_0x54b040[_0xfda1ac(0x312)]===Symbol&&_0x54b040!==Symbol[_0xfda1ac(0x21a)]?_0xfda1ac(0x1bc):typeof _0x54b040;},C(_0x409264);}function w(_0x30f990,_0x38277e){const _0x3a55b7=_0x2daf50;if(C(_0x30f990)!=_0x3a55b7(0x25c)||!_0x30f990)return _0x30f990;var _0x53ed24=_0x30f990[Symbol[_0x3a55b7(0x461)]];if(_0x53ed24!==void 0x0){var _0x3c4518=_0x53ed24[_0x3a55b7(0x1e2)](_0x30f990,_0x38277e||_0x3a55b7(0x432));if(C(_0x3c4518)!=_0x3a55b7(0x25c))return _0x3c4518;throw TypeError(_0x3a55b7(0x2fb));}return(_0x38277e===_0x3a55b7(0x1ef)?String:Number)(_0x30f990);}function T(_0xf55085){const _0x343d91=_0x2daf50;var _0x284d9c=w(_0xf55085,_0x343d91(0x1ef));return C(_0x284d9c)==_0x343d91(0x1bc)?_0x284d9c:_0x284d9c+'';}function E(_0x38deed,_0x5917c7,_0x5b203a){return(_0x5917c7=T(_0x5917c7))in _0x38deed?Object['defineProperty'](_0x38deed,_0x5917c7,{'value':_0x5b203a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38deed[_0x5917c7]=_0x5b203a,_0x38deed;}function D(_0x4c9da7,_0x245f4e,_0x2d5afe){const _0x155266=_0x2daf50;var _0xe864b;let _0x5b5b58=(0x0,n[_0x155266(0x325)])(_0x4c9da7,{..._0x245f4e,'dataModel':{...(_0xe864b=_0x245f4e[_0x155266(0x39c)])==null?{}:_0xe864b,..._0x2d5afe?{'doc':_0x2d5afe}:null}}),_0x59f9a6=(0x0,n['resolveShapeTextEditorWrapStrategy'])(_0x5b5b58);return{'clip':(0x0,n[_0x155266(0x1d1)])(_0x5b5b58,_0x59f9a6),'wrapStrategy':_0x59f9a6};}var O=class extends s[_0x2daf50(0x355)]{constructor(_0x404f94,_0x1d39bc){const _0x1f47fd=_0x2daf50;super(_0x404f94,_0x1d39bc),E(this,'_props',void 0x0),E(this,_0x1f47fd(0x217),!0x0),E(this,_0x1f47fd(0x27f),i[_0x1f47fd(0x2bb)][_0x1f47fd(0x324)]),E(this,_0x1f47fd(0x454),!0x0),this[_0x1f47fd(0x35b)]={..._0x1d39bc},this[_0x1f47fd(0x3dd)]();}[_0x2daf50(0x3dd)](){const _0x21f4f4=_0x2daf50;this[_0x21f4f4(0x2ce)]['subscribeEvent'](_0x2911c6=>{const _0x43c36d=_0x21f4f4;this[_0x43c36d(0x1e6)](_0x2911c6);});}[_0x2daf50(0x2e4)](_0x153e52){const _0x3a33c3=_0x2daf50;this[_0x3a33c3(0x35b)]['prstGeom']=_0x153e52;}[_0x2daf50(0x351)](_0x77a00a){const _0x3d62bd=_0x2daf50;this['_props']['isEditing']=_0x77a00a,this[_0x3d62bd(0x1c7)](!0x0);}get[_0x2daf50(0x378)](){const _0x474d9d=_0x2daf50;return this['_props'][_0x474d9d(0x378)];}get[_0x2daf50(0x1a1)](){const _0x1b7b21=_0x2daf50;return this[_0x1b7b21(0x35b)][_0x1b7b21(0x1a1)];}['_updateSrcRectByTransform'](_0x444eff){const _0xdfc85f=_0x2daf50;if(this[_0xdfc85f(0x35b)][_0xdfc85f(0x1fb)]==null||!this[_0xdfc85f(0x217)])return;let {width:_0x4d5d56,height:_0x1a2f53}=this,{width:_0x2f9b03=0x0,height:_0xf56bac=0x0}=_0x444eff[_0xdfc85f(0x1f2)],{left:_0x29d925=0x0,top:_0x4c0983=0x0,right:_0x13c822=0x0,bottom:_0x4633db=0x0}=this[_0xdfc85f(0x35b)]['srcRect'],_0x233181=_0x29d925,_0x1e4520=_0x4c0983,_0x21da4f=_0x13c822,_0x452529=_0x4633db,_0x229830=!0x1;if(_0x2f9b03!==0x0&&_0x2f9b03!==_0x4d5d56){let _0x4317ae=_0x29d925/_0x2f9b03,_0xec1743=_0x13c822/_0x2f9b03;_0x233181=_0x4d5d56*_0x4317ae,_0x21da4f=_0x4d5d56*_0xec1743,_0x229830=!0x0;}if(_0xf56bac!==0x0&&_0xf56bac!==_0x1a2f53){let _0x2bb68e=_0x4c0983/_0xf56bac,_0x3776a2=_0x4633db/_0xf56bac;_0x1e4520=_0x1a2f53*_0x2bb68e,_0x452529=_0x1a2f53*_0x3776a2,_0x229830=!0x0;}_0x229830&&this['setSrcRect']({'left':_0x233181,'top':_0x1e4520,'right':_0x21da4f,'bottom':_0x452529});}[_0x2daf50(0x1fc)](_0x61104b){const _0x638c54=_0x2daf50;this[_0x638c54(0x35b)][_0x638c54(0x1fb)]=_0x61104b,this[_0x638c54(0x1c7)](!0x0);}[_0x2daf50(0x2ab)](_0x388b03){const _0x51c2d7=_0x2daf50;this[_0x51c2d7(0x35b)]['image']=_0x388b03,this[_0x51c2d7(0x1c7)](!0x0);}set['transform'](_0x4e0ce3){const _0x558839=_0x2daf50;this[_0x558839(0x45a)]=_0x4e0ce3;}get[_0x2daf50(0x1f8)](){const _0x32eee7=_0x2daf50;this['_transform']||this[_0x32eee7(0x2c8)]();let _0x34fd92=this[_0x32eee7(0x45a)]['clone']();return this[_0x32eee7(0x32d)](_0x34fd92);}get[_0x2daf50(0x1a0)](){const _0x4926df=_0x2daf50;return this[_0x4926df(0x35b)][_0x4926df(0x1a0)];}get[_0x2daf50(0x1b5)](){const _0x424ab5=_0x2daf50;return this[_0x424ab5(0x35b)][_0x424ab5(0x1b5)];}get[_0x2daf50(0x204)](){const _0x17b038=_0x2daf50;return s[_0x17b038(0x23b)]['SHAPE'];}[_0x2daf50(0x218)](_0x2e0e99,_0x4a71fb,_0x4a5ab3,_0x40f943){const _0x1f9feb=_0x2daf50;let _0x236a21=this[_0x1f9feb(0x35b)][_0x1f9feb(0x1a0)];if(!_0x236a21||!_0x4a71fb)return;let _0x2df7c0=_0x4a5ab3==null?this['width']:_0x4a5ab3,_0x5b694c=_0x40f943==null?this[_0x1f9feb(0x1c6)]:_0x40f943,_0x4a07bb={'shapeType':_0x236a21[_0x1f9feb(0x3ca)](),'width':_0x2df7c0,'height':_0x5b694c},_0x14a133={'renderMode':t[_0x1f9feb(0x22c)][_0x1f9feb(0x1e9)],'oKey':this[_0x1f9feb(0x2b9)],'image':this[_0x1f9feb(0x35b)][_0x1f9feb(0x1ec)],'angle':this['angle']};_0x236a21[_0x1f9feb(0x3a0)](_0x4a07bb),_0x2e0e99[_0x1f9feb(0x327)]();let _0x2f6aa4={'top':0x0,'left':0x0,'width':_0x2df7c0,'height':_0x5b694c};_0x236a21['render'](_0x2e0e99,_0x2f6aa4,_0x14a133),_0x2e0e99[_0x1f9feb(0x20c)]();let _0x5ecdb0=_0x236a21[_0x1f9feb(0x43e)](),_0x33b7b5=_0x236a21[_0x1f9feb(0x3b5)](_0x2f6aa4),_0x39f759=_0x236a21[_0x1f9feb(0x280)]();if(_0x5ecdb0&&_0x33b7b5&&!_0x39f759){_0x2e0e99[_0x1f9feb(0x327)](),this['getState']()[_0x1f9feb(0x3c0)]&&_0x2e0e99['scale'](-0x1,0x1);let _0x51ad9c=_0x2df7c0/0x2,_0x2c09c2=_0x5b694c/0x2;_0x2e0e99[_0x1f9feb(0x334)](-_0x51ad9c,-_0x2c09c2),_0x2e0e99[_0x1f9feb(0x2cf)](),this[_0x1f9feb(0x220)](_0x2e0e99,_0x5ecdb0,_0x33b7b5),_0x2e0e99[_0x1f9feb(0x20c)]();}}[_0x2daf50(0x26c)](_0x119f5b){}['_drawShapeText'](_0x102f20,_0x52a4fd,_0x3bcc){const _0x15c9af=_0x2daf50;var _0x4a23cf;this[_0x15c9af(0x35b)][_0x15c9af(0x471)]||(!((_0x4a23cf=_0x52a4fd[_0x15c9af(0x39c)])!=null&&_0x4a23cf['doc'])&&_0x15c9af(0x315)in _0x52a4fd&&_0x52a4fd[_0x15c9af(0x315)]===!0x1?this[_0x15c9af(0x230)](_0x102f20,_0x52a4fd,_0x3bcc):this['_drawRichText'](_0x102f20,_0x52a4fd,_0x3bcc));}[_0x2daf50(0x230)](_0x1807b2,_0x54bd82,_0x358f7d){const _0x9a80e9=_0x2daf50;var _0x2eaa91;this[_0x9a80e9(0x22b)](_0x1807b2,{..._0x54bd82,'text':(_0x2eaa91=_0x54bd82[_0x9a80e9(0x2d7)])==null?'':_0x2eaa91,'dataModel':{'doc':(0x0,n['plainShapeTextToDocumentData'])(_0x54bd82,_0x9a80e9(0x409)+this['oKey'])}},_0x358f7d);}[_0x2daf50(0x22b)](_0x5818c4,_0x743074,_0x1d9212){const _0x26c59a=_0x2daf50;var _0x1a040f,_0xcc5e5b;let _0x1d7b77=this['_props'][_0x26c59a(0x3f0)];if(!_0x743074['dataModel']||!_0x1d7b77)return;let _0x18770c=(0x0,n[_0x26c59a(0x1f5)])(_0x743074[_0x26c59a(0x39c)]);if(!_0x18770c)return;let _0x16fb40=_0x18770c['doc'];if(!_0x16fb40)return;let _0x1c93bf=(_0x1a040f=_0x18770c['va'])==null?i[_0x26c59a(0x305)][_0x26c59a(0x3f5)]:_0x1a040f,_0x16f870=(_0xcc5e5b=_0x18770c['ha'])==null?i['HorizontalAlign'][_0x26c59a(0x38b)]:_0xcc5e5b,_0x39560a=D(this[_0x26c59a(0x35b)][_0x26c59a(0x1a0)][_0x26c59a(0x389)](),_0x743074,_0x16fb40),_0x37a987=_0x743074[_0x26c59a(0x2e9)],_0xab08f4=new i[(_0x26c59a(0x3e1))]((0x0,n[_0x26c59a(0x440)])(_0x16fb40,{'isHorizontal':_0x37a987!==!0x1,'textRect':_0x1d9212,'verticalAlign':_0x1c93bf,'horizontalAlign':_0x16f870,'wrapStrategy':_0x39560a[_0x26c59a(0x360)]})),_0x465209=new s[(_0x26c59a(0x40e))](_0xab08f4),_0x1ef909=s[_0x26c59a(0x345)][_0x26c59a(0x41a)](_0x465209,_0x1d7b77);_0x1ef909[_0x26c59a(0x1ab)]();let _0x49cd33=_0x1ef909['getActualSize']()[_0x26c59a(0x2c7)],_0x17753b=(0x0,n['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x49cd33,'verticalAlign':_0x1c93bf,'viewportHeight':_0x1d9212[_0x26c59a(0x1c6)]});_0xab08f4[_0x26c59a(0x268)]({'pageSize':{'width':_0x37a987===!0x1?_0x1d9212[_0x26c59a(0x1c6)]:_0x1d9212[_0x26c59a(0x458)],'height':_0x17753b['contentHeight']}}),_0xab08f4[_0x26c59a(0x354)]({'t':_0x17753b[_0x26c59a(0x267)]}),_0x1ef909[_0x26c59a(0x1ab)]();let _0x210e34=new s[(_0x26c59a(0x1e3))]('shape-text-'+this[_0x26c59a(0x2b9)],_0x1ef909,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x26c59a(0x1c7)](!0x0)});_0x210e34[_0x26c59a(0x328)](_0x1d9212[_0x26c59a(0x458)],_0x17753b[_0x26c59a(0x252)]),_0x5818c4[_0x26c59a(0x327)](),_0x5818c4[_0x26c59a(0x359)](_0x1d9212['left'],_0x1d9212[_0x26c59a(0x286)]),_0x39560a[_0x26c59a(0x412)]&&(_0x5818c4['beginPath'](),_0x5818c4[_0x26c59a(0x2c9)](0x0,_0x17753b[_0x26c59a(0x391)],_0x1d9212[_0x26c59a(0x458)],_0x17753b['clipHeight']),_0x5818c4[_0x26c59a(0x412)]()),_0x17753b['contentVerticalOffset']&&_0x5818c4[_0x26c59a(0x359)](0x0,_0x17753b['contentVerticalOffset']),_0x210e34['draw'](_0x5818c4),_0x5818c4['restore'](),_0x210e34['dispose'](),_0x1ef909[_0x26c59a(0x428)](),_0x465209[_0x26c59a(0x428)](),_0xab08f4[_0x26c59a(0x428)]();}[_0x2daf50(0x301)](_0x408e55,_0x544a76,_0x40cb10=!0x1){const _0x381618=_0x2daf50;if(!this[_0x381618(0x371)])return this['makeDirty'](!0x1),this;let {width:_0x23be96,height:_0x14a000,left:_0x13e3b7,top:_0x37776a}=this,_0x2ce593=this[_0x381618(0x269)]();if(_0x23be96=_0x2ce593[_0x381618(0x458)],_0x14a000=_0x2ce593[_0x381618(0x1c6)],_0x13e3b7=_0x2ce593['left'],_0x37776a=_0x2ce593[_0x381618(0x286)],this[_0x381618(0x2af)](_0x544a76)){let {top:_0x46a214,left:_0xfd1d5e,bottom:_0xcbf7ff,right:_0x2b70f6}=_0x544a76[_0x381618(0x47a)];if(_0x23be96+this[_0x381618(0x448)]+_0x13e3b7<_0xfd1d5e||_0x2b70f6<_0x13e3b7||_0x14a000+this[_0x381618(0x448)]+_0x37776a<_0x46a214||_0xcbf7ff<_0x37776a)return this;}let _0x1a66f7=_0x13e3b7+_0x23be96/0x2,_0x44b8ce=_0x37776a+_0x14a000/0x2,_0x2b54c1=this[_0x381618(0x1f8)]['getMatrix']();if(this[_0x381618(0x35b)][_0x381618(0x471)]){let _0x4bab51=this[_0x381618(0x37d)](),_0x5feb71=new s[(_0x381618(0x226))]();_0x5feb71['composeMatrix']({..._0x4bab51}),_0x2b54c1=_0x5feb71['getMatrix']();}return _0x408e55[_0x381618(0x327)](),this[_0x381618(0x35b)][_0x381618(0x1a0)][_0x381618(0x287)]===!0x0||_0x408e55[_0x381618(0x1f8)](_0x2b54c1[0x0],_0x2b54c1[0x1],_0x2b54c1[0x2],_0x2b54c1[0x3],_0x1a66f7,_0x44b8ce),this['_draw'](_0x408e55,_0x544a76,_0x23be96,_0x14a000),_0x408e55['restore'](),this['makeDirty'](!0x1),this;}[_0x2daf50(0x1d0)](_0x156ae9){const _0x2f3284=_0x2daf50;let {left:_0x1157e8,top:_0x20c4a6,width:_0x203a60,height:_0x2dcb07}=this[_0x2f3284(0x269)](),_0x3e87a2=this[_0x2f3284(0x1f8)][_0x2f3284(0x239)](),_0xa464f9=_0x1157e8+_0x203a60/0x2,_0x55ce08=_0x20c4a6+_0x2dcb07/0x2,_0x59bb25=new s[(_0x2f3284(0x226))]([_0x3e87a2[0x0],_0x3e87a2[0x1],_0x3e87a2[0x2],_0x3e87a2[0x3],_0xa464f9,_0x55ce08]),_0x744d07=this[_0x2f3284(0x2e1)]();return(this[_0x2f3284(0x466)]&&(_0x744d07==null?void 0x0:_0x744d07[_0x2f3284(0x204)])===s[_0x2f3284(0x23b)]['GROUP']?_0x744d07['ancestorTransform'][_0x2f3284(0x37e)](_0x59bb25):_0x59bb25)[_0x2f3284(0x397)]()['applyPoint'](_0x156ae9);}[_0x2daf50(0x1ee)](_0x17d349){const _0x344a50=_0x2daf50;let {left:_0x5c1975,top:_0x1a3301,width:_0x45dcda,height:_0xca961}=this[_0x344a50(0x269)](),_0x2aabd6=_0x5c1975+_0x45dcda/0x2,_0x1e0b61=_0x1a3301+_0xca961/0x2,_0x396de7=this[_0x344a50(0x1f8)]['getMatrix'](),_0x41e159=new s['Transform']([_0x396de7[0x0],_0x396de7[0x1],_0x396de7[0x2],_0x396de7[0x3],_0x2aabd6,_0x1e0b61]),_0x513017=this[_0x344a50(0x2e1)](),_0x594f22=(this['isInGroup']&&(_0x513017==null?void 0x0:_0x513017[_0x344a50(0x204)])===s['RENDER_CLASS_TYPE']['GROUP']?_0x513017['ancestorTransform'][_0x344a50(0x37e)](_0x41e159):_0x41e159)[_0x344a50(0x397)]()[_0x344a50(0x319)](_0x17d349),_0x2650c7=_0x45dcda/0x2,_0x24ecea=_0xca961/0x2,_0x3381e9=this['_props']['shapeModel'];return _0x3381e9&&_0x3381e9[_0x344a50(0x280)]()?_0x3381e9[_0x344a50(0x3f2)](_0x594f22['x'],_0x594f22['y'],_0x45dcda,_0xca961):_0x594f22['x']>=-_0x2650c7-this[_0x344a50(0x448)]/0x2&&_0x594f22['x']<=_0x2650c7+this['strokeWidth']/0x2&&_0x594f22['y']>=-_0x24ecea-this[_0x344a50(0x448)]/0x2&&_0x594f22['y']<=_0x24ecea+this[_0x344a50(0x448)]/0x2;}[_0x2daf50(0x428)](){const _0x187d49=_0x2daf50;this[_0x187d49(0x35b)][_0x187d49(0x1a0)]=null,super['dispose']();}},k=class extends s[_0x2daf50(0x355)]{constructor(_0x2d15a4,_0x4ca012){const _0x4acf69=_0x2daf50;super(_0x2d15a4,_0x4ca012),E(this,_0x4acf69(0x433),null),E(this,'_adjName',null),E(this,_0x4acf69(0x19c),null),E(this,_0x4acf69(0x1a5),null),_0x4ca012&&this['setShapeProps'](_0x4ca012);}['getDrawingSearch'](){const _0x2802c4=_0x2daf50;return{'unitId':this[_0x2802c4(0x19c)],'subUnitId':this[_0x2802c4(0x1a5)],'drawingId':this['_shapeId']};}[_0x2daf50(0x26d)](_0x4ab3fa){const _0x1befdf=_0x2daf50;_0x4ab3fa['shapeId']!==void 0x0&&(this['_shapeId']=_0x4ab3fa[_0x1befdf(0x1b5)]),_0x4ab3fa[_0x1befdf(0x25a)]!==void 0x0&&(this[_0x1befdf(0x470)]=_0x4ab3fa['adjName']),_0x4ab3fa['unitId']!==void 0x0&&(this[_0x1befdf(0x19c)]=_0x4ab3fa['unitId']),_0x4ab3fa[_0x1befdf(0x1a1)]!==void 0x0&&(this[_0x1befdf(0x1a5)]=_0x4ab3fa[_0x1befdf(0x1a1)]),this[_0x1befdf(0x201)]({'width':_0x4ab3fa[_0x1befdf(0x458)],'height':_0x4ab3fa[_0x1befdf(0x1c6)]});}['_draw'](_0x2a2684){const _0x17b491=_0x2daf50;s[_0x17b491(0x2c3)][_0x17b491(0x402)](_0x2a2684,{'radius':t[_0x17b491(0x24f)]['adjHandleSize'],'fill':t['ShapeDefaultConfig'][_0x17b491(0x1fe)],'stroke':t[_0x17b491(0x24f)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x4f2f58,_0x11e584){return function(_0x222a57,_0xebe80b){_0x11e584(_0x222a57,_0xebe80b,_0x4f2f58);};}function j(_0x5dde48,_0x1a4414,_0x139c1d,_0x5cfcf5){const _0x4ece78=_0x2daf50;var _0x18cc0b=arguments[_0x4ece78(0x3ce)],_0x310d87=_0x18cc0b<0x3?_0x1a4414:_0x5cfcf5===null?_0x5cfcf5=Object['getOwnPropertyDescriptor'](_0x1a4414,_0x139c1d):_0x5cfcf5,_0x463295;if(typeof Reflect==_0x4ece78(0x25c)&&typeof Reflect[_0x4ece78(0x26e)]=='function')_0x310d87=Reflect[_0x4ece78(0x26e)](_0x5dde48,_0x1a4414,_0x139c1d,_0x5cfcf5);else{for(var _0x54d76a=_0x5dde48[_0x4ece78(0x3ce)]-0x1;_0x54d76a>=0x0;_0x54d76a--)(_0x463295=_0x5dde48[_0x54d76a])&&(_0x310d87=(_0x18cc0b<0x3?_0x463295(_0x310d87):_0x18cc0b>0x3?_0x463295(_0x1a4414,_0x139c1d,_0x310d87):_0x463295(_0x1a4414,_0x139c1d))||_0x310d87);}return _0x18cc0b>0x3&&_0x310d87&&Object['defineProperty'](_0x1a4414,_0x139c1d,_0x310d87),_0x310d87;}let M=class extends i['Disposable']{constructor(_0x72715b,_0x2980a1,_0x53a9ed,_0x4140de,_0x39cd2e){const _0x4cfb57=_0x2daf50;super(),this[_0x4cfb57(0x449)]=_0x72715b,this[_0x4cfb57(0x453)]=_0x2980a1,this[_0x4cfb57(0x464)]=_0x53a9ed,this[_0x4cfb57(0x35c)]=_0x4140de,this[_0x4cfb57(0x460)]=_0x39cd2e;}['renderDrawingShape'](_0x4c2f77,_0x20c610,_0x1cd30e){const _0x17fb5c=_0x2daf50;let {transform:_0x256566,drawingType:_0xc764da,srcRect:_0x4fb8a7,prstGeom:_0x2ec6e1,groupId:_0x134311,unitId:_0xdc0d31,subUnitId:_0x179f9e,drawingId:_0x5bbcf7,isMultiTransform:_0x52a7e0,transforms:_0x3a5903,hidden:_0xf1adf9,selectable:_0x2ebab1}=_0x4c2f77;if(_0xc764da!==i['DrawingTypeEnum']['DRAWING_SHAPE']||!this['_drawingManagerService'][_0x17fb5c(0x1e7)]()||_0x256566==null)return;let _0x10e642=this[_0x17fb5c(0x449)][_0x17fb5c(0x3c2)]();_0x10e642&&_0x20c610[_0x17fb5c(0x446)](n['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x1cc23a=_0x52a7e0&&_0x3a5903?_0x3a5903:[_0x256566],_0x2d5b35=[];for(let _0x513790 of _0x1cc23a){let {left:_0x57bff7,top:_0xf27029,width:_0x4a1b60,height:_0x1bd89a,angle:_0x1e256c,flipX:_0x25583e,flipY:_0x36586b,skewX:_0x2a935a,skewY:_0x408478}=_0x513790,_0x144257=_0x1cc23a[_0x17fb5c(0x3af)](_0x513790),_0x42761f=(0x0,o[_0x17fb5c(0x41c)])({'unitId':_0xdc0d31,'subUnitId':_0x179f9e,'drawingId':_0x5bbcf7},_0x52a7e0?_0x144257:void 0x0),_0x95f047=_0x20c610[_0x17fb5c(0x23d)](_0x42761f);if(_0x95f047!=null){_0x95f047[_0x17fb5c(0x201)]({'left':_0x57bff7,'top':_0xf27029,'width':_0x4a1b60,'height':_0x1bd89a,'angle':_0x1e256c,'flipX':_0x25583e,'flipY':_0x36586b,'skewX':_0x2a935a,'skewY':_0x408478});continue;}let _0x593640=this[_0x17fb5c(0x449)]['getDrawingOrder'](_0xdc0d31,_0x179f9e),_0x1e62df=_0x593640[_0x17fb5c(0x3af)](_0x5bbcf7);if(_0x20c610[_0x17fb5c(0x23d)](_0x42761f)||!this[_0x17fb5c(0x449)][_0x17fb5c(0x1e7)]())continue;let _0xbff127=this['_sheetsShapeService']['getShapeModel'](_0xdc0d31,_0x179f9e,_0x5bbcf7);if(!_0xbff127)continue;let _0x20755c=new O(_0x42761f,{...(0x0,t[_0x17fb5c(0x1ce)])(_0xbff127[_0x17fb5c(0x3ca)]())?{..._0x513790,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x513790},'zIndex':_0x1e62df===-0x1?_0x593640[_0x17fb5c(0x3ce)]-0x1:_0x1e62df,'shapeModel':_0xbff127,'localeService':this['_localeService'],'shapeId':_0x5bbcf7,'unitId':_0xdc0d31,'subUnitId':_0x179f9e,'visible':_0xf1adf9!==!0x0,'evented':_0x2ebab1!==!0x1});_0x20c610[_0x17fb5c(0x33a)](_0x20755c,s['DRAWING_OBJECT_LAYER_INDEX']),_0x10e642&&_0x20c610[_0x17fb5c(0x1c2)](_0x20755c),_0x134311&&(0x0,u[_0x17fb5c(0x2d0)])({'drawingId':_0x134311,'unitId':_0xdc0d31,'subUnitId':_0x179f9e},_0x20755c,_0x20c610,this['_drawingManagerService']),_0x2ec6e1!=null&&_0x20755c['setPrstGeom'](_0x2ec6e1),_0x4fb8a7!=null&&_0x20755c[_0x17fb5c(0x1fc)](_0x4fb8a7);let _0x468ef8=this[_0x17fb5c(0x1a7)](_0x20755c,_0xbff127[_0x17fb5c(0x389)]());if(_0x468ef8){var _0x387717;_0x1cd30e==null||(_0x387717=_0x1cd30e[_0x17fb5c(0x3e8)])==null||_0x387717[_0x17fb5c(0x224)](_0x468ef8);}_0x2d5b35[_0x17fb5c(0x1d8)](_0x20755c);}return _0x2d5b35;}['refreshShapeFillImage'](_0x3c3387){const _0x2b0ae0=_0x2daf50;let _0xacaf0=_0x3c3387['shapeModel'][_0x2b0ae0(0x389)](),_0x28a05e=_0xacaf0[_0x2b0ae0(0x25f)];if(!_0x28a05e||_0x28a05e[_0x2b0ae0(0x387)]!==t[_0x2b0ae0(0x417)][_0x2b0ae0(0x3cd)]||!_0x28a05e['fillImageSource']){_0x3c3387[_0x2b0ae0(0x2ab)](void 0x0);return;}this[_0x2b0ae0(0x1a7)](_0x3c3387,_0xacaf0);}[_0x2daf50(0x1a7)](_0x30ce97,_0x29f043){const _0x9ec701=_0x2daf50;var _0x4046f3;let _0x372d56=_0x29f043[_0x9ec701(0x25f)];if(!_0x372d56||_0x372d56[_0x9ec701(0x387)]!==t[_0x9ec701(0x417)][_0x9ec701(0x3cd)]||!_0x372d56[_0x9ec701(0x1a2)])return;let _0x105536=_0x372d56[_0x9ec701(0x1a2)],_0xbb74d1=(_0x4046f3=_0x372d56[_0x9ec701(0x215)])==null?t[_0x9ec701(0x3fb)][_0x9ec701(0x44f)]:_0x4046f3,_0x5dac58=this[_0x9ec701(0x35c)][_0x9ec701(0x377)](_0x105536,_0xbb74d1);if(_0x5dac58){_0x30ce97[_0x9ec701(0x2ab)](_0x5dac58);return;}return this[_0x9ec701(0x42f)](_0x30ce97,_0x105536,_0xbb74d1);}async[_0x2daf50(0x42f)](_0x2c3d78,_0x72ec98,_0x2d5314){const _0x212b8b=_0x2daf50;let _0x5398ed;try{if(_0x2d5314===t[_0x212b8b(0x3fb)]['UUID'])_0x5398ed=await this['_imageIoService']['getImage'](_0x72ec98);else{if(_0x2d5314===t['ImageSourceTypeEnum'][_0x212b8b(0x44f)])try{_0x5398ed=await this['_urlImageService'][_0x212b8b(0x414)](_0x72ec98);}catch{_0x5398ed=_0x72ec98;}else _0x5398ed=_0x72ec98;}}catch(_0x52a321){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x52a321);return;}await new Promise(_0xd0edac=>{const _0x4fae40=_0x212b8b;let _0x5371f3=new window[(_0x4fae40(0x21c))]();_0x5371f3[_0x4fae40(0x3f7)]=()=>{const _0x467a4=_0x4fae40;this[_0x467a4(0x35c)]['addImageSourceCache'](_0x72ec98,_0x2d5314,_0x5371f3),_0x2c3d78['setFillImage'](_0x5371f3),_0xd0edac();},_0x5371f3[_0x4fae40(0x25b)]=()=>{const _0x677aac=_0x4fae40;console[_0x677aac(0x344)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x72ec98),_0xd0edac();},_0x5371f3[_0x4fae40(0x32e)]=_0x5398ed;});}};M=j([A(0x0,o[_0x2daf50(0x3a9)]),A(0x1,(0x0,i['Inject'])(r['SheetsShapeService'])),A(0x2,(0x0,i['Inject'])(i['LocaleService'])),A(0x3,i['IImageIoService']),A(0x4,i['IURLImageService'])],M);let N=class extends i[_0x2daf50(0x2f9)]{constructor(_0x43b84a,_0x870afe,_0x3f9cc2,_0x4730a4,_0x3b53b0,_0x466360){const _0x46e38a=_0x2daf50;super(),this[_0x46e38a(0x449)]=_0x43b84a,this['_sheetsShapeService']=_0x870afe,this['_renderManagerService']=_0x3f9cc2,this[_0x46e38a(0x477)]=_0x4730a4,this[_0x46e38a(0x1aa)]=_0x3b53b0,this[_0x46e38a(0x19f)]=_0x466360,E(this,_0x46e38a(0x46c),null),E(this,_0x46e38a(0x19c),null),E(this,_0x46e38a(0x1a5),null),E(this,_0x46e38a(0x2ee),void 0x0),E(this,_0x46e38a(0x316),[]),E(this,_0x46e38a(0x233),0x0),E(this,_0x46e38a(0x42a),0x0),E(this,_0x46e38a(0x462),0x0),E(this,_0x46e38a(0x2cd),0x0),E(this,_0x46e38a(0x346),!0x1),E(this,_0x46e38a(0x3cc),void 0x0),E(this,_0x46e38a(0x3d0),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,_0x46e38a(0x254),void 0x0),E(this,_0x46e38a(0x1b7),!0x1),this[_0x46e38a(0x2e6)](),this['_registerDrawingMoveHandler']();}[_0x2daf50(0x1fa)](_0x57ace2,_0x26e3b7,_0xb12682){const _0x146403=_0x2daf50;let _0x12b8b8=this[_0x146403(0x453)]['getShapeModel'](_0x57ace2,_0x26e3b7,_0xb12682);if(_0x12b8b8)return _0x12b8b8[_0x146403(0x26c)]();}[_0x2daf50(0x3a5)](){this['_clearShapeAdjustControls']();}[_0x2daf50(0x337)](){this['_updateShapeAdjustControls'](!0x0);}[_0x2daf50(0x2bd)](_0x4a85d0){this['_isShouldShowDrawingShapeAdjust']=_0x4a85d0;}[_0x2daf50(0x2a9)](_0x271cff,_0x115a1d,_0x490153,_0x4b4d6b){const _0x36bf58=_0x2daf50;let _0x44cc36=this[_0x36bf58(0x453)]['getShapeModel'](_0x271cff,_0x115a1d,_0x490153);if(_0x44cc36)return _0x44cc36['getAdjustInfoByName'](_0x4b4d6b);}[_0x2daf50(0x238)](_0x29c819=!0x1){const _0x20b3fd=_0x2daf50;if(this['_unitId']===null||this[_0x20b3fd(0x1a5)]===null||this[_0x20b3fd(0x46c)]===null)return;let _0x384a4e=this['_renderManagerService'][_0x20b3fd(0x36e)](this[_0x20b3fd(0x19c)]);if(!_0x384a4e||!_0x384a4e[_0x20b3fd(0x463)](c[_0x20b3fd(0x366)])['getCurrentSkeleton']())return;let {scene:_0x58bc77}=_0x384a4e,_0x1f2c6f={'unitId':this[_0x20b3fd(0x19c)],'subUnitId':this[_0x20b3fd(0x1a5)],'drawingId':this[_0x20b3fd(0x46c)]},_0xdff2cb=this[_0x20b3fd(0x449)]['getDrawingByParam'](_0x1f2c6f),{transform:_0x5e9a1d}=_0xdff2cb;if(!_0x5e9a1d||_0xdff2cb[_0x20b3fd(0x3ea)]!==i['DrawingTypeEnum'][_0x20b3fd(0x324)])return;let {left:_0x18cfe9,top:_0x11f594,width:_0x5b9700,height:_0x279ee4,flipX:_0x55bcc0,flipY:_0x5372e7,angle:_0x3eb898=0x0}=_0x5e9a1d;if(_0x18cfe9===void 0x0||_0x11f594===void 0x0)return;_0x29c819&&(this[_0x20b3fd(0x2ee)]=this['_getShapeAdjustPointListById'](this[_0x20b3fd(0x19c)],this[_0x20b3fd(0x1a5)],this[_0x20b3fd(0x46c)]));let _0x152ab3=this[_0x20b3fd(0x2ee)];for(let _0x5bd73f=0x0;_0x5bd73f<_0x152ab3[_0x20b3fd(0x3ce)];_0x5bd73f++){let _0x2ee43e=_0x152ab3[_0x5bd73f],_0x309659=_0x2ee43e['x'],_0x1c1f96=_0x2ee43e['y'];if(_0x55bcc0&&(_0x309659=(_0x5b9700||0x0)-_0x309659),_0x5372e7&&(_0x1c1f96=(_0x279ee4||0x0)-_0x1c1f96),_0x3eb898!==0x0){let _0x1ff957=(_0x5b9700||0x0)/0x2,_0xb7be3e=(_0x279ee4||0x0)/0x2,_0x590299=_0x3eb898*Math['PI']/0xb4,_0x17fd95=Math['cos'](_0x590299),_0x5cb368=Math[_0x20b3fd(0x27c)](_0x590299),_0x488069=_0x309659-_0x1ff957,_0x2cda74=_0x1c1f96-_0xb7be3e;_0x309659=_0x1ff957+(_0x488069*_0x17fd95-_0x2cda74*_0x5cb368),_0x1c1f96=_0xb7be3e+(_0x488069*_0x5cb368+_0x2cda74*_0x17fd95);}let _0xad0167={'x':_0x309659,'y':_0x1c1f96,'adjName':_0x2ee43e[_0x20b3fd(0x25a)]};this['_addShapeAdjustControl'](_0x58bc77,_0xad0167,_0xad0167[_0x20b3fd(0x25a)],_0x18cfe9,_0x11f594,this[_0x20b3fd(0x19c)],this[_0x20b3fd(0x1a5)]);}}[_0x2daf50(0x373)](_0x4ccc34=!0x1){const _0x4cab77=_0x2daf50;_0x4ccc34&&(this[_0x4cab77(0x3e5)](),this[_0x4cab77(0x238)](_0x4ccc34));}[_0x2daf50(0x369)](_0x51e681,_0xd44fdb,_0x5f047e,_0x4d9c65,_0x59908b,_0x457c9d,_0xde5558){const _0x14cb12=_0x2daf50;if(!this[_0x14cb12(0x46c)])return;let _0x213db5=_0x51e681[_0x14cb12(0x23d)](_0x14cb12(0x30a)+this[_0x14cb12(0x46c)]+'-'+_0x5f047e);if(_0x213db5){_0x213db5[_0x14cb12(0x201)]({'left':_0xd44fdb['x']+_0x4d9c65-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)],'top':_0xd44fdb['y']+_0x59908b-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]});return;}let _0x42e5cc={'left':_0xd44fdb['x']+_0x4d9c65-t['ShapeDefaultConfig'][_0x14cb12(0x27e)],'top':_0xd44fdb['y']+_0x59908b-t[_0x14cb12(0x24f)][_0x14cb12(0x27e)],'adjName':_0x5f047e,'shapeId':this['_activeShapeId'],'unitId':_0x457c9d,'subUnitId':_0xde5558,'width':t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]+0x8,'height':t[_0x14cb12(0x24f)][_0x14cb12(0x27e)]+0x8,'zIndex':s[_0x14cb12(0x329)]+0x1,'evented':!0x0},_0x3e545=new k(_0x14cb12(0x30a)+this[_0x14cb12(0x46c)]+'-'+_0x5f047e,_0x42e5cc);this[_0x14cb12(0x316)][_0x14cb12(0x1d8)](_0x3e545),this[_0x14cb12(0x229)](_0x3e545,_0x51e681,_0x5f047e),_0x51e681['addObject'](_0x3e545,s[_0x14cb12(0x329)]+0x1);}['_clearShapeAdjustControls'](){const _0x4f482f=_0x2daf50;this[_0x4f482f(0x316)][_0x4f482f(0x3ce)]!==0x0&&(this[_0x4f482f(0x316)]['forEach'](_0x2a7691=>{const _0x39fab5=_0x4f482f;_0x2a7691[_0x39fab5(0x428)]();}),this[_0x4f482f(0x316)]=[]);}[_0x2daf50(0x2de)](){const _0x1cd7ff=_0x2daf50;this[_0x1cd7ff(0x238)]();}['_getScrollInfo'](_0x1e08dd,_0x545507){const _0x4faee2=_0x2daf50;var _0x27b75e;let _0x12bad7={'x':0x0,'y':0x0};if(!_0x1e08dd||!_0x545507)return _0x12bad7;let _0x582596=this[_0x4faee2(0x3fc)]['getRenderById'](_0x1e08dd);if(!_0x582596||!_0x582596[_0x4faee2(0x463)](c[_0x4faee2(0x366)])['getSkeleton'](_0x545507))return _0x12bad7;let _0x241943=_0x582596[_0x4faee2(0x463)](c['SheetScrollManagerService']),_0x190810=_0x241943==null?void 0x0:_0x241943[_0x4faee2(0x3bc)]();if(!_0x190810)return _0x12bad7;let _0x5cfb6c=(_0x27b75e=this[_0x4faee2(0x1aa)][_0x4faee2(0x32f)](_0x1e08dd))==null?void 0x0:_0x27b75e[_0x4faee2(0x1a9)](_0x545507);if(!_0x5cfb6c)return _0x12bad7;let _0x1b2aaa=(0x0,c[_0x4faee2(0x281)])(_0x190810[_0x4faee2(0x46a)],_0x190810['sheetViewStartColumn'],_0x582596['scene'],_0x5cfb6c);return _0x1b2aaa?{'x':_0x1b2aaa[_0x4faee2(0x210)],'y':_0x1b2aaa[_0x4faee2(0x2bf)]}:_0x12bad7;}[_0x2daf50(0x207)](_0x52cff0,_0x4ef8cd){const _0x69657c=_0x2daf50;var _0x36dc7e,_0x50b8a7;let _0x27dfbe=(_0x36dc7e=this[_0x69657c(0x1aa)][_0x69657c(0x32f)](_0x52cff0))==null?void 0x0:_0x36dc7e['getSheetBySheetId'](_0x4ef8cd);return(_0x50b8a7=_0x27dfbe==null?void 0x0:_0x27dfbe[_0x69657c(0x45d)]())==null?0x1:_0x50b8a7;}[_0x2daf50(0x229)](_0x2a6f14,_0x570cbb,_0x28340e){const _0x521c17=_0x2daf50;this[_0x521c17(0x1c1)]((0x0,i[_0x521c17(0x427)])(_0x2a6f14['onPointerDown$'][_0x521c17(0x382)]((_0x13970b,_0x34c3e5)=>{const _0x451640=_0x521c17;var _0x5656a0,_0x518347,_0x499963,_0x264e6f;let _0x13a864=_0x2a6f14[_0x451640(0x26a)]();this['_activeAdjustInfo']=this[_0x451640(0x2a9)](_0x13a864[_0x451640(0x378)],_0x13a864[_0x451640(0x1a1)],_0x13a864[_0x451640(0x34d)],_0x28340e),this['_activeShapeModel']=this[_0x451640(0x453)]['getShapeModel'](_0x13a864[_0x451640(0x378)],_0x13a864[_0x451640(0x1a1)],_0x13a864['drawingId']);let _0x10bc87=this['_drawingManagerService'][_0x451640(0x39b)]({'unitId':this['_unitId'],'subUnitId':this[_0x451640(0x1a5)],'drawingId':this['_activeShapeId']}),{transform:_0x462be6}=_0x10bc87;if(_0x462be6){let {left:_0x5e0fa8,top:_0x587c00,width:_0x1c9ed6,height:_0x107b37}=_0x462be6;this[_0x451640(0x233)]=_0x5e0fa8||0x0,this['_baseShapeTop']=_0x587c00||0x0,this[_0x451640(0x462)]=_0x1c9ed6||0x0,this['_baseShapeHeight']=_0x107b37||0x0;}let _0x39d283=!!((_0x5656a0=_0x10bc87[_0x451640(0x1f8)])!=null&&_0x5656a0[_0x451640(0x3c0)]),_0x554d44=!!((_0x518347=_0x10bc87[_0x451640(0x1f8)])!=null&&_0x518347[_0x451640(0x380)]),_0x49a563=((_0x499963=_0x10bc87[_0x451640(0x1f8)])==null?void 0x0:_0x499963['angle'])||0x0;this[_0x451640(0x346)]=!0x0,_0x570cbb['disableObjectsEvent']();let _0x57de9d=(_0x264e6f=this[_0x451640(0x3d0)])==null?void 0x0:_0x264e6f[_0x451640(0x243)](_0x28340e),_0x2e59ad={[_0x28340e]:_0x57de9d};this[_0x451640(0x3c7)]=_0x570cbb[_0x451640(0x3b7)]['subscribeEvent']((_0x24e3cd,_0x172cff)=>{const _0x13b7f5=_0x451640;if(!this[_0x13b7f5(0x346)])return;let {offsetX:_0x5b08a9,offsetY:_0x413748}=_0x24e3cd,_0x2e2750=this[_0x13b7f5(0x3cc)];if(this['_activeShapeModel']&&_0x2e2750){_0x570cbb[_0x13b7f5(0x317)](),_0x570cbb['setCursor'](s[_0x13b7f5(0x29e)][_0x13b7f5(0x381)]);let _0x1f984a={'left':0x0,'top':0x0,'width':this[_0x13b7f5(0x462)],'height':this[_0x13b7f5(0x2cd)]},_0x47eed2=this[_0x13b7f5(0x2ca)](this[_0x13b7f5(0x19c)],this[_0x13b7f5(0x1a5)]),_0x1bda0c=this['_getZoomRatio'](this[_0x13b7f5(0x19c)],this[_0x13b7f5(0x1a5)]),_0x2bb3d9=_0x5b08a9/_0x1bda0c+_0x47eed2['x']-this[_0x13b7f5(0x233)],_0xb4e718=_0x413748/_0x1bda0c+_0x47eed2['y']-this[_0x13b7f5(0x42a)];if(_0x49a563!==0x0){let _0x474e30=this[_0x13b7f5(0x462)]/0x2,_0x556153=this[_0x13b7f5(0x2cd)]/0x2,_0x4835eb=_0x49a563*Math['PI']/0xb4,_0x1d23f6=Math[_0x13b7f5(0x2e0)](_0x4835eb),_0x1a312c=Math['sin'](_0x4835eb),_0x543c40=_0x2bb3d9-_0x474e30,_0x1b1800=_0xb4e718-_0x556153;_0x2bb3d9=_0x474e30+(_0x543c40*_0x1d23f6+_0x1b1800*_0x1a312c),_0xb4e718=_0x556153+(-_0x543c40*_0x1a312c+_0x1b1800*_0x1d23f6);}_0x39d283&&(_0x2bb3d9=this[_0x13b7f5(0x462)]-_0x2bb3d9),_0x554d44&&(_0xb4e718=this['_baseShapeHeight']-_0xb4e718);let _0xf61a35={'x':_0x2bb3d9,'y':_0xb4e718},_0xb4eaca=this[_0x13b7f5(0x3d0)]['calcAdjValue'](_0x1f984a,_0xf61a35,_0x2e2750,_0x39d283,_0x554d44),_0xad6e4f=_0x2e2750[_0x13b7f5(0x321)]||_0x2e2750[_0x13b7f5(0x393)]||_0x2e2750[_0x13b7f5(0x32c)]||_0x2e2750['gdRefR'];if(_0xad6e4f===void 0x0)return;this[_0x13b7f5(0x3d0)][_0x13b7f5(0x384)](_0xad6e4f,_0xb4eaca);let _0x3b1478=this[_0x13b7f5(0x449)][_0x13b7f5(0x39b)]({'unitId':_0x13a864[_0x13b7f5(0x378)],'subUnitId':_0x13a864[_0x13b7f5(0x1a1)],'drawingId':_0x13a864[_0x13b7f5(0x34d)]});_0x3b1478&&(this[_0x13b7f5(0x477)]['renderDrawingShape'](_0x3b1478,_0x570cbb),this['_activeShapeAdjustPointList']=this[_0x13b7f5(0x1fa)](_0x13a864[_0x13b7f5(0x378)],_0x13a864['subUnitId'],_0x13a864[_0x13b7f5(0x34d)]),this[_0x13b7f5(0x2de)]());}_0x172cff[_0x13b7f5(0x3b8)]();}),this[_0x451640(0x254)]=_0x570cbb[_0x451640(0x3b3)]['subscribeEvent']((_0x49e5d7,_0x5c2c2a)=>{const _0x112d01=_0x451640;this[_0x112d01(0x3c7)][_0x112d01(0x34e)](),this[_0x112d01(0x254)][_0x112d01(0x34e)](),_0x570cbb['resetCursor']();let _0x3c123f=this['_activeAdjustInfo'];if(_0x3c123f){let _0x21ef44=_0x13a864[_0x112d01(0x378)],_0x61576b=_0x13a864[_0x112d01(0x1a1)],_0x1a0b52=_0x13a864[_0x112d01(0x34d)],_0x4cf84b=_0x3c123f[_0x112d01(0x321)]||_0x3c123f[_0x112d01(0x393)]||_0x3c123f[_0x112d01(0x32c)]||_0x3c123f[_0x112d01(0x367)];if(_0x4cf84b!==void 0x0){var _0x4487d9;let _0x165c64=(_0x4487d9=this['_activeShapeModel'])==null?void 0x0:_0x4487d9[_0x112d01(0x243)](_0x4cf84b);_0x165c64!==void 0x0&&x(this[_0x112d01(0x19f)],_0x21ef44,_0x61576b,_0x1a0b52,{'oldShapeData':{'adjustValues':_0x2e59ad}},{'adjustValues':{[_0x4cf84b]:_0x165c64}});}}this[_0x112d01(0x3cc)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x112d01(0x346)]=!0x1,_0x5c2c2a[_0x112d01(0x3b8)](),_0x570cbb[_0x112d01(0x3c1)]();}),_0x34c3e5[_0x451640(0x3b8)]();})));}[_0x2daf50(0x1f6)](){const _0x5dee26=_0x2daf50;let _0x4283d5=this['_univerInstanceService'][_0x5dee26(0x3f1)](i[_0x5dee26(0x21b)][_0x5dee26(0x447)]);this[_0x5dee26(0x1c1)](_0x4283d5['pipe']((0x0,l[_0x5dee26(0x37c)])(_0xda1dd3=>_0xda1dd3?_0xda1dd3['activeSheet$'][_0x5dee26(0x3c6)]((0x0,l['switchMap'])(_0x45cbef=>{const _0x4a74d9=_0x5dee26;if(!_0x45cbef)return l[_0x4a74d9(0x19e)];let _0x28a5b3=_0xda1dd3['getUnitId'](),_0x336079=this[_0x4a74d9(0x3fc)]['getRenderById'](_0x28a5b3),_0x44676a=_0x336079==null?void 0x0:_0x336079[_0x4a74d9(0x336)];return _0x44676a?(0x0,l['of'])(_0x44676a):l[_0x4a74d9(0x19e)];})):l[_0x5dee26(0x19e)]))[_0x5dee26(0x2d6)](_0x3859a8=>{const _0x71f684=_0x5dee26;let _0x4808e4=_0x3859a8[_0x71f684(0x251)]();this[_0x71f684(0x1c1)](_0x3859a8[_0x71f684(0x3b7)][_0x71f684(0x382)](()=>{const _0x31ee7c=_0x71f684;this[_0x31ee7c(0x1b7)];})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x1e8)]['subscribe'](_0x210c75=>{const _0x53ba5e=_0x71f684;let {objects:_0x5cbd4d}=_0x210c75;this[_0x53ba5e(0x238)](),_0x5cbd4d!==null&&_0x5cbd4d[_0x53ba5e(0x31c)]===0x1&&_0x5cbd4d[_0x53ba5e(0x2f6)]()[_0x53ba5e(0x235)]()[_0x53ba5e(0x2ef)]instanceof O&&this[_0x53ba5e(0x2bd)](!0x0);})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x211)][_0x71f684(0x2d6)](()=>{const _0x404f45=_0x71f684;this['_isShouldShowDrawingShapeAdjust']&&this[_0x404f45(0x3e5)]();})),this[_0x71f684(0x1c1)](_0x3859a8[_0x71f684(0x3b3)][_0x71f684(0x382)](()=>{const _0x46d759=_0x71f684;this[_0x46d759(0x1b7)]&&(this[_0x46d759(0x2bd)](!0x1),this[_0x46d759(0x238)]());})),this[_0x71f684(0x1c1)](_0x4808e4[_0x71f684(0x258)][_0x71f684(0x2d6)](()=>{const _0x42626b=_0x71f684;this['_unitId']&&this[_0x42626b(0x1a5)]&&this[_0x42626b(0x46c)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x42626b(0x19c)],'subUnitId':this[_0x42626b(0x1a5)],'drawingId':this['_activeShapeId']})&&(this[_0x42626b(0x2ee)]=this[_0x42626b(0x1fa)](this[_0x42626b(0x19c)],this[_0x42626b(0x1a5)],this['_activeShapeId']),this[_0x42626b(0x2de)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x10a5e2=_0x2daf50;this['disposeWithMe'](this['_drawingManagerService'][_0x10a5e2(0x271)]['subscribe'](_0x9bfcdf=>{const _0x56436a=_0x10a5e2;if(_0x9bfcdf[_0x56436a(0x3ce)]===0x1){let _0x287525=_0x9bfcdf[0x0];if(_0x287525[_0x56436a(0x3ea)]===i[_0x56436a(0x2bb)][_0x56436a(0x324)]){this[_0x56436a(0x46c)]=_0x287525[_0x56436a(0x34d)];let {unitId:_0x4e4c6b,subUnitId:_0x39a176}=_0x287525;this['_activeShapeAdjustPointList']=this[_0x56436a(0x1fa)](_0x4e4c6b,_0x39a176,this[_0x56436a(0x46c)]),this['_unitId']=_0x4e4c6b,this[_0x56436a(0x1a5)]=_0x39a176,this[_0x56436a(0x3e5)](),this[_0x56436a(0x238)]();}else this[_0x56436a(0x46c)]=null,this[_0x56436a(0x2ee)]=void 0x0,this['_unitId']=null,this[_0x56436a(0x1a5)]=null,this[_0x56436a(0x3e5)]();}(_0x9bfcdf['length']>0x1||_0x9bfcdf[_0x56436a(0x3ce)]===0x0)&&(this['_activeShapeId']=null,this[_0x56436a(0x2ee)]=void 0x0,this[_0x56436a(0x19c)]=null,this[_0x56436a(0x1a5)]=null,this[_0x56436a(0x3e5)]());})),this[_0x10a5e2(0x1c1)](this[_0x10a5e2(0x449)][_0x10a5e2(0x225)][_0x10a5e2(0x2d6)](_0x56680f=>{const _0x1ad1ce=_0x10a5e2;if(_0x56680f['length']===0x1){var _0x3e6495;let _0x29ca44=_0x56680f[0x0];((_0x3e6495=this[_0x1ad1ce(0x449)][_0x1ad1ce(0x39b)](_0x29ca44))==null?void 0x0:_0x3e6495[_0x1ad1ce(0x3ea)])===i['DrawingTypeEnum']['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this['disposeWithMe'](this[_0x10a5e2(0x449)]['remove$'][_0x10a5e2(0x2d6)](_0x306c42=>{const _0x5b68d3=_0x10a5e2;for(let _0x3b4fcb of _0x306c42)this['_activeShapeId']===_0x3b4fcb[_0x5b68d3(0x34d)]&&(this[_0x5b68d3(0x46c)]=null,this[_0x5b68d3(0x2ee)]=void 0x0,this[_0x5b68d3(0x19c)]=null,this[_0x5b68d3(0x1a5)]=null,this[_0x5b68d3(0x3e5)]());}));}};N=j([A(0x0,o[_0x2daf50(0x3a9)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(s[_0x2daf50(0x282)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(M)),A(0x4,i[_0x2daf50(0x439)]),A(0x5,i[_0x2daf50(0x1b8)])],N);const P={'id':_0x2daf50(0x44b),'type':i[_0x2daf50(0x429)][_0x2daf50(0x20d)],'handler':(_0x5c307b,_0x35b806)=>{const _0x946a95=_0x2daf50;let _0x1723c5=_0x5c307b[_0x946a95(0x423)](o[_0x946a95(0x3a9)]),_0x2571b9=_0x5c307b[_0x946a95(0x423)](s[_0x946a95(0x282)]),_0x579b8d=_0x5c307b[_0x946a95(0x423)](N);if(_0x35b806==null)return!0x0;if(_0x35b806[_0x946a95(0x3ce)]>0x0){var _0x20987d;let _0x356d9=(_0x20987d=_0x2571b9['getRenderById'](_0x35b806[0x0][_0x946a95(0x378)]))==null?void 0x0:_0x20987d[_0x946a95(0x336)];if(_0x356d9){let {unitId:_0x36aaa2,subUnitId:_0x39d0c2,drawingId:_0x27a317}=_0x35b806[0x0],_0x5a6eda=(0x0,o[_0x946a95(0x41c)])({'unitId':_0x36aaa2,'subUnitId':_0x39d0c2,'drawingId':_0x27a317},void 0x0),_0x4cc59c=_0x356d9['getObjectIncludeInGroup'](_0x5a6eda);if(_0x4cc59c){var _0x5618bd;(_0x5618bd=_0x2571b9[_0x946a95(0x36e)](_0x35b806[0x0]['unitId']))==null||(_0x5618bd=_0x5618bd[_0x946a95(0x336)]['getTransformer']())==null||_0x5618bd[_0x946a95(0x41b)](_0x4cc59c);}}_0x1723c5[_0x946a95(0x375)](_0x35b806),_0x579b8d[_0x946a95(0x2bd)](!0x1);}return!0x0;}},F={'type':i[_0x2daf50(0x429)][_0x2daf50(0x2ba)],'id':_0x2daf50(0x1db),'handler':async(_0x50f015,_0x49c034)=>{const _0x590a3b=_0x2daf50;let _0x4ed1e6=(0x0,a[_0x590a3b(0x356)])(_0x50f015['get'](i[_0x590a3b(0x439)]));if(!_0x4ed1e6)return!0x1;let _0x211723=_0x50f015['get'](a[_0x590a3b(0x21f)])[_0x590a3b(0x2c2)]();if(!_0x211723)return!0x1;let _0x3e782d=_0x50f015[_0x590a3b(0x423)](i[_0x590a3b(0x1b8)]),{unitId:_0x19a1e7,subUnitId:_0x314790}=_0x4ed1e6,{value:_0x13e37c,enhanceParams:_0x30efcd}=_0x49c034,{range:_0x459eee}=_0x211723,_0x11a940={'unitId':_0x19a1e7,'subUnitId':_0x314790,'shapeType':_0x13e37c,'range':_0x459eee,'shapeId':(0x0,i['generateRandomId'])()};if(_0x30efcd){let _0x561c27=(0x0,t[_0x590a3b(0x1ce)])(_0x13e37c),_0x2d4f88=_0x13e37c===t['ShapeTypeEnum'][_0x590a3b(0x31d)];_0x561c27&&(_0x30efcd[_0x590a3b(0x1d3)]||_0x30efcd['endArrow'])&&(_0x11a940[_0x590a3b(0x285)]={'ln':{'startArrow':_0x30efcd[_0x590a3b(0x1d3)]?{'type':t[_0x590a3b(0x26f)]['Arrow'],'size':t[_0x590a3b(0x313)][_0x590a3b(0x421)]}:void 0x0,'endArrow':_0x30efcd['endArrow']?{'type':t['ShapeArrowTypeEnum'][_0x590a3b(0x3a4)],'size':t[_0x590a3b(0x313)][_0x590a3b(0x25d)]}:void 0x0}}),_0x2d4f88&&(_0x30efcd[_0x590a3b(0x46e)]||_0x30efcd[_0x590a3b(0x3f3)])&&(_0x11a940['shapeData']=(0x0,n['createShapeTextBoxShapeData'])({'fill':{'fillType':t[_0x590a3b(0x417)][_0x590a3b(0x250)],'color':'#FFFFFF'},'isHorizontal':!!_0x30efcd[_0x590a3b(0x46e)],'stroke':{'lineStrokeType':t[_0x590a3b(0x23c)][_0x590a3b(0x1d5)],'width':0x1,'color':_0x590a3b(0x396)}}));}let _0x13e955=_0x3e782d['syncExecuteCommand'](r[_0x590a3b(0x244)]['id'],_0x11a940);return setTimeout(()=>{const _0xca153e=_0x590a3b;_0x3e782d[_0xca153e(0x374)](P['id'],[{'unitId':_0x19a1e7,'subUnitId':_0x314790,'drawingId':_0x11a940['shapeId']}]);},0xc8),_0x13e955;}},I=_0x2daf50(0x1c8),L=_0x2daf50(0x292),R=_0x2daf50(0x277),ee=(0x0,i[_0x2daf50(0x437)])('SHAPE_TEXT'),te=_0x2daf50(0x1cb),ne={'id':_0x2daf50(0x23a),'type':i[_0x2daf50(0x429)]['COMMAND'],'handler':(_0x3dd569,_0x3fee12)=>{const _0x31a544=_0x2daf50;let _0x104824=_0x3dd569[_0x31a544(0x423)](e[_0x31a544(0x3ff)]),_0x382f78=_0x3dd569['get'](i[_0x31a544(0x2df)]),_0x19ab65=_0x3dd569[_0x31a544(0x423)](i[_0x31a544(0x439)]),_0xc07905=_0x3dd569[_0x31a544(0x423)](i[_0x31a544(0x1b8)]);return(0x0,a['getSheetCommandTarget'])(_0x19ab65)?(_0x3fee12==null?void 0x0:_0x3fee12[_0x31a544(0x2ef)])===_0x31a544(0x478)?(_0x104824[_0x31a544(0x478)](L),!0x0):(_0x104824[_0x31a544(0x3d6)]({'id':L,'header':{'title':_0x382f78['t'](_0x31a544(0x256))},'children':{'label':L},'onClose':()=>{const _0x56fe1e=_0x31a544;_0xc07905[_0x56fe1e(0x29b)](o[_0x56fe1e(0x465)]['id'],[]);},'width':0x168}),!0x0):!0x1;}};let z=class extends i[_0x2daf50(0x2f9)]{constructor(_0x58a8fd,_0x5c53b2){const _0x3a922d=_0x2daf50;super(),this['_clipService']=_0x58a8fd,this['_drawingManagerService']=_0x5c53b2,this[_0x3a922d(0x339)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x3a922d(0x1c1)]({'dispose':()=>this[_0x3a922d(0x40a)]['setCanUseShapeClip'](!0x1)});}[_0x2daf50(0x339)](){const _0x5cafd6=_0x2daf50;let _0x1f738f=this[_0x5cafd6(0x40a)],_0x644b79=new Map(),_0x1fd81d=_0x1f738f[_0x5cafd6(0x20f)]((_0x3e1c03,_0x1bd13d,_0x2078b3,_0x1ec5a6,_0x476eb7)=>{const _0x4aa075=_0x5cafd6;let _0xc008a7=_0x1bd13d;if(_0xc008a7===t[_0x4aa075(0x266)][_0x4aa075(0x1ad)]||_0x1bd13d===_0x4aa075(0x3a6))return!0x1;try{let _0x231862=_0x644b79['get'](_0x1bd13d);return _0x231862||(_0x231862=new t['ShapeModel'](_0xc008a7,_0x4aa075(0x2fe)+_0x1bd13d),_0x644b79[_0x4aa075(0x419)](_0x1bd13d,_0x231862)),_0x476eb7&&_0x231862['setShapeData']({'adjustValues':_0x476eb7},!0x0),_0x231862[_0x4aa075(0x3a0)]({'width':_0x2078b3,'height':_0x1ec5a6}),_0x231862[_0x4aa075(0x306)](_0x3e1c03,{'left':0x0,'top':0x0,'width':_0x2078b3,'height':_0x1ec5a6});}catch{return!0x1;}});this[_0x5cafd6(0x1c1)](_0x1fd81d),this['disposeWithMe']({'dispose':()=>_0x644b79[_0x5cafd6(0x388)]()});}[_0x2daf50(0x3d5)](_0x3e292d,_0x1a3e57,_0x48055e,_0x194f33,_0x12a8cf){const _0x5255fa=_0x2daf50;let _0x31714b=this[_0x5255fa(0x449)][_0x5255fa(0x278)](_0x3e292d,_0x1a3e57);if(!_0x31714b[_0x48055e])return;let _0x21797e={..._0x31714b[_0x48055e],'prstGeom':_0x194f33,'adjustValues':_0x12a8cf};this[_0x5255fa(0x449)][_0x5255fa(0x33c)]([_0x21797e]);}};z=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(u[_0x2daf50(0x2b8)])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(o[_0x2daf50(0x3a9)]))],z);function _0xa756(){const _0xe1024c=['updateDocumentDataMargin','Shape','getSheetCommandTarget','MenuItemType','FromArray','translateWithPrecision','_baseWidth','_props','_imageIoService','has','ShapeEditPanel','sheets-shape-ui.config','wrapStrategy','pick','UNIVER_DOC','_drawingAddListener','hidden','DependentOn','SheetSkeletonManagerService','gdRefR','reduce','_addShapeAdjustControl','_handleConnectedEndpointMove','popup','_clearConnectionSites','REMOVE','getRenderById','_isDrawingShapePointDown','getActiveSheet','visible','getAdjustNames','_updateShapeAdjustControls','executeCommand','focusDrawing','_moveConnectorWithShape','getImageSourceCache','unitId','startX','ArrangeTypeEnum','parent','switchMap','getState','multiply','_handleBasicShapeUpdateConnectorLineShape','flipY','CROSSHAIR','subscribeEvent','localToWorld','setAdjustValueByName','InsertSheetsShapeMutation','getSkeleton','fillType','clear','getShapeData','onPointerDown$','LEFT','_onSavingEditorData$','getObjectListPanelLabels','_activeImageId','DrawingApplyType','isArray','clipTop','getTextModel','gdRefY','_generatePasteMutations','transformToAxisAlignPosition','#bcbcbc','invert','onReady','_configService','interceptor','getDrawingByParam','dataModel','getBatchUpdateOp','from','_currentScene','updateContext','_registerIcons','ISheetClipboardService','sheets-shape-ui.formatShape','Arrow','clearAdjustControls','custom','name','gradientEndColor','IDrawingManagerService','getFocusDrawings','1163128hMRYjf','initShapePopupMenu','attachRangeWithCoord','cxnPointStroke','indexOf','sheets-shape-ui.objectListPanel.open','DRAWING_UNIT','shapeText','onPointerUp$','_sheetDrawingService','getShapeTextRect','getCurrentRangeDisable$','onPointerMove$','stopPropagation','setHighlighted','shape','useMemo','getCurrentScrollState','getBasicShapeRelation','getConnectionInfo','updateConnectionDetection','flipX','enableObjectsEvent','getDrawingEditable','WorksheetEditPermission','_isConnecting','getShapeModel','pipe','_adjHandlerPointerMove','worldPoints','SetSheetsShapeTextVerticalToggleCommand','getShapeType','index','_activeAdjustInfo','PictureFill','length','_index','_activeShapeModel','shouldAllowShapeTextEditorHostSizeShrink','_shapeService','5MQEbDY','blockExecuteWithoutPermission','clipByShape','open','246ZKsfEb','SheetSkeletonService','_connectionSiteObjects','getEditing','getDrawingOKey','UpdateSheetsShapeDataMutation','_init','copyType','merge','refreshTransform','DocumentDataModel','Line','_targetShapeId','updateShapeFillImage','_clearShapeAdjustControls','type','_cxnIndex','resourceCollector','params','drawingType','backward','useObservable','FOCUSING_SHAPE_TEXT_EDITOR','adjustValues','_groupCopyPasteController','localeService','getCurrentTypeOfUnit$','isHitLine','vertical','getObjectListPanelTypeName','TOP','PREDEFINED_HOOK_NAME','onload','order','sheetViewStartColumn','_addShapeConnectorHandlerObjects','ImageSourceTypeEnum','_renderManagerService','cxnPointStrokeWidth','_baseHeight','ISidebarService','_activeAdjustPointList','_reset','drawWith','SheetPermissionCheckController','disableShapeOption','delete','DRAWING_CHART','_executeConnectionCommand','ISheetDrawingService','sheets-shape-text-','_clipService','sqrt','SheetsDrawingGroupCopyPasteController','_registerFocusChangeHandler','DocumentViewModel','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shapeKey','SheetsShapeService','clip','completeEditing','getImage','_handleConnectorPointerUp','_clearPopups','ShapeFillEnum','551268RIIGdx','set','create','activeAnObject','getDrawingShapeKeyByDrawingSearch','setOnSavingEditorData','INSERT','1064938yQTRTF','_initEvents','Medium','_baseTop','get','_executeConnectedRouteResizeCommand','fontSize','objects','toDisposable','dispose','CommandType','_baseShapeTop','cxnIndex','_highlightedSiteIndex','complete','SetDrawingArrangeCommand','_loadAndSetImage','_injector','prstGeom','default','_shapeId','SHEET_SHAPE_UI_PLUGIN','getCurrentSkeleton','getObjectListPanelSectionIdForDrawingType','createInternalEditorID','_copyInfo','IUniverInstanceService','setConfig','ShapeTextFloatMenuRenderControllerBase','undo','_baseDrawingRect','getShapeTextData','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','prepareShapeTextDocumentData','_addShapeConnectorHandlerObject','_generateCopyPasteMutations','VIEW_MAIN_LEFT_TOP','jsx','_sheetSkeletonService','initTransformer','UNIVER_SHEET','strokeWidth','_drawingManagerService','_sidebarDisposable','drawing.operation.set-drawing-active','data','div','_getConnectPointInfo','URL','_generateCutPasteMutations','touchDependencies','DEFAULT_PASTE','_sheetsShapeService','isDrawingObject','sheets-shape-ui.rotateRight90','cxnPointFill','selectable','width','SHEET_VIEWPORT_KEY','_transform','RemoveSheetsShapeMutation','IMenuManagerService','getZoomRatio','getSelectedObjectMap','ShapeModel','_urlImageService','toPrimitive','_baseShapeWidth','with','_localeService','SetDrawingSelectedOperation','isInGroup','angle','video','connection-site-','sheetViewStartRow','_drawingRenderService','_activeShapeId','57591eslKee','horizontal','_sheetClipboardService','_adjName','isEditing','reverse','setPrstGeomAdjValues','worldRect','generateRandomId','computeStraightConnectorLayout','_sheetDrawingShapeRenderController','close','shapeType','viewBound','_registerComponents','FOCUSING_COMMON_DRAWINGS','getBatchRemoveOp','_addControl','_sheetCanvasPopManagerService','sheet.command.update-shape-data','memo','_registerShapeMenu','_unitId','abs','EMPTY','_commandService','shapeModel','subUnitId','fillImageSource','12xEpRSa','SetSheetsShapeRotateCommand','_subUnitId','UniverShapeEditorUIPlugin','_loadShapePictureFill','DRAWING_TABLE','getSheetBySheetId','_univerInstanceService','calculate','chart','None','5624CbkKDV','sheets-shape-ui','OBJECT_LIST_FLOATING_SECTION_ID','smartArt','connector-handler-','_popupMenuListener','getCurrentUnitOfType','shapeId','_registerOperations','_isShouldShowDrawingShapeAdjust','ICommandService','getEndConnectInfo','clearAdjustValue','Inject','symbol','_commandExecutedListener','stroke','BehaviorSubject','ShapeFloatingToolbar','disposeWithMe','attachTransformerTo','packageName','_isHighlighted','_sheetShapeAdjustController','height','makeDirty','sheet.shape.edit.panel','left','targetShapeId','sheet.shape.text.float-menu','resetCursor','editingParams$','isConnectorShape','title','getInverseCoord','shouldClipShapeTextDocument','worldPoint','startArrow','_handleFreeEndpointMove','SolidLine','highlighted','removeLinePoints','push','addClipboardHook','CUT','sheet.command.menu-insert-shape','_handleFreeEndpointPointerUp','getStartConnectInfo','1288339VakKoy','filter','clearControl$','_getConnectionSiteAngle','call','Documents','_registerGroupFeaturePasteHook','_disposePopups','_updateSrcRectByTransform','getDrawingVisible','changeStart$','Path','_initSelection','registerCommand','image','_shapeRenderController','isHit','string','axisAlignSheetTransform','ShapePickerDropdown','preValue','_clearShapeConnectorHandlerObjects','isStartConnectorPoint','normalizeShapeTextModel','_registerDrawingMoveHandler','computeConnectorResizeLayout','transform','_rerouteConnectorLine','_getShapeAdjustPointListById','srcRect','setSrcRect','_sheetPermissionCheckController','adjHandleFill','_initializedShapePopupMenu','_context','transformByState','_disposed','sheets-shape-ui.rotateLeft90','classType','stringify','getConnectionRelation','_getZoomRatio','WorkbookEditablePermission','_updateImageAdjValues','top-center','onCommandExecuted','restore','OPERATION','GROUP','registerClipDelegate','viewportScrollX','changing$','_isImagePointerDown','getInterceptPoints','sectionCanvas','fillImageSourceType','_attachConnectorObjectEvent','_transformCalculateSrcRect','_draw','DocCanvasPopManagerService','prototype','UniverInstanceType','Image','UPDATE','_initCopyPaste','SheetsSelectionsService','_drawShapeText','sheetTransform','_clearControls','useDependency','add','update$','Transform','_createControls','remove$','_attachAdjustEvent','some','_drawRichText','ShapeRenderModeEnum','_cxtHandlerPointerUp','HorizontalAlign','parse','_drawSimpleText','Module','_openShapeEditPanel','_baseShapeLeft','_getOrCreateShapeModel','next','#1a73e8','_calculateFreeEndpointAngle','_createShapeAdjustControls','getMatrix','sheet.operation.open-shape-object-list-panel','RENDER_CLASS_TYPE','ShapeLineTypeEnum','getObjectIncludeInGroup','SheetDrawingAnchor','UniverSheetsShapeUIPlugin','_resetState','_currentConnectionTarget','canvas','getAdjustValueByName','InsertShapeCommand','CopyDoubleIcon','renderDrawingShape','refreshShapeFillImage','registerFeatureMenu','_config','onDblclick$','ToggleSheetsShapeFlipCommand','startConnectionDetection','IconManager','isHighlighted','ShapeDefaultConfig','SolidFill','getTransformerByCreate','contentHeight','useState','_adjHandlerPointerUp','offsetY','sheets-shape-ui.objectListPanel.title','deriveStateFromActiveSheet$','changeEnd$','getShapePopupMenus','adjName','onerror','object','Large','table','fill','routeConnectorLineShape','entries','Observable','ShapeTextFloatToolbar','_getImageDrawingInfo','_imageShapeClipController','ShapeTypeEnum','marginTop','updateDocumentStyle','getRealBound','getDrawingSearch','ShapeGroupEnum','getDrawingPoints','setShapeProps','decorate','ShapeArrowTypeEnum','DRAWING_IMAGE','focus$','jsxs','_editingParams$','_insertShapes','_activeShapeInfo','_initPrinting','sheet.shape.floating-toolbar','getDrawingData','forEach','getTextStyle','ancestorTransform','sin','_getDrawingRect','adjHandleSize','_drawingType','isLineShape','getViewportByCell','IRenderManagerService','getObject','_initEditingParams','shapeData','top','isRenderLinePointsMode','_findShapeAtPoint','21725kPMWTY','_getImagePrstGeom','SheetCanvasPopManagerService','getDrawingDataForUnit','UpdateConnectorRelationCommand','BUTTON','sheets-shape-ui.insertShape','DocSelectionManagerService','990wbRCyd','sheet.shape.object-list.panel','_initMenu','_findNearestConnectionSite','getUnitId','keys','DRAWING_GROUP','cxnPointRadius','updateLinePoints','StraightConnector1','syncExecuteCommand','_executeConnectedRouteConnectionCommand','UniverSheetsDrawingUIPlugin','CURSOR_TYPE','clearActiveDrawingObjects','1.0.0-alpha.4','_contextService','_sheetInterceptorService','UpdateLineShapeResizeCommand','_sheetBasicShapeConnectionPointController','Plugin','SheetsShapeUIMenuSchema','getMenuHiddenObservable','univer-box-border\x20univer-px-4\x20univer-text-sm','_getShapeAdjustInfosById','point','setFillImage','offsetX','_getShapeInfo','beforeCommandExecuted','isRender','getBasicShapeRotateBound','SetDrawingApplyMutation','16BQesdp','asObservable','_insertingShapeKeys','UniverSheetsShapePlugin','getSheetId','RemoveSheetDrawingCommand','DrawingImageClipService','oKey','COMMAND','DrawingTypeEnum','_iconManager','setShouldShowAdjust','image-clip-adjust-point-','viewportScrollY','description','lineType','getCurrentLastSelection','Circle','onSteady','_activeTargetShapeId','activeSheet$','actualHeight','_setTransForm','rect','_getScrollInfo','getUnitType','computeConnectorRouteLayout','_baseShapeHeight','onTransformChange$','beginPath','insertGroupObject','DRAWING_SMART_ART','ShapeIcon','getConnectionSiteList','intercept','registerRenderModule','subscribe','text','transformToDrawingPosition','VIEW_MAIN_LEFT','_focusedDrawings','find','useEffect','interceptCommand','_updateAdjustControlPositions','LocaleService','cos','getParent','getSkeletonParam','_currentUniverService','setPrstGeom','_handleConnectedEndpointPointerUp','_registerDrawingFocusChangeHandler','getShapeDataById','DRAWING_DOM','isHorizontal','discreteRangeToRange','unit','sheets-shape-ui.hidePanel','DrawingRenderService','_activeShapeAdjustPointList','value','startY','DRAWING_VIDEO','_closeShapeEditPanel','relation','register','@univerjs-pro/sheets-shape-ui','values','getConnectorLinePoints','_getSceneAndTransformerByDrawingSearch','Disposable','end','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_baseLeft','_registerMoveHandler','clip-','_sheetPrintInterceptorService','ConnectorCoordinateTransform','render','start','_createCopyInfoByRange','prstGeomAdjValues','VerticalAlign','buildClipPath','sheet.operation.open-sheet-shape-format-panel','permissionCheckWithoutRange','version','shape-adjust-point-','getValue','_initialize','calcAdjValue','ObjectListPanelBase','_connectorObjects','_lastEditingShapeKey','_isOpenedShapeEditPanel','constructor','ShapeArrowSizeEnum','_shapeUpdateListener','isRichText','_shapes','disableObjectsEvent','_draggingConnectorId','applyPoint','Vector2','skeleton','size','Rect','trim','getDrawingOrder','_shapeTextEditingService','gdRefX','27gBBHRr','DocSelectionRenderService','DRAWING_SHAPE','resolveShapeTextEditorBehaviorShapeData','map','save','resize','DRAWING_OBJECT_LAYER_INDEX','normal','_menuManagerService','gdRefAng','transformForAngle','src','getUnit','_componentManager','sheets-shape-ui.permission.editErr','_cxtHandlerPointerMove','SheetInterceptorService','translate','endArrow','scene','refreshAdjustControls','_showConnectionSites','_registerImageShapeClipDelegate','addObject','sheets-shape-ui.toggleTextVertical','featurePluginUpdateNotification','endConnectionDetection','function','_sidebarService','setContextValue','pluginName','registerFeatureMenuOffset','changeShapeType','error','DocumentSkeleton','_isStartAdjusting','_shapeEditPanelVersion','getAdjustInfoByName','_initPermission','rotation','buildShapeTextDataUpdate','defineProperty','drawingId','unsubscribe','setCursor','getBatchAddOp','setEditing','isCurvedConnectorShape','COPY_TYPE'];_0xa756=function(){return _0xe1024c;};return _0xa756();}const re='sheet.shape.picker.component',ie='sheet.image-clip.shape-picker.component';function ae({onShapeClick:_0x2aef4a,excludeGroups:_0x2ac1d5}){const _0x1d5e6b=_0x2daf50;return(0x0,d[_0x1d5e6b(0x444)])(n['ShapePickerPanel'],{'excludeGroups':_0x2ac1d5,'onShapeClick':_0x2aef4a,'scrollContainer':_0x1d5e6b(0x37b)});}function oe(){const _0x35c484=_0x2daf50;let _0x3a47ee=(0x0,e[_0x35c484(0x223)])(o[_0x35c484(0x3a9)]),_0x38d421=(0x0,e['useDependency'])(z);return(0x0,d['jsx'])(n[_0x35c484(0x1f1)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[n[_0x35c484(0x26b)][_0x35c484(0x3e2)]],'onShapeClick':_0x31447d=>{const _0x49db61=_0x35c484;let _0x2f9e43=_0x3a47ee[_0x49db61(0x3aa)]()[_0x49db61(0x2db)](_0x3f4618=>_0x3f4618['drawingType']===i[_0x49db61(0x2bb)][_0x49db61(0x270)]);if(!_0x2f9e43)return;let {unitId:_0x5b57df,subUnitId:_0x11ad5e,drawingId:_0x3367e3}=_0x2f9e43;_0x38d421[_0x49db61(0x3d5)](_0x5b57df,_0x11ad5e,_0x3367e3,_0x31447d[_0x49db61(0x3e6)]);}});}function se(){const _0x456b7a=_0x2daf50;let _0x390c34=(0x0,e[_0x456b7a(0x223)])(e['ComponentManager']),_0x1c9095=(0x0,e[_0x456b7a(0x223)])(o['IDrawingManagerService']),_0x54897a=(0x0,e[_0x456b7a(0x223)])(i[_0x456b7a(0x439)]),_0x4c860c=_0x1c9095[_0x456b7a(0x3aa)]()[0x0],_0x448469=_0x4c860c?_0x54897a[_0x456b7a(0x2cb)](_0x4c860c[_0x456b7a(0x378)]):void 0x0,_0x4fd93b=_0x448469===i[_0x456b7a(0x21b)][_0x456b7a(0x362)]?'doc.image-clip.shape-picker.component':_0x448469===i[_0x456b7a(0x21b)][_0x456b7a(0x447)]?ie:void 0x0,_0x5cf047=_0x4fd93b?_0x390c34[_0x456b7a(0x423)](_0x4fd93b):void 0x0;return _0x5cf047?(0x0,d[_0x456b7a(0x444)])(_0x5cf047,{}):null;}function ce(){const _0x21e10d=_0x2daf50;let _0x48f307=(0x0,e[_0x21e10d(0x223)])(i[_0x21e10d(0x1b8)]);return(0x0,d[_0x21e10d(0x444)])(ae,{'onShapeClick':_0x237296=>{const _0x1779dc=_0x21e10d;_0x48f307[_0x1779dc(0x374)](F['id'],{'value':_0x237296['type'],'enhanceParams':{'endArrow':_0x237296[_0x1779dc(0x335)],'startArrow':_0x237296[_0x1779dc(0x1d3)],'horizontal':_0x237296[_0x1779dc(0x46e)],'vertical':_0x237296['vertical']}});}});}function le(_0x278c31){const _0x340acc=_0x2daf50;let _0xb8561=_0x278c31[_0x340acc(0x423)](i['IUniverInstanceService']);return{'id':F['id'],'type':e[_0x340acc(0x357)]['SELECTOR'],'selections':[{'label':{'name':re,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x340acc(0x2d2),'tooltip':_0x340acc(0x28f),'activated$':(0x0,c[_0x340acc(0x257)])(_0xb8561,!0x1,()=>new l[(_0x340acc(0x262))](_0x294c28=>{_0x294c28['next'](!0x1);})),'hidden$':(0x0,e[_0x340acc(0x2a7)])(_0x278c31,i[_0x340acc(0x21b)][_0x340acc(0x447)]),'disabled$':(0x0,c[_0x340acc(0x3b6)])(_0x278c31)};}function ue(_0x3f1021){const _0xf0bf91=_0x2daf50;let _0xecb6bd=_0x3f1021[_0xf0bf91(0x423)](i[_0xf0bf91(0x439)]);return{'id':ne['id'],'type':e['MenuItemType'][_0xf0bf91(0x28e)],'icon':_0xf0bf91(0x245),'title':_0xf0bf91(0x3b0),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,c[_0xf0bf91(0x257)])(_0xecb6bd,!0x1,()=>new l[(_0xf0bf91(0x262))](_0x4f84db=>{const _0x211d86=_0xf0bf91;_0x4f84db[_0x211d86(0x235)](!0x1);})),'hidden$':(0x0,e[_0xf0bf91(0x2a7)])(_0x3f1021,i[_0xf0bf91(0x21b)]['UNIVER_SHEET']),'disabled$':(0x0,c[_0xf0bf91(0x3b6)])(_0x3f1021)};}const de={[e['RibbonInsertGroup']['MEDIA']]:{[F['id']]:{'order':0x4,'menuItemFactory':le},[ne['id']]:{'order':4.1,'menuItemFactory':ue}}};var fe=_0x2daf50(0x2f5),pe=_0x2daf50(0x2a0);const B={'type':i[_0x2daf50(0x429)][_0x2daf50(0x20d)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},V={'type':i['CommandType']['OPERATION'],'id':_0x2daf50(0x307),'handler'(){return!0x0;}},me={};function he(_0x3f0621){const _0x5b5947=_0x2daf50;return _0x3f0621[_0x5b5947(0x31e)]()||void 0x0;}function ge(_0x4ef7e2){const _0x3166ae=_0x2daf50;switch(_0x4ef7e2['drawingType']){case i['DrawingTypeEnum']['DRAWING_IMAGE']:return'image';case i[_0x3166ae(0x2bb)][_0x3166ae(0x406)]:return _0x3166ae(0x1ac);case i['DrawingTypeEnum'][_0x3166ae(0x1a8)]:return _0x3166ae(0x25e);case i[_0x3166ae(0x2bb)][_0x3166ae(0x2d1)]:return _0x3166ae(0x1b1);case i[_0x3166ae(0x2bb)][_0x3166ae(0x2f1)]:return _0x3166ae(0x468);case i[_0x3166ae(0x2bb)][_0x3166ae(0x297)]:return'group';case i['DrawingTypeEnum'][_0x3166ae(0x3b1)]:return _0x3166ae(0x2eb);case i['DrawingTypeEnum']['DRAWING_DOM']:return'dom';case i['DrawingTypeEnum']['DRAWING_SHAPE']:return _0x3166ae(0x3ba);default:return _0x3166ae(0x25c);}}function _e(_0x4e23b4,_0x55c2b4,_0x4522e8){const _0x17d4f4=_0x2daf50;var _0x1150f0;return((_0x1150f0=_0x4e23b4[_0x17d4f4(0x3a7)])==null?void 0x0:_0x1150f0[_0x17d4f4(0x31e)]())||(0x0,u[_0x17d4f4(0x3f4)])(_0x4522e8,ge(_0x4e23b4))+'\x20'+(_0x55c2b4+0x1);}function ve(){const _0x29849e=_0x2daf50;var _0x967ae8,_0x30305f,_0x4a0645,_0x36d67d;let _0xd7196=(0x0,e[_0x29849e(0x223)])(i[_0x29849e(0x2df)]),_0x4bc734=(0x0,e['useDependency'])(i[_0x29849e(0x1b8)]),_0x28cb77=(0x0,e[_0x29849e(0x223)])(i['IUniverInstanceService']),_0x5b280b=(0x0,e[_0x29849e(0x223)])(h[_0x29849e(0x408)]),_0x4013a9=(0x0,e[_0x29849e(0x223)])(o[_0x29849e(0x3a9)]),_0x26b277=(0x0,e['useDependency'])(s[_0x29849e(0x282)]),[,_0x43e05a]=(0x0,g['useReducer'])(_0xda4b86=>_0xda4b86+0x1,0x0),_0x1ac052=_0x28cb77[_0x29849e(0x1b4)](i[_0x29849e(0x21b)][_0x29849e(0x447)]),_0x78f613=(_0x967ae8=_0x1ac052==null?void 0x0:_0x1ac052[_0x29849e(0x295)]())==null?'':_0x967ae8,_0xf39faa=(_0x30305f=_0x1ac052==null||(_0x4a0645=_0x1ac052[_0x29849e(0x370)]())==null?void 0x0:_0x4a0645[_0x29849e(0x2b6)]())==null?'':_0x30305f,_0x127931=(0x0,e['useObservable'])(()=>_0x4013a9[_0x29849e(0x271)],_0x4013a9[_0x29849e(0x3aa)](),!0x1,[_0x4013a9]);(0x0,g[_0x29849e(0x2dc)])(()=>{const _0x4cea4a=_0x29849e;let _0x1d93bd=_0x4bc734[_0x4cea4a(0x20b)](()=>_0x43e05a());return()=>_0x1d93bd[_0x4cea4a(0x428)]();},[_0x4bc734]);let _0x2cb88c=_0x78f613&&_0xf39faa?_0x5b280b[_0x29849e(0x278)](_0x78f613,_0xf39faa):{},_0x32feec=_0x78f613&&_0xf39faa?_0x5b280b[_0x29849e(0x31f)](_0x78f613,_0xf39faa):[],_0x1eb837=(0x0,g['useMemo'])(()=>(0x0,u[_0x29849e(0x38d)])(_0xd7196),[_0xd7196]),_0x4f55b9=(0x0,g[_0x29849e(0x3bb)])(()=>{const _0x7aca47=_0x29849e;let _0xe6c88d=_0x32feec[_0x7aca47(0x326)](_0x184d6c=>_0x2cb88c[_0x184d6c])[_0x7aca47(0x1df)](_0x4fc442=>!!_0x4fc442)[_0x7aca47(0x472)](),_0x632c=_0xe6c88d[_0x7aca47(0x368)]((_0x165d08,_0x35e2b0)=>(_0x165d08[(0x0,u[_0x7aca47(0x436)])(_0x35e2b0['drawingType'])]+=0x1,_0x165d08),{'canvas':0x0,'floating':0x0}),_0x15ac8b={'canvas':0x0,'floating':0x0};return _0xe6c88d[_0x7aca47(0x326)]((_0x401602,_0x544530)=>{const _0x5174ea=_0x7aca47;let _0x5d2000=(0x0,u[_0x5174ea(0x436)])(_0x401602[_0x5174ea(0x3ea)]),_0x103b9e=_0x5d2000===u[_0x5174ea(0x1b0)],_0x100a71=_0x15ac8b[_0x5d2000]++;return{'id':_0x401602[_0x5174ea(0x34d)],'name':_e(_0x401602,_0x544530,_0xd7196),'description':_0x401602[_0x5174ea(0x2c0)],'visible':_0x401602[_0x5174ea(0x364)]!==!0x0,'selectable':_0x401602[_0x5174ea(0x457)]!==!0x1,'sectionId':_0x5d2000,'sectionTitle':_0x103b9e?_0x1eb837['sectionFloating']:_0x1eb837[_0x5174ea(0x214)],'capabilities':_0x103b9e?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x103b9e&&_0x100a71>0x0,'canMoveBackward':!_0x103b9e&&_0x100a71<_0x632c[_0x5174ea(0x242)]-0x1,'canReorder':!_0x103b9e};});},[_0x2cb88c,_0x32feec,_0x1eb837[_0x29849e(0x214)],_0x1eb837['sectionFloating'],_0xd7196]),_0x3df661=(0x0,g[_0x29849e(0x3bb)])(()=>(_0x127931==null?[]:_0x127931)[_0x29849e(0x1df)](_0x2d030d=>_0x2d030d[_0x29849e(0x378)]===_0x78f613&&_0x2d030d['subUnitId']===_0xf39faa)[_0x29849e(0x326)](_0x33eea1=>_0x33eea1[_0x29849e(0x34d)]),[_0x127931,_0xf39faa,_0x78f613]),_0x5af9c0=(_0x36d67d=_0x3df661[_0x3df661[_0x29849e(0x3ce)]-0x1])==null?null:_0x36d67d,_0x20de05=_0x3bf5e8=>{const _0x48ce95=_0x29849e;var _0x3162a0;return(_0x3162a0=_0x5b280b[_0x48ce95(0x39b)]({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x3bf5e8}))==null?null:_0x3162a0;},_0x179143=_0x4e3159=>{const _0x25612c=_0x29849e;!_0x78f613||!_0x4e3159[_0x25612c(0x3ce)]||_0x4bc734[_0x25612c(0x374)](h['SetSheetDrawingCommand']['id'],{'unitId':_0x78f613,'drawings':_0x4e3159});},_0x318958=(_0x5d9cdf,_0x5613a2)=>{_0x20de05(_0x5d9cdf)&&_0x179143([{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x5d9cdf,..._0x5613a2}]);},_0x431722=(_0x19bb55,_0x26dda4)=>{const _0x1073e5=_0x29849e;if(!_0x78f613||!_0xf39faa)return;let _0x15de10=_0x26dda4?_0x3df661['includes'](_0x19bb55)?_0x3df661[_0x1073e5(0x1df)](_0x451fcb=>_0x451fcb!==_0x19bb55):[..._0x3df661,_0x19bb55]:[_0x19bb55];_0x4bc734['syncExecuteCommand'](o[_0x1073e5(0x465)]['id'],_0x15de10[_0x1073e5(0x326)](_0x3ed6a0=>({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x3ed6a0})));let _0x195faf=_0x15de10[_0x15de10['length']-0x1];_0x195faf?(0x0,n['activateDrawingObject'])(_0x26b277,{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x195faf}):(0x0,n[_0x1073e5(0x29f)])(_0x26b277,_0x78f613);},_0x5a6296=(_0x563abc,_0x4a2577)=>{const _0x29ad5c=_0x29849e;_0x179143(_0x563abc[_0x29ad5c(0x326)](_0x10a8f1=>_0x20de05(_0x10a8f1))[_0x29ad5c(0x1df)](_0x2a3d37=>!!_0x2a3d37)[_0x29ad5c(0x1df)](_0x2d83f3=>_0x2d83f3[_0x29ad5c(0x364)]!==!0x0!==_0x4a2577)[_0x29ad5c(0x326)](_0x1e2a1e=>({'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingId':_0x1e2a1e[_0x29ad5c(0x34d)],'hidden':!_0x4a2577})));},_0x34e2ea=_0x3a4012=>{const _0x11321d=_0x29849e;let _0x556de0=_0x20de05(_0x3a4012);_0x556de0&&_0x318958(_0x3a4012,{'selectable':_0x556de0[_0x11321d(0x457)]===!0x1?void 0x0:!0x1});},_0x164545=(_0xea79da,_0x1bc638)=>{var _0x5c2e1e,_0x44b5c0;let _0x431a52=he(_0x1bc638);((_0x5c2e1e=(_0x44b5c0=_0x20de05(_0xea79da))==null?void 0x0:_0x44b5c0['name'])==null?void 0x0:_0x5c2e1e)!==_0x431a52&&_0x318958(_0xea79da,{'name':_0x431a52});},_0x2c9b4f=(_0x29e05f,_0x1484e5)=>{const _0x38baa4=_0x29849e;var _0x37885b,_0x13e0fa;let _0x20409d=he(_0x1484e5);((_0x37885b=(_0x13e0fa=_0x20de05(_0x29e05f))==null?void 0x0:_0x13e0fa[_0x38baa4(0x2c0)])==null?void 0x0:_0x37885b)!==_0x20409d&&_0x318958(_0x29e05f,{'description':_0x20409d});},_0x5c3117=(_0x122bf3,_0x4d2aa8)=>{const _0x4843ed=_0x29849e;!_0x78f613||!_0xf39faa||_0x4bc734[_0x4843ed(0x374)](h[_0x4843ed(0x42e)]['id'],{'unitId':_0x78f613,'subUnitId':_0xf39faa,'drawingIds':[_0x122bf3],'arrangeType':_0x4d2aa8});};return!_0x78f613||!_0xf39faa?(0x0,d[_0x29849e(0x444)])('div',{'className':_0x29849e(0x40f),'children':_0x1eb837[_0x29849e(0x1cf)]}):(0x0,d[_0x29849e(0x444)])(u[_0x29849e(0x30e)],{'items':_0x4f55b9,'selectedIds':_0x3df661,'focusedId':_0x5af9c0,'labels':_0x1eb837,'onSelect':_0x431722,'onSetVisible':_0x5a6296,'onCommitName':_0x164545,'onCommitDescription':_0x2c9b4f,'onMoveForward':_0x439846=>_0x5c3117(_0x439846,i[_0x29849e(0x37a)]['forward']),'onMoveBackward':_0x32a80=>_0x5c3117(_0x32a80,i['ArrangeTypeEnum'][_0x29849e(0x3eb)]),'onToggleSelectable':_0x34e2ea});}let H=class{constructor(_0x4321f8){this['_renderManagerService']=_0x4321f8;}['updateShapeFillImage'](_0x4cf995,_0x3da04f){const _0xcd3481=_0x2daf50;let _0x5131ae=this['_renderManagerService']['getRenderById'](_0x4cf995[_0xcd3481(0x378)]),_0x26db52=_0x5131ae==null?void 0x0:_0x5131ae[_0xcd3481(0x336)];if(!_0x26db52)return;let _0x3dd283=(0x0,o[_0xcd3481(0x41c)])(_0x4cf995),_0x57d75c=_0x26db52[_0xcd3481(0x23d)](_0x3dd283);_0x57d75c==null||_0x57d75c[_0xcd3481(0x2ab)](_0x3da04f);}};H=j([A(0x0,s[_0x2daf50(0x282)])],H);function ye(){const _0x4591b3=_0x2daf50;let _0x3630ed=(0x0,e['useDependency'])(o[_0x4591b3(0x3a9)]),_0x13e246=(0x0,e[_0x4591b3(0x3ec)])(()=>_0x3630ed[_0x4591b3(0x271)],_0x3630ed[_0x4591b3(0x3aa)](),!0x1,[_0x3630ed]);return _0x13e246['length']===0x0?null:(0x0,d['jsx'])(_0x4591b3(0x44d),{'children':(0x0,d[_0x4591b3(0x272)])(_0x4591b3(0x44d),{'className':_0x4591b3(0x2a8),'children':[(0x0,d[_0x4591b3(0x444)])(u['DrawingCommonPanel'],{'drawings':_0x13e246,'hasCropper':!0x1}),(0x0,d[_0x4591b3(0x444)])(p[_0x4591b3(0x23e)],{'drawings':_0x13e246})]})});}function be(_0x2aa3c6){const _0x9b4096=_0x2daf50;let {unitId:_0x29b0ec,subUnitId:_0x5664d0,shapeId:_0x3d14f7}=_0x2aa3c6,_0x372ed7=(0x0,e[_0x9b4096(0x223)])(i[_0x9b4096(0x1b8)]),_0x592027=(0x0,e[_0x9b4096(0x223)])(H);return(0x0,d[_0x9b4096(0x444)])(n[_0x9b4096(0x35e)],{..._0x2aa3c6,'positionEditor':(0x0,d[_0x9b4096(0x444)])(ye,{}),'onUpdateShapeData':(_0x22eefb,_0x5f48c1)=>{x(_0x372ed7,_0x29b0ec,_0x5664d0,_0x3d14f7,_0x22eefb,_0x5f48c1);},'onUpdateLineShapeData':(_0x4796f8,_0x4e5fa2)=>{S(_0x372ed7,_0x29b0ec,_0x5664d0,_0x3d14f7,_0x4796f8,_0x4e5fa2);},'onUpdateShapeFillImage':_0x41863a=>{const _0x16fb5e=_0x9b4096;_0x592027[_0x16fb5e(0x3e4)]({'unitId':_0x29b0ec,'subUnitId':_0x5664d0,'drawingId':_0x3d14f7},_0x41863a);}});}function xe(_0x50905e){const _0x36bfe8=_0x2daf50;let _0x4b2337=_0x50905e[_0x36bfe8(0x36b)]['extraProps'];return _0x4b2337?(0x0,d['jsx'])(Se,{..._0x4b2337}):null;}function Se(_0x253775){const _0x298ebe=_0x2daf50;var _0x19c60e,_0xc9755c;let _0x39c5e8=(0x0,e[_0x298ebe(0x223)])(i[_0x298ebe(0x1b8)]),_0x305f71=(0x0,e[_0x298ebe(0x223)])(r[_0x298ebe(0x411)]),{unitId:_0x51a56d,subUnitId:_0x500a7d,drawingId:_0x4b8555,drawingType:_0x184723,shapeType:_0x1864b5}=_0x253775,[_0x5c7ff5,_0x115f89]=(0x0,g[_0x298ebe(0x253)])(_0x253775[_0x298ebe(0x285)]),_0x5f0992=(0x0,g[_0x298ebe(0x3bb)])(()=>(0x0,n[_0x298ebe(0x27a)])(_0x5c7ff5),[_0x5c7ff5]),_0x4f66e2=(0x0,g[_0x298ebe(0x3bb)])(()=>(0x0,n[_0x298ebe(0x392)])(_0x5c7ff5),[_0x5c7ff5]);(0x0,g[_0x298ebe(0x2dc)])(()=>{const _0x475be1=_0x298ebe;let _0xeecad8=_0x39c5e8[_0x475be1(0x20b)](_0x282bc5=>{const _0xcb21e5=_0x475be1;if(_0x282bc5['id']!==r[_0xcb21e5(0x3dc)]['id'])return;let _0x1f0a96=_0x305f71[_0xcb21e5(0x2e7)](_0x51a56d,_0x500a7d,_0x4b8555);_0x1f0a96&&_0x115f89(_0x1f0a96);});return()=>_0xeecad8[_0x475be1(0x428)]();},[_0x39c5e8,_0x4b8555,_0x305f71,_0x500a7d,_0x51a56d]);let _0x25067e=_0x1b21de=>{_0x115f89(_0x567707=>({..._0x567707,..._0x1b21de}));},_0x188037=_0x34eed4=>{const _0x2410f5=_0x298ebe;let _0x13f6e8=(0x0,n[_0x2410f5(0x34b)])(_0x5c7ff5,_0x34eed4);x(_0x39c5e8,_0x51a56d,_0x500a7d,_0x4b8555,{'oldShapeData':{'shapeText':_0x5c7ff5[_0x2410f5(0x3b2)]}},_0x13f6e8),_0x25067e(_0x13f6e8);};return(0x0,d[_0x298ebe(0x444)])(n[_0x298ebe(0x1c0)],{'shapeData':_0x5c7ff5,'shapeType':_0x1864b5,'textStyle':{'ff':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)]['fontFamily'],'fs':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)][_0x298ebe(0x425)],'cl':{'rgb':t[_0x298ebe(0x24f)][_0x298ebe(0x3b2)]['color']},..._0x5f0992},'textModel':_0x4f66e2?{'ha':(_0x19c60e=_0x4f66e2['ha'])==null?i[_0x298ebe(0x22e)][_0x298ebe(0x38b)]:_0x19c60e,'va':(_0xc9755c=_0x4f66e2['va'])==null?i[_0x298ebe(0x305)][_0x298ebe(0x3f5)]:_0xc9755c}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':t[_0x298ebe(0x24f)][_0x298ebe(0x25f)],'defaultGradientEndColor':t[_0x298ebe(0x24f)][_0x298ebe(0x3a8)],'defaultStrokeColor':t['ShapeDefaultConfig'][_0x298ebe(0x1be)],'onUpdateShapeData':(_0x5e9383,_0x108c88)=>{x(_0x39c5e8,_0x51a56d,_0x500a7d,_0x4b8555,_0x5e9383,_0x108c88),_0x108c88&&_0x25067e(_0x108c88);},'onUpdateText':_0x188037,'onOpenPanel':()=>{_0x39c5e8['executeCommand'](V['id'],{'unitId':_0x51a56d,'subUnitId':_0x500a7d,'drawingId':_0x4b8555});},'onDelete':()=>{const _0x400dff=_0x298ebe;_0x39c5e8[_0x400dff(0x374)](h[_0x400dff(0x2b7)]['id'],{'unitId':_0x51a56d,'drawings':[{'unitId':_0x51a56d,'subUnitId':_0x500a7d,'drawingId':_0x4b8555,'drawingType':_0x184723}]});}});}var U=class extends i[_0x2daf50(0x2f9)]{constructor(..._0xa23d7c){const _0x4c8bcf=_0x2daf50;super(..._0xa23d7c),E(this,_0x4c8bcf(0x273),new l[(_0x4c8bcf(0x1bf))](null)),E(this,_0x4c8bcf(0x1cd),this[_0x4c8bcf(0x273)]['asObservable']()),E(this,'_onSavingEditorData$',new l[(_0x4c8bcf(0x1bf))](!0x1)),E(this,'onSavingEditorData$',this[_0x4c8bcf(0x38c)][_0x4c8bcf(0x2b3)]());}['dispose'](){const _0xf4502f=_0x2daf50;this[_0xf4502f(0x273)]['next'](null),this[_0xf4502f(0x273)][_0xf4502f(0x42d)](),this[_0xf4502f(0x38c)][_0xf4502f(0x235)](!0x1),this[_0xf4502f(0x38c)][_0xf4502f(0x42d)](),super[_0xf4502f(0x428)]();}[_0x2daf50(0x351)](_0x4ac962){const _0x293005=_0x2daf50;this['_editingParams$'][_0x293005(0x235)](_0x4ac962),_0x4ac962==null&&this[_0x293005(0x38c)]['next'](!0x1);}[_0x2daf50(0x41d)](_0x229dce){const _0x5ab107=_0x2daf50;this[_0x5ab107(0x38c)][_0x5ab107(0x235)](_0x229dce);}['getEditing'](){const _0x509d06=_0x2daf50;return this[_0x509d06(0x273)][_0x509d06(0x30b)]();}[_0x2daf50(0x413)](_0x720e55){const _0x4b0b26=_0x2daf50;this[_0x4b0b26(0x3da)]()&&(this[_0x4b0b26(0x41d)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}['cancelEditing'](){this['getEditing']()&&this['setEditing'](null);}};const Ce=(0x0,g[_0x2daf50(0x481)])(()=>{const _0x5095cd=_0x2daf50;let _0x828123=(0x0,e['useDependency'])(U),_0x41f09f=(0x0,e[_0x5095cd(0x223)])(r[_0x5095cd(0x411)]),_0x337f4a=(0x0,e[_0x5095cd(0x223)])(o[_0x5095cd(0x3a9)]),_0x4eb7b5=(0x0,e[_0x5095cd(0x223)])(i['ICommandService']),_0x55603e=(0x0,e[_0x5095cd(0x223)])(s[_0x5095cd(0x282)]);return(0x0,d[_0x5095cd(0x444)])(n['ShapeTextEditorContainer'],{'adapter':(0x0,g[_0x5095cd(0x3bb)])(()=>({'getShapeModel':(_0x18ed53,_0x1644ab,_0x151f12)=>_0x41f09f[_0x5095cd(0x3c5)](_0x18ed53,_0x1644ab,_0x151f12),'getShapeData':(_0x44086c,_0x4e2054,_0xf71210)=>_0x41f09f[_0x5095cd(0x2e7)](_0x44086c,_0x4e2054,_0xf71210),'getDrawingTransform':(_0x34f1a2,_0x316c1b,_0x105e34)=>{const _0x5b11c6=_0x5095cd;let _0x479f65=_0x337f4a[_0x5b11c6(0x39b)]({'unitId':_0x34f1a2,'subUnitId':_0x316c1b,'drawingId':_0x105e34});return _0x479f65==null?void 0x0:_0x479f65[_0x5b11c6(0x1f8)];},'updateShapeText':({unitId:_0x3f6c90,subUnitId:_0x254174,shapeId:_0x4fc0de,shapeText:_0x2636e5,oldShapeText:_0x448111})=>{const _0x29c941=_0x5095cd;_0x4eb7b5[_0x29c941(0x374)](b['id'],{'unitId':_0x3f6c90,'subUnitId':_0x254174,'shapeId':_0x4fc0de,'shapeData':{'shapeText':_0x2636e5},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x448111}}});},'updateHostSize':({unitId:_0x13bba6,subUnitId:_0x445fdb,shapeId:_0x2089f4,width:_0x5a87c4,height:_0x2a3bcb})=>{const _0x11f159=_0x5095cd;var _0x2fc72a,_0xa7b6d2,_0x42bbf3;let _0x286e1c=_0x337f4a['getDrawingByParam']({'unitId':_0x13bba6,'subUnitId':_0x445fdb,'drawingId':_0x2089f4}),_0x374b5f=_0x286e1c==null?void 0x0:_0x286e1c[_0x11f159(0x1f8)];if(!_0x286e1c||!_0x374b5f)return;let _0x17a7ea={..._0x374b5f,'width':_0x5a87c4,'height':_0x2a3bcb},_0x2aa1b1=(_0x2fc72a=_0x55603e[_0x11f159(0x36e)](_0x13bba6))==null||(_0x2fc72a=_0x2fc72a[_0x11f159(0x463)](c[_0x11f159(0x366)])[_0x11f159(0x2e2)](_0x445fdb))==null?void 0x0:_0x2fc72a[_0x11f159(0x31b)],_0x318f5c=_0x2aa1b1?(_0xa7b6d2=(0x0,h[_0x11f159(0x2d8)])(_0x17a7ea,_0x2aa1b1))==null?_0x286e1c[_0x11f159(0x221)]:_0xa7b6d2:_0x286e1c['sheetTransform'],_0x47b314=_0x2aa1b1?(_0x42bbf3=(0x0,h[_0x11f159(0x395)])(_0x17a7ea,_0x2aa1b1))==null?_0x286e1c['axisAlignSheetTransform']:_0x42bbf3:_0x286e1c[_0x11f159(0x1f0)];_0x4eb7b5[_0x11f159(0x374)](h['SetSheetDrawingCommand']['id'],{'unitId':_0x13bba6,'drawings':[{..._0x286e1c,'transform':_0x17a7ea,'sheetTransform':_0x318f5c,'axisAlignSheetTransform':_0x47b314}]});},'allowHostSizeShrink':({unitId:_0x742cfe,subUnitId:_0x26e966,shapeId:_0xa24d4c})=>(0x0,n[_0x5095cd(0x3d1)])(_0x41f09f[_0x5095cd(0x2e7)](_0x742cfe,_0x26e966,_0xa24d4c))}),[_0x4eb7b5,_0x337f4a,_0x55603e,_0x41f09f]),'editingService':_0x828123,'editorUnitId':ee,'positionOptions':(0x0,g[_0x5095cd(0x3bb)])(()=>({'viewportKeys':{'main':s[_0x5095cd(0x459)]['VIEW_MAIN'],'leftTop':s[_0x5095cd(0x459)][_0x5095cd(0x443)],'top':s[_0x5095cd(0x459)]['VIEW_MAIN_TOP'],'left':s[_0x5095cd(0x459)][_0x5095cd(0x2d9)]},'getSkeleton':(_0x3d2b98,_0x1c98fd)=>{const _0x1d40dc=_0x5095cd;var _0x503c03,_0x1a9360;return(_0x503c03=(_0x1a9360=_0x3d2b98[_0x1d40dc(0x463)](c[_0x1d40dc(0x366)])[_0x1d40dc(0x2e2)](_0x1c98fd['subUnitId']))==null?void 0x0:_0x1a9360[_0x1d40dc(0x31b)])==null?null:_0x503c03;}}),[])});});let W=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4ce054,_0x44a8b2){const _0x48ff55=_0x2daf50;super(),this[_0x48ff55(0x330)]=_0x4ce054,this[_0x48ff55(0x2bc)]=_0x44a8b2,this['_registerIcons'](),this['_registerComponents']();}[_0x2daf50(0x3a1)](){const _0x106b15=_0x2daf50;this['_iconManager'][_0x106b15(0x35d)](_0x106b15(0x245))||this[_0x106b15(0x1c1)](this[_0x106b15(0x2bc)][_0x106b15(0x2f4)]({'CopyDoubleIcon':m[_0x106b15(0x245)]}));}[_0x2daf50(0x47b)](){const _0x59c017=_0x2daf50;this[_0x59c017(0x1c1)](this['_componentManager'][_0x59c017(0x2f4)](I,be)),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)][_0x59c017(0x2f4)](L,ve)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](re,ce)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](ie,oe)),this[_0x59c017(0x330)][_0x59c017(0x423)](u[_0x59c017(0x43f)])||this['disposeWithMe'](this['_componentManager'][_0x59c017(0x2f4)](u[_0x59c017(0x43f)],se)),this[_0x59c017(0x1c1)](this['_componentManager']['register'](R,xe)),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)]['register'](te,n[_0x59c017(0x263)])),this[_0x59c017(0x1c1)](this[_0x59c017(0x330)][_0x59c017(0x2f4)]('SheetShapeTextEditorContainer',Ce));}};W=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(e['ComponentManager'])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(e[_0x2daf50(0x24d)]))],W);let G=class extends i[_0x2daf50(0x2f9)]{constructor(_0x594571,_0x372fee,_0x4af390,_0x116f32,_0x4ee512){const _0x26c2e6=_0x2daf50;super(),this[_0x26c2e6(0x200)]=_0x594571,this[_0x26c2e6(0x449)]=_0x372fee,this['_renderManagerService']=_0x4af390,this['_univerInstanceService']=_0x116f32,this[_0x26c2e6(0x265)]=_0x4ee512,E(this,_0x26c2e6(0x38e),null),E(this,_0x26c2e6(0x19c),null),E(this,_0x26c2e6(0x1a5),null),E(this,_0x26c2e6(0x400),void 0x0),E(this,'_shapes',[]),E(this,'_baseLeft',0x0),E(this,_0x26c2e6(0x422),0x0),E(this,_0x26c2e6(0x35a),0x0),E(this,_0x26c2e6(0x3fe),0x0),E(this,_0x26c2e6(0x346),!0x1),E(this,_0x26c2e6(0x3cc),void 0x0),E(this,_0x26c2e6(0x3d0),void 0x0),E(this,'_adjHandlerPointerMove',void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x26c2e6(0x212),!0x1),this[_0x26c2e6(0x40d)](),this[_0x26c2e6(0x2fd)]();}['clearAdjustControls'](){const _0x2f6858=_0x2daf50;this[_0x2f6858(0x222)]();}[_0x2daf50(0x337)](){const _0xa99a73=_0x2daf50;this[_0xa99a73(0x222)](),this[_0xa99a73(0x227)](!0x0);}[_0x2daf50(0x234)](_0x1aff75,_0x276237,_0x1b9912,_0x1b7fea){const _0x413037=_0x2daf50;let _0x339454=_0x1aff75;if(!(_0x339454===t[_0x413037(0x266)][_0x413037(0x1ad)]||_0x1aff75===_0x413037(0x3a6)))try{let _0x475f0f=new t[(_0x413037(0x45f))](_0x339454,'clip-adj-'+_0x1aff75);return _0x1b7fea&&_0x475f0f['setShapeData']({'adjustValues':_0x1b7fea},!0x0),_0x475f0f[_0x413037(0x3a0)]({'width':_0x276237,'height':_0x1b9912}),_0x475f0f;}catch{return;}}['_getImageDrawingInfo'](_0x11c49e,_0x44a789,_0x1d61a6){const _0x24df19=_0x2daf50;let _0x479236={'unitId':_0x11c49e,'subUnitId':_0x44a789,'drawingId':_0x1d61a6},_0x49bb3f=this[_0x24df19(0x449)][_0x24df19(0x39b)](_0x479236);if(!(!_0x49bb3f||_0x49bb3f[_0x24df19(0x3ea)]!==i[_0x24df19(0x2bb)][_0x24df19(0x270)]))return _0x49bb3f;}['_getImagePrstGeom'](_0xd19480,_0x39fe75,_0x2aa4b7){const _0x4406c6=_0x2daf50;let _0x5becf3=this[_0x4406c6(0x3fc)][_0x4406c6(0x36e)](_0xd19480);if(!_0x5becf3)return;let {scene:_0x11e78a}=_0x5becf3,_0xb0c84e=(0x0,o[_0x4406c6(0x41c)])({'unitId':_0xd19480,'subUnitId':_0x39fe75,'drawingId':_0x2aa4b7}),_0x7fccfc=_0x11e78a[_0x4406c6(0x283)](_0xb0c84e);if(_0x7fccfc instanceof s[_0x4406c6(0x21c)]){let _0x3248d8=_0x7fccfc[_0x4406c6(0x431)];if(_0x3248d8)return{'prstGeom':_0x3248d8,'adjustValues':_0x7fccfc['prstGeomAdjValues']};}}[_0x2daf50(0x227)](_0x458ea3=!0x1){const _0x39bc48=_0x2daf50;if(!this[_0x39bc48(0x19c)]||!this[_0x39bc48(0x1a5)]||!this[_0x39bc48(0x38e)])return;let _0x4274fc=this[_0x39bc48(0x3fc)][_0x39bc48(0x36e)](this['_unitId']);if(!_0x4274fc||!_0x4274fc[_0x39bc48(0x463)](c[_0x39bc48(0x366)])[_0x39bc48(0x435)]())return;let {scene:_0x1acf11}=_0x4274fc,_0x45ae13=this['_getImageDrawingInfo'](this[_0x39bc48(0x19c)],this[_0x39bc48(0x1a5)],this[_0x39bc48(0x38e)]);if(!_0x45ae13)return;let {transform:_0x5a4518}=_0x45ae13;if(!_0x5a4518)return;let {left:_0xc79ed7,top:_0x27b887,width:_0x24c1c6,height:_0x49374a,flipX:_0x4b882f,flipY:_0x348ea8,angle:_0x130fd0=0x0}=_0x5a4518;if(_0xc79ed7===void 0x0||_0x27b887===void 0x0)return;let _0x419cd5=this['_getImagePrstGeom'](this['_unitId'],this[_0x39bc48(0x1a5)],this[_0x39bc48(0x38e)]);if(!_0x419cd5)return;if(_0x458ea3){let _0x12e328=this['_getOrCreateShapeModel'](_0x419cd5[_0x39bc48(0x431)],_0x24c1c6||0x0,_0x49374a||0x0,_0x419cd5[_0x39bc48(0x3ee)]);if(!_0x12e328)return;this[_0x39bc48(0x400)]=_0x12e328[_0x39bc48(0x26c)]();}let _0x1ccbd3=this[_0x39bc48(0x400)];if(!(!_0x1ccbd3||_0x1ccbd3[_0x39bc48(0x3ce)]===0x0))for(let _0x197fb7=0x0;_0x197fb7<_0x1ccbd3[_0x39bc48(0x3ce)];_0x197fb7++){let _0x50c6ab=_0x1ccbd3[_0x197fb7],_0x46288b=_0x50c6ab['x'],_0x4a75d9=_0x50c6ab['y'];if(_0x4b882f&&(_0x46288b=(_0x24c1c6||0x0)-_0x46288b),_0x348ea8&&(_0x4a75d9=(_0x49374a||0x0)-_0x4a75d9),_0x130fd0!==0x0){let _0x107dcc=(_0x24c1c6||0x0)/0x2,_0x294565=(_0x49374a||0x0)/0x2,_0x4ff18f=_0x130fd0*Math['PI']/0xb4,_0x218dca=Math['cos'](_0x4ff18f),_0x3a11b0=Math['sin'](_0x4ff18f),_0x2e73e8=_0x46288b-_0x107dcc,_0x457e2e=_0x4a75d9-_0x294565;_0x46288b=_0x107dcc+(_0x2e73e8*_0x218dca-_0x457e2e*_0x3a11b0),_0x4a75d9=_0x294565+(_0x2e73e8*_0x3a11b0+_0x457e2e*_0x218dca);}let _0x51ae3d={'x':_0x46288b,'y':_0x4a75d9,'adjName':_0x50c6ab[_0x39bc48(0x25a)]};this[_0x39bc48(0x47e)](_0x1acf11,_0x51ae3d,_0x51ae3d[_0x39bc48(0x25a)],_0xc79ed7,_0x27b887,this[_0x39bc48(0x19c)],this[_0x39bc48(0x1a5)]);}}[_0x2daf50(0x47e)](_0x55c6c1,_0x2e2fa3,_0x45f78b,_0x4657fa,_0x11d294,_0x3906be,_0x3ea908){const _0x1e2c16=_0x2daf50;if(!this[_0x1e2c16(0x38e)])return;let _0x2a2d72=_0x1e2c16(0x2be)+this[_0x1e2c16(0x38e)]+'-'+_0x45f78b,_0x399a06=_0x55c6c1[_0x1e2c16(0x23d)](_0x2a2d72);if(_0x399a06){_0x399a06[_0x1e2c16(0x201)]({'left':_0x2e2fa3['x']+_0x4657fa-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)],'top':_0x2e2fa3['y']+_0x11d294-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)]});return;}let _0x28807b=new k(_0x2a2d72,{'left':_0x2e2fa3['x']+_0x4657fa-t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)],'top':_0x2e2fa3['y']+_0x11d294-t['ShapeDefaultConfig'][_0x1e2c16(0x27e)],'adjName':_0x45f78b,'shapeId':this[_0x1e2c16(0x38e)],'unitId':_0x3906be,'subUnitId':_0x3ea908,'width':t[_0x1e2c16(0x24f)]['adjHandleSize']+0x8,'height':t[_0x1e2c16(0x24f)][_0x1e2c16(0x27e)]+0x8,'zIndex':s[_0x1e2c16(0x329)]+0x1,'evented':!0x0});this[_0x1e2c16(0x316)][_0x1e2c16(0x1d8)](_0x28807b),this[_0x1e2c16(0x229)](_0x28807b,_0x55c6c1,_0x45f78b),_0x55c6c1['addObject'](_0x28807b,s[_0x1e2c16(0x329)]+0x1);}['_clearControls'](){const _0x5d90a7=_0x2daf50;this[_0x5d90a7(0x316)]['length']!==0x0&&(this[_0x5d90a7(0x316)][_0x5d90a7(0x279)](_0x4b1980=>_0x4b1980['dispose']()),this[_0x5d90a7(0x316)]=[]);}[_0x2daf50(0x2ca)](_0x227c04,_0x7ab7ff){const _0x18338a=_0x2daf50;var _0x2a8ae5;let _0x2f82ef={'x':0x0,'y':0x0},_0x8d5ceb=this['_renderManagerService']['getRenderById'](_0x227c04);if(!_0x8d5ceb||!_0x8d5ceb['with'](c[_0x18338a(0x366)])[_0x18338a(0x386)](_0x7ab7ff))return _0x2f82ef;let _0x223d21=_0x8d5ceb[_0x18338a(0x463)](c['SheetScrollManagerService']),_0x434812=_0x223d21==null?void 0x0:_0x223d21[_0x18338a(0x3bc)]();if(!_0x434812)return _0x2f82ef;let _0x3d9a2c=(_0x2a8ae5=this[_0x18338a(0x1aa)]['getUnit'](_0x227c04))==null?void 0x0:_0x2a8ae5[_0x18338a(0x1a9)](_0x7ab7ff);if(!_0x3d9a2c)return _0x2f82ef;let _0x1eaa8b=(0x0,c[_0x18338a(0x281)])(_0x434812[_0x18338a(0x46a)],_0x434812['sheetViewStartColumn'],_0x8d5ceb['scene'],_0x3d9a2c);return _0x1eaa8b?{'x':_0x1eaa8b[_0x18338a(0x210)],'y':_0x1eaa8b['viewportScrollY']}:_0x2f82ef;}[_0x2daf50(0x207)](_0x49f1d0,_0x1dfe7d){const _0x50e691=_0x2daf50;var _0x4accb3,_0xf32e51;let _0x1cac25=(_0x4accb3=this['_univerInstanceService'][_0x50e691(0x32f)](_0x49f1d0))==null?void 0x0:_0x4accb3[_0x50e691(0x1a9)](_0x1dfe7d);return(_0xf32e51=_0x1cac25==null?void 0x0:_0x1cac25[_0x50e691(0x45d)]())==null?0x1:_0xf32e51;}[_0x2daf50(0x229)](_0x2885a0,_0x1048d7,_0x17ba41){const _0x3fbb12=_0x2daf50;this[_0x3fbb12(0x1c1)]((0x0,i['toDisposable'])(_0x2885a0[_0x3fbb12(0x38a)][_0x3fbb12(0x382)]((_0x5f388f,_0x2aa911)=>{const _0x27e6a1=_0x3fbb12;var _0x2dc698,_0x3de9a5,_0xe7914f;let {unitId:_0x327417,subUnitId:_0x27f26d,drawingId:_0x120104}=_0x2885a0['getDrawingSearch'](),_0x128c27=this[_0x27e6a1(0x264)](_0x327417,_0x27f26d,_0x120104);if(!(_0x128c27!=null&&_0x128c27['transform']))return;let {left:_0x2ccad6,top:_0x4376c6,width:_0x1c2cf0,height:_0x7a9f6b}=_0x128c27[_0x27e6a1(0x1f8)];this[_0x27e6a1(0x2fc)]=_0x2ccad6||0x0,this['_baseTop']=_0x4376c6||0x0,this['_baseWidth']=_0x1c2cf0||0x0,this['_baseHeight']=_0x7a9f6b||0x0;let _0xb3bb5f=!!((_0x2dc698=_0x128c27[_0x27e6a1(0x1f8)])!=null&&_0x2dc698[_0x27e6a1(0x3c0)]),_0x21f031=!!((_0x3de9a5=_0x128c27['transform'])!=null&&_0x3de9a5['flipY']),_0x24eb74=((_0xe7914f=_0x128c27[_0x27e6a1(0x1f8)])==null?void 0x0:_0xe7914f[_0x27e6a1(0x467)])||0x0,_0x51a18d=this[_0x27e6a1(0x28a)](_0x327417,_0x27f26d,_0x120104);if(!_0x51a18d)return;let _0x26de77=this[_0x27e6a1(0x234)](_0x51a18d[_0x27e6a1(0x431)],this['_baseWidth'],this['_baseHeight'],_0x51a18d[_0x27e6a1(0x3ee)]);if(!_0x26de77||(this['_activeShapeModel']=_0x26de77,this['_activeAdjustInfo']=_0x26de77[_0x27e6a1(0x348)](_0x17ba41),!this[_0x27e6a1(0x3cc)]))return;this['_isStartAdjusting']=!0x0,_0x1048d7[_0x27e6a1(0x317)]();let _0xe76bc8=_0x51a18d['prstGeom'];this[_0x27e6a1(0x3c7)]=_0x1048d7[_0x27e6a1(0x3b7)][_0x27e6a1(0x382)]((_0x1735a8,_0x5331bd)=>{const _0x15c1fc=_0x27e6a1;if(!this[_0x15c1fc(0x346)])return;let {offsetX:_0x44eeb5,offsetY:_0x2d054c}=_0x1735a8,_0x3b5316=this[_0x15c1fc(0x3cc)];if(!this[_0x15c1fc(0x3d0)]||!_0x3b5316)return;_0x1048d7[_0x15c1fc(0x317)](),_0x1048d7[_0x15c1fc(0x34f)](s[_0x15c1fc(0x29e)]['CROSSHAIR']);let _0x222343={'left':0x0,'top':0x0,'width':this[_0x15c1fc(0x35a)],'height':this[_0x15c1fc(0x3fe)]},_0x20faf3=this[_0x15c1fc(0x2ca)](_0x327417,_0x27f26d),_0x1c6501=this['_getZoomRatio'](_0x327417,_0x27f26d),_0x157ed6=_0x44eeb5/_0x1c6501+_0x20faf3['x']-this[_0x15c1fc(0x2fc)],_0x53a84b=_0x2d054c/_0x1c6501+_0x20faf3['y']-this[_0x15c1fc(0x422)];if(_0x24eb74!==0x0){let _0x3131a9=this[_0x15c1fc(0x35a)]/0x2,_0x75a6e1=this['_baseHeight']/0x2,_0x549680=_0x24eb74*Math['PI']/0xb4,_0x44addc=Math['cos'](_0x549680),_0x6cdf22=Math['sin'](_0x549680),_0x176d82=_0x157ed6-_0x3131a9,_0x17150b=_0x53a84b-_0x75a6e1;_0x157ed6=_0x3131a9+(_0x176d82*_0x44addc+_0x17150b*_0x6cdf22),_0x53a84b=_0x75a6e1+(-_0x176d82*_0x6cdf22+_0x17150b*_0x44addc);}_0xb3bb5f&&(_0x157ed6=this['_baseWidth']-_0x157ed6),_0x21f031&&(_0x53a84b=this[_0x15c1fc(0x3fe)]-_0x53a84b);let _0x33fe22=this[_0x15c1fc(0x3d0)][_0x15c1fc(0x30d)](_0x222343,{'x':_0x157ed6,'y':_0x53a84b},_0x3b5316,_0xb3bb5f,_0x21f031),_0x3549cd=_0x3b5316['gdRefX']||_0x3b5316['gdRefY']||_0x3b5316[_0x15c1fc(0x32c)]||_0x3b5316['gdRefR'];_0x3549cd!==void 0x0&&(this[_0x15c1fc(0x3d0)]['setAdjustValueByName'](_0x3549cd,_0x33fe22),this[_0x15c1fc(0x3d0)][_0x15c1fc(0x3a0)]({'width':this['_baseWidth'],'height':this['_baseHeight']}),this[_0x15c1fc(0x209)](_0x327417,_0x27f26d,_0x120104,_0x3549cd,_0x33fe22),this[_0x15c1fc(0x400)]=this[_0x15c1fc(0x3d0)][_0x15c1fc(0x26c)](),this[_0x15c1fc(0x3cc)]=this[_0x15c1fc(0x3d0)]['getAdjustInfoByName'](_0x17ba41),this[_0x15c1fc(0x227)](),_0x5331bd['stopPropagation']());}),this[_0x27e6a1(0x254)]=_0x1048d7[_0x27e6a1(0x3b3)][_0x27e6a1(0x382)]((_0x281b91,_0x1f4881)=>{const _0x152963=_0x27e6a1;if(this[_0x152963(0x3c7)][_0x152963(0x34e)](),this[_0x152963(0x254)][_0x152963(0x34e)](),_0x1048d7[_0x152963(0x1cc)](),this[_0x152963(0x3d0)]){let _0x10422f=this[_0x152963(0x3d0)]['getAdjustNames'](),_0x44589c={};for(let _0x553703 of _0x10422f){let _0x249941=this[_0x152963(0x3d0)]['getAdjustValueByName'](_0x553703);_0x249941!==void 0x0&&(_0x44589c[_0x553703]=_0x249941);}this[_0x152963(0x265)][_0x152963(0x3d5)](_0x327417,_0x27f26d,_0x120104,_0xe76bc8,_0x44589c);}this[_0x152963(0x3cc)]=void 0x0,this[_0x152963(0x3d0)]=void 0x0,this[_0x152963(0x346)]=!0x1,_0x1f4881[_0x152963(0x3b8)](),_0x1048d7[_0x152963(0x3c1)]();}),_0x2aa911[_0x27e6a1(0x3b8)]();})));}[_0x2daf50(0x209)](_0x48d387,_0x312d70,_0x3ce1e6,_0x431c17,_0x4b0395){const _0x5cb0e1=_0x2daf50;let _0x504b83=this['_renderManagerService'][_0x5cb0e1(0x36e)](_0x48d387);if(!_0x504b83)return;let {scene:_0x2fe0e3}=_0x504b83,_0x5b8ae1=(0x0,o[_0x5cb0e1(0x41c)])({'unitId':_0x48d387,'subUnitId':_0x312d70,'drawingId':_0x3ce1e6}),_0x4b67c6=_0x2fe0e3[_0x5cb0e1(0x283)](_0x5b8ae1);if(_0x4b67c6 instanceof s['Image']){var _0x314b70;let _0x2af0d8=(_0x314b70=_0x4b67c6[_0x5cb0e1(0x304)])==null?{}:_0x314b70;_0x4b67c6[_0x5cb0e1(0x473)]({..._0x2af0d8,[_0x431c17]:_0x4b0395}),_0x4b67c6[_0x5cb0e1(0x1c7)](!0x0);}}[_0x2daf50(0x2fd)](){const _0x43842c=_0x2daf50;let _0x481c30=this['_univerInstanceService'][_0x43842c(0x3f1)](i[_0x43842c(0x21b)][_0x43842c(0x447)]);this[_0x43842c(0x1c1)](_0x481c30['pipe']((0x0,l['switchMap'])(_0x5f4a83=>_0x5f4a83?_0x5f4a83[_0x43842c(0x2c6)][_0x43842c(0x3c6)]((0x0,l[_0x43842c(0x37c)])(_0x45afd1=>{const _0x2f385b=_0x43842c;if(!_0x45afd1)return l[_0x2f385b(0x19e)];let _0x1edb89=_0x5f4a83[_0x2f385b(0x295)](),_0x389cc7=this[_0x2f385b(0x3fc)][_0x2f385b(0x36e)](_0x1edb89),_0x1e3c51=_0x389cc7==null?void 0x0:_0x389cc7[_0x2f385b(0x336)];return _0x1e3c51?(0x0,l['of'])(_0x1e3c51):l[_0x2f385b(0x19e)];})):l[_0x43842c(0x19e)]))[_0x43842c(0x2d6)](_0x1089c5=>{const _0x2a197f=_0x43842c;let _0x3a4e7c=_0x1089c5['getTransformerByCreate']();this[_0x2a197f(0x1c1)](_0x1089c5[_0x2a197f(0x3b7)][_0x2a197f(0x382)](()=>{const _0x25c9cc=_0x2a197f;this['_isImagePointerDown']&&this[_0x25c9cc(0x222)]();})),this['disposeWithMe'](_0x3a4e7c['changeStart$'][_0x2a197f(0x2d6)](_0x20ec96=>{const _0x196cca=_0x2a197f;let {objects:_0x6eb460}=_0x20ec96;if(this['_createControls'](),_0x6eb460!==null&&_0x6eb460[_0x196cca(0x31c)]===0x1){let _0x410a5f=_0x6eb460[_0x196cca(0x2f6)]()[_0x196cca(0x235)]()['value'];_0x410a5f instanceof s[_0x196cca(0x21c)]&&_0x410a5f[_0x196cca(0x431)]&&(this['_isImagePointerDown']=!0x0);}})),this['disposeWithMe'](_0x3a4e7c['changing$'][_0x2a197f(0x2d6)](()=>{const _0x53d4b9=_0x2a197f;this[_0x53d4b9(0x212)]&&this[_0x53d4b9(0x222)]();})),this[_0x2a197f(0x1c1)](_0x1089c5['onPointerUp$'][_0x2a197f(0x382)](()=>{const _0x418891=_0x2a197f;this[_0x418891(0x212)]&&(this[_0x418891(0x212)]=!0x1,this[_0x418891(0x227)]());})),this[_0x2a197f(0x1c1)](_0x3a4e7c[_0x2a197f(0x258)][_0x2a197f(0x2d6)](()=>{const _0x8125a=_0x2a197f;if(this[_0x8125a(0x19c)]&&this[_0x8125a(0x1a5)]&&this[_0x8125a(0x38e)]){let _0x9f05cb=this[_0x8125a(0x28a)](this[_0x8125a(0x19c)],this[_0x8125a(0x1a5)],this[_0x8125a(0x38e)]);if(_0x9f05cb){var _0x5b70ce,_0x20d410;let _0x196e74=this[_0x8125a(0x264)](this[_0x8125a(0x19c)],this[_0x8125a(0x1a5)],this[_0x8125a(0x38e)]),_0x1b70c3=(_0x196e74==null||(_0x5b70ce=_0x196e74[_0x8125a(0x1f8)])==null?void 0x0:_0x5b70ce[_0x8125a(0x458)])||0x0,_0x26615d=(_0x196e74==null||(_0x20d410=_0x196e74['transform'])==null?void 0x0:_0x20d410[_0x8125a(0x1c6)])||0x0,_0x31ff8b=this[_0x8125a(0x234)](_0x9f05cb[_0x8125a(0x431)],_0x1b70c3,_0x26615d,_0x9f05cb[_0x8125a(0x3ee)]);_0x31ff8b&&(this[_0x8125a(0x400)]=_0x31ff8b[_0x8125a(0x26c)](),this[_0x8125a(0x222)](),this[_0x8125a(0x227)](!0x0));}}}));}));}[_0x2daf50(0x40d)](){const _0x192375=_0x2daf50;this['disposeWithMe'](this[_0x192375(0x449)][_0x192375(0x271)][_0x192375(0x2d6)](_0x3d84e9=>{const _0x1da373=_0x192375;if(_0x3d84e9[_0x1da373(0x3ce)]===0x1){let _0xe28da7=_0x3d84e9[0x0];if(_0xe28da7['drawingType']===i[_0x1da373(0x2bb)][_0x1da373(0x270)]){let {unitId:_0x5ecc10,subUnitId:_0x127ef0,drawingId:_0x4ffd09}=_0xe28da7,_0x2ef2e7=this['_getImagePrstGeom'](_0x5ecc10,_0x127ef0,_0x4ffd09);if(_0x2ef2e7){var _0x39e984,_0x5ca7aa;this['_activeImageId']=_0x4ffd09,this['_unitId']=_0x5ecc10,this['_subUnitId']=_0x127ef0;let _0x267e66=this[_0x1da373(0x264)](_0x5ecc10,_0x127ef0,_0x4ffd09),_0x1239df=(_0x267e66==null||(_0x39e984=_0x267e66[_0x1da373(0x1f8)])==null?void 0x0:_0x39e984[_0x1da373(0x458)])||0x0,_0x611583=(_0x267e66==null||(_0x5ca7aa=_0x267e66[_0x1da373(0x1f8)])==null?void 0x0:_0x5ca7aa['height'])||0x0,_0x343478=this[_0x1da373(0x234)](_0x2ef2e7[_0x1da373(0x431)],_0x1239df,_0x611583,_0x2ef2e7[_0x1da373(0x3ee)]);_0x343478&&(this[_0x1da373(0x400)]=_0x343478[_0x1da373(0x26c)]()),this[_0x1da373(0x222)](),this['_createControls'](!0x0);}else this[_0x1da373(0x240)]();}else this[_0x1da373(0x240)]();}else this[_0x1da373(0x240)]();})),this[_0x192375(0x1c1)](this[_0x192375(0x449)]['update$'][_0x192375(0x2d6)](_0xda27db=>{const _0x207b20=_0x192375;if(_0xda27db[_0x207b20(0x3ce)]===0x1){let _0x5deb4b=_0xda27db[0x0],_0x229cbd=this[_0x207b20(0x449)][_0x207b20(0x39b)](_0x5deb4b);(_0x229cbd==null?void 0x0:_0x229cbd['drawingType'])===i['DrawingTypeEnum'][_0x207b20(0x270)]&&this[_0x207b20(0x38e)]===_0x5deb4b[_0x207b20(0x34d)]&&(this[_0x207b20(0x222)](),this[_0x207b20(0x227)](!0x0));}})),this[_0x192375(0x1c1)](this[_0x192375(0x449)][_0x192375(0x228)]['subscribe'](_0x4eb936=>{const _0x20f8f6=_0x192375;for(let _0x4f231c of _0x4eb936)this[_0x20f8f6(0x38e)]===_0x4f231c[_0x20f8f6(0x34d)]&&this['_resetState']();}));}[_0x2daf50(0x240)](){const _0x254b27=_0x2daf50;this[_0x254b27(0x38e)]=null,this[_0x254b27(0x19c)]=null,this[_0x254b27(0x1a5)]=null,this[_0x254b27(0x400)]=void 0x0,this[_0x254b27(0x222)]();}};G=j([A(0x1,o['IDrawingManagerService']),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(s['IRenderManagerService'])),A(0x3,i['IUniverInstanceService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(z))],G);let K=class extends i['Disposable']{constructor(_0x47ebaf,_0x3ad701,_0x3463bf,_0x4681f5){const _0x37683d=_0x2daf50;super(),this['_univerInstanceService']=_0x47ebaf,this['_sheetInterceptorService']=_0x3ad701,this['_sheetDrawingService']=_0x3463bf,this[_0x37683d(0x453)]=_0x4681f5,this['_initSheetChange']();}['_initSheetChange'](){const _0x3c0ad5=_0x2daf50;this['disposeWithMe'](this[_0x3c0ad5(0x2a2)][_0x3c0ad5(0x2dd)]({'getMutations':_0x362857=>{const _0x4de65b=_0x3c0ad5;if(_0x362857['id']===a['RemoveSheetCommand']['id']){let _0x30ec18=(0x0,a[_0x4de65b(0x356)])(this[_0x4de65b(0x1aa)],_0x362857[_0x4de65b(0x3e9)]);if(!_0x30ec18)return{'redos':[],'undos':[]};let {unitId:_0x15ce0a,subUnitId:_0xdbf64f}=_0x30ec18,_0x5cb6d4=this[_0x4de65b(0x3b4)][_0x4de65b(0x278)](_0x15ce0a,_0xdbf64f),_0x3c4ed0=Object['values'](_0x5cb6d4)['filter'](_0x409ba8=>_0x409ba8[_0x4de65b(0x3ea)]===i['DrawingTypeEnum'][_0x4de65b(0x324)]);if(_0x3c4ed0[_0x4de65b(0x3ce)]===0x0)return{'redos':[],'undos':[]};let _0x3e7a53=[],_0x18fe4a=[];for(let _0x3b7d03=0x0;_0x3b7d03<_0x3c4ed0[_0x4de65b(0x3ce)];_0x3b7d03++){let _0x1725dd=_0x3c4ed0[_0x3b7d03],_0xb9cef1=this['_sheetsShapeService'][_0x4de65b(0x3c5)](_0x1725dd[_0x4de65b(0x378)],_0x1725dd[_0x4de65b(0x1a1)],_0x1725dd[_0x4de65b(0x34d)]);if(!_0xb9cef1)continue;let {redo:_0x1bdfc6,undo:_0x369eaf,objects:_0x190118}=this[_0x4de65b(0x3b4)]['getBatchRemoveOp']([_0x1725dd]);_0x3e7a53[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x45b)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'shapeId':_0x1725dd[_0x4de65b(0x34d)]}}),_0x3e7a53[_0x4de65b(0x1d8)]({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'type':h[_0x4de65b(0x38f)][_0x4de65b(0x36d)],'op':_0x1bdfc6,'objects':_0x190118}}),_0x18fe4a[_0x4de65b(0x1d8)]({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'type':h[_0x4de65b(0x38f)]['INSERT'],'op':_0x369eaf,'objects':_0x190118}}),_0x18fe4a[_0x4de65b(0x1d8)]({'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x15ce0a,'subUnitId':_0xdbf64f,'shapeId':_0x1725dd[_0x4de65b(0x34d)],'shapeType':_0xb9cef1[_0x4de65b(0x3ca)](),'shapeData':JSON['parse'](JSON[_0x4de65b(0x205)](_0xb9cef1[_0x4de65b(0x389)]()))}});}return{'redos':_0x3e7a53,'undos':_0x18fe4a};}else{if(_0x362857['id']===a['CopySheetCommand']['id']){let {unitId:_0x100ba7,subUnitId:_0x3b6ce4,targetSubUnitId:_0x12ab32}=_0x362857[_0x4de65b(0x3e9)];if(!_0x100ba7||!_0x3b6ce4||!_0x12ab32)return{'redos':[],'undos':[]};let _0x3b6065=this[_0x4de65b(0x3b4)][_0x4de65b(0x278)](_0x100ba7,_0x3b6ce4),_0x54947d=Object[_0x4de65b(0x2f6)](_0x3b6065)['filter'](_0x46d232=>_0x46d232[_0x4de65b(0x3ea)]===i[_0x4de65b(0x2bb)][_0x4de65b(0x324)]);if(_0x54947d[_0x4de65b(0x3ce)]===0x0)return{'redos':[],'undos':[]};let _0x2d34b3=[],_0x26de0d=[];for(let _0x559022=0x0;_0x559022<_0x54947d['length'];_0x559022++){let _0xc64e35=_0x54947d[_0x559022],_0x673fd2=this['_sheetsShapeService'][_0x4de65b(0x3c5)](_0xc64e35[_0x4de65b(0x378)],_0xc64e35[_0x4de65b(0x1a1)],_0xc64e35[_0x4de65b(0x34d)]);if(!_0x673fd2)continue;let _0x39335d=(0x0,i['generateRandomId'])(),_0xb64bea={..._0xc64e35,'unitId':_0x100ba7,'subUnitId':_0x12ab32,'drawingId':_0x39335d},{redo:_0x228d0b,undo:_0x4a70c3,objects:_0x38981c}=this[_0x4de65b(0x3b4)][_0x4de65b(0x350)]([_0xb64bea]);_0x2d34b3[_0x4de65b(0x1d8)]({'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'type':h['DrawingApplyType'][_0x4de65b(0x41e)],'op':_0x228d0b,'objects':_0x38981c}}),_0x2d34b3[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x385)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'shapeId':_0x39335d,'shapeType':_0x673fd2[_0x4de65b(0x3ca)](),'shapeData':JSON[_0x4de65b(0x22f)](JSON['stringify'](_0x673fd2[_0x4de65b(0x389)]()))}}),_0x26de0d[_0x4de65b(0x1d8)]({'id':r[_0x4de65b(0x45b)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'shapeId':_0x39335d}}),_0x26de0d['push']({'id':h[_0x4de65b(0x2b1)]['id'],'params':{'unitId':_0x100ba7,'subUnitId':_0x12ab32,'type':h[_0x4de65b(0x38f)][_0x4de65b(0x36d)],'op':_0x4a70c3,'objects':_0x38981c}});}return{'redos':_0x2d34b3,'undos':_0x26de0d};}}return{'redos':[],'undos':[]};}}));}};K=j([A(0x0,(0x0,i['Inject'])(i['IUniverInstanceService'])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(a[_0x2daf50(0x333)])),A(0x2,(0x0,i['Inject'])(h[_0x2daf50(0x408)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)]))],K);let we=class extends i[_0x2daf50(0x2f9)]{constructor(_0x34071b,_0x218e10,_0x392b25,_0x3228dd,_0x5ad696){const _0x1e6e05=_0x2daf50;super(),this[_0x1e6e05(0x200)]=_0x34071b,this[_0x1e6e05(0x320)]=_0x218e10,this['_drawingManagerService']=_0x392b25,this[_0x1e6e05(0x2a1)]=_0x3228dd,this['_sheetsShapeService']=_0x5ad696,E(this,_0x1e6e05(0x310),null),this['_initEvents'](),this[_0x1e6e05(0x1ea)](),this[_0x1e6e05(0x284)]();}[_0x2daf50(0x420)](){const _0x411cfa=_0x2daf50;let {scene:_0x36dd73}=this[_0x411cfa(0x200)];this['disposeWithMe'](_0x36dd73[_0x411cfa(0x24a)][_0x411cfa(0x382)](_0x14b465=>{const _0x4523b2=_0x411cfa;let {offsetX:_0x303d8b,offsetY:_0x38989f}=_0x14b465,_0x27afc8=_0x36dd73[_0x4523b2(0x361)](s[_0x4523b2(0x31a)][_0x4523b2(0x358)]([_0x303d8b,_0x38989f]));if(_0x27afc8 instanceof O){if((0x0,t['isConnectorShape'])(this[_0x4523b2(0x453)][_0x4523b2(0x3ca)](_0x27afc8[_0x4523b2(0x378)],_0x27afc8[_0x4523b2(0x1a1)],_0x27afc8[_0x4523b2(0x1b5)])))return;this[_0x4523b2(0x320)][_0x4523b2(0x351)]({'visible':!0x0,'unitId':_0x27afc8[_0x4523b2(0x378)],'subUnitId':_0x27afc8[_0x4523b2(0x1a1)],'shapeId':_0x27afc8[_0x4523b2(0x1b5)],'shapeKey':_0x27afc8[_0x4523b2(0x2b9)]});}}));}[_0x2daf50(0x1ea)](){const _0x588b28=_0x2daf50;this[_0x588b28(0x1c1)](this[_0x588b28(0x449)]['focus$'][_0x588b28(0x2d6)](_0x3758f4=>{const _0x42351d=_0x588b28;if(_0x3758f4[_0x42351d(0x3ce)]===0x1){let _0x3faaf4=_0x3758f4[0x0],_0x5eead1=this[_0x42351d(0x449)][_0x42351d(0x39b)](_0x3faaf4);if((_0x5eead1==null?void 0x0:_0x5eead1[_0x42351d(0x3ea)])===i[_0x42351d(0x2bb)][_0x42351d(0x324)]){let _0x113d15=this['_shapeTextEditingService'][_0x42351d(0x3da)]();if((_0x113d15==null?void 0x0:_0x113d15[_0x42351d(0x1b5)])===_0x3faaf4[_0x42351d(0x34d)]&&_0x113d15['visible'])return;(0x0,t[_0x42351d(0x1ce)])(this[_0x42351d(0x453)][_0x42351d(0x3ca)](_0x3faaf4[_0x42351d(0x378)],_0x3faaf4['subUnitId'],_0x3faaf4[_0x42351d(0x34d)]))&&this[_0x42351d(0x320)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x42351d(0x3da)]()&&(this[_0x42351d(0x320)][_0x42351d(0x41d)](!0x0),requestAnimationFrame(()=>{const _0x368c5c=_0x42351d;this['_shapeTextEditingService'][_0x368c5c(0x351)](null);}));}else this['_shapeTextEditingService']['getEditing']()&&(this[_0x42351d(0x320)][_0x42351d(0x41d)](!0x0),requestAnimationFrame(()=>{const _0x5f1aaa=_0x42351d;this[_0x5f1aaa(0x320)][_0x5f1aaa(0x351)](null);}));})),this[_0x588b28(0x1c1)](this[_0x588b28(0x449)][_0x588b28(0x228)][_0x588b28(0x2d6)](_0xee8a67=>{const _0x4c294b=_0x588b28;let _0x48b37d=this[_0x4c294b(0x320)][_0x4c294b(0x3da)]();_0x48b37d&&_0xee8a67[_0x4c294b(0x22a)](_0x584277=>_0x584277[_0x4c294b(0x34d)]===_0x48b37d[_0x4c294b(0x1b5)])&&this[_0x4c294b(0x320)]['setEditing'](null);}));}['_initEditingParams'](){const _0x19de34=_0x2daf50;this[_0x19de34(0x1c1)](this['_shapeTextEditingService']['editingParams$']['subscribe'](_0xfef2e7=>{const _0x5f5983=_0x19de34;let {scene:_0x58475b}=this[_0x5f5983(0x200)];if(this[_0x5f5983(0x310)]){let _0xc32100=_0x58475b[_0x5f5983(0x23d)](this[_0x5f5983(0x310)]);_0xc32100&&_0xc32100[_0x5f5983(0x351)](!0x1);}if(_0xfef2e7){let _0x1dcddc=!!_0xfef2e7[_0x5f5983(0x371)],_0x1ca1d1=_0x58475b['getObjectIncludeInGroup'](_0xfef2e7[_0x5f5983(0x410)]);_0x1ca1d1&&(_0x1ca1d1[_0x5f5983(0x351)](_0x1dcddc),this['_lastEditingShapeKey']=_0xfef2e7[_0x5f5983(0x410)]),this[_0x5f5983(0x2a1)]['setContextValue'](i[_0x5f5983(0x3ed)],_0x1dcddc);}else this[_0x5f5983(0x310)]=null,this[_0x5f5983(0x2a1)][_0x5f5983(0x340)](i[_0x5f5983(0x3ed)],!0x1);}));}};we=j([A(0x1,(0x0,i[_0x2daf50(0x1bb)])(U)),A(0x2,o['IDrawingManagerService']),A(0x3,i['IContextService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)]))],we);let Te=class extends n[_0x2daf50(0x43b)]{constructor(_0x397e2c,_0x58c541,_0xba128c,_0x577140){super(_0x397e2c,_0x58c541,_0xba128c,_0x577140,{'componentKey':te,'editorUnitId':ee});}};Te=j([A(0x1,(0x0,i[_0x2daf50(0x1bb)])(_[_0x2daf50(0x290)])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(v[_0x2daf50(0x219)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(v[_0x2daf50(0x323)]))],Te);let q=class extends i[_0x2daf50(0x2f9)]{constructor(_0x9458ed,_0x23a201,_0x184f00,_0x2b8751,_0xee55c2,_0x2dd799){const _0x423c22=_0x2daf50;super(),this[_0x423c22(0x19f)]=_0x9458ed,this['_renderManagerService']=_0x23a201,this['_drawingManagerService']=_0x184f00,this['_currentUniverService']=_0x2b8751,this[_0x423c22(0x46b)]=_0xee55c2,this[_0x423c22(0x477)]=_0x2dd799,E(this,_0x423c22(0x2b4),new Set()),this['_initialize']();}[_0x2daf50(0x30c)](){const _0x345791=_0x2daf50;this[_0x345791(0x363)](),this[_0x345791(0x1bd)](),this[_0x345791(0x314)]();}['_drawingAddListener'](){const _0x5cc9de=_0x2daf50;this[_0x5cc9de(0x1c1)](this['_drawingManagerService']['add$'][_0x5cc9de(0x2d6)](_0x1c47c9=>{const _0x5dcffc=_0x5cc9de;this[_0x5dcffc(0x274)](_0x1c47c9);}));}['_commandExecutedListener'](){const _0x2a5541=_0x2daf50;this[_0x2a5541(0x1c1)](this[_0x2a5541(0x19f)][_0x2a5541(0x20b)](_0xa602e0=>{const _0x441678=_0x2a5541;if(_0xa602e0['id']===r[_0x441678(0x3dc)]['id']){let {unitId:_0x40cf78,subUnitId:_0x19f42b,shapeId:_0x64425d}=_0xa602e0[_0x441678(0x3e9)],_0x4456d0=this[_0x441678(0x2f8)](_0x40cf78),_0x362b5b=(0x0,o[_0x441678(0x41c)])({'unitId':_0x40cf78,'subUnitId':_0x19f42b,'drawingId':_0x64425d}),_0x5dac25=_0x4456d0==null?void 0x0:_0x4456d0[_0x441678(0x336)][_0x441678(0x23d)](_0x362b5b);_0x5dac25&&(this[_0x441678(0x477)][_0x441678(0x247)](_0x5dac25),_0x5dac25[_0x441678(0x1c7)](!0x0));return;}if(_0xa602e0['id']===r[_0x441678(0x385)]['id']){var _0x4430d2;let {unitId:_0x6f1104,subUnitId:_0x32dc53,shapeId:_0xa84614}=_0xa602e0['params'],_0x544f82=this[_0x441678(0x2f8)](_0x6f1104);if(_0x544f82==null)return;let {scene:_0xef117d}=_0x544f82,_0x4db410=(0x0,o[_0x441678(0x41c)])({'unitId':_0x6f1104,'subUnitId':_0x32dc53,'drawingId':_0xa84614}),_0x305c84=_0xef117d['getObjectIncludeInGroup'](_0x4db410);if(!((_0x4430d2=this[_0x441678(0x3fc)]['getRenderById'](_0x6f1104))!=null&&_0x4430d2['with'](c[_0x441678(0x366)])[_0x441678(0x386)](_0x32dc53)))return!0x1;if(_0x305c84)return;this[_0x441678(0x274)]([{'unitId':_0x6f1104,'subUnitId':_0x32dc53,'drawingId':_0xa84614}]);}}));}[_0x2daf50(0x314)](){const _0x9756bb=_0x2daf50;this[_0x9756bb(0x1c1)](this[_0x9756bb(0x449)]['update$'][_0x9756bb(0x2d6)](_0x47d0f8=>{const _0x4de135=_0x9756bb;_0x47d0f8[_0x4de135(0x279)](_0x45f04d=>{const _0x432d9b=_0x4de135;let {unitId:_0x4f1380,subUnitId:_0x53348a,drawingId:_0x26c291}=_0x45f04d,_0x3433b0=this['_drawingManagerService']['getDrawingByParam'](_0x45f04d);if(_0x3433b0==null)return;let {transform:_0x29f0a8,drawingType:_0x3ae3fe,srcRect:_0x24f515,prstGeom:_0xd3c779}=_0x3433b0;if(_0x3ae3fe!==i['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x437b8c=this['_getSceneAndTransformerByDrawingSearch'](_0x4f1380);if(_0x437b8c==null)return;let {scene:_0x5037c1,transformer:_0x9168f}=_0x437b8c;if(_0x29f0a8==null)return!0x0;let _0x4f5dc7=(0x0,o[_0x432d9b(0x41c)])({'unitId':_0x4f1380,'subUnitId':_0x53348a,'drawingId':_0x26c291}),_0x64bb06=_0x5037c1['getObjectIncludeInGroup'](_0x4f5dc7);if(_0x64bb06==null)return!0x0;_0x64bb06['setSrcRect'](_0x24f515),_0x64bb06['setPrstGeom'](_0xd3c779);});}));}[_0x2daf50(0x274)](_0x594097){const _0x13dab6=_0x2daf50;for(let _0x2380b1 of _0x594097){var _0xb7c562;let {unitId:_0x4be270,subUnitId:_0x187dad,drawingId:_0x54c4da}=_0x2380b1,_0x919dfb=this['_getSceneAndTransformerByDrawingSearch'](_0x4be270),_0x5522e8=(_0xb7c562=(0x0,u['getCurrentUnitInfo'])(this[_0x13dab6(0x2e3)],_0x4be270))==null?void 0x0:_0xb7c562[_0x13dab6(0x1a1)];if(_0x919dfb==null||_0x5522e8!==_0x187dad)return;let _0x3039ea=(0x0,o[_0x13dab6(0x41c)])({'unitId':_0x4be270,'subUnitId':_0x187dad,'drawingId':_0x54c4da});if(this[_0x13dab6(0x2b4)][_0x13dab6(0x35d)](_0x3039ea)||_0x919dfb[_0x13dab6(0x336)]['getObjectIncludeInGroup'](_0x3039ea)!=null)return;let _0x10d1df=this[_0x13dab6(0x449)][_0x13dab6(0x39b)](_0x2380b1);if(_0x10d1df==null||_0x10d1df[_0x13dab6(0x3ea)]!==i[_0x13dab6(0x2bb)]['DRAWING_SHAPE'])return;if((0x0,t[_0x13dab6(0x1ce)])((_0x10d1df[_0x13dab6(0x44c)]||{})[_0x13dab6(0x479)])){let _0x2cb583=_0x10d1df[_0x13dab6(0x1f8)];_0x2cb583&&(_0x10d1df[_0x13dab6(0x1f8)]={..._0x2cb583,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x13dab6(0x2b4)][_0x13dab6(0x224)](_0x3039ea);try{this['_sheetDrawingShapeRenderController'][_0x13dab6(0x246)](_0x10d1df,_0x919dfb[_0x13dab6(0x336)]);}finally{this[_0x13dab6(0x2b4)][_0x13dab6(0x405)](_0x3039ea);}queueMicrotask(()=>{const _0x50d023=_0x13dab6;if(this[_0x50d023(0x202)])return;let _0x1c3755=(0x0,o[_0x50d023(0x41c)])(_0x2380b1);if(!_0x919dfb[_0x50d023(0x336)]['getObjectIncludeInGroup'](_0x1c3755))return;let _0x2f6c06=this[_0x50d023(0x449)][_0x50d023(0x39b)](_0x2380b1);_0x2f6c06&&this['_drawingManagerService'][_0x50d023(0x3e0)]([_0x2f6c06]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x4c1c64){const _0x2a56b6=_0x2daf50;if(_0x4c1c64==null)return;let _0x422930=this[_0x2a56b6(0x3fc)][_0x2a56b6(0x36e)](_0x4c1c64),_0x4834fe=_0x422930==null?void 0x0:_0x422930[_0x2a56b6(0x336)];return _0x4834fe==null?null:{'scene':_0x4834fe,'transformer':_0x4834fe[_0x2a56b6(0x251)]()};}};q=j([A(0x0,i[_0x2daf50(0x1b8)]),A(0x1,s[_0x2daf50(0x282)]),A(0x2,o[_0x2daf50(0x3a9)]),A(0x3,i['IUniverInstanceService']),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(u[_0x2daf50(0x2ed)])),A(0x5,(0x0,i['Inject'])(M))],q);const Ee={'normal':{'fill':t[_0x2daf50(0x24f)]['cxnPointFill'],'stroke':t[_0x2daf50(0x24f)][_0x2daf50(0x3ae)],'strokeWidth':t['ShapeDefaultConfig'][_0x2daf50(0x3fd)]},'highlighted':{'fill':'#4285f4','stroke':_0x2daf50(0x236),'strokeWidth':0x2}};var De=class extends s[_0x2daf50(0x355)]{constructor(_0x39f50a,_0x24a73a){const _0x1239c7=_0x2daf50;super(_0x39f50a,_0x24a73a),E(this,'_targetShapeId',''),E(this,_0x1239c7(0x3e7),-0x1),E(this,_0x1239c7(0x19c),''),E(this,_0x1239c7(0x1a5),''),E(this,_0x1239c7(0x1c4),!0x1),_0x24a73a&&this[_0x1239c7(0x26d)](_0x24a73a);}[_0x2daf50(0x3be)](){const _0xcd9296=_0x2daf50;return{'unitId':this[_0xcd9296(0x19c)],'subUnitId':this[_0xcd9296(0x1a5)],'shapeId':this[_0xcd9296(0x3e3)],'cxnIndex':this[_0xcd9296(0x3e7)]};}[_0x2daf50(0x3b9)](_0x1a3ee3){const _0x27b0da=_0x2daf50;this[_0x27b0da(0x1c4)]!==_0x1a3ee3&&(this[_0x27b0da(0x1c4)]=_0x1a3ee3,this[_0x27b0da(0x1c7)](!0x0));}[_0x2daf50(0x24e)](){const _0x54a2a2=_0x2daf50;return this[_0x54a2a2(0x1c4)];}[_0x2daf50(0x26d)](_0x172dca){const _0x58915b=_0x2daf50;var _0x12b5ff,_0x31b9ef;_0x172dca[_0x58915b(0x1ca)]!==void 0x0&&(this[_0x58915b(0x3e3)]=_0x172dca[_0x58915b(0x1ca)]),_0x172dca[_0x58915b(0x42b)]!==void 0x0&&(this[_0x58915b(0x3e7)]=_0x172dca[_0x58915b(0x42b)]),_0x172dca[_0x58915b(0x378)]!==void 0x0&&(this['_unitId']=_0x172dca[_0x58915b(0x378)]),_0x172dca[_0x58915b(0x1a1)]!==void 0x0&&(this[_0x58915b(0x1a5)]=_0x172dca['subUnitId']),_0x172dca[_0x58915b(0x24e)]!==void 0x0&&(this[_0x58915b(0x1c4)]=_0x172dca[_0x58915b(0x24e)]),this[_0x58915b(0x201)]({'width':(_0x12b5ff=_0x172dca[_0x58915b(0x458)])==null?t['ShapeDefaultConfig'][_0x58915b(0x298)]*0x2:_0x12b5ff,'height':(_0x31b9ef=_0x172dca[_0x58915b(0x1c6)])==null?t[_0x58915b(0x24f)][_0x58915b(0x298)]*0x2:_0x31b9ef});}['_draw'](_0x1c6a05){const _0x12909e=_0x2daf50;let _0x3863f1=this[_0x12909e(0x1c4)]?Ee[_0x12909e(0x1d6)]:Ee[_0x12909e(0x32a)];s['Circle'][_0x12909e(0x402)](_0x1c6a05,{'radius':t[_0x12909e(0x24f)][_0x12909e(0x298)],'fill':_0x3863f1[_0x12909e(0x25f)],'stroke':_0x3863f1[_0x12909e(0x1be)],'strokeWidth':_0x3863f1[_0x12909e(0x448)],'evented':!0x0});}};let J=class extends i[_0x2daf50(0x2f9)]{constructor(_0x3ef3ef,_0x2dc3d5,_0x11b763,_0x157b89){const _0x1f2146=_0x2daf50;super(),this[_0x1f2146(0x200)]=_0x3ef3ef,this[_0x1f2146(0x3fc)]=_0x2dc3d5,this['_drawingManagerService']=_0x11b763,this['_sheetsShapeService']=_0x157b89,E(this,_0x1f2146(0x3d9),[]),E(this,_0x1f2146(0x2c5),null),E(this,_0x1f2146(0x42c),-0x1),E(this,_0x1f2146(0x39f),null),E(this,_0x1f2146(0x19c),''),E(this,_0x1f2146(0x1a5),''),E(this,_0x1f2146(0x318),null);}['startConnectionDetection'](_0x20bcfd,_0x220772,_0x3b6d36,_0x5bbfb6){const _0x2c4ff8=_0x2daf50;this[_0x2c4ff8(0x39f)]=_0x20bcfd,this[_0x2c4ff8(0x19c)]=_0x220772,this['_subUnitId']=_0x3b6d36,this[_0x2c4ff8(0x318)]=_0x5bbfb6;}[_0x2daf50(0x3bf)](_0x16893b){const _0x72bf1a=_0x2daf50;if(!this[_0x72bf1a(0x39f)])return null;let _0x44d696=this[_0x72bf1a(0x288)](_0x16893b);return _0x44d696?(this[_0x72bf1a(0x2c5)]!==_0x44d696[_0x72bf1a(0x1b5)]&&(this['_clearConnectionSites'](),this[_0x72bf1a(0x338)](_0x44d696[_0x72bf1a(0x1b5)],_0x44d696[_0x72bf1a(0x1a0)]),this[_0x72bf1a(0x2c5)]=_0x44d696['shapeId']),this[_0x72bf1a(0x294)](_0x16893b)):(this[_0x72bf1a(0x2c5)]!==null&&(this[_0x72bf1a(0x36c)](),this[_0x72bf1a(0x2c5)]=null),null);}[_0x2daf50(0x33d)](){const _0x57fa53=_0x2daf50;this[_0x57fa53(0x36c)](),this[_0x57fa53(0x39f)]=null,this[_0x57fa53(0x2c5)]=null,this[_0x57fa53(0x42c)]=-0x1,this[_0x57fa53(0x318)]=null;}[_0x2daf50(0x206)](){const _0x2a118a=_0x2daf50;return this[_0x2a118a(0x2c5)]===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x2a118a(0x2c5)],'cxnIndex':this[_0x2a118a(0x42c)]};}['_findShapeAtPoint'](_0x55c728){const _0x48394e=_0x2daf50;let _0xb1d37a=this[_0x48394e(0x449)][_0x48394e(0x278)](this[_0x48394e(0x19c)],this[_0x48394e(0x1a5)]);for(let _0x50e8d0 of Object['keys'](_0xb1d37a)){if(_0x50e8d0===this[_0x48394e(0x318)]||_0xb1d37a[_0x50e8d0][_0x48394e(0x3ea)]!==i[_0x48394e(0x2bb)][_0x48394e(0x324)])continue;let _0xb13819=this[_0x48394e(0x453)][_0x48394e(0x3c5)](this[_0x48394e(0x19c)],this[_0x48394e(0x1a5)],_0x50e8d0);if(!_0xb13819||(0x0,t[_0x48394e(0x1ce)])(_0xb13819['getShapeType']())||_0xb13819[_0x48394e(0x2d3)]()[_0x48394e(0x3ce)]===0x0||!this['_currentScene'])continue;let _0x25f610=(0x0,o[_0x48394e(0x41c)])({'unitId':this['_unitId'],'subUnitId':this[_0x48394e(0x1a5)],'drawingId':_0x50e8d0}),_0x1cc697=this[_0x48394e(0x39f)]['getObjectIncludeInGroup'](_0x25f610);if(!_0x1cc697)continue;let {left:_0xbe096e,top:_0x5a7cc3,width:_0x3ee9a5,height:_0x12f20b}=_0x1cc697[_0x48394e(0x269)](),_0x35509f=_0xbe096e+_0x3ee9a5/0x2,_0x3b7411=_0x5a7cc3+_0x12f20b/0x2,_0x532fea=_0x1cc697[_0x48394e(0x1f8)][_0x48394e(0x239)](),_0x43aac2=new s['Transform']([_0x532fea[0x0],_0x532fea[0x1],_0x532fea[0x2],_0x532fea[0x3],_0x35509f,_0x3b7411]),_0x15bd1b=_0x1cc697[_0x48394e(0x2e1)](),_0x2f0827=(_0x1cc697[_0x48394e(0x466)]&&(_0x15bd1b==null?void 0x0:_0x15bd1b['classType'])===s[_0x48394e(0x23b)][_0x48394e(0x20e)]?_0x15bd1b[_0x48394e(0x27b)]['multiply'](_0x43aac2):_0x43aac2)[_0x48394e(0x397)]()[_0x48394e(0x319)](_0x55c728),_0x1afba1=_0x3ee9a5/0x2,_0x4a1d5d=_0x12f20b/0x2;if(_0x2f0827['x']>=-_0x1afba1-0x5&&_0x2f0827['x']<=_0x1afba1+0x5&&_0x2f0827['y']>=-_0x4a1d5d-0x5&&_0x2f0827['y']<=_0x4a1d5d+0x5)return{'shapeId':_0x50e8d0,'shapeModel':_0xb13819};}return null;}[_0x2daf50(0x338)](_0x38aeb5,_0x246c53){const _0x4dacba=_0x2daf50;if(!this[_0x4dacba(0x39f)])return;let _0x61cb70=(0x0,o[_0x4dacba(0x41c)])({'unitId':this[_0x4dacba(0x19c)],'subUnitId':this[_0x4dacba(0x1a5)],'drawingId':_0x38aeb5}),_0xb0b794=this[_0x4dacba(0x39f)][_0x4dacba(0x23d)](_0x61cb70);if(!_0xb0b794)return;let {left:_0x53da23,top:_0x4e276e,width:_0x5b195c,height:_0x10dfec}=_0xb0b794[_0x4dacba(0x269)](),_0x5417ec=_0x53da23+_0x5b195c/0x2,_0x36025e=_0x4e276e+_0x10dfec/0x2,_0x2ae37d=_0xb0b794[_0x4dacba(0x1f8)][_0x4dacba(0x239)](),_0xd72a52=new s['Transform']([_0x2ae37d[0x0],_0x2ae37d[0x1],_0x2ae37d[0x2],_0x2ae37d[0x3],_0x5417ec,_0x36025e]),_0x14b9d8=_0xb0b794[_0x4dacba(0x2e1)](),_0x27f511=_0xb0b794['isInGroup']&&(_0x14b9d8==null?void 0x0:_0x14b9d8['classType'])===s[_0x4dacba(0x23b)]['GROUP']?_0x14b9d8[_0x4dacba(0x27b)][_0x4dacba(0x37e)](_0xd72a52):_0xd72a52;_0x246c53[_0x4dacba(0x3a0)]({'width':_0x5b195c,'height':_0x10dfec});let _0x58b777=_0x246c53[_0x4dacba(0x2d3)]();for(let _0x48ace6 of _0x58b777){let _0x223cf1=_0x48ace6['x']-_0x5b195c/0x2,_0x86e5c1=_0x48ace6['y']-_0x10dfec/0x2,_0x2d8423=_0x27f511[_0x4dacba(0x319)]({'x':_0x223cf1,'y':_0x86e5c1}),_0x15ffb8=_0x2d8423['x'],_0x11fe51=_0x2d8423['y'],_0x14ac91=new De(_0x4dacba(0x469)+_0x38aeb5+'-'+_0x48ace6['index'],{'left':_0x15ffb8-t['ShapeDefaultConfig'][_0x4dacba(0x298)],'top':_0x11fe51-t[_0x4dacba(0x24f)][_0x4dacba(0x298)],'targetShapeId':_0x38aeb5,'cxnIndex':_0x48ace6[_0x4dacba(0x3cb)],'unitId':this[_0x4dacba(0x19c)],'subUnitId':this[_0x4dacba(0x1a5)],'width':t[_0x4dacba(0x24f)][_0x4dacba(0x298)]*0x2,'height':t['ShapeDefaultConfig'][_0x4dacba(0x298)]*0x2,'zIndex':s['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x4dacba(0x1d8)](_0x14ac91),this[_0x4dacba(0x39f)][_0x4dacba(0x33a)](_0x14ac91,s[_0x4dacba(0x329)]+0x2);}}[_0x2daf50(0x294)](_0x180928){const _0x1ed184=_0x2daf50;let _0x2be9b2=null,_0x213d15=0x1/0x0,_0x18dba5=null;for(let _0x21dd5a of this[_0x1ed184(0x3d9)]){let _0x2e3f59=_0x21dd5a[_0x1ed184(0x1c9)]+t[_0x1ed184(0x24f)][_0x1ed184(0x298)],_0x46a41e=_0x21dd5a[_0x1ed184(0x286)]+t[_0x1ed184(0x24f)][_0x1ed184(0x298)],_0x30c38b=_0x180928['x']-_0x2e3f59,_0xda9675=_0x180928['y']-_0x46a41e,_0x51cb0a=Math[_0x1ed184(0x40b)](_0x30c38b*_0x30c38b+_0xda9675*_0xda9675);_0x51cb0a<_0x213d15&&(_0x213d15=_0x51cb0a,_0x2be9b2=_0x21dd5a,_0x18dba5={'x':_0x2e3f59,'y':_0x46a41e});}let _0x31dae3=_0x213d15<=0xa&&_0x2be9b2?_0x2be9b2[_0x1ed184(0x3be)]()[_0x1ed184(0x42b)]:-0x1;if(_0x31dae3!==this[_0x1ed184(0x42c)]){for(let _0x9b110e of this[_0x1ed184(0x3d9)]){let _0x56ee36=_0x9b110e[_0x1ed184(0x3be)]();_0x9b110e[_0x1ed184(0x3b9)](_0x56ee36[_0x1ed184(0x42b)]===_0x31dae3);}this[_0x1ed184(0x42c)]=_0x31dae3;}if(_0x213d15<=0xa&&_0x2be9b2&&_0x18dba5){let _0x31ffd5=_0x2be9b2[_0x1ed184(0x3be)](),_0xbb8700=this[_0x1ed184(0x1e1)](_0x31ffd5[_0x1ed184(0x1b5)],_0x31ffd5[_0x1ed184(0x42b)]);return{'shapeId':_0x31ffd5[_0x1ed184(0x1b5)],'cxnIndex':_0x31ffd5[_0x1ed184(0x42b)],'unitId':_0x31ffd5['unitId'],'subUnitId':_0x31ffd5[_0x1ed184(0x1a1)],'worldPoint':_0x18dba5,'angle':_0xbb8700};}return null;}['_getConnectionSiteAngle'](_0x38bf9a,_0x37b09b){const _0x5b4c76=_0x2daf50;let _0x1c31e1=this[_0x5b4c76(0x453)][_0x5b4c76(0x3c5)](this[_0x5b4c76(0x19c)],this[_0x5b4c76(0x1a5)],_0x38bf9a);if(!_0x1c31e1)return 0x0;let _0x332206=this[_0x5b4c76(0x449)][_0x5b4c76(0x39b)]({'unitId':this[_0x5b4c76(0x19c)],'subUnitId':this[_0x5b4c76(0x1a5)],'drawingId':_0x38bf9a});if(!(_0x332206!=null&&_0x332206[_0x5b4c76(0x1f8)]))return 0x0;let {width:_0x50ef2a=0x0,height:_0x1cd989=0x0,flipX:_0xf1e049=!0x1,flipY:_0x2f46a4=!0x1}=_0x332206[_0x5b4c76(0x1f8)];_0x1c31e1['updateContext']({'width':_0x50ef2a,'height':_0x1cd989});let _0x1986ee=_0x1c31e1[_0x5b4c76(0x2d3)]()[_0x5b4c76(0x2db)](_0x3ecee7=>_0x3ecee7[_0x5b4c76(0x3cb)]===_0x37b09b);if(!_0x1986ee)return 0x0;let _0x4ea0a6=_0x1986ee['ang']/0xea60;return _0xf1e049&&(_0x4ea0a6=0xb4-_0x4ea0a6),_0x2f46a4&&(_0x4ea0a6=-_0x4ea0a6),_0x4ea0a6=(_0x4ea0a6%0x168+0x168)%0x168,_0x4ea0a6;}[_0x2daf50(0x36c)](){const _0x483b5e=_0x2daf50;for(let _0xf2197c of this[_0x483b5e(0x3d9)])_0xf2197c[_0x483b5e(0x428)]();this['_connectionSiteObjects']=[],this[_0x483b5e(0x42c)]=-0x1;}[_0x2daf50(0x428)](){const _0x1b5e37=_0x2daf50;this[_0x1b5e37(0x36c)](),super[_0x1b5e37(0x428)]();}};J=j([A(0x1,(0x0,i['Inject'])(s[_0x2daf50(0x282)])),A(0x2,(0x0,i['Inject'])(o[_0x2daf50(0x3a9)])),A(0x3,(0x0,i['Inject'])(r[_0x2daf50(0x411)]))],J);let Y=class extends i[_0x2daf50(0x2f9)]{constructor(_0x19dccf,_0x20c571,_0x495375,_0x1089dd,_0x179393){const _0x165db3=_0x2daf50;super(),this[_0x165db3(0x445)]=_0x19dccf,this[_0x165db3(0x46f)]=_0x20c571,this['_sheetDrawingService']=_0x495375,this[_0x165db3(0x3d2)]=_0x1089dd,this[_0x165db3(0x3ef)]=_0x179393,E(this,_0x165db3(0x438),void 0x0),this[_0x165db3(0x21e)](),this[_0x165db3(0x1e4)]();}get[_0x2daf50(0x2da)](){const _0x491e15=_0x2daf50;return this['_sheetDrawingService'][_0x491e15(0x3aa)]();}[_0x2daf50(0x1e4)](){const _0x105131=_0x2daf50;this[_0x105131(0x3ef)]['registerFeaturePasteHook'](({fromUnitId:_0x1912e2,fromSubUnitId:_0x2817e9,toUnitId:_0x4cc47a,toSubUnitId:_0x5a7119,idMap:_0x12e905})=>{const _0x4539cf=_0x105131;let _0xe41f67=[],_0x5188d5=[];for(let [_0x3ce4ee,_0x2c3060]of _0x12e905[_0x4539cf(0x261)]()){let _0x186cae=this[_0x4539cf(0x3d2)][_0x4539cf(0x3c5)](_0x1912e2,_0x2817e9,_0x3ce4ee);if(!_0x186cae)continue;let _0x371368=_0x186cae['getShapeType'](),_0x3b2dc3=JSON[_0x4539cf(0x22f)](JSON[_0x4539cf(0x205)](_0x186cae[_0x4539cf(0x389)]()));if(_0x3b2dc3['relation']){var _0x248d25,_0x2df307;let _0x218e7b=(_0x248d25=_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)])==null?void 0x0:_0x248d25[_0x4539cf(0x1b5)],_0x48d0e1=(_0x2df307=_0x3b2dc3['relation']['to'])==null?void 0x0:_0x2df307[_0x4539cf(0x1b5)],_0x21f1b6=_0x218e7b?_0x12e905[_0x4539cf(0x35d)](_0x218e7b):!0x0,_0x4cf70f=_0x48d0e1?_0x12e905[_0x4539cf(0x35d)](_0x48d0e1):!0x0;_0x21f1b6&&_0x218e7b&&_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]?_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]={..._0x3b2dc3['relation']['from'],'shapeId':_0x12e905[_0x4539cf(0x423)](_0x218e7b)}:_0x3b2dc3[_0x4539cf(0x2f3)][_0x4539cf(0x39e)]=void 0x0,_0x4cf70f&&_0x48d0e1&&_0x3b2dc3[_0x4539cf(0x2f3)]['to']?_0x3b2dc3[_0x4539cf(0x2f3)]['to']={..._0x3b2dc3[_0x4539cf(0x2f3)]['to'],'shapeId':_0x12e905[_0x4539cf(0x423)](_0x48d0e1)}:_0x3b2dc3['relation']['to']=void 0x0;}_0xe41f67[_0x4539cf(0x1d8)]({'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4cc47a,'subUnitId':_0x5a7119,'shapeId':_0x2c3060,'shapeType':_0x371368,'shapeData':_0x3b2dc3}}),_0x5188d5[_0x4539cf(0x1d8)]({'id':r[_0x4539cf(0x45b)]['id'],'params':{'unitId':_0x4cc47a,'subUnitId':_0x5a7119,'shapeId':_0x2c3060}});}return{'redos':_0xe41f67,'undos':_0x5188d5};});}[_0x2daf50(0x21e)](){const _0x47ad95=_0x2daf50;this[_0x47ad95(0x1c1)](this['_sheetClipboardService'][_0x47ad95(0x1d9)]({'id':_0x47ad95(0x1af),'onBeforeCopy':(_0xab09e0,_0x42df0c,_0x4e3f2b,_0x25ff71)=>{const _0x3a3302=_0x47ad95;this[_0x3a3302(0x438)]=null;let _0x1c243e=this[_0x3a3302(0x2da)];if(_0x1c243e['length']){let _0x55709b=_0x1c243e[_0x3a3302(0x1df)](_0x1cec6b=>_0x1cec6b[_0x3a3302(0x3ea)]===i['DrawingTypeEnum'][_0x3a3302(0x324)]);if(_0x55709b['length']===0x0)return;this[_0x3a3302(0x438)]={'unitId':_0xab09e0,'subUnitId':_0x42df0c,'copyType':_0x25ff71,'drawings':_0x55709b};}else this[_0x3a3302(0x303)](_0xab09e0,_0x42df0c,_0x4e3f2b,_0x25ff71);},'onPasteCells':(_0x1ab1b,_0x22b65e,_0x1e313b,_0x19f7b2)=>{const _0x1f3e08=_0x47ad95;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x46531b}=_0x19f7b2;return _0x46531b===c[_0x1f3e08(0x3f6)][_0x1f3e08(0x452)]?this[_0x1f3e08(0x394)](_0x22b65e,this['_copyInfo'][_0x1f3e08(0x3de)]===c[_0x1f3e08(0x353)][_0x1f3e08(0x1da)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x142a88=>this['_copyInfo']?this[_0x47ad95(0x394)](_0x142a88,this[_0x47ad95(0x438)][_0x47ad95(0x3de)]===c[_0x47ad95(0x353)][_0x47ad95(0x1da)]):{'redos':[],'undos':[]}}));}[_0x2daf50(0x303)](_0x581089,_0x1dff44,_0x1fdf56,_0x8757cc){const _0x1f617d=_0x2daf50;let _0x2d7f8e=this[_0x1f617d(0x445)][_0x1f617d(0x386)](_0x581089,_0x1dff44);if(!_0x2d7f8e)return;let _0x5f2244=(0x0,a['attachRangeWithCoord'])(_0x2d7f8e,_0x1fdf56);if(!_0x5f2244)return;let {startX:_0x159f43,endX:_0x138e8b,startY:_0x21b2e8,endY:_0xc848d7}=_0x5f2244,_0x4e2dfc=this['_sheetDrawingService'][_0x1f617d(0x278)](_0x581089,_0x1dff44),_0x3ded91=this['_focusedDrawings']['slice']();for(let [_0x49842f,_0xb9c72a]of Object[_0x1f617d(0x261)](_0x4e2dfc)){if(_0xb9c72a[_0x1f617d(0x3ea)]!==i[_0x1f617d(0x2bb)][_0x1f617d(0x324)])continue;let {transform:_0x5a847d}=_0xb9c72a;if(!_0x5a847d)continue;let {left:_0x243cf1=0x0,top:_0x3bbfa3=0x0,width:_0x362059=0x0,height:_0x112edf=0x0}=_0x5a847d;_0x159f43<=_0x243cf1&&_0x138e8b>=_0x243cf1+_0x362059&&_0x21b2e8<=_0x3bbfa3&&_0xc848d7>=_0x3bbfa3+_0x112edf&&_0x3ded91[_0x1f617d(0x1d8)](_0xb9c72a);}_0x3ded91['length']>0x0&&(this['_copyInfo']={'unitId':_0x581089,'subUnitId':_0x1dff44,'copyType':_0x8757cc,'copyRange':_0x1fdf56,'drawings':_0x3ded91});}[_0x2daf50(0x394)](_0x275ac1,_0xf75e9d){const _0x5ad93f=_0x2daf50;let {unitId:_0x107d70,subUnitId:_0x562e80,range:_0x23350e}=_0x275ac1,_0x31a8aa=this[_0x5ad93f(0x445)][_0x5ad93f(0x386)](_0x107d70,_0x562e80);if(!_0x31a8aa)return{'redos':[],'undos':[]};let _0x4d2942=(0x0,a[_0x5ad93f(0x2ea)])(_0x23350e),{unitId:_0x2e36a0,subUnitId:_0x480435,copyRange:_0x37a552,drawings:_0x11fdd7}=this[_0x5ad93f(0x438)],_0x1af0f3=this[_0x5ad93f(0x445)]['getSkeleton'](_0x2e36a0,_0x480435);if(!_0x1af0f3)return{'redos':[],'undos':[]};let _0x613d6;if(!_0x37a552){let _0xaf59f5=0x1/0x0,_0x1cce22=0x1/0x0;for(let _0x5d5d6c of _0x11fdd7){var _0x309245;let {left:_0x39300a=0x0,top:_0x5b0c32=0x0}=(_0x309245=_0x5d5d6c[_0x5ad93f(0x1f8)])==null?{}:_0x309245;_0x39300a<_0xaf59f5&&(_0xaf59f5=_0x39300a),_0x5b0c32<_0x1cce22&&(_0x1cce22=_0x5b0c32);}_0xaf59f5!==0x1/0x0&&_0x1cce22!==0x1/0x0&&(_0x613d6={'left':_0xaf59f5,'top':_0x1cce22});}let _0x54096c=new Map();if(!_0xf75e9d){for(let _0x5b35cc of _0x11fdd7)_0x54096c[_0x5ad93f(0x419)](_0x5b35cc[_0x5ad93f(0x34d)],(0x0,i[_0x5ad93f(0x475)])());}let _0xbb9330=[],_0x4e9ab1=[];for(let _0x2f5c51 of _0x11fdd7){let {drawingId:_0x1f7b8c,transform:_0x36d525,sheetTransform:_0xc687b0}=_0x2f5c51;if(!_0x36d525||!_0xc687b0)continue;let _0x57c6db=this['_updateTransform']({'transform':_0x36d525,'sheetTransform':_0xc687b0},{'skeleton':_0x1af0f3,'range':_0x37a552},{'skeleton':_0x31a8aa,'range':_0x4d2942},_0x613d6);if(_0xf75e9d){let {redos:_0x347526,undos:_0x268933}=this[_0x5ad93f(0x450)]({'fromUnitId':_0x2e36a0,'fromSubUnitId':_0x480435,'toUnitId':_0x107d70,'toSubUnitId':_0x562e80,'drawing':_0x2f5c51,'newTransforms':_0x57c6db});_0xbb9330['push'](..._0x347526),_0x4e9ab1[_0x5ad93f(0x1d8)](..._0x268933);continue;}let {redos:_0x129147,undos:_0x51cff7}=this[_0x5ad93f(0x442)]({'toUnitId':_0x107d70,'toSubUnitId':_0x562e80,'drawing':_0x2f5c51,'newTransforms':_0x57c6db,'newDrawingId':_0x54096c[_0x5ad93f(0x423)](_0x1f7b8c),'idMap':_0x54096c});_0xbb9330[_0x5ad93f(0x1d8)](..._0x129147),_0x4e9ab1[_0x5ad93f(0x1d8)](..._0x51cff7);}return{'redos':_0xbb9330,'undos':_0x4e9ab1};}['_generateCutPasteMutations'](_0x447212){const _0x325c3e=_0x2daf50;let {fromUnitId:_0x22c4ce,fromSubUnitId:_0x56a631,toUnitId:_0x5b7f03,toSubUnitId:_0x41a829,drawing:_0x4f75e9,newTransforms:_0xaf2e04}=_0x447212,_0x5c4639={..._0x4f75e9,'unitId':_0x5b7f03,'subUnitId':_0x41a829,'transform':_0xaf2e04[_0x325c3e(0x1f8)],'sheetTransform':_0xaf2e04[_0x325c3e(0x221)]};if(_0x5b7f03===_0x22c4ce&&_0x41a829===_0x56a631){let {redo:_0x208132,undo:_0xab4537,objects:_0x41eff2}=this[_0x325c3e(0x3b4)][_0x325c3e(0x39d)]([_0x5c4639]);return{'redos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType'][_0x325c3e(0x21d)],'op':_0x208132,'objects':_0x41eff2}}],'undos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType']['UPDATE'],'op':_0xab4537,'objects':_0x41eff2}}]};}else{let _0x375ab3=this[_0x325c3e(0x3b4)][_0x325c3e(0x47d)]([_0x4f75e9]),_0x57ac9d=this[_0x325c3e(0x3b4)]['getBatchAddOp']([_0x5c4639]),_0x13bdf5=this[_0x325c3e(0x3d2)][_0x325c3e(0x3c5)](_0x4f75e9[_0x325c3e(0x378)],_0x4f75e9[_0x325c3e(0x1a1)],_0x4f75e9[_0x325c3e(0x34d)]);if(!_0x13bdf5)return{'redos':[],'undos':[]};let _0x17cdd3=_0x13bdf5['getShapeType'](),_0x79c2b9=JSON[_0x325c3e(0x22f)](JSON['stringify'](_0x13bdf5[_0x325c3e(0x389)]()));return{'redos':[{'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x36d)],'op':_0x375ab3['redo'],'objects':_0x375ab3[_0x325c3e(0x426)]}},{'id':r[_0x325c3e(0x45b)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'shapeId':_0x4f75e9[_0x325c3e(0x34d)]}},{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h['DrawingApplyType'][_0x325c3e(0x41e)],'op':_0x57ac9d['redo'],'objects':_0x57ac9d[_0x325c3e(0x426)]}},{'id':r['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'shapeId':_0x4f75e9[_0x325c3e(0x34d)],'shapeType':_0x17cdd3,'shapeData':_0x79c2b9}}],'undos':[{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x41e)],'op':_0x375ab3[_0x325c3e(0x43c)],'objects':_0x375ab3[_0x325c3e(0x426)]}},{'id':r[_0x325c3e(0x385)]['id'],'params':{'unitId':_0x22c4ce,'subUnitId':_0x56a631,'shapeId':_0x4f75e9[_0x325c3e(0x34d)],'shapeType':_0x17cdd3,'shapeData':_0x79c2b9}},{'id':h[_0x325c3e(0x2b1)]['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'type':h[_0x325c3e(0x38f)][_0x325c3e(0x36d)],'op':_0x57ac9d[_0x325c3e(0x43c)],'objects':_0x57ac9d[_0x325c3e(0x426)]}},{'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5b7f03,'subUnitId':_0x41a829,'shapeId':_0x4f75e9['drawingId']}}]};}}[_0x2daf50(0x442)](_0x108384){const _0x41f4b4=_0x2daf50;let {toUnitId:_0x2c497e,toSubUnitId:_0x503ff4,drawing:_0x2978da,newTransforms:_0xe852ce,newDrawingId:_0x41dd8e,idMap:_0x1a0610}=_0x108384,_0x344f44={..._0x2978da,'unitId':_0x2c497e,'subUnitId':_0x503ff4,'drawingId':_0x41dd8e,'transform':_0xe852ce[_0x41f4b4(0x1f8)],'sheetTransform':_0xe852ce[_0x41f4b4(0x221)]},{redo:_0xe6c086,undo:_0x52f044,objects:_0x553a86}=this['_sheetDrawingService'][_0x41f4b4(0x350)]([_0x344f44]),_0x4cdc2f=this['_shapeService'][_0x41f4b4(0x3c5)](_0x2978da['unitId'],_0x2978da[_0x41f4b4(0x1a1)],_0x2978da['drawingId']);if(!_0x4cdc2f)return{'redos':[],'undos':[]};let _0x7cb778=_0x4cdc2f['getShapeType'](),_0x4318ee=JSON[_0x41f4b4(0x22f)](JSON[_0x41f4b4(0x205)](_0x4cdc2f['getShapeData']()));if(_0x4318ee[_0x41f4b4(0x2f3)]){var _0x586f9e,_0x324958;let _0x10540f=(_0x586f9e=_0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)])==null?void 0x0:_0x586f9e[_0x41f4b4(0x1b5)],_0x5c7a05=(_0x324958=_0x4318ee[_0x41f4b4(0x2f3)]['to'])==null?void 0x0:_0x324958[_0x41f4b4(0x1b5)],_0x44020e=_0x10540f?_0x1a0610[_0x41f4b4(0x35d)](_0x10540f):!0x0,_0x5a4400=_0x5c7a05?_0x1a0610[_0x41f4b4(0x35d)](_0x5c7a05):!0x0;_0x44020e&&_0x10540f&&_0x4318ee['relation'][_0x41f4b4(0x39e)]?_0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)]={..._0x4318ee[_0x41f4b4(0x2f3)][_0x41f4b4(0x39e)],'shapeId':_0x1a0610[_0x41f4b4(0x423)](_0x10540f)}:_0x4318ee['relation']['from']=void 0x0,_0x5a4400&&_0x5c7a05&&_0x4318ee[_0x41f4b4(0x2f3)]['to']?_0x4318ee[_0x41f4b4(0x2f3)]['to']={..._0x4318ee[_0x41f4b4(0x2f3)]['to'],'shapeId':_0x1a0610['get'](_0x5c7a05)}:_0x4318ee[_0x41f4b4(0x2f3)]['to']=void 0x0;}return{'redos':[{'id':h[_0x41f4b4(0x2b1)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'type':h['DrawingApplyType'][_0x41f4b4(0x41e)],'op':_0xe6c086,'objects':_0x553a86}},{'id':r[_0x41f4b4(0x385)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'shapeId':_0x41dd8e,'shapeType':_0x7cb778,'shapeData':_0x4318ee}}],'undos':[{'id':h[_0x41f4b4(0x2b1)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'type':h[_0x41f4b4(0x38f)][_0x41f4b4(0x36d)],'op':_0x52f044,'objects':_0x553a86}},{'id':r[_0x41f4b4(0x45b)]['id'],'params':{'unitId':_0x2c497e,'subUnitId':_0x503ff4,'shapeId':_0x41dd8e}}]};}['_updateTransform'](_0x14ed3c,_0x2aafd1,_0x3bbd7d,_0x429516){const _0x252755=_0x2daf50;var _0x44b01d;let {range:_0x1e86c1,skeleton:_0x193e3}=_0x2aafd1,{range:_0x19c10e,skeleton:_0x2015dc}=_0x3bbd7d,{transform:_0x3ffe97,sheetTransform:_0x47191a}=_0x14ed3c,_0x23a841={..._0x3ffe97};if(_0x1e86c1){let _0x452d80=(0x0,a[_0x252755(0x3ad)])(_0x193e3,_0x1e86c1),_0x101e1b=(0x0,a[_0x252755(0x3ad)])(_0x2015dc,_0x19c10e);if(_0x452d80&&_0x101e1b){var _0x17b8ff,_0x33bf5d;let _0x513654=_0x101e1b['startX']-_0x452d80['startX'],_0x216c1d=_0x101e1b[_0x252755(0x2f0)]-_0x452d80[_0x252755(0x2f0)];_0x23a841[_0x252755(0x1c9)]=((_0x17b8ff=_0x23a841['left'])==null?0x0:_0x17b8ff)+_0x513654,_0x23a841[_0x252755(0x286)]=((_0x33bf5d=_0x23a841[_0x252755(0x286)])==null?0x0:_0x33bf5d)+_0x216c1d;}}else{let _0x2fd884=(0x0,a[_0x252755(0x3ad)])(_0x2015dc,_0x19c10e);if(_0x429516&&_0x2fd884){var _0x561dec,_0xaafc2;let _0x38173d=((_0x561dec=_0x23a841[_0x252755(0x1c9)])==null?0x0:_0x561dec)-_0x429516[_0x252755(0x1c9)],_0x3ee8bd=((_0xaafc2=_0x23a841['top'])==null?0x0:_0xaafc2)-_0x429516['top'];_0x23a841[_0x252755(0x1c9)]=_0x2fd884['startX']+_0x38173d,_0x23a841[_0x252755(0x286)]=_0x2fd884[_0x252755(0x2f0)]+_0x3ee8bd;}else _0x23a841[_0x252755(0x1c9)]=_0x2fd884==null?void 0x0:_0x2fd884[_0x252755(0x379)],_0x23a841[_0x252755(0x286)]=_0x2fd884==null?void 0x0:_0x2fd884['startY'];}return{'transform':_0x23a841,'sheetTransform':(_0x44b01d=(0x0,h[_0x252755(0x2d8)])(_0x23a841,_0x2015dc))==null?_0x47191a:_0x44b01d};}};Y=j([A(0x0,(0x0,i['Inject'])(a[_0x2daf50(0x3d8)])),A(0x1,(0x0,i['Inject'])(c[_0x2daf50(0x3a2)])),A(0x2,(0x0,i['Inject'])(h[_0x2daf50(0x408)])),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(p[_0x2daf50(0x40c)]))],Y);var Oe=class extends s['Shape']{constructor(_0x578550,_0x200c98){const _0x3d26eb=_0x2daf50;super(_0x578550,_0x200c98),E(this,_0x3d26eb(0x433),null),E(this,_0x3d26eb(0x3cf),null),E(this,_0x3d26eb(0x19c),null),E(this,'_subUnitId',null),E(this,'_isStartConnectorPoint',!0x1),_0x200c98&&this[_0x3d26eb(0x26d)](_0x200c98);}[_0x2daf50(0x26a)](){const _0x1c88ec=_0x2daf50;return{'unitId':this[_0x1c88ec(0x19c)],'subUnitId':this[_0x1c88ec(0x1a5)],'drawingId':this[_0x1c88ec(0x433)]};}[_0x2daf50(0x26d)](_0x5cc5c2){const _0x1c3e55=_0x2daf50;_0x5cc5c2[_0x1c3e55(0x1b5)]!==void 0x0&&(this[_0x1c3e55(0x433)]=_0x5cc5c2[_0x1c3e55(0x1b5)]),_0x5cc5c2[_0x1c3e55(0x378)]!==void 0x0&&(this['_unitId']=_0x5cc5c2[_0x1c3e55(0x378)]),_0x5cc5c2[_0x1c3e55(0x1a1)]!==void 0x0&&(this[_0x1c3e55(0x1a5)]=_0x5cc5c2['subUnitId']),_0x5cc5c2['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x5cc5c2[_0x1c3e55(0x1f4)]),this[_0x1c3e55(0x201)]({'width':_0x5cc5c2[_0x1c3e55(0x458)],'height':_0x5cc5c2['height']});}[_0x2daf50(0x218)](_0x2b60dc){const _0x50c869=_0x2daf50;s[_0x50c869(0x2c3)][_0x50c869(0x402)](_0x2b60dc,{'radius':t['ShapeDefaultConfig'][_0x50c869(0x298)],'fill':t[_0x50c869(0x24f)][_0x50c869(0x456)],'stroke':t[_0x50c869(0x24f)][_0x50c869(0x3ae)],'strokeWidth':t[_0x50c869(0x24f)][_0x50c869(0x3fd)],'evented':!0x0});}};let ke=class extends i[_0x2daf50(0x2f9)]{constructor(_0x1b64b4,_0x39ee49,_0x31b434,_0x3ec3da,_0x369ea9,_0x14c530,_0x244416,_0x511936){const _0x53d655=_0x2daf50;super(),this[_0x53d655(0x200)]=_0x1b64b4,this['_commandService']=_0x39ee49,this[_0x53d655(0x3fc)]=_0x31b434,this['_drawingManagerService']=_0x3ec3da,this[_0x53d655(0x1aa)]=_0x369ea9,this[_0x53d655(0x453)]=_0x14c530,this[_0x53d655(0x1c5)]=_0x244416,this[_0x53d655(0x2a4)]=_0x511936,E(this,_0x53d655(0x46c),void 0x0),E(this,_0x53d655(0x19c),void 0x0),E(this,_0x53d655(0x1a5),void 0x0),E(this,_0x53d655(0x30f),[]),E(this,_0x53d655(0x43d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x53d655(0x3d0),void 0x0),E(this,_0x53d655(0x3c4),!0x1),E(this,_0x53d655(0x36f),!0x1),E(this,'_hasReset',!0x1),E(this,_0x53d655(0x332),void 0x0),E(this,_0x53d655(0x22d),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x53d655(0x30c)]();}[_0x2daf50(0x30c)](){const _0x11fc64=_0x2daf50;this['_registerDrawingFocusChangeHandler'](),this[_0x11fc64(0x1f6)]();}['_getDrawingRect'](){const _0x4b681b=_0x2daf50;if(!this[_0x4b681b(0x19c)]||!this[_0x4b681b(0x1a5)]||!this[_0x4b681b(0x46c)])return;let _0xc9d54c={'unitId':this['_unitId'],'subUnitId':this[_0x4b681b(0x1a5)],'drawingId':this[_0x4b681b(0x46c)]},{transform:_0x36d076}=this[_0x4b681b(0x449)][_0x4b681b(0x39b)](_0xc9d54c);if(_0x36d076)return{'left':_0x36d076[_0x4b681b(0x1c9)]||0x0,'top':_0x36d076[_0x4b681b(0x286)]||0x0,'width':_0x36d076['width']||0x0,'height':_0x36d076['height']||0x0,'flipX':_0x36d076[_0x4b681b(0x3c0)]||!0x1,'flipY':_0x36d076[_0x4b681b(0x380)]||!0x1,'angle':_0x36d076[_0x4b681b(0x467)]};}[_0x2daf50(0x3fa)](){const _0x518265=_0x2daf50;if(this[_0x518265(0x19c)]===void 0x0||this[_0x518265(0x1a5)]===void 0x0||this[_0x518265(0x46c)]===void 0x0)return;let _0x2b573f=this[_0x518265(0x3fc)][_0x518265(0x36e)](this[_0x518265(0x19c)]);if(!_0x2b573f||!_0x2b573f[_0x518265(0x463)](c[_0x518265(0x366)])[_0x518265(0x435)]())return;let {scene:_0x4d427f}=_0x2b573f,_0x67934=this[_0x518265(0x27d)]();if(!_0x67934)return;let _0x2584c3=this[_0x518265(0x453)][_0x518265(0x3c5)](this[_0x518265(0x19c)],this['_subUnitId'],this['_activeShapeId']);if(!_0x2584c3||!(0x0,t['isConnectorShape'])(_0x2584c3[_0x518265(0x3ca)]()))return;let _0x179039=_0x2584c3[_0x518265(0x2f7)]();if(_0x179039[_0x518265(0x3ce)]<0x2)return;let _0x5d91cd=new t['ConnectorCoordinateTransform'](_0x67934),_0x25195a=_0x179039[0x0],_0x5cb9d3=_0x179039[_0x179039[_0x518265(0x3ce)]-0x1],_0x2d5f14=_0x5d91cd['localToWorld'](_0x25195a),_0x1abedc=_0x5d91cd[_0x518265(0x383)](_0x5cb9d3);this['_addShapeConnectorHandlerObject'](_0x4d427f,{..._0x2d5f14},!0x0),this['_addShapeConnectorHandlerObject'](_0x4d427f,{..._0x1abedc},!0x1);}[_0x2daf50(0x441)](_0x233962,_0x4b1c8f,_0x13b9fb){const _0x618a62=_0x2daf50;if(this[_0x618a62(0x46c)]===void 0x0||this[_0x618a62(0x19c)]===void 0x0||this[_0x618a62(0x1a5)]===void 0x0)return;let _0x17ec3=_0x618a62(0x1b2)+this['_unitId']+'-'+this['_subUnitId']+'-'+this[_0x618a62(0x46c)]+'-'+(_0x13b9fb?_0x618a62(0x302):_0x618a62(0x2fa)),_0x432eaf=_0x233962[_0x618a62(0x23d)](_0x17ec3);if(_0x432eaf){_0x432eaf[_0x618a62(0x201)]({'left':_0x4b1c8f['x']-t[_0x618a62(0x24f)][_0x618a62(0x298)],'top':_0x4b1c8f['y']-t['ShapeDefaultConfig'][_0x618a62(0x298)]});return;}let _0x23eb81=new Oe(_0x17ec3,{'left':_0x4b1c8f['x']-t['ShapeDefaultConfig'][_0x618a62(0x298)],'top':_0x4b1c8f['y']-t[_0x618a62(0x24f)][_0x618a62(0x298)],'shapeId':this[_0x618a62(0x46c)],'unitId':this['_unitId'],'subUnitId':this[_0x618a62(0x1a5)],'isStartConnectorPoint':_0x13b9fb,'width':t[_0x618a62(0x24f)][_0x618a62(0x298)]*0x2,'height':t[_0x618a62(0x24f)][_0x618a62(0x298)]*0x2,'zIndex':s['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x618a62(0x30f)][_0x618a62(0x1d8)](_0x23eb81),this['_attachConnectorObjectEvent'](_0x23eb81,_0x233962,_0x13b9fb),_0x233962['addObject'](_0x23eb81,s[_0x618a62(0x329)]+0x1);}['_getScrollInfo'](_0x324702,_0x488ece){const _0x17c1ff=_0x2daf50;var _0x5ed202;let _0x18ddb0={'x':0x0,'y':0x0};if(!_0x324702||!_0x488ece)return _0x18ddb0;let _0x45fc2e=this[_0x17c1ff(0x3fc)][_0x17c1ff(0x36e)](_0x324702);if(!_0x45fc2e||!_0x45fc2e[_0x17c1ff(0x463)](c[_0x17c1ff(0x366)])[_0x17c1ff(0x386)](_0x488ece))return _0x18ddb0;let _0x4d5dec=_0x45fc2e[_0x17c1ff(0x463)](c['SheetScrollManagerService']),_0x459418=_0x4d5dec==null?void 0x0:_0x4d5dec[_0x17c1ff(0x3bc)]();if(!_0x459418)return _0x18ddb0;let _0x5c2261=(_0x5ed202=this[_0x17c1ff(0x1aa)][_0x17c1ff(0x32f)](_0x324702))==null?void 0x0:_0x5ed202[_0x17c1ff(0x1a9)](_0x488ece);if(!_0x5c2261)return _0x18ddb0;let _0x53f856=(0x0,c[_0x17c1ff(0x281)])(_0x459418[_0x17c1ff(0x46a)],_0x459418[_0x17c1ff(0x3f9)],_0x45fc2e[_0x17c1ff(0x336)],_0x5c2261);return _0x53f856?{'x':_0x53f856[_0x17c1ff(0x210)],'y':_0x53f856[_0x17c1ff(0x2bf)]}:_0x18ddb0;}['_getZoomRatio'](_0x57a33a,_0x101276){const _0x232743=_0x2daf50;var _0x2c4838,_0x5cfbd1;let _0x48a16b=(_0x2c4838=this[_0x232743(0x1aa)]['getUnit'](_0x57a33a))==null?void 0x0:_0x2c4838[_0x232743(0x1a9)](_0x101276);return(_0x5cfbd1=_0x48a16b==null?void 0x0:_0x48a16b['getZoomRatio']())==null?0x1:_0x5cfbd1;}[_0x2daf50(0x415)](_0x305583,_0xb53729,_0x5752aa,_0x5ba0ff,_0x55f580){const _0x3fc1ef=_0x2daf50;this[_0x3fc1ef(0x332)][_0x3fc1ef(0x34e)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this['_sheetShapeAdjustController'][_0x3fc1ef(0x337)]();let _0x4703fe=this[_0x3fc1ef(0x241)];this[_0x3fc1ef(0x2a4)][_0x3fc1ef(0x33d)]();let _0x531733=this[_0x3fc1ef(0x2ca)](this[_0x3fc1ef(0x19c)],this[_0x3fc1ef(0x1a5)]),_0x2f8db9=this[_0x3fc1ef(0x207)](this[_0x3fc1ef(0x19c)],this[_0x3fc1ef(0x1a5)]),_0x2451ac={'x':_0x5752aa[_0x3fc1ef(0x2ac)]/_0x2f8db9+_0x531733['x'],'y':_0x5752aa['offsetY']/_0x2f8db9+_0x531733['y']},_0x322b44=_0x4703fe?_0x4703fe['worldPoint']:_0x2451ac,_0x1d513b=_0x5ba0ff?this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x1b9)]():this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x1dd)](),_0x4d5f45=this[_0x3fc1ef(0x3d0)][_0x3fc1ef(0x3ca)]();_0x1d513b?this[_0x3fc1ef(0x2e5)](_0x1d513b,_0x322b44,_0x5ba0ff,_0x4703fe,_0x55f580):this[_0x3fc1ef(0x1dc)](_0xb53729,_0x322b44,_0x5ba0ff,_0x4703fe,_0x55f580,_0x4d5f45),this[_0x3fc1ef(0x3c4)]=!0x1,this['_hasReset']=!0x1,this[_0x3fc1ef(0x241)]=null,_0x305583[_0x3fc1ef(0x3c1)]();}[_0x2daf50(0x1dc)](_0x3d0180,_0x134fc9,_0x4f44bd,_0x5de9cc,_0x1c0e4f,_0x573c8b){const _0x24c51f=_0x2daf50;let _0x2d5875=_0x573c8b===t['ShapeTypeEnum']['Line']||_0x573c8b===t[_0x24c51f(0x266)][_0x24c51f(0x29a)],_0x510dd5=_0x4f44bd?_0x134fc9:_0x3d0180,_0xe7e407=_0x4f44bd?_0x3d0180:_0x134fc9,_0x1a9df1=this['_activeShapeModel']['getConnectorLinePoints'](),_0x1b1201=(0x0,t[_0x24c51f(0x352)])(this['_activeShapeModel'][_0x24c51f(0x3ca)]()),_0x3b16a3=t['ConnectorCoordinateTransform']['getBentTypeFromPoints'](_0x1a9df1,_0x1b1201),_0x180405=_0x2d5875?t[_0x24c51f(0x300)][_0x24c51f(0x476)](_0x510dd5,_0xe7e407):t[_0x24c51f(0x300)][_0x24c51f(0x1f7)](_0x3d0180,_0x134fc9,_0x4f44bd,_0x3b16a3);_0x5de9cc?this[_0x24c51f(0x407)](_0x180405,_0x5de9cc,_0x4f44bd,_0x1c0e4f):this['_executeResizeCommand'](_0x180405,_0x1c0e4f);}[_0x2daf50(0x2e5)](_0xe2e66a,_0x5b53bb,_0x4b2801,_0x5085b6,_0x53ac55){const _0x2d4650=_0x2daf50;let _0x2fbbd2=this[_0x2d4650(0x44e)](_0xe2e66a);if(!_0x2fbbd2)return;let _0x5ba409=_0x5085b6?_0x5085b6['angle']:this[_0x2d4650(0x237)](_0x2fbbd2[_0x2d4650(0x2aa)],_0x5b53bb),_0x556962;if(_0x5085b6){let _0x4e1a8e=this[_0x2d4650(0x449)]['getDrawingByParam']({'unitId':_0x5085b6[_0x2d4650(0x378)],'subUnitId':_0x5085b6[_0x2d4650(0x1a1)],'drawingId':_0x5085b6[_0x2d4650(0x1b5)]});if(_0x4e1a8e!=null&&_0x4e1a8e[_0x2d4650(0x1f8)]){let {left:_0xe58ffe=0x0,top:_0x54c7ed=0x0,width:_0x1b6f34=0x0,height:_0x322836=0x0,angle:_0x23dc6e}=_0x4e1a8e['transform'];_0x556962=(0x0,t[_0x2d4650(0x2b0)])({'left':_0xe58ffe,'top':_0x54c7ed,'width':_0x1b6f34,'height':_0x322836},_0x23dc6e||0x0);}else _0x556962={'left':_0x5b53bb['x'],'top':_0x5b53bb['y'],'width':0x0,'height':0x0};}else _0x556962={'left':_0x5b53bb['x'],'top':_0x5b53bb['y'],'width':0x0,'height':0x0};let _0x5ccff1={'point':_0x5b53bb,'angle':_0x5ba409,'bounds':_0x556962},_0x2b7d32=_0x4b2801?_0x5ccff1:_0x2fbbd2,_0x2ae357=_0x4b2801?_0x2fbbd2:_0x5ccff1,_0x121f5c=this[_0x2d4650(0x3d0)][_0x2d4650(0x3ca)](),_0x38d4d9=(0x0,t[_0x2d4650(0x260)])(_0x2b7d32,_0x2ae357,_0x121f5c);this[_0x2d4650(0x3d0)][_0x2d4650(0x1d7)]();let _0x1b09cb=(0x0,t['computeConnectorRouteLayout'])(_0x38d4d9,_0x121f5c);_0x5085b6?this[_0x2d4650(0x29c)](_0x1b09cb,_0x5085b6,_0xe2e66a,_0x4b2801,_0x53ac55):this[_0x2d4650(0x424)](_0x1b09cb,_0xe2e66a,_0x4b2801,_0x53ac55);}[_0x2daf50(0x407)](_0x27e645,_0x5a5720,_0x8eefa9,_0x3c6b25){const _0x241398=_0x2daf50;let _0x1782d7=this[_0x241398(0x3d0)][_0x241398(0x389)]()['relation'],_0x3f8169={..._0x1782d7},_0x2df5b1={'shapeId':_0x5a5720[_0x241398(0x1b5)],'cxnIndex':_0x5a5720[_0x241398(0x42b)]};_0x8eefa9?_0x3f8169[_0x241398(0x39e)]=_0x2df5b1:_0x3f8169['to']=_0x2df5b1;let _0x299c23=this[_0x241398(0x3d0)][_0x241398(0x3ca)](),_0x41f629=(0x0,t['computeConnectorRouteLayout'])(_0x27e645[_0x241398(0x3c8)],_0x299c23),_0x6442cc={'unitId':this[_0x241398(0x19c)],'subUnitId':this[_0x241398(0x1a5)],'connectorShapeId':this[_0x241398(0x46c)],'width':_0x27e645[_0x241398(0x474)][_0x241398(0x458)],'height':_0x27e645['worldRect']['height'],'left':_0x27e645[_0x241398(0x474)][_0x241398(0x1c9)],'top':_0x27e645[_0x241398(0x474)][_0x241398(0x286)],'flipX':_0x27e645[_0x241398(0x474)][_0x241398(0x3c0)]||!0x1,'flipY':_0x27e645['worldRect'][_0x241398(0x380)]||!0x1,'newAdjustValues':_0x41f629['adjustValues'],'oldAdjustValues':_0x3c6b25,'oldRelation':_0x1782d7,'newRelation':_0x3f8169,'newLineType':_0x41f629[_0x241398(0x2c1)],'oldLineType':_0x299c23};this[_0x241398(0x19f)][_0x241398(0x374)](r['UpdateConnectorRelationCommand']['id'],_0x6442cc);}['_executeResizeCommand'](_0x1de3ac,_0x3fcce8){const _0x57270a=_0x2daf50;let _0x61733c=this[_0x57270a(0x3d0)][_0x57270a(0x3ca)](),_0x189f6f=(0x0,t[_0x57270a(0x2cc)])(_0x1de3ac[_0x57270a(0x3c8)],_0x61733c),_0xa973d={'unitId':this[_0x57270a(0x19c)],'subUnitId':this['_subUnitId'],'shapeId':this['_activeShapeId'],'width':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x458)],'height':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x1c6)],'left':_0x1de3ac[_0x57270a(0x474)]['left'],'top':_0x1de3ac[_0x57270a(0x474)][_0x57270a(0x286)],'flipX':_0x1de3ac['worldRect'][_0x57270a(0x3c0)]||!0x1,'flipY':_0x1de3ac['worldRect']['flipY']||!0x1,'angle':_0x1de3ac['worldRect'][_0x57270a(0x467)]||0x0,'newAdjustValues':_0x189f6f['adjustValues'],'oldAdjustValues':_0x3fcce8,'newLineType':_0x189f6f[_0x57270a(0x2c1)],'oldLineType':_0x61733c};this['_commandService']['executeCommand'](r[_0x57270a(0x2a3)]['id'],_0xa973d);}[_0x2daf50(0x29c)](_0x2d0e32,_0x10a1c2,_0x15cd6c,_0x3a5126,_0x3512bf){const _0x3b9985=_0x2daf50;let _0x468dbe=this[_0x3b9985(0x3d0)][_0x3b9985(0x389)]()[_0x3b9985(0x2f3)],_0x4f90ea={..._0x468dbe},_0x24b82d={'shapeId':_0x10a1c2[_0x3b9985(0x1b5)],'cxnIndex':_0x10a1c2[_0x3b9985(0x42b)]};_0x3a5126?(_0x4f90ea[_0x3b9985(0x39e)]=_0x24b82d,_0x4f90ea['to']=_0x15cd6c):(_0x4f90ea[_0x3b9985(0x39e)]=_0x15cd6c,_0x4f90ea['to']=_0x24b82d);let _0x207499={'unitId':this[_0x3b9985(0x19c)],'subUnitId':this[_0x3b9985(0x1a5)],'connectorShapeId':this[_0x3b9985(0x46c)],'width':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x458)],'height':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x1c6)],'left':_0x2d0e32['worldRect']['left'],'top':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x286)],'flipX':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x3c0)]||!0x1,'flipY':_0x2d0e32[_0x3b9985(0x474)][_0x3b9985(0x380)]||!0x1,'oldAdjustValues':_0x3512bf,'newAdjustValues':_0x2d0e32[_0x3b9985(0x3ee)],'newLineType':_0x2d0e32[_0x3b9985(0x2c1)],'rotation':_0x2d0e32['rotation'],'oldRelation':_0x468dbe,'newRelation':_0x4f90ea};this['_commandService'][_0x3b9985(0x374)](r[_0x3b9985(0x28d)]['id'],_0x207499);}[_0x2daf50(0x424)](_0x19b098,_0x1e612f,_0x28dde9,_0x317140){const _0x47fb14=_0x2daf50;let _0x1999f6=this[_0x47fb14(0x3d0)][_0x47fb14(0x389)]()[_0x47fb14(0x2f3)],_0x22a0c2={};_0x28dde9?(_0x22a0c2['to']=_0x1e612f,_0x22a0c2['from']=void 0x0):(_0x22a0c2[_0x47fb14(0x39e)]=_0x1e612f,_0x22a0c2['to']=void 0x0);let _0x117379={'unitId':this['_unitId'],'subUnitId':this[_0x47fb14(0x1a5)],'connectorShapeId':this[_0x47fb14(0x46c)],'width':_0x19b098['worldRect'][_0x47fb14(0x458)],'height':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x1c6)],'left':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x1c9)],'top':_0x19b098[_0x47fb14(0x474)][_0x47fb14(0x286)],'flipX':_0x19b098['worldRect']['flipX']||!0x1,'flipY':_0x19b098['worldRect'][_0x47fb14(0x380)]||!0x1,'oldAdjustValues':_0x317140,'newAdjustValues':_0x19b098[_0x47fb14(0x3ee)],'newLineType':_0x19b098[_0x47fb14(0x2c1)],'rotation':_0x19b098[_0x47fb14(0x34a)],'oldRelation':_0x1999f6,'newRelation':_0x22a0c2};this['_commandService']['executeCommand'](r[_0x47fb14(0x28d)]['id'],_0x117379);}[_0x2daf50(0x216)](_0x18636b,_0x127a2f,_0x12daff){const _0x17bb9f=_0x2daf50;this[_0x17bb9f(0x1c1)]((0x0,i[_0x17bb9f(0x427)])(_0x18636b[_0x17bb9f(0x38a)][_0x17bb9f(0x382)]((_0x6220f9,_0x5c47f4)=>{const _0x1a8150=_0x17bb9f;let _0xa7d00c=_0x18636b[_0x1a8150(0x26a)]();if(this['_activeShapeModel']=this[_0x1a8150(0x453)][_0x1a8150(0x3c5)](_0xa7d00c[_0x1a8150(0x378)],_0xa7d00c[_0x1a8150(0x1a1)],_0xa7d00c[_0x1a8150(0x34d)]),!this[_0x1a8150(0x3d0)])return;let _0x51c717={};this[_0x1a8150(0x3d0)][_0x1a8150(0x372)]()[_0x1a8150(0x279)](_0x4829b5=>{const _0x2f1c9c=_0x1a8150;let _0x297452=this[_0x2f1c9c(0x3d0)][_0x2f1c9c(0x243)](_0x4829b5);_0x297452!==void 0x0&&(_0x51c717[_0x4829b5]=_0x297452);});let _0x53cf60=this['_getDrawingRect']();if(!_0x53cf60)return;this['_baseDrawingRect']={..._0x53cf60};let _0xcec0ed=new t[(_0x1a8150(0x300))](this[_0x1a8150(0x43d)]),_0x410200=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x1a8150(0x19c)],'subUnitId':this[_0x1a8150(0x1a5)],'drawingId':this[_0x1a8150(0x46c)]}),_0xeca889=_0x127a2f[_0x1a8150(0x23d)](_0x410200);this['_isConnecting']=!0x0,_0x127a2f[_0x1a8150(0x317)](),this['_sheetBasicShapeConnectionPointController'][_0x1a8150(0x24c)](_0x127a2f,this['_unitId'],this[_0x1a8150(0x1a5)],this[_0x1a8150(0x46c)]),this['_currentConnectionTarget']=null;let _0x3f2556=this[_0x1a8150(0x3d0)][_0x1a8150(0x2f7)](),_0x49be91=_0x3f2556[0x0],_0x1bbdad=_0x3f2556[_0x3f2556['length']-0x1],_0x103bed=_0x12daff?_0xcec0ed['localToWorld'](_0x1bbdad):_0xcec0ed[_0x1a8150(0x383)](_0x49be91);this[_0x1a8150(0x332)]=_0x127a2f[_0x1a8150(0x3b7)][_0x1a8150(0x382)]((_0x5a2cf7,_0x49dcee)=>{const _0x163cad=_0x1a8150;if(!this['_isConnecting']||!this[_0x163cad(0x3d0)])return;this['_hasReset']||(this[_0x163cad(0x1c5)][_0x163cad(0x3a5)](),this[_0x163cad(0x3d0)]['clearAdjustValue'](),this['_hasReset']=!0x0);let _0x18d1f7=this[_0x163cad(0x2ca)](this[_0x163cad(0x19c)],this[_0x163cad(0x1a5)]),_0x4f2c83=this['_getZoomRatio'](this[_0x163cad(0x19c)],this[_0x163cad(0x1a5)]),_0x443f32={'x':_0x5a2cf7[_0x163cad(0x2ac)]/_0x4f2c83+_0x18d1f7['x'],'y':_0x5a2cf7[_0x163cad(0x255)]/_0x4f2c83+_0x18d1f7['y']},_0x2ffd5e=this[_0x163cad(0x2a4)][_0x163cad(0x3bf)](_0x443f32);if(_0x2ffd5e){let {shapeId:_0x23aea0,unitId:_0x1d534c,subUnitId:_0x388fdb}=_0x2ffd5e;if(_0x23aea0&&_0x1d534c&&_0x388fdb){let _0x2a0227=(0x0,o[_0x163cad(0x41c)])({'unitId':_0x1d534c,'subUnitId':_0x388fdb,'drawingId':_0x23aea0});_0x2ffd5e['angle']=(_0x127a2f[_0x163cad(0x23d)](_0x2a0227)['angle']||0x0)+_0x2ffd5e[_0x163cad(0x467)];}}this[_0x163cad(0x241)]=_0x2ffd5e;let _0x2f6c89=_0x12daff?this[_0x163cad(0x3d0)]['getEndConnectInfo']():this[_0x163cad(0x3d0)][_0x163cad(0x1dd)]();if(_0x2f6c89){this[_0x163cad(0x36a)](_0x2f6c89,_0x443f32,_0x12daff,_0xeca889,_0x18636b);return;}this[_0x163cad(0x1d4)](_0x443f32,_0x103bed,_0x12daff,_0xeca889,_0x18636b);}),this[_0x1a8150(0x22d)]=_0x127a2f[_0x1a8150(0x3b3)]['subscribeEvent']((_0x5f28d6,_0x3c4e28)=>{const _0x3e9aa9=_0x1a8150;this[_0x3e9aa9(0x415)](_0x127a2f,_0x103bed,_0x5f28d6,_0x12daff,_0x51c717);}),_0x5c47f4[_0x1a8150(0x3b8)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x35ee65,_0x1781d0,_0x4309b4){const _0x32061c=_0x2daf50;let _0x20d41c=this[_0x32061c(0x453)][_0x32061c(0x3bd)](_0x35ee65,_0x1781d0,_0x4309b4);if(!_0x20d41c||_0x20d41c[_0x32061c(0x3ce)]===0x0)return;let _0x31b500=this['_renderManagerService'][_0x32061c(0x36e)](_0x35ee65);if(!_0x31b500)return;let {scene:_0x8ec962}=_0x31b500;for(let _0x1efa56 of _0x20d41c){let _0x2a5556=_0x1efa56['lineShapeId'],_0x32135d=this[_0x32061c(0x453)][_0x32061c(0x3c5)](_0x35ee65,_0x1781d0,_0x2a5556);if(!_0x32135d)continue;let _0x12f962=_0x32135d[_0x32061c(0x1dd)](),_0xdb0370=_0x32135d['getEndConnectInfo'](),_0x1850f6=(_0x12f962==null?void 0x0:_0x12f962[_0x32061c(0x1b5)])===_0x4309b4,_0x45631c=(0x0,o[_0x32061c(0x41c)])({'unitId':_0x35ee65,'subUnitId':_0x1781d0,'drawingId':_0x2a5556}),_0x4ab0ba=_0x8ec962[_0x32061c(0x23d)](_0x45631c);if(!_0x4ab0ba)continue;let _0x254694=this[_0x32061c(0x449)]['getDrawingByParam']({'unitId':_0x35ee65,'subUnitId':_0x1781d0,'drawingId':_0x2a5556});_0x254694!=null&&_0x254694['transform']&&(_0x12f962&&_0xdb0370?this['_rerouteConnectorLine'](_0x35ee65,_0x1781d0,_0x2a5556,_0x32135d,_0x12f962,_0xdb0370,_0x4ab0ba):this[_0x32061c(0x376)](_0x35ee65,_0x1781d0,_0x2a5556,_0x32135d,_0x1850f6?_0x12f962:_0xdb0370,_0x1850f6,_0x254694,_0x4ab0ba));}}[_0x2daf50(0x1f9)](_0x2c8c75,_0x22c1dc,_0xaba1db,_0x4eb870,_0x5dbbce,_0x2291e3,_0x41f842){const _0x32d4d3=_0x2daf50;let _0x3f0c61=this[_0x32d4d3(0x19c)],_0x4aea90=this['_subUnitId'];this[_0x32d4d3(0x19c)]=_0x2c8c75,this['_subUnitId']=_0x22c1dc;let _0x236e23=this[_0x32d4d3(0x44e)](_0x5dbbce),_0x493f7d=this['_getConnectPointInfo'](_0x2291e3);if(this[_0x32d4d3(0x19c)]=_0x3f0c61,this[_0x32d4d3(0x1a5)]=_0x4aea90,!_0x236e23||!_0x493f7d)return;let _0x314b85=_0x4eb870[_0x32d4d3(0x3ca)](),_0x1b2d6a=(0x0,t[_0x32d4d3(0x260)])(_0x236e23,_0x493f7d,_0x314b85);_0x1b2d6a&&_0x4eb870[_0x32d4d3(0x299)](_0x1b2d6a);let _0x5da039=(0x0,t[_0x32d4d3(0x2cc)])(_0x1b2d6a,_0x314b85);_0x5da039[_0x32d4d3(0x2c1)]!==_0x314b85&&_0x4eb870[_0x32d4d3(0x343)](_0x5da039[_0x32d4d3(0x2c1)]),_0x4eb870[_0x32d4d3(0x1ba)]();for(let [_0xc4855,_0xa48b0]of Object['entries'](_0x5da039[_0x32d4d3(0x3ee)]))_0x4eb870[_0x32d4d3(0x384)](_0xc4855,_0xa48b0);_0x4eb870['updateContext']({'width':_0x5da039[_0x32d4d3(0x474)]['width'],'height':_0x5da039['worldRect'][_0x32d4d3(0x1c6)]}),_0x41f842['transformByState']({'flipX':_0x5da039['worldRect']['flipX'],'flipY':_0x5da039[_0x32d4d3(0x474)]['flipY'],'left':_0x5da039[_0x32d4d3(0x474)][_0x32d4d3(0x1c9)],'top':_0x5da039[_0x32d4d3(0x474)]['top'],'width':_0x5da039[_0x32d4d3(0x474)]['width'],'height':_0x5da039['worldRect'][_0x32d4d3(0x1c6)],'angle':_0x5da039[_0x32d4d3(0x34a)]}),_0x4eb870[_0x32d4d3(0x1d7)]();}['_moveConnectorWithShape'](_0x39c831,_0x19764a,_0x205aa3,_0x1c7ae6,_0x125d33,_0x53b17f,_0xdfce16,_0x571120){const _0x4950cf=_0x2daf50;let _0x353bf0=this[_0x4950cf(0x19c)],_0x1a816f=this['_subUnitId'];this[_0x4950cf(0x19c)]=_0x39c831,this[_0x4950cf(0x1a5)]=_0x19764a;let _0x21a9a3=this['_getConnectPointInfo'](_0x125d33);if(this[_0x4950cf(0x19c)]=_0x353bf0,this['_subUnitId']=_0x1a816f,!_0x21a9a3)return;let {left:_0x10575e=0x0,top:_0x420e63=0x0,width:_0x314201=0x0,height:_0x3d20a6=0x0,flipX:_0x3ef316=!0x1,flipY:_0x2fae17=!0x1}=_0xdfce16['transform'],_0x4864f2=_0x1c7ae6[_0x4950cf(0x2f7)]();if(_0x4864f2[_0x4950cf(0x3ce)]<0x2)return;let _0x5a3c98=new t[(_0x4950cf(0x300))]({'left':_0x10575e,'top':_0x420e63,'width':_0x314201,'height':_0x3d20a6,'flipX':_0x3ef316,'flipY':_0x2fae17}),_0x474c7d=_0x53b17f?_0x4864f2[_0x4864f2[_0x4950cf(0x3ce)]-0x1]:_0x4864f2[0x0],_0xef6c8f=_0x5a3c98['localToWorld'](_0x474c7d),_0x5981d2=t[_0x4950cf(0x300)][_0x4950cf(0x1f7)](_0xef6c8f,_0x21a9a3[_0x4950cf(0x2aa)],!_0x53b17f);_0x571120[_0x4950cf(0x201)]({'flipX':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x3c0)],'flipY':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x380)],'left':_0x5981d2[_0x4950cf(0x474)]['left'],'top':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x286)],'width':_0x5981d2[_0x4950cf(0x474)][_0x4950cf(0x458)],'height':_0x5981d2['worldRect'][_0x4950cf(0x1c6)],'angle':_0x5981d2['worldRect'][_0x4950cf(0x467)]}),_0x571120[_0x4950cf(0x1c7)](!0x0);}[_0x2daf50(0x1f3)](){const _0x4eec05=_0x2daf50;this[_0x4eec05(0x30f)][_0x4eec05(0x3ce)]!==0x0&&(this['_connectorObjects']['forEach'](_0x490567=>{const _0x541d07=_0x4eec05;_0x490567[_0x541d07(0x428)]();}),this[_0x4eec05(0x30f)]=[]);}[_0x2daf50(0x1f6)](){const _0x2603e5=_0x2daf50;let _0x35aa29=this['_univerInstanceService'][_0x2603e5(0x3f1)](i[_0x2603e5(0x21b)]['UNIVER_SHEET']);this['disposeWithMe'](_0x35aa29[_0x2603e5(0x3c6)]((0x0,l['switchMap'])(_0x2756f8=>_0x2756f8?_0x2756f8['activeSheet$'][_0x2603e5(0x3c6)]((0x0,l['switchMap'])(_0x436f19=>{const _0x48b050=_0x2603e5;if(!_0x436f19)return l[_0x48b050(0x19e)];let _0x321298=_0x2756f8[_0x48b050(0x295)](),_0x4089cb=this['_renderManagerService'][_0x48b050(0x36e)](_0x321298),_0x25d7e7=_0x4089cb==null?void 0x0:_0x4089cb[_0x48b050(0x336)];return _0x25d7e7?(0x0,l['of'])(_0x25d7e7):l['EMPTY'];})):l['EMPTY']))[_0x2603e5(0x2d6)](_0x4e0099=>{const _0x212266=_0x2603e5;let _0x4af48b=_0x4e0099[_0x212266(0x251)]();this[_0x212266(0x1c1)](_0x4e0099[_0x212266(0x3b7)][_0x212266(0x382)](_0x34a8c7=>{const _0x578282=_0x212266;this[_0x578282(0x36f)]&&this[_0x578282(0x46c)]&&this[_0x578282(0x1f3)]();})),this['disposeWithMe'](_0x4af48b[_0x212266(0x1e8)]['subscribe'](_0x14783c=>{const _0x2524e3=_0x212266;let {objects:_0x203e79}=_0x14783c;this['_clearShapeConnectorHandlerObjects'](),_0x203e79!==null&&_0x203e79['size']===0x1&&_0x203e79[_0x2524e3(0x2f6)]()[_0x2524e3(0x235)]()['value']instanceof O&&(this[_0x2524e3(0x36f)]=!0x0);})),this[_0x212266(0x1c1)](_0x4af48b[_0x212266(0x211)][_0x212266(0x2d6)](_0x2c3ba7=>{const _0x5cc41e=_0x212266;this['_isDrawingShapePointDown']&&this[_0x5cc41e(0x1f3)]();})),this[_0x212266(0x1c1)](_0x4e0099[_0x212266(0x3b3)]['subscribeEvent'](()=>{const _0x4a3079=_0x212266;this['_isDrawingShapePointDown']&&(this[_0x4a3079(0x36f)]=!0x1,this[_0x4a3079(0x3fa)]());})),this[_0x212266(0x1c1)](_0x4af48b[_0x212266(0x258)][_0x212266(0x2d6)](()=>{const _0x2dbc83=_0x212266;this[_0x2dbc83(0x19c)]&&this[_0x2dbc83(0x1a5)]&&this[_0x2dbc83(0x46c)]&&this[_0x2dbc83(0x449)][_0x2dbc83(0x39b)]({'unitId':this[_0x2dbc83(0x19c)],'subUnitId':this[_0x2dbc83(0x1a5)],'drawingId':this[_0x2dbc83(0x46c)]})&&(this[_0x2dbc83(0x1f3)](),this[_0x2dbc83(0x3fa)]());}));}));}[_0x2daf50(0x2e6)](){const _0x57c68b=_0x2daf50;this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x271)][_0x57c68b(0x2d6)](_0x284121=>{const _0x4fe52d=_0x57c68b;if(_0x284121['length']===0x1){let _0x566dfa=_0x284121[0x0];if(_0x566dfa[_0x4fe52d(0x3ea)]===i['DrawingTypeEnum'][_0x4fe52d(0x324)]){let _0x2935f9=this[_0x4fe52d(0x453)][_0x4fe52d(0x3c5)](_0x566dfa[_0x4fe52d(0x378)],_0x566dfa[_0x4fe52d(0x1a1)],_0x566dfa[_0x4fe52d(0x34d)]);if(_0x2935f9&&(0x0,t[_0x4fe52d(0x1ce)])(_0x2935f9[_0x4fe52d(0x3ca)]())){this[_0x4fe52d(0x46c)]=_0x566dfa[_0x4fe52d(0x34d)],this['_unitId']=_0x566dfa[_0x4fe52d(0x378)],this['_subUnitId']=_0x566dfa['subUnitId'],this['_clearShapeConnectorHandlerObjects'](),this[_0x4fe52d(0x3fa)]();return;}}}this[_0x4fe52d(0x46c)]=void 0x0,this[_0x4fe52d(0x19c)]=void 0x0,this[_0x4fe52d(0x1a5)]=void 0x0,this[_0x4fe52d(0x1f3)]();})),this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x225)][_0x57c68b(0x2d6)](_0x31042f=>{const _0x30d37b=_0x57c68b;if(_0x31042f[_0x30d37b(0x3ce)]===0x1){var _0x3a18c6;let _0x21a195=_0x31042f[0x0],_0x26aae9=(_0x3a18c6=this[_0x30d37b(0x449)][_0x30d37b(0x39b)](_0x21a195))==null?void 0x0:_0x3a18c6[_0x30d37b(0x3ea)];_0x26aae9===i[_0x30d37b(0x2bb)][_0x30d37b(0x324)]&&_0x21a195[_0x30d37b(0x34d)]===this[_0x30d37b(0x46c)]?(this[_0x30d37b(0x1f3)](),this[_0x30d37b(0x3fa)]()):!this['_activeShapeId']&&_0x26aae9===i['DrawingTypeEnum'][_0x30d37b(0x324)]&&this[_0x30d37b(0x37f)](_0x21a195[_0x30d37b(0x378)],_0x21a195[_0x30d37b(0x1a1)],_0x21a195['drawingId']);}})),this[_0x57c68b(0x1c1)](this[_0x57c68b(0x449)][_0x57c68b(0x228)][_0x57c68b(0x2d6)](_0x51ebb5=>{const _0x1520f1=_0x57c68b;for(let _0x5e9e4f of _0x51ebb5){let {drawingId:_0x462092}=_0x5e9e4f;if(this['_activeShapeId']===_0x462092){this[_0x1520f1(0x401)]();return;}}}));}[_0x2daf50(0x36a)](_0x4ce8c8,_0x4f89ce,_0x2caa5e,_0x46497d,_0xe6415f){const _0x341356=_0x2daf50;var _0x3fb5c1,_0x1f7afa;if(!this['_activeShapeModel'])return;let _0x5cf0b7=this[_0x341356(0x44e)](_0x4ce8c8);if(!_0x5cf0b7)return;let _0xd9fc3f=this[_0x341356(0x241)]?this[_0x341356(0x241)][_0x341356(0x1d2)]:_0x4f89ce,_0x4aabe5=this[_0x341356(0x241)]?this[_0x341356(0x241)][_0x341356(0x467)]:this[_0x341356(0x237)](_0x5cf0b7[_0x341356(0x2aa)],_0xd9fc3f),_0x61b592;if(this[_0x341356(0x241)]){let _0x30b58b=this[_0x341356(0x449)][_0x341356(0x39b)]({'unitId':this['_currentConnectionTarget'][_0x341356(0x378)],'subUnitId':this[_0x341356(0x241)][_0x341356(0x1a1)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x30b58b!=null&&_0x30b58b[_0x341356(0x1f8)]){let {left:_0x4a7919=0x0,top:_0x339b43=0x0,width:_0x23cbe6=0x0,height:_0x32bd5f=0x0,angle:_0x35fcf5}=_0x30b58b['transform'];_0x61b592=(0x0,t[_0x341356(0x2b0)])({'left':_0x4a7919,'top':_0x339b43,'width':_0x23cbe6,'height':_0x32bd5f},_0x35fcf5||0x0);}else _0x61b592={'left':_0xd9fc3f['x'],'top':_0xd9fc3f['y'],'width':0x0,'height':0x0};}else _0x61b592={'left':_0xd9fc3f['x'],'top':_0xd9fc3f['y'],'width':0x0,'height':0x0};let _0x3b90f6={'point':_0xd9fc3f,'angle':_0x4aabe5,'bounds':_0x61b592},_0x509a77=_0x2caa5e?_0x3b90f6:_0x5cf0b7,_0x16be19=_0x2caa5e?_0x5cf0b7:_0x3b90f6,_0x1e186b=this[_0x341356(0x3d0)]['getShapeType'](),_0x1b19b9=(0x0,t[_0x341356(0x260)])(_0x509a77,_0x16be19,_0x1e186b);_0x1b19b9&&this[_0x341356(0x3d0)][_0x341356(0x299)](_0x1b19b9);let _0x18a9fd=(0x0,t[_0x341356(0x2cc)])(_0x1b19b9,_0x1e186b);_0x18a9fd[_0x341356(0x2c1)]!==_0x1e186b&&this[_0x341356(0x3d0)][_0x341356(0x343)](_0x18a9fd[_0x341356(0x2c1)]);for(let [_0x2d06ad,_0x20f5db]of Object['entries'](_0x18a9fd[_0x341356(0x3ee)]))this[_0x341356(0x3d0)]['setAdjustValueByName'](_0x2d06ad,_0x20f5db);this[_0x341356(0x3d0)]['updateContext']({'width':_0x18a9fd[_0x341356(0x474)][_0x341356(0x458)],'height':_0x18a9fd['worldRect'][_0x341356(0x1c6)]}),_0x46497d[_0x341356(0x201)]({'flipX':_0x18a9fd['worldRect']['flipX'],'flipY':_0x18a9fd[_0x341356(0x474)]['flipY'],'left':_0x18a9fd[_0x341356(0x474)][_0x341356(0x1c9)],'top':_0x18a9fd[_0x341356(0x474)][_0x341356(0x286)],'width':_0x18a9fd[_0x341356(0x474)]['width'],'height':_0x18a9fd[_0x341356(0x474)]['height'],'angle':_0x18a9fd[_0x341356(0x34a)]}),_0x46497d[_0x341356(0x1c7)](!0x0);let _0x27969d=(_0x3fb5c1=(_0x1f7afa=this[_0x341356(0x241)])==null?void 0x0:_0x1f7afa[_0x341356(0x1d2)])==null?_0x4f89ce:_0x3fb5c1;_0xe6415f['transformByState']({'left':_0x27969d['x']-t[_0x341356(0x24f)]['cxnPointRadius'],'top':_0x27969d['y']-t['ShapeDefaultConfig'][_0x341356(0x298)]});}[_0x2daf50(0x1d4)](_0x542f0b,_0x37c779,_0x1e7de3,_0x4eabe0,_0x4f59f1){const _0x5f5bca=_0x2daf50;var _0x24fdf4,_0x8d9ba0,_0x10b6ae,_0x63127f;let _0x10f990=(_0x24fdf4=(_0x8d9ba0=this[_0x5f5bca(0x241)])==null?void 0x0:_0x8d9ba0[_0x5f5bca(0x1d2)])==null?_0x542f0b:_0x24fdf4,_0x81a2d3=t[_0x5f5bca(0x300)][_0x5f5bca(0x1f7)](_0x37c779,_0x10f990,_0x1e7de3);_0x4eabe0[_0x5f5bca(0x201)]({'flipX':_0x81a2d3['worldRect'][_0x5f5bca(0x3c0)],'flipY':_0x81a2d3[_0x5f5bca(0x474)]['flipY'],'left':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x1c9)],'top':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x286)],'width':_0x81a2d3[_0x5f5bca(0x474)][_0x5f5bca(0x458)],'height':_0x81a2d3['worldRect']['height'],'angle':_0x81a2d3[_0x5f5bca(0x474)]['angle']});let _0x7466a2=(_0x10b6ae=(_0x63127f=this[_0x5f5bca(0x241)])==null?void 0x0:_0x63127f[_0x5f5bca(0x1d2)])==null?_0x542f0b:_0x10b6ae;_0x4f59f1[_0x5f5bca(0x201)]({'left':_0x7466a2['x']-t[_0x5f5bca(0x24f)][_0x5f5bca(0x298)],'top':_0x7466a2['y']-t[_0x5f5bca(0x24f)]['cxnPointRadius']});}[_0x2daf50(0x44e)](_0xe5731){const _0x3360e0=_0x2daf50;if(!this[_0x3360e0(0x19c)]||!this[_0x3360e0(0x1a5)])return null;let {shapeId:_0x48862c,cxnIndex:_0x3ae2f9}=_0xe5731,_0x24c7ba=this['_sheetsShapeService'][_0x3360e0(0x3c5)](this[_0x3360e0(0x19c)],this[_0x3360e0(0x1a5)],_0x48862c);if(!_0x24c7ba)return null;let _0x5aadcd=this['_drawingManagerService'][_0x3360e0(0x39b)]({'unitId':this['_unitId'],'subUnitId':this[_0x3360e0(0x1a5)],'drawingId':_0x48862c});if(!(_0x5aadcd!=null&&_0x5aadcd['transform']))return null;let {left:_0x187d03=0x0,top:_0x4332e6=0x0,width:_0x47c673=0x0,height:_0x51a7d9=0x0,flipX:_0x2f16ed=!0x1,flipY:_0x4fbc8d=!0x1,angle:_0x47cb14}=_0x5aadcd[_0x3360e0(0x1f8)];_0x24c7ba[_0x3360e0(0x3a0)]({'width':_0x47c673,'height':_0x51a7d9});let _0x1ae3f0=_0x24c7ba[_0x3360e0(0x2d3)]()[_0x3360e0(0x2db)](_0x43ecb7=>_0x43ecb7['index']===_0x3ae2f9);if(!_0x1ae3f0)return null;let _0x209e9e=_0x2f16ed?_0x47c673-_0x1ae3f0['x']:_0x1ae3f0['x'],_0x38ef26=_0x4fbc8d?_0x51a7d9-_0x1ae3f0['y']:_0x1ae3f0['y'];if(_0x47cb14!==0x0&&_0x47cb14!=null){let _0xd02c9=_0x47cb14*Math['PI']/0xb4,_0xfbd72f=Math[_0x3360e0(0x2e0)](_0xd02c9),_0x54d692=Math[_0x3360e0(0x27c)](_0xd02c9),_0x3890dc=_0x47c673/0x2,_0xef78ae=_0x51a7d9/0x2,_0x189925=_0x209e9e-_0x3890dc,_0x135e5b=_0x38ef26-_0xef78ae;_0x209e9e=_0x3890dc+_0x189925*_0xfbd72f-_0x135e5b*_0x54d692,_0x38ef26=_0xef78ae+_0x189925*_0x54d692+_0x135e5b*_0xfbd72f;}_0x209e9e+=_0x187d03,_0x38ef26+=_0x4332e6;let _0xa54342=_0x1ae3f0['ang']/0xea60;_0x2f16ed&&(_0xa54342=0xb4-_0xa54342),_0x4fbc8d&&(_0xa54342=-_0xa54342),_0xa54342+=_0x47cb14||0x0,_0xa54342=(_0xa54342%0x168+0x168)%0x168;let _0x4dec21=(0x0,t['getBasicShapeRotateBound'])({'left':_0x187d03,'top':_0x4332e6,'width':_0x47c673,'height':_0x51a7d9},_0x47cb14||0x0);return{'point':{'x':_0x209e9e,'y':_0x38ef26},'angle':_0xa54342,'bounds':_0x4dec21};}['_calculateFreeEndpointAngle'](_0x316e4f,_0x2937d4){const _0x306ae8=_0x2daf50;let _0x178b7a=_0x2937d4['x']-_0x316e4f['x'],_0x32f328=_0x2937d4['y']-_0x316e4f['y'];return Math[_0x306ae8(0x19d)](_0x178b7a)>=Math['abs'](_0x32f328)?_0x178b7a>=0x0?0xb4:0x0:_0x32f328>=0x0?0x10e:0x5a;}[_0x2daf50(0x401)](){const _0x72887b=_0x2daf50;this[_0x72887b(0x46c)]=void 0x0,this[_0x72887b(0x19c)]=void 0x0,this[_0x72887b(0x1a5)]=void 0x0,this[_0x72887b(0x1f3)]();}[_0x2daf50(0x428)](){const _0x2b75c2=_0x2daf50;this['_clearShapeConnectorHandlerObjects'](),super[_0x2b75c2(0x428)]();}};ke=j([A(0x1,i['ICommandService']),A(0x2,s['IRenderManagerService']),A(0x3,o['IDrawingManagerService']),A(0x4,i[_0x2daf50(0x439)]),A(0x5,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x6,(0x0,i[_0x2daf50(0x1bb)])(N)),A(0x7,(0x0,i[_0x2daf50(0x1bb)])(J))],ke);let X=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4dd798,_0x57ab85,_0x340193){const _0x1a8ab8=_0x2daf50;super(),this['_sheetPrintInterceptorService']=_0x4dd798,this[_0x1a8ab8(0x449)]=_0x57ab85,this[_0x1a8ab8(0x1ed)]=_0x340193,this[_0x1a8ab8(0x276)]();}[_0x2daf50(0x276)](){const _0x5d8569=_0x2daf50;this[_0x5d8569(0x1c1)](this[_0x5d8569(0x2ff)]['interceptor'][_0x5d8569(0x2d4)](this[_0x5d8569(0x2ff)][_0x5d8569(0x39a)][_0x5d8569(0x213)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2adc83,_0x68b4e8,_0x3be80a)=>{const _0x430057=_0x5d8569;var _0x76631c;let {unitId:_0x2f3aa1,subUnitId:_0x59e472,scene:_0x4297a1,resourceCollector:_0x22db78}=_0x68b4e8,_0x48ea5e=(_0x76631c=this[_0x430057(0x449)][_0x430057(0x28c)](_0x2f3aa1))==null?void 0x0:_0x76631c[_0x59e472];return _0x48ea5e==null||_0x48ea5e[_0x430057(0x3f8)]['forEach'](_0x505e9a=>{const _0x253fa2=_0x430057;let _0x5a9fe9=_0x48ea5e[_0x253fa2(0x44c)][_0x505e9a];_0x5a9fe9[_0x253fa2(0x3ea)]===i[_0x253fa2(0x2bb)][_0x253fa2(0x324)]&&!_0x5a9fe9['hidden']&&this['_shapeRenderController'][_0x253fa2(0x246)](_0x5a9fe9,_0x4297a1,{'resourceCollector':_0x22db78});}),_0x3be80a(_0x2adc83);}}));}};function _0x4b78(_0x569d07,_0x1b61b2){_0x569d07=_0x569d07-0x19c;const _0xa75668=_0xa756();let _0x4b78e6=_0xa75668[_0x569d07];return _0x4b78e6;}X=j([A(0x0,(0x0,i[_0x2daf50(0x1bb)])(c['SheetPrintInterceptorService'])),A(0x1,o[_0x2daf50(0x3a9)]),A(0x2,(0x0,i['Inject'])(M))],X);let Z=class extends i[_0x2daf50(0x2f9)]{constructor(_0x4a94d4,_0x5af349,_0x4fa63f){const _0x567215=_0x2daf50;super(),this['_commandService']=_0x4a94d4,this[_0x567215(0x464)]=_0x5af349,this[_0x567215(0x1fd)]=_0x4fa63f,this[_0x567215(0x349)]();}['_initPermission'](){const _0x18c0b6=_0x2daf50;this[_0x18c0b6(0x1c1)](this['_commandService'][_0x18c0b6(0x2ae)](_0x3c0b7b=>{const _0x2f52e3=_0x18c0b6;let _0x5a68d9,_0xd57e52;if(_0x3c0b7b['id']===r['InsertShapeCommand']['id']||_0x3c0b7b['id']===r['SetShapeDrawingDataCommand']['id']||_0x3c0b7b['id']===r[_0x2f52e3(0x28d)]['id']){let _0x5147e0=_0x3c0b7b[_0x2f52e3(0x3e9)];_0x5a68d9=_0x5147e0['unitId'],_0xd57e52=_0x5147e0[_0x2f52e3(0x1a1)];}!_0x5a68d9||!_0xd57e52||this[_0x2f52e3(0x1fd)][_0x2f52e3(0x308)]({'workbookTypes':[a[_0x2f52e3(0x208)]],'worksheetTypes':[a[_0x2f52e3(0x3c3)]]},_0x5a68d9,_0xd57e52)||this[_0x2f52e3(0x1fd)][_0x2f52e3(0x3d4)](this[_0x2f52e3(0x464)]['t'](_0x2f52e3(0x331)));}));}};Z=j([A(0x0,(0x0,i['Inject'])(i[_0x2daf50(0x1b8)])),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(i['LocaleService'])),A(0x2,(0x0,i[_0x2daf50(0x1bb)])(a[_0x2daf50(0x403)]))],Z);let Q=class extends i[_0x2daf50(0x2f9)]{constructor(_0x52e580,_0x1b7651,_0x318874,_0x47b3e4,_0x2c913d,_0x254227,_0x4fa164,_0x34c613,_0x57d509,_0x28be2f,_0x5e765f){const _0x5d03c1=_0x2daf50;super(),this[_0x5d03c1(0x1aa)]=_0x52e580,this[_0x5d03c1(0x33f)]=_0x1b7651,this[_0x5d03c1(0x32b)]=_0x318874,this[_0x5d03c1(0x453)]=_0x47b3e4,this[_0x5d03c1(0x464)]=_0x2c913d,this[_0x5d03c1(0x19f)]=_0x254227,this['_drawingManagerService']=_0x4fa164,this[_0x5d03c1(0x47f)]=_0x34c613,this['_contextService']=_0x57d509,this['_renderManagerService']=_0x28be2f,this['_shapeTextEditingService']=_0x5e765f,E(this,'_sidebarDisposable',null),E(this,_0x5d03c1(0x275),null),E(this,_0x5d03c1(0x311),!0x1),E(this,_0x5d03c1(0x347),0x0),E(this,_0x5d03c1(0x1ff),new Set()),E(this,_0x5d03c1(0x1e5),[]),this[_0x5d03c1(0x293)](),this['disposeWithMe'](this[_0x5d03c1(0x1aa)][_0x5d03c1(0x3f1)](i[_0x5d03c1(0x21b)][_0x5d03c1(0x447)])[_0x5d03c1(0x2d6)](_0x1ff037=>{const _0x4cc86c=_0x5d03c1;if(!_0x1ff037){var _0x2165ed;(_0x2165ed=this[_0x4cc86c(0x44a)])==null||_0x2165ed['dispose']();return;}this['_createShapePopupMenu'](_0x1ff037);})),this[_0x5d03c1(0x1b6)](),this[_0x5d03c1(0x482)](),this['initShapePopupMenu'](),this['disposeWithMe'](this[_0x5d03c1(0x320)]['editingParams$']['subscribe'](_0x4f1147=>{_0x4f1147&&this['_clearPopups']();}));}[_0x2daf50(0x293)](){const _0x596bc0=_0x2daf50;this[_0x596bc0(0x32b)]['mergeMenu'](de);}['_registerShapeMenu'](){const _0x7a35a6=_0x2daf50;this[_0x7a35a6(0x47f)][_0x7a35a6(0x248)](i[_0x7a35a6(0x2bb)][_0x7a35a6(0x324)],this[_0x7a35a6(0x259)]['bind'](this)),this[_0x7a35a6(0x47f)][_0x7a35a6(0x342)](i[_0x7a35a6(0x2bb)][_0x7a35a6(0x324)],0x6,0x4);}[_0x2daf50(0x3ac)](){const _0x42a7e5=_0x2daf50;this[_0x42a7e5(0x1aa)]['getAllUnitsForType'](i[_0x42a7e5(0x21b)][_0x42a7e5(0x447)])['forEach'](_0x151704=>this['_createShapePopupMenu'](_0x151704));}[_0x2daf50(0x259)](_0x6e9f28,_0x2e350c,_0x2d65a4,_0x3f029c){const _0x21ab46=_0x2daf50;return[{'label':'sheets-shape-ui.openPanel','index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4},'disable':_0x3f029c===i['DrawingTypeEnum'][_0x21ab46(0x2e8)]},{'label':'sheets-shape-ui.deleteShape','index':0x1,'commandId':h[_0x21ab46(0x2b7)]['id'],'commandParams':{'unitId':_0x6e9f28,'drawings':[{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4,'drawingType':_0x3f029c}]},'disable':!0x1},{'label':_0x21ab46(0x2ec),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'drawingId':_0x2d65a4},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':r[_0x21ab46(0x24b)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipV','index':0x4,'commandId':r[_0x21ab46(0x24b)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'flipV':!0x0},'disable':!0x1},{'label':_0x21ab46(0x455),'index':0x4,'commandId':r[_0x21ab46(0x1a4)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'rotate':0x5a},'disable':!0x1},{'label':_0x21ab46(0x203),'index':0x4,'commandId':r[_0x21ab46(0x1a4)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4,'rotate':-0x5a},'disable':!0x1},{'label':_0x21ab46(0x33b),'index':0x4,'commandId':r[_0x21ab46(0x3c9)]['id'],'commandParams':{'unitId':_0x6e9f28,'subUnitId':_0x2e350c,'shapeId':_0x2d65a4},'disable':!0x1}];}['_getShapeInfo'](_0x438033,_0x28c1c2,_0x1d080f){const _0x33ac0e=_0x2daf50;let _0x38534f=this[_0x33ac0e(0x453)]['getShapeTypeById'](_0x438033,_0x28c1c2,_0x1d080f),_0x252d80=this[_0x33ac0e(0x453)][_0x33ac0e(0x2e7)](_0x438033,_0x28c1c2,_0x1d080f);return _0x38534f!==void 0x0&&_0x252d80!==void 0x0?{'shapeData':_0x252d80,'shapeId':_0x1d080f,'shapeType':_0x38534f,'unitId':_0x438033,'subUnitId':_0x28c1c2,'version':this[_0x33ac0e(0x347)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0xba8c47){const _0xd5e9ed=_0x2daf50;if(!_0xba8c47)return;let _0x2a9084=_0xba8c47[_0xd5e9ed(0x295)]();this[_0xd5e9ed(0x3fc)][_0xd5e9ed(0x35d)](_0x2a9084)&&!this[_0xd5e9ed(0x1ff)][_0xd5e9ed(0x35d)](_0x2a9084)&&(this[_0xd5e9ed(0x1b3)](_0x2a9084),this[_0xd5e9ed(0x1ff)]['add'](_0x2a9084));}['_clearPopups'](){const _0x3a5991=_0x2daf50;this[_0x3a5991(0x1e5)][_0x3a5991(0x279)](_0x4375f8=>_0x4375f8[_0x3a5991(0x428)]()),this['_disposePopups'][_0x3a5991(0x3ce)]=0x0;}[_0x2daf50(0x1b3)](_0x1d77b3){const _0x48f9ca=_0x2daf50;var _0x41d79a;let _0x455393=(_0x41d79a=this[_0x48f9ca(0x3fc)][_0x48f9ca(0x36e)](_0x1d77b3))==null?void 0x0:_0x41d79a['scene'],_0x65eac6=_0x455393==null?void 0x0:_0x455393['getTransformerByCreate']();!_0x455393||!_0x65eac6||(this['disposeWithMe'](_0x65eac6['createControl$'][_0x48f9ca(0x2d6)](()=>{const _0x28f898=_0x48f9ca;let _0x37212c=_0x65eac6[_0x28f898(0x45e)]();if(this['_clearPopups'](),this[_0x28f898(0x311)]||_0x37212c[_0x28f898(0x31c)]>0x1)return;let _0x4e57cd=_0x37212c[_0x28f898(0x2f6)]()[_0x28f898(0x235)]()[_0x28f898(0x2ef)];if(!_0x4e57cd)return;let _0x23421f=this['_drawingManagerService'][_0x28f898(0x3db)](_0x4e57cd[_0x28f898(0x2b9)]);if(!_0x23421f||_0x23421f[_0x28f898(0x3ea)]!==i['DrawingTypeEnum'][_0x28f898(0x324)])return;let {unitId:_0x42f85c,subUnitId:_0x4a709f,drawingId:_0xd1ce32,drawingType:_0x5c720c}=_0x23421f,_0x2d999f=this[_0x28f898(0x2ad)](_0x42f85c,_0x4a709f,_0xd1ce32);if(!_0x2d999f)return;this['_contextService'][_0x28f898(0x340)](i[_0x28f898(0x47c)],!0x0);let _0x4422df=this[_0x28f898(0x47f)]['attachPopupToObject'](_0x4e57cd,{'componentKey':R,'direction':_0x28f898(0x20a),'offset':[0x0,n['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x42f85c,'subUnitId':_0x4a709f,'drawingId':_0xd1ce32,'drawingType':_0x5c720c,'shapeType':_0x2d999f[_0x28f898(0x479)],'shapeData':_0x2d999f[_0x28f898(0x285)]}});this[_0x28f898(0x1e5)][_0x28f898(0x1d8)](this[_0x28f898(0x1c1)](_0x4422df)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x415201=>_0x415201[_0x28f898(0x378)]===_0x42f85c&&_0x415201['subUnitId']===_0x4a709f&&_0x415201[_0x28f898(0x34d)]===_0xd1ce32)||this['_drawingManagerService'][_0x28f898(0x375)]([{'unitId':_0x42f85c,'subUnitId':_0x4a709f,'drawingId':_0xd1ce32}]);})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x1e0)][_0x48f9ca(0x2d6)](()=>{const _0x1839c5=_0x48f9ca;this[_0x1839c5(0x416)](),this[_0x1839c5(0x2a1)][_0x1839c5(0x340)](i[_0x1839c5(0x47c)],!0x1),this[_0x1839c5(0x449)][_0x1839c5(0x375)](null);})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x211)]['subscribe'](()=>{this['_clearPopups']();})),this[_0x48f9ca(0x1c1)](_0x65eac6[_0x48f9ca(0x1e8)][_0x48f9ca(0x2d6)](()=>{const _0x5f0d18=_0x48f9ca;this[_0x5f0d18(0x416)]();})));}[_0x2daf50(0x1b6)](){const _0x353116=_0x2daf50;this[_0x353116(0x1c1)](this[_0x353116(0x19f)][_0x353116(0x20b)](_0x369029=>{const _0x19f85e=_0x353116;if(_0x369029['id']===V['id']){let {unitId:_0x5998b0,subUnitId:_0x3378a3,drawingId:_0x5329f4}=_0x369029[_0x19f85e(0x3e9)];this['_shapeEditPanelVersion']+=0x1,this[_0x19f85e(0x275)]=this[_0x19f85e(0x2ad)](_0x5998b0,_0x3378a3,_0x5329f4),this[_0x19f85e(0x416)](),this[_0x19f85e(0x232)]();}if(_0x369029['id']===B['id']&&(this[_0x19f85e(0x275)]=null,this[_0x19f85e(0x2f2)]()),_0x369029['id']===r['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4a65c1,subUnitId:_0x6c6db6,shapeId:_0x2890b6}=_0x369029[_0x19f85e(0x3e9)];if(this[_0x19f85e(0x275)]&&this[_0x19f85e(0x275)][_0x19f85e(0x1b5)]===_0x2890b6){let _0x448de9=this['_getShapeInfo'](_0x4a65c1,_0x6c6db6,_0x2890b6);_0x448de9&&(this[_0x19f85e(0x347)]+=0x1,_0x448de9[_0x19f85e(0x309)]=this['_shapeEditPanelVersion'],this[_0x19f85e(0x275)]=_0x448de9,this[_0x19f85e(0x311)]&&this[_0x19f85e(0x232)]());}}})),this[_0x353116(0x1c1)](this[_0x353116(0x449)][_0x353116(0x271)][_0x353116(0x2d6)](_0x2219af=>{const _0x43574c=_0x353116;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x2219af[_0x43574c(0x3ce)]===0x0){this[_0x43574c(0x275)]=null,this['_closeShapeEditPanel']();return;}if(_0x2219af[_0x43574c(0x3ce)]===0x1&&_0x2219af[0x0][_0x43574c(0x3ea)]===i[_0x43574c(0x2bb)][_0x43574c(0x324)]&&(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x43574c(0x2ad)](_0x2219af[0x0]['unitId'],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x43574c(0x232)]();return;}let _0x2c0272=_0x2219af[_0x43574c(0x1df)](_0x41cb3d=>_0x41cb3d['drawingType']===i['DrawingTypeEnum'][_0x43574c(0x324)]);if(_0x2219af[_0x43574c(0x3ce)]>0x1&&_0x2c0272[_0x43574c(0x3ce)]===_0x2219af[_0x43574c(0x3ce)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x43574c(0x275)]=this[_0x43574c(0x2ad)](_0x2219af[0x0][_0x43574c(0x378)],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0][_0x43574c(0x34d)]),this['_activeShapeInfo']){this[_0x43574c(0x232)]();return;}}else{if(this[_0x43574c(0x347)]+=0x1,this[_0x43574c(0x275)]=this[_0x43574c(0x2ad)](_0x2219af[0x0][_0x43574c(0x378)],_0x2219af[0x0][_0x43574c(0x1a1)],_0x2219af[0x0]['drawingId']),this[_0x43574c(0x275)]){this['_activeShapeInfo'][_0x43574c(0x404)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x2daf50(0x232)](){const _0x325665=_0x2daf50;this[_0x325665(0x275)]&&(this[_0x325665(0x44a)]=this['_sidebarService'][_0x325665(0x3d6)]({'id':I,'header':{'title':this[_0x325665(0x464)]['t'](_0x325665(0x3a3))},'width':0x184,'children':{'label':I,...this[_0x325665(0x275)]},'onClose':()=>{const _0x23c4a1=_0x325665;this[_0x23c4a1(0x449)][_0x23c4a1(0x375)](null),this[_0x23c4a1(0x2a1)][_0x23c4a1(0x340)](i[_0x23c4a1(0x47c)],!0x1),this[_0x23c4a1(0x44a)]=null;}}),this[_0x325665(0x311)]=!0x0);}[_0x2daf50(0x2f2)](){const _0x33f433=_0x2daf50;this[_0x33f433(0x311)]=!0x1,this[_0x33f433(0x33f)][_0x33f433(0x478)](I),this[_0x33f433(0x44a)]=null,this['_contextService'][_0x33f433(0x340)](i[_0x33f433(0x47c)],!0x1),this[_0x33f433(0x449)]['focusDrawing'](null);}};Q=j([A(0x0,i[_0x2daf50(0x439)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(e[_0x2daf50(0x3ff)])),A(0x2,e[_0x2daf50(0x45c)]),A(0x3,(0x0,i[_0x2daf50(0x1bb)])(r[_0x2daf50(0x411)])),A(0x4,(0x0,i[_0x2daf50(0x1bb)])(i[_0x2daf50(0x2df)])),A(0x5,i[_0x2daf50(0x1b8)]),A(0x6,o[_0x2daf50(0x3a9)]),A(0x7,(0x0,i[_0x2daf50(0x1bb)])(c[_0x2daf50(0x28b)])),A(0x8,i['IContextService']),A(0x9,s['IRenderManagerService']),A(0xa,(0x0,i['Inject'])(U))],Q);let $=class extends i[_0x2daf50(0x2a5)]{constructor(_0x4552a2=me,_0x33e3e8,_0x1f0fff,_0x261480,_0x496a0d){const _0x189dab=_0x2daf50;super(),this[_0x189dab(0x249)]=_0x4552a2,this['_injector']=_0x33e3e8,this['_commandService']=_0x1f0fff,this[_0x189dab(0x399)]=_0x261480,this[_0x189dab(0x3fc)]=_0x496a0d;let {..._0x501da1}=(0x0,i[_0x189dab(0x3df)])({},me,this['_config']);this[_0x189dab(0x399)][_0x189dab(0x43a)](_0x189dab(0x35f),_0x501da1),this['_initCommands']();}['onRendered'](){const _0x41cdee=_0x2daf50;(0x0,i['touchDependencies'])(this[_0x41cdee(0x430)],[[Q],[q],[M],[X]]);}[_0x2daf50(0x2c4)](){const _0x207426=_0x2daf50;this['_injector']['get'](Q)[_0x207426(0x3ac)]();}[_0x2daf50(0x398)](){const _0x4e3a65=_0x2daf50;[[J],[N],[Y]][_0x4e3a65(0x279)](_0x278bfd=>this[_0x4e3a65(0x430)][_0x4e3a65(0x224)](_0x278bfd)),(0x0,i['touchDependencies'])(this['_injector'],[[Y],[N]]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)]['UNIVER_SHEET'],[J]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[G]),this[_0x4e3a65(0x3fc)][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[ke]),this['_renderManagerService'][_0x4e3a65(0x2d5)](i[_0x4e3a65(0x21b)][_0x4e3a65(0x447)],[we]),this[_0x4e3a65(0x3fc)]['registerRenderModule'](i[_0x4e3a65(0x21b)][_0x4e3a65(0x362)],[Te]);}['onStarting'](){const _0xd1ffed=_0x2daf50;this[_0xd1ffed(0x430)][_0xd1ffed(0x224)]([W]),this[_0xd1ffed(0x430)][_0xd1ffed(0x423)](W);let _0x4921ab=this['_injector'];[[Q],[q],[M],[X],[H],[U],[K],[z],[Z]][_0xd1ffed(0x279)](_0x299873=>_0x4921ab[_0xd1ffed(0x224)](_0x299873)),(0x0,i[_0xd1ffed(0x451)])(this[_0xd1ffed(0x430)],[[Q],[q],[M],[H],[U],[K],[z],[Z]]);}['_initCommands'](){const _0x24607f=_0x2daf50;[F,b,B,V,ne,P]['forEach'](_0x475aba=>this['disposeWithMe'](this[_0x24607f(0x19f)][_0x24607f(0x1eb)](_0x475aba)));}};E($,_0x2daf50(0x3e6),i['UniverInstanceType'][_0x2daf50(0x447)]),E($,_0x2daf50(0x341),_0x2daf50(0x434)),E($,_0x2daf50(0x1c3),fe),E($,'version',pe),$=j([(0x0,i[_0x2daf50(0x365)])(f['UniverLicensePlugin'],n[_0x2daf50(0x1a6)],p[_0x2daf50(0x29d)],r[_0x2daf50(0x2b5)]),A(0x1,(0x0,i[_0x2daf50(0x1bb)])(i['Injector'])),A(0x2,i[_0x2daf50(0x1b8)]),A(0x3,i['IConfigService']),A(0x4,s[_0x2daf50(0x282)])],$),exports[_0x2daf50(0x2a6)]=de,Object[_0x2daf50(0x34c)](exports,_0x2daf50(0x23f),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x35c725=_0x244f;(function(_0x178388,_0x9915d){const _0x4fa0a6=_0x244f,_0x1e8448=_0x178388();while(!![]){try{const _0x23477=-parseInt(_0x4fa0a6(0x15c))/0x1*(parseInt(_0x4fa0a6(0x35d))/0x2)+-parseInt(_0x4fa0a6(0x1c3))/0x3+parseInt(_0x4fa0a6(0x18c))/0x4*(parseInt(_0x4fa0a6(0xec))/0x5)+-parseInt(_0x4fa0a6(0x24a))/0x6*(-parseInt(_0x4fa0a6(0x14c))/0x7)+-parseInt(_0x4fa0a6(0x152))/0x8*(-parseInt(_0x4fa0a6(0x1da))/0x9)+parseInt(_0x4fa0a6(0x1a9))/0xa+-parseInt(_0x4fa0a6(0x3c3))/0xb*(parseInt(_0x4fa0a6(0x18a))/0xc);if(_0x23477===_0x9915d)break;else _0x1e8448['push'](_0x1e8448['shift']());}catch(_0xcc3ec3){_0x1e8448['push'](_0x1e8448['shift']());}}}(_0xf823,0xe0622),Object[_0x35c725(0x189)](exports,Symbol[_0x35c725(0x312)],{'value':_0x35c725(0x324)}));let e=require('@univerjs/ui'),t=require('@univerjs-pro/engine-shape'),n=require('@univerjs-pro/shape-editor-ui'),r=require('@univerjs-pro/sheets-shape'),i=require('@univerjs/core'),a=require('@univerjs/sheets'),o=require('@univerjs/drawing'),s=require('@univerjs/engine-render'),c=require('@univerjs/sheets-ui'),l=require('rxjs'),u=require('@univerjs/drawing-ui'),d=require('react/jsx-runtime'),f=require('@univerjs-pro/license'),p=require('@univerjs/sheets-drawing-ui'),m=require('@univerjs/icons'),h=require('@univerjs/sheets-drawing'),g=require('react'),_=require('@univerjs/docs'),v=require('@univerjs/docs-ui');function y(_0x25bda6,_0x5f1e04){const _0x299862=_0x35c725;let _0x3d4eda={};for(let _0x4cd0cc of Object[_0x299862(0x3b8)](_0x5f1e04)){let _0x1d32d1=_0x5f1e04[_0x4cd0cc],_0x567267=_0x25bda6[_0x4cd0cc];if(_0x1d32d1!==void 0x0){if(_0x567267===void 0x0){_0x3d4eda[_0x4cd0cc]=void 0x0;continue;}typeof _0x1d32d1==_0x299862(0x370)&&_0x1d32d1&&!Array[_0x299862(0x16d)](_0x1d32d1)&&typeof _0x567267==_0x299862(0x370)&&_0x567267&&!Array[_0x299862(0x16d)](_0x567267)?_0x3d4eda[_0x4cd0cc]=y(_0x567267,_0x1d32d1):_0x3d4eda[_0x4cd0cc]=_0x567267;}}return _0x3d4eda;}const b={'type':i['CommandType'][_0x35c725(0x35c)],'id':'sheet.command.update-shape-data','handler':(_0x4ea7b1,_0x411653)=>{const _0x53b431=_0x35c725;let _0x305b66=_0x4ea7b1[_0x53b431(0x2d7)](r[_0x53b431(0x31c)]),{unitId:_0x3ef4e6,subUnitId:_0x46cd09,shapeType:_0x336edb,shapeId:_0x5a0f49,shapeData:_0x56862e,oldShapeJSON:_0x4fe611}=_0x411653;if(!_0x305b66[_0x53b431(0x3a1)](_0x3ef4e6,_0x46cd09,_0x5a0f49))return!0x1;let _0x3840d4=_0x4ea7b1[_0x53b431(0x2d7)](i[_0x53b431(0x20e)]),_0x1180e7=_0x4ea7b1[_0x53b431(0x2d7)](i[_0x53b431(0x141)]),{oldShapeType:_0x3f5700,oldShapeData:_0x23f729={}}=_0x4fe611,_0xdd5795=y(_0x23f729,_0x56862e||{}),_0x5ef526={'id':r[_0x53b431(0x1ac)]['id'],'params':{'unitId':_0x3ef4e6,'subUnitId':_0x46cd09,'shapeId':_0x5a0f49,'shapeType':_0x336edb,'shapeData':_0x56862e}},_0x355b19={'id':r[_0x53b431(0x1ac)]['id'],'params':{'unitId':_0x3ef4e6,'subUnitId':_0x46cd09,'shapeId':_0x5a0f49,'shapeType':_0x3f5700,'shapeData':_0xdd5795}};return _0x3840d4['syncExecuteCommand'](_0x5ef526['id'],_0x5ef526[_0x53b431(0x335)])?(_0x1180e7[_0x53b431(0x386)]({'unitID':_0x3ef4e6,'undoMutations':[_0x355b19],'redoMutations':[_0x5ef526]}),!0x0):!0x1;}};function x(_0xaccd67,_0x316d47,_0x5f47cb,_0x3b719b,_0x1b0bce,_0x28c03f){const _0x35b5a9=_0x35c725;let _0x3666c8={'unitId':_0x316d47,'subUnitId':_0x5f47cb,'shapeId':_0x3b719b,'shapeData':_0x28c03f,'oldShapeJSON':_0x1b0bce};return _0xaccd67[_0x35b5a9(0x372)](b['id'],_0x3666c8);}function S(_0x4da234,_0x1b2667,_0x4bca1f,_0x1b33e2,_0x3b8cf2,_0x1a13f5){let _0x360053={'unitId':_0x1b2667,'subUnitId':_0x4bca1f,'shapeId':_0x1b33e2,'shapeData':_0x1a13f5,'oldShapeJSON':_0x3b8cf2};return _0x4da234['executeCommand'](b['id'],_0x360053);}function C(_0x30f4e1){'@babel/helpers - typeof';const _0x15ae1f=_0x35c725;return C=typeof Symbol==_0x15ae1f(0x323)&&typeof Symbol['iterator']==_0x15ae1f(0x32a)?function(_0x32dc2b){return typeof _0x32dc2b;}:function(_0x1aa026){const _0x19ce94=_0x15ae1f;return _0x1aa026&&typeof Symbol==_0x19ce94(0x323)&&_0x1aa026['constructor']===Symbol&&_0x1aa026!==Symbol[_0x19ce94(0xee)]?'symbol':typeof _0x1aa026;},C(_0x30f4e1);}function w(_0x1d9e86,_0x3f502c){const _0x519d5e=_0x35c725;if(C(_0x1d9e86)!=_0x519d5e(0x370)||!_0x1d9e86)return _0x1d9e86;var _0x279017=_0x1d9e86[Symbol[_0x519d5e(0x2fe)]];if(_0x279017!==void 0x0){var _0x1fa315=_0x279017[_0x519d5e(0x16c)](_0x1d9e86,_0x3f502c||_0x519d5e(0x2ac));if(C(_0x1fa315)!='object')return _0x1fa315;throw TypeError(_0x519d5e(0x29f));}return(_0x3f502c==='string'?String:Number)(_0x1d9e86);}function T(_0x39d37a){const _0x1af4ec=_0x35c725;var _0x36b8d2=w(_0x39d37a,_0x1af4ec(0x1f1));return C(_0x36b8d2)=='symbol'?_0x36b8d2:_0x36b8d2+'';}function E(_0x1a6727,_0x4ffbee,_0x3e61fe){const _0x44aae9=_0x35c725;return(_0x4ffbee=T(_0x4ffbee))in _0x1a6727?Object[_0x44aae9(0x189)](_0x1a6727,_0x4ffbee,{'value':_0x3e61fe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a6727[_0x4ffbee]=_0x3e61fe,_0x1a6727;}function D(_0x2edaae,_0x5d38c8,_0x52b1b9){const _0x2bb7f1=_0x35c725;var _0x316995;let _0x36adfc=(0x0,n[_0x2bb7f1(0x356)])(_0x2edaae,{..._0x5d38c8,'dataModel':{...(_0x316995=_0x5d38c8[_0x2bb7f1(0x3c9)])==null?{}:_0x316995,..._0x52b1b9?{'doc':_0x52b1b9}:null}}),_0x5e5515=(0x0,n[_0x2bb7f1(0x228)])(_0x36adfc);return{'clip':(0x0,n[_0x2bb7f1(0x121)])(_0x36adfc,_0x5e5515),'wrapStrategy':_0x5e5515};}var O=class extends s[_0x35c725(0x305)]{constructor(_0x3dfd18,_0x2b7f82){const _0x5a92e9=_0x35c725;super(_0x3dfd18,_0x2b7f82),E(this,_0x5a92e9(0x3bc),void 0x0),E(this,_0x5a92e9(0x292),!0x0),E(this,_0x5a92e9(0x3bf),i['DrawingTypeEnum'][_0x5a92e9(0x257)]),E(this,_0x5a92e9(0x1ea),!0x0),this[_0x5a92e9(0x3bc)]={..._0x2b7f82},this['_init']();}[_0x35c725(0x311)](){const _0x2f4aa7=_0x35c725;this[_0x2f4aa7(0x219)][_0x2f4aa7(0x2e1)](_0x55c643=>{this['_updateSrcRectByTransform'](_0x55c643);});}[_0x35c725(0x1a3)](_0x42109b){const _0x571616=_0x35c725;this['_props'][_0x571616(0x36b)]=_0x42109b;}[_0x35c725(0x353)](_0x1a5eb7){const _0x15e683=_0x35c725;this[_0x15e683(0x3bc)][_0x15e683(0x163)]=_0x1a5eb7,this[_0x15e683(0x1ff)](!0x0);}get[_0x35c725(0x301)](){const _0x1e97d2=_0x35c725;return this[_0x1e97d2(0x3bc)][_0x1e97d2(0x301)];}get['subUnitId'](){const _0x5609b0=_0x35c725;return this[_0x5609b0(0x3bc)][_0x5609b0(0x3bd)];}[_0x35c725(0x387)](_0x5d8ccf){const _0x4d46a5=_0x35c725;if(this['_props'][_0x4d46a5(0x1e1)]==null||!this[_0x4d46a5(0x292)])return;let {width:_0x2e9ec8,height:_0x1989f0}=this,{width:_0x3789c1=0x0,height:_0x48c154=0x0}=_0x5d8ccf[_0x4d46a5(0x2e2)],{left:_0x51a4ad=0x0,top:_0x35187c=0x0,right:_0x1249a5=0x0,bottom:_0x536b68=0x0}=this['_props'][_0x4d46a5(0x1e1)],_0x416c8c=_0x51a4ad,_0x2bb3b5=_0x35187c,_0x413268=_0x1249a5,_0x594890=_0x536b68,_0x41c3a7=!0x1;if(_0x3789c1!==0x0&&_0x3789c1!==_0x2e9ec8){let _0x5abdfc=_0x51a4ad/_0x3789c1,_0x30c38a=_0x1249a5/_0x3789c1;_0x416c8c=_0x2e9ec8*_0x5abdfc,_0x413268=_0x2e9ec8*_0x30c38a,_0x41c3a7=!0x0;}if(_0x48c154!==0x0&&_0x48c154!==_0x1989f0){let _0x224004=_0x35187c/_0x48c154,_0x3eca11=_0x536b68/_0x48c154;_0x2bb3b5=_0x1989f0*_0x224004,_0x594890=_0x1989f0*_0x3eca11,_0x41c3a7=!0x0;}_0x41c3a7&&this[_0x4d46a5(0xe6)]({'left':_0x416c8c,'top':_0x2bb3b5,'right':_0x413268,'bottom':_0x594890});}['setSrcRect'](_0x4cbda7){const _0x418bac=_0x35c725;this['_props']['srcRect']=_0x4cbda7,this[_0x418bac(0x1ff)](!0x0);}['setFillImage'](_0x3d357e){const _0x4d175f=_0x35c725;this[_0x4d175f(0x3bc)][_0x4d175f(0x11d)]=_0x3d357e,this['makeDirty'](!0x0);}set[_0x35c725(0x139)](_0x20a3d6){const _0x4e5353=_0x35c725;this[_0x4e5353(0x1a1)]=_0x20a3d6;}get['transform'](){const _0x5b780a=_0x35c725;this[_0x5b780a(0x1a1)]||this[_0x5b780a(0x38c)]();let _0x2318c3=this[_0x5b780a(0x1a1)][_0x5b780a(0x286)]();return this[_0x5b780a(0x287)](_0x2318c3);}get['shapeModel'](){const _0x4e1294=_0x35c725;return this[_0x4e1294(0x3bc)][_0x4e1294(0x20c)];}get[_0x35c725(0x363)](){const _0x128a87=_0x35c725;return this[_0x128a87(0x3bc)]['shapeId'];}get['classType'](){return s['RENDER_CLASS_TYPE']['SHAPE'];}[_0x35c725(0x252)](_0x1228dd,_0x2a7d8d,_0x243848,_0x541b5c){const _0x3e3927=_0x35c725;let _0x38e700=this['_props']['shapeModel'];if(!_0x38e700||!_0x2a7d8d)return;let _0x580490=_0x243848==null?this['width']:_0x243848,_0x4d22e4=_0x541b5c==null?this[_0x3e3927(0x2b2)]:_0x541b5c,_0x2bd499={'shapeType':_0x38e700[_0x3e3927(0x3ab)](),'width':_0x580490,'height':_0x4d22e4},_0x5f4196={'renderMode':t['ShapeRenderModeEnum'][_0x3e3927(0x21f)],'oKey':this[_0x3e3927(0x331)],'image':this[_0x3e3927(0x3bc)][_0x3e3927(0x11d)],'angle':this['angle']};_0x38e700[_0x3e3927(0x27d)](_0x2bd499),_0x1228dd[_0x3e3927(0xeb)]();let _0x23ef05={'top':0x0,'left':0x0,'width':_0x580490,'height':_0x4d22e4};_0x38e700[_0x3e3927(0xe9)](_0x1228dd,_0x23ef05,_0x5f4196),_0x1228dd['restore']();let _0xc0f13e=_0x38e700[_0x3e3927(0x37d)](),_0x388687=_0x38e700[_0x3e3927(0x17f)](_0x23ef05),_0x2bb274=_0x38e700[_0x3e3927(0x111)]();if(_0xc0f13e&&_0x388687&&!_0x2bb274){_0x1228dd[_0x3e3927(0xeb)](),this[_0x3e3927(0x2b9)]()[_0x3e3927(0x2fb)]&&_0x1228dd[_0x3e3927(0x2ec)](-0x1,0x1);let _0x14c039=_0x580490/0x2,_0xe65c98=_0x4d22e4/0x2;_0x1228dd[_0x3e3927(0x313)](-_0x14c039,-_0xe65c98),_0x1228dd[_0x3e3927(0x1a5)](),this[_0x3e3927(0x166)](_0x1228dd,_0xc0f13e,_0x388687),_0x1228dd[_0x3e3927(0x2ca)]();}}['getDrawingPoints'](_0x2ccf19){}[_0x35c725(0x166)](_0x2139f0,_0x37b3a9,_0x344312){const _0xd36801=_0x35c725;var _0x1a6b08;this[_0xd36801(0x3bc)][_0xd36801(0x163)]||(!((_0x1a6b08=_0x37b3a9[_0xd36801(0x3c9)])!=null&&_0x1a6b08['doc'])&&'isRichText'in _0x37b3a9&&_0x37b3a9[_0xd36801(0x221)]===!0x1?this[_0xd36801(0x364)](_0x2139f0,_0x37b3a9,_0x344312):this['_drawRichText'](_0x2139f0,_0x37b3a9,_0x344312));}[_0x35c725(0x364)](_0x51e009,_0x3a1164,_0x139c69){const _0x4e70ee=_0x35c725;var _0x5d8e5f;this[_0x4e70ee(0x2ff)](_0x51e009,{..._0x3a1164,'text':(_0x5d8e5f=_0x3a1164[_0x4e70ee(0x32e)])==null?'':_0x5d8e5f,'dataModel':{'doc':(0x0,n[_0x4e70ee(0x3c4)])(_0x3a1164,'sheets-shape-text-'+this[_0x4e70ee(0x331)])}},_0x139c69);}[_0x35c725(0x2ff)](_0x1e2219,_0x465e61,_0x19cf08){const _0x41a1e5=_0x35c725;var _0xd228e9,_0x344029;let _0x222bb5=this[_0x41a1e5(0x3bc)]['localeService'];if(!_0x465e61[_0x41a1e5(0x3c9)]||!_0x222bb5)return;let _0x2873a9=(0x0,n['normalizeShapeTextModel'])(_0x465e61[_0x41a1e5(0x3c9)]);if(!_0x2873a9)return;let _0x5b14c5=_0x2873a9[_0x41a1e5(0x296)];if(!_0x5b14c5)return;let _0x3b2deb=(_0xd228e9=_0x2873a9['va'])==null?i[_0x41a1e5(0x37a)][_0x41a1e5(0x148)]:_0xd228e9,_0x47a50f=(_0x344029=_0x2873a9['ha'])==null?i[_0x41a1e5(0x382)][_0x41a1e5(0xf1)]:_0x344029,_0xb0cdbd=D(this['_props'][_0x41a1e5(0x20c)][_0x41a1e5(0x3b1)](),_0x465e61,_0x5b14c5),_0x3b0f57=_0x465e61[_0x41a1e5(0x38b)],_0x23f99d=new i[(_0x41a1e5(0x26e))]((0x0,n[_0x41a1e5(0x1c4)])(_0x5b14c5,{'isHorizontal':_0x3b0f57!==!0x1,'textRect':_0x19cf08,'verticalAlign':_0x3b2deb,'horizontalAlign':_0x47a50f,'wrapStrategy':_0xb0cdbd[_0x41a1e5(0x30a)]})),_0x40717a=new s[(_0x41a1e5(0x31f))](_0x23f99d),_0x6595fa=s[_0x41a1e5(0x341)]['create'](_0x40717a,_0x222bb5);_0x6595fa[_0x41a1e5(0x168)]();let _0x164b64=_0x6595fa[_0x41a1e5(0x240)]()[_0x41a1e5(0x3b9)],_0x5824b6=(0x0,n[_0x41a1e5(0x351)])({'contentHeight':_0x164b64,'verticalAlign':_0x3b2deb,'viewportHeight':_0x19cf08['height']});_0x23f99d[_0x41a1e5(0x1a2)]({'pageSize':{'width':_0x3b0f57===!0x1?_0x19cf08[_0x41a1e5(0x2b2)]:_0x19cf08[_0x41a1e5(0x149)],'height':_0x5824b6[_0x41a1e5(0x1cb)]}}),_0x23f99d[_0x41a1e5(0x1c5)]({'t':_0x5824b6[_0x41a1e5(0x214)]}),_0x6595fa[_0x41a1e5(0x168)]();let _0x510ef2=new s['Documents'](_0x41a1e5(0x3b6)+this['oKey'],_0x6595fa,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x510ef2['resize'](_0x19cf08['width'],_0x5824b6[_0x41a1e5(0x1cb)]),_0x1e2219[_0x41a1e5(0xeb)](),_0x1e2219[_0x41a1e5(0x304)](_0x19cf08[_0x41a1e5(0x1ab)],_0x19cf08[_0x41a1e5(0x16e)]),_0xb0cdbd[_0x41a1e5(0x2e8)]&&(_0x1e2219['beginPath'](),_0x1e2219[_0x41a1e5(0x378)](0x0,_0x5824b6['clipTop'],_0x19cf08[_0x41a1e5(0x149)],_0x5824b6['clipHeight']),_0x1e2219[_0x41a1e5(0x2e8)]()),_0x5824b6[_0x41a1e5(0x26a)]&&_0x1e2219[_0x41a1e5(0x304)](0x0,_0x5824b6['contentVerticalOffset']),_0x510ef2[_0x41a1e5(0x2e4)](_0x1e2219),_0x1e2219[_0x41a1e5(0x2ca)](),_0x510ef2[_0x41a1e5(0x12d)](),_0x6595fa[_0x41a1e5(0x12d)](),_0x40717a[_0x41a1e5(0x12d)](),_0x23f99d[_0x41a1e5(0x12d)]();}['render'](_0x11c205,_0x2233aa,_0x488e92=!0x1){const _0x32bddc=_0x35c725;if(!this['visible'])return this[_0x32bddc(0x1ff)](!0x1),this;let {width:_0x32183a,height:_0x3e99a1,left:_0x531237,top:_0xcd83d0}=this,_0x263b25=this['getRealBound']();if(_0x32183a=_0x263b25[_0x32bddc(0x149)],_0x3e99a1=_0x263b25[_0x32bddc(0x2b2)],_0x531237=_0x263b25['left'],_0xcd83d0=_0x263b25[_0x32bddc(0x16e)],this[_0x32bddc(0xfd)](_0x2233aa)){let {top:_0x1f9328,left:_0x8a6a49,bottom:_0x95a077,right:_0x2dc8bb}=_0x2233aa['viewBound'];if(_0x32183a+this[_0x32bddc(0x1ed)]+_0x531237<_0x8a6a49||_0x2dc8bb<_0x531237||_0x3e99a1+this[_0x32bddc(0x1ed)]+_0xcd83d0<_0x1f9328||_0x95a077<_0xcd83d0)return this;}let _0x16db89=_0x531237+_0x32183a/0x2,_0x1c8328=_0xcd83d0+_0x3e99a1/0x2,_0x4e669f=this['transform'][_0x32bddc(0x285)]();if(this[_0x32bddc(0x3bc)][_0x32bddc(0x163)]){let _0x2b5a2d=this[_0x32bddc(0x2b9)](),_0x34ee1c=new s['Transform']();_0x34ee1c[_0x32bddc(0x2f6)]({..._0x2b5a2d}),_0x4e669f=_0x34ee1c[_0x32bddc(0x285)]();}return _0x11c205[_0x32bddc(0xeb)](),this[_0x32bddc(0x3bc)][_0x32bddc(0x20c)]['isRenderLinePointsMode']===!0x0||_0x11c205['transform'](_0x4e669f[0x0],_0x4e669f[0x1],_0x4e669f[0x2],_0x4e669f[0x3],_0x16db89,_0x1c8328),this[_0x32bddc(0x252)](_0x11c205,_0x2233aa,_0x32183a,_0x3e99a1),_0x11c205[_0x32bddc(0x2ca)](),this[_0x32bddc(0x1ff)](!0x1),this;}[_0x35c725(0x3c0)](_0x30be2f){const _0x2fe44d=_0x35c725;let {left:_0x2bac6b,top:_0x1b8e5c,width:_0x3b4f49,height:_0x58e0b9}=this[_0x2fe44d(0x2a4)](),_0x54e066=this[_0x2fe44d(0x139)][_0x2fe44d(0x285)](),_0x233b09=_0x2bac6b+_0x3b4f49/0x2,_0x3b6ce4=_0x1b8e5c+_0x58e0b9/0x2,_0x1c5125=new s['Transform']([_0x54e066[0x0],_0x54e066[0x1],_0x54e066[0x2],_0x54e066[0x3],_0x233b09,_0x3b6ce4]),_0x4df240=this['getParent']();return(this['isInGroup']&&(_0x4df240==null?void 0x0:_0x4df240[_0x2fe44d(0x322)])===s[_0x2fe44d(0x273)][_0x2fe44d(0x1fb)]?_0x4df240['ancestorTransform']['multiply'](_0x1c5125):_0x1c5125)[_0x2fe44d(0x376)]()[_0x2fe44d(0x25c)](_0x30be2f);}['isHit'](_0x12ccdb){const _0x1d3022=_0x35c725;let {left:_0x378200,top:_0x389cb0,width:_0x2784d9,height:_0x24835f}=this[_0x1d3022(0x2a4)](),_0x3884bf=_0x378200+_0x2784d9/0x2,_0x4e63ab=_0x389cb0+_0x24835f/0x2,_0x2721a9=this['transform'][_0x1d3022(0x285)](),_0x39622a=new s[(_0x1d3022(0x194))]([_0x2721a9[0x0],_0x2721a9[0x1],_0x2721a9[0x2],_0x2721a9[0x3],_0x3884bf,_0x4e63ab]),_0x3c13ac=this[_0x1d3022(0x208)](),_0x498b4e=(this[_0x1d3022(0x11a)]&&(_0x3c13ac==null?void 0x0:_0x3c13ac[_0x1d3022(0x322)])===s[_0x1d3022(0x273)]['GROUP']?_0x3c13ac[_0x1d3022(0x118)][_0x1d3022(0x1fd)](_0x39622a):_0x39622a)['invert']()['applyPoint'](_0x12ccdb),_0x1fca1e=_0x2784d9/0x2,_0x4d876c=_0x24835f/0x2,_0x5aa426=this['_props'][_0x1d3022(0x20c)];return _0x5aa426&&_0x5aa426[_0x1d3022(0x111)]()?_0x5aa426[_0x1d3022(0x3ba)](_0x498b4e['x'],_0x498b4e['y'],_0x2784d9,_0x24835f):_0x498b4e['x']>=-_0x1fca1e-this[_0x1d3022(0x1ed)]/0x2&&_0x498b4e['x']<=_0x1fca1e+this[_0x1d3022(0x1ed)]/0x2&&_0x498b4e['y']>=-_0x4d876c-this[_0x1d3022(0x1ed)]/0x2&&_0x498b4e['y']<=_0x4d876c+this[_0x1d3022(0x1ed)]/0x2;}[_0x35c725(0x12d)](){const _0x5bad2c=_0x35c725;this[_0x5bad2c(0x3bc)][_0x5bad2c(0x20c)]=null,super[_0x5bad2c(0x12d)]();}},k=class extends s['Shape']{constructor(_0x477892,_0x3a9278){const _0x566a4c=_0x35c725;super(_0x477892,_0x3a9278),E(this,_0x566a4c(0x1c0),null),E(this,'_adjName',null),E(this,_0x566a4c(0x229),null),E(this,_0x566a4c(0x275),null),_0x3a9278&&this[_0x566a4c(0x288)](_0x3a9278);}[_0x35c725(0x120)](){const _0x2349d7=_0x35c725;return{'unitId':this[_0x2349d7(0x229)],'subUnitId':this[_0x2349d7(0x275)],'drawingId':this['_shapeId']};}[_0x35c725(0x288)](_0x4221c8){const _0x323b29=_0x35c725;_0x4221c8[_0x323b29(0x363)]!==void 0x0&&(this[_0x323b29(0x1c0)]=_0x4221c8[_0x323b29(0x363)]),_0x4221c8[_0x323b29(0x2d9)]!==void 0x0&&(this['_adjName']=_0x4221c8['adjName']),_0x4221c8[_0x323b29(0x301)]!==void 0x0&&(this[_0x323b29(0x229)]=_0x4221c8[_0x323b29(0x301)]),_0x4221c8['subUnitId']!==void 0x0&&(this[_0x323b29(0x275)]=_0x4221c8['subUnitId']),this['transformByState']({'width':_0x4221c8[_0x323b29(0x149)],'height':_0x4221c8[_0x323b29(0x2b2)]});}[_0x35c725(0x252)](_0x315aa6){const _0x3bfbab=_0x35c725;s[_0x3bfbab(0x2b5)][_0x3bfbab(0x2e7)](_0x315aa6,{'radius':t['ShapeDefaultConfig']['adjHandleSize'],'fill':t['ShapeDefaultConfig'][_0x3bfbab(0x3b3)],'stroke':t['ShapeDefaultConfig'][_0x3bfbab(0x24f)],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x146cf6,_0x17e99f){return function(_0x2c66a4,_0x581053){_0x17e99f(_0x2c66a4,_0x581053,_0x146cf6);};}function j(_0x4ee3f8,_0x81c169,_0x3de9c9,_0x5540ed){const _0x264b94=_0x35c725;var _0x18e122=arguments['length'],_0x1272d2=_0x18e122<0x3?_0x81c169:_0x5540ed===null?_0x5540ed=Object['getOwnPropertyDescriptor'](_0x81c169,_0x3de9c9):_0x5540ed,_0x51efb3;if(typeof Reflect==_0x264b94(0x370)&&typeof Reflect['decorate']=='function')_0x1272d2=Reflect['decorate'](_0x4ee3f8,_0x81c169,_0x3de9c9,_0x5540ed);else{for(var _0x1d1139=_0x4ee3f8[_0x264b94(0x33e)]-0x1;_0x1d1139>=0x0;_0x1d1139--)(_0x51efb3=_0x4ee3f8[_0x1d1139])&&(_0x1272d2=(_0x18e122<0x3?_0x51efb3(_0x1272d2):_0x18e122>0x3?_0x51efb3(_0x81c169,_0x3de9c9,_0x1272d2):_0x51efb3(_0x81c169,_0x3de9c9))||_0x1272d2);}return _0x18e122>0x3&&_0x1272d2&&Object[_0x264b94(0x189)](_0x81c169,_0x3de9c9,_0x1272d2),_0x1272d2;}let M=class extends i['Disposable']{constructor(_0x5320bd,_0x4741d5,_0x591f2e,_0x229711,_0x499a5e){const _0xb16a99=_0x35c725;super(),this['_drawingManagerService']=_0x5320bd,this['_sheetsShapeService']=_0x4741d5,this[_0xb16a99(0x346)]=_0x591f2e,this[_0xb16a99(0x224)]=_0x229711,this[_0xb16a99(0x345)]=_0x499a5e;}['renderDrawingShape'](_0x3d3c65,_0x3ccb2b,_0x5035d5){const _0x3caa65=_0x35c725;let {transform:_0x5284c8,drawingType:_0x20083d,srcRect:_0x31308d,prstGeom:_0x53845e,groupId:_0x5e55f8,unitId:_0xfec987,subUnitId:_0x209eb9,drawingId:_0x1f524b,isMultiTransform:_0x390bd6,transforms:_0x58701c,hidden:_0x3bba45,selectable:_0x9fdc54}=_0x3d3c65;if(_0x20083d!==i[_0x3caa65(0x36d)]['DRAWING_SHAPE']||!this['_drawingManagerService'][_0x3caa65(0x192)]()||_0x5284c8==null)return;let _0x14230b=this[_0x3caa65(0x284)][_0x3caa65(0x3c2)]();_0x14230b&&_0x3ccb2b[_0x3caa65(0x3b0)](n[_0x3caa65(0x156)]);let _0x3bc620=_0x390bd6&&_0x58701c?_0x58701c:[_0x5284c8],_0x391bb1=[];for(let _0x2e946c of _0x3bc620){let {left:_0x2afe0e,top:_0x329783,width:_0x3e26f6,height:_0x49e966,angle:_0xe903cb,flipX:_0x62d940,flipY:_0x3ddbbc,skewX:_0x112105,skewY:_0x40094f}=_0x2e946c,_0x1e3d0f=_0x3bc620['indexOf'](_0x2e946c),_0x2223e1=(0x0,o[_0x3caa65(0x13b)])({'unitId':_0xfec987,'subUnitId':_0x209eb9,'drawingId':_0x1f524b},_0x390bd6?_0x1e3d0f:void 0x0),_0x542440=_0x3ccb2b[_0x3caa65(0x3c5)](_0x2223e1);if(_0x542440!=null){_0x542440[_0x3caa65(0x13e)]({'left':_0x2afe0e,'top':_0x329783,'width':_0x3e26f6,'height':_0x49e966,'angle':_0xe903cb,'flipX':_0x62d940,'flipY':_0x3ddbbc,'skewX':_0x112105,'skewY':_0x40094f});continue;}let _0x2db066=this[_0x3caa65(0x284)][_0x3caa65(0x308)](_0xfec987,_0x209eb9),_0x431e5c=_0x2db066[_0x3caa65(0x1bc)](_0x1f524b);if(_0x3ccb2b[_0x3caa65(0x3c5)](_0x2223e1)||!this['_drawingManagerService']['getDrawingVisible']())continue;let _0x5ddecb=this[_0x3caa65(0x167)][_0x3caa65(0x3a1)](_0xfec987,_0x209eb9,_0x1f524b);if(!_0x5ddecb)continue;let _0x27f15d=new O(_0x2223e1,{...(0x0,t[_0x3caa65(0x261)])(_0x5ddecb[_0x3caa65(0x3ab)]())?{..._0x2e946c,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x2e946c},'zIndex':_0x431e5c===-0x1?_0x2db066[_0x3caa65(0x33e)]-0x1:_0x431e5c,'shapeModel':_0x5ddecb,'localeService':this[_0x3caa65(0x346)],'shapeId':_0x1f524b,'unitId':_0xfec987,'subUnitId':_0x209eb9,'visible':_0x3bba45!==!0x0,'evented':_0x9fdc54!==!0x1});_0x3ccb2b[_0x3caa65(0x29d)](_0x27f15d,s['DRAWING_OBJECT_LAYER_INDEX']),_0x14230b&&_0x3ccb2b['attachTransformerTo'](_0x27f15d),_0x5e55f8&&(0x0,u[_0x3caa65(0x19b)])({'drawingId':_0x5e55f8,'unitId':_0xfec987,'subUnitId':_0x209eb9},_0x27f15d,_0x3ccb2b,this[_0x3caa65(0x284)]),_0x53845e!=null&&_0x27f15d['setPrstGeom'](_0x53845e),_0x31308d!=null&&_0x27f15d['setSrcRect'](_0x31308d);let _0x805db9=this[_0x3caa65(0xe7)](_0x27f15d,_0x5ddecb[_0x3caa65(0x3b1)]());if(_0x805db9){var _0x4a8b02;_0x5035d5==null||(_0x4a8b02=_0x5035d5['resourceCollector'])==null||_0x4a8b02[_0x3caa65(0x2f0)](_0x805db9);}_0x391bb1['push'](_0x27f15d);}return _0x391bb1;}[_0x35c725(0x358)](_0xdba5a2){const _0x5e1951=_0x35c725;let _0x115491=_0xdba5a2['shapeModel'][_0x5e1951(0x3b1)](),_0x18656a=_0x115491['fill'];if(!_0x18656a||_0x18656a[_0x5e1951(0x138)]!==t[_0x5e1951(0x336)]['PictureFill']||!_0x18656a[_0x5e1951(0x399)]){_0xdba5a2[_0x5e1951(0x1f7)](void 0x0);return;}this[_0x5e1951(0xe7)](_0xdba5a2,_0x115491);}['_loadShapePictureFill'](_0x2fd4ee,_0x401771){const _0x3f0eaa=_0x35c725;var _0x252f6a;let _0x557d75=_0x401771[_0x3f0eaa(0x2dc)];if(!_0x557d75||_0x557d75[_0x3f0eaa(0x138)]!==t['ShapeFillEnum'][_0x3f0eaa(0x1b6)]||!_0x557d75[_0x3f0eaa(0x399)])return;let _0x31daf2=_0x557d75[_0x3f0eaa(0x399)],_0x37a6ef=(_0x252f6a=_0x557d75[_0x3f0eaa(0x1ce)])==null?t[_0x3f0eaa(0x10d)][_0x3f0eaa(0x343)]:_0x252f6a,_0x230e1c=this['_imageIoService'][_0x3f0eaa(0x2bf)](_0x31daf2,_0x37a6ef);if(_0x230e1c){_0x2fd4ee[_0x3f0eaa(0x1f7)](_0x230e1c);return;}return this[_0x3f0eaa(0x186)](_0x2fd4ee,_0x31daf2,_0x37a6ef);}async[_0x35c725(0x186)](_0x52132c,_0x5b4b00,_0x3ae0be){const _0x33665b=_0x35c725;let _0x582c54;try{if(_0x3ae0be===t[_0x33665b(0x10d)][_0x33665b(0x19d)])_0x582c54=await this[_0x33665b(0x224)][_0x33665b(0x381)](_0x5b4b00);else{if(_0x3ae0be===t['ImageSourceTypeEnum'][_0x33665b(0x343)])try{_0x582c54=await this[_0x33665b(0x345)][_0x33665b(0x381)](_0x5b4b00);}catch{_0x582c54=_0x5b4b00;}else _0x582c54=_0x5b4b00;}}catch(_0x41573b){console[_0x33665b(0x332)](_0x33665b(0x391),_0x41573b);return;}await new Promise(_0xfebbdf=>{const _0x5f4104=_0x33665b;let _0x214d05=new window[(_0x5f4104(0x259))]();_0x214d05[_0x5f4104(0x2c9)]=()=>{const _0x10956e=_0x5f4104;this[_0x10956e(0x224)][_0x10956e(0x23c)](_0x5b4b00,_0x3ae0be,_0x214d05),_0x52132c['setFillImage'](_0x214d05),_0xfebbdf();},_0x214d05[_0x5f4104(0x13c)]=()=>{const _0x4328d1=_0x5f4104;console[_0x4328d1(0x332)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x5b4b00),_0xfebbdf();},_0x214d05['src']=_0x582c54;});}};M=j([A(0x0,o[_0x35c725(0x28f)]),A(0x1,(0x0,i[_0x35c725(0x185)])(r[_0x35c725(0x31c)])),A(0x2,(0x0,i[_0x35c725(0x185)])(i[_0x35c725(0x33d)])),A(0x3,i[_0x35c725(0x374)]),A(0x4,i['IURLImageService'])],M);let N=class extends i[_0x35c725(0x22b)]{constructor(_0xa25d37,_0x4db06c,_0x12fad2,_0x581c62,_0x3be727,_0x419ab8){const _0x5217ad=_0x35c725;super(),this['_drawingManagerService']=_0xa25d37,this[_0x5217ad(0x167)]=_0x4db06c,this[_0x5217ad(0x180)]=_0x12fad2,this[_0x5217ad(0x37c)]=_0x581c62,this[_0x5217ad(0x1d5)]=_0x3be727,this[_0x5217ad(0x155)]=_0x419ab8,E(this,_0x5217ad(0x102),null),E(this,_0x5217ad(0x229),null),E(this,_0x5217ad(0x275),null),E(this,_0x5217ad(0x3ca),void 0x0),E(this,_0x5217ad(0x3c6),[]),E(this,_0x5217ad(0x23a),0x0),E(this,_0x5217ad(0x244),0x0),E(this,'_baseShapeWidth',0x0),E(this,_0x5217ad(0x30e),0x0),E(this,_0x5217ad(0x115),!0x1),E(this,_0x5217ad(0x1d0),void 0x0),E(this,_0x5217ad(0x12f),void 0x0),E(this,_0x5217ad(0x39d),void 0x0),E(this,_0x5217ad(0x24b),void 0x0),E(this,_0x5217ad(0x32c),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x5217ad(0x10e)]();}[_0x35c725(0x289)](_0x39d5c3,_0x58f31c,_0x3155f2){const _0x3e0260=_0x35c725;let _0x31ace2=this[_0x3e0260(0x167)][_0x3e0260(0x3a1)](_0x39d5c3,_0x58f31c,_0x3155f2);if(_0x31ace2)return _0x31ace2[_0x3e0260(0x389)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x35c725(0x28b)](){const _0x3031c2=_0x35c725;this[_0x3031c2(0x11e)](!0x0);}[_0x35c725(0x385)](_0x1efdfe){this['_isShouldShowDrawingShapeAdjust']=_0x1efdfe;}['_getShapeAdjustInfosById'](_0x2304fe,_0x249a88,_0x5cfc07,_0x10e905){const _0x29a8d3=_0x35c725;let _0x19ac4c=this[_0x29a8d3(0x167)][_0x29a8d3(0x3a1)](_0x2304fe,_0x249a88,_0x5cfc07);if(_0x19ac4c)return _0x19ac4c[_0x29a8d3(0x355)](_0x10e905);}['_createShapeAdjustControls'](_0x3c8f88=!0x1){const _0x4bb231=_0x35c725;if(this['_unitId']===null||this[_0x4bb231(0x275)]===null||this[_0x4bb231(0x102)]===null)return;let _0xafeadd=this[_0x4bb231(0x180)][_0x4bb231(0x31e)](this[_0x4bb231(0x229)]);if(!_0xafeadd||!_0xafeadd[_0x4bb231(0x1bd)](c['SheetSkeletonManagerService'])[_0x4bb231(0x184)]())return;let {scene:_0x14f408}=_0xafeadd,_0x302b2f={'unitId':this[_0x4bb231(0x229)],'subUnitId':this[_0x4bb231(0x275)],'drawingId':this[_0x4bb231(0x102)]},_0x2b716e=this[_0x4bb231(0x284)]['getDrawingByParam'](_0x302b2f),{transform:_0x1959ed}=_0x2b716e;if(!_0x1959ed||_0x2b716e[_0x4bb231(0x1d6)]!==i[_0x4bb231(0x36d)][_0x4bb231(0x257)])return;let {left:_0x5825da,top:_0x2012df,width:_0x665a81,height:_0x51184c,flipX:_0x420cf8,flipY:_0x47a611,angle:_0x170747=0x0}=_0x1959ed;if(_0x5825da===void 0x0||_0x2012df===void 0x0)return;_0x3c8f88&&(this[_0x4bb231(0x3ca)]=this[_0x4bb231(0x289)](this[_0x4bb231(0x229)],this[_0x4bb231(0x275)],this['_activeShapeId']));let _0x831139=this[_0x4bb231(0x3ca)];for(let _0x11027e=0x0;_0x11027e<_0x831139['length'];_0x11027e++){let _0x5904fa=_0x831139[_0x11027e],_0x143b63=_0x5904fa['x'],_0x531c8f=_0x5904fa['y'];if(_0x420cf8&&(_0x143b63=(_0x665a81||0x0)-_0x143b63),_0x47a611&&(_0x531c8f=(_0x51184c||0x0)-_0x531c8f),_0x170747!==0x0){let _0x32d826=(_0x665a81||0x0)/0x2,_0x24765f=(_0x51184c||0x0)/0x2,_0xf9122a=_0x170747*Math['PI']/0xb4,_0x17b1d0=Math[_0x4bb231(0x32d)](_0xf9122a),_0x47e0d1=Math[_0x4bb231(0x2dd)](_0xf9122a),_0x19b3a3=_0x143b63-_0x32d826,_0x519927=_0x531c8f-_0x24765f;_0x143b63=_0x32d826+(_0x19b3a3*_0x17b1d0-_0x519927*_0x47e0d1),_0x531c8f=_0x24765f+(_0x19b3a3*_0x47e0d1+_0x519927*_0x17b1d0);}let _0x2733d3={'x':_0x143b63,'y':_0x531c8f,'adjName':_0x5904fa[_0x4bb231(0x2d9)]};this[_0x4bb231(0x113)](_0x14f408,_0x2733d3,_0x2733d3['adjName'],_0x5825da,_0x2012df,this['_unitId'],this['_subUnitId']);}}[_0x35c725(0x11e)](_0x56e2c=!0x1){const _0x3aa5ce=_0x35c725;_0x56e2c&&(this[_0x3aa5ce(0x248)](),this[_0x3aa5ce(0x1ec)](_0x56e2c));}['_addShapeAdjustControl'](_0x10aab1,_0x5156f3,_0x23dfc8,_0x19177e,_0x2eb257,_0x5bfddf,_0x446acc){const _0x378188=_0x35c725;if(!this['_activeShapeId'])return;let _0x3106f5=_0x10aab1[_0x378188(0x3c5)](_0x378188(0x263)+this[_0x378188(0x102)]+'-'+_0x23dfc8);if(_0x3106f5){_0x3106f5[_0x378188(0x13e)]({'left':_0x5156f3['x']+_0x19177e-t['ShapeDefaultConfig'][_0x378188(0x1b8)],'top':_0x5156f3['y']+_0x2eb257-t['ShapeDefaultConfig']['adjHandleSize']});return;}let _0x575286={'left':_0x5156f3['x']+_0x19177e-t[_0x378188(0x188)][_0x378188(0x1b8)],'top':_0x5156f3['y']+_0x2eb257-t[_0x378188(0x188)][_0x378188(0x1b8)],'adjName':_0x23dfc8,'shapeId':this[_0x378188(0x102)],'unitId':_0x5bfddf,'subUnitId':_0x446acc,'width':t[_0x378188(0x188)][_0x378188(0x1b8)]+0x8,'height':t['ShapeDefaultConfig'][_0x378188(0x1b8)]+0x8,'zIndex':s[_0x378188(0x17b)]+0x1,'evented':!0x0},_0xf3d54b=new k(_0x378188(0x263)+this[_0x378188(0x102)]+'-'+_0x23dfc8,_0x575286);this[_0x378188(0x3c6)][_0x378188(0x1a8)](_0xf3d54b),this['_attachAdjustEvent'](_0xf3d54b,_0x10aab1,_0x23dfc8),_0x10aab1['addObject'](_0xf3d54b,s[_0x378188(0x17b)]+0x1);}[_0x35c725(0x248)](){const _0x456267=_0x35c725;this[_0x456267(0x3c6)][_0x456267(0x33e)]!==0x0&&(this['_shapes'][_0x456267(0x236)](_0x49244a=>{const _0x1745bb=_0x456267;_0x49244a[_0x1745bb(0x12d)]();}),this[_0x456267(0x3c6)]=[]);}[_0x35c725(0x2ce)](){const _0x5989d6=_0x35c725;this[_0x5989d6(0x1ec)]();}[_0x35c725(0x122)](_0x10a875,_0x5548e0){const _0x3ed192=_0x35c725;var _0x331a9f;let _0x1c28df={'x':0x0,'y':0x0};if(!_0x10a875||!_0x5548e0)return _0x1c28df;let _0xabed12=this['_renderManagerService']['getRenderById'](_0x10a875);if(!_0xabed12||!_0xabed12[_0x3ed192(0x1bd)](c[_0x3ed192(0x2d5)])[_0x3ed192(0x383)](_0x5548e0))return _0x1c28df;let _0x18826c=_0xabed12['with'](c[_0x3ed192(0x299)]),_0x511b83=_0x18826c==null?void 0x0:_0x18826c[_0x3ed192(0x15f)]();if(!_0x511b83)return _0x1c28df;let _0x35acf8=(_0x331a9f=this[_0x3ed192(0x1d5)][_0x3ed192(0x16b)](_0x10a875))==null?void 0x0:_0x331a9f[_0x3ed192(0x254)](_0x5548e0);if(!_0x35acf8)return _0x1c28df;let _0x46eb7a=(0x0,c[_0x3ed192(0x2a0)])(_0x511b83['sheetViewStartRow'],_0x511b83[_0x3ed192(0x320)],_0xabed12['scene'],_0x35acf8);return _0x46eb7a?{'x':_0x46eb7a[_0x3ed192(0x1a6)],'y':_0x46eb7a[_0x3ed192(0x1e7)]}:_0x1c28df;}[_0x35c725(0x3c1)](_0x55cab0,_0x19d131){const _0x3a418f=_0x35c725;var _0x1e7165,_0x62804d;let _0x477f67=(_0x1e7165=this[_0x3a418f(0x1d5)][_0x3a418f(0x16b)](_0x55cab0))==null?void 0x0:_0x1e7165[_0x3a418f(0x254)](_0x19d131);return(_0x62804d=_0x477f67==null?void 0x0:_0x477f67[_0x3a418f(0x318)]())==null?0x1:_0x62804d;}[_0x35c725(0x2a9)](_0x5e2488,_0x1d5349,_0x511aab){const _0x327f36=_0x35c725;this[_0x327f36(0xf8)]((0x0,i['toDisposable'])(_0x5e2488[_0x327f36(0xfe)][_0x327f36(0x2e1)]((_0x33efbc,_0x5a2e56)=>{const _0x5c98b2=_0x327f36;var _0x447b2c,_0x5156af,_0x23c9a0,_0x511aa0;let _0xca397=_0x5e2488[_0x5c98b2(0x120)]();this[_0x5c98b2(0x1d0)]=this[_0x5c98b2(0x131)](_0xca397[_0x5c98b2(0x301)],_0xca397[_0x5c98b2(0x3bd)],_0xca397[_0x5c98b2(0x187)],_0x511aab),this[_0x5c98b2(0x12f)]=this[_0x5c98b2(0x167)][_0x5c98b2(0x3a1)](_0xca397['unitId'],_0xca397[_0x5c98b2(0x3bd)],_0xca397['drawingId']);let _0x245c49=this[_0x5c98b2(0x284)][_0x5c98b2(0x126)]({'unitId':this[_0x5c98b2(0x229)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),{transform:_0x39c135}=_0x245c49;if(_0x39c135){let {left:_0x46fc54,top:_0x27575d,width:_0x3e0ca1,height:_0x313761}=_0x39c135;this[_0x5c98b2(0x23a)]=_0x46fc54||0x0,this[_0x5c98b2(0x244)]=_0x27575d||0x0,this[_0x5c98b2(0x1f4)]=_0x3e0ca1||0x0,this[_0x5c98b2(0x30e)]=_0x313761||0x0;}let _0x1ba155=!!((_0x447b2c=_0x245c49[_0x5c98b2(0x139)])!=null&&_0x447b2c[_0x5c98b2(0x2fb)]),_0x2333e6=!!((_0x5156af=_0x245c49[_0x5c98b2(0x139)])!=null&&_0x5156af[_0x5c98b2(0x1c6)]),_0x4de684=((_0x23c9a0=_0x245c49[_0x5c98b2(0x139)])==null?void 0x0:_0x23c9a0[_0x5c98b2(0x1be)])||0x0;this['_isStartAdjusting']=!0x0,_0x1d5349['disableObjectsEvent']();let _0x4ebc69=(_0x511aa0=this[_0x5c98b2(0x12f)])==null?void 0x0:_0x511aa0[_0x5c98b2(0xe1)](_0x511aab),_0x2e5123={[_0x511aab]:_0x4ebc69};this[_0x5c98b2(0x39d)]=_0x1d5349[_0x5c98b2(0x137)]['subscribeEvent']((_0x37e90a,_0x40f6ac)=>{const _0x4d221b=_0x5c98b2;if(!this[_0x4d221b(0x115)])return;let {offsetX:_0x34668c,offsetY:_0x3f609d}=_0x37e90a,_0x2c0455=this[_0x4d221b(0x1d0)];if(this[_0x4d221b(0x12f)]&&_0x2c0455){_0x1d5349['disableObjectsEvent'](),_0x1d5349[_0x4d221b(0xe8)](s[_0x4d221b(0x1f8)][_0x4d221b(0x338)]);let _0xaf4d7={'left':0x0,'top':0x0,'width':this[_0x4d221b(0x1f4)],'height':this[_0x4d221b(0x30e)]},_0x1c765d=this['_getScrollInfo'](this['_unitId'],this['_subUnitId']),_0x25496c=this['_getZoomRatio'](this[_0x4d221b(0x229)],this[_0x4d221b(0x275)]),_0x3ac4f6=_0x34668c/_0x25496c+_0x1c765d['x']-this[_0x4d221b(0x23a)],_0x5525f2=_0x3f609d/_0x25496c+_0x1c765d['y']-this['_baseShapeTop'];if(_0x4de684!==0x0){let _0xd4d819=this[_0x4d221b(0x1f4)]/0x2,_0x2a2054=this['_baseShapeHeight']/0x2,_0x4d2780=_0x4de684*Math['PI']/0xb4,_0x427ab2=Math[_0x4d221b(0x32d)](_0x4d2780),_0xe5b6fe=Math[_0x4d221b(0x2dd)](_0x4d2780),_0x304f83=_0x3ac4f6-_0xd4d819,_0x468612=_0x5525f2-_0x2a2054;_0x3ac4f6=_0xd4d819+(_0x304f83*_0x427ab2+_0x468612*_0xe5b6fe),_0x5525f2=_0x2a2054+(-_0x304f83*_0xe5b6fe+_0x468612*_0x427ab2);}_0x1ba155&&(_0x3ac4f6=this[_0x4d221b(0x1f4)]-_0x3ac4f6),_0x2333e6&&(_0x5525f2=this[_0x4d221b(0x30e)]-_0x5525f2);let _0x4bd37d={'x':_0x3ac4f6,'y':_0x5525f2},_0x1bf16e=this['_activeShapeModel'][_0x4d221b(0xe2)](_0xaf4d7,_0x4bd37d,_0x2c0455,_0x1ba155,_0x2333e6),_0x22e7d1=_0x2c0455[_0x4d221b(0x227)]||_0x2c0455[_0x4d221b(0x226)]||_0x2c0455[_0x4d221b(0x1f6)]||_0x2c0455[_0x4d221b(0xed)];if(_0x22e7d1===void 0x0)return;this[_0x4d221b(0x12f)][_0x4d221b(0x29a)](_0x22e7d1,_0x1bf16e);let _0xfcab4c=this[_0x4d221b(0x284)][_0x4d221b(0x126)]({'unitId':_0xca397[_0x4d221b(0x301)],'subUnitId':_0xca397['subUnitId'],'drawingId':_0xca397['drawingId']});_0xfcab4c&&(this[_0x4d221b(0x37c)][_0x4d221b(0x3ad)](_0xfcab4c,_0x1d5349),this[_0x4d221b(0x3ca)]=this[_0x4d221b(0x289)](_0xca397[_0x4d221b(0x301)],_0xca397[_0x4d221b(0x3bd)],_0xca397[_0x4d221b(0x187)]),this['_updateAdjustControlPositions']());}_0x40f6ac[_0x4d221b(0x373)]();}),this[_0x5c98b2(0x24b)]=_0x1d5349[_0x5c98b2(0x342)][_0x5c98b2(0x2e1)]((_0x439c8f,_0x68bf53)=>{const _0x564ea8=_0x5c98b2;this[_0x564ea8(0x39d)][_0x564ea8(0x178)](),this[_0x564ea8(0x24b)][_0x564ea8(0x178)](),_0x1d5349[_0x564ea8(0xfb)]();let _0x97e40e=this[_0x564ea8(0x1d0)];if(_0x97e40e){let _0x3f251f=_0xca397[_0x564ea8(0x301)],_0x31267e=_0xca397['subUnitId'],_0x4b3566=_0xca397[_0x564ea8(0x187)],_0x213fa9=_0x97e40e['gdRefX']||_0x97e40e[_0x564ea8(0x226)]||_0x97e40e[_0x564ea8(0x1f6)]||_0x97e40e[_0x564ea8(0xed)];if(_0x213fa9!==void 0x0){var _0x16d945;let _0x5f1ffc=(_0x16d945=this[_0x564ea8(0x12f)])==null?void 0x0:_0x16d945['getAdjustValueByName'](_0x213fa9);_0x5f1ffc!==void 0x0&&x(this[_0x564ea8(0x155)],_0x3f251f,_0x31267e,_0x4b3566,{'oldShapeData':{'adjustValues':_0x2e5123}},{'adjustValues':{[_0x213fa9]:_0x5f1ffc}});}}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this['_isStartAdjusting']=!0x1,_0x68bf53['stopPropagation'](),_0x1d5349[_0x564ea8(0x19a)]();}),_0x5a2e56[_0x5c98b2(0x373)]();})));}[_0x35c725(0x10e)](){const _0x4d39c1=_0x35c725;let _0x27b4c3=this[_0x4d39c1(0x1d5)][_0x4d39c1(0x1e9)](i[_0x4d39c1(0x27a)][_0x4d39c1(0x354)]);this[_0x4d39c1(0xf8)](_0x27b4c3[_0x4d39c1(0x310)]((0x0,l[_0x4d39c1(0x114)])(_0x4cb063=>_0x4cb063?_0x4cb063[_0x4d39c1(0x35e)]['pipe']((0x0,l[_0x4d39c1(0x114)])(_0x5dfd2f=>{const _0x1c5c5e=_0x4d39c1;if(!_0x5dfd2f)return l[_0x1c5c5e(0x361)];let _0x214b2b=_0x4cb063[_0x1c5c5e(0x2c0)](),_0x425229=this[_0x1c5c5e(0x180)][_0x1c5c5e(0x31e)](_0x214b2b),_0x3c3309=_0x425229==null?void 0x0:_0x425229[_0x1c5c5e(0x106)];return _0x3c3309?(0x0,l['of'])(_0x3c3309):l['EMPTY'];})):l['EMPTY']))[_0x4d39c1(0x23b)](_0x5704fe=>{const _0x231e9f=_0x4d39c1;let _0x19320a=_0x5704fe[_0x231e9f(0x371)]();this[_0x231e9f(0xf8)](_0x5704fe['onPointerMove$'][_0x231e9f(0x2e1)](()=>{const _0x2fb38a=_0x231e9f;this[_0x2fb38a(0x32c)];})),this[_0x231e9f(0xf8)](_0x19320a['changeStart$']['subscribe'](_0x4074de=>{const _0x52cf33=_0x231e9f;let {objects:_0x3f6cab}=_0x4074de;this[_0x52cf33(0x1ec)](),_0x3f6cab!==null&&_0x3f6cab[_0x52cf33(0x1f2)]===0x1&&_0x3f6cab[_0x52cf33(0x316)]()['next']()[_0x52cf33(0x233)]instanceof O&&this['setShouldShowAdjust'](!0x0);})),this[_0x231e9f(0xf8)](_0x19320a[_0x231e9f(0x35f)]['subscribe'](()=>{const _0x1621df=_0x231e9f;this[_0x1621df(0x32c)]&&this[_0x1621df(0x248)]();})),this[_0x231e9f(0xf8)](_0x5704fe['onPointerUp$'][_0x231e9f(0x2e1)](()=>{const _0x427b4e=_0x231e9f;this[_0x427b4e(0x32c)]&&(this[_0x427b4e(0x385)](!0x1),this[_0x427b4e(0x1ec)]());})),this[_0x231e9f(0xf8)](_0x19320a[_0x231e9f(0x21b)][_0x231e9f(0x23b)](()=>{const _0x5a432b=_0x231e9f;this[_0x5a432b(0x229)]&&this[_0x5a432b(0x275)]&&this['_activeShapeId']&&this[_0x5a432b(0x284)][_0x5a432b(0x126)]({'unitId':this[_0x5a432b(0x229)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5a432b(0x102)]})&&(this[_0x5a432b(0x3ca)]=this['_getShapeAdjustPointListById'](this[_0x5a432b(0x229)],this[_0x5a432b(0x275)],this[_0x5a432b(0x102)]),this['_updateAdjustControlPositions']());}));}));}[_0x35c725(0x202)](){const _0x395a71=_0x35c725;this[_0x395a71(0xf8)](this[_0x395a71(0x284)][_0x395a71(0x268)][_0x395a71(0x23b)](_0x4b9d37=>{const _0x5cd1e9=_0x395a71;if(_0x4b9d37[_0x5cd1e9(0x33e)]===0x1){let _0x4fb95b=_0x4b9d37[0x0];if(_0x4fb95b[_0x5cd1e9(0x1d6)]===i[_0x5cd1e9(0x36d)]['DRAWING_SHAPE']){this[_0x5cd1e9(0x102)]=_0x4fb95b['drawingId'];let {unitId:_0x5a290a,subUnitId:_0x1a0d97}=_0x4fb95b;this[_0x5cd1e9(0x3ca)]=this['_getShapeAdjustPointListById'](_0x5a290a,_0x1a0d97,this[_0x5cd1e9(0x102)]),this[_0x5cd1e9(0x229)]=_0x5a290a,this[_0x5cd1e9(0x275)]=_0x1a0d97,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();}else this[_0x5cd1e9(0x102)]=null,this[_0x5cd1e9(0x3ca)]=void 0x0,this[_0x5cd1e9(0x229)]=null,this['_subUnitId']=null,this[_0x5cd1e9(0x248)]();}(_0x4b9d37[_0x5cd1e9(0x33e)]>0x1||_0x4b9d37[_0x5cd1e9(0x33e)]===0x0)&&(this[_0x5cd1e9(0x102)]=null,this[_0x5cd1e9(0x3ca)]=void 0x0,this[_0x5cd1e9(0x229)]=null,this[_0x5cd1e9(0x275)]=null,this[_0x5cd1e9(0x248)]());})),this[_0x395a71(0xf8)](this[_0x395a71(0x284)]['update$'][_0x395a71(0x23b)](_0x1b9099=>{const _0x5ebc41=_0x395a71;if(_0x1b9099['length']===0x1){var _0xc616c4;let _0x47d684=_0x1b9099[0x0];((_0xc616c4=this['_drawingManagerService']['getDrawingByParam'](_0x47d684))==null?void 0x0:_0xc616c4['drawingType'])===i[_0x5ebc41(0x36d)][_0x5ebc41(0x257)]&&this[_0x5ebc41(0x11e)](!0x0);}})),this['disposeWithMe'](this[_0x395a71(0x284)][_0x395a71(0x15e)][_0x395a71(0x23b)](_0x972b77=>{const _0x9c4ec5=_0x395a71;for(let _0x2015f0 of _0x972b77)this[_0x9c4ec5(0x102)]===_0x2015f0[_0x9c4ec5(0x187)]&&(this['_activeShapeId']=null,this[_0x9c4ec5(0x3ca)]=void 0x0,this[_0x9c4ec5(0x229)]=null,this[_0x9c4ec5(0x275)]=null,this[_0x9c4ec5(0x248)]());}));}};N=j([A(0x0,o[_0x35c725(0x28f)]),A(0x1,(0x0,i['Inject'])(r[_0x35c725(0x31c)])),A(0x2,(0x0,i['Inject'])(s[_0x35c725(0x339)])),A(0x3,(0x0,i['Inject'])(M)),A(0x4,i[_0x35c725(0x337)]),A(0x5,i[_0x35c725(0x20e)])],N);const P={'id':_0x35c725(0x1c7),'type':i[_0x35c725(0x303)]['OPERATION'],'handler':(_0xcbe2f6,_0x1f69b3)=>{const _0x2ad6fa=_0x35c725;let _0x5b61c6=_0xcbe2f6[_0x2ad6fa(0x2d7)](o['IDrawingManagerService']),_0x55cb0c=_0xcbe2f6['get'](s[_0x2ad6fa(0x339)]),_0x1a5ef1=_0xcbe2f6[_0x2ad6fa(0x2d7)](N);if(_0x1f69b3==null)return!0x0;if(_0x1f69b3[_0x2ad6fa(0x33e)]>0x0){var _0x2ea767;let _0x16327d=(_0x2ea767=_0x55cb0c[_0x2ad6fa(0x31e)](_0x1f69b3[0x0][_0x2ad6fa(0x301)]))==null?void 0x0:_0x2ea767[_0x2ad6fa(0x106)];if(_0x16327d){let {unitId:_0x378dab,subUnitId:_0xd03f5d,drawingId:_0x58de63}=_0x1f69b3[0x0],_0x1ad253=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x378dab,'subUnitId':_0xd03f5d,'drawingId':_0x58de63},void 0x0),_0xb1d400=_0x16327d[_0x2ad6fa(0x3c5)](_0x1ad253);if(_0xb1d400){var _0x545686;(_0x545686=_0x55cb0c[_0x2ad6fa(0x31e)](_0x1f69b3[0x0]['unitId']))==null||(_0x545686=_0x545686[_0x2ad6fa(0x106)][_0x2ad6fa(0x1df)]())==null||_0x545686['activeAnObject'](_0xb1d400);}}_0x5b61c6[_0x2ad6fa(0x278)](_0x1f69b3),_0x1a5ef1[_0x2ad6fa(0x385)](!0x1);}return!0x0;}},F={'type':i[_0x35c725(0x303)][_0x35c725(0x35c)],'id':_0x35c725(0x37f),'handler':async(_0x4f3e34,_0x35cdab)=>{const _0x5656cd=_0x35c725;let _0x13db5b=(0x0,a[_0x5656cd(0x30c)])(_0x4f3e34[_0x5656cd(0x2d7)](i[_0x5656cd(0x337)]));if(!_0x13db5b)return!0x1;let _0x5c9ed7=_0x4f3e34[_0x5656cd(0x2d7)](a[_0x5656cd(0x142)])['getCurrentLastSelection']();if(!_0x5c9ed7)return!0x1;let _0x1b2229=_0x4f3e34[_0x5656cd(0x2d7)](i[_0x5656cd(0x20e)]),{unitId:_0x183898,subUnitId:_0x20bc99}=_0x13db5b,{value:_0xbe2816,enhanceParams:_0x3cd163}=_0x35cdab,{range:_0x159994}=_0x5c9ed7,_0x2f18af={'unitId':_0x183898,'subUnitId':_0x20bc99,'shapeType':_0xbe2816,'range':_0x159994,'shapeId':(0x0,i[_0x5656cd(0x2ae)])()};if(_0x3cd163){let _0x2b09ff=(0x0,t[_0x5656cd(0x261)])(_0xbe2816),_0x199852=_0xbe2816===t[_0x5656cd(0x317)][_0x5656cd(0x2da)];_0x2b09ff&&(_0x3cd163[_0x5656cd(0x330)]||_0x3cd163[_0x5656cd(0x282)])&&(_0x2f18af[_0x5656cd(0x309)]={'ln':{'startArrow':_0x3cd163['startArrow']?{'type':t[_0x5656cd(0x13f)][_0x5656cd(0x14a)],'size':t[_0x5656cd(0x1f5)][_0x5656cd(0x33b)]}:void 0x0,'endArrow':_0x3cd163[_0x5656cd(0x282)]?{'type':t['ShapeArrowTypeEnum'][_0x5656cd(0x14a)],'size':t[_0x5656cd(0x1f5)][_0x5656cd(0x3be)]}:void 0x0}}),_0x199852&&(_0x3cd163[_0x5656cd(0x357)]||_0x3cd163[_0x5656cd(0x368)])&&(_0x2f18af['shapeData']=(0x0,n['createShapeTextBoxShapeData'])({'fill':{'fillType':t['ShapeFillEnum'][_0x5656cd(0x319)],'color':_0x5656cd(0x307)},'isHorizontal':!!_0x3cd163[_0x5656cd(0x357)],'stroke':{'lineStrokeType':t[_0x5656cd(0x11b)][_0x5656cd(0x13d)],'width':0x1,'color':_0x5656cd(0x3c7)}}));}let _0x361382=_0x1b2229[_0x5656cd(0x1db)](r[_0x5656cd(0x267)]['id'],_0x2f18af);return setTimeout(()=>{const _0x111fba=_0x5656cd;_0x1b2229[_0x111fba(0x372)](P['id'],[{'unitId':_0x183898,'subUnitId':_0x20bc99,'drawingId':_0x2f18af['shapeId']}]);},0xc8),_0x361382;}},I=_0x35c725(0x135),L='sheet.shape.object-list.panel',R=_0x35c725(0xef),ee=(0x0,i[_0x35c725(0x217)])(_0x35c725(0x27e)),te=_0x35c725(0x2e0),ne={'id':_0x35c725(0x235),'type':i['CommandType'][_0x35c725(0x35c)],'handler':(_0x27ae19,_0x2ababf)=>{const _0x35d152=_0x35c725;let _0x247ce5=_0x27ae19[_0x35d152(0x2d7)](e['ISidebarService']),_0x4a2dcf=_0x27ae19['get'](i[_0x35d152(0x33d)]),_0x194db6=_0x27ae19[_0x35d152(0x2d7)](i[_0x35d152(0x337)]),_0x2b9ccc=_0x27ae19[_0x35d152(0x2d7)](i[_0x35d152(0x20e)]);return(0x0,a['getSheetCommandTarget'])(_0x194db6)?(_0x2ababf==null?void 0x0:_0x2ababf['value'])===_0x35d152(0x269)?(_0x247ce5[_0x35d152(0x269)](L),!0x0):(_0x247ce5[_0x35d152(0x298)]({'id':L,'header':{'title':_0x4a2dcf['t'](_0x35d152(0x232))},'children':{'label':L},'onClose':()=>{const _0x5b9d1d=_0x35d152;_0x2b9ccc[_0x5b9d1d(0x1db)](o[_0x5b9d1d(0x18f)]['id'],[]);},'width':0x168}),!0x0):!0x1;}};let z=class extends i[_0x35c725(0x22b)]{constructor(_0x3ae2ab,_0x35aac2){const _0x160791=_0x35c725;super(),this['_clipService']=_0x3ae2ab,this['_drawingManagerService']=_0x35aac2,this['_registerImageShapeClipDelegate'](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x160791(0xf8)]({'dispose':()=>this[_0x160791(0x2ba)][_0x160791(0x21a)](!0x1)});}[_0x35c725(0x11f)](){const _0x20a0e2=_0x35c725;let _0x5758de=this[_0x20a0e2(0x2ba)],_0x110aca=new Map(),_0x1eaaf7=_0x5758de[_0x20a0e2(0x2d8)]((_0x3adb6d,_0x500050,_0x2a5d2f,_0x1ec4df,_0x20891b)=>{const _0xec2040=_0x20a0e2;let _0x2cc528=_0x500050;if(_0x2cc528===t[_0xec2040(0x317)][_0xec2040(0x255)]||_0x500050==='custom')return!0x1;try{let _0x3044a3=_0x110aca[_0xec2040(0x2d7)](_0x500050);return _0x3044a3||(_0x3044a3=new t[(_0xec2040(0x132))](_0x2cc528,'clip-'+_0x500050),_0x110aca['set'](_0x500050,_0x3044a3)),_0x20891b&&_0x3044a3[_0xec2040(0x12a)]({'adjustValues':_0x20891b},!0x0),_0x3044a3['updateContext']({'width':_0x2a5d2f,'height':_0x1ec4df}),_0x3044a3[_0xec2040(0x17e)](_0x3adb6d,{'left':0x0,'top':0x0,'width':_0x2a5d2f,'height':_0x1ec4df});}catch{return!0x1;}});this[_0x20a0e2(0xf8)](_0x1eaaf7),this[_0x20a0e2(0xf8)]({'dispose':()=>_0x110aca[_0x20a0e2(0x1ee)]()});}[_0x35c725(0x272)](_0x264de5,_0x370d84,_0x25bc46,_0x6b1851,_0x1954e2){const _0x50f27c=_0x35c725;let _0x5ebdf8=this[_0x50f27c(0x284)][_0x50f27c(0x2e9)](_0x264de5,_0x370d84);if(!_0x5ebdf8[_0x25bc46])return;let _0x36e3a3={..._0x5ebdf8[_0x25bc46],'prstGeom':_0x6b1851,'adjustValues':_0x1954e2};this[_0x50f27c(0x284)]['featurePluginUpdateNotification']([_0x36e3a3]);}};z=j([A(0x0,(0x0,i[_0x35c725(0x185)])(u['DrawingImageClipService'])),A(0x1,(0x0,i[_0x35c725(0x185)])(o['IDrawingManagerService']))],z);const re=_0x35c725(0x1c9),ie=_0x35c725(0x3af);function ae({onShapeClick:_0x3c5d71,excludeGroups:_0x677172}){const _0x5e4423=_0x35c725;return(0x0,d[_0x5e4423(0x2c4)])(n[_0x5e4423(0x145)],{'excludeGroups':_0x677172,'onShapeClick':_0x3c5d71,'scrollContainer':'parent'});}function oe(){const _0x3c1bc8=_0x35c725;let _0x519d06=(0x0,e[_0x3c1bc8(0x2b0)])(o['IDrawingManagerService']),_0x40d241=(0x0,e['useDependency'])(z);return(0x0,d[_0x3c1bc8(0x2c4)])(n[_0x3c1bc8(0x360)],{'buttonLabel':_0x3c1bc8(0x2d4),'excludeGroups':[n['ShapeGroupEnum'][_0x3c1bc8(0x1f0)]],'onShapeClick':_0x3acec4=>{const _0x58bd8f=_0x3c1bc8;let _0x3afc3e=_0x519d06[_0x58bd8f(0x198)]()[_0x58bd8f(0x1cc)](_0x2f10f0=>_0x2f10f0['drawingType']===i[_0x58bd8f(0x36d)]['DRAWING_IMAGE']);if(!_0x3afc3e)return;let {unitId:_0x286715,subUnitId:_0x506538,drawingId:_0x217287}=_0x3afc3e;_0x40d241[_0x58bd8f(0x272)](_0x286715,_0x506538,_0x217287,_0x3acec4['type']);}});}function se(){const _0x452f6a=_0x35c725;let _0x41ba28=(0x0,e['useDependency'])(e[_0x452f6a(0x2bc)]),_0x4b4b64=(0x0,e[_0x452f6a(0x2b0)])(o[_0x452f6a(0x28f)]),_0x15cf58=(0x0,e[_0x452f6a(0x2b0)])(i[_0x452f6a(0x337)]),_0x500ff0=_0x4b4b64['getFocusDrawings']()[0x0],_0x577eaf=_0x500ff0?_0x15cf58['getUnitType'](_0x500ff0[_0x452f6a(0x301)]):void 0x0,_0x17eba9=_0x577eaf===i[_0x452f6a(0x27a)][_0x452f6a(0x18d)]?_0x452f6a(0x203):_0x577eaf===i[_0x452f6a(0x27a)][_0x452f6a(0x354)]?ie:void 0x0,_0xc170e3=_0x17eba9?_0x41ba28[_0x452f6a(0x2d7)](_0x17eba9):void 0x0;return _0xc170e3?(0x0,d[_0x452f6a(0x2c4)])(_0xc170e3,{}):null;}function ce(){const _0x3d181b=_0x35c725;let _0x5490eb=(0x0,e['useDependency'])(i[_0x3d181b(0x20e)]);return(0x0,d[_0x3d181b(0x2c4)])(ae,{'onShapeClick':_0x16cc3b=>{const _0x5b81c9=_0x3d181b;_0x5490eb['executeCommand'](F['id'],{'value':_0x16cc3b['type'],'enhanceParams':{'endArrow':_0x16cc3b[_0x5b81c9(0x282)],'startArrow':_0x16cc3b['startArrow'],'horizontal':_0x16cc3b[_0x5b81c9(0x357)],'vertical':_0x16cc3b[_0x5b81c9(0x368)]}});}});}function le(_0x35a4aa){const _0x225c54=_0x35c725;let _0x3b64c3=_0x35a4aa[_0x225c54(0x2d7)](i[_0x225c54(0x337)]);return{'id':F['id'],'type':e[_0x225c54(0x3a4)][_0x225c54(0x119)],'selections':[{'label':{'name':re,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x225c54(0x29c),'tooltip':_0x225c54(0x1ad),'activated$':(0x0,c['deriveStateFromActiveSheet$'])(_0x3b64c3,!0x1,()=>new l['Observable'](_0xde8a58=>{_0xde8a58['next'](!0x1);})),'hidden$':(0x0,e[_0x225c54(0x1c1)])(_0x35a4aa,i['UniverInstanceType'][_0x225c54(0x354)]),'disabled$':(0x0,c[_0x225c54(0x164)])(_0x35a4aa)};}function ue(_0xf8522e){const _0x5186a6=_0x35c725;let _0x43c400=_0xf8522e[_0x5186a6(0x2d7)](i['IUniverInstanceService']);return{'id':ne['id'],'type':e[_0x5186a6(0x3a4)][_0x5186a6(0x143)],'icon':_0x5186a6(0x191),'title':_0x5186a6(0x20f),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,c[_0x5186a6(0x1e3)])(_0x43c400,!0x1,()=>new l[(_0x5186a6(0x2c5))](_0x5c52b8=>{const _0x35b31c=_0x5186a6;_0x5c52b8[_0x35b31c(0x170)](!0x1);})),'hidden$':(0x0,e[_0x5186a6(0x1c1)])(_0xf8522e,i[_0x5186a6(0x27a)][_0x5186a6(0x354)]),'disabled$':(0x0,c['getCurrentRangeDisable$'])(_0xf8522e)};}const de={[e[_0x35c725(0x379)][_0x35c725(0x165)]]:{[F['id']]:{'order':0x4,'menuItemFactory':le},[ne['id']]:{'order':4.1,'menuItemFactory':ue}}};var fe=_0x35c725(0x22a),pe=_0x35c725(0x154);const B={'type':i['CommandType'][_0x35c725(0x30f)],'id':_0x35c725(0x3ae),'handler'(){return!0x0;}},V={'type':i[_0x35c725(0x303)][_0x35c725(0x30f)],'id':_0x35c725(0x1b7),'handler'(){return!0x0;}},me={};function he(_0x390351){const _0x1c3258=_0x35c725;return _0x390351[_0x1c3258(0x30d)]()||void 0x0;}function ge(_0x177c03){const _0x5898af=_0x35c725;switch(_0x177c03[_0x5898af(0x1d6)]){case i[_0x5898af(0x36d)][_0x5898af(0x212)]:return _0x5898af(0x11d);case i[_0x5898af(0x36d)]['DRAWING_CHART']:return'chart';case i[_0x5898af(0x36d)][_0x5898af(0x206)]:return _0x5898af(0x3b5);case i[_0x5898af(0x36d)][_0x5898af(0x2cf)]:return'smartArt';case i[_0x5898af(0x36d)][_0x5898af(0x1ba)]:return _0x5898af(0x1c8);case i[_0x5898af(0x36d)][_0x5898af(0x2ef)]:return _0x5898af(0x258);case i['DrawingTypeEnum']['DRAWING_UNIT']:return'unit';case i[_0x5898af(0x36d)][_0x5898af(0x397)]:return _0x5898af(0x10b);case i['DrawingTypeEnum'][_0x5898af(0x257)]:return _0x5898af(0x2d3);default:return'object';}}function _e(_0x50f551,_0x4bc1e9,_0x2f424c){const _0x2301d9=_0x35c725;var _0x43b88e;return((_0x43b88e=_0x50f551[_0x2301d9(0x14e)])==null?void 0x0:_0x43b88e['trim']())||(0x0,u[_0x2301d9(0x35a)])(_0x2f424c,ge(_0x50f551))+'\x20'+(_0x4bc1e9+0x1);}function _0xf823(){const _0x44afed=['@univerjs-pro/sheets-shape-ui','Disposable','onReady','VIEW_MAIN','CopySheetCommand','sheets-shape-ui.openPanel','_sheetInterceptorService','index','sheets-shape-ui.objectListPanel.title','value','SheetPrintInterceptorService','sheet.operation.open-shape-object-list-panel','forEach','SheetDrawingAnchor','forward','_drawingAddListener','_baseShapeLeft','subscribe','addImageSourceCache','UniverSheetsShapePlugin','getEditing','_shapeEditPanelVersion','getActualSize','SheetsDrawingGroupCopyPasteController','_registerComponents','add$','_baseShapeTop','data','_currentScene','COPY_TYPE','_clearShapeAdjustControls','WorkbookEditablePermission','6EFCeWa','_adjHandlerPointerUp','_commandExecutedListener','_initEditingParams','ISheetDrawingService','adjHandleStroke','onSavingEditorData$','ConnectorCoordinateTransform','_draw','some','getSheetBySheetId','None','_lastEditingShapeKey','DRAWING_SHAPE','group','Image','clearControl$','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','applyPoint','_rerouteConnectorLine','SHEET_SHAPE_UI_PLUGIN','_registerFocusChangeHandler','ShapeTextFloatToolbar','isConnectorShape','endConnectionDetection','shape-adjust-point-','_clearConnectionSites','axisAlignSheetTransform','_registerOperations','InsertShapeCommand','focus$','close','contentVerticalOffset','canvas','_connectionSiteObjects','_clearPopups','DocumentDataModel','_handleConnectorPointerUp','_initEvents','InsertSheetsShapeMutation','clipByShape','RENDER_CLASS_TYPE','_executeConnectedRouteConnectionCommand','_subUnitId','clip-adj-','map','focusDrawing','description','UniverInstanceType','_addShapeConnectorHandlerObjects','UniverSheetsDrawingUIPlugin','updateContext','SHAPE_TEXT','registerRenderModule','updateConnectionDetection','merge','endArrow','_handleConnectedEndpointMove','_drawingManagerService','getMatrix','clone','transformForAngle','setShapeProps','_getShapeAdjustPointListById','getDrawingOKey','refreshAdjustControls','_calculateFreeEndpointAngle','computeConnectorResizeLayout','permissionCheckWithoutRange','IDrawingManagerService','entries','createControl$','_transformCalculateSrcRect','reduce','onSteady','parse','doc','ToggleSheetsShapeFlipCommand','open','SheetScrollManagerService','setAdjustValueByName','memo','ShapeIcon','addObject','_baseLeft','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getViewportByCell','_baseHeight','_updateTransform','lineShapeId','getRealBound','targetShapeId','_activeShapeInfo','sheetTransform','StraightConnector1','_attachAdjustEvent','_injector','disableShapeOption','default','RemoveSheetCommand','generateRandomId','_initCopyPaste','useDependency','offsetX','height','univer-box-border\x20univer-px-4\x20univer-text-sm','touchDependencies','Circle','_copyInfo','_onSavingEditorData$','getBatchUpdateOp','getState','_clipService','getConnectorLinePoints','ComponentManager','SetSheetDrawingCommand','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getImageSourceCache','getUnitId','getSelectedObjectMap','_editingParams$','FOCUSING_COMMON_DRAWINGS','jsx','Observable','getBasicShapeRotateBound','getSheetId','_createShapePopupMenu','onload','restore','relation','_sheetPermissionCheckController','_registerMoveHandler','_updateAdjustControlPositions','DRAWING_SMART_ART','VIEW_MAIN_TOP','shouldAllowShapeTextEditorHostSizeShrink','_handleFreeEndpointMove','shape','sheets-shape-ui.imagePanel.crop.shape','SheetSkeletonManagerService','update$','get','registerClipDelegate','adjName','Rect','_handleConnectedEndpointPointerUp','fill','sin','redo','WorksheetEditPermission','sheet.shape.text.float-menu','subscribeEvent','preValue','localToWorld','draw','IContextService','_currentConnectionTarget','drawWith','clip','getDrawingData','INSERT','order','scale','asObservable','_initialize','DRAWING_GROUP','add','_executeResizeCommand','gradientEndColor','onStarting','_initCommands','prstGeomAdjValues','composeMatrix','_isOpenedShapeEditPanel','getConnectionSiteList','#1a73e8','_focusedDrawings','flipX','copyType','Plugin','toPrimitive','_drawRichText','_clearControls','unitId','_getImagePrstGeom','CommandType','translateWithPrecision','Shape','registerCommand','#FFFFFF','getDrawingOrder','shapeData','wrapStrategy','includes','getSheetCommandTarget','trim','_baseShapeHeight','OPERATION','pipe','_init','toStringTag','translate','_isConnecting','_cxtHandlerPointerUp','values','ShapeTypeEnum','getZoomRatio','SolidFill','getBatchRemoveOp','getDrawingDataForUnit','SheetsShapeService','image-clip-adjust-point-','getRenderById','DocumentViewModel','sheetViewStartColumn','sectionCanvas','classType','function','Module','_baseWidth','clearAdjustControls','registerFeatureMenuOffset','getObjectListPanelLabels','objects','symbol','from','_isShouldShowDrawingShapeAdjust','cos','text','highlighted','startArrow','oKey','error','register','div','params','ShapeFillEnum','IUniverInstanceService','CROSSHAIR','IRenderManagerService','shapeText','Medium','color','LocaleService','length','DEFAULT_PASTE','useObservable','DocumentSkeleton','onPointerUp$','URL','toDisposable','_urlImageService','_localeService','_getOrCreateShapeModel','OBJECT_LIST_FLOATING_SECTION_ID','_popupMenuListener','_isHighlighted','_targetShapeId','sheets-shape-ui.formatShape','changeStart$','transformToDrawingPosition','_reset','_findNearestConnectionSite','resolveShapeTextDocumentRenderLayout','_highlightedSiteIndex','setEditing','UNIVER_SHEET','getAdjustInfoByName','resolveShapeTextEditorBehaviorShapeData','horizontal','refreshShapeFillImage','startX','getObjectListPanelTypeName','_generateCopyPasteMutations','COMMAND','2DKmVxG','activeSheet$','changing$','ShapePickerDropdown','EMPTY','_registerGroupFeaturePasteHook','shapeId','_drawSimpleText','_updateImageAdjValues','_shapeRenderController','SetSheetsShapeTextVerticalToggleCommand','vertical','routeConnectorLineShape','_executeConnectedRouteResizeCommand','prstGeom','pick','DrawingTypeEnum','setContextValue','worldPoints','object','getTransformerByCreate','executeCommand','stopPropagation','IImageIoService','hidden','invert','_createControls','rect','RibbonInsertGroup','VerticalAlign','_currentUniverService','_sheetDrawingShapeRenderController','getShapeTextData','clearAdjustValue','sheet.command.menu-insert-shape','_groupCopyPasteController','getImage','HorizontalAlign','getSkeleton','sectionFloating','setShouldShowAdjust','pushUndoRedo','_updateSrcRectByTransform','end','getDrawingPoints','intercept','isHorizontal','_setTransForm','sheets-shape-ui.config','backward','_showConnectionSites','fontFamily','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','interceptor','_addControl','_getShapeInfo','_generatePasteMutations','startConnectionDetection','DRAWING_DOM','_resetState','fillImageSource','popup','getSkeletonParam','registerFeatureMenu','_adjHandlerPointerMove','IConfigService','editingParams$','_sheetSkeletonService','getShapeModel','getEndConnectInfo','getBatchAddOp','MenuItemType','sheets-shape-ui.rotateRight90','activateDrawingObject','getShapePopupMenus','_initPrinting','getObjectListPanelSectionIdForDrawingType','_draggingConnectorId','getShapeType','_cxnIndex','renderDrawingShape','sheet.operation.close-sheet-shape-format-panel','sheet.image-clip.shape-picker.component','initTransformer','getShapeData','computeConnectorRouteLayout','adjHandleFill','sheets-shape-ui','table','shape-text-','title','keys','actualHeight','isHitLine','_clearShapeConnectorHandlerObjects','_props','subUnitId','Large','_drawingType','getInverseCoord','_getZoomRatio','getDrawingEditable','77GgCUYy','plainShapeTextToDocumentData','getObjectIncludeInGroup','_shapes','#bcbcbc','_sheetDrawingService','dataModel','_activeShapeAdjustPointList','complete','_context','getAdjustValueByName','calcAdjValue','startY','disableObjectsEvent','initShapePopupMenu','setSrcRect','_loadShapePictureFill','setCursor','render','shapeType','save','85fEhRiq','gdRefR','prototype','sheet.shape.floating-toolbar','_menuManagerService','LEFT','cxnPointStroke','getObject','point','abs','SHEET_VIEWPORT_KEY','setHighlighted','disposeWithMe','_generateCutPasteMutations','getShapeTypeById','resetCursor','_isStartConnectorPoint','isRender','onPointerDown$','SetShapeDrawingDataCommand','worldPoint','PRINTING_COMPONENT_COLLECT','_activeShapeId','_getSceneAndTransformerByDrawingSearch','_isDrawingShapePointDown','sheetViewStartRow','scene','SetDrawingArrangeCommand','_index','isStartConnectorPoint','completeEditing','dom','selectable','ImageSourceTypeEnum','_registerDrawingMoveHandler','_imageShapeClipController','start','isLineShape','sheets-shape-ui.hidePanel','_addShapeAdjustControl','switchMap','_isStartAdjusting','connection-site-','sheets-shape-ui.permission.editErr','ancestorTransform','SELECTOR','isInGroup','ShapeLineTypeEnum','setOnSavingEditorData','image','_updateShapeAdjustControls','_registerImageShapeClipDelegate','getDrawingSearch','shouldClipShapeTextDocument','_getScrollInfo','SetDrawingApplyMutation','_hasReset','onCommandExecuted','getDrawingByParam','bind','cxnPointRadius','updateShapeFillImage','setShapeData','_getConnectPointInfo','_handleFreeEndpointPointerUp','dispose','_baseDrawingRect','_activeShapeModel','_sheetClipboardService','_getShapeAdjustInfosById','ShapeModel','DocSelectionRenderService','RemoveSheetDrawingCommand','sheet.shape.edit.panel','onRendered','onPointerMove$','fillType','transform','_sidebarService','getDrawingShapeKeyByDrawingSearch','onerror','SolidLine','transformByState','ShapeArrowTypeEnum','filter','IUndoRedoService','SheetsSelectionsService','BUTTON','_insertingShapeKeys','ShapePickerPanel','ang','skeleton','TOP','width','Arrow','_sheetCanvasPopManagerService','9110479oOxfww','_activeTargetShapeId','name','ShapeEditPanel','ShapeTextEditorContainer','_createCopyInfoByRange','32jmrPlu','rotation','1.0.0-alpha.6','_commandService','SHAPE_EDITOR_TRANSFORMER_CONFIG','_disposePopups','_drawingRenderService','buildShapeTextDataUpdate','isHighlighted','stringify','190897gZJdBV','ShapeTextFloatMenuRenderControllerBase','remove$','getCurrentScrollState','_shapeService','isCurvedConnectorShape','getConnectionInfo','isEditing','getCurrentRangeDisable$','MEDIA','_drawShapeText','_sheetsShapeService','calculate','_sheetShapeAdjustController','stroke','getUnit','call','isArray','top','DrawingApplyType','next','worldRect','getTextStyle','_activeAdjustPointList','_getImageDrawingInfo','REMOVE','_componentManager','ArrangeTypeEnum','unsubscribe','slice','RemoveSheetsShapeMutation','DRAWING_OBJECT_LAYER_INDEX','#4285f4','SheetPermissionCheckController','buildClipPath','getShapeTextRect','_renderManagerService','_iconManager','getBasicShapeRelation','BehaviorSubject','getCurrentSkeleton','Inject','_loadAndSetImage','drawingId','ShapeDefaultConfig','defineProperty','4870836hfmbhS','offsetY','226220mNNdPJ','UNIVER_DOC','DrawingCommonPanel','SetDrawingSelectedOperation','_attachConnectorObjectEvent','CopyDoubleIcon','getDrawingVisible','sheets-shape-ui.deleteShape','Transform','getActiveSheet','_openShapeEditPanel','attachRangeWithCoord','getFocusDrawings','getAllUnitsForType','enableObjectsEvent','insertGroupObject','cxnPointFill','UUID','_cxtHandlerPointerMove','_initSelection','_baseTop','_transform','updateDocumentStyle','setPrstGeom','UpdateConnectorRelationCommand','beginPath','viewportScrollX','UPDATE','push','9836970EhFdQh','_insertShapes','left','UpdateSheetsShapeDataMutation','sheets-shape-ui.insertShape','interceptCommand','connector-handler-','SetSheetsShapeRotateCommand','_connectorObjects','removeLinePoints','_getDrawingRect','getTextModel','mergeMenu','PictureFill','sheet.operation.open-sheet-shape-format-panel','adjHandleSize','has','DRAWING_VIDEO','shapeKey','indexOf','with','angle','changeShapeType','_shapeId','getMenuHiddenObservable','_handleBasicShapeUpdateConnectorLineShape','866283klvXUQ','prepareShapeTextDocumentData','updateDocumentDataMargin','flipY','drawing.operation.set-drawing-active','video','sheet.shape.picker.component','delete','contentHeight','find','visible','fillImageSourceType','cxnIndex','_activeAdjustInfo','VIEW_MAIN_LEFT_TOP','discreteRangeToRange','_contextService','getShapeDataById','_univerInstanceService','drawingType','_closeShapeEditPanel','custom','useEffect','2235204AotZlD','syncExecuteCommand','type','_sheetBasicShapeConnectionPointController','FOCUSING_SHAPE_TEXT_EDITOR','getTransformer','_shapeUpdateListener','srcRect','_isImagePointerDown','deriveStateFromActiveSheet$','ObjectListPanelBase','lineType','Vector2','viewportScrollY','jsxs','getCurrentTypeOfUnit$','isDrawingObject','cancelEditing','_createShapeAdjustControls','strokeWidth','clear','DependentOn','Line','string','size','_registerShapeMenu','_baseShapeWidth','ShapeArrowSizeEnum','gdRefAng','setFillImage','CURSOR_TYPE','_initSheetChange','_initializedShapePopupMenu','GROUP','DocSelectionManagerService','multiply','_registerIcons','makeDirty','getCurrentUnitInfo','sheets-shape-ui.toggleTextVertical','_registerDrawingFocusChangeHandler','doc.image-clip.shape-picker.component','_sheetPrintInterceptorService','_activeImageId','DRAWING_TABLE','_initPermission','getParent','_addShapeConnectorHandlerObject','UpdateLineShapeResizeCommand','_executeConnectionCommand','shapeModel','useMemo','ICommandService','sheets-shape-ui.objectListPanel.open','SheetsShapeUIMenuSchema','getStartConnectInfo','DRAWING_IMAGE','getConnectionRelation','marginTop','IMenuManagerService','SheetCanvasPopManagerService','createInternalEditorID','sheets-shape-ui.toggleFlipV','onTransformChange$','setCanUseShapeClip','changeEnd$','top-center','adjustValues','_shapeTextEditingService','Path','_sidebarDisposable','isRichText','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','beforeCommandExecuted','_imageIoService','IconManager','gdRefY','gdRefX','resolveShapeTextEditorWrapStrategy','_unitId'];_0xf823=function(){return _0x44afed;};return _0xf823();}function ve(){const _0x365f52=_0x35c725;var _0x22c0eb,_0x29a75b,_0x2a71af,_0x353792;let _0x1caac9=(0x0,e[_0x365f52(0x2b0)])(i['LocaleService']),_0x506253=(0x0,e[_0x365f52(0x2b0)])(i[_0x365f52(0x20e)]),_0x8b3867=(0x0,e[_0x365f52(0x2b0)])(i[_0x365f52(0x337)]),_0x5ca5a7=(0x0,e[_0x365f52(0x2b0)])(h[_0x365f52(0x24e)]),_0x1ff21f=(0x0,e[_0x365f52(0x2b0)])(o['IDrawingManagerService']),_0x2a279f=(0x0,e[_0x365f52(0x2b0)])(s['IRenderManagerService']),[,_0x122a42]=(0x0,g['useReducer'])(_0x44e38c=>_0x44e38c+0x1,0x0),_0x3ad7c6=_0x8b3867['getCurrentUnitOfType'](i[_0x365f52(0x27a)][_0x365f52(0x354)]),_0x56095b=(_0x22c0eb=_0x3ad7c6==null?void 0x0:_0x3ad7c6[_0x365f52(0x2c0)]())==null?'':_0x22c0eb,_0x290870=(_0x29a75b=_0x3ad7c6==null||(_0x2a71af=_0x3ad7c6[_0x365f52(0x195)]())==null?void 0x0:_0x2a71af[_0x365f52(0x2c7)]())==null?'':_0x29a75b,_0x6dcc60=(0x0,e[_0x365f52(0x340)])(()=>_0x1ff21f[_0x365f52(0x268)],_0x1ff21f[_0x365f52(0x198)](),!0x1,[_0x1ff21f]);(0x0,g[_0x365f52(0x1d9)])(()=>{const _0x3c4337=_0x365f52;let _0x4e9d3b=_0x506253[_0x3c4337(0x125)](()=>_0x122a42());return()=>_0x4e9d3b[_0x3c4337(0x12d)]();},[_0x506253]);let _0xc2dafc=_0x56095b&&_0x290870?_0x5ca5a7[_0x365f52(0x2e9)](_0x56095b,_0x290870):{},_0x5d1999=_0x56095b&&_0x290870?_0x5ca5a7[_0x365f52(0x308)](_0x56095b,_0x290870):[],_0x5c8835=(0x0,g[_0x365f52(0x20d)])(()=>(0x0,u[_0x365f52(0x328)])(_0x1caac9),[_0x1caac9]),_0x3dfa8d=(0x0,g[_0x365f52(0x20d)])(()=>{const _0x5de7f4=_0x365f52;let _0x14f7d3=_0x5d1999[_0x5de7f4(0x277)](_0x319d6e=>_0xc2dafc[_0x319d6e])[_0x5de7f4(0x140)](_0x54d292=>!!_0x54d292)['reverse'](),_0x422067=_0x14f7d3[_0x5de7f4(0x293)]((_0x347d31,_0xf2df4e)=>(_0x347d31[(0x0,u[_0x5de7f4(0x3a9)])(_0xf2df4e[_0x5de7f4(0x1d6)])]+=0x1,_0x347d31),{'canvas':0x0,'floating':0x0}),_0x2617e8={'canvas':0x0,'floating':0x0};return _0x14f7d3[_0x5de7f4(0x277)]((_0x4b476f,_0x1a49fc)=>{const _0x4d94e8=_0x5de7f4;let _0x3e65da=(0x0,u[_0x4d94e8(0x3a9)])(_0x4b476f[_0x4d94e8(0x1d6)]),_0x18db3b=_0x3e65da===u[_0x4d94e8(0x348)],_0x2b082c=_0x2617e8[_0x3e65da]++;return{'id':_0x4b476f['drawingId'],'name':_e(_0x4b476f,_0x1a49fc,_0x1caac9),'description':_0x4b476f[_0x4d94e8(0x279)],'visible':_0x4b476f[_0x4d94e8(0x375)]!==!0x0,'selectable':_0x4b476f[_0x4d94e8(0x10c)]!==!0x1,'sectionId':_0x3e65da,'sectionTitle':_0x18db3b?_0x5c8835[_0x4d94e8(0x384)]:_0x5c8835[_0x4d94e8(0x321)],'capabilities':_0x18db3b?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x18db3b&&_0x2b082c>0x0,'canMoveBackward':!_0x18db3b&&_0x2b082c<_0x422067[_0x4d94e8(0x26b)]-0x1,'canReorder':!_0x18db3b};});},[_0xc2dafc,_0x5d1999,_0x5c8835[_0x365f52(0x321)],_0x5c8835['sectionFloating'],_0x1caac9]),_0x2e63da=(0x0,g[_0x365f52(0x20d)])(()=>(_0x6dcc60==null?[]:_0x6dcc60)[_0x365f52(0x140)](_0x60314=>_0x60314['unitId']===_0x56095b&&_0x60314['subUnitId']===_0x290870)[_0x365f52(0x277)](_0x11474c=>_0x11474c[_0x365f52(0x187)]),[_0x6dcc60,_0x290870,_0x56095b]),_0x55465f=(_0x353792=_0x2e63da[_0x2e63da[_0x365f52(0x33e)]-0x1])==null?null:_0x353792,_0x4f7938=_0x59289e=>{const _0x351557=_0x365f52;var _0x384830;return(_0x384830=_0x5ca5a7[_0x351557(0x126)]({'unitId':_0x56095b,'subUnitId':_0x290870,'drawingId':_0x59289e}))==null?null:_0x384830;},_0x565137=_0x137beb=>{const _0x3df713=_0x365f52;!_0x56095b||!_0x137beb[_0x3df713(0x33e)]||_0x506253['executeCommand'](h['SetSheetDrawingCommand']['id'],{'unitId':_0x56095b,'drawings':_0x137beb});},_0x53d0ca=(_0x22a010,_0x14b245)=>{_0x4f7938(_0x22a010)&&_0x565137([{'unitId':_0x56095b,'subUnitId':_0x290870,'drawingId':_0x22a010,..._0x14b245}]);},_0x424c75=(_0x1ce3c2,_0x1f725d)=>{const _0x22e4ae=_0x365f52;if(!_0x56095b||!_0x290870)return;let _0x44b4c9=_0x1f725d?_0x2e63da[_0x22e4ae(0x30b)](_0x1ce3c2)?_0x2e63da['filter'](_0x578f70=>_0x578f70!==_0x1ce3c2):[..._0x2e63da,_0x1ce3c2]:[_0x1ce3c2];_0x506253[_0x22e4ae(0x1db)](o['SetDrawingSelectedOperation']['id'],_0x44b4c9[_0x22e4ae(0x277)](_0x5ce0d2=>({'unitId':_0x56095b,'subUnitId':_0x290870,'drawingId':_0x5ce0d2})));let _0x55e79d=_0x44b4c9[_0x44b4c9[_0x22e4ae(0x33e)]-0x1];_0x55e79d?(0x0,n[_0x22e4ae(0x3a6)])(_0x2a279f,{'unitId':_0x56095b,'subUnitId':_0x290870,'drawingId':_0x55e79d}):(0x0,n['clearActiveDrawingObjects'])(_0x2a279f,_0x56095b);},_0x43179f=(_0x572a96,_0x566d56)=>{const _0x9dfb71=_0x365f52;_0x565137(_0x572a96[_0x9dfb71(0x277)](_0x15bba6=>_0x4f7938(_0x15bba6))['filter'](_0x446e0c=>!!_0x446e0c)[_0x9dfb71(0x140)](_0x3a830b=>_0x3a830b['hidden']!==!0x0!==_0x566d56)[_0x9dfb71(0x277)](_0x1e7388=>({'unitId':_0x56095b,'subUnitId':_0x290870,'drawingId':_0x1e7388['drawingId'],'hidden':!_0x566d56})));},_0x4cb7d5=_0x3f2328=>{const _0x1e82df=_0x365f52;let _0x4105ef=_0x4f7938(_0x3f2328);_0x4105ef&&_0x53d0ca(_0x3f2328,{'selectable':_0x4105ef[_0x1e82df(0x10c)]===!0x1?void 0x0:!0x1});},_0x5293f8=(_0x5cb8e7,_0x12312b)=>{const _0x22fa94=_0x365f52;var _0x584855,_0x1f4e8e;let _0x1856f9=he(_0x12312b);((_0x584855=(_0x1f4e8e=_0x4f7938(_0x5cb8e7))==null?void 0x0:_0x1f4e8e[_0x22fa94(0x14e)])==null?void 0x0:_0x584855)!==_0x1856f9&&_0x53d0ca(_0x5cb8e7,{'name':_0x1856f9});},_0x2decfe=(_0x4a3068,_0x19415e)=>{const _0x17f666=_0x365f52;var _0x9d8bb1,_0x1e71bb;let _0x4d2ff5=he(_0x19415e);((_0x9d8bb1=(_0x1e71bb=_0x4f7938(_0x4a3068))==null?void 0x0:_0x1e71bb[_0x17f666(0x279)])==null?void 0x0:_0x9d8bb1)!==_0x4d2ff5&&_0x53d0ca(_0x4a3068,{'description':_0x4d2ff5});},_0x4a913e=(_0x537796,_0x44ceb9)=>{const _0x4c54bc=_0x365f52;!_0x56095b||!_0x290870||_0x506253['executeCommand'](h[_0x4c54bc(0x107)]['id'],{'unitId':_0x56095b,'subUnitId':_0x290870,'drawingIds':[_0x537796],'arrangeType':_0x44ceb9});};return!_0x56095b||!_0x290870?(0x0,d['jsx'])(_0x365f52(0x334),{'className':_0x365f52(0x2be),'children':_0x5c8835[_0x365f52(0x3b7)]}):(0x0,d[_0x365f52(0x2c4)])(u[_0x365f52(0x1e4)],{'items':_0x3dfa8d,'selectedIds':_0x2e63da,'focusedId':_0x55465f,'labels':_0x5c8835,'onSelect':_0x424c75,'onSetVisible':_0x43179f,'onCommitName':_0x5293f8,'onCommitDescription':_0x2decfe,'onMoveForward':_0x3e1973=>_0x4a913e(_0x3e1973,i[_0x365f52(0x177)][_0x365f52(0x238)]),'onMoveBackward':_0x5b1397=>_0x4a913e(_0x5b1397,i[_0x365f52(0x177)][_0x365f52(0x38e)]),'onToggleSelectable':_0x4cb7d5});}let H=class{constructor(_0x3d2e6a){const _0x484707=_0x35c725;this[_0x484707(0x180)]=_0x3d2e6a;}['updateShapeFillImage'](_0x1f32ec,_0x3290d3){const _0x44f1a4=_0x35c725;let _0x437b45=this['_renderManagerService'][_0x44f1a4(0x31e)](_0x1f32ec[_0x44f1a4(0x301)]),_0x5841a8=_0x437b45==null?void 0x0:_0x437b45['scene'];if(!_0x5841a8)return;let _0x27b845=(0x0,o['getDrawingShapeKeyByDrawingSearch'])(_0x1f32ec),_0x296f23=_0x5841a8[_0x44f1a4(0x3c5)](_0x27b845);_0x296f23==null||_0x296f23['setFillImage'](_0x3290d3);}};H=j([A(0x0,s[_0x35c725(0x339)])],H);function ye(){const _0x6151a6=_0x35c725;let _0x182b11=(0x0,e[_0x6151a6(0x2b0)])(o[_0x6151a6(0x28f)]),_0x485e11=(0x0,e['useObservable'])(()=>_0x182b11['focus$'],_0x182b11[_0x6151a6(0x198)](),!0x1,[_0x182b11]);return _0x485e11[_0x6151a6(0x33e)]===0x0?null:(0x0,d['jsx'])(_0x6151a6(0x334),{'children':(0x0,d[_0x6151a6(0x1e8)])(_0x6151a6(0x334),{'className':_0x6151a6(0x2b3),'children':[(0x0,d[_0x6151a6(0x2c4)])(u[_0x6151a6(0x18e)],{'drawings':_0x485e11,'hasCropper':!0x1}),(0x0,d[_0x6151a6(0x2c4)])(p[_0x6151a6(0x237)],{'drawings':_0x485e11})]})});}function be(_0x394226){const _0x32492f=_0x35c725;let {unitId:_0x1f4c8c,subUnitId:_0x4faea1,shapeId:_0x43fbcd}=_0x394226,_0x504a7c=(0x0,e['useDependency'])(i['ICommandService']),_0x4377c4=(0x0,e[_0x32492f(0x2b0)])(H);return(0x0,d[_0x32492f(0x2c4)])(n[_0x32492f(0x14f)],{..._0x394226,'positionEditor':(0x0,d[_0x32492f(0x2c4)])(ye,{}),'onUpdateShapeData':(_0x3aa9b8,_0x3481ef)=>{x(_0x504a7c,_0x1f4c8c,_0x4faea1,_0x43fbcd,_0x3aa9b8,_0x3481ef);},'onUpdateLineShapeData':(_0x16f841,_0x292a34)=>{S(_0x504a7c,_0x1f4c8c,_0x4faea1,_0x43fbcd,_0x16f841,_0x292a34);},'onUpdateShapeFillImage':_0x2e4c80=>{const _0x275b30=_0x32492f;_0x4377c4[_0x275b30(0x129)]({'unitId':_0x1f4c8c,'subUnitId':_0x4faea1,'drawingId':_0x43fbcd},_0x2e4c80);}});}function xe(_0x3e8cf0){const _0x3963d7=_0x35c725;let _0x3cf2ef=_0x3e8cf0[_0x3963d7(0x39a)]['extraProps'];return _0x3cf2ef?(0x0,d[_0x3963d7(0x2c4)])(Se,{..._0x3cf2ef}):null;}function Se(_0x150a78){const _0x27dfe6=_0x35c725;var _0x464efe,_0x3b29e4;let _0x6bdda2=(0x0,e['useDependency'])(i[_0x27dfe6(0x20e)]),_0x504088=(0x0,e[_0x27dfe6(0x2b0)])(r[_0x27dfe6(0x31c)]),{unitId:_0x10ce4a,subUnitId:_0x518840,drawingId:_0x523ba8,drawingType:_0x169b61,shapeType:_0x1ab084}=_0x150a78,[_0x31ba5c,_0x2721f2]=(0x0,g['useState'])(_0x150a78['shapeData']),_0x4a4cd8=(0x0,g[_0x27dfe6(0x20d)])(()=>(0x0,n[_0x27dfe6(0x172)])(_0x31ba5c),[_0x31ba5c]),_0xe3b81a=(0x0,g[_0x27dfe6(0x20d)])(()=>(0x0,n[_0x27dfe6(0x1b4)])(_0x31ba5c),[_0x31ba5c]);(0x0,g['useEffect'])(()=>{const _0x44236a=_0x27dfe6;let _0x16e1b1=_0x6bdda2[_0x44236a(0x125)](_0x26ed99=>{const _0x27c724=_0x44236a;if(_0x26ed99['id']!==r[_0x27c724(0x1ac)]['id'])return;let _0x5ba7dc=_0x504088['getShapeDataById'](_0x10ce4a,_0x518840,_0x523ba8);_0x5ba7dc&&_0x2721f2(_0x5ba7dc);});return()=>_0x16e1b1[_0x44236a(0x12d)]();},[_0x6bdda2,_0x523ba8,_0x504088,_0x518840,_0x10ce4a]);let _0xc64c90=_0x44a64f=>{_0x2721f2(_0x329dc8=>({..._0x329dc8,..._0x44a64f}));},_0x21833d=_0x34e724=>{const _0x2a6848=_0x27dfe6;let _0x2cc4cd=(0x0,n[_0x2a6848(0x159)])(_0x31ba5c,_0x34e724);x(_0x6bdda2,_0x10ce4a,_0x518840,_0x523ba8,{'oldShapeData':{'shapeText':_0x31ba5c[_0x2a6848(0x33a)]}},_0x2cc4cd),_0xc64c90(_0x2cc4cd);};return(0x0,d[_0x27dfe6(0x2c4)])(n['ShapeFloatingToolbar'],{'shapeData':_0x31ba5c,'shapeType':_0x1ab084,'textStyle':{'ff':t[_0x27dfe6(0x188)][_0x27dfe6(0x33a)][_0x27dfe6(0x390)],'fs':t[_0x27dfe6(0x188)][_0x27dfe6(0x33a)]['fontSize'],'cl':{'rgb':t[_0x27dfe6(0x188)][_0x27dfe6(0x33a)][_0x27dfe6(0x33c)]},..._0x4a4cd8},'textModel':_0xe3b81a?{'ha':(_0x464efe=_0xe3b81a['ha'])==null?i['HorizontalAlign']['LEFT']:_0x464efe,'va':(_0x3b29e4=_0xe3b81a['va'])==null?i[_0x27dfe6(0x37a)][_0x27dfe6(0x148)]:_0x3b29e4}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':t['ShapeDefaultConfig'][_0x27dfe6(0x2dc)],'defaultGradientEndColor':t[_0x27dfe6(0x188)][_0x27dfe6(0x2f2)],'defaultStrokeColor':t['ShapeDefaultConfig'][_0x27dfe6(0x16a)],'onUpdateShapeData':(_0x4f2299,_0x56ca53)=>{x(_0x6bdda2,_0x10ce4a,_0x518840,_0x523ba8,_0x4f2299,_0x56ca53),_0x56ca53&&_0xc64c90(_0x56ca53);},'onUpdateText':_0x21833d,'onOpenPanel':()=>{const _0x430076=_0x27dfe6;_0x6bdda2[_0x430076(0x372)](V['id'],{'unitId':_0x10ce4a,'subUnitId':_0x518840,'drawingId':_0x523ba8});},'onDelete':()=>{const _0x1defc3=_0x27dfe6;_0x6bdda2[_0x1defc3(0x372)](h[_0x1defc3(0x134)]['id'],{'unitId':_0x10ce4a,'drawings':[{'unitId':_0x10ce4a,'subUnitId':_0x518840,'drawingId':_0x523ba8,'drawingType':_0x169b61}]});}});}var U=class extends i['Disposable']{constructor(..._0x2914da){const _0x448c00=_0x35c725;super(..._0x2914da),E(this,_0x448c00(0x2c2),new l[(_0x448c00(0x183))](null)),E(this,_0x448c00(0x39f),this[_0x448c00(0x2c2)][_0x448c00(0x2ed)]()),E(this,_0x448c00(0x2b7),new l['BehaviorSubject'](!0x1)),E(this,_0x448c00(0x250),this[_0x448c00(0x2b7)][_0x448c00(0x2ed)]());}[_0x35c725(0x12d)](){const _0x208729=_0x35c725;this[_0x208729(0x2c2)][_0x208729(0x170)](null),this[_0x208729(0x2c2)][_0x208729(0xdf)](),this[_0x208729(0x2b7)]['next'](!0x1),this['_onSavingEditorData$'][_0x208729(0xdf)](),super[_0x208729(0x12d)]();}[_0x35c725(0x353)](_0xa4a9d5){const _0x2e39f4=_0x35c725;this[_0x2e39f4(0x2c2)][_0x2e39f4(0x170)](_0xa4a9d5),_0xa4a9d5==null&&this[_0x2e39f4(0x2b7)][_0x2e39f4(0x170)](!0x1);}['setOnSavingEditorData'](_0x278970){this['_onSavingEditorData$']['next'](_0x278970);}[_0x35c725(0x23e)](){return this['_editingParams$']['getValue']();}[_0x35c725(0x10a)](_0x1577e9){const _0x22e84e=_0x35c725;this['getEditing']()&&(this[_0x22e84e(0x11c)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x35c725(0x1eb)](){const _0xf6ed29=_0x35c725;this[_0xf6ed29(0x23e)]()&&this[_0xf6ed29(0x353)](null);}};const Ce=(0x0,g[_0x35c725(0x29b)])(()=>{const _0x317530=_0x35c725;let _0x5baa75=(0x0,e['useDependency'])(U),_0x1de7aa=(0x0,e[_0x317530(0x2b0)])(r[_0x317530(0x31c)]),_0x440cc5=(0x0,e[_0x317530(0x2b0)])(o[_0x317530(0x28f)]),_0x1de4c6=(0x0,e['useDependency'])(i[_0x317530(0x20e)]),_0x5f3812=(0x0,e['useDependency'])(s['IRenderManagerService']);return(0x0,d[_0x317530(0x2c4)])(n[_0x317530(0x150)],{'adapter':(0x0,g[_0x317530(0x20d)])(()=>({'getShapeModel':(_0x3878c4,_0x40774b,_0x32e6e5)=>_0x1de7aa['getShapeModel'](_0x3878c4,_0x40774b,_0x32e6e5),'getShapeData':(_0x3a3641,_0x1494fe,_0x342b52)=>_0x1de7aa['getShapeDataById'](_0x3a3641,_0x1494fe,_0x342b52),'getDrawingTransform':(_0x3f0377,_0x2041c9,_0x1f29e4)=>{const _0x18af81=_0x317530;let _0x776f47=_0x440cc5[_0x18af81(0x126)]({'unitId':_0x3f0377,'subUnitId':_0x2041c9,'drawingId':_0x1f29e4});return _0x776f47==null?void 0x0:_0x776f47[_0x18af81(0x139)];},'updateShapeText':({unitId:_0x36066c,subUnitId:_0x185a0b,shapeId:_0x4049dc,shapeText:_0x9e50f7,oldShapeText:_0x3df427})=>{const _0x2c1cda=_0x317530;_0x1de4c6[_0x2c1cda(0x372)](b['id'],{'unitId':_0x36066c,'subUnitId':_0x185a0b,'shapeId':_0x4049dc,'shapeData':{'shapeText':_0x9e50f7},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3df427}}});},'updateHostSize':({unitId:_0x10d765,subUnitId:_0x2bda78,shapeId:_0x183054,width:_0x37503a,height:_0x11c9a8})=>{const _0x3c7d4e=_0x317530;var _0x55e3d1,_0x49e09f,_0x4ab6eb;let _0x6d5d7b=_0x440cc5[_0x3c7d4e(0x126)]({'unitId':_0x10d765,'subUnitId':_0x2bda78,'drawingId':_0x183054}),_0x84809f=_0x6d5d7b==null?void 0x0:_0x6d5d7b[_0x3c7d4e(0x139)];if(!_0x6d5d7b||!_0x84809f)return;let _0x5976a5={..._0x84809f,'width':_0x37503a,'height':_0x11c9a8},_0x28e49d=(_0x55e3d1=_0x5f3812[_0x3c7d4e(0x31e)](_0x10d765))==null||(_0x55e3d1=_0x55e3d1[_0x3c7d4e(0x1bd)](c[_0x3c7d4e(0x2d5)])[_0x3c7d4e(0x39b)](_0x2bda78))==null?void 0x0:_0x55e3d1[_0x3c7d4e(0x147)],_0xd2293a=_0x28e49d?(_0x49e09f=(0x0,h[_0x3c7d4e(0x34e)])(_0x5976a5,_0x28e49d))==null?_0x6d5d7b['sheetTransform']:_0x49e09f:_0x6d5d7b[_0x3c7d4e(0x2a7)],_0x1acb38=_0x28e49d?(_0x4ab6eb=(0x0,h['transformToAxisAlignPosition'])(_0x5976a5,_0x28e49d))==null?_0x6d5d7b[_0x3c7d4e(0x265)]:_0x4ab6eb:_0x6d5d7b['axisAlignSheetTransform'];_0x1de4c6[_0x3c7d4e(0x372)](h[_0x3c7d4e(0x2bd)]['id'],{'unitId':_0x10d765,'drawings':[{..._0x6d5d7b,'transform':_0x5976a5,'sheetTransform':_0xd2293a,'axisAlignSheetTransform':_0x1acb38}]});},'allowHostSizeShrink':({unitId:_0x425a4b,subUnitId:_0x2a265b,shapeId:_0x4d36a9})=>(0x0,n[_0x317530(0x2d1)])(_0x1de7aa[_0x317530(0x1d4)](_0x425a4b,_0x2a265b,_0x4d36a9))}),[_0x1de4c6,_0x440cc5,_0x5f3812,_0x1de7aa]),'editingService':_0x5baa75,'editorUnitId':ee,'positionOptions':(0x0,g[_0x317530(0x20d)])(()=>({'viewportKeys':{'main':s[_0x317530(0xf6)][_0x317530(0x22d)],'leftTop':s[_0x317530(0xf6)][_0x317530(0x1d1)],'top':s[_0x317530(0xf6)][_0x317530(0x2d0)],'left':s[_0x317530(0xf6)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x16c26b,_0x29470e)=>{const _0x2c449c=_0x317530;var _0x18376a,_0x482649;return(_0x18376a=(_0x482649=_0x16c26b[_0x2c449c(0x1bd)](c['SheetSkeletonManagerService'])[_0x2c449c(0x39b)](_0x29470e[_0x2c449c(0x3bd)]))==null?void 0x0:_0x482649[_0x2c449c(0x147)])==null?null:_0x18376a;}}),[])});});let W=class extends i[_0x35c725(0x22b)]{constructor(_0x43f399,_0x287106){const _0x5689c5=_0x35c725;super(),this[_0x5689c5(0x176)]=_0x43f399,this[_0x5689c5(0x181)]=_0x287106,this['_registerIcons'](),this[_0x5689c5(0x242)]();}[_0x35c725(0x1fe)](){const _0x5ac16b=_0x35c725;this[_0x5ac16b(0x181)]['has'](_0x5ac16b(0x191))||this[_0x5ac16b(0xf8)](this[_0x5ac16b(0x181)][_0x5ac16b(0x333)]({'CopyDoubleIcon':m[_0x5ac16b(0x191)]}));}['_registerComponents'](){const _0x7813ee=_0x35c725;this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)](I,be)),this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)](L,ve)),this['disposeWithMe'](this[_0x7813ee(0x176)][_0x7813ee(0x333)](re,ce)),this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)](ie,oe)),this[_0x7813ee(0x176)]['get'](u['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)](u[_0x7813ee(0x222)],se)),this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)](R,xe)),this[_0x7813ee(0xf8)](this['_componentManager']['register'](te,n[_0x7813ee(0x260)])),this[_0x7813ee(0xf8)](this[_0x7813ee(0x176)][_0x7813ee(0x333)]('SheetShapeTextEditorContainer',Ce));}};W=j([A(0x0,(0x0,i['Inject'])(e[_0x35c725(0x2bc)])),A(0x1,(0x0,i[_0x35c725(0x185)])(e[_0x35c725(0x225)]))],W);let G=class extends i[_0x35c725(0x22b)]{constructor(_0x5d4a6a,_0x4e3887,_0x595c34,_0x43c084,_0x431a0f){const _0x25a925=_0x35c725;super(),this[_0x25a925(0xe0)]=_0x5d4a6a,this[_0x25a925(0x284)]=_0x4e3887,this[_0x25a925(0x180)]=_0x595c34,this[_0x25a925(0x1d5)]=_0x43c084,this['_imageShapeClipController']=_0x431a0f,E(this,'_activeImageId',null),E(this,_0x25a925(0x229),null),E(this,_0x25a925(0x275),null),E(this,_0x25a925(0x173),void 0x0),E(this,_0x25a925(0x3c6),[]),E(this,_0x25a925(0x29e),0x0),E(this,_0x25a925(0x1a0),0x0),E(this,_0x25a925(0x325),0x0),E(this,_0x25a925(0x2a1),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0x25a925(0x1d0),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,_0x25a925(0x39d),void 0x0),E(this,'_adjHandlerPointerUp',void 0x0),E(this,_0x25a925(0x1e2),!0x1),this[_0x25a925(0x25f)](),this[_0x25a925(0x2cd)]();}[_0x35c725(0x326)](){const _0x1dd8ca=_0x35c725;this[_0x1dd8ca(0x300)]();}[_0x35c725(0x28b)](){const _0x4f2120=_0x35c725;this[_0x4f2120(0x300)](),this[_0x4f2120(0x377)](!0x0);}[_0x35c725(0x347)](_0x489ff7,_0x6370dc,_0x10430d,_0xb89f71){const _0x41e675=_0x35c725;let _0x303a47=_0x489ff7;if(!(_0x303a47===t[_0x41e675(0x317)][_0x41e675(0x255)]||_0x489ff7===_0x41e675(0x1d8)))try{let _0x3983b3=new t[(_0x41e675(0x132))](_0x303a47,_0x41e675(0x276)+_0x489ff7);return _0xb89f71&&_0x3983b3[_0x41e675(0x12a)]({'adjustValues':_0xb89f71},!0x0),_0x3983b3[_0x41e675(0x27d)]({'width':_0x6370dc,'height':_0x10430d}),_0x3983b3;}catch{return;}}['_getImageDrawingInfo'](_0x3f28e0,_0x2bb7d7,_0x1b4760){const _0x68fe2c=_0x35c725;let _0x30ab78={'unitId':_0x3f28e0,'subUnitId':_0x2bb7d7,'drawingId':_0x1b4760},_0x4a470d=this[_0x68fe2c(0x284)][_0x68fe2c(0x126)](_0x30ab78);if(!(!_0x4a470d||_0x4a470d[_0x68fe2c(0x1d6)]!==i[_0x68fe2c(0x36d)]['DRAWING_IMAGE']))return _0x4a470d;}['_getImagePrstGeom'](_0x17a93b,_0x27158e,_0x28ef19){const _0x430820=_0x35c725;let _0x4233a7=this[_0x430820(0x180)][_0x430820(0x31e)](_0x17a93b);if(!_0x4233a7)return;let {scene:_0x337c3d}=_0x4233a7,_0x34f33c=(0x0,o[_0x430820(0x13b)])({'unitId':_0x17a93b,'subUnitId':_0x27158e,'drawingId':_0x28ef19}),_0x320109=_0x337c3d[_0x430820(0xf3)](_0x34f33c);if(_0x320109 instanceof s['Image']){let _0x38d224=_0x320109[_0x430820(0x36b)];if(_0x38d224)return{'prstGeom':_0x38d224,'adjustValues':_0x320109[_0x430820(0x2f5)]};}}[_0x35c725(0x377)](_0x1478b9=!0x1){const _0x39a407=_0x35c725;if(!this['_unitId']||!this[_0x39a407(0x275)]||!this[_0x39a407(0x205)])return;let _0x459ef3=this[_0x39a407(0x180)][_0x39a407(0x31e)](this[_0x39a407(0x229)]);if(!_0x459ef3||!_0x459ef3[_0x39a407(0x1bd)](c[_0x39a407(0x2d5)])['getCurrentSkeleton']())return;let {scene:_0x23976b}=_0x459ef3,_0x4a1f91=this[_0x39a407(0x174)](this[_0x39a407(0x229)],this[_0x39a407(0x275)],this[_0x39a407(0x205)]);if(!_0x4a1f91)return;let {transform:_0x44198f}=_0x4a1f91;if(!_0x44198f)return;let {left:_0x55826e,top:_0x19568b,width:_0x39ca83,height:_0xbf9268,flipX:_0x1673bd,flipY:_0x488ab8,angle:_0x148116=0x0}=_0x44198f;if(_0x55826e===void 0x0||_0x19568b===void 0x0)return;let _0x28056e=this[_0x39a407(0x302)](this[_0x39a407(0x229)],this[_0x39a407(0x275)],this[_0x39a407(0x205)]);if(!_0x28056e)return;if(_0x1478b9){let _0x4c2ce7=this[_0x39a407(0x347)](_0x28056e[_0x39a407(0x36b)],_0x39ca83||0x0,_0xbf9268||0x0,_0x28056e[_0x39a407(0x21d)]);if(!_0x4c2ce7)return;this[_0x39a407(0x173)]=_0x4c2ce7[_0x39a407(0x389)]();}let _0x44bd87=this[_0x39a407(0x173)];if(!(!_0x44bd87||_0x44bd87[_0x39a407(0x33e)]===0x0))for(let _0x34bf9a=0x0;_0x34bf9a<_0x44bd87['length'];_0x34bf9a++){let _0x29ce5b=_0x44bd87[_0x34bf9a],_0x293d8a=_0x29ce5b['x'],_0x36fae1=_0x29ce5b['y'];if(_0x1673bd&&(_0x293d8a=(_0x39ca83||0x0)-_0x293d8a),_0x488ab8&&(_0x36fae1=(_0xbf9268||0x0)-_0x36fae1),_0x148116!==0x0){let _0x3cae11=(_0x39ca83||0x0)/0x2,_0x131db4=(_0xbf9268||0x0)/0x2,_0x54bafe=_0x148116*Math['PI']/0xb4,_0x438c20=Math[_0x39a407(0x32d)](_0x54bafe),_0x317461=Math['sin'](_0x54bafe),_0x430047=_0x293d8a-_0x3cae11,_0xcbd1b7=_0x36fae1-_0x131db4;_0x293d8a=_0x3cae11+(_0x430047*_0x438c20-_0xcbd1b7*_0x317461),_0x36fae1=_0x131db4+(_0x430047*_0x317461+_0xcbd1b7*_0x438c20);}let _0x2ffd98={'x':_0x293d8a,'y':_0x36fae1,'adjName':_0x29ce5b[_0x39a407(0x2d9)]};this[_0x39a407(0x393)](_0x23976b,_0x2ffd98,_0x2ffd98[_0x39a407(0x2d9)],_0x55826e,_0x19568b,this[_0x39a407(0x229)],this[_0x39a407(0x275)]);}}[_0x35c725(0x393)](_0x14f24d,_0x35b448,_0x5740f5,_0x53e2f4,_0x1d58e8,_0x40beee,_0x51529f){const _0x55ec17=_0x35c725;if(!this['_activeImageId'])return;let _0x5043f8=_0x55ec17(0x31d)+this[_0x55ec17(0x205)]+'-'+_0x5740f5,_0x4fe49e=_0x14f24d[_0x55ec17(0x3c5)](_0x5043f8);if(_0x4fe49e){_0x4fe49e[_0x55ec17(0x13e)]({'left':_0x35b448['x']+_0x53e2f4-t[_0x55ec17(0x188)][_0x55ec17(0x1b8)],'top':_0x35b448['y']+_0x1d58e8-t[_0x55ec17(0x188)][_0x55ec17(0x1b8)]});return;}let _0x3338c8=new k(_0x5043f8,{'left':_0x35b448['x']+_0x53e2f4-t[_0x55ec17(0x188)][_0x55ec17(0x1b8)],'top':_0x35b448['y']+_0x1d58e8-t['ShapeDefaultConfig'][_0x55ec17(0x1b8)],'adjName':_0x5740f5,'shapeId':this['_activeImageId'],'unitId':_0x40beee,'subUnitId':_0x51529f,'width':t['ShapeDefaultConfig']['adjHandleSize']+0x8,'height':t['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':s[_0x55ec17(0x17b)]+0x1,'evented':!0x0});this['_shapes'][_0x55ec17(0x1a8)](_0x3338c8),this[_0x55ec17(0x2a9)](_0x3338c8,_0x14f24d,_0x5740f5),_0x14f24d[_0x55ec17(0x29d)](_0x3338c8,s[_0x55ec17(0x17b)]+0x1);}[_0x35c725(0x300)](){const _0xd4531f=_0x35c725;this[_0xd4531f(0x3c6)]['length']!==0x0&&(this[_0xd4531f(0x3c6)][_0xd4531f(0x236)](_0xbf9a33=>_0xbf9a33[_0xd4531f(0x12d)]()),this[_0xd4531f(0x3c6)]=[]);}['_getScrollInfo'](_0x4295dc,_0x1e7c67){const _0x468e4c=_0x35c725;var _0x498182;let _0x311a48={'x':0x0,'y':0x0},_0x4fdbda=this[_0x468e4c(0x180)][_0x468e4c(0x31e)](_0x4295dc);if(!_0x4fdbda||!_0x4fdbda[_0x468e4c(0x1bd)](c['SheetSkeletonManagerService'])[_0x468e4c(0x383)](_0x1e7c67))return _0x311a48;let _0x647e48=_0x4fdbda[_0x468e4c(0x1bd)](c['SheetScrollManagerService']),_0x22e674=_0x647e48==null?void 0x0:_0x647e48[_0x468e4c(0x15f)]();if(!_0x22e674)return _0x311a48;let _0xc53f22=(_0x498182=this[_0x468e4c(0x1d5)][_0x468e4c(0x16b)](_0x4295dc))==null?void 0x0:_0x498182[_0x468e4c(0x254)](_0x1e7c67);if(!_0xc53f22)return _0x311a48;let _0x47a534=(0x0,c['getViewportByCell'])(_0x22e674['sheetViewStartRow'],_0x22e674[_0x468e4c(0x320)],_0x4fdbda[_0x468e4c(0x106)],_0xc53f22);return _0x47a534?{'x':_0x47a534[_0x468e4c(0x1a6)],'y':_0x47a534['viewportScrollY']}:_0x311a48;}[_0x35c725(0x3c1)](_0x5697c5,_0x40bdb1){const _0x5a5022=_0x35c725;var _0x4ead87,_0x27203a;let _0xa4195e=(_0x4ead87=this[_0x5a5022(0x1d5)][_0x5a5022(0x16b)](_0x5697c5))==null?void 0x0:_0x4ead87[_0x5a5022(0x254)](_0x40bdb1);return(_0x27203a=_0xa4195e==null?void 0x0:_0xa4195e['getZoomRatio']())==null?0x1:_0x27203a;}[_0x35c725(0x2a9)](_0x3e4f26,_0x511c50,_0x4517af){const _0x19d62d=_0x35c725;this[_0x19d62d(0xf8)]((0x0,i[_0x19d62d(0x344)])(_0x3e4f26['onPointerDown$']['subscribeEvent']((_0x3dc341,_0x22c291)=>{const _0x261226=_0x19d62d;var _0x50ff1f,_0x31a3b3,_0x159e59;let {unitId:_0x1cf652,subUnitId:_0x4a7e33,drawingId:_0xb3cd11}=_0x3e4f26[_0x261226(0x120)](),_0x4a7eee=this[_0x261226(0x174)](_0x1cf652,_0x4a7e33,_0xb3cd11);if(!(_0x4a7eee!=null&&_0x4a7eee[_0x261226(0x139)]))return;let {left:_0x46faf5,top:_0x592a3b,width:_0x4300a6,height:_0x2b5c24}=_0x4a7eee[_0x261226(0x139)];this['_baseLeft']=_0x46faf5||0x0,this['_baseTop']=_0x592a3b||0x0,this[_0x261226(0x325)]=_0x4300a6||0x0,this['_baseHeight']=_0x2b5c24||0x0;let _0xd0c802=!!((_0x50ff1f=_0x4a7eee[_0x261226(0x139)])!=null&&_0x50ff1f[_0x261226(0x2fb)]),_0x460a5c=!!((_0x31a3b3=_0x4a7eee[_0x261226(0x139)])!=null&&_0x31a3b3[_0x261226(0x1c6)]),_0x440163=((_0x159e59=_0x4a7eee[_0x261226(0x139)])==null?void 0x0:_0x159e59[_0x261226(0x1be)])||0x0,_0x14ceda=this[_0x261226(0x302)](_0x1cf652,_0x4a7e33,_0xb3cd11);if(!_0x14ceda)return;let _0x4ef686=this['_getOrCreateShapeModel'](_0x14ceda['prstGeom'],this[_0x261226(0x325)],this[_0x261226(0x2a1)],_0x14ceda[_0x261226(0x21d)]);if(!_0x4ef686||(this['_activeShapeModel']=_0x4ef686,this['_activeAdjustInfo']=_0x4ef686[_0x261226(0x355)](_0x4517af),!this['_activeAdjustInfo']))return;this[_0x261226(0x115)]=!0x0,_0x511c50[_0x261226(0xe4)]();let _0x393c65=_0x14ceda[_0x261226(0x36b)];this['_adjHandlerPointerMove']=_0x511c50[_0x261226(0x137)][_0x261226(0x2e1)]((_0x277167,_0xd421)=>{const _0x3259f4=_0x261226;if(!this[_0x3259f4(0x115)])return;let {offsetX:_0x9075c2,offsetY:_0x55a707}=_0x277167,_0x213390=this[_0x3259f4(0x1d0)];if(!this[_0x3259f4(0x12f)]||!_0x213390)return;_0x511c50['disableObjectsEvent'](),_0x511c50[_0x3259f4(0xe8)](s['CURSOR_TYPE'][_0x3259f4(0x338)]);let _0x2537bf={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x3259f4(0x2a1)]},_0x1d9787=this['_getScrollInfo'](_0x1cf652,_0x4a7e33),_0x40a6e4=this['_getZoomRatio'](_0x1cf652,_0x4a7e33),_0xe9ddaf=_0x9075c2/_0x40a6e4+_0x1d9787['x']-this['_baseLeft'],_0x2e2eec=_0x55a707/_0x40a6e4+_0x1d9787['y']-this[_0x3259f4(0x1a0)];if(_0x440163!==0x0){let _0x5f08b8=this[_0x3259f4(0x325)]/0x2,_0x6c45d6=this[_0x3259f4(0x2a1)]/0x2,_0x3eb773=_0x440163*Math['PI']/0xb4,_0x14c35e=Math[_0x3259f4(0x32d)](_0x3eb773),_0x2dd64d=Math['sin'](_0x3eb773),_0x148efc=_0xe9ddaf-_0x5f08b8,_0xa0826=_0x2e2eec-_0x6c45d6;_0xe9ddaf=_0x5f08b8+(_0x148efc*_0x14c35e+_0xa0826*_0x2dd64d),_0x2e2eec=_0x6c45d6+(-_0x148efc*_0x2dd64d+_0xa0826*_0x14c35e);}_0xd0c802&&(_0xe9ddaf=this[_0x3259f4(0x325)]-_0xe9ddaf),_0x460a5c&&(_0x2e2eec=this[_0x3259f4(0x2a1)]-_0x2e2eec);let _0x1e385d=this['_activeShapeModel'][_0x3259f4(0xe2)](_0x2537bf,{'x':_0xe9ddaf,'y':_0x2e2eec},_0x213390,_0xd0c802,_0x460a5c),_0x4c899a=_0x213390[_0x3259f4(0x227)]||_0x213390[_0x3259f4(0x226)]||_0x213390[_0x3259f4(0x1f6)]||_0x213390[_0x3259f4(0xed)];_0x4c899a!==void 0x0&&(this[_0x3259f4(0x12f)][_0x3259f4(0x29a)](_0x4c899a,_0x1e385d),this[_0x3259f4(0x12f)][_0x3259f4(0x27d)]({'width':this[_0x3259f4(0x325)],'height':this[_0x3259f4(0x2a1)]}),this['_updateImageAdjValues'](_0x1cf652,_0x4a7e33,_0xb3cd11,_0x4c899a,_0x1e385d),this[_0x3259f4(0x173)]=this[_0x3259f4(0x12f)][_0x3259f4(0x389)](),this[_0x3259f4(0x1d0)]=this['_activeShapeModel'][_0x3259f4(0x355)](_0x4517af),this['_createControls'](),_0xd421[_0x3259f4(0x373)]());}),this['_adjHandlerPointerUp']=_0x511c50[_0x261226(0x342)][_0x261226(0x2e1)]((_0x2b49f3,_0x18cf47)=>{const _0x2692ab=_0x261226;if(this[_0x2692ab(0x39d)][_0x2692ab(0x178)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x511c50[_0x2692ab(0xfb)](),this[_0x2692ab(0x12f)]){let _0x3edaed=this[_0x2692ab(0x12f)]['getAdjustNames'](),_0x2b5909={};for(let _0x4fe0a6 of _0x3edaed){let _0x4df92d=this['_activeShapeModel']['getAdjustValueByName'](_0x4fe0a6);_0x4df92d!==void 0x0&&(_0x2b5909[_0x4fe0a6]=_0x4df92d);}this[_0x2692ab(0x10f)][_0x2692ab(0x272)](_0x1cf652,_0x4a7e33,_0xb3cd11,_0x393c65,_0x2b5909);}this[_0x2692ab(0x1d0)]=void 0x0,this[_0x2692ab(0x12f)]=void 0x0,this[_0x2692ab(0x115)]=!0x1,_0x18cf47[_0x2692ab(0x373)](),_0x511c50[_0x2692ab(0x19a)]();}),_0x22c291[_0x261226(0x373)]();})));}[_0x35c725(0x365)](_0x7c88c3,_0x25f956,_0x5ccdc0,_0x47e82e,_0x4b8bf2){const _0x4fe9d2=_0x35c725;let _0x15f84c=this[_0x4fe9d2(0x180)][_0x4fe9d2(0x31e)](_0x7c88c3);if(!_0x15f84c)return;let {scene:_0x28beb0}=_0x15f84c,_0x4dab6e=(0x0,o[_0x4fe9d2(0x13b)])({'unitId':_0x7c88c3,'subUnitId':_0x25f956,'drawingId':_0x5ccdc0}),_0x2ee691=_0x28beb0[_0x4fe9d2(0xf3)](_0x4dab6e);if(_0x2ee691 instanceof s[_0x4fe9d2(0x259)]){var _0x192b4c;let _0x4a5775=(_0x192b4c=_0x2ee691['prstGeomAdjValues'])==null?{}:_0x192b4c;_0x2ee691['setPrstGeomAdjValues']({..._0x4a5775,[_0x47e82e]:_0x4b8bf2}),_0x2ee691[_0x4fe9d2(0x1ff)](!0x0);}}['_registerMoveHandler'](){const _0x28129e=_0x35c725;let _0x96bb3f=this['_univerInstanceService'][_0x28129e(0x1e9)](i[_0x28129e(0x27a)][_0x28129e(0x354)]);this[_0x28129e(0xf8)](_0x96bb3f[_0x28129e(0x310)]((0x0,l[_0x28129e(0x114)])(_0x47267d=>_0x47267d?_0x47267d[_0x28129e(0x35e)]['pipe']((0x0,l['switchMap'])(_0x47b5e8=>{const _0x47feea=_0x28129e;if(!_0x47b5e8)return l[_0x47feea(0x361)];let _0x59f7ad=_0x47267d[_0x47feea(0x2c0)](),_0x2c2bbb=this[_0x47feea(0x180)][_0x47feea(0x31e)](_0x59f7ad),_0x454b2c=_0x2c2bbb==null?void 0x0:_0x2c2bbb['scene'];return _0x454b2c?(0x0,l['of'])(_0x454b2c):l[_0x47feea(0x361)];})):l['EMPTY']))[_0x28129e(0x23b)](_0x5c1d94=>{const _0x1469bb=_0x28129e;let _0x52e345=_0x5c1d94[_0x1469bb(0x371)]();this[_0x1469bb(0xf8)](_0x5c1d94[_0x1469bb(0x137)][_0x1469bb(0x2e1)](()=>{const _0x3e09af=_0x1469bb;this[_0x3e09af(0x1e2)]&&this[_0x3e09af(0x300)]();})),this['disposeWithMe'](_0x52e345[_0x1469bb(0x34d)][_0x1469bb(0x23b)](_0x46b94c=>{const _0x215adb=_0x1469bb;let {objects:_0x3d6ac3}=_0x46b94c;if(this['_createControls'](),_0x3d6ac3!==null&&_0x3d6ac3[_0x215adb(0x1f2)]===0x1){let _0x1dbb25=_0x3d6ac3[_0x215adb(0x316)]()[_0x215adb(0x170)]()[_0x215adb(0x233)];_0x1dbb25 instanceof s[_0x215adb(0x259)]&&_0x1dbb25[_0x215adb(0x36b)]&&(this[_0x215adb(0x1e2)]=!0x0);}})),this[_0x1469bb(0xf8)](_0x52e345[_0x1469bb(0x35f)][_0x1469bb(0x23b)](()=>{const _0x20ff69=_0x1469bb;this[_0x20ff69(0x1e2)]&&this[_0x20ff69(0x300)]();})),this['disposeWithMe'](_0x5c1d94[_0x1469bb(0x342)]['subscribeEvent'](()=>{const _0xb7648a=_0x1469bb;this['_isImagePointerDown']&&(this[_0xb7648a(0x1e2)]=!0x1,this['_createControls']());})),this[_0x1469bb(0xf8)](_0x52e345[_0x1469bb(0x21b)][_0x1469bb(0x23b)](()=>{const _0x46f08a=_0x1469bb;if(this[_0x46f08a(0x229)]&&this[_0x46f08a(0x275)]&&this[_0x46f08a(0x205)]){let _0x443bf2=this[_0x46f08a(0x302)](this['_unitId'],this['_subUnitId'],this[_0x46f08a(0x205)]);if(_0x443bf2){var _0x234e67,_0x5e6df6;let _0x38e72b=this[_0x46f08a(0x174)](this[_0x46f08a(0x229)],this['_subUnitId'],this['_activeImageId']),_0x27b2bc=(_0x38e72b==null||(_0x234e67=_0x38e72b[_0x46f08a(0x139)])==null?void 0x0:_0x234e67[_0x46f08a(0x149)])||0x0,_0x10b67e=(_0x38e72b==null||(_0x5e6df6=_0x38e72b['transform'])==null?void 0x0:_0x5e6df6[_0x46f08a(0x2b2)])||0x0,_0x510583=this[_0x46f08a(0x347)](_0x443bf2[_0x46f08a(0x36b)],_0x27b2bc,_0x10b67e,_0x443bf2[_0x46f08a(0x21d)]);_0x510583&&(this[_0x46f08a(0x173)]=_0x510583[_0x46f08a(0x389)](),this['_clearControls'](),this[_0x46f08a(0x377)](!0x0));}}}));}));}[_0x35c725(0x25f)](){const _0x42d7c0=_0x35c725;this['disposeWithMe'](this[_0x42d7c0(0x284)][_0x42d7c0(0x268)][_0x42d7c0(0x23b)](_0x3408b1=>{const _0x576dd4=_0x42d7c0;if(_0x3408b1['length']===0x1){let _0x12f28c=_0x3408b1[0x0];if(_0x12f28c[_0x576dd4(0x1d6)]===i[_0x576dd4(0x36d)][_0x576dd4(0x212)]){let {unitId:_0x436cd0,subUnitId:_0x485a36,drawingId:_0x838a8a}=_0x12f28c,_0x4f115f=this[_0x576dd4(0x302)](_0x436cd0,_0x485a36,_0x838a8a);if(_0x4f115f){var _0xbd12bf,_0x530c24;this[_0x576dd4(0x205)]=_0x838a8a,this['_unitId']=_0x436cd0,this[_0x576dd4(0x275)]=_0x485a36;let _0x1033dd=this[_0x576dd4(0x174)](_0x436cd0,_0x485a36,_0x838a8a),_0x5c3a77=(_0x1033dd==null||(_0xbd12bf=_0x1033dd[_0x576dd4(0x139)])==null?void 0x0:_0xbd12bf[_0x576dd4(0x149)])||0x0,_0x215943=(_0x1033dd==null||(_0x530c24=_0x1033dd['transform'])==null?void 0x0:_0x530c24[_0x576dd4(0x2b2)])||0x0,_0x31b6b0=this[_0x576dd4(0x347)](_0x4f115f[_0x576dd4(0x36b)],_0x5c3a77,_0x215943,_0x4f115f['adjustValues']);_0x31b6b0&&(this['_activeAdjustPointList']=_0x31b6b0[_0x576dd4(0x389)]()),this[_0x576dd4(0x300)](),this[_0x576dd4(0x377)](!0x0);}else this['_resetState']();}else this[_0x576dd4(0x398)]();}else this[_0x576dd4(0x398)]();})),this[_0x42d7c0(0xf8)](this['_drawingManagerService'][_0x42d7c0(0x2d6)][_0x42d7c0(0x23b)](_0x5f7e53=>{const _0x34870b=_0x42d7c0;if(_0x5f7e53[_0x34870b(0x33e)]===0x1){let _0x52a3cc=_0x5f7e53[0x0],_0x9d689f=this[_0x34870b(0x284)][_0x34870b(0x126)](_0x52a3cc);(_0x9d689f==null?void 0x0:_0x9d689f['drawingType'])===i[_0x34870b(0x36d)]['DRAWING_IMAGE']&&this[_0x34870b(0x205)]===_0x52a3cc['drawingId']&&(this[_0x34870b(0x300)](),this[_0x34870b(0x377)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x42d7c0(0x23b)](_0x7a4734=>{const _0x162c2f=_0x42d7c0;for(let _0x4b8bc6 of _0x7a4734)this[_0x162c2f(0x205)]===_0x4b8bc6['drawingId']&&this[_0x162c2f(0x398)]();}));}['_resetState'](){const _0x921893=_0x35c725;this[_0x921893(0x205)]=null,this[_0x921893(0x229)]=null,this[_0x921893(0x275)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x921893(0x300)]();}};G=j([A(0x1,o['IDrawingManagerService']),A(0x2,(0x0,i[_0x35c725(0x185)])(s[_0x35c725(0x339)])),A(0x3,i[_0x35c725(0x337)]),A(0x4,(0x0,i['Inject'])(z))],G);let K=class extends i[_0x35c725(0x22b)]{constructor(_0x3221b8,_0x503d4e,_0x6c8d1e,_0x1c2387){const _0x16a1ea=_0x35c725;super(),this['_univerInstanceService']=_0x3221b8,this[_0x16a1ea(0x230)]=_0x503d4e,this[_0x16a1ea(0x3c8)]=_0x6c8d1e,this[_0x16a1ea(0x167)]=_0x1c2387,this[_0x16a1ea(0x1f9)]();}['_initSheetChange'](){const _0x5b8801=_0x35c725;this[_0x5b8801(0xf8)](this[_0x5b8801(0x230)][_0x5b8801(0x1ae)]({'getMutations':_0x250d2a=>{const _0x43688e=_0x5b8801;if(_0x250d2a['id']===a[_0x43688e(0x2ad)]['id']){let _0x224608=(0x0,a['getSheetCommandTarget'])(this['_univerInstanceService'],_0x250d2a[_0x43688e(0x335)]);if(!_0x224608)return{'redos':[],'undos':[]};let {unitId:_0x10e62f,subUnitId:_0x306b6a}=_0x224608,_0x4c609e=this[_0x43688e(0x3c8)][_0x43688e(0x2e9)](_0x10e62f,_0x306b6a),_0x13cf16=Object[_0x43688e(0x316)](_0x4c609e)[_0x43688e(0x140)](_0x2dca2e=>_0x2dca2e[_0x43688e(0x1d6)]===i[_0x43688e(0x36d)]['DRAWING_SHAPE']);if(_0x13cf16[_0x43688e(0x33e)]===0x0)return{'redos':[],'undos':[]};let _0x4612bb=[],_0x1045bf=[];for(let _0x265046=0x0;_0x265046<_0x13cf16[_0x43688e(0x33e)];_0x265046++){let _0x8240bf=_0x13cf16[_0x265046],_0x3284e8=this[_0x43688e(0x167)][_0x43688e(0x3a1)](_0x8240bf[_0x43688e(0x301)],_0x8240bf['subUnitId'],_0x8240bf[_0x43688e(0x187)]);if(!_0x3284e8)continue;let {redo:_0x5348d1,undo:_0x3a026f,objects:_0x36cb4c}=this[_0x43688e(0x3c8)][_0x43688e(0x31a)]([_0x8240bf]);_0x4612bb[_0x43688e(0x1a8)]({'id':r[_0x43688e(0x17a)]['id'],'params':{'unitId':_0x10e62f,'subUnitId':_0x306b6a,'shapeId':_0x8240bf[_0x43688e(0x187)]}}),_0x4612bb[_0x43688e(0x1a8)]({'id':h[_0x43688e(0x123)]['id'],'params':{'unitId':_0x10e62f,'subUnitId':_0x306b6a,'type':h[_0x43688e(0x16f)][_0x43688e(0x175)],'op':_0x5348d1,'objects':_0x36cb4c}}),_0x1045bf['push']({'id':h[_0x43688e(0x123)]['id'],'params':{'unitId':_0x10e62f,'subUnitId':_0x306b6a,'type':h['DrawingApplyType'][_0x43688e(0x2ea)],'op':_0x3a026f,'objects':_0x36cb4c}}),_0x1045bf['push']({'id':r[_0x43688e(0x271)]['id'],'params':{'unitId':_0x10e62f,'subUnitId':_0x306b6a,'shapeId':_0x8240bf['drawingId'],'shapeType':_0x3284e8[_0x43688e(0x3ab)](),'shapeData':JSON[_0x43688e(0x295)](JSON[_0x43688e(0x15b)](_0x3284e8[_0x43688e(0x3b1)]()))}});}return{'redos':_0x4612bb,'undos':_0x1045bf};}else{if(_0x250d2a['id']===a[_0x43688e(0x22e)]['id']){let {unitId:_0x3d369d,subUnitId:_0x3f1925,targetSubUnitId:_0x1c2e0c}=_0x250d2a[_0x43688e(0x335)];if(!_0x3d369d||!_0x3f1925||!_0x1c2e0c)return{'redos':[],'undos':[]};let _0x8e9984=this[_0x43688e(0x3c8)][_0x43688e(0x2e9)](_0x3d369d,_0x3f1925),_0x4513a5=Object[_0x43688e(0x316)](_0x8e9984)[_0x43688e(0x140)](_0x4750f4=>_0x4750f4[_0x43688e(0x1d6)]===i[_0x43688e(0x36d)][_0x43688e(0x257)]);if(_0x4513a5['length']===0x0)return{'redos':[],'undos':[]};let _0x90a617=[],_0x3a636b=[];for(let _0xe7a5cd=0x0;_0xe7a5cd<_0x4513a5[_0x43688e(0x33e)];_0xe7a5cd++){let _0x552b62=_0x4513a5[_0xe7a5cd],_0x285493=this[_0x43688e(0x167)][_0x43688e(0x3a1)](_0x552b62[_0x43688e(0x301)],_0x552b62[_0x43688e(0x3bd)],_0x552b62[_0x43688e(0x187)]);if(!_0x285493)continue;let _0x26c613=(0x0,i[_0x43688e(0x2ae)])(),_0x43fe78={..._0x552b62,'unitId':_0x3d369d,'subUnitId':_0x1c2e0c,'drawingId':_0x26c613},{redo:_0x1c4b76,undo:_0x46710b,objects:_0xe33db4}=this[_0x43688e(0x3c8)]['getBatchAddOp']([_0x43fe78]);_0x90a617['push']({'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d369d,'subUnitId':_0x1c2e0c,'type':h[_0x43688e(0x16f)][_0x43688e(0x2ea)],'op':_0x1c4b76,'objects':_0xe33db4}}),_0x90a617[_0x43688e(0x1a8)]({'id':r[_0x43688e(0x271)]['id'],'params':{'unitId':_0x3d369d,'subUnitId':_0x1c2e0c,'shapeId':_0x26c613,'shapeType':_0x285493[_0x43688e(0x3ab)](),'shapeData':JSON[_0x43688e(0x295)](JSON[_0x43688e(0x15b)](_0x285493['getShapeData']()))}}),_0x3a636b['push']({'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3d369d,'subUnitId':_0x1c2e0c,'shapeId':_0x26c613}}),_0x3a636b['push']({'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d369d,'subUnitId':_0x1c2e0c,'type':h[_0x43688e(0x16f)]['REMOVE'],'op':_0x46710b,'objects':_0xe33db4}});}return{'redos':_0x90a617,'undos':_0x3a636b};}}return{'redos':[],'undos':[]};}}));}};K=j([A(0x0,(0x0,i[_0x35c725(0x185)])(i[_0x35c725(0x337)])),A(0x1,(0x0,i[_0x35c725(0x185)])(a['SheetInterceptorService'])),A(0x2,(0x0,i[_0x35c725(0x185)])(h[_0x35c725(0x24e)])),A(0x3,(0x0,i['Inject'])(r['SheetsShapeService']))],K);let we=class extends i[_0x35c725(0x22b)]{constructor(_0x7ab32b,_0x15fb60,_0x139a8c,_0xaf26a2,_0x53d55c){const _0x471436=_0x35c725;super(),this[_0x471436(0xe0)]=_0x7ab32b,this['_shapeTextEditingService']=_0x15fb60,this[_0x471436(0x284)]=_0x139a8c,this['_contextService']=_0xaf26a2,this[_0x471436(0x167)]=_0x53d55c,E(this,_0x471436(0x256),null),this['_initEvents'](),this['_initSelection'](),this['_initEditingParams']();}[_0x35c725(0x270)](){const _0x11a4bf=_0x35c725;let {scene:_0x4ce150}=this[_0x11a4bf(0xe0)];this[_0x11a4bf(0xf8)](_0x4ce150['onDblclick$'][_0x11a4bf(0x2e1)](_0x1148ca=>{const _0x4c8de0=_0x11a4bf;let {offsetX:_0x4b9f9b,offsetY:_0x5da6a4}=_0x1148ca,_0x1adcab=_0x4ce150[_0x4c8de0(0x36c)](s[_0x4c8de0(0x1e6)]['FromArray']([_0x4b9f9b,_0x5da6a4]));if(_0x1adcab instanceof O){if((0x0,t[_0x4c8de0(0x261)])(this[_0x4c8de0(0x167)][_0x4c8de0(0x3ab)](_0x1adcab[_0x4c8de0(0x301)],_0x1adcab['subUnitId'],_0x1adcab[_0x4c8de0(0x363)])))return;this['_shapeTextEditingService'][_0x4c8de0(0x353)]({'visible':!0x0,'unitId':_0x1adcab[_0x4c8de0(0x301)],'subUnitId':_0x1adcab[_0x4c8de0(0x3bd)],'shapeId':_0x1adcab['shapeId'],'shapeKey':_0x1adcab[_0x4c8de0(0x331)]});}}));}[_0x35c725(0x19f)](){const _0x1120be=_0x35c725;this[_0x1120be(0xf8)](this[_0x1120be(0x284)][_0x1120be(0x268)][_0x1120be(0x23b)](_0x47aba2=>{const _0x5e3775=_0x1120be;if(_0x47aba2[_0x5e3775(0x33e)]===0x1){let _0x59812a=_0x47aba2[0x0],_0x5a9b46=this[_0x5e3775(0x284)][_0x5e3775(0x126)](_0x59812a);if((_0x5a9b46==null?void 0x0:_0x5a9b46[_0x5e3775(0x1d6)])===i[_0x5e3775(0x36d)][_0x5e3775(0x257)]){let _0x210861=this[_0x5e3775(0x21e)][_0x5e3775(0x23e)]();if((_0x210861==null?void 0x0:_0x210861[_0x5e3775(0x363)])===_0x59812a['drawingId']&&_0x210861[_0x5e3775(0x1cd)])return;(0x0,t[_0x5e3775(0x261)])(this[_0x5e3775(0x167)][_0x5e3775(0x3ab)](_0x59812a['unitId'],_0x59812a[_0x5e3775(0x3bd)],_0x59812a[_0x5e3775(0x187)]))&&this[_0x5e3775(0x21e)][_0x5e3775(0x353)](null);}else this[_0x5e3775(0x21e)][_0x5e3775(0x23e)]()&&(this[_0x5e3775(0x21e)][_0x5e3775(0x11c)](!0x0),requestAnimationFrame(()=>{const _0x1195b1=_0x5e3775;this[_0x1195b1(0x21e)][_0x1195b1(0x353)](null);}));}else this['_shapeTextEditingService'][_0x5e3775(0x23e)]()&&(this[_0x5e3775(0x21e)][_0x5e3775(0x11c)](!0x0),requestAnimationFrame(()=>{const _0x2de640=_0x5e3775;this[_0x2de640(0x21e)][_0x2de640(0x353)](null);}));})),this[_0x1120be(0xf8)](this[_0x1120be(0x284)][_0x1120be(0x15e)][_0x1120be(0x23b)](_0x325986=>{const _0x1dfd45=_0x1120be;let _0x1662ca=this[_0x1dfd45(0x21e)][_0x1dfd45(0x23e)]();_0x1662ca&&_0x325986[_0x1dfd45(0x253)](_0x208e26=>_0x208e26[_0x1dfd45(0x187)]===_0x1662ca[_0x1dfd45(0x363)])&&this['_shapeTextEditingService'][_0x1dfd45(0x353)](null);}));}[_0x35c725(0x24d)](){const _0x23b220=_0x35c725;this[_0x23b220(0xf8)](this['_shapeTextEditingService'][_0x23b220(0x39f)]['subscribe'](_0xe81ff8=>{const _0x595fa1=_0x23b220;let {scene:_0x5a679e}=this[_0x595fa1(0xe0)];if(this['_lastEditingShapeKey']){let _0x255831=_0x5a679e[_0x595fa1(0x3c5)](this['_lastEditingShapeKey']);_0x255831&&_0x255831[_0x595fa1(0x353)](!0x1);}if(_0xe81ff8){let _0x4b0d31=!!_0xe81ff8[_0x595fa1(0x1cd)],_0x55eda2=_0x5a679e[_0x595fa1(0x3c5)](_0xe81ff8[_0x595fa1(0x1bb)]);_0x55eda2&&(_0x55eda2['setEditing'](_0x4b0d31),this[_0x595fa1(0x256)]=_0xe81ff8[_0x595fa1(0x1bb)]),this[_0x595fa1(0x1d3)][_0x595fa1(0x36e)](i[_0x595fa1(0x1de)],_0x4b0d31);}else this[_0x595fa1(0x256)]=null,this[_0x595fa1(0x1d3)][_0x595fa1(0x36e)](i[_0x595fa1(0x1de)],!0x1);}));}};we=j([A(0x1,(0x0,i['Inject'])(U)),A(0x2,o['IDrawingManagerService']),A(0x3,i[_0x35c725(0x2e5)]),A(0x4,(0x0,i[_0x35c725(0x185)])(r['SheetsShapeService']))],we);let Te=class extends n[_0x35c725(0x15d)]{constructor(_0x2858b6,_0x349dcb,_0x255049,_0x82143b){super(_0x2858b6,_0x349dcb,_0x255049,_0x82143b,{'componentKey':te,'editorUnitId':ee});}};Te=j([A(0x1,(0x0,i[_0x35c725(0x185)])(_[_0x35c725(0x1fc)])),A(0x2,(0x0,i['Inject'])(v['DocCanvasPopManagerService'])),A(0x3,(0x0,i[_0x35c725(0x185)])(v[_0x35c725(0x133)]))],Te);function _0x244f(_0x1337bc,_0x2ed663){_0x1337bc=_0x1337bc-0xdf;const _0xf82323=_0xf823();let _0x244f16=_0xf82323[_0x1337bc];return _0x244f16;}let q=class extends i[_0x35c725(0x22b)]{constructor(_0x373960,_0xd19aac,_0x5c0d9d,_0x1637e4,_0x15fb6c,_0x3603b0){const _0xad2104=_0x35c725;super(),this['_commandService']=_0x373960,this[_0xad2104(0x180)]=_0xd19aac,this[_0xad2104(0x284)]=_0x5c0d9d,this[_0xad2104(0x37b)]=_0x1637e4,this[_0xad2104(0x158)]=_0x15fb6c,this['_sheetDrawingShapeRenderController']=_0x3603b0,E(this,_0xad2104(0x144),new Set()),this['_initialize']();}[_0x35c725(0x2ee)](){const _0x48a161=_0x35c725;this[_0x48a161(0x239)](),this['_commandExecutedListener'](),this[_0x48a161(0x1e0)]();}[_0x35c725(0x239)](){const _0x4722b8=_0x35c725;this[_0x4722b8(0xf8)](this[_0x4722b8(0x284)][_0x4722b8(0x243)][_0x4722b8(0x23b)](_0x3aff62=>{const _0x188f35=_0x4722b8;this[_0x188f35(0x1aa)](_0x3aff62);}));}[_0x35c725(0x24c)](){const _0xb981d8=_0x35c725;this[_0xb981d8(0xf8)](this[_0xb981d8(0x155)][_0xb981d8(0x125)](_0x402fe0=>{const _0x2f3f78=_0xb981d8;if(_0x402fe0['id']===r[_0x2f3f78(0x1ac)]['id']){let {unitId:_0x4a75dd,subUnitId:_0x4584fd,shapeId:_0x4ab3dc}=_0x402fe0[_0x2f3f78(0x335)],_0x5f4411=this['_getSceneAndTransformerByDrawingSearch'](_0x4a75dd),_0x1c1af1=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x4a75dd,'subUnitId':_0x4584fd,'drawingId':_0x4ab3dc}),_0x48bc3e=_0x5f4411==null?void 0x0:_0x5f4411[_0x2f3f78(0x106)][_0x2f3f78(0x3c5)](_0x1c1af1);_0x48bc3e&&(this[_0x2f3f78(0x37c)][_0x2f3f78(0x358)](_0x48bc3e),_0x48bc3e[_0x2f3f78(0x1ff)](!0x0));return;}if(_0x402fe0['id']===r['InsertSheetsShapeMutation']['id']){var _0x2bf645;let {unitId:_0x12b34d,subUnitId:_0x237b15,shapeId:_0x2623f4}=_0x402fe0[_0x2f3f78(0x335)],_0x4ef735=this[_0x2f3f78(0x103)](_0x12b34d);if(_0x4ef735==null)return;let {scene:_0x500df6}=_0x4ef735,_0x489847=(0x0,o[_0x2f3f78(0x13b)])({'unitId':_0x12b34d,'subUnitId':_0x237b15,'drawingId':_0x2623f4}),_0x19a3da=_0x500df6['getObjectIncludeInGroup'](_0x489847);if(!((_0x2bf645=this['_renderManagerService'][_0x2f3f78(0x31e)](_0x12b34d))!=null&&_0x2bf645[_0x2f3f78(0x1bd)](c[_0x2f3f78(0x2d5)])[_0x2f3f78(0x383)](_0x237b15)))return!0x1;if(_0x19a3da)return;this[_0x2f3f78(0x1aa)]([{'unitId':_0x12b34d,'subUnitId':_0x237b15,'drawingId':_0x2623f4}]);}}));}[_0x35c725(0x1e0)](){const _0x2db995=_0x35c725;this[_0x2db995(0xf8)](this[_0x2db995(0x284)][_0x2db995(0x2d6)][_0x2db995(0x23b)](_0x80d9bb=>{_0x80d9bb['forEach'](_0x569706=>{const _0x3c54a0=_0x244f;let {unitId:_0x5ec5f0,subUnitId:_0x2c039d,drawingId:_0x23ce7d}=_0x569706,_0x5e12bf=this[_0x3c54a0(0x284)][_0x3c54a0(0x126)](_0x569706);if(_0x5e12bf==null)return;let {transform:_0x597e9e,drawingType:_0x4db11a,srcRect:_0xf0bd0e,prstGeom:_0x385942}=_0x5e12bf;if(_0x4db11a!==i[_0x3c54a0(0x36d)][_0x3c54a0(0x257)])return;let _0x381301=this[_0x3c54a0(0x103)](_0x5ec5f0);if(_0x381301==null)return;let {scene:_0x19b942,transformer:_0x19d7e7}=_0x381301;if(_0x597e9e==null)return!0x0;let _0x4d11aa=(0x0,o[_0x3c54a0(0x13b)])({'unitId':_0x5ec5f0,'subUnitId':_0x2c039d,'drawingId':_0x23ce7d}),_0x498d8b=_0x19b942['getObjectIncludeInGroup'](_0x4d11aa);if(_0x498d8b==null)return!0x0;_0x498d8b[_0x3c54a0(0xe6)](_0xf0bd0e),_0x498d8b[_0x3c54a0(0x1a3)](_0x385942);});}));}[_0x35c725(0x1aa)](_0x2b5fa6){const _0x44c975=_0x35c725;for(let _0x1f9046 of _0x2b5fa6){var _0x8d720b;let {unitId:_0x2b4fc4,subUnitId:_0x134d7a,drawingId:_0x2ca80a}=_0x1f9046,_0x52a6e4=this['_getSceneAndTransformerByDrawingSearch'](_0x2b4fc4),_0x4705c3=(_0x8d720b=(0x0,u[_0x44c975(0x200)])(this[_0x44c975(0x37b)],_0x2b4fc4))==null?void 0x0:_0x8d720b[_0x44c975(0x3bd)];if(_0x52a6e4==null||_0x4705c3!==_0x134d7a)return;let _0xd6732c=(0x0,o[_0x44c975(0x13b)])({'unitId':_0x2b4fc4,'subUnitId':_0x134d7a,'drawingId':_0x2ca80a});if(this[_0x44c975(0x144)][_0x44c975(0x1b9)](_0xd6732c)||_0x52a6e4[_0x44c975(0x106)]['getObjectIncludeInGroup'](_0xd6732c)!=null)return;let _0x35d8f8=this[_0x44c975(0x284)][_0x44c975(0x126)](_0x1f9046);if(_0x35d8f8==null||_0x35d8f8[_0x44c975(0x1d6)]!==i[_0x44c975(0x36d)][_0x44c975(0x257)])return;if((0x0,t[_0x44c975(0x261)])((_0x35d8f8['data']||{})[_0x44c975(0xea)])){let _0x453760=_0x35d8f8['transform'];_0x453760&&(_0x35d8f8[_0x44c975(0x139)]={..._0x453760,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x44c975(0x144)][_0x44c975(0x2f0)](_0xd6732c);try{this[_0x44c975(0x37c)]['renderDrawingShape'](_0x35d8f8,_0x52a6e4[_0x44c975(0x106)]);}finally{this['_insertingShapeKeys'][_0x44c975(0x1ca)](_0xd6732c);}queueMicrotask(()=>{const _0x1663ed=_0x44c975;if(this['_disposed'])return;let _0x589157=(0x0,o['getDrawingShapeKeyByDrawingSearch'])(_0x1f9046);if(!_0x52a6e4[_0x1663ed(0x106)][_0x1663ed(0x3c5)](_0x589157))return;let _0x511c1f=this[_0x1663ed(0x284)][_0x1663ed(0x126)](_0x1f9046);_0x511c1f&&this[_0x1663ed(0x284)]['refreshTransform']([_0x511c1f]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x4c312e){const _0x2c162f=_0x35c725;if(_0x4c312e==null)return;let _0x10b297=this[_0x2c162f(0x180)][_0x2c162f(0x31e)](_0x4c312e),_0x30b7aa=_0x10b297==null?void 0x0:_0x10b297[_0x2c162f(0x106)];return _0x30b7aa==null?null:{'scene':_0x30b7aa,'transformer':_0x30b7aa['getTransformerByCreate']()};}};q=j([A(0x0,i[_0x35c725(0x20e)]),A(0x1,s[_0x35c725(0x339)]),A(0x2,o['IDrawingManagerService']),A(0x3,i['IUniverInstanceService']),A(0x4,(0x0,i['Inject'])(u['DrawingRenderService'])),A(0x5,(0x0,i[_0x35c725(0x185)])(M))],q);const Ee={'normal':{'fill':t['ShapeDefaultConfig'][_0x35c725(0x19c)],'stroke':t[_0x35c725(0x188)][_0x35c725(0xf2)],'strokeWidth':t['ShapeDefaultConfig']['cxnPointStrokeWidth']},'highlighted':{'fill':_0x35c725(0x17c),'stroke':_0x35c725(0x2f9),'strokeWidth':0x2}};var De=class extends s[_0x35c725(0x305)]{constructor(_0x5dd22e,_0x32f5c5){const _0x17d6d3=_0x35c725;super(_0x5dd22e,_0x32f5c5),E(this,_0x17d6d3(0x34b),''),E(this,_0x17d6d3(0x3ac),-0x1),E(this,'_unitId',''),E(this,_0x17d6d3(0x275),''),E(this,_0x17d6d3(0x34a),!0x1),_0x32f5c5&&this[_0x17d6d3(0x288)](_0x32f5c5);}['getConnectionInfo'](){const _0x13aca9=_0x35c725;return{'unitId':this[_0x13aca9(0x229)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x13aca9(0x34b)],'cxnIndex':this[_0x13aca9(0x3ac)]};}[_0x35c725(0xf7)](_0x4a5096){const _0x1e7048=_0x35c725;this[_0x1e7048(0x34a)]!==_0x4a5096&&(this['_isHighlighted']=_0x4a5096,this['makeDirty'](!0x0));}[_0x35c725(0x15a)](){const _0x50d7aa=_0x35c725;return this[_0x50d7aa(0x34a)];}[_0x35c725(0x288)](_0x49394f){const _0x42d1eb=_0x35c725;var _0xa294a0,_0xa2dec4;_0x49394f[_0x42d1eb(0x2a5)]!==void 0x0&&(this[_0x42d1eb(0x34b)]=_0x49394f[_0x42d1eb(0x2a5)]),_0x49394f['cxnIndex']!==void 0x0&&(this['_cxnIndex']=_0x49394f['cxnIndex']),_0x49394f[_0x42d1eb(0x301)]!==void 0x0&&(this['_unitId']=_0x49394f[_0x42d1eb(0x301)]),_0x49394f[_0x42d1eb(0x3bd)]!==void 0x0&&(this[_0x42d1eb(0x275)]=_0x49394f[_0x42d1eb(0x3bd)]),_0x49394f[_0x42d1eb(0x15a)]!==void 0x0&&(this[_0x42d1eb(0x34a)]=_0x49394f[_0x42d1eb(0x15a)]),this[_0x42d1eb(0x13e)]({'width':(_0xa294a0=_0x49394f[_0x42d1eb(0x149)])==null?t[_0x42d1eb(0x188)]['cxnPointRadius']*0x2:_0xa294a0,'height':(_0xa2dec4=_0x49394f[_0x42d1eb(0x2b2)])==null?t[_0x42d1eb(0x188)][_0x42d1eb(0x128)]*0x2:_0xa2dec4});}[_0x35c725(0x252)](_0x15e962){const _0x2d4456=_0x35c725;let _0x43aaee=this[_0x2d4456(0x34a)]?Ee[_0x2d4456(0x32f)]:Ee['normal'];s[_0x2d4456(0x2b5)][_0x2d4456(0x2e7)](_0x15e962,{'radius':t[_0x2d4456(0x188)]['cxnPointRadius'],'fill':_0x43aaee['fill'],'stroke':_0x43aaee['stroke'],'strokeWidth':_0x43aaee[_0x2d4456(0x1ed)],'evented':!0x0});}};let J=class extends i[_0x35c725(0x22b)]{constructor(_0x1f9a75,_0x2ef456,_0x1e6d2d,_0x2b4b6c){const _0xda2940=_0x35c725;super(),this['_context']=_0x1f9a75,this[_0xda2940(0x180)]=_0x2ef456,this[_0xda2940(0x284)]=_0x1e6d2d,this[_0xda2940(0x167)]=_0x2b4b6c,E(this,_0xda2940(0x26c),[]),E(this,_0xda2940(0x14d),null),E(this,_0xda2940(0x352),-0x1),E(this,_0xda2940(0x246),null),E(this,_0xda2940(0x229),''),E(this,_0xda2940(0x275),''),E(this,_0xda2940(0x3aa),null);}['startConnectionDetection'](_0x168655,_0x36a78e,_0x4b31c3,_0x580053){const _0x18644d=_0x35c725;this[_0x18644d(0x246)]=_0x168655,this[_0x18644d(0x229)]=_0x36a78e,this[_0x18644d(0x275)]=_0x4b31c3,this['_draggingConnectorId']=_0x580053;}['updateConnectionDetection'](_0x27b0a0){const _0x1073de=_0x35c725;if(!this[_0x1073de(0x246)])return null;let _0x503b63=this['_findShapeAtPoint'](_0x27b0a0);return _0x503b63?(this[_0x1073de(0x14d)]!==_0x503b63[_0x1073de(0x363)]&&(this[_0x1073de(0x264)](),this[_0x1073de(0x38f)](_0x503b63[_0x1073de(0x363)],_0x503b63[_0x1073de(0x20c)]),this['_activeTargetShapeId']=_0x503b63[_0x1073de(0x363)]),this[_0x1073de(0x350)](_0x27b0a0)):(this[_0x1073de(0x14d)]!==null&&(this[_0x1073de(0x264)](),this[_0x1073de(0x14d)]=null),null);}[_0x35c725(0x262)](){const _0x37536f=_0x35c725;this[_0x37536f(0x264)](),this[_0x37536f(0x246)]=null,this[_0x37536f(0x14d)]=null,this[_0x37536f(0x352)]=-0x1,this['_draggingConnectorId']=null;}[_0x35c725(0x213)](){return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this['_highlightedSiteIndex']};}['_findShapeAtPoint'](_0x5579e6){const _0x566c95=_0x35c725;let _0x4d32f5=this[_0x566c95(0x284)]['getDrawingData'](this[_0x566c95(0x229)],this[_0x566c95(0x275)]);for(let _0xde9392 of Object[_0x566c95(0x3b8)](_0x4d32f5)){if(_0xde9392===this[_0x566c95(0x3aa)]||_0x4d32f5[_0xde9392][_0x566c95(0x1d6)]!==i[_0x566c95(0x36d)][_0x566c95(0x257)])continue;let _0x1e448b=this['_sheetsShapeService']['getShapeModel'](this[_0x566c95(0x229)],this[_0x566c95(0x275)],_0xde9392);if(!_0x1e448b||(0x0,t[_0x566c95(0x261)])(_0x1e448b[_0x566c95(0x3ab)]())||_0x1e448b[_0x566c95(0x2f8)]()[_0x566c95(0x33e)]===0x0||!this['_currentScene'])continue;let _0x144f35=(0x0,o[_0x566c95(0x13b)])({'unitId':this[_0x566c95(0x229)],'subUnitId':this[_0x566c95(0x275)],'drawingId':_0xde9392}),_0x4ed262=this['_currentScene']['getObjectIncludeInGroup'](_0x144f35);if(!_0x4ed262)continue;let {left:_0x3ea9e6,top:_0x5e4d7b,width:_0x32d729,height:_0xcc8654}=_0x4ed262[_0x566c95(0x2a4)](),_0x5c23a0=_0x3ea9e6+_0x32d729/0x2,_0x1de393=_0x5e4d7b+_0xcc8654/0x2,_0x4a4627=_0x4ed262[_0x566c95(0x139)]['getMatrix'](),_0x4480fb=new s['Transform']([_0x4a4627[0x0],_0x4a4627[0x1],_0x4a4627[0x2],_0x4a4627[0x3],_0x5c23a0,_0x1de393]),_0x52658b=_0x4ed262['getParent'](),_0x52daf5=(_0x4ed262['isInGroup']&&(_0x52658b==null?void 0x0:_0x52658b[_0x566c95(0x322)])===s[_0x566c95(0x273)][_0x566c95(0x1fb)]?_0x52658b['ancestorTransform'][_0x566c95(0x1fd)](_0x4480fb):_0x4480fb)['invert']()[_0x566c95(0x25c)](_0x5579e6),_0x1cd5b9=_0x32d729/0x2,_0x36190f=_0xcc8654/0x2;if(_0x52daf5['x']>=-_0x1cd5b9-0x5&&_0x52daf5['x']<=_0x1cd5b9+0x5&&_0x52daf5['y']>=-_0x36190f-0x5&&_0x52daf5['y']<=_0x36190f+0x5)return{'shapeId':_0xde9392,'shapeModel':_0x1e448b};}return null;}['_showConnectionSites'](_0x2b9759,_0x541ad5){const _0x49b2ad=_0x35c725;if(!this[_0x49b2ad(0x246)])return;let _0x112ba6=(0x0,o[_0x49b2ad(0x13b)])({'unitId':this[_0x49b2ad(0x229)],'subUnitId':this[_0x49b2ad(0x275)],'drawingId':_0x2b9759}),_0x2d9d56=this[_0x49b2ad(0x246)]['getObjectIncludeInGroup'](_0x112ba6);if(!_0x2d9d56)return;let {left:_0x3758c8,top:_0x18287a,width:_0x350138,height:_0x446c64}=_0x2d9d56[_0x49b2ad(0x2a4)](),_0x291755=_0x3758c8+_0x350138/0x2,_0x5c1d72=_0x18287a+_0x446c64/0x2,_0x1c517c=_0x2d9d56[_0x49b2ad(0x139)][_0x49b2ad(0x285)](),_0x2a6634=new s[(_0x49b2ad(0x194))]([_0x1c517c[0x0],_0x1c517c[0x1],_0x1c517c[0x2],_0x1c517c[0x3],_0x291755,_0x5c1d72]),_0x37cd15=_0x2d9d56[_0x49b2ad(0x208)](),_0x39949a=_0x2d9d56[_0x49b2ad(0x11a)]&&(_0x37cd15==null?void 0x0:_0x37cd15['classType'])===s[_0x49b2ad(0x273)][_0x49b2ad(0x1fb)]?_0x37cd15[_0x49b2ad(0x118)][_0x49b2ad(0x1fd)](_0x2a6634):_0x2a6634;_0x541ad5[_0x49b2ad(0x27d)]({'width':_0x350138,'height':_0x446c64});let _0x1f721a=_0x541ad5[_0x49b2ad(0x2f8)]();for(let _0x3f1a81 of _0x1f721a){let _0x3dea37=_0x3f1a81['x']-_0x350138/0x2,_0xff75c3=_0x3f1a81['y']-_0x446c64/0x2,_0x3256a8=_0x39949a[_0x49b2ad(0x25c)]({'x':_0x3dea37,'y':_0xff75c3}),_0x3cb70c=_0x3256a8['x'],_0x21d04c=_0x3256a8['y'],_0x2d8023=new De(_0x49b2ad(0x116)+_0x2b9759+'-'+_0x3f1a81[_0x49b2ad(0x231)],{'left':_0x3cb70c-t[_0x49b2ad(0x188)][_0x49b2ad(0x128)],'top':_0x21d04c-t[_0x49b2ad(0x188)]['cxnPointRadius'],'targetShapeId':_0x2b9759,'cxnIndex':_0x3f1a81[_0x49b2ad(0x231)],'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'width':t[_0x49b2ad(0x188)][_0x49b2ad(0x128)]*0x2,'height':t['ShapeDefaultConfig'][_0x49b2ad(0x128)]*0x2,'zIndex':s[_0x49b2ad(0x17b)]+0x2,'evented':!0x1});this[_0x49b2ad(0x26c)]['push'](_0x2d8023),this[_0x49b2ad(0x246)][_0x49b2ad(0x29d)](_0x2d8023,s[_0x49b2ad(0x17b)]+0x2);}}['_findNearestConnectionSite'](_0x28225f){const _0x179eac=_0x35c725;let _0x276df3=null,_0x6841c3=0x1/0x0,_0x3113be=null;for(let _0x517a8 of this[_0x179eac(0x26c)]){let _0x106341=_0x517a8[_0x179eac(0x1ab)]+t['ShapeDefaultConfig'][_0x179eac(0x128)],_0x3eb8ca=_0x517a8[_0x179eac(0x16e)]+t[_0x179eac(0x188)][_0x179eac(0x128)],_0x3cf3c8=_0x28225f['x']-_0x106341,_0x2b6b46=_0x28225f['y']-_0x3eb8ca,_0x3c3989=Math['sqrt'](_0x3cf3c8*_0x3cf3c8+_0x2b6b46*_0x2b6b46);_0x3c3989<_0x6841c3&&(_0x6841c3=_0x3c3989,_0x276df3=_0x517a8,_0x3113be={'x':_0x106341,'y':_0x3eb8ca});}let _0x360beb=_0x6841c3<=0xa&&_0x276df3?_0x276df3[_0x179eac(0x162)]()[_0x179eac(0x1cf)]:-0x1;if(_0x360beb!==this['_highlightedSiteIndex']){for(let _0x14674d of this[_0x179eac(0x26c)]){let _0x9020df=_0x14674d['getConnectionInfo']();_0x14674d[_0x179eac(0xf7)](_0x9020df[_0x179eac(0x1cf)]===_0x360beb);}this[_0x179eac(0x352)]=_0x360beb;}if(_0x6841c3<=0xa&&_0x276df3&&_0x3113be){let _0x5425af=_0x276df3['getConnectionInfo'](),_0xf1593b=this['_getConnectionSiteAngle'](_0x5425af[_0x179eac(0x363)],_0x5425af[_0x179eac(0x1cf)]);return{'shapeId':_0x5425af['shapeId'],'cxnIndex':_0x5425af[_0x179eac(0x1cf)],'unitId':_0x5425af[_0x179eac(0x301)],'subUnitId':_0x5425af[_0x179eac(0x3bd)],'worldPoint':_0x3113be,'angle':_0xf1593b};}return null;}['_getConnectionSiteAngle'](_0x516455,_0x3f5ec5){const _0x3c0ff6=_0x35c725;let _0x385836=this[_0x3c0ff6(0x167)][_0x3c0ff6(0x3a1)](this['_unitId'],this['_subUnitId'],_0x516455);if(!_0x385836)return 0x0;let _0x169908=this[_0x3c0ff6(0x284)][_0x3c0ff6(0x126)]({'unitId':this[_0x3c0ff6(0x229)],'subUnitId':this['_subUnitId'],'drawingId':_0x516455});if(!(_0x169908!=null&&_0x169908['transform']))return 0x0;let {width:_0x3f7b77=0x0,height:_0x4f5d05=0x0,flipX:_0x53c6bb=!0x1,flipY:_0x5b7b9c=!0x1}=_0x169908[_0x3c0ff6(0x139)];_0x385836['updateContext']({'width':_0x3f7b77,'height':_0x4f5d05});let _0x5e503f=_0x385836[_0x3c0ff6(0x2f8)]()[_0x3c0ff6(0x1cc)](_0x47b679=>_0x47b679[_0x3c0ff6(0x231)]===_0x3f5ec5);if(!_0x5e503f)return 0x0;let _0x5bcfe3=_0x5e503f[_0x3c0ff6(0x146)]/0xea60;return _0x53c6bb&&(_0x5bcfe3=0xb4-_0x5bcfe3),_0x5b7b9c&&(_0x5bcfe3=-_0x5bcfe3),_0x5bcfe3=(_0x5bcfe3%0x168+0x168)%0x168,_0x5bcfe3;}[_0x35c725(0x264)](){const _0x395ae8=_0x35c725;for(let _0xaedbd0 of this[_0x395ae8(0x26c)])_0xaedbd0[_0x395ae8(0x12d)]();this[_0x395ae8(0x26c)]=[],this[_0x395ae8(0x352)]=-0x1;}['dispose'](){this['_clearConnectionSites'](),super['dispose']();}};J=j([A(0x1,(0x0,i['Inject'])(s[_0x35c725(0x339)])),A(0x2,(0x0,i[_0x35c725(0x185)])(o[_0x35c725(0x28f)])),A(0x3,(0x0,i[_0x35c725(0x185)])(r[_0x35c725(0x31c)]))],J);let Y=class extends i[_0x35c725(0x22b)]{constructor(_0x13ecfc,_0x2c470e,_0x1773b1,_0x244b2b,_0x541137){const _0x5b6ea8=_0x35c725;super(),this[_0x5b6ea8(0x3a0)]=_0x13ecfc,this[_0x5b6ea8(0x130)]=_0x2c470e,this['_sheetDrawingService']=_0x1773b1,this['_shapeService']=_0x244b2b,this[_0x5b6ea8(0x380)]=_0x541137,E(this,_0x5b6ea8(0x2b6),void 0x0),this[_0x5b6ea8(0x2af)](),this[_0x5b6ea8(0x362)]();}get[_0x35c725(0x2fa)](){const _0x556b8f=_0x35c725;return this['_sheetDrawingService'][_0x556b8f(0x198)]();}[_0x35c725(0x362)](){const _0x59ee5b=_0x35c725;this[_0x59ee5b(0x380)]['registerFeaturePasteHook'](({fromUnitId:_0x1df2e7,fromSubUnitId:_0x5101e4,toUnitId:_0x15daea,toSubUnitId:_0x51ce76,idMap:_0x3660be})=>{const _0x317a70=_0x59ee5b;let _0x25802a=[],_0x5ed909=[];for(let [_0x53de06,_0x32c3ec]of _0x3660be[_0x317a70(0x290)]()){let _0x284854=this[_0x317a70(0x160)][_0x317a70(0x3a1)](_0x1df2e7,_0x5101e4,_0x53de06);if(!_0x284854)continue;let _0x525757=_0x284854[_0x317a70(0x3ab)](),_0x11fe8d=JSON['parse'](JSON[_0x317a70(0x15b)](_0x284854['getShapeData']()));if(_0x11fe8d[_0x317a70(0x2cb)]){var _0xe9bee8,_0x1716ba;let _0x38b7d0=(_0xe9bee8=_0x11fe8d[_0x317a70(0x2cb)]['from'])==null?void 0x0:_0xe9bee8[_0x317a70(0x363)],_0xbf2a0f=(_0x1716ba=_0x11fe8d[_0x317a70(0x2cb)]['to'])==null?void 0x0:_0x1716ba[_0x317a70(0x363)],_0x29de37=_0x38b7d0?_0x3660be[_0x317a70(0x1b9)](_0x38b7d0):!0x0,_0x5dcc76=_0xbf2a0f?_0x3660be[_0x317a70(0x1b9)](_0xbf2a0f):!0x0;_0x29de37&&_0x38b7d0&&_0x11fe8d[_0x317a70(0x2cb)][_0x317a70(0x32b)]?_0x11fe8d[_0x317a70(0x2cb)][_0x317a70(0x32b)]={..._0x11fe8d[_0x317a70(0x2cb)][_0x317a70(0x32b)],'shapeId':_0x3660be['get'](_0x38b7d0)}:_0x11fe8d[_0x317a70(0x2cb)][_0x317a70(0x32b)]=void 0x0,_0x5dcc76&&_0xbf2a0f&&_0x11fe8d[_0x317a70(0x2cb)]['to']?_0x11fe8d[_0x317a70(0x2cb)]['to']={..._0x11fe8d[_0x317a70(0x2cb)]['to'],'shapeId':_0x3660be[_0x317a70(0x2d7)](_0xbf2a0f)}:_0x11fe8d[_0x317a70(0x2cb)]['to']=void 0x0;}_0x25802a[_0x317a70(0x1a8)]({'id':r[_0x317a70(0x271)]['id'],'params':{'unitId':_0x15daea,'subUnitId':_0x51ce76,'shapeId':_0x32c3ec,'shapeType':_0x525757,'shapeData':_0x11fe8d}}),_0x5ed909[_0x317a70(0x1a8)]({'id':r[_0x317a70(0x17a)]['id'],'params':{'unitId':_0x15daea,'subUnitId':_0x51ce76,'shapeId':_0x32c3ec}});}return{'redos':_0x25802a,'undos':_0x5ed909};});}[_0x35c725(0x2af)](){const _0xdcf1f1=_0x35c725;this[_0xdcf1f1(0xf8)](this[_0xdcf1f1(0x130)]['addClipboardHook']({'id':_0xdcf1f1(0x3b4),'onBeforeCopy':(_0x482dfe,_0x2c530f,_0x55ea0b,_0x2d1b5d)=>{const _0x418428=_0xdcf1f1;this[_0x418428(0x2b6)]=null;let _0x287141=this[_0x418428(0x2fa)];if(_0x287141[_0x418428(0x33e)]){let _0x3c9607=_0x287141[_0x418428(0x140)](_0x5a426b=>_0x5a426b[_0x418428(0x1d6)]===i[_0x418428(0x36d)][_0x418428(0x257)]);if(_0x3c9607['length']===0x0)return;this[_0x418428(0x2b6)]={'unitId':_0x482dfe,'subUnitId':_0x2c530f,'copyType':_0x2d1b5d,'drawings':_0x3c9607};}else this[_0x418428(0x151)](_0x482dfe,_0x2c530f,_0x55ea0b,_0x2d1b5d);},'onPasteCells':(_0x29953d,_0x2ed205,_0x4a8fc5,_0xb287ba)=>{const _0x3c9e6a=_0xdcf1f1;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x1b8dd4}=_0xb287ba;return _0x1b8dd4===c['PREDEFINED_HOOK_NAME'][_0x3c9e6a(0x33f)]?this[_0x3c9e6a(0x395)](_0x2ed205,this[_0x3c9e6a(0x2b6)]['copyType']===c[_0x3c9e6a(0x247)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x689a74=>this['_copyInfo']?this[_0xdcf1f1(0x395)](_0x689a74,this[_0xdcf1f1(0x2b6)][_0xdcf1f1(0x2fc)]===c['COPY_TYPE']['CUT']):{'redos':[],'undos':[]}}));}[_0x35c725(0x151)](_0x1be936,_0xc8ed60,_0x1420ac,_0x1e4ebd){const _0x27a57b=_0x35c725;let _0x4bfc9e=this['_sheetSkeletonService'][_0x27a57b(0x383)](_0x1be936,_0xc8ed60);if(!_0x4bfc9e)return;let _0x4240de=(0x0,a[_0x27a57b(0x197)])(_0x4bfc9e,_0x1420ac);if(!_0x4240de)return;let {startX:_0x3be85d,endX:_0x1628e9,startY:_0x2d1798,endY:_0x534e9f}=_0x4240de,_0x447180=this[_0x27a57b(0x3c8)][_0x27a57b(0x2e9)](_0x1be936,_0xc8ed60),_0x121317=this['_focusedDrawings'][_0x27a57b(0x179)]();for(let [_0x5b6f75,_0x10874c]of Object['entries'](_0x447180)){if(_0x10874c[_0x27a57b(0x1d6)]!==i[_0x27a57b(0x36d)][_0x27a57b(0x257)])continue;let {transform:_0x4d7be6}=_0x10874c;if(!_0x4d7be6)continue;let {left:_0x153614=0x0,top:_0x405b5d=0x0,width:_0x576c45=0x0,height:_0x19b910=0x0}=_0x4d7be6;_0x3be85d<=_0x153614&&_0x1628e9>=_0x153614+_0x576c45&&_0x2d1798<=_0x405b5d&&_0x534e9f>=_0x405b5d+_0x19b910&&_0x121317['push'](_0x10874c);}_0x121317[_0x27a57b(0x33e)]>0x0&&(this[_0x27a57b(0x2b6)]={'unitId':_0x1be936,'subUnitId':_0xc8ed60,'copyType':_0x1e4ebd,'copyRange':_0x1420ac,'drawings':_0x121317});}[_0x35c725(0x395)](_0x453b51,_0x551921){const _0x256d8f=_0x35c725;let {unitId:_0x3dc7b2,subUnitId:_0x4b61b9,range:_0x27d3a1}=_0x453b51,_0x1786ef=this['_sheetSkeletonService'][_0x256d8f(0x383)](_0x3dc7b2,_0x4b61b9);if(!_0x1786ef)return{'redos':[],'undos':[]};let _0x21a82c=(0x0,a[_0x256d8f(0x1d2)])(_0x27d3a1),{unitId:_0x9f2640,subUnitId:_0x448622,copyRange:_0x4b5cfd,drawings:_0x4cbb89}=this[_0x256d8f(0x2b6)],_0x1e8b06=this[_0x256d8f(0x3a0)]['getSkeleton'](_0x9f2640,_0x448622);if(!_0x1e8b06)return{'redos':[],'undos':[]};let _0x18c43c;if(!_0x4b5cfd){let _0x411deb=0x1/0x0,_0x174535=0x1/0x0;for(let _0x3ac4e6 of _0x4cbb89){var _0x1677b8;let {left:_0x4684e7=0x0,top:_0x4ab8d5=0x0}=(_0x1677b8=_0x3ac4e6[_0x256d8f(0x139)])==null?{}:_0x1677b8;_0x4684e7<_0x411deb&&(_0x411deb=_0x4684e7),_0x4ab8d5<_0x174535&&(_0x174535=_0x4ab8d5);}_0x411deb!==0x1/0x0&&_0x174535!==0x1/0x0&&(_0x18c43c={'left':_0x411deb,'top':_0x174535});}let _0x506b6c=new Map();if(!_0x551921){for(let _0x1de0f0 of _0x4cbb89)_0x506b6c['set'](_0x1de0f0[_0x256d8f(0x187)],(0x0,i[_0x256d8f(0x2ae)])());}let _0x4dcf42=[],_0x160a9d=[];for(let _0x447b02 of _0x4cbb89){let {drawingId:_0x325cac,transform:_0x546823,sheetTransform:_0x3a8590}=_0x447b02;if(!_0x546823||!_0x3a8590)continue;let _0x5831c0=this[_0x256d8f(0x2a2)]({'transform':_0x546823,'sheetTransform':_0x3a8590},{'skeleton':_0x1e8b06,'range':_0x4b5cfd},{'skeleton':_0x1786ef,'range':_0x21a82c},_0x18c43c);if(_0x551921){let {redos:_0x547276,undos:_0x4c6bbe}=this[_0x256d8f(0xf9)]({'fromUnitId':_0x9f2640,'fromSubUnitId':_0x448622,'toUnitId':_0x3dc7b2,'toSubUnitId':_0x4b61b9,'drawing':_0x447b02,'newTransforms':_0x5831c0});_0x4dcf42[_0x256d8f(0x1a8)](..._0x547276),_0x160a9d[_0x256d8f(0x1a8)](..._0x4c6bbe);continue;}let {redos:_0x33aa80,undos:_0x20e8d0}=this[_0x256d8f(0x35b)]({'toUnitId':_0x3dc7b2,'toSubUnitId':_0x4b61b9,'drawing':_0x447b02,'newTransforms':_0x5831c0,'newDrawingId':_0x506b6c[_0x256d8f(0x2d7)](_0x325cac),'idMap':_0x506b6c});_0x4dcf42[_0x256d8f(0x1a8)](..._0x33aa80),_0x160a9d['push'](..._0x20e8d0);}return{'redos':_0x4dcf42,'undos':_0x160a9d};}[_0x35c725(0xf9)](_0x4d3d72){const _0x1f109f=_0x35c725;let {fromUnitId:_0x28bfa0,fromSubUnitId:_0x4d66c9,toUnitId:_0x28d683,toSubUnitId:_0x1fa0cb,drawing:_0x31f282,newTransforms:_0x1e89e5}=_0x4d3d72,_0x94d25e={..._0x31f282,'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'transform':_0x1e89e5[_0x1f109f(0x139)],'sheetTransform':_0x1e89e5[_0x1f109f(0x2a7)]};if(_0x28d683===_0x28bfa0&&_0x1fa0cb===_0x4d66c9){let {redo:_0x24ea89,undo:_0x460d4c,objects:_0x2e9e43}=this[_0x1f109f(0x3c8)][_0x1f109f(0x2b8)]([_0x94d25e]);return{'redos':[{'id':h[_0x1f109f(0x123)]['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'type':h[_0x1f109f(0x16f)][_0x1f109f(0x1a7)],'op':_0x24ea89,'objects':_0x2e9e43}}],'undos':[{'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'type':h[_0x1f109f(0x16f)]['UPDATE'],'op':_0x460d4c,'objects':_0x2e9e43}}]};}else{let _0x2e6d04=this[_0x1f109f(0x3c8)]['getBatchRemoveOp']([_0x31f282]),_0x206bb8=this['_sheetDrawingService'][_0x1f109f(0x3a3)]([_0x94d25e]),_0x2737cb=this[_0x1f109f(0x160)][_0x1f109f(0x3a1)](_0x31f282['unitId'],_0x31f282['subUnitId'],_0x31f282[_0x1f109f(0x187)]);if(!_0x2737cb)return{'redos':[],'undos':[]};let _0x4596b4=_0x2737cb[_0x1f109f(0x3ab)](),_0x159612=JSON[_0x1f109f(0x295)](JSON[_0x1f109f(0x15b)](_0x2737cb[_0x1f109f(0x3b1)]()));return{'redos':[{'id':h[_0x1f109f(0x123)]['id'],'params':{'unitId':_0x28bfa0,'subUnitId':_0x4d66c9,'type':h[_0x1f109f(0x16f)][_0x1f109f(0x175)],'op':_0x2e6d04[_0x1f109f(0x2de)],'objects':_0x2e6d04[_0x1f109f(0x329)]}},{'id':r[_0x1f109f(0x17a)]['id'],'params':{'unitId':_0x28bfa0,'subUnitId':_0x4d66c9,'shapeId':_0x31f282[_0x1f109f(0x187)]}},{'id':h[_0x1f109f(0x123)]['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'type':h[_0x1f109f(0x16f)][_0x1f109f(0x2ea)],'op':_0x206bb8[_0x1f109f(0x2de)],'objects':_0x206bb8[_0x1f109f(0x329)]}},{'id':r[_0x1f109f(0x271)]['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'shapeId':_0x31f282[_0x1f109f(0x187)],'shapeType':_0x4596b4,'shapeData':_0x159612}}],'undos':[{'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x28bfa0,'subUnitId':_0x4d66c9,'type':h[_0x1f109f(0x16f)][_0x1f109f(0x2ea)],'op':_0x2e6d04['undo'],'objects':_0x2e6d04[_0x1f109f(0x329)]}},{'id':r[_0x1f109f(0x271)]['id'],'params':{'unitId':_0x28bfa0,'subUnitId':_0x4d66c9,'shapeId':_0x31f282['drawingId'],'shapeType':_0x4596b4,'shapeData':_0x159612}},{'id':h['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'type':h[_0x1f109f(0x16f)][_0x1f109f(0x175)],'op':_0x206bb8['undo'],'objects':_0x206bb8['objects']}},{'id':r[_0x1f109f(0x17a)]['id'],'params':{'unitId':_0x28d683,'subUnitId':_0x1fa0cb,'shapeId':_0x31f282[_0x1f109f(0x187)]}}]};}}[_0x35c725(0x35b)](_0xa65fa2){const _0x510152=_0x35c725;let {toUnitId:_0x193bf5,toSubUnitId:_0xc1be46,drawing:_0x23fa98,newTransforms:_0x386793,newDrawingId:_0x366af7,idMap:_0x248540}=_0xa65fa2,_0x308d7b={..._0x23fa98,'unitId':_0x193bf5,'subUnitId':_0xc1be46,'drawingId':_0x366af7,'transform':_0x386793['transform'],'sheetTransform':_0x386793[_0x510152(0x2a7)]},{redo:_0x578bda,undo:_0x2f91ed,objects:_0x42a295}=this[_0x510152(0x3c8)][_0x510152(0x3a3)]([_0x308d7b]),_0x58cad4=this[_0x510152(0x160)][_0x510152(0x3a1)](_0x23fa98[_0x510152(0x301)],_0x23fa98[_0x510152(0x3bd)],_0x23fa98[_0x510152(0x187)]);if(!_0x58cad4)return{'redos':[],'undos':[]};let _0x423578=_0x58cad4['getShapeType'](),_0x3b9f41=JSON[_0x510152(0x295)](JSON['stringify'](_0x58cad4[_0x510152(0x3b1)]()));if(_0x3b9f41['relation']){var _0x3fc4d3,_0x3917ba;let _0x2fd4dc=(_0x3fc4d3=_0x3b9f41[_0x510152(0x2cb)][_0x510152(0x32b)])==null?void 0x0:_0x3fc4d3['shapeId'],_0x39d9c1=(_0x3917ba=_0x3b9f41[_0x510152(0x2cb)]['to'])==null?void 0x0:_0x3917ba[_0x510152(0x363)],_0x15c239=_0x2fd4dc?_0x248540['has'](_0x2fd4dc):!0x0,_0x58a20e=_0x39d9c1?_0x248540[_0x510152(0x1b9)](_0x39d9c1):!0x0;_0x15c239&&_0x2fd4dc&&_0x3b9f41[_0x510152(0x2cb)][_0x510152(0x32b)]?_0x3b9f41['relation'][_0x510152(0x32b)]={..._0x3b9f41[_0x510152(0x2cb)][_0x510152(0x32b)],'shapeId':_0x248540[_0x510152(0x2d7)](_0x2fd4dc)}:_0x3b9f41[_0x510152(0x2cb)][_0x510152(0x32b)]=void 0x0,_0x58a20e&&_0x39d9c1&&_0x3b9f41[_0x510152(0x2cb)]['to']?_0x3b9f41[_0x510152(0x2cb)]['to']={..._0x3b9f41[_0x510152(0x2cb)]['to'],'shapeId':_0x248540[_0x510152(0x2d7)](_0x39d9c1)}:_0x3b9f41[_0x510152(0x2cb)]['to']=void 0x0;}return{'redos':[{'id':h[_0x510152(0x123)]['id'],'params':{'unitId':_0x193bf5,'subUnitId':_0xc1be46,'type':h[_0x510152(0x16f)]['INSERT'],'op':_0x578bda,'objects':_0x42a295}},{'id':r[_0x510152(0x271)]['id'],'params':{'unitId':_0x193bf5,'subUnitId':_0xc1be46,'shapeId':_0x366af7,'shapeType':_0x423578,'shapeData':_0x3b9f41}}],'undos':[{'id':h[_0x510152(0x123)]['id'],'params':{'unitId':_0x193bf5,'subUnitId':_0xc1be46,'type':h[_0x510152(0x16f)][_0x510152(0x175)],'op':_0x2f91ed,'objects':_0x42a295}},{'id':r['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x193bf5,'subUnitId':_0xc1be46,'shapeId':_0x366af7}}]};}[_0x35c725(0x2a2)](_0x33c7c0,_0xe75b42,_0x531b7f,_0x25069a){const _0x52e636=_0x35c725;var _0x1222bc;let {range:_0x4e589f,skeleton:_0x1337cd}=_0xe75b42,{range:_0x3ea6ef,skeleton:_0x5bc149}=_0x531b7f,{transform:_0x143846,sheetTransform:_0x16b63a}=_0x33c7c0,_0x575936={..._0x143846};if(_0x4e589f){let _0x46067f=(0x0,a[_0x52e636(0x197)])(_0x1337cd,_0x4e589f),_0x4b0dd0=(0x0,a['attachRangeWithCoord'])(_0x5bc149,_0x3ea6ef);if(_0x46067f&&_0x4b0dd0){var _0xfc9834,_0x1bdf2d;let _0x32301f=_0x4b0dd0[_0x52e636(0x359)]-_0x46067f[_0x52e636(0x359)],_0x119850=_0x4b0dd0[_0x52e636(0xe3)]-_0x46067f[_0x52e636(0xe3)];_0x575936[_0x52e636(0x1ab)]=((_0xfc9834=_0x575936['left'])==null?0x0:_0xfc9834)+_0x32301f,_0x575936[_0x52e636(0x16e)]=((_0x1bdf2d=_0x575936['top'])==null?0x0:_0x1bdf2d)+_0x119850;}}else{let _0x394e14=(0x0,a[_0x52e636(0x197)])(_0x5bc149,_0x3ea6ef);if(_0x25069a&&_0x394e14){var _0x4070f5,_0x25b245;let _0x2a7b24=((_0x4070f5=_0x575936[_0x52e636(0x1ab)])==null?0x0:_0x4070f5)-_0x25069a[_0x52e636(0x1ab)],_0x40da46=((_0x25b245=_0x575936[_0x52e636(0x16e)])==null?0x0:_0x25b245)-_0x25069a[_0x52e636(0x16e)];_0x575936[_0x52e636(0x1ab)]=_0x394e14[_0x52e636(0x359)]+_0x2a7b24,_0x575936['top']=_0x394e14['startY']+_0x40da46;}else _0x575936['left']=_0x394e14==null?void 0x0:_0x394e14[_0x52e636(0x359)],_0x575936[_0x52e636(0x16e)]=_0x394e14==null?void 0x0:_0x394e14[_0x52e636(0xe3)];}return{'transform':_0x575936,'sheetTransform':(_0x1222bc=(0x0,h['transformToDrawingPosition'])(_0x575936,_0x5bc149))==null?_0x16b63a:_0x1222bc};}};Y=j([A(0x0,(0x0,i[_0x35c725(0x185)])(a['SheetSkeletonService'])),A(0x1,(0x0,i[_0x35c725(0x185)])(c['ISheetClipboardService'])),A(0x2,(0x0,i[_0x35c725(0x185)])(h['ISheetDrawingService'])),A(0x3,(0x0,i[_0x35c725(0x185)])(r['SheetsShapeService'])),A(0x4,(0x0,i[_0x35c725(0x185)])(p[_0x35c725(0x241)]))],Y);var Oe=class extends s[_0x35c725(0x305)]{constructor(_0x1343ff,_0x362890){const _0x443be0=_0x35c725;super(_0x1343ff,_0x362890),E(this,'_shapeId',null),E(this,_0x443be0(0x108),null),E(this,_0x443be0(0x229),null),E(this,'_subUnitId',null),E(this,_0x443be0(0xfc),!0x1),_0x362890&&this[_0x443be0(0x288)](_0x362890);}[_0x35c725(0x120)](){const _0x39bec2=_0x35c725;return{'unitId':this[_0x39bec2(0x229)],'subUnitId':this[_0x39bec2(0x275)],'drawingId':this[_0x39bec2(0x1c0)]};}[_0x35c725(0x288)](_0x3dac22){const _0x1a582e=_0x35c725;_0x3dac22[_0x1a582e(0x363)]!==void 0x0&&(this[_0x1a582e(0x1c0)]=_0x3dac22[_0x1a582e(0x363)]),_0x3dac22[_0x1a582e(0x301)]!==void 0x0&&(this[_0x1a582e(0x229)]=_0x3dac22['unitId']),_0x3dac22['subUnitId']!==void 0x0&&(this[_0x1a582e(0x275)]=_0x3dac22[_0x1a582e(0x3bd)]),_0x3dac22[_0x1a582e(0x109)]!==void 0x0&&(this[_0x1a582e(0xfc)]=_0x3dac22['isStartConnectorPoint']),this[_0x1a582e(0x13e)]({'width':_0x3dac22[_0x1a582e(0x149)],'height':_0x3dac22[_0x1a582e(0x2b2)]});}[_0x35c725(0x252)](_0xd18a13){const _0x2a0f07=_0x35c725;s['Circle'][_0x2a0f07(0x2e7)](_0xd18a13,{'radius':t[_0x2a0f07(0x188)][_0x2a0f07(0x128)],'fill':t['ShapeDefaultConfig'][_0x2a0f07(0x19c)],'stroke':t['ShapeDefaultConfig'][_0x2a0f07(0xf2)],'strokeWidth':t[_0x2a0f07(0x188)]['cxnPointStrokeWidth'],'evented':!0x0});}};let ke=class extends i[_0x35c725(0x22b)]{constructor(_0x36bf8c,_0xed39f8,_0x41a005,_0x3533dd,_0x2af63a,_0x9aed61,_0x1b7f04,_0x2e2a97){const _0x290080=_0x35c725;super(),this[_0x290080(0xe0)]=_0x36bf8c,this[_0x290080(0x155)]=_0xed39f8,this[_0x290080(0x180)]=_0x41a005,this[_0x290080(0x284)]=_0x3533dd,this[_0x290080(0x1d5)]=_0x2af63a,this[_0x290080(0x167)]=_0x9aed61,this[_0x290080(0x169)]=_0x1b7f04,this[_0x290080(0x1dd)]=_0x2e2a97,E(this,'_activeShapeId',void 0x0),E(this,_0x290080(0x229),void 0x0),E(this,_0x290080(0x275),void 0x0),E(this,'_connectorObjects',[]),E(this,_0x290080(0x12e),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,'_activeShapeModel',void 0x0),E(this,_0x290080(0x314),!0x1),E(this,_0x290080(0x104),!0x1),E(this,_0x290080(0x124),!0x1),E(this,_0x290080(0x19e),void 0x0),E(this,_0x290080(0x315),void 0x0),E(this,_0x290080(0x2e6),null),this[_0x290080(0x2ee)]();}[_0x35c725(0x2ee)](){const _0x3637a4=_0x35c725;this[_0x3637a4(0x202)](),this[_0x3637a4(0x10e)]();}[_0x35c725(0x1b3)](){const _0x1adbdc=_0x35c725;if(!this['_unitId']||!this[_0x1adbdc(0x275)]||!this[_0x1adbdc(0x102)])return;let _0x181ea6={'unitId':this[_0x1adbdc(0x229)],'subUnitId':this[_0x1adbdc(0x275)],'drawingId':this[_0x1adbdc(0x102)]},{transform:_0x1e56f8}=this[_0x1adbdc(0x284)][_0x1adbdc(0x126)](_0x181ea6);if(_0x1e56f8)return{'left':_0x1e56f8[_0x1adbdc(0x1ab)]||0x0,'top':_0x1e56f8[_0x1adbdc(0x16e)]||0x0,'width':_0x1e56f8[_0x1adbdc(0x149)]||0x0,'height':_0x1e56f8[_0x1adbdc(0x2b2)]||0x0,'flipX':_0x1e56f8['flipX']||!0x1,'flipY':_0x1e56f8[_0x1adbdc(0x1c6)]||!0x1,'angle':_0x1e56f8['angle']};}[_0x35c725(0x27b)](){const _0x415baa=_0x35c725;if(this[_0x415baa(0x229)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x415baa(0x102)]===void 0x0)return;let _0x2203fa=this[_0x415baa(0x180)][_0x415baa(0x31e)](this['_unitId']);if(!_0x2203fa||!_0x2203fa['with'](c[_0x415baa(0x2d5)])[_0x415baa(0x184)]())return;let {scene:_0x4d1f08}=_0x2203fa,_0x4e5cee=this[_0x415baa(0x1b3)]();if(!_0x4e5cee)return;let _0x105f56=this['_sheetsShapeService'][_0x415baa(0x3a1)](this[_0x415baa(0x229)],this[_0x415baa(0x275)],this['_activeShapeId']);if(!_0x105f56||!(0x0,t['isConnectorShape'])(_0x105f56[_0x415baa(0x3ab)]()))return;let _0x292d1e=_0x105f56['getConnectorLinePoints']();if(_0x292d1e[_0x415baa(0x33e)]<0x2)return;let _0x12a053=new t['ConnectorCoordinateTransform'](_0x4e5cee),_0x15a9b3=_0x292d1e[0x0],_0x1ae6a0=_0x292d1e[_0x292d1e[_0x415baa(0x33e)]-0x1],_0x59e782=_0x12a053['localToWorld'](_0x15a9b3),_0x4cd779=_0x12a053[_0x415baa(0x2e3)](_0x1ae6a0);this[_0x415baa(0x209)](_0x4d1f08,{..._0x59e782},!0x0),this[_0x415baa(0x209)](_0x4d1f08,{..._0x4cd779},!0x1);}[_0x35c725(0x209)](_0x50ca2a,_0xf4d0a5,_0x1b262a){const _0x299911=_0x35c725;if(this[_0x299911(0x102)]===void 0x0||this[_0x299911(0x229)]===void 0x0||this[_0x299911(0x275)]===void 0x0)return;let _0x56c23d=_0x299911(0x1af)+this[_0x299911(0x229)]+'-'+this[_0x299911(0x275)]+'-'+this[_0x299911(0x102)]+'-'+(_0x1b262a?_0x299911(0x110):_0x299911(0x388)),_0x1ecaa5=_0x50ca2a[_0x299911(0x3c5)](_0x56c23d);if(_0x1ecaa5){_0x1ecaa5[_0x299911(0x13e)]({'left':_0xf4d0a5['x']-t['ShapeDefaultConfig'][_0x299911(0x128)],'top':_0xf4d0a5['y']-t[_0x299911(0x188)][_0x299911(0x128)]});return;}let _0x52d256=new Oe(_0x56c23d,{'left':_0xf4d0a5['x']-t[_0x299911(0x188)]['cxnPointRadius'],'top':_0xf4d0a5['y']-t[_0x299911(0x188)][_0x299911(0x128)],'shapeId':this[_0x299911(0x102)],'unitId':this[_0x299911(0x229)],'subUnitId':this[_0x299911(0x275)],'isStartConnectorPoint':_0x1b262a,'width':t[_0x299911(0x188)][_0x299911(0x128)]*0x2,'height':t[_0x299911(0x188)][_0x299911(0x128)]*0x2,'zIndex':s[_0x299911(0x17b)]+0x1,'evented':!0x0});this[_0x299911(0x1b1)][_0x299911(0x1a8)](_0x52d256),this[_0x299911(0x190)](_0x52d256,_0x50ca2a,_0x1b262a),_0x50ca2a[_0x299911(0x29d)](_0x52d256,s[_0x299911(0x17b)]+0x1);}['_getScrollInfo'](_0x9fdc65,_0x4f1917){const _0x1b4a7b=_0x35c725;var _0x4b5274;let _0x3533fd={'x':0x0,'y':0x0};if(!_0x9fdc65||!_0x4f1917)return _0x3533fd;let _0x2b64dd=this['_renderManagerService'][_0x1b4a7b(0x31e)](_0x9fdc65);if(!_0x2b64dd||!_0x2b64dd[_0x1b4a7b(0x1bd)](c[_0x1b4a7b(0x2d5)])[_0x1b4a7b(0x383)](_0x4f1917))return _0x3533fd;let _0x77fa25=_0x2b64dd[_0x1b4a7b(0x1bd)](c[_0x1b4a7b(0x299)]),_0x589590=_0x77fa25==null?void 0x0:_0x77fa25[_0x1b4a7b(0x15f)]();if(!_0x589590)return _0x3533fd;let _0x2670bf=(_0x4b5274=this['_univerInstanceService'][_0x1b4a7b(0x16b)](_0x9fdc65))==null?void 0x0:_0x4b5274[_0x1b4a7b(0x254)](_0x4f1917);if(!_0x2670bf)return _0x3533fd;let _0x5c0c77=(0x0,c[_0x1b4a7b(0x2a0)])(_0x589590[_0x1b4a7b(0x105)],_0x589590[_0x1b4a7b(0x320)],_0x2b64dd[_0x1b4a7b(0x106)],_0x2670bf);return _0x5c0c77?{'x':_0x5c0c77[_0x1b4a7b(0x1a6)],'y':_0x5c0c77['viewportScrollY']}:_0x3533fd;}[_0x35c725(0x3c1)](_0x53fab2,_0x283de1){const _0x385a7b=_0x35c725;var _0x54801f,_0x5ab7ac;let _0x2b702f=(_0x54801f=this[_0x385a7b(0x1d5)][_0x385a7b(0x16b)](_0x53fab2))==null?void 0x0:_0x54801f[_0x385a7b(0x254)](_0x283de1);return(_0x5ab7ac=_0x2b702f==null?void 0x0:_0x2b702f[_0x385a7b(0x318)]())==null?0x1:_0x5ab7ac;}[_0x35c725(0x26f)](_0x465796,_0x2b465b,_0x4269c8,_0x1aac42,_0x299b61){const _0x4d1ad5=_0x35c725;this[_0x4d1ad5(0x19e)][_0x4d1ad5(0x178)](),this[_0x4d1ad5(0x315)][_0x4d1ad5(0x178)](),this[_0x4d1ad5(0x169)]['refreshAdjustControls']();let _0x29bbea=this[_0x4d1ad5(0x2e6)];this[_0x4d1ad5(0x1dd)][_0x4d1ad5(0x262)]();let _0xb1ac64=this[_0x4d1ad5(0x122)](this['_unitId'],this['_subUnitId']),_0x2eaebe=this['_getZoomRatio'](this[_0x4d1ad5(0x229)],this[_0x4d1ad5(0x275)]),_0x5b0c10={'x':_0x4269c8[_0x4d1ad5(0x2b1)]/_0x2eaebe+_0xb1ac64['x'],'y':_0x4269c8['offsetY']/_0x2eaebe+_0xb1ac64['y']},_0x20ec6f=_0x29bbea?_0x29bbea['worldPoint']:_0x5b0c10,_0x2ee84e=_0x1aac42?this['_activeShapeModel']['getEndConnectInfo']():this[_0x4d1ad5(0x12f)][_0x4d1ad5(0x211)](),_0x4ae569=this[_0x4d1ad5(0x12f)]['getShapeType']();_0x2ee84e?this[_0x4d1ad5(0x2db)](_0x2ee84e,_0x20ec6f,_0x1aac42,_0x29bbea,_0x299b61):this[_0x4d1ad5(0x12c)](_0x2b465b,_0x20ec6f,_0x1aac42,_0x29bbea,_0x299b61,_0x4ae569),this[_0x4d1ad5(0x314)]=!0x1,this[_0x4d1ad5(0x124)]=!0x1,this[_0x4d1ad5(0x2e6)]=null,_0x465796[_0x4d1ad5(0x19a)]();}[_0x35c725(0x12c)](_0x357997,_0x33ed16,_0x2542a4,_0x254e88,_0x4463d0,_0x40f392){const _0x55af1e=_0x35c725;let _0x165cd1=_0x40f392===t[_0x55af1e(0x317)][_0x55af1e(0x1f0)]||_0x40f392===t['ShapeTypeEnum'][_0x55af1e(0x2a8)],_0x11d517=_0x2542a4?_0x33ed16:_0x357997,_0x528315=_0x2542a4?_0x357997:_0x33ed16,_0x526142=this['_activeShapeModel'][_0x55af1e(0x2bb)](),_0x3e5d00=(0x0,t[_0x55af1e(0x161)])(this['_activeShapeModel'][_0x55af1e(0x3ab)]()),_0xae18b0=t[_0x55af1e(0x251)]['getBentTypeFromPoints'](_0x526142,_0x3e5d00),_0x26142d=_0x165cd1?t[_0x55af1e(0x251)]['computeStraightConnectorLayout'](_0x11d517,_0x528315):t['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x357997,_0x33ed16,_0x2542a4,_0xae18b0);_0x254e88?this[_0x55af1e(0x20b)](_0x26142d,_0x254e88,_0x2542a4,_0x4463d0):this['_executeResizeCommand'](_0x26142d,_0x4463d0);}['_handleConnectedEndpointPointerUp'](_0x1339a5,_0x9ef1ec,_0x55b927,_0xb4b23,_0x4cbdf6){const _0x131e2a=_0x35c725;let _0x402df1=this[_0x131e2a(0x12b)](_0x1339a5);if(!_0x402df1)return;let _0x4736b3=_0xb4b23?_0xb4b23[_0x131e2a(0x1be)]:this['_calculateFreeEndpointAngle'](_0x402df1['point'],_0x9ef1ec),_0x496789;if(_0xb4b23){let _0x267722=this[_0x131e2a(0x284)]['getDrawingByParam']({'unitId':_0xb4b23[_0x131e2a(0x301)],'subUnitId':_0xb4b23[_0x131e2a(0x3bd)],'drawingId':_0xb4b23[_0x131e2a(0x363)]});if(_0x267722!=null&&_0x267722[_0x131e2a(0x139)]){let {left:_0x382802=0x0,top:_0x5eacc8=0x0,width:_0x3de69f=0x0,height:_0x5316b=0x0,angle:_0x4a4068}=_0x267722[_0x131e2a(0x139)];_0x496789=(0x0,t[_0x131e2a(0x2c6)])({'left':_0x382802,'top':_0x5eacc8,'width':_0x3de69f,'height':_0x5316b},_0x4a4068||0x0);}else _0x496789={'left':_0x9ef1ec['x'],'top':_0x9ef1ec['y'],'width':0x0,'height':0x0};}else _0x496789={'left':_0x9ef1ec['x'],'top':_0x9ef1ec['y'],'width':0x0,'height':0x0};let _0x52ed55={'point':_0x9ef1ec,'angle':_0x4736b3,'bounds':_0x496789},_0x1ec5ec=_0x55b927?_0x52ed55:_0x402df1,_0x3b553d=_0x55b927?_0x402df1:_0x52ed55,_0x5aef8c=this['_activeShapeModel'][_0x131e2a(0x3ab)](),_0x5220f8=(0x0,t[_0x131e2a(0x369)])(_0x1ec5ec,_0x3b553d,_0x5aef8c);this[_0x131e2a(0x12f)][_0x131e2a(0x1b2)]();let _0x2de9ae=(0x0,t[_0x131e2a(0x3b2)])(_0x5220f8,_0x5aef8c);_0xb4b23?this['_executeConnectedRouteConnectionCommand'](_0x2de9ae,_0xb4b23,_0x1339a5,_0x55b927,_0x4cbdf6):this['_executeConnectedRouteResizeCommand'](_0x2de9ae,_0x1339a5,_0x55b927,_0x4cbdf6);}[_0x35c725(0x20b)](_0x3bc26f,_0x3e05e7,_0x45afa2,_0x59d3f4){const _0x198b02=_0x35c725;let _0x1fe769=this[_0x198b02(0x12f)][_0x198b02(0x3b1)]()[_0x198b02(0x2cb)],_0x4e8e02={..._0x1fe769},_0x3642bb={'shapeId':_0x3e05e7[_0x198b02(0x363)],'cxnIndex':_0x3e05e7['cxnIndex']};_0x45afa2?_0x4e8e02[_0x198b02(0x32b)]=_0x3642bb:_0x4e8e02['to']=_0x3642bb;let _0x4baec2=this[_0x198b02(0x12f)][_0x198b02(0x3ab)](),_0x870f3a=(0x0,t[_0x198b02(0x3b2)])(_0x3bc26f[_0x198b02(0x36f)],_0x4baec2),_0x108176={'unitId':this[_0x198b02(0x229)],'subUnitId':this[_0x198b02(0x275)],'connectorShapeId':this[_0x198b02(0x102)],'width':_0x3bc26f[_0x198b02(0x171)][_0x198b02(0x149)],'height':_0x3bc26f[_0x198b02(0x171)][_0x198b02(0x2b2)],'left':_0x3bc26f[_0x198b02(0x171)][_0x198b02(0x1ab)],'top':_0x3bc26f[_0x198b02(0x171)]['top'],'flipX':_0x3bc26f[_0x198b02(0x171)]['flipX']||!0x1,'flipY':_0x3bc26f[_0x198b02(0x171)][_0x198b02(0x1c6)]||!0x1,'newAdjustValues':_0x870f3a['adjustValues'],'oldAdjustValues':_0x59d3f4,'oldRelation':_0x1fe769,'newRelation':_0x4e8e02,'newLineType':_0x870f3a[_0x198b02(0x1e5)],'oldLineType':_0x4baec2};this[_0x198b02(0x155)]['executeCommand'](r[_0x198b02(0x1a4)]['id'],_0x108176);}[_0x35c725(0x2f1)](_0x59a6b9,_0x2990fd){const _0x69465=_0x35c725;let _0x5c42f7=this[_0x69465(0x12f)][_0x69465(0x3ab)](),_0x2df0d6=(0x0,t['computeConnectorRouteLayout'])(_0x59a6b9[_0x69465(0x36f)],_0x5c42f7),_0x37a072={'unitId':this[_0x69465(0x229)],'subUnitId':this[_0x69465(0x275)],'shapeId':this['_activeShapeId'],'width':_0x59a6b9[_0x69465(0x171)][_0x69465(0x149)],'height':_0x59a6b9[_0x69465(0x171)][_0x69465(0x2b2)],'left':_0x59a6b9[_0x69465(0x171)]['left'],'top':_0x59a6b9[_0x69465(0x171)]['top'],'flipX':_0x59a6b9['worldRect'][_0x69465(0x2fb)]||!0x1,'flipY':_0x59a6b9[_0x69465(0x171)][_0x69465(0x1c6)]||!0x1,'angle':_0x59a6b9[_0x69465(0x171)][_0x69465(0x1be)]||0x0,'newAdjustValues':_0x2df0d6[_0x69465(0x21d)],'oldAdjustValues':_0x2990fd,'newLineType':_0x2df0d6['lineType'],'oldLineType':_0x5c42f7};this[_0x69465(0x155)][_0x69465(0x372)](r[_0x69465(0x20a)]['id'],_0x37a072);}[_0x35c725(0x274)](_0x2b2b9b,_0x1e1d60,_0x177758,_0x464a1f,_0x459cc1){const _0xde314d=_0x35c725;let _0x3a51d3=this[_0xde314d(0x12f)][_0xde314d(0x3b1)]()[_0xde314d(0x2cb)],_0x34fac1={..._0x3a51d3},_0x588464={'shapeId':_0x1e1d60[_0xde314d(0x363)],'cxnIndex':_0x1e1d60[_0xde314d(0x1cf)]};_0x464a1f?(_0x34fac1[_0xde314d(0x32b)]=_0x588464,_0x34fac1['to']=_0x177758):(_0x34fac1['from']=_0x177758,_0x34fac1['to']=_0x588464);let _0x555cd0={'unitId':this[_0xde314d(0x229)],'subUnitId':this[_0xde314d(0x275)],'connectorShapeId':this['_activeShapeId'],'width':_0x2b2b9b[_0xde314d(0x171)][_0xde314d(0x149)],'height':_0x2b2b9b[_0xde314d(0x171)]['height'],'left':_0x2b2b9b[_0xde314d(0x171)]['left'],'top':_0x2b2b9b['worldRect'][_0xde314d(0x16e)],'flipX':_0x2b2b9b[_0xde314d(0x171)][_0xde314d(0x2fb)]||!0x1,'flipY':_0x2b2b9b[_0xde314d(0x171)]['flipY']||!0x1,'oldAdjustValues':_0x459cc1,'newAdjustValues':_0x2b2b9b[_0xde314d(0x21d)],'newLineType':_0x2b2b9b['lineType'],'rotation':_0x2b2b9b[_0xde314d(0x153)],'oldRelation':_0x3a51d3,'newRelation':_0x34fac1};this['_commandService'][_0xde314d(0x372)](r[_0xde314d(0x1a4)]['id'],_0x555cd0);}[_0x35c725(0x36a)](_0x4083c4,_0x315df5,_0x2a8ef6,_0x40e43b){const _0x1ae7f7=_0x35c725;let _0x44b786=this[_0x1ae7f7(0x12f)]['getShapeData']()[_0x1ae7f7(0x2cb)],_0x3abb84={};_0x2a8ef6?(_0x3abb84['to']=_0x315df5,_0x3abb84[_0x1ae7f7(0x32b)]=void 0x0):(_0x3abb84[_0x1ae7f7(0x32b)]=_0x315df5,_0x3abb84['to']=void 0x0);let _0x3e1043={'unitId':this[_0x1ae7f7(0x229)],'subUnitId':this[_0x1ae7f7(0x275)],'connectorShapeId':this[_0x1ae7f7(0x102)],'width':_0x4083c4[_0x1ae7f7(0x171)][_0x1ae7f7(0x149)],'height':_0x4083c4['worldRect']['height'],'left':_0x4083c4[_0x1ae7f7(0x171)]['left'],'top':_0x4083c4['worldRect']['top'],'flipX':_0x4083c4[_0x1ae7f7(0x171)]['flipX']||!0x1,'flipY':_0x4083c4[_0x1ae7f7(0x171)][_0x1ae7f7(0x1c6)]||!0x1,'oldAdjustValues':_0x40e43b,'newAdjustValues':_0x4083c4[_0x1ae7f7(0x21d)],'newLineType':_0x4083c4[_0x1ae7f7(0x1e5)],'rotation':_0x4083c4[_0x1ae7f7(0x153)],'oldRelation':_0x44b786,'newRelation':_0x3abb84};this[_0x1ae7f7(0x155)][_0x1ae7f7(0x372)](r['UpdateConnectorRelationCommand']['id'],_0x3e1043);}[_0x35c725(0x190)](_0x3a13d7,_0x4654e5,_0x5c6251){const _0xc07ecf=_0x35c725;this[_0xc07ecf(0xf8)]((0x0,i[_0xc07ecf(0x344)])(_0x3a13d7[_0xc07ecf(0xfe)][_0xc07ecf(0x2e1)]((_0x5ee469,_0x4d93e9)=>{const _0x4118dc=_0xc07ecf;let _0x1cee29=_0x3a13d7['getDrawingSearch']();if(this[_0x4118dc(0x12f)]=this[_0x4118dc(0x167)]['getShapeModel'](_0x1cee29[_0x4118dc(0x301)],_0x1cee29['subUnitId'],_0x1cee29[_0x4118dc(0x187)]),!this['_activeShapeModel'])return;let _0x1699a3={};this['_activeShapeModel']['getAdjustNames']()[_0x4118dc(0x236)](_0x43bcd1=>{const _0x24db32=_0x4118dc;let _0x82482b=this[_0x24db32(0x12f)][_0x24db32(0xe1)](_0x43bcd1);_0x82482b!==void 0x0&&(_0x1699a3[_0x43bcd1]=_0x82482b);});let _0x2f90ab=this['_getDrawingRect']();if(!_0x2f90ab)return;this[_0x4118dc(0x12e)]={..._0x2f90ab};let _0xfc8783=new t[(_0x4118dc(0x251))](this[_0x4118dc(0x12e)]),_0x4effae=(0x0,o[_0x4118dc(0x13b)])({'unitId':this[_0x4118dc(0x229)],'subUnitId':this[_0x4118dc(0x275)],'drawingId':this[_0x4118dc(0x102)]}),_0x104347=_0x4654e5[_0x4118dc(0x3c5)](_0x4effae);this['_isConnecting']=!0x0,_0x4654e5[_0x4118dc(0xe4)](),this[_0x4118dc(0x1dd)][_0x4118dc(0x396)](_0x4654e5,this['_unitId'],this[_0x4118dc(0x275)],this[_0x4118dc(0x102)]),this[_0x4118dc(0x2e6)]=null;let _0x22c623=this[_0x4118dc(0x12f)]['getConnectorLinePoints'](),_0x5c7000=_0x22c623[0x0],_0x1746dd=_0x22c623[_0x22c623['length']-0x1],_0x4b8599=_0x5c6251?_0xfc8783['localToWorld'](_0x1746dd):_0xfc8783[_0x4118dc(0x2e3)](_0x5c7000);this[_0x4118dc(0x19e)]=_0x4654e5[_0x4118dc(0x137)][_0x4118dc(0x2e1)]((_0x1b4fbe,_0x49d17e)=>{const _0x2870a8=_0x4118dc;if(!this[_0x2870a8(0x314)]||!this[_0x2870a8(0x12f)])return;this[_0x2870a8(0x124)]||(this[_0x2870a8(0x169)][_0x2870a8(0x326)](),this['_activeShapeModel'][_0x2870a8(0x37e)](),this[_0x2870a8(0x124)]=!0x0);let _0x2a91e3=this['_getScrollInfo'](this[_0x2870a8(0x229)],this['_subUnitId']),_0x3a0a9d=this[_0x2870a8(0x3c1)](this['_unitId'],this[_0x2870a8(0x275)]),_0x51bc37={'x':_0x1b4fbe['offsetX']/_0x3a0a9d+_0x2a91e3['x'],'y':_0x1b4fbe[_0x2870a8(0x18b)]/_0x3a0a9d+_0x2a91e3['y']},_0x4a4c5b=this[_0x2870a8(0x1dd)][_0x2870a8(0x280)](_0x51bc37);if(_0x4a4c5b){let {shapeId:_0xe7dfe5,unitId:_0xba29be,subUnitId:_0x3a8535}=_0x4a4c5b;if(_0xe7dfe5&&_0xba29be&&_0x3a8535){let _0xc10c88=(0x0,o[_0x2870a8(0x13b)])({'unitId':_0xba29be,'subUnitId':_0x3a8535,'drawingId':_0xe7dfe5});_0x4a4c5b['angle']=(_0x4654e5[_0x2870a8(0x3c5)](_0xc10c88)[_0x2870a8(0x1be)]||0x0)+_0x4a4c5b[_0x2870a8(0x1be)];}}this[_0x2870a8(0x2e6)]=_0x4a4c5b;let _0x4b1322=_0x5c6251?this[_0x2870a8(0x12f)][_0x2870a8(0x3a2)]():this[_0x2870a8(0x12f)]['getStartConnectInfo']();if(_0x4b1322){this['_handleConnectedEndpointMove'](_0x4b1322,_0x51bc37,_0x5c6251,_0x104347,_0x3a13d7);return;}this[_0x2870a8(0x2d2)](_0x51bc37,_0x4b8599,_0x5c6251,_0x104347,_0x3a13d7);}),this[_0x4118dc(0x315)]=_0x4654e5[_0x4118dc(0x342)][_0x4118dc(0x2e1)]((_0x5d77f8,_0x333862)=>{this['_handleConnectorPointerUp'](_0x4654e5,_0x4b8599,_0x5d77f8,_0x5c6251,_0x1699a3);}),_0x4d93e9['stopPropagation']();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x26c26f,_0x5911a3,_0x2d6789){const _0x5ab16f=_0x35c725;let _0x4e21db=this[_0x5ab16f(0x167)][_0x5ab16f(0x182)](_0x26c26f,_0x5911a3,_0x2d6789);if(!_0x4e21db||_0x4e21db[_0x5ab16f(0x33e)]===0x0)return;let _0x25cd1f=this[_0x5ab16f(0x180)][_0x5ab16f(0x31e)](_0x26c26f);if(!_0x25cd1f)return;let {scene:_0x5db39c}=_0x25cd1f;for(let _0x54940b of _0x4e21db){let _0x5bff3b=_0x54940b[_0x5ab16f(0x2a3)],_0x215d58=this[_0x5ab16f(0x167)][_0x5ab16f(0x3a1)](_0x26c26f,_0x5911a3,_0x5bff3b);if(!_0x215d58)continue;let _0x3e1a6d=_0x215d58[_0x5ab16f(0x211)](),_0x1373b9=_0x215d58[_0x5ab16f(0x3a2)](),_0x1bcc96=(_0x3e1a6d==null?void 0x0:_0x3e1a6d[_0x5ab16f(0x363)])===_0x2d6789,_0x2a6df3=(0x0,o['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x26c26f,'subUnitId':_0x5911a3,'drawingId':_0x5bff3b}),_0x8f7cb5=_0x5db39c[_0x5ab16f(0x3c5)](_0x2a6df3);if(!_0x8f7cb5)continue;let _0x29bae4=this[_0x5ab16f(0x284)]['getDrawingByParam']({'unitId':_0x26c26f,'subUnitId':_0x5911a3,'drawingId':_0x5bff3b});_0x29bae4!=null&&_0x29bae4['transform']&&(_0x3e1a6d&&_0x1373b9?this[_0x5ab16f(0x25d)](_0x26c26f,_0x5911a3,_0x5bff3b,_0x215d58,_0x3e1a6d,_0x1373b9,_0x8f7cb5):this['_moveConnectorWithShape'](_0x26c26f,_0x5911a3,_0x5bff3b,_0x215d58,_0x1bcc96?_0x3e1a6d:_0x1373b9,_0x1bcc96,_0x29bae4,_0x8f7cb5));}}[_0x35c725(0x25d)](_0x255c41,_0x5cf7ce,_0x34a3d2,_0xd7216b,_0x2f3c30,_0x24db8,_0x2d0dff){const _0x38f526=_0x35c725;let _0x1f4f53=this[_0x38f526(0x229)],_0x387fc0=this[_0x38f526(0x275)];this[_0x38f526(0x229)]=_0x255c41,this['_subUnitId']=_0x5cf7ce;let _0x2beb8e=this['_getConnectPointInfo'](_0x2f3c30),_0x1eb2f1=this[_0x38f526(0x12b)](_0x24db8);if(this[_0x38f526(0x229)]=_0x1f4f53,this[_0x38f526(0x275)]=_0x387fc0,!_0x2beb8e||!_0x1eb2f1)return;let _0x2e2d76=_0xd7216b[_0x38f526(0x3ab)](),_0x20ae90=(0x0,t['routeConnectorLineShape'])(_0x2beb8e,_0x1eb2f1,_0x2e2d76);_0x20ae90&&_0xd7216b['updateLinePoints'](_0x20ae90);let _0x133909=(0x0,t[_0x38f526(0x3b2)])(_0x20ae90,_0x2e2d76);_0x133909[_0x38f526(0x1e5)]!==_0x2e2d76&&_0xd7216b[_0x38f526(0x1bf)](_0x133909[_0x38f526(0x1e5)]),_0xd7216b[_0x38f526(0x37e)]();for(let [_0x23fcbd,_0x44ed12]of Object['entries'](_0x133909['adjustValues']))_0xd7216b[_0x38f526(0x29a)](_0x23fcbd,_0x44ed12);_0xd7216b[_0x38f526(0x27d)]({'width':_0x133909[_0x38f526(0x171)]['width'],'height':_0x133909[_0x38f526(0x171)]['height']}),_0x2d0dff['transformByState']({'flipX':_0x133909[_0x38f526(0x171)]['flipX'],'flipY':_0x133909['worldRect'][_0x38f526(0x1c6)],'left':_0x133909[_0x38f526(0x171)][_0x38f526(0x1ab)],'top':_0x133909[_0x38f526(0x171)][_0x38f526(0x16e)],'width':_0x133909['worldRect'][_0x38f526(0x149)],'height':_0x133909[_0x38f526(0x171)][_0x38f526(0x2b2)],'angle':_0x133909[_0x38f526(0x153)]}),_0xd7216b[_0x38f526(0x1b2)]();}['_moveConnectorWithShape'](_0x22df2c,_0x10da9c,_0x195843,_0x3a7f9b,_0x3a7293,_0x1e9dd7,_0x48a819,_0x311a53){const _0x4917bd=_0x35c725;let _0x20366d=this['_unitId'],_0x30dce7=this['_subUnitId'];this[_0x4917bd(0x229)]=_0x22df2c,this['_subUnitId']=_0x10da9c;let _0x459216=this[_0x4917bd(0x12b)](_0x3a7293);if(this[_0x4917bd(0x229)]=_0x20366d,this[_0x4917bd(0x275)]=_0x30dce7,!_0x459216)return;let {left:_0x348ff3=0x0,top:_0x1a26a1=0x0,width:_0xfb331b=0x0,height:_0x23cb21=0x0,flipX:_0x140f58=!0x1,flipY:_0x3ffd03=!0x1}=_0x48a819[_0x4917bd(0x139)],_0x300bcd=_0x3a7f9b[_0x4917bd(0x2bb)]();if(_0x300bcd[_0x4917bd(0x33e)]<0x2)return;let _0x211b6c=new t[(_0x4917bd(0x251))]({'left':_0x348ff3,'top':_0x1a26a1,'width':_0xfb331b,'height':_0x23cb21,'flipX':_0x140f58,'flipY':_0x3ffd03}),_0x3b17e6=_0x1e9dd7?_0x300bcd[_0x300bcd[_0x4917bd(0x33e)]-0x1]:_0x300bcd[0x0],_0x41bc08=_0x211b6c[_0x4917bd(0x2e3)](_0x3b17e6),_0x5bb702=t[_0x4917bd(0x251)]['computeConnectorResizeLayout'](_0x41bc08,_0x459216[_0x4917bd(0xf4)],!_0x1e9dd7);_0x311a53['transformByState']({'flipX':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x2fb)],'flipY':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x1c6)],'left':_0x5bb702[_0x4917bd(0x171)]['left'],'top':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x16e)],'width':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x149)],'height':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x2b2)],'angle':_0x5bb702[_0x4917bd(0x171)][_0x4917bd(0x1be)]}),_0x311a53[_0x4917bd(0x1ff)](!0x0);}[_0x35c725(0x3bb)](){const _0x1f6697=_0x35c725;this[_0x1f6697(0x1b1)]['length']!==0x0&&(this['_connectorObjects'][_0x1f6697(0x236)](_0x485b8d=>{_0x485b8d['dispose']();}),this[_0x1f6697(0x1b1)]=[]);}[_0x35c725(0x10e)](){const _0x95003c=_0x35c725;let _0x165e19=this[_0x95003c(0x1d5)]['getCurrentTypeOfUnit$'](i[_0x95003c(0x27a)][_0x95003c(0x354)]);this[_0x95003c(0xf8)](_0x165e19[_0x95003c(0x310)]((0x0,l[_0x95003c(0x114)])(_0x4eead0=>_0x4eead0?_0x4eead0['activeSheet$'][_0x95003c(0x310)]((0x0,l[_0x95003c(0x114)])(_0x26487e=>{const _0x44cadd=_0x95003c;if(!_0x26487e)return l['EMPTY'];let _0x1b95e3=_0x4eead0[_0x44cadd(0x2c0)](),_0x430abf=this[_0x44cadd(0x180)]['getRenderById'](_0x1b95e3),_0x41ebe8=_0x430abf==null?void 0x0:_0x430abf[_0x44cadd(0x106)];return _0x41ebe8?(0x0,l['of'])(_0x41ebe8):l[_0x44cadd(0x361)];})):l[_0x95003c(0x361)]))['subscribe'](_0x46ab7c=>{const _0x41770f=_0x95003c;let _0x22d888=_0x46ab7c[_0x41770f(0x371)]();this[_0x41770f(0xf8)](_0x46ab7c['onPointerMove$']['subscribeEvent'](_0x5a3aba=>{const _0x1432c2=_0x41770f;this[_0x1432c2(0x104)]&&this[_0x1432c2(0x102)]&&this[_0x1432c2(0x3bb)]();})),this[_0x41770f(0xf8)](_0x22d888['changeStart$'][_0x41770f(0x23b)](_0x4c9a0d=>{const _0x5afdec=_0x41770f;let {objects:_0x3fd93a}=_0x4c9a0d;this[_0x5afdec(0x3bb)](),_0x3fd93a!==null&&_0x3fd93a[_0x5afdec(0x1f2)]===0x1&&_0x3fd93a[_0x5afdec(0x316)]()[_0x5afdec(0x170)]()['value']instanceof O&&(this[_0x5afdec(0x104)]=!0x0);})),this['disposeWithMe'](_0x22d888[_0x41770f(0x35f)][_0x41770f(0x23b)](_0x5b1d46=>{const _0x54d78e=_0x41770f;this[_0x54d78e(0x104)]&&this[_0x54d78e(0x3bb)]();})),this[_0x41770f(0xf8)](_0x46ab7c[_0x41770f(0x342)]['subscribeEvent'](()=>{const _0x28d8b2=_0x41770f;this['_isDrawingShapePointDown']&&(this[_0x28d8b2(0x104)]=!0x1,this[_0x28d8b2(0x27b)]());})),this[_0x41770f(0xf8)](_0x22d888[_0x41770f(0x21b)][_0x41770f(0x23b)](()=>{const _0x27878e=_0x41770f;this[_0x27878e(0x229)]&&this[_0x27878e(0x275)]&&this['_activeShapeId']&&this[_0x27878e(0x284)]['getDrawingByParam']({'unitId':this[_0x27878e(0x229)],'subUnitId':this[_0x27878e(0x275)],'drawingId':this[_0x27878e(0x102)]})&&(this[_0x27878e(0x3bb)](),this[_0x27878e(0x27b)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x210b03=_0x35c725;this['disposeWithMe'](this['_drawingManagerService']['focus$'][_0x210b03(0x23b)](_0x3da48c=>{const _0x3ae743=_0x210b03;if(_0x3da48c[_0x3ae743(0x33e)]===0x1){let _0x301714=_0x3da48c[0x0];if(_0x301714[_0x3ae743(0x1d6)]===i['DrawingTypeEnum'][_0x3ae743(0x257)]){let _0xd290c0=this[_0x3ae743(0x167)][_0x3ae743(0x3a1)](_0x301714[_0x3ae743(0x301)],_0x301714['subUnitId'],_0x301714[_0x3ae743(0x187)]);if(_0xd290c0&&(0x0,t[_0x3ae743(0x261)])(_0xd290c0[_0x3ae743(0x3ab)]())){this['_activeShapeId']=_0x301714[_0x3ae743(0x187)],this['_unitId']=_0x301714[_0x3ae743(0x301)],this[_0x3ae743(0x275)]=_0x301714[_0x3ae743(0x3bd)],this[_0x3ae743(0x3bb)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x3ae743(0x229)]=void 0x0,this[_0x3ae743(0x275)]=void 0x0,this[_0x3ae743(0x3bb)]();})),this[_0x210b03(0xf8)](this[_0x210b03(0x284)]['update$']['subscribe'](_0x2e9f23=>{const _0x4ce49e=_0x210b03;if(_0x2e9f23[_0x4ce49e(0x33e)]===0x1){var _0x2284fb;let _0x60140c=_0x2e9f23[0x0],_0x4fc485=(_0x2284fb=this[_0x4ce49e(0x284)][_0x4ce49e(0x126)](_0x60140c))==null?void 0x0:_0x2284fb['drawingType'];_0x4fc485===i[_0x4ce49e(0x36d)]['DRAWING_SHAPE']&&_0x60140c[_0x4ce49e(0x187)]===this[_0x4ce49e(0x102)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x4ce49e(0x102)]&&_0x4fc485===i['DrawingTypeEnum'][_0x4ce49e(0x257)]&&this[_0x4ce49e(0x1c2)](_0x60140c[_0x4ce49e(0x301)],_0x60140c[_0x4ce49e(0x3bd)],_0x60140c[_0x4ce49e(0x187)]);}})),this[_0x210b03(0xf8)](this['_drawingManagerService'][_0x210b03(0x15e)][_0x210b03(0x23b)](_0x27abf5=>{const _0x2458a6=_0x210b03;for(let _0x1ffbab of _0x27abf5){let {drawingId:_0xe63c7e}=_0x1ffbab;if(this[_0x2458a6(0x102)]===_0xe63c7e){this[_0x2458a6(0x34f)]();return;}}}));}[_0x35c725(0x283)](_0x2a6bb9,_0x2ef734,_0x3ff763,_0x377083,_0x15b817){const _0xbd2b4a=_0x35c725;var _0x542301,_0x155b46;if(!this[_0xbd2b4a(0x12f)])return;let _0x4576de=this['_getConnectPointInfo'](_0x2a6bb9);if(!_0x4576de)return;let _0x433662=this[_0xbd2b4a(0x2e6)]?this['_currentConnectionTarget'][_0xbd2b4a(0x100)]:_0x2ef734,_0x3cc8cd=this[_0xbd2b4a(0x2e6)]?this[_0xbd2b4a(0x2e6)][_0xbd2b4a(0x1be)]:this[_0xbd2b4a(0x28c)](_0x4576de[_0xbd2b4a(0xf4)],_0x433662),_0x4387ad;if(this['_currentConnectionTarget']){let _0x175491=this[_0xbd2b4a(0x284)][_0xbd2b4a(0x126)]({'unitId':this[_0xbd2b4a(0x2e6)][_0xbd2b4a(0x301)],'subUnitId':this[_0xbd2b4a(0x2e6)][_0xbd2b4a(0x3bd)],'drawingId':this[_0xbd2b4a(0x2e6)][_0xbd2b4a(0x363)]});if(_0x175491!=null&&_0x175491[_0xbd2b4a(0x139)]){let {left:_0x5dcd3c=0x0,top:_0x5a235a=0x0,width:_0x54ffd1=0x0,height:_0x8d8e05=0x0,angle:_0x58978f}=_0x175491[_0xbd2b4a(0x139)];_0x4387ad=(0x0,t[_0xbd2b4a(0x2c6)])({'left':_0x5dcd3c,'top':_0x5a235a,'width':_0x54ffd1,'height':_0x8d8e05},_0x58978f||0x0);}else _0x4387ad={'left':_0x433662['x'],'top':_0x433662['y'],'width':0x0,'height':0x0};}else _0x4387ad={'left':_0x433662['x'],'top':_0x433662['y'],'width':0x0,'height':0x0};let _0x4354c7={'point':_0x433662,'angle':_0x3cc8cd,'bounds':_0x4387ad},_0xced35b=_0x3ff763?_0x4354c7:_0x4576de,_0x5db477=_0x3ff763?_0x4576de:_0x4354c7,_0x420048=this[_0xbd2b4a(0x12f)][_0xbd2b4a(0x3ab)](),_0x3dbba0=(0x0,t[_0xbd2b4a(0x369)])(_0xced35b,_0x5db477,_0x420048);_0x3dbba0&&this[_0xbd2b4a(0x12f)]['updateLinePoints'](_0x3dbba0);let _0x45fb2c=(0x0,t[_0xbd2b4a(0x3b2)])(_0x3dbba0,_0x420048);_0x45fb2c[_0xbd2b4a(0x1e5)]!==_0x420048&&this[_0xbd2b4a(0x12f)][_0xbd2b4a(0x1bf)](_0x45fb2c[_0xbd2b4a(0x1e5)]);for(let [_0x19e5e4,_0x4866ce]of Object[_0xbd2b4a(0x290)](_0x45fb2c[_0xbd2b4a(0x21d)]))this['_activeShapeModel'][_0xbd2b4a(0x29a)](_0x19e5e4,_0x4866ce);this[_0xbd2b4a(0x12f)][_0xbd2b4a(0x27d)]({'width':_0x45fb2c[_0xbd2b4a(0x171)][_0xbd2b4a(0x149)],'height':_0x45fb2c[_0xbd2b4a(0x171)]['height']}),_0x377083[_0xbd2b4a(0x13e)]({'flipX':_0x45fb2c['worldRect'][_0xbd2b4a(0x2fb)],'flipY':_0x45fb2c[_0xbd2b4a(0x171)][_0xbd2b4a(0x1c6)],'left':_0x45fb2c[_0xbd2b4a(0x171)][_0xbd2b4a(0x1ab)],'top':_0x45fb2c[_0xbd2b4a(0x171)]['top'],'width':_0x45fb2c[_0xbd2b4a(0x171)][_0xbd2b4a(0x149)],'height':_0x45fb2c[_0xbd2b4a(0x171)][_0xbd2b4a(0x2b2)],'angle':_0x45fb2c['rotation']}),_0x377083[_0xbd2b4a(0x1ff)](!0x0);let _0x26ecae=(_0x542301=(_0x155b46=this[_0xbd2b4a(0x2e6)])==null?void 0x0:_0x155b46['worldPoint'])==null?_0x2ef734:_0x542301;_0x15b817[_0xbd2b4a(0x13e)]({'left':_0x26ecae['x']-t[_0xbd2b4a(0x188)][_0xbd2b4a(0x128)],'top':_0x26ecae['y']-t[_0xbd2b4a(0x188)][_0xbd2b4a(0x128)]});}['_handleFreeEndpointMove'](_0x3c76ca,_0x5c1558,_0x2e1a04,_0x245c64,_0x3a4d48){const _0x162e24=_0x35c725;var _0x423eb7,_0x16032c,_0x5b3283,_0x31fcba;let _0x42708f=(_0x423eb7=(_0x16032c=this[_0x162e24(0x2e6)])==null?void 0x0:_0x16032c['worldPoint'])==null?_0x3c76ca:_0x423eb7,_0x172206=t[_0x162e24(0x251)][_0x162e24(0x28d)](_0x5c1558,_0x42708f,_0x2e1a04);_0x245c64[_0x162e24(0x13e)]({'flipX':_0x172206[_0x162e24(0x171)][_0x162e24(0x2fb)],'flipY':_0x172206[_0x162e24(0x171)][_0x162e24(0x1c6)],'left':_0x172206[_0x162e24(0x171)][_0x162e24(0x1ab)],'top':_0x172206['worldRect']['top'],'width':_0x172206['worldRect'][_0x162e24(0x149)],'height':_0x172206[_0x162e24(0x171)]['height'],'angle':_0x172206[_0x162e24(0x171)][_0x162e24(0x1be)]});let _0x5257e3=(_0x5b3283=(_0x31fcba=this[_0x162e24(0x2e6)])==null?void 0x0:_0x31fcba[_0x162e24(0x100)])==null?_0x3c76ca:_0x5b3283;_0x3a4d48[_0x162e24(0x13e)]({'left':_0x5257e3['x']-t['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x5257e3['y']-t[_0x162e24(0x188)][_0x162e24(0x128)]});}[_0x35c725(0x12b)](_0x1892cb){const _0x478789=_0x35c725;if(!this['_unitId']||!this[_0x478789(0x275)])return null;let {shapeId:_0x43cb53,cxnIndex:_0x812705}=_0x1892cb,_0x1691e8=this[_0x478789(0x167)][_0x478789(0x3a1)](this['_unitId'],this[_0x478789(0x275)],_0x43cb53);if(!_0x1691e8)return null;let _0x179a4c=this[_0x478789(0x284)]['getDrawingByParam']({'unitId':this[_0x478789(0x229)],'subUnitId':this['_subUnitId'],'drawingId':_0x43cb53});if(!(_0x179a4c!=null&&_0x179a4c[_0x478789(0x139)]))return null;let {left:_0x46546b=0x0,top:_0x290190=0x0,width:_0x5213d3=0x0,height:_0x378bea=0x0,flipX:_0x4f24c8=!0x1,flipY:_0x29ef86=!0x1,angle:_0x59e879}=_0x179a4c[_0x478789(0x139)];_0x1691e8[_0x478789(0x27d)]({'width':_0x5213d3,'height':_0x378bea});let _0x30e1bb=_0x1691e8[_0x478789(0x2f8)]()['find'](_0x2ab295=>_0x2ab295[_0x478789(0x231)]===_0x812705);if(!_0x30e1bb)return null;let _0x3f089a=_0x4f24c8?_0x5213d3-_0x30e1bb['x']:_0x30e1bb['x'],_0x979704=_0x29ef86?_0x378bea-_0x30e1bb['y']:_0x30e1bb['y'];if(_0x59e879!==0x0&&_0x59e879!=null){let _0x5a8025=_0x59e879*Math['PI']/0xb4,_0x1d5911=Math[_0x478789(0x32d)](_0x5a8025),_0x114c4d=Math[_0x478789(0x2dd)](_0x5a8025),_0x450ca7=_0x5213d3/0x2,_0x469244=_0x378bea/0x2,_0x241dd0=_0x3f089a-_0x450ca7,_0x4c5274=_0x979704-_0x469244;_0x3f089a=_0x450ca7+_0x241dd0*_0x1d5911-_0x4c5274*_0x114c4d,_0x979704=_0x469244+_0x241dd0*_0x114c4d+_0x4c5274*_0x1d5911;}_0x3f089a+=_0x46546b,_0x979704+=_0x290190;let _0x3d00d0=_0x30e1bb['ang']/0xea60;_0x4f24c8&&(_0x3d00d0=0xb4-_0x3d00d0),_0x29ef86&&(_0x3d00d0=-_0x3d00d0),_0x3d00d0+=_0x59e879||0x0,_0x3d00d0=(_0x3d00d0%0x168+0x168)%0x168;let _0x4e77fb=(0x0,t[_0x478789(0x2c6)])({'left':_0x46546b,'top':_0x290190,'width':_0x5213d3,'height':_0x378bea},_0x59e879||0x0);return{'point':{'x':_0x3f089a,'y':_0x979704},'angle':_0x3d00d0,'bounds':_0x4e77fb};}[_0x35c725(0x28c)](_0x1eebcc,_0x4a081a){const _0x54740d=_0x35c725;let _0x48ba0b=_0x4a081a['x']-_0x1eebcc['x'],_0x56cfbe=_0x4a081a['y']-_0x1eebcc['y'];return Math[_0x54740d(0xf5)](_0x48ba0b)>=Math[_0x54740d(0xf5)](_0x56cfbe)?_0x48ba0b>=0x0?0xb4:0x0:_0x56cfbe>=0x0?0x10e:0x5a;}[_0x35c725(0x34f)](){const _0x24d57f=_0x35c725;this['_activeShapeId']=void 0x0,this[_0x24d57f(0x229)]=void 0x0,this[_0x24d57f(0x275)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x35c725(0x12d)](){const _0x18eb01=_0x35c725;this[_0x18eb01(0x3bb)](),super[_0x18eb01(0x12d)]();}};ke=j([A(0x1,i[_0x35c725(0x20e)]),A(0x2,s[_0x35c725(0x339)]),A(0x3,o[_0x35c725(0x28f)]),A(0x4,i['IUniverInstanceService']),A(0x5,(0x0,i[_0x35c725(0x185)])(r[_0x35c725(0x31c)])),A(0x6,(0x0,i['Inject'])(N)),A(0x7,(0x0,i[_0x35c725(0x185)])(J))],ke);let X=class extends i[_0x35c725(0x22b)]{constructor(_0x113573,_0xb9fad,_0x210d76){const _0x5bbe15=_0x35c725;super(),this['_sheetPrintInterceptorService']=_0x113573,this[_0x5bbe15(0x284)]=_0xb9fad,this['_shapeRenderController']=_0x210d76,this[_0x5bbe15(0x3a8)]();}[_0x35c725(0x3a8)](){const _0x1ea570=_0x35c725;this[_0x1ea570(0xf8)](this[_0x1ea570(0x204)][_0x1ea570(0x392)][_0x1ea570(0x38a)](this[_0x1ea570(0x204)][_0x1ea570(0x392)]['getInterceptPoints']()[_0x1ea570(0x101)],{'handler':(_0x57af53,_0x532d22,_0x52c49b)=>{const _0x2faae6=_0x1ea570;var _0x2da317;let {unitId:_0x1ac023,subUnitId:_0x5c9e9f,scene:_0x433820,resourceCollector:_0x46c4f2}=_0x532d22,_0x283a2f=(_0x2da317=this[_0x2faae6(0x284)][_0x2faae6(0x31b)](_0x1ac023))==null?void 0x0:_0x2da317[_0x5c9e9f];return _0x283a2f==null||_0x283a2f[_0x2faae6(0x2eb)][_0x2faae6(0x236)](_0x8b43da=>{const _0x2a4357=_0x2faae6;let _0x24dcb9=_0x283a2f[_0x2a4357(0x245)][_0x8b43da];_0x24dcb9[_0x2a4357(0x1d6)]===i['DrawingTypeEnum']['DRAWING_SHAPE']&&!_0x24dcb9[_0x2a4357(0x375)]&&this[_0x2a4357(0x366)][_0x2a4357(0x3ad)](_0x24dcb9,_0x433820,{'resourceCollector':_0x46c4f2});}),_0x52c49b(_0x57af53);}}));}};X=j([A(0x0,(0x0,i[_0x35c725(0x185)])(c[_0x35c725(0x234)])),A(0x1,o['IDrawingManagerService']),A(0x2,(0x0,i['Inject'])(M))],X);let Z=class extends i['Disposable']{constructor(_0x362112,_0x48fbd9,_0xf6d1d3){const _0x3dd8d4=_0x35c725;super(),this[_0x3dd8d4(0x155)]=_0x362112,this[_0x3dd8d4(0x346)]=_0x48fbd9,this[_0x3dd8d4(0x2cc)]=_0xf6d1d3,this[_0x3dd8d4(0x207)]();}[_0x35c725(0x207)](){const _0x46565f=_0x35c725;this[_0x46565f(0xf8)](this['_commandService'][_0x46565f(0x223)](_0x3bfe77=>{const _0x43cded=_0x46565f;let _0x80fa1d,_0x47fb4b;if(_0x3bfe77['id']===r[_0x43cded(0x267)]['id']||_0x3bfe77['id']===r[_0x43cded(0xff)]['id']||_0x3bfe77['id']===r[_0x43cded(0x1a4)]['id']){let _0x228190=_0x3bfe77[_0x43cded(0x335)];_0x80fa1d=_0x228190[_0x43cded(0x301)],_0x47fb4b=_0x228190[_0x43cded(0x3bd)];}!_0x80fa1d||!_0x47fb4b||this[_0x43cded(0x2cc)][_0x43cded(0x28e)]({'workbookTypes':[a[_0x43cded(0x249)]],'worksheetTypes':[a[_0x43cded(0x2df)]]},_0x80fa1d,_0x47fb4b)||this[_0x43cded(0x2cc)]['blockExecuteWithoutPermission'](this[_0x43cded(0x346)]['t'](_0x43cded(0x117)));}));}};Z=j([A(0x0,(0x0,i[_0x35c725(0x185)])(i[_0x35c725(0x20e)])),A(0x1,(0x0,i[_0x35c725(0x185)])(i[_0x35c725(0x33d)])),A(0x2,(0x0,i['Inject'])(a[_0x35c725(0x17d)]))],Z);let Q=class extends i['Disposable']{constructor(_0x50eb65,_0x281930,_0x60ea1e,_0x213277,_0x563888,_0x2175ae,_0x612a6,_0x45b52c,_0x1ce543,_0x5823c8,_0x26e1d5){const _0x3315a0=_0x35c725;super(),this[_0x3315a0(0x1d5)]=_0x50eb65,this[_0x3315a0(0x13a)]=_0x281930,this['_menuManagerService']=_0x60ea1e,this['_sheetsShapeService']=_0x213277,this[_0x3315a0(0x346)]=_0x563888,this['_commandService']=_0x2175ae,this[_0x3315a0(0x284)]=_0x612a6,this[_0x3315a0(0x14b)]=_0x45b52c,this[_0x3315a0(0x1d3)]=_0x1ce543,this['_renderManagerService']=_0x5823c8,this[_0x3315a0(0x21e)]=_0x26e1d5,E(this,_0x3315a0(0x220),null),E(this,_0x3315a0(0x2a6),null),E(this,_0x3315a0(0x2f7),!0x1),E(this,_0x3315a0(0x23f),0x0),E(this,'_initializedShapePopupMenu',new Set()),E(this,_0x3315a0(0x157),[]),this['_initMenu'](),this[_0x3315a0(0xf8)](this['_univerInstanceService'][_0x3315a0(0x1e9)](i['UniverInstanceType'][_0x3315a0(0x354)])[_0x3315a0(0x23b)](_0x5bb111=>{const _0x47c394=_0x3315a0;if(!_0x5bb111){var _0x190c79;(_0x190c79=this['_sidebarDisposable'])==null||_0x190c79[_0x47c394(0x12d)]();return;}this[_0x47c394(0x2c8)](_0x5bb111);})),this[_0x3315a0(0x266)](),this['_registerShapeMenu'](),this[_0x3315a0(0xe5)](),this[_0x3315a0(0xf8)](this[_0x3315a0(0x21e)][_0x3315a0(0x39f)][_0x3315a0(0x23b)](_0xe4d17e=>{_0xe4d17e&&this['_clearPopups']();}));}['_initMenu'](){const _0x20db93=_0x35c725;this[_0x20db93(0xf0)][_0x20db93(0x1b5)](de);}[_0x35c725(0x1f3)](){const _0x4ac3ac=_0x35c725;this[_0x4ac3ac(0x14b)][_0x4ac3ac(0x39c)](i['DrawingTypeEnum'][_0x4ac3ac(0x257)],this[_0x4ac3ac(0x3a7)][_0x4ac3ac(0x127)](this)),this[_0x4ac3ac(0x14b)][_0x4ac3ac(0x327)](i[_0x4ac3ac(0x36d)][_0x4ac3ac(0x257)],0x6,0x4);}['initShapePopupMenu'](){const _0x58b9c4=_0x35c725;this[_0x58b9c4(0x1d5)][_0x58b9c4(0x199)](i[_0x58b9c4(0x27a)][_0x58b9c4(0x354)])['forEach'](_0x43a310=>this[_0x58b9c4(0x2c8)](_0x43a310));}[_0x35c725(0x3a7)](_0x4e7612,_0x1e6839,_0x5a9288,_0x39391e){const _0x569449=_0x35c725;return[{'label':_0x569449(0x22f),'index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'drawingId':_0x5a9288},'disable':_0x39391e===i[_0x569449(0x36d)][_0x569449(0x397)]},{'label':_0x569449(0x193),'index':0x1,'commandId':h[_0x569449(0x134)]['id'],'commandParams':{'unitId':_0x4e7612,'drawings':[{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'drawingId':_0x5a9288,'drawingType':_0x39391e}]},'disable':!0x1},{'label':_0x569449(0x112),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'drawingId':_0x5a9288},'disable':!0x1},{'label':'sheets-shape-ui.toggleFlipH','index':0x3,'commandId':r[_0x569449(0x297)]['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'shapeId':_0x5a9288,'flipH':!0x0},'disable':!0x1},{'label':_0x569449(0x218),'index':0x4,'commandId':r[_0x569449(0x297)]['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'shapeId':_0x5a9288,'flipV':!0x0},'disable':!0x1},{'label':_0x569449(0x3a5),'index':0x4,'commandId':r[_0x569449(0x1b0)]['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'shapeId':_0x5a9288,'rotate':0x5a},'disable':!0x1},{'label':'sheets-shape-ui.rotateLeft90','index':0x4,'commandId':r[_0x569449(0x1b0)]['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'shapeId':_0x5a9288,'rotate':-0x5a},'disable':!0x1},{'label':_0x569449(0x201),'index':0x4,'commandId':r[_0x569449(0x367)]['id'],'commandParams':{'unitId':_0x4e7612,'subUnitId':_0x1e6839,'shapeId':_0x5a9288},'disable':!0x1}];}[_0x35c725(0x394)](_0x5c0ddf,_0x1ea1c3,_0x594e76){const _0x2a6033=_0x35c725;let _0x5f2fa1=this['_sheetsShapeService'][_0x2a6033(0xfa)](_0x5c0ddf,_0x1ea1c3,_0x594e76),_0x1e6b02=this[_0x2a6033(0x167)][_0x2a6033(0x1d4)](_0x5c0ddf,_0x1ea1c3,_0x594e76);return _0x5f2fa1!==void 0x0&&_0x1e6b02!==void 0x0?{'shapeData':_0x1e6b02,'shapeId':_0x594e76,'shapeType':_0x5f2fa1,'unitId':_0x5c0ddf,'subUnitId':_0x1ea1c3,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x24e774){const _0x2075e0=_0x35c725;if(!_0x24e774)return;let _0x1fe6ca=_0x24e774[_0x2075e0(0x2c0)]();this[_0x2075e0(0x180)][_0x2075e0(0x1b9)](_0x1fe6ca)&&!this[_0x2075e0(0x1fa)][_0x2075e0(0x1b9)](_0x1fe6ca)&&(this[_0x2075e0(0x349)](_0x1fe6ca),this[_0x2075e0(0x1fa)][_0x2075e0(0x2f0)](_0x1fe6ca));}[_0x35c725(0x26d)](){const _0xc2092b=_0x35c725;this['_disposePopups']['forEach'](_0x3721f6=>_0x3721f6['dispose']()),this[_0xc2092b(0x157)]['length']=0x0;}[_0x35c725(0x349)](_0x43fef4){const _0x344d03=_0x35c725;var _0xba0178;let _0x1d0985=(_0xba0178=this[_0x344d03(0x180)][_0x344d03(0x31e)](_0x43fef4))==null?void 0x0:_0xba0178[_0x344d03(0x106)],_0x319839=_0x1d0985==null?void 0x0:_0x1d0985['getTransformerByCreate']();!_0x1d0985||!_0x319839||(this[_0x344d03(0xf8)](_0x319839[_0x344d03(0x291)][_0x344d03(0x23b)](()=>{const _0x100957=_0x344d03;let _0x1f2153=_0x319839[_0x100957(0x2c1)]();if(this['_clearPopups'](),this['_isOpenedShapeEditPanel']||_0x1f2153['size']>0x1)return;let _0x468c1e=_0x1f2153[_0x100957(0x316)]()[_0x100957(0x170)]()[_0x100957(0x233)];if(!_0x468c1e)return;let _0x1e45ac=this[_0x100957(0x284)][_0x100957(0x28a)](_0x468c1e['oKey']);if(!_0x1e45ac||_0x1e45ac[_0x100957(0x1d6)]!==i[_0x100957(0x36d)]['DRAWING_SHAPE'])return;let {unitId:_0x525eea,subUnitId:_0x248c97,drawingId:_0xda3208,drawingType:_0x3d4b98}=_0x1e45ac,_0x540682=this['_getShapeInfo'](_0x525eea,_0x248c97,_0xda3208);if(!_0x540682)return;this[_0x100957(0x1d3)][_0x100957(0x36e)](i['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x1af3a9=this[_0x100957(0x14b)]['attachPopupToObject'](_0x468c1e,{'componentKey':R,'direction':_0x100957(0x21c),'offset':[0x0,n[_0x100957(0x25b)]],'extraProps':{'unitId':_0x525eea,'subUnitId':_0x248c97,'drawingId':_0xda3208,'drawingType':_0x3d4b98,'shapeType':_0x540682[_0x100957(0xea)],'shapeData':_0x540682[_0x100957(0x309)]}});this[_0x100957(0x157)][_0x100957(0x1a8)](this[_0x100957(0xf8)](_0x1af3a9)),this[_0x100957(0x284)][_0x100957(0x198)]()['find'](_0x230ccb=>_0x230ccb[_0x100957(0x301)]===_0x525eea&&_0x230ccb[_0x100957(0x3bd)]===_0x248c97&&_0x230ccb[_0x100957(0x187)]===_0xda3208)||this[_0x100957(0x284)][_0x100957(0x278)]([{'unitId':_0x525eea,'subUnitId':_0x248c97,'drawingId':_0xda3208}]);})),this[_0x344d03(0xf8)](_0x319839[_0x344d03(0x25a)][_0x344d03(0x23b)](()=>{const _0x3bf9cd=_0x344d03;this[_0x3bf9cd(0x26d)](),this[_0x3bf9cd(0x1d3)][_0x3bf9cd(0x36e)](i[_0x3bf9cd(0x2c3)],!0x1),this[_0x3bf9cd(0x284)][_0x3bf9cd(0x278)](null);})),this[_0x344d03(0xf8)](_0x319839[_0x344d03(0x35f)][_0x344d03(0x23b)](()=>{const _0x5787e9=_0x344d03;this[_0x5787e9(0x26d)]();})),this[_0x344d03(0xf8)](_0x319839[_0x344d03(0x34d)]['subscribe'](()=>{const _0x3d09b8=_0x344d03;this[_0x3d09b8(0x26d)]();})));}[_0x35c725(0x266)](){const _0x1b7bd6=_0x35c725;this[_0x1b7bd6(0xf8)](this[_0x1b7bd6(0x155)]['onCommandExecuted'](_0xd079da=>{const _0x119c90=_0x1b7bd6;if(_0xd079da['id']===V['id']){let {unitId:_0x2f549d,subUnitId:_0x2cd7cc,drawingId:_0x133340}=_0xd079da[_0x119c90(0x335)];this[_0x119c90(0x23f)]+=0x1,this['_activeShapeInfo']=this[_0x119c90(0x394)](_0x2f549d,_0x2cd7cc,_0x133340),this[_0x119c90(0x26d)](),this['_openShapeEditPanel']();}if(_0xd079da['id']===B['id']&&(this[_0x119c90(0x2a6)]=null,this[_0x119c90(0x1d7)]()),_0xd079da['id']===r[_0x119c90(0x1ac)]['id']){let {unitId:_0x1accdd,subUnitId:_0x1fb059,shapeId:_0x8ee4a0}=_0xd079da[_0x119c90(0x335)];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0x119c90(0x363)]===_0x8ee4a0){let _0x404ee5=this[_0x119c90(0x394)](_0x1accdd,_0x1fb059,_0x8ee4a0);_0x404ee5&&(this[_0x119c90(0x23f)]+=0x1,_0x404ee5['version']=this[_0x119c90(0x23f)],this['_activeShapeInfo']=_0x404ee5,this['_isOpenedShapeEditPanel']&&this[_0x119c90(0x196)]());}}})),this[_0x1b7bd6(0xf8)](this[_0x1b7bd6(0x284)][_0x1b7bd6(0x268)][_0x1b7bd6(0x23b)](_0x3f8e41=>{const _0x4dec20=_0x1b7bd6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x3f8e41['length']===0x0){this[_0x4dec20(0x2a6)]=null,this[_0x4dec20(0x1d7)]();return;}if(_0x3f8e41[_0x4dec20(0x33e)]===0x1&&_0x3f8e41[0x0][_0x4dec20(0x1d6)]===i[_0x4dec20(0x36d)][_0x4dec20(0x257)]&&(this[_0x4dec20(0x23f)]+=0x1,this[_0x4dec20(0x2a6)]=this[_0x4dec20(0x394)](_0x3f8e41[0x0]['unitId'],_0x3f8e41[0x0]['subUnitId'],_0x3f8e41[0x0][_0x4dec20(0x187)]),this[_0x4dec20(0x2a6)])){this[_0x4dec20(0x196)]();return;}let _0x2d7238=_0x3f8e41[_0x4dec20(0x140)](_0x25b775=>_0x25b775[_0x4dec20(0x1d6)]===i[_0x4dec20(0x36d)][_0x4dec20(0x257)]);if(_0x3f8e41[_0x4dec20(0x33e)]>0x1&&_0x2d7238['length']===_0x3f8e41[_0x4dec20(0x33e)]){if(this[_0x4dec20(0x23f)]+=0x1,this[_0x4dec20(0x2a6)]=this[_0x4dec20(0x394)](_0x3f8e41[0x0]['unitId'],_0x3f8e41[0x0][_0x4dec20(0x3bd)],_0x3f8e41[0x0]['drawingId']),this[_0x4dec20(0x2a6)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x4dec20(0x23f)]+=0x1,this[_0x4dec20(0x2a6)]=this[_0x4dec20(0x394)](_0x3f8e41[0x0][_0x4dec20(0x301)],_0x3f8e41[0x0][_0x4dec20(0x3bd)],_0x3f8e41[0x0][_0x4dec20(0x187)]),this[_0x4dec20(0x2a6)]){this[_0x4dec20(0x2a6)][_0x4dec20(0x2ab)]=!0x0,this[_0x4dec20(0x196)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x25b0b7=_0x35c725;this[_0x25b0b7(0x2a6)]&&(this[_0x25b0b7(0x220)]=this[_0x25b0b7(0x13a)]['open']({'id':I,'header':{'title':this['_localeService']['t'](_0x25b0b7(0x34c))},'width':0x184,'children':{'label':I,...this[_0x25b0b7(0x2a6)]},'onClose':()=>{const _0x587cac=_0x25b0b7;this[_0x587cac(0x284)][_0x587cac(0x278)](null),this[_0x587cac(0x1d3)]['setContextValue'](i[_0x587cac(0x2c3)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x25b0b7(0x2f7)]=!0x0);}['_closeShapeEditPanel'](){const _0x211d23=_0x35c725;this[_0x211d23(0x2f7)]=!0x1,this[_0x211d23(0x13a)][_0x211d23(0x269)](I),this[_0x211d23(0x220)]=null,this[_0x211d23(0x1d3)]['setContextValue'](i[_0x211d23(0x2c3)],!0x1),this[_0x211d23(0x284)]['focusDrawing'](null);}};Q=j([A(0x0,i[_0x35c725(0x337)]),A(0x1,(0x0,i[_0x35c725(0x185)])(e['ISidebarService'])),A(0x2,e[_0x35c725(0x215)]),A(0x3,(0x0,i[_0x35c725(0x185)])(r['SheetsShapeService'])),A(0x4,(0x0,i[_0x35c725(0x185)])(i[_0x35c725(0x33d)])),A(0x5,i[_0x35c725(0x20e)]),A(0x6,o[_0x35c725(0x28f)]),A(0x7,(0x0,i[_0x35c725(0x185)])(c[_0x35c725(0x216)])),A(0x8,i[_0x35c725(0x2e5)]),A(0x9,s[_0x35c725(0x339)]),A(0xa,(0x0,i[_0x35c725(0x185)])(U))],Q);let $=class extends i[_0x35c725(0x2fd)]{constructor(_0x3a6a66=me,_0x8fe2,_0x465ac9,_0x37c4a4,_0x4ef426){const _0x515e7c=_0x35c725;super(),this['_config']=_0x3a6a66,this['_injector']=_0x8fe2,this[_0x515e7c(0x155)]=_0x465ac9,this['_configService']=_0x37c4a4,this[_0x515e7c(0x180)]=_0x4ef426;let {..._0x9f836a}=(0x0,i[_0x515e7c(0x281)])({},me,this['_config']);this['_configService']['setConfig'](_0x515e7c(0x38d),_0x9f836a),this[_0x515e7c(0x2f4)]();}[_0x35c725(0x136)](){const _0x2c92f4=_0x35c725;(0x0,i['touchDependencies'])(this[_0x2c92f4(0x2aa)],[[Q],[q],[M],[X]]);}[_0x35c725(0x294)](){const _0x3658f7=_0x35c725;this['_injector'][_0x3658f7(0x2d7)](Q)['initShapePopupMenu']();}[_0x35c725(0x22c)](){const _0x259e65=_0x35c725;[[J],[N],[Y]][_0x259e65(0x236)](_0x24c141=>this['_injector']['add'](_0x24c141)),(0x0,i[_0x259e65(0x2b4)])(this[_0x259e65(0x2aa)],[[Y],[N]]),this[_0x259e65(0x180)][_0x259e65(0x27f)](i[_0x259e65(0x27a)][_0x259e65(0x354)],[J]),this[_0x259e65(0x180)][_0x259e65(0x27f)](i[_0x259e65(0x27a)][_0x259e65(0x354)],[G]),this[_0x259e65(0x180)][_0x259e65(0x27f)](i['UniverInstanceType'][_0x259e65(0x354)],[ke]),this[_0x259e65(0x180)][_0x259e65(0x27f)](i[_0x259e65(0x27a)][_0x259e65(0x354)],[we]),this[_0x259e65(0x180)]['registerRenderModule'](i[_0x259e65(0x27a)]['UNIVER_DOC'],[Te]);}[_0x35c725(0x2f3)](){const _0x1c79cc=_0x35c725;this[_0x1c79cc(0x2aa)][_0x1c79cc(0x2f0)]([W]),this[_0x1c79cc(0x2aa)][_0x1c79cc(0x2d7)](W);let _0x43bf78=this[_0x1c79cc(0x2aa)];[[Q],[q],[M],[X],[H],[U],[K],[z],[Z]][_0x1c79cc(0x236)](_0x6c3cd6=>_0x43bf78[_0x1c79cc(0x2f0)](_0x6c3cd6)),(0x0,i['touchDependencies'])(this[_0x1c79cc(0x2aa)],[[Q],[q],[M],[H],[U],[K],[z],[Z]]);}[_0x35c725(0x2f4)](){const _0x5494a8=_0x35c725;[F,b,B,V,ne,P][_0x5494a8(0x236)](_0x40da9e=>this[_0x5494a8(0xf8)](this[_0x5494a8(0x155)][_0x5494a8(0x306)](_0x40da9e)));}};E($,_0x35c725(0x1dc),i[_0x35c725(0x27a)][_0x35c725(0x354)]),E($,'pluginName',_0x35c725(0x25e)),E($,'packageName',fe),E($,'version',pe),$=j([(0x0,i[_0x35c725(0x1ef)])(f['UniverLicensePlugin'],n['UniverShapeEditorUIPlugin'],p[_0x35c725(0x27c)],r[_0x35c725(0x23d)]),A(0x1,(0x0,i[_0x35c725(0x185)])(i['Injector'])),A(0x2,i[_0x35c725(0x20e)]),A(0x3,i[_0x35c725(0x39e)]),A(0x4,s['IRenderManagerService'])],$),exports[_0x35c725(0x210)]=de,Object[_0x35c725(0x189)](exports,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|