@univerjs-pro/sheets-shape-ui 1.0.0-beta.1 → 1.0.0-beta.2

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 (85) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/shape-sheet-copy-plan.d.ts +16 -0
  62. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +5 -4
  63. package/lib/types/controllers/ui.controller.d.ts +1 -2
  64. package/lib/types/index.d.ts +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +20 -20
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a57e9=_0x4a8a;(function(_0x5afab3,_0x322898){const _0x3121f5=_0x4a8a,_0x2911d3=_0x5afab3();while(!![]){try{const _0x43d3ab=parseInt(_0x3121f5(0x263))/0x1+parseInt(_0x3121f5(0x10c))/0x2*(parseInt(_0x3121f5(0x119))/0x3)+parseInt(_0x3121f5(0x143))/0x4*(-parseInt(_0x3121f5(0x365))/0x5)+parseInt(_0x3121f5(0x20b))/0x6*(-parseInt(_0x3121f5(0x1a8))/0x7)+parseInt(_0x3121f5(0x30e))/0x8+-parseInt(_0x3121f5(0x2e6))/0x9*(-parseInt(_0x3121f5(0x188))/0xa)+-parseInt(_0x3121f5(0x2ac))/0xb;if(_0x43d3ab===_0x322898)break;else _0x2911d3['push'](_0x2911d3['shift']());}catch(_0x558b35){_0x2911d3['push'](_0x2911d3['shift']());}}}(_0x2ae2,0x8d796));import{FormulaShapeAnimationController as _0xf4b281,SHAPE_CHANGE_PICKER_COMPONENT as _0x27ef7f,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x41e007,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x295cb8,ShapeEditPanel as _0x3b0964,ShapeFloatingToolbar as _0x9de617,ShapeFloatingToolbarService as _0x23dc66,ShapeFloatingToolbarToggleFactory as _0x5de80e,ShapeFormulaRibbonControl as _0x58ba9f,ShapeGroupEnum as _0x5254a4,ShapePickerDropdown as _0x4951a2,ShapePickerPanel as _0x55a6fc,ShapeQuickStyleGallery as _0xd337d7,ShapeStyleRibbonControl as _0x324497,ShapeTextEditorContainer as _0x15f4f4,ShapeTextFloatMenuRenderControllerBase as _0xc831bf,ShapeTextFloatToolbar as _0x2bc136,ShapeTextRibbonControl as _0x39ec8e,ToggleShapeFloatingToolbarOperation as _0x4879d7,UniverShapeEditorUIPlugin as _0x478c15,activateDrawingObject as _0x4d4798,buildShapeTextDataUpdate as _0x39d59f,clearActiveDrawingObjects as _0x4b95c2,drawFormulaShapeAnimationLayers as _0x3cbb8e,getDrawingTypeNameKey as _0x2a725c,getTextModel as _0x5702b3,getTextStyle as _0xf96880,normalizeShapeTextModel as _0x172b29,plainShapeTextToDocumentData as _0x109756,prepareShapeTextDocumentData as _0x3a9712,resolveFormulaShapeAutoFitSize as _0x38f6df,resolveShapeContextualRibbonHostMode as _0x1dcf15,resolveShapeTextDocumentRenderLayout as _0x507478,resolveShapeTextEditorBehaviorShapeData as _0x11b25b,resolveShapeTextEditorWrapStrategy as _0x15bc5a,shouldAllowShapeTextEditorHostSizeShrink as _0x5e39fb,shouldClipShapeTextDocument as _0x4b8f9a,useFormulaShapeToolbar as _0x34ed3a}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x3377c6,ContextMenuGroup as _0x5e36e3,ContextMenuPosition as _0x40b403,IMenuManagerService as _0x430f90,IRibbonService as _0xb3cad2,ISidebarService as _0xaf9369,IconManager as _0x5e4ceb,MenuItemType as _0x870bc4,MenuManagerPosition as _0x38bf7b,RibbonInsertGroup as _0x624e4b,UndoRedoGroupService as _0x59f03b,getMenuHiddenObservable as _0x472593,useDependency as _0x5ee9a9,useObservable as _0x263d75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x34939a,ImageSourceTypeEnum as _0x55a71c,ShapeArrowSizeEnum as _0x505688,ShapeArrowTypeEnum as _0xb46528,ShapeDefaultConfig as _0x496afe,ShapeFillEnum as _0x478734,ShapeLineTypeEnum as _0x14ebc6,ShapeModel as _0x300a94,ShapeRenderModeEnum as _0x15c78e,ShapeTypeEnum as _0x2d2111,computeConnectorRouteLayout as _0x3225ee,getBasicShapeRotateBound as _0x23a439,isConnectorShape as _0x3863ab,isCurvedConnectorShape as _0x338f6a,routeConnectorLineShape as _0x22ac34}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3f61b0,UniverShapeEditorPlugin as _0x1c59b7,applyQuickStyleToShapeData as _0x1c41c8,cloneShapeDataForType as _0x4ebde1,createShapeFormulaDocument as _0x1b2670,createShapeTextBoxShapeData as _0x294eed,getShapeQuickStylePreset as _0x36420e,getShapeQuickStyleType as _0x38830c,resolveActiveShapeQuickStylePresetId as _0x33cca3}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x2f0bb2,InsertSheetsShapeMutation as _0x3b9418,RemoveSheetsShapeMutation as _0x642eb,SetShapeDrawingDataCommand as _0x457236,SheetsShapeService as _0x434a53,ToggleSheetsShapeFlipCommand as _0x219c9d,UniverSheetsShapePlugin as _0x30de56,UpdateConnectorRelationCommand as _0x2a81d3,UpdateLineShapeResizeCommand as _0x569950,UpdateSheetsShapeDataMutation as _0x926363}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x292bd6,CommandType as _0x42d4f6,DependentOn as _0x2c3830,Disposable as _0x458cfa,DocumentDataModel as _0xa70116,DrawingTypeEnum as _0x3a939e,FOCUSING_COMMON_DRAWINGS as _0x4f1989,FOCUSING_SHAPE_TEXT_EDITOR as _0x5efdd2,HorizontalAlign as _0x59b547,ICommandService as _0x1b8f46,IConfigService as _0x7f334e,IContextService as _0x593690,IImageIoService as _0x2f32ce,IURLImageService as _0x5b58f3,IUndoRedoService as _0x43ae7b,IUniverInstanceService as _0x4b61f3,Inject as _0x236d5e,Injector as _0x8c9613,LocaleService as _0x1d78e7,Plugin as _0x50de7b,UniverInstanceType as _0x3d832c,VerticalAlign as _0x12d55d,createInternalEditorID as _0x5dbcda,generateRandomId as _0xa48e11,merge as _0x5e4367,toDisposable as _0x3ee632,touchDependencies as _0xaddeba}from'@univerjs/core';import{CopySheetCommand as _0x2bae38,RemoveSheetCommand as _0x12e6cd,SheetInterceptorService as _0x9bde8a,SheetPermissionCheckController as _0x2c3559,SheetSkeletonService as _0x3bd31c,SheetsSelectionsService as _0x17030f,UniverSheetsPlugin as _0x5e916d,WorkbookEditablePermission as _0x386d00,WorksheetEditPermission as _0x18e121,attachRangeWithCoord as _0x4da051,discreteRangeToRange as _0x2b7982,getSheetCommandTarget as _0x5a285c}from'@univerjs/sheets';import{IDrawingManagerService as _0x3398d1,SetDrawingSelectedOperation as _0x158934,UniverDrawingPlugin as _0x915f2c,getDrawingShapeKeyByDrawingSearch as _0x238087}from'@univerjs/drawing';import{CURSOR_TYPE as _0xee2861,Circle as _0x20c694,DRAWING_OBJECT_LAYER_INDEX as _0x5ad001,DocumentSkeleton as _0x5bc5b7,DocumentViewModel as _0x927fe0,Documents as _0x8ae97c,IRenderManagerService as _0xebded9,Image as _0x5621f4,RENDER_CLASS_TYPE as _0x2b860b,SHEET_VIEWPORT_KEY as _0x3bda53,Shape as _0x38cc74,Transform as _0x228916,UniverRenderEnginePlugin as _0x6f6e81,Vector2 as _0x1cc756}from'@univerjs/engine-render';import{COPY_TYPE as _0x1b2302,ISheetClipboardService as _0x21ba5b,PREDEFINED_HOOK_NAME as _0x375ec3,SheetCanvasPopManagerService as _0x5d6395,SheetPrintInterceptorService as _0x3dbf35,SheetScrollManagerService as _0x56e08d,SheetSkeletonManagerService as _0x2bd201,UniverSheetsUIPlugin as _0x13359c,deriveStateFromActiveSheet$ as _0x3c15b6,getCurrentRangeDisable$ as _0x5052c4,getViewportByCell as _0x56ed68}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x266901,EMPTY as _0x3b0f55,Observable as _0x96c1cf,map as _0x1e6cce,of as _0x36bcf9,startWith as _0x49a949,switchMap as _0x1990de}from'rxjs';import{DrawingCommonPanel as _0x31e0d1,DrawingImageClipService as _0x5ae22a,DrawingRenderService as _0xe6009a,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x5f0802,OBJECT_LIST_FLOATING_SECTION_ID as _0x182658,ObjectListPanelBase as _0x3b8f7e,UniverDrawingUIPlugin as _0x1d6e19,getCurrentUnitInfo as _0x31acf7,getObjectListPanelLabels as _0x5dfe29,getObjectListPanelSectionIdForDrawingType as _0x4c8a2b,getObjectListPanelTypeName as _0x5163f8,insertGroupObject as _0x1dfb81}from'@univerjs/drawing-ui';import{Fragment as _0x8b4743,jsx as _0x16ab0d,jsxs as _0x3ef962}from'react/jsx-runtime';import{DrawingApplyType as _0x40c976,ISheetDrawingService as _0x456a1c,RemoveSheetDrawingCommand as _0x475856,SetDrawingApplyMutation as _0x46897e,SetDrawingArrangeCommand as _0x2b3290,SetSheetDrawingCommand as _0x5613c7,UniverSheetsDrawingPlugin as _0x1297cb,transformToAxisAlignPosition as _0x2e83e9,transformToDrawingPosition as _0x15b6d5}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3cc57f}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x55f526,UniverDocsPlugin as _0x1ed1eb}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x5a3f85,DocSelectionRenderService as _0x240358,UniverDocsUIPlugin as _0xff5f03}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x5c8aef,SheetsDrawingGroupCopyPasteController as _0x12abb0,UniverSheetsDrawingUIPlugin as _0x52f323}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x4b6104,FlipHorizontalIcon as _0x30efc9,FlipVerticalIcon as _0x1612fb,MoveDownIcon as _0x5775eb,MoveUpIcon as _0x4ab29f,ObjectLayersIcon as _0x2546c5,ShapeFormatSettingIcon as _0x2b4e9a,TopmostIcon as _0x11f074}from'@univerjs/icons';import{memo as _0x42eeaf,useEffect as _0x219537,useMemo as _0xf2a45c,useReducer as _0x4911df,useState as _0x440ee1}from'react';function Zn(_0x2eba50,_0xa30fca){const _0x4b42c2=_0x4a8a;let _0x2e35ac={};for(let _0x5e016c of Object['keys'](_0xa30fca)){let _0x348816=_0xa30fca[_0x5e016c],_0x154961=_0x2eba50[_0x5e016c];if(_0x348816!==void 0x0){if(_0x154961===void 0x0){_0x2e35ac[_0x5e016c]=void 0x0;continue;}typeof _0x348816=='object'&&_0x348816&&!Array[_0x4b42c2(0x111)](_0x348816)&&typeof _0x154961==_0x4b42c2(0x368)&&_0x154961&&!Array[_0x4b42c2(0x111)](_0x154961)?_0x2e35ac[_0x5e016c]=Zn(_0x154961,_0x348816):_0x2e35ac[_0x5e016c]=_0x154961;}}return _0x2e35ac;}const Qn={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x1b9),'handler':(_0x3d71f2,_0x56418c)=>{const _0x2e5772=_0x1a57e9;let _0x5cde9c=_0x3d71f2[_0x2e5772(0x272)](_0x434a53),{unitId:_0x149961,subUnitId:_0x363eeb,shapeType:_0x545ea4,shapeId:_0x4abc95,shapeData:_0x5c9077,replaceShapeData:_0x8f2715,oldShapeJSON:_0xa6ae8c}=_0x56418c;if(!_0x5cde9c[_0x2e5772(0x29e)](_0x149961,_0x363eeb,_0x4abc95))return!0x1;let _0x3839cb=_0x3d71f2[_0x2e5772(0x272)](_0x1b8f46),_0x3491fc=_0x3d71f2['get'](_0x43ae7b),{oldShapeType:_0x58258e,oldShapeData:_0x2284af={}}=_0xa6ae8c,_0x5bf00a=_0x8f2715?_0x2284af:Zn(_0x2284af,_0x5c9077||{}),_0x3d33bc={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x545ea4,'shapeData':_0x5c9077,'replace':_0x8f2715}},_0x33cc09={'id':_0x926363['id'],'params':{'unitId':_0x149961,'subUnitId':_0x363eeb,'shapeId':_0x4abc95,'shapeType':_0x58258e,'shapeData':_0x5bf00a,'replace':_0x8f2715}};return _0x3839cb[_0x2e5772(0x297)](_0x3d33bc['id'],_0x3d33bc['params'])?(_0x3491fc[_0x2e5772(0x153)]({'unitID':_0x149961,'undoMutations':[_0x33cc09],'redoMutations':[_0x3d33bc]}),!0x0):!0x1;}};function $n(_0x133894,_0x4426b4,_0x5743cd,_0x1c0c4c,_0x5d7e7d,_0x225f70){const _0x28174a=_0x1a57e9;let _0xc9749e={'unitId':_0x4426b4,'subUnitId':_0x5743cd,'shapeId':_0x1c0c4c,'shapeData':_0x225f70,'oldShapeJSON':_0x5d7e7d};return _0x133894[_0x28174a(0x311)](Qn['id'],_0xc9749e);}function er(_0x1a2f1a,_0x5aad47,_0x196d65,_0x1626ad,_0x2ece04,_0x462c90){const _0x462861=_0x1a57e9;let _0x42d689={'unitId':_0x5aad47,'subUnitId':_0x196d65,'shapeId':_0x1626ad,'shapeData':_0x462c90,'oldShapeJSON':_0x2ece04};return _0x1a2f1a[_0x462861(0x311)](Qn['id'],_0x42d689);}function tr(_0x245222){'@babel/helpers - typeof';const _0x353775=_0x1a57e9;return tr=typeof Symbol==_0x353775(0xfa)&&typeof Symbol[_0x353775(0x190)]==_0x353775(0x1c5)?function(_0x30529d){return typeof _0x30529d;}:function(_0x5d43a1){const _0x19f5a5=_0x353775;return _0x5d43a1&&typeof Symbol==_0x19f5a5(0xfa)&&_0x5d43a1[_0x19f5a5(0x2fc)]===Symbol&&_0x5d43a1!==Symbol['prototype']?'symbol':typeof _0x5d43a1;},tr(_0x245222);}function nr(_0x2fff67,_0xbf1849){const _0x486775=_0x1a57e9;if(tr(_0x2fff67)!=_0x486775(0x368)||!_0x2fff67)return _0x2fff67;var _0x16dc24=_0x2fff67[Symbol['toPrimitive']];if(_0x16dc24!==void 0x0){var _0xce4ffa=_0x16dc24['call'](_0x2fff67,_0xbf1849||_0x486775(0x24d));if(tr(_0xce4ffa)!=_0x486775(0x368))return _0xce4ffa;throw TypeError(_0x486775(0x235));}return(_0xbf1849===_0x486775(0x371)?String:Number)(_0x2fff67);}function rr(_0x246aed){const _0x3652ce=_0x1a57e9;var _0x4cf070=nr(_0x246aed,_0x3652ce(0x371));return tr(_0x4cf070)==_0x3652ce(0x1c5)?_0x4cf070:_0x4cf070+'';}function Y(_0x1861fe,_0x2c9cf0,_0x4cf036){const _0x35bf29=_0x1a57e9;return(_0x2c9cf0=rr(_0x2c9cf0))in _0x1861fe?Object[_0x35bf29(0x319)](_0x1861fe,_0x2c9cf0,{'value':_0x4cf036,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1861fe[_0x2c9cf0]=_0x4cf036,_0x1861fe;}function ir(_0x2c7b64,_0x2ad47b,_0x101728){const _0x10fd0d=_0x1a57e9;let _0x2faf94=_0x11b25b(_0x2c7b64,{..._0x2ad47b,'dataModel':{..._0x2ad47b[_0x10fd0d(0x2c8)]??{},..._0x101728?{'doc':_0x101728}:null}}),_0x246b97=_0x15bc5a(_0x2faf94);return{'clip':_0x4b8f9a(_0x2faf94,_0x246b97),'wrapStrategy':_0x246b97};}var ar=class extends _0x38cc74{constructor(_0x2a2d65,_0x393d38){const _0x35bd38=_0x1a57e9;super(_0x2a2d65,_0x393d38),Y(this,'_props',void 0x0),Y(this,_0x35bd38(0x318),new _0xf4b281(()=>this[_0x35bd38(0x2bc)](!0x0),()=>this[_0x35bd38(0x284)]())),Y(this,_0x35bd38(0x13d),!0x0),Y(this,_0x35bd38(0x25f),_0x3a939e[_0x35bd38(0x35c)]),Y(this,'isDrawingObject',!0x0),this['_props']={..._0x393d38},this['_formulaAnimation'][_0x35bd38(0x21a)](_0x393d38[_0x35bd38(0x367)],_0x393d38[_0x35bd38(0x2b9)]!==!0x1),this['_init'](),this[_0x35bd38(0x284)]();}[_0x1a57e9(0x338)](){const _0x54d36f=_0x1a57e9;this[_0x54d36f(0x2b8)][_0x54d36f(0x18f)](_0x3b4254=>{const _0x2ee36f=_0x54d36f;this[_0x2ee36f(0x278)](_0x3b4254);});}[_0x1a57e9(0x2df)](_0x14110d){const _0x239e32=_0x1a57e9;this[_0x239e32(0x104)]['prstGeom']=_0x14110d;}['setEditing'](_0x3549bb){const _0x3dda2f=_0x1a57e9;this[_0x3dda2f(0x104)][_0x3dda2f(0x36f)]=_0x3549bb,this[_0x3dda2f(0x2bc)](!0x0);}['setFormulaPresentation'](_0x322b14,_0x44d8dd=!0x0){const _0x366576=_0x1a57e9;this[_0x366576(0x318)]['setPresentation'](_0x322b14,_0x44d8dd),this[_0x366576(0x104)]['formulaPresentation']=_0x322b14,this['_applyFormulaAutoFitSize'](),this[_0x366576(0x2bc)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x6f2c1c=_0x1a57e9;let _0x198309=this[_0x6f2c1c(0x104)]['shapeModel'],_0x3b4918=_0x198309[_0x6f2c1c(0x1a2)](),_0x4b9f99=_0x172b29(_0x3b4918==null?void 0x0:_0x3b4918['dataModel']),_0x43515d=_0x4b9f99==null?void 0x0:_0x4b9f99[_0x6f2c1c(0x197)],_0x1ef064=this[_0x6f2c1c(0x318)][_0x6f2c1c(0x32f)]();if(!_0x43515d||_0x1ef064['length']===0x0)return;_0x198309[_0x6f2c1c(0x216)]({'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]});let _0x1e15c4=_0x38f6df({'documentData':_0x1ef064[_0x6f2c1c(0x1a6)](_0x3b9007=>_0x1b2670(_0x43515d,_0x3b9007)),'height':this[_0x6f2c1c(0x2f9)],'shapeData':_0x198309[_0x6f2c1c(0x2c4)](),'textRect':_0x198309[_0x6f2c1c(0x16c)]({'left':0x0,'top':0x0,'width':this[_0x6f2c1c(0x1a3)],'height':this[_0x6f2c1c(0x2f9)]}),'width':this[_0x6f2c1c(0x1a3)]});if(_0x1e15c4){var _0xc1aace;this[_0x6f2c1c(0x2d9)](_0x1e15c4[_0x6f2c1c(0x1a3)],_0x1e15c4['height']),(_0xc1aace=this[_0x6f2c1c(0x183)]())==null||(_0xc1aace=_0xc1aace[_0x6f2c1c(0x1da)]())==null||_0xc1aace[_0x6f2c1c(0x2a2)]();}}get[_0x1a57e9(0x264)](){const _0x22b8c4=_0x1a57e9;return this[_0x22b8c4(0x104)]['unitId'];}get[_0x1a57e9(0x29a)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x225b0c){const _0x3ca25e=_0x1a57e9;if(this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)]==null||!this[_0x3ca25e(0x13d)])return;let {width:_0x4c4a40,height:_0x447924}=this,{width:_0x573b04=0x0,height:_0x2cf647=0x0}=_0x225b0c[_0x3ca25e(0x249)],{left:_0xc6d852=0x0,top:_0x1c118f=0x0,right:_0x3aba1c=0x0,bottom:_0x4b0f08=0x0}=this[_0x3ca25e(0x104)][_0x3ca25e(0x1cc)],_0x2c87cb=_0xc6d852,_0x547d27=_0x1c118f,_0x53daad=_0x3aba1c,_0x191563=_0x4b0f08,_0x2e624c=!0x1;if(_0x573b04!==0x0&&_0x573b04!==_0x4c4a40){let _0x2b6a78=_0xc6d852/_0x573b04,_0xe71aad=_0x3aba1c/_0x573b04;_0x2c87cb=_0x4c4a40*_0x2b6a78,_0x53daad=_0x4c4a40*_0xe71aad,_0x2e624c=!0x0;}if(_0x2cf647!==0x0&&_0x2cf647!==_0x447924){let _0x4e8401=_0x1c118f/_0x2cf647,_0x1cabbf=_0x4b0f08/_0x2cf647;_0x547d27=_0x447924*_0x4e8401,_0x191563=_0x447924*_0x1cabbf,_0x2e624c=!0x0;}_0x2e624c&&this[_0x3ca25e(0x1c9)]({'left':_0x2c87cb,'top':_0x547d27,'right':_0x53daad,'bottom':_0x191563});}[_0x1a57e9(0x1c9)](_0x4b0829){const _0x42ad11=_0x1a57e9;this[_0x42ad11(0x104)]['srcRect']=_0x4b0829,this[_0x42ad11(0x2bc)](!0x0);}[_0x1a57e9(0xf1)](_0x2b3392){const _0x261dd6=_0x1a57e9;this[_0x261dd6(0x104)]['image']=_0x2b3392,this[_0x261dd6(0x2bc)](!0x0);}set[_0x1a57e9(0x2b2)](_0x1387dd){this['_transform']=_0x1387dd;}get['transform'](){const _0x399f4b=_0x1a57e9;this[_0x399f4b(0x176)]||this[_0x399f4b(0x1f6)]();let _0x5595b3=this[_0x399f4b(0x176)][_0x399f4b(0x238)]();return this[_0x399f4b(0x34d)](_0x5595b3);}get['shapeModel'](){const _0x4a5f61=_0x1a57e9;return this[_0x4a5f61(0x104)]['shapeModel'];}get['shapeId'](){const _0x35fab7=_0x1a57e9;return this[_0x35fab7(0x104)][_0x35fab7(0x2e2)];}get[_0x1a57e9(0x142)](){return _0x2b860b['SHAPE'];}[_0x1a57e9(0x1f5)](_0x243659,_0x5e423a,_0x41f494,_0x5e5296){const _0x262d98=_0x1a57e9;let _0x34a5e6=this[_0x262d98(0x104)]['shapeModel'];if(!_0x34a5e6||!_0x5e423a)return;let _0x3aac4e=_0x41f494??this[_0x262d98(0x1a3)],_0x557e96=_0x5e5296??this[_0x262d98(0x2f9)],_0x3a2e5c={'shapeType':_0x34a5e6[_0x262d98(0x2b3)](),'width':_0x3aac4e,'height':_0x557e96},_0x18b8d5={'renderMode':_0x15c78e['Path'],'oKey':this['oKey'],'image':this[_0x262d98(0x104)]['image'],'angle':this[_0x262d98(0x10a)]};_0x34a5e6['updateContext'](_0x3a2e5c),_0x243659[_0x262d98(0x125)]();let _0x2c0489={'top':0x0,'left':0x0,'width':_0x3aac4e,'height':_0x557e96},_0xefc284=_0x34a5e6['getDrawingEffectBounds'](_0x2c0489);_0xefc284?this[_0x262d98(0x20f)](_0x243659,_0xefc284,_0x49028d=>{const _0x309b88=_0x262d98;_0x34a5e6[_0x309b88(0x25b)](_0x49028d,_0x2c0489,_0x18b8d5);}):(this['_releaseRenderCache'](),_0x34a5e6['render'](_0x243659,_0x2c0489,_0x18b8d5)),_0x243659[_0x262d98(0x1a5)]();let _0x307bc5=_0x34a5e6['getShapeTextData'](),_0x50d9c9=_0x34a5e6['getShapeTextRect'](_0x2c0489),_0x56dd2a=_0x34a5e6[_0x262d98(0x2e0)]();if(_0x307bc5&&_0x50d9c9&&!_0x56dd2a){_0x243659[_0x262d98(0x125)](),this[_0x262d98(0x2ad)]()[_0x262d98(0xfd)]&&_0x243659['scale'](-0x1,0x1);let _0x40fdbd=_0x3aac4e/0x2,_0x32f3da=_0x557e96/0x2;_0x243659['translate'](-_0x40fdbd,-_0x32f3da),_0x243659[_0x262d98(0x16b)](),this[_0x262d98(0x1e8)](_0x243659,_0x307bc5,_0x50d9c9),_0x243659[_0x262d98(0x1a5)]();}}['getDrawingPoints'](_0x50d9db){}[_0x1a57e9(0x1e8)](_0x2ce260,_0x1e4585,_0x483939){const _0x2be608=_0x1a57e9;var _0x403ea6;this[_0x2be608(0x104)][_0x2be608(0x36f)]||(!((_0x403ea6=_0x1e4585[_0x2be608(0x2c8)])!=null&&_0x403ea6[_0x2be608(0x197)])&&_0x2be608(0x33c)in _0x1e4585&&_0x1e4585[_0x2be608(0x33c)]===!0x1?this['_drawSimpleText'](_0x2ce260,_0x1e4585,_0x483939):this[_0x2be608(0x1ba)](_0x2ce260,_0x1e4585,_0x483939));}[_0x1a57e9(0x1b4)](_0x41abca,_0xa96e50,_0x3f29fd){const _0x3cc8b5=_0x1a57e9;this[_0x3cc8b5(0x1ba)](_0x41abca,{..._0xa96e50,'text':_0xa96e50[_0x3cc8b5(0x164)]??'','dataModel':{'doc':_0x109756(_0xa96e50,_0x3cc8b5(0x36c)+this['oKey'])}},_0x3f29fd);}[_0x1a57e9(0x1ba)](_0xf92455,_0x1a6d6d,_0x59026d){const _0x1d6575=_0x1a57e9;_0x3cbb8e(_0xf92455,this[_0x1d6575(0x318)],(_0x528b2b,_0x31f806)=>{const _0x3842b2=_0x1d6575;this[_0x3842b2(0x291)](_0x528b2b,_0x1a6d6d,_0x59026d,_0x31f806);});}[_0x1a57e9(0x291)](_0x1834cb,_0x2c1758,_0x2414ca,_0x399c27){const _0x11e2ba=_0x1a57e9;let _0x3d4479=this[_0x11e2ba(0x104)][_0x11e2ba(0x2a1)];if(!_0x2c1758[_0x11e2ba(0x2c8)]||!_0x3d4479)return;let _0x39e695=_0x172b29(_0x2c1758['dataModel']);if(!_0x39e695)return;let _0x280d20=_0x39e695[_0x11e2ba(0x197)];if(!_0x280d20)return;let _0x78e58a=_0x1b2670(_0x280d20,_0x399c27),_0x2b65d7=_0x39e695['va']??_0x12d55d[_0x11e2ba(0x2eb)],_0x59c75c=_0x39e695['ha']??_0x59b547['LEFT'],_0x36202b=ir(this[_0x11e2ba(0x104)][_0x11e2ba(0x31f)][_0x11e2ba(0x2c4)](),_0x2c1758,_0x78e58a),_0x2f0cb2=_0x2c1758[_0x11e2ba(0x260)],_0xe52a2c=new _0xa70116(_0x3a9712(_0x78e58a,{'isHorizontal':_0x2f0cb2!==!0x1,'textRect':_0x2414ca,'verticalAlign':_0x2b65d7,'horizontalAlign':_0x59c75c,'wrapStrategy':_0x36202b[_0x11e2ba(0x13e)]})),_0x3806c6=new _0x927fe0(_0xe52a2c),_0x22789a=_0x5bc5b7[_0x11e2ba(0x296)](_0x3806c6,_0x3d4479);_0x22789a['calculate']();let _0x43ae7e=_0x22789a[_0x11e2ba(0x21f)]()[_0x11e2ba(0x137)],_0x383884=_0x507478({'contentHeight':_0x43ae7e,'verticalAlign':_0x2b65d7,'viewportHeight':_0x2414ca['height']});_0xe52a2c[_0x11e2ba(0x1e7)]({'pageSize':{'width':_0x2f0cb2===!0x1?_0x2414ca[_0x11e2ba(0x2f9)]:_0x2414ca[_0x11e2ba(0x1a3)],'height':_0x383884[_0x11e2ba(0x14a)]}}),_0xe52a2c[_0x11e2ba(0x2f5)]({'t':_0x383884[_0x11e2ba(0x288)]}),_0x22789a[_0x11e2ba(0x12d)]();let _0x442e9a=new _0x8ae97c(_0x11e2ba(0x229)+this['oKey'],_0x22789a,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x11e2ba(0x2bc)](!0x0)});_0x442e9a['resize'](_0x2414ca['width'],_0x383884[_0x11e2ba(0x14a)]),_0x1834cb[_0x11e2ba(0x125)](),_0x1834cb['translateWithPrecision'](_0x2414ca['left'],_0x2414ca[_0x11e2ba(0x333)]),_0x36202b[_0x11e2ba(0x108)]&&(_0x1834cb[_0x11e2ba(0x16b)](),_0x1834cb[_0x11e2ba(0x1b1)](0x0,_0x383884[_0x11e2ba(0x1f3)],_0x2414ca[_0x11e2ba(0x1a3)],_0x383884[_0x11e2ba(0x25a)]),_0x1834cb[_0x11e2ba(0x108)]()),_0x383884['contentVerticalOffset']&&_0x1834cb[_0x11e2ba(0xe9)](0x0,_0x383884[_0x11e2ba(0x35d)]),_0x442e9a[_0x11e2ba(0x1aa)](_0x1834cb),_0x1834cb['restore'](),_0x442e9a['dispose'](),_0x22789a['dispose'](),_0x3806c6[_0x11e2ba(0x32d)](),_0xe52a2c[_0x11e2ba(0x32d)]();}[_0x1a57e9(0x25b)](_0x433f63,_0x18256e,_0x248175=!0x1){const _0x38fbda=_0x1a57e9;if(!this[_0x38fbda(0x285)])return this[_0x38fbda(0x2bc)](!0x1),this;let {width:_0x37d05b,height:_0x45066c,left:_0x51a018,top:_0x434a27}=this,_0x9dbbe7=this[_0x38fbda(0x1f4)]();if(_0x37d05b=_0x9dbbe7[_0x38fbda(0x1a3)],_0x45066c=_0x9dbbe7[_0x38fbda(0x2f9)],_0x51a018=_0x9dbbe7[_0x38fbda(0x257)],_0x434a27=_0x9dbbe7[_0x38fbda(0x333)],this['isRender'](_0x18256e)){let {top:_0x204afd,left:_0x209c10,bottom:_0x221ff7,right:_0x2fa5fa}=_0x18256e[_0x38fbda(0x310)];if(_0x37d05b+this[_0x38fbda(0x2af)]+_0x51a018<_0x209c10||_0x2fa5fa<_0x51a018||_0x45066c+this[_0x38fbda(0x2af)]+_0x434a27<_0x204afd||_0x221ff7<_0x434a27)return this;}let _0x12d390=_0x51a018+_0x37d05b/0x2,_0x53e810=_0x434a27+_0x45066c/0x2,_0x546f62=this[_0x38fbda(0x2b2)][_0x38fbda(0x16d)]();if(this[_0x38fbda(0x104)][_0x38fbda(0x36f)]){let _0x28bc85=this['getState'](),_0x363ab0=new _0x228916();_0x363ab0[_0x38fbda(0x1e3)]({..._0x28bc85}),_0x546f62=_0x363ab0[_0x38fbda(0x16d)]();}return _0x433f63[_0x38fbda(0x125)](),this[_0x38fbda(0x104)]['shapeModel']['isRenderLinePointsMode']===!0x0||_0x433f63[_0x38fbda(0x2b2)](_0x546f62[0x0],_0x546f62[0x1],_0x546f62[0x2],_0x546f62[0x3],_0x12d390,_0x53e810),this['_draw'](_0x433f63,_0x18256e,_0x37d05b,_0x45066c),_0x433f63[_0x38fbda(0x1a5)](),this[_0x38fbda(0x2bc)](!0x1),this;}['getInverseCoord'](_0x31662c){const _0xed5966=_0x1a57e9;let {left:_0x2fb674,top:_0x267934,width:_0x3ed134,height:_0x3db44e}=this['getRealBound'](),_0xa94b8e=this['transform'][_0xed5966(0x16d)](),_0x15315f=_0x2fb674+_0x3ed134/0x2,_0x313c68=_0x267934+_0x3db44e/0x2,_0x323b27=new _0x228916([_0xa94b8e[0x0],_0xa94b8e[0x1],_0xa94b8e[0x2],_0xa94b8e[0x3],_0x15315f,_0x313c68]),_0x4e0e99=this[_0xed5966(0x208)]();return(this[_0xed5966(0x30f)]&&(_0x4e0e99==null?void 0x0:_0x4e0e99['classType'])===_0x2b860b[_0xed5966(0x14c)]?_0x4e0e99[_0xed5966(0xff)][_0xed5966(0x348)](_0x323b27):_0x323b27)[_0xed5966(0x1c0)]()[_0xed5966(0x1f7)](_0x31662c);}[_0x1a57e9(0x28d)](_0x36da8a){const _0x479fa4=_0x1a57e9;let {left:_0x164c4d,top:_0x55eb28,width:_0x43fdc6,height:_0x2e38af}=this['getRealBound'](),_0x101439=_0x164c4d+_0x43fdc6/0x2,_0x245969=_0x55eb28+_0x2e38af/0x2,_0x5cd2d4=this[_0x479fa4(0x2b2)][_0x479fa4(0x16d)](),_0x23ae96=new _0x228916([_0x5cd2d4[0x0],_0x5cd2d4[0x1],_0x5cd2d4[0x2],_0x5cd2d4[0x3],_0x101439,_0x245969]),_0x58084c=this['getParent'](),_0x22a0d8=(this[_0x479fa4(0x30f)]&&(_0x58084c==null?void 0x0:_0x58084c['classType'])===_0x2b860b['GROUP']?_0x58084c[_0x479fa4(0xff)][_0x479fa4(0x348)](_0x23ae96):_0x23ae96)['invert']()[_0x479fa4(0x1f7)](_0x36da8a),_0x370ea6=_0x43fdc6/0x2,_0x4e357b=_0x2e38af/0x2,_0x336b65=this[_0x479fa4(0x104)]['shapeModel'];return _0x336b65&&_0x336b65[_0x479fa4(0x2e0)]()?_0x336b65[_0x479fa4(0x11c)](_0x22a0d8['x'],_0x22a0d8['y'],_0x43fdc6,_0x2e38af):_0x22a0d8['x']>=-_0x370ea6-this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['x']<=_0x370ea6+this[_0x479fa4(0x2af)]/0x2&&_0x22a0d8['y']>=-_0x4e357b-this['strokeWidth']/0x2&&_0x22a0d8['y']<=_0x4e357b+this['strokeWidth']/0x2;}['dispose'](){const _0x5acea6=_0x1a57e9;this['_formulaAnimation'][_0x5acea6(0x32d)](),this['_props'][_0x5acea6(0x31f)]=null,super[_0x5acea6(0x32d)]();}},or=class extends _0x38cc74{constructor(_0x3ad8cd,_0xf9869f){const _0x12c941=_0x1a57e9;super(_0x3ad8cd,_0xf9869f),Y(this,_0x12c941(0x29f),null),Y(this,_0x12c941(0x1fb),null),Y(this,_0x12c941(0xec),null),Y(this,_0x12c941(0x283),null),_0xf9869f&&this[_0x12c941(0x2cd)](_0xf9869f);}[_0x1a57e9(0x2e8)](){const _0x580e2c=_0x1a57e9;return{'unitId':this[_0x580e2c(0xec)],'subUnitId':this[_0x580e2c(0x283)],'drawingId':this[_0x580e2c(0x29f)]};}[_0x1a57e9(0x2cd)](_0x37bec1){const _0x25eb80=_0x1a57e9;_0x37bec1[_0x25eb80(0x2e2)]!==void 0x0&&(this['_shapeId']=_0x37bec1[_0x25eb80(0x2e2)]),_0x37bec1[_0x25eb80(0x18a)]!==void 0x0&&(this['_adjName']=_0x37bec1[_0x25eb80(0x18a)]),_0x37bec1['unitId']!==void 0x0&&(this[_0x25eb80(0xec)]=_0x37bec1[_0x25eb80(0x264)]),_0x37bec1['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x37bec1['subUnitId']),this[_0x25eb80(0x20e)]({'width':_0x37bec1[_0x25eb80(0x1a3)],'height':_0x37bec1[_0x25eb80(0x2f9)]});}['_draw'](_0x1a5c4f){const _0x197b3f=_0x1a57e9;_0x20c694[_0x197b3f(0x2e4)](_0x1a5c4f,{'radius':_0x496afe[_0x197b3f(0x373)],'fill':_0x496afe['adjHandleFill'],'stroke':_0x496afe[_0x197b3f(0x25d)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x5c0193,_0x45be31){return function(_0x3d6a11,_0x223797){_0x45be31(_0x3d6a11,_0x223797,_0x5c0193);};}function Z(_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2){const _0x1522a5=_0x1a57e9;var _0x2e3903=arguments[_0x1522a5(0x321)],_0x20358e=_0x2e3903<0x3?_0x1995ae:_0x3658d2===null?_0x3658d2=Object[_0x1522a5(0x110)](_0x1995ae,_0x5d3ce1):_0x3658d2,_0x595364;if(typeof Reflect==_0x1522a5(0x368)&&typeof Reflect[_0x1522a5(0x308)]==_0x1522a5(0xfa))_0x20358e=Reflect[_0x1522a5(0x308)](_0x537931,_0x1995ae,_0x5d3ce1,_0x3658d2);else{for(var _0x37f834=_0x537931['length']-0x1;_0x37f834>=0x0;_0x37f834--)(_0x595364=_0x537931[_0x37f834])&&(_0x20358e=(_0x2e3903<0x3?_0x595364(_0x20358e):_0x2e3903>0x3?_0x595364(_0x1995ae,_0x5d3ce1,_0x20358e):_0x595364(_0x1995ae,_0x5d3ce1))||_0x20358e);}return _0x2e3903>0x3&&_0x20358e&&Object[_0x1522a5(0x319)](_0x1995ae,_0x5d3ce1,_0x20358e),_0x20358e;}let Q=class extends _0x458cfa{constructor(_0x5bfd70,_0x13b8bf,_0xaedead,_0x1c89b5,_0x46c4f6,_0x221e76){const _0x2691e2=_0x1a57e9;super(),this[_0x2691e2(0x218)]=_0x5bfd70,this[_0x2691e2(0x35e)]=_0x13b8bf,this[_0x2691e2(0x15b)]=_0xaedead,this[_0x2691e2(0x1ab)]=_0x1c89b5,this[_0x2691e2(0x1f1)]=_0x46c4f6,this[_0x2691e2(0x1fe)]=_0x221e76,Y(this,_0x2691e2(0x20d),new Map()),this[_0x2691e2(0x2db)](this[_0x2691e2(0x1fe)]['presentationChanged$']['subscribe'](_0x25dc9b=>{const _0x2018c1=_0x2691e2;var _0x26229f;(_0x26229f=this[_0x2018c1(0x20d)][_0x2018c1(0x272)](this[_0x2018c1(0x17c)](_0x25dc9b['unitId'],_0x25dc9b[_0x2018c1(0x29a)],_0x25dc9b[_0x2018c1(0x2e2)])))==null||_0x26229f['forEach'](_0x192567=>_0x192567[_0x2018c1(0x267)](_0x25dc9b['presentation'],_0x25dc9b[_0x2018c1(0x1d1)]));})),this[_0x2691e2(0x2db)](this[_0x2691e2(0x218)][_0x2691e2(0x10f)][_0x2691e2(0x23b)](_0x1559f2=>{const _0x4bd404=_0x2691e2;_0x1559f2[_0x4bd404(0x21e)](_0x49391f=>{const _0x1a05a8=_0x4bd404;this[_0x1a05a8(0x1fe)][_0x1a05a8(0x326)]({'unitId':_0x49391f[_0x1a05a8(0x264)],'subUnitId':_0x49391f['subUnitId'],'shapeId':_0x49391f[_0x1a05a8(0x175)]}),this[_0x1a05a8(0x20d)][_0x1a05a8(0x152)](this[_0x1a05a8(0x17c)](_0x49391f['unitId'],_0x49391f[_0x1a05a8(0x29a)],_0x49391f[_0x1a05a8(0x175)]));});}));}[_0x1a57e9(0x221)](_0x801a86,_0x428f97,_0x31d9c0){const _0x19ac89=_0x1a57e9;let {transform:_0x514bf5,drawingType:_0x59c838,srcRect:_0xb88ed7,prstGeom:_0x201807,groupId:_0x3c2071,unitId:_0x4d26b9,subUnitId:_0x15c767,drawingId:_0x4307c5,isMultiTransform:_0xc0f0d2,transforms:_0x33ee01,hidden:_0x21107e,selectable:_0x1bf6be}=_0x801a86;if(_0x59c838!==_0x3a939e['DRAWING_SHAPE']||!this[_0x19ac89(0x218)]['getDrawingVisible']()||_0x514bf5==null)return;let _0x5e3228=this[_0x19ac89(0x218)]['getDrawingEditable']();_0x5e3228&&_0x428f97['initTransformer'](_0x41e007);let _0x1c849e=_0xc0f0d2&&_0x33ee01?_0x33ee01:[_0x514bf5],_0x360982=[];for(let _0x47381a of _0x1c849e){let {left:_0x31d9f1,top:_0x5eeb94,width:_0x20e625,height:_0x1f3a40,angle:_0x9890bd,flipX:_0xe35412,flipY:_0xa4d99f,skewX:_0x52b555,skewY:_0x37546a}=_0x47381a,_0x2ae09b=_0x1c849e['indexOf'](_0x47381a),_0x3162e7=_0x238087({'unitId':_0x4d26b9,'subUnitId':_0x15c767,'drawingId':_0x4307c5},_0xc0f0d2?_0x2ae09b:void 0x0),_0x186878=_0x428f97[_0x19ac89(0x14f)](_0x3162e7);if(_0x186878!=null){let _0x12afde={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x186878 instanceof ar&&this['refreshFormulaPresentation'](_0x186878,_0x12afde),_0x186878[_0x19ac89(0x20e)]({'left':_0x31d9f1,'top':_0x5eeb94,'width':_0x20e625,'height':_0x1f3a40,'angle':_0x9890bd,'flipX':_0xe35412,'flipY':_0xa4d99f,'skewX':_0x52b555,'skewY':_0x37546a});continue;}let _0x4df47a=this[_0x19ac89(0x218)]['getDrawingOrder'](_0x4d26b9,_0x15c767),_0x41e471=_0x4df47a[_0x19ac89(0x2fb)](_0x4307c5);if(_0x428f97[_0x19ac89(0x14f)](_0x3162e7)||!this[_0x19ac89(0x218)][_0x19ac89(0x27c)]())continue;let _0x38ede6=this['_sheetsShapeService']['getShapeModel'](_0x4d26b9,_0x15c767,_0x4307c5);if(!_0x38ede6)continue;let _0x22b25e=_0x3863ab(_0x38ede6[_0x19ac89(0x2b3)]()),_0x20e82a=_0x38ede6[_0x19ac89(0x2c4)]()[_0x19ac89(0x192)],_0x4b72c9={'unitId':_0x4d26b9,'subUnitId':_0x15c767,'shapeId':_0x4307c5};_0x20e82a&&this[_0x19ac89(0x1fe)][_0x19ac89(0x168)](_0x4b72c9,_0x20e82a);let _0x343ed1=new ar(_0x3162e7,{..._0x22b25e?{..._0x47381a,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x47381a},'zIndex':_0x41e471===-0x1?_0x4df47a['length']-0x1:_0x41e471,'shapeModel':_0x38ede6,'localeService':this[_0x19ac89(0x15b)],'shapeId':_0x4307c5,'unitId':_0x4d26b9,'subUnitId':_0x15c767,'visible':_0x21107e!==!0x0,'evented':_0x1bf6be!==!0x1,'formulaPresentation':_0x20e82a?this[_0x19ac89(0x1fe)]['getPresentation'](_0x4b72c9):void 0x0,'animateFormulaPresentation':(_0x20e82a==null?void 0x0:_0x20e82a['animationEnabled'])!==!0x1});if(_0x20e82a){let _0x518992=this[_0x19ac89(0x17c)](_0x4d26b9,_0x15c767,_0x4307c5),_0x1ccf3a=this[_0x19ac89(0x20d)][_0x19ac89(0x272)](_0x518992)??new Set();_0x1ccf3a[_0x19ac89(0x18e)](_0x343ed1),this['_formulaShapes'][_0x19ac89(0x181)](_0x518992,_0x1ccf3a);}_0x428f97[_0x19ac89(0x199)](_0x343ed1,_0x5ad001),_0x5e3228&&_0x428f97[_0x19ac89(0x2f3)](_0x343ed1),_0x3c2071&&_0x1dfb81({'drawingId':_0x3c2071,'unitId':_0x4d26b9,'subUnitId':_0x15c767},_0x343ed1,_0x428f97,this[_0x19ac89(0x218)]),_0x201807!=null&&_0x343ed1[_0x19ac89(0x2df)](_0x201807),_0xb88ed7!=null&&_0x343ed1[_0x19ac89(0x1c9)](_0xb88ed7);let _0x14ffe7=this[_0x19ac89(0xfc)](_0x343ed1,_0x38ede6[_0x19ac89(0x2c4)]());if(_0x14ffe7){var _0x33012d;_0x31d9c0==null||(_0x33012d=_0x31d9c0[_0x19ac89(0x30b)])==null||_0x33012d[_0x19ac89(0x18e)](_0x14ffe7);}_0x360982['push'](_0x343ed1);}return _0x360982;}[_0x1a57e9(0x17c)](_0x3f6431,_0x31faf2,_0x5a8cb7){return _0x3f6431+'\x00'+_0x31faf2+'\x00'+_0x5a8cb7;}[_0x1a57e9(0x194)](_0x3d69f3,_0xeb6296){const _0x3578b0=_0x1a57e9;let _0x34af27=this[_0x3578b0(0x35e)][_0x3578b0(0x29e)](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296['shapeId']),_0x20f67a=_0x34af27==null?void 0x0:_0x34af27[_0x3578b0(0x2c4)]()[_0x3578b0(0x192)],_0x694ace=this['_formulaKey'](_0xeb6296[_0x3578b0(0x264)],_0xeb6296[_0x3578b0(0x29a)],_0xeb6296[_0x3578b0(0x2e2)]);if(_0x20f67a){this[_0x3578b0(0x1fe)][_0x3578b0(0x168)](_0xeb6296,_0x20f67a);let _0x25bc2f=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace)??new Set();_0x25bc2f['add'](_0x3d69f3),this[_0x3578b0(0x20d)][_0x3578b0(0x181)](_0x694ace,_0x25bc2f);}else{var _0xd47868;this[_0x3578b0(0x1fe)]['unregister'](_0xeb6296),(_0xd47868=this['_formulaShapes'][_0x3578b0(0x272)](_0x694ace))==null||_0xd47868['delete'](_0x3d69f3);}_0x3d69f3['setFormulaPresentation'](_0x20f67a?this[_0x3578b0(0x1fe)][_0x3578b0(0x292)](_0xeb6296):void 0x0,(_0x20f67a==null?void 0x0:_0x20f67a['animationEnabled'])!==!0x1);}[_0x1a57e9(0x360)](_0x526678){const _0x2ae14d=_0x1a57e9;let _0x30c75c=_0x526678[_0x2ae14d(0x31f)][_0x2ae14d(0x2c4)](),_0x4dc59c=_0x30c75c['fill'];if(!_0x4dc59c||_0x4dc59c[_0x2ae14d(0x2b1)]!==_0x478734[_0x2ae14d(0x1e1)]||!_0x4dc59c[_0x2ae14d(0x22f)]){_0x526678[_0x2ae14d(0xf1)](void 0x0);return;}this['_loadShapePictureFill'](_0x526678,_0x30c75c);}[_0x1a57e9(0xfc)](_0x56503b,_0x3cac05){const _0x54a657=_0x1a57e9;let _0x19392c=_0x3cac05['fill'];if(!_0x19392c||_0x19392c['fillType']!==_0x478734[_0x54a657(0x1e1)]||!_0x19392c[_0x54a657(0x22f)])return;let _0x322809=_0x19392c[_0x54a657(0x22f)],_0x13dc69=_0x19392c['fillImageSourceType']??_0x55a71c[_0x54a657(0x29d)],_0x1f43ab=this[_0x54a657(0x1ab)]['getImageSourceCache'](_0x322809,_0x13dc69);if(_0x1f43ab){_0x56503b[_0x54a657(0xf1)](_0x1f43ab);return;}return this[_0x54a657(0x148)](_0x56503b,_0x322809,_0x13dc69);}async[_0x1a57e9(0x148)](_0x430c43,_0x35cd5c,_0x4bf52c){const _0x446d6a=_0x1a57e9;let _0x19e509;try{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x27f)])_0x19e509=await this[_0x446d6a(0x1ab)][_0x446d6a(0x1b6)](_0x35cd5c);else{if(_0x4bf52c===_0x55a71c[_0x446d6a(0x29d)])try{_0x19e509=await this[_0x446d6a(0x1f1)][_0x446d6a(0x1b6)](_0x35cd5c);}catch{_0x19e509=_0x35cd5c;}else _0x19e509=_0x35cd5c;}}catch(_0x197103){console['error'](_0x446d6a(0x15c),_0x197103);return;}await new Promise(_0x3bc5b3=>{const _0x4d06b1=_0x446d6a;let _0x35baa3=new window[(_0x4d06b1(0x277))]();_0x35baa3['onload']=()=>{const _0x1401af=_0x4d06b1;this[_0x1401af(0x1ab)]['addImageSourceCache'](_0x35cd5c,_0x4bf52c,_0x35baa3),_0x430c43[_0x1401af(0xf1)](_0x35baa3),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x178)]=()=>{const _0x5cddf8=_0x4d06b1;console[_0x5cddf8(0x1fc)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x35cd5c),_0x3bc5b3();},_0x35baa3[_0x4d06b1(0x32a)]=_0x19e509;});}};Q=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0x1d78e7)),X(0x3,_0x2f32ce),X(0x4,_0x5b58f3),X(0x5,_0x236d5e(_0x3f61b0))],Q);let sr=class extends _0x458cfa{constructor(_0x586b28,_0x466400,_0x5ae22d,_0x1a3f07,_0x18641d,_0x3c37f5){const _0x40f5f7=_0x1a57e9;super(),this[_0x40f5f7(0x218)]=_0x586b28,this[_0x40f5f7(0x35e)]=_0x466400,this[_0x40f5f7(0x12c)]=_0x5ae22d,this['_sheetDrawingShapeRenderController']=_0x1a3f07,this['_univerInstanceService']=_0x18641d,this[_0x40f5f7(0x27a)]=_0x3c37f5,Y(this,_0x40f5f7(0x1c7),null),Y(this,_0x40f5f7(0xec),null),Y(this,'_subUnitId',null),Y(this,_0x40f5f7(0x12e),void 0x0),Y(this,_0x40f5f7(0x243),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x40f5f7(0x363),0x0),Y(this,'_baseShapeWidth',0x0),Y(this,_0x40f5f7(0x118),0x0),Y(this,_0x40f5f7(0x328),!0x1),Y(this,_0x40f5f7(0x35f),void 0x0),Y(this,_0x40f5f7(0x295),void 0x0),Y(this,_0x40f5f7(0x2a6),void 0x0),Y(this,'_adjHandlerPointerUp',void 0x0),Y(this,_0x40f5f7(0xe7),!0x1),this[_0x40f5f7(0x180)](),this[_0x40f5f7(0x287)]();}[_0x1a57e9(0x209)](_0x17a0fc,_0x432d59,_0x229275){const _0x245478=_0x1a57e9;let _0x37247a=this[_0x245478(0x35e)][_0x245478(0x29e)](_0x17a0fc,_0x432d59,_0x229275);if(_0x37247a)return _0x37247a[_0x245478(0x18d)]();}[_0x1a57e9(0x2bb)](){const _0x203871=_0x1a57e9;this[_0x203871(0x32c)]();}[_0x1a57e9(0x270)](){const _0x668d96=_0x1a57e9;this[_0x668d96(0x24b)](!0x0);}[_0x1a57e9(0x274)](_0x2a4350){this['_isShouldShowDrawingShapeAdjust']=_0x2a4350;}[_0x1a57e9(0x2da)](_0x1c824b,_0x5cdb8d,_0x1872a1,_0x41c8e8){const _0x271077=_0x1a57e9;let _0xcf7d1f=this[_0x271077(0x35e)][_0x271077(0x29e)](_0x1c824b,_0x5cdb8d,_0x1872a1);if(_0xcf7d1f)return _0xcf7d1f[_0x271077(0x261)](_0x41c8e8);}[_0x1a57e9(0x364)](_0x635bff=!0x1){const _0xf620b1=_0x1a57e9;if(this[_0xf620b1(0xec)]===null||this[_0xf620b1(0x283)]===null||this[_0xf620b1(0x1c7)]===null)return;let _0x51d4ea=this['_renderManagerService'][_0xf620b1(0x174)](this[_0xf620b1(0xec)]);if(!_0x51d4ea||!_0x51d4ea['with'](_0x2bd201)[_0xf620b1(0x16a)]())return;let {scene:_0xff0c0a}=_0x51d4ea,_0x342759={'unitId':this[_0xf620b1(0xec)],'subUnitId':this[_0xf620b1(0x283)],'drawingId':this[_0xf620b1(0x1c7)]},_0x40dd22=this[_0xf620b1(0x218)][_0xf620b1(0x223)](_0x342759),{transform:_0x20ad6b}=_0x40dd22;if(!_0x20ad6b||_0x40dd22[_0xf620b1(0x130)]!==_0x3a939e[_0xf620b1(0x35c)])return;let {left:_0x5e40af,top:_0x2e0333,width:_0xcaee73,height:_0xf8b446,flipX:_0x520b58,flipY:_0x11a6cf,angle:_0x9c7499=0x0}=_0x20ad6b;if(_0x5e40af===void 0x0||_0x2e0333===void 0x0)return;if(_0x635bff){let _0x3b3b7a=this[_0xf620b1(0x35e)][_0xf620b1(0x29e)](this[_0xf620b1(0xec)],this[_0xf620b1(0x283)],this[_0xf620b1(0x1c7)]);_0x3b3b7a==null||_0x3b3b7a[_0xf620b1(0x216)]({'width':_0xcaee73??0x0,'height':_0xf8b446??0x0}),this[_0xf620b1(0x12e)]=_0x3b3b7a==null?void 0x0:_0x3b3b7a[_0xf620b1(0x18d)]();}let _0x75b3c8=this[_0xf620b1(0x12e)];for(let _0x24e59b=0x0;_0x24e59b<_0x75b3c8['length'];_0x24e59b++){let _0x33fe8b=_0x75b3c8[_0x24e59b],_0x48a6e0=_0x33fe8b['x'],_0x8c192f=_0x33fe8b['y'];if(_0x520b58&&(_0x48a6e0=(_0xcaee73||0x0)-_0x48a6e0),_0x11a6cf&&(_0x8c192f=(_0xf8b446||0x0)-_0x8c192f),_0x9c7499!==0x0){let _0x57780c=(_0xcaee73||0x0)/0x2,_0x2840a9=(_0xf8b446||0x0)/0x2,_0x1372ae=_0x9c7499*Math['PI']/0xb4,_0xc276f3=Math[_0xf620b1(0x316)](_0x1372ae),_0x5dd8f5=Math[_0xf620b1(0x334)](_0x1372ae),_0x200510=_0x48a6e0-_0x57780c,_0x3a3a62=_0x8c192f-_0x2840a9;_0x48a6e0=_0x57780c+(_0x200510*_0xc276f3-_0x3a3a62*_0x5dd8f5),_0x8c192f=_0x2840a9+(_0x200510*_0x5dd8f5+_0x3a3a62*_0xc276f3);}let _0xa512b0={'x':_0x48a6e0,'y':_0x8c192f,'adjName':_0x33fe8b[_0xf620b1(0x18a)]};this['_addShapeAdjustControl'](_0xff0c0a,_0xa512b0,_0xa512b0['adjName'],_0x5e40af,_0x2e0333,this[_0xf620b1(0xec)],this[_0xf620b1(0x283)]);}}['_updateShapeAdjustControls'](_0x41d8d1=!0x1){const _0x557345=_0x1a57e9;_0x41d8d1&&(this[_0x557345(0x32c)](),this[_0x557345(0x364)](_0x41d8d1));}['_addShapeAdjustControl'](_0x1642ce,_0xbc6022,_0x1478aa,_0xcef490,_0x4bf797,_0x457214,_0x5b5a9d){const _0x471702=_0x1a57e9;if(!this[_0x471702(0x1c7)])return;let _0xb3c609=_0x1642ce[_0x471702(0x14f)](_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa);if(_0xb3c609){_0xb3c609[_0x471702(0x20e)]({'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe[_0x471702(0x373)]});return;}let _0x549052={'left':_0xbc6022['x']+_0xcef490-_0x496afe['adjHandleSize'],'top':_0xbc6022['y']+_0x4bf797-_0x496afe['adjHandleSize'],'adjName':_0x1478aa,'shapeId':this[_0x471702(0x1c7)],'unitId':_0x457214,'subUnitId':_0x5b5a9d,'width':_0x496afe['adjHandleSize']+0x8,'height':_0x496afe[_0x471702(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0},_0x26665c=new or(_0x471702(0x1c1)+this[_0x471702(0x1c7)]+'-'+_0x1478aa,_0x549052);this[_0x471702(0x243)]['push'](_0x26665c),this[_0x471702(0x1e5)](_0x26665c,_0x1642ce,_0x1478aa),_0x1642ce[_0x471702(0x199)](_0x26665c,_0x5ad001+0x1);}[_0x1a57e9(0x32c)](){const _0x463a39=_0x1a57e9;this['_shapes'][_0x463a39(0x321)]!==0x0&&(this[_0x463a39(0x243)][_0x463a39(0x21e)](_0x5c35fc=>{const _0x4c6dd9=_0x463a39;_0x5c35fc[_0x4c6dd9(0x32d)]();}),this[_0x463a39(0x243)]=[]);}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}[_0x1a57e9(0x248)](_0x25dd4e,_0x288b2a){const _0x215da5=_0x1a57e9;var _0x368159;let _0x32987f={'x':0x0,'y':0x0};if(!_0x25dd4e||!_0x288b2a)return _0x32987f;let _0x1a0ae0=this['_renderManagerService'][_0x215da5(0x174)](_0x25dd4e);if(!_0x1a0ae0||!_0x1a0ae0['with'](_0x2bd201)['getSkeleton'](_0x288b2a))return _0x32987f;let _0x36a83a=_0x1a0ae0[_0x215da5(0x346)](_0x56e08d),_0x327e70=_0x36a83a==null?void 0x0:_0x36a83a[_0x215da5(0x36e)]();if(!_0x327e70)return _0x32987f;let _0x5836e3=(_0x368159=this['_univerInstanceService'][_0x215da5(0x2d8)](_0x25dd4e))==null?void 0x0:_0x368159['getSheetBySheetId'](_0x288b2a);if(!_0x5836e3)return _0x32987f;let _0x551aa9=_0x56ed68(_0x327e70['sheetViewStartRow'],_0x327e70[_0x215da5(0x34c)],_0x1a0ae0[_0x215da5(0x21b)],_0x5836e3);return _0x551aa9?{'x':_0x551aa9[_0x215da5(0x2b5)],'y':_0x551aa9[_0x215da5(0x195)]}:_0x32987f;}[_0x1a57e9(0x225)](_0x573347,_0x283e3a){const _0x2129e0=_0x1a57e9;var _0x5e2733;let _0x33676b=(_0x5e2733=this[_0x2129e0(0x224)][_0x2129e0(0x2d8)](_0x573347))==null?void 0x0:_0x5e2733[_0x2129e0(0x1bc)](_0x283e3a);return(_0x33676b==null?void 0x0:_0x33676b['getZoomRatio']())??0x1;}[_0x1a57e9(0x1e5)](_0x2ea2d1,_0x273942,_0x567c2a){const _0x13cd1a=_0x1a57e9;this[_0x13cd1a(0x2db)](_0x3ee632(_0x2ea2d1['onPointerDown$'][_0x13cd1a(0x18f)]((_0x5e8a22,_0x579170)=>{const _0x143afe=_0x13cd1a;var _0x1b55ac,_0x3b1c63,_0x5dac89,_0xb8d104;let _0x4f07eb=_0x2ea2d1[_0x143afe(0x2e8)]();this[_0x143afe(0x35f)]=this['_getShapeAdjustInfosById'](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)],_0x567c2a),this['_activeShapeModel']=this[_0x143afe(0x35e)][_0x143afe(0x29e)](_0x4f07eb[_0x143afe(0x264)],_0x4f07eb[_0x143afe(0x29a)],_0x4f07eb[_0x143afe(0x175)]);let _0x19b953=this[_0x143afe(0x218)][_0x143afe(0x223)]({'unitId':this[_0x143afe(0xec)],'subUnitId':this[_0x143afe(0x283)],'drawingId':this['_activeShapeId']}),{transform:_0x49abef}=_0x19b953;if(_0x49abef){let {left:_0x3d818e,top:_0x367f10,width:_0x28f624,height:_0x1b835b}=_0x49abef;this[_0x143afe(0x1cb)]=_0x3d818e||0x0,this[_0x143afe(0x363)]=_0x367f10||0x0,this[_0x143afe(0x1e4)]=_0x28f624||0x0,this[_0x143afe(0x118)]=_0x1b835b||0x0;}let _0x5905de=!!((_0x1b55ac=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x1b55ac[_0x143afe(0xfd)]),_0x356ee9=!!((_0x3b1c63=_0x19b953[_0x143afe(0x2b2)])!=null&&_0x3b1c63['flipY']),_0x1df3aa=((_0x5dac89=_0x19b953[_0x143afe(0x2b2)])==null?void 0x0:_0x5dac89[_0x143afe(0x10a)])||0x0;this[_0x143afe(0x328)]=!0x0,_0x273942[_0x143afe(0x2e3)]();let _0x117e11={...((_0xb8d104=this[_0x143afe(0x35f)])==null?void 0x0:_0xb8d104[_0x143afe(0x303)])??{}};this[_0x143afe(0x2a6)]=_0x273942['onPointerMove$'][_0x143afe(0x18f)]((_0x3f12e4,_0x5addd6)=>{const _0x497f73=_0x143afe;if(!this[_0x497f73(0x328)])return;let {offsetX:_0x1c3b36,offsetY:_0x5e10df}=_0x3f12e4,_0x54084e=this[_0x497f73(0x35f)];if(this['_activeShapeModel']&&_0x54084e){_0x273942[_0x497f73(0x2e3)](),_0x273942[_0x497f73(0x227)](_0xee2861['CROSSHAIR']);let _0x318eec={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x743116=this[_0x497f73(0x248)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x4ad528=this[_0x497f73(0x225)](this[_0x497f73(0xec)],this[_0x497f73(0x283)]),_0x41e9fb=_0x1c3b36/_0x4ad528+_0x743116['x']-this[_0x497f73(0x1cb)],_0x4682cd=_0x5e10df/_0x4ad528+_0x743116['y']-this[_0x497f73(0x363)];if(_0x1df3aa!==0x0){let _0x4c2f60=this['_baseShapeWidth']/0x2,_0x2f4e37=this[_0x497f73(0x118)]/0x2,_0x6a449f=_0x1df3aa*Math['PI']/0xb4,_0x295a6d=Math[_0x497f73(0x316)](_0x6a449f),_0x47957a=Math[_0x497f73(0x334)](_0x6a449f),_0x3ec8c9=_0x41e9fb-_0x4c2f60,_0x4f6141=_0x4682cd-_0x2f4e37;_0x41e9fb=_0x4c2f60+(_0x3ec8c9*_0x295a6d+_0x4f6141*_0x47957a),_0x4682cd=_0x2f4e37+(-_0x3ec8c9*_0x47957a+_0x4f6141*_0x295a6d);}_0x5905de&&(_0x41e9fb=this[_0x497f73(0x1e4)]-_0x41e9fb),_0x356ee9&&(_0x4682cd=this[_0x497f73(0x118)]-_0x4682cd);let _0x310bf1={'x':_0x41e9fb,'y':_0x4682cd},_0x5116c1=this[_0x497f73(0x295)][_0x497f73(0x236)](_0x318eec,_0x310bf1,_0x54084e,_0x5905de,_0x356ee9);if(Object[_0x497f73(0x20a)](_0x5116c1)[_0x497f73(0x321)]===0x0)return;for(let [_0x26312d,_0x131d94]of Object['entries'](_0x5116c1))this[_0x497f73(0x295)][_0x497f73(0x2dc)](_0x26312d,_0x131d94);this[_0x497f73(0x295)][_0x497f73(0x216)]({'width':this[_0x497f73(0x1e4)],'height':this[_0x497f73(0x118)]});let _0x402a52=this[_0x497f73(0x218)][_0x497f73(0x223)]({'unitId':_0x4f07eb[_0x497f73(0x264)],'subUnitId':_0x4f07eb[_0x497f73(0x29a)],'drawingId':_0x4f07eb[_0x497f73(0x175)]});_0x402a52&&(this[_0x497f73(0x237)]['renderDrawingShape'](_0x402a52,_0x273942),this[_0x497f73(0x12e)]=this['_getShapeAdjustPointListById'](_0x4f07eb['unitId'],_0x4f07eb[_0x497f73(0x29a)],_0x4f07eb['drawingId']),this[_0x497f73(0x109)]());}_0x5addd6[_0x497f73(0x207)]();}),this['_adjHandlerPointerUp']=_0x273942['onPointerUp$']['subscribeEvent']((_0x122fd2,_0x4f1efb)=>{const _0x278183=_0x143afe;this[_0x278183(0x2a6)][_0x278183(0x2b4)](),this['_adjHandlerPointerUp']['unsubscribe'](),_0x273942[_0x278183(0x327)]();let _0xf58c97=this[_0x278183(0x35f)];if(_0xf58c97){let _0x317308=_0x4f07eb[_0x278183(0x264)],_0x20443d=_0x4f07eb['subUnitId'],_0x5eb09d=_0x4f07eb[_0x278183(0x175)],_0x46baeb={};for(let _0x4f8740 of Object['keys'](_0xf58c97['currentAdjustValues'])){var _0x30dc14;let _0xc96259=(_0x30dc14=this[_0x278183(0x295)])==null?void 0x0:_0x30dc14[_0x278183(0x33d)](_0x4f8740);_0xc96259!==void 0x0&&(_0x46baeb[_0x4f8740]=_0xc96259);}Object[_0x278183(0x20a)](_0x46baeb)[_0x278183(0x321)]>0x0&&$n(this[_0x278183(0x27a)],_0x317308,_0x20443d,_0x5eb09d,{'oldShapeData':{'adjustValues':_0x117e11}},{'adjustValues':_0x46baeb});}this[_0x278183(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x278183(0x328)]=!0x1,_0x4f1efb[_0x278183(0x207)](),_0x273942[_0x278183(0x115)]();}),_0x579170[_0x143afe(0x207)]();})));}[_0x1a57e9(0x287)](){const _0x4ccfd0=_0x1a57e9;let _0x3802f3=this[_0x4ccfd0(0x224)][_0x4ccfd0(0x1ed)](_0x3d832c[_0x4ccfd0(0xf3)]);this['disposeWithMe'](_0x3802f3['pipe'](_0x1990de(_0x240a21=>_0x240a21?_0x240a21[_0x4ccfd0(0x21c)]['pipe'](_0x1990de(_0x36979e=>{const _0x3ca709=_0x4ccfd0;if(!_0x36979e)return _0x3b0f55;let _0xb77bb5=_0x240a21[_0x3ca709(0x1e2)](),_0x3b5264=this['_renderManagerService']['getRenderUnitById'](_0xb77bb5),_0x6ba610=_0x3b5264==null?void 0x0:_0x3b5264['scene'];return _0x6ba610?_0x36bcf9(_0x6ba610):_0x3b0f55;})):_0x3b0f55))['subscribe'](_0x362169=>{const _0x1f0fed=_0x4ccfd0;let _0x55f11e=_0x362169['getTransformerByCreate']();this['disposeWithMe'](_0x362169[_0x1f0fed(0x117)][_0x1f0fed(0x18f)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x1b3)][_0x1f0fed(0x23b)](_0x1fc991=>{const _0x3c42a7=_0x1f0fed;let {objects:_0x2d790c}=_0x1fc991;this[_0x3c42a7(0x364)](),_0x2d790c!==null&&_0x2d790c[_0x3c42a7(0x11a)]===0x1&&_0x2d790c[_0x3c42a7(0x193)]()['next']()[_0x3c42a7(0x2de)]instanceof ar&&this[_0x3c42a7(0x274)](!0x0);})),this[_0x1f0fed(0x2db)](_0x55f11e[_0x1f0fed(0x2d3)]['subscribe'](()=>{const _0x4e2973=_0x1f0fed;this[_0x4e2973(0xe7)]&&this['_clearShapeAdjustControls']();})),this[_0x1f0fed(0x2db)](_0x362169['onPointerUp$'][_0x1f0fed(0x18f)](()=>{const _0x2c7a57=_0x1f0fed;this[_0x2c7a57(0xe7)]&&(this[_0x2c7a57(0x274)](!0x1),this[_0x2c7a57(0x364)]());})),this['disposeWithMe'](_0x55f11e[_0x1f0fed(0x12a)][_0x1f0fed(0x23b)](()=>{const _0x102907=_0x1f0fed;this[_0x102907(0xec)]&&this[_0x102907(0x283)]&&this[_0x102907(0x1c7)]&&this[_0x102907(0x218)][_0x102907(0x223)]({'unitId':this[_0x102907(0xec)],'subUnitId':this[_0x102907(0x283)],'drawingId':this['_activeShapeId']})&&(this[_0x102907(0x12e)]=this[_0x102907(0x209)](this[_0x102907(0xec)],this[_0x102907(0x283)],this[_0x102907(0x1c7)]),this[_0x102907(0x109)]());}));}));}[_0x1a57e9(0x180)](){const _0x446468=_0x1a57e9;this[_0x446468(0x2db)](this['_commandService'][_0x446468(0x13f)](_0xb8a180=>{const _0x13bb86=_0x446468;if(_0xb8a180['id']!==_0x926363['id'])return;let {unitId:_0x22ecb8,subUnitId:_0x327f91,shapeId:_0x4df982}=_0xb8a180[_0x13bb86(0x374)];_0x22ecb8===this[_0x13bb86(0xec)]&&_0x327f91===this[_0x13bb86(0x283)]&&_0x4df982===this[_0x13bb86(0x1c7)]&&this['refreshAdjustControls']();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x268)][_0x446468(0x23b)](_0xc85ec6=>{const _0x5504f4=_0x446468;if(_0xc85ec6[_0x5504f4(0x321)]===0x1){let _0x4f1642=_0xc85ec6[0x0];if(_0x4f1642[_0x5504f4(0x130)]===_0x3a939e[_0x5504f4(0x35c)]&&this['_univerInstanceService'][_0x5504f4(0x10d)](_0x4f1642[_0x5504f4(0x264)])===_0x3d832c[_0x5504f4(0xf3)]){this['_activeShapeId']=_0x4f1642[_0x5504f4(0x175)];let {unitId:_0x39c55a,subUnitId:_0x7a8a5d}=_0x4f1642;this[_0x5504f4(0x12e)]=this[_0x5504f4(0x209)](_0x39c55a,_0x7a8a5d,this[_0x5504f4(0x1c7)]),this['_unitId']=_0x39c55a,this['_subUnitId']=_0x7a8a5d,this[_0x5504f4(0x32c)](),this[_0x5504f4(0x364)]();return;}}this[_0x5504f4(0x1c7)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x5504f4(0x283)]=null,this[_0x5504f4(0x32c)]();})),this[_0x446468(0x2db)](this[_0x446468(0x218)][_0x446468(0x1d3)][_0x446468(0x23b)](_0x5c60c2=>{const _0x21cffb=_0x446468;if(_0x5c60c2[_0x21cffb(0x321)]===0x1){var _0x1dcb2b;let _0x20da9b=_0x5c60c2[0x0];((_0x1dcb2b=this[_0x21cffb(0x218)]['getDrawingByParam'](_0x20da9b))==null?void 0x0:_0x1dcb2b[_0x21cffb(0x130)])===_0x3a939e[_0x21cffb(0x35c)]&&this[_0x21cffb(0x24b)](!0x0);}})),this['disposeWithMe'](this['_drawingManagerService'][_0x446468(0x10f)][_0x446468(0x23b)](_0x4721f6=>{const _0x227ef7=_0x446468;for(let _0x503bd8 of _0x4721f6)this[_0x227ef7(0x1c7)]===_0x503bd8[_0x227ef7(0x175)]&&(this[_0x227ef7(0x1c7)]=null,this[_0x227ef7(0x12e)]=void 0x0,this['_unitId']=null,this[_0x227ef7(0x283)]=null,this['_clearShapeAdjustControls']());}));}};sr=Z([X(0x0,_0x3398d1),X(0x1,_0x236d5e(_0x434a53)),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x236d5e(Q)),X(0x4,_0x4b61f3),X(0x5,_0x1b8f46)],sr);const cr={'id':'drawing.operation.set-drawing-active','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1605fc,_0x464f90)=>{const _0x421a81=_0x1a57e9;let _0x5cc7bf=_0x1605fc[_0x421a81(0x272)](_0x3398d1),_0x4834a4=_0x1605fc[_0x421a81(0x272)](_0xebded9),_0x12461a=_0x1605fc[_0x421a81(0x272)](sr);if(_0x464f90==null)return!0x0;if(_0x464f90[_0x421a81(0x321)]>0x0){var _0x123b71;let _0x5bce8d=(_0x123b71=_0x4834a4[_0x421a81(0x174)](_0x464f90[0x0][_0x421a81(0x264)]))==null?void 0x0:_0x123b71[_0x421a81(0x21b)];if(_0x5bce8d){let {unitId:_0x17aa24,subUnitId:_0x34c154,drawingId:_0x171b9a}=_0x464f90[0x0],_0x3717c6=_0x238087({'unitId':_0x17aa24,'subUnitId':_0x34c154,'drawingId':_0x171b9a},void 0x0),_0x24283d=_0x5bce8d[_0x421a81(0x14f)](_0x3717c6);if(_0x24283d){var _0x2e273b;(_0x2e273b=_0x4834a4['getRenderUnitById'](_0x464f90[0x0][_0x421a81(0x264)]))==null||(_0x2e273b=_0x2e273b[_0x421a81(0x21b)][_0x421a81(0x1da)]())==null||_0x2e273b[_0x421a81(0x324)](_0x24283d);}}_0x5cc7bf[_0x421a81(0x2ff)](_0x464f90),_0x12461a[_0x421a81(0x274)](!0x1);}return!0x0;}},lr={'type':_0x42d4f6[_0x1a57e9(0x1c3)],'id':_0x1a57e9(0x305),'handler':async(_0x243f33,_0x1cf66e)=>{const _0x237f81=_0x1a57e9;let _0x21d82f=_0x5a285c(_0x243f33[_0x237f81(0x272)](_0x4b61f3));if(!_0x21d82f)return!0x1;let _0x5424e6=_0x243f33[_0x237f81(0x272)](_0x17030f)['getCurrentLastSelection']();if(!_0x5424e6)return!0x1;let _0x2c46d3=_0x243f33[_0x237f81(0x272)](_0x1b8f46),{unitId:_0x472dd8,subUnitId:_0x44c222}=_0x21d82f,{value:_0x5989cc,enhanceParams:_0x331745}=_0x1cf66e,{range:_0x57e279}=_0x5424e6,_0x418bdc={'unitId':_0x472dd8,'subUnitId':_0x44c222,'shapeType':_0x5989cc,'range':_0x57e279,'shapeId':_0xa48e11()};if(_0x331745){let _0x1d08fc=_0x3863ab(_0x5989cc),_0xf4115e=_0x5989cc===_0x2d2111[_0x237f81(0x14e)];_0x1d08fc&&(_0x331745[_0x237f81(0xf8)]||_0x331745[_0x237f81(0x23a)])&&(_0x418bdc[_0x237f81(0xee)]={'ln':{'startArrow':_0x331745[_0x237f81(0xf8)]?{'type':_0xb46528['Arrow'],'size':_0x505688[_0x237f81(0x2c3)]}:void 0x0,'endArrow':_0x331745['endArrow']?{'type':_0xb46528[_0x237f81(0x345)],'size':_0x505688['Large']}:void 0x0}}),_0xf4115e&&(_0x331745[_0x237f81(0x28e)]||_0x331745[_0x237f81(0x112)])&&(_0x418bdc['shapeData']=_0x294eed({'fill':{'fillType':_0x478734[_0x237f81(0x129)],'color':'#FFFFFF'},'isHorizontal':!!_0x331745['horizontal'],'stroke':{'lineStrokeType':_0x14ebc6[_0x237f81(0x1a4)],'width':0x1,'color':_0x237f81(0x24c)}}));}let _0x5b7a52=_0x2c46d3[_0x237f81(0x297)](_0x2f0bb2['id'],_0x418bdc);return setTimeout(()=>{const _0x50f6dc=_0x237f81;_0x2c46d3[_0x50f6dc(0x311)](cr['id'],[{'unitId':_0x472dd8,'subUnitId':_0x44c222,'drawingId':_0x418bdc[_0x50f6dc(0x2e2)]}]);},0xc8),_0x5b7a52;}},ur=_0x1a57e9(0x158),dr=_0x1a57e9(0x22d),fr=_0x1a57e9(0x166),pr='sheets-shape-ui.ribbon.shape-format',mr=_0x5dbcda('SHAPE_TEXT'),hr=_0x1a57e9(0xf7),gr={'id':_0x1a57e9(0x2f7),'type':_0x42d4f6[_0x1a57e9(0x1c3)],'handler':(_0x401dd4,_0x589788)=>{const _0x3e2af9=_0x1a57e9;let _0x56abfb=_0x401dd4[_0x3e2af9(0x272)](_0xaf9369),_0x31c33b=_0x401dd4['get'](_0x1d78e7),_0x39e7fa=_0x401dd4['get'](_0x4b61f3),_0x409748=_0x401dd4[_0x3e2af9(0x272)](_0x1b8f46);return _0x5a285c(_0x39e7fa)?(_0x589788==null?void 0x0:_0x589788[_0x3e2af9(0x2de)])===_0x3e2af9(0x155)?(_0x56abfb[_0x3e2af9(0x155)](dr),!0x0):(_0x56abfb[_0x3e2af9(0x241)]({'id':dr,'header':{'title':_0x31c33b['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':dr},'onClose':()=>{const _0x238f56=_0x3e2af9;_0x409748[_0x238f56(0x297)](_0x158934['id'],[]);},'width':0x168}),!0x0):!0x1;}},_r={'type':_0x42d4f6[_0x1a57e9(0x250)],'id':_0x1a57e9(0x19c),'handler'(){return!0x0;}};function vr(_0x53a6c5){const _0x139fcc=_0x1a57e9;let _0x564a3e=_0x53a6c5[_0x139fcc(0x272)](_0x3398d1)[_0x139fcc(0x15d)](),_0x45e27a=_0x564a3e[_0x139fcc(0x321)]===0x1?_0x564a3e[0x0]:null;if(!_0x45e27a||_0x45e27a[_0x139fcc(0x130)]!==_0x3a939e[_0x139fcc(0x35c)])return null;let _0x5e85df=_0x53a6c5[_0x139fcc(0x272)](_0x434a53),_0x2b20dd=_0x5e85df['getShapeTypeById'](_0x45e27a['unitId'],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]),_0x4aca41=_0x5e85df['getShapeDataById'](_0x45e27a[_0x139fcc(0x264)],_0x45e27a[_0x139fcc(0x29a)],_0x45e27a[_0x139fcc(0x175)]);return _0x2b20dd===void 0x0||!_0x4aca41?null:{'drawing':_0x45e27a,'shapeData':_0x4aca41,'shapeType':_0x2b20dd};}const yr={'id':_0x1a57e9(0x26c),'type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1ccf3f,_0x4dad11)=>{const _0x36c829=_0x1a57e9;let _0x4b1ad7=vr(_0x1ccf3f),_0x2e6e4a=_0x36420e((_0x4dad11==null?void 0x0:_0x4dad11[_0x36c829(0x172)])??(_0x4dad11==null?void 0x0:_0x4dad11['value'])??'');if(!_0x4b1ad7||!_0x2e6e4a||_0x2e6e4a[_0x36c829(0x2c0)]!==_0x38830c(_0x4b1ad7[_0x36c829(0xee)]))return!0x1;let _0x302864=_0x1c41c8(_0x4b1ad7['shapeData'],_0x2e6e4a);if(!_0x302864)return!0x1;let {drawing:_0x556349}=_0x4b1ad7;return _0x1ccf3f[_0x36c829(0x272)](_0x1b8f46)[_0x36c829(0x311)](Qn['id'],{'unitId':_0x556349[_0x36c829(0x264)],'subUnitId':_0x556349['subUnitId'],'shapeId':_0x556349[_0x36c829(0x175)],'shapeData':_0x302864,'oldShapeJSON':{'oldShapeData':_0x4b1ad7['shapeData']}});}},br={'id':'sheet.operation.update-shape-type','type':_0x42d4f6[_0x1a57e9(0x250)],'handler':(_0x1dae44,_0x4a0ad9)=>{const _0x47236c=_0x1a57e9;let _0x3c172a=vr(_0x1dae44),_0xfdc60f=(_0x4a0ad9==null?void 0x0:_0x4a0ad9['shapeType'])??(_0x4a0ad9==null?void 0x0:_0x4a0ad9[_0x47236c(0x2de)]);if(!_0x3c172a||!_0xfdc60f||_0x3863ab(_0x3c172a[_0x47236c(0x2fd)])||_0x3863ab(_0xfdc60f))return!0x1;let _0x4d6d06=_0x4ebde1(_0x3c172a[_0x47236c(0xee)],_0xfdc60f);if(!_0x4d6d06)return!0x1;let {drawing:_0x15571d}=_0x3c172a;return _0x1dae44['get'](_0x1b8f46)[_0x47236c(0x311)](Qn['id'],{'unitId':_0x15571d['unitId'],'subUnitId':_0x15571d[_0x47236c(0x29a)],'shapeId':_0x15571d[_0x47236c(0x175)],'shapeType':_0xfdc60f,'shapeData':_0x4d6d06,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3c172a[_0x47236c(0x2fd)],'oldShapeData':_0x3c172a[_0x47236c(0xee)]}});}};let xr=class extends _0x458cfa{constructor(_0x420fe0,_0x2ccc29){const _0x1dd545=_0x1a57e9;super(),this[_0x1dd545(0x359)]=_0x420fe0,this[_0x1dd545(0x218)]=_0x2ccc29,this[_0x1dd545(0x1a0)](),this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x0),this[_0x1dd545(0x2db)]({'dispose':()=>this[_0x1dd545(0x359)][_0x1dd545(0x282)](!0x1)});}[_0x1a57e9(0x1a0)](){const _0x4bbb22=_0x1a57e9;let _0x129d28=this[_0x4bbb22(0x359)],_0xf807af=new Map(),_0x251a36=_0x129d28[_0x4bbb22(0x134)]((_0x27c2e7,_0x5a4c21,_0x513853,_0x5d447c,_0x5a6d04)=>{const _0x4e726a=_0x4bbb22;let _0x2cc0cd=_0x5a4c21;if(_0x2cc0cd===_0x2d2111[_0x4e726a(0x102)]||_0x5a4c21===_0x4e726a(0x2e1))return!0x1;try{let _0xa64c31=_0xf807af[_0x4e726a(0x272)](_0x5a4c21);return _0xa64c31||(_0xa64c31=new _0x300a94(_0x2cc0cd,_0x4e726a(0x1b5)+_0x5a4c21),_0xf807af[_0x4e726a(0x181)](_0x5a4c21,_0xa64c31)),_0xa64c31[_0x4e726a(0x17b)](),_0x5a6d04&&Object['keys'](_0x5a6d04)[_0x4e726a(0x321)]>0x0&&_0xa64c31['setShapeData']({'adjustValues':_0x5a6d04},!0x0),_0xa64c31[_0x4e726a(0x216)]({'width':_0x513853,'height':_0x5d447c}),_0xa64c31[_0x4e726a(0x34a)](_0x27c2e7,{'left':0x0,'top':0x0,'width':_0x513853,'height':_0x5d447c});}catch{return!0x1;}});this[_0x4bbb22(0x2db)](_0x251a36),this[_0x4bbb22(0x2db)]({'dispose':()=>_0xf807af['clear']()});}[_0x1a57e9(0x1bb)](_0x8a36a8,_0x248f34,_0x225ee4,_0x1cb156,_0x196557){const _0x55c2d9=_0x1a57e9;let _0x11c80b=this[_0x55c2d9(0x218)][_0x55c2d9(0x35a)](_0x8a36a8,_0x248f34);if(!_0x11c80b[_0x225ee4])return;let _0x3dd822={..._0x11c80b[_0x225ee4],'prstGeom':_0x1cb156,'adjustValues':_0x196557};this[_0x55c2d9(0x218)][_0x55c2d9(0x16e)]([_0x3dd822]);}};xr=Z([X(0x0,_0x236d5e(_0x5ae22a)),X(0x1,_0x236d5e(_0x3398d1))],xr);const Sr=_0x1a57e9(0x1e6),Cr=_0x1a57e9(0x1d2);function wr({onShapeClick:_0x4a44f3,excludeGroups:_0x460056}){const _0x3dc7f3=_0x1a57e9;return _0x16ab0d(_0x55a6fc,{'excludeGroups':_0x460056,'onShapeClick':_0x4a44f3,'scrollContainer':_0x3dc7f3(0x232)});}function Tr(){const _0x417306=_0x1a57e9;let _0x20cb5c=_0x5ee9a9(_0x3398d1),_0x1e5824=_0x5ee9a9(xr);return _0x16ab0d(_0x4951a2,{'buttonLabel':_0x417306(0x228),'excludeGroups':[_0x5254a4['Line']],'onShapeClick':_0x5070aa=>{const _0x19dc3b=_0x417306;let _0x24e0e5=_0x20cb5c['getFocusDrawings']()[_0x19dc3b(0x26b)](_0xa47e76=>_0xa47e76[_0x19dc3b(0x130)]===_0x3a939e[_0x19dc3b(0x162)]);if(!_0x24e0e5)return;let {unitId:_0x548677,subUnitId:_0x49c389,drawingId:_0x46c0fa}=_0x24e0e5;_0x1e5824[_0x19dc3b(0x1bb)](_0x548677,_0x49c389,_0x46c0fa,_0x5070aa[_0x19dc3b(0x2c0)]);}});}function Er(){const _0x5ed4df=_0x1a57e9;let _0x22a66b=_0x5ee9a9(_0x3377c6),_0x37b0e3=_0x5ee9a9(_0x3398d1),_0x5920d2=_0x5ee9a9(_0x4b61f3),_0xd9cb9a=_0x37b0e3[_0x5ed4df(0x15d)]()[0x0],_0xc5f67e=_0xd9cb9a?_0x5920d2['getUnitType'](_0xd9cb9a[_0x5ed4df(0x264)]):void 0x0,_0x26ccad=_0xc5f67e===_0x3d832c[_0x5ed4df(0x1d6)]?'doc.image-clip.shape-picker.component':_0xc5f67e===_0x3d832c[_0x5ed4df(0xf3)]?Cr:void 0x0,_0x511f93=_0x26ccad?_0x22a66b['get'](_0x26ccad):void 0x0;return _0x511f93?_0x16ab0d(_0x511f93,{}):null;}function Dr(){let _0x30264e=_0x5ee9a9(_0x1b8f46);return _0x16ab0d(wr,{'onShapeClick':_0x3e684c=>{const _0x5331eb=_0x4a8a;_0x30264e[_0x5331eb(0x311)](lr['id'],{'value':_0x3e684c[_0x5331eb(0x2c0)],'enhanceParams':{'endArrow':_0x3e684c[_0x5331eb(0x23a)],'startArrow':_0x3e684c[_0x5331eb(0xf8)],'horizontal':_0x3e684c[_0x5331eb(0x28e)],'vertical':_0x3e684c[_0x5331eb(0x112)]}});}});}function Or(_0x460f4e){const _0x465fe5=_0x1a57e9;let _0x3640eb=_0x460f4e['get'](_0x4b61f3);return{'id':lr['id'],'type':_0x870bc4[_0x465fe5(0x251)],'selections':[{'label':{'name':Sr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':lr['id']}}}],'icon':_0x465fe5(0x342),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x3c15b6(_0x3640eb,!0x1,()=>new _0x96c1cf(_0x42d6b7=>{const _0x374dfc=_0x465fe5;_0x42d6b7[_0x374dfc(0x18c)](!0x1);})),'hidden$':_0x472593(_0x460f4e,_0x3d832c[_0x465fe5(0xf3)]),'disabled$':_0x5052c4(_0x460f4e)};}function kr(_0x46fa8e){const _0x37bf83=_0x1a57e9;let _0x45bf72=_0x46fa8e['get'](_0x4b61f3);return{'id':gr['id'],'type':_0x870bc4[_0x37bf83(0x1d9)],'icon':'ObjectLayersIcon','title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x37bf83(0x247),'activated$':_0x3c15b6(_0x45bf72,!0x1,()=>new _0x96c1cf(_0x2e1c0f=>{const _0x181982=_0x37bf83;_0x2e1c0f[_0x181982(0x18c)](!0x1);})),'hidden$':_0x472593(_0x46fa8e,_0x3d832c['UNIVER_SHEET']),'disabled$':_0x5052c4(_0x46fa8e)};}const Ar=_0x1a57e9(0x34b),jr='sheet.menu.shape.flip-vertical';function Mr(_0x11bc69){const _0x5ca3ca=_0x1a57e9;let _0x236e07=_0x11bc69['get'](_0x3398d1)['getFocusDrawings']();return _0x236e07[_0x5ca3ca(0x321)]===0x1&&_0x236e07[0x0][_0x5ca3ca(0x130)]===_0x3a939e[_0x5ca3ca(0x35c)]?_0x236e07[0x0]:null;}function Nr(_0x522df4){const _0x282acc=_0x1a57e9;let _0x166e0d=_0x522df4['get'](_0x3398d1);return _0x166e0d[_0x282acc(0x268)][_0x282acc(0x15e)](_0x49a949(_0x166e0d['getFocusDrawings']()),_0x1e6cce(_0x32bb9c=>_0x32bb9c[_0x282acc(0x321)]!==0x1||_0x32bb9c[0x0][_0x282acc(0x130)]!==_0x3a939e[_0x282acc(0x35c)]));}function Pr(_0x16e8cc){const _0x317f82=_0x1a57e9;return{'id':Ar,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x317f82(0x1d9)],'title':_0x317f82(0x144),'tooltip':'sheets-shape-ui.flipHorizontal','icon':'FlipHorizontalIcon','hidden$':Nr(_0x16e8cc),'params':()=>{const _0x2bc9a6=_0x317f82;let _0x4199a1=Mr(_0x16e8cc);return _0x4199a1?{'unitId':_0x4199a1[_0x2bc9a6(0x264)],'subUnitId':_0x4199a1[_0x2bc9a6(0x29a)],'shapeId':_0x4199a1[_0x2bc9a6(0x175)],'flipH':!0x0}:void 0x0;}};}function Fr(_0x26f4a3){const _0x1ba8c8=_0x1a57e9;return{'id':jr,'commandId':_0x219c9d['id'],'type':_0x870bc4[_0x1ba8c8(0x1d9)],'title':_0x1ba8c8(0x331),'tooltip':_0x1ba8c8(0x331),'icon':_0x1ba8c8(0x19f),'hidden$':Nr(_0x26f4a3),'params':()=>{const _0x220f27=_0x1ba8c8;let _0x12850b=Mr(_0x26f4a3);return _0x12850b?{'unitId':_0x12850b[_0x220f27(0x264)],'subUnitId':_0x12850b[_0x220f27(0x29a)],'shapeId':_0x12850b['drawingId'],'flipV':!0x0}:void 0x0;}};}const Ir=_0x1a57e9(0x124),Lr=_0x1a57e9(0x2d2),Rr='sheets-shape-ui.shape-format.text-ribbon-control',zr='sheets-shape-ui.shape-format.formula-ribbon-control';function Br(){let _0x50db26=_0x5ee9a9(_0x1b8f46),_0x17e2c6=_0x5ee9a9(_0x3398d1),_0x38fc48=_0x5ee9a9(_0x434a53),_0x2bccad=()=>{const _0xc65a0f=_0x4a8a;var _0x5a569a;let _0x59c3a7=_0x17e2c6[_0xc65a0f(0x15d)]();if(_0x59c3a7[_0xc65a0f(0x321)]!==0x1||((_0x5a569a=_0x59c3a7[0x0])==null?void 0x0:_0x5a569a[_0xc65a0f(0x130)])!==_0x3a939e['DRAWING_SHAPE'])return null;let {unitId:_0x1d6c83,subUnitId:_0xa2c1e6,drawingId:_0x1da4c4}=_0x59c3a7[0x0],_0x109054=_0x38fc48[_0xc65a0f(0x34e)](_0x1d6c83,_0xa2c1e6,_0x1da4c4),_0x4180ac=_0x38fc48[_0xc65a0f(0x335)](_0x1d6c83,_0xa2c1e6,_0x1da4c4);return _0x109054===void 0x0||!_0x4180ac?null:{'unitId':_0x1d6c83,'subUnitId':_0xa2c1e6,'drawingId':_0x1da4c4,'shapeType':_0x109054,'shapeData':_0x4180ac};},_0x149fd3=_0x263d75(()=>new _0x96c1cf(_0x3f8997=>{const _0x7c6e24=_0x4a8a;let _0x119693=()=>_0x3f8997[_0x7c6e24(0x18c)](_0x2bccad()),_0x423eeb=_0x17e2c6[_0x7c6e24(0x268)][_0x7c6e24(0x23b)](_0x119693),_0x1d0fe2=_0x50db26['onCommandExecuted'](_0x6b8ecc=>{_0x6b8ecc['id']===_0x926363['id']&&_0x119693();});return _0x119693(),()=>{const _0x2af919=_0x7c6e24;_0x423eeb[_0x2af919(0x2b4)](),_0x1d0fe2['dispose']();};}),_0x2bccad(),!0x1,[_0x50db26,_0x17e2c6,_0x38fc48]);return{'selection':_0x149fd3,'updateShapeData':_0x58613c=>{const _0x58cfbc=_0x4a8a;_0x149fd3&&$n(_0x50db26,_0x149fd3[_0x58cfbc(0x264)],_0x149fd3[_0x58cfbc(0x29a)],_0x149fd3[_0x58cfbc(0x175)],{'oldShapeData':_0x149fd3[_0x58cfbc(0xee)]},_0x58613c);}};}function Vr(){let {selection:_0x58328d,updateShapeData:_0x367ef5}=Br();return _0x58328d?_0x16ab0d(_0x324497,{'shapeData':_0x58328d['shapeData'],'shapeType':_0x58328d['shapeType'],'onUpdateShapeData':_0x367ef5}):null;}function Hr(){const _0x43c2bd=_0x1a57e9;let _0x243f09=_0x5ee9a9(_0x1b8f46),_0x3777f5=_0x5ee9a9(_0x1d78e7),{selection:_0x5a44b5}=Br();return _0x5a44b5?_0x16ab0d(_0xd337d7,{'type':_0x38830c(_0x5a44b5[_0x43c2bd(0xee)]),'ariaLabel':_0x3777f5['t'](_0x43c2bd(0x26d)),'activePresetId':_0x33cca3(_0x5a44b5['shapeData']),'onSelect':_0x34dae2=>_0x243f09[_0x43c2bd(0x311)](yr['id'],{'presetId':_0x34dae2})}):null;}function Ur(){const _0x4e2331=_0x1a57e9;let {selection:_0x2901ce,updateShapeData:_0x40fc62}=Br();return _0x2901ce?_0x16ab0d(_0x39ec8e,{'fontFamilyPopupDataComponent':_0x4e2331(0x1ce),'shapeData':_0x2901ce[_0x4e2331(0xee)],'onUpdateShapeData':_0x40fc62}):null;}function Wr(){const _0x494650=_0x1a57e9;var _0x15b183;let {selection:_0x4cb841,updateShapeData:_0x320e09}=Br(),_0x39833d=_0x34ed3a({'hostType':_0x3d832c[_0x494650(0xf3)],'unitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x264)])??'','subUnitId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x29a)])??'','shapeId':(_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0x175)])??'','shapeData':_0x4cb841==null?void 0x0:_0x4cb841[_0x494650(0xee)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x494650(0x2f4),'onUpdateBinding':_0x10db37=>_0x320e09({'formulaBinding':_0x10db37})}),_0x5652d8=((_0x15b183=_0x39833d['extensionGroups'])==null?void 0x0:_0x15b183[_0x494650(0x198)](_0x49e25b=>_0x49e25b[_0x494650(0x36d)])[_0x494650(0xeb)](_0x10d6b7=>_0x10d6b7[_0x494650(0x285)]!==!0x1))??[];return _0x4cb841!=null&&_0x4cb841[_0x494650(0xee)]['formulaBinding']?_0x16ab0d(_0x58ba9f,{'actions':_0x5652d8,'panel':_0x39833d['panel']}):null;}const Gr=_0x1a57e9(0x15a),Kr=_0x1a57e9(0x33a),qr=_0x1a57e9(0x2ef),Jr=_0x1a57e9(0x2cc),Yr=_0x1a57e9(0x1f9),Xr='sheets-shape-ui.ribbon.shape-format.arrange-front',Zr='sheets-shape-ui.ribbon.shape-format.arrange-back';function Qr(_0x3c8098){const _0x2abce5=_0x1a57e9;let _0x3f143b=_0x3c8098['get'](_0x1b8f46),_0x2d9606=_0x3c8098[_0x2abce5(0x272)](_0x3398d1),_0x32c7da=_0x3c8098[_0x2abce5(0x272)](_0x434a53);return new _0x96c1cf(_0x5c6983=>{const _0x28b007=_0x2abce5;let _0x53efce=()=>{const _0x5c8bf4=_0x4a8a;let _0x26b951=$r(_0x3c8098),_0x23f3ab=_0x26b951?_0x32c7da['getShapeDataById'](_0x26b951[_0x5c8bf4(0x264)],_0x26b951[_0x5c8bf4(0x29a)],_0x26b951[_0x5c8bf4(0x175)]):null;_0x5c6983[_0x5c8bf4(0x18c)](_0x23f3ab?_0x33cca3(_0x23f3ab)??'':'');},_0x1392fe=_0x2d9606[_0x28b007(0x268)][_0x28b007(0x23b)](_0x53efce),_0x570392=_0x3f143b[_0x28b007(0x13f)](_0x47001d=>{_0x47001d['id']===_0x926363['id']&&_0x53efce();});return _0x53efce(),()=>{const _0x11ca40=_0x28b007;_0x1392fe[_0x11ca40(0x2b4)](),_0x570392[_0x11ca40(0x32d)]();};});}function $r(_0x5b7438){const _0xc99882=_0x1a57e9;var _0x44f0eb;let _0x5f4889=_0x5b7438[_0xc99882(0x272)](_0x3398d1)[_0xc99882(0x15d)]();return _0x5f4889[_0xc99882(0x321)]===0x1&&((_0x44f0eb=_0x5f4889[0x0])==null?void 0x0:_0x44f0eb[_0xc99882(0x130)])===_0x3a939e[_0xc99882(0x35c)]?_0x5f4889[0x0]:null;}function ei(_0x230b3c,_0x389ab3=!0x1){const _0x2bbb32=_0x1a57e9;let _0x3cfb05=_0x230b3c['get'](_0x1b8f46),_0x376bc2=_0x230b3c[_0x2bbb32(0x272)](_0x3398d1),_0x16862c=_0x230b3c[_0x2bbb32(0x272)](_0x434a53);return new _0x96c1cf(_0x426859=>{const _0x3ba974=_0x2bbb32;let _0x1b2a8e=()=>{const _0x15e412=_0x4a8a;let _0xdd4e53=$r(_0x230b3c);if(!_0xdd4e53){_0x426859['next'](!0x0);return;}let _0x120dd5=_0x16862c[_0x15e412(0x335)](_0xdd4e53[_0x15e412(0x264)],_0xdd4e53[_0x15e412(0x29a)],_0xdd4e53[_0x15e412(0x175)]);_0x426859[_0x15e412(0x18c)](!_0x120dd5||_0x389ab3&&_0x120dd5[_0x15e412(0x192)]==null);},_0x1790da=_0x376bc2[_0x3ba974(0x268)][_0x3ba974(0x23b)](_0x1b2a8e),_0x767938=_0x3cfb05['onCommandExecuted'](_0x3b22a1=>{_0x3b22a1['id']===_0x926363['id']&&_0x1b2a8e();});return _0x1b2a8e(),()=>{const _0x5c39ff=_0x3ba974;_0x1790da['unsubscribe'](),_0x767938[_0x5c39ff(0x32d)]();};});}function ti(_0xd86885){const _0x77d7f0=_0x1a57e9;let _0x268e82=_0xd86885[_0x77d7f0(0x272)](_0x3398d1),_0x573d68=_0xd86885[_0x77d7f0(0x272)](_0x434a53);return _0x268e82[_0x77d7f0(0x268)][_0x77d7f0(0x15e)](_0x49a949(_0x268e82['getFocusDrawings']()),_0x1e6cce(()=>{const _0x3336be=_0x77d7f0;let _0x24ddee=$r(_0xd86885),_0x1bba53=_0x24ddee?_0x573d68[_0x3336be(0x34e)](_0x24ddee[_0x3336be(0x264)],_0x24ddee[_0x3336be(0x29a)],_0x24ddee['drawingId']):void 0x0;return _0x1bba53===void 0x0||_0x3863ab(_0x1bba53);}));}function ni(_0x54fed3){const _0xb58711=_0x1a57e9;return{'id':yr['id'],'type':_0x870bc4['SELECTOR'],'icon':_0xb58711(0x154),'title':_0xb58711(0x273),'tooltip':_0xb58711(0x273),'selections':[{'label':{'name':Ir,'hoverable':!0x1,'selectable':!0x1}}],'value$':Qr(_0x54fed3),'hidden$':ei(_0x54fed3)};}function ri(_0x1f2aff){const _0x4c3ecc=_0x1a57e9;return{'id':br['id'],'type':_0x870bc4[_0x4c3ecc(0x251)],'icon':_0x4c3ecc(0x342),'title':_0x4c3ecc(0x315),'tooltip':_0x4c3ecc(0x315),'slot':!0x0,'selections':[{'label':{'name':_0x27ef7f,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ti(_0x1f2aff)};}function ii(_0x21c7fe,_0x4eba13,_0x5d6aec=!0x1){const _0x5576c8=_0x1a57e9;return _0x569443=>({'id':_0x21c7fe,'type':_0x870bc4[_0x5576c8(0x1d9)],'label':{'name':_0x4eba13,'hoverable':!0x1,'selectable':!0x1},'hidden$':ei(_0x569443,_0x5d6aec)});}const ai=ii(Gr,Lr),oi=ii(Kr,Rr),si=ii(qr,zr,!0x0);function ci(_0x16acf2,_0x3c1b61,_0x3d09ce,_0x327ca2){const _0x69fc4d=_0x1a57e9;return _0x513dbd=>({'id':_0x16acf2,'commandId':_0x2b3290['id'],'type':_0x870bc4[_0x69fc4d(0x1d9)],'icon':_0x3d09ce,'title':_0x327ca2,'tooltip':_0x327ca2,'hidden$':ei(_0x513dbd),'params':()=>{const _0x4ce2fe=_0x69fc4d;let _0x468127=$r(_0x513dbd);return _0x468127?{'unitId':_0x468127[_0x4ce2fe(0x264)],'subUnitId':_0x468127[_0x4ce2fe(0x29a)],'drawingIds':[_0x468127[_0x4ce2fe(0x175)]],'arrangeType':_0x3c1b61}:void 0x0;}});}const li=ci(Jr,_0x292bd6[_0x1a57e9(0x2ea)],_0x1a57e9(0x1df),_0x1a57e9(0x1ea)),ui=ci(Yr,_0x292bd6[_0x1a57e9(0x12b)],'MoveDownIcon',_0x1a57e9(0x106)),di=ci(Xr,_0x292bd6[_0x1a57e9(0x2ee)],_0x1a57e9(0x372),_0x1a57e9(0x254)),fi=ci(Zr,_0x292bd6[_0x1a57e9(0x2b6)],_0x1a57e9(0x2d4),_0x1a57e9(0x29c));function pi(_0x5853b8){const _0x1e7385=_0x1a57e9;return{'id':_r['id'],'type':_0x870bc4[_0x1e7385(0x1d9)],'icon':_0x1e7385(0x271),'title':_0x1e7385(0x2d6),'tooltip':_0x1e7385(0x2d6),'hidden$':ei(_0x5853b8),'params':()=>{const _0x45d8ca=_0x1e7385;let _0x27134b=$r(_0x5853b8);return _0x27134b?{'unitId':_0x27134b['unitId'],'subUnitId':_0x27134b['subUnitId'],'drawingId':_0x27134b[_0x45d8ca(0x175)]}:void 0x0;}};}const mi={[_0x38bf7b[_0x1a57e9(0x127)]]:{[pr]:{'order':0x64,'title':_0x1a57e9(0x2d6),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[yr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':ni},[br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ri}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Gr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':ai}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Kr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':oi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Ar]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Pr},[jr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Fr},[Jr]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':li},[Yr]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ui},[Xr]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':di},[Zr]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':fi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':si}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[_r['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[_0x4879d7['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x5de80e}}}}},hi={[_0x624e4b[_0x1a57e9(0x23f)]]:{[lr['id']]:{'order':0x4,'menuItemFactory':Or}},[_0x624e4b[_0x1a57e9(0x1c4)]]:{[gr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':kr}},[_0x40b403['DRAWING']]:{[_0x5e36e3['OTHERS']]:{[Ar]:{'order':0x4,'menuItemFactory':Pr},[jr]:{'order':0x5,'menuItemFactory':Fr}}}};var gi=_0x1a57e9(0x336),_i=_0x1a57e9(0x146);const vi={'type':_0x42d4f6['OPERATION'],'id':_0x1a57e9(0x2f8),'handler'(){return!0x0;}},yi={};function bi(_0x3ac5d7){const _0x58a190=_0x1a57e9;return _0x3ac5d7[_0x58a190(0x22a)]()||void 0x0;}function xi(_0x2588fc,_0x5641ad,_0x4bb902){const _0x19879b=_0x1a57e9;var _0x5ca49b;return((_0x5ca49b=_0x2588fc[_0x19879b(0x313)])==null?void 0x0:_0x5ca49b[_0x19879b(0x22a)]())||_0x5163f8(_0x4bb902,_0x2a725c(_0x2588fc[_0x19879b(0x130)]))+'\x20'+(_0x5641ad+0x1);}function Si(){const _0x402bd1=_0x1a57e9;var _0x4a4d97;let _0x428338=_0x5ee9a9(_0x1d78e7),_0x1175e5=_0x5ee9a9(_0x1b8f46),_0x5740ed=_0x5ee9a9(_0x4b61f3),_0x241e80=_0x5ee9a9(_0x456a1c),_0x294940=_0x5ee9a9(_0x3398d1),_0x4b0e4f=_0x5ee9a9(_0xebded9),[,_0x3d3679]=_0x4911df(_0x2310f8=>_0x2310f8+0x1,0x0),_0x1c5af3=_0x5740ed['getCurrentUnitOfType'](_0x3d832c[_0x402bd1(0xf3)]),_0x28342f=(_0x1c5af3==null?void 0x0:_0x1c5af3['getUnitId']())??'',_0x2d6b28=(_0x1c5af3==null||(_0x4a4d97=_0x1c5af3[_0x402bd1(0x19e)]())==null?void 0x0:_0x4a4d97[_0x402bd1(0x369)]())??'',_0x53bfba=_0x263d75(()=>_0x294940[_0x402bd1(0x268)],_0x294940[_0x402bd1(0x15d)](),!0x1,[_0x294940]);_0x219537(()=>{const _0x5663ed=_0x402bd1;let _0x3a90e8=_0x1175e5['onCommandExecuted'](()=>_0x3d3679());return()=>_0x3a90e8[_0x5663ed(0x32d)]();},[_0x1175e5]);let _0x233557=_0xf2a45c(()=>_0x5dfe29(_0x428338),[_0x428338]),_0x160c55=_0x28342f&&_0x2d6b28?_0x241e80[_0x402bd1(0x35a)](_0x28342f,_0x2d6b28):{},_0x32f183=(_0x28342f&&_0x2d6b28?_0x241e80['getDrawingOrder'](_0x28342f,_0x2d6b28):[])['map'](_0xe80634=>_0x160c55[_0xe80634])['filter'](_0x15bb15=>!!_0x15bb15)[_0x402bd1(0x140)](),_0x3586a3=_0x32f183[_0x402bd1(0x31b)]((_0xe1eca5,_0x1c6940)=>(_0xe1eca5[_0x4c8a2b(_0x1c6940[_0x402bd1(0x130)])]+=0x1,_0xe1eca5),{'canvas':0x0,'floating':0x0}),_0x3bdf4a={'canvas':0x0,'floating':0x0},_0x1f12fe=_0x32f183[_0x402bd1(0x1a6)]((_0x311c06,_0x22bd93)=>{const _0x51da71=_0x402bd1;let _0x2155db=_0x4c8a2b(_0x311c06[_0x51da71(0x130)]),_0x58e494=_0x2155db===_0x182658,_0x43c294=_0x3bdf4a[_0x2155db]++;return{'id':_0x311c06[_0x51da71(0x175)],'name':xi(_0x311c06,_0x22bd93,_0x428338),'description':_0x311c06[_0x51da71(0x28c)],'visible':_0x311c06[_0x51da71(0x276)]!==!0x0,'selectable':_0x311c06[_0x51da71(0x317)]!==!0x1,'sectionId':_0x2155db,'sectionTitle':_0x58e494?_0x233557[_0x51da71(0x101)]:_0x233557['sectionCanvas'],'capabilities':_0x58e494?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x58e494&&_0x43c294>0x0,'canMoveBackward':!_0x58e494&&_0x43c294<_0x3586a3[_0x51da71(0x258)]-0x1,'canReorder':!_0x58e494};}),_0x39d96e=_0xf2a45c(()=>(_0x53bfba??[])[_0x402bd1(0xeb)](_0x225aa3=>_0x225aa3['unitId']===_0x28342f&&_0x225aa3[_0x402bd1(0x29a)]===_0x2d6b28)[_0x402bd1(0x1a6)](_0x45034f=>_0x45034f[_0x402bd1(0x175)]),[_0x53bfba,_0x2d6b28,_0x28342f]),_0x396715=_0x39d96e[_0x39d96e[_0x402bd1(0x321)]-0x1]??null,_0x2dad32=_0x174835=>_0x241e80[_0x402bd1(0x223)]({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x174835})??null,_0x291ef3=async _0x30a65e=>{const _0x3841e6=_0x402bd1;!_0x28342f||!_0x30a65e['length']||await _0x1175e5[_0x3841e6(0x311)](_0x5613c7['id'],{'unitId':_0x28342f,'drawings':_0x30a65e});},_0x167dff=async(_0x439e42,_0x4b62be)=>{_0x2dad32(_0x439e42)&&await _0x291ef3([{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x439e42,..._0x4b62be}]);},_0x4de035=(_0x717bf3,_0x36871b)=>{const _0x14ece1=_0x402bd1;if(!_0x28342f||!_0x2d6b28)return;let _0x1de075=_0x36871b?_0x39d96e[_0x14ece1(0x14d)](_0x717bf3)?_0x39d96e[_0x14ece1(0xeb)](_0x64b8b=>_0x64b8b!==_0x717bf3):[..._0x39d96e,_0x717bf3]:[_0x717bf3];_0x1175e5[_0x14ece1(0x297)](_0x158934['id'],_0x1de075[_0x14ece1(0x1a6)](_0x145b43=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x145b43})));let _0x1d8fcf=_0x1de075[_0x1de075['length']-0x1];_0x1d8fcf?_0x4d4798(_0x4b0e4f,{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x1d8fcf}):_0x4b95c2(_0x4b0e4f,_0x28342f);},_0x1e4dd5=async(_0x880a1c,_0x3a439b)=>{const _0x5f07d5=_0x402bd1;await _0x291ef3(_0x880a1c['map'](_0x510661=>_0x2dad32(_0x510661))['filter'](_0x1f7982=>!!_0x1f7982)[_0x5f07d5(0xeb)](_0x2107e5=>_0x2107e5['hidden']!==!0x0!==_0x3a439b)['map'](_0x4257ec=>({'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingId':_0x4257ec[_0x5f07d5(0x175)],'hidden':!_0x3a439b})));},_0x1d59ff=async _0x120aec=>{const _0x1da605=_0x402bd1;let _0x281fd4=_0x2dad32(_0x120aec);_0x281fd4&&await _0x167dff(_0x120aec,{'selectable':_0x281fd4[_0x1da605(0x317)]===!0x1&&void 0x0});},_0x326c77=async(_0x7d5db4,_0x5c6a74)=>{const _0x126773=_0x402bd1;var _0x17a62f;let _0x3cf3c2=bi(_0x5c6a74);(((_0x17a62f=_0x2dad32(_0x7d5db4))==null?void 0x0:_0x17a62f[_0x126773(0x313)])??void 0x0)!==_0x3cf3c2&&await _0x167dff(_0x7d5db4,{'name':_0x3cf3c2});},_0x4ad53b=async(_0xb1d397,_0x43b07b)=>{const _0x3d23f0=_0x402bd1;var _0x1d4989;let _0x447e06=bi(_0x43b07b);(((_0x1d4989=_0x2dad32(_0xb1d397))==null?void 0x0:_0x1d4989[_0x3d23f0(0x28c)])??void 0x0)!==_0x447e06&&await _0x167dff(_0xb1d397,{'description':_0x447e06});},_0x262fb3=async(_0x13c7e3,_0x53b16c)=>{const _0x363993=_0x402bd1;!_0x28342f||!_0x2d6b28||await _0x1175e5[_0x363993(0x311)](_0x2b3290['id'],{'unitId':_0x28342f,'subUnitId':_0x2d6b28,'drawingIds':[_0x13c7e3],'arrangeType':_0x53b16c});};return!_0x28342f||!_0x2d6b28?_0x16ab0d(_0x402bd1(0x269),{'className':_0x402bd1(0x253),'children':_0x233557[_0x402bd1(0x196)]}):_0x16ab0d(_0x3b8f7e,{'items':_0x1f12fe,'selectedIds':_0x39d96e,'focusedId':_0x396715,'labels':_0x233557,'onSelect':_0x4de035,'onSetVisible':_0x1e4dd5,'onCommitName':_0x326c77,'onCommitDescription':_0x4ad53b,'onMoveForward':async _0x531ce0=>_0x262fb3(_0x531ce0,_0x292bd6[_0x402bd1(0x2ea)]),'onMoveBackward':async _0x35318d=>_0x262fb3(_0x35318d,_0x292bd6[_0x402bd1(0x12b)]),'onToggleSelectable':_0x1d59ff});}let Ci=class{constructor(_0x39e744){const _0x1067b0=_0x1a57e9;this[_0x1067b0(0x12c)]=_0x39e744;}['updateShapeFillImage'](_0x177a1b,_0x57ab7c){const _0x532c23=_0x1a57e9;let _0xe4966b=this[_0x532c23(0x12c)]['getRenderUnitById'](_0x177a1b[_0x532c23(0x264)]),_0xee2b7d=_0xe4966b==null?void 0x0:_0xe4966b[_0x532c23(0x21b)];if(!_0xee2b7d)return;let _0x458588=_0x238087(_0x177a1b),_0x2d3fb0=_0xee2b7d[_0x532c23(0x14f)](_0x458588);_0x2d3fb0==null||_0x2d3fb0[_0x532c23(0xf1)](_0x57ab7c);}};Ci=Z([X(0x0,_0xebded9)],Ci);function wi(){const _0x294d61=_0x1a57e9;let _0xcac702=_0x5ee9a9(_0x3398d1),_0x5e28e2=_0x263d75(()=>_0xcac702[_0x294d61(0x268)],_0xcac702[_0x294d61(0x15d)](),!0x1,[_0xcac702]);return _0x5e28e2['length']===0x0?null:_0x16ab0d('div',{'children':_0x3ef962(_0x294d61(0x269),{'className':_0x294d61(0x12f),'children':[_0x16ab0d(_0x31e0d1,{'drawings':_0x5e28e2,'hasCropper':!0x1}),_0x16ab0d(_0x5c8aef,{'drawings':_0x5e28e2})]})});}function Ti(_0x1ebb90){let {unitId:_0x5247c7,subUnitId:_0x156933,shapeId:_0xc21fa}=_0x1ebb90,_0x1f67f0=_0x5ee9a9(_0x1b8f46),_0x1a9491=_0x5ee9a9(Ci);return _0x16ab0d(_0x3b0964,{..._0x1ebb90,'positionEditor':_0x16ab0d(wi,{}),'onUpdateShapeData':(_0x4c78ee,_0x3faec1)=>{$n(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x4c78ee,_0x3faec1);},'onUpdateLineShapeData':(_0x2b3ccf,_0xe548c4)=>{er(_0x1f67f0,_0x5247c7,_0x156933,_0xc21fa,_0x2b3ccf,_0xe548c4);},'onUpdateShapeFillImage':_0x149497=>{const _0x5a3311=_0x4a8a;_0x1a9491[_0x5a3311(0x356)]({'unitId':_0x5247c7,'subUnitId':_0x156933,'drawingId':_0xc21fa},_0x149497);}});}function Ei(_0x306392){const _0x4d57b5=_0x1a57e9;let _0x5c191c=_0x5ee9a9(_0x23dc66),_0x22d5cb=_0x263d75(()=>_0x5c191c[_0x4d57b5(0x220)],_0x5c191c[_0x4d57b5(0x170)](),!0x1,[_0x5c191c]),_0x3e8ff4=_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x132)];return!_0x3e8ff4||!_0x22d5cb?null:_0x16ab0d(Di,{..._0x3e8ff4,'canvasElement':_0x306392[_0x4d57b5(0x1eb)][_0x4d57b5(0x18b)]});}function Di(_0x4594b7){const _0x5a0936=_0x1a57e9;let _0x4dbd15=_0x5ee9a9(_0x1b8f46),_0x48430c=_0x5ee9a9(_0x434a53),{unitId:_0x1bb0cc,subUnitId:_0x39ba9f,drawingId:_0x4ce723,drawingType:_0x266799,shapeType:_0x5b5fd3}=_0x4594b7,[_0x5f118d,_0x50e987]=_0x440ee1(_0x4594b7['shapeData']),_0x5ad70c=_0xf2a45c(()=>_0xf96880(_0x5f118d),[_0x5f118d]),_0x319153=_0xf2a45c(()=>_0x5702b3(_0x5f118d),[_0x5f118d]);_0x219537(()=>{const _0x36339=_0x4a8a;let _0x193106=_0x4dbd15[_0x36339(0x13f)](_0x5048f3=>{const _0x598462=_0x36339;if(_0x5048f3['id']!==_0x926363['id'])return;let _0x2aba53=_0x48430c[_0x598462(0x335)](_0x1bb0cc,_0x39ba9f,_0x4ce723);_0x2aba53&&_0x50e987(_0x2aba53);});return()=>_0x193106['dispose']();},[_0x4dbd15,_0x4ce723,_0x48430c,_0x39ba9f,_0x1bb0cc]);let _0xa1a541=_0xc3a7ab=>{_0x50e987(_0x2208e3=>({..._0x2208e3,..._0xc3a7ab}));},_0x51b521=_0x95e109=>{const _0x342437=_0x4a8a;let _0x43ffc7=_0x39d59f(_0x5f118d,_0x95e109);$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'shapeText':_0x5f118d[_0x342437(0x1b2)]}},_0x43ffc7),_0xa1a541(_0x43ffc7);},_0x11916f=_0x34ed3a({'hostType':_0x3d832c['UNIVER_SHEET'],'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'shapeId':_0x4ce723,'shapeData':_0x5f118d,'onUpdateBinding':_0x3a9522=>{const _0x5b5dbb=_0x4a8a;let _0x487f29={'formulaBinding':_0x3a9522};$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,{'oldShapeData':{'formulaBinding':_0x5f118d[_0x5b5dbb(0x192)]}},_0x487f29),_0xa1a541(_0x487f29);}});return _0x3ef962(_0x8b4743,{'children':[_0x16ab0d(_0x9de617,{'canvasElement':_0x4594b7[_0x5a0936(0x18b)],'shapeData':_0x5f118d,'shapeType':_0x5b5fd3,'textStyle':{'ff':_0x496afe[_0x5a0936(0x1b2)][_0x5a0936(0x33f)],'fs':_0x496afe['shapeText']['fontSize'],'cl':{'rgb':_0x496afe[_0x5a0936(0x1b2)]['color']},..._0x5ad70c},'textModel':_0x319153?{'ha':_0x319153['ha']??_0x59b547[_0x5a0936(0x357)],'va':_0x319153['va']??_0x12d55d[_0x5a0936(0x2eb)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x496afe[_0x5a0936(0x244)],'defaultGradientEndColor':_0x496afe[_0x5a0936(0x25e)],'defaultStrokeColor':_0x496afe[_0x5a0936(0x24e)],'extensionGroups':_0x11916f[_0x5a0936(0x17f)],'onUpdateShapeData':(_0x4b7b87,_0x228b8b)=>{$n(_0x4dbd15,_0x1bb0cc,_0x39ba9f,_0x4ce723,_0x4b7b87,_0x228b8b),_0x228b8b&&_0xa1a541(_0x228b8b);},'onUpdateText':_0x51b521,'onOpenPanel':()=>{const _0x51ac5c=_0x5a0936;_0x4dbd15[_0x51ac5c(0x311)](_r['id'],{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723});},'onDelete':()=>{_0x4dbd15['executeCommand'](_0x475856['id'],{'unitId':_0x1bb0cc,'drawings':[{'unitId':_0x1bb0cc,'subUnitId':_0x39ba9f,'drawingId':_0x4ce723,'drawingType':_0x266799}]});}}),_0x11916f['panel']]});}var Oi=class extends _0x458cfa{constructor(..._0x5cf9fe){const _0x33b0ab=_0x1a57e9;super(..._0x5cf9fe),Y(this,_0x33b0ab(0x2ba),new _0x266901(null)),Y(this,_0x33b0ab(0x31d),this[_0x33b0ab(0x2ba)][_0x33b0ab(0x1ad)]()),Y(this,_0x33b0ab(0x17e),new _0x266901(!0x1)),Y(this,_0x33b0ab(0x350),this[_0x33b0ab(0x17e)]['asObservable']());}['dispose'](){const _0x4cf892=_0x1a57e9;this[_0x4cf892(0x2ba)][_0x4cf892(0x18c)](null),this[_0x4cf892(0x2ba)][_0x4cf892(0x1af)](),this['_onSavingEditorData$'][_0x4cf892(0x18c)](!0x1),this[_0x4cf892(0x17e)][_0x4cf892(0x1af)](),super[_0x4cf892(0x32d)]();}[_0x1a57e9(0x289)](_0x23dafc){const _0x29e6f7=_0x1a57e9;this['_editingParams$'][_0x29e6f7(0x18c)](_0x23dafc),_0x23dafc??this[_0x29e6f7(0x17e)][_0x29e6f7(0x18c)](!0x1);}['setOnSavingEditorData'](_0x30558f){const _0x3bf4d5=_0x1a57e9;this['_onSavingEditorData$'][_0x3bf4d5(0x18c)](_0x30558f);}[_0x1a57e9(0x1ac)](){const _0x8a3f10=_0x1a57e9;return this['_editingParams$'][_0x8a3f10(0x211)]();}[_0x1a57e9(0x358)](_0x7323dd){const _0x557c98=_0x1a57e9;this[_0x557c98(0x1ac)]()&&(this[_0x557c98(0x34f)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x1a57e9(0x252)](){const _0x1e4c4f=_0x1a57e9;this[_0x1e4c4f(0x1ac)]()&&this[_0x1e4c4f(0x289)](null);}};function ki(_0x1b6fa7){const _0x4d88c3=_0x1a57e9;return!!_0x1b6fa7&&_0x4d88c3(0x2d5)in _0x1b6fa7&&'sheetTransform'in _0x1b6fa7;}const Ai=_0x42eeaf(()=>{const _0xae26b2=_0x1a57e9;let _0x1a493f=_0x5ee9a9(Oi),_0x7abe41=_0x5ee9a9(_0x434a53),_0x497d1f=_0x5ee9a9(_0x3398d1),_0x3b9949=_0x5ee9a9(_0x1b8f46),_0x518a50=_0x5ee9a9(_0x59f03b),_0x2125dd=_0x5ee9a9(_0xebded9);return _0x16ab0d(_0x15f4f4,{'adapter':_0xf2a45c(()=>({'getShapeModel':(_0x378f8a,_0x436d5f,_0x38ae43)=>_0x7abe41[_0xae26b2(0x29e)](_0x378f8a,_0x436d5f,_0x38ae43),'getShapeData':(_0x4a5e2c,_0x4a4f2a,_0x4afa7c)=>_0x7abe41['getShapeDataById'](_0x4a5e2c,_0x4a4f2a,_0x4afa7c),'getDrawingTransform':(_0x513bf7,_0x3e30c,_0x54f56d)=>{const _0x49146f=_0xae26b2;let _0x5ab555=_0x497d1f[_0x49146f(0x223)]({'unitId':_0x513bf7,'subUnitId':_0x3e30c,'drawingId':_0x54f56d});return _0x5ab555==null?void 0x0:_0x5ab555['transform'];},'updateShapeText':({unitId:_0x220ec8,subUnitId:_0x3710e1,shapeId:_0x48b7ac,shapeText:_0x5547ab,oldShapeText:_0x68d619,hostSize:_0x868461})=>{_0x518a50['run'](_0x220ec8,()=>{const _0x49f6b8=_0x4a8a;var _0x463bca;let _0x27e00d=_0x3b9949[_0x49f6b8(0x297)](Qn['id'],{'unitId':_0x220ec8,'subUnitId':_0x3710e1,'shapeId':_0x48b7ac,'shapeData':{'shapeText':_0x5547ab},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x68d619}}});if(!_0x27e00d||!_0x868461)return _0x27e00d;let _0xe40a41=_0x497d1f[_0x49f6b8(0x223)]({'unitId':_0x220ec8,'subUnitId':_0x3710e1,'drawingId':_0x48b7ac}),_0x161015=_0xe40a41==null?void 0x0:_0xe40a41[_0x49f6b8(0x2b2)];if(!ki(_0xe40a41)||!_0x161015)return!0x1;let _0x535344={..._0x161015,'width':_0x868461[_0x49f6b8(0x1a3)],'height':_0x868461['height']},_0x3fae86=(_0x463bca=_0x2125dd['getRenderUnitById'](_0x220ec8))==null||(_0x463bca=_0x463bca[_0x49f6b8(0x346)](_0x2bd201)['getSkeletonParam'](_0x3710e1))==null?void 0x0:_0x463bca[_0x49f6b8(0x27d)];return _0x3b9949[_0x49f6b8(0x297)](_0x5613c7['id'],{'unitId':_0x220ec8,'drawings':[{..._0xe40a41,'transform':_0x535344,'sheetTransform':_0x3fae86?_0x15b6d5(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x173)]:_0xe40a41[_0x49f6b8(0x173)],'axisAlignSheetTransform':_0x3fae86?_0x2e83e9(_0x535344,_0x3fae86)??_0xe40a41[_0x49f6b8(0x2d5)]:_0xe40a41[_0x49f6b8(0x2d5)]}]});});},'updateHostSize':({unitId:_0x1fda02,subUnitId:_0x254974,shapeId:_0x3671c5,width:_0x59b238,height:_0x346735})=>{const _0x11b236=_0xae26b2;var _0x789757;let _0x2bb51d=_0x497d1f[_0x11b236(0x223)]({'unitId':_0x1fda02,'subUnitId':_0x254974,'drawingId':_0x3671c5}),_0x5a52d7=_0x2bb51d==null?void 0x0:_0x2bb51d['transform'];if(!ki(_0x2bb51d)||!_0x5a52d7)return;let _0x9752b3={..._0x5a52d7,'width':_0x59b238,'height':_0x346735},_0x2b7e77=(_0x789757=_0x2125dd[_0x11b236(0x174)](_0x1fda02))==null||(_0x789757=_0x789757[_0x11b236(0x346)](_0x2bd201)['getSkeletonParam'](_0x254974))==null?void 0x0:_0x789757[_0x11b236(0x27d)],_0x58557d=_0x2b7e77?_0x15b6d5(_0x9752b3,_0x2b7e77)??_0x2bb51d['sheetTransform']:_0x2bb51d[_0x11b236(0x173)],_0x260536=_0x2b7e77?_0x2e83e9(_0x9752b3,_0x2b7e77)??_0x2bb51d['axisAlignSheetTransform']:_0x2bb51d[_0x11b236(0x2d5)];_0x3b9949[_0x11b236(0x311)](_0x5613c7['id'],{'unitId':_0x1fda02,'drawings':[{..._0x2bb51d,'transform':_0x9752b3,'sheetTransform':_0x58557d,'axisAlignSheetTransform':_0x260536}]});},'allowHostSizeShrink':({unitId:_0x569884,subUnitId:_0x26cf34,shapeId:_0x24b67e})=>_0x5e39fb(_0x7abe41['getShapeDataById'](_0x569884,_0x26cf34,_0x24b67e)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3b9949,_0x497d1f,_0x2125dd,_0x7abe41,_0x518a50]),'editingService':_0x1a493f,'editorUnitId':mr,'positionOptions':_0xf2a45c(()=>({'viewportKeys':{'main':_0x3bda53[_0xae26b2(0x28b)],'leftTop':_0x3bda53[_0xae26b2(0x20c)],'top':_0x3bda53[_0xae26b2(0x245)],'left':_0x3bda53[_0xae26b2(0x234)]},'getSkeleton':(_0x4fc364,_0x56630e)=>{const _0x31d640=_0xae26b2;var _0x38468a;return((_0x38468a=_0x4fc364[_0x31d640(0x346)](_0x2bd201)[_0x31d640(0xe8)](_0x56630e[_0x31d640(0x29a)]))==null?void 0x0:_0x38468a[_0x31d640(0x27d)])??null;}}),[])});});let ji=class extends _0x458cfa{constructor(_0xab53e4,_0x21181a){const _0x454688=_0x1a57e9;super(),this['_componentManager']=_0xab53e4,this[_0x454688(0x2f2)]=_0x21181a,this['_registerIcons'](),this[_0x454688(0x299)]();}['_registerIcons'](){const _0x1d8069=_0x1a57e9;this['_iconManager'][_0x1d8069(0x32e)]('ObjectLayersIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'ObjectLayersIcon':_0x2546c5})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)](_0x1d8069(0x1de))||this[_0x1d8069(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x30efc9})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x19f))||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)]['register']({'FlipVerticalIcon':_0x1612fb})),this[_0x1d8069(0x2f2)]['has']('BottomIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'BottomIcon':_0x4b6104})),this['_iconManager']['has']('MoveDownIcon')||this[_0x1d8069(0x2db)](this[_0x1d8069(0x2f2)][_0x1d8069(0x168)]({'MoveDownIcon':_0x5775eb})),this[_0x1d8069(0x2f2)][_0x1d8069(0x32e)]('MoveUpIcon')||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'MoveUpIcon':_0x4ab29f})),this['_iconManager'][_0x1d8069(0x32e)](_0x1d8069(0x271))||this['disposeWithMe'](this['_iconManager'][_0x1d8069(0x168)]({'ShapeFormatSettingIcon':_0x2b4e9a})),this[_0x1d8069(0x2f2)]['has'](_0x1d8069(0x372))||this[_0x1d8069(0x2db)](this['_iconManager'][_0x1d8069(0x168)]({'TopmostIcon':_0x11f074}));}[_0x1a57e9(0x299)](){const _0x3e68e8=_0x1a57e9;this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](ur,Ti)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)]['register'](dr,Si)),this['disposeWithMe'](this['_componentManager'][_0x3e68e8(0x168)](Sr,Dr)),this[_0x3e68e8(0x2db)](this['_componentManager']['register'](Cr,Tr)),this['_componentManager'][_0x3e68e8(0x272)](_0x5f0802)||this['disposeWithMe'](this[_0x3e68e8(0x35b)]['register'](_0x5f0802,Er)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](fr,Ei)),this['disposeWithMe'](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Lr,Vr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](Ir,Hr)),this[_0x3e68e8(0x2db)](this['_componentManager'][_0x3e68e8(0x168)](Rr,Ur)),this['disposeWithMe'](this['_componentManager']['register'](zr,Wr)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](hr,_0x2bc136)),this[_0x3e68e8(0x2db)](this[_0x3e68e8(0x35b)][_0x3e68e8(0x168)](_0x3e68e8(0x201),Ai));}};ji=Z([X(0x0,_0x236d5e(_0x3377c6)),X(0x1,_0x236d5e(_0x5e4ceb))],ji);let Mi=class extends _0x458cfa{constructor(_0x14b179,_0x3ed721,_0x1d5257,_0x230346,_0x19a17b){const _0x150254=_0x1a57e9;super(),this[_0x150254(0x339)]=_0x14b179,this[_0x150254(0x218)]=_0x3ed721,this['_renderManagerService']=_0x1d5257,this[_0x150254(0x224)]=_0x230346,this[_0x150254(0x1cf)]=_0x19a17b,Y(this,'_activeImageId',null),Y(this,'_unitId',null),Y(this,_0x150254(0x283),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x150254(0x243),[]),Y(this,_0x150254(0x1c8),0x0),Y(this,'_baseTop',0x0),Y(this,_0x150254(0x135),0x0),Y(this,'_baseHeight',0x0),Y(this,_0x150254(0x328),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x150254(0x2a6),void 0x0),Y(this,_0x150254(0x281),void 0x0),Y(this,_0x150254(0x2f0),!0x1),this[_0x150254(0x361)](),this[_0x150254(0x27b)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x1a57e9(0x270)](){const _0x127f52=_0x1a57e9;this['_clearControls'](),this[_0x127f52(0x2ec)](!0x0);}[_0x1a57e9(0x31e)](_0x11a3a9,_0x315a27,_0x46f92b,_0x1b7dcf){const _0x8c1cc8=_0x1a57e9;let _0x453100=_0x11a3a9;if(_0x453100!==_0x2d2111['None']&&_0x11a3a9!==_0x8c1cc8(0x2e1))try{let _0xdbd11=new _0x300a94(_0x453100,_0x8c1cc8(0x362)+_0x11a3a9);return _0x1b7dcf&&_0xdbd11[_0x8c1cc8(0x182)]({'adjustValues':_0x1b7dcf},!0x0),_0xdbd11[_0x8c1cc8(0x216)]({'width':_0x315a27,'height':_0x46f92b}),_0xdbd11;}catch{return;}}[_0x1a57e9(0x330)](_0x334e51,_0x4820ee,_0x4ab1e1){const _0x8d97a1=_0x1a57e9;let _0x299437={'unitId':_0x334e51,'subUnitId':_0x4820ee,'drawingId':_0x4ab1e1},_0x2a632d=this[_0x8d97a1(0x218)][_0x8d97a1(0x223)](_0x299437);if(!(!_0x2a632d||_0x2a632d[_0x8d97a1(0x130)]!==_0x3a939e[_0x8d97a1(0x162)]))return _0x2a632d;}[_0x1a57e9(0x1f0)](_0x3eca34,_0x12c9a4,_0x4277b5){const _0x6f108c=_0x1a57e9;let _0x8cf830=this[_0x6f108c(0x12c)][_0x6f108c(0x174)](_0x3eca34);if(!_0x8cf830)return;let {scene:_0x22864}=_0x8cf830,_0x279f95=_0x238087({'unitId':_0x3eca34,'subUnitId':_0x12c9a4,'drawingId':_0x4277b5}),_0x125297=_0x22864[_0x6f108c(0x33b)](_0x279f95);if(_0x125297 instanceof _0x5621f4){let _0x217ad1=_0x125297[_0x6f108c(0x11e)];if(_0x217ad1)return{'prstGeom':_0x217ad1,'adjustValues':_0x125297[_0x6f108c(0x30a)]};}}[_0x1a57e9(0x2ec)](_0x393fba=!0x1){const _0x453742=_0x1a57e9;if(!this[_0x453742(0xec)]||!this['_subUnitId']||!this[_0x453742(0x2bf)])return;let _0x29a7a6=this['_renderManagerService']['getRenderUnitById'](this[_0x453742(0xec)]);if(!_0x29a7a6||!_0x29a7a6[_0x453742(0x346)](_0x2bd201)[_0x453742(0x16a)]())return;let {scene:_0x33e408}=_0x29a7a6,_0x38a3cf=this[_0x453742(0x330)](this[_0x453742(0xec)],this[_0x453742(0x283)],this['_activeImageId']);if(!_0x38a3cf)return;let {transform:_0x2b0253}=_0x38a3cf;if(!_0x2b0253)return;let {left:_0x1e2b3c,top:_0x938a7b,width:_0x59f993,height:_0x2e1cbc,flipX:_0x3a40d2,flipY:_0x5b55af,angle:_0x2f35a8=0x0}=_0x2b0253;if(_0x1e2b3c===void 0x0||_0x938a7b===void 0x0)return;let _0x294a82=this[_0x453742(0x1f0)](this[_0x453742(0xec)],this['_subUnitId'],this[_0x453742(0x2bf)]);if(!_0x294a82)return;if(_0x393fba){let _0x45dd24=this[_0x453742(0x31e)](_0x294a82[_0x453742(0x11e)],_0x59f993||0x0,_0x2e1cbc||0x0,_0x294a82[_0x453742(0x184)]);if(!_0x45dd24)return;this[_0x453742(0x2c6)]=_0x45dd24[_0x453742(0x18d)]();}let _0xa23e20=this[_0x453742(0x2c6)];if(!(!_0xa23e20||_0xa23e20['length']===0x0))for(let _0x423102=0x0;_0x423102<_0xa23e20[_0x453742(0x321)];_0x423102++){let _0x12f027=_0xa23e20[_0x423102],_0x4f9bf7=_0x12f027['x'],_0x4529ee=_0x12f027['y'];if(_0x3a40d2&&(_0x4f9bf7=(_0x59f993||0x0)-_0x4f9bf7),_0x5b55af&&(_0x4529ee=(_0x2e1cbc||0x0)-_0x4529ee),_0x2f35a8!==0x0){let _0x44d778=(_0x59f993||0x0)/0x2,_0x581067=(_0x2e1cbc||0x0)/0x2,_0x17098c=_0x2f35a8*Math['PI']/0xb4,_0x5367f4=Math['cos'](_0x17098c),_0x12c4e9=Math[_0x453742(0x334)](_0x17098c),_0x4b00b7=_0x4f9bf7-_0x44d778,_0x4d7dd9=_0x4529ee-_0x581067;_0x4f9bf7=_0x44d778+(_0x4b00b7*_0x5367f4-_0x4d7dd9*_0x12c4e9),_0x4529ee=_0x581067+(_0x4b00b7*_0x12c4e9+_0x4d7dd9*_0x5367f4);}let _0x38fc45={'x':_0x4f9bf7,'y':_0x4529ee,'adjName':_0x12f027[_0x453742(0x18a)]};this['_addControl'](_0x33e408,_0x38fc45,_0x38fc45[_0x453742(0x18a)],_0x1e2b3c,_0x938a7b,this[_0x453742(0xec)],this['_subUnitId']);}}[_0x1a57e9(0x275)](_0x225e60,_0x21d17b,_0x58eea0,_0x23245c,_0x4789e6,_0x519653,_0x23604e){const _0x296c1a=_0x1a57e9;if(!this[_0x296c1a(0x2bf)])return;let _0x202d86='image-clip-adjust-point-'+this['_activeImageId']+'-'+_0x58eea0,_0x3dc58f=_0x225e60[_0x296c1a(0x14f)](_0x202d86);if(_0x3dc58f){_0x3dc58f[_0x296c1a(0x20e)]({'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe['adjHandleSize']});return;}let _0x5107fc=new or(_0x202d86,{'left':_0x21d17b['x']+_0x23245c-_0x496afe[_0x296c1a(0x373)],'top':_0x21d17b['y']+_0x4789e6-_0x496afe[_0x296c1a(0x373)],'adjName':_0x58eea0,'shapeId':this['_activeImageId'],'unitId':_0x519653,'subUnitId':_0x23604e,'width':_0x496afe[_0x296c1a(0x373)]+0x8,'height':_0x496afe[_0x296c1a(0x373)]+0x8,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x296c1a(0x243)]['push'](_0x5107fc),this[_0x296c1a(0x1e5)](_0x5107fc,_0x225e60,_0x58eea0),_0x225e60[_0x296c1a(0x199)](_0x5107fc,_0x5ad001+0x1);}[_0x1a57e9(0x2a9)](){const _0x2551a4=_0x1a57e9;this['_shapes'][_0x2551a4(0x321)]!==0x0&&(this[_0x2551a4(0x243)][_0x2551a4(0x21e)](_0x9d536b=>_0x9d536b[_0x2551a4(0x32d)]()),this[_0x2551a4(0x243)]=[]);}['_getScrollInfo'](_0x1823e7,_0x315429){const _0x1c770f=_0x1a57e9;var _0x393a07;let _0xceb5d5={'x':0x0,'y':0x0},_0x501e7c=this[_0x1c770f(0x12c)][_0x1c770f(0x174)](_0x1823e7);if(!_0x501e7c||!_0x501e7c[_0x1c770f(0x346)](_0x2bd201)['getSkeleton'](_0x315429))return _0xceb5d5;let _0x19e5a1=_0x501e7c[_0x1c770f(0x346)](_0x56e08d),_0x135bf9=_0x19e5a1==null?void 0x0:_0x19e5a1[_0x1c770f(0x36e)]();if(!_0x135bf9)return _0xceb5d5;let _0x2a9d49=(_0x393a07=this[_0x1c770f(0x224)][_0x1c770f(0x2d8)](_0x1823e7))==null?void 0x0:_0x393a07[_0x1c770f(0x1bc)](_0x315429);if(!_0x2a9d49)return _0xceb5d5;let _0x30db06=_0x56ed68(_0x135bf9[_0x1c770f(0x2b0)],_0x135bf9[_0x1c770f(0x34c)],_0x501e7c[_0x1c770f(0x21b)],_0x2a9d49);return _0x30db06?{'x':_0x30db06[_0x1c770f(0x2b5)],'y':_0x30db06[_0x1c770f(0x195)]}:_0xceb5d5;}[_0x1a57e9(0x225)](_0x45506d,_0x5bf8ab){const _0x406340=_0x1a57e9;var _0x5e6dc0;let _0x39109b=(_0x5e6dc0=this['_univerInstanceService'][_0x406340(0x2d8)](_0x45506d))==null?void 0x0:_0x5e6dc0[_0x406340(0x1bc)](_0x5bf8ab);return(_0x39109b==null?void 0x0:_0x39109b[_0x406340(0x242)]())??0x1;}[_0x1a57e9(0x1e5)](_0x390ef1,_0x241770,_0x1350ea){const _0x47055f=_0x1a57e9;this[_0x47055f(0x2db)](_0x3ee632(_0x390ef1['onPointerDown$'][_0x47055f(0x18f)]((_0x2694c0,_0x503e0e)=>{const _0x1ddf29=_0x47055f;var _0x8c4e80,_0x21e2f0,_0xe9703;let {unitId:_0x322583,subUnitId:_0x506cf1,drawingId:_0x3db7d6}=_0x390ef1[_0x1ddf29(0x2e8)](),_0x2bc7ba=this[_0x1ddf29(0x330)](_0x322583,_0x506cf1,_0x3db7d6);if(!(_0x2bc7ba!=null&&_0x2bc7ba['transform']))return;let {left:_0x53bd8d,top:_0x37a88d,width:_0x2cd662,height:_0x6f0b8c}=_0x2bc7ba['transform'];this[_0x1ddf29(0x1c8)]=_0x53bd8d||0x0,this[_0x1ddf29(0x145)]=_0x37a88d||0x0,this[_0x1ddf29(0x135)]=_0x2cd662||0x0,this[_0x1ddf29(0x2c2)]=_0x6f0b8c||0x0;let _0x269deb=!!((_0x8c4e80=_0x2bc7ba[_0x1ddf29(0x2b2)])!=null&&_0x8c4e80[_0x1ddf29(0xfd)]),_0x491b23=!!((_0x21e2f0=_0x2bc7ba['transform'])!=null&&_0x21e2f0[_0x1ddf29(0x352)]),_0x240633=((_0xe9703=_0x2bc7ba[_0x1ddf29(0x2b2)])==null?void 0x0:_0xe9703['angle'])||0x0,_0x28d1e7=this['_getImagePrstGeom'](_0x322583,_0x506cf1,_0x3db7d6);if(!_0x28d1e7)return;let _0x49ef13=this[_0x1ddf29(0x31e)](_0x28d1e7['prstGeom'],this[_0x1ddf29(0x135)],this[_0x1ddf29(0x2c2)],_0x28d1e7[_0x1ddf29(0x184)]);if(!_0x49ef13||(this['_activeShapeModel']=_0x49ef13,this['_activeAdjustInfo']=_0x49ef13[_0x1ddf29(0x261)](_0x1350ea),!this[_0x1ddf29(0x35f)]))return;this[_0x1ddf29(0x328)]=!0x0,_0x241770[_0x1ddf29(0x2e3)]();let _0x3a34ac=_0x28d1e7['prstGeom'];this[_0x1ddf29(0x2a6)]=_0x241770[_0x1ddf29(0x117)][_0x1ddf29(0x18f)]((_0x1a7d30,_0x55afd8)=>{const _0x528ea4=_0x1ddf29;if(!this[_0x528ea4(0x328)])return;let {offsetX:_0x1ab73e,offsetY:_0x3e40fa}=_0x1a7d30,_0x175a01=this[_0x528ea4(0x35f)];if(!this[_0x528ea4(0x295)]||!_0x175a01)return;_0x241770[_0x528ea4(0x2e3)](),_0x241770['setCursor'](_0xee2861[_0x528ea4(0x266)]);let _0x38a1ae={'left':0x0,'top':0x0,'width':this[_0x528ea4(0x135)],'height':this[_0x528ea4(0x2c2)]},_0x525d7a=this[_0x528ea4(0x248)](_0x322583,_0x506cf1),_0x3be621=this[_0x528ea4(0x225)](_0x322583,_0x506cf1),_0x4b9a00=_0x1ab73e/_0x3be621+_0x525d7a['x']-this['_baseLeft'],_0x3ac7bf=_0x3e40fa/_0x3be621+_0x525d7a['y']-this[_0x528ea4(0x145)];if(_0x240633!==0x0){let _0x436222=this[_0x528ea4(0x135)]/0x2,_0x458bb1=this[_0x528ea4(0x2c2)]/0x2,_0x19d5c2=_0x240633*Math['PI']/0xb4,_0x11ccc6=Math[_0x528ea4(0x316)](_0x19d5c2),_0x323d3c=Math[_0x528ea4(0x334)](_0x19d5c2),_0x1f849f=_0x4b9a00-_0x436222,_0x45d2b4=_0x3ac7bf-_0x458bb1;_0x4b9a00=_0x436222+(_0x1f849f*_0x11ccc6+_0x45d2b4*_0x323d3c),_0x3ac7bf=_0x458bb1+(-_0x1f849f*_0x323d3c+_0x45d2b4*_0x11ccc6);}_0x269deb&&(_0x4b9a00=this['_baseWidth']-_0x4b9a00),_0x491b23&&(_0x3ac7bf=this[_0x528ea4(0x2c2)]-_0x3ac7bf);let _0x26be93=this[_0x528ea4(0x295)][_0x528ea4(0x236)](_0x38a1ae,{'x':_0x4b9a00,'y':_0x3ac7bf},_0x175a01,_0x269deb,_0x491b23);if(Object[_0x528ea4(0x20a)](_0x26be93)['length']!==0x0){for(let [_0x3f0979,_0x5a769d]of Object[_0x528ea4(0x262)](_0x26be93))this[_0x528ea4(0x295)]['setAdjustValueByName'](_0x3f0979,_0x5a769d);this[_0x528ea4(0x295)][_0x528ea4(0x216)]({'width':this[_0x528ea4(0x135)],'height':this['_baseHeight']}),this[_0x528ea4(0x1e0)](_0x322583,_0x506cf1,_0x3db7d6,_0x26be93),this[_0x528ea4(0x2c6)]=this[_0x528ea4(0x295)]['getDrawingPoints'](),this[_0x528ea4(0x2ec)](),_0x55afd8[_0x528ea4(0x207)]();}}),this[_0x1ddf29(0x281)]=_0x241770[_0x1ddf29(0x31a)][_0x1ddf29(0x18f)]((_0x282e70,_0x3bffe3)=>{const _0x5688f0=_0x1ddf29;if(this['_adjHandlerPointerMove'][_0x5688f0(0x2b4)](),this[_0x5688f0(0x281)][_0x5688f0(0x2b4)](),_0x241770[_0x5688f0(0x327)](),this[_0x5688f0(0x295)]){let _0x680317=this[_0x5688f0(0x295)][_0x5688f0(0x212)](),_0x360070={};for(let _0x3c787e of _0x680317){let _0x3b824a=this[_0x5688f0(0x295)][_0x5688f0(0x33d)](_0x3c787e);_0x3b824a!==void 0x0&&(_0x360070[_0x3c787e]=_0x3b824a);}this[_0x5688f0(0x1cf)][_0x5688f0(0x1bb)](_0x322583,_0x506cf1,_0x3db7d6,_0x3a34ac,_0x360070);}this[_0x5688f0(0x35f)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x5688f0(0x328)]=!0x1,_0x3bffe3['stopPropagation'](),_0x241770['enableObjectsEvent']();}),_0x503e0e[_0x1ddf29(0x207)]();})));}['_updateImageAdjValues'](_0x48aba6,_0x29bdd5,_0x4b48c9,_0x3a279f){const _0x378039=_0x1a57e9;let _0x1cdf04=this[_0x378039(0x12c)][_0x378039(0x174)](_0x48aba6);if(!_0x1cdf04)return;let {scene:_0x5dd47a}=_0x1cdf04,_0x325cea=_0x238087({'unitId':_0x48aba6,'subUnitId':_0x29bdd5,'drawingId':_0x4b48c9}),_0x4c8b00=_0x5dd47a[_0x378039(0x33b)](_0x325cea);if(_0x4c8b00 instanceof _0x5621f4){let _0x583141=_0x4c8b00[_0x378039(0x30a)]??{};_0x4c8b00[_0x378039(0x304)]({..._0x583141,..._0x3a279f}),_0x4c8b00[_0x378039(0x2bc)](!0x0);}}[_0x1a57e9(0x27b)](){const _0x395ce6=_0x1a57e9;let _0x3ad432=this[_0x395ce6(0x224)][_0x395ce6(0x1ed)](_0x3d832c['UNIVER_SHEET']);this[_0x395ce6(0x2db)](_0x3ad432[_0x395ce6(0x15e)](_0x1990de(_0x206a92=>_0x206a92?_0x206a92[_0x395ce6(0x21c)][_0x395ce6(0x15e)](_0x1990de(_0x31ab4f=>{const _0x2ea144=_0x395ce6;if(!_0x31ab4f)return _0x3b0f55;let _0x81d32f=_0x206a92['getUnitId'](),_0x36a2d4=this['_renderManagerService'][_0x2ea144(0x174)](_0x81d32f),_0x1ef42e=_0x36a2d4==null?void 0x0:_0x36a2d4[_0x2ea144(0x21b)];return _0x1ef42e?_0x36bcf9(_0x1ef42e):_0x3b0f55;})):_0x3b0f55))[_0x395ce6(0x23b)](_0x46eaf7=>{const _0x14c8b5=_0x395ce6;let _0xc582c7=_0x46eaf7[_0x14c8b5(0x113)]();this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x117)][_0x14c8b5(0x18f)](()=>{const _0x4e5dbe=_0x14c8b5;this[_0x4e5dbe(0x2f0)]&&this[_0x4e5dbe(0x2a9)]();})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x1b3)]['subscribe'](_0x363eea=>{const _0x1644cd=_0x14c8b5;let {objects:_0x497087}=_0x363eea;if(this['_createControls'](),_0x497087!==null&&_0x497087[_0x1644cd(0x11a)]===0x1){let _0x1c8ff8=_0x497087[_0x1644cd(0x193)]()[_0x1644cd(0x18c)]()[_0x1644cd(0x2de)];_0x1c8ff8 instanceof _0x5621f4&&_0x1c8ff8[_0x1644cd(0x11e)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x2d3)][_0x14c8b5(0x23b)](()=>{const _0x38082b=_0x14c8b5;this[_0x38082b(0x2f0)]&&this['_clearControls']();})),this[_0x14c8b5(0x2db)](_0x46eaf7[_0x14c8b5(0x31a)][_0x14c8b5(0x18f)](()=>{const _0x2dce34=_0x14c8b5;this[_0x2dce34(0x2f0)]&&(this[_0x2dce34(0x2f0)]=!0x1,this[_0x2dce34(0x2ec)]());})),this[_0x14c8b5(0x2db)](_0xc582c7[_0x14c8b5(0x12a)][_0x14c8b5(0x23b)](()=>{const _0x5887f3=_0x14c8b5;if(this[_0x5887f3(0xec)]&&this[_0x5887f3(0x283)]&&this[_0x5887f3(0x2bf)]){let _0x2e00dc=this[_0x5887f3(0x1f0)](this[_0x5887f3(0xec)],this[_0x5887f3(0x283)],this[_0x5887f3(0x2bf)]);if(_0x2e00dc){var _0x47368f,_0x574e92;let _0x1c645e=this[_0x5887f3(0x330)](this['_unitId'],this[_0x5887f3(0x283)],this['_activeImageId']),_0x1344ab=(_0x1c645e==null||(_0x47368f=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x47368f['width'])||0x0,_0x2a9dfe=(_0x1c645e==null||(_0x574e92=_0x1c645e[_0x5887f3(0x2b2)])==null?void 0x0:_0x574e92[_0x5887f3(0x2f9)])||0x0,_0x3d8f98=this[_0x5887f3(0x31e)](_0x2e00dc[_0x5887f3(0x11e)],_0x1344ab,_0x2a9dfe,_0x2e00dc[_0x5887f3(0x184)]);_0x3d8f98&&(this['_activeAdjustPointList']=_0x3d8f98[_0x5887f3(0x18d)](),this[_0x5887f3(0x2a9)](),this[_0x5887f3(0x2ec)](!0x0));}}}));}));}[_0x1a57e9(0x361)](){const _0x26dadc=_0x1a57e9;this['disposeWithMe'](this['_drawingManagerService'][_0x26dadc(0x268)][_0x26dadc(0x23b)](_0x1211f0=>{const _0x334b6d=_0x26dadc;if(_0x1211f0[_0x334b6d(0x321)]===0x1){let _0x510816=_0x1211f0[0x0];if(_0x510816[_0x334b6d(0x130)]===_0x3a939e[_0x334b6d(0x162)]){let {unitId:_0x4f8eec,subUnitId:_0x4f921a,drawingId:_0x25518d}=_0x510816,_0x36f032=this[_0x334b6d(0x1f0)](_0x4f8eec,_0x4f921a,_0x25518d);if(_0x36f032){var _0xa43ce4,_0x19e6c2;this[_0x334b6d(0x2bf)]=_0x25518d,this[_0x334b6d(0xec)]=_0x4f8eec,this[_0x334b6d(0x283)]=_0x4f921a;let _0x440fba=this[_0x334b6d(0x330)](_0x4f8eec,_0x4f921a,_0x25518d),_0x229542=(_0x440fba==null||(_0xa43ce4=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0xa43ce4[_0x334b6d(0x1a3)])||0x0,_0x59f2e1=(_0x440fba==null||(_0x19e6c2=_0x440fba[_0x334b6d(0x2b2)])==null?void 0x0:_0x19e6c2[_0x334b6d(0x2f9)])||0x0,_0x3d13a2=this[_0x334b6d(0x31e)](_0x36f032[_0x334b6d(0x11e)],_0x229542,_0x59f2e1,_0x36f032[_0x334b6d(0x184)]);_0x3d13a2&&(this['_activeAdjustPointList']=_0x3d13a2[_0x334b6d(0x18d)]()),this[_0x334b6d(0x2a9)](),this[_0x334b6d(0x2ec)](!0x0);}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();}else this[_0x334b6d(0x329)]();})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x1d3)][_0x26dadc(0x23b)](_0x2fed22=>{const _0x45ecef=_0x26dadc;if(_0x2fed22[_0x45ecef(0x321)]===0x1){let _0x57acef=_0x2fed22[0x0],_0x462e52=this[_0x45ecef(0x218)]['getDrawingByParam'](_0x57acef);(_0x462e52==null?void 0x0:_0x462e52[_0x45ecef(0x130)])===_0x3a939e[_0x45ecef(0x162)]&&this[_0x45ecef(0x2bf)]===_0x57acef[_0x45ecef(0x175)]&&(this['_clearControls'](),this[_0x45ecef(0x2ec)](!0x0));}})),this[_0x26dadc(0x2db)](this[_0x26dadc(0x218)][_0x26dadc(0x10f)][_0x26dadc(0x23b)](_0x2266c5=>{const _0x130521=_0x26dadc;for(let _0x46b623 of _0x2266c5)this['_activeImageId']===_0x46b623[_0x130521(0x175)]&&this['_resetState']();}));}[_0x1a57e9(0x329)](){const _0x39c39d=_0x1a57e9;this['_activeImageId']=null,this[_0x39c39d(0xec)]=null,this[_0x39c39d(0x283)]=null,this[_0x39c39d(0x2c6)]=void 0x0,this[_0x39c39d(0x2a9)]();}};Mi=Z([X(0x1,_0x3398d1),X(0x2,_0x236d5e(_0xebded9)),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(xr))],Mi);const Ni=_0x1a57e9(0x151);let Pi=class extends _0x458cfa{constructor(_0x1cbbf0,_0x2684e0,_0x2951b9,_0x3d8fd6,_0x65f72e,_0x26c53d){const _0xdcdb8=_0x1a57e9;super(),this[_0xdcdb8(0x215)]=_0x1cbbf0,this[_0xdcdb8(0x136)]=_0x2684e0,this[_0xdcdb8(0x218)]=_0x2951b9,this['_univerInstanceService']=_0x3d8fd6,this[_0xdcdb8(0x12c)]=_0x65f72e,this[_0xdcdb8(0x2f1)]=_0x26c53d,Y(this,_0xdcdb8(0x107),!0x1),this[_0xdcdb8(0x215)][_0xdcdb8(0x2ca)](mi),this[_0xdcdb8(0x2db)](_0x3ee632(this[_0xdcdb8(0x218)][_0xdcdb8(0x268)][_0xdcdb8(0x23b)](()=>this['_update']()))),this[_0xdcdb8(0x294)]();}[_0x1a57e9(0x32d)](){const _0x3b7cc2=_0x1a57e9;this[_0x3b7cc2(0x2f1)][_0x3b7cc2(0x353)](!0x1,Ni),this[_0x3b7cc2(0x10b)](),super[_0x3b7cc2(0x32d)]();}[_0x1a57e9(0x294)](){const _0x11f155=_0x1a57e9;var _0x409634;let _0x7fc957=this[_0x11f155(0x218)]['getFocusDrawings'](),_0x38ba74=_0x7fc957[_0x11f155(0x321)]===0x1?_0x7fc957[0x0]:void 0x0;if((_0x38ba74==null?void 0x0:_0x38ba74[_0x11f155(0x130)])!==_0x3a939e[_0x11f155(0x35c)]||this['_univerInstanceService'][_0x11f155(0x10d)](_0x38ba74[_0x11f155(0x264)])!==_0x3d832c['UNIVER_SHEET']){this[_0x11f155(0x2f1)][_0x11f155(0x353)](!0x1,Ni),this['_hide']();return;}let _0x276005=_0x1dcf15((_0x409634=this[_0x11f155(0x12c)][_0x11f155(0x174)](_0x38ba74[_0x11f155(0x264)]))==null?void 0x0:_0x409634['engine'][_0x11f155(0x24f)]())===_0x11f155(0x2a4);if(this['_shapeFloatingToolbarService'][_0x11f155(0x353)](_0x276005,Ni),_0x276005){this['_hide']();return;}this[_0x11f155(0x107)]||(this[_0x11f155(0x107)]=!0x0,this[_0x11f155(0x136)][_0x11f155(0x2e9)](pr,{'activate':!0x0}));}[_0x1a57e9(0x10b)](){const _0x3a8b18=_0x1a57e9;this[_0x3a8b18(0x107)]&&(this[_0x3a8b18(0x107)]=!0x1,this[_0x3a8b18(0x136)][_0x3a8b18(0x1db)](pr),this[_0x3a8b18(0x136)][_0x3a8b18(0x2c1)]([]));}};Pi=Z([X(0x0,_0x430f90),X(0x1,_0xb3cad2),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0xebded9),X(0x5,_0x236d5e(_0x23dc66))],Pi);let Fi=class extends _0x458cfa{constructor(_0x5888cd,_0x2bf82c,_0x141766,_0x5cdf36){const _0xbf68ed=_0x1a57e9;super(),this[_0xbf68ed(0x224)]=_0x5888cd,this[_0xbf68ed(0x206)]=_0x2bf82c,this['_sheetDrawingService']=_0x141766,this['_sheetsShapeService']=_0x5cdf36,this[_0xbf68ed(0x1fd)]();}[_0x1a57e9(0x1fd)](){const _0x5685c6=_0x1a57e9;this['disposeWithMe'](this['_sheetInterceptorService'][_0x5685c6(0x160)]({'getMutations':_0xf4d306=>{const _0x4037ea=_0x5685c6;if(_0xf4d306['id']===_0x12e6cd['id']){let _0x2b58cb=_0x5a285c(this['_univerInstanceService'],_0xf4d306[_0x4037ea(0x374)]);if(!_0x2b58cb)return{'redos':[],'undos':[]};let {unitId:_0x1c0500,subUnitId:_0x5a9038}=_0x2b58cb,_0x55d975=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x1c0500,_0x5a9038),_0x3ca133=Object[_0x4037ea(0x193)](_0x55d975)[_0x4037ea(0xeb)](_0x3d57e0=>_0x3d57e0[_0x4037ea(0x130)]===_0x3a939e[_0x4037ea(0x35c)]);if(_0x3ca133[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0xe56682=[],_0x81f4d2=[];for(let _0x8b708c=0x0;_0x8b708c<_0x3ca133[_0x4037ea(0x321)];_0x8b708c++){let _0xd2a2e1=_0x3ca133[_0x8b708c],_0x3b8ad2=this[_0x4037ea(0x35e)]['getShapeModel'](_0xd2a2e1['unitId'],_0xd2a2e1['subUnitId'],_0xd2a2e1[_0x4037ea(0x175)]);if(!_0x3b8ad2)continue;let {redo:_0x25171d,undo:_0x3553e4,objects:_0x10abff}=this[_0x4037ea(0x1f8)][_0x4037ea(0x1f2)]([_0xd2a2e1]);_0xe56682[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1['drawingId']}}),_0xe56682[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x25171d,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x3553e4,'objects':_0x10abff}}),_0x81f4d2[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x1c0500,'subUnitId':_0x5a9038,'shapeId':_0xd2a2e1[_0x4037ea(0x175)],'shapeType':_0x3b8ad2[_0x4037ea(0x2b3)](),'shapeData':JSON[_0x4037ea(0x2ed)](JSON[_0x4037ea(0xf4)](_0x3b8ad2[_0x4037ea(0x2c4)]()))}});}return{'redos':_0xe56682,'undos':_0x81f4d2};}else{if(_0xf4d306['id']===_0x2bae38['id']){let {unitId:_0x28dca2,subUnitId:_0x207771,targetSubUnitId:_0x2cb30d}=_0xf4d306[_0x4037ea(0x374)];if(!_0x28dca2||!_0x207771||!_0x2cb30d)return{'redos':[],'undos':[]};let _0x1416e3=this[_0x4037ea(0x1f8)][_0x4037ea(0x35a)](_0x28dca2,_0x207771),_0x397f24=Object['values'](_0x1416e3)[_0x4037ea(0xeb)](_0x38cb5e=>_0x38cb5e['drawingType']===_0x3a939e[_0x4037ea(0x35c)]);if(_0x397f24[_0x4037ea(0x321)]===0x0)return{'redos':[],'undos':[]};let _0x2a7160=[],_0x5c69d4=[];for(let _0x41b7de=0x0;_0x41b7de<_0x397f24[_0x4037ea(0x321)];_0x41b7de++){let _0x5323be=_0x397f24[_0x41b7de],_0x17c990=this[_0x4037ea(0x35e)][_0x4037ea(0x29e)](_0x5323be[_0x4037ea(0x264)],_0x5323be[_0x4037ea(0x29a)],_0x5323be[_0x4037ea(0x175)]);if(!_0x17c990)continue;let _0x2600f3=_0xa48e11(),_0x38b061={..._0x5323be,'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'drawingId':_0x2600f3},{redo:_0x33cd58,undo:_0x4a1132,objects:_0x363f4c}=this[_0x4037ea(0x1f8)][_0x4037ea(0x2e7)]([_0x38b061]);_0x2a7160['push']({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0x19d)],'op':_0x33cd58,'objects':_0x363f4c}}),_0x2a7160[_0x4037ea(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3,'shapeType':_0x17c990[_0x4037ea(0x2b3)](),'shapeData':JSON['parse'](JSON['stringify'](_0x17c990[_0x4037ea(0x2c4)]()))}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x642eb['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'shapeId':_0x2600f3}}),_0x5c69d4[_0x4037ea(0x11f)]({'id':_0x46897e['id'],'params':{'unitId':_0x28dca2,'subUnitId':_0x2cb30d,'type':_0x40c976[_0x4037ea(0xf9)],'op':_0x4a1132,'objects':_0x363f4c}});}return{'redos':_0x2a7160,'undos':_0x5c69d4};}}return{'redos':[],'undos':[]};}}));}};Fi=Z([X(0x0,_0x236d5e(_0x4b61f3)),X(0x1,_0x236d5e(_0x9bde8a)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53))],Fi);let Ii=class extends _0x458cfa{constructor(_0x9149a8,_0x3459a3,_0x203430,_0x559a8a,_0x34b5ff){const _0x15cd30=_0x1a57e9;super(),this[_0x15cd30(0x339)]=_0x9149a8,this[_0x15cd30(0xf0)]=_0x3459a3,this[_0x15cd30(0x218)]=_0x203430,this[_0x15cd30(0x122)]=_0x559a8a,this[_0x15cd30(0x35e)]=_0x34b5ff,Y(this,'_lastEditingShapeKey',null),this[_0x15cd30(0x28f)](),this[_0x15cd30(0x2a7)](),this['_initEditingParams']();}[_0x1a57e9(0x28f)](){const _0xc717bd=_0x1a57e9;let {scene:_0x453a8e}=this[_0xc717bd(0x339)];this[_0xc717bd(0x2db)](_0x453a8e[_0xc717bd(0x2c5)][_0xc717bd(0x18f)](_0x2617cb=>{const _0x250aef=_0xc717bd;let {offsetX:_0xd57463,offsetY:_0x382546}=_0x2617cb,_0x27d182=_0x453a8e[_0x250aef(0x123)](_0x1cc756[_0x250aef(0x1bd)]([_0xd57463,_0x382546]));if(_0x27d182 instanceof ar){let _0x3fe116=this['_sheetsShapeService'][_0x250aef(0x29e)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)]);if(_0x3fe116!=null&&_0x3fe116[_0x250aef(0x2c4)]()['formulaBinding']||_0x3863ab(this['_sheetsShapeService'][_0x250aef(0x2b3)](_0x27d182[_0x250aef(0x264)],_0x27d182[_0x250aef(0x29a)],_0x27d182[_0x250aef(0x2e2)])))return;this[_0x250aef(0xf0)][_0x250aef(0x289)]({'visible':!0x0,'unitId':_0x27d182[_0x250aef(0x264)],'subUnitId':_0x27d182[_0x250aef(0x29a)],'shapeId':_0x27d182[_0x250aef(0x2e2)],'shapeKey':_0x27d182[_0x250aef(0x147)]});}}));}[_0x1a57e9(0x2a7)](){const _0x3a6ab6=_0x1a57e9;this['disposeWithMe'](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x268)]['subscribe'](_0x5bd838=>{const _0x433707=_0x3a6ab6;if(_0x5bd838[_0x433707(0x321)]===0x1){let _0x22acaa=_0x5bd838[0x0],_0x22a0f8=this['_drawingManagerService'][_0x433707(0x223)](_0x22acaa);if((_0x22a0f8==null?void 0x0:_0x22a0f8[_0x433707(0x130)])===_0x3a939e['DRAWING_SHAPE']){var _0x46ce1a;let _0x1a7807=this[_0x433707(0xf0)][_0x433707(0x1ac)]();if((_0x1a7807==null?void 0x0:_0x1a7807[_0x433707(0x2e2)])===_0x22acaa[_0x433707(0x175)]&&_0x1a7807[_0x433707(0x285)])return;let _0x537a13=_0x3863ab(this[_0x433707(0x35e)]['getShapeType'](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)])),_0x459688=!!((_0x46ce1a=this[_0x433707(0x35e)][_0x433707(0x29e)](_0x22acaa[_0x433707(0x264)],_0x22acaa[_0x433707(0x29a)],_0x22acaa[_0x433707(0x175)]))!=null&&_0x46ce1a[_0x433707(0x2c4)]()['formulaBinding']);(_0x537a13||_0x459688)&&this[_0x433707(0xf0)][_0x433707(0x289)](null);}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x45a923=_0x433707;this[_0x45a923(0xf0)][_0x45a923(0x289)](null);}));}else this[_0x433707(0xf0)][_0x433707(0x1ac)]()&&(this[_0x433707(0xf0)][_0x433707(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x4a8cba=_0x433707;this[_0x4a8cba(0xf0)][_0x4a8cba(0x289)](null);}));})),this[_0x3a6ab6(0x2db)](this[_0x3a6ab6(0x218)][_0x3a6ab6(0x10f)][_0x3a6ab6(0x23b)](_0x421984=>{const _0x21916a=_0x3a6ab6;let _0x1f350d=this['_shapeTextEditingService'][_0x21916a(0x1ac)]();_0x1f350d&&_0x421984[_0x21916a(0x1b7)](_0x11f78f=>_0x11f78f[_0x21916a(0x175)]===_0x1f350d[_0x21916a(0x2e2)])&&this[_0x21916a(0xf0)][_0x21916a(0x289)](null);}));}['_initEditingParams'](){const _0x3020c3=_0x1a57e9;this[_0x3020c3(0x2db)](this[_0x3020c3(0xf0)][_0x3020c3(0x31d)]['subscribe'](_0x1353d1=>{const _0x1bf576=_0x3020c3;let {scene:_0x324eb9}=this['_context'];if(this[_0x1bf576(0x205)]){let _0x4969c6=_0x324eb9['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x4969c6&&_0x4969c6[_0x1bf576(0x289)](!0x1);}if(_0x1353d1){let _0x48db1f=!!_0x1353d1[_0x1bf576(0x285)],_0x4cb844=_0x324eb9[_0x1bf576(0x14f)](_0x1353d1['shapeKey']);_0x4cb844&&(_0x4cb844[_0x1bf576(0x289)](_0x48db1f),this[_0x1bf576(0x205)]=_0x1353d1[_0x1bf576(0xef)]),this[_0x1bf576(0x122)]['setContextValue'](_0x5efdd2,_0x48db1f);}else this['_lastEditingShapeKey']=null,this[_0x1bf576(0x122)][_0x1bf576(0x133)](_0x5efdd2,!0x1);}));}};Ii=Z([X(0x1,_0x236d5e(Oi)),X(0x2,_0x3398d1),X(0x3,_0x593690),X(0x4,_0x236d5e(_0x434a53))],Ii);let Li=class extends _0xc831bf{constructor(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9){super(_0x5eb5ba,_0x7ea9b0,_0x20edb2,_0x2689a9,{'componentKey':hr,'editorUnitId':mr});}};Li=Z([X(0x1,_0x236d5e(_0x55f526)),X(0x2,_0x236d5e(_0x5a3f85)),X(0x3,_0x236d5e(_0x240358))],Li);let Ri=class extends _0x458cfa{constructor(_0x29f942,_0x5e10a9,_0x54a81f,_0x498bca,_0x29d6a7,_0x34a621){const _0x256858=_0x1a57e9;super(),this[_0x256858(0x27a)]=_0x29f942,this[_0x256858(0x12c)]=_0x5e10a9,this[_0x256858(0x218)]=_0x54a81f,this[_0x256858(0x1ff)]=_0x498bca,this[_0x256858(0x325)]=_0x29d6a7,this[_0x256858(0x237)]=_0x34a621,Y(this,'_insertingShapeKeys',new Set()),this['_initialize']();}[_0x1a57e9(0x120)](){const _0x430c10=_0x1a57e9;this[_0x430c10(0x1fa)](),this[_0x430c10(0x105)](),this[_0x430c10(0x2cb)]();}[_0x1a57e9(0x1fa)](){const _0x1e1bc3=_0x1a57e9;this[_0x1e1bc3(0x2db)](this[_0x1e1bc3(0x218)][_0x1e1bc3(0x366)]['subscribe'](_0x52c438=>{const _0x4a67d4=_0x1e1bc3;this[_0x4a67d4(0x19b)](_0x52c438);}));}[_0x1a57e9(0x105)](){const _0x38ebfe=_0x1a57e9;this[_0x38ebfe(0x2db)](this['_commandService']['onCommandExecuted'](_0x343130=>{const _0x4ceb4c=_0x38ebfe;if(_0x343130['id']===_0x926363['id']){let {unitId:_0xe72121,subUnitId:_0x5bd166,shapeId:_0x59fb61}=_0x343130[_0x4ceb4c(0x374)],_0x4292b9=this[_0x4ceb4c(0x26a)](_0xe72121),_0x585fa3=_0x238087({'unitId':_0xe72121,'subUnitId':_0x5bd166,'drawingId':_0x59fb61}),_0x12a8e5=_0x4292b9==null?void 0x0:_0x4292b9[_0x4ceb4c(0x21b)]['getObjectIncludeInGroup'](_0x585fa3);_0x12a8e5&&(this[_0x4ceb4c(0x237)]['refreshShapeFillImage'](_0x12a8e5),this['_sheetDrawingShapeRenderController']['refreshFormulaPresentation'](_0x12a8e5,{'unitId':_0xe72121,'subUnitId':_0x5bd166,'shapeId':_0x59fb61}),_0x12a8e5[_0x4ceb4c(0x2bc)](!0x0));return;}if(_0x343130['id']===_0x3b9418['id']){var _0x1388ac;let {unitId:_0x2361a3,subUnitId:_0x727031,shapeId:_0x5b9560}=_0x343130[_0x4ceb4c(0x374)],_0xc56c0d=this[_0x4ceb4c(0x26a)](_0x2361a3);if(_0xc56c0d==null)return;let {scene:_0xcfb9e}=_0xc56c0d,_0x18043e=_0x238087({'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}),_0x353a5e=_0xcfb9e[_0x4ceb4c(0x14f)](_0x18043e);if(!((_0x1388ac=this[_0x4ceb4c(0x12c)][_0x4ceb4c(0x174)](_0x2361a3))!=null&&_0x1388ac['with'](_0x2bd201)[_0x4ceb4c(0x167)](_0x727031)))return!0x1;if(_0x353a5e)return;this[_0x4ceb4c(0x19b)]([{'unitId':_0x2361a3,'subUnitId':_0x727031,'drawingId':_0x5b9560}]);}}));}[_0x1a57e9(0x2cb)](){const _0x13646d=_0x1a57e9;this[_0x13646d(0x2db)](this[_0x13646d(0x218)][_0x13646d(0x1d3)][_0x13646d(0x23b)](_0x14febc=>{const _0xdd5cd2=_0x13646d;_0x14febc[_0xdd5cd2(0x21e)](_0x464396=>{const _0x2c5764=_0xdd5cd2;let {unitId:_0x32808c,subUnitId:_0x7cff64,drawingId:_0x10c32f}=_0x464396,_0x4d9f26=this[_0x2c5764(0x218)][_0x2c5764(0x223)](_0x464396);if(_0x4d9f26==null)return;let {transform:_0x969210,drawingType:_0x94f241,srcRect:_0x510bb9,prstGeom:_0x46c012}=_0x4d9f26;if(_0x94f241!==_0x3a939e['DRAWING_SHAPE'])return;let _0x503748=this['_getSceneAndTransformerByDrawingSearch'](_0x32808c);if(_0x503748==null)return;let {scene:_0x2350c6,transformer:_0x1d7909}=_0x503748;if(_0x969210==null)return!0x0;let _0x4e4771=_0x238087({'unitId':_0x32808c,'subUnitId':_0x7cff64,'drawingId':_0x10c32f}),_0x8ccfb2=_0x2350c6['getObjectIncludeInGroup'](_0x4e4771);if(_0x8ccfb2==null)return!0x0;_0x8ccfb2[_0x2c5764(0x1c9)](_0x510bb9),_0x8ccfb2['setPrstGeom'](_0x46c012);});}));}[_0x1a57e9(0x19b)](_0x45b6ae){const _0x34cf56=_0x1a57e9;for(let _0xa1e474 of _0x45b6ae){var _0x15d9d4;let {unitId:_0x140785,subUnitId:_0x1d1550,drawingId:_0x5cfd81}=_0xa1e474,_0x2cef2e=this[_0x34cf56(0x26a)](_0x140785),_0x4b4862=(_0x15d9d4=_0x31acf7(this['_currentUniverService'],_0x140785))==null?void 0x0:_0x15d9d4[_0x34cf56(0x29a)];if(_0x2cef2e==null||_0x4b4862!==_0x1d1550)return;let _0x775fef=_0x238087({'unitId':_0x140785,'subUnitId':_0x1d1550,'drawingId':_0x5cfd81});if(this[_0x34cf56(0x2aa)][_0x34cf56(0x32e)](_0x775fef)||_0x2cef2e['scene']['getObjectIncludeInGroup'](_0x775fef)!=null)return;let _0x4c83a9=this[_0x34cf56(0x218)][_0x34cf56(0x223)](_0xa1e474);if(_0x4c83a9==null||_0x4c83a9[_0x34cf56(0x130)]!==_0x3a939e[_0x34cf56(0x35c)])return;if(_0x3863ab((_0x4c83a9[_0x34cf56(0x214)]||{})[_0x34cf56(0x2fd)])){let _0x157cf0=_0x4c83a9[_0x34cf56(0x2b2)];_0x157cf0&&(_0x4c83a9[_0x34cf56(0x2b2)]={..._0x157cf0,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x34cf56(0x2aa)][_0x34cf56(0x18e)](_0x775fef);try{this[_0x34cf56(0x237)][_0x34cf56(0x221)](_0x4c83a9,_0x2cef2e[_0x34cf56(0x21b)]);}finally{this[_0x34cf56(0x2aa)]['delete'](_0x775fef);}queueMicrotask(()=>{const _0x100d44=_0x34cf56;if(this[_0x100d44(0x22b)])return;let _0x9cd6e6=_0x238087(_0xa1e474);if(!_0x2cef2e['scene'][_0x100d44(0x14f)](_0x9cd6e6))return;let _0x99e2b1=this['_drawingManagerService']['getDrawingByParam'](_0xa1e474);_0x99e2b1&&this[_0x100d44(0x218)]['refreshTransform']([_0x99e2b1]);});}}[_0x1a57e9(0x26a)](_0x4faf2d){const _0xf21208=_0x1a57e9;if(_0x4faf2d==null)return;let _0xa25aaf=this[_0xf21208(0x12c)][_0xf21208(0x174)](_0x4faf2d),_0xc31c24=_0xa25aaf==null?void 0x0:_0xa25aaf['scene'];return _0xc31c24==null?null:{'scene':_0xc31c24,'transformer':_0xc31c24[_0xf21208(0x113)]()};}};Ri=Z([X(0x0,_0x1b8f46),X(0x1,_0xebded9),X(0x2,_0x3398d1),X(0x3,_0x4b61f3),X(0x4,_0x236d5e(_0xe6009a)),X(0x5,_0x236d5e(Q))],Ri);const zi={'normal':{'fill':_0x496afe['cxnPointFill'],'stroke':_0x496afe[_0x1a57e9(0x351)],'strokeWidth':_0x496afe[_0x1a57e9(0x36b)]},'highlighted':{'fill':_0x1a57e9(0x1d0),'stroke':_0x1a57e9(0x169),'strokeWidth':0x2}};var Bi=class extends _0x38cc74{constructor(_0x32b7c7,_0x20a5b5){const _0xae8fb1=_0x1a57e9;super(_0x32b7c7,_0x20a5b5),Y(this,_0xae8fb1(0x1c6),''),Y(this,_0xae8fb1(0x239),-0x1),Y(this,_0xae8fb1(0xec),''),Y(this,_0xae8fb1(0x283),''),Y(this,_0xae8fb1(0x2cf),!0x1),_0x20a5b5&&this[_0xae8fb1(0x2cd)](_0x20a5b5);}[_0x1a57e9(0x2c9)](){const _0x680857=_0x1a57e9;return{'unitId':this[_0x680857(0xec)],'subUnitId':this[_0x680857(0x283)],'shapeId':this[_0x680857(0x1c6)],'cxnIndex':this[_0x680857(0x239)]};}[_0x1a57e9(0x210)](_0x2c7a3c){const _0x234676=_0x1a57e9;this['_isHighlighted']!==_0x2c7a3c&&(this[_0x234676(0x2cf)]=_0x2c7a3c,this[_0x234676(0x2bc)](!0x0));}[_0x1a57e9(0x280)](){const _0x11348f=_0x1a57e9;return this[_0x11348f(0x2cf)];}['setShapeProps'](_0x29fd14){const _0x121aa4=_0x1a57e9;_0x29fd14[_0x121aa4(0x1ae)]!==void 0x0&&(this['_targetShapeId']=_0x29fd14[_0x121aa4(0x1ae)]),_0x29fd14[_0x121aa4(0x31c)]!==void 0x0&&(this[_0x121aa4(0x239)]=_0x29fd14[_0x121aa4(0x31c)]),_0x29fd14[_0x121aa4(0x264)]!==void 0x0&&(this['_unitId']=_0x29fd14[_0x121aa4(0x264)]),_0x29fd14['subUnitId']!==void 0x0&&(this[_0x121aa4(0x283)]=_0x29fd14[_0x121aa4(0x29a)]),_0x29fd14['isHighlighted']!==void 0x0&&(this[_0x121aa4(0x2cf)]=_0x29fd14[_0x121aa4(0x280)]),this[_0x121aa4(0x20e)]({'width':_0x29fd14[_0x121aa4(0x1a3)]??_0x496afe[_0x121aa4(0x1ee)]*0x2,'height':_0x29fd14[_0x121aa4(0x2f9)]??_0x496afe['cxnPointRadius']*0x2});}[_0x1a57e9(0x1f5)](_0x3329a4){const _0x34bfe0=_0x1a57e9;let _0x4cb0b6=this['_isHighlighted']?zi[_0x34bfe0(0x2bd)]:zi['normal'];_0x20c694[_0x34bfe0(0x2e4)](_0x3329a4,{'radius':_0x496afe[_0x34bfe0(0x1ee)],'fill':_0x4cb0b6['fill'],'stroke':_0x4cb0b6[_0x34bfe0(0x24e)],'strokeWidth':_0x4cb0b6[_0x34bfe0(0x2af)],'evented':!0x0});}};let Vi=class extends _0x458cfa{constructor(_0x5ceb56,_0x2a1cc5,_0x295bef,_0x3b5732){const _0x2479b6=_0x1a57e9;super(),this['_context']=_0x5ceb56,this['_renderManagerService']=_0x2a1cc5,this['_drawingManagerService']=_0x295bef,this[_0x2479b6(0x35e)]=_0x3b5732,Y(this,_0x2479b6(0x306),[]),Y(this,_0x2479b6(0x322),null),Y(this,'_highlightedSiteIndex',-0x1),Y(this,'_currentScene',null),Y(this,_0x2479b6(0xec),''),Y(this,_0x2479b6(0x283),''),Y(this,_0x2479b6(0xf5),null);}[_0x1a57e9(0x30c)](_0x2faee2,_0x4d251d,_0x2390b7,_0x89ea0e){const _0x57871e=_0x1a57e9;this[_0x57871e(0x320)]=_0x2faee2,this['_unitId']=_0x4d251d,this['_subUnitId']=_0x2390b7,this[_0x57871e(0xf5)]=_0x89ea0e;}[_0x1a57e9(0x309)](_0x154919){const _0x223757=_0x1a57e9;if(!this[_0x223757(0x320)])return null;let _0x4df36a=this['_findShapeAtPoint'](_0x154919);return _0x4df36a?(this[_0x223757(0x322)]!==_0x4df36a[_0x223757(0x2e2)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x4df36a['shapeId'],_0x4df36a[_0x223757(0x31f)]),this[_0x223757(0x322)]=_0x4df36a[_0x223757(0x2e2)]),this[_0x223757(0x1d5)](_0x154919)):(this['_activeTargetShapeId']!==null&&(this['_clearConnectionSites'](),this[_0x223757(0x322)]=null),null);}['endConnectionDetection'](){const _0x22ee32=_0x1a57e9;this[_0x22ee32(0x128)](),this['_currentScene']=null,this[_0x22ee32(0x322)]=null,this[_0x22ee32(0x347)]=-0x1,this[_0x22ee32(0xf5)]=null;}[_0x1a57e9(0x24a)](){const _0x82c729=_0x1a57e9;return this['_activeTargetShapeId']===null||this['_highlightedSiteIndex']<0x0?null:{'shapeId':this[_0x82c729(0x322)],'cxnIndex':this[_0x82c729(0x347)]};}[_0x1a57e9(0x2a3)](_0x5299b3){const _0x594f3b=_0x1a57e9;let _0x15484c=this[_0x594f3b(0x218)]['getDrawingData'](this[_0x594f3b(0xec)],this[_0x594f3b(0x283)]);for(let _0x446c3d of Object[_0x594f3b(0x20a)](_0x15484c)){if(_0x446c3d===this[_0x594f3b(0xf5)]||_0x15484c[_0x446c3d][_0x594f3b(0x130)]!==_0x3a939e[_0x594f3b(0x35c)])continue;let _0x3ebe75=this['_sheetsShapeService'][_0x594f3b(0x29e)](this['_unitId'],this[_0x594f3b(0x283)],_0x446c3d);if(!_0x3ebe75||_0x3863ab(_0x3ebe75[_0x594f3b(0x2b3)]())||_0x3ebe75[_0x594f3b(0x2a8)]()[_0x594f3b(0x321)]===0x0||!this[_0x594f3b(0x320)])continue;let _0x310889=_0x238087({'unitId':this['_unitId'],'subUnitId':this[_0x594f3b(0x283)],'drawingId':_0x446c3d}),_0x1920bb=this[_0x594f3b(0x320)][_0x594f3b(0x14f)](_0x310889);if(!_0x1920bb)continue;let {left:_0x3c949b,top:_0x344508,width:_0x25fc99,height:_0x45bfa8}=_0x1920bb['getRealBound'](),_0x579751=_0x3c949b+_0x25fc99/0x2,_0xcc127f=_0x344508+_0x45bfa8/0x2,_0x33de17=_0x1920bb[_0x594f3b(0x2b2)]['getMatrix'](),_0x11180f=new _0x228916([_0x33de17[0x0],_0x33de17[0x1],_0x33de17[0x2],_0x33de17[0x3],_0x579751,_0xcc127f]),_0x5ebe16=_0x1920bb[_0x594f3b(0x208)](),_0xb014d9=(_0x1920bb[_0x594f3b(0x30f)]&&(_0x5ebe16==null?void 0x0:_0x5ebe16[_0x594f3b(0x142)])===_0x2b860b[_0x594f3b(0x14c)]?_0x5ebe16['ancestorTransform']['multiply'](_0x11180f):_0x11180f)['invert']()['applyPoint'](_0x5299b3),_0x5ce203=_0x25fc99/0x2,_0x24f271=_0x45bfa8/0x2;if(_0xb014d9['x']>=-_0x5ce203-0x5&&_0xb014d9['x']<=_0x5ce203+0x5&&_0xb014d9['y']>=-_0x24f271-0x5&&_0xb014d9['y']<=_0x24f271+0x5)return{'shapeId':_0x446c3d,'shapeModel':_0x3ebe75};}return null;}[_0x1a57e9(0x10e)](_0x5eeb54,_0x20a0c0){const _0x465f04=_0x1a57e9;if(!this[_0x465f04(0x320)])return;let _0x2958d4=_0x238087({'unitId':this[_0x465f04(0xec)],'subUnitId':this[_0x465f04(0x283)],'drawingId':_0x5eeb54}),_0x4235b2=this[_0x465f04(0x320)]['getObjectIncludeInGroup'](_0x2958d4);if(!_0x4235b2)return;let {left:_0x4c6223,top:_0x30237d,width:_0x21c6f7,height:_0x56a35f}=_0x4235b2['getRealBound'](),_0x603551=_0x4c6223+_0x21c6f7/0x2,_0x209d46=_0x30237d+_0x56a35f/0x2,_0xc7e59d=_0x4235b2[_0x465f04(0x2b2)]['getMatrix'](),_0x32d4ae=new _0x228916([_0xc7e59d[0x0],_0xc7e59d[0x1],_0xc7e59d[0x2],_0xc7e59d[0x3],_0x603551,_0x209d46]),_0x4a0aa0=_0x4235b2[_0x465f04(0x208)](),_0x55e892=_0x4235b2[_0x465f04(0x30f)]&&(_0x4a0aa0==null?void 0x0:_0x4a0aa0[_0x465f04(0x142)])===_0x2b860b[_0x465f04(0x14c)]?_0x4a0aa0['ancestorTransform'][_0x465f04(0x348)](_0x32d4ae):_0x32d4ae;_0x20a0c0['updateContext']({'width':_0x21c6f7,'height':_0x56a35f});let _0x346e0d=_0x20a0c0[_0x465f04(0x2a8)]();for(let _0x2c2834 of _0x346e0d){let _0x2b4ed3=_0x2c2834['x']-_0x21c6f7/0x2,_0x5697bf=_0x2c2834['y']-_0x56a35f/0x2,_0x2e4453=_0x55e892[_0x465f04(0x1f7)]({'x':_0x2b4ed3,'y':_0x5697bf}),_0x2c92a7=_0x2e4453['x'],_0x8ac156=_0x2e4453['y'],_0x48ab19=new Bi(_0x465f04(0x1ec)+_0x5eeb54+'-'+_0x2c2834[_0x465f04(0x2f6)],{'left':_0x2c92a7-_0x496afe[_0x465f04(0x1ee)],'top':_0x8ac156-_0x496afe[_0x465f04(0x1ee)],'targetShapeId':_0x5eeb54,'cxnIndex':_0x2c2834[_0x465f04(0x2f6)],'unitId':this['_unitId'],'subUnitId':this[_0x465f04(0x283)],'width':_0x496afe[_0x465f04(0x1ee)]*0x2,'height':_0x496afe['cxnPointRadius']*0x2,'zIndex':_0x5ad001+0x2,'evented':!0x1});this[_0x465f04(0x306)][_0x465f04(0x11f)](_0x48ab19),this[_0x465f04(0x320)]['addObject'](_0x48ab19,_0x5ad001+0x2);}}[_0x1a57e9(0x1d5)](_0x4a1790){const _0x1fae90=_0x1a57e9;let _0x5384f1=null,_0x3b1384=0x1/0x0,_0x73a42f=null;for(let _0x1e2ba1 of this[_0x1fae90(0x306)]){let _0x42fdc1=_0x1e2ba1[_0x1fae90(0x257)]+_0x496afe[_0x1fae90(0x1ee)],_0x5e9645=_0x1e2ba1['top']+_0x496afe[_0x1fae90(0x1ee)],_0x554c7b=_0x4a1790['x']-_0x42fdc1,_0x62688d=_0x4a1790['y']-_0x5e9645,_0x267d9b=Math[_0x1fae90(0x33e)](_0x554c7b*_0x554c7b+_0x62688d*_0x62688d);_0x267d9b<_0x3b1384&&(_0x3b1384=_0x267d9b,_0x5384f1=_0x1e2ba1,_0x73a42f={'x':_0x42fdc1,'y':_0x5e9645});}let _0x324ac9=_0x3b1384<=0xa&&_0x5384f1?_0x5384f1['getConnectionInfo']()[_0x1fae90(0x31c)]:-0x1;if(_0x324ac9!==this[_0x1fae90(0x347)]){for(let _0x532741 of this[_0x1fae90(0x306)]){let _0x416f64=_0x532741['getConnectionInfo']();_0x532741['setHighlighted'](_0x416f64[_0x1fae90(0x31c)]===_0x324ac9);}this[_0x1fae90(0x347)]=_0x324ac9;}if(_0x3b1384<=0xa&&_0x5384f1&&_0x73a42f){let _0x245af1=_0x5384f1[_0x1fae90(0x2c9)](),_0x2d8851=this[_0x1fae90(0x355)](_0x245af1[_0x1fae90(0x2e2)],_0x245af1[_0x1fae90(0x31c)]);return{'shapeId':_0x245af1[_0x1fae90(0x2e2)],'cxnIndex':_0x245af1[_0x1fae90(0x31c)],'unitId':_0x245af1[_0x1fae90(0x264)],'subUnitId':_0x245af1[_0x1fae90(0x29a)],'worldPoint':_0x73a42f,'angle':_0x2d8851};}return null;}['_getConnectionSiteAngle'](_0x1a2aff,_0x4f859c){const _0x1b9b6c=_0x1a57e9;let _0x3f6e60=this[_0x1b9b6c(0x35e)][_0x1b9b6c(0x29e)](this[_0x1b9b6c(0xec)],this[_0x1b9b6c(0x283)],_0x1a2aff);if(!_0x3f6e60)return 0x0;let _0x4aa9b8=this['_drawingManagerService'][_0x1b9b6c(0x223)]({'unitId':this['_unitId'],'subUnitId':this[_0x1b9b6c(0x283)],'drawingId':_0x1a2aff});if(!(_0x4aa9b8!=null&&_0x4aa9b8[_0x1b9b6c(0x2b2)]))return 0x0;let {width:_0x4e5378=0x0,height:_0x6ba44=0x0,flipX:_0x2df977=!0x1,flipY:_0x5bb8c4=!0x1}=_0x4aa9b8[_0x1b9b6c(0x2b2)];_0x3f6e60[_0x1b9b6c(0x216)]({'width':_0x4e5378,'height':_0x6ba44});let _0x5d49af=_0x3f6e60[_0x1b9b6c(0x2a8)]()['find'](_0x5d24f1=>_0x5d24f1[_0x1b9b6c(0x2f6)]===_0x4f859c);if(!_0x5d49af)return 0x0;let _0x307f7a=_0x5d49af['ang']/0xea60;return _0x2df977&&(_0x307f7a=0xb4-_0x307f7a),_0x5bb8c4&&(_0x307f7a=-_0x307f7a),_0x307f7a=(_0x307f7a%0x168+0x168)%0x168,_0x307f7a;}[_0x1a57e9(0x128)](){const _0x179cb6=_0x1a57e9;for(let _0x10bbc7 of this[_0x179cb6(0x306)])_0x10bbc7[_0x179cb6(0x32d)]();this[_0x179cb6(0x306)]=[],this[_0x179cb6(0x347)]=-0x1;}[_0x1a57e9(0x32d)](){const _0x2f1b21=_0x1a57e9;this[_0x2f1b21(0x128)](),super[_0x2f1b21(0x32d)]();}};Vi=Z([X(0x1,_0x236d5e(_0xebded9)),X(0x2,_0x236d5e(_0x3398d1)),X(0x3,_0x236d5e(_0x434a53))],Vi);let Hi=class extends _0x458cfa{constructor(_0x581832,_0x3edc90,_0x19de88,_0x4cf4d8,_0x2d4cbb){const _0x560d44=_0x1a57e9;super(),this[_0x560d44(0x2b7)]=_0x581832,this['_sheetClipboardService']=_0x3edc90,this[_0x560d44(0x1f8)]=_0x19de88,this['_shapeService']=_0x4cf4d8,this[_0x560d44(0x340)]=_0x2d4cbb,Y(this,_0x560d44(0x1ef),void 0x0),this[_0x560d44(0x231)](),this[_0x560d44(0x11d)]();}get[_0x1a57e9(0x27e)](){const _0x162b64=_0x1a57e9;return this['_sheetDrawingService'][_0x162b64(0x15d)]();}[_0x1a57e9(0x11d)](){this['_groupCopyPasteController']['registerFeaturePasteHook'](({fromUnitId:_0x186310,fromSubUnitId:_0xcc95a8,toUnitId:_0xd062b9,toSubUnitId:_0x1afd6b,idMap:_0x4ac5ed})=>{const _0x346b88=_0x4a8a;let _0x4e7eb3=[],_0x1b5198=[];for(let [_0x5cb943,_0x262bce]of _0x4ac5ed[_0x346b88(0x262)]()){let _0x12e4ba=this[_0x346b88(0x312)][_0x346b88(0x29e)](_0x186310,_0xcc95a8,_0x5cb943);if(!_0x12e4ba)continue;let _0x41e229=_0x12e4ba['getShapeType'](),_0x4761d8=JSON[_0x346b88(0x2ed)](JSON[_0x346b88(0xf4)](_0x12e4ba[_0x346b88(0x2c4)]()));if(_0x4761d8['relation']){var _0x4b4d10,_0x2b2d29;let _0x2463f0=(_0x4b4d10=_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)])==null?void 0x0:_0x4b4d10[_0x346b88(0x2e2)],_0x469b15=(_0x2b2d29=_0x4761d8[_0x346b88(0x204)]['to'])==null?void 0x0:_0x2b2d29[_0x346b88(0x2e2)],_0x596a8b=!_0x2463f0||_0x4ac5ed['has'](_0x2463f0),_0x11e70f=!_0x469b15||_0x4ac5ed[_0x346b88(0x32e)](_0x469b15);_0x596a8b&&_0x2463f0&&_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]?_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]={..._0x4761d8['relation'][_0x346b88(0x191)],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x2463f0)}:_0x4761d8[_0x346b88(0x204)][_0x346b88(0x191)]=void 0x0,_0x11e70f&&_0x469b15&&_0x4761d8[_0x346b88(0x204)]['to']?_0x4761d8[_0x346b88(0x204)]['to']={..._0x4761d8[_0x346b88(0x204)]['to'],'shapeId':_0x4ac5ed[_0x346b88(0x272)](_0x469b15)}:_0x4761d8[_0x346b88(0x204)]['to']=void 0x0;}_0x4e7eb3[_0x346b88(0x11f)]({'id':_0x3b9418['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce,'shapeType':_0x41e229,'shapeData':_0x4761d8}}),_0x1b5198['push']({'id':_0x642eb['id'],'params':{'unitId':_0xd062b9,'subUnitId':_0x1afd6b,'shapeId':_0x262bce}});}return{'redos':_0x4e7eb3,'undos':_0x1b5198};});}[_0x1a57e9(0x231)](){const _0x300fe4=_0x1a57e9;this[_0x300fe4(0x2db)](this[_0x300fe4(0x17a)][_0x300fe4(0x139)]({'id':_0x300fe4(0x26e),'onBeforeCopy':(_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9)=>{const _0x53e105=_0x300fe4;this[_0x53e105(0x1ef)]=null;let _0x25386a=this[_0x53e105(0x27e)];if(_0x25386a[_0x53e105(0x321)]){let _0x52615b=_0x25386a['filter'](_0x5bda1b=>_0x5bda1b[_0x53e105(0x130)]===_0x3a939e[_0x53e105(0x35c)]);if(_0x52615b['length']===0x0)return;this[_0x53e105(0x1ef)]={'unitId':_0x4778eb,'subUnitId':_0x469c2f,'copyType':_0x4524c9,'drawings':_0x52615b};}else this[_0x53e105(0x301)](_0x4778eb,_0x469c2f,_0x3311c4,_0x4524c9);},'onPasteCells':(_0x51083f,_0x423f66,_0x41ba70,_0x12344a)=>{const _0x5c2ea9=_0x300fe4;if(!this[_0x5c2ea9(0x1ef)])return{'redos':[],'undos':[]};let {pasteType:_0x137a73}=_0x12344a;return _0x137a73===_0x375ec3[_0x5c2ea9(0x337)]?this[_0x5c2ea9(0x114)](_0x423f66,this[_0x5c2ea9(0x1ef)][_0x5c2ea9(0x265)]===_0x1b2302[_0x5c2ea9(0x2a0)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x67683f=>this[_0x300fe4(0x1ef)]?this[_0x300fe4(0x114)](_0x67683f,this['_copyInfo'][_0x300fe4(0x265)]===_0x1b2302[_0x300fe4(0x2a0)]):{'redos':[],'undos':[]}}));}[_0x1a57e9(0x301)](_0x93feaf,_0x434bb1,_0x4bbb5c,_0x48b0fa){const _0x3906d3=_0x1a57e9;let _0x55c645=this['_sheetSkeletonService'][_0x3906d3(0x167)](_0x93feaf,_0x434bb1);if(!_0x55c645)return;let _0xb6ce90=_0x4da051(_0x55c645,_0x4bbb5c);if(!_0xb6ce90)return;let {startX:_0xd3d9,endX:_0x11527f,startY:_0x187019,endY:_0x1fc437}=_0xb6ce90,_0x1a4fce=this[_0x3906d3(0x1f8)][_0x3906d3(0x35a)](_0x93feaf,_0x434bb1),_0x23aa0b=this[_0x3906d3(0x27e)][_0x3906d3(0x323)]();for(let [_0x234cac,_0x5df823]of Object['entries'](_0x1a4fce)){if(_0x5df823[_0x3906d3(0x130)]!==_0x3a939e[_0x3906d3(0x35c)])continue;let {transform:_0x37a2af}=_0x5df823;if(!_0x37a2af)continue;let {left:_0x49cf12=0x0,top:_0xa2b9c8=0x0,width:_0x1da2cf=0x0,height:_0x5e7d26=0x0}=_0x37a2af;_0xd3d9<=_0x49cf12&&_0x11527f>=_0x49cf12+_0x1da2cf&&_0x187019<=_0xa2b9c8&&_0x1fc437>=_0xa2b9c8+_0x5e7d26&&_0x23aa0b['push'](_0x5df823);}_0x23aa0b[_0x3906d3(0x321)]>0x0&&(this[_0x3906d3(0x1ef)]={'unitId':_0x93feaf,'subUnitId':_0x434bb1,'copyType':_0x48b0fa,'copyRange':_0x4bbb5c,'drawings':_0x23aa0b});}[_0x1a57e9(0x114)](_0x5e2574,_0x21df6c){const _0x58dd18=_0x1a57e9;let {unitId:_0x533d16,subUnitId:_0x372c1d,range:_0x24a366}=_0x5e2574,_0xced308=this[_0x58dd18(0x2b7)][_0x58dd18(0x167)](_0x533d16,_0x372c1d);if(!_0xced308)return{'redos':[],'undos':[]};let _0x2448d6=_0x2b7982(_0x24a366),{unitId:_0x14342c,subUnitId:_0x88bc5,copyRange:_0x194951,drawings:_0x53c66f}=this[_0x58dd18(0x1ef)],_0x49f5a0=this[_0x58dd18(0x2b7)]['getSkeleton'](_0x14342c,_0x88bc5);if(!_0x49f5a0)return{'redos':[],'undos':[]};let _0x3a5f74;if(!_0x194951){let _0x58ccf2=0x1/0x0,_0x43ffaa=0x1/0x0;for(let _0x395165 of _0x53c66f){let {left:_0x4af5c3=0x0,top:_0x1d5d49=0x0}=_0x395165[_0x58dd18(0x2b2)]??{};_0x4af5c3<_0x58ccf2&&(_0x58ccf2=_0x4af5c3),_0x1d5d49<_0x43ffaa&&(_0x43ffaa=_0x1d5d49);}_0x58ccf2!==0x1/0x0&&_0x43ffaa!==0x1/0x0&&(_0x3a5f74={'left':_0x58ccf2,'top':_0x43ffaa});}let _0x2d78c4=new Map();if(!_0x21df6c){for(let _0x55401a of _0x53c66f)_0x2d78c4['set'](_0x55401a[_0x58dd18(0x175)],_0xa48e11());}let _0x1d6696=[],_0x17663e=[];for(let _0x584ead of _0x53c66f){let {drawingId:_0x1789b5,transform:_0x138c7a,sheetTransform:_0x388762}=_0x584ead;if(!_0x138c7a||!_0x388762)continue;let _0x4bdc72=this['_updateTransform']({'transform':_0x138c7a,'sheetTransform':_0x388762},{'skeleton':_0x49f5a0,'range':_0x194951},{'skeleton':_0xced308,'range':_0x2448d6},_0x3a5f74);if(_0x21df6c){let {redos:_0x4e2ccf,undos:_0x3f27e6}=this['_generateCutPasteMutations']({'fromUnitId':_0x14342c,'fromSubUnitId':_0x88bc5,'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72});_0x1d6696['push'](..._0x4e2ccf),_0x17663e[_0x58dd18(0x11f)](..._0x3f27e6);continue;}let {redos:_0x3bd559,undos:_0x2a65e9}=this['_generateCopyPasteMutations']({'toUnitId':_0x533d16,'toSubUnitId':_0x372c1d,'drawing':_0x584ead,'newTransforms':_0x4bdc72,'newDrawingId':_0x2d78c4[_0x58dd18(0x272)](_0x1789b5),'idMap':_0x2d78c4});_0x1d6696[_0x58dd18(0x11f)](..._0x3bd559),_0x17663e[_0x58dd18(0x11f)](..._0x2a65e9);}return{'redos':_0x1d6696,'undos':_0x17663e};}[_0x1a57e9(0x246)](_0x451046){const _0x2acb50=_0x1a57e9;let {fromUnitId:_0x3bdbfb,fromSubUnitId:_0x42fcc0,toUnitId:_0x2a2883,toSubUnitId:_0x1237f3,drawing:_0x44fdf3,newTransforms:_0x59dfb8}=_0x451046,_0x2b2b1b={..._0x44fdf3,'unitId':_0x2a2883,'subUnitId':_0x1237f3,'transform':_0x59dfb8[_0x2acb50(0x2b2)],'sheetTransform':_0x59dfb8[_0x2acb50(0x173)]};if(_0x2a2883===_0x3bdbfb&&_0x1237f3===_0x42fcc0){let {redo:_0x250d13,undo:_0x5390cb,objects:_0x445aa7}=this['_sheetDrawingService'][_0x2acb50(0x186)]([_0x2b2b1b]);return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x250d13,'objects':_0x445aa7}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19a)],'op':_0x5390cb,'objects':_0x445aa7}}]};}else{let _0x4b5e10=this[_0x2acb50(0x1f8)][_0x2acb50(0x1f2)]([_0x44fdf3]),_0x3e3b44=this['_sheetDrawingService'][_0x2acb50(0x2e7)]([_0x2b2b1b]),_0x338c08=this[_0x2acb50(0x312)][_0x2acb50(0x29e)](_0x44fdf3['unitId'],_0x44fdf3[_0x2acb50(0x29a)],_0x44fdf3[_0x2acb50(0x175)]);if(!_0x338c08)return{'redos':[],'undos':[]};let _0x2adddb=_0x338c08[_0x2acb50(0x2b3)](),_0x2cc4f2=JSON['parse'](JSON[_0x2acb50(0xf4)](_0x338c08[_0x2acb50(0x2c4)]()));return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x4b5e10[_0x2acb50(0x116)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3[_0x2acb50(0x175)]}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0x19d)],'op':_0x3e3b44[_0x2acb50(0x116)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3[_0x2acb50(0x175)],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'type':_0x40c976['INSERT'],'op':_0x4b5e10[_0x2acb50(0x222)],'objects':_0x4b5e10[_0x2acb50(0x149)]}},{'id':_0x3b9418['id'],'params':{'unitId':_0x3bdbfb,'subUnitId':_0x42fcc0,'shapeId':_0x44fdf3['drawingId'],'shapeType':_0x2adddb,'shapeData':_0x2cc4f2}},{'id':_0x46897e['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'type':_0x40c976[_0x2acb50(0xf9)],'op':_0x3e3b44[_0x2acb50(0x222)],'objects':_0x3e3b44[_0x2acb50(0x149)]}},{'id':_0x642eb['id'],'params':{'unitId':_0x2a2883,'subUnitId':_0x1237f3,'shapeId':_0x44fdf3['drawingId']}}]};}}[_0x1a57e9(0x189)](_0x31a069){const _0x2838a8=_0x1a57e9;let {toUnitId:_0x17382a,toSubUnitId:_0x27a99a,drawing:_0x4020cf,newTransforms:_0x56963f,newDrawingId:_0x28e715,idMap:_0x8f68f0}=_0x31a069,_0x21d413={..._0x4020cf,'unitId':_0x17382a,'subUnitId':_0x27a99a,'drawingId':_0x28e715,'transform':_0x56963f[_0x2838a8(0x2b2)],'sheetTransform':_0x56963f[_0x2838a8(0x173)]},{redo:_0x2c2f93,undo:_0x5b8896,objects:_0x85d5d0}=this['_sheetDrawingService'][_0x2838a8(0x2e7)]([_0x21d413]),_0x39f209=this[_0x2838a8(0x312)][_0x2838a8(0x29e)](_0x4020cf[_0x2838a8(0x264)],_0x4020cf[_0x2838a8(0x29a)],_0x4020cf[_0x2838a8(0x175)]);if(!_0x39f209)return{'redos':[],'undos':[]};let _0x49e081=_0x39f209[_0x2838a8(0x2b3)](),_0x3e4eb4=JSON['parse'](JSON[_0x2838a8(0xf4)](_0x39f209[_0x2838a8(0x2c4)]()));if(_0x3e4eb4[_0x2838a8(0x204)]){var _0x215103,_0x4af3c6;let _0x18130d=(_0x215103=_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)])==null?void 0x0:_0x215103[_0x2838a8(0x2e2)],_0x34cc5b=(_0x4af3c6=_0x3e4eb4['relation']['to'])==null?void 0x0:_0x4af3c6[_0x2838a8(0x2e2)],_0x4ad4fb=!_0x18130d||_0x8f68f0[_0x2838a8(0x32e)](_0x18130d),_0x5a8951=!_0x34cc5b||_0x8f68f0['has'](_0x34cc5b);_0x4ad4fb&&_0x18130d&&_0x3e4eb4['relation'][_0x2838a8(0x191)]?_0x3e4eb4['relation']['from']={..._0x3e4eb4['relation'][_0x2838a8(0x191)],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x18130d)}:_0x3e4eb4[_0x2838a8(0x204)][_0x2838a8(0x191)]=void 0x0,_0x5a8951&&_0x34cc5b&&_0x3e4eb4['relation']['to']?_0x3e4eb4[_0x2838a8(0x204)]['to']={..._0x3e4eb4[_0x2838a8(0x204)]['to'],'shapeId':_0x8f68f0[_0x2838a8(0x272)](_0x34cc5b)}:_0x3e4eb4['relation']['to']=void 0x0;}return{'redos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976['INSERT'],'op':_0x2c2f93,'objects':_0x85d5d0}},{'id':_0x3b9418['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715,'shapeType':_0x49e081,'shapeData':_0x3e4eb4}}],'undos':[{'id':_0x46897e['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'type':_0x40c976[_0x2838a8(0xf9)],'op':_0x5b8896,'objects':_0x85d5d0}},{'id':_0x642eb['id'],'params':{'unitId':_0x17382a,'subUnitId':_0x27a99a,'shapeId':_0x28e715}}]};}['_updateTransform'](_0x428ea7,_0x4c6c32,_0x2dbf58,_0x5dcd33){const _0x10d333=_0x1a57e9;let {range:_0x258cb8,skeleton:_0x83e70d}=_0x4c6c32,{range:_0x39aefc,skeleton:_0x5c7342}=_0x2dbf58,{transform:_0x3b7dd5,sheetTransform:_0xe8d86b}=_0x428ea7,_0x19bd99={..._0x3b7dd5};if(_0x258cb8){let _0x40f0f6=_0x4da051(_0x83e70d,_0x258cb8),_0x5e70c8=_0x4da051(_0x5c7342,_0x39aefc);if(_0x40f0f6&&_0x5e70c8){let _0x5e5106=_0x5e70c8['startX']-_0x40f0f6[_0x10d333(0x161)],_0xca1993=_0x5e70c8['startY']-_0x40f0f6[_0x10d333(0x349)];_0x19bd99[_0x10d333(0x257)]=(_0x19bd99[_0x10d333(0x257)]??0x0)+_0x5e5106,_0x19bd99[_0x10d333(0x333)]=(_0x19bd99['top']??0x0)+_0xca1993;}}else{let _0x4c3e1b=_0x4da051(_0x5c7342,_0x39aefc);if(_0x5dcd33&&_0x4c3e1b){let _0x300089=(_0x19bd99[_0x10d333(0x257)]??0x0)-_0x5dcd33[_0x10d333(0x257)],_0xa6719d=(_0x19bd99[_0x10d333(0x333)]??0x0)-_0x5dcd33['top'];_0x19bd99['left']=_0x4c3e1b[_0x10d333(0x161)]+_0x300089,_0x19bd99['top']=_0x4c3e1b[_0x10d333(0x349)]+_0xa6719d;}else _0x19bd99['left']=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x161)],_0x19bd99[_0x10d333(0x333)]=_0x4c3e1b==null?void 0x0:_0x4c3e1b[_0x10d333(0x349)];}return{'transform':_0x19bd99,'sheetTransform':_0x15b6d5(_0x19bd99,_0x5c7342)??_0xe8d86b};}};Hi=Z([X(0x0,_0x236d5e(_0x3bd31c)),X(0x1,_0x236d5e(_0x21ba5b)),X(0x2,_0x236d5e(_0x456a1c)),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x12abb0))],Hi);var Ui=class extends _0x38cc74{constructor(_0x3766f3,_0x519f35){const _0x4f7360=_0x1a57e9;super(_0x3766f3,_0x519f35),Y(this,_0x4f7360(0x29f),null),Y(this,'_index',null),Y(this,_0x4f7360(0xec),null),Y(this,'_subUnitId',null),Y(this,'_isStartConnectorPoint',!0x1),_0x519f35&&this[_0x4f7360(0x2cd)](_0x519f35);}[_0x1a57e9(0x2e8)](){const _0x579dfb=_0x1a57e9;return{'unitId':this[_0x579dfb(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x579dfb(0x29f)]};}['setShapeProps'](_0x413fb6){const _0x477637=_0x1a57e9;_0x413fb6['shapeId']!==void 0x0&&(this[_0x477637(0x29f)]=_0x413fb6['shapeId']),_0x413fb6[_0x477637(0x264)]!==void 0x0&&(this[_0x477637(0xec)]=_0x413fb6['unitId']),_0x413fb6['subUnitId']!==void 0x0&&(this[_0x477637(0x283)]=_0x413fb6[_0x477637(0x29a)]),_0x413fb6[_0x477637(0x21d)]!==void 0x0&&(this[_0x477637(0x256)]=_0x413fb6['isStartConnectorPoint']),this['transformByState']({'width':_0x413fb6[_0x477637(0x1a3)],'height':_0x413fb6['height']});}[_0x1a57e9(0x1f5)](_0x1b8510){const _0x9ed54=_0x1a57e9;_0x20c694[_0x9ed54(0x2e4)](_0x1b8510,{'radius':_0x496afe['cxnPointRadius'],'fill':_0x496afe[_0x9ed54(0xea)],'stroke':_0x496afe[_0x9ed54(0x351)],'strokeWidth':_0x496afe[_0x9ed54(0x36b)],'evented':!0x0});}};let Wi=class extends _0x458cfa{constructor(_0x4f8421,_0xb97e47,_0x4ef7c9,_0xb4fa,_0x348e5d,_0x5e60ba,_0x3bac6e,_0x2528d7){const _0x544cca=_0x1a57e9;super(),this[_0x544cca(0x339)]=_0x4f8421,this[_0x544cca(0x27a)]=_0xb97e47,this[_0x544cca(0x12c)]=_0x4ef7c9,this[_0x544cca(0x218)]=_0xb4fa,this[_0x544cca(0x224)]=_0x348e5d,this[_0x544cca(0x35e)]=_0x5e60ba,this[_0x544cca(0x23e)]=_0x3bac6e,this[_0x544cca(0x1e9)]=_0x2528d7,Y(this,_0x544cca(0x1c7),void 0x0),Y(this,_0x544cca(0xec),void 0x0),Y(this,_0x544cca(0x283),void 0x0),Y(this,_0x544cca(0x13a),[]),Y(this,_0x544cca(0x26f),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x544cca(0x295),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,_0x544cca(0x156),!0x1),Y(this,_0x544cca(0x23c),!0x1),Y(this,_0x544cca(0x121),void 0x0),Y(this,_0x544cca(0x307),void 0x0),Y(this,_0x544cca(0x25c),null),this[_0x544cca(0x120)]();}[_0x1a57e9(0x120)](){const _0x210ec4=_0x1a57e9;this[_0x210ec4(0x180)](),this[_0x210ec4(0x287)]();}[_0x1a57e9(0x2ae)](){const _0x2de1ba=_0x1a57e9;if(!this[_0x2de1ba(0xec)]||!this['_subUnitId']||!this[_0x2de1ba(0x1c7)])return;let _0x47046a={'unitId':this[_0x2de1ba(0xec)],'subUnitId':this[_0x2de1ba(0x283)],'drawingId':this['_activeShapeId']},{transform:_0x1a1859}=this['_drawingManagerService']['getDrawingByParam'](_0x47046a);if(_0x1a1859)return{'left':_0x1a1859[_0x2de1ba(0x257)]||0x0,'top':_0x1a1859[_0x2de1ba(0x333)]||0x0,'width':_0x1a1859[_0x2de1ba(0x1a3)]||0x0,'height':_0x1a1859[_0x2de1ba(0x2f9)]||0x0,'flipX':_0x1a1859[_0x2de1ba(0xfd)]||!0x1,'flipY':_0x1a1859[_0x2de1ba(0x352)]||!0x1,'angle':_0x1a1859['angle']};}['_addShapeConnectorHandlerObjects'](){const _0x2cddf1=_0x1a57e9;if(this[_0x2cddf1(0xec)]===void 0x0||this[_0x2cddf1(0x283)]===void 0x0||this[_0x2cddf1(0x1c7)]===void 0x0)return;let _0x3c0943=this[_0x2cddf1(0x12c)][_0x2cddf1(0x174)](this['_unitId']);if(!_0x3c0943||!_0x3c0943[_0x2cddf1(0x346)](_0x2bd201)['getCurrentSkeleton']())return;let {scene:_0x257784}=_0x3c0943,_0x36a637=this['_getDrawingRect']();if(!_0x36a637)return;let _0x4b4d76=this['_sheetsShapeService']['getShapeModel'](this[_0x2cddf1(0xec)],this[_0x2cddf1(0x283)],this[_0x2cddf1(0x1c7)]);if(!_0x4b4d76||!_0x3863ab(_0x4b4d76['getShapeType']()))return;let _0x7e5de0=_0x4b4d76[_0x2cddf1(0x126)]();if(_0x7e5de0[_0x2cddf1(0x321)]<0x2)return;let _0x4e3e1f=new _0x34939a(_0x36a637),_0x430d26=_0x7e5de0[0x0],_0x1a6ed6=_0x7e5de0[_0x7e5de0[_0x2cddf1(0x321)]-0x1],_0x43d1cd=_0x4e3e1f[_0x2cddf1(0x259)](_0x430d26),_0x353a85=_0x4e3e1f[_0x2cddf1(0x259)](_0x1a6ed6);this[_0x2cddf1(0x131)](_0x257784,{..._0x43d1cd},!0x0),this[_0x2cddf1(0x131)](_0x257784,{..._0x353a85},!0x1);}[_0x1a57e9(0x131)](_0x12ba27,_0x42e1d4,_0x497c9f){const _0x50c2c7=_0x1a57e9;if(this[_0x50c2c7(0x1c7)]===void 0x0||this[_0x50c2c7(0xec)]===void 0x0||this[_0x50c2c7(0x283)]===void 0x0)return;let _0x28d7a8='connector-handler-'+this[_0x50c2c7(0xec)]+'-'+this[_0x50c2c7(0x283)]+'-'+this[_0x50c2c7(0x1c7)]+'-'+(_0x497c9f?_0x50c2c7(0x1b0):_0x50c2c7(0x2d7)),_0x33d181=_0x12ba27[_0x50c2c7(0x14f)](_0x28d7a8);if(_0x33d181){_0x33d181[_0x50c2c7(0x20e)]({'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe[_0x50c2c7(0x1ee)]});return;}let _0x16e404=new Ui(_0x28d7a8,{'left':_0x42e1d4['x']-_0x496afe[_0x50c2c7(0x1ee)],'top':_0x42e1d4['y']-_0x496afe['cxnPointRadius'],'shapeId':this[_0x50c2c7(0x1c7)],'unitId':this[_0x50c2c7(0xec)],'subUnitId':this[_0x50c2c7(0x283)],'isStartConnectorPoint':_0x497c9f,'width':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'height':_0x496afe[_0x50c2c7(0x1ee)]*0x2,'zIndex':_0x5ad001+0x1,'evented':!0x0});this[_0x50c2c7(0x13a)]['push'](_0x16e404),this[_0x50c2c7(0x213)](_0x16e404,_0x12ba27,_0x497c9f),_0x12ba27[_0x50c2c7(0x199)](_0x16e404,_0x5ad001+0x1);}[_0x1a57e9(0x248)](_0x51ff91,_0x2c9b06){const _0x40f134=_0x1a57e9;var _0x8e908a;let _0x114d20={'x':0x0,'y':0x0};if(!_0x51ff91||!_0x2c9b06)return _0x114d20;let _0x2d523e=this['_renderManagerService']['getRenderUnitById'](_0x51ff91);if(!_0x2d523e||!_0x2d523e['with'](_0x2bd201)[_0x40f134(0x167)](_0x2c9b06))return _0x114d20;let _0x723bd9=_0x2d523e[_0x40f134(0x346)](_0x56e08d),_0x44a27f=_0x723bd9==null?void 0x0:_0x723bd9[_0x40f134(0x36e)]();if(!_0x44a27f)return _0x114d20;let _0x37a831=(_0x8e908a=this[_0x40f134(0x224)][_0x40f134(0x2d8)](_0x51ff91))==null?void 0x0:_0x8e908a['getSheetBySheetId'](_0x2c9b06);if(!_0x37a831)return _0x114d20;let _0x22c59c=_0x56ed68(_0x44a27f[_0x40f134(0x2b0)],_0x44a27f[_0x40f134(0x34c)],_0x2d523e[_0x40f134(0x21b)],_0x37a831);return _0x22c59c?{'x':_0x22c59c[_0x40f134(0x2b5)],'y':_0x22c59c['viewportScrollY']}:_0x114d20;}[_0x1a57e9(0x225)](_0x1df163,_0x1f9d6f){const _0x368fae=_0x1a57e9;var _0x445a7f;let _0x5b448e=(_0x445a7f=this['_univerInstanceService'][_0x368fae(0x2d8)](_0x1df163))==null?void 0x0:_0x445a7f[_0x368fae(0x1bc)](_0x1f9d6f);return(_0x5b448e==null?void 0x0:_0x5b448e[_0x368fae(0x242)]())??0x1;}['_handleConnectorPointerUp'](_0x25df7e,_0x817244,_0x2d462b,_0x4e4b4b,_0x35db2d){const _0xb92486=_0x1a57e9;this[_0xb92486(0x121)][_0xb92486(0x2b4)](),this[_0xb92486(0x307)][_0xb92486(0x2b4)](),this[_0xb92486(0x23e)][_0xb92486(0x270)]();let _0x11ce32=this[_0xb92486(0x25c)];this[_0xb92486(0x1e9)][_0xb92486(0x290)]();let _0x2ded0b=this[_0xb92486(0x248)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x13ce94=this[_0xb92486(0x225)](this[_0xb92486(0xec)],this[_0xb92486(0x283)]),_0x548777={'x':_0x2d462b[_0xb92486(0x13c)]/_0x13ce94+_0x2ded0b['x'],'y':_0x2d462b['offsetY']/_0x13ce94+_0x2ded0b['y']},_0x1d0c48=_0x11ce32?_0x11ce32['worldPoint']:_0x548777,_0x1dd9c1=_0x4e4b4b?this[_0xb92486(0x295)][_0xb92486(0xfb)]():this[_0xb92486(0x295)][_0xb92486(0x13b)](),_0x3cf6f3=this[_0xb92486(0x295)]['getShapeType']();_0x1dd9c1?this[_0xb92486(0x30d)](_0x1dd9c1,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d):this[_0xb92486(0x2d0)](_0x817244,_0x1d0c48,_0x4e4b4b,_0x11ce32,_0x35db2d,_0x3cf6f3),this['_isConnecting']=!0x1,this[_0xb92486(0x23c)]=!0x1,this[_0xb92486(0x25c)]=null,_0x25df7e[_0xb92486(0x115)]();}[_0x1a57e9(0x2d0)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x22dc7a,_0x4e3c13,_0x549320){const _0x5b967b=_0x1a57e9;let _0x573ab5=_0x549320===_0x2d2111[_0x5b967b(0x1cd)]||_0x549320===_0x2d2111[_0x5b967b(0x302)],_0xeb7465=_0x25fb74?_0x58dbd0:_0x6020a3,_0x595b16=_0x25fb74?_0x6020a3:_0x58dbd0,_0x3f9526=this['_activeShapeModel'][_0x5b967b(0x126)](),_0x464fd1=_0x338f6a(this['_activeShapeModel']['getShapeType']()),_0x327be3=_0x34939a[_0x5b967b(0x300)](_0x3f9526,_0x464fd1),_0x42071f=_0x573ab5?_0x34939a[_0x5b967b(0x23d)](_0xeb7465,_0x595b16):_0x34939a[_0x5b967b(0x36a)](_0x6020a3,_0x58dbd0,_0x25fb74,_0x327be3);_0x22dc7a?this[_0x5b967b(0x343)](_0x42071f,_0x22dc7a,_0x25fb74,_0x4e3c13):this[_0x5b967b(0x286)](_0x42071f,_0x4e3c13);}[_0x1a57e9(0x30d)](_0x20ac02,_0x48edad,_0x27b001,_0x430c1d,_0x174583){const _0x54997f=_0x1a57e9;let _0x285bce=this[_0x54997f(0x2c7)](_0x20ac02);if(!_0x285bce)return;let _0x5ea8d5=_0x430c1d?_0x430c1d[_0x54997f(0x10a)]:this[_0x54997f(0x1d4)](_0x285bce[_0x54997f(0x2e5)],_0x48edad),_0x5ae741;if(_0x430c1d){let _0x4f56b5=this['_drawingManagerService'][_0x54997f(0x223)]({'unitId':_0x430c1d[_0x54997f(0x264)],'subUnitId':_0x430c1d[_0x54997f(0x29a)],'drawingId':_0x430c1d['shapeId']});if(_0x4f56b5!=null&&_0x4f56b5[_0x54997f(0x2b2)]){let {left:_0x36584f=0x0,top:_0x1a57ac=0x0,width:_0xe3c249=0x0,height:_0x3f1f55=0x0,angle:_0x4d680b}=_0x4f56b5[_0x54997f(0x2b2)];_0x5ae741=_0x23a439({'left':_0x36584f,'top':_0x1a57ac,'width':_0xe3c249,'height':_0x3f1f55},_0x4d680b||0x0);}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};}else _0x5ae741={'left':_0x48edad['x'],'top':_0x48edad['y'],'width':0x0,'height':0x0};let _0x28de8b={'point':_0x48edad,'angle':_0x5ea8d5,'bounds':_0x5ae741},_0x59fb78=_0x27b001?_0x28de8b:_0x285bce,_0x1a453e=_0x27b001?_0x285bce:_0x28de8b,_0x32a0b5=this[_0x54997f(0x295)][_0x54997f(0x2b3)](),_0x1b475c=_0x22ac34(_0x59fb78,_0x1a453e,_0x32a0b5);this[_0x54997f(0x295)]['removeLinePoints']();let _0x11a588=_0x3225ee(_0x1b475c,_0x32a0b5);_0x430c1d?this[_0x54997f(0x171)](_0x11a588,_0x430c1d,_0x20ac02,_0x27b001,_0x174583):this['_executeConnectedRouteResizeCommand'](_0x11a588,_0x20ac02,_0x27b001,_0x174583);}[_0x1a57e9(0x343)](_0x456c0d,_0x2c3583,_0x91dd72,_0x409b26){const _0x256f34=_0x1a57e9;let _0x515575=this[_0x256f34(0x295)]['getShapeData']()[_0x256f34(0x204)],_0x2d872c={..._0x515575},_0x26c90f={'shapeId':_0x2c3583[_0x256f34(0x2e2)],'cxnIndex':_0x2c3583['cxnIndex']};_0x91dd72?_0x2d872c['from']=_0x26c90f:_0x2d872c['to']=_0x26c90f;let _0x4ff227=this[_0x256f34(0x295)][_0x256f34(0x2b3)](),_0x2b7c40=_0x3225ee(_0x456c0d[_0x256f34(0x1bf)],_0x4ff227),_0x4fe353={'unitId':this[_0x256f34(0xec)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x256f34(0x1c7)],'width':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x1a3)],'height':_0x456c0d['worldRect']['height'],'left':_0x456c0d['worldRect'][_0x256f34(0x257)],'top':_0x456c0d[_0x256f34(0x22c)][_0x256f34(0x333)],'flipX':_0x456c0d[_0x256f34(0x22c)]['flipX']||!0x1,'flipY':_0x456c0d[_0x256f34(0x22c)]['flipY']||!0x1,'newAdjustValues':_0x2b7c40['adjustValues'],'oldAdjustValues':_0x409b26,'oldRelation':_0x515575,'newRelation':_0x2d872c,'newLineType':_0x2b7c40['lineType'],'oldLineType':_0x4ff227};this[_0x256f34(0x27a)]['executeCommand'](_0x2a81d3['id'],_0x4fe353);}[_0x1a57e9(0x286)](_0x1fd29f,_0xe915ad){const _0x183a93=_0x1a57e9;let _0x586a81=this[_0x183a93(0x295)][_0x183a93(0x2b3)](),_0x313ca3=_0x3225ee(_0x1fd29f['worldPoints'],_0x586a81),_0x18e5c3={'unitId':this[_0x183a93(0xec)],'subUnitId':this[_0x183a93(0x283)],'shapeId':this[_0x183a93(0x1c7)],'width':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x1a3)],'height':_0x1fd29f[_0x183a93(0x22c)]['height'],'left':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x257)],'top':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x333)],'flipX':_0x1fd29f['worldRect']['flipX']||!0x1,'flipY':_0x1fd29f['worldRect'][_0x183a93(0x352)]||!0x1,'angle':_0x1fd29f[_0x183a93(0x22c)][_0x183a93(0x10a)]||0x0,'newAdjustValues':_0x313ca3['adjustValues'],'oldAdjustValues':_0xe915ad,'newLineType':_0x313ca3[_0x183a93(0x1a1)],'oldLineType':_0x586a81};this[_0x183a93(0x27a)][_0x183a93(0x311)](_0x569950['id'],_0x18e5c3);}['_executeConnectedRouteConnectionCommand'](_0x15cec4,_0x3b017b,_0x4c51cc,_0x2dadb6,_0x20bc01){const _0x37f731=_0x1a57e9;let _0x4181b0=this[_0x37f731(0x295)][_0x37f731(0x2c4)]()[_0x37f731(0x204)],_0x9825cc={..._0x4181b0},_0x14e780={'shapeId':_0x3b017b[_0x37f731(0x2e2)],'cxnIndex':_0x3b017b[_0x37f731(0x31c)]};_0x2dadb6?(_0x9825cc[_0x37f731(0x191)]=_0x14e780,_0x9825cc['to']=_0x4c51cc):(_0x9825cc[_0x37f731(0x191)]=_0x4c51cc,_0x9825cc['to']=_0x14e780);let _0x12937f={'unitId':this[_0x37f731(0xec)],'subUnitId':this[_0x37f731(0x283)],'connectorShapeId':this['_activeShapeId'],'width':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x1a3)],'height':_0x15cec4['worldRect'][_0x37f731(0x2f9)],'left':_0x15cec4[_0x37f731(0x22c)]['left'],'top':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x333)],'flipX':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0xfd)]||!0x1,'flipY':_0x15cec4[_0x37f731(0x22c)][_0x37f731(0x352)]||!0x1,'oldAdjustValues':_0x20bc01,'newAdjustValues':_0x15cec4[_0x37f731(0x184)],'newLineType':_0x15cec4['lineType'],'rotation':_0x15cec4[_0x37f731(0x2be)],'oldRelation':_0x4181b0,'newRelation':_0x9825cc};this[_0x37f731(0x27a)][_0x37f731(0x311)](_0x2a81d3['id'],_0x12937f);}['_executeConnectedRouteResizeCommand'](_0x5bf289,_0x6ef81,_0x50223d,_0xd7221b){const _0x3543b9=_0x1a57e9;let _0x5327c2=this[_0x3543b9(0x295)][_0x3543b9(0x2c4)]()[_0x3543b9(0x204)],_0x32bdb1={};_0x50223d?(_0x32bdb1['to']=_0x6ef81,_0x32bdb1[_0x3543b9(0x191)]=void 0x0):(_0x32bdb1[_0x3543b9(0x191)]=_0x6ef81,_0x32bdb1['to']=void 0x0);let _0x5f1ff2={'unitId':this[_0x3543b9(0xec)],'subUnitId':this[_0x3543b9(0x283)],'connectorShapeId':this[_0x3543b9(0x1c7)],'width':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x1a3)],'height':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x2f9)],'left':_0x5bf289[_0x3543b9(0x22c)]['left'],'top':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x333)],'flipX':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0xfd)]||!0x1,'flipY':_0x5bf289[_0x3543b9(0x22c)][_0x3543b9(0x352)]||!0x1,'oldAdjustValues':_0xd7221b,'newAdjustValues':_0x5bf289[_0x3543b9(0x184)],'newLineType':_0x5bf289[_0x3543b9(0x1a1)],'rotation':_0x5bf289['rotation'],'oldRelation':_0x5327c2,'newRelation':_0x32bdb1};this[_0x3543b9(0x27a)][_0x3543b9(0x311)](_0x2a81d3['id'],_0x5f1ff2);}['_attachConnectorObjectEvent'](_0x385427,_0x35d1b2,_0x51a9c4){const _0x4964ad=_0x1a57e9;this[_0x4964ad(0x2db)](_0x3ee632(_0x385427[_0x4964ad(0x279)][_0x4964ad(0x18f)]((_0x48702c,_0x708c2f)=>{const _0x29827b=_0x4964ad;let _0x2795eb=_0x385427['getDrawingSearch']();if(this[_0x29827b(0x295)]=this[_0x29827b(0x35e)][_0x29827b(0x29e)](_0x2795eb['unitId'],_0x2795eb[_0x29827b(0x29a)],_0x2795eb[_0x29827b(0x175)]),!this[_0x29827b(0x295)])return;let _0x5334ab={};this[_0x29827b(0x295)]['getAdjustNames']()[_0x29827b(0x21e)](_0x178022=>{let _0x25a78e=this['_activeShapeModel']['getAdjustValueByName'](_0x178022);_0x25a78e!==void 0x0&&(_0x5334ab[_0x178022]=_0x25a78e);});let _0x652a12=this[_0x29827b(0x2ae)]();if(!_0x652a12)return;this[_0x29827b(0x26f)]={..._0x652a12};let _0x38e65a=new _0x34939a(this[_0x29827b(0x26f)]),_0x10a82a=_0x238087({'unitId':this[_0x29827b(0xec)],'subUnitId':this[_0x29827b(0x283)],'drawingId':this[_0x29827b(0x1c7)]}),_0x46ff7c=_0x35d1b2[_0x29827b(0x14f)](_0x10a82a);this[_0x29827b(0xfe)]=!0x0,_0x35d1b2[_0x29827b(0x2e3)](),this[_0x29827b(0x1e9)][_0x29827b(0x30c)](_0x35d1b2,this['_unitId'],this['_subUnitId'],this[_0x29827b(0x1c7)]),this[_0x29827b(0x25c)]=null;let _0x3c5bef=this[_0x29827b(0x295)][_0x29827b(0x126)](),_0x1076ee=_0x3c5bef[0x0],_0x61caed=_0x3c5bef[_0x3c5bef[_0x29827b(0x321)]-0x1],_0x192c1e=_0x51a9c4?_0x38e65a[_0x29827b(0x259)](_0x61caed):_0x38e65a['localToWorld'](_0x1076ee);this[_0x29827b(0x121)]=_0x35d1b2[_0x29827b(0x117)][_0x29827b(0x18f)]((_0x449bf7,_0xa9b62d)=>{const _0x23f021=_0x29827b;if(!this[_0x23f021(0xfe)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x23f021(0x23e)]['clearAdjustControls'](),this[_0x23f021(0x295)][_0x23f021(0x17b)](),!0x0);let _0x6a7be5=this[_0x23f021(0x248)](this[_0x23f021(0xec)],this[_0x23f021(0x283)]),_0x42653f=this[_0x23f021(0x225)](this['_unitId'],this[_0x23f021(0x283)]),_0x45a57e={'x':_0x449bf7[_0x23f021(0x13c)]/_0x42653f+_0x6a7be5['x'],'y':_0x449bf7['offsetY']/_0x42653f+_0x6a7be5['y']},_0x39c0ba=this[_0x23f021(0x1e9)][_0x23f021(0x309)](_0x45a57e);if(_0x39c0ba){let {shapeId:_0x9265b5,unitId:_0x261494,subUnitId:_0x1a7ba5}=_0x39c0ba;if(_0x9265b5&&_0x261494&&_0x1a7ba5){let _0x258d7a=_0x238087({'unitId':_0x261494,'subUnitId':_0x1a7ba5,'drawingId':_0x9265b5});_0x39c0ba['angle']=(_0x35d1b2[_0x23f021(0x14f)](_0x258d7a)['angle']||0x0)+_0x39c0ba[_0x23f021(0x10a)];}}this[_0x23f021(0x25c)]=_0x39c0ba;let _0x5c8b9a=_0x51a9c4?this[_0x23f021(0x295)][_0x23f021(0xfb)]():this[_0x23f021(0x295)]['getStartConnectInfo']();if(_0x5c8b9a){this[_0x23f021(0x159)](_0x5c8b9a,_0x45a57e,_0x51a9c4,_0x46ff7c,_0x385427);return;}this[_0x23f021(0x187)](_0x45a57e,_0x192c1e,_0x51a9c4,_0x46ff7c,_0x385427);}),this['_cxtHandlerPointerUp']=_0x35d1b2['onPointerUp$'][_0x29827b(0x18f)]((_0x949b53,_0x242d6f)=>{this['_handleConnectorPointerUp'](_0x35d1b2,_0x192c1e,_0x949b53,_0x51a9c4,_0x5334ab);}),_0x708c2f['stopPropagation']();})));}[_0x1a57e9(0xf6)](_0x2675cf,_0x49e806,_0x1a5bd2){const _0x5bb2c0=_0x1a57e9;let _0x59cc9a=this[_0x5bb2c0(0x35e)]['getBasicShapeRelation'](_0x2675cf,_0x49e806,_0x1a5bd2);if(!_0x59cc9a||_0x59cc9a[_0x5bb2c0(0x321)]===0x0)return;let _0x37f47a=this[_0x5bb2c0(0x12c)][_0x5bb2c0(0x174)](_0x2675cf);if(!_0x37f47a)return;let {scene:_0x58ed90}=_0x37f47a;for(let _0x499751 of _0x59cc9a){let _0x1d714f=_0x499751[_0x5bb2c0(0x217)],_0x1f843d=this['_sheetsShapeService']['getShapeModel'](_0x2675cf,_0x49e806,_0x1d714f);if(!_0x1f843d)continue;let _0x4f4643=_0x1f843d[_0x5bb2c0(0x13b)](),_0x44f273=_0x1f843d[_0x5bb2c0(0xfb)](),_0x398adb=(_0x4f4643==null?void 0x0:_0x4f4643[_0x5bb2c0(0x2e2)])===_0x1a5bd2,_0x3853b9=_0x238087({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f}),_0x39bb8a=_0x58ed90[_0x5bb2c0(0x14f)](_0x3853b9);if(!_0x39bb8a)continue;let _0x22e428=this[_0x5bb2c0(0x218)]['getDrawingByParam']({'unitId':_0x2675cf,'subUnitId':_0x49e806,'drawingId':_0x1d714f});_0x22e428!=null&&_0x22e428[_0x5bb2c0(0x2b2)]&&(_0x4f4643&&_0x44f273?this[_0x5bb2c0(0x29b)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x4f4643,_0x44f273,_0x39bb8a):this[_0x5bb2c0(0x202)](_0x2675cf,_0x49e806,_0x1d714f,_0x1f843d,_0x398adb?_0x4f4643:_0x44f273,_0x398adb,_0x22e428,_0x39bb8a));}}[_0x1a57e9(0x29b)](_0x51d900,_0x649d08,_0x4eda6a,_0x11b348,_0x2c2686,_0x3b1252,_0x2c1ec1){const _0x4994ba=_0x1a57e9;let _0x3ff6ee=this[_0x4994ba(0xec)],_0x3182ee=this['_subUnitId'];this[_0x4994ba(0xec)]=_0x51d900,this['_subUnitId']=_0x649d08;let _0x5cb462=this[_0x4994ba(0x2c7)](_0x2c2686),_0x3a8344=this[_0x4994ba(0x2c7)](_0x3b1252);if(this['_unitId']=_0x3ff6ee,this[_0x4994ba(0x283)]=_0x3182ee,!_0x5cb462||!_0x3a8344)return;let _0x3f4c78=_0x11b348[_0x4994ba(0x2b3)](),_0x157cd6=_0x22ac34(_0x5cb462,_0x3a8344,_0x3f4c78);_0x157cd6&&_0x11b348[_0x4994ba(0xed)](_0x157cd6);let _0x2d359c=_0x3225ee(_0x157cd6,_0x3f4c78);_0x2d359c[_0x4994ba(0x1a1)]!==_0x3f4c78&&_0x11b348['changeShapeType'](_0x2d359c[_0x4994ba(0x1a1)]),_0x11b348['clearAdjustValue']();for(let [_0x3abec3,_0x10c6f4]of Object[_0x4994ba(0x262)](_0x2d359c['adjustValues']))_0x11b348[_0x4994ba(0x2dc)](_0x3abec3,_0x10c6f4);_0x11b348[_0x4994ba(0x216)]({'width':_0x2d359c['worldRect']['width'],'height':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x2f9)]}),_0x2c1ec1[_0x4994ba(0x20e)]({'flipX':_0x2d359c['worldRect'][_0x4994ba(0xfd)],'flipY':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x352)],'left':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x257)],'top':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x333)],'width':_0x2d359c[_0x4994ba(0x22c)][_0x4994ba(0x1a3)],'height':_0x2d359c['worldRect'][_0x4994ba(0x2f9)],'angle':_0x2d359c[_0x4994ba(0x2be)]}),_0x11b348['removeLinePoints']();}[_0x1a57e9(0x202)](_0x23bed2,_0x210183,_0x39b6cf,_0x161503,_0x24b07a,_0x3f692d,_0x233b3f,_0x307c7a){const _0x129491=_0x1a57e9;let _0x1e3657=this[_0x129491(0xec)],_0x454a46=this[_0x129491(0x283)];this[_0x129491(0xec)]=_0x23bed2,this[_0x129491(0x283)]=_0x210183;let _0x1212b1=this[_0x129491(0x2c7)](_0x24b07a);if(this[_0x129491(0xec)]=_0x1e3657,this[_0x129491(0x283)]=_0x454a46,!_0x1212b1)return;let {left:_0x2ab871=0x0,top:_0x4ee4d2=0x0,width:_0x34507e=0x0,height:_0x37da5a=0x0,flipX:_0x20088a=!0x1,flipY:_0x1fc8bb=!0x1}=_0x233b3f['transform'],_0x97568c=_0x161503[_0x129491(0x126)]();if(_0x97568c['length']<0x2)return;let _0x32b170=new _0x34939a({'left':_0x2ab871,'top':_0x4ee4d2,'width':_0x34507e,'height':_0x37da5a,'flipX':_0x20088a,'flipY':_0x1fc8bb}),_0x4f7160=_0x3f692d?_0x97568c[_0x97568c[_0x129491(0x321)]-0x1]:_0x97568c[0x0],_0x9c9fdd=_0x32b170['localToWorld'](_0x4f7160),_0x5d1157=_0x34939a[_0x129491(0x36a)](_0x9c9fdd,_0x1212b1[_0x129491(0x2e5)],!_0x3f692d);_0x307c7a[_0x129491(0x20e)]({'flipX':_0x5d1157[_0x129491(0x22c)][_0x129491(0xfd)],'flipY':_0x5d1157['worldRect'][_0x129491(0x352)],'left':_0x5d1157['worldRect'][_0x129491(0x257)],'top':_0x5d1157[_0x129491(0x22c)][_0x129491(0x333)],'width':_0x5d1157[_0x129491(0x22c)][_0x129491(0x1a3)],'height':_0x5d1157[_0x129491(0x22c)][_0x129491(0x2f9)],'angle':_0x5d1157[_0x129491(0x22c)]['angle']}),_0x307c7a[_0x129491(0x2bc)](!0x0);}[_0x1a57e9(0x226)](){const _0x48a267=_0x1a57e9;this[_0x48a267(0x13a)][_0x48a267(0x321)]!==0x0&&(this[_0x48a267(0x13a)]['forEach'](_0x376be2=>{const _0x4cbff9=_0x48a267;_0x376be2[_0x4cbff9(0x32d)]();}),this[_0x48a267(0x13a)]=[]);}['_registerDrawingMoveHandler'](){const _0x148eb7=_0x1a57e9;let _0x187cb5=this[_0x148eb7(0x224)]['getCurrentTypeOfUnit$'](_0x3d832c['UNIVER_SHEET']);this['disposeWithMe'](_0x187cb5[_0x148eb7(0x15e)](_0x1990de(_0x204cfe=>_0x204cfe?_0x204cfe[_0x148eb7(0x21c)][_0x148eb7(0x15e)](_0x1990de(_0x2319f3=>{const _0x4141e4=_0x148eb7;if(!_0x2319f3)return _0x3b0f55;let _0x5dab9b=_0x204cfe['getUnitId'](),_0x12e280=this['_renderManagerService'][_0x4141e4(0x174)](_0x5dab9b),_0x3a6b50=_0x12e280==null?void 0x0:_0x12e280[_0x4141e4(0x21b)];return _0x3a6b50?_0x36bcf9(_0x3a6b50):_0x3b0f55;})):_0x3b0f55))[_0x148eb7(0x23b)](_0x2626a7=>{const _0x2ecd59=_0x148eb7;let _0x6baecb=_0x2626a7['getTransformerByCreate']();this['disposeWithMe'](_0x2626a7[_0x2ecd59(0x117)][_0x2ecd59(0x18f)](_0xc97ed=>{const _0x5a004c=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x5a004c(0x1c7)]&&this[_0x5a004c(0x226)]();})),this[_0x2ecd59(0x2db)](_0x6baecb['changeStart$']['subscribe'](_0xa5edee=>{const _0x4fb68c=_0x2ecd59;let {objects:_0x44c2e3}=_0xa5edee;this[_0x4fb68c(0x226)](),_0x44c2e3!==null&&_0x44c2e3['size']===0x1&&_0x44c2e3[_0x4fb68c(0x193)]()[_0x4fb68c(0x18c)]()[_0x4fb68c(0x2de)]instanceof ar&&(this[_0x4fb68c(0x156)]=!0x0);})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x2d3)][_0x2ecd59(0x23b)](_0x4317b1=>{const _0x776f40=_0x2ecd59;this['_isDrawingShapePointDown']&&this[_0x776f40(0x226)]();})),this[_0x2ecd59(0x2db)](_0x2626a7['onPointerUp$'][_0x2ecd59(0x18f)](()=>{const _0x2280e4=_0x2ecd59;this[_0x2280e4(0x156)]&&(this[_0x2280e4(0x156)]=!0x1,this[_0x2280e4(0x1be)]());})),this[_0x2ecd59(0x2db)](_0x6baecb[_0x2ecd59(0x12a)][_0x2ecd59(0x23b)](()=>{const _0x520eb4=_0x2ecd59;this[_0x520eb4(0xec)]&&this[_0x520eb4(0x283)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x520eb4(0x223)]({'unitId':this[_0x520eb4(0xec)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x520eb4(0x1c7)]})&&(this[_0x520eb4(0x226)](),this[_0x520eb4(0x1be)]());}));}));}[_0x1a57e9(0x180)](){const _0x4a9297=_0x1a57e9;this[_0x4a9297(0x2db)](this[_0x4a9297(0x218)][_0x4a9297(0x268)][_0x4a9297(0x23b)](_0x4b1a2f=>{const _0x53e386=_0x4a9297;if(_0x4b1a2f[_0x53e386(0x321)]===0x1){let _0x5b9343=_0x4b1a2f[0x0];if(_0x5b9343['drawingType']===_0x3a939e[_0x53e386(0x35c)]){let _0x8d9189=this[_0x53e386(0x35e)][_0x53e386(0x29e)](_0x5b9343[_0x53e386(0x264)],_0x5b9343['subUnitId'],_0x5b9343[_0x53e386(0x175)]);if(_0x8d9189&&_0x3863ab(_0x8d9189[_0x53e386(0x2b3)]())){this['_activeShapeId']=_0x5b9343[_0x53e386(0x175)],this[_0x53e386(0xec)]=_0x5b9343['unitId'],this[_0x53e386(0x283)]=_0x5b9343[_0x53e386(0x29a)],this[_0x53e386(0x226)](),this[_0x53e386(0x1be)]();return;}}}this[_0x53e386(0x1c7)]=void 0x0,this[_0x53e386(0xec)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x53e386(0x226)]();})),this[_0x4a9297(0x2db)](this['_drawingManagerService'][_0x4a9297(0x1d3)][_0x4a9297(0x23b)](_0x516648=>{const _0x5e1d95=_0x4a9297;if(_0x516648['length']===0x1){var _0x2e12e2;let _0x202e2c=_0x516648[0x0],_0x15d7da=(_0x2e12e2=this[_0x5e1d95(0x218)]['getDrawingByParam'](_0x202e2c))==null?void 0x0:_0x2e12e2[_0x5e1d95(0x130)];_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&_0x202e2c[_0x5e1d95(0x175)]===this[_0x5e1d95(0x1c7)]?(this[_0x5e1d95(0x226)](),this[_0x5e1d95(0x1be)]()):!this[_0x5e1d95(0x1c7)]&&_0x15d7da===_0x3a939e[_0x5e1d95(0x35c)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x202e2c[_0x5e1d95(0x264)],_0x202e2c[_0x5e1d95(0x29a)],_0x202e2c['drawingId']);}})),this['disposeWithMe'](this[_0x4a9297(0x218)][_0x4a9297(0x10f)]['subscribe'](_0x5e8ba4=>{const _0x4e2f8b=_0x4a9297;for(let _0x38e8b4 of _0x5e8ba4){let {drawingId:_0x5ea89d}=_0x38e8b4;if(this[_0x4e2f8b(0x1c7)]===_0x5ea89d){this[_0x4e2f8b(0x219)]();return;}}}));}[_0x1a57e9(0x159)](_0x3c639f,_0x4ffbeb,_0x44f3f8,_0x5dee21,_0x1d7c35){const _0x5d7d25=_0x1a57e9;var _0x5f2491;if(!this['_activeShapeModel'])return;let _0x58aa66=this[_0x5d7d25(0x2c7)](_0x3c639f);if(!_0x58aa66)return;let _0x193671=this[_0x5d7d25(0x25c)]?this['_currentConnectionTarget']['worldPoint']:_0x4ffbeb,_0x197cdf=this[_0x5d7d25(0x25c)]?this[_0x5d7d25(0x25c)][_0x5d7d25(0x10a)]:this['_calculateFreeEndpointAngle'](_0x58aa66['point'],_0x193671),_0x2c2a29;if(this['_currentConnectionTarget']){let _0x5a21dd=this[_0x5d7d25(0x218)][_0x5d7d25(0x223)]({'unitId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x264)],'subUnitId':this['_currentConnectionTarget'][_0x5d7d25(0x29a)],'drawingId':this[_0x5d7d25(0x25c)][_0x5d7d25(0x2e2)]});if(_0x5a21dd!=null&&_0x5a21dd['transform']){let {left:_0x32108f=0x0,top:_0x4945ad=0x0,width:_0x1d93eb=0x0,height:_0x41c3ce=0x0,angle:_0x1e14dd}=_0x5a21dd[_0x5d7d25(0x2b2)];_0x2c2a29=_0x23a439({'left':_0x32108f,'top':_0x4945ad,'width':_0x1d93eb,'height':_0x41c3ce},_0x1e14dd||0x0);}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};}else _0x2c2a29={'left':_0x193671['x'],'top':_0x193671['y'],'width':0x0,'height':0x0};let _0x1b85dc={'point':_0x193671,'angle':_0x197cdf,'bounds':_0x2c2a29},_0x5ad719=_0x44f3f8?_0x1b85dc:_0x58aa66,_0x5141ad=_0x44f3f8?_0x58aa66:_0x1b85dc,_0x4b91d4=this[_0x5d7d25(0x295)][_0x5d7d25(0x2b3)](),_0xb2598a=_0x22ac34(_0x5ad719,_0x5141ad,_0x4b91d4);_0xb2598a&&this['_activeShapeModel'][_0x5d7d25(0xed)](_0xb2598a);let _0x29bdba=_0x3225ee(_0xb2598a,_0x4b91d4);_0x29bdba[_0x5d7d25(0x1a1)]!==_0x4b91d4&&this[_0x5d7d25(0x295)]['changeShapeType'](_0x29bdba[_0x5d7d25(0x1a1)]);for(let [_0x1f7ed9,_0x396009]of Object[_0x5d7d25(0x262)](_0x29bdba[_0x5d7d25(0x184)]))this[_0x5d7d25(0x295)][_0x5d7d25(0x2dc)](_0x1f7ed9,_0x396009);this[_0x5d7d25(0x295)][_0x5d7d25(0x216)]({'width':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x1a3)],'height':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x2f9)]}),_0x5dee21[_0x5d7d25(0x20e)]({'flipX':_0x29bdba['worldRect']['flipX'],'flipY':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x352)],'left':_0x29bdba[_0x5d7d25(0x22c)][_0x5d7d25(0x257)],'top':_0x29bdba['worldRect']['top'],'width':_0x29bdba['worldRect'][_0x5d7d25(0x1a3)],'height':_0x29bdba['worldRect'][_0x5d7d25(0x2f9)],'angle':_0x29bdba[_0x5d7d25(0x2be)]}),_0x5dee21[_0x5d7d25(0x2bc)](!0x0);let _0x47ebf2=((_0x5f2491=this[_0x5d7d25(0x25c)])==null?void 0x0:_0x5f2491[_0x5d7d25(0x2a5)])??_0x4ffbeb;_0x1d7c35[_0x5d7d25(0x20e)]({'left':_0x47ebf2['x']-_0x496afe[_0x5d7d25(0x1ee)],'top':_0x47ebf2['y']-_0x496afe[_0x5d7d25(0x1ee)]});}[_0x1a57e9(0x187)](_0x2825ea,_0x302de6,_0x376479,_0x5a89ba,_0x31d117){const _0x2b4837=_0x1a57e9;var _0x4cfe3c,_0x3ac6be;let _0x2b255d=((_0x4cfe3c=this['_currentConnectionTarget'])==null?void 0x0:_0x4cfe3c[_0x2b4837(0x2a5)])??_0x2825ea,_0x30521f=_0x34939a['computeConnectorResizeLayout'](_0x302de6,_0x2b255d,_0x376479);_0x5a89ba[_0x2b4837(0x20e)]({'flipX':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0xfd)],'flipY':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x352)],'left':_0x30521f[_0x2b4837(0x22c)]['left'],'top':_0x30521f[_0x2b4837(0x22c)]['top'],'width':_0x30521f[_0x2b4837(0x22c)]['width'],'height':_0x30521f[_0x2b4837(0x22c)]['height'],'angle':_0x30521f[_0x2b4837(0x22c)][_0x2b4837(0x10a)]});let _0x323f29=((_0x3ac6be=this[_0x2b4837(0x25c)])==null?void 0x0:_0x3ac6be[_0x2b4837(0x2a5)])??_0x2825ea;_0x31d117[_0x2b4837(0x20e)]({'left':_0x323f29['x']-_0x496afe[_0x2b4837(0x1ee)],'top':_0x323f29['y']-_0x496afe[_0x2b4837(0x1ee)]});}[_0x1a57e9(0x2c7)](_0x314663){const _0x112ba3=_0x1a57e9;if(!this['_unitId']||!this[_0x112ba3(0x283)])return null;let {shapeId:_0x1dacb3,cxnIndex:_0x3e4450}=_0x314663,_0x534005=this[_0x112ba3(0x35e)][_0x112ba3(0x29e)](this[_0x112ba3(0xec)],this[_0x112ba3(0x283)],_0x1dacb3);if(!_0x534005)return null;let _0x49696b=this['_drawingManagerService'][_0x112ba3(0x223)]({'unitId':this[_0x112ba3(0xec)],'subUnitId':this['_subUnitId'],'drawingId':_0x1dacb3});if(!(_0x49696b!=null&&_0x49696b[_0x112ba3(0x2b2)]))return null;let {left:_0x1db43f=0x0,top:_0x1da590=0x0,width:_0x3f3cc1=0x0,height:_0xbe82ef=0x0,flipX:_0x348fbd=!0x1,flipY:_0x30c09d=!0x1,angle:_0x277b48}=_0x49696b[_0x112ba3(0x2b2)];_0x534005[_0x112ba3(0x216)]({'width':_0x3f3cc1,'height':_0xbe82ef});let _0x59d19a=_0x534005[_0x112ba3(0x2a8)]()['find'](_0x579754=>_0x579754[_0x112ba3(0x2f6)]===_0x3e4450);if(!_0x59d19a)return null;let _0x182ad1=_0x348fbd?_0x3f3cc1-_0x59d19a['x']:_0x59d19a['x'],_0x37699f=_0x30c09d?_0xbe82ef-_0x59d19a['y']:_0x59d19a['y'];if(_0x277b48!==0x0&&_0x277b48!=null){let _0x29a263=_0x277b48*Math['PI']/0xb4,_0x55e375=Math[_0x112ba3(0x316)](_0x29a263),_0x413127=Math[_0x112ba3(0x334)](_0x29a263),_0x5d0e94=_0x3f3cc1/0x2,_0x207c20=_0xbe82ef/0x2,_0x364c1f=_0x182ad1-_0x5d0e94,_0x48d11e=_0x37699f-_0x207c20;_0x182ad1=_0x5d0e94+_0x364c1f*_0x55e375-_0x48d11e*_0x413127,_0x37699f=_0x207c20+_0x364c1f*_0x413127+_0x48d11e*_0x55e375;}_0x182ad1+=_0x1db43f,_0x37699f+=_0x1da590;let _0x1dda8f=_0x59d19a['ang']/0xea60;_0x348fbd&&(_0x1dda8f=0xb4-_0x1dda8f),_0x30c09d&&(_0x1dda8f=-_0x1dda8f),_0x1dda8f+=_0x277b48||0x0,_0x1dda8f=(_0x1dda8f%0x168+0x168)%0x168;let _0x5e0201=_0x23a439({'left':_0x1db43f,'top':_0x1da590,'width':_0x3f3cc1,'height':_0xbe82ef},_0x277b48||0x0);return{'point':{'x':_0x182ad1,'y':_0x37699f},'angle':_0x1dda8f,'bounds':_0x5e0201};}['_calculateFreeEndpointAngle'](_0x5c0bec,_0x293be0){const _0x4a0be0=_0x1a57e9;let _0x59d39c=_0x293be0['x']-_0x5c0bec['x'],_0x1ed864=_0x293be0['y']-_0x5c0bec['y'];return Math[_0x4a0be0(0x341)](_0x59d39c)>=Math['abs'](_0x1ed864)?_0x59d39c>=0x0?0xb4:0x0:_0x1ed864>=0x0?0x10e:0x5a;}[_0x1a57e9(0x219)](){const _0x1983f0=_0x1a57e9;this[_0x1983f0(0x1c7)]=void 0x0,this['_unitId']=void 0x0,this[_0x1983f0(0x283)]=void 0x0,this[_0x1983f0(0x226)]();}[_0x1a57e9(0x32d)](){const _0x368d8a=_0x1a57e9;this[_0x368d8a(0x226)](),super[_0x368d8a(0x32d)]();}};Wi=Z([X(0x1,_0x1b8f46),X(0x2,_0xebded9),X(0x3,_0x3398d1),X(0x4,_0x4b61f3),X(0x5,_0x236d5e(_0x434a53)),X(0x6,_0x236d5e(sr)),X(0x7,_0x236d5e(Vi))],Wi);let Gi=class extends _0x458cfa{constructor(_0x58d554,_0x5f0ee0,_0x3dcca6){const _0x5d5441=_0x1a57e9;super(),this[_0x5d5441(0x230)]=_0x58d554,this['_drawingManagerService']=_0x5f0ee0,this['_shapeRenderController']=_0x3dcca6,this[_0x5d5441(0x1dc)]();}[_0x1a57e9(0x1dc)](){const _0x3f5e29=_0x1a57e9;this[_0x3f5e29(0x2db)](this[_0x3f5e29(0x230)]['interceptor'][_0x3f5e29(0xf2)](this['_sheetPrintInterceptorService'][_0x3f5e29(0x103)]['getInterceptPoints']()[_0x3f5e29(0x1c2)],{'handler':(_0x52bfc0,_0x340f2a,_0xa7e243)=>{const _0x54000a=_0x3f5e29;var _0x487312;let {unitId:_0x5622d3,subUnitId:_0x275e7d,scene:_0x210be8,resourceCollector:_0x46a532}=_0x340f2a,_0x5c0a44=(_0x487312=this[_0x54000a(0x218)][_0x54000a(0x2fe)](_0x5622d3))==null?void 0x0:_0x487312[_0x275e7d];return _0x5c0a44==null||_0x5c0a44[_0x54000a(0x141)][_0x54000a(0x21e)](_0x451719=>{const _0x45c568=_0x54000a;let _0x5ad22e=_0x5c0a44[_0x45c568(0x214)][_0x451719];_0x5ad22e[_0x45c568(0x130)]===_0x3a939e[_0x45c568(0x35c)]&&!_0x5ad22e[_0x45c568(0x276)]&&this[_0x45c568(0x370)][_0x45c568(0x221)](_0x5ad22e,_0x210be8,{'resourceCollector':_0x46a532});}),_0xa7e243(_0x52bfc0);}}));}};Gi=Z([X(0x0,_0x236d5e(_0x3dbf35)),X(0x1,_0x3398d1),X(0x2,_0x236d5e(Q))],Gi);function _0x4a8a(_0x1be574,_0x29db7f){_0x1be574=_0x1be574-0xe7;const _0x2ae2d6=_0x2ae2();let _0x4a8ace=_0x2ae2d6[_0x1be574];return _0x4a8ace;}let Ki=class extends _0x458cfa{constructor(_0x30e1f9,_0x1526a5,_0x3f0d39){const _0x1651ac=_0x1a57e9;super(),this[_0x1651ac(0x27a)]=_0x30e1f9,this['_localeService']=_0x1526a5,this[_0x1651ac(0x1a9)]=_0x3f0d39,this[_0x1651ac(0x179)]();}[_0x1a57e9(0x179)](){const _0x272923=_0x1a57e9;this[_0x272923(0x2db)](this[_0x272923(0x27a)][_0x272923(0x200)](_0x39c0fe=>{const _0x469bc3=_0x272923;let _0x107eb0,_0x2d1c6f;if(_0x39c0fe['id']===_0x2f0bb2['id']||_0x39c0fe['id']===_0x457236['id']||_0x39c0fe['id']===_0x2a81d3['id']){let _0x228534=_0x39c0fe[_0x469bc3(0x374)];_0x107eb0=_0x228534[_0x469bc3(0x264)],_0x2d1c6f=_0x228534[_0x469bc3(0x29a)];}!_0x107eb0||!_0x2d1c6f||this[_0x469bc3(0x1a9)][_0x469bc3(0x255)]({'workbookTypes':[_0x386d00],'worksheetTypes':[_0x18e121]},_0x107eb0,_0x2d1c6f)||this[_0x469bc3(0x1a9)]['blockExecuteWithoutPermission'](this['_localeService']['t'](_0x469bc3(0x298)));}));}};function _0x2ae2(){const _0x2ebba2=['map','_popupMenuListener','4515qxTpHK','_sheetPermissionCheckController','draw','_imageIoService','getEditing','asObservable','targetShapeId','complete','start','rect','shapeText','changeStart$','_drawSimpleText','clip-','getImage','some','setConfig','sheet.command.update-shape-data','_drawRichText','clipByShape','getSheetBySheetId','FromArray','_addShapeConnectorHandlerObjects','worldPoints','invert','shape-adjust-point-','PRINTING_COMPONENT_COLLECT','COMMAND','OTHERS','symbol','_targetShapeId','_activeShapeId','_baseLeft','setSrcRect','_initMenu','_baseShapeLeft','srcRect','Line','sheets-shape-format-font-family-menu','_imageShapeClipController','#4285f4','animationEnabled','sheet.image-clip.shape-picker.component','update$','_calculateFreeEndpointAngle','_findNearestConnectionSite','UNIVER_DOC','registerRenderModule','vertical-center','BUTTON','getTransformer','hideContextualTab','_initPrinting','_initCommands','FlipHorizontalIcon','MoveUpIcon','_updateImageAdjValues','PictureFill','getUnitId','composeMatrix','_baseShapeWidth','_attachAdjustEvent','sheet.shape.picker.component','updateDocumentStyle','_drawShapeText','_sheetBasicShapeConnectionPointController','shape-editor-ui.arrange.forward','popup','connection-site-','getCurrentTypeOfUnit$','cxnPointRadius','_copyInfo','_getImagePrstGeom','_urlImageService','getBatchRemoveOp','clipTop','getRealBound','_draw','_setTransForm','applyPoint','_sheetDrawingService','sheets-shape-ui.ribbon.shape-format.arrange-backward','_drawingAddListener','_adjName','error','_initSheetChange','_shapeFormulaService','_currentUniverService','beforeCommandExecuted','SheetShapeTextEditorContainer','_moveConnectorWithShape','_disposePopups','relation','_lastEditingShapeKey','_sheetInterceptorService','stopPropagation','getParent','_getShapeAdjustPointListById','keys','2730WdaCLn','VIEW_MAIN_LEFT_TOP','_formulaShapes','transformByState','_renderWithCache','setHighlighted','getValue','getAdjustNames','_attachConnectorObjectEvent','data','_menuManagerService','updateContext','lineShapeId','_drawingManagerService','_reset','setPresentation','scene','activeSheet$','isStartConnectorPoint','forEach','getActualSize','visible$','renderDrawingShape','undo','getDrawingByParam','_univerInstanceService','_getZoomRatio','_clearShapeConnectorHandlerObjects','setCursor','sheets-shape-ui.imagePanel.crop.shape','shape-text-','trim','_disposed','worldRect','sheet.shape.object-list.panel','_clearPopups','fillImageSource','_sheetPrintInterceptorService','_initCopyPaste','parent','_configService','VIEW_MAIN_LEFT','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','calcAdjValues','_sheetDrawingShapeRenderController','clone','_cxnIndex','endArrow','subscribe','_hasReset','computeStraightConnectorLayout','_sheetShapeAdjustController','MEDIA','_openShapeEditPanel','open','getZoomRatio','_shapes','fill','VIEW_MAIN_TOP','_generateCutPasteMutations','sheets-shape-ui.objectListPanel.open','_getScrollInfo','preValue','getConnectionRelation','_updateShapeAdjustControls','#bcbcbc','default','stroke','getCanvasElement','OPERATION','SELECTOR','cancelEditing','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','shape-editor-ui.arrange.front','permissionCheckWithoutRange','_isStartConnectorPoint','left','canvas','localToWorld','clipHeight','render','_currentConnectionTarget','adjHandleStroke','gradientEndColor','_drawingType','isHorizontal','getAdjustInfoByName','entries','509398othYhC','unitId','copyType','CROSSHAIR','setFormulaPresentation','focus$','div','_getSceneAndTransformerByDrawingSearch','find','sheet.operation.apply-shape-quick-style','sheets-shape-ui.quickStyles','sheets-shape-ui','_baseDrawingRect','refreshAdjustControls','ShapeFormatSettingIcon','get','shape-editor-ui.toolbar.quickStyles','setShouldShowAdjust','_addControl','hidden','Image','_updateSrcRectByTransform','onPointerDown$','_commandService','_registerMoveHandler','getDrawingVisible','skeleton','_focusedDrawings','UUID','isHighlighted','_adjHandlerPointerUp','setCanUseShapeClip','_subUnitId','_applyFormulaAutoFitSize','visible','_executeResizeCommand','_registerDrawingMoveHandler','marginTop','setEditing','_createShapePopupMenu','VIEW_MAIN','description','isHit','horizontal','_initEvents','endConnectionDetection','_drawRichTextLayer','getPresentation','_sheetCanvasPopManagerService','_update','_activeShapeModel','create','syncExecuteCommand','sheets-shape-ui.permission.editErr','_registerComponents','subUnitId','_rerouteConnectorLine','shape-editor-ui.arrange.back','URL','getShapeModel','_shapeId','CUT','localeService','debounceRefreshControls','_findShapeAtPoint','isolated','worldPoint','_adjHandlerPointerMove','_initSelection','getConnectionSiteList','_clearControls','_insertingShapeKeys','onReady','6099291bjzCdp','getState','_getDrawingRect','strokeWidth','sheetViewStartRow','fillType','transform','getShapeType','unsubscribe','viewportScrollX','back','_sheetSkeletonService','onTransformChange$','animateFormulaPresentation','_editingParams$','clearAdjustControls','makeDirty','highlighted','rotation','_activeImageId','type','setCollapsedIds','_baseHeight','Medium','getShapeData','onDblclick$','_activeAdjustPointList','_getConnectPointInfo','dataModel','getConnectionInfo','mergeMenu','_shapeUpdateListener','sheets-shape-ui.ribbon.shape-format.arrange-forward','setShapeProps','_closeShapeEditPanel','_isHighlighted','_handleFreeEndpointPointerUp','_getShapeInfo','sheets-shape-ui.shape-format.style-ribbon-control','changing$','BottomIcon','axisAlignSheetTransform','sheets-shape-ui.formatShape','end','getUnit','resize','_getShapeAdjustInfosById','disposeWithMe','setAdjustValueByName','getAllUnitsForType','value','setPrstGeom','isLineShape','custom','shapeId','disableObjectsEvent','drawWith','point','3889071MjfpOz','getBatchAddOp','getDrawingSearch','showContextualTab','forward','TOP','_createControls','parse','front','sheets-shape-ui.ribbon.shape-format.formula-control','_isImagePointerDown','_shapeFloatingToolbarService','_iconManager','attachTransformerTo','bottom','updateDocumentDataMargin','index','sheet.operation.open-shape-object-list-panel','sheet.operation.close-sheet-shape-format-panel','height','_shapeEditPanelVersion','indexOf','constructor','shapeType','getDrawingDataForUnit','focusDrawing','getBentTypeFromPoints','_createCopyInfoByRange','StraightConnector1','currentAdjustValues','setPrstGeomAdjValues','sheet.command.menu-insert-shape','_connectionSiteObjects','_cxtHandlerPointerUp','decorate','updateConnectionDetection','prstGeomAdjValues','resourceCollector','startConnectionDetection','_handleConnectedEndpointPointerUp','226712YOErJq','isInGroup','viewBound','executeCommand','_shapeService','name','_sidebarService','shape-editor-ui.toolbar.changeShape','cos','selectable','_formulaAnimation','defineProperty','onPointerUp$','reduce','cxnIndex','editingParams$','_getOrCreateShapeModel','shapeModel','_currentScene','length','_activeTargetShapeId','slice','activeAnObject','_drawingRenderService','unregister','resetCursor','_isStartAdjusting','_resetState','src','registerCommand','_clearShapeAdjustControls','dispose','has','getAutoFitPresentations','_getImageDrawingInfo','sheets-shape-ui.flipVertical','_isOpenedShapeEditPanel','top','sin','getShapeDataById','@univerjs-pro/sheets-shape-ui','DEFAULT_PASTE','_init','_context','sheets-shape-ui.ribbon.shape-format.text-control','getObject','isRichText','getAdjustValueByName','sqrt','fontFamily','_groupCopyPasteController','abs','ShapeIcon','_executeConnectionCommand','initShapePopupMenu','Arrow','with','_highlightedSiteIndex','multiply','startY','buildClipPath','sheet.menu.shape.flip-horizontal','sheetViewStartColumn','transformForAngle','getShapeTypeById','setOnSavingEditorData','onSavingEditorData$','cxnPointStroke','flipY','setFallbackVisible','getSelectedObjectMap','_getConnectionSiteAngle','updateShapeFillImage','LEFT','completeEditing','_clipService','getDrawingData','_componentManager','DRAWING_SHAPE','contentVerticalOffset','_sheetsShapeService','_activeAdjustInfo','refreshShapeFillImage','_registerFocusChangeHandler','clip-adj-','_baseShapeTop','_createShapeAdjustControls','5wVVFkx','add$','formulaPresentation','object','getSheetId','computeConnectorResizeLayout','cxnPointStrokeWidth','sheets-shape-text-','actions','getCurrentScrollState','isEditing','_shapeRenderController','string','TopmostIcon','adjHandleSize','params','_isShouldShowDrawingShapeAdjust','getSkeletonParam','translateWithPrecision','cxnPointFill','filter','_unitId','updateLinePoints','shapeData','shapeKey','_shapeTextEditingService','setFillImage','intercept','UNIVER_SHEET','stringify','_draggingConnectorId','_handleBasicShapeUpdateConnectorLineShape','sheet.shape.text.float-menu','startArrow','REMOVE','function','getEndConnectInfo','_loadShapePictureFill','flipX','_isConnecting','ancestorTransform','attachPopupToObject','sectionFloating','None','interceptor','_props','_commandExecutedListener','shape-editor-ui.arrange.backward','_visible','clip','_updateAdjustControlPositions','angle','_hide','115674jVbmMu','getUnitType','_showConnectionSites','remove$','getOwnPropertyDescriptor','isArray','vertical','getTransformerByCreate','_generatePasteMutations','enableObjectsEvent','redo','onPointerMove$','_baseShapeHeight','39NNAdoF','size','_registerOperations','isHitLine','_registerGroupFeaturePasteHook','prstGeom','push','_initialize','_cxtHandlerPointerMove','_contextService','pick','sheets-shape-ui.shape-format.quick-style-gallery','save','getConnectorLinePoints','RIBBON','_clearConnectionSites','SolidFill','changeEnd$','backward','_renderManagerService','calculate','_activeShapeAdjustPointList','univer-box-border\x20univer-px-4\x20univer-text-sm','drawingType','_addShapeConnectorHandlerObject','extraProps','setContextValue','registerClipDelegate','_baseWidth','_ribbonService','actualHeight','_activeShapeInfo','addClipboardHook','_connectorObjects','getStartConnectInfo','offsetX','_transformCalculateSrcRect','wrapStrategy','onCommandExecuted','reverse','order','classType','2905688bTmTKM','sheets-shape-ui.flipHorizontal','_baseTop','1.0.0-beta.1','oKey','_loadAndSetImage','objects','contentHeight','sheets-shape-ui.config','GROUP','includes','Rect','getObjectIncludeInGroup','_injector','sheets-shape-contextual-ribbon','delete','pushUndoRedo','PaintIcon','close','_isDrawingShapePointDown','packageName','sheet.shape.edit.panel','_handleConnectedEndpointMove','sheets-shape-ui.ribbon.shape-format.style-control','_localeService','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getFocusDrawings','pipe','clearControl$','interceptCommand','startX','DRAWING_IMAGE','_config','text','version','sheet.shape.floating-toolbar','getSkeleton','register','#1a73e8','getCurrentSkeleton','beginPath','getShapeTextRect','getMatrix','featurePluginUpdateNotification','pluginName','getVisible','_executeConnectedRouteConnectionCommand','presetId','sheetTransform','getRenderUnitById','drawingId','_transform','_sidebarDisposable','onerror','_initPermission','_sheetClipboardService','clearAdjustValue','_formulaKey','_initializedShapePopupMenu','_onSavingEditorData$','extensionGroups','_registerDrawingFocusChangeHandler','set','setShapeData','getScene','adjustValues','onSteady','getBatchUpdateOp','_handleFreeEndpointMove','20VNmduY','_generateCopyPasteMutations','adjName','canvasElement','next','getDrawingPoints','add','subscribeEvent','iterator','from','formulaBinding','values','refreshFormulaPresentation','viewportScrollY','title','doc','flatMap','addObject','UPDATE','_insertShapes','sheet.operation.open-sheet-shape-format-panel','INSERT','getActiveSheet','FlipVerticalIcon','_registerImageShapeClipDelegate','lineType','getShapeTextData','width','SolidLine','restore'];_0x2ae2=function(){return _0x2ebba2;};return _0x2ae2();}Ki=Z([X(0x0,_0x236d5e(_0x1b8f46)),X(0x1,_0x236d5e(_0x1d78e7)),X(0x2,_0x236d5e(_0x2c3559))],Ki);let qi=class extends _0x458cfa{constructor(_0x28a5b7,_0x2a761d,_0x32b088,_0x277a10,_0x32b082,_0x32bf4d,_0x23336d,_0x3e2358,_0x4a6661,_0x34fd18,_0x561d07){const _0x4120a6=_0x1a57e9;super(),this[_0x4120a6(0x224)]=_0x28a5b7,this[_0x4120a6(0x314)]=_0x2a761d,this['_menuManagerService']=_0x32b088,this[_0x4120a6(0x35e)]=_0x277a10,this[_0x4120a6(0x15b)]=_0x32b082,this['_commandService']=_0x32bf4d,this[_0x4120a6(0x218)]=_0x23336d,this[_0x4120a6(0x293)]=_0x3e2358,this[_0x4120a6(0x122)]=_0x4a6661,this[_0x4120a6(0x12c)]=_0x34fd18,this[_0x4120a6(0xf0)]=_0x561d07,Y(this,_0x4120a6(0x177),null),Y(this,_0x4120a6(0x138),null),Y(this,_0x4120a6(0x332),!0x1),Y(this,_0x4120a6(0x2fa),0x0),Y(this,_0x4120a6(0x17d),new Set()),Y(this,_0x4120a6(0x203),[]),this[_0x4120a6(0x1ca)](),this['disposeWithMe'](this['_univerInstanceService'][_0x4120a6(0x1ed)](_0x3d832c[_0x4120a6(0xf3)])['subscribe'](_0x4ad682=>{const _0x3659f5=_0x4120a6;if(!_0x4ad682){var _0x3cef6a;(_0x3cef6a=this[_0x3659f5(0x177)])==null||_0x3cef6a[_0x3659f5(0x32d)]();return;}this[_0x3659f5(0x28a)](_0x4ad682);})),this[_0x4120a6(0x11b)](),this['initShapePopupMenu'](),this[_0x4120a6(0x2db)](this[_0x4120a6(0xf0)][_0x4120a6(0x31d)][_0x4120a6(0x23b)](_0x7b4199=>{const _0x4b47a2=_0x4120a6;_0x7b4199&&this[_0x4b47a2(0x22e)]();}));}[_0x1a57e9(0x1ca)](){const _0x882ac9=_0x1a57e9;this[_0x882ac9(0x215)]['mergeMenu'](hi);}[_0x1a57e9(0x344)](){const _0x283310=_0x1a57e9;this[_0x283310(0x224)][_0x283310(0x2dd)](_0x3d832c['UNIVER_SHEET'])['forEach'](_0x40e1f0=>this[_0x283310(0x28a)](_0x40e1f0));}[_0x1a57e9(0x2d1)](_0x48ee80,_0x1acb3b,_0x3b07fd){const _0xefd8a2=_0x1a57e9;let _0x3d0594=this[_0xefd8a2(0x35e)][_0xefd8a2(0x34e)](_0x48ee80,_0x1acb3b,_0x3b07fd),_0x23a4fb=this[_0xefd8a2(0x35e)][_0xefd8a2(0x335)](_0x48ee80,_0x1acb3b,_0x3b07fd);return _0x3d0594!==void 0x0&&_0x23a4fb!==void 0x0?{'shapeData':_0x23a4fb,'shapeId':_0x3b07fd,'shapeType':_0x3d0594,'unitId':_0x48ee80,'subUnitId':_0x1acb3b,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x1a57e9(0x28a)](_0x580e0d){const _0x136826=_0x1a57e9;if(!_0x580e0d)return;let _0x3f4549=_0x580e0d[_0x136826(0x1e2)]();this[_0x136826(0x12c)]['has'](_0x3f4549)&&!this[_0x136826(0x17d)][_0x136826(0x32e)](_0x3f4549)&&(this[_0x136826(0x1a7)](_0x3f4549),this[_0x136826(0x17d)][_0x136826(0x18e)](_0x3f4549));}[_0x1a57e9(0x22e)](){const _0x3897a5=_0x1a57e9;this['_disposePopups'][_0x3897a5(0x21e)](_0x51b2f3=>_0x51b2f3[_0x3897a5(0x32d)]()),this[_0x3897a5(0x203)][_0x3897a5(0x321)]=0x0;}['_popupMenuListener'](_0x1b2546){const _0x1c671e=_0x1a57e9;var _0x261133;let _0x2ea426=(_0x261133=this[_0x1c671e(0x12c)][_0x1c671e(0x174)](_0x1b2546))==null?void 0x0:_0x261133[_0x1c671e(0x21b)],_0x5a7ca8=_0x2ea426==null?void 0x0:_0x2ea426[_0x1c671e(0x113)]();!_0x2ea426||!_0x5a7ca8||(this[_0x1c671e(0x2db)](_0x5a7ca8['createControl$'][_0x1c671e(0x23b)](()=>{const _0x1f3519=_0x1c671e;let _0x1248ee=_0x5a7ca8[_0x1f3519(0x354)]();if(this[_0x1f3519(0x22e)](),this[_0x1f3519(0x332)]||_0x1248ee[_0x1f3519(0x11a)]>0x1)return;let _0x595899=_0x1248ee[_0x1f3519(0x193)]()[_0x1f3519(0x18c)]()[_0x1f3519(0x2de)];if(!_0x595899)return;let _0x42631f=this[_0x1f3519(0x218)]['getDrawingOKey'](_0x595899[_0x1f3519(0x147)]);if(!_0x42631f||_0x42631f[_0x1f3519(0x130)]!==_0x3a939e[_0x1f3519(0x35c)])return;let {unitId:_0x362e4e,subUnitId:_0x1600e2,drawingId:_0x2e8647,drawingType:_0x190efb}=_0x42631f,_0x75975a=this[_0x1f3519(0x2d1)](_0x362e4e,_0x1600e2,_0x2e8647);if(!_0x75975a)return;this['_contextService']['setContextValue'](_0x4f1989,!0x0);let _0x56826d=this[_0x1f3519(0x293)][_0x1f3519(0x100)](_0x595899,{'componentKey':fr,'direction':_0x1f3519(0x1d8),'offset':[0x0,_0x295cb8],'extraProps':{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647,'drawingType':_0x190efb,'shapeType':_0x75975a['shapeType'],'shapeData':_0x75975a[_0x1f3519(0xee)]}});this['_disposePopups']['push'](this[_0x1f3519(0x2db)](_0x56826d)),this[_0x1f3519(0x218)][_0x1f3519(0x15d)]()[_0x1f3519(0x26b)](_0x1ef017=>_0x1ef017['unitId']===_0x362e4e&&_0x1ef017[_0x1f3519(0x29a)]===_0x1600e2&&_0x1ef017[_0x1f3519(0x175)]===_0x2e8647)||this[_0x1f3519(0x218)][_0x1f3519(0x2ff)]([{'unitId':_0x362e4e,'subUnitId':_0x1600e2,'drawingId':_0x2e8647}]);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x15f)]['subscribe'](()=>{const _0x1e0eb6=_0x1c671e;this[_0x1e0eb6(0x22e)](),this[_0x1e0eb6(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1e0eb6(0x218)][_0x1e0eb6(0x2ff)](null);})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x2d3)][_0x1c671e(0x23b)](()=>{this['_clearPopups']();})),this[_0x1c671e(0x2db)](_0x5a7ca8[_0x1c671e(0x1b3)]['subscribe'](()=>{this['_clearPopups']();})));}[_0x1a57e9(0x11b)](){const _0x17a3bb=_0x1a57e9;this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x27a)][_0x17a3bb(0x13f)](_0x308cd3=>{const _0x51237c=_0x17a3bb;if(_0x308cd3['id']===_r['id']){let {unitId:_0x4bda48,subUnitId:_0x3425f4,drawingId:_0x2b4c7b}=_0x308cd3[_0x51237c(0x374)];this['_shapeEditPanelVersion']+=0x1,this[_0x51237c(0x138)]=this['_getShapeInfo'](_0x4bda48,_0x3425f4,_0x2b4c7b),this[_0x51237c(0x22e)](),this[_0x51237c(0x240)]();}if(_0x308cd3['id']===vi['id']&&(this[_0x51237c(0x138)]=null,this[_0x51237c(0x2ce)]()),_0x308cd3['id']===_0x926363['id']){let {unitId:_0x4eea3e,subUnitId:_0x2de549,shapeId:_0x4eeaa6}=_0x308cd3[_0x51237c(0x374)];if(this[_0x51237c(0x138)]&&this[_0x51237c(0x138)][_0x51237c(0x2e2)]===_0x4eeaa6){let _0x43bfc5=this['_getShapeInfo'](_0x4eea3e,_0x2de549,_0x4eeaa6);_0x43bfc5&&(this[_0x51237c(0x2fa)]+=0x1,_0x43bfc5[_0x51237c(0x165)]=this[_0x51237c(0x2fa)],this[_0x51237c(0x138)]=_0x43bfc5,this[_0x51237c(0x332)]&&this['_openShapeEditPanel']());}}})),this[_0x17a3bb(0x2db)](this[_0x17a3bb(0x218)][_0x17a3bb(0x268)][_0x17a3bb(0x23b)](_0x2909a0=>{const _0x319ff4=_0x17a3bb;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x2909a0[_0x319ff4(0x321)]===0x0){this[_0x319ff4(0x138)]=null,this[_0x319ff4(0x2ce)]();return;}if(_0x2909a0['length']===0x1&&_0x2909a0[0x0][_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]&&(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0]['drawingId']),this[_0x319ff4(0x138)])){this[_0x319ff4(0x240)]();return;}let _0x15d536=_0x2909a0['filter'](_0x2ea4dd=>_0x2ea4dd[_0x319ff4(0x130)]===_0x3a939e[_0x319ff4(0x35c)]);if(_0x2909a0[_0x319ff4(0x321)]>0x1&&_0x15d536[_0x319ff4(0x321)]===_0x2909a0[_0x319ff4(0x321)]){if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this['_getShapeInfo'](_0x2909a0[0x0][_0x319ff4(0x264)],_0x2909a0[0x0][_0x319ff4(0x29a)],_0x2909a0[0x0][_0x319ff4(0x175)]),this[_0x319ff4(0x138)]){this[_0x319ff4(0x240)]();return;}}else{if(this[_0x319ff4(0x2fa)]+=0x1,this[_0x319ff4(0x138)]=this[_0x319ff4(0x2d1)](_0x2909a0[0x0]['unitId'],_0x2909a0[0x0]['subUnitId'],_0x2909a0[0x0][_0x319ff4(0x175)]),this['_activeShapeInfo']){this[_0x319ff4(0x138)]['disableShapeOption']=!0x0,this[_0x319ff4(0x240)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1a57e9(0x240)](){const _0x41c36b=_0x1a57e9;this[_0x41c36b(0x138)]&&(this[_0x41c36b(0x177)]=this['_sidebarService'][_0x41c36b(0x241)]({'id':ur,'header':{'title':this[_0x41c36b(0x15b)]['t'](_0x41c36b(0x2d6))},'width':0x184,'children':{'label':ur,...this[_0x41c36b(0x138)]},'onClose':()=>{const _0x1c3a16=_0x41c36b;this['_drawingManagerService'][_0x1c3a16(0x2ff)](null),this[_0x1c3a16(0x122)][_0x1c3a16(0x133)](_0x4f1989,!0x1),this[_0x1c3a16(0x177)]=null;}}),this[_0x41c36b(0x332)]=!0x0);}['_closeShapeEditPanel'](){const _0x1c8bdd=_0x1a57e9;this['_isOpenedShapeEditPanel']=!0x1,this[_0x1c8bdd(0x314)][_0x1c8bdd(0x155)](ur),this['_sidebarDisposable']=null,this[_0x1c8bdd(0x122)]['setContextValue'](_0x4f1989,!0x1),this[_0x1c8bdd(0x218)][_0x1c8bdd(0x2ff)](null);}};qi=Z([X(0x0,_0x4b61f3),X(0x1,_0x236d5e(_0xaf9369)),X(0x2,_0x430f90),X(0x3,_0x236d5e(_0x434a53)),X(0x4,_0x236d5e(_0x1d78e7)),X(0x5,_0x1b8f46),X(0x6,_0x3398d1),X(0x7,_0x236d5e(_0x5d6395)),X(0x8,_0x593690),X(0x9,_0xebded9),X(0xa,_0x236d5e(Oi))],qi);let $=class extends _0x50de7b{constructor(_0x2797b0=yi,_0x32bec8,_0x4c440c,_0x33f65a,_0x3bb629){const _0x4b7ecb=_0x1a57e9;super(),this[_0x4b7ecb(0x163)]=_0x2797b0,this[_0x4b7ecb(0x150)]=_0x32bec8,this[_0x4b7ecb(0x27a)]=_0x4c440c,this[_0x4b7ecb(0x233)]=_0x33f65a,this['_renderManagerService']=_0x3bb629;let {..._0x75827e}=_0x5e4367({},yi,this['_config']);this[_0x4b7ecb(0x233)][_0x4b7ecb(0x1b8)](_0x4b7ecb(0x14b),_0x75827e),this[_0x4b7ecb(0x1dd)]();}['onRendered'](){const _0x119261=_0x1a57e9;_0xaddeba(this[_0x119261(0x150)],[[qi],[Ri],[Q],[Gi]]);}[_0x1a57e9(0x185)](){const _0xa26d26=_0x1a57e9;this[_0xa26d26(0x150)]['get'](qi)[_0xa26d26(0x344)]();}[_0x1a57e9(0x2ab)](){const _0x1ee84e=_0x1a57e9;[[Vi],[sr],[Hi]]['forEach'](_0x56e909=>this[_0x1ee84e(0x150)][_0x1ee84e(0x18e)](_0x56e909)),_0xaddeba(this[_0x1ee84e(0x150)],[[Hi],[sr]]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Vi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_SHEET'],[Mi]),this[_0x1ee84e(0x12c)][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Wi]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c[_0x1ee84e(0xf3)],[Ii]),this['_renderManagerService'][_0x1ee84e(0x1d7)](_0x3d832c['UNIVER_DOC'],[Li]);}['onStarting'](){const _0x3d52ee=_0x1a57e9;this[_0x3d52ee(0x150)][_0x3d52ee(0x18e)]([ji]),this[_0x3d52ee(0x150)][_0x3d52ee(0x272)](ji);let _0x2b3ba8=this['_injector'];[[qi],[Ri],[Q],[Gi],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]][_0x3d52ee(0x21e)](_0x5e8190=>_0x2b3ba8[_0x3d52ee(0x18e)](_0x5e8190)),_0xaddeba(this['_injector'],[[qi],[Ri],[Q],[Ci],[Oi],[Fi],[xr],[Ki],[Pi]]);}['_initCommands'](){const _0x3cd874=_0x1a57e9;[lr,Qn,vi,_r,gr,cr,yr,br][_0x3cd874(0x21e)](_0x42bcfc=>this[_0x3cd874(0x2db)](this[_0x3cd874(0x27a)][_0x3cd874(0x32b)](_0x42bcfc)));}};Y($,_0x1a57e9(0x2c0),_0x3d832c['UNIVER_SHEET']),Y($,_0x1a57e9(0x16f),'SHEET_SHAPE_UI_PLUGIN'),Y($,_0x1a57e9(0x157),gi),Y($,_0x1a57e9(0x165),_i),$=Z([_0x2c3830(_0x3cc57f,_0x1ed1eb,_0x915f2c,_0x1d6e19,_0x6f6e81,_0x5e916d,_0xff5f03,_0x1297cb,_0x1c59b7,_0x52f323,_0x30de56,_0x13359c,_0x478c15),X(0x1,_0x236d5e(_0x8c9613)),X(0x2,_0x1b8f46),X(0x3,_0x7f334e),X(0x4,_0xebded9)],$);export{hi as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};
1
+ const _0x4b851e=_0x1d1c;(function(_0x4f4a57,_0x607aa7){const _0x3d8fea=_0x1d1c,_0x568ae7=_0x4f4a57();while(!![]){try{const _0x17e85d=-parseInt(_0x3d8fea(0x210))/0x1+-parseInt(_0x3d8fea(0x140))/0x2*(-parseInt(_0x3d8fea(0x15c))/0x3)+-parseInt(_0x3d8fea(0x199))/0x4+-parseInt(_0x3d8fea(0x278))/0x5+parseInt(_0x3d8fea(0x212))/0x6*(parseInt(_0x3d8fea(0x20c))/0x7)+parseInt(_0x3d8fea(0x104))/0x8+parseInt(_0x3d8fea(0x1f4))/0x9;if(_0x17e85d===_0x607aa7)break;else _0x568ae7['push'](_0x568ae7['shift']());}catch(_0x3df823){_0x568ae7['push'](_0x568ae7['shift']());}}}(_0x1226,0x9af60));import{FormulaShapeAnimationController as _0x24c8d6,SHAPE_CHANGE_PICKER_COMPONENT as _0x3de37a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3e5d23,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xdc3205,ShapeEditPanel as _0x7c1c93,ShapeFloatingToolbar as _0x3d7c32,ShapeFloatingToolbarService as _0x49b6d5,ShapeFloatingToolbarToggleFactory as _0x2383ca,ShapeFormulaRibbonControl as _0x2667da,ShapeGroupEnum as _0x39cfae,ShapePickerDropdown as _0x212211,ShapePickerPanel as _0x31e782,ShapeQuickStyleGallery as _0x2e6418,ShapeStyleRibbonControl as _0x5e07d3,ShapeTextEditorContainer as _0x11d071,ShapeTextFloatMenuRenderControllerBase as _0x7f2b74,ShapeTextFloatToolbar as _0xdd4439,ShapeTextHyperLinkPopupService as _0x4c9b9e,ShapeTextRibbonControl as _0x433ebc,ToggleShapeFloatingToolbarOperation as _0x2e5d91,UniverShapeEditorUIPlugin as _0x2dc485,activateDrawingObject as _0x40f724,bindRenderTransformerLifecycle as _0x33aed7,buildShapeTextDataUpdate as _0x273436,clearActiveDrawingObjects as _0x1539dd,drawFormulaShapeAnimationLayers as _0x2cc10b,getDrawingTypeNameKey as _0x651274,getTextModel as _0x3f7794,getTextStyle as _0x4f2a32,normalizeShapeTextModel as _0x5c2b25,plainShapeTextToDocumentData as _0x3ec507,prepareShapeTextDocumentData as _0x12ba59,resolveFormulaShapeAutoFitSize as _0x4997b9,resolveShapeContextualRibbonHostMode as _0x3a4437,resolveShapeTextDocumentRenderLayout as _0x49c80c,resolveShapeTextEditorBehaviorShapeData as _0x60268f,resolveShapeTextEditorWrapStrategy as _0x4c6d67,shouldAllowShapeTextEditorHostSizeShrink as _0x7a8762,shouldClipShapeTextDocument as _0x1de880,useFormulaShapeToolbar as _0x2caf88}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x1b0068,ContextMenuGroup as _0x1bd38f,ContextMenuPosition as _0x50de40,IMenuManagerService as _0xa31c1,IRibbonService as _0x53b662,ISidebarService as _0x446fc5,IconManager as _0x4741f6,MenuItemType as _0x4d0911,MenuManagerPosition as _0x53d7b7,RibbonInsertGroup as _0x46a8ca,UndoRedoGroupService as _0x2752d,getMenuHiddenObservable as _0x4340d6,useDependency as _0x496f8c,useObservable as _0x1f221a}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x27802a,ImageSourceTypeEnum as _0x22d802,ShapeArrowSizeEnum as _0x4e4132,ShapeArrowTypeEnum as _0x534c3c,ShapeDefaultConfig as _0x179953,ShapeFillEnum as _0x5cb73a,ShapeLineTypeEnum as _0x480b13,ShapeModel as _0x5578df,ShapeRenderModeEnum as _0x1ebdea,ShapeTypeEnum as _0x3e1064,computeConnectorRouteLayout as _0x1fcdb8,getBasicShapeRotateBound as _0x16b583,isConnectorShape as _0x47e56f,isCurvedConnectorShape as _0x446dc5,routeConnectorLineShape as _0x4b9feb}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3c9fb4,UniverShapeEditorPlugin as _0x3edd01,applyQuickStyleToShapeData as _0x1ef8e7,cloneShapeDataForType as _0x1103bd,createShapeFormulaDocument as _0x37b416,createShapeTextBoxShapeData as _0x1688ed,getShapeQuickStylePreset as _0x4e3a43,getShapeQuickStyleType as _0x320903,resolveActiveShapeQuickStylePresetId as _0x2be9b7}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x84e7ae,InsertSheetsShapeMutation as _0x16950c,RemoveSheetsShapeMutation as _0x1d92ce,SetShapeDrawingDataCommand as _0x12f002,SheetsShapeService as _0x1bfe6b,ToggleSheetsShapeFlipCommand as _0x26e8be,UniverSheetsShapePlugin as _0x4e0dc6,UpdateConnectorRelationCommand as _0x3ac18a,UpdateLineShapeResizeCommand as _0x7c6eda,UpdateSheetsShapeDataMutation as _0x4b69e7}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5de97e,CommandType as _0x3ab13f,DependentOn as _0x152ad8,Disposable as _0x387ec6,DisposableCollection as _0x1e71f4,DocumentDataModel as _0x354220,DrawingTypeEnum as _0x514277,FOCUSING_COMMON_DRAWINGS as _0x4fe378,FOCUSING_SHAPE_TEXT_EDITOR as _0x1cdb66,HorizontalAlign as _0x4305f0,ICommandService as _0x46e4d8,IConfigService as _0x5a304f,IContextService as _0x53c8c3,IImageIoService as _0xf5ac9,IURLImageService as _0x46b574,IUndoRedoService as _0x4d8b4b,IUniverInstanceService as _0x22bed1,Inject as _0x2e2475,Injector as _0xe0fbcd,LocaleService as _0x3fae61,Plugin as _0x1dddda,UniverInstanceType as _0x2ce572,VerticalAlign as _0x43e240,createInternalEditorID as _0x35240c,generateRandomId as _0x5b0a2a,merge as _0x2d08ea,toDisposable as _0x52399e,touchDependencies as _0x3da19d}from'@univerjs/core';import{CopySheetCommand as _0x3db4a6,RemoveSheetCommand as _0x561ec6,SheetInterceptorService as _0x16be2b,SheetPermissionCheckController as _0x3aeb77,SheetSkeletonService as _0x2d0b38,SheetsSelectionsService as _0x15336e,UniverSheetsPlugin as _0x37f014,WorkbookEditablePermission as _0x35ca91,WorksheetEditPermission as _0x446d79,attachRangeWithCoord as _0x178278,discreteRangeToRange as _0x1469fd,getSheetCommandTarget as _0x4104ec}from'@univerjs/sheets';import{IDrawingManagerService as _0x1644d5,SetDrawingSelectedOperation as _0x2f07a0,UniverDrawingPlugin as _0x58177f,getDrawingShapeKeyByDrawingSearch as _0x4d60ae,getOrCreateDrawingCopyPlan as _0x108f12}from'@univerjs/drawing';import{CURSOR_TYPE as _0xa4b93e,Circle as _0xdb102c,DRAWING_OBJECT_LAYER_INDEX as _0x22719c,DocumentSkeleton as _0x43b69e,DocumentViewModel as _0x336c4f,Documents as _0x5d905b,IRenderManagerService as _0x37a074,Image as _0x5e8ac4,RENDER_CLASS_TYPE as _0x5b17f8,SHEET_VIEWPORT_KEY as _0x571719,Shape as _0x25aea5,Transform as _0x4915c5,UniverRenderEnginePlugin as _0x40bd64,Vector2 as _0x5a9bd8}from'@univerjs/engine-render';import{COPY_TYPE as _0x3ad175,ISheetClipboardService as _0xb2e7a2,PREDEFINED_HOOK_NAME as _0x5c3ee4,SheetCanvasPopManagerService as _0x4817cd,SheetPrintInterceptorService as _0x1af16d,SheetScrollManagerService as _0x51344e,SheetSkeletonManagerService as _0x58befb,UniverSheetsUIPlugin as _0x4e1ffc,deriveStateFromActiveSheet$ as _0x8b444,getCurrentRangeDisable$ as _0x19fc01,getViewportByCell as _0x23e0fe}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x377ada,EMPTY as _0x53e669,Observable as _0x14d0cd,map as _0x3ffce0,of as _0x571f73,startWith as _0xea5433,switchMap as _0x20fbec}from'rxjs';import{DrawingCommonPanel as _0x5aebc8,DrawingImageClipService as _0x1e2122,DrawingRenderService as _0x44518e,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x105c46,OBJECT_LIST_FLOATING_SECTION_ID as _0x1767bf,ObjectListPanelBase as _0x507439,UniverDrawingUIPlugin as _0x2fdd1b,getCurrentUnitInfo as _0x49ac42,getObjectListPanelLabels as _0x11fb9f,getObjectListPanelSectionIdForDrawingType as _0x19e79d,getObjectListPanelTypeName as _0x389497,insertGroupObject as _0x4aa95f}from'@univerjs/drawing-ui';import{Fragment as _0x16b2fe,jsx as _0x26713b,jsxs as _0x3acd23}from'react/jsx-runtime';import{DrawingApplyType as _0x33c6ec,ISheetDrawingService as _0x460b38,RemoveSheetDrawingCommand as _0x483709,SetDrawingApplyMutation as _0x47767d,SetDrawingArrangeCommand as _0x474f53,SetSheetDrawingCommand as _0x41f305,UniverSheetsDrawingPlugin as _0x40f2a6,transformToAxisAlignPosition as _0x1f9ea5,transformToDrawingPosition as _0x1633a2}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x24931b}from'@univerjs-pro/license';import{DocInterceptorService as _0x33e8a0,DocSelectionManagerService as _0x1c01d6,UniverDocsPlugin as _0x566abe}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x33ca8f,DocEventManagerService as _0x2c4993,DocRenderController as _0x2bef20,DocSelectionRenderService as _0x1aec61,UniverDocsUIPlugin as _0xbc67aa}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x42148c,SheetsDrawingGroupCopyPasteController as _0x3b1dfb,UniverSheetsDrawingUIPlugin as _0x1df509}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x3bd01a,FlipHorizontalIcon as _0x2f696e,FlipVerticalIcon as _0x382856,MoveDownIcon as _0x164d4d,MoveUpIcon as _0x1e4b26,ObjectLayersIcon as _0x211ee9,ShapeFormatSettingIcon as _0x2dd85d,TopmostIcon as _0xe5adf2}from'@univerjs/icons';import{memo as _0x5acb43,useEffect as _0x45ee55,useMemo as _0x2a519c,useReducer as _0x3f08fe,useState as _0x24f8d3}from'react';function ir(_0x20ddc0,_0x24e87a){const _0x46c4d4=_0x1d1c;let _0x2b8c70={};for(let _0x2a62f3 of Object['keys'](_0x24e87a)){let _0x286842=_0x24e87a[_0x2a62f3],_0x54e668=_0x20ddc0[_0x2a62f3];if(_0x286842!==void 0x0){if(_0x54e668===void 0x0){_0x2b8c70[_0x2a62f3]=void 0x0;continue;}typeof _0x286842==_0x46c4d4(0xdc)&&_0x286842&&!Array[_0x46c4d4(0x239)](_0x286842)&&typeof _0x54e668==_0x46c4d4(0xdc)&&_0x54e668&&!Array[_0x46c4d4(0x239)](_0x54e668)?_0x2b8c70[_0x2a62f3]=ir(_0x54e668,_0x286842):_0x2b8c70[_0x2a62f3]=_0x54e668;}}return _0x2b8c70;}const ar={'type':_0x3ab13f[_0x4b851e(0x95)],'id':_0x4b851e(0x1ca),'handler':(_0x45e361,_0x40de99)=>{const _0x499ef9=_0x4b851e;let _0x20ea08=_0x45e361[_0x499ef9(0x2c2)](_0x1bfe6b),{unitId:_0x191e25,subUnitId:_0x3f28e9,shapeType:_0x190326,shapeId:_0x5b0ea3,shapeData:_0x3e5958,replaceShapeData:_0x26bda1,oldShapeJSON:_0x1ec12a}=_0x40de99;if(!_0x20ea08[_0x499ef9(0x138)](_0x191e25,_0x3f28e9,_0x5b0ea3))return!0x1;let _0x3cfb5d=_0x45e361[_0x499ef9(0x2c2)](_0x46e4d8),_0x538952=_0x45e361[_0x499ef9(0x2c2)](_0x4d8b4b),{oldShapeType:_0x2a1bf3,oldShapeData:_0x9fe6f6={}}=_0x1ec12a,_0x57679c=_0x26bda1?_0x9fe6f6:ir(_0x9fe6f6,_0x3e5958||{}),_0x490fcb={'id':_0x4b69e7['id'],'params':{'unitId':_0x191e25,'subUnitId':_0x3f28e9,'shapeId':_0x5b0ea3,'shapeType':_0x190326,'shapeData':_0x3e5958,'replace':_0x26bda1}},_0x58d677={'id':_0x4b69e7['id'],'params':{'unitId':_0x191e25,'subUnitId':_0x3f28e9,'shapeId':_0x5b0ea3,'shapeType':_0x2a1bf3,'shapeData':_0x57679c,'replace':_0x26bda1}};return _0x3cfb5d[_0x499ef9(0xc3)](_0x490fcb['id'],_0x490fcb[_0x499ef9(0x29f)])?(_0x538952['pushUndoRedo']({'unitID':_0x191e25,'undoMutations':[_0x58d677],'redoMutations':[_0x490fcb]}),!0x0):!0x1;}};function or(_0x16d6d7,_0x31bfde,_0x53bdc9,_0x41d29e,_0x1202be,_0x20ef42){let _0x95a3f9={'unitId':_0x31bfde,'subUnitId':_0x53bdc9,'shapeId':_0x41d29e,'shapeData':_0x20ef42,'oldShapeJSON':_0x1202be};return _0x16d6d7['executeCommand'](ar['id'],_0x95a3f9);}function sr(_0x46dc6e,_0x3fbe74,_0x4baaa0,_0x68495b,_0x161954,_0x41543b){const _0x42b589=_0x4b851e;let _0x145693={'unitId':_0x3fbe74,'subUnitId':_0x4baaa0,'shapeId':_0x68495b,'shapeData':_0x41543b,'oldShapeJSON':_0x161954};return _0x46dc6e[_0x42b589(0x163)](ar['id'],_0x145693);}function cr(_0xcabfe4){'@babel/helpers - typeof';const _0x528130=_0x4b851e;return cr=typeof Symbol==_0x528130(0x2b7)&&typeof Symbol[_0x528130(0x217)]=='symbol'?function(_0x45e46e){return typeof _0x45e46e;}:function(_0x4ffcbc){const _0x354b37=_0x528130;return _0x4ffcbc&&typeof Symbol==_0x354b37(0x2b7)&&_0x4ffcbc['constructor']===Symbol&&_0x4ffcbc!==Symbol[_0x354b37(0x175)]?_0x354b37(0x1a8):typeof _0x4ffcbc;},cr(_0xcabfe4);}function lr(_0x9fd440,_0x2cb3ad){const _0x40dc54=_0x4b851e;if(cr(_0x9fd440)!=_0x40dc54(0xdc)||!_0x9fd440)return _0x9fd440;var _0x537b68=_0x9fd440[Symbol[_0x40dc54(0xf2)]];if(_0x537b68!==void 0x0){var _0x469b24=_0x537b68[_0x40dc54(0x276)](_0x9fd440,_0x2cb3ad||'default');if(cr(_0x469b24)!=_0x40dc54(0xdc))return _0x469b24;throw TypeError(_0x40dc54(0x2f5));}return(_0x2cb3ad===_0x40dc54(0xfc)?String:Number)(_0x9fd440);}function ur(_0x4e4096){const _0x1f8371=_0x4b851e;var _0x4e9688=lr(_0x4e4096,_0x1f8371(0xfc));return cr(_0x4e9688)==_0x1f8371(0x1a8)?_0x4e9688:_0x4e9688+'';}function Y(_0x5106c5,_0x5e0e01,_0x446d6d){const _0x59cd11=_0x4b851e;return(_0x5e0e01=ur(_0x5e0e01))in _0x5106c5?Object[_0x59cd11(0x286)](_0x5106c5,_0x5e0e01,{'value':_0x446d6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5106c5[_0x5e0e01]=_0x446d6d,_0x5106c5;}function dr(_0x4d668c,_0x1d8f79,_0x3f12b5){const _0x324c23=_0x4b851e;let _0x14632b=_0x60268f(_0x4d668c,{..._0x1d8f79,'dataModel':{..._0x1d8f79[_0x324c23(0x1ae)]??{},..._0x3f12b5?{'doc':_0x3f12b5}:null}}),_0x41d0ac=_0x4c6d67(_0x14632b);return{'clip':_0x1de880(_0x14632b,_0x41d0ac),'wrapStrategy':_0x41d0ac};}var fr=class extends _0x25aea5{constructor(_0x28a1b5,_0x43079b){const _0x15eb2f=_0x4b851e;super(_0x28a1b5,_0x43079b),Y(this,'_props',void 0x0),Y(this,'_formulaAnimation',new _0x24c8d6(()=>this[_0x15eb2f(0x2b3)](!0x0),()=>this[_0x15eb2f(0x1d1)]())),Y(this,_0x15eb2f(0x143),!0x0),Y(this,_0x15eb2f(0xda),_0x514277[_0x15eb2f(0xcb)]),Y(this,_0x15eb2f(0x204),!0x0),this['_props']={..._0x43079b},this[_0x15eb2f(0x14a)][_0x15eb2f(0x15d)](_0x43079b['formulaPresentation'],_0x43079b[_0x15eb2f(0x17f)]!==!0x1),this[_0x15eb2f(0xae)](),this['_applyFormulaAutoFitSize']();}[_0x4b851e(0xae)](){const _0x3933dc=_0x4b851e;this[_0x3933dc(0x293)][_0x3933dc(0x26b)](_0x2fe81d=>{const _0x3b63a7=_0x3933dc;this[_0x3b63a7(0x170)](_0x2fe81d);});}[_0x4b851e(0xaa)](_0x21923f){const _0xe7498b=_0x4b851e;this[_0xe7498b(0x112)]['prstGeom']=_0x21923f;}['setEditing'](_0x132f67){const _0xeebd91=_0x4b851e;this[_0xeebd91(0x112)][_0xeebd91(0x24b)]=_0x132f67,this[_0xeebd91(0x2b3)](!0x0);}[_0x4b851e(0x111)](_0xbb1f7b,_0x38b68b=!0x0){const _0x2c9ffb=_0x4b851e;this[_0x2c9ffb(0x14a)]['setPresentation'](_0xbb1f7b,_0x38b68b),this[_0x2c9ffb(0x112)][_0x2c9ffb(0x24e)]=_0xbb1f7b,this['_applyFormulaAutoFitSize'](),this[_0x2c9ffb(0x2b3)](!0x0);}[_0x4b851e(0x1d1)](){const _0x148c0b=_0x4b851e;let _0x225f0e=this[_0x148c0b(0x112)][_0x148c0b(0x197)],_0x56aa0f=_0x225f0e['getShapeTextData'](),_0x270fec=_0x5c2b25(_0x56aa0f==null?void 0x0:_0x56aa0f['dataModel']),_0x35c4f3=_0x270fec==null?void 0x0:_0x270fec[_0x148c0b(0xd3)],_0x3e8891=this[_0x148c0b(0x14a)][_0x148c0b(0x234)]();if(!_0x35c4f3||_0x3e8891[_0x148c0b(0x8c)]===0x0)return;_0x225f0e[_0x148c0b(0x113)]({'width':this[_0x148c0b(0x193)],'height':this[_0x148c0b(0x1ff)]});let _0x58842b=_0x4997b9({'documentData':_0x3e8891[_0x148c0b(0x27b)](_0xddd9e2=>_0x37b416(_0x35c4f3,_0xddd9e2)),'height':this[_0x148c0b(0x1ff)],'shapeData':_0x225f0e['getShapeData'](),'textRect':_0x225f0e[_0x148c0b(0x1aa)]({'left':0x0,'top':0x0,'width':this['width'],'height':this['height']}),'width':this['width']});if(_0x58842b){var _0x2f48bb;this['resize'](_0x58842b[_0x148c0b(0x193)],_0x58842b[_0x148c0b(0x1ff)]),(_0x2f48bb=this['getScene']())==null||(_0x2f48bb=_0x2f48bb[_0x148c0b(0x2c1)]())==null||_0x2f48bb[_0x148c0b(0x2a8)]();}}get[_0x4b851e(0x2e2)](){const _0x19bb70=_0x4b851e;return this[_0x19bb70(0x112)][_0x19bb70(0x2e2)];}get[_0x4b851e(0x20f)](){const _0x44f622=_0x4b851e;return this[_0x44f622(0x112)][_0x44f622(0x20f)];}['_updateSrcRectByTransform'](_0x5a5da2){const _0x39ed50=_0x4b851e;if(this['_props'][_0x39ed50(0x97)]==null||!this[_0x39ed50(0x143)])return;let {width:_0x3b1736,height:_0x1e0681}=this,{width:_0x3244fe=0x0,height:_0x43a4d8=0x0}=_0x5a5da2[_0x39ed50(0x7a)],{left:_0x4fc27b=0x0,top:_0x9394d7=0x0,right:_0x16db8f=0x0,bottom:_0x46ce63=0x0}=this[_0x39ed50(0x112)]['srcRect'],_0x1cf24f=_0x4fc27b,_0x1e5c2a=_0x9394d7,_0x4fd840=_0x16db8f,_0x4514a2=_0x46ce63,_0x2bcc2a=!0x1;if(_0x3244fe!==0x0&&_0x3244fe!==_0x3b1736){let _0x715e08=_0x4fc27b/_0x3244fe,_0x2aef49=_0x16db8f/_0x3244fe;_0x1cf24f=_0x3b1736*_0x715e08,_0x4fd840=_0x3b1736*_0x2aef49,_0x2bcc2a=!0x0;}if(_0x43a4d8!==0x0&&_0x43a4d8!==_0x1e0681){let _0x5ca939=_0x9394d7/_0x43a4d8,_0x43eb7a=_0x46ce63/_0x43a4d8;_0x1e5c2a=_0x1e0681*_0x5ca939,_0x4514a2=_0x1e0681*_0x43eb7a,_0x2bcc2a=!0x0;}_0x2bcc2a&&this[_0x39ed50(0x133)]({'left':_0x1cf24f,'top':_0x1e5c2a,'right':_0x4fd840,'bottom':_0x4514a2});}[_0x4b851e(0x133)](_0x56ffcc){const _0x3619b7=_0x4b851e;this[_0x3619b7(0x112)][_0x3619b7(0x97)]=_0x56ffcc,this[_0x3619b7(0x2b3)](!0x0);}[_0x4b851e(0x26d)](_0x19bda3){const _0x27e2ef=_0x4b851e;this[_0x27e2ef(0x112)][_0x27e2ef(0x76)]=_0x19bda3,this[_0x27e2ef(0x2b3)](!0x0);}set['transform'](_0xc526){const _0x3e5e75=_0x4b851e;this[_0x3e5e75(0xc5)]=_0xc526;}get[_0x4b851e(0x1c1)](){const _0x3071c3=_0x4b851e;this['_transform']||this['_setTransForm']();let _0x2dfacb=this[_0x3071c3(0xc5)][_0x3071c3(0x259)]();return this['transformForAngle'](_0x2dfacb);}get['shapeModel'](){const _0x450be7=_0x4b851e;return this[_0x450be7(0x112)]['shapeModel'];}get['shapeId'](){const _0x20f3cf=_0x4b851e;return this[_0x20f3cf(0x112)]['shapeId'];}get[_0x4b851e(0x2ee)](){return _0x5b17f8['SHAPE'];}[_0x4b851e(0x161)](_0x30a626,_0x6ab884,_0x38cac9,_0x164902){const _0x359af2=_0x4b851e;let _0x41e9d5=this[_0x359af2(0x112)]['shapeModel'];if(!_0x41e9d5||!_0x6ab884)return;let _0x250dca=_0x38cac9??this[_0x359af2(0x193)],_0x5eb7d9=_0x164902??this[_0x359af2(0x1ff)],_0x2cdf56={'shapeType':_0x41e9d5[_0x359af2(0x180)](),'width':_0x250dca,'height':_0x5eb7d9},_0x41cde8={'renderMode':_0x1ebdea['Path'],'oKey':this[_0x359af2(0x241)],'image':this[_0x359af2(0x112)][_0x359af2(0x76)],'angle':this[_0x359af2(0x2a4)]};_0x41e9d5['updateContext'](_0x2cdf56),_0x30a626[_0x359af2(0x91)]();let _0x53efc3={'top':0x0,'left':0x0,'width':_0x250dca,'height':_0x5eb7d9},_0x53cf53=_0x41e9d5['getDrawingEffectBounds'](_0x53efc3);_0x53cf53?this[_0x359af2(0x94)](_0x30a626,_0x53cf53,_0x2b1f2a=>{const _0x1e45f2=_0x359af2;_0x41e9d5[_0x1e45f2(0xc8)](_0x2b1f2a,_0x53efc3,_0x41cde8);}):(this[_0x359af2(0xea)](),_0x41e9d5['render'](_0x30a626,_0x53efc3,_0x41cde8)),_0x30a626[_0x359af2(0x108)]();let _0x27d3ef=_0x41e9d5[_0x359af2(0x155)](),_0x5f1a56=_0x41e9d5['getShapeTextRect'](_0x53efc3),_0x635734=_0x41e9d5['isLineShape']();if(_0x27d3ef&&_0x5f1a56&&!_0x635734){_0x30a626[_0x359af2(0x91)](),this[_0x359af2(0x270)]()[_0x359af2(0x2ae)]&&_0x30a626[_0x359af2(0x24a)](-0x1,0x1);let _0x48c25c=_0x250dca/0x2,_0x591a00=_0x5eb7d9/0x2;_0x30a626[_0x359af2(0x190)](-_0x48c25c,-_0x591a00),_0x30a626[_0x359af2(0x223)](),this['_drawShapeText'](_0x30a626,_0x27d3ef,_0x5f1a56),_0x30a626[_0x359af2(0x108)]();}}[_0x4b851e(0xfd)](_0x50a9cb){}[_0x4b851e(0x178)](_0x5b3416,_0x599b3c,_0x3e1b86){const _0x2af876=_0x4b851e;var _0x3a9162;this[_0x2af876(0x112)][_0x2af876(0x24b)]||(!((_0x3a9162=_0x599b3c['dataModel'])!=null&&_0x3a9162[_0x2af876(0xd3)])&&'isRichText'in _0x599b3c&&_0x599b3c['isRichText']===!0x1?this[_0x2af876(0x192)](_0x5b3416,_0x599b3c,_0x3e1b86):this[_0x2af876(0x18f)](_0x5b3416,_0x599b3c,_0x3e1b86));}[_0x4b851e(0x192)](_0x459ae2,_0x1b5032,_0x2cb3f9){const _0x446572=_0x4b851e;this[_0x446572(0x18f)](_0x459ae2,{..._0x1b5032,'text':_0x1b5032[_0x446572(0x173)]??'','dataModel':{'doc':_0x3ec507(_0x1b5032,'sheets-shape-text-'+this[_0x446572(0x241)])}},_0x2cb3f9);}[_0x4b851e(0x18f)](_0x235dd1,_0x447815,_0x14c40b){_0x2cc10b(_0x235dd1,this['_formulaAnimation'],(_0x5b44a8,_0x5674bc)=>{const _0x18faaf=_0x1d1c;this[_0x18faaf(0x1a4)](_0x5b44a8,_0x447815,_0x14c40b,_0x5674bc);});}[_0x4b851e(0x1a4)](_0x26243c,_0x282854,_0x1c3f88,_0x22f338){const _0x46464b=_0x4b851e;let _0x4759d2=this[_0x46464b(0x112)][_0x46464b(0x2b4)];if(!_0x282854['dataModel']||!_0x4759d2)return;let _0x2b3458=_0x5c2b25(_0x282854[_0x46464b(0x1ae)]);if(!_0x2b3458)return;let _0xf3ac18=_0x2b3458['doc'];if(!_0xf3ac18)return;let _0x5c6057=_0x37b416(_0xf3ac18,_0x22f338),_0x3d22ef=_0x2b3458['va']??_0x43e240['TOP'],_0x428810=_0x2b3458['ha']??_0x4305f0[_0x46464b(0x16c)],_0x484e5b=dr(this[_0x46464b(0x112)][_0x46464b(0x197)][_0x46464b(0x88)](),_0x282854,_0x5c6057),_0x59ccb3=_0x282854[_0x46464b(0x202)],_0x28e62f=new _0x354220(_0x12ba59(_0x5c6057,{'isHorizontal':_0x59ccb3!==!0x1,'textRect':_0x1c3f88,'verticalAlign':_0x3d22ef,'horizontalAlign':_0x428810,'wrapStrategy':_0x484e5b[_0x46464b(0x257)]})),_0x226234=new _0x336c4f(_0x28e62f),_0x1f4e1c=_0x43b69e['create'](_0x226234,_0x4759d2);_0x1f4e1c['calculate']();let _0x56a77e=_0x1f4e1c['getActualSize']()[_0x46464b(0xef)],_0x3da661=_0x49c80c({'contentHeight':_0x56a77e,'verticalAlign':_0x3d22ef,'viewportHeight':_0x1c3f88[_0x46464b(0x1ff)]});_0x28e62f[_0x46464b(0x9c)]({'pageSize':{'width':_0x59ccb3===!0x1?_0x1c3f88[_0x46464b(0x1ff)]:_0x1c3f88[_0x46464b(0x193)],'height':_0x3da661[_0x46464b(0x2ac)]}}),_0x28e62f[_0x46464b(0x1c4)]({'t':_0x3da661['marginTop']}),_0x1f4e1c['calculate']();let _0x7698b9=new _0x5d905b('shape-text-'+this[_0x46464b(0x241)],_0x1f4e1c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x46464b(0x2b3)](!0x0)});_0x7698b9[_0x46464b(0xee)](_0x1c3f88[_0x46464b(0x193)],_0x3da661[_0x46464b(0x2ac)]),_0x26243c[_0x46464b(0x91)](),_0x26243c[_0x46464b(0x233)](_0x1c3f88[_0x46464b(0x1d3)],_0x1c3f88[_0x46464b(0x292)]),_0x484e5b[_0x46464b(0x27e)]&&(_0x26243c['beginPath'](),_0x26243c['rect'](0x0,_0x3da661[_0x46464b(0x195)],_0x1c3f88['width'],_0x3da661[_0x46464b(0x1f9)]),_0x26243c[_0x46464b(0x27e)]()),_0x3da661[_0x46464b(0xa0)]&&_0x26243c['translateWithPrecision'](0x0,_0x3da661['contentVerticalOffset']),_0x7698b9[_0x46464b(0x7c)](_0x26243c),_0x26243c[_0x46464b(0x108)](),_0x7698b9[_0x46464b(0x254)](),_0x1f4e1c[_0x46464b(0x254)](),_0x226234[_0x46464b(0x254)](),_0x28e62f[_0x46464b(0x254)]();}['render'](_0x33bdea,_0x4af45a,_0x5015bf=!0x1){const _0x453b30=_0x4b851e;if(!this[_0x453b30(0xe4)])return this[_0x453b30(0x2b3)](!0x1),this;let {width:_0x4dbb61,height:_0x3ec1ba,left:_0x93330d,top:_0x1e1c1f}=this,_0x3ad721=this['getRealBound']();if(_0x4dbb61=_0x3ad721['width'],_0x3ec1ba=_0x3ad721[_0x453b30(0x1ff)],_0x93330d=_0x3ad721[_0x453b30(0x1d3)],_0x1e1c1f=_0x3ad721[_0x453b30(0x292)],this[_0x453b30(0x236)](_0x4af45a)){let {top:_0x1ab75b,left:_0x1d2d51,bottom:_0x680966,right:_0x294c65}=_0x4af45a[_0x453b30(0xbe)];if(_0x4dbb61+this['strokeWidth']+_0x93330d<_0x1d2d51||_0x294c65<_0x93330d||_0x3ec1ba+this[_0x453b30(0x1fc)]+_0x1e1c1f<_0x1ab75b||_0x680966<_0x1e1c1f)return this;}let _0x2848dc=_0x93330d+_0x4dbb61/0x2,_0x5b71e4=_0x1e1c1f+_0x3ec1ba/0x2,_0x56a5b7=this[_0x453b30(0x1c1)][_0x453b30(0x1c5)]();if(this[_0x453b30(0x112)][_0x453b30(0x24b)]){let _0x4bf4e3=this[_0x453b30(0x270)](),_0x2fff45=new _0x4915c5();_0x2fff45[_0x453b30(0x164)]({..._0x4bf4e3}),_0x56a5b7=_0x2fff45[_0x453b30(0x1c5)]();}return _0x33bdea[_0x453b30(0x91)](),this[_0x453b30(0x112)][_0x453b30(0x197)][_0x453b30(0x87)]===!0x0||_0x33bdea[_0x453b30(0x1c1)](_0x56a5b7[0x0],_0x56a5b7[0x1],_0x56a5b7[0x2],_0x56a5b7[0x3],_0x2848dc,_0x5b71e4),this[_0x453b30(0x161)](_0x33bdea,_0x4af45a,_0x4dbb61,_0x3ec1ba),_0x33bdea[_0x453b30(0x108)](),this[_0x453b30(0x2b3)](!0x1),this;}[_0x4b851e(0x81)](_0x130273){const _0x2858be=_0x4b851e;let {left:_0x16c5e0,top:_0x287093,width:_0x3b7b99,height:_0x1839a7}=this['getRealBound'](),_0x5d9d93=this['transform'][_0x2858be(0x1c5)](),_0x4492ff=_0x16c5e0+_0x3b7b99/0x2,_0x544606=_0x287093+_0x1839a7/0x2,_0x83bb5e=new _0x4915c5([_0x5d9d93[0x0],_0x5d9d93[0x1],_0x5d9d93[0x2],_0x5d9d93[0x3],_0x4492ff,_0x544606]),_0x3793c4=this[_0x2858be(0x250)]();return(this[_0x2858be(0x265)]&&(_0x3793c4==null?void 0x0:_0x3793c4[_0x2858be(0x2ee)])===_0x5b17f8['GROUP']?_0x3793c4['ancestorTransform']['multiply'](_0x83bb5e):_0x83bb5e)['invert']()[_0x2858be(0x74)](_0x130273);}['isHit'](_0x318d7f){const _0x12bb18=_0x4b851e;let {left:_0x3b391e,top:_0x49f6e6,width:_0x47c623,height:_0x525ec8}=this[_0x12bb18(0x237)](),_0x36c92e=_0x3b391e+_0x47c623/0x2,_0x4c3f82=_0x49f6e6+_0x525ec8/0x2,_0x26bc80=this[_0x12bb18(0x1c1)][_0x12bb18(0x1c5)](),_0x3f3b9f=new _0x4915c5([_0x26bc80[0x0],_0x26bc80[0x1],_0x26bc80[0x2],_0x26bc80[0x3],_0x36c92e,_0x4c3f82]),_0x4343c3=this[_0x12bb18(0x250)](),_0x1bc5d3=(this[_0x12bb18(0x265)]&&(_0x4343c3==null?void 0x0:_0x4343c3[_0x12bb18(0x2ee)])===_0x5b17f8[_0x12bb18(0x25f)]?_0x4343c3['ancestorTransform'][_0x12bb18(0x1ea)](_0x3f3b9f):_0x3f3b9f)[_0x12bb18(0x124)]()['applyPoint'](_0x318d7f),_0x5f5a4d=_0x47c623/0x2,_0x2b2843=_0x525ec8/0x2,_0x2264b0=this['_props'][_0x12bb18(0x197)];return _0x2264b0&&_0x2264b0[_0x12bb18(0x299)]()?_0x2264b0[_0x12bb18(0x1f1)](_0x1bc5d3['x'],_0x1bc5d3['y'],_0x47c623,_0x525ec8):_0x1bc5d3['x']>=-_0x5f5a4d-this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['x']<=_0x5f5a4d+this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['y']>=-_0x2b2843-this[_0x12bb18(0x1fc)]/0x2&&_0x1bc5d3['y']<=_0x2b2843+this['strokeWidth']/0x2;}[_0x4b851e(0x254)](){const _0x5a5846=_0x4b851e;this[_0x5a5846(0x14a)][_0x5a5846(0x254)](),this[_0x5a5846(0x112)]['shapeModel']=null,super[_0x5a5846(0x254)]();}},pr=class extends _0x25aea5{constructor(_0x5c84ac,_0x164355){const _0x42afa5=_0x4b851e;super(_0x5c84ac,_0x164355),Y(this,'_shapeId',null),Y(this,_0x42afa5(0x1e4),null),Y(this,_0x42afa5(0x7b),null),Y(this,_0x42afa5(0x21a),null),_0x164355&&this[_0x42afa5(0x1ec)](_0x164355);}[_0x4b851e(0x176)](){const _0x257bfe=_0x4b851e;return{'unitId':this[_0x257bfe(0x7b)],'subUnitId':this[_0x257bfe(0x21a)],'drawingId':this['_shapeId']};}[_0x4b851e(0x1ec)](_0x39b288){const _0xcf5aac=_0x4b851e;_0x39b288[_0xcf5aac(0x2e3)]!==void 0x0&&(this[_0xcf5aac(0xf4)]=_0x39b288[_0xcf5aac(0x2e3)]),_0x39b288[_0xcf5aac(0x165)]!==void 0x0&&(this[_0xcf5aac(0x1e4)]=_0x39b288['adjName']),_0x39b288[_0xcf5aac(0x2e2)]!==void 0x0&&(this[_0xcf5aac(0x7b)]=_0x39b288[_0xcf5aac(0x2e2)]),_0x39b288[_0xcf5aac(0x20f)]!==void 0x0&&(this['_subUnitId']=_0x39b288[_0xcf5aac(0x20f)]),this['transformByState']({'width':_0x39b288[_0xcf5aac(0x193)],'height':_0x39b288[_0xcf5aac(0x1ff)]});}[_0x4b851e(0x161)](_0x45f27b){const _0x44c012=_0x4b851e;_0xdb102c[_0x44c012(0x106)](_0x45f27b,{'radius':_0x179953[_0x44c012(0x162)],'fill':_0x179953[_0x44c012(0x2c8)],'stroke':_0x179953[_0x44c012(0xb8)],'strokeWidth':0x1,'evented':!0x0});}};function X(_0x4831b2,_0x4f1db0){return function(_0x87c6dd,_0x1fde21){_0x4f1db0(_0x87c6dd,_0x1fde21,_0x4831b2);};}function Z(_0x5562be,_0x22c505,_0x707c50,_0x2ebe24){const _0x1c1163=_0x4b851e;var _0x4ede51=arguments[_0x1c1163(0x8c)],_0x2ef28d=_0x4ede51<0x3?_0x22c505:_0x2ebe24===null?_0x2ebe24=Object[_0x1c1163(0xeb)](_0x22c505,_0x707c50):_0x2ebe24,_0xae1afd;if(typeof Reflect==_0x1c1163(0xdc)&&typeof Reflect[_0x1c1163(0x73)]==_0x1c1163(0x2b7))_0x2ef28d=Reflect[_0x1c1163(0x73)](_0x5562be,_0x22c505,_0x707c50,_0x2ebe24);else{for(var _0x44664a=_0x5562be['length']-0x1;_0x44664a>=0x0;_0x44664a--)(_0xae1afd=_0x5562be[_0x44664a])&&(_0x2ef28d=(_0x4ede51<0x3?_0xae1afd(_0x2ef28d):_0x4ede51>0x3?_0xae1afd(_0x22c505,_0x707c50,_0x2ef28d):_0xae1afd(_0x22c505,_0x707c50))||_0x2ef28d);}return _0x4ede51>0x3&&_0x2ef28d&&Object['defineProperty'](_0x22c505,_0x707c50,_0x2ef28d),_0x2ef28d;}let Q=class extends _0x387ec6{constructor(_0x3e186d,_0x2473c3,_0x404fd1,_0x312c43,_0x575cd3,_0x5274b6){const _0x207b36=_0x4b851e;super(),this[_0x207b36(0x9d)]=_0x3e186d,this['_sheetsShapeService']=_0x2473c3,this[_0x207b36(0x1b7)]=_0x404fd1,this[_0x207b36(0x1dd)]=_0x312c43,this[_0x207b36(0xa5)]=_0x575cd3,this[_0x207b36(0x15e)]=_0x5274b6,Y(this,'_formulaShapes',new Map()),this[_0x207b36(0x183)](this[_0x207b36(0x15e)][_0x207b36(0x22b)]['subscribe'](_0x5aca12=>{const _0x67c52e=_0x207b36;var _0x36296b;(_0x36296b=this['_formulaShapes'][_0x67c52e(0x2c2)](this['_formulaKey'](_0x5aca12[_0x67c52e(0x2e2)],_0x5aca12['subUnitId'],_0x5aca12[_0x67c52e(0x2e3)])))==null||_0x36296b['forEach'](_0x3aa420=>_0x3aa420[_0x67c52e(0x111)](_0x5aca12[_0x67c52e(0x25b)],_0x5aca12[_0x67c52e(0x15a)]));})),this[_0x207b36(0x183)](this['_drawingManagerService'][_0x207b36(0x86)][_0x207b36(0xd9)](_0x1054a2=>{const _0x5e32c7=_0x207b36;_0x1054a2[_0x5e32c7(0xd7)](_0x5b929f=>{const _0x1afac4=_0x5e32c7;this[_0x1afac4(0x15e)][_0x1afac4(0x1e0)]({'unitId':_0x5b929f[_0x1afac4(0x2e2)],'subUnitId':_0x5b929f['subUnitId'],'shapeId':_0x5b929f['drawingId']}),this['_formulaShapes']['delete'](this[_0x1afac4(0x186)](_0x5b929f['unitId'],_0x5b929f[_0x1afac4(0x20f)],_0x5b929f[_0x1afac4(0x179)]));});}));}[_0x4b851e(0x187)](_0x1b8d49,_0x17c6bb,_0x7c8d83){const _0x5f13a2=_0x4b851e;let {transform:_0x1dc410,drawingType:_0x184253,srcRect:_0x42f5d8,prstGeom:_0x2ed45a,groupId:_0x4c3007,unitId:_0x4bbeed,subUnitId:_0x117c69,drawingId:_0x3d62a9,isMultiTransform:_0x344fe0,transforms:_0x295956,hidden:_0xe945bb,selectable:_0x433472}=_0x1b8d49;if(_0x184253!==_0x514277[_0x5f13a2(0xcb)]||!this['_drawingManagerService']['getDrawingVisible']()||_0x1dc410==null)return;let _0xf9d976=this[_0x5f13a2(0x9d)][_0x5f13a2(0x118)](),_0x2fbbaf=_0x344fe0&&_0x295956?_0x295956:[_0x1dc410],_0x33f529=[];for(let _0x59a8b2 of _0x2fbbaf){let {left:_0x472f94,top:_0x198215,width:_0x22581d,height:_0x356217,angle:_0x46ece3,flipX:_0x4c147,flipY:_0x38f0b0,skewX:_0x42f100,skewY:_0x4fadfc}=_0x59a8b2,_0x2b3084=_0x2fbbaf[_0x5f13a2(0x2c5)](_0x59a8b2),_0xc3fe9d=_0x4d60ae({'unitId':_0x4bbeed,'subUnitId':_0x117c69,'drawingId':_0x3d62a9},_0x344fe0?_0x2b3084:void 0x0),_0x4d9024=_0x17c6bb['getObjectIncludeInGroup'](_0xc3fe9d);if(_0x4d9024!=null){let _0x540775={'unitId':_0x4bbeed,'subUnitId':_0x117c69,'shapeId':_0x3d62a9};_0x4d9024 instanceof fr&&this['refreshFormulaPresentation'](_0x4d9024,_0x540775),_0x4d9024[_0x5f13a2(0x1ab)]({'left':_0x472f94,'top':_0x198215,'width':_0x22581d,'height':_0x356217,'angle':_0x46ece3,'flipX':_0x4c147,'flipY':_0x38f0b0,'skewX':_0x42f100,'skewY':_0x4fadfc});continue;}let _0x549a86=this[_0x5f13a2(0x9d)]['getDrawingOrder'](_0x4bbeed,_0x117c69),_0x39aaea=_0x549a86['indexOf'](_0x3d62a9);if(_0x17c6bb[_0x5f13a2(0x2cb)](_0xc3fe9d)||!this[_0x5f13a2(0x9d)][_0x5f13a2(0xb4)]())continue;let _0x2ac0aa=this[_0x5f13a2(0x80)][_0x5f13a2(0x138)](_0x4bbeed,_0x117c69,_0x3d62a9);if(!_0x2ac0aa)continue;let _0x319b2d=_0x47e56f(_0x2ac0aa[_0x5f13a2(0x180)]())?{..._0x3e5d23,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3e5d23,_0x44729a=_0x2ac0aa[_0x5f13a2(0x88)]()['formulaBinding'],_0x30d6f8={'unitId':_0x4bbeed,'subUnitId':_0x117c69,'shapeId':_0x3d62a9};_0x44729a&&this[_0x5f13a2(0x15e)][_0x5f13a2(0x2ea)](_0x30d6f8,_0x44729a);let _0x218bad=new fr(_0xc3fe9d,{..._0x59a8b2,'zIndex':_0x39aaea===-0x1?_0x549a86[_0x5f13a2(0x8c)]-0x1:_0x39aaea,'shapeModel':_0x2ac0aa,'localeService':this['_localeService'],'shapeId':_0x3d62a9,'unitId':_0x4bbeed,'subUnitId':_0x117c69,'visible':_0xe945bb!==!0x0,'evented':_0x433472!==!0x1,'formulaPresentation':_0x44729a?this[_0x5f13a2(0x15e)]['getPresentation'](_0x30d6f8):void 0x0,'animateFormulaPresentation':(_0x44729a==null?void 0x0:_0x44729a[_0x5f13a2(0x15a)])!==!0x1,'transformerConfig':_0x319b2d});if(_0x44729a){let _0x341433=this[_0x5f13a2(0x186)](_0x4bbeed,_0x117c69,_0x3d62a9),_0x4c9377=this[_0x5f13a2(0xc1)][_0x5f13a2(0x2c2)](_0x341433)??new Set();_0x4c9377[_0x5f13a2(0x2de)](_0x218bad),this['_formulaShapes'][_0x5f13a2(0x177)](_0x341433,_0x4c9377);}_0x17c6bb[_0x5f13a2(0x2ec)](_0x218bad,_0x22719c),_0xf9d976&&_0x17c6bb[_0x5f13a2(0x290)](_0x218bad),_0x4c3007&&_0x4aa95f({'drawingId':_0x4c3007,'unitId':_0x4bbeed,'subUnitId':_0x117c69},_0x218bad,_0x17c6bb,this[_0x5f13a2(0x9d)]),_0x2ed45a!=null&&_0x218bad[_0x5f13a2(0xaa)](_0x2ed45a),_0x42f5d8!=null&&_0x218bad[_0x5f13a2(0x133)](_0x42f5d8);let _0x94aa87=this[_0x5f13a2(0x2db)](_0x218bad,_0x2ac0aa['getShapeData']());if(_0x94aa87){var _0x20ce5b;_0x7c8d83==null||(_0x20ce5b=_0x7c8d83[_0x5f13a2(0x1a5)])==null||_0x20ce5b[_0x5f13a2(0x2de)](_0x94aa87);}_0x33f529[_0x5f13a2(0x102)](_0x218bad);}return _0x33f529;}[_0x4b851e(0x186)](_0x3f10c4,_0x4e6468,_0x123700){return _0x3f10c4+'\x00'+_0x4e6468+'\x00'+_0x123700;}['refreshFormulaPresentation'](_0x3b2144,_0x13a64c){const _0x3cfe04=_0x4b851e;let _0x3f29df=this['_sheetsShapeService'][_0x3cfe04(0x138)](_0x13a64c[_0x3cfe04(0x2e2)],_0x13a64c[_0x3cfe04(0x20f)],_0x13a64c['shapeId']),_0x2b81fd=_0x3f29df==null?void 0x0:_0x3f29df[_0x3cfe04(0x88)]()[_0x3cfe04(0x2ba)],_0x100dc5=this[_0x3cfe04(0x186)](_0x13a64c[_0x3cfe04(0x2e2)],_0x13a64c['subUnitId'],_0x13a64c[_0x3cfe04(0x2e3)]);if(_0x2b81fd){this[_0x3cfe04(0x15e)][_0x3cfe04(0x2ea)](_0x13a64c,_0x2b81fd);let _0x2693a7=this[_0x3cfe04(0xc1)][_0x3cfe04(0x2c2)](_0x100dc5)??new Set();_0x2693a7['add'](_0x3b2144),this[_0x3cfe04(0xc1)][_0x3cfe04(0x177)](_0x100dc5,_0x2693a7);}else{var _0x47dbf6;this[_0x3cfe04(0x15e)]['unregister'](_0x13a64c),(_0x47dbf6=this[_0x3cfe04(0xc1)][_0x3cfe04(0x2c2)](_0x100dc5))==null||_0x47dbf6[_0x3cfe04(0x167)](_0x3b2144);}_0x3b2144[_0x3cfe04(0x111)](_0x2b81fd?this[_0x3cfe04(0x15e)][_0x3cfe04(0x2e9)](_0x13a64c):void 0x0,(_0x2b81fd==null?void 0x0:_0x2b81fd[_0x3cfe04(0x15a)])!==!0x1);}[_0x4b851e(0x2e5)](_0x7e79cf){const _0xacb004=_0x4b851e;let _0x3fd054=_0x7e79cf[_0xacb004(0x197)][_0xacb004(0x88)](),_0x1333cd=_0x3fd054[_0xacb004(0x1d4)];if(!_0x1333cd||_0x1333cd[_0xacb004(0x148)]!==_0x5cb73a['PictureFill']||!_0x1333cd[_0xacb004(0x252)]){_0x7e79cf[_0xacb004(0x26d)](void 0x0);return;}this[_0xacb004(0x2db)](_0x7e79cf,_0x3fd054);}['_loadShapePictureFill'](_0x578397,_0x1ff821){const _0x2fae11=_0x4b851e;let _0x6ee150=_0x1ff821[_0x2fae11(0x1d4)];if(!_0x6ee150||_0x6ee150['fillType']!==_0x5cb73a['PictureFill']||!_0x6ee150[_0x2fae11(0x252)])return;let _0x288df2=_0x6ee150[_0x2fae11(0x252)],_0x5aa78d=_0x6ee150[_0x2fae11(0x10b)]??_0x22d802['URL'],_0x237e4c=this[_0x2fae11(0x1dd)][_0x2fae11(0x2f3)](_0x288df2,_0x5aa78d);if(_0x237e4c){_0x578397[_0x2fae11(0x26d)](_0x237e4c);return;}return this['_loadAndSetImage'](_0x578397,_0x288df2,_0x5aa78d);}async['_loadAndSetImage'](_0x5f30fb,_0x3e74da,_0x4e2266){const _0x59a761=_0x4b851e;let _0x567f19;try{if(_0x4e2266===_0x22d802['UUID'])_0x567f19=await this['_imageIoService']['getImage'](_0x3e74da);else{if(_0x4e2266===_0x22d802[_0x59a761(0x1b2)])try{_0x567f19=await this[_0x59a761(0xa5)][_0x59a761(0x279)](_0x3e74da);}catch{_0x567f19=_0x3e74da;}else _0x567f19=_0x3e74da;}}catch(_0x2d902f){console[_0x59a761(0x151)](_0x59a761(0x100),_0x2d902f);return;}await new Promise(_0x2e6bd3=>{const _0x905d0d=_0x59a761;let _0x539f7f=new window[(_0x905d0d(0x207))]();_0x539f7f[_0x905d0d(0x216)]=()=>{const _0x31b1af=_0x905d0d;this['_imageIoService'][_0x31b1af(0x142)](_0x3e74da,_0x4e2266,_0x539f7f),_0x5f30fb[_0x31b1af(0x26d)](_0x539f7f),_0x2e6bd3();},_0x539f7f[_0x905d0d(0x18e)]=()=>{console['error']('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x3e74da),_0x2e6bd3();},_0x539f7f['src']=_0x567f19;});}};Q=Z([X(0x0,_0x1644d5),X(0x1,_0x2e2475(_0x1bfe6b)),X(0x2,_0x2e2475(_0x3fae61)),X(0x3,_0xf5ac9),X(0x4,_0x46b574),X(0x5,_0x2e2475(_0x3c9fb4))],Q);let mr=class extends _0x387ec6{constructor(_0x53281f,_0xdf9f96,_0x1cb648,_0x1aa7ea,_0x52da7a,_0x1d0e94){const _0x53120f=_0x4b851e;super(),this['_drawingManagerService']=_0x53281f,this['_sheetsShapeService']=_0xdf9f96,this[_0x53120f(0x1bb)]=_0x1cb648,this[_0x53120f(0x2f7)]=_0x1aa7ea,this[_0x53120f(0x25c)]=_0x52da7a,this[_0x53120f(0x13c)]=_0x1d0e94,Y(this,_0x53120f(0x146),null),Y(this,'_unitId',null),Y(this,_0x53120f(0x21a),null),Y(this,_0x53120f(0x149),void 0x0),Y(this,_0x53120f(0x29c),[]),Y(this,'_baseShapeLeft',0x0),Y(this,_0x53120f(0x260),0x0),Y(this,_0x53120f(0x191),0x0),Y(this,_0x53120f(0x1a2),0x0),Y(this,_0x53120f(0x12f),!0x1),Y(this,_0x53120f(0x1a9),void 0x0),Y(this,'_activeShapeModel',void 0x0),Y(this,_0x53120f(0xc4),void 0x0),Y(this,_0x53120f(0x2d6),void 0x0),Y(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x53120f(0xdb)](),this[_0x53120f(0x1de)]();}[_0x4b851e(0x2bc)](_0x5ae60d,_0x149880,_0x5a487b){const _0x403cde=_0x4b851e;let _0x19d8d7=this[_0x403cde(0x80)][_0x403cde(0x138)](_0x5ae60d,_0x149880,_0x5a487b);if(_0x19d8d7)return _0x19d8d7[_0x403cde(0xfd)]();}['clearAdjustControls'](){this['_clearShapeAdjustControls']();}[_0x4b851e(0x2d8)](){const _0x449092=_0x4b851e;this[_0x449092(0x1fb)](!0x0);}[_0x4b851e(0x1e1)](_0x3b75bb){const _0x1131d9=_0x4b851e;this[_0x1131d9(0x2f1)]=_0x3b75bb;}[_0x4b851e(0x7d)](_0x381994,_0xe1040f,_0x46b916,_0x438e93){const _0x3eb07c=_0x4b851e;let _0x5ea5ff=this[_0x3eb07c(0x80)][_0x3eb07c(0x138)](_0x381994,_0xe1040f,_0x46b916);if(_0x5ea5ff)return _0x5ea5ff['getAdjustInfoByName'](_0x438e93);}['_createShapeAdjustControls'](_0x37ff08=!0x1){const _0x571bf1=_0x4b851e;if(this[_0x571bf1(0x7b)]===null||this[_0x571bf1(0x21a)]===null||this[_0x571bf1(0x146)]===null)return;let _0xb3a1d0=this[_0x571bf1(0x1bb)]['getRenderUnitById'](this['_unitId']);if(!_0xb3a1d0||!_0xb3a1d0[_0x571bf1(0x25d)](_0x58befb)['getCurrentSkeleton']())return;let {scene:_0x244822}=_0xb3a1d0,_0x4a2432={'unitId':this[_0x571bf1(0x7b)],'subUnitId':this[_0x571bf1(0x21a)],'drawingId':this[_0x571bf1(0x146)]},_0x4ed21f=this['_drawingManagerService'][_0x571bf1(0x2cc)](_0x4a2432),{transform:_0x3572fe}=_0x4ed21f;if(!_0x3572fe||_0x4ed21f[_0x571bf1(0x14f)]!==_0x514277[_0x571bf1(0xcb)])return;let {left:_0x37d944,top:_0x2c01ca,width:_0x4cf9e9,height:_0x1db980,flipX:_0x54d87c,flipY:_0x527aca,angle:_0x33ab61=0x0}=_0x3572fe;if(_0x37d944===void 0x0||_0x2c01ca===void 0x0)return;if(_0x37ff08){let _0x2e64e5=this[_0x571bf1(0x80)][_0x571bf1(0x138)](this[_0x571bf1(0x7b)],this[_0x571bf1(0x21a)],this[_0x571bf1(0x146)]);_0x2e64e5==null||_0x2e64e5['updateContext']({'width':_0x4cf9e9??0x0,'height':_0x1db980??0x0}),this[_0x571bf1(0x149)]=_0x2e64e5==null?void 0x0:_0x2e64e5[_0x571bf1(0xfd)]();}let _0x16767f=this[_0x571bf1(0x149)];for(let _0xa4492=0x0;_0xa4492<_0x16767f['length'];_0xa4492++){let _0x5df65f=_0x16767f[_0xa4492],_0x2801c0=_0x5df65f['x'],_0x4e9a72=_0x5df65f['y'];if(_0x54d87c&&(_0x2801c0=(_0x4cf9e9||0x0)-_0x2801c0),_0x527aca&&(_0x4e9a72=(_0x1db980||0x0)-_0x4e9a72),_0x33ab61!==0x0){let _0x2919d1=(_0x4cf9e9||0x0)/0x2,_0x4c80c6=(_0x1db980||0x0)/0x2,_0xfc94be=_0x33ab61*Math['PI']/0xb4,_0x5744bb=Math['cos'](_0xfc94be),_0x37792e=Math[_0x571bf1(0x12d)](_0xfc94be),_0x420517=_0x2801c0-_0x2919d1,_0xe8c9a9=_0x4e9a72-_0x4c80c6;_0x2801c0=_0x2919d1+(_0x420517*_0x5744bb-_0xe8c9a9*_0x37792e),_0x4e9a72=_0x4c80c6+(_0x420517*_0x37792e+_0xe8c9a9*_0x5744bb);}let _0x487dfe={'x':_0x2801c0,'y':_0x4e9a72,'adjName':_0x5df65f[_0x571bf1(0x165)]};this[_0x571bf1(0x72)](_0x244822,_0x487dfe,_0x487dfe[_0x571bf1(0x165)],_0x37d944,_0x2c01ca,this[_0x571bf1(0x7b)],this[_0x571bf1(0x21a)]);}}[_0x4b851e(0x1fb)](_0x3631fc=!0x1){const _0x387ce4=_0x4b851e;_0x3631fc&&(this['_clearShapeAdjustControls'](),this[_0x387ce4(0x22c)](_0x3631fc));}['_addShapeAdjustControl'](_0x22d120,_0x5b7fe6,_0x19eb2a,_0x4327fc,_0x486048,_0x49cf2b,_0x29c43b){const _0x2f67cb=_0x4b851e;if(!this[_0x2f67cb(0x146)])return;let _0x3c193f=_0x22d120[_0x2f67cb(0x2cb)](_0x2f67cb(0x131)+this['_activeShapeId']+'-'+_0x19eb2a);if(_0x3c193f){_0x3c193f[_0x2f67cb(0x1ab)]({'left':_0x5b7fe6['x']+_0x4327fc-_0x179953['adjHandleSize'],'top':_0x5b7fe6['y']+_0x486048-_0x179953['adjHandleSize']});return;}let _0x34ab15={'left':_0x5b7fe6['x']+_0x4327fc-_0x179953['adjHandleSize'],'top':_0x5b7fe6['y']+_0x486048-_0x179953[_0x2f67cb(0x162)],'adjName':_0x19eb2a,'shapeId':this['_activeShapeId'],'unitId':_0x49cf2b,'subUnitId':_0x29c43b,'width':_0x179953[_0x2f67cb(0x162)]+0x8,'height':_0x179953[_0x2f67cb(0x162)]+0x8,'zIndex':_0x22719c+0x1,'evented':!0x0},_0x2cc9b8=new pr(_0x2f67cb(0x131)+this[_0x2f67cb(0x146)]+'-'+_0x19eb2a,_0x34ab15);this[_0x2f67cb(0x29c)]['push'](_0x2cc9b8),this[_0x2f67cb(0x2a1)](_0x2cc9b8,_0x22d120,_0x19eb2a),_0x22d120['addObject'](_0x2cc9b8,_0x22719c+0x1);}[_0x4b851e(0xcd)](){const _0x39b369=_0x4b851e;this[_0x39b369(0x29c)]['length']!==0x0&&(this['_shapes'][_0x39b369(0xd7)](_0x4c0c39=>{const _0x59d74d=_0x39b369;_0x4c0c39[_0x59d74d(0x254)]();}),this[_0x39b369(0x29c)]=[]);}[_0x4b851e(0xb5)](){const _0x58266d=_0x4b851e;this[_0x58266d(0x22c)]();}['_getScrollInfo'](_0x4364e9,_0x47e6c9){const _0x4f7684=_0x4b851e;var _0x40e216;let _0x1ab239={'x':0x0,'y':0x0};if(!_0x4364e9||!_0x47e6c9)return _0x1ab239;let _0x146303=this[_0x4f7684(0x1bb)][_0x4f7684(0x75)](_0x4364e9);if(!_0x146303||!_0x146303['with'](_0x58befb)[_0x4f7684(0x2c6)](_0x47e6c9))return _0x1ab239;let _0x383249=_0x146303['with'](_0x51344e),_0x5a5f67=_0x383249==null?void 0x0:_0x383249[_0x4f7684(0x209)]();if(!_0x5a5f67)return _0x1ab239;let _0x42600d=(_0x40e216=this[_0x4f7684(0x25c)][_0x4f7684(0x1cd)](_0x4364e9))==null?void 0x0:_0x40e216[_0x4f7684(0x136)](_0x47e6c9);if(!_0x42600d)return _0x1ab239;let _0x4fb474=_0x23e0fe(_0x5a5f67[_0x4f7684(0xde)],_0x5a5f67[_0x4f7684(0x2d0)],_0x146303[_0x4f7684(0x255)],_0x42600d);return _0x4fb474?{'x':_0x4fb474['viewportScrollX'],'y':_0x4fb474[_0x4f7684(0x1cc)]}:_0x1ab239;}[_0x4b851e(0x21e)](_0x5c96bb,_0xb80e29){const _0x749021=_0x4b851e;var _0xcb13d3;let _0x2216f5=(_0xcb13d3=this['_univerInstanceService'][_0x749021(0x1cd)](_0x5c96bb))==null?void 0x0:_0xcb13d3[_0x749021(0x136)](_0xb80e29);return(_0x2216f5==null?void 0x0:_0x2216f5['getZoomRatio']())??0x1;}[_0x4b851e(0x2a1)](_0x300d95,_0x490cd3,_0x8e982b){const _0x55ccf5=_0x4b851e;this[_0x55ccf5(0x183)](_0x52399e(_0x300d95[_0x55ccf5(0x120)][_0x55ccf5(0x26b)]((_0x55d947,_0x216709)=>{const _0x12942d=_0x55ccf5;var _0x71e853,_0x459661,_0x5ec2ed,_0x581663;let _0x17dc08=_0x300d95[_0x12942d(0x176)]();this[_0x12942d(0x1a9)]=this['_getShapeAdjustInfosById'](_0x17dc08[_0x12942d(0x2e2)],_0x17dc08[_0x12942d(0x20f)],_0x17dc08['drawingId'],_0x8e982b),this[_0x12942d(0xf7)]=this['_sheetsShapeService'][_0x12942d(0x138)](_0x17dc08[_0x12942d(0x2e2)],_0x17dc08[_0x12942d(0x20f)],_0x17dc08[_0x12942d(0x179)]);let _0x4fe3ad=this[_0x12942d(0x9d)]['getDrawingByParam']({'unitId':this[_0x12942d(0x7b)],'subUnitId':this[_0x12942d(0x21a)],'drawingId':this[_0x12942d(0x146)]}),{transform:_0x11a106}=_0x4fe3ad;if(_0x11a106){let {left:_0x3155d6,top:_0x1d9091,width:_0x354f48,height:_0x18a087}=_0x11a106;this[_0x12942d(0x1a0)]=_0x3155d6||0x0,this['_baseShapeTop']=_0x1d9091||0x0,this[_0x12942d(0x191)]=_0x354f48||0x0,this[_0x12942d(0x1a2)]=_0x18a087||0x0;}let _0x2c6dc7=!!((_0x71e853=_0x4fe3ad['transform'])!=null&&_0x71e853[_0x12942d(0x2ae)]),_0x3704f3=!!((_0x459661=_0x4fe3ad[_0x12942d(0x1c1)])!=null&&_0x459661['flipY']),_0x5edb83=((_0x5ec2ed=_0x4fe3ad[_0x12942d(0x1c1)])==null?void 0x0:_0x5ec2ed['angle'])||0x0;this[_0x12942d(0x12f)]=!0x0,_0x490cd3['disableObjectsEvent']();let _0x10a653={...((_0x581663=this[_0x12942d(0x1a9)])==null?void 0x0:_0x581663[_0x12942d(0x20b)])??{}};this[_0x12942d(0xc4)]=_0x490cd3[_0x12942d(0xe1)][_0x12942d(0x26b)]((_0x391879,_0x26101f)=>{const _0x7f0eac=_0x12942d;if(!this[_0x7f0eac(0x12f)])return;let {offsetX:_0x3b08eb,offsetY:_0x45744c}=_0x391879,_0x21d3e1=this['_activeAdjustInfo'];if(this[_0x7f0eac(0xf7)]&&_0x21d3e1){_0x490cd3[_0x7f0eac(0x1ad)](),_0x490cd3[_0x7f0eac(0x11d)](_0xa4b93e[_0x7f0eac(0xd0)]);let _0x43eb20={'left':0x0,'top':0x0,'width':this[_0x7f0eac(0x191)],'height':this[_0x7f0eac(0x1a2)]},_0x422ed0=this[_0x7f0eac(0x10e)](this[_0x7f0eac(0x7b)],this[_0x7f0eac(0x21a)]),_0x3ea420=this['_getZoomRatio'](this['_unitId'],this[_0x7f0eac(0x21a)]),_0x4b1120=_0x3b08eb/_0x3ea420+_0x422ed0['x']-this[_0x7f0eac(0x1a0)],_0x2e6efa=_0x45744c/_0x3ea420+_0x422ed0['y']-this[_0x7f0eac(0x260)];if(_0x5edb83!==0x0){let _0x34b5e4=this[_0x7f0eac(0x191)]/0x2,_0x5a5839=this[_0x7f0eac(0x1a2)]/0x2,_0x61ce9e=_0x5edb83*Math['PI']/0xb4,_0xa664da=Math[_0x7f0eac(0x20a)](_0x61ce9e),_0x3e084a=Math['sin'](_0x61ce9e),_0x50529b=_0x4b1120-_0x34b5e4,_0x405c42=_0x2e6efa-_0x5a5839;_0x4b1120=_0x34b5e4+(_0x50529b*_0xa664da+_0x405c42*_0x3e084a),_0x2e6efa=_0x5a5839+(-_0x50529b*_0x3e084a+_0x405c42*_0xa664da);}_0x2c6dc7&&(_0x4b1120=this[_0x7f0eac(0x191)]-_0x4b1120),_0x3704f3&&(_0x2e6efa=this['_baseShapeHeight']-_0x2e6efa);let _0x3179ad={'x':_0x4b1120,'y':_0x2e6efa},_0x459d6f=this['_activeShapeModel'][_0x7f0eac(0x203)](_0x43eb20,_0x3179ad,_0x21d3e1,_0x2c6dc7,_0x3704f3);if(Object[_0x7f0eac(0x12b)](_0x459d6f)[_0x7f0eac(0x8c)]===0x0)return;for(let [_0x1078da,_0x454ea6]of Object[_0x7f0eac(0x2f6)](_0x459d6f))this[_0x7f0eac(0xf7)]['setAdjustValueByName'](_0x1078da,_0x454ea6);this['_activeShapeModel'][_0x7f0eac(0x113)]({'width':this[_0x7f0eac(0x191)],'height':this['_baseShapeHeight']});let _0x4a2839=this['_drawingManagerService'][_0x7f0eac(0x2cc)]({'unitId':_0x17dc08[_0x7f0eac(0x2e2)],'subUnitId':_0x17dc08[_0x7f0eac(0x20f)],'drawingId':_0x17dc08[_0x7f0eac(0x179)]});_0x4a2839&&(this['_sheetDrawingShapeRenderController'][_0x7f0eac(0x187)](_0x4a2839,_0x490cd3),this[_0x7f0eac(0x149)]=this['_getShapeAdjustPointListById'](_0x17dc08['unitId'],_0x17dc08[_0x7f0eac(0x20f)],_0x17dc08['drawingId']),this[_0x7f0eac(0xb5)]());}_0x26101f['stopPropagation']();}),this[_0x12942d(0x2d6)]=_0x490cd3[_0x12942d(0x21c)][_0x12942d(0x26b)]((_0x551c22,_0x513a95)=>{const _0x351d35=_0x12942d;this[_0x351d35(0xc4)][_0x351d35(0x22e)](),this[_0x351d35(0x2d6)][_0x351d35(0x22e)](),_0x490cd3[_0x351d35(0x22a)]();let _0x284cf9=this[_0x351d35(0x1a9)];if(_0x284cf9){let _0x491926=_0x17dc08['unitId'],_0x74b6fc=_0x17dc08['subUnitId'],_0x4f3529=_0x17dc08[_0x351d35(0x179)],_0x587771={};for(let _0x2deb47 of Object['keys'](_0x284cf9[_0x351d35(0x20b)])){var _0x864982;let _0x4e1aa7=(_0x864982=this[_0x351d35(0xf7)])==null?void 0x0:_0x864982[_0x351d35(0x1b1)](_0x2deb47);_0x4e1aa7!==void 0x0&&(_0x587771[_0x2deb47]=_0x4e1aa7);}Object[_0x351d35(0x12b)](_0x587771)[_0x351d35(0x8c)]>0x0&&or(this['_commandService'],_0x491926,_0x74b6fc,_0x4f3529,{'oldShapeData':{'adjustValues':_0x10a653}},{'adjustValues':_0x587771});}this[_0x351d35(0x1a9)]=void 0x0,this[_0x351d35(0xf7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x513a95[_0x351d35(0x2f2)](),_0x490cd3['enableObjectsEvent']();}),_0x216709['stopPropagation']();})));}[_0x4b851e(0x1de)](){const _0x31bebd=_0x4b851e;let _0x444b8a=this[_0x31bebd(0x25c)]['getCurrentTypeOfUnit$'](_0x2ce572[_0x31bebd(0x158)]);this[_0x31bebd(0x183)](_0x444b8a['pipe'](_0x20fbec(_0x1c0562=>_0x1c0562?_0x1c0562['activeSheet$'][_0x31bebd(0x26c)](_0x20fbec(_0x1323f5=>{const _0x2c7b8a=_0x31bebd;if(!_0x1323f5)return _0x53e669;let _0x96484e=_0x1c0562['getUnitId'](),_0x4c1481=this[_0x2c7b8a(0x1bb)][_0x2c7b8a(0x75)](_0x96484e),_0x5cef18=_0x4c1481==null?void 0x0:_0x4c1481['scene'];return _0x5cef18?_0x571f73(_0x5cef18):_0x53e669;})):_0x53e669))[_0x31bebd(0xd9)](_0x1ef6ab=>{const _0x46396d=_0x31bebd;let _0x54a13c=_0x1ef6ab[_0x46396d(0x159)]();this[_0x46396d(0x183)](_0x1ef6ab[_0x46396d(0xe1)][_0x46396d(0x26b)](()=>{const _0x10e4a1=_0x46396d;this[_0x10e4a1(0x2f1)];})),this['disposeWithMe'](_0x54a13c[_0x46396d(0x1bc)][_0x46396d(0xd9)](_0x25ff23=>{const _0x300a27=_0x46396d;let {objects:_0x5f4db5}=_0x25ff23;this[_0x300a27(0x22c)](),_0x5f4db5!==null&&_0x5f4db5[_0x300a27(0x2ca)]===0x1&&_0x5f4db5[_0x300a27(0xe0)]()[_0x300a27(0x12c)]()[_0x300a27(0x214)]instanceof fr&&this[_0x300a27(0x1e1)](!0x0);})),this[_0x46396d(0x183)](_0x54a13c['changing$'][_0x46396d(0xd9)](()=>{const _0x22e39a=_0x46396d;this[_0x22e39a(0x2f1)]&&this[_0x22e39a(0xcd)]();})),this[_0x46396d(0x183)](_0x1ef6ab[_0x46396d(0x21c)]['subscribeEvent'](()=>{const _0x2456a6=_0x46396d;this[_0x2456a6(0x2f1)]&&(this[_0x2456a6(0x1e1)](!0x1),this[_0x2456a6(0x22c)]());})),this[_0x46396d(0x183)](_0x54a13c['changeEnd$'][_0x46396d(0xd9)](()=>{const _0x58cbfb=_0x46396d;this['_unitId']&&this[_0x58cbfb(0x21a)]&&this[_0x58cbfb(0x146)]&&this[_0x58cbfb(0x9d)]['getDrawingByParam']({'unitId':this[_0x58cbfb(0x7b)],'subUnitId':this[_0x58cbfb(0x21a)],'drawingId':this['_activeShapeId']})&&(this[_0x58cbfb(0x149)]=this[_0x58cbfb(0x2bc)](this[_0x58cbfb(0x7b)],this['_subUnitId'],this['_activeShapeId']),this[_0x58cbfb(0xb5)]());}));}));}[_0x4b851e(0xdb)](){const _0x4c0336=_0x4b851e;this[_0x4c0336(0x183)](this[_0x4c0336(0x13c)]['onCommandExecuted'](_0x18b51f=>{const _0x462823=_0x4c0336;if(_0x18b51f['id']!==_0x4b69e7['id'])return;let {unitId:_0x241152,subUnitId:_0x4f4fcb,shapeId:_0x6dea3d}=_0x18b51f[_0x462823(0x29f)];_0x241152===this[_0x462823(0x7b)]&&_0x4f4fcb===this[_0x462823(0x21a)]&&_0x6dea3d===this[_0x462823(0x146)]&&this[_0x462823(0x2d8)]();})),this[_0x4c0336(0x183)](this[_0x4c0336(0x9d)][_0x4c0336(0x85)][_0x4c0336(0xd9)](_0xdd3a57=>{const _0x4d3ab5=_0x4c0336;if(_0xdd3a57[_0x4d3ab5(0x8c)]===0x1){let _0x345da8=_0xdd3a57[0x0];if(_0x345da8[_0x4d3ab5(0x14f)]===_0x514277[_0x4d3ab5(0xcb)]&&this[_0x4d3ab5(0x25c)][_0x4d3ab5(0x150)](_0x345da8[_0x4d3ab5(0x2e2)])===_0x2ce572[_0x4d3ab5(0x158)]){this[_0x4d3ab5(0x146)]=_0x345da8[_0x4d3ab5(0x179)];let {unitId:_0x19bb9e,subUnitId:_0x24cb43}=_0x345da8;this[_0x4d3ab5(0x149)]=this['_getShapeAdjustPointListById'](_0x19bb9e,_0x24cb43,this['_activeShapeId']),this[_0x4d3ab5(0x7b)]=_0x19bb9e,this['_subUnitId']=_0x24cb43,this[_0x4d3ab5(0xcd)](),this[_0x4d3ab5(0x22c)]();return;}}this[_0x4d3ab5(0x146)]=null,this[_0x4d3ab5(0x149)]=void 0x0,this['_unitId']=null,this[_0x4d3ab5(0x21a)]=null,this[_0x4d3ab5(0xcd)]();})),this[_0x4c0336(0x183)](this['_drawingManagerService']['update$'][_0x4c0336(0xd9)](_0x1d6fc6=>{const _0x33fcae=_0x4c0336;if(_0x1d6fc6[_0x33fcae(0x8c)]===0x1){var _0x349ff1;let _0x2b8cdc=_0x1d6fc6[0x0];((_0x349ff1=this[_0x33fcae(0x9d)][_0x33fcae(0x2cc)](_0x2b8cdc))==null?void 0x0:_0x349ff1['drawingType'])===_0x514277['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0x4c0336(0x183)](this[_0x4c0336(0x9d)][_0x4c0336(0x86)][_0x4c0336(0xd9)](_0x54bf48=>{const _0x63c736=_0x4c0336;for(let _0x753a72 of _0x54bf48)this[_0x63c736(0x146)]===_0x753a72[_0x63c736(0x179)]&&(this[_0x63c736(0x146)]=null,this[_0x63c736(0x149)]=void 0x0,this['_unitId']=null,this[_0x63c736(0x21a)]=null,this[_0x63c736(0xcd)]());}));}};mr=Z([X(0x0,_0x1644d5),X(0x1,_0x2e2475(_0x1bfe6b)),X(0x2,_0x2e2475(_0x37a074)),X(0x3,_0x2e2475(Q)),X(0x4,_0x22bed1),X(0x5,_0x46e4d8)],mr);const hr={'id':_0x4b851e(0x93),'type':_0x3ab13f[_0x4b851e(0x18a)],'handler':(_0x445eb5,_0x29d26a)=>{const _0x2f4d94=_0x4b851e;let _0x5128b4=_0x445eb5[_0x2f4d94(0x2c2)](_0x1644d5),_0x31a181=_0x445eb5['get'](_0x37a074),_0xd3c9e9=_0x445eb5[_0x2f4d94(0x2c2)](mr);if(_0x29d26a==null)return!0x0;if(_0x29d26a[_0x2f4d94(0x8c)]>0x0){var _0x3f74e5;let _0x100653=(_0x3f74e5=_0x31a181['getRenderUnitById'](_0x29d26a[0x0][_0x2f4d94(0x2e2)]))==null?void 0x0:_0x3f74e5[_0x2f4d94(0x255)];if(_0x100653){let {unitId:_0x40c5ab,subUnitId:_0x4c9dc0,drawingId:_0x302079}=_0x29d26a[0x0],_0x1e7577=_0x4d60ae({'unitId':_0x40c5ab,'subUnitId':_0x4c9dc0,'drawingId':_0x302079},void 0x0),_0x32519e=_0x100653['getObjectIncludeInGroup'](_0x1e7577);if(_0x32519e){var _0x4107fa;(_0x4107fa=_0x31a181[_0x2f4d94(0x75)](_0x29d26a[0x0]['unitId']))==null||(_0x4107fa=_0x4107fa[_0x2f4d94(0x255)]['getTransformer']())==null||_0x4107fa[_0x2f4d94(0x269)](_0x32519e);}}_0x5128b4[_0x2f4d94(0x82)](_0x29d26a),_0xd3c9e9[_0x2f4d94(0x1e1)](!0x1);}return!0x0;}},gr={'type':_0x3ab13f[_0x4b851e(0x95)],'id':_0x4b851e(0xff),'handler':async(_0x19ff89,_0x4e08b4)=>{const _0x10c23a=_0x4b851e;let _0x5ea32e=_0x4104ec(_0x19ff89[_0x10c23a(0x2c2)](_0x22bed1));if(!_0x5ea32e)return!0x1;let _0x585ca8=_0x19ff89['get'](_0x15336e)['getCurrentLastSelection']();if(!_0x585ca8)return!0x1;let _0x38c3d2=_0x19ff89[_0x10c23a(0x2c2)](_0x46e4d8),{unitId:_0xc222b2,subUnitId:_0x52338e}=_0x5ea32e,{value:_0x25db83,enhanceParams:_0x66f89a}=_0x4e08b4,{range:_0x4f51bc}=_0x585ca8,_0x5c84c7={'unitId':_0xc222b2,'subUnitId':_0x52338e,'shapeType':_0x25db83,'range':_0x4f51bc,'shapeId':_0x5b0a2a()};if(_0x66f89a){let _0x581c90=_0x47e56f(_0x25db83),_0x2e29be=_0x25db83===_0x3e1064[_0x10c23a(0x2f0)];_0x581c90&&(_0x66f89a[_0x10c23a(0x1ee)]||_0x66f89a[_0x10c23a(0x220)])&&(_0x5c84c7[_0x10c23a(0xb6)]={'ln':{'startArrow':_0x66f89a[_0x10c23a(0x1ee)]?{'type':_0x534c3c['Arrow'],'size':_0x4e4132[_0x10c23a(0x14c)]}:void 0x0,'endArrow':_0x66f89a[_0x10c23a(0x220)]?{'type':_0x534c3c[_0x10c23a(0x267)],'size':_0x4e4132[_0x10c23a(0x2ed)]}:void 0x0}}),_0x2e29be&&(_0x66f89a[_0x10c23a(0x273)]||_0x66f89a[_0x10c23a(0x206)])&&(_0x5c84c7[_0x10c23a(0xb6)]=_0x1688ed({'fill':{'fillType':_0x5cb73a[_0x10c23a(0x2be)],'color':_0x10c23a(0x16d)},'isHorizontal':!!_0x66f89a['horizontal'],'stroke':{'lineStrokeType':_0x480b13[_0x10c23a(0x7f)],'width':0x1,'color':'#bcbcbc'}}));}let _0x1c2be0=_0x38c3d2[_0x10c23a(0xc3)](_0x84e7ae['id'],_0x5c84c7);return setTimeout(()=>{const _0x342a43=_0x10c23a;_0x38c3d2[_0x342a43(0x163)](hr['id'],[{'unitId':_0xc222b2,'subUnitId':_0x52338e,'drawingId':_0x5c84c7[_0x342a43(0x2e3)]}]);},0xc8),_0x1c2be0;}},_r=_0x4b851e(0x1a1),vr='sheet.shape.object-list.panel',yr=_0x4b851e(0x226),br=_0x4b851e(0x1d6),xr=_0x35240c('SHAPE_TEXT'),Sr=_0x4b851e(0x1d9),Cr={'id':_0x4b851e(0x99),'type':_0x3ab13f['COMMAND'],'handler':(_0x2cf59e,_0x14d433)=>{const _0x3af786=_0x4b851e;let _0xdfbb88=_0x2cf59e[_0x3af786(0x2c2)](_0x446fc5),_0x2e576c=_0x2cf59e[_0x3af786(0x2c2)](_0x3fae61),_0x1bc877=_0x2cf59e[_0x3af786(0x2c2)](_0x22bed1),_0x58f1e7=_0x2cf59e[_0x3af786(0x2c2)](_0x46e4d8);return _0x4104ec(_0x1bc877)?(_0x14d433==null?void 0x0:_0x14d433['value'])===_0x3af786(0x77)?(_0xdfbb88[_0x3af786(0x77)](vr),!0x0):(_0xdfbb88[_0x3af786(0x1c0)]({'id':vr,'header':{'title':_0x2e576c['t'](_0x3af786(0x1cf))},'children':{'label':vr},'onClose':()=>{const _0x241b5f=_0x3af786;_0x58f1e7[_0x241b5f(0xc3)](_0x2f07a0['id'],[]);},'width':0x168}),!0x0):!0x1;}},wr={'type':_0x3ab13f[_0x4b851e(0x18a)],'id':_0x4b851e(0x205),'handler'(){return!0x0;}};function Tr(_0x4ecc14){const _0x33bacc=_0x4b851e;let _0x15c9d0=_0x4ecc14[_0x33bacc(0x2c2)](_0x1644d5)[_0x33bacc(0x20e)](),_0x1b229f=_0x15c9d0[_0x33bacc(0x8c)]===0x1?_0x15c9d0[0x0]:null;if(!_0x1b229f||_0x1b229f[_0x33bacc(0x14f)]!==_0x514277[_0x33bacc(0xcb)])return null;let _0x532e9c=_0x4ecc14[_0x33bacc(0x2c2)](_0x1bfe6b),_0x72b252=_0x532e9c[_0x33bacc(0x196)](_0x1b229f[_0x33bacc(0x2e2)],_0x1b229f[_0x33bacc(0x20f)],_0x1b229f[_0x33bacc(0x179)]),_0x31f7ad=_0x532e9c['getShapeDataById'](_0x1b229f[_0x33bacc(0x2e2)],_0x1b229f['subUnitId'],_0x1b229f[_0x33bacc(0x179)]);return _0x72b252===void 0x0||!_0x31f7ad?null:{'drawing':_0x1b229f,'shapeData':_0x31f7ad,'shapeType':_0x72b252};}const Er={'id':_0x4b851e(0x18c),'type':_0x3ab13f[_0x4b851e(0x18a)],'handler':(_0xa8eb0f,_0x74a46b)=>{const _0x35ecdc=_0x4b851e;let _0x36331c=Tr(_0xa8eb0f),_0x3b9459=_0x4e3a43((_0x74a46b==null?void 0x0:_0x74a46b[_0x35ecdc(0x2bb)])??(_0x74a46b==null?void 0x0:_0x74a46b['value'])??'');if(!_0x36331c||!_0x3b9459||_0x3b9459[_0x35ecdc(0x24f)]!==_0x320903(_0x36331c[_0x35ecdc(0xb6)]))return!0x1;let _0x4cf79b=_0x1ef8e7(_0x36331c[_0x35ecdc(0xb6)],_0x3b9459);if(!_0x4cf79b)return!0x1;let {drawing:_0x1f812a}=_0x36331c;return _0xa8eb0f[_0x35ecdc(0x2c2)](_0x46e4d8)['executeCommand'](ar['id'],{'unitId':_0x1f812a['unitId'],'subUnitId':_0x1f812a[_0x35ecdc(0x20f)],'shapeId':_0x1f812a[_0x35ecdc(0x179)],'shapeData':_0x4cf79b,'oldShapeJSON':{'oldShapeData':_0x36331c['shapeData']}});}},Dr={'id':_0x4b851e(0xa1),'type':_0x3ab13f['OPERATION'],'handler':(_0x2eae35,_0x42d2bf)=>{const _0x154cea=_0x4b851e;let _0x4ce8d5=Tr(_0x2eae35),_0x45dec7=(_0x42d2bf==null?void 0x0:_0x42d2bf[_0x154cea(0x253)])??(_0x42d2bf==null?void 0x0:_0x42d2bf[_0x154cea(0x214)]);if(!_0x4ce8d5||!_0x45dec7||_0x47e56f(_0x4ce8d5[_0x154cea(0x253)])||_0x47e56f(_0x45dec7))return!0x1;let _0x3ea7f1=_0x1103bd(_0x4ce8d5[_0x154cea(0xb6)],_0x45dec7);if(!_0x3ea7f1)return!0x1;let {drawing:_0x4d0afd}=_0x4ce8d5;return _0x2eae35[_0x154cea(0x2c2)](_0x46e4d8)[_0x154cea(0x163)](ar['id'],{'unitId':_0x4d0afd[_0x154cea(0x2e2)],'subUnitId':_0x4d0afd['subUnitId'],'shapeId':_0x4d0afd['drawingId'],'shapeType':_0x45dec7,'shapeData':_0x3ea7f1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4ce8d5[_0x154cea(0x253)],'oldShapeData':_0x4ce8d5[_0x154cea(0xb6)]}});}};let Or=class extends _0x387ec6{constructor(_0x44e84a,_0x22f638){const _0x4580ad=_0x4b851e;super(),this[_0x4580ad(0x92)]=_0x44e84a,this[_0x4580ad(0x9d)]=_0x22f638,this[_0x4580ad(0x14d)](),this[_0x4580ad(0x92)][_0x4580ad(0x10a)](!0x0),this[_0x4580ad(0x183)]({'dispose':()=>this['_clipService'][_0x4580ad(0x10a)](!0x1)});}[_0x4b851e(0x14d)](){const _0x408652=_0x4b851e;let _0x5e4902=this['_clipService'],_0x4cb4c8=new Map(),_0x286463=_0x5e4902['registerClipDelegate']((_0x6614cd,_0x1529ae,_0x35d0fa,_0x1a7547,_0x2dc988)=>{const _0x54fa5c=_0x1d1c;let _0x197574=_0x1529ae;if(_0x197574===_0x3e1064['None']||_0x1529ae===_0x54fa5c(0xf6))return!0x1;try{let _0x5c71c7=_0x4cb4c8['get'](_0x1529ae);return _0x5c71c7||(_0x5c71c7=new _0x5578df(_0x197574,'clip-'+_0x1529ae),_0x4cb4c8['set'](_0x1529ae,_0x5c71c7)),_0x5c71c7[_0x54fa5c(0x11e)](),_0x2dc988&&Object[_0x54fa5c(0x12b)](_0x2dc988)[_0x54fa5c(0x8c)]>0x0&&_0x5c71c7[_0x54fa5c(0x1ef)]({'adjustValues':_0x2dc988},!0x0),_0x5c71c7[_0x54fa5c(0x113)]({'width':_0x35d0fa,'height':_0x1a7547}),_0x5c71c7[_0x54fa5c(0x1c7)](_0x6614cd,{'left':0x0,'top':0x0,'width':_0x35d0fa,'height':_0x1a7547});}catch{return!0x1;}});this[_0x408652(0x183)](_0x286463),this[_0x408652(0x183)]({'dispose':()=>_0x4cb4c8['clear']()});}['clipByShape'](_0x1fa6d6,_0x370990,_0x3fbdb2,_0x59089f,_0x2ae255){const _0x3d395a=_0x4b851e;let _0x5a8459=this[_0x3d395a(0x9d)][_0x3d395a(0x2a3)](_0x1fa6d6,_0x370990);if(!_0x5a8459[_0x3fbdb2])return;let _0xd25a57={..._0x5a8459[_0x3fbdb2],'prstGeom':_0x59089f,'adjustValues':_0x2ae255};this['_drawingManagerService'][_0x3d395a(0x114)]([_0xd25a57]);}};Or=Z([X(0x0,_0x2e2475(_0x1e2122)),X(0x1,_0x2e2475(_0x1644d5))],Or);const kr=_0x4b851e(0x238),Ar=_0x4b851e(0x2c0);function jr({onShapeClick:_0x1f0444,excludeGroups:_0x7a9f89}){const _0x4374a5=_0x4b851e;return _0x26713b(_0x31e782,{'excludeGroups':_0x7a9f89,'onShapeClick':_0x1f0444,'scrollContainer':_0x4374a5(0x8a)});}function Mr(){let _0x4e064d=_0x496f8c(_0x1644d5),_0x2240cc=_0x496f8c(Or);return _0x26713b(_0x212211,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x39cfae['Line']],'onShapeClick':_0xc6f8e4=>{const _0x5eef6d=_0x1d1c;let _0x3447a8=_0x4e064d[_0x5eef6d(0x20e)]()['find'](_0x4851ab=>_0x4851ab[_0x5eef6d(0x14f)]===_0x514277[_0x5eef6d(0x1f0)]);if(!_0x3447a8)return;let {unitId:_0x5e221d,subUnitId:_0x5792b6,drawingId:_0x47f1e8}=_0x3447a8;_0x2240cc[_0x5eef6d(0x2e8)](_0x5e221d,_0x5792b6,_0x47f1e8,_0xc6f8e4[_0x5eef6d(0x24f)]);}});}function _0x1226(){const _0x29e1a2=['endArrow','CUT','_isImagePointerDown','beginPath','_getShapeInfo','#1a73e8','sheet.shape.floating-toolbar','slice','intercept','_hide','resetCursor','presentationChanged$','_createShapeAdjustControls','startConnectionDetection','unsubscribe','setEditing','_handleBasicShapeUpdateConnectorLineShape','_registerGroupFeaturePasteHook','_highlightedSiteIndex','translateWithPrecision','getAutoFitPresentations','_currentScene','isRender','getRealBound','sheet.shape.picker.component','isArray','sheets-shape-ui.ribbon.shape-format.text-control','getUnitId','computeConnectorResizeLayout','interceptCommand','changeShapeType','_attachConnectorObjectEvent','sheets-shape-ui.ribbon.shape-format.formula-control','oKey','enableObjectsEvent','_connectorObjects','registerCommand','_sheetSkeletonService','getVisible','viewportScrollX','shape-editor-ui.toolbar.quickStyles','getCurrentUnitOfType','scale','isEditing','getAdjustInfoByName','_initCopyPaste','formulaPresentation','type','getParent','#4285f4','fillImageSource','shapeType','dispose','scene','sectionFloating','wrapStrategy','_getImagePrstGeom','clone','_resetState','presentation','_univerInstanceService','with','onRendered','GROUP','_baseShapeTop','has','setCollapsedIds','SHEET_SHAPE_UI_PLUGIN','_getConnectPointInfo','isInGroup','_generateCutPasteMutations','Arrow','lineShapeId','activeAnObject','_registerComponents','subscribeEvent','pipe','setFillImage','_context','pluginName','getState','_update','FlipHorizontalIcon','horizontal','_sidebarService','_sheetClipboardService','call','_currentUniverService','5113205WGkFVu','getImage','skeleton','map','_insertShapes','panel','clip','getCanvasElement','UNIVER_DOC','lineType','point','order','getBatchAddOp','actions','defineProperty','name','sheets-shape-ui.shape-format.text-ribbon-control','_baseTop','_clearPopups','_executeConnectedRouteResizeCommand','VIEW_MAIN_TOP','MoveDownIcon','UPDATE','_focusedDrawings','attachTransformerTo','_getSceneAndTransformerByDrawingSearch','top','onTransformChange$','ancestorTransform','getCurrentTypeOfUnit$','onReady','FromArray','_shapeEditPanelVersion','isLineShape','_calculateFreeEndpointAngle','_shapeTextEditingService','_shapes','_config','_addControl','params','@univerjs-pro/sheets-shape-ui','_attachAdjustEvent','onStarting','getDrawingData','angle','_activeTargetShapeId','image-clip-adjust-point-','sheets-shape-ui.shape-format.formula-ribbon-control','debounceRefreshControls','getConnectionInfo','_baseWidth','cxnPointRadius','contentHeight','setHighlighted','flipX','Line','VIEW_MAIN','_initEditingParams','createControl$','makeDirty','localeService','normal','forward','function','initShapePopupMenu','_getImageDrawingInfo','formulaBinding','presetId','_getShapeAdjustPointListById','stringify','SolidFill','onDblclick$','sheet.image-clip.shape-picker.component','getTransformer','get','fromChangeset','FlipVerticalIcon','indexOf','getSkeleton','asObservable','adjHandleFill','ShapeIcon','size','getObjectIncludeInGroup','getDrawingByParam','BottomIcon','_openShapeEditPanel','reverse','sheetViewStartColumn','editingParams$','shapeKey','index','_sheetPermissionCheckController','refreshTransform','_adjHandlerPointerUp','None','refreshAdjustControls','getShapeDataById','setAdjustValueByName','_loadShapePictureFill','objects','getConnectionSiteList','add','pick','getConnectorLinePoints','sheets-shape-ui.formatShape','unitId','shapeId','_configService','refreshShapeFillImage','getInterceptPoints','_hasReset','clipByShape','getPresentation','register','worldPoints','addObject','Large','classType','end','Rect','_isShouldShowDrawingShapeAdjust','stopPropagation','getImageSourceCache','_rerouteConnectorLine','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','entries','_sheetDrawingShapeRenderController','getEndConnectInfo','_currentConnectionTarget','shape-editor-ui.arrange.forward','_addShapeAdjustControl','decorate','applyPoint','getRenderUnitById','image','close','_draggingConnectorId','_generatePasteMutations','preValue','_unitId','draw','_getShapeAdjustInfosById','_componentManager','SolidLine','_sheetsShapeService','getInverseCoord','focusDrawing','isMainScene','getActiveSheet','focus$','remove$','isRenderLinePointsMode','getShapeData','vertical-center','parent','_isDrawingShapePointDown','length','univer-box-border\x20univer-px-4\x20univer-text-sm','_addShapeConnectorHandlerObject','startY','refreshFormulaPresentation','save','_clipService','drawing.operation.set-drawing-active','_renderWithCache','COMMAND','_insertingShapeKeys','srcRect','ShapeFormatSettingIcon','sheet.operation.open-shape-object-list-panel','sheets-shape-ui.flipHorizontal','_getDrawingRect','updateDocumentStyle','_drawingManagerService','_injector','mergeMenu','contentVerticalOffset','sheet.operation.update-shape-type','add$','_executeConnectedRouteConnectionCommand','SELECTOR','_urlImageService','_initEvents','_sheetPrintInterceptorService','_initPrinting','updateShapeFillImage','setPrstGeom','getCurrentSkeleton','updateLinePoints','cxnPointStroke','_init','_clearControls','getBatchUpdateOp','run','_connectionSiteObjects','_sheetInterceptorService','getDrawingVisible','_updateAdjustControlPositions','shapeData','_commandExecutedListener','adjHandleStroke','_sheetCanvasPopManagerService','_cxtHandlerPointerMove','getEditing','_executeConnectionCommand','_baseDrawingRect','viewBound','hidden','_updateImageAdjValues','_formulaShapes','color','syncExecuteCommand','_adjHandlerPointerMove','_transform','PaintIcon','_isHighlighted','render','_activeImageId','showContextualTab','DRAWING_SHAPE','_drawingRenderService','_clearShapeAdjustControls','_generateCopyPasteMutations','sheets-shape-ui.quickStyles','CROSSHAIR','engine','fontFamily','doc','shape-editor-ui.arrange.backward','_imageShapeClipController','prstGeom','forEach','_initialize','subscribe','_drawingType','_registerDrawingFocusChangeHandler','object','div','sheetViewStartRow','front','values','onPointerMove$','_cxtHandlerPointerUp','_index','visible','_initMenu','_popupMenuListener','registerRenderModule','_registerOperations','version','_releaseRenderCache','getOwnPropertyDescriptor','REMOVE','blockExecuteWithoutPermission','resize','actualHeight','_registerFocusChangeHandler','cancelEditing','toPrimitive','sheets-shape-ui.permission.editErr','_shapeId','includes','custom','_activeShapeModel','INSERT','changeEnd$','data','canvas','string','getDrawingPoints','addClipboardHook','sheet.command.menu-insert-shape','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_disposed','push','sheet.menu.shape.flip-horizontal','2862152FGAjLA','connector-handler-','drawWith','_registerIcons','restore','clearAdjustControls','setCanUseShapeClip','fillImageSourceType','computeStraightConnectorLayout','selectable','_getScrollInfo','sheets-shape-ui','sqrt','setFormulaPresentation','_props','updateContext','featurePluginUpdateNotification','_registerMoveHandler','shape-editor-ui.toolbar.changeShape','description','getDrawingEditable','_editingParams$','_shapeRenderController','worldPoint','onCommandExecuted','setCursor','clearAdjustValue','_isStartConnectorPoint','onPointerDown$','shapeText','_updateTransform','disableShapeOption','invert','from','setContextValue','_createCopyInfoByRange','changing$','getSelectedObjectMap','startX','keys','next','sin','_drawingAddListener','_isStartAdjusting','_shapePopupMenuDisposable','shape-adjust-point-','_closeShapeEditPanel','setSrcRect','sheets-shape-ui.ribbon.shape-format.arrange-forward','_isOpenedShapeEditPanel','getSheetBySheetId','onSavingEditorData$','getShapeModel','start','ang','cxnPointFill','_commandService','getValue','_sheetBasicShapeConnectionPointController','_findNearestConnectionSite','10OihxjO','StraightConnector1','addImageSourceCache','_transformCalculateSrcRect','_handleConnectedEndpointPointerUp','flatMap','_activeShapeId','_groupCopyPasteController','fillType','_activeShapeAdjustPointList','_formulaAnimation','backward','Medium','_registerImageShapeClipDelegate','filter','drawingType','getUnitType','error','_baseHeight','getStartConnectInfo','setFallbackVisible','getShapeTextData','removeLinePoints','_copyInfo','UNIVER_SHEET','getTransformerByCreate','animationEnabled','_onSavingEditorData$','14871hknEHz','setPresentation','_shapeFormulaService','worldRect','visible$','_draw','adjHandleSize','executeCommand','composeMatrix','adjName','idMap','delete','sheets-shape-contextual-ribbon','title','registerFeaturePasteHook','getDrawingOKey','LEFT','#FFFFFF','popup','setPrstGeomAdjValues','_updateSrcRectByTransform','relation','_shapeUpdateListener','text','getSkeletonParam','prototype','getDrawingSearch','set','_drawShapeText','drawingId','back','PRINTING_COMPONENT_COLLECT','rotation','extraProps','_initPermission','animateFormulaPresentation','getShapeType','_targetShapeId','_sheetShapeAdjustController','disposeWithMe','DRAWING','localToWorld','_formulaKey','renderDrawingShape','find','getZoomRatio','OPERATION','_sidebarDisposable','sheet.operation.apply-shape-quick-style','getAdjustNames','onerror','_drawRichText','translate','_baseShapeWidth','_drawSimpleText','width','_executeResizeCommand','clipTop','getShapeTypeById','shapeModel','isHighlighted','1812024LUCxVH','getConnectionRelation','_handleConnectorPointerUp','_lastEditingShapeKey','_activeAdjustPointList','_clearShapeConnectorHandlerObjects','sectionCanvas','_baseShapeLeft','sheet.shape.edit.panel','_baseShapeHeight','_handleConnectedEndpointMove','_drawRichTextLayer','resourceCollector','_baseLeft','sheets-shape-ui.ribbon.shape-format.arrange-back','symbol','_activeAdjustInfo','getShapeTextRect','transformByState','extensionGroups','disableObjectsEvent','dataModel','connection-site-','getSheetId','getAdjustValueByName','URL','sheetTransform','offsetX','isStartConnectorPoint','undo','_localeService','TopmostIcon','_findShapeAtPoint','setOnSavingEditorData','_renderManagerService','changeStart$','sheets-shape-ui.ribbon.shape-format.style-control','parse','_ribbonService','open','transform','complete','prstGeomAdjValues','updateDocumentDataMargin','getMatrix','stroke','buildClipPath','flipY','_contextService','sheet.command.update-shape-data','sheets-shape-format-font-family-menu','viewportScrollY','getUnit','BUTTON','sheets-shape-ui.objectListPanel.title','_clearConnectionSites','_applyFormulaAutoFitSize','gradientEndColor','left','fill','_menuManagerService','sheets-shape-ui.ribbon.shape-format','endConnectionDetection','_createControls','sheet.shape.text.float-menu','redo','sheets-shape-ui.config','abs','_imageIoService','_registerDrawingMoveHandler','some','unregister','setShouldShowAdjust','shape-editor-ui.arrange.back','MoveUpIcon','_adjName','adjustValues','ObjectLayersIcon','offsetY','_activeShapeInfo','_shapeFloatingToolbarService','multiply','_shapeService','setShapeProps','_showConnectionSites','startArrow','setShapeData','DRAWING_IMAGE','isHitLine','_moveConnectorWithShape','_getOrCreateShapeModel','10781676nOWPVw','getDrawingDataForUnit','_handleFreeEndpointMove','axisAlignSheetTransform','getObject','clipHeight','_visible','_updateShapeAdjustControls','strokeWidth','OTHERS','_isConnecting','height','update$','_initSelection','isHorizontal','calcAdjValues','isDrawingObject','sheet.operation.open-sheet-shape-format-panel','vertical','Image','_disposePopups','getCurrentScrollState','cos','currentAdjustValues','3558261otBbMi','_sheetDrawingService','getFocusDrawings','subUnitId','486797TMLFtK','_addShapeConnectorHandlerObjects','12eLQqyQ','_initSheetChange','value','sheets-shape-ui.flipVertical','onload','iterator','sheets-shape-ui.objectListPanel.open','_cxnIndex','_subUnitId','cxnIndex','onPointerUp$','activeSheet$','_getZoomRatio','_iconManager'];_0x1226=function(){return _0x29e1a2;};return _0x1226();}function Nr(){const _0x538b70=_0x4b851e;let _0x5d6c8d=_0x496f8c(_0x1b0068),_0x43d128=_0x496f8c(_0x1644d5),_0x1b4b9f=_0x496f8c(_0x22bed1),_0x5c36f9=_0x43d128[_0x538b70(0x20e)]()[0x0],_0x13b3a6=_0x5c36f9?_0x1b4b9f[_0x538b70(0x150)](_0x5c36f9[_0x538b70(0x2e2)]):void 0x0,_0x5d2799=_0x13b3a6===_0x2ce572[_0x538b70(0x280)]?'doc.image-clip.shape-picker.component':_0x13b3a6===_0x2ce572['UNIVER_SHEET']?Ar:void 0x0,_0x106c2e=_0x5d2799?_0x5d6c8d[_0x538b70(0x2c2)](_0x5d2799):void 0x0;return _0x106c2e?_0x26713b(_0x106c2e,{}):null;}function Pr(){let _0x52cc23=_0x496f8c(_0x46e4d8);return _0x26713b(jr,{'onShapeClick':_0x3ef1f5=>{const _0x194475=_0x1d1c;_0x52cc23[_0x194475(0x163)](gr['id'],{'value':_0x3ef1f5[_0x194475(0x24f)],'enhanceParams':{'endArrow':_0x3ef1f5[_0x194475(0x220)],'startArrow':_0x3ef1f5[_0x194475(0x1ee)],'horizontal':_0x3ef1f5[_0x194475(0x273)],'vertical':_0x3ef1f5[_0x194475(0x206)]}});}});}function Fr(_0x520d37){const _0x4a039e=_0x4b851e;let _0x459db5=_0x520d37[_0x4a039e(0x2c2)](_0x22bed1);return{'id':gr['id'],'type':_0x4d0911[_0x4a039e(0xa4)],'selections':[{'label':{'name':kr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':gr['id']}}}],'icon':_0x4a039e(0x2c9),'tooltip':'sheets-shape-ui.insertShape','activated$':_0x8b444(_0x459db5,!0x1,()=>new _0x14d0cd(_0x565b83=>{const _0x2cd822=_0x4a039e;_0x565b83[_0x2cd822(0x12c)](!0x1);})),'hidden$':_0x4340d6(_0x520d37,_0x2ce572[_0x4a039e(0x158)]),'disabled$':_0x19fc01(_0x520d37)};}function Ir(_0x165622){const _0x4e8232=_0x4b851e;let _0x45196b=_0x165622['get'](_0x22bed1);return{'id':Cr['id'],'type':_0x4d0911[_0x4e8232(0x1ce)],'icon':_0x4e8232(0x1e6),'title':_0x4e8232(0x218),'tooltip':_0x4e8232(0x218),'activated$':_0x8b444(_0x45196b,!0x1,()=>new _0x14d0cd(_0x13ef21=>{const _0x36e59d=_0x4e8232;_0x13ef21[_0x36e59d(0x12c)](!0x1);})),'hidden$':_0x4340d6(_0x165622,_0x2ce572[_0x4e8232(0x158)]),'disabled$':_0x19fc01(_0x165622)};}const Lr=_0x4b851e(0x103),Rr='sheet.menu.shape.flip-vertical';function zr(_0x303424){const _0x82cfdc=_0x4b851e;let _0x4ea859=_0x303424[_0x82cfdc(0x2c2)](_0x1644d5)[_0x82cfdc(0x20e)]();return _0x4ea859[_0x82cfdc(0x8c)]===0x1&&_0x4ea859[0x0][_0x82cfdc(0x14f)]===_0x514277[_0x82cfdc(0xcb)]?_0x4ea859[0x0]:null;}function Br(_0x259a70){const _0x4aa703=_0x4b851e;let _0x4c983b=_0x259a70[_0x4aa703(0x2c2)](_0x1644d5);return _0x4c983b[_0x4aa703(0x85)][_0x4aa703(0x26c)](_0xea5433(_0x4c983b['getFocusDrawings']()),_0x3ffce0(_0x4762ab=>_0x4762ab[_0x4aa703(0x8c)]!==0x1||_0x4762ab[0x0][_0x4aa703(0x14f)]!==_0x514277[_0x4aa703(0xcb)]));}function Vr(_0xadfd18){const _0x1e6cd8=_0x4b851e;return{'id':Lr,'commandId':_0x26e8be['id'],'type':_0x4d0911[_0x1e6cd8(0x1ce)],'title':_0x1e6cd8(0x9a),'tooltip':_0x1e6cd8(0x9a),'icon':_0x1e6cd8(0x272),'hidden$':Br(_0xadfd18),'params':()=>{const _0xf54bd3=_0x1e6cd8;let _0x17a59c=zr(_0xadfd18);return _0x17a59c?{'unitId':_0x17a59c[_0xf54bd3(0x2e2)],'subUnitId':_0x17a59c[_0xf54bd3(0x20f)],'shapeId':_0x17a59c[_0xf54bd3(0x179)],'flipH':!0x0}:void 0x0;}};}function Hr(_0x5f08d7){const _0x713af3=_0x4b851e;return{'id':Rr,'commandId':_0x26e8be['id'],'type':_0x4d0911[_0x713af3(0x1ce)],'title':_0x713af3(0x215),'tooltip':_0x713af3(0x215),'icon':_0x713af3(0x2c4),'hidden$':Br(_0x5f08d7),'params':()=>{const _0x47ed1c=_0x713af3;let _0x387e24=zr(_0x5f08d7);return _0x387e24?{'unitId':_0x387e24[_0x47ed1c(0x2e2)],'subUnitId':_0x387e24[_0x47ed1c(0x20f)],'shapeId':_0x387e24['drawingId'],'flipV':!0x0}:void 0x0;}};}const Ur='sheets-shape-ui.shape-format.quick-style-gallery',Wr='sheets-shape-ui.shape-format.style-ribbon-control',Gr=_0x4b851e(0x288),Kr=_0x4b851e(0x2a7);function qr(){let _0x38ef6f=_0x496f8c(_0x46e4d8),_0x2e3203=_0x496f8c(_0x1644d5),_0x4201de=_0x496f8c(_0x1bfe6b),_0x50ffb7=()=>{const _0x6f937c=_0x1d1c;var _0xbae9f4;let _0x430183=_0x2e3203[_0x6f937c(0x20e)]();if(_0x430183[_0x6f937c(0x8c)]!==0x1||((_0xbae9f4=_0x430183[0x0])==null?void 0x0:_0xbae9f4[_0x6f937c(0x14f)])!==_0x514277['DRAWING_SHAPE'])return null;let {unitId:_0x2cf8cd,subUnitId:_0x49b00b,drawingId:_0x3247c0}=_0x430183[0x0],_0x496e55=_0x4201de[_0x6f937c(0x196)](_0x2cf8cd,_0x49b00b,_0x3247c0),_0x4c73e8=_0x4201de['getShapeDataById'](_0x2cf8cd,_0x49b00b,_0x3247c0);return _0x496e55===void 0x0||!_0x4c73e8?null:{'unitId':_0x2cf8cd,'subUnitId':_0x49b00b,'drawingId':_0x3247c0,'shapeType':_0x496e55,'shapeData':_0x4c73e8};},_0x2d0984=_0x1f221a(()=>new _0x14d0cd(_0x34ea9=>{const _0x1a775f=_0x1d1c;let _0x5b689a=()=>_0x34ea9[_0x1a775f(0x12c)](_0x50ffb7()),_0x439224=_0x2e3203[_0x1a775f(0x85)][_0x1a775f(0xd9)](_0x5b689a),_0x412fb9=_0x38ef6f['onCommandExecuted'](_0x559e09=>{_0x559e09['id']===_0x4b69e7['id']&&_0x5b689a();});return _0x5b689a(),()=>{const _0x4f6a3b=_0x1a775f;_0x439224[_0x4f6a3b(0x22e)](),_0x412fb9[_0x4f6a3b(0x254)]();};}),_0x50ffb7(),!0x1,[_0x38ef6f,_0x2e3203,_0x4201de]);return{'selection':_0x2d0984,'updateShapeData':_0xbf2f99=>{const _0x34ca4e=_0x1d1c;_0x2d0984&&or(_0x38ef6f,_0x2d0984['unitId'],_0x2d0984[_0x34ca4e(0x20f)],_0x2d0984[_0x34ca4e(0x179)],{'oldShapeData':_0x2d0984[_0x34ca4e(0xb6)]},_0xbf2f99);}};}function Jr(){const _0x11e1a7=_0x4b851e;let {selection:_0x394156,updateShapeData:_0x4fbeb7}=qr();return _0x394156?_0x26713b(_0x5e07d3,{'shapeData':_0x394156[_0x11e1a7(0xb6)],'shapeType':_0x394156['shapeType'],'onUpdateShapeData':_0x4fbeb7}):null;}function Yr(){const _0x50a668=_0x4b851e;let _0x326517=_0x496f8c(_0x46e4d8),_0x5094d3=_0x496f8c(_0x3fae61),{selection:_0x249e8c}=qr();return _0x249e8c?_0x26713b(_0x2e6418,{'type':_0x320903(_0x249e8c[_0x50a668(0xb6)]),'ariaLabel':_0x5094d3['t'](_0x50a668(0xcf)),'activePresetId':_0x2be9b7(_0x249e8c[_0x50a668(0xb6)]),'onSelect':_0x36f7bb=>_0x326517['executeCommand'](Er['id'],{'presetId':_0x36f7bb})}):null;}function Xr(){const _0x25f1d3=_0x4b851e;let {selection:_0x56e2f6,updateShapeData:_0x14d6aa}=qr();return _0x56e2f6?_0x26713b(_0x433ebc,{'fontFamilyPopupDataComponent':_0x25f1d3(0x1cb),'shapeData':_0x56e2f6[_0x25f1d3(0xb6)],'onUpdateShapeData':_0x14d6aa}):null;}function Zr(){const _0x26deff=_0x4b851e;var _0x50890b;let {selection:_0x4074d4,updateShapeData:_0xfe4ac6}=qr(),_0x31bcf5=_0x2caf88({'hostType':_0x2ce572['UNIVER_SHEET'],'unitId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x2e2)])??'','subUnitId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x20f)])??'','shapeId':(_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0x179)])??'','shapeData':_0x4074d4==null?void 0x0:_0x4074d4[_0x26deff(0xb6)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x26cd2e=>_0xfe4ac6({'formulaBinding':_0x26cd2e})}),_0x3d65c5=((_0x50890b=_0x31bcf5[_0x26deff(0x1ac)])==null?void 0x0:_0x50890b[_0x26deff(0x145)](_0xf6b293=>_0xf6b293[_0x26deff(0x285)])[_0x26deff(0x14e)](_0x24cced=>_0x24cced[_0x26deff(0xe4)]!==!0x1))??[];return _0x4074d4!=null&&_0x4074d4[_0x26deff(0xb6)][_0x26deff(0x2ba)]?_0x26713b(_0x2667da,{'actions':_0x3d65c5,'panel':_0x31bcf5[_0x26deff(0x27d)]}):null;}const Qr=_0x4b851e(0x1bd),$r=_0x4b851e(0x23a),ei=_0x4b851e(0x240),ti=_0x4b851e(0x134),ni='sheets-shape-ui.ribbon.shape-format.arrange-backward',ri='sheets-shape-ui.ribbon.shape-format.arrange-front',ii=_0x4b851e(0x1a7);function _0x1d1c(_0x59090e,_0x2e70d6){_0x59090e=_0x59090e-0x71;const _0x1226c8=_0x1226();let _0x1d1c42=_0x1226c8[_0x59090e];return _0x1d1c42;}function ai(_0x329e10){const _0xdab236=_0x4b851e;let _0x45ffad=_0x329e10[_0xdab236(0x2c2)](_0x46e4d8),_0x15ca50=_0x329e10[_0xdab236(0x2c2)](_0x1644d5),_0x17168b=_0x329e10[_0xdab236(0x2c2)](_0x1bfe6b);return new _0x14d0cd(_0x30ea53=>{const _0x2dce0b=_0xdab236;let _0x4d6dfe=()=>{const _0x1e8f30=_0x1d1c;let _0x19a49a=oi(_0x329e10),_0x2e464d=_0x19a49a?_0x17168b['getShapeDataById'](_0x19a49a[_0x1e8f30(0x2e2)],_0x19a49a[_0x1e8f30(0x20f)],_0x19a49a[_0x1e8f30(0x179)]):null;_0x30ea53[_0x1e8f30(0x12c)](_0x2e464d?_0x2be9b7(_0x2e464d)??'':'');},_0x18a00c=_0x15ca50[_0x2dce0b(0x85)]['subscribe'](_0x4d6dfe),_0x559792=_0x45ffad[_0x2dce0b(0x11c)](_0x3f4885=>{_0x3f4885['id']===_0x4b69e7['id']&&_0x4d6dfe();});return _0x4d6dfe(),()=>{const _0x390b5b=_0x2dce0b;_0x18a00c[_0x390b5b(0x22e)](),_0x559792['dispose']();};});}function oi(_0x55dd58){const _0xcf8bdc=_0x4b851e;var _0x800059;let _0x24df5e=_0x55dd58[_0xcf8bdc(0x2c2)](_0x1644d5)[_0xcf8bdc(0x20e)]();return _0x24df5e[_0xcf8bdc(0x8c)]===0x1&&((_0x800059=_0x24df5e[0x0])==null?void 0x0:_0x800059[_0xcf8bdc(0x14f)])===_0x514277[_0xcf8bdc(0xcb)]?_0x24df5e[0x0]:null;}function si(_0x233806,_0x5d7e8a=!0x1){const _0x2c2590=_0x4b851e;let _0x2a037c=_0x233806[_0x2c2590(0x2c2)](_0x46e4d8),_0x41fe4f=_0x233806[_0x2c2590(0x2c2)](_0x1644d5),_0x9c7bb6=_0x233806[_0x2c2590(0x2c2)](_0x1bfe6b);return new _0x14d0cd(_0xb9432d=>{const _0x5bfe57=_0x2c2590;let _0x321df1=()=>{const _0x1f0c14=_0x1d1c;let _0x451935=oi(_0x233806);if(!_0x451935){_0xb9432d[_0x1f0c14(0x12c)](!0x0);return;}let _0x8debd1=_0x9c7bb6[_0x1f0c14(0x2d9)](_0x451935['unitId'],_0x451935[_0x1f0c14(0x20f)],_0x451935[_0x1f0c14(0x179)]);_0xb9432d[_0x1f0c14(0x12c)](!_0x8debd1||_0x5d7e8a&&_0x8debd1['formulaBinding']==null);},_0xf38477=_0x41fe4f[_0x5bfe57(0x85)]['subscribe'](_0x321df1),_0x59fb22=_0x2a037c[_0x5bfe57(0x11c)](_0x55ba5a=>{_0x55ba5a['id']===_0x4b69e7['id']&&_0x321df1();});return _0x321df1(),()=>{const _0x1efeb0=_0x5bfe57;_0xf38477['unsubscribe'](),_0x59fb22[_0x1efeb0(0x254)]();};});}function ci(_0x58f353){const _0x22349f=_0x4b851e;let _0x4f736a=_0x58f353[_0x22349f(0x2c2)](_0x1644d5),_0x578c7b=_0x58f353[_0x22349f(0x2c2)](_0x1bfe6b);return _0x4f736a['focus$']['pipe'](_0xea5433(_0x4f736a[_0x22349f(0x20e)]()),_0x3ffce0(()=>{const _0x53f7ca=_0x22349f;let _0x2e2c69=oi(_0x58f353),_0x24dfb2=_0x2e2c69?_0x578c7b[_0x53f7ca(0x196)](_0x2e2c69[_0x53f7ca(0x2e2)],_0x2e2c69['subUnitId'],_0x2e2c69[_0x53f7ca(0x179)]):void 0x0;return _0x24dfb2===void 0x0||_0x47e56f(_0x24dfb2);}));}function li(_0x884a25){const _0x3e8fdf=_0x4b851e;return{'id':Er['id'],'type':_0x4d0911[_0x3e8fdf(0xa4)],'icon':_0x3e8fdf(0xc6),'title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x3e8fdf(0x248),'selections':[{'label':{'name':Ur,'hoverable':!0x1,'selectable':!0x1}}],'value$':ai(_0x884a25),'hidden$':si(_0x884a25)};}function ui(_0x2800b2){const _0x7e6878=_0x4b851e;return{'id':Dr['id'],'type':_0x4d0911[_0x7e6878(0xa4)],'icon':_0x7e6878(0x2c9),'title':_0x7e6878(0x116),'tooltip':_0x7e6878(0x116),'slot':!0x0,'selections':[{'label':{'name':_0x3de37a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ci(_0x2800b2)};}function di(_0x6ab69e,_0x3265c6,_0x32c13c=!0x1){const _0x4a8eb2=_0x4b851e;return _0x16627a=>({'id':_0x6ab69e,'type':_0x4d0911[_0x4a8eb2(0x1ce)],'label':{'name':_0x3265c6,'hoverable':!0x1,'selectable':!0x1},'hidden$':si(_0x16627a,_0x32c13c)});}const fi=di(Qr,Wr),pi=di($r,Gr),mi=di(ei,Kr,!0x0);function hi(_0x179142,_0x3a0f0d,_0x30755e,_0x1377c2){return _0x5c1306=>({'id':_0x179142,'commandId':_0x474f53['id'],'type':_0x4d0911['BUTTON'],'icon':_0x30755e,'title':_0x1377c2,'tooltip':_0x1377c2,'hidden$':si(_0x5c1306),'params':()=>{const _0x3af427=_0x1d1c;let _0x1dbad3=oi(_0x5c1306);return _0x1dbad3?{'unitId':_0x1dbad3[_0x3af427(0x2e2)],'subUnitId':_0x1dbad3[_0x3af427(0x20f)],'drawingIds':[_0x1dbad3[_0x3af427(0x179)]],'arrangeType':_0x3a0f0d}:void 0x0;}});}const gi=hi(ti,_0x5de97e[_0x4b851e(0x2b6)],_0x4b851e(0x1e3),_0x4b851e(0x71)),_i=hi(ni,_0x5de97e['backward'],_0x4b851e(0x28d),_0x4b851e(0xd4)),vi=hi(ri,_0x5de97e[_0x4b851e(0xdf)],_0x4b851e(0x1b8),'shape-editor-ui.arrange.front'),yi=hi(ii,_0x5de97e[_0x4b851e(0x17a)],_0x4b851e(0x2cd),_0x4b851e(0x1e2));function bi(_0x4cc19d){const _0x1ac324=_0x4b851e;return{'id':wr['id'],'type':_0x4d0911['BUTTON'],'icon':_0x1ac324(0x98),'title':_0x1ac324(0x2e1),'tooltip':_0x1ac324(0x2e1),'hidden$':si(_0x4cc19d),'params':()=>{const _0x418124=_0x1ac324;let _0x547275=oi(_0x4cc19d);return _0x547275?{'unitId':_0x547275[_0x418124(0x2e2)],'subUnitId':_0x547275[_0x418124(0x20f)],'drawingId':_0x547275[_0x418124(0x179)]}:void 0x0;}};}const xi={[_0x53d7b7['RIBBON']]:{[br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Er['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':li},[Dr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ui}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Qr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':fi}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Lr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Vr},[Rr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Hr},[ti]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':gi},[ni]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_i},[ri]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':vi},[ii]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':yi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':mi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':bi},[_0x2e5d91['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x2383ca}}}}},Si={[_0x46a8ca['MEDIA']]:{[gr['id']]:{'order':0x4,'menuItemFactory':Fr}},[_0x46a8ca[_0x4b851e(0x1fd)]]:{[Cr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Ir}},[_0x50de40[_0x4b851e(0x184)]]:{[_0x1bd38f[_0x4b851e(0x1fd)]]:{[Lr]:{'order':0x4,'menuItemFactory':Vr},[Rr]:{'order':0x5,'menuItemFactory':Hr}}}};var Ci=_0x4b851e(0x2a0),wi='1.0.0-beta.2';const Ti={'type':_0x3ab13f[_0x4b851e(0x18a)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},Ei={};function Di(_0x371bf3){return _0x371bf3['trim']()||void 0x0;}function Oi(_0x3dcb01,_0x186381,_0x20fb45){const _0x7ec083=_0x4b851e;var _0x3c3fba;return((_0x3c3fba=_0x3dcb01[_0x7ec083(0x287)])==null?void 0x0:_0x3c3fba['trim']())||_0x389497(_0x20fb45,_0x651274(_0x3dcb01[_0x7ec083(0x14f)]))+'\x20'+(_0x186381+0x1);}function ki(){const _0x26d3d8=_0x4b851e;var _0x193259;let _0x1e3844=_0x496f8c(_0x3fae61),_0x197a55=_0x496f8c(_0x46e4d8),_0x3ba7a3=_0x496f8c(_0x22bed1),_0x5f04b5=_0x496f8c(_0x460b38),_0x4defd2=_0x496f8c(_0x1644d5),_0x115923=_0x496f8c(_0x37a074),[,_0x4f303c]=_0x3f08fe(_0x4b5a92=>_0x4b5a92+0x1,0x0),_0x102fb8=_0x3ba7a3[_0x26d3d8(0x249)](_0x2ce572['UNIVER_SHEET']),_0x58ad66=(_0x102fb8==null?void 0x0:_0x102fb8['getUnitId']())??'',_0x339b97=(_0x102fb8==null||(_0x193259=_0x102fb8[_0x26d3d8(0x84)]())==null?void 0x0:_0x193259[_0x26d3d8(0x1b0)]())??'',_0xc513c0=_0x1f221a(()=>_0x4defd2[_0x26d3d8(0x85)],_0x4defd2[_0x26d3d8(0x20e)](),!0x1,[_0x4defd2]);_0x45ee55(()=>{const _0x2204a2=_0x26d3d8;let _0xef1c5b=_0x197a55['onCommandExecuted'](()=>_0x4f303c());return()=>_0xef1c5b[_0x2204a2(0x254)]();},[_0x197a55]);let _0x4e2893=_0x2a519c(()=>_0x11fb9f(_0x1e3844),[_0x1e3844]),_0x52eddc=_0x58ad66&&_0x339b97?_0x5f04b5['getDrawingData'](_0x58ad66,_0x339b97):{},_0x134440=(_0x58ad66&&_0x339b97?_0x5f04b5['getDrawingOrder'](_0x58ad66,_0x339b97):[])[_0x26d3d8(0x27b)](_0x4f1680=>_0x52eddc[_0x4f1680])[_0x26d3d8(0x14e)](_0x4f43f7=>!!_0x4f43f7)[_0x26d3d8(0x2cf)](),_0x58ecfc=_0x134440['reduce']((_0x34dfc1,_0x1bc815)=>(_0x34dfc1[_0x19e79d(_0x1bc815[_0x26d3d8(0x14f)])]+=0x1,_0x34dfc1),{'canvas':0x0,'floating':0x0}),_0xb700e9={'canvas':0x0,'floating':0x0},_0x5df456=_0x134440[_0x26d3d8(0x27b)]((_0x306364,_0x597ca2)=>{const _0x2e5e83=_0x26d3d8;let _0x3b8a9a=_0x19e79d(_0x306364[_0x2e5e83(0x14f)]),_0x14d826=_0x3b8a9a===_0x1767bf,_0x29677b=_0xb700e9[_0x3b8a9a]++;return{'id':_0x306364[_0x2e5e83(0x179)],'name':Oi(_0x306364,_0x597ca2,_0x1e3844),'description':_0x306364[_0x2e5e83(0x117)],'visible':_0x306364[_0x2e5e83(0xbf)]!==!0x0,'selectable':_0x306364[_0x2e5e83(0x10d)]!==!0x1,'sectionId':_0x3b8a9a,'sectionTitle':_0x14d826?_0x4e2893[_0x2e5e83(0x256)]:_0x4e2893[_0x2e5e83(0x19f)],'capabilities':_0x14d826?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x14d826&&_0x29677b>0x0,'canMoveBackward':!_0x14d826&&_0x29677b<_0x58ecfc[_0x2e5e83(0xfb)]-0x1,'canReorder':!_0x14d826};}),_0x57bdc3=_0x2a519c(()=>(_0xc513c0??[])['filter'](_0x1f49a3=>_0x1f49a3[_0x26d3d8(0x2e2)]===_0x58ad66&&_0x1f49a3['subUnitId']===_0x339b97)[_0x26d3d8(0x27b)](_0x3dffd6=>_0x3dffd6[_0x26d3d8(0x179)]),[_0xc513c0,_0x339b97,_0x58ad66]),_0x3db694=_0x57bdc3[_0x57bdc3[_0x26d3d8(0x8c)]-0x1]??null,_0x5b879a=_0x3ff7ac=>_0x5f04b5[_0x26d3d8(0x2cc)]({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x3ff7ac})??null,_0x59e092=async _0x45ad2=>{const _0x42582c=_0x26d3d8;!_0x58ad66||!_0x45ad2[_0x42582c(0x8c)]||await _0x197a55[_0x42582c(0x163)](_0x41f305['id'],{'unitId':_0x58ad66,'drawings':_0x45ad2});},_0x213046=async(_0x161e5a,_0x52678e)=>{_0x5b879a(_0x161e5a)&&await _0x59e092([{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x161e5a,..._0x52678e}]);},_0x24f137=(_0x3a2b93,_0x94f409)=>{const _0x3483ca=_0x26d3d8;if(!_0x58ad66||!_0x339b97)return;let _0x5e84a5=_0x94f409?_0x57bdc3[_0x3483ca(0xf5)](_0x3a2b93)?_0x57bdc3[_0x3483ca(0x14e)](_0x4364da=>_0x4364da!==_0x3a2b93):[..._0x57bdc3,_0x3a2b93]:[_0x3a2b93];_0x197a55[_0x3483ca(0xc3)](_0x2f07a0['id'],_0x5e84a5['map'](_0x1f8a9b=>({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x1f8a9b})));let _0x1769bf=_0x5e84a5[_0x5e84a5['length']-0x1];_0x1769bf?_0x40f724(_0x115923,{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x1769bf}):_0x1539dd(_0x115923,_0x58ad66);},_0x1fa622=async(_0x3720d9,_0x19d2a1)=>{const _0x455d47=_0x26d3d8;await _0x59e092(_0x3720d9['map'](_0x47c6fd=>_0x5b879a(_0x47c6fd))['filter'](_0x6fa543=>!!_0x6fa543)[_0x455d47(0x14e)](_0x6d81ab=>_0x6d81ab['hidden']!==!0x0!==_0x19d2a1)['map'](_0x5822a7=>({'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingId':_0x5822a7[_0x455d47(0x179)],'hidden':!_0x19d2a1})));},_0x33bfca=async _0x52d800=>{let _0x36c0a9=_0x5b879a(_0x52d800);_0x36c0a9&&await _0x213046(_0x52d800,{'selectable':_0x36c0a9['selectable']===!0x1&&void 0x0});},_0x3eee9e=async(_0x20210b,_0x9acd17)=>{const _0x3e6a0d=_0x26d3d8;var _0x2a0091;let _0x1aceb3=Di(_0x9acd17);(((_0x2a0091=_0x5b879a(_0x20210b))==null?void 0x0:_0x2a0091[_0x3e6a0d(0x287)])??void 0x0)!==_0x1aceb3&&await _0x213046(_0x20210b,{'name':_0x1aceb3});},_0x24010c=async(_0xb325ee,_0x419ec3)=>{const _0x10a5ce=_0x26d3d8;var _0x523019;let _0xa87666=Di(_0x419ec3);(((_0x523019=_0x5b879a(_0xb325ee))==null?void 0x0:_0x523019[_0x10a5ce(0x117)])??void 0x0)!==_0xa87666&&await _0x213046(_0xb325ee,{'description':_0xa87666});},_0xf1b4aa=async(_0x3fbc3f,_0xf1a519)=>{!_0x58ad66||!_0x339b97||await _0x197a55['executeCommand'](_0x474f53['id'],{'unitId':_0x58ad66,'subUnitId':_0x339b97,'drawingIds':[_0x3fbc3f],'arrangeType':_0xf1a519});};return!_0x58ad66||!_0x339b97?_0x26713b('div',{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x4e2893[_0x26d3d8(0x169)]}):_0x26713b(_0x507439,{'items':_0x5df456,'selectedIds':_0x57bdc3,'focusedId':_0x3db694,'labels':_0x4e2893,'onSelect':_0x24f137,'onSetVisible':_0x1fa622,'onCommitName':_0x3eee9e,'onCommitDescription':_0x24010c,'onMoveForward':async _0x361289=>_0xf1b4aa(_0x361289,_0x5de97e[_0x26d3d8(0x2b6)]),'onMoveBackward':async _0x4d04d7=>_0xf1b4aa(_0x4d04d7,_0x5de97e[_0x26d3d8(0x14b)]),'onToggleSelectable':_0x33bfca});}let Ai=class{constructor(_0x1fcb4b){const _0x55490b=_0x4b851e;this[_0x55490b(0x1bb)]=_0x1fcb4b;}[_0x4b851e(0xa9)](_0x8c3eba,_0x2d1a68){const _0x215b67=_0x4b851e;let _0x3e4659=this[_0x215b67(0x1bb)][_0x215b67(0x75)](_0x8c3eba[_0x215b67(0x2e2)]),_0x50b05e=_0x3e4659==null?void 0x0:_0x3e4659['scene'];if(!_0x50b05e)return;let _0xdb253a=_0x4d60ae(_0x8c3eba),_0x168c20=_0x50b05e['getObjectIncludeInGroup'](_0xdb253a);_0x168c20==null||_0x168c20[_0x215b67(0x26d)](_0x2d1a68);}};Ai=Z([X(0x0,_0x37a074)],Ai);function ji(){const _0x18fdab=_0x4b851e;let _0x6f5695=_0x496f8c(_0x1644d5),_0x5459cd=_0x1f221a(()=>_0x6f5695[_0x18fdab(0x85)],_0x6f5695[_0x18fdab(0x20e)](),!0x1,[_0x6f5695]);return _0x5459cd[_0x18fdab(0x8c)]===0x0?null:_0x26713b(_0x18fdab(0xdd),{'children':_0x3acd23('div',{'className':_0x18fdab(0x8d),'children':[_0x26713b(_0x5aebc8,{'drawings':_0x5459cd,'hasCropper':!0x1}),_0x26713b(_0x42148c,{'drawings':_0x5459cd})]})});}function Mi(_0x4b6a71){let {unitId:_0x36cfb8,subUnitId:_0x5eb67e,shapeId:_0x2a0905}=_0x4b6a71,_0x1ffc51=_0x496f8c(_0x46e4d8),_0x53d953=_0x496f8c(Ai);return _0x26713b(_0x7c1c93,{..._0x4b6a71,'positionEditor':_0x26713b(ji,{}),'onUpdateShapeData':(_0x562dd3,_0x46a6e2)=>{or(_0x1ffc51,_0x36cfb8,_0x5eb67e,_0x2a0905,_0x562dd3,_0x46a6e2);},'onUpdateLineShapeData':(_0xd23a32,_0x4eae40)=>{sr(_0x1ffc51,_0x36cfb8,_0x5eb67e,_0x2a0905,_0xd23a32,_0x4eae40);},'onUpdateShapeFillImage':_0x458773=>{const _0x3fd0f8=_0x1d1c;_0x53d953[_0x3fd0f8(0xa9)]({'unitId':_0x36cfb8,'subUnitId':_0x5eb67e,'drawingId':_0x2a0905},_0x458773);}});}function Ni(_0x581aed){const _0x8d6d5f=_0x4b851e;let _0x516846=_0x496f8c(_0x49b6d5),_0x17e803=_0x1f221a(()=>_0x516846[_0x8d6d5f(0x160)],_0x516846[_0x8d6d5f(0x246)](),!0x1,[_0x516846]),_0xf14798=_0x581aed[_0x8d6d5f(0x16e)][_0x8d6d5f(0x17d)];return!_0xf14798||!_0x17e803?null:_0x26713b(Pi,{..._0xf14798,'canvasElement':_0x581aed['popup']['canvasElement']});}function Pi(_0x76f75d){const _0x17bb0b=_0x4b851e;let _0xa2b4dd=_0x496f8c(_0x46e4d8),_0x2fc944=_0x496f8c(_0x1bfe6b),{unitId:_0x25a632,subUnitId:_0x1c49f0,drawingId:_0x13cf5a,drawingType:_0x2a1c9f,shapeType:_0xe06088}=_0x76f75d,[_0x5e5e07,_0x3e8edf]=_0x24f8d3(_0x76f75d[_0x17bb0b(0xb6)]),_0x32f11f=_0x2a519c(()=>_0x4f2a32(_0x5e5e07),[_0x5e5e07]),_0x46123e=_0x2a519c(()=>_0x3f7794(_0x5e5e07),[_0x5e5e07]);_0x45ee55(()=>{const _0x3860ad=_0x17bb0b;let _0x5161c7=_0xa2b4dd[_0x3860ad(0x11c)](_0x533715=>{const _0x395137=_0x3860ad;if(_0x533715['id']!==_0x4b69e7['id'])return;let _0x3905b9=_0x2fc944[_0x395137(0x2d9)](_0x25a632,_0x1c49f0,_0x13cf5a);_0x3905b9&&_0x3e8edf(_0x3905b9);});return()=>_0x5161c7[_0x3860ad(0x254)]();},[_0xa2b4dd,_0x13cf5a,_0x2fc944,_0x1c49f0,_0x25a632]);let _0xbb4e6b=_0x10850e=>{_0x3e8edf(_0x229074=>({..._0x229074,..._0x10850e}));},_0x538012=_0x2e4e90=>{const _0x146848=_0x17bb0b;let _0x38b112=_0x273436(_0x5e5e07,_0x2e4e90);or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,{'oldShapeData':{'shapeText':_0x5e5e07[_0x146848(0x121)]}},_0x38b112),_0xbb4e6b(_0x38b112);},_0x588c2b=_0x2caf88({'hostType':_0x2ce572[_0x17bb0b(0x158)],'unitId':_0x25a632,'subUnitId':_0x1c49f0,'shapeId':_0x13cf5a,'shapeData':_0x5e5e07,'onUpdateBinding':_0x7a0e2c=>{let _0x96c6d6={'formulaBinding':_0x7a0e2c};or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,{'oldShapeData':{'formulaBinding':_0x5e5e07['formulaBinding']}},_0x96c6d6),_0xbb4e6b(_0x96c6d6);}});return _0x3acd23(_0x16b2fe,{'children':[_0x26713b(_0x3d7c32,{'canvasElement':_0x76f75d['canvasElement'],'shapeData':_0x5e5e07,'shapeType':_0xe06088,'textStyle':{'ff':_0x179953[_0x17bb0b(0x121)][_0x17bb0b(0xd2)],'fs':_0x179953[_0x17bb0b(0x121)]['fontSize'],'cl':{'rgb':_0x179953[_0x17bb0b(0x121)][_0x17bb0b(0xc2)]},..._0x32f11f},'textModel':_0x46123e?{'ha':_0x46123e['ha']??_0x4305f0[_0x17bb0b(0x16c)],'va':_0x46123e['va']??_0x43e240['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x179953[_0x17bb0b(0x1d4)],'defaultGradientEndColor':_0x179953[_0x17bb0b(0x1d2)],'defaultStrokeColor':_0x179953[_0x17bb0b(0x1c6)],'extensionGroups':_0x588c2b[_0x17bb0b(0x1ac)],'onUpdateShapeData':(_0x1ea529,_0x677e6f)=>{or(_0xa2b4dd,_0x25a632,_0x1c49f0,_0x13cf5a,_0x1ea529,_0x677e6f),_0x677e6f&&_0xbb4e6b(_0x677e6f);},'onUpdateText':_0x538012,'onOpenPanel':()=>{const _0x41db84=_0x17bb0b;_0xa2b4dd[_0x41db84(0x163)](wr['id'],{'unitId':_0x25a632,'subUnitId':_0x1c49f0,'drawingId':_0x13cf5a});},'onDelete':()=>{_0xa2b4dd['executeCommand'](_0x483709['id'],{'unitId':_0x25a632,'drawings':[{'unitId':_0x25a632,'subUnitId':_0x1c49f0,'drawingId':_0x13cf5a,'drawingType':_0x2a1c9f}]});}}),_0x588c2b['panel']]});}var Fi=class extends _0x387ec6{constructor(..._0x32ef6f){const _0x2a93f0=_0x4b851e;super(..._0x32ef6f),Y(this,_0x2a93f0(0x119),new _0x377ada(null)),Y(this,_0x2a93f0(0x2d1),this[_0x2a93f0(0x119)][_0x2a93f0(0x2c7)]()),Y(this,_0x2a93f0(0x15b),new _0x377ada(!0x1)),Y(this,_0x2a93f0(0x137),this[_0x2a93f0(0x15b)]['asObservable']());}[_0x4b851e(0x254)](){const _0x1b1bf5=_0x4b851e;this[_0x1b1bf5(0x119)][_0x1b1bf5(0x12c)](null),this['_editingParams$']['complete'](),this[_0x1b1bf5(0x15b)][_0x1b1bf5(0x12c)](!0x1),this[_0x1b1bf5(0x15b)][_0x1b1bf5(0x1c2)](),super[_0x1b1bf5(0x254)]();}[_0x4b851e(0x22f)](_0x579d81){const _0x175e52=_0x4b851e;this[_0x175e52(0x119)][_0x175e52(0x12c)](_0x579d81),_0x579d81??this[_0x175e52(0x15b)][_0x175e52(0x12c)](!0x1);}[_0x4b851e(0x1ba)](_0x20105c){this['_onSavingEditorData$']['next'](_0x20105c);}[_0x4b851e(0xbb)](){const _0x234d29=_0x4b851e;return this[_0x234d29(0x119)][_0x234d29(0x13d)]();}['completeEditing'](_0x526f9e){const _0x57283b=_0x4b851e;this['getEditing']()&&(this[_0x57283b(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x5dc4c5=_0x57283b;this[_0x5dc4c5(0x22f)](null);}));}[_0x4b851e(0xf1)](){const _0x4f21e2=_0x4b851e;this[_0x4f21e2(0xbb)]()&&this[_0x4f21e2(0x22f)](null);}};function Ii(_0x288c67){const _0x3b8007=_0x4b851e;return!!_0x288c67&&'axisAlignSheetTransform'in _0x288c67&&_0x3b8007(0x1b3)in _0x288c67;}const Li=_0x5acb43(()=>{const _0x37b007=_0x4b851e;let _0x4128fb=_0x496f8c(Fi),_0x279fd6=_0x496f8c(_0x1bfe6b),_0x305e8d=_0x496f8c(_0x1644d5),_0x5c516a=_0x496f8c(_0x46e4d8),_0x428edb=_0x496f8c(_0x2752d),_0x3c1581=_0x496f8c(_0x37a074);return _0x26713b(_0x11d071,{'adapter':_0x2a519c(()=>({'getShapeModel':(_0x4aee89,_0x2b2f57,_0x36b1d5)=>_0x279fd6['getShapeModel'](_0x4aee89,_0x2b2f57,_0x36b1d5),'getShapeData':(_0x17d3ad,_0x4a3d86,_0x4bed6b)=>_0x279fd6['getShapeDataById'](_0x17d3ad,_0x4a3d86,_0x4bed6b),'getDrawingTransform':(_0x23ec16,_0x57a02,_0x380994)=>{const _0x17ee89=_0x1d1c;let _0xefd01e=_0x305e8d[_0x17ee89(0x2cc)]({'unitId':_0x23ec16,'subUnitId':_0x57a02,'drawingId':_0x380994});return _0xefd01e==null?void 0x0:_0xefd01e[_0x17ee89(0x1c1)];},'updateShapeText':({unitId:_0x2bfcea,subUnitId:_0x207d90,shapeId:_0x857c7d,shapeText:_0x58a9fd,oldShapeText:_0x19bd74,hostSize:_0x4c5e5d})=>{const _0x230a05=_0x1d1c;_0x428edb[_0x230a05(0xb1)](_0x2bfcea,()=>{const _0x45e827=_0x230a05;var _0x189060;let _0x1e8dc8=_0x5c516a['syncExecuteCommand'](ar['id'],{'unitId':_0x2bfcea,'subUnitId':_0x207d90,'shapeId':_0x857c7d,'shapeData':{'shapeText':_0x58a9fd},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x19bd74}}});if(!_0x1e8dc8||!_0x4c5e5d)return _0x1e8dc8;let _0x453646=_0x305e8d['getDrawingByParam']({'unitId':_0x2bfcea,'subUnitId':_0x207d90,'drawingId':_0x857c7d}),_0x25e645=_0x453646==null?void 0x0:_0x453646['transform'];if(!Ii(_0x453646)||!_0x25e645)return!0x1;let _0x4a6b95={..._0x25e645,'width':_0x4c5e5d[_0x45e827(0x193)],'height':_0x4c5e5d[_0x45e827(0x1ff)]},_0x4bf85a=(_0x189060=_0x3c1581[_0x45e827(0x75)](_0x2bfcea))==null||(_0x189060=_0x189060[_0x45e827(0x25d)](_0x58befb)[_0x45e827(0x174)](_0x207d90))==null?void 0x0:_0x189060[_0x45e827(0x27a)];return _0x5c516a['syncExecuteCommand'](_0x41f305['id'],{'unitId':_0x2bfcea,'drawings':[{..._0x453646,'transform':_0x4a6b95,'sheetTransform':_0x4bf85a?_0x1633a2(_0x4a6b95,_0x4bf85a)??_0x453646['sheetTransform']:_0x453646[_0x45e827(0x1b3)],'axisAlignSheetTransform':_0x4bf85a?_0x1f9ea5(_0x4a6b95,_0x4bf85a)??_0x453646[_0x45e827(0x1f7)]:_0x453646[_0x45e827(0x1f7)]}]});});},'updateHostSize':({unitId:_0x1e678f,subUnitId:_0x5b88d3,shapeId:_0x37b2b8,width:_0x57a30e,height:_0x5d22f0})=>{const _0x2a7c45=_0x1d1c;var _0x235755;let _0x23561e=_0x305e8d[_0x2a7c45(0x2cc)]({'unitId':_0x1e678f,'subUnitId':_0x5b88d3,'drawingId':_0x37b2b8}),_0x1968fa=_0x23561e==null?void 0x0:_0x23561e[_0x2a7c45(0x1c1)];if(!Ii(_0x23561e)||!_0x1968fa)return;let _0x583c12={..._0x1968fa,'width':_0x57a30e,'height':_0x5d22f0},_0x44ebe0=(_0x235755=_0x3c1581[_0x2a7c45(0x75)](_0x1e678f))==null||(_0x235755=_0x235755[_0x2a7c45(0x25d)](_0x58befb)[_0x2a7c45(0x174)](_0x5b88d3))==null?void 0x0:_0x235755['skeleton'],_0x386e57=_0x44ebe0?_0x1633a2(_0x583c12,_0x44ebe0)??_0x23561e[_0x2a7c45(0x1b3)]:_0x23561e[_0x2a7c45(0x1b3)],_0x47d0ba=_0x44ebe0?_0x1f9ea5(_0x583c12,_0x44ebe0)??_0x23561e[_0x2a7c45(0x1f7)]:_0x23561e[_0x2a7c45(0x1f7)];_0x5c516a[_0x2a7c45(0x163)](_0x41f305['id'],{'unitId':_0x1e678f,'drawings':[{..._0x23561e,'transform':_0x583c12,'sheetTransform':_0x386e57,'axisAlignSheetTransform':_0x47d0ba}]});},'allowHostSizeShrink':({unitId:_0x3e0fd1,subUnitId:_0x22aeea,shapeId:_0x14c6ff})=>_0x7a8762(_0x279fd6[_0x37b007(0x2d9)](_0x3e0fd1,_0x22aeea,_0x14c6ff)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5c516a,_0x305e8d,_0x3c1581,_0x279fd6,_0x428edb]),'editingService':_0x4128fb,'editorUnitId':xr,'positionOptions':_0x2a519c(()=>({'viewportKeys':{'main':_0x571719[_0x37b007(0x2b0)],'leftTop':_0x571719['VIEW_MAIN_LEFT_TOP'],'top':_0x571719[_0x37b007(0x28c)],'left':_0x571719['VIEW_MAIN_LEFT']},'getSkeleton':(_0x100752,_0x2daaa8)=>{const _0x26e5f8=_0x37b007;var _0x641c7a;return((_0x641c7a=_0x100752['with'](_0x58befb)[_0x26e5f8(0x174)](_0x2daaa8[_0x26e5f8(0x20f)]))==null?void 0x0:_0x641c7a[_0x26e5f8(0x27a)])??null;}}),[])});});let Ri=class extends _0x387ec6{constructor(_0x4de121,_0x3840d7){const _0x1d8fe5=_0x4b851e;super(),this['_componentManager']=_0x4de121,this[_0x1d8fe5(0x21f)]=_0x3840d7,this[_0x1d8fe5(0x107)](),this[_0x1d8fe5(0x26a)]();}['_registerIcons'](){const _0x273094=_0x4b851e;this[_0x273094(0x21f)]['has']('ObjectLayersIcon')||this['disposeWithMe'](this['_iconManager'][_0x273094(0x2ea)]({'ObjectLayersIcon':_0x211ee9})),this[_0x273094(0x21f)]['has']('FlipHorizontalIcon')||this[_0x273094(0x183)](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'FlipHorizontalIcon':_0x2f696e})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x2c4))||this[_0x273094(0x183)](this[_0x273094(0x21f)]['register']({'FlipVerticalIcon':_0x382856})),this[_0x273094(0x21f)][_0x273094(0x261)]('BottomIcon')||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'BottomIcon':_0x3bd01a})),this[_0x273094(0x21f)][_0x273094(0x261)]('MoveDownIcon')||this[_0x273094(0x183)](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'MoveDownIcon':_0x164d4d})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x1e3))||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'MoveUpIcon':_0x1e4b26})),this['_iconManager'][_0x273094(0x261)](_0x273094(0x98))||this[_0x273094(0x183)](this['_iconManager'][_0x273094(0x2ea)]({'ShapeFormatSettingIcon':_0x2dd85d})),this[_0x273094(0x21f)][_0x273094(0x261)](_0x273094(0x1b8))||this['disposeWithMe'](this[_0x273094(0x21f)][_0x273094(0x2ea)]({'TopmostIcon':_0xe5adf2}));}[_0x4b851e(0x26a)](){const _0x2fb10d=_0x4b851e;this['disposeWithMe'](this[_0x2fb10d(0x7e)]['register'](_r,Mi)),this['disposeWithMe'](this['_componentManager'][_0x2fb10d(0x2ea)](vr,ki)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](kr,Pr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Ar,Mr)),this['_componentManager'][_0x2fb10d(0x2c2)](_0x105c46)||this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](_0x105c46,Nr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](yr,Ni)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Wr,Jr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Ur,Yr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)]['register'](Gr,Xr)),this[_0x2fb10d(0x183)](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)](Kr,Zr)),this[_0x2fb10d(0x183)](this['_componentManager'][_0x2fb10d(0x2ea)](Sr,_0xdd4439)),this['disposeWithMe'](this[_0x2fb10d(0x7e)][_0x2fb10d(0x2ea)]('SheetShapeTextEditorContainer',Li));}};Ri=Z([X(0x0,_0x2e2475(_0x1b0068)),X(0x1,_0x2e2475(_0x4741f6))],Ri);let zi=class extends _0x387ec6{constructor(_0x49ec4c,_0x1a714e,_0x309129,_0x3df6e1,_0x14796a){const _0x4c7792=_0x4b851e;super(),this[_0x4c7792(0x26e)]=_0x49ec4c,this[_0x4c7792(0x9d)]=_0x1a714e,this[_0x4c7792(0x1bb)]=_0x309129,this[_0x4c7792(0x25c)]=_0x3df6e1,this['_imageShapeClipController']=_0x14796a,Y(this,_0x4c7792(0xc9),null),Y(this,'_unitId',null),Y(this,_0x4c7792(0x21a),null),Y(this,'_activeAdjustPointList',void 0x0),Y(this,_0x4c7792(0x29c),[]),Y(this,_0x4c7792(0x1a6),0x0),Y(this,'_baseTop',0x0),Y(this,_0x4c7792(0x2aa),0x0),Y(this,_0x4c7792(0x152),0x0),Y(this,_0x4c7792(0x12f),!0x1),Y(this,'_activeAdjustInfo',void 0x0),Y(this,_0x4c7792(0xf7),void 0x0),Y(this,_0x4c7792(0xc4),void 0x0),Y(this,_0x4c7792(0x2d6),void 0x0),Y(this,'_isImagePointerDown',!0x1),this[_0x4c7792(0xf0)](),this[_0x4c7792(0x115)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x4b851e(0x2d8)](){const _0x3bc0e6=_0x4b851e;this[_0x3bc0e6(0xaf)](),this[_0x3bc0e6(0x1d8)](!0x0);}[_0x4b851e(0x1f3)](_0x46b9aa,_0x3fd630,_0x168591,_0x23717b){const _0x3c166d=_0x4b851e;let _0x50d7b0=_0x46b9aa;if(_0x50d7b0!==_0x3e1064[_0x3c166d(0x2d7)]&&_0x46b9aa!==_0x3c166d(0xf6))try{let _0x288822=new _0x5578df(_0x50d7b0,'clip-adj-'+_0x46b9aa);return _0x23717b&&_0x288822[_0x3c166d(0x1ef)]({'adjustValues':_0x23717b},!0x0),_0x288822['updateContext']({'width':_0x3fd630,'height':_0x168591}),_0x288822;}catch{return;}}[_0x4b851e(0x2b9)](_0x2970b4,_0x46b3e9,_0x1cf4b7){const _0x2fc0af=_0x4b851e;let _0xffb3f0={'unitId':_0x2970b4,'subUnitId':_0x46b3e9,'drawingId':_0x1cf4b7},_0x1365c6=this[_0x2fc0af(0x9d)][_0x2fc0af(0x2cc)](_0xffb3f0);if(!(!_0x1365c6||_0x1365c6[_0x2fc0af(0x14f)]!==_0x514277['DRAWING_IMAGE']))return _0x1365c6;}[_0x4b851e(0x258)](_0x1effd8,_0x53f507,_0x6e3fc3){const _0x25c0f0=_0x4b851e;let _0x1d4c9=this[_0x25c0f0(0x1bb)][_0x25c0f0(0x75)](_0x1effd8);if(!_0x1d4c9)return;let {scene:_0x4381fd}=_0x1d4c9,_0x2f6404=_0x4d60ae({'unitId':_0x1effd8,'subUnitId':_0x53f507,'drawingId':_0x6e3fc3}),_0x33bdb5=_0x4381fd[_0x25c0f0(0x1f8)](_0x2f6404);if(_0x33bdb5 instanceof _0x5e8ac4){let _0x52c6a3=_0x33bdb5[_0x25c0f0(0xd6)];if(_0x52c6a3)return{'prstGeom':_0x52c6a3,'adjustValues':_0x33bdb5[_0x25c0f0(0x1c3)]};}}['_createControls'](_0x5e0105=!0x1){const _0x372074=_0x4b851e;if(!this['_unitId']||!this[_0x372074(0x21a)]||!this[_0x372074(0xc9)])return;let _0x55f303=this['_renderManagerService'][_0x372074(0x75)](this['_unitId']);if(!_0x55f303||!_0x55f303[_0x372074(0x25d)](_0x58befb)['getCurrentSkeleton']())return;let {scene:_0x5c575f}=_0x55f303,_0x523c56=this['_getImageDrawingInfo'](this[_0x372074(0x7b)],this[_0x372074(0x21a)],this['_activeImageId']);if(!_0x523c56)return;let {transform:_0x155c2f}=_0x523c56;if(!_0x155c2f)return;let {left:_0xc4713b,top:_0x108329,width:_0x31a229,height:_0x400407,flipX:_0x2b307a,flipY:_0x25b93b,angle:_0x14810a=0x0}=_0x155c2f;if(_0xc4713b===void 0x0||_0x108329===void 0x0)return;let _0x24a6e6=this['_getImagePrstGeom'](this[_0x372074(0x7b)],this[_0x372074(0x21a)],this[_0x372074(0xc9)]);if(!_0x24a6e6)return;if(_0x5e0105){let _0x141270=this['_getOrCreateShapeModel'](_0x24a6e6[_0x372074(0xd6)],_0x31a229||0x0,_0x400407||0x0,_0x24a6e6[_0x372074(0x1e5)]);if(!_0x141270)return;this[_0x372074(0x19d)]=_0x141270[_0x372074(0xfd)]();}let _0x48ecec=this['_activeAdjustPointList'];if(!(!_0x48ecec||_0x48ecec['length']===0x0))for(let _0x2c9009=0x0;_0x2c9009<_0x48ecec['length'];_0x2c9009++){let _0x1dd574=_0x48ecec[_0x2c9009],_0xdfba27=_0x1dd574['x'],_0x513d72=_0x1dd574['y'];if(_0x2b307a&&(_0xdfba27=(_0x31a229||0x0)-_0xdfba27),_0x25b93b&&(_0x513d72=(_0x400407||0x0)-_0x513d72),_0x14810a!==0x0){let _0x13b247=(_0x31a229||0x0)/0x2,_0x30f6e7=(_0x400407||0x0)/0x2,_0x46f745=_0x14810a*Math['PI']/0xb4,_0x410be4=Math['cos'](_0x46f745),_0x1d9069=Math['sin'](_0x46f745),_0x2ca568=_0xdfba27-_0x13b247,_0x4b4b7f=_0x513d72-_0x30f6e7;_0xdfba27=_0x13b247+(_0x2ca568*_0x410be4-_0x4b4b7f*_0x1d9069),_0x513d72=_0x30f6e7+(_0x2ca568*_0x1d9069+_0x4b4b7f*_0x410be4);}let _0xb34a6c={'x':_0xdfba27,'y':_0x513d72,'adjName':_0x1dd574[_0x372074(0x165)]};this[_0x372074(0x29e)](_0x5c575f,_0xb34a6c,_0xb34a6c[_0x372074(0x165)],_0xc4713b,_0x108329,this[_0x372074(0x7b)],this[_0x372074(0x21a)]);}}[_0x4b851e(0x29e)](_0xbca496,_0x49bb8a,_0x13d8ec,_0x2d09d8,_0x26e414,_0x581628,_0x46d828){const _0x57994a=_0x4b851e;if(!this[_0x57994a(0xc9)])return;let _0x148a59=_0x57994a(0x2a6)+this[_0x57994a(0xc9)]+'-'+_0x13d8ec,_0x29c191=_0xbca496[_0x57994a(0x2cb)](_0x148a59);if(_0x29c191){_0x29c191[_0x57994a(0x1ab)]({'left':_0x49bb8a['x']+_0x2d09d8-_0x179953[_0x57994a(0x162)],'top':_0x49bb8a['y']+_0x26e414-_0x179953[_0x57994a(0x162)]});return;}let _0x34190c=new pr(_0x148a59,{'left':_0x49bb8a['x']+_0x2d09d8-_0x179953[_0x57994a(0x162)],'top':_0x49bb8a['y']+_0x26e414-_0x179953[_0x57994a(0x162)],'adjName':_0x13d8ec,'shapeId':this[_0x57994a(0xc9)],'unitId':_0x581628,'subUnitId':_0x46d828,'width':_0x179953['adjHandleSize']+0x8,'height':_0x179953['adjHandleSize']+0x8,'zIndex':_0x22719c+0x1,'evented':!0x0});this[_0x57994a(0x29c)][_0x57994a(0x102)](_0x34190c),this['_attachAdjustEvent'](_0x34190c,_0xbca496,_0x13d8ec),_0xbca496['addObject'](_0x34190c,_0x22719c+0x1);}[_0x4b851e(0xaf)](){const _0x5e6ef0=_0x4b851e;this[_0x5e6ef0(0x29c)][_0x5e6ef0(0x8c)]!==0x0&&(this[_0x5e6ef0(0x29c)][_0x5e6ef0(0xd7)](_0x38c2eb=>_0x38c2eb['dispose']()),this['_shapes']=[]);}['_getScrollInfo'](_0x228f34,_0xf7dcdf){const _0x348d53=_0x4b851e;var _0x40d3c9;let _0xb1b4be={'x':0x0,'y':0x0},_0x585355=this['_renderManagerService'][_0x348d53(0x75)](_0x228f34);if(!_0x585355||!_0x585355[_0x348d53(0x25d)](_0x58befb)[_0x348d53(0x2c6)](_0xf7dcdf))return _0xb1b4be;let _0x14a18c=_0x585355[_0x348d53(0x25d)](_0x51344e),_0x188503=_0x14a18c==null?void 0x0:_0x14a18c[_0x348d53(0x209)]();if(!_0x188503)return _0xb1b4be;let _0x4c9013=(_0x40d3c9=this[_0x348d53(0x25c)][_0x348d53(0x1cd)](_0x228f34))==null?void 0x0:_0x40d3c9['getSheetBySheetId'](_0xf7dcdf);if(!_0x4c9013)return _0xb1b4be;let _0xad3fb5=_0x23e0fe(_0x188503[_0x348d53(0xde)],_0x188503['sheetViewStartColumn'],_0x585355[_0x348d53(0x255)],_0x4c9013);return _0xad3fb5?{'x':_0xad3fb5[_0x348d53(0x247)],'y':_0xad3fb5[_0x348d53(0x1cc)]}:_0xb1b4be;}['_getZoomRatio'](_0x5b6d85,_0x553118){const _0x60376f=_0x4b851e;var _0x12f5ad;let _0x4a90f0=(_0x12f5ad=this[_0x60376f(0x25c)][_0x60376f(0x1cd)](_0x5b6d85))==null?void 0x0:_0x12f5ad['getSheetBySheetId'](_0x553118);return(_0x4a90f0==null?void 0x0:_0x4a90f0['getZoomRatio']())??0x1;}[_0x4b851e(0x2a1)](_0x5d5c50,_0x457649,_0x3d6f51){const _0x2de08f=_0x4b851e;this[_0x2de08f(0x183)](_0x52399e(_0x5d5c50[_0x2de08f(0x120)][_0x2de08f(0x26b)]((_0x1a3f12,_0x21d90c)=>{const _0x2e1b15=_0x2de08f;var _0x552b9d,_0x29dae5,_0x1ae0a3;let {unitId:_0x40b1f3,subUnitId:_0x4fb945,drawingId:_0x4943ab}=_0x5d5c50[_0x2e1b15(0x176)](),_0x357c9f=this[_0x2e1b15(0x2b9)](_0x40b1f3,_0x4fb945,_0x4943ab);if(!(_0x357c9f!=null&&_0x357c9f[_0x2e1b15(0x1c1)]))return;let {left:_0x3598dc,top:_0x3dbe91,width:_0x5e8f7d,height:_0x4d85c9}=_0x357c9f[_0x2e1b15(0x1c1)];this[_0x2e1b15(0x1a6)]=_0x3598dc||0x0,this[_0x2e1b15(0x289)]=_0x3dbe91||0x0,this[_0x2e1b15(0x2aa)]=_0x5e8f7d||0x0,this['_baseHeight']=_0x4d85c9||0x0;let _0xe3fd94=!!((_0x552b9d=_0x357c9f[_0x2e1b15(0x1c1)])!=null&&_0x552b9d[_0x2e1b15(0x2ae)]),_0x45aa54=!!((_0x29dae5=_0x357c9f[_0x2e1b15(0x1c1)])!=null&&_0x29dae5[_0x2e1b15(0x1c8)]),_0x40a7b9=((_0x1ae0a3=_0x357c9f['transform'])==null?void 0x0:_0x1ae0a3[_0x2e1b15(0x2a4)])||0x0,_0x34de85=this['_getImagePrstGeom'](_0x40b1f3,_0x4fb945,_0x4943ab);if(!_0x34de85)return;let _0x53986b=this[_0x2e1b15(0x1f3)](_0x34de85[_0x2e1b15(0xd6)],this[_0x2e1b15(0x2aa)],this[_0x2e1b15(0x152)],_0x34de85[_0x2e1b15(0x1e5)]);if(!_0x53986b||(this[_0x2e1b15(0xf7)]=_0x53986b,this[_0x2e1b15(0x1a9)]=_0x53986b[_0x2e1b15(0x24c)](_0x3d6f51),!this[_0x2e1b15(0x1a9)]))return;this[_0x2e1b15(0x12f)]=!0x0,_0x457649[_0x2e1b15(0x1ad)]();let _0x582601=_0x34de85['prstGeom'];this['_adjHandlerPointerMove']=_0x457649[_0x2e1b15(0xe1)][_0x2e1b15(0x26b)]((_0x1afd6a,_0x1f013e)=>{const _0x331ae0=_0x2e1b15;if(!this[_0x331ae0(0x12f)])return;let {offsetX:_0x210983,offsetY:_0x3c823f}=_0x1afd6a,_0x386996=this[_0x331ae0(0x1a9)];if(!this[_0x331ae0(0xf7)]||!_0x386996)return;_0x457649[_0x331ae0(0x1ad)](),_0x457649[_0x331ae0(0x11d)](_0xa4b93e[_0x331ae0(0xd0)]);let _0x4d0ee2={'left':0x0,'top':0x0,'width':this[_0x331ae0(0x2aa)],'height':this[_0x331ae0(0x152)]},_0x1b60d0=this[_0x331ae0(0x10e)](_0x40b1f3,_0x4fb945),_0x23aeb3=this[_0x331ae0(0x21e)](_0x40b1f3,_0x4fb945),_0x133e7e=_0x210983/_0x23aeb3+_0x1b60d0['x']-this['_baseLeft'],_0x4f2d74=_0x3c823f/_0x23aeb3+_0x1b60d0['y']-this[_0x331ae0(0x289)];if(_0x40a7b9!==0x0){let _0x54cae6=this[_0x331ae0(0x2aa)]/0x2,_0x355127=this['_baseHeight']/0x2,_0x39b922=_0x40a7b9*Math['PI']/0xb4,_0x35f785=Math[_0x331ae0(0x20a)](_0x39b922),_0x297375=Math['sin'](_0x39b922),_0x59ecbb=_0x133e7e-_0x54cae6,_0x1fd104=_0x4f2d74-_0x355127;_0x133e7e=_0x54cae6+(_0x59ecbb*_0x35f785+_0x1fd104*_0x297375),_0x4f2d74=_0x355127+(-_0x59ecbb*_0x297375+_0x1fd104*_0x35f785);}_0xe3fd94&&(_0x133e7e=this[_0x331ae0(0x2aa)]-_0x133e7e),_0x45aa54&&(_0x4f2d74=this['_baseHeight']-_0x4f2d74);let _0x8a1f70=this[_0x331ae0(0xf7)]['calcAdjValues'](_0x4d0ee2,{'x':_0x133e7e,'y':_0x4f2d74},_0x386996,_0xe3fd94,_0x45aa54);if(Object[_0x331ae0(0x12b)](_0x8a1f70)['length']!==0x0){for(let [_0x57c347,_0x3a289a]of Object[_0x331ae0(0x2f6)](_0x8a1f70))this['_activeShapeModel'][_0x331ae0(0x2da)](_0x57c347,_0x3a289a);this[_0x331ae0(0xf7)][_0x331ae0(0x113)]({'width':this['_baseWidth'],'height':this[_0x331ae0(0x152)]}),this[_0x331ae0(0xc0)](_0x40b1f3,_0x4fb945,_0x4943ab,_0x8a1f70),this['_activeAdjustPointList']=this[_0x331ae0(0xf7)][_0x331ae0(0xfd)](),this[_0x331ae0(0x1d8)](),_0x1f013e[_0x331ae0(0x2f2)]();}}),this[_0x2e1b15(0x2d6)]=_0x457649[_0x2e1b15(0x21c)][_0x2e1b15(0x26b)]((_0x376a7d,_0x2ae044)=>{const _0x572bb0=_0x2e1b15;if(this['_adjHandlerPointerMove'][_0x572bb0(0x22e)](),this['_adjHandlerPointerUp'][_0x572bb0(0x22e)](),_0x457649[_0x572bb0(0x22a)](),this[_0x572bb0(0xf7)]){let _0x49a254=this[_0x572bb0(0xf7)][_0x572bb0(0x18d)](),_0x1cff2c={};for(let _0x5cdbb8 of _0x49a254){let _0x60a44d=this[_0x572bb0(0xf7)]['getAdjustValueByName'](_0x5cdbb8);_0x60a44d!==void 0x0&&(_0x1cff2c[_0x5cdbb8]=_0x60a44d);}this[_0x572bb0(0xd5)][_0x572bb0(0x2e8)](_0x40b1f3,_0x4fb945,_0x4943ab,_0x582601,_0x1cff2c);}this[_0x572bb0(0x1a9)]=void 0x0,this[_0x572bb0(0xf7)]=void 0x0,this[_0x572bb0(0x12f)]=!0x1,_0x2ae044[_0x572bb0(0x2f2)](),_0x457649[_0x572bb0(0x242)]();}),_0x21d90c[_0x2e1b15(0x2f2)]();})));}['_updateImageAdjValues'](_0x51b69e,_0x1d45ba,_0x4990e4,_0x537442){const _0x5b4d0f=_0x4b851e;let _0x1dd799=this['_renderManagerService']['getRenderUnitById'](_0x51b69e);if(!_0x1dd799)return;let {scene:_0x37ee59}=_0x1dd799,_0x1f50a8=_0x4d60ae({'unitId':_0x51b69e,'subUnitId':_0x1d45ba,'drawingId':_0x4990e4}),_0x141ff9=_0x37ee59[_0x5b4d0f(0x1f8)](_0x1f50a8);if(_0x141ff9 instanceof _0x5e8ac4){let _0x588930=_0x141ff9[_0x5b4d0f(0x1c3)]??{};_0x141ff9[_0x5b4d0f(0x16f)]({..._0x588930,..._0x537442}),_0x141ff9[_0x5b4d0f(0x2b3)](!0x0);}}[_0x4b851e(0x115)](){const _0x1e6717=_0x4b851e;let _0x1f272f=this[_0x1e6717(0x25c)][_0x1e6717(0x295)](_0x2ce572['UNIVER_SHEET']);this['disposeWithMe'](_0x1f272f[_0x1e6717(0x26c)](_0x20fbec(_0x51ddea=>_0x51ddea?_0x51ddea[_0x1e6717(0x21d)][_0x1e6717(0x26c)](_0x20fbec(_0x4df289=>{const _0x5b8f0b=_0x1e6717;if(!_0x4df289)return _0x53e669;let _0x4468f8=_0x51ddea[_0x5b8f0b(0x23b)](),_0x4362c5=this[_0x5b8f0b(0x1bb)]['getRenderUnitById'](_0x4468f8),_0x188226=_0x4362c5==null?void 0x0:_0x4362c5[_0x5b8f0b(0x255)];return _0x188226?_0x571f73(_0x188226):_0x53e669;})):_0x53e669))[_0x1e6717(0xd9)](_0x4a4380=>{const _0x572485=_0x1e6717;let _0x34172c=_0x4a4380[_0x572485(0x159)]();this[_0x572485(0x183)](_0x4a4380[_0x572485(0xe1)][_0x572485(0x26b)](()=>{const _0x4e6400=_0x572485;this[_0x4e6400(0x222)]&&this['_clearControls']();})),this[_0x572485(0x183)](_0x34172c['changeStart$'][_0x572485(0xd9)](_0x4071a1=>{const _0x496a8a=_0x572485;let {objects:_0x152f0f}=_0x4071a1;if(this[_0x496a8a(0x1d8)](),_0x152f0f!==null&&_0x152f0f[_0x496a8a(0x2ca)]===0x1){let _0x9617e0=_0x152f0f[_0x496a8a(0xe0)]()['next']()[_0x496a8a(0x214)];_0x9617e0 instanceof _0x5e8ac4&&_0x9617e0['prstGeom']&&(this['_isImagePointerDown']=!0x0);}})),this[_0x572485(0x183)](_0x34172c[_0x572485(0x128)][_0x572485(0xd9)](()=>{const _0x490d8f=_0x572485;this[_0x490d8f(0x222)]&&this[_0x490d8f(0xaf)]();})),this[_0x572485(0x183)](_0x4a4380[_0x572485(0x21c)][_0x572485(0x26b)](()=>{this['_isImagePointerDown']&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x572485(0x183)](_0x34172c[_0x572485(0xf9)][_0x572485(0xd9)](()=>{const _0x36340c=_0x572485;if(this[_0x36340c(0x7b)]&&this[_0x36340c(0x21a)]&&this['_activeImageId']){let _0x17608a=this[_0x36340c(0x258)](this[_0x36340c(0x7b)],this['_subUnitId'],this[_0x36340c(0xc9)]);if(_0x17608a){var _0x27cfef,_0x1fa16a;let _0x3eea3c=this[_0x36340c(0x2b9)](this[_0x36340c(0x7b)],this['_subUnitId'],this['_activeImageId']),_0x1f4019=(_0x3eea3c==null||(_0x27cfef=_0x3eea3c[_0x36340c(0x1c1)])==null?void 0x0:_0x27cfef[_0x36340c(0x193)])||0x0,_0x835f8=(_0x3eea3c==null||(_0x1fa16a=_0x3eea3c[_0x36340c(0x1c1)])==null?void 0x0:_0x1fa16a[_0x36340c(0x1ff)])||0x0,_0x572182=this[_0x36340c(0x1f3)](_0x17608a[_0x36340c(0xd6)],_0x1f4019,_0x835f8,_0x17608a['adjustValues']);_0x572182&&(this[_0x36340c(0x19d)]=_0x572182[_0x36340c(0xfd)](),this['_clearControls'](),this[_0x36340c(0x1d8)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x581371=_0x4b851e;this[_0x581371(0x183)](this[_0x581371(0x9d)]['focus$'][_0x581371(0xd9)](_0x524e39=>{const _0x283971=_0x581371;if(_0x524e39[_0x283971(0x8c)]===0x1){let _0x3115d7=_0x524e39[0x0];if(_0x3115d7[_0x283971(0x14f)]===_0x514277[_0x283971(0x1f0)]){let {unitId:_0x4997d6,subUnitId:_0x37a17a,drawingId:_0x5343a1}=_0x3115d7,_0x276973=this['_getImagePrstGeom'](_0x4997d6,_0x37a17a,_0x5343a1);if(_0x276973){var _0x3bfcc6,_0x2e00fe;this[_0x283971(0xc9)]=_0x5343a1,this[_0x283971(0x7b)]=_0x4997d6,this[_0x283971(0x21a)]=_0x37a17a;let _0x2de757=this[_0x283971(0x2b9)](_0x4997d6,_0x37a17a,_0x5343a1),_0x51e62f=(_0x2de757==null||(_0x3bfcc6=_0x2de757[_0x283971(0x1c1)])==null?void 0x0:_0x3bfcc6[_0x283971(0x193)])||0x0,_0x143105=(_0x2de757==null||(_0x2e00fe=_0x2de757['transform'])==null?void 0x0:_0x2e00fe[_0x283971(0x1ff)])||0x0,_0xaa9664=this['_getOrCreateShapeModel'](_0x276973[_0x283971(0xd6)],_0x51e62f,_0x143105,_0x276973[_0x283971(0x1e5)]);_0xaa9664&&(this[_0x283971(0x19d)]=_0xaa9664[_0x283971(0xfd)]()),this[_0x283971(0xaf)](),this[_0x283971(0x1d8)](!0x0);}else this[_0x283971(0x25a)]();}else this[_0x283971(0x25a)]();}else this[_0x283971(0x25a)]();})),this[_0x581371(0x183)](this[_0x581371(0x9d)]['update$'][_0x581371(0xd9)](_0x18ed32=>{const _0x47b9a2=_0x581371;if(_0x18ed32[_0x47b9a2(0x8c)]===0x1){let _0x39c5e5=_0x18ed32[0x0],_0x1d634a=this[_0x47b9a2(0x9d)][_0x47b9a2(0x2cc)](_0x39c5e5);(_0x1d634a==null?void 0x0:_0x1d634a['drawingType'])===_0x514277[_0x47b9a2(0x1f0)]&&this[_0x47b9a2(0xc9)]===_0x39c5e5[_0x47b9a2(0x179)]&&(this[_0x47b9a2(0xaf)](),this[_0x47b9a2(0x1d8)](!0x0));}})),this[_0x581371(0x183)](this['_drawingManagerService'][_0x581371(0x86)][_0x581371(0xd9)](_0x27134f=>{const _0x44d1f2=_0x581371;for(let _0x228b8b of _0x27134f)this[_0x44d1f2(0xc9)]===_0x228b8b[_0x44d1f2(0x179)]&&this['_resetState']();}));}[_0x4b851e(0x25a)](){const _0x5072c7=_0x4b851e;this[_0x5072c7(0xc9)]=null,this[_0x5072c7(0x7b)]=null,this['_subUnitId']=null,this[_0x5072c7(0x19d)]=void 0x0,this[_0x5072c7(0xaf)]();}};zi=Z([X(0x1,_0x1644d5),X(0x2,_0x2e2475(_0x37a074)),X(0x3,_0x22bed1),X(0x4,_0x2e2475(Or))],zi);const Bi=_0x4b851e(0x168);let Vi=class extends _0x387ec6{constructor(_0x57f624,_0xe60bb4,_0x5b734e,_0x1fb74b,_0x539c7b,_0x3673de){const _0x306033=_0x4b851e;super(),this[_0x306033(0x1d5)]=_0x57f624,this[_0x306033(0x1bf)]=_0xe60bb4,this['_drawingManagerService']=_0x5b734e,this[_0x306033(0x25c)]=_0x1fb74b,this[_0x306033(0x1bb)]=_0x539c7b,this[_0x306033(0x1e9)]=_0x3673de,Y(this,'_visible',!0x1),this[_0x306033(0x1d5)]['mergeMenu'](xi),this[_0x306033(0x183)](_0x52399e(this[_0x306033(0x9d)]['focus$']['subscribe'](()=>this[_0x306033(0x271)]()))),this[_0x306033(0x271)]();}[_0x4b851e(0x254)](){const _0x111ad9=_0x4b851e;this[_0x111ad9(0x1e9)][_0x111ad9(0x154)](!0x1,Bi),this[_0x111ad9(0x229)](),super[_0x111ad9(0x254)]();}[_0x4b851e(0x271)](){const _0x108d6a=_0x4b851e;var _0x11b723;let _0x201b01=this['_drawingManagerService'][_0x108d6a(0x20e)](),_0x4345a4=_0x201b01['length']===0x1?_0x201b01[0x0]:void 0x0;if((_0x4345a4==null?void 0x0:_0x4345a4[_0x108d6a(0x14f)])!==_0x514277[_0x108d6a(0xcb)]||this[_0x108d6a(0x25c)][_0x108d6a(0x150)](_0x4345a4['unitId'])!==_0x2ce572[_0x108d6a(0x158)]){this[_0x108d6a(0x1e9)][_0x108d6a(0x154)](!0x1,Bi),this[_0x108d6a(0x229)]();return;}let _0x3baead=_0x3a4437((_0x11b723=this[_0x108d6a(0x1bb)][_0x108d6a(0x75)](_0x4345a4['unitId']))==null?void 0x0:_0x11b723[_0x108d6a(0xd1)][_0x108d6a(0x27f)]())==='isolated';if(this[_0x108d6a(0x1e9)][_0x108d6a(0x154)](_0x3baead,Bi),_0x3baead){this[_0x108d6a(0x229)]();return;}this[_0x108d6a(0x1fa)]||(this[_0x108d6a(0x1fa)]=!0x0,this['_ribbonService'][_0x108d6a(0xca)](br,{'activate':!0x0}));}['_hide'](){const _0x1bb787=_0x4b851e;this[_0x1bb787(0x1fa)]&&(this[_0x1bb787(0x1fa)]=!0x1,this[_0x1bb787(0x1bf)]['hideContextualTab'](br),this[_0x1bb787(0x1bf)][_0x1bb787(0x262)]([]));}};Vi=Z([X(0x0,_0xa31c1),X(0x1,_0x53b662),X(0x2,_0x1644d5),X(0x3,_0x22bed1),X(0x4,_0x37a074),X(0x5,_0x2e2475(_0x49b6d5))],Vi);function Hi(_0x2372ee,_0x3cc43c,_0x3b9206,_0x2f0eb0){const _0x2b4880=_0x4b851e;let _0x46ed3f=_0x108f12(_0x2372ee,_0x3cc43c,_0x3b9206),_0x1216cb=[];for(let _0x3ac158 of _0x3cc43c){let _0x3448f0=_0x46ed3f[_0x2b4880(0x166)][_0x2b4880(0x2c2)](_0x3ac158[_0x2b4880(0x179)]),_0x597726=_0x2f0eb0(_0x3ac158);!_0x3448f0||!_0x597726||_0x1216cb[_0x2b4880(0x102)]({'targetShapeId':_0x3448f0,'source':_0x597726});}return _0x1216cb;}let Ui=class extends _0x387ec6{constructor(_0x1d5325,_0x2bbaa3,_0x175ac2,_0x29a6b8){const _0x4b8480=_0x4b851e;super(),this[_0x4b8480(0x25c)]=_0x1d5325,this[_0x4b8480(0xb3)]=_0x2bbaa3,this[_0x4b8480(0x20d)]=_0x175ac2,this[_0x4b8480(0x80)]=_0x29a6b8,this['_initSheetChange']();}[_0x4b851e(0x213)](){const _0x5479fd=_0x4b851e;this[_0x5479fd(0x183)](this[_0x5479fd(0xb3)][_0x5479fd(0x23d)]({'getMutations':_0x4dfbf2=>{const _0x4922f3=_0x5479fd;if(_0x4dfbf2['id']===_0x561ec6['id']){let _0x530708=_0x4104ec(this[_0x4922f3(0x25c)],_0x4dfbf2['params']);if(!_0x530708)return{'redos':[],'undos':[]};let {unitId:_0x1bc3ee,subUnitId:_0x1e937e}=_0x530708,_0x2f62ef=this[_0x4922f3(0x20d)][_0x4922f3(0x2a3)](_0x1bc3ee,_0x1e937e),_0x24d55d=Object[_0x4922f3(0xe0)](_0x2f62ef)['filter'](_0x4594ee=>_0x4594ee[_0x4922f3(0x14f)]===_0x514277['DRAWING_SHAPE']);if(_0x24d55d[_0x4922f3(0x8c)]===0x0)return{'redos':[],'undos':[]};let _0x1122bf=[],_0x127320=[];for(let _0x5d1170=0x0;_0x5d1170<_0x24d55d[_0x4922f3(0x8c)];_0x5d1170++){let _0x49d37d=_0x24d55d[_0x5d1170],_0x204799=this[_0x4922f3(0x80)][_0x4922f3(0x138)](_0x49d37d[_0x4922f3(0x2e2)],_0x49d37d[_0x4922f3(0x20f)],_0x49d37d[_0x4922f3(0x179)]);_0x204799&&(_0x1122bf[_0x4922f3(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x1bc3ee,'subUnitId':_0x1e937e,'shapeId':_0x49d37d[_0x4922f3(0x179)]}}),_0x127320['push']({'id':_0x16950c['id'],'params':{'unitId':_0x1bc3ee,'subUnitId':_0x1e937e,'shapeId':_0x49d37d['drawingId'],'shapeType':_0x204799[_0x4922f3(0x180)](),'shapeData':JSON[_0x4922f3(0x1be)](JSON[_0x4922f3(0x2bd)](_0x204799['getShapeData']()))}}));}return{'redos':_0x1122bf,'undos':_0x127320};}else{if(_0x4dfbf2['id']===_0x3db4a6['id']){let {unitId:_0x56d2c1,subUnitId:_0x1aacf2,targetSubUnitId:_0x2c42a1,copyContext:_0x574880}=_0x4dfbf2[_0x4922f3(0x29f)];if(!_0x56d2c1||!_0x1aacf2||!_0x2c42a1)return{'redos':[],'undos':[]};let _0x57d1d7=this[_0x4922f3(0x20d)][_0x4922f3(0x2a3)](_0x56d2c1,_0x1aacf2),_0x55630b=Object[_0x4922f3(0xe0)](_0x57d1d7)['filter'](_0x408871=>_0x408871['drawingType']===_0x514277[_0x4922f3(0xcb)]);if(_0x55630b[_0x4922f3(0x8c)]===0x0)return{'redos':[],'undos':[]};let _0x2a869a=Hi(_0x574880,_0x55630b,{'unitId':_0x56d2c1,'sourceSubUnitId':_0x1aacf2,'targetSubUnitId':_0x2c42a1},_0x98a6c2=>{const _0x384762=_0x4922f3;let _0x2b330d=this['_sheetsShapeService'][_0x384762(0x138)](_0x98a6c2[_0x384762(0x2e2)],_0x98a6c2['subUnitId'],_0x98a6c2['drawingId']);if(_0x2b330d)return{'shapeType':_0x2b330d[_0x384762(0x180)](),'shapeData':JSON[_0x384762(0x1be)](JSON[_0x384762(0x2bd)](_0x2b330d[_0x384762(0x88)]()))};}),_0x4c9f4c=[],_0x4e01fb=[];for(let {targetShapeId:_0x5941dc,source:_0x32f813}of _0x2a869a)_0x4c9f4c[_0x4922f3(0x102)]({'id':_0x16950c['id'],'params':{'unitId':_0x56d2c1,'subUnitId':_0x2c42a1,'shapeId':_0x5941dc,'shapeType':_0x32f813[_0x4922f3(0x253)],'shapeData':_0x32f813[_0x4922f3(0xb6)]}}),_0x4e01fb[_0x4922f3(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x56d2c1,'subUnitId':_0x2c42a1,'shapeId':_0x5941dc}});return{'redos':_0x4c9f4c,'undos':_0x4e01fb};}}return{'redos':[],'undos':[]};}}));}};Ui=Z([X(0x0,_0x2e2475(_0x22bed1)),X(0x1,_0x2e2475(_0x16be2b)),X(0x2,_0x2e2475(_0x460b38)),X(0x3,_0x2e2475(_0x1bfe6b))],Ui);let Wi=class extends _0x387ec6{constructor(_0x54427b,_0x3364ee,_0x1f0354,_0x527a16,_0x5b4ef1){const _0x22ed48=_0x4b851e;super(),this[_0x22ed48(0x26e)]=_0x54427b,this[_0x22ed48(0x29b)]=_0x3364ee,this[_0x22ed48(0x9d)]=_0x1f0354,this[_0x22ed48(0x1c9)]=_0x527a16,this[_0x22ed48(0x80)]=_0x5b4ef1,Y(this,'_lastEditingShapeKey',null),this[_0x22ed48(0xa6)](),this['_initSelection'](),this[_0x22ed48(0x2b1)]();}[_0x4b851e(0xa6)](){const _0x5d27f6=_0x4b851e;let {scene:_0x5dab8f}=this['_context'];this[_0x5d27f6(0x183)](_0x5dab8f[_0x5d27f6(0x2bf)][_0x5d27f6(0x26b)](_0x2a4338=>{const _0x29474e=_0x5d27f6;let {offsetX:_0x34ccce,offsetY:_0x16f861}=_0x2a4338,_0x46c5fe=_0x5dab8f[_0x29474e(0x2df)](_0x5a9bd8[_0x29474e(0x297)]([_0x34ccce,_0x16f861]));if(_0x46c5fe instanceof fr){let _0x24debe=this[_0x29474e(0x80)]['getShapeModel'](_0x46c5fe['unitId'],_0x46c5fe['subUnitId'],_0x46c5fe[_0x29474e(0x2e3)]);if(_0x24debe!=null&&_0x24debe[_0x29474e(0x88)]()['formulaBinding']||_0x47e56f(this['_sheetsShapeService']['getShapeType'](_0x46c5fe[_0x29474e(0x2e2)],_0x46c5fe['subUnitId'],_0x46c5fe[_0x29474e(0x2e3)])))return;this[_0x29474e(0x29b)][_0x29474e(0x22f)]({'visible':!0x0,'unitId':_0x46c5fe[_0x29474e(0x2e2)],'subUnitId':_0x46c5fe['subUnitId'],'shapeId':_0x46c5fe[_0x29474e(0x2e3)],'shapeKey':_0x46c5fe[_0x29474e(0x241)]});}}));}[_0x4b851e(0x201)](){const _0x9dc3a4=_0x4b851e;this[_0x9dc3a4(0x183)](this[_0x9dc3a4(0x9d)]['focus$'][_0x9dc3a4(0xd9)](_0xd86cb7=>{const _0xf10aa=_0x9dc3a4;if(_0xd86cb7[_0xf10aa(0x8c)]===0x1){let _0x5763ed=_0xd86cb7[0x0],_0x2b19d8=this[_0xf10aa(0x9d)][_0xf10aa(0x2cc)](_0x5763ed);if((_0x2b19d8==null?void 0x0:_0x2b19d8[_0xf10aa(0x14f)])===_0x514277[_0xf10aa(0xcb)]){var _0x459015;let _0xf8703a=this[_0xf10aa(0x29b)][_0xf10aa(0xbb)]();if((_0xf8703a==null?void 0x0:_0xf8703a[_0xf10aa(0x2e3)])===_0x5763ed[_0xf10aa(0x179)]&&_0xf8703a[_0xf10aa(0xe4)])return;let _0x543d1d=_0x47e56f(this['_sheetsShapeService'][_0xf10aa(0x180)](_0x5763ed[_0xf10aa(0x2e2)],_0x5763ed[_0xf10aa(0x20f)],_0x5763ed[_0xf10aa(0x179)])),_0x490d79=!!((_0x459015=this[_0xf10aa(0x80)]['getShapeModel'](_0x5763ed[_0xf10aa(0x2e2)],_0x5763ed['subUnitId'],_0x5763ed[_0xf10aa(0x179)]))!=null&&_0x459015[_0xf10aa(0x88)]()[_0xf10aa(0x2ba)]);(_0x543d1d||_0x490d79)&&this[_0xf10aa(0x29b)][_0xf10aa(0x22f)](null);}else this['_shapeTextEditingService'][_0xf10aa(0xbb)]()&&(this[_0xf10aa(0x29b)][_0xf10aa(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x12fd37=_0xf10aa;this[_0x12fd37(0x29b)][_0x12fd37(0x22f)](null);}));}else this['_shapeTextEditingService'][_0xf10aa(0xbb)]()&&(this[_0xf10aa(0x29b)][_0xf10aa(0x1ba)](!0x0),requestAnimationFrame(()=>{const _0x228716=_0xf10aa;this[_0x228716(0x29b)][_0x228716(0x22f)](null);}));})),this[_0x9dc3a4(0x183)](this['_drawingManagerService'][_0x9dc3a4(0x86)][_0x9dc3a4(0xd9)](_0x5ee62d=>{const _0x26aec8=_0x9dc3a4;let _0x319b7b=this[_0x26aec8(0x29b)][_0x26aec8(0xbb)]();_0x319b7b&&_0x5ee62d[_0x26aec8(0x1df)](_0x247a2f=>_0x247a2f['drawingId']===_0x319b7b['shapeId'])&&this[_0x26aec8(0x29b)][_0x26aec8(0x22f)](null);}));}['_initEditingParams'](){const _0x5b40d9=_0x4b851e;this['disposeWithMe'](this[_0x5b40d9(0x29b)][_0x5b40d9(0x2d1)][_0x5b40d9(0xd9)](_0x3e198e=>{const _0x1630e6=_0x5b40d9;let {scene:_0x1f7416}=this[_0x1630e6(0x26e)];if(this['_lastEditingShapeKey']){let _0x32bcef=_0x1f7416[_0x1630e6(0x2cb)](this[_0x1630e6(0x19c)]);_0x32bcef&&_0x32bcef[_0x1630e6(0x22f)](!0x1);}if(_0x3e198e){let _0x1b543e=!!_0x3e198e[_0x1630e6(0xe4)],_0x5f0892=_0x1f7416[_0x1630e6(0x2cb)](_0x3e198e[_0x1630e6(0x2d2)]);_0x5f0892&&(_0x5f0892[_0x1630e6(0x22f)](_0x1b543e),this['_lastEditingShapeKey']=_0x3e198e[_0x1630e6(0x2d2)]),this[_0x1630e6(0x1c9)][_0x1630e6(0x126)](_0x1cdb66,_0x1b543e);}else this[_0x1630e6(0x19c)]=null,this[_0x1630e6(0x1c9)]['setContextValue'](_0x1cdb66,!0x1);}));}};Wi=Z([X(0x1,_0x2e2475(Fi)),X(0x2,_0x1644d5),X(0x3,_0x53c8c3),X(0x4,_0x2e2475(_0x1bfe6b))],Wi);let Gi=class extends _0x7f2b74{constructor(_0x28efbf,_0x4845b1,_0x3d895a,_0x5cb9f7,_0x1c5add,_0xbcde0c,_0x42e9d7,_0x487e7e,_0x5ee6f8){super(_0x28efbf,_0x4845b1,_0x3d895a,_0x5cb9f7,_0x1c5add,_0xbcde0c,_0x42e9d7,_0x487e7e,_0x5ee6f8,{'componentKey':Sr,'editorUnitId':xr});}};Gi=Z([X(0x1,_0x2e2475(_0x1c01d6)),X(0x2,_0x2e2475(_0x33ca8f)),X(0x3,_0x2e2475(_0x1aec61)),X(0x4,_0x46e4d8),X(0x5,_0x2e2475(_0x2c4993)),X(0x6,_0x2e2475(_0x4c9b9e)),X(0x7,_0x2e2475(_0x33e8a0)),X(0x8,_0x2e2475(_0x2bef20))],Gi);let Ki=class extends _0x387ec6{constructor(_0x19e461,_0x66cc50,_0x1a96fd,_0x5eb7d8,_0x9e3f1,_0xd62363){const _0x3aade0=_0x4b851e;super(),this[_0x3aade0(0x13c)]=_0x19e461,this[_0x3aade0(0x1bb)]=_0x66cc50,this[_0x3aade0(0x9d)]=_0x1a96fd,this[_0x3aade0(0x277)]=_0x5eb7d8,this[_0x3aade0(0xcc)]=_0x9e3f1,this[_0x3aade0(0x2f7)]=_0xd62363,Y(this,_0x3aade0(0x96),new Set()),this[_0x3aade0(0xd8)]();}[_0x4b851e(0xd8)](){const _0xb4acaf=_0x4b851e;this[_0xb4acaf(0x12e)](),this[_0xb4acaf(0xb7)](),this[_0xb4acaf(0x172)]();}[_0x4b851e(0x12e)](){const _0x2f87fe=_0x4b851e;this['disposeWithMe'](this[_0x2f87fe(0x9d)][_0x2f87fe(0xa2)][_0x2f87fe(0xd9)](_0x4068af=>{const _0x482e48=_0x2f87fe;this[_0x482e48(0x27c)](_0x4068af);}));}[_0x4b851e(0xb7)](){const _0x261814=_0x4b851e;this[_0x261814(0x183)](this[_0x261814(0x13c)]['onCommandExecuted']((_0x27341a,_0x11c5cd)=>{const _0x48ba56=_0x261814;if(_0x27341a['id']===_0x4b69e7['id']){let {unitId:_0x4b9e95,subUnitId:_0x8ef644,shapeId:_0x2d8163}=_0x27341a[_0x48ba56(0x29f)],_0x384929=this[_0x48ba56(0x291)](_0x4b9e95),_0x5984e4=_0x4d60ae({'unitId':_0x4b9e95,'subUnitId':_0x8ef644,'drawingId':_0x2d8163}),_0x4cdab7=_0x384929==null?void 0x0:_0x384929['scene'][_0x48ba56(0x2cb)](_0x5984e4);_0x4cdab7&&(this[_0x48ba56(0x2f7)][_0x48ba56(0x2e5)](_0x4cdab7),this[_0x48ba56(0x2f7)][_0x48ba56(0x90)](_0x4cdab7,{'unitId':_0x4b9e95,'subUnitId':_0x8ef644,'shapeId':_0x2d8163}),_0x4cdab7[_0x48ba56(0x2b3)](!0x0));return;}if(_0x27341a['id']===_0x16950c['id']){var _0x187ff9;let {unitId:_0xc4127,subUnitId:_0x3c665c,shapeId:_0xc500e9}=_0x27341a[_0x48ba56(0x29f)],_0x393eda=this[_0x48ba56(0x291)](_0xc4127);if(_0x393eda==null)return;let {scene:_0x8e735c}=_0x393eda,_0xc11151=_0x4d60ae({'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}),_0x8763f4=_0x8e735c['getObjectIncludeInGroup'](_0xc11151);if(!((_0x187ff9=this[_0x48ba56(0x1bb)][_0x48ba56(0x75)](_0xc4127))!=null&&_0x187ff9['with'](_0x58befb)[_0x48ba56(0x2c6)](_0x3c665c)))return!0x1;if(_0x8763f4)return;if(_0x11c5cd!=null&&_0x11c5cd[_0x48ba56(0x2c3)]){queueMicrotask(()=>{const _0x51a5a1=_0x48ba56;this[_0x51a5a1(0x101)]||this['_insertShapes']([{'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}]);});return;}this[_0x48ba56(0x27c)]([{'unitId':_0xc4127,'subUnitId':_0x3c665c,'drawingId':_0xc500e9}]);}}));}[_0x4b851e(0x172)](){const _0x53cc11=_0x4b851e;this[_0x53cc11(0x183)](this['_drawingManagerService'][_0x53cc11(0x200)]['subscribe'](_0xcb654b=>{const _0x43a47b=_0x53cc11;_0xcb654b[_0x43a47b(0xd7)](_0x1fa0ef=>{const _0x557270=_0x43a47b;let {unitId:_0x2369ba,subUnitId:_0x25a1bd,drawingId:_0x10ec1a}=_0x1fa0ef,_0xedf174=this[_0x557270(0x9d)][_0x557270(0x2cc)](_0x1fa0ef);if(_0xedf174==null)return;let {transform:_0x3359b4,drawingType:_0x3d295b,srcRect:_0x3e2306,prstGeom:_0x4b3119}=_0xedf174;if(_0x3d295b!==_0x514277[_0x557270(0xcb)])return;let _0x43b3c0=this[_0x557270(0x291)](_0x2369ba);if(_0x43b3c0==null)return;let {scene:_0x24fa54,transformer:_0x580fe2}=_0x43b3c0;if(_0x3359b4==null)return!0x0;let _0xce2c52=_0x4d60ae({'unitId':_0x2369ba,'subUnitId':_0x25a1bd,'drawingId':_0x10ec1a}),_0x374efd=_0x24fa54[_0x557270(0x2cb)](_0xce2c52);if(_0x374efd==null)return!0x0;_0x374efd[_0x557270(0x133)](_0x3e2306),_0x374efd['setPrstGeom'](_0x4b3119);});}));}['_insertShapes'](_0x3e4202){const _0x1983f1=_0x4b851e;for(let _0x33ada2 of _0x3e4202){var _0x227234;let {unitId:_0x2779fe,subUnitId:_0x38c65c,drawingId:_0x3e2599}=_0x33ada2,_0x15bfbd=this['_getSceneAndTransformerByDrawingSearch'](_0x2779fe),_0x55e0d5=(_0x227234=_0x49ac42(this[_0x1983f1(0x277)],_0x2779fe))==null?void 0x0:_0x227234[_0x1983f1(0x20f)];if(_0x15bfbd==null||_0x55e0d5!==_0x38c65c)return;let _0x2e3fd1=_0x4d60ae({'unitId':_0x2779fe,'subUnitId':_0x38c65c,'drawingId':_0x3e2599});if(this[_0x1983f1(0x96)][_0x1983f1(0x261)](_0x2e3fd1)||_0x15bfbd[_0x1983f1(0x255)][_0x1983f1(0x2cb)](_0x2e3fd1)!=null)return;let _0x42c1b9=this[_0x1983f1(0x9d)]['getDrawingByParam'](_0x33ada2);if(_0x42c1b9==null||_0x42c1b9[_0x1983f1(0x14f)]!==_0x514277[_0x1983f1(0xcb)])return;if(_0x47e56f((_0x42c1b9['data']||{})[_0x1983f1(0x253)])){let _0x37f9de=_0x42c1b9[_0x1983f1(0x1c1)];_0x37f9de&&(_0x42c1b9['transform']={..._0x37f9de,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x1983f1(0x2de)](_0x2e3fd1);try{this[_0x1983f1(0x2f7)][_0x1983f1(0x187)](_0x42c1b9,_0x15bfbd[_0x1983f1(0x255)]);}finally{this[_0x1983f1(0x96)][_0x1983f1(0x167)](_0x2e3fd1);}queueMicrotask(()=>{const _0x3dbcff=_0x1983f1;if(this[_0x3dbcff(0x101)])return;let _0xb8cc32=_0x4d60ae(_0x33ada2);if(!_0x15bfbd['scene'][_0x3dbcff(0x2cb)](_0xb8cc32))return;let _0x2e53ad=this[_0x3dbcff(0x9d)][_0x3dbcff(0x2cc)](_0x33ada2);_0x2e53ad&&this['_drawingManagerService'][_0x3dbcff(0x2d5)]([_0x2e53ad]);});}}[_0x4b851e(0x291)](_0x5b796a){const _0x5c00f5=_0x4b851e;if(_0x5b796a==null)return;let _0x1343c3=this[_0x5c00f5(0x1bb)][_0x5c00f5(0x75)](_0x5b796a),_0x1d6032=_0x1343c3==null?void 0x0:_0x1343c3[_0x5c00f5(0x255)];return _0x1d6032==null?null:{'scene':_0x1d6032,'transformer':_0x1d6032['getTransformerByCreate']()};}};Ki=Z([X(0x0,_0x46e4d8),X(0x1,_0x37a074),X(0x2,_0x1644d5),X(0x3,_0x22bed1),X(0x4,_0x2e2475(_0x44518e)),X(0x5,_0x2e2475(Q))],Ki);const qi={'normal':{'fill':_0x179953[_0x4b851e(0x13b)],'stroke':_0x179953[_0x4b851e(0xad)],'strokeWidth':_0x179953['cxnPointStrokeWidth']},'highlighted':{'fill':_0x4b851e(0x251),'stroke':_0x4b851e(0x225),'strokeWidth':0x2}};var Ji=class extends _0x25aea5{constructor(_0xc1a9a1,_0x5002a0){const _0xea223f=_0x4b851e;super(_0xc1a9a1,_0x5002a0),Y(this,_0xea223f(0x181),''),Y(this,_0xea223f(0x219),-0x1),Y(this,_0xea223f(0x7b),''),Y(this,'_subUnitId',''),Y(this,_0xea223f(0xc7),!0x1),_0x5002a0&&this['setShapeProps'](_0x5002a0);}[_0x4b851e(0x2a9)](){const _0x29cdfb=_0x4b851e;return{'unitId':this[_0x29cdfb(0x7b)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x29cdfb(0x181)],'cxnIndex':this[_0x29cdfb(0x219)]};}['setHighlighted'](_0x56960e){const _0x1e6e4f=_0x4b851e;this[_0x1e6e4f(0xc7)]!==_0x56960e&&(this[_0x1e6e4f(0xc7)]=_0x56960e,this[_0x1e6e4f(0x2b3)](!0x0));}['isHighlighted'](){const _0x58a044=_0x4b851e;return this[_0x58a044(0xc7)];}[_0x4b851e(0x1ec)](_0xe3b574){const _0x5f25d7=_0x4b851e;_0xe3b574['targetShapeId']!==void 0x0&&(this['_targetShapeId']=_0xe3b574['targetShapeId']),_0xe3b574[_0x5f25d7(0x21b)]!==void 0x0&&(this['_cxnIndex']=_0xe3b574[_0x5f25d7(0x21b)]),_0xe3b574['unitId']!==void 0x0&&(this[_0x5f25d7(0x7b)]=_0xe3b574['unitId']),_0xe3b574['subUnitId']!==void 0x0&&(this[_0x5f25d7(0x21a)]=_0xe3b574[_0x5f25d7(0x20f)]),_0xe3b574['isHighlighted']!==void 0x0&&(this[_0x5f25d7(0xc7)]=_0xe3b574[_0x5f25d7(0x198)]),this[_0x5f25d7(0x1ab)]({'width':_0xe3b574[_0x5f25d7(0x193)]??_0x179953[_0x5f25d7(0x2ab)]*0x2,'height':_0xe3b574[_0x5f25d7(0x1ff)]??_0x179953[_0x5f25d7(0x2ab)]*0x2});}[_0x4b851e(0x161)](_0x46f21f){const _0x51bf5a=_0x4b851e;let _0x44251c=this[_0x51bf5a(0xc7)]?qi['highlighted']:qi[_0x51bf5a(0x2b5)];_0xdb102c[_0x51bf5a(0x106)](_0x46f21f,{'radius':_0x179953[_0x51bf5a(0x2ab)],'fill':_0x44251c[_0x51bf5a(0x1d4)],'stroke':_0x44251c[_0x51bf5a(0x1c6)],'strokeWidth':_0x44251c[_0x51bf5a(0x1fc)],'evented':!0x0});}};let Yi=class extends _0x387ec6{constructor(_0x311d3f,_0x4eec2d,_0x5c3f9a,_0x462d1d){const _0x3d31e2=_0x4b851e;super(),this[_0x3d31e2(0x26e)]=_0x311d3f,this[_0x3d31e2(0x1bb)]=_0x4eec2d,this[_0x3d31e2(0x9d)]=_0x5c3f9a,this[_0x3d31e2(0x80)]=_0x462d1d,Y(this,_0x3d31e2(0xb2),[]),Y(this,'_activeTargetShapeId',null),Y(this,_0x3d31e2(0x232),-0x1),Y(this,_0x3d31e2(0x235),null),Y(this,_0x3d31e2(0x7b),''),Y(this,_0x3d31e2(0x21a),''),Y(this,_0x3d31e2(0x78),null);}[_0x4b851e(0x22d)](_0x42841c,_0x18d475,_0xa39cc1,_0x3390da){const _0x292008=_0x4b851e;this[_0x292008(0x235)]=_0x42841c,this[_0x292008(0x7b)]=_0x18d475,this[_0x292008(0x21a)]=_0xa39cc1,this[_0x292008(0x78)]=_0x3390da;}['updateConnectionDetection'](_0x125e45){const _0x1ba243=_0x4b851e;if(!this['_currentScene'])return null;let _0x38463b=this[_0x1ba243(0x1b9)](_0x125e45);return _0x38463b?(this[_0x1ba243(0x2a5)]!==_0x38463b['shapeId']&&(this['_clearConnectionSites'](),this[_0x1ba243(0x1ed)](_0x38463b[_0x1ba243(0x2e3)],_0x38463b[_0x1ba243(0x197)]),this[_0x1ba243(0x2a5)]=_0x38463b['shapeId']),this[_0x1ba243(0x13f)](_0x125e45)):(this[_0x1ba243(0x2a5)]!==null&&(this[_0x1ba243(0x1d0)](),this[_0x1ba243(0x2a5)]=null),null);}[_0x4b851e(0x1d7)](){const _0x3c2ff0=_0x4b851e;this[_0x3c2ff0(0x1d0)](),this['_currentScene']=null,this[_0x3c2ff0(0x2a5)]=null,this[_0x3c2ff0(0x232)]=-0x1,this[_0x3c2ff0(0x78)]=null;}[_0x4b851e(0x19a)](){const _0x26249e=_0x4b851e;return this['_activeTargetShapeId']===null||this[_0x26249e(0x232)]<0x0?null:{'shapeId':this[_0x26249e(0x2a5)],'cxnIndex':this[_0x26249e(0x232)]};}[_0x4b851e(0x1b9)](_0x1cf319){const _0x2c5259=_0x4b851e;let _0x4e5641=this[_0x2c5259(0x9d)]['getDrawingData'](this['_unitId'],this[_0x2c5259(0x21a)]);for(let _0x5e0141 of Object[_0x2c5259(0x12b)](_0x4e5641)){if(_0x5e0141===this['_draggingConnectorId']||_0x4e5641[_0x5e0141][_0x2c5259(0x14f)]!==_0x514277['DRAWING_SHAPE'])continue;let _0x277efa=this[_0x2c5259(0x80)][_0x2c5259(0x138)](this[_0x2c5259(0x7b)],this[_0x2c5259(0x21a)],_0x5e0141);if(!_0x277efa||_0x47e56f(_0x277efa[_0x2c5259(0x180)]())||_0x277efa[_0x2c5259(0x2dd)]()['length']===0x0||!this[_0x2c5259(0x235)])continue;let _0x557e08=_0x4d60ae({'unitId':this[_0x2c5259(0x7b)],'subUnitId':this[_0x2c5259(0x21a)],'drawingId':_0x5e0141}),_0x539bcc=this[_0x2c5259(0x235)]['getObjectIncludeInGroup'](_0x557e08);if(!_0x539bcc)continue;let {left:_0x2a9748,top:_0x5c42b7,width:_0x4fe32c,height:_0x26384f}=_0x539bcc['getRealBound'](),_0x5697fb=_0x2a9748+_0x4fe32c/0x2,_0x201921=_0x5c42b7+_0x26384f/0x2,_0x19eaae=_0x539bcc[_0x2c5259(0x1c1)][_0x2c5259(0x1c5)](),_0x531f7a=new _0x4915c5([_0x19eaae[0x0],_0x19eaae[0x1],_0x19eaae[0x2],_0x19eaae[0x3],_0x5697fb,_0x201921]),_0x40bd7f=_0x539bcc[_0x2c5259(0x250)](),_0x2ee279=(_0x539bcc[_0x2c5259(0x265)]&&(_0x40bd7f==null?void 0x0:_0x40bd7f[_0x2c5259(0x2ee)])===_0x5b17f8[_0x2c5259(0x25f)]?_0x40bd7f[_0x2c5259(0x294)][_0x2c5259(0x1ea)](_0x531f7a):_0x531f7a)[_0x2c5259(0x124)]()['applyPoint'](_0x1cf319),_0x5bba50=_0x4fe32c/0x2,_0x17853c=_0x26384f/0x2;if(_0x2ee279['x']>=-_0x5bba50-0x5&&_0x2ee279['x']<=_0x5bba50+0x5&&_0x2ee279['y']>=-_0x17853c-0x5&&_0x2ee279['y']<=_0x17853c+0x5)return{'shapeId':_0x5e0141,'shapeModel':_0x277efa};}return null;}[_0x4b851e(0x1ed)](_0x18b39c,_0x25e894){const _0x4787bc=_0x4b851e;if(!this['_currentScene'])return;let _0x34a392=_0x4d60ae({'unitId':this['_unitId'],'subUnitId':this[_0x4787bc(0x21a)],'drawingId':_0x18b39c}),_0x3a150e=this[_0x4787bc(0x235)]['getObjectIncludeInGroup'](_0x34a392);if(!_0x3a150e)return;let {left:_0x81124,top:_0xc76ed8,width:_0x1d92ff,height:_0x228c70}=_0x3a150e[_0x4787bc(0x237)](),_0x4c290c=_0x81124+_0x1d92ff/0x2,_0x2289f5=_0xc76ed8+_0x228c70/0x2,_0x2415ce=_0x3a150e[_0x4787bc(0x1c1)][_0x4787bc(0x1c5)](),_0x384d4a=new _0x4915c5([_0x2415ce[0x0],_0x2415ce[0x1],_0x2415ce[0x2],_0x2415ce[0x3],_0x4c290c,_0x2289f5]),_0x33ab2f=_0x3a150e[_0x4787bc(0x250)](),_0x2f85b2=_0x3a150e[_0x4787bc(0x265)]&&(_0x33ab2f==null?void 0x0:_0x33ab2f[_0x4787bc(0x2ee)])===_0x5b17f8[_0x4787bc(0x25f)]?_0x33ab2f['ancestorTransform']['multiply'](_0x384d4a):_0x384d4a;_0x25e894[_0x4787bc(0x113)]({'width':_0x1d92ff,'height':_0x228c70});let _0x1eac13=_0x25e894['getConnectionSiteList']();for(let _0xc88e8b of _0x1eac13){let _0x56c4aa=_0xc88e8b['x']-_0x1d92ff/0x2,_0x2be00d=_0xc88e8b['y']-_0x228c70/0x2,_0x3b7519=_0x2f85b2['applyPoint']({'x':_0x56c4aa,'y':_0x2be00d}),_0x2f87e6=_0x3b7519['x'],_0x3514d0=_0x3b7519['y'],_0x2fb121=new Ji(_0x4787bc(0x1af)+_0x18b39c+'-'+_0xc88e8b['index'],{'left':_0x2f87e6-_0x179953[_0x4787bc(0x2ab)],'top':_0x3514d0-_0x179953[_0x4787bc(0x2ab)],'targetShapeId':_0x18b39c,'cxnIndex':_0xc88e8b['index'],'unitId':this[_0x4787bc(0x7b)],'subUnitId':this[_0x4787bc(0x21a)],'width':_0x179953['cxnPointRadius']*0x2,'height':_0x179953[_0x4787bc(0x2ab)]*0x2,'zIndex':_0x22719c+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x4787bc(0x102)](_0x2fb121),this[_0x4787bc(0x235)][_0x4787bc(0x2ec)](_0x2fb121,_0x22719c+0x2);}}[_0x4b851e(0x13f)](_0x6cd3a1){const _0x1041c6=_0x4b851e;let _0x566b86=null,_0x1f0ae8=0x1/0x0,_0x729cd6=null;for(let _0x2808e2 of this[_0x1041c6(0xb2)]){let _0x51f374=_0x2808e2[_0x1041c6(0x1d3)]+_0x179953[_0x1041c6(0x2ab)],_0xbfc991=_0x2808e2[_0x1041c6(0x292)]+_0x179953[_0x1041c6(0x2ab)],_0x486502=_0x6cd3a1['x']-_0x51f374,_0x36468b=_0x6cd3a1['y']-_0xbfc991,_0x3356ba=Math[_0x1041c6(0x110)](_0x486502*_0x486502+_0x36468b*_0x36468b);_0x3356ba<_0x1f0ae8&&(_0x1f0ae8=_0x3356ba,_0x566b86=_0x2808e2,_0x729cd6={'x':_0x51f374,'y':_0xbfc991});}let _0x111f4f=_0x1f0ae8<=0xa&&_0x566b86?_0x566b86[_0x1041c6(0x2a9)]()[_0x1041c6(0x21b)]:-0x1;if(_0x111f4f!==this['_highlightedSiteIndex']){for(let _0x4b0aa1 of this[_0x1041c6(0xb2)]){let _0x2281fd=_0x4b0aa1['getConnectionInfo']();_0x4b0aa1[_0x1041c6(0x2ad)](_0x2281fd['cxnIndex']===_0x111f4f);}this[_0x1041c6(0x232)]=_0x111f4f;}if(_0x1f0ae8<=0xa&&_0x566b86&&_0x729cd6){let _0x35405f=_0x566b86[_0x1041c6(0x2a9)](),_0x26ff22=this['_getConnectionSiteAngle'](_0x35405f['shapeId'],_0x35405f['cxnIndex']);return{'shapeId':_0x35405f[_0x1041c6(0x2e3)],'cxnIndex':_0x35405f[_0x1041c6(0x21b)],'unitId':_0x35405f['unitId'],'subUnitId':_0x35405f[_0x1041c6(0x20f)],'worldPoint':_0x729cd6,'angle':_0x26ff22};}return null;}['_getConnectionSiteAngle'](_0x25e26b,_0x4be6dd){const _0x197c1b=_0x4b851e;let _0x156f7e=this[_0x197c1b(0x80)][_0x197c1b(0x138)](this['_unitId'],this[_0x197c1b(0x21a)],_0x25e26b);if(!_0x156f7e)return 0x0;let _0x375864=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x197c1b(0x7b)],'subUnitId':this[_0x197c1b(0x21a)],'drawingId':_0x25e26b});if(!(_0x375864!=null&&_0x375864[_0x197c1b(0x1c1)]))return 0x0;let {width:_0x5ef820=0x0,height:_0xa704d3=0x0,flipX:_0x401d3b=!0x1,flipY:_0x4d279f=!0x1}=_0x375864[_0x197c1b(0x1c1)];_0x156f7e['updateContext']({'width':_0x5ef820,'height':_0xa704d3});let _0x43faf6=_0x156f7e[_0x197c1b(0x2dd)]()[_0x197c1b(0x188)](_0xe262f8=>_0xe262f8['index']===_0x4be6dd);if(!_0x43faf6)return 0x0;let _0x2b9c00=_0x43faf6[_0x197c1b(0x13a)]/0xea60;return _0x401d3b&&(_0x2b9c00=0xb4-_0x2b9c00),_0x4d279f&&(_0x2b9c00=-_0x2b9c00),_0x2b9c00=(_0x2b9c00%0x168+0x168)%0x168,_0x2b9c00;}['_clearConnectionSites'](){const _0x5d7354=_0x4b851e;for(let _0x36a8d3 of this[_0x5d7354(0xb2)])_0x36a8d3['dispose']();this[_0x5d7354(0xb2)]=[],this[_0x5d7354(0x232)]=-0x1;}['dispose'](){const _0xac6a7c=_0x4b851e;this[_0xac6a7c(0x1d0)](),super['dispose']();}};Yi=Z([X(0x1,_0x2e2475(_0x37a074)),X(0x2,_0x2e2475(_0x1644d5)),X(0x3,_0x2e2475(_0x1bfe6b))],Yi);let Xi=class extends _0x387ec6{constructor(_0x42206f,_0xa91823,_0x47fb28,_0x4b49e0,_0x5b6235){const _0x48b556=_0x4b851e;super(),this[_0x48b556(0x245)]=_0x42206f,this[_0x48b556(0x275)]=_0xa91823,this[_0x48b556(0x20d)]=_0x47fb28,this['_shapeService']=_0x4b49e0,this[_0x48b556(0x147)]=_0x5b6235,Y(this,'_copyInfo',void 0x0),this[_0x48b556(0x24d)](),this[_0x48b556(0x231)]();}get['_focusedDrawings'](){const _0x25cb7e=_0x4b851e;return this['_sheetDrawingService'][_0x25cb7e(0x20e)]();}[_0x4b851e(0x231)](){const _0x1519f0=_0x4b851e;this[_0x1519f0(0x147)][_0x1519f0(0x16a)](({fromUnitId:_0x618512,fromSubUnitId:_0x1585e5,toUnitId:_0x3295f3,toSubUnitId:_0x355afe,idMap:_0x4f84a4})=>{const _0x454b18=_0x1519f0;let _0x78b328=[],_0x4b9c0c=[];for(let [_0x5cd9be,_0x5cd302]of _0x4f84a4[_0x454b18(0x2f6)]()){let _0x1284fd=this['_shapeService'][_0x454b18(0x138)](_0x618512,_0x1585e5,_0x5cd9be);if(!_0x1284fd)continue;let _0x4fc689=_0x1284fd[_0x454b18(0x180)](),_0x4e820f=JSON[_0x454b18(0x1be)](JSON[_0x454b18(0x2bd)](_0x1284fd['getShapeData']()));if(_0x4e820f[_0x454b18(0x171)]){var _0x4cb3df,_0x2788d4;let _0x278be0=(_0x4cb3df=_0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)])==null?void 0x0:_0x4cb3df[_0x454b18(0x2e3)],_0x2560c7=(_0x2788d4=_0x4e820f[_0x454b18(0x171)]['to'])==null?void 0x0:_0x2788d4[_0x454b18(0x2e3)],_0x4a15ed=!_0x278be0||_0x4f84a4[_0x454b18(0x261)](_0x278be0),_0x5bd863=!_0x2560c7||_0x4f84a4[_0x454b18(0x261)](_0x2560c7);_0x4a15ed&&_0x278be0&&_0x4e820f['relation'][_0x454b18(0x125)]?_0x4e820f['relation'][_0x454b18(0x125)]={..._0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)],'shapeId':_0x4f84a4[_0x454b18(0x2c2)](_0x278be0)}:_0x4e820f[_0x454b18(0x171)][_0x454b18(0x125)]=void 0x0,_0x5bd863&&_0x2560c7&&_0x4e820f[_0x454b18(0x171)]['to']?_0x4e820f['relation']['to']={..._0x4e820f[_0x454b18(0x171)]['to'],'shapeId':_0x4f84a4[_0x454b18(0x2c2)](_0x2560c7)}:_0x4e820f[_0x454b18(0x171)]['to']=void 0x0;}_0x78b328['push']({'id':_0x16950c['id'],'params':{'unitId':_0x3295f3,'subUnitId':_0x355afe,'shapeId':_0x5cd302,'shapeType':_0x4fc689,'shapeData':_0x4e820f}}),_0x4b9c0c[_0x454b18(0x102)]({'id':_0x1d92ce['id'],'params':{'unitId':_0x3295f3,'subUnitId':_0x355afe,'shapeId':_0x5cd302}});}return{'redos':_0x78b328,'undos':_0x4b9c0c};});}[_0x4b851e(0x24d)](){const _0x3438a9=_0x4b851e;this['disposeWithMe'](this[_0x3438a9(0x275)][_0x3438a9(0xfe)]({'id':_0x3438a9(0x10f),'onBeforeCopy':(_0x28aa4b,_0x4e9d5f,_0x139c59,_0x349bd9)=>{const _0x25ef12=_0x3438a9;this['_copyInfo']=null;let _0x33e669=this[_0x25ef12(0x28f)];if(_0x33e669['length']){let _0x17ccab=_0x33e669[_0x25ef12(0x14e)](_0x38c2f2=>_0x38c2f2[_0x25ef12(0x14f)]===_0x514277[_0x25ef12(0xcb)]);if(_0x17ccab['length']===0x0)return;this['_copyInfo']={'unitId':_0x28aa4b,'subUnitId':_0x4e9d5f,'copyType':_0x349bd9,'drawings':_0x17ccab};}else this['_createCopyInfoByRange'](_0x28aa4b,_0x4e9d5f,_0x139c59,_0x349bd9);},'onPasteCells':(_0x53f21d,_0x309f16,_0x53205f,_0x5cee4b)=>{const _0xb03640=_0x3438a9;if(!this[_0xb03640(0x157)])return{'redos':[],'undos':[]};let {pasteType:_0x177c56}=_0x5cee4b;return _0x177c56===_0x5c3ee4['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x309f16,this[_0xb03640(0x157)]['copyType']===_0x3ad175[_0xb03640(0x221)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x49a28e=>this[_0x3438a9(0x157)]?this[_0x3438a9(0x79)](_0x49a28e,this['_copyInfo']['copyType']===_0x3ad175['CUT']):{'redos':[],'undos':[]}}));}[_0x4b851e(0x127)](_0x275318,_0x51396c,_0xab834d,_0x29e73c){const _0x55ec1b=_0x4b851e;let _0xc942e=this[_0x55ec1b(0x245)]['getSkeleton'](_0x275318,_0x51396c);if(!_0xc942e)return;let _0x23d468=_0x178278(_0xc942e,_0xab834d);if(!_0x23d468)return;let {startX:_0x2e0a4,endX:_0x448522,startY:_0x531d54,endY:_0x38ef67}=_0x23d468,_0x463653=this[_0x55ec1b(0x20d)][_0x55ec1b(0x2a3)](_0x275318,_0x51396c),_0x1df370=this['_focusedDrawings'][_0x55ec1b(0x227)]();for(let [_0xe0d587,_0x3c603d]of Object['entries'](_0x463653)){if(_0x3c603d[_0x55ec1b(0x14f)]!==_0x514277['DRAWING_SHAPE'])continue;let {transform:_0x291b05}=_0x3c603d;if(!_0x291b05)continue;let {left:_0x5eecd6=0x0,top:_0x4faf3d=0x0,width:_0x2ed9de=0x0,height:_0x151b01=0x0}=_0x291b05;_0x2e0a4<=_0x5eecd6&&_0x448522>=_0x5eecd6+_0x2ed9de&&_0x531d54<=_0x4faf3d&&_0x38ef67>=_0x4faf3d+_0x151b01&&_0x1df370[_0x55ec1b(0x102)](_0x3c603d);}_0x1df370[_0x55ec1b(0x8c)]>0x0&&(this['_copyInfo']={'unitId':_0x275318,'subUnitId':_0x51396c,'copyType':_0x29e73c,'copyRange':_0xab834d,'drawings':_0x1df370});}[_0x4b851e(0x79)](_0x52d070,_0x47319b){const _0x2e6ccb=_0x4b851e;let {unitId:_0x6176d,subUnitId:_0x5babed,range:_0x36ac99}=_0x52d070,_0x550fa5=this[_0x2e6ccb(0x245)][_0x2e6ccb(0x2c6)](_0x6176d,_0x5babed);if(!_0x550fa5)return{'redos':[],'undos':[]};let _0x2ae3f7=_0x1469fd(_0x36ac99),{unitId:_0x580e6f,subUnitId:_0x4eb137,copyRange:_0x19a5bc,drawings:_0x46790b}=this['_copyInfo'],_0x57c025=this[_0x2e6ccb(0x245)][_0x2e6ccb(0x2c6)](_0x580e6f,_0x4eb137);if(!_0x57c025)return{'redos':[],'undos':[]};let _0x3e11e5;if(!_0x19a5bc){let _0x416ef0=0x1/0x0,_0x332eb4=0x1/0x0;for(let _0xcbbc61 of _0x46790b){let {left:_0x982002=0x0,top:_0x53a59e=0x0}=_0xcbbc61[_0x2e6ccb(0x1c1)]??{};_0x982002<_0x416ef0&&(_0x416ef0=_0x982002),_0x53a59e<_0x332eb4&&(_0x332eb4=_0x53a59e);}_0x416ef0!==0x1/0x0&&_0x332eb4!==0x1/0x0&&(_0x3e11e5={'left':_0x416ef0,'top':_0x332eb4});}let _0x13cb00=new Map();if(!_0x47319b){for(let _0x498e0d of _0x46790b)_0x13cb00[_0x2e6ccb(0x177)](_0x498e0d[_0x2e6ccb(0x179)],_0x5b0a2a());}let _0x52aee8=[],_0x3271a8=[];for(let _0x5a8f0d of _0x46790b){let {drawingId:_0x2d4b2f,transform:_0x15e57a,sheetTransform:_0x4df73a}=_0x5a8f0d;if(!_0x15e57a||!_0x4df73a)continue;let _0x496be5=this[_0x2e6ccb(0x122)]({'transform':_0x15e57a,'sheetTransform':_0x4df73a},{'skeleton':_0x57c025,'range':_0x19a5bc},{'skeleton':_0x550fa5,'range':_0x2ae3f7},_0x3e11e5);if(_0x47319b){let {redos:_0x37f4b5,undos:_0x23d3e0}=this[_0x2e6ccb(0x266)]({'fromUnitId':_0x580e6f,'fromSubUnitId':_0x4eb137,'toUnitId':_0x6176d,'toSubUnitId':_0x5babed,'drawing':_0x5a8f0d,'newTransforms':_0x496be5});_0x52aee8[_0x2e6ccb(0x102)](..._0x37f4b5),_0x3271a8[_0x2e6ccb(0x102)](..._0x23d3e0);continue;}let {redos:_0x491324,undos:_0x13da35}=this[_0x2e6ccb(0xce)]({'toUnitId':_0x6176d,'toSubUnitId':_0x5babed,'drawing':_0x5a8f0d,'newTransforms':_0x496be5,'newDrawingId':_0x13cb00[_0x2e6ccb(0x2c2)](_0x2d4b2f),'idMap':_0x13cb00});_0x52aee8['push'](..._0x491324),_0x3271a8[_0x2e6ccb(0x102)](..._0x13da35);}return{'redos':_0x52aee8,'undos':_0x3271a8};}['_generateCutPasteMutations'](_0x98ec97){const _0x4e5201=_0x4b851e;let {fromUnitId:_0x5028bf,fromSubUnitId:_0xe479d6,toUnitId:_0x3db040,toSubUnitId:_0x233a81,drawing:_0x539085,newTransforms:_0x42d005}=_0x98ec97,_0x4b0668={..._0x539085,'unitId':_0x3db040,'subUnitId':_0x233a81,'transform':_0x42d005['transform'],'sheetTransform':_0x42d005[_0x4e5201(0x1b3)]};if(_0x3db040===_0x5028bf&&_0x233a81===_0xe479d6){let {redo:_0x1067b6,undo:_0x371d21,objects:_0x4e789d}=this[_0x4e5201(0x20d)][_0x4e5201(0xb0)]([_0x4b0668]);return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0x28e)],'op':_0x1067b6,'objects':_0x4e789d}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0x28e)],'op':_0x371d21,'objects':_0x4e789d}}]};}else{let _0x5d7a9e=this[_0x4e5201(0x20d)]['getBatchRemoveOp']([_0x539085]),_0x737e5d=this[_0x4e5201(0x20d)][_0x4e5201(0x284)]([_0x4b0668]),_0x620388=this['_shapeService']['getShapeModel'](_0x539085[_0x4e5201(0x2e2)],_0x539085[_0x4e5201(0x20f)],_0x539085[_0x4e5201(0x179)]);if(!_0x620388)return{'redos':[],'undos':[]};let _0x2c807d=_0x620388[_0x4e5201(0x180)](),_0x195e6e=JSON[_0x4e5201(0x1be)](JSON['stringify'](_0x620388['getShapeData']()));return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'type':_0x33c6ec[_0x4e5201(0xec)],'op':_0x5d7a9e[_0x4e5201(0x1da)],'objects':_0x5d7a9e[_0x4e5201(0x2dc)]}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'shapeId':_0x539085[_0x4e5201(0x179)]}},{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0xf8)],'op':_0x737e5d[_0x4e5201(0x1da)],'objects':_0x737e5d['objects']}},{'id':_0x16950c['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'shapeId':_0x539085[_0x4e5201(0x179)],'shapeType':_0x2c807d,'shapeData':_0x195e6e}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'type':_0x33c6ec[_0x4e5201(0xf8)],'op':_0x5d7a9e[_0x4e5201(0x1b6)],'objects':_0x5d7a9e[_0x4e5201(0x2dc)]}},{'id':_0x16950c['id'],'params':{'unitId':_0x5028bf,'subUnitId':_0xe479d6,'shapeId':_0x539085[_0x4e5201(0x179)],'shapeType':_0x2c807d,'shapeData':_0x195e6e}},{'id':_0x47767d['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'type':_0x33c6ec[_0x4e5201(0xec)],'op':_0x737e5d['undo'],'objects':_0x737e5d['objects']}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x3db040,'subUnitId':_0x233a81,'shapeId':_0x539085[_0x4e5201(0x179)]}}]};}}[_0x4b851e(0xce)](_0x4309fe){const _0x217575=_0x4b851e;let {toUnitId:_0x5885ef,toSubUnitId:_0x366dd2,drawing:_0x41c9e6,newTransforms:_0x518938,newDrawingId:_0x4b5129,idMap:_0x216e10}=_0x4309fe,_0x2677af={..._0x41c9e6,'unitId':_0x5885ef,'subUnitId':_0x366dd2,'drawingId':_0x4b5129,'transform':_0x518938[_0x217575(0x1c1)],'sheetTransform':_0x518938[_0x217575(0x1b3)]},{redo:_0xb989c8,undo:_0x38d0ef,objects:_0x32469e}=this['_sheetDrawingService']['getBatchAddOp']([_0x2677af]),_0x154d69=this[_0x217575(0x1eb)]['getShapeModel'](_0x41c9e6[_0x217575(0x2e2)],_0x41c9e6[_0x217575(0x20f)],_0x41c9e6[_0x217575(0x179)]);if(!_0x154d69)return{'redos':[],'undos':[]};let _0x11b2df=_0x154d69[_0x217575(0x180)](),_0x26af3f=JSON[_0x217575(0x1be)](JSON[_0x217575(0x2bd)](_0x154d69[_0x217575(0x88)]()));if(_0x26af3f[_0x217575(0x171)]){var _0x373044,_0xc7fcee;let _0x367a3d=(_0x373044=_0x26af3f[_0x217575(0x171)][_0x217575(0x125)])==null?void 0x0:_0x373044['shapeId'],_0x34a2ae=(_0xc7fcee=_0x26af3f[_0x217575(0x171)]['to'])==null?void 0x0:_0xc7fcee['shapeId'],_0x33ee29=!_0x367a3d||_0x216e10[_0x217575(0x261)](_0x367a3d),_0x1ad698=!_0x34a2ae||_0x216e10['has'](_0x34a2ae);_0x33ee29&&_0x367a3d&&_0x26af3f['relation'][_0x217575(0x125)]?_0x26af3f[_0x217575(0x171)][_0x217575(0x125)]={..._0x26af3f[_0x217575(0x171)][_0x217575(0x125)],'shapeId':_0x216e10[_0x217575(0x2c2)](_0x367a3d)}:_0x26af3f[_0x217575(0x171)][_0x217575(0x125)]=void 0x0,_0x1ad698&&_0x34a2ae&&_0x26af3f['relation']['to']?_0x26af3f[_0x217575(0x171)]['to']={..._0x26af3f[_0x217575(0x171)]['to'],'shapeId':_0x216e10[_0x217575(0x2c2)](_0x34a2ae)}:_0x26af3f[_0x217575(0x171)]['to']=void 0x0;}return{'redos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'type':_0x33c6ec[_0x217575(0xf8)],'op':_0xb989c8,'objects':_0x32469e}},{'id':_0x16950c['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'shapeId':_0x4b5129,'shapeType':_0x11b2df,'shapeData':_0x26af3f}}],'undos':[{'id':_0x47767d['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'type':_0x33c6ec[_0x217575(0xec)],'op':_0x38d0ef,'objects':_0x32469e}},{'id':_0x1d92ce['id'],'params':{'unitId':_0x5885ef,'subUnitId':_0x366dd2,'shapeId':_0x4b5129}}]};}['_updateTransform'](_0x845c59,_0x2276ba,_0x514b43,_0x14f840){const _0x39cc8b=_0x4b851e;let {range:_0x8bae7f,skeleton:_0x2eacbb}=_0x2276ba,{range:_0x29fc0a,skeleton:_0x438e36}=_0x514b43,{transform:_0x21869c,sheetTransform:_0x29adb6}=_0x845c59,_0x35ca3e={..._0x21869c};if(_0x8bae7f){let _0x30fcf2=_0x178278(_0x2eacbb,_0x8bae7f),_0x336354=_0x178278(_0x438e36,_0x29fc0a);if(_0x30fcf2&&_0x336354){let _0x33cc44=_0x336354[_0x39cc8b(0x12a)]-_0x30fcf2[_0x39cc8b(0x12a)],_0x277fc3=_0x336354[_0x39cc8b(0x8f)]-_0x30fcf2[_0x39cc8b(0x8f)];_0x35ca3e[_0x39cc8b(0x1d3)]=(_0x35ca3e[_0x39cc8b(0x1d3)]??0x0)+_0x33cc44,_0x35ca3e[_0x39cc8b(0x292)]=(_0x35ca3e[_0x39cc8b(0x292)]??0x0)+_0x277fc3;}}else{let _0x2a3349=_0x178278(_0x438e36,_0x29fc0a);if(_0x14f840&&_0x2a3349){let _0x2ff53f=(_0x35ca3e['left']??0x0)-_0x14f840[_0x39cc8b(0x1d3)],_0x445683=(_0x35ca3e[_0x39cc8b(0x292)]??0x0)-_0x14f840[_0x39cc8b(0x292)];_0x35ca3e[_0x39cc8b(0x1d3)]=_0x2a3349['startX']+_0x2ff53f,_0x35ca3e['top']=_0x2a3349[_0x39cc8b(0x8f)]+_0x445683;}else _0x35ca3e[_0x39cc8b(0x1d3)]=_0x2a3349==null?void 0x0:_0x2a3349[_0x39cc8b(0x12a)],_0x35ca3e[_0x39cc8b(0x292)]=_0x2a3349==null?void 0x0:_0x2a3349[_0x39cc8b(0x8f)];}return{'transform':_0x35ca3e,'sheetTransform':_0x1633a2(_0x35ca3e,_0x438e36)??_0x29adb6};}};Xi=Z([X(0x0,_0x2e2475(_0x2d0b38)),X(0x1,_0x2e2475(_0xb2e7a2)),X(0x2,_0x2e2475(_0x460b38)),X(0x3,_0x2e2475(_0x1bfe6b)),X(0x4,_0x2e2475(_0x3b1dfb))],Xi);var Zi=class extends _0x25aea5{constructor(_0x1fef9d,_0x3c9abc){const _0x52eb76=_0x4b851e;super(_0x1fef9d,_0x3c9abc),Y(this,_0x52eb76(0xf4),null),Y(this,_0x52eb76(0xe3),null),Y(this,_0x52eb76(0x7b),null),Y(this,_0x52eb76(0x21a),null),Y(this,_0x52eb76(0x11f),!0x1),_0x3c9abc&&this[_0x52eb76(0x1ec)](_0x3c9abc);}[_0x4b851e(0x176)](){const _0x3924d0=_0x4b851e;return{'unitId':this['_unitId'],'subUnitId':this[_0x3924d0(0x21a)],'drawingId':this['_shapeId']};}['setShapeProps'](_0x4afca2){const _0x590f72=_0x4b851e;_0x4afca2[_0x590f72(0x2e3)]!==void 0x0&&(this[_0x590f72(0xf4)]=_0x4afca2[_0x590f72(0x2e3)]),_0x4afca2[_0x590f72(0x2e2)]!==void 0x0&&(this[_0x590f72(0x7b)]=_0x4afca2[_0x590f72(0x2e2)]),_0x4afca2[_0x590f72(0x20f)]!==void 0x0&&(this[_0x590f72(0x21a)]=_0x4afca2['subUnitId']),_0x4afca2[_0x590f72(0x1b5)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x4afca2[_0x590f72(0x1b5)]),this[_0x590f72(0x1ab)]({'width':_0x4afca2['width'],'height':_0x4afca2[_0x590f72(0x1ff)]});}[_0x4b851e(0x161)](_0x2c763b){const _0x2f9034=_0x4b851e;_0xdb102c[_0x2f9034(0x106)](_0x2c763b,{'radius':_0x179953['cxnPointRadius'],'fill':_0x179953[_0x2f9034(0x13b)],'stroke':_0x179953['cxnPointStroke'],'strokeWidth':_0x179953['cxnPointStrokeWidth'],'evented':!0x0});}};let Qi=class extends _0x387ec6{constructor(_0x17a327,_0x367c64,_0x4982f8,_0x50b761,_0x58d726,_0x50b9db,_0x2a722e,_0x4dd44f){const _0x618575=_0x4b851e;super(),this[_0x618575(0x26e)]=_0x17a327,this[_0x618575(0x13c)]=_0x367c64,this['_renderManagerService']=_0x4982f8,this['_drawingManagerService']=_0x50b761,this[_0x618575(0x25c)]=_0x58d726,this[_0x618575(0x80)]=_0x50b9db,this[_0x618575(0x182)]=_0x2a722e,this[_0x618575(0x13e)]=_0x4dd44f,Y(this,'_activeShapeId',void 0x0),Y(this,'_unitId',void 0x0),Y(this,'_subUnitId',void 0x0),Y(this,'_connectorObjects',[]),Y(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),Y(this,_0x618575(0xf7),void 0x0),Y(this,'_isConnecting',!0x1),Y(this,_0x618575(0x8b),!0x1),Y(this,_0x618575(0x2e7),!0x1),Y(this,'_cxtHandlerPointerMove',void 0x0),Y(this,_0x618575(0xe2),void 0x0),Y(this,_0x618575(0x2f9),null),this[_0x618575(0xd8)]();}[_0x4b851e(0xd8)](){const _0x462303=_0x4b851e;this[_0x462303(0xdb)](),this[_0x462303(0x1de)]();}['_getDrawingRect'](){const _0x575eeb=_0x4b851e;if(!this[_0x575eeb(0x7b)]||!this[_0x575eeb(0x21a)]||!this['_activeShapeId'])return;let _0x1e1e79={'unitId':this[_0x575eeb(0x7b)],'subUnitId':this[_0x575eeb(0x21a)],'drawingId':this['_activeShapeId']},{transform:_0x2de1d2}=this['_drawingManagerService'][_0x575eeb(0x2cc)](_0x1e1e79);if(_0x2de1d2)return{'left':_0x2de1d2[_0x575eeb(0x1d3)]||0x0,'top':_0x2de1d2[_0x575eeb(0x292)]||0x0,'width':_0x2de1d2[_0x575eeb(0x193)]||0x0,'height':_0x2de1d2[_0x575eeb(0x1ff)]||0x0,'flipX':_0x2de1d2[_0x575eeb(0x2ae)]||!0x1,'flipY':_0x2de1d2[_0x575eeb(0x1c8)]||!0x1,'angle':_0x2de1d2['angle']};}[_0x4b851e(0x211)](){const _0x4caf05=_0x4b851e;if(this['_unitId']===void 0x0||this[_0x4caf05(0x21a)]===void 0x0||this[_0x4caf05(0x146)]===void 0x0)return;let _0x4f47a5=this[_0x4caf05(0x1bb)]['getRenderUnitById'](this['_unitId']);if(!_0x4f47a5||!_0x4f47a5[_0x4caf05(0x25d)](_0x58befb)[_0x4caf05(0xab)]())return;let {scene:_0x45fb1e}=_0x4f47a5,_0x464733=this[_0x4caf05(0x9b)]();if(!_0x464733)return;let _0x3bdab4=this[_0x4caf05(0x80)][_0x4caf05(0x138)](this[_0x4caf05(0x7b)],this[_0x4caf05(0x21a)],this[_0x4caf05(0x146)]);if(!_0x3bdab4||!_0x47e56f(_0x3bdab4[_0x4caf05(0x180)]()))return;let _0x3a1175=_0x3bdab4[_0x4caf05(0x2e0)]();if(_0x3a1175['length']<0x2)return;let _0x2ccb0d=new _0x27802a(_0x464733),_0x20254c=_0x3a1175[0x0],_0x4319d8=_0x3a1175[_0x3a1175[_0x4caf05(0x8c)]-0x1],_0x1bb88c=_0x2ccb0d['localToWorld'](_0x20254c),_0x544b16=_0x2ccb0d['localToWorld'](_0x4319d8);this[_0x4caf05(0x8e)](_0x45fb1e,{..._0x1bb88c},!0x0),this[_0x4caf05(0x8e)](_0x45fb1e,{..._0x544b16},!0x1);}[_0x4b851e(0x8e)](_0x25110,_0x2d169f,_0x5319c9){const _0x47c077=_0x4b851e;if(this[_0x47c077(0x146)]===void 0x0||this['_unitId']===void 0x0||this[_0x47c077(0x21a)]===void 0x0)return;let _0x18e354=_0x47c077(0x105)+this[_0x47c077(0x7b)]+'-'+this[_0x47c077(0x21a)]+'-'+this[_0x47c077(0x146)]+'-'+(_0x5319c9?_0x47c077(0x139):_0x47c077(0x2ef)),_0x4dbdbc=_0x25110[_0x47c077(0x2cb)](_0x18e354);if(_0x4dbdbc){_0x4dbdbc[_0x47c077(0x1ab)]({'left':_0x2d169f['x']-_0x179953[_0x47c077(0x2ab)],'top':_0x2d169f['y']-_0x179953[_0x47c077(0x2ab)]});return;}let _0x31aa3e=new Zi(_0x18e354,{'left':_0x2d169f['x']-_0x179953[_0x47c077(0x2ab)],'top':_0x2d169f['y']-_0x179953['cxnPointRadius'],'shapeId':this[_0x47c077(0x146)],'unitId':this[_0x47c077(0x7b)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x5319c9,'width':_0x179953[_0x47c077(0x2ab)]*0x2,'height':_0x179953[_0x47c077(0x2ab)]*0x2,'zIndex':_0x22719c+0x1,'evented':!0x0});this[_0x47c077(0x243)][_0x47c077(0x102)](_0x31aa3e),this[_0x47c077(0x23f)](_0x31aa3e,_0x25110,_0x5319c9),_0x25110[_0x47c077(0x2ec)](_0x31aa3e,_0x22719c+0x1);}[_0x4b851e(0x10e)](_0x585cbb,_0x591681){const _0x272455=_0x4b851e;var _0x27f606;let _0x1e09a0={'x':0x0,'y':0x0};if(!_0x585cbb||!_0x591681)return _0x1e09a0;let _0x329505=this['_renderManagerService'][_0x272455(0x75)](_0x585cbb);if(!_0x329505||!_0x329505['with'](_0x58befb)[_0x272455(0x2c6)](_0x591681))return _0x1e09a0;let _0x23af16=_0x329505[_0x272455(0x25d)](_0x51344e),_0xedcd5f=_0x23af16==null?void 0x0:_0x23af16[_0x272455(0x209)]();if(!_0xedcd5f)return _0x1e09a0;let _0x533679=(_0x27f606=this[_0x272455(0x25c)][_0x272455(0x1cd)](_0x585cbb))==null?void 0x0:_0x27f606[_0x272455(0x136)](_0x591681);if(!_0x533679)return _0x1e09a0;let _0x5328a0=_0x23e0fe(_0xedcd5f[_0x272455(0xde)],_0xedcd5f['sheetViewStartColumn'],_0x329505['scene'],_0x533679);return _0x5328a0?{'x':_0x5328a0[_0x272455(0x247)],'y':_0x5328a0[_0x272455(0x1cc)]}:_0x1e09a0;}['_getZoomRatio'](_0x47b2ce,_0x4942f8){const _0x4ac670=_0x4b851e;var _0x18660a;let _0x17f358=(_0x18660a=this['_univerInstanceService'][_0x4ac670(0x1cd)](_0x47b2ce))==null?void 0x0:_0x18660a['getSheetBySheetId'](_0x4942f8);return(_0x17f358==null?void 0x0:_0x17f358[_0x4ac670(0x189)]())??0x1;}[_0x4b851e(0x19b)](_0x693c87,_0x187c59,_0x15a08d,_0x588b2e,_0x471708){const _0x5564c5=_0x4b851e;this[_0x5564c5(0xba)][_0x5564c5(0x22e)](),this[_0x5564c5(0xe2)][_0x5564c5(0x22e)](),this[_0x5564c5(0x182)]['refreshAdjustControls']();let _0x358637=this[_0x5564c5(0x2f9)];this[_0x5564c5(0x13e)]['endConnectionDetection']();let _0x4609bd=this['_getScrollInfo'](this[_0x5564c5(0x7b)],this['_subUnitId']),_0x17edb7=this[_0x5564c5(0x21e)](this['_unitId'],this[_0x5564c5(0x21a)]),_0x1f80ae={'x':_0x15a08d[_0x5564c5(0x1b4)]/_0x17edb7+_0x4609bd['x'],'y':_0x15a08d[_0x5564c5(0x1e7)]/_0x17edb7+_0x4609bd['y']},_0x334f9d=_0x358637?_0x358637['worldPoint']:_0x1f80ae,_0x129b2a=_0x588b2e?this[_0x5564c5(0xf7)][_0x5564c5(0x2f8)]():this['_activeShapeModel'][_0x5564c5(0x153)](),_0xdfd82=this[_0x5564c5(0xf7)]['getShapeType']();_0x129b2a?this['_handleConnectedEndpointPointerUp'](_0x129b2a,_0x334f9d,_0x588b2e,_0x358637,_0x471708):this['_handleFreeEndpointPointerUp'](_0x187c59,_0x334f9d,_0x588b2e,_0x358637,_0x471708,_0xdfd82),this[_0x5564c5(0x1fe)]=!0x1,this['_hasReset']=!0x1,this[_0x5564c5(0x2f9)]=null,_0x693c87[_0x5564c5(0x242)]();}['_handleFreeEndpointPointerUp'](_0x4563f7,_0x289e7d,_0xb95233,_0x4fc844,_0x320e24,_0x447257){const _0x137fe1=_0x4b851e;let _0x4f0def=_0x447257===_0x3e1064[_0x137fe1(0x2af)]||_0x447257===_0x3e1064[_0x137fe1(0x141)],_0x420bcc=_0xb95233?_0x289e7d:_0x4563f7,_0x3e1273=_0xb95233?_0x4563f7:_0x289e7d,_0x85b154=this[_0x137fe1(0xf7)][_0x137fe1(0x2e0)](),_0x34dbc0=_0x446dc5(this['_activeShapeModel'][_0x137fe1(0x180)]()),_0xa1d5b4=_0x27802a['getBentTypeFromPoints'](_0x85b154,_0x34dbc0),_0x3146db=_0x4f0def?_0x27802a[_0x137fe1(0x10c)](_0x420bcc,_0x3e1273):_0x27802a[_0x137fe1(0x23c)](_0x4563f7,_0x289e7d,_0xb95233,_0xa1d5b4);_0x4fc844?this[_0x137fe1(0xbc)](_0x3146db,_0x4fc844,_0xb95233,_0x320e24):this[_0x137fe1(0x194)](_0x3146db,_0x320e24);}[_0x4b851e(0x144)](_0x16b9b8,_0x51814d,_0x442fe5,_0xfee3ee,_0x12e017){const _0x5d0543=_0x4b851e;let _0x4ea9e5=this[_0x5d0543(0x264)](_0x16b9b8);if(!_0x4ea9e5)return;let _0xc85cc6=_0xfee3ee?_0xfee3ee['angle']:this[_0x5d0543(0x29a)](_0x4ea9e5[_0x5d0543(0x282)],_0x51814d),_0x20ede6;if(_0xfee3ee){let _0x34c658=this['_drawingManagerService'][_0x5d0543(0x2cc)]({'unitId':_0xfee3ee[_0x5d0543(0x2e2)],'subUnitId':_0xfee3ee[_0x5d0543(0x20f)],'drawingId':_0xfee3ee[_0x5d0543(0x2e3)]});if(_0x34c658!=null&&_0x34c658[_0x5d0543(0x1c1)]){let {left:_0x12e1a4=0x0,top:_0x33c07f=0x0,width:_0x445c80=0x0,height:_0x1a561d=0x0,angle:_0x2f73b2}=_0x34c658[_0x5d0543(0x1c1)];_0x20ede6=_0x16b583({'left':_0x12e1a4,'top':_0x33c07f,'width':_0x445c80,'height':_0x1a561d},_0x2f73b2||0x0);}else _0x20ede6={'left':_0x51814d['x'],'top':_0x51814d['y'],'width':0x0,'height':0x0};}else _0x20ede6={'left':_0x51814d['x'],'top':_0x51814d['y'],'width':0x0,'height':0x0};let _0x2e3396={'point':_0x51814d,'angle':_0xc85cc6,'bounds':_0x20ede6},_0x1ae33d=_0x442fe5?_0x2e3396:_0x4ea9e5,_0x56bfaf=_0x442fe5?_0x4ea9e5:_0x2e3396,_0x5031bf=this['_activeShapeModel'][_0x5d0543(0x180)](),_0x52eaa7=_0x4b9feb(_0x1ae33d,_0x56bfaf,_0x5031bf);this[_0x5d0543(0xf7)][_0x5d0543(0x156)]();let _0xda56be=_0x1fcdb8(_0x52eaa7,_0x5031bf);_0xfee3ee?this[_0x5d0543(0xa3)](_0xda56be,_0xfee3ee,_0x16b9b8,_0x442fe5,_0x12e017):this[_0x5d0543(0x28b)](_0xda56be,_0x16b9b8,_0x442fe5,_0x12e017);}[_0x4b851e(0xbc)](_0x34f014,_0x4cce6b,_0x173bb7,_0xec9a67){const _0x66e8f3=_0x4b851e;let _0x361899=this['_activeShapeModel'][_0x66e8f3(0x88)]()[_0x66e8f3(0x171)],_0x4b73ef={..._0x361899},_0x12e14d={'shapeId':_0x4cce6b['shapeId'],'cxnIndex':_0x4cce6b[_0x66e8f3(0x21b)]};_0x173bb7?_0x4b73ef[_0x66e8f3(0x125)]=_0x12e14d:_0x4b73ef['to']=_0x12e14d;let _0xf4a0fa=this[_0x66e8f3(0xf7)][_0x66e8f3(0x180)](),_0x4e12b4=_0x1fcdb8(_0x34f014[_0x66e8f3(0x2eb)],_0xf4a0fa),_0x2647a6={'unitId':this[_0x66e8f3(0x7b)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x193)],'height':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1ff)],'left':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1d3)],'top':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x292)],'flipX':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x2ae)]||!0x1,'flipY':_0x34f014[_0x66e8f3(0x15f)][_0x66e8f3(0x1c8)]||!0x1,'newAdjustValues':_0x4e12b4['adjustValues'],'oldAdjustValues':_0xec9a67,'oldRelation':_0x361899,'newRelation':_0x4b73ef,'newLineType':_0x4e12b4['lineType'],'oldLineType':_0xf4a0fa};this['_commandService'][_0x66e8f3(0x163)](_0x3ac18a['id'],_0x2647a6);}[_0x4b851e(0x194)](_0x3db0d9,_0x54ac90){const _0x2808ef=_0x4b851e;let _0x11fea7=this[_0x2808ef(0xf7)][_0x2808ef(0x180)](),_0x40456b=_0x1fcdb8(_0x3db0d9[_0x2808ef(0x2eb)],_0x11fea7),_0x4619e6={'unitId':this[_0x2808ef(0x7b)],'subUnitId':this[_0x2808ef(0x21a)],'shapeId':this[_0x2808ef(0x146)],'width':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x193)],'height':_0x3db0d9[_0x2808ef(0x15f)]['height'],'left':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x1d3)],'top':_0x3db0d9['worldRect'][_0x2808ef(0x292)],'flipX':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x2ae)]||!0x1,'flipY':_0x3db0d9['worldRect']['flipY']||!0x1,'angle':_0x3db0d9[_0x2808ef(0x15f)][_0x2808ef(0x2a4)]||0x0,'newAdjustValues':_0x40456b[_0x2808ef(0x1e5)],'oldAdjustValues':_0x54ac90,'newLineType':_0x40456b[_0x2808ef(0x281)],'oldLineType':_0x11fea7};this[_0x2808ef(0x13c)][_0x2808ef(0x163)](_0x7c6eda['id'],_0x4619e6);}[_0x4b851e(0xa3)](_0x8f167d,_0x51a47d,_0x2db3b1,_0xedb3ea,_0xf30f90){const _0x3ad51c=_0x4b851e;let _0x121797=this['_activeShapeModel'][_0x3ad51c(0x88)]()['relation'],_0x2f3021={..._0x121797},_0x1ce143={'shapeId':_0x51a47d[_0x3ad51c(0x2e3)],'cxnIndex':_0x51a47d[_0x3ad51c(0x21b)]};_0xedb3ea?(_0x2f3021[_0x3ad51c(0x125)]=_0x1ce143,_0x2f3021['to']=_0x2db3b1):(_0x2f3021[_0x3ad51c(0x125)]=_0x2db3b1,_0x2f3021['to']=_0x1ce143);let _0x31c75d={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x3ad51c(0x146)],'width':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x193)],'height':_0x8f167d[_0x3ad51c(0x15f)]['height'],'left':_0x8f167d[_0x3ad51c(0x15f)]['left'],'top':_0x8f167d['worldRect'][_0x3ad51c(0x292)],'flipX':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x2ae)]||!0x1,'flipY':_0x8f167d[_0x3ad51c(0x15f)][_0x3ad51c(0x1c8)]||!0x1,'oldAdjustValues':_0xf30f90,'newAdjustValues':_0x8f167d[_0x3ad51c(0x1e5)],'newLineType':_0x8f167d[_0x3ad51c(0x281)],'rotation':_0x8f167d[_0x3ad51c(0x17c)],'oldRelation':_0x121797,'newRelation':_0x2f3021};this[_0x3ad51c(0x13c)][_0x3ad51c(0x163)](_0x3ac18a['id'],_0x31c75d);}[_0x4b851e(0x28b)](_0x31f9a9,_0x10a1c3,_0x6803c6,_0x121db5){const _0x315c97=_0x4b851e;let _0x5cb257=this[_0x315c97(0xf7)][_0x315c97(0x88)]()[_0x315c97(0x171)],_0x411232={};_0x6803c6?(_0x411232['to']=_0x10a1c3,_0x411232['from']=void 0x0):(_0x411232[_0x315c97(0x125)]=_0x10a1c3,_0x411232['to']=void 0x0);let _0x9c9bad={'unitId':this[_0x315c97(0x7b)],'subUnitId':this[_0x315c97(0x21a)],'connectorShapeId':this[_0x315c97(0x146)],'width':_0x31f9a9[_0x315c97(0x15f)]['width'],'height':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x1ff)],'left':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x1d3)],'top':_0x31f9a9['worldRect'][_0x315c97(0x292)],'flipX':_0x31f9a9[_0x315c97(0x15f)][_0x315c97(0x2ae)]||!0x1,'flipY':_0x31f9a9['worldRect'][_0x315c97(0x1c8)]||!0x1,'oldAdjustValues':_0x121db5,'newAdjustValues':_0x31f9a9[_0x315c97(0x1e5)],'newLineType':_0x31f9a9['lineType'],'rotation':_0x31f9a9[_0x315c97(0x17c)],'oldRelation':_0x5cb257,'newRelation':_0x411232};this['_commandService'][_0x315c97(0x163)](_0x3ac18a['id'],_0x9c9bad);}[_0x4b851e(0x23f)](_0x4e2ddc,_0x3dcd4d,_0x34ea3d){const _0x56f85d=_0x4b851e;this['disposeWithMe'](_0x52399e(_0x4e2ddc['onPointerDown$'][_0x56f85d(0x26b)]((_0x367d41,_0x1cd3bb)=>{const _0x708a41=_0x56f85d;let _0x16114c=_0x4e2ddc['getDrawingSearch']();if(this[_0x708a41(0xf7)]=this['_sheetsShapeService'][_0x708a41(0x138)](_0x16114c['unitId'],_0x16114c[_0x708a41(0x20f)],_0x16114c[_0x708a41(0x179)]),!this[_0x708a41(0xf7)])return;let _0x149bae={};this[_0x708a41(0xf7)][_0x708a41(0x18d)]()[_0x708a41(0xd7)](_0x403071=>{const _0x1d072f=_0x708a41;let _0x498690=this[_0x1d072f(0xf7)][_0x1d072f(0x1b1)](_0x403071);_0x498690!==void 0x0&&(_0x149bae[_0x403071]=_0x498690);});let _0x6283e2=this[_0x708a41(0x9b)]();if(!_0x6283e2)return;this[_0x708a41(0xbd)]={..._0x6283e2};let _0x447ad7=new _0x27802a(this[_0x708a41(0xbd)]),_0x5b1bb0=_0x4d60ae({'unitId':this['_unitId'],'subUnitId':this[_0x708a41(0x21a)],'drawingId':this[_0x708a41(0x146)]}),_0x4c13da=_0x3dcd4d[_0x708a41(0x2cb)](_0x5b1bb0);this[_0x708a41(0x1fe)]=!0x0,_0x3dcd4d['disableObjectsEvent'](),this[_0x708a41(0x13e)][_0x708a41(0x22d)](_0x3dcd4d,this[_0x708a41(0x7b)],this[_0x708a41(0x21a)],this[_0x708a41(0x146)]),this[_0x708a41(0x2f9)]=null;let _0x5f09ae=this[_0x708a41(0xf7)][_0x708a41(0x2e0)](),_0x5698a7=_0x5f09ae[0x0],_0x6ce914=_0x5f09ae[_0x5f09ae[_0x708a41(0x8c)]-0x1],_0x14a703=_0x34ea3d?_0x447ad7[_0x708a41(0x185)](_0x6ce914):_0x447ad7[_0x708a41(0x185)](_0x5698a7);this[_0x708a41(0xba)]=_0x3dcd4d[_0x708a41(0xe1)][_0x708a41(0x26b)]((_0x99bb7d,_0x4ab722)=>{const _0x17576e=_0x708a41;if(!this['_isConnecting']||!this[_0x17576e(0xf7)])return;this[_0x17576e(0x2e7)]||=(this['_sheetShapeAdjustController'][_0x17576e(0x109)](),this[_0x17576e(0xf7)][_0x17576e(0x11e)](),!0x0);let _0x1aef3d=this['_getScrollInfo'](this['_unitId'],this[_0x17576e(0x21a)]),_0x57d4af=this[_0x17576e(0x21e)](this[_0x17576e(0x7b)],this['_subUnitId']),_0x3b8137={'x':_0x99bb7d[_0x17576e(0x1b4)]/_0x57d4af+_0x1aef3d['x'],'y':_0x99bb7d[_0x17576e(0x1e7)]/_0x57d4af+_0x1aef3d['y']},_0x70d9c4=this[_0x17576e(0x13e)]['updateConnectionDetection'](_0x3b8137);if(_0x70d9c4){let {shapeId:_0x453ab8,unitId:_0x1c1280,subUnitId:_0x443e08}=_0x70d9c4;if(_0x453ab8&&_0x1c1280&&_0x443e08){let _0x5a5379=_0x4d60ae({'unitId':_0x1c1280,'subUnitId':_0x443e08,'drawingId':_0x453ab8});_0x70d9c4[_0x17576e(0x2a4)]=(_0x3dcd4d[_0x17576e(0x2cb)](_0x5a5379)[_0x17576e(0x2a4)]||0x0)+_0x70d9c4[_0x17576e(0x2a4)];}}this[_0x17576e(0x2f9)]=_0x70d9c4;let _0x59ea1a=_0x34ea3d?this[_0x17576e(0xf7)]['getEndConnectInfo']():this[_0x17576e(0xf7)][_0x17576e(0x153)]();if(_0x59ea1a){this[_0x17576e(0x1a3)](_0x59ea1a,_0x3b8137,_0x34ea3d,_0x4c13da,_0x4e2ddc);return;}this[_0x17576e(0x1f6)](_0x3b8137,_0x14a703,_0x34ea3d,_0x4c13da,_0x4e2ddc);}),this[_0x708a41(0xe2)]=_0x3dcd4d[_0x708a41(0x21c)][_0x708a41(0x26b)]((_0x47c49c,_0x71285b)=>{const _0xabf3ec=_0x708a41;this[_0xabf3ec(0x19b)](_0x3dcd4d,_0x14a703,_0x47c49c,_0x34ea3d,_0x149bae);}),_0x1cd3bb[_0x708a41(0x2f2)]();})));}[_0x4b851e(0x230)](_0x69ce11,_0x2fda26,_0x4c0809){const _0x3ea097=_0x4b851e;let _0x1a0e9b=this['_sheetsShapeService']['getBasicShapeRelation'](_0x69ce11,_0x2fda26,_0x4c0809);if(!_0x1a0e9b||_0x1a0e9b['length']===0x0)return;let _0x14cca8=this[_0x3ea097(0x1bb)][_0x3ea097(0x75)](_0x69ce11);if(!_0x14cca8)return;let {scene:_0x53825e}=_0x14cca8;for(let _0x41df9c of _0x1a0e9b){let _0xb1143c=_0x41df9c[_0x3ea097(0x268)],_0x395e29=this[_0x3ea097(0x80)][_0x3ea097(0x138)](_0x69ce11,_0x2fda26,_0xb1143c);if(!_0x395e29)continue;let _0x524586=_0x395e29[_0x3ea097(0x153)](),_0x4ccbda=_0x395e29[_0x3ea097(0x2f8)](),_0x3971b3=(_0x524586==null?void 0x0:_0x524586[_0x3ea097(0x2e3)])===_0x4c0809,_0x1f0565=_0x4d60ae({'unitId':_0x69ce11,'subUnitId':_0x2fda26,'drawingId':_0xb1143c}),_0x3a4484=_0x53825e[_0x3ea097(0x2cb)](_0x1f0565);if(!_0x3a4484)continue;let _0x421a14=this[_0x3ea097(0x9d)][_0x3ea097(0x2cc)]({'unitId':_0x69ce11,'subUnitId':_0x2fda26,'drawingId':_0xb1143c});_0x421a14!=null&&_0x421a14['transform']&&(_0x524586&&_0x4ccbda?this[_0x3ea097(0x2f4)](_0x69ce11,_0x2fda26,_0xb1143c,_0x395e29,_0x524586,_0x4ccbda,_0x3a4484):this[_0x3ea097(0x1f2)](_0x69ce11,_0x2fda26,_0xb1143c,_0x395e29,_0x3971b3?_0x524586:_0x4ccbda,_0x3971b3,_0x421a14,_0x3a4484));}}[_0x4b851e(0x2f4)](_0x498d92,_0x277609,_0x446bd8,_0x1cecc2,_0x11e8a5,_0x110ff0,_0x20f233){const _0x5dc37e=_0x4b851e;let _0x3da628=this[_0x5dc37e(0x7b)],_0x10ac32=this[_0x5dc37e(0x21a)];this[_0x5dc37e(0x7b)]=_0x498d92,this['_subUnitId']=_0x277609;let _0x1a43c5=this['_getConnectPointInfo'](_0x11e8a5),_0x470717=this[_0x5dc37e(0x264)](_0x110ff0);if(this[_0x5dc37e(0x7b)]=_0x3da628,this[_0x5dc37e(0x21a)]=_0x10ac32,!_0x1a43c5||!_0x470717)return;let _0x3ad03a=_0x1cecc2['getShapeType'](),_0x25cd3f=_0x4b9feb(_0x1a43c5,_0x470717,_0x3ad03a);_0x25cd3f&&_0x1cecc2[_0x5dc37e(0xac)](_0x25cd3f);let _0x34f979=_0x1fcdb8(_0x25cd3f,_0x3ad03a);_0x34f979[_0x5dc37e(0x281)]!==_0x3ad03a&&_0x1cecc2[_0x5dc37e(0x23e)](_0x34f979[_0x5dc37e(0x281)]),_0x1cecc2[_0x5dc37e(0x11e)]();for(let [_0x27befd,_0x1086c0]of Object[_0x5dc37e(0x2f6)](_0x34f979[_0x5dc37e(0x1e5)]))_0x1cecc2['setAdjustValueByName'](_0x27befd,_0x1086c0);_0x1cecc2['updateContext']({'width':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x193)],'height':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1ff)]}),_0x20f233[_0x5dc37e(0x1ab)]({'flipX':_0x34f979['worldRect'][_0x5dc37e(0x2ae)],'flipY':_0x34f979['worldRect']['flipY'],'left':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1d3)],'top':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x292)],'width':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x193)],'height':_0x34f979[_0x5dc37e(0x15f)][_0x5dc37e(0x1ff)],'angle':_0x34f979[_0x5dc37e(0x17c)]}),_0x1cecc2[_0x5dc37e(0x156)]();}[_0x4b851e(0x1f2)](_0x1a5adc,_0x3e67cb,_0x3368b2,_0x43972e,_0x19bb2f,_0x1740aa,_0x3b22ff,_0x20ab91){const _0x3513ea=_0x4b851e;let _0x3e4571=this[_0x3513ea(0x7b)],_0x468a7c=this[_0x3513ea(0x21a)];this['_unitId']=_0x1a5adc,this['_subUnitId']=_0x3e67cb;let _0x596421=this['_getConnectPointInfo'](_0x19bb2f);if(this[_0x3513ea(0x7b)]=_0x3e4571,this[_0x3513ea(0x21a)]=_0x468a7c,!_0x596421)return;let {left:_0x23ccbf=0x0,top:_0x2daa92=0x0,width:_0x4ebdce=0x0,height:_0x3dc3e2=0x0,flipX:_0x2be91f=!0x1,flipY:_0x3ef7dd=!0x1}=_0x3b22ff[_0x3513ea(0x1c1)],_0xa45759=_0x43972e[_0x3513ea(0x2e0)]();if(_0xa45759[_0x3513ea(0x8c)]<0x2)return;let _0x4f835f=new _0x27802a({'left':_0x23ccbf,'top':_0x2daa92,'width':_0x4ebdce,'height':_0x3dc3e2,'flipX':_0x2be91f,'flipY':_0x3ef7dd}),_0x3ef221=_0x1740aa?_0xa45759[_0xa45759['length']-0x1]:_0xa45759[0x0],_0x42f397=_0x4f835f[_0x3513ea(0x185)](_0x3ef221),_0x4cdec3=_0x27802a[_0x3513ea(0x23c)](_0x42f397,_0x596421[_0x3513ea(0x282)],!_0x1740aa);_0x20ab91[_0x3513ea(0x1ab)]({'flipX':_0x4cdec3['worldRect'][_0x3513ea(0x2ae)],'flipY':_0x4cdec3[_0x3513ea(0x15f)]['flipY'],'left':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x1d3)],'top':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x292)],'width':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x193)],'height':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x1ff)],'angle':_0x4cdec3[_0x3513ea(0x15f)][_0x3513ea(0x2a4)]}),_0x20ab91[_0x3513ea(0x2b3)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x5bac0d=_0x4b851e;this[_0x5bac0d(0x243)][_0x5bac0d(0x8c)]!==0x0&&(this['_connectorObjects'][_0x5bac0d(0xd7)](_0x445432=>{const _0x18af78=_0x5bac0d;_0x445432[_0x18af78(0x254)]();}),this['_connectorObjects']=[]);}[_0x4b851e(0x1de)](){const _0xe1da4b=_0x4b851e;let _0x1aaf43=this['_univerInstanceService'][_0xe1da4b(0x295)](_0x2ce572[_0xe1da4b(0x158)]);this[_0xe1da4b(0x183)](_0x1aaf43[_0xe1da4b(0x26c)](_0x20fbec(_0x5bfea3=>_0x5bfea3?_0x5bfea3[_0xe1da4b(0x21d)][_0xe1da4b(0x26c)](_0x20fbec(_0x1f9138=>{const _0x1768f3=_0xe1da4b;if(!_0x1f9138)return _0x53e669;let _0x71ed21=_0x5bfea3[_0x1768f3(0x23b)](),_0x25d498=this['_renderManagerService'][_0x1768f3(0x75)](_0x71ed21),_0x3abc97=_0x25d498==null?void 0x0:_0x25d498[_0x1768f3(0x255)];return _0x3abc97?_0x571f73(_0x3abc97):_0x53e669;})):_0x53e669))['subscribe'](_0x13443c=>{const _0x54b79a=_0xe1da4b;let _0x2911e7=_0x13443c['getTransformerByCreate']();this[_0x54b79a(0x183)](_0x13443c[_0x54b79a(0xe1)][_0x54b79a(0x26b)](_0x376c7a=>{const _0x368eb1=_0x54b79a;this[_0x368eb1(0x8b)]&&this['_activeShapeId']&&this[_0x368eb1(0x19e)]();})),this[_0x54b79a(0x183)](_0x2911e7[_0x54b79a(0x1bc)][_0x54b79a(0xd9)](_0xaf6d33=>{const _0x58e2c5=_0x54b79a;let {objects:_0x27ad81}=_0xaf6d33;this[_0x58e2c5(0x19e)](),_0x27ad81!==null&&_0x27ad81[_0x58e2c5(0x2ca)]===0x1&&_0x27ad81[_0x58e2c5(0xe0)]()['next']()['value']instanceof fr&&(this[_0x58e2c5(0x8b)]=!0x0);})),this[_0x54b79a(0x183)](_0x2911e7[_0x54b79a(0x128)][_0x54b79a(0xd9)](_0x49cd5c=>{const _0x322107=_0x54b79a;this['_isDrawingShapePointDown']&&this[_0x322107(0x19e)]();})),this[_0x54b79a(0x183)](_0x13443c['onPointerUp$'][_0x54b79a(0x26b)](()=>{const _0x195363=_0x54b79a;this['_isDrawingShapePointDown']&&(this[_0x195363(0x8b)]=!0x1,this[_0x195363(0x211)]());})),this['disposeWithMe'](_0x2911e7['changeEnd$']['subscribe'](()=>{const _0x3e5002=_0x54b79a;this[_0x3e5002(0x7b)]&&this['_subUnitId']&&this[_0x3e5002(0x146)]&&this[_0x3e5002(0x9d)][_0x3e5002(0x2cc)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3e5002(0x146)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x3e5002(0x211)]());}));}));}[_0x4b851e(0xdb)](){const _0x4af25e=_0x4b851e;this['disposeWithMe'](this[_0x4af25e(0x9d)][_0x4af25e(0x85)][_0x4af25e(0xd9)](_0x307561=>{const _0x1e1c2f=_0x4af25e;if(_0x307561['length']===0x1){let _0x55d5f7=_0x307561[0x0];if(_0x55d5f7[_0x1e1c2f(0x14f)]===_0x514277[_0x1e1c2f(0xcb)]){let _0x233f70=this[_0x1e1c2f(0x80)][_0x1e1c2f(0x138)](_0x55d5f7[_0x1e1c2f(0x2e2)],_0x55d5f7[_0x1e1c2f(0x20f)],_0x55d5f7[_0x1e1c2f(0x179)]);if(_0x233f70&&_0x47e56f(_0x233f70[_0x1e1c2f(0x180)]())){this[_0x1e1c2f(0x146)]=_0x55d5f7[_0x1e1c2f(0x179)],this['_unitId']=_0x55d5f7[_0x1e1c2f(0x2e2)],this['_subUnitId']=_0x55d5f7['subUnitId'],this[_0x1e1c2f(0x19e)](),this[_0x1e1c2f(0x211)]();return;}}}this['_activeShapeId']=void 0x0,this[_0x1e1c2f(0x7b)]=void 0x0,this[_0x1e1c2f(0x21a)]=void 0x0,this[_0x1e1c2f(0x19e)]();})),this[_0x4af25e(0x183)](this[_0x4af25e(0x9d)][_0x4af25e(0x200)][_0x4af25e(0xd9)](_0xc54415=>{const _0x674248=_0x4af25e;if(_0xc54415['length']===0x1){var _0x5966d4;let _0x36c4a0=_0xc54415[0x0],_0xf075d8=(_0x5966d4=this['_drawingManagerService'][_0x674248(0x2cc)](_0x36c4a0))==null?void 0x0:_0x5966d4['drawingType'];_0xf075d8===_0x514277[_0x674248(0xcb)]&&_0x36c4a0[_0x674248(0x179)]===this[_0x674248(0x146)]?(this[_0x674248(0x19e)](),this['_addShapeConnectorHandlerObjects']()):!this['_activeShapeId']&&_0xf075d8===_0x514277['DRAWING_SHAPE']&&this[_0x674248(0x230)](_0x36c4a0[_0x674248(0x2e2)],_0x36c4a0[_0x674248(0x20f)],_0x36c4a0['drawingId']);}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x4af25e(0xd9)](_0x40076a=>{const _0x533d3b=_0x4af25e;for(let _0x4ba292 of _0x40076a){let {drawingId:_0x24c0ef}=_0x4ba292;if(this[_0x533d3b(0x146)]===_0x24c0ef){this['_reset']();return;}}}));}[_0x4b851e(0x1a3)](_0x168158,_0x38eaed,_0x5d6208,_0x35e433,_0xd772ff){const _0x44e2bd=_0x4b851e;var _0x3b9590;if(!this[_0x44e2bd(0xf7)])return;let _0x52a19c=this[_0x44e2bd(0x264)](_0x168158);if(!_0x52a19c)return;let _0x58e306=this[_0x44e2bd(0x2f9)]?this[_0x44e2bd(0x2f9)][_0x44e2bd(0x11b)]:_0x38eaed,_0x52ab83=this[_0x44e2bd(0x2f9)]?this[_0x44e2bd(0x2f9)][_0x44e2bd(0x2a4)]:this[_0x44e2bd(0x29a)](_0x52a19c[_0x44e2bd(0x282)],_0x58e306),_0x52b0dd;if(this[_0x44e2bd(0x2f9)]){let _0x496fe7=this[_0x44e2bd(0x9d)]['getDrawingByParam']({'unitId':this[_0x44e2bd(0x2f9)]['unitId'],'subUnitId':this[_0x44e2bd(0x2f9)][_0x44e2bd(0x20f)],'drawingId':this[_0x44e2bd(0x2f9)]['shapeId']});if(_0x496fe7!=null&&_0x496fe7[_0x44e2bd(0x1c1)]){let {left:_0x61a0dc=0x0,top:_0x5411f9=0x0,width:_0x547023=0x0,height:_0x43f9cc=0x0,angle:_0x2b24d0}=_0x496fe7['transform'];_0x52b0dd=_0x16b583({'left':_0x61a0dc,'top':_0x5411f9,'width':_0x547023,'height':_0x43f9cc},_0x2b24d0||0x0);}else _0x52b0dd={'left':_0x58e306['x'],'top':_0x58e306['y'],'width':0x0,'height':0x0};}else _0x52b0dd={'left':_0x58e306['x'],'top':_0x58e306['y'],'width':0x0,'height':0x0};let _0x3f2334={'point':_0x58e306,'angle':_0x52ab83,'bounds':_0x52b0dd},_0x3c6811=_0x5d6208?_0x3f2334:_0x52a19c,_0x1bddfe=_0x5d6208?_0x52a19c:_0x3f2334,_0x1da918=this[_0x44e2bd(0xf7)][_0x44e2bd(0x180)](),_0x403e8e=_0x4b9feb(_0x3c6811,_0x1bddfe,_0x1da918);_0x403e8e&&this[_0x44e2bd(0xf7)][_0x44e2bd(0xac)](_0x403e8e);let _0x21e62d=_0x1fcdb8(_0x403e8e,_0x1da918);_0x21e62d[_0x44e2bd(0x281)]!==_0x1da918&&this['_activeShapeModel'][_0x44e2bd(0x23e)](_0x21e62d['lineType']);for(let [_0x2247af,_0x3916da]of Object[_0x44e2bd(0x2f6)](_0x21e62d[_0x44e2bd(0x1e5)]))this[_0x44e2bd(0xf7)][_0x44e2bd(0x2da)](_0x2247af,_0x3916da);this[_0x44e2bd(0xf7)]['updateContext']({'width':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x193)],'height':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1ff)]}),_0x35e433['transformByState']({'flipX':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x2ae)],'flipY':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1c8)],'left':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1d3)],'top':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x292)],'width':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x193)],'height':_0x21e62d[_0x44e2bd(0x15f)][_0x44e2bd(0x1ff)],'angle':_0x21e62d[_0x44e2bd(0x17c)]}),_0x35e433[_0x44e2bd(0x2b3)](!0x0);let _0x3172ee=((_0x3b9590=this[_0x44e2bd(0x2f9)])==null?void 0x0:_0x3b9590[_0x44e2bd(0x11b)])??_0x38eaed;_0xd772ff['transformByState']({'left':_0x3172ee['x']-_0x179953[_0x44e2bd(0x2ab)],'top':_0x3172ee['y']-_0x179953[_0x44e2bd(0x2ab)]});}[_0x4b851e(0x1f6)](_0x123ce6,_0x38475a,_0x9c5db2,_0x1183e7,_0x10519e){const _0x4a6385=_0x4b851e;var _0x2e3114,_0x3c5f72;let _0x281a1e=((_0x2e3114=this[_0x4a6385(0x2f9)])==null?void 0x0:_0x2e3114['worldPoint'])??_0x123ce6,_0x294097=_0x27802a[_0x4a6385(0x23c)](_0x38475a,_0x281a1e,_0x9c5db2);_0x1183e7[_0x4a6385(0x1ab)]({'flipX':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x2ae)],'flipY':_0x294097['worldRect'][_0x4a6385(0x1c8)],'left':_0x294097['worldRect'][_0x4a6385(0x1d3)],'top':_0x294097['worldRect'][_0x4a6385(0x292)],'width':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x193)],'height':_0x294097['worldRect'][_0x4a6385(0x1ff)],'angle':_0x294097[_0x4a6385(0x15f)][_0x4a6385(0x2a4)]});let _0x3dbc60=((_0x3c5f72=this[_0x4a6385(0x2f9)])==null?void 0x0:_0x3c5f72['worldPoint'])??_0x123ce6;_0x10519e[_0x4a6385(0x1ab)]({'left':_0x3dbc60['x']-_0x179953[_0x4a6385(0x2ab)],'top':_0x3dbc60['y']-_0x179953['cxnPointRadius']});}[_0x4b851e(0x264)](_0x477d23){const _0x12acf2=_0x4b851e;if(!this[_0x12acf2(0x7b)]||!this[_0x12acf2(0x21a)])return null;let {shapeId:_0x788b3a,cxnIndex:_0x4652cb}=_0x477d23,_0x20eb13=this[_0x12acf2(0x80)][_0x12acf2(0x138)](this[_0x12acf2(0x7b)],this['_subUnitId'],_0x788b3a);if(!_0x20eb13)return null;let _0x35b786=this[_0x12acf2(0x9d)][_0x12acf2(0x2cc)]({'unitId':this[_0x12acf2(0x7b)],'subUnitId':this['_subUnitId'],'drawingId':_0x788b3a});if(!(_0x35b786!=null&&_0x35b786['transform']))return null;let {left:_0x3ea940=0x0,top:_0x1d9696=0x0,width:_0x246f2f=0x0,height:_0x32ec48=0x0,flipX:_0x2ff082=!0x1,flipY:_0x2dd230=!0x1,angle:_0x363dbd}=_0x35b786['transform'];_0x20eb13[_0x12acf2(0x113)]({'width':_0x246f2f,'height':_0x32ec48});let _0x37abc4=_0x20eb13[_0x12acf2(0x2dd)]()['find'](_0x36bf16=>_0x36bf16[_0x12acf2(0x2d3)]===_0x4652cb);if(!_0x37abc4)return null;let _0x32057c=_0x2ff082?_0x246f2f-_0x37abc4['x']:_0x37abc4['x'],_0x2ca6d3=_0x2dd230?_0x32ec48-_0x37abc4['y']:_0x37abc4['y'];if(_0x363dbd!==0x0&&_0x363dbd!=null){let _0x44abd3=_0x363dbd*Math['PI']/0xb4,_0xd437b9=Math['cos'](_0x44abd3),_0x3fc88a=Math['sin'](_0x44abd3),_0x5d7aa6=_0x246f2f/0x2,_0x471670=_0x32ec48/0x2,_0x184ec0=_0x32057c-_0x5d7aa6,_0x1f9dd8=_0x2ca6d3-_0x471670;_0x32057c=_0x5d7aa6+_0x184ec0*_0xd437b9-_0x1f9dd8*_0x3fc88a,_0x2ca6d3=_0x471670+_0x184ec0*_0x3fc88a+_0x1f9dd8*_0xd437b9;}_0x32057c+=_0x3ea940,_0x2ca6d3+=_0x1d9696;let _0x378171=_0x37abc4['ang']/0xea60;_0x2ff082&&(_0x378171=0xb4-_0x378171),_0x2dd230&&(_0x378171=-_0x378171),_0x378171+=_0x363dbd||0x0,_0x378171=(_0x378171%0x168+0x168)%0x168;let _0x339968=_0x16b583({'left':_0x3ea940,'top':_0x1d9696,'width':_0x246f2f,'height':_0x32ec48},_0x363dbd||0x0);return{'point':{'x':_0x32057c,'y':_0x2ca6d3},'angle':_0x378171,'bounds':_0x339968};}[_0x4b851e(0x29a)](_0x18a859,_0x38a4e0){const _0x30df3b=_0x4b851e;let _0x3da114=_0x38a4e0['x']-_0x18a859['x'],_0x3d7d32=_0x38a4e0['y']-_0x18a859['y'];return Math[_0x30df3b(0x1dc)](_0x3da114)>=Math[_0x30df3b(0x1dc)](_0x3d7d32)?_0x3da114>=0x0?0xb4:0x0:_0x3d7d32>=0x0?0x10e:0x5a;}['_reset'](){const _0x4bf0fd=_0x4b851e;this[_0x4bf0fd(0x146)]=void 0x0,this[_0x4bf0fd(0x7b)]=void 0x0,this[_0x4bf0fd(0x21a)]=void 0x0,this[_0x4bf0fd(0x19e)]();}[_0x4b851e(0x254)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};Qi=Z([X(0x1,_0x46e4d8),X(0x2,_0x37a074),X(0x3,_0x1644d5),X(0x4,_0x22bed1),X(0x5,_0x2e2475(_0x1bfe6b)),X(0x6,_0x2e2475(mr)),X(0x7,_0x2e2475(Yi))],Qi);let $i=class extends _0x387ec6{constructor(_0x24324c,_0x3f7071,_0x758711){const _0x59869e=_0x4b851e;super(),this[_0x59869e(0xa7)]=_0x24324c,this['_drawingManagerService']=_0x3f7071,this[_0x59869e(0x11a)]=_0x758711,this['_initPrinting']();}[_0x4b851e(0xa8)](){const _0x1497aa=_0x4b851e;this[_0x1497aa(0x183)](this['_sheetPrintInterceptorService']['interceptor'][_0x1497aa(0x228)](this['_sheetPrintInterceptorService']['interceptor'][_0x1497aa(0x2e6)]()[_0x1497aa(0x17b)],{'handler':(_0x5de62b,_0x1606b2,_0x56220a)=>{const _0x4130f1=_0x1497aa;var _0x56e0f2;let {unitId:_0x565a41,subUnitId:_0x59fec7,scene:_0x3cceca,resourceCollector:_0x197f61}=_0x1606b2,_0x171129=(_0x56e0f2=this[_0x4130f1(0x9d)][_0x4130f1(0x1f5)](_0x565a41))==null?void 0x0:_0x56e0f2[_0x59fec7];return _0x171129==null||_0x171129[_0x4130f1(0x283)][_0x4130f1(0xd7)](_0x1c9512=>{const _0x4da743=_0x4130f1;let _0x56d57e=_0x171129[_0x4da743(0xfa)][_0x1c9512];_0x56d57e[_0x4da743(0x14f)]===_0x514277[_0x4da743(0xcb)]&&!_0x56d57e[_0x4da743(0xbf)]&&this['_shapeRenderController'][_0x4da743(0x187)](_0x56d57e,_0x3cceca,{'resourceCollector':_0x197f61});}),_0x56220a(_0x5de62b);}}));}};$i=Z([X(0x0,_0x2e2475(_0x1af16d)),X(0x1,_0x1644d5),X(0x2,_0x2e2475(Q))],$i);let ea=class extends _0x387ec6{constructor(_0xdb8b23,_0x484145,_0xa75b7a){const _0x454fba=_0x4b851e;super(),this[_0x454fba(0x13c)]=_0xdb8b23,this[_0x454fba(0x1b7)]=_0x484145,this[_0x454fba(0x2d4)]=_0xa75b7a,this[_0x454fba(0x17e)]();}[_0x4b851e(0x17e)](){const _0x59d18f=_0x4b851e;this[_0x59d18f(0x183)](this[_0x59d18f(0x13c)]['beforeCommandExecuted'](_0x3dcf11=>{const _0x9b5a55=_0x59d18f;let _0x190c77,_0x5f1644;if(_0x3dcf11['id']===_0x84e7ae['id']||_0x3dcf11['id']===_0x12f002['id']||_0x3dcf11['id']===_0x3ac18a['id']){let _0x3d530e=_0x3dcf11[_0x9b5a55(0x29f)];_0x190c77=_0x3d530e[_0x9b5a55(0x2e2)],_0x5f1644=_0x3d530e['subUnitId'];}!_0x190c77||!_0x5f1644||this[_0x9b5a55(0x2d4)]['permissionCheckWithoutRange']({'workbookTypes':[_0x35ca91],'worksheetTypes':[_0x446d79]},_0x190c77,_0x5f1644)||this[_0x9b5a55(0x2d4)][_0x9b5a55(0xed)](this['_localeService']['t'](_0x9b5a55(0xf3)));}));}};ea=Z([X(0x0,_0x2e2475(_0x46e4d8)),X(0x1,_0x2e2475(_0x3fae61)),X(0x2,_0x2e2475(_0x3aeb77))],ea);let ta=class extends _0x387ec6{constructor(_0x1b4157,_0x555956,_0x1f2388,_0x29a3a7,_0x25bb36,_0xc8c37d,_0x4a298f,_0x353db1,_0x33ddca,_0x1e3e2b,_0x3f54f0){const _0xdac203=_0x4b851e;super(),this[_0xdac203(0x25c)]=_0x1b4157,this[_0xdac203(0x274)]=_0x555956,this[_0xdac203(0x1d5)]=_0x1f2388,this[_0xdac203(0x80)]=_0x29a3a7,this[_0xdac203(0x1b7)]=_0x25bb36,this[_0xdac203(0x13c)]=_0xc8c37d,this['_drawingManagerService']=_0x4a298f,this[_0xdac203(0xb9)]=_0x353db1,this['_contextService']=_0x33ddca,this[_0xdac203(0x1bb)]=_0x1e3e2b,this[_0xdac203(0x29b)]=_0x3f54f0,Y(this,_0xdac203(0x18b),null),Y(this,_0xdac203(0x1e8),null),Y(this,'_isOpenedShapeEditPanel',!0x1),Y(this,_0xdac203(0x298),0x0),Y(this,_0xdac203(0x130),null),Y(this,_0xdac203(0x208),[]),this[_0xdac203(0xe5)](),this[_0xdac203(0x183)](this[_0xdac203(0x25c)][_0xdac203(0x295)](_0x2ce572[_0xdac203(0x158)])[_0xdac203(0xd9)](_0x1fd76e=>{const _0x77485=_0xdac203;if(!_0x1fd76e){var _0x743258;(_0x743258=this['_sidebarDisposable'])==null||_0x743258[_0x77485(0x254)]();}})),this[_0xdac203(0xe8)](),this[_0xdac203(0x2b8)](),this[_0xdac203(0x183)](this[_0xdac203(0x29b)][_0xdac203(0x2d1)][_0xdac203(0xd9)](_0x4ed4e5=>{const _0x3c2309=_0xdac203;_0x4ed4e5&&this[_0x3c2309(0x28a)]();}));}[_0x4b851e(0xe5)](){const _0x3cbe32=_0x4b851e;this[_0x3cbe32(0x1d5)][_0x3cbe32(0x9f)](Si);}['initShapePopupMenu'](){const _0x456247=_0x4b851e;this['_shapePopupMenuDisposable']||=this[_0x456247(0x183)](_0x33aed7(this[_0x456247(0x1bb)],_0x2ce572[_0x456247(0x158)],_0x373056=>this[_0x456247(0xe6)](_0x373056)));}[_0x4b851e(0x224)](_0x300460,_0x9d5abb,_0x4bc72b){const _0x2e7e27=_0x4b851e;let _0x18ee70=this['_sheetsShapeService'][_0x2e7e27(0x196)](_0x300460,_0x9d5abb,_0x4bc72b),_0x437a61=this['_sheetsShapeService'][_0x2e7e27(0x2d9)](_0x300460,_0x9d5abb,_0x4bc72b);return _0x18ee70!==void 0x0&&_0x437a61!==void 0x0?{'shapeData':_0x437a61,'shapeId':_0x4bc72b,'shapeType':_0x18ee70,'unitId':_0x300460,'subUnitId':_0x9d5abb,'version':this[_0x2e7e27(0x298)],'disableShapeOption':!0x1}:null;}[_0x4b851e(0x28a)](){const _0x380f6c=_0x4b851e;this['_disposePopups']['forEach'](_0x537057=>_0x537057['dispose']()),this['_disposePopups'][_0x380f6c(0x8c)]=0x0;}[_0x4b851e(0xe6)](_0x8d4679){const _0x57513a=_0x4b851e;let _0x5ad67d=new _0x1e71f4();return _0x5ad67d['add'](_0x8d4679[_0x57513a(0x2b2)][_0x57513a(0xd9)](()=>{const _0x2faa10=_0x57513a;let _0x9b739d=_0x8d4679[_0x2faa10(0x129)]();if(this[_0x2faa10(0x28a)](),this[_0x2faa10(0x135)]||_0x9b739d[_0x2faa10(0x2ca)]>0x1)return;let _0xceb614=_0x9b739d[_0x2faa10(0xe0)]()[_0x2faa10(0x12c)]()[_0x2faa10(0x214)];if(!_0xceb614)return;let _0x4c3303=this[_0x2faa10(0x9d)][_0x2faa10(0x16b)](_0xceb614[_0x2faa10(0x241)]);if(!_0x4c3303||_0x4c3303['drawingType']!==_0x514277['DRAWING_SHAPE'])return;let {unitId:_0x343b69,subUnitId:_0x4af560,drawingId:_0x56d673,drawingType:_0x18b60e}=_0x4c3303,_0x13c9ad=this[_0x2faa10(0x224)](_0x343b69,_0x4af560,_0x56d673);if(!_0x13c9ad)return;this[_0x2faa10(0x1c9)]['setContextValue'](_0x4fe378,!0x0);let _0x1516f5=this[_0x2faa10(0x1bb)][_0x2faa10(0x75)](_0x343b69),_0x100f33=((_0x1516f5==null?void 0x0:_0x1516f5[_0x2faa10(0x83)])===!0x1?_0x1516f5[_0x2faa10(0x25d)](_0x4817cd):this[_0x2faa10(0xb9)])['attachPopupToObject'](_0xceb614,{'componentKey':yr,'direction':_0x2faa10(0x89),'offset':[0x0,_0xdc3205],'extraProps':{'unitId':_0x343b69,'subUnitId':_0x4af560,'drawingId':_0x56d673,'drawingType':_0x18b60e,'shapeType':_0x13c9ad[_0x2faa10(0x253)],'shapeData':_0x13c9ad[_0x2faa10(0xb6)]}});this[_0x2faa10(0x208)]['push'](this[_0x2faa10(0x183)](_0x100f33)),this['_drawingManagerService']['getFocusDrawings']()['find'](_0x15af4c=>_0x15af4c[_0x2faa10(0x2e2)]===_0x343b69&&_0x15af4c['subUnitId']===_0x4af560&&_0x15af4c['drawingId']===_0x56d673)||this[_0x2faa10(0x9d)][_0x2faa10(0x82)]([{'unitId':_0x343b69,'subUnitId':_0x4af560,'drawingId':_0x56d673}]);})),_0x5ad67d['add'](_0x8d4679['clearControl$']['subscribe'](()=>{const _0x1d1bbb=_0x57513a;this['_clearPopups'](),this[_0x1d1bbb(0x1c9)][_0x1d1bbb(0x126)](_0x4fe378,!0x1),this[_0x1d1bbb(0x9d)]['focusDrawing'](null);})),_0x5ad67d[_0x57513a(0x2de)](_0x8d4679[_0x57513a(0x128)]['subscribe'](()=>{const _0x5cb299=_0x57513a;this[_0x5cb299(0x28a)]();})),_0x5ad67d[_0x57513a(0x2de)](_0x8d4679[_0x57513a(0x1bc)]['subscribe'](()=>{const _0x14561f=_0x57513a;this[_0x14561f(0x28a)]();})),_0x52399e(()=>{const _0x2a9589=_0x57513a;_0x5ad67d[_0x2a9589(0x254)](),this['_clearPopups']();});}[_0x4b851e(0xe8)](){const _0x19359f=_0x4b851e;this['disposeWithMe'](this[_0x19359f(0x13c)][_0x19359f(0x11c)](_0x19b5d5=>{const _0x5c1d44=_0x19359f;if(_0x19b5d5['id']===wr['id']){let {unitId:_0x1a8255,subUnitId:_0x2eb05d,drawingId:_0x3c8131}=_0x19b5d5[_0x5c1d44(0x29f)];this['_shapeEditPanelVersion']+=0x1,this[_0x5c1d44(0x1e8)]=this['_getShapeInfo'](_0x1a8255,_0x2eb05d,_0x3c8131),this[_0x5c1d44(0x28a)](),this[_0x5c1d44(0x2ce)]();}if(_0x19b5d5['id']===Ti['id']&&(this[_0x5c1d44(0x1e8)]=null,this[_0x5c1d44(0x132)]()),_0x19b5d5['id']===_0x4b69e7['id']){let {unitId:_0x7dbce4,subUnitId:_0x20418d,shapeId:_0x2a7f4d}=_0x19b5d5[_0x5c1d44(0x29f)];if(this[_0x5c1d44(0x1e8)]&&this[_0x5c1d44(0x1e8)][_0x5c1d44(0x2e3)]===_0x2a7f4d){let _0x4fa875=this[_0x5c1d44(0x224)](_0x7dbce4,_0x20418d,_0x2a7f4d);_0x4fa875&&(this[_0x5c1d44(0x298)]+=0x1,_0x4fa875[_0x5c1d44(0xe9)]=this[_0x5c1d44(0x298)],this[_0x5c1d44(0x1e8)]=_0x4fa875,this[_0x5c1d44(0x135)]&&this[_0x5c1d44(0x2ce)]());}}})),this[_0x19359f(0x183)](this[_0x19359f(0x9d)][_0x19359f(0x85)][_0x19359f(0xd9)](_0x354127=>{const _0x3afacc=_0x19359f;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x354127[_0x3afacc(0x8c)]===0x0){this[_0x3afacc(0x1e8)]=null,this[_0x3afacc(0x132)]();return;}if(_0x354127[_0x3afacc(0x8c)]===0x1&&_0x354127[0x0]['drawingType']===_0x514277[_0x3afacc(0xcb)]&&(this[_0x3afacc(0x298)]+=0x1,this['_activeShapeInfo']=this[_0x3afacc(0x224)](_0x354127[0x0][_0x3afacc(0x2e2)],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x5f04d6=_0x354127['filter'](_0x108adb=>_0x108adb[_0x3afacc(0x14f)]===_0x514277[_0x3afacc(0xcb)]);if(_0x354127[_0x3afacc(0x8c)]>0x1&&_0x5f04d6['length']===_0x354127[_0x3afacc(0x8c)]){if(this[_0x3afacc(0x298)]+=0x1,this[_0x3afacc(0x1e8)]=this[_0x3afacc(0x224)](_0x354127[0x0][_0x3afacc(0x2e2)],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this[_0x3afacc(0x1e8)]){this[_0x3afacc(0x2ce)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3afacc(0x224)](_0x354127[0x0]['unitId'],_0x354127[0x0][_0x3afacc(0x20f)],_0x354127[0x0][_0x3afacc(0x179)]),this[_0x3afacc(0x1e8)]){this[_0x3afacc(0x1e8)][_0x3afacc(0x123)]=!0x0,this[_0x3afacc(0x2ce)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x449219=_0x4b851e;this['_activeShapeInfo']&&(this[_0x449219(0x18b)]=this[_0x449219(0x274)][_0x449219(0x1c0)]({'id':_r,'header':{'title':this[_0x449219(0x1b7)]['t'](_0x449219(0x2e1))},'width':0x184,'children':{'label':_r,...this[_0x449219(0x1e8)]},'onClose':()=>{const _0x15c70b=_0x449219;this[_0x15c70b(0x9d)][_0x15c70b(0x82)](null),this[_0x15c70b(0x1c9)]['setContextValue'](_0x4fe378,!0x1),this[_0x15c70b(0x18b)]=null;}}),this[_0x449219(0x135)]=!0x0);}[_0x4b851e(0x132)](){const _0x369026=_0x4b851e;this[_0x369026(0x135)]=!0x1,this[_0x369026(0x274)][_0x369026(0x77)](_r),this[_0x369026(0x18b)]=null,this[_0x369026(0x1c9)][_0x369026(0x126)](_0x4fe378,!0x1),this[_0x369026(0x9d)][_0x369026(0x82)](null);}};ta=Z([X(0x0,_0x22bed1),X(0x1,_0x2e2475(_0x446fc5)),X(0x2,_0xa31c1),X(0x3,_0x2e2475(_0x1bfe6b)),X(0x4,_0x2e2475(_0x3fae61)),X(0x5,_0x46e4d8),X(0x6,_0x1644d5),X(0x7,_0x2e2475(_0x4817cd)),X(0x8,_0x53c8c3),X(0x9,_0x37a074),X(0xa,_0x2e2475(Fi))],ta);let $=class extends _0x1dddda{constructor(_0x23bfb4=Ei,_0x209026,_0x2b8c7d,_0x8c71d2,_0x3366d6){const _0x1227e5=_0x4b851e;super(),this['_config']=_0x23bfb4,this[_0x1227e5(0x9e)]=_0x209026,this[_0x1227e5(0x13c)]=_0x2b8c7d,this[_0x1227e5(0x2e4)]=_0x8c71d2,this[_0x1227e5(0x1bb)]=_0x3366d6;let {..._0x135010}=_0x2d08ea({},Ei,this[_0x1227e5(0x29d)]);this[_0x1227e5(0x2e4)]['setConfig'](_0x1227e5(0x1db),_0x135010),this['_initCommands']();}[_0x4b851e(0x25e)](){const _0x4f82a3=_0x4b851e;this[_0x4f82a3(0x1bb)][_0x4f82a3(0xe7)](_0x2ce572[_0x4f82a3(0x280)],[Gi]),_0x3da19d(this[_0x4f82a3(0x9e)],[[ta],[Ki],[Q],[$i]]);}['onSteady'](){const _0x4b1d83=_0x4b851e;this[_0x4b1d83(0x9e)][_0x4b1d83(0x2c2)](ta)[_0x4b1d83(0x2b8)]();}[_0x4b851e(0x296)](){const _0x13f191=_0x4b851e;[[Yi],[mr],[Xi]]['forEach'](_0x65ab49=>this[_0x13f191(0x9e)]['add'](_0x65ab49)),_0x3da19d(this[_0x13f191(0x9e)],[[Xi],[mr]]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[Yi]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[zi]),this[_0x13f191(0x1bb)][_0x13f191(0xe7)](_0x2ce572[_0x13f191(0x158)],[Qi]),this[_0x13f191(0x1bb)]['registerRenderModule'](_0x2ce572[_0x13f191(0x158)],[Wi]);}[_0x4b851e(0x2a2)](){const _0x4efb3a=_0x4b851e;this[_0x4efb3a(0x9e)][_0x4efb3a(0x2de)]([Ri]),this[_0x4efb3a(0x9e)]['get'](Ri);let _0x3dec5a=this[_0x4efb3a(0x9e)];[[ta],[Ki],[Q],[$i],[Ai],[Fi],[Ui],[Or],[ea],[Vi]][_0x4efb3a(0xd7)](_0xfdf595=>_0x3dec5a[_0x4efb3a(0x2de)](_0xfdf595)),_0x3da19d(this[_0x4efb3a(0x9e)],[[ta],[Ki],[Q],[Ai],[Fi],[Ui],[Or],[ea],[Vi]]);}['_initCommands'](){const _0x13ae55=_0x4b851e;[gr,ar,Ti,wr,Cr,hr,Er,Dr][_0x13ae55(0xd7)](_0xd46bdd=>this[_0x13ae55(0x183)](this[_0x13ae55(0x13c)][_0x13ae55(0x244)](_0xd46bdd)));}};Y($,_0x4b851e(0x24f),_0x2ce572[_0x4b851e(0x158)]),Y($,_0x4b851e(0x26f),_0x4b851e(0x263)),Y($,'packageName',Ci),Y($,_0x4b851e(0xe9),wi),$=Z([_0x152ad8(_0x24931b,_0x566abe,_0x58177f,_0x2fdd1b,_0x40bd64,_0x37f014,_0xbc67aa,_0x40f2a6,_0x3edd01,_0x1df509,_0x4e0dc6,_0x4e1ffc,_0x2dc485),X(0x1,_0x2e2475(_0xe0fbcd)),X(0x2,_0x46e4d8),X(0x3,_0x5a304f),X(0x4,_0x37a074)],$);export{xi as SheetsShapeUIContextualRibbonSchema,Si as SheetsShapeUIMenuSchema,$ as UniverSheetsShapeUIPlugin};