@univerjs-pro/sheets-shape-ui 0.22.0 → 0.22.1-insiders.20260516-8900c44
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/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/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-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/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-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/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-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/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-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x101898=_0x284a;(function(_0x352b73,_0x135a79){const _0x402414=_0x284a,_0x3299a8=_0x352b73();while(!![]){try{const _0x4be53a=parseInt(_0x402414(0x33b))/0x1*(parseInt(_0x402414(0x420))/0x2)+parseInt(_0x402414(0x5e2))/0x3+parseInt(_0x402414(0x63a))/0x4*(parseInt(_0x402414(0x128))/0x5)+-parseInt(_0x402414(0x1c2))/0x6*(parseInt(_0x402414(0x26e))/0x7)+parseInt(_0x402414(0x4cb))/0x8+-parseInt(_0x402414(0x38d))/0x9+-parseInt(_0x402414(0x4a2))/0xa*(parseInt(_0x402414(0x328))/0xb);if(_0x4be53a===_0x135a79)break;else _0x3299a8['push'](_0x3299a8['shift']());}catch(_0x21606c){_0x3299a8['push'](_0x3299a8['shift']());}}}(_0x458e,0x3fbf5),Object[_0x101898(0x66c)](exports,Symbol[_0x101898(0x48e)],{'value':'Module'}));var __create=Object[_0x101898(0x675)],__defProp=Object[_0x101898(0x66c)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0x101898(0x397)],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object[_0x101898(0x551)][_0x101898(0x506)],__copyProps=(_0x544bb0,_0x5ffde0,_0x546b2f,_0x3795d5)=>{const _0x43547d=_0x101898;if(_0x5ffde0&&typeof _0x5ffde0==='object'||typeof _0x5ffde0==='function')for(var _0x5cd772=__getOwnPropNames(_0x5ffde0),_0x23c605=0x0,_0x593234=_0x5cd772[_0x43547d(0x1ec)],_0x7d1d53;_0x23c605<_0x593234;_0x23c605++){_0x7d1d53=_0x5cd772[_0x23c605],!__hasOwnProp[_0x43547d(0x469)](_0x544bb0,_0x7d1d53)&&_0x7d1d53!==_0x546b2f&&__defProp(_0x544bb0,_0x7d1d53,{'get':(_0x2ba192=>_0x5ffde0[_0x2ba192])[_0x43547d(0x2d2)](null,_0x7d1d53),'enumerable':!(_0x3795d5=__getOwnPropDesc(_0x5ffde0,_0x7d1d53))||_0x3795d5[_0x43547d(0x165)]});}return _0x544bb0;},__toESM=(_0x4f358f,_0x1a7b68,_0x5bcdc9)=>(_0x5bcdc9=_0x4f358f!=null?__create(__getProtoOf(_0x4f358f)):{},__copyProps(_0x1a7b68||!_0x4f358f||!_0x4f358f[_0x101898(0x38a)]?__defProp(_0x5bcdc9,_0x101898(0x41d),{'value':_0x4f358f,'enumerable':!![]}):_0x5bcdc9,_0x4f358f));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x4d16d0){'@babel/helpers - typeof';const _0x2c0b68=_0x101898;return _typeof='function'==typeof Symbol&&_0x2c0b68(0x169)==typeof Symbol[_0x2c0b68(0x412)]?function(_0x417a79){return typeof _0x417a79;}:function(_0x229ddb){const _0x48544f=_0x2c0b68;return _0x229ddb&&'function'==typeof Symbol&&_0x229ddb[_0x48544f(0x4a0)]===Symbol&&_0x229ddb!==Symbol[_0x48544f(0x551)]?_0x48544f(0x169):typeof _0x229ddb;},_typeof(_0x4d16d0);}function toPrimitive(_0x632da7,_0x53aa74){const _0x3df2e3=_0x101898;if('object'!=_typeof(_0x632da7)||!_0x632da7)return _0x632da7;var _0xf71df0=_0x632da7[Symbol['toPrimitive']];if(void 0x0!==_0xf71df0){var _0x4a2144=_0xf71df0[_0x3df2e3(0x469)](_0x632da7,_0x53aa74||_0x3df2e3(0x41d));if(_0x3df2e3(0x135)!=_typeof(_0x4a2144))return _0x4a2144;throw new TypeError(_0x3df2e3(0x1ea));}return('string'===_0x53aa74?String:Number)(_0x632da7);}function toPropertyKey(_0x3ddcea){const _0x3b074b=_0x101898;var _0x5d5cc3=toPrimitive(_0x3ddcea,_0x3b074b(0x51a));return _0x3b074b(0x169)==_typeof(_0x5d5cc3)?_0x5d5cc3:_0x5d5cc3+'';}function _defineProperty(_0x54de36,_0x3c3cba,_0x36a614){const _0x2a4865=_0x101898;return(_0x3c3cba=toPropertyKey(_0x3c3cba))in _0x54de36?Object[_0x2a4865(0x66c)](_0x54de36,_0x3c3cba,{'value':_0x36a614,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54de36[_0x3c3cba]=_0x36a614,_0x54de36;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x18f2c6){const _0x464232=_0x101898;super(..._0x18f2c6),_defineProperty(this,'_editingParams$',new rxjs['BehaviorSubject'](null)),_defineProperty(this,_0x464232(0x39d),this['_editingParams$'][_0x464232(0x56f)]()),_defineProperty(this,_0x464232(0x2f0),new rxjs[(_0x464232(0x586))](![])),_defineProperty(this,'onSavingEditorData$',this[_0x464232(0x2f0)][_0x464232(0x56f)]());}[_0x101898(0x3af)](){const _0x555ccf=_0x101898;this[_0x555ccf(0x518)][_0x555ccf(0x119)](null),this[_0x555ccf(0x518)][_0x555ccf(0x1ad)](),this[_0x555ccf(0x2f0)][_0x555ccf(0x119)](![]),this['_onSavingEditorData$'][_0x555ccf(0x1ad)](),super['dispose']();}[_0x101898(0x51b)](_0xf41e7f){const _0x11fd4f=_0x101898;this[_0x11fd4f(0x518)][_0x11fd4f(0x119)](_0xf41e7f);if(_0xf41e7f===null||_0xf41e7f===void 0x0)this['_onSavingEditorData$'][_0x11fd4f(0x119)](![]);}[_0x101898(0x298)](_0x3a1d26){const _0x3bb93e=_0x101898;this['_onSavingEditorData$'][_0x3bb93e(0x119)](_0x3a1d26);}[_0x101898(0x28d)](){const _0x18a50a=_0x101898;return this[_0x18a50a(0x518)]['getValue']();}};function getShapeDataDiff(_0x134d8d,_0x1e6091){const _0x328459=_0x101898,_0x4cff85={};for(const _0x192d73 of Object['keys'](_0x1e6091)){const _0xd2b8ad=_0x1e6091[_0x192d73],_0x2fe2c5=_0x134d8d[_0x192d73];if(_0xd2b8ad===void 0x0)continue;if(_0x2fe2c5===void 0x0){_0x4cff85[_0x192d73]=void 0x0;continue;}if(typeof _0xd2b8ad===_0x328459(0x135)&&_0xd2b8ad!==null&&!Array[_0x328459(0x3f5)](_0xd2b8ad)&&typeof _0x2fe2c5===_0x328459(0x135)&&_0x2fe2c5!==null&&!Array[_0x328459(0x3f5)](_0x2fe2c5))_0x4cff85[_0x192d73]=getShapeDataDiff(_0x2fe2c5,_0xd2b8ad);else _0x4cff85[_0x192d73]=_0x2fe2c5;}return _0x4cff85;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType'][_0x101898(0x259)],'id':'sheet.command.update-shape-data','handler':(_0x5a97bc,_0x20cc40)=>{const _0x36b40d=_0x101898,_0x241614=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_pro_sheets_shape[_0x36b40d(0x232)]),{unitId:_0x2fe765,subUnitId:_0x476574,shapeType:_0xff2088,shapeId:_0x1768bc,shapeData:_0x41bd7a,oldShapeJSON:_0x596d11}=_0x20cc40;if(!_0x241614['getShapeModel'](_0x2fe765,_0x476574,_0x1768bc))return![];const _0x34f017=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_core[_0x36b40d(0x55c)]),_0x1b3e87=_0x5a97bc[_0x36b40d(0x49b)](_univerjs_core[_0x36b40d(0x354)]),{oldShapeType:_0x56b92a,oldShapeData:_0x1f3db6={}}=_0x596d11,_0x3daa4a=getShapeDataDiff(_0x1f3db6,_0x41bd7a||{}),_0x399234={'id':_univerjs_pro_sheets_shape[_0x36b40d(0x620)]['id'],'params':{'unitId':_0x2fe765,'subUnitId':_0x476574,'shapeId':_0x1768bc,'shapeType':_0xff2088,'shapeData':_0x41bd7a}},_0x2de33a={'id':_univerjs_pro_sheets_shape[_0x36b40d(0x620)]['id'],'params':{'unitId':_0x2fe765,'subUnitId':_0x476574,'shapeId':_0x1768bc,'shapeType':_0x56b92a,'shapeData':_0x3daa4a}};if(_0x34f017[_0x36b40d(0x32e)](_0x399234['id'],_0x399234[_0x36b40d(0x35d)]))return _0x1b3e87[_0x36b40d(0x215)]({'unitID':_0x2fe765,'undoMutations':[_0x2de33a],'redoMutations':[_0x399234]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x175),'handler':async(_0x580cbc,_0x4e82a2)=>{const _0x54a33e=_0x101898;var _0xde837e;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x580cbc[_0x54a33e(0x49b)](_univerjs_core['IUniverInstanceService'])))return![];const _0x17f586=_0x580cbc[_0x54a33e(0x49b)](_univerjs_sheets_drawing[_0x54a33e(0x614)])['getFocusDrawings']()[_0x54a33e(0x1f5)](_0x42954e=>_0x42954e[_0x54a33e(0x324)]===_univerjs_core[_0x54a33e(0x229)]['DRAWING_SHAPE']);if(_0x17f586['length']!==0x1)return![];const _0x148cd5=_0x580cbc[_0x54a33e(0x49b)](ShapeTextEditingService)[_0x54a33e(0x28d)](),_0x321d8d=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x3aa)])||_0x17f586[0x0][_0x54a33e(0x3aa)],_0x568932=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x343)])||_0x17f586[0x0]['subUnitId'],_0x49df23=(_0x148cd5===null||_0x148cd5===void 0x0?void 0x0:_0x148cd5[_0x54a33e(0x49a)])||_0x17f586[0x0][_0x54a33e(0x16c)],_0x1d6e57=_0x580cbc['get'](_univerjs_pro_sheets_shape[_0x54a33e(0x232)])[_0x54a33e(0x148)](_0x321d8d,_0x568932,_0x49df23);if(!_0x1d6e57)return![];const _0xad5b7c=_0x1d6e57[_0x54a33e(0x592)]();if(!_0xad5b7c||!('dataModel'in _0xad5b7c))return![];const _0xf29465=_0x580cbc[_0x54a33e(0x49b)](_univerjs_core[_0x54a33e(0x55c)]),{value:_0x4d47ba}=_0x4e82a2,_0x9ea500=_0x1d6e57[_0x54a33e(0x255)](),_0x19911a=_0x1d6e57['getShapeData'](),_0x30a769={..._0xad5b7c['dataModel'],'ha':_0x4d47ba};return await _0xf29465[_0x54a33e(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x321d8d,'subUnitId':_0x568932,'shapeId':_0x49df23,'shapeType':_0x9ea500,'shapeData':{'shapeText':{'isHorizontal':(_0xde837e=_0xad5b7c[_0x54a33e(0x3ca)])!==null&&_0xde837e!==void 0x0?_0xde837e:!![],'dataModel':_0x30a769}},'oldShapeJSON':{'oldShapeType':_0x9ea500,'oldShapeData':_0x19911a}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x1a6),'handler':async(_0x17155a,_0x6e166)=>{const _0x91bf11=_0x101898;var _0x11d485;if(!_0x6e166)return![];const {value:_0x462aaa}=_0x6e166,_0x2ef4d2=_0x17155a['get'](_univerjs_core['ICommandService']),_0x102461=_0x17155a[_0x91bf11(0x49b)](ShapeTextEditingService),_0x18138a=_0x17155a[_0x91bf11(0x49b)](_univerjs_pro_sheets_shape[_0x91bf11(0x232)]),_0x33a0b4=_0x17155a[_0x91bf11(0x49b)](_univerjs_engine_render['IRenderManagerService']),_0x31dbcc=_0x102461[_0x91bf11(0x28d)]();if(!_0x31dbcc)return![];const {unitId:_0x1ff36c,subUnitId:_0x356c3d,shapeId:_0xda7acd}=_0x31dbcc,_0x1ec0b8=_0x18138a[_0x91bf11(0x148)](_0x1ff36c,_0x356c3d,_0xda7acd);if(!_0x1ec0b8)return![];const _0x4f0ffd=_0x1ec0b8[_0x91bf11(0x592)]();if(!_0x4f0ffd||!('dataModel'in _0x4f0ffd))return![];const _0x5db4b6=_0x4f0ffd[_0x91bf11(0x2c7)];if(!_0x5db4b6)return![];const _0x42b4f2={..._0x5db4b6,'fs':_0x462aaa},_0x195e68=await _0x2ef4d2[_0x91bf11(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x1ff36c,'subUnitId':_0x356c3d,'shapeId':_0xda7acd,'shapeData':{'shapeText':{'isHorizontal':(_0x11d485=_0x4f0ffd[_0x91bf11(0x3ca)])!==null&&_0x11d485!==void 0x0?_0x11d485:!![],'dataModel':_0x42b4f2}}});if(_0x195e68){const _0x3cab00=_0x33a0b4['getRenderById'](_0x1ff36c);if(_0x3cab00===null||_0x3cab00===void 0x0?void 0x0:_0x3cab00[_0x91bf11(0x2dc)]){const _0xdf0ac0=(0x0,_univerjs_drawing[_0x91bf11(0x38f)])({'unitId':_0x1ff36c,'subUnitId':_0x356c3d,'drawingId':_0xda7acd}),_0x94240e=_0x3cab00[_0x91bf11(0x2dc)]['getObjectIncludeInGroup'](_0xdf0ac0);if(_0x94240e)_0x94240e[_0x91bf11(0x408)](!![]);}}return _0x195e68;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0xfff571=>{const _0x1a6f45=_0x101898;var _0x5b5a6e;const _0xf2d685=_0xfff571['get'](ShapeTextEditingService),_0x5b7700=_0xfff571[_0x1a6f45(0x49b)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1ba4a8=_0xfff571[_0x1a6f45(0x49b)](_univerjs_core[_0x1a6f45(0x55c)]),_0x30f19f=_0xf2d685['getEditing']();if(!_0x30f19f)return![];const {unitId:_0x2b3a35,subUnitId:_0x37c3d5,shapeId:_0x379d3a}=_0x30f19f,_0x1dd894=_0x5b7700['getShapeModel'](_0x2b3a35,_0x37c3d5,_0x379d3a);if(!_0x1dd894)return![];const _0x2efcb2=_0x1dd894[_0x1a6f45(0x592)]();if(!_0x2efcb2||!(_0x1a6f45(0x2c7)in _0x2efcb2))return![];const _0x35d44f=_0x2efcb2[_0x1a6f45(0x2c7)],_0x338e63=(_0x5b5a6e=_0x35d44f===null||_0x35d44f===void 0x0?void 0x0:_0x35d44f['fs'])!==null&&_0x5b5a6e!==void 0x0?_0x5b5a6e:0xe,_0x3341af=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x4d0ebc=_0x338e63;const _0x2cb1c2=_0x3341af[_0x1a6f45(0x47a)](_0x338e63);if(_0x2cb1c2!==-0x1&&_0x2cb1c2<_0x3341af[_0x1a6f45(0x1ec)]-0x1)_0x4d0ebc=_0x3341af[_0x2cb1c2+0x1];else{if(_0x2cb1c2===-0x1)_0x4d0ebc=Math[_0x1a6f45(0x1f7)](_0x338e63)+0x1;}return _0x1ba4a8[_0x1a6f45(0x60c)](SetShapeTextFontSizeCommand['id'],{'value':_0x4d0ebc});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x259)],'id':_0x101898(0x21b),'handler':async _0x207be6=>{const _0x3fe23f=_0x101898;var _0x29d0c5;const _0x314a6c=_0x207be6[_0x3fe23f(0x49b)](ShapeTextEditingService),_0x1db91b=_0x207be6['get'](_univerjs_pro_sheets_shape[_0x3fe23f(0x232)]),_0x30f902=_0x207be6[_0x3fe23f(0x49b)](_univerjs_core['ICommandService']),_0x48c289=_0x314a6c[_0x3fe23f(0x28d)]();if(!_0x48c289)return![];const {unitId:_0x7a9432,subUnitId:_0x461add,shapeId:_0x37c287}=_0x48c289,_0x388a58=_0x1db91b[_0x3fe23f(0x148)](_0x7a9432,_0x461add,_0x37c287);if(!_0x388a58)return![];const _0x650ba1=_0x388a58[_0x3fe23f(0x592)]();if(!_0x650ba1||!(_0x3fe23f(0x2c7)in _0x650ba1))return![];const _0x210fa9=_0x650ba1['dataModel'],_0x3efcb1=(_0x29d0c5=_0x210fa9===null||_0x210fa9===void 0x0?void 0x0:_0x210fa9['fs'])!==null&&_0x29d0c5!==void 0x0?_0x29d0c5:0xe,_0xf76da9=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x2f0146=_0x3efcb1;const _0x24a639=_0xf76da9['indexOf'](_0x3efcb1);if(_0x24a639!==-0x1&&_0x24a639>0x0)_0x2f0146=_0xf76da9[_0x24a639-0x1];else{if(_0x24a639===-0x1)_0x2f0146=Math[_0x3fe23f(0x1f7)](_0x3efcb1)-0x1;}if(_0x2f0146<0x1)_0x2f0146=0x1;return _0x30f902[_0x3fe23f(0x60c)](SetShapeTextFontSizeCommand['id'],{'value':_0x2f0146});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x101898(0x5dd),'handler':async(_0x1952a9,_0x252b6c)=>{const _0x474c21=_0x101898;var _0x402df0;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1952a9['get'](_univerjs_core[_0x474c21(0x653)])))return![];const _0x1c13d9=_0x1952a9['get'](_univerjs_sheets_drawing['ISheetDrawingService'])[_0x474c21(0x4f6)]()['filter'](_0x2dd568=>_0x2dd568[_0x474c21(0x324)]===_univerjs_core[_0x474c21(0x229)]['DRAWING_SHAPE']);if(_0x1c13d9[_0x474c21(0x1ec)]!==0x1)return![];const _0x1aed65=_0x1952a9[_0x474c21(0x49b)](ShapeTextEditingService)[_0x474c21(0x28d)](),_0x1f9533=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x3aa)])||_0x1c13d9[0x0]['unitId'],_0x3cb9fd=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x343)])||_0x1c13d9[0x0][_0x474c21(0x343)],_0x3bf216=(_0x1aed65===null||_0x1aed65===void 0x0?void 0x0:_0x1aed65[_0x474c21(0x49a)])||_0x1c13d9[0x0][_0x474c21(0x16c)],_0x251c86=_0x1952a9[_0x474c21(0x49b)](_univerjs_pro_sheets_shape[_0x474c21(0x232)])[_0x474c21(0x148)](_0x1f9533,_0x3cb9fd,_0x3bf216);if(!_0x251c86)return![];const _0x17f8c0=_0x251c86[_0x474c21(0x592)]();if(!_0x17f8c0||!('dataModel'in _0x17f8c0))return![];const _0x392dc9=_0x1952a9[_0x474c21(0x49b)](_univerjs_core[_0x474c21(0x55c)]),{value:_0x2dfc3d}=_0x252b6c,_0x2bcc3c=_0x251c86[_0x474c21(0x255)](),_0x3f0540=_0x251c86[_0x474c21(0x365)](),_0x211275={..._0x17f8c0['dataModel'],'va':_0x2dfc3d};return await _0x392dc9[_0x474c21(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x1f9533,'subUnitId':_0x3cb9fd,'shapeId':_0x3bf216,'shapeType':_0x2bcc3c,'shapeData':{'shapeText':{'isHorizontal':(_0x402df0=_0x17f8c0['isHorizontal'])!==null&&_0x402df0!==void 0x0?_0x402df0:!![],'dataModel':_0x211275}},'oldShapeJSON':{'oldShapeType':_0x2bcc3c,'oldShapeData':_0x3f0540}});}},ShapeDocAlignCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x101898(0x2e3),'handler':(_0x40ab3a,_0x575f88)=>{const _0x3ed6ea=_0x101898;if(!_0x575f88)return![];const {value:_0x61d419}=_0x575f88;return _0x40ab3a['get'](_univerjs_core[_0x3ed6ea(0x55c)])['syncExecuteCommand'](_univerjs_docs_ui['AlignOperationCommand']['id'],{'alignType':_0x61d419});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'id':_0x101898(0x350),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'id':_0x101898(0x394),'handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x101898(0x4ec),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x101898(0x640)])(_0x101898(0x3b2)),ShapeTextEditorContainer$1=_0x101898(0x582);function updateShapeData(_0x825bc8,_0x1d6b7b,_0x5409c3,_0x265c19,_0x317294,_0x3bdf07){const _0x1d3f15={'unitId':_0x1d6b7b,'subUnitId':_0x5409c3,'shapeId':_0x265c19,'shapeData':_0x3bdf07,'oldShapeJSON':_0x317294};return _0x825bc8['executeCommand'](UpdateShapeDataCommand['id'],_0x1d3f15);}function updateLineShapeData(_0x4768c8,_0x3c9e30,_0x36ed65,_0x24c863,_0x344354,_0x31ccab){const _0x2adea5=_0x101898,_0x1b04a0={'unitId':_0x3c9e30,'subUnitId':_0x36ed65,'shapeId':_0x24c863,'shapeData':_0x31ccab,'oldShapeJSON':_0x344354};return _0x4768c8[_0x2adea5(0x60c)](UpdateShapeDataCommand['id'],_0x1b04a0);}function prepareShapeTextDocumentData(_0x53e04a,_0x20a244){const _0x43e3eb=_0x101898;var _0x1582cd;const {isHorizontal:_0x27cf90,textRect:_0x46317a,verticalAlign:_0x1b7a49}=_0x20a244,_0x127e49=_0x27cf90?_0x46317a[_0x43e3eb(0x604)]:_0x46317a[_0x43e3eb(0x57c)],_0x2ba4af=_univerjs_core[_0x43e3eb(0x174)]['deepClone'](_0x53e04a),_0x4abbdc=(_0x1582cd=_0x2ba4af['documentStyle'])!==null&&_0x1582cd!==void 0x0?_0x1582cd:{},_0x448a38={..._0x4abbdc[_0x43e3eb(0x40c)],'centerAngle':_0x27cf90?0x0:_univerjs_engine_render[_0x43e3eb(0x1a2)],'vertexAngle':_0x27cf90?0x0:_univerjs_engine_render['VERTICAL_ROTATE_ANGLE'],'wrapStrategy':_univerjs_core[_0x43e3eb(0x1d2)]['WRAP']};if(_0x1b7a49!==void 0x0)_0x448a38[_0x43e3eb(0x562)]=_0x1b7a49;if(_0x20a244['horizontalAlign']!==void 0x0){var _0xf95bcd;_0x448a38[_0x43e3eb(0x410)]=_0x20a244[_0x43e3eb(0x410)];const _0x31ba5f=(_0xf95bcd=_0x2ba4af[_0x43e3eb(0x667)])===null||_0xf95bcd===void 0x0?void 0x0:_0xf95bcd['paragraphs'];if(_0x31ba5f)for(const _0x86421 of _0x31ba5f){if(!_0x86421['paragraphStyle'])_0x86421[_0x43e3eb(0x3b6)]={};_0x86421[_0x43e3eb(0x3b6)][_0x43e3eb(0x410)]=_0x20a244[_0x43e3eb(0x410)];}}return _0x2ba4af[_0x43e3eb(0x358)]={..._0x4abbdc,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x127e49,'height':Number[_0x43e3eb(0x33c)]},'renderConfig':_0x448a38},_0x2ba4af;}function stripShapeTextDocumentLayout(_0x584c6e){const _0x3008b9=_0x101898;var _0x4ebc8e;const _0x4803a8=_univerjs_core['Tools'][_0x3008b9(0x1b9)](_0x584c6e),_0x3110b9=(_0x4ebc8e=_0x4803a8[_0x3008b9(0x358)])!==null&&_0x4ebc8e!==void 0x0?_0x4ebc8e:{},_0x6d884d={..._0x3110b9[_0x3008b9(0x40c)]};return delete _0x6d884d[_0x3008b9(0x5ce)],delete _0x6d884d[_0x3008b9(0x1a3)],delete _0x6d884d[_0x3008b9(0x562)],delete _0x6d884d['wrapStrategy'],_0x4803a8[_0x3008b9(0x358)]={..._0x3110b9,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x3008b9(0x33c)],'height':Number[_0x3008b9(0x33c)]},'renderConfig':Object[_0x3008b9(0x5ac)](_0x6d884d)[_0x3008b9(0x1ec)]>0x0?_0x6d884d:void 0x0},_0x4803a8;}var DrawingShape=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x2916db,_0x174db9){const _0x3a6623=_0x101898;super(_0x2916db,_0x174db9),_defineProperty(this,'_props',void 0x0),_defineProperty(this,_0x3a6623(0x3e4),!![]),_defineProperty(this,_0x3a6623(0x4d4),_univerjs_core['DrawingTypeEnum'][_0x3a6623(0x535)]),_defineProperty(this,'isDrawingObject',!![]),this[_0x3a6623(0x488)]={..._0x174db9},this[_0x3a6623(0x1fa)]();}[_0x101898(0x1fa)](){const _0x114843=_0x101898;this[_0x114843(0x4e7)][_0x114843(0x3a5)](_0x4e2416=>{const _0x495ab7=_0x114843;this[_0x495ab7(0x2c0)](_0x4e2416);});}[_0x101898(0x5b9)](_0x5d2dc9){const _0x1eb460=_0x101898;this[_0x1eb460(0x488)][_0x1eb460(0x550)]=_0x5d2dc9;}['setEditing'](_0x422efb){const _0xb58e60=_0x101898;this[_0xb58e60(0x488)]['isEditing']=_0x422efb,this['makeDirty'](!![]);}get[_0x101898(0x3aa)](){const _0x193e41=_0x101898;return this[_0x193e41(0x488)][_0x193e41(0x3aa)];}get[_0x101898(0x343)](){const _0x2a03ac=_0x101898;return this[_0x2a03ac(0x488)][_0x2a03ac(0x343)];}[_0x101898(0x2c0)](_0x20bf9d){const _0x597b85=_0x101898;if(this[_0x597b85(0x488)][_0x597b85(0x3ed)]==null||!this[_0x597b85(0x3e4)])return;const {width:_0x53d277,height:_0x11267d}=this,{width:_0x80ffdc=0x0,height:_0x1242bc=0x0}=_0x20bf9d['preValue'],{left:_0x16cc81=0x0,top:_0x401516=0x0,right:_0x4a1f76=0x0,bottom:_0x4cd863=0x0}=this[_0x597b85(0x488)][_0x597b85(0x3ed)];let _0x206134=_0x16cc81,_0x404d2b=_0x401516,_0x22fe4f=_0x4a1f76,_0x1b4a2c=_0x4cd863,_0x239fe2=![];if(_0x80ffdc!==0x0&&_0x80ffdc!==_0x53d277){const _0x24424b=_0x16cc81/_0x80ffdc,_0x1e712b=_0x4a1f76/_0x80ffdc;_0x206134=_0x53d277*_0x24424b,_0x22fe4f=_0x53d277*_0x1e712b,_0x239fe2=!![];}if(_0x1242bc!==0x0&&_0x1242bc!==_0x11267d){const _0xdc2e1d=_0x401516/_0x1242bc,_0x46dc8d=_0x4cd863/_0x1242bc;_0x404d2b=_0x11267d*_0xdc2e1d,_0x1b4a2c=_0x11267d*_0x46dc8d,_0x239fe2=!![];}if(_0x239fe2)this[_0x597b85(0x4e2)]({'left':_0x206134,'top':_0x404d2b,'right':_0x22fe4f,'bottom':_0x1b4a2c});}[_0x101898(0x4e2)](_0x1c267f){const _0x14d22f=_0x101898;this[_0x14d22f(0x488)][_0x14d22f(0x3ed)]=_0x1c267f,this[_0x14d22f(0x408)](!![]);}[_0x101898(0x13f)](_0x45c428){const _0x549c6a=_0x101898;this['_props'][_0x549c6a(0x39b)]=_0x45c428,this[_0x549c6a(0x408)](!![]);}set[_0x101898(0x519)](_0xf7cac4){const _0x3af23a=_0x101898;this[_0x3af23a(0x206)]=_0xf7cac4;}get[_0x101898(0x519)](){const _0x2061c7=_0x101898;if(!this[_0x2061c7(0x206)])this[_0x2061c7(0x527)]();const _0x578d3a=this[_0x2061c7(0x206)][_0x2061c7(0x59e)]();return this['transformForAngle'](_0x578d3a);}get[_0x101898(0x591)](){const _0x564283=_0x101898;return this[_0x564283(0x488)][_0x564283(0x591)];}get[_0x101898(0x49a)](){const _0x4ae4e2=_0x101898;return this[_0x4ae4e2(0x488)]['shapeId'];}get['classType'](){const _0x2d3da7=_0x101898;return _univerjs_engine_render[_0x2d3da7(0x2cd)][_0x2d3da7(0x1ae)];}[_0x101898(0x18c)](_0x3f2a02,_0x47e8a6,_0x112b64,_0x95e4ba){const _0x75a2e3=_0x101898,_0x476b55=this['_props'][_0x75a2e3(0x591)];if(!_0x476b55||!_0x47e8a6)return;const _0x251133=_0x112b64!==null&&_0x112b64!==void 0x0?_0x112b64:this['width'],_0xcc50b4=_0x95e4ba!==null&&_0x95e4ba!==void 0x0?_0x95e4ba:this[_0x75a2e3(0x57c)],_0x2bef60={'shapeType':_0x476b55['getShapeType'](),'width':_0x251133,'height':_0xcc50b4},_0x5c14f4={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum'][_0x75a2e3(0x361)],'oKey':this['oKey'],'image':this[_0x75a2e3(0x488)]['image'],'angle':this[_0x75a2e3(0x2f5)]};_0x476b55['updateContext'](_0x2bef60),_0x3f2a02[_0x75a2e3(0x29b)]();const _0x1fb77c={'top':0x0,'left':0x0,'width':_0x251133,'height':_0xcc50b4};_0x476b55[_0x75a2e3(0x458)](_0x3f2a02,_0x1fb77c,_0x5c14f4),_0x3f2a02[_0x75a2e3(0x2ba)]();const _0x78c246=_0x476b55[_0x75a2e3(0x592)](),_0x188a17=_0x476b55[_0x75a2e3(0x5da)](_0x1fb77c),_0x5aaf16=_0x476b55[_0x75a2e3(0x282)]();if(_0x78c246&&_0x188a17&&!_0x5aaf16){_0x3f2a02[_0x75a2e3(0x29b)]();if(this[_0x75a2e3(0x12f)]()['flipX'])_0x3f2a02[_0x75a2e3(0x3b3)](-0x1,0x1);const _0x177ef3=_0x251133/0x2,_0x1a390d=_0xcc50b4/0x2;_0x3f2a02[_0x75a2e3(0x4da)](-_0x177ef3,-_0x1a390d),_0x3f2a02[_0x75a2e3(0x1cf)](),this['_drawShapeText'](_0x3f2a02,_0x78c246,_0x188a17),_0x3f2a02['restore']();}}[_0x101898(0x23f)](_0x4e9867){}['_drawShapeText'](_0x2def4a,_0xc771d7,_0x2a828b){const _0xc5bd84=_0x101898;if(this[_0xc5bd84(0x488)][_0xc5bd84(0x4ef)])return;if('isRichText'in _0xc771d7&&_0xc771d7['isRichText']===![])this[_0xc5bd84(0x4e6)](_0x2def4a,_0xc771d7,_0x2a828b);else this[_0xc5bd84(0x30f)](_0x2def4a,_0xc771d7,_0x2a828b);}[_0x101898(0x4e6)](_0x1e21ba,_0x47c87e,_0x2e28cc){}[_0x101898(0x30f)](_0x2b8775,_0x32d510,_0x2988de){const _0x55ceda=_0x101898;var _0x41b408,_0x54d4cb;const _0x140e5c=this[_0x55ceda(0x488)]['localeService'];if(!_0x32d510[_0x55ceda(0x2c7)]||!_0x140e5c){if(!_0x140e5c)console[_0x55ceda(0x5be)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}const _0x228e64=_0x32d510[_0x55ceda(0x2c7)],_0x279634=_0x228e64[_0x55ceda(0x214)],_0x334914=(_0x41b408=_0x228e64['va'])!==null&&_0x41b408!==void 0x0?_0x41b408:_univerjs_core['VerticalAlign'][_0x55ceda(0x1a5)],_0x541299=(_0x54d4cb=_0x228e64['ha'])!==null&&_0x54d4cb!==void 0x0?_0x54d4cb:_univerjs_core[_0x55ceda(0x5c9)][_0x55ceda(0x183)];if(!_0x279634)return;const _0x31b3a4=_0x32d510[_0x55ceda(0x3ca)],_0x187a50=prepareShapeTextDocumentData(_0x279634,{'isHorizontal':_0x31b3a4!==![],'textRect':_0x2988de,'verticalAlign':_0x334914,'horizontalAlign':_0x541299}),_0x1739c7=new _univerjs_core[(_0x55ceda(0x28c))](_0x187a50),_0xa08310=new _univerjs_engine_render[(_0x55ceda(0x284))](_0x1739c7),_0x3f42bf=_univerjs_engine_render[_0x55ceda(0x3c4)][_0x55ceda(0x675)](_0xa08310,_0x140e5c);console[_0x55ceda(0x5be)](_0x187a50,_0x1739c7,_0x3f42bf),_0x3f42bf['calculate']();const _0xb7537=new _univerjs_engine_render[(_0x55ceda(0x3a2))](_0x55ceda(0x45c)+this['oKey'],_0x3f42bf,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xb7537[_0x55ceda(0x65a)](_0x2988de[_0x55ceda(0x604)],_0x2988de[_0x55ceda(0x57c)]),_0x2b8775[_0x55ceda(0x29b)](),_0x2b8775[_0x55ceda(0x4ea)](_0x2988de[_0x55ceda(0x2ff)],_0x2988de[_0x55ceda(0x46c)]),_0x2b8775[_0x55ceda(0x1cf)](),_0x2b8775['rect'](0x0,0x0,_0x2988de[_0x55ceda(0x604)],_0x2988de['height']),_0x2b8775[_0x55ceda(0x569)](),_0xb7537[_0x55ceda(0x62e)](_0x2b8775),_0x2b8775['restore'](),_0xb7537['dispose'](),_0x3f42bf[_0x55ceda(0x3af)](),_0xa08310[_0x55ceda(0x3af)](),_0x1739c7[_0x55ceda(0x3af)]();}[_0x101898(0x458)](_0x2dd411,_0x57066f,_0x593289=![]){const _0x1a7d38=_0x101898;if(!this[_0x1a7d38(0x510)])return this[_0x1a7d38(0x408)](![]),this;let {width:_0xcf53f2,height:_0x50b950,left:_0x26336f,top:_0x80f5a2}=this;const _0x2f7883=this[_0x1a7d38(0x61e)]();_0xcf53f2=_0x2f7883[_0x1a7d38(0x604)],_0x50b950=_0x2f7883[_0x1a7d38(0x57c)],_0x26336f=_0x2f7883[_0x1a7d38(0x2ff)],_0x80f5a2=_0x2f7883['top'];if(this[_0x1a7d38(0x31c)](_0x57066f)){const {top:_0x5108ca,left:_0x3ba8e4,bottom:_0x26b67d,right:_0xeb64e4}=_0x57066f['viewBound'];if(_0xcf53f2+this[_0x1a7d38(0x192)]+_0x26336f<_0x3ba8e4||_0xeb64e4<_0x26336f||_0x50b950+this['strokeWidth']+_0x80f5a2<_0x5108ca||_0x26b67d<_0x80f5a2)return this;}const _0x55d554=_0x26336f+_0xcf53f2/0x2,_0x1204e9=_0x80f5a2+_0x50b950/0x2;let _0x3095bd=this[_0x1a7d38(0x519)][_0x1a7d38(0x2e2)]();if(this[_0x1a7d38(0x488)][_0x1a7d38(0x4ef)]){const _0x2d332b=this[_0x1a7d38(0x12f)](),_0x151eae=new _univerjs_engine_render[(_0x1a7d38(0x2d6))]();_0x151eae[_0x1a7d38(0x21a)]({..._0x2d332b}),_0x3095bd=_0x151eae[_0x1a7d38(0x2e2)]();}_0x2dd411[_0x1a7d38(0x29b)]();if(this['_props'][_0x1a7d38(0x591)][_0x1a7d38(0x418)]===!![]){}else _0x2dd411['transform'](_0x3095bd[0x0],_0x3095bd[0x1],_0x3095bd[0x2],_0x3095bd[0x3],_0x55d554,_0x1204e9);return this[_0x1a7d38(0x18c)](_0x2dd411,_0x57066f,_0xcf53f2,_0x50b950),_0x2dd411[_0x1a7d38(0x2ba)](),this['makeDirty'](![]),this;}['getInverseCoord'](_0x1c079e){const _0x572baf=_0x101898,{left:_0x5c6d65,top:_0x1917e4,width:_0x280479,height:_0x2bf83c}=this['getRealBound'](),_0x56c3b3=this[_0x572baf(0x519)][_0x572baf(0x2e2)](),_0x4fe8dc=_0x5c6d65+_0x280479/0x2,_0x198463=_0x1917e4+_0x2bf83c/0x2,_0x844253=new _univerjs_engine_render['Transform']([_0x56c3b3[0x0],_0x56c3b3[0x1],_0x56c3b3[0x2],_0x56c3b3[0x3],_0x4fe8dc,_0x198463]),_0x5d8d27=this[_0x572baf(0x31f)]();return(this[_0x572baf(0x1d9)]&&(_0x5d8d27===null||_0x5d8d27===void 0x0?void 0x0:_0x5d8d27[_0x572baf(0x2e1)])===_univerjs_engine_render[_0x572baf(0x2cd)]['GROUP']?_0x5d8d27['ancestorTransform'][_0x572baf(0x14d)](_0x844253):_0x844253)[_0x572baf(0x310)]()['applyPoint'](_0x1c079e);}[_0x101898(0x4a6)](_0x42b5fc){const _0x4d7ce8=_0x101898,{left:_0x30f0f8,top:_0x473406,width:_0xdc627e,height:_0x5b246d}=this['getRealBound'](),_0x4fb95e=_0x30f0f8+_0xdc627e/0x2,_0x47dc0d=_0x473406+_0x5b246d/0x2,_0x5b4dd1=this['transform'][_0x4d7ce8(0x2e2)](),_0x4abf73=new _univerjs_engine_render[(_0x4d7ce8(0x2d6))]([_0x5b4dd1[0x0],_0x5b4dd1[0x1],_0x5b4dd1[0x2],_0x5b4dd1[0x3],_0x4fb95e,_0x47dc0d]),_0x5270b4=this[_0x4d7ce8(0x31f)](),_0x5ca3f0=(this['isInGroup']&&(_0x5270b4===null||_0x5270b4===void 0x0?void 0x0:_0x5270b4[_0x4d7ce8(0x2e1)])===_univerjs_engine_render[_0x4d7ce8(0x2cd)]['GROUP']?_0x5270b4[_0x4d7ce8(0x359)][_0x4d7ce8(0x14d)](_0x4abf73):_0x4abf73)[_0x4d7ce8(0x310)]()[_0x4d7ce8(0x627)](_0x42b5fc),_0x5bffb0=_0xdc627e/0x2,_0x5b5660=_0x5b246d/0x2,_0x1f58f0=this[_0x4d7ce8(0x488)][_0x4d7ce8(0x591)];if(_0x1f58f0&&_0x1f58f0['isLineShape']())return _0x1f58f0[_0x4d7ce8(0x481)](_0x5ca3f0['x'],_0x5ca3f0['y'],_0xdc627e,_0x5b246d);if(_0x5ca3f0['x']>=-_0x5bffb0-this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['x']<=_0x5bffb0+this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['y']>=-_0x5b5660-this[_0x4d7ce8(0x192)]/0x2&&_0x5ca3f0['y']<=_0x5b5660+this[_0x4d7ce8(0x192)]/0x2)return!![];return![];}[_0x101898(0x3af)](){const _0x21050b=_0x101898;this[_0x21050b(0x488)][_0x21050b(0x591)]=null,super['dispose']();}};function __decorateParam(_0x555e75,_0x578ae8){return function(_0x369339,_0x2ae6bf){_0x578ae8(_0x369339,_0x2ae6bf,_0x555e75);};}function __decorate(_0x4552ba,_0x3a3838,_0x41af14,_0x3d0233){const _0x388faa=_0x101898;var _0x43f39d=arguments[_0x388faa(0x1ec)],_0x3836b9=_0x43f39d<0x3?_0x3a3838:_0x3d0233===null?_0x3d0233=Object['getOwnPropertyDescriptor'](_0x3a3838,_0x41af14):_0x3d0233,_0x47959f;if(typeof Reflect===_0x388faa(0x135)&&typeof Reflect[_0x388faa(0x50e)]===_0x388faa(0x44a))_0x3836b9=Reflect['decorate'](_0x4552ba,_0x3a3838,_0x41af14,_0x3d0233);else{for(var _0x140379=_0x4552ba[_0x388faa(0x1ec)]-0x1;_0x140379>=0x0;_0x140379--)if(_0x47959f=_0x4552ba[_0x140379])_0x3836b9=(_0x43f39d<0x3?_0x47959f(_0x3836b9):_0x43f39d>0x3?_0x47959f(_0x3a3838,_0x41af14,_0x3836b9):_0x47959f(_0x3a3838,_0x41af14))||_0x3836b9;}return _0x43f39d>0x3&&_0x3836b9&&Object[_0x388faa(0x66c)](_0x3a3838,_0x41af14,_0x3836b9),_0x3836b9;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x2c8c4c,_0x5dfc93,_0x2c70d4,_0x1ba551,_0x3bc54d){const _0x3a224b=_0x101898;super(),this[_0x3a224b(0x3c9)]=_0x2c8c4c,this[_0x3a224b(0x352)]=_0x5dfc93,this['_localeService']=_0x2c70d4,this[_0x3a224b(0x636)]=_0x1ba551,this[_0x3a224b(0x403)]=_0x3bc54d;}[_0x101898(0x19c)](_0xf0fae7,_0x189f7c){const _0x5b59fb=_0x101898,{transform:_0x5795dc,drawingType:_0x1c3d9f,srcRect:_0x568639,prstGeom:_0x2be6e5,groupId:_0x284fef,unitId:_0xe9d0d8,subUnitId:_0x65b1bd,drawingId:_0x5410b4,isMultiTransform:_0x27e595,transforms:_0x22bece,hidden:_0x143d4f}=_0xf0fae7;if(_0x1c3d9f!==_univerjs_core[_0x5b59fb(0x229)][_0x5b59fb(0x535)])return;if(!this[_0x5b59fb(0x3c9)][_0x5b59fb(0x5e5)]())return;if(_0x5795dc==null)return;const _0x367e8e=_0x27e595&&_0x22bece?_0x22bece:[_0x5795dc],_0x563872=[];for(const _0x420514 of _0x367e8e){const {left:_0x434ea2,top:_0x232dce,width:_0x298992,height:_0x536697,angle:_0x128105,flipX:_0x4ef709,flipY:_0x315d60,skewX:_0x372a18,skewY:_0xc10217}=_0x420514,_0x229a2c=_0x367e8e[_0x5b59fb(0x47a)](_0x420514),_0x5ae1f9=(0x0,_univerjs_drawing[_0x5b59fb(0x38f)])({'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd,'drawingId':_0x5410b4},_0x27e595?_0x229a2c:void 0x0),_0x124362=_0x189f7c[_0x5b59fb(0x157)](_0x5ae1f9);if(_0x124362!=null){_0x124362[_0x5b59fb(0x46b)]({'left':_0x434ea2,'top':_0x232dce,'width':_0x298992,'height':_0x536697,'angle':_0x128105,'flipX':_0x4ef709,'flipY':_0x315d60,'skewX':_0x372a18,'skewY':_0xc10217});continue;}const _0xe2dc4b=this[_0x5b59fb(0x3c9)]['getDrawingOrder'](_0xe9d0d8,_0x65b1bd),_0x27f6c6=_0xe2dc4b[_0x5b59fb(0x47a)](_0x5410b4);if(_0x189f7c[_0x5b59fb(0x157)](_0x5ae1f9))continue;if(!this[_0x5b59fb(0x3c9)][_0x5b59fb(0x5e5)]())continue;const _0x55a73d=this[_0x5b59fb(0x352)][_0x5b59fb(0x148)](_0xe9d0d8,_0x65b1bd,_0x5410b4);if(!_0x55a73d)continue;const _0xd8e3db=new DrawingShape(_0x5ae1f9,{...(0x0,_univerjs_pro_engine_shape[_0x5b59fb(0x277)])(_0x55a73d['getShapeType']())?{..._0x420514,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x420514},'zIndex':_0x27f6c6===-0x1?_0xe2dc4b[_0x5b59fb(0x1ec)]-0x1:_0x27f6c6,'shapeModel':_0x55a73d,'localeService':this[_0x5b59fb(0x679)],'shapeId':_0x5410b4,'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd,'visible':_0x143d4f!==!![]});_0x189f7c[_0x5b59fb(0x22c)](_0xd8e3db,_univerjs_engine_render[_0x5b59fb(0x11f)]);if(this[_0x5b59fb(0x3c9)][_0x5b59fb(0x50b)]())_0x189f7c['attachTransformerTo'](_0xd8e3db);_0x284fef&&(0x0,_univerjs_drawing_ui['insertGroupObject'])({'drawingId':_0x284fef,'unitId':_0xe9d0d8,'subUnitId':_0x65b1bd},_0xd8e3db,_0x189f7c,this[_0x5b59fb(0x3c9)]);if(_0x2be6e5!=null)_0xd8e3db[_0x5b59fb(0x5b9)](_0x2be6e5);if(_0x568639!=null)_0xd8e3db[_0x5b59fb(0x4e2)](_0x568639);this[_0x5b59fb(0x299)](_0xd8e3db,_0x55a73d[_0x5b59fb(0x365)]()),_0x563872[_0x5b59fb(0x2f9)](_0xd8e3db);}return _0x563872;}[_0x101898(0x299)](_0xa3741f,_0x1913da){const _0x2830f6=_0x101898;var _0x322983;const _0x1e07e1=_0x1913da['fill'];if(!_0x1e07e1||_0x1e07e1[_0x2830f6(0x419)]!==_univerjs_pro_engine_shape[_0x2830f6(0x2d3)][_0x2830f6(0x487)]||!_0x1e07e1['fillImageSource'])return;const _0x5f5318=_0x1e07e1[_0x2830f6(0x150)],_0x5bcbd7=(_0x322983=_0x1e07e1[_0x2830f6(0x590)])!==null&&_0x322983!==void 0x0?_0x322983:_univerjs_pro_engine_shape[_0x2830f6(0x262)][_0x2830f6(0x139)],_0x307263=this[_0x2830f6(0x636)][_0x2830f6(0x67e)](_0x5f5318,_0x5bcbd7);if(_0x307263){_0xa3741f['setFillImage'](_0x307263);return;}this[_0x2830f6(0x444)](_0xa3741f,_0x5f5318,_0x5bcbd7);}async[_0x101898(0x444)](_0x4871f7,_0x3bb2c9,_0x3c3c20){const _0xa0dd51=_0x101898;let _0x4401dc;try{if(_0x3c3c20===_univerjs_pro_engine_shape[_0xa0dd51(0x262)][_0xa0dd51(0x4e8)])_0x4401dc=await this[_0xa0dd51(0x636)][_0xa0dd51(0x121)](_0x3bb2c9);else{if(_0x3c3c20===_univerjs_pro_engine_shape[_0xa0dd51(0x262)][_0xa0dd51(0x139)])try{_0x4401dc=await this[_0xa0dd51(0x403)]['getImage'](_0x3bb2c9);}catch{_0x4401dc=_0x3bb2c9;}else _0x4401dc=_0x3bb2c9;}}catch(_0x3f44bf){console[_0xa0dd51(0x182)](_0xa0dd51(0x341),_0x3f44bf);return;}const _0x1efe79=new window['Image']();_0x1efe79[_0xa0dd51(0x62f)]=()=>{const _0x5a3755=_0xa0dd51;this[_0x5a3755(0x636)][_0x5a3755(0x5d2)](_0x3bb2c9,_0x3c3c20,_0x1efe79),_0x4871f7['setFillImage'](_0x1efe79);},_0x1efe79[_0xa0dd51(0x209)]=()=>{const _0x113a66=_0xa0dd51;console[_0x113a66(0x182)](_0x113a66(0x3e6),_0x3bb2c9);},_0x1efe79[_0xa0dd51(0x631)]=_0x4401dc;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x3,_univerjs_drawing[_0x101898(0x23c)]),__decorateParam(0x4,_univerjs_core[_0x101898(0x364)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x205f2a,_0x60533c,_0x5b03db,_0x1108d7,_0x34f27d,_0x1d0cf9){const _0x3bda35=_0x101898;super(),this['_commandService']=_0x205f2a,this[_0x3bda35(0x28f)]=_0x60533c,this[_0x3bda35(0x3c9)]=_0x5b03db,this[_0x3bda35(0x5e1)]=_0x1108d7,this[_0x3bda35(0x303)]=_0x34f27d,this[_0x3bda35(0x270)]=_0x1d0cf9,this[_0x3bda35(0x503)]();}[_0x101898(0x503)](){const _0xf4322e=_0x101898;this[_0xf4322e(0x179)](),this[_0xf4322e(0x424)](),this[_0xf4322e(0x263)]();}[_0x101898(0x179)](){const _0x3b84fa=_0x101898;this[_0x3b84fa(0x1ff)](this[_0x3b84fa(0x3c9)]['add$'][_0x3b84fa(0x4fd)](_0x3fe4e3=>{const _0x124cc9=_0x3b84fa;this[_0x124cc9(0x1c7)](_0x3fe4e3);}));}['_commandExecutedListener'](){const _0x362676=_0x101898;this[_0x362676(0x1ff)](this[_0x362676(0x36d)][_0x362676(0x5e3)](_0xaf461a=>{const _0x3f3d75=_0x362676;if(_0xaf461a['id']===_univerjs_pro_sheets_shape[_0x3f3d75(0x4db)]['id']){var _0x210c1e;const {unitId:_0xffa9e7,subUnitId:_0x5c6e7b,shapeId:_0x4a94c9}=_0xaf461a[_0x3f3d75(0x35d)],_0x5563fd=this[_0x3f3d75(0x291)](_0xffa9e7);if(_0x5563fd==null)return;const {scene:_0x529200}=_0x5563fd,_0x39cf36=(0x0,_univerjs_drawing[_0x3f3d75(0x38f)])({'unitId':_0xffa9e7,'subUnitId':_0x5c6e7b,'drawingId':_0x4a94c9}),_0x1ba7a5=_0x529200[_0x3f3d75(0x157)](_0x39cf36);if(!((_0x210c1e=this[_0x3f3d75(0x28f)]['getRenderById'](_0xffa9e7))===null||_0x210c1e===void 0x0?void 0x0:_0x210c1e[_0x3f3d75(0x593)](_univerjs_sheets_ui[_0x3f3d75(0x217)])[_0x3f3d75(0x1f6)](_0x5c6e7b)))return![];if(_0x1ba7a5)return;this[_0x3f3d75(0x1c7)]([{'unitId':_0xffa9e7,'subUnitId':_0x5c6e7b,'drawingId':_0x4a94c9}]);}}));}[_0x101898(0x263)](){const _0x20112d=_0x101898;this[_0x20112d(0x1ff)](this[_0x20112d(0x3c9)][_0x20112d(0x523)][_0x20112d(0x4fd)](_0x20e1eb=>{const _0x231581=_0x20112d;_0x20e1eb[_0x231581(0x5aa)](_0x30b661=>{const _0x45a864=_0x231581,{unitId:_0x166e75,subUnitId:_0x3dcf82,drawingId:_0x2ba6a4}=_0x30b661,_0x178e66=this[_0x45a864(0x3c9)]['getDrawingByParam'](_0x30b661);if(_0x178e66==null)return;const {transform:_0x551493,drawingType:_0x404d47,srcRect:_0x2e35ae,prstGeom:_0x451d1f}=_0x178e66;if(_0x404d47!==_univerjs_core[_0x45a864(0x229)][_0x45a864(0x535)])return;const _0x333e23=this[_0x45a864(0x291)](_0x166e75);if(_0x333e23==null)return;const {scene:_0x2c4a61,transformer:_0x309b9e}=_0x333e23;if(_0x551493==null)return!![];const _0x581422=(0x0,_univerjs_drawing[_0x45a864(0x38f)])({'unitId':_0x166e75,'subUnitId':_0x3dcf82,'drawingId':_0x2ba6a4}),_0x8f67cf=_0x2c4a61[_0x45a864(0x157)](_0x581422);if(_0x8f67cf==null)return!![];_0x8f67cf['setSrcRect'](_0x2e35ae),_0x8f67cf['setPrstGeom'](_0x451d1f);});}));}['updateShapeFillImage'](_0x5a51c3,_0x4d6b16){const _0x1d5e31=_0x101898,{unitId:_0x5354f1,subUnitId:_0x1f26a4,drawingId:_0x1260a9}=_0x5a51c3,_0x438dca=this['_getSceneAndTransformerByDrawingSearch'](_0x5354f1);if(_0x438dca==null)return;const {scene:_0x26bc72}=_0x438dca,_0x4895e0=(0x0,_univerjs_drawing[_0x1d5e31(0x38f)])({'unitId':_0x5354f1,'subUnitId':_0x1f26a4,'drawingId':_0x1260a9}),_0x4e09d2=_0x26bc72[_0x1d5e31(0x157)](_0x4895e0);if(_0x4e09d2==null)return;_0x4e09d2[_0x1d5e31(0x13f)](_0x4d6b16);}['_insertShapes'](_0x48208d){const _0x5b6128=_0x101898;_0x48208d[_0x5b6128(0x5aa)](async _0x4efdf3=>{const _0x391a41=_0x5b6128;var _0x365dbb;const {unitId:_0x2ccd0c,subUnitId:_0xada28c}=_0x4efdf3,_0x3bce17=this[_0x391a41(0x291)](_0x2ccd0c),_0xb56fa8=(_0x365dbb=(0x0,_univerjs_drawing_ui['getCurrentUnitInfo'])(this['_currentUniverService'],_0x2ccd0c))===null||_0x365dbb===void 0x0?void 0x0:_0x365dbb[_0x391a41(0x343)];if(_0x3bce17==null||_0xb56fa8!==_0xada28c)return;const _0x53e66d=this[_0x391a41(0x3c9)][_0x391a41(0x52f)](_0x4efdf3);if(_0x53e66d==null)return;if(_0x53e66d['drawingType']!==_univerjs_core[_0x391a41(0x229)][_0x391a41(0x535)])return;if((0x0,_univerjs_pro_engine_shape[_0x391a41(0x277)])((_0x53e66d['data']||{})[_0x391a41(0x4c2)])){const _0xe5bc70=_0x53e66d[_0x391a41(0x519)];if(_0xe5bc70)_0x53e66d[_0x391a41(0x519)]={..._0xe5bc70,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x391a41(0x3c9)][_0x391a41(0x571)]([_0x53e66d]),this[_0x391a41(0x270)][_0x391a41(0x19c)](_0x53e66d,_0x3bce17[_0x391a41(0x2dc)]);});}[_0x101898(0x291)](_0x1dbd0e){const _0x215538=_0x101898;if(_0x1dbd0e==null)return;const _0x3a5a75=this[_0x215538(0x28f)]['getRenderById'](_0x1dbd0e),_0x5dae3a=_0x3a5a75===null||_0x3a5a75===void 0x0?void 0x0:_0x3a5a75[_0x215538(0x2dc)];if(_0x5dae3a==null)return null;return{'scene':_0x5dae3a,'transformer':_0x5dae3a[_0x215538(0x53f)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_engine_render[_0x101898(0x500)]),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,_univerjs_core['IUniverInstanceService']),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing_ui[_0x101898(0x13e)])),__decorateParam(0x5,(0x0,_univerjs_core[_0x101898(0x463)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x3a2688){const _0x4a55f7=_0x101898;var _0x50420a,_0x33fa51,_0x20fe33,_0x4421ec,_0xbc73e5,_0x39c904,_0x3d932e,_0x411646,_0x22189b,_0x583d20,_0x3f7b8e,_0x23be92,_0x592e74;const {unitId:_0x32f82b,subUnitId:_0x431d12,shapeId:_0x17640c,shapeData:_0x3dbd22,disableShapeOption:_0x454765}=_0x3a2688,_0x2abe99=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x4a55f7(0x334)]),_0x339c7f=(0x0,_univerjs_ui[_0x4a55f7(0x14f)])(_univerjs_core['ICommandService']),_0x39f5da=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x4a55f7(0x4b3)]),_0x5de3de=(0x0,_univerjs_ui[_0x4a55f7(0x14f)])(ShapeUpdateController),_0x30c7c2=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IImageIoService']),_0x3ba60a=(0x0,react[_0x4a55f7(0x1da)])(null),_0x15511c=_0x3dbd22['fill'],_0xfa5462=!!(_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x150)]),[_0x414505,_0x3fba4e]=(0x0,react[_0x4a55f7(0x168)])((_0x50420a=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x309)])!==null&&_0x50420a!==void 0x0?_0x50420a:0x1),[_0x225aa1,_0x275369]=(0x0,react[_0x4a55f7(0x168)])((_0x33fa51=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c['imageFillMode'])!==null&&_0x33fa51!==void 0x0?_0x33fa51:_univerjs_pro_engine_shape['ImageFillModeEnum'][_0x4a55f7(0x4b9)]),[_0x68815d,_0x5354ce]=(0x0,react[_0x4a55f7(0x168)])((_0x20fe33=_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x238)])!==null&&_0x20fe33!==void 0x0?_0x20fe33:![]),[_0x1ac7d4,_0x14cf1f]=(0x0,react[_0x4a55f7(0x168)])((_0x4421ec=_0x15511c===null||_0x15511c===void 0x0||(_0xbc73e5=_0x15511c[_0x4a55f7(0x222)])===null||_0xbc73e5===void 0x0?void 0x0:_0xbc73e5['offsetX'])!==null&&_0x4421ec!==void 0x0?_0x4421ec:0x0),[_0x1373ee,_0x48fa00]=(0x0,react[_0x4a55f7(0x168)])((_0x39c904=_0x15511c===null||_0x15511c===void 0x0||(_0x3d932e=_0x15511c[_0x4a55f7(0x222)])===null||_0x3d932e===void 0x0?void 0x0:_0x3d932e[_0x4a55f7(0x544)])!==null&&_0x39c904!==void 0x0?_0x39c904:0x0),[_0x5e5a95,_0x3c1fac]=(0x0,react[_0x4a55f7(0x168)])((_0x411646=_0x15511c===null||_0x15511c===void 0x0||(_0x22189b=_0x15511c[_0x4a55f7(0x222)])===null||_0x22189b===void 0x0?void 0x0:_0x22189b[_0x4a55f7(0x43d)])!==null&&_0x411646!==void 0x0?_0x411646:0x1),[_0x5d42c1,_0x36ba3a]=(0x0,react[_0x4a55f7(0x168)])((_0x583d20=_0x15511c===null||_0x15511c===void 0x0||(_0x3f7b8e=_0x15511c[_0x4a55f7(0x222)])===null||_0x3f7b8e===void 0x0?void 0x0:_0x3f7b8e[_0x4a55f7(0x12a)])!==null&&_0x583d20!==void 0x0?_0x583d20:0x1),[_0x370373,_0x341824]=(0x0,react[_0x4a55f7(0x168)])((_0x23be92=_0x15511c===null||_0x15511c===void 0x0||(_0x592e74=_0x15511c[_0x4a55f7(0x222)])===null||_0x592e74===void 0x0?void 0x0:_0x592e74[_0x4a55f7(0x24d)])!==null&&_0x23be92!==void 0x0?_0x23be92:'tl'),_0x272ee6=_0x225aa1===_univerjs_pro_engine_shape[_0x4a55f7(0x1a1)]['Tile'],_0x23188f=Math['round']((0x1-_0x414505)*0x64),_0x137bea=Math[_0x4a55f7(0x3d0)](_0x5e5a95*0x64),_0x37f670=Math[_0x4a55f7(0x3d0)](_0x5d42c1*0x64),_0x372c86=_0x5ea727=>_0x2abe99['t'](_0x5ea727),_0x44b53f=[{'label':_0x372c86('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x372c86(_0x4a55f7(0x20f)),'value':'t'},{'label':_0x372c86(_0x4a55f7(0x5e9)),'value':'tr'},{'label':_0x372c86(_0x4a55f7(0x64c)),'value':'l'},{'label':_0x372c86(_0x4a55f7(0x3eb)),'value':'ctr'},{'label':_0x372c86(_0x4a55f7(0x1b3)),'value':'r'},{'label':_0x372c86(_0x4a55f7(0x32d)),'value':'bl'},{'label':_0x372c86('sheets-shape.fill.picture.align.b'),'value':'b'},{'label':_0x372c86('sheets-shape.fill.picture.align.br'),'value':'br'}],_0x1e016d=_0xc340e=>{updateShapeData(_0x339c7f,_0x32f82b,_0x431d12,_0x17640c,{'oldShapeData':{'fill':_0x15511c?{..._0x15511c}:void 0x0}},{'fill':{..._0x15511c,..._0xc340e}});},_0x485d34=_0x4f013b=>{_0x1e016d({'imageTile':{..._0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c['imageTile'],..._0x4f013b}});},_0x53c70c=()=>{const _0x547781=_0x4a55f7;var _0x2f7946;return(_0x2f7946=_0x3ba60a[_0x547781(0x51d)])===null||_0x2f7946===void 0x0?void 0x0:_0x2f7946['click']();},_0x4ce672=async _0xbbec47=>{const _0x384362=_0x4a55f7;var _0x394492;const _0x606e52=(_0x394492=_0xbbec47[_0x384362(0x4af)][_0x384362(0x5a7)])===null||_0x394492===void 0x0?void 0x0:_0x394492[0x0];if(!_0x606e52)return;_0xbbec47[_0x384362(0x4af)][_0x384362(0x2f1)]='';const _0x3e239b=await _0x30c7c2[_0x384362(0x1ee)](_0x606e52);if(_0x3e239b==null)return;const {imageSourceType:_0x5d49ea,source:_0x5198bb,base64Cache:_0x296f26}=_0x3e239b,{image:_0x4e1dd6}=await(0x0,_univerjs_drawing[_0x384362(0x4aa)])(_0x296f26||'');_0x30c7c2['addImageSourceCache'](_0x5198bb,_0x5d49ea,_0x4e1dd6),updateShapeData(_0x339c7f,_0x32f82b,_0x431d12,_0x17640c,{'oldShapeData':{'fill':_0x15511c?{..._0x15511c}:void 0x0}},{'fill':{..._0x15511c,'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x384362(0x487)],'fillImageSource':_0x5198bb,'fillImageSourceType':_0x5d49ea}}),_0x5de3de[_0x384362(0x43b)]({'unitId':_0x32f82b,'subUnitId':_0x431d12,'drawingId':_0x17640c},_0x4e1dd6);},_0x1519c4=_0x4a55f7(0x16f),_0x2e422a=_0x4a55f7(0x17b);return(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':_0x4a55f7(0x433),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x632))}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x4f2),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('input',{'ref':_0x3ba60a,'type':_0x4a55f7(0x4de),'accept':_0x4a55f7(0x1f4),'className':_0x4a55f7(0x5fc),'onChange':_0x4ce672}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x1f3),'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x435),{'type':_0x4a55f7(0x435),'disabled':_0x454765,'className':_0x4a55f7(0x195),'onClick':_0x53c70c,'children':(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x273),{'children':[_0x372c86('sheets-shape.fill.picture.insert'),'\x20']})}),_0xfa5462&&(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x4ab),{'src':_0x15511c===null||_0x15511c===void 0x0?void 0x0:_0x15511c[_0x4a55f7(0x150)],'alt':'','className':_0x4a55f7(0x35b)})})]})]})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x23188f,'disabled':_0x454765,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x18d2a4=>_0x18d2a4+'%','parser':_0x8947e5=>(_0x8947e5===null||_0x8947e5===void 0x0?void 0x0:_0x8947e5[_0x4a55f7(0x402)]('%',''))||'','onChange':_0x2345ab=>{const _0xa027e9=_0x4a55f7,_0x21abe2=(0x64-Math[_0xa027e9(0x1db)](0x0,Math[_0xa027e9(0x267)](0x64,_0x2345ab!==null&&_0x2345ab!==void 0x0?_0x2345ab:0x0)))/0x64;_0x3fba4e(_0x21abe2),_0x1e016d({'imageOpacity':_0x21abe2}),_0x39f5da[_0xa027e9(0x32c)](_univerjs_core[_0xa027e9(0x59d)],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design['Checkbox'],{'checked':_0x272ee6,'disabled':_0x454765,'onChange':_0x5ef018=>{const _0x223a97=_0x4a55f7,_0x49a534=_0x5ef018?_univerjs_pro_engine_shape[_0x223a97(0x1a1)]['Tile']:_univerjs_pro_engine_shape[_0x223a97(0x1a1)][_0x223a97(0x4b9)];_0x275369(_0x49a534),_0x1e016d({'imageFillMode':_0x49a534});},'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':'univer-text-sm','children':_0x372c86(_0x4a55f7(0x1b8))})}),_0x272ee6&&(0x0,react_jsx_runtime['jsxs'])(_0x4a55f7(0x14c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.picture.offsetX')}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x1ac7d4,'disabled':_0x454765,'step':0x1,'onChange':_0x2b9d8a=>{_0x485d34({'offsetX':_0x2b9d8a!==null&&_0x2b9d8a!==void 0x0?_0x2b9d8a:0x0}),_0x14cf1f(_0x2b9d8a!==null&&_0x2b9d8a!==void 0x0?_0x2b9d8a:0x0);},'onFocus':()=>_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x641))}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x14c),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x1373ee,'disabled':_0x454765,'step':0x1,'onChange':_0x26d02f=>{_0x485d34({'offsetY':_0x26d02f!==null&&_0x26d02f!==void 0x0?_0x26d02f:0x0}),_0x48fa00(_0x26d02f!==null&&_0x26d02f!==void 0x0?_0x26d02f:0x0);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x5c6))}),(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x5f8)],{'className':_0x4a55f7(0x623),'value':_0x137bea,'disabled':_0x454765,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x20f531=>_0x20f531+'%','parser':_0x7fcca7=>(_0x7fcca7===null||_0x7fcca7===void 0x0?void 0x0:_0x7fcca7[_0x4a55f7(0x402)]('%',''))||'','onChange':_0x1f8b22=>{const _0x7f9699=_0x4a55f7,_0x1529ba=Math[_0x7f9699(0x1db)](0.01,(_0x1f8b22!==null&&_0x1f8b22!==void 0x0?_0x1f8b22:0x64)/0x64);_0x3c1fac(_0x1529ba),_0x485d34({'scaleX':_0x1529ba}),_0x39f5da['setContextValue'](_univerjs_core[_0x7f9699(0x59d)],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])(_0x4a55f7(0x14c),{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x273),{'className':_0x1519c4,'children':_0x372c86(_0x4a55f7(0x2c8))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x4a55f7(0x3b5),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x4a55f7(0x623),'value':_0x37f670,'disabled':_0x454765,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x451d0c=>_0x451d0c+'%','parser':_0x917a7b=>(_0x917a7b===null||_0x917a7b===void 0x0?void 0x0:_0x917a7b['replace']('%',''))||'','onChange':_0x200f9a=>{const _0x479c52=Math['max'](0.01,(_0x200f9a!==null&&_0x200f9a!==void 0x0?_0x200f9a:0x64)/0x64);_0x36ba3a(_0x479c52),_0x485d34({'scaleY':_0x479c52}),_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x39f5da[_0x4a55f7(0x32c)](_univerjs_core[_0x4a55f7(0x59d)],!![]),'onBlur':()=>_0x39f5da['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![])})})]}),(0x0,react_jsx_runtime[_0x4a55f7(0x399)])('div',{'className':_0x2e422a,'children':[(0x0,react_jsx_runtime[_0x4a55f7(0x326)])('span',{'className':_0x1519c4,'children':_0x372c86('sheets-shape.fill.picture.alignment')}),(0x0,react_jsx_runtime['jsx'])(_0x4a55f7(0x14c),{'className':_0x4a55f7(0x2fb),'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_univerjs_design[_0x4a55f7(0x3d2)],{'className':_0x4a55f7(0x623),'value':_0x370373,'options':_0x44b53f,'disabled':_0x454765,'onChange':_0x18b255=>{_0x341824(_0x18b255),_0x485d34({'alignment':_0x18b255});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4a55f7(0x185)],{'checked':_0x68815d,'disabled':_0x454765,'onChange':_0x70584=>{_0x5354ce(_0x70584),_0x1e016d({'imageRotateWithShape':_0x70584});},'children':(0x0,react_jsx_runtime[_0x4a55f7(0x326)])(_0x4a55f7(0x273),{'className':_0x4a55f7(0x178),'children':_0x372c86(_0x4a55f7(0x2bb))})})]});}function ShapeFillEditor(_0x4191bd){const _0x2755b6=_0x101898;var _0x322054,_0x34f45e,_0x5ebbce;const _0x5034ad=(0x0,_univerjs_ui[_0x2755b6(0x14f)])(_univerjs_core['LocaleService']),_0x153c95=(0x0,_univerjs_ui[_0x2755b6(0x14f)])(_univerjs_core[_0x2755b6(0x55c)]),_0x577655=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2755b6(0x4b3)]),{shapeData:_0xc99449,isLineShape:_0x47e71f,unitId:_0x58f2e7,subUnitId:_0x25b15a,shapeId:_0x26cb7a,disableShapeOption:_0x1aa265}=_0x4191bd,[_0x319c3b,_0x3146d2]=(0x0,react[_0x2755b6(0x168)])(((_0x322054=_0xc99449[_0x2755b6(0x347)])===null||_0x322054===void 0x0?void 0x0:_0x322054[_0x2755b6(0x419)])||_univerjs_pro_engine_shape[_0x2755b6(0x2d3)]['SolidFill']),[_0x35f7ae,_0x1176b0]=(0x0,react[_0x2755b6(0x168)])(((_0x34f45e=_0xc99449[_0x2755b6(0x347)])===null||_0x34f45e===void 0x0?void 0x0:_0x34f45e[_0x2755b6(0x61a)])||_univerjs_pro_engine_shape['ShapeDefaultConfig']['fill']),[_0x3c117b,_0x1bd4d4]=(0x0,react['useState'])(((_0x5ebbce=_0xc99449[_0x2755b6(0x347)])===null||_0x5ebbce===void 0x0?void 0x0:_0x5ebbce[_0x2755b6(0x406)])||0x1),[_0x1dfa1f,_0x57a498]=(0x0,react[_0x2755b6(0x168)])(![]);if(_0x47e71f)return null;const _0x2396db=0x64-_0x3c117b*0x64;return(0x0,react_jsx_runtime['jsxs'])(_0x2755b6(0x14c),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_univerjs_design[_0x2755b6(0x1e6)],{'value':_0x319c3b,'disabled':_0x1aa265,'onChange':_0x4d1290=>{const _0x38ed2f=_0x2755b6;var _0x32426f;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{'fillType':(_0x32426f=_0xc99449[_0x38ed2f(0x347)])===null||_0x32426f===void 0x0?void 0x0:_0x32426f['fillType']}}},{'fill':{'fillType':_0x4d1290}}),_0x3146d2(_0x4d1290);},'direction':_0x2755b6(0x59a),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x218)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x4b8))})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x2755b6(0x15c)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])('span',{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x1bf))})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x46f)],'children':(0x0,react_jsx_runtime['jsx'])(_0x2755b6(0x273),{'className':_0x2755b6(0x178),'children':_0x5034ad['t']('sheets-shape.fill.gradientFill')})}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x11b)],{'value':_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x487)],'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])('span',{'className':_0x2755b6(0x178),'children':_0x5034ad['t'](_0x2755b6(0x38c))})})]}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x15c)]&&(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_0x2755b6(0x14c),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[(0x0,react_jsx_runtime[_0x2755b6(0x399)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x583),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x2ef),'children':_0x5034ad['t'](_0x2755b6(0x42b))}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x313)],{'disabled':_0x1aa265,'overlay':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x3ab)],{'value':_0x35f7ae,'onChange':_0x5140de=>{const _0x2132ad=_0x2755b6;var _0x2a59d2;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{'color':(_0x2a59d2=_0xc99449['fill'])===null||_0x2a59d2===void 0x0?void 0x0:_0x2a59d2[_0x2132ad(0x61a)]}}},{'fill':{'color':_0x5140de}}),_0x1176b0(_0x5140de),_0x57a498(![]);}})}),'open':_0x1dfa1f,'onOpenChange':_0x57a498,'children':(0x0,react_jsx_runtime[_0x2755b6(0x399)])('a',{'className':_0x2755b6(0x2dd),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x2755b6(0x3a6),'extend':{'colorChannel1':_0x35f7ae}}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_icons[_0x2755b6(0x14a)],{'className':(0x0,_univerjs_design[_0x2755b6(0x4e1)])(_0x2755b6(0x4c9),{'univer-rotate-180':_0x1dfa1f})})]})})]}),(0x0,react_jsx_runtime[_0x2755b6(0x399)])('div',{'className':_0x2755b6(0x17b),'children':[(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x273),{'className':_0x2755b6(0x16f),'children':_0x5034ad['t'](_0x2755b6(0x577))}),(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x170),'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_0x2755b6(0x14c),{'className':_0x2755b6(0x3b5),'children':(0x0,react_jsx_runtime[_0x2755b6(0x326)])(_univerjs_design[_0x2755b6(0x5f8)],{'className':'univer-w-full','value':_0x2396db,'disabled':_0x1aa265,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x25bc6a=>_0x25bc6a+'%','parser':_0x433a89=>(_0x433a89===null||_0x433a89===void 0x0?void 0x0:_0x433a89['replace']('%',''))||'','onChange':_0x52e622=>{const _0x466235=_0x2755b6,_0x120da2=(0x64-Math[_0x466235(0x1db)](0x0,Math[_0x466235(0x267)](0x64,_0x52e622!==null&&_0x52e622!==void 0x0?_0x52e622:0x0)))/0x64;_0x1bd4d4(_0x120da2),updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{..._0xc99449[_0x466235(0x347)],'fillType':_0x319c3b}}},{'fill':{..._0xc99449[_0x466235(0x347)],'fillType':_0x319c3b,'opacity':_0x120da2}}),_0x577655[_0x466235(0x32c)](_univerjs_core[_0x466235(0x59d)],![]);},'onFocus':()=>_0x577655[_0x2755b6(0x32c)](_univerjs_core[_0x2755b6(0x59d)],!![]),'onBlur':()=>{const _0x2cd581=_0x2755b6;_0x577655[_0x2cd581(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]})]}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)]['GradientFill']&&(0x0,react_jsx_runtime[_0x2755b6(0x326)])(GradientFillEditor,{'shapeData':_0xc99449,'disableShapeOption':_0x1aa265,'onUpdate':_0x3e2ae6=>{const _0xd87282=_0x2755b6;updateShapeData(_0x153c95,_0x58f2e7,_0x25b15a,_0x26cb7a,{'oldShapeData':{'fill':{..._0xc99449[_0xd87282(0x347)]}}},{'fill':{..._0xc99449[_0xd87282(0x347)],..._0x3e2ae6}});}}),_0x319c3b===_univerjs_pro_engine_shape[_0x2755b6(0x2d3)][_0x2755b6(0x487)]&&(0x0,react_jsx_runtime['jsx'])(ShapeImageFillEditor,{'unitId':_0x58f2e7,'subUnitId':_0x25b15a,'shapeId':_0x26cb7a,'shapeData':_0xc99449,'disableShapeOption':_0x1aa265})]});}function shapeGradientTypeToPickerType(_0x223ca1){const _0x3a93e3=_0x101898;switch(_0x223ca1){case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)][_0x3a93e3(0x216)]:return _0x3a93e3(0x21c);case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)]['Radial']:return _0x3a93e3(0x241);case _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x3a93e3(0x379)]:return _0x3a93e3(0x421);case _univerjs_pro_engine_shape[_0x3a93e3(0x19d)][_0x3a93e3(0x37b)]:return _0x3a93e3(0x53c);default:return _0x3a93e3(0x21c);}}function pickerTypeToShapeGradientType(_0x1b7f74){const _0x40a900=_0x101898;switch(_0x1b7f74){case _0x40a900(0x21c):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x40a900(0x216)];case'radial':return _univerjs_pro_engine_shape[_0x40a900(0x19d)]['Radial'];case _0x40a900(0x421):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x40a900(0x379)];case'diamond':return _univerjs_pro_engine_shape[_0x40a900(0x19d)]['Diamond'];default:return _univerjs_pro_engine_shape[_0x40a900(0x19d)][_0x40a900(0x216)];}}function GradientFillEditor(_0x551ce8){const _0x4a3e27=_0x101898,{shapeData:_0x46095e,disableShapeOption:_0x5411c5,onUpdate:_0x28f7ad}=_0x551ce8,_0x355846=(0x0,react[_0x4a3e27(0x681)])(()=>{const _0x1332ab=_0x4a3e27;var _0x1e04d0;const _0x50311c=_0x46095e[_0x1332ab(0x347)];return{'type':shapeGradientTypeToPickerType(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x4bd)]),'angle':(_0x1e04d0=_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c['gradientAngle'])!==null&&_0x1e04d0!==void 0x0?_0x1e04d0:0x5a,'stops':(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x4b6)])&&_0x50311c[_0x1332ab(0x4b6)][_0x1332ab(0x1ec)]>=0x2?_0x50311c[_0x1332ab(0x4b6)]['map'](_0x1745e5=>({'color':_0x1745e5[_0x1332ab(0x61a)],'offset':_0x1745e5[_0x1332ab(0x5d9)]*0x64})):[{'color':(_0x50311c===null||_0x50311c===void 0x0?void 0x0:_0x50311c[_0x1332ab(0x61a)])||_0x1332ab(0x475),'offset':0x0},{'color':_0x1332ab(0x2bc),'offset':0x64}]};},[_0x46095e['fill']]),_0x240fc8=_0x2c07e0=>{const _0x3beb80=_0x4a3e27,_0x189f02=pickerTypeToShapeGradientType(_0x2c07e0[_0x3beb80(0x489)]),_0x215180=_0x2c07e0[_0x3beb80(0x2f5)];_0x28f7ad({'gradientType':_0x189f02,'gradientAngle':_0x215180,'gradientStops':_0x2c07e0[_0x3beb80(0x346)]['map'](_0xe862f1=>({'color':_0xe862f1['color'],'position':_0xe862f1[_0x3beb80(0x2ca)]/0x64}))});};return(0x0,react_jsx_runtime[_0x4a3e27(0x326)])(_0x4a3e27(0x14c),{'className':_0x4a3e27(0x43f),'children':(0x0,react_jsx_runtime[_0x4a3e27(0x326)])(_univerjs_design['GradientColorPicker'],{'value':_0x355846,'onChange':_0x240fc8})});}function ShapeLineEditor(_0x3de972){const _0x2c39f8=_0x101898;var _0x4cb4c8,_0x32736c,_0x2def10,_0x579495,_0x32f412,_0x281f77,_0x2b7054,_0x5b4791,_0x713225,_0x329a73,_0x4edff5,_0xb702d,_0x3e105a,_0x5bb2df,_0x23b4a3,_0x2d7a35;const _0x4f933c=(0x0,_univerjs_ui[_0x2c39f8(0x14f)])(_univerjs_core['LocaleService']),_0x429fec=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2c39f8(0x55c)]),_0xb0b3bb=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['IContextService']),{shapeData:_0x295145,isLineShape:_0x453eb1,unitId:_0x267776,subUnitId:_0x41d803,shapeId:_0x3ce84e,disableShapeOption:_0x42ea3d}=_0x3de972,_0x290a5c=_0x295145[_0x2c39f8(0x600)],[_0x3b263f,_0x9ec8f1]=(0x0,react['useState'])((_0x4cb4c8=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x351)])!==null&&_0x4cb4c8!==void 0x0?_0x4cb4c8:_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)]['SolidLine']),[_0x27853f,_0x129b19]=(0x0,react[_0x2c39f8(0x168)])((_0x32736c=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x61a)])!==null&&_0x32736c!==void 0x0?_0x32736c:_univerjs_pro_engine_shape[_0x2c39f8(0x30a)][_0x2c39f8(0x600)]),[_0xa2fc80,_0x355cb0]=(0x0,react['useState'])((_0x2def10=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x406)])!==null&&_0x2def10!==void 0x0?_0x2def10:0x1),[_0x10dc98,_0x597c4a]=(0x0,react['useState'])((_0x579495=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x604)])!==null&&_0x579495!==void 0x0?_0x579495:_univerjs_pro_engine_shape[_0x2c39f8(0x30a)][_0x2c39f8(0x192)]),[_0x142414,_0xf2f553]=(0x0,react[_0x2c39f8(0x168)])((_0x32f412=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x184)])!==null&&_0x32f412!==void 0x0?_0x32f412:_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x62b)]),[_0x3e5817,_0x5d256]=(0x0,react[_0x2c39f8(0x168)])((_0x281f77=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x162)])!==null&&_0x281f77!==void 0x0?_0x281f77:_univerjs_pro_engine_shape[_0x2c39f8(0x449)]['Flat']),[_0x2726e9,_0x56fe3d]=(0x0,react[_0x2c39f8(0x168)])((_0x2b7054=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c[_0x2c39f8(0x189)])!==null&&_0x2b7054!==void 0x0?_0x2b7054:_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)]['Miter']),[_0x4c1c7a,_0xef070]=(0x0,react[_0x2c39f8(0x168)])((_0x5b4791=_0x290a5c===null||_0x290a5c===void 0x0?void 0x0:_0x290a5c['sketchType'])!==null&&_0x5b4791!==void 0x0?_0x5b4791:_univerjs_pro_engine_shape[_0x2c39f8(0x495)]['None']),_0xcb312a=_0x295145,[_0x17ecb5,_0xe01a5e]=(0x0,react[_0x2c39f8(0x168)])((_0x713225=(_0x329a73=_0xcb312a['ln'])===null||_0x329a73===void 0x0||(_0x329a73=_0x329a73[_0x2c39f8(0x231)])===null||_0x329a73===void 0x0?void 0x0:_0x329a73[_0x2c39f8(0x489)])!==null&&_0x713225!==void 0x0?_0x713225:_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x678)]),[_0x15d897,_0x2a2226]=(0x0,react['useState'])((_0x4edff5=(_0xb702d=_0xcb312a['ln'])===null||_0xb702d===void 0x0||(_0xb702d=_0xb702d[_0x2c39f8(0x231)])===null||_0xb702d===void 0x0?void 0x0:_0xb702d[_0x2c39f8(0x2a7)])!==null&&_0x4edff5!==void 0x0?_0x4edff5:_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x22e)]),[_0x21a1e1,_0x1e5b5e]=(0x0,react[_0x2c39f8(0x168)])((_0x3e105a=(_0x5bb2df=_0xcb312a['ln'])===null||_0x5bb2df===void 0x0||(_0x5bb2df=_0x5bb2df[_0x2c39f8(0x3b8)])===null||_0x5bb2df===void 0x0?void 0x0:_0x5bb2df[_0x2c39f8(0x489)])!==null&&_0x3e105a!==void 0x0?_0x3e105a:_univerjs_pro_engine_shape[_0x2c39f8(0x67d)]['None']),[_0xdbbb3b,_0x508adc]=(0x0,react[_0x2c39f8(0x168)])((_0x23b4a3=(_0x2d7a35=_0xcb312a['ln'])===null||_0x2d7a35===void 0x0||(_0x2d7a35=_0x2d7a35['endArrow'])===null||_0x2d7a35===void 0x0?void 0x0:_0x2d7a35[_0x2c39f8(0x2a7)])!==null&&_0x23b4a3!==void 0x0?_0x23b4a3:_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x22e)]),[_0x377066,_0x39fe4a]=(0x0,react[_0x2c39f8(0x168)])(![]),_0x3d6a38=0x64-_0xa2fc80*0x64,_0x9b7000=[{'label':_0x4f933c['t'](_0x2c39f8(0x619)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x2c39f8(0x62b)])},{'label':_0x4f933c['t'](_0x2c39f8(0x287)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x5a5)])},{'label':_0x4f933c['t'](_0x2c39f8(0x3e9)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x52e)])},{'label':_0x4f933c['t'](_0x2c39f8(0x3f3)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x2b4)])},{'label':_0x4f933c['t'](_0x2c39f8(0x427)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['DashDot'])},{'label':_0x4f933c['t'](_0x2c39f8(0x383)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x2c39f8(0x5c0)])},{'label':_0x4f933c['t'](_0x2c39f8(0x58d)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x4f4)])},{'label':_0x4f933c['t'](_0x2c39f8(0x138)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x153)][_0x2c39f8(0x4a4)])}],_0x3fb23b=[{'label':_0x4f933c['t']('sheets-shape.line.capType.flat'),'value':String(_univerjs_pro_engine_shape['ShapeLineCapEnum'][_0x2c39f8(0x457)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1cc)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x449)][_0x2c39f8(0x43a)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1a8)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x449)][_0x2c39f8(0x4f1)])}],_0x478e95=[{'label':_0x4f933c['t'](_0x2c39f8(0x2c6)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)][_0x2c39f8(0x678)])},{'label':_0x4f933c['t'](_0x2c39f8(0x4cd)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)][_0x2c39f8(0x3ff)])},{'label':_0x4f933c['t']('sheets-shape.line.sketchType.freehand'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x495)]['Freehand'])},{'label':_0x4f933c['t'](_0x2c39f8(0x2d0)),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x2c39f8(0x680)])}],_0x49b9ea=[{'label':_0x4f933c['t']('sheets-shape.line.joinType.miter'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)][_0x2c39f8(0x4d2)])},{'label':_0x4f933c['t'](_0x2c39f8(0x143)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)][_0x2c39f8(0x43a)])},{'label':_0x4f933c['t'](_0x2c39f8(0x654)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x5f4)]['Bevel'])}],_0x454462=[{'label':_0x4f933c['t'](_0x2c39f8(0x3de)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x678)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.arrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x177)])},{'label':_0x4f933c['t'](_0x2c39f8(0x58b)),'value':String(_univerjs_pro_engine_shape['ShapeArrowTypeEnum']['OpenArrow'])},{'label':_0x4f933c['t'](_0x2c39f8(0x220)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x543)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x5ab)])},{'label':_0x4f933c['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x67d)][_0x2c39f8(0x671)])}],_0x9b600f=[{'label':_0x4f933c['t'](_0x2c39f8(0x634)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x47e)][_0x2c39f8(0x5fe)])},{'label':_0x4f933c['t'](_0x2c39f8(0x1e7)),'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x47e)]['Medium'])},{'label':_0x4f933c['t'](_0x2c39f8(0x2b3)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x2c39f8(0x5d6)])}];return(0x0,react_jsx_runtime[_0x2c39f8(0x399)])('div',{'className':_0x2c39f8(0x4bf),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_univerjs_design[_0x2c39f8(0x1e6)],{'value':String(_0x3b263f),'disabled':_0x42ea3d,'onChange':_0x3b0c86=>{const _0x29cf7a=_0x2c39f8;var _0x4b4a1b;_0x9ec8f1(Number(_0x3b0c86)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x4b4a1b=_0x295145[_0x29cf7a(0x600)])===null||_0x4b4a1b===void 0x0?void 0x0:_0x4b4a1b[_0x29cf7a(0x351)]}}},{'stroke':{'lineStrokeType':Number(_0x3b0c86)}});},'direction':_0x2c39f8(0x59a),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x11b)],{'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)][_0x2c39f8(0x58f)]),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x178),'children':_0x4f933c['t'](_0x2c39f8(0x37a))})}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Radio'],{'value':String(_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)][_0x2c39f8(0x53a)]),'children':(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':'univer-text-sm','children':_0x4f933c['t'](_0x2c39f8(0x567))})})]}),_0x3b263f!==_univerjs_pro_engine_shape[_0x2c39f8(0x3ce)]['NoLine']&&(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x373),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x20e))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Dropdown'],{'disabled':_0x42ea3d,'overlay':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x5d3),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3ab)],{'value':_0x27853f,'onChange':_0x5aa7c0=>{const _0x2d63b9=_0x2c39f8;var _0x1c90f0;updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'color':(_0x1c90f0=_0x295145[_0x2d63b9(0x600)])===null||_0x1c90f0===void 0x0?void 0x0:_0x1c90f0['color']}}},{'stroke':{'color':_0x5aa7c0}}),_0x129b19(_0x5aa7c0),_0x39fe4a(![]);}})}),'open':_0x377066,'onOpenChange':_0x39fe4a,'children':(0x0,react_jsx_runtime[_0x2c39f8(0x399)])('a',{'className':_0x2c39f8(0x2dd),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_icons[_0x2c39f8(0x321)],{'className':_0x2c39f8(0x5fb),'extend':{'colorChannel1':_0x27853f}}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_icons[_0x2c39f8(0x14a)],{'className':(0x0,_univerjs_design[_0x2c39f8(0x4e1)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x377066})})]})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x16f),'children':_0x4f933c['t'](_0x2c39f8(0x1f0))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x17b),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x127),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['InputNumber'],{'className':_0x2c39f8(0x623),'value':_0x3d6a38,'disabled':_0x42ea3d,'min':0x0,'max':0x64,'formatter':_0x5bf2d1=>_0x5bf2d1+'%','parser':_0x5dfed8=>(_0x5dfed8===null||_0x5dfed8===void 0x0?void 0x0:_0x5dfed8[_0x2c39f8(0x402)]('%',''))||'','onChange':_0x5ece91=>{const _0x3bbbe5=_0x2c39f8;var _0x23fbee;const _0x4d628c=(0x64-Math[_0x3bbbe5(0x1db)](0x0,Math['min'](0x64,_0x5ece91!==null&&_0x5ece91!==void 0x0?_0x5ece91:0x0)))/0x64;_0x355cb0(_0x4d628c),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'opacity':(_0x23fbee=_0x295145[_0x3bbbe5(0x600)])===null||_0x23fbee===void 0x0?void 0x0:_0x23fbee[_0x3bbbe5(0x406)]}}},{'stroke':{'opacity':_0x4d628c}}),_0xb0b3bb[_0x3bbbe5(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0xb0b3bb[_0x2c39f8(0x32c)](_univerjs_core[_0x2c39f8(0x59d)],!![]),'onBlur':_0x3f594c=>{const _0x55df3b=_0x2c39f8;_0xb0b3bb[_0x55df3b(0x32c)](_univerjs_core[_0x55df3b(0x59d)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x17b),'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x4ac))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x2c39f8(0x3b5),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x5f8)],{'className':_0x2c39f8(0x623),'disabled':_0x42ea3d,'value':_0x10dc98,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x27aa03=>_0x27aa03+_0x2c39f8(0x3ac),'parser':_0x573586=>(_0x573586===null||_0x573586===void 0x0?void 0x0:_0x573586['replace'](_0x2c39f8(0x3ac),''))||'','onChange':_0x2e8739=>{const _0x4b9b53=_0x2c39f8;if(!Number[_0x4b9b53(0x630)](_0x2e8739)&&_0x2e8739!==null){var _0x5661a9;updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'width':(_0x5661a9=_0x295145['stroke'])===null||_0x5661a9===void 0x0?void 0x0:_0x5661a9['width']}}},{'stroke':{'width':_0x2e8739}});}_0xb0b3bb[_0x4b9b53(0x32c)](_univerjs_core[_0x4b9b53(0x59d)],![]);},'onFocus':()=>_0xb0b3bb['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':_0xf1ff63=>{const _0x237dc9=_0x2c39f8;_0xb0b3bb[_0x237dc9(0x32c)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x2f6))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x142414),'options':_0x9b7000,'disabled':_0x42ea3d,'onChange':_0x72ff19=>{const _0x23343c=_0x2c39f8;var _0x4d68bc;_0xf2f553(Number(_0x72ff19)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'dashType':(_0x4d68bc=_0x295145[_0x23343c(0x600)])===null||_0x4d68bc===void 0x0?void 0x0:_0x4d68bc[_0x23343c(0x184)]}}},{'stroke':{'dashType':Number(_0x72ff19)}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t']('sheets-shape.line.capType.title')}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x3e5817),'options':_0x3fb23b,'disabled':_0x42ea3d,'onChange':_0x3c931a=>{const _0x389f2b=_0x2c39f8;var _0x1ade85;_0x5d256(Number(_0x3c931a)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'capType':(_0x1ade85=_0x295145[_0x389f2b(0x600)])===null||_0x1ade85===void 0x0?void 0x0:_0x1ade85[_0x389f2b(0x162)]}}},{'stroke':{'capType':Number(_0x3c931a)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x3e1))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x2726e9),'options':_0x49b9ea,'disabled':_0x42ea3d,'onChange':_0xb3e15d=>{const _0x444785=_0x2c39f8;var _0x1962e1;_0x56fe3d(Number(_0xb3e15d)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'lineJoinType':(_0x1962e1=_0x295145[_0x444785(0x600)])===null||_0x1962e1===void 0x0?void 0x0:_0x1962e1[_0x444785(0x189)]}}},{'stroke':{'lineJoinType':Number(_0xb3e15d)}});}})})]}),!_0x453eb1&&(0x0,react_jsx_runtime['jsxs'])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t'](_0x2c39f8(0x595))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x4c1c7a),'options':_0x478e95,'disabled':_0x42ea3d,'onChange':_0x5a2154=>{const _0x2e4b5f=_0x2c39f8;var _0x2a2112;_0xef070(Number(_0x5a2154)),updateShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'stroke':{'sketchType':(_0x2a2112=_0x295145[_0x2e4b5f(0x600)])===null||_0x2a2112===void 0x0?void 0x0:_0x2a2112[_0x2e4b5f(0x657)]}}},{'stroke':{'sketchType':Number(_0x5a2154)}});}})})]}),_0x453eb1&&(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4f933c['t'](_0x2c39f8(0x131))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':'univer-w-28','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Select'],{'className':_0x2c39f8(0x623),'value':String(_0x17ecb5),'options':_0x454462,'onChange':_0xd74357=>{var _0x4200d6;_0xe01a5e(Number(_0xd74357)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x4200d6=_0x295145['ln'])===null||_0x4200d6===void 0x0||(_0x4200d6=_0x4200d6['startArrow'])===null||_0x4200d6===void 0x0?void 0x0:_0x4200d6['type']}}}},{'ln':{'startArrow':{'type':Number(_0xd74357)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x258))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])('div',{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design['Select'],{'className':_0x2c39f8(0x623),'value':String(_0x15d897),'options':_0x9b600f,'onChange':_0x5f428c=>{const _0x539df6=_0x2c39f8;var _0x3a7a2;_0x2a2226(Number(_0x5f428c)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x3a7a2=_0x295145['ln'])===null||_0x3a7a2===void 0x0||(_0x3a7a2=_0x3a7a2[_0x539df6(0x231)])===null||_0x3a7a2===void 0x0?void 0x0:_0x3a7a2[_0x539df6(0x2a7)]}}}},{'ln':{'startArrow':{'size':Number(_0x5f428c)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x265))}),(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0x21a1e1),'options':_0x454462,'onChange':_0x5b5c86=>{const _0xa65583=_0x2c39f8;var _0x4cb23b;_0x1e5b5e(Number(_0x5b5c86)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x4cb23b=_0x295145['ln'])===null||_0x4cb23b===void 0x0||(_0x4cb23b=_0x4cb23b[_0xa65583(0x3b8)])===null||_0x4cb23b===void 0x0?void 0x0:_0x4cb23b[_0xa65583(0x489)]}}}},{'ln':{'endArrow':{'type':Number(_0x5b5c86)}}});}})})]}),(0x0,react_jsx_runtime[_0x2c39f8(0x399)])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x583),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x273),{'className':_0x2c39f8(0x2ef),'children':_0x4f933c['t'](_0x2c39f8(0x348))}),(0x0,react_jsx_runtime['jsx'])(_0x2c39f8(0x14c),{'className':_0x2c39f8(0x2fb),'children':(0x0,react_jsx_runtime[_0x2c39f8(0x326)])(_univerjs_design[_0x2c39f8(0x3d2)],{'className':_0x2c39f8(0x623),'value':String(_0xdbbb3b),'options':_0x9b600f,'onChange':_0xc54075=>{const _0x50b864=_0x2c39f8;var _0x17a0fb;_0x508adc(Number(_0xc54075)),updateLineShapeData(_0x429fec,_0x267776,_0x41d803,_0x3ce84e,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x17a0fb=_0x295145['ln'])===null||_0x17a0fb===void 0x0||(_0x17a0fb=_0x17a0fb[_0x50b864(0x3b8)])===null||_0x17a0fb===void 0x0?void 0x0:_0x17a0fb[_0x50b864(0x2a7)]}}}},{'ln':{'endArrow':{'size':Number(_0xc54075)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x167f05=_0x101898,_0x4b2484=(0x0,_univerjs_ui[_0x167f05(0x14f)])(_univerjs_drawing[_0x167f05(0x415)]),[_0xb8861f,_0x58a5cd]=(0x0,react[_0x167f05(0x168)])(_0x4b2484[_0x167f05(0x4f6)]());(0x0,react['useEffect'])(()=>{const _0x2ff932=_0x167f05,_0xee4237=_0x4b2484[_0x2ff932(0x5ed)][_0x2ff932(0x4fd)](_0x3148ec=>{_0x58a5cd(_0x3148ec);});return()=>{const _0x46753e=_0x2ff932;_0xee4237[_0x46753e(0x472)]();};},[]);if(_0xb8861f[_0x167f05(0x1ec)]===0x0)return null;return(0x0,react_jsx_runtime[_0x167f05(0x326)])(_0x167f05(0x14c),{'children':(0x0,react_jsx_runtime[_0x167f05(0x399)])('div',{'className':_0x167f05(0x202),'children':[(0x0,react_jsx_runtime[_0x167f05(0x326)])(_univerjs_drawing_ui[_0x167f05(0x54d)],{'drawings':_0xb8861f,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x167f05(0x326)])(_univerjs_sheets_drawing_ui[_0x167f05(0x3fc)],{'drawings':_0xb8861f})]})});}function ShapeEditPanel(_0x3e74cf){const _0xca29fb=_0x101898,{shapeData:_0x3097f9,shapeId:_0x11b41c,shapeType:_0x4f2d0d,version:_0x4b2ee6,unitId:_0x1e79c6,subUnitId:_0xc7a9bb,disableShapeOption:_0x5f0e1d}=_0x3e74cf,_0x104231=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0xca29fb(0x334)]),_0x473d90=(0x0,_univerjs_pro_engine_shape[_0xca29fb(0x277)])(_0x4f2d0d),[_0x23e910,_0x3a1eaa]=(0x0,react[_0xca29fb(0x168)])(0x0),_0x1ea57e=[{'label':(0x0,react_jsx_runtime[_0xca29fb(0x326)])('div',{'children':_0x104231['t'](_0xca29fb(0x384))}),'children':(0x0,react_jsx_runtime['jsx'])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapeFillEditor,{'shapeId':_0x11b41c,'shapeData':_0x3097f9,'isLineShape':_0x473d90,'subUnitId':_0xc7a9bb,'unitId':_0x1e79c6,'disableShapeOption':_0x5f0e1d},_0x11b41c)})},{'label':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'children':_0x104231['t'](_0xca29fb(0x49f))}),'children':(0x0,react_jsx_runtime['jsx'])(_0xca29fb(0x31d),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapeLineEditor,{'shapeId':_0x11b41c,'shapeData':_0x3097f9,'isLineShape':_0x473d90,'subUnitId':_0xc7a9bb,'unitId':_0x1e79c6,'disableShapeOption':_0x5f0e1d},_0x11b41c)})}];return(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':_0xca29fb(0x275),'children':[(0x0,react_jsx_runtime['jsxs'])(_0xca29fb(0x14c),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design['clsx'])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',_0x23e910===0x0?'univer-text-primary-600':_0xca29fb(0x5fb)),'onClick':()=>_0x3a1eaa(0x0),'children':[_0x104231['t']('sheets-shape.shapeStyle'),(0x0,react_jsx_runtime['jsx'])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design[_0xca29fb(0x4e1)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x23e910===0x0,'univer-bg-transparent':_0x23e910!==0x0})})]}),(0x0,react_jsx_runtime[_0xca29fb(0x399)])(_0xca29fb(0x14c),{'className':(0x0,_univerjs_design['clsx'])(_0xca29fb(0x243),{'univer-text-primary-600':_0x23e910===0x1,'univer-text-gray-500':_0x23e910!==0x1}),'onClick':()=>_0x3a1eaa(0x1),'children':[_0x104231['t'](_0xca29fb(0x3c6)),(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0xca29fb(0x4e1)])(_0xca29fb(0x387),{'univer-bg-primary-600':_0x23e910===0x1,'univer-bg-transparent':_0x23e910!==0x1})})]})]}),(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'className':_0xca29fb(0x507),'children':_0x23e910===0x0?(0x0,react_jsx_runtime[_0xca29fb(0x326)])(_0xca29fb(0x14c),{'className':'','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0xca29fb(0x1d3)],{'items':_0x1ea57e})},_0x4b2ee6):(0x0,react_jsx_runtime[_0xca29fb(0x326)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x9cdda2,_0x57931f){const _0x202dc3=_0x101898;super(_0x9cdda2,_0x57931f),_defineProperty(this,'_shapeId',null),_defineProperty(this,'_adjName',null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null);if(_0x57931f)this[_0x202dc3(0x188)](_0x57931f);}[_0x101898(0x54c)](){const _0x22b585=_0x101898;return{'unitId':this[_0x22b585(0x2ae)],'subUnitId':this[_0x22b585(0x1a9)],'drawingId':this[_0x22b585(0x61c)]};}[_0x101898(0x188)](_0x570d8b){const _0x39ff7e=_0x101898;if(typeof _0x570d8b[_0x39ff7e(0x49a)]!==_0x39ff7e(0x4c4))this['_shapeId']=_0x570d8b[_0x39ff7e(0x49a)];if(typeof _0x570d8b[_0x39ff7e(0x1aa)]!==_0x39ff7e(0x4c4))this[_0x39ff7e(0x32a)]=_0x570d8b['adjName'];if(typeof _0x570d8b['unitId']!==_0x39ff7e(0x4c4))this['_unitId']=_0x570d8b[_0x39ff7e(0x3aa)];if(typeof _0x570d8b[_0x39ff7e(0x343)]!==_0x39ff7e(0x4c4))this[_0x39ff7e(0x1a9)]=_0x570d8b[_0x39ff7e(0x343)];this['transformByState']({'width':_0x570d8b['width'],'height':_0x570d8b[_0x39ff7e(0x57c)]});}[_0x101898(0x18c)](_0x52105a){const _0x54a5e5=_0x101898;_univerjs_engine_render['Circle'][_0x54a5e5(0x15d)](_0x52105a,{'radius':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x54a5e5(0x564)],'fill':_univerjs_pro_engine_shape[_0x54a5e5(0x30a)][_0x54a5e5(0x1d1)],'stroke':_univerjs_pro_engine_shape[_0x54a5e5(0x30a)][_0x54a5e5(0x25d)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x48b1c6,_0x276fbe,_0x2a96d3,_0x15e196,_0x238083,_0x5c6c51,_0x1f0564,_0x944e9a){const _0x7cc641=_0x101898;super(),this[_0x7cc641(0x643)]=_0x48b1c6,this[_0x7cc641(0x5a9)]=_0x276fbe,this[_0x7cc641(0x3c9)]=_0x2a96d3,this[_0x7cc641(0x352)]=_0x15e196,this['_renderManagerService']=_0x238083,this[_0x7cc641(0x270)]=_0x5c6c51,this[_0x7cc641(0x2e4)]=_0x1f0564,this[_0x7cc641(0x36d)]=_0x944e9a,_defineProperty(this,'_activeShapeId',null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0x7cc641(0x1a9),null),_defineProperty(this,_0x7cc641(0x2b5),void 0x0),_defineProperty(this,_0x7cc641(0x3d3),[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,'_baseShapeTop',0x0),_defineProperty(this,_0x7cc641(0x370),0x0),_defineProperty(this,_0x7cc641(0x1d6),0x0),_defineProperty(this,_0x7cc641(0x353),![]),_defineProperty(this,_0x7cc641(0x2f3),void 0x0),_defineProperty(this,_0x7cc641(0x40e),void 0x0),_defineProperty(this,_0x7cc641(0x58e),void 0x0),_defineProperty(this,_0x7cc641(0x3fa),void 0x0),_defineProperty(this,_0x7cc641(0x548),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x7cc641(0x490)]();}[_0x101898(0x3cd)](_0x3e0aac,_0x39586e,_0x245178){const _0x5eeafb=_0x101898,_0x1f7a6b=this[_0x5eeafb(0x352)][_0x5eeafb(0x148)](_0x3e0aac,_0x39586e,_0x245178);if(_0x1f7a6b)return _0x1f7a6b[_0x5eeafb(0x23f)]();}['clearAdjustControls'](){const _0x220ec1=_0x101898;this[_0x220ec1(0x1eb)]();}[_0x101898(0x429)](){const _0x2fac74=_0x101898;this[_0x2fac74(0x36b)](!![]);}[_0x101898(0x176)](_0x228fc8){const _0x1159ab=_0x101898;this[_0x1159ab(0x548)]=_0x228fc8;}[_0x101898(0x3ae)](_0x4c7c6e,_0xad3b35,_0x1c73b4,_0xec20e2){const _0x34916a=_0x101898,_0x22f9fc=this[_0x34916a(0x352)][_0x34916a(0x148)](_0x4c7c6e,_0xad3b35,_0x1c73b4);if(_0x22f9fc)return _0x22f9fc[_0x34916a(0x2ed)](_0xec20e2);}[_0x101898(0x22d)](_0x39be6a=![]){const _0x278ee8=_0x101898;if(this[_0x278ee8(0x2ae)]===null||this[_0x278ee8(0x1a9)]===null||this['_activeShapeId']===null)return;const _0x563430=this['_renderManagerService'][_0x278ee8(0x1f9)](this[_0x278ee8(0x2ae)]);if(!_0x563430)return;if(!_0x563430[_0x278ee8(0x593)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x278ee8(0x442)]())return;const {scene:_0x4f4b20}=_0x563430,_0x29f829={'unitId':this[_0x278ee8(0x2ae)],'subUnitId':this[_0x278ee8(0x1a9)],'drawingId':this[_0x278ee8(0x2c9)]},_0x224b44=this[_0x278ee8(0x3c9)][_0x278ee8(0x52f)](_0x29f829),{transform:_0x9b2565}=_0x224b44;if(!_0x9b2565)return;if(_0x224b44[_0x278ee8(0x324)]!==_univerjs_core[_0x278ee8(0x229)][_0x278ee8(0x535)])return;const {left:_0x2d9dce,top:_0x5cdb49,width:_0x417070,height:_0x10e19b,flipX:_0x21a170,flipY:_0xf1aca8,angle:angle=0x0}=_0x9b2565;if(_0x2d9dce===void 0x0||_0x5cdb49===void 0x0)return;if(_0x39be6a)this[_0x278ee8(0x2b5)]=this[_0x278ee8(0x3cd)](this[_0x278ee8(0x2ae)],this[_0x278ee8(0x1a9)],this[_0x278ee8(0x2c9)]);const _0x59d570=this[_0x278ee8(0x2b5)];for(let _0xd0740f=0x0;_0xd0740f<_0x59d570[_0x278ee8(0x1ec)];_0xd0740f++){const _0x2bf592=_0x59d570[_0xd0740f];let _0x160c4c=_0x2bf592['x'],_0x22e7d6=_0x2bf592['y'];if(_0x21a170)_0x160c4c=(_0x417070||0x0)-_0x160c4c;if(_0xf1aca8)_0x22e7d6=(_0x10e19b||0x0)-_0x22e7d6;if(angle!==0x0){const _0x463e46=(_0x417070||0x0)/0x2,_0x518416=(_0x10e19b||0x0)/0x2,_0x5e574c=angle*Math['PI']/0xb4,_0x322450=Math[_0x278ee8(0x409)](_0x5e574c),_0x518990=Math[_0x278ee8(0x315)](_0x5e574c),_0xc2c59f=_0x160c4c-_0x463e46,_0x30d532=_0x22e7d6-_0x518416;_0x160c4c=_0x463e46+(_0xc2c59f*_0x322450-_0x30d532*_0x518990),_0x22e7d6=_0x518416+(_0xc2c59f*_0x518990+_0x30d532*_0x322450);}const _0x2d3d72={'x':_0x160c4c,'y':_0x22e7d6,'adjName':_0x2bf592[_0x278ee8(0x1aa)]};this[_0x278ee8(0x4e4)](_0x4f4b20,_0x2d3d72,_0x2d3d72[_0x278ee8(0x1aa)],_0x2d9dce,_0x5cdb49,this[_0x278ee8(0x2ae)],this[_0x278ee8(0x1a9)]);}}[_0x101898(0x36b)](_0x9b75d4=![]){const _0x58b127=_0x101898;_0x9b75d4&&(this['_clearShapeAdjustControls'](),this[_0x58b127(0x22d)](_0x9b75d4));}[_0x101898(0x4e4)](_0x31db1e,_0x518dc8,_0x3cc982,_0x25ba59,_0x44a89b,_0x340ce5,_0x4e9434){const _0x21dbc2=_0x101898;if(!this[_0x21dbc2(0x2c9)])return;const _0x23dd75=_0x31db1e[_0x21dbc2(0x157)](_0x21dbc2(0x1cb)+this[_0x21dbc2(0x2c9)]+'-'+_0x3cc982);if(_0x23dd75){_0x23dd75[_0x21dbc2(0x46b)]({'left':_0x518dc8['x']+_0x25ba59-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)],'top':_0x518dc8['y']+_0x44a89b-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]});return;}const _0x4b8493={'left':_0x518dc8['x']+_0x25ba59-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)]['adjHandleSize'],'top':_0x518dc8['y']+_0x44a89b-_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)],'adjName':_0x3cc982,'shapeId':this[_0x21dbc2(0x2c9)],'unitId':_0x340ce5,'subUnitId':_0x4e9434,'width':_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]+0x8,'height':_univerjs_pro_engine_shape[_0x21dbc2(0x30a)][_0x21dbc2(0x564)]+0x8,'zIndex':_univerjs_engine_render[_0x21dbc2(0x11f)]+0x1,'evented':!![]},_0x3c9e7f=new SheetShapeAdjustPointObject(_0x21dbc2(0x1cb)+this[_0x21dbc2(0x2c9)]+'-'+_0x3cc982,_0x4b8493);this[_0x21dbc2(0x3d3)][_0x21dbc2(0x2f9)](_0x3c9e7f),this[_0x21dbc2(0x13d)](_0x3c9e7f,_0x31db1e,_0x3cc982),_0x31db1e[_0x21dbc2(0x22c)](_0x3c9e7f,_univerjs_engine_render[_0x21dbc2(0x11f)]+0x1);}[_0x101898(0x1eb)](){const _0x4aba28=_0x101898;if(this['_shapes'][_0x4aba28(0x1ec)]===0x0)return;this[_0x4aba28(0x3d3)][_0x4aba28(0x5aa)](_0x1c14bc=>{_0x1c14bc['dispose']();}),this[_0x4aba28(0x3d3)]=[];}[_0x101898(0x390)](){const _0x348ce1=_0x101898;this[_0x348ce1(0x22d)]();}[_0x101898(0x555)](_0x2fc6d2,_0xa036ba){const _0x94d67e=_0x101898;var _0xe2a542;const _0x595cd9={'x':0x0,'y':0x0};if(!_0x2fc6d2||!_0xa036ba)return _0x595cd9;const _0x58fe48=this[_0x94d67e(0x28f)][_0x94d67e(0x1f9)](_0x2fc6d2);if(!_0x58fe48)return _0x595cd9;if(!_0x58fe48[_0x94d67e(0x593)](_univerjs_sheets_ui[_0x94d67e(0x217)])[_0x94d67e(0x1f6)](_0xa036ba))return _0x595cd9;const _0x569032=_0x58fe48[_0x94d67e(0x593)](_univerjs_sheets_ui[_0x94d67e(0x574)]),_0xd90d90=_0x569032===null||_0x569032===void 0x0?void 0x0:_0x569032[_0x94d67e(0x599)]();if(!_0xd90d90)return _0x595cd9;const _0x1c1092=(_0xe2a542=this[_0x94d67e(0x2e4)]['getUnit'](_0x2fc6d2))===null||_0xe2a542===void 0x0?void 0x0:_0xe2a542[_0x94d67e(0x5f6)](_0xa036ba);if(!_0x1c1092)return _0x595cd9;const _0x543c25=(0x0,_univerjs_sheets_ui[_0x94d67e(0x499)])(_0xd90d90[_0x94d67e(0x338)],_0xd90d90['sheetViewStartColumn'],_0x58fe48[_0x94d67e(0x2dc)],_0x1c1092);if(!_0x543c25)return _0x595cd9;return{'x':_0x543c25[_0x94d67e(0x149)],'y':_0x543c25[_0x94d67e(0x193)]};}[_0x101898(0x491)](_0x44ff2e,_0x5dfa67){const _0x2ee45b=_0x101898;var _0x2c4a4a,_0x23cdae;const _0x1f24e6=(_0x2c4a4a=this[_0x2ee45b(0x2e4)][_0x2ee45b(0x589)](_0x44ff2e))===null||_0x2c4a4a===void 0x0?void 0x0:_0x2c4a4a[_0x2ee45b(0x5f6)](_0x5dfa67);return(_0x23cdae=_0x1f24e6===null||_0x1f24e6===void 0x0?void 0x0:_0x1f24e6[_0x2ee45b(0x4ba)]())!==null&&_0x23cdae!==void 0x0?_0x23cdae:0x1;}[_0x101898(0x13d)](_0x44f8bd,_0x4cf181,_0x41299f){const _0x141174=_0x101898;this['disposeWithMe']((0x0,_univerjs_core[_0x141174(0x266)])(_0x44f8bd['onPointerDown$'][_0x141174(0x3a5)]((_0x351afa,_0xb981d1)=>{const _0x1b7d49=_0x141174;var _0x40c758,_0x5a58fa,_0x43ff44,_0x1a4743;const _0x51cfbd=_0x44f8bd['getDrawingSearch']();this[_0x1b7d49(0x2f3)]=this[_0x1b7d49(0x3ae)](_0x51cfbd['unitId'],_0x51cfbd[_0x1b7d49(0x343)],_0x51cfbd['drawingId'],_0x41299f),this[_0x1b7d49(0x40e)]=this['_sheetsShapeService'][_0x1b7d49(0x148)](_0x51cfbd[_0x1b7d49(0x3aa)],_0x51cfbd[_0x1b7d49(0x343)],_0x51cfbd[_0x1b7d49(0x16c)]);const _0xfd60a3=this[_0x1b7d49(0x3c9)][_0x1b7d49(0x52f)]({'unitId':this['_unitId'],'subUnitId':this[_0x1b7d49(0x1a9)],'drawingId':this['_activeShapeId']}),{transform:_0x395594}=_0xfd60a3;if(_0x395594){const {left:_0x4f89f8,top:_0x1e873b,width:_0x8524de,height:_0x54dec4}=_0x395594;this[_0x1b7d49(0x4d7)]=_0x4f89f8||0x0,this['_baseShapeTop']=_0x1e873b||0x0,this[_0x1b7d49(0x370)]=_0x8524de||0x0,this[_0x1b7d49(0x1d6)]=_0x54dec4||0x0;}const _0x10be96=Boolean((_0x40c758=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x40c758===void 0x0?void 0x0:_0x40c758[_0x1b7d49(0x4e0)]),_0x2cf7ca=Boolean((_0x5a58fa=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x5a58fa===void 0x0?void 0x0:_0x5a58fa[_0x1b7d49(0x34d)]),_0x5d6923=((_0x43ff44=_0xfd60a3[_0x1b7d49(0x519)])===null||_0x43ff44===void 0x0?void 0x0:_0x43ff44[_0x1b7d49(0x2f5)])||0x0;this[_0x1b7d49(0x353)]=!![],_0x4cf181[_0x1b7d49(0x1c5)]();const _0x5e8e3b=(_0x1a4743=this['_activeShapeModel'])===null||_0x1a4743===void 0x0?void 0x0:_0x1a4743[_0x1b7d49(0x29c)](_0x41299f),_0x36cc9d={[_0x41299f]:_0x5e8e3b};this['_adjHandlerPointerMove']=_0x4cf181['onPointerMove$'][_0x1b7d49(0x3a5)]((_0x238b11,_0x723f9f)=>{const _0x12dab5=_0x1b7d49;if(!this['_isStartAdjusting'])return;const {offsetX:_0x52eeb9,offsetY:_0x14955e}=_0x238b11,_0xf6bf20=this[_0x12dab5(0x2f3)];if(this[_0x12dab5(0x40e)]&&_0xf6bf20){_0x4cf181[_0x12dab5(0x1c5)](),_0x4cf181[_0x12dab5(0x401)](_univerjs_engine_render[_0x12dab5(0x249)][_0x12dab5(0x374)]);const _0x41b1f0={'left':0x0,'top':0x0,'width':this[_0x12dab5(0x370)],'height':this['_baseShapeHeight']},_0x2c957d=this[_0x12dab5(0x555)](this[_0x12dab5(0x2ae)],this[_0x12dab5(0x1a9)]),_0x111296=this[_0x12dab5(0x491)](this[_0x12dab5(0x2ae)],this[_0x12dab5(0x1a9)]);let _0x163880=_0x52eeb9/_0x111296+_0x2c957d['x']-this[_0x12dab5(0x4d7)],_0x581c38=_0x14955e/_0x111296+_0x2c957d['y']-this['_baseShapeTop'];if(_0x5d6923!==0x0){const _0x3e1e85=this[_0x12dab5(0x370)]/0x2,_0x494678=this[_0x12dab5(0x1d6)]/0x2,_0x52cc30=_0x5d6923*Math['PI']/0xb4,_0x173074=Math[_0x12dab5(0x409)](_0x52cc30),_0x2b34c2=Math[_0x12dab5(0x315)](_0x52cc30),_0x58c757=_0x163880-_0x3e1e85,_0x5db939=_0x581c38-_0x494678;_0x163880=_0x3e1e85+(_0x58c757*_0x173074+_0x5db939*_0x2b34c2),_0x581c38=_0x494678+(-_0x58c757*_0x2b34c2+_0x5db939*_0x173074);}if(_0x10be96)_0x163880=this[_0x12dab5(0x370)]-_0x163880;if(_0x2cf7ca)_0x581c38=this[_0x12dab5(0x1d6)]-_0x581c38;const _0x20a0bd={'x':_0x163880,'y':_0x581c38},_0x21156c=this[_0x12dab5(0x40e)]['calcAdjValue'](_0x41b1f0,_0x20a0bd,_0xf6bf20,_0x10be96,_0x2cf7ca),_0x207204=_0xf6bf20[_0x12dab5(0x3dd)]||_0xf6bf20['gdRefY']||_0xf6bf20[_0x12dab5(0x617)]||_0xf6bf20['gdRefR'];if(_0x207204===void 0x0)return;this[_0x12dab5(0x40e)][_0x12dab5(0x58a)](_0x207204,_0x21156c);const _0x57c359=this['_drawingManagerService'][_0x12dab5(0x52f)]({'unitId':_0x51cfbd['unitId'],'subUnitId':_0x51cfbd['subUnitId'],'drawingId':_0x51cfbd[_0x12dab5(0x16c)]});_0x57c359&&(this[_0x12dab5(0x270)][_0x12dab5(0x19c)](_0x57c359,_0x4cf181),this[_0x12dab5(0x2b5)]=this[_0x12dab5(0x3cd)](_0x51cfbd['unitId'],_0x51cfbd[_0x12dab5(0x343)],_0x51cfbd[_0x12dab5(0x16c)]),this[_0x12dab5(0x390)]());}_0x723f9f[_0x12dab5(0x160)]();}),this['_adjHandlerPointerUp']=_0x4cf181[_0x1b7d49(0x173)][_0x1b7d49(0x3a5)]((_0x459468,_0x1c882f)=>{const _0x5aa5a5=_0x1b7d49;this[_0x5aa5a5(0x58e)][_0x5aa5a5(0x472)](),this[_0x5aa5a5(0x3fa)]['unsubscribe'](),_0x4cf181['resetCursor']();const _0x14d19f=this[_0x5aa5a5(0x2f3)];if(_0x14d19f){const _0x56ae7f=_0x51cfbd['unitId'],_0xc70d23=_0x51cfbd['subUnitId'],_0x3c470c=_0x51cfbd[_0x5aa5a5(0x16c)],_0x47cb8f=_0x14d19f[_0x5aa5a5(0x3dd)]||_0x14d19f[_0x5aa5a5(0x306)]||_0x14d19f['gdRefAng']||_0x14d19f[_0x5aa5a5(0x2ad)];if(_0x47cb8f!==void 0x0){var _0x539034;const _0x2a5a5d=(_0x539034=this[_0x5aa5a5(0x40e)])===null||_0x539034===void 0x0?void 0x0:_0x539034[_0x5aa5a5(0x29c)](_0x47cb8f);if(_0x2a5a5d!==void 0x0)updateShapeData(this[_0x5aa5a5(0x36d)],_0x56ae7f,_0xc70d23,_0x3c470c,{'oldShapeData':{'adjustValues':_0x36cc9d}},{'adjustValues':{[_0x47cb8f]:_0x2a5a5d}});}}this[_0x5aa5a5(0x2f3)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5aa5a5(0x353)]=![],_0x1c882f[_0x5aa5a5(0x160)](),_0x4cf181[_0x5aa5a5(0x123)]();}),_0xb981d1[_0x1b7d49(0x160)]();})));}[_0x101898(0x490)](){const _0x2f05f6=_0x101898,_0x7c5551=this[_0x2f05f6(0x2e4)][_0x2f05f6(0x566)](_univerjs_core[_0x2f05f6(0x1e3)][_0x2f05f6(0x42f)]);this['disposeWithMe'](_0x7c5551[_0x2f05f6(0x63e)]((0x0,rxjs[_0x2f05f6(0x3f8)])(_0x50382f=>{const _0x40a9b7=_0x2f05f6;if(!_0x50382f)return rxjs[_0x40a9b7(0x180)];return _0x50382f[_0x40a9b7(0x522)][_0x40a9b7(0x63e)]((0x0,rxjs['switchMap'])(_0x347b92=>{const _0xa51034=_0x40a9b7;if(!_0x347b92)return rxjs['EMPTY'];const _0x27ebd1=_0x50382f[_0xa51034(0x5b1)](),_0xc5499f=this['_renderManagerService']['getRenderById'](_0x27ebd1),_0x68b863=_0xc5499f===null||_0xc5499f===void 0x0?void 0x0:_0xc5499f[_0xa51034(0x2dc)];if(!_0x68b863)return rxjs[_0xa51034(0x180)];return(0x0,rxjs['of'])(_0x68b863);}));}))[_0x2f05f6(0x4fd)](_0x111e4f=>{const _0x3f4484=_0x2f05f6,_0x36c638=_0x111e4f[_0x3f4484(0x53f)]();this[_0x3f4484(0x1ff)](_0x111e4f[_0x3f4484(0x14b)]['subscribeEvent'](()=>{const _0x5697f4=_0x3f4484;if(this[_0x5697f4(0x548)]){}})),this[_0x3f4484(0x1ff)](_0x36c638[_0x3f4484(0x155)]['subscribe'](_0xd005f5=>{const _0x227681=_0x3f4484,{objects:_0xc28e6d}=_0xd005f5;this['_createShapeAdjustControls']();if(_0xc28e6d!==null&&_0xc28e6d[_0x227681(0x2a7)]===0x1){if(_0xc28e6d['values']()['next']()[_0x227681(0x2f1)]instanceof DrawingShape)this[_0x227681(0x176)](!![]);}})),this[_0x3f4484(0x1ff)](_0x36c638[_0x3f4484(0x54f)]['subscribe'](()=>{const _0x2b635d=_0x3f4484;if(this[_0x2b635d(0x548)])this['_clearShapeAdjustControls']();})),this[_0x3f4484(0x1ff)](_0x111e4f[_0x3f4484(0x173)]['subscribeEvent'](()=>{const _0x3c8b41=_0x3f4484;this[_0x3c8b41(0x548)]&&(this[_0x3c8b41(0x176)](![]),this[_0x3c8b41(0x22d)]());})),this['disposeWithMe'](_0x36c638['changeEnd$'][_0x3f4484(0x4fd)](()=>{const _0x284cac=_0x3f4484;this[_0x284cac(0x2ae)]&&this[_0x284cac(0x1a9)]&&this[_0x284cac(0x2c9)]&&(this[_0x284cac(0x3c9)][_0x284cac(0x52f)]({'unitId':this[_0x284cac(0x2ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x284cac(0x2c9)]})&&(this[_0x284cac(0x2b5)]=this['_getShapeAdjustPointListById'](this[_0x284cac(0x2ae)],this[_0x284cac(0x1a9)],this[_0x284cac(0x2c9)]),this[_0x284cac(0x390)]()));}));}));}[_0x101898(0x606)](){const _0x5efa1c=_0x101898;this[_0x5efa1c(0x1ff)](this['_drawingManagerService'][_0x5efa1c(0x5ed)][_0x5efa1c(0x4fd)](_0x40b647=>{const _0xb70694=_0x5efa1c;if(_0x40b647[_0xb70694(0x1ec)]===0x1){const _0x2dbeb2=_0x40b647[0x0];if(_0x2dbeb2[_0xb70694(0x324)]===_univerjs_core[_0xb70694(0x229)]['DRAWING_SHAPE']){this[_0xb70694(0x2c9)]=_0x2dbeb2['drawingId'];const {unitId:_0x16547c,subUnitId:_0x563059}=_0x2dbeb2;this[_0xb70694(0x2b5)]=this[_0xb70694(0x3cd)](_0x16547c,_0x563059,this[_0xb70694(0x2c9)]),this['_unitId']=_0x16547c,this['_subUnitId']=_0x563059,this['_clearShapeAdjustControls'](),this[_0xb70694(0x22d)]();}else this[_0xb70694(0x2c9)]=null,this[_0xb70694(0x2b5)]=void 0x0,this['_unitId']=null,this[_0xb70694(0x1a9)]=null,this['_clearShapeAdjustControls']();}(_0x40b647[_0xb70694(0x1ec)]>0x1||_0x40b647[_0xb70694(0x1ec)]===0x0)&&(this[_0xb70694(0x2c9)]=null,this[_0xb70694(0x2b5)]=void 0x0,this[_0xb70694(0x2ae)]=null,this[_0xb70694(0x1a9)]=null,this[_0xb70694(0x1eb)]());})),this[_0x5efa1c(0x1ff)](this['_drawingManagerService'][_0x5efa1c(0x523)][_0x5efa1c(0x4fd)](_0x33d1a2=>{const _0x10d6cf=_0x5efa1c;if(_0x33d1a2['length']===0x1){var _0x372ab1;const _0x2ce8e8=_0x33d1a2[0x0];if(((_0x372ab1=this['_drawingManagerService'][_0x10d6cf(0x52f)](_0x2ce8e8))===null||_0x372ab1===void 0x0?void 0x0:_0x372ab1['drawingType'])===_univerjs_core[_0x10d6cf(0x229)][_0x10d6cf(0x535)])this['_updateShapeAdjustControls'](!![]);}})),this[_0x5efa1c(0x1ff)](this[_0x5efa1c(0x3c9)][_0x5efa1c(0x5ad)][_0x5efa1c(0x4fd)](_0x470242=>{const _0x538b6d=_0x5efa1c;for(const _0x55b009 of _0x470242)this[_0x538b6d(0x2c9)]===_0x55b009['drawingId']&&(this[_0x538b6d(0x2c9)]=null,this[_0x538b6d(0x2b5)]=void 0x0,this['_unitId']=null,this[_0x538b6d(0x1a9)]=null,this[_0x538b6d(0x1eb)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core['IContextService']),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_engine_render[_0x101898(0x500)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x7,_univerjs_core[_0x101898(0x55c)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x101898(0x53d),'type':_univerjs_core[_0x101898(0x483)][_0x101898(0x47b)],'handler':(_0x30f6e2,_0x1060cc)=>{const _0x228f26=_0x101898,_0x291ac9=_0x30f6e2['get'](_univerjs_drawing[_0x228f26(0x415)]),_0x17cca1=_0x30f6e2[_0x228f26(0x49b)](_univerjs_engine_render['IRenderManagerService']),_0x245fa2=_0x30f6e2[_0x228f26(0x49b)](SheetShapeAdjustController);if(_0x1060cc==null)return!![];if(_0x1060cc['length']>0x0){var _0x23913f;const _0x58497b=(_0x23913f=_0x17cca1[_0x228f26(0x1f9)](_0x1060cc[0x0][_0x228f26(0x3aa)]))===null||_0x23913f===void 0x0?void 0x0:_0x23913f[_0x228f26(0x2dc)];if(_0x58497b){const {unitId:_0x2e4e75,subUnitId:_0x1f5427,drawingId:_0x58ac98}=_0x1060cc[0x0],_0x82c806=(0x0,_univerjs_drawing[_0x228f26(0x38f)])({'unitId':_0x2e4e75,'subUnitId':_0x1f5427,'drawingId':_0x58ac98},void 0x0),_0x17f9eb=_0x58497b['getObjectIncludeInGroup'](_0x82c806);if(_0x17f9eb){var _0x2f2539;(_0x2f2539=_0x17cca1[_0x228f26(0x1f9)](_0x1060cc[0x0]['unitId']))===null||_0x2f2539===void 0x0||(_0x2f2539=_0x2f2539[_0x228f26(0x2dc)][_0x228f26(0x345)]())===null||_0x2f2539===void 0x0||_0x2f2539[_0x228f26(0x1e4)](_0x17f9eb);}}_0x291ac9['focusDrawing'](_0x1060cc),_0x245fa2[_0x228f26(0x176)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x101898(0x483)]['COMMAND'],'id':_0x101898(0x363),'handler':async(_0x2b75c7,_0x5837d6)=>{const _0x53f77c=_0x101898,_0x2cdfd7=(0x0,_univerjs_sheets[_0x53f77c(0x3ef)])(_0x2b75c7[_0x53f77c(0x49b)](_univerjs_core[_0x53f77c(0x653)]));if(!_0x2cdfd7)return![];const _0x5645e0=_0x2b75c7['get'](_univerjs_sheets[_0x53f77c(0x274)])[_0x53f77c(0x45f)]();if(!_0x5645e0)return![];const _0x3ac38a=_0x2b75c7[_0x53f77c(0x49b)](_univerjs_core[_0x53f77c(0x55c)]),{unitId:_0x506f83,subUnitId:_0xadc16}=_0x2cdfd7,{value:_0x28021c,enhanceParams:_0x27c41b}=_0x5837d6,{range:_0x204cd1}=_0x5645e0,_0xa73cbf={'unitId':_0x506f83,'subUnitId':_0xadc16,'shapeType':_0x28021c,'range':_0x204cd1,'shapeId':(0x0,_univerjs_core[_0x53f77c(0x558)])()};if(_0x27c41b){const _0x75ce66=(0x0,_univerjs_pro_engine_shape[_0x53f77c(0x277)])(_0x28021c),_0x1631c0=_0x28021c===_univerjs_pro_engine_shape[_0x53f77c(0x33e)][_0x53f77c(0x62a)];if(_0x75ce66&&(_0x27c41b[_0x53f77c(0x231)]||_0x27c41b[_0x53f77c(0x3b8)]))_0xa73cbf[_0x53f77c(0x5b6)]={'ln':{'startArrow':_0x27c41b[_0x53f77c(0x231)]?{'type':_univerjs_pro_engine_shape[_0x53f77c(0x67d)][_0x53f77c(0x177)],'size':_univerjs_pro_engine_shape[_0x53f77c(0x47e)][_0x53f77c(0x22e)]}:void 0x0,'endArrow':_0x27c41b[_0x53f77c(0x3b8)]?{'type':_univerjs_pro_engine_shape[_0x53f77c(0x67d)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x53f77c(0x5d6)]}:void 0x0}};if(_0x1631c0&&(_0x27c41b['horizontal']||_0x27c41b['vertical']))_0xa73cbf[_0x53f77c(0x5b6)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x53f77c(0x2d3)][_0x53f77c(0x15c)],'color':_0x53f77c(0x4f5)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x53f77c(0x3ce)]['SolidLine'],'width':0x1,'color':_0x53f77c(0x474)},'shapeText':{'isHorizontal':!!_0x27c41b['horizontal']}};}const _0x36aae7=_0x3ac38a[_0x53f77c(0x32e)](_univerjs_pro_sheets_shape[_0x53f77c(0x473)]['id'],_0xa73cbf);return setTimeout(()=>{const _0x56d20e=_0x53f77c;_0x3ac38a[_0x56d20e(0x60c)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x506f83,'subUnitId':_0xadc16,'drawingId':_0xa73cbf[_0x56d20e(0x49a)]}]);},0xc8),_0x36aae7;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0xe6b55b,_0x49dc0b){const _0x1cdd21=_0x101898;super(),this[_0x1cdd21(0x367)]=_0xe6b55b,this['_drawingManagerService']=_0x49dc0b,this[_0x1cdd21(0x557)](),this['_clipService'][_0x1cdd21(0x1bc)](!![]),this[_0x1cdd21(0x1ff)]({'dispose':()=>this[_0x1cdd21(0x367)][_0x1cdd21(0x1bc)](![])});}[_0x101898(0x557)](){const _0x476d9a=_0x101898,_0x5efd87=this['_clipService'],_0x2bad8b=new Map(),_0x379be5=_0x5efd87[_0x476d9a(0x35a)]((_0x27fac5,_0x4b0134,_0x1f555c,_0x18a0bb,_0x215f5d)=>{const _0x5f2c43=_0x476d9a,_0x2e4226=_0x4b0134;if(_0x2e4226===_univerjs_pro_engine_shape[_0x5f2c43(0x33e)][_0x5f2c43(0x678)]||_0x4b0134==='custom')return![];try{let _0x137211=_0x2bad8b[_0x5f2c43(0x49b)](_0x4b0134);!_0x137211&&(_0x137211=new _univerjs_pro_engine_shape[(_0x5f2c43(0x286))](_0x2e4226,_0x5f2c43(0x676)+_0x4b0134),_0x2bad8b[_0x5f2c43(0x65b)](_0x4b0134,_0x137211));if(_0x215f5d)_0x137211[_0x5f2c43(0x22f)]({'adjustValues':_0x215f5d},!![]);return _0x137211['updateContext']({'width':_0x1f555c,'height':_0x18a0bb}),_0x137211[_0x5f2c43(0x279)](_0x27fac5,{'left':0x0,'top':0x0,'width':_0x1f555c,'height':_0x18a0bb});}catch{return![];}});this[_0x476d9a(0x1ff)](_0x379be5),this[_0x476d9a(0x1ff)]({'dispose':()=>_0x2bad8b[_0x476d9a(0x3c5)]()});}['clipByShape'](_0x4150a9,_0x1e8cf4,_0x33970f,_0x3c0d35,_0x26594a){const _0x9c7fdf=_0x101898,_0xf037e8=this[_0x9c7fdf(0x3c9)][_0x9c7fdf(0x5c8)](_0x4150a9,_0x1e8cf4);if(!_0xf037e8[_0x33970f])return;const _0x3f90f9={..._0xf037e8[_0x33970f],'prstGeom':_0x3c0d35,'adjustValues':_0x26594a};this[_0x9c7fdf(0x3c9)]['featurePluginUpdateNotification']([_0x3f90f9]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x101898(0x3d6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing[_0x101898(0x415)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x237)],'icon':_0x101898(0x4f9),'name':_0x101898(0x3bc)},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x14e)],'icon':_0x101898(0x4e5),'name':_0x101898(0x204),'endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x14e)],'icon':_0x101898(0x19b),'name':_0x101898(0x4bb),'endArrow':!![],'startArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1c4)],'icon':_0x101898(0x381),'name':_0x101898(0x664)},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BentConnector3'],'icon':_0x101898(0x2f8),'name':_0x101898(0x3c7),'endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BentConnector3'],'icon':_0x101898(0x3c8),'name':_0x101898(0x248),'endArrow':!![],'startArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x101898(0x28b),'name':'shape.type.curved-connector3'},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['CurvedConnector3'],'icon':_0x101898(0x2a0),'name':'shape.type.curved-connector3-arrow1','endArrow':!![]},{'group':_0x101898(0x253),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x437)],'icon':_0x101898(0x276),'name':_0x101898(0x31e),'endArrow':!![],'startArrow':!![]},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x62a)],'icon':_0x101898(0x13a),'name':_0x101898(0x452)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RoundRect'],'icon':_0x101898(0x3f2),'name':_0x101898(0x1ce)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Snip1Rect'],'icon':_0x101898(0x53e),'name':'shape.type.snip1-rect'},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x21f)],'icon':_0x101898(0x225),'name':_0x101898(0x25c)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4f3)],'icon':_0x101898(0x645),'name':_0x101898(0x1c3)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x464)],'icon':_0x101898(0x4a8),'name':_0x101898(0x511)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round1Rect'],'icon':_0x101898(0x48f),'name':'shape.type.round1-rect'},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round2SameRect'],'icon':_0x101898(0x4ee),'name':_0x101898(0x53b)},{'group':_0x101898(0x20a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Round2DiagRect'],'icon':'ShapeRound2DiagRectIcon','name':_0x101898(0x531)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Rect'],'icon':_0x101898(0x4ae),'name':_0x101898(0x145),'horizontal':!![]},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Rect'],'icon':'ShapeRectTextboxVerticalIcon','name':'shape.type.rect-textbox-vertical','vertical':!![]},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x646)],'icon':'ShapeEllipseIcon','name':_0x101898(0x300)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x54e)],'icon':_0x101898(0x44c),'name':_0x101898(0x684)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3c0)],'icon':_0x101898(0x2e0),'name':_0x101898(0x337)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Parallelogram'],'icon':_0x101898(0x638),'name':_0x101898(0x242)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Trapezoid'],'icon':_0x101898(0x391),'name':_0x101898(0x288)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Diamond'],'icon':'ShapeDiamondIcon','name':_0x101898(0x5bd)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x512)],'icon':_0x101898(0x295),'name':_0x101898(0x505)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x57e)],'icon':_0x101898(0x51c),'name':_0x101898(0x628)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x476)],'icon':_0x101898(0x166),'name':'shape.type.heptagon'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4ce)],'icon':_0x101898(0x317),'name':'shape.type.octagon'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Decagon'],'icon':'ShapeDecagonIcon','name':_0x101898(0x1b1)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2a4)],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x230)],'icon':_0x101898(0x24f),'name':_0x101898(0x608)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Chord'],'icon':_0x101898(0x2ea),'name':_0x101898(0x3fb)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x454)],'icon':'ShapeTeardropIcon','name':_0x101898(0x36c)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x18a)],'icon':_0x101898(0x34f),'name':_0x101898(0x5bc)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3f6)],'icon':_0x101898(0x1a4),'name':_0x101898(0x1e0)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Corner'],'icon':_0x101898(0x655),'name':_0x101898(0x4d3)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2fe)],'icon':_0x101898(0x61b),'name':_0x101898(0x16d)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x584)],'icon':'ShapePlusIcon','name':_0x101898(0x1fd)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Plaque'],'icon':_0x101898(0x3a9),'name':'shape.type.plaque'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x400)],'icon':_0x101898(0x2a5),'name':_0x101898(0x43e)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x125)],'icon':_0x101898(0x30d),'name':'shape.type.cube'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Bevel'],'icon':_0x101898(0x25a),'name':_0x101898(0x1ba)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x63c)],'icon':_0x101898(0x51f),'name':_0x101898(0x357)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['NoSmoking'],'icon':_0x101898(0x1fc),'name':_0x101898(0x3d7)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x375)],'icon':_0x101898(0x4a1),'name':'shape.type.block-arc'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x658)],'icon':'ShapeFolderCornerIcon','name':_0x101898(0x1c0)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x570)],'icon':_0x101898(0x129),'name':'shape.type.smiley-face'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5d4)],'icon':_0x101898(0x329),'name':'shape.type.heart'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x41b)],'icon':'ShapeLightningBoltIcon','name':'shape.type.lightning-bolt'},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x331)],'icon':_0x101898(0x4be),'name':_0x101898(0x446)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x44d)],'icon':_0x101898(0x3a3),'name':_0x101898(0x64e)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x319)],'icon':_0x101898(0x414),'name':_0x101898(0x478)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d6)],'icon':_0x101898(0x1b7),'name':'shape.type.arc'},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1b0)],'icon':_0x101898(0x5e4),'name':_0x101898(0x268)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3b9)],'icon':_0x101898(0x5b5),'name':_0x101898(0x2e8)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftBracket'],'icon':'ShapeLeftBracketIcon','name':_0x101898(0x5f2)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RightBracket'],'icon':_0x101898(0x316),'name':_0x101898(0x5b8)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftBrace'],'icon':_0x101898(0x2e6),'name':_0x101898(0x356)},{'group':_0x101898(0x29d),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['RightBrace'],'icon':_0x101898(0x4c6),'name':_0x101898(0x5d5)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x136)],'icon':_0x101898(0x2e5),'name':_0x101898(0x56a)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x65c)],'icon':_0x101898(0x3da),'name':_0x101898(0x563)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1a7)],'icon':_0x101898(0x4d8),'name':_0x101898(0x67b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x187)],'icon':_0x101898(0x5a2),'name':_0x101898(0x3e7)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x587)],'icon':'ShapeLeftRightArrowIcon','name':'shape.type.left-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['UpDownArrow'],'icon':_0x101898(0x11a),'name':'shape.type.up-down-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x668)],'icon':'ShapeQuadArrowIcon','name':_0x101898(0x4dc)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftRightUpArrow'],'icon':_0x101898(0x385),'name':'shape.type.left-right-up-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x50a)],'icon':_0x101898(0x404),'name':_0x101898(0x20d)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x466)],'icon':_0x101898(0x3d4),'name':_0x101898(0x382)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x674)],'icon':_0x101898(0x250),'name':_0x101898(0x5f7)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x46a)],'icon':_0x101898(0x3b1),'name':'shape.type.bent-up-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d0)],'icon':_0x101898(0x2cb),'name':'shape.type.curved-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4d9)],'icon':_0x101898(0x50d),'name':_0x101898(0x45e)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4ff)],'icon':'ShapeCurvedUpArrowIcon','name':_0x101898(0x45d)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3a1)],'icon':'ShapeCurvedDownArrowIcon','name':_0x101898(0x65d)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x486)],'icon':_0x101898(0x369),'name':'shape.type.striped-right-arrow'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x171)],'icon':_0x101898(0x28a),'name':_0x101898(0x2aa)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x213)],'icon':_0x101898(0x23d),'name':'shape.type.home-plate'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x57f)],'icon':_0x101898(0x553),'name':'shape.type.chevron'},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x602)],'icon':'ShapeRightArrowCalloutIcon','name':'shape.type.right-arrow-callout'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x40b)],'icon':'ShapeDownArrowCalloutIcon','name':_0x101898(0x4dd)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x447)],'icon':_0x101898(0x133),'name':_0x101898(0x45a)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x244)],'icon':_0x101898(0x312),'name':_0x101898(0x25b)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['LeftRightArrowCallout'],'icon':_0x101898(0x147),'name':_0x101898(0x208)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x32f)],'icon':_0x101898(0x416),'name':_0x101898(0x61f)},{'group':_0x101898(0x207),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2fa)],'icon':_0x101898(0x542),'name':_0x101898(0x1c1)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['MathPlus'],'icon':_0x101898(0x254),'name':_0x101898(0x44e)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x219)],'icon':_0x101898(0x332),'name':'shape.type.math-minus'},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x461)],'icon':_0x101898(0x5ea),'name':_0x101898(0x455)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['MathDivide'],'icon':_0x101898(0x5d1),'name':'shape.type.math-divide'},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2ee)],'icon':_0x101898(0x3bf),'name':_0x101898(0x198)},{'group':_0x101898(0x146),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['MathNotEqual'],'icon':_0x101898(0x39f),'name':'shape.type.math-not-equal'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x197)],'icon':_0x101898(0x42d),'name':_0x101898(0x172)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x468)],'icon':_0x101898(0x3d9),'name':'shape.type.flow-chart-alternate-process'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x19a)],'icon':_0x101898(0x301),'name':'shape.type.flow-chart-decision'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['FlowChartInputOutput'],'icon':'ShapeFlowChartInputOutputIcon','name':'shape.type.flow-chart-input-output'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x68b)],'icon':_0x101898(0x335),'name':_0x101898(0x27c)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x393)],'icon':_0x101898(0x484),'name':_0x101898(0x13b)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x296)],'icon':_0x101898(0x2d4),'name':_0x101898(0x37c)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x4e3)],'icon':_0x101898(0x687),'name':_0x101898(0x35c)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x5e7)],'icon':_0x101898(0x4f0),'name':_0x101898(0x629)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x140)],'icon':_0x101898(0x4d1),'name':_0x101898(0x22b)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x285)],'icon':_0x101898(0x336),'name':_0x101898(0x55b)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x688)],'icon':_0x101898(0x436),'name':_0x101898(0x633)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x30c)],'icon':'ShapeFlowChartConnectorIcon','name':_0x101898(0x515)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x304)],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0x101898(0x320)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x610)],'icon':_0x101898(0x575),'name':_0x101898(0x5c1)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x4c1)],'icon':'ShapeFlowChartPunchedTapeIcon','name':_0x101898(0x5ef)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5cf)],'icon':_0x101898(0x545),'name':'shape.type.flow-chart-summing-junction'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartOr'],'icon':_0x101898(0x39c),'name':'shape.type.flow-chart-or'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x294)],'icon':_0x101898(0x21e),'name':_0x101898(0x572)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x37d)],'icon':_0x101898(0x257),'name':_0x101898(0x2c5)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x16e)],'icon':_0x101898(0x1c6),'name':_0x101898(0x17f)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f4)],'icon':'ShapeFlowChartMergeIcon','name':_0x101898(0x2be)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x142)],'icon':_0x101898(0x372),'name':'shape.type.flow-chart-online-storage'},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1d0)],'icon':_0x101898(0x40d),'name':'shape.type.flow-chart-delay'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3b4)],'icon':_0x101898(0x4cc),'name':_0x101898(0x3e8)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x38e)],'icon':_0x101898(0x644),'name':_0x101898(0x181)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2af)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x101898(0x161)},{'group':_0x101898(0x3bd),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5a1)],'icon':_0x101898(0x428),'name':_0x101898(0x200)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x33a)],'icon':'ShapeIrregularSeal1Icon','name':_0x101898(0x438)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['IrregularSeal2'],'icon':_0x101898(0x57b),'name':_0x101898(0x41c)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5e0)],'icon':_0x101898(0x689),'name':'shape.type.star4'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x392)],'icon':'ShapeStar5Icon','name':_0x101898(0x470)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x661)],'icon':_0x101898(0x540),'name':'shape.type.star6'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f9)],'icon':_0x101898(0x411),'name':_0x101898(0x42c)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x3f1)],'icon':'ShapeStar8Icon','name':'shape.type.star8'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x164)],'icon':'ShapeStar10Icon','name':_0x101898(0x362)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x537)],'icon':'ShapeStar12Icon','name':_0x101898(0x290)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x431)],'icon':_0x101898(0x462),'name':_0x101898(0x3ee)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Star24'],'icon':_0x101898(0x529),'name':'shape.type.star24'},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Star32'],'icon':_0x101898(0x423),'name':'shape.type.star32'},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['Ribbon2'],'icon':_0x101898(0x62d),'name':_0x101898(0x485)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x430)],'icon':'ShapeRibbonIcon','name':_0x101898(0x637)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['EllipseRibbon2'],'icon':_0x101898(0x386),'name':_0x101898(0x15b)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['EllipseRibbon'],'icon':_0x101898(0x607),'name':_0x101898(0x211)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x64d)],'icon':'ShapeVerticalScrollIcon','name':_0x101898(0x318)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x480)],'icon':_0x101898(0x4c0),'name':_0x101898(0x5cd)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x576)],'icon':'ShapeWaveIcon','name':_0x101898(0x1bd)},{'group':_0x101898(0x43c),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x547)],'icon':_0x101898(0x26c),'name':_0x101898(0x3ec)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x29f)],'icon':_0x101898(0x3e3),'name':'shape.type.wedge-rect-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x210)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':_0x101898(0x3ea)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x624)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x101898(0x252)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2a8)],'icon':_0x101898(0x1c8),'name':'shape.type.cloud-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x536)],'icon':'ShapeBorderCallout1Icon','name':_0x101898(0x12e)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout2'],'icon':_0x101898(0x54a),'name':_0x101898(0x48a)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['BorderCallout3'],'icon':'ShapeBorderCallout3Icon','name':_0x101898(0x5de)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2b7)],'icon':_0x101898(0x528),'name':_0x101898(0x2cc)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5bb)],'icon':'ShapeAccentCallout2Icon','name':_0x101898(0x4e9)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x240)],'icon':_0x101898(0x2c4),'name':_0x101898(0x340)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x517)],'icon':'ShapeCallout1Icon','name':_0x101898(0x61d)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x524)],'icon':_0x101898(0x27f),'name':'shape.type.callout2'},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x580)],'icon':_0x101898(0x3e5),'name':_0x101898(0x56c)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x2ec)],'icon':'ShapeAccentBorderCallout1Icon','name':'shape.type.accent-border-callout1'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1b6)],'icon':'ShapeAccentBorderCallout2Icon','name':_0x101898(0x1c9)},{'group':_0x101898(0x588),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x683)],'icon':_0x101898(0x3fd),'name':_0x101898(0x4fe)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x413)],'icon':_0x101898(0x15f),'name':'shape.type.left-circular-arrow'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x251)],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x101898(0x49c)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x62c)],'icon':_0x101898(0x3d5),'name':_0x101898(0x579)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x37f)],'icon':_0x101898(0x5c3),'name':_0x101898(0x601)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x24e)],'icon':'ShapePieWedgeIcon','name':_0x101898(0x278)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5b2)],'icon':_0x101898(0x196),'name':_0x101898(0x5b4)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x525)],'icon':'ShapeGear6Icon','name':_0x101898(0x541)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x1ac)],'icon':_0x101898(0x59f),'name':_0x101898(0x5af)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x666)],'icon':_0x101898(0x18d),'name':'shape.type.corner-tabs'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x26b)],'icon':_0x101898(0x2e7),'name':_0x101898(0x1cd)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x451)],'icon':_0x101898(0x585),'name':_0x101898(0x603)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x561)],'icon':'ShapeActionButtonBeginningIcon','name':_0x101898(0x16a)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x235)],'icon':'ShapeActionButtonEndIcon','name':_0x101898(0x191)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x156)],'icon':_0x101898(0x55f),'name':_0x101898(0x3e0)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x448)],'icon':'ShapeActionButtonInformationIcon','name':_0x101898(0x16b)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x65f)],'icon':'ShapeActionButtonReturnIcon','name':_0x101898(0x565)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x40a)],'icon':_0x101898(0x1b5),'name':_0x101898(0x52d)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5f9)],'icon':_0x101898(0x63b),'name':_0x101898(0x11e)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x344)],'icon':_0x101898(0x5c4),'name':_0x101898(0x509)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x441)],'icon':_0x101898(0x1dc),'name':_0x101898(0x19e)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3f7)],'icon':_0x101898(0x516),'name':'shape.type.action-button-blank'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5e8)],'icon':'ShapeChartPlusIcon','name':_0x101898(0x467)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['ChartStar'],'icon':_0x101898(0x2b9),'name':'shape.type.chart-star'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x594)],'icon':_0x101898(0x2c2),'name':'shape.type.chart-x'},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['FlowChartOfflineStorage'],'icon':_0x101898(0x305),'name':_0x101898(0x25e)},{'group':'other','type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x3e2)],'icon':_0x101898(0x2b2),'name':_0x101898(0x120)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['PlaqueTabs'],'icon':_0x101898(0x60a),'name':_0x101898(0x256)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x101898(0x2cf)],'icon':_0x101898(0x50c),'name':'shape.type.square-tabs'},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)]['UpDownArrowCallout'],'icon':_0x101898(0x30e),'name':_0x101898(0x19f)},{'group':_0x101898(0x417),'type':_univerjs_pro_engine_shape[_0x101898(0x33e)][_0x101898(0x5fa)],'icon':'ShapeNonIsoscelesTrapezoidIcon','name':_0x101898(0x514)}],SHAPE_PICKER_COMPONENT=_0x101898(0x5b0);function ShapePickerComponent({onShapeClick:_0x29360d,excludeGroups:_0x3f3047}){const _0x17cde2=_0x101898,_0x3edd4d=(0x0,_univerjs_ui[_0x17cde2(0x14f)])(_univerjs_core[_0x17cde2(0x334)]),_0x27a3cd=(0x0,_univerjs_ui['useDependency'])(_univerjs_ui[_0x17cde2(0x1bb)]),_0x30c6b7=(_0x3f3047?shapeTypeOptions[_0x17cde2(0x1f5)](_0x11091a=>!_0x3f3047[_0x17cde2(0x325)](_0x11091a[_0x17cde2(0x2a9)])):shapeTypeOptions)[_0x17cde2(0x3cc)]((_0xed43de,_0x25a623)=>{const _0x351af2=_0x17cde2;if(!_0xed43de[_0x25a623[_0x351af2(0x2a9)]])_0xed43de[_0x25a623['group']]=[];return _0xed43de[_0x25a623[_0x351af2(0x2a9)]]['push'](_0x25a623),_0xed43de;},{});return(0x0,react_jsx_runtime[_0x17cde2(0x326)])(_0x17cde2(0x14c),{'className':_0x17cde2(0x2f7),'children':Object['entries'](_0x30c6b7)[_0x17cde2(0x526)](([_0x279d10,_0x42ada2])=>(0x0,react_jsx_runtime[_0x17cde2(0x399)])(_0x17cde2(0x14c),{'className':'univer-mb-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x17cde2(0x14c),{'className':_0x17cde2(0x366),'children':_0x3edd4d['t'](_0x17cde2(0x2ab)+_0x279d10)}),(0x0,react_jsx_runtime['jsx'])(_0x17cde2(0x14c),{'className':_0x17cde2(0x20b),'children':_0x42ada2[_0x17cde2(0x526)](_0x46d5fa=>{const _0x897009=_0x17cde2,_0x118451=_0x27a3cd[_0x897009(0x49b)](_0x46d5fa[_0x897009(0x1df)]);return(0x0,react_jsx_runtime[_0x897009(0x326)])('div',{'title':_0x3edd4d['t'](_0x46d5fa[_0x897009(0x396)]),'onClick':()=>_0x29360d(_0x46d5fa),'className':_0x897009(0x4f8),'children':_0x118451&&(0x0,react_jsx_runtime[_0x897009(0x326)])(_0x118451,{'className':_0x897009(0x275)})},_0x46d5fa['name']);})})]},_0x279d10))});}function ImageClipShapePicker(){const _0x37d45a=_0x101898,_0x38e9a7=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x37d45a(0x334)]),_0x349e6e=(0x0,_univerjs_ui['useDependency'])(_univerjs_drawing['IDrawingManagerService']),_0x2c52dc=(0x0,_univerjs_ui[_0x37d45a(0x14f)])(ImageShapeClipController),[_0x10936b,_0x168223]=(0x0,react[_0x37d45a(0x168)])(![]),_0x317204=_0x2d77d7=>{const _0x27e95c=_0x37d45a,_0x5d31f2=_0x349e6e[_0x27e95c(0x4f6)]()['find'](_0x3da1f9=>_0x3da1f9[_0x27e95c(0x324)]===_univerjs_core[_0x27e95c(0x229)][_0x27e95c(0x4fa)]);if(!_0x5d31f2)return;const {unitId:_0x4825ef,subUnitId:_0x43cf6b,drawingId:_0x439ec9}=_0x5d31f2;_0x2c52dc[_0x27e95c(0x5ff)](_0x4825ef,_0x43cf6b,_0x439ec9,_0x2d77d7[_0x27e95c(0x489)]),_0x168223(![]);};return(0x0,react_jsx_runtime[_0x37d45a(0x326)])(_univerjs_design['Dropdown'],{'side':_0x37d45a(0x2ff),'open':_0x10936b,'onOpenChange':_0x168223,'overlay':(0x0,react_jsx_runtime[_0x37d45a(0x326)])(ShapePickerComponent,{'onShapeClick':_0x317204,'excludeGroups':[_0x37d45a(0x253)]}),'children':(0x0,react_jsx_runtime[_0x37d45a(0x326)])(_univerjs_design[_0x37d45a(0x573)],{'children':_0x38e9a7['t'](_0x37d45a(0x4b5))})});}function ShapePicker(){const _0x3c8432=_0x101898,_0x5cfb77=(0x0,_univerjs_ui[_0x3c8432(0x14f)])(_univerjs_core[_0x3c8432(0x55c)]),_0x442762=_0x54ab1c=>{const _0x2e7836=_0x3c8432;_0x5cfb77['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x54ab1c[_0x2e7836(0x489)],'enhanceParams':{'endArrow':_0x54ab1c[_0x2e7836(0x3b8)],'startArrow':_0x54ab1c[_0x2e7836(0x231)],'horizontal':_0x54ab1c[_0x2e7836(0x54b)],'vertical':_0x54ab1c[_0x2e7836(0x59a)]}});};return(0x0,react_jsx_runtime[_0x3c8432(0x326)])(ShapePickerComponent,{'onShapeClick':_0x442762});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x101898(0x39e),'icon':'LeftJustifyingIcon','value':_univerjs_core['HorizontalAlign']['LEFT']},{'label':_0x101898(0x3cf),'icon':_0x101898(0x4b2),'value':_univerjs_core[_0x101898(0x5c9)]['CENTER']},{'label':_0x101898(0x460),'icon':'RightJustifyingIcon','value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x342)]}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x1c97bf){const _0x49ae5b=_0x101898,_0x362a9c=_0x1c97bf[_0x49ae5b(0x49b)](_univerjs_core[_0x49ae5b(0x4b3)]),_0x84e4a8=_0x1c97bf[_0x49ae5b(0x49b)](_univerjs_core[_0x49ae5b(0x24a)]);return{'id':_univerjs_docs_ui[_0x49ae5b(0x2c1)]['id'],'tooltip':_0x49ae5b(0x64b),'type':_univerjs_ui['MenuItemType'][_0x49ae5b(0x1f1)],'icon':_0x49ae5b(0x321),'selections':[{'label':{'name':_univerjs_ui['COLOR_PICKER_COMPONENT'],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x49ae5b(0x556))](_0xda5b20=>{const _0x1a7586=_0x49ae5b;_0xda5b20['next'](_0x84e4a8[_0x1a7586(0x30b)]('primary.600'));}),'hidden$':_0x362a9c[_0x49ae5b(0x48b)](_univerjs_core[_0x49ae5b(0x615)])[_0x49ae5b(0x63e)]((0x0,rxjs[_0x49ae5b(0x5c2)])(_0x362a9c[_0x49ae5b(0x5d8)](_univerjs_core[_0x49ae5b(0x615)])),(0x0,rxjs['map'])(_0x98b195=>!_0x98b195))};}function ShapeResetBackgroundColorMenuItemFactory(_0x443385){const _0x5ab2ac=_0x101898,_0x184109=_0x443385['get'](_univerjs_core[_0x5ab2ac(0x4b3)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x5ab2ac(0x459)][_0x5ab2ac(0x65e)],'title':_0x5ab2ac(0x376),'hidden$':_0x184109[_0x5ab2ac(0x48b)](_univerjs_core[_0x5ab2ac(0x615)])[_0x5ab2ac(0x63e)]((0x0,rxjs[_0x5ab2ac(0x5c2)])(_0x184109[_0x5ab2ac(0x5d8)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])),(0x0,rxjs[_0x5ab2ac(0x526)])(_0xdd819d=>!_0xdd819d))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x101898(0x39e),'icon':_0x101898(0x3b0),'value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x183)]},{'label':'align.center','icon':_0x101898(0x4b2),'value':_univerjs_core[_0x101898(0x5c9)][_0x101898(0x502)]},{'label':'align.right','icon':_0x101898(0x539),'value':_univerjs_core['HorizontalAlign'][_0x101898(0x342)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x992469){const _0x5685eb=_0x101898;var _0x4d2749;const _0x3cb19e=_0x992469[_0x5685eb(0x49b)](_univerjs_core[_0x5685eb(0x55c)]),_0x16cfd1=_0x992469[_0x5685eb(0x49b)](_univerjs_core[_0x5685eb(0x4b3)]),_0x12ed34=_0x992469[_0x5685eb(0x49b)](_univerjs_sheets_drawing[_0x5685eb(0x614)]),_0x490e8f=_0x992469[_0x5685eb(0x49b)](ShapeTextEditingService),_0x535027=_0x992469['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0xd5bbd5=_univerjs_core[_0x5685eb(0x5c9)][_0x5685eb(0x183)],_0x5ed53f=()=>{const _0x28b2b2=_0x5685eb;var _0x27ffe1;const _0x416336=_0x12ed34['getFocusDrawings']()['filter'](_0x2a5b56=>_0x2a5b56[_0x28b2b2(0x324)]===_univerjs_core[_0x28b2b2(0x229)][_0x28b2b2(0x535)]);if(_0x416336[_0x28b2b2(0x1ec)]!==0x1)return _0xd5bbd5;const _0x17f46f=_0x490e8f[_0x28b2b2(0x28d)](),_0x26e4a2=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f[_0x28b2b2(0x3aa)])||_0x416336[0x0][_0x28b2b2(0x3aa)],_0x57fb67=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f['subUnitId'])||_0x416336[0x0][_0x28b2b2(0x343)],_0x5338e7=(_0x17f46f===null||_0x17f46f===void 0x0?void 0x0:_0x17f46f['shapeId'])||_0x416336[0x0][_0x28b2b2(0x16c)],_0x137229=_0x535027['getShapeModel'](_0x26e4a2,_0x57fb67,_0x5338e7);if(!_0x137229)return _0xd5bbd5;const _0x47656d=_0x137229[_0x28b2b2(0x592)]();if(!_0x47656d||!('dataModel'in _0x47656d))return _0xd5bbd5;const _0x2a8de1=_0x47656d[_0x28b2b2(0x2c7)];return(_0x27ffe1=_0x2a8de1===null||_0x2a8de1===void 0x0?void 0x0:_0x2a8de1['ha'])!==null&&_0x27ffe1!==void 0x0?_0x27ffe1:_0xd5bbd5;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x4d2749=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x5685eb(0x13c)](_0x5cebbf=>_0x5cebbf[_0x5685eb(0x2f1)]===_0xd5bbd5))===null||_0x4d2749===void 0x0?void 0x0:_0x4d2749['icon'],'tooltip':'toolbar.horizontalAlignMode.main','type':_univerjs_ui['MenuItemType']['SELECTOR'],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x5685eb(0x556))](_0x146c82=>{const _0x49b8e7=_0x5685eb,_0x422242=_0x3cb19e[_0x49b8e7(0x5e3)](_0x41fd1d=>{const _0x4c4014=_0x49b8e7;if(_0x41fd1d['id']===SetShapeTextHorizontalAlignCommand['id'])_0x146c82[_0x4c4014(0x119)](_0x5ed53f());}),_0x27fd03=_0x490e8f[_0x49b8e7(0x39d)][_0x49b8e7(0x4fd)](()=>{const _0x438728=_0x49b8e7;_0x146c82[_0x438728(0x119)](_0x5ed53f());});return _0x146c82['next'](_0x5ed53f()),()=>{const _0x374733=_0x49b8e7;_0x422242[_0x374733(0x3af)](),_0x27fd03[_0x374733(0x472)]();};}),'hidden$':_0x16cfd1[_0x5685eb(0x48b)](_univerjs_core[_0x5685eb(0x615)])[_0x5685eb(0x63e)]((0x0,rxjs['map'])(_0x2a10ce=>!_0x2a10ce))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x101898(0x4eb),'icon':_0x101898(0x55a),'value':_univerjs_core[_0x101898(0x293)]['TOP']},{'label':'align.middle','icon':_0x101898(0x17e),'value':_univerjs_core['VerticalAlign'][_0x101898(0x2a6)]},{'label':_0x101898(0x5cc),'icon':_0x101898(0x46e),'value':_univerjs_core['VerticalAlign'][_0x101898(0x151)]}];function ShapeVerticalAlignMenuItemFactory(_0x1e524c){const _0x3c7e9b=_0x101898;var _0x59083a;const _0x3f94bc=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_core[_0x3c7e9b(0x55c)]),_0x23f3e1=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_core['IContextService']),_0x1788c7=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_sheets_drawing[_0x3c7e9b(0x614)]),_0x32c500=_0x1e524c['get'](ShapeTextEditingService),_0x3c6f35=_0x1e524c[_0x3c7e9b(0x49b)](_univerjs_pro_sheets_shape[_0x3c7e9b(0x232)]),_0x1ecebc=_univerjs_core[_0x3c7e9b(0x293)][_0x3c7e9b(0x1a5)],_0x1e5da5=()=>{const _0x5b799f=_0x3c7e9b;var _0x4e931a;const _0x3b3609=_0x1788c7[_0x5b799f(0x4f6)]()[_0x5b799f(0x1f5)](_0x4cc16f=>_0x4cc16f['drawingType']===_univerjs_core[_0x5b799f(0x229)][_0x5b799f(0x535)]);if(_0x3b3609[_0x5b799f(0x1ec)]!==0x1)return _0x1ecebc;const _0x3790bf=_0x32c500[_0x5b799f(0x28d)](),_0x297364=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf['unitId'])||_0x3b3609[0x0]['unitId'],_0x10c93c=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf[_0x5b799f(0x343)])||_0x3b3609[0x0]['subUnitId'],_0x521a33=(_0x3790bf===null||_0x3790bf===void 0x0?void 0x0:_0x3790bf[_0x5b799f(0x49a)])||_0x3b3609[0x0][_0x5b799f(0x16c)],_0x5951c2=_0x3c6f35[_0x5b799f(0x148)](_0x297364,_0x10c93c,_0x521a33);if(!_0x5951c2)return _0x1ecebc;const _0x597cd7=_0x5951c2[_0x5b799f(0x592)]();if(!_0x597cd7||!('dataModel'in _0x597cd7))return _0x1ecebc;const _0x3dbfdc=_0x597cd7['dataModel'];return(_0x4e931a=_0x3dbfdc===null||_0x3dbfdc===void 0x0?void 0x0:_0x3dbfdc['va'])!==null&&_0x4e931a!==void 0x0?_0x4e931a:_0x1ecebc;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x59083a=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x3c7e9b(0x13c)](_0x39a3e4=>_0x39a3e4[_0x3c7e9b(0x2f1)]===_0x1ecebc))===null||_0x59083a===void 0x0?void 0x0:_0x59083a[_0x3c7e9b(0x1df)],'tooltip':_0x3c7e9b(0x5fd),'type':_univerjs_ui[_0x3c7e9b(0x459)][_0x3c7e9b(0x124)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs[(_0x3c7e9b(0x556))](_0x229b11=>{const _0x1874c7=_0x3c7e9b,_0x567bb6=_0x3f94bc[_0x1874c7(0x5e3)](_0x2726a6=>{const _0x840523=_0x1874c7;if(_0x2726a6['id']===SetShapeTextVerticalAlignCommand['id'])_0x229b11[_0x840523(0x119)](_0x1e5da5());}),_0x5e7679=_0x32c500[_0x1874c7(0x39d)][_0x1874c7(0x4fd)](()=>{const _0x32828e=_0x1874c7;_0x229b11[_0x32828e(0x119)](_0x1e5da5());});return _0x229b11[_0x1874c7(0x119)](_0x1e5da5()),()=>{const _0x52b1a1=_0x1874c7;_0x567bb6[_0x52b1a1(0x3af)](),_0x5e7679[_0x52b1a1(0x472)]();};}),'hidden$':_0x23f3e1['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x3c7e9b(0x63e)]((0x0,rxjs[_0x3c7e9b(0x526)])(_0x5ecf69=>!_0x5ecf69))};}function _0x458e(){const _0x1cfa0d=['ISheetDrawingService','FOCUSING_COMMON_DRAWINGS','RibbonStartGroup','gdRefAng','ISheetClipboardService','sheets-shape.line.dashType.solid','color','ShapeDiagStripeIcon','_shapeId','shape.type.callout1','getRealBound','shape.type.quad-arrow-callout','UpdateSheetsShapeDataMutation','getShapeTypeById','_closeShapeEditPanel','univer-w-full','WedgeEllipseCallout','ShapeActionButtonBeginningIcon','BreakLineCommand','applyPoint','shape.type.hexagon','shape.type.flow-chart-terminator','Rect','Solid','SwooshArrow','ShapeRibbon2Icon','draw','onload','isNaN','src','sheets-shape.fill.picture.source','shape.type.flow-chart-manual-operation','sheets-shape.line.arrowSize.small','Circle','_imageIoService','shape.type.ribbon','ShapeParallelogramIcon','has','52tEFEod','ShapeActionButtonDocumentIcon','Donut','style','pipe','DRAWING_DOM','createInternalEditorID','sheets-shape.fill.picture.offsetY','_findNearestConnectionSite','_context','ShapeFlowChartMagneticDiskIcon','ShapeSnip2DiagRectIcon','Ellipse','touchDependencies','_generateCutPasteMutations','_clearShapeConnectorHandlerObjects','editorHeight','toolbar.fillColor.main','sheets-shape.fill.picture.align.l','VerticalScroll','shape.type.moon','UpdateConnectorRelationCommand','IConfigService','changeEnd$','ShapePieWedgeIcon','IUniverInstanceService','sheets-shape.line.joinType.bevel','ShapeCornerIcon','onStarting','sketchType','FoldedCorner','mainComponent','resize','set','LeftArrow','shape.type.curved-down-arrow','BUTTON','ActionButtonReturn','getDocumentData','Star6','FromArray','marginTop','shape.type.bent-connector3','_sidebarDisposable','CornerTabs','body','QuadArrow','end','useLeftAndRightArrow','Disposable','defineProperty','START','_sheetInterceptorService','ShapeRound2DiagRectIcon','sheets-shape.openPanel','OvalArrow','SetShapeTextVerticalAlignCommand','_highlightedSiteIndex','LeftUpArrow','create','clip-','useObservable','None','_localeService','RibbonPosition','shape.type.up-arrow','_executeConnectedRouteResizeCommand','ShapeArrowTypeEnum','getImageSourceCache','_generatePasteMutations','HandDrawn','useMemo','pluginName','AccentBorderCallout3','shape.type.triangle','ShapeIrregularSeal1Icon','ang','ShapeFlowChartMultidocumentIcon','FlowchartManualOperation','ShapeStar4Icon','worksheet','FlowchartPredefinedProcess','next','ShapeUpDownArrowIcon','Radio','domY','_baseLeft','shape.type.action-button-document','DRAWING_OBJECT_LAYER_INDEX','shape.type.line-inv','getImage','getBasicShapeRotateBound','enableObjectsEvent','SELECTOR','Cube','objects','univer-w-20\x20univer-flex-1','191405NgOopF','ShapeSmileyFaceIcon','scaleY','removeLinePoints','_registerGroupFeaturePasteHook','KeyCode','shape.type.border-callout1','getState','_updateTransform','sheets-shape.line.beginArrowType','targetShapeId','ShapeLeftArrowCalloutIcon','_baseDrawingRect','object','RightArrow','SheetsShapeUIController','sheets-shape.line.dashType.longDashDotDot','URL','ShapeRectIcon','shape.type.flow-chart-internal-storage','find','_attachAdjustEvent','DrawingRenderService','setFillImage','FlowchartPreparation','localToWorld','FlowchartOnlineStorage','sheets-shape.line.joinType.round','ShapeActionButtonInformationIcon','shape.type.rect-textbox-horizontal','equationShape','ShapeLeftRightArrowCalloutIcon','getShapeModel','viewportScrollX','MoreDownIcon','onPointerMove$','div','multiply','StraightConnector1','useDependency','fillImageSource','BOTTOM','sheets-shape.deleteShape','ShapeLineDashEnum','Image','changeStart$','ActionButtonHome','getObjectIncludeInGroup','sheets-shape.toggleFlipH','_index','setPrstGeomAdjValues','shape.type.ellipse-ribbon2','SolidFill','drawWith','_reset','ShapeLeftCircularArrowIcon','stopPropagation','shape.type.flow-chart-magnetic-drum','capType','SetShapeTextFontSizeCommand','Star10','enumerable','ShapeHeptagonIcon','SheetPermissionCheckController','useState','symbol','shape.type.action-button-beginning','shape.type.action-button-information','drawingId','shape.type.diag-stripe','FlowchartExtract','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex\x20univer-items-center\x20univer-gap-3','NotchedRightArrow','shape.type.flow-chart-process','onPointerUp$','Tools','sheet.command.set-shape-text-horizontal-align','setShouldShowAdjust','Arrow','univer-text-sm','_drawingAddListener','ShapeDocAlignCommand','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_executeConnectionCommand','worldPoints','VerticalCenterIcon','shape.type.flow-chart-extract','EMPTY','shape.type.flow-chart-magnetic-disk','error','LEFT','dashType','Checkbox','_getDrawingRect','DownArrow','setShapeProps','lineJoinType','Frame','relation','_draw','ShapeCornerTabsIcon','getConnectionSiteList','ShapeGear6Icon','worldRect','shape.type.action-button-end','strokeWidth','viewportScrollY','_getConnectionSiteAngle','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','ShapeFunnelIcon','FlowchartProcess','shape.type.math-equal','_imageShapeClipController','FlowchartDecision','ShapeStraightConnector2Icon','renderDrawingShape','ShapeGradientTypeEnum','shape.type.action-button-help','shape.type.up-down-arrow-callout','_copyInfo','ImageFillModeEnum','VERTICAL_ROTATE_ANGLE','vertexAngle','ShapeHalfFrameIcon','TOP','sheet.command.set-shape-text-font-size','UpArrow','sheets-shape.line.capType.square','_subUnitId','adjName','_baseTop','Gear9','complete','SHAPE','VIEW_MAIN_LEFT_TOP','BracketPair','shape.type.decagon','setTimeout','sheets-shape.fill.picture.align.r','_connectorObjects','ShapeActionButtonMovieIcon','AccentBorderCallout2','ShapeArcIcon','sheets-shape.fill.picture.tileAsTexture','deepClone','shape.type.bevel','ComponentManager','setCanUseShapeClip','shape.type.wave','getShapeDataById','sheets-shape.fill.solidFill','shape.type.folder-corner','shape.type.circular-arrow','6EGpyjT','shape.type.snip2-diag-rect','BentConnector3','disableObjectsEvent','ShapeFlowChartExtractIcon','_insertShapes','ShapeCloudCalloutIcon','shape.type.accent-border-callout2','@univerjs-pro/sheets-shape-ui','shape-adjust-point-','sheets-shape.line.capType.round','shape.type.action-button-back-previous','shape.type.round-rect','beginPath','FlowchartDelay','adjHandleFill','WrapStrategy','Accordion','domX','_executeConnectedRouteConnectionCommand','_baseShapeHeight','dataStream','#1a73e8','isInGroup','useRef','max','ShapeActionButtonHelpIcon','RichTextEditingMutation','ShapeStar5Icon','icon','shape.type.half-frame','permission.dialog.editErr','cxnIndex','UniverInstanceType','activeAnObject','getSelectionRanges','RadioGroup','sheets-shape.line.arrowSize.medium','VIEW_MAIN_LEFT','_focusedDrawings','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clearShapeAdjustControls','length','cxnPointStroke','saveImage','shape-text-editor-content','sheets-shape.line.transparency','BUTTON_SELECTOR','ShapeFlowChartPunchedTapeIcon','group\x20univer-relative\x20univer-inline-block','image/*','filter','getSkeleton','floor','ToggleSheetsShapeFlipCommand','getRenderById','_init','SetSheetsShapeTextVerticalToggleCommand','ShapeNoSmokingIcon','shape.type.plus','Shape','disposeWithMe','shape.type.flow-chart-display','Injector','univer-box-border\x20univer-px-4\x20univer-text-sm','ShapePlusIcon','shape.type.straight-connector1','parse','_transform','blockArrow','shape.type.left-right-arrow-callout','onerror','rectangle','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','sqrt','shape.type.bent-arrow','sheets-shape.line.color','sheets-shape.fill.picture.align.t','WedgeRoundRectCallout','shape.type.ellipse-ribbon','univer-relative\x20univer-size-full\x20univer-overflow-visible','HomePlate','doc','pushUndoRedo','Linear','SheetSkeletonManagerService','NoFill','MathMinus','composeMatrix','sheet.command.set-shape-text-font-size-decrease','linear','_handleConnectorPointerUp','ShapeFlowChartCollateIcon','Snip2SameRect','sheets-shape.line.arrowType.stealthArrow','_initCopyPaste','imageTile','ShapeFlowChartConnectorIcon','ShapeBorderCallout1Icon','ShapeSnip2SameRectIcon','registerFeatureMenuOffset','_sheetCanvasPopManagerService','_isImagePointerDown','DrawingTypeEnum','ShapeDiamondIcon','shape.type.flow-chart-preparation','addObject','_createShapeAdjustControls','Medium','setShapeData','Pie','startArrow','SheetsShapeService','DocSkeletonManagerService','ShapeActionButtonEndIcon','ActionButtonEnd','skeleton','Line','imageRotateWithShape','_baseHeight','_initSheetChange','VIEW_MAIN','IImageIoService','ShapeHomePlateIcon','ShapeRightArrowCalloutIcon','getDrawingPoints','AccentCallout3','radial','shape.type.parallelogram','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','UpArrowCallout','getFreeze','ShapeCallout1Icon','_isStartConnectorPoint','shape.type.bent-connector3-arrow2','CURSOR_TYPE','ThemeService','sheets-shape.toggleTextVertical','_cxtHandlerPointerMove','alignment','PieWedge','ShapePieIcon','ShapeLeftUpArrowIcon','LeftRightCircularArrow','shape.type.wedge-ellipse-callout','line','ShapeMathPlusIcon','getShapeType','shape.type.plaque-tabs','ShapeFlowChartSortIcon','sheets-shape.line.beginArrowSize','COMMAND','ShapeBevelIcon','shape.type.up-arrow-callout','shape.type.snip2-same-rect','adjHandleStroke','shape.type.flow-chart-offline-storage','_clearControls','DrawingApplyType','RemoveSheetCommand','ImageSourceTypeEnum','_shapeUpdateListener','_registerOperations','sheets-shape.line.endArrowType','toDisposable','min','shape.type.bracket-pair','_calculateFreeEndpointAngle','_componentManager','ActionButtonBackPrevious','ShapeDoubleWaveIcon','useEffect','2917313IJqWWW','calculate','_sheetDrawingShapeRenderController','undo','entries','span','SheetsSelectionsService','univer-size-full','ShapeCurvedConnector3Arrow2Icon','isConnectorShape','shape.type.pie-wedge','buildClipPath','SHEET_SHAPE_UI_PLUGIN','isFinite','shape.type.flow-chart-predefined-process','ShapeQuadArrowIcon','IMenuManagerService','ShapeCallout2Icon','memo','RemoveSheetsShapeMutation','isLineShape','_addShapeConnectorHandlerObjects','DocumentViewModel','FlowchartManualInput','ShapeModel','sheets-shape.line.dashType.roundDot','shape.type.trapezoid','_sheetSkeletonService','ShapeNotchedRightArrowIcon','ShapeCurvedConnector3Icon','DocumentDataModel','getEditing','_activeShapeInfo','_renderManagerService','shape.type.star12','_getSceneAndTransformerByDrawingSearch','_activeAdjustPointList','VerticalAlign','FlowchartCollate','ShapePentagonIcon','FlowchartDocument','_createControls','setOnSavingEditorData','_loadShapePictureFill','clearAdjustValue','save','getAdjustValueByName','basicShape','IEditorService','WedgeRectCallout','ShapeCurvedConnector3Arrow1Icon','ShapeTeardropIcon','_shapeTextEditingService','_initSelection','Dodecagon','ShapeCanIcon','MIDDLE','size','CloudCallout','group','shape.type.notched-right-arrow','shape.group.','redo','gdRefR','_unitId','FlowchartMagneticDrum','sheetTransform','image-clip-adjust-point-','ShapeLineInvIcon','sheets-shape.line.arrowSize.large','Dash','_activeShapeAdjustPointList','startY','AccentCallout1','stringify','ShapeChartStarIcon','restore','sheets-shape.fill.picture.rotateWithShape','#000000','_isHighlighted','shape.type.flow-chart-merge','getBatchAddOp','_updateSrcRectByTransform','SetInlineFormatTextBackgroundColorCommand','ShapeChartXIcon','REMOVE','ShapeAccentCallout3Icon','shape.type.flow-chart-sort','sheets-shape.line.sketchType.none','dataModel','sheets-shape.fill.picture.scaleY','_activeShapeId','offset','ShapeCurvedRightArrowIcon','shape.type.accent-callout1','RENDER_CLASS_TYPE','ShapeDecagonIcon','SquareTabs','sheets-shape.line.sketchType.handDrawn','INSERT','bind','ShapeFillEnum','ShapeFlowChartDocumentIcon','_registerMoveHandler','Transform','getBoundingClientRect','Vector2','_lastEditingShapeKey','deriveStateFromActiveSheet$','_targetShapeId','scene','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','_menuManagerService','_updateImageAdjValues','ShapeRtTriangleIcon','classType','getMatrix','sheet.command.shape-doc-align','_univerInstanceService','ShapeRightArrowIcon','ShapeLeftBraceIcon','ShapeActionButtonBackPreviousIcon','shape.type.brace-pair','SHEET_VIEWPORT_KEY','ShapeChordIcon','_sheetBasicShapeConnectionPointController','AccentBorderCallout1','getAdjustInfoByName','MathEqual','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_onSavingEditorData$','value','ShapeChartPlusIcon','_activeAdjustInfo','values','angle','sheets-shape.line.dashType.title','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','ShapeBentConnector3Arrow1Icon','push','CircularArrow','univer-w-28','none','getCanvasElement','DiagStripe','left','shape.type.ellipse','ShapeFlowChartDecisionIcon','ShapeLeftRightCircularArrowIcon','_drawingRenderService','FlowchartOffPageConnector','ShapeFlowChartOfflineStorageIcon','gdRefY','_registerShapeMenu','useIsFocusing','imageOpacity','ShapeDefaultConfig','getColorFromTheme','FlowchartConnector','ShapeCubeIcon','ShapeUpDownArrowCalloutIcon','_drawRichText','invert','ShapeFlowChartMergeIcon','ShapeUpArrowCalloutIcon','Dropdown','sheets-shape.rotateRight90','sin','ShapeRightBracketIcon','ShapeOctagonIcon','shape.type.vertical-scroll','Cloud','useAbsolutePosition','packageName','isRender','section','shape.type.curved-connector3-arrow2','getParent','shape.type.flow-chart-offpage-connector','PaintBucketDoubleIcon','some','isHighlighted','drawingType','includes','jsx','_attachConnectorObjectEvent','5881403UdZvZc','ShapeHeartIcon','_adjName','startConnectionDetection','setContextValue','sheets-shape.fill.picture.align.bl','syncExecuteCommand','QuadArrowCallout','shape-text-editor','Sun','ShapeMathMinusIcon','ShapeFlowChartInputOutputIcon','LocaleService','ShapeFlowChartPredefinedProcessIcon','ShapeFlowChartManualInputIcon','shape.type.rt-triangle','sheetViewStartRow','setSelectionRanges','IrregularSeal1','41OGxVse','POSITIVE_INFINITY','_isOpenedShapeEditPanel','ShapeTypeEnum','getConnectionRelation','shape.type.accent-callout3','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','RIGHT','subUnitId','ActionButtonSound','getTransformer','stops','fill','sheets-shape.line.endArrowSize','slice','isStartConnectorPoint','cxnPointStrokeWidth','sheets-shape.hidePanel','flipY','_currentConnectionTarget','ShapeFrameIcon','sheet.operation.close-sheet-shape-format-panel','lineStrokeType','_sheetsShapeService','_isStartAdjusting','IUndoRedoService','_handleConnectedEndpointPointerUp','shape.type.left-brace','shape.type.donut','documentStyle','ancestorTransform','registerClipDelegate','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','shape.type.flow-chart-multidocument','params','_getConnectPointInfo','ConnectorCoordinateTransform','offsetX','Path','shape.type.star10','sheet.command.menu-insert-shape','IURLImageService','getShapeData','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','_clipService','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ShapeStripedRightArrowIcon','engine','_updateShapeAdjustControls','shape.type.teardrop','_commandService','sheets-shape.insertShape','useEditor','_baseShapeWidth','getEndConnectInfo','ShapeFlowChartOnlineStorageIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','CROSSHAIR','BlockArc','toolbar.resetColor','prstGeomAdjValues','_generateCopyPasteMutations','Angular','sheets-shape.line.noLine','Diamond','shape.type.flow-chart-document','FlowchartSort','DependentOn','LeftRightRibbon','ENTER','ShapeBentConnector3Icon','shape.type.uturn-arrow','sheets-shape.line.dashType.longDash','sheets-shape.fill.title','ShapeLeftRightUpArrowIcon','ShapeEllipseRibbon2Icon','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeAccentCallout2Icon','_connectionSiteObjects','__esModule','_createCopyInfoByRange','sheets-shape.fill.pictureFill','3730806eBiZSu','FlowchartMagneticDisk','getDrawingShapeKeyByDrawingSearch','_updateAdjustControlPositions','ShapeTrapezoidIcon','Star5','FlowchartInternalStorage','sheet.operation.open-sheet-shape-format-panel','ShapeEditor','name','getOwnPropertyNames','discreteRangeToRange','jsxs','_hasReset','image','ShapeFlowChartOrIcon','editingParams$','align.left','ShapeMathNotEqualIcon','sheetViewStartColumn','CurvedDownArrow','Documents','ShapeMoonIcon','disableShapeOption','subscribeEvent','univer-text-xl\x20univer-text-gray-500','connector-handler-','lineType','ShapePlaqueIcon','unitId','ColorPicker','\x20px','SetSheetsShapeRotateCommand','_getShapeAdjustInfosById','dispose','LeftJustifyingIcon','ShapeBentUpArrowIcon','SHAPE_TEXT','scale','FlowchartMagneticTape','univer-w-20','paragraphStyle','_executeResizeCommand','endArrow','BracePair','blockExecuteWithoutPermission','updateDocumentDataMargin','shape.type.line','flowchart','_sheetShapeAdjustController','ShapeMathEqualIcon','RightTriangle','_sheetDrawingService','displayName','registerCommand','DocumentSkeleton','clear','sheets-shape.shapePosition','shape.type.bent-connector3-arrow1','ShapeBentConnector3Arrow2Icon','_drawingManagerService','isHorizontal','_isDrawingShapePointDown','reduce','_getShapeAdjustPointListById','ShapeLineTypeEnum','align.center','round','getBasicShapeRelation','Select','_shapes','ShapeUturnArrowIcon','ShapeSwooshArrowIcon','DrawingImageClipService','shape.type.no-smoking','register','ShapeFlowChartAlternateProcessIcon','ShapeLeftArrowIcon','GROUP','getConnectionInfo','gdRefX','sheets-shape.line.arrowType.none','SetShapeDrawingDataCommand','shape.type.action-button-home','sheets-shape.line.joinType.title','LineInv','ShapeWedgeRectCalloutIcon','_transformCalculateSrcRect','ShapeCallout3Icon','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','shape.type.down-arrow','shape.type.flow-chart-magnetic-tape','sheets-shape.line.dashType.squareDot','shape.type.wedge-round-rect-callout','sheets-shape.fill.picture.align.ctr','shape.type.double-wave','srcRect','shape.type.star16','getSheetCommandTarget','_sheetPermissionCheckController','Star8','ShapeRoundRectIcon','sheets-shape.line.dashType.dash','FlowchartMerge','isArray','HalfFrame','ActionButtonBlank','switchMap','Star7','_adjHandlerPointerUp','shape.type.chord','SheetDrawingAnchor','ShapeAccentBorderCallout3Icon','clearAdjustControls','Curved','Can','setCursor','replace','_urlImageService','ShapeBentArrowIcon','sheets-shape.formatShape','opacity','ShapeRectTextboxVerticalIcon','makeDirty','cos','ActionButtonMovie','DownArrowCallout','renderConfig','ShapeFlowChartDelayIcon','_activeShapeModel','DEFAULT_PASTE','horizontalAlign','ShapeStar7Icon','iterator','LeftCircularArrow','ShapeCloudIcon','IDrawingManagerService','ShapeQuadArrowCalloutIcon','other','isRenderLinePointsMode','fillType','SheetSkeletonService','LightningBolt','shape.type.irregular-seal2','default','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','_cxtHandlerPointerUp','17560AVsdeV','angular','ShapeFlowChartOffpageConnectorIcon','ShapeStar32Icon','_commandExecutedListener','getBatchRemoveOp','updateConnectionDetection','sheets-shape.line.dashType.dashDot','ShapeFlowChartDisplayIcon','refreshAdjustControls','_isConnecting','sheets-shape.fill.color','shape.type.star7','ShapeFlowChartProcessIcon','calcAdjValue','UNIVER_SHEET','Ribbon','Star16','addClipboardHook','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','getStartConnectInfo','button','ShapeFlowChartManualOperationIcon','CurvedConnector3','shape.type.irregular-seal1','computeConnectorResizeLayout','Round','updateShapeFillImage','starAndBanner','scaleX','shape.type.can','univer-pt-2','_showConnectionSites','ActionButtonHelp','getCurrentSkeleton','ShapeFolderCornerIcon','_loadAndSetImage','startX','shape.type.sun','LeftArrowCallout','ActionButtonInformation','ShapeLineCapEnum','function','SetShapeTextHorizontalAlignCommand','ShapeTriangleIcon','Moon','shape.type.math-plus','index','add','ActionButtonForwardNext','shape.type.rect','_handleFreeEndpointMove','Teardrop','shape.type.math-multiply','_sidebarService','Flat','render','MenuItemType','shape.type.left-arrow-callout','ShapeDodecagonIcon','shape-text-','shape.type.curved-up-arrow','shape.type.curved-left-arrow','getCurrentLastSelection','align.right','MathMultiply','ShapeStar16Icon','Inject','SnipRoundRect','_getShapeInfo','UturnArrow','shape.type.chart-plus','FlowchartAlternateProcess','call','BentUpArrow','transformByState','top','open','AlignBottomIcon','GradientFill','shape.type.star5','useCallback','unsubscribe','InsertShapeCommand','#bcbcbc','#ffffff','Heptagon','registerFeatureMenu','shape.type.cloud','ShapeStar10Icon','indexOf','OPERATION','cxnPointFill','_getImagePrstGeom','ShapeArrowSizeEnum','pick','HorizontalScroll','isHitLine','_initCommands','CommandType','ShapeFlowChartInternalStorageIcon','shape.type.ribbon2','StripedRightArrow','PictureFill','_props','type','shape.type.border-callout2','subscribeContextValue$','ShapeActionButtonReturnIcon','_rerouteConnectorLine','toStringTag','ShapeRound1RectIcon','_registerDrawingMoveHandler','_getZoomRatio','getShapePopupMenus','_injector','adjustValues','ShapeSketchTypeEnum','UPDATE','cxnPointRadius','sheets-shape-ui','getViewportByCell','shapeId','get','shape.type.left-right-circular-arrow','registerRenderModule','0.22.0','sheets-shape.line.title','constructor','ShapeBlockArcIcon','10wVLYsv','UniverSheetsShapeUIPlugin','LongDashDotDot','SheetInterceptorService','isHit','WRAP','ShapeSnipRoundRectIcon','colStartX','getImageSize','img','sheets-shape.line.width','point','ShapeRectTextboxHorizontalIcon','target','_getOrCreateShapeModel','rowStartY','HorizontallyIcon','IContextService','from','image-panel.crop.shape','gradientStops','sheets-shape.rotateLeft90','sheets-shape.fill.noFill','Stretch','getZoomRatio','shape.type.straight-connector2','WorkbookEditablePermission','gradientType','ShapeSunIcon','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeHorizontalScrollIcon','FlowchartPunchedTape','shapeType','_moveConnectorWithShape','undefined','getBatchUpdateOp','ShapeRightBraceIcon','ShapeStar12Icon','_draggingConnectorId','univer-text-gray-600\x20univer-transition-transform','UpdateLineShapeResizeCommand','2087728GnPxZn','ShapeFlowChartMagneticTapeIcon','sheets-shape.line.sketchType.curved','Octagon','ShapeWedgeRoundRectCalloutIcon','CurvedRightArrow','ShapeFlowChartPreparationIcon','Miter','shape.type.corner','_drawingType','FOCUSING_SHAPE_TEXT_EDITOR','Arc','_baseShapeLeft','ShapeUpArrowIcon','CurvedLeftArrow','translate','InsertSheetsShapeMutation','shape.type.quad-arrow','shape.type.down-arrow-callout','file','onRendered','flipX','clsx','setSrcRect','FlowchartMultiDocument','_addShapeAdjustControl','ShapeStraightConnector1Icon','_drawSimpleText','onTransformChange$','UUID','shape.type.accent-callout2','translateWithPrecision','align.top','sheet.shape.edit.panel','_clearConnectionSites','ShapeRound2SameRectIcon','isEditing','ShapeFlowChartTerminatorIcon','Square','univer-flex\x20univer-items-center\x20univer-gap-2','Snip2DiagRect','LongDashDot','#FFFFFF','getFocusDrawings','ShapeVerticalScrollIcon','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','ShapeLineIcon','DRAWING_IMAGE','ShapeWaveIcon','textRect','subscribe','shape.type.accent-border-callout3','CurvedUpArrow','IRenderManagerService','clearTimeout','CENTER','_initialize','routeConnectorLineShape','shape.type.pentagon','hasOwnProperty','univer-flex-1\x20univer-overflow-auto','updateLinePoints','shape.type.action-button-sound','BentArrow','getDrawingEditable','ShapeSquareTabsIcon','ShapeCurvedLeftArrowIcon','decorate','rotate(','visible','shape.type.snip-round-rect','Pentagon','_initPermission','shape.type.non-isosceles-trapezoid','shape.type.flow-chart-connector','ShapeActionButtonBlankIcon','Callout1','_editingParams$','transform','string','setEditing','ShapeHexagonIcon','current','abs','ShapeDonutIcon','getObject','rotation','activeSheet$','update$','Callout2','Gear6','map','_setTransForm','ShapeAccentCallout1Icon','ShapeStar24Icon','connection-site-','onPointerDown$','getConnectorLinePoints','shape.type.action-button-movie','SquareDot','getDrawingByParam','UpdateShapeDataCommand','shape.type.round2-diag-rect','computeConnectorRouteLayout','onReady','oKey','DRAWING_SHAPE','BorderCallout1','Star12','changeShapeType','RightJustifyingIcon','SolidLine','shape.type.round2-same-rect','diamond','drawing.operation.set-drawing-active','ShapeSnip1RectIcon','getTransformerByCreate','ShapeStar6Icon','shape.type.gear6','ShapeCircularArrowIcon','StealthArrow','offsetY','ShapeFlowChartSummingJunctionIcon','clip-adj-','DoubleWave','_isShouldShowDrawingShapeAdjust','ShapeLightningBoltIcon','ShapeBorderCallout2Icon','horizontal','getDrawingSearch','DrawingCommonPanel','Triangle','changing$','prstGeom','prototype','_initMenu','ShapeChevronIcon','ShapeRibbonIcon','_getScrollInfo','Observable','_registerImageShapeClipDelegate','generateRandomId','_activeImageId','AlignTopIcon','shape.type.flow-chart-manual-input','ICommandService','mergeMenu','_resetState','ShapeActionButtonHomeIcon','_getImageDrawingInfo','ActionButtonBeginning','verticalAlign','shape.type.left-arrow','adjHandleSize','shape.type.action-button-return','getCurrentTypeOfUnit$','sheets-shape.line.solidLine','blur','clip','shape.type.right-arrow','isCurvedConnectorShape','shape.type.callout3','updateContext','setHighlighted','asObservable','SmileyFace','refreshTransform','shape.type.flow-chart-collate','Button','SheetScrollManagerService','ShapeFlowChartPunchedCardIcon','Wave','sheets-shape.fill.transparency','highlighted','shape.type.swoosh-arrow','worldPoint','ShapeIrregularSeal2Icon','height','SetDrawingApplyMutation','Hexagon','Chevron','Callout3','endConnectionDetection','ShapeTextEditorContainer','univer-flex\x20univer-items-center\x20univer-justify-between','Plus','ShapeActionButtonForwardNextIcon','BehaviorSubject','LeftRightArrow','callout','getUnit','setAdjustValueByName','sheets-shape.line.arrowType.openArrow','transformToDrawingPosition','sheets-shape.line.dashType.longDashDot','_adjHandlerPointerMove','NoLine','fillImageSourceType','shapeModel','getShapeTextData','with','ChartX','sheets-shape.line.sketchType.title','ShapeStar8Icon','getAncestorScale','_configService','getCurrentScrollState','vertical','parseFloat','CopySheetCommand','FOCUSING_PANEL_EDITOR','clone','ShapeGear9Icon','ShapeIcon','FlowchartDisplay','ShapeDownArrowIcon','_sheetClipboardService','attachRangeWithCoord','RoundDot','_addShapeConnectorHandlerObject','files','beforeCommandExecuted','_contextService','forEach','DiamondArrow','keys','remove$','interceptCommand','shape.type.gear9','sheet.shape.picker.component','getUnitId','Funnel','focusDrawing','shape.type.funnel','ShapeBracePairIcon','shapeData','_currentScene','shape.type.right-bracket','setPrstGeom','LAYOUT','AccentCallout2','shape.type.frame','shape.type.diamond','warn','_registerFocusChangeHandler','LongDash','shape.type.flow-chart-punched-card','startWith','ShapeLeftRightRibbonIcon','ShapeActionButtonSoundIcon','_shapeService','sheets-shape.fill.picture.scaleX','_baseWidth','getDrawingData','HorizontalAlign','ShapeEllipseIcon','PREDEFINED_HOOK_NAME','align.bottom','shape.type.horizontal-scroll','centerAngle','FlowchartSummingJunction','normal','ShapeMathDivideIcon','addImageSourceCache','univer-rounded-lg\x20univer-p-3','Heart','shape.type.right-brace','Large','_openShapeEditPanel','getContextValue','position','getShapeTextRect','_config','setDocumentData','sheet.command.set-shape-text-vertical-align','shape.type.border-callout3','SetShapeTextFontSizeDecreaseCommand','Star4','_currentUniverService','1525428WesAxL','onCommandExecuted','ShapeBracketPairIcon','getDrawingVisible','getActualSize','FlowchartTerminator','ChartPlus','sheets-shape.fill.picture.align.tr','ShapeMathMultiplyIcon','VIEW_MAIN_TOP','COPY_TYPE','focus$','ShapeBorderCallout3Icon','shape.type.flow-chart-punched-tape','SheetsDrawingGroupCopyPasteController','CUT','shape.type.left-bracket','getViewport','ShapeLineJoinEnum','close','getSheetBySheetId','shape.type.left-up-arrow','InputNumber','ActionButtonDocument','NonIsoscelesTrapezoid','univer-text-gray-500','univer-hidden','toolbar.verticalAlignMode.main','Small','clipByShape','stroke','shape.type.left-right-ribbon','RightArrowCallout','shape.type.action-button-forward-next','width','ShapeCurvedDownArrowIcon','_registerDrawingFocusChangeHandler','ShapeEllipseRibbonIcon','shape.type.pie','getAdjustNames','ShapePlaqueTabsIcon','ShapeCurvedUpArrowIcon','executeCommand','ShapeNonIsoscelesTrapezoidIcon','ShapeAccentBorderCallout2Icon','shapeKey','FlowchartPunchedCard','ShapeFlowChartMagneticDrumIcon','_activeTargetShapeId','setZoomRatio'];_0x458e=function(){return _0x1cfa0d;};return _0x458e();}function ShapeMenuItemFactory(_0x30d88f){const _0x5a73ae=_0x101898,_0x11c285=_0x30d88f[_0x5a73ae(0x49b)](_univerjs_core[_0x5a73ae(0x653)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x5a73ae(0x459)][_0x5a73ae(0x124)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x5a73ae(0x5a0),'tooltip':_0x5a73ae(0x36e),'activated$':(0x0,_univerjs_sheets_ui[_0x5a73ae(0x2da)])(_0x11c285,![],()=>new rxjs[(_0x5a73ae(0x556))](_0x1f2b46=>{const _0x1c27b2=_0x5a73ae;_0x1f2b46[_0x1c27b2(0x119)](![]);})),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x30d88f,_univerjs_core['UniverInstanceType'][_0x5a73ae(0x42f)]),'disabled$':(0x0,_univerjs_sheets_ui['getCurrentRangeDisable$'])(_0x30d88f)};}const menuSchema={[_univerjs_ui[_0x101898(0x67a)][_0x101898(0x66d)]]:{[_univerjs_ui[_0x101898(0x616)][_0x101898(0x5ba)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0x101898(0x616)]['FORMAT']]:{[_univerjs_docs_ui[_0x101898(0x2c1)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui['RibbonInsertGroup']['MEDIA']]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x54f8a2,_0x2ce03e,_0x12fe04,_0x3538d0,_0x17ba69,_0xe9c3d0,_0x28edde,_0x245263,_0x19f79b,_0x4d1b53,_0x47db44){const _0x1f64b9=_0x101898;super(),this[_0x1f64b9(0x2e4)]=_0x54f8a2,this[_0x1f64b9(0x66e)]=_0x2ce03e,this[_0x1f64b9(0x456)]=_0x12fe04,this[_0x1f64b9(0x2de)]=_0x3538d0,this[_0x1f64b9(0x352)]=_0x17ba69,this[_0x1f64b9(0x679)]=_0xe9c3d0,this[_0x1f64b9(0x26a)]=_0x28edde,this[_0x1f64b9(0x36d)]=_0x245263,this[_0x1f64b9(0x3c9)]=_0x19f79b,this[_0x1f64b9(0x227)]=_0x4d1b53,this[_0x1f64b9(0x5a9)]=_0x47db44,_defineProperty(this,'_sidebarDisposable',null),_defineProperty(this,_0x1f64b9(0x28e),null),_defineProperty(this,_0x1f64b9(0x33d),![]),this['_registerComponent'](),this[_0x1f64b9(0x552)](),this[_0x1f64b9(0x1ff)](this[_0x1f64b9(0x2e4)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x1f64b9(0x1e3)][_0x1f64b9(0x42f)])[_0x1f64b9(0x4fd)](_0x1c3f89=>{const _0x2e68cf=_0x1f64b9;var _0x7f8063;if(!_0x1c3f89)(_0x7f8063=this[_0x2e68cf(0x665)])===null||_0x7f8063===void 0x0||_0x7f8063[_0x2e68cf(0x3af)]();})),this[_0x1f64b9(0x264)](),this['_registerShapeMenu']();}[_0x101898(0x552)](){const _0x397d1c=_0x101898;this[_0x397d1c(0x2de)][_0x397d1c(0x55d)](menuSchema);}[_0x101898(0x307)](){const _0xd74b97=_0x101898;this[_0xd74b97(0x227)][_0xd74b97(0x477)](_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],this[_0xd74b97(0x492)][_0xd74b97(0x2d2)](this)),this[_0xd74b97(0x227)][_0xd74b97(0x226)](_univerjs_core[_0xd74b97(0x229)][_0xd74b97(0x535)],0x6,0x4);}[_0x101898(0x492)](_0x3ebbbd,_0x3aff96,_0x31a439,_0x20fafd){const _0x3e79ea=_0x101898;return[{'label':_0x3e79ea(0x670),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439},'disable':_0x20fafd===_univerjs_core['DrawingTypeEnum'][_0x3e79ea(0x63f)]},{'label':_0x3e79ea(0x152),'index':0x1,'commandId':_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x3ebbbd,'drawings':[{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439,'drawingType':_0x20fafd}]},'disable':![]},{'label':_0x3e79ea(0x34c),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'drawingId':_0x31a439},'disable':![]},{'label':_0x3e79ea(0x158),'index':0x3,'commandId':_univerjs_pro_sheets_shape['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x1f8)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'flipV':!![]},'disable':![]},{'label':_0x3e79ea(0x314),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x3ad)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'rotate':0x5a},'disable':![]},{'label':_0x3e79ea(0x4b7),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x3ad)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439,'rotate':-0x5a},'disable':![]},{'label':_0x3e79ea(0x24b),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x3e79ea(0x1fb)]['id'],'commandParams':{'unitId':_0x3ebbbd,'subUnitId':_0x3aff96,'shapeId':_0x31a439},'disable':![]}];}[_0x101898(0x465)](_0x4ea1dd,_0x5f31f6,_0x51f2ab){const _0x477199=_0x101898,_0x1265ea=this[_0x477199(0x352)][_0x477199(0x621)](_0x4ea1dd,_0x5f31f6,_0x51f2ab),_0x34bb2f=this['_sheetsShapeService'][_0x477199(0x1be)](_0x4ea1dd,_0x5f31f6,_0x51f2ab);if(_0x1265ea!==void 0x0&&_0x34bb2f!==void 0x0)return{'shapeData':_0x34bb2f,'shapeId':_0x51f2ab,'shapeType':_0x1265ea,'unitId':_0x4ea1dd,'subUnitId':_0x5f31f6,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x5bfe2b=_0x101898;this[_0x5bfe2b(0x1ff)](this[_0x5bfe2b(0x36d)][_0x5bfe2b(0x5e3)](_0x569d83=>{const _0x25697e=_0x5bfe2b;if(_0x569d83['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x27dfa5,subUnitId:_0x28cfba,drawingId:_0x47c829}=_0x569d83[_0x25697e(0x35d)];this['_activeShapeInfo']=this['_getShapeInfo'](_0x27dfa5,_0x28cfba,_0x47c829),this[_0x25697e(0x5d7)]();}_0x569d83['id']===CloseSheetShapeFormatPanelOperation['id']&&(this['_activeShapeInfo']=null,this[_0x25697e(0x622)]());if(_0x569d83['id']===_univerjs_pro_sheets_shape[_0x25697e(0x620)]['id']){const {unitId:_0x5ecedc,subUnitId:_0x1001e6,shapeId:_0x3ba2e3}=_0x569d83['params'];if(this[_0x25697e(0x28e)]&&this[_0x25697e(0x28e)][_0x25697e(0x49a)]===_0x3ba2e3){const _0x6c5764=this[_0x25697e(0x465)](_0x5ecedc,_0x1001e6,_0x3ba2e3);if(_0x6c5764)this[_0x25697e(0x28e)]=_0x6c5764;}}})),this[_0x5bfe2b(0x1ff)](this[_0x5bfe2b(0x3c9)]['focus$'][_0x5bfe2b(0x4fd)](_0x21e486=>{const _0x515cc9=_0x5bfe2b;if(this[_0x515cc9(0x33d)]===![])return;if(_0x21e486[_0x515cc9(0x1ec)]===0x0){this[_0x515cc9(0x28e)]=null,this[_0x515cc9(0x622)]();return;}if(_0x21e486[_0x515cc9(0x1ec)]===0x1&&_0x21e486[0x0][_0x515cc9(0x324)]===_univerjs_core[_0x515cc9(0x229)]['DRAWING_SHAPE']){this[_0x515cc9(0x28e)]=this[_0x515cc9(0x465)](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0][_0x515cc9(0x343)],_0x21e486[0x0][_0x515cc9(0x16c)]);if(this[_0x515cc9(0x28e)]){this['_openShapeEditPanel']();return;}}const _0x7816a=_0x21e486[_0x515cc9(0x1f5)](_0x34e1ae=>{const _0x286103=_0x515cc9;return _0x34e1ae['drawingType']===_univerjs_core[_0x286103(0x229)][_0x286103(0x535)];});if(_0x21e486[_0x515cc9(0x1ec)]>0x1&&_0x7816a['length']===_0x21e486[_0x515cc9(0x1ec)]){this[_0x515cc9(0x28e)]=this[_0x515cc9(0x465)](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0][_0x515cc9(0x343)],_0x21e486[0x0]['drawingId']);if(this[_0x515cc9(0x28e)]){this['_openShapeEditPanel']();return;}}else{this[_0x515cc9(0x28e)]=this['_getShapeInfo'](_0x21e486[0x0][_0x515cc9(0x3aa)],_0x21e486[0x0]['subUnitId'],_0x21e486[0x0][_0x515cc9(0x16c)]);if(this[_0x515cc9(0x28e)]){this[_0x515cc9(0x28e)][_0x515cc9(0x3a4)]=!![],this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}['_registerComponent'](){const _0x3e7313=_0x101898;[[_0x3e7313(0x5a0),_univerjs_icons[_0x3e7313(0x5a0)]],['ShapeAccentBorderCallout1Icon',_univerjs_icons['ShapeAccentBorderCallout1Icon']],[_0x3e7313(0x60e),_univerjs_icons[_0x3e7313(0x60e)]],[_0x3e7313(0x3fd),_univerjs_icons[_0x3e7313(0x3fd)]],[_0x3e7313(0x528),_univerjs_icons['ShapeAccentCallout1Icon']],[_0x3e7313(0x388),_univerjs_icons[_0x3e7313(0x388)]],[_0x3e7313(0x2c4),_univerjs_icons[_0x3e7313(0x2c4)]],[_0x3e7313(0x2e7),_univerjs_icons['ShapeActionButtonBackPreviousIcon']],[_0x3e7313(0x625),_univerjs_icons[_0x3e7313(0x625)]],[_0x3e7313(0x516),_univerjs_icons[_0x3e7313(0x516)]],[_0x3e7313(0x63b),_univerjs_icons[_0x3e7313(0x63b)]],[_0x3e7313(0x234),_univerjs_icons[_0x3e7313(0x234)]],[_0x3e7313(0x585),_univerjs_icons[_0x3e7313(0x585)]],[_0x3e7313(0x1dc),_univerjs_icons[_0x3e7313(0x1dc)]],[_0x3e7313(0x55f),_univerjs_icons['ShapeActionButtonHomeIcon']],[_0x3e7313(0x144),_univerjs_icons[_0x3e7313(0x144)]],['ShapeActionButtonMovieIcon',_univerjs_icons['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',_univerjs_icons[_0x3e7313(0x48c)]],[_0x3e7313(0x5c4),_univerjs_icons['ShapeActionButtonSoundIcon']],[_0x3e7313(0x1b7),_univerjs_icons[_0x3e7313(0x1b7)]],['ShapeBentArrowIcon',_univerjs_icons[_0x3e7313(0x404)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons[_0x3e7313(0x2f8)]],['ShapeBentConnector3Arrow2Icon',_univerjs_icons[_0x3e7313(0x3c8)]],[_0x3e7313(0x381),_univerjs_icons[_0x3e7313(0x381)]],['ShapeBentUpArrowIcon',_univerjs_icons[_0x3e7313(0x3b1)]],['ShapeBevelIcon',_univerjs_icons[_0x3e7313(0x25a)]],[_0x3e7313(0x4a1),_univerjs_icons['ShapeBlockArcIcon']],[_0x3e7313(0x224),_univerjs_icons[_0x3e7313(0x224)]],[_0x3e7313(0x54a),_univerjs_icons[_0x3e7313(0x54a)]],[_0x3e7313(0x5ee),_univerjs_icons[_0x3e7313(0x5ee)]],[_0x3e7313(0x5b5),_univerjs_icons[_0x3e7313(0x5b5)]],[_0x3e7313(0x5e4),_univerjs_icons[_0x3e7313(0x5e4)]],[_0x3e7313(0x246),_univerjs_icons[_0x3e7313(0x246)]],[_0x3e7313(0x27f),_univerjs_icons[_0x3e7313(0x27f)]],[_0x3e7313(0x3e5),_univerjs_icons['ShapeCallout3Icon']],[_0x3e7313(0x2a5),_univerjs_icons['ShapeCanIcon']],[_0x3e7313(0x2f2),_univerjs_icons[_0x3e7313(0x2f2)]],[_0x3e7313(0x2b9),_univerjs_icons[_0x3e7313(0x2b9)]],[_0x3e7313(0x2c2),_univerjs_icons[_0x3e7313(0x2c2)]],[_0x3e7313(0x553),_univerjs_icons[_0x3e7313(0x553)]],['ShapeChordIcon',_univerjs_icons[_0x3e7313(0x2ea)]],[_0x3e7313(0x542),_univerjs_icons[_0x3e7313(0x542)]],['ShapeCloudCalloutIcon',_univerjs_icons[_0x3e7313(0x1c8)]],[_0x3e7313(0x414),_univerjs_icons[_0x3e7313(0x414)]],[_0x3e7313(0x655),_univerjs_icons[_0x3e7313(0x655)]],[_0x3e7313(0x18d),_univerjs_icons[_0x3e7313(0x18d)]],[_0x3e7313(0x30d),_univerjs_icons[_0x3e7313(0x30d)]],[_0x3e7313(0x2a0),_univerjs_icons[_0x3e7313(0x2a0)]],[_0x3e7313(0x276),_univerjs_icons['ShapeCurvedConnector3Arrow2Icon']],[_0x3e7313(0x28b),_univerjs_icons[_0x3e7313(0x28b)]],[_0x3e7313(0x605),_univerjs_icons[_0x3e7313(0x605)]],[_0x3e7313(0x50d),_univerjs_icons[_0x3e7313(0x50d)]],[_0x3e7313(0x2cb),_univerjs_icons[_0x3e7313(0x2cb)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0x3e7313(0x60b)]],[_0x3e7313(0x2ce),_univerjs_icons[_0x3e7313(0x2ce)]],[_0x3e7313(0x61b),_univerjs_icons['ShapeDiagStripeIcon']],['ShapeDiamondIcon',_univerjs_icons[_0x3e7313(0x22a)]],[_0x3e7313(0x45b),_univerjs_icons[_0x3e7313(0x45b)]],[_0x3e7313(0x51f),_univerjs_icons[_0x3e7313(0x51f)]],[_0x3e7313(0x26c),_univerjs_icons[_0x3e7313(0x26c)]],['ShapeDownArrowCalloutIcon',_univerjs_icons['ShapeDownArrowCalloutIcon']],[_0x3e7313(0x5a2),_univerjs_icons[_0x3e7313(0x5a2)]],[_0x3e7313(0x5ca),_univerjs_icons[_0x3e7313(0x5ca)]],['ShapeEllipseRibbon2Icon',_univerjs_icons[_0x3e7313(0x386)]],[_0x3e7313(0x607),_univerjs_icons[_0x3e7313(0x607)]],[_0x3e7313(0x3d9),_univerjs_icons[_0x3e7313(0x3d9)]],[_0x3e7313(0x21e),_univerjs_icons[_0x3e7313(0x21e)]],[_0x3e7313(0x223),_univerjs_icons[_0x3e7313(0x223)]],[_0x3e7313(0x301),_univerjs_icons[_0x3e7313(0x301)]],[_0x3e7313(0x40d),_univerjs_icons[_0x3e7313(0x40d)]],[_0x3e7313(0x428),_univerjs_icons['ShapeFlowChartDisplayIcon']],[_0x3e7313(0x2d4),_univerjs_icons[_0x3e7313(0x2d4)]],['ShapeFlowChartExtractIcon',_univerjs_icons[_0x3e7313(0x1c6)]],[_0x3e7313(0x333),_univerjs_icons['ShapeFlowChartInputOutputIcon']],[_0x3e7313(0x484),_univerjs_icons[_0x3e7313(0x484)]],['ShapeFlowChartMagneticDiskIcon',_univerjs_icons[_0x3e7313(0x644)]],[_0x3e7313(0x611),_univerjs_icons['ShapeFlowChartMagneticDrumIcon']],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons['ShapeFlowChartMagneticTapeIcon']],['ShapeFlowChartManualInputIcon',_univerjs_icons[_0x3e7313(0x336)]],[_0x3e7313(0x436),_univerjs_icons[_0x3e7313(0x436)]],[_0x3e7313(0x311),_univerjs_icons[_0x3e7313(0x311)]],[_0x3e7313(0x687),_univerjs_icons[_0x3e7313(0x687)]],[_0x3e7313(0x305),_univerjs_icons[_0x3e7313(0x305)]],[_0x3e7313(0x422),_univerjs_icons[_0x3e7313(0x422)]],[_0x3e7313(0x372),_univerjs_icons[_0x3e7313(0x372)]],['ShapeFlowChartOrIcon',_univerjs_icons[_0x3e7313(0x39c)]],['ShapeFlowChartPredefinedProcessIcon',_univerjs_icons[_0x3e7313(0x335)]],['ShapeFlowChartPreparationIcon',_univerjs_icons['ShapeFlowChartPreparationIcon']],['ShapeFlowChartProcessIcon',_univerjs_icons[_0x3e7313(0x42d)]],[_0x3e7313(0x575),_univerjs_icons['ShapeFlowChartPunchedCardIcon']],[_0x3e7313(0x1f2),_univerjs_icons[_0x3e7313(0x1f2)]],[_0x3e7313(0x257),_univerjs_icons[_0x3e7313(0x257)]],[_0x3e7313(0x545),_univerjs_icons['ShapeFlowChartSummingJunctionIcon']],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x3e7313(0x4f0)]],[_0x3e7313(0x443),_univerjs_icons[_0x3e7313(0x443)]],[_0x3e7313(0x34f),_univerjs_icons['ShapeFrameIcon']],['ShapeFunnelIcon',_univerjs_icons[_0x3e7313(0x196)]],[_0x3e7313(0x18f),_univerjs_icons[_0x3e7313(0x18f)]],['ShapeGear9Icon',_univerjs_icons['ShapeGear9Icon']],[_0x3e7313(0x1a4),_univerjs_icons[_0x3e7313(0x1a4)]],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x3e7313(0x166),_univerjs_icons['ShapeHeptagonIcon']],['ShapeHexagonIcon',_univerjs_icons['ShapeHexagonIcon']],[_0x3e7313(0x23d),_univerjs_icons[_0x3e7313(0x23d)]],[_0x3e7313(0x4c0),_univerjs_icons[_0x3e7313(0x4c0)]],['ShapeIrregularSeal1Icon',_univerjs_icons[_0x3e7313(0x685)]],[_0x3e7313(0x57b),_univerjs_icons[_0x3e7313(0x57b)]],[_0x3e7313(0x133),_univerjs_icons[_0x3e7313(0x133)]],[_0x3e7313(0x3da),_univerjs_icons[_0x3e7313(0x3da)]],['ShapeLeftBraceIcon',_univerjs_icons['ShapeLeftBraceIcon']],['ShapeLeftBracketIcon',_univerjs_icons['ShapeLeftBracketIcon']],[_0x3e7313(0x15f),_univerjs_icons[_0x3e7313(0x15f)]],[_0x3e7313(0x147),_univerjs_icons['ShapeLeftRightArrowCalloutIcon']],['ShapeLeftRightArrowIcon',_univerjs_icons['ShapeLeftRightArrowIcon']],[_0x3e7313(0x302),_univerjs_icons[_0x3e7313(0x302)]],[_0x3e7313(0x5c3),_univerjs_icons['ShapeLeftRightRibbonIcon']],[_0x3e7313(0x385),_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x3e7313(0x250)]],[_0x3e7313(0x549),_univerjs_icons['ShapeLightningBoltIcon']],[_0x3e7313(0x4f9),_univerjs_icons[_0x3e7313(0x4f9)]],[_0x3e7313(0x2b2),_univerjs_icons[_0x3e7313(0x2b2)]],[_0x3e7313(0x5d1),_univerjs_icons[_0x3e7313(0x5d1)]],[_0x3e7313(0x3bf),_univerjs_icons[_0x3e7313(0x3bf)]],[_0x3e7313(0x332),_univerjs_icons[_0x3e7313(0x332)]],['ShapeMathMultiplyIcon',_univerjs_icons[_0x3e7313(0x5ea)]],[_0x3e7313(0x39f),_univerjs_icons[_0x3e7313(0x39f)]],[_0x3e7313(0x254),_univerjs_icons[_0x3e7313(0x254)]],[_0x3e7313(0x3a3),_univerjs_icons[_0x3e7313(0x3a3)]],[_0x3e7313(0x1fc),_univerjs_icons['ShapeNoSmokingIcon']],[_0x3e7313(0x60d),_univerjs_icons[_0x3e7313(0x60d)]],[_0x3e7313(0x28a),_univerjs_icons[_0x3e7313(0x28a)]],['ShapeOctagonIcon',_univerjs_icons[_0x3e7313(0x317)]],['ShapeParallelogramIcon',_univerjs_icons[_0x3e7313(0x638)]],['ShapePentagonIcon',_univerjs_icons['ShapePentagonIcon']],[_0x3e7313(0x24f),_univerjs_icons[_0x3e7313(0x24f)]],['ShapePieWedgeIcon',_univerjs_icons[_0x3e7313(0x652)]],[_0x3e7313(0x3a9),_univerjs_icons[_0x3e7313(0x3a9)]],[_0x3e7313(0x60a),_univerjs_icons[_0x3e7313(0x60a)]],['ShapePlusIcon',_univerjs_icons[_0x3e7313(0x203)]],['ShapeQuadArrowCalloutIcon',_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x3e7313(0x27d),_univerjs_icons[_0x3e7313(0x27d)]],[_0x3e7313(0x13a),_univerjs_icons[_0x3e7313(0x13a)]],[_0x3e7313(0x4ae),_univerjs_icons['ShapeRectTextboxHorizontalIcon']],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x3e7313(0x407)]],['ShapeRibbon2Icon',_univerjs_icons[_0x3e7313(0x62d)]],[_0x3e7313(0x554),_univerjs_icons[_0x3e7313(0x554)]],['ShapeRightArrowCalloutIcon',_univerjs_icons[_0x3e7313(0x23e)]],['ShapeRightArrowIcon',_univerjs_icons[_0x3e7313(0x2e5)]],['ShapeRightBraceIcon',_univerjs_icons[_0x3e7313(0x4c6)]],[_0x3e7313(0x316),_univerjs_icons[_0x3e7313(0x316)]],[_0x3e7313(0x48f),_univerjs_icons[_0x3e7313(0x48f)]],[_0x3e7313(0x66f),_univerjs_icons[_0x3e7313(0x66f)]],[_0x3e7313(0x4ee),_univerjs_icons[_0x3e7313(0x4ee)]],[_0x3e7313(0x3f2),_univerjs_icons[_0x3e7313(0x3f2)]],[_0x3e7313(0x2e0),_univerjs_icons[_0x3e7313(0x2e0)]],[_0x3e7313(0x129),_univerjs_icons['ShapeSmileyFaceIcon']],['ShapeSnip1RectIcon',_univerjs_icons[_0x3e7313(0x53e)]],[_0x3e7313(0x645),_univerjs_icons['ShapeSnip2DiagRectIcon']],['ShapeSnip2SameRectIcon',_univerjs_icons[_0x3e7313(0x225)]],[_0x3e7313(0x4a8),_univerjs_icons[_0x3e7313(0x4a8)]],[_0x3e7313(0x50c),_univerjs_icons[_0x3e7313(0x50c)]],[_0x3e7313(0x479),_univerjs_icons[_0x3e7313(0x479)]],[_0x3e7313(0x4c7),_univerjs_icons[_0x3e7313(0x4c7)]],['ShapeStar16Icon',_univerjs_icons[_0x3e7313(0x462)]],[_0x3e7313(0x529),_univerjs_icons['ShapeStar24Icon']],[_0x3e7313(0x423),_univerjs_icons[_0x3e7313(0x423)]],[_0x3e7313(0x689),_univerjs_icons[_0x3e7313(0x689)]],[_0x3e7313(0x1de),_univerjs_icons[_0x3e7313(0x1de)]],[_0x3e7313(0x540),_univerjs_icons[_0x3e7313(0x540)]],[_0x3e7313(0x411),_univerjs_icons['ShapeStar7Icon']],['ShapeStar8Icon',_univerjs_icons[_0x3e7313(0x596)]],[_0x3e7313(0x4e5),_univerjs_icons[_0x3e7313(0x4e5)]],[_0x3e7313(0x19b),_univerjs_icons[_0x3e7313(0x19b)]],['ShapeStripedRightArrowIcon',_univerjs_icons[_0x3e7313(0x369)]],[_0x3e7313(0x4be),_univerjs_icons[_0x3e7313(0x4be)]],['ShapeSwooshArrowIcon',_univerjs_icons[_0x3e7313(0x3d5)]],[_0x3e7313(0x2a1),_univerjs_icons['ShapeTeardropIcon']],[_0x3e7313(0x391),_univerjs_icons[_0x3e7313(0x391)]],[_0x3e7313(0x44c),_univerjs_icons['ShapeTriangleIcon']],[_0x3e7313(0x312),_univerjs_icons[_0x3e7313(0x312)]],[_0x3e7313(0x4d8),_univerjs_icons[_0x3e7313(0x4d8)]],['ShapeUpDownArrowCalloutIcon',_univerjs_icons[_0x3e7313(0x30e)]],[_0x3e7313(0x11a),_univerjs_icons[_0x3e7313(0x11a)]],[_0x3e7313(0x3d4),_univerjs_icons[_0x3e7313(0x3d4)]],[_0x3e7313(0x4f7),_univerjs_icons[_0x3e7313(0x4f7)]],[_0x3e7313(0x4fb),_univerjs_icons[_0x3e7313(0x4fb)]],['ShapeWedgeEllipseCalloutIcon',_univerjs_icons['ShapeWedgeEllipseCalloutIcon']],[_0x3e7313(0x3e3),_univerjs_icons[_0x3e7313(0x3e3)]],[_0x3e7313(0x4cf),_univerjs_icons[_0x3e7313(0x4cf)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x3e7313(0x368)],ImageClipShapePicker]][_0x3e7313(0x5aa)](([_0x88b29f,_0x19e80f])=>{const _0x46048e=_0x3e7313;this['disposeWithMe'](this['_componentManager'][_0x46048e(0x3d8)](_0x88b29f,_0x19e80f));});}[_0x101898(0x5d7)](){const _0x14cd1e=_0x101898;this[_0x14cd1e(0x665)]=this[_0x14cd1e(0x456)][_0x14cd1e(0x46d)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x14cd1e(0x679)]['t'](_0x14cd1e(0x405))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x14cd1e(0x28e)]},'onClose':()=>{const _0x3339e8=_0x14cd1e;this['_drawingManagerService'][_0x3339e8(0x5b3)](null),this[_0x3339e8(0x5a9)]['setContextValue'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this[_0x3339e8(0x665)]=null;}}),this[_0x14cd1e(0x33d)]=!![];}[_0x101898(0x622)](){const _0x3c1c98=_0x101898;this[_0x3c1c98(0x33d)]=![],this[_0x3c1c98(0x456)][_0x3c1c98(0x5f5)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x3c1c98(0x665)]=null,this[_0x3c1c98(0x5a9)]['setContextValue'](_univerjs_core[_0x3c1c98(0x615)],![]),this[_0x3c1c98(0x3c9)][_0x3c1c98(0x5b3)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x101898(0x4a5)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_ui['ISidebarService'])),__decorateParam(0x3,_univerjs_ui[_0x101898(0x27e)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x101898(0x1bb)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_ui['SheetCanvasPopManagerService'])),__decorateParam(0xa,_univerjs_core['IContextService'])],SheetsShapeUIController);var name=_0x101898(0x1ca),version=_0x101898(0x49e);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY='sheets-shape.config',configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x4093ad,_0x351c6b,_0x5ed311,_0x4871f6,_0x44f096){const _0x472c09=_0x101898;super(),this[_0x472c09(0x643)]=_0x4093ad,this[_0x472c09(0x3c9)]=_0x351c6b,this[_0x472c09(0x28f)]=_0x5ed311,this['_univerInstanceService']=_0x4871f6,this[_0x472c09(0x199)]=_0x44f096,_defineProperty(this,_0x472c09(0x559),null),_defineProperty(this,_0x472c09(0x2ae),null),_defineProperty(this,_0x472c09(0x1a9),null),_defineProperty(this,_0x472c09(0x292),void 0x0),_defineProperty(this,_0x472c09(0x3d3),[]),_defineProperty(this,_0x472c09(0x11d),0x0),_defineProperty(this,_0x472c09(0x1ab),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,_0x472c09(0x239),0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x472c09(0x2f3),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,_0x472c09(0x3fa),void 0x0),_defineProperty(this,'_isImagePointerDown',![]),this[_0x472c09(0x5bf)](),this['_registerMoveHandler']();}[_0x101898(0x3fe)](){const _0x49aa3e=_0x101898;this[_0x49aa3e(0x25f)]();}['refreshAdjustControls'](){const _0x47e3fd=_0x101898;this[_0x47e3fd(0x25f)](),this[_0x47e3fd(0x297)](!![]);}[_0x101898(0x4b0)](_0x456de5,_0x3d621f,_0x466566,_0x4aa0aa){const _0x4888a9=_0x101898,_0x47e9e1=_0x456de5;if(_0x47e9e1===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x4888a9(0x678)]||_0x456de5==='custom')return;try{const _0x111e6b=new _univerjs_pro_engine_shape[(_0x4888a9(0x286))](_0x47e9e1,_0x4888a9(0x546)+_0x456de5);if(_0x4aa0aa)_0x111e6b[_0x4888a9(0x22f)]({'adjustValues':_0x4aa0aa},!![]);return _0x111e6b[_0x4888a9(0x56d)]({'width':_0x3d621f,'height':_0x466566}),_0x111e6b;}catch{return;}}[_0x101898(0x560)](_0x2c868a,_0x3cab1a,_0xa40dac){const _0x24543f=_0x101898,_0x30a2b5={'unitId':_0x2c868a,'subUnitId':_0x3cab1a,'drawingId':_0xa40dac},_0x309590=this[_0x24543f(0x3c9)]['getDrawingByParam'](_0x30a2b5);if(!_0x309590||_0x309590[_0x24543f(0x324)]!==_univerjs_core['DrawingTypeEnum']['DRAWING_IMAGE'])return;return _0x309590;}[_0x101898(0x47d)](_0x2cebb7,_0x3526cd,_0x48e6b5){const _0x4f79a3=_0x101898,_0x45e653=this[_0x4f79a3(0x28f)][_0x4f79a3(0x1f9)](_0x2cebb7);if(!_0x45e653)return void 0x0;const {scene:_0x111350}=_0x45e653,_0x50c3ee=(0x0,_univerjs_drawing[_0x4f79a3(0x38f)])({'unitId':_0x2cebb7,'subUnitId':_0x3526cd,'drawingId':_0x48e6b5}),_0x3e3faf=_0x111350['getObject'](_0x50c3ee);if(_0x3e3faf instanceof _univerjs_engine_render[_0x4f79a3(0x154)]){const _0x417550=_0x3e3faf[_0x4f79a3(0x550)];if(_0x417550)return{'prstGeom':_0x417550,'adjustValues':_0x3e3faf[_0x4f79a3(0x377)]};}}['_createControls'](_0x2ce3b6=![]){const _0x234de9=_0x101898;if(!this[_0x234de9(0x2ae)]||!this[_0x234de9(0x1a9)]||!this['_activeImageId'])return;const _0x17574a=this[_0x234de9(0x28f)][_0x234de9(0x1f9)](this[_0x234de9(0x2ae)]);if(!_0x17574a)return;if(!_0x17574a['with'](_univerjs_sheets_ui[_0x234de9(0x217)])[_0x234de9(0x442)]())return;const {scene:_0x54c92d}=_0x17574a,_0x4319ac=this[_0x234de9(0x560)](this[_0x234de9(0x2ae)],this[_0x234de9(0x1a9)],this[_0x234de9(0x559)]);if(!_0x4319ac)return;const {transform:_0x4294f3}=_0x4319ac;if(!_0x4294f3)return;const {left:_0x36f1ae,top:_0x3c922f,width:_0x1bf9a2,height:_0x2b0382,flipX:_0x1952e5,flipY:_0x2fbc99,angle:angle=0x0}=_0x4294f3;if(_0x36f1ae===void 0x0||_0x3c922f===void 0x0)return;const _0x5668e0=this['_getImagePrstGeom'](this[_0x234de9(0x2ae)],this['_subUnitId'],this[_0x234de9(0x559)]);if(!_0x5668e0)return;if(_0x2ce3b6){const _0x1ef57d=this['_getOrCreateShapeModel'](_0x5668e0[_0x234de9(0x550)],_0x1bf9a2||0x0,_0x2b0382||0x0,_0x5668e0[_0x234de9(0x494)]);if(!_0x1ef57d)return;this[_0x234de9(0x292)]=_0x1ef57d[_0x234de9(0x23f)]();}const _0x599269=this[_0x234de9(0x292)];if(!_0x599269||_0x599269[_0x234de9(0x1ec)]===0x0)return;for(let _0x420cab=0x0;_0x420cab<_0x599269['length'];_0x420cab++){const _0x398169=_0x599269[_0x420cab];let _0x41641f=_0x398169['x'],_0x15b1a8=_0x398169['y'];if(_0x1952e5)_0x41641f=(_0x1bf9a2||0x0)-_0x41641f;if(_0x2fbc99)_0x15b1a8=(_0x2b0382||0x0)-_0x15b1a8;if(angle!==0x0){const _0x13ac39=(_0x1bf9a2||0x0)/0x2,_0x5b00f8=(_0x2b0382||0x0)/0x2,_0x133243=angle*Math['PI']/0xb4,_0x3ca118=Math[_0x234de9(0x409)](_0x133243),_0x2bfc99=Math['sin'](_0x133243),_0x6d602=_0x41641f-_0x13ac39,_0x42b6c6=_0x15b1a8-_0x5b00f8;_0x41641f=_0x13ac39+(_0x6d602*_0x3ca118-_0x42b6c6*_0x2bfc99),_0x15b1a8=_0x5b00f8+(_0x6d602*_0x2bfc99+_0x42b6c6*_0x3ca118);}const _0x451131={'x':_0x41641f,'y':_0x15b1a8,'adjName':_0x398169[_0x234de9(0x1aa)]};this['_addControl'](_0x54c92d,_0x451131,_0x451131[_0x234de9(0x1aa)],_0x36f1ae,_0x3c922f,this[_0x234de9(0x2ae)],this[_0x234de9(0x1a9)]);}}['_addControl'](_0x50709d,_0x1bcaad,_0x1be149,_0x3692a7,_0x437357,_0x1f3302,_0x551285){const _0x16847a=_0x101898;if(!this['_activeImageId'])return;const _0x5cf990=_0x16847a(0x2b1)+this[_0x16847a(0x559)]+'-'+_0x1be149,_0x1d396d=_0x50709d['getObjectIncludeInGroup'](_0x5cf990);if(_0x1d396d){_0x1d396d['transformByState']({'left':_0x1bcaad['x']+_0x3692a7-_univerjs_pro_engine_shape[_0x16847a(0x30a)][_0x16847a(0x564)],'top':_0x1bcaad['y']+_0x437357-_univerjs_pro_engine_shape[_0x16847a(0x30a)][_0x16847a(0x564)]});return;}const _0x281c5e=new SheetShapeAdjustPointObject(_0x5cf990,{'left':_0x1bcaad['x']+_0x3692a7-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)],'top':_0x1bcaad['y']+_0x437357-_univerjs_pro_engine_shape[_0x16847a(0x30a)]['adjHandleSize'],'adjName':_0x1be149,'shapeId':this[_0x16847a(0x559)],'unitId':_0x1f3302,'subUnitId':_0x551285,'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)]+0x8,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16847a(0x564)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this['_shapes']['push'](_0x281c5e),this[_0x16847a(0x13d)](_0x281c5e,_0x50709d,_0x1be149),_0x50709d[_0x16847a(0x22c)](_0x281c5e,_univerjs_engine_render[_0x16847a(0x11f)]+0x1);}['_clearControls'](){const _0xd61ad4=_0x101898;if(this[_0xd61ad4(0x3d3)]['length']===0x0)return;this[_0xd61ad4(0x3d3)][_0xd61ad4(0x5aa)](_0x1d89ec=>_0x1d89ec[_0xd61ad4(0x3af)]()),this['_shapes']=[];}[_0x101898(0x555)](_0x15a7c7,_0x513884){const _0x2429fc=_0x101898;var _0x8ed189;const _0xfce767={'x':0x0,'y':0x0},_0x2d7c08=this[_0x2429fc(0x28f)][_0x2429fc(0x1f9)](_0x15a7c7);if(!_0x2d7c08)return _0xfce767;if(!_0x2d7c08[_0x2429fc(0x593)](_univerjs_sheets_ui[_0x2429fc(0x217)])[_0x2429fc(0x1f6)](_0x513884))return _0xfce767;const _0x23f288=_0x2d7c08[_0x2429fc(0x593)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x225778=_0x23f288===null||_0x23f288===void 0x0?void 0x0:_0x23f288['getCurrentScrollState']();if(!_0x225778)return _0xfce767;const _0xc2841b=(_0x8ed189=this[_0x2429fc(0x2e4)]['getUnit'](_0x15a7c7))===null||_0x8ed189===void 0x0?void 0x0:_0x8ed189['getSheetBySheetId'](_0x513884);if(!_0xc2841b)return _0xfce767;const _0x484edf=(0x0,_univerjs_sheets_ui[_0x2429fc(0x499)])(_0x225778['sheetViewStartRow'],_0x225778[_0x2429fc(0x3a0)],_0x2d7c08[_0x2429fc(0x2dc)],_0xc2841b);if(!_0x484edf)return _0xfce767;return{'x':_0x484edf[_0x2429fc(0x149)],'y':_0x484edf[_0x2429fc(0x193)]};}['_getZoomRatio'](_0xbfb920,_0x3709a7){const _0xbf336e=_0x101898;var _0x329e82,_0xedafc7;const _0x44391d=(_0x329e82=this[_0xbf336e(0x2e4)][_0xbf336e(0x589)](_0xbfb920))===null||_0x329e82===void 0x0?void 0x0:_0x329e82[_0xbf336e(0x5f6)](_0x3709a7);return(_0xedafc7=_0x44391d===null||_0x44391d===void 0x0?void 0x0:_0x44391d[_0xbf336e(0x4ba)]())!==null&&_0xedafc7!==void 0x0?_0xedafc7:0x1;}[_0x101898(0x13d)](_0x2f1780,_0x28b1df,_0x50cc4d){const _0x17fcc9=_0x101898;this[_0x17fcc9(0x1ff)]((0x0,_univerjs_core[_0x17fcc9(0x266)])(_0x2f1780[_0x17fcc9(0x52b)]['subscribeEvent']((_0x2e9647,_0x12ae2e)=>{const _0xe2854c=_0x17fcc9;var _0x123b4d,_0x4d69c2,_0x3508e0;const {unitId:_0x5e1ade,subUnitId:_0x514ae7,drawingId:_0x19f549}=_0x2f1780[_0xe2854c(0x54c)](),_0x5d213b=this[_0xe2854c(0x560)](_0x5e1ade,_0x514ae7,_0x19f549);if(!(_0x5d213b===null||_0x5d213b===void 0x0?void 0x0:_0x5d213b['transform']))return;const {left:_0x12184c,top:_0xfc6524,width:_0x2751d5,height:_0x56889a}=_0x5d213b[_0xe2854c(0x519)];this['_baseLeft']=_0x12184c||0x0,this['_baseTop']=_0xfc6524||0x0,this[_0xe2854c(0x5c7)]=_0x2751d5||0x0,this[_0xe2854c(0x239)]=_0x56889a||0x0;const _0x2ef8d2=Boolean((_0x123b4d=_0x5d213b[_0xe2854c(0x519)])===null||_0x123b4d===void 0x0?void 0x0:_0x123b4d[_0xe2854c(0x4e0)]),_0x14be73=Boolean((_0x4d69c2=_0x5d213b[_0xe2854c(0x519)])===null||_0x4d69c2===void 0x0?void 0x0:_0x4d69c2['flipY']),_0x393064=((_0x3508e0=_0x5d213b[_0xe2854c(0x519)])===null||_0x3508e0===void 0x0?void 0x0:_0x3508e0[_0xe2854c(0x2f5)])||0x0,_0x47545a=this['_getImagePrstGeom'](_0x5e1ade,_0x514ae7,_0x19f549);if(!_0x47545a)return;const _0x4466db=this[_0xe2854c(0x4b0)](_0x47545a[_0xe2854c(0x550)],this['_baseWidth'],this['_baseHeight'],_0x47545a[_0xe2854c(0x494)]);if(!_0x4466db)return;this[_0xe2854c(0x40e)]=_0x4466db,this[_0xe2854c(0x2f3)]=_0x4466db['getAdjustInfoByName'](_0x50cc4d);if(!this[_0xe2854c(0x2f3)])return;this[_0xe2854c(0x353)]=!![],_0x28b1df['disableObjectsEvent']();const _0x88a845=_0x47545a['prstGeom'];this[_0xe2854c(0x58e)]=_0x28b1df[_0xe2854c(0x14b)][_0xe2854c(0x3a5)]((_0x5874e2,_0x437b25)=>{const _0x344c0d=_0xe2854c;if(!this[_0x344c0d(0x353)])return;const {offsetX:_0x298f80,offsetY:_0x1f14be}=_0x5874e2,_0x512e5e=this[_0x344c0d(0x2f3)];if(!this['_activeShapeModel']||!_0x512e5e)return;_0x28b1df[_0x344c0d(0x1c5)](),_0x28b1df[_0x344c0d(0x401)](_univerjs_engine_render[_0x344c0d(0x249)][_0x344c0d(0x374)]);const _0x4d2629={'left':0x0,'top':0x0,'width':this[_0x344c0d(0x5c7)],'height':this['_baseHeight']},_0x4fc841=this[_0x344c0d(0x555)](_0x5e1ade,_0x514ae7),_0x27bb84=this['_getZoomRatio'](_0x5e1ade,_0x514ae7);let _0xafd88e=_0x298f80/_0x27bb84+_0x4fc841['x']-this[_0x344c0d(0x11d)],_0x23a890=_0x1f14be/_0x27bb84+_0x4fc841['y']-this[_0x344c0d(0x1ab)];if(_0x393064!==0x0){const _0x309552=this[_0x344c0d(0x5c7)]/0x2,_0xdecca3=this[_0x344c0d(0x239)]/0x2,_0xf6acdf=_0x393064*Math['PI']/0xb4,_0x884e3a=Math[_0x344c0d(0x409)](_0xf6acdf),_0x9ba554=Math[_0x344c0d(0x315)](_0xf6acdf),_0x581ab5=_0xafd88e-_0x309552,_0x3c0d5c=_0x23a890-_0xdecca3;_0xafd88e=_0x309552+(_0x581ab5*_0x884e3a+_0x3c0d5c*_0x9ba554),_0x23a890=_0xdecca3+(-_0x581ab5*_0x9ba554+_0x3c0d5c*_0x884e3a);}if(_0x2ef8d2)_0xafd88e=this[_0x344c0d(0x5c7)]-_0xafd88e;if(_0x14be73)_0x23a890=this[_0x344c0d(0x239)]-_0x23a890;const _0x971fb9=this[_0x344c0d(0x40e)][_0x344c0d(0x42e)](_0x4d2629,{'x':_0xafd88e,'y':_0x23a890},_0x512e5e,_0x2ef8d2,_0x14be73),_0x5558da=_0x512e5e[_0x344c0d(0x3dd)]||_0x512e5e['gdRefY']||_0x512e5e[_0x344c0d(0x617)]||_0x512e5e[_0x344c0d(0x2ad)];if(_0x5558da===void 0x0)return;this[_0x344c0d(0x40e)][_0x344c0d(0x58a)](_0x5558da,_0x971fb9),this[_0x344c0d(0x40e)]['updateContext']({'width':this['_baseWidth'],'height':this[_0x344c0d(0x239)]}),this[_0x344c0d(0x2df)](_0x5e1ade,_0x514ae7,_0x19f549,_0x5558da,_0x971fb9),this[_0x344c0d(0x292)]=this[_0x344c0d(0x40e)][_0x344c0d(0x23f)](),this['_activeAdjustInfo']=this[_0x344c0d(0x40e)][_0x344c0d(0x2ed)](_0x50cc4d),this[_0x344c0d(0x297)](),_0x437b25[_0x344c0d(0x160)]();}),this[_0xe2854c(0x3fa)]=_0x28b1df[_0xe2854c(0x173)][_0xe2854c(0x3a5)]((_0x283b97,_0xc2a6e)=>{const _0x102658=_0xe2854c;this[_0x102658(0x58e)]['unsubscribe'](),this[_0x102658(0x3fa)][_0x102658(0x472)](),_0x28b1df['resetCursor']();if(this[_0x102658(0x40e)]){const _0x2345c0=this[_0x102658(0x40e)][_0x102658(0x609)](),_0x403256={};for(const _0x54af44 of _0x2345c0){const _0x404cdc=this['_activeShapeModel'][_0x102658(0x29c)](_0x54af44);if(_0x404cdc!==void 0x0)_0x403256[_0x54af44]=_0x404cdc;}this[_0x102658(0x199)][_0x102658(0x5ff)](_0x5e1ade,_0x514ae7,_0x19f549,_0x88a845,_0x403256);}this[_0x102658(0x2f3)]=void 0x0,this[_0x102658(0x40e)]=void 0x0,this['_isStartAdjusting']=![],_0xc2a6e[_0x102658(0x160)](),_0x28b1df[_0x102658(0x123)]();}),_0x12ae2e[_0xe2854c(0x160)]();})));}['_updateImageAdjValues'](_0x135808,_0x3eb4bf,_0x190428,_0x1067fb,_0x464776){const _0x27b3aa=_0x101898,_0x3c2b99=this[_0x27b3aa(0x28f)]['getRenderById'](_0x135808);if(!_0x3c2b99)return;const {scene:_0x2cb4b4}=_0x3c2b99,_0x7bbbcb=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x135808,'subUnitId':_0x3eb4bf,'drawingId':_0x190428}),_0x90f205=_0x2cb4b4[_0x27b3aa(0x520)](_0x7bbbcb);if(_0x90f205 instanceof _univerjs_engine_render[_0x27b3aa(0x154)]){var _0x2b02e9;const _0x2ed646=(_0x2b02e9=_0x90f205[_0x27b3aa(0x377)])!==null&&_0x2b02e9!==void 0x0?_0x2b02e9:{};_0x90f205[_0x27b3aa(0x15a)]({..._0x2ed646,[_0x1067fb]:_0x464776}),_0x90f205[_0x27b3aa(0x408)](!![]);}}[_0x101898(0x2d5)](){const _0x1b0ce1=_0x101898,_0x2cff88=this[_0x1b0ce1(0x2e4)][_0x1b0ce1(0x566)](_univerjs_core[_0x1b0ce1(0x1e3)][_0x1b0ce1(0x42f)]);this[_0x1b0ce1(0x1ff)](_0x2cff88['pipe']((0x0,rxjs[_0x1b0ce1(0x3f8)])(_0x474039=>{const _0x123d60=_0x1b0ce1;if(!_0x474039)return rxjs[_0x123d60(0x180)];return _0x474039[_0x123d60(0x522)][_0x123d60(0x63e)]((0x0,rxjs[_0x123d60(0x3f8)])(_0x5a30b7=>{const _0x4a70b1=_0x123d60;if(!_0x5a30b7)return rxjs[_0x4a70b1(0x180)];const _0x7a75a5=_0x474039[_0x4a70b1(0x5b1)](),_0x3d8da7=this[_0x4a70b1(0x28f)]['getRenderById'](_0x7a75a5),_0x524d08=_0x3d8da7===null||_0x3d8da7===void 0x0?void 0x0:_0x3d8da7[_0x4a70b1(0x2dc)];if(!_0x524d08)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x524d08);}));}))['subscribe'](_0x2817fe=>{const _0x14f9b5=_0x1b0ce1,_0x5d489b=_0x2817fe[_0x14f9b5(0x53f)]();this[_0x14f9b5(0x1ff)](_0x2817fe['onPointerMove$'][_0x14f9b5(0x3a5)](()=>{if(this['_isImagePointerDown'])this['_clearControls']();})),this['disposeWithMe'](_0x5d489b['changeStart$'][_0x14f9b5(0x4fd)](_0x5edd2f=>{const _0x229c3d=_0x14f9b5,{objects:_0x2d22e2}=_0x5edd2f;this[_0x229c3d(0x297)]();if(_0x2d22e2!==null&&_0x2d22e2['size']===0x1){const _0x2b1bd4=_0x2d22e2[_0x229c3d(0x2f4)]()['next']()[_0x229c3d(0x2f1)];if(_0x2b1bd4 instanceof _univerjs_engine_render[_0x229c3d(0x154)]&&_0x2b1bd4['prstGeom'])this['_isImagePointerDown']=!![];}})),this[_0x14f9b5(0x1ff)](_0x5d489b[_0x14f9b5(0x54f)][_0x14f9b5(0x4fd)](()=>{const _0x2694bd=_0x14f9b5;if(this[_0x2694bd(0x228)])this[_0x2694bd(0x25f)]();})),this[_0x14f9b5(0x1ff)](_0x2817fe[_0x14f9b5(0x173)][_0x14f9b5(0x3a5)](()=>{const _0x4dfa57=_0x14f9b5;this[_0x4dfa57(0x228)]&&(this[_0x4dfa57(0x228)]=![],this[_0x4dfa57(0x297)]());})),this[_0x14f9b5(0x1ff)](_0x5d489b[_0x14f9b5(0x651)][_0x14f9b5(0x4fd)](()=>{const _0x3a120c=_0x14f9b5;if(this[_0x3a120c(0x2ae)]&&this[_0x3a120c(0x1a9)]&&this[_0x3a120c(0x559)]){const _0x2c56b4=this[_0x3a120c(0x47d)](this['_unitId'],this[_0x3a120c(0x1a9)],this['_activeImageId']);if(_0x2c56b4){var _0x14944c,_0x2e5087;const _0x1cb3a9=this[_0x3a120c(0x560)](this[_0x3a120c(0x2ae)],this['_subUnitId'],this['_activeImageId']),_0xb46613=(_0x1cb3a9===null||_0x1cb3a9===void 0x0||(_0x14944c=_0x1cb3a9['transform'])===null||_0x14944c===void 0x0?void 0x0:_0x14944c[_0x3a120c(0x604)])||0x0,_0x206aa0=(_0x1cb3a9===null||_0x1cb3a9===void 0x0||(_0x2e5087=_0x1cb3a9[_0x3a120c(0x519)])===null||_0x2e5087===void 0x0?void 0x0:_0x2e5087[_0x3a120c(0x57c)])||0x0,_0x3df693=this['_getOrCreateShapeModel'](_0x2c56b4[_0x3a120c(0x550)],_0xb46613,_0x206aa0,_0x2c56b4['adjustValues']);_0x3df693&&(this[_0x3a120c(0x292)]=_0x3df693[_0x3a120c(0x23f)](),this[_0x3a120c(0x25f)](),this[_0x3a120c(0x297)](!![]));}}}));}));}[_0x101898(0x5bf)](){const _0x491436=_0x101898;this['disposeWithMe'](this[_0x491436(0x3c9)][_0x491436(0x5ed)][_0x491436(0x4fd)](_0x596646=>{const _0x9f3424=_0x491436;if(_0x596646[_0x9f3424(0x1ec)]===0x1){const _0x3fb531=_0x596646[0x0];if(_0x3fb531['drawingType']===_univerjs_core[_0x9f3424(0x229)][_0x9f3424(0x4fa)]){const {unitId:_0x271fa7,subUnitId:_0x1ad176,drawingId:_0x3aa898}=_0x3fb531,_0x56cbd1=this[_0x9f3424(0x47d)](_0x271fa7,_0x1ad176,_0x3aa898);if(_0x56cbd1){var _0x1ae200,_0x46f838;this[_0x9f3424(0x559)]=_0x3aa898,this[_0x9f3424(0x2ae)]=_0x271fa7,this[_0x9f3424(0x1a9)]=_0x1ad176;const _0x18552d=this[_0x9f3424(0x560)](_0x271fa7,_0x1ad176,_0x3aa898),_0x24658c=(_0x18552d===null||_0x18552d===void 0x0||(_0x1ae200=_0x18552d['transform'])===null||_0x1ae200===void 0x0?void 0x0:_0x1ae200[_0x9f3424(0x604)])||0x0,_0x5e11e0=(_0x18552d===null||_0x18552d===void 0x0||(_0x46f838=_0x18552d[_0x9f3424(0x519)])===null||_0x46f838===void 0x0?void 0x0:_0x46f838[_0x9f3424(0x57c)])||0x0,_0xa5d3eb=this[_0x9f3424(0x4b0)](_0x56cbd1['prstGeom'],_0x24658c,_0x5e11e0,_0x56cbd1[_0x9f3424(0x494)]);if(_0xa5d3eb)this['_activeAdjustPointList']=_0xa5d3eb[_0x9f3424(0x23f)]();this[_0x9f3424(0x25f)](),this[_0x9f3424(0x297)](!![]);}else this[_0x9f3424(0x55e)]();}else this[_0x9f3424(0x55e)]();}else this['_resetState']();})),this[_0x491436(0x1ff)](this[_0x491436(0x3c9)]['update$'][_0x491436(0x4fd)](_0x1b40c4=>{const _0x8e66c1=_0x491436;if(_0x1b40c4[_0x8e66c1(0x1ec)]===0x1){const _0x483173=_0x1b40c4[0x0],_0x365152=this['_drawingManagerService']['getDrawingByParam'](_0x483173);(_0x365152===null||_0x365152===void 0x0?void 0x0:_0x365152['drawingType'])===_univerjs_core['DrawingTypeEnum'][_0x8e66c1(0x4fa)]&&(this[_0x8e66c1(0x559)]===_0x483173[_0x8e66c1(0x16c)]&&(this[_0x8e66c1(0x25f)](),this[_0x8e66c1(0x297)](!![])));}})),this[_0x491436(0x1ff)](this[_0x491436(0x3c9)][_0x491436(0x5ad)][_0x491436(0x4fd)](_0x43e732=>{const _0x168e98=_0x491436;for(const _0x3184d8 of _0x43e732)if(this[_0x168e98(0x559)]===_0x3184d8[_0x168e98(0x16c)])this[_0x168e98(0x55e)]();}));}['_resetState'](){const _0x4b245e=_0x101898;this[_0x4b245e(0x559)]=null,this[_0x4b245e(0x2ae)]=null,this[_0x4b245e(0x1a9)]=null,this[_0x4b245e(0x292)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render[_0x101898(0x500)])),__decorateParam(0x3,_univerjs_core[_0x101898(0x653)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0xea0f96,_0x208189,_0x50bd6c,_0x556c11){const _0x5064b7=_0x101898;super(),this[_0x5064b7(0x2e4)]=_0xea0f96,this['_sheetInterceptorService']=_0x208189,this['_sheetDrawingService']=_0x50bd6c,this[_0x5064b7(0x352)]=_0x556c11,this['_initSheetChange']();}[_0x101898(0x23a)](){const _0x2c284f=_0x101898;this['disposeWithMe'](this[_0x2c284f(0x66e)][_0x2c284f(0x5ae)]({'getMutations':_0x22203e=>{const _0x4e8293=_0x2c284f;if(_0x22203e['id']===_univerjs_sheets[_0x4e8293(0x261)]['id']){const _0x34b277=(0x0,_univerjs_sheets['getSheetCommandTarget'])(this[_0x4e8293(0x2e4)],_0x22203e[_0x4e8293(0x35d)]);if(!_0x34b277)return{'redos':[],'undos':[]};const {unitId:_0x5a65c3,subUnitId:_0x544823}=_0x34b277,_0x3e7d46=this[_0x4e8293(0x3c1)][_0x4e8293(0x5c8)](_0x5a65c3,_0x544823),_0x43580c=Object['values'](_0x3e7d46)[_0x4e8293(0x1f5)](_0x2d9e06=>_0x2d9e06[_0x4e8293(0x324)]===_univerjs_core[_0x4e8293(0x229)][_0x4e8293(0x535)]);if(_0x43580c['length']===0x0)return{'redos':[],'undos':[]};const _0x46bd62=[],_0x56d02d=[];for(let _0x3c1c2a=0x0;_0x3c1c2a<_0x43580c['length'];_0x3c1c2a++){const _0x1cedb1=_0x43580c[_0x3c1c2a],_0x2f6ea7=this[_0x4e8293(0x352)][_0x4e8293(0x148)](_0x1cedb1[_0x4e8293(0x3aa)],_0x1cedb1[_0x4e8293(0x343)],_0x1cedb1[_0x4e8293(0x16c)]);if(!_0x2f6ea7)continue;const {redo:_0x45d963,undo:_0x133577,objects:_0xe2c4e0}=this['_sheetDrawingService'][_0x4e8293(0x425)]([_0x1cedb1]);_0x46bd62[_0x4e8293(0x2f9)]({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x281)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'shapeId':_0x1cedb1['drawingId']}}),_0x46bd62[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4e8293(0x2c3)],'op':_0x45d963,'objects':_0xe2c4e0}}),_0x56d02d['push']({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'type':_univerjs_sheets_drawing['DrawingApplyType']['INSERT'],'op':_0x133577,'objects':_0xe2c4e0}}),_0x56d02d['push']({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x4db)]['id'],'params':{'unitId':_0x5a65c3,'subUnitId':_0x544823,'shapeId':_0x1cedb1[_0x4e8293(0x16c)],'shapeType':_0x2f6ea7[_0x4e8293(0x255)](),'shapeData':JSON[_0x4e8293(0x205)](JSON[_0x4e8293(0x2b8)](_0x2f6ea7['getShapeData']()))}});}return{'redos':_0x46bd62,'undos':_0x56d02d};}else{if(_0x22203e['id']===_univerjs_sheets[_0x4e8293(0x59c)]['id']){const {unitId:_0xf75e50,subUnitId:_0x1a0bd9,targetSubUnitId:_0x1f3290}=_0x22203e[_0x4e8293(0x35d)];if(!_0xf75e50||!_0x1a0bd9||!_0x1f3290)return{'redos':[],'undos':[]};const _0x3d762c=this[_0x4e8293(0x3c1)][_0x4e8293(0x5c8)](_0xf75e50,_0x1a0bd9),_0x14241f=Object[_0x4e8293(0x2f4)](_0x3d762c)['filter'](_0x2c9e68=>_0x2c9e68[_0x4e8293(0x324)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x14241f[_0x4e8293(0x1ec)]===0x0)return{'redos':[],'undos':[]};const _0x55fedf=[],_0x506f8a=[];for(let _0x4129ca=0x0;_0x4129ca<_0x14241f[_0x4e8293(0x1ec)];_0x4129ca++){const _0x5608e5=_0x14241f[_0x4129ca],_0x3cf24f=this[_0x4e8293(0x352)][_0x4e8293(0x148)](_0x5608e5[_0x4e8293(0x3aa)],_0x5608e5[_0x4e8293(0x343)],_0x5608e5[_0x4e8293(0x16c)]);if(!_0x3cf24f)continue;const _0x343be1=(0x0,_univerjs_core[_0x4e8293(0x558)])(),_0x403afa={..._0x5608e5,'unitId':_0xf75e50,'subUnitId':_0x1f3290,'drawingId':_0x343be1},{redo:_0x9aebdb,undo:_0x105c98,objects:_0x582841}=this['_sheetDrawingService'][_0x4e8293(0x2bf)]([_0x403afa]);_0x55fedf[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing[_0x4e8293(0x57d)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'type':_univerjs_sheets_drawing[_0x4e8293(0x260)][_0x4e8293(0x2d1)],'op':_0x9aebdb,'objects':_0x582841}}),_0x55fedf['push']({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x4db)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'shapeId':_0x343be1,'shapeType':_0x3cf24f[_0x4e8293(0x255)](),'shapeData':JSON[_0x4e8293(0x205)](JSON[_0x4e8293(0x2b8)](_0x3cf24f['getShapeData']()))}}),_0x506f8a[_0x4e8293(0x2f9)]({'id':_univerjs_pro_sheets_shape[_0x4e8293(0x281)]['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'shapeId':_0x343be1}}),_0x506f8a[_0x4e8293(0x2f9)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xf75e50,'subUnitId':_0x1f3290,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4e8293(0x2c3)],'op':_0x105c98,'objects':_0x582841}});}return{'redos':_0x55fedf,'undos':_0x506f8a};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core['IUniverInstanceService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x4a5)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing[_0x101898(0x614)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x56863e,_0x348aa8,_0x41b900,_0x35cedb,_0x21166f){const _0x157938=_0x101898;super(),this[_0x157938(0x643)]=_0x56863e,this[_0x157938(0x2a2)]=_0x348aa8,this[_0x157938(0x3c9)]=_0x41b900,this['_contextService']=_0x35cedb,this[_0x157938(0x352)]=_0x21166f,_defineProperty(this,_0x157938(0x2d9),null),this['_initEvents'](),this[_0x157938(0x2a3)](),this['_initEditingParams']();}['_initEvents'](){const _0x5062f1=_0x101898,{scene:_0x52b937}=this[_0x5062f1(0x643)];this[_0x5062f1(0x1ff)](_0x52b937['onDblclick$'][_0x5062f1(0x3a5)](_0x3a3f48=>{const _0x4b9c18=_0x5062f1,{offsetX:_0x363c56,offsetY:_0x469ef3}=_0x3a3f48,_0x3f520a=_0x52b937[_0x4b9c18(0x47f)](_univerjs_engine_render[_0x4b9c18(0x2d8)][_0x4b9c18(0x662)]([_0x363c56,_0x469ef3]));if(_0x3f520a instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x4b9c18(0x277)])(this[_0x4b9c18(0x352)]['getShapeType'](_0x3f520a['unitId'],_0x3f520a[_0x4b9c18(0x343)],_0x3f520a[_0x4b9c18(0x49a)])))return;this[_0x4b9c18(0x2a2)]['setEditing']({'visible':!![],'unitId':_0x3f520a[_0x4b9c18(0x3aa)],'subUnitId':_0x3f520a[_0x4b9c18(0x343)],'shapeId':_0x3f520a['shapeId'],'shapeKey':_0x3f520a[_0x4b9c18(0x534)]});}}));}[_0x101898(0x2a3)](){const _0x324091=_0x101898;this[_0x324091(0x1ff)](this[_0x324091(0x3c9)][_0x324091(0x5ed)][_0x324091(0x4fd)](_0x3b0ca3=>{const _0x1284ab=_0x324091;if(_0x3b0ca3[_0x1284ab(0x1ec)]===0x1){const _0x29ec4f=_0x3b0ca3[0x0],_0x23803e=this['_drawingManagerService'][_0x1284ab(0x52f)](_0x29ec4f);if((_0x23803e===null||_0x23803e===void 0x0?void 0x0:_0x23803e['drawingType'])===_univerjs_core[_0x1284ab(0x229)][_0x1284ab(0x535)]){const _0x450708=this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]();if((_0x450708===null||_0x450708===void 0x0?void 0x0:_0x450708[_0x1284ab(0x49a)])===_0x29ec4f[_0x1284ab(0x16c)]&&_0x450708[_0x1284ab(0x510)])return;if((0x0,_univerjs_pro_engine_shape[_0x1284ab(0x277)])(this[_0x1284ab(0x352)][_0x1284ab(0x255)](_0x29ec4f[_0x1284ab(0x3aa)],_0x29ec4f[_0x1284ab(0x343)],_0x29ec4f[_0x1284ab(0x16c)])))this[_0x1284ab(0x2a2)][_0x1284ab(0x51b)](null);}else this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]()&&(this[_0x1284ab(0x2a2)][_0x1284ab(0x298)](!![]),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));}else this[_0x1284ab(0x2a2)][_0x1284ab(0x28d)]()&&(this[_0x1284ab(0x2a2)][_0x1284ab(0x298)](!![]),requestAnimationFrame(()=>{const _0x52ecd2=_0x1284ab;this[_0x52ecd2(0x2a2)][_0x52ecd2(0x51b)](null);}));})),this['disposeWithMe'](this[_0x324091(0x3c9)][_0x324091(0x5ad)]['subscribe'](_0xa3a352=>{const _0x1a174c=_0x324091,_0x36bd7b=this[_0x1a174c(0x2a2)]['getEditing']();if(_0x36bd7b&&_0xa3a352[_0x1a174c(0x322)](_0x4a1a8c=>_0x4a1a8c[_0x1a174c(0x16c)]===_0x36bd7b[_0x1a174c(0x49a)]))this['_shapeTextEditingService']['setEditing'](null);}));}['_initEditingParams'](){const _0x436d96=_0x101898;this[_0x436d96(0x1ff)](this['_shapeTextEditingService'][_0x436d96(0x39d)]['subscribe'](_0x42332a=>{const _0x2bc38f=_0x436d96,{scene:_0x4d7acb}=this['_context'];if(this[_0x2bc38f(0x2d9)]){const _0x26f67a=_0x4d7acb['getObjectIncludeInGroup'](this[_0x2bc38f(0x2d9)]);if(_0x26f67a)_0x26f67a[_0x2bc38f(0x51b)](![]);}if(_0x42332a){const _0x397031=!!_0x42332a[_0x2bc38f(0x510)],_0x25e435=_0x4d7acb[_0x2bc38f(0x157)](_0x42332a['shapeKey']);_0x25e435&&(_0x25e435['setEditing'](_0x397031),this['_lastEditingShapeKey']=_0x42332a[_0x2bc38f(0x60f)]),this[_0x2bc38f(0x5a9)][_0x2bc38f(0x32c)](_univerjs_core[_0x2bc38f(0x4d5)],_0x397031);}else this['_lastEditingShapeKey']=null,this[_0x2bc38f(0x5a9)][_0x2bc38f(0x32c)](_univerjs_core[_0x2bc38f(0x4d5)],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x3,_univerjs_core[_0x101898(0x4b3)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x101898(0x47c)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x101898(0x1ed)],'strokeWidth':_univerjs_pro_engine_shape[_0x101898(0x30a)][_0x101898(0x34b)]},'highlighted':{'fill':'#4285f4','stroke':_0x101898(0x1d8),'strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render['Shape']{constructor(_0x1fb43b,_0x2091ff){const _0x20bbc9=_0x101898;super(_0x1fb43b,_0x2091ff),_defineProperty(this,_0x20bbc9(0x2db),''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,_0x20bbc9(0x2ae),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,'_isHighlighted',![]);if(_0x2091ff)this['setShapeProps'](_0x2091ff);}[_0x101898(0x3dc)](){const _0x234c67=_0x101898;return{'unitId':this[_0x234c67(0x2ae)],'subUnitId':this[_0x234c67(0x1a9)],'shapeId':this[_0x234c67(0x2db)],'cxnIndex':this['_cxnIndex']};}['setHighlighted'](_0x62b628){const _0x29ad15=_0x101898;this[_0x29ad15(0x2bd)]!==_0x62b628&&(this['_isHighlighted']=_0x62b628,this[_0x29ad15(0x408)](!![]));}['isHighlighted'](){const _0x349077=_0x101898;return this[_0x349077(0x2bd)];}[_0x101898(0x188)](_0x4f2305){const _0x3be471=_0x101898;var _0x536f96,_0x42c5d2;if(typeof _0x4f2305['targetShapeId']!==_0x3be471(0x4c4))this[_0x3be471(0x2db)]=_0x4f2305[_0x3be471(0x132)];if(typeof _0x4f2305[_0x3be471(0x1e2)]!==_0x3be471(0x4c4))this['_cxnIndex']=_0x4f2305['cxnIndex'];if(typeof _0x4f2305[_0x3be471(0x3aa)]!=='undefined')this[_0x3be471(0x2ae)]=_0x4f2305[_0x3be471(0x3aa)];if(typeof _0x4f2305[_0x3be471(0x343)]!=='undefined')this[_0x3be471(0x1a9)]=_0x4f2305[_0x3be471(0x343)];if(typeof _0x4f2305[_0x3be471(0x323)]!=='undefined')this[_0x3be471(0x2bd)]=_0x4f2305[_0x3be471(0x323)];this['transformByState']({'width':(_0x536f96=_0x4f2305[_0x3be471(0x604)])!==null&&_0x536f96!==void 0x0?_0x536f96:_univerjs_pro_engine_shape[_0x3be471(0x30a)]['cxnPointRadius']*0x2,'height':(_0x42c5d2=_0x4f2305[_0x3be471(0x57c)])!==null&&_0x42c5d2!==void 0x0?_0x42c5d2:_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3be471(0x497)]*0x2});}[_0x101898(0x18c)](_0x1e9918){const _0x5a5963=_0x101898,_0x4477da=this[_0x5a5963(0x2bd)]?ConnectionSiteStyle[_0x5a5963(0x578)]:ConnectionSiteStyle[_0x5a5963(0x5d0)];_univerjs_engine_render[_0x5a5963(0x635)][_0x5a5963(0x15d)](_0x1e9918,{'radius':_univerjs_pro_engine_shape[_0x5a5963(0x30a)][_0x5a5963(0x497)],'fill':_0x4477da['fill'],'stroke':_0x4477da[_0x5a5963(0x600)],'strokeWidth':_0x4477da['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x3e0191,_0x47b5a7,_0x4e1555,_0x3f8260){const _0x2c7e85=_0x101898;super(),this['_context']=_0x3e0191,this[_0x2c7e85(0x28f)]=_0x47b5a7,this[_0x2c7e85(0x3c9)]=_0x4e1555,this[_0x2c7e85(0x352)]=_0x3f8260,_defineProperty(this,_0x2c7e85(0x389),[]),_defineProperty(this,_0x2c7e85(0x612),null),_defineProperty(this,_0x2c7e85(0x673),-0x1),_defineProperty(this,'_currentScene',null),_defineProperty(this,_0x2c7e85(0x2ae),''),_defineProperty(this,_0x2c7e85(0x1a9),''),_defineProperty(this,_0x2c7e85(0x4c8),null);}[_0x101898(0x32b)](_0x3bf283,_0x3d2fe8,_0x122b21,_0x5b2edd){const _0x1d1ffe=_0x101898;this[_0x1d1ffe(0x5b7)]=_0x3bf283,this[_0x1d1ffe(0x2ae)]=_0x3d2fe8,this[_0x1d1ffe(0x1a9)]=_0x122b21,this['_draggingConnectorId']=_0x5b2edd;}[_0x101898(0x426)](_0x5e0d26){const _0x1974eb=_0x101898;if(!this[_0x1974eb(0x5b7)])return null;const _0x208c7e=this['_findShapeAtPoint'](_0x5e0d26);return _0x208c7e?(this['_activeTargetShapeId']!==_0x208c7e['shapeId']&&(this[_0x1974eb(0x4ed)](),this['_showConnectionSites'](_0x208c7e[_0x1974eb(0x49a)],_0x208c7e[_0x1974eb(0x591)]),this[_0x1974eb(0x612)]=_0x208c7e[_0x1974eb(0x49a)]),this['_findNearestConnectionSite'](_0x5e0d26)):(this[_0x1974eb(0x612)]!==null&&(this['_clearConnectionSites'](),this[_0x1974eb(0x612)]=null),null);}[_0x101898(0x581)](){const _0x2abf8d=_0x101898;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x2abf8d(0x612)]=null,this[_0x2abf8d(0x673)]=-0x1,this['_draggingConnectorId']=null;}[_0x101898(0x33f)](){const _0x520b48=_0x101898;if(this['_activeTargetShapeId']===null||this[_0x520b48(0x673)]<0x0)return null;return{'shapeId':this[_0x520b48(0x612)],'cxnIndex':this['_highlightedSiteIndex']};}['_findShapeAtPoint'](_0x8920a3){const _0x49daf3=_0x101898,_0x3a937c=this[_0x49daf3(0x3c9)][_0x49daf3(0x5c8)](this['_unitId'],this[_0x49daf3(0x1a9)]);for(const _0x495502 of Object[_0x49daf3(0x5ac)](_0x3a937c)){if(_0x495502===this['_draggingConnectorId'])continue;if(_0x3a937c[_0x495502][_0x49daf3(0x324)]!==_univerjs_core[_0x49daf3(0x229)]['DRAWING_SHAPE'])continue;const _0xd57f74=this[_0x49daf3(0x352)]['getShapeModel'](this[_0x49daf3(0x2ae)],this['_subUnitId'],_0x495502);if(!_0xd57f74)continue;if((0x0,_univerjs_pro_engine_shape[_0x49daf3(0x277)])(_0xd57f74['getShapeType']()))continue;if(_0xd57f74[_0x49daf3(0x18e)]()['length']===0x0)continue;if(!this[_0x49daf3(0x5b7)])continue;const _0x3e84ba=(0x0,_univerjs_drawing[_0x49daf3(0x38f)])({'unitId':this[_0x49daf3(0x2ae)],'subUnitId':this[_0x49daf3(0x1a9)],'drawingId':_0x495502}),_0x15e1f1=this[_0x49daf3(0x5b7)][_0x49daf3(0x157)](_0x3e84ba);if(!_0x15e1f1)continue;const {left:_0xeccfe6,top:_0x2f8ab0,width:_0x2a5df1,height:_0x4d4522}=_0x15e1f1['getRealBound'](),_0x3ca13c=_0xeccfe6+_0x2a5df1/0x2,_0x185f57=_0x2f8ab0+_0x4d4522/0x2,_0x23f4a0=_0x15e1f1[_0x49daf3(0x519)][_0x49daf3(0x2e2)](),_0x55bc70=new _univerjs_engine_render['Transform']([_0x23f4a0[0x0],_0x23f4a0[0x1],_0x23f4a0[0x2],_0x23f4a0[0x3],_0x3ca13c,_0x185f57]),_0x15816b=_0x15e1f1[_0x49daf3(0x31f)](),_0x4e1bf2=(_0x15e1f1[_0x49daf3(0x1d9)]&&(_0x15816b===null||_0x15816b===void 0x0?void 0x0:_0x15816b['classType'])===_univerjs_engine_render[_0x49daf3(0x2cd)]['GROUP']?_0x15816b[_0x49daf3(0x359)]['multiply'](_0x55bc70):_0x55bc70)['invert']()[_0x49daf3(0x627)](_0x8920a3),_0x6f1558=_0x2a5df1/0x2,_0x581dee=_0x4d4522/0x2,_0x1652e7=SHAPE_BOUNDS_PADDING;if(_0x4e1bf2['x']>=-_0x6f1558-_0x1652e7&&_0x4e1bf2['x']<=_0x6f1558+_0x1652e7&&_0x4e1bf2['y']>=-_0x581dee-_0x1652e7&&_0x4e1bf2['y']<=_0x581dee+_0x1652e7)return{'shapeId':_0x495502,'shapeModel':_0xd57f74};}return null;}[_0x101898(0x440)](_0x9bed45,_0x10a44d){const _0x3851f0=_0x101898;if(!this['_currentScene'])return;const _0x1a0fe4=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x3851f0(0x2ae)],'subUnitId':this[_0x3851f0(0x1a9)],'drawingId':_0x9bed45}),_0x7389a1=this[_0x3851f0(0x5b7)][_0x3851f0(0x157)](_0x1a0fe4);if(!_0x7389a1)return;const {left:_0x42e991,top:_0x4d6328,width:_0x4843e8,height:_0x67a11a}=_0x7389a1[_0x3851f0(0x61e)](),_0x2ca89c=_0x42e991+_0x4843e8/0x2,_0x2d2ee0=_0x4d6328+_0x67a11a/0x2,_0x56a769=_0x7389a1[_0x3851f0(0x519)]['getMatrix'](),_0x2f6aea=new _univerjs_engine_render[(_0x3851f0(0x2d6))]([_0x56a769[0x0],_0x56a769[0x1],_0x56a769[0x2],_0x56a769[0x3],_0x2ca89c,_0x2d2ee0]),_0x5d5487=_0x7389a1[_0x3851f0(0x31f)](),_0x3d407a=_0x7389a1['isInGroup']&&(_0x5d5487===null||_0x5d5487===void 0x0?void 0x0:_0x5d5487[_0x3851f0(0x2e1)])===_univerjs_engine_render[_0x3851f0(0x2cd)][_0x3851f0(0x3db)]?_0x5d5487[_0x3851f0(0x359)][_0x3851f0(0x14d)](_0x2f6aea):_0x2f6aea;_0x10a44d[_0x3851f0(0x56d)]({'width':_0x4843e8,'height':_0x67a11a});const _0x209ace=_0x10a44d[_0x3851f0(0x18e)]();for(const _0x7a20b3 of _0x209ace){const _0x2a2829=_0x7a20b3['x']-_0x4843e8/0x2,_0x11cb1c=_0x7a20b3['y']-_0x67a11a/0x2,_0x27ae46=_0x3d407a[_0x3851f0(0x627)]({'x':_0x2a2829,'y':_0x11cb1c}),_0x4e975a=_0x27ae46['x'],_0x5df80c=_0x27ae46['y'],_0x404975=new SheetBasicShapeConnectionSiteObject(_0x3851f0(0x52a)+_0x9bed45+'-'+_0x7a20b3['index'],{'left':_0x4e975a-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3851f0(0x497)],'top':_0x5df80c-_univerjs_pro_engine_shape[_0x3851f0(0x30a)][_0x3851f0(0x497)],'targetShapeId':_0x9bed45,'cxnIndex':_0x7a20b3[_0x3851f0(0x44f)],'unitId':this[_0x3851f0(0x2ae)],'subUnitId':this[_0x3851f0(0x1a9)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3851f0(0x497)]*0x2,'height':_univerjs_pro_engine_shape[_0x3851f0(0x30a)][_0x3851f0(0x497)]*0x2,'zIndex':_univerjs_engine_render[_0x3851f0(0x11f)]+0x2,'evented':![]});this[_0x3851f0(0x389)][_0x3851f0(0x2f9)](_0x404975),this[_0x3851f0(0x5b7)][_0x3851f0(0x22c)](_0x404975,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x101898(0x642)](_0x4e5f9c){const _0x40062c=_0x101898;let _0x12c3f8=null,_0x3118cd=Infinity,_0x36bbbd=null;for(const _0x508da7 of this[_0x40062c(0x389)]){const _0x5ea9e8=_0x508da7['left']+_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x40062c(0x497)],_0x10c124=_0x508da7[_0x40062c(0x46c)]+_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x40062c(0x497)],_0x350afd=_0x4e5f9c['x']-_0x5ea9e8,_0x51cc84=_0x4e5f9c['y']-_0x10c124,_0x12905f=Math[_0x40062c(0x20c)](_0x350afd*_0x350afd+_0x51cc84*_0x51cc84);_0x12905f<_0x3118cd&&(_0x3118cd=_0x12905f,_0x12c3f8=_0x508da7,_0x36bbbd={'x':_0x5ea9e8,'y':_0x10c124});}const _0x5a48e7=_0x3118cd<=CONNECTION_SITE_HIT_RADIUS&&_0x12c3f8?_0x12c3f8['getConnectionInfo']()['cxnIndex']:-0x1;if(_0x5a48e7!==this['_highlightedSiteIndex']){for(const _0x44364c of this[_0x40062c(0x389)]){const _0x190231=_0x44364c[_0x40062c(0x3dc)]();_0x44364c[_0x40062c(0x56e)](_0x190231[_0x40062c(0x1e2)]===_0x5a48e7);}this[_0x40062c(0x673)]=_0x5a48e7;}if(_0x3118cd<=CONNECTION_SITE_HIT_RADIUS&&_0x12c3f8&&_0x36bbbd){const _0x17024c=_0x12c3f8['getConnectionInfo'](),_0x4ba5e8=this[_0x40062c(0x194)](_0x17024c[_0x40062c(0x49a)],_0x17024c[_0x40062c(0x1e2)]);return{'shapeId':_0x17024c[_0x40062c(0x49a)],'cxnIndex':_0x17024c[_0x40062c(0x1e2)],'unitId':_0x17024c['unitId'],'subUnitId':_0x17024c[_0x40062c(0x343)],'worldPoint':_0x36bbbd,'angle':_0x4ba5e8};}return null;}['_getConnectionSiteAngle'](_0x5ecee3,_0x2f06ca){const _0x5e59ce=_0x101898,_0x1d64f6=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this[_0x5e59ce(0x1a9)],_0x5ecee3);if(!_0x1d64f6)return 0x0;const _0x8f620d=this[_0x5e59ce(0x3c9)]['getDrawingByParam']({'unitId':this[_0x5e59ce(0x2ae)],'subUnitId':this[_0x5e59ce(0x1a9)],'drawingId':_0x5ecee3});if(!(_0x8f620d===null||_0x8f620d===void 0x0?void 0x0:_0x8f620d[_0x5e59ce(0x519)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x8f620d[_0x5e59ce(0x519)];_0x1d64f6[_0x5e59ce(0x56d)]({'width':width,'height':height});const _0x572719=_0x1d64f6['getConnectionSiteList']()['find'](_0x15efd2=>_0x15efd2[_0x5e59ce(0x44f)]===_0x2f06ca);if(!_0x572719)return 0x0;let _0x137d8e=_0x572719['ang']/0xea60;if(flipX)_0x137d8e=0xb4-_0x137d8e;if(flipY)_0x137d8e=-_0x137d8e;return _0x137d8e=(_0x137d8e%0x168+0x168)%0x168,_0x137d8e;}[_0x101898(0x4ed)](){const _0x43e956=_0x101898;for(const _0xad9ad of this[_0x43e956(0x389)])_0xad9ad[_0x43e956(0x3af)]();this[_0x43e956(0x389)]=[],this[_0x43e956(0x673)]=-0x1;}[_0x101898(0x3af)](){const _0x4bfe17=_0x101898;this[_0x4bfe17(0x4ed)](),super[_0x4bfe17(0x3af)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_drawing[_0x101898(0x415)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x1809c6,_0xd7e91b,_0x12eb1c,_0x3d9458,_0x3a652e){const _0x321e43=_0x101898;super(),this[_0x321e43(0x289)]=_0x1809c6,this[_0x321e43(0x5a3)]=_0xd7e91b,this[_0x321e43(0x3c1)]=_0x12eb1c,this[_0x321e43(0x5c5)]=_0x3d9458,this['_groupCopyPasteController']=_0x3a652e,_defineProperty(this,_0x321e43(0x1a0),void 0x0),this[_0x321e43(0x221)](),this[_0x321e43(0x12c)]();}get[_0x101898(0x1e9)](){const _0x3e0e4f=_0x101898;return this['_sheetDrawingService'][_0x3e0e4f(0x4f6)]();}[_0x101898(0x12c)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x2bd70f,fromSubUnitId:_0xaa46b2,toUnitId:_0x2b61aa,toSubUnitId:_0x1d0d6f,idMap:_0x392935})=>{const _0x246ade=_0x284a,_0x15a069=[],_0x376b04=[];for(const [_0x11b940,_0x4c4d0b]of _0x392935[_0x246ade(0x272)]()){const _0x3cea50=this[_0x246ade(0x5c5)]['getShapeModel'](_0x2bd70f,_0xaa46b2,_0x11b940);if(!_0x3cea50)continue;const _0x25609c=_0x3cea50['getShapeType'](),_0x972c24=JSON[_0x246ade(0x205)](JSON[_0x246ade(0x2b8)](_0x3cea50['getShapeData']()));if(_0x972c24[_0x246ade(0x18b)]){var _0x1c5e12,_0x553336;const _0x17b27=(_0x1c5e12=_0x972c24['relation']['from'])===null||_0x1c5e12===void 0x0?void 0x0:_0x1c5e12[_0x246ade(0x49a)],_0x3d6f58=(_0x553336=_0x972c24[_0x246ade(0x18b)]['to'])===null||_0x553336===void 0x0?void 0x0:_0x553336[_0x246ade(0x49a)],_0x27c498=_0x17b27?_0x392935['has'](_0x17b27):!![],_0x81c605=_0x3d6f58?_0x392935[_0x246ade(0x639)](_0x3d6f58):!![];if(_0x27c498&&_0x17b27&&_0x972c24[_0x246ade(0x18b)][_0x246ade(0x4b4)])_0x972c24[_0x246ade(0x18b)]['from']={..._0x972c24['relation']['from'],'shapeId':_0x392935['get'](_0x17b27)};else _0x972c24[_0x246ade(0x18b)]['from']=void 0x0;if(_0x81c605&&_0x3d6f58&&_0x972c24[_0x246ade(0x18b)]['to'])_0x972c24['relation']['to']={..._0x972c24[_0x246ade(0x18b)]['to'],'shapeId':_0x392935[_0x246ade(0x49b)](_0x3d6f58)};else _0x972c24[_0x246ade(0x18b)]['to']=void 0x0;}_0x15a069[_0x246ade(0x2f9)]({'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x2b61aa,'subUnitId':_0x1d0d6f,'shapeId':_0x4c4d0b,'shapeType':_0x25609c,'shapeData':_0x972c24}}),_0x376b04['push']({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x2b61aa,'subUnitId':_0x1d0d6f,'shapeId':_0x4c4d0b}});}return{'redos':_0x15a069,'undos':_0x376b04};});}[_0x101898(0x221)](){const _0x13b40a=_0x101898;this[_0x13b40a(0x1ff)](this[_0x13b40a(0x5a3)][_0x13b40a(0x432)]({'id':_0x13b40a(0x498),'onBeforeCopy':(_0x1df8a3,_0x5a4ad7,_0x2224a0,_0x6f5f1)=>{const _0x27fa68=_0x13b40a;this[_0x27fa68(0x1a0)]=null;const _0x52e7af=this['_focusedDrawings'];if(_0x52e7af[_0x27fa68(0x1ec)]){const _0x28801d=_0x52e7af[_0x27fa68(0x1f5)](_0x3ea47a=>_0x3ea47a['drawingType']===_univerjs_core[_0x27fa68(0x229)][_0x27fa68(0x535)]);if(_0x28801d['length']===0x0)return;this['_copyInfo']={'unitId':_0x1df8a3,'subUnitId':_0x5a4ad7,'copyType':_0x6f5f1,'drawings':_0x28801d};}else this[_0x27fa68(0x38b)](_0x1df8a3,_0x5a4ad7,_0x2224a0,_0x6f5f1);},'onPasteCells':(_0x44c5a7,_0x2abbaa,_0x280048,_0x1419a3)=>{const _0x20070b=_0x13b40a;if(!this[_0x20070b(0x1a0)])return{'redos':[],'undos':[]};const {pasteType:_0x4c6dbd}=_0x1419a3;if(_0x4c6dbd!==_univerjs_sheets_ui[_0x20070b(0x5cb)][_0x20070b(0x40f)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x2abbaa,this['_copyInfo']['copyType']===_univerjs_sheets_ui[_0x20070b(0x5ec)][_0x20070b(0x5f1)]);},'onPasteUnrecognized':_0x55de82=>{const _0x3fef49=_0x13b40a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x3fef49(0x67f)](_0x55de82,this[_0x3fef49(0x1a0)]['copyType']===_univerjs_sheets_ui['COPY_TYPE'][_0x3fef49(0x5f1)]);}}));}[_0x101898(0x38b)](_0x27dd1b,_0x206328,_0x238459,_0x5ef782){const _0x1004ad=_0x101898,_0x4f6c4d=this[_0x1004ad(0x289)]['getSkeleton'](_0x27dd1b,_0x206328);if(!_0x4f6c4d)return;const _0x2fa722=(0x0,_univerjs_sheets[_0x1004ad(0x5a4)])(_0x4f6c4d,_0x238459);if(!_0x2fa722)return;const {startX:_0x3b81de,endX:_0x557ed5,startY:_0x44c1d6,endY:_0x5054d7}=_0x2fa722,_0x460f5e=this[_0x1004ad(0x3c1)][_0x1004ad(0x5c8)](_0x27dd1b,_0x206328),_0x387cc2=this[_0x1004ad(0x1e9)][_0x1004ad(0x349)]();for(const [_0x1bef50,_0x3e7468]of Object[_0x1004ad(0x272)](_0x460f5e)){if(_0x3e7468[_0x1004ad(0x324)]!==_univerjs_core[_0x1004ad(0x229)]['DRAWING_SHAPE'])continue;const {transform:_0x23b463}=_0x3e7468;if(!_0x23b463)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x23b463;if(_0x3b81de<=left&&_0x557ed5>=left+width&&_0x44c1d6<=top&&_0x5054d7>=top+height)_0x387cc2[_0x1004ad(0x2f9)](_0x3e7468);}if(_0x387cc2[_0x1004ad(0x1ec)]>0x0)this[_0x1004ad(0x1a0)]={'unitId':_0x27dd1b,'subUnitId':_0x206328,'copyType':_0x5ef782,'copyRange':_0x238459,'drawings':_0x387cc2};}[_0x101898(0x67f)](_0x3570ff,_0x10cf0f){const _0x5c55cc=_0x101898,{unitId:_0x4c5f39,subUnitId:_0x4fab0c,range:_0xa918ec}=_0x3570ff,_0x169acd=this['_sheetSkeletonService']['getSkeleton'](_0x4c5f39,_0x4fab0c);if(!_0x169acd)return{'redos':[],'undos':[]};const _0x5051ed=(0x0,_univerjs_sheets[_0x5c55cc(0x398)])(_0xa918ec),{unitId:_0x1b4af1,subUnitId:_0x1ef75e,copyRange:_0xd41185,drawings:_0x5e637d}=this[_0x5c55cc(0x1a0)],_0xe84079=this[_0x5c55cc(0x289)][_0x5c55cc(0x1f6)](_0x1b4af1,_0x1ef75e);if(!_0xe84079)return{'redos':[],'undos':[]};let _0x3d5f96;if(!_0xd41185){let _0x1d9836=Infinity,_0x42c9c5=Infinity;for(const _0x43fef7 of _0x5e637d){var _0x19fc33;const {left:left=0x0,top:top=0x0}=(_0x19fc33=_0x43fef7[_0x5c55cc(0x519)])!==null&&_0x19fc33!==void 0x0?_0x19fc33:{};if(left<_0x1d9836)_0x1d9836=left;if(top<_0x42c9c5)_0x42c9c5=top;}if(_0x1d9836!==Infinity&&_0x42c9c5!==Infinity)_0x3d5f96={'left':_0x1d9836,'top':_0x42c9c5};}const _0xde4959=new Map();if(!_0x10cf0f){for(const _0x4726eb of _0x5e637d)_0xde4959[_0x5c55cc(0x65b)](_0x4726eb[_0x5c55cc(0x16c)],(0x0,_univerjs_core[_0x5c55cc(0x558)])());}const _0x128024=[],_0xcfe0bb=[];for(const _0x5cae91 of _0x5e637d){const {drawingId:_0x1734bd,transform:_0x560df3,sheetTransform:_0x504264}=_0x5cae91;if(!_0x560df3||!_0x504264)continue;const _0x39f40a=this[_0x5c55cc(0x130)]({'transform':_0x560df3,'sheetTransform':_0x504264},{'skeleton':_0xe84079,'range':_0xd41185},{'skeleton':_0x169acd,'range':_0x5051ed},_0x3d5f96);if(_0x10cf0f){const {redos:_0x13b49a,undos:_0x1ef773}=this[_0x5c55cc(0x648)]({'fromUnitId':_0x1b4af1,'fromSubUnitId':_0x1ef75e,'toUnitId':_0x4c5f39,'toSubUnitId':_0x4fab0c,'drawing':_0x5cae91,'newTransforms':_0x39f40a});_0x128024[_0x5c55cc(0x2f9)](..._0x13b49a),_0xcfe0bb[_0x5c55cc(0x2f9)](..._0x1ef773);continue;}const {redos:_0x47d6f8,undos:_0x20b5ae}=this[_0x5c55cc(0x378)]({'toUnitId':_0x4c5f39,'toSubUnitId':_0x4fab0c,'drawing':_0x5cae91,'newTransforms':_0x39f40a,'newDrawingId':_0xde4959['get'](_0x1734bd),'idMap':_0xde4959});_0x128024['push'](..._0x47d6f8),_0xcfe0bb[_0x5c55cc(0x2f9)](..._0x20b5ae);}return{'redos':_0x128024,'undos':_0xcfe0bb};}[_0x101898(0x648)](_0x1d72e2){const _0x4d3a79=_0x101898,{fromUnitId:_0x1174a2,fromSubUnitId:_0x507bb6,toUnitId:_0x260b02,toSubUnitId:_0x479ade,drawing:_0x574530,newTransforms:_0x3bd5e5}=_0x1d72e2,_0x13d800={..._0x574530,'unitId':_0x260b02,'subUnitId':_0x479ade,'transform':_0x3bd5e5['transform'],'sheetTransform':_0x3bd5e5[_0x4d3a79(0x2b0)]};if(_0x260b02===_0x1174a2&&_0x479ade===_0x507bb6){const {redo:_0x211d42,undo:_0x33cee1,objects:_0x3d3558}=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x4c5)]([_0x13d800]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x496)],'op':_0x211d42,'objects':_0x3d3558}}],'undos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x496)],'op':_0x33cee1,'objects':_0x3d3558}}]};}else{const _0xf7083c=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x425)]([_0x574530]),_0x245046=this[_0x4d3a79(0x3c1)][_0x4d3a79(0x2bf)]([_0x13d800]),_0x5227a0=this[_0x4d3a79(0x5c5)]['getShapeModel'](_0x574530[_0x4d3a79(0x3aa)],_0x574530['subUnitId'],_0x574530[_0x4d3a79(0x16c)]);if(!_0x5227a0)return{'redos':[],'undos':[]};const _0x4f43e7=_0x5227a0[_0x4d3a79(0x255)](),_0x52ef8a=JSON[_0x4d3a79(0x205)](JSON['stringify'](_0x5227a0[_0x4d3a79(0x365)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x2c3)],'op':_0xf7083c[_0x4d3a79(0x2ac)],'objects':_0xf7083c[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x281)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'shapeId':_0x574530['drawingId']}},{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x4d3a79(0x2d1)],'op':_0x245046[_0x4d3a79(0x2ac)],'objects':_0x245046[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x4db)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'shapeId':_0x574530[_0x4d3a79(0x16c)],'shapeType':_0x4f43e7,'shapeData':_0x52ef8a}}],'undos':[{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x2d1)],'op':_0xf7083c['undo'],'objects':_0xf7083c[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x4db)]['id'],'params':{'unitId':_0x1174a2,'subUnitId':_0x507bb6,'shapeId':_0x574530[_0x4d3a79(0x16c)],'shapeType':_0x4f43e7,'shapeData':_0x52ef8a}},{'id':_univerjs_sheets_drawing[_0x4d3a79(0x57d)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'type':_univerjs_sheets_drawing[_0x4d3a79(0x260)][_0x4d3a79(0x2c3)],'op':_0x245046[_0x4d3a79(0x271)],'objects':_0x245046[_0x4d3a79(0x126)]}},{'id':_univerjs_pro_sheets_shape[_0x4d3a79(0x281)]['id'],'params':{'unitId':_0x260b02,'subUnitId':_0x479ade,'shapeId':_0x574530[_0x4d3a79(0x16c)]}}]};}}[_0x101898(0x378)](_0x478000){const _0x2451cb=_0x101898,{toUnitId:_0x42d680,toSubUnitId:_0xc19e5b,drawing:_0x1b9dd9,newTransforms:_0x2ca3c8,newDrawingId:_0x1ea2fd,idMap:_0x230cf0}=_0x478000,_0x11fb01={..._0x1b9dd9,'unitId':_0x42d680,'subUnitId':_0xc19e5b,'drawingId':_0x1ea2fd,'transform':_0x2ca3c8['transform'],'sheetTransform':_0x2ca3c8[_0x2451cb(0x2b0)]},{redo:_0x55d87b,undo:_0x572417,objects:_0x26d2ed}=this[_0x2451cb(0x3c1)][_0x2451cb(0x2bf)]([_0x11fb01]),_0xb9abeb=this[_0x2451cb(0x5c5)][_0x2451cb(0x148)](_0x1b9dd9[_0x2451cb(0x3aa)],_0x1b9dd9['subUnitId'],_0x1b9dd9[_0x2451cb(0x16c)]);if(!_0xb9abeb)return{'redos':[],'undos':[]};const _0x4b095a=_0xb9abeb[_0x2451cb(0x255)](),_0x5b728b=JSON[_0x2451cb(0x205)](JSON[_0x2451cb(0x2b8)](_0xb9abeb[_0x2451cb(0x365)]()));if(_0x5b728b[_0x2451cb(0x18b)]){var _0x3705c9,_0xed6198;const _0x188c15=(_0x3705c9=_0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)])===null||_0x3705c9===void 0x0?void 0x0:_0x3705c9[_0x2451cb(0x49a)],_0x502889=(_0xed6198=_0x5b728b[_0x2451cb(0x18b)]['to'])===null||_0xed6198===void 0x0?void 0x0:_0xed6198[_0x2451cb(0x49a)],_0x428ebd=_0x188c15?_0x230cf0[_0x2451cb(0x639)](_0x188c15):!![],_0x7bdfe2=_0x502889?_0x230cf0[_0x2451cb(0x639)](_0x502889):!![];if(_0x428ebd&&_0x188c15&&_0x5b728b['relation'][_0x2451cb(0x4b4)])_0x5b728b['relation']['from']={..._0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)],'shapeId':_0x230cf0['get'](_0x188c15)};else _0x5b728b[_0x2451cb(0x18b)][_0x2451cb(0x4b4)]=void 0x0;if(_0x7bdfe2&&_0x502889&&_0x5b728b[_0x2451cb(0x18b)]['to'])_0x5b728b['relation']['to']={..._0x5b728b['relation']['to'],'shapeId':_0x230cf0[_0x2451cb(0x49b)](_0x502889)};else _0x5b728b[_0x2451cb(0x18b)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'type':_univerjs_sheets_drawing[_0x2451cb(0x260)]['INSERT'],'op':_0x55d87b,'objects':_0x26d2ed}},{'id':_univerjs_pro_sheets_shape[_0x2451cb(0x4db)]['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'shapeId':_0x1ea2fd,'shapeType':_0x4b095a,'shapeData':_0x5b728b}}],'undos':[{'id':_univerjs_sheets_drawing[_0x2451cb(0x57d)]['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'type':_univerjs_sheets_drawing[_0x2451cb(0x260)][_0x2451cb(0x2c3)],'op':_0x572417,'objects':_0x26d2ed}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x42d680,'subUnitId':_0xc19e5b,'shapeId':_0x1ea2fd}}]};}[_0x101898(0x130)](_0x52147d,_0x42e251,_0xe4905c,_0xb2e6f8){const _0x48bbfa=_0x101898;var _0x4a8e8c;const {range:_0x1a4f6e,skeleton:_0x8d5276}=_0x42e251,{range:_0x1c9003,skeleton:_0x2eea40}=_0xe4905c,{transform:_0x145b21,sheetTransform:_0x461e31}=_0x52147d,_0x36f795={..._0x145b21};if(_0x1a4f6e){const _0x4aa747=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x8d5276,_0x1a4f6e),_0x3d607f=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x2eea40,_0x1c9003);if(_0x4aa747&&_0x3d607f){var _0x52ad00,_0x1b6a76;const _0x318722=_0x3d607f[_0x48bbfa(0x445)]-_0x4aa747['startX'],_0xac32a4=_0x3d607f[_0x48bbfa(0x2b6)]-_0x4aa747[_0x48bbfa(0x2b6)];_0x36f795[_0x48bbfa(0x2ff)]=((_0x52ad00=_0x36f795[_0x48bbfa(0x2ff)])!==null&&_0x52ad00!==void 0x0?_0x52ad00:0x0)+_0x318722,_0x36f795['top']=((_0x1b6a76=_0x36f795[_0x48bbfa(0x46c)])!==null&&_0x1b6a76!==void 0x0?_0x1b6a76:0x0)+_0xac32a4;}}else{const _0x5941fd=(0x0,_univerjs_sheets[_0x48bbfa(0x5a4)])(_0x2eea40,_0x1c9003);if(_0xb2e6f8&&_0x5941fd){var _0xe91fc0,_0x549b88;const _0x1ae978=((_0xe91fc0=_0x36f795[_0x48bbfa(0x2ff)])!==null&&_0xe91fc0!==void 0x0?_0xe91fc0:0x0)-_0xb2e6f8[_0x48bbfa(0x2ff)],_0x2ca6ea=((_0x549b88=_0x36f795[_0x48bbfa(0x46c)])!==null&&_0x549b88!==void 0x0?_0x549b88:0x0)-_0xb2e6f8[_0x48bbfa(0x46c)];_0x36f795[_0x48bbfa(0x2ff)]=_0x5941fd[_0x48bbfa(0x445)]+_0x1ae978,_0x36f795[_0x48bbfa(0x46c)]=_0x5941fd[_0x48bbfa(0x2b6)]+_0x2ca6ea;}else _0x36f795[_0x48bbfa(0x2ff)]=_0x5941fd===null||_0x5941fd===void 0x0?void 0x0:_0x5941fd[_0x48bbfa(0x445)],_0x36f795[_0x48bbfa(0x46c)]=_0x5941fd===null||_0x5941fd===void 0x0?void 0x0:_0x5941fd[_0x48bbfa(0x2b6)];}return{'transform':_0x36f795,'sheetTransform':(_0x4a8e8c=(0x0,_univerjs_sheets_drawing[_0x48bbfa(0x58c)])(_0x36f795,_0x2eea40))!==null&&_0x4a8e8c!==void 0x0?_0x4a8e8c:_0x461e31};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x41a)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_ui[_0x101898(0x618)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing[_0x101898(0x614)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets_drawing_ui[_0x101898(0x5f0)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x101898(0x1fe)]{constructor(_0x309da4,_0x7f7628){const _0x46206c=_0x101898;super(_0x309da4,_0x7f7628),_defineProperty(this,_0x46206c(0x61c),null),_defineProperty(this,_0x46206c(0x159),null),_defineProperty(this,'_unitId',null),_defineProperty(this,_0x46206c(0x1a9),null),_defineProperty(this,_0x46206c(0x247),![]);if(_0x7f7628)this['setShapeProps'](_0x7f7628);}['getDrawingSearch'](){const _0x56d07d=_0x101898;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x56d07d(0x61c)]};}[_0x101898(0x188)](_0x1c8f7c){const _0x5df215=_0x101898;if(typeof _0x1c8f7c[_0x5df215(0x49a)]!==_0x5df215(0x4c4))this[_0x5df215(0x61c)]=_0x1c8f7c[_0x5df215(0x49a)];if(typeof _0x1c8f7c[_0x5df215(0x3aa)]!=='undefined')this[_0x5df215(0x2ae)]=_0x1c8f7c[_0x5df215(0x3aa)];if(typeof _0x1c8f7c[_0x5df215(0x343)]!==_0x5df215(0x4c4))this['_subUnitId']=_0x1c8f7c[_0x5df215(0x343)];if(typeof _0x1c8f7c[_0x5df215(0x34a)]!=='undefined')this[_0x5df215(0x247)]=_0x1c8f7c[_0x5df215(0x34a)];this['transformByState']({'width':_0x1c8f7c[_0x5df215(0x604)],'height':_0x1c8f7c[_0x5df215(0x57c)]});}[_0x101898(0x18c)](_0x20a48c){const _0x25cc7e=_0x101898;_univerjs_engine_render['Circle'][_0x25cc7e(0x15d)](_0x20a48c,{'radius':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x497)],'fill':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x47c)],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x25cc7e(0x30a)][_0x25cc7e(0x34b)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x101898(0x66b)]{constructor(_0x48ba6e,_0x4555dd,_0x336464,_0x1b6de2,_0x30410a,_0x17677e,_0x398f24,_0x2b884e){const _0x401aa8=_0x101898;super(),this[_0x401aa8(0x643)]=_0x48ba6e,this[_0x401aa8(0x36d)]=_0x4555dd,this['_renderManagerService']=_0x336464,this[_0x401aa8(0x3c9)]=_0x1b6de2,this[_0x401aa8(0x2e4)]=_0x30410a,this[_0x401aa8(0x352)]=_0x17677e,this[_0x401aa8(0x3be)]=_0x398f24,this['_sheetBasicShapeConnectionPointController']=_0x2b884e,_defineProperty(this,_0x401aa8(0x2c9),void 0x0),_defineProperty(this,_0x401aa8(0x2ae),void 0x0),_defineProperty(this,_0x401aa8(0x1a9),void 0x0),_defineProperty(this,_0x401aa8(0x1b4),[]),_defineProperty(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,_0x401aa8(0x40e),void 0x0),_defineProperty(this,_0x401aa8(0x42a),![]),_defineProperty(this,'_isDrawingShapePointDown',![]),_defineProperty(this,_0x401aa8(0x39a),![]),_defineProperty(this,_0x401aa8(0x24c),void 0x0),_defineProperty(this,_0x401aa8(0x41f),void 0x0),_defineProperty(this,_0x401aa8(0x34e),null),this[_0x401aa8(0x503)]();}[_0x101898(0x503)](){const _0x47dff4=_0x101898;this[_0x47dff4(0x606)](),this[_0x47dff4(0x490)]();}[_0x101898(0x186)](){const _0x3cf47d=_0x101898;if(!this['_unitId']||!this[_0x3cf47d(0x1a9)]||!this[_0x3cf47d(0x2c9)])return;const _0x127c6c={'unitId':this[_0x3cf47d(0x2ae)],'subUnitId':this[_0x3cf47d(0x1a9)],'drawingId':this[_0x3cf47d(0x2c9)]},{transform:_0x125bb5}=this[_0x3cf47d(0x3c9)]['getDrawingByParam'](_0x127c6c);if(!_0x125bb5)return;return{'left':_0x125bb5[_0x3cf47d(0x2ff)]||0x0,'top':_0x125bb5[_0x3cf47d(0x46c)]||0x0,'width':_0x125bb5[_0x3cf47d(0x604)]||0x0,'height':_0x125bb5[_0x3cf47d(0x57c)]||0x0,'flipX':_0x125bb5['flipX']||![],'flipY':_0x125bb5[_0x3cf47d(0x34d)]||![],'angle':_0x125bb5['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x23539d=_0x101898;if(this[_0x23539d(0x2ae)]===void 0x0||this[_0x23539d(0x1a9)]===void 0x0||this[_0x23539d(0x2c9)]===void 0x0)return;const _0x2f2b23=this[_0x23539d(0x28f)]['getRenderById'](this[_0x23539d(0x2ae)]);if(!_0x2f2b23)return;if(!_0x2f2b23['with'](_univerjs_sheets_ui[_0x23539d(0x217)])[_0x23539d(0x442)]())return;const {scene:_0x4f4812}=_0x2f2b23,_0x43b9ac=this[_0x23539d(0x186)]();if(!_0x43b9ac)return;const _0x1d79b0=this['_sheetsShapeService']['getShapeModel'](this[_0x23539d(0x2ae)],this[_0x23539d(0x1a9)],this[_0x23539d(0x2c9)]);if(!_0x1d79b0)return;if(!(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1d79b0[_0x23539d(0x255)]()))return;const _0x207558=_0x1d79b0[_0x23539d(0x52c)]();if(_0x207558['length']<0x2)return;const _0x36497b=new _univerjs_pro_engine_shape[(_0x23539d(0x35f))](_0x43b9ac),_0x356de3=_0x207558[0x0],_0x5d9eb3=_0x207558[_0x207558[_0x23539d(0x1ec)]-0x1],_0x322b5d=_0x36497b[_0x23539d(0x141)](_0x356de3),_0x59b08e=_0x36497b[_0x23539d(0x141)](_0x5d9eb3);this['_addShapeConnectorHandlerObject'](_0x4f4812,{..._0x322b5d},!![]),this[_0x23539d(0x5a6)](_0x4f4812,{..._0x59b08e},![]);}[_0x101898(0x5a6)](_0x1ed242,_0xc2b972,_0x39431a){const _0x28613b=_0x101898;if(this[_0x28613b(0x2c9)]===void 0x0||this[_0x28613b(0x2ae)]===void 0x0||this[_0x28613b(0x1a9)]===void 0x0)return;const _0x2772db=_0x28613b(0x3a7)+this['_unitId']+'-'+this[_0x28613b(0x1a9)]+'-'+this['_activeShapeId']+'-'+(_0x39431a?'start':_0x28613b(0x669)),_0x32997e=_0x1ed242[_0x28613b(0x157)](_0x2772db);if(_0x32997e){_0x32997e[_0x28613b(0x46b)]({'left':_0xc2b972['x']-_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)],'top':_0xc2b972['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x28613b(0x497)]});return;}const _0x5eef7f=new SheetShapeConnectorHandlerObject(_0x2772db,{'left':_0xc2b972['x']-_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)],'top':_0xc2b972['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x28613b(0x497)],'shapeId':this[_0x28613b(0x2c9)],'unitId':this[_0x28613b(0x2ae)],'subUnitId':this[_0x28613b(0x1a9)],'isStartConnectorPoint':_0x39431a,'width':_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)]*0x2,'height':_univerjs_pro_engine_shape[_0x28613b(0x30a)][_0x28613b(0x497)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x28613b(0x1b4)][_0x28613b(0x2f9)](_0x5eef7f),this[_0x28613b(0x327)](_0x5eef7f,_0x1ed242,_0x39431a),_0x1ed242['addObject'](_0x5eef7f,_univerjs_engine_render[_0x28613b(0x11f)]+0x1);}['_getScrollInfo'](_0x2edf07,_0x3d5a29){const _0x1208b9=_0x101898;var _0x333800;const _0x5c77f6={'x':0x0,'y':0x0};if(!_0x2edf07||!_0x3d5a29)return _0x5c77f6;const _0x43dde5=this[_0x1208b9(0x28f)][_0x1208b9(0x1f9)](_0x2edf07);if(!_0x43dde5)return _0x5c77f6;if(!_0x43dde5[_0x1208b9(0x593)](_univerjs_sheets_ui['SheetSkeletonManagerService'])['getSkeleton'](_0x3d5a29))return _0x5c77f6;const _0x5274bf=_0x43dde5[_0x1208b9(0x593)](_univerjs_sheets_ui[_0x1208b9(0x574)]),_0x579286=_0x5274bf===null||_0x5274bf===void 0x0?void 0x0:_0x5274bf[_0x1208b9(0x599)]();if(!_0x579286)return _0x5c77f6;const _0x6f6049=(_0x333800=this[_0x1208b9(0x2e4)]['getUnit'](_0x2edf07))===null||_0x333800===void 0x0?void 0x0:_0x333800[_0x1208b9(0x5f6)](_0x3d5a29);if(!_0x6f6049)return _0x5c77f6;const _0x23e975=(0x0,_univerjs_sheets_ui[_0x1208b9(0x499)])(_0x579286[_0x1208b9(0x338)],_0x579286[_0x1208b9(0x3a0)],_0x43dde5[_0x1208b9(0x2dc)],_0x6f6049);if(!_0x23e975)return _0x5c77f6;return{'x':_0x23e975[_0x1208b9(0x149)],'y':_0x23e975[_0x1208b9(0x193)]};}[_0x101898(0x491)](_0x33a035,_0x26f2f7){const _0x4ae053=_0x101898;var _0x4a653a,_0x30d82a;const _0x716267=(_0x4a653a=this[_0x4ae053(0x2e4)][_0x4ae053(0x589)](_0x33a035))===null||_0x4a653a===void 0x0?void 0x0:_0x4a653a[_0x4ae053(0x5f6)](_0x26f2f7);return(_0x30d82a=_0x716267===null||_0x716267===void 0x0?void 0x0:_0x716267[_0x4ae053(0x4ba)]())!==null&&_0x30d82a!==void 0x0?_0x30d82a:0x1;}[_0x101898(0x21d)](_0x54df70,_0x40459e,_0x55bb3b,_0x376188,_0x2fdf6d){const _0x1d717f=_0x101898;this[_0x1d717f(0x24c)][_0x1d717f(0x472)](),this[_0x1d717f(0x41f)][_0x1d717f(0x472)](),this['_sheetShapeAdjustController'][_0x1d717f(0x429)]();const _0x93ae0d=this[_0x1d717f(0x34e)];this[_0x1d717f(0x2eb)][_0x1d717f(0x581)]();const _0x3047ea=this[_0x1d717f(0x555)](this['_unitId'],this[_0x1d717f(0x1a9)]),_0x1cf61b=this[_0x1d717f(0x491)](this['_unitId'],this[_0x1d717f(0x1a9)]),_0x2f01f2={'x':_0x55bb3b[_0x1d717f(0x360)]/_0x1cf61b+_0x3047ea['x'],'y':_0x55bb3b[_0x1d717f(0x544)]/_0x1cf61b+_0x3047ea['y']},_0x3d2540=_0x93ae0d?_0x93ae0d[_0x1d717f(0x57a)]:_0x2f01f2,_0x5897ca=_0x376188?this['_activeShapeModel'][_0x1d717f(0x371)]():this[_0x1d717f(0x40e)]['getStartConnectInfo'](),_0xfa4679=this[_0x1d717f(0x40e)][_0x1d717f(0x255)]();if(!_0x5897ca)this['_handleFreeEndpointPointerUp'](_0x40459e,_0x3d2540,_0x376188,_0x93ae0d,_0x2fdf6d,_0xfa4679);else this[_0x1d717f(0x355)](_0x5897ca,_0x3d2540,_0x376188,_0x93ae0d,_0x2fdf6d);this[_0x1d717f(0x42a)]=![],this[_0x1d717f(0x39a)]=![],this[_0x1d717f(0x34e)]=null,_0x54df70[_0x1d717f(0x123)]();}['_handleFreeEndpointPointerUp'](_0x12cc56,_0xd519e3,_0x6bafd3,_0x3d733f,_0x371720,_0x4cb808){const _0x2abe35=_0x101898,_0x100901=_0x4cb808===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x2abe35(0x237)]||_0x4cb808===_univerjs_pro_engine_shape[_0x2abe35(0x33e)][_0x2abe35(0x14e)],_0x5e39db=_0x6bafd3?_0xd519e3:_0x12cc56,_0x27894c=_0x6bafd3?_0x12cc56:_0xd519e3,_0x1e8ee9=this['_activeShapeModel'][_0x2abe35(0x52c)](),_0x126f3c=(0x0,_univerjs_pro_engine_shape[_0x2abe35(0x56b)])(this[_0x2abe35(0x40e)]['getShapeType']()),_0x30d9af=_univerjs_pro_engine_shape[_0x2abe35(0x35f)]['getBentTypeFromPoints'](_0x1e8ee9,_0x126f3c),_0x4d366=_0x100901?_univerjs_pro_engine_shape[_0x2abe35(0x35f)]['computeStraightConnectorLayout'](_0x5e39db,_0x27894c):_univerjs_pro_engine_shape[_0x2abe35(0x35f)][_0x2abe35(0x439)](_0x12cc56,_0xd519e3,_0x6bafd3,_0x30d9af);if(_0x3d733f)this[_0x2abe35(0x17c)](_0x4d366,_0x3d733f,_0x6bafd3,_0x371720);else this[_0x2abe35(0x3b7)](_0x4d366,_0x371720);}[_0x101898(0x355)](_0x3fed97,_0x2f96de,_0x22f526,_0x126711,_0x1829a3){const _0x1ec0ed=_0x101898,_0xbfd3cb=this[_0x1ec0ed(0x35e)](_0x3fed97);if(!_0xbfd3cb)return;const _0x429663=_0x126711?_0x126711['angle']:this[_0x1ec0ed(0x269)](_0xbfd3cb[_0x1ec0ed(0x4ad)],_0x2f96de);let _0x4d1ec7;if(_0x126711){const _0x3dce3e=this[_0x1ec0ed(0x3c9)][_0x1ec0ed(0x52f)]({'unitId':_0x126711['unitId'],'subUnitId':_0x126711[_0x1ec0ed(0x343)],'drawingId':_0x126711[_0x1ec0ed(0x49a)]});if(_0x3dce3e===null||_0x3dce3e===void 0x0?void 0x0:_0x3dce3e[_0x1ec0ed(0x519)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0xbb85c8}=_0x3dce3e[_0x1ec0ed(0x519)];_0x4d1ec7=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x122)])({'left':left,'top':top,'width':width,'height':height},_0xbb85c8||0x0);}else _0x4d1ec7={'left':_0x2f96de['x'],'top':_0x2f96de['y'],'width':0x0,'height':0x0};}else _0x4d1ec7={'left':_0x2f96de['x'],'top':_0x2f96de['y'],'width':0x0,'height':0x0};const _0x41d428={'point':_0x2f96de,'angle':_0x429663,'bounds':_0x4d1ec7},_0x2226d7=_0x22f526?_0x41d428:_0xbfd3cb,_0x1a22e4=_0x22f526?_0xbfd3cb:_0x41d428,_0x361567=this[_0x1ec0ed(0x40e)][_0x1ec0ed(0x255)](),_0x5a6411=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x504)])(_0x2226d7,_0x1a22e4,_0x361567);this[_0x1ec0ed(0x40e)][_0x1ec0ed(0x12b)]();const _0x5af500=(0x0,_univerjs_pro_engine_shape[_0x1ec0ed(0x532)])(_0x5a6411,_0x361567);if(_0x126711)this[_0x1ec0ed(0x1d5)](_0x5af500,_0x126711,_0x3fed97,_0x22f526,_0x1829a3);else this[_0x1ec0ed(0x67c)](_0x5af500,_0x3fed97,_0x22f526,_0x1829a3);}[_0x101898(0x17c)](_0x572cf5,_0x37dc6a,_0x57770f,_0x46566b){const _0x486e51=_0x101898,_0x595d3d=this[_0x486e51(0x40e)][_0x486e51(0x365)]()[_0x486e51(0x18b)],_0x2de690={..._0x595d3d},_0x4ad920={'shapeId':_0x37dc6a['shapeId'],'cxnIndex':_0x37dc6a[_0x486e51(0x1e2)]};if(_0x57770f)_0x2de690[_0x486e51(0x4b4)]=_0x4ad920;else _0x2de690['to']=_0x4ad920;const _0x1dc3f2=this[_0x486e51(0x40e)]['getShapeType'](),_0x5483e0=(0x0,_univerjs_pro_engine_shape[_0x486e51(0x532)])(_0x572cf5[_0x486e51(0x17d)],_0x1dc3f2),_0x8b4a06={'unitId':this[_0x486e51(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x604)],'height':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x57c)],'left':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x2ff)],'top':_0x572cf5[_0x486e51(0x190)]['top'],'flipX':_0x572cf5[_0x486e51(0x190)]['flipX']||![],'flipY':_0x572cf5[_0x486e51(0x190)][_0x486e51(0x34d)]||![],'newAdjustValues':_0x5483e0['adjustValues'],'oldAdjustValues':_0x46566b,'oldRelation':_0x595d3d,'newRelation':_0x2de690,'newLineType':_0x5483e0[_0x486e51(0x3a8)],'oldLineType':_0x1dc3f2};this[_0x486e51(0x36d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x486e51(0x64f)]['id'],_0x8b4a06);}[_0x101898(0x3b7)](_0x1f2ce0,_0x166e43){const _0x590be7=_0x101898,_0x42f20d=this[_0x590be7(0x40e)][_0x590be7(0x255)](),_0x48d155=(0x0,_univerjs_pro_engine_shape[_0x590be7(0x532)])(_0x1f2ce0['worldPoints'],_0x42f20d),_0x5826b8={'unitId':this[_0x590be7(0x2ae)],'subUnitId':this[_0x590be7(0x1a9)],'shapeId':this[_0x590be7(0x2c9)],'width':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x604)],'height':_0x1f2ce0['worldRect'][_0x590be7(0x57c)],'left':_0x1f2ce0[_0x590be7(0x190)]['left'],'top':_0x1f2ce0[_0x590be7(0x190)]['top'],'flipX':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x4e0)]||![],'flipY':_0x1f2ce0[_0x590be7(0x190)][_0x590be7(0x34d)]||![],'angle':_0x1f2ce0[_0x590be7(0x190)]['angle']||0x0,'newAdjustValues':_0x48d155['adjustValues'],'oldAdjustValues':_0x166e43,'newLineType':_0x48d155[_0x590be7(0x3a8)],'oldLineType':_0x42f20d};this[_0x590be7(0x36d)][_0x590be7(0x60c)](_univerjs_pro_sheets_shape[_0x590be7(0x4ca)]['id'],_0x5826b8);}[_0x101898(0x1d5)](_0x5bd810,_0x42b0e3,_0x5bd422,_0x20a54e,_0x530bf5){const _0x79bab3=_0x101898,_0x381022=this[_0x79bab3(0x40e)][_0x79bab3(0x365)]()['relation'],_0x3e7ddf={..._0x381022},_0x25fd55={'shapeId':_0x42b0e3[_0x79bab3(0x49a)],'cxnIndex':_0x42b0e3['cxnIndex']};_0x20a54e?(_0x3e7ddf[_0x79bab3(0x4b4)]=_0x25fd55,_0x3e7ddf['to']=_0x5bd422):(_0x3e7ddf['from']=_0x5bd422,_0x3e7ddf['to']=_0x25fd55);const _0x12f57d={'unitId':this[_0x79bab3(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x79bab3(0x2c9)],'width':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x604)],'height':_0x5bd810['worldRect']['height'],'left':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x2ff)],'top':_0x5bd810[_0x79bab3(0x190)]['top'],'flipX':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x4e0)]||![],'flipY':_0x5bd810[_0x79bab3(0x190)][_0x79bab3(0x34d)]||![],'oldAdjustValues':_0x530bf5,'newAdjustValues':_0x5bd810[_0x79bab3(0x494)],'newLineType':_0x5bd810[_0x79bab3(0x3a8)],'rotation':_0x5bd810[_0x79bab3(0x521)],'oldRelation':_0x381022,'newRelation':_0x3e7ddf};this['_commandService'][_0x79bab3(0x60c)](_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id'],_0x12f57d);}[_0x101898(0x67c)](_0x408108,_0xb50692,_0x3d5a35,_0x144c40){const _0x343d0c=_0x101898,_0x9b6751=this['_activeShapeModel'][_0x343d0c(0x365)]()[_0x343d0c(0x18b)],_0x51fc52={};_0x3d5a35?(_0x51fc52['to']=_0xb50692,_0x51fc52[_0x343d0c(0x4b4)]=void 0x0):(_0x51fc52[_0x343d0c(0x4b4)]=_0xb50692,_0x51fc52['to']=void 0x0);const _0x59d398={'unitId':this[_0x343d0c(0x2ae)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x408108[_0x343d0c(0x190)]['width'],'height':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x57c)],'left':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x2ff)],'top':_0x408108[_0x343d0c(0x190)]['top'],'flipX':_0x408108[_0x343d0c(0x190)][_0x343d0c(0x4e0)]||![],'flipY':_0x408108['worldRect'][_0x343d0c(0x34d)]||![],'oldAdjustValues':_0x144c40,'newAdjustValues':_0x408108[_0x343d0c(0x494)],'newLineType':_0x408108[_0x343d0c(0x3a8)],'rotation':_0x408108[_0x343d0c(0x521)],'oldRelation':_0x9b6751,'newRelation':_0x51fc52};this[_0x343d0c(0x36d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x343d0c(0x64f)]['id'],_0x59d398);}['_attachConnectorObjectEvent'](_0xe66084,_0x1b9080,_0x26fe7e){const _0x1f541c=_0x101898;this[_0x1f541c(0x1ff)]((0x0,_univerjs_core[_0x1f541c(0x266)])(_0xe66084['onPointerDown$'][_0x1f541c(0x3a5)]((_0xa1e582,_0x50d130)=>{const _0x329e6b=_0x1f541c,_0x22419d=_0xe66084[_0x329e6b(0x54c)]();this['_activeShapeModel']=this[_0x329e6b(0x352)][_0x329e6b(0x148)](_0x22419d[_0x329e6b(0x3aa)],_0x22419d[_0x329e6b(0x343)],_0x22419d['drawingId']);if(!this['_activeShapeModel'])return;const _0x1ff705={};this['_activeShapeModel'][_0x329e6b(0x609)]()['forEach'](_0x56b058=>{const _0x45f97f=_0x329e6b,_0x2d2fc3=this['_activeShapeModel'][_0x45f97f(0x29c)](_0x56b058);if(_0x2d2fc3!==void 0x0)_0x1ff705[_0x56b058]=_0x2d2fc3;});const _0x378542=this[_0x329e6b(0x186)]();if(!_0x378542)return;this['_baseDrawingRect']={..._0x378542};const _0x84ce07=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x329e6b(0x134)]),_0x18a793=(0x0,_univerjs_drawing[_0x329e6b(0x38f)])({'unitId':this[_0x329e6b(0x2ae)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x329e6b(0x2c9)]}),_0x55bd73=_0x1b9080['getObjectIncludeInGroup'](_0x18a793);this['_isConnecting']=!![],_0x1b9080[_0x329e6b(0x1c5)](),this[_0x329e6b(0x2eb)][_0x329e6b(0x32b)](_0x1b9080,this[_0x329e6b(0x2ae)],this['_subUnitId'],this[_0x329e6b(0x2c9)]),this[_0x329e6b(0x34e)]=null;const _0x449b44=this[_0x329e6b(0x40e)]['getConnectorLinePoints'](),_0x3720d2=_0x449b44[0x0],_0x1bc40c=_0x449b44[_0x449b44[_0x329e6b(0x1ec)]-0x1],_0x337670=_0x26fe7e?_0x84ce07[_0x329e6b(0x141)](_0x1bc40c):_0x84ce07[_0x329e6b(0x141)](_0x3720d2);this['_cxtHandlerPointerMove']=_0x1b9080[_0x329e6b(0x14b)]['subscribeEvent']((_0x35d95a,_0x67e5e3)=>{const _0x2eb1c9=_0x329e6b;if(!this[_0x2eb1c9(0x42a)]||!this[_0x2eb1c9(0x40e)])return;!this['_hasReset']&&(this[_0x2eb1c9(0x3be)][_0x2eb1c9(0x3fe)](),this[_0x2eb1c9(0x40e)][_0x2eb1c9(0x29a)](),this[_0x2eb1c9(0x39a)]=!![]);const _0x2d0524=this[_0x2eb1c9(0x555)](this[_0x2eb1c9(0x2ae)],this['_subUnitId']),_0xaca97d=this[_0x2eb1c9(0x491)](this['_unitId'],this[_0x2eb1c9(0x1a9)]),_0x13dedf={'x':_0x35d95a['offsetX']/_0xaca97d+_0x2d0524['x'],'y':_0x35d95a[_0x2eb1c9(0x544)]/_0xaca97d+_0x2d0524['y']},_0x56efe3=this[_0x2eb1c9(0x2eb)][_0x2eb1c9(0x426)](_0x13dedf);if(_0x56efe3){const {shapeId:_0x51854c,unitId:_0x1cb25e,subUnitId:_0x21d5e5}=_0x56efe3;if(_0x51854c&&_0x1cb25e&&_0x21d5e5){const _0x3ce737=(0x0,_univerjs_drawing[_0x2eb1c9(0x38f)])({'unitId':_0x1cb25e,'subUnitId':_0x21d5e5,'drawingId':_0x51854c});_0x56efe3[_0x2eb1c9(0x2f5)]=(_0x1b9080[_0x2eb1c9(0x157)](_0x3ce737)['angle']||0x0)+_0x56efe3[_0x2eb1c9(0x2f5)];}}this[_0x2eb1c9(0x34e)]=_0x56efe3;const _0x26b362=_0x26fe7e?this[_0x2eb1c9(0x40e)][_0x2eb1c9(0x371)]():this['_activeShapeModel'][_0x2eb1c9(0x434)]();if(_0x26b362){this['_handleConnectedEndpointMove'](_0x26b362,_0x13dedf,_0x26fe7e,_0x55bd73,_0xe66084);return;}this[_0x2eb1c9(0x453)](_0x13dedf,_0x337670,_0x26fe7e,_0x55bd73,_0xe66084);}),this['_cxtHandlerPointerUp']=_0x1b9080[_0x329e6b(0x173)][_0x329e6b(0x3a5)]((_0x5f08ec,_0x5a2785)=>{const _0x195600=_0x329e6b;this[_0x195600(0x21d)](_0x1b9080,_0x337670,_0x5f08ec,_0x26fe7e,_0x1ff705);}),_0x50d130[_0x329e6b(0x160)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x8539b7,_0x155971,_0x1daa4e){const _0x3b361a=_0x101898,_0x3545fd=this[_0x3b361a(0x352)][_0x3b361a(0x3d1)](_0x8539b7,_0x155971,_0x1daa4e);if(!_0x3545fd||_0x3545fd[_0x3b361a(0x1ec)]===0x0)return;const _0x30d5d4=this[_0x3b361a(0x28f)][_0x3b361a(0x1f9)](_0x8539b7);if(!_0x30d5d4)return;const {scene:_0x59737a}=_0x30d5d4;for(const _0x350ed1 of _0x3545fd){const _0x47da64=_0x350ed1['lineShapeId'],_0x35fb27=this[_0x3b361a(0x352)][_0x3b361a(0x148)](_0x8539b7,_0x155971,_0x47da64);if(!_0x35fb27)continue;const _0x4d442e=_0x35fb27[_0x3b361a(0x434)](),_0x530930=_0x35fb27[_0x3b361a(0x371)](),_0x53229e=(_0x4d442e===null||_0x4d442e===void 0x0?void 0x0:_0x4d442e[_0x3b361a(0x49a)])===_0x1daa4e,_0x27373b=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x8539b7,'subUnitId':_0x155971,'drawingId':_0x47da64}),_0x37048b=_0x59737a[_0x3b361a(0x157)](_0x27373b);if(!_0x37048b)continue;const _0x547fe3=this[_0x3b361a(0x3c9)][_0x3b361a(0x52f)]({'unitId':_0x8539b7,'subUnitId':_0x155971,'drawingId':_0x47da64});if(!(_0x547fe3===null||_0x547fe3===void 0x0?void 0x0:_0x547fe3[_0x3b361a(0x519)]))continue;if(_0x4d442e&&_0x530930)this[_0x3b361a(0x48d)](_0x8539b7,_0x155971,_0x47da64,_0x35fb27,_0x4d442e,_0x530930,_0x37048b);else this['_moveConnectorWithShape'](_0x8539b7,_0x155971,_0x47da64,_0x35fb27,_0x53229e?_0x4d442e:_0x530930,_0x53229e,_0x547fe3,_0x37048b);}}[_0x101898(0x48d)](_0x5ec01f,_0x57eb39,_0x359996,_0x52f166,_0x33b3ce,_0x52ee5f,_0x367add){const _0x5014c8=_0x101898,_0x925ac3=this[_0x5014c8(0x2ae)],_0x3fb5f2=this[_0x5014c8(0x1a9)];this[_0x5014c8(0x2ae)]=_0x5ec01f,this[_0x5014c8(0x1a9)]=_0x57eb39;const _0x8a9ed3=this[_0x5014c8(0x35e)](_0x33b3ce),_0x1c97d4=this[_0x5014c8(0x35e)](_0x52ee5f);this[_0x5014c8(0x2ae)]=_0x925ac3,this[_0x5014c8(0x1a9)]=_0x3fb5f2;if(!_0x8a9ed3||!_0x1c97d4)return;const _0x503dd1=_0x52f166[_0x5014c8(0x255)](),_0x2eeb6c=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x8a9ed3,_0x1c97d4,_0x503dd1);if(_0x2eeb6c)_0x52f166[_0x5014c8(0x508)](_0x2eeb6c);const _0x1a0093=(0x0,_univerjs_pro_engine_shape[_0x5014c8(0x532)])(_0x2eeb6c,_0x503dd1);if(_0x1a0093[_0x5014c8(0x3a8)]!==_0x503dd1)_0x52f166[_0x5014c8(0x538)](_0x1a0093['lineType']);_0x52f166[_0x5014c8(0x29a)]();for(const [_0x5e7877,_0x206c37]of Object[_0x5014c8(0x272)](_0x1a0093[_0x5014c8(0x494)]))_0x52f166[_0x5014c8(0x58a)](_0x5e7877,_0x206c37);_0x52f166[_0x5014c8(0x56d)]({'width':_0x1a0093['worldRect'][_0x5014c8(0x604)],'height':_0x1a0093['worldRect'][_0x5014c8(0x57c)]}),_0x367add[_0x5014c8(0x46b)]({'flipX':_0x1a0093['worldRect'][_0x5014c8(0x4e0)],'flipY':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x34d)],'left':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x2ff)],'top':_0x1a0093[_0x5014c8(0x190)]['top'],'width':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x604)],'height':_0x1a0093[_0x5014c8(0x190)][_0x5014c8(0x57c)],'angle':_0x1a0093[_0x5014c8(0x521)]}),_0x52f166[_0x5014c8(0x12b)]();}[_0x101898(0x4c3)](_0x510ae9,_0x49e1a5,_0x3ee300,_0x1e452c,_0x3b8a66,_0x4f1074,_0x5caf4d,_0x52f3c5){const _0x1b2a44=_0x101898,_0x408595=this[_0x1b2a44(0x2ae)],_0x12f1b1=this[_0x1b2a44(0x1a9)];this[_0x1b2a44(0x2ae)]=_0x510ae9,this[_0x1b2a44(0x1a9)]=_0x49e1a5;const _0x58bea3=this[_0x1b2a44(0x35e)](_0x3b8a66);this['_unitId']=_0x408595,this[_0x1b2a44(0x1a9)]=_0x12f1b1;if(!_0x58bea3)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x5caf4d[_0x1b2a44(0x519)],_0x5d302a=_0x1e452c[_0x1b2a44(0x52c)]();if(_0x5d302a['length']<0x2)return;const _0x285136=new _univerjs_pro_engine_shape[(_0x1b2a44(0x35f))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x17d501=_0x4f1074?_0x5d302a[_0x5d302a['length']-0x1]:_0x5d302a[0x0],_0x51080e=_0x285136[_0x1b2a44(0x141)](_0x17d501),_0x41fd55=_univerjs_pro_engine_shape[_0x1b2a44(0x35f)][_0x1b2a44(0x439)](_0x51080e,_0x58bea3[_0x1b2a44(0x4ad)],!_0x4f1074);_0x52f3c5[_0x1b2a44(0x46b)]({'flipX':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x4e0)],'flipY':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x34d)],'left':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x2ff)],'top':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x46c)],'width':_0x41fd55['worldRect'][_0x1b2a44(0x604)],'height':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x57c)],'angle':_0x41fd55[_0x1b2a44(0x190)][_0x1b2a44(0x2f5)]}),_0x52f3c5[_0x1b2a44(0x408)](!![]);}['_clearShapeConnectorHandlerObjects'](){const _0x6053d1=_0x101898;if(this['_connectorObjects'][_0x6053d1(0x1ec)]===0x0)return;this[_0x6053d1(0x1b4)][_0x6053d1(0x5aa)](_0x4468f7=>{_0x4468f7['dispose']();}),this[_0x6053d1(0x1b4)]=[];}[_0x101898(0x490)](){const _0x1444b8=_0x101898,_0x13c32=this[_0x1444b8(0x2e4)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x1444b8(0x1e3)][_0x1444b8(0x42f)]);this[_0x1444b8(0x1ff)](_0x13c32[_0x1444b8(0x63e)]((0x0,rxjs[_0x1444b8(0x3f8)])(_0x579613=>{const _0x57ff52=_0x1444b8;if(!_0x579613)return rxjs['EMPTY'];return _0x579613[_0x57ff52(0x522)][_0x57ff52(0x63e)]((0x0,rxjs[_0x57ff52(0x3f8)])(_0x573f23=>{const _0x55419b=_0x57ff52;if(!_0x573f23)return rxjs[_0x55419b(0x180)];const _0x240c74=_0x579613[_0x55419b(0x5b1)](),_0x3eb8be=this[_0x55419b(0x28f)][_0x55419b(0x1f9)](_0x240c74),_0x33e45b=_0x3eb8be===null||_0x3eb8be===void 0x0?void 0x0:_0x3eb8be['scene'];if(!_0x33e45b)return rxjs[_0x55419b(0x180)];return(0x0,rxjs['of'])(_0x33e45b);}));}))[_0x1444b8(0x4fd)](_0x50755e=>{const _0x4b6b22=_0x1444b8,_0xe7e5cc=_0x50755e[_0x4b6b22(0x53f)]();this['disposeWithMe'](_0x50755e[_0x4b6b22(0x14b)]['subscribeEvent'](_0x39c3f0=>{const _0x5dc74b=_0x4b6b22;if(this['_isDrawingShapePointDown']&&this[_0x5dc74b(0x2c9)])this[_0x5dc74b(0x649)]();})),this[_0x4b6b22(0x1ff)](_0xe7e5cc['changeStart$'][_0x4b6b22(0x4fd)](_0x1deb05=>{const _0x23df5b=_0x4b6b22,{objects:_0xb298c4}=_0x1deb05;this[_0x23df5b(0x649)]();if(_0xb298c4!==null&&_0xb298c4[_0x23df5b(0x2a7)]===0x1){if(_0xb298c4[_0x23df5b(0x2f4)]()[_0x23df5b(0x119)]()[_0x23df5b(0x2f1)]instanceof DrawingShape)this[_0x23df5b(0x3cb)]=!![];}})),this[_0x4b6b22(0x1ff)](_0xe7e5cc[_0x4b6b22(0x54f)][_0x4b6b22(0x4fd)](_0x1efd5d=>{const _0x1d089e=_0x4b6b22;if(this[_0x1d089e(0x3cb)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x4b6b22(0x1ff)](_0x50755e[_0x4b6b22(0x173)][_0x4b6b22(0x3a5)](()=>{const _0x1f2b94=_0x4b6b22;this[_0x1f2b94(0x3cb)]&&(this[_0x1f2b94(0x3cb)]=![],this[_0x1f2b94(0x283)]());})),this['disposeWithMe'](_0xe7e5cc[_0x4b6b22(0x651)][_0x4b6b22(0x4fd)](()=>{const _0x232d32=_0x4b6b22;this['_unitId']&&this[_0x232d32(0x1a9)]&&this[_0x232d32(0x2c9)]&&(this[_0x232d32(0x3c9)]['getDrawingByParam']({'unitId':this[_0x232d32(0x2ae)],'subUnitId':this[_0x232d32(0x1a9)],'drawingId':this[_0x232d32(0x2c9)]})&&(this[_0x232d32(0x649)](),this[_0x232d32(0x283)]()));}));}));}[_0x101898(0x606)](){const _0x261f11=_0x101898;this[_0x261f11(0x1ff)](this[_0x261f11(0x3c9)]['focus$'][_0x261f11(0x4fd)](_0x27991c=>{const _0x4d3411=_0x261f11;if(_0x27991c[_0x4d3411(0x1ec)]===0x1){const _0x4e861c=_0x27991c[0x0];if(_0x4e861c[_0x4d3411(0x324)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']){const _0x42e5ba=this[_0x4d3411(0x352)][_0x4d3411(0x148)](_0x4e861c['unitId'],_0x4e861c[_0x4d3411(0x343)],_0x4e861c[_0x4d3411(0x16c)]);if(_0x42e5ba&&(0x0,_univerjs_pro_engine_shape[_0x4d3411(0x277)])(_0x42e5ba[_0x4d3411(0x255)]())){this[_0x4d3411(0x2c9)]=_0x4e861c[_0x4d3411(0x16c)],this[_0x4d3411(0x2ae)]=_0x4e861c[_0x4d3411(0x3aa)],this[_0x4d3411(0x1a9)]=_0x4e861c[_0x4d3411(0x343)],this[_0x4d3411(0x649)](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x4d3411(0x2ae)]=void 0x0,this[_0x4d3411(0x1a9)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](this[_0x261f11(0x3c9)][_0x261f11(0x523)]['subscribe'](_0x4e436d=>{const _0x2b8b4c=_0x261f11;if(_0x4e436d[_0x2b8b4c(0x1ec)]===0x1){var _0x1fb230;const _0x1bf3f1=_0x4e436d[0x0],_0x3629f8=(_0x1fb230=this['_drawingManagerService']['getDrawingByParam'](_0x1bf3f1))===null||_0x1fb230===void 0x0?void 0x0:_0x1fb230[_0x2b8b4c(0x324)];if(_0x3629f8===_univerjs_core['DrawingTypeEnum'][_0x2b8b4c(0x535)]&&_0x1bf3f1[_0x2b8b4c(0x16c)]===this[_0x2b8b4c(0x2c9)])this[_0x2b8b4c(0x649)](),this[_0x2b8b4c(0x283)]();else{if(!this[_0x2b8b4c(0x2c9)]&&_0x3629f8===_univerjs_core[_0x2b8b4c(0x229)][_0x2b8b4c(0x535)])this['_handleBasicShapeUpdateConnectorLineShape'](_0x1bf3f1[_0x2b8b4c(0x3aa)],_0x1bf3f1['subUnitId'],_0x1bf3f1[_0x2b8b4c(0x16c)]);}}})),this[_0x261f11(0x1ff)](this[_0x261f11(0x3c9)][_0x261f11(0x5ad)][_0x261f11(0x4fd)](_0x2e8652=>{const _0x461a54=_0x261f11;for(const _0x391f71 of _0x2e8652){const {drawingId:_0xdb3833}=_0x391f71;if(this[_0x461a54(0x2c9)]===_0xdb3833){this[_0x461a54(0x15e)]();return;}}}));}['_handleConnectedEndpointMove'](_0xe059f9,_0x3ac1a0,_0x459786,_0x361062,_0x13d0b4){const _0x5b74f5=_0x101898;var _0x189f45,_0x436615;if(!this[_0x5b74f5(0x40e)])return;const _0x322c28=this[_0x5b74f5(0x35e)](_0xe059f9);if(!_0x322c28)return;const _0x3c6fb6=this[_0x5b74f5(0x34e)]?this[_0x5b74f5(0x34e)]['worldPoint']:_0x3ac1a0,_0x56b9e3=this['_currentConnectionTarget']?this[_0x5b74f5(0x34e)][_0x5b74f5(0x2f5)]:this[_0x5b74f5(0x269)](_0x322c28[_0x5b74f5(0x4ad)],_0x3c6fb6);let _0x2efade;if(this[_0x5b74f5(0x34e)]){const _0x1860d8=this[_0x5b74f5(0x3c9)]['getDrawingByParam']({'unitId':this[_0x5b74f5(0x34e)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x5b74f5(0x343)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0x1860d8===null||_0x1860d8===void 0x0?void 0x0:_0x1860d8['transform']){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x4e7bd3}=_0x1860d8['transform'];_0x2efade=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x122)])({'left':left,'top':top,'width':width,'height':height},_0x4e7bd3||0x0);}else _0x2efade={'left':_0x3c6fb6['x'],'top':_0x3c6fb6['y'],'width':0x0,'height':0x0};}else _0x2efade={'left':_0x3c6fb6['x'],'top':_0x3c6fb6['y'],'width':0x0,'height':0x0};const _0x34294a={'point':_0x3c6fb6,'angle':_0x56b9e3,'bounds':_0x2efade},_0x2267fb=_0x459786?_0x34294a:_0x322c28,_0x2b4f54=_0x459786?_0x322c28:_0x34294a,_0x5ec022=this[_0x5b74f5(0x40e)][_0x5b74f5(0x255)](),_0x3dd282=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x504)])(_0x2267fb,_0x2b4f54,_0x5ec022);if(_0x3dd282)this[_0x5b74f5(0x40e)][_0x5b74f5(0x508)](_0x3dd282);const _0x14dc82=(0x0,_univerjs_pro_engine_shape[_0x5b74f5(0x532)])(_0x3dd282,_0x5ec022);if(_0x14dc82[_0x5b74f5(0x3a8)]!==_0x5ec022)this[_0x5b74f5(0x40e)][_0x5b74f5(0x538)](_0x14dc82[_0x5b74f5(0x3a8)]);for(const [_0x2eb089,_0xd05528]of Object['entries'](_0x14dc82[_0x5b74f5(0x494)]))this[_0x5b74f5(0x40e)]['setAdjustValueByName'](_0x2eb089,_0xd05528);this[_0x5b74f5(0x40e)]['updateContext']({'width':_0x14dc82['worldRect'][_0x5b74f5(0x604)],'height':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x57c)]}),_0x361062[_0x5b74f5(0x46b)]({'flipX':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x4e0)],'flipY':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x34d)],'left':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x2ff)],'top':_0x14dc82[_0x5b74f5(0x190)]['top'],'width':_0x14dc82[_0x5b74f5(0x190)][_0x5b74f5(0x604)],'height':_0x14dc82['worldRect'][_0x5b74f5(0x57c)],'angle':_0x14dc82['rotation']}),_0x361062[_0x5b74f5(0x408)](!![]);const _0x17788e=(_0x189f45=(_0x436615=this['_currentConnectionTarget'])===null||_0x436615===void 0x0?void 0x0:_0x436615['worldPoint'])!==null&&_0x189f45!==void 0x0?_0x189f45:_0x3ac1a0;_0x13d0b4[_0x5b74f5(0x46b)]({'left':_0x17788e['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x5b74f5(0x497)],'top':_0x17788e['y']-_univerjs_pro_engine_shape[_0x5b74f5(0x30a)][_0x5b74f5(0x497)]});}[_0x101898(0x453)](_0x565e95,_0x29c146,_0x64d6e8,_0x7a6d02,_0x248436){const _0x16d51a=_0x101898;var _0x36e0ca,_0x51a7f1,_0x54c4ef,_0x3d0d26;const _0x20488b=(_0x36e0ca=(_0x51a7f1=this[_0x16d51a(0x34e)])===null||_0x51a7f1===void 0x0?void 0x0:_0x51a7f1[_0x16d51a(0x57a)])!==null&&_0x36e0ca!==void 0x0?_0x36e0ca:_0x565e95,_0xf47c0=_univerjs_pro_engine_shape[_0x16d51a(0x35f)][_0x16d51a(0x439)](_0x29c146,_0x20488b,_0x64d6e8);_0x7a6d02[_0x16d51a(0x46b)]({'flipX':_0xf47c0['worldRect']['flipX'],'flipY':_0xf47c0[_0x16d51a(0x190)]['flipY'],'left':_0xf47c0[_0x16d51a(0x190)]['left'],'top':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x46c)],'width':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x604)],'height':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x57c)],'angle':_0xf47c0[_0x16d51a(0x190)][_0x16d51a(0x2f5)]});const _0x5c8009=(_0x54c4ef=(_0x3d0d26=this[_0x16d51a(0x34e)])===null||_0x3d0d26===void 0x0?void 0x0:_0x3d0d26[_0x16d51a(0x57a)])!==null&&_0x54c4ef!==void 0x0?_0x54c4ef:_0x565e95;_0x248436[_0x16d51a(0x46b)]({'left':_0x5c8009['x']-_univerjs_pro_engine_shape[_0x16d51a(0x30a)]['cxnPointRadius'],'top':_0x5c8009['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x16d51a(0x497)]});}['_getConnectPointInfo'](_0x2715af){const _0x4e7936=_0x101898;if(!this[_0x4e7936(0x2ae)]||!this[_0x4e7936(0x1a9)])return null;const {shapeId:_0x24da51,cxnIndex:_0x39bfd3}=_0x2715af,_0x2ff220=this[_0x4e7936(0x352)][_0x4e7936(0x148)](this[_0x4e7936(0x2ae)],this[_0x4e7936(0x1a9)],_0x24da51);if(!_0x2ff220)return null;const _0x1ca497=this[_0x4e7936(0x3c9)][_0x4e7936(0x52f)]({'unitId':this[_0x4e7936(0x2ae)],'subUnitId':this[_0x4e7936(0x1a9)],'drawingId':_0x24da51});if(!(_0x1ca497===null||_0x1ca497===void 0x0?void 0x0:_0x1ca497[_0x4e7936(0x519)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x6afb8d}=_0x1ca497[_0x4e7936(0x519)];_0x2ff220[_0x4e7936(0x56d)]({'width':width,'height':height});const _0x589d07=_0x2ff220[_0x4e7936(0x18e)]()[_0x4e7936(0x13c)](_0x3323a4=>_0x3323a4[_0x4e7936(0x44f)]===_0x39bfd3);if(!_0x589d07)return null;let _0x1457f4=flipX?width-_0x589d07['x']:_0x589d07['x'],_0x5eba64=flipY?height-_0x589d07['y']:_0x589d07['y'];if(_0x6afb8d!==0x0&&_0x6afb8d!==void 0x0&&_0x6afb8d!==null){const _0x367b6d=_0x6afb8d*Math['PI']/0xb4,_0x31b828=Math[_0x4e7936(0x409)](_0x367b6d),_0x2a00e2=Math['sin'](_0x367b6d),_0x553deb=width/0x2,_0x4933a6=height/0x2,_0x2777df=_0x1457f4-_0x553deb,_0x39a151=_0x5eba64-_0x4933a6;_0x1457f4=_0x553deb+_0x2777df*_0x31b828-_0x39a151*_0x2a00e2,_0x5eba64=_0x4933a6+_0x2777df*_0x2a00e2+_0x39a151*_0x31b828;}_0x1457f4+=left,_0x5eba64+=top;let _0x5b3d8c=_0x589d07[_0x4e7936(0x686)]/0xea60;if(flipX)_0x5b3d8c=0xb4-_0x5b3d8c;if(flipY)_0x5b3d8c=-_0x5b3d8c;_0x5b3d8c+=_0x6afb8d||0x0,_0x5b3d8c=(_0x5b3d8c%0x168+0x168)%0x168;const _0xcabe4a=(0x0,_univerjs_pro_engine_shape[_0x4e7936(0x122)])({'left':left,'top':top,'width':width,'height':height},_0x6afb8d||0x0);return{'point':{'x':_0x1457f4,'y':_0x5eba64},'angle':_0x5b3d8c,'bounds':_0xcabe4a};}[_0x101898(0x269)](_0x4cbeb8,_0xd3c416){const _0x5880c6=_0x101898,_0x2c5806=_0xd3c416['x']-_0x4cbeb8['x'],_0x11e85d=_0xd3c416['y']-_0x4cbeb8['y'];if(Math[_0x5880c6(0x51e)](_0x2c5806)>=Math['abs'](_0x11e85d))return _0x2c5806>=0x0?0xb4:0x0;else return _0x11e85d>=0x0?0x10e:0x5a;}['_reset'](){const _0x19aa47=_0x101898;this[_0x19aa47(0x2c9)]=void 0x0,this[_0x19aa47(0x2ae)]=void 0x0,this['_subUnitId']=void 0x0,this['_clearShapeConnectorHandlerObjects']();}[_0x101898(0x3af)](){const _0x6f0fc0=_0x101898;this[_0x6f0fc0(0x649)](),super[_0x6f0fc0(0x3af)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x101898(0x55c)]),__decorateParam(0x2,_univerjs_engine_render[_0x101898(0x500)]),__decorateParam(0x3,_univerjs_drawing[_0x101898(0x415)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x101898(0x232)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x101898(0x463)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x101898(0x463)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core['Disposable']{constructor(_0x4b93b6,_0x5dc095,_0xa4641a){const _0x281894=_0x101898;super(),this[_0x281894(0x36d)]=_0x4b93b6,this[_0x281894(0x679)]=_0x5dc095,this[_0x281894(0x3f0)]=_0xa4641a,this[_0x281894(0x513)]();}[_0x101898(0x513)](){const _0xd6f919=_0x101898;this['disposeWithMe'](this[_0xd6f919(0x36d)][_0xd6f919(0x5a8)](_0x145fbe=>{const _0x597778=_0xd6f919;let _0x32c51e,_0x1abcf1;if(_0x145fbe['id']===_univerjs_pro_sheets_shape[_0x597778(0x473)]['id']||_0x145fbe['id']===_univerjs_pro_sheets_shape[_0x597778(0x3df)]['id']||_0x145fbe['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x3a4bdf=_0x145fbe[_0x597778(0x35d)];_0x32c51e=_0x3a4bdf[_0x597778(0x3aa)],_0x1abcf1=_0x3a4bdf['subUnitId'];}if(!_0x32c51e||!_0x1abcf1)return;if(!this[_0x597778(0x3f0)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x597778(0x4bc)]],'worksheetTypes':[_univerjs_sheets['WorksheetEditPermission']]},_0x32c51e,_0x1abcf1))this['_sheetPermissionCheckController'][_0x597778(0x3ba)](this[_0x597778(0x679)]['t'](_0x597778(0x1e1)));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x101898(0x55c)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x101898(0x334)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_sheets[_0x101898(0x167)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x4b85ae){const _0x4789a6=_0x101898,{containerWidth:_0x4d8c59,containerHeight:_0x3dfd56,scaleX:_0x539dd1,scaleY:_0x2936e3}=_0x4b85ae,_0x5c8c0e=_0x539dd1||0x1,_0x4cbc75=_0x2936e3||0x1,_0x4ae8a6=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(ShapeTextEditingService),_0x1b61da=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_docs_ui[_0x4789a6(0x29e)]),_0x819947=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_engine_render['IRenderManagerService']),_0x1c859c=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_core['IUniverInstanceService']),_0x4e5203=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_drawing[_0x4789a6(0x415)]),_0x5f22c9=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1d7940=(0x0,_univerjs_ui[_0x4789a6(0x14f)])(_univerjs_core[_0x4789a6(0x55c)]),_0x1a99b8=(0x0,_univerjs_ui['useObservable'])(_0x4ae8a6[_0x4789a6(0x39d)]),_0x35f8d5=(0x0,_univerjs_ui[_0x4789a6(0x677)])(_0x4ae8a6['onSavingEditorData$']),_0x180bc0=(0x0,react[_0x4789a6(0x1da)])(null),_0x10ee88=(0x0,react['useRef'])(null),_0x42b254=(0x0,react[_0x4789a6(0x1da)])(null),_0x4be958=(0x0,react[_0x4789a6(0x1da)])(null),_0x2dd38a=(0x0,react[_0x4789a6(0x1da)])(null),_0xb535f0=(0x0,react['useRef'])(null),[_0x466106,_0x421e51]=(0x0,react['useState'])({'editorHeight':_0x3dfd56,'marginTop':0x0,'useAbsolutePosition':![]}),_0x4dcabd=(0x0,react[_0x4789a6(0x471)])(_0x108410=>{queueMicrotask(()=>{_0x421e51(_0x108410);});},[]),_0x31119a=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x294ddf=_0x4789a6;return _0x1c859c[_0x294ddf(0x589)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x294ddf(0x1e3)]['UNIVER_DOC']);},[_0x1c859c]),_0xaf38a5=(0x0,react['useCallback'])(()=>{const _0x2fe8e3=_0x4789a6;var _0x2f6d99;const _0x13c4dd=_0x5c8c0e,_0x3cde48=_0x4cbc75;if(!_0x1a99b8)return{'scaleAdjust':0x1,'renderScaleX':_0x13c4dd,'renderScaleY':_0x3cde48};const _0xb8b8fa=_0x819947[_0x2fe8e3(0x1f9)](_0x1a99b8[_0x2fe8e3(0x3aa)]),_0x4e74b2=_0xb8b8fa===null||_0xb8b8fa===void 0x0?void 0x0:_0xb8b8fa[_0x2fe8e3(0x2dc)][_0x2fe8e3(0x597)](),_0x2c0fd1=_0xb8b8fa===null||_0xb8b8fa===void 0x0?void 0x0:_0xb8b8fa[_0x2fe8e3(0x36a)][_0x2fe8e3(0x2fd)](),_0x2dc743=_0x2c0fd1?Number[_0x2fe8e3(0x59b)](_0x2c0fd1[_0x2fe8e3(0x63d)]['width']||''):0x0,_0x56b765=(_0x2f6d99=_0x2c0fd1===null||_0x2c0fd1===void 0x0?void 0x0:_0x2c0fd1[_0x2fe8e3(0x2d7)]()['width'])!==null&&_0x2f6d99!==void 0x0?_0x2f6d99:0x0,_0x4348ab=_0x2dc743>0x0&&_0x56b765>0x0?_0x56b765/_0x2dc743:0x1;return{'scaleAdjust':Number[_0x2fe8e3(0x27b)](_0x4348ab)&&_0x4348ab>0x0?_0x4348ab:0x1,'renderScaleX':(_0x4e74b2===null||_0x4e74b2===void 0x0?void 0x0:_0x4e74b2['scaleX'])||_0x13c4dd,'renderScaleY':(_0x4e74b2===null||_0x4e74b2===void 0x0?void 0x0:_0x4e74b2[_0x2fe8e3(0x12a)])||_0x3cde48};},[_0x5c8c0e,_0x4cbc75,_0x1a99b8,_0x819947]),_0x1357bc=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x4fa240=_0x4789a6;if(!_0x1a99b8)return{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};const {unitId:_0x3d6aa7,subUnitId:_0x4079ab,shapeId:_0xd590ef}=_0x1a99b8,_0x28bcbb=_0x5f22c9[_0x4fa240(0x148)](_0x3d6aa7,_0x4079ab,_0xd590ef);if(!_0x28bcbb)return{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};const _0x461eb8={'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};return _0x28bcbb[_0x4fa240(0x5da)](_0x461eb8);},[_0x1a99b8,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75,_0x5f22c9]),_0x152d71=(0x0,react['useCallback'])(()=>{const _0x575d5a=_0x4789a6;if(!_0x1a99b8)return null;const {unitId:_0x12b517,subUnitId:_0x21ba24,shapeId:_0x36ae4b}=_0x1a99b8,_0x3a41d8=_0x5f22c9[_0x575d5a(0x148)](_0x12b517,_0x21ba24,_0x36ae4b);if(!_0x3a41d8)return null;const _0x11879f=_0x3a41d8[_0x575d5a(0x592)]();if(!_0x11879f)return null;const _0x427acc={'unitId':_0x12b517,'subUnitId':_0x21ba24,'drawingId':_0x36ae4b},_0x1ead05=_0x4e5203[_0x575d5a(0x52f)](_0x427acc);let _0x3fc2f2={'angle':0x0,'flipX':![],'flipY':![]};if(_0x1ead05&&_0x1ead05[_0x575d5a(0x519)])_0x3fc2f2=_0x1ead05[_0x575d5a(0x519)];const _0x420938={'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75},_0x352480=_0x3a41d8[_0x575d5a(0x5da)](_0x420938);let _0x4bdfff,_0x350a00=_univerjs_core[_0x575d5a(0x293)][_0x575d5a(0x1a5)],_0x5a026b=_univerjs_core[_0x575d5a(0x5c9)]['LEFT'];if(_0x575d5a(0x2c7)in _0x11879f&&_0x11879f[_0x575d5a(0x2c7)]){var _0x2b2c7a,_0x40bf43;const _0x1d3c61=_0x11879f[_0x575d5a(0x2c7)];if(_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61[_0x575d5a(0x214)])_0x4bdfff=_0x1d3c61[_0x575d5a(0x214)];_0x350a00=(_0x2b2c7a=_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61['va'])!==null&&_0x2b2c7a!==void 0x0?_0x2b2c7a:_univerjs_core['VerticalAlign'][_0x575d5a(0x1a5)],_0x5a026b=(_0x40bf43=_0x1d3c61===null||_0x1d3c61===void 0x0?void 0x0:_0x1d3c61['ha'])!==null&&_0x40bf43!==void 0x0?_0x40bf43:_univerjs_core[_0x575d5a(0x5c9)][_0x575d5a(0x183)];}return{'doc':_0x4bdfff,'verticalAlign':_0x350a00,'horizontalAlign':_0x5a026b,'textRect':_0x352480,'transform':_0x3fc2f2,'isHorizontal':_0x11879f[_0x575d5a(0x3ca)]};},[_0x1a99b8,_0x5f22c9,_0x4e5203,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75]),_0x5cd62c=(0x0,react[_0x4789a6(0x681)])(()=>{const _0x11fa4a=_0x4789a6,_0x219460=_0x152d71();if(_0x219460===null||_0x219460===void 0x0?void 0x0:_0x219460[_0x11fa4a(0x214)])return prepareShapeTextDocumentData(_0x219460[_0x11fa4a(0x214)],{'isHorizontal':!![],'textRect':_0x219460[_0x11fa4a(0x4fc)],'verticalAlign':_0x219460['verticalAlign'],'horizontalAlign':_0x219460['horizontalAlign']});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x4d8c59/_0x5c8c0e,'height':Infinity}}};},[_0x152d71,_0x4d8c59,_0x5c8c0e]),_0xe6fc3=(0x0,_univerjs_docs_ui[_0x4789a6(0x36f)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x5cd62c,'container':_0x10ee88,'autoFocus':![],'isSingle':![]}),_0x83179e=(0x0,_univerjs_docs_ui[_0x4789a6(0x308)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui['useKeyboardEvent'])(_0x83179e,{'keyCodes':[{'keyCode':_univerjs_ui[_0x4789a6(0x12d)][_0x4789a6(0x380)]}],'handler':()=>{const _0x528d74=_0x4789a6;_0x1d7940['executeCommand'](_univerjs_docs_ui[_0x528d74(0x626)]['id']);}},_0xe6fc3),(0x0,_univerjs_docs_ui[_0x4789a6(0x66a)])(_0x83179e,![],_0xe6fc3);const _0x188100=(0x0,react[_0x4789a6(0x471)])((_0x2a1e3d=!![])=>{const _0x1c29ee=_0x4789a6;var _0x2c2cfc,_0x468769,_0x4198fe;if(!_0xe6fc3)return;const _0x1b27f4=_0xe6fc3[_0x1c29ee(0x1e5)]()['find'](_0x1cafc4=>_0x1cafc4['collapsed']),_0x523396=((_0x2c2cfc=(_0x468769=_0xe6fc3[_0x1c29ee(0x660)]()['body'])===null||_0x468769===void 0x0?void 0x0:_0x468769[_0x1c29ee(0x1d7)][_0x1c29ee(0x1ec)])!==null&&_0x2c2cfc!==void 0x0?_0x2c2cfc:0x2)-0x2,_0x5f0038=(_0x4198fe=_0x1b27f4===null||_0x1b27f4===void 0x0?void 0x0:_0x1b27f4['startOffset'])!==null&&_0x4198fe!==void 0x0?_0x4198fe:_0x2a1e3d?_0x523396:null;if(_0x5f0038===null)return;_0xe6fc3[_0x1c29ee(0x339)]([{'startOffset':_0x5f0038,'endOffset':_0x5f0038}],![]);},[_0xe6fc3]),_0x57677b=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x51a6de=_0x4789a6;_0x2dd38a[_0x51a6de(0x51d)]!==null&&(cancelAnimationFrame(_0x2dd38a[_0x51a6de(0x51d)]),_0x2dd38a[_0x51a6de(0x51d)]=null),_0xb535f0[_0x51a6de(0x51d)]!==null&&(window[_0x51a6de(0x501)](_0xb535f0['current']),_0xb535f0[_0x51a6de(0x51d)]=null);},[]),_0x3e9b1=(0x0,react[_0x4789a6(0x471)])(()=>{const _0x47a996=_0x4789a6;var _0x3ff796,_0x36bbe8,_0x698b0d;if(!_0xe6fc3)return;const _0x17eea2=_0x819947[_0x47a996(0x1f9)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x387188=_0x17eea2===null||_0x17eea2===void 0x0?void 0x0:_0x17eea2[_0x47a996(0x593)](_univerjs_docs[_0x47a996(0x233)]);if(!_0x387188)return;const _0x3a10c4=_0x387188['getSkeleton'](),_0x345d91=_0x31119a(),{renderScaleX:_0x292312,renderScaleY:_0x319730,scaleAdjust:_0x697295}=_0xaf38a5(),_0x9607c7=_0x152d71(),_0x56f0d9=(_0x3ff796=_0x9607c7===null||_0x9607c7===void 0x0?void 0x0:_0x9607c7[_0x47a996(0x562)])!==null&&_0x3ff796!==void 0x0?_0x3ff796:_univerjs_core[_0x47a996(0x293)][_0x47a996(0x1a5)],_0x1360b9=(_0x36bbe8=_0x9607c7===null||_0x9607c7===void 0x0?void 0x0:_0x9607c7[_0x47a996(0x410)])!==null&&_0x36bbe8!==void 0x0?_0x36bbe8:_univerjs_core[_0x47a996(0x5c9)]['LEFT'],_0x29f3ee=(_0x698b0d=_0x1357bc())!==null&&_0x698b0d!==void 0x0?_0x698b0d:{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75};_0x345d91&&(_0x345d91[_0x47a996(0x613)](Math[_0x47a996(0x1db)](_0x292312,_0x319730)),_0x345d91['updateDocumentStyle']({'pageSize':{'width':_0x29f3ee[_0x47a996(0x604)],'height':Infinity}}),_0x345d91['updateDocumentRenderConfig']({'verticalAlign':_0x56f0d9,'horizontalAlign':_0x1360b9,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core['WrapStrategy'][_0x47a996(0x4a7)]}));_0x3a10c4[_0x47a996(0x26f)]();const {actualHeight:_0x32eddb}=_0x3a10c4[_0x47a996(0x5e6)](),_0x3ef594=_0x29f3ee[_0x47a996(0x57c)];let _0x3a1002=_0x3ef594,_0x1aa54f=0x0;if(_0x32eddb<=_0x3ef594){if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x2a6)])_0x1aa54f=(_0x3ef594-_0x32eddb)/0x2;else{if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x151)])_0x1aa54f=_0x3ef594-_0x32eddb;}_0x3a1002=_0x3ef594,_0x4dcabd({'editorHeight':_0x29f3ee[_0x47a996(0x57c)]*_0x4cbc75,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x5394ad=0x0;if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x2a6)])_0x5394ad=(_0x3ef594-_0x32eddb)/0x2;else{if(_0x56f0d9===_univerjs_core[_0x47a996(0x293)][_0x47a996(0x151)])_0x5394ad=_0x3ef594-_0x32eddb;}_0x1aa54f=0x0,_0x4dcabd({'editorHeight':_0x32eddb*_0x4cbc75,'marginTop':_0x5394ad*_0x4cbc75,'useAbsolutePosition':!![]}),_0x3a1002=_0x32eddb;}_0x345d91&&(_0x345d91['updateDocumentStyle']({'pageSize':{'width':_0x29f3ee['width'],'height':_0x3a1002}}),_0x345d91[_0x47a996(0x3bb)]({'t':_0x1aa54f}),_0x3a10c4[_0x47a996(0x26f)]());if(_0x17eea2){const _0x446c3b=_0x29f3ee['width']*_0x5c8c0e,_0x3c05f8=_0x3a1002*_0x4cbc75;_0x17eea2['scene'][_0x47a996(0x46b)]({'width':_0x446c3b*_0x697295/_0x292312,'height':_0x3c05f8*_0x697295/_0x319730,'scaleX':_0x292312*_0x697295,'scaleY':_0x319730*_0x697295});if(_0x17eea2['mainComponent'])_0x17eea2[_0x47a996(0x659)][_0x47a996(0x65a)](_0x446c3b*_0x697295/_0x292312,_0x3c05f8*_0x697295/_0x319730);}},[_0xe6fc3,_0x819947,_0x31119a,_0xaf38a5,_0x152d71,_0x1357bc,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75,_0x4dcabd]),_0x22bedf=(0x0,react[_0x4789a6(0x471)])((_0x5546a1=![])=>{const _0x4ab587=_0x4789a6;_0x57677b(),_0x2dd38a[_0x4ab587(0x51d)]=requestAnimationFrame(()=>{const _0x1b8944=_0x4ab587;_0x3e9b1();if(_0x5546a1)_0x188100(![]);_0x2dd38a[_0x1b8944(0x51d)]=null,_0xb535f0[_0x1b8944(0x51d)]=window[_0x1b8944(0x1b2)](()=>{_0x3e9b1();if(_0x5546a1)_0x188100(![]);_0xb535f0['current']=null;},0x14);});},[_0x3e9b1,_0x57677b,_0x188100]);(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x335f74=_0x4789a6;if(!_0xe6fc3||!_0x1a99b8)return;const {shapeId:_0x9e524f,unitId:_0x3c23f7,subUnitId:_0x1624b7}=_0x1a99b8;if(_0x35f8d5){var _0x45c1d1,_0x1b2939,_0x357af6,_0x5a50d3;const _0x5dbe4b=stripShapeTextDocumentLayout(_0xe6fc3[_0x335f74(0x660)]()),_0x32df6e=_0x152d71(),_0x277118={'va':(_0x45c1d1=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x562)])!==null&&_0x45c1d1!==void 0x0?_0x45c1d1:_univerjs_core[_0x335f74(0x293)][_0x335f74(0x1a5)],'ha':(_0x1b2939=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x410)])!==null&&_0x1b2939!==void 0x0?_0x1b2939:_univerjs_core[_0x335f74(0x5c9)][_0x335f74(0x183)],'doc':_0x5dbe4b};_0x1d7940[_0x335f74(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x3c23f7,'subUnitId':_0x1624b7,'shapeId':_0x9e524f,'shapeData':{'shapeText':{'isHorizontal':(_0x357af6=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e['isHorizontal'])!==null&&_0x357af6!==void 0x0?_0x357af6:!![],'dataModel':_0x277118}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5a50d3=_0x32df6e===null||_0x32df6e===void 0x0?void 0x0:_0x32df6e[_0x335f74(0x3ca)])!==null&&_0x5a50d3!==void 0x0?_0x5a50d3:!![],'dataModel':_0x42b254[_0x335f74(0x51d)]}}}});return;}const _0x13ee6e=_0x152d71();if(_0x13ee6e===null||_0x13ee6e===void 0x0?void 0x0:_0x13ee6e['doc']){_0x42b254[_0x335f74(0x51d)]={'va':_0x13ee6e[_0x335f74(0x562)],'ha':_0x13ee6e['horizontalAlign'],'doc':_univerjs_core[_0x335f74(0x174)][_0x335f74(0x1b9)](_0x13ee6e[_0x335f74(0x214)])};const _0x670e0a=prepareShapeTextDocumentData(_0x13ee6e[_0x335f74(0x214)],{'isHorizontal':!![],'textRect':_0x13ee6e['textRect'],'verticalAlign':_0x13ee6e[_0x335f74(0x562)],'horizontalAlign':_0x13ee6e[_0x335f74(0x410)]});return _0xe6fc3[_0x335f74(0x5dc)](_0x670e0a,null),()=>{const _0x43eeca=_0x335f74;var _0x5372fd,_0x25cc74,_0x164e87,_0x57c273;const _0x2411f9=stripShapeTextDocumentLayout(_0xe6fc3[_0x43eeca(0x660)]()),_0x4e9288=_0x152d71(),_0x1eff4d={'va':(_0x5372fd=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x562)])!==null&&_0x5372fd!==void 0x0?_0x5372fd:_univerjs_core[_0x43eeca(0x293)][_0x43eeca(0x1a5)],'ha':(_0x25cc74=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x410)])!==null&&_0x25cc74!==void 0x0?_0x25cc74:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x2411f9};_0x1d7940[_0x43eeca(0x60c)](UpdateShapeDataCommand['id'],{'unitId':_0x3c23f7,'subUnitId':_0x1624b7,'shapeId':_0x9e524f,'shapeData':{'shapeText':{'isHorizontal':(_0x164e87=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288['isHorizontal'])!==null&&_0x164e87!==void 0x0?_0x164e87:!![],'dataModel':_0x1eff4d}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x57c273=_0x4e9288===null||_0x4e9288===void 0x0?void 0x0:_0x4e9288[_0x43eeca(0x3ca)])!==null&&_0x57c273!==void 0x0?_0x57c273:!![],'dataModel':_0x42b254['current']}}}});};}else _0xe6fc3[_0x335f74(0x5dc)](_0x5cd62c,null);},[_0xe6fc3,_0x1a99b8,_0x35f8d5]),(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x3d7473=_0x4789a6;if(!_0xe6fc3||!_0x1a99b8)return;return _0x1b61da[_0x3d7473(0x568)](!![]),_0x3e9b1(),_0x4be958['current']=requestAnimationFrame(()=>{const _0x110214=_0x3d7473;_0x1b61da['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x188100(),_0x22bedf(),_0x4be958[_0x110214(0x51d)]=null;}),()=>{const _0x56eeae=_0x3d7473;_0x4be958[_0x56eeae(0x51d)]!==null&&(cancelAnimationFrame(_0x4be958[_0x56eeae(0x51d)]),_0x4be958[_0x56eeae(0x51d)]=null),_0x57677b(),_0x1b61da[_0x56eeae(0x568)](!![]);};},[_0xe6fc3,_0x1a99b8,_0x1b61da,_0x3e9b1,_0x188100,_0x22bedf,_0x57677b]),(0x0,react[_0x4789a6(0x26d)])(()=>{const _0x1975c4=_0x4789a6;if(!_0xe6fc3)return;const _0x5a35cf=_0x1d7940[_0x1975c4(0x5e3)](_0xe0c23d=>{const _0x31f2a1=_0x1975c4;if(_0xe0c23d['id']===_univerjs_docs[_0x31f2a1(0x1dd)]['id']){if(_0xe0c23d[_0x31f2a1(0x35d)][_0x31f2a1(0x3aa)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x1a99b8){if(!_0x1a99b8['visible'])_0x4ae8a6[_0x31f2a1(0x51b)]({..._0x1a99b8,'visible':!![]});else _0x3e9b1();}}}if(_0xe0c23d['id']===SetShapeTextVerticalAlignCommand['id'])_0x22bedf(!![]);});return()=>{_0x5a35cf['dispose']();};},[_0xe6fc3,_0x3e9b1,_0x1a99b8,_0x22bedf,_0x4ae8a6]),(0x0,react[_0x4789a6(0x26d)])(()=>{return _0x3e9b1(),_0x22bedf(),()=>{_0x57677b();};},[_0x3e9b1,_0x22bedf,_0x57677b]);const _0x3072fc=(0x0,react[_0x4789a6(0x681)])(()=>{const _0x1665ae=_0x4789a6;var _0x312f94;const _0x319ea9=(_0x312f94=_0x1357bc())!==null&&_0x312f94!==void 0x0?_0x312f94:{'left':0x0,'top':0x0,'width':_0x4d8c59/_0x5c8c0e,'height':_0x3dfd56/_0x4cbc75},_0x2e3fbb=_0x319ea9['left']*_0x5c8c0e,_0x306237=_0x319ea9[_0x1665ae(0x46c)]*_0x4cbc75,_0x1db25e=_0x319ea9[_0x1665ae(0x604)]*_0x5c8c0e;if(_0x466106[_0x1665ae(0x31a)])return{'top':_0x306237+_0x466106[_0x1665ae(0x663)],'left':_0x2e3fbb,'width':_0x1db25e,'height':_0x466106[_0x1665ae(0x64a)]};return{'top':_0x306237,'left':_0x2e3fbb,'width':_0x1db25e,'height':_0x466106[_0x1665ae(0x64a)]};},[_0x466106,_0x1357bc,_0x4d8c59,_0x3dfd56,_0x5c8c0e,_0x4cbc75]),_0x23e32b=(0x0,react['useMemo'])(()=>{const _0xd70602=_0x4789a6,_0x5530c5=_0x152d71(),_0xa021d=_0x5530c5===null||_0x5530c5===void 0x0?void 0x0:_0x5530c5[_0xd70602(0x519)];if(_0xa021d)return _0xa021d||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x152d71]);return(0x0,react_jsx_runtime[_0x4789a6(0x326)])(_0x4789a6(0x14c),{'ref':_0x180bc0,'data-u-comp':_0x4789a6(0x330),'className':_0x4789a6(0x212),'style':{'transform':_0x4789a6(0x50f)+_0x23e32b[_0x4789a6(0x2f5)]+'deg)\x20scaleY('+(_0x23e32b['flipY']?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x4789a6(0x326)])(_0x4789a6(0x14c),{'ref':_0x10ee88,'className':'univer-absolute','data-u-comp':_0x4789a6(0x1ef),'style':_0x3072fc,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']=_0x101898(0x395);const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x4eec0d,_0x2078c9,_0x3936a1,_0x2ed3d8){const _0x247e72=_0x101898,{scaleX:_0x4bf59b,scaleY:_0x1a512a}=_0x3936a1[_0x247e72(0x597)](),{startColumn:_0x4ed468,startRow:_0x21bd20,xSplit:_0x497c2d,ySplit:_0xbcfbb7}=_0x2ed3d8[_0x247e72(0x68a)][_0x247e72(0x245)](),_0x526434=_0x3936a1['getViewport'](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x23b)]),_0x8c280b=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x1af)]),_0x4417d6=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x5eb)]),_0x4f089c=_0x3936a1[_0x247e72(0x5f3)](_univerjs_engine_render[_0x247e72(0x2e9)][_0x247e72(0x1e8)]),{rowHeaderWidth:_0x11e131,columnHeaderHeight:_0x17b87d}=_0x2ed3d8,_0x38e705=_0x2ed3d8[_0x247e72(0x4b1)](_0x21bd20)+_0x17b87d,_0x17cfd2=_0x2ed3d8['colStartX'](_0x4ed468)+_0x11e131,_0x557351=_0x2ed3d8[_0x247e72(0x4b1)](_0x21bd20-_0xbcfbb7)+_0x17b87d,_0x1d826d=_0x2ed3d8[_0x247e72(0x4a9)](_0x4ed468-_0x497c2d)+_0x11e131,_0x525e29=[],_0x3e17b3=(_0x458a99,_0x2be90c,_0x568b47)=>{if(!_0x458a99)return null;const {viewportScrollX:_0x2ea777,viewportScrollY:_0x509ecc}=_0x458a99;let _0x1d02b1,_0x26c560;if(_0x2be90c)_0x1d02b1=(_0x4eec0d-(_0x1d826d-_0x11e131))*_0x4bf59b;else _0x1d02b1=(_0x4eec0d-_0x2ea777)*_0x4bf59b;if(_0x568b47)_0x26c560=(_0x2078c9-(_0x557351-_0x17b87d))*_0x1a512a;else _0x26c560=(_0x2078c9-_0x509ecc)*_0x1a512a;return{'domX':_0x1d02b1,'domY':_0x26c560};},_0x5df697=_0x4eec0d<_0x17cfd2&&_0x497c2d>0x0,_0x5bc26e=_0x2078c9<_0x38e705&&_0xbcfbb7>0x0,_0x1c081e=_0x4eec0d>=_0x17cfd2||_0x497c2d===0x0,_0x4209bb=_0x2078c9>=_0x38e705||_0xbcfbb7===0x0;if(_0x5df697&&_0x5bc26e&&_0x8c280b){const _0x40d328=_0x3e17b3(_0x8c280b,!![],!![]);if(_0x40d328)_0x525e29[_0x247e72(0x2f9)](_0x40d328);}if(_0x5bc26e&&_0x1c081e&&_0x4417d6){const _0xd0a9b0=_0x3e17b3(_0x4417d6,![],!![]);if(_0xd0a9b0)_0x525e29[_0x247e72(0x2f9)](_0xd0a9b0);}if(_0x5df697&&_0x4209bb&&_0x4f089c){const _0x5737a1=_0x3e17b3(_0x4f089c,!![],![]);if(_0x5737a1)_0x525e29[_0x247e72(0x2f9)](_0x5737a1);}if(_0x1c081e&&_0x4209bb&&_0x526434){const _0x4aac37=_0x3e17b3(_0x526434,![],![]);if(_0x4aac37)_0x525e29['push'](_0x4aac37);}if(_0x525e29[_0x247e72(0x1ec)]===0x0){var _0x1b9227,_0x86baec;return{'domX':(_0x4eec0d-((_0x1b9227=_0x526434===null||_0x526434===void 0x0?void 0x0:_0x526434[_0x247e72(0x149)])!==null&&_0x1b9227!==void 0x0?_0x1b9227:0x0))*_0x4bf59b,'domY':(_0x2078c9-((_0x86baec=_0x526434===null||_0x526434===void 0x0?void 0x0:_0x526434[_0x247e72(0x193)])!==null&&_0x86baec!==void 0x0?_0x86baec:0x0))*_0x1a512a};}let _0x4907a2=_0x525e29[0x0][_0x247e72(0x1d4)],_0x21fe3d=_0x525e29[0x0][_0x247e72(0x11c)];for(const _0x67d465 of _0x525e29){if(_0x67d465['domX']>_0x4907a2)_0x4907a2=_0x67d465['domX'];if(_0x67d465[_0x247e72(0x11c)]>_0x21fe3d)_0x21fe3d=_0x67d465[_0x247e72(0x11c)];}return{'domX':_0x4907a2,'domY':_0x21fe3d};}function calcShapePosition(_0x23b182,_0xdf51eb,_0x58b707,_0x38211c,_0x1dfc59,_0x4b037b,_0x1e42b0){const _0x5a25e0=_0x101898,{scaleX:_0x45416b,scaleY:_0xf1ce32}=_0x4b037b[_0x5a25e0(0x597)](),{domX:_0x9264fb,domY:_0x58e8f3}=calcBestDOMPositionForFreezeZones(_0x23b182,_0xdf51eb,_0x4b037b,_0x1e42b0);return{'left':_0x9264fb,'top':_0x58e8f3,'width':_0x58b707*_0x45416b,'height':_0x38211c*_0xf1ce32,'angle':_0x1dfc59,'scaleX':_0x45416b,'scaleY':_0xf1ce32};}function useShapePosition(_0x56ce53){const _0x4b8303=_0x101898,{editingParams:_0x4bd2a7,scene:_0xd84091,skeleton:_0x2d633d,getShapeTransform:_0x34dead}=_0x56ce53,[_0x3f9e43,_0x1b9670]=(0x0,react[_0x4b8303(0x168)])(DEFAULT_HIDDEN_POSITION),_0x2c55ab=(0x0,react[_0x4b8303(0x1da)])(_0x3f9e43);_0x2c55ab[_0x4b8303(0x51d)]=_0x3f9e43;const _0x900469=(0x0,react[_0x4b8303(0x471)])(()=>{const _0x2a9027=_0x4b8303;if(!_0x4bd2a7||!_0xd84091||!_0x2d633d){if(_0x2c55ab[_0x2a9027(0x51d)]!==DEFAULT_HIDDEN_POSITION)_0x1b9670(DEFAULT_HIDDEN_POSITION);return;}const _0x174617=_0x34dead();if(!_0x174617){if(_0x2c55ab['current']!==DEFAULT_HIDDEN_POSITION)_0x1b9670(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x458277,top:_0x5b8db9,width:_0x5effe0,height:_0x5772c5,angle:_0x44435b}=_0x174617;if(!_0x4bd2a7[_0x2a9027(0x510)]){const {scaleX:_0x1ffa99,scaleY:_0x1be16f}=_0xd84091['getAncestorScale']();_0x1b9670({'left':-0x270f,'top':-0x270f,'width':_0x5effe0*_0x1ffa99,'height':_0x5772c5*_0x1be16f,'angle':0x0,'scaleX':_0x1ffa99,'scaleY':_0x1be16f});return;}_0x1b9670(calcShapePosition(_0x458277,_0x5b8db9,_0x5effe0,_0x5772c5,_0x44435b,_0xd84091,_0x2d633d));},[_0x4bd2a7,_0xd84091,_0x2d633d,_0x34dead]);return(0x0,react[_0x4b8303(0x26d)])(()=>{_0x900469();},[_0x4bd2a7,_0x900469]),{'position':_0x3f9e43,'updatePosition':_0x900469};}const ShapePositionWrapper=(0x0,react[_0x101898(0x280)])(_0x378ea6=>{const _0x4c3578=_0x101898,{children:_0x723f2,onPositionUpdate:_0x149239}=_0x378ea6,_0x38b848=(0x0,react[_0x4c3578(0x1da)])(null),_0x473ca3=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x120e95=(0x0,_univerjs_ui[_0x4c3578(0x14f)])(_univerjs_engine_render[_0x4c3578(0x500)]),_0x543fea=(0x0,_univerjs_ui['useObservable'])(_0x473ca3[_0x4c3578(0x39d)]),_0x3123bb=(0x0,react['useMemo'])(()=>{const _0x28355d=_0x4c3578;if(!_0x543fea)return null;return _0x120e95[_0x28355d(0x1f9)](_0x543fea['unitId']);},[_0x543fea,_0x120e95]),_0x3bb22e=(0x0,react[_0x4c3578(0x681)])(()=>{const _0x402028=_0x4c3578;var _0x56bf29;return(_0x56bf29=_0x3123bb===null||_0x3123bb===void 0x0?void 0x0:_0x3123bb[_0x402028(0x2dc)])!==null&&_0x56bf29!==void 0x0?_0x56bf29:null;},[_0x3123bb]),{position:_0x3cd26d,updatePosition:_0x2f465e}=useShapePosition({'editingParams':_0x543fea,'scene':_0x3bb22e,'skeleton':(0x0,react[_0x4c3578(0x681)])(()=>{const _0x311362=_0x4c3578;var _0x4c1d9d,_0x459ff1;if(!_0x543fea||!_0x3123bb)return null;return(_0x4c1d9d=(_0x459ff1=_0x3123bb['with'](_univerjs_sheets_ui[_0x311362(0x217)])['getSkeletonParam'](_0x543fea[_0x311362(0x343)]))===null||_0x459ff1===void 0x0?void 0x0:_0x459ff1[_0x311362(0x236)])!==null&&_0x4c1d9d!==void 0x0?_0x4c1d9d:null;},[_0x543fea,_0x3123bb]),'getShapeTransform':(0x0,react[_0x4c3578(0x471)])(()=>{const _0x1f99d4=_0x4c3578;if(!_0x543fea||!_0x3bb22e)return null;const _0x591d95=_0x543fea[_0x1f99d4(0x60f)],_0x32450a=_0x3bb22e[_0x1f99d4(0x520)](_0x591d95);if(_0x32450a instanceof DrawingShape)return{'left':_0x32450a[_0x1f99d4(0x2ff)],'top':_0x32450a[_0x1f99d4(0x46c)],'width':_0x32450a[_0x1f99d4(0x604)],'height':_0x32450a['height'],'angle':_0x32450a[_0x1f99d4(0x2f5)]};return null;},[_0x543fea,_0x3bb22e])}),_0x4ee95e=(0x0,react[_0x4c3578(0x471)])(()=>{const _0x2e19f1=_0x4c3578,_0x1101f0=_0x38b848[_0x2e19f1(0x51d)];if(!_0x1101f0)return;_0x1101f0[_0x2e19f1(0x63d)]['left']=_0x3cd26d[_0x2e19f1(0x2ff)]+'px',_0x1101f0[_0x2e19f1(0x63d)][_0x2e19f1(0x46c)]=_0x3cd26d['top']+'px',_0x1101f0[_0x2e19f1(0x63d)]['width']=_0x3cd26d[_0x2e19f1(0x604)]+'px',_0x1101f0['style']['height']=_0x3cd26d['height']+'px';},[_0x3cd26d]);return(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x12f9a1=_0x4c3578;_0x4ee95e(),_0x149239===null||_0x149239===void 0x0||_0x149239({'width':_0x3cd26d[_0x12f9a1(0x604)],'height':_0x3cd26d[_0x12f9a1(0x57c)],'scaleX':_0x3cd26d[_0x12f9a1(0x43d)],'scaleY':_0x3cd26d['scaleY']});},[_0x3cd26d,_0x4ee95e,_0x149239]),(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x35beec=_0x4c3578;if(!_0x3bb22e)return;const _0x3f16da=_0x3bb22e[_0x35beec(0x5f3)](_univerjs_engine_render[_0x35beec(0x2e9)]['VIEW_MAIN']);if(!_0x3f16da)return;const _0x5330d4=_0x3f16da['onScrollAfter$'][_0x35beec(0x3a5)](()=>{_0x2f465e();});return()=>{const _0x4f59c5=_0x35beec;_0x5330d4[_0x4f59c5(0x472)]();};},[_0x3bb22e,_0x2f465e]),(0x0,react[_0x4c3578(0x26d)])(()=>{const _0x27cbab=_0x4c3578;if(!_0x543fea||!_0x3bb22e)return;const _0x1376b3=_0x543fea[_0x27cbab(0x60f)],_0x17bed3=_0x3bb22e[_0x27cbab(0x520)](_0x1376b3);if(_0x17bed3 instanceof DrawingShape){const _0x4dde6a=_0x17bed3[_0x27cbab(0x4e7)][_0x27cbab(0x3a5)](()=>{_0x2f465e();});return()=>{_0x4dde6a['unsubscribe']();};}},[_0x543fea,_0x3bb22e,_0x2f465e]),(0x0,react_jsx_runtime[_0x4c3578(0x326)])(_0x4c3578(0x14c),{'ref':_0x38b848,'data-u-comp':'shape-text-editor-position-wrapper','className':_0x4c3578(0x41e),'style':(0x0,react[_0x4c3578(0x681)])(()=>({'left':_0x3cd26d[_0x4c3578(0x2ff)],'top':_0x3cd26d[_0x4c3578(0x46c)],'width':_0x3cd26d['width'],'height':_0x3cd26d['height'],'pointerEvents':(_0x543fea===null||_0x543fea===void 0x0?void 0x0:_0x543fea[_0x4c3578(0x510)])?'auto':_0x4c3578(0x2fc)}),[_0x3cd26d,_0x543fea===null||_0x543fea===void 0x0?void 0x0:_0x543fea['visible']]),'children':_0x723f2});});ShapePositionWrapper[_0x101898(0x3c2)]='ShapePositionWrapper';const ShapeTextEditorContainer=(0x0,react[_0x101898(0x280)])(()=>{const _0x25056c=_0x101898,_0x58f400=(0x0,_univerjs_ui[_0x25056c(0x677)])((0x0,_univerjs_ui[_0x25056c(0x14f)])(ShapeTextEditingService)[_0x25056c(0x39d)]),[_0x25aada,_0x1c26e8]=(0x0,react['useState'])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x353d0a=(0x0,react[_0x25056c(0x471)])(_0xb5f074=>{const _0x4e001a=_0x25056c;_0x1c26e8({'width':_0xb5f074['width'],'height':_0xb5f074['height'],'scaleX':_0xb5f074[_0x4e001a(0x43d)],'scaleY':_0xb5f074[_0x4e001a(0x12a)]});},[]);if(!(_0x58f400===null||_0x58f400===void 0x0?void 0x0:_0x58f400[_0x25056c(0x510)]))return null;return(0x0,react_jsx_runtime[_0x25056c(0x326)])(ShapePositionWrapper,{'onPositionUpdate':_0x353d0a,'children':(0x0,react_jsx_runtime['jsx'])(ShapeEditor,{'containerWidth':_0x25aada[_0x25056c(0x604)],'containerHeight':_0x25aada[_0x25056c(0x57c)],'scaleX':_0x25aada[_0x25056c(0x43d)],'scaleY':_0x25aada[_0x25056c(0x12a)]})});});ShapeTextEditorContainer[_0x101898(0x3c2)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core['Plugin']{constructor(_0x421ccd=defaultPluginConfig,_0x104f8d,_0x2a5608,_0x46e8e0,_0x377062){const _0x5d0231=_0x101898;super(),this[_0x5d0231(0x5db)]=_0x421ccd,this[_0x5d0231(0x493)]=_0x104f8d,this[_0x5d0231(0x36d)]=_0x2a5608,this['_configService']=_0x46e8e0,this['_renderManagerService']=_0x377062;const {..._0x4e1e24}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this['_config']);this[_0x5d0231(0x598)]['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x4e1e24),this[_0x5d0231(0x482)]();}[_0x101898(0x4df)](){const _0x22b084=_0x101898;(0x0,_univerjs_core['touchDependencies'])(this[_0x22b084(0x493)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0x101898(0x533)](){const _0x1b4f82=_0x101898;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x1b4f82(0x5aa)](_0x471511=>this[_0x1b4f82(0x493)][_0x1b4f82(0x450)](_0x471511)),(0x0,_univerjs_core[_0x1b4f82(0x647)])(this[_0x1b4f82(0x493)],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[SheetBasicShapeConnectionPointController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core['UniverInstanceType'][_0x1b4f82(0x42f)],[SheetShapeAdjustController]),this[_0x1b4f82(0x28f)]['registerRenderModule'](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[ImageClipAdjustController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[SheetShapeConnectorController]),this[_0x1b4f82(0x28f)][_0x1b4f82(0x49d)](_univerjs_core[_0x1b4f82(0x1e3)][_0x1b4f82(0x42f)],[ShapeTextEditingRenderController]);}[_0x101898(0x656)](){const _0x4ee3a6=_0x101898,_0x50900a=this[_0x4ee3a6(0x493)];_0x50900a[_0x4ee3a6(0x49b)](_univerjs_ui[_0x4ee3a6(0x1bb)])[_0x4ee3a6(0x3d8)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]['forEach'](_0x337a01=>_0x50900a[_0x4ee3a6(0x450)](_0x337a01)),(0x0,_univerjs_core[_0x4ee3a6(0x647)])(this[_0x4ee3a6(0x493)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x101898(0x482)](){const _0x40408f=_0x101898;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x40408f(0x5aa)](_0x5b9143=>this[_0x40408f(0x1ff)](this[_0x40408f(0x36d)][_0x40408f(0x3c3)](_0x5b9143)));}};function _0x284a(_0x2ff36e,_0x26244e){_0x2ff36e=_0x2ff36e-0x119;const _0x458e20=_0x458e();let _0x284a34=_0x458e20[_0x2ff36e];return _0x284a34;}_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x489),_univerjs_core[_0x101898(0x1e3)][_0x101898(0x42f)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x682),_0x101898(0x27a)),_defineProperty(UniverSheetsShapeUIPlugin,_0x101898(0x31b),name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x101898(0x37e)])(_univerjs_sheets_drawing_ui['UniverSheetsDrawingUIPlugin'],_univerjs_pro_sheets_shape['UniverSheetsShapePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x101898(0x463)])(_univerjs_core[_0x101898(0x201)])),__decorateParam(0x2,_univerjs_core[_0x101898(0x55c)]),__decorateParam(0x3,_univerjs_core[_0x101898(0x650)]),__decorateParam(0x4,_univerjs_engine_render[_0x101898(0x500)])],UniverSheetsShapeUIPlugin),exports[_0x101898(0x163)]=SetShapeTextFontSizeCommand,exports[_0x101898(0x5df)]=SetShapeTextFontSizeDecreaseCommand,exports['SetShapeTextFontSizeIncreaseCommand']=SetShapeTextFontSizeIncreaseCommand,exports[_0x101898(0x44b)]=SetShapeTextHorizontalAlignCommand,exports[_0x101898(0x672)]=SetShapeTextVerticalAlignCommand,exports[_0x101898(0x17a)]=ShapeDocAlignCommand,Object[_0x101898(0x66c)](exports,_0x101898(0x137),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x101898(0x66c)](exports,_0x101898(0x4a3),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x101898(0x530)]=UpdateShapeDataCommand;
|
|
1
|
+
const _0xae170d=_0x513a;(function(_0x98eb01,_0x21307e){const _0x5b8780=_0x513a,_0x4dc9e5=_0x98eb01();while(!![]){try{const _0x46151e=parseInt(_0x5b8780(0x4db))/0x1+parseInt(_0x5b8780(0x28f))/0x2*(parseInt(_0x5b8780(0x500))/0x3)+-parseInt(_0x5b8780(0x503))/0x4+-parseInt(_0x5b8780(0x28b))/0x5+parseInt(_0x5b8780(0x60f))/0x6*(parseInt(_0x5b8780(0x2b5))/0x7)+-parseInt(_0x5b8780(0x117))/0x8+-parseInt(_0x5b8780(0x588))/0x9*(-parseInt(_0x5b8780(0x2d1))/0xa);if(_0x46151e===_0x21307e)break;else _0x4dc9e5['push'](_0x4dc9e5['shift']());}catch(_0x32bd82){_0x4dc9e5['push'](_0x4dc9e5['shift']());}}}(_0x5317,0xdc51e),Object[_0xae170d(0x2e1)](exports,Symbol[_0xae170d(0x5a8)],{'value':_0xae170d(0x386)}));var __create=Object['create'],__defProp=Object[_0xae170d(0x2e1)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropNames=Object[_0xae170d(0x339)],__getProtoOf=Object[_0xae170d(0x5f1)],__hasOwnProp=Object[_0xae170d(0x40f)][_0xae170d(0x3a9)],__copyProps=(_0x2adf78,_0x3abfcf,_0x23ad86,_0x34f4ab)=>{const _0x20239f=_0xae170d;if(_0x3abfcf&&typeof _0x3abfcf===_0x20239f(0x625)||typeof _0x3abfcf==='function')for(var _0x3a9b56=__getOwnPropNames(_0x3abfcf),_0x3b3814=0x0,_0x5b6e06=_0x3a9b56['length'],_0x1d5342;_0x3b3814<_0x5b6e06;_0x3b3814++){_0x1d5342=_0x3a9b56[_0x3b3814],!__hasOwnProp[_0x20239f(0x65d)](_0x2adf78,_0x1d5342)&&_0x1d5342!==_0x23ad86&&__defProp(_0x2adf78,_0x1d5342,{'get':(_0x1fd15e=>_0x3abfcf[_0x1fd15e])['bind'](null,_0x1d5342),'enumerable':!(_0x34f4ab=__getOwnPropDesc(_0x3abfcf,_0x1d5342))||_0x34f4ab[_0x20239f(0x4fe)]});}return _0x2adf78;},__toESM=(_0x3d4e06,_0x4e1ff9,_0xb938fe)=>(_0xb938fe=_0x3d4e06!=null?__create(__getProtoOf(_0x3d4e06)):{},__copyProps(_0x4e1ff9||!_0x3d4e06||!_0x3d4e06['__esModule']?__defProp(_0xb938fe,_0xae170d(0x556),{'value':_0x3d4e06,'enumerable':!![]}):_0xb938fe,_0x3d4e06));let _univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),rxjs=require('rxjs'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_icons=require('@univerjs/icons'),_univerjs_sheets_ui=require('@univerjs/sheets-ui'),_univerjs_ui=require('@univerjs/ui'),_univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_design=require('@univerjs/design'),react=require('react');react=__toESM(react);let _univerjs_drawing_ui=require('@univerjs/drawing-ui'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_sheets_drawing_ui=require('@univerjs/sheets-drawing-ui'),_univerjs_docs=require('@univerjs/docs');function _typeof(_0x240457){'@babel/helpers - typeof';const _0x27595e=_0xae170d;return _typeof=_0x27595e(0x22f)==typeof Symbol&&_0x27595e(0x3f5)==typeof Symbol[_0x27595e(0x11c)]?function(_0xb9c9b1){return typeof _0xb9c9b1;}:function(_0x317267){const _0x5f2896=_0x27595e;return _0x317267&&'function'==typeof Symbol&&_0x317267[_0x5f2896(0x1fb)]===Symbol&&_0x317267!==Symbol[_0x5f2896(0x40f)]?_0x5f2896(0x3f5):typeof _0x317267;},_typeof(_0x240457);}function toPrimitive(_0x504ba2,_0x1409bc){const _0x2683a8=_0xae170d;if(_0x2683a8(0x625)!=_typeof(_0x504ba2)||!_0x504ba2)return _0x504ba2;var _0x3b24df=_0x504ba2[Symbol[_0x2683a8(0x35b)]];if(void 0x0!==_0x3b24df){var _0x39e450=_0x3b24df[_0x2683a8(0x65d)](_0x504ba2,_0x1409bc||_0x2683a8(0x556));if('object'!=_typeof(_0x39e450))return _0x39e450;throw new TypeError(_0x2683a8(0x1ff));}return(_0x2683a8(0x177)===_0x1409bc?String:Number)(_0x504ba2);}function toPropertyKey(_0x3caa17){const _0x31aa35=_0xae170d;var _0x49b59c=toPrimitive(_0x3caa17,'string');return _0x31aa35(0x3f5)==_typeof(_0x49b59c)?_0x49b59c:_0x49b59c+'';}function _defineProperty(_0x4c4cc8,_0x17983d,_0x2a5608){const _0x539b56=_0xae170d;return(_0x17983d=toPropertyKey(_0x17983d))in _0x4c4cc8?Object[_0x539b56(0x2e1)](_0x4c4cc8,_0x17983d,{'value':_0x2a5608,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4c4cc8[_0x17983d]=_0x2a5608,_0x4c4cc8;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x146773){const _0x12f22b=_0xae170d;super(..._0x146773),_defineProperty(this,'_editingParams$',new rxjs['BehaviorSubject'](null)),_defineProperty(this,'editingParams$',this[_0x12f22b(0x651)][_0x12f22b(0x133)]()),_defineProperty(this,'_onSavingEditorData$',new rxjs[(_0x12f22b(0x378))](![])),_defineProperty(this,_0x12f22b(0x1e5),this[_0x12f22b(0x174)][_0x12f22b(0x133)]());}['dispose'](){const _0x5d47fd=_0xae170d;this[_0x5d47fd(0x651)][_0x5d47fd(0x243)](null),this[_0x5d47fd(0x651)][_0x5d47fd(0x4aa)](),this[_0x5d47fd(0x174)]['next'](![]),this[_0x5d47fd(0x174)][_0x5d47fd(0x4aa)](),super['dispose']();}[_0xae170d(0x153)](_0xaebb30){const _0xad4d2=_0xae170d;this['_editingParams$'][_0xad4d2(0x243)](_0xaebb30);if(_0xaebb30===null||_0xaebb30===void 0x0)this[_0xad4d2(0x174)][_0xad4d2(0x243)](![]);}[_0xae170d(0x56f)](_0x3823f6){const _0x392e7e=_0xae170d;this[_0x392e7e(0x174)][_0x392e7e(0x243)](_0x3823f6);}[_0xae170d(0x635)](){const _0xb6068e=_0xae170d;return this[_0xb6068e(0x651)][_0xb6068e(0x4b5)]();}};function getShapeDataDiff(_0x16b48f,_0x19869f){const _0x8ec3e5=_0xae170d,_0x3224f1={};for(const _0x337776 of Object[_0x8ec3e5(0x57e)](_0x19869f)){const _0x736887=_0x19869f[_0x337776],_0x231f84=_0x16b48f[_0x337776];if(_0x736887===void 0x0)continue;if(_0x231f84===void 0x0){_0x3224f1[_0x337776]=void 0x0;continue;}if(typeof _0x736887===_0x8ec3e5(0x625)&&_0x736887!==null&&!Array[_0x8ec3e5(0x42a)](_0x736887)&&typeof _0x231f84==='object'&&_0x231f84!==null&&!Array[_0x8ec3e5(0x42a)](_0x231f84))_0x3224f1[_0x337776]=getShapeDataDiff(_0x231f84,_0x736887);else _0x3224f1[_0x337776]=_0x231f84;}return _0x3224f1;}const UpdateShapeDataCommand={'type':_univerjs_core['CommandType'][_0xae170d(0x639)],'id':_0xae170d(0x1c4),'handler':(_0x27ce4d,_0x148e30)=>{const _0x332df6=_0xae170d,_0x51df91=_0x27ce4d['get'](_univerjs_pro_sheets_shape[_0x332df6(0x4b4)]),{unitId:_0x47dfdd,subUnitId:_0x3bff93,shapeType:_0x408039,shapeId:_0x35f8c5,shapeData:_0x34f49b,oldShapeJSON:_0x39a12a}=_0x148e30;if(!_0x51df91['getShapeModel'](_0x47dfdd,_0x3bff93,_0x35f8c5))return![];const _0x43d670=_0x27ce4d[_0x332df6(0x59e)](_univerjs_core[_0x332df6(0x12a)]),_0x2f5a6d=_0x27ce4d[_0x332df6(0x59e)](_univerjs_core[_0x332df6(0x27c)]),{oldShapeType:_0x1e022f,oldShapeData:_0x49d2ef={}}=_0x39a12a,_0x538e98=getShapeDataDiff(_0x49d2ef,_0x34f49b||{}),_0x10da85={'id':_univerjs_pro_sheets_shape[_0x332df6(0x584)]['id'],'params':{'unitId':_0x47dfdd,'subUnitId':_0x3bff93,'shapeId':_0x35f8c5,'shapeType':_0x408039,'shapeData':_0x34f49b}},_0x23eb5={'id':_univerjs_pro_sheets_shape[_0x332df6(0x584)]['id'],'params':{'unitId':_0x47dfdd,'subUnitId':_0x3bff93,'shapeId':_0x35f8c5,'shapeType':_0x1e022f,'shapeData':_0x538e98}};if(_0x43d670[_0x332df6(0x24e)](_0x10da85['id'],_0x10da85[_0x332df6(0x2ec)]))return _0x2f5a6d['pushUndoRedo']({'unitID':_0x47dfdd,'undoMutations':[_0x23eb5],'redoMutations':[_0x10da85]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x639)],'id':_0xae170d(0x5d5),'handler':async(_0xa8e1b8,_0x54b0ee)=>{const _0x2b9b41=_0xae170d;var _0x4d391b;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0xa8e1b8[_0x2b9b41(0x59e)](_univerjs_core[_0x2b9b41(0x567)])))return![];const _0x382edd=_0xa8e1b8[_0x2b9b41(0x59e)](_univerjs_sheets_drawing[_0x2b9b41(0x623)])[_0x2b9b41(0x309)]()[_0x2b9b41(0x4c3)](_0x2b0f88=>_0x2b0f88[_0x2b9b41(0x19b)]===_univerjs_core[_0x2b9b41(0x4c8)][_0x2b9b41(0x5f5)]);if(_0x382edd[_0x2b9b41(0x233)]!==0x1)return![];const _0x12b6dc=_0xa8e1b8['get'](ShapeTextEditingService)[_0x2b9b41(0x635)](),_0x33e951=(_0x12b6dc===null||_0x12b6dc===void 0x0?void 0x0:_0x12b6dc['unitId'])||_0x382edd[0x0][_0x2b9b41(0x40a)],_0x2861a1=(_0x12b6dc===null||_0x12b6dc===void 0x0?void 0x0:_0x12b6dc['subUnitId'])||_0x382edd[0x0]['subUnitId'],_0x2ad4da=(_0x12b6dc===null||_0x12b6dc===void 0x0?void 0x0:_0x12b6dc['shapeId'])||_0x382edd[0x0][_0x2b9b41(0x4eb)],_0x4d37eb=_0xa8e1b8[_0x2b9b41(0x59e)](_univerjs_pro_sheets_shape[_0x2b9b41(0x4b4)])[_0x2b9b41(0x258)](_0x33e951,_0x2861a1,_0x2ad4da);if(!_0x4d37eb)return![];const _0x54bba4=_0x4d37eb['getShapeTextData']();if(!_0x54bba4||!(_0x2b9b41(0x38e)in _0x54bba4))return![];const _0x3b58ae=_0xa8e1b8[_0x2b9b41(0x59e)](_univerjs_core[_0x2b9b41(0x12a)]),{value:_0x5eee18}=_0x54b0ee,_0x241c98=_0x4d37eb[_0x2b9b41(0x2ef)](),_0x21083b=_0x4d37eb[_0x2b9b41(0x411)](),_0x53caa4={..._0x54bba4['dataModel'],'ha':_0x5eee18};return await _0x3b58ae[_0x2b9b41(0x383)](UpdateShapeDataCommand['id'],{'unitId':_0x33e951,'subUnitId':_0x2861a1,'shapeId':_0x2ad4da,'shapeType':_0x241c98,'shapeData':{'shapeText':{'isHorizontal':(_0x4d391b=_0x54bba4[_0x2b9b41(0x63e)])!==null&&_0x4d391b!==void 0x0?_0x4d391b:!![],'dataModel':_0x53caa4}},'oldShapeJSON':{'oldShapeType':_0x241c98,'oldShapeData':_0x21083b}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x639)],'id':'sheet.command.set-shape-text-font-size','handler':async(_0x5a9922,_0x4bd3fc)=>{const _0x5a6924=_0xae170d;var _0x252c1c;if(!_0x4bd3fc)return![];const {value:_0x479e3f}=_0x4bd3fc,_0x32f0fb=_0x5a9922[_0x5a6924(0x59e)](_univerjs_core['ICommandService']),_0x231d89=_0x5a9922[_0x5a6924(0x59e)](ShapeTextEditingService),_0x502a2d=_0x5a9922[_0x5a6924(0x59e)](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x20f3fe=_0x5a9922['get'](_univerjs_engine_render[_0x5a6924(0x213)]),_0x4f6c91=_0x231d89[_0x5a6924(0x635)]();if(!_0x4f6c91)return![];const {unitId:_0x124e4c,subUnitId:_0x41a5cc,shapeId:_0x417535}=_0x4f6c91,_0x5ee545=_0x502a2d[_0x5a6924(0x258)](_0x124e4c,_0x41a5cc,_0x417535);if(!_0x5ee545)return![];const _0x2ee938=_0x5ee545[_0x5a6924(0x385)]();if(!_0x2ee938||!(_0x5a6924(0x38e)in _0x2ee938))return![];const _0x4c57db=_0x2ee938[_0x5a6924(0x38e)];if(!_0x4c57db)return![];const _0x58795b={..._0x4c57db,'fs':_0x479e3f},_0x2b2f83=await _0x32f0fb[_0x5a6924(0x383)](UpdateShapeDataCommand['id'],{'unitId':_0x124e4c,'subUnitId':_0x41a5cc,'shapeId':_0x417535,'shapeData':{'shapeText':{'isHorizontal':(_0x252c1c=_0x2ee938[_0x5a6924(0x63e)])!==null&&_0x252c1c!==void 0x0?_0x252c1c:!![],'dataModel':_0x58795b}}});if(_0x2b2f83){const _0x76c587=_0x20f3fe['getRenderById'](_0x124e4c);if(_0x76c587===null||_0x76c587===void 0x0?void 0x0:_0x76c587[_0x5a6924(0x2fc)]){const _0xf5c2ae=(0x0,_univerjs_drawing[_0x5a6924(0x401)])({'unitId':_0x124e4c,'subUnitId':_0x41a5cc,'drawingId':_0x417535}),_0x202ee3=_0x76c587['scene'][_0x5a6924(0x299)](_0xf5c2ae);if(_0x202ee3)_0x202ee3['makeDirty'](!![]);}}return _0x2b2f83;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core['CommandType'][_0xae170d(0x639)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0x3e31d4=>{const _0x128afb=_0xae170d;var _0x20b71c;const _0x16b3ea=_0x3e31d4[_0x128afb(0x59e)](ShapeTextEditingService),_0x31fab8=_0x3e31d4[_0x128afb(0x59e)](_univerjs_pro_sheets_shape[_0x128afb(0x4b4)]),_0x47b35f=_0x3e31d4[_0x128afb(0x59e)](_univerjs_core[_0x128afb(0x12a)]),_0x520460=_0x16b3ea['getEditing']();if(!_0x520460)return![];const {unitId:_0x8b3ef,subUnitId:_0x53cf5b,shapeId:_0x50aad3}=_0x520460,_0x42c266=_0x31fab8['getShapeModel'](_0x8b3ef,_0x53cf5b,_0x50aad3);if(!_0x42c266)return![];const _0x11a5ff=_0x42c266[_0x128afb(0x385)]();if(!_0x11a5ff||!(_0x128afb(0x38e)in _0x11a5ff))return![];const _0x5cdd8=_0x11a5ff[_0x128afb(0x38e)],_0x1b9d7e=(_0x20b71c=_0x5cdd8===null||_0x5cdd8===void 0x0?void 0x0:_0x5cdd8['fs'])!==null&&_0x20b71c!==void 0x0?_0x20b71c:0xe,_0x58d5c2=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x7c0f8a=_0x1b9d7e;const _0x37a0d4=_0x58d5c2[_0x128afb(0x341)](_0x1b9d7e);if(_0x37a0d4!==-0x1&&_0x37a0d4<_0x58d5c2[_0x128afb(0x233)]-0x1)_0x7c0f8a=_0x58d5c2[_0x37a0d4+0x1];else{if(_0x37a0d4===-0x1)_0x7c0f8a=Math[_0x128afb(0x5e4)](_0x1b9d7e)+0x1;}return _0x47b35f[_0x128afb(0x383)](SetShapeTextFontSizeCommand['id'],{'value':_0x7c0f8a});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x639)],'id':_0xae170d(0x433),'handler':async _0x4a34dc=>{const _0x5d3202=_0xae170d;var _0x749c04;const _0x2ce708=_0x4a34dc[_0x5d3202(0x59e)](ShapeTextEditingService),_0x299fb2=_0x4a34dc[_0x5d3202(0x59e)](_univerjs_pro_sheets_shape[_0x5d3202(0x4b4)]),_0x519ea5=_0x4a34dc[_0x5d3202(0x59e)](_univerjs_core[_0x5d3202(0x12a)]),_0x6c7b20=_0x2ce708[_0x5d3202(0x635)]();if(!_0x6c7b20)return![];const {unitId:_0x5eeea8,subUnitId:_0x12a9f0,shapeId:_0x2fa5da}=_0x6c7b20,_0x521f7b=_0x299fb2['getShapeModel'](_0x5eeea8,_0x12a9f0,_0x2fa5da);if(!_0x521f7b)return![];const _0x3c911e=_0x521f7b[_0x5d3202(0x385)]();if(!_0x3c911e||!(_0x5d3202(0x38e)in _0x3c911e))return![];const _0xf57800=_0x3c911e['dataModel'],_0x56d096=(_0x749c04=_0xf57800===null||_0xf57800===void 0x0?void 0x0:_0xf57800['fs'])!==null&&_0x749c04!==void 0x0?_0x749c04:0xe,_0x54989e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x56d9f8=_0x56d096;const _0x1f4b62=_0x54989e[_0x5d3202(0x341)](_0x56d096);if(_0x1f4b62!==-0x1&&_0x1f4b62>0x0)_0x56d9f8=_0x54989e[_0x1f4b62-0x1];else{if(_0x1f4b62===-0x1)_0x56d9f8=Math[_0x5d3202(0x5e4)](_0x56d096)-0x1;}if(_0x56d9f8<0x1)_0x56d9f8=0x1;return _0x519ea5[_0x5d3202(0x383)](SetShapeTextFontSizeCommand['id'],{'value':_0x56d9f8});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core['CommandType'][_0xae170d(0x639)],'id':_0xae170d(0x479),'handler':async(_0x2fa376,_0x18436b)=>{const _0xfc49b4=_0xae170d;var _0x4d3453;if(!(0x0,_univerjs_sheets[_0xfc49b4(0x3e2)])(_0x2fa376['get'](_univerjs_core[_0xfc49b4(0x567)])))return![];const _0x4136e1=_0x2fa376[_0xfc49b4(0x59e)](_univerjs_sheets_drawing[_0xfc49b4(0x623)])[_0xfc49b4(0x309)]()[_0xfc49b4(0x4c3)](_0x46e56b=>_0x46e56b[_0xfc49b4(0x19b)]===_univerjs_core[_0xfc49b4(0x4c8)]['DRAWING_SHAPE']);if(_0x4136e1['length']!==0x1)return![];const _0x494118=_0x2fa376['get'](ShapeTextEditingService)[_0xfc49b4(0x635)](),_0x805cff=(_0x494118===null||_0x494118===void 0x0?void 0x0:_0x494118[_0xfc49b4(0x40a)])||_0x4136e1[0x0][_0xfc49b4(0x40a)],_0x392b3d=(_0x494118===null||_0x494118===void 0x0?void 0x0:_0x494118[_0xfc49b4(0x423)])||_0x4136e1[0x0][_0xfc49b4(0x423)],_0x3fcd80=(_0x494118===null||_0x494118===void 0x0?void 0x0:_0x494118[_0xfc49b4(0x2f8)])||_0x4136e1[0x0]['drawingId'],_0x4410cb=_0x2fa376[_0xfc49b4(0x59e)](_univerjs_pro_sheets_shape[_0xfc49b4(0x4b4)])['getShapeModel'](_0x805cff,_0x392b3d,_0x3fcd80);if(!_0x4410cb)return![];const _0x49b65c=_0x4410cb[_0xfc49b4(0x385)]();if(!_0x49b65c||!('dataModel'in _0x49b65c))return![];const _0x1ad61a=_0x2fa376[_0xfc49b4(0x59e)](_univerjs_core[_0xfc49b4(0x12a)]),{value:_0x22b71e}=_0x18436b,_0xeed6c3=_0x4410cb['getShapeType'](),_0x234b5e=_0x4410cb['getShapeData'](),_0x114c33={..._0x49b65c[_0xfc49b4(0x38e)],'va':_0x22b71e};return await _0x1ad61a[_0xfc49b4(0x383)](UpdateShapeDataCommand['id'],{'unitId':_0x805cff,'subUnitId':_0x392b3d,'shapeId':_0x3fcd80,'shapeType':_0xeed6c3,'shapeData':{'shapeText':{'isHorizontal':(_0x4d3453=_0x49b65c[_0xfc49b4(0x63e)])!==null&&_0x4d3453!==void 0x0?_0x4d3453:!![],'dataModel':_0x114c33}},'oldShapeJSON':{'oldShapeType':_0xeed6c3,'oldShapeData':_0x234b5e}});}},ShapeDocAlignCommand={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x639)],'id':_0xae170d(0x4ac),'handler':(_0xb9f5da,_0x4eb46f)=>{const _0x30fdab=_0xae170d;if(!_0x4eb46f)return![];const {value:_0x19785d}=_0x4eb46f;return _0xb9f5da['get'](_univerjs_core[_0x30fdab(0x12a)])['syncExecuteCommand'](_univerjs_docs_ui[_0x30fdab(0x27a)]['id'],{'alignType':_0x19785d});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core['CommandType'][_0xae170d(0x3f4)],'id':_0xae170d(0x1c9),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x3f4)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0xae170d(0x1c1),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0xae170d(0x247)])(_0xae170d(0x404)),ShapeTextEditorContainer$1=_0xae170d(0x37d);function updateShapeData(_0x4559c8,_0x30408c,_0x4a89aa,_0x233a07,_0x51121b,_0xb8333c){const _0x1695e2=_0xae170d,_0x1dd08d={'unitId':_0x30408c,'subUnitId':_0x4a89aa,'shapeId':_0x233a07,'shapeData':_0xb8333c,'oldShapeJSON':_0x51121b};return _0x4559c8[_0x1695e2(0x383)](UpdateShapeDataCommand['id'],_0x1dd08d);}function updateLineShapeData(_0x2f3202,_0x1bd082,_0x32d79f,_0xf36c4,_0x57d480,_0x2f8c42){const _0x1ba2ba=_0xae170d,_0x480677={'unitId':_0x1bd082,'subUnitId':_0x32d79f,'shapeId':_0xf36c4,'shapeData':_0x2f8c42,'oldShapeJSON':_0x57d480};return _0x2f3202[_0x1ba2ba(0x383)](UpdateShapeDataCommand['id'],_0x480677);}function prepareShapeTextDocumentData(_0xf5facd,_0x5b9416){const _0x5fc91a=_0xae170d;var _0x481a7c;const {isHorizontal:_0x2bebb5,textRect:_0x19f90e,verticalAlign:_0x2a39e9}=_0x5b9416,_0x45bfa2=_0x2bebb5?_0x19f90e[_0x5fc91a(0x62b)]:_0x19f90e[_0x5fc91a(0x558)],_0x190241=_univerjs_core[_0x5fc91a(0x11a)]['deepClone'](_0xf5facd),_0xabc059=(_0x481a7c=_0x190241[_0x5fc91a(0x3c4)])!==null&&_0x481a7c!==void 0x0?_0x481a7c:{},_0x4cdb04={..._0xabc059['renderConfig'],'centerAngle':_0x2bebb5?0x0:_univerjs_engine_render[_0x5fc91a(0x5cd)],'vertexAngle':_0x2bebb5?0x0:_univerjs_engine_render['VERTICAL_ROTATE_ANGLE'],'wrapStrategy':_univerjs_core[_0x5fc91a(0x513)][_0x5fc91a(0x4fd)]};if(_0x2a39e9!==void 0x0)_0x4cdb04[_0x5fc91a(0x565)]=_0x2a39e9;if(_0x5b9416[_0x5fc91a(0x1a9)]!==void 0x0){var _0x1030c4;_0x4cdb04[_0x5fc91a(0x1a9)]=_0x5b9416['horizontalAlign'];const _0x4aaac6=(_0x1030c4=_0x190241[_0x5fc91a(0x3d1)])===null||_0x1030c4===void 0x0?void 0x0:_0x1030c4[_0x5fc91a(0x65a)];if(_0x4aaac6)for(const _0x579878 of _0x4aaac6){if(!_0x579878[_0x5fc91a(0x518)])_0x579878[_0x5fc91a(0x518)]={};_0x579878['paragraphStyle'][_0x5fc91a(0x1a9)]=_0x5b9416[_0x5fc91a(0x1a9)];}}return _0x190241[_0x5fc91a(0x3c4)]={..._0xabc059,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x45bfa2,'height':Number[_0x5fc91a(0x5d2)]},'renderConfig':_0x4cdb04},_0x190241;}function stripShapeTextDocumentLayout(_0x241ef4){const _0x518b44=_0xae170d;var _0xfd5ac6;const _0x7b4df6=_univerjs_core[_0x518b44(0x11a)]['deepClone'](_0x241ef4),_0x229630=(_0xfd5ac6=_0x7b4df6[_0x518b44(0x3c4)])!==null&&_0xfd5ac6!==void 0x0?_0xfd5ac6:{},_0x1de813={..._0x229630['renderConfig']};return delete _0x1de813['centerAngle'],delete _0x1de813['vertexAngle'],delete _0x1de813['verticalAlign'],delete _0x1de813['wrapStrategy'],_0x7b4df6[_0x518b44(0x3c4)]={..._0x229630,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x518b44(0x5d2)],'height':Number[_0x518b44(0x5d2)]},'renderConfig':Object['keys'](_0x1de813)['length']>0x0?_0x1de813:void 0x0},_0x7b4df6;}var DrawingShape=class extends _univerjs_engine_render[_0xae170d(0x5a5)]{constructor(_0x2e995e,_0x4a0eaf){const _0x3f7fe6=_0xae170d;super(_0x2e995e,_0x4a0eaf),_defineProperty(this,_0x3f7fe6(0x3c3),void 0x0),_defineProperty(this,'_transformCalculateSrcRect',!![]),_defineProperty(this,_0x3f7fe6(0x187),_univerjs_core[_0x3f7fe6(0x4c8)][_0x3f7fe6(0x5f5)]),_defineProperty(this,_0x3f7fe6(0x438),!![]),this[_0x3f7fe6(0x3c3)]={..._0x4a0eaf},this[_0x3f7fe6(0x15c)]();}[_0xae170d(0x15c)](){const _0x2b2f08=_0xae170d;this[_0x2b2f08(0x134)]['subscribeEvent'](_0x1ac040=>{const _0x2f16f7=_0x2b2f08;this[_0x2f16f7(0x217)](_0x1ac040);});}[_0xae170d(0x1c2)](_0x5c8a2b){const _0xb0c393=_0xae170d;this['_props'][_0xb0c393(0x47d)]=_0x5c8a2b;}['setEditing'](_0x15eb25){const _0x3a2aec=_0xae170d;this[_0x3a2aec(0x3c3)][_0x3a2aec(0x292)]=_0x15eb25,this[_0x3a2aec(0x1db)](!![]);}get[_0xae170d(0x40a)](){const _0x4b2400=_0xae170d;return this['_props'][_0x4b2400(0x40a)];}get['subUnitId'](){const _0x10bad8=_0xae170d;return this[_0x10bad8(0x3c3)]['subUnitId'];}[_0xae170d(0x217)](_0xf8a02d){const _0x59d6a8=_0xae170d;if(this['_props']['srcRect']==null||!this[_0x59d6a8(0x56b)])return;const {width:_0x524e49,height:_0x358a37}=this,{width:_0x518f0b=0x0,height:_0x12946d=0x0}=_0xf8a02d['preValue'],{left:_0x24f9ed=0x0,top:_0x23fcc1=0x0,right:_0x5d04f6=0x0,bottom:_0x166449=0x0}=this[_0x59d6a8(0x3c3)][_0x59d6a8(0x16f)];let _0x7e925f=_0x24f9ed,_0x5916c6=_0x23fcc1,_0x3a5dd9=_0x5d04f6,_0x1a5b1a=_0x166449,_0x996da9=![];if(_0x518f0b!==0x0&&_0x518f0b!==_0x524e49){const _0x1393f6=_0x24f9ed/_0x518f0b,_0x6df52b=_0x5d04f6/_0x518f0b;_0x7e925f=_0x524e49*_0x1393f6,_0x3a5dd9=_0x524e49*_0x6df52b,_0x996da9=!![];}if(_0x12946d!==0x0&&_0x12946d!==_0x358a37){const _0x533de9=_0x23fcc1/_0x12946d,_0x1862a0=_0x166449/_0x12946d;_0x5916c6=_0x358a37*_0x533de9,_0x1a5b1a=_0x358a37*_0x1862a0,_0x996da9=!![];}if(_0x996da9)this[_0x59d6a8(0x522)]({'left':_0x7e925f,'top':_0x5916c6,'right':_0x3a5dd9,'bottom':_0x1a5b1a});}['setSrcRect'](_0x4fcf99){this['_props']['srcRect']=_0x4fcf99,this['makeDirty'](!![]);}[_0xae170d(0x50c)](_0x460acf){const _0x45a750=_0xae170d;this[_0x45a750(0x3c3)]['image']=_0x460acf,this[_0x45a750(0x1db)](!![]);}set['transform'](_0x4797a5){const _0x4df666=_0xae170d;this[_0x4df666(0x324)]=_0x4797a5;}get[_0xae170d(0x521)](){const _0xd0ed25=_0xae170d;if(!this[_0xd0ed25(0x324)])this[_0xd0ed25(0x4ea)]();const _0x4543ff=this[_0xd0ed25(0x324)][_0xd0ed25(0x54a)]();return this[_0xd0ed25(0x151)](_0x4543ff);}get[_0xae170d(0x4cc)](){const _0x4dd12d=_0xae170d;return this[_0x4dd12d(0x3c3)][_0x4dd12d(0x4cc)];}get[_0xae170d(0x2f8)](){const _0x299bb0=_0xae170d;return this[_0x299bb0(0x3c3)][_0x299bb0(0x2f8)];}get[_0xae170d(0x3be)](){const _0x77960e=_0xae170d;return _univerjs_engine_render[_0x77960e(0x413)][_0x77960e(0x600)];}[_0xae170d(0x470)](_0x238fdb,_0x44e1e9,_0x3f4981,_0x3bc240){const _0x57cf49=_0xae170d,_0x34fd97=this[_0x57cf49(0x3c3)][_0x57cf49(0x4cc)];if(!_0x34fd97||!_0x44e1e9)return;const _0x2d4b33=_0x3f4981!==null&&_0x3f4981!==void 0x0?_0x3f4981:this[_0x57cf49(0x62b)],_0x5be75d=_0x3bc240!==null&&_0x3bc240!==void 0x0?_0x3bc240:this[_0x57cf49(0x558)],_0x58649a={'shapeType':_0x34fd97[_0x57cf49(0x2ef)](),'width':_0x2d4b33,'height':_0x5be75d},_0x4a3452={'renderMode':_univerjs_pro_engine_shape[_0x57cf49(0x112)][_0x57cf49(0x347)],'oKey':this[_0x57cf49(0x3d3)],'image':this[_0x57cf49(0x3c3)][_0x57cf49(0x591)],'angle':this[_0x57cf49(0xfe)]};_0x34fd97['updateContext'](_0x58649a),_0x238fdb[_0x57cf49(0x34f)]();const _0x3b60ac={'top':0x0,'left':0x0,'width':_0x2d4b33,'height':_0x5be75d};_0x34fd97['render'](_0x238fdb,_0x3b60ac,_0x4a3452),_0x238fdb[_0x57cf49(0x53e)]();const _0x58ec6f=_0x34fd97['getShapeTextData'](),_0x3d824b=_0x34fd97['getShapeTextRect'](_0x3b60ac),_0x15aefd=_0x34fd97['isLineShape']();if(_0x58ec6f&&_0x3d824b&&!_0x15aefd){_0x238fdb[_0x57cf49(0x34f)]();if(this[_0x57cf49(0x1e7)]()['flipX'])_0x238fdb['scale'](-0x1,0x1);const _0x504275=_0x2d4b33/0x2,_0x58035e=_0x5be75d/0x2;_0x238fdb[_0x57cf49(0x2d7)](-_0x504275,-_0x58035e),_0x238fdb[_0x57cf49(0x232)](),this[_0x57cf49(0x466)](_0x238fdb,_0x58ec6f,_0x3d824b),_0x238fdb[_0x57cf49(0x53e)]();}}[_0xae170d(0x610)](_0x467056){}[_0xae170d(0x466)](_0x130bc2,_0x1eec82,_0x261d21){const _0x47d2f8=_0xae170d;if(this[_0x47d2f8(0x3c3)][_0x47d2f8(0x292)])return;if(_0x47d2f8(0x1b6)in _0x1eec82&&_0x1eec82[_0x47d2f8(0x1b6)]===![])this[_0x47d2f8(0x24b)](_0x130bc2,_0x1eec82,_0x261d21);else this[_0x47d2f8(0x15b)](_0x130bc2,_0x1eec82,_0x261d21);}[_0xae170d(0x24b)](_0x1c5570,_0x6045d3,_0x945915){}[_0xae170d(0x15b)](_0x169493,_0x187eea,_0x4fa560){const _0x49a172=_0xae170d;var _0x5b6c7e,_0x61c32e;const _0x18aa0c=this[_0x49a172(0x3c3)][_0x49a172(0x237)];if(!_0x187eea[_0x49a172(0x38e)]||!_0x18aa0c){if(!_0x18aa0c)console[_0x49a172(0x125)](_0x49a172(0x580));return;}const _0x3e17f7=_0x187eea[_0x49a172(0x38e)],_0x2704be=_0x3e17f7[_0x49a172(0x3ad)],_0x51f769=(_0x5b6c7e=_0x3e17f7['va'])!==null&&_0x5b6c7e!==void 0x0?_0x5b6c7e:_univerjs_core['VerticalAlign'][_0x49a172(0x596)],_0x50c582=(_0x61c32e=_0x3e17f7['ha'])!==null&&_0x61c32e!==void 0x0?_0x61c32e:_univerjs_core[_0x49a172(0x110)][_0x49a172(0x43f)];if(!_0x2704be)return;const _0x187df3=_0x187eea[_0x49a172(0x63e)],_0x4a48ef=prepareShapeTextDocumentData(_0x2704be,{'isHorizontal':_0x187df3!==![],'textRect':_0x4fa560,'verticalAlign':_0x51f769,'horizontalAlign':_0x50c582}),_0x306513=new _univerjs_core['DocumentDataModel'](_0x4a48ef),_0x1093e2=new _univerjs_engine_render[(_0x49a172(0x426))](_0x306513),_0x12da2e=_univerjs_engine_render['DocumentSkeleton'][_0x49a172(0x271)](_0x1093e2,_0x18aa0c);console[_0x49a172(0x125)](_0x4a48ef,_0x306513,_0x12da2e),_0x12da2e[_0x49a172(0x495)]();const _0x4074e2=new _univerjs_engine_render[(_0x49a172(0x170))]('shape-text-'+this[_0x49a172(0x3d3)],_0x12da2e,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x4074e2[_0x49a172(0x113)](_0x4fa560['width'],_0x4fa560['height']),_0x169493[_0x49a172(0x34f)](),_0x169493[_0x49a172(0x48d)](_0x4fa560[_0x49a172(0x367)],_0x4fa560[_0x49a172(0x381)]),_0x169493[_0x49a172(0x232)](),_0x169493[_0x49a172(0x2f0)](0x0,0x0,_0x4fa560['width'],_0x4fa560[_0x49a172(0x558)]),_0x169493[_0x49a172(0x343)](),_0x4074e2[_0x49a172(0x3b7)](_0x169493),_0x169493[_0x49a172(0x53e)](),_0x4074e2[_0x49a172(0x178)](),_0x12da2e['dispose'](),_0x1093e2[_0x49a172(0x178)](),_0x306513[_0x49a172(0x178)]();}[_0xae170d(0x2c0)](_0x212ec8,_0xcca4a3,_0x7f33fa=![]){const _0x2b0f7f=_0xae170d;if(!this['visible'])return this['makeDirty'](![]),this;let {width:_0x3be071,height:_0x3fef42,left:_0x132cbe,top:_0x418a97}=this;const _0x371f9f=this[_0x2b0f7f(0x45b)]();_0x3be071=_0x371f9f[_0x2b0f7f(0x62b)],_0x3fef42=_0x371f9f[_0x2b0f7f(0x558)],_0x132cbe=_0x371f9f[_0x2b0f7f(0x367)],_0x418a97=_0x371f9f[_0x2b0f7f(0x381)];if(this[_0x2b0f7f(0x363)](_0xcca4a3)){const {top:_0x2b950d,left:_0x1ce359,bottom:_0x31e0c9,right:_0x26c07f}=_0xcca4a3[_0x2b0f7f(0x534)];if(_0x3be071+this['strokeWidth']+_0x132cbe<_0x1ce359||_0x26c07f<_0x132cbe||_0x3fef42+this[_0x2b0f7f(0x38f)]+_0x418a97<_0x2b950d||_0x31e0c9<_0x418a97)return this;}const _0xe070b7=_0x132cbe+_0x3be071/0x2,_0x3fa143=_0x418a97+_0x3fef42/0x2;let _0x744333=this['transform']['getMatrix']();if(this[_0x2b0f7f(0x3c3)]['isEditing']){const _0x5e5e6d=this[_0x2b0f7f(0x1e7)](),_0x20b732=new _univerjs_engine_render[(_0x2b0f7f(0x196))]();_0x20b732['composeMatrix']({..._0x5e5e6d}),_0x744333=_0x20b732[_0x2b0f7f(0x22c)]();}_0x212ec8[_0x2b0f7f(0x34f)]();if(this[_0x2b0f7f(0x3c3)][_0x2b0f7f(0x4cc)][_0x2b0f7f(0x40d)]===!![]){}else _0x212ec8['transform'](_0x744333[0x0],_0x744333[0x1],_0x744333[0x2],_0x744333[0x3],_0xe070b7,_0x3fa143);return this[_0x2b0f7f(0x470)](_0x212ec8,_0xcca4a3,_0x3be071,_0x3fef42),_0x212ec8[_0x2b0f7f(0x53e)](),this[_0x2b0f7f(0x1db)](![]),this;}[_0xae170d(0x104)](_0x461fd7){const _0x57bef7=_0xae170d,{left:_0x4bc4bd,top:_0x3ca38d,width:_0x107757,height:_0x55330a}=this[_0x57bef7(0x45b)](),_0x213ede=this[_0x57bef7(0x521)][_0x57bef7(0x22c)](),_0x2401aa=_0x4bc4bd+_0x107757/0x2,_0x2005c2=_0x3ca38d+_0x55330a/0x2,_0x1768f7=new _univerjs_engine_render['Transform']([_0x213ede[0x0],_0x213ede[0x1],_0x213ede[0x2],_0x213ede[0x3],_0x2401aa,_0x2005c2]),_0x486cbd=this['getParent']();return(this[_0x57bef7(0x390)]&&(_0x486cbd===null||_0x486cbd===void 0x0?void 0x0:_0x486cbd[_0x57bef7(0x3be)])===_univerjs_engine_render[_0x57bef7(0x413)][_0x57bef7(0x4f9)]?_0x486cbd['ancestorTransform'][_0x57bef7(0x272)](_0x1768f7):_0x1768f7)[_0x57bef7(0x4f2)]()[_0x57bef7(0x230)](_0x461fd7);}[_0xae170d(0x1ca)](_0x3fec89){const _0x206ec6=_0xae170d,{left:_0x49d48e,top:_0x298d10,width:_0x29fd30,height:_0xa27747}=this[_0x206ec6(0x45b)](),_0x4e7f6b=_0x49d48e+_0x29fd30/0x2,_0x3a0766=_0x298d10+_0xa27747/0x2,_0x140e8a=this[_0x206ec6(0x521)][_0x206ec6(0x22c)](),_0x2dbf19=new _univerjs_engine_render[(_0x206ec6(0x196))]([_0x140e8a[0x0],_0x140e8a[0x1],_0x140e8a[0x2],_0x140e8a[0x3],_0x4e7f6b,_0x3a0766]),_0x5e42b7=this[_0x206ec6(0x1f9)](),_0x59e395=(this[_0x206ec6(0x390)]&&(_0x5e42b7===null||_0x5e42b7===void 0x0?void 0x0:_0x5e42b7['classType'])===_univerjs_engine_render[_0x206ec6(0x413)]['GROUP']?_0x5e42b7[_0x206ec6(0x644)][_0x206ec6(0x272)](_0x2dbf19):_0x2dbf19)['invert']()[_0x206ec6(0x230)](_0x3fec89),_0x3d0d21=_0x29fd30/0x2,_0x2f41b8=_0xa27747/0x2,_0x37f73f=this[_0x206ec6(0x3c3)][_0x206ec6(0x4cc)];if(_0x37f73f&&_0x37f73f[_0x206ec6(0x5cf)]())return _0x37f73f[_0x206ec6(0x517)](_0x59e395['x'],_0x59e395['y'],_0x29fd30,_0xa27747);if(_0x59e395['x']>=-_0x3d0d21-this[_0x206ec6(0x38f)]/0x2&&_0x59e395['x']<=_0x3d0d21+this['strokeWidth']/0x2&&_0x59e395['y']>=-_0x2f41b8-this['strokeWidth']/0x2&&_0x59e395['y']<=_0x2f41b8+this[_0x206ec6(0x38f)]/0x2)return!![];return![];}[_0xae170d(0x178)](){const _0x41e411=_0xae170d;this[_0x41e411(0x3c3)]['shapeModel']=null,super[_0x41e411(0x178)]();}};function __decorateParam(_0x32ac2e,_0x3e6a5b){return function(_0x1c85f3,_0x22b053){_0x3e6a5b(_0x1c85f3,_0x22b053,_0x32ac2e);};}function __decorate(_0x6a0448,_0x537360,_0x41ef55,_0x1b7017){const _0x73b71e=_0xae170d;var _0x4a25ef=arguments['length'],_0x19a510=_0x4a25ef<0x3?_0x537360:_0x1b7017===null?_0x1b7017=Object[_0x73b71e(0x118)](_0x537360,_0x41ef55):_0x1b7017,_0x28d966;if(typeof Reflect===_0x73b71e(0x625)&&typeof Reflect[_0x73b71e(0x366)]===_0x73b71e(0x22f))_0x19a510=Reflect[_0x73b71e(0x366)](_0x6a0448,_0x537360,_0x41ef55,_0x1b7017);else{for(var _0xfe9922=_0x6a0448[_0x73b71e(0x233)]-0x1;_0xfe9922>=0x0;_0xfe9922--)if(_0x28d966=_0x6a0448[_0xfe9922])_0x19a510=(_0x4a25ef<0x3?_0x28d966(_0x19a510):_0x4a25ef>0x3?_0x28d966(_0x537360,_0x41ef55,_0x19a510):_0x28d966(_0x537360,_0x41ef55))||_0x19a510;}return _0x4a25ef>0x3&&_0x19a510&&Object[_0x73b71e(0x2e1)](_0x537360,_0x41ef55,_0x19a510),_0x19a510;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x3873f7,_0x4b7cbc,_0x17da59,_0x49bba0,_0xb0da91){const _0x4281af=_0xae170d;super(),this['_drawingManagerService']=_0x3873f7,this['_sheetsShapeService']=_0x4b7cbc,this[_0x4281af(0x36d)]=_0x17da59,this[_0x4281af(0x2a7)]=_0x49bba0,this['_urlImageService']=_0xb0da91;}[_0xae170d(0x532)](_0xed7a40,_0x1bb89c){const _0x50fff8=_0xae170d,{transform:_0x8c964f,drawingType:_0x29add2,srcRect:_0x4b3699,prstGeom:_0x52df99,groupId:_0x1cd462,unitId:_0x2b32a3,subUnitId:_0x59e303,drawingId:_0x49087e,isMultiTransform:_0x14e37e,transforms:_0xb5766b,hidden:_0x4b03c4}=_0xed7a40;if(_0x29add2!==_univerjs_core[_0x50fff8(0x4c8)][_0x50fff8(0x5f5)])return;if(!this[_0x50fff8(0x5b0)][_0x50fff8(0x287)]())return;if(_0x8c964f==null)return;const _0x58c830=_0x14e37e&&_0xb5766b?_0xb5766b:[_0x8c964f],_0x4e10f7=[];for(const _0x1bdaee of _0x58c830){const {left:_0x46996e,top:_0x3b28ba,width:_0x5946d5,height:_0x4a14a6,angle:_0x238e8b,flipX:_0x32ebbc,flipY:_0x577e30,skewX:_0x3fdad5,skewY:_0x1365da}=_0x1bdaee,_0x273544=_0x58c830[_0x50fff8(0x341)](_0x1bdaee),_0x1ccce9=(0x0,_univerjs_drawing[_0x50fff8(0x401)])({'unitId':_0x2b32a3,'subUnitId':_0x59e303,'drawingId':_0x49087e},_0x14e37e?_0x273544:void 0x0),_0x79865=_0x1bb89c[_0x50fff8(0x299)](_0x1ccce9);if(_0x79865!=null){_0x79865[_0x50fff8(0x1f6)]({'left':_0x46996e,'top':_0x3b28ba,'width':_0x5946d5,'height':_0x4a14a6,'angle':_0x238e8b,'flipX':_0x32ebbc,'flipY':_0x577e30,'skewX':_0x3fdad5,'skewY':_0x1365da});continue;}const _0x1c9c52=this[_0x50fff8(0x5b0)][_0x50fff8(0x4a0)](_0x2b32a3,_0x59e303),_0x41ebf5=_0x1c9c52[_0x50fff8(0x341)](_0x49087e);if(_0x1bb89c[_0x50fff8(0x299)](_0x1ccce9))continue;if(!this[_0x50fff8(0x5b0)][_0x50fff8(0x287)]())continue;const _0x1b5bb5=this[_0x50fff8(0x172)][_0x50fff8(0x258)](_0x2b32a3,_0x59e303,_0x49087e);if(!_0x1b5bb5)continue;const _0x377c89=new DrawingShape(_0x1ccce9,{...(0x0,_univerjs_pro_engine_shape[_0x50fff8(0x468)])(_0x1b5bb5[_0x50fff8(0x2ef)]())?{..._0x1bdaee,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x1bdaee},'zIndex':_0x41ebf5===-0x1?_0x1c9c52['length']-0x1:_0x41ebf5,'shapeModel':_0x1b5bb5,'localeService':this[_0x50fff8(0x36d)],'shapeId':_0x49087e,'unitId':_0x2b32a3,'subUnitId':_0x59e303,'visible':_0x4b03c4!==!![]});_0x1bb89c[_0x50fff8(0x5ea)](_0x377c89,_univerjs_engine_render[_0x50fff8(0x605)]);if(this[_0x50fff8(0x5b0)][_0x50fff8(0x244)]())_0x1bb89c[_0x50fff8(0x628)](_0x377c89);_0x1cd462&&(0x0,_univerjs_drawing_ui[_0x50fff8(0x5b1)])({'drawingId':_0x1cd462,'unitId':_0x2b32a3,'subUnitId':_0x59e303},_0x377c89,_0x1bb89c,this['_drawingManagerService']);if(_0x52df99!=null)_0x377c89[_0x50fff8(0x1c2)](_0x52df99);if(_0x4b3699!=null)_0x377c89[_0x50fff8(0x522)](_0x4b3699);this['_loadShapePictureFill'](_0x377c89,_0x1b5bb5[_0x50fff8(0x411)]()),_0x4e10f7['push'](_0x377c89);}return _0x4e10f7;}['_loadShapePictureFill'](_0x4ae8a2,_0x1d9846){const _0x3b6a0e=_0xae170d;var _0x3ad1be;const _0x97fcd6=_0x1d9846[_0x3b6a0e(0x4cb)];if(!_0x97fcd6||_0x97fcd6[_0x3b6a0e(0x162)]!==_univerjs_pro_engine_shape[_0x3b6a0e(0x2be)]['PictureFill']||!_0x97fcd6[_0x3b6a0e(0x29b)])return;const _0x1c891c=_0x97fcd6[_0x3b6a0e(0x29b)],_0x5e5241=(_0x3ad1be=_0x97fcd6[_0x3b6a0e(0x3ba)])!==null&&_0x3ad1be!==void 0x0?_0x3ad1be:_univerjs_pro_engine_shape['ImageSourceTypeEnum']['URL'],_0x187100=this['_imageIoService']['getImageSourceCache'](_0x1c891c,_0x5e5241);if(_0x187100){_0x4ae8a2[_0x3b6a0e(0x50c)](_0x187100);return;}this[_0x3b6a0e(0x510)](_0x4ae8a2,_0x1c891c,_0x5e5241);}async['_loadAndSetImage'](_0x1957e0,_0x13b4ab,_0x92281a){const _0x5e6277=_0xae170d;let _0x42cffe;try{if(_0x92281a===_univerjs_pro_engine_shape[_0x5e6277(0x505)]['UUID'])_0x42cffe=await this[_0x5e6277(0x2a7)][_0x5e6277(0x4a4)](_0x13b4ab);else{if(_0x92281a===_univerjs_pro_engine_shape[_0x5e6277(0x505)][_0x5e6277(0x44f)])try{_0x42cffe=await this[_0x5e6277(0x659)]['getImage'](_0x13b4ab);}catch{_0x42cffe=_0x13b4ab;}else _0x42cffe=_0x13b4ab;}}catch(_0x267c2b){console[_0x5e6277(0x578)](_0x5e6277(0x374),_0x267c2b);return;}const _0xd5aafa=new window['Image']();_0xd5aafa[_0x5e6277(0x2c8)]=()=>{const _0x48dd44=_0x5e6277;this[_0x48dd44(0x2a7)][_0x48dd44(0x138)](_0x13b4ab,_0x92281a,_0xd5aafa),_0x1957e0['setFillImage'](_0xd5aafa);},_0xd5aafa[_0x5e6277(0x365)]=()=>{const _0x3c6dc0=_0x5e6277;console[_0x3c6dc0(0x578)](_0x3c6dc0(0x23a),_0x13b4ab);},_0xd5aafa['src']=_0x42cffe;}};SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing[_0xae170d(0x231)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_core['LocaleService'])),__decorateParam(0x3,_univerjs_drawing[_0xae170d(0x3f8)]),__decorateParam(0x4,_univerjs_core[_0xae170d(0x36e)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core['Disposable']{constructor(_0x10bddb,_0x2650d0,_0x14bf59,_0xc60bf9,_0x35fb8d,_0x240bbe){const _0x38f4b4=_0xae170d;super(),this[_0x38f4b4(0x1f1)]=_0x10bddb,this['_renderManagerService']=_0x2650d0,this[_0x38f4b4(0x5b0)]=_0x14bf59,this[_0x38f4b4(0x2d8)]=_0xc60bf9,this['_drawingRenderService']=_0x35fb8d,this[_0x38f4b4(0x46a)]=_0x240bbe,this['_initialize']();}[_0xae170d(0x52b)](){const _0x76d974=_0xae170d;this[_0x76d974(0x13a)](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}['_drawingAddListener'](){const _0x17c533=_0xae170d;this[_0x17c533(0x163)](this['_drawingManagerService']['add$'][_0x17c533(0x39a)](_0x8a0127=>{this['_insertShapes'](_0x8a0127);}));}[_0xae170d(0x478)](){const _0x30fb8d=_0xae170d;this['disposeWithMe'](this[_0x30fb8d(0x1f1)][_0x30fb8d(0x3e8)](_0x5bf760=>{const _0x53fd11=_0x30fb8d;if(_0x5bf760['id']===_univerjs_pro_sheets_shape[_0x53fd11(0x32c)]['id']){var _0x4bfc99;const {unitId:_0x537827,subUnitId:_0x541327,shapeId:_0x127ec0}=_0x5bf760[_0x53fd11(0x2ec)],_0x183693=this[_0x53fd11(0x2e6)](_0x537827);if(_0x183693==null)return;const {scene:_0x134dce}=_0x183693,_0x49d5bf=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x537827,'subUnitId':_0x541327,'drawingId':_0x127ec0}),_0x8ad070=_0x134dce[_0x53fd11(0x299)](_0x49d5bf);if(!((_0x4bfc99=this['_renderManagerService']['getRenderById'](_0x537827))===null||_0x4bfc99===void 0x0?void 0x0:_0x4bfc99['with'](_univerjs_sheets_ui[_0x53fd11(0x4da)])[_0x53fd11(0x606)](_0x541327)))return![];if(_0x8ad070)return;this[_0x53fd11(0x51f)]([{'unitId':_0x537827,'subUnitId':_0x541327,'drawingId':_0x127ec0}]);}}));}[_0xae170d(0x491)](){const _0x1ac1ac=_0xae170d;this['disposeWithMe'](this[_0x1ac1ac(0x5b0)][_0x1ac1ac(0x408)][_0x1ac1ac(0x39a)](_0x47b04f=>{const _0x3a0284=_0x1ac1ac;_0x47b04f[_0x3a0284(0x253)](_0x2a9673=>{const _0x4d257d=_0x3a0284,{unitId:_0x3248e4,subUnitId:_0x46d3ae,drawingId:_0x47a8d7}=_0x2a9673,_0x40f5b8=this[_0x4d257d(0x5b0)]['getDrawingByParam'](_0x2a9673);if(_0x40f5b8==null)return;const {transform:_0x5ee55e,drawingType:_0x488d9a,srcRect:_0x5844d4,prstGeom:_0x1dde89}=_0x40f5b8;if(_0x488d9a!==_univerjs_core['DrawingTypeEnum'][_0x4d257d(0x5f5)])return;const _0x4ec1d5=this[_0x4d257d(0x2e6)](_0x3248e4);if(_0x4ec1d5==null)return;const {scene:_0x4e24ef,transformer:_0xb23573}=_0x4ec1d5;if(_0x5ee55e==null)return!![];const _0x1f4647=(0x0,_univerjs_drawing[_0x4d257d(0x401)])({'unitId':_0x3248e4,'subUnitId':_0x46d3ae,'drawingId':_0x47a8d7}),_0x4763bf=_0x4e24ef[_0x4d257d(0x299)](_0x1f4647);if(_0x4763bf==null)return!![];_0x4763bf[_0x4d257d(0x522)](_0x5844d4),_0x4763bf[_0x4d257d(0x1c2)](_0x1dde89);});}));}[_0xae170d(0x36f)](_0x371aca,_0x4b2da4){const _0x564cc1=_0xae170d,{unitId:_0x3c4ace,subUnitId:_0x47c5a9,drawingId:_0x4cefb5}=_0x371aca,_0x4b4473=this[_0x564cc1(0x2e6)](_0x3c4ace);if(_0x4b4473==null)return;const {scene:_0xd62aa8}=_0x4b4473,_0x1674cc=(0x0,_univerjs_drawing[_0x564cc1(0x401)])({'unitId':_0x3c4ace,'subUnitId':_0x47c5a9,'drawingId':_0x4cefb5}),_0x1b69a5=_0xd62aa8['getObjectIncludeInGroup'](_0x1674cc);if(_0x1b69a5==null)return;_0x1b69a5[_0x564cc1(0x50c)](_0x4b2da4);}[_0xae170d(0x51f)](_0x5c0418){const _0x46291d=_0xae170d;_0x5c0418[_0x46291d(0x253)](async _0x35ea7d=>{const _0xa5e2fa=_0x46291d;var _0x1cba97;const {unitId:_0x599b3c,subUnitId:_0x1a8c68}=_0x35ea7d,_0x46b900=this[_0xa5e2fa(0x2e6)](_0x599b3c),_0x107237=(_0x1cba97=(0x0,_univerjs_drawing_ui[_0xa5e2fa(0x1bb)])(this[_0xa5e2fa(0x2d8)],_0x599b3c))===null||_0x1cba97===void 0x0?void 0x0:_0x1cba97['subUnitId'];if(_0x46b900==null||_0x107237!==_0x1a8c68)return;const _0x196447=this[_0xa5e2fa(0x5b0)][_0xa5e2fa(0x5b9)](_0x35ea7d);if(_0x196447==null)return;if(_0x196447[_0xa5e2fa(0x19b)]!==_univerjs_core[_0xa5e2fa(0x4c8)][_0xa5e2fa(0x5f5)])return;if((0x0,_univerjs_pro_engine_shape[_0xa5e2fa(0x468)])((_0x196447[_0xa5e2fa(0x58a)]||{})['shapeType'])){const _0x88f86=_0x196447[_0xa5e2fa(0x521)];if(_0x88f86)_0x196447[_0xa5e2fa(0x521)]={..._0x88f86,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0xa5e2fa(0x5b0)]['refreshTransform']([_0x196447]),this[_0xa5e2fa(0x46a)][_0xa5e2fa(0x532)](_0x196447,_0x46b900[_0xa5e2fa(0x2fc)]);});}[_0xae170d(0x2e6)](_0x42c552){const _0x991cc6=_0xae170d;if(_0x42c552==null)return;const _0x254ab7=this['_renderManagerService'][_0x991cc6(0x145)](_0x42c552),_0x750ce=_0x254ab7===null||_0x254ab7===void 0x0?void 0x0:_0x254ab7[_0x991cc6(0x2fc)];if(_0x750ce==null)return null;return{'scene':_0x750ce,'transformer':_0x750ce[_0x991cc6(0x1cf)]()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0xae170d(0x12a)]),__decorateParam(0x1,_univerjs_engine_render[_0xae170d(0x213)]),__decorateParam(0x2,_univerjs_drawing[_0xae170d(0x231)]),__decorateParam(0x3,_univerjs_core['IUniverInstanceService']),__decorateParam(0x4,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_drawing_ui[_0xae170d(0x4c7)])),__decorateParam(0x5,(0x0,_univerjs_core[_0xae170d(0x3fd)])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x37b0e0){const _0x3abec6=_0xae170d;var _0x59bd44,_0x557ff2,_0x17753e,_0x5a2f66,_0x46d57c,_0x3dc8f7,_0x386e00,_0xaead33,_0x391b48,_0x199be4,_0x3b6f75,_0x38cc60,_0x620f67;const {unitId:_0x253a44,subUnitId:_0x1d3e92,shapeId:_0x2718eb,shapeData:_0x460a13,disableShapeOption:_0x35d109}=_0x37b0e0,_0x560a33=(0x0,_univerjs_ui[_0x3abec6(0x54f)])(_univerjs_core[_0x3abec6(0x14d)]),_0x920d5e=(0x0,_univerjs_ui[_0x3abec6(0x54f)])(_univerjs_core[_0x3abec6(0x12a)]),_0x2797ab=(0x0,_univerjs_ui[_0x3abec6(0x54f)])(_univerjs_core[_0x3abec6(0x4f4)]),_0x47b9c0=(0x0,_univerjs_ui[_0x3abec6(0x54f)])(ShapeUpdateController),_0x5539b5=(0x0,_univerjs_ui[_0x3abec6(0x54f)])(_univerjs_drawing[_0x3abec6(0x3f8)]),_0x3d5ec0=(0x0,react['useRef'])(null),_0x3f1dec=_0x460a13[_0x3abec6(0x4cb)],_0x4470fe=!!(_0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec['fillImageSource']),[_0x236966,_0x306b44]=(0x0,react[_0x3abec6(0x17c)])((_0x59bd44=_0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec[_0x3abec6(0x115)])!==null&&_0x59bd44!==void 0x0?_0x59bd44:0x1),[_0x14123c,_0x1a1069]=(0x0,react[_0x3abec6(0x17c)])((_0x557ff2=_0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec[_0x3abec6(0x5ad)])!==null&&_0x557ff2!==void 0x0?_0x557ff2:_univerjs_pro_engine_shape[_0x3abec6(0x50e)][_0x3abec6(0x10b)]),[_0x1392f9,_0x25c49c]=(0x0,react[_0x3abec6(0x17c)])((_0x17753e=_0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec[_0x3abec6(0x3b8)])!==null&&_0x17753e!==void 0x0?_0x17753e:![]),[_0xc4c2,_0x506f92]=(0x0,react[_0x3abec6(0x17c)])((_0x5a2f66=_0x3f1dec===null||_0x3f1dec===void 0x0||(_0x46d57c=_0x3f1dec[_0x3abec6(0x218)])===null||_0x46d57c===void 0x0?void 0x0:_0x46d57c[_0x3abec6(0x364)])!==null&&_0x5a2f66!==void 0x0?_0x5a2f66:0x0),[_0x5afc88,_0x312ae4]=(0x0,react['useState'])((_0x3dc8f7=_0x3f1dec===null||_0x3f1dec===void 0x0||(_0x386e00=_0x3f1dec[_0x3abec6(0x218)])===null||_0x386e00===void 0x0?void 0x0:_0x386e00[_0x3abec6(0x531)])!==null&&_0x3dc8f7!==void 0x0?_0x3dc8f7:0x0),[_0xe9fde5,_0x1455e3]=(0x0,react['useState'])((_0xaead33=_0x3f1dec===null||_0x3f1dec===void 0x0||(_0x391b48=_0x3f1dec[_0x3abec6(0x218)])===null||_0x391b48===void 0x0?void 0x0:_0x391b48[_0x3abec6(0x2a3)])!==null&&_0xaead33!==void 0x0?_0xaead33:0x1),[_0xc2fcc2,_0xc0a03a]=(0x0,react[_0x3abec6(0x17c)])((_0x199be4=_0x3f1dec===null||_0x3f1dec===void 0x0||(_0x3b6f75=_0x3f1dec[_0x3abec6(0x218)])===null||_0x3b6f75===void 0x0?void 0x0:_0x3b6f75[_0x3abec6(0x1e2)])!==null&&_0x199be4!==void 0x0?_0x199be4:0x1),[_0x43d0a6,_0x275ec4]=(0x0,react[_0x3abec6(0x17c)])((_0x38cc60=_0x3f1dec===null||_0x3f1dec===void 0x0||(_0x620f67=_0x3f1dec[_0x3abec6(0x218)])===null||_0x620f67===void 0x0?void 0x0:_0x620f67['alignment'])!==null&&_0x38cc60!==void 0x0?_0x38cc60:'tl'),_0x5ecdab=_0x14123c===_univerjs_pro_engine_shape[_0x3abec6(0x50e)][_0x3abec6(0x2de)],_0x54952f=Math[_0x3abec6(0x399)]((0x1-_0x236966)*0x64),_0x514ab0=Math[_0x3abec6(0x399)](_0xe9fde5*0x64),_0x46f448=Math[_0x3abec6(0x399)](_0xc2fcc2*0x64),_0x10cfcd=_0x33447b=>_0x560a33['t'](_0x33447b),_0x3a7f3f=[{'label':_0x10cfcd('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x10cfcd('sheets-shape.fill.picture.align.t'),'value':'t'},{'label':_0x10cfcd(_0x3abec6(0x46f)),'value':'tr'},{'label':_0x10cfcd(_0x3abec6(0x1e1)),'value':'l'},{'label':_0x10cfcd('sheets-shape.fill.picture.align.ctr'),'value':_0x3abec6(0x179)},{'label':_0x10cfcd(_0x3abec6(0x20c)),'value':'r'},{'label':_0x10cfcd(_0x3abec6(0x121)),'value':'bl'},{'label':_0x10cfcd(_0x3abec6(0x5e6)),'value':'b'},{'label':_0x10cfcd(_0x3abec6(0x3eb)),'value':'br'}],_0x4bdbbb=_0x4f79b8=>{updateShapeData(_0x920d5e,_0x253a44,_0x1d3e92,_0x2718eb,{'oldShapeData':{'fill':_0x3f1dec?{..._0x3f1dec}:void 0x0}},{'fill':{..._0x3f1dec,..._0x4f79b8}});},_0x465d6a=_0x4c45a4=>{const _0x72eff6=_0x3abec6;_0x4bdbbb({'imageTile':{..._0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec[_0x72eff6(0x218)],..._0x4c45a4}});},_0x2a2977=()=>{const _0x348a48=_0x3abec6;var _0x13b62b;return(_0x13b62b=_0x3d5ec0[_0x348a48(0x2d2)])===null||_0x13b62b===void 0x0?void 0x0:_0x13b62b[_0x348a48(0x2b8)]();},_0x32adaf=async _0x85749f=>{const _0x21504e=_0x3abec6;var _0x4b3128;const _0xff099f=(_0x4b3128=_0x85749f[_0x21504e(0x415)][_0x21504e(0x185)])===null||_0x4b3128===void 0x0?void 0x0:_0x4b3128[0x0];if(!_0xff099f)return;_0x85749f[_0x21504e(0x415)][_0x21504e(0x55e)]='';const _0xd969b=await _0x5539b5[_0x21504e(0x5bd)](_0xff099f);if(_0xd969b==null)return;const {imageSourceType:_0x5c960b,source:_0x7860b4,base64Cache:_0x4471d6}=_0xd969b,{image:_0x18a01d}=await(0x0,_univerjs_drawing['getImageSize'])(_0x4471d6||'');_0x5539b5[_0x21504e(0x138)](_0x7860b4,_0x5c960b,_0x18a01d),updateShapeData(_0x920d5e,_0x253a44,_0x1d3e92,_0x2718eb,{'oldShapeData':{'fill':_0x3f1dec?{..._0x3f1dec}:void 0x0}},{'fill':{..._0x3f1dec,'fillType':_univerjs_pro_engine_shape[_0x21504e(0x2be)][_0x21504e(0x585)],'fillImageSource':_0x7860b4,'fillImageSourceType':_0x5c960b}}),_0x47b9c0[_0x21504e(0x36f)]({'unitId':_0x253a44,'subUnitId':_0x1d3e92,'drawingId':_0x2718eb},_0x18a01d);},_0xaad88e=_0x3abec6(0x10d),_0x5334ef=_0x3abec6(0x4d2);return(0x0,react_jsx_runtime['jsxs'])(_0x3abec6(0x405),{'className':_0x3abec6(0x544),'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x3abec6(0x511),'children':[(0x0,react_jsx_runtime['jsx'])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x2a5))}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x3abec6(0x43c),'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x462),{'ref':_0x3d5ec0,'type':_0x3abec6(0x1fc),'accept':_0x3abec6(0x554),'className':_0x3abec6(0x49c),'onChange':_0x32adaf}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x3abec6(0x4ff),'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x570),{'type':_0x3abec6(0x570),'disabled':_0x35d109,'className':_0x3abec6(0x131),'onClick':_0x2a2977,'children':(0x0,react_jsx_runtime[_0x3abec6(0x44a)])('span',{'children':[_0x10cfcd('sheets-shape.fill.picture.insert'),'\x20']})}),_0x4470fe&&(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':_0x3abec6(0x516),'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x609),{'src':_0x3f1dec===null||_0x3f1dec===void 0x0?void 0x0:_0x3f1dec['fillImageSource'],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x2aa))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':_0x3abec6(0x2f5),'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design[_0x3abec6(0x17e)],{'className':'univer-w-full','value':_0x54952f,'disabled':_0x35d109,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x4ae22f=>_0x4ae22f+'%','parser':_0x1774cb=>(_0x1774cb===null||_0x1774cb===void 0x0?void 0x0:_0x1774cb[_0x3abec6(0x313)]('%',''))||'','onChange':_0x5206c0=>{const _0x3725bc=_0x3abec6,_0x59bd0b=(0x64-Math['max'](0x0,Math['min'](0x64,_0x5206c0!==null&&_0x5206c0!==void 0x0?_0x5206c0:0x0)))/0x64;_0x306b44(_0x59bd0b),_0x4bdbbb({'imageOpacity':_0x59bd0b}),_0x2797ab[_0x3725bc(0x1d9)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],![])})})]}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design[_0x3abec6(0x5d0)],{'checked':_0x5ecdab,'disabled':_0x35d109,'onChange':_0x6e1e28=>{const _0x15932b=_0x3abec6,_0x2104af=_0x6e1e28?_univerjs_pro_engine_shape[_0x15932b(0x50e)][_0x15932b(0x2de)]:_univerjs_pro_engine_shape[_0x15932b(0x50e)][_0x15932b(0x10b)];_0x1a1069(_0x2104af),_0x4bdbbb({'imageFillMode':_0x2104af});},'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])('span',{'className':'univer-text-sm','children':_0x10cfcd('sheets-shape.fill.picture.tileAsTexture')})}),_0x5ecdab&&(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x3abec6(0x3b9),'children':[(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x354))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design[_0x3abec6(0x17e)],{'className':_0x3abec6(0x210),'value':_0xc4c2,'disabled':_0x35d109,'step':0x1,'onChange':_0x23490=>{_0x465d6a({'offsetX':_0x23490!==null&&_0x23490!==void 0x0?_0x23490:0x0}),_0x506f92(_0x23490!==null&&_0x23490!==void 0x0?_0x23490:0x0);},'onFocus':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],![])})})]}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x626))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])('div',{'className':_0x3abec6(0x2f5),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x3abec6(0x17e)],{'className':'univer-w-full','value':_0x5afc88,'disabled':_0x35d109,'step':0x1,'onChange':_0x89abb=>{_0x465d6a({'offsetY':_0x89abb!==null&&_0x89abb!==void 0x0?_0x89abb:0x0}),_0x312ae4(_0x89abb!==null&&_0x89abb!==void 0x0?_0x89abb:0x0);},'onFocus':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],!![]),'onBlur':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],![])})})]}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x38b))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':_0x3abec6(0x2f5),'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design['InputNumber'],{'className':_0x3abec6(0x210),'value':_0x514ab0,'disabled':_0x35d109,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x2dc1a0=>_0x2dc1a0+'%','parser':_0xda4de6=>(_0xda4de6===null||_0xda4de6===void 0x0?void 0x0:_0xda4de6['replace']('%',''))||'','onChange':_0x3ad1f3=>{const _0xc16344=_0x3abec6,_0x43f7f2=Math[_0xc16344(0x453)](0.01,(_0x3ad1f3!==null&&_0x3ad1f3!==void 0x0?_0x3ad1f3:0x64)/0x64);_0x1455e3(_0x43f7f2),_0x465d6a({'scaleX':_0x43f7f2}),_0x2797ab['setContextValue'](_univerjs_core[_0xc16344(0x430)],![]);},'onFocus':()=>_0x2797ab['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],!![]),'onBlur':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],![])})})]}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])(_0x3abec6(0x405),{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime['jsx'])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x35c))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':_0x3abec6(0x2f5),'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design[_0x3abec6(0x17e)],{'className':'univer-w-full','value':_0x46f448,'disabled':_0x35d109,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x199d34=>_0x199d34+'%','parser':_0x2d220e=>(_0x2d220e===null||_0x2d220e===void 0x0?void 0x0:_0x2d220e['replace']('%',''))||'','onChange':_0xd9bd16=>{const _0x48bead=_0x3abec6,_0x343665=Math[_0x48bead(0x453)](0.01,(_0xd9bd16!==null&&_0xd9bd16!==void 0x0?_0xd9bd16:0x64)/0x64);_0xc0a03a(_0x343665),_0x465d6a({'scaleY':_0x343665}),_0x2797ab[_0x48bead(0x1d9)](_univerjs_core[_0x48bead(0x430)],![]);},'onFocus':()=>_0x2797ab['setContextValue'](_univerjs_core[_0x3abec6(0x430)],!![]),'onBlur':()=>_0x2797ab[_0x3abec6(0x1d9)](_univerjs_core[_0x3abec6(0x430)],![])})})]}),(0x0,react_jsx_runtime[_0x3abec6(0x44a)])('div',{'className':_0x5334ef,'children':[(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0xaad88e,'children':_0x10cfcd(_0x3abec6(0x49f))}),(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x405),{'className':_0x3abec6(0x4ee),'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_univerjs_design[_0x3abec6(0x22e)],{'className':_0x3abec6(0x210),'value':_0x43d0a6,'options':_0x3a7f3f,'disabled':_0x35d109,'onChange':_0x37d5f5=>{_0x275ec4(_0x37d5f5),_0x465d6a({'alignment':_0x37d5f5});}})})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x3abec6(0x5d0)],{'checked':_0x1392f9,'disabled':_0x35d109,'onChange':_0x1481e1=>{_0x25c49c(_0x1481e1),_0x4bdbbb({'imageRotateWithShape':_0x1481e1});},'children':(0x0,react_jsx_runtime[_0x3abec6(0x499)])(_0x3abec6(0x286),{'className':_0x3abec6(0x506),'children':_0x10cfcd(_0x3abec6(0x214))})})]});}function ShapeFillEditor(_0x59fbfe){const _0x43691c=_0xae170d;var _0x25ec7b,_0x39bc32,_0x52f716;const _0x4d721e=(0x0,_univerjs_ui[_0x43691c(0x54f)])(_univerjs_core[_0x43691c(0x14d)]),_0x585e81=(0x0,_univerjs_ui[_0x43691c(0x54f)])(_univerjs_core[_0x43691c(0x12a)]),_0x18d71d=(0x0,_univerjs_ui[_0x43691c(0x54f)])(_univerjs_core['IContextService']),{shapeData:_0x203887,isLineShape:_0x46229c,unitId:_0x316fb0,subUnitId:_0x32aa57,shapeId:_0x1b7832,disableShapeOption:_0x3b3bdf}=_0x59fbfe,[_0x31f2ab,_0x1c3db2]=(0x0,react['useState'])(((_0x25ec7b=_0x203887['fill'])===null||_0x25ec7b===void 0x0?void 0x0:_0x25ec7b[_0x43691c(0x162)])||_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x36c)]),[_0x51b82f,_0xc5e818]=(0x0,react[_0x43691c(0x17c)])(((_0x39bc32=_0x203887[_0x43691c(0x4cb)])===null||_0x39bc32===void 0x0?void 0x0:_0x39bc32[_0x43691c(0x1bc)])||_univerjs_pro_engine_shape[_0x43691c(0x2ee)][_0x43691c(0x4cb)]),[_0x687f0a,_0x2b6370]=(0x0,react[_0x43691c(0x17c)])(((_0x52f716=_0x203887[_0x43691c(0x4cb)])===null||_0x52f716===void 0x0?void 0x0:_0x52f716[_0x43691c(0x35f)])||0x1),[_0x57d0ae,_0x75b9ea]=(0x0,react[_0x43691c(0x17c)])(![]);if(_0x46229c)return null;const _0x24f2c3=0x64-_0x687f0a*0x64;return(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x43691c(0x268),'children':[(0x0,react_jsx_runtime[_0x43691c(0x44a)])(_univerjs_design[_0x43691c(0x602)],{'value':_0x31f2ab,'disabled':_0x3b3bdf,'onChange':_0x1accfb=>{const _0x352d8c=_0x43691c;var _0x472d6f;updateShapeData(_0x585e81,_0x316fb0,_0x32aa57,_0x1b7832,{'oldShapeData':{'fill':{'fillType':(_0x472d6f=_0x203887['fill'])===null||_0x472d6f===void 0x0?void 0x0:_0x472d6f[_0x352d8c(0x162)]}}},{'fill':{'fillType':_0x1accfb}}),_0x1c3db2(_0x1accfb);},'direction':'vertical','children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x450)],'children':(0x0,react_jsx_runtime[_0x43691c(0x499)])('span',{'className':_0x43691c(0x506),'children':_0x4d721e['t']('sheets-shape.fill.noFill')})}),(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_design[_0x43691c(0x186)],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x43691c(0x36c)],'children':(0x0,react_jsx_runtime[_0x43691c(0x499)])('span',{'className':_0x43691c(0x506),'children':_0x4d721e['t'](_0x43691c(0x380))})}),(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_design[_0x43691c(0x186)],{'value':_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x1a6)],'children':(0x0,react_jsx_runtime['jsx'])(_0x43691c(0x286),{'className':_0x43691c(0x506),'children':_0x4d721e['t']('sheets-shape.fill.gradientFill')})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x43691c(0x186)],{'value':_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x585)],'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':'univer-text-sm','children':_0x4d721e['t'](_0x43691c(0x259))})})]}),_0x31f2ab===_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x36c)]&&(0x0,react_jsx_runtime[_0x43691c(0x44a)])(_0x43691c(0x405),{'className':_0x43691c(0x195),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x43691c(0x405),{'className':_0x43691c(0x595),'children':[(0x0,react_jsx_runtime[_0x43691c(0x499)])('span',{'className':_0x43691c(0x16a),'children':_0x4d721e['t'](_0x43691c(0x607))}),(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_design[_0x43691c(0x245)],{'disabled':_0x3b3bdf,'overlay':(0x0,react_jsx_runtime[_0x43691c(0x499)])('div',{'className':_0x43691c(0x200),'children':(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_design[_0x43691c(0x33d)],{'value':_0x51b82f,'onChange':_0x3d4c8c=>{const _0xa509d4=_0x43691c;var _0x5c79fa;updateShapeData(_0x585e81,_0x316fb0,_0x32aa57,_0x1b7832,{'oldShapeData':{'fill':{'color':(_0x5c79fa=_0x203887[_0xa509d4(0x4cb)])===null||_0x5c79fa===void 0x0?void 0x0:_0x5c79fa[_0xa509d4(0x1bc)]}}},{'fill':{'color':_0x3d4c8c}}),_0xc5e818(_0x3d4c8c),_0x75b9ea(![]);}})}),'open':_0x57d0ae,'onOpenChange':_0x75b9ea,'children':(0x0,react_jsx_runtime[_0x43691c(0x44a)])('a',{'className':_0x43691c(0x5dd),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x43691c(0x4f7)],{'className':'univer-text-xl\x20univer-text-gray-500','extend':{'colorChannel1':_0x51b82f}}),(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_icons[_0x43691c(0x441)],{'className':(0x0,_univerjs_design[_0x43691c(0x464)])(_0x43691c(0x51e),{'univer-rotate-180':_0x57d0ae})})]})})]}),(0x0,react_jsx_runtime[_0x43691c(0x44a)])('div',{'className':_0x43691c(0x4d2),'children':[(0x0,react_jsx_runtime[_0x43691c(0x499)])(_0x43691c(0x286),{'className':'univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4d721e['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x43691c(0x2f5),'children':(0x0,react_jsx_runtime[_0x43691c(0x499)])(_univerjs_design[_0x43691c(0x17e)],{'className':_0x43691c(0x210),'value':_0x24f2c3,'disabled':_0x3b3bdf,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x38a82d=>_0x38a82d+'%','parser':_0x4425d7=>(_0x4425d7===null||_0x4425d7===void 0x0?void 0x0:_0x4425d7['replace']('%',''))||'','onChange':_0x203a5f=>{const _0x428b7f=_0x43691c,_0xfbd070=(0x64-Math[_0x428b7f(0x453)](0x0,Math[_0x428b7f(0x1dd)](0x64,_0x203a5f!==null&&_0x203a5f!==void 0x0?_0x203a5f:0x0)))/0x64;_0x2b6370(_0xfbd070),updateShapeData(_0x585e81,_0x316fb0,_0x32aa57,_0x1b7832,{'oldShapeData':{'fill':{..._0x203887['fill'],'fillType':_0x31f2ab}}},{'fill':{..._0x203887['fill'],'fillType':_0x31f2ab,'opacity':_0xfbd070}}),_0x18d71d['setContextValue'](_univerjs_core[_0x428b7f(0x430)],![]);},'onFocus':()=>_0x18d71d[_0x43691c(0x1d9)](_univerjs_core[_0x43691c(0x430)],!![]),'onBlur':()=>{_0x18d71d['setContextValue'](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})})]})]}),_0x31f2ab===_univerjs_pro_engine_shape[_0x43691c(0x2be)]['GradientFill']&&(0x0,react_jsx_runtime[_0x43691c(0x499)])(GradientFillEditor,{'shapeData':_0x203887,'disableShapeOption':_0x3b3bdf,'onUpdate':_0x7f54eb=>{const _0x2bdc9b=_0x43691c;updateShapeData(_0x585e81,_0x316fb0,_0x32aa57,_0x1b7832,{'oldShapeData':{'fill':{..._0x203887[_0x2bdc9b(0x4cb)]}}},{'fill':{..._0x203887[_0x2bdc9b(0x4cb)],..._0x7f54eb}});}}),_0x31f2ab===_univerjs_pro_engine_shape[_0x43691c(0x2be)][_0x43691c(0x585)]&&(0x0,react_jsx_runtime[_0x43691c(0x499)])(ShapeImageFillEditor,{'unitId':_0x316fb0,'subUnitId':_0x32aa57,'shapeId':_0x1b7832,'shapeData':_0x203887,'disableShapeOption':_0x3b3bdf})]});}function shapeGradientTypeToPickerType(_0x45c79a){const _0x257e5f=_0xae170d;switch(_0x45c79a){case _univerjs_pro_engine_shape[_0x257e5f(0x3f3)][_0x257e5f(0x223)]:return'linear';case _univerjs_pro_engine_shape[_0x257e5f(0x3f3)]['Radial']:return _0x257e5f(0x11b);case _univerjs_pro_engine_shape[_0x257e5f(0x3f3)][_0x257e5f(0x471)]:return _0x257e5f(0x3a4);case _univerjs_pro_engine_shape[_0x257e5f(0x3f3)][_0x257e5f(0x1d8)]:return _0x257e5f(0x2bc);default:return _0x257e5f(0x3e4);}}function pickerTypeToShapeGradientType(_0x1761eb){const _0x1bf862=_0xae170d;switch(_0x1761eb){case _0x1bf862(0x3e4):return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x1bf862(0x223)];case _0x1bf862(0x11b):return _univerjs_pro_engine_shape[_0x1bf862(0x3f3)][_0x1bf862(0x391)];case _0x1bf862(0x3a4):return _univerjs_pro_engine_shape[_0x1bf862(0x3f3)]['Angular'];case _0x1bf862(0x2bc):return _univerjs_pro_engine_shape[_0x1bf862(0x3f3)][_0x1bf862(0x1d8)];default:return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'][_0x1bf862(0x223)];}}function GradientFillEditor(_0x42f754){const _0x56030c=_0xae170d,{shapeData:_0x13fe26,disableShapeOption:_0xf2422,onUpdate:_0x3af8e9}=_0x42f754,_0x5b4797=(0x0,react[_0x56030c(0x5c1)])(()=>{const _0x285506=_0x56030c;var _0x287cd5;const _0x4b8226=_0x13fe26['fill'];return{'type':shapeGradientTypeToPickerType(_0x4b8226===null||_0x4b8226===void 0x0?void 0x0:_0x4b8226[_0x285506(0x540)]),'angle':(_0x287cd5=_0x4b8226===null||_0x4b8226===void 0x0?void 0x0:_0x4b8226[_0x285506(0x564)])!==null&&_0x287cd5!==void 0x0?_0x287cd5:0x5a,'stops':(_0x4b8226===null||_0x4b8226===void 0x0?void 0x0:_0x4b8226[_0x285506(0x1ae)])&&_0x4b8226[_0x285506(0x1ae)][_0x285506(0x233)]>=0x2?_0x4b8226[_0x285506(0x1ae)][_0x285506(0x553)](_0x2d92d1=>({'color':_0x2d92d1['color'],'offset':_0x2d92d1[_0x285506(0x3d6)]*0x64})):[{'color':(_0x4b8226===null||_0x4b8226===void 0x0?void 0x0:_0x4b8226['color'])||_0x285506(0x31a),'offset':0x0},{'color':_0x285506(0x17b),'offset':0x64}]};},[_0x13fe26[_0x56030c(0x4cb)]]),_0xa67932=_0xe9ff6a=>{const _0x250226=_0x56030c,_0x5a8a8b=pickerTypeToShapeGradientType(_0xe9ff6a['type']),_0x180e44=_0xe9ff6a['angle'];_0x3af8e9({'gradientType':_0x5a8a8b,'gradientAngle':_0x180e44,'gradientStops':_0xe9ff6a[_0x250226(0x32a)][_0x250226(0x553)](_0x588056=>({'color':_0x588056[_0x250226(0x1bc)],'position':_0x588056[_0x250226(0x357)]/0x64}))});};return(0x0,react_jsx_runtime[_0x56030c(0x499)])('div',{'className':'univer-pt-2','children':(0x0,react_jsx_runtime[_0x56030c(0x499)])(_univerjs_design[_0x56030c(0x4dd)],{'value':_0x5b4797,'onChange':_0xa67932})});}function ShapeLineEditor(_0x34ebd8){const _0x28f502=_0xae170d;var _0x375baa,_0x427ea6,_0x307ee5,_0x3de5a0,_0x46baa5,_0x265559,_0x559d88,_0x256fe2,_0x19b7cf,_0x22bcd5,_0x2ba683,_0x1ac4b2,_0x574acf,_0x276966,_0x109ea4,_0xdc490b;const _0x5498a0=(0x0,_univerjs_ui[_0x28f502(0x54f)])(_univerjs_core[_0x28f502(0x14d)]),_0x13b890=(0x0,_univerjs_ui[_0x28f502(0x54f)])(_univerjs_core[_0x28f502(0x12a)]),_0x38da46=(0x0,_univerjs_ui[_0x28f502(0x54f)])(_univerjs_core[_0x28f502(0x4f4)]),{shapeData:_0x22451b,isLineShape:_0xaff66,unitId:_0xcdaf7d,subUnitId:_0x5b65eb,shapeId:_0x241af8,disableShapeOption:_0x34352c}=_0x34ebd8,_0x2cb21f=_0x22451b[_0x28f502(0x5d7)],[_0x1b3f3e,_0x3eed83]=(0x0,react[_0x28f502(0x17c)])((_0x375baa=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x39c)])!==null&&_0x375baa!==void 0x0?_0x375baa:_univerjs_pro_engine_shape[_0x28f502(0x3d2)]['SolidLine']),[_0x2f9af5,_0x39d6ac]=(0x0,react[_0x28f502(0x17c)])((_0x427ea6=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x1bc)])!==null&&_0x427ea6!==void 0x0?_0x427ea6:_univerjs_pro_engine_shape[_0x28f502(0x2ee)]['stroke']),[_0x5e53e5,_0x3d3dc2]=(0x0,react[_0x28f502(0x17c)])((_0x307ee5=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x35f)])!==null&&_0x307ee5!==void 0x0?_0x307ee5:0x1),[_0x2233b9,_0x2e13ab]=(0x0,react['useState'])((_0x3de5a0=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x62b)])!==null&&_0x3de5a0!==void 0x0?_0x3de5a0:_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x28f502(0x38f)]),[_0x41eb05,_0x2ef2c9]=(0x0,react['useState'])((_0x46baa5=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x2a1)])!==null&&_0x46baa5!==void 0x0?_0x46baa5:_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x28f502(0x50d)]),[_0x38d999,_0xa7f87a]=(0x0,react[_0x28f502(0x17c)])((_0x265559=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x168)])!==null&&_0x265559!==void 0x0?_0x265559:_univerjs_pro_engine_shape[_0x28f502(0x508)][_0x28f502(0x389)]),[_0x141edd,_0x233fe7]=(0x0,react[_0x28f502(0x17c)])((_0x559d88=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x5f4)])!==null&&_0x559d88!==void 0x0?_0x559d88:_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x28f502(0x35a)]),[_0x19ccc0,_0x17a215]=(0x0,react[_0x28f502(0x17c)])((_0x256fe2=_0x2cb21f===null||_0x2cb21f===void 0x0?void 0x0:_0x2cb21f[_0x28f502(0x40b)])!==null&&_0x256fe2!==void 0x0?_0x256fe2:_univerjs_pro_engine_shape[_0x28f502(0x2b3)]['None']),_0xb23253=_0x22451b,[_0x380b72,_0x45b730]=(0x0,react[_0x28f502(0x17c)])((_0x19b7cf=(_0x22bcd5=_0xb23253['ln'])===null||_0x22bcd5===void 0x0||(_0x22bcd5=_0x22bcd5[_0x28f502(0x33a)])===null||_0x22bcd5===void 0x0?void 0x0:_0x22bcd5[_0x28f502(0x42d)])!==null&&_0x19b7cf!==void 0x0?_0x19b7cf:_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x5f3)]),[_0x2b0ae1,_0x453fb1]=(0x0,react['useState'])((_0x2ba683=(_0x1ac4b2=_0xb23253['ln'])===null||_0x1ac4b2===void 0x0||(_0x1ac4b2=_0x1ac4b2['startArrow'])===null||_0x1ac4b2===void 0x0?void 0x0:_0x1ac4b2[_0x28f502(0x1b1)])!==null&&_0x2ba683!==void 0x0?_0x2ba683:_univerjs_pro_engine_shape[_0x28f502(0x32f)][_0x28f502(0x633)]),[_0x4f3a01,_0xf72e91]=(0x0,react[_0x28f502(0x17c)])((_0x574acf=(_0x276966=_0xb23253['ln'])===null||_0x276966===void 0x0||(_0x276966=_0x276966[_0x28f502(0x26f)])===null||_0x276966===void 0x0?void 0x0:_0x276966[_0x28f502(0x42d)])!==null&&_0x574acf!==void 0x0?_0x574acf:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x28f502(0x5f3)]),[_0x78ea75,_0x443546]=(0x0,react[_0x28f502(0x17c)])((_0x109ea4=(_0xdc490b=_0xb23253['ln'])===null||_0xdc490b===void 0x0||(_0xdc490b=_0xdc490b[_0x28f502(0x26f)])===null||_0xdc490b===void 0x0?void 0x0:_0xdc490b[_0x28f502(0x1b1)])!==null&&_0x109ea4!==void 0x0?_0x109ea4:_univerjs_pro_engine_shape[_0x28f502(0x32f)][_0x28f502(0x633)]),[_0x1c34d5,_0x2851d0]=(0x0,react[_0x28f502(0x17c)])(![]),_0x2f7881=0x64-_0x5e53e5*0x64,_0x21b511=[{'label':_0x5498a0['t'](_0x28f502(0x51d)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x28f502(0x50d)])},{'label':_0x5498a0['t'](_0x28f502(0x126)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)][_0x28f502(0x3f7)])},{'label':_0x5498a0['t'](_0x28f502(0x264)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)][_0x28f502(0x31e)])},{'label':_0x5498a0['t'](_0x28f502(0x629)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)][_0x28f502(0x630)])},{'label':_0x5498a0['t'](_0x28f502(0x3da)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)][_0x28f502(0xfc)])},{'label':_0x5498a0['t'](_0x28f502(0x18e)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)][_0x28f502(0x3e7)])},{'label':_0x5498a0['t'](_0x28f502(0x463)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum']['LongDashDot'])},{'label':_0x5498a0['t'](_0x28f502(0x620)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47b)]['LongDashDotDot'])}],_0x653375=[{'label':_0x5498a0['t']('sheets-shape.line.capType.flat'),'value':String(_univerjs_pro_engine_shape['ShapeLineCapEnum']['Flat'])},{'label':_0x5498a0['t'](_0x28f502(0x459)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x508)][_0x28f502(0x23f)])},{'label':_0x5498a0['t'](_0x28f502(0x3f1)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x508)][_0x28f502(0x2eb)])}],_0x5433bc=[{'label':_0x5498a0['t'](_0x28f502(0x1f4)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x2b3)][_0x28f502(0x5f3)])},{'label':_0x5498a0['t'](_0x28f502(0x2b0)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x2b3)][_0x28f502(0x13b)])},{'label':_0x5498a0['t'](_0x28f502(0x1c8)),'value':String(_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x28f502(0x5a1)])},{'label':_0x5498a0['t'](_0x28f502(0x4e9)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x2b3)][_0x28f502(0x46b)])}],_0x11fabc=[{'label':_0x5498a0['t'](_0x28f502(0x4ae)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x28f502(0x35a)])},{'label':_0x5498a0['t'](_0x28f502(0x294)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47e)][_0x28f502(0x23f)])},{'label':_0x5498a0['t']('sheets-shape.line.joinType.bevel'),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x47e)]['Bevel'])}],_0x5e1284=[{'label':_0x5498a0['t'](_0x28f502(0x372)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x5f3)])},{'label':_0x5498a0['t']('sheets-shape.line.arrowType.arrow'),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0xf2)])},{'label':_0x5498a0['t'](_0x28f502(0x61a)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x5ee)])},{'label':_0x5498a0['t'](_0x28f502(0x21d)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x2ab)])},{'label':_0x5498a0['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x653)])},{'label':_0x5498a0['t']('sheets-shape.line.arrowType.ovalArrow'),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x4e0)][_0x28f502(0x3d0)])}],_0x300139=[{'label':_0x5498a0['t'](_0x28f502(0x375)),'value':String(_univerjs_pro_engine_shape[_0x28f502(0x32f)][_0x28f502(0x3fb)])},{'label':_0x5498a0['t'](_0x28f502(0x1ec)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x28f502(0x633)])},{'label':_0x5498a0['t'](_0x28f502(0x650)),'value':String(_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x28f502(0x28d)])}];return(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':_0x28f502(0x268),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x28f502(0x602)],{'value':String(_0x1b3f3e),'disabled':_0x34352c,'onChange':_0x168ce7=>{const _0x1ab8c9=_0x28f502;var _0x57147f;_0x3eed83(Number(_0x168ce7)),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x57147f=_0x22451b['stroke'])===null||_0x57147f===void 0x0?void 0x0:_0x57147f[_0x1ab8c9(0x39c)]}}},{'stroke':{'lineStrokeType':Number(_0x168ce7)}});},'direction':'vertical','children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x186)],{'value':String(_univerjs_pro_engine_shape['ShapeLineTypeEnum'][_0x28f502(0x416)]),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':'univer-text-sm','children':_0x5498a0['t'](_0x28f502(0x634))})}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x186)],{'value':String(_univerjs_pro_engine_shape[_0x28f502(0x3d2)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x506),'children':_0x5498a0['t'](_0x28f502(0x52c))})})]}),_0x1b3f3e!==_univerjs_pro_engine_shape['ShapeLineTypeEnum'][_0x28f502(0x416)]&&(0x0,react_jsx_runtime['jsxs'])(_0x28f502(0x405),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x5aa))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x245)],{'disabled':_0x34352c,'overlay':(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x405),{'className':_0x28f502(0x200),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x33d)],{'value':_0x2f9af5,'onChange':_0x523a9c=>{const _0x4e03c7=_0x28f502;var _0x587dc6;updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'color':(_0x587dc6=_0x22451b[_0x4e03c7(0x5d7)])===null||_0x587dc6===void 0x0?void 0x0:_0x587dc6['color']}}},{'stroke':{'color':_0x523a9c}}),_0x39d6ac(_0x523a9c),_0x2851d0(![]);}})}),'open':_0x1c34d5,'onOpenChange':_0x2851d0,'children':(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0x28f502(0x5dd),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x28f502(0x573),'extend':{'colorChannel1':_0x2f9af5}}),(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x28f502(0x441)],{'className':(0x0,_univerjs_design[_0x28f502(0x464)])(_0x28f502(0x51e),{'univer-rotate-180':_0x1c34d5})})]})})]}),(0x0,react_jsx_runtime[_0x28f502(0x44a)])('div',{'className':_0x28f502(0x4d2),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x10d),'children':_0x5498a0['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4d2),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x17e)],{'className':_0x28f502(0x210),'value':_0x2f7881,'disabled':_0x34352c,'min':0x0,'max':0x64,'formatter':_0x57fec5=>_0x57fec5+'%','parser':_0x5aa1bd=>(_0x5aa1bd===null||_0x5aa1bd===void 0x0?void 0x0:_0x5aa1bd[_0x28f502(0x313)]('%',''))||'','onChange':_0x2bb475=>{const _0x24b342=_0x28f502;var _0x18723c;const _0x3386af=(0x64-Math[_0x24b342(0x453)](0x0,Math[_0x24b342(0x1dd)](0x64,_0x2bb475!==null&&_0x2bb475!==void 0x0?_0x2bb475:0x0)))/0x64;_0x3d3dc2(_0x3386af),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'opacity':(_0x18723c=_0x22451b[_0x24b342(0x5d7)])===null||_0x18723c===void 0x0?void 0x0:_0x18723c['opacity']}}},{'stroke':{'opacity':_0x3386af}}),_0x38da46[_0x24b342(0x1d9)](_univerjs_core[_0x24b342(0x430)],![]);},'onFocus':()=>_0x38da46[_0x28f502(0x1d9)](_univerjs_core[_0x28f502(0x430)],!![]),'onBlur':_0x2d3713=>{const _0xbbf98=_0x28f502;_0x38da46[_0xbbf98(0x1d9)](_univerjs_core[_0xbbf98(0x430)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x286),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5498a0['t'](_0x28f502(0x171))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x2f5),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x17e)],{'className':_0x28f502(0x210),'disabled':_0x34352c,'value':_0x2233b9,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x44059e=>_0x44059e+_0x28f502(0x3a7),'parser':_0x4e4e36=>(_0x4e4e36===null||_0x4e4e36===void 0x0?void 0x0:_0x4e4e36[_0x28f502(0x313)](_0x28f502(0x3a7),''))||'','onChange':_0x525fcc=>{const _0x579bac=_0x28f502;if(!Number[_0x579bac(0x496)](_0x525fcc)&&_0x525fcc!==null){var _0x17256f;updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'width':(_0x17256f=_0x22451b[_0x579bac(0x5d7)])===null||_0x17256f===void 0x0?void 0x0:_0x17256f['width']}}},{'stroke':{'width':_0x525fcc}});}_0x38da46[_0x579bac(0x1d9)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x38da46[_0x28f502(0x1d9)](_univerjs_core[_0x28f502(0x430)],!![]),'onBlur':_0x167173=>{const _0x5c404b=_0x28f502;_0x38da46[_0x5c404b(0x1d9)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x28f502(0x405),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x1ed))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x41eb05),'options':_0x21b511,'disabled':_0x34352c,'onChange':_0x25513e=>{const _0x20aa53=_0x28f502;var _0x4de5ba;_0x2ef2c9(Number(_0x25513e)),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'dashType':(_0x4de5ba=_0x22451b[_0x20aa53(0x5d7)])===null||_0x4de5ba===void 0x0?void 0x0:_0x4de5ba['dashType']}}},{'stroke':{'dashType':Number(_0x25513e)}});}})})]}),(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])('span',{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x128))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x38d999),'options':_0x653375,'disabled':_0x34352c,'onChange':_0x4106e5=>{const _0x3cd122=_0x28f502;var _0x273f16;_0xa7f87a(Number(_0x4106e5)),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'capType':(_0x273f16=_0x22451b[_0x3cd122(0x5d7)])===null||_0x273f16===void 0x0?void 0x0:_0x273f16[_0x3cd122(0x168)]}}},{'stroke':{'capType':Number(_0x4106e5)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x28f502(0x405),{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5498a0['t'](_0x28f502(0x27e))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x141edd),'options':_0x11fabc,'disabled':_0x34352c,'onChange':_0x2f4daf=>{const _0x24f993=_0x28f502;var _0x2ebf10;_0x233fe7(Number(_0x2f4daf)),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'lineJoinType':(_0x2ebf10=_0x22451b[_0x24f993(0x5d7)])===null||_0x2ebf10===void 0x0?void 0x0:_0x2ebf10[_0x24f993(0x5f4)]}}},{'stroke':{'lineJoinType':Number(_0x2f4daf)}});}})})]}),!_0xaff66&&(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x3b2))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x19ccc0),'options':_0x5433bc,'disabled':_0x34352c,'onChange':_0x39cb7b=>{const _0x4f1ccd=_0x28f502;var _0x37a165;_0x17a215(Number(_0x39cb7b)),updateShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'stroke':{'sketchType':(_0x37a165=_0x22451b['stroke'])===null||_0x37a165===void 0x0?void 0x0:_0x37a165[_0x4f1ccd(0x40b)]}}},{'stroke':{'sketchType':Number(_0x39cb7b)}});}})})]}),_0xaff66&&(0x0,react_jsx_runtime[_0x28f502(0x44a)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x4c0))}),(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x380b72),'options':_0x5e1284,'onChange':_0xf10503=>{const _0x3dba4a=_0x28f502;var _0x52e6dd;_0x45b730(Number(_0xf10503)),updateLineShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'ln':{'startArrow':{'type':(_0x52e6dd=_0x22451b['ln'])===null||_0x52e6dd===void 0x0||(_0x52e6dd=_0x52e6dd[_0x3dba4a(0x33a)])===null||_0x52e6dd===void 0x0?void 0x0:_0x52e6dd['type']}}}},{'ln':{'startArrow':{'type':Number(_0xf10503)}}});}})})]}),(0x0,react_jsx_runtime[_0x28f502(0x44a)])(_0x28f502(0x405),{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x38a))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x2b0ae1),'options':_0x300139,'onChange':_0x37547b=>{var _0x2aeceb;_0x453fb1(Number(_0x37547b)),updateLineShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x2aeceb=_0x22451b['ln'])===null||_0x2aeceb===void 0x0||(_0x2aeceb=_0x2aeceb['startArrow'])===null||_0x2aeceb===void 0x0?void 0x0:_0x2aeceb['size']}}}},{'ln':{'startArrow':{'size':Number(_0x37547b)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x286),{'className':_0x28f502(0x16a),'children':_0x5498a0['t'](_0x28f502(0x303))}),(0x0,react_jsx_runtime[_0x28f502(0x499)])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design['Select'],{'className':'univer-w-full','value':String(_0x4f3a01),'options':_0x5e1284,'onChange':_0x3e372d=>{const _0x9fa713=_0x28f502;var _0x4c0b15;_0xf72e91(Number(_0x3e372d)),updateLineShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x4c0b15=_0x22451b['ln'])===null||_0x4c0b15===void 0x0||(_0x4c0b15=_0x4c0b15['endArrow'])===null||_0x4c0b15===void 0x0?void 0x0:_0x4c0b15[_0x9fa713(0x42d)]}}}},{'ln':{'endArrow':{'type':Number(_0x3e372d)}}});}})})]}),(0x0,react_jsx_runtime[_0x28f502(0x44a)])('div',{'className':_0x28f502(0x595),'children':[(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x286),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5498a0['t'](_0x28f502(0x1ab))}),(0x0,react_jsx_runtime['jsx'])(_0x28f502(0x405),{'className':_0x28f502(0x4ee),'children':(0x0,react_jsx_runtime[_0x28f502(0x499)])(_univerjs_design[_0x28f502(0x22e)],{'className':_0x28f502(0x210),'value':String(_0x78ea75),'options':_0x300139,'onChange':_0x39782b=>{const _0x31ddcf=_0x28f502;var _0x5a0465;_0x443546(Number(_0x39782b)),updateLineShapeData(_0x13b890,_0xcdaf7d,_0x5b65eb,_0x241af8,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x5a0465=_0x22451b['ln'])===null||_0x5a0465===void 0x0||(_0x5a0465=_0x5a0465[_0x31ddcf(0x26f)])===null||_0x5a0465===void 0x0?void 0x0:_0x5a0465[_0x31ddcf(0x1b1)]}}}},{'ln':{'endArrow':{'size':Number(_0x39782b)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x577c18=_0xae170d,_0x568c7e=(0x0,_univerjs_ui[_0x577c18(0x54f)])(_univerjs_drawing[_0x577c18(0x231)]),[_0x422449,_0x3183f8]=(0x0,react[_0x577c18(0x17c)])(_0x568c7e[_0x577c18(0x309)]());(0x0,react[_0x577c18(0x194)])(()=>{const _0x263da9=_0x577c18,_0x7322d0=_0x568c7e[_0x263da9(0x3e0)][_0x263da9(0x39a)](_0x20ea25=>{_0x3183f8(_0x20ea25);});return()=>{const _0xaead97=_0x263da9;_0x7322d0[_0xaead97(0x28c)]();};},[]);if(_0x422449['length']===0x0)return null;return(0x0,react_jsx_runtime['jsx'])('div',{'children':(0x0,react_jsx_runtime[_0x577c18(0x44a)])('div',{'className':_0x577c18(0x412),'children':[(0x0,react_jsx_runtime[_0x577c18(0x499)])(_univerjs_drawing_ui[_0x577c18(0x379)],{'drawings':_0x422449,'hasCropper':![]}),(0x0,react_jsx_runtime[_0x577c18(0x499)])(_univerjs_sheets_drawing_ui[_0x577c18(0x2e0)],{'drawings':_0x422449})]})});}function _0x5317(){const _0x15233a=['imageFillMode','shape.type.flow-chart-document','clear','_drawingManagerService','insertGroupObject','MathNotEqual','WedgeRectCallout','shape.type.action-button-document','ShapeWedgeRoundRectCalloutIcon','mainComponent','_isStartAdjusting','activeSheet$','getDrawingByParam','useObservable','DRAWING_IMAGE','shape.type.action-button-beginning','saveImage','LeftRightArrowCallout','cxnPointRadius','ShapeTeardropIcon','useMemo','shape.type.bent-connector3-arrow1','_getScrollInfo','shape.type.right-brace','focusDrawing','ShapeDocAlignCommand','featurePluginUpdateNotification','_sheetBasicShapeConnectionPointController','AccentBorderCallout2','shape.type.down-arrow','sin','sheetViewStartColumn','VERTICAL_ROTATE_ANGLE','updateContext','isLineShape','Checkbox','ShapeAccentBorderCallout1Icon','POSITIVE_INFINITY','_executeConnectionCommand','VIEW_MAIN_LEFT','sheet.command.set-shape-text-horizontal-align','align.bottom','stroke','getZoomRatio','_openShapeEditPanel','Image','VIEW_MAIN_LEFT_TOP','ShapePlaqueTabsIcon','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-2\x20univer-py-1\x20univer-transition-colors\x20hover:univer-border-primary-600\x20hover:univer-bg-gray-100\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','IEditorService','Ellipse','ShapeFrameIcon','with','ShapeSquareTabsIcon','custom','floor','_activeShapeModel','sheets-shape.fill.picture.align.b','shape.type.snip-round-rect','ChartX','ShapeRightBracketIcon','addObject','FlowchartMagneticDisk','computeConnectorResizeLayout','shape.type.left-arrow-callout','OpenArrow','ShapeBorderCallout3Icon','shape.type.flow-chart-manual-operation','getPrototypeOf','_isOpenedShapeEditPanel','None','lineJoinType','DRAWING_SHAPE','ShapeActionButtonSoundIcon','sheets-shape.config','ShapeStar12Icon','ShapeHorizontalScrollIcon','flowchart','end','align.top','_currentConnectionTarget','getConnectorLinePoints','updateConnectionDetection','SHAPE','getBasicShapeRelation','RadioGroup','_generateCutPasteMutations','#bcbcbc','DRAWING_OBJECT_LAYER_INDEX','getSkeleton','sheets-shape.fill.color','registerFeatureMenuOffset','img','PlaqueTabs','SHEET_VIEWPORT_KEY','targetShapeId','_sheetInterceptorService','DocSkeletonManagerService','64710oRzltJ','getDrawingPoints','undo','_attachAdjustEvent','shape.type.math-divide','_registerDrawingMoveHandler','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','ShapeIrregularSeal1Icon','getShapePopupMenus','worldPoint','_getZoomRatio','sheets-shape.line.arrowType.openArrow','shape.type.flow-chart-manual-input','ChartStar','register','_registerGroupFeaturePasteHook','shape.type.wedge-ellipse-callout','sheets-shape.line.dashType.longDashDotDot','domY','RightBracket','ISheetDrawingService','ShapeQuadArrowIcon','object','sheets-shape.fill.picture.offsetY','refreshAdjustControls','attachTransformerTo','sheets-shape.line.dashType.dash','VerticalScroll','width','shape.type.star32','shape.type.right-arrow-callout','switchMap','_activeTargetShapeId','Dash','_initMenu','BorderCallout1','Medium','sheets-shape.line.noLine','getEditing','ShapeRibbon2Icon','clipByShape','clearAdjustValue','COMMAND','editingParams$','getConnectionInfo','_contextService','InsertShapeCommand','isHorizontal','Observable','CornerTabs','MenuItemType','CurvedConnector3','sheets-shape.shapePosition','ancestorTransform','changeShapeType','ShapeDownArrowCalloutIcon','onPointerMove$','Accordion','beforeCommandExecuted','Star5','ShapeIrregularSeal2Icon','getViewportByCell','ShapeHeptagonIcon','_attachConnectorObjectEvent','ShapeFlowChartOnlineStorageIcon','sheets-shape.line.arrowSize.large','_editingParams$','shape.type.funnel','DiamondArrow','SetShapeTextHorizontalAlignCommand','ShapeRightArrowCalloutIcon','_connectorObjects','LAYOUT','addClipboardHook','_urlImageService','paragraphs','ShapeBracePairIcon','ShapeGear6Icon','call','cxnPointStrokeWidth','LeftRightUpArrow','SmileyFace','ShapeCallout1Icon','find','ShapeCurvedConnector3Arrow2Icon','ShapeChartPlusIcon','ShapeLightningBoltIcon','Arrow','vertical','shape.type.accent-callout2','displayName','shape.type.striped-right-arrow','shape.type.folder-corner','Disposable','Ribbon2','ShapeHexagonIcon','shape.type.action-button-back-previous','DashDot','AlignTopIcon','angle','_createControls','ShapeCallout2Icon','ShapeActionButtonBackPreviousIcon','_clearConnectionSites','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','getInverseCoord','ShapeFlowChartDisplayIcon','shape.type.uturn-arrow','Snip1Rect','shape.type.flow-chart-offpage-connector','values','shape.type.square-tabs','Stretch','Circle','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','rotate(','shape.type.chart-plus','HorizontalAlign','MathEqual','ShapeRenderModeEnum','resize','_baseDrawingRect','imageOpacity','_showConnectionSites','11771568WXjqdV','getOwnPropertyDescriptor','shape.type.star5','Tools','radial','iterator','_baseShapeLeft','_isHighlighted','undefined','useIsFocusing','sheets-shape.fill.picture.align.bl','shape.type.chart-star','startConnectionDetection','FlowchartExtract','warn','sheets-shape.line.dashType.roundDot','shape.type.wedge-rect-callout','sheets-shape.line.capType.title','_isConnecting','ICommandService','Cloud','ShapeFlowChartDocumentIcon','shape.type.action-button-sound','ShapeNotchedRightArrowIcon','shape.type.math-equal','ShapeQuadArrowCalloutIcon','univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-px-3\x20univer-py-1\x20univer-text-sm\x20univer-transition-colors\x20hover:univer-bg-gray-100\x20disabled:univer-cursor-not-allowed\x20disabled:univer-opacity-50\x20dark:!univer-border-gray-600\x20dark:hover:!univer-bg-gray-700','worksheet','asObservable','onTransformChange$','FlowchartOffPageConnector','Line','ShapeEllipseIcon','addImageSourceCache','onPointerDown$','_drawingAddListener','Curved','gdRefX','_hasReset','Can','_sidebarDisposable','shape.type.flow-chart-collate','shape.type.accent-callout3','shape.type.heptagon','Sun','adjustValues','getRenderById','getEndConnectInfo','ShapeLeftRightArrowIcon','UpArrow','BentUpArrow','_draggingConnectorId','ShapeStar7Icon','KeyCode','LocaleService','shape.type.up-arrow','ActionButtonBeginning','shape.type.action-button-blank','transformForAngle','_isImagePointerDown','setEditing','bind','_index','_getImagePrstGeom','RemoveSheetDrawingCommand','ShapeAccentBorderCallout2Icon','dataStream','ShapeFlowChartMagneticDiskIcon','_drawRichText','_init','_executeConnectedRouteConnectionCommand','shape.type.rt-triangle','_registerShapeMenu','ShapeSnip2SameRectIcon','_handleConnectedEndpointMove','fillType','disposeWithMe','ShapeFlowChartDecisionIcon','_handleFreeEndpointPointerUp','getBasicShapeRotateBound','ShapeFlowChartPunchedCardIcon','capType','RibbonPosition','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_baseShapeHeight','ShapeDownArrowIcon','updateLinePoints','shape.type.decagon','srcRect','Documents','sheets-shape.line.width','_sheetsShapeService','ShapeAccentBorderCallout3Icon','_onSavingEditorData$','Wave','ShapeChordIcon','string','dispose','ctr','ShapeFlowChartOffpageConnectorIcon','#000000','useState','ShapeLeftArrowIcon','InputNumber','UpArrowCallout','getSelectionRanges','colStartX','_lastEditingShapeKey','image-panel.crop.shape','interceptCommand','files','Radio','_drawingType','ShapeFlowChartManualOperationIcon','ShapeRightBraceIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','shape.type.flow-chart-process','ShapeFunnelIcon','sheets-shape.shapeStyle','sheets-shape.line.dashType.longDash','touchDependencies','sheets-shape.formatShape','ShapeCallout3Icon','_isStartConnectorPoint','ShapeFlowChartMergeIcon','useEffect','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','Transform','_addShapeAdjustControl','setConfig','_sheetShapeAdjustController','ShapeLeftArrowCalloutIcon','drawingType','shape.type.no-smoking','registerRenderModule','ShapeMathMinusIcon','getColorFromTheme','subscribeContextValue$','ShapeStar16Icon','RemoveSheetsShapeMutation','shape.type.rect-textbox-horizontal','Teardrop','_config','GradientFill','COLOR_PICKER_COMPONENT','abs','horizontalAlign','adjName','sheets-shape.line.endArrowSize','ShapeCloudIcon','shape.type.left-arrow','gradientStops','ShapeCurvedDownArrowIcon','getFreeze','size','reduce','shape.type.flow-chart-online-storage','CloudCallout','_handleConnectedEndpointPointerUp','isRichText','shape.type.round2-same-rect','icon','ResetInlineFormatTextBackgroundColorCommand','_adjHandlerPointerMove','getCurrentUnitInfo','color','setCanUseShapeClip','CurvedRightArrow','_shapeTextEditingService','ShapeRightArrowIcon','sheet.shape.edit.panel','setPrstGeom','ShapeCornerIcon','sheet.command.update-shape-data','Star6','_initSelection','shape.type.smiley-face','sheets-shape.line.sketchType.freehand','sheet.operation.close-sheet-shape-format-panel','isHit','ShapeLineIcon','Star10','shape.type.curved-connector3','_imageShapeClipController','getTransformerByCreate','routeConnectorLineShape','ShapeRectIcon','ShapeActionButtonForwardNextIcon','_addShapeConnectorHandlerObject','shape.type.flow-chart-decision','_closeShapeEditPanel','IrregularSeal2','Callout1','Diamond','setContextValue','image-clip-adjust-point-','makeDirty','LeftUpArrow','min','shape.type.flow-chart-magnetic-disk','ShapeChartStarIcon','style','sheets-shape.fill.picture.align.l','scaleY','_addShapeConnectorHandlerObjects','ShapeActionButtonEndIcon','onSavingEditorData$','sheetViewStartRow','getState','Octagon','ShapeMathDivideIcon','getDocumentData','shape.type.math-plus','sheets-shape.line.arrowSize.medium','sheets-shape.line.dashType.title','getConnectionRelation','shape.type.left-right-up-arrow','Plus','_commandService','point','isStartConnectorPoint','sheets-shape.line.sketchType.none','isFinite','transformByState','SheetsShapeUIController','FOCUSING_COMMON_DRAWINGS','getParent','textRect','constructor','file','ChartPlus','name','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-rounded-lg\x20univer-p-3','_subUnitId','SheetCanvasPopManagerService','pluginName','ShapeWedgeRectCalloutIcon','0.22.1-insiders.20260516-8900c44','shape.type.accent-border-callout3','ShapeRoundRectIcon','ShapeStripedRightArrowIcon','Star32','_getShapeAdjustInfosById','shape.type.flow-chart-predefined-process','sheets-shape.fill.picture.align.r','ShapeMoonIcon','computeConnectorRouteLayout','other','univer-w-full','useLeftAndRightArrow','_registerFocusChangeHandler','IRenderManagerService','sheets-shape.fill.picture.rotateWithShape','toolbar.resetColor','shape.type.action-button-end','_updateSrcRectByTransform','imageTile','Rect','blur','shape.type.triangle','shape.type.horizontal-scroll','sheets-shape.line.arrowType.stealthArrow','useKeyboardEvent','getSheetBySheetId','shape.type.notched-right-arrow','getObject','ShapePentagonIcon','Linear','ShapeRectTextboxVerticalIcon','REMOVE','shape.type.line','_currentScene','CUT','ShapeLeftRightRibbonIcon','Dodecagon','UNIVER_SHEET','getMatrix','_focusedDrawings','Select','function','applyPoint','IDrawingManagerService','beginPath','length','slice','getMenuHiddenObservable','ShapeStraightConnector1Icon','localeService','ShapeUpArrowCalloutIcon','ShapeFlowChartDelayIcon','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_targetShapeId','push','SwooshArrow','HorizontalScroll','Round','ShapeCurvedConnector3Arrow1Icon','VIEW_MAIN_TOP','sheets-shape.line.title','next','getDrawingEditable','Dropdown','ActionButtonBlank','createInternalEditorID','_baseLeft','ShapeNoSmokingIcon','changing$','_drawSimpleText','sheets-shape.hidePanel','SetInlineFormatTextBackgroundColorCommand','syncExecuteCommand','align.left','Star16','ShapeLeftRightArrowCalloutIcon','getCurrentRangeDisable$','forEach','updateDocumentDataMargin','UpdateShapeDataCommand','ShapeDoubleWaveIcon','memo','getShapeModel','sheets-shape.fill.pictureFill','QuadArrow','shape.type.curved-connector3-arrow2','startWith','getCurrentScrollState','ShapeHeartIcon','ShapeCircularArrowIcon','ShapeIcon','_injector','shape.type.flow-chart-punched-card','shape.type.corner','sheets-shape.line.dashType.squareDot','shape.type.flow-chart-or','packageName','univer-flex-1\x20univer-overflow-auto','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeRibbonIcon','Snip2SameRect','ShapeVerticalScrollIcon','FlowchartOr','ShapeFlowChartMagneticTapeIcon','shape.type.heart','endArrow','BracePair','create','multiply','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','getCurrentTypeOfUnit$','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','ShapeFlowChartCollateIcon','useEditor','_shapes','ShapeUpDownArrowCalloutIcon','AlignOperationCommand','ShapeFlowChartProcessIcon','IUndoRedoService','ang','sheets-shape.line.joinType.title','discreteRangeToRange','shape.type.quad-arrow-callout','onReady','SHEET_SHAPE_UI_PLUGIN','BracketPair','FlowchartMagneticTape','isCurvedConnectorShape','span','getDrawingVisible','clip-','ShapeFlowChartAlternateProcessIcon','shape.type.chevron','4498215XeRjKQ','unsubscribe','Large','shape.type.up-down-arrow-callout','141958SRtkuS','setSelectionRanges','setShapeProps','isEditing','UniverInstanceType','sheets-shape.line.joinType.round','CurvedDownArrow','LeftRightRibbon','ShapeWaveIcon','ShapeFolderCornerIcon','getObjectIncludeInGroup','shape.type.ribbon','fillImageSource','START','ShapeChartXIcon','ShapeFlowChartExtractIcon','_initEditingParams','_adjName','dashType','MathPlus','scaleX','ShapeLeftRightUpArrowIcon','sheets-shape.fill.picture.source','ActionButtonSound','_imageIoService','FlowchartMultiDocument','ShapeBentArrowIcon','sheets-shape.fill.transparency','StealthArrow','IrregularSeal1','BreakLineCommand','redo','shapeKey','sheets-shape.line.sketchType.curved','ShapeStar10Icon','setShapeData','ShapeSketchTypeEnum','_registerMoveHandler','105lleosF','ShapeFlowChartPreparationIcon','getUnit','click','shape.type.math-minus','FOCUSING_SHAPE_TEXT_EDITOR','univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','diamond','ShapeFlowChartMagneticDrumIcon','ShapeFillEnum','ShapeMathMultiplyIcon','render','_executeConnectedRouteResizeCommand','setDocumentData','useCallback','shape.type.flow-chart-terminator','ShapeOctagonIcon','shape.type.wedge-round-rect-callout','Moon','onload','_cxnIndex','ShapeUpDownArrowIcon','shape-text-editor-position-wrapper','DownArrow','shape.type.up-down-arrow','_addControl','shape.type.pentagon','shapeData','10PHgKHC','current','ShapeActionButtonBeginningIcon','shape.type.action-button-help','ShapeSmileyFaceIcon','ShapeCurvedLeftArrowIcon','translate','_currentUniverService','ShapeFlowChartSummingJunctionIcon','sqrt','ShapeFlowChartSortIcon','Decagon','setTimeout','Tile','getDrawingData','SheetDrawingAnchor','defineProperty','ActionButtonInformation','ShapePieIcon','getBatchAddOp','NoSmoking','_getSceneAndTransformerByDrawingSearch','BentConnector3','align.center','toolbar.horizontalAlignMode.main','getSkeletonParam','Square','params','sheets-shape.insertShape','ShapeDefaultConfig','getShapeType','rect','Corner','LeftJustifyingIcon','getContextValue','shape.type.left-right-ribbon','univer-w-20','ShapeDiamondIcon','ShapeNonIsoscelesTrapezoidIcon','shapeId','shape.type.callout1','_calculateFreeEndpointAngle','DependentOn','scene','SolidLine','StripedRightArrow','generateRandomId','transformToDrawingPosition','shape.type.snip2-diag-rect','version','sheets-shape.line.endArrowType','shape.type.left-right-arrow-callout','marginTop','sheets-shape.openPanel','blockExecuteWithoutPermission','_generatePasteMutations','getFocusDrawings','_findShapeAtPoint','DrawingImageClipService','setAdjustValueByName','FlowchartPreparation','shape.type.star12','changeEnd$','onPointerUp$','ShapeSunIcon','shape.type.round2-diag-rect','replace','none','shape.type.flow-chart-preparation','_getOrCreateShapeModel','editorHeight','ShapeActionButtonBlankIcon','_clearShapeAdjustControls','#ffffff','shape.type.half-frame','Chord','Snip2DiagRect','SquareDot','IMenuManagerService','toolbar.fillColor.main','shape.type.brace-pair','visible','callout','_transform','lineType','ShapeFlowChartConnectorIcon','shape.type.hexagon','group','_updateAdjustControlPositions','stops','_handleFreeEndpointMove','InsertSheetsShapeMutation','Frame','shape.type.border-callout1','ShapeArrowSizeEnum','ShapeDiagStripeIcon','_getConnectPointInfo','getBatchRemoveOp','localToWorld','toolbar.verticalAlignMode.main','RemoveSheetCommand','gdRefR','_getDrawingRect','RightArrowCallout','getOwnPropertyNames','startArrow','shape.type.pie','subscribeEvent','ColorPicker','useAbsolutePosition','_activeImageId','ActionButtonDocument','indexOf','setHighlighted','clip','RichTextEditingMutation','MathMultiply','stringify','Path','FlowchartManualOperation','getAncestorScale','starAndBanner','ShapeFlowChartInputOutputIcon','getUnitId','ComponentManager','ShapeAccentCallout2Icon','save','shape.type.sun','BUTTON_SELECTOR','ShapeBracketPairIcon','ShapeTrapezoidIcon','sheets-shape.fill.picture.offsetX','Plaque','shape.type.star24','offset','BorderCallout2','UPDATE','Miter','toPrimitive','sheets-shape.fill.picture.scaleY','_context','AlignBottomIcon','opacity','ShapeActionButtonHelpIcon','Hexagon','AccentCallout3','isRender','offsetX','onerror','decorate','left','Star12','_baseTop','clearTimeout','shape.type.irregular-seal2','SolidFill','_localeService','IURLImageService','updateShapeFillImage','shape.type.bent-connector3-arrow2','ShapeStar24Icon','sheets-shape.line.arrowType.none','RightTriangle','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','sheets-shape.line.arrowSize.small','Star4','univer-text-primary-600','BehaviorSubject','DrawingCommonPanel','shape.type.gear9','shape.type.curved-up-arrow','disableShapeOption','ShapeTextEditorContainer','_isShouldShowDrawingShapeAdjust','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheets-shape.fill.solidFill','top','getStartConnectInfo','executeCommand','getViewport','getShapeTextData','Module','calcAdjValue','MIDDLE','Flat','sheets-shape.line.beginArrowSize','sheets-shape.fill.picture.scaleX','ShapePieWedgeIcon','_updateShapeAdjustControls','dataModel','strokeWidth','isInGroup','Radial','adjHandleSize','ThemeService','rectangle','Round2SameRect','stopPropagation','_renderManagerService','SheetsDrawingGroupCopyPasteController','round','subscribe','buildClipPath','lineStrokeType','startY','getShapeTextRect','ShapeSnip1RectIcon','FlowchartMerge','shape.type.flow-chart-multidocument','EllipseRibbon2','_clipService','angular','RIGHT','cos','\x20px','Bevel','hasOwnProperty','SetShapeTextFontSizeCommand','ShapeStar8Icon','UpdateLineShapeResizeCommand','doc','primary.600','getDrawingSearch','SetSheetsShapeTextVerticalToggleCommand','_moveConnectorWithShape','sheets-shape.line.sketchType.title','DrawingApplyType','_registerOperations','Chevron','viewportScrollX','draw','imageRotateWithShape','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-border-l-2\x20univer-border-l-gray-200\x20univer-pl-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-l-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','fillImageSourceType','_cxtHandlerPointerMove','shape.type.ribbon2','shape.type.cube','classType','domX','getShapeDataById','viewportScrollY','shape.type.left-right-circular-arrow','_props','documentStyle','SetShapeDrawingDataCommand','_activeShapeAdjustPointList','_resetState','COPY_TYPE','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','shape.type.flow-chart-display','startOffset','gdRefAng','sheets-shape.rotateLeft90','FlowchartInternalStorage','shape.type.curved-down-arrow','OvalArrow','body','ShapeLineTypeEnum','oKey','shape.type.donut','ShapeFlowChartOfflineStorageIcon','position','ShapeCanIcon','ShapeActionButtonDocumentIcon','ActionButtonMovie','sheets-shape.line.dashType.dashDot','shape.type.double-wave','ShapeLeftCircularArrowIcon','StraightConnector1','SetSheetsShapeRotateCommand','ShapeRectTextboxHorizontalIcon','focus$','ShapeAccentCallout1Icon','getSheetCommandTarget','_updateImageAdjValues','linear','_registerDrawingFocusChangeHandler','ShapeFlowChartInternalStorageIcon','LongDash','onCommandExecuted','enableObjectsEvent','Ribbon','sheets-shape.fill.picture.align.br','mergeMenu','ShapeBorderCallout2Icon','relation','shape.type.right-arrow','shape.type.round-rect','sheets-shape.line.capType.square','shape.type.star7','ShapeGradientTypeEnum','OPERATION','symbol','LeftRightArrow','RoundDot','IImageIoService','engine','ENTER','Small','shape.type.flow-chart-internal-storage','Inject','CROSSHAIR','ShapeFlowChartMultidocumentIcon','ShapeBevelIcon','getDrawingShapeKeyByDrawingSearch','shape.type.dodecagon','univer-mb-2','SHAPE_TEXT','div','drawing.operation.set-drawing-active','shape.type.plaque-tabs','update$','BUTTON','unitId','sketchType','CopySheetCommand','isRenderLinePointsMode','CircularArrow','prototype','ShapeRound1RectIcon','getShapeData','univer-box-border\x20univer-px-4\x20univer-text-sm','RENDER_CLASS_TYPE','ShapeLeftBraceIcon','target','NoLine','flipY','ShapeStar4Icon','shape.type.curved-right-arrow','collapsed','Gear6','ShapeFlowChartManualInputIcon','Callout3','ShapeLeftRightCircularArrowIcon','UpdateConnectorRelationCommand','ShapeChevronIcon','_connectionSiteObjects','_configService','subUnitId','shape.type.flow-chart-offline-storage','shape.type.ellipse','DocumentViewModel','AccentBorderCallout3','EllipseRibbon','shape.type.teardrop','isArray','horizontal','ShapeCubeIcon','type','sheets-shape.rotateRight90','_adjHandlerPointerUp','FOCUSING_PANEL_EDITOR','shape.type.accent-border-callout1','highlighted','sheet.command.set-shape-text-font-size-decrease','_univerInstanceService','_clearControls','_shapeId','Trapezoid','isDrawingObject','getCanvasElement','shape.type.callout3','_sidebarService','univer-flex\x20univer-items-center\x20univer-gap-2','ShapeEllipseRibbon2Icon','toDisposable','LEFT','worldRect','MoreDownIcon','getAdjustInfoByName','NonIsoscelesTrapezoid','_handleBasicShapeUpdateConnectorLineShape','INSERT','from','ShapeCurvedConnector3Icon','shape.type.callout2','shape.type.flow-chart-alternate-process','jsxs','_updateTransform','LightningBolt','copyType','_highlightedSiteIndex','URL','NoFill','ShapeStraightConnector2Icon','shape.type.bent-up-arrow','max','shape.type.bevel','setCursor','EMPTY','LeftBracket','shape.group.','sheets-shape.line.capType.round','shape.type.parallelogram','getRealBound','ShapeCornerTabsIcon','attachRangeWithCoord','ShapeFlowChartOrIcon','shape.type.curved-connector3-arrow1','ShapeActionButtonMovieIcon','shape.type.action-button-information','input','sheets-shape.line.dashType.longDashDot','clsx','shape-adjust-point-','_drawShapeText','FoldedCorner','isConnectorShape','blockArrow','_sheetDrawingShapeRenderController','HandDrawn','CENTER','shape.type.star10','entries','sheets-shape.fill.picture.align.tr','_draw','Angular','ShapeEllipseRibbonIcon','ShapeFlowChartPredefinedProcessIcon','has','SetShapeTextFontSizeIncreaseCommand','Star24','LeftCircularArrow','_commandExecutedListener','sheet.command.set-shape-text-vertical-align','_sheetSkeletonService','ShapeLineDashEnum','focus','prstGeom','ShapeLineJoinEnum','_cxtHandlerPointerUp','ShapeBorderCallout1Icon','_componentManager','SetShapeTextFontSizeDecreaseCommand','shape.type.left-bracket','_getShapeAdjustPointListById','ShapeMathPlusIcon','WedgeEllipseCallout','_sheetDrawingService','Heart','ShapeCurvedRightArrowIcon','shape.type.frame','permissionCheckWithoutRange','shape.type.non-isosceles-trapezoid','translateWithPrecision','FlowchartOnlineStorage','pick','ShapeMathNotEqualIcon','_shapeUpdateListener','Star7','ShapePositionWrapper','_initCommands','calculate','isNaN','_rerouteConnectorLine','shape.type.lightning-bolt','jsx','_baseWidth','ShapeUpArrowIcon','univer-hidden','sheets-shape.deleteShape','shape.type.left-right-arrow','sheets-shape.fill.picture.alignment','getDrawingOrder','ShapeHalfFrameIcon','UniverSheetsDrawingUIPlugin','align.middle','getImage','sheets-shape.toggleFlipH','_reset','shape.type.left-circular-arrow','SheetScrollManagerService','getAdjustNames','complete','FlowchartConnector','sheet.command.shape-doc-align','parse','sheets-shape.line.joinType.miter','ShapeCloudCalloutIcon','shape.type.plaque','_generateCopyPasteMutations','_activeAdjustInfo','ShapePlusIcon','SheetsShapeService','getValue','Callout2','_baseHeight','RibbonInsertGroup','shape.type.vertical-scroll','shape.type.flow-chart-magnetic-drum','cxnPointStroke','ShapeGear9Icon','objects','shape.type.flow-chart-extract','_activeShapeId','sheets-shape.line.beginArrowType','registerClipDelegate','clearAdjustControls','filter','resetCursor','CommandType','UniverSheetsShapeUIPlugin','DrawingRenderService','DrawingTypeEnum','Heptagon','rowStartY','fill','shapeModel','shape-text-editor-content','QuadArrowCallout','worldPoints','close','shape.type.bent-arrow','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','ShapeSnip2DiagRectIcon','BentArrow','_copyInfo','Donut','rotation','registerCommand','ActionButtonReturn','SheetSkeletonManagerService','459430vfaEeS','UpDownArrow','GradientColorPicker','includes','ShapeUturnArrowIcon','ShapeArrowTypeEnum','ShapeStar5Icon','ShapePlaqueIcon','changeStart$','Pie','getCurrentSkeleton','SELECTOR','pipe','ActionButtonHelp','sheets-shape.line.sketchType.handDrawn','_setTransForm','drawingId','ShapeFlowChartPunchedTapeIcon','onRendered','univer-w-28','startX','SheetsSelectionsService','SheetInterceptorService','invert','_initCopyPaste','IContextService','useRef','ShapeWedgeEllipseCalloutIcon','PaintBucketDoubleIcon','LeftBrace','GROUP','flipX','shape.type.diamond','_sheetCanvasPopManagerService','WRAP','enumerable','group\x20univer-relative\x20univer-inline-block','72WmfUvZ','shape.type.bent-connector3','BOTTOM','1138348YyZKdT','SheetSkeletonService','ImageSourceTypeEnum','univer-text-sm','ShapeLeftUpArrowIcon','ShapeLineCapEnum','_activeAdjustPointList','SquareTabs','LineInv','setFillImage','Solid','ImageFillModeEnum','_sheetPermissionCheckController','_loadAndSetImage','univer-flex\x20univer-flex-col\x20univer-gap-2','_initEvents','WrapStrategy','shape.type.pie-wedge','_createShapeAdjustControls','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-pointer-events-none\x20univer-absolute\x20univer-bottom-full\x20univer-left-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-1\x20univer-hidden\x20univer-overflow-hidden\x20univer-rounded\x20univer-border\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20group-hover:univer-block\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-600\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isHitLine','paragraphStyle','_getShapeInfo','_initPermission','getAdjustValueByName','FlowchartPredefinedProcess','sheets-shape.line.dashType.solid','univer-text-gray-600\x20univer-transition-transform','_insertShapes','ShapeSnipRoundRectIcon','transform','setSrcRect','#FFFFFF','shape.type.flow-chart-summing-junction','align.right','_shapeService','Parallelogram','section','ShapeLeftBracketIcon','RibbonStartGroup','_initialize','sheets-shape.line.solidLine','_clearShapeConnectorHandlerObjects','Gear9','getCurrentLastSelection','shape.type.circular-arrow','offsetY','renderDrawingShape','ShapeTypeEnum','viewBound','ShapeSwooshArrowIcon','ShapeBlockArcIcon','shape.type.gear6','setShouldShowAdjust','_sheetClipboardService','DoubleWave','shape.type.trapezoid','ShapeCurvedUpArrowIcon','sheet.shape.picker.component','restore','gdRefY','gradientType','cxnIndex','Funnel','FlowchartMagneticDrum','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','shape.type.up-arrow-callout','_registerComponent','_isDrawingShapePointDown','add','line','clone','_handleConnectorPointerUp','_activeShapeInfo','FlowchartSummingJunction','SetDrawingApplyMutation','useDependency','ConnectorCoordinateTransform','ShapeBentUpArrowIcon','shape.type.down-arrow-callout','map','image/*','HorizontallyIcon','default','ShapeRtTriangleIcon','height','WorksheetEditPermission','index','open','_executeResizeCommand','AccentBorderCallout1','value','ShapeDodecagonIcon','ShapeStar32Icon','sheets-shape.toggleTextVertical','DownArrowCallout','_groupCopyPasteController','gradientAngle','verticalAlign','ShapeActionButtonReturnIcon','IUniverInstanceService','disableObjectsEvent','basicShape','equationShape','_transformCalculateSrcRect','_menuManagerService','_registerImageShapeClipDelegate','getConnectionSiteList','setOnSavingEditorData','button','_getImageDrawingInfo','ShapeRound2SameRectIcon','univer-text-gray-500','Cube','setPrstGeomAdjValues','_unitId','shape.type.plus','error','ShapeLineInvIcon','_getConnectionSiteAngle','set','connection-site-','FORMAT','keys','shape.type.star6','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeTriangleIcon','ShapeAccentCallout3Icon','onDblclick$','UpdateSheetsShapeDataMutation','PictureFill','CURSOR_TYPE','_baseShapeWidth','11100645AFzKLU','cxnPointFill','data','SnipRoundRect','ShapeRound2DiagRectIcon','setZoomRatio','ShapeModel','lineShapeId','ISidebarService','image','ShapeArcIcon','ShapeStar6Icon','RightArrow','univer-flex\x20univer-items-center\x20univer-justify-between','TOP','_baseShapeTop','shape.type.irregular-seal1','remove$','Plugin','ShapeDecagonIcon','VerticalAlign','updateDocumentRenderConfig','get','VIEW_MAIN','ToggleSheetsShapeFlipCommand','Freehand','ShapeActionButtonInformationIcon','connector-handler-','ShapeFlowChartTerminatorIcon','Shape','shape.type.flow-chart-sort','_createCopyInfoByRange','toStringTag','ShapeParallelogramIcon','sheets-shape.line.color','shape.type.star8','sheets-shape.fill.title'];_0x5317=function(){return _0x15233a;};return _0x5317();}function ShapeEditPanel(_0x544f26){const _0x2e018d=_0xae170d,{shapeData:_0x3be611,shapeId:_0x3ba21f,shapeType:_0x57a10e,version:_0x17f95a,unitId:_0xa53c5c,subUnitId:_0x428d9e,disableShapeOption:_0x12983b}=_0x544f26,_0x2ee96a=(0x0,_univerjs_ui[_0x2e018d(0x54f)])(_univerjs_core[_0x2e018d(0x14d)]),_0x189825=(0x0,_univerjs_pro_engine_shape[_0x2e018d(0x468)])(_0x57a10e),[_0x4368a5,_0x5ae55a]=(0x0,react[_0x2e018d(0x17c)])(0x0),_0x3e06b0=[{'label':(0x0,react_jsx_runtime[_0x2e018d(0x499)])('div',{'children':_0x2ee96a['t'](_0x2e018d(0x5ac))}),'children':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_0x2e018d(0x528),{'className':_0x2e018d(0x37f),'children':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(ShapeFillEditor,{'shapeId':_0x3ba21f,'shapeData':_0x3be611,'isLineShape':_0x189825,'subUnitId':_0x428d9e,'unitId':_0xa53c5c,'disableShapeOption':_0x12983b},_0x3ba21f)})},{'label':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_0x2e018d(0x405),{'children':_0x2ee96a['t'](_0x2e018d(0x242))}),'children':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_0x2e018d(0x528),{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(ShapeLineEditor,{'shapeId':_0x3ba21f,'shapeData':_0x3be611,'isLineShape':_0x189825,'subUnitId':_0x428d9e,'unitId':_0xa53c5c,'disableShapeOption':_0x12983b},_0x3ba21f)})}];return(0x0,react_jsx_runtime['jsxs'])(_0x2e018d(0x405),{'className':'univer-size-full','children':[(0x0,react_jsx_runtime[_0x2e018d(0x44a)])(_0x2e018d(0x405),{'className':'univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','children':[(0x0,react_jsx_runtime[_0x2e018d(0x44a)])(_0x2e018d(0x405),{'className':(0x0,_univerjs_design[_0x2e018d(0x464)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',_0x4368a5===0x0?_0x2e018d(0x377):_0x2e018d(0x573)),'onClick':()=>_0x5ae55a(0x0),'children':[_0x2ee96a['t'](_0x2e018d(0x18d)),(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_0x2e018d(0x405),{'className':(0x0,_univerjs_design[_0x2e018d(0x464)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md',{'univer-bg-primary-600':_0x4368a5===0x0,'univer-bg-transparent':_0x4368a5!==0x0})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2e018d(0x405),{'className':(0x0,_univerjs_design[_0x2e018d(0x464)])(_0x2e018d(0x273),{'univer-text-primary-600':_0x4368a5===0x1,'univer-text-gray-500':_0x4368a5!==0x1}),'onClick':()=>_0x5ae55a(0x1),'children':[_0x2ee96a['t'](_0x2e018d(0x643)),(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_0x2e018d(0x405),{'className':(0x0,_univerjs_design[_0x2e018d(0x464)])(_0x2e018d(0x275),{'univer-bg-primary-600':_0x4368a5===0x1,'univer-bg-transparent':_0x4368a5!==0x1})})]})]}),(0x0,react_jsx_runtime['jsx'])(_0x2e018d(0x405),{'className':_0x2e018d(0x267),'children':_0x4368a5===0x0?(0x0,react_jsx_runtime['jsx'])('div',{'className':'','children':(0x0,react_jsx_runtime[_0x2e018d(0x499)])(_univerjs_design[_0x2e018d(0x648)],{'items':_0x3e06b0})},_0x17f95a):(0x0,react_jsx_runtime['jsx'])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0xae170d(0x5a5)]{constructor(_0x43390b,_0x273581){const _0x52200c=_0xae170d;super(_0x43390b,_0x273581),_defineProperty(this,'_shapeId',null),_defineProperty(this,_0x52200c(0x2a0),null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null);if(_0x273581)this['setShapeProps'](_0x273581);}[_0xae170d(0x3af)](){const _0x31ed1d=_0xae170d;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x31ed1d(0x436)]};}['setShapeProps'](_0x27156c){const _0x8dc21e=_0xae170d;if(typeof _0x27156c[_0x8dc21e(0x2f8)]!==_0x8dc21e(0x11f))this[_0x8dc21e(0x436)]=_0x27156c['shapeId'];if(typeof _0x27156c[_0x8dc21e(0x1aa)]!==_0x8dc21e(0x11f))this['_adjName']=_0x27156c[_0x8dc21e(0x1aa)];if(typeof _0x27156c[_0x8dc21e(0x40a)]!=='undefined')this['_unitId']=_0x27156c['unitId'];if(typeof _0x27156c[_0x8dc21e(0x423)]!==_0x8dc21e(0x11f))this[_0x8dc21e(0x201)]=_0x27156c[_0x8dc21e(0x423)];this[_0x8dc21e(0x1f6)]({'width':_0x27156c['width'],'height':_0x27156c['height']});}[_0xae170d(0x470)](_0x53062b){const _0xcfe190=_0xae170d;_univerjs_engine_render['Circle']['drawWith'](_0x53062b,{'radius':_univerjs_pro_engine_shape[_0xcfe190(0x2ee)]['adjHandleSize'],'fill':_univerjs_pro_engine_shape[_0xcfe190(0x2ee)]['adjHandleFill'],'stroke':_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleStroke'],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x3deca3,_0x5abfe2,_0x4ab111,_0x1ebb38,_0x578fe5,_0xf0d101,_0x285e1a,_0x21479b){const _0x3d02bd=_0xae170d;super(),this['_context']=_0x3deca3,this['_contextService']=_0x5abfe2,this[_0x3d02bd(0x5b0)]=_0x4ab111,this[_0x3d02bd(0x172)]=_0x1ebb38,this[_0x3d02bd(0x397)]=_0x578fe5,this[_0x3d02bd(0x46a)]=_0xf0d101,this[_0x3d02bd(0x434)]=_0x285e1a,this['_commandService']=_0x21479b,_defineProperty(this,_0x3d02bd(0x4bf),null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x3d02bd(0x3c6),void 0x0),_defineProperty(this,_0x3d02bd(0x278),[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,_0x3d02bd(0x597),0x0),_defineProperty(this,'_baseShapeWidth',0x0),_defineProperty(this,_0x3d02bd(0x16b),0x0),_defineProperty(this,_0x3d02bd(0x5b7),![]),_defineProperty(this,_0x3d02bd(0x4b2),void 0x0),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x3d02bd(0x1ba),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x3d02bd(0x37e),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x3d02bd(0x614)]();}[_0xae170d(0x484)](_0x2362ee,_0x340f89,_0x239ced){const _0x40de92=_0xae170d,_0x3efe88=this[_0x40de92(0x172)][_0x40de92(0x258)](_0x2362ee,_0x340f89,_0x239ced);if(_0x3efe88)return _0x3efe88['getDrawingPoints']();}[_0xae170d(0x4c2)](){const _0x463145=_0xae170d;this[_0x463145(0x319)]();}[_0xae170d(0x627)](){this['_updateShapeAdjustControls'](!![]);}[_0xae170d(0x538)](_0x3c3ee2){const _0x12e6af=_0xae170d;this[_0x12e6af(0x37e)]=_0x3c3ee2;}[_0xae170d(0x20a)](_0x5be039,_0x1c0bc4,_0x3cd4c2,_0xc09b39){const _0x59bbb8=_0xae170d,_0x2c12f1=this[_0x59bbb8(0x172)][_0x59bbb8(0x258)](_0x5be039,_0x1c0bc4,_0x3cd4c2);if(_0x2c12f1)return _0x2c12f1[_0x59bbb8(0x442)](_0xc09b39);}[_0xae170d(0x515)](_0x1c489b=![]){const _0x49b5d7=_0xae170d;if(this[_0x49b5d7(0x576)]===null||this['_subUnitId']===null||this[_0x49b5d7(0x4bf)]===null)return;const _0x3cdbb3=this[_0x49b5d7(0x397)][_0x49b5d7(0x145)](this[_0x49b5d7(0x576)]);if(!_0x3cdbb3)return;if(!_0x3cdbb3['with'](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x49b5d7(0x4e5)]())return;const {scene:_0x15219f}=_0x3cdbb3,_0x549fbe={'unitId':this[_0x49b5d7(0x576)],'subUnitId':this[_0x49b5d7(0x201)],'drawingId':this['_activeShapeId']},_0x23c286=this[_0x49b5d7(0x5b0)][_0x49b5d7(0x5b9)](_0x549fbe),{transform:_0x32a2b8}=_0x23c286;if(!_0x32a2b8)return;if(_0x23c286[_0x49b5d7(0x19b)]!==_univerjs_core['DrawingTypeEnum'][_0x49b5d7(0x5f5)])return;const {left:_0x5d647a,top:_0x2d5057,width:_0x3044ec,height:_0x2ea4fd,flipX:_0x2463a8,flipY:_0x5868d3,angle:angle=0x0}=_0x32a2b8;if(_0x5d647a===void 0x0||_0x2d5057===void 0x0)return;if(_0x1c489b)this[_0x49b5d7(0x3c6)]=this[_0x49b5d7(0x484)](this['_unitId'],this[_0x49b5d7(0x201)],this['_activeShapeId']);const _0x1d8bb4=this[_0x49b5d7(0x3c6)];for(let _0x5bcf4c=0x0;_0x5bcf4c<_0x1d8bb4[_0x49b5d7(0x233)];_0x5bcf4c++){const _0x8d8c74=_0x1d8bb4[_0x5bcf4c];let _0x43ed9b=_0x8d8c74['x'],_0x28d23d=_0x8d8c74['y'];if(_0x2463a8)_0x43ed9b=(_0x3044ec||0x0)-_0x43ed9b;if(_0x5868d3)_0x28d23d=(_0x2ea4fd||0x0)-_0x28d23d;if(angle!==0x0){const _0x5be666=(_0x3044ec||0x0)/0x2,_0xd28931=(_0x2ea4fd||0x0)/0x2,_0xe18947=angle*Math['PI']/0xb4,_0x1d1637=Math[_0x49b5d7(0x3a6)](_0xe18947),_0x24d41c=Math['sin'](_0xe18947),_0x4873e7=_0x43ed9b-_0x5be666,_0x93ff4d=_0x28d23d-_0xd28931;_0x43ed9b=_0x5be666+(_0x4873e7*_0x1d1637-_0x93ff4d*_0x24d41c),_0x28d23d=_0xd28931+(_0x4873e7*_0x24d41c+_0x93ff4d*_0x1d1637);}const _0x50d8e2={'x':_0x43ed9b,'y':_0x28d23d,'adjName':_0x8d8c74['adjName']};this[_0x49b5d7(0x197)](_0x15219f,_0x50d8e2,_0x50d8e2[_0x49b5d7(0x1aa)],_0x5d647a,_0x2d5057,this[_0x49b5d7(0x576)],this[_0x49b5d7(0x201)]);}}['_updateShapeAdjustControls'](_0x2a9b0f=![]){const _0x228462=_0xae170d;_0x2a9b0f&&(this['_clearShapeAdjustControls'](),this[_0x228462(0x515)](_0x2a9b0f));}[_0xae170d(0x197)](_0x9101a9,_0x50ae12,_0xbe2c59,_0x19a1e2,_0x392b2b,_0x309e29,_0x2aa583){const _0x28f381=_0xae170d;if(!this['_activeShapeId'])return;const _0x48a79e=_0x9101a9['getObjectIncludeInGroup'](_0x28f381(0x465)+this[_0x28f381(0x4bf)]+'-'+_0xbe2c59);if(_0x48a79e){_0x48a79e[_0x28f381(0x1f6)]({'left':_0x50ae12['x']+_0x19a1e2-_univerjs_pro_engine_shape[_0x28f381(0x2ee)][_0x28f381(0x392)],'top':_0x50ae12['y']+_0x392b2b-_univerjs_pro_engine_shape[_0x28f381(0x2ee)][_0x28f381(0x392)]});return;}const _0x38c607={'left':_0x50ae12['x']+_0x19a1e2-_univerjs_pro_engine_shape[_0x28f381(0x2ee)][_0x28f381(0x392)],'top':_0x50ae12['y']+_0x392b2b-_univerjs_pro_engine_shape[_0x28f381(0x2ee)]['adjHandleSize'],'adjName':_0xbe2c59,'shapeId':this[_0x28f381(0x4bf)],'unitId':_0x309e29,'subUnitId':_0x2aa583,'width':_univerjs_pro_engine_shape[_0x28f381(0x2ee)][_0x28f381(0x392)]+0x8,'height':_univerjs_pro_engine_shape[_0x28f381(0x2ee)][_0x28f381(0x392)]+0x8,'zIndex':_univerjs_engine_render[_0x28f381(0x605)]+0x1,'evented':!![]},_0x3486f9=new SheetShapeAdjustPointObject(_0x28f381(0x465)+this[_0x28f381(0x4bf)]+'-'+_0xbe2c59,_0x38c607);this[_0x28f381(0x278)][_0x28f381(0x23c)](_0x3486f9),this[_0x28f381(0x612)](_0x3486f9,_0x9101a9,_0xbe2c59),_0x9101a9[_0x28f381(0x5ea)](_0x3486f9,_univerjs_engine_render[_0x28f381(0x605)]+0x1);}[_0xae170d(0x319)](){const _0x5d7df3=_0xae170d;if(this[_0x5d7df3(0x278)][_0x5d7df3(0x233)]===0x0)return;this[_0x5d7df3(0x278)][_0x5d7df3(0x253)](_0x5eeb63=>{_0x5eeb63['dispose']();}),this[_0x5d7df3(0x278)]=[];}[_0xae170d(0x329)](){const _0x2c829c=_0xae170d;this[_0x2c829c(0x515)]();}[_0xae170d(0x5c3)](_0x4a6dab,_0x15880d){const _0x4d7b2c=_0xae170d;var _0x4df84a;const _0x5811d2={'x':0x0,'y':0x0};if(!_0x4a6dab||!_0x15880d)return _0x5811d2;const _0xe1b9d9=this['_renderManagerService'][_0x4d7b2c(0x145)](_0x4a6dab);if(!_0xe1b9d9)return _0x5811d2;if(!_0xe1b9d9[_0x4d7b2c(0x5e1)](_univerjs_sheets_ui[_0x4d7b2c(0x4da)])[_0x4d7b2c(0x606)](_0x15880d))return _0x5811d2;const _0x143f73=_0xe1b9d9[_0x4d7b2c(0x5e1)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x1c978e=_0x143f73===null||_0x143f73===void 0x0?void 0x0:_0x143f73[_0x4d7b2c(0x25d)]();if(!_0x1c978e)return _0x5811d2;const _0x57956b=(_0x4df84a=this[_0x4d7b2c(0x434)][_0x4d7b2c(0x2b7)](_0x4a6dab))===null||_0x4df84a===void 0x0?void 0x0:_0x4df84a[_0x4d7b2c(0x21f)](_0x15880d);if(!_0x57956b)return _0x5811d2;const _0x5dc8e1=(0x0,_univerjs_sheets_ui[_0x4d7b2c(0x64c)])(_0x1c978e[_0x4d7b2c(0x1e6)],_0x1c978e[_0x4d7b2c(0x5cc)],_0xe1b9d9[_0x4d7b2c(0x2fc)],_0x57956b);if(!_0x5dc8e1)return _0x5811d2;return{'x':_0x5dc8e1[_0x4d7b2c(0x3b6)],'y':_0x5dc8e1[_0x4d7b2c(0x3c1)]};}['_getZoomRatio'](_0x5ac370,_0x18cd2d){const _0xe4f094=_0xae170d;var _0x83b390,_0x58823b;const _0x37ee55=(_0x83b390=this[_0xe4f094(0x434)][_0xe4f094(0x2b7)](_0x5ac370))===null||_0x83b390===void 0x0?void 0x0:_0x83b390[_0xe4f094(0x21f)](_0x18cd2d);return(_0x58823b=_0x37ee55===null||_0x37ee55===void 0x0?void 0x0:_0x37ee55[_0xe4f094(0x5d8)]())!==null&&_0x58823b!==void 0x0?_0x58823b:0x1;}[_0xae170d(0x612)](_0x558c34,_0x30f5a0,_0x2dcd30){const _0x4ad2ce=_0xae170d;this[_0x4ad2ce(0x163)]((0x0,_univerjs_core[_0x4ad2ce(0x43e)])(_0x558c34[_0x4ad2ce(0x139)]['subscribeEvent']((_0x59176c,_0x22e02e)=>{const _0x12825a=_0x4ad2ce;var _0x3c2819,_0x25305b,_0xef3082,_0x53728d;const _0x4bab57=_0x558c34['getDrawingSearch']();this[_0x12825a(0x4b2)]=this[_0x12825a(0x20a)](_0x4bab57[_0x12825a(0x40a)],_0x4bab57[_0x12825a(0x423)],_0x4bab57[_0x12825a(0x4eb)],_0x2dcd30),this['_activeShapeModel']=this['_sheetsShapeService'][_0x12825a(0x258)](_0x4bab57[_0x12825a(0x40a)],_0x4bab57['subUnitId'],_0x4bab57['drawingId']);const _0x3860f8=this[_0x12825a(0x5b0)][_0x12825a(0x5b9)]({'unitId':this['_unitId'],'subUnitId':this[_0x12825a(0x201)],'drawingId':this[_0x12825a(0x4bf)]}),{transform:_0x24480e}=_0x3860f8;if(_0x24480e){const {left:_0x4e6422,top:_0x97ddc8,width:_0x3c5821,height:_0x557134}=_0x24480e;this['_baseShapeLeft']=_0x4e6422||0x0,this[_0x12825a(0x597)]=_0x97ddc8||0x0,this['_baseShapeWidth']=_0x3c5821||0x0,this[_0x12825a(0x16b)]=_0x557134||0x0;}const _0x537ade=Boolean((_0x3c2819=_0x3860f8[_0x12825a(0x521)])===null||_0x3c2819===void 0x0?void 0x0:_0x3c2819['flipX']),_0x42018f=Boolean((_0x25305b=_0x3860f8[_0x12825a(0x521)])===null||_0x25305b===void 0x0?void 0x0:_0x25305b[_0x12825a(0x417)]),_0x5799f4=((_0xef3082=_0x3860f8['transform'])===null||_0xef3082===void 0x0?void 0x0:_0xef3082[_0x12825a(0xfe)])||0x0;this[_0x12825a(0x5b7)]=!![],_0x30f5a0['disableObjectsEvent']();const _0x344ba1=(_0x53728d=this['_activeShapeModel'])===null||_0x53728d===void 0x0?void 0x0:_0x53728d[_0x12825a(0x51b)](_0x2dcd30),_0x52472f={[_0x2dcd30]:_0x344ba1};this[_0x12825a(0x1ba)]=_0x30f5a0[_0x12825a(0x647)][_0x12825a(0x33c)]((_0x5d2b90,_0x2b6637)=>{const _0x56b30c=_0x12825a;if(!this[_0x56b30c(0x5b7)])return;const {offsetX:_0x20c74c,offsetY:_0x571de2}=_0x5d2b90,_0x2fcbb4=this['_activeAdjustInfo'];if(this[_0x56b30c(0x5e5)]&&_0x2fcbb4){_0x30f5a0[_0x56b30c(0x568)](),_0x30f5a0[_0x56b30c(0x455)](_univerjs_engine_render[_0x56b30c(0x586)][_0x56b30c(0x3fe)]);const _0x222a95={'left':0x0,'top':0x0,'width':this[_0x56b30c(0x587)],'height':this[_0x56b30c(0x16b)]},_0x29bd3c=this[_0x56b30c(0x5c3)](this[_0x56b30c(0x576)],this[_0x56b30c(0x201)]),_0x46df6b=this[_0x56b30c(0x619)](this[_0x56b30c(0x576)],this['_subUnitId']);let _0x474734=_0x20c74c/_0x46df6b+_0x29bd3c['x']-this[_0x56b30c(0x11d)],_0x4aa6ff=_0x571de2/_0x46df6b+_0x29bd3c['y']-this['_baseShapeTop'];if(_0x5799f4!==0x0){const _0x1ccbc9=this[_0x56b30c(0x587)]/0x2,_0x30c1fc=this[_0x56b30c(0x16b)]/0x2,_0x7b17b1=_0x5799f4*Math['PI']/0xb4,_0x1cddb3=Math[_0x56b30c(0x3a6)](_0x7b17b1),_0x315a90=Math[_0x56b30c(0x5cb)](_0x7b17b1),_0x4e0091=_0x474734-_0x1ccbc9,_0x56fa92=_0x4aa6ff-_0x30c1fc;_0x474734=_0x1ccbc9+(_0x4e0091*_0x1cddb3+_0x56fa92*_0x315a90),_0x4aa6ff=_0x30c1fc+(-_0x4e0091*_0x315a90+_0x56fa92*_0x1cddb3);}if(_0x537ade)_0x474734=this['_baseShapeWidth']-_0x474734;if(_0x42018f)_0x4aa6ff=this[_0x56b30c(0x16b)]-_0x4aa6ff;const _0x5d5e0a={'x':_0x474734,'y':_0x4aa6ff},_0x56012f=this[_0x56b30c(0x5e5)][_0x56b30c(0x387)](_0x222a95,_0x5d5e0a,_0x2fcbb4,_0x537ade,_0x42018f),_0x3b0ee0=_0x2fcbb4[_0x56b30c(0x13c)]||_0x2fcbb4[_0x56b30c(0x53f)]||_0x2fcbb4[_0x56b30c(0x3cc)]||_0x2fcbb4['gdRefR'];if(_0x3b0ee0===void 0x0)return;this[_0x56b30c(0x5e5)][_0x56b30c(0x30c)](_0x3b0ee0,_0x56012f);const _0x42d9e5=this[_0x56b30c(0x5b0)][_0x56b30c(0x5b9)]({'unitId':_0x4bab57['unitId'],'subUnitId':_0x4bab57[_0x56b30c(0x423)],'drawingId':_0x4bab57[_0x56b30c(0x4eb)]});_0x42d9e5&&(this[_0x56b30c(0x46a)][_0x56b30c(0x532)](_0x42d9e5,_0x30f5a0),this[_0x56b30c(0x3c6)]=this['_getShapeAdjustPointListById'](_0x4bab57[_0x56b30c(0x40a)],_0x4bab57[_0x56b30c(0x423)],_0x4bab57[_0x56b30c(0x4eb)]),this['_updateAdjustControlPositions']());}_0x2b6637[_0x56b30c(0x396)]();}),this[_0x12825a(0x42f)]=_0x30f5a0[_0x12825a(0x310)][_0x12825a(0x33c)]((_0x2a9817,_0x280f49)=>{const _0x494b7a=_0x12825a;this['_adjHandlerPointerMove'][_0x494b7a(0x28c)](),this[_0x494b7a(0x42f)][_0x494b7a(0x28c)](),_0x30f5a0[_0x494b7a(0x4c4)]();const _0x3c6db6=this['_activeAdjustInfo'];if(_0x3c6db6){const _0x49f20f=_0x4bab57['unitId'],_0x390256=_0x4bab57['subUnitId'],_0x42b233=_0x4bab57[_0x494b7a(0x4eb)],_0x3e6c84=_0x3c6db6['gdRefX']||_0x3c6db6['gdRefY']||_0x3c6db6[_0x494b7a(0x3cc)]||_0x3c6db6[_0x494b7a(0x336)];if(_0x3e6c84!==void 0x0){var _0x21f8bf;const _0x45e58b=(_0x21f8bf=this['_activeShapeModel'])===null||_0x21f8bf===void 0x0?void 0x0:_0x21f8bf[_0x494b7a(0x51b)](_0x3e6c84);if(_0x45e58b!==void 0x0)updateShapeData(this[_0x494b7a(0x1f1)],_0x49f20f,_0x390256,_0x42b233,{'oldShapeData':{'adjustValues':_0x52472f}},{'adjustValues':{[_0x3e6c84]:_0x45e58b}});}}this['_activeAdjustInfo']=void 0x0,this[_0x494b7a(0x5e5)]=void 0x0,this[_0x494b7a(0x5b7)]=![],_0x280f49['stopPropagation'](),_0x30f5a0[_0x494b7a(0x3e9)]();}),_0x22e02e[_0x12825a(0x396)]();})));}[_0xae170d(0x614)](){const _0x3ef017=_0xae170d,_0x4402e9=this['_univerInstanceService'][_0x3ef017(0x274)](_univerjs_core[_0x3ef017(0x293)][_0x3ef017(0x22b)]);this[_0x3ef017(0x163)](_0x4402e9[_0x3ef017(0x4e7)]((0x0,rxjs[_0x3ef017(0x62e)])(_0x575ce5=>{const _0x2704f6=_0x3ef017;if(!_0x575ce5)return rxjs['EMPTY'];return _0x575ce5[_0x2704f6(0x5b8)]['pipe']((0x0,rxjs[_0x2704f6(0x62e)])(_0x1c170c=>{const _0x438cc5=_0x2704f6;if(!_0x1c170c)return rxjs[_0x438cc5(0x456)];const _0xf2265d=_0x575ce5[_0x438cc5(0x34c)](),_0x306719=this[_0x438cc5(0x397)][_0x438cc5(0x145)](_0xf2265d),_0x3fd775=_0x306719===null||_0x306719===void 0x0?void 0x0:_0x306719['scene'];if(!_0x3fd775)return rxjs[_0x438cc5(0x456)];return(0x0,rxjs['of'])(_0x3fd775);}));}))[_0x3ef017(0x39a)](_0x57b027=>{const _0x1f708d=_0x3ef017,_0x4fe789=_0x57b027[_0x1f708d(0x1cf)]();this[_0x1f708d(0x163)](_0x57b027['onPointerMove$']['subscribeEvent'](()=>{const _0x69c1bf=_0x1f708d;if(this[_0x69c1bf(0x37e)]){}})),this[_0x1f708d(0x163)](_0x4fe789['changeStart$']['subscribe'](_0x1a12cf=>{const _0x5054aa=_0x1f708d,{objects:_0x17096f}=_0x1a12cf;this['_createShapeAdjustControls']();if(_0x17096f!==null&&_0x17096f[_0x5054aa(0x1b1)]===0x1){if(_0x17096f[_0x5054aa(0x109)]()['next']()[_0x5054aa(0x55e)]instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this['disposeWithMe'](_0x4fe789[_0x1f708d(0x24a)][_0x1f708d(0x39a)](()=>{const _0x342400=_0x1f708d;if(this[_0x342400(0x37e)])this[_0x342400(0x319)]();})),this[_0x1f708d(0x163)](_0x57b027[_0x1f708d(0x310)][_0x1f708d(0x33c)](()=>{const _0x434b08=_0x1f708d;this[_0x434b08(0x37e)]&&(this[_0x434b08(0x538)](![]),this['_createShapeAdjustControls']());})),this[_0x1f708d(0x163)](_0x4fe789[_0x1f708d(0x30f)]['subscribe'](()=>{const _0x2f1e00=_0x1f708d;this['_unitId']&&this[_0x2f1e00(0x201)]&&this[_0x2f1e00(0x4bf)]&&(this[_0x2f1e00(0x5b0)]['getDrawingByParam']({'unitId':this[_0x2f1e00(0x576)],'subUnitId':this[_0x2f1e00(0x201)],'drawingId':this[_0x2f1e00(0x4bf)]})&&(this[_0x2f1e00(0x3c6)]=this[_0x2f1e00(0x484)](this[_0x2f1e00(0x576)],this[_0x2f1e00(0x201)],this['_activeShapeId']),this[_0x2f1e00(0x329)]()));}));}));}['_registerDrawingFocusChangeHandler'](){const _0x942f60=_0xae170d;this[_0x942f60(0x163)](this[_0x942f60(0x5b0)][_0x942f60(0x3e0)]['subscribe'](_0x17ba4a=>{const _0x50cebb=_0x942f60;if(_0x17ba4a[_0x50cebb(0x233)]===0x1){const _0x1c8e1e=_0x17ba4a[0x0];if(_0x1c8e1e[_0x50cebb(0x19b)]===_univerjs_core['DrawingTypeEnum'][_0x50cebb(0x5f5)]){this['_activeShapeId']=_0x1c8e1e[_0x50cebb(0x4eb)];const {unitId:_0x4377e6,subUnitId:_0x27e4ce}=_0x1c8e1e;this['_activeShapeAdjustPointList']=this[_0x50cebb(0x484)](_0x4377e6,_0x27e4ce,this['_activeShapeId']),this[_0x50cebb(0x576)]=_0x4377e6,this[_0x50cebb(0x201)]=_0x27e4ce,this[_0x50cebb(0x319)](),this[_0x50cebb(0x515)]();}else this[_0x50cebb(0x4bf)]=null,this[_0x50cebb(0x3c6)]=void 0x0,this[_0x50cebb(0x576)]=null,this[_0x50cebb(0x201)]=null,this[_0x50cebb(0x319)]();}(_0x17ba4a[_0x50cebb(0x233)]>0x1||_0x17ba4a[_0x50cebb(0x233)]===0x0)&&(this[_0x50cebb(0x4bf)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x50cebb(0x319)]());})),this[_0x942f60(0x163)](this[_0x942f60(0x5b0)]['update$']['subscribe'](_0x294625=>{const _0x2862e0=_0x942f60;if(_0x294625[_0x2862e0(0x233)]===0x1){var _0x5f5ced;const _0x5daa32=_0x294625[0x0];if(((_0x5f5ced=this['_drawingManagerService'][_0x2862e0(0x5b9)](_0x5daa32))===null||_0x5f5ced===void 0x0?void 0x0:_0x5f5ced[_0x2862e0(0x19b)])===_univerjs_core[_0x2862e0(0x4c8)][_0x2862e0(0x5f5)])this[_0x2862e0(0x38d)](!![]);}})),this[_0x942f60(0x163)](this['_drawingManagerService'][_0x942f60(0x599)][_0x942f60(0x39a)](_0x1a98b1=>{const _0x57b51a=_0x942f60;for(const _0x2916e8 of _0x1a98b1)this[_0x57b51a(0x4bf)]===_0x2916e8['drawingId']&&(this[_0x57b51a(0x4bf)]=null,this[_0x57b51a(0x3c6)]=void 0x0,this[_0x57b51a(0x576)]=null,this[_0x57b51a(0x201)]=null,this[_0x57b51a(0x319)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0xae170d(0x4f4)]),__decorateParam(0x2,_univerjs_drawing[_0xae170d(0x231)]),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)])),__decorateParam(0x4,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_engine_render[_0xae170d(0x213)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core[_0xae170d(0x567)]),__decorateParam(0x7,_univerjs_core[_0xae170d(0x12a)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0xae170d(0x406),'type':_univerjs_core[_0xae170d(0x4c5)]['OPERATION'],'handler':(_0x41a560,_0x3b93fa)=>{const _0x4b982d=_0xae170d,_0x375f43=_0x41a560[_0x4b982d(0x59e)](_univerjs_drawing[_0x4b982d(0x231)]),_0x301bc0=_0x41a560[_0x4b982d(0x59e)](_univerjs_engine_render['IRenderManagerService']),_0x29ea9f=_0x41a560[_0x4b982d(0x59e)](SheetShapeAdjustController);if(_0x3b93fa==null)return!![];if(_0x3b93fa['length']>0x0){var _0x38769f;const _0x2c02d8=(_0x38769f=_0x301bc0['getRenderById'](_0x3b93fa[0x0]['unitId']))===null||_0x38769f===void 0x0?void 0x0:_0x38769f['scene'];if(_0x2c02d8){const {unitId:_0x4ecf93,subUnitId:_0x5d33cb,drawingId:_0x3aa398}=_0x3b93fa[0x0],_0x3cc808=(0x0,_univerjs_drawing[_0x4b982d(0x401)])({'unitId':_0x4ecf93,'subUnitId':_0x5d33cb,'drawingId':_0x3aa398},void 0x0),_0x587036=_0x2c02d8[_0x4b982d(0x299)](_0x3cc808);if(_0x587036){var _0x4f7430;(_0x4f7430=_0x301bc0['getRenderById'](_0x3b93fa[0x0][_0x4b982d(0x40a)]))===null||_0x4f7430===void 0x0||(_0x4f7430=_0x4f7430['scene']['getTransformer']())===null||_0x4f7430===void 0x0||_0x4f7430['activeAnObject'](_0x587036);}}_0x375f43[_0x4b982d(0x5c5)](_0x3b93fa),_0x29ea9f['setShouldShowAdjust'](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0xae170d(0x4c5)][_0xae170d(0x639)],'id':'sheet.command.menu-insert-shape','handler':async(_0x38c0a8,_0x4c22a4)=>{const _0x42a18d=_0xae170d,_0x3f55f7=(0x0,_univerjs_sheets[_0x42a18d(0x3e2)])(_0x38c0a8[_0x42a18d(0x59e)](_univerjs_core[_0x42a18d(0x567)]));if(!_0x3f55f7)return![];const _0x3e9e26=_0x38c0a8[_0x42a18d(0x59e)](_univerjs_sheets[_0x42a18d(0x4f0)])[_0x42a18d(0x52f)]();if(!_0x3e9e26)return![];const _0x2e629c=_0x38c0a8[_0x42a18d(0x59e)](_univerjs_core[_0x42a18d(0x12a)]),{unitId:_0x53f25e,subUnitId:_0xc58714}=_0x3f55f7,{value:_0x3d3a87,enhanceParams:_0x909749}=_0x4c22a4,{range:_0x519a79}=_0x3e9e26,_0x1fc539={'unitId':_0x53f25e,'subUnitId':_0xc58714,'shapeType':_0x3d3a87,'range':_0x519a79,'shapeId':(0x0,_univerjs_core[_0x42a18d(0x2ff)])()};if(_0x909749){const _0x2f8309=(0x0,_univerjs_pro_engine_shape[_0x42a18d(0x468)])(_0x3d3a87),_0x3a946d=_0x3d3a87===_univerjs_pro_engine_shape[_0x42a18d(0x533)][_0x42a18d(0x219)];if(_0x2f8309&&(_0x909749['startArrow']||_0x909749['endArrow']))_0x1fc539[_0x42a18d(0x2d0)]={'ln':{'startArrow':_0x909749['startArrow']?{'type':_univerjs_pro_engine_shape[_0x42a18d(0x4e0)][_0x42a18d(0xf2)],'size':_univerjs_pro_engine_shape[_0x42a18d(0x32f)][_0x42a18d(0x633)]}:void 0x0,'endArrow':_0x909749[_0x42a18d(0x26f)]?{'type':_univerjs_pro_engine_shape[_0x42a18d(0x4e0)]['Arrow'],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x42a18d(0x28d)]}:void 0x0}};if(_0x3a946d&&(_0x909749['horizontal']||_0x909749[_0x42a18d(0xf3)]))_0x1fc539[_0x42a18d(0x2d0)]={'fill':{'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x42a18d(0x36c)],'color':_0x42a18d(0x523)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape[_0x42a18d(0x3d2)][_0x42a18d(0x2fd)],'width':0x1,'color':_0x42a18d(0x604)},'shapeText':{'isHorizontal':!!_0x909749['horizontal']}};}const _0x293608=_0x2e629c[_0x42a18d(0x24e)](_univerjs_pro_sheets_shape[_0x42a18d(0x63d)]['id'],_0x1fc539);return setTimeout(()=>{const _0x2157d0=_0x42a18d;_0x2e629c['executeCommand'](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x53f25e,'subUnitId':_0xc58714,'drawingId':_0x1fc539[_0x2157d0(0x2f8)]}]);},0xc8),_0x293608;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x5c58b7,_0x227ac2){const _0x31c828=_0xae170d;super(),this[_0x31c828(0x3a3)]=_0x5c58b7,this[_0x31c828(0x5b0)]=_0x227ac2,this[_0x31c828(0x56d)](),this[_0x31c828(0x3a3)][_0x31c828(0x1bd)](!![]),this[_0x31c828(0x163)]({'dispose':()=>this[_0x31c828(0x3a3)][_0x31c828(0x1bd)](![])});}['_registerImageShapeClipDelegate'](){const _0xc4c01c=_0xae170d,_0x429e61=this['_clipService'],_0x37fd03=new Map(),_0xef3918=_0x429e61[_0xc4c01c(0x4c1)]((_0xb23c58,_0x2dfd58,_0x182152,_0x5af202,_0x6655b)=>{const _0x453d68=_0xc4c01c,_0x17ced3=_0x2dfd58;if(_0x17ced3===_univerjs_pro_engine_shape[_0x453d68(0x533)][_0x453d68(0x5f3)]||_0x2dfd58===_0x453d68(0x5e3))return![];try{let _0x362085=_0x37fd03[_0x453d68(0x59e)](_0x2dfd58);!_0x362085&&(_0x362085=new _univerjs_pro_engine_shape[(_0x453d68(0x58e))](_0x17ced3,_0x453d68(0x288)+_0x2dfd58),_0x37fd03[_0x453d68(0x57b)](_0x2dfd58,_0x362085));if(_0x6655b)_0x362085[_0x453d68(0x2b2)]({'adjustValues':_0x6655b},!![]);return _0x362085[_0x453d68(0x5ce)]({'width':_0x182152,'height':_0x5af202}),_0x362085[_0x453d68(0x39b)](_0xb23c58,{'left':0x0,'top':0x0,'width':_0x182152,'height':_0x5af202});}catch{return![];}});this[_0xc4c01c(0x163)](_0xef3918),this[_0xc4c01c(0x163)]({'dispose':()=>_0x37fd03[_0xc4c01c(0x5af)]()});}[_0xae170d(0x637)](_0x4c5b01,_0x4942a1,_0x5accd5,_0x16ee59,_0x224bc4){const _0xde1f7e=_0xae170d,_0x93031c=this[_0xde1f7e(0x5b0)]['getDrawingData'](_0x4c5b01,_0x4942a1);if(!_0x93031c[_0x5accd5])return;const _0x2b8b28={..._0x93031c[_0x5accd5],'prstGeom':_0x16ee59,'adjustValues':_0x224bc4};this[_0xde1f7e(0x5b0)][_0xde1f7e(0x5c7)]([_0x2b8b28]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_drawing_ui[_0xae170d(0x30b)])),__decorateParam(0x1,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_drawing['IDrawingManagerService']))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Line'],'icon':'ShapeLineIcon','name':_0xae170d(0x226)},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['StraightConnector1'],'icon':'ShapeStraightConnector1Icon','name':'shape.type.straight-connector1','endArrow':!![]},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x3dd)],'icon':'ShapeStraightConnector2Icon','name':'shape.type.straight-connector2','endArrow':!![],'startArrow':!![]},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2e7)],'icon':'ShapeBentConnector3Icon','name':_0xae170d(0x501)},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2e7)],'icon':'ShapeBentConnector3Arrow1Icon','name':_0xae170d(0x5c2),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x2e7)],'icon':'ShapeBentConnector3Arrow2Icon','name':_0xae170d(0x370),'endArrow':!![],'startArrow':!![]},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x642)],'icon':_0xae170d(0x447),'name':_0xae170d(0x1cd)},{'group':_0xae170d(0x549),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x642)],'icon':_0xae170d(0x240),'name':_0xae170d(0x45f),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x642)],'icon':_0xae170d(0xef),'name':_0xae170d(0x25b),'endArrow':!![],'startArrow':!![]},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Rect'],'icon':_0xae170d(0x1d1),'name':'shape.type.rect'},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RoundRect'],'icon':'ShapeRoundRectIcon','name':_0xae170d(0x3f0)},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x107)],'icon':'ShapeSnip1RectIcon','name':'shape.type.snip1-rect'},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x26a)],'icon':'ShapeSnip2SameRectIcon','name':'shape.type.snip2-same-rect'},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x31d)],'icon':_0xae170d(0x4d3),'name':_0xae170d(0x301)},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x58b)],'icon':_0xae170d(0x520),'name':_0xae170d(0x5e7)},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Round1Rect'],'icon':_0xae170d(0x410),'name':'shape.type.round1-rect'},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x395)],'icon':_0xae170d(0x572),'name':_0xae170d(0x1b7)},{'group':_0xae170d(0x394),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Round2DiagRect'],'icon':_0xae170d(0x58c),'name':_0xae170d(0x312)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x219)],'icon':_0xae170d(0x3df),'name':_0xae170d(0x1a3),'horizontal':!![]},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Rect'],'icon':_0xae170d(0x224),'name':'shape.type.rect-textbox-vertical','vertical':!![]},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x5df)],'icon':_0xae170d(0x137),'name':_0xae170d(0x425)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Triangle'],'icon':_0xae170d(0x581),'name':_0xae170d(0x21b)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x373)],'icon':_0xae170d(0x557),'name':_0xae170d(0x15e)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x527)],'icon':_0xae170d(0x5a9),'name':_0xae170d(0x45a)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x437)],'icon':_0xae170d(0x353),'name':_0xae170d(0x53b)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Diamond'],'icon':_0xae170d(0x2f6),'name':_0xae170d(0x4fb)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['Pentagon'],'icon':_0xae170d(0x222),'name':_0xae170d(0x2cf)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x361)],'icon':'ShapeHexagonIcon','name':_0xae170d(0x327)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4c9)],'icon':_0xae170d(0x64d),'name':_0xae170d(0x142)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1e8)],'icon':_0xae170d(0x2c5),'name':'shape.type.octagon'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2dc)],'icon':_0xae170d(0x59b),'name':_0xae170d(0x16e)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x22a)],'icon':_0xae170d(0x55f),'name':_0xae170d(0x402)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4e4)],'icon':_0xae170d(0x2e3),'name':_0xae170d(0x33b)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x31c)],'icon':_0xae170d(0x176),'name':'shape.type.chord'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1a4)],'icon':_0xae170d(0x5c0),'name':_0xae170d(0x429)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x32d)],'icon':_0xae170d(0x5e0),'name':_0xae170d(0x48a)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['HalfFrame'],'icon':_0xae170d(0x4a1),'name':_0xae170d(0x31b)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2f1)],'icon':_0xae170d(0x1c3),'name':_0xae170d(0x263)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['DiagStripe'],'icon':_0xae170d(0x330),'name':'shape.type.diag-stripe'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1f0)],'icon':_0xae170d(0x4b3),'name':_0xae170d(0x577)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x355)],'icon':_0xae170d(0x4e2),'name':_0xae170d(0x4b0)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x13e)],'icon':'ShapeCanIcon','name':'shape.type.can'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x574)],'icon':_0xae170d(0x42c),'name':_0xae170d(0x3bd)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x3a8)],'icon':_0xae170d(0x400),'name':_0xae170d(0x454)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4d6)],'icon':'ShapeDonutIcon','name':_0xae170d(0x3d4)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2e5)],'icon':_0xae170d(0x249),'name':_0xae170d(0x19c)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['BlockArc'],'icon':_0xae170d(0x536),'name':'shape.type.block-arc'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x467)],'icon':_0xae170d(0x298),'name':_0xae170d(0xf7)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0xec)],'icon':'ShapeSmileyFaceIcon','name':_0xae170d(0x1c7)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x488)],'icon':'ShapeHeartIcon','name':_0xae170d(0x26e)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x44c)],'icon':_0xae170d(0xf1),'name':_0xae170d(0x498)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x143)],'icon':_0xae170d(0x311),'name':_0xae170d(0x350)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2c7)],'icon':_0xae170d(0x20d),'name':'shape.type.moon'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x12b)],'icon':_0xae170d(0x1ac),'name':'shape.type.cloud'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Arc'],'icon':_0xae170d(0x592),'name':'shape.type.arc'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x283)],'icon':'ShapeBracketPairIcon','name':'shape.type.bracket-pair'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x270)],'icon':_0xae170d(0x65b),'name':_0xae170d(0x321)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x457)],'icon':_0xae170d(0x529),'name':_0xae170d(0x483)},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x622)],'icon':_0xae170d(0x5e9),'name':'shape.type.right-bracket'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4f8)],'icon':_0xae170d(0x414),'name':'shape.type.left-brace'},{'group':_0xae170d(0x569),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['RightBrace'],'icon':'ShapeRightBraceIcon','name':_0xae170d(0x5c4)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x594)],'icon':_0xae170d(0x1c0),'name':_0xae170d(0x3ef)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftArrow'],'icon':_0xae170d(0x17d),'name':_0xae170d(0x1ad)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x148)],'icon':'ShapeUpArrowIcon','name':_0xae170d(0x14e)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2cc)],'icon':'ShapeDownArrowIcon','name':_0xae170d(0x5ca)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3f6)],'icon':_0xae170d(0x147),'name':_0xae170d(0x49e)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4dc)],'icon':_0xae170d(0x2ca),'name':_0xae170d(0x2cd)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x25a)],'icon':_0xae170d(0x624),'name':'shape.type.quad-arrow'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0xeb)],'icon':_0xae170d(0x2a4),'name':_0xae170d(0x1ef)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4d4)],'icon':_0xae170d(0x2a9),'name':_0xae170d(0x4d1)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['UturnArrow'],'icon':'ShapeUturnArrowIcon','name':_0xae170d(0x106)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x1dc)],'icon':_0xae170d(0x507),'name':'shape.type.left-up-arrow'},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x149)],'icon':_0xae170d(0x551),'name':_0xae170d(0x452)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1be)],'icon':'ShapeCurvedRightArrowIcon','name':_0xae170d(0x419)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['CurvedLeftArrow'],'icon':_0xae170d(0x2d6),'name':'shape.type.curved-left-arrow'},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['CurvedUpArrow'],'icon':_0xae170d(0x53c),'name':_0xae170d(0x37b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x295)],'icon':_0xae170d(0x1af),'name':_0xae170d(0x3cf)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2fe)],'icon':'ShapeStripedRightArrowIcon','name':_0xae170d(0xf6)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['NotchedRightArrow'],'icon':_0xae170d(0x12e),'name':_0xae170d(0x220)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['HomePlate'],'icon':'ShapeHomePlateIcon','name':'shape.type.home-plate'},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3b5)],'icon':'ShapeChevronIcon','name':_0xae170d(0x28a)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x338)],'icon':_0xae170d(0x655),'name':_0xae170d(0x62d)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x562)],'icon':'ShapeDownArrowCalloutIcon','name':_0xae170d(0x552)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['LeftArrowCallout'],'icon':_0xae170d(0x19a),'name':_0xae170d(0x5ed)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x17f)],'icon':'ShapeUpArrowCalloutIcon','name':_0xae170d(0x545)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x5be)],'icon':_0xae170d(0x251),'name':_0xae170d(0x304)},{'group':_0xae170d(0x469),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4ce)],'icon':_0xae170d(0x130),'name':_0xae170d(0x280)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x40e)],'icon':_0xae170d(0x25f),'name':_0xae170d(0x530)},{'group':_0xae170d(0x56a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x2a2)],'icon':'ShapeMathPlusIcon','name':_0xae170d(0x1eb)},{'group':_0xae170d(0x56a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['MathMinus'],'icon':'ShapeMathMinusIcon','name':_0xae170d(0x2b9)},{'group':_0xae170d(0x56a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x345)],'icon':_0xae170d(0x2bf),'name':'shape.type.math-multiply'},{'group':'equationShape','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['MathDivide'],'icon':'ShapeMathDivideIcon','name':_0xae170d(0x613)},{'group':_0xae170d(0x56a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x111)],'icon':'ShapeMathEqualIcon','name':_0xae170d(0x12f)},{'group':'equationShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x5b2)],'icon':_0xae170d(0x490),'name':'shape.type.math-not-equal'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartProcess'],'icon':'ShapeFlowChartProcessIcon','name':_0xae170d(0x18b)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartAlternateProcess'],'icon':_0xae170d(0x289),'name':_0xae170d(0x449)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartDecision'],'icon':_0xae170d(0x164),'name':_0xae170d(0x1d4)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowChartInputOutput'],'icon':'ShapeFlowChartInputOutputIcon','name':'shape.type.flow-chart-input-output'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x51c)],'icon':'ShapeFlowChartPredefinedProcessIcon','name':_0xae170d(0x20b)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3ce)],'icon':_0xae170d(0x3e6),'name':_0xae170d(0x3fc)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartDocument'],'icon':_0xae170d(0x12c),'name':_0xae170d(0x5ae)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2a8)],'icon':_0xae170d(0x3ff),'name':_0xae170d(0x3a1)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartTerminator'],'icon':'ShapeFlowChartTerminatorIcon','name':_0xae170d(0x2c4)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x30d)],'icon':'ShapeFlowChartPreparationIcon','name':_0xae170d(0x315)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartManualInput'],'icon':_0xae170d(0x41c),'name':_0xae170d(0x61b)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x348)],'icon':_0xae170d(0x188),'name':_0xae170d(0x5f0)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4ab)],'icon':_0xae170d(0x326),'name':'shape.type.flow-chart-connector'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x135)],'icon':'ShapeFlowChartOffpageConnectorIcon','name':_0xae170d(0x108)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartPunchedCard'],'icon':_0xae170d(0x167),'name':_0xae170d(0x262)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartPunchedTape'],'icon':_0xae170d(0x4ec),'name':'shape.type.flow-chart-punched-tape'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x54d)],'icon':_0xae170d(0x2d9),'name':_0xae170d(0x524)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x26c)],'icon':_0xae170d(0x45e),'name':_0xae170d(0x265)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['FlowchartCollate'],'icon':'ShapeFlowChartCollateIcon','name':_0xae170d(0x140)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartSort'],'icon':_0xae170d(0x2db),'name':_0xae170d(0x5a6)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x124)],'icon':_0xae170d(0x29e),'name':_0xae170d(0x4be)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3a0)],'icon':'ShapeFlowChartMergeIcon','name':'shape.type.flow-chart-merge'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x48e)],'icon':'ShapeFlowChartOnlineStorageIcon','name':_0xae170d(0x1b3)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartDelay'],'icon':'ShapeFlowChartDelayIcon','name':'shape.type.flow-chart-delay'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x284)],'icon':_0xae170d(0x26d),'name':'shape.type.flow-chart-magnetic-tape'},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x5eb)],'icon':_0xae170d(0x15a),'name':_0xae170d(0x1de)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x543)],'icon':_0xae170d(0x2bd),'name':_0xae170d(0x4ba)},{'group':_0xae170d(0x5fa),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowchartDisplay'],'icon':_0xae170d(0x105),'name':_0xae170d(0x3ca)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2ac)],'icon':_0xae170d(0x616),'name':_0xae170d(0x598)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1d6)],'icon':_0xae170d(0x64b),'name':_0xae170d(0x36b)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x376)],'icon':_0xae170d(0x418),'name':'shape.type.star4'},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x64a)],'icon':_0xae170d(0x4e1),'name':_0xae170d(0x119)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1c5)],'icon':_0xae170d(0x593),'name':_0xae170d(0x57f)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x492)],'icon':_0xae170d(0x14b),'name':_0xae170d(0x3f2)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Star8'],'icon':_0xae170d(0x3ab),'name':_0xae170d(0x5ab)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x1cc)],'icon':_0xae170d(0x2b1),'name':_0xae170d(0x46d)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x368)],'icon':_0xae170d(0x5f8),'name':_0xae170d(0x30e)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x250)],'icon':_0xae170d(0x1a1),'name':'shape.type.star16'},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x476)],'icon':_0xae170d(0x371),'name':_0xae170d(0x356)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x209)],'icon':_0xae170d(0x560),'name':_0xae170d(0x62c)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0xf9)],'icon':_0xae170d(0x636),'name':_0xae170d(0x3bc)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3ea)],'icon':_0xae170d(0x269),'name':_0xae170d(0x29a)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3a2)],'icon':_0xae170d(0x43d),'name':'shape.type.ellipse-ribbon2'},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x428)],'icon':_0xae170d(0x472),'name':'shape.type.ellipse-ribbon'},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x62a)],'icon':_0xae170d(0x26b),'name':_0xae170d(0x4b9)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x23e)],'icon':'ShapeHorizontalScrollIcon','name':_0xae170d(0x21c)},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x175)],'icon':_0xae170d(0x297),'name':'shape.type.wave'},{'group':_0xae170d(0x34a),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x53a)],'icon':_0xae170d(0x256),'name':_0xae170d(0x3db)},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x5b3)],'icon':'ShapeWedgeRectCalloutIcon','name':_0xae170d(0x127)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['WedgeRoundRectCallout'],'icon':_0xae170d(0x5b5),'name':_0xae170d(0x2c6)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x486)],'icon':_0xae170d(0x4f6),'name':_0xae170d(0x61f)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1b4)],'icon':_0xae170d(0x4af),'name':'shape.type.cloud-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x632)],'icon':_0xae170d(0x480),'name':_0xae170d(0x32e)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x358)],'icon':_0xae170d(0x3ed),'name':'shape.type.border-callout2'},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['BorderCallout3'],'icon':_0xae170d(0x5ef),'name':'shape.type.border-callout3'},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentCallout1'],'icon':_0xae170d(0x3e1),'name':'shape.type.accent-callout1'},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['AccentCallout2'],'icon':'ShapeAccentCallout2Icon','name':_0xae170d(0xf4)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x362)],'icon':_0xae170d(0x582),'name':_0xae170d(0x141)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x1d7)],'icon':_0xae170d(0xed),'name':_0xae170d(0x2f9)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x4b6)],'icon':_0xae170d(0x100),'name':_0xae170d(0x448)},{'group':'callout','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x41d)],'icon':_0xae170d(0x191),'name':_0xae170d(0x43a)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x55d)],'icon':_0xae170d(0x5d1),'name':_0xae170d(0x431)},{'group':_0xae170d(0x323),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x5c9)],'icon':_0xae170d(0x158),'name':'shape.type.accent-border-callout2'},{'group':'callout','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x427)],'icon':_0xae170d(0x173),'name':_0xae170d(0x206)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x477)],'icon':_0xae170d(0x3dc),'name':_0xae170d(0x4a7)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['LeftRightCircularArrow'],'icon':'ShapeLeftRightCircularArrowIcon','name':_0xae170d(0x3c2)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x23d)],'icon':_0xae170d(0x535),'name':'shape.type.swoosh-arrow'},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x296)],'icon':_0xae170d(0x229),'name':_0xae170d(0x2f4)},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['PieWedge'],'icon':_0xae170d(0x38c),'name':_0xae170d(0x514)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x542)],'icon':_0xae170d(0x18c),'name':_0xae170d(0x652)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x41b)],'icon':'ShapeGear6Icon','name':_0xae170d(0x537)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x52e)],'icon':_0xae170d(0x4bc),'name':_0xae170d(0x37a)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x640)],'icon':_0xae170d(0x45c),'name':'shape.type.corner-tabs'},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['ActionButtonBackPrevious'],'icon':_0xae170d(0x101),'name':_0xae170d(0xfb)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonForwardNext'],'icon':'ShapeActionButtonForwardNextIcon','name':'shape.type.action-button-forward-next'},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x14f)],'icon':_0xae170d(0x2d3),'name':_0xae170d(0x5bc)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['ActionButtonEnd'],'icon':_0xae170d(0x1e4),'name':_0xae170d(0x216)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonHome'],'icon':'ShapeActionButtonHomeIcon','name':'shape.type.action-button-home'},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2e2)],'icon':_0xae170d(0x5a2),'name':_0xae170d(0x461)},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4d9)],'icon':_0xae170d(0x566),'name':'shape.type.action-button-return'},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x3d9)],'icon':'ShapeActionButtonMovieIcon','name':'shape.type.action-button-movie'},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x340)],'icon':_0xae170d(0x3d8),'name':_0xae170d(0x5b4)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x2a6)],'icon':_0xae170d(0x5f6),'name':_0xae170d(0x12d)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x4e8)],'icon':_0xae170d(0x360),'name':_0xae170d(0x2d4)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x246)],'icon':_0xae170d(0x318),'name':_0xae170d(0x150)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x1fd)],'icon':_0xae170d(0xf0),'name':_0xae170d(0x10f)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x61c)],'icon':_0xae170d(0x1df),'name':_0xae170d(0x122)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x5e8)],'icon':_0xae170d(0x29d),'name':'shape.type.chart-x'},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['FlowChartOfflineStorage'],'icon':_0xae170d(0x3d5),'name':_0xae170d(0x424)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x50b)],'icon':'ShapeLineInvIcon','name':'shape.type.line-inv'},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xae170d(0x60a)],'icon':_0xae170d(0x5dc),'name':_0xae170d(0x407)},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x50a)],'icon':_0xae170d(0x5e2),'name':_0xae170d(0x10a)},{'group':'other','type':_univerjs_pro_engine_shape[_0xae170d(0x533)]['UpDownArrowCallout'],'icon':'ShapeUpDownArrowCalloutIcon','name':_0xae170d(0x28e)},{'group':_0xae170d(0x20f),'type':_univerjs_pro_engine_shape[_0xae170d(0x533)][_0xae170d(0x443)],'icon':_0xae170d(0x2f7),'name':_0xae170d(0x48c)}],SHAPE_PICKER_COMPONENT=_0xae170d(0x53d);function ShapePickerComponent({onShapeClick:_0x42f352,excludeGroups:_0x92a4e6}){const _0x3cb37d=_0xae170d,_0x1f87e1=(0x0,_univerjs_ui[_0x3cb37d(0x54f)])(_univerjs_core[_0x3cb37d(0x14d)]),_0x452a0a=(0x0,_univerjs_ui[_0x3cb37d(0x54f)])(_univerjs_ui[_0x3cb37d(0x34d)]),_0x4800bd=(_0x92a4e6?shapeTypeOptions[_0x3cb37d(0x4c3)](_0x42e401=>!_0x92a4e6[_0x3cb37d(0x4de)](_0x42e401[_0x3cb37d(0x328)])):shapeTypeOptions)[_0x3cb37d(0x1b2)]((_0x56efb0,_0x26c2b7)=>{const _0x3c3f0f=_0x3cb37d;if(!_0x56efb0[_0x26c2b7[_0x3c3f0f(0x328)]])_0x56efb0[_0x26c2b7[_0x3c3f0f(0x328)]]=[];return _0x56efb0[_0x26c2b7[_0x3c3f0f(0x328)]][_0x3c3f0f(0x23c)](_0x26c2b7),_0x56efb0;},{});return(0x0,react_jsx_runtime[_0x3cb37d(0x499)])(_0x3cb37d(0x405),{'className':_0x3cb37d(0x3c9),'children':Object[_0x3cb37d(0x46e)](_0x4800bd)[_0x3cb37d(0x553)](([_0x4cce42,_0x277a71])=>(0x0,react_jsx_runtime[_0x3cb37d(0x44a)])(_0x3cb37d(0x405),{'className':_0x3cb37d(0x403),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x3cb37d(0x103),'children':_0x1f87e1['t'](_0x3cb37d(0x458)+_0x4cce42)}),(0x0,react_jsx_runtime[_0x3cb37d(0x499)])(_0x3cb37d(0x405),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0x277a71[_0x3cb37d(0x553)](_0x11cd5a=>{const _0x27009f=_0x3cb37d,_0x2d38bf=_0x452a0a['get'](_0x11cd5a['icon']);return(0x0,react_jsx_runtime[_0x27009f(0x499)])(_0x27009f(0x405),{'title':_0x1f87e1['t'](_0x11cd5a[_0x27009f(0x1fe)]),'onClick':()=>_0x42f352(_0x11cd5a),'className':_0x27009f(0x2bb),'children':_0x2d38bf&&(0x0,react_jsx_runtime[_0x27009f(0x499)])(_0x2d38bf,{'className':'univer-size-full'})},_0x11cd5a[_0x27009f(0x1fe)]);})})]},_0x4cce42))});}function ImageClipShapePicker(){const _0x2b01b7=_0xae170d,_0x48df27=(0x0,_univerjs_ui[_0x2b01b7(0x54f)])(_univerjs_core['LocaleService']),_0x3415ab=(0x0,_univerjs_ui[_0x2b01b7(0x54f)])(_univerjs_drawing[_0x2b01b7(0x231)]),_0x52df5d=(0x0,_univerjs_ui[_0x2b01b7(0x54f)])(ImageShapeClipController),[_0x49e07e,_0x932087]=(0x0,react['useState'])(![]),_0x154ff1=_0x42c655=>{const _0x1aa988=_0x2b01b7,_0x4800f3=_0x3415ab['getFocusDrawings']()[_0x1aa988(0xee)](_0x51545a=>_0x51545a[_0x1aa988(0x19b)]===_univerjs_core[_0x1aa988(0x4c8)][_0x1aa988(0x5bb)]);if(!_0x4800f3)return;const {unitId:_0x4eddeb,subUnitId:_0x5ddc6b,drawingId:_0xce053c}=_0x4800f3;_0x52df5d[_0x1aa988(0x637)](_0x4eddeb,_0x5ddc6b,_0xce053c,_0x42c655[_0x1aa988(0x42d)]),_0x932087(![]);};return(0x0,react_jsx_runtime[_0x2b01b7(0x499)])(_univerjs_design[_0x2b01b7(0x245)],{'side':_0x2b01b7(0x367),'open':_0x49e07e,'onOpenChange':_0x932087,'overlay':(0x0,react_jsx_runtime[_0x2b01b7(0x499)])(ShapePickerComponent,{'onShapeClick':_0x154ff1,'excludeGroups':[_0x2b01b7(0x549)]}),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Button'],{'children':_0x48df27['t'](_0x2b01b7(0x183))})});}function ShapePicker(){const _0x1d557c=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x552402=_0x3ffb01=>{const _0x412565=_0x513a;_0x1d557c[_0x412565(0x383)](MenuInsertShapeCommand['id'],{'value':_0x3ffb01[_0x412565(0x42d)],'enhanceParams':{'endArrow':_0x3ffb01[_0x412565(0x26f)],'startArrow':_0x3ffb01['startArrow'],'horizontal':_0x3ffb01[_0x412565(0x42b)],'vertical':_0x3ffb01[_0x412565(0xf3)]}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x552402});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':'align.left','icon':_0xae170d(0x2f2),'value':_univerjs_core['HorizontalAlign']['LEFT']},{'label':_0xae170d(0x2e8),'icon':_0xae170d(0x555),'value':_univerjs_core['HorizontalAlign'][_0xae170d(0x46c)]},{'label':_0xae170d(0x525),'icon':'RightJustifyingIcon','value':_univerjs_core['HorizontalAlign']['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x15937b){const _0x42879a=_0xae170d,_0x33a4d0=_0x15937b[_0x42879a(0x59e)](_univerjs_core[_0x42879a(0x4f4)]),_0x31834a=_0x15937b[_0x42879a(0x59e)](_univerjs_core[_0x42879a(0x393)]);return{'id':_univerjs_docs_ui[_0x42879a(0x24d)]['id'],'tooltip':_0x42879a(0x320),'type':_univerjs_ui[_0x42879a(0x641)][_0x42879a(0x351)],'icon':_0x42879a(0x4f7),'selections':[{'label':{'name':_univerjs_ui[_0x42879a(0x1a7)],'hoverable':![],'selectable':![]}}],'value$':new rxjs['Observable'](_0x42cf6c=>{const _0x55a2f2=_0x42879a;_0x42cf6c[_0x55a2f2(0x243)](_0x31834a[_0x55a2f2(0x19f)](_0x55a2f2(0x3ae)));}),'hidden$':_0x33a4d0[_0x42879a(0x1a0)](_univerjs_core[_0x42879a(0x1f8)])[_0x42879a(0x4e7)]((0x0,rxjs[_0x42879a(0x25c)])(_0x33a4d0[_0x42879a(0x2f3)](_univerjs_core[_0x42879a(0x1f8)])),(0x0,rxjs[_0x42879a(0x553)])(_0x15359c=>!_0x15359c))};}function ShapeResetBackgroundColorMenuItemFactory(_0x509cd6){const _0x29ab79=_0xae170d,_0x17f11b=_0x509cd6['get'](_univerjs_core[_0x29ab79(0x4f4)]);return{'id':_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id'],'type':_univerjs_ui[_0x29ab79(0x641)][_0x29ab79(0x409)],'title':_0x29ab79(0x215),'hidden$':_0x17f11b[_0x29ab79(0x1a0)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x29ab79(0x4e7)]((0x0,rxjs[_0x29ab79(0x25c)])(_0x17f11b[_0x29ab79(0x2f3)](_univerjs_core[_0x29ab79(0x1f8)])),(0x0,rxjs[_0x29ab79(0x553)])(_0x22b89d=>!_0x22b89d))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0xae170d(0x24f),'icon':_0xae170d(0x2f2),'value':_univerjs_core[_0xae170d(0x110)][_0xae170d(0x43f)]},{'label':_0xae170d(0x2e8),'icon':_0xae170d(0x555),'value':_univerjs_core[_0xae170d(0x110)]['CENTER']},{'label':_0xae170d(0x525),'icon':'RightJustifyingIcon','value':_univerjs_core['HorizontalAlign'][_0xae170d(0x3a5)]}];function ShapeTextHorizontalAlignMenuItemFactory(_0x398dd5){const _0x3d28dd=_0xae170d;var _0x504a10;const _0x5d8c1a=_0x398dd5[_0x3d28dd(0x59e)](_univerjs_core[_0x3d28dd(0x12a)]),_0x176f07=_0x398dd5[_0x3d28dd(0x59e)](_univerjs_core[_0x3d28dd(0x4f4)]),_0x4c60d6=_0x398dd5[_0x3d28dd(0x59e)](_univerjs_sheets_drawing[_0x3d28dd(0x623)]),_0x33cbba=_0x398dd5['get'](ShapeTextEditingService),_0x26da3f=_0x398dd5['get'](_univerjs_pro_sheets_shape[_0x3d28dd(0x4b4)]),_0xf062a3=_univerjs_core[_0x3d28dd(0x110)]['LEFT'],_0x9d6bd8=()=>{const _0x31b9e7=_0x3d28dd;var _0x1c31d7;const _0x30dc5d=_0x4c60d6[_0x31b9e7(0x309)]()[_0x31b9e7(0x4c3)](_0x468c85=>_0x468c85[_0x31b9e7(0x19b)]===_univerjs_core[_0x31b9e7(0x4c8)]['DRAWING_SHAPE']);if(_0x30dc5d[_0x31b9e7(0x233)]!==0x1)return _0xf062a3;const _0xfe08b5=_0x33cbba[_0x31b9e7(0x635)](),_0x1a47b7=(_0xfe08b5===null||_0xfe08b5===void 0x0?void 0x0:_0xfe08b5[_0x31b9e7(0x40a)])||_0x30dc5d[0x0][_0x31b9e7(0x40a)],_0x4e91cf=(_0xfe08b5===null||_0xfe08b5===void 0x0?void 0x0:_0xfe08b5['subUnitId'])||_0x30dc5d[0x0][_0x31b9e7(0x423)],_0x5e159b=(_0xfe08b5===null||_0xfe08b5===void 0x0?void 0x0:_0xfe08b5['shapeId'])||_0x30dc5d[0x0]['drawingId'],_0x4894d0=_0x26da3f[_0x31b9e7(0x258)](_0x1a47b7,_0x4e91cf,_0x5e159b);if(!_0x4894d0)return _0xf062a3;const _0x2d6b23=_0x4894d0['getShapeTextData']();if(!_0x2d6b23||!(_0x31b9e7(0x38e)in _0x2d6b23))return _0xf062a3;const _0xa8fb1=_0x2d6b23[_0x31b9e7(0x38e)];return(_0x1c31d7=_0xa8fb1===null||_0xa8fb1===void 0x0?void 0x0:_0xa8fb1['ha'])!==null&&_0x1c31d7!==void 0x0?_0x1c31d7:_0xf062a3;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x504a10=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x3d28dd(0xee)](_0x25a22b=>_0x25a22b[_0x3d28dd(0x55e)]===_0xf062a3))===null||_0x504a10===void 0x0?void 0x0:_0x504a10[_0x3d28dd(0x1b8)],'tooltip':_0x3d28dd(0x2e9),'type':_univerjs_ui[_0x3d28dd(0x641)][_0x3d28dd(0x4e6)],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0xca6648=>{const _0x3113ea=_0x3d28dd,_0x9f4a27=_0x5d8c1a[_0x3113ea(0x3e8)](_0x5c7a58=>{const _0x22fa08=_0x3113ea;if(_0x5c7a58['id']===SetShapeTextHorizontalAlignCommand['id'])_0xca6648[_0x22fa08(0x243)](_0x9d6bd8());}),_0x227e54=_0x33cbba[_0x3113ea(0x63a)][_0x3113ea(0x39a)](()=>{const _0x86324=_0x3113ea;_0xca6648[_0x86324(0x243)](_0x9d6bd8());});return _0xca6648[_0x3113ea(0x243)](_0x9d6bd8()),()=>{const _0x458407=_0x3113ea;_0x9f4a27[_0x458407(0x178)](),_0x227e54['unsubscribe']();};}),'hidden$':_0x176f07[_0x3d28dd(0x1a0)](_univerjs_core[_0x3d28dd(0x1f8)])[_0x3d28dd(0x4e7)]((0x0,rxjs[_0x3d28dd(0x553)])(_0x5c93c7=>!_0x5c93c7))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0xae170d(0x5fc),'icon':_0xae170d(0xfd),'value':_univerjs_core['VerticalAlign']['TOP']},{'label':_0xae170d(0x4a3),'icon':'VerticalCenterIcon','value':_univerjs_core[_0xae170d(0x59c)][_0xae170d(0x388)]},{'label':_0xae170d(0x5d6),'icon':_0xae170d(0x35e),'value':_univerjs_core['VerticalAlign'][_0xae170d(0x502)]}];function ShapeVerticalAlignMenuItemFactory(_0x17eb50){const _0xff85fa=_0xae170d;var _0x993151;const _0x8d484b=_0x17eb50[_0xff85fa(0x59e)](_univerjs_core[_0xff85fa(0x12a)]),_0x21e190=_0x17eb50['get'](_univerjs_core[_0xff85fa(0x4f4)]),_0x5f15c8=_0x17eb50[_0xff85fa(0x59e)](_univerjs_sheets_drawing[_0xff85fa(0x623)]),_0x306033=_0x17eb50[_0xff85fa(0x59e)](ShapeTextEditingService),_0xb8dceb=_0x17eb50['get'](_univerjs_pro_sheets_shape['SheetsShapeService']),_0x4339d5=_univerjs_core[_0xff85fa(0x59c)][_0xff85fa(0x596)],_0x156038=()=>{const _0x101bcb=_0xff85fa;var _0x325d66;const _0x313f0e=_0x5f15c8['getFocusDrawings']()['filter'](_0x1511b4=>_0x1511b4[_0x101bcb(0x19b)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x313f0e[_0x101bcb(0x233)]!==0x1)return _0x4339d5;const _0x6bec70=_0x306033[_0x101bcb(0x635)](),_0x575771=(_0x6bec70===null||_0x6bec70===void 0x0?void 0x0:_0x6bec70[_0x101bcb(0x40a)])||_0x313f0e[0x0][_0x101bcb(0x40a)],_0x164684=(_0x6bec70===null||_0x6bec70===void 0x0?void 0x0:_0x6bec70[_0x101bcb(0x423)])||_0x313f0e[0x0][_0x101bcb(0x423)],_0x4b374c=(_0x6bec70===null||_0x6bec70===void 0x0?void 0x0:_0x6bec70[_0x101bcb(0x2f8)])||_0x313f0e[0x0][_0x101bcb(0x4eb)],_0x1ffa28=_0xb8dceb['getShapeModel'](_0x575771,_0x164684,_0x4b374c);if(!_0x1ffa28)return _0x4339d5;const _0x240398=_0x1ffa28[_0x101bcb(0x385)]();if(!_0x240398||!(_0x101bcb(0x38e)in _0x240398))return _0x4339d5;const _0x279ec8=_0x240398[_0x101bcb(0x38e)];return(_0x325d66=_0x279ec8===null||_0x279ec8===void 0x0?void 0x0:_0x279ec8['va'])!==null&&_0x325d66!==void 0x0?_0x325d66:_0x4339d5;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x993151=SHAPE_VERTICAL_ALIGN_CHILDREN[_0xff85fa(0xee)](_0x4a1064=>_0x4a1064[_0xff85fa(0x55e)]===_0x4339d5))===null||_0x993151===void 0x0?void 0x0:_0x993151[_0xff85fa(0x1b8)],'tooltip':_0xff85fa(0x334),'type':_univerjs_ui[_0xff85fa(0x641)][_0xff85fa(0x4e6)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x29342d=>{const _0x38e4cb=_0xff85fa,_0x57d383=_0x8d484b['onCommandExecuted'](_0x553128=>{const _0x101895=_0x513a;if(_0x553128['id']===SetShapeTextVerticalAlignCommand['id'])_0x29342d[_0x101895(0x243)](_0x156038());}),_0x3eda9d=_0x306033[_0x38e4cb(0x63a)][_0x38e4cb(0x39a)](()=>{const _0x46a45c=_0x38e4cb;_0x29342d[_0x46a45c(0x243)](_0x156038());});return _0x29342d[_0x38e4cb(0x243)](_0x156038()),()=>{const _0x514f3d=_0x38e4cb;_0x57d383['dispose'](),_0x3eda9d[_0x514f3d(0x28c)]();};}),'hidden$':_0x21e190[_0xff85fa(0x1a0)](_univerjs_core[_0xff85fa(0x1f8)])['pipe']((0x0,rxjs['map'])(_0x13cc33=>!_0x13cc33))};}function ShapeMenuItemFactory(_0x23b885){const _0x39d7e9=_0xae170d,_0x157775=_0x23b885[_0x39d7e9(0x59e)](_univerjs_core[_0x39d7e9(0x567)]);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x39d7e9(0x641)][_0x39d7e9(0x4e6)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x39d7e9(0x260),'tooltip':_0x39d7e9(0x2ed),'activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x157775,![],()=>new rxjs[(_0x39d7e9(0x63f))](_0x29893f=>{_0x29893f['next'](![]);})),'hidden$':(0x0,_univerjs_ui[_0x39d7e9(0x235)])(_0x23b885,_univerjs_core[_0x39d7e9(0x293)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x39d7e9(0x252)])(_0x23b885)};}const menuSchema={[_univerjs_ui[_0xae170d(0x169)][_0xae170d(0x29c)]]:{[_univerjs_ui[_0xae170d(0x52a)][_0xae170d(0x657)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui[_0xae170d(0x52a)][_0xae170d(0x57d)]]:{[_univerjs_docs_ui[_0xae170d(0x24d)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui[_0xae170d(0x1b9)]['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0xae170d(0x4b8)]['MEDIA']]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x576d46,_0x37ec72,_0x589e7f,_0x162ac6,_0x59b1ed,_0x4d0876,_0x20b3cb,_0x24047e,_0x351d0a,_0xd9abc2,_0x566102){const _0x18c7fd=_0xae170d;super(),this[_0x18c7fd(0x434)]=_0x576d46,this[_0x18c7fd(0x60d)]=_0x37ec72,this['_sidebarService']=_0x589e7f,this[_0x18c7fd(0x56c)]=_0x162ac6,this[_0x18c7fd(0x172)]=_0x59b1ed,this[_0x18c7fd(0x36d)]=_0x4d0876,this[_0x18c7fd(0x481)]=_0x20b3cb,this[_0x18c7fd(0x1f1)]=_0x24047e,this[_0x18c7fd(0x5b0)]=_0x351d0a,this['_sheetCanvasPopManagerService']=_0xd9abc2,this[_0x18c7fd(0x63c)]=_0x566102,_defineProperty(this,_0x18c7fd(0x13f),null),_defineProperty(this,_0x18c7fd(0x54c),null),_defineProperty(this,'_isOpenedShapeEditPanel',![]),this['_registerComponent'](),this[_0x18c7fd(0x631)](),this[_0x18c7fd(0x163)](this[_0x18c7fd(0x434)][_0x18c7fd(0x274)](_univerjs_core[_0x18c7fd(0x293)][_0x18c7fd(0x22b)])[_0x18c7fd(0x39a)](_0xe9cdc5=>{const _0x15c299=_0x18c7fd;var _0x32c3f1;if(!_0xe9cdc5)(_0x32c3f1=this[_0x15c299(0x13f)])===null||_0x32c3f1===void 0x0||_0x32c3f1[_0x15c299(0x178)]();})),this[_0x18c7fd(0x3b4)](),this[_0x18c7fd(0x15f)]();}[_0xae170d(0x631)](){const _0x111c0b=_0xae170d;this['_menuManagerService'][_0x111c0b(0x3ec)](menuSchema);}[_0xae170d(0x15f)](){const _0x1d4c15=_0xae170d;this[_0x1d4c15(0x4fc)]['registerFeatureMenu'](_univerjs_core[_0x1d4c15(0x4c8)][_0x1d4c15(0x5f5)],this[_0x1d4c15(0x617)][_0x1d4c15(0x154)](this)),this[_0x1d4c15(0x4fc)][_0x1d4c15(0x608)](_univerjs_core[_0x1d4c15(0x4c8)]['DRAWING_SHAPE'],0x6,0x4);}['getShapePopupMenus'](_0x2b8366,_0x3de724,_0x75ce03,_0x51edcc){const _0x2d4193=_0xae170d;return[{'label':_0x2d4193(0x306),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'drawingId':_0x75ce03},'disable':_0x51edcc===_univerjs_core['DrawingTypeEnum']['DRAWING_DOM']},{'label':_0x2d4193(0x49d),'index':0x1,'commandId':_univerjs_sheets_drawing[_0x2d4193(0x157)]['id'],'commandParams':{'unitId':_0x2b8366,'drawings':[{'unitId':_0x2b8366,'subUnitId':_0x3de724,'drawingId':_0x75ce03,'drawingType':_0x51edcc}]},'disable':![]},{'label':_0x2d4193(0x24c),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'drawingId':_0x75ce03},'disable':![]},{'label':_0x2d4193(0x4a5),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0x2d4193(0x5a0)]['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'shapeId':_0x75ce03,'flipH':!![]},'disable':![]},{'label':'sheets-shape.toggleFlipV','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x2d4193(0x5a0)]['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'shapeId':_0x75ce03,'flipV':!![]},'disable':![]},{'label':_0x2d4193(0x42e),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'shapeId':_0x75ce03,'rotate':0x5a},'disable':![]},{'label':_0x2d4193(0x3cd),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x2d4193(0x3de)]['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'shapeId':_0x75ce03,'rotate':-0x5a},'disable':![]},{'label':_0x2d4193(0x561),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0x2d4193(0x3b0)]['id'],'commandParams':{'unitId':_0x2b8366,'subUnitId':_0x3de724,'shapeId':_0x75ce03},'disable':![]}];}[_0xae170d(0x519)](_0x38d410,_0x5e9627,_0x306f7a){const _0x914a0a=_0xae170d,_0x5a3124=this[_0x914a0a(0x172)]['getShapeTypeById'](_0x38d410,_0x5e9627,_0x306f7a),_0x13228a=this[_0x914a0a(0x172)][_0x914a0a(0x3c0)](_0x38d410,_0x5e9627,_0x306f7a);if(_0x5a3124!==void 0x0&&_0x13228a!==void 0x0)return{'shapeData':_0x13228a,'shapeId':_0x306f7a,'shapeType':_0x5a3124,'unitId':_0x38d410,'subUnitId':_0x5e9627,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x1e6b78=_0xae170d;this[_0x1e6b78(0x163)](this[_0x1e6b78(0x1f1)]['onCommandExecuted'](_0x1a129e=>{const _0x23cb10=_0x1e6b78;if(_0x1a129e['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x50ffd4,subUnitId:_0x107aea,drawingId:_0x487791}=_0x1a129e[_0x23cb10(0x2ec)];this['_activeShapeInfo']=this[_0x23cb10(0x519)](_0x50ffd4,_0x107aea,_0x487791),this[_0x23cb10(0x5d9)]();}_0x1a129e['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x23cb10(0x54c)]=null,this['_closeShapeEditPanel']());if(_0x1a129e['id']===_univerjs_pro_sheets_shape[_0x23cb10(0x584)]['id']){const {unitId:_0x4190c2,subUnitId:_0x5d9869,shapeId:_0x2c2400}=_0x1a129e['params'];if(this[_0x23cb10(0x54c)]&&this[_0x23cb10(0x54c)]['shapeId']===_0x2c2400){const _0xe8a38e=this[_0x23cb10(0x519)](_0x4190c2,_0x5d9869,_0x2c2400);if(_0xe8a38e)this['_activeShapeInfo']=_0xe8a38e;}}})),this['disposeWithMe'](this[_0x1e6b78(0x5b0)][_0x1e6b78(0x3e0)][_0x1e6b78(0x39a)](_0x15398d=>{const _0x2dfbee=_0x1e6b78;if(this[_0x2dfbee(0x5f2)]===![])return;if(_0x15398d[_0x2dfbee(0x233)]===0x0){this[_0x2dfbee(0x54c)]=null,this['_closeShapeEditPanel']();return;}if(_0x15398d[_0x2dfbee(0x233)]===0x1&&_0x15398d[0x0]['drawingType']===_univerjs_core[_0x2dfbee(0x4c8)]['DRAWING_SHAPE']){this['_activeShapeInfo']=this[_0x2dfbee(0x519)](_0x15398d[0x0][_0x2dfbee(0x40a)],_0x15398d[0x0][_0x2dfbee(0x423)],_0x15398d[0x0][_0x2dfbee(0x4eb)]);if(this['_activeShapeInfo']){this[_0x2dfbee(0x5d9)]();return;}}const _0xb13736=_0x15398d[_0x2dfbee(0x4c3)](_0x47d554=>{const _0x3d5c61=_0x2dfbee;return _0x47d554[_0x3d5c61(0x19b)]===_univerjs_core['DrawingTypeEnum'][_0x3d5c61(0x5f5)];});if(_0x15398d[_0x2dfbee(0x233)]>0x1&&_0xb13736[_0x2dfbee(0x233)]===_0x15398d[_0x2dfbee(0x233)]){this['_activeShapeInfo']=this['_getShapeInfo'](_0x15398d[0x0]['unitId'],_0x15398d[0x0][_0x2dfbee(0x423)],_0x15398d[0x0][_0x2dfbee(0x4eb)]);if(this[_0x2dfbee(0x54c)]){this['_openShapeEditPanel']();return;}}else{this['_activeShapeInfo']=this[_0x2dfbee(0x519)](_0x15398d[0x0][_0x2dfbee(0x40a)],_0x15398d[0x0][_0x2dfbee(0x423)],_0x15398d[0x0]['drawingId']);if(this[_0x2dfbee(0x54c)]){this[_0x2dfbee(0x54c)][_0x2dfbee(0x37c)]=!![],this[_0x2dfbee(0x5d9)]();return;}}this['_closeShapeEditPanel']();}));}[_0xae170d(0x546)](){const _0x2e95ae=_0xae170d;[[_0x2e95ae(0x260),_univerjs_icons['ShapeIcon']],['ShapeAccentBorderCallout1Icon',_univerjs_icons[_0x2e95ae(0x5d1)]],['ShapeAccentBorderCallout2Icon',_univerjs_icons[_0x2e95ae(0x158)]],[_0x2e95ae(0x173),_univerjs_icons['ShapeAccentBorderCallout3Icon']],[_0x2e95ae(0x3e1),_univerjs_icons[_0x2e95ae(0x3e1)]],[_0x2e95ae(0x34e),_univerjs_icons[_0x2e95ae(0x34e)]],[_0x2e95ae(0x582),_univerjs_icons[_0x2e95ae(0x582)]],[_0x2e95ae(0x101),_univerjs_icons[_0x2e95ae(0x101)]],[_0x2e95ae(0x2d3),_univerjs_icons[_0x2e95ae(0x2d3)]],[_0x2e95ae(0x318),_univerjs_icons[_0x2e95ae(0x318)]],[_0x2e95ae(0x3d8),_univerjs_icons[_0x2e95ae(0x3d8)]],[_0x2e95ae(0x1e4),_univerjs_icons['ShapeActionButtonEndIcon']],[_0x2e95ae(0x1d2),_univerjs_icons[_0x2e95ae(0x1d2)]],[_0x2e95ae(0x360),_univerjs_icons[_0x2e95ae(0x360)]],['ShapeActionButtonHomeIcon',_univerjs_icons['ShapeActionButtonHomeIcon']],[_0x2e95ae(0x5a2),_univerjs_icons[_0x2e95ae(0x5a2)]],[_0x2e95ae(0x460),_univerjs_icons[_0x2e95ae(0x460)]],[_0x2e95ae(0x566),_univerjs_icons[_0x2e95ae(0x566)]],['ShapeActionButtonSoundIcon',_univerjs_icons[_0x2e95ae(0x5f6)]],['ShapeArcIcon',_univerjs_icons[_0x2e95ae(0x592)]],[_0x2e95ae(0x2a9),_univerjs_icons[_0x2e95ae(0x2a9)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons['ShapeBentConnector3Arrow1Icon']],['ShapeBentConnector3Arrow2Icon',_univerjs_icons['ShapeBentConnector3Arrow2Icon']],['ShapeBentConnector3Icon',_univerjs_icons['ShapeBentConnector3Icon']],[_0x2e95ae(0x551),_univerjs_icons[_0x2e95ae(0x551)]],[_0x2e95ae(0x400),_univerjs_icons[_0x2e95ae(0x400)]],['ShapeBlockArcIcon',_univerjs_icons[_0x2e95ae(0x536)]],[_0x2e95ae(0x480),_univerjs_icons['ShapeBorderCallout1Icon']],[_0x2e95ae(0x3ed),_univerjs_icons[_0x2e95ae(0x3ed)]],[_0x2e95ae(0x5ef),_univerjs_icons['ShapeBorderCallout3Icon']],[_0x2e95ae(0x65b),_univerjs_icons['ShapeBracePairIcon']],[_0x2e95ae(0x352),_univerjs_icons[_0x2e95ae(0x352)]],[_0x2e95ae(0xed),_univerjs_icons['ShapeCallout1Icon']],[_0x2e95ae(0x100),_univerjs_icons['ShapeCallout2Icon']],[_0x2e95ae(0x191),_univerjs_icons[_0x2e95ae(0x191)]],[_0x2e95ae(0x3d7),_univerjs_icons[_0x2e95ae(0x3d7)]],[_0x2e95ae(0xf0),_univerjs_icons['ShapeChartPlusIcon']],[_0x2e95ae(0x1df),_univerjs_icons[_0x2e95ae(0x1df)]],[_0x2e95ae(0x29d),_univerjs_icons[_0x2e95ae(0x29d)]],[_0x2e95ae(0x420),_univerjs_icons[_0x2e95ae(0x420)]],[_0x2e95ae(0x176),_univerjs_icons[_0x2e95ae(0x176)]],[_0x2e95ae(0x25f),_univerjs_icons[_0x2e95ae(0x25f)]],[_0x2e95ae(0x4af),_univerjs_icons['ShapeCloudCalloutIcon']],['ShapeCloudIcon',_univerjs_icons['ShapeCloudIcon']],['ShapeCornerIcon',_univerjs_icons['ShapeCornerIcon']],[_0x2e95ae(0x45c),_univerjs_icons['ShapeCornerTabsIcon']],['ShapeCubeIcon',_univerjs_icons[_0x2e95ae(0x42c)]],[_0x2e95ae(0x240),_univerjs_icons[_0x2e95ae(0x240)]],['ShapeCurvedConnector3Arrow2Icon',_univerjs_icons[_0x2e95ae(0xef)]],[_0x2e95ae(0x447),_univerjs_icons[_0x2e95ae(0x447)]],[_0x2e95ae(0x1af),_univerjs_icons[_0x2e95ae(0x1af)]],[_0x2e95ae(0x2d6),_univerjs_icons[_0x2e95ae(0x2d6)]],[_0x2e95ae(0x489),_univerjs_icons[_0x2e95ae(0x489)]],[_0x2e95ae(0x53c),_univerjs_icons[_0x2e95ae(0x53c)]],[_0x2e95ae(0x59b),_univerjs_icons[_0x2e95ae(0x59b)]],['ShapeDiagStripeIcon',_univerjs_icons[_0x2e95ae(0x330)]],[_0x2e95ae(0x2f6),_univerjs_icons[_0x2e95ae(0x2f6)]],[_0x2e95ae(0x55f),_univerjs_icons[_0x2e95ae(0x55f)]],['ShapeDonutIcon',_univerjs_icons['ShapeDonutIcon']],[_0x2e95ae(0x256),_univerjs_icons[_0x2e95ae(0x256)]],['ShapeDownArrowCalloutIcon',_univerjs_icons[_0x2e95ae(0x646)]],[_0x2e95ae(0x16c),_univerjs_icons[_0x2e95ae(0x16c)]],[_0x2e95ae(0x137),_univerjs_icons[_0x2e95ae(0x137)]],['ShapeEllipseRibbon2Icon',_univerjs_icons[_0x2e95ae(0x43d)]],[_0x2e95ae(0x472),_univerjs_icons[_0x2e95ae(0x472)]],[_0x2e95ae(0x289),_univerjs_icons[_0x2e95ae(0x289)]],[_0x2e95ae(0x276),_univerjs_icons[_0x2e95ae(0x276)]],[_0x2e95ae(0x326),_univerjs_icons[_0x2e95ae(0x326)]],[_0x2e95ae(0x164),_univerjs_icons[_0x2e95ae(0x164)]],[_0x2e95ae(0x239),_univerjs_icons[_0x2e95ae(0x239)]],['ShapeFlowChartDisplayIcon',_univerjs_icons[_0x2e95ae(0x105)]],[_0x2e95ae(0x12c),_univerjs_icons[_0x2e95ae(0x12c)]],[_0x2e95ae(0x29e),_univerjs_icons['ShapeFlowChartExtractIcon']],[_0x2e95ae(0x34b),_univerjs_icons[_0x2e95ae(0x34b)]],['ShapeFlowChartInternalStorageIcon',_univerjs_icons[_0x2e95ae(0x3e6)]],[_0x2e95ae(0x15a),_univerjs_icons[_0x2e95ae(0x15a)]],[_0x2e95ae(0x2bd),_univerjs_icons[_0x2e95ae(0x2bd)]],[_0x2e95ae(0x26d),_univerjs_icons[_0x2e95ae(0x26d)]],[_0x2e95ae(0x41c),_univerjs_icons[_0x2e95ae(0x41c)]],[_0x2e95ae(0x188),_univerjs_icons[_0x2e95ae(0x188)]],[_0x2e95ae(0x193),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x2e95ae(0x3ff),_univerjs_icons[_0x2e95ae(0x3ff)]],['ShapeFlowChartOfflineStorageIcon',_univerjs_icons[_0x2e95ae(0x3d5)]],[_0x2e95ae(0x17a),_univerjs_icons[_0x2e95ae(0x17a)]],[_0x2e95ae(0x64f),_univerjs_icons[_0x2e95ae(0x64f)]],[_0x2e95ae(0x45e),_univerjs_icons[_0x2e95ae(0x45e)]],[_0x2e95ae(0x473),_univerjs_icons[_0x2e95ae(0x473)]],[_0x2e95ae(0x2b6),_univerjs_icons[_0x2e95ae(0x2b6)]],[_0x2e95ae(0x27b),_univerjs_icons[_0x2e95ae(0x27b)]],['ShapeFlowChartPunchedCardIcon',_univerjs_icons[_0x2e95ae(0x167)]],['ShapeFlowChartPunchedTapeIcon',_univerjs_icons[_0x2e95ae(0x4ec)]],[_0x2e95ae(0x2db),_univerjs_icons[_0x2e95ae(0x2db)]],[_0x2e95ae(0x2d9),_univerjs_icons[_0x2e95ae(0x2d9)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x2e95ae(0x5a4)]],[_0x2e95ae(0x298),_univerjs_icons[_0x2e95ae(0x298)]],[_0x2e95ae(0x5e0),_univerjs_icons[_0x2e95ae(0x5e0)]],[_0x2e95ae(0x18c),_univerjs_icons[_0x2e95ae(0x18c)]],['ShapeGear6Icon',_univerjs_icons[_0x2e95ae(0x65c)]],['ShapeGear9Icon',_univerjs_icons[_0x2e95ae(0x4bc)]],['ShapeHalfFrameIcon',_univerjs_icons[_0x2e95ae(0x4a1)]],['ShapeHeartIcon',_univerjs_icons[_0x2e95ae(0x25e)]],[_0x2e95ae(0x64d),_univerjs_icons[_0x2e95ae(0x64d)]],[_0x2e95ae(0xfa),_univerjs_icons[_0x2e95ae(0xfa)]],['ShapeHomePlateIcon',_univerjs_icons['ShapeHomePlateIcon']],[_0x2e95ae(0x5f9),_univerjs_icons[_0x2e95ae(0x5f9)]],[_0x2e95ae(0x616),_univerjs_icons[_0x2e95ae(0x616)]],[_0x2e95ae(0x64b),_univerjs_icons[_0x2e95ae(0x64b)]],['ShapeLeftArrowCalloutIcon',_univerjs_icons[_0x2e95ae(0x19a)]],['ShapeLeftArrowIcon',_univerjs_icons[_0x2e95ae(0x17d)]],[_0x2e95ae(0x414),_univerjs_icons['ShapeLeftBraceIcon']],[_0x2e95ae(0x529),_univerjs_icons[_0x2e95ae(0x529)]],['ShapeLeftCircularArrowIcon',_univerjs_icons[_0x2e95ae(0x3dc)]],[_0x2e95ae(0x251),_univerjs_icons[_0x2e95ae(0x251)]],[_0x2e95ae(0x147),_univerjs_icons[_0x2e95ae(0x147)]],[_0x2e95ae(0x41e),_univerjs_icons[_0x2e95ae(0x41e)]],[_0x2e95ae(0x229),_univerjs_icons[_0x2e95ae(0x229)]],[_0x2e95ae(0x2a4),_univerjs_icons['ShapeLeftRightUpArrowIcon']],[_0x2e95ae(0x507),_univerjs_icons[_0x2e95ae(0x507)]],['ShapeLightningBoltIcon',_univerjs_icons['ShapeLightningBoltIcon']],[_0x2e95ae(0x1cb),_univerjs_icons[_0x2e95ae(0x1cb)]],[_0x2e95ae(0x579),_univerjs_icons[_0x2e95ae(0x579)]],[_0x2e95ae(0x1e9),_univerjs_icons[_0x2e95ae(0x1e9)]],['ShapeMathEqualIcon',_univerjs_icons['ShapeMathEqualIcon']],[_0x2e95ae(0x19e),_univerjs_icons[_0x2e95ae(0x19e)]],[_0x2e95ae(0x2bf),_univerjs_icons[_0x2e95ae(0x2bf)]],[_0x2e95ae(0x490),_univerjs_icons[_0x2e95ae(0x490)]],['ShapeMathPlusIcon',_univerjs_icons[_0x2e95ae(0x485)]],[_0x2e95ae(0x20d),_univerjs_icons['ShapeMoonIcon']],[_0x2e95ae(0x249),_univerjs_icons[_0x2e95ae(0x249)]],[_0x2e95ae(0x2f7),_univerjs_icons[_0x2e95ae(0x2f7)]],[_0x2e95ae(0x12e),_univerjs_icons[_0x2e95ae(0x12e)]],[_0x2e95ae(0x2c5),_univerjs_icons[_0x2e95ae(0x2c5)]],[_0x2e95ae(0x5a9),_univerjs_icons[_0x2e95ae(0x5a9)]],[_0x2e95ae(0x222),_univerjs_icons['ShapePentagonIcon']],[_0x2e95ae(0x2e3),_univerjs_icons[_0x2e95ae(0x2e3)]],[_0x2e95ae(0x38c),_univerjs_icons['ShapePieWedgeIcon']],[_0x2e95ae(0x4e2),_univerjs_icons['ShapePlaqueIcon']],['ShapePlaqueTabsIcon',_univerjs_icons[_0x2e95ae(0x5dc)]],['ShapePlusIcon',_univerjs_icons[_0x2e95ae(0x4b3)]],[_0x2e95ae(0x130),_univerjs_icons['ShapeQuadArrowCalloutIcon']],[_0x2e95ae(0x624),_univerjs_icons[_0x2e95ae(0x624)]],['ShapeRectIcon',_univerjs_icons[_0x2e95ae(0x1d1)]],['ShapeRectTextboxHorizontalIcon',_univerjs_icons[_0x2e95ae(0x3df)]],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x2e95ae(0x224)]],[_0x2e95ae(0x636),_univerjs_icons['ShapeRibbon2Icon']],[_0x2e95ae(0x269),_univerjs_icons[_0x2e95ae(0x269)]],[_0x2e95ae(0x655),_univerjs_icons[_0x2e95ae(0x655)]],[_0x2e95ae(0x1c0),_univerjs_icons[_0x2e95ae(0x1c0)]],[_0x2e95ae(0x189),_univerjs_icons[_0x2e95ae(0x189)]],[_0x2e95ae(0x5e9),_univerjs_icons[_0x2e95ae(0x5e9)]],[_0x2e95ae(0x410),_univerjs_icons[_0x2e95ae(0x410)]],[_0x2e95ae(0x58c),_univerjs_icons['ShapeRound2DiagRectIcon']],[_0x2e95ae(0x572),_univerjs_icons[_0x2e95ae(0x572)]],[_0x2e95ae(0x207),_univerjs_icons[_0x2e95ae(0x207)]],['ShapeRtTriangleIcon',_univerjs_icons[_0x2e95ae(0x557)]],[_0x2e95ae(0x2d5),_univerjs_icons['ShapeSmileyFaceIcon']],[_0x2e95ae(0x39f),_univerjs_icons[_0x2e95ae(0x39f)]],[_0x2e95ae(0x4d3),_univerjs_icons[_0x2e95ae(0x4d3)]],[_0x2e95ae(0x160),_univerjs_icons['ShapeSnip2SameRectIcon']],[_0x2e95ae(0x520),_univerjs_icons[_0x2e95ae(0x520)]],[_0x2e95ae(0x5e2),_univerjs_icons[_0x2e95ae(0x5e2)]],[_0x2e95ae(0x2b1),_univerjs_icons['ShapeStar10Icon']],[_0x2e95ae(0x5f8),_univerjs_icons[_0x2e95ae(0x5f8)]],['ShapeStar16Icon',_univerjs_icons['ShapeStar16Icon']],[_0x2e95ae(0x371),_univerjs_icons[_0x2e95ae(0x371)]],[_0x2e95ae(0x560),_univerjs_icons[_0x2e95ae(0x560)]],[_0x2e95ae(0x418),_univerjs_icons[_0x2e95ae(0x418)]],[_0x2e95ae(0x4e1),_univerjs_icons[_0x2e95ae(0x4e1)]],[_0x2e95ae(0x593),_univerjs_icons[_0x2e95ae(0x593)]],[_0x2e95ae(0x14b),_univerjs_icons[_0x2e95ae(0x14b)]],[_0x2e95ae(0x3ab),_univerjs_icons['ShapeStar8Icon']],[_0x2e95ae(0x236),_univerjs_icons[_0x2e95ae(0x236)]],[_0x2e95ae(0x451),_univerjs_icons[_0x2e95ae(0x451)]],[_0x2e95ae(0x208),_univerjs_icons['ShapeStripedRightArrowIcon']],['ShapeSunIcon',_univerjs_icons['ShapeSunIcon']],[_0x2e95ae(0x535),_univerjs_icons[_0x2e95ae(0x535)]],[_0x2e95ae(0x5c0),_univerjs_icons[_0x2e95ae(0x5c0)]],[_0x2e95ae(0x353),_univerjs_icons[_0x2e95ae(0x353)]],[_0x2e95ae(0x581),_univerjs_icons[_0x2e95ae(0x581)]],[_0x2e95ae(0x238),_univerjs_icons[_0x2e95ae(0x238)]],[_0x2e95ae(0x49b),_univerjs_icons[_0x2e95ae(0x49b)]],['ShapeUpDownArrowCalloutIcon',_univerjs_icons[_0x2e95ae(0x279)]],['ShapeUpDownArrowIcon',_univerjs_icons['ShapeUpDownArrowIcon']],[_0x2e95ae(0x4df),_univerjs_icons[_0x2e95ae(0x4df)]],[_0x2e95ae(0x26b),_univerjs_icons[_0x2e95ae(0x26b)]],[_0x2e95ae(0x297),_univerjs_icons[_0x2e95ae(0x297)]],[_0x2e95ae(0x4f6),_univerjs_icons[_0x2e95ae(0x4f6)]],[_0x2e95ae(0x204),_univerjs_icons['ShapeWedgeRectCalloutIcon']],[_0x2e95ae(0x5b5),_univerjs_icons[_0x2e95ae(0x5b5)]],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'],ImageClipShapePicker]][_0x2e95ae(0x253)](([_0x512d05,_0x40b202])=>{const _0x55334f=_0x2e95ae;this[_0x55334f(0x163)](this[_0x55334f(0x481)][_0x55334f(0x61d)](_0x512d05,_0x40b202));});}['_openShapeEditPanel'](){const _0x58f835=_0xae170d;this['_sidebarDisposable']=this[_0x58f835(0x43b)][_0x58f835(0x55b)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x58f835(0x36d)]['t'](_0x58f835(0x190))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x58f835(0x54c)]},'onClose':()=>{const _0x1b4383=_0x58f835;this['_drawingManagerService'][_0x1b4383(0x5c5)](null),this['_contextService'][_0x1b4383(0x1d9)](_univerjs_core['FOCUSING_COMMON_DRAWINGS'],![]),this['_sidebarDisposable']=null;}}),this[_0x58f835(0x5f2)]=!![];}[_0xae170d(0x1d5)](){const _0x252c26=_0xae170d;this[_0x252c26(0x5f2)]=![],this[_0x252c26(0x43b)][_0x252c26(0x4d0)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x252c26(0x13f)]=null,this[_0x252c26(0x63c)][_0x252c26(0x1d9)](_univerjs_core[_0x252c26(0x1f8)],![]),this[_0x252c26(0x5b0)]['focusDrawing'](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0xae170d(0x567)]),__decorateParam(0x1,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets[_0xae170d(0x4f1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_ui[_0xae170d(0x590)])),__decorateParam(0x3,_univerjs_ui[_0xae170d(0x31f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)])),__decorateParam(0x5,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_core[_0xae170d(0x14d)])),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0xae170d(0x34d)])),__decorateParam(0x7,_univerjs_core[_0xae170d(0x12a)]),__decorateParam(0x8,_univerjs_drawing[_0xae170d(0x231)]),__decorateParam(0x9,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets_ui[_0xae170d(0x202)])),__decorateParam(0xa,_univerjs_core[_0xae170d(0x4f4)])],SheetsShapeUIController);var name='@univerjs-pro/sheets-shape-ui',version=_0xae170d(0x205);const SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY=_0xae170d(0x5f7),configSymbol=Symbol(SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let ImageClipAdjustController=class ImageClipAdjustController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x28e542,_0x3a250f,_0x3c305d,_0x43dc6e,_0x4454c8){const _0xc96f35=_0xae170d;super(),this[_0xc96f35(0x35d)]=_0x28e542,this[_0xc96f35(0x5b0)]=_0x3a250f,this[_0xc96f35(0x397)]=_0x3c305d,this[_0xc96f35(0x434)]=_0x43dc6e,this[_0xc96f35(0x1ce)]=_0x4454c8,_defineProperty(this,_0xc96f35(0x33f),null),_defineProperty(this,'_unitId',null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0xc96f35(0x509),void 0x0),_defineProperty(this,_0xc96f35(0x278),[]),_defineProperty(this,_0xc96f35(0x248),0x0),_defineProperty(this,_0xc96f35(0x369),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,_0xc96f35(0x4b7),0x0),_defineProperty(this,_0xc96f35(0x5b7),![]),_defineProperty(this,_0xc96f35(0x4b2),void 0x0),_defineProperty(this,_0xc96f35(0x5e5),void 0x0),_defineProperty(this,'_adjHandlerPointerMove',void 0x0),_defineProperty(this,_0xc96f35(0x42f),void 0x0),_defineProperty(this,_0xc96f35(0x152),![]),this[_0xc96f35(0x212)](),this[_0xc96f35(0x2b4)]();}['clearAdjustControls'](){const _0x4ff4e8=_0xae170d;this[_0x4ff4e8(0x435)]();}[_0xae170d(0x627)](){const _0x642402=_0xae170d;this[_0x642402(0x435)](),this[_0x642402(0xff)](!![]);}[_0xae170d(0x316)](_0x582a1e,_0x2b2d83,_0x564ba3,_0x4ad300){const _0x4cc481=_0xae170d,_0x3d438f=_0x582a1e;if(_0x3d438f===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x4cc481(0x5f3)]||_0x582a1e===_0x4cc481(0x5e3))return;try{const _0xf4161f=new _univerjs_pro_engine_shape[(_0x4cc481(0x58e))](_0x3d438f,'clip-adj-'+_0x582a1e);if(_0x4ad300)_0xf4161f[_0x4cc481(0x2b2)]({'adjustValues':_0x4ad300},!![]);return _0xf4161f[_0x4cc481(0x5ce)]({'width':_0x2b2d83,'height':_0x564ba3}),_0xf4161f;}catch{return;}}[_0xae170d(0x571)](_0x27950b,_0x10bd67,_0x55118c){const _0x39972d=_0xae170d,_0x24cf11={'unitId':_0x27950b,'subUnitId':_0x10bd67,'drawingId':_0x55118c},_0x26e35f=this['_drawingManagerService']['getDrawingByParam'](_0x24cf11);if(!_0x26e35f||_0x26e35f[_0x39972d(0x19b)]!==_univerjs_core[_0x39972d(0x4c8)][_0x39972d(0x5bb)])return;return _0x26e35f;}[_0xae170d(0x156)](_0x5b6b88,_0x35080a,_0x5c5424){const _0x2871b1=_0xae170d,_0x570d16=this[_0x2871b1(0x397)]['getRenderById'](_0x5b6b88);if(!_0x570d16)return void 0x0;const {scene:_0x34db9b}=_0x570d16,_0x5d4325=(0x0,_univerjs_drawing[_0x2871b1(0x401)])({'unitId':_0x5b6b88,'subUnitId':_0x35080a,'drawingId':_0x5c5424}),_0x32741d=_0x34db9b[_0x2871b1(0x221)](_0x5d4325);if(_0x32741d instanceof _univerjs_engine_render[_0x2871b1(0x5da)]){const _0x4ab8f9=_0x32741d[_0x2871b1(0x47d)];if(_0x4ab8f9)return{'prstGeom':_0x4ab8f9,'adjustValues':_0x32741d['prstGeomAdjValues']};}}[_0xae170d(0xff)](_0x11d019=![]){const _0x50ce07=_0xae170d;if(!this[_0x50ce07(0x576)]||!this[_0x50ce07(0x201)]||!this[_0x50ce07(0x33f)])return;const _0x1999ed=this['_renderManagerService'][_0x50ce07(0x145)](this[_0x50ce07(0x576)]);if(!_0x1999ed)return;if(!_0x1999ed[_0x50ce07(0x5e1)](_univerjs_sheets_ui[_0x50ce07(0x4da)])[_0x50ce07(0x4e5)]())return;const {scene:_0x8f4212}=_0x1999ed,_0x41d35a=this['_getImageDrawingInfo'](this[_0x50ce07(0x576)],this[_0x50ce07(0x201)],this[_0x50ce07(0x33f)]);if(!_0x41d35a)return;const {transform:_0x263b26}=_0x41d35a;if(!_0x263b26)return;const {left:_0x5ce73d,top:_0x28b213,width:_0x461bfd,height:_0x5c9338,flipX:_0x25b502,flipY:_0x268443,angle:angle=0x0}=_0x263b26;if(_0x5ce73d===void 0x0||_0x28b213===void 0x0)return;const _0x1bebe3=this[_0x50ce07(0x156)](this[_0x50ce07(0x576)],this['_subUnitId'],this[_0x50ce07(0x33f)]);if(!_0x1bebe3)return;if(_0x11d019){const _0x5c44ea=this[_0x50ce07(0x316)](_0x1bebe3[_0x50ce07(0x47d)],_0x461bfd||0x0,_0x5c9338||0x0,_0x1bebe3[_0x50ce07(0x144)]);if(!_0x5c44ea)return;this[_0x50ce07(0x509)]=_0x5c44ea['getDrawingPoints']();}const _0x4a3df5=this['_activeAdjustPointList'];if(!_0x4a3df5||_0x4a3df5['length']===0x0)return;for(let _0x40caef=0x0;_0x40caef<_0x4a3df5['length'];_0x40caef++){const _0x315234=_0x4a3df5[_0x40caef];let _0x3ae244=_0x315234['x'],_0xac2d67=_0x315234['y'];if(_0x25b502)_0x3ae244=(_0x461bfd||0x0)-_0x3ae244;if(_0x268443)_0xac2d67=(_0x5c9338||0x0)-_0xac2d67;if(angle!==0x0){const _0x45b560=(_0x461bfd||0x0)/0x2,_0x4190b3=(_0x5c9338||0x0)/0x2,_0x5a89f5=angle*Math['PI']/0xb4,_0x9ce283=Math[_0x50ce07(0x3a6)](_0x5a89f5),_0x95dc71=Math['sin'](_0x5a89f5),_0x3872c7=_0x3ae244-_0x45b560,_0x48a937=_0xac2d67-_0x4190b3;_0x3ae244=_0x45b560+(_0x3872c7*_0x9ce283-_0x48a937*_0x95dc71),_0xac2d67=_0x4190b3+(_0x3872c7*_0x95dc71+_0x48a937*_0x9ce283);}const _0x379cb5={'x':_0x3ae244,'y':_0xac2d67,'adjName':_0x315234['adjName']};this[_0x50ce07(0x2ce)](_0x8f4212,_0x379cb5,_0x379cb5['adjName'],_0x5ce73d,_0x28b213,this[_0x50ce07(0x576)],this['_subUnitId']);}}[_0xae170d(0x2ce)](_0x46f9cc,_0x1569b5,_0x30dd7d,_0x5e9870,_0x25d644,_0x3e8d27,_0x65a10a){const _0x278034=_0xae170d;if(!this['_activeImageId'])return;const _0x1576df=_0x278034(0x1da)+this[_0x278034(0x33f)]+'-'+_0x30dd7d,_0xad9f9c=_0x46f9cc[_0x278034(0x299)](_0x1576df);if(_0xad9f9c){_0xad9f9c[_0x278034(0x1f6)]({'left':_0x1569b5['x']+_0x5e9870-_univerjs_pro_engine_shape[_0x278034(0x2ee)]['adjHandleSize'],'top':_0x1569b5['y']+_0x25d644-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x278034(0x392)]});return;}const _0x2de969=new SheetShapeAdjustPointObject(_0x1576df,{'left':_0x1569b5['x']+_0x5e9870-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x278034(0x392)],'top':_0x1569b5['y']+_0x25d644-_univerjs_pro_engine_shape[_0x278034(0x2ee)][_0x278034(0x392)],'adjName':_0x30dd7d,'shapeId':this['_activeImageId'],'unitId':_0x3e8d27,'subUnitId':_0x65a10a,'width':_univerjs_pro_engine_shape[_0x278034(0x2ee)]['adjHandleSize']+0x8,'height':_univerjs_pro_engine_shape[_0x278034(0x2ee)][_0x278034(0x392)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this['_shapes'][_0x278034(0x23c)](_0x2de969),this[_0x278034(0x612)](_0x2de969,_0x46f9cc,_0x30dd7d),_0x46f9cc['addObject'](_0x2de969,_univerjs_engine_render[_0x278034(0x605)]+0x1);}['_clearControls'](){const _0x2ff17d=_0xae170d;if(this[_0x2ff17d(0x278)]['length']===0x0)return;this['_shapes'][_0x2ff17d(0x253)](_0x240c40=>_0x240c40[_0x2ff17d(0x178)]()),this[_0x2ff17d(0x278)]=[];}['_getScrollInfo'](_0xa5618a,_0xecaea6){const _0x34101c=_0xae170d;var _0x920f34;const _0x487631={'x':0x0,'y':0x0},_0x173f0c=this[_0x34101c(0x397)][_0x34101c(0x145)](_0xa5618a);if(!_0x173f0c)return _0x487631;if(!_0x173f0c[_0x34101c(0x5e1)](_univerjs_sheets_ui[_0x34101c(0x4da)])[_0x34101c(0x606)](_0xecaea6))return _0x487631;const _0xa9251d=_0x173f0c[_0x34101c(0x5e1)](_univerjs_sheets_ui[_0x34101c(0x4a8)]),_0x4f431e=_0xa9251d===null||_0xa9251d===void 0x0?void 0x0:_0xa9251d[_0x34101c(0x25d)]();if(!_0x4f431e)return _0x487631;const _0x4c7ea5=(_0x920f34=this['_univerInstanceService'][_0x34101c(0x2b7)](_0xa5618a))===null||_0x920f34===void 0x0?void 0x0:_0x920f34[_0x34101c(0x21f)](_0xecaea6);if(!_0x4c7ea5)return _0x487631;const _0x443def=(0x0,_univerjs_sheets_ui[_0x34101c(0x64c)])(_0x4f431e[_0x34101c(0x1e6)],_0x4f431e[_0x34101c(0x5cc)],_0x173f0c[_0x34101c(0x2fc)],_0x4c7ea5);if(!_0x443def)return _0x487631;return{'x':_0x443def[_0x34101c(0x3b6)],'y':_0x443def['viewportScrollY']};}[_0xae170d(0x619)](_0x8afc73,_0x59ee9d){const _0x17ce7d=_0xae170d;var _0x344b3e,_0x171c73;const _0x4e9b5c=(_0x344b3e=this['_univerInstanceService'][_0x17ce7d(0x2b7)](_0x8afc73))===null||_0x344b3e===void 0x0?void 0x0:_0x344b3e['getSheetBySheetId'](_0x59ee9d);return(_0x171c73=_0x4e9b5c===null||_0x4e9b5c===void 0x0?void 0x0:_0x4e9b5c['getZoomRatio']())!==null&&_0x171c73!==void 0x0?_0x171c73:0x1;}['_attachAdjustEvent'](_0x574813,_0x54f039,_0x2759fe){const _0x3a5edd=_0xae170d;this['disposeWithMe']((0x0,_univerjs_core[_0x3a5edd(0x43e)])(_0x574813['onPointerDown$'][_0x3a5edd(0x33c)]((_0x3aa664,_0x174a53)=>{const _0x46431e=_0x3a5edd;var _0x926290,_0x5da765,_0x3bb072;const {unitId:_0x48f1a0,subUnitId:_0x44b97b,drawingId:_0x3020d9}=_0x574813[_0x46431e(0x3af)](),_0x5355e8=this[_0x46431e(0x571)](_0x48f1a0,_0x44b97b,_0x3020d9);if(!(_0x5355e8===null||_0x5355e8===void 0x0?void 0x0:_0x5355e8[_0x46431e(0x521)]))return;const {left:_0x40b0b1,top:_0x301f6a,width:_0x22b576,height:_0x510dba}=_0x5355e8[_0x46431e(0x521)];this[_0x46431e(0x248)]=_0x40b0b1||0x0,this[_0x46431e(0x369)]=_0x301f6a||0x0,this['_baseWidth']=_0x22b576||0x0,this[_0x46431e(0x4b7)]=_0x510dba||0x0;const _0xb4b598=Boolean((_0x926290=_0x5355e8[_0x46431e(0x521)])===null||_0x926290===void 0x0?void 0x0:_0x926290[_0x46431e(0x4fa)]),_0x392deb=Boolean((_0x5da765=_0x5355e8[_0x46431e(0x521)])===null||_0x5da765===void 0x0?void 0x0:_0x5da765[_0x46431e(0x417)]),_0x15be1c=((_0x3bb072=_0x5355e8[_0x46431e(0x521)])===null||_0x3bb072===void 0x0?void 0x0:_0x3bb072[_0x46431e(0xfe)])||0x0,_0x5b6f1c=this[_0x46431e(0x156)](_0x48f1a0,_0x44b97b,_0x3020d9);if(!_0x5b6f1c)return;const _0xdf2dc3=this[_0x46431e(0x316)](_0x5b6f1c[_0x46431e(0x47d)],this[_0x46431e(0x49a)],this[_0x46431e(0x4b7)],_0x5b6f1c[_0x46431e(0x144)]);if(!_0xdf2dc3)return;this[_0x46431e(0x5e5)]=_0xdf2dc3,this[_0x46431e(0x4b2)]=_0xdf2dc3[_0x46431e(0x442)](_0x2759fe);if(!this['_activeAdjustInfo'])return;this[_0x46431e(0x5b7)]=!![],_0x54f039[_0x46431e(0x568)]();const _0x585854=_0x5b6f1c[_0x46431e(0x47d)];this[_0x46431e(0x1ba)]=_0x54f039[_0x46431e(0x647)][_0x46431e(0x33c)]((_0x2adf52,_0x595e46)=>{const _0x3bdabe=_0x46431e;if(!this[_0x3bdabe(0x5b7)])return;const {offsetX:_0x13fe2f,offsetY:_0xe38317}=_0x2adf52,_0x286a2a=this[_0x3bdabe(0x4b2)];if(!this[_0x3bdabe(0x5e5)]||!_0x286a2a)return;_0x54f039[_0x3bdabe(0x568)](),_0x54f039[_0x3bdabe(0x455)](_univerjs_engine_render[_0x3bdabe(0x586)][_0x3bdabe(0x3fe)]);const _0x46eeb4={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x3bdabe(0x4b7)]},_0x105f0c=this[_0x3bdabe(0x5c3)](_0x48f1a0,_0x44b97b),_0xaac240=this['_getZoomRatio'](_0x48f1a0,_0x44b97b);let _0x5d81ca=_0x13fe2f/_0xaac240+_0x105f0c['x']-this[_0x3bdabe(0x248)],_0x2712f4=_0xe38317/_0xaac240+_0x105f0c['y']-this[_0x3bdabe(0x369)];if(_0x15be1c!==0x0){const _0xbff11e=this[_0x3bdabe(0x49a)]/0x2,_0x4bd8d9=this[_0x3bdabe(0x4b7)]/0x2,_0x975be=_0x15be1c*Math['PI']/0xb4,_0x2f4035=Math['cos'](_0x975be),_0x4b3727=Math[_0x3bdabe(0x5cb)](_0x975be),_0x4f5510=_0x5d81ca-_0xbff11e,_0xcf0030=_0x2712f4-_0x4bd8d9;_0x5d81ca=_0xbff11e+(_0x4f5510*_0x2f4035+_0xcf0030*_0x4b3727),_0x2712f4=_0x4bd8d9+(-_0x4f5510*_0x4b3727+_0xcf0030*_0x2f4035);}if(_0xb4b598)_0x5d81ca=this[_0x3bdabe(0x49a)]-_0x5d81ca;if(_0x392deb)_0x2712f4=this[_0x3bdabe(0x4b7)]-_0x2712f4;const _0x139bdd=this[_0x3bdabe(0x5e5)][_0x3bdabe(0x387)](_0x46eeb4,{'x':_0x5d81ca,'y':_0x2712f4},_0x286a2a,_0xb4b598,_0x392deb),_0x369dd8=_0x286a2a[_0x3bdabe(0x13c)]||_0x286a2a[_0x3bdabe(0x53f)]||_0x286a2a['gdRefAng']||_0x286a2a[_0x3bdabe(0x336)];if(_0x369dd8===void 0x0)return;this[_0x3bdabe(0x5e5)][_0x3bdabe(0x30c)](_0x369dd8,_0x139bdd),this[_0x3bdabe(0x5e5)]['updateContext']({'width':this[_0x3bdabe(0x49a)],'height':this[_0x3bdabe(0x4b7)]}),this[_0x3bdabe(0x3e3)](_0x48f1a0,_0x44b97b,_0x3020d9,_0x369dd8,_0x139bdd),this[_0x3bdabe(0x509)]=this['_activeShapeModel'][_0x3bdabe(0x610)](),this[_0x3bdabe(0x4b2)]=this[_0x3bdabe(0x5e5)]['getAdjustInfoByName'](_0x2759fe),this['_createControls'](),_0x595e46['stopPropagation']();}),this[_0x46431e(0x42f)]=_0x54f039[_0x46431e(0x310)][_0x46431e(0x33c)]((_0x2454ab,_0x272fcf)=>{const _0x1859ee=_0x46431e;this['_adjHandlerPointerMove']['unsubscribe'](),this['_adjHandlerPointerUp'][_0x1859ee(0x28c)](),_0x54f039['resetCursor']();if(this[_0x1859ee(0x5e5)]){const _0x367934=this[_0x1859ee(0x5e5)][_0x1859ee(0x4a9)](),_0x3dc1a9={};for(const _0x27686a of _0x367934){const _0x4ad6bf=this['_activeShapeModel'][_0x1859ee(0x51b)](_0x27686a);if(_0x4ad6bf!==void 0x0)_0x3dc1a9[_0x27686a]=_0x4ad6bf;}this[_0x1859ee(0x1ce)][_0x1859ee(0x637)](_0x48f1a0,_0x44b97b,_0x3020d9,_0x585854,_0x3dc1a9);}this[_0x1859ee(0x4b2)]=void 0x0,this[_0x1859ee(0x5e5)]=void 0x0,this[_0x1859ee(0x5b7)]=![],_0x272fcf[_0x1859ee(0x396)](),_0x54f039[_0x1859ee(0x3e9)]();}),_0x174a53['stopPropagation']();})));}['_updateImageAdjValues'](_0x250400,_0x5f8c32,_0x2461ed,_0x564d8b,_0x5ca443){const _0x346586=_0xae170d,_0x547138=this[_0x346586(0x397)]['getRenderById'](_0x250400);if(!_0x547138)return;const {scene:_0x2a85fc}=_0x547138,_0xa64ff6=(0x0,_univerjs_drawing[_0x346586(0x401)])({'unitId':_0x250400,'subUnitId':_0x5f8c32,'drawingId':_0x2461ed}),_0x2ca3b4=_0x2a85fc[_0x346586(0x221)](_0xa64ff6);if(_0x2ca3b4 instanceof _univerjs_engine_render[_0x346586(0x5da)]){var _0x2c51d8;const _0x5c2574=(_0x2c51d8=_0x2ca3b4['prstGeomAdjValues'])!==null&&_0x2c51d8!==void 0x0?_0x2c51d8:{};_0x2ca3b4[_0x346586(0x575)]({..._0x5c2574,[_0x564d8b]:_0x5ca443}),_0x2ca3b4[_0x346586(0x1db)](!![]);}}[_0xae170d(0x2b4)](){const _0x5f58fc=_0xae170d,_0x4e89b7=this[_0x5f58fc(0x434)][_0x5f58fc(0x274)](_univerjs_core['UniverInstanceType'][_0x5f58fc(0x22b)]);this['disposeWithMe'](_0x4e89b7['pipe']((0x0,rxjs['switchMap'])(_0x38808a=>{const _0x1a7358=_0x5f58fc;if(!_0x38808a)return rxjs[_0x1a7358(0x456)];return _0x38808a['activeSheet$'][_0x1a7358(0x4e7)]((0x0,rxjs['switchMap'])(_0x153304=>{const _0x9478ad=_0x1a7358;if(!_0x153304)return rxjs[_0x9478ad(0x456)];const _0xe1b823=_0x38808a[_0x9478ad(0x34c)](),_0x327433=this[_0x9478ad(0x397)][_0x9478ad(0x145)](_0xe1b823),_0x452164=_0x327433===null||_0x327433===void 0x0?void 0x0:_0x327433['scene'];if(!_0x452164)return rxjs[_0x9478ad(0x456)];return(0x0,rxjs['of'])(_0x452164);}));}))['subscribe'](_0x3b356e=>{const _0x2b5bca=_0x5f58fc,_0x36610c=_0x3b356e['getTransformerByCreate']();this['disposeWithMe'](_0x3b356e['onPointerMove$'][_0x2b5bca(0x33c)](()=>{const _0x581ac0=_0x2b5bca;if(this[_0x581ac0(0x152)])this[_0x581ac0(0x435)]();})),this[_0x2b5bca(0x163)](_0x36610c[_0x2b5bca(0x4e3)][_0x2b5bca(0x39a)](_0x1bdc47=>{const _0xf86c08=_0x2b5bca,{objects:_0x3b65fa}=_0x1bdc47;this['_createControls']();if(_0x3b65fa!==null&&_0x3b65fa[_0xf86c08(0x1b1)]===0x1){const _0xa21374=_0x3b65fa[_0xf86c08(0x109)]()[_0xf86c08(0x243)]()[_0xf86c08(0x55e)];if(_0xa21374 instanceof _univerjs_engine_render['Image']&&_0xa21374[_0xf86c08(0x47d)])this['_isImagePointerDown']=!![];}})),this[_0x2b5bca(0x163)](_0x36610c[_0x2b5bca(0x24a)][_0x2b5bca(0x39a)](()=>{if(this['_isImagePointerDown'])this['_clearControls']();})),this[_0x2b5bca(0x163)](_0x3b356e[_0x2b5bca(0x310)]['subscribeEvent'](()=>{const _0x175644=_0x2b5bca;this[_0x175644(0x152)]&&(this['_isImagePointerDown']=![],this[_0x175644(0xff)]());})),this[_0x2b5bca(0x163)](_0x36610c[_0x2b5bca(0x30f)][_0x2b5bca(0x39a)](()=>{const _0x479b47=_0x2b5bca;if(this['_unitId']&&this[_0x479b47(0x201)]&&this[_0x479b47(0x33f)]){const _0x29ae26=this[_0x479b47(0x156)](this['_unitId'],this[_0x479b47(0x201)],this[_0x479b47(0x33f)]);if(_0x29ae26){var _0x3eda9e,_0x3aa790;const _0x50e266=this[_0x479b47(0x571)](this[_0x479b47(0x576)],this[_0x479b47(0x201)],this[_0x479b47(0x33f)]),_0x37329f=(_0x50e266===null||_0x50e266===void 0x0||(_0x3eda9e=_0x50e266[_0x479b47(0x521)])===null||_0x3eda9e===void 0x0?void 0x0:_0x3eda9e[_0x479b47(0x62b)])||0x0,_0x23f3c0=(_0x50e266===null||_0x50e266===void 0x0||(_0x3aa790=_0x50e266[_0x479b47(0x521)])===null||_0x3aa790===void 0x0?void 0x0:_0x3aa790[_0x479b47(0x558)])||0x0,_0x1e870e=this[_0x479b47(0x316)](_0x29ae26[_0x479b47(0x47d)],_0x37329f,_0x23f3c0,_0x29ae26[_0x479b47(0x144)]);_0x1e870e&&(this['_activeAdjustPointList']=_0x1e870e[_0x479b47(0x610)](),this[_0x479b47(0x435)](),this[_0x479b47(0xff)](!![]));}}}));}));}[_0xae170d(0x212)](){const _0x1e1036=_0xae170d;this[_0x1e1036(0x163)](this['_drawingManagerService']['focus$'][_0x1e1036(0x39a)](_0xa14d2f=>{const _0x3c0359=_0x1e1036;if(_0xa14d2f['length']===0x1){const _0x53f72c=_0xa14d2f[0x0];if(_0x53f72c[_0x3c0359(0x19b)]===_univerjs_core[_0x3c0359(0x4c8)]['DRAWING_IMAGE']){const {unitId:_0x26bd7d,subUnitId:_0x5746da,drawingId:_0x5c8dc5}=_0x53f72c,_0x523435=this[_0x3c0359(0x156)](_0x26bd7d,_0x5746da,_0x5c8dc5);if(_0x523435){var _0x2752cd,_0x385a2d;this[_0x3c0359(0x33f)]=_0x5c8dc5,this[_0x3c0359(0x576)]=_0x26bd7d,this[_0x3c0359(0x201)]=_0x5746da;const _0x36fede=this[_0x3c0359(0x571)](_0x26bd7d,_0x5746da,_0x5c8dc5),_0xe179c1=(_0x36fede===null||_0x36fede===void 0x0||(_0x2752cd=_0x36fede[_0x3c0359(0x521)])===null||_0x2752cd===void 0x0?void 0x0:_0x2752cd[_0x3c0359(0x62b)])||0x0,_0x33808b=(_0x36fede===null||_0x36fede===void 0x0||(_0x385a2d=_0x36fede[_0x3c0359(0x521)])===null||_0x385a2d===void 0x0?void 0x0:_0x385a2d[_0x3c0359(0x558)])||0x0,_0x5a8082=this[_0x3c0359(0x316)](_0x523435[_0x3c0359(0x47d)],_0xe179c1,_0x33808b,_0x523435[_0x3c0359(0x144)]);if(_0x5a8082)this['_activeAdjustPointList']=_0x5a8082[_0x3c0359(0x610)]();this[_0x3c0359(0x435)](),this[_0x3c0359(0xff)](!![]);}else this['_resetState']();}else this[_0x3c0359(0x3c7)]();}else this[_0x3c0359(0x3c7)]();})),this[_0x1e1036(0x163)](this[_0x1e1036(0x5b0)][_0x1e1036(0x408)][_0x1e1036(0x39a)](_0x4efb9b=>{const _0xe1dc84=_0x1e1036;if(_0x4efb9b['length']===0x1){const _0x37fd86=_0x4efb9b[0x0],_0x1d2d2b=this[_0xe1dc84(0x5b0)]['getDrawingByParam'](_0x37fd86);(_0x1d2d2b===null||_0x1d2d2b===void 0x0?void 0x0:_0x1d2d2b[_0xe1dc84(0x19b)])===_univerjs_core[_0xe1dc84(0x4c8)]['DRAWING_IMAGE']&&(this[_0xe1dc84(0x33f)]===_0x37fd86[_0xe1dc84(0x4eb)]&&(this[_0xe1dc84(0x435)](),this[_0xe1dc84(0xff)](!![])));}})),this['disposeWithMe'](this[_0x1e1036(0x5b0)][_0x1e1036(0x599)][_0x1e1036(0x39a)](_0x45f5d8=>{const _0x5b5be2=_0x1e1036;for(const _0x414846 of _0x45f5d8)if(this['_activeImageId']===_0x414846[_0x5b5be2(0x4eb)])this[_0x5b5be2(0x3c7)]();}));}[_0xae170d(0x3c7)](){const _0x3a69b4=_0xae170d;this['_activeImageId']=null,this['_unitId']=null,this[_0x3a69b4(0x201)]=null,this[_0x3a69b4(0x509)]=void 0x0,this['_clearControls']();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x3,_univerjs_core['IUniverInstanceService']),__decorateParam(0x4,(0x0,_univerjs_core[_0xae170d(0x3fd)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x152c8e,_0x5b972f,_0x4c95dd,_0x2d8270){const _0x314e6a=_0xae170d;super(),this[_0x314e6a(0x434)]=_0x152c8e,this[_0x314e6a(0x60d)]=_0x5b972f,this['_sheetDrawingService']=_0x4c95dd,this[_0x314e6a(0x172)]=_0x2d8270,this['_initSheetChange']();}['_initSheetChange'](){const _0x2a883d=_0xae170d;this['disposeWithMe'](this[_0x2a883d(0x60d)][_0x2a883d(0x184)]({'getMutations':_0x358dc1=>{const _0x36d0a=_0x2a883d;if(_0x358dc1['id']===_univerjs_sheets[_0x36d0a(0x335)]['id']){const _0x24cf64=(0x0,_univerjs_sheets[_0x36d0a(0x3e2)])(this[_0x36d0a(0x434)],_0x358dc1[_0x36d0a(0x2ec)]);if(!_0x24cf64)return{'redos':[],'undos':[]};const {unitId:_0x3cdcb5,subUnitId:_0x15af91}=_0x24cf64,_0x1db9c6=this['_sheetDrawingService']['getDrawingData'](_0x3cdcb5,_0x15af91),_0x1c20f=Object[_0x36d0a(0x109)](_0x1db9c6)[_0x36d0a(0x4c3)](_0x4abf4d=>_0x4abf4d[_0x36d0a(0x19b)]===_univerjs_core[_0x36d0a(0x4c8)][_0x36d0a(0x5f5)]);if(_0x1c20f['length']===0x0)return{'redos':[],'undos':[]};const _0x7d79f=[],_0x2aa1f7=[];for(let _0xecda1e=0x0;_0xecda1e<_0x1c20f['length'];_0xecda1e++){const _0x2e86f8=_0x1c20f[_0xecda1e],_0x5d84da=this[_0x36d0a(0x172)][_0x36d0a(0x258)](_0x2e86f8[_0x36d0a(0x40a)],_0x2e86f8['subUnitId'],_0x2e86f8[_0x36d0a(0x4eb)]);if(!_0x5d84da)continue;const {redo:_0x519766,undo:_0x5882fa,objects:_0x557153}=this[_0x36d0a(0x487)]['getBatchRemoveOp']([_0x2e86f8]);_0x7d79f[_0x36d0a(0x23c)]({'id':_univerjs_pro_sheets_shape[_0x36d0a(0x1a2)]['id'],'params':{'unitId':_0x3cdcb5,'subUnitId':_0x15af91,'shapeId':_0x2e86f8['drawingId']}}),_0x7d79f[_0x36d0a(0x23c)]({'id':_univerjs_sheets_drawing[_0x36d0a(0x54e)]['id'],'params':{'unitId':_0x3cdcb5,'subUnitId':_0x15af91,'type':_univerjs_sheets_drawing[_0x36d0a(0x3b3)]['REMOVE'],'op':_0x519766,'objects':_0x557153}}),_0x2aa1f7[_0x36d0a(0x23c)]({'id':_univerjs_sheets_drawing[_0x36d0a(0x54e)]['id'],'params':{'unitId':_0x3cdcb5,'subUnitId':_0x15af91,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x36d0a(0x445)],'op':_0x5882fa,'objects':_0x557153}}),_0x2aa1f7['push']({'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3cdcb5,'subUnitId':_0x15af91,'shapeId':_0x2e86f8['drawingId'],'shapeType':_0x5d84da['getShapeType'](),'shapeData':JSON[_0x36d0a(0x4ad)](JSON['stringify'](_0x5d84da[_0x36d0a(0x411)]()))}});}return{'redos':_0x7d79f,'undos':_0x2aa1f7};}else{if(_0x358dc1['id']===_univerjs_sheets[_0x36d0a(0x40c)]['id']){const {unitId:_0x33ba8f,subUnitId:_0x4e134f,targetSubUnitId:_0x20848f}=_0x358dc1[_0x36d0a(0x2ec)];if(!_0x33ba8f||!_0x4e134f||!_0x20848f)return{'redos':[],'undos':[]};const _0x575c2b=this[_0x36d0a(0x487)]['getDrawingData'](_0x33ba8f,_0x4e134f),_0x5f4d99=Object['values'](_0x575c2b)[_0x36d0a(0x4c3)](_0x683afc=>_0x683afc[_0x36d0a(0x19b)]===_univerjs_core[_0x36d0a(0x4c8)][_0x36d0a(0x5f5)]);if(_0x5f4d99[_0x36d0a(0x233)]===0x0)return{'redos':[],'undos':[]};const _0x2f38a2=[],_0x2469cd=[];for(let _0x5c9a88=0x0;_0x5c9a88<_0x5f4d99[_0x36d0a(0x233)];_0x5c9a88++){const _0x52157d=_0x5f4d99[_0x5c9a88],_0x4d8991=this[_0x36d0a(0x172)][_0x36d0a(0x258)](_0x52157d[_0x36d0a(0x40a)],_0x52157d[_0x36d0a(0x423)],_0x52157d[_0x36d0a(0x4eb)]);if(!_0x4d8991)continue;const _0x3b099c=(0x0,_univerjs_core[_0x36d0a(0x2ff)])(),_0x1653c0={..._0x52157d,'unitId':_0x33ba8f,'subUnitId':_0x20848f,'drawingId':_0x3b099c},{redo:_0x5e6ff4,undo:_0x467edc,objects:_0x4a8b12}=this[_0x36d0a(0x487)]['getBatchAddOp']([_0x1653c0]);_0x2f38a2[_0x36d0a(0x23c)]({'id':_univerjs_sheets_drawing[_0x36d0a(0x54e)]['id'],'params':{'unitId':_0x33ba8f,'subUnitId':_0x20848f,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x36d0a(0x445)],'op':_0x5e6ff4,'objects':_0x4a8b12}}),_0x2f38a2['push']({'id':_univerjs_pro_sheets_shape[_0x36d0a(0x32c)]['id'],'params':{'unitId':_0x33ba8f,'subUnitId':_0x20848f,'shapeId':_0x3b099c,'shapeType':_0x4d8991['getShapeType'](),'shapeData':JSON[_0x36d0a(0x4ad)](JSON[_0x36d0a(0x346)](_0x4d8991[_0x36d0a(0x411)]()))}}),_0x2469cd[_0x36d0a(0x23c)]({'id':_univerjs_pro_sheets_shape[_0x36d0a(0x1a2)]['id'],'params':{'unitId':_0x33ba8f,'subUnitId':_0x20848f,'shapeId':_0x3b099c}}),_0x2469cd[_0x36d0a(0x23c)]({'id':_univerjs_sheets_drawing[_0x36d0a(0x54e)]['id'],'params':{'unitId':_0x33ba8f,'subUnitId':_0x20848f,'type':_univerjs_sheets_drawing[_0x36d0a(0x3b3)][_0x36d0a(0x225)],'op':_0x467edc,'objects':_0x4a8b12}});}return{'redos':_0x2f38a2,'undos':_0x2469cd};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_core[_0xae170d(0x567)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0xae170d(0x4f1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x23756b,_0xa523f9,_0x4e9234,_0x5847fb,_0x5c7025){const _0x3e27cd=_0xae170d;super(),this[_0x3e27cd(0x35d)]=_0x23756b,this[_0x3e27cd(0x1bf)]=_0xa523f9,this[_0x3e27cd(0x5b0)]=_0x4e9234,this[_0x3e27cd(0x63c)]=_0x5847fb,this[_0x3e27cd(0x172)]=_0x5c7025,_defineProperty(this,_0x3e27cd(0x182),null),this['_initEvents'](),this[_0x3e27cd(0x1c6)](),this['_initEditingParams']();}[_0xae170d(0x512)](){const _0x1ea1e2=_0xae170d,{scene:_0xd3ba0d}=this[_0x1ea1e2(0x35d)];this[_0x1ea1e2(0x163)](_0xd3ba0d[_0x1ea1e2(0x583)]['subscribeEvent'](_0x77aca=>{const _0x76e3f7=_0x1ea1e2,{offsetX:_0x292d90,offsetY:_0x48d168}=_0x77aca,_0x22f109=_0xd3ba0d[_0x76e3f7(0x48f)](_univerjs_engine_render['Vector2']['FromArray']([_0x292d90,_0x48d168]));if(_0x22f109 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x76e3f7(0x172)][_0x76e3f7(0x2ef)](_0x22f109['unitId'],_0x22f109[_0x76e3f7(0x423)],_0x22f109[_0x76e3f7(0x2f8)])))return;this[_0x76e3f7(0x1bf)][_0x76e3f7(0x153)]({'visible':!![],'unitId':_0x22f109['unitId'],'subUnitId':_0x22f109[_0x76e3f7(0x423)],'shapeId':_0x22f109['shapeId'],'shapeKey':_0x22f109['oKey']});}}));}[_0xae170d(0x1c6)](){const _0x402510=_0xae170d;this[_0x402510(0x163)](this['_drawingManagerService'][_0x402510(0x3e0)][_0x402510(0x39a)](_0x2fc825=>{const _0x263cac=_0x402510;if(_0x2fc825['length']===0x1){const _0x514c82=_0x2fc825[0x0],_0x3ec72b=this['_drawingManagerService'][_0x263cac(0x5b9)](_0x514c82);if((_0x3ec72b===null||_0x3ec72b===void 0x0?void 0x0:_0x3ec72b['drawingType'])===_univerjs_core[_0x263cac(0x4c8)]['DRAWING_SHAPE']){const _0x15093c=this[_0x263cac(0x1bf)][_0x263cac(0x635)]();if((_0x15093c===null||_0x15093c===void 0x0?void 0x0:_0x15093c[_0x263cac(0x2f8)])===_0x514c82[_0x263cac(0x4eb)]&&_0x15093c[_0x263cac(0x322)])return;if((0x0,_univerjs_pro_engine_shape[_0x263cac(0x468)])(this['_sheetsShapeService'][_0x263cac(0x2ef)](_0x514c82[_0x263cac(0x40a)],_0x514c82[_0x263cac(0x423)],_0x514c82['drawingId'])))this[_0x263cac(0x1bf)][_0x263cac(0x153)](null);}else this[_0x263cac(0x1bf)][_0x263cac(0x635)]()&&(this[_0x263cac(0x1bf)][_0x263cac(0x56f)](!![]),requestAnimationFrame(()=>{const _0x822d6f=_0x263cac;this[_0x822d6f(0x1bf)][_0x822d6f(0x153)](null);}));}else this['_shapeTextEditingService'][_0x263cac(0x635)]()&&(this[_0x263cac(0x1bf)][_0x263cac(0x56f)](!![]),requestAnimationFrame(()=>{const _0x2664a8=_0x263cac;this[_0x2664a8(0x1bf)][_0x2664a8(0x153)](null);}));})),this[_0x402510(0x163)](this[_0x402510(0x5b0)][_0x402510(0x599)]['subscribe'](_0x15d836=>{const _0x20020d=_0x402510,_0x4e446f=this['_shapeTextEditingService'][_0x20020d(0x635)]();if(_0x4e446f&&_0x15d836['some'](_0x1631fd=>_0x1631fd[_0x20020d(0x4eb)]===_0x4e446f['shapeId']))this[_0x20020d(0x1bf)]['setEditing'](null);}));}[_0xae170d(0x29f)](){const _0x27817d=_0xae170d;this['disposeWithMe'](this[_0x27817d(0x1bf)][_0x27817d(0x63a)][_0x27817d(0x39a)](_0x282e72=>{const _0x18bdb=_0x27817d,{scene:_0x347367}=this[_0x18bdb(0x35d)];if(this[_0x18bdb(0x182)]){const _0xa497d3=_0x347367[_0x18bdb(0x299)](this[_0x18bdb(0x182)]);if(_0xa497d3)_0xa497d3[_0x18bdb(0x153)](![]);}if(_0x282e72){const _0x51ef71=!!_0x282e72[_0x18bdb(0x322)],_0x3c9feb=_0x347367[_0x18bdb(0x299)](_0x282e72[_0x18bdb(0x2af)]);_0x3c9feb&&(_0x3c9feb[_0x18bdb(0x153)](_0x51ef71),this[_0x18bdb(0x182)]=_0x282e72['shapeKey']),this[_0x18bdb(0x63c)][_0x18bdb(0x1d9)](_univerjs_core[_0x18bdb(0x2ba)],_0x51ef71);}else this[_0x18bdb(0x182)]=null,this[_0x18bdb(0x63c)][_0x18bdb(0x1d9)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0xae170d(0x3fd)])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0xae170d(0x231)]),__decorateParam(0x3,_univerjs_core[_0xae170d(0x4f4)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape[_0xae170d(0x2ee)][_0xae170d(0x589)],'stroke':_univerjs_pro_engine_shape[_0xae170d(0x2ee)][_0xae170d(0x4bb)],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0xae170d(0x5a5)]{constructor(_0x44d472,_0x39072e){const _0xc8cc36=_0xae170d;super(_0x44d472,_0x39072e),_defineProperty(this,_0xc8cc36(0x23b),''),_defineProperty(this,'_cxnIndex',-0x1),_defineProperty(this,'_unitId',''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,_0xc8cc36(0x11e),![]);if(_0x39072e)this[_0xc8cc36(0x291)](_0x39072e);}[_0xae170d(0x63b)](){const _0x23d1e9=_0xae170d;return{'unitId':this['_unitId'],'subUnitId':this[_0x23d1e9(0x201)],'shapeId':this['_targetShapeId'],'cxnIndex':this['_cxnIndex']};}[_0xae170d(0x342)](_0x341e77){const _0x1257dc=_0xae170d;this[_0x1257dc(0x11e)]!==_0x341e77&&(this[_0x1257dc(0x11e)]=_0x341e77,this[_0x1257dc(0x1db)](!![]));}['isHighlighted'](){const _0x4e8780=_0xae170d;return this[_0x4e8780(0x11e)];}[_0xae170d(0x291)](_0x3cb204){const _0x46f9ca=_0xae170d;var _0x37e8a3,_0x1b49cf;if(typeof _0x3cb204[_0x46f9ca(0x60c)]!==_0x46f9ca(0x11f))this[_0x46f9ca(0x23b)]=_0x3cb204[_0x46f9ca(0x60c)];if(typeof _0x3cb204['cxnIndex']!=='undefined')this[_0x46f9ca(0x2c9)]=_0x3cb204[_0x46f9ca(0x541)];if(typeof _0x3cb204[_0x46f9ca(0x40a)]!==_0x46f9ca(0x11f))this['_unitId']=_0x3cb204[_0x46f9ca(0x40a)];if(typeof _0x3cb204[_0x46f9ca(0x423)]!=='undefined')this['_subUnitId']=_0x3cb204[_0x46f9ca(0x423)];if(typeof _0x3cb204['isHighlighted']!=='undefined')this[_0x46f9ca(0x11e)]=_0x3cb204['isHighlighted'];this[_0x46f9ca(0x1f6)]({'width':(_0x37e8a3=_0x3cb204['width'])!==null&&_0x37e8a3!==void 0x0?_0x37e8a3:_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':(_0x1b49cf=_0x3cb204[_0x46f9ca(0x558)])!==null&&_0x1b49cf!==void 0x0?_0x1b49cf:_univerjs_pro_engine_shape[_0x46f9ca(0x2ee)][_0x46f9ca(0x5bf)]*0x2});}['_draw'](_0x510630){const _0x94efa7=_0xae170d,_0x345615=this['_isHighlighted']?ConnectionSiteStyle[_0x94efa7(0x432)]:ConnectionSiteStyle['normal'];_univerjs_engine_render[_0x94efa7(0x10c)]['drawWith'](_0x510630,{'radius':_univerjs_pro_engine_shape[_0x94efa7(0x2ee)][_0x94efa7(0x5bf)],'fill':_0x345615[_0x94efa7(0x4cb)],'stroke':_0x345615['stroke'],'strokeWidth':_0x345615[_0x94efa7(0x38f)],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x55a3b5,_0x41e6b0,_0x5e6d8c,_0x2b76f7){const _0x359eb4=_0xae170d;super(),this[_0x359eb4(0x35d)]=_0x55a3b5,this['_renderManagerService']=_0x41e6b0,this[_0x359eb4(0x5b0)]=_0x5e6d8c,this['_sheetsShapeService']=_0x2b76f7,_defineProperty(this,'_connectionSiteObjects',[]),_defineProperty(this,_0x359eb4(0x62f),null),_defineProperty(this,_0x359eb4(0x44e),-0x1),_defineProperty(this,_0x359eb4(0x227),null),_defineProperty(this,_0x359eb4(0x576),''),_defineProperty(this,'_subUnitId',''),_defineProperty(this,_0x359eb4(0x14a),null);}['startConnectionDetection'](_0x1e72f5,_0xa61a54,_0x1478d0,_0x11364a){const _0x5bf1b2=_0xae170d;this[_0x5bf1b2(0x227)]=_0x1e72f5,this[_0x5bf1b2(0x576)]=_0xa61a54,this[_0x5bf1b2(0x201)]=_0x1478d0,this[_0x5bf1b2(0x14a)]=_0x11364a;}['updateConnectionDetection'](_0x5ad9b5){const _0x815a46=_0xae170d;if(!this[_0x815a46(0x227)])return null;const _0x8020fb=this[_0x815a46(0x30a)](_0x5ad9b5);return _0x8020fb?(this['_activeTargetShapeId']!==_0x8020fb[_0x815a46(0x2f8)]&&(this[_0x815a46(0x102)](),this[_0x815a46(0x116)](_0x8020fb['shapeId'],_0x8020fb[_0x815a46(0x4cc)]),this[_0x815a46(0x62f)]=_0x8020fb[_0x815a46(0x2f8)]),this['_findNearestConnectionSite'](_0x5ad9b5)):(this['_activeTargetShapeId']!==null&&(this[_0x815a46(0x102)](),this[_0x815a46(0x62f)]=null),null);}['endConnectionDetection'](){const _0x461f11=_0xae170d;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x461f11(0x62f)]=null,this[_0x461f11(0x44e)]=-0x1,this[_0x461f11(0x14a)]=null;}[_0xae170d(0x1ee)](){const _0x23bf64=_0xae170d;if(this[_0x23bf64(0x62f)]===null||this[_0x23bf64(0x44e)]<0x0)return null;return{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x23bf64(0x44e)]};}[_0xae170d(0x30a)](_0x3eff89){const _0x585d2d=_0xae170d,_0x2a1f50=this[_0x585d2d(0x5b0)][_0x585d2d(0x2df)](this[_0x585d2d(0x576)],this[_0x585d2d(0x201)]);for(const _0x15f784 of Object[_0x585d2d(0x57e)](_0x2a1f50)){if(_0x15f784===this[_0x585d2d(0x14a)])continue;if(_0x2a1f50[_0x15f784][_0x585d2d(0x19b)]!==_univerjs_core[_0x585d2d(0x4c8)][_0x585d2d(0x5f5)])continue;const _0x442be1=this[_0x585d2d(0x172)][_0x585d2d(0x258)](this[_0x585d2d(0x576)],this[_0x585d2d(0x201)],_0x15f784);if(!_0x442be1)continue;if((0x0,_univerjs_pro_engine_shape[_0x585d2d(0x468)])(_0x442be1[_0x585d2d(0x2ef)]()))continue;if(_0x442be1[_0x585d2d(0x56e)]()[_0x585d2d(0x233)]===0x0)continue;if(!this[_0x585d2d(0x227)])continue;const _0x4e59d5=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x585d2d(0x576)],'subUnitId':this[_0x585d2d(0x201)],'drawingId':_0x15f784}),_0x4ff32c=this[_0x585d2d(0x227)][_0x585d2d(0x299)](_0x4e59d5);if(!_0x4ff32c)continue;const {left:_0x5d4ed9,top:_0x276244,width:_0x3a7260,height:_0x4927eb}=_0x4ff32c[_0x585d2d(0x45b)](),_0x40c794=_0x5d4ed9+_0x3a7260/0x2,_0x3e581e=_0x276244+_0x4927eb/0x2,_0x1596be=_0x4ff32c[_0x585d2d(0x521)][_0x585d2d(0x22c)](),_0x3b14bc=new _univerjs_engine_render['Transform']([_0x1596be[0x0],_0x1596be[0x1],_0x1596be[0x2],_0x1596be[0x3],_0x40c794,_0x3e581e]),_0x26de4a=_0x4ff32c[_0x585d2d(0x1f9)](),_0x2a5832=(_0x4ff32c[_0x585d2d(0x390)]&&(_0x26de4a===null||_0x26de4a===void 0x0?void 0x0:_0x26de4a[_0x585d2d(0x3be)])===_univerjs_engine_render[_0x585d2d(0x413)][_0x585d2d(0x4f9)]?_0x26de4a['ancestorTransform'][_0x585d2d(0x272)](_0x3b14bc):_0x3b14bc)[_0x585d2d(0x4f2)]()['applyPoint'](_0x3eff89),_0x26a260=_0x3a7260/0x2,_0x599ce6=_0x4927eb/0x2,_0x32fff8=SHAPE_BOUNDS_PADDING;if(_0x2a5832['x']>=-_0x26a260-_0x32fff8&&_0x2a5832['x']<=_0x26a260+_0x32fff8&&_0x2a5832['y']>=-_0x599ce6-_0x32fff8&&_0x2a5832['y']<=_0x599ce6+_0x32fff8)return{'shapeId':_0x15f784,'shapeModel':_0x442be1};}return null;}['_showConnectionSites'](_0x3682df,_0x19cb9d){const _0x4e311a=_0xae170d;if(!this[_0x4e311a(0x227)])return;const _0x36e6a2=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x4e311a(0x576)],'subUnitId':this[_0x4e311a(0x201)],'drawingId':_0x3682df}),_0x280056=this[_0x4e311a(0x227)][_0x4e311a(0x299)](_0x36e6a2);if(!_0x280056)return;const {left:_0x4ddb4e,top:_0x3ef653,width:_0x145f79,height:_0x1b9ab9}=_0x280056[_0x4e311a(0x45b)](),_0x3142fd=_0x4ddb4e+_0x145f79/0x2,_0x58c676=_0x3ef653+_0x1b9ab9/0x2,_0x1b9545=_0x280056['transform'][_0x4e311a(0x22c)](),_0x3c0e4d=new _univerjs_engine_render['Transform']([_0x1b9545[0x0],_0x1b9545[0x1],_0x1b9545[0x2],_0x1b9545[0x3],_0x3142fd,_0x58c676]),_0x47cb46=_0x280056[_0x4e311a(0x1f9)](),_0x1cdbff=_0x280056[_0x4e311a(0x390)]&&(_0x47cb46===null||_0x47cb46===void 0x0?void 0x0:_0x47cb46[_0x4e311a(0x3be)])===_univerjs_engine_render[_0x4e311a(0x413)][_0x4e311a(0x4f9)]?_0x47cb46[_0x4e311a(0x644)][_0x4e311a(0x272)](_0x3c0e4d):_0x3c0e4d;_0x19cb9d[_0x4e311a(0x5ce)]({'width':_0x145f79,'height':_0x1b9ab9});const _0x43779f=_0x19cb9d[_0x4e311a(0x56e)]();for(const _0x3a8c2d of _0x43779f){const _0x3bfabc=_0x3a8c2d['x']-_0x145f79/0x2,_0x201db8=_0x3a8c2d['y']-_0x1b9ab9/0x2,_0x1f1559=_0x1cdbff['applyPoint']({'x':_0x3bfabc,'y':_0x201db8}),_0x47493b=_0x1f1559['x'],_0x6d973a=_0x1f1559['y'],_0x108cdf=new SheetBasicShapeConnectionSiteObject(_0x4e311a(0x57c)+_0x3682df+'-'+_0x3a8c2d[_0x4e311a(0x55a)],{'left':_0x47493b-_univerjs_pro_engine_shape[_0x4e311a(0x2ee)][_0x4e311a(0x5bf)],'top':_0x6d973a-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'targetShapeId':_0x3682df,'cxnIndex':_0x3a8c2d[_0x4e311a(0x55a)],'unitId':this['_unitId'],'subUnitId':this[_0x4e311a(0x201)],'width':_univerjs_pro_engine_shape[_0x4e311a(0x2ee)][_0x4e311a(0x5bf)]*0x2,'height':_univerjs_pro_engine_shape[_0x4e311a(0x2ee)][_0x4e311a(0x5bf)]*0x2,'zIndex':_univerjs_engine_render[_0x4e311a(0x605)]+0x2,'evented':![]});this[_0x4e311a(0x421)]['push'](_0x108cdf),this['_currentScene']['addObject'](_0x108cdf,_univerjs_engine_render[_0x4e311a(0x605)]+0x2);}}['_findNearestConnectionSite'](_0x29098f){const _0x51a677=_0xae170d;let _0xa2d621=null,_0x3ed247=Infinity,_0xaddbe1=null;for(const _0x5e604 of this[_0x51a677(0x421)]){const _0x3139af=_0x5e604[_0x51a677(0x367)]+_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],_0x3bf960=_0x5e604[_0x51a677(0x381)]+_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x51a677(0x5bf)],_0x5236bf=_0x29098f['x']-_0x3139af,_0x576af0=_0x29098f['y']-_0x3bf960,_0x2da72a=Math[_0x51a677(0x2da)](_0x5236bf*_0x5236bf+_0x576af0*_0x576af0);_0x2da72a<_0x3ed247&&(_0x3ed247=_0x2da72a,_0xa2d621=_0x5e604,_0xaddbe1={'x':_0x3139af,'y':_0x3bf960});}const _0x1a4a73=_0x3ed247<=CONNECTION_SITE_HIT_RADIUS&&_0xa2d621?_0xa2d621['getConnectionInfo']()[_0x51a677(0x541)]:-0x1;if(_0x1a4a73!==this[_0x51a677(0x44e)]){for(const _0x4bc0f4 of this[_0x51a677(0x421)]){const _0x562cf3=_0x4bc0f4['getConnectionInfo']();_0x4bc0f4[_0x51a677(0x342)](_0x562cf3[_0x51a677(0x541)]===_0x1a4a73);}this[_0x51a677(0x44e)]=_0x1a4a73;}if(_0x3ed247<=CONNECTION_SITE_HIT_RADIUS&&_0xa2d621&&_0xaddbe1){const _0xd99dbe=_0xa2d621[_0x51a677(0x63b)](),_0x182138=this[_0x51a677(0x57a)](_0xd99dbe[_0x51a677(0x2f8)],_0xd99dbe[_0x51a677(0x541)]);return{'shapeId':_0xd99dbe[_0x51a677(0x2f8)],'cxnIndex':_0xd99dbe[_0x51a677(0x541)],'unitId':_0xd99dbe[_0x51a677(0x40a)],'subUnitId':_0xd99dbe['subUnitId'],'worldPoint':_0xaddbe1,'angle':_0x182138};}return null;}['_getConnectionSiteAngle'](_0x481df9,_0x8e9271){const _0xe764f=_0xae170d,_0x45728c=this[_0xe764f(0x172)][_0xe764f(0x258)](this[_0xe764f(0x576)],this[_0xe764f(0x201)],_0x481df9);if(!_0x45728c)return 0x0;const _0x590836=this[_0xe764f(0x5b0)][_0xe764f(0x5b9)]({'unitId':this['_unitId'],'subUnitId':this[_0xe764f(0x201)],'drawingId':_0x481df9});if(!(_0x590836===null||_0x590836===void 0x0?void 0x0:_0x590836[_0xe764f(0x521)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x590836[_0xe764f(0x521)];_0x45728c[_0xe764f(0x5ce)]({'width':width,'height':height});const _0x242cbb=_0x45728c[_0xe764f(0x56e)]()[_0xe764f(0xee)](_0x2d4fb3=>_0x2d4fb3['index']===_0x8e9271);if(!_0x242cbb)return 0x0;let _0x3409e3=_0x242cbb[_0xe764f(0x27d)]/0xea60;if(flipX)_0x3409e3=0xb4-_0x3409e3;if(flipY)_0x3409e3=-_0x3409e3;return _0x3409e3=(_0x3409e3%0x168+0x168)%0x168,_0x3409e3;}[_0xae170d(0x102)](){const _0x54b8b4=_0xae170d;for(const _0x571e31 of this['_connectionSiteObjects'])_0x571e31[_0x54b8b4(0x178)]();this['_connectionSiteObjects']=[],this[_0x54b8b4(0x44e)]=-0x1;}[_0xae170d(0x178)](){const _0x2f84ac=_0xae170d;this[_0x2f84ac(0x102)](),super[_0x2f84ac(0x178)]();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_engine_render['IRenderManagerService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_drawing[_0xae170d(0x231)])),__decorateParam(0x3,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_pro_sheets_shape['SheetsShapeService']))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x24c8f0,_0x55fb3d,_0x1bb231,_0x2e32df,_0x42f24d){const _0x5a8364=_0xae170d;super(),this[_0x5a8364(0x47a)]=_0x24c8f0,this[_0x5a8364(0x539)]=_0x55fb3d,this['_sheetDrawingService']=_0x1bb231,this['_shapeService']=_0x2e32df,this[_0x5a8364(0x563)]=_0x42f24d,_defineProperty(this,_0x5a8364(0x4d5),void 0x0),this[_0x5a8364(0x4f3)](),this[_0x5a8364(0x61e)]();}get[_0xae170d(0x22d)](){const _0x173286=_0xae170d;return this[_0x173286(0x487)][_0x173286(0x309)]();}['_registerGroupFeaturePasteHook'](){const _0x4fcfc0=_0xae170d;this[_0x4fcfc0(0x563)]['registerFeaturePasteHook'](({fromUnitId:_0x300899,fromSubUnitId:_0x5a0d1f,toUnitId:_0x38997a,toSubUnitId:_0x3e6bac,idMap:_0x570ed1})=>{const _0x3be4a9=_0x4fcfc0,_0x2779eb=[],_0x444669=[];for(const [_0x10bede,_0xf0e439]of _0x570ed1[_0x3be4a9(0x46e)]()){const _0x330713=this[_0x3be4a9(0x526)][_0x3be4a9(0x258)](_0x300899,_0x5a0d1f,_0x10bede);if(!_0x330713)continue;const _0x28f53d=_0x330713['getShapeType'](),_0x9d507e=JSON['parse'](JSON[_0x3be4a9(0x346)](_0x330713[_0x3be4a9(0x411)]()));if(_0x9d507e[_0x3be4a9(0x3ee)]){var _0x45396e,_0x595b12;const _0x2e66b9=(_0x45396e=_0x9d507e['relation'][_0x3be4a9(0x446)])===null||_0x45396e===void 0x0?void 0x0:_0x45396e['shapeId'],_0x822277=(_0x595b12=_0x9d507e[_0x3be4a9(0x3ee)]['to'])===null||_0x595b12===void 0x0?void 0x0:_0x595b12[_0x3be4a9(0x2f8)],_0x2689c1=_0x2e66b9?_0x570ed1[_0x3be4a9(0x474)](_0x2e66b9):!![],_0x104c78=_0x822277?_0x570ed1[_0x3be4a9(0x474)](_0x822277):!![];if(_0x2689c1&&_0x2e66b9&&_0x9d507e[_0x3be4a9(0x3ee)]['from'])_0x9d507e[_0x3be4a9(0x3ee)][_0x3be4a9(0x446)]={..._0x9d507e[_0x3be4a9(0x3ee)]['from'],'shapeId':_0x570ed1[_0x3be4a9(0x59e)](_0x2e66b9)};else _0x9d507e[_0x3be4a9(0x3ee)][_0x3be4a9(0x446)]=void 0x0;if(_0x104c78&&_0x822277&&_0x9d507e['relation']['to'])_0x9d507e[_0x3be4a9(0x3ee)]['to']={..._0x9d507e['relation']['to'],'shapeId':_0x570ed1[_0x3be4a9(0x59e)](_0x822277)};else _0x9d507e[_0x3be4a9(0x3ee)]['to']=void 0x0;}_0x2779eb['push']({'id':_univerjs_pro_sheets_shape[_0x3be4a9(0x32c)]['id'],'params':{'unitId':_0x38997a,'subUnitId':_0x3e6bac,'shapeId':_0xf0e439,'shapeType':_0x28f53d,'shapeData':_0x9d507e}}),_0x444669[_0x3be4a9(0x23c)]({'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x38997a,'subUnitId':_0x3e6bac,'shapeId':_0xf0e439}});}return{'redos':_0x2779eb,'undos':_0x444669};});}[_0xae170d(0x4f3)](){const _0xd9d98d=_0xae170d;this[_0xd9d98d(0x163)](this[_0xd9d98d(0x539)][_0xd9d98d(0x658)]({'id':'sheets-shape-ui','onBeforeCopy':(_0x2db395,_0x4b8123,_0x5c0b6f,_0x40d5e7)=>{const _0x2101c3=_0xd9d98d;this[_0x2101c3(0x4d5)]=null;const _0x20090e=this[_0x2101c3(0x22d)];if(_0x20090e[_0x2101c3(0x233)]){const _0x4e3c45=_0x20090e['filter'](_0x2c1dd5=>_0x2c1dd5['drawingType']===_univerjs_core['DrawingTypeEnum'][_0x2101c3(0x5f5)]);if(_0x4e3c45['length']===0x0)return;this[_0x2101c3(0x4d5)]={'unitId':_0x2db395,'subUnitId':_0x4b8123,'copyType':_0x40d5e7,'drawings':_0x4e3c45};}else this[_0x2101c3(0x5a7)](_0x2db395,_0x4b8123,_0x5c0b6f,_0x40d5e7);},'onPasteCells':(_0xcc4b1b,_0x3e87b1,_0x2b57a6,_0x3afd23)=>{const _0x12d0a9=_0xd9d98d;if(!this[_0x12d0a9(0x4d5)])return{'redos':[],'undos':[]};const {pasteType:_0x4f3c48}=_0x3afd23;if(_0x4f3c48!==_univerjs_sheets_ui['PREDEFINED_HOOK_NAME']['DEFAULT_PASTE'])return{'redos':[],'undos':[]};return this[_0x12d0a9(0x308)](_0x3e87b1,this[_0x12d0a9(0x4d5)][_0x12d0a9(0x44d)]===_univerjs_sheets_ui[_0x12d0a9(0x3c8)]['CUT']);},'onPasteUnrecognized':_0x100d54=>{const _0x4f7eff=_0xd9d98d;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x4f7eff(0x308)](_0x100d54,this[_0x4f7eff(0x4d5)]['copyType']===_univerjs_sheets_ui[_0x4f7eff(0x3c8)][_0x4f7eff(0x228)]);}}));}[_0xae170d(0x5a7)](_0x5405ec,_0x1ea271,_0x4f2a1e,_0x851d23){const _0x121d6a=_0xae170d,_0x11afc5=this['_sheetSkeletonService'][_0x121d6a(0x606)](_0x5405ec,_0x1ea271);if(!_0x11afc5)return;const _0x114e0b=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x11afc5,_0x4f2a1e);if(!_0x114e0b)return;const {startX:_0x35ea0f,endX:_0x399627,startY:_0x508295,endY:_0x22934c}=_0x114e0b,_0x5e0404=this[_0x121d6a(0x487)][_0x121d6a(0x2df)](_0x5405ec,_0x1ea271),_0x56b3b7=this['_focusedDrawings'][_0x121d6a(0x234)]();for(const [_0x14f012,_0x1e8310]of Object[_0x121d6a(0x46e)](_0x5e0404)){if(_0x1e8310[_0x121d6a(0x19b)]!==_univerjs_core[_0x121d6a(0x4c8)][_0x121d6a(0x5f5)])continue;const {transform:_0x1fde8b}=_0x1e8310;if(!_0x1fde8b)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x1fde8b;if(_0x35ea0f<=left&&_0x399627>=left+width&&_0x508295<=top&&_0x22934c>=top+height)_0x56b3b7[_0x121d6a(0x23c)](_0x1e8310);}if(_0x56b3b7[_0x121d6a(0x233)]>0x0)this[_0x121d6a(0x4d5)]={'unitId':_0x5405ec,'subUnitId':_0x1ea271,'copyType':_0x851d23,'copyRange':_0x4f2a1e,'drawings':_0x56b3b7};}[_0xae170d(0x308)](_0x406438,_0x1d7961){const _0x55d24b=_0xae170d,{unitId:_0x12588f,subUnitId:_0x492964,range:_0x5ed7be}=_0x406438,_0x2f6675=this[_0x55d24b(0x47a)]['getSkeleton'](_0x12588f,_0x492964);if(!_0x2f6675)return{'redos':[],'undos':[]};const _0x223f7d=(0x0,_univerjs_sheets[_0x55d24b(0x27f)])(_0x5ed7be),{unitId:_0x51c8b9,subUnitId:_0x3af551,copyRange:_0x1fe08e,drawings:_0x3ef817}=this['_copyInfo'],_0x123c03=this[_0x55d24b(0x47a)]['getSkeleton'](_0x51c8b9,_0x3af551);if(!_0x123c03)return{'redos':[],'undos':[]};let _0x74f80a;if(!_0x1fe08e){let _0x4d8898=Infinity,_0x3bc159=Infinity;for(const _0x5192d3 of _0x3ef817){var _0x4be998;const {left:left=0x0,top:top=0x0}=(_0x4be998=_0x5192d3['transform'])!==null&&_0x4be998!==void 0x0?_0x4be998:{};if(left<_0x4d8898)_0x4d8898=left;if(top<_0x3bc159)_0x3bc159=top;}if(_0x4d8898!==Infinity&&_0x3bc159!==Infinity)_0x74f80a={'left':_0x4d8898,'top':_0x3bc159};}const _0x11857b=new Map();if(!_0x1d7961){for(const _0x39c8fd of _0x3ef817)_0x11857b[_0x55d24b(0x57b)](_0x39c8fd['drawingId'],(0x0,_univerjs_core[_0x55d24b(0x2ff)])());}const _0x3fff0a=[],_0x496bde=[];for(const _0x5d1525 of _0x3ef817){const {drawingId:_0x232733,transform:_0x4cd2cc,sheetTransform:_0x3f15eb}=_0x5d1525;if(!_0x4cd2cc||!_0x3f15eb)continue;const _0x1877ba=this[_0x55d24b(0x44b)]({'transform':_0x4cd2cc,'sheetTransform':_0x3f15eb},{'skeleton':_0x123c03,'range':_0x1fe08e},{'skeleton':_0x2f6675,'range':_0x223f7d},_0x74f80a);if(_0x1d7961){const {redos:_0x3290ef,undos:_0x61d27d}=this['_generateCutPasteMutations']({'fromUnitId':_0x51c8b9,'fromSubUnitId':_0x3af551,'toUnitId':_0x12588f,'toSubUnitId':_0x492964,'drawing':_0x5d1525,'newTransforms':_0x1877ba});_0x3fff0a[_0x55d24b(0x23c)](..._0x3290ef),_0x496bde[_0x55d24b(0x23c)](..._0x61d27d);continue;}const {redos:_0x3daa19,undos:_0xab0419}=this['_generateCopyPasteMutations']({'toUnitId':_0x12588f,'toSubUnitId':_0x492964,'drawing':_0x5d1525,'newTransforms':_0x1877ba,'newDrawingId':_0x11857b['get'](_0x232733),'idMap':_0x11857b});_0x3fff0a[_0x55d24b(0x23c)](..._0x3daa19),_0x496bde[_0x55d24b(0x23c)](..._0xab0419);}return{'redos':_0x3fff0a,'undos':_0x496bde};}[_0xae170d(0x603)](_0x573da3){const _0x1d6cea=_0xae170d,{fromUnitId:_0x24cc7e,fromSubUnitId:_0x9b43f9,toUnitId:_0x4e6a17,toSubUnitId:_0x22dc83,drawing:_0x24600d,newTransforms:_0x143f31}=_0x573da3,_0x3ebe91={..._0x24600d,'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'transform':_0x143f31[_0x1d6cea(0x521)],'sheetTransform':_0x143f31['sheetTransform']};if(_0x4e6a17===_0x24cc7e&&_0x22dc83===_0x9b43f9){const {redo:_0xc55880,undo:_0x9aca4,objects:_0x3cd994}=this[_0x1d6cea(0x487)]['getBatchUpdateOp']([_0x3ebe91]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x1d6cea(0x54e)]['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)][_0x1d6cea(0x359)],'op':_0xc55880,'objects':_0x3cd994}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)][_0x1d6cea(0x359)],'op':_0x9aca4,'objects':_0x3cd994}}]};}else{const _0x231ea4=this[_0x1d6cea(0x487)][_0x1d6cea(0x332)]([_0x24600d]),_0x51ae1c=this[_0x1d6cea(0x487)][_0x1d6cea(0x2e4)]([_0x3ebe91]),_0x15cb79=this[_0x1d6cea(0x526)][_0x1d6cea(0x258)](_0x24600d['unitId'],_0x24600d[_0x1d6cea(0x423)],_0x24600d[_0x1d6cea(0x4eb)]);if(!_0x15cb79)return{'redos':[],'undos':[]};const _0x10404f=_0x15cb79['getShapeType'](),_0x4a5a5b=JSON[_0x1d6cea(0x4ad)](JSON[_0x1d6cea(0x346)](_0x15cb79[_0x1d6cea(0x411)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x1d6cea(0x54e)]['id'],'params':{'unitId':_0x24cc7e,'subUnitId':_0x9b43f9,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)]['REMOVE'],'op':_0x231ea4[_0x1d6cea(0x2ae)],'objects':_0x231ea4['objects']}},{'id':_univerjs_pro_sheets_shape[_0x1d6cea(0x1a2)]['id'],'params':{'unitId':_0x24cc7e,'subUnitId':_0x9b43f9,'shapeId':_0x24600d['drawingId']}},{'id':_univerjs_sheets_drawing[_0x1d6cea(0x54e)]['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)][_0x1d6cea(0x445)],'op':_0x51ae1c[_0x1d6cea(0x2ae)],'objects':_0x51ae1c[_0x1d6cea(0x4bd)]}},{'id':_univerjs_pro_sheets_shape[_0x1d6cea(0x32c)]['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'shapeId':_0x24600d[_0x1d6cea(0x4eb)],'shapeType':_0x10404f,'shapeData':_0x4a5a5b}}],'undos':[{'id':_univerjs_sheets_drawing[_0x1d6cea(0x54e)]['id'],'params':{'unitId':_0x24cc7e,'subUnitId':_0x9b43f9,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)][_0x1d6cea(0x445)],'op':_0x231ea4[_0x1d6cea(0x611)],'objects':_0x231ea4[_0x1d6cea(0x4bd)]}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x24cc7e,'subUnitId':_0x9b43f9,'shapeId':_0x24600d['drawingId'],'shapeType':_0x10404f,'shapeData':_0x4a5a5b}},{'id':_univerjs_sheets_drawing[_0x1d6cea(0x54e)]['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'type':_univerjs_sheets_drawing[_0x1d6cea(0x3b3)]['REMOVE'],'op':_0x51ae1c[_0x1d6cea(0x611)],'objects':_0x51ae1c[_0x1d6cea(0x4bd)]}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4e6a17,'subUnitId':_0x22dc83,'shapeId':_0x24600d[_0x1d6cea(0x4eb)]}}]};}}[_0xae170d(0x4b1)](_0x854a7b){const _0x2f76ed=_0xae170d,{toUnitId:_0x3ca72d,toSubUnitId:_0x325e31,drawing:_0x431f09,newTransforms:_0x2946bb,newDrawingId:_0x4cc825,idMap:_0x1e5e49}=_0x854a7b,_0x1bb252={..._0x431f09,'unitId':_0x3ca72d,'subUnitId':_0x325e31,'drawingId':_0x4cc825,'transform':_0x2946bb[_0x2f76ed(0x521)],'sheetTransform':_0x2946bb['sheetTransform']},{redo:_0x56819e,undo:_0xd4799,objects:_0x577685}=this[_0x2f76ed(0x487)][_0x2f76ed(0x2e4)]([_0x1bb252]),_0x48227c=this[_0x2f76ed(0x526)]['getShapeModel'](_0x431f09[_0x2f76ed(0x40a)],_0x431f09[_0x2f76ed(0x423)],_0x431f09[_0x2f76ed(0x4eb)]);if(!_0x48227c)return{'redos':[],'undos':[]};const _0x444ec7=_0x48227c[_0x2f76ed(0x2ef)](),_0x2ee5a9=JSON['parse'](JSON[_0x2f76ed(0x346)](_0x48227c['getShapeData']()));if(_0x2ee5a9[_0x2f76ed(0x3ee)]){var _0x521b4a,_0x1eba6b;const _0x1fc7bd=(_0x521b4a=_0x2ee5a9[_0x2f76ed(0x3ee)][_0x2f76ed(0x446)])===null||_0x521b4a===void 0x0?void 0x0:_0x521b4a[_0x2f76ed(0x2f8)],_0x3dfb13=(_0x1eba6b=_0x2ee5a9[_0x2f76ed(0x3ee)]['to'])===null||_0x1eba6b===void 0x0?void 0x0:_0x1eba6b[_0x2f76ed(0x2f8)],_0x241393=_0x1fc7bd?_0x1e5e49[_0x2f76ed(0x474)](_0x1fc7bd):!![],_0x459b3e=_0x3dfb13?_0x1e5e49[_0x2f76ed(0x474)](_0x3dfb13):!![];if(_0x241393&&_0x1fc7bd&&_0x2ee5a9[_0x2f76ed(0x3ee)][_0x2f76ed(0x446)])_0x2ee5a9[_0x2f76ed(0x3ee)][_0x2f76ed(0x446)]={..._0x2ee5a9['relation'][_0x2f76ed(0x446)],'shapeId':_0x1e5e49[_0x2f76ed(0x59e)](_0x1fc7bd)};else _0x2ee5a9[_0x2f76ed(0x3ee)][_0x2f76ed(0x446)]=void 0x0;if(_0x459b3e&&_0x3dfb13&&_0x2ee5a9[_0x2f76ed(0x3ee)]['to'])_0x2ee5a9['relation']['to']={..._0x2ee5a9[_0x2f76ed(0x3ee)]['to'],'shapeId':_0x1e5e49['get'](_0x3dfb13)};else _0x2ee5a9['relation']['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing[_0x2f76ed(0x54e)]['id'],'params':{'unitId':_0x3ca72d,'subUnitId':_0x325e31,'type':_univerjs_sheets_drawing[_0x2f76ed(0x3b3)]['INSERT'],'op':_0x56819e,'objects':_0x577685}},{'id':_univerjs_pro_sheets_shape[_0x2f76ed(0x32c)]['id'],'params':{'unitId':_0x3ca72d,'subUnitId':_0x325e31,'shapeId':_0x4cc825,'shapeType':_0x444ec7,'shapeData':_0x2ee5a9}}],'undos':[{'id':_univerjs_sheets_drawing[_0x2f76ed(0x54e)]['id'],'params':{'unitId':_0x3ca72d,'subUnitId':_0x325e31,'type':_univerjs_sheets_drawing[_0x2f76ed(0x3b3)]['REMOVE'],'op':_0xd4799,'objects':_0x577685}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x3ca72d,'subUnitId':_0x325e31,'shapeId':_0x4cc825}}]};}[_0xae170d(0x44b)](_0x1c4889,_0x5b9bf6,_0x2cbceb,_0xfed687){const _0x2805c7=_0xae170d;var _0x25fddf;const {range:_0x1f0a80,skeleton:_0x51d28b}=_0x5b9bf6,{range:_0x5beb34,skeleton:_0x1818d2}=_0x2cbceb,{transform:_0x11bca8,sheetTransform:_0x28b00c}=_0x1c4889,_0x2e9a2={..._0x11bca8};if(_0x1f0a80){const _0x39c24f=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x51d28b,_0x1f0a80),_0x4bbe63=(0x0,_univerjs_sheets[_0x2805c7(0x45d)])(_0x1818d2,_0x5beb34);if(_0x39c24f&&_0x4bbe63){var _0x32c0c9,_0x3c7613;const _0x3644b4=_0x4bbe63['startX']-_0x39c24f[_0x2805c7(0x4ef)],_0x10f319=_0x4bbe63['startY']-_0x39c24f[_0x2805c7(0x39d)];_0x2e9a2[_0x2805c7(0x367)]=((_0x32c0c9=_0x2e9a2[_0x2805c7(0x367)])!==null&&_0x32c0c9!==void 0x0?_0x32c0c9:0x0)+_0x3644b4,_0x2e9a2['top']=((_0x3c7613=_0x2e9a2[_0x2805c7(0x381)])!==null&&_0x3c7613!==void 0x0?_0x3c7613:0x0)+_0x10f319;}}else{const _0x384f9b=(0x0,_univerjs_sheets[_0x2805c7(0x45d)])(_0x1818d2,_0x5beb34);if(_0xfed687&&_0x384f9b){var _0x50b340,_0x38bc3d;const _0x2cdf26=((_0x50b340=_0x2e9a2[_0x2805c7(0x367)])!==null&&_0x50b340!==void 0x0?_0x50b340:0x0)-_0xfed687['left'],_0x5eda74=((_0x38bc3d=_0x2e9a2['top'])!==null&&_0x38bc3d!==void 0x0?_0x38bc3d:0x0)-_0xfed687[_0x2805c7(0x381)];_0x2e9a2[_0x2805c7(0x367)]=_0x384f9b[_0x2805c7(0x4ef)]+_0x2cdf26,_0x2e9a2[_0x2805c7(0x381)]=_0x384f9b[_0x2805c7(0x39d)]+_0x5eda74;}else _0x2e9a2[_0x2805c7(0x367)]=_0x384f9b===null||_0x384f9b===void 0x0?void 0x0:_0x384f9b[_0x2805c7(0x4ef)],_0x2e9a2[_0x2805c7(0x381)]=_0x384f9b===null||_0x384f9b===void 0x0?void 0x0:_0x384f9b[_0x2805c7(0x39d)];}return{'transform':_0x2e9a2,'sheetTransform':(_0x25fddf=(0x0,_univerjs_sheets_drawing[_0x2805c7(0x300)])(_0x2e9a2,_0x1818d2))!==null&&_0x25fddf!==void 0x0?_0x25fddf:_0x28b00c};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets[_0xae170d(0x504)])),__decorateParam(0x1,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets_ui['ISheetClipboardService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets_drawing[_0xae170d(0x623)])),__decorateParam(0x3,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing_ui[_0xae170d(0x398)]))],SheetShapeClipboardController);function _0x513a(_0x132ced,_0x5ef281){_0x132ced=_0x132ced-0xea;const _0x531790=_0x5317();let _0x513a15=_0x531790[_0x132ced];return _0x513a15;}var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0xae170d(0x5a5)]{constructor(_0x171db6,_0x1e7f3d){const _0x52bca0=_0xae170d;super(_0x171db6,_0x1e7f3d),_defineProperty(this,'_shapeId',null),_defineProperty(this,_0x52bca0(0x155),null),_defineProperty(this,_0x52bca0(0x576),null),_defineProperty(this,_0x52bca0(0x201),null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x1e7f3d)this[_0x52bca0(0x291)](_0x1e7f3d);}[_0xae170d(0x3af)](){const _0x50f2e8=_0xae170d;return{'unitId':this[_0x50f2e8(0x576)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}['setShapeProps'](_0x50d31d){const _0x39a77d=_0xae170d;if(typeof _0x50d31d[_0x39a77d(0x2f8)]!==_0x39a77d(0x11f))this[_0x39a77d(0x436)]=_0x50d31d[_0x39a77d(0x2f8)];if(typeof _0x50d31d['unitId']!==_0x39a77d(0x11f))this[_0x39a77d(0x576)]=_0x50d31d[_0x39a77d(0x40a)];if(typeof _0x50d31d[_0x39a77d(0x423)]!==_0x39a77d(0x11f))this[_0x39a77d(0x201)]=_0x50d31d['subUnitId'];if(typeof _0x50d31d['isStartConnectorPoint']!==_0x39a77d(0x11f))this[_0x39a77d(0x192)]=_0x50d31d[_0x39a77d(0x1f3)];this[_0x39a77d(0x1f6)]({'width':_0x50d31d[_0x39a77d(0x62b)],'height':_0x50d31d[_0x39a77d(0x558)]});}['_draw'](_0x16c484){const _0x4fc712=_0xae170d;_univerjs_engine_render['Circle']['drawWith'](_0x16c484,{'radius':_univerjs_pro_engine_shape[_0x4fc712(0x2ee)][_0x4fc712(0x5bf)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x4fc712(0x589)],'stroke':_univerjs_pro_engine_shape[_0x4fc712(0x2ee)][_0x4fc712(0x4bb)],'strokeWidth':_univerjs_pro_engine_shape[_0x4fc712(0x2ee)][_0x4fc712(0xea)],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x37c700,_0x21e6f2,_0x3c0c14,_0x1e5bbd,_0x2c53fc,_0x369c71,_0x1c7e26,_0xc63627){const _0x5df065=_0xae170d;super(),this[_0x5df065(0x35d)]=_0x37c700,this[_0x5df065(0x1f1)]=_0x21e6f2,this[_0x5df065(0x397)]=_0x3c0c14,this[_0x5df065(0x5b0)]=_0x1e5bbd,this[_0x5df065(0x434)]=_0x2c53fc,this['_sheetsShapeService']=_0x369c71,this[_0x5df065(0x199)]=_0x1c7e26,this[_0x5df065(0x5c8)]=_0xc63627,_defineProperty(this,_0x5df065(0x4bf),void 0x0),_defineProperty(this,_0x5df065(0x576),void 0x0),_defineProperty(this,_0x5df065(0x201),void 0x0),_defineProperty(this,'_connectorObjects',[]),_defineProperty(this,_0x5df065(0x114),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x5df065(0x129),![]),_defineProperty(this,_0x5df065(0x547),![]),_defineProperty(this,_0x5df065(0x13d),![]),_defineProperty(this,_0x5df065(0x3bb),void 0x0),_defineProperty(this,_0x5df065(0x47f),void 0x0),_defineProperty(this,_0x5df065(0x5fd),null),this[_0x5df065(0x52b)]();}[_0xae170d(0x52b)](){const _0x267ee9=_0xae170d;this[_0x267ee9(0x3e5)](),this[_0x267ee9(0x614)]();}['_getDrawingRect'](){const _0x13410d=_0xae170d;if(!this['_unitId']||!this[_0x13410d(0x201)]||!this['_activeShapeId'])return;const _0x5285e5={'unitId':this['_unitId'],'subUnitId':this[_0x13410d(0x201)],'drawingId':this[_0x13410d(0x4bf)]},{transform:_0x2c4457}=this['_drawingManagerService'][_0x13410d(0x5b9)](_0x5285e5);if(!_0x2c4457)return;return{'left':_0x2c4457['left']||0x0,'top':_0x2c4457['top']||0x0,'width':_0x2c4457['width']||0x0,'height':_0x2c4457[_0x13410d(0x558)]||0x0,'flipX':_0x2c4457[_0x13410d(0x4fa)]||![],'flipY':_0x2c4457[_0x13410d(0x417)]||![],'angle':_0x2c4457[_0x13410d(0xfe)]};}['_addShapeConnectorHandlerObjects'](){const _0x42d93c=_0xae170d;if(this['_unitId']===void 0x0||this[_0x42d93c(0x201)]===void 0x0||this['_activeShapeId']===void 0x0)return;const _0x4e7f44=this[_0x42d93c(0x397)][_0x42d93c(0x145)](this[_0x42d93c(0x576)]);if(!_0x4e7f44)return;if(!_0x4e7f44[_0x42d93c(0x5e1)](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x42d93c(0x4e5)]())return;const {scene:_0x177963}=_0x4e7f44,_0x41669e=this[_0x42d93c(0x337)]();if(!_0x41669e)return;const _0x371518=this[_0x42d93c(0x172)][_0x42d93c(0x258)](this[_0x42d93c(0x576)],this[_0x42d93c(0x201)],this[_0x42d93c(0x4bf)]);if(!_0x371518)return;if(!(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x371518[_0x42d93c(0x2ef)]()))return;const _0x170358=_0x371518[_0x42d93c(0x5fe)]();if(_0x170358[_0x42d93c(0x233)]<0x2)return;const _0x2ef460=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](_0x41669e),_0x5ed6ae=_0x170358[0x0],_0x2ec672=_0x170358[_0x170358[_0x42d93c(0x233)]-0x1],_0x49d7be=_0x2ef460[_0x42d93c(0x333)](_0x5ed6ae),_0x608066=_0x2ef460[_0x42d93c(0x333)](_0x2ec672);this['_addShapeConnectorHandlerObject'](_0x177963,{..._0x49d7be},!![]),this[_0x42d93c(0x1d3)](_0x177963,{..._0x608066},![]);}[_0xae170d(0x1d3)](_0x58d7c3,_0x5c46b,_0x32c998){const _0x596f34=_0xae170d;if(this[_0x596f34(0x4bf)]===void 0x0||this['_unitId']===void 0x0||this[_0x596f34(0x201)]===void 0x0)return;const _0x249b2b=_0x596f34(0x5a3)+this[_0x596f34(0x576)]+'-'+this[_0x596f34(0x201)]+'-'+this[_0x596f34(0x4bf)]+'-'+(_0x32c998?'start':_0x596f34(0x5fb)),_0x3d58f5=_0x58d7c3['getObjectIncludeInGroup'](_0x249b2b);if(_0x3d58f5){_0x3d58f5['transformByState']({'left':_0x5c46b['x']-_univerjs_pro_engine_shape[_0x596f34(0x2ee)][_0x596f34(0x5bf)],'top':_0x5c46b['y']-_univerjs_pro_engine_shape[_0x596f34(0x2ee)][_0x596f34(0x5bf)]});return;}const _0x447e1e=new SheetShapeConnectorHandlerObject(_0x249b2b,{'left':_0x5c46b['x']-_univerjs_pro_engine_shape[_0x596f34(0x2ee)][_0x596f34(0x5bf)],'top':_0x5c46b['y']-_univerjs_pro_engine_shape[_0x596f34(0x2ee)][_0x596f34(0x5bf)],'shapeId':this[_0x596f34(0x4bf)],'unitId':this[_0x596f34(0x576)],'subUnitId':this[_0x596f34(0x201)],'isStartConnectorPoint':_0x32c998,'width':_univerjs_pro_engine_shape[_0x596f34(0x2ee)][_0x596f34(0x5bf)]*0x2,'height':_univerjs_pro_engine_shape[_0x596f34(0x2ee)]['cxnPointRadius']*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x596f34(0x656)]['push'](_0x447e1e),this[_0x596f34(0x64e)](_0x447e1e,_0x58d7c3,_0x32c998),_0x58d7c3[_0x596f34(0x5ea)](_0x447e1e,_univerjs_engine_render[_0x596f34(0x605)]+0x1);}[_0xae170d(0x5c3)](_0xf5998e,_0x5d41b5){const _0x44b50f=_0xae170d;var _0x1ec73f;const _0x1428fa={'x':0x0,'y':0x0};if(!_0xf5998e||!_0x5d41b5)return _0x1428fa;const _0x47434d=this['_renderManagerService'][_0x44b50f(0x145)](_0xf5998e);if(!_0x47434d)return _0x1428fa;if(!_0x47434d['with'](_univerjs_sheets_ui['SheetSkeletonManagerService'])[_0x44b50f(0x606)](_0x5d41b5))return _0x1428fa;const _0x5891cd=_0x47434d[_0x44b50f(0x5e1)](_univerjs_sheets_ui[_0x44b50f(0x4a8)]),_0x3207c7=_0x5891cd===null||_0x5891cd===void 0x0?void 0x0:_0x5891cd[_0x44b50f(0x25d)]();if(!_0x3207c7)return _0x1428fa;const _0x181c57=(_0x1ec73f=this[_0x44b50f(0x434)][_0x44b50f(0x2b7)](_0xf5998e))===null||_0x1ec73f===void 0x0?void 0x0:_0x1ec73f[_0x44b50f(0x21f)](_0x5d41b5);if(!_0x181c57)return _0x1428fa;const _0x55377c=(0x0,_univerjs_sheets_ui[_0x44b50f(0x64c)])(_0x3207c7[_0x44b50f(0x1e6)],_0x3207c7[_0x44b50f(0x5cc)],_0x47434d[_0x44b50f(0x2fc)],_0x181c57);if(!_0x55377c)return _0x1428fa;return{'x':_0x55377c[_0x44b50f(0x3b6)],'y':_0x55377c[_0x44b50f(0x3c1)]};}[_0xae170d(0x619)](_0x3bf067,_0x17ba63){const _0x131b05=_0xae170d;var _0x166a5d,_0x440921;const _0x3e2d83=(_0x166a5d=this[_0x131b05(0x434)][_0x131b05(0x2b7)](_0x3bf067))===null||_0x166a5d===void 0x0?void 0x0:_0x166a5d[_0x131b05(0x21f)](_0x17ba63);return(_0x440921=_0x3e2d83===null||_0x3e2d83===void 0x0?void 0x0:_0x3e2d83['getZoomRatio']())!==null&&_0x440921!==void 0x0?_0x440921:0x1;}[_0xae170d(0x54b)](_0x4f8a6b,_0x2b3056,_0x22c6db,_0x3c07d4,_0x5b3c58){const _0xcbf539=_0xae170d;this[_0xcbf539(0x3bb)][_0xcbf539(0x28c)](),this[_0xcbf539(0x47f)]['unsubscribe'](),this['_sheetShapeAdjustController'][_0xcbf539(0x627)]();const _0x67030=this[_0xcbf539(0x5fd)];this[_0xcbf539(0x5c8)]['endConnectionDetection']();const _0x28b9fd=this[_0xcbf539(0x5c3)](this[_0xcbf539(0x576)],this['_subUnitId']),_0x3af126=this['_getZoomRatio'](this[_0xcbf539(0x576)],this[_0xcbf539(0x201)]),_0xa7143f={'x':_0x22c6db[_0xcbf539(0x364)]/_0x3af126+_0x28b9fd['x'],'y':_0x22c6db['offsetY']/_0x3af126+_0x28b9fd['y']},_0x6e62d1=_0x67030?_0x67030[_0xcbf539(0x618)]:_0xa7143f,_0x2d8d23=_0x3c07d4?this['_activeShapeModel'][_0xcbf539(0x146)]():this['_activeShapeModel'][_0xcbf539(0x382)](),_0x3a9934=this[_0xcbf539(0x5e5)][_0xcbf539(0x2ef)]();if(!_0x2d8d23)this[_0xcbf539(0x165)](_0x2b3056,_0x6e62d1,_0x3c07d4,_0x67030,_0x5b3c58,_0x3a9934);else this[_0xcbf539(0x1b5)](_0x2d8d23,_0x6e62d1,_0x3c07d4,_0x67030,_0x5b3c58);this[_0xcbf539(0x129)]=![],this[_0xcbf539(0x13d)]=![],this[_0xcbf539(0x5fd)]=null,_0x4f8a6b[_0xcbf539(0x3e9)]();}['_handleFreeEndpointPointerUp'](_0x7b7423,_0x11b9ba,_0xd8e764,_0x1d1e83,_0x594276,_0x482e26){const _0xad77e6=_0xae170d,_0x5e90eb=_0x482e26===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xad77e6(0x136)]||_0x482e26===_univerjs_pro_engine_shape['ShapeTypeEnum'][_0xad77e6(0x3dd)],_0x40003c=_0xd8e764?_0x11b9ba:_0x7b7423,_0x27da61=_0xd8e764?_0x7b7423:_0x11b9ba,_0x49376f=this[_0xad77e6(0x5e5)][_0xad77e6(0x5fe)](),_0x37b464=(0x0,_univerjs_pro_engine_shape[_0xad77e6(0x285)])(this[_0xad77e6(0x5e5)][_0xad77e6(0x2ef)]()),_0x1237ae=_univerjs_pro_engine_shape['ConnectorCoordinateTransform']['getBentTypeFromPoints'](_0x49376f,_0x37b464),_0x7cfba0=_0x5e90eb?_univerjs_pro_engine_shape[_0xad77e6(0x550)]['computeStraightConnectorLayout'](_0x40003c,_0x27da61):_univerjs_pro_engine_shape[_0xad77e6(0x550)][_0xad77e6(0x5ec)](_0x7b7423,_0x11b9ba,_0xd8e764,_0x1237ae);if(_0x1d1e83)this[_0xad77e6(0x5d3)](_0x7cfba0,_0x1d1e83,_0xd8e764,_0x594276);else this[_0xad77e6(0x55c)](_0x7cfba0,_0x594276);}[_0xae170d(0x1b5)](_0x3928ba,_0x38d708,_0x31bbcd,_0x3a16e7,_0x4e620a){const _0x413dea=_0xae170d,_0x577f16=this[_0x413dea(0x331)](_0x3928ba);if(!_0x577f16)return;const _0x5bdc6a=_0x3a16e7?_0x3a16e7[_0x413dea(0xfe)]:this[_0x413dea(0x2fa)](_0x577f16[_0x413dea(0x1f2)],_0x38d708);let _0x1d6c19;if(_0x3a16e7){const _0x581635=this[_0x413dea(0x5b0)][_0x413dea(0x5b9)]({'unitId':_0x3a16e7['unitId'],'subUnitId':_0x3a16e7['subUnitId'],'drawingId':_0x3a16e7[_0x413dea(0x2f8)]});if(_0x581635===null||_0x581635===void 0x0?void 0x0:_0x581635[_0x413dea(0x521)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x30c3e6}=_0x581635[_0x413dea(0x521)];_0x1d6c19=(0x0,_univerjs_pro_engine_shape[_0x413dea(0x166)])({'left':left,'top':top,'width':width,'height':height},_0x30c3e6||0x0);}else _0x1d6c19={'left':_0x38d708['x'],'top':_0x38d708['y'],'width':0x0,'height':0x0};}else _0x1d6c19={'left':_0x38d708['x'],'top':_0x38d708['y'],'width':0x0,'height':0x0};const _0x75eb50={'point':_0x38d708,'angle':_0x5bdc6a,'bounds':_0x1d6c19},_0x1896ee=_0x31bbcd?_0x75eb50:_0x577f16,_0x224e59=_0x31bbcd?_0x577f16:_0x75eb50,_0x73980b=this[_0x413dea(0x5e5)][_0x413dea(0x2ef)](),_0x3e5123=(0x0,_univerjs_pro_engine_shape[_0x413dea(0x1d0)])(_0x1896ee,_0x224e59,_0x73980b);this[_0x413dea(0x5e5)]['removeLinePoints']();const _0x503cd1=(0x0,_univerjs_pro_engine_shape[_0x413dea(0x20e)])(_0x3e5123,_0x73980b);if(_0x3a16e7)this[_0x413dea(0x15d)](_0x503cd1,_0x3a16e7,_0x3928ba,_0x31bbcd,_0x4e620a);else this[_0x413dea(0x2c1)](_0x503cd1,_0x3928ba,_0x31bbcd,_0x4e620a);}['_executeConnectionCommand'](_0xe10d4e,_0x50a76d,_0xff3ae0,_0x2d7c9a){const _0x198a37=_0xae170d,_0x21d6f4=this[_0x198a37(0x5e5)]['getShapeData']()[_0x198a37(0x3ee)],_0x5af16d={..._0x21d6f4},_0x388b94={'shapeId':_0x50a76d['shapeId'],'cxnIndex':_0x50a76d[_0x198a37(0x541)]};if(_0xff3ae0)_0x5af16d['from']=_0x388b94;else _0x5af16d['to']=_0x388b94;const _0x4a1ec0=this[_0x198a37(0x5e5)][_0x198a37(0x2ef)](),_0x315762=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0xe10d4e[_0x198a37(0x4cf)],_0x4a1ec0),_0x4c64bb={'unitId':this[_0x198a37(0x576)],'subUnitId':this[_0x198a37(0x201)],'connectorShapeId':this[_0x198a37(0x4bf)],'width':_0xe10d4e[_0x198a37(0x440)]['width'],'height':_0xe10d4e['worldRect'][_0x198a37(0x558)],'left':_0xe10d4e[_0x198a37(0x440)][_0x198a37(0x367)],'top':_0xe10d4e[_0x198a37(0x440)][_0x198a37(0x381)],'flipX':_0xe10d4e[_0x198a37(0x440)][_0x198a37(0x4fa)]||![],'flipY':_0xe10d4e[_0x198a37(0x440)][_0x198a37(0x417)]||![],'newAdjustValues':_0x315762[_0x198a37(0x144)],'oldAdjustValues':_0x2d7c9a,'oldRelation':_0x21d6f4,'newRelation':_0x5af16d,'newLineType':_0x315762[_0x198a37(0x325)],'oldLineType':_0x4a1ec0};this[_0x198a37(0x1f1)]['executeCommand'](_univerjs_pro_sheets_shape[_0x198a37(0x41f)]['id'],_0x4c64bb);}[_0xae170d(0x55c)](_0x3baf5a,_0x1ab2d6){const _0x6e8753=_0xae170d,_0x3af75f=this[_0x6e8753(0x5e5)]['getShapeType'](),_0xe02c15=(0x0,_univerjs_pro_engine_shape[_0x6e8753(0x20e)])(_0x3baf5a[_0x6e8753(0x4cf)],_0x3af75f),_0xfdb638={'unitId':this[_0x6e8753(0x576)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x6e8753(0x4bf)],'width':_0x3baf5a[_0x6e8753(0x440)][_0x6e8753(0x62b)],'height':_0x3baf5a['worldRect'][_0x6e8753(0x558)],'left':_0x3baf5a[_0x6e8753(0x440)]['left'],'top':_0x3baf5a[_0x6e8753(0x440)][_0x6e8753(0x381)],'flipX':_0x3baf5a[_0x6e8753(0x440)][_0x6e8753(0x4fa)]||![],'flipY':_0x3baf5a[_0x6e8753(0x440)][_0x6e8753(0x417)]||![],'angle':_0x3baf5a[_0x6e8753(0x440)][_0x6e8753(0xfe)]||0x0,'newAdjustValues':_0xe02c15[_0x6e8753(0x144)],'oldAdjustValues':_0x1ab2d6,'newLineType':_0xe02c15['lineType'],'oldLineType':_0x3af75f};this[_0x6e8753(0x1f1)][_0x6e8753(0x383)](_univerjs_pro_sheets_shape[_0x6e8753(0x3ac)]['id'],_0xfdb638);}[_0xae170d(0x15d)](_0x190a82,_0xfe34c6,_0x44ca6c,_0x1e51f9,_0x7f805e){const _0xacd152=_0xae170d,_0x526021=this[_0xacd152(0x5e5)][_0xacd152(0x411)]()['relation'],_0x3390f9={..._0x526021},_0x22b044={'shapeId':_0xfe34c6[_0xacd152(0x2f8)],'cxnIndex':_0xfe34c6[_0xacd152(0x541)]};_0x1e51f9?(_0x3390f9['from']=_0x22b044,_0x3390f9['to']=_0x44ca6c):(_0x3390f9[_0xacd152(0x446)]=_0x44ca6c,_0x3390f9['to']=_0x22b044);const _0x378adc={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0xacd152(0x4bf)],'width':_0x190a82[_0xacd152(0x440)][_0xacd152(0x62b)],'height':_0x190a82['worldRect']['height'],'left':_0x190a82[_0xacd152(0x440)][_0xacd152(0x367)],'top':_0x190a82[_0xacd152(0x440)][_0xacd152(0x381)],'flipX':_0x190a82[_0xacd152(0x440)]['flipX']||![],'flipY':_0x190a82[_0xacd152(0x440)][_0xacd152(0x417)]||![],'oldAdjustValues':_0x7f805e,'newAdjustValues':_0x190a82[_0xacd152(0x144)],'newLineType':_0x190a82[_0xacd152(0x325)],'rotation':_0x190a82[_0xacd152(0x4d7)],'oldRelation':_0x526021,'newRelation':_0x3390f9};this[_0xacd152(0x1f1)]['executeCommand'](_univerjs_pro_sheets_shape[_0xacd152(0x41f)]['id'],_0x378adc);}['_executeConnectedRouteResizeCommand'](_0x2f98a0,_0x28b022,_0x7e2a30,_0x1b22b0){const _0x28c48c=_0xae170d,_0x35ed8a=this['_activeShapeModel'][_0x28c48c(0x411)]()[_0x28c48c(0x3ee)],_0x1da703={};_0x7e2a30?(_0x1da703['to']=_0x28b022,_0x1da703[_0x28c48c(0x446)]=void 0x0):(_0x1da703[_0x28c48c(0x446)]=_0x28b022,_0x1da703['to']=void 0x0);const _0xe1a0a2={'unitId':this['_unitId'],'subUnitId':this[_0x28c48c(0x201)],'connectorShapeId':this[_0x28c48c(0x4bf)],'width':_0x2f98a0[_0x28c48c(0x440)][_0x28c48c(0x62b)],'height':_0x2f98a0[_0x28c48c(0x440)][_0x28c48c(0x558)],'left':_0x2f98a0[_0x28c48c(0x440)]['left'],'top':_0x2f98a0[_0x28c48c(0x440)][_0x28c48c(0x381)],'flipX':_0x2f98a0[_0x28c48c(0x440)][_0x28c48c(0x4fa)]||![],'flipY':_0x2f98a0[_0x28c48c(0x440)][_0x28c48c(0x417)]||![],'oldAdjustValues':_0x1b22b0,'newAdjustValues':_0x2f98a0[_0x28c48c(0x144)],'newLineType':_0x2f98a0['lineType'],'rotation':_0x2f98a0['rotation'],'oldRelation':_0x35ed8a,'newRelation':_0x1da703};this['_commandService']['executeCommand'](_univerjs_pro_sheets_shape[_0x28c48c(0x41f)]['id'],_0xe1a0a2);}[_0xae170d(0x64e)](_0xe46fa3,_0x461dc3,_0x42bb35){const _0x21146c=_0xae170d;this[_0x21146c(0x163)]((0x0,_univerjs_core['toDisposable'])(_0xe46fa3['onPointerDown$'][_0x21146c(0x33c)]((_0x31a8ed,_0x3cbcd0)=>{const _0x4da71f=_0x21146c,_0x50b21d=_0xe46fa3[_0x4da71f(0x3af)]();this['_activeShapeModel']=this['_sheetsShapeService']['getShapeModel'](_0x50b21d['unitId'],_0x50b21d['subUnitId'],_0x50b21d[_0x4da71f(0x4eb)]);if(!this[_0x4da71f(0x5e5)])return;const _0x14e3af={};this[_0x4da71f(0x5e5)][_0x4da71f(0x4a9)]()['forEach'](_0x4ef006=>{const _0x148252=this['_activeShapeModel']['getAdjustValueByName'](_0x4ef006);if(_0x148252!==void 0x0)_0x14e3af[_0x4ef006]=_0x148252;});const _0x1cff91=this['_getDrawingRect']();if(!_0x1cff91)return;this[_0x4da71f(0x114)]={..._0x1cff91};const _0x528e12=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x4da71f(0x114)]),_0x3e086a=(0x0,_univerjs_drawing[_0x4da71f(0x401)])({'unitId':this[_0x4da71f(0x576)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4da71f(0x4bf)]}),_0x563b44=_0x461dc3[_0x4da71f(0x299)](_0x3e086a);this[_0x4da71f(0x129)]=!![],_0x461dc3[_0x4da71f(0x568)](),this[_0x4da71f(0x5c8)][_0x4da71f(0x123)](_0x461dc3,this[_0x4da71f(0x576)],this[_0x4da71f(0x201)],this[_0x4da71f(0x4bf)]),this['_currentConnectionTarget']=null;const _0x643d2f=this['_activeShapeModel'][_0x4da71f(0x5fe)](),_0x94d213=_0x643d2f[0x0],_0xf201cd=_0x643d2f[_0x643d2f[_0x4da71f(0x233)]-0x1],_0x2b0f7c=_0x42bb35?_0x528e12[_0x4da71f(0x333)](_0xf201cd):_0x528e12['localToWorld'](_0x94d213);this[_0x4da71f(0x3bb)]=_0x461dc3['onPointerMove$'][_0x4da71f(0x33c)]((_0x426b09,_0x4d25bf)=>{const _0x4f69b8=_0x4da71f;if(!this[_0x4f69b8(0x129)]||!this['_activeShapeModel'])return;!this[_0x4f69b8(0x13d)]&&(this[_0x4f69b8(0x199)]['clearAdjustControls'](),this[_0x4f69b8(0x5e5)]['clearAdjustValue'](),this[_0x4f69b8(0x13d)]=!![]);const _0x2d7f90=this[_0x4f69b8(0x5c3)](this['_unitId'],this['_subUnitId']),_0x1d58dc=this[_0x4f69b8(0x619)](this[_0x4f69b8(0x576)],this[_0x4f69b8(0x201)]),_0xc2cad1={'x':_0x426b09[_0x4f69b8(0x364)]/_0x1d58dc+_0x2d7f90['x'],'y':_0x426b09['offsetY']/_0x1d58dc+_0x2d7f90['y']},_0x49133a=this[_0x4f69b8(0x5c8)][_0x4f69b8(0x5ff)](_0xc2cad1);if(_0x49133a){const {shapeId:_0x57f03c,unitId:_0x2f8b43,subUnitId:_0x296279}=_0x49133a;if(_0x57f03c&&_0x2f8b43&&_0x296279){const _0x1907cb=(0x0,_univerjs_drawing[_0x4f69b8(0x401)])({'unitId':_0x2f8b43,'subUnitId':_0x296279,'drawingId':_0x57f03c});_0x49133a[_0x4f69b8(0xfe)]=(_0x461dc3[_0x4f69b8(0x299)](_0x1907cb)[_0x4f69b8(0xfe)]||0x0)+_0x49133a[_0x4f69b8(0xfe)];}}this[_0x4f69b8(0x5fd)]=_0x49133a;const _0x317481=_0x42bb35?this[_0x4f69b8(0x5e5)][_0x4f69b8(0x146)]():this[_0x4f69b8(0x5e5)][_0x4f69b8(0x382)]();if(_0x317481){this['_handleConnectedEndpointMove'](_0x317481,_0xc2cad1,_0x42bb35,_0x563b44,_0xe46fa3);return;}this[_0x4f69b8(0x32b)](_0xc2cad1,_0x2b0f7c,_0x42bb35,_0x563b44,_0xe46fa3);}),this[_0x4da71f(0x47f)]=_0x461dc3['onPointerUp$'][_0x4da71f(0x33c)]((_0x513d82,_0x2c7f56)=>{const _0x28affd=_0x4da71f;this[_0x28affd(0x54b)](_0x461dc3,_0x2b0f7c,_0x513d82,_0x42bb35,_0x14e3af);}),_0x3cbcd0[_0x4da71f(0x396)]();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x41632e,_0x3b29e4,_0x3445a5){const _0x38cd39=_0xae170d,_0x3791dc=this[_0x38cd39(0x172)][_0x38cd39(0x601)](_0x41632e,_0x3b29e4,_0x3445a5);if(!_0x3791dc||_0x3791dc['length']===0x0)return;const _0x1368a4=this[_0x38cd39(0x397)][_0x38cd39(0x145)](_0x41632e);if(!_0x1368a4)return;const {scene:_0x416cfb}=_0x1368a4;for(const _0x24b63 of _0x3791dc){const _0x10dd5d=_0x24b63[_0x38cd39(0x58f)],_0xf35245=this[_0x38cd39(0x172)][_0x38cd39(0x258)](_0x41632e,_0x3b29e4,_0x10dd5d);if(!_0xf35245)continue;const _0xc6a7ed=_0xf35245['getStartConnectInfo'](),_0x10fc4a=_0xf35245[_0x38cd39(0x146)](),_0x3d7f1e=(_0xc6a7ed===null||_0xc6a7ed===void 0x0?void 0x0:_0xc6a7ed['shapeId'])===_0x3445a5,_0x201177=(0x0,_univerjs_drawing[_0x38cd39(0x401)])({'unitId':_0x41632e,'subUnitId':_0x3b29e4,'drawingId':_0x10dd5d}),_0x5cd585=_0x416cfb[_0x38cd39(0x299)](_0x201177);if(!_0x5cd585)continue;const _0x583010=this[_0x38cd39(0x5b0)]['getDrawingByParam']({'unitId':_0x41632e,'subUnitId':_0x3b29e4,'drawingId':_0x10dd5d});if(!(_0x583010===null||_0x583010===void 0x0?void 0x0:_0x583010[_0x38cd39(0x521)]))continue;if(_0xc6a7ed&&_0x10fc4a)this['_rerouteConnectorLine'](_0x41632e,_0x3b29e4,_0x10dd5d,_0xf35245,_0xc6a7ed,_0x10fc4a,_0x5cd585);else this[_0x38cd39(0x3b1)](_0x41632e,_0x3b29e4,_0x10dd5d,_0xf35245,_0x3d7f1e?_0xc6a7ed:_0x10fc4a,_0x3d7f1e,_0x583010,_0x5cd585);}}[_0xae170d(0x497)](_0x3153c2,_0x5a1102,_0xade775,_0x428ea7,_0xc0b51e,_0x42f2a4,_0x419d07){const _0x337b41=_0xae170d,_0xa47a00=this[_0x337b41(0x576)],_0x4b8de3=this['_subUnitId'];this[_0x337b41(0x576)]=_0x3153c2,this['_subUnitId']=_0x5a1102;const _0x33140e=this[_0x337b41(0x331)](_0xc0b51e),_0x4c0081=this[_0x337b41(0x331)](_0x42f2a4);this['_unitId']=_0xa47a00,this[_0x337b41(0x201)]=_0x4b8de3;if(!_0x33140e||!_0x4c0081)return;const _0x1696ed=_0x428ea7[_0x337b41(0x2ef)](),_0x5d5b66=(0x0,_univerjs_pro_engine_shape[_0x337b41(0x1d0)])(_0x33140e,_0x4c0081,_0x1696ed);if(_0x5d5b66)_0x428ea7[_0x337b41(0x16d)](_0x5d5b66);const _0x265f21=(0x0,_univerjs_pro_engine_shape[_0x337b41(0x20e)])(_0x5d5b66,_0x1696ed);if(_0x265f21[_0x337b41(0x325)]!==_0x1696ed)_0x428ea7[_0x337b41(0x645)](_0x265f21[_0x337b41(0x325)]);_0x428ea7[_0x337b41(0x638)]();for(const [_0x2bb33f,_0x5f274c]of Object['entries'](_0x265f21[_0x337b41(0x144)]))_0x428ea7['setAdjustValueByName'](_0x2bb33f,_0x5f274c);_0x428ea7['updateContext']({'width':_0x265f21['worldRect'][_0x337b41(0x62b)],'height':_0x265f21[_0x337b41(0x440)][_0x337b41(0x558)]}),_0x419d07[_0x337b41(0x1f6)]({'flipX':_0x265f21[_0x337b41(0x440)]['flipX'],'flipY':_0x265f21[_0x337b41(0x440)][_0x337b41(0x417)],'left':_0x265f21[_0x337b41(0x440)][_0x337b41(0x367)],'top':_0x265f21['worldRect'][_0x337b41(0x381)],'width':_0x265f21[_0x337b41(0x440)][_0x337b41(0x62b)],'height':_0x265f21[_0x337b41(0x440)]['height'],'angle':_0x265f21[_0x337b41(0x4d7)]}),_0x428ea7['removeLinePoints']();}[_0xae170d(0x3b1)](_0x4a1b55,_0x2c4e5a,_0x5820ab,_0x1c4e3e,_0x195457,_0x4d321c,_0xa71be1,_0x8df262){const _0xed027=_0xae170d,_0xd87118=this['_unitId'],_0x162337=this[_0xed027(0x201)];this['_unitId']=_0x4a1b55,this[_0xed027(0x201)]=_0x2c4e5a;const _0x39d844=this['_getConnectPointInfo'](_0x195457);this[_0xed027(0x576)]=_0xd87118,this['_subUnitId']=_0x162337;if(!_0x39d844)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0xa71be1[_0xed027(0x521)],_0xe7b149=_0x1c4e3e[_0xed027(0x5fe)]();if(_0xe7b149[_0xed027(0x233)]<0x2)return;const _0x6ac6d9=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform']({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x2aaf85=_0x4d321c?_0xe7b149[_0xe7b149['length']-0x1]:_0xe7b149[0x0],_0x48a1e0=_0x6ac6d9[_0xed027(0x333)](_0x2aaf85),_0x5c56a7=_univerjs_pro_engine_shape[_0xed027(0x550)][_0xed027(0x5ec)](_0x48a1e0,_0x39d844[_0xed027(0x1f2)],!_0x4d321c);_0x8df262[_0xed027(0x1f6)]({'flipX':_0x5c56a7['worldRect'][_0xed027(0x4fa)],'flipY':_0x5c56a7[_0xed027(0x440)][_0xed027(0x417)],'left':_0x5c56a7['worldRect'][_0xed027(0x367)],'top':_0x5c56a7[_0xed027(0x440)][_0xed027(0x381)],'width':_0x5c56a7[_0xed027(0x440)][_0xed027(0x62b)],'height':_0x5c56a7[_0xed027(0x440)][_0xed027(0x558)],'angle':_0x5c56a7['worldRect'][_0xed027(0xfe)]}),_0x8df262[_0xed027(0x1db)](!![]);}[_0xae170d(0x52d)](){const _0x768697=_0xae170d;if(this[_0x768697(0x656)]['length']===0x0)return;this['_connectorObjects'][_0x768697(0x253)](_0x4937c5=>{const _0x5a907f=_0x768697;_0x4937c5[_0x5a907f(0x178)]();}),this['_connectorObjects']=[];}[_0xae170d(0x614)](){const _0x3a90a0=_0xae170d,_0x3f1a4c=this[_0x3a90a0(0x434)][_0x3a90a0(0x274)](_univerjs_core[_0x3a90a0(0x293)][_0x3a90a0(0x22b)]);this[_0x3a90a0(0x163)](_0x3f1a4c['pipe']((0x0,rxjs[_0x3a90a0(0x62e)])(_0x48f549=>{const _0x427803=_0x3a90a0;if(!_0x48f549)return rxjs[_0x427803(0x456)];return _0x48f549[_0x427803(0x5b8)][_0x427803(0x4e7)]((0x0,rxjs[_0x427803(0x62e)])(_0x13bce6=>{const _0x49ba17=_0x427803;if(!_0x13bce6)return rxjs[_0x49ba17(0x456)];const _0x1e19eb=_0x48f549[_0x49ba17(0x34c)](),_0x55ed07=this[_0x49ba17(0x397)][_0x49ba17(0x145)](_0x1e19eb),_0x4a81d1=_0x55ed07===null||_0x55ed07===void 0x0?void 0x0:_0x55ed07[_0x49ba17(0x2fc)];if(!_0x4a81d1)return rxjs[_0x49ba17(0x456)];return(0x0,rxjs['of'])(_0x4a81d1);}));}))[_0x3a90a0(0x39a)](_0x2e11a4=>{const _0x184510=_0x3a90a0,_0x44eb61=_0x2e11a4[_0x184510(0x1cf)]();this[_0x184510(0x163)](_0x2e11a4[_0x184510(0x647)]['subscribeEvent'](_0x364d89=>{const _0xfd792b=_0x184510;if(this[_0xfd792b(0x547)]&&this[_0xfd792b(0x4bf)])this[_0xfd792b(0x52d)]();})),this[_0x184510(0x163)](_0x44eb61[_0x184510(0x4e3)][_0x184510(0x39a)](_0x58e006=>{const _0x180dd3=_0x184510,{objects:_0x13ebff}=_0x58e006;this[_0x180dd3(0x52d)]();if(_0x13ebff!==null&&_0x13ebff[_0x180dd3(0x1b1)]===0x1){if(_0x13ebff[_0x180dd3(0x109)]()[_0x180dd3(0x243)]()[_0x180dd3(0x55e)]instanceof DrawingShape)this[_0x180dd3(0x547)]=!![];}})),this['disposeWithMe'](_0x44eb61[_0x184510(0x24a)][_0x184510(0x39a)](_0x43d90a=>{const _0x10b9b3=_0x184510;if(this[_0x10b9b3(0x547)])this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x2e11a4[_0x184510(0x310)]['subscribeEvent'](()=>{const _0x273d44=_0x184510;this[_0x273d44(0x547)]&&(this[_0x273d44(0x547)]=![],this[_0x273d44(0x1e3)]());})),this[_0x184510(0x163)](_0x44eb61[_0x184510(0x30f)][_0x184510(0x39a)](()=>{const _0x44a06a=_0x184510;this['_unitId']&&this[_0x44a06a(0x201)]&&this[_0x44a06a(0x4bf)]&&(this[_0x44a06a(0x5b0)][_0x44a06a(0x5b9)]({'unitId':this[_0x44a06a(0x576)],'subUnitId':this[_0x44a06a(0x201)],'drawingId':this[_0x44a06a(0x4bf)]})&&(this[_0x44a06a(0x52d)](),this[_0x44a06a(0x1e3)]()));}));}));}[_0xae170d(0x3e5)](){const _0x4cbc79=_0xae170d;this[_0x4cbc79(0x163)](this[_0x4cbc79(0x5b0)][_0x4cbc79(0x3e0)][_0x4cbc79(0x39a)](_0xfff4ce=>{const _0xb66672=_0x4cbc79;if(_0xfff4ce['length']===0x1){const _0x34b724=_0xfff4ce[0x0];if(_0x34b724[_0xb66672(0x19b)]===_univerjs_core['DrawingTypeEnum'][_0xb66672(0x5f5)]){const _0x3d3d4a=this[_0xb66672(0x172)]['getShapeModel'](_0x34b724[_0xb66672(0x40a)],_0x34b724[_0xb66672(0x423)],_0x34b724[_0xb66672(0x4eb)]);if(_0x3d3d4a&&(0x0,_univerjs_pro_engine_shape[_0xb66672(0x468)])(_0x3d3d4a[_0xb66672(0x2ef)]())){this[_0xb66672(0x4bf)]=_0x34b724[_0xb66672(0x4eb)],this[_0xb66672(0x576)]=_0x34b724[_0xb66672(0x40a)],this[_0xb66672(0x201)]=_0x34b724[_0xb66672(0x423)],this[_0xb66672(0x52d)](),this[_0xb66672(0x1e3)]();return;}}}this[_0xb66672(0x4bf)]=void 0x0,this[_0xb66672(0x576)]=void 0x0,this[_0xb66672(0x201)]=void 0x0,this[_0xb66672(0x52d)]();})),this[_0x4cbc79(0x163)](this[_0x4cbc79(0x5b0)]['update$'][_0x4cbc79(0x39a)](_0x5c5a2e=>{const _0x3a0015=_0x4cbc79;if(_0x5c5a2e[_0x3a0015(0x233)]===0x1){var _0x4f8b11;const _0x314b51=_0x5c5a2e[0x0],_0x4f805b=(_0x4f8b11=this[_0x3a0015(0x5b0)][_0x3a0015(0x5b9)](_0x314b51))===null||_0x4f8b11===void 0x0?void 0x0:_0x4f8b11['drawingType'];if(_0x4f805b===_univerjs_core['DrawingTypeEnum'][_0x3a0015(0x5f5)]&&_0x314b51[_0x3a0015(0x4eb)]===this['_activeShapeId'])this[_0x3a0015(0x52d)](),this['_addShapeConnectorHandlerObjects']();else{if(!this['_activeShapeId']&&_0x4f805b===_univerjs_core[_0x3a0015(0x4c8)]['DRAWING_SHAPE'])this[_0x3a0015(0x444)](_0x314b51['unitId'],_0x314b51[_0x3a0015(0x423)],_0x314b51[_0x3a0015(0x4eb)]);}}})),this[_0x4cbc79(0x163)](this[_0x4cbc79(0x5b0)]['remove$']['subscribe'](_0x55c3ec=>{const _0x8c1944=_0x4cbc79;for(const _0x1a3846 of _0x55c3ec){const {drawingId:_0x240234}=_0x1a3846;if(this[_0x8c1944(0x4bf)]===_0x240234){this[_0x8c1944(0x4a6)]();return;}}}));}[_0xae170d(0x161)](_0x4d8dec,_0x25c184,_0x304c8a,_0x57c961,_0x4ec10b){const _0x3884b8=_0xae170d;var _0x272a57,_0x22cfe4;if(!this[_0x3884b8(0x5e5)])return;const _0x541649=this[_0x3884b8(0x331)](_0x4d8dec);if(!_0x541649)return;const _0x1a1eea=this[_0x3884b8(0x5fd)]?this[_0x3884b8(0x5fd)][_0x3884b8(0x618)]:_0x25c184,_0x3e27ca=this[_0x3884b8(0x5fd)]?this[_0x3884b8(0x5fd)]['angle']:this[_0x3884b8(0x2fa)](_0x541649[_0x3884b8(0x1f2)],_0x1a1eea);let _0x451408;if(this[_0x3884b8(0x5fd)]){const _0x446b6c=this[_0x3884b8(0x5b0)][_0x3884b8(0x5b9)]({'unitId':this[_0x3884b8(0x5fd)]['unitId'],'subUnitId':this[_0x3884b8(0x5fd)][_0x3884b8(0x423)],'drawingId':this[_0x3884b8(0x5fd)][_0x3884b8(0x2f8)]});if(_0x446b6c===null||_0x446b6c===void 0x0?void 0x0:_0x446b6c[_0x3884b8(0x521)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x92d1fe}=_0x446b6c[_0x3884b8(0x521)];_0x451408=(0x0,_univerjs_pro_engine_shape[_0x3884b8(0x166)])({'left':left,'top':top,'width':width,'height':height},_0x92d1fe||0x0);}else _0x451408={'left':_0x1a1eea['x'],'top':_0x1a1eea['y'],'width':0x0,'height':0x0};}else _0x451408={'left':_0x1a1eea['x'],'top':_0x1a1eea['y'],'width':0x0,'height':0x0};const _0x151bd6={'point':_0x1a1eea,'angle':_0x3e27ca,'bounds':_0x451408},_0x32c38a=_0x304c8a?_0x151bd6:_0x541649,_0xb443bf=_0x304c8a?_0x541649:_0x151bd6,_0x4fc551=this[_0x3884b8(0x5e5)]['getShapeType'](),_0x4bd8cf=(0x0,_univerjs_pro_engine_shape[_0x3884b8(0x1d0)])(_0x32c38a,_0xb443bf,_0x4fc551);if(_0x4bd8cf)this[_0x3884b8(0x5e5)]['updateLinePoints'](_0x4bd8cf);const _0x84e005=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x4bd8cf,_0x4fc551);if(_0x84e005[_0x3884b8(0x325)]!==_0x4fc551)this[_0x3884b8(0x5e5)][_0x3884b8(0x645)](_0x84e005[_0x3884b8(0x325)]);for(const [_0x2997d9,_0x20ef4c]of Object[_0x3884b8(0x46e)](_0x84e005[_0x3884b8(0x144)]))this['_activeShapeModel'][_0x3884b8(0x30c)](_0x2997d9,_0x20ef4c);this[_0x3884b8(0x5e5)][_0x3884b8(0x5ce)]({'width':_0x84e005[_0x3884b8(0x440)][_0x3884b8(0x62b)],'height':_0x84e005['worldRect']['height']}),_0x57c961[_0x3884b8(0x1f6)]({'flipX':_0x84e005[_0x3884b8(0x440)][_0x3884b8(0x4fa)],'flipY':_0x84e005[_0x3884b8(0x440)][_0x3884b8(0x417)],'left':_0x84e005['worldRect'][_0x3884b8(0x367)],'top':_0x84e005['worldRect']['top'],'width':_0x84e005[_0x3884b8(0x440)][_0x3884b8(0x62b)],'height':_0x84e005[_0x3884b8(0x440)][_0x3884b8(0x558)],'angle':_0x84e005[_0x3884b8(0x4d7)]}),_0x57c961[_0x3884b8(0x1db)](!![]);const _0x2694c5=(_0x272a57=(_0x22cfe4=this[_0x3884b8(0x5fd)])===null||_0x22cfe4===void 0x0?void 0x0:_0x22cfe4[_0x3884b8(0x618)])!==null&&_0x272a57!==void 0x0?_0x272a57:_0x25c184;_0x4ec10b[_0x3884b8(0x1f6)]({'left':_0x2694c5['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3884b8(0x5bf)],'top':_0x2694c5['y']-_univerjs_pro_engine_shape[_0x3884b8(0x2ee)][_0x3884b8(0x5bf)]});}[_0xae170d(0x32b)](_0x12d504,_0x41e182,_0x46000e,_0x59110c,_0x4a6c6b){const _0x7b2591=_0xae170d;var _0x294492,_0x3b176e,_0x3c2390,_0x13cf03;const _0x125ca9=(_0x294492=(_0x3b176e=this[_0x7b2591(0x5fd)])===null||_0x3b176e===void 0x0?void 0x0:_0x3b176e[_0x7b2591(0x618)])!==null&&_0x294492!==void 0x0?_0x294492:_0x12d504,_0x11462b=_univerjs_pro_engine_shape[_0x7b2591(0x550)][_0x7b2591(0x5ec)](_0x41e182,_0x125ca9,_0x46000e);_0x59110c['transformByState']({'flipX':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0x4fa)],'flipY':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0x417)],'left':_0x11462b['worldRect'][_0x7b2591(0x367)],'top':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0x381)],'width':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0x62b)],'height':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0x558)],'angle':_0x11462b[_0x7b2591(0x440)][_0x7b2591(0xfe)]});const _0x213c7f=(_0x3c2390=(_0x13cf03=this['_currentConnectionTarget'])===null||_0x13cf03===void 0x0?void 0x0:_0x13cf03[_0x7b2591(0x618)])!==null&&_0x3c2390!==void 0x0?_0x3c2390:_0x12d504;_0x4a6c6b['transformByState']({'left':_0x213c7f['x']-_univerjs_pro_engine_shape[_0x7b2591(0x2ee)][_0x7b2591(0x5bf)],'top':_0x213c7f['y']-_univerjs_pro_engine_shape[_0x7b2591(0x2ee)]['cxnPointRadius']});}[_0xae170d(0x331)](_0x1f6bc2){const _0x120762=_0xae170d;if(!this[_0x120762(0x576)]||!this[_0x120762(0x201)])return null;const {shapeId:_0x17efb4,cxnIndex:_0x4ba2fb}=_0x1f6bc2,_0xe942ba=this[_0x120762(0x172)][_0x120762(0x258)](this[_0x120762(0x576)],this[_0x120762(0x201)],_0x17efb4);if(!_0xe942ba)return null;const _0x54a5ce=this[_0x120762(0x5b0)][_0x120762(0x5b9)]({'unitId':this[_0x120762(0x576)],'subUnitId':this[_0x120762(0x201)],'drawingId':_0x17efb4});if(!(_0x54a5ce===null||_0x54a5ce===void 0x0?void 0x0:_0x54a5ce['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x4b651f}=_0x54a5ce[_0x120762(0x521)];_0xe942ba[_0x120762(0x5ce)]({'width':width,'height':height});const _0x303f4a=_0xe942ba[_0x120762(0x56e)]()['find'](_0x260742=>_0x260742[_0x120762(0x55a)]===_0x4ba2fb);if(!_0x303f4a)return null;let _0x4cb205=flipX?width-_0x303f4a['x']:_0x303f4a['x'],_0x55f0ed=flipY?height-_0x303f4a['y']:_0x303f4a['y'];if(_0x4b651f!==0x0&&_0x4b651f!==void 0x0&&_0x4b651f!==null){const _0x30a1cd=_0x4b651f*Math['PI']/0xb4,_0x107415=Math[_0x120762(0x3a6)](_0x30a1cd),_0x5758f3=Math[_0x120762(0x5cb)](_0x30a1cd),_0x567a7a=width/0x2,_0x5cbae8=height/0x2,_0x1d5eec=_0x4cb205-_0x567a7a,_0x5bae12=_0x55f0ed-_0x5cbae8;_0x4cb205=_0x567a7a+_0x1d5eec*_0x107415-_0x5bae12*_0x5758f3,_0x55f0ed=_0x5cbae8+_0x1d5eec*_0x5758f3+_0x5bae12*_0x107415;}_0x4cb205+=left,_0x55f0ed+=top;let _0x28cff9=_0x303f4a[_0x120762(0x27d)]/0xea60;if(flipX)_0x28cff9=0xb4-_0x28cff9;if(flipY)_0x28cff9=-_0x28cff9;_0x28cff9+=_0x4b651f||0x0,_0x28cff9=(_0x28cff9%0x168+0x168)%0x168;const _0x467459=(0x0,_univerjs_pro_engine_shape[_0x120762(0x166)])({'left':left,'top':top,'width':width,'height':height},_0x4b651f||0x0);return{'point':{'x':_0x4cb205,'y':_0x55f0ed},'angle':_0x28cff9,'bounds':_0x467459};}[_0xae170d(0x2fa)](_0x475210,_0x1d24a8){const _0x106e0d=_0xae170d,_0x3ee847=_0x1d24a8['x']-_0x475210['x'],_0x4dffca=_0x1d24a8['y']-_0x475210['y'];if(Math['abs'](_0x3ee847)>=Math[_0x106e0d(0x1a8)](_0x4dffca))return _0x3ee847>=0x0?0xb4:0x0;else return _0x4dffca>=0x0?0x10e:0x5a;}[_0xae170d(0x4a6)](){const _0x205f5f=_0xae170d;this[_0x205f5f(0x4bf)]=void 0x0,this[_0x205f5f(0x576)]=void 0x0,this[_0x205f5f(0x201)]=void 0x0,this[_0x205f5f(0x52d)]();}[_0xae170d(0x178)](){const _0x30fd64=_0xae170d;this[_0x30fd64(0x52d)](),super['dispose']();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0xae170d(0x12a)]),__decorateParam(0x2,_univerjs_engine_render[_0xae170d(0x213)]),__decorateParam(0x3,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0xae170d(0x4b4)])),__decorateParam(0x6,(0x0,_univerjs_core[_0xae170d(0x3fd)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0xae170d(0x3fd)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0xae170d(0xf8)]{constructor(_0x3d17f4,_0x141001,_0x7d4bb9){const _0x2b7b55=_0xae170d;super(),this[_0x2b7b55(0x1f1)]=_0x3d17f4,this[_0x2b7b55(0x36d)]=_0x141001,this[_0x2b7b55(0x50f)]=_0x7d4bb9,this[_0x2b7b55(0x51a)]();}[_0xae170d(0x51a)](){const _0x14ea81=_0xae170d;this[_0x14ea81(0x163)](this[_0x14ea81(0x1f1)][_0x14ea81(0x649)](_0x47d356=>{const _0x2ba777=_0x14ea81;let _0x42df4b,_0x2efa4b;if(_0x47d356['id']===_univerjs_pro_sheets_shape['InsertShapeCommand']['id']||_0x47d356['id']===_univerjs_pro_sheets_shape[_0x2ba777(0x3c5)]['id']||_0x47d356['id']===_univerjs_pro_sheets_shape[_0x2ba777(0x41f)]['id']){const _0x359263=_0x47d356[_0x2ba777(0x2ec)];_0x42df4b=_0x359263['unitId'],_0x2efa4b=_0x359263[_0x2ba777(0x423)];}if(!_0x42df4b||!_0x2efa4b)return;if(!this['_sheetPermissionCheckController'][_0x2ba777(0x48b)]({'workbookTypes':[_univerjs_sheets['WorkbookEditablePermission']],'worksheetTypes':[_univerjs_sheets[_0x2ba777(0x559)]]},_0x42df4b,_0x2efa4b))this[_0x2ba777(0x50f)][_0x2ba777(0x307)](this[_0x2ba777(0x36d)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xae170d(0x12a)])),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x2,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_sheets['SheetPermissionCheckController']))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x9fae3a){const _0x105bb0=_0xae170d,{containerWidth:_0x4fa643,containerHeight:_0x3a491c,scaleX:_0x5d10c4,scaleY:_0x8bcfb9}=_0x9fae3a,_0x314af7=_0x5d10c4||0x1,_0x4ced98=_0x8bcfb9||0x1,_0x181369=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(ShapeTextEditingService),_0x43bfe8=(0x0,_univerjs_ui['useDependency'])(_univerjs_docs_ui[_0x105bb0(0x5de)]),_0x37253a=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(_univerjs_engine_render[_0x105bb0(0x213)]),_0x4aad4c=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(_univerjs_core[_0x105bb0(0x567)]),_0x3fe542=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(_univerjs_drawing[_0x105bb0(0x231)]),_0x3436d=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(_univerjs_pro_sheets_shape[_0x105bb0(0x4b4)]),_0x5080ab=(0x0,_univerjs_ui[_0x105bb0(0x54f)])(_univerjs_core[_0x105bb0(0x12a)]),_0x2939ea=(0x0,_univerjs_ui[_0x105bb0(0x5ba)])(_0x181369['editingParams$']),_0x5d4ff5=(0x0,_univerjs_ui[_0x105bb0(0x5ba)])(_0x181369[_0x105bb0(0x1e5)]),_0xb5c7fa=(0x0,react[_0x105bb0(0x4f5)])(null),_0x3b7147=(0x0,react[_0x105bb0(0x4f5)])(null),_0x5ca15e=(0x0,react[_0x105bb0(0x4f5)])(null),_0x4633e2=(0x0,react[_0x105bb0(0x4f5)])(null),_0x49bfdb=(0x0,react[_0x105bb0(0x4f5)])(null),_0x4e5e49=(0x0,react[_0x105bb0(0x4f5)])(null),[_0x243319,_0xbcf284]=(0x0,react[_0x105bb0(0x17c)])({'editorHeight':_0x3a491c,'marginTop':0x0,'useAbsolutePosition':![]}),_0x2208e4=(0x0,react[_0x105bb0(0x2c3)])(_0xe25b14=>{queueMicrotask(()=>{_0xbcf284(_0xe25b14);});},[]),_0xe763df=(0x0,react[_0x105bb0(0x2c3)])(()=>{const _0x4c7881=_0x105bb0;return _0x4aad4c[_0x4c7881(0x2b7)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core[_0x4c7881(0x293)]['UNIVER_DOC']);},[_0x4aad4c]),_0x25effe=(0x0,react[_0x105bb0(0x2c3)])(()=>{const _0x36db7d=_0x105bb0;var _0x57571d;const _0x2cdac4=_0x314af7,_0x4ceed3=_0x4ced98;if(!_0x2939ea)return{'scaleAdjust':0x1,'renderScaleX':_0x2cdac4,'renderScaleY':_0x4ceed3};const _0x22b360=_0x37253a[_0x36db7d(0x145)](_0x2939ea[_0x36db7d(0x40a)]),_0x16aee4=_0x22b360===null||_0x22b360===void 0x0?void 0x0:_0x22b360[_0x36db7d(0x2fc)]['getAncestorScale'](),_0xfef851=_0x22b360===null||_0x22b360===void 0x0?void 0x0:_0x22b360[_0x36db7d(0x3f9)][_0x36db7d(0x439)](),_0x4d5577=_0xfef851?Number['parseFloat'](_0xfef851[_0x36db7d(0x1e0)][_0x36db7d(0x62b)]||''):0x0,_0x582b27=(_0x57571d=_0xfef851===null||_0xfef851===void 0x0?void 0x0:_0xfef851['getBoundingClientRect']()[_0x36db7d(0x62b)])!==null&&_0x57571d!==void 0x0?_0x57571d:0x0,_0x5afd4a=_0x4d5577>0x0&&_0x582b27>0x0?_0x582b27/_0x4d5577:0x1;return{'scaleAdjust':Number[_0x36db7d(0x1f5)](_0x5afd4a)&&_0x5afd4a>0x0?_0x5afd4a:0x1,'renderScaleX':(_0x16aee4===null||_0x16aee4===void 0x0?void 0x0:_0x16aee4[_0x36db7d(0x2a3)])||_0x2cdac4,'renderScaleY':(_0x16aee4===null||_0x16aee4===void 0x0?void 0x0:_0x16aee4[_0x36db7d(0x1e2)])||_0x4ceed3};},[_0x314af7,_0x4ced98,_0x2939ea,_0x37253a]),_0x42e543=(0x0,react['useCallback'])(()=>{const _0x3166df=_0x105bb0;if(!_0x2939ea)return{'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98};const {unitId:_0x135f00,subUnitId:_0x6d68b,shapeId:_0x5afc5c}=_0x2939ea,_0x5f2c32=_0x3436d[_0x3166df(0x258)](_0x135f00,_0x6d68b,_0x5afc5c);if(!_0x5f2c32)return{'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98};const _0xbf3ffe={'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98};return _0x5f2c32[_0x3166df(0x39e)](_0xbf3ffe);},[_0x2939ea,_0x4fa643,_0x3a491c,_0x314af7,_0x4ced98,_0x3436d]),_0x499264=(0x0,react[_0x105bb0(0x2c3)])(()=>{const _0x1eda32=_0x105bb0;if(!_0x2939ea)return null;const {unitId:_0x56082d,subUnitId:_0x20619f,shapeId:_0x1e9d60}=_0x2939ea,_0x2f5e1b=_0x3436d[_0x1eda32(0x258)](_0x56082d,_0x20619f,_0x1e9d60);if(!_0x2f5e1b)return null;const _0x28874c=_0x2f5e1b[_0x1eda32(0x385)]();if(!_0x28874c)return null;const _0x51d719={'unitId':_0x56082d,'subUnitId':_0x20619f,'drawingId':_0x1e9d60},_0x47d3d4=_0x3fe542['getDrawingByParam'](_0x51d719);let _0x3fff00={'angle':0x0,'flipX':![],'flipY':![]};if(_0x47d3d4&&_0x47d3d4[_0x1eda32(0x521)])_0x3fff00=_0x47d3d4[_0x1eda32(0x521)];const _0x39a509={'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98},_0x58d81d=_0x2f5e1b[_0x1eda32(0x39e)](_0x39a509);let _0x4d64ea,_0xdc0791=_univerjs_core[_0x1eda32(0x59c)][_0x1eda32(0x596)],_0x1ebf87=_univerjs_core[_0x1eda32(0x110)][_0x1eda32(0x43f)];if(_0x1eda32(0x38e)in _0x28874c&&_0x28874c['dataModel']){var _0x4d0b5c,_0x288762;const _0x15e668=_0x28874c[_0x1eda32(0x38e)];if(_0x15e668===null||_0x15e668===void 0x0?void 0x0:_0x15e668['doc'])_0x4d64ea=_0x15e668[_0x1eda32(0x3ad)];_0xdc0791=(_0x4d0b5c=_0x15e668===null||_0x15e668===void 0x0?void 0x0:_0x15e668['va'])!==null&&_0x4d0b5c!==void 0x0?_0x4d0b5c:_univerjs_core['VerticalAlign'][_0x1eda32(0x596)],_0x1ebf87=(_0x288762=_0x15e668===null||_0x15e668===void 0x0?void 0x0:_0x15e668['ha'])!==null&&_0x288762!==void 0x0?_0x288762:_univerjs_core[_0x1eda32(0x110)][_0x1eda32(0x43f)];}return{'doc':_0x4d64ea,'verticalAlign':_0xdc0791,'horizontalAlign':_0x1ebf87,'textRect':_0x58d81d,'transform':_0x3fff00,'isHorizontal':_0x28874c['isHorizontal']};},[_0x2939ea,_0x3436d,_0x3fe542,_0x4fa643,_0x3a491c,_0x314af7,_0x4ced98]),_0x545b1f=(0x0,react[_0x105bb0(0x5c1)])(()=>{const _0x21d1ef=_0x105bb0,_0x1d7463=_0x499264();if(_0x1d7463===null||_0x1d7463===void 0x0?void 0x0:_0x1d7463[_0x21d1ef(0x3ad)])return prepareShapeTextDocumentData(_0x1d7463['doc'],{'isHorizontal':!![],'textRect':_0x1d7463[_0x21d1ef(0x1fa)],'verticalAlign':_0x1d7463[_0x21d1ef(0x565)],'horizontalAlign':_0x1d7463[_0x21d1ef(0x1a9)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x4fa643/_0x314af7,'height':Infinity}}};},[_0x499264,_0x4fa643,_0x314af7]),_0x567c8b=(0x0,_univerjs_docs_ui[_0x105bb0(0x277)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x545b1f,'container':_0x3b7147,'autoFocus':![],'isSingle':![]}),_0x1890f5=(0x0,_univerjs_docs_ui[_0x105bb0(0x120)])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x105bb0(0x21e)])(_0x1890f5,{'keyCodes':[{'keyCode':_univerjs_ui[_0x105bb0(0x14c)][_0x105bb0(0x3fa)]}],'handler':()=>{const _0xd2bf3f=_0x105bb0;_0x5080ab['executeCommand'](_univerjs_docs_ui[_0xd2bf3f(0x2ad)]['id']);}},_0x567c8b),(0x0,_univerjs_docs_ui[_0x105bb0(0x211)])(_0x1890f5,![],_0x567c8b);const _0x29b5f4=(0x0,react[_0x105bb0(0x2c3)])((_0x26f427=!![])=>{const _0x415119=_0x105bb0;var _0x44b0d5,_0x57195a,_0x2795f4;if(!_0x567c8b)return;const _0x360cae=_0x567c8b[_0x415119(0x180)]()[_0x415119(0xee)](_0x35f9a6=>_0x35f9a6[_0x415119(0x41a)]),_0x4146df=((_0x44b0d5=(_0x57195a=_0x567c8b['getDocumentData']()[_0x415119(0x3d1)])===null||_0x57195a===void 0x0?void 0x0:_0x57195a[_0x415119(0x159)][_0x415119(0x233)])!==null&&_0x44b0d5!==void 0x0?_0x44b0d5:0x2)-0x2,_0x51415e=(_0x2795f4=_0x360cae===null||_0x360cae===void 0x0?void 0x0:_0x360cae[_0x415119(0x3cb)])!==null&&_0x2795f4!==void 0x0?_0x2795f4:_0x26f427?_0x4146df:null;if(_0x51415e===null)return;_0x567c8b[_0x415119(0x290)]([{'startOffset':_0x51415e,'endOffset':_0x51415e}],![]);},[_0x567c8b]),_0x4216d7=(0x0,react[_0x105bb0(0x2c3)])(()=>{const _0x4e01d9=_0x105bb0;_0x49bfdb[_0x4e01d9(0x2d2)]!==null&&(cancelAnimationFrame(_0x49bfdb[_0x4e01d9(0x2d2)]),_0x49bfdb[_0x4e01d9(0x2d2)]=null),_0x4e5e49[_0x4e01d9(0x2d2)]!==null&&(window[_0x4e01d9(0x36a)](_0x4e5e49[_0x4e01d9(0x2d2)]),_0x4e5e49[_0x4e01d9(0x2d2)]=null);},[]),_0x564b94=(0x0,react[_0x105bb0(0x2c3)])(()=>{const _0x28d505=_0x105bb0;var _0x1f5f39,_0x584caf,_0x789ef0;if(!_0x567c8b)return;const _0x4ed64b=_0x37253a[_0x28d505(0x145)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x58ef17=_0x4ed64b===null||_0x4ed64b===void 0x0?void 0x0:_0x4ed64b[_0x28d505(0x5e1)](_univerjs_docs[_0x28d505(0x60e)]);if(!_0x58ef17)return;const _0x517e42=_0x58ef17[_0x28d505(0x606)](),_0xbd93d=_0xe763df(),{renderScaleX:_0x14b730,renderScaleY:_0x3f2f15,scaleAdjust:_0x46a537}=_0x25effe(),_0xdf4e96=_0x499264(),_0x4371d4=(_0x1f5f39=_0xdf4e96===null||_0xdf4e96===void 0x0?void 0x0:_0xdf4e96[_0x28d505(0x565)])!==null&&_0x1f5f39!==void 0x0?_0x1f5f39:_univerjs_core[_0x28d505(0x59c)][_0x28d505(0x596)],_0x1f5fc1=(_0x584caf=_0xdf4e96===null||_0xdf4e96===void 0x0?void 0x0:_0xdf4e96['horizontalAlign'])!==null&&_0x584caf!==void 0x0?_0x584caf:_univerjs_core[_0x28d505(0x110)][_0x28d505(0x43f)],_0xcfcc70=(_0x789ef0=_0x42e543())!==null&&_0x789ef0!==void 0x0?_0x789ef0:{'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98};_0xbd93d&&(_0xbd93d[_0x28d505(0x58d)](Math[_0x28d505(0x453)](_0x14b730,_0x3f2f15)),_0xbd93d['updateDocumentStyle']({'pageSize':{'width':_0xcfcc70['width'],'height':Infinity}}),_0xbd93d[_0x28d505(0x59d)]({'verticalAlign':_0x4371d4,'horizontalAlign':_0x1f5fc1,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x28d505(0x513)][_0x28d505(0x4fd)]}));_0x517e42[_0x28d505(0x495)]();const {actualHeight:_0x3cd51d}=_0x517e42['getActualSize'](),_0x19d13c=_0xcfcc70[_0x28d505(0x558)];let _0xa74d09=_0x19d13c,_0x2bfe46=0x0;if(_0x3cd51d<=_0x19d13c){if(_0x4371d4===_univerjs_core['VerticalAlign'][_0x28d505(0x388)])_0x2bfe46=(_0x19d13c-_0x3cd51d)/0x2;else{if(_0x4371d4===_univerjs_core[_0x28d505(0x59c)]['BOTTOM'])_0x2bfe46=_0x19d13c-_0x3cd51d;}_0xa74d09=_0x19d13c,_0x2208e4({'editorHeight':_0xcfcc70['height']*_0x4ced98,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0xede527=0x0;if(_0x4371d4===_univerjs_core['VerticalAlign'][_0x28d505(0x388)])_0xede527=(_0x19d13c-_0x3cd51d)/0x2;else{if(_0x4371d4===_univerjs_core[_0x28d505(0x59c)][_0x28d505(0x502)])_0xede527=_0x19d13c-_0x3cd51d;}_0x2bfe46=0x0,_0x2208e4({'editorHeight':_0x3cd51d*_0x4ced98,'marginTop':_0xede527*_0x4ced98,'useAbsolutePosition':!![]}),_0xa74d09=_0x3cd51d;}_0xbd93d&&(_0xbd93d['updateDocumentStyle']({'pageSize':{'width':_0xcfcc70[_0x28d505(0x62b)],'height':_0xa74d09}}),_0xbd93d[_0x28d505(0x254)]({'t':_0x2bfe46}),_0x517e42[_0x28d505(0x495)]());if(_0x4ed64b){const _0x294527=_0xcfcc70['width']*_0x314af7,_0x445991=_0xa74d09*_0x4ced98;_0x4ed64b[_0x28d505(0x2fc)][_0x28d505(0x1f6)]({'width':_0x294527*_0x46a537/_0x14b730,'height':_0x445991*_0x46a537/_0x3f2f15,'scaleX':_0x14b730*_0x46a537,'scaleY':_0x3f2f15*_0x46a537});if(_0x4ed64b['mainComponent'])_0x4ed64b[_0x28d505(0x5b6)]['resize'](_0x294527*_0x46a537/_0x14b730,_0x445991*_0x46a537/_0x3f2f15);}},[_0x567c8b,_0x37253a,_0xe763df,_0x25effe,_0x499264,_0x42e543,_0x4fa643,_0x3a491c,_0x314af7,_0x4ced98,_0x2208e4]),_0x1df45d=(0x0,react[_0x105bb0(0x2c3)])((_0x592221=![])=>{const _0x2e46fe=_0x105bb0;_0x4216d7(),_0x49bfdb[_0x2e46fe(0x2d2)]=requestAnimationFrame(()=>{const _0x2629f1=_0x2e46fe;_0x564b94();if(_0x592221)_0x29b5f4(![]);_0x49bfdb[_0x2629f1(0x2d2)]=null,_0x4e5e49['current']=window[_0x2629f1(0x2dd)](()=>{const _0x31d5e1=_0x2629f1;_0x564b94();if(_0x592221)_0x29b5f4(![]);_0x4e5e49[_0x31d5e1(0x2d2)]=null;},0x14);});},[_0x564b94,_0x4216d7,_0x29b5f4]);(0x0,react[_0x105bb0(0x194)])(()=>{const _0x13f01f=_0x105bb0;if(!_0x567c8b||!_0x2939ea)return;const {shapeId:_0x31dce3,unitId:_0x6c8b1d,subUnitId:_0x15fbb2}=_0x2939ea;if(_0x5d4ff5){var _0x4b7140,_0x5ae0c5,_0x186423,_0x5530d9;const _0x3408b5=stripShapeTextDocumentLayout(_0x567c8b['getDocumentData']()),_0x3f9790=_0x499264(),_0x50392b={'va':(_0x4b7140=_0x3f9790===null||_0x3f9790===void 0x0?void 0x0:_0x3f9790[_0x13f01f(0x565)])!==null&&_0x4b7140!==void 0x0?_0x4b7140:_univerjs_core[_0x13f01f(0x59c)][_0x13f01f(0x596)],'ha':(_0x5ae0c5=_0x3f9790===null||_0x3f9790===void 0x0?void 0x0:_0x3f9790[_0x13f01f(0x1a9)])!==null&&_0x5ae0c5!==void 0x0?_0x5ae0c5:_univerjs_core[_0x13f01f(0x110)][_0x13f01f(0x43f)],'doc':_0x3408b5};_0x5080ab[_0x13f01f(0x383)](UpdateShapeDataCommand['id'],{'unitId':_0x6c8b1d,'subUnitId':_0x15fbb2,'shapeId':_0x31dce3,'shapeData':{'shapeText':{'isHorizontal':(_0x186423=_0x3f9790===null||_0x3f9790===void 0x0?void 0x0:_0x3f9790[_0x13f01f(0x63e)])!==null&&_0x186423!==void 0x0?_0x186423:!![],'dataModel':_0x50392b}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5530d9=_0x3f9790===null||_0x3f9790===void 0x0?void 0x0:_0x3f9790[_0x13f01f(0x63e)])!==null&&_0x5530d9!==void 0x0?_0x5530d9:!![],'dataModel':_0x5ca15e[_0x13f01f(0x2d2)]}}}});return;}const _0x2c720a=_0x499264();if(_0x2c720a===null||_0x2c720a===void 0x0?void 0x0:_0x2c720a[_0x13f01f(0x3ad)]){_0x5ca15e['current']={'va':_0x2c720a[_0x13f01f(0x565)],'ha':_0x2c720a['horizontalAlign'],'doc':_univerjs_core[_0x13f01f(0x11a)]['deepClone'](_0x2c720a[_0x13f01f(0x3ad)])};const _0x763c84=prepareShapeTextDocumentData(_0x2c720a[_0x13f01f(0x3ad)],{'isHorizontal':!![],'textRect':_0x2c720a[_0x13f01f(0x1fa)],'verticalAlign':_0x2c720a[_0x13f01f(0x565)],'horizontalAlign':_0x2c720a['horizontalAlign']});return _0x567c8b[_0x13f01f(0x2c2)](_0x763c84,null),()=>{const _0x36ec2b=_0x13f01f;var _0x427981,_0x13db78,_0x22624d,_0x5245a0;const _0xba2b95=stripShapeTextDocumentLayout(_0x567c8b[_0x36ec2b(0x1ea)]()),_0x30ef72=_0x499264(),_0x58f4bb={'va':(_0x427981=_0x30ef72===null||_0x30ef72===void 0x0?void 0x0:_0x30ef72[_0x36ec2b(0x565)])!==null&&_0x427981!==void 0x0?_0x427981:_univerjs_core[_0x36ec2b(0x59c)][_0x36ec2b(0x596)],'ha':(_0x13db78=_0x30ef72===null||_0x30ef72===void 0x0?void 0x0:_0x30ef72[_0x36ec2b(0x1a9)])!==null&&_0x13db78!==void 0x0?_0x13db78:_univerjs_core['HorizontalAlign'][_0x36ec2b(0x43f)],'doc':_0xba2b95};_0x5080ab[_0x36ec2b(0x383)](UpdateShapeDataCommand['id'],{'unitId':_0x6c8b1d,'subUnitId':_0x15fbb2,'shapeId':_0x31dce3,'shapeData':{'shapeText':{'isHorizontal':(_0x22624d=_0x30ef72===null||_0x30ef72===void 0x0?void 0x0:_0x30ef72[_0x36ec2b(0x63e)])!==null&&_0x22624d!==void 0x0?_0x22624d:!![],'dataModel':_0x58f4bb}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5245a0=_0x30ef72===null||_0x30ef72===void 0x0?void 0x0:_0x30ef72[_0x36ec2b(0x63e)])!==null&&_0x5245a0!==void 0x0?_0x5245a0:!![],'dataModel':_0x5ca15e[_0x36ec2b(0x2d2)]}}}});};}else _0x567c8b[_0x13f01f(0x2c2)](_0x545b1f,null);},[_0x567c8b,_0x2939ea,_0x5d4ff5]),(0x0,react[_0x105bb0(0x194)])(()=>{const _0x121879=_0x105bb0;if(!_0x567c8b||!_0x2939ea)return;return _0x43bfe8[_0x121879(0x21a)](!![]),_0x564b94(),_0x4633e2['current']=requestAnimationFrame(()=>{const _0x4a91d4=_0x121879;_0x43bfe8[_0x4a91d4(0x47c)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x29b5f4(),_0x1df45d(),_0x4633e2[_0x4a91d4(0x2d2)]=null;}),()=>{const _0x28be21=_0x121879;_0x4633e2[_0x28be21(0x2d2)]!==null&&(cancelAnimationFrame(_0x4633e2[_0x28be21(0x2d2)]),_0x4633e2['current']=null),_0x4216d7(),_0x43bfe8[_0x28be21(0x21a)](!![]);};},[_0x567c8b,_0x2939ea,_0x43bfe8,_0x564b94,_0x29b5f4,_0x1df45d,_0x4216d7]),(0x0,react['useEffect'])(()=>{const _0xd94bd9=_0x105bb0;if(!_0x567c8b)return;const _0xf601e3=_0x5080ab[_0xd94bd9(0x3e8)](_0xa8b054=>{const _0x17b6d9=_0xd94bd9;if(_0xa8b054['id']===_univerjs_docs[_0x17b6d9(0x344)]['id']){if(_0xa8b054[_0x17b6d9(0x2ec)]['unitId']===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x2939ea){if(!_0x2939ea[_0x17b6d9(0x322)])_0x181369[_0x17b6d9(0x153)]({..._0x2939ea,'visible':!![]});else _0x564b94();}}}if(_0xa8b054['id']===SetShapeTextVerticalAlignCommand['id'])_0x1df45d(!![]);});return()=>{_0xf601e3['dispose']();};},[_0x567c8b,_0x564b94,_0x2939ea,_0x1df45d,_0x181369]),(0x0,react[_0x105bb0(0x194)])(()=>{return _0x564b94(),_0x1df45d(),()=>{_0x4216d7();};},[_0x564b94,_0x1df45d,_0x4216d7]);const _0x59801e=(0x0,react[_0x105bb0(0x5c1)])(()=>{const _0x34c60e=_0x105bb0;var _0x4526ed;const _0x3dbcaf=(_0x4526ed=_0x42e543())!==null&&_0x4526ed!==void 0x0?_0x4526ed:{'left':0x0,'top':0x0,'width':_0x4fa643/_0x314af7,'height':_0x3a491c/_0x4ced98},_0xada683=_0x3dbcaf[_0x34c60e(0x367)]*_0x314af7,_0x4ac1d1=_0x3dbcaf[_0x34c60e(0x381)]*_0x4ced98,_0x312374=_0x3dbcaf[_0x34c60e(0x62b)]*_0x314af7;if(_0x243319[_0x34c60e(0x33e)])return{'top':_0x4ac1d1+_0x243319[_0x34c60e(0x305)],'left':_0xada683,'width':_0x312374,'height':_0x243319[_0x34c60e(0x317)]};return{'top':_0x4ac1d1,'left':_0xada683,'width':_0x312374,'height':_0x243319[_0x34c60e(0x317)]};},[_0x243319,_0x42e543,_0x4fa643,_0x3a491c,_0x314af7,_0x4ced98]),_0x27c643=(0x0,react[_0x105bb0(0x5c1)])(()=>{const _0x430ce2=_0x105bb0,_0x1e9ef0=_0x499264(),_0x34bca1=_0x1e9ef0===null||_0x1e9ef0===void 0x0?void 0x0:_0x1e9ef0[_0x430ce2(0x521)];if(_0x34bca1)return _0x34bca1||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0x499264]);return(0x0,react_jsx_runtime['jsx'])(_0x105bb0(0x405),{'ref':_0xb5c7fa,'data-u-comp':'shape-text-editor','className':_0x105bb0(0x18a),'style':{'transform':_0x105bb0(0x10e)+_0x27c643['angle']+'deg)\x20scaleY('+(_0x27c643[_0x105bb0(0x417)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime['jsx'])(_0x105bb0(0x405),{'ref':_0x3b7147,'className':'univer-absolute','data-u-comp':_0x105bb0(0x4cd),'style':_0x59801e,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor[_0xae170d(0xf5)]='ShapeEditor';const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x3089e4,_0x5f5d9b,_0xfe66b4,_0x59f0c0){const _0x55934f=_0xae170d,{scaleX:_0x1d35e7,scaleY:_0x1c5b55}=_0xfe66b4['getAncestorScale'](),{startColumn:_0x43db59,startRow:_0x148a62,xSplit:_0x68e484,ySplit:_0x33c7cd}=_0x59f0c0[_0x55934f(0x132)][_0x55934f(0x1b0)](),_0x44f3da=_0xfe66b4['getViewport'](_univerjs_engine_render[_0x55934f(0x60b)][_0x55934f(0x59f)]),_0x1b4ded=_0xfe66b4['getViewport'](_univerjs_engine_render[_0x55934f(0x60b)][_0x55934f(0x5db)]),_0x559ec8=_0xfe66b4[_0x55934f(0x384)](_univerjs_engine_render[_0x55934f(0x60b)][_0x55934f(0x241)]),_0x2ca833=_0xfe66b4[_0x55934f(0x384)](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x55934f(0x5d4)]),{rowHeaderWidth:_0x3ff7ba,columnHeaderHeight:_0x34189b}=_0x59f0c0,_0x1c4d64=_0x59f0c0[_0x55934f(0x4ca)](_0x148a62)+_0x34189b,_0x824087=_0x59f0c0[_0x55934f(0x181)](_0x43db59)+_0x3ff7ba,_0x51b479=_0x59f0c0['rowStartY'](_0x148a62-_0x33c7cd)+_0x34189b,_0xe74f31=_0x59f0c0[_0x55934f(0x181)](_0x43db59-_0x68e484)+_0x3ff7ba,_0x1fdd46=[],_0x52f039=(_0x5e0ba7,_0x2cfcea,_0x5f3b01)=>{if(!_0x5e0ba7)return null;const {viewportScrollX:_0xfe4f26,viewportScrollY:_0x260f4a}=_0x5e0ba7;let _0x3135c2,_0x20a28f;if(_0x2cfcea)_0x3135c2=(_0x3089e4-(_0xe74f31-_0x3ff7ba))*_0x1d35e7;else _0x3135c2=(_0x3089e4-_0xfe4f26)*_0x1d35e7;if(_0x5f3b01)_0x20a28f=(_0x5f5d9b-(_0x51b479-_0x34189b))*_0x1c5b55;else _0x20a28f=(_0x5f5d9b-_0x260f4a)*_0x1c5b55;return{'domX':_0x3135c2,'domY':_0x20a28f};},_0x2502fe=_0x3089e4<_0x824087&&_0x68e484>0x0,_0x127273=_0x5f5d9b<_0x1c4d64&&_0x33c7cd>0x0,_0x24fbd5=_0x3089e4>=_0x824087||_0x68e484===0x0,_0x462104=_0x5f5d9b>=_0x1c4d64||_0x33c7cd===0x0;if(_0x2502fe&&_0x127273&&_0x1b4ded){const _0x59fd3e=_0x52f039(_0x1b4ded,!![],!![]);if(_0x59fd3e)_0x1fdd46[_0x55934f(0x23c)](_0x59fd3e);}if(_0x127273&&_0x24fbd5&&_0x559ec8){const _0x4866d4=_0x52f039(_0x559ec8,![],!![]);if(_0x4866d4)_0x1fdd46[_0x55934f(0x23c)](_0x4866d4);}if(_0x2502fe&&_0x462104&&_0x2ca833){const _0x18163a=_0x52f039(_0x2ca833,!![],![]);if(_0x18163a)_0x1fdd46[_0x55934f(0x23c)](_0x18163a);}if(_0x24fbd5&&_0x462104&&_0x44f3da){const _0x57bd2f=_0x52f039(_0x44f3da,![],![]);if(_0x57bd2f)_0x1fdd46[_0x55934f(0x23c)](_0x57bd2f);}if(_0x1fdd46['length']===0x0){var _0x3cf54e,_0x4c4673;return{'domX':(_0x3089e4-((_0x3cf54e=_0x44f3da===null||_0x44f3da===void 0x0?void 0x0:_0x44f3da[_0x55934f(0x3b6)])!==null&&_0x3cf54e!==void 0x0?_0x3cf54e:0x0))*_0x1d35e7,'domY':(_0x5f5d9b-((_0x4c4673=_0x44f3da===null||_0x44f3da===void 0x0?void 0x0:_0x44f3da[_0x55934f(0x3c1)])!==null&&_0x4c4673!==void 0x0?_0x4c4673:0x0))*_0x1c5b55};}let _0x1b0ff4=_0x1fdd46[0x0][_0x55934f(0x3bf)],_0x4c4c1b=_0x1fdd46[0x0]['domY'];for(const _0x4c2181 of _0x1fdd46){if(_0x4c2181[_0x55934f(0x3bf)]>_0x1b0ff4)_0x1b0ff4=_0x4c2181[_0x55934f(0x3bf)];if(_0x4c2181[_0x55934f(0x621)]>_0x4c4c1b)_0x4c4c1b=_0x4c2181[_0x55934f(0x621)];}return{'domX':_0x1b0ff4,'domY':_0x4c4c1b};}function calcShapePosition(_0x497444,_0x3e28dd,_0xe3d1a0,_0x4710de,_0x16f099,_0x4e1b64,_0x59dbf0){const _0x2c820b=_0xae170d,{scaleX:_0x1af595,scaleY:_0x4a4c35}=_0x4e1b64[_0x2c820b(0x349)](),{domX:_0x4a4a99,domY:_0x4499e2}=calcBestDOMPositionForFreezeZones(_0x497444,_0x3e28dd,_0x4e1b64,_0x59dbf0);return{'left':_0x4a4a99,'top':_0x4499e2,'width':_0xe3d1a0*_0x1af595,'height':_0x4710de*_0x4a4c35,'angle':_0x16f099,'scaleX':_0x1af595,'scaleY':_0x4a4c35};}function useShapePosition(_0x3e9ca9){const _0x2ab76c=_0xae170d,{editingParams:_0x2c2077,scene:_0x57cb2d,skeleton:_0x42d33a,getShapeTransform:_0x54dac9}=_0x3e9ca9,[_0x447db4,_0x1a725b]=(0x0,react[_0x2ab76c(0x17c)])(DEFAULT_HIDDEN_POSITION),_0x2aa9d1=(0x0,react[_0x2ab76c(0x4f5)])(_0x447db4);_0x2aa9d1[_0x2ab76c(0x2d2)]=_0x447db4;const _0x1f0c5b=(0x0,react[_0x2ab76c(0x2c3)])(()=>{const _0x4645a2=_0x2ab76c;if(!_0x2c2077||!_0x57cb2d||!_0x42d33a){if(_0x2aa9d1[_0x4645a2(0x2d2)]!==DEFAULT_HIDDEN_POSITION)_0x1a725b(DEFAULT_HIDDEN_POSITION);return;}const _0x5cb3db=_0x54dac9();if(!_0x5cb3db){if(_0x2aa9d1[_0x4645a2(0x2d2)]!==DEFAULT_HIDDEN_POSITION)_0x1a725b(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x378b9b,top:_0xf649ef,width:_0x38612f,height:_0x460d60,angle:_0x3e8115}=_0x5cb3db;if(!_0x2c2077[_0x4645a2(0x322)]){const {scaleX:_0x31151f,scaleY:_0x12bf65}=_0x57cb2d[_0x4645a2(0x349)]();_0x1a725b({'left':-0x270f,'top':-0x270f,'width':_0x38612f*_0x31151f,'height':_0x460d60*_0x12bf65,'angle':0x0,'scaleX':_0x31151f,'scaleY':_0x12bf65});return;}_0x1a725b(calcShapePosition(_0x378b9b,_0xf649ef,_0x38612f,_0x460d60,_0x3e8115,_0x57cb2d,_0x42d33a));},[_0x2c2077,_0x57cb2d,_0x42d33a,_0x54dac9]);return(0x0,react[_0x2ab76c(0x194)])(()=>{_0x1f0c5b();},[_0x2c2077,_0x1f0c5b]),{'position':_0x447db4,'updatePosition':_0x1f0c5b};}const ShapePositionWrapper=(0x0,react['memo'])(_0x52df50=>{const _0x548210=_0xae170d,{children:_0x5aa69f,onPositionUpdate:_0x4ac2f1}=_0x52df50,_0xb71ead=(0x0,react[_0x548210(0x4f5)])(null),_0x471e26=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x43a777=(0x0,_univerjs_ui[_0x548210(0x54f)])(_univerjs_engine_render['IRenderManagerService']),_0x377828=(0x0,_univerjs_ui[_0x548210(0x5ba)])(_0x471e26[_0x548210(0x63a)]),_0x52f1b4=(0x0,react[_0x548210(0x5c1)])(()=>{const _0xaf3a20=_0x548210;if(!_0x377828)return null;return _0x43a777[_0xaf3a20(0x145)](_0x377828['unitId']);},[_0x377828,_0x43a777]),_0x5360d7=(0x0,react['useMemo'])(()=>{const _0xad45ef=_0x548210;var _0x5c4d1b;return(_0x5c4d1b=_0x52f1b4===null||_0x52f1b4===void 0x0?void 0x0:_0x52f1b4[_0xad45ef(0x2fc)])!==null&&_0x5c4d1b!==void 0x0?_0x5c4d1b:null;},[_0x52f1b4]),{position:_0x1342f3,updatePosition:_0x4276fd}=useShapePosition({'editingParams':_0x377828,'scene':_0x5360d7,'skeleton':(0x0,react[_0x548210(0x5c1)])(()=>{const _0x23c7ff=_0x548210;var _0x337e28,_0xc38762;if(!_0x377828||!_0x52f1b4)return null;return(_0x337e28=(_0xc38762=_0x52f1b4['with'](_univerjs_sheets_ui[_0x23c7ff(0x4da)])[_0x23c7ff(0x2ea)](_0x377828[_0x23c7ff(0x423)]))===null||_0xc38762===void 0x0?void 0x0:_0xc38762['skeleton'])!==null&&_0x337e28!==void 0x0?_0x337e28:null;},[_0x377828,_0x52f1b4]),'getShapeTransform':(0x0,react['useCallback'])(()=>{const _0x4a98a3=_0x548210;if(!_0x377828||!_0x5360d7)return null;const _0x569804=_0x377828[_0x4a98a3(0x2af)],_0x297753=_0x5360d7['getObject'](_0x569804);if(_0x297753 instanceof DrawingShape)return{'left':_0x297753[_0x4a98a3(0x367)],'top':_0x297753['top'],'width':_0x297753['width'],'height':_0x297753[_0x4a98a3(0x558)],'angle':_0x297753['angle']};return null;},[_0x377828,_0x5360d7])}),_0x10f419=(0x0,react[_0x548210(0x2c3)])(()=>{const _0x9e1e98=_0x548210,_0x3e8145=_0xb71ead['current'];if(!_0x3e8145)return;_0x3e8145[_0x9e1e98(0x1e0)][_0x9e1e98(0x367)]=_0x1342f3[_0x9e1e98(0x367)]+'px',_0x3e8145[_0x9e1e98(0x1e0)]['top']=_0x1342f3['top']+'px',_0x3e8145[_0x9e1e98(0x1e0)][_0x9e1e98(0x62b)]=_0x1342f3[_0x9e1e98(0x62b)]+'px',_0x3e8145[_0x9e1e98(0x1e0)]['height']=_0x1342f3[_0x9e1e98(0x558)]+'px';},[_0x1342f3]);return(0x0,react[_0x548210(0x194)])(()=>{const _0x119f37=_0x548210;_0x10f419(),_0x4ac2f1===null||_0x4ac2f1===void 0x0||_0x4ac2f1({'width':_0x1342f3[_0x119f37(0x62b)],'height':_0x1342f3[_0x119f37(0x558)],'scaleX':_0x1342f3[_0x119f37(0x2a3)],'scaleY':_0x1342f3[_0x119f37(0x1e2)]});},[_0x1342f3,_0x10f419,_0x4ac2f1]),(0x0,react[_0x548210(0x194)])(()=>{const _0x5b32b6=_0x548210;if(!_0x5360d7)return;const _0x134057=_0x5360d7[_0x5b32b6(0x384)](_univerjs_engine_render[_0x5b32b6(0x60b)][_0x5b32b6(0x59f)]);if(!_0x134057)return;const _0xaec34a=_0x134057['onScrollAfter$'][_0x5b32b6(0x33c)](()=>{_0x4276fd();});return()=>{const _0x3ec894=_0x5b32b6;_0xaec34a[_0x3ec894(0x28c)]();};},[_0x5360d7,_0x4276fd]),(0x0,react[_0x548210(0x194)])(()=>{const _0xf5cdd0=_0x548210;if(!_0x377828||!_0x5360d7)return;const _0x180e6c=_0x377828[_0xf5cdd0(0x2af)],_0x193605=_0x5360d7[_0xf5cdd0(0x221)](_0x180e6c);if(_0x193605 instanceof DrawingShape){const _0x19341c=_0x193605[_0xf5cdd0(0x134)][_0xf5cdd0(0x33c)](()=>{_0x4276fd();});return()=>{const _0x408ccb=_0xf5cdd0;_0x19341c[_0x408ccb(0x28c)]();};}},[_0x377828,_0x5360d7,_0x4276fd]),(0x0,react_jsx_runtime[_0x548210(0x499)])(_0x548210(0x405),{'ref':_0xb71ead,'data-u-comp':_0x548210(0x2cb),'className':_0x548210(0x615),'style':(0x0,react[_0x548210(0x5c1)])(()=>({'left':_0x1342f3['left'],'top':_0x1342f3['top'],'width':_0x1342f3[_0x548210(0x62b)],'height':_0x1342f3[_0x548210(0x558)],'pointerEvents':(_0x377828===null||_0x377828===void 0x0?void 0x0:_0x377828[_0x548210(0x322)])?'auto':_0x548210(0x314)}),[_0x1342f3,_0x377828===null||_0x377828===void 0x0?void 0x0:_0x377828[_0x548210(0x322)]]),'children':_0x5aa69f});});ShapePositionWrapper['displayName']=_0xae170d(0x493);const ShapeTextEditorContainer=(0x0,react[_0xae170d(0x257)])(()=>{const _0x55fb16=_0xae170d,_0x55ae29=(0x0,_univerjs_ui[_0x55fb16(0x5ba)])((0x0,_univerjs_ui[_0x55fb16(0x54f)])(ShapeTextEditingService)[_0x55fb16(0x63a)]),[_0x59cbbc,_0x5715f1]=(0x0,react[_0x55fb16(0x17c)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x37a03e=(0x0,react[_0x55fb16(0x2c3)])(_0x1a8ec9=>{const _0x51f53e=_0x55fb16;_0x5715f1({'width':_0x1a8ec9[_0x51f53e(0x62b)],'height':_0x1a8ec9[_0x51f53e(0x558)],'scaleX':_0x1a8ec9[_0x51f53e(0x2a3)],'scaleY':_0x1a8ec9[_0x51f53e(0x1e2)]});},[]);if(!(_0x55ae29===null||_0x55ae29===void 0x0?void 0x0:_0x55ae29[_0x55fb16(0x322)]))return null;return(0x0,react_jsx_runtime[_0x55fb16(0x499)])(ShapePositionWrapper,{'onPositionUpdate':_0x37a03e,'children':(0x0,react_jsx_runtime[_0x55fb16(0x499)])(ShapeEditor,{'containerWidth':_0x59cbbc[_0x55fb16(0x62b)],'containerHeight':_0x59cbbc[_0x55fb16(0x558)],'scaleX':_0x59cbbc[_0x55fb16(0x2a3)],'scaleY':_0x59cbbc[_0x55fb16(0x1e2)]})});});ShapeTextEditorContainer[_0xae170d(0xf5)]=_0xae170d(0x37d);let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0xae170d(0x59a)]{constructor(_0x314824=defaultPluginConfig,_0x5a4b75,_0x95556,_0xe86a47,_0x20e183){const _0x2267c0=_0xae170d;super(),this['_config']=_0x314824,this[_0x2267c0(0x261)]=_0x5a4b75,this[_0x2267c0(0x1f1)]=_0x95556,this[_0x2267c0(0x422)]=_0xe86a47,this[_0x2267c0(0x397)]=_0x20e183;const {..._0x3289f3}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x2267c0(0x1a5)]);this[_0x2267c0(0x422)][_0x2267c0(0x198)](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x3289f3),this[_0x2267c0(0x494)]();}[_0xae170d(0x4ed)](){const _0x5b545f=_0xae170d;(0x0,_univerjs_core[_0x5b545f(0x18f)])(this[_0x5b545f(0x261)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}[_0xae170d(0x281)](){const _0x30cf59=_0xae170d;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x30cf59(0x253)](_0x2d7f7a=>this[_0x30cf59(0x261)][_0x30cf59(0x548)](_0x2d7f7a)),(0x0,_univerjs_core[_0x30cf59(0x18f)])(this['_injector'],[[SheetShapeClipboardController]]),this[_0x30cf59(0x397)]['registerRenderModule'](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x30cf59(0x397)][_0x30cf59(0x19d)](_univerjs_core[_0x30cf59(0x293)][_0x30cf59(0x22b)],[SheetShapeAdjustController]),this[_0x30cf59(0x397)][_0x30cf59(0x19d)](_univerjs_core[_0x30cf59(0x293)][_0x30cf59(0x22b)],[ImageClipAdjustController]),this[_0x30cf59(0x397)]['registerRenderModule'](_univerjs_core[_0x30cf59(0x293)]['UNIVER_SHEET'],[SheetShapeConnectorController]),this[_0x30cf59(0x397)][_0x30cf59(0x19d)](_univerjs_core[_0x30cf59(0x293)][_0x30cf59(0x22b)],[ShapeTextEditingRenderController]);}['onStarting'](){const _0x75bde7=_0xae170d,_0x3a1f11=this[_0x75bde7(0x261)];_0x3a1f11[_0x75bde7(0x59e)](_univerjs_ui[_0x75bde7(0x34d)])[_0x75bde7(0x61d)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]['forEach'](_0xf97b0d=>_0x3a1f11[_0x75bde7(0x548)](_0xf97b0d)),(0x0,_univerjs_core['touchDependencies'])(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0xae170d(0x494)](){const _0x5302d8=_0xae170d;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation]['forEach'](_0x5021d8=>this['disposeWithMe'](this[_0x5302d8(0x1f1)][_0x5302d8(0x4d8)](_0x5021d8)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0xae170d(0x42d),_univerjs_core['UniverInstanceType']['UNIVER_SHEET']),_defineProperty(UniverSheetsShapeUIPlugin,_0xae170d(0x203),_0xae170d(0x282)),_defineProperty(UniverSheetsShapeUIPlugin,_0xae170d(0x266),name),_defineProperty(UniverSheetsShapeUIPlugin,_0xae170d(0x302),version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0xae170d(0x2fb)])(_univerjs_sheets_drawing_ui[_0xae170d(0x4a2)],_univerjs_pro_sheets_shape['UniverSheetsShapePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xae170d(0x3fd)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core['ICommandService']),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,_univerjs_engine_render[_0xae170d(0x213)])],UniverSheetsShapeUIPlugin),exports[_0xae170d(0x3aa)]=SetShapeTextFontSizeCommand,exports[_0xae170d(0x482)]=SetShapeTextFontSizeDecreaseCommand,exports[_0xae170d(0x475)]=SetShapeTextFontSizeIncreaseCommand,exports[_0xae170d(0x654)]=SetShapeTextHorizontalAlignCommand,exports['SetShapeTextVerticalAlignCommand']=SetShapeTextVerticalAlignCommand,exports[_0xae170d(0x5c6)]=ShapeDocAlignCommand,Object['defineProperty'](exports,_0xae170d(0x1f7),{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0xae170d(0x2e1)](exports,_0xae170d(0x4c6),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0xae170d(0x255)]=UpdateShapeDataCommand;
|