@univerjs-pro/sheets-shape-ui 0.22.1 → 0.23.0-insiders.20260522-e8f2a3b

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.
Files changed (58) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/controllers/sheet-shape-connector.controller.d.ts +1 -1
  41. package/lib/types/index.d.ts +1 -1
  42. package/lib/umd/index.js +1 -1
  43. package/lib/umd/locale/ca-ES.js +1 -1
  44. package/lib/umd/locale/en-US.js +1 -1
  45. package/lib/umd/locale/es-ES.js +1 -1
  46. package/lib/umd/locale/fa-IR.js +1 -1
  47. package/lib/umd/locale/fr-FR.js +1 -1
  48. package/lib/umd/locale/ja-JP.js +1 -1
  49. package/lib/umd/locale/ko-KR.js +1 -1
  50. package/lib/umd/locale/ru-RU.js +1 -1
  51. package/lib/umd/locale/sk-SK.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +19 -19
  56. /package/lib/types/commands/command/{update-shape-data-command.d.ts → update-shape-data.command.d.ts} +0 -0
  57. /package/lib/types/controllers/{sheet-shape-adjust-controller.d.ts → sheet-shape-adjust.controller.d.ts} +0 -0
  58. /package/lib/types/views/shape-text-editor/{position-wrapper.d.ts → ShapePositionWrapper.d.ts} +0 -0
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3e9a34=_0x47fe;(function(_0x450fd6,_0x464c71){const _0x284e9e=_0x47fe,_0x3c8e28=_0x450fd6();while(!![]){try{const _0x3553e8=-parseInt(_0x284e9e(0x382))/0x1+-parseInt(_0x284e9e(0x337))/0x2*(parseInt(_0x284e9e(0x2d7))/0x3)+parseInt(_0x284e9e(0x2b9))/0x4*(-parseInt(_0x284e9e(0x527))/0x5)+-parseInt(_0x284e9e(0x3ec))/0x6*(parseInt(_0x284e9e(0x177))/0x7)+-parseInt(_0x284e9e(0x3bc))/0x8+-parseInt(_0x284e9e(0x253))/0x9*(-parseInt(_0x284e9e(0x523))/0xa)+parseInt(_0x284e9e(0x137))/0xb;if(_0x3553e8===_0x464c71)break;else _0x3c8e28['push'](_0x3c8e28['shift']());}catch(_0x535ed8){_0x3c8e28['push'](_0x3c8e28['shift']());}}}(_0x501b,0x29676),Object[_0x3e9a34(0x63c)](exports,Symbol[_0x3e9a34(0x2d2)],{'value':_0x3e9a34(0x3a5)}));var __create=Object[_0x3e9a34(0x1c2)],__defProp=Object[_0x3e9a34(0x63c)],__getOwnPropDesc=Object[_0x3e9a34(0x34b)],__getOwnPropNames=Object['getOwnPropertyNames'],__getProtoOf=Object[_0x3e9a34(0x350)],__hasOwnProp=Object['prototype'][_0x3e9a34(0x28b)],__copyProps=(_0xd8a17e,_0x23f9b8,_0x438d55,_0x19e471)=>{const _0x4b01d5=_0x3e9a34;if(_0x23f9b8&&typeof _0x23f9b8==='object'||typeof _0x23f9b8===_0x4b01d5(0x236))for(var _0x17dd5c=__getOwnPropNames(_0x23f9b8),_0x2f5d5c=0x0,_0x3b6c3d=_0x17dd5c[_0x4b01d5(0x440)],_0x2c741a;_0x2f5d5c<_0x3b6c3d;_0x2f5d5c++){_0x2c741a=_0x17dd5c[_0x2f5d5c],!__hasOwnProp[_0x4b01d5(0x614)](_0xd8a17e,_0x2c741a)&&_0x2c741a!==_0x438d55&&__defProp(_0xd8a17e,_0x2c741a,{'get':(_0x1302a0=>_0x23f9b8[_0x1302a0])[_0x4b01d5(0x3b8)](null,_0x2c741a),'enumerable':!(_0x19e471=__getOwnPropDesc(_0x23f9b8,_0x2c741a))||_0x19e471[_0x4b01d5(0x4eb)]});}return _0xd8a17e;},__toESM=(_0x64e394,_0x40886e,_0x14b6d4)=>(_0x14b6d4=_0x64e394!=null?__create(__getProtoOf(_0x64e394)):{},__copyProps(_0x40886e||!_0x64e394||!_0x64e394[_0x3e9a34(0x254)]?__defProp(_0x14b6d4,_0x3e9a34(0x35a),{'value':_0x64e394,'enumerable':!![]}):_0x14b6d4,_0x64e394));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(_0x4dfcd7){'@babel/helpers - typeof';const _0x4c8d82=_0x3e9a34;return _typeof=_0x4c8d82(0x236)==typeof Symbol&&_0x4c8d82(0x637)==typeof Symbol[_0x4c8d82(0x63e)]?function(_0x2e1bcd){return typeof _0x2e1bcd;}:function(_0x81498c){const _0x22cef5=_0x4c8d82;return _0x81498c&&_0x22cef5(0x236)==typeof Symbol&&_0x81498c[_0x22cef5(0x3a4)]===Symbol&&_0x81498c!==Symbol[_0x22cef5(0x1f0)]?_0x22cef5(0x637):typeof _0x81498c;},_typeof(_0x4dfcd7);}function toPrimitive(_0x35f903,_0x5c2065){const _0x4a747d=_0x3e9a34;if(_0x4a747d(0x370)!=_typeof(_0x35f903)||!_0x35f903)return _0x35f903;var _0x2f2d22=_0x35f903[Symbol[_0x4a747d(0x3fe)]];if(void 0x0!==_0x2f2d22){var _0x1c8e2=_0x2f2d22['call'](_0x35f903,_0x5c2065||_0x4a747d(0x35a));if(_0x4a747d(0x370)!=_typeof(_0x1c8e2))return _0x1c8e2;throw new TypeError(_0x4a747d(0x5d7));}return(_0x4a747d(0x1f8)===_0x5c2065?String:Number)(_0x35f903);}function toPropertyKey(_0x3856a3){const _0x57bbd9=_0x3e9a34;var _0x49cfae=toPrimitive(_0x3856a3,_0x57bbd9(0x1f8));return'symbol'==_typeof(_0x49cfae)?_0x49cfae:_0x49cfae+'';}function _defineProperty(_0x48ddba,_0x347980,_0x488ac4){return(_0x347980=toPropertyKey(_0x347980))in _0x48ddba?Object['defineProperty'](_0x48ddba,_0x347980,{'value':_0x488ac4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48ddba[_0x347980]=_0x488ac4,_0x48ddba;}var ShapeTextEditingService=class extends _univerjs_core['Disposable']{constructor(..._0x1da09c){const _0x122609=_0x3e9a34;super(..._0x1da09c),_defineProperty(this,'_editingParams$',new rxjs[(_0x122609(0x39a))](null)),_defineProperty(this,_0x122609(0x186),this[_0x122609(0x4be)][_0x122609(0x4e1)]()),_defineProperty(this,_0x122609(0x510),new rxjs['BehaviorSubject'](![])),_defineProperty(this,'onSavingEditorData$',this[_0x122609(0x510)][_0x122609(0x4e1)]());}[_0x3e9a34(0x199)](){const _0x4cd997=_0x3e9a34;this[_0x4cd997(0x4be)][_0x4cd997(0x5c7)](null),this['_editingParams$'][_0x4cd997(0x332)](),this['_onSavingEditorData$'][_0x4cd997(0x5c7)](![]),this[_0x4cd997(0x510)][_0x4cd997(0x332)](),super[_0x4cd997(0x199)]();}['setEditing'](_0x4a95b9){const _0x36750f=_0x3e9a34;this['_editingParams$'][_0x36750f(0x5c7)](_0x4a95b9);if(_0x4a95b9===null||_0x4a95b9===void 0x0)this[_0x36750f(0x510)][_0x36750f(0x5c7)](![]);}[_0x3e9a34(0x368)](_0x172ff7){const _0x4bcefa=_0x3e9a34;this[_0x4bcefa(0x510)]['next'](_0x172ff7);}['getEditing'](){const _0x5b0546=_0x3e9a34;return this[_0x5b0546(0x4be)][_0x5b0546(0x42d)]();}};function getShapeDataDiff(_0x4ea21a,_0x48eeb5){const _0x57a7bf=_0x3e9a34,_0x455fe1={};for(const _0x5a3ab5 of Object['keys'](_0x48eeb5)){const _0xad2658=_0x48eeb5[_0x5a3ab5],_0x39d6c3=_0x4ea21a[_0x5a3ab5];if(_0xad2658===void 0x0)continue;if(_0x39d6c3===void 0x0){_0x455fe1[_0x5a3ab5]=void 0x0;continue;}if(typeof _0xad2658===_0x57a7bf(0x370)&&_0xad2658!==null&&!Array[_0x57a7bf(0x611)](_0xad2658)&&typeof _0x39d6c3===_0x57a7bf(0x370)&&_0x39d6c3!==null&&!Array['isArray'](_0x39d6c3))_0x455fe1[_0x5a3ab5]=getShapeDataDiff(_0x39d6c3,_0xad2658);else _0x455fe1[_0x5a3ab5]=_0x39d6c3;}return _0x455fe1;}const UpdateShapeDataCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x330),'handler':(_0x4738a2,_0x2ea27f)=>{const _0x38a020=_0x3e9a34,_0x4e1e13=_0x4738a2[_0x38a020(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService']),{unitId:_0x614b64,subUnitId:_0x5993a2,shapeType:_0x405f13,shapeId:_0x503a8d,shapeData:_0x27bffc,oldShapeJSON:_0x4d349b}=_0x2ea27f;if(!_0x4e1e13[_0x38a020(0x533)](_0x614b64,_0x5993a2,_0x503a8d))return![];const _0x283252=_0x4738a2['get'](_univerjs_core[_0x38a020(0x3f7)]),_0x481536=_0x4738a2[_0x38a020(0x2d9)](_univerjs_core[_0x38a020(0x250)]),{oldShapeType:_0x59efd0,oldShapeData:_0x42d4e3={}}=_0x4d349b,_0x240f5d=getShapeDataDiff(_0x42d4e3,_0x27bffc||{}),_0xaa0a4d={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x405f13,'shapeData':_0x27bffc}},_0x144f58={'id':_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x614b64,'subUnitId':_0x5993a2,'shapeId':_0x503a8d,'shapeType':_0x59efd0,'shapeData':_0x240f5d}};if(_0x283252[_0x38a020(0x623)](_0xaa0a4d['id'],_0xaa0a4d[_0x38a020(0xee)]))return _0x481536[_0x38a020(0xf8)]({'unitID':_0x614b64,'undoMutations':[_0x144f58],'redoMutations':[_0xaa0a4d]}),!![];return![];}},SetShapeTextHorizontalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x4e5),'handler':async(_0x429c55,_0x17b783)=>{const _0x4c2b16=_0x3e9a34;var _0x4c6147;if(!(0x0,_univerjs_sheets[_0x4c2b16(0x249)])(_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core['IUniverInstanceService'])))return![];const _0x4a2482=_0x429c55['get'](_univerjs_sheets_drawing['ISheetDrawingService'])['getFocusDrawings']()[_0x4c2b16(0x50f)](_0x55c016=>_0x55c016[_0x4c2b16(0x5ec)]===_univerjs_core[_0x4c2b16(0x506)][_0x4c2b16(0x3fc)]);if(_0x4a2482[_0x4c2b16(0x440)]!==0x1)return![];const _0x47db20=_0x429c55[_0x4c2b16(0x2d9)](ShapeTextEditingService)[_0x4c2b16(0x512)](),_0x299d29=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4a8)])||_0x4a2482[0x0][_0x4c2b16(0x4a8)],_0x1390ba=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x5d6)])||_0x4a2482[0x0][_0x4c2b16(0x5d6)],_0x120dae=(_0x47db20===null||_0x47db20===void 0x0?void 0x0:_0x47db20[_0x4c2b16(0x4ac)])||_0x4a2482[0x0]['drawingId'],_0x398a58=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x4c2b16(0x533)](_0x299d29,_0x1390ba,_0x120dae);if(!_0x398a58)return![];const _0x329684=_0x398a58['getShapeTextData']();if(!_0x329684||!('dataModel'in _0x329684))return![];const _0x5ab247=_0x429c55[_0x4c2b16(0x2d9)](_univerjs_core[_0x4c2b16(0x3f7)]),{value:_0x198a39}=_0x17b783,_0x1310b3=_0x398a58[_0x4c2b16(0x478)](),_0x34da01=_0x398a58[_0x4c2b16(0x470)](),_0x166543={..._0x329684[_0x4c2b16(0xe0)],'ha':_0x198a39};return await _0x5ab247[_0x4c2b16(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x299d29,'subUnitId':_0x1390ba,'shapeId':_0x120dae,'shapeType':_0x1310b3,'shapeData':{'shapeText':{'isHorizontal':(_0x4c6147=_0x329684[_0x4c2b16(0x1ac)])!==null&&_0x4c6147!==void 0x0?_0x4c6147:!![],'dataModel':_0x166543}},'oldShapeJSON':{'oldShapeType':_0x1310b3,'oldShapeData':_0x34da01}});}},SetShapeTextFontSizeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x1b2),'handler':async(_0x5ba25a,_0x147665)=>{const _0x20de7e=_0x3e9a34;var _0x272f47;if(!_0x147665)return![];const {value:_0x5a520a}=_0x147665,_0x1ada88=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_core[_0x20de7e(0x3f7)]),_0x2c1f2f=_0x5ba25a[_0x20de7e(0x2d9)](ShapeTextEditingService),_0x19816f=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_pro_sheets_shape[_0x20de7e(0x3a1)]),_0x13f0d3=_0x5ba25a[_0x20de7e(0x2d9)](_univerjs_engine_render[_0x20de7e(0x35e)]),_0x4f7155=_0x2c1f2f[_0x20de7e(0x512)]();if(!_0x4f7155)return![];const {unitId:_0x2ee15c,subUnitId:_0x1d84b7,shapeId:_0x21680e}=_0x4f7155,_0x2df372=_0x19816f[_0x20de7e(0x533)](_0x2ee15c,_0x1d84b7,_0x21680e);if(!_0x2df372)return![];const _0x581e4b=_0x2df372[_0x20de7e(0x459)]();if(!_0x581e4b||!(_0x20de7e(0xe0)in _0x581e4b))return![];const _0x292241=_0x581e4b[_0x20de7e(0xe0)];if(!_0x292241)return![];const _0x2e88bf={..._0x292241,'fs':_0x5a520a},_0x5a6696=await _0x1ada88[_0x20de7e(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'shapeId':_0x21680e,'shapeData':{'shapeText':{'isHorizontal':(_0x272f47=_0x581e4b[_0x20de7e(0x1ac)])!==null&&_0x272f47!==void 0x0?_0x272f47:!![],'dataModel':_0x2e88bf}}});if(_0x5a6696){const _0x152ec2=_0x13f0d3[_0x20de7e(0x17d)](_0x2ee15c);if(_0x152ec2===null||_0x152ec2===void 0x0?void 0x0:_0x152ec2[_0x20de7e(0x2a4)]){const _0x3b3561=(0x0,_univerjs_drawing[_0x20de7e(0x171)])({'unitId':_0x2ee15c,'subUnitId':_0x1d84b7,'drawingId':_0x21680e}),_0x4aba09=_0x152ec2[_0x20de7e(0x2a4)][_0x20de7e(0x21c)](_0x3b3561);if(_0x4aba09)_0x4aba09[_0x20de7e(0x309)](!![]);}}return _0x5a6696;}},SetShapeTextFontSizeIncreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0xf3),'handler':async _0xc29517=>{const _0x1aa52f=_0x3e9a34;var _0x474e5a;const _0x38842b=_0xc29517['get'](ShapeTextEditingService),_0x590de7=_0xc29517[_0x1aa52f(0x2d9)](_univerjs_pro_sheets_shape[_0x1aa52f(0x3a1)]),_0x182f95=_0xc29517['get'](_univerjs_core[_0x1aa52f(0x3f7)]),_0x4b1755=_0x38842b[_0x1aa52f(0x512)]();if(!_0x4b1755)return![];const {unitId:_0x53d0a4,subUnitId:_0xd5ffd6,shapeId:_0x51fdf7}=_0x4b1755,_0x52b330=_0x590de7['getShapeModel'](_0x53d0a4,_0xd5ffd6,_0x51fdf7);if(!_0x52b330)return![];const _0x23fa3d=_0x52b330[_0x1aa52f(0x459)]();if(!_0x23fa3d||!('dataModel'in _0x23fa3d))return![];const _0x439b5c=_0x23fa3d[_0x1aa52f(0xe0)],_0x32876d=(_0x474e5a=_0x439b5c===null||_0x439b5c===void 0x0?void 0x0:_0x439b5c['fs'])!==null&&_0x474e5a!==void 0x0?_0x474e5a:0xe,_0x55d84e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0x3f4355=_0x32876d;const _0x328d14=_0x55d84e[_0x1aa52f(0x21f)](_0x32876d);if(_0x328d14!==-0x1&&_0x328d14<_0x55d84e[_0x1aa52f(0x440)]-0x1)_0x3f4355=_0x55d84e[_0x328d14+0x1];else{if(_0x328d14===-0x1)_0x3f4355=Math[_0x1aa52f(0x252)](_0x32876d)+0x1;}return _0x182f95[_0x1aa52f(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0x3f4355});}},SetShapeTextFontSizeDecreaseCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':_0x3e9a34(0x24d),'handler':async _0x5a2b72=>{const _0x56ed9b=_0x3e9a34;var _0x40788f;const _0x51b48d=_0x5a2b72[_0x56ed9b(0x2d9)](ShapeTextEditingService),_0x620911=_0x5a2b72['get'](_univerjs_pro_sheets_shape[_0x56ed9b(0x3a1)]),_0x103e9d=_0x5a2b72[_0x56ed9b(0x2d9)](_univerjs_core[_0x56ed9b(0x3f7)]),_0x19b4aa=_0x51b48d[_0x56ed9b(0x512)]();if(!_0x19b4aa)return![];const {unitId:_0x1090b3,subUnitId:_0x162126,shapeId:_0x19c674}=_0x19b4aa,_0x59036b=_0x620911[_0x56ed9b(0x533)](_0x1090b3,_0x162126,_0x19c674);if(!_0x59036b)return![];const _0x2c9eea=_0x59036b[_0x56ed9b(0x459)]();if(!_0x2c9eea||!(_0x56ed9b(0xe0)in _0x2c9eea))return![];const _0x3c8f42=_0x2c9eea[_0x56ed9b(0xe0)],_0x4614d1=(_0x40788f=_0x3c8f42===null||_0x3c8f42===void 0x0?void 0x0:_0x3c8f42['fs'])!==null&&_0x40788f!==void 0x0?_0x40788f:0xe,_0x35ba47=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48];let _0xdd93f1=_0x4614d1;const _0x33f6b1=_0x35ba47['indexOf'](_0x4614d1);if(_0x33f6b1!==-0x1&&_0x33f6b1>0x0)_0xdd93f1=_0x35ba47[_0x33f6b1-0x1];else{if(_0x33f6b1===-0x1)_0xdd93f1=Math[_0x56ed9b(0x252)](_0x4614d1)-0x1;}if(_0xdd93f1<0x1)_0xdd93f1=0x1;return _0x103e9d[_0x56ed9b(0x591)](SetShapeTextFontSizeCommand['id'],{'value':_0xdd93f1});}},SetShapeTextVerticalAlignCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x358)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x1d3b23,_0x3cd399)=>{const _0x3eb037=_0x3e9a34;var _0x2e9391;if(!(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core[_0x3eb037(0x53f)])))return![];const _0x484e5f=_0x1d3b23['get'](_univerjs_sheets_drawing[_0x3eb037(0x275)])[_0x3eb037(0x4a6)]()[_0x3eb037(0x50f)](_0x4f3bbc=>_0x4f3bbc[_0x3eb037(0x5ec)]===_univerjs_core[_0x3eb037(0x506)][_0x3eb037(0x3fc)]);if(_0x484e5f[_0x3eb037(0x440)]!==0x1)return![];const _0x3908b4=_0x1d3b23[_0x3eb037(0x2d9)](ShapeTextEditingService)['getEditing'](),_0x5292ff=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x4a8)])||_0x484e5f[0x0][_0x3eb037(0x4a8)],_0x545daa=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4[_0x3eb037(0x5d6)])||_0x484e5f[0x0][_0x3eb037(0x5d6)],_0xb84e8a=(_0x3908b4===null||_0x3908b4===void 0x0?void 0x0:_0x3908b4['shapeId'])||_0x484e5f[0x0][_0x3eb037(0x4c5)],_0x287ad8=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3eb037(0x533)](_0x5292ff,_0x545daa,_0xb84e8a);if(!_0x287ad8)return![];const _0x275329=_0x287ad8[_0x3eb037(0x459)]();if(!_0x275329||!('dataModel'in _0x275329))return![];const _0x133bd4=_0x1d3b23[_0x3eb037(0x2d9)](_univerjs_core['ICommandService']),{value:_0xdce6de}=_0x3cd399,_0x48fa7a=_0x287ad8[_0x3eb037(0x478)](),_0x2d24f0=_0x287ad8[_0x3eb037(0x470)](),_0xe22ea6={..._0x275329['dataModel'],'va':_0xdce6de};return await _0x133bd4[_0x3eb037(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x5292ff,'subUnitId':_0x545daa,'shapeId':_0xb84e8a,'shapeType':_0x48fa7a,'shapeData':{'shapeText':{'isHorizontal':(_0x2e9391=_0x275329[_0x3eb037(0x1ac)])!==null&&_0x2e9391!==void 0x0?_0x2e9391:!![],'dataModel':_0xe22ea6}},'oldShapeJSON':{'oldShapeType':_0x48fa7a,'oldShapeData':_0x2d24f0}});}},ShapeDocAlignCommand={'type':_univerjs_core['CommandType'][_0x3e9a34(0x358)],'id':'sheet.command.shape-doc-align','handler':(_0x401d0c,_0x5002c8)=>{const _0x4d3d88=_0x3e9a34;if(!_0x5002c8)return![];const {value:_0x216ada}=_0x5002c8;return _0x401d0c[_0x4d3d88(0x2d9)](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_docs_ui[_0x4d3d88(0x10b)]['id'],{'alignType':_0x216ada});}},CloseSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':_0x3e9a34(0x5b7),'handler'(){return!![];}},OpenSheetShapeFormatPanelOperation={'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!![];}},SHEET_SHAPE_EDIT_PANEL_KEY=_0x3e9a34(0x127),DOCS_SHAPE_EDITOR_UNIT_ID_KEY=(0x0,_univerjs_core[_0x3e9a34(0x5e2)])(_0x3e9a34(0x373)),ShapeTextEditorContainer$1=_0x3e9a34(0x27e);function updateShapeData(_0x12da59,_0x1a8b4f,_0x337b16,_0x58c4e4,_0x119d64,_0x2634b1){const _0x44d8ff=_0x3e9a34,_0x5ed1af={'unitId':_0x1a8b4f,'subUnitId':_0x337b16,'shapeId':_0x58c4e4,'shapeData':_0x2634b1,'oldShapeJSON':_0x119d64};return _0x12da59[_0x44d8ff(0x591)](UpdateShapeDataCommand['id'],_0x5ed1af);}function updateLineShapeData(_0x467b64,_0x1478d0,_0x15df62,_0x417dc4,_0x28b466,_0x271dd4){const _0x33cd3f=_0x3e9a34,_0x3db588={'unitId':_0x1478d0,'subUnitId':_0x15df62,'shapeId':_0x417dc4,'shapeData':_0x271dd4,'oldShapeJSON':_0x28b466};return _0x467b64[_0x33cd3f(0x591)](UpdateShapeDataCommand['id'],_0x3db588);}function prepareShapeTextDocumentData(_0x213947,_0x220a8b){const _0xfc236b=_0x3e9a34;var _0x533918;const {isHorizontal:_0x5c645e,textRect:_0x4effd4,verticalAlign:_0x2c9bc4}=_0x220a8b,_0x4c015a=_0x5c645e?_0x4effd4['width']:_0x4effd4['height'],_0x3c8589=_univerjs_core[_0xfc236b(0x584)][_0xfc236b(0x603)](_0x213947),_0x16de82=(_0x533918=_0x3c8589['documentStyle'])!==null&&_0x533918!==void 0x0?_0x533918:{},_0xf3f8c5={..._0x16de82[_0xfc236b(0x2e1)],'centerAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'vertexAngle':_0x5c645e?0x0:_univerjs_engine_render[_0xfc236b(0x300)],'wrapStrategy':_univerjs_core[_0xfc236b(0x5e5)][_0xfc236b(0x2fa)]};if(_0x2c9bc4!==void 0x0)_0xf3f8c5[_0xfc236b(0x5d0)]=_0x2c9bc4;if(_0x220a8b[_0xfc236b(0x656)]!==void 0x0){var _0x44d892;_0xf3f8c5['horizontalAlign']=_0x220a8b[_0xfc236b(0x656)];const _0x4ad2bb=(_0x44d892=_0x3c8589[_0xfc236b(0x32d)])===null||_0x44d892===void 0x0?void 0x0:_0x44d892['paragraphs'];if(_0x4ad2bb)for(const _0x366204 of _0x4ad2bb){if(!_0x366204[_0xfc236b(0x1cc)])_0x366204['paragraphStyle']={};_0x366204[_0xfc236b(0x1cc)][_0xfc236b(0x656)]=_0x220a8b[_0xfc236b(0x656)];}}return _0x3c8589[_0xfc236b(0x5db)]={..._0x16de82,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x4c015a,'height':Number[_0xfc236b(0x286)]},'renderConfig':_0xf3f8c5},_0x3c8589;}function stripShapeTextDocumentLayout(_0x2c730e){const _0x5e46c3=_0x3e9a34;var _0x436685;const _0x60ae51=_univerjs_core[_0x5e46c3(0x584)][_0x5e46c3(0x603)](_0x2c730e),_0x53f2a5=(_0x436685=_0x60ae51[_0x5e46c3(0x5db)])!==null&&_0x436685!==void 0x0?_0x436685:{},_0x35099e={..._0x53f2a5['renderConfig']};return delete _0x35099e['centerAngle'],delete _0x35099e[_0x5e46c3(0x486)],delete _0x35099e[_0x5e46c3(0x5d0)],delete _0x35099e[_0x5e46c3(0x455)],_0x60ae51[_0x5e46c3(0x5db)]={..._0x53f2a5,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':Number[_0x5e46c3(0x286)],'height':Number[_0x5e46c3(0x286)]},'renderConfig':Object[_0x5e46c3(0x1b4)](_0x35099e)['length']>0x0?_0x35099e:void 0x0},_0x60ae51;}var DrawingShape=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x458af5,_0x604598){const _0x5e2b6c=_0x3e9a34;super(_0x458af5,_0x604598),_defineProperty(this,_0x5e2b6c(0x20f),void 0x0),_defineProperty(this,'_transformCalculateSrcRect',!![]),_defineProperty(this,_0x5e2b6c(0x608),_univerjs_core['DrawingTypeEnum'][_0x5e2b6c(0x3fc)]),_defineProperty(this,_0x5e2b6c(0x65f),!![]),this[_0x5e2b6c(0x20f)]={..._0x604598},this['_init']();}[_0x3e9a34(0x1ee)](){const _0x3176d3=_0x3e9a34;this[_0x3176d3(0x293)][_0x3176d3(0x345)](_0x1ee3fc=>{const _0x4c72a0=_0x3176d3;this[_0x4c72a0(0x2f7)](_0x1ee3fc);});}[_0x3e9a34(0x503)](_0x298a72){const _0x408ab5=_0x3e9a34;this['_props'][_0x408ab5(0x31d)]=_0x298a72;}[_0x3e9a34(0x1d8)](_0x327187){const _0xd4a264=_0x3e9a34;this[_0xd4a264(0x20f)]['isEditing']=_0x327187,this[_0xd4a264(0x309)](!![]);}get[_0x3e9a34(0x4a8)](){const _0x302c02=_0x3e9a34;return this[_0x302c02(0x20f)][_0x302c02(0x4a8)];}get[_0x3e9a34(0x5d6)](){const _0x1a7261=_0x3e9a34;return this['_props'][_0x1a7261(0x5d6)];}['_updateSrcRectByTransform'](_0x29cf50){const _0x390631=_0x3e9a34;if(this['_props'][_0x390631(0x244)]==null||!this[_0x390631(0x58f)])return;const {width:_0x5d2177,height:_0x34d696}=this,{width:_0x36be15=0x0,height:_0x564fbb=0x0}=_0x29cf50[_0x390631(0x448)],{left:_0x3aa8b3=0x0,top:_0x2d8eb2=0x0,right:_0x2cea2d=0x0,bottom:_0x3edfd9=0x0}=this[_0x390631(0x20f)]['srcRect'];let _0xce5a68=_0x3aa8b3,_0x42222c=_0x2d8eb2,_0x3edec8=_0x2cea2d,_0x125b16=_0x3edfd9,_0x50bded=![];if(_0x36be15!==0x0&&_0x36be15!==_0x5d2177){const _0x48409e=_0x3aa8b3/_0x36be15,_0x23b979=_0x2cea2d/_0x36be15;_0xce5a68=_0x5d2177*_0x48409e,_0x3edec8=_0x5d2177*_0x23b979,_0x50bded=!![];}if(_0x564fbb!==0x0&&_0x564fbb!==_0x34d696){const _0x11c822=_0x2d8eb2/_0x564fbb,_0x1e3169=_0x3edfd9/_0x564fbb;_0x42222c=_0x34d696*_0x11c822,_0x125b16=_0x34d696*_0x1e3169,_0x50bded=!![];}if(_0x50bded)this['setSrcRect']({'left':_0xce5a68,'top':_0x42222c,'right':_0x3edec8,'bottom':_0x125b16});}[_0x3e9a34(0x371)](_0x566f47){const _0x39ba1e=_0x3e9a34;this[_0x39ba1e(0x20f)][_0x39ba1e(0x244)]=_0x566f47,this[_0x39ba1e(0x309)](!![]);}[_0x3e9a34(0x39f)](_0x356926){const _0x517faf=_0x3e9a34;this['_props']['image']=_0x356926,this[_0x517faf(0x309)](!![]);}set[_0x3e9a34(0x600)](_0x2bad78){const _0x1d386e=_0x3e9a34;this[_0x1d386e(0x501)]=_0x2bad78;}get['transform'](){const _0x2dfc74=_0x3e9a34;if(!this[_0x2dfc74(0x501)])this[_0x2dfc74(0xf7)]();const _0x5686d6=this[_0x2dfc74(0x501)][_0x2dfc74(0x3e7)]();return this['transformForAngle'](_0x5686d6);}get[_0x3e9a34(0x4e4)](){const _0x323cdf=_0x3e9a34;return this[_0x323cdf(0x20f)][_0x323cdf(0x4e4)];}get[_0x3e9a34(0x4ac)](){return this['_props']['shapeId'];}get[_0x3e9a34(0x571)](){const _0x51eed0=_0x3e9a34;return _univerjs_engine_render['RENDER_CLASS_TYPE'][_0x51eed0(0x305)];}['_draw'](_0x36576d,_0xdccc4e,_0x4f13e9,_0x3f4254){const _0x5a120e=_0x3e9a34,_0x868078=this[_0x5a120e(0x20f)]['shapeModel'];if(!_0x868078||!_0xdccc4e)return;const _0x1dc7d6=_0x4f13e9!==null&&_0x4f13e9!==void 0x0?_0x4f13e9:this[_0x5a120e(0x183)],_0x123e28=_0x3f4254!==null&&_0x3f4254!==void 0x0?_0x3f4254:this[_0x5a120e(0x37b)],_0x35ceec={'shapeType':_0x868078[_0x5a120e(0x478)](),'width':_0x1dc7d6,'height':_0x123e28},_0x10c76d={'renderMode':_univerjs_pro_engine_shape['ShapeRenderModeEnum'][_0x5a120e(0x403)],'oKey':this['oKey'],'image':this[_0x5a120e(0x20f)][_0x5a120e(0x51b)],'angle':this['angle']};_0x868078['updateContext'](_0x35ceec),_0x36576d[_0x5a120e(0x1a3)]();const _0x405833={'top':0x0,'left':0x0,'width':_0x1dc7d6,'height':_0x123e28};_0x868078[_0x5a120e(0x107)](_0x36576d,_0x405833,_0x10c76d),_0x36576d[_0x5a120e(0x556)]();const _0x35da23=_0x868078[_0x5a120e(0x459)](),_0x53a7f7=_0x868078[_0x5a120e(0x446)](_0x405833),_0x495de5=_0x868078[_0x5a120e(0x25b)]();if(_0x35da23&&_0x53a7f7&&!_0x495de5){_0x36576d[_0x5a120e(0x1a3)]();if(this[_0x5a120e(0x30f)]()[_0x5a120e(0x2f5)])_0x36576d['scale'](-0x1,0x1);const _0x43dc0b=_0x1dc7d6/0x2,_0x6a4b84=_0x123e28/0x2;_0x36576d[_0x5a120e(0x52e)](-_0x43dc0b,-_0x6a4b84),_0x36576d[_0x5a120e(0x4d7)](),this['_drawShapeText'](_0x36576d,_0x35da23,_0x53a7f7),_0x36576d[_0x5a120e(0x556)]();}}[_0x3e9a34(0x660)](_0x149022){}[_0x3e9a34(0x62f)](_0xc223fd,_0x427ac5,_0x3e8f08){const _0x18cb54=_0x3e9a34;if(this[_0x18cb54(0x20f)]['isEditing'])return;if('isRichText'in _0x427ac5&&_0x427ac5['isRichText']===![])this[_0x18cb54(0x116)](_0xc223fd,_0x427ac5,_0x3e8f08);else this[_0x18cb54(0x295)](_0xc223fd,_0x427ac5,_0x3e8f08);}[_0x3e9a34(0x116)](_0x13bfa1,_0x45edc,_0x146d6f){}[_0x3e9a34(0x295)](_0x256191,_0x518b08,_0x1dcc55){const _0x187311=_0x3e9a34;var _0x414079,_0x420278;const _0x5ea4dd=this['_props'][_0x187311(0x5ee)];if(!_0x518b08[_0x187311(0xe0)]||!_0x5ea4dd){if(!_0x5ea4dd)console[_0x187311(0x3d9)](_0x187311(0x2b6));return;}const _0xd8da4b=_0x518b08[_0x187311(0xe0)],_0x21008c=_0xd8da4b[_0x187311(0x30b)],_0x7014ec=(_0x414079=_0xd8da4b['va'])!==null&&_0x414079!==void 0x0?_0x414079:_univerjs_core[_0x187311(0x48a)][_0x187311(0x2ab)],_0x367c6f=(_0x420278=_0xd8da4b['ha'])!==null&&_0x420278!==void 0x0?_0x420278:_univerjs_core[_0x187311(0x5ed)][_0x187311(0x57b)];if(!_0x21008c)return;const _0x27c1bd=_0x518b08[_0x187311(0x1ac)],_0x18867c=prepareShapeTextDocumentData(_0x21008c,{'isHorizontal':_0x27c1bd!==![],'textRect':_0x1dcc55,'verticalAlign':_0x7014ec,'horizontalAlign':_0x367c6f}),_0x1e4cd0=new _univerjs_core[(_0x187311(0x548))](_0x18867c),_0x3ed29c=new _univerjs_engine_render[(_0x187311(0x2f3))](_0x1e4cd0),_0x3969a1=_univerjs_engine_render[_0x187311(0x224)]['create'](_0x3ed29c,_0x5ea4dd);console[_0x187311(0x3d9)](_0x18867c,_0x1e4cd0,_0x3969a1),_0x3969a1[_0x187311(0x108)]();const _0x16bf59=new _univerjs_engine_render[(_0x187311(0x535))](_0x187311(0x2df)+this[_0x187311(0x389)],_0x3969a1,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x16bf59['resize'](_0x1dcc55[_0x187311(0x183)],_0x1dcc55[_0x187311(0x37b)]),_0x256191[_0x187311(0x1a3)](),_0x256191[_0x187311(0x1d6)](_0x1dcc55[_0x187311(0xe1)],_0x1dcc55[_0x187311(0x156)]),_0x256191[_0x187311(0x4d7)](),_0x256191[_0x187311(0x11a)](0x0,0x0,_0x1dcc55['width'],_0x1dcc55['height']),_0x256191[_0x187311(0x632)](),_0x16bf59[_0x187311(0x45a)](_0x256191),_0x256191[_0x187311(0x556)](),_0x16bf59[_0x187311(0x199)](),_0x3969a1[_0x187311(0x199)](),_0x3ed29c['dispose'](),_0x1e4cd0['dispose']();}[_0x3e9a34(0x107)](_0x351c6b,_0x3b960a,_0x447b7f=![]){const _0x59fce9=_0x3e9a34;if(!this['visible'])return this['makeDirty'](![]),this;let {width:_0x2bc85b,height:_0x54a82a,left:_0x206c21,top:_0x37a1e6}=this;const _0x2f871b=this[_0x59fce9(0x5ff)]();_0x2bc85b=_0x2f871b[_0x59fce9(0x183)],_0x54a82a=_0x2f871b[_0x59fce9(0x37b)],_0x206c21=_0x2f871b[_0x59fce9(0xe1)],_0x37a1e6=_0x2f871b['top'];if(this['isRender'](_0x3b960a)){const {top:_0x44f683,left:_0xdb5f47,bottom:_0x4f9b1b,right:_0x108d17}=_0x3b960a['viewBound'];if(_0x2bc85b+this[_0x59fce9(0x45d)]+_0x206c21<_0xdb5f47||_0x108d17<_0x206c21||_0x54a82a+this[_0x59fce9(0x45d)]+_0x37a1e6<_0x44f683||_0x4f9b1b<_0x37a1e6)return this;}const _0x541b53=_0x206c21+_0x2bc85b/0x2,_0x1c9a1e=_0x37a1e6+_0x54a82a/0x2;let _0xb02f7=this[_0x59fce9(0x600)][_0x59fce9(0x146)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x447)]){const _0x46d5f5=this[_0x59fce9(0x30f)](),_0x7afe26=new _univerjs_engine_render[(_0x59fce9(0x10d))]();_0x7afe26[_0x59fce9(0x3f8)]({..._0x46d5f5}),_0xb02f7=_0x7afe26[_0x59fce9(0x146)]();}_0x351c6b[_0x59fce9(0x1a3)]();if(this[_0x59fce9(0x20f)][_0x59fce9(0x4e4)][_0x59fce9(0x4ca)]===!![]){}else _0x351c6b[_0x59fce9(0x600)](_0xb02f7[0x0],_0xb02f7[0x1],_0xb02f7[0x2],_0xb02f7[0x3],_0x541b53,_0x1c9a1e);return this[_0x59fce9(0x33c)](_0x351c6b,_0x3b960a,_0x2bc85b,_0x54a82a),_0x351c6b['restore'](),this[_0x59fce9(0x309)](![]),this;}[_0x3e9a34(0x1a5)](_0x476e05){const _0xc8d1d2=_0x3e9a34,{left:_0x3dd62a,top:_0x10f332,width:_0x37aeec,height:_0x4bb6a5}=this[_0xc8d1d2(0x5ff)](),_0x4d807b=this[_0xc8d1d2(0x600)][_0xc8d1d2(0x146)](),_0x3ffd38=_0x3dd62a+_0x37aeec/0x2,_0x5c3d5e=_0x10f332+_0x4bb6a5/0x2,_0x33e9bd=new _univerjs_engine_render[(_0xc8d1d2(0x10d))]([_0x4d807b[0x0],_0x4d807b[0x1],_0x4d807b[0x2],_0x4d807b[0x3],_0x3ffd38,_0x5c3d5e]),_0x35bd86=this[_0xc8d1d2(0x316)]();return(this[_0xc8d1d2(0x258)]&&(_0x35bd86===null||_0x35bd86===void 0x0?void 0x0:_0x35bd86[_0xc8d1d2(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0xc8d1d2(0x4a2)]?_0x35bd86[_0xc8d1d2(0x526)]['multiply'](_0x33e9bd):_0x33e9bd)[_0xc8d1d2(0x66a)]()['applyPoint'](_0x476e05);}[_0x3e9a34(0x1f7)](_0x5be246){const _0x5f5b74=_0x3e9a34,{left:_0x590bcc,top:_0x464c18,width:_0x3d7043,height:_0x5c4f1b}=this['getRealBound'](),_0x51db52=_0x590bcc+_0x3d7043/0x2,_0x1228ae=_0x464c18+_0x5c4f1b/0x2,_0x13af1f=this['transform']['getMatrix'](),_0x5bdc45=new _univerjs_engine_render['Transform']([_0x13af1f[0x0],_0x13af1f[0x1],_0x13af1f[0x2],_0x13af1f[0x3],_0x51db52,_0x1228ae]),_0x56e39f=this[_0x5f5b74(0x316)](),_0x8ad2cf=(this['isInGroup']&&(_0x56e39f===null||_0x56e39f===void 0x0?void 0x0:_0x56e39f[_0x5f5b74(0x571)])===_univerjs_engine_render[_0x5f5b74(0x4f8)]['GROUP']?_0x56e39f[_0x5f5b74(0x526)][_0x5f5b74(0x12b)](_0x5bdc45):_0x5bdc45)[_0x5f5b74(0x66a)]()[_0x5f5b74(0x342)](_0x5be246),_0x497228=_0x3d7043/0x2,_0x45d688=_0x5c4f1b/0x2,_0x89b661=this[_0x5f5b74(0x20f)]['shapeModel'];if(_0x89b661&&_0x89b661[_0x5f5b74(0x25b)]())return _0x89b661[_0x5f5b74(0x56c)](_0x8ad2cf['x'],_0x8ad2cf['y'],_0x3d7043,_0x5c4f1b);if(_0x8ad2cf['x']>=-_0x497228-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['x']<=_0x497228+this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']>=-_0x45d688-this[_0x5f5b74(0x45d)]/0x2&&_0x8ad2cf['y']<=_0x45d688+this['strokeWidth']/0x2)return!![];return![];}[_0x3e9a34(0x199)](){const _0x189489=_0x3e9a34;this[_0x189489(0x20f)][_0x189489(0x4e4)]=null,super['dispose']();}};function __decorateParam(_0x3a7f71,_0x1aacf7){return function(_0x4a0a35,_0x453e0f){_0x1aacf7(_0x4a0a35,_0x453e0f,_0x3a7f71);};}function __decorate(_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03){const _0x524709=_0x3e9a34;var _0x22f3fa=arguments[_0x524709(0x440)],_0x3f3c24=_0x22f3fa<0x3?_0x58dd35:_0x3bed03===null?_0x3bed03=Object[_0x524709(0x34b)](_0x58dd35,_0x5cabe0):_0x3bed03,_0x1885d2;if(typeof Reflect===_0x524709(0x370)&&typeof Reflect[_0x524709(0x4d6)]===_0x524709(0x236))_0x3f3c24=Reflect[_0x524709(0x4d6)](_0x92ff30,_0x58dd35,_0x5cabe0,_0x3bed03);else{for(var _0x521911=_0x92ff30[_0x524709(0x440)]-0x1;_0x521911>=0x0;_0x521911--)if(_0x1885d2=_0x92ff30[_0x521911])_0x3f3c24=(_0x22f3fa<0x3?_0x1885d2(_0x3f3c24):_0x22f3fa>0x3?_0x1885d2(_0x58dd35,_0x5cabe0,_0x3f3c24):_0x1885d2(_0x58dd35,_0x5cabe0))||_0x3f3c24;}return _0x22f3fa>0x3&&_0x3f3c24&&Object[_0x524709(0x63c)](_0x58dd35,_0x5cabe0,_0x3f3c24),_0x3f3c24;}let SheetDrawingShapeRenderController=class SheetDrawingShapeRenderController extends _univerjs_core['Disposable']{constructor(_0x497e01,_0x2de12d,_0x30c91d,_0x4f7505,_0x15310f){const _0x3dc15a=_0x3e9a34;super(),this[_0x3dc15a(0x4d0)]=_0x497e01,this[_0x3dc15a(0xfd)]=_0x2de12d,this[_0x3dc15a(0x5d4)]=_0x30c91d,this[_0x3dc15a(0x272)]=_0x4f7505,this[_0x3dc15a(0x469)]=_0x15310f;}[_0x3e9a34(0x1e3)](_0x56903a,_0x4e0832){const _0x1dc2eb=_0x3e9a34,{transform:_0x47e3e6,drawingType:_0x4ac8a4,srcRect:_0x48bead,prstGeom:_0x3a9025,groupId:_0x321e5c,unitId:_0x5693b3,subUnitId:_0x5aceb2,drawingId:_0x44bde0,isMultiTransform:_0x8ab282,transforms:_0x3b73ab,hidden:_0x3c998c}=_0x56903a;if(_0x4ac8a4!==_univerjs_core['DrawingTypeEnum'][_0x1dc2eb(0x3fc)])return;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())return;if(_0x47e3e6==null)return;const _0x19ba7d=_0x8ab282&&_0x3b73ab?_0x3b73ab:[_0x47e3e6],_0x451ccb=[];for(const _0x339623 of _0x19ba7d){const {left:_0x53ebf1,top:_0x5c5eea,width:_0x1b484e,height:_0x4dcc0d,angle:_0x17ceb4,flipX:_0x426fea,flipY:_0x11f749,skewX:_0x2a83a8,skewY:_0x29ae80}=_0x339623,_0x1f88a7=_0x19ba7d[_0x1dc2eb(0x21f)](_0x339623),_0x1326af=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'drawingId':_0x44bde0},_0x8ab282?_0x1f88a7:void 0x0),_0x2f8438=_0x4e0832[_0x1dc2eb(0x21c)](_0x1326af);if(_0x2f8438!=null){_0x2f8438[_0x1dc2eb(0x227)]({'left':_0x53ebf1,'top':_0x5c5eea,'width':_0x1b484e,'height':_0x4dcc0d,'angle':_0x17ceb4,'flipX':_0x426fea,'flipY':_0x11f749,'skewX':_0x2a83a8,'skewY':_0x29ae80});continue;}const _0x22abcb=this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x2bd)](_0x5693b3,_0x5aceb2),_0x483807=_0x22abcb[_0x1dc2eb(0x21f)](_0x44bde0);if(_0x4e0832['getObjectIncludeInGroup'](_0x1326af))continue;if(!this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x3f9)]())continue;const _0x32e02e=this[_0x1dc2eb(0xfd)][_0x1dc2eb(0x533)](_0x5693b3,_0x5aceb2,_0x44bde0);if(!_0x32e02e)continue;const _0x365853=new DrawingShape(_0x1326af,{...(0x0,_univerjs_pro_engine_shape[_0x1dc2eb(0x654)])(_0x32e02e[_0x1dc2eb(0x478)]())?{..._0x339623,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]}:{..._0x339623},'zIndex':_0x483807===-0x1?_0x22abcb['length']-0x1:_0x483807,'shapeModel':_0x32e02e,'localeService':this[_0x1dc2eb(0x5d4)],'shapeId':_0x44bde0,'unitId':_0x5693b3,'subUnitId':_0x5aceb2,'visible':_0x3c998c!==!![]});_0x4e0832['addObject'](_0x365853,_univerjs_engine_render[_0x1dc2eb(0x1bd)]);if(this[_0x1dc2eb(0x4d0)][_0x1dc2eb(0x362)]())_0x4e0832['attachTransformerTo'](_0x365853);_0x321e5c&&(0x0,_univerjs_drawing_ui[_0x1dc2eb(0x34c)])({'drawingId':_0x321e5c,'unitId':_0x5693b3,'subUnitId':_0x5aceb2},_0x365853,_0x4e0832,this[_0x1dc2eb(0x4d0)]);if(_0x3a9025!=null)_0x365853[_0x1dc2eb(0x503)](_0x3a9025);if(_0x48bead!=null)_0x365853[_0x1dc2eb(0x371)](_0x48bead);this[_0x1dc2eb(0x1cd)](_0x365853,_0x32e02e[_0x1dc2eb(0x470)]()),_0x451ccb[_0x1dc2eb(0x2dd)](_0x365853);}return _0x451ccb;}['_loadShapePictureFill'](_0x914fe,_0x121d85){const _0xd773d0=_0x3e9a34;var _0x55b565;const _0x572f9d=_0x121d85['fill'];if(!_0x572f9d||_0x572f9d[_0xd773d0(0x49b)]!==_univerjs_pro_engine_shape[_0xd773d0(0x4bf)][_0xd773d0(0x5c6)]||!_0x572f9d[_0xd773d0(0x5cd)])return;const _0x19430b=_0x572f9d['fillImageSource'],_0x9fefb5=(_0x55b565=_0x572f9d['fillImageSourceType'])!==null&&_0x55b565!==void 0x0?_0x55b565:_univerjs_pro_engine_shape['ImageSourceTypeEnum'][_0xd773d0(0xfc)],_0x427604=this[_0xd773d0(0x272)]['getImageSourceCache'](_0x19430b,_0x9fefb5);if(_0x427604){_0x914fe[_0xd773d0(0x39f)](_0x427604);return;}this[_0xd773d0(0x241)](_0x914fe,_0x19430b,_0x9fefb5);}async[_0x3e9a34(0x241)](_0x47988a,_0x185e62,_0x2bced5){const _0x1490a5=_0x3e9a34;let _0x341d6b;try{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0x233)])_0x341d6b=await this['_imageIoService'][_0x1490a5(0x4fd)](_0x185e62);else{if(_0x2bced5===_univerjs_pro_engine_shape[_0x1490a5(0x38e)][_0x1490a5(0xfc)])try{_0x341d6b=await this[_0x1490a5(0x469)]['getImage'](_0x185e62);}catch{_0x341d6b=_0x185e62;}else _0x341d6b=_0x185e62;}}catch(_0x3df293){console[_0x1490a5(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3df293);return;}const _0x2fee77=new window[(_0x1490a5(0x41c))]();_0x2fee77[_0x1490a5(0x437)]=()=>{const _0x5a560b=_0x1490a5;this[_0x5a560b(0x272)][_0x5a560b(0x15d)](_0x185e62,_0x2bced5,_0x2fee77),_0x47988a[_0x5a560b(0x39f)](_0x2fee77);},_0x2fee77[_0x1490a5(0x260)]=()=>{const _0x3c397a=_0x1490a5;console[_0x3c397a(0x5e9)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x185e62);},_0x2fee77[_0x1490a5(0x149)]=_0x341d6b;}};function _0x47fe(_0x4d1087,_0x54e549){_0x4d1087=_0x4d1087-0xdd;const _0x501b48=_0x501b();let _0x47fe73=_0x501b48[_0x4d1087];return _0x47fe73;}SheetDrawingShapeRenderController=__decorate([__decorateParam(0x0,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x3,_univerjs_drawing['IImageIoService']),__decorateParam(0x4,_univerjs_core[_0x3e9a34(0x473)])],SheetDrawingShapeRenderController);let ShapeUpdateController=class ShapeUpdateController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x51fcfc,_0x306769,_0x44bfa0,_0x1eea96,_0x2e9951,_0x514a6d){const _0x5eedc4=_0x3e9a34;super(),this[_0x5eedc4(0x363)]=_0x51fcfc,this[_0x5eedc4(0x5cb)]=_0x306769,this[_0x5eedc4(0x4d0)]=_0x44bfa0,this[_0x5eedc4(0x5a3)]=_0x1eea96,this[_0x5eedc4(0x56b)]=_0x2e9951,this[_0x5eedc4(0x1ed)]=_0x514a6d,this[_0x5eedc4(0x206)]();}['_initialize'](){const _0x55786c=_0x3e9a34;this['_drawingAddListener'](),this['_commandExecutedListener'](),this[_0x55786c(0x441)]();}[_0x3e9a34(0x37c)](){const _0xeabd20=_0x3e9a34;this[_0xeabd20(0x58e)](this[_0xeabd20(0x4d0)][_0xeabd20(0x640)][_0xeabd20(0x562)](_0x444c5c=>{this['_insertShapes'](_0x444c5c);}));}['_commandExecutedListener'](){const _0x11321e=_0x3e9a34;this['disposeWithMe'](this[_0x11321e(0x363)][_0x11321e(0x3b5)](_0x30673b=>{const _0xd72264=_0x11321e;if(_0x30673b['id']===_univerjs_pro_sheets_shape[_0xd72264(0x598)]['id']){var _0x3eae51;const {unitId:_0x2c4487,subUnitId:_0x28c0b2,shapeId:_0x4be04e}=_0x30673b[_0xd72264(0xee)],_0x106d19=this[_0xd72264(0x34f)](_0x2c4487);if(_0x106d19==null)return;const {scene:_0x469652}=_0x106d19,_0x58536f=(0x0,_univerjs_drawing[_0xd72264(0x171)])({'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}),_0x1c4d50=_0x469652[_0xd72264(0x21c)](_0x58536f);if(!((_0x3eae51=this[_0xd72264(0x5cb)]['getRenderById'](_0x2c4487))===null||_0x3eae51===void 0x0?void 0x0:_0x3eae51['with'](_univerjs_sheets_ui[_0xd72264(0x412)])[_0xd72264(0x64e)](_0x28c0b2)))return![];if(_0x1c4d50)return;this[_0xd72264(0x385)]([{'unitId':_0x2c4487,'subUnitId':_0x28c0b2,'drawingId':_0x4be04e}]);}}));}['_shapeUpdateListener'](){const _0x47593e=_0x3e9a34;this[_0x47593e(0x58e)](this[_0x47593e(0x4d0)][_0x47593e(0x554)][_0x47593e(0x562)](_0xc6fd09=>{const _0x23cf04=_0x47593e;_0xc6fd09[_0x23cf04(0x289)](_0x4ef3e9=>{const _0x836428=_0x23cf04,{unitId:_0x518111,subUnitId:_0x312f38,drawingId:_0x2fd43d}=_0x4ef3e9,_0x361942=this[_0x836428(0x4d0)][_0x836428(0x619)](_0x4ef3e9);if(_0x361942==null)return;const {transform:_0x28fb3b,drawingType:_0x5aceaf,srcRect:_0x326847,prstGeom:_0x67e33c}=_0x361942;if(_0x5aceaf!==_univerjs_core[_0x836428(0x506)][_0x836428(0x3fc)])return;const _0x5b3307=this[_0x836428(0x34f)](_0x518111);if(_0x5b3307==null)return;const {scene:_0x143c69,transformer:_0x4500ce}=_0x5b3307;if(_0x28fb3b==null)return!![];const _0x53bc66=(0x0,_univerjs_drawing[_0x836428(0x171)])({'unitId':_0x518111,'subUnitId':_0x312f38,'drawingId':_0x2fd43d}),_0x1f9e44=_0x143c69[_0x836428(0x21c)](_0x53bc66);if(_0x1f9e44==null)return!![];_0x1f9e44[_0x836428(0x371)](_0x326847),_0x1f9e44[_0x836428(0x503)](_0x67e33c);});}));}[_0x3e9a34(0x4f4)](_0x1d8101,_0x4e0e07){const _0x52a55c=_0x3e9a34,{unitId:_0x1b8380,subUnitId:_0x567a82,drawingId:_0x4da0b1}=_0x1d8101,_0x3c9ed4=this['_getSceneAndTransformerByDrawingSearch'](_0x1b8380);if(_0x3c9ed4==null)return;const {scene:_0x12bd79}=_0x3c9ed4,_0x68e194=(0x0,_univerjs_drawing[_0x52a55c(0x171)])({'unitId':_0x1b8380,'subUnitId':_0x567a82,'drawingId':_0x4da0b1}),_0x4e395f=_0x12bd79[_0x52a55c(0x21c)](_0x68e194);if(_0x4e395f==null)return;_0x4e395f['setFillImage'](_0x4e0e07);}[_0x3e9a34(0x385)](_0x3f9fdf){const _0x43c568=_0x3e9a34;_0x3f9fdf[_0x43c568(0x289)](async _0x2b9788=>{const _0x40b986=_0x43c568;var _0x20bdd2;const {unitId:_0x10c625,subUnitId:_0x44c5f4}=_0x2b9788,_0x9a9e1a=this[_0x40b986(0x34f)](_0x10c625),_0x185edf=(_0x20bdd2=(0x0,_univerjs_drawing_ui['getCurrentUnitInfo'])(this['_currentUniverService'],_0x10c625))===null||_0x20bdd2===void 0x0?void 0x0:_0x20bdd2[_0x40b986(0x5d6)];if(_0x9a9e1a==null||_0x185edf!==_0x44c5f4)return;const _0x356da3=this[_0x40b986(0x4d0)]['getDrawingByParam'](_0x2b9788);if(_0x356da3==null)return;if(_0x356da3['drawingType']!==_univerjs_core[_0x40b986(0x506)][_0x40b986(0x3fc)])return;if((0x0,_univerjs_pro_engine_shape[_0x40b986(0x654)])((_0x356da3[_0x40b986(0x278)]||{})[_0x40b986(0x24f)])){const _0x210c9b=_0x356da3[_0x40b986(0x600)];if(_0x210c9b)_0x356da3[_0x40b986(0x600)]={..._0x210c9b,'rotateEnabled':![],'resizeEnabled':![],'borderEnabled':![]};}this[_0x40b986(0x4d0)][_0x40b986(0x3bd)]([_0x356da3]),this[_0x40b986(0x1ed)][_0x40b986(0x1e3)](_0x356da3,_0x9a9e1a[_0x40b986(0x2a4)]);});}[_0x3e9a34(0x34f)](_0x1cf026){const _0x14f842=_0x3e9a34;if(_0x1cf026==null)return;const _0xe198c2=this[_0x14f842(0x5cb)][_0x14f842(0x17d)](_0x1cf026),_0x4fd32d=_0xe198c2===null||_0xe198c2===void 0x0?void 0x0:_0xe198c2['scene'];if(_0x4fd32d==null)return null;return{'scene':_0x4fd32d,'transformer':_0x4fd32d['getTransformerByCreate']()};}};ShapeUpdateController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x1,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing_ui[_0x3e9a34(0x344)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController))],ShapeUpdateController);function ShapeImageFillEditor(_0x234689){const _0x2992d3=_0x3e9a34;var _0x1c4481,_0x5b376c,_0x38851c,_0x3cda8a,_0x92d0e0,_0x57e226,_0x1ad652,_0xe98f83,_0x25adbe,_0x54bedb,_0x5d61f5,_0x2421a3,_0x28f768;const {unitId:_0x25f2aa,subUnitId:_0x44b980,shapeId:_0xd5cee1,shapeData:_0x4a62bc,disableShapeOption:_0x216398}=_0x234689,_0x4ec3ca=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_core[_0x2992d3(0x398)]),_0x273435=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x249fc0=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x2992d3(0x409)]),_0x4558a4=(0x0,_univerjs_ui['useDependency'])(ShapeUpdateController),_0x554bd1=(0x0,_univerjs_ui[_0x2992d3(0x663)])(_univerjs_drawing[_0x2992d3(0x3ce)]),_0x41b6e2=(0x0,react['useRef'])(null),_0x21a801=_0x4a62bc[_0x2992d3(0x151)],_0x2341c7=!!(_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)]),[_0x34a216,_0x388cd8]=(0x0,react[_0x2992d3(0x5a1)])((_0x1c4481=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x425)])!==null&&_0x1c4481!==void 0x0?_0x1c4481:0x1),[_0x2adba7,_0xf6a2c3]=(0x0,react[_0x2992d3(0x5a1)])((_0x5b376c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x3e0)])!==null&&_0x5b376c!==void 0x0?_0x5b376c:_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Stretch']),[_0x598662,_0x1b7b94]=(0x0,react['useState'])((_0x38851c=_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5da)])!==null&&_0x38851c!==void 0x0?_0x38851c:![]),[_0x5bd4d4,_0x408539]=(0x0,react['useState'])((_0x3cda8a=_0x21a801===null||_0x21a801===void 0x0||(_0x92d0e0=_0x21a801['imageTile'])===null||_0x92d0e0===void 0x0?void 0x0:_0x92d0e0[_0x2992d3(0x59b)])!==null&&_0x3cda8a!==void 0x0?_0x3cda8a:0x0),[_0x4a9037,_0x19c78c]=(0x0,react[_0x2992d3(0x5a1)])((_0x57e226=_0x21a801===null||_0x21a801===void 0x0||(_0x1ad652=_0x21a801[_0x2992d3(0x290)])===null||_0x1ad652===void 0x0?void 0x0:_0x1ad652[_0x2992d3(0x161)])!==null&&_0x57e226!==void 0x0?_0x57e226:0x0),[_0x404b4c,_0x5e57bf]=(0x0,react[_0x2992d3(0x5a1)])((_0xe98f83=_0x21a801===null||_0x21a801===void 0x0||(_0x25adbe=_0x21a801[_0x2992d3(0x290)])===null||_0x25adbe===void 0x0?void 0x0:_0x25adbe['scaleX'])!==null&&_0xe98f83!==void 0x0?_0xe98f83:0x1),[_0x17c259,_0x43c9c0]=(0x0,react[_0x2992d3(0x5a1)])((_0x54bedb=_0x21a801===null||_0x21a801===void 0x0||(_0x5d61f5=_0x21a801[_0x2992d3(0x290)])===null||_0x5d61f5===void 0x0?void 0x0:_0x5d61f5[_0x2992d3(0x1b6)])!==null&&_0x54bedb!==void 0x0?_0x54bedb:0x1),[_0x252963,_0x2eaae7]=(0x0,react[_0x2992d3(0x5a1)])((_0x2421a3=_0x21a801===null||_0x21a801===void 0x0||(_0x28f768=_0x21a801['imageTile'])===null||_0x28f768===void 0x0?void 0x0:_0x28f768[_0x2992d3(0x48f)])!==null&&_0x2421a3!==void 0x0?_0x2421a3:'tl'),_0x406692=_0x2adba7===_univerjs_pro_engine_shape[_0x2992d3(0x26c)]['Tile'],_0x3b586d=Math[_0x2992d3(0x47c)]((0x1-_0x34a216)*0x64),_0x5a066f=Math[_0x2992d3(0x47c)](_0x404b4c*0x64),_0x22421f=Math[_0x2992d3(0x47c)](_0x17c259*0x64),_0x52f548=_0x461430=>_0x4ec3ca['t'](_0x461430),_0xfebb96=[{'label':_0x52f548(_0x2992d3(0x308)),'value':'tl'},{'label':_0x52f548(_0x2992d3(0x158)),'value':'t'},{'label':_0x52f548('sheets-shape.fill.picture.align.tr'),'value':'tr'},{'label':_0x52f548('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x52f548('sheets-shape.fill.picture.align.ctr'),'value':_0x2992d3(0x568)},{'label':_0x52f548(_0x2992d3(0x3d6)),'value':'r'},{'label':_0x52f548('sheets-shape.fill.picture.align.bl'),'value':'bl'},{'label':_0x52f548(_0x2992d3(0x1dd)),'value':'b'},{'label':_0x52f548(_0x2992d3(0x1fb)),'value':'br'}],_0x372512=_0x1f3db3=>{updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,..._0x1f3db3}});},_0x26b68d=_0x176b33=>{const _0x1cdd92=_0x2992d3;_0x372512({'imageTile':{..._0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x1cdd92(0x290)],..._0x176b33}});},_0x1f8c94=()=>{const _0x16f416=_0x2992d3;var _0x4dca9e;return(_0x4dca9e=_0x41b6e2[_0x16f416(0x419)])===null||_0x4dca9e===void 0x0?void 0x0:_0x4dca9e['click']();},_0x1add58=async _0x515300=>{const _0x7cbe7=_0x2992d3;var _0x4d7a70;const _0x40522a=(_0x4d7a70=_0x515300[_0x7cbe7(0x421)][_0x7cbe7(0x466)])===null||_0x4d7a70===void 0x0?void 0x0:_0x4d7a70[0x0];if(!_0x40522a)return;_0x515300['target'][_0x7cbe7(0x115)]='';const _0xc61177=await _0x554bd1[_0x7cbe7(0x607)](_0x40522a);if(_0xc61177==null)return;const {imageSourceType:_0x4a8099,source:_0x3e7d79,base64Cache:_0x5617b3}=_0xc61177,{image:_0x5963c5}=await(0x0,_univerjs_drawing[_0x7cbe7(0x321)])(_0x5617b3||'');_0x554bd1[_0x7cbe7(0x15d)](_0x3e7d79,_0x4a8099,_0x5963c5),updateShapeData(_0x273435,_0x25f2aa,_0x44b980,_0xd5cee1,{'oldShapeData':{'fill':_0x21a801?{..._0x21a801}:void 0x0}},{'fill':{..._0x21a801,'fillType':_univerjs_pro_engine_shape[_0x7cbe7(0x4bf)]['PictureFill'],'fillImageSource':_0x3e7d79,'fillImageSourceType':_0x4a8099}}),_0x4558a4[_0x7cbe7(0x4f4)]({'unitId':_0x25f2aa,'subUnitId':_0x44b980,'drawingId':_0xd5cee1},_0x5963c5);},_0x5801e5='univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200',_0xf22b96=_0x2992d3(0x597);return(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x1d5),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x5af),'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.source')}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x451),{'ref':_0x41b6e2,'type':_0x2992d3(0x5f3),'accept':'image/*','className':_0x2992d3(0x61f),'onChange':_0x1add58}),(0x0,react_jsx_runtime['jsxs'])(_0x2992d3(0x418),{'className':_0x2992d3(0x61e),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('button',{'type':_0x2992d3(0x320),'disabled':_0x216398,'className':_0x2992d3(0x565),'onClick':_0x1f8c94,'children':(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x1a2),{'children':[_0x52f548(_0x2992d3(0x193)),'\x20']})}),_0x2341c7&&(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x239),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('img',{'src':_0x21a801===null||_0x21a801===void 0x0?void 0x0:_0x21a801[_0x2992d3(0x5cd)],'alt':'','className':'univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover'})})]})]})]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x2af))}),(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x3b586d,'disabled':_0x216398,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x3d6da7=>_0x3d6da7+'%','parser':_0x4d73b5=>(_0x4d73b5===null||_0x4d73b5===void 0x0?void 0x0:_0x4d73b5[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0xa6cccb=>{const _0x24cd32=_0x2992d3,_0x115634=(0x64-Math[_0x24cd32(0x216)](0x0,Math[_0x24cd32(0x613)](0x64,_0xa6cccb!==null&&_0xa6cccb!==void 0x0?_0xa6cccb:0x0)))/0x64;_0x388cd8(_0x115634),_0x372512({'imageOpacity':_0x115634}),_0x249fc0[_0x24cd32(0x1b8)](_univerjs_core[_0x24cd32(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x434)],{'checked':_0x406692,'disabled':_0x216398,'onChange':_0x4d502a=>{const _0x24e186=_0x2992d3,_0x5f1c33=_0x4d502a?_univerjs_pro_engine_shape[_0x24e186(0x26c)][_0x24e186(0x16a)]:_univerjs_pro_engine_shape[_0x24e186(0x26c)]['Stretch'];_0xf6a2c3(_0x5f1c33),_0x372512({'imageFillMode':_0x5f1c33});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x2992d3(0x63d),'children':_0x52f548(_0x2992d3(0x4c1))})}),_0x406692&&(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0x2992d3(0x335),'children':[(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x27f))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design['InputNumber'],{'className':_0x2992d3(0x559),'value':_0x5bd4d4,'disabled':_0x216398,'step':0x1,'onChange':_0x726598=>{_0x26b68d({'offsetX':_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0}),_0x408539(_0x726598!==null&&_0x726598!==void 0x0?_0x726598:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548('sheets-shape.fill.picture.offsetY')}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x4a9037,'disabled':_0x216398,'step':0x1,'onChange':_0xe371de=>{_0x26b68d({'offsetY':_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0}),_0x19c78c(_0xe371de!==null&&_0xe371de!==void 0x0?_0xe371de:0x0);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x20c))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':_0x2992d3(0x2aa),'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':'univer-w-full','value':_0x5a066f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x53040c=>_0x53040c+'%','parser':_0x1bc976=>(_0x1bc976===null||_0x1bc976===void 0x0?void 0x0:_0x1bc976[_0x2992d3(0x4e8)]('%',''))||'','onChange':_0x276457=>{const _0x33364f=_0x2992d3,_0x3ff966=Math[_0x33364f(0x216)](0.01,(_0x276457!==null&&_0x276457!==void 0x0?_0x276457:0x64)/0x64);_0x5e57bf(_0x3ff966),_0x26b68d({'scaleX':_0x3ff966}),_0x249fc0[_0x33364f(0x1b8)](_univerjs_core[_0x33364f(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])('div',{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('span',{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x44d))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])('div',{'className':'univer-w-20','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x366)],{'className':_0x2992d3(0x559),'value':_0x22421f,'disabled':_0x216398,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x5820f0=>_0x5820f0+'%','parser':_0x1ad529=>(_0x1ad529===null||_0x1ad529===void 0x0?void 0x0:_0x1ad529['replace']('%',''))||'','onChange':_0x4974d8=>{const _0x4af265=_0x2992d3,_0xad87f0=Math['max'](0.01,(_0x4974d8!==null&&_0x4974d8!==void 0x0?_0x4974d8:0x64)/0x64);_0x43c9c0(_0xad87f0),_0x26b68d({'scaleY':_0xad87f0}),_0x249fc0[_0x4af265(0x1b8)](_univerjs_core[_0x4af265(0x202)],![]);},'onFocus':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],!![]),'onBlur':()=>_0x249fc0[_0x2992d3(0x1b8)](_univerjs_core[_0x2992d3(0x202)],![])})})]}),(0x0,react_jsx_runtime[_0x2992d3(0x24e)])(_0x2992d3(0x418),{'className':_0xf22b96,'children':[(0x0,react_jsx_runtime['jsx'])(_0x2992d3(0x1a2),{'className':_0x5801e5,'children':_0x52f548(_0x2992d3(0x377))}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design[_0x2992d3(0x2e2)],{'className':_0x2992d3(0x559),'value':_0x252963,'options':_0xfebb96,'disabled':_0x216398,'onChange':_0x557b70=>{_0x2eaae7(_0x557b70),_0x26b68d({'alignment':_0x557b70});}})})]})]}),(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_univerjs_design['Checkbox'],{'checked':_0x598662,'disabled':_0x216398,'onChange':_0x406835=>{_0x1b7b94(_0x406835),_0x372512({'imageRotateWithShape':_0x406835});},'children':(0x0,react_jsx_runtime[_0x2992d3(0x64f)])(_0x2992d3(0x1a2),{'className':'univer-text-sm','children':_0x52f548('sheets-shape.fill.picture.rotateWithShape')})})]});}function ShapeFillEditor(_0x48f8ae){const _0x12b2f0=_0x3e9a34;var _0x49a273,_0x16aa65,_0xa0171e;const _0x3cac4d=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x398)]),_0x2a7026=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core['ICommandService']),_0x214d84=(0x0,_univerjs_ui[_0x12b2f0(0x663)])(_univerjs_core[_0x12b2f0(0x409)]),{shapeData:_0x446095,isLineShape:_0x10a1e0,unitId:_0x44cf3d,subUnitId:_0x4395a5,shapeId:_0x5b9029,disableShapeOption:_0xaf80b4}=_0x48f8ae,[_0x4e0df0,_0x2ff266]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x49a273=_0x446095[_0x12b2f0(0x151)])===null||_0x49a273===void 0x0?void 0x0:_0x49a273['fillType'])||_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]),[_0x15837b,_0x8516e9]=(0x0,react[_0x12b2f0(0x5a1)])(((_0x16aa65=_0x446095['fill'])===null||_0x16aa65===void 0x0?void 0x0:_0x16aa65[_0x12b2f0(0x436)])||_univerjs_pro_engine_shape[_0x12b2f0(0x49a)][_0x12b2f0(0x151)]),[_0x1db016,_0x1bf5e1]=(0x0,react[_0x12b2f0(0x5a1)])(((_0xa0171e=_0x446095[_0x12b2f0(0x151)])===null||_0xa0171e===void 0x0?void 0x0:_0xa0171e[_0x12b2f0(0x3fd)])||0x1),[_0x548812,_0x507766]=(0x0,react[_0x12b2f0(0x5a1)])(![]);if(_0x10a1e0)return null;const _0x3731c2=0x64-_0x1db016*0x64;return(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x1ae),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_univerjs_design['RadioGroup'],{'value':_0x4e0df0,'disabled':_0xaf80b4,'onChange':_0x65db0f=>{const _0x49fb14=_0x12b2f0;var _0xe65ba1;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'fillType':(_0xe65ba1=_0x446095[_0x49fb14(0x151)])===null||_0xe65ba1===void 0x0?void 0x0:_0xe65ba1[_0x49fb14(0x49b)]}}},{'fill':{'fillType':_0x65db0f}}),_0x2ff266(_0x65db0f);},'direction':_0x12b2f0(0x561),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0x474)],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x36d))})}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['SolidFill'],'children':(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x12b2f0(0x63d),'children':_0x3cac4d['t'](_0x12b2f0(0x56a))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design['Radio'],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0xe7)],'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':'univer-text-sm','children':_0x3cac4d['t'](_0x12b2f0(0x543))})}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x1c7)],{'value':_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill'],'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':'univer-text-sm','children':_0x3cac4d['t']('sheets-shape.fill.pictureFill')})})]}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)][_0x12b2f0(0x173)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x4d3),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])('div',{'className':_0x12b2f0(0x433),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('span',{'className':_0x12b2f0(0x1e7),'children':_0x3cac4d['t'](_0x12b2f0(0x55e))}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design['Dropdown'],{'disabled':_0xaf80b4,'overlay':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])('div',{'className':'univer-rounded-lg\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x3df)],{'value':_0x15837b,'onChange':_0x33e7cb=>{const _0x245262=_0x12b2f0;var _0xf17594;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{'color':(_0xf17594=_0x446095[_0x245262(0x151)])===null||_0xf17594===void 0x0?void 0x0:_0xf17594[_0x245262(0x436)]}}},{'fill':{'color':_0x33e7cb}}),_0x8516e9(_0x33e7cb),_0x507766(![]);}})}),'open':_0x548812,'onOpenChange':_0x507766,'children':(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0x12b2f0(0x392),'children':[(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons['PaintBucketDoubleIcon'],{'className':_0x12b2f0(0x657),'extend':{'colorChannel1':_0x15837b}}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_icons[_0x12b2f0(0x580)],{'className':(0x0,_univerjs_design['clsx'])(_0x12b2f0(0x2d5),{'univer-rotate-180':_0x548812})})]})})]}),(0x0,react_jsx_runtime[_0x12b2f0(0x24e)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x597),'children':[(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x1a2),{'className':_0x12b2f0(0x3e8),'children':_0x3cac4d['t']('sheets-shape.fill.transparency')}),(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x475),'children':(0x0,react_jsx_runtime['jsx'])(_0x12b2f0(0x418),{'className':_0x12b2f0(0x2aa),'children':(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(_univerjs_design[_0x12b2f0(0x366)],{'className':_0x12b2f0(0x559),'value':_0x3731c2,'disabled':_0xaf80b4,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x397199=>_0x397199+'%','parser':_0xa5df5=>(_0xa5df5===null||_0xa5df5===void 0x0?void 0x0:_0xa5df5[_0x12b2f0(0x4e8)]('%',''))||'','onChange':_0x60f159=>{const _0x5c699f=_0x12b2f0,_0x3e7a54=(0x64-Math[_0x5c699f(0x216)](0x0,Math[_0x5c699f(0x613)](0x64,_0x60f159!==null&&_0x60f159!==void 0x0?_0x60f159:0x0)))/0x64;_0x1bf5e1(_0x3e7a54),updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095['fill'],'fillType':_0x4e0df0}}},{'fill':{..._0x446095[_0x5c699f(0x151)],'fillType':_0x4e0df0,'opacity':_0x3e7a54}}),_0x214d84['setContextValue'](_univerjs_core[_0x5c699f(0x202)],![]);},'onFocus':()=>_0x214d84['setContextValue'](_univerjs_core[_0x12b2f0(0x202)],!![]),'onBlur':()=>{const _0x4e7fcf=_0x12b2f0;_0x214d84[_0x4e7fcf(0x1b8)](_univerjs_core[_0x4e7fcf(0x202)],![]);}})})})]})]}),_0x4e0df0===_univerjs_pro_engine_shape['ShapeFillEnum'][_0x12b2f0(0xe7)]&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(GradientFillEditor,{'shapeData':_0x446095,'disableShapeOption':_0xaf80b4,'onUpdate':_0x31d16e=>{const _0x3db8e6=_0x12b2f0;updateShapeData(_0x2a7026,_0x44cf3d,_0x4395a5,_0x5b9029,{'oldShapeData':{'fill':{..._0x446095[_0x3db8e6(0x151)]}}},{'fill':{..._0x446095[_0x3db8e6(0x151)],..._0x31d16e}});}}),_0x4e0df0===_univerjs_pro_engine_shape[_0x12b2f0(0x4bf)]['PictureFill']&&(0x0,react_jsx_runtime[_0x12b2f0(0x64f)])(ShapeImageFillEditor,{'unitId':_0x44cf3d,'subUnitId':_0x4395a5,'shapeId':_0x5b9029,'shapeData':_0x446095,'disableShapeOption':_0xaf80b4})]});}function shapeGradientTypeToPickerType(_0x5135fd){const _0x40e2da=_0x3e9a34;switch(_0x5135fd){case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x5a8)]:return _0x40e2da(0x22d);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x1ca)]:return _0x40e2da(0x452);case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x2cd)]:return'angular';case _univerjs_pro_engine_shape[_0x40e2da(0x2ac)][_0x40e2da(0x20d)]:return _0x40e2da(0x2a6);default:return _0x40e2da(0x22d);}}function pickerTypeToShapeGradientType(_0x3a3f28){const _0x19ee92=_0x3e9a34;switch(_0x3a3f28){case'linear':return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];case _0x19ee92(0x452):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)]['Radial'];case _0x19ee92(0x3cf):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x2cd)];case _0x19ee92(0x2a6):return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x20d)];default:return _univerjs_pro_engine_shape[_0x19ee92(0x2ac)][_0x19ee92(0x5a8)];}}function _0x501b(){const _0x3735fd=['FlowchartDecision','ShapeActionButtonHomeIcon','ancestorTransform','1140535ypHKRN','FlowchartOffPageConnector','isCurvedConnectorShape','Sun','ShapeMathNotEqualIcon','_registerDrawingMoveHandler','getTransformer','translate','_getZoomRatio','InsertShapeCommand','getCurrentScrollState','map','getShapeModel','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','Documents','find','IrregularSeal1','DependentOn','_isStartConnectorPoint','_shapeTextEditingService','shape.type.flow-chart-connector','ActionButtonInformation','_handleConnectedEndpointMove','Star7','IUniverInstanceService','_updateShapeAdjustControls','Star16','shape.type.block-arc','sheets-shape.fill.gradientFill','undefined','ShapeMathEqualIcon','removeLinePoints','PieWedge','DocumentDataModel','shape.type.star10','align.right','KeyCode','shape.type.straight-connector2','clear','unsubscribe','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','shape.type.wave','lineJoinType','Star8','image-panel.crop.shape','update$','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','restore','_getConnectPointInfo','shape.type.flow-chart-predefined-process','univer-w-full','shape.type.line-inv','worldPoint','ShapeBentConnector3Arrow1Icon','_subUnitId','sheets-shape.fill.color','shape.type.left-right-arrow','ShapeBorderCallout3Icon','vertical','subscribe','FlowchartOnlineStorage','transformToDrawingPosition','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','updateContext','sheets-shape.line.endArrowType','ctr','shape.type.math-multiply','sheets-shape.fill.solidFill','_drawingRenderService','isHitLine','align.middle','getAdjustNames','WedgeRoundRectCallout','shape.type.uturn-arrow','classType','ConnectorCoordinateTransform','BOTTOM','redo','onPointerUp$','visible','ShapeGear6Icon','shape.type.plaque','shape.type.callout3','ShapeQuadArrowIcon','LEFT','LineInv','setAdjustValueByName','_resetState','ShapeWedgeRoundRectCalloutIcon','MoreDownIcon','updateConnectionDetection','Star12','clip-adj-','Tools','highlighted','FoldedCorner','ShapeRound2DiagRectIcon','shape.type.curved-connector3-arrow1','updateDocumentStyle','START','UNIVER_SHEET','getBatchAddOp','getFreeze','disposeWithMe','_transformCalculateSrcRect','ShapeLeftArrowIcon','executeCommand','capType','#ffffff','sheets-shape.openPanel','ShapeFlowChartOffpageConnectorIcon','MathNotEqual','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','InsertSheetsShapeMutation','univer-rounded-lg\x20univer-p-3','ShapeFlowChartProcessIcon','offsetX','Shape','shape.type.gear9','mainComponent','Miter','DrawingImageClipService','useState','registerFeatureMenuOffset','_currentUniverService','shape.type.ribbon2','shape.type.cube','Snip2SameRect','name','Linear','Bevel','close','SwooshArrow','has','_sheetDrawingService','_activeImageId','univer-flex\x20univer-flex-col\x20univer-gap-2','_registerGroupFeaturePasteHook','ShapeStraightConnector2Icon','ShapeStar4Icon','CROSSHAIR','blur','RoundRect','ShapeParallelogramIcon','sheet.operation.close-sheet-shape-format-panel','_getDrawingRect','ShapeEllipseRibbonIcon','sheets-shape.line.sketchType.title','_sheetCanvasPopManagerService','getDrawingData','_executeConnectedRouteConnectionCommand','gdRefX','sheets-shape.line.arrowSize.medium','flowchart','ShapeBracketPairIcon','CurvedUpArrow','_findNearestConnectionSite','PlaqueTabs','Round','PictureFill','next','LongDash','SHEET_VIEWPORT_KEY','shape.type.rect-textbox-horizontal','_renderManagerService','Pentagon','fillImageSource','shape.type.bent-arrow','shape.type.flow-chart-decision','verticalAlign','touchDependencies','ShapeFrameIcon','BlockArc','_localeService','IDrawingManagerService','subUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Circle','BentArrow','imageRotateWithShape','documentStyle','ISidebarService','ShapeMoonIcon','lineType','SetShapeDrawingDataCommand','shape.type.corner','_univerInstanceService','createInternalEditorID','merge','worksheet','WrapStrategy','CommandType','_updateAdjustControlPositions','_targetShapeId','error','drawing.operation.set-drawing-active','_handleBasicShapeUpdateConnectorLineShape','drawingType','HorizontalAlign','localeService','Decagon','setShapeData','_baseShapeWidth','sheets-shape.line.arrowType.arrow','file','_componentManager','undo','getBasicShapeRotateBound','FlowchartPunchedCard','adjName','getAdjustValueByName','RightBracket','IrregularSeal2','_baseShapeHeight','offset','setShapeProps','getRealBound','transform','useObservable','shape.type.snip-round-rect','deepClone','shape.type.action-button-beginning','rotation','ShapeDoubleWaveIcon','saveImage','_drawingType','Corner','getCurrentSkeleton','ShapeUturnArrowIcon','getCanvasElement','SetShapeTextFontSizeIncreaseCommand','ShapeFlowChartSortIcon','ShapeRightArrowCalloutIcon','shape.type.action-button-home','isArray','shape.type.can','min','call','ShapeFlowChartCollateIcon','ShapeRightBracketIcon','FlowchartMagneticDrum','getAncestorScale','getDrawingByParam','shape.type.flow-chart-preparation','NoSmoking','index','ShapeBevelIcon','group\x20univer-relative\x20univer-inline-block','univer-hidden','shape.type.ellipse','FlowchartConnector','Hexagon','syncExecuteCommand','Callout3','shape.type.curved-right-arrow','shape.type.action-button-return','ShapeLineIcon','AlignBottomIcon','RightTriangle','starAndBanner','registerCommand','PaintBucketDoubleIcon','angle','shape.type.home-plate','_drawShapeText','OPERATION','ShapeBorderCallout2Icon','clip','_findShapeAtPoint','getStartConnectInfo','ShapeFlowChartPunchedCardIcon','_cxtHandlerPointerMove','symbol','toolbar.horizontalAlignMode.main','_currentConnectionTarget','shape-adjust-point-','clearAdjustControls','defineProperty','univer-text-sm','iterator','sheets-shape.shapeStyle','add$','Line','discreteRangeToRange','clipByShape','RibbonInsertGroup','shape.type.curved-down-arrow','scaleX','ShapeBentConnector3Icon','shape.type.bent-up-arrow','getAdjustInfoByName','SetDrawingApplyMutation','ShapeSnipRoundRectIcon','gradientType','ShapeDecagonIcon','getSkeleton','jsx','subscribeContextValue$','shape.type.rt-triangle','generateRandomId','_sheetShapeAdjustController','isConnectorShape','ShapeActionButtonBlankIcon','horizontalAlign','univer-text-xl\x20univer-text-gray-500','ShapeFlowChartOnlineStorageIcon','getActualSize','RightArrow','_closeShapeEditPanel','_registerComponent','_clearShapeAdjustControls','Curved','isDrawingObject','getDrawingPoints','_isOpenedShapeEditPanel','isNaN','useDependency','updateLinePoints','CloudCallout','_initCommands','align.center','ShapeLeftRightArrowCalloutIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','invert','shape.type.round2-same-rect','basicShape','ShapeWedgeRectCalloutIcon','FlowchartExtract','dataModel','left','getTransformerByCreate','ShapeNotchedRightArrowIcon','equationShape','LAYOUT','ShapeLeftBracketIcon','GradientFill','shape.type.border-callout3','ShapeAccentCallout2Icon','ShapeHexagonIcon','ShapeDownArrowIcon','shape.type.corner-tabs','Plugin','params','getEndConnectInfo','ShapeStar7Icon','univer-text-gray-500','HorizontalScroll','sheet.command.set-shape-text-font-size-increase','SquareTabs','ShapeActionButtonInformationIcon','shape.type.ellipse-ribbon','_setTransForm','pushUndoRedo','ShapeSquareTabsIcon','localToWorld','ShapeChartStarIcon','URL','_sheetsShapeService','Button','mergeMenu','rectangle','ActionButtonEnd','ShapeStar32Icon','ShapeQuadArrowCalloutIcon','SmileyFace','AccentCallout1','shape.type.star4','render','calculate','shape-text-editor','ShapeLeftArrowCalloutIcon','AlignOperationCommand','SheetsSelectionsService','Transform','Medium','Large','Heart','DiagStripe','setTimeout','shape.type.accent-border-callout3','ShapeUpArrowCalloutIcon','value','_drawSimpleText','ShapeAccentBorderCallout1Icon','drawWith','Gear6','rect','shape.type.quad-arrow','LeftRightCircularArrow','ShapeLeftUpArrowIcon','stopPropagation','useEffect','cxnIndex','DiamondArrow','onDblclick$','NoLine','ShapeTeardropIcon','BracePair','ShapeTypeEnum','sheet.shape.edit.panel','Disposable','ShapeSketchTypeEnum','ActionButtonHome','multiply','gdRefY','_baseDrawingRect','connector-handler-','sheets-shape.rotateLeft90','FOCUSING_COMMON_DRAWINGS','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','adjustValues','_moveConnectorWithShape','ShapeBentArrowIcon','FlowchartSummingJunction','UpArrowCallout','8127691zzHaLu','ActionButtonBlank','ShapeSnip2DiagRectIcon','Callout2','getConnectionSiteList','setCanUseShapeClip','MathDivide','RemoveSheetsShapeMutation','Funnel','DRAWING_IMAGE','sheet.command.menu-insert-shape','type','ShapeCornerIcon','shape.type.math-divide','endArrow','getMatrix','shape.type.pentagon','#FFFFFF','src','align.top','sqrt','changeStart$','Star32','shape.type.star16','_initSelection','IConfigService','fill','ShapeAccentCallout3Icon','getShapeDataById','ShapeOctagonIcon','shape.type.flow-chart-collate','top','ShapeLeftCircularArrowIcon','sheets-shape.fill.picture.align.t','_activeAdjustInfo','shape.type.action-button-movie','Flat','BentUpArrow','addImageSourceCache','ShapeIrregularSeal2Icon','ShapeMathDivideIcon','addClipboardHook','offsetY','_clearConnectionSites','Rect','ShapeCurvedLeftArrowIcon','useAbsolutePosition','LeftCircularArrow','shape.type.striped-right-arrow','shape.type.pie','useEditor','Tile','PREDEFINED_HOOK_NAME','ShapeHomePlateIcon','sheets-shape.fill.title','shape.type.flow-chart-delay','FlowchartDocument','stops','getDrawingShapeKeyByDrawingSearch','sheets-shape.toggleTextVertical','SolidFill','RoundDot','_highlightedSiteIndex','VerticalScroll','7jhvToo','_initEvents','shape.type.flow-chart-terminator','getBentTypeFromPoints','ShapeDodecagonIcon','shape.type.border-callout2','getRenderById','_contextService','sheets-shape.toggleFlipV','entries','ThemeService','SolidLine','width','_sidebarService','sheets-shape.line.beginArrowSize','editingParams$','shape.type.curved-up-arrow','focus$','ToggleSheetsShapeFlipCommand','clsx','addObject','shape.type.flow-chart-extract','collapsed','ShapeRightArrowIcon','style','shape.type.left-circular-arrow','_createControls','_lastEditingShapeKey','sheets-shape.fill.picture.insert','shape-text-editor-position-wrapper','primary.600','_shapeId','Snip1Rect','shape.type.double-wave','dispose','_activeShapeModel','updateDocumentRenderConfig','isFinite','ActionButtonForwardNext','sheets-shape.hidePanel','UniverSheetsShapeUIPlugin','getShapeTypeById','CurvedLeftArrow','span','save','sheets-shape.formatShape','getInverseCoord','DownArrowCallout','_executeResizeCommand','section','_createShapeAdjustControls','worldPoints','shape.type.line','isHorizontal','shape.type.snip2-diag-rect','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeTrapezoidIcon','Parallelogram','ShapeRoundRectIcon','sheet.command.set-shape-text-font-size','SheetDrawingAnchor','keys','shape.type.chord','scaleY','shape.type.chart-x','setContextValue','BentConnector3','sheets-shape.line.joinType.round','ShapeUpDownArrowCalloutIcon','univer-pt-2','DRAWING_OBJECT_LAYER_INDEX','_getConnectionSiteAngle','shape.type.star7','LightningBolt','shape.type.circular-arrow','create','shape.type.callout1','ShapeActionButtonBackPreviousIcon','isStartConnectorPoint','point','Radio','shape.type.swoosh-arrow','ShapeBentConnector3Arrow2Icon','Radial','cos','paragraphStyle','_loadShapePictureFill','startX','with','shape.type.curved-left-arrow','_registerImageShapeClipDelegate','startOffset','ChartPlus','_isConnecting','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','translateWithPrecision','shape.type.left-arrow','setEditing','sketchType','ChartX','shape.type.math-plus','lineShapeId','sheets-shape.fill.picture.align.b','Vector2','shape.type.notched-right-arrow','BreakLineCommand','activeSheet$','pipe','renderDrawingShape','UniverSheetsDrawingUIPlugin','GradientColorPicker','FlowchartOr','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','computeStraightConnectorLayout','_activeShapeInfo','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','_initPermission','ShapeFlowChartPredefinedProcessIcon','_sheetDrawingShapeRenderController','_init','ShapeChevronIcon','prototype','shape.type.square-tabs','getColorFromTheme','shape.type.flow-chart-offline-storage','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','_handleConnectedEndpointPointerUp','_shapeService','isHit','string','ShapeRound1RectIcon','ShapeAccentCallout1Icon','sheets-shape.fill.picture.align.br','ShapeSnip2SameRectIcon','SetSheetsShapeRotateCommand','Plaque','_generateCutPasteMutations','Dash','ShapeArrowSizeEnum','FOCUSING_PANEL_EDITOR','setCursor','sheets-shape.line.beginArrowType','ShapeRightBraceIcon','_initialize','ShapeHalfFrameIcon','VIEW_MAIN','_generatePasteMutations','getConnectorLinePoints','univer-size-full','sheets-shape.fill.picture.scaleX','Diamond','MenuItemType','_props','DEFAULT_PASTE','rowStartY','Teardrop','cxnPointFill','from','Dodecagon','max','_rerouteConnectorLine','EMPTY','SheetPermissionCheckController','LongDashDotDot','ShapeArcIcon','getObjectIncludeInGroup','setDocumentData','ShapePlaqueIcon','indexOf','shape.type.horizontal-scroll','_clearControls','ShapeChartXIcon','onPointerMove$','DocumentSkeleton','getBatchRemoveOp','pluginName','transformByState','abs','UNIVER_DOC','ShapeLeftRightRibbonIcon','shape.type.left-right-up-arrow','blockArrow','linear','sheets-shape.line.joinType.miter','Accordion','ShapeFlowChartMagneticDrumIcon','shape.type.star32','ShapeBorderCallout1Icon','UUID','getZoomRatio','BorderCallout3','function','setHighlighted','horizontal','\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','worldRect','_getImagePrstGeom','connection-site-','ShapeFolderCornerIcon','shape.type.flow-chart-document','computeConnectorResizeLayout','ShapeCurvedConnector3Arrow1Icon','_loadAndSetImage','RightJustifyingIcon','SnipRoundRect','srcRect','_draggingConnectorId','ShapeRibbonIcon','Octagon','shape.type.rect','getSheetCommandTarget','Chevron','ShapeLeftRightArrowIcon','ShapeFlowChartManualOperationIcon','sheet.command.set-shape-text-font-size-decrease','jsxs','shapeType','IUndoRedoService','shape.type.round2-diag-rect','floor','9GVKqeU','__esModule','_baseHeight','#000000','shape.type.heart','isInGroup','RemoveSheetDrawingCommand','shape.type.flow-chart-offpage-connector','isLineShape','shape.type.flow-chart-multidocument','onStarting','shape.type.bent-connector3-arrow1','blockExecuteWithoutPermission','onerror','BorderCallout2','_copyInfo','shape.type.accent-border-callout1','_connectionSiteObjects','parseFloat','_executeConnectionCommand','align.bottom','disableShapeOption','DoubleWave','UpDownArrowCallout','toolbar.fillColor.main','ImageFillModeEnum','resetCursor','sheets-shape.toggleFlipH','shape.type.flow-chart-or','shape.type.chart-star','ActionButtonDocument','_imageIoService','routeConnectorLineShape','ShapeStar16Icon','ISheetDrawingService','relation','ShapeRound2SameRectIcon','data','\x20px','rotate(','WedgeEllipseCallout','RichTextEditingMutation','sheets-shape.line.dashType.longDashDotDot','ShapeTextEditorContainer','sheets-shape.fill.picture.offsetX','ENTER','shape.type.lightning-bolt','shape.type.bent-connector3-arrow2','FlowchartManualInput','onPointerDown$','sheets-shape.line.dashType.roundDot','POSITIVE_INFINITY','AccentCallout2','UniverSheetsShapePlugin','forEach','ShapeSmileyFaceIcon','hasOwnProperty','FlowchartManualOperation','toolbar.resetColor','toDisposable','shape.type.folder-corner','imageTile','ShapeCurvedRightArrowIcon','useLeftAndRightArrow','onTransformChange$','ShapeMathPlusIcon','_drawRichText','normal','ShapeUpDownArrowIcon','DrawingApplyType','getSheetBySheetId','shape.type.action-button-document','ShapeFlowChartMagneticTapeIcon','CurvedConnector3','#bcbcbc','toolbar.verticalAlignMode.main','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','_groupCopyPasteController','shape.type.flow-chart-alternate-process','ShapeVerticalScrollIcon','ShapeFlowChartDocumentIcon','scene','StraightConnector1','diamond','stroke','ShapeFlowChartExtractIcon','useKeyboardEvent','univer-w-20','TOP','ShapeGradientTypeEnum','ShapeNonIsoscelesTrapezoidIcon','end','sheets-shape.fill.transparency','ChartStar','ShapeFlowChartConnectorIcon','SHEET_SHAPE_UI_PLUGIN','shape.type.arc','ShapeRtTriangleIcon','LeftArrowCallout','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeBlockArcIcon','Wave','4QtrlXM','_sheetClipboardService','ShapeCornerTabsIcon','Ribbon','getDrawingOrder','Star4','FlowchartCollate','IEditorService','ShapeCallout3Icon','ShapeStar6Icon','ShapeEllipseRibbon2Icon','sheets-shape.line.arrowSize.large','RibbonStartGroup','ShapeFlowChartPreparationIcon','onRendered','UpdateConnectorRelationCommand','sheets-shape-ui','FlowchartTerminator','_sheetSkeletonService','ShapeFlowChartSummingJunctionIcon','Angular','attachRangeWithCoord','ShapeStripedRightArrowIcon','getConnectionRelation','_getImageDrawingInfo','toStringTag','SetInlineFormatTextBackgroundColorCommand','CopySheetCommand','univer-text-gray-600\x20univer-transition-transform','getSkeletonParam','33DNpFEV','_openShapeEditPanel','get','LeftRightArrow','shape.type.parallelogram','CENTER','push','ShapeArrowTypeEnum','shape-text-','_initEditingParams','renderConfig','Select','ShapeLineTypeEnum','_activeShapeId','_registerFocusChangeHandler','_handleConnectorPointerUp','COLOR_PICKER_COMPONENT','icon','ShapeFlowChartAlternateProcessIcon','WedgeRectCallout','ShapeFlowChartOfflineStorageIcon','useRef','_hasReset','marginTop','_getShapeAdjustInfosById','_getShapeInfo','Observable','SELECTOR','DocumentViewModel','univer-w-28','flipX','shape.type.no-smoking','_updateSrcRectByTransform','ShapeLeftRightUpArrowIcon','Frame','WRAP','beforeCommandExecuted','_registerDrawingFocusChangeHandler','ShapeIrregularSeal1Icon','CUT','FlowchartMerge','VERTICAL_ROTATE_ANGLE','_reset','resize','ShapeDonutIcon','changing$','SHAPE','setShouldShowAdjust','_adjName','sheets-shape.fill.picture.align.tl','makeDirty','sheetTransform','doc','ShapeSwooshArrowIcon','shape.type.flow-chart-manual-input','add','getState','_adjHandlerPointerMove','shape.type.sun','ShapeFlowChartDelayIcon','stringify','LeftJustifyingIcon','_addShapeAdjustControl','getParent','INSERT','ShapeFlowChartPunchedTapeIcon','None','setPrstGeomAdjValues','shape.type.round1-rect','remove$','prstGeom','_initSheetChange','VIEW_MAIN_TOP','button','getImageSize','CURSOR_TYPE','ShapeDocAlignCommand','_unitId','cxnPointRadius','ShapePieWedgeIcon','shape.type.cloud-callout','ShapeLineDashEnum','parse','OpenArrow','ShapeEllipseIcon','shape.type.right-arrow-callout','body','ShapePieIcon','clearTimeout','sheet.command.update-shape-data','_updateTransform','complete','some','ShapeCanIcon','\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','useMemo','34042jBhqhi','ShapePentagonIcon','shape.type.bevel','FlowChartOfflineStorage','sheets-shape.line.capType.square','_draw','targetShapeId','ActionButtonBeginning','getViewportByCell','shape.type.accent-callout1','_initMenu','applyPoint','WorksheetEditPermission','DrawingRenderService','subscribeEvent','_sheetInterceptorService','DashDot','focusDrawing','shape.type.flow-chart-summing-junction','FlowchartMagneticTape','getOwnPropertyDescriptor','insertGroupObject','shape.type.irregular-seal2','COPY_TYPE','_getSceneAndTransformerByDrawingSearch','getPrototypeOf','BUTTON_SELECTOR','switchMap','_activeTargetShapeId','REMOVE','UpdateShapeDataCommand','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','ShapeDownArrowCalloutIcon','COMMAND','sheets-shape.line.sketchType.freehand','default','_isDrawingShapePointDown','_isHighlighted','flipY','IRenderManagerService','shape.type.left-arrow-callout','ShapeChordIcon','shape.type.funnel','getDrawingEditable','_commandService','getCurrentRangeDisable$','objects','InputNumber','open','setOnSavingEditorData','shape.type.quad-arrow-callout','shape.type.flow-chart-punched-card','WorkbookEditablePermission','shape.type.flow-chart-magnetic-drum','sheets-shape.fill.noFill','EllipseRibbon','shape.type.left-up-arrow','object','setSrcRect','_addShapeConnectorHandlerObjects','SHAPE_TEXT','SetShapeTextVerticalAlignCommand','_addShapeConnectorHandlerObject','ShapeRectTextboxVerticalIcon','sheets-shape.fill.picture.alignment','ShapeCurvedUpArrowIcon','_createCopyInfoByRange','computeConnectorRouteLayout','height','_drawingAddListener','ShapeDiagStripeIcon','shape.type.callout2','_connectorObjects','sheets-shape.line.dashType.longDashDot','FlowchartDisplay','21464ijdsHc','shape.type.bent-connector3','UpArrow','_insertShapes','getUnitId','ActionButtonReturn','_registerShapeMenu','oKey','_attachAdjustEvent','ShapeBentUpArrowIcon','shape.type.flow-chart-sort','sheetViewStartColumn','ImageSourceTypeEnum','ShapeFunnelIcon','shape.type.wedge-ellipse-callout','setZoomRatio','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','ShapeCallout1Icon','ShapeStar24Icon','FlowchartPredefinedProcess','sheets-shape.line.arrowType.ovalArrow','ShapeCloudCalloutIcon','LocaleService','startArrow','BehaviorSubject','getCurrentLastSelection','updateDocumentDataMargin','UPDATE','Small','setFillImage','MIDDLE','SheetsShapeService','HalfFrame','VerticalCenterIcon','constructor','Module','_handleFreeEndpointMove','sheets-shape.line.capType.flat','getBatchUpdateOp','shape.type.brace-pair','shape.type.snip1-rect','shape.type.math-minus','shape.type.teardrop','changeShapeType','_imageShapeClipController','shape.type.border-callout1','shape.type.diamond','IMenuManagerService','_baseLeft','shape.type.right-bracket','FlowchartDelay','onCommandExecuted','adjHandleSize','ActionButtonHelp','bind','_getShapeAdjustPointListById','LongDashDot','ShapeActionButtonHelpIcon','1822080IKCcXs','refreshTransform','_isShouldShowDrawingShapeAdjust','shape.type.up-arrow','shape.type.action-button-end','shape.type.rect-textbox-vertical','ShapeFlowChartMagneticDiskIcon','getObject','prstGeomAdjValues','disableObjectsEvent','ang','getCurrentTypeOfUnit$','shape.type.smiley-face','custom','shape.type.action-button-forward-next','FlowchartAlternateProcess','_activeShapeAdjustPointList','shape.type.star24','IImageIoService','angular','Round1Rect','slice','ISheetClipboardService','ShapeCallout2Icon','ShapeActionButtonForwardNextIcon','shape-text-editor-content','sheets-shape.fill.picture.align.r','Callout1','ShapeHeartIcon','warn','sheets-shape.line.arrowType.none','ShapePlusIcon','SheetCanvasPopManagerService','ShapeGear9Icon','shape.type.snip2-same-rect','ColorPicker','imageFillMode','DownArrow','shape.type.plaque-tabs','ActionButtonBackPrevious','none','ShapeFlowChartMultidocumentIcon','UpDownArrow','clone','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ShapeFlowChartTerminatorIcon','AccentBorderCallout3','ShapeChartPlusIcon','1402068pjmLqR','ShapeWedgeEllipseCalloutIcon','SheetsDrawingGroupCopyPasteController','FlowchartMagneticDisk','gdRefR','_cxnIndex','shape.type.straight-connector1','sheets-shape.line.joinType.bevel','dashType','editorHeight','ShapeActionButtonMovieIcon','ICommandService','composeMatrix','getDrawingVisible','_sidebarDisposable','ShapeStar12Icon','DRAWING_SHAPE','opacity','toPrimitive','pick','shape.type.gear6','FORMAT','shapeData','Path','MathMinus','register','SetShapeTextFontSizeDecreaseCommand','domX','Square','IContextService','setSelectionRanges','ShapeUpArrowIcon','ShapeAccentBorderCallout2Icon','_executeConnectedRouteResizeCommand','getDrawingSearch','ShapePlaqueTabsIcon','sheets-shape.line.width','ShapeAccentBorderCallout3Icon','SheetSkeletonManagerService','_injector','shape.type.math-not-equal','MEDIA','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','registerClipDelegate','div','current','_registerOperations','ShapeActionButtonDocumentIcon','Image','adjHandleStroke','sheets-shape.shapePosition','VIEW_MAIN_LEFT','domY','target','Cube','Ribbon2','ShapeLeftBraceIcon','imageOpacity','QuadArrow','ShapeMathMultiplyIcon','shape.type.down-arrow-callout','ShapeStar10Icon','getViewport','ShapeActionButtonBeginningIcon','StripedRightArrow','getValue','displayName','shape.type.wedge-round-rect-callout','getDocumentData','startConnectionDetection','shape.type.moon','univer-flex\x20univer-items-center\x20univer-justify-between','Checkbox','FlowchartMultiDocument','color','onload','univer-box-border\x20univer-px-4\x20univer-text-sm','startWith','SquareDot','CurvedRightArrow','Round2SameRect','shape.type.non-isosceles-trapezoid','clearAdjustValue','size','length','_shapeUpdateListener','_currentScene','ShapeCubeIcon','univer-text-primary-600','calcAdjValue','getShapeTextRect','isEditing','preValue','sheets-shape.line.sketchType.handDrawn','Trapezoid','CircularArrow','_baseShapeTop','sheets-shape.fill.picture.scaleY','Pie','univer-mb-2','shape.type.flow-chart-punched-tape','input','radial','BUTTON','LeftBracket','wrapStrategy','shape.type.star8','Star6','registerRenderModule','getShapeTextData','draw','SheetInterceptorService','shape.type.up-down-arrow','strokeWidth','shape.type.irregular-seal1','ShapeRectTextboxHorizontalIcon','getBasicShapeRelation','_getOrCreateShapeModel','shape.type.left-brace','ShapeDiamondIcon','ShapeActionButtonEndIcon','sheets-shape.line.dashType.dash','files','getMenuHiddenObservable','UpdateLineShapeResizeCommand','_urlImageService','shape.type.curved-connector3-arrow2','shape.type.plus','sheets-shape.line.capType.title','DrawingCommonPanel','getUnit','sheets-shape.line.title','getShapeData','_baseTop','shape.type.curved-connector3','IURLImageService','NoFill','univer-flex\x20univer-items-center\x20univer-gap-3','shape.type.flow-chart-internal-storage','ShapeCurvedDownArrowIcon','getShapeType','sin','shape.type.star12','refreshAdjustControls','round','sheets-shape.line.dashType.title','ShapeFlowChartInputOutputIcon','ShapeStar5Icon','SheetScrollManagerService','gradientStops','RibbonPosition','shape.type.flow-chart-input-output','sheetViewStartRow','shape.group.','vertexAngle','HandDrawn','getConnectionInfo','memo','VerticalAlign','ShapeLightningBoltIcon','other','ShapeSnip1RectIcon','_clipService','alignment','FlowchartPunchedTape','_baseWidth','_sheetPermissionCheckController','RemoveSheetCommand','AlignTopIcon','ShapeLineCapEnum','Ellipse','BorderCallout1','startY','ShapeStraightConnector1Icon','ShapeDefaultConfig','fillType','_cxtHandlerPointerUp','DRAWING_DOM','FlowChartInputOutput','ShapeActionButtonReturnIcon','shape.type.diag-stripe','_isImagePointerDown','GROUP','shape.type.donut','shape.type.pie-wedge','ShapeLeftRightCircularArrowIcon','getFocusDrawings','_baseShapeLeft','unitId','ShapeStar8Icon','viewportScrollX','Arrow','shapeId','sheets-shape.line.capType.round','_showConnectionSites','_initCopyPaste','isHighlighted','DocSkeletonManagerService','shape.type.cloud','ShapeFlowChartOrIcon','sheets-shape.line.dashType.dashDot','adjHandleFill','Inject','ShapeFlowChartManualInputIcon','values','colStartX','Solid','ShapeRibbon2Icon','_shapes','ShapeActionButtonSoundIcon','_editingParams$','ShapeFillEnum','changeEnd$','sheets-shape.fill.picture.tileAsTexture','Moon','ShapeLineInvIcon','ShapeCurvedConnector3Icon','drawingId','shape.type.heptagon','start','ShapeCurvedConnector3Arrow2Icon','Triangle','isRenderLinePointsMode','_sheetBasicShapeConnectionPointController','shape.type.vertical-scroll','UniverInstanceType','align.left','_updateImageAdjValues','_drawingManagerService','ShapeWaveIcon','ShapeFlowChartDecisionIcon','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','_handleFreeEndpointPointerUp','ShapeCircularArrowIcon','decorate','beginPath','shape.type.flow-chart-display','ComponentManager','shape.type.math-equal','shape.type.right-arrow','shape.type.left-right-ribbon','ShapeFlowChartDisplayIcon','gdRefAng','ShapeModel','MathPlus','asObservable','sheets-shape.insertShape','registerFeaturePasteHook','shapeModel','sheet.command.set-shape-text-horizontal-align','ShapeHeptagonIcon','ShapeIcon','replace','_activeAdjustPointList','copyType','enumerable','_focusedDrawings','Star24','ShapeFlowChartInternalStorageIcon','ShapeCloudIcon','Dropdown','@univerjs-pro/sheets-shape-ui','HomePlate','AccentBorderCallout2','updateShapeFillImage','ShapeLineJoinEnum','_adjHandlerPointerUp','ShapeRectIcon','RENDER_CLASS_TYPE','sheets-shape.line.endArrowSize','auto','MathMultiply','enableObjectsEvent','getImage','_clearShapeConnectorHandlerObjects','line','RadioGroup','_transform','ShapeFlowChartMergeIcon','setPrstGeom','group','ShapeHorizontalScrollIcon','DrawingTypeEnum','_getScrollInfo','callout','getShapePopupMenus','ShapeTriangleIcon','shapeKey','_generateCopyPasteMutations','_isStartAdjusting','_context','filter','_onSavingEditorData$','onScrollAfter$','getEditing','textRect','_calculateFreeEndpointAngle','shape.type.star5','includes','ResetInlineFormatTextBackgroundColorCommand','getContextValue','VIEW_MAIN_LEFT_TOP','sheets-shape.line.dashType.squareDot','image','buildClipPath','shape.type.left-bracket','CurvedDownArrow','useCallback','viewportScrollY','dataStream','SetShapeTextHorizontalAlignCommand','3289490pEUHXW'];_0x501b=function(){return _0x3735fd;};return _0x501b();}function GradientFillEditor(_0x4d8012){const _0xc1414c=_0x3e9a34,{shapeData:_0x27b2e3,disableShapeOption:_0x33b7ec,onUpdate:_0x20f144}=_0x4d8012,_0x2ac570=(0x0,react[_0xc1414c(0x336)])(()=>{const _0x415af7=_0xc1414c;var _0x5cfc2e;const _0x330601=_0x27b2e3[_0x415af7(0x151)];return{'type':shapeGradientTypeToPickerType(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x64c)]),'angle':(_0x5cfc2e=_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601['gradientAngle'])!==null&&_0x5cfc2e!==void 0x0?_0x5cfc2e:0x5a,'stops':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x481)])&&_0x330601[_0x415af7(0x481)][_0x415af7(0x440)]>=0x2?_0x330601[_0x415af7(0x481)][_0x415af7(0x532)](_0xd4adac=>({'color':_0xd4adac['color'],'offset':_0xd4adac['position']*0x64})):[{'color':(_0x330601===null||_0x330601===void 0x0?void 0x0:_0x330601[_0x415af7(0x436)])||_0x415af7(0x593),'offset':0x0},{'color':_0x415af7(0x256),'offset':0x64}]};},[_0x27b2e3[_0xc1414c(0x151)]]),_0x1a3516=_0x53dcb9=>{const _0x2153cc=_0xc1414c,_0x45c8cf=pickerTypeToShapeGradientType(_0x53dcb9['type']),_0x464de6=_0x53dcb9['angle'];_0x20f144({'gradientType':_0x45c8cf,'gradientAngle':_0x464de6,'gradientStops':_0x53dcb9[_0x2153cc(0x170)][_0x2153cc(0x532)](_0xa592e2=>({'color':_0xa592e2[_0x2153cc(0x436)],'position':_0xa592e2[_0x2153cc(0x5fd)]/0x64}))});};return(0x0,react_jsx_runtime[_0xc1414c(0x64f)])('div',{'className':_0xc1414c(0x1bc),'children':(0x0,react_jsx_runtime[_0xc1414c(0x64f)])(_univerjs_design[_0xc1414c(0x1e5)],{'value':_0x2ac570,'onChange':_0x1a3516})});}function ShapeLineEditor(_0x3c3d57){const _0x4f3c43=_0x3e9a34;var _0x4fdfd1,_0x4b8b1f,_0x35d833,_0xe1ec0c,_0x574339,_0x4c38d6,_0x4b0b43,_0x3b318b,_0x29834b,_0x4dec79,_0x11c8a2,_0x4c15e8,_0x5b6816,_0x567a41,_0x3bba9c,_0x34e902;const _0x3de282=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x398)]),_0x23d759=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x3f7)]),_0x32a0aa=(0x0,_univerjs_ui[_0x4f3c43(0x663)])(_univerjs_core[_0x4f3c43(0x409)]),{shapeData:_0x220e25,isLineShape:_0x1e8cbe,unitId:_0x3f73ec,subUnitId:_0x318c88,shapeId:_0x58aab2,disableShapeOption:_0x8588d1}=_0x3c3d57,_0x4a6cba=_0x220e25['stroke'],[_0x1cb1ad,_0x5aee6c]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4fdfd1=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineStrokeType'])!==null&&_0x4fdfd1!==void 0x0?_0x4fdfd1:_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x182)]),[_0x5e9aaa,_0x30a8d7]=(0x0,react['useState'])((_0x4b8b1f=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x436)])!==null&&_0x4b8b1f!==void 0x0?_0x4b8b1f:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x2a7)]),[_0x5af825,_0x133635]=(0x0,react[_0x4f3c43(0x5a1)])((_0x35d833=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3fd)])!==null&&_0x35d833!==void 0x0?_0x35d833:0x1),[_0x309edb,_0x5714d6]=(0x0,react[_0x4f3c43(0x5a1)])((_0xe1ec0c=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x183)])!==null&&_0xe1ec0c!==void 0x0?_0xe1ec0c:_univerjs_pro_engine_shape[_0x4f3c43(0x49a)][_0x4f3c43(0x45d)]),[_0x199aed,_0x26f3b3]=(0x0,react['useState'])((_0x574339=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x3f4)])!==null&&_0x574339!==void 0x0?_0x574339:_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)]),[_0x78f49c,_0x371cf7]=(0x0,react['useState'])((_0x4c38d6=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba[_0x4f3c43(0x592)])!==null&&_0x4c38d6!==void 0x0?_0x4c38d6:_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Flat']),[_0x23513c,_0x4e6e31]=(0x0,react[_0x4f3c43(0x5a1)])((_0x4b0b43=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['lineJoinType'])!==null&&_0x4b0b43!==void 0x0?_0x4b0b43:_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x59f)]),[_0x3ffb41,_0x2148a2]=(0x0,react[_0x4f3c43(0x5a1)])((_0x3b318b=_0x4a6cba===null||_0x4a6cba===void 0x0?void 0x0:_0x4a6cba['sketchType'])!==null&&_0x3b318b!==void 0x0?_0x3b318b:_univerjs_pro_engine_shape['ShapeSketchTypeEnum'][_0x4f3c43(0x319)]),_0x21d23a=_0x220e25,[_0x24bb47,_0x2eabd5]=(0x0,react[_0x4f3c43(0x5a1)])((_0x29834b=(_0x4dec79=_0x21d23a['ln'])===null||_0x4dec79===void 0x0||(_0x4dec79=_0x4dec79['startArrow'])===null||_0x4dec79===void 0x0?void 0x0:_0x4dec79['type'])!==null&&_0x29834b!==void 0x0?_0x29834b:_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)]),[_0x4434ca,_0xe4bd76]=(0x0,react[_0x4f3c43(0x5a1)])((_0x11c8a2=(_0x4c15e8=_0x21d23a['ln'])===null||_0x4c15e8===void 0x0||(_0x4c15e8=_0x4c15e8[_0x4f3c43(0x399)])===null||_0x4c15e8===void 0x0?void 0x0:_0x4c15e8[_0x4f3c43(0x43f)])!==null&&_0x11c8a2!==void 0x0?_0x11c8a2:_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)]),[_0x56c522,_0x5b72c0]=(0x0,react[_0x4f3c43(0x5a1)])((_0x5b6816=(_0x567a41=_0x21d23a['ln'])===null||_0x567a41===void 0x0||(_0x567a41=_0x567a41[_0x4f3c43(0x145)])===null||_0x567a41===void 0x0?void 0x0:_0x567a41[_0x4f3c43(0x142)])!==null&&_0x5b6816!==void 0x0?_0x5b6816:_univerjs_pro_engine_shape['ShapeArrowTypeEnum'][_0x4f3c43(0x319)]),[_0x585ecd,_0x4ee260]=(0x0,react['useState'])((_0x3bba9c=(_0x34e902=_0x21d23a['ln'])===null||_0x34e902===void 0x0||(_0x34e902=_0x34e902['endArrow'])===null||_0x34e902===void 0x0?void 0x0:_0x34e902[_0x4f3c43(0x43f)])!==null&&_0x3bba9c!==void 0x0?_0x3bba9c:_univerjs_pro_engine_shape[_0x4f3c43(0x201)]['Medium']),[_0x30b815,_0x25cb1f]=(0x0,react[_0x4f3c43(0x5a1)])(![]),_0x303f60=0x64-_0x5af825*0x64,_0x3f3f24=[{'label':_0x3de282['t']('sheets-shape.line.dashType.solid'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x4ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x285)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x174)])},{'label':_0x3de282['t'](_0x4f3c43(0x51a)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x43a)])},{'label':_0x3de282['t'](_0x4f3c43(0x465)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x200)])},{'label':_0x3de282['t'](_0x4f3c43(0x4b4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x328)][_0x4f3c43(0x347)])},{'label':_0x3de282['t']('sheets-shape.line.dashType.longDash'),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x5c8)])},{'label':_0x3de282['t'](_0x4f3c43(0x380)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x3ba)])},{'label':_0x3de282['t'](_0x4f3c43(0x27d)),'value':String(_univerjs_pro_engine_shape['ShapeLineDashEnum'][_0x4f3c43(0x21a)])}],_0x105e87=[{'label':_0x3de282['t'](_0x4f3c43(0x3a7)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x15b)])},{'label':_0x3de282['t'](_0x4f3c43(0x4ad)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)]['Round'])},{'label':_0x3de282['t'](_0x4f3c43(0x33b)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x495)][_0x4f3c43(0x408)])}],_0x393b25=[{'label':_0x3de282['t']('sheets-shape.line.sketchType.none'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x319)])},{'label':_0x3de282['t']('sheets-shape.line.sketchType.curved'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x65e)])},{'label':_0x3de282['t'](_0x4f3c43(0x359)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)]['Freehand'])},{'label':_0x3de282['t'](_0x4f3c43(0x449)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x129)][_0x4f3c43(0x487)])}],_0x2061ee=[{'label':_0x3de282['t'](_0x4f3c43(0x22e)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x59f)])},{'label':_0x3de282['t'](_0x4f3c43(0x1ba)),'value':String(_univerjs_pro_engine_shape['ShapeLineJoinEnum'][_0x4f3c43(0x5c5)])},{'label':_0x3de282['t'](_0x4f3c43(0x3f3)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x4f5)][_0x4f3c43(0x5a9)])}],_0x3de0bc=[{'label':_0x3de282['t'](_0x4f3c43(0x3da)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x319)])},{'label':_0x3de282['t'](_0x4f3c43(0x5f2)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x4ab)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.openArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x32a)])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['StealthArrow'])},{'label':_0x3de282['t']('sheets-shape.line.arrowType.diamondArrow'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)][_0x4f3c43(0x121)])},{'label':_0x3de282['t'](_0x4f3c43(0x396)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2de)]['OvalArrow'])}],_0x9f9f20=[{'label':_0x3de282['t']('sheets-shape.line.arrowSize.small'),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x39e)])},{'label':_0x3de282['t'](_0x4f3c43(0x5bf)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10e)])},{'label':_0x3de282['t'](_0x4f3c43(0x2c4)),'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x201)][_0x4f3c43(0x10f)])}];return(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x1ae),'children':[(0x0,react_jsx_runtime['jsxs'])(_univerjs_design[_0x4f3c43(0x500)],{'value':String(_0x1cb1ad),'disabled':_0x8588d1,'onChange':_0x506e68=>{const _0x4afb5a=_0x4f3c43;var _0x234295;_0x5aee6c(Number(_0x506e68)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x234295=_0x220e25[_0x4afb5a(0x2a7)])===null||_0x234295===void 0x0?void 0x0:_0x234295['lineStrokeType']}}},{'stroke':{'lineStrokeType':Number(_0x506e68)}});},'direction':_0x4f3c43(0x561),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.noLine')})}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x1c7)],{'value':String(_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)]['SolidLine']),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x63d),'children':_0x3de282['t']('sheets-shape.line.solidLine')})})]}),_0x1cb1ad!==_univerjs_pro_engine_shape[_0x4f3c43(0x2e3)][_0x4f3c43(0x123)]&&(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x4d3),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t']('sheets-shape.line.color')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x4f0)],{'disabled':_0x8588d1,'overlay':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x599),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x3df)],{'value':_0x5e9aaa,'onChange':_0x1352ab=>{const _0x5d3b3c=_0x4f3c43;var _0x8f5f0d;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'color':(_0x8f5f0d=_0x220e25[_0x5d3b3c(0x2a7)])===null||_0x8f5f0d===void 0x0?void 0x0:_0x8f5f0d[_0x5d3b3c(0x436)]}}},{'stroke':{'color':_0x1352ab}}),_0x30a8d7(_0x1352ab),_0x25cb1f(![]);}})}),'open':_0x30b815,'onOpenChange':_0x25cb1f,'children':(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('a',{'className':_0x4f3c43(0x392),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons[_0x4f3c43(0x62c)],{'className':_0x4f3c43(0xf1),'extend':{'colorChannel1':_0x5e9aaa}}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_icons['MoreDownIcon'],{'className':(0x0,_univerjs_design[_0x4f3c43(0x18a)])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x30b815})})]})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x3e8),'children':_0x3de282['t']('sheets-shape.line.transparency')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x597),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':_0x4f3c43(0x559),'value':_0x303f60,'disabled':_0x8588d1,'min':0x0,'max':0x64,'formatter':_0x3dda56=>_0x3dda56+'%','parser':_0x1670b9=>(_0x1670b9===null||_0x1670b9===void 0x0?void 0x0:_0x1670b9[_0x4f3c43(0x4e8)]('%',''))||'','onChange':_0x5cd49f=>{const _0x2ca053=_0x4f3c43;var _0x27c06d;const _0xbdccd6=(0x64-Math[_0x2ca053(0x216)](0x0,Math[_0x2ca053(0x613)](0x64,_0x5cd49f!==null&&_0x5cd49f!==void 0x0?_0x5cd49f:0x0)))/0x64;_0x133635(_0xbdccd6),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'opacity':(_0x27c06d=_0x220e25[_0x2ca053(0x2a7)])===null||_0x27c06d===void 0x0?void 0x0:_0x27c06d[_0x2ca053(0x3fd)]}}},{'stroke':{'opacity':_0xbdccd6}}),_0x32a0aa[_0x2ca053(0x1b8)](_univerjs_core['FOCUSING_PANEL_EDITOR'],![]);},'onFocus':()=>_0x32a0aa[_0x4f3c43(0x1b8)](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x480baf=>{const _0x2c6628=_0x4f3c43;_0x32a0aa['setContextValue'](_univerjs_core[_0x2c6628(0x202)],![]);}})})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x597),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x410))}),(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x418),{'className':'univer-w-20','children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x366)],{'className':'univer-w-full','disabled':_0x8588d1,'value':_0x309edb,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x57f068=>_0x57f068+_0x4f3c43(0x279),'parser':_0x29ad7e=>(_0x29ad7e===null||_0x29ad7e===void 0x0?void 0x0:_0x29ad7e[_0x4f3c43(0x4e8)](_0x4f3c43(0x279),''))||'','onChange':_0x86a4b8=>{const _0x4882b6=_0x4f3c43;if(!Number[_0x4882b6(0x662)](_0x86a4b8)&&_0x86a4b8!==null){var _0x598911;updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'width':(_0x598911=_0x220e25[_0x4882b6(0x2a7)])===null||_0x598911===void 0x0?void 0x0:_0x598911['width']}}},{'stroke':{'width':_0x86a4b8}});}_0x32a0aa[_0x4882b6(0x1b8)](_univerjs_core[_0x4882b6(0x202)],![]);},'onFocus':()=>_0x32a0aa['setContextValue'](_univerjs_core[_0x4f3c43(0x202)],!![]),'onBlur':_0x4467d0=>{const _0xe9cb66=_0x4f3c43;_0x32a0aa[_0xe9cb66(0x1b8)](_univerjs_core[_0xe9cb66(0x202)],![]);}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x47d))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x199aed),'options':_0x3f3f24,'disabled':_0x8588d1,'onChange':_0x33f066=>{var _0x1c6c39;_0x26f3b3(Number(_0x33f066)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'dashType':(_0x1c6c39=_0x220e25['stroke'])===null||_0x1c6c39===void 0x0?void 0x0:_0x1c6c39['dashType']}}},{'stroke':{'dashType':Number(_0x33f066)}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x46c))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x78f49c),'options':_0x105e87,'disabled':_0x8588d1,'onChange':_0x478af9=>{const _0x4791c9=_0x4f3c43;var _0x157ff9;_0x371cf7(Number(_0x478af9)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'capType':(_0x157ff9=_0x220e25[_0x4791c9(0x2a7)])===null||_0x157ff9===void 0x0?void 0x0:_0x157ff9[_0x4791c9(0x592)]}}},{'stroke':{'capType':Number(_0x478af9)}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t']('sheets-shape.line.joinType.title')}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x23513c),'options':_0x2061ee,'disabled':_0x8588d1,'onChange':_0x3a0ad8=>{const _0x268847=_0x4f3c43;var _0xdf4b01;_0x4e6e31(Number(_0x3a0ad8)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'lineJoinType':(_0xdf4b01=_0x220e25[_0x268847(0x2a7)])===null||_0xdf4b01===void 0x0?void 0x0:_0xdf4b01[_0x268847(0x551)]}}},{'stroke':{'lineJoinType':Number(_0x3a0ad8)}});}})})]}),!_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,react_jsx_runtime['jsx'])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x5ba))}),(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-w-28','children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x3ffb41),'options':_0x393b25,'disabled':_0x8588d1,'onChange':_0x547481=>{const _0x18b936=_0x4f3c43;var _0xabf6a4;_0x2148a2(Number(_0x547481)),updateShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'stroke':{'sketchType':(_0xabf6a4=_0x220e25[_0x18b936(0x2a7)])===null||_0xabf6a4===void 0x0?void 0x0:_0xabf6a4[_0x18b936(0x1d9)]}}},{'stroke':{'sketchType':Number(_0x547481)}});}})})]}),_0x1e8cbe&&(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(react_jsx_runtime['Fragment'],{'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x204))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x24bb47),'options':_0x3de0bc,'onChange':_0x12df2a=>{const _0x476e04=_0x4f3c43;var _0xa3ecdf;_0x2eabd5(Number(_0x12df2a)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xa3ecdf=_0x220e25['ln'])===null||_0xa3ecdf===void 0x0||(_0xa3ecdf=_0xa3ecdf['startArrow'])===null||_0xa3ecdf===void 0x0?void 0x0:_0xa3ecdf[_0x476e04(0x142)]}}}},{'ln':{'startArrow':{'type':Number(_0x12df2a)}}});}})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x1a2),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3de282['t'](_0x4f3c43(0x185))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design['Select'],{'className':_0x4f3c43(0x559),'value':String(_0x4434ca),'options':_0x9f9f20,'onChange':_0x3d39bf=>{const _0x250009=_0x4f3c43;var _0x30079a;_0xe4bd76(Number(_0x3d39bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x30079a=_0x220e25['ln'])===null||_0x30079a===void 0x0||(_0x30079a=_0x30079a[_0x250009(0x399)])===null||_0x30079a===void 0x0?void 0x0:_0x30079a['size']}}}},{'ln':{'startArrow':{'size':Number(_0x3d39bf)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])('div',{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x567))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('div',{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':_0x4f3c43(0x559),'value':String(_0x56c522),'options':_0x3de0bc,'onChange':_0x2cb699=>{const _0x150a59=_0x4f3c43;var _0x524ea0;_0x5b72c0(Number(_0x2cb699)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x524ea0=_0x220e25['ln'])===null||_0x524ea0===void 0x0||(_0x524ea0=_0x524ea0[_0x150a59(0x145)])===null||_0x524ea0===void 0x0?void 0x0:_0x524ea0[_0x150a59(0x142)]}}}},{'ln':{'endArrow':{'type':Number(_0x2cb699)}}});}})})]}),(0x0,react_jsx_runtime[_0x4f3c43(0x24e)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x433),'children':[(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])('span',{'className':_0x4f3c43(0x1e7),'children':_0x3de282['t'](_0x4f3c43(0x4f9))}),(0x0,react_jsx_runtime[_0x4f3c43(0x64f)])(_0x4f3c43(0x418),{'className':_0x4f3c43(0x2f4),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4f3c43(0x2e2)],{'className':'univer-w-full','value':String(_0x585ecd),'options':_0x9f9f20,'onChange':_0x51a9bf=>{const _0x5afe46=_0x4f3c43;var _0x2b9afa;_0x4ee260(Number(_0x51a9bf)),updateLineShapeData(_0x23d759,_0x3f73ec,_0x318c88,_0x58aab2,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x2b9afa=_0x220e25['ln'])===null||_0x2b9afa===void 0x0||(_0x2b9afa=_0x2b9afa['endArrow'])===null||_0x2b9afa===void 0x0?void 0x0:_0x2b9afa[_0x5afe46(0x43f)]}}}},{'ln':{'endArrow':{'size':Number(_0x51a9bf)}}});}})})]})]})]})]});}function ShapePositionEditor(){const _0x2fe40d=_0x3e9a34,_0x189173=(0x0,_univerjs_ui[_0x2fe40d(0x663)])(_univerjs_drawing['IDrawingManagerService']),[_0x2d063e,_0x4591e0]=(0x0,react[_0x2fe40d(0x5a1)])(_0x189173[_0x2fe40d(0x4a6)]());(0x0,react[_0x2fe40d(0x11f)])(()=>{const _0x58b4e4=_0x2fe40d,_0x9c0a03=_0x189173[_0x58b4e4(0x188)][_0x58b4e4(0x562)](_0x1a6573=>{_0x4591e0(_0x1a6573);});return()=>{_0x9c0a03['unsubscribe']();};},[]);if(_0x2d063e[_0x2fe40d(0x440)]===0x0)return null;return(0x0,react_jsx_runtime['jsx'])(_0x2fe40d(0x418),{'children':(0x0,react_jsx_runtime[_0x2fe40d(0x24e)])('div',{'className':_0x2fe40d(0x438),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_drawing_ui[_0x2fe40d(0x46d)],{'drawings':_0x2d063e,'hasCropper':![]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_sheets_drawing_ui[_0x2fe40d(0x1b3)],{'drawings':_0x2d063e})]})});}function ShapeEditPanel(_0x30e0e3){const _0x2db078=_0x3e9a34,{shapeData:_0x5544ca,shapeId:_0x283e6b,shapeType:_0x4cd1ed,version:_0x3d4187,unitId:_0x359e1f,subUnitId:_0x528583,disableShapeOption:_0x2a6c77}=_0x30e0e3,_0x89eef1=(0x0,_univerjs_ui[_0x2db078(0x663)])(_univerjs_core[_0x2db078(0x398)]),_0x4589d5=(0x0,_univerjs_pro_engine_shape[_0x2db078(0x654)])(_0x4cd1ed),[_0x35c47a,_0x113557]=(0x0,react[_0x2db078(0x5a1)])(0x0),_0x40d3a1=[{'label':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x418),{'children':_0x89eef1['t'](_0x2db078(0x16d))}),'children':(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x1a8),{'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[_0x2db078(0x64f)])(ShapeFillEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})},{'label':(0x0,react_jsx_runtime['jsx'])('div',{'children':_0x89eef1['t'](_0x2db078(0x46f))}),'children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_0x2db078(0x1a8),{'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['jsx'])(ShapeLineEditor,{'shapeId':_0x283e6b,'shapeData':_0x5544ca,'isLineShape':_0x4589d5,'subUnitId':_0x528583,'unitId':_0x359e1f,'disableShapeOption':_0x2a6c77},_0x283e6b)})}];return(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':'univer-size-full','children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':_0x2db078(0x1f4),'children':[(0x0,react_jsx_runtime[_0x2db078(0x24e)])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x534),_0x35c47a===0x0?_0x2db078(0x444):_0x2db078(0xf1)),'onClick':()=>_0x113557(0x0),'children':[_0x89eef1['t'](_0x2db078(0x63f)),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x555),{'univer-bg-primary-600':_0x35c47a===0x0,'univer-bg-transparent':_0x35c47a!==0x0})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold',{'univer-text-primary-600':_0x35c47a===0x1,'univer-text-gray-500':_0x35c47a!==0x1}),'onClick':()=>_0x113557(0x1),'children':[_0x89eef1['t'](_0x2db078(0x41e)),(0x0,react_jsx_runtime['jsx'])(_0x2db078(0x418),{'className':(0x0,_univerjs_design[_0x2db078(0x18a)])(_0x2db078(0x54f),{'univer-bg-primary-600':_0x35c47a===0x1,'univer-bg-transparent':_0x35c47a!==0x1})})]})]}),(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x35c47a===0x0?(0x0,react_jsx_runtime[_0x2db078(0x64f)])('div',{'className':'','children':(0x0,react_jsx_runtime[_0x2db078(0x64f)])(_univerjs_design[_0x2db078(0x22f)],{'items':_0x40d3a1})},_0x3d4187):(0x0,react_jsx_runtime[_0x2db078(0x64f)])(ShapePositionEditor,{})})]});}var SheetShapeAdjustPointObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x4ebc53,_0x41188f){const _0x476606=_0x3e9a34;super(_0x4ebc53,_0x41188f),_defineProperty(this,_0x476606(0x196),null),_defineProperty(this,_0x476606(0x307),null),_defineProperty(this,_0x476606(0x324),null),_defineProperty(this,_0x476606(0x55d),null);if(_0x41188f)this[_0x476606(0x5fe)](_0x41188f);}['getDrawingSearch'](){const _0x3f6e51=_0x3e9a34;return{'unitId':this[_0x3f6e51(0x324)],'subUnitId':this[_0x3f6e51(0x55d)],'drawingId':this[_0x3f6e51(0x196)]};}['setShapeProps'](_0x531517){const _0x127aec=_0x3e9a34;if(typeof _0x531517[_0x127aec(0x4ac)]!=='undefined')this[_0x127aec(0x196)]=_0x531517[_0x127aec(0x4ac)];if(typeof _0x531517[_0x127aec(0x5f8)]!==_0x127aec(0x544))this[_0x127aec(0x307)]=_0x531517[_0x127aec(0x5f8)];if(typeof _0x531517[_0x127aec(0x4a8)]!==_0x127aec(0x544))this[_0x127aec(0x324)]=_0x531517[_0x127aec(0x4a8)];if(typeof _0x531517['subUnitId']!==_0x127aec(0x544))this[_0x127aec(0x55d)]=_0x531517[_0x127aec(0x5d6)];this[_0x127aec(0x227)]({'width':_0x531517['width'],'height':_0x531517[_0x127aec(0x37b)]});}[_0x3e9a34(0x33c)](_0x2cbb43){const _0x3820af=_0x3e9a34;_univerjs_engine_render[_0x3820af(0x5d8)][_0x3820af(0x118)](_0x2cbb43,{'radius':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x3b6)],'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3820af(0x4b5)],'stroke':_univerjs_pro_engine_shape[_0x3820af(0x49a)][_0x3820af(0x41d)],'strokeWidth':0x1,'evented':!![]});}};let SheetShapeAdjustController=class SheetShapeAdjustController extends _univerjs_core['Disposable']{constructor(_0xa182bb,_0x5c7b9b,_0x3504c1,_0x76af20,_0x4eed56,_0x50b3ac,_0x2ddb60,_0x18ea8e){const _0x46b88a=_0x3e9a34;super(),this['_context']=_0xa182bb,this['_contextService']=_0x5c7b9b,this[_0x46b88a(0x4d0)]=_0x3504c1,this[_0x46b88a(0xfd)]=_0x76af20,this[_0x46b88a(0x5cb)]=_0x4eed56,this['_sheetDrawingShapeRenderController']=_0x50b3ac,this[_0x46b88a(0x5e1)]=_0x2ddb60,this[_0x46b88a(0x363)]=_0x18ea8e,_defineProperty(this,_0x46b88a(0x2e4),null),_defineProperty(this,_0x46b88a(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,_0x46b88a(0x3cc),void 0x0),_defineProperty(this,'_shapes',[]),_defineProperty(this,'_baseShapeLeft',0x0),_defineProperty(this,_0x46b88a(0x44c),0x0),_defineProperty(this,_0x46b88a(0x5f1),0x0),_defineProperty(this,'_baseShapeHeight',0x0),_defineProperty(this,'_isStartAdjusting',![]),_defineProperty(this,_0x46b88a(0x159),void 0x0),_defineProperty(this,_0x46b88a(0x19a),void 0x0),_defineProperty(this,_0x46b88a(0x310),void 0x0),_defineProperty(this,_0x46b88a(0x4f6),void 0x0),_defineProperty(this,_0x46b88a(0x3be),![]),this['_registerDrawingFocusChangeHandler'](),this[_0x46b88a(0x52c)]();}[_0x3e9a34(0x3b9)](_0x10c592,_0x13c947,_0xd01dc5){const _0x3dc4a2=_0x3e9a34,_0x4adf3d=this[_0x3dc4a2(0xfd)][_0x3dc4a2(0x533)](_0x10c592,_0x13c947,_0xd01dc5);if(_0x4adf3d)return _0x4adf3d[_0x3dc4a2(0x660)]();}[_0x3e9a34(0x63b)](){const _0x535369=_0x3e9a34;this[_0x535369(0x65d)]();}[_0x3e9a34(0x47b)](){const _0x499e46=_0x3e9a34;this[_0x499e46(0x540)](!![]);}[_0x3e9a34(0x306)](_0x3f4fa0){this['_isShouldShowDrawingShapeAdjust']=_0x3f4fa0;}[_0x3e9a34(0x2ef)](_0x23c48c,_0x50c86e,_0xc65a2a,_0x289087){const _0x6da03=_0x3e9a34,_0xefa87b=this['_sheetsShapeService'][_0x6da03(0x533)](_0x23c48c,_0x50c86e,_0xc65a2a);if(_0xefa87b)return _0xefa87b['getAdjustInfoByName'](_0x289087);}['_createShapeAdjustControls'](_0x120c61=![]){const _0x46935c=_0x3e9a34;if(this[_0x46935c(0x324)]===null||this['_subUnitId']===null||this[_0x46935c(0x2e4)]===null)return;const _0x1b39bd=this['_renderManagerService'][_0x46935c(0x17d)](this[_0x46935c(0x324)]);if(!_0x1b39bd)return;if(!_0x1b39bd['with'](_univerjs_sheets_ui[_0x46935c(0x412)])['getCurrentSkeleton']())return;const {scene:_0x21eae4}=_0x1b39bd,_0x10c927={'unitId':this[_0x46935c(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x46935c(0x2e4)]},_0x1b38be=this[_0x46935c(0x4d0)][_0x46935c(0x619)](_0x10c927),{transform:_0x23e3a2}=_0x1b38be;if(!_0x23e3a2)return;if(_0x1b38be[_0x46935c(0x5ec)]!==_univerjs_core[_0x46935c(0x506)][_0x46935c(0x3fc)])return;const {left:_0x26dd07,top:_0x5766b7,width:_0x38f251,height:_0x4c9cc1,flipX:_0x479766,flipY:_0xf8ae60,angle:angle=0x0}=_0x23e3a2;if(_0x26dd07===void 0x0||_0x5766b7===void 0x0)return;if(_0x120c61)this[_0x46935c(0x3cc)]=this[_0x46935c(0x3b9)](this[_0x46935c(0x324)],this[_0x46935c(0x55d)],this[_0x46935c(0x2e4)]);const _0x4cd2d9=this['_activeShapeAdjustPointList'];for(let _0x449cba=0x0;_0x449cba<_0x4cd2d9[_0x46935c(0x440)];_0x449cba++){const _0x503a7e=_0x4cd2d9[_0x449cba];let _0xcf8455=_0x503a7e['x'],_0x23c721=_0x503a7e['y'];if(_0x479766)_0xcf8455=(_0x38f251||0x0)-_0xcf8455;if(_0xf8ae60)_0x23c721=(_0x4c9cc1||0x0)-_0x23c721;if(angle!==0x0){const _0x50fb4a=(_0x38f251||0x0)/0x2,_0x35df27=(_0x4c9cc1||0x0)/0x2,_0xf5f90a=angle*Math['PI']/0xb4,_0x2018f3=Math['cos'](_0xf5f90a),_0x54ff4e=Math[_0x46935c(0x479)](_0xf5f90a),_0x72686c=_0xcf8455-_0x50fb4a,_0x24b36c=_0x23c721-_0x35df27;_0xcf8455=_0x50fb4a+(_0x72686c*_0x2018f3-_0x24b36c*_0x54ff4e),_0x23c721=_0x35df27+(_0x72686c*_0x54ff4e+_0x24b36c*_0x2018f3);}const _0x20b507={'x':_0xcf8455,'y':_0x23c721,'adjName':_0x503a7e[_0x46935c(0x5f8)]};this[_0x46935c(0x315)](_0x21eae4,_0x20b507,_0x20b507[_0x46935c(0x5f8)],_0x26dd07,_0x5766b7,this['_unitId'],this['_subUnitId']);}}[_0x3e9a34(0x540)](_0x5a06a8=![]){const _0x28b062=_0x3e9a34;_0x5a06a8&&(this[_0x28b062(0x65d)](),this['_createShapeAdjustControls'](_0x5a06a8));}[_0x3e9a34(0x315)](_0x4ccccd,_0x20f394,_0x1dd77a,_0x5c0e69,_0x57c74f,_0x1721d4,_0x2ef183){const _0x357a56=_0x3e9a34;if(!this[_0x357a56(0x2e4)])return;const _0x34f2e4=_0x4ccccd[_0x357a56(0x21c)](_0x357a56(0x63a)+this['_activeShapeId']+'-'+_0x1dd77a);if(_0x34f2e4){_0x34f2e4[_0x357a56(0x227)]({'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]});return;}const _0x31a1d2={'left':_0x20f394['x']+_0x5c0e69-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x357a56(0x3b6)],'top':_0x20f394['y']+_0x57c74f-_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)],'adjName':_0x1dd77a,'shapeId':this[_0x357a56(0x2e4)],'unitId':_0x1721d4,'subUnitId':_0x2ef183,'width':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x357a56(0x49a)][_0x357a56(0x3b6)]+0x8,'zIndex':_univerjs_engine_render[_0x357a56(0x1bd)]+0x1,'evented':!![]},_0x21d644=new SheetShapeAdjustPointObject(_0x357a56(0x63a)+this[_0x357a56(0x2e4)]+'-'+_0x1dd77a,_0x31a1d2);this[_0x357a56(0x4bc)][_0x357a56(0x2dd)](_0x21d644),this[_0x357a56(0x38a)](_0x21d644,_0x4ccccd,_0x1dd77a),_0x4ccccd[_0x357a56(0x18b)](_0x21d644,_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x3e9a34(0x65d)](){const _0x1cff9c=_0x3e9a34;if(this[_0x1cff9c(0x4bc)]['length']===0x0)return;this['_shapes']['forEach'](_0x1451c3=>{const _0x41eb10=_0x1cff9c;_0x1451c3[_0x41eb10(0x199)]();}),this[_0x1cff9c(0x4bc)]=[];}[_0x3e9a34(0x5e7)](){const _0x6ad730=_0x3e9a34;this[_0x6ad730(0x1a9)]();}[_0x3e9a34(0x507)](_0x34e0dd,_0x383aa6){const _0x2ec05a=_0x3e9a34;var _0x47becc;const _0x3e9976={'x':0x0,'y':0x0};if(!_0x34e0dd||!_0x383aa6)return _0x3e9976;const _0x29d061=this['_renderManagerService'][_0x2ec05a(0x17d)](_0x34e0dd);if(!_0x29d061)return _0x3e9976;if(!_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x412)])['getSkeleton'](_0x383aa6))return _0x3e9976;const _0x5cc157=_0x29d061[_0x2ec05a(0x1cf)](_univerjs_sheets_ui[_0x2ec05a(0x480)]),_0x13c842=_0x5cc157===null||_0x5cc157===void 0x0?void 0x0:_0x5cc157[_0x2ec05a(0x531)]();if(!_0x13c842)return _0x3e9976;const _0x231848=(_0x47becc=this[_0x2ec05a(0x5e1)]['getUnit'](_0x34e0dd))===null||_0x47becc===void 0x0?void 0x0:_0x47becc['getSheetBySheetId'](_0x383aa6);if(!_0x231848)return _0x3e9976;const _0x434674=(0x0,_univerjs_sheets_ui[_0x2ec05a(0x33f)])(_0x13c842[_0x2ec05a(0x484)],_0x13c842[_0x2ec05a(0x38d)],_0x29d061[_0x2ec05a(0x2a4)],_0x231848);if(!_0x434674)return _0x3e9976;return{'x':_0x434674[_0x2ec05a(0x4aa)],'y':_0x434674['viewportScrollY']};}[_0x3e9a34(0x52f)](_0x4e0b1d,_0x34ce7a){const _0x1d6f9a=_0x3e9a34;var _0x52e0a0,_0x9d65f;const _0x23ecd8=(_0x52e0a0=this[_0x1d6f9a(0x5e1)][_0x1d6f9a(0x46e)](_0x4e0b1d))===null||_0x52e0a0===void 0x0?void 0x0:_0x52e0a0[_0x1d6f9a(0x299)](_0x34ce7a);return(_0x9d65f=_0x23ecd8===null||_0x23ecd8===void 0x0?void 0x0:_0x23ecd8[_0x1d6f9a(0x234)]())!==null&&_0x9d65f!==void 0x0?_0x9d65f:0x1;}[_0x3e9a34(0x38a)](_0x46185f,_0x55e413,_0x57e923){const _0x181114=_0x3e9a34;this[_0x181114(0x58e)]((0x0,_univerjs_core[_0x181114(0x28e)])(_0x46185f[_0x181114(0x284)][_0x181114(0x345)]((_0x2c7c21,_0x1e0b7e)=>{const _0x1e1bc4=_0x181114;var _0xe0d783,_0x474110,_0x36fd14,_0x4637c7;const _0x56648e=_0x46185f[_0x1e1bc4(0x40e)]();this[_0x1e1bc4(0x159)]=this['_getShapeAdjustInfosById'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId'],_0x57e923),this[_0x1e1bc4(0x19a)]=this['_sheetsShapeService']['getShapeModel'](_0x56648e[_0x1e1bc4(0x4a8)],_0x56648e[_0x1e1bc4(0x5d6)],_0x56648e['drawingId']);const _0x3733b9=this['_drawingManagerService']['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x1e1bc4(0x55d)],'drawingId':this['_activeShapeId']}),{transform:_0x5c6466}=_0x3733b9;if(_0x5c6466){const {left:_0x4287a5,top:_0x1972cc,width:_0xd10d4,height:_0x1e4606}=_0x5c6466;this[_0x1e1bc4(0x4a7)]=_0x4287a5||0x0,this[_0x1e1bc4(0x44c)]=_0x1972cc||0x0,this[_0x1e1bc4(0x5f1)]=_0xd10d4||0x0,this[_0x1e1bc4(0x5fc)]=_0x1e4606||0x0;}const _0x59df2b=Boolean((_0xe0d783=_0x3733b9[_0x1e1bc4(0x600)])===null||_0xe0d783===void 0x0?void 0x0:_0xe0d783[_0x1e1bc4(0x2f5)]),_0x1c6b7c=Boolean((_0x474110=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x474110===void 0x0?void 0x0:_0x474110['flipY']),_0x4c0c8f=((_0x36fd14=_0x3733b9[_0x1e1bc4(0x600)])===null||_0x36fd14===void 0x0?void 0x0:_0x36fd14[_0x1e1bc4(0x62d)])||0x0;this[_0x1e1bc4(0x50d)]=!![],_0x55e413[_0x1e1bc4(0x3c5)]();const _0x4f4b6b=(_0x4637c7=this[_0x1e1bc4(0x19a)])===null||_0x4637c7===void 0x0?void 0x0:_0x4637c7['getAdjustValueByName'](_0x57e923),_0x4ea435={[_0x57e923]:_0x4f4b6b};this['_adjHandlerPointerMove']=_0x55e413[_0x1e1bc4(0x223)][_0x1e1bc4(0x345)]((_0x501614,_0xc05d88)=>{const _0x1e6629=_0x1e1bc4;if(!this[_0x1e6629(0x50d)])return;const {offsetX:_0x1eaf64,offsetY:_0x5c0556}=_0x501614,_0x51166d=this[_0x1e6629(0x159)];if(this[_0x1e6629(0x19a)]&&_0x51166d){_0x55e413[_0x1e6629(0x3c5)](),_0x55e413[_0x1e6629(0x203)](_univerjs_engine_render[_0x1e6629(0x322)][_0x1e6629(0x5b3)]);const _0x5911bd={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x1e6629(0x5fc)]},_0xea551c=this[_0x1e6629(0x507)](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]),_0x3fae75=this['_getZoomRatio'](this[_0x1e6629(0x324)],this[_0x1e6629(0x55d)]);let _0x299f4f=_0x1eaf64/_0x3fae75+_0xea551c['x']-this[_0x1e6629(0x4a7)],_0x14de32=_0x5c0556/_0x3fae75+_0xea551c['y']-this[_0x1e6629(0x44c)];if(_0x4c0c8f!==0x0){const _0x248f60=this[_0x1e6629(0x5f1)]/0x2,_0x3ea6aa=this[_0x1e6629(0x5fc)]/0x2,_0x2c7f0f=_0x4c0c8f*Math['PI']/0xb4,_0x4dc081=Math[_0x1e6629(0x1cb)](_0x2c7f0f),_0x5680ff=Math[_0x1e6629(0x479)](_0x2c7f0f),_0x126eac=_0x299f4f-_0x248f60,_0x2486e9=_0x14de32-_0x3ea6aa;_0x299f4f=_0x248f60+(_0x126eac*_0x4dc081+_0x2486e9*_0x5680ff),_0x14de32=_0x3ea6aa+(-_0x126eac*_0x5680ff+_0x2486e9*_0x4dc081);}if(_0x59df2b)_0x299f4f=this[_0x1e6629(0x5f1)]-_0x299f4f;if(_0x1c6b7c)_0x14de32=this[_0x1e6629(0x5fc)]-_0x14de32;const _0x53b93f={'x':_0x299f4f,'y':_0x14de32},_0x2a3a48=this['_activeShapeModel'][_0x1e6629(0x445)](_0x5911bd,_0x53b93f,_0x51166d,_0x59df2b,_0x1c6b7c),_0x3c5c2c=_0x51166d[_0x1e6629(0x5be)]||_0x51166d[_0x1e6629(0x12c)]||_0x51166d[_0x1e6629(0x4de)]||_0x51166d['gdRefR'];if(_0x3c5c2c===void 0x0)return;this['_activeShapeModel'][_0x1e6629(0x57d)](_0x3c5c2c,_0x2a3a48);const _0x2968f6=this[_0x1e6629(0x4d0)][_0x1e6629(0x619)]({'unitId':_0x56648e[_0x1e6629(0x4a8)],'subUnitId':_0x56648e[_0x1e6629(0x5d6)],'drawingId':_0x56648e['drawingId']});_0x2968f6&&(this['_sheetDrawingShapeRenderController'][_0x1e6629(0x1e3)](_0x2968f6,_0x55e413),this[_0x1e6629(0x3cc)]=this[_0x1e6629(0x3b9)](_0x56648e[_0x1e6629(0x4a8)],_0x56648e[_0x1e6629(0x5d6)],_0x56648e[_0x1e6629(0x4c5)]),this[_0x1e6629(0x5e7)]());}_0xc05d88[_0x1e6629(0x11e)]();}),this[_0x1e1bc4(0x4f6)]=_0x55e413[_0x1e1bc4(0x575)]['subscribeEvent']((_0x58de4b,_0x5655e2)=>{const _0x40fe30=_0x1e1bc4;this[_0x40fe30(0x310)][_0x40fe30(0x54e)](),this[_0x40fe30(0x4f6)][_0x40fe30(0x54e)](),_0x55e413['resetCursor']();const _0xfeb172=this[_0x40fe30(0x159)];if(_0xfeb172){const _0x6eb1ea=_0x56648e['unitId'],_0x5b4e42=_0x56648e[_0x40fe30(0x5d6)],_0x5164fd=_0x56648e['drawingId'],_0x55f2b2=_0xfeb172[_0x40fe30(0x5be)]||_0xfeb172['gdRefY']||_0xfeb172[_0x40fe30(0x4de)]||_0xfeb172[_0x40fe30(0x3f0)];if(_0x55f2b2!==void 0x0){var _0x456393;const _0x3e95bc=(_0x456393=this[_0x40fe30(0x19a)])===null||_0x456393===void 0x0?void 0x0:_0x456393['getAdjustValueByName'](_0x55f2b2);if(_0x3e95bc!==void 0x0)updateShapeData(this['_commandService'],_0x6eb1ea,_0x5b4e42,_0x5164fd,{'oldShapeData':{'adjustValues':_0x4ea435}},{'adjustValues':{[_0x55f2b2]:_0x3e95bc}});}}this[_0x40fe30(0x159)]=void 0x0,this[_0x40fe30(0x19a)]=void 0x0,this[_0x40fe30(0x50d)]=![],_0x5655e2['stopPropagation'](),_0x55e413[_0x40fe30(0x4fc)]();}),_0x1e0b7e['stopPropagation']();})));}[_0x3e9a34(0x52c)](){const _0x314a92=_0x3e9a34,_0x4c8a98=this[_0x314a92(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core[_0x314a92(0x4cd)][_0x314a92(0x58b)]);this[_0x314a92(0x58e)](_0x4c8a98[_0x314a92(0x1e2)]((0x0,rxjs[_0x314a92(0x352)])(_0x4bd6db=>{const _0x441fd8=_0x314a92;if(!_0x4bd6db)return rxjs[_0x441fd8(0x218)];return _0x4bd6db[_0x441fd8(0x1e1)]['pipe']((0x0,rxjs[_0x441fd8(0x352)])(_0x364a57=>{const _0x3fd1ec=_0x441fd8;if(!_0x364a57)return rxjs[_0x3fd1ec(0x218)];const _0x10a96a=_0x4bd6db[_0x3fd1ec(0x386)](),_0x74abb7=this['_renderManagerService'][_0x3fd1ec(0x17d)](_0x10a96a),_0x34ea1b=_0x74abb7===null||_0x74abb7===void 0x0?void 0x0:_0x74abb7[_0x3fd1ec(0x2a4)];if(!_0x34ea1b)return rxjs[_0x3fd1ec(0x218)];return(0x0,rxjs['of'])(_0x34ea1b);}));}))[_0x314a92(0x562)](_0x2e214e=>{const _0x3a0fa5=_0x314a92,_0x58962a=_0x2e214e[_0x3a0fa5(0xe2)]();this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x223)][_0x3a0fa5(0x345)](()=>{if(this['_isShouldShowDrawingShapeAdjust']){}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x14c)][_0x3a0fa5(0x562)](_0x20bd75=>{const _0x5be7cb=_0x3a0fa5,{objects:_0x325b8c}=_0x20bd75;this[_0x5be7cb(0x1a9)]();if(_0x325b8c!==null&&_0x325b8c[_0x5be7cb(0x43f)]===0x1){if(_0x325b8c['values']()[_0x5be7cb(0x5c7)]()['value']instanceof DrawingShape)this['setShouldShowAdjust'](!![]);}})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x304)]['subscribe'](()=>{if(this['_isShouldShowDrawingShapeAdjust'])this['_clearShapeAdjustControls']();})),this[_0x3a0fa5(0x58e)](_0x2e214e[_0x3a0fa5(0x575)][_0x3a0fa5(0x345)](()=>{const _0x15b0d3=_0x3a0fa5;this[_0x15b0d3(0x3be)]&&(this[_0x15b0d3(0x306)](![]),this[_0x15b0d3(0x1a9)]());})),this['disposeWithMe'](_0x58962a[_0x3a0fa5(0x4c0)][_0x3a0fa5(0x562)](()=>{const _0x25de66=_0x3a0fa5;this[_0x25de66(0x324)]&&this[_0x25de66(0x55d)]&&this[_0x25de66(0x2e4)]&&(this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x25de66(0x324)],'subUnitId':this[_0x25de66(0x55d)],'drawingId':this['_activeShapeId']})&&(this[_0x25de66(0x3cc)]=this[_0x25de66(0x3b9)](this['_unitId'],this[_0x25de66(0x55d)],this[_0x25de66(0x2e4)]),this['_updateAdjustControlPositions']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x232e2c=_0x3e9a34;this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)]['focus$'][_0x232e2c(0x562)](_0x5da757=>{const _0x38ef80=_0x232e2c;if(_0x5da757[_0x38ef80(0x440)]===0x1){const _0x3437ed=_0x5da757[0x0];if(_0x3437ed['drawingType']===_univerjs_core[_0x38ef80(0x506)]['DRAWING_SHAPE']){this[_0x38ef80(0x2e4)]=_0x3437ed['drawingId'];const {unitId:_0x386f4f,subUnitId:_0x8c52aa}=_0x3437ed;this[_0x38ef80(0x3cc)]=this[_0x38ef80(0x3b9)](_0x386f4f,_0x8c52aa,this[_0x38ef80(0x2e4)]),this[_0x38ef80(0x324)]=_0x386f4f,this['_subUnitId']=_0x8c52aa,this['_clearShapeAdjustControls'](),this[_0x38ef80(0x1a9)]();}else this[_0x38ef80(0x2e4)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x38ef80(0x55d)]=null,this['_clearShapeAdjustControls']();}(_0x5da757[_0x38ef80(0x440)]>0x1||_0x5da757[_0x38ef80(0x440)]===0x0)&&(this['_activeShapeId']=null,this[_0x38ef80(0x3cc)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this[_0x38ef80(0x65d)]());})),this[_0x232e2c(0x58e)](this[_0x232e2c(0x4d0)][_0x232e2c(0x554)][_0x232e2c(0x562)](_0xe19d18=>{const _0x1c29fd=_0x232e2c;if(_0xe19d18[_0x1c29fd(0x440)]===0x1){var _0x3ed59a;const _0x50f758=_0xe19d18[0x0];if(((_0x3ed59a=this[_0x1c29fd(0x4d0)][_0x1c29fd(0x619)](_0x50f758))===null||_0x3ed59a===void 0x0?void 0x0:_0x3ed59a['drawingType'])===_univerjs_core[_0x1c29fd(0x506)]['DRAWING_SHAPE'])this[_0x1c29fd(0x540)](!![]);}})),this['disposeWithMe'](this[_0x232e2c(0x4d0)][_0x232e2c(0x31c)][_0x232e2c(0x562)](_0x2db104=>{const _0x2aef25=_0x232e2c;for(const _0x2d6e61 of _0x2db104)this[_0x2aef25(0x2e4)]===_0x2d6e61[_0x2aef25(0x4c5)]&&(this[_0x2aef25(0x2e4)]=null,this[_0x2aef25(0x3cc)]=void 0x0,this[_0x2aef25(0x324)]=null,this[_0x2aef25(0x55d)]=null,this[_0x2aef25(0x65d)]());}));}};SheetShapeAdjustController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x2,_univerjs_drawing['IDrawingManagerService']),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(SheetDrawingShapeRenderController)),__decorateParam(0x6,_univerjs_core['IUniverInstanceService']),__decorateParam(0x7,_univerjs_core[_0x3e9a34(0x3f7)])],SheetShapeAdjustController);const ActiveDrawingSelectedOperation={'id':_0x3e9a34(0x5ea),'type':_univerjs_core[_0x3e9a34(0x5e6)][_0x3e9a34(0x630)],'handler':(_0x3b4a58,_0x4f865d)=>{const _0x4fb56b=_0x3e9a34,_0x58b68e=_0x3b4a58['get'](_univerjs_drawing['IDrawingManagerService']),_0x2f0ee6=_0x3b4a58[_0x4fb56b(0x2d9)](_univerjs_engine_render[_0x4fb56b(0x35e)]),_0x26f397=_0x3b4a58[_0x4fb56b(0x2d9)](SheetShapeAdjustController);if(_0x4f865d==null)return!![];if(_0x4f865d[_0x4fb56b(0x440)]>0x0){var _0x1524ac;const _0x2d0f32=(_0x1524ac=_0x2f0ee6['getRenderById'](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x1524ac===void 0x0?void 0x0:_0x1524ac[_0x4fb56b(0x2a4)];if(_0x2d0f32){const {unitId:_0x475a20,subUnitId:_0x3c030d,drawingId:_0x685a98}=_0x4f865d[0x0],_0x2c252c=(0x0,_univerjs_drawing[_0x4fb56b(0x171)])({'unitId':_0x475a20,'subUnitId':_0x3c030d,'drawingId':_0x685a98},void 0x0),_0x1ed6fc=_0x2d0f32['getObjectIncludeInGroup'](_0x2c252c);if(_0x1ed6fc){var _0x36328b;(_0x36328b=_0x2f0ee6[_0x4fb56b(0x17d)](_0x4f865d[0x0][_0x4fb56b(0x4a8)]))===null||_0x36328b===void 0x0||(_0x36328b=_0x36328b[_0x4fb56b(0x2a4)][_0x4fb56b(0x52d)]())===null||_0x36328b===void 0x0||_0x36328b['activeAnObject'](_0x1ed6fc);}}_0x58b68e[_0x4fb56b(0x348)](_0x4f865d),_0x26f397[_0x4fb56b(0x306)](![]);}return!![];}},MenuInsertShapeCommand={'type':_univerjs_core[_0x3e9a34(0x5e6)]['COMMAND'],'id':_0x3e9a34(0x141),'handler':async(_0x22fc0f,_0xa815f3)=>{const _0x3466e0=_0x3e9a34,_0x147aee=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core['IUniverInstanceService']));if(!_0x147aee)return![];const _0x3eab5a=_0x22fc0f['get'](_univerjs_sheets[_0x3466e0(0x10c)])[_0x3466e0(0x39b)]();if(!_0x3eab5a)return![];const _0x343044=_0x22fc0f[_0x3466e0(0x2d9)](_univerjs_core[_0x3466e0(0x3f7)]),{unitId:_0x519431,subUnitId:_0x5dad80}=_0x147aee,{value:_0x1d085e,enhanceParams:_0x37aa7f}=_0xa815f3,{range:_0x4b704f}=_0x3eab5a,_0x578ed4={'unitId':_0x519431,'subUnitId':_0x5dad80,'shapeType':_0x1d085e,'range':_0x4b704f,'shapeId':(0x0,_univerjs_core[_0x3466e0(0x652)])()};if(_0x37aa7f){const _0x455ac3=(0x0,_univerjs_pro_engine_shape[_0x3466e0(0x654)])(_0x1d085e),_0xc5aaae=_0x1d085e===_univerjs_pro_engine_shape[_0x3466e0(0x126)]['Rect'];if(_0x455ac3&&(_0x37aa7f[_0x3466e0(0x399)]||_0x37aa7f[_0x3466e0(0x145)]))_0x578ed4['shapeData']={'ln':{'startArrow':_0x37aa7f['startArrow']?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10e)]}:void 0x0,'endArrow':_0x37aa7f[_0x3466e0(0x145)]?{'type':_univerjs_pro_engine_shape[_0x3466e0(0x2de)][_0x3466e0(0x4ab)],'size':_univerjs_pro_engine_shape['ShapeArrowSizeEnum'][_0x3466e0(0x10f)]}:void 0x0}};if(_0xc5aaae&&(_0x37aa7f[_0x3466e0(0x238)]||_0x37aa7f[_0x3466e0(0x561)]))_0x578ed4[_0x3466e0(0x402)]={'fill':{'fillType':_univerjs_pro_engine_shape[_0x3466e0(0x4bf)][_0x3466e0(0x173)],'color':_0x3466e0(0x148)},'stroke':{'lineStrokeType':_univerjs_pro_engine_shape['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x3466e0(0x29d)},'shapeText':{'isHorizontal':!!_0x37aa7f[_0x3466e0(0x238)]}};}const _0x388831=_0x343044[_0x3466e0(0x623)](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],_0x578ed4);return setTimeout(()=>{const _0x5cefdb=_0x3466e0;_0x343044[_0x5cefdb(0x591)](ActiveDrawingSelectedOperation['id'],[{'unitId':_0x519431,'subUnitId':_0x5dad80,'drawingId':_0x578ed4[_0x5cefdb(0x4ac)]}]);},0xc8),_0x388831;}};let ImageShapeClipController=class ImageShapeClipController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e7723,_0x25d9b2){const _0x4e1a7f=_0x3e9a34;super(),this[_0x4e1a7f(0x48e)]=_0x1e7723,this[_0x4e1a7f(0x4d0)]=_0x25d9b2,this[_0x4e1a7f(0x1d1)](),this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](!![]),this[_0x4e1a7f(0x58e)]({'dispose':()=>this[_0x4e1a7f(0x48e)][_0x4e1a7f(0x13c)](![])});}[_0x3e9a34(0x1d1)](){const _0x3bce1e=_0x3e9a34,_0x13aa28=this[_0x3bce1e(0x48e)],_0x27960a=new Map(),_0x40b701=_0x13aa28[_0x3bce1e(0x417)]((_0x1cdc3f,_0x59180d,_0x1e4e53,_0x4d38f0,_0x272ab1)=>{const _0x5a424c=_0x3bce1e,_0x4872de=_0x59180d;if(_0x4872de===_univerjs_pro_engine_shape[_0x5a424c(0x126)][_0x5a424c(0x319)]||_0x59180d===_0x5a424c(0x3c9))return![];try{let _0x1d9411=_0x27960a[_0x5a424c(0x2d9)](_0x59180d);!_0x1d9411&&(_0x1d9411=new _univerjs_pro_engine_shape['ShapeModel'](_0x4872de,'clip-'+_0x59180d),_0x27960a['set'](_0x59180d,_0x1d9411));if(_0x272ab1)_0x1d9411[_0x5a424c(0x5f0)]({'adjustValues':_0x272ab1},!![]);return _0x1d9411[_0x5a424c(0x566)]({'width':_0x1e4e53,'height':_0x4d38f0}),_0x1d9411[_0x5a424c(0x51c)](_0x1cdc3f,{'left':0x0,'top':0x0,'width':_0x1e4e53,'height':_0x4d38f0});}catch{return![];}});this[_0x3bce1e(0x58e)](_0x40b701),this[_0x3bce1e(0x58e)]({'dispose':()=>_0x27960a[_0x3bce1e(0x54d)]()});}[_0x3e9a34(0x643)](_0x2e2f9f,_0x26f5c8,_0x4edd15,_0x131d31,_0x13e619){const _0xc43114=_0x3e9a34,_0x30a1d5=this[_0xc43114(0x4d0)][_0xc43114(0x5bc)](_0x2e2f9f,_0x26f5c8);if(!_0x30a1d5[_0x4edd15])return;const _0x76b45a={..._0x30a1d5[_0x4edd15],'prstGeom':_0x131d31,'adjustValues':_0x13e619};this['_drawingManagerService']['featurePluginUpdateNotification']([_0x76b45a]);}};ImageShapeClipController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_drawing_ui[_0x3e9a34(0x5a0)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_drawing[_0x3e9a34(0x5d5)]))],ImageShapeClipController);const shapeTypeOptions=[{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x641)],'icon':_0x3e9a34(0x627),'name':_0x3e9a34(0x1ab)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':'ShapeStraightConnector1Icon','name':_0x3e9a34(0x3f2),'endArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2a5)],'icon':_0x3e9a34(0x5b1),'name':_0x3e9a34(0x54c),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x647),'name':_0x3e9a34(0x383)},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x55c),'name':_0x3e9a34(0x25e),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1b9)],'icon':_0x3e9a34(0x1c9),'name':_0x3e9a34(0x282),'endArrow':!![],'startArrow':!![]},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c4),'name':_0x3e9a34(0x472)},{'group':_0x3e9a34(0x4ff),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CurvedConnector3'],'icon':_0x3e9a34(0x240),'name':_0x3e9a34(0x588),'endArrow':!![]},{'group':'line','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x29c)],'icon':_0x3e9a34(0x4c8),'name':_0x3e9a34(0x46a),'endArrow':!![],'startArrow':!![]},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Rect'],'icon':'ShapeRectIcon','name':_0x3e9a34(0x248)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5b5)],'icon':_0x3e9a34(0x1b1),'name':'shape.type.round-rect'},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x197)],'icon':_0x3e9a34(0x48d),'name':_0x3e9a34(0x3aa)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a6)],'icon':'ShapeSnip2SameRectIcon','name':_0x3e9a34(0x3de)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Snip2DiagRect'],'icon':'ShapeSnip2DiagRectIcon','name':_0x3e9a34(0x1ad)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x243)],'icon':_0x3e9a34(0x64b),'name':_0x3e9a34(0x602)},{'group':'rectangle','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d0)],'icon':_0x3e9a34(0x1f9),'name':_0x3e9a34(0x31b)},{'group':'rectangle','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43c)],'icon':_0x3e9a34(0x277),'name':_0x3e9a34(0x66b)},{'group':_0x3e9a34(0x100),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Round2DiagRect'],'icon':_0x3e9a34(0x587),'name':_0x3e9a34(0x251)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x45f),'name':_0x3e9a34(0x5ca),'horizontal':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x163)],'icon':_0x3e9a34(0x376),'name':_0x3e9a34(0x3c1),'vertical':!![]},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x496)],'icon':_0x3e9a34(0x32b),'name':_0x3e9a34(0x620)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4c9)],'icon':_0x3e9a34(0x50a),'name':'shape.type.triangle'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x629)],'icon':_0x3e9a34(0x2b4),'name':_0x3e9a34(0x651)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1b0)],'icon':_0x3e9a34(0x5b6),'name':_0x3e9a34(0x2db)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44a)],'icon':_0x3e9a34(0x1af),'name':'shape.type.trapezoid'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x20d)],'icon':'ShapeDiamondIcon','name':_0x3e9a34(0x3b0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5cc)],'icon':'ShapePentagonIcon','name':_0x3e9a34(0x147)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x622)],'icon':_0x3e9a34(0xea),'name':'shape.type.hexagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Heptagon'],'icon':'ShapeHeptagonIcon','name':_0x3e9a34(0x4c6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x247)],'icon':_0x3e9a34(0x154),'name':'shape.type.octagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5ef)],'icon':_0x3e9a34(0x64d),'name':'shape.type.decagon'},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x215)],'icon':'ShapeDodecagonIcon','name':'shape.type.dodecagon'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44e)],'icon':_0x3e9a34(0x32e),'name':_0x3e9a34(0x168)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Chord'],'icon':_0x3e9a34(0x360),'name':_0x3e9a34(0x1b5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x212)],'icon':'ShapeTeardropIcon','name':_0x3e9a34(0x3ac)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2f9)],'icon':_0x3e9a34(0x5d2),'name':'shape.type.frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3a2)],'icon':_0x3e9a34(0x207),'name':'shape.type.half-frame'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x609)],'icon':_0x3e9a34(0x143),'name':_0x3e9a34(0x5e0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x111)],'icon':'ShapeDiagStripeIcon','name':_0x3e9a34(0x4a0)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Plus'],'icon':_0x3e9a34(0x3db),'name':_0x3e9a34(0x46b)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x1fe)],'icon':_0x3e9a34(0x21e),'name':_0x3e9a34(0x578)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Can'],'icon':_0x3e9a34(0x334),'name':_0x3e9a34(0x612)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x422)],'icon':'ShapeCubeIcon','name':_0x3e9a34(0x5a5)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5a9)],'icon':_0x3e9a34(0x61d),'name':_0x3e9a34(0x339)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Donut'],'icon':_0x3e9a34(0x303),'name':_0x3e9a34(0x4a3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x61b)],'icon':'ShapeNoSmokingIcon','name':_0x3e9a34(0x2f6)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d3)],'icon':_0x3e9a34(0x2b7),'name':_0x3e9a34(0x542)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x586)],'icon':'ShapeFolderCornerIcon','name':_0x3e9a34(0x28f)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x104)],'icon':'ShapeSmileyFaceIcon','name':_0x3e9a34(0x3c8)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x110)],'icon':_0x3e9a34(0x3d8),'name':_0x3e9a34(0x257)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1c0)],'icon':_0x3e9a34(0x48b),'name':_0x3e9a34(0x281)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x52a)],'icon':'ShapeSunIcon','name':_0x3e9a34(0x311)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4c2)],'icon':_0x3e9a34(0x5dd),'name':_0x3e9a34(0x432)},{'group':'basicShape','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Cloud'],'icon':_0x3e9a34(0x4ef),'name':_0x3e9a34(0x4b2)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Arc'],'icon':'ShapeArcIcon','name':_0x3e9a34(0x2b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['BracketPair'],'icon':_0x3e9a34(0x5c1),'name':'shape.type.bracket-pair'},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x125)],'icon':'ShapeBracePairIcon','name':_0x3e9a34(0x3a9)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x454)],'icon':_0x3e9a34(0xe6),'name':_0x3e9a34(0x51d)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5fa)],'icon':_0x3e9a34(0x616),'name':_0x3e9a34(0x3b3)},{'group':_0x3e9a34(0xdd),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftBrace'],'icon':_0x3e9a34(0x424),'name':_0x3e9a34(0x462)},{'group':'basicShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightBrace'],'icon':'ShapeRightBraceIcon','name':'shape.type.right-brace'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x65a)],'icon':_0x3e9a34(0x18e),'name':_0x3e9a34(0x4db)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftArrow'],'icon':_0x3e9a34(0x590),'name':_0x3e9a34(0x1d7)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x384)],'icon':'ShapeUpArrowIcon','name':_0x3e9a34(0x3bf)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e1)],'icon':_0x3e9a34(0xeb),'name':'shape.type.down-arrow'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2da)],'icon':_0x3e9a34(0x24b),'name':_0x3e9a34(0x55f)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3e6)],'icon':_0x3e9a34(0x297),'name':_0x3e9a34(0x45c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x426)],'icon':'ShapeQuadArrowIcon','name':_0x3e9a34(0x11b)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightUpArrow'],'icon':_0x3e9a34(0x2f8),'name':_0x3e9a34(0x22b)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5d9)],'icon':_0x3e9a34(0x134),'name':_0x3e9a34(0x5ce)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['UturnArrow'],'icon':'ShapeUturnArrowIcon','name':_0x3e9a34(0x570)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftUpArrow'],'icon':_0x3e9a34(0x11d),'name':_0x3e9a34(0x36f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x15c)],'icon':_0x3e9a34(0x38b),'name':_0x3e9a34(0x648)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x43b)],'icon':'ShapeCurvedRightArrowIcon','name':_0x3e9a34(0x625)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a1)],'icon':_0x3e9a34(0x164),'name':_0x3e9a34(0x1d0)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c2)],'icon':_0x3e9a34(0x378),'name':_0x3e9a34(0x187)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x51e)],'icon':_0x3e9a34(0x477),'name':_0x3e9a34(0x645)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x42c)],'icon':_0x3e9a34(0x2cf),'name':_0x3e9a34(0x167)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NotchedRightArrow'],'icon':'ShapeNotchedRightArrowIcon','name':_0x3e9a34(0x1df)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f2)],'icon':_0x3e9a34(0x16c),'name':_0x3e9a34(0x62e)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x24a)],'icon':_0x3e9a34(0x1ef),'name':'shape.type.chevron'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['RightArrowCallout'],'icon':_0x3e9a34(0x60f),'name':_0x3e9a34(0x32c)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1a6)],'icon':_0x3e9a34(0x357),'name':_0x3e9a34(0x428)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b5)],'icon':'ShapeLeftArrowCalloutIcon','name':_0x3e9a34(0x35f)},{'group':'blockArrow','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x136)],'icon':'ShapeUpArrowCalloutIcon','name':'shape.type.up-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightArrowCallout'],'icon':_0x3e9a34(0x668),'name':'shape.type.left-right-arrow-callout'},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['QuadArrowCallout'],'icon':_0x3e9a34(0x103),'name':_0x3e9a34(0x369)},{'group':_0x3e9a34(0x22c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x44b)],'icon':_0x3e9a34(0x4d5),'name':_0x3e9a34(0x1c1)},{'group':'equationShape','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4e0)],'icon':_0x3e9a34(0x294),'name':_0x3e9a34(0x1db)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x404)],'icon':'ShapeMathMinusIcon','name':_0x3e9a34(0x3ab)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x4fb)],'icon':_0x3e9a34(0x427),'name':_0x3e9a34(0x569)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x13d)],'icon':_0x3e9a34(0x15f),'name':_0x3e9a34(0x144)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['MathEqual'],'icon':_0x3e9a34(0x545),'name':_0x3e9a34(0x4da)},{'group':_0x3e9a34(0xe4),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x596)],'icon':_0x3e9a34(0x52b),'name':_0x3e9a34(0x414)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartProcess'],'icon':'ShapeFlowChartProcessIcon','name':'shape.type.flow-chart-process'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3cb)],'icon':_0x3e9a34(0x2e9),'name':_0x3e9a34(0x2a1)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x524)],'icon':_0x3e9a34(0x4d2),'name':_0x3e9a34(0x5cf)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x49e)],'icon':_0x3e9a34(0x47e),'name':_0x3e9a34(0x483)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x395)],'icon':_0x3e9a34(0x1ec),'name':_0x3e9a34(0x558)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartInternalStorage'],'icon':_0x3e9a34(0x4ee),'name':_0x3e9a34(0x476)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x16f)],'icon':_0x3e9a34(0x2a3),'name':_0x3e9a34(0x23e)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x435)],'icon':_0x3e9a34(0x3e5),'name':_0x3e9a34(0x25c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ca)],'icon':_0x3e9a34(0x3e9),'name':_0x3e9a34(0x179)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartPreparation'],'icon':_0x3e9a34(0x2c6),'name':_0x3e9a34(0x61a)},{'group':'flowchart','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x283)],'icon':'ShapeFlowChartManualInputIcon','name':_0x3e9a34(0x30d)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x28c)],'icon':_0x3e9a34(0x24c),'name':'shape.type.flow-chart-manual-operation'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x621)],'icon':_0x3e9a34(0x2b1),'name':_0x3e9a34(0x53b)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x528)],'icon':_0x3e9a34(0x595),'name':_0x3e9a34(0x25a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x5f7)],'icon':_0x3e9a34(0x635),'name':_0x3e9a34(0x36a)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x490)],'icon':_0x3e9a34(0x318),'name':_0x3e9a34(0x450)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x135)],'icon':_0x3e9a34(0x2cc),'name':_0x3e9a34(0x349)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1e6)],'icon':'ShapeFlowChartOrIcon','name':_0x3e9a34(0x26f)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bf)],'icon':_0x3e9a34(0x615),'name':_0x3e9a34(0x155)},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['FlowchartSort'],'icon':'ShapeFlowChartSortIcon','name':_0x3e9a34(0x38c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xdf)],'icon':_0x3e9a34(0x2a8),'name':_0x3e9a34(0x18c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ff)],'icon':_0x3e9a34(0x502),'name':'shape.type.flow-chart-merge'},{'group':'flowchart','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x563)],'icon':_0x3e9a34(0x658),'name':'shape.type.flow-chart-online-storage'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b4)],'icon':_0x3e9a34(0x312),'name':_0x3e9a34(0x16e)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x34a)],'icon':'ShapeFlowChartMagneticTapeIcon','name':'shape.type.flow-chart-magnetic-tape'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ef)],'icon':_0x3e9a34(0x3c2),'name':'shape.type.flow-chart-magnetic-disk'},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x617)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x3e9a34(0x36c)},{'group':_0x3e9a34(0x5c0),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x381)],'icon':_0x3e9a34(0x4dd),'name':_0x3e9a34(0x4d8)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x537)],'icon':'ShapeIrregularSeal1Icon','name':_0x3e9a34(0x45e)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5fb)],'icon':'ShapeIrregularSeal2Icon','name':_0x3e9a34(0x34d)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2be)],'icon':_0x3e9a34(0x5b2),'name':_0x3e9a34(0x106)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star5'],'icon':_0x3e9a34(0x47f),'name':_0x3e9a34(0x515)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x457)],'icon':_0x3e9a34(0x2c2),'name':'shape.type.star6'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53e)],'icon':_0x3e9a34(0xf0),'name':_0x3e9a34(0x1bf)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x552)],'icon':'ShapeStar8Icon','name':_0x3e9a34(0x456)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['Star10'],'icon':_0x3e9a34(0x429),'name':_0x3e9a34(0x549)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x582)],'icon':'ShapeStar12Icon','name':_0x3e9a34(0x47a)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x541)],'icon':'ShapeStar16Icon','name':_0x3e9a34(0x14e)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4ed)],'icon':_0x3e9a34(0x394),'name':_0x3e9a34(0x3cd)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x14d)],'icon':_0x3e9a34(0x102),'name':_0x3e9a34(0x231)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x423)],'icon':_0x3e9a34(0x4bb),'name':_0x3e9a34(0x5a4)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2bc)],'icon':_0x3e9a34(0x246),'name':'shape.type.ribbon'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['EllipseRibbon2'],'icon':_0x3e9a34(0x2c3),'name':'shape.type.ellipse-ribbon2'},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x36e)],'icon':_0x3e9a34(0x5b9),'name':_0x3e9a34(0xf6)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x176)],'icon':_0x3e9a34(0x2a2),'name':_0x3e9a34(0x4cc)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf2)],'icon':_0x3e9a34(0x505),'name':_0x3e9a34(0x220)},{'group':_0x3e9a34(0x62a),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2b8)],'icon':_0x3e9a34(0x4d1),'name':_0x3e9a34(0x550)},{'group':'starAndBanner','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x269)],'icon':_0x3e9a34(0x606),'name':_0x3e9a34(0x198)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x2ea)],'icon':'ShapeWedgeRectCalloutIcon','name':'shape.type.wedge-rect-callout'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x56f)],'icon':_0x3e9a34(0x57f),'name':_0x3e9a34(0x42f)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x27b)],'icon':'ShapeWedgeEllipseCalloutIcon','name':_0x3e9a34(0x390)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x665)],'icon':_0x3e9a34(0x397),'name':_0x3e9a34(0x327)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x497)],'icon':_0x3e9a34(0x232),'name':_0x3e9a34(0x3af)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x261)],'icon':'ShapeBorderCallout2Icon','name':_0x3e9a34(0x17c)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x235)],'icon':'ShapeBorderCallout3Icon','name':_0x3e9a34(0xe8)},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x105)],'icon':_0x3e9a34(0x1fa),'name':_0x3e9a34(0x340)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x287)],'icon':_0x3e9a34(0xe9),'name':'shape.type.accent-callout2'},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['AccentCallout3'],'icon':_0x3e9a34(0x152),'name':'shape.type.accent-callout3'},{'group':'callout','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3d7)],'icon':'ShapeCallout1Icon','name':_0x3e9a34(0x1c3)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13a)],'icon':_0x3e9a34(0x3d3),'name':_0x3e9a34(0x37e)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x624)],'icon':_0x3e9a34(0x2c1),'name':_0x3e9a34(0x579)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['AccentBorderCallout1'],'icon':_0x3e9a34(0x117),'name':_0x3e9a34(0x263)},{'group':_0x3e9a34(0x508),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x4f3)],'icon':_0x3e9a34(0x40c),'name':'shape.type.accent-border-callout2'},{'group':'callout','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3ea)],'icon':_0x3e9a34(0x411),'name':_0x3e9a34(0x113)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x166)],'icon':_0x3e9a34(0x157),'name':_0x3e9a34(0x190)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x11c)],'icon':'ShapeLeftRightCircularArrowIcon','name':'shape.type.left-right-circular-arrow'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5ab)],'icon':_0x3e9a34(0x30c),'name':_0x3e9a34(0x1c8)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['LeftRightRibbon'],'icon':_0x3e9a34(0x22a),'name':_0x3e9a34(0x4dc)},{'group':'other','type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x547)],'icon':_0x3e9a34(0x326),'name':_0x3e9a34(0x4a4)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x13f)],'icon':_0x3e9a34(0x38f),'name':_0x3e9a34(0x361)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x119)],'icon':'ShapeGear6Icon','name':_0x3e9a34(0x400)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['Gear9'],'icon':_0x3e9a34(0x3dd),'name':_0x3e9a34(0x59d)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['CornerTabs'],'icon':_0x3e9a34(0x2bb),'name':_0x3e9a34(0xec)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x3e3)],'icon':_0x3e9a34(0x1c4),'name':'shape.type.action-button-back-previous'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x19d)],'icon':_0x3e9a34(0x3d4),'name':_0x3e9a34(0x3ca)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33e)],'icon':'ShapeActionButtonBeginningIcon','name':_0x3e9a34(0x604)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x101)],'icon':_0x3e9a34(0x464),'name':_0x3e9a34(0x3c0)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x12a)],'icon':_0x3e9a34(0x525),'name':_0x3e9a34(0x610)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x53c)],'icon':_0x3e9a34(0xf5),'name':'shape.type.action-button-information'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x387)],'icon':'ShapeActionButtonReturnIcon','name':_0x3e9a34(0x626)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['ActionButtonMovie'],'icon':'ShapeActionButtonMovieIcon','name':_0x3e9a34(0x15a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x271)],'icon':_0x3e9a34(0x41b),'name':_0x3e9a34(0x29a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)]['ActionButtonSound'],'icon':_0x3e9a34(0x4bd),'name':'shape.type.action-button-sound'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x3b7)],'icon':_0x3e9a34(0x3bb),'name':'shape.type.action-button-help'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x138)],'icon':_0x3e9a34(0x655),'name':'shape.type.action-button-blank'},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1d3)],'icon':_0x3e9a34(0x3eb),'name':'shape.type.chart-plus'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum'][_0x3e9a34(0x2b0)],'icon':_0x3e9a34(0xfb),'name':_0x3e9a34(0x270)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x1da)],'icon':_0x3e9a34(0x222),'name':_0x3e9a34(0x1b7)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x33a)],'icon':'ShapeFlowChartOfflineStorageIcon','name':_0x3e9a34(0x1f3)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x57c)],'icon':_0x3e9a34(0x4c3),'name':_0x3e9a34(0x55a)},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x5c4)],'icon':_0x3e9a34(0x40f),'name':_0x3e9a34(0x3e2)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0xf4)],'icon':_0x3e9a34(0xf9),'name':_0x3e9a34(0x1f1)},{'group':'other','type':_univerjs_pro_engine_shape[_0x3e9a34(0x126)][_0x3e9a34(0x26a)],'icon':_0x3e9a34(0x1bb),'name':'shape.type.up-down-arrow-callout'},{'group':_0x3e9a34(0x48c),'type':_univerjs_pro_engine_shape['ShapeTypeEnum']['NonIsoscelesTrapezoid'],'icon':_0x3e9a34(0x2ad),'name':_0x3e9a34(0x43d)}],SHAPE_PICKER_COMPONENT='sheet.shape.picker.component';function ShapePickerComponent({onShapeClick:_0x1d9bcd,excludeGroups:_0x1803e7}){const _0x5c5b3b=_0x3e9a34,_0x19b962=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x5c5b3b(0x398)]),_0x584278=(0x0,_univerjs_ui[_0x5c5b3b(0x663)])(_univerjs_ui[_0x5c5b3b(0x4d9)]),_0x348385=(_0x1803e7?shapeTypeOptions[_0x5c5b3b(0x50f)](_0x353b2c=>!_0x1803e7[_0x5c5b3b(0x516)](_0x353b2c[_0x5c5b3b(0x504)])):shapeTypeOptions)['reduce']((_0x1e17f5,_0x39ba7a)=>{const _0x2ed6c8=_0x5c5b3b;if(!_0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]])_0x1e17f5[_0x39ba7a['group']]=[];return _0x1e17f5[_0x39ba7a[_0x2ed6c8(0x504)]]['push'](_0x39ba7a),_0x1e17f5;},{});return(0x0,react_jsx_runtime['jsx'])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x1ea),'children':Object[_0x5c5b3b(0x180)](_0x348385)[_0x5c5b3b(0x532)](([_0x3f6ea3,_0xb7aa28])=>(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x5c5b3b(0x44f),'children':[(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':_0x5c5b3b(0x29f),'children':_0x19b962['t'](_0x5c5b3b(0x485)+_0x3f6ea3)}),(0x0,react_jsx_runtime[_0x5c5b3b(0x64f)])(_0x5c5b3b(0x418),{'className':'univer-grid\x20univer-grid-cols-10\x20univer-gap-1','children':_0xb7aa28[_0x5c5b3b(0x532)](_0x4e63a7=>{const _0x33a6a1=_0x5c5b3b,_0x354ff9=_0x584278[_0x33a6a1(0x2d9)](_0x4e63a7['icon']);return(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x33a6a1(0x418),{'title':_0x19b962['t'](_0x4e63a7[_0x33a6a1(0x5a7)]),'onClick':()=>_0x1d9bcd(_0x4e63a7),'className':_0x33a6a1(0x356),'children':_0x354ff9&&(0x0,react_jsx_runtime[_0x33a6a1(0x64f)])(_0x354ff9,{'className':_0x33a6a1(0x20b)})},_0x4e63a7[_0x33a6a1(0x5a7)]);})})]},_0x3f6ea3))});}function ImageClipShapePicker(){const _0x4083f3=_0x3e9a34,_0x324809=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_core['LocaleService']),_0x386561=(0x0,_univerjs_ui[_0x4083f3(0x663)])(_univerjs_drawing[_0x4083f3(0x5d5)]),_0x3d811b=(0x0,_univerjs_ui[_0x4083f3(0x663)])(ImageShapeClipController),[_0x539f51,_0x282ab6]=(0x0,react[_0x4083f3(0x5a1)])(![]),_0x8df2f9=_0x2fabea=>{const _0x2c28bc=_0x4083f3,_0x387246=_0x386561[_0x2c28bc(0x4a6)]()[_0x2c28bc(0x536)](_0xce2ca5=>_0xce2ca5[_0x2c28bc(0x5ec)]===_univerjs_core[_0x2c28bc(0x506)][_0x2c28bc(0x140)]);if(!_0x387246)return;const {unitId:_0x1a8eab,subUnitId:_0x22d40a,drawingId:_0x59270a}=_0x387246;_0x3d811b[_0x2c28bc(0x643)](_0x1a8eab,_0x22d40a,_0x59270a,_0x2fabea[_0x2c28bc(0x142)]),_0x282ab6(![]);};return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x4083f3(0x4f0)],{'side':_0x4083f3(0xe1),'open':_0x539f51,'onOpenChange':_0x282ab6,'overlay':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(ShapePickerComponent,{'onShapeClick':_0x8df2f9,'excludeGroups':[_0x4083f3(0x4ff)]}),'children':(0x0,react_jsx_runtime[_0x4083f3(0x64f)])(_univerjs_design[_0x4083f3(0xfe)],{'children':_0x324809['t'](_0x4083f3(0x553))})});}function ShapePicker(){const _0x9b5d81=_0x3e9a34,_0x10b84a=(0x0,_univerjs_ui[_0x9b5d81(0x663)])(_univerjs_core[_0x9b5d81(0x3f7)]),_0x57f7e5=_0x3a4318=>{const _0x526b59=_0x9b5d81;_0x10b84a['executeCommand'](MenuInsertShapeCommand['id'],{'value':_0x3a4318[_0x526b59(0x142)],'enhanceParams':{'endArrow':_0x3a4318[_0x526b59(0x145)],'startArrow':_0x3a4318['startArrow'],'horizontal':_0x3a4318[_0x526b59(0x238)],'vertical':_0x3a4318['vertical']}});};return(0x0,react_jsx_runtime['jsx'])(ShapePickerComponent,{'onShapeClick':_0x57f7e5});}const SHAPE_HORIZONTAL_ALIGN_CHILDREN$1=[{'label':_0x3e9a34(0x4ce),'icon':'LeftJustifyingIcon','value':_univerjs_core[_0x3e9a34(0x5ed)][_0x3e9a34(0x57b)]},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign']['CENTER']},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeBackgroundColorSelectorMenuItemFactory(_0x429ba8){const _0x68c7a1=_0x3e9a34,_0x2bd27a=_0x429ba8['get'](_univerjs_core[_0x68c7a1(0x409)]),_0x2b4014=_0x429ba8[_0x68c7a1(0x2d9)](_univerjs_core[_0x68c7a1(0x181)]);return{'id':_univerjs_docs_ui[_0x68c7a1(0x2d3)]['id'],'tooltip':_0x68c7a1(0x26b),'type':_univerjs_ui[_0x68c7a1(0x20e)][_0x68c7a1(0x351)],'icon':_0x68c7a1(0x62c),'selections':[{'label':{'name':_univerjs_ui[_0x68c7a1(0x2e7)],'hoverable':![],'selectable':![]}}],'value$':new rxjs[(_0x68c7a1(0x2f1))](_0x5d3210=>{const _0x25af19=_0x68c7a1;_0x5d3210[_0x25af19(0x5c7)](_0x2b4014[_0x25af19(0x1f2)](_0x25af19(0x195)));}),'hidden$':_0x2bd27a[_0x68c7a1(0x650)](_univerjs_core[_0x68c7a1(0x130)])[_0x68c7a1(0x1e2)]((0x0,rxjs[_0x68c7a1(0x439)])(_0x2bd27a[_0x68c7a1(0x518)](_univerjs_core[_0x68c7a1(0x130)])),(0x0,rxjs[_0x68c7a1(0x532)])(_0x407467=>!_0x407467))};}function ShapeResetBackgroundColorMenuItemFactory(_0x4d80c8){const _0x39a11e=_0x3e9a34,_0x98bd16=_0x4d80c8[_0x39a11e(0x2d9)](_univerjs_core[_0x39a11e(0x409)]);return{'id':_univerjs_docs_ui[_0x39a11e(0x517)]['id'],'type':_univerjs_ui[_0x39a11e(0x20e)][_0x39a11e(0x453)],'title':_0x39a11e(0x28d),'hidden$':_0x98bd16[_0x39a11e(0x650)](_univerjs_core[_0x39a11e(0x130)])[_0x39a11e(0x1e2)]((0x0,rxjs['startWith'])(_0x98bd16[_0x39a11e(0x518)](_univerjs_core[_0x39a11e(0x130)])),(0x0,rxjs[_0x39a11e(0x532)])(_0x2fdbed=>!_0x2fdbed))};}const SHAPE_HORIZONTAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x4ce),'icon':_0x3e9a34(0x314),'value':_univerjs_core[_0x3e9a34(0x5ed)]['LEFT']},{'label':_0x3e9a34(0x667),'icon':'HorizontallyIcon','value':_univerjs_core['HorizontalAlign'][_0x3e9a34(0x2dc)]},{'label':_0x3e9a34(0x54a),'icon':_0x3e9a34(0x242),'value':_univerjs_core[_0x3e9a34(0x5ed)]['RIGHT']}];function ShapeTextHorizontalAlignMenuItemFactory(_0x801109){const _0x5de908=_0x3e9a34;var _0x37d627;const _0x1f4e18=_0x801109[_0x5de908(0x2d9)](_univerjs_core[_0x5de908(0x3f7)]),_0x3b4751=_0x801109['get'](_univerjs_core['IContextService']),_0x351439=_0x801109['get'](_univerjs_sheets_drawing[_0x5de908(0x275)]),_0x5e641c=_0x801109['get'](ShapeTextEditingService),_0x539920=_0x801109[_0x5de908(0x2d9)](_univerjs_pro_sheets_shape[_0x5de908(0x3a1)]),_0x31a664=_univerjs_core['HorizontalAlign'][_0x5de908(0x57b)],_0x39f52c=()=>{const _0x4aa7a0=_0x5de908;var _0xf6e70;const _0x5b8e2f=_0x351439['getFocusDrawings']()[_0x4aa7a0(0x50f)](_0x459a07=>_0x459a07[_0x4aa7a0(0x5ec)]===_univerjs_core[_0x4aa7a0(0x506)][_0x4aa7a0(0x3fc)]);if(_0x5b8e2f[_0x4aa7a0(0x440)]!==0x1)return _0x31a664;const _0x37cd27=_0x5e641c[_0x4aa7a0(0x512)](),_0x30fbae=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x4a8)])||_0x5b8e2f[0x0][_0x4aa7a0(0x4a8)],_0x44bf87=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27[_0x4aa7a0(0x5d6)])||_0x5b8e2f[0x0][_0x4aa7a0(0x5d6)],_0x17edcc=(_0x37cd27===null||_0x37cd27===void 0x0?void 0x0:_0x37cd27['shapeId'])||_0x5b8e2f[0x0][_0x4aa7a0(0x4c5)],_0x56100f=_0x539920['getShapeModel'](_0x30fbae,_0x44bf87,_0x17edcc);if(!_0x56100f)return _0x31a664;const _0x740db7=_0x56100f[_0x4aa7a0(0x459)]();if(!_0x740db7||!(_0x4aa7a0(0xe0)in _0x740db7))return _0x31a664;const _0x5431da=_0x740db7[_0x4aa7a0(0xe0)];return(_0xf6e70=_0x5431da===null||_0x5431da===void 0x0?void 0x0:_0x5431da['ha'])!==null&&_0xf6e70!==void 0x0?_0xf6e70:_0x31a664;};return{'id':SetShapeTextHorizontalAlignCommand['id'],'icon':(_0x37d627=SHAPE_HORIZONTAL_ALIGN_CHILDREN[_0x5de908(0x536)](_0x5cbd40=>_0x5cbd40[_0x5de908(0x115)]===_0x31a664))===null||_0x37d627===void 0x0?void 0x0:_0x37d627['icon'],'tooltip':_0x5de908(0x638),'type':_univerjs_ui[_0x5de908(0x20e)]['SELECTOR'],'selections':SHAPE_HORIZONTAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x11a2fc=>{const _0xb5c573=_0x5de908,_0xfa089a=_0x1f4e18[_0xb5c573(0x3b5)](_0x4f44c3=>{const _0x148ddc=_0xb5c573;if(_0x4f44c3['id']===SetShapeTextHorizontalAlignCommand['id'])_0x11a2fc[_0x148ddc(0x5c7)](_0x39f52c());}),_0x1eb1aa=_0x5e641c[_0xb5c573(0x186)][_0xb5c573(0x562)](()=>{const _0x396970=_0xb5c573;_0x11a2fc[_0x396970(0x5c7)](_0x39f52c());});return _0x11a2fc[_0xb5c573(0x5c7)](_0x39f52c()),()=>{const _0x4a4ea2=_0xb5c573;_0xfa089a[_0x4a4ea2(0x199)](),_0x1eb1aa[_0x4a4ea2(0x54e)]();};}),'hidden$':_0x3b4751[_0x5de908(0x650)](_univerjs_core[_0x5de908(0x130)])['pipe']((0x0,rxjs[_0x5de908(0x532)])(_0xb90316=>!_0xb90316))};}const SHAPE_VERTICAL_ALIGN_CHILDREN=[{'label':_0x3e9a34(0x14a),'icon':_0x3e9a34(0x494),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x2ab)]},{'label':_0x3e9a34(0x56d),'icon':_0x3e9a34(0x3a3),'value':_univerjs_core[_0x3e9a34(0x48a)]['MIDDLE']},{'label':_0x3e9a34(0x267),'icon':_0x3e9a34(0x628),'value':_univerjs_core[_0x3e9a34(0x48a)][_0x3e9a34(0x573)]}];function ShapeVerticalAlignMenuItemFactory(_0x5b68dc){const _0x339039=_0x3e9a34;var _0x497628;const _0x350fcc=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x3f7)]),_0x16005f=_0x5b68dc[_0x339039(0x2d9)](_univerjs_core[_0x339039(0x409)]),_0x2f70c6=_0x5b68dc[_0x339039(0x2d9)](_univerjs_sheets_drawing[_0x339039(0x275)]),_0x21c598=_0x5b68dc[_0x339039(0x2d9)](ShapeTextEditingService),_0x3f4fa8=_0x5b68dc[_0x339039(0x2d9)](_univerjs_pro_sheets_shape[_0x339039(0x3a1)]),_0x5adfa4=_univerjs_core['VerticalAlign'][_0x339039(0x2ab)],_0x1ae25f=()=>{const _0xfc0c4f=_0x339039;var _0xc160de;const _0x2bad9f=_0x2f70c6[_0xfc0c4f(0x4a6)]()[_0xfc0c4f(0x50f)](_0x363f92=>_0x363f92[_0xfc0c4f(0x5ec)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x2bad9f['length']!==0x1)return _0x5adfa4;const _0x45b727=_0x21c598[_0xfc0c4f(0x512)](),_0x35b0e7=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4a8)])||_0x2bad9f[0x0][_0xfc0c4f(0x4a8)],_0x17588a=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x5d6)])||_0x2bad9f[0x0]['subUnitId'],_0x315996=(_0x45b727===null||_0x45b727===void 0x0?void 0x0:_0x45b727[_0xfc0c4f(0x4ac)])||_0x2bad9f[0x0][_0xfc0c4f(0x4c5)],_0x5f021b=_0x3f4fa8[_0xfc0c4f(0x533)](_0x35b0e7,_0x17588a,_0x315996);if(!_0x5f021b)return _0x5adfa4;const _0x4e69f3=_0x5f021b['getShapeTextData']();if(!_0x4e69f3||!('dataModel'in _0x4e69f3))return _0x5adfa4;const _0x5089ab=_0x4e69f3[_0xfc0c4f(0xe0)];return(_0xc160de=_0x5089ab===null||_0x5089ab===void 0x0?void 0x0:_0x5089ab['va'])!==null&&_0xc160de!==void 0x0?_0xc160de:_0x5adfa4;};return{'id':SetShapeTextVerticalAlignCommand['id'],'icon':(_0x497628=SHAPE_VERTICAL_ALIGN_CHILDREN[_0x339039(0x536)](_0x1b6a30=>_0x1b6a30['value']===_0x5adfa4))===null||_0x497628===void 0x0?void 0x0:_0x497628[_0x339039(0x2e8)],'tooltip':_0x339039(0x29e),'type':_univerjs_ui[_0x339039(0x20e)][_0x339039(0x2f2)],'selections':SHAPE_VERTICAL_ALIGN_CHILDREN,'value$':new rxjs['Observable'](_0x1d6d7b=>{const _0x2dac68=_0x339039,_0x52a415=_0x350fcc[_0x2dac68(0x3b5)](_0x45def8=>{if(_0x45def8['id']===SetShapeTextVerticalAlignCommand['id'])_0x1d6d7b['next'](_0x1ae25f());}),_0x59731a=_0x21c598[_0x2dac68(0x186)]['subscribe'](()=>{const _0xbe330f=_0x2dac68;_0x1d6d7b[_0xbe330f(0x5c7)](_0x1ae25f());});return _0x1d6d7b['next'](_0x1ae25f()),()=>{_0x52a415['dispose'](),_0x59731a['unsubscribe']();};}),'hidden$':_0x16005f['subscribeContextValue$'](_univerjs_core['FOCUSING_COMMON_DRAWINGS'])[_0x339039(0x1e2)]((0x0,rxjs[_0x339039(0x532)])(_0x4325dd=>!_0x4325dd))};}function ShapeMenuItemFactory(_0x3085ec){const _0x871483=_0x3e9a34,_0x1ea2a5=_0x3085ec[_0x871483(0x2d9)](_univerjs_core['IUniverInstanceService']);return{'id':MenuInsertShapeCommand['id'],'type':_univerjs_ui[_0x871483(0x20e)][_0x871483(0x2f2)],'selections':[{'label':{'name':SHAPE_PICKER_COMPONENT,'hoverable':![],'selectable':![],'props':{'id':MenuInsertShapeCommand['id']}}}],'icon':_0x871483(0x4e7),'tooltip':_0x871483(0x4e2),'activated$':(0x0,_univerjs_sheets_ui['deriveStateFromActiveSheet$'])(_0x1ea2a5,![],()=>new rxjs[(_0x871483(0x2f1))](_0x4eb459=>{const _0x121df8=_0x871483;_0x4eb459[_0x121df8(0x5c7)](![]);})),'hidden$':(0x0,_univerjs_ui[_0x871483(0x467)])(_0x3085ec,_univerjs_core[_0x871483(0x4cd)]['UNIVER_SHEET']),'disabled$':(0x0,_univerjs_sheets_ui[_0x871483(0x364)])(_0x3085ec)};}const menuSchema={[_univerjs_ui[_0x3e9a34(0x482)][_0x3e9a34(0x58a)]]:{[_univerjs_ui[_0x3e9a34(0x2c5)][_0x3e9a34(0xe5)]]:{[SetShapeTextVerticalAlignCommand['id']]:{'order':3.5,'menuItemFactory':ShapeVerticalAlignMenuItemFactory},[SetShapeTextHorizontalAlignCommand['id']]:{'order':3.4,'menuItemFactory':ShapeTextHorizontalAlignMenuItemFactory}},[_univerjs_ui['RibbonStartGroup'][_0x3e9a34(0x401)]]:{[_univerjs_docs_ui[_0x3e9a34(0x2d3)]['id']]:{'order':0x1,'menuItemFactory':ShapeBackgroundColorSelectorMenuItemFactory,[_univerjs_docs_ui['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ShapeResetBackgroundColorMenuItemFactory}}}},[_univerjs_ui[_0x3e9a34(0x644)][_0x3e9a34(0x415)]]:{[MenuInsertShapeCommand['id']]:{'order':0x4,'menuItemFactory':ShapeMenuItemFactory}}};let SheetsShapeUIController=class SheetsShapeUIController extends _univerjs_core['Disposable']{constructor(_0x381bc7,_0x3c102d,_0x4936ff,_0x23e384,_0x3846e4,_0x6610a3,_0x3412a1,_0x3f7573,_0x3f334b,_0x2ec526,_0x5761bf){const _0x293721=_0x3e9a34;super(),this[_0x293721(0x5e1)]=_0x381bc7,this['_sheetInterceptorService']=_0x3c102d,this[_0x293721(0x184)]=_0x4936ff,this['_menuManagerService']=_0x23e384,this[_0x293721(0xfd)]=_0x3846e4,this[_0x293721(0x5d4)]=_0x6610a3,this[_0x293721(0x5f4)]=_0x3412a1,this[_0x293721(0x363)]=_0x3f7573,this[_0x293721(0x4d0)]=_0x3f334b,this[_0x293721(0x5bb)]=_0x2ec526,this[_0x293721(0x17e)]=_0x5761bf,_defineProperty(this,_0x293721(0x3fa),null),_defineProperty(this,_0x293721(0x1e9),null),_defineProperty(this,_0x293721(0x661),![]),this[_0x293721(0x65c)](),this[_0x293721(0x341)](),this[_0x293721(0x58e)](this[_0x293721(0x5e1)][_0x293721(0x3c7)](_univerjs_core[_0x293721(0x4cd)][_0x293721(0x58b)])[_0x293721(0x562)](_0x17dfbc=>{const _0x34defc=_0x293721;var _0x312e98;if(!_0x17dfbc)(_0x312e98=this[_0x34defc(0x3fa)])===null||_0x312e98===void 0x0||_0x312e98[_0x34defc(0x199)]();})),this[_0x293721(0x41a)](),this['_registerShapeMenu']();}[_0x3e9a34(0x341)](){const _0x25f4ed=_0x3e9a34;this['_menuManagerService'][_0x25f4ed(0xff)](menuSchema);}[_0x3e9a34(0x388)](){const _0x39ab8f=_0x3e9a34;this[_0x39ab8f(0x5bb)]['registerFeatureMenu'](_univerjs_core[_0x39ab8f(0x506)][_0x39ab8f(0x3fc)],this[_0x39ab8f(0x509)][_0x39ab8f(0x3b8)](this)),this[_0x39ab8f(0x5bb)][_0x39ab8f(0x5a2)](_univerjs_core[_0x39ab8f(0x506)]['DRAWING_SHAPE'],0x6,0x4);}[_0x3e9a34(0x509)](_0x503cc7,_0x2391b4,_0x54191f,_0x3390cd){const _0xf6de10=_0x3e9a34;return[{'label':_0xf6de10(0x594),'index':0x0,'commandId':OpenSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':_0x3390cd===_univerjs_core[_0xf6de10(0x506)][_0xf6de10(0x49d)]},{'label':'sheets-shape.deleteShape','index':0x1,'commandId':_univerjs_sheets_drawing[_0xf6de10(0x259)]['id'],'commandParams':{'unitId':_0x503cc7,'drawings':[{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f,'drawingType':_0x3390cd}]},'disable':![]},{'label':_0xf6de10(0x19e),'index':0x2,'commandId':CloseSheetShapeFormatPanelOperation['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'drawingId':_0x54191f},'disable':![]},{'label':_0xf6de10(0x26e),'index':0x3,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipH':!![]},'disable':![]},{'label':_0xf6de10(0x17f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x189)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'flipV':!![]},'disable':![]},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':0x5a},'disable':![]},{'label':_0xf6de10(0x12f),'index':0x4,'commandId':_univerjs_pro_sheets_shape[_0xf6de10(0x1fd)]['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f,'rotate':-0x5a},'disable':![]},{'label':_0xf6de10(0x172),'index':0x4,'commandId':_univerjs_pro_sheets_shape['SetSheetsShapeTextVerticalToggleCommand']['id'],'commandParams':{'unitId':_0x503cc7,'subUnitId':_0x2391b4,'shapeId':_0x54191f},'disable':![]}];}['_getShapeInfo'](_0x5a46bf,_0x289bf7,_0x30b23b){const _0x2df3dd=_0x3e9a34,_0x227dd6=this[_0x2df3dd(0xfd)][_0x2df3dd(0x1a0)](_0x5a46bf,_0x289bf7,_0x30b23b),_0x4efb78=this[_0x2df3dd(0xfd)][_0x2df3dd(0x153)](_0x5a46bf,_0x289bf7,_0x30b23b);if(_0x227dd6!==void 0x0&&_0x4efb78!==void 0x0)return{'shapeData':_0x4efb78,'shapeId':_0x30b23b,'shapeType':_0x227dd6,'unitId':_0x5a46bf,'subUnitId':_0x289bf7,'disableShapeOption':![]};return null;}['_registerOperations'](){const _0x389275=_0x3e9a34;this[_0x389275(0x58e)](this[_0x389275(0x363)]['onCommandExecuted'](_0x48fee3=>{const _0x2b2bf0=_0x389275;if(_0x48fee3['id']===OpenSheetShapeFormatPanelOperation['id']){const {unitId:_0x2abfb9,subUnitId:_0x453ce8,drawingId:_0x512e2a}=_0x48fee3[_0x2b2bf0(0xee)];this['_activeShapeInfo']=this[_0x2b2bf0(0x2f0)](_0x2abfb9,_0x453ce8,_0x512e2a),this[_0x2b2bf0(0x2d8)]();}_0x48fee3['id']===CloseSheetShapeFormatPanelOperation['id']&&(this[_0x2b2bf0(0x1e9)]=null,this['_closeShapeEditPanel']());if(_0x48fee3['id']===_univerjs_pro_sheets_shape['UpdateSheetsShapeDataMutation']['id']){const {unitId:_0x18a9d2,subUnitId:_0x437d7c,shapeId:_0x52195a}=_0x48fee3[_0x2b2bf0(0xee)];if(this[_0x2b2bf0(0x1e9)]&&this['_activeShapeInfo'][_0x2b2bf0(0x4ac)]===_0x52195a){const _0x360e9=this[_0x2b2bf0(0x2f0)](_0x18a9d2,_0x437d7c,_0x52195a);if(_0x360e9)this['_activeShapeInfo']=_0x360e9;}}})),this[_0x389275(0x58e)](this[_0x389275(0x4d0)][_0x389275(0x188)]['subscribe'](_0x56ee22=>{const _0x402c7a=_0x389275;if(this[_0x402c7a(0x661)]===![])return;if(_0x56ee22[_0x402c7a(0x440)]===0x0){this['_activeShapeInfo']=null,this[_0x402c7a(0x65b)]();return;}if(_0x56ee22[_0x402c7a(0x440)]===0x1&&_0x56ee22[0x0]['drawingType']===_univerjs_core[_0x402c7a(0x506)][_0x402c7a(0x3fc)]){this[_0x402c7a(0x1e9)]=this['_getShapeInfo'](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x2d8)]();return;}}const _0x185976=_0x56ee22[_0x402c7a(0x50f)](_0x17e3f0=>{const _0x3089e7=_0x402c7a;return _0x17e3f0[_0x3089e7(0x5ec)]===_univerjs_core[_0x3089e7(0x506)][_0x3089e7(0x3fc)];});if(_0x56ee22[_0x402c7a(0x440)]>0x1&&_0x185976[_0x402c7a(0x440)]===_0x56ee22[_0x402c7a(0x440)]){this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0]['unitId'],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0][_0x402c7a(0x4c5)]);if(this['_activeShapeInfo']){this['_openShapeEditPanel']();return;}}else{this[_0x402c7a(0x1e9)]=this[_0x402c7a(0x2f0)](_0x56ee22[0x0][_0x402c7a(0x4a8)],_0x56ee22[0x0][_0x402c7a(0x5d6)],_0x56ee22[0x0]['drawingId']);if(this[_0x402c7a(0x1e9)]){this[_0x402c7a(0x1e9)][_0x402c7a(0x268)]=!![],this[_0x402c7a(0x2d8)]();return;}}this[_0x402c7a(0x65b)]();}));}[_0x3e9a34(0x65c)](){const _0x3c635b=_0x3e9a34;[[_0x3c635b(0x4e7),_univerjs_icons[_0x3c635b(0x4e7)]],[_0x3c635b(0x117),_univerjs_icons[_0x3c635b(0x117)]],[_0x3c635b(0x40c),_univerjs_icons[_0x3c635b(0x40c)]],[_0x3c635b(0x411),_univerjs_icons[_0x3c635b(0x411)]],[_0x3c635b(0x1fa),_univerjs_icons[_0x3c635b(0x1fa)]],['ShapeAccentCallout2Icon',_univerjs_icons[_0x3c635b(0xe9)]],[_0x3c635b(0x152),_univerjs_icons[_0x3c635b(0x152)]],['ShapeActionButtonBackPreviousIcon',_univerjs_icons[_0x3c635b(0x1c4)]],[_0x3c635b(0x42b),_univerjs_icons[_0x3c635b(0x42b)]],['ShapeActionButtonBlankIcon',_univerjs_icons[_0x3c635b(0x655)]],['ShapeActionButtonDocumentIcon',_univerjs_icons[_0x3c635b(0x41b)]],[_0x3c635b(0x464),_univerjs_icons[_0x3c635b(0x464)]],[_0x3c635b(0x3d4),_univerjs_icons['ShapeActionButtonForwardNextIcon']],[_0x3c635b(0x3bb),_univerjs_icons[_0x3c635b(0x3bb)]],[_0x3c635b(0x525),_univerjs_icons[_0x3c635b(0x525)]],[_0x3c635b(0xf5),_univerjs_icons[_0x3c635b(0xf5)]],[_0x3c635b(0x3f6),_univerjs_icons[_0x3c635b(0x3f6)]],[_0x3c635b(0x49f),_univerjs_icons[_0x3c635b(0x49f)]],[_0x3c635b(0x4bd),_univerjs_icons[_0x3c635b(0x4bd)]],[_0x3c635b(0x21b),_univerjs_icons['ShapeArcIcon']],[_0x3c635b(0x134),_univerjs_icons[_0x3c635b(0x134)]],['ShapeBentConnector3Arrow1Icon',_univerjs_icons['ShapeBentConnector3Arrow1Icon']],['ShapeBentConnector3Arrow2Icon',_univerjs_icons[_0x3c635b(0x1c9)]],[_0x3c635b(0x647),_univerjs_icons[_0x3c635b(0x647)]],[_0x3c635b(0x38b),_univerjs_icons[_0x3c635b(0x38b)]],[_0x3c635b(0x61d),_univerjs_icons[_0x3c635b(0x61d)]],[_0x3c635b(0x2b7),_univerjs_icons['ShapeBlockArcIcon']],[_0x3c635b(0x232),_univerjs_icons[_0x3c635b(0x232)]],[_0x3c635b(0x631),_univerjs_icons[_0x3c635b(0x631)]],[_0x3c635b(0x560),_univerjs_icons[_0x3c635b(0x560)]],['ShapeBracePairIcon',_univerjs_icons['ShapeBracePairIcon']],[_0x3c635b(0x5c1),_univerjs_icons[_0x3c635b(0x5c1)]],[_0x3c635b(0x393),_univerjs_icons[_0x3c635b(0x393)]],[_0x3c635b(0x3d3),_univerjs_icons[_0x3c635b(0x3d3)]],['ShapeCallout3Icon',_univerjs_icons[_0x3c635b(0x2c1)]],['ShapeCanIcon',_univerjs_icons[_0x3c635b(0x334)]],[_0x3c635b(0x3eb),_univerjs_icons['ShapeChartPlusIcon']],['ShapeChartStarIcon',_univerjs_icons[_0x3c635b(0xfb)]],[_0x3c635b(0x222),_univerjs_icons[_0x3c635b(0x222)]],[_0x3c635b(0x1ef),_univerjs_icons['ShapeChevronIcon']],['ShapeChordIcon',_univerjs_icons['ShapeChordIcon']],[_0x3c635b(0x4d5),_univerjs_icons[_0x3c635b(0x4d5)]],[_0x3c635b(0x397),_univerjs_icons[_0x3c635b(0x397)]],[_0x3c635b(0x4ef),_univerjs_icons[_0x3c635b(0x4ef)]],['ShapeCornerIcon',_univerjs_icons[_0x3c635b(0x143)]],[_0x3c635b(0x2bb),_univerjs_icons[_0x3c635b(0x2bb)]],[_0x3c635b(0x443),_univerjs_icons[_0x3c635b(0x443)]],['ShapeCurvedConnector3Arrow1Icon',_univerjs_icons[_0x3c635b(0x240)]],[_0x3c635b(0x4c8),_univerjs_icons[_0x3c635b(0x4c8)]],[_0x3c635b(0x4c4),_univerjs_icons['ShapeCurvedConnector3Icon']],[_0x3c635b(0x477),_univerjs_icons[_0x3c635b(0x477)]],['ShapeCurvedLeftArrowIcon',_univerjs_icons['ShapeCurvedLeftArrowIcon']],[_0x3c635b(0x291),_univerjs_icons[_0x3c635b(0x291)]],['ShapeCurvedUpArrowIcon',_univerjs_icons[_0x3c635b(0x378)]],[_0x3c635b(0x64d),_univerjs_icons[_0x3c635b(0x64d)]],[_0x3c635b(0x37d),_univerjs_icons['ShapeDiagStripeIcon']],[_0x3c635b(0x463),_univerjs_icons[_0x3c635b(0x463)]],[_0x3c635b(0x17b),_univerjs_icons[_0x3c635b(0x17b)]],['ShapeDonutIcon',_univerjs_icons[_0x3c635b(0x303)]],[_0x3c635b(0x606),_univerjs_icons[_0x3c635b(0x606)]],['ShapeDownArrowCalloutIcon',_univerjs_icons[_0x3c635b(0x357)]],[_0x3c635b(0xeb),_univerjs_icons[_0x3c635b(0xeb)]],[_0x3c635b(0x32b),_univerjs_icons[_0x3c635b(0x32b)]],[_0x3c635b(0x2c3),_univerjs_icons[_0x3c635b(0x2c3)]],[_0x3c635b(0x5b9),_univerjs_icons[_0x3c635b(0x5b9)]],[_0x3c635b(0x2e9),_univerjs_icons[_0x3c635b(0x2e9)]],['ShapeFlowChartCollateIcon',_univerjs_icons[_0x3c635b(0x615)]],['ShapeFlowChartConnectorIcon',_univerjs_icons['ShapeFlowChartConnectorIcon']],[_0x3c635b(0x4d2),_univerjs_icons['ShapeFlowChartDecisionIcon']],['ShapeFlowChartDelayIcon',_univerjs_icons['ShapeFlowChartDelayIcon']],[_0x3c635b(0x4dd),_univerjs_icons[_0x3c635b(0x4dd)]],[_0x3c635b(0x2a3),_univerjs_icons[_0x3c635b(0x2a3)]],[_0x3c635b(0x2a8),_univerjs_icons[_0x3c635b(0x2a8)]],['ShapeFlowChartInputOutputIcon',_univerjs_icons[_0x3c635b(0x47e)]],[_0x3c635b(0x4ee),_univerjs_icons[_0x3c635b(0x4ee)]],[_0x3c635b(0x3c2),_univerjs_icons[_0x3c635b(0x3c2)]],[_0x3c635b(0x230),_univerjs_icons['ShapeFlowChartMagneticDrumIcon']],['ShapeFlowChartMagneticTapeIcon',_univerjs_icons[_0x3c635b(0x29b)]],[_0x3c635b(0x4b7),_univerjs_icons['ShapeFlowChartManualInputIcon']],[_0x3c635b(0x24c),_univerjs_icons[_0x3c635b(0x24c)]],[_0x3c635b(0x502),_univerjs_icons['ShapeFlowChartMergeIcon']],[_0x3c635b(0x3e5),_univerjs_icons[_0x3c635b(0x3e5)]],[_0x3c635b(0x2eb),_univerjs_icons[_0x3c635b(0x2eb)]],[_0x3c635b(0x595),_univerjs_icons['ShapeFlowChartOffpageConnectorIcon']],[_0x3c635b(0x658),_univerjs_icons[_0x3c635b(0x658)]],[_0x3c635b(0x4b3),_univerjs_icons[_0x3c635b(0x4b3)]],[_0x3c635b(0x1ec),_univerjs_icons['ShapeFlowChartPredefinedProcessIcon']],[_0x3c635b(0x2c6),_univerjs_icons[_0x3c635b(0x2c6)]],[_0x3c635b(0x59a),_univerjs_icons['ShapeFlowChartProcessIcon']],[_0x3c635b(0x635),_univerjs_icons[_0x3c635b(0x635)]],['ShapeFlowChartPunchedTapeIcon',_univerjs_icons[_0x3c635b(0x318)]],[_0x3c635b(0x60e),_univerjs_icons[_0x3c635b(0x60e)]],[_0x3c635b(0x2cc),_univerjs_icons[_0x3c635b(0x2cc)]],['ShapeFlowChartTerminatorIcon',_univerjs_icons[_0x3c635b(0x3e9)]],[_0x3c635b(0x23d),_univerjs_icons['ShapeFolderCornerIcon']],[_0x3c635b(0x5d2),_univerjs_icons[_0x3c635b(0x5d2)]],[_0x3c635b(0x38f),_univerjs_icons[_0x3c635b(0x38f)]],[_0x3c635b(0x577),_univerjs_icons[_0x3c635b(0x577)]],['ShapeGear9Icon',_univerjs_icons[_0x3c635b(0x3dd)]],[_0x3c635b(0x207),_univerjs_icons['ShapeHalfFrameIcon']],['ShapeHeartIcon',_univerjs_icons['ShapeHeartIcon']],[_0x3c635b(0x4e6),_univerjs_icons[_0x3c635b(0x4e6)]],['ShapeHexagonIcon',_univerjs_icons[_0x3c635b(0xea)]],['ShapeHomePlateIcon',_univerjs_icons[_0x3c635b(0x16c)]],[_0x3c635b(0x505),_univerjs_icons[_0x3c635b(0x505)]],[_0x3c635b(0x2fd),_univerjs_icons[_0x3c635b(0x2fd)]],[_0x3c635b(0x15e),_univerjs_icons[_0x3c635b(0x15e)]],[_0x3c635b(0x10a),_univerjs_icons[_0x3c635b(0x10a)]],['ShapeLeftArrowIcon',_univerjs_icons[_0x3c635b(0x590)]],[_0x3c635b(0x424),_univerjs_icons[_0x3c635b(0x424)]],[_0x3c635b(0xe6),_univerjs_icons[_0x3c635b(0xe6)]],[_0x3c635b(0x157),_univerjs_icons['ShapeLeftCircularArrowIcon']],[_0x3c635b(0x668),_univerjs_icons[_0x3c635b(0x668)]],[_0x3c635b(0x24b),_univerjs_icons[_0x3c635b(0x24b)]],[_0x3c635b(0x4a5),_univerjs_icons[_0x3c635b(0x4a5)]],[_0x3c635b(0x22a),_univerjs_icons[_0x3c635b(0x22a)]],[_0x3c635b(0x2f8),_univerjs_icons['ShapeLeftRightUpArrowIcon']],['ShapeLeftUpArrowIcon',_univerjs_icons[_0x3c635b(0x11d)]],[_0x3c635b(0x48b),_univerjs_icons[_0x3c635b(0x48b)]],[_0x3c635b(0x627),_univerjs_icons[_0x3c635b(0x627)]],[_0x3c635b(0x4c3),_univerjs_icons[_0x3c635b(0x4c3)]],[_0x3c635b(0x15f),_univerjs_icons[_0x3c635b(0x15f)]],[_0x3c635b(0x545),_univerjs_icons[_0x3c635b(0x545)]],['ShapeMathMinusIcon',_univerjs_icons['ShapeMathMinusIcon']],[_0x3c635b(0x427),_univerjs_icons[_0x3c635b(0x427)]],[_0x3c635b(0x52b),_univerjs_icons[_0x3c635b(0x52b)]],[_0x3c635b(0x294),_univerjs_icons[_0x3c635b(0x294)]],['ShapeMoonIcon',_univerjs_icons[_0x3c635b(0x5dd)]],['ShapeNoSmokingIcon',_univerjs_icons['ShapeNoSmokingIcon']],[_0x3c635b(0x2ad),_univerjs_icons['ShapeNonIsoscelesTrapezoidIcon']],['ShapeNotchedRightArrowIcon',_univerjs_icons[_0x3c635b(0xe3)]],[_0x3c635b(0x154),_univerjs_icons['ShapeOctagonIcon']],[_0x3c635b(0x5b6),_univerjs_icons['ShapeParallelogramIcon']],[_0x3c635b(0x338),_univerjs_icons[_0x3c635b(0x338)]],[_0x3c635b(0x32e),_univerjs_icons[_0x3c635b(0x32e)]],[_0x3c635b(0x326),_univerjs_icons['ShapePieWedgeIcon']],['ShapePlaqueIcon',_univerjs_icons[_0x3c635b(0x21e)]],[_0x3c635b(0x40f),_univerjs_icons[_0x3c635b(0x40f)]],[_0x3c635b(0x3db),_univerjs_icons[_0x3c635b(0x3db)]],[_0x3c635b(0x103),_univerjs_icons[_0x3c635b(0x103)]],[_0x3c635b(0x57a),_univerjs_icons[_0x3c635b(0x57a)]],['ShapeRectIcon',_univerjs_icons[_0x3c635b(0x4f7)]],[_0x3c635b(0x45f),_univerjs_icons[_0x3c635b(0x45f)]],['ShapeRectTextboxVerticalIcon',_univerjs_icons[_0x3c635b(0x376)]],['ShapeRibbon2Icon',_univerjs_icons['ShapeRibbon2Icon']],[_0x3c635b(0x246),_univerjs_icons[_0x3c635b(0x246)]],[_0x3c635b(0x60f),_univerjs_icons[_0x3c635b(0x60f)]],[_0x3c635b(0x18e),_univerjs_icons[_0x3c635b(0x18e)]],[_0x3c635b(0x205),_univerjs_icons[_0x3c635b(0x205)]],[_0x3c635b(0x616),_univerjs_icons[_0x3c635b(0x616)]],[_0x3c635b(0x1f9),_univerjs_icons[_0x3c635b(0x1f9)]],[_0x3c635b(0x587),_univerjs_icons[_0x3c635b(0x587)]],['ShapeRound2SameRectIcon',_univerjs_icons['ShapeRound2SameRectIcon']],[_0x3c635b(0x1b1),_univerjs_icons['ShapeRoundRectIcon']],[_0x3c635b(0x2b4),_univerjs_icons[_0x3c635b(0x2b4)]],[_0x3c635b(0x28a),_univerjs_icons[_0x3c635b(0x28a)]],['ShapeSnip1RectIcon',_univerjs_icons[_0x3c635b(0x48d)]],[_0x3c635b(0x139),_univerjs_icons[_0x3c635b(0x139)]],[_0x3c635b(0x1fc),_univerjs_icons[_0x3c635b(0x1fc)]],[_0x3c635b(0x64b),_univerjs_icons[_0x3c635b(0x64b)]],[_0x3c635b(0xf9),_univerjs_icons[_0x3c635b(0xf9)]],[_0x3c635b(0x429),_univerjs_icons[_0x3c635b(0x429)]],['ShapeStar12Icon',_univerjs_icons[_0x3c635b(0x3fb)]],['ShapeStar16Icon',_univerjs_icons[_0x3c635b(0x274)]],['ShapeStar24Icon',_univerjs_icons[_0x3c635b(0x394)]],[_0x3c635b(0x102),_univerjs_icons[_0x3c635b(0x102)]],['ShapeStar4Icon',_univerjs_icons[_0x3c635b(0x5b2)]],[_0x3c635b(0x47f),_univerjs_icons[_0x3c635b(0x47f)]],[_0x3c635b(0x2c2),_univerjs_icons['ShapeStar6Icon']],[_0x3c635b(0xf0),_univerjs_icons[_0x3c635b(0xf0)]],[_0x3c635b(0x4a9),_univerjs_icons['ShapeStar8Icon']],[_0x3c635b(0x499),_univerjs_icons['ShapeStraightConnector1Icon']],[_0x3c635b(0x5b1),_univerjs_icons[_0x3c635b(0x5b1)]],['ShapeStripedRightArrowIcon',_univerjs_icons[_0x3c635b(0x2cf)]],['ShapeSunIcon',_univerjs_icons['ShapeSunIcon']],['ShapeSwooshArrowIcon',_univerjs_icons[_0x3c635b(0x30c)]],[_0x3c635b(0x124),_univerjs_icons[_0x3c635b(0x124)]],[_0x3c635b(0x1af),_univerjs_icons[_0x3c635b(0x1af)]],[_0x3c635b(0x50a),_univerjs_icons[_0x3c635b(0x50a)]],[_0x3c635b(0x114),_univerjs_icons['ShapeUpArrowCalloutIcon']],[_0x3c635b(0x40b),_univerjs_icons['ShapeUpArrowIcon']],[_0x3c635b(0x1bb),_univerjs_icons[_0x3c635b(0x1bb)]],['ShapeUpDownArrowIcon',_univerjs_icons[_0x3c635b(0x297)]],[_0x3c635b(0x60b),_univerjs_icons[_0x3c635b(0x60b)]],[_0x3c635b(0x2a2),_univerjs_icons['ShapeVerticalScrollIcon']],[_0x3c635b(0x4d1),_univerjs_icons[_0x3c635b(0x4d1)]],[_0x3c635b(0x3ed),_univerjs_icons[_0x3c635b(0x3ed)]],[_0x3c635b(0xde),_univerjs_icons[_0x3c635b(0xde)]],[_0x3c635b(0x57f),_univerjs_icons['ShapeWedgeRoundRectCalloutIcon']],[SHEET_SHAPE_EDIT_PANEL_KEY,ShapeEditPanel],[SHAPE_PICKER_COMPONENT,ShapePicker],[_univerjs_drawing_ui[_0x3c635b(0x131)],ImageClipShapePicker]]['forEach'](([_0xacfa6e,_0x581899])=>{const _0x2b693c=_0x3c635b;this[_0x2b693c(0x58e)](this['_componentManager'][_0x2b693c(0x405)](_0xacfa6e,_0x581899));});}[_0x3e9a34(0x2d8)](){const _0x487a58=_0x3e9a34;this[_0x487a58(0x3fa)]=this[_0x487a58(0x184)][_0x487a58(0x367)]({'id':SHEET_SHAPE_EDIT_PANEL_KEY,'header':{'title':this[_0x487a58(0x5d4)]['t'](_0x487a58(0x1a4))},'width':0x184,'children':{'label':SHEET_SHAPE_EDIT_PANEL_KEY,...this[_0x487a58(0x1e9)]},'onClose':()=>{const _0xbbbc0f=_0x487a58;this['_drawingManagerService']['focusDrawing'](null),this[_0xbbbc0f(0x17e)][_0xbbbc0f(0x1b8)](_univerjs_core[_0xbbbc0f(0x130)],![]),this[_0xbbbc0f(0x3fa)]=null;}}),this[_0x487a58(0x661)]=!![];}[_0x3e9a34(0x65b)](){const _0x3f796f=_0x3e9a34;this[_0x3f796f(0x661)]=![],this[_0x3f796f(0x184)][_0x3f796f(0x5aa)](SHEET_SHAPE_EDIT_PANEL_KEY),this[_0x3f796f(0x3fa)]=null,this[_0x3f796f(0x17e)]['setContextValue'](_univerjs_core[_0x3f796f(0x130)],![]),this[_0x3f796f(0x4d0)][_0x3f796f(0x348)](null);}};SheetsShapeUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x5dc)])),__decorateParam(0x3,_univerjs_ui[_0x3e9a34(0x3b1)]),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_sheets_shape['SheetsShapeService'])),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x398)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_ui[_0x3e9a34(0x4d9)])),__decorateParam(0x7,_univerjs_core['ICommandService']),__decorateParam(0x8,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3dc)])),__decorateParam(0xa,_univerjs_core['IContextService'])],SheetsShapeUIController);var name=_0x3e9a34(0x4f1),version='0.22.1';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[_0x3e9a34(0x128)]{constructor(_0x3cb350,_0x80e411,_0x127d1,_0x5b5398,_0x313b5b){const _0x491057=_0x3e9a34;super(),this[_0x491057(0x50e)]=_0x3cb350,this[_0x491057(0x4d0)]=_0x80e411,this[_0x491057(0x5cb)]=_0x127d1,this[_0x491057(0x5e1)]=_0x5b5398,this[_0x491057(0x3ae)]=_0x313b5b,_defineProperty(this,_0x491057(0x5ae),null),_defineProperty(this,_0x491057(0x324),null),_defineProperty(this,_0x491057(0x55d),null),_defineProperty(this,_0x491057(0x4e9),void 0x0),_defineProperty(this,_0x491057(0x4bc),[]),_defineProperty(this,'_baseLeft',0x0),_defineProperty(this,_0x491057(0x471),0x0),_defineProperty(this,'_baseWidth',0x0),_defineProperty(this,'_baseHeight',0x0),_defineProperty(this,_0x491057(0x50d),![]),_defineProperty(this,_0x491057(0x159),void 0x0),_defineProperty(this,_0x491057(0x19a),void 0x0),_defineProperty(this,_0x491057(0x310),void 0x0),_defineProperty(this,'_adjHandlerPointerUp',void 0x0),_defineProperty(this,_0x491057(0x4a1),![]),this[_0x491057(0x2e5)](),this['_registerMoveHandler']();}[_0x3e9a34(0x63b)](){const _0x4534f0=_0x3e9a34;this[_0x4534f0(0x221)]();}['refreshAdjustControls'](){const _0x2495e3=_0x3e9a34;this[_0x2495e3(0x221)](),this[_0x2495e3(0x191)](!![]);}['_getOrCreateShapeModel'](_0x1e2596,_0x10b285,_0x255f17,_0x210ac1){const _0x57c2d6=_0x3e9a34,_0x59e26e=_0x1e2596;if(_0x59e26e===_univerjs_pro_engine_shape[_0x57c2d6(0x126)][_0x57c2d6(0x319)]||_0x1e2596===_0x57c2d6(0x3c9))return;try{const _0xecfcaf=new _univerjs_pro_engine_shape[(_0x57c2d6(0x4df))](_0x59e26e,_0x57c2d6(0x583)+_0x1e2596);if(_0x210ac1)_0xecfcaf[_0x57c2d6(0x5f0)]({'adjustValues':_0x210ac1},!![]);return _0xecfcaf[_0x57c2d6(0x566)]({'width':_0x10b285,'height':_0x255f17}),_0xecfcaf;}catch{return;}}[_0x3e9a34(0x2d1)](_0xbacff7,_0x509222,_0x23cc5a){const _0x2ded90=_0x3e9a34,_0x277d0f={'unitId':_0xbacff7,'subUnitId':_0x509222,'drawingId':_0x23cc5a},_0x3e1dac=this['_drawingManagerService'][_0x2ded90(0x619)](_0x277d0f);if(!_0x3e1dac||_0x3e1dac[_0x2ded90(0x5ec)]!==_univerjs_core['DrawingTypeEnum'][_0x2ded90(0x140)])return;return _0x3e1dac;}[_0x3e9a34(0x23b)](_0x37da62,_0x3f61a8,_0x39b7a4){const _0x4bbfc9=_0x3e9a34,_0x2c66f5=this[_0x4bbfc9(0x5cb)]['getRenderById'](_0x37da62);if(!_0x2c66f5)return void 0x0;const {scene:_0xbf9e8}=_0x2c66f5,_0x2ff3d2=(0x0,_univerjs_drawing[_0x4bbfc9(0x171)])({'unitId':_0x37da62,'subUnitId':_0x3f61a8,'drawingId':_0x39b7a4}),_0x208e8b=_0xbf9e8[_0x4bbfc9(0x3c3)](_0x2ff3d2);if(_0x208e8b instanceof _univerjs_engine_render[_0x4bbfc9(0x41c)]){const _0x3e0f5a=_0x208e8b['prstGeom'];if(_0x3e0f5a)return{'prstGeom':_0x3e0f5a,'adjustValues':_0x208e8b[_0x4bbfc9(0x3c4)]};}}['_createControls'](_0x4f2214=![]){const _0x341465=_0x3e9a34;if(!this[_0x341465(0x324)]||!this[_0x341465(0x55d)]||!this[_0x341465(0x5ae)])return;const _0x5129f7=this['_renderManagerService']['getRenderById'](this['_unitId']);if(!_0x5129f7)return;if(!_0x5129f7[_0x341465(0x1cf)](_univerjs_sheets_ui[_0x341465(0x412)])[_0x341465(0x60a)]())return;const {scene:_0x1e6c8e}=_0x5129f7,_0x3a6d68=this[_0x341465(0x2d1)](this[_0x341465(0x324)],this[_0x341465(0x55d)],this[_0x341465(0x5ae)]);if(!_0x3a6d68)return;const {transform:_0x5a7ca0}=_0x3a6d68;if(!_0x5a7ca0)return;const {left:_0xeec0a6,top:_0x237356,width:_0x24c3ce,height:_0x5b2cec,flipX:_0x571cc8,flipY:_0x59d936,angle:angle=0x0}=_0x5a7ca0;if(_0xeec0a6===void 0x0||_0x237356===void 0x0)return;const _0x545d2b=this[_0x341465(0x23b)](this['_unitId'],this['_subUnitId'],this[_0x341465(0x5ae)]);if(!_0x545d2b)return;if(_0x4f2214){const _0x559417=this[_0x341465(0x461)](_0x545d2b[_0x341465(0x31d)],_0x24c3ce||0x0,_0x5b2cec||0x0,_0x545d2b[_0x341465(0x132)]);if(!_0x559417)return;this[_0x341465(0x4e9)]=_0x559417[_0x341465(0x660)]();}const _0x133dcc=this[_0x341465(0x4e9)];if(!_0x133dcc||_0x133dcc[_0x341465(0x440)]===0x0)return;for(let _0x71b32e=0x0;_0x71b32e<_0x133dcc[_0x341465(0x440)];_0x71b32e++){const _0x4975b4=_0x133dcc[_0x71b32e];let _0x1583c5=_0x4975b4['x'],_0x5cd941=_0x4975b4['y'];if(_0x571cc8)_0x1583c5=(_0x24c3ce||0x0)-_0x1583c5;if(_0x59d936)_0x5cd941=(_0x5b2cec||0x0)-_0x5cd941;if(angle!==0x0){const _0x4b9cc8=(_0x24c3ce||0x0)/0x2,_0x3a5ee1=(_0x5b2cec||0x0)/0x2,_0x4eeec2=angle*Math['PI']/0xb4,_0x2e89b0=Math[_0x341465(0x1cb)](_0x4eeec2),_0x1bd0e2=Math[_0x341465(0x479)](_0x4eeec2),_0x538668=_0x1583c5-_0x4b9cc8,_0x2a5d42=_0x5cd941-_0x3a5ee1;_0x1583c5=_0x4b9cc8+(_0x538668*_0x2e89b0-_0x2a5d42*_0x1bd0e2),_0x5cd941=_0x3a5ee1+(_0x538668*_0x1bd0e2+_0x2a5d42*_0x2e89b0);}const _0x38d0d5={'x':_0x1583c5,'y':_0x5cd941,'adjName':_0x4975b4[_0x341465(0x5f8)]};this['_addControl'](_0x1e6c8e,_0x38d0d5,_0x38d0d5[_0x341465(0x5f8)],_0xeec0a6,_0x237356,this[_0x341465(0x324)],this['_subUnitId']);}}['_addControl'](_0x2ed44c,_0x6b5977,_0x27f7fb,_0x5c8784,_0x10b30a,_0x3d80e8,_0x18aff4){const _0x212fca=_0x3e9a34;if(!this[_0x212fca(0x5ae)])return;const _0x5467ad='image-clip-adjust-point-'+this[_0x212fca(0x5ae)]+'-'+_0x27f7fb,_0xbe692=_0x2ed44c[_0x212fca(0x21c)](_0x5467ad);if(_0xbe692){_0xbe692['transformByState']({'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]});return;}const _0x454128=new SheetShapeAdjustPointObject(_0x5467ad,{'left':_0x6b5977['x']+_0x5c8784-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x212fca(0x3b6)],'top':_0x6b5977['y']+_0x10b30a-_univerjs_pro_engine_shape['ShapeDefaultConfig']['adjHandleSize'],'adjName':_0x27f7fb,'shapeId':this[_0x212fca(0x5ae)],'unitId':_0x3d80e8,'subUnitId':_0x18aff4,'width':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'height':_univerjs_pro_engine_shape[_0x212fca(0x49a)][_0x212fca(0x3b6)]+0x8,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!![]});this[_0x212fca(0x4bc)]['push'](_0x454128),this[_0x212fca(0x38a)](_0x454128,_0x2ed44c,_0x27f7fb),_0x2ed44c[_0x212fca(0x18b)](_0x454128,_univerjs_engine_render[_0x212fca(0x1bd)]+0x1);}[_0x3e9a34(0x221)](){const _0x533d01=_0x3e9a34;if(this['_shapes'][_0x533d01(0x440)]===0x0)return;this['_shapes']['forEach'](_0x14118a=>_0x14118a[_0x533d01(0x199)]()),this[_0x533d01(0x4bc)]=[];}[_0x3e9a34(0x507)](_0x40c79b,_0x5b27e6){const _0x13c4d4=_0x3e9a34;var _0x20ce54;const _0x63c39e={'x':0x0,'y':0x0},_0x2fb3b0=this[_0x13c4d4(0x5cb)][_0x13c4d4(0x17d)](_0x40c79b);if(!_0x2fb3b0)return _0x63c39e;if(!_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui[_0x13c4d4(0x412)])[_0x13c4d4(0x64e)](_0x5b27e6))return _0x63c39e;const _0x3db3fc=_0x2fb3b0[_0x13c4d4(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x53072f=_0x3db3fc===null||_0x3db3fc===void 0x0?void 0x0:_0x3db3fc[_0x13c4d4(0x531)]();if(!_0x53072f)return _0x63c39e;const _0x193694=(_0x20ce54=this[_0x13c4d4(0x5e1)][_0x13c4d4(0x46e)](_0x40c79b))===null||_0x20ce54===void 0x0?void 0x0:_0x20ce54[_0x13c4d4(0x299)](_0x5b27e6);if(!_0x193694)return _0x63c39e;const _0x25677b=(0x0,_univerjs_sheets_ui[_0x13c4d4(0x33f)])(_0x53072f[_0x13c4d4(0x484)],_0x53072f['sheetViewStartColumn'],_0x2fb3b0['scene'],_0x193694);if(!_0x25677b)return _0x63c39e;return{'x':_0x25677b[_0x13c4d4(0x4aa)],'y':_0x25677b[_0x13c4d4(0x520)]};}[_0x3e9a34(0x52f)](_0x352654,_0x2bd57e){const _0x31efa1=_0x3e9a34;var _0x1c6cd7,_0x12e55b;const _0x12eb9c=(_0x1c6cd7=this['_univerInstanceService'][_0x31efa1(0x46e)](_0x352654))===null||_0x1c6cd7===void 0x0?void 0x0:_0x1c6cd7[_0x31efa1(0x299)](_0x2bd57e);return(_0x12e55b=_0x12eb9c===null||_0x12eb9c===void 0x0?void 0x0:_0x12eb9c[_0x31efa1(0x234)]())!==null&&_0x12e55b!==void 0x0?_0x12e55b:0x1;}[_0x3e9a34(0x38a)](_0x10b11e,_0x414d43,_0x3a1f1e){const _0x9fbe0f=_0x3e9a34;this[_0x9fbe0f(0x58e)]((0x0,_univerjs_core[_0x9fbe0f(0x28e)])(_0x10b11e[_0x9fbe0f(0x284)][_0x9fbe0f(0x345)]((_0x2855bd,_0x3b3221)=>{const _0x3c1221=_0x9fbe0f;var _0x5e8ef4,_0x475803,_0x1af65d;const {unitId:_0x4d1523,subUnitId:_0x23782a,drawingId:_0x1ccfbc}=_0x10b11e['getDrawingSearch'](),_0x3c7a7f=this['_getImageDrawingInfo'](_0x4d1523,_0x23782a,_0x1ccfbc);if(!(_0x3c7a7f===null||_0x3c7a7f===void 0x0?void 0x0:_0x3c7a7f[_0x3c1221(0x600)]))return;const {left:_0x58d721,top:_0x23d959,width:_0x258588,height:_0x2d2fee}=_0x3c7a7f[_0x3c1221(0x600)];this[_0x3c1221(0x3b2)]=_0x58d721||0x0,this[_0x3c1221(0x471)]=_0x23d959||0x0,this[_0x3c1221(0x491)]=_0x258588||0x0,this[_0x3c1221(0x255)]=_0x2d2fee||0x0;const _0xb83318=Boolean((_0x5e8ef4=_0x3c7a7f[_0x3c1221(0x600)])===null||_0x5e8ef4===void 0x0?void 0x0:_0x5e8ef4[_0x3c1221(0x2f5)]),_0x18e48f=Boolean((_0x475803=_0x3c7a7f['transform'])===null||_0x475803===void 0x0?void 0x0:_0x475803[_0x3c1221(0x35d)]),_0x123749=((_0x1af65d=_0x3c7a7f['transform'])===null||_0x1af65d===void 0x0?void 0x0:_0x1af65d['angle'])||0x0,_0x271e77=this[_0x3c1221(0x23b)](_0x4d1523,_0x23782a,_0x1ccfbc);if(!_0x271e77)return;const _0x36020d=this['_getOrCreateShapeModel'](_0x271e77['prstGeom'],this[_0x3c1221(0x491)],this['_baseHeight'],_0x271e77['adjustValues']);if(!_0x36020d)return;this['_activeShapeModel']=_0x36020d,this['_activeAdjustInfo']=_0x36020d[_0x3c1221(0x649)](_0x3a1f1e);if(!this[_0x3c1221(0x159)])return;this[_0x3c1221(0x50d)]=!![],_0x414d43[_0x3c1221(0x3c5)]();const _0x2c3f56=_0x271e77[_0x3c1221(0x31d)];this[_0x3c1221(0x310)]=_0x414d43[_0x3c1221(0x223)][_0x3c1221(0x345)]((_0xd1938f,_0x352bda)=>{const _0x37821b=_0x3c1221;if(!this[_0x37821b(0x50d)])return;const {offsetX:_0x36e1b9,offsetY:_0x4b8c94}=_0xd1938f,_0x3b8e34=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x3b8e34)return;_0x414d43[_0x37821b(0x3c5)](),_0x414d43['setCursor'](_univerjs_engine_render[_0x37821b(0x322)][_0x37821b(0x5b3)]);const _0x5701f5={'left':0x0,'top':0x0,'width':this[_0x37821b(0x491)],'height':this[_0x37821b(0x255)]},_0x121c7f=this[_0x37821b(0x507)](_0x4d1523,_0x23782a),_0x28b8b5=this[_0x37821b(0x52f)](_0x4d1523,_0x23782a);let _0x2dac5a=_0x36e1b9/_0x28b8b5+_0x121c7f['x']-this[_0x37821b(0x3b2)],_0x391cc6=_0x4b8c94/_0x28b8b5+_0x121c7f['y']-this[_0x37821b(0x471)];if(_0x123749!==0x0){const _0x17fa79=this['_baseWidth']/0x2,_0x3a761d=this[_0x37821b(0x255)]/0x2,_0xa86bf9=_0x123749*Math['PI']/0xb4,_0x1e4110=Math[_0x37821b(0x1cb)](_0xa86bf9),_0x1f9c06=Math[_0x37821b(0x479)](_0xa86bf9),_0x49f698=_0x2dac5a-_0x17fa79,_0x2e9929=_0x391cc6-_0x3a761d;_0x2dac5a=_0x17fa79+(_0x49f698*_0x1e4110+_0x2e9929*_0x1f9c06),_0x391cc6=_0x3a761d+(-_0x49f698*_0x1f9c06+_0x2e9929*_0x1e4110);}if(_0xb83318)_0x2dac5a=this[_0x37821b(0x491)]-_0x2dac5a;if(_0x18e48f)_0x391cc6=this[_0x37821b(0x255)]-_0x391cc6;const _0x2bc9a6=this[_0x37821b(0x19a)]['calcAdjValue'](_0x5701f5,{'x':_0x2dac5a,'y':_0x391cc6},_0x3b8e34,_0xb83318,_0x18e48f),_0x343c57=_0x3b8e34[_0x37821b(0x5be)]||_0x3b8e34[_0x37821b(0x12c)]||_0x3b8e34['gdRefAng']||_0x3b8e34['gdRefR'];if(_0x343c57===void 0x0)return;this[_0x37821b(0x19a)][_0x37821b(0x57d)](_0x343c57,_0x2bc9a6),this[_0x37821b(0x19a)]['updateContext']({'width':this[_0x37821b(0x491)],'height':this['_baseHeight']}),this[_0x37821b(0x4cf)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x343c57,_0x2bc9a6),this[_0x37821b(0x4e9)]=this[_0x37821b(0x19a)][_0x37821b(0x660)](),this[_0x37821b(0x159)]=this[_0x37821b(0x19a)][_0x37821b(0x649)](_0x3a1f1e),this[_0x37821b(0x191)](),_0x352bda[_0x37821b(0x11e)]();}),this[_0x3c1221(0x4f6)]=_0x414d43[_0x3c1221(0x575)][_0x3c1221(0x345)]((_0x398210,_0x142f6f)=>{const _0xe84a0c=_0x3c1221;this[_0xe84a0c(0x310)][_0xe84a0c(0x54e)](),this[_0xe84a0c(0x4f6)][_0xe84a0c(0x54e)](),_0x414d43[_0xe84a0c(0x26d)]();if(this[_0xe84a0c(0x19a)]){const _0x2d6160=this[_0xe84a0c(0x19a)]['getAdjustNames'](),_0x20b74c={};for(const _0x1abe5b of _0x2d6160){const _0x1f7893=this[_0xe84a0c(0x19a)][_0xe84a0c(0x5f9)](_0x1abe5b);if(_0x1f7893!==void 0x0)_0x20b74c[_0x1abe5b]=_0x1f7893;}this['_imageShapeClipController'][_0xe84a0c(0x643)](_0x4d1523,_0x23782a,_0x1ccfbc,_0x2c3f56,_0x20b74c);}this['_activeAdjustInfo']=void 0x0,this[_0xe84a0c(0x19a)]=void 0x0,this['_isStartAdjusting']=![],_0x142f6f[_0xe84a0c(0x11e)](),_0x414d43[_0xe84a0c(0x4fc)]();}),_0x3b3221[_0x3c1221(0x11e)]();})));}[_0x3e9a34(0x4cf)](_0x1c58fa,_0x10ce5c,_0x1abc90,_0x5e5fbb,_0x457a13){const _0x37e286=_0x3e9a34,_0x36a820=this[_0x37e286(0x5cb)][_0x37e286(0x17d)](_0x1c58fa);if(!_0x36a820)return;const {scene:_0x64a49}=_0x36a820,_0x2f3927=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x1c58fa,'subUnitId':_0x10ce5c,'drawingId':_0x1abc90}),_0x725030=_0x64a49[_0x37e286(0x3c3)](_0x2f3927);if(_0x725030 instanceof _univerjs_engine_render[_0x37e286(0x41c)]){var _0x20dcc7;const _0x540550=(_0x20dcc7=_0x725030[_0x37e286(0x3c4)])!==null&&_0x20dcc7!==void 0x0?_0x20dcc7:{};_0x725030[_0x37e286(0x31a)]({..._0x540550,[_0x5e5fbb]:_0x457a13}),_0x725030[_0x37e286(0x309)](!![]);}}['_registerMoveHandler'](){const _0x1a1a64=_0x3e9a34,_0x3a06c6=this[_0x1a1a64(0x5e1)]['getCurrentTypeOfUnit$'](_univerjs_core['UniverInstanceType'][_0x1a1a64(0x58b)]);this[_0x1a1a64(0x58e)](_0x3a06c6[_0x1a1a64(0x1e2)]((0x0,rxjs['switchMap'])(_0x314ec3=>{const _0x14273f=_0x1a1a64;if(!_0x314ec3)return rxjs['EMPTY'];return _0x314ec3[_0x14273f(0x1e1)][_0x14273f(0x1e2)]((0x0,rxjs[_0x14273f(0x352)])(_0x3f8a4f=>{const _0x3251bd=_0x14273f;if(!_0x3f8a4f)return rxjs['EMPTY'];const _0x150a93=_0x314ec3[_0x3251bd(0x386)](),_0x58c780=this[_0x3251bd(0x5cb)][_0x3251bd(0x17d)](_0x150a93),_0x1a9757=_0x58c780===null||_0x58c780===void 0x0?void 0x0:_0x58c780[_0x3251bd(0x2a4)];if(!_0x1a9757)return rxjs[_0x3251bd(0x218)];return(0x0,rxjs['of'])(_0x1a9757);}));}))[_0x1a1a64(0x562)](_0x2c268a=>{const _0x4a5797=_0x1a1a64,_0x521e44=_0x2c268a[_0x4a5797(0xe2)]();this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x223)][_0x4a5797(0x345)](()=>{const _0x8d51a=_0x4a5797;if(this[_0x8d51a(0x4a1)])this[_0x8d51a(0x221)]();})),this['disposeWithMe'](_0x521e44[_0x4a5797(0x14c)][_0x4a5797(0x562)](_0x3b6004=>{const _0x306a37=_0x4a5797,{objects:_0x2b0f22}=_0x3b6004;this[_0x306a37(0x191)]();if(_0x2b0f22!==null&&_0x2b0f22[_0x306a37(0x43f)]===0x1){const _0x47fb02=_0x2b0f22[_0x306a37(0x4b8)]()[_0x306a37(0x5c7)]()[_0x306a37(0x115)];if(_0x47fb02 instanceof _univerjs_engine_render[_0x306a37(0x41c)]&&_0x47fb02[_0x306a37(0x31d)])this[_0x306a37(0x4a1)]=!![];}})),this[_0x4a5797(0x58e)](_0x521e44['changing$']['subscribe'](()=>{const _0x262f6b=_0x4a5797;if(this[_0x262f6b(0x4a1)])this[_0x262f6b(0x221)]();})),this[_0x4a5797(0x58e)](_0x2c268a[_0x4a5797(0x575)][_0x4a5797(0x345)](()=>{const _0x20b4ca=_0x4a5797;this[_0x20b4ca(0x4a1)]&&(this[_0x20b4ca(0x4a1)]=![],this[_0x20b4ca(0x191)]());})),this[_0x4a5797(0x58e)](_0x521e44[_0x4a5797(0x4c0)][_0x4a5797(0x562)](()=>{const _0x156966=_0x4a5797;if(this[_0x156966(0x324)]&&this[_0x156966(0x55d)]&&this[_0x156966(0x5ae)]){const _0xb3ce5f=this['_getImagePrstGeom'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]);if(_0xb3ce5f){var _0x365640,_0xcc6e0;const _0x43725c=this['_getImageDrawingInfo'](this[_0x156966(0x324)],this[_0x156966(0x55d)],this[_0x156966(0x5ae)]),_0x44312=(_0x43725c===null||_0x43725c===void 0x0||(_0x365640=_0x43725c[_0x156966(0x600)])===null||_0x365640===void 0x0?void 0x0:_0x365640['width'])||0x0,_0x25f380=(_0x43725c===null||_0x43725c===void 0x0||(_0xcc6e0=_0x43725c[_0x156966(0x600)])===null||_0xcc6e0===void 0x0?void 0x0:_0xcc6e0[_0x156966(0x37b)])||0x0,_0xfafa0a=this[_0x156966(0x461)](_0xb3ce5f[_0x156966(0x31d)],_0x44312,_0x25f380,_0xb3ce5f[_0x156966(0x132)]);_0xfafa0a&&(this[_0x156966(0x4e9)]=_0xfafa0a[_0x156966(0x660)](),this[_0x156966(0x221)](),this[_0x156966(0x191)](!![]));}}}));}));}[_0x3e9a34(0x2e5)](){const _0x4e52d6=_0x3e9a34;this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x188)][_0x4e52d6(0x562)](_0x4e3431=>{const _0x3c57f4=_0x4e52d6;if(_0x4e3431['length']===0x1){const _0x2044b5=_0x4e3431[0x0];if(_0x2044b5['drawingType']===_univerjs_core[_0x3c57f4(0x506)][_0x3c57f4(0x140)]){const {unitId:_0xac45a4,subUnitId:_0x375e4e,drawingId:_0x38e2fb}=_0x2044b5,_0x3e4c59=this[_0x3c57f4(0x23b)](_0xac45a4,_0x375e4e,_0x38e2fb);if(_0x3e4c59){var _0x993010,_0x44f1fd;this[_0x3c57f4(0x5ae)]=_0x38e2fb,this['_unitId']=_0xac45a4,this[_0x3c57f4(0x55d)]=_0x375e4e;const _0x12b0e9=this[_0x3c57f4(0x2d1)](_0xac45a4,_0x375e4e,_0x38e2fb),_0x22f0af=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x993010=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x993010===void 0x0?void 0x0:_0x993010[_0x3c57f4(0x183)])||0x0,_0xc1c3a6=(_0x12b0e9===null||_0x12b0e9===void 0x0||(_0x44f1fd=_0x12b0e9[_0x3c57f4(0x600)])===null||_0x44f1fd===void 0x0?void 0x0:_0x44f1fd[_0x3c57f4(0x37b)])||0x0,_0x2ccd09=this[_0x3c57f4(0x461)](_0x3e4c59[_0x3c57f4(0x31d)],_0x22f0af,_0xc1c3a6,_0x3e4c59[_0x3c57f4(0x132)]);if(_0x2ccd09)this[_0x3c57f4(0x4e9)]=_0x2ccd09['getDrawingPoints']();this['_clearControls'](),this[_0x3c57f4(0x191)](!![]);}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();}else this[_0x3c57f4(0x57e)]();})),this['disposeWithMe'](this[_0x4e52d6(0x4d0)][_0x4e52d6(0x554)][_0x4e52d6(0x562)](_0x12701b=>{const _0x29a1a6=_0x4e52d6;if(_0x12701b[_0x29a1a6(0x440)]===0x1){const _0x17e4c1=_0x12701b[0x0],_0x161760=this[_0x29a1a6(0x4d0)][_0x29a1a6(0x619)](_0x17e4c1);(_0x161760===null||_0x161760===void 0x0?void 0x0:_0x161760['drawingType'])===_univerjs_core[_0x29a1a6(0x506)]['DRAWING_IMAGE']&&(this[_0x29a1a6(0x5ae)]===_0x17e4c1[_0x29a1a6(0x4c5)]&&(this[_0x29a1a6(0x221)](),this[_0x29a1a6(0x191)](!![])));}})),this[_0x4e52d6(0x58e)](this[_0x4e52d6(0x4d0)]['remove$']['subscribe'](_0x2c20bc=>{const _0x4a8280=_0x4e52d6;for(const _0x5313e6 of _0x2c20bc)if(this[_0x4a8280(0x5ae)]===_0x5313e6[_0x4a8280(0x4c5)])this[_0x4a8280(0x57e)]();}));}[_0x3e9a34(0x57e)](){const _0x1eb23d=_0x3e9a34;this[_0x1eb23d(0x5ae)]=null,this[_0x1eb23d(0x324)]=null,this['_subUnitId']=null,this[_0x1eb23d(0x4e9)]=void 0x0,this[_0x1eb23d(0x221)]();}};ImageClipAdjustController=__decorate([__decorateParam(0x1,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x53f)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(ImageShapeClipController))],ImageClipAdjustController);let ShapeSheetChangeController=class ShapeSheetChangeController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0xfe0393,_0x4518ec,_0xa511aa,_0x420f52){const _0x364af9=_0x3e9a34;super(),this[_0x364af9(0x5e1)]=_0xfe0393,this['_sheetInterceptorService']=_0x4518ec,this['_sheetDrawingService']=_0xa511aa,this['_sheetsShapeService']=_0x420f52,this['_initSheetChange']();}[_0x3e9a34(0x31e)](){const _0x191816=_0x3e9a34;this[_0x191816(0x58e)](this[_0x191816(0x346)]['interceptCommand']({'getMutations':_0x4bf38c=>{const _0x56ccd3=_0x191816;if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x493)]['id']){const _0x5addba=(0x0,_univerjs_sheets[_0x56ccd3(0x249)])(this[_0x56ccd3(0x5e1)],_0x4bf38c[_0x56ccd3(0xee)]);if(!_0x5addba)return{'redos':[],'undos':[]};const {unitId:_0x1e7542,subUnitId:_0x4963a8}=_0x5addba,_0x436502=this[_0x56ccd3(0x5ad)]['getDrawingData'](_0x1e7542,_0x4963a8),_0x77d13b=Object['values'](_0x436502)[_0x56ccd3(0x50f)](_0x18a73f=>_0x18a73f[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)][_0x56ccd3(0x3fc)]);if(_0x77d13b[_0x56ccd3(0x440)]===0x0)return{'redos':[],'undos':[]};const _0x3c53ce=[],_0x19ffe3=[];for(let _0x4fd9e3=0x0;_0x4fd9e3<_0x77d13b[_0x56ccd3(0x440)];_0x4fd9e3++){const _0x5b58cb=_0x77d13b[_0x4fd9e3],_0x1a9232=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x5b58cb[_0x56ccd3(0x4a8)],_0x5b58cb[_0x56ccd3(0x5d6)],_0x5b58cb[_0x56ccd3(0x4c5)]);if(!_0x1a9232)continue;const {redo:_0x86d814,undo:_0x511932,objects:_0x392497}=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x225)]([_0x5b58cb]);_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId']}}),_0x3c53ce[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x86d814,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x56ccd3(0x317)],'op':_0x511932,'objects':_0x392497}}),_0x19ffe3[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x1e7542,'subUnitId':_0x4963a8,'shapeId':_0x5b58cb['drawingId'],'shapeType':_0x1a9232['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x1a9232[_0x56ccd3(0x470)]()))}});}return{'redos':_0x3c53ce,'undos':_0x19ffe3};}else{if(_0x4bf38c['id']===_univerjs_sheets[_0x56ccd3(0x2d4)]['id']){const {unitId:_0x276f32,subUnitId:_0x5a7df1,targetSubUnitId:_0x26c29b}=_0x4bf38c[_0x56ccd3(0xee)];if(!_0x276f32||!_0x5a7df1||!_0x26c29b)return{'redos':[],'undos':[]};const _0x32f455=this[_0x56ccd3(0x5ad)][_0x56ccd3(0x5bc)](_0x276f32,_0x5a7df1),_0x1f20f3=Object[_0x56ccd3(0x4b8)](_0x32f455)[_0x56ccd3(0x50f)](_0x10562d=>_0x10562d[_0x56ccd3(0x5ec)]===_univerjs_core[_0x56ccd3(0x506)]['DRAWING_SHAPE']);if(_0x1f20f3['length']===0x0)return{'redos':[],'undos':[]};const _0x41b950=[],_0x51162a=[];for(let _0x5b578b=0x0;_0x5b578b<_0x1f20f3[_0x56ccd3(0x440)];_0x5b578b++){const _0x1b5e22=_0x1f20f3[_0x5b578b],_0x31a129=this[_0x56ccd3(0xfd)][_0x56ccd3(0x533)](_0x1b5e22['unitId'],_0x1b5e22[_0x56ccd3(0x5d6)],_0x1b5e22[_0x56ccd3(0x4c5)]);if(!_0x31a129)continue;const _0x13eeda=(0x0,_univerjs_core[_0x56ccd3(0x652)])(),_0x305230={..._0x1b5e22,'unitId':_0x276f32,'subUnitId':_0x26c29b,'drawingId':_0x13eeda},{redo:_0x1e7f27,undo:_0x17ebec,objects:_0x32bbfb}=this['_sheetDrawingService'][_0x56ccd3(0x58c)]([_0x305230]);_0x41b950['push']({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x317)],'op':_0x1e7f27,'objects':_0x32bbfb}}),_0x41b950['push']({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x598)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda,'shapeType':_0x31a129['getShapeType'](),'shapeData':JSON[_0x56ccd3(0x329)](JSON[_0x56ccd3(0x313)](_0x31a129['getShapeData']()))}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x56ccd3(0x13e)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'shapeId':_0x13eeda}}),_0x51162a[_0x56ccd3(0x2dd)]({'id':_univerjs_sheets_drawing[_0x56ccd3(0x64a)]['id'],'params':{'unitId':_0x276f32,'subUnitId':_0x26c29b,'type':_univerjs_sheets_drawing[_0x56ccd3(0x298)][_0x56ccd3(0x354)],'op':_0x17ebec,'objects':_0x32bbfb}});}return{'redos':_0x41b950,'undos':_0x51162a};}}return{'redos':[],'undos':[]};}}));}};ShapeSheetChangeController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x53f)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets[_0x3e9a34(0x45b)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing[_0x3e9a34(0x275)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeSheetChangeController);let ShapeTextEditingRenderController=class ShapeTextEditingRenderController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x4cc308,_0x3fe0f6,_0x34c34f,_0x15a514,_0x5b6196){const _0x44f6fe=_0x3e9a34;super(),this['_context']=_0x4cc308,this['_shapeTextEditingService']=_0x3fe0f6,this['_drawingManagerService']=_0x34c34f,this[_0x44f6fe(0x17e)]=_0x15a514,this[_0x44f6fe(0xfd)]=_0x5b6196,_defineProperty(this,_0x44f6fe(0x192),null),this[_0x44f6fe(0x178)](),this[_0x44f6fe(0x14f)](),this[_0x44f6fe(0x2e0)]();}[_0x3e9a34(0x178)](){const _0x1f0adb=_0x3e9a34,{scene:_0x395e64}=this['_context'];this[_0x1f0adb(0x58e)](_0x395e64[_0x1f0adb(0x122)][_0x1f0adb(0x345)](_0x13506a=>{const _0x2d8244=_0x1f0adb,{offsetX:_0x27c293,offsetY:_0x5d9bb2}=_0x13506a,_0x429086=_0x395e64[_0x2d8244(0x3ff)](_univerjs_engine_render[_0x2d8244(0x1de)]['FromArray']([_0x27c293,_0x5d9bb2]));if(_0x429086 instanceof DrawingShape){if((0x0,_univerjs_pro_engine_shape[_0x2d8244(0x654)])(this[_0x2d8244(0xfd)]['getShapeType'](_0x429086[_0x2d8244(0x4a8)],_0x429086['subUnitId'],_0x429086[_0x2d8244(0x4ac)])))return;this['_shapeTextEditingService'][_0x2d8244(0x1d8)]({'visible':!![],'unitId':_0x429086[_0x2d8244(0x4a8)],'subUnitId':_0x429086['subUnitId'],'shapeId':_0x429086[_0x2d8244(0x4ac)],'shapeKey':_0x429086[_0x2d8244(0x389)]});}}));}['_initSelection'](){const _0x18b6a3=_0x3e9a34;this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x188)]['subscribe'](_0xe6d4a1=>{const _0x21d645=_0x18b6a3;if(_0xe6d4a1[_0x21d645(0x440)]===0x1){const _0x174531=_0xe6d4a1[0x0],_0x4adcea=this['_drawingManagerService'][_0x21d645(0x619)](_0x174531);if((_0x4adcea===null||_0x4adcea===void 0x0?void 0x0:_0x4adcea[_0x21d645(0x5ec)])===_univerjs_core[_0x21d645(0x506)][_0x21d645(0x3fc)]){const _0x4cbe49=this[_0x21d645(0x53a)][_0x21d645(0x512)]();if((_0x4cbe49===null||_0x4cbe49===void 0x0?void 0x0:_0x4cbe49[_0x21d645(0x4ac)])===_0x174531[_0x21d645(0x4c5)]&&_0x4cbe49[_0x21d645(0x576)])return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(this[_0x21d645(0xfd)]['getShapeType'](_0x174531[_0x21d645(0x4a8)],_0x174531[_0x21d645(0x5d6)],_0x174531[_0x21d645(0x4c5)])))this[_0x21d645(0x53a)][_0x21d645(0x1d8)](null);}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x1d2d77=_0x21d645;this[_0x1d2d77(0x53a)][_0x1d2d77(0x1d8)](null);}));}else this[_0x21d645(0x53a)][_0x21d645(0x512)]()&&(this[_0x21d645(0x53a)]['setOnSavingEditorData'](!![]),requestAnimationFrame(()=>{const _0x4a8599=_0x21d645;this[_0x4a8599(0x53a)]['setEditing'](null);}));})),this[_0x18b6a3(0x58e)](this[_0x18b6a3(0x4d0)][_0x18b6a3(0x31c)][_0x18b6a3(0x562)](_0x3ac934=>{const _0x596591=_0x18b6a3,_0x5895f8=this[_0x596591(0x53a)][_0x596591(0x512)]();if(_0x5895f8&&_0x3ac934[_0x596591(0x333)](_0xc71311=>_0xc71311['drawingId']===_0x5895f8[_0x596591(0x4ac)]))this['_shapeTextEditingService'][_0x596591(0x1d8)](null);}));}[_0x3e9a34(0x2e0)](){const _0x407861=_0x3e9a34;this[_0x407861(0x58e)](this[_0x407861(0x53a)][_0x407861(0x186)][_0x407861(0x562)](_0x4c7ce9=>{const _0x15c97a=_0x407861,{scene:_0xbbaa75}=this['_context'];if(this[_0x15c97a(0x192)]){const _0x536f33=_0xbbaa75['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);if(_0x536f33)_0x536f33[_0x15c97a(0x1d8)](![]);}if(_0x4c7ce9){const _0x1601d8=!!_0x4c7ce9['visible'],_0x164de3=_0xbbaa75[_0x15c97a(0x21c)](_0x4c7ce9[_0x15c97a(0x50b)]);_0x164de3&&(_0x164de3[_0x15c97a(0x1d8)](_0x1601d8),this[_0x15c97a(0x192)]=_0x4c7ce9[_0x15c97a(0x50b)]),this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],_0x1601d8);}else this[_0x15c97a(0x192)]=null,this['_contextService'][_0x15c97a(0x1b8)](_univerjs_core['FOCUSING_SHAPE_TEXT_EDITOR'],![]);}));}};ShapeTextEditingRenderController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(ShapeTextEditingService)),__decorateParam(0x2,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x409)]),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],ShapeTextEditingRenderController);const ConnectionSiteStyle={'normal':{'fill':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x3e9a34(0x213)],'stroke':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape[_0x3e9a34(0x49a)]['cxnPointStrokeWidth']},'highlighted':{'fill':'#4285f4','stroke':'#1a73e8','strokeWidth':0x2}};var SheetBasicShapeConnectionSiteObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x2f4db5,_0x53d61f){const _0x1d5831=_0x3e9a34;super(_0x2f4db5,_0x53d61f),_defineProperty(this,_0x1d5831(0x5e8),''),_defineProperty(this,_0x1d5831(0x3f1),-0x1),_defineProperty(this,_0x1d5831(0x324),''),_defineProperty(this,_0x1d5831(0x55d),''),_defineProperty(this,_0x1d5831(0x35c),![]);if(_0x53d61f)this[_0x1d5831(0x5fe)](_0x53d61f);}['getConnectionInfo'](){const _0x52f606=_0x3e9a34;return{'unitId':this[_0x52f606(0x324)],'subUnitId':this[_0x52f606(0x55d)],'shapeId':this[_0x52f606(0x5e8)],'cxnIndex':this['_cxnIndex']};}[_0x3e9a34(0x237)](_0x4e1ac5){const _0x1e45d2=_0x3e9a34;this['_isHighlighted']!==_0x4e1ac5&&(this[_0x1e45d2(0x35c)]=_0x4e1ac5,this['makeDirty'](!![]));}[_0x3e9a34(0x4b0)](){const _0x2b1fc8=_0x3e9a34;return this[_0x2b1fc8(0x35c)];}[_0x3e9a34(0x5fe)](_0x55f8bf){const _0x9e779d=_0x3e9a34;var _0x251327,_0x542e97;if(typeof _0x55f8bf['targetShapeId']!==_0x9e779d(0x544))this[_0x9e779d(0x5e8)]=_0x55f8bf[_0x9e779d(0x33d)];if(typeof _0x55f8bf[_0x9e779d(0x120)]!==_0x9e779d(0x544))this[_0x9e779d(0x3f1)]=_0x55f8bf[_0x9e779d(0x120)];if(typeof _0x55f8bf[_0x9e779d(0x4a8)]!==_0x9e779d(0x544))this[_0x9e779d(0x324)]=_0x55f8bf['unitId'];if(typeof _0x55f8bf[_0x9e779d(0x5d6)]!==_0x9e779d(0x544))this[_0x9e779d(0x55d)]=_0x55f8bf[_0x9e779d(0x5d6)];if(typeof _0x55f8bf[_0x9e779d(0x4b0)]!=='undefined')this['_isHighlighted']=_0x55f8bf[_0x9e779d(0x4b0)];this[_0x9e779d(0x227)]({'width':(_0x251327=_0x55f8bf['width'])!==null&&_0x251327!==void 0x0?_0x251327:_univerjs_pro_engine_shape[_0x9e779d(0x49a)]['cxnPointRadius']*0x2,'height':(_0x542e97=_0x55f8bf[_0x9e779d(0x37b)])!==null&&_0x542e97!==void 0x0?_0x542e97:_univerjs_pro_engine_shape[_0x9e779d(0x49a)][_0x9e779d(0x325)]*0x2});}['_draw'](_0x53a628){const _0x5b99d5=_0x3e9a34,_0x4159bc=this[_0x5b99d5(0x35c)]?ConnectionSiteStyle[_0x5b99d5(0x585)]:ConnectionSiteStyle[_0x5b99d5(0x296)];_univerjs_engine_render[_0x5b99d5(0x5d8)]['drawWith'](_0x53a628,{'radius':_univerjs_pro_engine_shape[_0x5b99d5(0x49a)][_0x5b99d5(0x325)],'fill':_0x4159bc[_0x5b99d5(0x151)],'stroke':_0x4159bc['stroke'],'strokeWidth':_0x4159bc['strokeWidth'],'evented':!![]});}};const CONNECTION_SITE_HIT_RADIUS=0xa,SHAPE_BOUNDS_PADDING=0x5;let SheetBasicShapeConnectionPointController=class SheetBasicShapeConnectionPointController extends _univerjs_core['Disposable']{constructor(_0x2d41b3,_0x5bfb83,_0x606fb9,_0x239554){const _0x29d01e=_0x3e9a34;super(),this[_0x29d01e(0x50e)]=_0x2d41b3,this[_0x29d01e(0x5cb)]=_0x5bfb83,this[_0x29d01e(0x4d0)]=_0x606fb9,this[_0x29d01e(0xfd)]=_0x239554,_defineProperty(this,_0x29d01e(0x264),[]),_defineProperty(this,_0x29d01e(0x353),null),_defineProperty(this,_0x29d01e(0x175),-0x1),_defineProperty(this,_0x29d01e(0x442),null),_defineProperty(this,_0x29d01e(0x324),''),_defineProperty(this,_0x29d01e(0x55d),''),_defineProperty(this,_0x29d01e(0x245),null);}[_0x3e9a34(0x431)](_0x43c66f,_0xe02549,_0x4907d7,_0x537dc5){const _0x439536=_0x3e9a34;this['_currentScene']=_0x43c66f,this['_unitId']=_0xe02549,this['_subUnitId']=_0x4907d7,this[_0x439536(0x245)]=_0x537dc5;}[_0x3e9a34(0x581)](_0x1f0932){const _0x666492=_0x3e9a34;if(!this[_0x666492(0x442)])return null;const _0x2ed59f=this[_0x666492(0x633)](_0x1f0932);return _0x2ed59f?(this[_0x666492(0x353)]!==_0x2ed59f[_0x666492(0x4ac)]&&(this[_0x666492(0x162)](),this[_0x666492(0x4ae)](_0x2ed59f[_0x666492(0x4ac)],_0x2ed59f['shapeModel']),this[_0x666492(0x353)]=_0x2ed59f[_0x666492(0x4ac)]),this[_0x666492(0x5c3)](_0x1f0932)):(this[_0x666492(0x353)]!==null&&(this[_0x666492(0x162)](),this[_0x666492(0x353)]=null),null);}['endConnectionDetection'](){const _0x4bd9c7=_0x3e9a34;this['_clearConnectionSites'](),this[_0x4bd9c7(0x442)]=null,this[_0x4bd9c7(0x353)]=null,this[_0x4bd9c7(0x175)]=-0x1,this[_0x4bd9c7(0x245)]=null;}[_0x3e9a34(0x2d0)](){const _0x158d77=_0x3e9a34;if(this[_0x158d77(0x353)]===null||this[_0x158d77(0x175)]<0x0)return null;return{'shapeId':this[_0x158d77(0x353)],'cxnIndex':this[_0x158d77(0x175)]};}[_0x3e9a34(0x633)](_0x58a4a5){const _0x1b0f3c=_0x3e9a34,_0x4ca386=this['_drawingManagerService'][_0x1b0f3c(0x5bc)](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)]);for(const _0x52ae99 of Object[_0x1b0f3c(0x1b4)](_0x4ca386)){if(_0x52ae99===this[_0x1b0f3c(0x245)])continue;if(_0x4ca386[_0x52ae99][_0x1b0f3c(0x5ec)]!==_univerjs_core[_0x1b0f3c(0x506)][_0x1b0f3c(0x3fc)])continue;const _0x77d61=this['_sheetsShapeService']['getShapeModel'](this[_0x1b0f3c(0x324)],this[_0x1b0f3c(0x55d)],_0x52ae99);if(!_0x77d61)continue;if((0x0,_univerjs_pro_engine_shape[_0x1b0f3c(0x654)])(_0x77d61['getShapeType']()))continue;if(_0x77d61['getConnectionSiteList']()['length']===0x0)continue;if(!this['_currentScene'])continue;const _0x1bebc8=(0x0,_univerjs_drawing[_0x1b0f3c(0x171)])({'unitId':this[_0x1b0f3c(0x324)],'subUnitId':this[_0x1b0f3c(0x55d)],'drawingId':_0x52ae99}),_0x5445ab=this['_currentScene']['getObjectIncludeInGroup'](_0x1bebc8);if(!_0x5445ab)continue;const {left:_0xa0971c,top:_0x416618,width:_0x13c325,height:_0x5ccd0e}=_0x5445ab[_0x1b0f3c(0x5ff)](),_0x8e7184=_0xa0971c+_0x13c325/0x2,_0x3067dd=_0x416618+_0x5ccd0e/0x2,_0xd095d7=_0x5445ab[_0x1b0f3c(0x600)]['getMatrix'](),_0x47d8ac=new _univerjs_engine_render['Transform']([_0xd095d7[0x0],_0xd095d7[0x1],_0xd095d7[0x2],_0xd095d7[0x3],_0x8e7184,_0x3067dd]),_0x5ba445=_0x5445ab[_0x1b0f3c(0x316)](),_0x75ad4=(_0x5445ab[_0x1b0f3c(0x258)]&&(_0x5ba445===null||_0x5ba445===void 0x0?void 0x0:_0x5ba445[_0x1b0f3c(0x571)])===_univerjs_engine_render['RENDER_CLASS_TYPE'][_0x1b0f3c(0x4a2)]?_0x5ba445[_0x1b0f3c(0x526)]['multiply'](_0x47d8ac):_0x47d8ac)[_0x1b0f3c(0x66a)]()[_0x1b0f3c(0x342)](_0x58a4a5),_0x3c4a76=_0x13c325/0x2,_0x5174ec=_0x5ccd0e/0x2,_0x5605b9=SHAPE_BOUNDS_PADDING;if(_0x75ad4['x']>=-_0x3c4a76-_0x5605b9&&_0x75ad4['x']<=_0x3c4a76+_0x5605b9&&_0x75ad4['y']>=-_0x5174ec-_0x5605b9&&_0x75ad4['y']<=_0x5174ec+_0x5605b9)return{'shapeId':_0x52ae99,'shapeModel':_0x77d61};}return null;}[_0x3e9a34(0x4ae)](_0x340430,_0x2e5161){const _0x8912ba=_0x3e9a34;if(!this['_currentScene'])return;const _0x3c80b6=(0x0,_univerjs_drawing[_0x8912ba(0x171)])({'unitId':this[_0x8912ba(0x324)],'subUnitId':this['_subUnitId'],'drawingId':_0x340430}),_0x1b4e17=this[_0x8912ba(0x442)]['getObjectIncludeInGroup'](_0x3c80b6);if(!_0x1b4e17)return;const {left:_0x12c74c,top:_0x2b7c76,width:_0x455051,height:_0x17e105}=_0x1b4e17[_0x8912ba(0x5ff)](),_0x3d9bd7=_0x12c74c+_0x455051/0x2,_0x3d8655=_0x2b7c76+_0x17e105/0x2,_0x37025f=_0x1b4e17[_0x8912ba(0x600)][_0x8912ba(0x146)](),_0x2a7b12=new _univerjs_engine_render['Transform']([_0x37025f[0x0],_0x37025f[0x1],_0x37025f[0x2],_0x37025f[0x3],_0x3d9bd7,_0x3d8655]),_0x174bec=_0x1b4e17[_0x8912ba(0x316)](),_0x437082=_0x1b4e17[_0x8912ba(0x258)]&&(_0x174bec===null||_0x174bec===void 0x0?void 0x0:_0x174bec[_0x8912ba(0x571)])===_univerjs_engine_render[_0x8912ba(0x4f8)]['GROUP']?_0x174bec[_0x8912ba(0x526)]['multiply'](_0x2a7b12):_0x2a7b12;_0x2e5161[_0x8912ba(0x566)]({'width':_0x455051,'height':_0x17e105});const _0x42769c=_0x2e5161['getConnectionSiteList']();for(const _0x5e2026 of _0x42769c){const _0x36b935=_0x5e2026['x']-_0x455051/0x2,_0x311ef2=_0x5e2026['y']-_0x17e105/0x2,_0x58fe4c=_0x437082[_0x8912ba(0x342)]({'x':_0x36b935,'y':_0x311ef2}),_0x30e181=_0x58fe4c['x'],_0x2333f8=_0x58fe4c['y'],_0x4a9c42=new SheetBasicShapeConnectionSiteObject(_0x8912ba(0x23c)+_0x340430+'-'+_0x5e2026[_0x8912ba(0x61c)],{'left':_0x30e181-_univerjs_pro_engine_shape[_0x8912ba(0x49a)]['cxnPointRadius'],'top':_0x2333f8-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)],'targetShapeId':_0x340430,'cxnIndex':_0x5e2026[_0x8912ba(0x61c)],'unitId':this[_0x8912ba(0x324)],'subUnitId':this[_0x8912ba(0x55d)],'width':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x8912ba(0x325)]*0x2,'zIndex':_univerjs_engine_render['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':![]});this[_0x8912ba(0x264)][_0x8912ba(0x2dd)](_0x4a9c42),this['_currentScene'][_0x8912ba(0x18b)](_0x4a9c42,_univerjs_engine_render[_0x8912ba(0x1bd)]+0x2);}}['_findNearestConnectionSite'](_0x1fe29a){const _0x31c8f1=_0x3e9a34;let _0x43b251=null,_0x4ca44c=Infinity,_0x236950=null;for(const _0x1231c5 of this[_0x31c8f1(0x264)]){const _0x5be514=_0x1231c5[_0x31c8f1(0xe1)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)][_0x31c8f1(0x325)],_0x2eafaa=_0x1231c5[_0x31c8f1(0x156)]+_univerjs_pro_engine_shape[_0x31c8f1(0x49a)]['cxnPointRadius'],_0x4ee6d9=_0x1fe29a['x']-_0x5be514,_0x5f0e7a=_0x1fe29a['y']-_0x2eafaa,_0x4cea76=Math[_0x31c8f1(0x14b)](_0x4ee6d9*_0x4ee6d9+_0x5f0e7a*_0x5f0e7a);_0x4cea76<_0x4ca44c&&(_0x4ca44c=_0x4cea76,_0x43b251=_0x1231c5,_0x236950={'x':_0x5be514,'y':_0x2eafaa});}const _0x34ffdd=_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251?_0x43b251['getConnectionInfo']()[_0x31c8f1(0x120)]:-0x1;if(_0x34ffdd!==this[_0x31c8f1(0x175)]){for(const _0x5bac4d of this['_connectionSiteObjects']){const _0x3c7446=_0x5bac4d[_0x31c8f1(0x488)]();_0x5bac4d[_0x31c8f1(0x237)](_0x3c7446[_0x31c8f1(0x120)]===_0x34ffdd);}this[_0x31c8f1(0x175)]=_0x34ffdd;}if(_0x4ca44c<=CONNECTION_SITE_HIT_RADIUS&&_0x43b251&&_0x236950){const _0x22f609=_0x43b251[_0x31c8f1(0x488)](),_0x2915e8=this[_0x31c8f1(0x1be)](_0x22f609[_0x31c8f1(0x4ac)],_0x22f609['cxnIndex']);return{'shapeId':_0x22f609['shapeId'],'cxnIndex':_0x22f609[_0x31c8f1(0x120)],'unitId':_0x22f609[_0x31c8f1(0x4a8)],'subUnitId':_0x22f609[_0x31c8f1(0x5d6)],'worldPoint':_0x236950,'angle':_0x2915e8};}return null;}[_0x3e9a34(0x1be)](_0x2b4bd0,_0x50ea1c){const _0x4acaea=_0x3e9a34,_0x1503b4=this[_0x4acaea(0xfd)][_0x4acaea(0x533)](this['_unitId'],this['_subUnitId'],_0x2b4bd0);if(!_0x1503b4)return 0x0;const _0x509648=this[_0x4acaea(0x4d0)][_0x4acaea(0x619)]({'unitId':this[_0x4acaea(0x324)],'subUnitId':this[_0x4acaea(0x55d)],'drawingId':_0x2b4bd0});if(!(_0x509648===null||_0x509648===void 0x0?void 0x0:_0x509648[_0x4acaea(0x600)]))return 0x0;const {width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x509648[_0x4acaea(0x600)];_0x1503b4['updateContext']({'width':width,'height':height});const _0x597714=_0x1503b4['getConnectionSiteList']()[_0x4acaea(0x536)](_0x20c216=>_0x20c216[_0x4acaea(0x61c)]===_0x50ea1c);if(!_0x597714)return 0x0;let _0x1e9ed4=_0x597714[_0x4acaea(0x3c6)]/0xea60;if(flipX)_0x1e9ed4=0xb4-_0x1e9ed4;if(flipY)_0x1e9ed4=-_0x1e9ed4;return _0x1e9ed4=(_0x1e9ed4%0x168+0x168)%0x168,_0x1e9ed4;}['_clearConnectionSites'](){const _0x3cd1e2=_0x3e9a34;for(const _0x231c58 of this[_0x3cd1e2(0x264)])_0x231c58[_0x3cd1e2(0x199)]();this['_connectionSiteObjects']=[],this[_0x3cd1e2(0x175)]=-0x1;}[_0x3e9a34(0x199)](){const _0x2c3641=_0x3e9a34;this[_0x2c3641(0x162)](),super['dispose']();}};SheetBasicShapeConnectionPointController=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_engine_render[_0x3e9a34(0x35e)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_drawing['IDrawingManagerService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)]))],SheetBasicShapeConnectionPointController);let SheetShapeClipboardController=class SheetShapeClipboardController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x58627e,_0x27f9c0,_0x29a6eb,_0x356ba3,_0x3bf495){const _0x11c574=_0x3e9a34;super(),this[_0x11c574(0x2cb)]=_0x58627e,this['_sheetClipboardService']=_0x27f9c0,this[_0x11c574(0x5ad)]=_0x29a6eb,this[_0x11c574(0x1f6)]=_0x356ba3,this[_0x11c574(0x2a0)]=_0x3bf495,_defineProperty(this,_0x11c574(0x262),void 0x0),this[_0x11c574(0x4af)](),this['_registerGroupFeaturePasteHook']();}get['_focusedDrawings'](){const _0x26c3e1=_0x3e9a34;return this[_0x26c3e1(0x5ad)][_0x26c3e1(0x4a6)]();}[_0x3e9a34(0x5b0)](){const _0x2141be=_0x3e9a34;this[_0x2141be(0x2a0)][_0x2141be(0x4e3)](({fromUnitId:_0x1369d3,fromSubUnitId:_0x3f6acb,toUnitId:_0xab36e2,toSubUnitId:_0x3c2662,idMap:_0x140194})=>{const _0x2e2912=_0x2141be,_0x7c1ab3=[],_0x5e9273=[];for(const [_0x541490,_0x306caf]of _0x140194[_0x2e2912(0x180)]()){const _0x4300f6=this[_0x2e2912(0x1f6)]['getShapeModel'](_0x1369d3,_0x3f6acb,_0x541490);if(!_0x4300f6)continue;const _0x3cbfd9=_0x4300f6[_0x2e2912(0x478)](),_0x139f4c=JSON[_0x2e2912(0x329)](JSON[_0x2e2912(0x313)](_0x4300f6[_0x2e2912(0x470)]()));if(_0x139f4c[_0x2e2912(0x276)]){var _0x356034,_0x220114;const _0x1e88cc=(_0x356034=_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)])===null||_0x356034===void 0x0?void 0x0:_0x356034['shapeId'],_0x392c70=(_0x220114=_0x139f4c[_0x2e2912(0x276)]['to'])===null||_0x220114===void 0x0?void 0x0:_0x220114[_0x2e2912(0x4ac)],_0x206e89=_0x1e88cc?_0x140194[_0x2e2912(0x5ac)](_0x1e88cc):!![],_0x437c68=_0x392c70?_0x140194['has'](_0x392c70):!![];if(_0x206e89&&_0x1e88cc&&_0x139f4c['relation'][_0x2e2912(0x214)])_0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)]={..._0x139f4c[_0x2e2912(0x276)][_0x2e2912(0x214)],'shapeId':_0x140194['get'](_0x1e88cc)};else _0x139f4c[_0x2e2912(0x276)]['from']=void 0x0;if(_0x437c68&&_0x392c70&&_0x139f4c[_0x2e2912(0x276)]['to'])_0x139f4c[_0x2e2912(0x276)]['to']={..._0x139f4c[_0x2e2912(0x276)]['to'],'shapeId':_0x140194[_0x2e2912(0x2d9)](_0x392c70)};else _0x139f4c[_0x2e2912(0x276)]['to']=void 0x0;}_0x7c1ab3[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x598)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf,'shapeType':_0x3cbfd9,'shapeData':_0x139f4c}}),_0x5e9273[_0x2e2912(0x2dd)]({'id':_univerjs_pro_sheets_shape[_0x2e2912(0x13e)]['id'],'params':{'unitId':_0xab36e2,'subUnitId':_0x3c2662,'shapeId':_0x306caf}});}return{'redos':_0x7c1ab3,'undos':_0x5e9273};});}[_0x3e9a34(0x4af)](){const _0x1ed09f=_0x3e9a34;this['disposeWithMe'](this[_0x1ed09f(0x2ba)][_0x1ed09f(0x160)]({'id':_0x1ed09f(0x2c9),'onBeforeCopy':(_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f)=>{const _0x15781f=_0x1ed09f;this[_0x15781f(0x262)]=null;const _0x2fcd70=this[_0x15781f(0x4ec)];if(_0x2fcd70['length']){const _0x462f4a=_0x2fcd70[_0x15781f(0x50f)](_0x45ff1b=>_0x45ff1b[_0x15781f(0x5ec)]===_univerjs_core[_0x15781f(0x506)]['DRAWING_SHAPE']);if(_0x462f4a[_0x15781f(0x440)]===0x0)return;this[_0x15781f(0x262)]={'unitId':_0x25ecb2,'subUnitId':_0x476fd7,'copyType':_0x23601f,'drawings':_0x462f4a};}else this[_0x15781f(0x379)](_0x25ecb2,_0x476fd7,_0x5a4abe,_0x23601f);},'onPasteCells':(_0x352e58,_0x78a9cd,_0x3e378f,_0x2306e4)=>{const _0x4c19b5=_0x1ed09f;if(!this[_0x4c19b5(0x262)])return{'redos':[],'undos':[]};const {pasteType:_0x6ec85}=_0x2306e4;if(_0x6ec85!==_univerjs_sheets_ui[_0x4c19b5(0x16b)][_0x4c19b5(0x210)])return{'redos':[],'undos':[]};return this['_generatePasteMutations'](_0x78a9cd,this[_0x4c19b5(0x262)][_0x4c19b5(0x4ea)]===_univerjs_sheets_ui[_0x4c19b5(0x34e)][_0x4c19b5(0x2fe)]);},'onPasteUnrecognized':_0x336f3e=>{const _0x580f1b=_0x1ed09f;if(!this['_copyInfo'])return{'redos':[],'undos':[]};return this[_0x580f1b(0x209)](_0x336f3e,this[_0x580f1b(0x262)][_0x580f1b(0x4ea)]===_univerjs_sheets_ui['COPY_TYPE']['CUT']);}}));}[_0x3e9a34(0x379)](_0x1d3c28,_0x3074db,_0x1553e2,_0x4b759c){const _0xc0673b=_0x3e9a34,_0x5434b0=this[_0xc0673b(0x2cb)][_0xc0673b(0x64e)](_0x1d3c28,_0x3074db);if(!_0x5434b0)return;const _0x253bc9=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x5434b0,_0x1553e2);if(!_0x253bc9)return;const {startX:_0x186fca,endX:_0x5cea7b,startY:_0x10ba97,endY:_0x12735c}=_0x253bc9,_0x2f0bab=this['_sheetDrawingService'][_0xc0673b(0x5bc)](_0x1d3c28,_0x3074db),_0x5ae856=this[_0xc0673b(0x4ec)][_0xc0673b(0x3d1)]();for(const [_0x263424,_0x3adeff]of Object[_0xc0673b(0x180)](_0x2f0bab)){if(_0x3adeff[_0xc0673b(0x5ec)]!==_univerjs_core[_0xc0673b(0x506)][_0xc0673b(0x3fc)])continue;const {transform:_0x28f060}=_0x3adeff;if(!_0x28f060)continue;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0}=_0x28f060;if(_0x186fca<=left&&_0x5cea7b>=left+width&&_0x10ba97<=top&&_0x12735c>=top+height)_0x5ae856[_0xc0673b(0x2dd)](_0x3adeff);}if(_0x5ae856[_0xc0673b(0x440)]>0x0)this[_0xc0673b(0x262)]={'unitId':_0x1d3c28,'subUnitId':_0x3074db,'copyType':_0x4b759c,'copyRange':_0x1553e2,'drawings':_0x5ae856};}['_generatePasteMutations'](_0xeca994,_0x1b231b){const _0x449022=_0x3e9a34,{unitId:_0x4869c4,subUnitId:_0x1065ae,range:_0x9fe679}=_0xeca994,_0x1c9374=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x4869c4,_0x1065ae);if(!_0x1c9374)return{'redos':[],'undos':[]};const _0x4cd31e=(0x0,_univerjs_sheets[_0x449022(0x642)])(_0x9fe679),{unitId:_0x35c3d1,subUnitId:_0x27aa07,copyRange:_0x5416aa,drawings:_0x307232}=this[_0x449022(0x262)],_0x13ebc4=this[_0x449022(0x2cb)][_0x449022(0x64e)](_0x35c3d1,_0x27aa07);if(!_0x13ebc4)return{'redos':[],'undos':[]};let _0x3a14eb;if(!_0x5416aa){let _0x40b7cd=Infinity,_0x6afae1=Infinity;for(const _0x342982 of _0x307232){var _0x3a7a38;const {left:left=0x0,top:top=0x0}=(_0x3a7a38=_0x342982['transform'])!==null&&_0x3a7a38!==void 0x0?_0x3a7a38:{};if(left<_0x40b7cd)_0x40b7cd=left;if(top<_0x6afae1)_0x6afae1=top;}if(_0x40b7cd!==Infinity&&_0x6afae1!==Infinity)_0x3a14eb={'left':_0x40b7cd,'top':_0x6afae1};}const _0x4e5880=new Map();if(!_0x1b231b){for(const _0x3fb7c7 of _0x307232)_0x4e5880['set'](_0x3fb7c7[_0x449022(0x4c5)],(0x0,_univerjs_core[_0x449022(0x652)])());}const _0x2d8475=[],_0x5710a0=[];for(const _0x17c955 of _0x307232){const {drawingId:_0x2c75c2,transform:_0x457809,sheetTransform:_0x2761fe}=_0x17c955;if(!_0x457809||!_0x2761fe)continue;const _0x519906=this[_0x449022(0x331)]({'transform':_0x457809,'sheetTransform':_0x2761fe},{'skeleton':_0x13ebc4,'range':_0x5416aa},{'skeleton':_0x1c9374,'range':_0x4cd31e},_0x3a14eb);if(_0x1b231b){const {redos:_0x107fd7,undos:_0x5025f3}=this[_0x449022(0x1ff)]({'fromUnitId':_0x35c3d1,'fromSubUnitId':_0x27aa07,'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906});_0x2d8475['push'](..._0x107fd7),_0x5710a0[_0x449022(0x2dd)](..._0x5025f3);continue;}const {redos:_0x151110,undos:_0x51b1a8}=this[_0x449022(0x50c)]({'toUnitId':_0x4869c4,'toSubUnitId':_0x1065ae,'drawing':_0x17c955,'newTransforms':_0x519906,'newDrawingId':_0x4e5880[_0x449022(0x2d9)](_0x2c75c2),'idMap':_0x4e5880});_0x2d8475[_0x449022(0x2dd)](..._0x151110),_0x5710a0[_0x449022(0x2dd)](..._0x51b1a8);}return{'redos':_0x2d8475,'undos':_0x5710a0};}[_0x3e9a34(0x1ff)](_0x35b7db){const _0x3845fa=_0x3e9a34,{fromUnitId:_0x50b063,fromSubUnitId:_0x35c22d,toUnitId:_0x301d0d,toSubUnitId:_0x139816,drawing:_0xd0469b,newTransforms:_0x1abbc3}=_0x35b7db,_0x21113f={..._0xd0469b,'unitId':_0x301d0d,'subUnitId':_0x139816,'transform':_0x1abbc3[_0x3845fa(0x600)],'sheetTransform':_0x1abbc3['sheetTransform']};if(_0x301d0d===_0x50b063&&_0x139816===_0x35c22d){const {redo:_0xb39a34,undo:_0x1bac22,objects:_0x585fd7}=this['_sheetDrawingService'][_0x3845fa(0x3a8)]([_0x21113f]);return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0xb39a34,'objects':_0x585fd7}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x39d)],'op':_0x1bac22,'objects':_0x585fd7}}]};}else{const _0x428ce0=this[_0x3845fa(0x5ad)][_0x3845fa(0x225)]([_0xd0469b]),_0x36fec8=this[_0x3845fa(0x5ad)][_0x3845fa(0x58c)]([_0x21113f]),_0x107f68=this[_0x3845fa(0x1f6)][_0x3845fa(0x533)](_0xd0469b['unitId'],_0xd0469b[_0x3845fa(0x5d6)],_0xd0469b[_0x3845fa(0x4c5)]);if(!_0x107f68)return{'redos':[],'undos':[]};const _0x96c585=_0x107f68['getShapeType'](),_0x7d56ce=JSON[_0x3845fa(0x329)](JSON['stringify'](_0x107f68[_0x3845fa(0x470)]()));return{'redos':[{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x354)],'op':_0x428ce0[_0x3845fa(0x574)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x13e)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}},{'id':_univerjs_sheets_drawing[_0x3845fa(0x64a)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing[_0x3845fa(0x298)][_0x3845fa(0x317)],'op':_0x36fec8[_0x3845fa(0x574)],'objects':_0x36fec8[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}}],'undos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x317)],'op':_0x428ce0[_0x3845fa(0x5f5)],'objects':_0x428ce0[_0x3845fa(0x365)]}},{'id':_univerjs_pro_sheets_shape[_0x3845fa(0x598)]['id'],'params':{'unitId':_0x50b063,'subUnitId':_0x35c22d,'shapeId':_0xd0469b[_0x3845fa(0x4c5)],'shapeType':_0x96c585,'shapeData':_0x7d56ce}},{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3845fa(0x354)],'op':_0x36fec8['undo'],'objects':_0x36fec8['objects']}},{'id':_univerjs_pro_sheets_shape['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x301d0d,'subUnitId':_0x139816,'shapeId':_0xd0469b[_0x3845fa(0x4c5)]}}]};}}[_0x3e9a34(0x50c)](_0x57712a){const _0x44355e=_0x3e9a34,{toUnitId:_0x3b29a7,toSubUnitId:_0x41d20f,drawing:_0x1d0c80,newTransforms:_0x48cee8,newDrawingId:_0x11ce8d,idMap:_0x542bfa}=_0x57712a,_0x89066={..._0x1d0c80,'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'drawingId':_0x11ce8d,'transform':_0x48cee8[_0x44355e(0x600)],'sheetTransform':_0x48cee8[_0x44355e(0x30a)]},{redo:_0x374dcd,undo:_0x1e2703,objects:_0x3737a3}=this[_0x44355e(0x5ad)]['getBatchAddOp']([_0x89066]),_0x315712=this[_0x44355e(0x1f6)][_0x44355e(0x533)](_0x1d0c80['unitId'],_0x1d0c80[_0x44355e(0x5d6)],_0x1d0c80[_0x44355e(0x4c5)]);if(!_0x315712)return{'redos':[],'undos':[]};const _0x5031e7=_0x315712[_0x44355e(0x478)](),_0x4064b7=JSON[_0x44355e(0x329)](JSON[_0x44355e(0x313)](_0x315712[_0x44355e(0x470)]()));if(_0x4064b7['relation']){var _0x56893d,_0x12f1e4;const _0x119772=(_0x56893d=_0x4064b7[_0x44355e(0x276)]['from'])===null||_0x56893d===void 0x0?void 0x0:_0x56893d[_0x44355e(0x4ac)],_0xcc8820=(_0x12f1e4=_0x4064b7[_0x44355e(0x276)]['to'])===null||_0x12f1e4===void 0x0?void 0x0:_0x12f1e4[_0x44355e(0x4ac)],_0x758f29=_0x119772?_0x542bfa['has'](_0x119772):!![],_0x1dd5c5=_0xcc8820?_0x542bfa['has'](_0xcc8820):!![];if(_0x758f29&&_0x119772&&_0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)])_0x4064b7['relation'][_0x44355e(0x214)]={..._0x4064b7['relation']['from'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0x119772)};else _0x4064b7[_0x44355e(0x276)][_0x44355e(0x214)]=void 0x0;if(_0x1dd5c5&&_0xcc8820&&_0x4064b7[_0x44355e(0x276)]['to'])_0x4064b7[_0x44355e(0x276)]['to']={..._0x4064b7[_0x44355e(0x276)]['to'],'shapeId':_0x542bfa[_0x44355e(0x2d9)](_0xcc8820)};else _0x4064b7[_0x44355e(0x276)]['to']=void 0x0;}return{'redos':[{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x317)],'op':_0x374dcd,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d,'shapeType':_0x5031e7,'shapeData':_0x4064b7}}],'undos':[{'id':_univerjs_sheets_drawing[_0x44355e(0x64a)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'type':_univerjs_sheets_drawing[_0x44355e(0x298)][_0x44355e(0x354)],'op':_0x1e2703,'objects':_0x3737a3}},{'id':_univerjs_pro_sheets_shape[_0x44355e(0x13e)]['id'],'params':{'unitId':_0x3b29a7,'subUnitId':_0x41d20f,'shapeId':_0x11ce8d}}]};}['_updateTransform'](_0x434355,_0xdf48b2,_0x2fb635,_0x3ea631){const _0x3ccb07=_0x3e9a34;var _0xaa61ea;const {range:_0x4fac06,skeleton:_0x3929fd}=_0xdf48b2,{range:_0x2e7c90,skeleton:_0x14f03d}=_0x2fb635,{transform:_0x50fbe1,sheetTransform:_0x171ebc}=_0x434355,_0x3d4162={..._0x50fbe1};if(_0x4fac06){const _0x44c6ba=(0x0,_univerjs_sheets['attachRangeWithCoord'])(_0x3929fd,_0x4fac06),_0x523078=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x44c6ba&&_0x523078){var _0x41b4b8,_0x4b9f21;const _0x5691b6=_0x523078['startX']-_0x44c6ba[_0x3ccb07(0x1ce)],_0x14e715=_0x523078['startY']-_0x44c6ba[_0x3ccb07(0x498)];_0x3d4162[_0x3ccb07(0xe1)]=((_0x41b4b8=_0x3d4162[_0x3ccb07(0xe1)])!==null&&_0x41b4b8!==void 0x0?_0x41b4b8:0x0)+_0x5691b6,_0x3d4162[_0x3ccb07(0x156)]=((_0x4b9f21=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0x4b9f21!==void 0x0?_0x4b9f21:0x0)+_0x14e715;}}else{const _0x53966b=(0x0,_univerjs_sheets[_0x3ccb07(0x2ce)])(_0x14f03d,_0x2e7c90);if(_0x3ea631&&_0x53966b){var _0x125d06,_0xd64ff5;const _0x49854f=((_0x125d06=_0x3d4162['left'])!==null&&_0x125d06!==void 0x0?_0x125d06:0x0)-_0x3ea631['left'],_0x106d3b=((_0xd64ff5=_0x3d4162[_0x3ccb07(0x156)])!==null&&_0xd64ff5!==void 0x0?_0xd64ff5:0x0)-_0x3ea631[_0x3ccb07(0x156)];_0x3d4162[_0x3ccb07(0xe1)]=_0x53966b[_0x3ccb07(0x1ce)]+_0x49854f,_0x3d4162[_0x3ccb07(0x156)]=_0x53966b[_0x3ccb07(0x498)]+_0x106d3b;}else _0x3d4162['left']=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x1ce)],_0x3d4162[_0x3ccb07(0x156)]=_0x53966b===null||_0x53966b===void 0x0?void 0x0:_0x53966b[_0x3ccb07(0x498)];}return{'transform':_0x3d4162,'sheetTransform':(_0xaa61ea=(0x0,_univerjs_sheets_drawing[_0x3ccb07(0x564)])(_0x3d4162,_0x14f03d))!==null&&_0xaa61ea!==void 0x0?_0xaa61ea:_0x171ebc};}};SheetShapeClipboardController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_sheets['SheetSkeletonService'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_ui[_0x3e9a34(0x3d2)])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets_drawing['ISheetDrawingService'])),__decorateParam(0x3,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x3ee)]))],SheetShapeClipboardController);var SheetShapeConnectorHandlerObject=class extends _univerjs_engine_render[_0x3e9a34(0x59c)]{constructor(_0x3e5445,_0x3da411){const _0x5b23f4=_0x3e9a34;super(_0x3e5445,_0x3da411),_defineProperty(this,_0x5b23f4(0x196),null),_defineProperty(this,'_index',null),_defineProperty(this,_0x5b23f4(0x324),null),_defineProperty(this,'_subUnitId',null),_defineProperty(this,'_isStartConnectorPoint',![]);if(_0x3da411)this[_0x5b23f4(0x5fe)](_0x3da411);}[_0x3e9a34(0x40e)](){const _0x1a1ac3=_0x3e9a34;return{'unitId':this[_0x1a1ac3(0x324)],'subUnitId':this[_0x1a1ac3(0x55d)],'drawingId':this[_0x1a1ac3(0x196)]};}[_0x3e9a34(0x5fe)](_0x16c882){const _0x2680f3=_0x3e9a34;if(typeof _0x16c882[_0x2680f3(0x4ac)]!=='undefined')this[_0x2680f3(0x196)]=_0x16c882['shapeId'];if(typeof _0x16c882['unitId']!==_0x2680f3(0x544))this[_0x2680f3(0x324)]=_0x16c882['unitId'];if(typeof _0x16c882[_0x2680f3(0x5d6)]!==_0x2680f3(0x544))this[_0x2680f3(0x55d)]=_0x16c882[_0x2680f3(0x5d6)];if(typeof _0x16c882[_0x2680f3(0x1c5)]!=='undefined')this[_0x2680f3(0x539)]=_0x16c882[_0x2680f3(0x1c5)];this[_0x2680f3(0x227)]({'width':_0x16c882[_0x2680f3(0x183)],'height':_0x16c882['height']});}[_0x3e9a34(0x33c)](_0x5e778f){const _0x30cc1f=_0x3e9a34;_univerjs_engine_render['Circle'][_0x30cc1f(0x118)](_0x5e778f,{'radius':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x325)],'fill':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)][_0x30cc1f(0x213)],'stroke':_univerjs_pro_engine_shape[_0x30cc1f(0x49a)]['cxnPointStroke'],'strokeWidth':_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointStrokeWidth'],'evented':!![]});}};let SheetShapeConnectorController=class SheetShapeConnectorController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x2cd509,_0x16460e,_0x2ae16c,_0x16254e,_0xb28a70,_0xb6a345,_0x2520bc,_0x5b1b74){const _0x23d3c6=_0x3e9a34;super(),this['_context']=_0x2cd509,this['_commandService']=_0x16460e,this[_0x23d3c6(0x5cb)]=_0x2ae16c,this[_0x23d3c6(0x4d0)]=_0x16254e,this[_0x23d3c6(0x5e1)]=_0xb28a70,this[_0x23d3c6(0xfd)]=_0xb6a345,this[_0x23d3c6(0x653)]=_0x2520bc,this[_0x23d3c6(0x4cb)]=_0x5b1b74,_defineProperty(this,_0x23d3c6(0x2e4),void 0x0),_defineProperty(this,_0x23d3c6(0x324),void 0x0),_defineProperty(this,_0x23d3c6(0x55d),void 0x0),_defineProperty(this,_0x23d3c6(0x37f),[]),_defineProperty(this,_0x23d3c6(0x12d),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':![],'flipY':![]}),_defineProperty(this,'_activeShapeModel',void 0x0),_defineProperty(this,_0x23d3c6(0x1d4),![]),_defineProperty(this,_0x23d3c6(0x35b),![]),_defineProperty(this,_0x23d3c6(0x2ed),![]),_defineProperty(this,_0x23d3c6(0x636),void 0x0),_defineProperty(this,'_cxtHandlerPointerUp',void 0x0),_defineProperty(this,'_currentConnectionTarget',null),this[_0x23d3c6(0x206)]();}[_0x3e9a34(0x206)](){const _0x4c0bf9=_0x3e9a34;this['_registerDrawingFocusChangeHandler'](),this[_0x4c0bf9(0x52c)]();}['_getDrawingRect'](){const _0x1e9746=_0x3e9a34;if(!this['_unitId']||!this[_0x1e9746(0x55d)]||!this['_activeShapeId'])return;const _0x1303b9={'unitId':this[_0x1e9746(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1e9746(0x2e4)]},{transform:_0x35c65f}=this[_0x1e9746(0x4d0)][_0x1e9746(0x619)](_0x1303b9);if(!_0x35c65f)return;return{'left':_0x35c65f['left']||0x0,'top':_0x35c65f['top']||0x0,'width':_0x35c65f[_0x1e9746(0x183)]||0x0,'height':_0x35c65f[_0x1e9746(0x37b)]||0x0,'flipX':_0x35c65f[_0x1e9746(0x2f5)]||![],'flipY':_0x35c65f[_0x1e9746(0x35d)]||![],'angle':_0x35c65f[_0x1e9746(0x62d)]};}[_0x3e9a34(0x372)](){const _0x491fc1=_0x3e9a34;if(this[_0x491fc1(0x324)]===void 0x0||this[_0x491fc1(0x55d)]===void 0x0||this[_0x491fc1(0x2e4)]===void 0x0)return;const _0x49a34a=this[_0x491fc1(0x5cb)]['getRenderById'](this[_0x491fc1(0x324)]);if(!_0x49a34a)return;if(!_0x49a34a['with'](_univerjs_sheets_ui[_0x491fc1(0x412)])[_0x491fc1(0x60a)]())return;const {scene:_0x31bfa4}=_0x49a34a,_0x4b0a0e=this[_0x491fc1(0x5b8)]();if(!_0x4b0a0e)return;const _0x29bf43=this[_0x491fc1(0xfd)][_0x491fc1(0x533)](this[_0x491fc1(0x324)],this[_0x491fc1(0x55d)],this[_0x491fc1(0x2e4)]);if(!_0x29bf43)return;if(!(0x0,_univerjs_pro_engine_shape[_0x491fc1(0x654)])(_0x29bf43[_0x491fc1(0x478)]()))return;const _0x5394c9=_0x29bf43[_0x491fc1(0x20a)]();if(_0x5394c9[_0x491fc1(0x440)]<0x2)return;const _0x32994e=new _univerjs_pro_engine_shape[(_0x491fc1(0x572))](_0x4b0a0e),_0x1eeb0f=_0x5394c9[0x0],_0x281a66=_0x5394c9[_0x5394c9[_0x491fc1(0x440)]-0x1],_0x58d588=_0x32994e[_0x491fc1(0xfa)](_0x1eeb0f),_0x3b7657=_0x32994e['localToWorld'](_0x281a66);this['_addShapeConnectorHandlerObject'](_0x31bfa4,{..._0x58d588},!![]),this[_0x491fc1(0x375)](_0x31bfa4,{..._0x3b7657},![]);}[_0x3e9a34(0x375)](_0x1ecccd,_0x5282b,_0x3c8926){const _0x58b9ad=_0x3e9a34;if(this[_0x58b9ad(0x2e4)]===void 0x0||this[_0x58b9ad(0x324)]===void 0x0||this['_subUnitId']===void 0x0)return;const _0x372c76=_0x58b9ad(0x12e)+this[_0x58b9ad(0x324)]+'-'+this[_0x58b9ad(0x55d)]+'-'+this[_0x58b9ad(0x2e4)]+'-'+(_0x3c8926?_0x58b9ad(0x4c7):_0x58b9ad(0x2ae)),_0x3f55f3=_0x1ecccd[_0x58b9ad(0x21c)](_0x372c76);if(_0x3f55f3){_0x3f55f3['transformByState']({'left':_0x5282b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x5282b['y']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']});return;}const _0x2cf3ab=new SheetShapeConnectorHandlerObject(_0x372c76,{'left':_0x5282b['x']-_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)],'top':_0x5282b['y']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x58b9ad(0x325)],'shapeId':this['_activeShapeId'],'unitId':this[_0x58b9ad(0x324)],'subUnitId':this[_0x58b9ad(0x55d)],'isStartConnectorPoint':_0x3c8926,'width':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)]['cxnPointRadius']*0x2,'height':_univerjs_pro_engine_shape[_0x58b9ad(0x49a)][_0x58b9ad(0x325)]*0x2,'zIndex':_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1,'evented':!![]});this[_0x58b9ad(0x37f)][_0x58b9ad(0x2dd)](_0x2cf3ab),this['_attachConnectorObjectEvent'](_0x2cf3ab,_0x1ecccd,_0x3c8926),_0x1ecccd[_0x58b9ad(0x18b)](_0x2cf3ab,_univerjs_engine_render[_0x58b9ad(0x1bd)]+0x1);}[_0x3e9a34(0x507)](_0x2e92c4,_0x4a9e1b){const _0x3dc2b1=_0x3e9a34;var _0x1acec3;const _0x49c8aa={'x':0x0,'y':0x0};if(!_0x2e92c4||!_0x4a9e1b)return _0x49c8aa;const _0x5844ce=this[_0x3dc2b1(0x5cb)][_0x3dc2b1(0x17d)](_0x2e92c4);if(!_0x5844ce)return _0x49c8aa;if(!_0x5844ce['with'](_univerjs_sheets_ui[_0x3dc2b1(0x412)])[_0x3dc2b1(0x64e)](_0x4a9e1b))return _0x49c8aa;const _0x1ad89a=_0x5844ce[_0x3dc2b1(0x1cf)](_univerjs_sheets_ui['SheetScrollManagerService']),_0x5bfb4f=_0x1ad89a===null||_0x1ad89a===void 0x0?void 0x0:_0x1ad89a[_0x3dc2b1(0x531)]();if(!_0x5bfb4f)return _0x49c8aa;const _0x3f682e=(_0x1acec3=this[_0x3dc2b1(0x5e1)][_0x3dc2b1(0x46e)](_0x2e92c4))===null||_0x1acec3===void 0x0?void 0x0:_0x1acec3[_0x3dc2b1(0x299)](_0x4a9e1b);if(!_0x3f682e)return _0x49c8aa;const _0x45127e=(0x0,_univerjs_sheets_ui['getViewportByCell'])(_0x5bfb4f[_0x3dc2b1(0x484)],_0x5bfb4f[_0x3dc2b1(0x38d)],_0x5844ce[_0x3dc2b1(0x2a4)],_0x3f682e);if(!_0x45127e)return _0x49c8aa;return{'x':_0x45127e[_0x3dc2b1(0x4aa)],'y':_0x45127e[_0x3dc2b1(0x520)]};}[_0x3e9a34(0x52f)](_0x561323,_0x3d820f){const _0x4e1d56=_0x3e9a34;var _0x4dcd68,_0x24f1a4;const _0x23ff72=(_0x4dcd68=this['_univerInstanceService']['getUnit'](_0x561323))===null||_0x4dcd68===void 0x0?void 0x0:_0x4dcd68[_0x4e1d56(0x299)](_0x3d820f);return(_0x24f1a4=_0x23ff72===null||_0x23ff72===void 0x0?void 0x0:_0x23ff72[_0x4e1d56(0x234)]())!==null&&_0x24f1a4!==void 0x0?_0x24f1a4:0x1;}[_0x3e9a34(0x2e6)](_0x14f81e,_0x48475f,_0x36d078,_0x16d538,_0x145c0a){const _0x5e7906=_0x3e9a34;this[_0x5e7906(0x636)][_0x5e7906(0x54e)](),this[_0x5e7906(0x49c)][_0x5e7906(0x54e)](),this[_0x5e7906(0x653)]['refreshAdjustControls']();const _0x43db43=this[_0x5e7906(0x639)];this[_0x5e7906(0x4cb)]['endConnectionDetection']();const _0x592c57=this[_0x5e7906(0x507)](this['_unitId'],this[_0x5e7906(0x55d)]),_0x58ebe5=this[_0x5e7906(0x52f)](this[_0x5e7906(0x324)],this['_subUnitId']),_0x424e2c={'x':_0x36d078[_0x5e7906(0x59b)]/_0x58ebe5+_0x592c57['x'],'y':_0x36d078['offsetY']/_0x58ebe5+_0x592c57['y']},_0x3b1019=_0x43db43?_0x43db43[_0x5e7906(0x55b)]:_0x424e2c,_0x529cb5=_0x16d538?this[_0x5e7906(0x19a)][_0x5e7906(0xef)]():this[_0x5e7906(0x19a)][_0x5e7906(0x634)](),_0x1ee93b=this[_0x5e7906(0x19a)][_0x5e7906(0x478)]();if(!_0x529cb5)this[_0x5e7906(0x4d4)](_0x48475f,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a,_0x1ee93b);else this[_0x5e7906(0x1f5)](_0x529cb5,_0x3b1019,_0x16d538,_0x43db43,_0x145c0a);this[_0x5e7906(0x1d4)]=![],this[_0x5e7906(0x2ed)]=![],this[_0x5e7906(0x639)]=null,_0x14f81e[_0x5e7906(0x4fc)]();}[_0x3e9a34(0x4d4)](_0x2762ae,_0x40d97b,_0x12b4d2,_0x57c607,_0x54cdf3,_0x32ce4a){const _0x3cb1ed=_0x3e9a34,_0xb9cac4=_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x641)]||_0x32ce4a===_univerjs_pro_engine_shape[_0x3cb1ed(0x126)][_0x3cb1ed(0x2a5)],_0x32b668=_0x12b4d2?_0x40d97b:_0x2762ae,_0x53e2d2=_0x12b4d2?_0x2762ae:_0x40d97b,_0x6c8fad=this[_0x3cb1ed(0x19a)]['getConnectorLinePoints'](),_0x30c3f7=(0x0,_univerjs_pro_engine_shape[_0x3cb1ed(0x529)])(this[_0x3cb1ed(0x19a)][_0x3cb1ed(0x478)]()),_0x174b74=_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x17a)](_0x6c8fad,_0x30c3f7),_0x408a16=_0xb9cac4?_univerjs_pro_engine_shape[_0x3cb1ed(0x572)][_0x3cb1ed(0x1e8)](_0x32b668,_0x53e2d2):_univerjs_pro_engine_shape[_0x3cb1ed(0x572)]['computeConnectorResizeLayout'](_0x2762ae,_0x40d97b,_0x12b4d2,_0x174b74);if(_0x57c607)this[_0x3cb1ed(0x266)](_0x408a16,_0x57c607,_0x12b4d2,_0x54cdf3);else this[_0x3cb1ed(0x1a7)](_0x408a16,_0x54cdf3);}[_0x3e9a34(0x1f5)](_0x5d6fba,_0x5b1b1e,_0x58b28e,_0x20f1f8,_0x5a1982){const _0x34ce44=_0x3e9a34,_0x438c4b=this['_getConnectPointInfo'](_0x5d6fba);if(!_0x438c4b)return;const _0x127a06=_0x20f1f8?_0x20f1f8[_0x34ce44(0x62d)]:this['_calculateFreeEndpointAngle'](_0x438c4b[_0x34ce44(0x1c6)],_0x5b1b1e);let _0x2bbc23;if(_0x20f1f8){const _0x52fd1a=this['_drawingManagerService'][_0x34ce44(0x619)]({'unitId':_0x20f1f8['unitId'],'subUnitId':_0x20f1f8['subUnitId'],'drawingId':_0x20f1f8[_0x34ce44(0x4ac)]});if(_0x52fd1a===null||_0x52fd1a===void 0x0?void 0x0:_0x52fd1a[_0x34ce44(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x4b2909}=_0x52fd1a['transform'];_0x2bbc23=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x4b2909||0x0);}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};}else _0x2bbc23={'left':_0x5b1b1e['x'],'top':_0x5b1b1e['y'],'width':0x0,'height':0x0};const _0x308d49={'point':_0x5b1b1e,'angle':_0x127a06,'bounds':_0x2bbc23},_0x1066c4=_0x58b28e?_0x308d49:_0x438c4b,_0x536206=_0x58b28e?_0x438c4b:_0x308d49,_0xdb8152=this[_0x34ce44(0x19a)][_0x34ce44(0x478)](),_0xfb65b0=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0x1066c4,_0x536206,_0xdb8152);this[_0x34ce44(0x19a)][_0x34ce44(0x546)]();const _0xaa1f4e=(0x0,_univerjs_pro_engine_shape[_0x34ce44(0x37a)])(_0xfb65b0,_0xdb8152);if(_0x20f1f8)this[_0x34ce44(0x5bd)](_0xaa1f4e,_0x20f1f8,_0x5d6fba,_0x58b28e,_0x5a1982);else this[_0x34ce44(0x40d)](_0xaa1f4e,_0x5d6fba,_0x58b28e,_0x5a1982);}[_0x3e9a34(0x266)](_0x349fa4,_0x1193aa,_0x2867d0,_0x426d9f){const _0x2daf9d=_0x3e9a34,_0x2994c5=this['_activeShapeModel'][_0x2daf9d(0x470)]()['relation'],_0x5853ae={..._0x2994c5},_0x4581fa={'shapeId':_0x1193aa['shapeId'],'cxnIndex':_0x1193aa[_0x2daf9d(0x120)]};if(_0x2867d0)_0x5853ae[_0x2daf9d(0x214)]=_0x4581fa;else _0x5853ae['to']=_0x4581fa;const _0x40f190=this['_activeShapeModel'][_0x2daf9d(0x478)](),_0x48775f=(0x0,_univerjs_pro_engine_shape[_0x2daf9d(0x37a)])(_0x349fa4['worldPoints'],_0x40f190),_0x986691={'unitId':this[_0x2daf9d(0x324)],'subUnitId':this[_0x2daf9d(0x55d)],'connectorShapeId':this[_0x2daf9d(0x2e4)],'width':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x183)],'height':_0x349fa4[_0x2daf9d(0x23a)][_0x2daf9d(0x37b)],'left':_0x349fa4[_0x2daf9d(0x23a)]['left'],'top':_0x349fa4[_0x2daf9d(0x23a)]['top'],'flipX':_0x349fa4[_0x2daf9d(0x23a)]['flipX']||![],'flipY':_0x349fa4[_0x2daf9d(0x23a)]['flipY']||![],'newAdjustValues':_0x48775f[_0x2daf9d(0x132)],'oldAdjustValues':_0x426d9f,'oldRelation':_0x2994c5,'newRelation':_0x5853ae,'newLineType':_0x48775f[_0x2daf9d(0x5de)],'oldLineType':_0x40f190};this[_0x2daf9d(0x363)][_0x2daf9d(0x591)](_univerjs_pro_sheets_shape[_0x2daf9d(0x2c8)]['id'],_0x986691);}[_0x3e9a34(0x1a7)](_0x1d6ccd,_0x341f41){const _0x19d3ac=_0x3e9a34,_0x4c874d=this[_0x19d3ac(0x19a)][_0x19d3ac(0x478)](),_0x56cc4f=(0x0,_univerjs_pro_engine_shape[_0x19d3ac(0x37a)])(_0x1d6ccd[_0x19d3ac(0x1aa)],_0x4c874d),_0x43d5c9={'unitId':this[_0x19d3ac(0x324)],'subUnitId':this[_0x19d3ac(0x55d)],'shapeId':this[_0x19d3ac(0x2e4)],'width':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x183)],'height':_0x1d6ccd['worldRect'][_0x19d3ac(0x37b)],'left':_0x1d6ccd[_0x19d3ac(0x23a)]['left'],'top':_0x1d6ccd[_0x19d3ac(0x23a)]['top'],'flipX':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x2f5)]||![],'flipY':_0x1d6ccd['worldRect'][_0x19d3ac(0x35d)]||![],'angle':_0x1d6ccd[_0x19d3ac(0x23a)][_0x19d3ac(0x62d)]||0x0,'newAdjustValues':_0x56cc4f[_0x19d3ac(0x132)],'oldAdjustValues':_0x341f41,'newLineType':_0x56cc4f[_0x19d3ac(0x5de)],'oldLineType':_0x4c874d};this[_0x19d3ac(0x363)][_0x19d3ac(0x591)](_univerjs_pro_sheets_shape[_0x19d3ac(0x468)]['id'],_0x43d5c9);}[_0x3e9a34(0x5bd)](_0x1790e4,_0x4d26cf,_0x36225d,_0x1e41d6,_0x511d5e){const _0x38cd7f=_0x3e9a34,_0x192420=this[_0x38cd7f(0x19a)][_0x38cd7f(0x470)]()[_0x38cd7f(0x276)],_0x5f3a48={..._0x192420},_0x55f622={'shapeId':_0x4d26cf['shapeId'],'cxnIndex':_0x4d26cf[_0x38cd7f(0x120)]};_0x1e41d6?(_0x5f3a48['from']=_0x55f622,_0x5f3a48['to']=_0x36225d):(_0x5f3a48[_0x38cd7f(0x214)]=_0x36225d,_0x5f3a48['to']=_0x55f622);const _0x90c375={'unitId':this[_0x38cd7f(0x324)],'subUnitId':this[_0x38cd7f(0x55d)],'connectorShapeId':this[_0x38cd7f(0x2e4)],'width':_0x1790e4[_0x38cd7f(0x23a)]['width'],'height':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x37b)],'left':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0xe1)],'top':_0x1790e4[_0x38cd7f(0x23a)]['top'],'flipX':_0x1790e4['worldRect'][_0x38cd7f(0x2f5)]||![],'flipY':_0x1790e4[_0x38cd7f(0x23a)][_0x38cd7f(0x35d)]||![],'oldAdjustValues':_0x511d5e,'newAdjustValues':_0x1790e4[_0x38cd7f(0x132)],'newLineType':_0x1790e4[_0x38cd7f(0x5de)],'rotation':_0x1790e4['rotation'],'oldRelation':_0x192420,'newRelation':_0x5f3a48};this['_commandService'][_0x38cd7f(0x591)](_univerjs_pro_sheets_shape[_0x38cd7f(0x2c8)]['id'],_0x90c375);}[_0x3e9a34(0x40d)](_0x4f387e,_0xe6828a,_0x55c151,_0x59cd60){const _0x48286e=_0x3e9a34,_0x3831db=this['_activeShapeModel'][_0x48286e(0x470)]()[_0x48286e(0x276)],_0x5dd58c={};_0x55c151?(_0x5dd58c['to']=_0xe6828a,_0x5dd58c['from']=void 0x0):(_0x5dd58c[_0x48286e(0x214)]=_0xe6828a,_0x5dd58c['to']=void 0x0);const _0x1c1880={'unitId':this[_0x48286e(0x324)],'subUnitId':this[_0x48286e(0x55d)],'connectorShapeId':this[_0x48286e(0x2e4)],'width':_0x4f387e[_0x48286e(0x23a)]['width'],'height':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x37b)],'left':_0x4f387e[_0x48286e(0x23a)]['left'],'top':_0x4f387e[_0x48286e(0x23a)]['top'],'flipX':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x2f5)]||![],'flipY':_0x4f387e[_0x48286e(0x23a)][_0x48286e(0x35d)]||![],'oldAdjustValues':_0x59cd60,'newAdjustValues':_0x4f387e[_0x48286e(0x132)],'newLineType':_0x4f387e[_0x48286e(0x5de)],'rotation':_0x4f387e[_0x48286e(0x605)],'oldRelation':_0x3831db,'newRelation':_0x5dd58c};this['_commandService'][_0x48286e(0x591)](_univerjs_pro_sheets_shape[_0x48286e(0x2c8)]['id'],_0x1c1880);}['_attachConnectorObjectEvent'](_0x5ec667,_0x557a3f,_0xcb5a2d){const _0x4ed18e=_0x3e9a34;this[_0x4ed18e(0x58e)]((0x0,_univerjs_core[_0x4ed18e(0x28e)])(_0x5ec667['onPointerDown$'][_0x4ed18e(0x345)]((_0xb657c,_0x141525)=>{const _0x502570=_0x4ed18e,_0xaa8272=_0x5ec667[_0x502570(0x40e)]();this[_0x502570(0x19a)]=this[_0x502570(0xfd)]['getShapeModel'](_0xaa8272['unitId'],_0xaa8272['subUnitId'],_0xaa8272[_0x502570(0x4c5)]);if(!this['_activeShapeModel'])return;const _0x46d849={};this['_activeShapeModel'][_0x502570(0x56e)]()['forEach'](_0x11a6c6=>{const _0x2d8e49=_0x502570,_0x15ba5f=this[_0x2d8e49(0x19a)][_0x2d8e49(0x5f9)](_0x11a6c6);if(_0x15ba5f!==void 0x0)_0x46d849[_0x11a6c6]=_0x15ba5f;});const _0x26a0bb=this[_0x502570(0x5b8)]();if(!_0x26a0bb)return;this[_0x502570(0x12d)]={..._0x26a0bb};const _0x31289f=new _univerjs_pro_engine_shape['ConnectorCoordinateTransform'](this[_0x502570(0x12d)]),_0x12bc3d=(0x0,_univerjs_drawing[_0x502570(0x171)])({'unitId':this[_0x502570(0x324)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x502570(0x2e4)]}),_0x45a243=_0x557a3f['getObjectIncludeInGroup'](_0x12bc3d);this[_0x502570(0x1d4)]=!![],_0x557a3f[_0x502570(0x3c5)](),this[_0x502570(0x4cb)][_0x502570(0x431)](_0x557a3f,this[_0x502570(0x324)],this[_0x502570(0x55d)],this['_activeShapeId']),this[_0x502570(0x639)]=null;const _0x584c1a=this['_activeShapeModel'][_0x502570(0x20a)](),_0x66deb2=_0x584c1a[0x0],_0x102947=_0x584c1a[_0x584c1a[_0x502570(0x440)]-0x1],_0x45809f=_0xcb5a2d?_0x31289f[_0x502570(0xfa)](_0x102947):_0x31289f['localToWorld'](_0x66deb2);this[_0x502570(0x636)]=_0x557a3f['onPointerMove$'][_0x502570(0x345)]((_0x29ecf3,_0x57d3f6)=>{const _0x57978b=_0x502570;if(!this[_0x57978b(0x1d4)]||!this['_activeShapeModel'])return;!this[_0x57978b(0x2ed)]&&(this['_sheetShapeAdjustController']['clearAdjustControls'](),this[_0x57978b(0x19a)][_0x57978b(0x43e)](),this[_0x57978b(0x2ed)]=!![]);const _0xbd9792=this[_0x57978b(0x507)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x4ff873=this[_0x57978b(0x52f)](this[_0x57978b(0x324)],this[_0x57978b(0x55d)]),_0x23f0d1={'x':_0x29ecf3[_0x57978b(0x59b)]/_0x4ff873+_0xbd9792['x'],'y':_0x29ecf3[_0x57978b(0x161)]/_0x4ff873+_0xbd9792['y']},_0x5ac8b2=this[_0x57978b(0x4cb)][_0x57978b(0x581)](_0x23f0d1);if(_0x5ac8b2){const {shapeId:_0x5daa9c,unitId:_0x45090f,subUnitId:_0x323e7b}=_0x5ac8b2;if(_0x5daa9c&&_0x45090f&&_0x323e7b){const _0x3e5333=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x45090f,'subUnitId':_0x323e7b,'drawingId':_0x5daa9c});_0x5ac8b2['angle']=(_0x557a3f[_0x57978b(0x21c)](_0x3e5333)[_0x57978b(0x62d)]||0x0)+_0x5ac8b2['angle'];}}this[_0x57978b(0x639)]=_0x5ac8b2;const _0x293aa8=_0xcb5a2d?this[_0x57978b(0x19a)][_0x57978b(0xef)]():this[_0x57978b(0x19a)][_0x57978b(0x634)]();if(_0x293aa8){this[_0x57978b(0x53d)](_0x293aa8,_0x23f0d1,_0xcb5a2d,_0x45a243,_0x5ec667);return;}this[_0x57978b(0x3a6)](_0x23f0d1,_0x45809f,_0xcb5a2d,_0x45a243,_0x5ec667);}),this[_0x502570(0x49c)]=_0x557a3f['onPointerUp$'][_0x502570(0x345)]((_0x3e4fb8,_0x586c2e)=>{const _0x5f14ac=_0x502570;this[_0x5f14ac(0x2e6)](_0x557a3f,_0x45809f,_0x3e4fb8,_0xcb5a2d,_0x46d849);}),_0x141525[_0x502570(0x11e)]();})));}[_0x3e9a34(0x5eb)](_0x5a07bd,_0x7b7fbc,_0x3b9542){const _0x13db8b=_0x3e9a34,_0x3697d7=this[_0x13db8b(0xfd)][_0x13db8b(0x460)](_0x5a07bd,_0x7b7fbc,_0x3b9542);if(!_0x3697d7||_0x3697d7[_0x13db8b(0x440)]===0x0)return;const _0x2dcd2e=this[_0x13db8b(0x5cb)]['getRenderById'](_0x5a07bd);if(!_0x2dcd2e)return;const {scene:_0x2e88bb}=_0x2dcd2e;for(const _0x165f5a of _0x3697d7){const _0x188011=_0x165f5a[_0x13db8b(0x1dc)],_0x107071=this[_0x13db8b(0xfd)][_0x13db8b(0x533)](_0x5a07bd,_0x7b7fbc,_0x188011);if(!_0x107071)continue;const _0xa21258=_0x107071['getStartConnectInfo'](),_0x31e09f=_0x107071[_0x13db8b(0xef)](),_0x368446=(_0xa21258===null||_0xa21258===void 0x0?void 0x0:_0xa21258[_0x13db8b(0x4ac)])===_0x3b9542,_0x51eef3=(0x0,_univerjs_drawing['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011}),_0x45e9e3=_0x2e88bb[_0x13db8b(0x21c)](_0x51eef3);if(!_0x45e9e3)continue;const _0x316e05=this['_drawingManagerService'][_0x13db8b(0x619)]({'unitId':_0x5a07bd,'subUnitId':_0x7b7fbc,'drawingId':_0x188011});if(!(_0x316e05===null||_0x316e05===void 0x0?void 0x0:_0x316e05['transform']))continue;if(_0xa21258&&_0x31e09f)this[_0x13db8b(0x217)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0xa21258,_0x31e09f,_0x45e9e3);else this[_0x13db8b(0x133)](_0x5a07bd,_0x7b7fbc,_0x188011,_0x107071,_0x368446?_0xa21258:_0x31e09f,_0x368446,_0x316e05,_0x45e9e3);}}[_0x3e9a34(0x217)](_0x71ad25,_0x466300,_0x8719fb,_0x15df2b,_0x55ee34,_0x2be603,_0x341ce8){const _0x443e6c=_0x3e9a34,_0x3f71c4=this[_0x443e6c(0x324)],_0x2d6219=this['_subUnitId'];this['_unitId']=_0x71ad25,this[_0x443e6c(0x55d)]=_0x466300;const _0x47f469=this[_0x443e6c(0x557)](_0x55ee34),_0x401965=this[_0x443e6c(0x557)](_0x2be603);this[_0x443e6c(0x324)]=_0x3f71c4,this[_0x443e6c(0x55d)]=_0x2d6219;if(!_0x47f469||!_0x401965)return;const _0x534264=_0x15df2b[_0x443e6c(0x478)](),_0x17c0ae=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x273)])(_0x47f469,_0x401965,_0x534264);if(_0x17c0ae)_0x15df2b[_0x443e6c(0x664)](_0x17c0ae);const _0x160981=(0x0,_univerjs_pro_engine_shape[_0x443e6c(0x37a)])(_0x17c0ae,_0x534264);if(_0x160981[_0x443e6c(0x5de)]!==_0x534264)_0x15df2b[_0x443e6c(0x3ad)](_0x160981[_0x443e6c(0x5de)]);_0x15df2b[_0x443e6c(0x43e)]();for(const [_0x2b4d93,_0x535fc3]of Object[_0x443e6c(0x180)](_0x160981['adjustValues']))_0x15df2b[_0x443e6c(0x57d)](_0x2b4d93,_0x535fc3);_0x15df2b[_0x443e6c(0x566)]({'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981['worldRect']['height']}),_0x341ce8[_0x443e6c(0x227)]({'flipX':_0x160981['worldRect'][_0x443e6c(0x2f5)],'flipY':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x35d)],'left':_0x160981[_0x443e6c(0x23a)]['left'],'top':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x156)],'width':_0x160981[_0x443e6c(0x23a)][_0x443e6c(0x183)],'height':_0x160981[_0x443e6c(0x23a)]['height'],'angle':_0x160981['rotation']}),_0x15df2b[_0x443e6c(0x546)]();}[_0x3e9a34(0x133)](_0x1ae6af,_0x2dc092,_0x531fee,_0x2a1ecb,_0x1f468d,_0x55edc5,_0x513773,_0x67027a){const _0x2eb4bd=_0x3e9a34,_0x529823=this[_0x2eb4bd(0x324)],_0x541c97=this['_subUnitId'];this[_0x2eb4bd(0x324)]=_0x1ae6af,this[_0x2eb4bd(0x55d)]=_0x2dc092;const _0x853c4b=this['_getConnectPointInfo'](_0x1f468d);this['_unitId']=_0x529823,this[_0x2eb4bd(0x55d)]=_0x541c97;if(!_0x853c4b)return;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x513773[_0x2eb4bd(0x600)],_0x1d8875=_0x2a1ecb[_0x2eb4bd(0x20a)]();if(_0x1d8875['length']<0x2)return;const _0x42588a=new _univerjs_pro_engine_shape[(_0x2eb4bd(0x572))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY}),_0x41f03a=_0x55edc5?_0x1d8875[_0x1d8875['length']-0x1]:_0x1d8875[0x0],_0x3e1ac5=_0x42588a[_0x2eb4bd(0xfa)](_0x41f03a),_0x29ef3b=_univerjs_pro_engine_shape[_0x2eb4bd(0x572)]['computeConnectorResizeLayout'](_0x3e1ac5,_0x853c4b[_0x2eb4bd(0x1c6)],!_0x55edc5);_0x67027a[_0x2eb4bd(0x227)]({'flipX':_0x29ef3b['worldRect'][_0x2eb4bd(0x2f5)],'flipY':_0x29ef3b[_0x2eb4bd(0x23a)]['flipY'],'left':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0xe1)],'top':_0x29ef3b['worldRect']['top'],'width':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x183)],'height':_0x29ef3b['worldRect'][_0x2eb4bd(0x37b)],'angle':_0x29ef3b[_0x2eb4bd(0x23a)][_0x2eb4bd(0x62d)]}),_0x67027a[_0x2eb4bd(0x309)](!![]);}[_0x3e9a34(0x4fe)](){const _0x52de53=_0x3e9a34;if(this[_0x52de53(0x37f)][_0x52de53(0x440)]===0x0)return;this[_0x52de53(0x37f)][_0x52de53(0x289)](_0x1b3c2e=>{_0x1b3c2e['dispose']();}),this[_0x52de53(0x37f)]=[];}[_0x3e9a34(0x52c)](){const _0x3bf1a4=_0x3e9a34,_0x219158=this[_0x3bf1a4(0x5e1)][_0x3bf1a4(0x3c7)](_univerjs_core[_0x3bf1a4(0x4cd)][_0x3bf1a4(0x58b)]);this['disposeWithMe'](_0x219158[_0x3bf1a4(0x1e2)]((0x0,rxjs[_0x3bf1a4(0x352)])(_0x559877=>{const _0xd62e9=_0x3bf1a4;if(!_0x559877)return rxjs[_0xd62e9(0x218)];return _0x559877[_0xd62e9(0x1e1)][_0xd62e9(0x1e2)]((0x0,rxjs[_0xd62e9(0x352)])(_0x1a3d16=>{const _0x57e9e3=_0xd62e9;if(!_0x1a3d16)return rxjs[_0x57e9e3(0x218)];const _0x59cdde=_0x559877[_0x57e9e3(0x386)](),_0x2baceb=this[_0x57e9e3(0x5cb)][_0x57e9e3(0x17d)](_0x59cdde),_0x31f866=_0x2baceb===null||_0x2baceb===void 0x0?void 0x0:_0x2baceb[_0x57e9e3(0x2a4)];if(!_0x31f866)return rxjs['EMPTY'];return(0x0,rxjs['of'])(_0x31f866);}));}))[_0x3bf1a4(0x562)](_0x5defe8=>{const _0x1f7c9c=_0x3bf1a4,_0x204925=_0x5defe8[_0x1f7c9c(0xe2)]();this[_0x1f7c9c(0x58e)](_0x5defe8['onPointerMove$'][_0x1f7c9c(0x345)](_0x5afe49=>{const _0x18b3de=_0x1f7c9c;if(this[_0x18b3de(0x35b)]&&this[_0x18b3de(0x2e4)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x14c)][_0x1f7c9c(0x562)](_0x43496b=>{const _0x5a3a45=_0x1f7c9c,{objects:_0x79b175}=_0x43496b;this[_0x5a3a45(0x4fe)]();if(_0x79b175!==null&&_0x79b175[_0x5a3a45(0x43f)]===0x1){if(_0x79b175[_0x5a3a45(0x4b8)]()[_0x5a3a45(0x5c7)]()[_0x5a3a45(0x115)]instanceof DrawingShape)this[_0x5a3a45(0x35b)]=!![];}})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x304)][_0x1f7c9c(0x562)](_0x2c22b2=>{const _0x54519f=_0x1f7c9c;if(this[_0x54519f(0x35b)])this['_clearShapeConnectorHandlerObjects']();})),this[_0x1f7c9c(0x58e)](_0x5defe8[_0x1f7c9c(0x575)]['subscribeEvent'](()=>{const _0x556791=_0x1f7c9c;this[_0x556791(0x35b)]&&(this[_0x556791(0x35b)]=![],this[_0x556791(0x372)]());})),this[_0x1f7c9c(0x58e)](_0x204925[_0x1f7c9c(0x4c0)]['subscribe'](()=>{const _0x5d1ec1=_0x1f7c9c;this[_0x5d1ec1(0x324)]&&this[_0x5d1ec1(0x55d)]&&this[_0x5d1ec1(0x2e4)]&&(this['_drawingManagerService'][_0x5d1ec1(0x619)]({'unitId':this[_0x5d1ec1(0x324)],'subUnitId':this[_0x5d1ec1(0x55d)],'drawingId':this[_0x5d1ec1(0x2e4)]})&&(this[_0x5d1ec1(0x4fe)](),this['_addShapeConnectorHandlerObjects']()));}));}));}[_0x3e9a34(0x2fc)](){const _0x26baf8=_0x3e9a34;this[_0x26baf8(0x58e)](this[_0x26baf8(0x4d0)][_0x26baf8(0x188)]['subscribe'](_0x2846bd=>{const _0x1495f6=_0x26baf8;if(_0x2846bd[_0x1495f6(0x440)]===0x1){const _0x15e0cb=_0x2846bd[0x0];if(_0x15e0cb[_0x1495f6(0x5ec)]===_univerjs_core[_0x1495f6(0x506)][_0x1495f6(0x3fc)]){const _0xb07d27=this[_0x1495f6(0xfd)][_0x1495f6(0x533)](_0x15e0cb['unitId'],_0x15e0cb[_0x1495f6(0x5d6)],_0x15e0cb[_0x1495f6(0x4c5)]);if(_0xb07d27&&(0x0,_univerjs_pro_engine_shape[_0x1495f6(0x654)])(_0xb07d27[_0x1495f6(0x478)]())){this[_0x1495f6(0x2e4)]=_0x15e0cb[_0x1495f6(0x4c5)],this[_0x1495f6(0x324)]=_0x15e0cb['unitId'],this[_0x1495f6(0x55d)]=_0x15e0cb[_0x1495f6(0x5d6)],this[_0x1495f6(0x4fe)](),this['_addShapeConnectorHandlerObjects']();return;}}}this[_0x1495f6(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x1495f6(0x55d)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x554)][_0x26baf8(0x562)](_0x1abaf8=>{const _0x3e60b2=_0x26baf8;if(_0x1abaf8[_0x3e60b2(0x440)]===0x1){var _0x1ef2de;const _0x4bfe00=_0x1abaf8[0x0],_0x5f2c63=(_0x1ef2de=this[_0x3e60b2(0x4d0)]['getDrawingByParam'](_0x4bfe00))===null||_0x1ef2de===void 0x0?void 0x0:_0x1ef2de['drawingType'];if(_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)]&&_0x4bfe00['drawingId']===this['_activeShapeId'])this[_0x3e60b2(0x4fe)](),this[_0x3e60b2(0x372)]();else{if(!this[_0x3e60b2(0x2e4)]&&_0x5f2c63===_univerjs_core[_0x3e60b2(0x506)][_0x3e60b2(0x3fc)])this[_0x3e60b2(0x5eb)](_0x4bfe00['unitId'],_0x4bfe00[_0x3e60b2(0x5d6)],_0x4bfe00[_0x3e60b2(0x4c5)]);}}})),this[_0x26baf8(0x58e)](this['_drawingManagerService'][_0x26baf8(0x31c)][_0x26baf8(0x562)](_0x36917=>{const _0x12e25b=_0x26baf8;for(const _0x53f623 of _0x36917){const {drawingId:_0x13f3e1}=_0x53f623;if(this[_0x12e25b(0x2e4)]===_0x13f3e1){this[_0x12e25b(0x301)]();return;}}}));}[_0x3e9a34(0x53d)](_0xa387cd,_0x4c5efe,_0x2b7f2b,_0x5deaa6,_0x5821d6){const _0x309b11=_0x3e9a34;var _0x3801cf,_0x187ed5;if(!this[_0x309b11(0x19a)])return;const _0x352165=this['_getConnectPointInfo'](_0xa387cd);if(!_0x352165)return;const _0x4a829f=this[_0x309b11(0x639)]?this[_0x309b11(0x639)][_0x309b11(0x55b)]:_0x4c5efe,_0xba00d5=this[_0x309b11(0x639)]?this['_currentConnectionTarget'][_0x309b11(0x62d)]:this['_calculateFreeEndpointAngle'](_0x352165[_0x309b11(0x1c6)],_0x4a829f);let _0x216e36;if(this[_0x309b11(0x639)]){const _0x3bf232=this[_0x309b11(0x4d0)]['getDrawingByParam']({'unitId':this[_0x309b11(0x639)][_0x309b11(0x4a8)],'subUnitId':this['_currentConnectionTarget'][_0x309b11(0x5d6)],'drawingId':this[_0x309b11(0x639)]['shapeId']});if(_0x3bf232===null||_0x3bf232===void 0x0?void 0x0:_0x3bf232[_0x309b11(0x600)]){const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,angle:_0x469b77}=_0x3bf232[_0x309b11(0x600)];_0x216e36=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x5f6)])({'left':left,'top':top,'width':width,'height':height},_0x469b77||0x0);}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};}else _0x216e36={'left':_0x4a829f['x'],'top':_0x4a829f['y'],'width':0x0,'height':0x0};const _0x1bb271={'point':_0x4a829f,'angle':_0xba00d5,'bounds':_0x216e36},_0xa2b264=_0x2b7f2b?_0x1bb271:_0x352165,_0x28e397=_0x2b7f2b?_0x352165:_0x1bb271,_0x1cb66f=this[_0x309b11(0x19a)][_0x309b11(0x478)](),_0x2dca38=(0x0,_univerjs_pro_engine_shape['routeConnectorLineShape'])(_0xa2b264,_0x28e397,_0x1cb66f);if(_0x2dca38)this[_0x309b11(0x19a)][_0x309b11(0x664)](_0x2dca38);const _0x38cd26=(0x0,_univerjs_pro_engine_shape[_0x309b11(0x37a)])(_0x2dca38,_0x1cb66f);if(_0x38cd26['lineType']!==_0x1cb66f)this[_0x309b11(0x19a)][_0x309b11(0x3ad)](_0x38cd26[_0x309b11(0x5de)]);for(const [_0x39fb84,_0x48170f]of Object[_0x309b11(0x180)](_0x38cd26[_0x309b11(0x132)]))this[_0x309b11(0x19a)][_0x309b11(0x57d)](_0x39fb84,_0x48170f);this[_0x309b11(0x19a)][_0x309b11(0x566)]({'width':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x183)],'height':_0x38cd26[_0x309b11(0x23a)]['height']}),_0x5deaa6['transformByState']({'flipX':_0x38cd26['worldRect'][_0x309b11(0x2f5)],'flipY':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x35d)],'left':_0x38cd26[_0x309b11(0x23a)]['left'],'top':_0x38cd26[_0x309b11(0x23a)][_0x309b11(0x156)],'width':_0x38cd26['worldRect'][_0x309b11(0x183)],'height':_0x38cd26['worldRect'][_0x309b11(0x37b)],'angle':_0x38cd26[_0x309b11(0x605)]}),_0x5deaa6[_0x309b11(0x309)](!![]);const _0x3ba15b=(_0x3801cf=(_0x187ed5=this[_0x309b11(0x639)])===null||_0x187ed5===void 0x0?void 0x0:_0x187ed5[_0x309b11(0x55b)])!==null&&_0x3801cf!==void 0x0?_0x3801cf:_0x4c5efe;_0x5821d6['transformByState']({'left':_0x3ba15b['x']-_univerjs_pro_engine_shape['ShapeDefaultConfig'][_0x309b11(0x325)],'top':_0x3ba15b['y']-_univerjs_pro_engine_shape[_0x309b11(0x49a)][_0x309b11(0x325)]});}['_handleFreeEndpointMove'](_0x50e8ba,_0x3b5f34,_0x567bbc,_0x42e9f8,_0x32c1a6){const _0x4c081d=_0x3e9a34;var _0x5f18e2,_0x22884c,_0xfb8db6,_0x5f2cb0;const _0x2aee78=(_0x5f18e2=(_0x22884c=this[_0x4c081d(0x639)])===null||_0x22884c===void 0x0?void 0x0:_0x22884c[_0x4c081d(0x55b)])!==null&&_0x5f18e2!==void 0x0?_0x5f18e2:_0x50e8ba,_0x2608f9=_univerjs_pro_engine_shape[_0x4c081d(0x572)][_0x4c081d(0x23f)](_0x3b5f34,_0x2aee78,_0x567bbc);_0x42e9f8[_0x4c081d(0x227)]({'flipX':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x2f5)],'flipY':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x35d)],'left':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0xe1)],'top':_0x2608f9[_0x4c081d(0x23a)]['top'],'width':_0x2608f9[_0x4c081d(0x23a)][_0x4c081d(0x183)],'height':_0x2608f9['worldRect'][_0x4c081d(0x37b)],'angle':_0x2608f9[_0x4c081d(0x23a)]['angle']});const _0x3abf4c=(_0xfb8db6=(_0x5f2cb0=this[_0x4c081d(0x639)])===null||_0x5f2cb0===void 0x0?void 0x0:_0x5f2cb0[_0x4c081d(0x55b)])!==null&&_0xfb8db6!==void 0x0?_0xfb8db6:_0x50e8ba;_0x32c1a6[_0x4c081d(0x227)]({'left':_0x3abf4c['x']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius'],'top':_0x3abf4c['y']-_univerjs_pro_engine_shape[_0x4c081d(0x49a)]['cxnPointRadius']});}[_0x3e9a34(0x557)](_0x54b17a){const _0x15720b=_0x3e9a34;if(!this[_0x15720b(0x324)]||!this[_0x15720b(0x55d)])return null;const {shapeId:_0x43bd99,cxnIndex:_0x3caceb}=_0x54b17a,_0x507c16=this[_0x15720b(0xfd)][_0x15720b(0x533)](this[_0x15720b(0x324)],this[_0x15720b(0x55d)],_0x43bd99);if(!_0x507c16)return null;const _0x344d43=this[_0x15720b(0x4d0)]['getDrawingByParam']({'unitId':this[_0x15720b(0x324)],'subUnitId':this[_0x15720b(0x55d)],'drawingId':_0x43bd99});if(!(_0x344d43===null||_0x344d43===void 0x0?void 0x0:_0x344d43['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x4fd555}=_0x344d43[_0x15720b(0x600)];_0x507c16[_0x15720b(0x566)]({'width':width,'height':height});const _0x3b9d41=_0x507c16[_0x15720b(0x13b)]()['find'](_0x76a14f=>_0x76a14f['index']===_0x3caceb);if(!_0x3b9d41)return null;let _0x2aa21e=flipX?width-_0x3b9d41['x']:_0x3b9d41['x'],_0x42c648=flipY?height-_0x3b9d41['y']:_0x3b9d41['y'];if(_0x4fd555!==0x0&&_0x4fd555!==void 0x0&&_0x4fd555!==null){const _0x1553d8=_0x4fd555*Math['PI']/0xb4,_0x52575b=Math[_0x15720b(0x1cb)](_0x1553d8),_0x4255a4=Math[_0x15720b(0x479)](_0x1553d8),_0x5bb914=width/0x2,_0x2a0d0e=height/0x2,_0x3c45de=_0x2aa21e-_0x5bb914,_0x15f142=_0x42c648-_0x2a0d0e;_0x2aa21e=_0x5bb914+_0x3c45de*_0x52575b-_0x15f142*_0x4255a4,_0x42c648=_0x2a0d0e+_0x3c45de*_0x4255a4+_0x15f142*_0x52575b;}_0x2aa21e+=left,_0x42c648+=top;let _0x4dc3e7=_0x3b9d41['ang']/0xea60;if(flipX)_0x4dc3e7=0xb4-_0x4dc3e7;if(flipY)_0x4dc3e7=-_0x4dc3e7;_0x4dc3e7+=_0x4fd555||0x0,_0x4dc3e7=(_0x4dc3e7%0x168+0x168)%0x168;const _0x4cf735=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x4fd555||0x0);return{'point':{'x':_0x2aa21e,'y':_0x42c648},'angle':_0x4dc3e7,'bounds':_0x4cf735};}[_0x3e9a34(0x514)](_0x4a44ce,_0x4b4595){const _0x26be2=_0x3e9a34,_0x56d735=_0x4b4595['x']-_0x4a44ce['x'],_0x2891e3=_0x4b4595['y']-_0x4a44ce['y'];if(Math[_0x26be2(0x228)](_0x56d735)>=Math[_0x26be2(0x228)](_0x2891e3))return _0x56d735>=0x0?0xb4:0x0;else return _0x2891e3>=0x0?0x10e:0x5a;}['_reset'](){const _0x30c39d=_0x3e9a34;this[_0x30c39d(0x2e4)]=void 0x0,this['_unitId']=void 0x0,this[_0x30c39d(0x55d)]=void 0x0,this[_0x30c39d(0x4fe)]();}[_0x3e9a34(0x199)](){const _0x22b732=_0x3e9a34;this[_0x22b732(0x4fe)](),super[_0x22b732(0x199)]();}};SheetShapeConnectorController=__decorate([__decorateParam(0x1,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x2,_univerjs_engine_render[_0x3e9a34(0x35e)]),__decorateParam(0x3,_univerjs_drawing[_0x3e9a34(0x5d5)]),__decorateParam(0x4,_univerjs_core['IUniverInstanceService']),__decorateParam(0x5,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_pro_sheets_shape[_0x3e9a34(0x3a1)])),__decorateParam(0x6,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetShapeAdjustController)),__decorateParam(0x7,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(SheetBasicShapeConnectionPointController))],SheetShapeConnectorController);let SheetsShapeUIPermissionController=class SheetsShapeUIPermissionController extends _univerjs_core[_0x3e9a34(0x128)]{constructor(_0x1e6125,_0xe3f89b,_0xb0f7a6){const _0x12c05b=_0x3e9a34;super(),this[_0x12c05b(0x363)]=_0x1e6125,this['_localeService']=_0xe3f89b,this[_0x12c05b(0x492)]=_0xb0f7a6,this['_initPermission']();}[_0x3e9a34(0x1eb)](){const _0x2e9462=_0x3e9a34;this[_0x2e9462(0x58e)](this[_0x2e9462(0x363)][_0x2e9462(0x2fb)](_0x134a5b=>{const _0x2f88fe=_0x2e9462;let _0x2355c0,_0x4e6509;if(_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x530)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape[_0x2f88fe(0x5df)]['id']||_0x134a5b['id']===_univerjs_pro_sheets_shape['UpdateConnectorRelationCommand']['id']){const _0x591928=_0x134a5b[_0x2f88fe(0xee)];_0x2355c0=_0x591928[_0x2f88fe(0x4a8)],_0x4e6509=_0x591928[_0x2f88fe(0x5d6)];}if(!_0x2355c0||!_0x4e6509)return;if(!this[_0x2f88fe(0x492)]['permissionCheckWithoutRange']({'workbookTypes':[_univerjs_sheets[_0x2f88fe(0x36b)]],'worksheetTypes':[_univerjs_sheets[_0x2f88fe(0x343)]]},_0x2355c0,_0x4e6509))this[_0x2f88fe(0x492)][_0x2f88fe(0x25f)](this[_0x2f88fe(0x5d4)]['t']('permission.dialog.editErr'));}));}};SheetsShapeUIPermissionController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core[_0x3e9a34(0x3f7)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x3e9a34(0x4b6)])(_univerjs_core['LocaleService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x3e9a34(0x219)]))],SheetsShapeUIPermissionController);const ShapeEditor=function(_0x1540d7){const _0x29b9f4=_0x3e9a34,{containerWidth:_0x179549,containerHeight:_0x32b8aa,scaleX:_0x5df9e4,scaleY:_0x2491e2}=_0x1540d7,_0x424387=_0x5df9e4||0x1,_0x3ddb22=_0x2491e2||0x1,_0x4d9505=(0x0,_univerjs_ui['useDependency'])(ShapeTextEditingService),_0x421573=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_docs_ui[_0x29b9f4(0x2c0)]),_0x184f0e=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_engine_render[_0x29b9f4(0x35e)]),_0x2c3843=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_core[_0x29b9f4(0x53f)]),_0x6f3995=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_drawing['IDrawingManagerService']),_0x5e0740=(0x0,_univerjs_ui[_0x29b9f4(0x663)])(_univerjs_pro_sheets_shape['SheetsShapeService']),_0x1ab289=(0x0,_univerjs_ui['useDependency'])(_univerjs_core['ICommandService']),_0x2d1f71=(0x0,_univerjs_ui['useObservable'])(_0x4d9505[_0x29b9f4(0x186)]),_0x5473db=(0x0,_univerjs_ui[_0x29b9f4(0x601)])(_0x4d9505['onSavingEditorData$']),_0x2e2191=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x21fa4e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14b71f=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x14ee19=(0x0,react['useRef'])(null),_0x5b525e=(0x0,react[_0x29b9f4(0x2ec)])(null),_0x303981=(0x0,react[_0x29b9f4(0x2ec)])(null),[_0xa8bdb9,_0x46b44b]=(0x0,react[_0x29b9f4(0x5a1)])({'editorHeight':_0x32b8aa,'marginTop':0x0,'useAbsolutePosition':![]}),_0x4c7388=(0x0,react[_0x29b9f4(0x51f)])(_0x297628=>{queueMicrotask(()=>{_0x46b44b(_0x297628);});},[]),_0x209a27=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xc32ecb=_0x29b9f4;return _0x2c3843[_0xc32ecb(0x46e)](DOCS_SHAPE_EDITOR_UNIT_ID_KEY,_univerjs_core['UniverInstanceType'][_0xc32ecb(0x229)]);},[_0x2c3843]),_0x224b83=(0x0,react['useCallback'])(()=>{const _0x421f7a=_0x29b9f4;var _0x4cfada;const _0x2df97a=_0x424387,_0x17a401=_0x3ddb22;if(!_0x2d1f71)return{'scaleAdjust':0x1,'renderScaleX':_0x2df97a,'renderScaleY':_0x17a401};const _0x4459dc=_0x184f0e[_0x421f7a(0x17d)](_0x2d1f71[_0x421f7a(0x4a8)]),_0xbf9ed5=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['scene'][_0x421f7a(0x618)](),_0x131728=_0x4459dc===null||_0x4459dc===void 0x0?void 0x0:_0x4459dc['engine'][_0x421f7a(0x60c)](),_0xa4e4ad=_0x131728?Number[_0x421f7a(0x265)](_0x131728[_0x421f7a(0x18f)][_0x421f7a(0x183)]||''):0x0,_0xdeb6ba=(_0x4cfada=_0x131728===null||_0x131728===void 0x0?void 0x0:_0x131728['getBoundingClientRect']()[_0x421f7a(0x183)])!==null&&_0x4cfada!==void 0x0?_0x4cfada:0x0,_0x173844=_0xa4e4ad>0x0&&_0xdeb6ba>0x0?_0xdeb6ba/_0xa4e4ad:0x1;return{'scaleAdjust':Number[_0x421f7a(0x19c)](_0x173844)&&_0x173844>0x0?_0x173844:0x1,'renderScaleX':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleX'])||_0x2df97a,'renderScaleY':(_0xbf9ed5===null||_0xbf9ed5===void 0x0?void 0x0:_0xbf9ed5['scaleY'])||_0x17a401};},[_0x424387,_0x3ddb22,_0x2d1f71,_0x184f0e]),_0x3dec66=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0xa413c6=_0x29b9f4;if(!_0x2d1f71)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const {unitId:_0x3d1574,subUnitId:_0xd2109d,shapeId:_0x30d0ec}=_0x2d1f71,_0x50224e=_0x5e0740[_0xa413c6(0x533)](_0x3d1574,_0xd2109d,_0x30d0ec);if(!_0x50224e)return{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};const _0x3e1866={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};return _0x50224e[_0xa413c6(0x446)](_0x3e1866);},[_0x2d1f71,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x5e0740]),_0xaf13df=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4de8a1=_0x29b9f4;if(!_0x2d1f71)return null;const {unitId:_0x30df04,subUnitId:_0x13ddcf,shapeId:_0x1cf9ba}=_0x2d1f71,_0x34c49c=_0x5e0740[_0x4de8a1(0x533)](_0x30df04,_0x13ddcf,_0x1cf9ba);if(!_0x34c49c)return null;const _0x1a5399=_0x34c49c[_0x4de8a1(0x459)]();if(!_0x1a5399)return null;const _0x3676ec={'unitId':_0x30df04,'subUnitId':_0x13ddcf,'drawingId':_0x1cf9ba},_0x573d38=_0x6f3995[_0x4de8a1(0x619)](_0x3676ec);let _0x40336a={'angle':0x0,'flipX':![],'flipY':![]};if(_0x573d38&&_0x573d38[_0x4de8a1(0x600)])_0x40336a=_0x573d38[_0x4de8a1(0x600)];const _0x145e35={'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x497443=_0x34c49c[_0x4de8a1(0x446)](_0x145e35);let _0x439a15,_0x31c180=_univerjs_core[_0x4de8a1(0x48a)]['TOP'],_0x25788d=_univerjs_core[_0x4de8a1(0x5ed)][_0x4de8a1(0x57b)];if(_0x4de8a1(0xe0)in _0x1a5399&&_0x1a5399[_0x4de8a1(0xe0)]){var _0x57eb92,_0x2d09a7;const _0x1fa373=_0x1a5399[_0x4de8a1(0xe0)];if(_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373[_0x4de8a1(0x30b)])_0x439a15=_0x1fa373[_0x4de8a1(0x30b)];_0x31c180=(_0x57eb92=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['va'])!==null&&_0x57eb92!==void 0x0?_0x57eb92:_univerjs_core[_0x4de8a1(0x48a)][_0x4de8a1(0x2ab)],_0x25788d=(_0x2d09a7=_0x1fa373===null||_0x1fa373===void 0x0?void 0x0:_0x1fa373['ha'])!==null&&_0x2d09a7!==void 0x0?_0x2d09a7:_univerjs_core['HorizontalAlign'][_0x4de8a1(0x57b)];}return{'doc':_0x439a15,'verticalAlign':_0x31c180,'horizontalAlign':_0x25788d,'textRect':_0x497443,'transform':_0x40336a,'isHorizontal':_0x1a5399['isHorizontal']};},[_0x2d1f71,_0x5e0740,_0x6f3995,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x5f58a4=(0x0,react['useMemo'])(()=>{const _0x34c941=_0x29b9f4,_0x4f93da=_0xaf13df();if(_0x4f93da===null||_0x4f93da===void 0x0?void 0x0:_0x4f93da[_0x34c941(0x30b)])return prepareShapeTextDocumentData(_0x4f93da[_0x34c941(0x30b)],{'isHorizontal':!![],'textRect':_0x4f93da[_0x34c941(0x513)],'verticalAlign':_0x4f93da['verticalAlign'],'horizontalAlign':_0x4f93da[_0x34c941(0x656)]});return{'id':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x179549/_0x424387,'height':Infinity}}};},[_0xaf13df,_0x179549,_0x424387]),_0x4eece7=(0x0,_univerjs_docs_ui[_0x29b9f4(0x169)])({'editorId':DOCS_SHAPE_EDITOR_UNIT_ID_KEY,'initialValue':_0x5f58a4,'container':_0x21fa4e,'autoFocus':![],'isSingle':![]}),_0x48451e=(0x0,_univerjs_docs_ui['useIsFocusing'])(DOCS_SHAPE_EDITOR_UNIT_ID_KEY);(0x0,_univerjs_docs_ui[_0x29b9f4(0x2a9)])(_0x48451e,{'keyCodes':[{'keyCode':_univerjs_ui[_0x29b9f4(0x54b)][_0x29b9f4(0x280)]}],'handler':()=>{const _0x342ace=_0x29b9f4;_0x1ab289[_0x342ace(0x591)](_univerjs_docs_ui[_0x342ace(0x1e0)]['id']);}},_0x4eece7),(0x0,_univerjs_docs_ui[_0x29b9f4(0x292)])(_0x48451e,![],_0x4eece7);const _0x508fd2=(0x0,react[_0x29b9f4(0x51f)])((_0x1e08c7=!![])=>{const _0x751dea=_0x29b9f4;var _0x2aadbe,_0x49c5e2,_0x4c279c;if(!_0x4eece7)return;const _0x179467=_0x4eece7['getSelectionRanges']()['find'](_0x4f850b=>_0x4f850b[_0x751dea(0x18d)]),_0x321c4a=((_0x2aadbe=(_0x49c5e2=_0x4eece7[_0x751dea(0x430)]()[_0x751dea(0x32d)])===null||_0x49c5e2===void 0x0?void 0x0:_0x49c5e2[_0x751dea(0x521)][_0x751dea(0x440)])!==null&&_0x2aadbe!==void 0x0?_0x2aadbe:0x2)-0x2,_0x40b659=(_0x4c279c=_0x179467===null||_0x179467===void 0x0?void 0x0:_0x179467[_0x751dea(0x1d2)])!==null&&_0x4c279c!==void 0x0?_0x4c279c:_0x1e08c7?_0x321c4a:null;if(_0x40b659===null)return;_0x4eece7[_0x751dea(0x40a)]([{'startOffset':_0x40b659,'endOffset':_0x40b659}],![]);},[_0x4eece7]),_0x59b30e=(0x0,react['useCallback'])(()=>{const _0x49ff82=_0x29b9f4;_0x5b525e[_0x49ff82(0x419)]!==null&&(cancelAnimationFrame(_0x5b525e[_0x49ff82(0x419)]),_0x5b525e['current']=null),_0x303981[_0x49ff82(0x419)]!==null&&(window[_0x49ff82(0x32f)](_0x303981[_0x49ff82(0x419)]),_0x303981[_0x49ff82(0x419)]=null);},[]),_0x2864a0=(0x0,react[_0x29b9f4(0x51f)])(()=>{const _0x4c531c=_0x29b9f4;var _0x1de41a,_0x319963,_0x513251;if(!_0x4eece7)return;const _0x270fd5=_0x184f0e['getRenderById'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x6c31a0=_0x270fd5===null||_0x270fd5===void 0x0?void 0x0:_0x270fd5[_0x4c531c(0x1cf)](_univerjs_docs[_0x4c531c(0x4b1)]);if(!_0x6c31a0)return;const _0x537b2a=_0x6c31a0['getSkeleton'](),_0x559f3e=_0x209a27(),{renderScaleX:_0xf82b4,renderScaleY:_0x38a8ab,scaleAdjust:_0x37f06d}=_0x224b83(),_0xce3e04=_0xaf13df(),_0x4c484d=(_0x1de41a=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x5d0)])!==null&&_0x1de41a!==void 0x0?_0x1de41a:_univerjs_core[_0x4c531c(0x48a)]['TOP'],_0xb1d3e7=(_0x319963=_0xce3e04===null||_0xce3e04===void 0x0?void 0x0:_0xce3e04[_0x4c531c(0x656)])!==null&&_0x319963!==void 0x0?_0x319963:_univerjs_core[_0x4c531c(0x5ed)][_0x4c531c(0x57b)],_0x4c4f4d=(_0x513251=_0x3dec66())!==null&&_0x513251!==void 0x0?_0x513251:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22};_0x559f3e&&(_0x559f3e[_0x4c531c(0x391)](Math[_0x4c531c(0x216)](_0xf82b4,_0x38a8ab)),_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':Infinity}}),_0x559f3e[_0x4c531c(0x19b)]({'verticalAlign':_0x4c484d,'horizontalAlign':_0xb1d3e7,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':_univerjs_core[_0x4c531c(0x5e5)][_0x4c531c(0x2fa)]}));_0x537b2a[_0x4c531c(0x108)]();const {actualHeight:_0x2c3770}=_0x537b2a[_0x4c531c(0x659)](),_0x259302=_0x4c4f4d['height'];let _0x571132=_0x259302,_0x2e3f7f=0x0;if(_0x2c3770<=_0x259302){if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x2e3f7f=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)]['BOTTOM'])_0x2e3f7f=_0x259302-_0x2c3770;}_0x571132=_0x259302,_0x4c7388({'editorHeight':_0x4c4f4d[_0x4c531c(0x37b)]*_0x3ddb22,'marginTop':0x0,'useAbsolutePosition':![]});}else{let _0x59a0c7=0x0;if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x3a0)])_0x59a0c7=(_0x259302-_0x2c3770)/0x2;else{if(_0x4c484d===_univerjs_core[_0x4c531c(0x48a)][_0x4c531c(0x573)])_0x59a0c7=_0x259302-_0x2c3770;}_0x2e3f7f=0x0,_0x4c7388({'editorHeight':_0x2c3770*_0x3ddb22,'marginTop':_0x59a0c7*_0x3ddb22,'useAbsolutePosition':!![]}),_0x571132=_0x2c3770;}_0x559f3e&&(_0x559f3e[_0x4c531c(0x589)]({'pageSize':{'width':_0x4c4f4d[_0x4c531c(0x183)],'height':_0x571132}}),_0x559f3e[_0x4c531c(0x39c)]({'t':_0x2e3f7f}),_0x537b2a[_0x4c531c(0x108)]());if(_0x270fd5){const _0x5b1620=_0x4c4f4d[_0x4c531c(0x183)]*_0x424387,_0x5b0a7f=_0x571132*_0x3ddb22;_0x270fd5[_0x4c531c(0x2a4)][_0x4c531c(0x227)]({'width':_0x5b1620*_0x37f06d/_0xf82b4,'height':_0x5b0a7f*_0x37f06d/_0x38a8ab,'scaleX':_0xf82b4*_0x37f06d,'scaleY':_0x38a8ab*_0x37f06d});if(_0x270fd5[_0x4c531c(0x59e)])_0x270fd5[_0x4c531c(0x59e)][_0x4c531c(0x302)](_0x5b1620*_0x37f06d/_0xf82b4,_0x5b0a7f*_0x37f06d/_0x38a8ab);}},[_0x4eece7,_0x184f0e,_0x209a27,_0x224b83,_0xaf13df,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22,_0x4c7388]),_0x2a7f3f=(0x0,react[_0x29b9f4(0x51f)])((_0x1f421c=![])=>{const _0x58d771=_0x29b9f4;_0x59b30e(),_0x5b525e[_0x58d771(0x419)]=requestAnimationFrame(()=>{const _0x38f4df=_0x58d771;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x5b525e['current']=null,_0x303981['current']=window[_0x38f4df(0x112)](()=>{const _0x4d3f53=_0x38f4df;_0x2864a0();if(_0x1f421c)_0x508fd2(![]);_0x303981[_0x4d3f53(0x419)]=null;},0x14);});},[_0x2864a0,_0x59b30e,_0x508fd2]);(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x4e43b0=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;const {shapeId:_0xbcc500,unitId:_0x8c63c,subUnitId:_0x46e39a}=_0x2d1f71;if(_0x5473db){var _0x42eec5,_0x4ec9e7,_0x3d8ca5,_0x5717a6;const _0x33eb86=stripShapeTextDocumentLayout(_0x4eece7[_0x4e43b0(0x430)]()),_0x2dd2aa=_0xaf13df(),_0x253671={'va':(_0x42eec5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa['verticalAlign'])!==null&&_0x42eec5!==void 0x0?_0x42eec5:_univerjs_core[_0x4e43b0(0x48a)][_0x4e43b0(0x2ab)],'ha':(_0x4ec9e7=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x656)])!==null&&_0x4ec9e7!==void 0x0?_0x4ec9e7:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x33eb86};_0x1ab289['executeCommand'](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x3d8ca5=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x3d8ca5!==void 0x0?_0x3d8ca5:!![],'dataModel':_0x253671}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x5717a6=_0x2dd2aa===null||_0x2dd2aa===void 0x0?void 0x0:_0x2dd2aa[_0x4e43b0(0x1ac)])!==null&&_0x5717a6!==void 0x0?_0x5717a6:!![],'dataModel':_0x14b71f[_0x4e43b0(0x419)]}}}});return;}const _0x93290a=_0xaf13df();if(_0x93290a===null||_0x93290a===void 0x0?void 0x0:_0x93290a[_0x4e43b0(0x30b)]){_0x14b71f[_0x4e43b0(0x419)]={'va':_0x93290a[_0x4e43b0(0x5d0)],'ha':_0x93290a['horizontalAlign'],'doc':_univerjs_core[_0x4e43b0(0x584)]['deepClone'](_0x93290a['doc'])};const _0x55433c=prepareShapeTextDocumentData(_0x93290a[_0x4e43b0(0x30b)],{'isHorizontal':!![],'textRect':_0x93290a[_0x4e43b0(0x513)],'verticalAlign':_0x93290a['verticalAlign'],'horizontalAlign':_0x93290a[_0x4e43b0(0x656)]});return _0x4eece7[_0x4e43b0(0x21d)](_0x55433c,null),()=>{const _0x4061cc=_0x4e43b0;var _0x59af92,_0x25aacd,_0x83b49a,_0x49db01;const _0x1aa684=stripShapeTextDocumentLayout(_0x4eece7[_0x4061cc(0x430)]()),_0x45d3ec=_0xaf13df(),_0x5db7b8={'va':(_0x59af92=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x5d0)])!==null&&_0x59af92!==void 0x0?_0x59af92:_univerjs_core[_0x4061cc(0x48a)][_0x4061cc(0x2ab)],'ha':(_0x25aacd=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec['horizontalAlign'])!==null&&_0x25aacd!==void 0x0?_0x25aacd:_univerjs_core['HorizontalAlign']['LEFT'],'doc':_0x1aa684};_0x1ab289[_0x4061cc(0x591)](UpdateShapeDataCommand['id'],{'unitId':_0x8c63c,'subUnitId':_0x46e39a,'shapeId':_0xbcc500,'shapeData':{'shapeText':{'isHorizontal':(_0x83b49a=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x83b49a!==void 0x0?_0x83b49a:!![],'dataModel':_0x5db7b8}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x49db01=_0x45d3ec===null||_0x45d3ec===void 0x0?void 0x0:_0x45d3ec[_0x4061cc(0x1ac)])!==null&&_0x49db01!==void 0x0?_0x49db01:!![],'dataModel':_0x14b71f[_0x4061cc(0x419)]}}}});};}else _0x4eece7[_0x4e43b0(0x21d)](_0x5f58a4,null);},[_0x4eece7,_0x2d1f71,_0x5473db]),(0x0,react[_0x29b9f4(0x11f)])(()=>{const _0x135d4d=_0x29b9f4;if(!_0x4eece7||!_0x2d1f71)return;return _0x421573[_0x135d4d(0x5b4)](!![]),_0x2864a0(),_0x14ee19[_0x135d4d(0x419)]=requestAnimationFrame(()=>{const _0x236a80=_0x135d4d;_0x421573['focus'](DOCS_SHAPE_EDITOR_UNIT_ID_KEY),_0x508fd2(),_0x2a7f3f(),_0x14ee19[_0x236a80(0x419)]=null;}),()=>{const _0x3f419b=_0x135d4d;_0x14ee19['current']!==null&&(cancelAnimationFrame(_0x14ee19[_0x3f419b(0x419)]),_0x14ee19[_0x3f419b(0x419)]=null),_0x59b30e(),_0x421573['blur'](!![]);};},[_0x4eece7,_0x2d1f71,_0x421573,_0x2864a0,_0x508fd2,_0x2a7f3f,_0x59b30e]),(0x0,react['useEffect'])(()=>{const _0x16752b=_0x29b9f4;if(!_0x4eece7)return;const _0x3dfe33=_0x1ab289[_0x16752b(0x3b5)](_0x3ce108=>{const _0x1a5e93=_0x16752b;if(_0x3ce108['id']===_univerjs_docs[_0x1a5e93(0x27c)]['id']){if(_0x3ce108[_0x1a5e93(0xee)][_0x1a5e93(0x4a8)]===DOCS_SHAPE_EDITOR_UNIT_ID_KEY){if(_0x2d1f71){if(!_0x2d1f71['visible'])_0x4d9505[_0x1a5e93(0x1d8)]({..._0x2d1f71,'visible':!![]});else _0x2864a0();}}}if(_0x3ce108['id']===SetShapeTextVerticalAlignCommand['id'])_0x2a7f3f(!![]);});return()=>{const _0x3075dd=_0x16752b;_0x3dfe33[_0x3075dd(0x199)]();};},[_0x4eece7,_0x2864a0,_0x2d1f71,_0x2a7f3f,_0x4d9505]),(0x0,react[_0x29b9f4(0x11f)])(()=>{return _0x2864a0(),_0x2a7f3f(),()=>{_0x59b30e();};},[_0x2864a0,_0x2a7f3f,_0x59b30e]);const _0x8728e9=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x15bbfb=_0x29b9f4;var _0x2b78db;const _0x1e49dc=(_0x2b78db=_0x3dec66())!==null&&_0x2b78db!==void 0x0?_0x2b78db:{'left':0x0,'top':0x0,'width':_0x179549/_0x424387,'height':_0x32b8aa/_0x3ddb22},_0x1a0f25=_0x1e49dc[_0x15bbfb(0xe1)]*_0x424387,_0x1f7a6a=_0x1e49dc[_0x15bbfb(0x156)]*_0x3ddb22,_0x46ca4b=_0x1e49dc['width']*_0x424387;if(_0xa8bdb9[_0x15bbfb(0x165)])return{'top':_0x1f7a6a+_0xa8bdb9[_0x15bbfb(0x2ee)],'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};return{'top':_0x1f7a6a,'left':_0x1a0f25,'width':_0x46ca4b,'height':_0xa8bdb9[_0x15bbfb(0x3f5)]};},[_0xa8bdb9,_0x3dec66,_0x179549,_0x32b8aa,_0x424387,_0x3ddb22]),_0x262dd=(0x0,react[_0x29b9f4(0x336)])(()=>{const _0x14cead=_0x29b9f4,_0xed69e7=_0xaf13df(),_0x5cced3=_0xed69e7===null||_0xed69e7===void 0x0?void 0x0:_0xed69e7[_0x14cead(0x600)];if(_0x5cced3)return _0x5cced3||{'angle':0x0,'flipX':![],'flipY':![]};return{'angle':0x0,'flipX':![],'flipY':![]};},[_0xaf13df]);return(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x2e2191,'data-u-comp':_0x29b9f4(0x109),'className':_0x29b9f4(0x669),'style':{'transform':_0x29b9f4(0x27a)+_0x262dd[_0x29b9f4(0x62d)]+'deg)\x20scaleY('+(_0x262dd[_0x29b9f4(0x35d)]?-0x1:0x1)+')'},'children':(0x0,react_jsx_runtime[_0x29b9f4(0x64f)])(_0x29b9f4(0x418),{'ref':_0x21fa4e,'className':'univer-absolute','data-u-comp':_0x29b9f4(0x3d5),'style':_0x8728e9,'data-editorid':DOCS_SHAPE_EDITOR_UNIT_ID_KEY})});};ShapeEditor['displayName']='ShapeEditor';const DEFAULT_HIDDEN_POSITION={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function calcBestDOMPositionForFreezeZones(_0x3273d8,_0x170df8,_0x5d42ca,_0x1b9840){const _0x2ee0a9=_0x3e9a34,{scaleX:_0x5384f0,scaleY:_0x212e46}=_0x5d42ca[_0x2ee0a9(0x618)](),{startColumn:_0x1d91bc,startRow:_0x455196,xSplit:_0x187a95,ySplit:_0x3e9340}=_0x1b9840[_0x2ee0a9(0x5e4)][_0x2ee0a9(0x58d)](),_0x4380f8=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x208)]),_0x6250bf=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x519)]),_0x316ae1=_0x5d42ca['getViewport'](_univerjs_engine_render['SHEET_VIEWPORT_KEY'][_0x2ee0a9(0x31f)]),_0x4b04e9=_0x5d42ca['getViewport'](_univerjs_engine_render[_0x2ee0a9(0x5c9)][_0x2ee0a9(0x41f)]),{rowHeaderWidth:_0x14f9ae,columnHeaderHeight:_0x4aab64}=_0x1b9840,_0x26fc9d=_0x1b9840[_0x2ee0a9(0x211)](_0x455196)+_0x4aab64,_0x34ccc4=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc)+_0x14f9ae,_0x21dd00=_0x1b9840[_0x2ee0a9(0x211)](_0x455196-_0x3e9340)+_0x4aab64,_0x25aa58=_0x1b9840[_0x2ee0a9(0x4b9)](_0x1d91bc-_0x187a95)+_0x14f9ae,_0x4e9ce5=[],_0x3fff5f=(_0x2ee67c,_0xa7f61b,_0x16fe0f)=>{if(!_0x2ee67c)return null;const {viewportScrollX:_0x41d614,viewportScrollY:_0x40eb88}=_0x2ee67c;let _0x57492c,_0x2b400d;if(_0xa7f61b)_0x57492c=(_0x3273d8-(_0x25aa58-_0x14f9ae))*_0x5384f0;else _0x57492c=(_0x3273d8-_0x41d614)*_0x5384f0;if(_0x16fe0f)_0x2b400d=(_0x170df8-(_0x21dd00-_0x4aab64))*_0x212e46;else _0x2b400d=(_0x170df8-_0x40eb88)*_0x212e46;return{'domX':_0x57492c,'domY':_0x2b400d};},_0x56c086=_0x3273d8<_0x34ccc4&&_0x187a95>0x0,_0x57ba92=_0x170df8<_0x26fc9d&&_0x3e9340>0x0,_0x20a947=_0x3273d8>=_0x34ccc4||_0x187a95===0x0,_0x854a27=_0x170df8>=_0x26fc9d||_0x3e9340===0x0;if(_0x56c086&&_0x57ba92&&_0x6250bf){const _0x91a7d4=_0x3fff5f(_0x6250bf,!![],!![]);if(_0x91a7d4)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x91a7d4);}if(_0x57ba92&&_0x20a947&&_0x316ae1){const _0x19aab5=_0x3fff5f(_0x316ae1,![],!![]);if(_0x19aab5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x19aab5);}if(_0x56c086&&_0x854a27&&_0x4b04e9){const _0x1801c5=_0x3fff5f(_0x4b04e9,!![],![]);if(_0x1801c5)_0x4e9ce5[_0x2ee0a9(0x2dd)](_0x1801c5);}if(_0x20a947&&_0x854a27&&_0x4380f8){const _0x5f22bf=_0x3fff5f(_0x4380f8,![],![]);if(_0x5f22bf)_0x4e9ce5['push'](_0x5f22bf);}if(_0x4e9ce5[_0x2ee0a9(0x440)]===0x0){var _0x5d0266,_0x306fa2;return{'domX':(_0x3273d8-((_0x5d0266=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x4aa)])!==null&&_0x5d0266!==void 0x0?_0x5d0266:0x0))*_0x5384f0,'domY':(_0x170df8-((_0x306fa2=_0x4380f8===null||_0x4380f8===void 0x0?void 0x0:_0x4380f8[_0x2ee0a9(0x520)])!==null&&_0x306fa2!==void 0x0?_0x306fa2:0x0))*_0x212e46};}let _0x337302=_0x4e9ce5[0x0]['domX'],_0x466663=_0x4e9ce5[0x0]['domY'];for(const _0x3d0569 of _0x4e9ce5){if(_0x3d0569[_0x2ee0a9(0x407)]>_0x337302)_0x337302=_0x3d0569[_0x2ee0a9(0x407)];if(_0x3d0569['domY']>_0x466663)_0x466663=_0x3d0569[_0x2ee0a9(0x420)];}return{'domX':_0x337302,'domY':_0x466663};}function calcShapePosition(_0x103c9f,_0x59ab25,_0x829c11,_0x178e9d,_0x2a340a,_0x4159ff,_0x34ed85){const _0x47e880=_0x3e9a34,{scaleX:_0xba300a,scaleY:_0x1503ae}=_0x4159ff[_0x47e880(0x618)](),{domX:_0x1768ce,domY:_0x259d4f}=calcBestDOMPositionForFreezeZones(_0x103c9f,_0x59ab25,_0x4159ff,_0x34ed85);return{'left':_0x1768ce,'top':_0x259d4f,'width':_0x829c11*_0xba300a,'height':_0x178e9d*_0x1503ae,'angle':_0x2a340a,'scaleX':_0xba300a,'scaleY':_0x1503ae};}function useShapePosition(_0xa923ee){const _0x51dc72=_0x3e9a34,{editingParams:_0x4d6818,scene:_0x50f481,skeleton:_0x4fc86c,getShapeTransform:_0x487776}=_0xa923ee,[_0x7e2587,_0x5bd04f]=(0x0,react['useState'])(DEFAULT_HIDDEN_POSITION),_0x5a255a=(0x0,react[_0x51dc72(0x2ec)])(_0x7e2587);_0x5a255a[_0x51dc72(0x419)]=_0x7e2587;const _0x4c164f=(0x0,react[_0x51dc72(0x51f)])(()=>{const _0x46bb2f=_0x51dc72;if(!_0x4d6818||!_0x50f481||!_0x4fc86c){if(_0x5a255a[_0x46bb2f(0x419)]!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const _0x5a5c7e=_0x487776();if(!_0x5a5c7e){if(_0x5a255a['current']!==DEFAULT_HIDDEN_POSITION)_0x5bd04f(DEFAULT_HIDDEN_POSITION);return;}const {left:_0x4f4c5d,top:_0x523362,width:_0x57bf0e,height:_0x2fb942,angle:_0xf82a96}=_0x5a5c7e;if(!_0x4d6818[_0x46bb2f(0x576)]){const {scaleX:_0x335531,scaleY:_0x24fbf5}=_0x50f481[_0x46bb2f(0x618)]();_0x5bd04f({'left':-0x270f,'top':-0x270f,'width':_0x57bf0e*_0x335531,'height':_0x2fb942*_0x24fbf5,'angle':0x0,'scaleX':_0x335531,'scaleY':_0x24fbf5});return;}_0x5bd04f(calcShapePosition(_0x4f4c5d,_0x523362,_0x57bf0e,_0x2fb942,_0xf82a96,_0x50f481,_0x4fc86c));},[_0x4d6818,_0x50f481,_0x4fc86c,_0x487776]);return(0x0,react['useEffect'])(()=>{_0x4c164f();},[_0x4d6818,_0x4c164f]),{'position':_0x7e2587,'updatePosition':_0x4c164f};}const ShapePositionWrapper=(0x0,react[_0x3e9a34(0x489)])(_0xb62a7c=>{const _0x432c4c=_0x3e9a34,{children:_0x2f996f,onPositionUpdate:_0x2e7f7d}=_0xb62a7c,_0x2a367b=(0x0,react['useRef'])(null),_0x180f72=(0x0,_univerjs_ui[_0x432c4c(0x663)])(ShapeTextEditingService),_0x4d291f=(0x0,_univerjs_ui[_0x432c4c(0x663)])(_univerjs_engine_render[_0x432c4c(0x35e)]),_0x272f32=(0x0,_univerjs_ui[_0x432c4c(0x601)])(_0x180f72[_0x432c4c(0x186)]),_0x5c9099=(0x0,react[_0x432c4c(0x336)])(()=>{const _0x228910=_0x432c4c;if(!_0x272f32)return null;return _0x4d291f['getRenderById'](_0x272f32[_0x228910(0x4a8)]);},[_0x272f32,_0x4d291f]),_0x203233=(0x0,react['useMemo'])(()=>{const _0x1504fc=_0x432c4c;var _0x34311a;return(_0x34311a=_0x5c9099===null||_0x5c9099===void 0x0?void 0x0:_0x5c9099[_0x1504fc(0x2a4)])!==null&&_0x34311a!==void 0x0?_0x34311a:null;},[_0x5c9099]),{position:_0x20e010,updatePosition:_0x3ef9ec}=useShapePosition({'editingParams':_0x272f32,'scene':_0x203233,'skeleton':(0x0,react[_0x432c4c(0x336)])(()=>{const _0x39ba58=_0x432c4c;var _0x346ab3,_0x3d0519;if(!_0x272f32||!_0x5c9099)return null;return(_0x346ab3=(_0x3d0519=_0x5c9099[_0x39ba58(0x1cf)](_univerjs_sheets_ui[_0x39ba58(0x412)])[_0x39ba58(0x2d6)](_0x272f32['subUnitId']))===null||_0x3d0519===void 0x0?void 0x0:_0x3d0519['skeleton'])!==null&&_0x346ab3!==void 0x0?_0x346ab3:null;},[_0x272f32,_0x5c9099]),'getShapeTransform':(0x0,react['useCallback'])(()=>{const _0x184b0d=_0x432c4c;if(!_0x272f32||!_0x203233)return null;const _0x4cc45c=_0x272f32[_0x184b0d(0x50b)],_0x1eb7a4=_0x203233[_0x184b0d(0x3c3)](_0x4cc45c);if(_0x1eb7a4 instanceof DrawingShape)return{'left':_0x1eb7a4[_0x184b0d(0xe1)],'top':_0x1eb7a4['top'],'width':_0x1eb7a4[_0x184b0d(0x183)],'height':_0x1eb7a4[_0x184b0d(0x37b)],'angle':_0x1eb7a4['angle']};return null;},[_0x272f32,_0x203233])}),_0x27ba80=(0x0,react[_0x432c4c(0x51f)])(()=>{const _0x282e44=_0x432c4c,_0x2d6de5=_0x2a367b[_0x282e44(0x419)];if(!_0x2d6de5)return;_0x2d6de5[_0x282e44(0x18f)]['left']=_0x20e010[_0x282e44(0xe1)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x156)]=_0x20e010[_0x282e44(0x156)]+'px',_0x2d6de5[_0x282e44(0x18f)][_0x282e44(0x183)]=_0x20e010[_0x282e44(0x183)]+'px',_0x2d6de5[_0x282e44(0x18f)]['height']=_0x20e010[_0x282e44(0x37b)]+'px';},[_0x20e010]);return(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x5ca7c6=_0x432c4c;_0x27ba80(),_0x2e7f7d===null||_0x2e7f7d===void 0x0||_0x2e7f7d({'width':_0x20e010['width'],'height':_0x20e010[_0x5ca7c6(0x37b)],'scaleX':_0x20e010['scaleX'],'scaleY':_0x20e010[_0x5ca7c6(0x1b6)]});},[_0x20e010,_0x27ba80,_0x2e7f7d]),(0x0,react['useEffect'])(()=>{const _0x5e2481=_0x432c4c;if(!_0x203233)return;const _0x2e24e3=_0x203233[_0x5e2481(0x42a)](_univerjs_engine_render[_0x5e2481(0x5c9)][_0x5e2481(0x208)]);if(!_0x2e24e3)return;const _0x48ee18=_0x2e24e3[_0x5e2481(0x511)][_0x5e2481(0x345)](()=>{_0x3ef9ec();});return()=>{_0x48ee18['unsubscribe']();};},[_0x203233,_0x3ef9ec]),(0x0,react[_0x432c4c(0x11f)])(()=>{const _0x4a707d=_0x432c4c;if(!_0x272f32||!_0x203233)return;const _0x1bbb77=_0x272f32['shapeKey'],_0x56160a=_0x203233['getObject'](_0x1bbb77);if(_0x56160a instanceof DrawingShape){const _0x20142e=_0x56160a[_0x4a707d(0x293)][_0x4a707d(0x345)](()=>{_0x3ef9ec();});return()=>{const _0x28e93f=_0x4a707d;_0x20142e[_0x28e93f(0x54e)]();};}},[_0x272f32,_0x203233,_0x3ef9ec]),(0x0,react_jsx_runtime['jsx'])(_0x432c4c(0x418),{'ref':_0x2a367b,'data-u-comp':_0x432c4c(0x194),'className':_0x432c4c(0x416),'style':(0x0,react['useMemo'])(()=>({'left':_0x20e010['left'],'top':_0x20e010[_0x432c4c(0x156)],'width':_0x20e010['width'],'height':_0x20e010[_0x432c4c(0x37b)],'pointerEvents':(_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)])?_0x432c4c(0x4fa):_0x432c4c(0x3e4)}),[_0x20e010,_0x272f32===null||_0x272f32===void 0x0?void 0x0:_0x272f32[_0x432c4c(0x576)]]),'children':_0x2f996f});});ShapePositionWrapper[_0x3e9a34(0x42e)]='ShapePositionWrapper';const ShapeTextEditorContainer=(0x0,react[_0x3e9a34(0x489)])(()=>{const _0x4370b6=_0x3e9a34,_0x12a5e3=(0x0,_univerjs_ui[_0x4370b6(0x601)])((0x0,_univerjs_ui[_0x4370b6(0x663)])(ShapeTextEditingService)[_0x4370b6(0x186)]),[_0x5df64c,_0xe485d]=(0x0,react[_0x4370b6(0x5a1)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x424a15=(0x0,react[_0x4370b6(0x51f)])(_0x4973f8=>{const _0x357066=_0x4370b6;_0xe485d({'width':_0x4973f8[_0x357066(0x183)],'height':_0x4973f8['height'],'scaleX':_0x4973f8[_0x357066(0x646)],'scaleY':_0x4973f8[_0x357066(0x1b6)]});},[]);if(!(_0x12a5e3===null||_0x12a5e3===void 0x0?void 0x0:_0x12a5e3[_0x4370b6(0x576)]))return null;return(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapePositionWrapper,{'onPositionUpdate':_0x424a15,'children':(0x0,react_jsx_runtime[_0x4370b6(0x64f)])(ShapeEditor,{'containerWidth':_0x5df64c[_0x4370b6(0x183)],'containerHeight':_0x5df64c[_0x4370b6(0x37b)],'scaleX':_0x5df64c[_0x4370b6(0x646)],'scaleY':_0x5df64c['scaleY']})});});ShapeTextEditorContainer[_0x3e9a34(0x42e)]='ShapeTextEditorContainer';let UniverSheetsShapeUIPlugin=class UniverSheetsShapeUIPlugin extends _univerjs_core[_0x3e9a34(0xed)]{constructor(_0x50608c=defaultPluginConfig,_0x44780f,_0x49321f,_0x307343,_0x1643fd){const _0x4d396c=_0x3e9a34;super(),this['_config']=_0x50608c,this[_0x4d396c(0x413)]=_0x44780f,this[_0x4d396c(0x363)]=_0x49321f,this['_configService']=_0x307343,this[_0x4d396c(0x5cb)]=_0x1643fd;const {..._0x3b0b6b}=(0x0,_univerjs_core[_0x4d396c(0x5e3)])({},defaultPluginConfig,this['_config']);this['_configService']['setConfig'](SHEETS_SHAPE_UI_PLUGIN_CONFIG_KEY,_0x3b0b6b),this[_0x4d396c(0x666)]();}[_0x3e9a34(0x2c7)](){const _0x1b2210=_0x3e9a34;(0x0,_univerjs_core[_0x1b2210(0x5d1)])(this['_injector'],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController]]);}['onReady'](){const _0x53915a=_0x3e9a34;[[SheetBasicShapeConnectionPointController],[SheetShapeAdjustController],[SheetShapeClipboardController]][_0x53915a(0x289)](_0x3c98e6=>this[_0x53915a(0x413)]['add'](_0x3c98e6)),(0x0,_univerjs_core['touchDependencies'])(this['_injector'],[[SheetShapeClipboardController]]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetBasicShapeConnectionPointController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[SheetShapeAdjustController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core['UniverInstanceType']['UNIVER_SHEET'],[ImageClipAdjustController]),this['_renderManagerService'][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[SheetShapeConnectorController]),this[_0x53915a(0x5cb)][_0x53915a(0x458)](_univerjs_core[_0x53915a(0x4cd)][_0x53915a(0x58b)],[ShapeTextEditingRenderController]);}[_0x3e9a34(0x25d)](){const _0x3d8a43=_0x3e9a34,_0x3dac2a=this['_injector'];_0x3dac2a[_0x3d8a43(0x2d9)](_univerjs_ui['ComponentManager'])[_0x3d8a43(0x405)](ShapeTextEditorContainer$1,ShapeTextEditorContainer),[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]][_0x3d8a43(0x289)](_0x3ff827=>_0x3dac2a[_0x3d8a43(0x30e)](_0x3ff827)),(0x0,_univerjs_core[_0x3d8a43(0x5d1)])(this[_0x3d8a43(0x413)],[[SheetsShapeUIController],[ShapeUpdateController],[SheetDrawingShapeRenderController],[ShapeTextEditingService],[ShapeSheetChangeController],[ImageShapeClipController],[SheetsShapeUIPermissionController]]);}[_0x3e9a34(0x666)](){const _0x2f8c25=_0x3e9a34;[MenuInsertShapeCommand,UpdateShapeDataCommand,SetShapeTextVerticalAlignCommand,SetShapeTextHorizontalAlignCommand,SetShapeTextFontSizeCommand,SetShapeTextFontSizeDecreaseCommand,SetShapeTextFontSizeIncreaseCommand,CloseSheetShapeFormatPanelOperation,OpenSheetShapeFormatPanelOperation,ShapeDocAlignCommand,ActiveDrawingSelectedOperation][_0x2f8c25(0x289)](_0x1cce62=>this[_0x2f8c25(0x58e)](this[_0x2f8c25(0x363)][_0x2f8c25(0x62b)](_0x1cce62)));}};_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x142),_univerjs_core[_0x3e9a34(0x4cd)][_0x3e9a34(0x58b)]),_defineProperty(UniverSheetsShapeUIPlugin,_0x3e9a34(0x226),_0x3e9a34(0x2b2)),_defineProperty(UniverSheetsShapeUIPlugin,'packageName',name),_defineProperty(UniverSheetsShapeUIPlugin,'version',version),UniverSheetsShapeUIPlugin=__decorate([(0x0,_univerjs_core[_0x3e9a34(0x538)])(_univerjs_sheets_drawing_ui[_0x3e9a34(0x1e4)],_univerjs_pro_sheets_shape[_0x3e9a34(0x288)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x3e9a34(0x3f7)]),__decorateParam(0x3,_univerjs_core[_0x3e9a34(0x150)]),__decorateParam(0x4,_univerjs_engine_render[_0x3e9a34(0x35e)])],UniverSheetsShapeUIPlugin),exports['SetShapeTextFontSizeCommand']=SetShapeTextFontSizeCommand,exports[_0x3e9a34(0x406)]=SetShapeTextFontSizeDecreaseCommand,exports[_0x3e9a34(0x60d)]=SetShapeTextFontSizeIncreaseCommand,exports[_0x3e9a34(0x522)]=SetShapeTextHorizontalAlignCommand,exports[_0x3e9a34(0x374)]=SetShapeTextVerticalAlignCommand,exports[_0x3e9a34(0x323)]=ShapeDocAlignCommand,Object[_0x3e9a34(0x63c)](exports,'SheetsShapeUIController',{'enumerable':!![],'get':function(){return SheetsShapeUIController;}}),Object[_0x3e9a34(0x63c)](exports,_0x3e9a34(0x19f),{'enumerable':!![],'get':function(){return UniverSheetsShapeUIPlugin;}}),exports[_0x3e9a34(0x355)]=UpdateShapeDataCommand;
1
+ const _0x8b89eb=_0x4ef2;(function(_0x1f294c,_0x532cb8){const _0x1401e4=_0x4ef2,_0x482723=_0x1f294c();while(!![]){try{const _0x53dc65=parseInt(_0x1401e4(0x3a4))/0x1+-parseInt(_0x1401e4(0x2fb))/0x2*(-parseInt(_0x1401e4(0x5cf))/0x3)+-parseInt(_0x1401e4(0x5d8))/0x4+-parseInt(_0x1401e4(0x2d9))/0x5+parseInt(_0x1401e4(0x2aa))/0x6*(parseInt(_0x1401e4(0x34b))/0x7)+-parseInt(_0x1401e4(0x61e))/0x8*(parseInt(_0x1401e4(0x654))/0x9)+parseInt(_0x1401e4(0x5bf))/0xa;if(_0x53dc65===_0x532cb8)break;else _0x482723['push'](_0x482723['shift']());}catch(_0x289f89){_0x482723['push'](_0x482723['shift']());}}}(_0x3e18,0xe4ce7),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));var e=Object[_0x8b89eb(0x24d)],t=Object['defineProperty'],n=Object[_0x8b89eb(0x5fd)],r=Object[_0x8b89eb(0x27f)],i=Object[_0x8b89eb(0x5eb)],a=Object[_0x8b89eb(0x5c4)][_0x8b89eb(0x5a5)],o=(_0x4a07ec,_0x3a4cd5,_0x3df6b0,_0x408234)=>{const _0x27a3eb=_0x8b89eb;if(_0x3a4cd5&&typeof _0x3a4cd5==_0x27a3eb(0x650)||typeof _0x3a4cd5==_0x27a3eb(0x5a7)){for(var _0x189fd4=r(_0x3a4cd5),_0x54fc81=0x0,_0x4f2e10=_0x189fd4[_0x27a3eb(0x41f)],_0x36011b;_0x54fc81<_0x4f2e10;_0x54fc81++)_0x36011b=_0x189fd4[_0x54fc81],!a[_0x27a3eb(0x5e0)](_0x4a07ec,_0x36011b)&&_0x36011b!==_0x3df6b0&&t(_0x4a07ec,_0x36011b,{'get':(_0x259c8e=>_0x3a4cd5[_0x259c8e])[_0x27a3eb(0x516)](null,_0x36011b),'enumerable':!(_0x408234=n(_0x3a4cd5,_0x36011b))||_0x408234[_0x27a3eb(0x62f)]});}return _0x4a07ec;},s=(_0x4eac16,_0x16da28,_0x41998f)=>(_0x41998f=_0x4eac16==null?{}:e(i(_0x4eac16)),o(_0x16da28||!_0x4eac16||!_0x4eac16[_0x8b89eb(0x5dd)]?t(_0x41998f,'default',{'value':_0x4eac16,'enumerable':!0x0}):_0x41998f,_0x4eac16));let c=require(`@univerjs-pro/sheets-shape`),l=require(`@univerjs/core`),u=require(`@univerjs/sheets`),d=require(`@univerjs/sheets-drawing`),f=require(`rxjs`),p=require(`@univerjs/drawing`),m=require(`@univerjs/engine-render`),h=require(`@univerjs/docs-ui`),g=require(`@univerjs/icons`),_=require(`@univerjs/sheets-ui`),v=require(`@univerjs/ui`),y=require(`@univerjs-pro/engine-shape`),b=require(`@univerjs/design`),x=require(`react`);x=s(x);let S=require(`@univerjs/drawing-ui`),C=require(`react/jsx-runtime`),w=require(`@univerjs/sheets-drawing-ui`),T=require(`@univerjs/docs`);function E(_0x9779b5){'@babel/helpers - typeof';const _0x66bd63=_0x8b89eb;return E=typeof Symbol==_0x66bd63(0x5a7)&&typeof Symbol[_0x66bd63(0x374)]==_0x66bd63(0x74a)?function(_0x2065a9){return typeof _0x2065a9;}:function(_0x37abf3){const _0x3a6a93=_0x66bd63;return _0x37abf3&&typeof Symbol==_0x3a6a93(0x5a7)&&_0x37abf3[_0x3a6a93(0x741)]===Symbol&&_0x37abf3!==Symbol[_0x3a6a93(0x5c4)]?'symbol':typeof _0x37abf3;},E(_0x9779b5);}function D(_0x1cc188,_0x45405a){const _0xf4ea01=_0x8b89eb;if(E(_0x1cc188)!=_0xf4ea01(0x650)||!_0x1cc188)return _0x1cc188;var _0x3bc7db=_0x1cc188[Symbol[_0xf4ea01(0x355)]];if(_0x3bc7db!==void 0x0){var _0x114d8b=_0x3bc7db[_0xf4ea01(0x5e0)](_0x1cc188,_0x45405a||'default');if(E(_0x114d8b)!=_0xf4ea01(0x650))return _0x114d8b;throw TypeError(_0xf4ea01(0x630));}return(_0x45405a===_0xf4ea01(0x5dc)?String:Number)(_0x1cc188);}function O(_0x2a2f72){var _0x4a38a7=D(_0x2a2f72,'string');return E(_0x4a38a7)=='symbol'?_0x4a38a7:_0x4a38a7+'';}function k(_0xb12330,_0x268434,_0x2d21c6){const _0x117c46=_0x8b89eb;return(_0x268434=O(_0x268434))in _0xb12330?Object[_0x117c46(0x453)](_0xb12330,_0x268434,{'value':_0x2d21c6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb12330[_0x268434]=_0x2d21c6,_0xb12330;}var A=class extends l[_0x8b89eb(0x301)]{constructor(..._0x488d02){const _0x5cbb22=_0x8b89eb;super(..._0x488d02),k(this,'_editingParams$',new f[(_0x5cbb22(0x47a))](null)),k(this,_0x5cbb22(0x281),this['_editingParams$']['asObservable']()),k(this,_0x5cbb22(0x51f),new f[(_0x5cbb22(0x47a))](!0x1)),k(this,_0x5cbb22(0x44a),this['_onSavingEditorData$'][_0x5cbb22(0x2d8)]());}[_0x8b89eb(0x2e5)](){const _0x86fb56=_0x8b89eb;this[_0x86fb56(0x721)][_0x86fb56(0x31c)](null),this[_0x86fb56(0x721)][_0x86fb56(0x3a0)](),this[_0x86fb56(0x51f)][_0x86fb56(0x31c)](!0x1),this[_0x86fb56(0x51f)][_0x86fb56(0x3a0)](),super[_0x86fb56(0x2e5)]();}[_0x8b89eb(0x6db)](_0x468b8c){const _0x50e114=_0x8b89eb;this['_editingParams$']['next'](_0x468b8c),_0x468b8c==null&&this[_0x50e114(0x51f)][_0x50e114(0x31c)](!0x1);}[_0x8b89eb(0x292)](_0x11d929){const _0x1b0bba=_0x8b89eb;this['_onSavingEditorData$'][_0x1b0bba(0x31c)](_0x11d929);}[_0x8b89eb(0x4d1)](){const _0x4d7292=_0x8b89eb;return this[_0x4d7292(0x721)][_0x4d7292(0x671)]();}};function j(_0x26582b,_0x39b356){const _0x1a3141=_0x8b89eb;let _0x136650={};for(let _0x3accf3 of Object[_0x1a3141(0x205)](_0x39b356)){let _0x36767f=_0x39b356[_0x3accf3],_0x215dd7=_0x26582b[_0x3accf3];if(_0x36767f!==void 0x0){if(_0x215dd7===void 0x0){_0x136650[_0x3accf3]=void 0x0;continue;}typeof _0x36767f==_0x1a3141(0x650)&&_0x36767f&&!Array[_0x1a3141(0x222)](_0x36767f)&&typeof _0x215dd7==_0x1a3141(0x650)&&_0x215dd7&&!Array[_0x1a3141(0x222)](_0x215dd7)?_0x136650[_0x3accf3]=j(_0x215dd7,_0x36767f):_0x136650[_0x3accf3]=_0x215dd7;}}return _0x136650;}const M={'type':l[_0x8b89eb(0x2dd)]['COMMAND'],'id':'sheet.command.update-shape-data','handler':(_0x434c12,_0xb43db)=>{const _0x36655f=_0x8b89eb;let _0x42bc56=_0x434c12[_0x36655f(0x302)](c['SheetsShapeService']),{unitId:_0x2bf21d,subUnitId:_0x644938,shapeType:_0x4c635e,shapeId:_0x50e1a5,shapeData:_0x53e85e,oldShapeJSON:_0xea64bb}=_0xb43db;if(!_0x42bc56[_0x36655f(0x598)](_0x2bf21d,_0x644938,_0x50e1a5))return!0x1;let _0x28ac6a=_0x434c12[_0x36655f(0x302)](l[_0x36655f(0x6d6)]),_0x216ebd=_0x434c12[_0x36655f(0x302)](l[_0x36655f(0x6d4)]),{oldShapeType:_0x373f95,oldShapeData:_0x4a7aa5={}}=_0xea64bb,_0x315240=j(_0x4a7aa5,_0x53e85e||{}),_0x2b3a9f={'id':c[_0x36655f(0x519)]['id'],'params':{'unitId':_0x2bf21d,'subUnitId':_0x644938,'shapeId':_0x50e1a5,'shapeType':_0x4c635e,'shapeData':_0x53e85e}},_0x225059={'id':c[_0x36655f(0x519)]['id'],'params':{'unitId':_0x2bf21d,'subUnitId':_0x644938,'shapeId':_0x50e1a5,'shapeType':_0x373f95,'shapeData':_0x315240}};return _0x28ac6a['syncExecuteCommand'](_0x2b3a9f['id'],_0x2b3a9f[_0x36655f(0x25e)])?(_0x216ebd[_0x36655f(0x219)]({'unitID':_0x2bf21d,'undoMutations':[_0x225059],'redoMutations':[_0x2b3a9f]}),!0x0):!0x1;}},N={'type':l[_0x8b89eb(0x2dd)]['COMMAND'],'id':_0x8b89eb(0x456),'handler':async(_0x288cae,_0x583566)=>{const _0x1261e6=_0x8b89eb;var _0x71840f;if(!(0x0,u[_0x1261e6(0x2e1)])(_0x288cae['get'](l[_0x1261e6(0x2b1)])))return!0x1;let _0x275ab1=_0x288cae['get'](d[_0x1261e6(0x22a)])[_0x1261e6(0x607)]()['filter'](_0x1b47bb=>_0x1b47bb[_0x1261e6(0x6e7)]===l[_0x1261e6(0x638)][_0x1261e6(0x73a)]);if(_0x275ab1['length']!==0x1)return!0x1;let _0x585492=_0x288cae[_0x1261e6(0x302)](A)['getEditing'](),_0x5bc2bd=(_0x585492==null?void 0x0:_0x585492['unitId'])||_0x275ab1[0x0][_0x1261e6(0x4cd)],_0x5a0c72=(_0x585492==null?void 0x0:_0x585492[_0x1261e6(0x439)])||_0x275ab1[0x0][_0x1261e6(0x439)],_0x1950d1=(_0x585492==null?void 0x0:_0x585492[_0x1261e6(0x3a6)])||_0x275ab1[0x0][_0x1261e6(0x591)],_0x4f55b2=_0x288cae['get'](c['SheetsShapeService'])[_0x1261e6(0x598)](_0x5bc2bd,_0x5a0c72,_0x1950d1);if(!_0x4f55b2)return!0x1;let _0x3a0e65=_0x4f55b2['getShapeTextData']();if(!_0x3a0e65||!(_0x1261e6(0x264)in _0x3a0e65))return!0x1;let _0x47fd19=_0x288cae['get'](l[_0x1261e6(0x6d6)]),{value:_0x559420}=_0x583566,_0x594b62=_0x4f55b2[_0x1261e6(0x5d7)](),_0x5bdf98=_0x4f55b2[_0x1261e6(0x6cc)](),_0x4d5c00={..._0x3a0e65['dataModel'],'ha':_0x559420};return await _0x47fd19[_0x1261e6(0x279)](M['id'],{'unitId':_0x5bc2bd,'subUnitId':_0x5a0c72,'shapeId':_0x1950d1,'shapeType':_0x594b62,'shapeData':{'shapeText':{'isHorizontal':(_0x71840f=_0x3a0e65[_0x1261e6(0x3ad)])==null?!0x0:_0x71840f,'dataModel':_0x4d5c00}},'oldShapeJSON':{'oldShapeType':_0x594b62,'oldShapeData':_0x5bdf98}});}},P={'type':l[_0x8b89eb(0x2dd)][_0x8b89eb(0x489)],'id':'sheet.command.set-shape-text-font-size','handler':async(_0x365d09,_0x6953d1)=>{const _0x458b61=_0x8b89eb;var _0x43e7a3;if(!_0x6953d1)return!0x1;let {value:_0x42d204}=_0x6953d1,_0xf26e4a=_0x365d09[_0x458b61(0x302)](l[_0x458b61(0x6d6)]),_0x3e4a5e=_0x365d09[_0x458b61(0x302)](A),_0x2e84db=_0x365d09[_0x458b61(0x302)](c[_0x458b61(0x450)]),_0x29d11b=_0x365d09[_0x458b61(0x302)](m[_0x458b61(0x6ec)]),_0x41e84c=_0x3e4a5e[_0x458b61(0x4d1)]();if(!_0x41e84c)return!0x1;let {unitId:_0x5e395f,subUnitId:_0x4d34e2,shapeId:_0x4aaf66}=_0x41e84c,_0x12123c=_0x2e84db[_0x458b61(0x598)](_0x5e395f,_0x4d34e2,_0x4aaf66);if(!_0x12123c)return!0x1;let _0x3c2e05=_0x12123c['getShapeTextData']();if(!_0x3c2e05||!(_0x458b61(0x264)in _0x3c2e05))return!0x1;let _0x2fac80=_0x3c2e05[_0x458b61(0x264)];if(!_0x2fac80)return!0x1;let _0x1c1ff9={..._0x2fac80,'fs':_0x42d204},_0x2157f9=await _0xf26e4a[_0x458b61(0x279)](M['id'],{'unitId':_0x5e395f,'subUnitId':_0x4d34e2,'shapeId':_0x4aaf66,'shapeData':{'shapeText':{'isHorizontal':(_0x43e7a3=_0x3c2e05[_0x458b61(0x3ad)])==null?!0x0:_0x43e7a3,'dataModel':_0x1c1ff9}}});if(_0x2157f9){let _0x34a359=_0x29d11b[_0x458b61(0x2b0)](_0x5e395f);if(_0x34a359!=null&&_0x34a359[_0x458b61(0x272)]){let _0xb6aa2d=(0x0,p[_0x458b61(0x715)])({'unitId':_0x5e395f,'subUnitId':_0x4d34e2,'drawingId':_0x4aaf66}),_0x3f5dbb=_0x34a359[_0x458b61(0x272)]['getObjectIncludeInGroup'](_0xb6aa2d);_0x3f5dbb&&_0x3f5dbb['makeDirty'](!0x0);}}return _0x2157f9;}},F={'type':l[_0x8b89eb(0x2dd)][_0x8b89eb(0x489)],'id':'sheet.command.set-shape-text-font-size-increase','handler':async _0x4e1084=>{const _0x517b42=_0x8b89eb;var _0x174cd8;let _0x4a27da=_0x4e1084[_0x517b42(0x302)](A),_0x20c636=_0x4e1084[_0x517b42(0x302)](c[_0x517b42(0x450)]),_0x5bf60c=_0x4e1084[_0x517b42(0x302)](l[_0x517b42(0x6d6)]),_0x4d3b62=_0x4a27da[_0x517b42(0x4d1)]();if(!_0x4d3b62)return!0x1;let {unitId:_0xcea230,subUnitId:_0xb38525,shapeId:_0x4170c3}=_0x4d3b62,_0x5ecb67=_0x20c636[_0x517b42(0x598)](_0xcea230,_0xb38525,_0x4170c3);if(!_0x5ecb67)return!0x1;let _0x14f51e=_0x5ecb67['getShapeTextData']();if(!_0x14f51e||!('dataModel'in _0x14f51e))return!0x1;let _0x2e4af3=_0x14f51e[_0x517b42(0x264)],_0x180238=(_0x174cd8=_0x2e4af3==null?void 0x0:_0x2e4af3['fs'])==null?0xe:_0x174cd8,_0x88125e=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x46378a=_0x180238,_0x4e8879=_0x88125e[_0x517b42(0x5ce)](_0x180238);return _0x4e8879!==-0x1&&_0x4e8879<_0x88125e['length']-0x1?_0x46378a=_0x88125e[_0x4e8879+0x1]:_0x4e8879===-0x1&&(_0x46378a=Math[_0x517b42(0x5b8)](_0x180238)+0x1),_0x5bf60c['executeCommand'](P['id'],{'value':_0x46378a});}},ee={'type':l[_0x8b89eb(0x2dd)][_0x8b89eb(0x489)],'id':'sheet.command.set-shape-text-font-size-decrease','handler':async _0x585a67=>{const _0x4e0d4d=_0x8b89eb;var _0xa2c3c3;let _0x3bde46=_0x585a67[_0x4e0d4d(0x302)](A),_0x4acdfc=_0x585a67['get'](c[_0x4e0d4d(0x450)]),_0x2a5fbe=_0x585a67[_0x4e0d4d(0x302)](l['ICommandService']),_0x2e6b84=_0x3bde46[_0x4e0d4d(0x4d1)]();if(!_0x2e6b84)return!0x1;let {unitId:_0x5239e6,subUnitId:_0x1bc918,shapeId:_0x5664cd}=_0x2e6b84,_0x3dee34=_0x4acdfc[_0x4e0d4d(0x598)](_0x5239e6,_0x1bc918,_0x5664cd);if(!_0x3dee34)return!0x1;let _0x114b40=_0x3dee34[_0x4e0d4d(0x541)]();if(!_0x114b40||!('dataModel'in _0x114b40))return!0x1;let _0x3ed15c=_0x114b40[_0x4e0d4d(0x264)],_0x4c2079=(_0xa2c3c3=_0x3ed15c==null?void 0x0:_0x3ed15c['fs'])==null?0xe:_0xa2c3c3,_0x1f103c=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x5b7dc2=_0x4c2079,_0x1b8f8f=_0x1f103c[_0x4e0d4d(0x5ce)](_0x4c2079);return _0x1b8f8f!==-0x1&&_0x1b8f8f>0x0?_0x5b7dc2=_0x1f103c[_0x1b8f8f-0x1]:_0x1b8f8f===-0x1&&(_0x5b7dc2=Math[_0x4e0d4d(0x5b8)](_0x4c2079)-0x1),_0x5b7dc2<0x1&&(_0x5b7dc2=0x1),_0x2a5fbe[_0x4e0d4d(0x279)](P['id'],{'value':_0x5b7dc2});}},I={'type':l[_0x8b89eb(0x2dd)]['COMMAND'],'id':_0x8b89eb(0x490),'handler':async(_0x2a0b7e,_0x1a8057)=>{const _0x1367d6=_0x8b89eb;var _0x1091ea;if(!(0x0,u[_0x1367d6(0x2e1)])(_0x2a0b7e[_0x1367d6(0x302)](l[_0x1367d6(0x2b1)])))return!0x1;let _0x555fb6=_0x2a0b7e['get'](d[_0x1367d6(0x22a)])[_0x1367d6(0x607)]()[_0x1367d6(0x1fe)](_0x311986=>_0x311986['drawingType']===l[_0x1367d6(0x638)][_0x1367d6(0x73a)]);if(_0x555fb6[_0x1367d6(0x41f)]!==0x1)return!0x1;let _0x2f97dd=_0x2a0b7e[_0x1367d6(0x302)](A)['getEditing'](),_0x58b680=(_0x2f97dd==null?void 0x0:_0x2f97dd[_0x1367d6(0x4cd)])||_0x555fb6[0x0][_0x1367d6(0x4cd)],_0x19f71=(_0x2f97dd==null?void 0x0:_0x2f97dd[_0x1367d6(0x439)])||_0x555fb6[0x0][_0x1367d6(0x439)],_0x5a89cd=(_0x2f97dd==null?void 0x0:_0x2f97dd[_0x1367d6(0x3a6)])||_0x555fb6[0x0][_0x1367d6(0x591)],_0x3058f9=_0x2a0b7e[_0x1367d6(0x302)](c[_0x1367d6(0x450)])['getShapeModel'](_0x58b680,_0x19f71,_0x5a89cd);if(!_0x3058f9)return!0x1;let _0x4e59cf=_0x3058f9[_0x1367d6(0x541)]();if(!_0x4e59cf||!('dataModel'in _0x4e59cf))return!0x1;let _0xc13b08=_0x2a0b7e[_0x1367d6(0x302)](l['ICommandService']),{value:_0x52973f}=_0x1a8057,_0x46838b=_0x3058f9[_0x1367d6(0x5d7)](),_0x4e4fdc=_0x3058f9[_0x1367d6(0x6cc)](),_0x1c3a31={..._0x4e59cf['dataModel'],'va':_0x52973f};return await _0xc13b08['executeCommand'](M['id'],{'unitId':_0x58b680,'subUnitId':_0x19f71,'shapeId':_0x5a89cd,'shapeType':_0x46838b,'shapeData':{'shapeText':{'isHorizontal':(_0x1091ea=_0x4e59cf['isHorizontal'])==null?!0x0:_0x1091ea,'dataModel':_0x1c3a31}},'oldShapeJSON':{'oldShapeType':_0x46838b,'oldShapeData':_0x4e4fdc}});}},te={'type':l['CommandType'][_0x8b89eb(0x489)],'id':_0x8b89eb(0x394),'handler':(_0xc0d1f3,_0x561e10)=>{const _0x2e6987=_0x8b89eb;if(!_0x561e10)return!0x1;let {value:_0xf784b6}=_0x561e10;return _0xc0d1f3[_0x2e6987(0x302)](l[_0x2e6987(0x6d6)])[_0x2e6987(0x515)](h[_0x2e6987(0x451)]['id'],{'alignType':_0xf784b6});}},L={'type':l[_0x8b89eb(0x2dd)][_0x8b89eb(0x534)],'id':_0x8b89eb(0x37d),'handler'(){return!0x0;}},R={'type':l['CommandType'][_0x8b89eb(0x534)],'id':_0x8b89eb(0x52f),'handler'(){return!0x0;}},z=_0x8b89eb(0x5a9),B=(0x0,l[_0x8b89eb(0x558)])(_0x8b89eb(0x42b));function V(_0x24d1b7,_0x5e0d50,_0x20dae4,_0x438336,_0x37dde2,_0x2abb0c){const _0xd14422=_0x8b89eb;let _0x49d04d={'unitId':_0x5e0d50,'subUnitId':_0x20dae4,'shapeId':_0x438336,'shapeData':_0x2abb0c,'oldShapeJSON':_0x37dde2};return _0x24d1b7[_0xd14422(0x279)](M['id'],_0x49d04d);}function ne(_0x4181d7,_0x3fd74a,_0xcce4b9,_0x77f6a7,_0x15c3e1,_0xefdfd9){const _0x2b90d7=_0x8b89eb;let _0xeb1043={'unitId':_0x3fd74a,'subUnitId':_0xcce4b9,'shapeId':_0x77f6a7,'shapeData':_0xefdfd9,'oldShapeJSON':_0x15c3e1};return _0x4181d7[_0x2b90d7(0x279)](M['id'],_0xeb1043);}function re(_0x28fd11,_0x5d1856){const _0x1bdd37=_0x8b89eb;var _0x52a739;let {isHorizontal:_0xc67dfa,textRect:_0x49e45a,verticalAlign:_0x22941a}=_0x5d1856,_0x3742d7=_0xc67dfa?_0x49e45a[_0x1bdd37(0x497)]:_0x49e45a[_0x1bdd37(0x560)],_0x44480d=l[_0x1bdd37(0x3b7)][_0x1bdd37(0x2dc)](_0x28fd11),_0x260670=(_0x52a739=_0x44480d[_0x1bdd37(0x228)])==null?{}:_0x52a739,_0x7edfda={..._0x260670['renderConfig'],'centerAngle':_0xc67dfa?0x0:m[_0x1bdd37(0x704)],'vertexAngle':_0xc67dfa?0x0:m[_0x1bdd37(0x704)],'wrapStrategy':l[_0x1bdd37(0x298)][_0x1bdd37(0x646)]};if(_0x22941a!==void 0x0&&(_0x7edfda[_0x1bdd37(0x38f)]=_0x22941a),_0x5d1856[_0x1bdd37(0x752)]!==void 0x0){var _0x63b3cd;_0x7edfda[_0x1bdd37(0x752)]=_0x5d1856['horizontalAlign'];let _0x12cca0=(_0x63b3cd=_0x44480d[_0x1bdd37(0x554)])==null?void 0x0:_0x63b3cd[_0x1bdd37(0x35b)];if(_0x12cca0){for(let _0x43bd74 of _0x12cca0)_0x43bd74[_0x1bdd37(0x218)]||(_0x43bd74[_0x1bdd37(0x218)]={}),_0x43bd74[_0x1bdd37(0x218)]['horizontalAlign']=_0x5d1856[_0x1bdd37(0x752)];}}return _0x44480d[_0x1bdd37(0x228)]={..._0x260670,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x3742d7,'height':0x1/0x0},'renderConfig':_0x7edfda},_0x44480d;}function ie(_0x3690ea){const _0x54f5ec=_0x8b89eb;var _0x3dae54;let _0x4c581e=l[_0x54f5ec(0x3b7)][_0x54f5ec(0x2dc)](_0x3690ea),_0xc64530=(_0x3dae54=_0x4c581e['documentStyle'])==null?{}:_0x3dae54,_0x26237d={..._0xc64530[_0x54f5ec(0x58b)]};return delete _0x26237d['centerAngle'],delete _0x26237d[_0x54f5ec(0x742)],delete _0x26237d[_0x54f5ec(0x38f)],delete _0x26237d['wrapStrategy'],_0x4c581e[_0x54f5ec(0x228)]={..._0xc64530,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':0x1/0x0,'height':0x1/0x0},'renderConfig':Object['keys'](_0x26237d)[_0x54f5ec(0x41f)]>0x0?_0x26237d:void 0x0},_0x4c581e;}var H=class extends m[_0x8b89eb(0x4df)]{constructor(_0x5adebe,_0x24c80c){const _0xea4c32=_0x8b89eb;super(_0x5adebe,_0x24c80c),k(this,_0xea4c32(0x2fd),void 0x0),k(this,_0xea4c32(0x57c),!0x0),k(this,_0xea4c32(0x225),l[_0xea4c32(0x638)][_0xea4c32(0x73a)]),k(this,'isDrawingObject',!0x0),this[_0xea4c32(0x2fd)]={..._0x24c80c},this[_0xea4c32(0x49b)]();}[_0x8b89eb(0x49b)](){const _0x5a7662=_0x8b89eb;this[_0x5a7662(0x239)][_0x5a7662(0x507)](_0x105a98=>{const _0x281668=_0x5a7662;this[_0x281668(0x46b)](_0x105a98);});}['setPrstGeom'](_0xeced3a){const _0x2bd240=_0x8b89eb;this[_0x2bd240(0x2fd)][_0x2bd240(0x546)]=_0xeced3a;}[_0x8b89eb(0x6db)](_0x297b23){const _0x1f8139=_0x8b89eb;this[_0x1f8139(0x2fd)][_0x1f8139(0x452)]=_0x297b23,this['makeDirty'](!0x0);}get[_0x8b89eb(0x4cd)](){const _0x5721d9=_0x8b89eb;return this[_0x5721d9(0x2fd)][_0x5721d9(0x4cd)];}get[_0x8b89eb(0x439)](){const _0x52f279=_0x8b89eb;return this[_0x52f279(0x2fd)]['subUnitId'];}[_0x8b89eb(0x46b)](_0x3e4774){const _0x12fc6c=_0x8b89eb;if(this[_0x12fc6c(0x2fd)]['srcRect']==null||!this[_0x12fc6c(0x57c)])return;let {width:_0x593bbf,height:_0x5ace13}=this,{width:_0x48ad91=0x0,height:_0x510f79=0x0}=_0x3e4774[_0x12fc6c(0x6d9)],{left:_0xaf8da7=0x0,top:_0x56ae9a=0x0,right:_0x11ee9f=0x0,bottom:_0x295408=0x0}=this[_0x12fc6c(0x2fd)][_0x12fc6c(0x685)],_0x4ebd53=_0xaf8da7,_0x1c8c88=_0x56ae9a,_0x5f4b36=_0x11ee9f,_0x433b90=_0x295408,_0x2eeb16=!0x1;if(_0x48ad91!==0x0&&_0x48ad91!==_0x593bbf){let _0x3e7cc5=_0xaf8da7/_0x48ad91,_0xa30738=_0x11ee9f/_0x48ad91;_0x4ebd53=_0x593bbf*_0x3e7cc5,_0x5f4b36=_0x593bbf*_0xa30738,_0x2eeb16=!0x0;}if(_0x510f79!==0x0&&_0x510f79!==_0x5ace13){let _0x403678=_0x56ae9a/_0x510f79,_0x242a5e=_0x295408/_0x510f79;_0x1c8c88=_0x5ace13*_0x403678,_0x433b90=_0x5ace13*_0x242a5e,_0x2eeb16=!0x0;}_0x2eeb16&&this[_0x12fc6c(0x6aa)]({'left':_0x4ebd53,'top':_0x1c8c88,'right':_0x5f4b36,'bottom':_0x433b90});}[_0x8b89eb(0x6aa)](_0x1482d3){const _0x7693ca=_0x8b89eb;this[_0x7693ca(0x2fd)]['srcRect']=_0x1482d3,this[_0x7693ca(0x700)](!0x0);}[_0x8b89eb(0x1f6)](_0x1ecafd){const _0x504f57=_0x8b89eb;this[_0x504f57(0x2fd)]['image']=_0x1ecafd,this[_0x504f57(0x700)](!0x0);}set[_0x8b89eb(0x5f1)](_0x2e3aba){this['_transform']=_0x2e3aba;}get[_0x8b89eb(0x5f1)](){const _0x374dc=_0x8b89eb;this[_0x374dc(0x504)]||this[_0x374dc(0x4ce)]();let _0xc5ab71=this[_0x374dc(0x504)]['clone']();return this[_0x374dc(0x32b)](_0xc5ab71);}get[_0x8b89eb(0x345)](){return this['_props']['shapeModel'];}get['shapeId'](){return this['_props']['shapeId'];}get[_0x8b89eb(0x26a)](){return m['RENDER_CLASS_TYPE']['SHAPE'];}[_0x8b89eb(0x372)](_0x2d2ad5,_0x11970c,_0x2595e7,_0x2ed5ae){const _0x45f843=_0x8b89eb;let _0x293572=this[_0x45f843(0x2fd)][_0x45f843(0x345)];if(!_0x293572||!_0x11970c)return;let _0x40f2c4=_0x2595e7==null?this[_0x45f843(0x497)]:_0x2595e7,_0x11699c=_0x2ed5ae==null?this['height']:_0x2ed5ae,_0x1d29f4={'shapeType':_0x293572[_0x45f843(0x5d7)](),'width':_0x40f2c4,'height':_0x11699c},_0x5e75d4={'renderMode':y[_0x45f843(0x408)][_0x45f843(0x28e)],'oKey':this[_0x45f843(0x2a4)],'image':this['_props'][_0x45f843(0x3cd)],'angle':this['angle']};_0x293572[_0x45f843(0x6a3)](_0x1d29f4),_0x2d2ad5[_0x45f843(0x43a)]();let _0x5a0824={'top':0x0,'left':0x0,'width':_0x40f2c4,'height':_0x11699c};_0x293572[_0x45f843(0x69c)](_0x2d2ad5,_0x5a0824,_0x5e75d4),_0x2d2ad5[_0x45f843(0x379)]();let _0x5577ab=_0x293572['getShapeTextData'](),_0x49166f=_0x293572[_0x45f843(0x216)](_0x5a0824),_0x510d9d=_0x293572[_0x45f843(0x5fc)]();if(_0x5577ab&&_0x49166f&&!_0x510d9d){_0x2d2ad5[_0x45f843(0x43a)](),this[_0x45f843(0x34d)]()[_0x45f843(0x5cb)]&&_0x2d2ad5[_0x45f843(0x5cd)](-0x1,0x1);let _0x42647b=_0x40f2c4/0x2,_0x1dca9b=_0x11699c/0x2;_0x2d2ad5[_0x45f843(0x617)](-_0x42647b,-_0x1dca9b),_0x2d2ad5[_0x45f843(0x599)](),this[_0x45f843(0x73b)](_0x2d2ad5,_0x5577ab,_0x49166f),_0x2d2ad5[_0x45f843(0x379)]();}}[_0x8b89eb(0x458)](_0x5b0890){}['_drawShapeText'](_0x1472fc,_0x13cf9e,_0xb32be0){const _0xd73209=_0x8b89eb;this[_0xd73209(0x2fd)]['isEditing']||(_0xd73209(0x2d4)in _0x13cf9e&&_0x13cf9e[_0xd73209(0x2d4)]===!0x1?this[_0xd73209(0x326)](_0x1472fc,_0x13cf9e,_0xb32be0):this[_0xd73209(0x57f)](_0x1472fc,_0x13cf9e,_0xb32be0));}['_drawSimpleText'](_0x54e94c,_0x1122e5,_0x705118){}[_0x8b89eb(0x57f)](_0x3cb4ed,_0x2a8c63,_0x2037f1){const _0x3fd6c2=_0x8b89eb;var _0x494e2e,_0xc1a82a;let _0x2edac8=this[_0x3fd6c2(0x2fd)][_0x3fd6c2(0x203)];if(!_0x2a8c63[_0x3fd6c2(0x264)]||!_0x2edac8){_0x2edac8||console['warn'](_0x3fd6c2(0x4dd));return;}let _0x43a73e=_0x2a8c63['dataModel'],_0x16e1b9=_0x43a73e['doc'],_0x20623f=(_0x494e2e=_0x43a73e['va'])==null?l[_0x3fd6c2(0x6df)][_0x3fd6c2(0x4eb)]:_0x494e2e,_0x502eaa=(_0xc1a82a=_0x43a73e['ha'])==null?l[_0x3fd6c2(0x31e)][_0x3fd6c2(0x6fd)]:_0xc1a82a;if(!_0x16e1b9)return;let _0x3ad83e=_0x2a8c63[_0x3fd6c2(0x3ad)],_0x1c3bfd=re(_0x16e1b9,{'isHorizontal':_0x3ad83e!==!0x1,'textRect':_0x2037f1,'verticalAlign':_0x20623f,'horizontalAlign':_0x502eaa}),_0x5662e0=new l[(_0x3fd6c2(0x23b))](_0x1c3bfd),_0x2892b1=new m['DocumentViewModel'](_0x5662e0),_0x1a80e3=m['DocumentSkeleton'][_0x3fd6c2(0x24d)](_0x2892b1,_0x2edac8);console[_0x3fd6c2(0x470)](_0x1c3bfd,_0x5662e0,_0x1a80e3),_0x1a80e3[_0x3fd6c2(0x37e)]();let _0xe95c89=new m[(_0x3fd6c2(0x40e))]('shape-text-'+this[_0x3fd6c2(0x2a4)],_0x1a80e3,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0xe95c89[_0x3fd6c2(0x377)](_0x2037f1['width'],_0x2037f1[_0x3fd6c2(0x560)]),_0x3cb4ed[_0x3fd6c2(0x43a)](),_0x3cb4ed[_0x3fd6c2(0x5e6)](_0x2037f1[_0x3fd6c2(0x416)],_0x2037f1[_0x3fd6c2(0x324)]),_0x3cb4ed['beginPath'](),_0x3cb4ed[_0x3fd6c2(0x61f)](0x0,0x0,_0x2037f1[_0x3fd6c2(0x497)],_0x2037f1[_0x3fd6c2(0x560)]),_0x3cb4ed[_0x3fd6c2(0x537)](),_0xe95c89[_0x3fd6c2(0x3d3)](_0x3cb4ed),_0x3cb4ed['restore'](),_0xe95c89['dispose'](),_0x1a80e3['dispose'](),_0x2892b1[_0x3fd6c2(0x2e5)](),_0x5662e0[_0x3fd6c2(0x2e5)]();}['render'](_0x28cf2d,_0x2b6da5,_0x3b3fe9=!0x1){const _0x437d1f=_0x8b89eb;if(!this[_0x437d1f(0x469)])return this['makeDirty'](!0x1),this;let {width:_0x1cecd9,height:_0x5abab4,left:_0x429fe6,top:_0x48bce4}=this,_0x2f5c3e=this[_0x437d1f(0x620)]();if(_0x1cecd9=_0x2f5c3e[_0x437d1f(0x497)],_0x5abab4=_0x2f5c3e['height'],_0x429fe6=_0x2f5c3e['left'],_0x48bce4=_0x2f5c3e['top'],this[_0x437d1f(0x3a3)](_0x2b6da5)){let {top:_0x72db8d,left:_0x5509fd,bottom:_0x4a8682,right:_0xdde05b}=_0x2b6da5[_0x437d1f(0x518)];if(_0x1cecd9+this[_0x437d1f(0x59f)]+_0x429fe6<_0x5509fd||_0xdde05b<_0x429fe6||_0x5abab4+this[_0x437d1f(0x59f)]+_0x48bce4<_0x72db8d||_0x4a8682<_0x48bce4)return this;}let _0x38177a=_0x429fe6+_0x1cecd9/0x2,_0x5ade98=_0x48bce4+_0x5abab4/0x2,_0x2d71d0=this[_0x437d1f(0x5f1)][_0x437d1f(0x4af)]();if(this[_0x437d1f(0x2fd)][_0x437d1f(0x452)]){let _0x2278be=this['getState'](),_0x572390=new m['Transform']();_0x572390[_0x437d1f(0x40c)]({..._0x2278be}),_0x2d71d0=_0x572390[_0x437d1f(0x4af)]();}return _0x28cf2d[_0x437d1f(0x43a)](),this[_0x437d1f(0x2fd)][_0x437d1f(0x345)][_0x437d1f(0x68d)]===!0x0||_0x28cf2d[_0x437d1f(0x5f1)](_0x2d71d0[0x0],_0x2d71d0[0x1],_0x2d71d0[0x2],_0x2d71d0[0x3],_0x38177a,_0x5ade98),this['_draw'](_0x28cf2d,_0x2b6da5,_0x1cecd9,_0x5abab4),_0x28cf2d[_0x437d1f(0x379)](),this[_0x437d1f(0x700)](!0x1),this;}[_0x8b89eb(0x34f)](_0x3524c5){const _0x142f47=_0x8b89eb;let {left:_0x397e42,top:_0x1996cd,width:_0xebfbb8,height:_0x4fd8ae}=this['getRealBound'](),_0x3d198a=this[_0x142f47(0x5f1)][_0x142f47(0x4af)](),_0x3ca433=_0x397e42+_0xebfbb8/0x2,_0x34c2c9=_0x1996cd+_0x4fd8ae/0x2,_0xe85f7f=new m[(_0x142f47(0x337))]([_0x3d198a[0x0],_0x3d198a[0x1],_0x3d198a[0x2],_0x3d198a[0x3],_0x3ca433,_0x34c2c9]),_0x420903=this[_0x142f47(0x363)]();return(this['isInGroup']&&(_0x420903==null?void 0x0:_0x420903[_0x142f47(0x26a)])===m[_0x142f47(0x358)]['GROUP']?_0x420903[_0x142f47(0x309)]['multiply'](_0xe85f7f):_0xe85f7f)[_0x142f47(0x3ed)]()[_0x142f47(0x20f)](_0x3524c5);}['isHit'](_0x5e07f8){const _0xc84134=_0x8b89eb;let {left:_0x45bb2d,top:_0x4854c1,width:_0x410902,height:_0x4a988e}=this[_0xc84134(0x620)](),_0x15fc0d=_0x45bb2d+_0x410902/0x2,_0x3f85dd=_0x4854c1+_0x4a988e/0x2,_0x4ab95e=this[_0xc84134(0x5f1)][_0xc84134(0x4af)](),_0x3925cf=new m[(_0xc84134(0x337))]([_0x4ab95e[0x0],_0x4ab95e[0x1],_0x4ab95e[0x2],_0x4ab95e[0x3],_0x15fc0d,_0x3f85dd]),_0x8d71da=this[_0xc84134(0x363)](),_0xc076d6=(this[_0xc84134(0x20d)]&&(_0x8d71da==null?void 0x0:_0x8d71da['classType'])===m['RENDER_CLASS_TYPE'][_0xc84134(0x711)]?_0x8d71da['ancestorTransform']['multiply'](_0x3925cf):_0x3925cf)['invert']()['applyPoint'](_0x5e07f8),_0x33485e=_0x410902/0x2,_0xb90eb2=_0x4a988e/0x2,_0x407d15=this[_0xc84134(0x2fd)][_0xc84134(0x345)];return _0x407d15&&_0x407d15[_0xc84134(0x5fc)]()?_0x407d15[_0xc84134(0x66e)](_0xc076d6['x'],_0xc076d6['y'],_0x410902,_0x4a988e):_0xc076d6['x']>=-_0x33485e-this[_0xc84134(0x59f)]/0x2&&_0xc076d6['x']<=_0x33485e+this[_0xc84134(0x59f)]/0x2&&_0xc076d6['y']>=-_0xb90eb2-this[_0xc84134(0x59f)]/0x2&&_0xc076d6['y']<=_0xb90eb2+this[_0xc84134(0x59f)]/0x2;}['dispose'](){const _0x11d14a=_0x8b89eb;this[_0x11d14a(0x2fd)][_0x11d14a(0x345)]=null,super[_0x11d14a(0x2e5)]();}};function U(_0x5d58f5,_0x1b4c2a){return function(_0x226b72,_0x16979a){_0x1b4c2a(_0x226b72,_0x16979a,_0x5d58f5);};}function W(_0x44e173,_0x46f66b,_0x560de0,_0x15e83b){const _0x1af0a7=_0x8b89eb;var _0x57ac74=arguments[_0x1af0a7(0x41f)],_0x47fd30=_0x57ac74<0x3?_0x46f66b:_0x15e83b===null?_0x15e83b=Object['getOwnPropertyDescriptor'](_0x46f66b,_0x560de0):_0x15e83b,_0xa7e582;if(typeof Reflect==_0x1af0a7(0x650)&&typeof Reflect[_0x1af0a7(0x665)]==_0x1af0a7(0x5a7))_0x47fd30=Reflect[_0x1af0a7(0x665)](_0x44e173,_0x46f66b,_0x560de0,_0x15e83b);else{for(var _0x4b7b93=_0x44e173[_0x1af0a7(0x41f)]-0x1;_0x4b7b93>=0x0;_0x4b7b93--)(_0xa7e582=_0x44e173[_0x4b7b93])&&(_0x47fd30=(_0x57ac74<0x3?_0xa7e582(_0x47fd30):_0x57ac74>0x3?_0xa7e582(_0x46f66b,_0x560de0,_0x47fd30):_0xa7e582(_0x46f66b,_0x560de0))||_0x47fd30);}return _0x57ac74>0x3&&_0x47fd30&&Object[_0x1af0a7(0x453)](_0x46f66b,_0x560de0,_0x47fd30),_0x47fd30;}let G=class extends l[_0x8b89eb(0x301)]{constructor(_0x86e595,_0x5322e2,_0x341855,_0x3830ac,_0x36019e){const _0x189269=_0x8b89eb;super(),this[_0x189269(0x287)]=_0x86e595,this[_0x189269(0x36b)]=_0x5322e2,this[_0x189269(0x432)]=_0x341855,this['_imageIoService']=_0x3830ac,this[_0x189269(0x596)]=_0x36019e;}[_0x8b89eb(0x73f)](_0x17982a,_0x21ca3b){const _0x23ffeb=_0x8b89eb;let {transform:_0x3d8ac3,drawingType:_0xea17fb,srcRect:_0x340905,prstGeom:_0x51d38f,groupId:_0x46616a,unitId:_0x3ec66f,subUnitId:_0x2ea595,drawingId:_0x58a037,isMultiTransform:_0x52343a,transforms:_0x128c8d,hidden:_0x2da757}=_0x17982a;if(_0xea17fb!==l[_0x23ffeb(0x638)][_0x23ffeb(0x73a)]||!this[_0x23ffeb(0x287)][_0x23ffeb(0x69a)]()||_0x3d8ac3==null)return;let _0x1119ba=_0x52343a&&_0x128c8d?_0x128c8d:[_0x3d8ac3],_0x2e1fc7=[];for(let _0xbc0776 of _0x1119ba){let {left:_0x4253af,top:_0x1eb540,width:_0x3eac99,height:_0x546be9,angle:_0x229bf0,flipX:_0x8f067e,flipY:_0x52f3be,skewX:_0x18b0c6,skewY:_0x1cacf3}=_0xbc0776,_0x50608e=_0x1119ba[_0x23ffeb(0x5ce)](_0xbc0776),_0x284427=(0x0,p['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3ec66f,'subUnitId':_0x2ea595,'drawingId':_0x58a037},_0x52343a?_0x50608e:void 0x0),_0x1547dd=_0x21ca3b[_0x23ffeb(0x5db)](_0x284427);if(_0x1547dd!=null){_0x1547dd['transformByState']({'left':_0x4253af,'top':_0x1eb540,'width':_0x3eac99,'height':_0x546be9,'angle':_0x229bf0,'flipX':_0x8f067e,'flipY':_0x52f3be,'skewX':_0x18b0c6,'skewY':_0x1cacf3});continue;}let _0x5e584a=this[_0x23ffeb(0x287)][_0x23ffeb(0x399)](_0x3ec66f,_0x2ea595),_0x58e102=_0x5e584a[_0x23ffeb(0x5ce)](_0x58a037);if(_0x21ca3b['getObjectIncludeInGroup'](_0x284427)||!this['_drawingManagerService'][_0x23ffeb(0x69a)]())continue;let _0x311b0a=this[_0x23ffeb(0x36b)][_0x23ffeb(0x598)](_0x3ec66f,_0x2ea595,_0x58a037);if(!_0x311b0a)continue;let _0x28ff6c=new H(_0x284427,{...(0x0,y[_0x23ffeb(0x6a8)])(_0x311b0a[_0x23ffeb(0x5d7)]())?{..._0xbc0776,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0xbc0776},'zIndex':_0x58e102===-0x1?_0x5e584a[_0x23ffeb(0x41f)]-0x1:_0x58e102,'shapeModel':_0x311b0a,'localeService':this['_localeService'],'shapeId':_0x58a037,'unitId':_0x3ec66f,'subUnitId':_0x2ea595,'visible':_0x2da757!==!0x0});_0x21ca3b['addObject'](_0x28ff6c,m['DRAWING_OBJECT_LAYER_INDEX']),this[_0x23ffeb(0x287)]['getDrawingEditable']()&&_0x21ca3b[_0x23ffeb(0x5c8)](_0x28ff6c),_0x46616a&&(0x0,S['insertGroupObject'])({'drawingId':_0x46616a,'unitId':_0x3ec66f,'subUnitId':_0x2ea595},_0x28ff6c,_0x21ca3b,this[_0x23ffeb(0x287)]),_0x51d38f!=null&&_0x28ff6c[_0x23ffeb(0x6d2)](_0x51d38f),_0x340905!=null&&_0x28ff6c['setSrcRect'](_0x340905),this[_0x23ffeb(0x4fb)](_0x28ff6c,_0x311b0a[_0x23ffeb(0x6cc)]()),_0x2e1fc7['push'](_0x28ff6c);}return _0x2e1fc7;}['_loadShapePictureFill'](_0x2d80cb,_0x173000){const _0x1baae3=_0x8b89eb;var _0x1ec09c;let _0x4811b6=_0x173000[_0x1baae3(0x29e)];if(!_0x4811b6||_0x4811b6[_0x1baae3(0x234)]!==y[_0x1baae3(0x656)][_0x1baae3(0x455)]||!_0x4811b6[_0x1baae3(0x732)])return;let _0x239ad6=_0x4811b6[_0x1baae3(0x732)],_0x10e563=(_0x1ec09c=_0x4811b6[_0x1baae3(0x31b)])==null?y[_0x1baae3(0x4bc)][_0x1baae3(0x569)]:_0x1ec09c,_0x1e1783=this[_0x1baae3(0x533)]['getImageSourceCache'](_0x239ad6,_0x10e563);if(_0x1e1783){_0x2d80cb[_0x1baae3(0x1f6)](_0x1e1783);return;}this[_0x1baae3(0x43d)](_0x2d80cb,_0x239ad6,_0x10e563);}async[_0x8b89eb(0x43d)](_0x577619,_0x8dec2c,_0x4cd235){const _0x31738f=_0x8b89eb;let _0x1f6683;try{if(_0x4cd235===y['ImageSourceTypeEnum'][_0x31738f(0x4b9)])_0x1f6683=await this[_0x31738f(0x533)][_0x31738f(0x275)](_0x8dec2c);else{if(_0x4cd235===y['ImageSourceTypeEnum'][_0x31738f(0x569)])try{_0x1f6683=await this['_urlImageService'][_0x31738f(0x275)](_0x8dec2c);}catch{_0x1f6683=_0x8dec2c;}else _0x1f6683=_0x8dec2c;}}catch(_0x349d57){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x349d57);return;}let _0x21df64=new window[(_0x31738f(0x2cb))]();_0x21df64[_0x31738f(0x2d1)]=()=>{const _0x301cdf=_0x31738f;this[_0x301cdf(0x533)][_0x301cdf(0x5da)](_0x8dec2c,_0x4cd235,_0x21df64),_0x577619[_0x301cdf(0x1f6)](_0x21df64);},_0x21df64['onerror']=()=>{const _0x5a3899=_0x31738f;console['error'](_0x5a3899(0x5e2),_0x8dec2c);},_0x21df64[_0x31738f(0x5f5)]=_0x1f6683;}};G=W([U(0x0,p[_0x8b89eb(0x5ba)]),U(0x1,(0x0,l['Inject'])(c[_0x8b89eb(0x450)])),U(0x2,(0x0,l[_0x8b89eb(0x3f0)])(l['LocaleService'])),U(0x3,p[_0x8b89eb(0x5b6)]),U(0x4,l[_0x8b89eb(0x1f8)])],G);let K=class extends l[_0x8b89eb(0x301)]{constructor(_0x1b7e93,_0x15f3f8,_0x3750e2,_0x4736d5,_0x2052fa,_0x1972c3){const _0x5ecd75=_0x8b89eb;super(),this[_0x5ecd75(0x56d)]=_0x1b7e93,this[_0x5ecd75(0x6b0)]=_0x15f3f8,this[_0x5ecd75(0x287)]=_0x3750e2,this[_0x5ecd75(0x26d)]=_0x4736d5,this[_0x5ecd75(0x395)]=_0x2052fa,this['_sheetDrawingShapeRenderController']=_0x1972c3,this[_0x5ecd75(0x30c)]();}[_0x8b89eb(0x30c)](){const _0x18f146=_0x8b89eb;this[_0x18f146(0x6e8)](),this[_0x18f146(0x553)](),this[_0x18f146(0x708)]();}[_0x8b89eb(0x6e8)](){const _0x2abcf2=_0x8b89eb;this[_0x2abcf2(0x37c)](this[_0x2abcf2(0x287)][_0x2abcf2(0x480)]['subscribe'](_0x529a1e=>{const _0x1427c5=_0x2abcf2;this[_0x1427c5(0x286)](_0x529a1e);}));}[_0x8b89eb(0x553)](){const _0x2cb27e=_0x8b89eb;this[_0x2cb27e(0x37c)](this['_commandService'][_0x2cb27e(0x258)](_0x42e56f=>{const _0x26e815=_0x2cb27e;if(_0x42e56f['id']===c['InsertSheetsShapeMutation']['id']){var _0x2c1129;let {unitId:_0x241bbb,subUnitId:_0x3e8208,shapeId:_0x2db4c5}=_0x42e56f[_0x26e815(0x25e)],_0x1109f7=this['_getSceneAndTransformerByDrawingSearch'](_0x241bbb);if(_0x1109f7==null)return;let {scene:_0x298cb3}=_0x1109f7,_0xe1d001=(0x0,p['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x241bbb,'subUnitId':_0x3e8208,'drawingId':_0x2db4c5}),_0x413d48=_0x298cb3[_0x26e815(0x5db)](_0xe1d001);if(!((_0x2c1129=this[_0x26e815(0x6b0)][_0x26e815(0x2b0)](_0x241bbb))!=null&&_0x2c1129[_0x26e815(0x6fa)](_['SheetSkeletonManagerService'])[_0x26e815(0x730)](_0x3e8208)))return!0x1;if(_0x413d48)return;this[_0x26e815(0x286)]([{'unitId':_0x241bbb,'subUnitId':_0x3e8208,'drawingId':_0x2db4c5}]);}}));}[_0x8b89eb(0x708)](){const _0x4b558d=_0x8b89eb;this[_0x4b558d(0x37c)](this[_0x4b558d(0x287)][_0x4b558d(0x65d)][_0x4b558d(0x4ee)](_0x3174e4=>{const _0x17f36f=_0x4b558d;_0x3174e4[_0x17f36f(0x291)](_0x1de6a1=>{const _0x2a1421=_0x17f36f;let {unitId:_0x4817bb,subUnitId:_0x3fee01,drawingId:_0x2e8453}=_0x1de6a1,_0x31e322=this[_0x2a1421(0x287)][_0x2a1421(0x34e)](_0x1de6a1);if(_0x31e322==null)return;let {transform:_0x2b362e,drawingType:_0x546770,srcRect:_0x3151fc,prstGeom:_0x3c011d}=_0x31e322;if(_0x546770!==l[_0x2a1421(0x638)]['DRAWING_SHAPE'])return;let _0x4ec965=this[_0x2a1421(0x306)](_0x4817bb);if(_0x4ec965==null)return;let {scene:_0x394fa1,transformer:_0x41c2d8}=_0x4ec965;if(_0x2b362e==null)return!0x0;let _0x2773fe=(0x0,p[_0x2a1421(0x715)])({'unitId':_0x4817bb,'subUnitId':_0x3fee01,'drawingId':_0x2e8453}),_0x338e95=_0x394fa1[_0x2a1421(0x5db)](_0x2773fe);if(_0x338e95==null)return!0x0;_0x338e95[_0x2a1421(0x6aa)](_0x3151fc),_0x338e95[_0x2a1421(0x6d2)](_0x3c011d);});}));}[_0x8b89eb(0x6e9)](_0x14f57c,_0x3a4ada){const _0xe90e1f=_0x8b89eb;let {unitId:_0x4d2601,subUnitId:_0x91135c,drawingId:_0xbba6b0}=_0x14f57c,_0x2b70c9=this[_0xe90e1f(0x306)](_0x4d2601);if(_0x2b70c9==null)return;let {scene:_0x416951}=_0x2b70c9,_0x499fcb=(0x0,p[_0xe90e1f(0x715)])({'unitId':_0x4d2601,'subUnitId':_0x91135c,'drawingId':_0xbba6b0}),_0x43a7c3=_0x416951[_0xe90e1f(0x5db)](_0x499fcb);_0x43a7c3!=null&&_0x43a7c3[_0xe90e1f(0x1f6)](_0x3a4ada);}[_0x8b89eb(0x286)](_0x44dd1a){const _0x4470d9=_0x8b89eb;_0x44dd1a[_0x4470d9(0x291)](async _0x5af51b=>{const _0x2bd80a=_0x4470d9;var _0x330ca6;let {unitId:_0xcd3b91,subUnitId:_0x7081ec}=_0x5af51b,_0x4798de=this[_0x2bd80a(0x306)](_0xcd3b91),_0x434faa=(_0x330ca6=(0x0,S[_0x2bd80a(0x524)])(this[_0x2bd80a(0x26d)],_0xcd3b91))==null?void 0x0:_0x330ca6[_0x2bd80a(0x439)];if(_0x4798de==null||_0x434faa!==_0x7081ec)return;let _0x32f915=this[_0x2bd80a(0x287)][_0x2bd80a(0x34e)](_0x5af51b);if(_0x32f915!=null&&_0x32f915[_0x2bd80a(0x6e7)]===l[_0x2bd80a(0x638)][_0x2bd80a(0x73a)]){if((0x0,y[_0x2bd80a(0x6a8)])((_0x32f915['data']||{})[_0x2bd80a(0x2c7)])){let _0x186e8a=_0x32f915[_0x2bd80a(0x5f1)];_0x186e8a&&(_0x32f915[_0x2bd80a(0x5f1)]={..._0x186e8a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2bd80a(0x287)][_0x2bd80a(0x532)]([_0x32f915]),this[_0x2bd80a(0x4da)][_0x2bd80a(0x73f)](_0x32f915,_0x4798de[_0x2bd80a(0x272)]);}});}['_getSceneAndTransformerByDrawingSearch'](_0x3e2b63){const _0x3241b5=_0x8b89eb;if(_0x3e2b63==null)return;let _0x188efc=this[_0x3241b5(0x6b0)][_0x3241b5(0x2b0)](_0x3e2b63),_0x3fdd1e=_0x188efc==null?void 0x0:_0x188efc[_0x3241b5(0x272)];return _0x3fdd1e==null?null:{'scene':_0x3fdd1e,'transformer':_0x3fdd1e[_0x3241b5(0x4e5)]()};}};K=W([U(0x0,l['ICommandService']),U(0x1,m['IRenderManagerService']),U(0x2,p[_0x8b89eb(0x5ba)]),U(0x3,l['IUniverInstanceService']),U(0x4,(0x0,l[_0x8b89eb(0x3f0)])(S[_0x8b89eb(0x3d8)])),U(0x5,(0x0,l['Inject'])(G))],K);function q(_0x117d5b){const _0x3042b6=_0x8b89eb;var _0x9b6365,_0x4f51ad,_0x5d2284,_0x36f8ad,_0x5a4b1a,_0x541d57,_0x3ceddc,_0x4bd45b,_0x25dbbe,_0x4b3a17,_0x476edd,_0x25530d,_0x2bfbc2;let {unitId:_0x2cb98a,subUnitId:_0x358df7,shapeId:_0x10b2ef,shapeData:_0x354030,disableShapeOption:_0x45b9bd}=_0x117d5b,_0x147d7c=(0x0,v['useDependency'])(l['LocaleService']),_0x1956eb=(0x0,v[_0x3042b6(0x4f9)])(l[_0x3042b6(0x6d6)]),_0x491a0c=(0x0,v[_0x3042b6(0x4f9)])(l['IContextService']),_0x323f37=(0x0,v['useDependency'])(K),_0x5c9d87=(0x0,v[_0x3042b6(0x4f9)])(p['IImageIoService']),_0x27795b=(0x0,x[_0x3042b6(0x747)])(null),_0x31d0de=_0x354030[_0x3042b6(0x29e)],_0x2ca6a1=!!(_0x31d0de!=null&&_0x31d0de[_0x3042b6(0x732)]),[_0x17107e,_0x1655bc]=(0x0,x['useState'])((_0x9b6365=_0x31d0de==null?void 0x0:_0x31d0de['imageOpacity'])==null?0x1:_0x9b6365),[_0x4c1aa0,_0x39ebdc]=(0x0,x[_0x3042b6(0x449)])((_0x4f51ad=_0x31d0de==null?void 0x0:_0x31d0de[_0x3042b6(0x2be)])==null?y[_0x3042b6(0x644)][_0x3042b6(0x200)]:_0x4f51ad),[_0x2f8cdd,_0x4b4eee]=(0x0,x[_0x3042b6(0x449)])((_0x5d2284=_0x31d0de==null?void 0x0:_0x31d0de[_0x3042b6(0x468)])==null?!0x1:_0x5d2284),[_0xe2d03c,_0x253ae2]=(0x0,x[_0x3042b6(0x449)])((_0x36f8ad=_0x31d0de==null||(_0x5a4b1a=_0x31d0de[_0x3042b6(0x578)])==null?void 0x0:_0x5a4b1a[_0x3042b6(0x6c5)])==null?0x0:_0x36f8ad),[_0x5ee66b,_0xa88e18]=(0x0,x['useState'])((_0x541d57=_0x31d0de==null||(_0x3ceddc=_0x31d0de[_0x3042b6(0x578)])==null?void 0x0:_0x3ceddc[_0x3042b6(0x1f2)])==null?0x0:_0x541d57),[_0x289f9b,_0x1fba1b]=(0x0,x[_0x3042b6(0x449)])((_0x4bd45b=_0x31d0de==null||(_0x25dbbe=_0x31d0de[_0x3042b6(0x578)])==null?void 0x0:_0x25dbbe[_0x3042b6(0x2a3)])==null?0x1:_0x4bd45b),[_0x5aebb6,_0x1db57b]=(0x0,x[_0x3042b6(0x449)])((_0x4b3a17=_0x31d0de==null||(_0x476edd=_0x31d0de[_0x3042b6(0x578)])==null?void 0x0:_0x476edd[_0x3042b6(0x45f)])==null?0x1:_0x4b3a17),[_0xfbaae1,_0x4e0b49]=(0x0,x['useState'])((_0x25530d=_0x31d0de==null||(_0x2bfbc2=_0x31d0de[_0x3042b6(0x578)])==null?void 0x0:_0x2bfbc2[_0x3042b6(0x223)])==null?'tl':_0x25530d),_0x3438ed=_0x4c1aa0===y[_0x3042b6(0x644)][_0x3042b6(0x5ae)],_0x54f027=Math['round']((0x1-_0x17107e)*0x64),_0x25262c=Math[_0x3042b6(0x71a)](_0x289f9b*0x64),_0x12d463=Math[_0x3042b6(0x71a)](_0x5aebb6*0x64),_0x234d9a=_0x35e336=>_0x147d7c['t'](_0x35e336),_0x536303=[{'label':_0x234d9a('sheets-shape.fill.picture.align.tl'),'value':'tl'},{'label':_0x234d9a(_0x3042b6(0x332)),'value':'t'},{'label':_0x234d9a(_0x3042b6(0x3bb)),'value':'tr'},{'label':_0x234d9a('sheets-shape.fill.picture.align.l'),'value':'l'},{'label':_0x234d9a(_0x3042b6(0x385)),'value':_0x3042b6(0x3df)},{'label':_0x234d9a('sheets-shape.fill.picture.align.r'),'value':'r'},{'label':_0x234d9a(_0x3042b6(0x4b2)),'value':'bl'},{'label':_0x234d9a(_0x3042b6(0x66f)),'value':'b'},{'label':_0x234d9a('sheets-shape.fill.picture.align.br'),'value':'br'}],_0x2d4f2c=_0xe426ac=>{V(_0x1956eb,_0x2cb98a,_0x358df7,_0x10b2ef,{'oldShapeData':{'fill':_0x31d0de?{..._0x31d0de}:void 0x0}},{'fill':{..._0x31d0de,..._0xe426ac}});},_0x2ff2d5=_0x696434=>{const _0x389593=_0x3042b6;_0x2d4f2c({'imageTile':{..._0x31d0de==null?void 0x0:_0x31d0de[_0x389593(0x578)],..._0x696434}});},_0x4bc0ca=()=>{const _0x4516d2=_0x3042b6;var _0x4a1e16;return(_0x4a1e16=_0x27795b[_0x4516d2(0x74e)])==null?void 0x0:_0x4a1e16['click']();},_0xa88c98=async _0x4b8852=>{const _0x393fa6=_0x3042b6;var _0x27395e;let _0x488df9=(_0x27395e=_0x4b8852['target']['files'])==null?void 0x0:_0x27395e[0x0];if(!_0x488df9)return;_0x4b8852[_0x393fa6(0x56b)][_0x393fa6(0x21d)]='';let _0x3e9191=await _0x5c9d87[_0x393fa6(0x351)](_0x488df9);if(_0x3e9191==null)return;let {imageSourceType:_0x3ca438,source:_0xb5ee4e,base64Cache:_0xe5e497}=_0x3e9191,{image:_0x565aa8}=await(0x0,p[_0x393fa6(0x66d)])(_0xe5e497||'');_0x5c9d87[_0x393fa6(0x5da)](_0xb5ee4e,_0x3ca438,_0x565aa8),V(_0x1956eb,_0x2cb98a,_0x358df7,_0x10b2ef,{'oldShapeData':{'fill':_0x31d0de?{..._0x31d0de}:void 0x0}},{'fill':{..._0x31d0de,'fillType':y['ShapeFillEnum']['PictureFill'],'fillImageSource':_0xb5ee4e,'fillImageSourceType':_0x3ca438}}),_0x323f37[_0x393fa6(0x6e9)]({'unitId':_0x2cb98a,'subUnitId':_0x358df7,'drawingId':_0x10b2ef},_0x565aa8);},_0x540c9d=_0x3042b6(0x22f),_0x3c74f3=_0x3042b6(0x414);return(0x0,C[_0x3042b6(0x44e)])('div',{'className':_0x3042b6(0x454),'children':[(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3042b6(0x24f),'children':[(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x2f9),{'className':_0x540c9d,'children':_0x234d9a('sheets-shape.fill.picture.source')}),(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3042b6(0x65c),'children':[(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x65f),{'ref':_0x27795b,'type':'file','accept':_0x3042b6(0x262),'className':_0x3042b6(0x472),'onChange':_0xa88c98}),(0x0,C[_0x3042b6(0x44e)])('div',{'className':'group\x20univer-relative\x20univer-inline-block','children':[(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x750),{'type':_0x3042b6(0x750),'disabled':_0x45b9bd,'className':_0x3042b6(0x6e1),'onClick':_0x4bc0ca,'children':(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x2f9),{'children':[_0x234d9a(_0x3042b6(0x1fa)),'\x20']})}),_0x2ca6a1&&(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x308),{'className':_0x3042b6(0x392),'children':(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x354),{'src':_0x31d0de==null?void 0x0:_0x31d0de[_0x3042b6(0x732)],'alt':'','className':_0x3042b6(0x701)})})]})]})]}),(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C[_0x3042b6(0x45d)])('span',{'className':_0x540c9d,'children':_0x234d9a(_0x3042b6(0x3da))}),(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x308),{'className':_0x3042b6(0x213),'children':(0x0,C[_0x3042b6(0x45d)])(b[_0x3042b6(0x692)],{'className':_0x3042b6(0x4f5),'value':_0x54f027,'disabled':_0x45b9bd,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x565a8e=>_0x565a8e+'%','parser':_0x2ae344=>(_0x2ae344==null?void 0x0:_0x2ae344['replace']('%',''))||'','onChange':_0x442114=>{const _0xeceb22=_0x3042b6;let _0xb5af22=(0x64-Math['max'](0x0,Math['min'](0x64,_0x442114==null?0x0:_0x442114)))/0x64;_0x1655bc(_0xb5af22),_0x2d4f2c({'imageOpacity':_0xb5af22}),_0x491a0c[_0xeceb22(0x6a0)](l[_0xeceb22(0x74b)],!0x1);},'onFocus':()=>_0x491a0c[_0x3042b6(0x6a0)](l['FOCUSING_PANEL_EDITOR'],!0x0),'onBlur':()=>_0x491a0c['setContextValue'](l[_0x3042b6(0x74b)],!0x1)})})]}),(0x0,C[_0x3042b6(0x45d)])(b['Checkbox'],{'checked':_0x3438ed,'disabled':_0x45b9bd,'onChange':_0xbbdf78=>{const _0x38767e=_0x3042b6;let _0x2289ac=_0xbbdf78?y[_0x38767e(0x644)]['Tile']:y['ImageFillModeEnum'][_0x38767e(0x200)];_0x39ebdc(_0x2289ac),_0x2d4f2c({'imageFillMode':_0x2289ac});},'children':(0x0,C['jsx'])(_0x3042b6(0x2f9),{'className':_0x3042b6(0x482),'children':_0x234d9a(_0x3042b6(0x3c1))})}),_0x3438ed&&(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3042b6(0x521),'children':[(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C[_0x3042b6(0x45d)])('span',{'className':_0x540c9d,'children':_0x234d9a('sheets-shape.fill.picture.offsetX')}),(0x0,C[_0x3042b6(0x45d)])('div',{'className':_0x3042b6(0x213),'children':(0x0,C[_0x3042b6(0x45d)])(b[_0x3042b6(0x692)],{'className':_0x3042b6(0x4f5),'value':_0xe2d03c,'disabled':_0x45b9bd,'step':0x1,'onChange':_0x54fde8=>{_0x2ff2d5({'offsetX':_0x54fde8==null?0x0:_0x54fde8}),_0x253ae2(_0x54fde8==null?0x0:_0x54fde8);},'onFocus':()=>_0x491a0c[_0x3042b6(0x6a0)](l['FOCUSING_PANEL_EDITOR'],!0x0),'onBlur':()=>_0x491a0c[_0x3042b6(0x6a0)](l['FOCUSING_PANEL_EDITOR'],!0x1)})})]}),(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C['jsx'])(_0x3042b6(0x2f9),{'className':_0x540c9d,'children':_0x234d9a(_0x3042b6(0x702))}),(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x308),{'className':_0x3042b6(0x213),'children':(0x0,C[_0x3042b6(0x45d)])(b[_0x3042b6(0x692)],{'className':_0x3042b6(0x4f5),'value':_0x5ee66b,'disabled':_0x45b9bd,'step':0x1,'onChange':_0x1228ca=>{_0x2ff2d5({'offsetY':_0x1228ca==null?0x0:_0x1228ca}),_0xa88e18(_0x1228ca==null?0x0:_0x1228ca);},'onFocus':()=>_0x491a0c[_0x3042b6(0x6a0)](l[_0x3042b6(0x74b)],!0x0),'onBlur':()=>_0x491a0c[_0x3042b6(0x6a0)](l[_0x3042b6(0x74b)],!0x1)})})]}),(0x0,C['jsxs'])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C[_0x3042b6(0x45d)])('span',{'className':_0x540c9d,'children':_0x234d9a(_0x3042b6(0x491))}),(0x0,C[_0x3042b6(0x45d)])('div',{'className':_0x3042b6(0x213),'children':(0x0,C[_0x3042b6(0x45d)])(b[_0x3042b6(0x692)],{'className':_0x3042b6(0x4f5),'value':_0x25262c,'disabled':_0x45b9bd,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x2650da=>_0x2650da+'%','parser':_0x3c9309=>(_0x3c9309==null?void 0x0:_0x3c9309[_0x3042b6(0x389)]('%',''))||'','onChange':_0x139cb2=>{const _0x56f2b8=_0x3042b6;let _0x4fe728=Math[_0x56f2b8(0x20c)](0.01,(_0x139cb2==null?0x64:_0x139cb2)/0x64);_0x1fba1b(_0x4fe728),_0x2ff2d5({'scaleX':_0x4fe728}),_0x491a0c[_0x56f2b8(0x6a0)](l[_0x56f2b8(0x74b)],!0x1);},'onFocus':()=>_0x491a0c[_0x3042b6(0x6a0)](l[_0x3042b6(0x74b)],!0x0),'onBlur':()=>_0x491a0c['setContextValue'](l['FOCUSING_PANEL_EDITOR'],!0x1)})})]}),(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x2f9),{'className':_0x540c9d,'children':_0x234d9a(_0x3042b6(0x400))}),(0x0,C[_0x3042b6(0x45d)])('div',{'className':_0x3042b6(0x213),'children':(0x0,C[_0x3042b6(0x45d)])(b['InputNumber'],{'className':_0x3042b6(0x4f5),'value':_0x12d463,'disabled':_0x45b9bd,'min':0x1,'max':0x3e8,'step':0xa,'formatter':_0x5f5394=>_0x5f5394+'%','parser':_0x36a158=>(_0x36a158==null?void 0x0:_0x36a158['replace']('%',''))||'','onChange':_0x15dff8=>{const _0x208622=_0x3042b6;let _0x999631=Math[_0x208622(0x20c)](0.01,(_0x15dff8==null?0x64:_0x15dff8)/0x64);_0x1db57b(_0x999631),_0x2ff2d5({'scaleY':_0x999631}),_0x491a0c[_0x208622(0x6a0)](l['FOCUSING_PANEL_EDITOR'],!0x1);},'onFocus':()=>_0x491a0c[_0x3042b6(0x6a0)](l[_0x3042b6(0x74b)],!0x0),'onBlur':()=>_0x491a0c['setContextValue'](l[_0x3042b6(0x74b)],!0x1)})})]}),(0x0,C[_0x3042b6(0x44e)])(_0x3042b6(0x308),{'className':_0x3c74f3,'children':[(0x0,C['jsx'])(_0x3042b6(0x2f9),{'className':_0x540c9d,'children':_0x234d9a(_0x3042b6(0x47b))}),(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x308),{'className':_0x3042b6(0x293),'children':(0x0,C[_0x3042b6(0x45d)])(b[_0x3042b6(0x322)],{'className':_0x3042b6(0x4f5),'value':_0xfbaae1,'options':_0x536303,'disabled':_0x45b9bd,'onChange':_0x65de57=>{_0x4e0b49(_0x65de57),_0x2ff2d5({'alignment':_0x65de57});}})})]})]}),(0x0,C[_0x3042b6(0x45d)])(b['Checkbox'],{'checked':_0x2f8cdd,'disabled':_0x45b9bd,'onChange':_0x2b8e50=>{_0x4b4eee(_0x2b8e50),_0x2d4f2c({'imageRotateWithShape':_0x2b8e50});},'children':(0x0,C[_0x3042b6(0x45d)])(_0x3042b6(0x2f9),{'className':_0x3042b6(0x482),'children':_0x234d9a(_0x3042b6(0x360))})})]});}function ae(_0x4b2b25){const _0x15b84f=_0x8b89eb;var _0x542ef1,_0x146d08,_0x47d5ab;let _0x20fbec=(0x0,v[_0x15b84f(0x4f9)])(l[_0x15b84f(0x381)]),_0x360ce9=(0x0,v[_0x15b84f(0x4f9)])(l[_0x15b84f(0x6d6)]),_0x1903c6=(0x0,v[_0x15b84f(0x4f9)])(l[_0x15b84f(0x538)]),{shapeData:_0x1bdbcf,isLineShape:_0x421331,unitId:_0x504f35,subUnitId:_0x2e3a33,shapeId:_0x4aa44a,disableShapeOption:_0x1846bd}=_0x4b2b25,[_0x43ba7d,_0x53465c]=(0x0,x[_0x15b84f(0x449)])(((_0x542ef1=_0x1bdbcf[_0x15b84f(0x29e)])==null?void 0x0:_0x542ef1[_0x15b84f(0x234)])||y[_0x15b84f(0x656)][_0x15b84f(0x3ef)]),[_0x382b17,_0x568430]=(0x0,x[_0x15b84f(0x449)])(((_0x146d08=_0x1bdbcf['fill'])==null?void 0x0:_0x146d08[_0x15b84f(0x319)])||y[_0x15b84f(0x619)]['fill']),[_0x47d531,_0x525a2d]=(0x0,x[_0x15b84f(0x449)])(((_0x47d5ab=_0x1bdbcf[_0x15b84f(0x29e)])==null?void 0x0:_0x47d5ab[_0x15b84f(0x5c9)])||0x1),[_0x356a83,_0x174bb2]=(0x0,x[_0x15b84f(0x449)])(!0x1);if(_0x421331)return null;let _0x599020=0x64-_0x47d531*0x64;return(0x0,C['jsxs'])(_0x15b84f(0x308),{'className':_0x15b84f(0x58e),'children':[(0x0,C['jsxs'])(b[_0x15b84f(0x543)],{'value':_0x43ba7d,'disabled':_0x1846bd,'onChange':_0x50eead=>{const _0x5e74ca=_0x15b84f;var _0x2974d1;V(_0x360ce9,_0x504f35,_0x2e3a33,_0x4aa44a,{'oldShapeData':{'fill':{'fillType':(_0x2974d1=_0x1bdbcf[_0x5e74ca(0x29e)])==null?void 0x0:_0x2974d1[_0x5e74ca(0x234)]}}},{'fill':{'fillType':_0x50eead}}),_0x53465c(_0x50eead);},'direction':_0x15b84f(0x32c),'children':[(0x0,C['jsx'])(b[_0x15b84f(0x336)],{'value':y[_0x15b84f(0x656)][_0x15b84f(0x551)],'children':(0x0,C['jsx'])(_0x15b84f(0x2f9),{'className':_0x15b84f(0x482),'children':_0x20fbec['t']('sheets-shape.fill.noFill')})}),(0x0,C[_0x15b84f(0x45d)])(b[_0x15b84f(0x336)],{'value':y['ShapeFillEnum']['SolidFill'],'children':(0x0,C['jsx'])('span',{'className':_0x15b84f(0x482),'children':_0x20fbec['t'](_0x15b84f(0x56c))})}),(0x0,C['jsx'])(b[_0x15b84f(0x336)],{'value':y[_0x15b84f(0x656)][_0x15b84f(0x561)],'children':(0x0,C['jsx'])(_0x15b84f(0x2f9),{'className':_0x15b84f(0x482),'children':_0x20fbec['t'](_0x15b84f(0x6da))})}),(0x0,C[_0x15b84f(0x45d)])(b[_0x15b84f(0x336)],{'value':y[_0x15b84f(0x656)]['PictureFill'],'children':(0x0,C[_0x15b84f(0x45d)])(_0x15b84f(0x2f9),{'className':_0x15b84f(0x482),'children':_0x20fbec['t'](_0x15b84f(0x1f9))})})]}),_0x43ba7d===y[_0x15b84f(0x656)][_0x15b84f(0x3ef)]&&(0x0,C[_0x15b84f(0x44e)])(_0x15b84f(0x308),{'className':_0x15b84f(0x3db),'children':[(0x0,C[_0x15b84f(0x44e)])(_0x15b84f(0x308),{'className':_0x15b84f(0x64a),'children':[(0x0,C[_0x15b84f(0x45d)])('span',{'className':_0x15b84f(0x629),'children':_0x20fbec['t']('sheets-shape.fill.color')}),(0x0,C[_0x15b84f(0x45d)])(b[_0x15b84f(0x33c)],{'disabled':_0x1846bd,'overlay':(0x0,C[_0x15b84f(0x45d)])(_0x15b84f(0x308),{'className':_0x15b84f(0x2df),'children':(0x0,C['jsx'])(b[_0x15b84f(0x6ba)],{'value':_0x382b17,'onChange':_0x357979=>{const _0x3d7afe=_0x15b84f;var _0x2e4ddb;V(_0x360ce9,_0x504f35,_0x2e3a33,_0x4aa44a,{'oldShapeData':{'fill':{'color':(_0x2e4ddb=_0x1bdbcf[_0x3d7afe(0x29e)])==null?void 0x0:_0x2e4ddb[_0x3d7afe(0x319)]}}},{'fill':{'color':_0x357979}}),_0x568430(_0x357979),_0x174bb2(!0x1);}})}),'open':_0x356a83,'onOpenChange':_0x174bb2,'children':(0x0,C[_0x15b84f(0x44e)])('a',{'className':_0x15b84f(0x602),'children':[(0x0,C[_0x15b84f(0x45d)])(g[_0x15b84f(0x49c)],{'className':_0x15b84f(0x479),'extend':{'colorChannel1':_0x382b17}}),(0x0,C[_0x15b84f(0x45d)])(g['MoreDownIcon'],{'className':(0x0,b['clsx'])(_0x15b84f(0x25f),{'univer-rotate-180':_0x356a83})})]})})]}),(0x0,C[_0x15b84f(0x44e)])(_0x15b84f(0x308),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,C[_0x15b84f(0x45d)])(_0x15b84f(0x2f9),{'className':_0x15b84f(0x22f),'children':_0x20fbec['t'](_0x15b84f(0x3da))}),(0x0,C['jsx'])(_0x15b84f(0x308),{'className':_0x15b84f(0x299),'children':(0x0,C[_0x15b84f(0x45d)])(_0x15b84f(0x308),{'className':_0x15b84f(0x213),'children':(0x0,C['jsx'])(b[_0x15b84f(0x692)],{'className':_0x15b84f(0x4f5),'value':_0x599020,'disabled':_0x1846bd,'min':0x0,'max':0x64,'step':0xa,'formatter':_0x113764=>_0x113764+'%','parser':_0x45d358=>(_0x45d358==null?void 0x0:_0x45d358['replace']('%',''))||'','onChange':_0x12fa33=>{const _0x5b0dcb=_0x15b84f;let _0x43da07=(0x64-Math[_0x5b0dcb(0x20c)](0x0,Math[_0x5b0dcb(0x70f)](0x64,_0x12fa33==null?0x0:_0x12fa33)))/0x64;_0x525a2d(_0x43da07),V(_0x360ce9,_0x504f35,_0x2e3a33,_0x4aa44a,{'oldShapeData':{'fill':{..._0x1bdbcf['fill'],'fillType':_0x43ba7d}}},{'fill':{..._0x1bdbcf['fill'],'fillType':_0x43ba7d,'opacity':_0x43da07}}),_0x1903c6[_0x5b0dcb(0x6a0)](l[_0x5b0dcb(0x74b)],!0x1);},'onFocus':()=>_0x1903c6['setContextValue'](l[_0x15b84f(0x74b)],!0x0),'onBlur':()=>{const _0x483e26=_0x15b84f;_0x1903c6[_0x483e26(0x6a0)](l[_0x483e26(0x74b)],!0x1);}})})})]})]}),_0x43ba7d===y[_0x15b84f(0x656)]['GradientFill']&&(0x0,C[_0x15b84f(0x45d)])(J,{'shapeData':_0x1bdbcf,'disableShapeOption':_0x1846bd,'onUpdate':_0x174e95=>{const _0x51f161=_0x15b84f;V(_0x360ce9,_0x504f35,_0x2e3a33,_0x4aa44a,{'oldShapeData':{'fill':{..._0x1bdbcf[_0x51f161(0x29e)]}}},{'fill':{..._0x1bdbcf[_0x51f161(0x29e)],..._0x174e95}});}}),_0x43ba7d===y['ShapeFillEnum'][_0x15b84f(0x455)]&&(0x0,C[_0x15b84f(0x45d)])(q,{'unitId':_0x504f35,'subUnitId':_0x2e3a33,'shapeId':_0x4aa44a,'shapeData':_0x1bdbcf,'disableShapeOption':_0x1846bd})]});}function oe(_0x218242){const _0xc14e2=_0x8b89eb;switch(_0x218242){case y[_0xc14e2(0x457)]['Linear']:return _0xc14e2(0x44b);case y[_0xc14e2(0x457)][_0xc14e2(0x639)]:return _0xc14e2(0x3d9);case y[_0xc14e2(0x457)][_0xc14e2(0x5d0)]:return _0xc14e2(0x641);case y[_0xc14e2(0x457)][_0xc14e2(0x2f7)]:return _0xc14e2(0x35c);default:return _0xc14e2(0x44b);}}function se(_0x28e367){const _0x72dbe0=_0x8b89eb;switch(_0x28e367){case _0x72dbe0(0x44b):return y['ShapeGradientTypeEnum'][_0x72dbe0(0x6ae)];case'radial':return y[_0x72dbe0(0x457)][_0x72dbe0(0x639)];case _0x72dbe0(0x641):return y['ShapeGradientTypeEnum'][_0x72dbe0(0x5d0)];case _0x72dbe0(0x35c):return y[_0x72dbe0(0x457)][_0x72dbe0(0x2f7)];default:return y[_0x72dbe0(0x457)]['Linear'];}}function J(_0x3673dc){const _0x5866c4=_0x8b89eb;let {shapeData:_0x6cf60e,disableShapeOption:_0x1a968d,onUpdate:_0x19980f}=_0x3673dc,_0x23f9d0=(0x0,x[_0x5866c4(0x370)])(()=>{const _0x2a837e=_0x5866c4;var _0x36f0ea;let _0x2c4319=_0x6cf60e[_0x2a837e(0x29e)];return{'type':oe(_0x2c4319==null?void 0x0:_0x2c4319[_0x2a837e(0x368)]),'angle':(_0x36f0ea=_0x2c4319==null?void 0x0:_0x2c4319['gradientAngle'])==null?0x5a:_0x36f0ea,'stops':_0x2c4319!=null&&_0x2c4319[_0x2a837e(0x246)]&&_0x2c4319[_0x2a837e(0x246)]['length']>=0x2?_0x2c4319[_0x2a837e(0x246)][_0x2a837e(0x6b3)](_0x5e0bef=>({'color':_0x5e0bef[_0x2a837e(0x319)],'offset':_0x5e0bef[_0x2a837e(0x252)]*0x64})):[{'color':(_0x2c4319==null?void 0x0:_0x2c4319[_0x2a837e(0x319)])||_0x2a837e(0x1e9),'offset':0x0},{'color':_0x2a837e(0x6a5),'offset':0x64}]};},[_0x6cf60e[_0x5866c4(0x29e)]]);return(0x0,C[_0x5866c4(0x45d)])(_0x5866c4(0x308),{'className':_0x5866c4(0x5cc),'children':(0x0,C[_0x5866c4(0x45d)])(b[_0x5866c4(0x312)],{'value':_0x23f9d0,'onChange':_0x45e7e5=>{const _0x41d80d=_0x5866c4;let _0x5a2509=se(_0x45e7e5[_0x41d80d(0x50b)]),_0x5b151a=_0x45e7e5[_0x41d80d(0x42d)];_0x19980f({'gradientType':_0x5a2509,'gradientAngle':_0x5b151a,'gradientStops':_0x45e7e5['stops'][_0x41d80d(0x6b3)](_0x3b1f26=>({'color':_0x3b1f26[_0x41d80d(0x319)],'position':_0x3b1f26[_0x41d80d(0x67d)]/0x64}))});}})});}function ce(_0x2fe94b){const _0x4c57a6=_0x8b89eb;var _0xe398cf,_0x39c404,_0x2e2978,_0x5403fd,_0x30b205,_0x51a4a3,_0x45f5a5,_0x2d8667,_0x13bb73,_0x3e8b75,_0x4ba20f,_0x3509bf,_0x227da8,_0x1c605e,_0x58efee,_0x2cf2ce;let _0x2bf51a=(0x0,v['useDependency'])(l['LocaleService']),_0x5914fb=(0x0,v[_0x4c57a6(0x4f9)])(l[_0x4c57a6(0x6d6)]),_0x435a52=(0x0,v[_0x4c57a6(0x4f9)])(l[_0x4c57a6(0x538)]),{shapeData:_0xf66509,isLineShape:_0x44240b,unitId:_0x3fbaed,subUnitId:_0x1d6714,shapeId:_0x3c0c24,disableShapeOption:_0x1c08be}=_0x2fe94b,_0x106293=_0xf66509[_0x4c57a6(0x659)],[_0x14fefd,_0x2ce6b8]=(0x0,x[_0x4c57a6(0x449)])((_0xe398cf=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x3a9)])==null?y['ShapeLineTypeEnum'][_0x4c57a6(0x43c)]:_0xe398cf),[_0xfa9077,_0x24bb6c]=(0x0,x[_0x4c57a6(0x449)])((_0x39c404=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x319)])==null?y[_0x4c57a6(0x619)][_0x4c57a6(0x659)]:_0x39c404),[_0x541525,_0x5a6137]=(0x0,x['useState'])((_0x2e2978=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x5c9)])==null?0x1:_0x2e2978),[_0x473119,_0x448344]=(0x0,x['useState'])((_0x5403fd=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x497)])==null?y[_0x4c57a6(0x619)][_0x4c57a6(0x59f)]:_0x5403fd),[_0x5ced37,_0x321a5b]=(0x0,x[_0x4c57a6(0x449)])((_0x30b205=_0x106293==null?void 0x0:_0x106293['dashType'])==null?y['ShapeLineDashEnum']['Solid']:_0x30b205),[_0x194345,_0x2c8409]=(0x0,x['useState'])((_0x51a4a3=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x3ac)])==null?y[_0x4c57a6(0x606)]['Flat']:_0x51a4a3),[_0x3cad50,_0x25f633]=(0x0,x[_0x4c57a6(0x449)])((_0x45f5a5=_0x106293==null?void 0x0:_0x106293[_0x4c57a6(0x3ea)])==null?y[_0x4c57a6(0x5c2)][_0x4c57a6(0x2bc)]:_0x45f5a5),[_0x373812,_0x5815e6]=(0x0,x[_0x4c57a6(0x449)])((_0x2d8667=_0x106293==null?void 0x0:_0x106293['sketchType'])==null?y['ShapeSketchTypeEnum']['None']:_0x2d8667),_0x872fea=_0xf66509,[_0x3c245a,_0x4fa0b3]=(0x0,x[_0x4c57a6(0x449)])((_0x13bb73=(_0x3e8b75=_0x872fea['ln'])==null||(_0x3e8b75=_0x3e8b75['startArrow'])==null?void 0x0:_0x3e8b75[_0x4c57a6(0x50b)])==null?y[_0x4c57a6(0x423)]['None']:_0x13bb73),[_0x1b0669,_0x31bbf1]=(0x0,x[_0x4c57a6(0x449)])((_0x4ba20f=(_0x3509bf=_0x872fea['ln'])==null||(_0x3509bf=_0x3509bf[_0x4c57a6(0x749)])==null?void 0x0:_0x3509bf[_0x4c57a6(0x4c9)])==null?y[_0x4c57a6(0x58d)][_0x4c57a6(0x3f5)]:_0x4ba20f),[_0x4e8d95,_0x211b81]=(0x0,x['useState'])((_0x227da8=(_0x1c605e=_0x872fea['ln'])==null||(_0x1c605e=_0x1c605e[_0x4c57a6(0x6b4)])==null?void 0x0:_0x1c605e[_0x4c57a6(0x50b)])==null?y[_0x4c57a6(0x423)]['None']:_0x227da8),[_0x16a98f,_0x412eef]=(0x0,x[_0x4c57a6(0x449)])((_0x58efee=(_0x2cf2ce=_0x872fea['ln'])==null||(_0x2cf2ce=_0x2cf2ce[_0x4c57a6(0x6b4)])==null?void 0x0:_0x2cf2ce[_0x4c57a6(0x4c9)])==null?y[_0x4c57a6(0x58d)]['Medium']:_0x58efee),[_0x2a7757,_0x2d812c]=(0x0,x[_0x4c57a6(0x449)])(!0x1),_0x359108=0x64-_0x541525*0x64,_0x4cea5f=[{'label':_0x2bf51a['t'](_0x4c57a6(0x4d4)),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x4ed)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x2ad)),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x2af)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x25b)),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x44c)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x3c2)),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x525)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x315)),'value':String(y[_0x4c57a6(0x303)]['DashDot'])},{'label':_0x2bf51a['t'](_0x4c57a6(0x41e)),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x238)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x53c)),'value':String(y[_0x4c57a6(0x303)]['LongDashDot'])},{'label':_0x2bf51a['t']('sheets-shape.line.dashType.longDashDotDot'),'value':String(y[_0x4c57a6(0x303)][_0x4c57a6(0x21a)])}],_0x350044=[{'label':_0x2bf51a['t'](_0x4c57a6(0x4a2)),'value':String(y['ShapeLineCapEnum'][_0x4c57a6(0x649)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x4ca)),'value':String(y[_0x4c57a6(0x606)][_0x4c57a6(0x244)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x2b9)),'value':String(y[_0x4c57a6(0x606)][_0x4c57a6(0x440)])}],_0x56f902=[{'label':_0x2bf51a['t'](_0x4c57a6(0x693)),'value':String(y[_0x4c57a6(0x27c)][_0x4c57a6(0x30d)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x260)),'value':String(y['ShapeSketchTypeEnum'][_0x4c57a6(0x45a)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x675)),'value':String(y[_0x4c57a6(0x27c)]['Freehand'])},{'label':_0x2bf51a['t'](_0x4c57a6(0x43b)),'value':String(y[_0x4c57a6(0x27c)][_0x4c57a6(0x540)])}],_0x27ad82=[{'label':_0x2bf51a['t']('sheets-shape.line.joinType.miter'),'value':String(y[_0x4c57a6(0x5c2)][_0x4c57a6(0x2bc)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x717)),'value':String(y[_0x4c57a6(0x5c2)][_0x4c57a6(0x244)])},{'label':_0x2bf51a['t']('sheets-shape.line.joinType.bevel'),'value':String(y['ShapeLineJoinEnum']['Bevel'])}],_0x51ac6c=[{'label':_0x2bf51a['t'](_0x4c57a6(0x5b0)),'value':String(y[_0x4c57a6(0x423)][_0x4c57a6(0x30d)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x35e)),'value':String(y[_0x4c57a6(0x423)][_0x4c57a6(0x6c2)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x28a)),'value':String(y[_0x4c57a6(0x423)][_0x4c57a6(0x74c)])},{'label':_0x2bf51a['t']('sheets-shape.line.arrowType.stealthArrow'),'value':String(y[_0x4c57a6(0x423)][_0x4c57a6(0x64f)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x687)),'value':String(y['ShapeArrowTypeEnum'][_0x4c57a6(0x64c)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x37a)),'value':String(y['ShapeArrowTypeEnum'][_0x4c57a6(0x4fe)])}],_0xdb2e84=[{'label':_0x2bf51a['t']('sheets-shape.line.arrowSize.small'),'value':String(y[_0x4c57a6(0x58d)][_0x4c57a6(0x655)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x5a8)),'value':String(y[_0x4c57a6(0x58d)][_0x4c57a6(0x3f5)])},{'label':_0x2bf51a['t'](_0x4c57a6(0x4f6)),'value':String(y[_0x4c57a6(0x58d)][_0x4c57a6(0x382)])}];return(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x58e),'children':[(0x0,C[_0x4c57a6(0x44e)])(b[_0x4c57a6(0x543)],{'value':String(_0x14fefd),'disabled':_0x1c08be,'onChange':_0x255bc4=>{const _0x4c7fc5=_0x4c57a6;var _0x47f37e;_0x2ce6b8(Number(_0x255bc4)),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'lineStrokeType':(_0x47f37e=_0xf66509['stroke'])==null?void 0x0:_0x47f37e[_0x4c7fc5(0x3a9)]}}},{'stroke':{'lineStrokeType':Number(_0x255bc4)}});},'direction':_0x4c57a6(0x32c),'children':[(0x0,C['jsx'])(b[_0x4c57a6(0x336)],{'value':String(y[_0x4c57a6(0x2ba)][_0x4c57a6(0x666)]),'children':(0x0,C[_0x4c57a6(0x45d)])('span',{'className':_0x4c57a6(0x482),'children':_0x2bf51a['t'](_0x4c57a6(0x531))})}),(0x0,C[_0x4c57a6(0x45d)])(b[_0x4c57a6(0x336)],{'value':String(y['ShapeLineTypeEnum'][_0x4c57a6(0x43c)]),'children':(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':'univer-text-sm','children':_0x2bf51a['t'](_0x4c57a6(0x20a))})})]}),_0x14fefd!==y['ShapeLineTypeEnum'][_0x4c57a6(0x666)]&&(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','children':[(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x64a),'children':[(0x0,C['jsx'])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x53e))}),(0x0,C[_0x4c57a6(0x45d)])(b['Dropdown'],{'disabled':_0x1c08be,'overlay':(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x2df),'children':(0x0,C[_0x4c57a6(0x45d)])(b[_0x4c57a6(0x6ba)],{'value':_0xfa9077,'onChange':_0x2d9686=>{const _0xd29a45=_0x4c57a6;var _0x319d22;V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'color':(_0x319d22=_0xf66509['stroke'])==null?void 0x0:_0x319d22[_0xd29a45(0x319)]}}},{'stroke':{'color':_0x2d9686}}),_0x24bb6c(_0x2d9686),_0x2d812c(!0x1);}})}),'open':_0x2a7757,'onOpenChange':_0x2d812c,'children':(0x0,C['jsxs'])('a',{'className':_0x4c57a6(0x602),'children':[(0x0,C[_0x4c57a6(0x45d)])(g[_0x4c57a6(0x49c)],{'className':'univer-text-gray-500','extend':{'colorChannel1':_0xfa9077}}),(0x0,C['jsx'])(g[_0x4c57a6(0x340)],{'className':(0x0,b['clsx'])('univer-text-gray-600\x20univer-transition-transform',{'univer-rotate-180':_0x2a7757})})]})})]}),(0x0,C['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x22f),'children':_0x2bf51a['t'](_0x4c57a6(0x6ac))}),(0x0,C[_0x4c57a6(0x45d)])('div',{'className':_0x4c57a6(0x414),'children':(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':'univer-w-20\x20univer-flex-1','children':(0x0,C[_0x4c57a6(0x45d)])(b[_0x4c57a6(0x692)],{'className':'univer-w-full','value':_0x359108,'disabled':_0x1c08be,'min':0x0,'max':0x64,'formatter':_0x10427f=>_0x10427f+'%','parser':_0x21dc78=>(_0x21dc78==null?void 0x0:_0x21dc78[_0x4c57a6(0x389)]('%',''))||'','onChange':_0x325c87=>{const _0x4c2185=_0x4c57a6;var _0x73c92e;let _0x503678=(0x64-Math['max'](0x0,Math['min'](0x64,_0x325c87==null?0x0:_0x325c87)))/0x64;_0x5a6137(_0x503678),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'opacity':(_0x73c92e=_0xf66509[_0x4c2185(0x659)])==null?void 0x0:_0x73c92e[_0x4c2185(0x5c9)]}}},{'stroke':{'opacity':_0x503678}}),_0x435a52[_0x4c2185(0x6a0)](l[_0x4c2185(0x74b)],!0x1);},'onFocus':()=>_0x435a52[_0x4c57a6(0x6a0)](l['FOCUSING_PANEL_EDITOR'],!0x0),'onBlur':_0x25d9f4=>{const _0x4470e5=_0x4c57a6;_0x435a52[_0x4470e5(0x6a0)](l[_0x4470e5(0x74b)],!0x1);}})})})]}),(0x0,C['jsxs'])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x414),'children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t']('sheets-shape.line.width')}),(0x0,C[_0x4c57a6(0x45d)])('div',{'className':_0x4c57a6(0x213),'children':(0x0,C['jsx'])(b[_0x4c57a6(0x692)],{'className':_0x4c57a6(0x4f5),'disabled':_0x1c08be,'value':_0x473119,'min':0.25,'max':0x64,'step':0.25,'formatter':_0x30bd09=>_0x30bd09+_0x4c57a6(0x3f1),'parser':_0x5f498e=>(_0x5f498e==null?void 0x0:_0x5f498e['replace'](_0x4c57a6(0x3f1),''))||'','onChange':_0x39b069=>{const _0x38131f=_0x4c57a6;if(!Number[_0x38131f(0x5a4)](_0x39b069)&&_0x39b069!==null){var _0x3dbb29;V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'width':(_0x3dbb29=_0xf66509[_0x38131f(0x659)])==null?void 0x0:_0x3dbb29['width']}}},{'stroke':{'width':_0x39b069}});}_0x435a52['setContextValue'](l['FOCUSING_PANEL_EDITOR'],!0x1);},'onFocus':()=>_0x435a52[_0x4c57a6(0x6a0)](l[_0x4c57a6(0x74b)],!0x0),'onBlur':_0x4809c5=>{const _0x326a45=_0x4c57a6;_0x435a52[_0x326a45(0x6a0)](l[_0x326a45(0x74b)],!0x1);}})})]}),(0x0,C['jsxs'])('div',{'className':_0x4c57a6(0x64a),'children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t']('sheets-shape.line.dashType.title')}),(0x0,C[_0x4c57a6(0x45d)])('div',{'className':'univer-w-28','children':(0x0,C['jsx'])(b[_0x4c57a6(0x322)],{'className':_0x4c57a6(0x4f5),'value':String(_0x5ced37),'options':_0x4cea5f,'disabled':_0x1c08be,'onChange':_0x48649e=>{const _0x11f951=_0x4c57a6;var _0x1796c0;_0x321a5b(Number(_0x48649e)),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'dashType':(_0x1796c0=_0xf66509[_0x11f951(0x659)])==null?void 0x0:_0x1796c0[_0x11f951(0x4b5)]}}},{'stroke':{'dashType':Number(_0x48649e)}});}})})]}),(0x0,C[_0x4c57a6(0x44e)])('div',{'className':_0x4c57a6(0x64a),'children':[(0x0,C[_0x4c57a6(0x45d)])('span',{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x555))}),(0x0,C['jsx'])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x293),'children':(0x0,C[_0x4c57a6(0x45d)])(b['Select'],{'className':_0x4c57a6(0x4f5),'value':String(_0x194345),'options':_0x350044,'disabled':_0x1c08be,'onChange':_0x5dab20=>{const _0x1f041c=_0x4c57a6;var _0x56a222;_0x2c8409(Number(_0x5dab20)),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'capType':(_0x56a222=_0xf66509['stroke'])==null?void 0x0:_0x56a222[_0x1f041c(0x3ac)]}}},{'stroke':{'capType':Number(_0x5dab20)}});}})})]}),(0x0,C['jsxs'])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x64a),'children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x6ea))}),(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':'univer-w-28','children':(0x0,C['jsx'])(b[_0x4c57a6(0x322)],{'className':_0x4c57a6(0x4f5),'value':String(_0x3cad50),'options':_0x27ad82,'disabled':_0x1c08be,'onChange':_0x1e9854=>{const _0x1415ee=_0x4c57a6;var _0x2b52e0;_0x25f633(Number(_0x1e9854)),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'lineJoinType':(_0x2b52e0=_0xf66509['stroke'])==null?void 0x0:_0x2b52e0[_0x1415ee(0x3ea)]}}},{'stroke':{'lineJoinType':Number(_0x1e9854)}});}})})]}),!_0x44240b&&(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x64a),'children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2bf51a['t'](_0x4c57a6(0x39e))}),(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x293),'children':(0x0,C[_0x4c57a6(0x45d)])(b['Select'],{'className':'univer-w-full','value':String(_0x373812),'options':_0x56f902,'disabled':_0x1c08be,'onChange':_0x250672=>{const _0x32ef23=_0x4c57a6;var _0x26f4e8;_0x5815e6(Number(_0x250672)),V(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'stroke':{'sketchType':(_0x26f4e8=_0xf66509['stroke'])==null?void 0x0:_0x26f4e8[_0x32ef23(0x418)]}}},{'stroke':{'sketchType':Number(_0x250672)}});}})})]}),_0x44240b&&(0x0,C['jsxs'])(C['Fragment'],{'children':[(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x64a),'children':[(0x0,C['jsx'])('span',{'className':'univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x2bf51a['t']('sheets-shape.line.beginArrowType')}),(0x0,C['jsx'])('div',{'className':_0x4c57a6(0x293),'children':(0x0,C[_0x4c57a6(0x45d)])(b['Select'],{'className':'univer-w-full','value':String(_0x3c245a),'options':_0x51ac6c,'onChange':_0x150530=>{const _0x325b07=_0x4c57a6;var _0xd3a67f;_0x4fa0b3(Number(_0x150530)),ne(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'ln':{'startArrow':{'type':(_0xd3a67f=_0xf66509['ln'])==null||(_0xd3a67f=_0xd3a67f[_0x325b07(0x749)])==null?void 0x0:_0xd3a67f[_0x325b07(0x50b)]}}}},{'ln':{'startArrow':{'type':Number(_0x150530)}}});}})})]}),(0x0,C['jsxs'])('div',{'className':_0x4c57a6(0x64a),'children':[(0x0,C['jsx'])('span',{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x21e))}),(0x0,C['jsx'])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x293),'children':(0x0,C['jsx'])(b[_0x4c57a6(0x322)],{'className':_0x4c57a6(0x4f5),'value':String(_0x1b0669),'options':_0xdb2e84,'onChange':_0x2c6948=>{const _0x185576=_0x4c57a6;var _0x55e681;_0x31bbf1(Number(_0x2c6948)),ne(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'ln':{'startArrow':{'size':(_0x55e681=_0xf66509['ln'])==null||(_0x55e681=_0x55e681['startArrow'])==null?void 0x0:_0x55e681[_0x185576(0x4c9)]}}}},{'ln':{'startArrow':{'size':Number(_0x2c6948)}}});}})})]}),(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x64a),'children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x36d))}),(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x293),'children':(0x0,C[_0x4c57a6(0x45d)])(b[_0x4c57a6(0x322)],{'className':_0x4c57a6(0x4f5),'value':String(_0x4e8d95),'options':_0x51ac6c,'onChange':_0xfd3c68=>{const _0x399bce=_0x4c57a6;var _0x420bd3;_0x211b81(Number(_0xfd3c68)),ne(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'ln':{'endArrow':{'type':(_0x420bd3=_0xf66509['ln'])==null||(_0x420bd3=_0x420bd3[_0x399bce(0x6b4)])==null?void 0x0:_0x420bd3[_0x399bce(0x50b)]}}}},{'ln':{'endArrow':{'type':Number(_0xfd3c68)}}});}})})]}),(0x0,C[_0x4c57a6(0x44e)])(_0x4c57a6(0x308),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x2f9),{'className':_0x4c57a6(0x629),'children':_0x2bf51a['t'](_0x4c57a6(0x689))}),(0x0,C[_0x4c57a6(0x45d)])(_0x4c57a6(0x308),{'className':_0x4c57a6(0x293),'children':(0x0,C['jsx'])(b[_0x4c57a6(0x322)],{'className':_0x4c57a6(0x4f5),'value':String(_0x16a98f),'options':_0xdb2e84,'onChange':_0xc773e7=>{const _0x4c3108=_0x4c57a6;var _0x4145e4;_0x412eef(Number(_0xc773e7)),ne(_0x5914fb,_0x3fbaed,_0x1d6714,_0x3c0c24,{'oldShapeData':{'ln':{'endArrow':{'size':(_0x4145e4=_0xf66509['ln'])==null||(_0x4145e4=_0x4145e4[_0x4c3108(0x6b4)])==null?void 0x0:_0x4145e4[_0x4c3108(0x4c9)]}}}},{'ln':{'endArrow':{'size':Number(_0xc773e7)}}});}})})]})]})]})]});}function le(){const _0x433349=_0x8b89eb;let _0x347ff0=(0x0,v[_0x433349(0x4f9)])(p[_0x433349(0x5ba)]),[_0x31d864,_0xbace7c]=(0x0,x[_0x433349(0x449)])(_0x347ff0[_0x433349(0x607)]());return(0x0,x['useEffect'])(()=>{let _0x19e154=_0x347ff0['focus$']['subscribe'](_0x4bfd20=>{_0xbace7c(_0x4bfd20);});return()=>{_0x19e154['unsubscribe']();};},[]),_0x31d864[_0x433349(0x41f)]===0x0?null:(0x0,C[_0x433349(0x45d)])(_0x433349(0x308),{'children':(0x0,C[_0x433349(0x44e)])('div',{'className':_0x433349(0x1ed),'children':[(0x0,C[_0x433349(0x45d)])(S[_0x433349(0x424)],{'drawings':_0x31d864,'hasCropper':!0x1}),(0x0,C['jsx'])(w[_0x433349(0x27a)],{'drawings':_0x31d864})]})});}function _0x3e18(){const _0x5b4e1f=['_handleFreeEndpointMove','sheets-shape.line.endArrowSize','_activeShapeModel','ShapeFrameIcon','IMenuManagerService','isRenderLinePointsMode','line','CurvedLeftArrow','ShapeCurvedConnector3Icon','equationShape','InputNumber','sheets-shape.line.sketchType.none','ShapeNonIsoscelesTrapezoidIcon','ShapeFlowChartSummingJunctionIcon','CurvedRightArrow','toDisposable','relation','UNIVER_SHEET','getDrawingVisible','name','render','shape.type.left-arrow-callout','_subUnitId','_executeConnectedRouteConnectionCommand','setContextValue','setCursor','_createControls','updateContext','_baseShapeWidth','#000000','getUnit','pluginName','isConnectorShape','ShapeFlowChartConnectorIcon','setSrcRect','getBentTypeFromPoints','sheets-shape.line.transparency','ShapeIrregularSeal1Icon','Linear','ShapeFlowChartPunchedTapeIcon','_renderManagerService','beforeCommandExecuted','adjHandleStroke','map','endArrow','BorderCallout2','Bevel','shape.type.action-button-sound','_activeShapeAdjustPointList','LeftArrowCallout','ColorPicker','Corner','Star16','_initEvents','editorHeight','LeftUpArrow','setShapeProps','ShapeStar4Icon','Arrow','ShapeLeftArrowCalloutIcon','getBatchUpdateOp','offsetX','ShapeFunnelIcon','ShapeRightBracketIcon','Can','ShapeUturnArrowIcon','ShapeFlowChartOrIcon','ShapeOctagonIcon','getShapeData','push','_context','AccentCallout1','ShapeHeartIcon','_baseTop','setPrstGeom','shape.type.left-circular-arrow','IUndoRedoService','ShapeFlowChartMultidocumentIcon','ICommandService','FlowchartDecision','clip-adj-','preValue','sheets-shape.fill.gradientFill','setEditing','shape.type.line-inv','generateRandomId','_currentScene','VerticalAlign','ShapeChartXIcon','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','HorizontallyIcon','_openShapeEditPanel','ShapeSnip1RectIcon','ShapeTeardropIcon','onReady','drawingType','_drawingAddListener','updateShapeFillImage','sheets-shape.line.joinType.title','Wave','IRenderManagerService','shape.type.action-button-movie','ShapeTextEditorContainer','close','FlowchartProcess','Observable','merge','SetShapeTextHorizontalAlignCommand','_shapeService','blockExecuteWithoutPermission','shape.type.curved-right-arrow','_clearShapeConnectorHandlerObjects','getShapeDataById','find','with','0.23.0-insiders.20260522-e8f2a3b','BentUpArrow','LEFT','univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','set','makeDirty','univer-block\x20univer-h-[100px]\x20univer-w-[100px]\x20univer-object-cover','sheets-shape.fill.picture.offsetY','ShapeLineInvIcon','VERTICAL_ROTATE_ANGLE','Round2DiagRect','shape.type.block-arc','shape.type.accent-border-callout1','_shapeUpdateListener','_getShapeInfo','SetDrawingApplyMutation','shape.type.snip-round-rect','REMOVE','section','sheets-shape.line.title','min','ShapeFlowChartProcessIcon','GROUP','AccentBorderCallout2','ShapePlaqueIcon','_reset','getDrawingShapeKeyByDrawingSearch','SnipRoundRect','sheets-shape.line.joinType.round','_registerMoveHandler','shape.type.sun','round','FlowchartPreparation','ShapeTriangleIcon','targetShapeId','shape.type.action-button-information','ShapeStar32Icon','shape.type.left-right-arrow-callout','_editingParams$','VIEW_MAIN_LEFT_TOP','ShapePieIcon','switchMap','shape.type.plaque','_initSheetChange','getAdjustNames','sheets-shape.toggleTextVertical','_hasReset','_cxtHandlerPointerUp','ShapeFlowChartOnlineStorageIcon','shape.type.corner','ShapeActionButtonBlankIcon','ActionButtonSound','IrregularSeal2','getSkeleton','shape-text-editor','fillImageSource','open','computeConnectorRouteLayout','shape.type.star5','ShapeEllipseIcon','ShapeDocAlignCommand','custom','getEndConnectInfo','DRAWING_SHAPE','_drawShapeText','Line','clsx','FlowchartMagneticDisk','renderDrawingShape','ShapeCornerIcon','constructor','vertexAngle','SetShapeDrawingDataCommand','ShapeActionButtonForwardNextIcon','UpArrowCallout','ShapeRibbon2Icon','useRef','shape.type.flow-chart-delay','startArrow','symbol','FOCUSING_PANEL_EDITOR','OpenArrow','DocSkeletonManagerService','current','onPointerUp$','button','_sheetCanvasPopManagerService','horizontalAlign','ShapeLeftBraceIcon','other','updateConnectionDetection','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','BOTTOM','shape.type.star16','ShapeFlowChartDecisionIcon','sheets-shape.insertShape','#ffffff','sin','shape.type.right-arrow-callout','KeyCode','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape.config','horizontal','clearAdjustControls','buildClipPath','offsetY','RibbonInsertGroup','CUT','InsertSheetsShapeMutation','setFillImage','VIEW_MAIN_TOP','IURLImageService','sheets-shape.fill.pictureFill','sheets-shape.fill.picture.insert','ShapeWedgeRectCalloutIcon','ShapePlusIcon','shape.type.math-equal','filter','ShapeMathMultiplyIcon','Stretch','Callout3','ResetInlineFormatTextBackgroundColorCommand','localeService','ShapeLeftRightRibbonIcon','keys','NotchedRightArrow','shape.type.action-button-blank','routeConnectorLineShape','ShapeChevronIcon','sheets-shape.line.solidLine','gdRefY','max','isInGroup','ShapeCloudCalloutIcon','applyPoint','ShapeActionButtonBeginningIcon','VerticalCenterIcon','sheet.command.menu-insert-shape','univer-w-20','UpdateConnectorRelationCommand','ShapeArcIcon','getShapeTextRect','sheets-shape.rotateLeft90','paragraphStyle','pushUndoRedo','LongDashDotDot','ShapeDodecagonIcon','changeEnd$','value','sheets-shape.line.beginArrowSize','getShapePopupMenus','LeftBrace','ShapeMathMinusIcon','isArray','alignment','DownArrow','_drawingType','_activeImageId','_config','documentStyle','BUTTON','ISheetDrawingService','ShapeRtTriangleIcon','FlowchartConnector','#bcbcbc','parseFloat','univer-shrink-0\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','registerRenderModule','_clipService','shape.type.star12','BUTTON_SELECTOR','fillType','drawing.operation.set-drawing-active','entries','AccentCallout3','LongDash','onTransformChange$','shape.type.diag-stripe','DocumentDataModel','getConnectionInfo','SheetScrollManagerService','ShapeDonutIcon','shape.type.straight-connector2','shape.type.math-plus','sheets-shape-ui','shape.type.left-right-arrow','registerFeatureMenu','Round','ShapeCircularArrowIcon','gradientStops','SHEET_VIEWPORT_KEY','_clearConnectionSites','useEffect','RightJustifyingIcon','ShapeChartPlusIcon','UNIVER_DOC','create','startConnectionDetection','univer-flex\x20univer-flex-col\x20univer-gap-2','useAbsolutePosition','ShapePlaqueTabsIcon','position','_focusedDrawings','FlowchartDelay','shape.type.left-bracket','ShapeBevelIcon','shape.type.plaque-tabs','onCommandExecuted','ShapeSnip2DiagRectIcon','StripedRightArrow','sheets-shape.line.dashType.squareDot','_sidebarDisposable','ShapeQuadArrowCalloutIcon','params','univer-text-gray-600\x20univer-transition-transform','sheets-shape.line.sketchType.curved','ShapeEllipseRibbon2Icon','image/*','ShapeEditor','dataModel','end','ShapeActionButtonHomeIcon','flowchart','start','ShapeStraightConnector1Icon','classType','SetShapeTextFontSizeIncreaseCommand','Star8','_currentUniverService','shape.type.ellipse-ribbon','ShapeRound1RectIcon','_isStartAdjusting','BentConnector3','scene','FOCUSING_SHAPE_TEXT_EDITOR','ShapeAccentCallout2Icon','getImage','getSheetBySheetId','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','updateLinePoints','executeCommand','SheetDrawingAnchor','_isStartConnectorPoint','ShapeSketchTypeEnum','lineType','shape.type.dodecagon','getOwnPropertyNames','disableObjectsEvent','editingParams$','ShapeFlowChartMergeIcon','getFreeze','ang','align.top','_insertShapes','_drawingManagerService','lineShapeId','shape.type.round1-rect','sheets-shape.line.arrowType.openArrow','isCurvedConnectorShape','Star32','includes','Path','getCurrentScrollState','_getConnectionSiteAngle','forEach','setOnSavingEditorData','univer-w-28','AccentCallout2','abs','shape.type.parallelogram','computeConnectorResizeLayout','WrapStrategy','univer-flex\x20univer-items-center\x20univer-gap-3','from','ShapeChartStarIcon','ShapeRectIcon','remove$','fill','ShapeRectTextboxHorizontalIcon','getActualSize','_handleBasicShapeUpdateConnectorLineShape','UniverSheetsShapePlugin','scaleX','oKey','ComponentManager','_registerGroupFeaturePasteHook','removeLinePoints','Decagon','ShapeCallout2Icon','240voYSlk','VIEW_MAIN','ShapeWedgeRoundRectCalloutIcon','sheets-shape.line.dashType.roundDot','ActionButtonReturn','RoundDot','getRenderById','IUniverInstanceService','shape.type.round-rect','FlowchartManualInput','ShapeAccentBorderCallout2Icon','#4285f4','sheetViewStartColumn','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','shape.type.down-arrow-callout','sheets-shape.line.capType.square','ShapeLineTypeEnum','getBatchAddOp','Miter','shape.type.snip2-diag-rect','imageFillMode','ShapeLineIcon','ShapeBentConnector3Arrow2Icon','isHighlighted','getDrawingSearch','_registerDrawingMoveHandler','normal','DRAWING_IMAGE','Round1Rect','shapeType','ShapeMathEqualIcon','addClipboardHook','ShapeFlowChartMagneticDrumIcon','Image','ShapeSquareTabsIcon','ShapeWaveIcon','viewportScrollX','_activeShapeInfo','shape.type.corner-tabs','onload','_rerouteConnectorLine','Round2SameRect','isRichText','clear','getAdjustInfoByName','cxnPointRadius','asObservable','9369910FERbzA','_initCopyPaste','SHEET_SHAPE_UI_PLUGIN','deepClone','CommandType','ShapeFlowChartExtractIcon','univer-rounded-lg\x20univer-p-3','shape.type.action-button-forward-next','getSheetCommandTarget','domY','shapeData','_activeAdjustInfo','dispose','register','FlowchartSort','_sheetShapeAdjustController','ShapeStar6Icon','localToWorld','WedgeRoundRectCallout','_showConnectionSites','setShapeData','FlowchartTerminator','SmileyFace','_calculateFreeEndpointAngle','addObject','ActionButtonEnd','VerticalScroll','pipe','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','SheetInterceptorService','Diamond','Moon','span','FlowchartAlternateProcess','117932zFduEQ','Circle','_props','RightArrow','image-clip-adjust-point-','_executeResizeCommand','Disposable','get','ShapeLineDashEnum','basicShape','shape.type.bent-connector3-arrow1','_getSceneAndTransformerByDrawingSearch','resetCursor','div','ancestorTransform','ShapeStar16Icon','shape.type.bracket-pair','_initialize','None','RightBrace','shape.type.brace-pair','shape-text-editor-position-wrapper','MIDDLE','GradientColorPicker','ActionButtonBeginning','Pentagon','sheets-shape.line.dashType.dashDot','CurvedUpArrow','FlowchartCollate','_cxtHandlerPointerMove','color','domX','fillImageSourceType','next','shape.type.cube','HorizontalAlign','UniverInstanceType','style','ShapeLeftArrowIcon','Select','shape.type.wedge-rect-callout','top','shape.type.action-button-beginning','_drawSimpleText','DiagStripe','CurvedDownArrow','cxnIndex','blur','transformForAngle','vertical','onDblclick$','shape.type.left-right-circular-arrow','_injector','sheets-shape.toggleFlipV','_sheetInterceptorService','sheets-shape.fill.picture.align.t','NoSmoking','InsertShapeCommand','INSERT','Radio','Transform','_isShouldShowDrawingShapeAdjust','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold','shape.type.bent-arrow','_connectionSiteObjects','Dropdown','UniverSheetsDrawingUIPlugin','_adjHandlerPointerMove','shape.type.callout3','MoreDownIcon','Snip2SameRect','_registerShapeMenu','ShapeFlowChartPreparationIcon','shape.type.vertical-scroll','shapeModel','shape.type.action-button-help','none','ShapeLeftRightCircularArrowIcon','ShapeSmileyFaceIcon','univer-relative\x20univer-size-full\x20univer-overflow-visible','22302rZDRrT','LeftRightRibbon','getState','getDrawingByParam','getInverseCoord','ShapeLeftCircularArrowIcon','saveImage','_lastEditingShapeKey','UpdateLineShapeResizeCommand','img','toPrimitive','Star7','ShapeRightArrowIcon','RENDER_CLASS_TYPE','permissionCheckWithoutRange','Button','paragraphs','diamond','FlowchartDocument','sheets-shape.line.arrowType.arrow','doc','sheets-shape.fill.picture.rotateWithShape','shape.type.arc','shape.type.left-brace','getParent','Gear6','shape.type.star8','ShapeTrapezoidIcon','some','gradientType','flipY','shape-text-editor-content','_sheetsShapeService','shape.type.accent-callout2','sheets-shape.line.endArrowType','ShapeActionButtonMovieIcon','refreshAdjustControls','useMemo','colStartX','_draw','ShapeBorderCallout3Icon','iterator','getZoomRatio','ShapeStraightConnector2Icon','resize','CopySheetCommand','restore','sheets-shape.line.arrowType.ovalArrow','shape.type.flow-chart-punched-card','disposeWithMe','sheet.operation.close-sheet-shape-format-panel','calculate','HalfFrame','ShapeAccentBorderCallout3Icon','LocaleService','Large','computeStraightConnectorLayout','shape.type.pentagon','sheets-shape.fill.picture.align.ctr','shape-adjust-point-','Heptagon','shape.type.up-arrow-callout','replace','_activeShapeId','shape.type.chart-plus','isStartConnectorPoint','Ellipse','_sheetPermissionCheckController','verticalAlign','shape.type.round2-diag-rect','ShapeBorderCallout1Icon','\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','ShapeSwooshArrowIcon','sheet.command.shape-doc-align','_drawingRenderService','shape.type.triangle','engine','_targetShapeId','getDrawingOrder','getViewportByCell','@univerjs-pro/sheets-shape-ui','focusDrawing','_isHighlighted','sheets-shape.line.sketchType.title','image-panel.crop.shape','complete','RemoveSheetsShapeMutation','ShapeRightBraceIcon','isRender','1342846pFVxUN','Star10','shapeId','getCanvasElement','ShapeCornerTabsIcon','lineStrokeType','Gear9','ShapeVerticalScrollIcon','capType','isHorizontal','align.right','_clearShapeAdjustControls','UPDATE','viewportScrollY','VIEW_MAIN_LEFT','ShapeRightArrowCalloutIcon','ShapeSnip2SameRectIcon','Frame','shape.type.flow-chart-summing-junction','Tools','rowStartY','Chord','LeftCircularArrow','sheets-shape.fill.picture.align.tr','ShapeAccentCallout3Icon','_shapes','LeftRightCircularArrow','shape.type.flow-chart-terminator','shape.type.math-divide','sheets-shape.fill.picture.tileAsTexture','sheets-shape.line.dashType.dash','_findShapeAtPoint','ShapeHomePlateIcon','ShapeCurvedConnector3Arrow2Icon','_initSelection','_currentConnectionTarget','FOCUSING_COMMON_DRAWINGS','ThemeService','worldPoint','setAdjustValueByName','shape.type.teardrop','image','_isDrawingShapePointDown','ShapeHalfFrameIcon','ShapeFlowChartMagneticTapeIcon','adjName','SELECTOR','draw','starAndBanner','SheetsDrawingGroupCopyPasteController','startX','sheets-shape.hidePanel','DrawingRenderService','radial','sheets-shape.fill.transparency','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pt-2','ToggleSheetsShapeFlipCommand','shape.type.curved-connector3','_baseShapeTop','ctr','add','stringify','shape.type.flow-chart-or','ShapeAccentCallout1Icon','sheetViewStartRow','univer-absolute','ShapeFlowChartSortIcon','_getScrollInfo','_initPermission','MathNotEqual','lineJoinType','getStartConnectInfo','_attachAdjustEvent','invert','_initMenu','SolidFill','Inject','\x20px','point','focus$','ShapeEllipseRibbonIcon','Medium','ShapeCubeIcon','cxnPointStrokeWidth','_addShapeConnectorHandlerObject','_addControl','_baseShapeLeft','registerClipDelegate','ShapeHorizontalScrollIcon','subscribeContextValue$','drawWith','PieWedge','sheets-shape.fill.picture.scaleY','MathMinus','shape.type.left-up-arrow','updateDocumentDataMargin','shape.type.border-callout1','shape.type.left-right-up-arrow','ShapeDiamondIcon','align.middle','ShapeRenderModeEnum','ShapeLeftRightArrowCalloutIcon','shape.type.flow-chart-collate','_isOpenedShapeEditPanel','composeMatrix','Arc','Documents','interceptCommand','onRendered','EllipseRibbon2','DrawingImageClipService','Snip1Rect','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_univerInstanceService','left','ShapeCurvedUpArrowIcon','sketchType','ShapeFolderCornerIcon','shape.type.border-callout2','_baseWidth','_contextService','_unitId','sheets-shape.line.dashType.longDash','length','_isImagePointerDown','setDocumentData','PlaqueTabs','ShapeArrowTypeEnum','DrawingCommonPanel','ShapeFlowChartManualOperationIcon','ShapeFlowChartDisplayIcon','shape.type.frame','univer-size-full','useEditor','DownArrowCallout','SHAPE_TEXT','SheetSkeletonManagerService','angle','ChartStar','shape.group.','displayName','shape.type.accent-callout1','_localeService','objects','MathDivide','_baseDrawingRect','ShapeFlowChartMagneticDiskIcon','shape.type.flow-chart-preparation','onPointerDown$','subUnitId','save','sheets-shape.line.sketchType.handDrawn','SolidLine','_loadAndSetImage','WedgeEllipseCallout','getDrawingData','Square','DrawingApplyType','ISidebarService','connector-handler-','setSelectionRanges','shape.type.uturn-arrow','HomePlate','FlowchartExtract','ShapeFlowChartDocumentIcon','useState','onSavingEditorData$','linear','SquareDot','Donut','jsxs','_activeAdjustPointList','SheetsShapeService','AlignOperationCommand','isEditing','defineProperty','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pt-2','PictureFill','sheet.command.set-shape-text-horizontal-align','ShapeGradientTypeEnum','getDrawingPoints','#FFFFFF','Curved','FlowchartSummingJunction','setTimeout','jsx','ShapeFlowChartDelayIcon','scaleY','_baseShapeHeight','shape.type.flow-chart-multidocument','shape.type.hexagon','_baseLeft','IConfigService','DependentOn','FromArray','ShapeDoubleWaveIcon','imageRotateWithShape','visible','FlowchartPunchedTape','_updateSrcRectByTransform','shape.type.wedge-ellipse-callout','SheetsSelectionsService','univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','enableObjectsEvent','warn','UpArrow','univer-hidden','Octagon','FlowchartPunchedCard','_addShapeConnectorHandlerObjects','onStarting','shape.type.line','shape.type.rt-triangle','univer-text-xl\x20univer-text-gray-500','BehaviorSubject','sheets-shape.fill.picture.alignment','ShapeFlowChartPredefinedProcessIcon','_getShapeAdjustPointListById','setCanUseShapeClip','textRect','add$','ShapeSunIcon','univer-text-sm','index','_connectorObjects','RibbonPosition','_adjName','shape.type.chevron','mergeMenu','COMMAND','BentArrow','RemoveSheetDrawingCommand','shape.type.bent-connector3-arrow2','FlowchartOnlineStorage','skeleton','QuadArrowCallout','sheet.command.set-shape-text-vertical-align','sheets-shape.fill.picture.scaleX','ShapeFlowChartCollateIcon','_handleFreeEndpointPointerUp','shape.type.flow-chart-document','ShapeRibbonIcon','shape.type.curved-down-arrow','width','shape.type.octagon','ShapeDecagonIcon','_closeShapeEditPanel','_init','PaintBucketDoubleIcon','Snip2DiagRect','univer-absolute\x20univer-z-[100]\x20univer-overflow-visible','Plugin','ShapeStar24Icon','ShapeRound2SameRectIcon','sheets-shape.line.capType.flat','_updateShapeAdjustControls','_adjHandlerPointerUp','ShapeFlowChartInputOutputIcon','dataStream','_getConnectPointInfo','CurvedConnector3','ShapeHexagonIcon','_getImagePrstGeom','transformByState','shape.type.square-tabs','shape.type.swoosh-arrow','ShapeBentArrowIcon','getMatrix','_handleConnectedEndpointMove','icon','sheets-shape.fill.picture.align.bl','getBasicShapeRotateBound','Star6','dashType','ShapeCloudIcon','ShapeUpArrowIcon','COPY_TYPE','UUID','toolbar.resetColor','shape.type.snip2-same-rect','ImageSourceTypeEnum','ShapeStar12Icon','#1a73e8','shape.type.accent-border-callout2','callout','version','ShapeActionButtonEndIcon','univer-text-gray-500','shape.type.irregular-seal1','getCurrentSkeleton','ShapeBorderCallout2Icon','shape.type.flow-chart-display','LeftArrow','size','sheets-shape.line.capType.round','Injector','ShapeCanIcon','unitId','_setTransForm','shape.type.flow-chart-predefined-process','shape.type.bent-connector3','getEditing','shape.type.curved-connector3-arrow2','setConfig','sheets-shape.line.dashType.solid','ShapePentagonIcon','univer-flex\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','_getDrawingRect','startWith','shape.type.chart-star','_sheetDrawingShapeRenderController','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600','_copyInfo','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeActionButtonBackPreviousIcon','Shape','onPointerMove$','FlowchartMagneticTape','FlowchartDisplay','CENTER','ShapeCallout3Icon','getTransformerByCreate','clip-','ShapeLightningBoltIcon','ShapeStar10Icon','ShapeCurvedDownArrowIcon','getObject','TOP','RightArrowCallout','Solid','subscribe','worldPoints','_activeTargetShapeId','LeftRightArrowCallout','DoubleWave','ActionButtonInformation','activeAnObject','univer-w-full','sheets-shape.line.arrowSize.large','_getImageDrawingInfo','ShapeMoonIcon','useDependency','ShapeMathPlusIcon','_loadShapePictureFill','PREDEFINED_HOOK_NAME','shape.type.flow-chart-punched-tape','OvalArrow','ShapeBentConnector3Arrow1Icon','setHighlighted','_shapeId','prstGeomAdjValues','_componentManager','_transform','StraightConnector1','highlighted','subscribeEvent','cxnPointFill','shape.type.decagon','touchDependencies','type','ShapeBracePairIcon','FlowchartInternalStorage','useLeftAndRightArrow','SetSheetsShapeRotateCommand','align.left','RIGHT','sheets-shape.deleteShape','ShapeFlowChartPunchedCardIcon','ISheetClipboardService','syncExecuteCommand','bind','worksheet','viewBound','UpdateSheetsShapeDataMutation','univer-text-primary-600','adjustValues','Star4','_resetState','shape.type.rect-textbox-horizontal','_onSavingEditorData$','BracePair','\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','shape.type.wedge-round-rect-callout','mainComponent','getCurrentUnitInfo','Dash','UpDownArrowCallout','SheetsShapeUIController','ShapeRectTextboxVerticalIcon','registerFeaturePasteHook','shape.type.folder-corner','Accordion','ENTER','getBoundingClientRect','getAncestorScale','sheet.operation.open-sheet-shape-format-panel','ShapeGear6Icon','sheets-shape.line.noLine','refreshTransform','_imageIoService','OPERATION','ShapeNotchedRightArrowIcon','ShapeWedgeEllipseCalloutIcon','clip','IContextService','shape.type.non-isosceles-trapezoid','useCallback','ShapeStar5Icon','sheets-shape.line.dashType.longDashDot','Cube','sheets-shape.line.color','LightningBolt','HandDrawn','getShapeTextData','shape.type.notched-right-arrow','RadioGroup','ShapeDownArrowCalloutIcon','getViewport','prstGeom','_clearControls','ShapeQuadArrowIcon','gdRefX','ShapeTypeEnum','shape.type.star6','getAdjustValueByName','ShapeLeftRightUpArrowIcon','activeSheet$','values','ShapeFlowChartAlternateProcessIcon','NoFill','SetShapeTextFontSizeDecreaseCommand','_commandExecutedListener','body','sheets-shape.line.capType.title','CROSSHAIR','_initCommands','createInternalEditorID','ShapeGear9Icon','getConnectionRelation','ShapeDownArrowIcon','ShapeCallout1Icon','primary.600','AlignBottomIcon','Ribbon2','height','GradientFill','WorksheetEditPermission','ShapeRound2DiagRectIcon','getCurrentRangeDisable$','shape.type.bevel','ChartX','ShapeCurvedLeftArrowIcon','SetShapeTextFontSizeCommand','URL','FlowchartMultiDocument','target','sheets-shape.fill.solidFill','_commandService','getConnectionSiteList','_cxnIndex','shape.type.border-callout3','adjHandleFill','shape.type.bent-up-arrow','shape.type.left-arrow','shape.type.double-wave','EMPTY','shape.type.ribbon','ShapeUpArrowCalloutIcon','imageTile','getSkeletonParam','shape.type.star10','attachRangeWithCoord','_transformCalculateSrcRect','_groupCopyPasteController','shape.type.flow-chart-input-output','_drawRichText','_registerFocusChangeHandler','ShapeModel','getUnitId','_getZoomRatio','MathMultiply','shapeKey','toolbar.verticalAlignMode.main','ShapeUpDownArrowIcon','gdRefR','_updateTransform','getContextValue','renderConfig','Plus','ShapeArrowSizeEnum','univer-flex\x20univer-flex-col\x20univer-gap-3','ShapeActionButtonInformationIcon','DRAWING_DOM','drawingId','MenuItemType','_handleConnectedEndpointPointerUp','ShapeCurvedRightArrowIcon','ShapeFlowChartManualInputIcon','_urlImageService','shape.type.flow-chart-extract','getShapeModel','beginPath','_shapeTextEditingService','has','SetInlineFormatTextBackgroundColorCommand','stopPropagation','getBatchRemoveOp','strokeWidth','_draggingConnectorId','align.center','_sheetDrawingService','shape.type.pie-wedge','isNaN','hasOwnProperty','_generatePasteMutations','function','sheets-shape.line.arrowSize.medium','sheet.shape.edit.panel','unsubscribe','blockArrow','RibbonStartGroup','slice','Tile','ShapeFlowChartTerminatorIcon','sheets-shape.line.arrowType.none','ShapeActionButtonSoundIcon','shape.type.flow-chart-offline-storage','_updateAdjustControlPositions','shape.type.curved-connector3-arrow1','_moveConnectorWithShape','IImageIoService','CloudCallout','floor','Star5','IDrawingManagerService','shape.type.round2-same-rect','_executeConnectionCommand','LAYOUT','getConnectorLinePoints','26586270YUVnkV','_registerDrawingFocusChangeHandler','ShapeIrregularSeal2Icon','ShapeLineJoinEnum','shape.type.flow-chart-process','prototype','shape.type.math-minus','changeStart$','_highlightedSiteIndex','attachTransformerTo','opacity','Callout2','flipX','univer-pt-2','scale','indexOf','24lBZEcd','Angular','ShapeLeftUpArrowIcon','ShapeIcon','ShapeDiagStripeIcon','ShapeBracketPairIcon','_registerOperations','_sheetClipboardService','getShapeType','4594604hiapVF','ShapeAccentBorderCallout1Icon','addImageSourceCache','getObjectIncludeInGroup','string','__esModule','shape.type.curved-left-arrow','ShapeStar7Icon','call','UturnArrow','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','shape.type.ellipse','_updateImageAdjValues','cos','translateWithPrecision','ShapeUpDownArrowCalloutIcon','ShapeLeftBracketIcon','getDocumentData','memo','getPrototypeOf','shape.type.flow-chart-online-storage','UniverSheetsShapeUIPlugin','BlockArc','_baseHeight','parse','transform','useIsFocusing','shape.type.horizontal-scroll','ActionButtonDocument','src','shape.type.striped-right-arrow','shape.type.star7','ShapeParallelogramIcon','shape.type.flow-chart-connector','_createCopyInfoByRange','_sheetSkeletonService','isLineShape','getOwnPropertyDescriptor','FlowChartInputOutput','ShapeActionButtonDocumentIcon','_getOrCreateShapeModel','shape.type.wave','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','changing$','shape.type.accent-callout3','ShapeSnipRoundRectIcon','ShapeLineCapEnum','getFocusDrawings','adjHandleSize','sheets-shape.toggleFlipH','ShapeChordIcon','Rect','_executeConnectedRouteResizeCommand','SheetSkeletonService','ShapeCurvedConnector3Arrow1Icon','START','_addShapeAdjustControl','ShapeBentUpArrowIcon','updateDocumentStyle','setShouldShowAdjust','shape.type.heart','_index','ShapeBlockArcIcon','translate','_findNearestConnectionSite','ShapeDefaultConfig','shape.type.callout2','isFinite','getColorFromTheme','UpDownArrow','5126536qrEazU','rect','getRealBound','RichTextEditingMutation','_registerImageShapeClipDelegate','group','_sheetBasicShapeConnectionPointController','setPrstGeomAdjValues','CURSOR_TYPE','shape.type.home-plate','shape.type.flow-chart-magnetic-tape','univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','worldRect','ActionButtonHelp','getCurrentTypeOfUnit$','getCurrentLastSelection','AccentBorderCallout3','enumerable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeNoSmokingIcon','ShapeMathDivideIcon','shape.type.flow-chart-manual-input','shape.type.up-down-arrow','connection-site-','_generateCutPasteMutations','ShapeRoundRectIcon','DrawingTypeEnum','Radial','ShapeFlowChartOfflineStorageIcon','shape.type.flow-chart-internal-storage','FlowchartPredefinedProcess','shape.type.quad-arrow-callout','LeftRightArrow','ShapeLeftRightArrowIcon','_handleConnectorPointerUp','angular','Trapezoid','rectangle','ImageFillModeEnum','redo','WRAP','changeShapeType','rotation','Flat','univer-flex\x20univer-items-center\x20univer-justify-between','sheets-shape.fill.title','DiamondArrow','startY','ConnectorCoordinateTransform','StealthArrow','object','copyType','_isConnecting','ShapeStripedRightArrowIcon','9DpXWxf','Small','ShapeFillEnum','CornerTabs','shape.type.funnel','stroke','shape.type.flow-chart-magnetic-drum','cxnPointStroke','univer-flex\x20univer-items-center\x20univer-gap-2','update$','Hexagon','input','rotate(','_imageShapeClipController','Teardrop','ShapeActionButtonReturnIcon','_sidebarService','decorate','NoLine','ShapeFlowChartOffpageConnectorIcon','UpdateShapeDataCommand','ShapeBentConnector3Icon','shape.type.action-button-return','clearAdjustValue','ShapeFlowChartInternalStorageIcon','getImageSize','isHitLine','sheets-shape.fill.picture.align.b','focus','getValue','shape.type.gear6','clipByShape','ShapePieWedgeIcon','sheets-shape.line.sketchType.freehand','RemoveSheetCommand','registerFeatureMenuOffset','shape.type.moon','FlowchartMagneticDrum','ShapeMathNotEqualIcon','DRAWING_OBJECT_LAYER_INDEX','Pie','offset','_createShapeAdjustControls','LeftJustifyingIcon','FlowChartOfflineStorage','packageName','deriveStateFromActiveSheet$','_initEditingParams','ShapeHeptagonIcon','srcRect','ShapeStar8Icon','sheets-shape.line.arrowType.diamondArrow'];_0x3e18=function(){return _0x5b4e1f;};return _0x3e18();}function Y(_0x2b3b04){const _0x350543=_0x8b89eb;let {shapeData:_0x5ae4e7,shapeId:_0x4db10d,shapeType:_0x487680,version:_0x1d14c3,unitId:_0x3e10d8,subUnitId:_0x78582,disableShapeOption:_0x557bc5}=_0x2b3b04,_0x4dbffa=(0x0,v[_0x350543(0x4f9)])(l[_0x350543(0x381)]),_0x530f2d=(0x0,y[_0x350543(0x6a8)])(_0x487680),[_0x359abe,_0x352956]=(0x0,x[_0x350543(0x449)])(0x0),_0x25d233=[{'label':(0x0,C['jsx'])(_0x350543(0x308),{'children':_0x4dbffa['t'](_0x350543(0x64b))}),'children':(0x0,C[_0x350543(0x45d)])('section',{'className':'univer-px-4\x20univer-pb-2.5\x20univer-text-sm\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':(0x0,C['jsx'])(ae,{'shapeId':_0x4db10d,'shapeData':_0x5ae4e7,'isLineShape':_0x530f2d,'subUnitId':_0x78582,'unitId':_0x3e10d8,'disableShapeOption':_0x557bc5},_0x4db10d)})},{'label':(0x0,C[_0x350543(0x45d)])(_0x350543(0x308),{'children':_0x4dbffa['t'](_0x350543(0x70e))}),'children':(0x0,C['jsx'])(_0x350543(0x70d),{'className':_0x350543(0x6fe),'children':(0x0,C[_0x350543(0x45d)])(ce,{'shapeId':_0x4db10d,'shapeData':_0x5ae4e7,'isLineShape':_0x530f2d,'subUnitId':_0x78582,'unitId':_0x3e10d8,'disableShapeOption':_0x557bc5},_0x4db10d)})}];return(0x0,C[_0x350543(0x44e)])('div',{'className':_0x350543(0x428),'children':[(0x0,C[_0x350543(0x44e)])(_0x350543(0x308),{'className':_0x350543(0x4d6),'children':[(0x0,C['jsxs'])(_0x350543(0x308),{'className':(0x0,b[_0x350543(0x73d)])(_0x350543(0x339),_0x359abe===0x0?_0x350543(0x51a):_0x350543(0x4c3)),'onClick':()=>_0x352956(0x0),'children':[_0x4dbffa['t']('sheets-shape.shapeStyle'),(0x0,C[_0x350543(0x45d)])(_0x350543(0x308),{'className':(0x0,b[_0x350543(0x73d)])(_0x350543(0x1e4),{'univer-bg-primary-600':_0x359abe===0x0,'univer-bg-transparent':_0x359abe!==0x0})})]}),(0x0,C['jsxs'])('div',{'className':(0x0,b[_0x350543(0x73d)])(_0x350543(0x339),{'univer-text-primary-600':_0x359abe===0x1,'univer-text-gray-500':_0x359abe!==0x1}),'onClick':()=>_0x352956(0x1),'children':[_0x4dbffa['t']('sheets-shape.shapePosition'),(0x0,C['jsx'])(_0x350543(0x308),{'className':(0x0,b[_0x350543(0x73d)])(_0x350543(0x4db),{'univer-bg-primary-600':_0x359abe===0x1,'univer-bg-transparent':_0x359abe!==0x1})})]})]}),(0x0,C[_0x350543(0x45d)])(_0x350543(0x308),{'className':'univer-flex-1\x20univer-overflow-auto','children':_0x359abe===0x0?(0x0,C['jsx'])(_0x350543(0x308),{'className':'','children':(0x0,C[_0x350543(0x45d)])(b[_0x350543(0x52b)],{'items':_0x25d233})},_0x1d14c3):(0x0,C['jsx'])(le,{})})]});}var ue=class extends m[_0x8b89eb(0x4df)]{constructor(_0x27334f,_0x14317e){const _0x4e9fe4=_0x8b89eb;super(_0x27334f,_0x14317e),k(this,_0x4e9fe4(0x501),null),k(this,_0x4e9fe4(0x486),null),k(this,'_unitId',null),k(this,_0x4e9fe4(0x69e),null),_0x14317e&&this['setShapeProps'](_0x14317e);}['getDrawingSearch'](){const _0xbde149=_0x8b89eb;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0xbde149(0x501)]};}[_0x8b89eb(0x6c0)](_0x30016d){const _0xe1b350=_0x8b89eb;_0x30016d[_0xe1b350(0x3a6)]!==void 0x0&&(this[_0xe1b350(0x501)]=_0x30016d[_0xe1b350(0x3a6)]),_0x30016d[_0xe1b350(0x3d1)]!==void 0x0&&(this[_0xe1b350(0x486)]=_0x30016d[_0xe1b350(0x3d1)]),_0x30016d[_0xe1b350(0x4cd)]!==void 0x0&&(this[_0xe1b350(0x41d)]=_0x30016d[_0xe1b350(0x4cd)]),_0x30016d[_0xe1b350(0x439)]!==void 0x0&&(this['_subUnitId']=_0x30016d[_0xe1b350(0x439)]),this['transformByState']({'width':_0x30016d[_0xe1b350(0x497)],'height':_0x30016d[_0xe1b350(0x560)]});}['_draw'](_0x944183){const _0x4b6472=_0x8b89eb;m[_0x4b6472(0x2fc)][_0x4b6472(0x3fe)](_0x944183,{'radius':y[_0x4b6472(0x619)][_0x4b6472(0x608)],'fill':y[_0x4b6472(0x619)][_0x4b6472(0x571)],'stroke':y[_0x4b6472(0x619)][_0x4b6472(0x6b2)],'strokeWidth':0x1,'evented':!0x0});}};let X=class extends l[_0x8b89eb(0x301)]{constructor(_0x37a2e1,_0x302019,_0x407e7b,_0x38b0be,_0x3aeee3,_0x1f7a38,_0x11a792,_0x441e74){const _0x29cc1e=_0x8b89eb;super(),this[_0x29cc1e(0x6ce)]=_0x37a2e1,this['_contextService']=_0x302019,this[_0x29cc1e(0x287)]=_0x407e7b,this[_0x29cc1e(0x36b)]=_0x38b0be,this[_0x29cc1e(0x6b0)]=_0x3aeee3,this['_sheetDrawingShapeRenderController']=_0x1f7a38,this[_0x29cc1e(0x415)]=_0x11a792,this[_0x29cc1e(0x56d)]=_0x441e74,k(this,_0x29cc1e(0x38a),null),k(this,_0x29cc1e(0x41d),null),k(this,'_subUnitId',null),k(this,'_activeShapeAdjustPointList',void 0x0),k(this,_0x29cc1e(0x3bd),[]),k(this,_0x29cc1e(0x3fa),0x0),k(this,_0x29cc1e(0x3de),0x0),k(this,_0x29cc1e(0x6a4),0x0),k(this,_0x29cc1e(0x460),0x0),k(this,_0x29cc1e(0x270),!0x1),k(this,_0x29cc1e(0x2e4),void 0x0),k(this,'_activeShapeModel',void 0x0),k(this,'_adjHandlerPointerMove',void 0x0),k(this,_0x29cc1e(0x4a4),void 0x0),k(this,_0x29cc1e(0x338),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x29cc1e(0x2c3)]();}['_getShapeAdjustPointListById'](_0x3378b5,_0x3c8445,_0x5099b5){const _0x318223=_0x8b89eb;let _0x5a4180=this[_0x318223(0x36b)][_0x318223(0x598)](_0x3378b5,_0x3c8445,_0x5099b5);if(_0x5a4180)return _0x5a4180[_0x318223(0x458)]();}[_0x8b89eb(0x1f0)](){const _0x449d1f=_0x8b89eb;this[_0x449d1f(0x3af)]();}[_0x8b89eb(0x36f)](){const _0x512b4c=_0x8b89eb;this[_0x512b4c(0x4a3)](!0x0);}[_0x8b89eb(0x613)](_0x22d0bd){const _0xc5e267=_0x8b89eb;this[_0xc5e267(0x338)]=_0x22d0bd;}['_getShapeAdjustInfosById'](_0x4cb22f,_0x50a7ad,_0x5143df,_0x42ca62){const _0x4142da=_0x8b89eb;let _0x2d7ae4=this[_0x4142da(0x36b)][_0x4142da(0x598)](_0x4cb22f,_0x50a7ad,_0x5143df);if(_0x2d7ae4)return _0x2d7ae4[_0x4142da(0x2d6)](_0x42ca62);}['_createShapeAdjustControls'](_0x3dc7db=!0x1){const _0x56f485=_0x8b89eb;if(this[_0x56f485(0x41d)]===null||this['_subUnitId']===null||this['_activeShapeId']===null)return;let _0x8b1a3=this[_0x56f485(0x6b0)][_0x56f485(0x2b0)](this['_unitId']);if(!_0x8b1a3||!_0x8b1a3['with'](_[_0x56f485(0x42c)])[_0x56f485(0x4c5)]())return;let {scene:_0x330910}=_0x8b1a3,_0x733fe3={'unitId':this[_0x56f485(0x41d)],'subUnitId':this[_0x56f485(0x69e)],'drawingId':this[_0x56f485(0x38a)]},_0x516080=this[_0x56f485(0x287)]['getDrawingByParam'](_0x733fe3),{transform:_0x4aba4f}=_0x516080;if(!_0x4aba4f||_0x516080[_0x56f485(0x6e7)]!==l[_0x56f485(0x638)][_0x56f485(0x73a)])return;let {left:_0x57df8b,top:_0x16344e,width:_0x49fe43,height:_0x360b28,flipX:_0x4f0985,flipY:_0x25dc45,angle:_0x4dbad9=0x0}=_0x4aba4f;if(_0x57df8b===void 0x0||_0x16344e===void 0x0)return;_0x3dc7db&&(this['_activeShapeAdjustPointList']=this[_0x56f485(0x47d)](this[_0x56f485(0x41d)],this[_0x56f485(0x69e)],this[_0x56f485(0x38a)]));let _0x3693b9=this[_0x56f485(0x6b8)];for(let _0x4b64f2=0x0;_0x4b64f2<_0x3693b9[_0x56f485(0x41f)];_0x4b64f2++){let _0x4a11e2=_0x3693b9[_0x4b64f2],_0x35a693=_0x4a11e2['x'],_0x1ae857=_0x4a11e2['y'];if(_0x4f0985&&(_0x35a693=(_0x49fe43||0x0)-_0x35a693),_0x25dc45&&(_0x1ae857=(_0x360b28||0x0)-_0x1ae857),_0x4dbad9!==0x0){let _0x4c39bb=(_0x49fe43||0x0)/0x2,_0xc87201=(_0x360b28||0x0)/0x2,_0x36f323=_0x4dbad9*Math['PI']/0xb4,_0x43d6e5=Math[_0x56f485(0x5e5)](_0x36f323),_0x386fba=Math[_0x56f485(0x1ea)](_0x36f323),_0x2388b8=_0x35a693-_0x4c39bb,_0x19b86b=_0x1ae857-_0xc87201;_0x35a693=_0x4c39bb+(_0x2388b8*_0x43d6e5-_0x19b86b*_0x386fba),_0x1ae857=_0xc87201+(_0x2388b8*_0x386fba+_0x19b86b*_0x43d6e5);}let _0x364dc1={'x':_0x35a693,'y':_0x1ae857,'adjName':_0x4a11e2[_0x56f485(0x3d1)]};this[_0x56f485(0x610)](_0x330910,_0x364dc1,_0x364dc1[_0x56f485(0x3d1)],_0x57df8b,_0x16344e,this[_0x56f485(0x41d)],this[_0x56f485(0x69e)]);}}[_0x8b89eb(0x4a3)](_0x587095=!0x1){const _0x2a26d7=_0x8b89eb;_0x587095&&(this[_0x2a26d7(0x3af)](),this[_0x2a26d7(0x67e)](_0x587095));}[_0x8b89eb(0x610)](_0xb25e4f,_0xbb6ecc,_0x4a87ab,_0x4f6d27,_0x5e2131,_0x42143e,_0x16ceb2){const _0x3dd079=_0x8b89eb;if(!this['_activeShapeId'])return;let _0x4fb860=_0xb25e4f[_0x3dd079(0x5db)](_0x3dd079(0x386)+this[_0x3dd079(0x38a)]+'-'+_0x4a87ab);if(_0x4fb860){_0x4fb860['transformByState']({'left':_0xbb6ecc['x']+_0x4f6d27-y[_0x3dd079(0x619)][_0x3dd079(0x608)],'top':_0xbb6ecc['y']+_0x5e2131-y[_0x3dd079(0x619)]['adjHandleSize']});return;}let _0x116e4c={'left':_0xbb6ecc['x']+_0x4f6d27-y[_0x3dd079(0x619)][_0x3dd079(0x608)],'top':_0xbb6ecc['y']+_0x5e2131-y[_0x3dd079(0x619)][_0x3dd079(0x608)],'adjName':_0x4a87ab,'shapeId':this['_activeShapeId'],'unitId':_0x42143e,'subUnitId':_0x16ceb2,'width':y[_0x3dd079(0x619)][_0x3dd079(0x608)]+0x8,'height':y[_0x3dd079(0x619)][_0x3dd079(0x608)]+0x8,'zIndex':m['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0xb3ab71=new ue('shape-adjust-point-'+this[_0x3dd079(0x38a)]+'-'+_0x4a87ab,_0x116e4c);this[_0x3dd079(0x3bd)]['push'](_0xb3ab71),this[_0x3dd079(0x3ec)](_0xb3ab71,_0xb25e4f,_0x4a87ab),_0xb25e4f[_0x3dd079(0x2f1)](_0xb3ab71,m[_0x3dd079(0x67b)]+0x1);}['_clearShapeAdjustControls'](){const _0x30a299=_0x8b89eb;this[_0x30a299(0x3bd)]['length']!==0x0&&(this[_0x30a299(0x3bd)][_0x30a299(0x291)](_0xb23603=>{_0xb23603['dispose']();}),this[_0x30a299(0x3bd)]=[]);}[_0x8b89eb(0x5b3)](){const _0x414c4a=_0x8b89eb;this[_0x414c4a(0x67e)]();}['_getScrollInfo'](_0x1c4356,_0xa79d14){const _0x3a6278=_0x8b89eb;var _0x2a2af4;let _0xee3381={'x':0x0,'y':0x0};if(!_0x1c4356||!_0xa79d14)return _0xee3381;let _0x35535c=this[_0x3a6278(0x6b0)][_0x3a6278(0x2b0)](_0x1c4356);if(!_0x35535c||!_0x35535c[_0x3a6278(0x6fa)](_['SheetSkeletonManagerService'])[_0x3a6278(0x730)](_0xa79d14))return _0xee3381;let _0x1e1e08=_0x35535c[_0x3a6278(0x6fa)](_['SheetScrollManagerService']),_0x1c74d0=_0x1e1e08==null?void 0x0:_0x1e1e08[_0x3a6278(0x28f)]();if(!_0x1c74d0)return _0xee3381;let _0x3e2533=(_0x2a2af4=this[_0x3a6278(0x415)][_0x3a6278(0x6a6)](_0x1c4356))==null?void 0x0:_0x2a2af4[_0x3a6278(0x276)](_0xa79d14);if(!_0x3e2533)return _0xee3381;let _0x55645b=(0x0,_['getViewportByCell'])(_0x1c74d0[_0x3a6278(0x3e4)],_0x1c74d0[_0x3a6278(0x2b6)],_0x35535c[_0x3a6278(0x272)],_0x3e2533);return _0x55645b?{'x':_0x55645b['viewportScrollX'],'y':_0x55645b[_0x3a6278(0x3b1)]}:_0xee3381;}[_0x8b89eb(0x583)](_0x34b3c4,_0x5b51f2){const _0x1d4947=_0x8b89eb;var _0x99b0d,_0x2ebf61;let _0x517ebe=(_0x99b0d=this['_univerInstanceService'][_0x1d4947(0x6a6)](_0x34b3c4))==null?void 0x0:_0x99b0d[_0x1d4947(0x276)](_0x5b51f2);return(_0x2ebf61=_0x517ebe==null?void 0x0:_0x517ebe[_0x1d4947(0x375)]())==null?0x1:_0x2ebf61;}[_0x8b89eb(0x3ec)](_0x3017a4,_0x3bfdc2,_0x31934d){const _0x46f069=_0x8b89eb;this[_0x46f069(0x37c)]((0x0,l['toDisposable'])(_0x3017a4[_0x46f069(0x438)]['subscribeEvent']((_0x35390c,_0x3825e3)=>{const _0x548402=_0x46f069;var _0x584220,_0x221542,_0x1a4856,_0x514a0d;let _0x3f2f41=_0x3017a4['getDrawingSearch']();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x3f2f41['unitId'],_0x3f2f41['subUnitId'],_0x3f2f41[_0x548402(0x591)],_0x31934d),this[_0x548402(0x68a)]=this[_0x548402(0x36b)][_0x548402(0x598)](_0x3f2f41[_0x548402(0x4cd)],_0x3f2f41['subUnitId'],_0x3f2f41['drawingId']);let _0x2c4c54=this[_0x548402(0x287)][_0x548402(0x34e)]({'unitId':this[_0x548402(0x41d)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x548402(0x38a)]}),{transform:_0x232081}=_0x2c4c54;if(_0x232081){let {left:_0x53b40c,top:_0x4d314d,width:_0x235255,height:_0x47f65b}=_0x232081;this['_baseShapeLeft']=_0x53b40c||0x0,this['_baseShapeTop']=_0x4d314d||0x0,this[_0x548402(0x6a4)]=_0x235255||0x0,this['_baseShapeHeight']=_0x47f65b||0x0;}let _0x2c93f6=!!((_0x584220=_0x2c4c54[_0x548402(0x5f1)])!=null&&_0x584220['flipX']),_0x2009fb=!!((_0x221542=_0x2c4c54[_0x548402(0x5f1)])!=null&&_0x221542[_0x548402(0x369)]),_0x242b58=((_0x1a4856=_0x2c4c54[_0x548402(0x5f1)])==null?void 0x0:_0x1a4856[_0x548402(0x42d)])||0x0;this[_0x548402(0x270)]=!0x0,_0x3bfdc2[_0x548402(0x280)]();let _0x43fa67=(_0x514a0d=this[_0x548402(0x68a)])==null?void 0x0:_0x514a0d[_0x548402(0x54c)](_0x31934d),_0x2668df={[_0x31934d]:_0x43fa67};this[_0x548402(0x33e)]=_0x3bfdc2[_0x548402(0x4e0)][_0x548402(0x507)]((_0x4f1e92,_0x5cf5a8)=>{const _0x64602=_0x548402;if(!this[_0x64602(0x270)])return;let {offsetX:_0x574956,offsetY:_0x282354}=_0x4f1e92,_0x25ca34=this['_activeAdjustInfo'];if(this[_0x64602(0x68a)]&&_0x25ca34){_0x3bfdc2[_0x64602(0x280)](),_0x3bfdc2['setCursor'](m[_0x64602(0x626)][_0x64602(0x556)]);let _0x81ab0b={'left':0x0,'top':0x0,'width':this[_0x64602(0x6a4)],'height':this[_0x64602(0x460)]},_0x126610=this[_0x64602(0x3e7)](this[_0x64602(0x41d)],this['_subUnitId']),_0x3c89a0=this['_getZoomRatio'](this[_0x64602(0x41d)],this[_0x64602(0x69e)]),_0x2c7c5a=_0x574956/_0x3c89a0+_0x126610['x']-this[_0x64602(0x3fa)],_0x51948b=_0x282354/_0x3c89a0+_0x126610['y']-this[_0x64602(0x3de)];if(_0x242b58!==0x0){let _0x3e1260=this[_0x64602(0x6a4)]/0x2,_0x3b6a63=this[_0x64602(0x460)]/0x2,_0x1a7f90=_0x242b58*Math['PI']/0xb4,_0x24a667=Math[_0x64602(0x5e5)](_0x1a7f90),_0x3439f7=Math[_0x64602(0x1ea)](_0x1a7f90),_0x1d4853=_0x2c7c5a-_0x3e1260,_0x269781=_0x51948b-_0x3b6a63;_0x2c7c5a=_0x3e1260+(_0x1d4853*_0x24a667+_0x269781*_0x3439f7),_0x51948b=_0x3b6a63+(-_0x1d4853*_0x3439f7+_0x269781*_0x24a667);}_0x2c93f6&&(_0x2c7c5a=this[_0x64602(0x6a4)]-_0x2c7c5a),_0x2009fb&&(_0x51948b=this['_baseShapeHeight']-_0x51948b);let _0xf75847={'x':_0x2c7c5a,'y':_0x51948b},_0x5e443e=this[_0x64602(0x68a)]['calcAdjValue'](_0x81ab0b,_0xf75847,_0x25ca34,_0x2c93f6,_0x2009fb),_0x1f2774=_0x25ca34['gdRefX']||_0x25ca34['gdRefY']||_0x25ca34['gdRefAng']||_0x25ca34[_0x64602(0x588)];if(_0x1f2774===void 0x0)return;this[_0x64602(0x68a)][_0x64602(0x3cb)](_0x1f2774,_0x5e443e);let _0x36429b=this['_drawingManagerService'][_0x64602(0x34e)]({'unitId':_0x3f2f41[_0x64602(0x4cd)],'subUnitId':_0x3f2f41[_0x64602(0x439)],'drawingId':_0x3f2f41[_0x64602(0x591)]});_0x36429b&&(this[_0x64602(0x4da)][_0x64602(0x73f)](_0x36429b,_0x3bfdc2),this['_activeShapeAdjustPointList']=this[_0x64602(0x47d)](_0x3f2f41[_0x64602(0x4cd)],_0x3f2f41['subUnitId'],_0x3f2f41['drawingId']),this[_0x64602(0x5b3)]());}_0x5cf5a8[_0x64602(0x59d)]();}),this[_0x548402(0x4a4)]=_0x3bfdc2[_0x548402(0x74f)][_0x548402(0x507)]((_0x48b194,_0x4a29c5)=>{const _0x423145=_0x548402;this[_0x423145(0x33e)]['unsubscribe'](),this[_0x423145(0x4a4)][_0x423145(0x5aa)](),_0x3bfdc2[_0x423145(0x307)]();let _0x2bc2bd=this[_0x423145(0x2e4)];if(_0x2bc2bd){let _0x2be2f5=_0x3f2f41[_0x423145(0x4cd)],_0x4a33fb=_0x3f2f41['subUnitId'],_0x434832=_0x3f2f41[_0x423145(0x591)],_0x3f4d5e=_0x2bc2bd[_0x423145(0x549)]||_0x2bc2bd[_0x423145(0x20b)]||_0x2bc2bd['gdRefAng']||_0x2bc2bd['gdRefR'];if(_0x3f4d5e!==void 0x0){var _0x1f8b2d;let _0x520ec9=(_0x1f8b2d=this[_0x423145(0x68a)])==null?void 0x0:_0x1f8b2d[_0x423145(0x54c)](_0x3f4d5e);_0x520ec9!==void 0x0&&V(this[_0x423145(0x56d)],_0x2be2f5,_0x4a33fb,_0x434832,{'oldShapeData':{'adjustValues':_0x2668df}},{'adjustValues':{[_0x3f4d5e]:_0x520ec9}});}}this['_activeAdjustInfo']=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x423145(0x270)]=!0x1,_0x4a29c5['stopPropagation'](),_0x3bfdc2[_0x423145(0x46f)]();}),_0x3825e3[_0x548402(0x59d)]();})));}['_registerDrawingMoveHandler'](){const _0x1954fa=_0x8b89eb;let _0x500aab=this[_0x1954fa(0x415)][_0x1954fa(0x62c)](l['UniverInstanceType']['UNIVER_SHEET']);this[_0x1954fa(0x37c)](_0x500aab[_0x1954fa(0x2f4)]((0x0,f[_0x1954fa(0x724)])(_0x3c9ef2=>_0x3c9ef2?_0x3c9ef2[_0x1954fa(0x54e)][_0x1954fa(0x2f4)]((0x0,f['switchMap'])(_0x1d3989=>{const _0x13e7a4=_0x1954fa;if(!_0x1d3989)return f['EMPTY'];let _0x906dc5=_0x3c9ef2[_0x13e7a4(0x582)](),_0xe9667a=this[_0x13e7a4(0x6b0)]['getRenderById'](_0x906dc5),_0x583666=_0xe9667a==null?void 0x0:_0xe9667a[_0x13e7a4(0x272)];return _0x583666?(0x0,f['of'])(_0x583666):f[_0x13e7a4(0x575)];})):f[_0x1954fa(0x575)]))['subscribe'](_0x242a4b=>{const _0x5293ba=_0x1954fa;let _0x17b113=_0x242a4b[_0x5293ba(0x4e5)]();this['disposeWithMe'](_0x242a4b[_0x5293ba(0x4e0)][_0x5293ba(0x507)](()=>{const _0x4eedc5=_0x5293ba;this[_0x4eedc5(0x338)];})),this[_0x5293ba(0x37c)](_0x17b113[_0x5293ba(0x5c6)][_0x5293ba(0x4ee)](_0x39d465=>{const _0x52e8db=_0x5293ba;let {objects:_0x11c76f}=_0x39d465;this['_createShapeAdjustControls'](),_0x11c76f!==null&&_0x11c76f[_0x52e8db(0x4c9)]===0x1&&_0x11c76f[_0x52e8db(0x54f)]()[_0x52e8db(0x31c)]()[_0x52e8db(0x21d)]instanceof H&&this['setShouldShowAdjust'](!0x0);})),this[_0x5293ba(0x37c)](_0x17b113[_0x5293ba(0x603)][_0x5293ba(0x4ee)](()=>{const _0x3e380e=_0x5293ba;this[_0x3e380e(0x338)]&&this[_0x3e380e(0x3af)]();})),this[_0x5293ba(0x37c)](_0x242a4b['onPointerUp$'][_0x5293ba(0x507)](()=>{const _0x1d6bc1=_0x5293ba;this[_0x1d6bc1(0x338)]&&(this[_0x1d6bc1(0x613)](!0x1),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x17b113['changeEnd$'][_0x5293ba(0x4ee)](()=>{const _0x2bceb4=_0x5293ba;this[_0x2bceb4(0x41d)]&&this[_0x2bceb4(0x69e)]&&this[_0x2bceb4(0x38a)]&&this[_0x2bceb4(0x287)][_0x2bceb4(0x34e)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2bceb4(0x38a)]})&&(this[_0x2bceb4(0x6b8)]=this[_0x2bceb4(0x47d)](this[_0x2bceb4(0x41d)],this[_0x2bceb4(0x69e)],this[_0x2bceb4(0x38a)]),this[_0x2bceb4(0x5b3)]());}));}));}[_0x8b89eb(0x5c0)](){const _0x4d5782=_0x8b89eb;this['disposeWithMe'](this['_drawingManagerService'][_0x4d5782(0x3f3)]['subscribe'](_0x2f59cf=>{const _0x5806b2=_0x4d5782;if(_0x2f59cf[_0x5806b2(0x41f)]===0x1){let _0x2e224f=_0x2f59cf[0x0];if(_0x2e224f[_0x5806b2(0x6e7)]===l['DrawingTypeEnum'][_0x5806b2(0x73a)]){this[_0x5806b2(0x38a)]=_0x2e224f[_0x5806b2(0x591)];let {unitId:_0x3f3010,subUnitId:_0x289926}=_0x2e224f;this['_activeShapeAdjustPointList']=this[_0x5806b2(0x47d)](_0x3f3010,_0x289926,this['_activeShapeId']),this[_0x5806b2(0x41d)]=_0x3f3010,this[_0x5806b2(0x69e)]=_0x289926,this[_0x5806b2(0x3af)](),this[_0x5806b2(0x67e)]();}else this['_activeShapeId']=null,this[_0x5806b2(0x6b8)]=void 0x0,this[_0x5806b2(0x41d)]=null,this[_0x5806b2(0x69e)]=null,this[_0x5806b2(0x3af)]();}(_0x2f59cf['length']>0x1||_0x2f59cf[_0x5806b2(0x41f)]===0x0)&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x5806b2(0x41d)]=null,this[_0x5806b2(0x69e)]=null,this[_0x5806b2(0x3af)]());})),this[_0x4d5782(0x37c)](this[_0x4d5782(0x287)][_0x4d5782(0x65d)][_0x4d5782(0x4ee)](_0x1314fc=>{const _0x14465f=_0x4d5782;if(_0x1314fc[_0x14465f(0x41f)]===0x1){var _0x717e49;let _0x442d13=_0x1314fc[0x0];((_0x717e49=this[_0x14465f(0x287)][_0x14465f(0x34e)](_0x442d13))==null?void 0x0:_0x717e49[_0x14465f(0x6e7)])===l[_0x14465f(0x638)][_0x14465f(0x73a)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x4d5782(0x37c)](this[_0x4d5782(0x287)][_0x4d5782(0x29d)]['subscribe'](_0x1abecf=>{const _0x4873a4=_0x4d5782;for(let _0x3b5e4e of _0x1abecf)this['_activeShapeId']===_0x3b5e4e[_0x4873a4(0x591)]&&(this[_0x4873a4(0x38a)]=null,this[_0x4873a4(0x6b8)]=void 0x0,this[_0x4873a4(0x41d)]=null,this[_0x4873a4(0x69e)]=null,this[_0x4873a4(0x3af)]());}));}};X=W([U(0x1,l[_0x8b89eb(0x538)]),U(0x2,p[_0x8b89eb(0x5ba)]),U(0x3,(0x0,l[_0x8b89eb(0x3f0)])(c['SheetsShapeService'])),U(0x4,(0x0,l['Inject'])(m['IRenderManagerService'])),U(0x5,(0x0,l[_0x8b89eb(0x3f0)])(G)),U(0x6,l['IUniverInstanceService']),U(0x7,l[_0x8b89eb(0x6d6)])],X);const Z={'id':_0x8b89eb(0x235),'type':l['CommandType'][_0x8b89eb(0x534)],'handler':(_0x19ff61,_0x449040)=>{const _0x1bafa9=_0x8b89eb;let _0x457599=_0x19ff61[_0x1bafa9(0x302)](p[_0x1bafa9(0x5ba)]),_0x43b7ac=_0x19ff61[_0x1bafa9(0x302)](m[_0x1bafa9(0x6ec)]),_0x43027c=_0x19ff61['get'](X);if(_0x449040==null)return!0x0;if(_0x449040[_0x1bafa9(0x41f)]>0x0){var _0x5a14ab;let _0xf65a58=(_0x5a14ab=_0x43b7ac[_0x1bafa9(0x2b0)](_0x449040[0x0]['unitId']))==null?void 0x0:_0x5a14ab['scene'];if(_0xf65a58){let {unitId:_0x29e7b4,subUnitId:_0x529b77,drawingId:_0x5898a3}=_0x449040[0x0],_0x534a85=(0x0,p[_0x1bafa9(0x715)])({'unitId':_0x29e7b4,'subUnitId':_0x529b77,'drawingId':_0x5898a3},void 0x0),_0x2a921c=_0xf65a58['getObjectIncludeInGroup'](_0x534a85);if(_0x2a921c){var _0x594a65;(_0x594a65=_0x43b7ac[_0x1bafa9(0x2b0)](_0x449040[0x0][_0x1bafa9(0x4cd)]))==null||(_0x594a65=_0x594a65[_0x1bafa9(0x272)]['getTransformer']())==null||_0x594a65[_0x1bafa9(0x4f4)](_0x2a921c);}}_0x457599[_0x1bafa9(0x39c)](_0x449040),_0x43027c[_0x1bafa9(0x613)](!0x1);}return!0x0;}},Q={'type':l['CommandType'][_0x8b89eb(0x489)],'id':_0x8b89eb(0x212),'handler':async(_0x3cdfe3,_0x502e44)=>{const _0x33614a=_0x8b89eb;let _0x510e03=(0x0,u[_0x33614a(0x2e1)])(_0x3cdfe3['get'](l['IUniverInstanceService']));if(!_0x510e03)return!0x1;let _0x4091b5=_0x3cdfe3[_0x33614a(0x302)](u[_0x33614a(0x46d)])[_0x33614a(0x62d)]();if(!_0x4091b5)return!0x1;let _0x5ddfea=_0x3cdfe3[_0x33614a(0x302)](l[_0x33614a(0x6d6)]),{unitId:_0x307bb3,subUnitId:_0x710eb6}=_0x510e03,{value:_0x19cb4f,enhanceParams:_0xccfa07}=_0x502e44,{range:_0x1be894}=_0x4091b5,_0x2d472e={'unitId':_0x307bb3,'subUnitId':_0x710eb6,'shapeType':_0x19cb4f,'range':_0x1be894,'shapeId':(0x0,l[_0x33614a(0x6dd)])()};if(_0xccfa07){let _0x471473=(0x0,y[_0x33614a(0x6a8)])(_0x19cb4f),_0x5e63b6=_0x19cb4f===y[_0x33614a(0x54a)][_0x33614a(0x60b)];_0x471473&&(_0xccfa07[_0x33614a(0x749)]||_0xccfa07[_0x33614a(0x6b4)])&&(_0x2d472e['shapeData']={'ln':{'startArrow':_0xccfa07[_0x33614a(0x749)]?{'type':y['ShapeArrowTypeEnum'][_0x33614a(0x6c2)],'size':y[_0x33614a(0x58d)]['Medium']}:void 0x0,'endArrow':_0xccfa07['endArrow']?{'type':y[_0x33614a(0x423)][_0x33614a(0x6c2)],'size':y[_0x33614a(0x58d)]['Large']}:void 0x0}}),_0x5e63b6&&(_0xccfa07['horizontal']||_0xccfa07[_0x33614a(0x32c)])&&(_0x2d472e[_0x33614a(0x2e3)]={'fill':{'fillType':y[_0x33614a(0x656)][_0x33614a(0x3ef)],'color':_0x33614a(0x459)},'stroke':{'lineStrokeType':y[_0x33614a(0x2ba)][_0x33614a(0x43c)],'width':0x1,'color':_0x33614a(0x22d)},'shapeText':{'isHorizontal':!!_0xccfa07[_0x33614a(0x1ef)]}});}let _0x28946b=_0x5ddfea[_0x33614a(0x515)](c[_0x33614a(0x334)]['id'],_0x2d472e);return setTimeout(()=>{const _0x5dbcef=_0x33614a;_0x5ddfea[_0x5dbcef(0x279)](Z['id'],[{'unitId':_0x307bb3,'subUnitId':_0x710eb6,'drawingId':_0x2d472e[_0x5dbcef(0x3a6)]}]);},0xc8),_0x28946b;}};let de=class extends l[_0x8b89eb(0x301)]{constructor(_0x50a23d,_0x25a384){const _0x254a73=_0x8b89eb;super(),this[_0x254a73(0x231)]=_0x50a23d,this[_0x254a73(0x287)]=_0x25a384,this[_0x254a73(0x622)](),this['_clipService'][_0x254a73(0x47e)](!0x0),this[_0x254a73(0x37c)]({'dispose':()=>this[_0x254a73(0x231)][_0x254a73(0x47e)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x16e906=_0x8b89eb;let _0x2680d8=this[_0x16e906(0x231)],_0x3afba2=new Map(),_0x5c6dcc=_0x2680d8[_0x16e906(0x3fb)]((_0x31d687,_0x2fd4ca,_0x9d1c88,_0x548c00,_0x10216d)=>{const _0x900d28=_0x16e906;let _0x333801=_0x2fd4ca;if(_0x333801===y[_0x900d28(0x54a)][_0x900d28(0x30d)]||_0x2fd4ca===_0x900d28(0x738))return!0x1;try{let _0x205d38=_0x3afba2[_0x900d28(0x302)](_0x2fd4ca);return _0x205d38||(_0x205d38=new y['ShapeModel'](_0x333801,_0x900d28(0x4e6)+_0x2fd4ca),_0x3afba2[_0x900d28(0x6ff)](_0x2fd4ca,_0x205d38)),_0x10216d&&_0x205d38[_0x900d28(0x2ed)]({'adjustValues':_0x10216d},!0x0),_0x205d38[_0x900d28(0x6a3)]({'width':_0x9d1c88,'height':_0x548c00}),_0x205d38[_0x900d28(0x1f1)](_0x31d687,{'left':0x0,'top':0x0,'width':_0x9d1c88,'height':_0x548c00});}catch{return!0x1;}});this[_0x16e906(0x37c)](_0x5c6dcc),this[_0x16e906(0x37c)]({'dispose':()=>_0x3afba2[_0x16e906(0x2d5)]()});}[_0x8b89eb(0x673)](_0x1a0fbb,_0x37dcd5,_0x39b8e6,_0x3e4782,_0x2cc60a){const _0x5ea3aa=_0x8b89eb;let _0x4ed1d8=this['_drawingManagerService']['getDrawingData'](_0x1a0fbb,_0x37dcd5);if(!_0x4ed1d8[_0x39b8e6])return;let _0x5c2841={..._0x4ed1d8[_0x39b8e6],'prstGeom':_0x3e4782,'adjustValues':_0x2cc60a};this[_0x5ea3aa(0x287)]['featurePluginUpdateNotification']([_0x5c2841]);}};de=W([U(0x0,(0x0,l[_0x8b89eb(0x3f0)])(S[_0x8b89eb(0x412)])),U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(p[_0x8b89eb(0x5ba)]))],de);const fe=[{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x73c)],'icon':'ShapeLineIcon','name':_0x8b89eb(0x477)},{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x505)],'icon':_0x8b89eb(0x269),'name':'shape.type.straight-connector1','endArrow':!0x0},{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)]['StraightConnector1'],'icon':_0x8b89eb(0x376),'name':_0x8b89eb(0x23f),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x271)],'icon':_0x8b89eb(0x669),'name':_0x8b89eb(0x4d0)},{'group':_0x8b89eb(0x68e),'type':y['ShapeTypeEnum'][_0x8b89eb(0x271)],'icon':_0x8b89eb(0x4ff),'name':_0x8b89eb(0x305),'endArrow':!0x0},{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x271)],'icon':_0x8b89eb(0x2c0),'name':_0x8b89eb(0x48c),'endArrow':!0x0,'startArrow':!0x0},{'group':'line','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4a8)],'icon':_0x8b89eb(0x690),'name':_0x8b89eb(0x3dd)},{'group':_0x8b89eb(0x68e),'type':y[_0x8b89eb(0x54a)]['CurvedConnector3'],'icon':'ShapeCurvedConnector3Arrow1Icon','name':_0x8b89eb(0x5b4),'endArrow':!0x0},{'group':'line','type':y['ShapeTypeEnum']['CurvedConnector3'],'icon':_0x8b89eb(0x3c5),'name':_0x8b89eb(0x4d2),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x8b89eb(0x643),'type':y[_0x8b89eb(0x54a)]['Rect'],'icon':'ShapeRectIcon','name':'shape.type.rect'},{'group':_0x8b89eb(0x643),'type':y[_0x8b89eb(0x54a)]['RoundRect'],'icon':_0x8b89eb(0x637),'name':_0x8b89eb(0x2b2)},{'group':'rectangle','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x413)],'icon':'ShapeSnip1RectIcon','name':'shape.type.snip1-rect'},{'group':'rectangle','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x341)],'icon':'ShapeSnip2SameRectIcon','name':_0x8b89eb(0x4bb)},{'group':_0x8b89eb(0x643),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x49d)],'icon':'ShapeSnip2DiagRectIcon','name':_0x8b89eb(0x2bd)},{'group':_0x8b89eb(0x643),'type':y['ShapeTypeEnum'][_0x8b89eb(0x716)],'icon':'ShapeSnipRoundRectIcon','name':_0x8b89eb(0x70b)},{'group':_0x8b89eb(0x643),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2c6)],'icon':'ShapeRound1RectIcon','name':_0x8b89eb(0x289)},{'group':_0x8b89eb(0x643),'type':y['ShapeTypeEnum'][_0x8b89eb(0x2d3)],'icon':_0x8b89eb(0x4a1),'name':_0x8b89eb(0x5bb)},{'group':_0x8b89eb(0x643),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x705)],'icon':_0x8b89eb(0x563),'name':_0x8b89eb(0x390)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Rect'],'icon':_0x8b89eb(0x29f),'name':_0x8b89eb(0x51e),'horizontal':!0x0},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Rect'],'icon':_0x8b89eb(0x528),'name':'shape.type.rect-textbox-vertical','vertical':!0x0},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x38d)],'icon':_0x8b89eb(0x736),'name':_0x8b89eb(0x5e3)},{'group':'basicShape','type':y['ShapeTypeEnum']['Triangle'],'icon':'ShapeTriangleIcon','name':_0x8b89eb(0x396)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)]['RightTriangle'],'icon':_0x8b89eb(0x22b),'name':_0x8b89eb(0x478)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Parallelogram'],'icon':_0x8b89eb(0x5f8),'name':_0x8b89eb(0x296)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x642)],'icon':_0x8b89eb(0x366),'name':'shape.type.trapezoid'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Diamond'],'icon':_0x8b89eb(0x406),'name':'shape.type.diamond'},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum'][_0x8b89eb(0x314)],'icon':'ShapePentagonIcon','name':_0x8b89eb(0x384)},{'group':'basicShape','type':y['ShapeTypeEnum'][_0x8b89eb(0x65e)],'icon':_0x8b89eb(0x4a9),'name':_0x8b89eb(0x462)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x387)],'icon':_0x8b89eb(0x684),'name':'shape.type.heptagon'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x473)],'icon':'ShapeOctagonIcon','name':_0x8b89eb(0x498)},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum'][_0x8b89eb(0x2a8)],'icon':_0x8b89eb(0x499),'name':_0x8b89eb(0x509)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Dodecagon'],'icon':'ShapeDodecagonIcon','name':_0x8b89eb(0x27e)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x67c)],'icon':_0x8b89eb(0x723),'name':'shape.type.pie'},{'group':'basicShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3b9)],'icon':'ShapeChordIcon','name':'shape.type.chord'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x662)],'icon':_0x8b89eb(0x6e5),'name':_0x8b89eb(0x3cc)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3b5)],'icon':_0x8b89eb(0x68b),'name':_0x8b89eb(0x427)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x37f)],'icon':_0x8b89eb(0x3cf),'name':'shape.type.half-frame'},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum'][_0x8b89eb(0x6bb)],'icon':'ShapeCornerIcon','name':_0x8b89eb(0x72c)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x327)],'icon':'ShapeDiagStripeIcon','name':_0x8b89eb(0x23a)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x58c)],'icon':_0x8b89eb(0x1fc),'name':'shape.type.plus'},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum']['Plaque'],'icon':_0x8b89eb(0x713),'name':_0x8b89eb(0x725)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6c8)],'icon':_0x8b89eb(0x4cc),'name':'shape.type.can'},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum'][_0x8b89eb(0x53d)],'icon':_0x8b89eb(0x3f6),'name':_0x8b89eb(0x31d)},{'group':'basicShape','type':y['ShapeTypeEnum'][_0x8b89eb(0x6b6)],'icon':_0x8b89eb(0x256),'name':_0x8b89eb(0x565)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x44d)],'icon':_0x8b89eb(0x23e),'name':'shape.type.donut'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x333)],'icon':'ShapeNoSmokingIcon','name':'shape.type.no-smoking'},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum'][_0x8b89eb(0x5ee)],'icon':_0x8b89eb(0x616),'name':_0x8b89eb(0x706)},{'group':_0x8b89eb(0x304),'type':y['ShapeTypeEnum']['FoldedCorner'],'icon':_0x8b89eb(0x419),'name':_0x8b89eb(0x52a)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2ef)],'icon':_0x8b89eb(0x349),'name':'shape.type.smiley-face'},{'group':'basicShape','type':y[_0x8b89eb(0x54a)]['Heart'],'icon':_0x8b89eb(0x6d0),'name':_0x8b89eb(0x614)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x53f)],'icon':_0x8b89eb(0x4e7),'name':'shape.type.lightning-bolt'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Sun'],'icon':_0x8b89eb(0x481),'name':_0x8b89eb(0x719)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2f8)],'icon':'ShapeMoonIcon','name':_0x8b89eb(0x678)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['Cloud'],'icon':_0x8b89eb(0x4b6),'name':'shape.type.cloud'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x40d)],'icon':_0x8b89eb(0x215),'name':_0x8b89eb(0x361)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['BracketPair'],'icon':_0x8b89eb(0x5d4),'name':_0x8b89eb(0x30b)},{'group':'basicShape','type':y['ShapeTypeEnum'][_0x8b89eb(0x520)],'icon':_0x8b89eb(0x50c),'name':_0x8b89eb(0x30f)},{'group':'basicShape','type':y[_0x8b89eb(0x54a)]['LeftBracket'],'icon':_0x8b89eb(0x5e8),'name':_0x8b89eb(0x255)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)]['RightBracket'],'icon':_0x8b89eb(0x6c7),'name':'shape.type.right-bracket'},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x220)],'icon':_0x8b89eb(0x753),'name':_0x8b89eb(0x362)},{'group':_0x8b89eb(0x304),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x30e)],'icon':_0x8b89eb(0x3a2),'name':'shape.type.right-brace'},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2fe)],'icon':_0x8b89eb(0x357),'name':'shape.type.right-arrow'},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4c8)],'icon':'ShapeLeftArrowIcon','name':_0x8b89eb(0x573)},{'group':_0x8b89eb(0x5ab),'type':y['ShapeTypeEnum'][_0x8b89eb(0x471)],'icon':'ShapeUpArrowIcon','name':'shape.type.up-arrow'},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x224)],'icon':_0x8b89eb(0x55b),'name':'shape.type.down-arrow'},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x63e)],'icon':_0x8b89eb(0x63f),'name':_0x8b89eb(0x242)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x61d)],'icon':_0x8b89eb(0x587),'name':_0x8b89eb(0x634)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)]['QuadArrow'],'icon':_0x8b89eb(0x548),'name':'shape.type.quad-arrow'},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)]['LeftRightUpArrow'],'icon':_0x8b89eb(0x54d),'name':_0x8b89eb(0x405)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x48a)],'icon':'ShapeBentArrowIcon','name':_0x8b89eb(0x33a)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x5e1)],'icon':'ShapeUturnArrowIcon','name':_0x8b89eb(0x445)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6bf)],'icon':_0x8b89eb(0x5d1),'name':_0x8b89eb(0x402)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6fc)],'icon':'ShapeBentUpArrowIcon','name':_0x8b89eb(0x572)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x696)],'icon':_0x8b89eb(0x594),'name':_0x8b89eb(0x6f6)},{'group':_0x8b89eb(0x5ab),'type':y['ShapeTypeEnum'][_0x8b89eb(0x68f)],'icon':_0x8b89eb(0x567),'name':_0x8b89eb(0x5de)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x316)],'icon':_0x8b89eb(0x417),'name':'shape.type.curved-up-arrow'},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x328)],'icon':_0x8b89eb(0x4e9),'name':_0x8b89eb(0x496)},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x25a)],'icon':_0x8b89eb(0x653),'name':_0x8b89eb(0x5f6)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x206)],'icon':_0x8b89eb(0x535),'name':_0x8b89eb(0x542)},{'group':_0x8b89eb(0x5ab),'type':y['ShapeTypeEnum'][_0x8b89eb(0x446)],'icon':_0x8b89eb(0x3c4),'name':_0x8b89eb(0x627)},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)]['Chevron'],'icon':'ShapeChevronIcon','name':_0x8b89eb(0x487)},{'group':_0x8b89eb(0x5ab),'type':y['ShapeTypeEnum'][_0x8b89eb(0x4ec)],'icon':_0x8b89eb(0x3b3),'name':_0x8b89eb(0x1eb)},{'group':'blockArrow','type':y['ShapeTypeEnum'][_0x8b89eb(0x42a)],'icon':_0x8b89eb(0x544),'name':_0x8b89eb(0x2b8)},{'group':'blockArrow','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6b9)],'icon':_0x8b89eb(0x6c3),'name':_0x8b89eb(0x69d)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x745)],'icon':_0x8b89eb(0x577),'name':_0x8b89eb(0x388)},{'group':'blockArrow','type':y['ShapeTypeEnum'][_0x8b89eb(0x4f1)],'icon':_0x8b89eb(0x409),'name':_0x8b89eb(0x720)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x48f)],'icon':_0x8b89eb(0x25d),'name':_0x8b89eb(0x63d)},{'group':_0x8b89eb(0x5ab),'type':y[_0x8b89eb(0x54a)]['CircularArrow'],'icon':_0x8b89eb(0x245),'name':'shape.type.circular-arrow'},{'group':_0x8b89eb(0x691),'type':y[_0x8b89eb(0x54a)]['MathPlus'],'icon':_0x8b89eb(0x4fa),'name':_0x8b89eb(0x240)},{'group':'equationShape','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x401)],'icon':_0x8b89eb(0x221),'name':_0x8b89eb(0x5c5)},{'group':_0x8b89eb(0x691),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x584)],'icon':_0x8b89eb(0x1ff),'name':'shape.type.math-multiply'},{'group':_0x8b89eb(0x691),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x434)],'icon':_0x8b89eb(0x632),'name':_0x8b89eb(0x3c0)},{'group':_0x8b89eb(0x691),'type':y['ShapeTypeEnum']['MathEqual'],'icon':_0x8b89eb(0x2c8),'name':_0x8b89eb(0x1fd)},{'group':_0x8b89eb(0x691),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3e9)],'icon':_0x8b89eb(0x67a),'name':'shape.type.math-not-equal'},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x6f0)],'icon':_0x8b89eb(0x710),'name':_0x8b89eb(0x5c3)},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x2fa)],'icon':_0x8b89eb(0x550),'name':'shape.type.flow-chart-alternate-process'},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6d7)],'icon':'ShapeFlowChartDecisionIcon','name':'shape.type.flow-chart-decision'},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x5fe)],'icon':_0x8b89eb(0x4a5),'name':_0x8b89eb(0x57e)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x63c)],'icon':_0x8b89eb(0x47c),'name':_0x8b89eb(0x4cf)},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x50d)],'icon':_0x8b89eb(0x66c),'name':_0x8b89eb(0x63b)},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x35d)],'icon':'ShapeFlowChartDocumentIcon','name':_0x8b89eb(0x494)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x56a)],'icon':_0x8b89eb(0x6d5),'name':_0x8b89eb(0x461)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2ee)],'icon':_0x8b89eb(0x5af),'name':_0x8b89eb(0x3bf)},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x71b)],'icon':_0x8b89eb(0x343),'name':_0x8b89eb(0x437)},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2b3)],'icon':_0x8b89eb(0x595),'name':_0x8b89eb(0x633)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)]['FlowchartManualOperation'],'icon':_0x8b89eb(0x425),'name':'shape.type.flow-chart-manual-operation'},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x22c)],'icon':'ShapeFlowChartConnectorIcon','name':_0x8b89eb(0x5f9)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)]['FlowchartOffPageConnector'],'icon':_0x8b89eb(0x667),'name':'shape.type.flow-chart-offpage-connector'},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x474)],'icon':_0x8b89eb(0x513),'name':_0x8b89eb(0x37b)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x46a)],'icon':_0x8b89eb(0x6af),'name':_0x8b89eb(0x4fd)},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x45b)],'icon':'ShapeFlowChartSummingJunctionIcon','name':_0x8b89eb(0x3b6)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)]['FlowchartOr'],'icon':_0x8b89eb(0x6ca),'name':_0x8b89eb(0x3e2)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x317)],'icon':_0x8b89eb(0x492),'name':_0x8b89eb(0x40a)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2e7)],'icon':_0x8b89eb(0x3e6),'name':'shape.type.flow-chart-sort'},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x447)],'icon':_0x8b89eb(0x2de),'name':_0x8b89eb(0x597)},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)]['FlowchartMerge'],'icon':_0x8b89eb(0x282),'name':'shape.type.flow-chart-merge'},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x48d)],'icon':_0x8b89eb(0x72b),'name':_0x8b89eb(0x5ec)},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x254)],'icon':_0x8b89eb(0x45e),'name':_0x8b89eb(0x748)},{'group':'flowchart','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4e1)],'icon':_0x8b89eb(0x3d0),'name':_0x8b89eb(0x628)},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x73e)],'icon':_0x8b89eb(0x436),'name':'shape.type.flow-chart-magnetic-disk'},{'group':_0x8b89eb(0x267),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x679)],'icon':_0x8b89eb(0x2ca),'name':_0x8b89eb(0x65a)},{'group':_0x8b89eb(0x267),'type':y['ShapeTypeEnum'][_0x8b89eb(0x4e2)],'icon':_0x8b89eb(0x426),'name':_0x8b89eb(0x4c7)},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)]['IrregularSeal1'],'icon':_0x8b89eb(0x6ad),'name':_0x8b89eb(0x4c4)},{'group':_0x8b89eb(0x3d4),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x72f)],'icon':_0x8b89eb(0x5c1),'name':'shape.type.irregular-seal2'},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x51c)],'icon':_0x8b89eb(0x6c1),'name':'shape.type.star4'},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x5b9)],'icon':_0x8b89eb(0x53b),'name':_0x8b89eb(0x735)},{'group':_0x8b89eb(0x3d4),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4b4)],'icon':_0x8b89eb(0x2e9),'name':_0x8b89eb(0x54b)},{'group':_0x8b89eb(0x3d4),'type':y['ShapeTypeEnum'][_0x8b89eb(0x356)],'icon':_0x8b89eb(0x5df),'name':_0x8b89eb(0x5f7)},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x26c)],'icon':_0x8b89eb(0x686),'name':_0x8b89eb(0x365)},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3a5)],'icon':_0x8b89eb(0x4e8),'name':_0x8b89eb(0x57a)},{'group':_0x8b89eb(0x3d4),'type':y['ShapeTypeEnum']['Star12'],'icon':_0x8b89eb(0x4bd),'name':_0x8b89eb(0x232)},{'group':'starAndBanner','type':y['ShapeTypeEnum'][_0x8b89eb(0x6bc)],'icon':_0x8b89eb(0x30a),'name':_0x8b89eb(0x1e6)},{'group':_0x8b89eb(0x3d4),'type':y[_0x8b89eb(0x54a)]['Star24'],'icon':_0x8b89eb(0x4a0),'name':'shape.type.star24'},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x28c)],'icon':_0x8b89eb(0x71f),'name':'shape.type.star32'},{'group':_0x8b89eb(0x3d4),'type':y['ShapeTypeEnum'][_0x8b89eb(0x55f)],'icon':_0x8b89eb(0x746),'name':'shape.type.ribbon2'},{'group':_0x8b89eb(0x3d4),'type':y['ShapeTypeEnum']['Ribbon'],'icon':_0x8b89eb(0x495),'name':_0x8b89eb(0x576)},{'group':'starAndBanner','type':y['ShapeTypeEnum'][_0x8b89eb(0x411)],'icon':_0x8b89eb(0x261),'name':'shape.type.ellipse-ribbon2'},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)]['EllipseRibbon'],'icon':_0x8b89eb(0x3f4),'name':_0x8b89eb(0x26e)},{'group':'starAndBanner','type':y['ShapeTypeEnum'][_0x8b89eb(0x2f3)],'icon':_0x8b89eb(0x3ab),'name':_0x8b89eb(0x344)},{'group':_0x8b89eb(0x3d4),'type':y[_0x8b89eb(0x54a)]['HorizontalScroll'],'icon':_0x8b89eb(0x3fc),'name':_0x8b89eb(0x5f3)},{'group':'starAndBanner','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6eb)],'icon':_0x8b89eb(0x2cd),'name':_0x8b89eb(0x601)},{'group':_0x8b89eb(0x3d4),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4f2)],'icon':_0x8b89eb(0x467),'name':_0x8b89eb(0x574)},{'group':_0x8b89eb(0x4c0),'type':y['ShapeTypeEnum']['WedgeRectCallout'],'icon':_0x8b89eb(0x1fb),'name':_0x8b89eb(0x323)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2eb)],'icon':'ShapeWedgeRoundRectCalloutIcon','name':_0x8b89eb(0x522)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x43e)],'icon':_0x8b89eb(0x536),'name':_0x8b89eb(0x46c)},{'group':'callout','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x5b7)],'icon':'ShapeCloudCalloutIcon','name':'shape.type.cloud-callout'},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)]['BorderCallout1'],'icon':_0x8b89eb(0x391),'name':_0x8b89eb(0x404)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x6b5)],'icon':_0x8b89eb(0x4c6),'name':_0x8b89eb(0x41a)},{'group':_0x8b89eb(0x4c0),'type':y['ShapeTypeEnum']['BorderCallout3'],'icon':_0x8b89eb(0x373),'name':_0x8b89eb(0x570)},{'group':_0x8b89eb(0x4c0),'type':y['ShapeTypeEnum'][_0x8b89eb(0x6cf)],'icon':_0x8b89eb(0x3e3),'name':_0x8b89eb(0x431)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x294)],'icon':'ShapeAccentCallout2Icon','name':_0x8b89eb(0x36c)},{'group':'callout','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x237)],'icon':_0x8b89eb(0x3bc),'name':_0x8b89eb(0x604)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)]['Callout1'],'icon':_0x8b89eb(0x55c),'name':'shape.type.callout1'},{'group':_0x8b89eb(0x4c0),'type':y['ShapeTypeEnum'][_0x8b89eb(0x5ca)],'icon':_0x8b89eb(0x2a9),'name':_0x8b89eb(0x61a)},{'group':'callout','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x201)],'icon':_0x8b89eb(0x4e4),'name':_0x8b89eb(0x33f)},{'group':'callout','type':y[_0x8b89eb(0x54a)]['AccentBorderCallout1'],'icon':_0x8b89eb(0x5d9),'name':_0x8b89eb(0x707)},{'group':'callout','type':y['ShapeTypeEnum'][_0x8b89eb(0x712)],'icon':_0x8b89eb(0x2b4),'name':_0x8b89eb(0x4bf)},{'group':_0x8b89eb(0x4c0),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x62e)],'icon':_0x8b89eb(0x380),'name':'shape.type.accent-border-callout3'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3ba)],'icon':_0x8b89eb(0x350),'name':_0x8b89eb(0x6d3)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3be)],'icon':'ShapeLeftRightCircularArrowIcon','name':_0x8b89eb(0x32e)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['SwooshArrow'],'icon':_0x8b89eb(0x393),'name':_0x8b89eb(0x4ad)},{'group':'other','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x34c)],'icon':_0x8b89eb(0x204),'name':'shape.type.left-right-ribbon'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3ff)],'icon':_0x8b89eb(0x674),'name':_0x8b89eb(0x5a3)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['Funnel'],'icon':_0x8b89eb(0x6c6),'name':_0x8b89eb(0x658)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x364)],'icon':_0x8b89eb(0x530),'name':_0x8b89eb(0x672)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x3aa)],'icon':_0x8b89eb(0x559),'name':'shape.type.gear9'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x657)],'icon':_0x8b89eb(0x3a8),'name':_0x8b89eb(0x2d0)},{'group':_0x8b89eb(0x754),'type':y['ShapeTypeEnum']['ActionButtonBackPrevious'],'icon':_0x8b89eb(0x4de),'name':'shape.type.action-button-back-previous'},{'group':'other','type':y[_0x8b89eb(0x54a)]['ActionButtonForwardNext'],'icon':_0x8b89eb(0x744),'name':_0x8b89eb(0x2e0)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x313)],'icon':_0x8b89eb(0x210),'name':_0x8b89eb(0x325)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x2f2)],'icon':_0x8b89eb(0x4c2),'name':'shape.type.action-button-end'},{'group':_0x8b89eb(0x754),'type':y['ShapeTypeEnum']['ActionButtonHome'],'icon':_0x8b89eb(0x266),'name':'shape.type.action-button-home'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x4f3)],'icon':_0x8b89eb(0x58f),'name':_0x8b89eb(0x71e)},{'group':'other','type':y['ShapeTypeEnum'][_0x8b89eb(0x2ae)],'icon':_0x8b89eb(0x663),'name':_0x8b89eb(0x66a)},{'group':_0x8b89eb(0x754),'type':y['ShapeTypeEnum']['ActionButtonMovie'],'icon':_0x8b89eb(0x36e),'name':_0x8b89eb(0x6ed)},{'group':_0x8b89eb(0x754),'type':y['ShapeTypeEnum'][_0x8b89eb(0x5f4)],'icon':_0x8b89eb(0x5ff),'name':'shape.type.action-button-document'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x72e)],'icon':_0x8b89eb(0x5b1),'name':_0x8b89eb(0x6b7)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x62b)],'icon':'ShapeActionButtonHelpIcon','name':_0x8b89eb(0x346)},{'group':'other','type':y[_0x8b89eb(0x54a)]['ActionButtonBlank'],'icon':_0x8b89eb(0x72d),'name':_0x8b89eb(0x207)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['ChartPlus'],'icon':'ShapeChartPlusIcon','name':_0x8b89eb(0x38b)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x42e)],'icon':'ShapeChartStarIcon','name':_0x8b89eb(0x4d9)},{'group':'other','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x566)],'icon':_0x8b89eb(0x6e0),'name':'shape.type.chart-x'},{'group':'other','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x680)],'icon':'ShapeFlowChartOfflineStorageIcon','name':_0x8b89eb(0x5b2)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['LineInv'],'icon':_0x8b89eb(0x703),'name':_0x8b89eb(0x6dc)},{'group':'other','type':y[_0x8b89eb(0x54a)][_0x8b89eb(0x422)],'icon':_0x8b89eb(0x251),'name':_0x8b89eb(0x257)},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['SquareTabs'],'icon':_0x8b89eb(0x2cc),'name':_0x8b89eb(0x4ac)},{'group':_0x8b89eb(0x754),'type':y['ShapeTypeEnum'][_0x8b89eb(0x526)],'icon':_0x8b89eb(0x5e7),'name':'shape.type.up-down-arrow-callout'},{'group':_0x8b89eb(0x754),'type':y[_0x8b89eb(0x54a)]['NonIsoscelesTrapezoid'],'icon':'ShapeNonIsoscelesTrapezoidIcon','name':_0x8b89eb(0x539)}],pe='sheet.shape.picker.component';function me({onShapeClick:_0x3690c0,excludeGroups:_0xf8e197}){const _0x4a21ff=_0x8b89eb;let _0x5048d3=(0x0,v[_0x4a21ff(0x4f9)])(l[_0x4a21ff(0x381)]),_0x5410f2=(0x0,v[_0x4a21ff(0x4f9)])(v[_0x4a21ff(0x2a5)]),_0x36b16b=(_0xf8e197?fe[_0x4a21ff(0x1fe)](_0x4847ee=>!_0xf8e197[_0x4a21ff(0x28d)](_0x4847ee[_0x4a21ff(0x623)])):fe)['reduce']((_0x571bbd,_0x3012f1)=>(_0x571bbd[_0x3012f1[_0x4a21ff(0x623)]]||(_0x571bbd[_0x3012f1[_0x4a21ff(0x623)]]=[]),_0x571bbd[_0x3012f1['group']][_0x4a21ff(0x6cd)](_0x3012f1),_0x571bbd),{});return(0x0,C[_0x4a21ff(0x45d)])(_0x4a21ff(0x308),{'className':_0x4a21ff(0x46e),'children':Object['entries'](_0x36b16b)[_0x4a21ff(0x6b3)](([_0xa80be4,_0x139c6f])=>(0x0,C[_0x4a21ff(0x44e)])(_0x4a21ff(0x308),{'className':'univer-mb-2','children':[(0x0,C['jsx'])(_0x4a21ff(0x308),{'className':'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','children':_0x5048d3['t'](_0x4a21ff(0x42f)+_0xa80be4)}),(0x0,C['jsx'])(_0x4a21ff(0x308),{'className':_0x4a21ff(0x2b7),'children':_0x139c6f['map'](_0x4b891f=>{const _0x4e4be7=_0x4a21ff;let _0x12e9a9=_0x5410f2['get'](_0x4b891f[_0x4e4be7(0x4b1)]);return(0x0,C[_0x4e4be7(0x45d)])(_0x4e4be7(0x308),{'title':_0x5048d3['t'](_0x4b891f['name']),'onClick':()=>_0x3690c0(_0x4b891f),'className':_0x4e4be7(0x277),'children':_0x12e9a9&&(0x0,C['jsx'])(_0x12e9a9,{'className':'univer-size-full'})},_0x4b891f[_0x4e4be7(0x69b)]);})})]},_0xa80be4))});}function he(){const _0x573b1b=_0x8b89eb;let _0x19244b=(0x0,v[_0x573b1b(0x4f9)])(l[_0x573b1b(0x381)]),_0x9370ae=(0x0,v[_0x573b1b(0x4f9)])(p[_0x573b1b(0x5ba)]),_0x15ccd7=(0x0,v[_0x573b1b(0x4f9)])(de),[_0x4b181b,_0x4fa390]=(0x0,x[_0x573b1b(0x449)])(!0x1);return(0x0,C[_0x573b1b(0x45d)])(b[_0x573b1b(0x33c)],{'side':_0x573b1b(0x416),'open':_0x4b181b,'onOpenChange':_0x4fa390,'overlay':(0x0,C[_0x573b1b(0x45d)])(me,{'onShapeClick':_0x274fc5=>{const _0x1578c9=_0x573b1b;let _0x456092=_0x9370ae[_0x1578c9(0x607)]()[_0x1578c9(0x6f9)](_0x5be47b=>_0x5be47b[_0x1578c9(0x6e7)]===l['DrawingTypeEnum']['DRAWING_IMAGE']);if(!_0x456092)return;let {unitId:_0x47a2d0,subUnitId:_0x1ef1e1,drawingId:_0x4a5cb4}=_0x456092;_0x15ccd7[_0x1578c9(0x673)](_0x47a2d0,_0x1ef1e1,_0x4a5cb4,_0x274fc5[_0x1578c9(0x50b)]),_0x4fa390(!0x1);},'excludeGroups':[_0x573b1b(0x68e)]}),'children':(0x0,C[_0x573b1b(0x45d)])(b[_0x573b1b(0x35a)],{'children':_0x19244b['t'](_0x573b1b(0x39f))})});}function ge(){const _0x48ff54=_0x8b89eb;let _0x56b9d3=(0x0,v[_0x48ff54(0x4f9)])(l[_0x48ff54(0x6d6)]);return(0x0,C['jsx'])(me,{'onShapeClick':_0x36b978=>{const _0x3d0e99=_0x48ff54;_0x56b9d3[_0x3d0e99(0x279)](Q['id'],{'value':_0x36b978[_0x3d0e99(0x50b)],'enhanceParams':{'endArrow':_0x36b978['endArrow'],'startArrow':_0x36b978[_0x3d0e99(0x749)],'horizontal':_0x36b978[_0x3d0e99(0x1ef)],'vertical':_0x36b978['vertical']}});}});}l[_0x8b89eb(0x31e)][_0x8b89eb(0x6fd)],l[_0x8b89eb(0x31e)][_0x8b89eb(0x4e3)],l[_0x8b89eb(0x31e)]['RIGHT'];function _e(_0x207b44){const _0x4fe558=_0x8b89eb;let _0x5567dc=_0x207b44[_0x4fe558(0x302)](l[_0x4fe558(0x538)]),_0x3d6dfb=_0x207b44['get'](l[_0x4fe558(0x3c9)]);return{'id':h[_0x4fe558(0x59c)]['id'],'tooltip':'toolbar.fillColor.main','type':v[_0x4fe558(0x592)][_0x4fe558(0x233)],'icon':_0x4fe558(0x49c),'selections':[{'label':{'name':v['COLOR_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'value$':new f[(_0x4fe558(0x6f1))](_0x5a3b6f=>{const _0x58a87b=_0x4fe558;_0x5a3b6f[_0x58a87b(0x31c)](_0x3d6dfb[_0x58a87b(0x61c)](_0x58a87b(0x55d)));}),'hidden$':_0x5567dc[_0x4fe558(0x3fd)](l[_0x4fe558(0x3c8)])[_0x4fe558(0x2f4)]((0x0,f[_0x4fe558(0x4d8)])(_0x5567dc['getContextValue'](l[_0x4fe558(0x3c8)])),(0x0,f[_0x4fe558(0x6b3)])(_0x4581a5=>!_0x4581a5))};}function ve(_0x10d01e){const _0x4a3376=_0x8b89eb;let _0x35574c=_0x10d01e['get'](l['IContextService']);return{'id':h[_0x4a3376(0x202)]['id'],'type':v[_0x4a3376(0x592)][_0x4a3376(0x229)],'title':_0x4a3376(0x4ba),'hidden$':_0x35574c['subscribeContextValue$'](l[_0x4a3376(0x3c8)])['pipe']((0x0,f['startWith'])(_0x35574c[_0x4a3376(0x58a)](l[_0x4a3376(0x3c8)])),(0x0,f[_0x4a3376(0x6b3)])(_0x41fdfd=>!_0x41fdfd))};}const ye=[{'label':_0x8b89eb(0x510),'icon':_0x8b89eb(0x67f),'value':l['HorizontalAlign'][_0x8b89eb(0x6fd)]},{'label':_0x8b89eb(0x5a1),'icon':_0x8b89eb(0x6e2),'value':l[_0x8b89eb(0x31e)][_0x8b89eb(0x4e3)]},{'label':_0x8b89eb(0x3ae),'icon':_0x8b89eb(0x24a),'value':l['HorizontalAlign'][_0x8b89eb(0x511)]}];function be(_0x250519){const _0x1c9f74=_0x8b89eb;var _0x4e016d;let _0x29a585=_0x250519[_0x1c9f74(0x302)](l['ICommandService']),_0x24aa3a=_0x250519['get'](l[_0x1c9f74(0x538)]),_0x40bf45=_0x250519[_0x1c9f74(0x302)](d['ISheetDrawingService']),_0x3c3c9d=_0x250519[_0x1c9f74(0x302)](A),_0x2ec7cb=_0x250519['get'](c[_0x1c9f74(0x450)]),_0x37dfe5=l[_0x1c9f74(0x31e)][_0x1c9f74(0x6fd)],_0x5a32f0=()=>{const _0x14b434=_0x1c9f74;var _0x2e41ab;let _0x5888d6=_0x40bf45[_0x14b434(0x607)]()[_0x14b434(0x1fe)](_0x5ea01d=>_0x5ea01d[_0x14b434(0x6e7)]===l[_0x14b434(0x638)][_0x14b434(0x73a)]);if(_0x5888d6[_0x14b434(0x41f)]!==0x1)return _0x37dfe5;let _0x13a412=_0x3c3c9d[_0x14b434(0x4d1)](),_0x34caf1=(_0x13a412==null?void 0x0:_0x13a412['unitId'])||_0x5888d6[0x0][_0x14b434(0x4cd)],_0x2948ac=(_0x13a412==null?void 0x0:_0x13a412[_0x14b434(0x439)])||_0x5888d6[0x0][_0x14b434(0x439)],_0x4a74d4=(_0x13a412==null?void 0x0:_0x13a412[_0x14b434(0x3a6)])||_0x5888d6[0x0][_0x14b434(0x591)],_0x1e6a98=_0x2ec7cb[_0x14b434(0x598)](_0x34caf1,_0x2948ac,_0x4a74d4);if(!_0x1e6a98)return _0x37dfe5;let _0x5ba895=_0x1e6a98[_0x14b434(0x541)]();if(!_0x5ba895||!(_0x14b434(0x264)in _0x5ba895))return _0x37dfe5;let _0x5ba70f=_0x5ba895[_0x14b434(0x264)];return(_0x2e41ab=_0x5ba70f==null?void 0x0:_0x5ba70f['ha'])==null?_0x37dfe5:_0x2e41ab;};return{'id':N['id'],'icon':(_0x4e016d=ye[_0x1c9f74(0x6f9)](_0x29eed1=>_0x29eed1[_0x1c9f74(0x21d)]===_0x37dfe5))==null?void 0x0:_0x4e016d[_0x1c9f74(0x4b1)],'tooltip':'toolbar.horizontalAlignMode.main','type':v['MenuItemType'][_0x1c9f74(0x3d2)],'selections':ye,'value$':new f[(_0x1c9f74(0x6f1))](_0xead6ac=>{const _0x46221a=_0x1c9f74;let _0x412dcf=_0x29a585['onCommandExecuted'](_0x330a29=>{const _0x8761f0=_0x4ef2;_0x330a29['id']===N['id']&&_0xead6ac[_0x8761f0(0x31c)](_0x5a32f0());}),_0x16360b=_0x3c3c9d[_0x46221a(0x281)]['subscribe'](()=>{const _0x54582b=_0x46221a;_0xead6ac[_0x54582b(0x31c)](_0x5a32f0());});return _0xead6ac[_0x46221a(0x31c)](_0x5a32f0()),()=>{const _0x2d8926=_0x46221a;_0x412dcf[_0x2d8926(0x2e5)](),_0x16360b['unsubscribe']();};}),'hidden$':_0x24aa3a[_0x1c9f74(0x3fd)](l[_0x1c9f74(0x3c8)])[_0x1c9f74(0x2f4)]((0x0,f[_0x1c9f74(0x6b3)])(_0x2d82a5=>!_0x2d82a5))};}const xe=[{'label':_0x8b89eb(0x285),'icon':'AlignTopIcon','value':l[_0x8b89eb(0x6df)]['TOP']},{'label':_0x8b89eb(0x407),'icon':_0x8b89eb(0x211),'value':l[_0x8b89eb(0x6df)]['MIDDLE']},{'label':'align.bottom','icon':_0x8b89eb(0x55e),'value':l['VerticalAlign'][_0x8b89eb(0x1e5)]}];function Se(_0x595670){const _0x3c1afb=_0x8b89eb;var _0x31de28;let _0x10aa9e=_0x595670[_0x3c1afb(0x302)](l[_0x3c1afb(0x6d6)]),_0x559262=_0x595670[_0x3c1afb(0x302)](l['IContextService']),_0x4a2211=_0x595670[_0x3c1afb(0x302)](d['ISheetDrawingService']),_0x5b7ab1=_0x595670[_0x3c1afb(0x302)](A),_0x38a653=_0x595670[_0x3c1afb(0x302)](c[_0x3c1afb(0x450)]),_0x2e9f19=l[_0x3c1afb(0x6df)]['TOP'],_0x554d63=()=>{const _0x3cd17e=_0x3c1afb;var _0x1315a7;let _0x25970f=_0x4a2211[_0x3cd17e(0x607)]()[_0x3cd17e(0x1fe)](_0x438eb8=>_0x438eb8[_0x3cd17e(0x6e7)]===l[_0x3cd17e(0x638)]['DRAWING_SHAPE']);if(_0x25970f['length']!==0x1)return _0x2e9f19;let _0x1d26f1=_0x5b7ab1[_0x3cd17e(0x4d1)](),_0x13703b=(_0x1d26f1==null?void 0x0:_0x1d26f1[_0x3cd17e(0x4cd)])||_0x25970f[0x0][_0x3cd17e(0x4cd)],_0x5a8077=(_0x1d26f1==null?void 0x0:_0x1d26f1[_0x3cd17e(0x439)])||_0x25970f[0x0][_0x3cd17e(0x439)],_0x51b594=(_0x1d26f1==null?void 0x0:_0x1d26f1[_0x3cd17e(0x3a6)])||_0x25970f[0x0][_0x3cd17e(0x591)],_0x48276a=_0x38a653[_0x3cd17e(0x598)](_0x13703b,_0x5a8077,_0x51b594);if(!_0x48276a)return _0x2e9f19;let _0x288357=_0x48276a[_0x3cd17e(0x541)]();if(!_0x288357||!(_0x3cd17e(0x264)in _0x288357))return _0x2e9f19;let _0x37a4a7=_0x288357[_0x3cd17e(0x264)];return(_0x1315a7=_0x37a4a7==null?void 0x0:_0x37a4a7['va'])==null?_0x2e9f19:_0x1315a7;};return{'id':I['id'],'icon':(_0x31de28=xe[_0x3c1afb(0x6f9)](_0x40fdca=>_0x40fdca[_0x3c1afb(0x21d)]===_0x2e9f19))==null?void 0x0:_0x31de28[_0x3c1afb(0x4b1)],'tooltip':_0x3c1afb(0x586),'type':v[_0x3c1afb(0x592)][_0x3c1afb(0x3d2)],'selections':xe,'value$':new f[(_0x3c1afb(0x6f1))](_0xae742e=>{const _0x220503=_0x3c1afb;let _0xff8d72=_0x10aa9e[_0x220503(0x258)](_0x236e24=>{const _0x5de4ac=_0x220503;_0x236e24['id']===I['id']&&_0xae742e[_0x5de4ac(0x31c)](_0x554d63());}),_0x2100f1=_0x5b7ab1[_0x220503(0x281)]['subscribe'](()=>{const _0x417fd8=_0x220503;_0xae742e[_0x417fd8(0x31c)](_0x554d63());});return _0xae742e[_0x220503(0x31c)](_0x554d63()),()=>{const _0x228b6b=_0x220503;_0xff8d72[_0x228b6b(0x2e5)](),_0x2100f1[_0x228b6b(0x5aa)]();};}),'hidden$':_0x559262['subscribeContextValue$'](l['FOCUSING_COMMON_DRAWINGS'])[_0x3c1afb(0x2f4)]((0x0,f[_0x3c1afb(0x6b3)])(_0xffcd0f=>!_0xffcd0f))};}function Ce(_0x3741e8){const _0x41d28a=_0x8b89eb;let _0x483675=_0x3741e8[_0x41d28a(0x302)](l['IUniverInstanceService']);return{'id':Q['id'],'type':v[_0x41d28a(0x592)]['SELECTOR'],'selections':[{'label':{'name':pe,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Q['id']}}}],'icon':'ShapeIcon','tooltip':_0x41d28a(0x1e8),'activated$':(0x0,_[_0x41d28a(0x682)])(_0x483675,!0x1,()=>new f[(_0x41d28a(0x6f1))](_0x3b98bf=>{const _0x3f3e6a=_0x41d28a;_0x3b98bf[_0x3f3e6a(0x31c)](!0x1);})),'hidden$':(0x0,v['getMenuHiddenObservable'])(_0x3741e8,l['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,_[_0x41d28a(0x564)])(_0x3741e8)};}const we={[v[_0x8b89eb(0x485)][_0x8b89eb(0x60f)]]:{[v[_0x8b89eb(0x5ac)][_0x8b89eb(0x5bd)]]:{[I['id']]:{'order':3.5,'menuItemFactory':Se},[N['id']]:{'order':3.4,'menuItemFactory':be}},[v[_0x8b89eb(0x5ac)]['FORMAT']]:{[h[_0x8b89eb(0x59c)]['id']]:{'order':0x1,'menuItemFactory':_e,[h['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':ve}}}},[v[_0x8b89eb(0x1f3)]['MEDIA']]:{[Q['id']]:{'order':0x4,'menuItemFactory':Ce}}};let Te=class extends l[_0x8b89eb(0x301)]{constructor(_0x3c8e90,_0x2a5780,_0x27b6ba,_0x2d1c03,_0x384c51,_0x4b2332,_0x1f903a,_0x4a4794,_0x293da9,_0x139868,_0x29a7ae){const _0x3f21a2=_0x8b89eb;super(),this[_0x3f21a2(0x415)]=_0x3c8e90,this['_sheetInterceptorService']=_0x2a5780,this[_0x3f21a2(0x664)]=_0x27b6ba,this['_menuManagerService']=_0x2d1c03,this['_sheetsShapeService']=_0x384c51,this[_0x3f21a2(0x432)]=_0x4b2332,this['_componentManager']=_0x1f903a,this['_commandService']=_0x4a4794,this[_0x3f21a2(0x287)]=_0x293da9,this[_0x3f21a2(0x751)]=_0x139868,this['_contextService']=_0x29a7ae,k(this,'_sidebarDisposable',null),k(this,_0x3f21a2(0x2cf),null),k(this,_0x3f21a2(0x40b),!0x1),this['_registerComponent'](),this['_initMenu'](),this[_0x3f21a2(0x37c)](this['_univerInstanceService'][_0x3f21a2(0x62c)](l[_0x3f21a2(0x31f)][_0x3f21a2(0x699)])[_0x3f21a2(0x4ee)](_0x2fd3d3=>{const _0x48408b=_0x3f21a2;var _0x23828b;_0x2fd3d3||(_0x23828b=this['_sidebarDisposable'])==null||_0x23828b[_0x48408b(0x2e5)]();})),this['_registerOperations'](),this['_registerShapeMenu']();}[_0x8b89eb(0x3ee)](){const _0x61d583=_0x8b89eb;this['_menuManagerService'][_0x61d583(0x488)](we);}[_0x8b89eb(0x342)](){const _0x1d31cc=_0x8b89eb;this['_sheetCanvasPopManagerService'][_0x1d31cc(0x243)](l[_0x1d31cc(0x638)][_0x1d31cc(0x73a)],this['getShapePopupMenus'][_0x1d31cc(0x516)](this)),this['_sheetCanvasPopManagerService'][_0x1d31cc(0x677)](l['DrawingTypeEnum'][_0x1d31cc(0x73a)],0x6,0x4);}[_0x8b89eb(0x21f)](_0x28c33e,_0x4565e8,_0x2bd878,_0x23234d){const _0xa34853=_0x8b89eb;return[{'label':'sheets-shape.openPanel','index':0x0,'commandId':R['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'drawingId':_0x2bd878},'disable':_0x23234d===l[_0xa34853(0x638)][_0xa34853(0x590)]},{'label':_0xa34853(0x512),'index':0x1,'commandId':d[_0xa34853(0x48b)]['id'],'commandParams':{'unitId':_0x28c33e,'drawings':[{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'drawingId':_0x2bd878,'drawingType':_0x23234d}]},'disable':!0x1},{'label':_0xa34853(0x3d7),'index':0x2,'commandId':L['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'drawingId':_0x2bd878},'disable':!0x1},{'label':_0xa34853(0x609),'index':0x3,'commandId':c[_0xa34853(0x3dc)]['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'shapeId':_0x2bd878,'flipH':!0x0},'disable':!0x1},{'label':_0xa34853(0x330),'index':0x4,'commandId':c['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'shapeId':_0x2bd878,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape.rotateRight90','index':0x4,'commandId':c[_0xa34853(0x50f)]['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'shapeId':_0x2bd878,'rotate':0x5a},'disable':!0x1},{'label':_0xa34853(0x217),'index':0x4,'commandId':c['SetSheetsShapeRotateCommand']['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'shapeId':_0x2bd878,'rotate':-0x5a},'disable':!0x1},{'label':_0xa34853(0x728),'index':0x4,'commandId':c['SetSheetsShapeTextVerticalToggleCommand']['id'],'commandParams':{'unitId':_0x28c33e,'subUnitId':_0x4565e8,'shapeId':_0x2bd878},'disable':!0x1}];}[_0x8b89eb(0x709)](_0x399210,_0x18e9b2,_0x195230){const _0x344025=_0x8b89eb;let _0x314ee2=this[_0x344025(0x36b)]['getShapeTypeById'](_0x399210,_0x18e9b2,_0x195230),_0x488b25=this[_0x344025(0x36b)][_0x344025(0x6f8)](_0x399210,_0x18e9b2,_0x195230);return _0x314ee2!==void 0x0&&_0x488b25!==void 0x0?{'shapeData':_0x488b25,'shapeId':_0x195230,'shapeType':_0x314ee2,'unitId':_0x399210,'subUnitId':_0x18e9b2,'disableShapeOption':!0x1}:null;}[_0x8b89eb(0x5d5)](){const _0x12f953=_0x8b89eb;this[_0x12f953(0x37c)](this[_0x12f953(0x56d)][_0x12f953(0x258)](_0x177868=>{const _0x96c2a1=_0x12f953;if(_0x177868['id']===R['id']){let {unitId:_0x289d46,subUnitId:_0x1ea249,drawingId:_0xe7e5eb}=_0x177868[_0x96c2a1(0x25e)];this['_activeShapeInfo']=this[_0x96c2a1(0x709)](_0x289d46,_0x1ea249,_0xe7e5eb),this[_0x96c2a1(0x6e3)]();}if(_0x177868['id']===L['id']&&(this['_activeShapeInfo']=null,this[_0x96c2a1(0x49a)]()),_0x177868['id']===c[_0x96c2a1(0x519)]['id']){let {unitId:_0x500aaf,subUnitId:_0x489a62,shapeId:_0x4414ac}=_0x177868[_0x96c2a1(0x25e)];if(this['_activeShapeInfo']&&this[_0x96c2a1(0x2cf)][_0x96c2a1(0x3a6)]===_0x4414ac){let _0x2cf5a=this['_getShapeInfo'](_0x500aaf,_0x489a62,_0x4414ac);_0x2cf5a&&(this[_0x96c2a1(0x2cf)]=_0x2cf5a);}}})),this['disposeWithMe'](this[_0x12f953(0x287)][_0x12f953(0x3f3)][_0x12f953(0x4ee)](_0x5a6cd0=>{const _0x12c73f=_0x12f953;if(this[_0x12c73f(0x40b)]===!0x1)return;if(_0x5a6cd0[_0x12c73f(0x41f)]===0x0){this[_0x12c73f(0x2cf)]=null,this[_0x12c73f(0x49a)]();return;}if(_0x5a6cd0['length']===0x1&&_0x5a6cd0[0x0][_0x12c73f(0x6e7)]===l['DrawingTypeEnum'][_0x12c73f(0x73a)]&&(this['_activeShapeInfo']=this[_0x12c73f(0x709)](_0x5a6cd0[0x0]['unitId'],_0x5a6cd0[0x0][_0x12c73f(0x439)],_0x5a6cd0[0x0]['drawingId']),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x223edb=_0x5a6cd0[_0x12c73f(0x1fe)](_0x468b43=>_0x468b43[_0x12c73f(0x6e7)]===l[_0x12c73f(0x638)][_0x12c73f(0x73a)]);if(_0x5a6cd0[_0x12c73f(0x41f)]>0x1&&_0x223edb['length']===_0x5a6cd0[_0x12c73f(0x41f)]){if(this[_0x12c73f(0x2cf)]=this[_0x12c73f(0x709)](_0x5a6cd0[0x0]['unitId'],_0x5a6cd0[0x0][_0x12c73f(0x439)],_0x5a6cd0[0x0][_0x12c73f(0x591)]),this[_0x12c73f(0x2cf)]){this[_0x12c73f(0x6e3)]();return;}}else{if(this[_0x12c73f(0x2cf)]=this[_0x12c73f(0x709)](_0x5a6cd0[0x0][_0x12c73f(0x4cd)],_0x5a6cd0[0x0][_0x12c73f(0x439)],_0x5a6cd0[0x0][_0x12c73f(0x591)]),this['_activeShapeInfo']){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0x12c73f(0x6e3)]();return;}}this['_closeShapeEditPanel']();}));}['_registerComponent'](){const _0x14b4d0=_0x8b89eb;[['ShapeIcon',g[_0x14b4d0(0x5d2)]],['ShapeAccentBorderCallout1Icon',g['ShapeAccentBorderCallout1Icon']],[_0x14b4d0(0x2b4),g[_0x14b4d0(0x2b4)]],[_0x14b4d0(0x380),g[_0x14b4d0(0x380)]],[_0x14b4d0(0x3e3),g[_0x14b4d0(0x3e3)]],[_0x14b4d0(0x274),g[_0x14b4d0(0x274)]],[_0x14b4d0(0x3bc),g[_0x14b4d0(0x3bc)]],[_0x14b4d0(0x4de),g['ShapeActionButtonBackPreviousIcon']],['ShapeActionButtonBeginningIcon',g[_0x14b4d0(0x210)]],[_0x14b4d0(0x72d),g[_0x14b4d0(0x72d)]],[_0x14b4d0(0x5ff),g[_0x14b4d0(0x5ff)]],['ShapeActionButtonEndIcon',g['ShapeActionButtonEndIcon']],[_0x14b4d0(0x744),g[_0x14b4d0(0x744)]],['ShapeActionButtonHelpIcon',g['ShapeActionButtonHelpIcon']],[_0x14b4d0(0x266),g[_0x14b4d0(0x266)]],['ShapeActionButtonInformationIcon',g[_0x14b4d0(0x58f)]],['ShapeActionButtonMovieIcon',g['ShapeActionButtonMovieIcon']],['ShapeActionButtonReturnIcon',g[_0x14b4d0(0x663)]],[_0x14b4d0(0x5b1),g[_0x14b4d0(0x5b1)]],[_0x14b4d0(0x215),g[_0x14b4d0(0x215)]],[_0x14b4d0(0x4ae),g['ShapeBentArrowIcon']],[_0x14b4d0(0x4ff),g[_0x14b4d0(0x4ff)]],[_0x14b4d0(0x2c0),g['ShapeBentConnector3Arrow2Icon']],[_0x14b4d0(0x669),g[_0x14b4d0(0x669)]],[_0x14b4d0(0x611),g[_0x14b4d0(0x611)]],[_0x14b4d0(0x256),g[_0x14b4d0(0x256)]],[_0x14b4d0(0x616),g[_0x14b4d0(0x616)]],[_0x14b4d0(0x391),g[_0x14b4d0(0x391)]],['ShapeBorderCallout2Icon',g[_0x14b4d0(0x4c6)]],[_0x14b4d0(0x373),g[_0x14b4d0(0x373)]],['ShapeBracePairIcon',g['ShapeBracePairIcon']],[_0x14b4d0(0x5d4),g['ShapeBracketPairIcon']],[_0x14b4d0(0x55c),g['ShapeCallout1Icon']],['ShapeCallout2Icon',g[_0x14b4d0(0x2a9)]],[_0x14b4d0(0x4e4),g[_0x14b4d0(0x4e4)]],[_0x14b4d0(0x4cc),g[_0x14b4d0(0x4cc)]],[_0x14b4d0(0x24b),g[_0x14b4d0(0x24b)]],[_0x14b4d0(0x29b),g[_0x14b4d0(0x29b)]],['ShapeChartXIcon',g[_0x14b4d0(0x6e0)]],[_0x14b4d0(0x209),g[_0x14b4d0(0x209)]],[_0x14b4d0(0x60a),g[_0x14b4d0(0x60a)]],[_0x14b4d0(0x245),g[_0x14b4d0(0x245)]],[_0x14b4d0(0x20e),g[_0x14b4d0(0x20e)]],[_0x14b4d0(0x4b6),g['ShapeCloudIcon']],[_0x14b4d0(0x740),g[_0x14b4d0(0x740)]],[_0x14b4d0(0x3a8),g[_0x14b4d0(0x3a8)]],['ShapeCubeIcon',g[_0x14b4d0(0x3f6)]],[_0x14b4d0(0x60e),g[_0x14b4d0(0x60e)]],[_0x14b4d0(0x3c5),g[_0x14b4d0(0x3c5)]],[_0x14b4d0(0x690),g[_0x14b4d0(0x690)]],['ShapeCurvedDownArrowIcon',g['ShapeCurvedDownArrowIcon']],[_0x14b4d0(0x567),g['ShapeCurvedLeftArrowIcon']],[_0x14b4d0(0x594),g['ShapeCurvedRightArrowIcon']],[_0x14b4d0(0x417),g[_0x14b4d0(0x417)]],[_0x14b4d0(0x499),g[_0x14b4d0(0x499)]],[_0x14b4d0(0x5d3),g['ShapeDiagStripeIcon']],['ShapeDiamondIcon',g[_0x14b4d0(0x406)]],[_0x14b4d0(0x21b),g[_0x14b4d0(0x21b)]],[_0x14b4d0(0x23e),g[_0x14b4d0(0x23e)]],[_0x14b4d0(0x467),g[_0x14b4d0(0x467)]],[_0x14b4d0(0x544),g[_0x14b4d0(0x544)]],[_0x14b4d0(0x55b),g[_0x14b4d0(0x55b)]],[_0x14b4d0(0x736),g['ShapeEllipseIcon']],[_0x14b4d0(0x261),g[_0x14b4d0(0x261)]],[_0x14b4d0(0x3f4),g[_0x14b4d0(0x3f4)]],[_0x14b4d0(0x550),g[_0x14b4d0(0x550)]],[_0x14b4d0(0x492),g[_0x14b4d0(0x492)]],[_0x14b4d0(0x6a9),g[_0x14b4d0(0x6a9)]],[_0x14b4d0(0x1e7),g[_0x14b4d0(0x1e7)]],[_0x14b4d0(0x45e),g['ShapeFlowChartDelayIcon']],[_0x14b4d0(0x426),g[_0x14b4d0(0x426)]],[_0x14b4d0(0x448),g[_0x14b4d0(0x448)]],[_0x14b4d0(0x2de),g[_0x14b4d0(0x2de)]],[_0x14b4d0(0x4a5),g[_0x14b4d0(0x4a5)]],['ShapeFlowChartInternalStorageIcon',g[_0x14b4d0(0x66c)]],[_0x14b4d0(0x436),g[_0x14b4d0(0x436)]],[_0x14b4d0(0x2ca),g[_0x14b4d0(0x2ca)]],[_0x14b4d0(0x3d0),g[_0x14b4d0(0x3d0)]],[_0x14b4d0(0x595),g[_0x14b4d0(0x595)]],[_0x14b4d0(0x425),g[_0x14b4d0(0x425)]],[_0x14b4d0(0x282),g[_0x14b4d0(0x282)]],[_0x14b4d0(0x6d5),g[_0x14b4d0(0x6d5)]],[_0x14b4d0(0x63a),g[_0x14b4d0(0x63a)]],[_0x14b4d0(0x667),g[_0x14b4d0(0x667)]],[_0x14b4d0(0x72b),g[_0x14b4d0(0x72b)]],[_0x14b4d0(0x6ca),g[_0x14b4d0(0x6ca)]],[_0x14b4d0(0x47c),g['ShapeFlowChartPredefinedProcessIcon']],[_0x14b4d0(0x343),g[_0x14b4d0(0x343)]],[_0x14b4d0(0x710),g[_0x14b4d0(0x710)]],[_0x14b4d0(0x513),g[_0x14b4d0(0x513)]],[_0x14b4d0(0x6af),g['ShapeFlowChartPunchedTapeIcon']],['ShapeFlowChartSortIcon',g['ShapeFlowChartSortIcon']],[_0x14b4d0(0x695),g[_0x14b4d0(0x695)]],['ShapeFlowChartTerminatorIcon',g['ShapeFlowChartTerminatorIcon']],[_0x14b4d0(0x419),g[_0x14b4d0(0x419)]],[_0x14b4d0(0x68b),g[_0x14b4d0(0x68b)]],[_0x14b4d0(0x6c6),g[_0x14b4d0(0x6c6)]],[_0x14b4d0(0x530),g['ShapeGear6Icon']],[_0x14b4d0(0x559),g[_0x14b4d0(0x559)]],[_0x14b4d0(0x3cf),g[_0x14b4d0(0x3cf)]],[_0x14b4d0(0x6d0),g[_0x14b4d0(0x6d0)]],['ShapeHeptagonIcon',g[_0x14b4d0(0x684)]],[_0x14b4d0(0x4a9),g[_0x14b4d0(0x4a9)]],[_0x14b4d0(0x3c4),g[_0x14b4d0(0x3c4)]],[_0x14b4d0(0x3fc),g[_0x14b4d0(0x3fc)]],[_0x14b4d0(0x6ad),g[_0x14b4d0(0x6ad)]],[_0x14b4d0(0x5c1),g['ShapeIrregularSeal2Icon']],[_0x14b4d0(0x6c3),g[_0x14b4d0(0x6c3)]],[_0x14b4d0(0x321),g['ShapeLeftArrowIcon']],[_0x14b4d0(0x753),g[_0x14b4d0(0x753)]],[_0x14b4d0(0x5e8),g[_0x14b4d0(0x5e8)]],['ShapeLeftCircularArrowIcon',g[_0x14b4d0(0x350)]],[_0x14b4d0(0x409),g[_0x14b4d0(0x409)]],[_0x14b4d0(0x63f),g['ShapeLeftRightArrowIcon']],[_0x14b4d0(0x348),g[_0x14b4d0(0x348)]],['ShapeLeftRightRibbonIcon',g['ShapeLeftRightRibbonIcon']],[_0x14b4d0(0x54d),g[_0x14b4d0(0x54d)]],['ShapeLeftUpArrowIcon',g[_0x14b4d0(0x5d1)]],[_0x14b4d0(0x4e7),g[_0x14b4d0(0x4e7)]],[_0x14b4d0(0x2bf),g[_0x14b4d0(0x2bf)]],[_0x14b4d0(0x703),g[_0x14b4d0(0x703)]],['ShapeMathDivideIcon',g[_0x14b4d0(0x632)]],[_0x14b4d0(0x2c8),g[_0x14b4d0(0x2c8)]],[_0x14b4d0(0x221),g[_0x14b4d0(0x221)]],[_0x14b4d0(0x1ff),g['ShapeMathMultiplyIcon']],[_0x14b4d0(0x67a),g[_0x14b4d0(0x67a)]],[_0x14b4d0(0x4fa),g[_0x14b4d0(0x4fa)]],[_0x14b4d0(0x4f8),g['ShapeMoonIcon']],[_0x14b4d0(0x631),g[_0x14b4d0(0x631)]],[_0x14b4d0(0x694),g['ShapeNonIsoscelesTrapezoidIcon']],[_0x14b4d0(0x535),g['ShapeNotchedRightArrowIcon']],[_0x14b4d0(0x6cb),g['ShapeOctagonIcon']],[_0x14b4d0(0x5f8),g['ShapeParallelogramIcon']],[_0x14b4d0(0x4d5),g['ShapePentagonIcon']],[_0x14b4d0(0x723),g[_0x14b4d0(0x723)]],['ShapePieWedgeIcon',g[_0x14b4d0(0x674)]],['ShapePlaqueIcon',g['ShapePlaqueIcon']],[_0x14b4d0(0x251),g[_0x14b4d0(0x251)]],[_0x14b4d0(0x1fc),g['ShapePlusIcon']],[_0x14b4d0(0x25d),g[_0x14b4d0(0x25d)]],[_0x14b4d0(0x548),g[_0x14b4d0(0x548)]],['ShapeRectIcon',g[_0x14b4d0(0x29c)]],[_0x14b4d0(0x29f),g[_0x14b4d0(0x29f)]],[_0x14b4d0(0x528),g[_0x14b4d0(0x528)]],[_0x14b4d0(0x746),g['ShapeRibbon2Icon']],[_0x14b4d0(0x495),g[_0x14b4d0(0x495)]],[_0x14b4d0(0x3b3),g[_0x14b4d0(0x3b3)]],['ShapeRightArrowIcon',g[_0x14b4d0(0x357)]],[_0x14b4d0(0x3a2),g[_0x14b4d0(0x3a2)]],[_0x14b4d0(0x6c7),g[_0x14b4d0(0x6c7)]],[_0x14b4d0(0x26f),g[_0x14b4d0(0x26f)]],['ShapeRound2DiagRectIcon',g[_0x14b4d0(0x563)]],[_0x14b4d0(0x4a1),g[_0x14b4d0(0x4a1)]],['ShapeRoundRectIcon',g[_0x14b4d0(0x637)]],[_0x14b4d0(0x22b),g[_0x14b4d0(0x22b)]],[_0x14b4d0(0x349),g[_0x14b4d0(0x349)]],[_0x14b4d0(0x6e4),g['ShapeSnip1RectIcon']],[_0x14b4d0(0x259),g[_0x14b4d0(0x259)]],[_0x14b4d0(0x3b4),g[_0x14b4d0(0x3b4)]],[_0x14b4d0(0x605),g[_0x14b4d0(0x605)]],[_0x14b4d0(0x2cc),g[_0x14b4d0(0x2cc)]],[_0x14b4d0(0x4e8),g[_0x14b4d0(0x4e8)]],['ShapeStar12Icon',g['ShapeStar12Icon']],[_0x14b4d0(0x30a),g[_0x14b4d0(0x30a)]],[_0x14b4d0(0x4a0),g['ShapeStar24Icon']],[_0x14b4d0(0x71f),g[_0x14b4d0(0x71f)]],['ShapeStar4Icon',g['ShapeStar4Icon']],['ShapeStar5Icon',g[_0x14b4d0(0x53b)]],[_0x14b4d0(0x2e9),g[_0x14b4d0(0x2e9)]],['ShapeStar7Icon',g[_0x14b4d0(0x5df)]],[_0x14b4d0(0x686),g['ShapeStar8Icon']],['ShapeStraightConnector1Icon',g[_0x14b4d0(0x269)]],['ShapeStraightConnector2Icon',g['ShapeStraightConnector2Icon']],[_0x14b4d0(0x653),g[_0x14b4d0(0x653)]],['ShapeSunIcon',g[_0x14b4d0(0x481)]],[_0x14b4d0(0x393),g['ShapeSwooshArrowIcon']],[_0x14b4d0(0x6e5),g[_0x14b4d0(0x6e5)]],[_0x14b4d0(0x366),g[_0x14b4d0(0x366)]],['ShapeTriangleIcon',g[_0x14b4d0(0x71c)]],[_0x14b4d0(0x577),g[_0x14b4d0(0x577)]],[_0x14b4d0(0x4b7),g[_0x14b4d0(0x4b7)]],[_0x14b4d0(0x5e7),g[_0x14b4d0(0x5e7)]],['ShapeUpDownArrowIcon',g[_0x14b4d0(0x587)]],[_0x14b4d0(0x6c9),g['ShapeUturnArrowIcon']],['ShapeVerticalScrollIcon',g[_0x14b4d0(0x3ab)]],[_0x14b4d0(0x2cd),g['ShapeWaveIcon']],[_0x14b4d0(0x536),g[_0x14b4d0(0x536)]],[_0x14b4d0(0x1fb),g[_0x14b4d0(0x1fb)]],[_0x14b4d0(0x2ac),g[_0x14b4d0(0x2ac)]],[z,Y],[pe,ge],[S[_0x14b4d0(0x2f5)],he]][_0x14b4d0(0x291)](([_0x7dfc91,_0x245a97])=>{const _0x184e62=_0x14b4d0;this[_0x184e62(0x37c)](this[_0x184e62(0x503)][_0x184e62(0x2e6)](_0x7dfc91,_0x245a97));});}['_openShapeEditPanel'](){const _0x105d90=_0x8b89eb;this[_0x105d90(0x25c)]=this[_0x105d90(0x664)][_0x105d90(0x733)]({'id':z,'header':{'title':this[_0x105d90(0x432)]['t']('sheets-shape.formatShape')},'width':0x184,'children':{'label':z,...this['_activeShapeInfo']},'onClose':()=>{const _0x2e583e=_0x105d90;this['_drawingManagerService'][_0x2e583e(0x39c)](null),this['_contextService']['setContextValue'](l[_0x2e583e(0x3c8)],!0x1),this[_0x2e583e(0x25c)]=null;}}),this[_0x105d90(0x40b)]=!0x0;}[_0x8b89eb(0x49a)](){const _0x5b450e=_0x8b89eb;this[_0x5b450e(0x40b)]=!0x1,this[_0x5b450e(0x664)][_0x5b450e(0x6ef)](z),this[_0x5b450e(0x25c)]=null,this[_0x5b450e(0x41c)][_0x5b450e(0x6a0)](l[_0x5b450e(0x3c8)],!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Te=W([U(0x0,l[_0x8b89eb(0x2b1)]),U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(u['SheetInterceptorService'])),U(0x2,(0x0,l['Inject'])(v[_0x8b89eb(0x442)])),U(0x3,v[_0x8b89eb(0x68c)]),U(0x4,(0x0,l[_0x8b89eb(0x3f0)])(c[_0x8b89eb(0x450)])),U(0x5,(0x0,l[_0x8b89eb(0x3f0)])(l[_0x8b89eb(0x381)])),U(0x6,(0x0,l[_0x8b89eb(0x3f0)])(v[_0x8b89eb(0x2a5)])),U(0x7,l[_0x8b89eb(0x6d6)]),U(0x8,p[_0x8b89eb(0x5ba)]),U(0x9,(0x0,l[_0x8b89eb(0x3f0)])(_['SheetCanvasPopManagerService'])),U(0xa,l[_0x8b89eb(0x538)])],Te);var Ee=_0x8b89eb(0x39b),De=_0x8b89eb(0x6fb);const Oe=_0x8b89eb(0x1ee);Symbol(Oe);const ke={};let Ae=class extends l['Disposable']{constructor(_0x5c2160,_0x2b73d4,_0x56c4d5,_0x3779be,_0x27234a){const _0x219a4a=_0x8b89eb;super(),this['_context']=_0x5c2160,this['_drawingManagerService']=_0x2b73d4,this['_renderManagerService']=_0x56c4d5,this[_0x219a4a(0x415)]=_0x3779be,this['_imageShapeClipController']=_0x27234a,k(this,_0x219a4a(0x226),null),k(this,_0x219a4a(0x41d),null),k(this,_0x219a4a(0x69e),null),k(this,_0x219a4a(0x44f),void 0x0),k(this,_0x219a4a(0x3bd),[]),k(this,_0x219a4a(0x463),0x0),k(this,_0x219a4a(0x6d1),0x0),k(this,'_baseWidth',0x0),k(this,_0x219a4a(0x5ef),0x0),k(this,_0x219a4a(0x270),!0x1),k(this,'_activeAdjustInfo',void 0x0),k(this,'_activeShapeModel',void 0x0),k(this,_0x219a4a(0x33e),void 0x0),k(this,_0x219a4a(0x4a4),void 0x0),k(this,_0x219a4a(0x420),!0x1),this[_0x219a4a(0x580)](),this[_0x219a4a(0x718)]();}[_0x8b89eb(0x1f0)](){this['_clearControls']();}[_0x8b89eb(0x36f)](){const _0x2344db=_0x8b89eb;this[_0x2344db(0x547)](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x3bb107,_0x172b46,_0x475d3d,_0x4e1e94){const _0x25671a=_0x8b89eb;let _0x341341=_0x3bb107;if(!(_0x341341===y[_0x25671a(0x54a)][_0x25671a(0x30d)]||_0x3bb107===_0x25671a(0x738)))try{let _0x5c35b6=new y[(_0x25671a(0x581))](_0x341341,_0x25671a(0x6d8)+_0x3bb107);return _0x4e1e94&&_0x5c35b6['setShapeData']({'adjustValues':_0x4e1e94},!0x0),_0x5c35b6[_0x25671a(0x6a3)]({'width':_0x172b46,'height':_0x475d3d}),_0x5c35b6;}catch{return;}}[_0x8b89eb(0x4f7)](_0x50f287,_0x5cd7a1,_0x74d7fb){const _0x37f5b5=_0x8b89eb;let _0x5c4806={'unitId':_0x50f287,'subUnitId':_0x5cd7a1,'drawingId':_0x74d7fb},_0xcfa6ab=this[_0x37f5b5(0x287)][_0x37f5b5(0x34e)](_0x5c4806);if(!(!_0xcfa6ab||_0xcfa6ab['drawingType']!==l[_0x37f5b5(0x638)][_0x37f5b5(0x2c5)]))return _0xcfa6ab;}['_getImagePrstGeom'](_0x3d61b6,_0x284f94,_0x19e331){const _0x33cb29=_0x8b89eb;let _0x57848f=this['_renderManagerService'][_0x33cb29(0x2b0)](_0x3d61b6);if(!_0x57848f)return;let {scene:_0x5ea371}=_0x57848f,_0x30d856=(0x0,p[_0x33cb29(0x715)])({'unitId':_0x3d61b6,'subUnitId':_0x284f94,'drawingId':_0x19e331}),_0x58c3ac=_0x5ea371['getObject'](_0x30d856);if(_0x58c3ac instanceof m[_0x33cb29(0x2cb)]){let _0x20dbe5=_0x58c3ac[_0x33cb29(0x546)];if(_0x20dbe5)return{'prstGeom':_0x20dbe5,'adjustValues':_0x58c3ac[_0x33cb29(0x502)]};}}['_createControls'](_0x25855d=!0x1){const _0x369761=_0x8b89eb;if(!this[_0x369761(0x41d)]||!this[_0x369761(0x69e)]||!this[_0x369761(0x226)])return;let _0x3e8be6=this[_0x369761(0x6b0)][_0x369761(0x2b0)](this[_0x369761(0x41d)]);if(!_0x3e8be6||!_0x3e8be6[_0x369761(0x6fa)](_[_0x369761(0x42c)])['getCurrentSkeleton']())return;let {scene:_0x3a8b99}=_0x3e8be6,_0x232d95=this[_0x369761(0x4f7)](this['_unitId'],this[_0x369761(0x69e)],this[_0x369761(0x226)]);if(!_0x232d95)return;let {transform:_0xf03efb}=_0x232d95;if(!_0xf03efb)return;let {left:_0x1ce50d,top:_0x2551ac,width:_0x47412d,height:_0x20ec23,flipX:_0x5410ba,flipY:_0x6cdab4,angle:_0x49db6d=0x0}=_0xf03efb;if(_0x1ce50d===void 0x0||_0x2551ac===void 0x0)return;let _0x329199=this['_getImagePrstGeom'](this[_0x369761(0x41d)],this[_0x369761(0x69e)],this['_activeImageId']);if(!_0x329199)return;if(_0x25855d){let _0x6b111f=this['_getOrCreateShapeModel'](_0x329199[_0x369761(0x546)],_0x47412d||0x0,_0x20ec23||0x0,_0x329199[_0x369761(0x51b)]);if(!_0x6b111f)return;this[_0x369761(0x44f)]=_0x6b111f[_0x369761(0x458)]();}let _0x2ae501=this[_0x369761(0x44f)];if(!(!_0x2ae501||_0x2ae501[_0x369761(0x41f)]===0x0))for(let _0x5ccb41=0x0;_0x5ccb41<_0x2ae501[_0x369761(0x41f)];_0x5ccb41++){let _0x519b34=_0x2ae501[_0x5ccb41],_0x3a3154=_0x519b34['x'],_0x1ac39e=_0x519b34['y'];if(_0x5410ba&&(_0x3a3154=(_0x47412d||0x0)-_0x3a3154),_0x6cdab4&&(_0x1ac39e=(_0x20ec23||0x0)-_0x1ac39e),_0x49db6d!==0x0){let _0x5d8667=(_0x47412d||0x0)/0x2,_0x39e859=(_0x20ec23||0x0)/0x2,_0x27aaee=_0x49db6d*Math['PI']/0xb4,_0x56851a=Math[_0x369761(0x5e5)](_0x27aaee),_0x24ee16=Math[_0x369761(0x1ea)](_0x27aaee),_0x1e687f=_0x3a3154-_0x5d8667,_0x2e5aad=_0x1ac39e-_0x39e859;_0x3a3154=_0x5d8667+(_0x1e687f*_0x56851a-_0x2e5aad*_0x24ee16),_0x1ac39e=_0x39e859+(_0x1e687f*_0x24ee16+_0x2e5aad*_0x56851a);}let _0x379f99={'x':_0x3a3154,'y':_0x1ac39e,'adjName':_0x519b34['adjName']};this[_0x369761(0x3f9)](_0x3a8b99,_0x379f99,_0x379f99[_0x369761(0x3d1)],_0x1ce50d,_0x2551ac,this[_0x369761(0x41d)],this[_0x369761(0x69e)]);}}[_0x8b89eb(0x3f9)](_0x35034f,_0xfabb77,_0x11cfea,_0x74a578,_0x1dbe1d,_0xfddb9d,_0x39ef0b){const _0x191fe7=_0x8b89eb;if(!this[_0x191fe7(0x226)])return;let _0x5091ae=_0x191fe7(0x2ff)+this[_0x191fe7(0x226)]+'-'+_0x11cfea,_0x2768b3=_0x35034f[_0x191fe7(0x5db)](_0x5091ae);if(_0x2768b3){_0x2768b3['transformByState']({'left':_0xfabb77['x']+_0x74a578-y[_0x191fe7(0x619)][_0x191fe7(0x608)],'top':_0xfabb77['y']+_0x1dbe1d-y[_0x191fe7(0x619)][_0x191fe7(0x608)]});return;}let _0x1259c4=new ue(_0x5091ae,{'left':_0xfabb77['x']+_0x74a578-y[_0x191fe7(0x619)][_0x191fe7(0x608)],'top':_0xfabb77['y']+_0x1dbe1d-y[_0x191fe7(0x619)]['adjHandleSize'],'adjName':_0x11cfea,'shapeId':this['_activeImageId'],'unitId':_0xfddb9d,'subUnitId':_0x39ef0b,'width':y[_0x191fe7(0x619)][_0x191fe7(0x608)]+0x8,'height':y['ShapeDefaultConfig'][_0x191fe7(0x608)]+0x8,'zIndex':m[_0x191fe7(0x67b)]+0x1,'evented':!0x0});this[_0x191fe7(0x3bd)][_0x191fe7(0x6cd)](_0x1259c4),this[_0x191fe7(0x3ec)](_0x1259c4,_0x35034f,_0x11cfea),_0x35034f['addObject'](_0x1259c4,m[_0x191fe7(0x67b)]+0x1);}['_clearControls'](){const _0x14d5d4=_0x8b89eb;this['_shapes'][_0x14d5d4(0x41f)]!==0x0&&(this[_0x14d5d4(0x3bd)][_0x14d5d4(0x291)](_0x248f34=>_0x248f34[_0x14d5d4(0x2e5)]()),this[_0x14d5d4(0x3bd)]=[]);}[_0x8b89eb(0x3e7)](_0x193004,_0x31080e){const _0x264fb5=_0x8b89eb;var _0x23f49f;let _0x1f3be6={'x':0x0,'y':0x0},_0x65bdf4=this[_0x264fb5(0x6b0)][_0x264fb5(0x2b0)](_0x193004);if(!_0x65bdf4||!_0x65bdf4[_0x264fb5(0x6fa)](_[_0x264fb5(0x42c)])['getSkeleton'](_0x31080e))return _0x1f3be6;let _0x40f78c=_0x65bdf4[_0x264fb5(0x6fa)](_[_0x264fb5(0x23d)]),_0x144436=_0x40f78c==null?void 0x0:_0x40f78c[_0x264fb5(0x28f)]();if(!_0x144436)return _0x1f3be6;let _0x25d74e=(_0x23f49f=this[_0x264fb5(0x415)][_0x264fb5(0x6a6)](_0x193004))==null?void 0x0:_0x23f49f[_0x264fb5(0x276)](_0x31080e);if(!_0x25d74e)return _0x1f3be6;let _0x3d001a=(0x0,_[_0x264fb5(0x39a)])(_0x144436[_0x264fb5(0x3e4)],_0x144436['sheetViewStartColumn'],_0x65bdf4[_0x264fb5(0x272)],_0x25d74e);return _0x3d001a?{'x':_0x3d001a[_0x264fb5(0x2ce)],'y':_0x3d001a[_0x264fb5(0x3b1)]}:_0x1f3be6;}[_0x8b89eb(0x583)](_0x469160,_0x7eda23){const _0x18b973=_0x8b89eb;var _0x5f23a8,_0x5dcb01;let _0x2f8c61=(_0x5f23a8=this['_univerInstanceService'][_0x18b973(0x6a6)](_0x469160))==null?void 0x0:_0x5f23a8[_0x18b973(0x276)](_0x7eda23);return(_0x5dcb01=_0x2f8c61==null?void 0x0:_0x2f8c61[_0x18b973(0x375)]())==null?0x1:_0x5dcb01;}[_0x8b89eb(0x3ec)](_0x590aa5,_0xea1d0d,_0x51f69b){const _0x20c096=_0x8b89eb;this['disposeWithMe']((0x0,l['toDisposable'])(_0x590aa5[_0x20c096(0x438)][_0x20c096(0x507)]((_0x3edc39,_0x41226b)=>{const _0x38c474=_0x20c096;var _0x1496ef,_0x264335,_0x7efc19;let {unitId:_0x5726c8,subUnitId:_0x4f68c1,drawingId:_0x2e5018}=_0x590aa5['getDrawingSearch'](),_0x3b2084=this[_0x38c474(0x4f7)](_0x5726c8,_0x4f68c1,_0x2e5018);if(!(_0x3b2084!=null&&_0x3b2084[_0x38c474(0x5f1)]))return;let {left:_0x598888,top:_0x594a38,width:_0x1914fb,height:_0x2704d0}=_0x3b2084[_0x38c474(0x5f1)];this[_0x38c474(0x463)]=_0x598888||0x0,this[_0x38c474(0x6d1)]=_0x594a38||0x0,this[_0x38c474(0x41b)]=_0x1914fb||0x0,this[_0x38c474(0x5ef)]=_0x2704d0||0x0;let _0x3e1ceb=!!((_0x1496ef=_0x3b2084[_0x38c474(0x5f1)])!=null&&_0x1496ef[_0x38c474(0x5cb)]),_0x111cdc=!!((_0x264335=_0x3b2084[_0x38c474(0x5f1)])!=null&&_0x264335['flipY']),_0x1bca17=((_0x7efc19=_0x3b2084['transform'])==null?void 0x0:_0x7efc19[_0x38c474(0x42d)])||0x0,_0x59dd9b=this['_getImagePrstGeom'](_0x5726c8,_0x4f68c1,_0x2e5018);if(!_0x59dd9b)return;let _0x2280f3=this[_0x38c474(0x600)](_0x59dd9b['prstGeom'],this['_baseWidth'],this[_0x38c474(0x5ef)],_0x59dd9b[_0x38c474(0x51b)]);if(!_0x2280f3||(this[_0x38c474(0x68a)]=_0x2280f3,this['_activeAdjustInfo']=_0x2280f3['getAdjustInfoByName'](_0x51f69b),!this[_0x38c474(0x2e4)]))return;this[_0x38c474(0x270)]=!0x0,_0xea1d0d['disableObjectsEvent']();let _0x47fb43=_0x59dd9b[_0x38c474(0x546)];this[_0x38c474(0x33e)]=_0xea1d0d[_0x38c474(0x4e0)][_0x38c474(0x507)]((_0x2cacb9,_0x1e0a1c)=>{const _0x307de1=_0x38c474;if(!this[_0x307de1(0x270)])return;let {offsetX:_0x50787d,offsetY:_0x15dea9}=_0x2cacb9,_0x54a53d=this[_0x307de1(0x2e4)];if(!this[_0x307de1(0x68a)]||!_0x54a53d)return;_0xea1d0d['disableObjectsEvent'](),_0xea1d0d[_0x307de1(0x6a1)](m[_0x307de1(0x626)][_0x307de1(0x556)]);let _0x4ad8c7={'left':0x0,'top':0x0,'width':this[_0x307de1(0x41b)],'height':this[_0x307de1(0x5ef)]},_0x117981=this[_0x307de1(0x3e7)](_0x5726c8,_0x4f68c1),_0x547825=this[_0x307de1(0x583)](_0x5726c8,_0x4f68c1),_0xf7707c=_0x50787d/_0x547825+_0x117981['x']-this[_0x307de1(0x463)],_0x512735=_0x15dea9/_0x547825+_0x117981['y']-this['_baseTop'];if(_0x1bca17!==0x0){let _0x56f379=this[_0x307de1(0x41b)]/0x2,_0xbd91c6=this[_0x307de1(0x5ef)]/0x2,_0x214e50=_0x1bca17*Math['PI']/0xb4,_0x1b04b5=Math[_0x307de1(0x5e5)](_0x214e50),_0x210613=Math[_0x307de1(0x1ea)](_0x214e50),_0x2dcd27=_0xf7707c-_0x56f379,_0x5a4583=_0x512735-_0xbd91c6;_0xf7707c=_0x56f379+(_0x2dcd27*_0x1b04b5+_0x5a4583*_0x210613),_0x512735=_0xbd91c6+(-_0x2dcd27*_0x210613+_0x5a4583*_0x1b04b5);}_0x3e1ceb&&(_0xf7707c=this[_0x307de1(0x41b)]-_0xf7707c),_0x111cdc&&(_0x512735=this[_0x307de1(0x5ef)]-_0x512735);let _0x108f94=this[_0x307de1(0x68a)]['calcAdjValue'](_0x4ad8c7,{'x':_0xf7707c,'y':_0x512735},_0x54a53d,_0x3e1ceb,_0x111cdc),_0x3e29b7=_0x54a53d[_0x307de1(0x549)]||_0x54a53d[_0x307de1(0x20b)]||_0x54a53d['gdRefAng']||_0x54a53d[_0x307de1(0x588)];_0x3e29b7!==void 0x0&&(this[_0x307de1(0x68a)][_0x307de1(0x3cb)](_0x3e29b7,_0x108f94),this[_0x307de1(0x68a)][_0x307de1(0x6a3)]({'width':this[_0x307de1(0x41b)],'height':this[_0x307de1(0x5ef)]}),this['_updateImageAdjValues'](_0x5726c8,_0x4f68c1,_0x2e5018,_0x3e29b7,_0x108f94),this[_0x307de1(0x44f)]=this[_0x307de1(0x68a)]['getDrawingPoints'](),this[_0x307de1(0x2e4)]=this['_activeShapeModel'][_0x307de1(0x2d6)](_0x51f69b),this['_createControls'](),_0x1e0a1c['stopPropagation']());}),this['_adjHandlerPointerUp']=_0xea1d0d[_0x38c474(0x74f)][_0x38c474(0x507)]((_0x5ab72a,_0x310f51)=>{const _0x290f7c=_0x38c474;if(this[_0x290f7c(0x33e)]['unsubscribe'](),this[_0x290f7c(0x4a4)][_0x290f7c(0x5aa)](),_0xea1d0d[_0x290f7c(0x307)](),this[_0x290f7c(0x68a)]){let _0x383813=this['_activeShapeModel']['getAdjustNames'](),_0x52e8e3={};for(let _0x5c439a of _0x383813){let _0x9cdb83=this[_0x290f7c(0x68a)][_0x290f7c(0x54c)](_0x5c439a);_0x9cdb83!==void 0x0&&(_0x52e8e3[_0x5c439a]=_0x9cdb83);}this[_0x290f7c(0x661)]['clipByShape'](_0x5726c8,_0x4f68c1,_0x2e5018,_0x47fb43,_0x52e8e3);}this[_0x290f7c(0x2e4)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x290f7c(0x270)]=!0x1,_0x310f51['stopPropagation'](),_0xea1d0d[_0x290f7c(0x46f)]();}),_0x41226b['stopPropagation']();})));}[_0x8b89eb(0x5e4)](_0x3707ea,_0x2f69a3,_0x23bec3,_0x10fde9,_0x532600){const _0x1ca73c=_0x8b89eb;let _0x34bf1d=this[_0x1ca73c(0x6b0)][_0x1ca73c(0x2b0)](_0x3707ea);if(!_0x34bf1d)return;let {scene:_0x117764}=_0x34bf1d,_0x23a5c5=(0x0,p[_0x1ca73c(0x715)])({'unitId':_0x3707ea,'subUnitId':_0x2f69a3,'drawingId':_0x23bec3}),_0x2419e2=_0x117764[_0x1ca73c(0x4ea)](_0x23a5c5);if(_0x2419e2 instanceof m[_0x1ca73c(0x2cb)]){var _0x39b02d;let _0x251cbf=(_0x39b02d=_0x2419e2[_0x1ca73c(0x502)])==null?{}:_0x39b02d;_0x2419e2[_0x1ca73c(0x625)]({..._0x251cbf,[_0x10fde9]:_0x532600}),_0x2419e2[_0x1ca73c(0x700)](!0x0);}}[_0x8b89eb(0x718)](){const _0x17234c=_0x8b89eb;let _0x291867=this[_0x17234c(0x415)][_0x17234c(0x62c)](l['UniverInstanceType']['UNIVER_SHEET']);this[_0x17234c(0x37c)](_0x291867[_0x17234c(0x2f4)]((0x0,f[_0x17234c(0x724)])(_0x4c2330=>_0x4c2330?_0x4c2330[_0x17234c(0x54e)][_0x17234c(0x2f4)]((0x0,f[_0x17234c(0x724)])(_0x467945=>{const _0x885c4a=_0x17234c;if(!_0x467945)return f['EMPTY'];let _0x438b20=_0x4c2330[_0x885c4a(0x582)](),_0x1a60d2=this[_0x885c4a(0x6b0)][_0x885c4a(0x2b0)](_0x438b20),_0x32a786=_0x1a60d2==null?void 0x0:_0x1a60d2[_0x885c4a(0x272)];return _0x32a786?(0x0,f['of'])(_0x32a786):f[_0x885c4a(0x575)];})):f[_0x17234c(0x575)]))['subscribe'](_0x39a6a9=>{const _0x1c09f=_0x17234c;let _0x413403=_0x39a6a9[_0x1c09f(0x4e5)]();this[_0x1c09f(0x37c)](_0x39a6a9['onPointerMove$'][_0x1c09f(0x507)](()=>{const _0x4a6d56=_0x1c09f;this[_0x4a6d56(0x420)]&&this[_0x4a6d56(0x547)]();})),this[_0x1c09f(0x37c)](_0x413403[_0x1c09f(0x5c6)][_0x1c09f(0x4ee)](_0x1f2010=>{const _0x15ee8a=_0x1c09f;let {objects:_0x4ae9d0}=_0x1f2010;if(this['_createControls'](),_0x4ae9d0!==null&&_0x4ae9d0[_0x15ee8a(0x4c9)]===0x1){let _0xf8132d=_0x4ae9d0[_0x15ee8a(0x54f)]()[_0x15ee8a(0x31c)]()[_0x15ee8a(0x21d)];_0xf8132d instanceof m[_0x15ee8a(0x2cb)]&&_0xf8132d[_0x15ee8a(0x546)]&&(this[_0x15ee8a(0x420)]=!0x0);}})),this[_0x1c09f(0x37c)](_0x413403['changing$'][_0x1c09f(0x4ee)](()=>{const _0x3d7a91=_0x1c09f;this['_isImagePointerDown']&&this[_0x3d7a91(0x547)]();})),this[_0x1c09f(0x37c)](_0x39a6a9[_0x1c09f(0x74f)][_0x1c09f(0x507)](()=>{const _0x142d9b=_0x1c09f;this[_0x142d9b(0x420)]&&(this['_isImagePointerDown']=!0x1,this[_0x142d9b(0x6a2)]());})),this[_0x1c09f(0x37c)](_0x413403[_0x1c09f(0x21c)][_0x1c09f(0x4ee)](()=>{const _0x3c3757=_0x1c09f;if(this[_0x3c3757(0x41d)]&&this[_0x3c3757(0x69e)]&&this[_0x3c3757(0x226)]){let _0x1c3e12=this['_getImagePrstGeom'](this[_0x3c3757(0x41d)],this[_0x3c3757(0x69e)],this[_0x3c3757(0x226)]);if(_0x1c3e12){var _0x236fce,_0x2318ec;let _0x50b1fa=this[_0x3c3757(0x4f7)](this['_unitId'],this[_0x3c3757(0x69e)],this['_activeImageId']),_0x2e3881=(_0x50b1fa==null||(_0x236fce=_0x50b1fa[_0x3c3757(0x5f1)])==null?void 0x0:_0x236fce[_0x3c3757(0x497)])||0x0,_0x374b4d=(_0x50b1fa==null||(_0x2318ec=_0x50b1fa['transform'])==null?void 0x0:_0x2318ec['height'])||0x0,_0x3097e1=this[_0x3c3757(0x600)](_0x1c3e12[_0x3c3757(0x546)],_0x2e3881,_0x374b4d,_0x1c3e12[_0x3c3757(0x51b)]);_0x3097e1&&(this[_0x3c3757(0x44f)]=_0x3097e1[_0x3c3757(0x458)](),this[_0x3c3757(0x547)](),this[_0x3c3757(0x6a2)](!0x0));}}}));}));}[_0x8b89eb(0x580)](){const _0x462bda=_0x8b89eb;this[_0x462bda(0x37c)](this['_drawingManagerService'][_0x462bda(0x3f3)]['subscribe'](_0x38d261=>{const _0x23fcb3=_0x462bda;if(_0x38d261[_0x23fcb3(0x41f)]===0x1){let _0x479277=_0x38d261[0x0];if(_0x479277[_0x23fcb3(0x6e7)]===l[_0x23fcb3(0x638)][_0x23fcb3(0x2c5)]){let {unitId:_0x216611,subUnitId:_0x5b9be4,drawingId:_0x35198c}=_0x479277,_0x2f26dc=this[_0x23fcb3(0x4aa)](_0x216611,_0x5b9be4,_0x35198c);if(_0x2f26dc){var _0x193a5f,_0x412231;this[_0x23fcb3(0x226)]=_0x35198c,this[_0x23fcb3(0x41d)]=_0x216611,this['_subUnitId']=_0x5b9be4;let _0x319d0b=this['_getImageDrawingInfo'](_0x216611,_0x5b9be4,_0x35198c),_0x21a86e=(_0x319d0b==null||(_0x193a5f=_0x319d0b[_0x23fcb3(0x5f1)])==null?void 0x0:_0x193a5f[_0x23fcb3(0x497)])||0x0,_0x6ea7da=(_0x319d0b==null||(_0x412231=_0x319d0b[_0x23fcb3(0x5f1)])==null?void 0x0:_0x412231[_0x23fcb3(0x560)])||0x0,_0x1ecb24=this[_0x23fcb3(0x600)](_0x2f26dc[_0x23fcb3(0x546)],_0x21a86e,_0x6ea7da,_0x2f26dc[_0x23fcb3(0x51b)]);_0x1ecb24&&(this[_0x23fcb3(0x44f)]=_0x1ecb24[_0x23fcb3(0x458)]()),this[_0x23fcb3(0x547)](),this[_0x23fcb3(0x6a2)](!0x0);}else this['_resetState']();}else this[_0x23fcb3(0x51d)]();}else this[_0x23fcb3(0x51d)]();})),this[_0x462bda(0x37c)](this['_drawingManagerService'][_0x462bda(0x65d)][_0x462bda(0x4ee)](_0x1735ed=>{const _0x1632c0=_0x462bda;if(_0x1735ed['length']===0x1){let _0x2f1f3c=_0x1735ed[0x0],_0xc42e22=this[_0x1632c0(0x287)][_0x1632c0(0x34e)](_0x2f1f3c);(_0xc42e22==null?void 0x0:_0xc42e22[_0x1632c0(0x6e7)])===l[_0x1632c0(0x638)]['DRAWING_IMAGE']&&this[_0x1632c0(0x226)]===_0x2f1f3c['drawingId']&&(this[_0x1632c0(0x547)](),this['_createControls'](!0x0));}})),this[_0x462bda(0x37c)](this[_0x462bda(0x287)][_0x462bda(0x29d)][_0x462bda(0x4ee)](_0x2820b7=>{const _0x5d02ea=_0x462bda;for(let _0x39a12c of _0x2820b7)this[_0x5d02ea(0x226)]===_0x39a12c[_0x5d02ea(0x591)]&&this[_0x5d02ea(0x51d)]();}));}['_resetState'](){const _0x5952d3=_0x8b89eb;this['_activeImageId']=null,this['_unitId']=null,this[_0x5952d3(0x69e)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x5952d3(0x547)]();}};Ae=W([U(0x1,p[_0x8b89eb(0x5ba)]),U(0x2,(0x0,l[_0x8b89eb(0x3f0)])(m[_0x8b89eb(0x6ec)])),U(0x3,l[_0x8b89eb(0x2b1)]),U(0x4,(0x0,l[_0x8b89eb(0x3f0)])(de))],Ae);let je=class extends l[_0x8b89eb(0x301)]{constructor(_0x36e8a2,_0x712e12,_0x4707e3,_0x520061){const _0x381290=_0x8b89eb;super(),this[_0x381290(0x415)]=_0x36e8a2,this[_0x381290(0x331)]=_0x712e12,this['_sheetDrawingService']=_0x4707e3,this[_0x381290(0x36b)]=_0x520061,this[_0x381290(0x726)]();}[_0x8b89eb(0x726)](){const _0x44ddc9=_0x8b89eb;this[_0x44ddc9(0x37c)](this[_0x44ddc9(0x331)][_0x44ddc9(0x40f)]({'getMutations':_0x274e9a=>{const _0x235c3e=_0x44ddc9;if(_0x274e9a['id']===u[_0x235c3e(0x676)]['id']){let _0x32d7ab=(0x0,u['getSheetCommandTarget'])(this[_0x235c3e(0x415)],_0x274e9a[_0x235c3e(0x25e)]);if(!_0x32d7ab)return{'redos':[],'undos':[]};let {unitId:_0x16c682,subUnitId:_0x49de35}=_0x32d7ab,_0x10b58b=this[_0x235c3e(0x5a2)][_0x235c3e(0x43f)](_0x16c682,_0x49de35),_0x2904c5=Object[_0x235c3e(0x54f)](_0x10b58b)[_0x235c3e(0x1fe)](_0x540bac=>_0x540bac[_0x235c3e(0x6e7)]===l['DrawingTypeEnum'][_0x235c3e(0x73a)]);if(_0x2904c5['length']===0x0)return{'redos':[],'undos':[]};let _0x5d0582=[],_0x51c0a4=[];for(let _0x13c809=0x0;_0x13c809<_0x2904c5[_0x235c3e(0x41f)];_0x13c809++){let _0x5932d3=_0x2904c5[_0x13c809],_0x42cd23=this['_sheetsShapeService'][_0x235c3e(0x598)](_0x5932d3[_0x235c3e(0x4cd)],_0x5932d3[_0x235c3e(0x439)],_0x5932d3['drawingId']);if(!_0x42cd23)continue;let {redo:_0x2759f4,undo:_0x4fe7c8,objects:_0x52a190}=this[_0x235c3e(0x5a2)][_0x235c3e(0x59e)]([_0x5932d3]);_0x5d0582[_0x235c3e(0x6cd)]({'id':c[_0x235c3e(0x3a1)]['id'],'params':{'unitId':_0x16c682,'subUnitId':_0x49de35,'shapeId':_0x5932d3[_0x235c3e(0x591)]}}),_0x5d0582[_0x235c3e(0x6cd)]({'id':d[_0x235c3e(0x70a)]['id'],'params':{'unitId':_0x16c682,'subUnitId':_0x49de35,'type':d['DrawingApplyType']['REMOVE'],'op':_0x2759f4,'objects':_0x52a190}}),_0x51c0a4['push']({'id':d['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x16c682,'subUnitId':_0x49de35,'type':d[_0x235c3e(0x441)][_0x235c3e(0x335)],'op':_0x4fe7c8,'objects':_0x52a190}}),_0x51c0a4['push']({'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x16c682,'subUnitId':_0x49de35,'shapeId':_0x5932d3[_0x235c3e(0x591)],'shapeType':_0x42cd23[_0x235c3e(0x5d7)](),'shapeData':JSON['parse'](JSON[_0x235c3e(0x3e1)](_0x42cd23[_0x235c3e(0x6cc)]()))}});}return{'redos':_0x5d0582,'undos':_0x51c0a4};}else{if(_0x274e9a['id']===u[_0x235c3e(0x378)]['id']){let {unitId:_0x128b14,subUnitId:_0x56f975,targetSubUnitId:_0x3a813e}=_0x274e9a[_0x235c3e(0x25e)];if(!_0x128b14||!_0x56f975||!_0x3a813e)return{'redos':[],'undos':[]};let _0xd74141=this['_sheetDrawingService'][_0x235c3e(0x43f)](_0x128b14,_0x56f975),_0x5cb262=Object['values'](_0xd74141)[_0x235c3e(0x1fe)](_0x561b88=>_0x561b88[_0x235c3e(0x6e7)]===l[_0x235c3e(0x638)]['DRAWING_SHAPE']);if(_0x5cb262['length']===0x0)return{'redos':[],'undos':[]};let _0x391a9e=[],_0x24ecf6=[];for(let _0x575962=0x0;_0x575962<_0x5cb262[_0x235c3e(0x41f)];_0x575962++){let _0x112ba6=_0x5cb262[_0x575962],_0x5a1bb2=this[_0x235c3e(0x36b)]['getShapeModel'](_0x112ba6[_0x235c3e(0x4cd)],_0x112ba6[_0x235c3e(0x439)],_0x112ba6['drawingId']);if(!_0x5a1bb2)continue;let _0x3a7907=(0x0,l['generateRandomId'])(),_0x29feeb={..._0x112ba6,'unitId':_0x128b14,'subUnitId':_0x3a813e,'drawingId':_0x3a7907},{redo:_0x39c81f,undo:_0x3fc2fa,objects:_0x4381a4}=this[_0x235c3e(0x5a2)][_0x235c3e(0x2bb)]([_0x29feeb]);_0x391a9e[_0x235c3e(0x6cd)]({'id':d[_0x235c3e(0x70a)]['id'],'params':{'unitId':_0x128b14,'subUnitId':_0x3a813e,'type':d[_0x235c3e(0x441)][_0x235c3e(0x335)],'op':_0x39c81f,'objects':_0x4381a4}}),_0x391a9e[_0x235c3e(0x6cd)]({'id':c[_0x235c3e(0x1f5)]['id'],'params':{'unitId':_0x128b14,'subUnitId':_0x3a813e,'shapeId':_0x3a7907,'shapeType':_0x5a1bb2[_0x235c3e(0x5d7)](),'shapeData':JSON[_0x235c3e(0x5f0)](JSON[_0x235c3e(0x3e1)](_0x5a1bb2['getShapeData']()))}}),_0x24ecf6[_0x235c3e(0x6cd)]({'id':c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x128b14,'subUnitId':_0x3a813e,'shapeId':_0x3a7907}}),_0x24ecf6[_0x235c3e(0x6cd)]({'id':d[_0x235c3e(0x70a)]['id'],'params':{'unitId':_0x128b14,'subUnitId':_0x3a813e,'type':d[_0x235c3e(0x441)][_0x235c3e(0x70c)],'op':_0x3fc2fa,'objects':_0x4381a4}});}return{'redos':_0x391a9e,'undos':_0x24ecf6};}}return{'redos':[],'undos':[]};}}));}};je=W([U(0x0,(0x0,l[_0x8b89eb(0x3f0)])(l[_0x8b89eb(0x2b1)])),U(0x1,(0x0,l['Inject'])(u[_0x8b89eb(0x2f6)])),U(0x2,(0x0,l[_0x8b89eb(0x3f0)])(d[_0x8b89eb(0x22a)])),U(0x3,(0x0,l[_0x8b89eb(0x3f0)])(c[_0x8b89eb(0x450)]))],je);let Me=class extends l[_0x8b89eb(0x301)]{constructor(_0x546311,_0x1a8ea9,_0x142b78,_0x5d8b24,_0xc7e1c3){const _0x2da01d=_0x8b89eb;super(),this[_0x2da01d(0x6ce)]=_0x546311,this[_0x2da01d(0x59a)]=_0x1a8ea9,this[_0x2da01d(0x287)]=_0x142b78,this['_contextService']=_0x5d8b24,this[_0x2da01d(0x36b)]=_0xc7e1c3,k(this,_0x2da01d(0x352),null),this[_0x2da01d(0x6bd)](),this[_0x2da01d(0x3c6)](),this[_0x2da01d(0x683)]();}[_0x8b89eb(0x6bd)](){const _0x13ca1d=_0x8b89eb;let {scene:_0x3f21ad}=this[_0x13ca1d(0x6ce)];this['disposeWithMe'](_0x3f21ad[_0x13ca1d(0x32d)]['subscribeEvent'](_0x1c955a=>{const _0x195dcc=_0x13ca1d;let {offsetX:_0x244b27,offsetY:_0x2794df}=_0x1c955a,_0x2a383c=_0x3f21ad['pick'](m['Vector2'][_0x195dcc(0x466)]([_0x244b27,_0x2794df]));if(_0x2a383c instanceof H){if((0x0,y[_0x195dcc(0x6a8)])(this[_0x195dcc(0x36b)][_0x195dcc(0x5d7)](_0x2a383c[_0x195dcc(0x4cd)],_0x2a383c['subUnitId'],_0x2a383c[_0x195dcc(0x3a6)])))return;this['_shapeTextEditingService'][_0x195dcc(0x6db)]({'visible':!0x0,'unitId':_0x2a383c[_0x195dcc(0x4cd)],'subUnitId':_0x2a383c[_0x195dcc(0x439)],'shapeId':_0x2a383c[_0x195dcc(0x3a6)],'shapeKey':_0x2a383c[_0x195dcc(0x2a4)]});}}));}[_0x8b89eb(0x3c6)](){const _0xacdc5f=_0x8b89eb;this['disposeWithMe'](this[_0xacdc5f(0x287)][_0xacdc5f(0x3f3)]['subscribe'](_0xf88ceb=>{const _0x25ccf8=_0xacdc5f;if(_0xf88ceb['length']===0x1){let _0x20a53a=_0xf88ceb[0x0],_0x152ee8=this[_0x25ccf8(0x287)][_0x25ccf8(0x34e)](_0x20a53a);if((_0x152ee8==null?void 0x0:_0x152ee8[_0x25ccf8(0x6e7)])===l['DrawingTypeEnum'][_0x25ccf8(0x73a)]){let _0x5c0e9f=this[_0x25ccf8(0x59a)][_0x25ccf8(0x4d1)]();if((_0x5c0e9f==null?void 0x0:_0x5c0e9f['shapeId'])===_0x20a53a['drawingId']&&_0x5c0e9f['visible'])return;(0x0,y['isConnectorShape'])(this['_sheetsShapeService'][_0x25ccf8(0x5d7)](_0x20a53a[_0x25ccf8(0x4cd)],_0x20a53a[_0x25ccf8(0x439)],_0x20a53a['drawingId']))&&this[_0x25ccf8(0x59a)]['setEditing'](null);}else this[_0x25ccf8(0x59a)][_0x25ccf8(0x4d1)]()&&(this['_shapeTextEditingService'][_0x25ccf8(0x292)](!0x0),requestAnimationFrame(()=>{const _0xff7edd=_0x25ccf8;this[_0xff7edd(0x59a)][_0xff7edd(0x6db)](null);}));}else this[_0x25ccf8(0x59a)][_0x25ccf8(0x4d1)]()&&(this[_0x25ccf8(0x59a)][_0x25ccf8(0x292)](!0x0),requestAnimationFrame(()=>{const _0x25fbe0=_0x25ccf8;this['_shapeTextEditingService'][_0x25fbe0(0x6db)](null);}));})),this['disposeWithMe'](this[_0xacdc5f(0x287)][_0xacdc5f(0x29d)][_0xacdc5f(0x4ee)](_0x1478ea=>{const _0x5f3cb1=_0xacdc5f;let _0x539fe9=this[_0x5f3cb1(0x59a)]['getEditing']();_0x539fe9&&_0x1478ea[_0x5f3cb1(0x367)](_0x39019b=>_0x39019b[_0x5f3cb1(0x591)]===_0x539fe9[_0x5f3cb1(0x3a6)])&&this[_0x5f3cb1(0x59a)]['setEditing'](null);}));}[_0x8b89eb(0x683)](){const _0x1339d8=_0x8b89eb;this[_0x1339d8(0x37c)](this[_0x1339d8(0x59a)]['editingParams$'][_0x1339d8(0x4ee)](_0x344aca=>{const _0x180a88=_0x1339d8;let {scene:_0x3caaad}=this[_0x180a88(0x6ce)];if(this['_lastEditingShapeKey']){let _0x2961ce=_0x3caaad[_0x180a88(0x5db)](this[_0x180a88(0x352)]);_0x2961ce&&_0x2961ce['setEditing'](!0x1);}if(_0x344aca){let _0x2b5455=!!_0x344aca[_0x180a88(0x469)],_0x49bf15=_0x3caaad[_0x180a88(0x5db)](_0x344aca[_0x180a88(0x585)]);_0x49bf15&&(_0x49bf15[_0x180a88(0x6db)](_0x2b5455),this[_0x180a88(0x352)]=_0x344aca['shapeKey']),this[_0x180a88(0x41c)]['setContextValue'](l[_0x180a88(0x273)],_0x2b5455);}else this['_lastEditingShapeKey']=null,this[_0x180a88(0x41c)][_0x180a88(0x6a0)](l['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};Me=W([U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(A)),U(0x2,p[_0x8b89eb(0x5ba)]),U(0x3,l['IContextService']),U(0x4,(0x0,l[_0x8b89eb(0x3f0)])(c[_0x8b89eb(0x450)]))],Me);const Ne={'normal':{'fill':y[_0x8b89eb(0x619)][_0x8b89eb(0x508)],'stroke':y['ShapeDefaultConfig']['cxnPointStroke'],'strokeWidth':y[_0x8b89eb(0x619)][_0x8b89eb(0x3f7)]},'highlighted':{'fill':_0x8b89eb(0x2b5),'stroke':_0x8b89eb(0x4be),'strokeWidth':0x2}};var Pe=class extends m[_0x8b89eb(0x4df)]{constructor(_0x222a62,_0x4ebaf3){const _0x29b8fc=_0x8b89eb;super(_0x222a62,_0x4ebaf3),k(this,_0x29b8fc(0x398),''),k(this,_0x29b8fc(0x56f),-0x1),k(this,_0x29b8fc(0x41d),''),k(this,_0x29b8fc(0x69e),''),k(this,'_isHighlighted',!0x1),_0x4ebaf3&&this[_0x29b8fc(0x6c0)](_0x4ebaf3);}[_0x8b89eb(0x23c)](){const _0x439519=_0x8b89eb;return{'unitId':this[_0x439519(0x41d)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x439519(0x398)],'cxnIndex':this['_cxnIndex']};}[_0x8b89eb(0x500)](_0x31214e){const _0x2c4d84=_0x8b89eb;this[_0x2c4d84(0x39d)]!==_0x31214e&&(this[_0x2c4d84(0x39d)]=_0x31214e,this[_0x2c4d84(0x700)](!0x0));}[_0x8b89eb(0x2c1)](){const _0xe20cd0=_0x8b89eb;return this[_0xe20cd0(0x39d)];}[_0x8b89eb(0x6c0)](_0x15841d){const _0x1a8326=_0x8b89eb;var _0x395d32,_0x4f59b0;_0x15841d[_0x1a8326(0x71d)]!==void 0x0&&(this[_0x1a8326(0x398)]=_0x15841d['targetShapeId']),_0x15841d[_0x1a8326(0x329)]!==void 0x0&&(this[_0x1a8326(0x56f)]=_0x15841d[_0x1a8326(0x329)]),_0x15841d['unitId']!==void 0x0&&(this[_0x1a8326(0x41d)]=_0x15841d[_0x1a8326(0x4cd)]),_0x15841d[_0x1a8326(0x439)]!==void 0x0&&(this[_0x1a8326(0x69e)]=_0x15841d[_0x1a8326(0x439)]),_0x15841d[_0x1a8326(0x2c1)]!==void 0x0&&(this[_0x1a8326(0x39d)]=_0x15841d['isHighlighted']),this['transformByState']({'width':(_0x395d32=_0x15841d[_0x1a8326(0x497)])==null?y[_0x1a8326(0x619)][_0x1a8326(0x2d7)]*0x2:_0x395d32,'height':(_0x4f59b0=_0x15841d[_0x1a8326(0x560)])==null?y[_0x1a8326(0x619)][_0x1a8326(0x2d7)]*0x2:_0x4f59b0});}[_0x8b89eb(0x372)](_0x256b7d){const _0x13514b=_0x8b89eb;let _0x3c6b50=this[_0x13514b(0x39d)]?Ne[_0x13514b(0x506)]:Ne[_0x13514b(0x2c4)];m[_0x13514b(0x2fc)][_0x13514b(0x3fe)](_0x256b7d,{'radius':y[_0x13514b(0x619)][_0x13514b(0x2d7)],'fill':_0x3c6b50[_0x13514b(0x29e)],'stroke':_0x3c6b50[_0x13514b(0x659)],'strokeWidth':_0x3c6b50[_0x13514b(0x59f)],'evented':!0x0});}};let Fe=class extends l[_0x8b89eb(0x301)]{constructor(_0x360d24,_0x10d416,_0x10e291,_0x3d81e7){const _0x92dc33=_0x8b89eb;super(),this[_0x92dc33(0x6ce)]=_0x360d24,this[_0x92dc33(0x6b0)]=_0x10d416,this['_drawingManagerService']=_0x10e291,this[_0x92dc33(0x36b)]=_0x3d81e7,k(this,'_connectionSiteObjects',[]),k(this,'_activeTargetShapeId',null),k(this,_0x92dc33(0x5c7),-0x1),k(this,_0x92dc33(0x6de),null),k(this,'_unitId',''),k(this,_0x92dc33(0x69e),''),k(this,_0x92dc33(0x5a0),null);}[_0x8b89eb(0x24e)](_0x53a9d5,_0x1c9fba,_0x12173b,_0x1981bb){const _0x473105=_0x8b89eb;this[_0x473105(0x6de)]=_0x53a9d5,this[_0x473105(0x41d)]=_0x1c9fba,this[_0x473105(0x69e)]=_0x12173b,this[_0x473105(0x5a0)]=_0x1981bb;}[_0x8b89eb(0x755)](_0x640f57){const _0x17b6f3=_0x8b89eb;if(!this['_currentScene'])return null;let _0x3602f7=this['_findShapeAtPoint'](_0x640f57);return _0x3602f7?(this[_0x17b6f3(0x4f0)]!==_0x3602f7[_0x17b6f3(0x3a6)]&&(this[_0x17b6f3(0x248)](),this[_0x17b6f3(0x2ec)](_0x3602f7[_0x17b6f3(0x3a6)],_0x3602f7[_0x17b6f3(0x345)]),this[_0x17b6f3(0x4f0)]=_0x3602f7[_0x17b6f3(0x3a6)]),this[_0x17b6f3(0x618)](_0x640f57)):(this[_0x17b6f3(0x4f0)]!==null&&(this[_0x17b6f3(0x248)](),this[_0x17b6f3(0x4f0)]=null),null);}['endConnectionDetection'](){const _0x5e0387=_0x8b89eb;this['_clearConnectionSites'](),this[_0x5e0387(0x6de)]=null,this[_0x5e0387(0x4f0)]=null,this[_0x5e0387(0x5c7)]=-0x1,this[_0x5e0387(0x5a0)]=null;}[_0x8b89eb(0x55a)](){const _0x40a7a6=_0x8b89eb;return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x40a7a6(0x4f0)],'cxnIndex':this[_0x40a7a6(0x5c7)]};}[_0x8b89eb(0x3c3)](_0x86709f){const _0x538d04=_0x8b89eb;let _0x492731=this[_0x538d04(0x287)]['getDrawingData'](this[_0x538d04(0x41d)],this[_0x538d04(0x69e)]);for(let _0x3dea69 of Object['keys'](_0x492731)){if(_0x3dea69===this[_0x538d04(0x5a0)]||_0x492731[_0x3dea69][_0x538d04(0x6e7)]!==l['DrawingTypeEnum'][_0x538d04(0x73a)])continue;let _0x18fa4a=this[_0x538d04(0x36b)][_0x538d04(0x598)](this['_unitId'],this[_0x538d04(0x69e)],_0x3dea69);if(!_0x18fa4a||(0x0,y[_0x538d04(0x6a8)])(_0x18fa4a[_0x538d04(0x5d7)]())||_0x18fa4a[_0x538d04(0x56e)]()[_0x538d04(0x41f)]===0x0||!this[_0x538d04(0x6de)])continue;let _0x339d2b=(0x0,p[_0x538d04(0x715)])({'unitId':this[_0x538d04(0x41d)],'subUnitId':this[_0x538d04(0x69e)],'drawingId':_0x3dea69}),_0x44e19a=this[_0x538d04(0x6de)][_0x538d04(0x5db)](_0x339d2b);if(!_0x44e19a)continue;let {left:_0x3d2274,top:_0x5750c8,width:_0x62f4f8,height:_0x293306}=_0x44e19a['getRealBound'](),_0x41cffe=_0x3d2274+_0x62f4f8/0x2,_0x2c7d64=_0x5750c8+_0x293306/0x2,_0x505594=_0x44e19a[_0x538d04(0x5f1)][_0x538d04(0x4af)](),_0x5ccc96=new m[(_0x538d04(0x337))]([_0x505594[0x0],_0x505594[0x1],_0x505594[0x2],_0x505594[0x3],_0x41cffe,_0x2c7d64]),_0xd1434f=_0x44e19a[_0x538d04(0x363)](),_0x2075b6=(_0x44e19a['isInGroup']&&(_0xd1434f==null?void 0x0:_0xd1434f['classType'])===m[_0x538d04(0x358)][_0x538d04(0x711)]?_0xd1434f[_0x538d04(0x309)]['multiply'](_0x5ccc96):_0x5ccc96)[_0x538d04(0x3ed)]()[_0x538d04(0x20f)](_0x86709f),_0x19667e=_0x62f4f8/0x2,_0x4e5824=_0x293306/0x2;if(_0x2075b6['x']>=-_0x19667e-0x5&&_0x2075b6['x']<=_0x19667e+0x5&&_0x2075b6['y']>=-_0x4e5824-0x5&&_0x2075b6['y']<=_0x4e5824+0x5)return{'shapeId':_0x3dea69,'shapeModel':_0x18fa4a};}return null;}[_0x8b89eb(0x2ec)](_0xc26389,_0x589e0a){const _0x286dac=_0x8b89eb;if(!this[_0x286dac(0x6de)])return;let _0x3532c5=(0x0,p[_0x286dac(0x715)])({'unitId':this[_0x286dac(0x41d)],'subUnitId':this[_0x286dac(0x69e)],'drawingId':_0xc26389}),_0x52f409=this[_0x286dac(0x6de)][_0x286dac(0x5db)](_0x3532c5);if(!_0x52f409)return;let {left:_0x43d022,top:_0x3d199f,width:_0x3e411a,height:_0x43344c}=_0x52f409[_0x286dac(0x620)](),_0x486b83=_0x43d022+_0x3e411a/0x2,_0x985480=_0x3d199f+_0x43344c/0x2,_0x221ad3=_0x52f409[_0x286dac(0x5f1)][_0x286dac(0x4af)](),_0x2fca5d=new m['Transform']([_0x221ad3[0x0],_0x221ad3[0x1],_0x221ad3[0x2],_0x221ad3[0x3],_0x486b83,_0x985480]),_0x58f5b4=_0x52f409[_0x286dac(0x363)](),_0x9dd9cb=_0x52f409['isInGroup']&&(_0x58f5b4==null?void 0x0:_0x58f5b4[_0x286dac(0x26a)])===m[_0x286dac(0x358)][_0x286dac(0x711)]?_0x58f5b4[_0x286dac(0x309)]['multiply'](_0x2fca5d):_0x2fca5d;_0x589e0a[_0x286dac(0x6a3)]({'width':_0x3e411a,'height':_0x43344c});let _0x59715f=_0x589e0a[_0x286dac(0x56e)]();for(let _0x341ca0 of _0x59715f){let _0x1b2cab=_0x341ca0['x']-_0x3e411a/0x2,_0x5de75f=_0x341ca0['y']-_0x43344c/0x2,_0x25c1bc=_0x9dd9cb[_0x286dac(0x20f)]({'x':_0x1b2cab,'y':_0x5de75f}),_0x488542=_0x25c1bc['x'],_0x5c9e25=_0x25c1bc['y'],_0x22629f=new Pe(_0x286dac(0x635)+_0xc26389+'-'+_0x341ca0[_0x286dac(0x483)],{'left':_0x488542-y[_0x286dac(0x619)][_0x286dac(0x2d7)],'top':_0x5c9e25-y[_0x286dac(0x619)][_0x286dac(0x2d7)],'targetShapeId':_0xc26389,'cxnIndex':_0x341ca0['index'],'unitId':this[_0x286dac(0x41d)],'subUnitId':this['_subUnitId'],'width':y['ShapeDefaultConfig'][_0x286dac(0x2d7)]*0x2,'height':y['ShapeDefaultConfig'][_0x286dac(0x2d7)]*0x2,'zIndex':m['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0x286dac(0x33b)]['push'](_0x22629f),this[_0x286dac(0x6de)][_0x286dac(0x2f1)](_0x22629f,m[_0x286dac(0x67b)]+0x2);}}[_0x8b89eb(0x618)](_0x1fbbf8){const _0x152860=_0x8b89eb;let _0x23edde=null,_0x53e685=0x1/0x0,_0x5b639c=null;for(let _0x447a66 of this['_connectionSiteObjects']){let _0x18e3bd=_0x447a66['left']+y['ShapeDefaultConfig'][_0x152860(0x2d7)],_0x515cef=_0x447a66[_0x152860(0x324)]+y[_0x152860(0x619)][_0x152860(0x2d7)],_0x212578=_0x1fbbf8['x']-_0x18e3bd,_0x30596e=_0x1fbbf8['y']-_0x515cef,_0x137fad=Math['sqrt'](_0x212578*_0x212578+_0x30596e*_0x30596e);_0x137fad<_0x53e685&&(_0x53e685=_0x137fad,_0x23edde=_0x447a66,_0x5b639c={'x':_0x18e3bd,'y':_0x515cef});}let _0x4f0c0c=_0x53e685<=0xa&&_0x23edde?_0x23edde[_0x152860(0x23c)]()['cxnIndex']:-0x1;if(_0x4f0c0c!==this[_0x152860(0x5c7)]){for(let _0x269afe of this[_0x152860(0x33b)]){let _0x33fe15=_0x269afe[_0x152860(0x23c)]();_0x269afe[_0x152860(0x500)](_0x33fe15[_0x152860(0x329)]===_0x4f0c0c);}this[_0x152860(0x5c7)]=_0x4f0c0c;}if(_0x53e685<=0xa&&_0x23edde&&_0x5b639c){let _0x176254=_0x23edde[_0x152860(0x23c)](),_0x6eae9f=this[_0x152860(0x290)](_0x176254[_0x152860(0x3a6)],_0x176254['cxnIndex']);return{'shapeId':_0x176254[_0x152860(0x3a6)],'cxnIndex':_0x176254[_0x152860(0x329)],'unitId':_0x176254[_0x152860(0x4cd)],'subUnitId':_0x176254['subUnitId'],'worldPoint':_0x5b639c,'angle':_0x6eae9f};}return null;}[_0x8b89eb(0x290)](_0x4d1fdb,_0x190498){const _0x5dd2b4=_0x8b89eb;let _0x2dea8e=this['_sheetsShapeService'][_0x5dd2b4(0x598)](this['_unitId'],this[_0x5dd2b4(0x69e)],_0x4d1fdb);if(!_0x2dea8e)return 0x0;let _0x4ec07f=this[_0x5dd2b4(0x287)][_0x5dd2b4(0x34e)]({'unitId':this[_0x5dd2b4(0x41d)],'subUnitId':this[_0x5dd2b4(0x69e)],'drawingId':_0x4d1fdb});if(!(_0x4ec07f!=null&&_0x4ec07f[_0x5dd2b4(0x5f1)]))return 0x0;let {width:_0x5e620f=0x0,height:_0x47bd86=0x0,flipX:_0x54a375=!0x1,flipY:_0x972dba=!0x1}=_0x4ec07f[_0x5dd2b4(0x5f1)];_0x2dea8e[_0x5dd2b4(0x6a3)]({'width':_0x5e620f,'height':_0x47bd86});let _0x3022c5=_0x2dea8e[_0x5dd2b4(0x56e)]()[_0x5dd2b4(0x6f9)](_0x4e7845=>_0x4e7845[_0x5dd2b4(0x483)]===_0x190498);if(!_0x3022c5)return 0x0;let _0x1a5a01=_0x3022c5[_0x5dd2b4(0x284)]/0xea60;return _0x54a375&&(_0x1a5a01=0xb4-_0x1a5a01),_0x972dba&&(_0x1a5a01=-_0x1a5a01),_0x1a5a01=(_0x1a5a01%0x168+0x168)%0x168,_0x1a5a01;}[_0x8b89eb(0x248)](){const _0x424f97=_0x8b89eb;for(let _0x3d79b1 of this[_0x424f97(0x33b)])_0x3d79b1[_0x424f97(0x2e5)]();this[_0x424f97(0x33b)]=[],this[_0x424f97(0x5c7)]=-0x1;}[_0x8b89eb(0x2e5)](){const _0x3d589f=_0x8b89eb;this[_0x3d589f(0x248)](),super['dispose']();}};Fe=W([U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(m[_0x8b89eb(0x6ec)])),U(0x2,(0x0,l[_0x8b89eb(0x3f0)])(p[_0x8b89eb(0x5ba)])),U(0x3,(0x0,l['Inject'])(c[_0x8b89eb(0x450)]))],Fe);let Ie=class extends l[_0x8b89eb(0x301)]{constructor(_0x41661d,_0x496931,_0x26e305,_0x55997f,_0xa6a046){const _0x3e5ef7=_0x8b89eb;super(),this[_0x3e5ef7(0x5fb)]=_0x41661d,this['_sheetClipboardService']=_0x496931,this[_0x3e5ef7(0x5a2)]=_0x26e305,this['_shapeService']=_0x55997f,this[_0x3e5ef7(0x57d)]=_0xa6a046,k(this,_0x3e5ef7(0x4dc),void 0x0),this[_0x3e5ef7(0x2da)](),this[_0x3e5ef7(0x2a6)]();}get[_0x8b89eb(0x253)](){const _0x3a212f=_0x8b89eb;return this[_0x3a212f(0x5a2)][_0x3a212f(0x607)]();}[_0x8b89eb(0x2a6)](){const _0x32b64e=_0x8b89eb;this[_0x32b64e(0x57d)][_0x32b64e(0x529)](({fromUnitId:_0x3819be,fromSubUnitId:_0x52da3c,toUnitId:_0x40b41c,toSubUnitId:_0x1ef98a,idMap:_0xa2426})=>{const _0x11be4a=_0x32b64e;let _0x3c2b0a=[],_0xc25c49=[];for(let [_0x53120e,_0x438721]of _0xa2426[_0x11be4a(0x236)]()){let _0x42cc80=this[_0x11be4a(0x6f4)]['getShapeModel'](_0x3819be,_0x52da3c,_0x53120e);if(!_0x42cc80)continue;let _0x393590=_0x42cc80[_0x11be4a(0x5d7)](),_0x54c715=JSON['parse'](JSON[_0x11be4a(0x3e1)](_0x42cc80['getShapeData']()));if(_0x54c715[_0x11be4a(0x698)]){var _0x16c2f9,_0x2f95db;let _0x403f45=(_0x16c2f9=_0x54c715[_0x11be4a(0x698)][_0x11be4a(0x29a)])==null?void 0x0:_0x16c2f9[_0x11be4a(0x3a6)],_0x4db590=(_0x2f95db=_0x54c715[_0x11be4a(0x698)]['to'])==null?void 0x0:_0x2f95db[_0x11be4a(0x3a6)],_0x56c125=_0x403f45?_0xa2426[_0x11be4a(0x59b)](_0x403f45):!0x0,_0x145dd2=_0x4db590?_0xa2426['has'](_0x4db590):!0x0;_0x56c125&&_0x403f45&&_0x54c715[_0x11be4a(0x698)]['from']?_0x54c715[_0x11be4a(0x698)]['from']={..._0x54c715[_0x11be4a(0x698)][_0x11be4a(0x29a)],'shapeId':_0xa2426[_0x11be4a(0x302)](_0x403f45)}:_0x54c715[_0x11be4a(0x698)][_0x11be4a(0x29a)]=void 0x0,_0x145dd2&&_0x4db590&&_0x54c715[_0x11be4a(0x698)]['to']?_0x54c715[_0x11be4a(0x698)]['to']={..._0x54c715['relation']['to'],'shapeId':_0xa2426[_0x11be4a(0x302)](_0x4db590)}:_0x54c715[_0x11be4a(0x698)]['to']=void 0x0;}_0x3c2b0a[_0x11be4a(0x6cd)]({'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x40b41c,'subUnitId':_0x1ef98a,'shapeId':_0x438721,'shapeType':_0x393590,'shapeData':_0x54c715}}),_0xc25c49[_0x11be4a(0x6cd)]({'id':c[_0x11be4a(0x3a1)]['id'],'params':{'unitId':_0x40b41c,'subUnitId':_0x1ef98a,'shapeId':_0x438721}});}return{'redos':_0x3c2b0a,'undos':_0xc25c49};});}[_0x8b89eb(0x2da)](){const _0x4a547b=_0x8b89eb;this[_0x4a547b(0x37c)](this[_0x4a547b(0x5d6)][_0x4a547b(0x2c9)]({'id':_0x4a547b(0x241),'onBeforeCopy':(_0x3361ae,_0xfd32d1,_0x597228,_0x3c9066)=>{const _0x3ce45b=_0x4a547b;this['_copyInfo']=null;let _0x5001b7=this[_0x3ce45b(0x253)];if(_0x5001b7[_0x3ce45b(0x41f)]){let _0x15fc21=_0x5001b7[_0x3ce45b(0x1fe)](_0x170b74=>_0x170b74[_0x3ce45b(0x6e7)]===l[_0x3ce45b(0x638)][_0x3ce45b(0x73a)]);if(_0x15fc21[_0x3ce45b(0x41f)]===0x0)return;this[_0x3ce45b(0x4dc)]={'unitId':_0x3361ae,'subUnitId':_0xfd32d1,'copyType':_0x3c9066,'drawings':_0x15fc21};}else this[_0x3ce45b(0x5fa)](_0x3361ae,_0xfd32d1,_0x597228,_0x3c9066);},'onPasteCells':(_0x330e69,_0x4816cb,_0x211811,_0x227c80)=>{const _0x27688c=_0x4a547b;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4642a8}=_0x227c80;return _0x4642a8===_[_0x27688c(0x4fc)]['DEFAULT_PASTE']?this[_0x27688c(0x5a6)](_0x4816cb,this[_0x27688c(0x4dc)][_0x27688c(0x651)]===_[_0x27688c(0x4b8)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x5216b2=>this[_0x4a547b(0x4dc)]?this[_0x4a547b(0x5a6)](_0x5216b2,this[_0x4a547b(0x4dc)][_0x4a547b(0x651)]===_[_0x4a547b(0x4b8)][_0x4a547b(0x1f4)]):{'redos':[],'undos':[]}}));}[_0x8b89eb(0x5fa)](_0x1a7b56,_0x156e0c,_0x34071b,_0x5d0f24){const _0x4d5a62=_0x8b89eb;let _0x302c92=this[_0x4d5a62(0x5fb)][_0x4d5a62(0x730)](_0x1a7b56,_0x156e0c);if(!_0x302c92)return;let _0x1cf5e7=(0x0,u[_0x4d5a62(0x57b)])(_0x302c92,_0x34071b);if(!_0x1cf5e7)return;let {startX:_0xd001ca,endX:_0x3e8e0a,startY:_0x5963fd,endY:_0xdcdd86}=_0x1cf5e7,_0x1b9737=this[_0x4d5a62(0x5a2)]['getDrawingData'](_0x1a7b56,_0x156e0c),_0x34eea0=this['_focusedDrawings'][_0x4d5a62(0x5ad)]();for(let [_0x226681,_0x4a4532]of Object[_0x4d5a62(0x236)](_0x1b9737)){if(_0x4a4532[_0x4d5a62(0x6e7)]!==l[_0x4d5a62(0x638)]['DRAWING_SHAPE'])continue;let {transform:_0x382e61}=_0x4a4532;if(!_0x382e61)continue;let {left:_0xc120a=0x0,top:_0x355a8b=0x0,width:_0x1e13df=0x0,height:_0x513506=0x0}=_0x382e61;_0xd001ca<=_0xc120a&&_0x3e8e0a>=_0xc120a+_0x1e13df&&_0x5963fd<=_0x355a8b&&_0xdcdd86>=_0x355a8b+_0x513506&&_0x34eea0['push'](_0x4a4532);}_0x34eea0[_0x4d5a62(0x41f)]>0x0&&(this[_0x4d5a62(0x4dc)]={'unitId':_0x1a7b56,'subUnitId':_0x156e0c,'copyType':_0x5d0f24,'copyRange':_0x34071b,'drawings':_0x34eea0});}[_0x8b89eb(0x5a6)](_0xaafbb3,_0x69e063){const _0xfb3ac0=_0x8b89eb;let {unitId:_0x213cb3,subUnitId:_0xcfccd0,range:_0x41ebda}=_0xaafbb3,_0xe132a8=this[_0xfb3ac0(0x5fb)]['getSkeleton'](_0x213cb3,_0xcfccd0);if(!_0xe132a8)return{'redos':[],'undos':[]};let _0x4428e0=(0x0,u['discreteRangeToRange'])(_0x41ebda),{unitId:_0xd4d150,subUnitId:_0x483d89,copyRange:_0x85c2b4,drawings:_0x3a00af}=this['_copyInfo'],_0x59d181=this[_0xfb3ac0(0x5fb)][_0xfb3ac0(0x730)](_0xd4d150,_0x483d89);if(!_0x59d181)return{'redos':[],'undos':[]};let _0x4a1581;if(!_0x85c2b4){let _0x28c97b=0x1/0x0,_0x3a7022=0x1/0x0;for(let _0x2d46da of _0x3a00af){var _0x47baca;let {left:_0x4b8f85=0x0,top:_0x5a4fb8=0x0}=(_0x47baca=_0x2d46da[_0xfb3ac0(0x5f1)])==null?{}:_0x47baca;_0x4b8f85<_0x28c97b&&(_0x28c97b=_0x4b8f85),_0x5a4fb8<_0x3a7022&&(_0x3a7022=_0x5a4fb8);}_0x28c97b!==0x1/0x0&&_0x3a7022!==0x1/0x0&&(_0x4a1581={'left':_0x28c97b,'top':_0x3a7022});}let _0x555b8a=new Map();if(!_0x69e063){for(let _0x5dd482 of _0x3a00af)_0x555b8a[_0xfb3ac0(0x6ff)](_0x5dd482['drawingId'],(0x0,l[_0xfb3ac0(0x6dd)])());}let _0x185322=[],_0x1adb53=[];for(let _0x2b2598 of _0x3a00af){let {drawingId:_0x5c45ca,transform:_0x14bfa6,sheetTransform:_0x31e85c}=_0x2b2598;if(!_0x14bfa6||!_0x31e85c)continue;let _0xae9613=this[_0xfb3ac0(0x589)]({'transform':_0x14bfa6,'sheetTransform':_0x31e85c},{'skeleton':_0x59d181,'range':_0x85c2b4},{'skeleton':_0xe132a8,'range':_0x4428e0},_0x4a1581);if(_0x69e063){let {redos:_0x16f9fb,undos:_0x3327e4}=this[_0xfb3ac0(0x636)]({'fromUnitId':_0xd4d150,'fromSubUnitId':_0x483d89,'toUnitId':_0x213cb3,'toSubUnitId':_0xcfccd0,'drawing':_0x2b2598,'newTransforms':_0xae9613});_0x185322['push'](..._0x16f9fb),_0x1adb53[_0xfb3ac0(0x6cd)](..._0x3327e4);continue;}let {redos:_0x1bc449,undos:_0x4c2800}=this['_generateCopyPasteMutations']({'toUnitId':_0x213cb3,'toSubUnitId':_0xcfccd0,'drawing':_0x2b2598,'newTransforms':_0xae9613,'newDrawingId':_0x555b8a['get'](_0x5c45ca),'idMap':_0x555b8a});_0x185322['push'](..._0x1bc449),_0x1adb53[_0xfb3ac0(0x6cd)](..._0x4c2800);}return{'redos':_0x185322,'undos':_0x1adb53};}[_0x8b89eb(0x636)](_0x44b9db){const _0x5278b7=_0x8b89eb;let {fromUnitId:_0x42961a,fromSubUnitId:_0x5ae9a4,toUnitId:_0x4e1e91,toSubUnitId:_0x4ba297,drawing:_0x18c652,newTransforms:_0xdadc1f}=_0x44b9db,_0x429aa8={..._0x18c652,'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'transform':_0xdadc1f[_0x5278b7(0x5f1)],'sheetTransform':_0xdadc1f['sheetTransform']};if(_0x4e1e91===_0x42961a&&_0x4ba297===_0x5ae9a4){let {redo:_0x4ec5cc,undo:_0x2b510c,objects:_0x5f37b0}=this['_sheetDrawingService'][_0x5278b7(0x6c4)]([_0x429aa8]);return{'redos':[{'id':d[_0x5278b7(0x70a)]['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'type':d[_0x5278b7(0x441)][_0x5278b7(0x3b0)],'op':_0x4ec5cc,'objects':_0x5f37b0}}],'undos':[{'id':d[_0x5278b7(0x70a)]['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'type':d[_0x5278b7(0x441)][_0x5278b7(0x3b0)],'op':_0x2b510c,'objects':_0x5f37b0}}]};}else{let _0xa41420=this['_sheetDrawingService']['getBatchRemoveOp']([_0x18c652]),_0x3e9768=this[_0x5278b7(0x5a2)][_0x5278b7(0x2bb)]([_0x429aa8]),_0x4a0e3f=this[_0x5278b7(0x6f4)][_0x5278b7(0x598)](_0x18c652[_0x5278b7(0x4cd)],_0x18c652[_0x5278b7(0x439)],_0x18c652[_0x5278b7(0x591)]);if(!_0x4a0e3f)return{'redos':[],'undos':[]};let _0x50da9c=_0x4a0e3f[_0x5278b7(0x5d7)](),_0x208a81=JSON[_0x5278b7(0x5f0)](JSON[_0x5278b7(0x3e1)](_0x4a0e3f[_0x5278b7(0x6cc)]()));return{'redos':[{'id':d[_0x5278b7(0x70a)]['id'],'params':{'unitId':_0x42961a,'subUnitId':_0x5ae9a4,'type':d[_0x5278b7(0x441)][_0x5278b7(0x70c)],'op':_0xa41420[_0x5278b7(0x645)],'objects':_0xa41420[_0x5278b7(0x433)]}},{'id':c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x42961a,'subUnitId':_0x5ae9a4,'shapeId':_0x18c652[_0x5278b7(0x591)]}},{'id':d[_0x5278b7(0x70a)]['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'type':d[_0x5278b7(0x441)]['INSERT'],'op':_0x3e9768[_0x5278b7(0x645)],'objects':_0x3e9768[_0x5278b7(0x433)]}},{'id':c[_0x5278b7(0x1f5)]['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'shapeId':_0x18c652[_0x5278b7(0x591)],'shapeType':_0x50da9c,'shapeData':_0x208a81}}],'undos':[{'id':d[_0x5278b7(0x70a)]['id'],'params':{'unitId':_0x42961a,'subUnitId':_0x5ae9a4,'type':d['DrawingApplyType']['INSERT'],'op':_0xa41420['undo'],'objects':_0xa41420['objects']}},{'id':c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x42961a,'subUnitId':_0x5ae9a4,'shapeId':_0x18c652[_0x5278b7(0x591)],'shapeType':_0x50da9c,'shapeData':_0x208a81}},{'id':d['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'type':d['DrawingApplyType']['REMOVE'],'op':_0x3e9768['undo'],'objects':_0x3e9768[_0x5278b7(0x433)]}},{'id':c[_0x5278b7(0x3a1)]['id'],'params':{'unitId':_0x4e1e91,'subUnitId':_0x4ba297,'shapeId':_0x18c652['drawingId']}}]};}}['_generateCopyPasteMutations'](_0x6d362d){const _0x58ec64=_0x8b89eb;let {toUnitId:_0x3d4793,toSubUnitId:_0x4116f9,drawing:_0xa14671,newTransforms:_0x470ffb,newDrawingId:_0x10505b,idMap:_0x33590b}=_0x6d362d,_0x3f0811={..._0xa14671,'unitId':_0x3d4793,'subUnitId':_0x4116f9,'drawingId':_0x10505b,'transform':_0x470ffb[_0x58ec64(0x5f1)],'sheetTransform':_0x470ffb['sheetTransform']},{redo:_0x13376f,undo:_0x2439ce,objects:_0x5181d9}=this['_sheetDrawingService'][_0x58ec64(0x2bb)]([_0x3f0811]),_0x5751e8=this[_0x58ec64(0x6f4)][_0x58ec64(0x598)](_0xa14671['unitId'],_0xa14671[_0x58ec64(0x439)],_0xa14671[_0x58ec64(0x591)]);if(!_0x5751e8)return{'redos':[],'undos':[]};let _0x1b598b=_0x5751e8[_0x58ec64(0x5d7)](),_0x105c62=JSON[_0x58ec64(0x5f0)](JSON[_0x58ec64(0x3e1)](_0x5751e8[_0x58ec64(0x6cc)]()));if(_0x105c62[_0x58ec64(0x698)]){var _0x197196,_0x486f37;let _0x3ea4ee=(_0x197196=_0x105c62[_0x58ec64(0x698)][_0x58ec64(0x29a)])==null?void 0x0:_0x197196[_0x58ec64(0x3a6)],_0x1f83f3=(_0x486f37=_0x105c62[_0x58ec64(0x698)]['to'])==null?void 0x0:_0x486f37[_0x58ec64(0x3a6)],_0x3a3a77=_0x3ea4ee?_0x33590b[_0x58ec64(0x59b)](_0x3ea4ee):!0x0,_0x411a54=_0x1f83f3?_0x33590b[_0x58ec64(0x59b)](_0x1f83f3):!0x0;_0x3a3a77&&_0x3ea4ee&&_0x105c62[_0x58ec64(0x698)]['from']?_0x105c62[_0x58ec64(0x698)][_0x58ec64(0x29a)]={..._0x105c62['relation']['from'],'shapeId':_0x33590b[_0x58ec64(0x302)](_0x3ea4ee)}:_0x105c62[_0x58ec64(0x698)][_0x58ec64(0x29a)]=void 0x0,_0x411a54&&_0x1f83f3&&_0x105c62[_0x58ec64(0x698)]['to']?_0x105c62[_0x58ec64(0x698)]['to']={..._0x105c62['relation']['to'],'shapeId':_0x33590b[_0x58ec64(0x302)](_0x1f83f3)}:_0x105c62['relation']['to']=void 0x0;}return{'redos':[{'id':d[_0x58ec64(0x70a)]['id'],'params':{'unitId':_0x3d4793,'subUnitId':_0x4116f9,'type':d[_0x58ec64(0x441)][_0x58ec64(0x335)],'op':_0x13376f,'objects':_0x5181d9}},{'id':c[_0x58ec64(0x1f5)]['id'],'params':{'unitId':_0x3d4793,'subUnitId':_0x4116f9,'shapeId':_0x10505b,'shapeType':_0x1b598b,'shapeData':_0x105c62}}],'undos':[{'id':d[_0x58ec64(0x70a)]['id'],'params':{'unitId':_0x3d4793,'subUnitId':_0x4116f9,'type':d[_0x58ec64(0x441)][_0x58ec64(0x70c)],'op':_0x2439ce,'objects':_0x5181d9}},{'id':c[_0x58ec64(0x3a1)]['id'],'params':{'unitId':_0x3d4793,'subUnitId':_0x4116f9,'shapeId':_0x10505b}}]};}[_0x8b89eb(0x589)](_0x9d9f6d,_0x55429c,_0x4fb641,_0x265398){const _0x56a0a3=_0x8b89eb;var _0x3beb27;let {range:_0x5c9f48,skeleton:_0x5c6987}=_0x55429c,{range:_0xf57e9c,skeleton:_0x4469dc}=_0x4fb641,{transform:_0x4484de,sheetTransform:_0x37398d}=_0x9d9f6d,_0x284c9b={..._0x4484de};if(_0x5c9f48){let _0x3aea4e=(0x0,u[_0x56a0a3(0x57b)])(_0x5c6987,_0x5c9f48),_0x4068ae=(0x0,u[_0x56a0a3(0x57b)])(_0x4469dc,_0xf57e9c);if(_0x3aea4e&&_0x4068ae){var _0x5e666b,_0xbf73ab;let _0xf4fded=_0x4068ae['startX']-_0x3aea4e[_0x56a0a3(0x3d6)],_0x23e2c6=_0x4068ae[_0x56a0a3(0x64d)]-_0x3aea4e[_0x56a0a3(0x64d)];_0x284c9b[_0x56a0a3(0x416)]=((_0x5e666b=_0x284c9b[_0x56a0a3(0x416)])==null?0x0:_0x5e666b)+_0xf4fded,_0x284c9b[_0x56a0a3(0x324)]=((_0xbf73ab=_0x284c9b[_0x56a0a3(0x324)])==null?0x0:_0xbf73ab)+_0x23e2c6;}}else{let _0x4ec85a=(0x0,u[_0x56a0a3(0x57b)])(_0x4469dc,_0xf57e9c);if(_0x265398&&_0x4ec85a){var _0x3e152c,_0x33b195;let _0x13bde1=((_0x3e152c=_0x284c9b['left'])==null?0x0:_0x3e152c)-_0x265398[_0x56a0a3(0x416)],_0x553aed=((_0x33b195=_0x284c9b[_0x56a0a3(0x324)])==null?0x0:_0x33b195)-_0x265398['top'];_0x284c9b[_0x56a0a3(0x416)]=_0x4ec85a['startX']+_0x13bde1,_0x284c9b[_0x56a0a3(0x324)]=_0x4ec85a[_0x56a0a3(0x64d)]+_0x553aed;}else _0x284c9b['left']=_0x4ec85a==null?void 0x0:_0x4ec85a[_0x56a0a3(0x3d6)],_0x284c9b[_0x56a0a3(0x324)]=_0x4ec85a==null?void 0x0:_0x4ec85a[_0x56a0a3(0x64d)];}return{'transform':_0x284c9b,'sheetTransform':(_0x3beb27=(0x0,d['transformToDrawingPosition'])(_0x284c9b,_0x4469dc))==null?_0x37398d:_0x3beb27};}};Ie=W([U(0x0,(0x0,l[_0x8b89eb(0x3f0)])(u[_0x8b89eb(0x60d)])),U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(_[_0x8b89eb(0x514)])),U(0x2,(0x0,l[_0x8b89eb(0x3f0)])(d[_0x8b89eb(0x22a)])),U(0x3,(0x0,l[_0x8b89eb(0x3f0)])(c[_0x8b89eb(0x450)])),U(0x4,(0x0,l[_0x8b89eb(0x3f0)])(w[_0x8b89eb(0x3d5)]))],Ie);var Le=class extends m[_0x8b89eb(0x4df)]{constructor(_0x300dda,_0x19971a){const _0x130d39=_0x8b89eb;super(_0x300dda,_0x19971a),k(this,_0x130d39(0x501),null),k(this,_0x130d39(0x615),null),k(this,_0x130d39(0x41d),null),k(this,_0x130d39(0x69e),null),k(this,_0x130d39(0x27b),!0x1),_0x19971a&&this['setShapeProps'](_0x19971a);}[_0x8b89eb(0x2c2)](){const _0xf9a242=_0x8b89eb;return{'unitId':this[_0xf9a242(0x41d)],'subUnitId':this[_0xf9a242(0x69e)],'drawingId':this[_0xf9a242(0x501)]};}[_0x8b89eb(0x6c0)](_0x224af7){const _0x217b00=_0x8b89eb;_0x224af7[_0x217b00(0x3a6)]!==void 0x0&&(this[_0x217b00(0x501)]=_0x224af7['shapeId']),_0x224af7[_0x217b00(0x4cd)]!==void 0x0&&(this[_0x217b00(0x41d)]=_0x224af7[_0x217b00(0x4cd)]),_0x224af7[_0x217b00(0x439)]!==void 0x0&&(this['_subUnitId']=_0x224af7[_0x217b00(0x439)]),_0x224af7[_0x217b00(0x38c)]!==void 0x0&&(this[_0x217b00(0x27b)]=_0x224af7[_0x217b00(0x38c)]),this[_0x217b00(0x4ab)]({'width':_0x224af7[_0x217b00(0x497)],'height':_0x224af7[_0x217b00(0x560)]});}[_0x8b89eb(0x372)](_0x5eedc2){const _0xf20c79=_0x8b89eb;m['Circle'][_0xf20c79(0x3fe)](_0x5eedc2,{'radius':y[_0xf20c79(0x619)][_0xf20c79(0x2d7)],'fill':y[_0xf20c79(0x619)][_0xf20c79(0x508)],'stroke':y['ShapeDefaultConfig'][_0xf20c79(0x65b)],'strokeWidth':y['ShapeDefaultConfig'][_0xf20c79(0x3f7)],'evented':!0x0});}};let Re=class extends l[_0x8b89eb(0x301)]{constructor(_0x3fe8f1,_0x1e29bc,_0x435dc2,_0x4ddc92,_0x6c556c,_0x4ffa67,_0x12f3ac,_0x1b9918){const _0x76df5e=_0x8b89eb;super(),this[_0x76df5e(0x6ce)]=_0x3fe8f1,this[_0x76df5e(0x56d)]=_0x1e29bc,this[_0x76df5e(0x6b0)]=_0x435dc2,this[_0x76df5e(0x287)]=_0x4ddc92,this[_0x76df5e(0x415)]=_0x6c556c,this[_0x76df5e(0x36b)]=_0x4ffa67,this[_0x76df5e(0x2e8)]=_0x12f3ac,this[_0x76df5e(0x624)]=_0x1b9918,k(this,_0x76df5e(0x38a),void 0x0),k(this,_0x76df5e(0x41d),void 0x0),k(this,_0x76df5e(0x69e),void 0x0),k(this,_0x76df5e(0x484),[]),k(this,_0x76df5e(0x435),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),k(this,'_activeShapeModel',void 0x0),k(this,_0x76df5e(0x652),!0x1),k(this,_0x76df5e(0x3ce),!0x1),k(this,_0x76df5e(0x729),!0x1),k(this,_0x76df5e(0x318),void 0x0),k(this,_0x76df5e(0x72a),void 0x0),k(this,'_currentConnectionTarget',null),this[_0x76df5e(0x30c)]();}[_0x8b89eb(0x30c)](){const _0x1ff57a=_0x8b89eb;this['_registerDrawingFocusChangeHandler'](),this[_0x1ff57a(0x2c3)]();}[_0x8b89eb(0x4d7)](){const _0x3656b8=_0x8b89eb;if(!this[_0x3656b8(0x41d)]||!this[_0x3656b8(0x69e)]||!this[_0x3656b8(0x38a)])return;let _0x2f2109={'unitId':this['_unitId'],'subUnitId':this[_0x3656b8(0x69e)],'drawingId':this[_0x3656b8(0x38a)]},{transform:_0x27e72e}=this[_0x3656b8(0x287)][_0x3656b8(0x34e)](_0x2f2109);if(_0x27e72e)return{'left':_0x27e72e[_0x3656b8(0x416)]||0x0,'top':_0x27e72e[_0x3656b8(0x324)]||0x0,'width':_0x27e72e[_0x3656b8(0x497)]||0x0,'height':_0x27e72e['height']||0x0,'flipX':_0x27e72e[_0x3656b8(0x5cb)]||!0x1,'flipY':_0x27e72e[_0x3656b8(0x369)]||!0x1,'angle':_0x27e72e['angle']};}[_0x8b89eb(0x475)](){const _0x4f0bb4=_0x8b89eb;if(this[_0x4f0bb4(0x41d)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x4f0bb4(0x38a)]===void 0x0)return;let _0x1b5acd=this[_0x4f0bb4(0x6b0)]['getRenderById'](this[_0x4f0bb4(0x41d)]);if(!_0x1b5acd||!_0x1b5acd[_0x4f0bb4(0x6fa)](_['SheetSkeletonManagerService'])[_0x4f0bb4(0x4c5)]())return;let {scene:_0x5b4d82}=_0x1b5acd,_0x3cb9f8=this[_0x4f0bb4(0x4d7)]();if(!_0x3cb9f8)return;let _0x511cf5=this[_0x4f0bb4(0x36b)][_0x4f0bb4(0x598)](this[_0x4f0bb4(0x41d)],this[_0x4f0bb4(0x69e)],this[_0x4f0bb4(0x38a)]);if(!_0x511cf5||!(0x0,y[_0x4f0bb4(0x6a8)])(_0x511cf5[_0x4f0bb4(0x5d7)]()))return;let _0x310e7b=_0x511cf5['getConnectorLinePoints']();if(_0x310e7b[_0x4f0bb4(0x41f)]<0x2)return;let _0x3cf7d4=new y[(_0x4f0bb4(0x64e))](_0x3cb9f8),_0x5b11ff=_0x310e7b[0x0],_0x28d5e4=_0x310e7b[_0x310e7b[_0x4f0bb4(0x41f)]-0x1],_0x26b9e5=_0x3cf7d4[_0x4f0bb4(0x2ea)](_0x5b11ff),_0x1ec046=_0x3cf7d4[_0x4f0bb4(0x2ea)](_0x28d5e4);this['_addShapeConnectorHandlerObject'](_0x5b4d82,{..._0x26b9e5},!0x0),this[_0x4f0bb4(0x3f8)](_0x5b4d82,{..._0x1ec046},!0x1);}['_addShapeConnectorHandlerObject'](_0x2d2ad3,_0x1b6aa7,_0x10a346){const _0x58335e=_0x8b89eb;if(this[_0x58335e(0x38a)]===void 0x0||this['_unitId']===void 0x0||this[_0x58335e(0x69e)]===void 0x0)return;let _0x1ae8a8=_0x58335e(0x443)+this['_unitId']+'-'+this[_0x58335e(0x69e)]+'-'+this[_0x58335e(0x38a)]+'-'+(_0x10a346?_0x58335e(0x268):_0x58335e(0x265)),_0x2a8e66=_0x2d2ad3[_0x58335e(0x5db)](_0x1ae8a8);if(_0x2a8e66){_0x2a8e66['transformByState']({'left':_0x1b6aa7['x']-y[_0x58335e(0x619)][_0x58335e(0x2d7)],'top':_0x1b6aa7['y']-y[_0x58335e(0x619)][_0x58335e(0x2d7)]});return;}let _0x5bfe79=new Le(_0x1ae8a8,{'left':_0x1b6aa7['x']-y[_0x58335e(0x619)]['cxnPointRadius'],'top':_0x1b6aa7['y']-y[_0x58335e(0x619)][_0x58335e(0x2d7)],'shapeId':this[_0x58335e(0x38a)],'unitId':this['_unitId'],'subUnitId':this[_0x58335e(0x69e)],'isStartConnectorPoint':_0x10a346,'width':y[_0x58335e(0x619)][_0x58335e(0x2d7)]*0x2,'height':y['ShapeDefaultConfig'][_0x58335e(0x2d7)]*0x2,'zIndex':m[_0x58335e(0x67b)]+0x1,'evented':!0x0});this[_0x58335e(0x484)][_0x58335e(0x6cd)](_0x5bfe79),this['_attachConnectorObjectEvent'](_0x5bfe79,_0x2d2ad3,_0x10a346),_0x2d2ad3['addObject'](_0x5bfe79,m[_0x58335e(0x67b)]+0x1);}[_0x8b89eb(0x3e7)](_0x3961e3,_0x152856){const _0x42d060=_0x8b89eb;var _0x393af9;let _0x384b65={'x':0x0,'y':0x0};if(!_0x3961e3||!_0x152856)return _0x384b65;let _0x2b3ac1=this['_renderManagerService'][_0x42d060(0x2b0)](_0x3961e3);if(!_0x2b3ac1||!_0x2b3ac1[_0x42d060(0x6fa)](_[_0x42d060(0x42c)])[_0x42d060(0x730)](_0x152856))return _0x384b65;let _0xddb3e9=_0x2b3ac1[_0x42d060(0x6fa)](_[_0x42d060(0x23d)]),_0x25dc8a=_0xddb3e9==null?void 0x0:_0xddb3e9[_0x42d060(0x28f)]();if(!_0x25dc8a)return _0x384b65;let _0x53bbc1=(_0x393af9=this[_0x42d060(0x415)][_0x42d060(0x6a6)](_0x3961e3))==null?void 0x0:_0x393af9[_0x42d060(0x276)](_0x152856);if(!_0x53bbc1)return _0x384b65;let _0x6c4090=(0x0,_[_0x42d060(0x39a)])(_0x25dc8a[_0x42d060(0x3e4)],_0x25dc8a['sheetViewStartColumn'],_0x2b3ac1[_0x42d060(0x272)],_0x53bbc1);return _0x6c4090?{'x':_0x6c4090[_0x42d060(0x2ce)],'y':_0x6c4090[_0x42d060(0x3b1)]}:_0x384b65;}[_0x8b89eb(0x583)](_0x289ddb,_0x5ce771){const _0x134f56=_0x8b89eb;var _0x5e492f,_0x1cf012;let _0x21826d=(_0x5e492f=this['_univerInstanceService'][_0x134f56(0x6a6)](_0x289ddb))==null?void 0x0:_0x5e492f[_0x134f56(0x276)](_0x5ce771);return(_0x1cf012=_0x21826d==null?void 0x0:_0x21826d[_0x134f56(0x375)]())==null?0x1:_0x1cf012;}[_0x8b89eb(0x640)](_0x487f6c,_0x445df8,_0x2448a7,_0x383629,_0x2be258){const _0x1313c1=_0x8b89eb;this[_0x1313c1(0x318)][_0x1313c1(0x5aa)](),this[_0x1313c1(0x72a)][_0x1313c1(0x5aa)](),this['_sheetShapeAdjustController'][_0x1313c1(0x36f)]();let _0x40de0d=this[_0x1313c1(0x3c7)];this[_0x1313c1(0x624)]['endConnectionDetection']();let _0x27f2e9=this[_0x1313c1(0x3e7)](this[_0x1313c1(0x41d)],this[_0x1313c1(0x69e)]),_0x31c798=this[_0x1313c1(0x583)](this['_unitId'],this[_0x1313c1(0x69e)]),_0x88877f={'x':_0x2448a7[_0x1313c1(0x6c5)]/_0x31c798+_0x27f2e9['x'],'y':_0x2448a7[_0x1313c1(0x1f2)]/_0x31c798+_0x27f2e9['y']},_0x3e4ce2=_0x40de0d?_0x40de0d[_0x1313c1(0x3ca)]:_0x88877f,_0x94e802=_0x383629?this['_activeShapeModel']['getEndConnectInfo']():this[_0x1313c1(0x68a)]['getStartConnectInfo'](),_0x4f5e70=this[_0x1313c1(0x68a)][_0x1313c1(0x5d7)]();_0x94e802?this[_0x1313c1(0x593)](_0x94e802,_0x3e4ce2,_0x383629,_0x40de0d,_0x2be258):this[_0x1313c1(0x493)](_0x445df8,_0x3e4ce2,_0x383629,_0x40de0d,_0x2be258,_0x4f5e70),this[_0x1313c1(0x652)]=!0x1,this['_hasReset']=!0x1,this[_0x1313c1(0x3c7)]=null,_0x487f6c[_0x1313c1(0x46f)]();}[_0x8b89eb(0x493)](_0x37d265,_0x29a5eb,_0x239185,_0x1d302b,_0x18fbcd,_0x1e7334){const _0x283324=_0x8b89eb;let _0x29649a=_0x1e7334===y[_0x283324(0x54a)][_0x283324(0x73c)]||_0x1e7334===y[_0x283324(0x54a)][_0x283324(0x505)],_0x116a00=_0x239185?_0x29a5eb:_0x37d265,_0x510fc4=_0x239185?_0x37d265:_0x29a5eb,_0x2d6cec=this[_0x283324(0x68a)][_0x283324(0x5be)](),_0x558976=(0x0,y[_0x283324(0x28b)])(this[_0x283324(0x68a)][_0x283324(0x5d7)]()),_0x340fa5=y[_0x283324(0x64e)][_0x283324(0x6ab)](_0x2d6cec,_0x558976),_0x26d143=_0x29649a?y[_0x283324(0x64e)][_0x283324(0x383)](_0x116a00,_0x510fc4):y[_0x283324(0x64e)]['computeConnectorResizeLayout'](_0x37d265,_0x29a5eb,_0x239185,_0x340fa5);_0x1d302b?this[_0x283324(0x5bc)](_0x26d143,_0x1d302b,_0x239185,_0x18fbcd):this['_executeResizeCommand'](_0x26d143,_0x18fbcd);}['_handleConnectedEndpointPointerUp'](_0x53d274,_0x2c0d44,_0x3c8b68,_0xd9465,_0x24bf3e){const _0x11442a=_0x8b89eb;let _0x4fe2ff=this['_getConnectPointInfo'](_0x53d274);if(!_0x4fe2ff)return;let _0x6f2275=_0xd9465?_0xd9465[_0x11442a(0x42d)]:this['_calculateFreeEndpointAngle'](_0x4fe2ff[_0x11442a(0x3f2)],_0x2c0d44),_0xaa810b;if(_0xd9465){let _0xa7b044=this[_0x11442a(0x287)][_0x11442a(0x34e)]({'unitId':_0xd9465['unitId'],'subUnitId':_0xd9465['subUnitId'],'drawingId':_0xd9465[_0x11442a(0x3a6)]});if(_0xa7b044!=null&&_0xa7b044[_0x11442a(0x5f1)]){let {left:_0x572e59=0x0,top:_0x1bcc89=0x0,width:_0x2f2143=0x0,height:_0x5d482f=0x0,angle:_0x3add34}=_0xa7b044[_0x11442a(0x5f1)];_0xaa810b=(0x0,y[_0x11442a(0x4b3)])({'left':_0x572e59,'top':_0x1bcc89,'width':_0x2f2143,'height':_0x5d482f},_0x3add34||0x0);}else _0xaa810b={'left':_0x2c0d44['x'],'top':_0x2c0d44['y'],'width':0x0,'height':0x0};}else _0xaa810b={'left':_0x2c0d44['x'],'top':_0x2c0d44['y'],'width':0x0,'height':0x0};let _0x3bc2b2={'point':_0x2c0d44,'angle':_0x6f2275,'bounds':_0xaa810b},_0x15f221=_0x3c8b68?_0x3bc2b2:_0x4fe2ff,_0x52b6f9=_0x3c8b68?_0x4fe2ff:_0x3bc2b2,_0x43be64=this['_activeShapeModel'][_0x11442a(0x5d7)](),_0x38e3d2=(0x0,y[_0x11442a(0x208)])(_0x15f221,_0x52b6f9,_0x43be64);this[_0x11442a(0x68a)]['removeLinePoints']();let _0x1da0fb=(0x0,y[_0x11442a(0x734)])(_0x38e3d2,_0x43be64);_0xd9465?this[_0x11442a(0x69f)](_0x1da0fb,_0xd9465,_0x53d274,_0x3c8b68,_0x24bf3e):this[_0x11442a(0x60c)](_0x1da0fb,_0x53d274,_0x3c8b68,_0x24bf3e);}[_0x8b89eb(0x5bc)](_0x2d4524,_0x4d3cec,_0x310eed,_0x5538ef){const _0x273207=_0x8b89eb;let _0x5193ed=this[_0x273207(0x68a)][_0x273207(0x6cc)]()[_0x273207(0x698)],_0x533c7b={..._0x5193ed},_0x4d46db={'shapeId':_0x4d3cec['shapeId'],'cxnIndex':_0x4d3cec['cxnIndex']};_0x310eed?_0x533c7b[_0x273207(0x29a)]=_0x4d46db:_0x533c7b['to']=_0x4d46db;let _0x5a40d3=this[_0x273207(0x68a)][_0x273207(0x5d7)](),_0x184910=(0x0,y[_0x273207(0x734)])(_0x2d4524[_0x273207(0x4ef)],_0x5a40d3),_0x245b36={'unitId':this[_0x273207(0x41d)],'subUnitId':this[_0x273207(0x69e)],'connectorShapeId':this[_0x273207(0x38a)],'width':_0x2d4524[_0x273207(0x62a)][_0x273207(0x497)],'height':_0x2d4524['worldRect']['height'],'left':_0x2d4524[_0x273207(0x62a)]['left'],'top':_0x2d4524[_0x273207(0x62a)][_0x273207(0x324)],'flipX':_0x2d4524[_0x273207(0x62a)][_0x273207(0x5cb)]||!0x1,'flipY':_0x2d4524['worldRect']['flipY']||!0x1,'newAdjustValues':_0x184910['adjustValues'],'oldAdjustValues':_0x5538ef,'oldRelation':_0x5193ed,'newRelation':_0x533c7b,'newLineType':_0x184910[_0x273207(0x27d)],'oldLineType':_0x5a40d3};this['_commandService'][_0x273207(0x279)](c[_0x273207(0x214)]['id'],_0x245b36);}[_0x8b89eb(0x300)](_0x5a22bb,_0x438d2f){const _0x254c9d=_0x8b89eb;let _0x57387a=this[_0x254c9d(0x68a)][_0x254c9d(0x5d7)](),_0x3890ac=(0x0,y['computeConnectorRouteLayout'])(_0x5a22bb[_0x254c9d(0x4ef)],_0x57387a),_0x2a43cc={'unitId':this[_0x254c9d(0x41d)],'subUnitId':this[_0x254c9d(0x69e)],'shapeId':this[_0x254c9d(0x38a)],'width':_0x5a22bb['worldRect']['width'],'height':_0x5a22bb[_0x254c9d(0x62a)][_0x254c9d(0x560)],'left':_0x5a22bb[_0x254c9d(0x62a)][_0x254c9d(0x416)],'top':_0x5a22bb['worldRect'][_0x254c9d(0x324)],'flipX':_0x5a22bb[_0x254c9d(0x62a)]['flipX']||!0x1,'flipY':_0x5a22bb[_0x254c9d(0x62a)][_0x254c9d(0x369)]||!0x1,'angle':_0x5a22bb['worldRect'][_0x254c9d(0x42d)]||0x0,'newAdjustValues':_0x3890ac[_0x254c9d(0x51b)],'oldAdjustValues':_0x438d2f,'newLineType':_0x3890ac[_0x254c9d(0x27d)],'oldLineType':_0x57387a};this[_0x254c9d(0x56d)][_0x254c9d(0x279)](c[_0x254c9d(0x353)]['id'],_0x2a43cc);}[_0x8b89eb(0x69f)](_0x366735,_0x17911e,_0x47e71e,_0x292ed9,_0x39c78e){const _0x23c34a=_0x8b89eb;let _0x67255a=this[_0x23c34a(0x68a)][_0x23c34a(0x6cc)]()[_0x23c34a(0x698)],_0x338bfe={..._0x67255a},_0x77607d={'shapeId':_0x17911e['shapeId'],'cxnIndex':_0x17911e['cxnIndex']};_0x292ed9?(_0x338bfe[_0x23c34a(0x29a)]=_0x77607d,_0x338bfe['to']=_0x47e71e):(_0x338bfe[_0x23c34a(0x29a)]=_0x47e71e,_0x338bfe['to']=_0x77607d);let _0x233a38={'unitId':this[_0x23c34a(0x41d)],'subUnitId':this[_0x23c34a(0x69e)],'connectorShapeId':this['_activeShapeId'],'width':_0x366735[_0x23c34a(0x62a)]['width'],'height':_0x366735[_0x23c34a(0x62a)][_0x23c34a(0x560)],'left':_0x366735['worldRect'][_0x23c34a(0x416)],'top':_0x366735['worldRect'][_0x23c34a(0x324)],'flipX':_0x366735['worldRect'][_0x23c34a(0x5cb)]||!0x1,'flipY':_0x366735[_0x23c34a(0x62a)]['flipY']||!0x1,'oldAdjustValues':_0x39c78e,'newAdjustValues':_0x366735['adjustValues'],'newLineType':_0x366735[_0x23c34a(0x27d)],'rotation':_0x366735[_0x23c34a(0x648)],'oldRelation':_0x67255a,'newRelation':_0x338bfe};this[_0x23c34a(0x56d)]['executeCommand'](c[_0x23c34a(0x214)]['id'],_0x233a38);}[_0x8b89eb(0x60c)](_0x2f4d5c,_0x1b4812,_0x37d21c,_0x4192c4){const _0x566dfa=_0x8b89eb;let _0x55127b=this[_0x566dfa(0x68a)][_0x566dfa(0x6cc)]()['relation'],_0x41ff87={};_0x37d21c?(_0x41ff87['to']=_0x1b4812,_0x41ff87[_0x566dfa(0x29a)]=void 0x0):(_0x41ff87[_0x566dfa(0x29a)]=_0x1b4812,_0x41ff87['to']=void 0x0);let _0xb3fc91={'unitId':this[_0x566dfa(0x41d)],'subUnitId':this[_0x566dfa(0x69e)],'connectorShapeId':this[_0x566dfa(0x38a)],'width':_0x2f4d5c[_0x566dfa(0x62a)][_0x566dfa(0x497)],'height':_0x2f4d5c[_0x566dfa(0x62a)][_0x566dfa(0x560)],'left':_0x2f4d5c[_0x566dfa(0x62a)][_0x566dfa(0x416)],'top':_0x2f4d5c['worldRect']['top'],'flipX':_0x2f4d5c[_0x566dfa(0x62a)][_0x566dfa(0x5cb)]||!0x1,'flipY':_0x2f4d5c[_0x566dfa(0x62a)][_0x566dfa(0x369)]||!0x1,'oldAdjustValues':_0x4192c4,'newAdjustValues':_0x2f4d5c[_0x566dfa(0x51b)],'newLineType':_0x2f4d5c[_0x566dfa(0x27d)],'rotation':_0x2f4d5c[_0x566dfa(0x648)],'oldRelation':_0x55127b,'newRelation':_0x41ff87};this[_0x566dfa(0x56d)]['executeCommand'](c[_0x566dfa(0x214)]['id'],_0xb3fc91);}['_attachConnectorObjectEvent'](_0x51054e,_0x826e4b,_0x4b8be1){const _0x46295e=_0x8b89eb;this[_0x46295e(0x37c)]((0x0,l[_0x46295e(0x697)])(_0x51054e[_0x46295e(0x438)][_0x46295e(0x507)]((_0xd2dcc5,_0x439152)=>{const _0x5a8518=_0x46295e;let _0x12b3c1=_0x51054e['getDrawingSearch']();if(this[_0x5a8518(0x68a)]=this[_0x5a8518(0x36b)][_0x5a8518(0x598)](_0x12b3c1['unitId'],_0x12b3c1[_0x5a8518(0x439)],_0x12b3c1[_0x5a8518(0x591)]),!this['_activeShapeModel'])return;let _0x495002={};this[_0x5a8518(0x68a)][_0x5a8518(0x727)]()[_0x5a8518(0x291)](_0x2dffbd=>{const _0xcc4c17=_0x5a8518;let _0x431869=this[_0xcc4c17(0x68a)][_0xcc4c17(0x54c)](_0x2dffbd);_0x431869!==void 0x0&&(_0x495002[_0x2dffbd]=_0x431869);});let _0x4b1508=this['_getDrawingRect']();if(!_0x4b1508)return;this['_baseDrawingRect']={..._0x4b1508};let _0x4a5b3f=new y['ConnectorCoordinateTransform'](this[_0x5a8518(0x435)]),_0x4429c1=(0x0,p[_0x5a8518(0x715)])({'unitId':this[_0x5a8518(0x41d)],'subUnitId':this[_0x5a8518(0x69e)],'drawingId':this[_0x5a8518(0x38a)]}),_0x34481c=_0x826e4b[_0x5a8518(0x5db)](_0x4429c1);this[_0x5a8518(0x652)]=!0x0,_0x826e4b[_0x5a8518(0x280)](),this[_0x5a8518(0x624)][_0x5a8518(0x24e)](_0x826e4b,this[_0x5a8518(0x41d)],this[_0x5a8518(0x69e)],this[_0x5a8518(0x38a)]),this[_0x5a8518(0x3c7)]=null;let _0x58484c=this[_0x5a8518(0x68a)]['getConnectorLinePoints'](),_0x12655f=_0x58484c[0x0],_0x5840e0=_0x58484c[_0x58484c[_0x5a8518(0x41f)]-0x1],_0x3782fc=_0x4b8be1?_0x4a5b3f[_0x5a8518(0x2ea)](_0x5840e0):_0x4a5b3f['localToWorld'](_0x12655f);this['_cxtHandlerPointerMove']=_0x826e4b[_0x5a8518(0x4e0)][_0x5a8518(0x507)]((_0x3f8dbd,_0x5eadc3)=>{const _0x2cbbc8=_0x5a8518;if(!this[_0x2cbbc8(0x652)]||!this[_0x2cbbc8(0x68a)])return;this[_0x2cbbc8(0x729)]||(this[_0x2cbbc8(0x2e8)][_0x2cbbc8(0x1f0)](),this[_0x2cbbc8(0x68a)][_0x2cbbc8(0x66b)](),this[_0x2cbbc8(0x729)]=!0x0);let _0x5f2c1e=this[_0x2cbbc8(0x3e7)](this[_0x2cbbc8(0x41d)],this[_0x2cbbc8(0x69e)]),_0x11bbb3=this[_0x2cbbc8(0x583)](this[_0x2cbbc8(0x41d)],this[_0x2cbbc8(0x69e)]),_0x120ed6={'x':_0x3f8dbd[_0x2cbbc8(0x6c5)]/_0x11bbb3+_0x5f2c1e['x'],'y':_0x3f8dbd['offsetY']/_0x11bbb3+_0x5f2c1e['y']},_0x4e9c52=this[_0x2cbbc8(0x624)][_0x2cbbc8(0x755)](_0x120ed6);if(_0x4e9c52){let {shapeId:_0x5d3996,unitId:_0x2addb6,subUnitId:_0x2bed02}=_0x4e9c52;if(_0x5d3996&&_0x2addb6&&_0x2bed02){let _0x37c5f3=(0x0,p[_0x2cbbc8(0x715)])({'unitId':_0x2addb6,'subUnitId':_0x2bed02,'drawingId':_0x5d3996});_0x4e9c52[_0x2cbbc8(0x42d)]=(_0x826e4b[_0x2cbbc8(0x5db)](_0x37c5f3)[_0x2cbbc8(0x42d)]||0x0)+_0x4e9c52[_0x2cbbc8(0x42d)];}}this['_currentConnectionTarget']=_0x4e9c52;let _0x195f11=_0x4b8be1?this[_0x2cbbc8(0x68a)][_0x2cbbc8(0x739)]():this['_activeShapeModel']['getStartConnectInfo']();if(_0x195f11){this[_0x2cbbc8(0x4b0)](_0x195f11,_0x120ed6,_0x4b8be1,_0x34481c,_0x51054e);return;}this[_0x2cbbc8(0x688)](_0x120ed6,_0x3782fc,_0x4b8be1,_0x34481c,_0x51054e);}),this['_cxtHandlerPointerUp']=_0x826e4b['onPointerUp$']['subscribeEvent']((_0x2b432a,_0x4dc75e)=>{const _0x28d9e3=_0x5a8518;this[_0x28d9e3(0x640)](_0x826e4b,_0x3782fc,_0x2b432a,_0x4b8be1,_0x495002);}),_0x439152[_0x5a8518(0x59d)]();})));}[_0x8b89eb(0x2a1)](_0xb66ff2,_0x418c0f,_0x3d8881){const _0x41b3c9=_0x8b89eb;let _0xb2e89e=this['_sheetsShapeService']['getBasicShapeRelation'](_0xb66ff2,_0x418c0f,_0x3d8881);if(!_0xb2e89e||_0xb2e89e[_0x41b3c9(0x41f)]===0x0)return;let _0x3e272d=this[_0x41b3c9(0x6b0)][_0x41b3c9(0x2b0)](_0xb66ff2);if(!_0x3e272d)return;let {scene:_0x2efaf9}=_0x3e272d;for(let _0x52b8bd of _0xb2e89e){let _0x2a5daa=_0x52b8bd[_0x41b3c9(0x288)],_0x188252=this['_sheetsShapeService']['getShapeModel'](_0xb66ff2,_0x418c0f,_0x2a5daa);if(!_0x188252)continue;let _0x4a9d19=_0x188252[_0x41b3c9(0x3eb)](),_0x1af282=_0x188252[_0x41b3c9(0x739)](),_0x50e4c4=(_0x4a9d19==null?void 0x0:_0x4a9d19[_0x41b3c9(0x3a6)])===_0x3d8881,_0x58e490=(0x0,p['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xb66ff2,'subUnitId':_0x418c0f,'drawingId':_0x2a5daa}),_0x90aa55=_0x2efaf9[_0x41b3c9(0x5db)](_0x58e490);if(!_0x90aa55)continue;let _0x67dec0=this[_0x41b3c9(0x287)][_0x41b3c9(0x34e)]({'unitId':_0xb66ff2,'subUnitId':_0x418c0f,'drawingId':_0x2a5daa});_0x67dec0!=null&&_0x67dec0[_0x41b3c9(0x5f1)]&&(_0x4a9d19&&_0x1af282?this[_0x41b3c9(0x2d2)](_0xb66ff2,_0x418c0f,_0x2a5daa,_0x188252,_0x4a9d19,_0x1af282,_0x90aa55):this[_0x41b3c9(0x5b5)](_0xb66ff2,_0x418c0f,_0x2a5daa,_0x188252,_0x50e4c4?_0x4a9d19:_0x1af282,_0x50e4c4,_0x67dec0,_0x90aa55));}}['_rerouteConnectorLine'](_0x3fd503,_0x141fda,_0x46f327,_0x5984a0,_0x5615c1,_0x4a0460,_0x4e01ea){const _0x15b46d=_0x8b89eb;let _0xea8e1a=this['_unitId'],_0x2a16a5=this[_0x15b46d(0x69e)];this[_0x15b46d(0x41d)]=_0x3fd503,this[_0x15b46d(0x69e)]=_0x141fda;let _0x281a15=this[_0x15b46d(0x4a7)](_0x5615c1),_0x408d0c=this[_0x15b46d(0x4a7)](_0x4a0460);if(this['_unitId']=_0xea8e1a,this[_0x15b46d(0x69e)]=_0x2a16a5,!_0x281a15||!_0x408d0c)return;let _0x2ecd5c=_0x5984a0[_0x15b46d(0x5d7)](),_0x3c2e15=(0x0,y['routeConnectorLineShape'])(_0x281a15,_0x408d0c,_0x2ecd5c);_0x3c2e15&&_0x5984a0[_0x15b46d(0x278)](_0x3c2e15);let _0x33bc3c=(0x0,y[_0x15b46d(0x734)])(_0x3c2e15,_0x2ecd5c);_0x33bc3c[_0x15b46d(0x27d)]!==_0x2ecd5c&&_0x5984a0[_0x15b46d(0x647)](_0x33bc3c['lineType']),_0x5984a0[_0x15b46d(0x66b)]();for(let [_0x57c991,_0x193964]of Object['entries'](_0x33bc3c[_0x15b46d(0x51b)]))_0x5984a0[_0x15b46d(0x3cb)](_0x57c991,_0x193964);_0x5984a0[_0x15b46d(0x6a3)]({'width':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x497)],'height':_0x33bc3c['worldRect']['height']}),_0x4e01ea['transformByState']({'flipX':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x5cb)],'flipY':_0x33bc3c['worldRect'][_0x15b46d(0x369)],'left':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x416)],'top':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x324)],'width':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x497)],'height':_0x33bc3c[_0x15b46d(0x62a)][_0x15b46d(0x560)],'angle':_0x33bc3c[_0x15b46d(0x648)]}),_0x5984a0[_0x15b46d(0x2a7)]();}[_0x8b89eb(0x5b5)](_0x4c1f11,_0x403e14,_0x3c702e,_0x490065,_0xa6eac,_0x1ac8ef,_0x912f75,_0x384ba4){const _0x1a13a6=_0x8b89eb;let _0x14f696=this['_unitId'],_0x9d9ae5=this[_0x1a13a6(0x69e)];this[_0x1a13a6(0x41d)]=_0x4c1f11,this['_subUnitId']=_0x403e14;let _0x23098b=this[_0x1a13a6(0x4a7)](_0xa6eac);if(this[_0x1a13a6(0x41d)]=_0x14f696,this['_subUnitId']=_0x9d9ae5,!_0x23098b)return;let {left:_0x1f7326=0x0,top:_0x81dff0=0x0,width:_0x85789c=0x0,height:_0x1e34d3=0x0,flipX:_0xc7adef=!0x1,flipY:_0x35bcb7=!0x1}=_0x912f75[_0x1a13a6(0x5f1)],_0x4c61f1=_0x490065[_0x1a13a6(0x5be)]();if(_0x4c61f1[_0x1a13a6(0x41f)]<0x2)return;let _0x4f2b56=new y[(_0x1a13a6(0x64e))]({'left':_0x1f7326,'top':_0x81dff0,'width':_0x85789c,'height':_0x1e34d3,'flipX':_0xc7adef,'flipY':_0x35bcb7}),_0x5ac3b6=_0x1ac8ef?_0x4c61f1[_0x4c61f1[_0x1a13a6(0x41f)]-0x1]:_0x4c61f1[0x0],_0x1c6d41=_0x4f2b56[_0x1a13a6(0x2ea)](_0x5ac3b6),_0x5f50d7=y[_0x1a13a6(0x64e)][_0x1a13a6(0x297)](_0x1c6d41,_0x23098b['point'],!_0x1ac8ef);_0x384ba4[_0x1a13a6(0x4ab)]({'flipX':_0x5f50d7[_0x1a13a6(0x62a)][_0x1a13a6(0x5cb)],'flipY':_0x5f50d7[_0x1a13a6(0x62a)][_0x1a13a6(0x369)],'left':_0x5f50d7[_0x1a13a6(0x62a)][_0x1a13a6(0x416)],'top':_0x5f50d7['worldRect'][_0x1a13a6(0x324)],'width':_0x5f50d7['worldRect']['width'],'height':_0x5f50d7['worldRect'][_0x1a13a6(0x560)],'angle':_0x5f50d7[_0x1a13a6(0x62a)][_0x1a13a6(0x42d)]}),_0x384ba4[_0x1a13a6(0x700)](!0x0);}[_0x8b89eb(0x6f7)](){const _0x146828=_0x8b89eb;this[_0x146828(0x484)][_0x146828(0x41f)]!==0x0&&(this['_connectorObjects'][_0x146828(0x291)](_0x338df7=>{const _0x16a78a=_0x146828;_0x338df7[_0x16a78a(0x2e5)]();}),this['_connectorObjects']=[]);}['_registerDrawingMoveHandler'](){const _0x15e0de=_0x8b89eb;let _0x155197=this[_0x15e0de(0x415)][_0x15e0de(0x62c)](l['UniverInstanceType'][_0x15e0de(0x699)]);this[_0x15e0de(0x37c)](_0x155197[_0x15e0de(0x2f4)]((0x0,f[_0x15e0de(0x724)])(_0x3c40f0=>_0x3c40f0?_0x3c40f0['activeSheet$']['pipe']((0x0,f['switchMap'])(_0x50ffcf=>{const _0x3bf66d=_0x15e0de;if(!_0x50ffcf)return f[_0x3bf66d(0x575)];let _0x5f2b2f=_0x3c40f0['getUnitId'](),_0xecfac2=this[_0x3bf66d(0x6b0)][_0x3bf66d(0x2b0)](_0x5f2b2f),_0xa8dc29=_0xecfac2==null?void 0x0:_0xecfac2[_0x3bf66d(0x272)];return _0xa8dc29?(0x0,f['of'])(_0xa8dc29):f['EMPTY'];})):f[_0x15e0de(0x575)]))[_0x15e0de(0x4ee)](_0x3805b4=>{const _0x4c35c2=_0x15e0de;let _0x14e8e8=_0x3805b4[_0x4c35c2(0x4e5)]();this[_0x4c35c2(0x37c)](_0x3805b4[_0x4c35c2(0x4e0)][_0x4c35c2(0x507)](_0x160bdf=>{const _0x3408c1=_0x4c35c2;this[_0x3408c1(0x3ce)]&&this['_activeShapeId']&&this[_0x3408c1(0x6f7)]();})),this[_0x4c35c2(0x37c)](_0x14e8e8['changeStart$']['subscribe'](_0x33e8ae=>{const _0x52ad8e=_0x4c35c2;let {objects:_0x94d6ab}=_0x33e8ae;this[_0x52ad8e(0x6f7)](),_0x94d6ab!==null&&_0x94d6ab[_0x52ad8e(0x4c9)]===0x1&&_0x94d6ab['values']()[_0x52ad8e(0x31c)]()[_0x52ad8e(0x21d)]instanceof H&&(this[_0x52ad8e(0x3ce)]=!0x0);})),this[_0x4c35c2(0x37c)](_0x14e8e8['changing$'][_0x4c35c2(0x4ee)](_0x479c8a=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x4c35c2(0x37c)](_0x3805b4['onPointerUp$'][_0x4c35c2(0x507)](()=>{const _0x15e13d=_0x4c35c2;this['_isDrawingShapePointDown']&&(this['_isDrawingShapePointDown']=!0x1,this[_0x15e13d(0x475)]());})),this[_0x4c35c2(0x37c)](_0x14e8e8[_0x4c35c2(0x21c)][_0x4c35c2(0x4ee)](()=>{const _0x262a66=_0x4c35c2;this[_0x262a66(0x41d)]&&this[_0x262a66(0x69e)]&&this['_activeShapeId']&&this[_0x262a66(0x287)][_0x262a66(0x34e)]({'unitId':this[_0x262a66(0x41d)],'subUnitId':this[_0x262a66(0x69e)],'drawingId':this[_0x262a66(0x38a)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x262a66(0x475)]());}));}));}[_0x8b89eb(0x5c0)](){const _0x48295a=_0x8b89eb;this[_0x48295a(0x37c)](this[_0x48295a(0x287)][_0x48295a(0x3f3)][_0x48295a(0x4ee)](_0x55914c=>{const _0x1ce071=_0x48295a;if(_0x55914c[_0x1ce071(0x41f)]===0x1){let _0x24e7bd=_0x55914c[0x0];if(_0x24e7bd[_0x1ce071(0x6e7)]===l['DrawingTypeEnum'][_0x1ce071(0x73a)]){let _0x365911=this[_0x1ce071(0x36b)]['getShapeModel'](_0x24e7bd['unitId'],_0x24e7bd[_0x1ce071(0x439)],_0x24e7bd['drawingId']);if(_0x365911&&(0x0,y[_0x1ce071(0x6a8)])(_0x365911[_0x1ce071(0x5d7)]())){this['_activeShapeId']=_0x24e7bd[_0x1ce071(0x591)],this['_unitId']=_0x24e7bd['unitId'],this[_0x1ce071(0x69e)]=_0x24e7bd[_0x1ce071(0x439)],this[_0x1ce071(0x6f7)](),this[_0x1ce071(0x475)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x1ce071(0x41d)]=void 0x0,this[_0x1ce071(0x69e)]=void 0x0,this[_0x1ce071(0x6f7)]();})),this[_0x48295a(0x37c)](this[_0x48295a(0x287)][_0x48295a(0x65d)]['subscribe'](_0x3bf59c=>{const _0x43c81b=_0x48295a;if(_0x3bf59c[_0x43c81b(0x41f)]===0x1){var _0x5a5953;let _0x4d6ca4=_0x3bf59c[0x0],_0xcaee97=(_0x5a5953=this[_0x43c81b(0x287)]['getDrawingByParam'](_0x4d6ca4))==null?void 0x0:_0x5a5953['drawingType'];_0xcaee97===l[_0x43c81b(0x638)][_0x43c81b(0x73a)]&&_0x4d6ca4[_0x43c81b(0x591)]===this[_0x43c81b(0x38a)]?(this[_0x43c81b(0x6f7)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x43c81b(0x38a)]&&_0xcaee97===l[_0x43c81b(0x638)][_0x43c81b(0x73a)]&&this[_0x43c81b(0x2a1)](_0x4d6ca4['unitId'],_0x4d6ca4[_0x43c81b(0x439)],_0x4d6ca4[_0x43c81b(0x591)]);}})),this[_0x48295a(0x37c)](this['_drawingManagerService']['remove$'][_0x48295a(0x4ee)](_0x1ed2f3=>{const _0xfb6290=_0x48295a;for(let _0x554356 of _0x1ed2f3){let {drawingId:_0x4613fa}=_0x554356;if(this[_0xfb6290(0x38a)]===_0x4613fa){this[_0xfb6290(0x714)]();return;}}}));}[_0x8b89eb(0x4b0)](_0x360166,_0x1228a1,_0x4c07b3,_0x3a5a6b,_0x2dad6e){const _0x483b1a=_0x8b89eb;var _0x50674e,_0x7b8d;if(!this[_0x483b1a(0x68a)])return;let _0x4346c2=this[_0x483b1a(0x4a7)](_0x360166);if(!_0x4346c2)return;let _0xbab9ef=this['_currentConnectionTarget']?this[_0x483b1a(0x3c7)][_0x483b1a(0x3ca)]:_0x1228a1,_0x5ed6c5=this[_0x483b1a(0x3c7)]?this[_0x483b1a(0x3c7)][_0x483b1a(0x42d)]:this[_0x483b1a(0x2f0)](_0x4346c2['point'],_0xbab9ef),_0x72820;if(this[_0x483b1a(0x3c7)]){let _0x49e0cc=this[_0x483b1a(0x287)]['getDrawingByParam']({'unitId':this[_0x483b1a(0x3c7)][_0x483b1a(0x4cd)],'subUnitId':this[_0x483b1a(0x3c7)][_0x483b1a(0x439)],'drawingId':this[_0x483b1a(0x3c7)][_0x483b1a(0x3a6)]});if(_0x49e0cc!=null&&_0x49e0cc['transform']){let {left:_0x233144=0x0,top:_0x344dfe=0x0,width:_0x38a9ca=0x0,height:_0x47b93c=0x0,angle:_0x1d333e}=_0x49e0cc['transform'];_0x72820=(0x0,y[_0x483b1a(0x4b3)])({'left':_0x233144,'top':_0x344dfe,'width':_0x38a9ca,'height':_0x47b93c},_0x1d333e||0x0);}else _0x72820={'left':_0xbab9ef['x'],'top':_0xbab9ef['y'],'width':0x0,'height':0x0};}else _0x72820={'left':_0xbab9ef['x'],'top':_0xbab9ef['y'],'width':0x0,'height':0x0};let _0x12f250={'point':_0xbab9ef,'angle':_0x5ed6c5,'bounds':_0x72820},_0x622dc4=_0x4c07b3?_0x12f250:_0x4346c2,_0xd78dbc=_0x4c07b3?_0x4346c2:_0x12f250,_0x5db5b5=this[_0x483b1a(0x68a)]['getShapeType'](),_0x5a3054=(0x0,y[_0x483b1a(0x208)])(_0x622dc4,_0xd78dbc,_0x5db5b5);_0x5a3054&&this[_0x483b1a(0x68a)][_0x483b1a(0x278)](_0x5a3054);let _0x518198=(0x0,y[_0x483b1a(0x734)])(_0x5a3054,_0x5db5b5);_0x518198['lineType']!==_0x5db5b5&&this[_0x483b1a(0x68a)]['changeShapeType'](_0x518198[_0x483b1a(0x27d)]);for(let [_0x53b6f7,_0x330d02]of Object['entries'](_0x518198[_0x483b1a(0x51b)]))this['_activeShapeModel'][_0x483b1a(0x3cb)](_0x53b6f7,_0x330d02);this['_activeShapeModel'][_0x483b1a(0x6a3)]({'width':_0x518198['worldRect']['width'],'height':_0x518198['worldRect']['height']}),_0x3a5a6b[_0x483b1a(0x4ab)]({'flipX':_0x518198[_0x483b1a(0x62a)]['flipX'],'flipY':_0x518198[_0x483b1a(0x62a)]['flipY'],'left':_0x518198[_0x483b1a(0x62a)]['left'],'top':_0x518198[_0x483b1a(0x62a)][_0x483b1a(0x324)],'width':_0x518198[_0x483b1a(0x62a)][_0x483b1a(0x497)],'height':_0x518198[_0x483b1a(0x62a)][_0x483b1a(0x560)],'angle':_0x518198[_0x483b1a(0x648)]}),_0x3a5a6b['makeDirty'](!0x0);let _0x46ac16=(_0x50674e=(_0x7b8d=this['_currentConnectionTarget'])==null?void 0x0:_0x7b8d[_0x483b1a(0x3ca)])==null?_0x1228a1:_0x50674e;_0x2dad6e['transformByState']({'left':_0x46ac16['x']-y[_0x483b1a(0x619)][_0x483b1a(0x2d7)],'top':_0x46ac16['y']-y[_0x483b1a(0x619)][_0x483b1a(0x2d7)]});}['_handleFreeEndpointMove'](_0x37f50f,_0x58bbdd,_0x177cd3,_0x3024f6,_0x5a93c4){const _0x23fefd=_0x8b89eb;var _0x4d467c,_0x363957,_0x47ccc8,_0x4743f9;let _0x3e7421=(_0x4d467c=(_0x363957=this['_currentConnectionTarget'])==null?void 0x0:_0x363957['worldPoint'])==null?_0x37f50f:_0x4d467c,_0x3daba0=y['ConnectorCoordinateTransform'][_0x23fefd(0x297)](_0x58bbdd,_0x3e7421,_0x177cd3);_0x3024f6[_0x23fefd(0x4ab)]({'flipX':_0x3daba0[_0x23fefd(0x62a)][_0x23fefd(0x5cb)],'flipY':_0x3daba0[_0x23fefd(0x62a)][_0x23fefd(0x369)],'left':_0x3daba0[_0x23fefd(0x62a)]['left'],'top':_0x3daba0[_0x23fefd(0x62a)][_0x23fefd(0x324)],'width':_0x3daba0['worldRect'][_0x23fefd(0x497)],'height':_0x3daba0[_0x23fefd(0x62a)][_0x23fefd(0x560)],'angle':_0x3daba0[_0x23fefd(0x62a)]['angle']});let _0x386901=(_0x47ccc8=(_0x4743f9=this[_0x23fefd(0x3c7)])==null?void 0x0:_0x4743f9[_0x23fefd(0x3ca)])==null?_0x37f50f:_0x47ccc8;_0x5a93c4[_0x23fefd(0x4ab)]({'left':_0x386901['x']-y[_0x23fefd(0x619)][_0x23fefd(0x2d7)],'top':_0x386901['y']-y[_0x23fefd(0x619)][_0x23fefd(0x2d7)]});}[_0x8b89eb(0x4a7)](_0x158ae8){const _0x2e4a87=_0x8b89eb;if(!this[_0x2e4a87(0x41d)]||!this[_0x2e4a87(0x69e)])return null;let {shapeId:_0x346ea6,cxnIndex:_0x272ece}=_0x158ae8,_0x10941b=this[_0x2e4a87(0x36b)]['getShapeModel'](this[_0x2e4a87(0x41d)],this[_0x2e4a87(0x69e)],_0x346ea6);if(!_0x10941b)return null;let _0x27f84d=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x2e4a87(0x41d)],'subUnitId':this[_0x2e4a87(0x69e)],'drawingId':_0x346ea6});if(!(_0x27f84d!=null&&_0x27f84d[_0x2e4a87(0x5f1)]))return null;let {left:_0x5aaee2=0x0,top:_0x5a3fdd=0x0,width:_0x54ff5f=0x0,height:_0x46b5cc=0x0,flipX:_0x2523a0=!0x1,flipY:_0x4a5287=!0x1,angle:_0x9e967a}=_0x27f84d['transform'];_0x10941b[_0x2e4a87(0x6a3)]({'width':_0x54ff5f,'height':_0x46b5cc});let _0x1b3b4b=_0x10941b[_0x2e4a87(0x56e)]()['find'](_0x588380=>_0x588380[_0x2e4a87(0x483)]===_0x272ece);if(!_0x1b3b4b)return null;let _0x62874c=_0x2523a0?_0x54ff5f-_0x1b3b4b['x']:_0x1b3b4b['x'],_0x37cc1b=_0x4a5287?_0x46b5cc-_0x1b3b4b['y']:_0x1b3b4b['y'];if(_0x9e967a!==0x0&&_0x9e967a!=null){let _0x8a668e=_0x9e967a*Math['PI']/0xb4,_0x5d6472=Math['cos'](_0x8a668e),_0x34853f=Math[_0x2e4a87(0x1ea)](_0x8a668e),_0x5a37a4=_0x54ff5f/0x2,_0x6d349a=_0x46b5cc/0x2,_0x80161d=_0x62874c-_0x5a37a4,_0x2a4fd6=_0x37cc1b-_0x6d349a;_0x62874c=_0x5a37a4+_0x80161d*_0x5d6472-_0x2a4fd6*_0x34853f,_0x37cc1b=_0x6d349a+_0x80161d*_0x34853f+_0x2a4fd6*_0x5d6472;}_0x62874c+=_0x5aaee2,_0x37cc1b+=_0x5a3fdd;let _0x4bb967=_0x1b3b4b[_0x2e4a87(0x284)]/0xea60;_0x2523a0&&(_0x4bb967=0xb4-_0x4bb967),_0x4a5287&&(_0x4bb967=-_0x4bb967),_0x4bb967+=_0x9e967a||0x0,_0x4bb967=(_0x4bb967%0x168+0x168)%0x168;let _0x1257cb=(0x0,y[_0x2e4a87(0x4b3)])({'left':_0x5aaee2,'top':_0x5a3fdd,'width':_0x54ff5f,'height':_0x46b5cc},_0x9e967a||0x0);return{'point':{'x':_0x62874c,'y':_0x37cc1b},'angle':_0x4bb967,'bounds':_0x1257cb};}[_0x8b89eb(0x2f0)](_0x2ec8dd,_0x58ed5f){const _0x2e3915=_0x8b89eb;let _0x150a9a=_0x58ed5f['x']-_0x2ec8dd['x'],_0x2f34bd=_0x58ed5f['y']-_0x2ec8dd['y'];return Math[_0x2e3915(0x295)](_0x150a9a)>=Math[_0x2e3915(0x295)](_0x2f34bd)?_0x150a9a>=0x0?0xb4:0x0:_0x2f34bd>=0x0?0x10e:0x5a;}[_0x8b89eb(0x714)](){const _0x3ec5fb=_0x8b89eb;this[_0x3ec5fb(0x38a)]=void 0x0,this[_0x3ec5fb(0x41d)]=void 0x0,this[_0x3ec5fb(0x69e)]=void 0x0,this[_0x3ec5fb(0x6f7)]();}[_0x8b89eb(0x2e5)](){const _0x23166a=_0x8b89eb;this[_0x23166a(0x6f7)](),super['dispose']();}};Re=W([U(0x1,l[_0x8b89eb(0x6d6)]),U(0x2,m[_0x8b89eb(0x6ec)]),U(0x3,p[_0x8b89eb(0x5ba)]),U(0x4,l[_0x8b89eb(0x2b1)]),U(0x5,(0x0,l['Inject'])(c[_0x8b89eb(0x450)])),U(0x6,(0x0,l[_0x8b89eb(0x3f0)])(X)),U(0x7,(0x0,l[_0x8b89eb(0x3f0)])(Fe))],Re);let ze=class extends l[_0x8b89eb(0x301)]{constructor(_0x1acfba,_0x410d1c,_0x4086aa){const _0x2ea39d=_0x8b89eb;super(),this[_0x2ea39d(0x56d)]=_0x1acfba,this[_0x2ea39d(0x432)]=_0x410d1c,this[_0x2ea39d(0x38e)]=_0x4086aa,this[_0x2ea39d(0x3e8)]();}[_0x8b89eb(0x3e8)](){const _0x3837d6=_0x8b89eb;this[_0x3837d6(0x37c)](this['_commandService'][_0x3837d6(0x6b1)](_0x4e069c=>{const _0x206cd3=_0x3837d6;let _0x37b6fe,_0x8a6db1;if(_0x4e069c['id']===c[_0x206cd3(0x334)]['id']||_0x4e069c['id']===c[_0x206cd3(0x743)]['id']||_0x4e069c['id']===c[_0x206cd3(0x214)]['id']){let _0x4c8021=_0x4e069c[_0x206cd3(0x25e)];_0x37b6fe=_0x4c8021[_0x206cd3(0x4cd)],_0x8a6db1=_0x4c8021[_0x206cd3(0x439)];}!_0x37b6fe||!_0x8a6db1||this[_0x206cd3(0x38e)][_0x206cd3(0x359)]({'workbookTypes':[u['WorkbookEditablePermission']],'worksheetTypes':[u[_0x206cd3(0x562)]]},_0x37b6fe,_0x8a6db1)||this[_0x206cd3(0x38e)][_0x206cd3(0x6f5)](this['_localeService']['t']('permission.dialog.editErr'));}));}};ze=W([U(0x0,(0x0,l[_0x8b89eb(0x3f0)])(l[_0x8b89eb(0x6d6)])),U(0x1,(0x0,l[_0x8b89eb(0x3f0)])(l[_0x8b89eb(0x381)])),U(0x2,(0x0,l['Inject'])(u['SheetPermissionCheckController']))],ze);function _0x4ef2(_0x13902e,_0x1fed3d){_0x13902e=_0x13902e-0x1e4;const _0x3e18a2=_0x3e18();let _0x4ef2da=_0x3e18a2[_0x13902e];return _0x4ef2da;}const Be=function(_0x5a6a3b){const _0x29383b=_0x8b89eb;let {containerWidth:_0x3f45cc,containerHeight:_0x1704f6,scaleX:_0x212bc7,scaleY:_0x3de66e}=_0x5a6a3b,_0x252181=_0x212bc7||0x1,_0x2fb63f=_0x3de66e||0x1,_0x32ebb6=(0x0,v[_0x29383b(0x4f9)])(A),_0x1711a8=(0x0,v[_0x29383b(0x4f9)])(h['IEditorService']),_0x490960=(0x0,v['useDependency'])(m[_0x29383b(0x6ec)]),_0x52d704=(0x0,v[_0x29383b(0x4f9)])(l[_0x29383b(0x2b1)]),_0x5c2f33=(0x0,v[_0x29383b(0x4f9)])(p['IDrawingManagerService']),_0x13a020=(0x0,v['useDependency'])(c['SheetsShapeService']),_0x28f7a2=(0x0,v[_0x29383b(0x4f9)])(l['ICommandService']),_0x5d2829=(0x0,v['useObservable'])(_0x32ebb6['editingParams$']),_0x4e6b64=(0x0,v['useObservable'])(_0x32ebb6['onSavingEditorData$']),_0x16c220=(0x0,x[_0x29383b(0x747)])(null),_0x1cca33=(0x0,x['useRef'])(null),_0x36f42d=(0x0,x[_0x29383b(0x747)])(null),_0x10c801=(0x0,x[_0x29383b(0x747)])(null),_0x281838=(0x0,x[_0x29383b(0x747)])(null),_0x5d4a8e=(0x0,x['useRef'])(null),[_0x934136,_0x25d271]=(0x0,x[_0x29383b(0x449)])({'editorHeight':_0x1704f6,'marginTop':0x0,'useAbsolutePosition':!0x1}),_0x201b28=(0x0,x[_0x29383b(0x53a)])(_0x3a8d3c=>{queueMicrotask(()=>{_0x25d271(_0x3a8d3c);});},[]),_0x1ea80b=(0x0,x[_0x29383b(0x53a)])(()=>_0x52d704['getUnit'](B,l[_0x29383b(0x31f)][_0x29383b(0x24c)]),[_0x52d704]),_0xcc0f10=(0x0,x[_0x29383b(0x53a)])(()=>{const _0xa13975=_0x29383b;var _0x579a08;let _0x13d977=_0x252181,_0x3e32b0=_0x2fb63f;if(!_0x5d2829)return{'scaleAdjust':0x1,'renderScaleX':_0x13d977,'renderScaleY':_0x3e32b0};let _0xdb286a=_0x490960['getRenderById'](_0x5d2829['unitId']),_0x1861b7=_0xdb286a==null?void 0x0:_0xdb286a[_0xa13975(0x272)][_0xa13975(0x52e)](),_0x207982=_0xdb286a==null?void 0x0:_0xdb286a[_0xa13975(0x397)][_0xa13975(0x3a7)](),_0x8a96fe=_0x207982?Number[_0xa13975(0x22e)](_0x207982[_0xa13975(0x320)]['width']||''):0x0,_0x33661e=(_0x579a08=_0x207982==null?void 0x0:_0x207982[_0xa13975(0x52d)]()[_0xa13975(0x497)])==null?0x0:_0x579a08,_0x1542ce=_0x8a96fe>0x0&&_0x33661e>0x0?_0x33661e/_0x8a96fe:0x1;return{'scaleAdjust':Number[_0xa13975(0x61b)](_0x1542ce)&&_0x1542ce>0x0?_0x1542ce:0x1,'renderScaleX':(_0x1861b7==null?void 0x0:_0x1861b7[_0xa13975(0x2a3)])||_0x13d977,'renderScaleY':(_0x1861b7==null?void 0x0:_0x1861b7[_0xa13975(0x45f)])||_0x3e32b0};},[_0x252181,_0x2fb63f,_0x5d2829,_0x490960]),_0x4d259d=(0x0,x[_0x29383b(0x53a)])(()=>{const _0x3ee0a7=_0x29383b;if(!_0x5d2829)return{'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f};let {unitId:_0xf58bcb,subUnitId:_0x261f53,shapeId:_0x356193}=_0x5d2829,_0x4b36ef=_0x13a020[_0x3ee0a7(0x598)](_0xf58bcb,_0x261f53,_0x356193);if(!_0x4b36ef)return{'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f};let _0x47413d={'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f};return _0x4b36ef[_0x3ee0a7(0x216)](_0x47413d);},[_0x5d2829,_0x3f45cc,_0x1704f6,_0x252181,_0x2fb63f,_0x13a020]),_0x5b4e22=(0x0,x['useCallback'])(()=>{const _0x17fd2c=_0x29383b;if(!_0x5d2829)return null;let {unitId:_0x25f15b,subUnitId:_0x132cf5,shapeId:_0x4b2024}=_0x5d2829,_0x18507e=_0x13a020[_0x17fd2c(0x598)](_0x25f15b,_0x132cf5,_0x4b2024);if(!_0x18507e)return null;let _0x4c610d=_0x18507e['getShapeTextData']();if(!_0x4c610d)return null;let _0x4bfa95={'unitId':_0x25f15b,'subUnitId':_0x132cf5,'drawingId':_0x4b2024},_0x56da9f=_0x5c2f33[_0x17fd2c(0x34e)](_0x4bfa95),_0x3884af={'angle':0x0,'flipX':!0x1,'flipY':!0x1};_0x56da9f&&_0x56da9f[_0x17fd2c(0x5f1)]&&(_0x3884af=_0x56da9f[_0x17fd2c(0x5f1)]);let _0x40e0df={'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f},_0x547f26=_0x18507e[_0x17fd2c(0x216)](_0x40e0df),_0x2d5b57,_0x435c35=l[_0x17fd2c(0x6df)][_0x17fd2c(0x4eb)],_0x412705=l[_0x17fd2c(0x31e)]['LEFT'];if(_0x17fd2c(0x264)in _0x4c610d&&_0x4c610d[_0x17fd2c(0x264)]){var _0x13ce1c,_0x44a9eb;let _0x5b18c5=_0x4c610d[_0x17fd2c(0x264)];_0x5b18c5!=null&&_0x5b18c5[_0x17fd2c(0x35f)]&&(_0x2d5b57=_0x5b18c5[_0x17fd2c(0x35f)]),_0x435c35=(_0x13ce1c=_0x5b18c5==null?void 0x0:_0x5b18c5['va'])==null?l[_0x17fd2c(0x6df)][_0x17fd2c(0x4eb)]:_0x13ce1c,_0x412705=(_0x44a9eb=_0x5b18c5==null?void 0x0:_0x5b18c5['ha'])==null?l[_0x17fd2c(0x31e)][_0x17fd2c(0x6fd)]:_0x44a9eb;}return{'doc':_0x2d5b57,'verticalAlign':_0x435c35,'horizontalAlign':_0x412705,'textRect':_0x547f26,'transform':_0x3884af,'isHorizontal':_0x4c610d[_0x17fd2c(0x3ad)]};},[_0x5d2829,_0x13a020,_0x5c2f33,_0x3f45cc,_0x1704f6,_0x252181,_0x2fb63f]),_0x5c7d0e=(0x0,x[_0x29383b(0x370)])(()=>{const _0x4eb8a3=_0x29383b;let _0x17e54d=_0x5b4e22();return _0x17e54d!=null&&_0x17e54d[_0x4eb8a3(0x35f)]?re(_0x17e54d[_0x4eb8a3(0x35f)],{'isHorizontal':!0x0,'textRect':_0x17e54d[_0x4eb8a3(0x47f)],'verticalAlign':_0x17e54d[_0x4eb8a3(0x38f)],'horizontalAlign':_0x17e54d[_0x4eb8a3(0x752)]}):{'id':B,'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0}]},'documentStyle':{'pageSize':{'width':_0x3f45cc/_0x252181,'height':0x1/0x0}}};},[_0x5b4e22,_0x3f45cc,_0x252181]),_0x1575fa=(0x0,h[_0x29383b(0x429)])({'editorId':B,'initialValue':_0x5c7d0e,'container':_0x1cca33,'autoFocus':!0x1,'isSingle':!0x1}),_0x21d9d7=(0x0,h[_0x29383b(0x5f2)])(B);(0x0,h['useKeyboardEvent'])(_0x21d9d7,{'keyCodes':[{'keyCode':v[_0x29383b(0x1ec)][_0x29383b(0x52c)]}],'handler':()=>{const _0x1b01f9=_0x29383b;_0x28f7a2[_0x1b01f9(0x279)](h['BreakLineCommand']['id']);}},_0x1575fa),(0x0,h[_0x29383b(0x50e)])(_0x21d9d7,!0x1,_0x1575fa);let _0x4bf202=(0x0,x[_0x29383b(0x53a)])((_0x4c4658=!0x0)=>{const _0x2c66cb=_0x29383b;var _0x39a7e5,_0x13ef3f,_0x434277;if(!_0x1575fa)return;let _0x41a89a=_0x1575fa['getSelectionRanges']()['find'](_0x1afdd8=>_0x1afdd8['collapsed']),_0x537ba1=((_0x39a7e5=(_0x13ef3f=_0x1575fa[_0x2c66cb(0x5e9)]()[_0x2c66cb(0x554)])==null?void 0x0:_0x13ef3f[_0x2c66cb(0x4a6)][_0x2c66cb(0x41f)])==null?0x2:_0x39a7e5)-0x2,_0x3d8202=(_0x434277=_0x41a89a==null?void 0x0:_0x41a89a['startOffset'])==null?_0x4c4658?_0x537ba1:null:_0x434277;_0x3d8202!==null&&_0x1575fa[_0x2c66cb(0x444)]([{'startOffset':_0x3d8202,'endOffset':_0x3d8202}],!0x1);},[_0x1575fa]),_0x340392=(0x0,x[_0x29383b(0x53a)])(()=>{const _0x3ac341=_0x29383b;_0x281838[_0x3ac341(0x74e)]!==null&&(cancelAnimationFrame(_0x281838['current']),_0x281838[_0x3ac341(0x74e)]=null),_0x5d4a8e[_0x3ac341(0x74e)]!==null&&(window['clearTimeout'](_0x5d4a8e[_0x3ac341(0x74e)]),_0x5d4a8e[_0x3ac341(0x74e)]=null);},[]),_0x4c85e6=(0x0,x[_0x29383b(0x53a)])(()=>{const _0x5030e5=_0x29383b;var _0x23b1ab,_0x26b485,_0x37476d;if(!_0x1575fa)return;let _0x410bf7=_0x490960[_0x5030e5(0x2b0)](B),_0x538662=_0x410bf7==null?void 0x0:_0x410bf7[_0x5030e5(0x6fa)](T[_0x5030e5(0x74d)]);if(!_0x538662)return;let _0x697aab=_0x538662[_0x5030e5(0x730)](),_0x2b2a22=_0x1ea80b(),{renderScaleX:_0x16d5b0,renderScaleY:_0x45f573,scaleAdjust:_0x4df481}=_0xcc0f10(),_0x489363=_0x5b4e22(),_0x1030c1=(_0x23b1ab=_0x489363==null?void 0x0:_0x489363[_0x5030e5(0x38f)])==null?l[_0x5030e5(0x6df)]['TOP']:_0x23b1ab,_0x547ce0=(_0x26b485=_0x489363==null?void 0x0:_0x489363['horizontalAlign'])==null?l[_0x5030e5(0x31e)][_0x5030e5(0x6fd)]:_0x26b485,_0x48a1ef=(_0x37476d=_0x4d259d())==null?{'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f}:_0x37476d;_0x2b2a22&&(_0x2b2a22['setZoomRatio'](Math[_0x5030e5(0x20c)](_0x16d5b0,_0x45f573)),_0x2b2a22['updateDocumentStyle']({'pageSize':{'width':_0x48a1ef['width'],'height':0x1/0x0}}),_0x2b2a22['updateDocumentRenderConfig']({'verticalAlign':_0x1030c1,'horizontalAlign':_0x547ce0,'centerAngle':0x0,'vertexAngle':0x0,'wrapStrategy':l[_0x5030e5(0x298)]['WRAP']})),_0x697aab[_0x5030e5(0x37e)]();let {actualHeight:_0x13d21c}=_0x697aab[_0x5030e5(0x2a0)](),_0x20f0c9=_0x48a1ef['height'],_0x4c08a9=_0x20f0c9,_0x3d9b8d=0x0;if(_0x13d21c<=_0x20f0c9)_0x1030c1===l[_0x5030e5(0x6df)][_0x5030e5(0x311)]?_0x3d9b8d=(_0x20f0c9-_0x13d21c)/0x2:_0x1030c1===l['VerticalAlign'][_0x5030e5(0x1e5)]&&(_0x3d9b8d=_0x20f0c9-_0x13d21c),_0x4c08a9=_0x20f0c9,_0x201b28({'editorHeight':_0x48a1ef['height']*_0x2fb63f,'marginTop':0x0,'useAbsolutePosition':!0x1});else{let _0x1f5ba2=0x0;_0x1030c1===l[_0x5030e5(0x6df)]['MIDDLE']?_0x1f5ba2=(_0x20f0c9-_0x13d21c)/0x2:_0x1030c1===l[_0x5030e5(0x6df)]['BOTTOM']&&(_0x1f5ba2=_0x20f0c9-_0x13d21c),_0x3d9b8d=0x0,_0x201b28({'editorHeight':_0x13d21c*_0x2fb63f,'marginTop':_0x1f5ba2*_0x2fb63f,'useAbsolutePosition':!0x0}),_0x4c08a9=_0x13d21c;}if(_0x2b2a22&&(_0x2b2a22[_0x5030e5(0x612)]({'pageSize':{'width':_0x48a1ef['width'],'height':_0x4c08a9}}),_0x2b2a22[_0x5030e5(0x403)]({'t':_0x3d9b8d}),_0x697aab[_0x5030e5(0x37e)]()),_0x410bf7){let _0x4f2716=_0x48a1ef[_0x5030e5(0x497)]*_0x252181,_0x259633=_0x4c08a9*_0x2fb63f;_0x410bf7[_0x5030e5(0x272)][_0x5030e5(0x4ab)]({'width':_0x4f2716*_0x4df481/_0x16d5b0,'height':_0x259633*_0x4df481/_0x45f573,'scaleX':_0x16d5b0*_0x4df481,'scaleY':_0x45f573*_0x4df481}),_0x410bf7[_0x5030e5(0x523)]&&_0x410bf7[_0x5030e5(0x523)]['resize'](_0x4f2716*_0x4df481/_0x16d5b0,_0x259633*_0x4df481/_0x45f573);}},[_0x1575fa,_0x490960,_0x1ea80b,_0xcc0f10,_0x5b4e22,_0x4d259d,_0x3f45cc,_0x1704f6,_0x252181,_0x2fb63f,_0x201b28]),_0x333672=(0x0,x['useCallback'])((_0x475db5=!0x1)=>{const _0x200eae=_0x29383b;_0x340392(),_0x281838[_0x200eae(0x74e)]=requestAnimationFrame(()=>{const _0x2a542e=_0x200eae;_0x4c85e6(),_0x475db5&&_0x4bf202(!0x1),_0x281838[_0x2a542e(0x74e)]=null,_0x5d4a8e[_0x2a542e(0x74e)]=window[_0x2a542e(0x45c)](()=>{_0x4c85e6(),_0x475db5&&_0x4bf202(!0x1),_0x5d4a8e['current']=null;},0x14);});},[_0x4c85e6,_0x340392,_0x4bf202]);(0x0,x[_0x29383b(0x249)])(()=>{const _0x3765a5=_0x29383b;if(!_0x1575fa||!_0x5d2829)return;let {shapeId:_0x29ff73,unitId:_0x2ddd36,subUnitId:_0x111a23}=_0x5d2829;if(_0x4e6b64){var _0x26f834,_0x25149d,_0x2e2609,_0x3dfcac;let _0x3fce96=ie(_0x1575fa['getDocumentData']()),_0x383232=_0x5b4e22(),_0x4853aa={'va':(_0x26f834=_0x383232==null?void 0x0:_0x383232[_0x3765a5(0x38f)])==null?l[_0x3765a5(0x6df)][_0x3765a5(0x4eb)]:_0x26f834,'ha':(_0x25149d=_0x383232==null?void 0x0:_0x383232['horizontalAlign'])==null?l[_0x3765a5(0x31e)][_0x3765a5(0x6fd)]:_0x25149d,'doc':_0x3fce96};_0x28f7a2['executeCommand'](M['id'],{'unitId':_0x2ddd36,'subUnitId':_0x111a23,'shapeId':_0x29ff73,'shapeData':{'shapeText':{'isHorizontal':(_0x2e2609=_0x383232==null?void 0x0:_0x383232[_0x3765a5(0x3ad)])==null?!0x0:_0x2e2609,'dataModel':_0x4853aa}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x3dfcac=_0x383232==null?void 0x0:_0x383232[_0x3765a5(0x3ad)])==null?!0x0:_0x3dfcac,'dataModel':_0x36f42d[_0x3765a5(0x74e)]}}}});return;}let _0x141fc9=_0x5b4e22();if(_0x141fc9!=null&&_0x141fc9[_0x3765a5(0x35f)]){_0x36f42d['current']={'va':_0x141fc9[_0x3765a5(0x38f)],'ha':_0x141fc9['horizontalAlign'],'doc':l[_0x3765a5(0x3b7)][_0x3765a5(0x2dc)](_0x141fc9['doc'])};let _0x5f4a85=re(_0x141fc9[_0x3765a5(0x35f)],{'isHorizontal':!0x0,'textRect':_0x141fc9['textRect'],'verticalAlign':_0x141fc9[_0x3765a5(0x38f)],'horizontalAlign':_0x141fc9['horizontalAlign']});return _0x1575fa['setDocumentData'](_0x5f4a85,null),()=>{const _0x5383b6=_0x3765a5;var _0xf0f7,_0x378480,_0x5e46c9,_0x4b96d3;let _0x53b464=ie(_0x1575fa[_0x5383b6(0x5e9)]()),_0x3c1316=_0x5b4e22(),_0x8ef9de={'va':(_0xf0f7=_0x3c1316==null?void 0x0:_0x3c1316[_0x5383b6(0x38f)])==null?l[_0x5383b6(0x6df)][_0x5383b6(0x4eb)]:_0xf0f7,'ha':(_0x378480=_0x3c1316==null?void 0x0:_0x3c1316[_0x5383b6(0x752)])==null?l[_0x5383b6(0x31e)][_0x5383b6(0x6fd)]:_0x378480,'doc':_0x53b464};_0x28f7a2[_0x5383b6(0x279)](M['id'],{'unitId':_0x2ddd36,'subUnitId':_0x111a23,'shapeId':_0x29ff73,'shapeData':{'shapeText':{'isHorizontal':(_0x5e46c9=_0x3c1316==null?void 0x0:_0x3c1316[_0x5383b6(0x3ad)])==null?!0x0:_0x5e46c9,'dataModel':_0x8ef9de}},'oldShapeJSON':{'oldShapeData':{'shapeText':{'isHorizontal':(_0x4b96d3=_0x3c1316==null?void 0x0:_0x3c1316['isHorizontal'])==null?!0x0:_0x4b96d3,'dataModel':_0x36f42d['current']}}}});};}else _0x1575fa[_0x3765a5(0x421)](_0x5c7d0e,null);},[_0x1575fa,_0x5d2829,_0x4e6b64]),(0x0,x[_0x29383b(0x249)])(()=>{const _0x594014=_0x29383b;if(!(!_0x1575fa||!_0x5d2829))return _0x1711a8[_0x594014(0x32a)](!0x0),_0x4c85e6(),_0x10c801[_0x594014(0x74e)]=requestAnimationFrame(()=>{const _0x25a660=_0x594014;_0x1711a8[_0x25a660(0x670)](B),_0x4bf202(),_0x333672(),_0x10c801[_0x25a660(0x74e)]=null;}),()=>{const _0x51ac8b=_0x594014;_0x10c801['current']!==null&&(cancelAnimationFrame(_0x10c801[_0x51ac8b(0x74e)]),_0x10c801[_0x51ac8b(0x74e)]=null),_0x340392(),_0x1711a8[_0x51ac8b(0x32a)](!0x0);};},[_0x1575fa,_0x5d2829,_0x1711a8,_0x4c85e6,_0x4bf202,_0x333672,_0x340392]),(0x0,x[_0x29383b(0x249)])(()=>{const _0x355a8c=_0x29383b;if(!_0x1575fa)return;let _0x35fd8b=_0x28f7a2[_0x355a8c(0x258)](_0x2eca1d=>{const _0x6037f5=_0x355a8c;_0x2eca1d['id']===T[_0x6037f5(0x621)]['id']&&_0x2eca1d[_0x6037f5(0x25e)][_0x6037f5(0x4cd)]===B&&_0x5d2829&&(_0x5d2829['visible']?_0x4c85e6():_0x32ebb6['setEditing']({..._0x5d2829,'visible':!0x0})),_0x2eca1d['id']===I['id']&&_0x333672(!0x0);});return()=>{const _0x1cfa9c=_0x355a8c;_0x35fd8b[_0x1cfa9c(0x2e5)]();};},[_0x1575fa,_0x4c85e6,_0x5d2829,_0x333672,_0x32ebb6]),(0x0,x[_0x29383b(0x249)])(()=>(_0x4c85e6(),_0x333672(),()=>{_0x340392();}),[_0x4c85e6,_0x333672,_0x340392]);let _0x1c568a=(0x0,x[_0x29383b(0x370)])(()=>{const _0x5564fa=_0x29383b;var _0x26cac6;let _0x1ed4b0=(_0x26cac6=_0x4d259d())==null?{'left':0x0,'top':0x0,'width':_0x3f45cc/_0x252181,'height':_0x1704f6/_0x2fb63f}:_0x26cac6,_0xeee176=_0x1ed4b0[_0x5564fa(0x416)]*_0x252181,_0x1fb423=_0x1ed4b0[_0x5564fa(0x324)]*_0x2fb63f,_0x4381d8=_0x1ed4b0['width']*_0x252181;return _0x934136[_0x5564fa(0x250)]?{'top':_0x1fb423+_0x934136['marginTop'],'left':_0xeee176,'width':_0x4381d8,'height':_0x934136[_0x5564fa(0x6be)]}:{'top':_0x1fb423,'left':_0xeee176,'width':_0x4381d8,'height':_0x934136[_0x5564fa(0x6be)]};},[_0x934136,_0x4d259d,_0x3f45cc,_0x1704f6,_0x252181,_0x2fb63f]),_0x5b828c=(0x0,x[_0x29383b(0x370)])(()=>{const _0x2b5ac8=_0x29383b;let _0x19223f=_0x5b4e22(),_0x4c63b6=_0x19223f==null?void 0x0:_0x19223f[_0x2b5ac8(0x5f1)];return _0x4c63b6&&_0x4c63b6||{'angle':0x0,'flipX':!0x1,'flipY':!0x1};},[_0x5b4e22]);return(0x0,C[_0x29383b(0x45d)])('div',{'ref':_0x16c220,'data-u-comp':_0x29383b(0x731),'className':_0x29383b(0x34a),'style':{'transform':_0x29383b(0x660)+_0x5b828c[_0x29383b(0x42d)]+'deg)\x20scaleY('+(_0x5b828c[_0x29383b(0x369)]?-0x1:0x1)+')'},'children':(0x0,C[_0x29383b(0x45d)])(_0x29383b(0x308),{'ref':_0x1cca33,'className':_0x29383b(0x3e5),'data-u-comp':_0x29383b(0x36a),'style':_0x1c568a,'data-editorid':B})});};Be[_0x8b89eb(0x430)]=_0x8b89eb(0x263);const Ve={'left':-0x270f,'top':-0x270f,'width':0x64,'height':0x64,'angle':0x0,'scaleX':0x1,'scaleY':0x1};function He(_0x1900d2,_0x4a2476,_0x3f1cda,_0x2c3eee){const _0x299e4e=_0x8b89eb;let {scaleX:_0x5900e4,scaleY:_0x285bf8}=_0x3f1cda[_0x299e4e(0x52e)](),{startColumn:_0x12dcaf,startRow:_0x22f1df,xSplit:_0x89280b,ySplit:_0x4c37a5}=_0x2c3eee[_0x299e4e(0x517)][_0x299e4e(0x283)](),_0x4bd966=_0x3f1cda[_0x299e4e(0x545)](m[_0x299e4e(0x247)][_0x299e4e(0x2ab)]),_0x31d7b3=_0x3f1cda['getViewport'](m[_0x299e4e(0x247)][_0x299e4e(0x722)]),_0x5ceb6a=_0x3f1cda[_0x299e4e(0x545)](m[_0x299e4e(0x247)][_0x299e4e(0x1f7)]),_0x52724d=_0x3f1cda[_0x299e4e(0x545)](m[_0x299e4e(0x247)][_0x299e4e(0x3b2)]),{rowHeaderWidth:_0x119763,columnHeaderHeight:_0x1045d5}=_0x2c3eee,_0x34946d=_0x2c3eee[_0x299e4e(0x3b8)](_0x22f1df)+_0x1045d5,_0x7d8319=_0x2c3eee[_0x299e4e(0x371)](_0x12dcaf)+_0x119763,_0x3aaaac=_0x2c3eee[_0x299e4e(0x3b8)](_0x22f1df-_0x4c37a5)+_0x1045d5,_0x36dc8c=_0x2c3eee['colStartX'](_0x12dcaf-_0x89280b)+_0x119763,_0x19b2aa=[],_0x5db1e1=(_0x317612,_0xcc7367,_0x30cdeb)=>{if(!_0x317612)return null;let {viewportScrollX:_0x1cfb73,viewportScrollY:_0x1180e6}=_0x317612,_0x3d401e,_0x1dc482;return _0x3d401e=_0xcc7367?(_0x1900d2-(_0x36dc8c-_0x119763))*_0x5900e4:(_0x1900d2-_0x1cfb73)*_0x5900e4,_0x1dc482=_0x30cdeb?(_0x4a2476-(_0x3aaaac-_0x1045d5))*_0x285bf8:(_0x4a2476-_0x1180e6)*_0x285bf8,{'domX':_0x3d401e,'domY':_0x1dc482};},_0x416d01=_0x1900d2<_0x7d8319&&_0x89280b>0x0,_0x2cecac=_0x4a2476<_0x34946d&&_0x4c37a5>0x0,_0x377067=_0x1900d2>=_0x7d8319||_0x89280b===0x0,_0x575c52=_0x4a2476>=_0x34946d||_0x4c37a5===0x0;if(_0x416d01&&_0x2cecac&&_0x31d7b3){let _0x21691e=_0x5db1e1(_0x31d7b3,!0x0,!0x0);_0x21691e&&_0x19b2aa['push'](_0x21691e);}if(_0x2cecac&&_0x377067&&_0x5ceb6a){let _0xecc884=_0x5db1e1(_0x5ceb6a,!0x1,!0x0);_0xecc884&&_0x19b2aa['push'](_0xecc884);}if(_0x416d01&&_0x575c52&&_0x52724d){let _0x4a0b27=_0x5db1e1(_0x52724d,!0x0,!0x1);_0x4a0b27&&_0x19b2aa['push'](_0x4a0b27);}if(_0x377067&&_0x575c52&&_0x4bd966){let _0x53b479=_0x5db1e1(_0x4bd966,!0x1,!0x1);_0x53b479&&_0x19b2aa[_0x299e4e(0x6cd)](_0x53b479);}if(_0x19b2aa[_0x299e4e(0x41f)]===0x0){var _0x4d5875,_0x3c3d3c;return{'domX':(_0x1900d2-((_0x4d5875=_0x4bd966==null?void 0x0:_0x4bd966[_0x299e4e(0x2ce)])==null?0x0:_0x4d5875))*_0x5900e4,'domY':(_0x4a2476-((_0x3c3d3c=_0x4bd966==null?void 0x0:_0x4bd966[_0x299e4e(0x3b1)])==null?0x0:_0x3c3d3c))*_0x285bf8};}let _0xdec97=_0x19b2aa[0x0][_0x299e4e(0x31a)],_0x4e69f0=_0x19b2aa[0x0][_0x299e4e(0x2e2)];for(let _0x47a5ae of _0x19b2aa)_0x47a5ae[_0x299e4e(0x31a)]>_0xdec97&&(_0xdec97=_0x47a5ae['domX']),_0x47a5ae[_0x299e4e(0x2e2)]>_0x4e69f0&&(_0x4e69f0=_0x47a5ae['domY']);return{'domX':_0xdec97,'domY':_0x4e69f0};}function Ue(_0x511642,_0x4cc925,_0x477484,_0x3c5ba7,_0x5337d4,_0x1a24b6,_0xd5ada0){const _0x164d8c=_0x8b89eb;let {scaleX:_0x5e4d54,scaleY:_0x5e2af0}=_0x1a24b6[_0x164d8c(0x52e)](),{domX:_0x72d790,domY:_0x498614}=He(_0x511642,_0x4cc925,_0x1a24b6,_0xd5ada0);return{'left':_0x72d790,'top':_0x498614,'width':_0x477484*_0x5e4d54,'height':_0x3c5ba7*_0x5e2af0,'angle':_0x5337d4,'scaleX':_0x5e4d54,'scaleY':_0x5e2af0};}function We(_0xb7e39){const _0x41bd0d=_0x8b89eb;let {editingParams:_0x4c7c92,scene:_0x102f97,skeleton:_0x51f246,getShapeTransform:_0x40c702}=_0xb7e39,[_0x274b10,_0x1e9423]=(0x0,x[_0x41bd0d(0x449)])(Ve),_0x4b9c1a=(0x0,x[_0x41bd0d(0x747)])(_0x274b10);_0x4b9c1a[_0x41bd0d(0x74e)]=_0x274b10;let _0x557bdc=(0x0,x['useCallback'])(()=>{const _0x5360b5=_0x41bd0d;if(!_0x4c7c92||!_0x102f97||!_0x51f246){_0x4b9c1a[_0x5360b5(0x74e)]!==Ve&&_0x1e9423(Ve);return;}let _0x2f5ed7=_0x40c702();if(!_0x2f5ed7){_0x4b9c1a['current']!==Ve&&_0x1e9423(Ve);return;}let {left:_0x238dbd,top:_0x3aa9b6,width:_0x584c90,height:_0x3ed4f5,angle:_0x428d74}=_0x2f5ed7;if(!_0x4c7c92[_0x5360b5(0x469)]){let {scaleX:_0x2cb6c6,scaleY:_0x267574}=_0x102f97[_0x5360b5(0x52e)]();_0x1e9423({'left':-0x270f,'top':-0x270f,'width':_0x584c90*_0x2cb6c6,'height':_0x3ed4f5*_0x267574,'angle':0x0,'scaleX':_0x2cb6c6,'scaleY':_0x267574});return;}_0x1e9423(Ue(_0x238dbd,_0x3aa9b6,_0x584c90,_0x3ed4f5,_0x428d74,_0x102f97,_0x51f246));},[_0x4c7c92,_0x102f97,_0x51f246,_0x40c702]);return(0x0,x[_0x41bd0d(0x249)])(()=>{_0x557bdc();},[_0x4c7c92,_0x557bdc]),{'position':_0x274b10,'updatePosition':_0x557bdc};}const Ge=(0x0,x[_0x8b89eb(0x5ea)])(_0x1d3af5=>{const _0x5ee09d=_0x8b89eb;let {children:_0x19e55b,onPositionUpdate:_0x23cde7}=_0x1d3af5,_0x128034=(0x0,x[_0x5ee09d(0x747)])(null),_0x434b7c=(0x0,v[_0x5ee09d(0x4f9)])(A),_0x4dbad3=(0x0,v[_0x5ee09d(0x4f9)])(m[_0x5ee09d(0x6ec)]),_0x3ae965=(0x0,v['useObservable'])(_0x434b7c[_0x5ee09d(0x281)]),_0x539476=(0x0,x['useMemo'])(()=>_0x3ae965?_0x4dbad3[_0x5ee09d(0x2b0)](_0x3ae965[_0x5ee09d(0x4cd)]):null,[_0x3ae965,_0x4dbad3]),_0x59f48b=(0x0,x[_0x5ee09d(0x370)])(()=>{const _0x42632a=_0x5ee09d;var _0x28d4d0;return(_0x28d4d0=_0x539476==null?void 0x0:_0x539476[_0x42632a(0x272)])==null?null:_0x28d4d0;},[_0x539476]),{position:_0x3fc8fb,updatePosition:_0x3e7ef8}=We({'editingParams':_0x3ae965,'scene':_0x59f48b,'skeleton':(0x0,x[_0x5ee09d(0x370)])(()=>{const _0x3e770e=_0x5ee09d;var _0x377b1a,_0x3b0c79;return!_0x3ae965||!_0x539476||(_0x377b1a=(_0x3b0c79=_0x539476[_0x3e770e(0x6fa)](_[_0x3e770e(0x42c)])[_0x3e770e(0x579)](_0x3ae965[_0x3e770e(0x439)]))==null?void 0x0:_0x3b0c79[_0x3e770e(0x48e)])==null?null:_0x377b1a;},[_0x3ae965,_0x539476]),'getShapeTransform':(0x0,x[_0x5ee09d(0x53a)])(()=>{const _0x2f4ef5=_0x5ee09d;if(!_0x3ae965||!_0x59f48b)return null;let _0x51f82c=_0x3ae965['shapeKey'],_0x639b56=_0x59f48b[_0x2f4ef5(0x4ea)](_0x51f82c);return _0x639b56 instanceof H?{'left':_0x639b56[_0x2f4ef5(0x416)],'top':_0x639b56[_0x2f4ef5(0x324)],'width':_0x639b56[_0x2f4ef5(0x497)],'height':_0x639b56[_0x2f4ef5(0x560)],'angle':_0x639b56[_0x2f4ef5(0x42d)]}:null;},[_0x3ae965,_0x59f48b])}),_0x10854d=(0x0,x[_0x5ee09d(0x53a)])(()=>{const _0x4e4c8=_0x5ee09d;let _0x50446a=_0x128034[_0x4e4c8(0x74e)];_0x50446a&&(_0x50446a[_0x4e4c8(0x320)][_0x4e4c8(0x416)]=_0x3fc8fb[_0x4e4c8(0x416)]+'px',_0x50446a[_0x4e4c8(0x320)]['top']=_0x3fc8fb[_0x4e4c8(0x324)]+'px',_0x50446a[_0x4e4c8(0x320)][_0x4e4c8(0x497)]=_0x3fc8fb[_0x4e4c8(0x497)]+'px',_0x50446a[_0x4e4c8(0x320)][_0x4e4c8(0x560)]=_0x3fc8fb['height']+'px');},[_0x3fc8fb]);return(0x0,x[_0x5ee09d(0x249)])(()=>{const _0x3c55b9=_0x5ee09d;_0x10854d(),_0x23cde7==null||_0x23cde7({'width':_0x3fc8fb[_0x3c55b9(0x497)],'height':_0x3fc8fb[_0x3c55b9(0x560)],'scaleX':_0x3fc8fb[_0x3c55b9(0x2a3)],'scaleY':_0x3fc8fb[_0x3c55b9(0x45f)]});},[_0x3fc8fb,_0x10854d,_0x23cde7]),(0x0,x[_0x5ee09d(0x249)])(()=>{const _0x295215=_0x5ee09d;if(!_0x59f48b)return;let _0x59e29f=_0x59f48b[_0x295215(0x545)](m['SHEET_VIEWPORT_KEY'][_0x295215(0x2ab)]);if(!_0x59e29f)return;let _0x1d9a47=_0x59e29f['onScrollAfter$'][_0x295215(0x507)](()=>{_0x3e7ef8();});return()=>{_0x1d9a47['unsubscribe']();};},[_0x59f48b,_0x3e7ef8]),(0x0,x[_0x5ee09d(0x249)])(()=>{const _0x4d411c=_0x5ee09d;if(!_0x3ae965||!_0x59f48b)return;let _0x381f99=_0x3ae965[_0x4d411c(0x585)],_0x3bbd86=_0x59f48b[_0x4d411c(0x4ea)](_0x381f99);if(_0x3bbd86 instanceof H){let _0x46de20=_0x3bbd86['onTransformChange$']['subscribeEvent'](()=>{_0x3e7ef8();});return()=>{const _0x38d585=_0x4d411c;_0x46de20[_0x38d585(0x5aa)]();};}},[_0x3ae965,_0x59f48b,_0x3e7ef8]),(0x0,C[_0x5ee09d(0x45d)])(_0x5ee09d(0x308),{'ref':_0x128034,'data-u-comp':_0x5ee09d(0x310),'className':_0x5ee09d(0x49e),'style':(0x0,x['useMemo'])(()=>({'left':_0x3fc8fb[_0x5ee09d(0x416)],'top':_0x3fc8fb[_0x5ee09d(0x324)],'width':_0x3fc8fb[_0x5ee09d(0x497)],'height':_0x3fc8fb[_0x5ee09d(0x560)],'pointerEvents':_0x3ae965!=null&&_0x3ae965[_0x5ee09d(0x469)]?'auto':_0x5ee09d(0x347)}),[_0x3fc8fb,_0x3ae965==null?void 0x0:_0x3ae965['visible']]),'children':_0x19e55b});});Ge[_0x8b89eb(0x430)]='ShapePositionWrapper';const Ke=(0x0,x['memo'])(()=>{const _0x1ec543=_0x8b89eb;let _0x1147bf=(0x0,v['useObservable'])((0x0,v[_0x1ec543(0x4f9)])(A)['editingParams$']),[_0x370f8c,_0x4b4802]=(0x0,x[_0x1ec543(0x449)])({'width':0x64,'height':0x64,'scaleX':0x1,'scaleY':0x1}),_0x388738=(0x0,x[_0x1ec543(0x53a)])(_0x419f71=>{const _0x4d4bb0=_0x1ec543;_0x4b4802({'width':_0x419f71[_0x4d4bb0(0x497)],'height':_0x419f71['height'],'scaleX':_0x419f71['scaleX'],'scaleY':_0x419f71['scaleY']});},[]);return _0x1147bf!=null&&_0x1147bf[_0x1ec543(0x469)]?(0x0,C[_0x1ec543(0x45d)])(Ge,{'onPositionUpdate':_0x388738,'children':(0x0,C[_0x1ec543(0x45d)])(Be,{'containerWidth':_0x370f8c[_0x1ec543(0x497)],'containerHeight':_0x370f8c[_0x1ec543(0x560)],'scaleX':_0x370f8c['scaleX'],'scaleY':_0x370f8c[_0x1ec543(0x45f)]})}):null;});Ke[_0x8b89eb(0x430)]=_0x8b89eb(0x6ee);let $=class extends l[_0x8b89eb(0x49f)]{constructor(_0x5548ef=ke,_0x42397f,_0x261336,_0x41a7ee,_0x2e6a72){const _0x38673b=_0x8b89eb;super(),this[_0x38673b(0x227)]=_0x5548ef,this['_injector']=_0x42397f,this[_0x38673b(0x56d)]=_0x261336,this['_configService']=_0x41a7ee,this['_renderManagerService']=_0x2e6a72;let {..._0x3382a7}=(0x0,l[_0x38673b(0x6f2)])({},ke,this[_0x38673b(0x227)]);this['_configService'][_0x38673b(0x4d3)](Oe,_0x3382a7),this[_0x38673b(0x557)]();}[_0x8b89eb(0x410)](){const _0x574f07=_0x8b89eb;(0x0,l[_0x574f07(0x50a)])(this[_0x574f07(0x32f)],[[Te],[K],[G]]);}[_0x8b89eb(0x6e6)](){const _0xf04463=_0x8b89eb;[[Fe],[X],[Ie]][_0xf04463(0x291)](_0x58cc08=>this[_0xf04463(0x32f)][_0xf04463(0x3e0)](_0x58cc08)),(0x0,l[_0xf04463(0x50a)])(this[_0xf04463(0x32f)],[[Ie]]),this[_0xf04463(0x6b0)][_0xf04463(0x230)](l[_0xf04463(0x31f)][_0xf04463(0x699)],[Fe]),this[_0xf04463(0x6b0)][_0xf04463(0x230)](l['UniverInstanceType']['UNIVER_SHEET'],[X]),this['_renderManagerService'][_0xf04463(0x230)](l[_0xf04463(0x31f)][_0xf04463(0x699)],[Ae]),this[_0xf04463(0x6b0)][_0xf04463(0x230)](l[_0xf04463(0x31f)][_0xf04463(0x699)],[Re]),this[_0xf04463(0x6b0)][_0xf04463(0x230)](l['UniverInstanceType'][_0xf04463(0x699)],[Me]);}[_0x8b89eb(0x476)](){const _0x4f4741=_0x8b89eb;let _0x2b867c=this[_0x4f4741(0x32f)];_0x2b867c[_0x4f4741(0x302)](v[_0x4f4741(0x2a5)])[_0x4f4741(0x2e6)]('ShapeTextEditorContainer',Ke),[[Te],[K],[G],[A],[je],[de],[ze]][_0x4f4741(0x291)](_0x17d059=>_0x2b867c[_0x4f4741(0x3e0)](_0x17d059)),(0x0,l[_0x4f4741(0x50a)])(this['_injector'],[[Te],[K],[G],[A],[je],[de],[ze]]);}[_0x8b89eb(0x557)](){const _0x128dc4=_0x8b89eb;[Q,M,I,N,P,ee,F,L,R,te,Z]['forEach'](_0x2ac8a4=>this[_0x128dc4(0x37c)](this['_commandService']['registerCommand'](_0x2ac8a4)));}};k($,_0x8b89eb(0x50b),l[_0x8b89eb(0x31f)][_0x8b89eb(0x699)]),k($,_0x8b89eb(0x6a7),_0x8b89eb(0x2db)),k($,_0x8b89eb(0x681),Ee),k($,_0x8b89eb(0x4c1),De),$=W([(0x0,l[_0x8b89eb(0x465)])(w[_0x8b89eb(0x33d)],c[_0x8b89eb(0x2a2)]),U(0x1,(0x0,l['Inject'])(l[_0x8b89eb(0x4cb)])),U(0x2,l[_0x8b89eb(0x6d6)]),U(0x3,l[_0x8b89eb(0x464)]),U(0x4,m['IRenderManagerService'])],$),exports[_0x8b89eb(0x568)]=P,exports[_0x8b89eb(0x552)]=ee,exports[_0x8b89eb(0x26b)]=F,exports[_0x8b89eb(0x6f3)]=N,exports['SetShapeTextVerticalAlignCommand']=I,exports[_0x8b89eb(0x737)]=te,Object[_0x8b89eb(0x453)](exports,_0x8b89eb(0x527),{'enumerable':!0x0,'get':function(){return Te;}}),Object[_0x8b89eb(0x453)](exports,_0x8b89eb(0x5ed),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x8b89eb(0x668)]=M;