@univerjs-pro/sheets-shape-ui 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (100) 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/command-util.d.ts +2 -19
  62. package/lib/types/const.d.ts +1 -0
  63. package/lib/types/controllers/shape-text-float-menu.render-controller.d.ts +1 -2
  64. package/lib/types/controllers/sheet-shape-render.controller.d.ts +1 -0
  65. package/lib/types/locale/en-US.d.ts +0 -33
  66. package/lib/types/{commands/menu → menu}/object-list.menu.d.ts +1 -1
  67. package/lib/types/views/ShapePicker.d.ts +0 -2
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +19 -19
  89. package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
  90. package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
  91. package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
  92. package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
  93. package/lib/types/commands/menu/menu-dependencies.d.ts +0 -2
  94. package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
  95. package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
  96. package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
  97. package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
  98. package/lib/types/view-model/shape-data-model.d.ts +0 -8
  99. package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
  100. /package/lib/types/commands/operations/{actvie-drawing-operation.d.ts → active-drawing-operation.d.ts} +0 -0
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1c45(_0x1fb555,_0x4cd296){_0x1fb555=_0x1fb555-0xf7;const _0x128001=_0x1280();let _0x1c452b=_0x128001[_0x1fb555];return _0x1c452b;}function _0x1280(){const _0x1ac895=['startConnectionDetection','_shapeId','UniverProSheetsShapeUi','Image','constructor','_getSceneAndTransformerByDrawingSearch','_handleConnectedEndpointMove','localeService','_drawingManagerService','#FFFFFF','BehaviorSubject','_initCopyPaste','getTransformerByCreate','calcAdjValue','transformToAxisAlignPosition','resize','_createCopyInfoByRange','shapeData','ShapeTextFloatToolbar','updateShapeFillImage','_registerOperations','DRAWING_VIDEO','_activeTargetShapeId','getConnectorLinePoints','isRichText','disableObjectsEvent','IUniverInstanceService','getAllUnitsForType','save','assign','_highlightedSiteIndex','_clearControls','textStyle','getAdjustInfoByName','_getShapeInfo','primary.600','sheets-shape-ui.toolbar.resetColor','open','UniverEngineRender','normal','isConnectorShape','@univerjs-pro/shape-editor-ui','SHAPE_EDITOR_TRANSFORMER_CONFIG','switchMap','dataModel','DRAWING_DOM','forward','sheets-shape-text-','EMPTY','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','RibbonInsertGroup','angle','addClipboardHook','sin','_popupMenuListener','UniverUi','refreshAdjustControls','register','onPointerMove$','SetDrawingSelectedOperation','_index','iterator','resolveShapeTextDocumentRenderLayout','MEDIA','COMMAND','clipTop','_shapeUpdateListener','_registerIcons','_getImageDrawingInfo','restore','left','_generatePasteMutations','getUnitId','documentStyle','order','viewportScrollY','_iconManager','_univerInstanceService','name','CommandType','INSERT','_focusedDrawings','_initializedShapePopupMenu','isRender','_initMenu','removeLinePoints','Observable','prepareShapeTextDocumentData','setFillImage','tag','_initCommands','AlignOperationCommand','url(#$1','setShapeProps','map','sheets-shape-ui.align.center','BUTTON','defIds','getOwnPropertyDescriptor','_attachConnectorObjectEvent','clipHeight','_registerGroupFeaturePasteHook','copy-double-icon','getObject','FORMAT','composeMatrix','UpdateSheetsShapeDataMutation','_executeConnectedRouteResizeCommand','pick','shape-adjust-point-','defineProperty','sectionFloating','error','getObjectListPanelTypeName','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_getScrollInfo','16567270ktcVpj','transformToDrawingPosition','offsetY','_updateSrcRectByTransform','_localeService','sheet.operation.open-sheet-shape-format-panel','SetDrawingApplyMutation','value','sheets-shape-ui.objectListPanel.open','PREDEFINED_HOOK_NAME','stopPropagation','ICommandService','ISidebarService','isCurvedConnectorShape','OPERATION','_handleConnectedEndpointPointerUp','parse','_handleFreeEndpointMove','setHighlighted','useState','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','sheet.command.shape-doc-align','getSkeleton','@univerjs-pro/engine-shape','contentHeight','translateWithPrecision','adjHandleFill','getEditing','getSkeletonParam','ShapeFloatingToolbar','IURLImageService','URL','cxnPointStrokeWidth','attrs','UniverProSheetsShape','video','VerticalAlign','children','createShapeTextBoxShapeData','_sheetDrawingService','isDrawingObject','attachRangeWithCoord','computeConnectorRouteLayout','sheet.shape.text.float-menu','flipY','_clearPopups','touchDependencies','_sheetClipboardService','Documents','startWith','_getShapeAdjustInfosById','axisAlignSheetTransform','Plugin','trim','20zqdyJa','FromArray','isLineShape','forEach','hidden','RENDER_CLASS_TYPE','sheet.command.set-shape-text-font-size','_registerDrawingFocusChangeHandler','_baseShapeHeight','renderDrawingShape','xlink:href','add','sheets-shape-ui.toggleFlipV','COPY_TYPE','RIGHT','viewportScrollX','_updateImageAdjValues','image-clip-adjust-point-','_showConnectionSites','getValue','BUTTON_SELECTOR','sheets-shape-ui.align.left','_props','getViewportByCell','sheets-shape-ui.formatShape','_isStartAdjusting','getImage','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','ImageSourceTypeEnum','attachPopupToObject','start','_initialize','getBatchUpdateOp','_activeAdjustPointList','Medium','IUndoRedoService','_handleBasicShapeUpdateConnectorLineShape','setConfig','VerticalCenterIcon','_baseShapeWidth','shape','ShapeModel','_drawingAddListener','render','sheets-shape-ui.hidePanel','getDrawingOKey','undo','size','UpdateLineShapeResizeCommand','ShapeTextFloatMenuRenderControllerBase','sheets-shape-ui.toggleFlipH','getUnit','DRAWING_IMAGE','updateLinePoints','worldPoint','setOnSavingEditorData','UniverDrawingUi','@univerjs/engine-render','_sheetShapeAdjustController','sheet.operation.open-shape-object-list-panel','IImageIoService','_shapeService','applyPoint','_resetState','registerRenderModule','srcRect','_copyInfo','START','push','chart','SolidLine','_injector','_shapeTextEditingService','sheets-shape-ui.deleteShape','DrawingImageClipService','ShapeArrowTypeEnum','getBasicShapeRotateBound','SELECTOR','skeleton','onSavingEditorData$','sheet.shape.picker.component','data','_registerFocusChangeHandler','getImageSourceCache','_activeAdjustInfo','_registerShapeMenu','getParent','replace','updateConnectionDetection','AlignTopIcon','getRealBound','scene','stroke','IMenuManagerService','isHighlighted','shapeModel','ShapeEditPanel','_sheetBasicShapeConnectionPointController','UNIVER_DOC','1em','lineType','setPrstGeom','computeConnectorResizeLayout','CURSOR_TYPE','_commandExecutedListener','normalizeShapeTextModel','Large','updateDocumentStyle','_sheetInterceptorService','drawWith','_createControls','generateRandomId','_getZoomRatio','popup','_hasReset','_targetShapeId','setEditing','cos','values','syncExecuteCommand','color','jsxs','Path','_activeShapeAdjustPointList','_groupCopyPasteController','getAdjustNames','wrapStrategy','registerFeaturePasteHook','getCurrentRangeDisable$','SetSheetsShapeTextVerticalToggleCommand','_baseTop','getState','@univerjs-pro/sheets-shape','_addShapeConnectorHandlerObjects','_onSavingEditorData$','ShapeTypeEnum','sheet.command.set-shape-text-font-size-increase','clip','getDrawingEditable','None','_drawSimpleText','_attachAdjustEvent','_draw','localToWorld','update$','1.0.0-alpha.3','subUnitId','adjHandleStroke','_updateAdjustControlPositions','Inject','sheetViewStartColumn','jsx','activeSheet$','activateDrawingObject','8GsJeEU','stringify','WorkbookEditablePermission','_updateShapeAdjustControls','VIEW_MAIN_TOP','MenuItemType','custom','cancelEditing','enableObjectsEvent','SolidFill','setShouldShowAdjust','_drawShapeText','focus$','React','disposeWithMe','function','editingParams$','slice','SetSheetsShapeRotateCommand','onerror','_baseWidth','ResetInlineFormatTextBackgroundColorCommand','IDrawingManagerService','ConnectorCoordinateTransform','useMemo','clearAdjustControls','mask','_shapeEditPanelVersion','UniverSheets','SetInlineFormatTextBackgroundColorCommand','_isDrawingShapePointDown','changeStart$','deriveStateFromActiveSheet$','react/jsx-runtime','_commandService','transformForAngle','registerClipDelegate','react','mergeMenu','connector-handler-','shapeType','use','_getImagePrstGeom','DocSelectionRenderService','drawing.operation.set-drawing-active','setAdjustValueByName','_sheetPermissionCheckController','_moveConnectorWithShape','sheets-shape-ui.align.middle','getDrawingByParam','GROUP','4651070XoVlap','onReady','UniverShapeEditorUIPlugin','UpdateConnectorRelationCommand','call','changing$','string','transform','IContextService','RightJustifyingIcon','marginTop','isHit','reverse','_isImagePointerDown','indexOf','_init','resetCursor','initShapePopupMenu','getUnitType','with','SheetsDrawingGroupCopyPasteController','dom','_executeConnectedRouteConnectionCommand','getConnectionRelation','rotation','resourceCollector','SheetSkeletonManagerService','_closeShapeEditPanel','version','SheetPrintInterceptorService','height','sheet.shape.floating-toolbar','_createShapeAdjustControls','_imageIoService','_isStartConnectorPoint','interceptCommand','sqrt','PaintBucketDoubleIcon','find','horizontal','_updateTransform','_clearConnectionSites','SheetsShapeService','fillImageSource','1094302XDajhw','UniverProShapeEditorUi','transformByState','sheet.command.menu-insert-shape','sectionCanvas','414771JvfyEl','univer-box-border\x20univer-px-4\x20univer-text-sm','_initPermission','sheetViewStartRow','lineShapeId','ShapeArrowSizeEnum','symbol','shapeKey','getTransformer','worldRect','some','_isShouldShowDrawingShapeAdjust','sheets-shape-ui.rotateLeft90','getBatchRemoveOp','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','getRenderById','strokeWidth','Transform','selectable','unitId','rxjs','_createShapePopupMenu','isHorizontal','disableShapeOption','_editingParams$','_shapes','UNIVER_SHEET','UniverSheetsDrawingUi','getObjectIncludeInGroup','_initEvents','_unitId','clip-','M5.4004\x202.60213C5.25792\x202.60213\x205.14241\x202.71763\x205.14241\x202.86011V4.32679C5.14241\x204.67752\x204.85809\x204.96184\x204.50736\x204.96184C4.15663\x204.96184\x203.87231\x204.67752\x203.87231\x204.32679V2.86011C3.87231\x202.01618\x204.55646\x201.33203\x205.4004\x201.33203H13.14C13.984\x201.33203\x2014.6681\x202.01618\x2014.6681\x202.86011V10.5998C14.6681\x2011.4437\x2013.984\x2012.1278\x2013.14\x2012.1278H11.6568C11.3061\x2012.1278\x2011.0218\x2011.8435\x2011.0218\x2011.4928C11.0218\x2011.1421\x2011.3061\x2010.8577\x2011.6568\x2010.8577H13.14C13.2825\x2010.8577\x2013.398\x2010.7422\x2013.398\x2010.5998V2.86011C13.398\x202.71763\x2013.2825\x202.60213\x2013.14\x202.60213H5.4004Z','reduce','_adjHandlerPointerMove','_rerouteConnectorLine','DependentOn','unit','LEFT','_activeShapeModel','Module','gdRefY','sheet.command.set-shape-text-font-size-decrease','doc.image-clip.shape-picker.component','pipe','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','changeShapeType','5094207vcVilb','_isHighlighted','getInverseCoord','div','createElement','DRAWING_SMART_ART','_reset','startArrow','_urlImageService','sheets-shape-ui.insertShape','changeEnd$','clearControl$','getSheetCommandTarget','_executeResizeCommand','_loadAndSetImage','@univerjs/sheets-drawing-ui','length','addObject','icon','FOCUSING_COMMON_DRAWINGS','ThemeService','sheetTransform','RemoveSheetsShapeMutation','isEditing','idSuffix','UPDATE','from','onSteady','getShapeData','DRAWING_UNIT','clip-adj-','HorizontalAlign','_insertingShapeKeys','_getShapeAdjustPointListById','getBasicShapeRelation','shapeId','_registerMoveHandler','UniverDocs','point','_generateCutPasteMutations','clipByShape','createInternalEditorID','SheetInterceptorService','_baseShapeLeft','VIEW_MAIN','sheets-shape-ui.permission.editErr','pushUndoRedo','_context','draw','entries','DRAWING_GROUP','relation','prstGeomAdjValues','ComponentManager','params','src','_sidebarService','_connectionSiteObjects','sheets-shape-ui.toggleTextVertical','1yiVPtU','UniverSheetsShapePlugin','_clipService','sheets-shape-ui.toolbar.verticalAlignMode.main','UniverLicensePlugin','classType','onRendered','invert','startY','sheets-shape-ui.config','univerjs-icon\x20univerjs-icon-','getDrawingVisible','_transform','_loadShapePictureFill','_transformCalculateSrcRect','exports','fontSize','BOTTOM','getDrawingSearch','dispose','_shapeRenderController','LocaleService','set','bind','_subUnitId','_addShapeConnectorHandlerObject','M1.33203\x205.40015C1.33203\x204.55622\x202.01618\x203.87207\x202.86011\x203.87207H10.5998C11.4437\x203.87207\x2012.1278\x204.55622\x2012.1278\x205.40015V13.1398C12.1278\x2013.9837\x2011.4437\x2014.6679\x2010.5998\x2014.6679H2.86011C2.01618\x2014.6679\x201.33203\x2013.9837\x201.33203\x2013.1398V5.40015ZM2.86011\x205.14217C2.71763\x205.14217\x202.60213\x205.25767\x202.60213\x205.40015V13.1398C2.60213\x2013.2823\x202.71763\x2013.3978\x202.86011\x2013.3978H10.5998C10.7422\x2013.3978\x2010.8577\x2013.2823\x2010.8577\x2013.1398V5.40015C10.8577\x205.25767\x2010.7422\x205.14217\x2010.5998\x205.14217H2.86011Z','IconManager','getShapeTypeById','cxnIndex','create','getShapeDataById','@univerjs/sheets-ui','fillImageSourceType','sheets-shape-ui.rotateRight90','subscribe','redo','setPrstGeomAdjValues','endConnectionDetection','canvas','ancestorTransform','DRAWING_TABLE','SHEET_SHAPE_UI_PLUGIN','_calculateFreeEndpointAngle','evenodd','abs','getEndConnectInfo','Disposable','useEffect','keys','_contextService','setSrcRect','vertical','completeEditing','memo','onPointerDown$','clearActiveDrawingObjects','endArrow','top','_config','sheets-shape-ui.imagePanel.crop.shape','SHEET_VIEWPORT_KEY','flipX','plainShapeTextToDocumentData','_activeShapeInfo','object','getColorFromTheme','cxnPointFill','isStartConnectorPoint','Circle','startX','complete','ObjectListPanelBase','AlignBottomIcon','SheetScrollManagerService','colorChannel1','sheets-shape-ui','add$','_activeImageId','initTransformer','DrawingCommonPanel','ShapeDefaultConfig','DrawingApplyType','end','_registerComponents','Shape','DRAWING_OBJECT_LAYER_INDEX','sheets-shape-ui.objectListPanel.title','_currentUniverService','shapeText','executeCommand','visible','discreteRangeToRange','_sidebarDisposable','drawingType','LAYOUT','_currentScene','getFocusDrawings','@univerjs-pro/sheets-shape-ui','SheetSkeletonService','oKey','onDblclick$','displayName','getStartConnectInfo','getCurrentScrollState','floor','http://www.w3.org/2000/svg','getAdjustValueByName','ShapeGroupEnum','sheets-shape-ui.toolbar.horizontalAlignMode.main','description','_generateCopyPasteMutations','473242oGbCUo','getInterceptPoints','SetSheetDrawingCommand','CUT','getConnectionSiteList','_isConnecting','getZoomRatio','getCurrentUnitOfType','UniverDocsUi','setContextValue','featurePluginUpdateNotification','ShapeFillEnum','#4285f4','getShapeType','adjHandleSize','_drawRichText','_initSheetChange','objects','_activeShapeId','width','asObservable','decorate','_clearShapeAdjustControls','_handleConnectorPointerUp','toDisposable','isHitLine','ShapeIcon','image','textRuns','_menuManagerService','setCanUseShapeClip','getCurrentLastSelection','multiply','_lastEditingShapeKey','_handleFreeEndpointPointerUp','svg','shouldAllowShapeTextEditorHostSizeShrink','_sheetSkeletonService','subscribeEvent','getCurrentSkeleton','makeDirty','type','_sheetDrawingShapeRenderController','close','blockExecuteWithoutPermission','DRAWING_SHAPE','_cxnIndex','_insertShapes','_registerImageShapeClipDelegate','1645668QFpMtq','@univerjs/docs','UniverInstanceType','_initEditingParams','viewBound','_baseLeft','CopyDoubleIcon','onload','_sheetCanvasPopManagerService','_baseShapeTop','getDrawingPoints','getCurrentTypeOfUnit$','MIDDLE','unsubscribe','getSheetId','updateDocumentDataMargin','ToggleSheetsShapeFlipCommand','PictureFill','_openShapeEditPanel','interceptor','getBatchAddOp','setShapeData','_disposePopups','@univerjs/ui','_adjHandlerPointerUp','body','_baseDrawingRect','getDrawingShapeKeyByDrawingSearch','DRAWING_CHART','_cxtHandlerPointerUp','has','ShapePickerPanel','_draggingConnectorId','getObjectListPanelSectionIdForDrawingType','_executeConnectionCommand','_renderManagerService','copyType','UniverIcon','gdRefAng','_addControl','sheet.command.update-shape-data','SetDrawingArrangeCommand','_cxtHandlerPointerMove','isArray','doc','cxnPointRadius','useDependency','getSheetBySheetId','TOP','_getConnectionSiteAngle','getMatrix','targetShapeId','contentVerticalOffset','subscribeContextValue$','UniverSheetsDrawingUIPlugin','UniverSheetsUi','drawingId','CENTER','adjustValues','_isOpenedShapeEditPanel','routeConnectorLineShape','adjName','_findNearestConnectionSite','SheetsSelectionsService','updateContext','_drawingType','backward','getConnectionInfo','cxnPointStroke','filter','focusDrawing','CROSSHAIR','DrawingTypeEnum','sheet.command.set-shape-text-horizontal-align','toStringTag','_initSelection','setCursor','getShapeTextRect','prstGeom','getDrawingData','_addShapeAdjustControl','registerFeatureMenu','sheets-shape-ui.align.bottom','ISheetDrawingService','toPrimitive','SheetPermissionCheckController','getContextValue','next','getDrawingOrder','getShapeTextData','_getConnectPointInfo','IRenderManagerService','onPointerUp$','getMenuHiddenObservable','fill','Injector','isInGroup','onCommandExecuted','RemoveSheetDrawingCommand','ang','getShapePopupMenus','SHAPE_TEXT','_initPrinting','DocumentViewModel','gdRefX','_baseHeight','index','offsetX','#bcbcbc','_currentConnectionTarget','VIEW_MAIN_LEFT_TOP','UniverProLicense','_findShapeAtPoint','DocCanvasPopManagerService','UUID','_clearShapeConnectorHandlerObjects','_getDrawingRect','getShapeModel','Line','_sheetPrintInterceptorService','REMOVE','DocSelectionManagerService','shape-text-','preValue','getCurrentUnitInfo','useObservable','_sheetsShapeService','path','_imageShapeClipController','_componentManager','resolveShapeTextEditorBehaviorShapeData','SetShapeDrawingDataCommand','includes','_registerDrawingMoveHandler','get','text','gradientEndColor','_adjName','permissionCheckWithoutRange','_connectorObjects','attachTransformerTo','InsertSheetsShapeMutation','_getOrCreateShapeModel','OBJECT_LIST_FLOATING_SECTION_ID'];_0x1280=function(){return _0x1ac895;};return _0x1280();}(function(_0x30a7aa,_0x3def7b){const _0x442e23=_0x1c45,_0xff58ca=_0x30a7aa();while(!![]){try{const _0x4ba460=-parseInt(_0x442e23(0x13c))/0x1*(parseInt(_0x442e23(0x411))/0x2)+parseInt(_0x442e23(0x416))/0x3*(-parseInt(_0x442e23(0x318))/0x4)+parseInt(_0x442e23(0x3e5))/0x5+-parseInt(_0x442e23(0x1dd))/0x6+parseInt(_0x442e23(0x1ac))/0x7+parseInt(_0x442e23(0x3b2))/0x8*(-parseInt(_0x442e23(0x101))/0x9)+parseInt(_0x442e23(0x2e1))/0xa;if(_0x4ba460===_0x3def7b)break;else _0xff58ca['push'](_0xff58ca['shift']());}catch(_0x2b1949){_0xff58ca['push'](_0xff58ca['shift']());}}}(_0x1280,0x8c942),function(_0x15e4cb,_0x51d5dc){const _0x742a83=_0x1c45;typeof exports==_0x742a83(0x17d)&&typeof module<'u'?_0x51d5dc(exports,require('@univerjs/docs-ui'),require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define==_0x742a83(0x3c1)&&define['amd']?define([_0x742a83(0x14b),'@univerjs/docs-ui',_0x742a83(0x1f4),_0x742a83(0x2f9),_0x742a83(0x296),_0x742a83(0x39c),'@univerjs/core','@univerjs/sheets','@univerjs/drawing',_0x742a83(0x351),_0x742a83(0x15c),_0x742a83(0x42a),'@univerjs/drawing-ui','@univerjs/sheets-drawing',_0x742a83(0x1de),_0x742a83(0x3d3),'@univerjs-pro/license',_0x742a83(0x110),_0x742a83(0x3d7)],_0x51d5dc):(_0x15e4cb=typeof globalThis<'u'?globalThis:_0x15e4cb||self,_0x51d5dc(_0x15e4cb[_0x742a83(0x26f)]={},_0x15e4cb[_0x742a83(0x1b4)],_0x15e4cb[_0x742a83(0x2a4)],_0x15e4cb['UniverProEngineShape'],_0x15e4cb[_0x742a83(0x412)],_0x15e4cb[_0x742a83(0x304)],_0x15e4cb['UniverCore'],_0x15e4cb[_0x742a83(0x3ce)],_0x15e4cb['UniverDrawing'],_0x15e4cb[_0x742a83(0x293)],_0x15e4cb[_0x742a83(0x214)],_0x15e4cb[_0x742a83(0x42a)],_0x15e4cb[_0x742a83(0x350)],_0x15e4cb['UniverSheetsDrawing'],_0x15e4cb[_0x742a83(0x126)],_0x15e4cb['React'],_0x15e4cb[_0x742a83(0x24c)],_0x15e4cb[_0x742a83(0x431)],_0x15e4cb[_0x742a83(0x3bf)]));}(this,function(_0x4f45b0,_0x2ef8df,_0x2b76f2,_0x360390,_0x502542,_0x2cb023,_0x3fe9b6,_0x12af8f,_0xcd0f0e,_0x122d5a,_0x48ecbb,_0x14dd2b,_0x3cfff1,_0x1ba3d5,_0x485986,_0x5817cb,_0x86dc86,_0x20f931,_0x6a3016){const _0x2ea0c4=_0x1c45;Object[_0x2ea0c4(0x2db)](_0x4f45b0,Symbol[_0x2ea0c4(0x227)],{'value':_0x2ea0c4(0xfa)});function _0x18f81e(_0x33dee0,_0x4ba325){const _0x4b18d9=_0x2ea0c4;let _0x214c59={};for(let _0x36e1d2 of Object['keys'](_0x4ba325)){let _0x2d270b=_0x4ba325[_0x36e1d2],_0x4a0f35=_0x33dee0[_0x36e1d2];if(_0x2d270b!==void 0x0){if(_0x4a0f35===void 0x0){_0x214c59[_0x36e1d2]=void 0x0;continue;}typeof _0x2d270b=='object'&&_0x2d270b&&!Array[_0x4b18d9(0x208)](_0x2d270b)&&typeof _0x4a0f35=='object'&&_0x4a0f35&&!Array[_0x4b18d9(0x208)](_0x4a0f35)?_0x214c59[_0x36e1d2]=_0x18f81e(_0x4a0f35,_0x2d270b):_0x214c59[_0x36e1d2]=_0x4a0f35;}}return _0x214c59;}let _0x4a4f06={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x205),'handler':(_0x29b655,_0x48276c)=>{const _0x3bc79d=_0x2ea0c4;let _0x4401cc=_0x29b655[_0x3bc79d(0x263)](_0x2cb023['SheetsShapeService']),{unitId:_0x3a1a1c,subUnitId:_0x316050,shapeType:_0xbf309,shapeId:_0x35d7f8,shapeData:_0x48a14a,oldShapeJSON:_0x4aa171}=_0x48276c;if(!_0x4401cc['getShapeModel'](_0x3a1a1c,_0x316050,_0x35d7f8))return!0x1;let _0x202413=_0x29b655[_0x3bc79d(0x263)](_0x3fe9b6[_0x3bc79d(0x2ec)]),_0x3c8c21=_0x29b655[_0x3bc79d(0x263)](_0x3fe9b6[_0x3bc79d(0x33b)]),{oldShapeType:_0x5930a0,oldShapeData:_0x5735bb={}}=_0x4aa171,_0x18de61=_0x18f81e(_0x5735bb,_0x48a14a||{}),_0x1b0eef={'id':_0x2cb023[_0x3bc79d(0x2d7)]['id'],'params':{'unitId':_0x3a1a1c,'subUnitId':_0x316050,'shapeId':_0x35d7f8,'shapeType':_0xbf309,'shapeData':_0x48a14a}},_0x5d783d={'id':_0x2cb023['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x3a1a1c,'subUnitId':_0x316050,'shapeId':_0x35d7f8,'shapeType':_0x5930a0,'shapeData':_0x18de61}};return _0x202413[_0x3bc79d(0x38f)](_0x1b0eef['id'],_0x1b0eef[_0x3bc79d(0x137)])?(_0x3c8c21[_0x3bc79d(0x12f)]({'unitID':_0x3a1a1c,'undoMutations':[_0x5d783d],'redoMutations':[_0x1b0eef]}),!0x0):!0x1;}};function _0x2ed581(_0x27d7e6,_0x1f7710,_0x549de6,_0x3648bf,_0xb0e694,_0x2f4785){let _0x5992ea={'unitId':_0x1f7710,'subUnitId':_0x549de6,'shapeId':_0x3648bf,'shapeData':_0x2f4785,'oldShapeJSON':_0xb0e694};return _0x27d7e6['executeCommand'](_0x4a4f06['id'],_0x5992ea);}function _0x20ea5c(_0x53f8be,_0x4fb8dc,_0x1fd21d,_0x5262fb,_0x47dd58,_0x4024c8){const _0x2bbff3=_0x2ea0c4;let _0x64a0a9={'unitId':_0x4fb8dc,'subUnitId':_0x1fd21d,'shapeId':_0x5262fb,'shapeData':_0x4024c8,'oldShapeJSON':_0x47dd58};return _0x53f8be[_0x2bbff3(0x196)](_0x4a4f06['id'],_0x64a0a9);}function _0x36713a(_0x473c10){'@babel/helpers - typeof';const _0x1db4fd=_0x2ea0c4;return _0x36713a=typeof Symbol=='function'&&typeof Symbol[_0x1db4fd(0x2aa)]==_0x1db4fd(0x41c)?function(_0x4d98b0){return typeof _0x4d98b0;}:function(_0x10a2ae){const _0x281e8f=_0x1db4fd;return _0x10a2ae&&typeof Symbol=='function'&&_0x10a2ae[_0x281e8f(0x271)]===Symbol&&_0x10a2ae!==Symbol['prototype']?_0x281e8f(0x41c):typeof _0x10a2ae;},_0x36713a(_0x473c10);}function _0x82e66a(_0x7d77e4,_0x14a996){const _0x377853=_0x2ea0c4;if(_0x36713a(_0x7d77e4)!=_0x377853(0x17d)||!_0x7d77e4)return _0x7d77e4;var _0x43087b=_0x7d77e4[Symbol[_0x377853(0x231)]];if(_0x43087b!==void 0x0){var _0xbb4a6f=_0x43087b[_0x377853(0x3e9)](_0x7d77e4,_0x14a996||'default');if(_0x36713a(_0xbb4a6f)!=_0x377853(0x17d))return _0xbb4a6f;throw TypeError(_0x377853(0x2f5));}return(_0x14a996===_0x377853(0x3eb)?String:Number)(_0x7d77e4);}function _0x1b09b4(_0x4b5cff){const _0x5ddb92=_0x2ea0c4;var _0x1b4a2d=_0x82e66a(_0x4b5cff,_0x5ddb92(0x3eb));return _0x36713a(_0x1b4a2d)=='symbol'?_0x1b4a2d:_0x1b4a2d+'';}function _0x144b44(_0x8552ee,_0x9b4e2d,_0x446cf4){const _0x42c9fb=_0x2ea0c4;return(_0x9b4e2d=_0x1b09b4(_0x9b4e2d))in _0x8552ee?Object[_0x42c9fb(0x2db)](_0x8552ee,_0x9b4e2d,{'value':_0x446cf4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8552ee[_0x9b4e2d]=_0x446cf4,_0x8552ee;}function _0x2ff49e(_0x5675f7,_0x26a3a0,_0x470f53){const _0x508e26=_0x2ea0c4;var _0x1a424e;let _0x1e17d5=(0x0,_0x502542[_0x508e26(0x25f)])(_0x5675f7,{..._0x26a3a0,'dataModel':{...(_0x1a424e=_0x26a3a0[_0x508e26(0x299)])==null?{}:_0x1a424e,..._0x470f53?{'doc':_0x470f53}:null}}),_0x52d8e3=(0x0,_0x502542['resolveShapeTextEditorWrapStrategy'])(_0x1e17d5);return{'clip':(0x0,_0x502542['shouldClipShapeTextDocument'])(_0x1e17d5,_0x52d8e3),'wrapStrategy':_0x52d8e3};}var _0x2264dd=class extends _0x122d5a['Shape']{constructor(_0x2fee86,_0x1e9488){const _0x543c59=_0x2ea0c4;super(_0x2fee86,_0x1e9488),_0x144b44(this,_0x543c59(0x32e),void 0x0),_0x144b44(this,_0x543c59(0x14a),!0x0),_0x144b44(this,_0x543c59(0x21e),_0x3fe9b6[_0x543c59(0x225)][_0x543c59(0x1d9)]),_0x144b44(this,_0x543c59(0x30a),!0x0),this[_0x543c59(0x32e)]={..._0x1e9488},this[_0x543c59(0x3f4)]();}[_0x2ea0c4(0x3f4)](){const _0x4398e6=_0x2ea0c4;this['onTransformChange$'][_0x4398e6(0x1d2)](_0x511041=>{this['_updateSrcRectByTransform'](_0x511041);});}[_0x2ea0c4(0x37d)](_0xd548a1){const _0x468524=_0x2ea0c4;this['_props'][_0x468524(0x22b)]=_0xd548a1;}[_0x2ea0c4(0x38c)](_0x405d04){const _0x280219=_0x2ea0c4;this[_0x280219(0x32e)]['isEditing']=_0x405d04,this['makeDirty'](!0x0);}get[_0x2ea0c4(0x429)](){const _0x419a4b=_0x2ea0c4;return this[_0x419a4b(0x32e)]['unitId'];}get[_0x2ea0c4(0x3aa)](){const _0x38a976=_0x2ea0c4;return this[_0x38a976(0x32e)]['subUnitId'];}[_0x2ea0c4(0x2e4)](_0x3db0dd){const _0xd54c2f=_0x2ea0c4;if(this[_0xd54c2f(0x32e)][_0xd54c2f(0x359)]==null||!this[_0xd54c2f(0x14a)])return;let {width:_0x4e03e3,height:_0x28fe59}=this,{width:_0x5006a6=0x0,height:_0x23adf9=0x0}=_0x3db0dd[_0xd54c2f(0x258)],{left:_0x44f422=0x0,top:_0x16c968=0x0,right:_0x2713fc=0x0,bottom:_0x2eb99b=0x0}=this['_props'][_0xd54c2f(0x359)],_0x1c2245=_0x44f422,_0x3fb901=_0x16c968,_0x43e735=_0x2713fc,_0x247a04=_0x2eb99b,_0x1209c5=!0x1;if(_0x5006a6!==0x0&&_0x5006a6!==_0x4e03e3){let _0x148a12=_0x44f422/_0x5006a6,_0x21f8d8=_0x2713fc/_0x5006a6;_0x1c2245=_0x4e03e3*_0x148a12,_0x43e735=_0x4e03e3*_0x21f8d8,_0x1209c5=!0x0;}if(_0x23adf9!==0x0&&_0x23adf9!==_0x28fe59){let _0x5dba62=_0x16c968/_0x23adf9,_0x3a650e=_0x2eb99b/_0x23adf9;_0x3fb901=_0x28fe59*_0x5dba62,_0x247a04=_0x28fe59*_0x3a650e,_0x1209c5=!0x0;}_0x1209c5&&this['setSrcRect']({'left':_0x1c2245,'top':_0x3fb901,'right':_0x43e735,'bottom':_0x247a04});}['setSrcRect'](_0xaf58d5){const _0x355146=_0x2ea0c4;this['_props'][_0x355146(0x359)]=_0xaf58d5,this[_0x355146(0x1d4)](!0x0);}[_0x2ea0c4(0x2c5)](_0x139e6c){const _0x152ae2=_0x2ea0c4;this['_props'][_0x152ae2(0x1c7)]=_0x139e6c,this[_0x152ae2(0x1d4)](!0x0);}set[_0x2ea0c4(0x3ec)](_0x46797a){this['_transform']=_0x46797a;}get[_0x2ea0c4(0x3ec)](){const _0x220b15=_0x2ea0c4;this[_0x220b15(0x148)]||this['_setTransForm']();let _0x42d852=this[_0x220b15(0x148)]['clone']();return this[_0x220b15(0x3d5)](_0x42d852);}get['shapeModel'](){const _0x5148ae=_0x2ea0c4;return this[_0x5148ae(0x32e)][_0x5148ae(0x377)];}get['shapeId'](){const _0xb6df93=_0x2ea0c4;return this[_0xb6df93(0x32e)][_0xb6df93(0x124)];}get[_0x2ea0c4(0x141)](){const _0x51349b=_0x2ea0c4;return _0x122d5a[_0x51349b(0x31d)]['SHAPE'];}[_0x2ea0c4(0x3a6)](_0x22d3a7,_0x4e0d10,_0x511b85,_0x2b2c4d){const _0x27b02c=_0x2ea0c4;let _0x358bf9=this[_0x27b02c(0x32e)]['shapeModel'];if(!_0x358bf9||!_0x4e0d10)return;let _0x2debf0=_0x511b85==null?this['width']:_0x511b85,_0x2f6288=_0x2b2c4d==null?this[_0x27b02c(0x403)]:_0x2b2c4d,_0x3cd4db={'shapeType':_0x358bf9[_0x27b02c(0x1b9)](),'width':_0x2debf0,'height':_0x2f6288},_0x2502af={'renderMode':_0x360390['ShapeRenderModeEnum'][_0x27b02c(0x392)],'oKey':this[_0x27b02c(0x1a0)],'image':this[_0x27b02c(0x32e)]['image'],'angle':this[_0x27b02c(0x2a0)]};_0x358bf9[_0x27b02c(0x21d)](_0x3cd4db),_0x22d3a7['save']();let _0x1d91f6={'top':0x0,'left':0x0,'width':_0x2debf0,'height':_0x2f6288};_0x358bf9[_0x27b02c(0x343)](_0x22d3a7,_0x1d91f6,_0x2502af),_0x22d3a7['restore']();let _0x14538a=_0x358bf9[_0x27b02c(0x236)](),_0x245f00=_0x358bf9[_0x27b02c(0x22a)](_0x1d91f6),_0x38665e=_0x358bf9[_0x27b02c(0x31a)]();if(_0x14538a&&_0x245f00&&!_0x38665e){_0x22d3a7[_0x27b02c(0x289)](),this['getState']()[_0x27b02c(0x17a)]&&_0x22d3a7['scale'](-0x1,0x1);let _0x587444=_0x2debf0/0x2,_0x24a830=_0x2f6288/0x2;_0x22d3a7['translate'](-_0x587444,-_0x24a830),_0x22d3a7['beginPath'](),this[_0x27b02c(0x3bd)](_0x22d3a7,_0x14538a,_0x245f00),_0x22d3a7[_0x27b02c(0x2b2)]();}}['getDrawingPoints'](_0x2c7684){}[_0x2ea0c4(0x3bd)](_0x2bc266,_0xc88126,_0x14cec9){const _0x256842=_0x2ea0c4;var _0x5a9145;this[_0x256842(0x32e)][_0x256842(0x118)]||(!((_0x5a9145=_0xc88126[_0x256842(0x299)])!=null&&_0x5a9145[_0x256842(0x209)])&&_0x256842(0x285)in _0xc88126&&_0xc88126[_0x256842(0x285)]===!0x1?this[_0x256842(0x3a4)](_0x2bc266,_0xc88126,_0x14cec9):this['_drawRichText'](_0x2bc266,_0xc88126,_0x14cec9));}['_drawSimpleText'](_0x6b16fa,_0x53ffa0,_0x54b088){const _0x4955c6=_0x2ea0c4;var _0x431853;this['_drawRichText'](_0x6b16fa,{..._0x53ffa0,'text':(_0x431853=_0x53ffa0[_0x4955c6(0x264)])==null?'':_0x431853,'dataModel':{'doc':(0x0,_0x502542[_0x4955c6(0x17b)])(_0x53ffa0,_0x4955c6(0x29c)+this[_0x4955c6(0x1a0)])}},_0x54b088);}[_0x2ea0c4(0x1bb)](_0x1b634c,_0x572362,_0x4b1200){const _0x21b7c2=_0x2ea0c4;var _0x12f8a6,_0x37e80c;let _0x4033a2=this[_0x21b7c2(0x32e)][_0x21b7c2(0x274)];if(!_0x572362[_0x21b7c2(0x299)]||!_0x4033a2)return;let _0x1a826e=(0x0,_0x502542[_0x21b7c2(0x381)])(_0x572362[_0x21b7c2(0x299)]);if(!_0x1a826e)return;let _0x395eca=_0x1a826e[_0x21b7c2(0x209)],_0x15138a=(_0x12f8a6=_0x1a826e['va'])==null?_0x3fe9b6[_0x21b7c2(0x306)][_0x21b7c2(0x20d)]:_0x12f8a6,_0x236c5c=(_0x37e80c=_0x1a826e['ha'])==null?_0x3fe9b6[_0x21b7c2(0x120)][_0x21b7c2(0xf8)]:_0x37e80c,_0x1de64e=_0x2ff49e(this[_0x21b7c2(0x32e)][_0x21b7c2(0x377)]['getShapeData'](),_0x572362,_0x395eca),_0x23449c=_0x572362['isHorizontal'],_0xb36ab1=new _0x3fe9b6['DocumentDataModel']((0x0,_0x502542[_0x21b7c2(0x2c4)])(_0x395eca,{'isHorizontal':_0x23449c!==!0x1,'textRect':_0x4b1200,'verticalAlign':_0x15138a,'horizontalAlign':_0x236c5c,'wrapStrategy':_0x1de64e[_0x21b7c2(0x396)]})),_0x5dac98=new _0x122d5a[(_0x21b7c2(0x244))](_0xb36ab1),_0x42ae59=_0x122d5a['DocumentSkeleton'][_0x21b7c2(0x15a)](_0x5dac98,_0x4033a2);_0x42ae59['calculate']();let _0x2bff73=_0x42ae59['getActualSize']()['actualHeight'],_0x2d339f=(0x0,_0x502542[_0x21b7c2(0x2ab)])({'contentHeight':_0x2bff73,'verticalAlign':_0x15138a,'viewportHeight':_0x4b1200[_0x21b7c2(0x403)]});_0xb36ab1[_0x21b7c2(0x383)]({'pageSize':{'width':_0x23449c===!0x1?_0x4b1200['height']:_0x4b1200[_0x21b7c2(0x1bf)],'height':_0x2d339f['contentHeight']}}),_0xb36ab1[_0x21b7c2(0x1ec)]({'t':_0x2d339f[_0x21b7c2(0x3ef)]}),_0x42ae59['calculate']();let _0x1c8e01=new _0x122d5a[(_0x21b7c2(0x312))](_0x21b7c2(0x257)+this[_0x21b7c2(0x1a0)],_0x42ae59,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x1c8e01[_0x21b7c2(0x27c)](_0x4b1200[_0x21b7c2(0x1bf)],_0x2d339f[_0x21b7c2(0x2fa)]),_0x1b634c[_0x21b7c2(0x289)](),_0x1b634c[_0x21b7c2(0x2fb)](_0x4b1200['left'],_0x4b1200[_0x21b7c2(0x176)]),_0x1de64e[_0x21b7c2(0x3a1)]&&(_0x1b634c['beginPath'](),_0x1b634c['rect'](0x0,_0x2d339f[_0x21b7c2(0x2ae)],_0x4b1200[_0x21b7c2(0x1bf)],_0x2d339f[_0x21b7c2(0x2d1)]),_0x1b634c[_0x21b7c2(0x3a1)]()),_0x2d339f[_0x21b7c2(0x211)]&&_0x1b634c[_0x21b7c2(0x2fb)](0x0,_0x2d339f[_0x21b7c2(0x211)]),_0x1c8e01[_0x21b7c2(0x131)](_0x1b634c),_0x1b634c['restore'](),_0x1c8e01[_0x21b7c2(0x14f)](),_0x42ae59[_0x21b7c2(0x14f)](),_0x5dac98[_0x21b7c2(0x14f)](),_0xb36ab1[_0x21b7c2(0x14f)]();}['render'](_0x5e847c,_0x55853d,_0x35c348=!0x1){const _0xa68154=_0x2ea0c4;if(!this['visible'])return this[_0xa68154(0x1d4)](!0x1),this;let {width:_0x3e6cd1,height:_0x42380a,left:_0x465c27,top:_0x1ab945}=this,_0x433315=this[_0xa68154(0x372)]();if(_0x3e6cd1=_0x433315[_0xa68154(0x1bf)],_0x42380a=_0x433315[_0xa68154(0x403)],_0x465c27=_0x433315[_0xa68154(0x2b3)],_0x1ab945=_0x433315[_0xa68154(0x176)],this[_0xa68154(0x2c0)](_0x55853d)){let {top:_0x240063,left:_0x4efd6c,bottom:_0x525e28,right:_0x3cf31d}=_0x55853d[_0xa68154(0x1e1)];if(_0x3e6cd1+this[_0xa68154(0x426)]+_0x465c27<_0x4efd6c||_0x3cf31d<_0x465c27||_0x42380a+this[_0xa68154(0x426)]+_0x1ab945<_0x240063||_0x525e28<_0x1ab945)return this;}let _0x11fc52=_0x465c27+_0x3e6cd1/0x2,_0x2bc0e9=_0x1ab945+_0x42380a/0x2,_0x3099d0=this[_0xa68154(0x3ec)]['getMatrix']();if(this['_props']['isEditing']){let _0x10bb4e=this[_0xa68154(0x39b)](),_0x3c3280=new _0x122d5a[(_0xa68154(0x427))]();_0x3c3280[_0xa68154(0x2d6)]({..._0x10bb4e}),_0x3099d0=_0x3c3280['getMatrix']();}return _0x5e847c[_0xa68154(0x289)](),this['_props'][_0xa68154(0x377)]['isRenderLinePointsMode']===!0x0||_0x5e847c[_0xa68154(0x3ec)](_0x3099d0[0x0],_0x3099d0[0x1],_0x3099d0[0x2],_0x3099d0[0x3],_0x11fc52,_0x2bc0e9),this[_0xa68154(0x3a6)](_0x5e847c,_0x55853d,_0x3e6cd1,_0x42380a),_0x5e847c[_0xa68154(0x2b2)](),this[_0xa68154(0x1d4)](!0x1),this;}[_0x2ea0c4(0x103)](_0x28b4bf){const _0x1349ab=_0x2ea0c4;let {left:_0x2ed4cf,top:_0x34e37b,width:_0x325ae5,height:_0x593035}=this[_0x1349ab(0x372)](),_0x3bee84=this[_0x1349ab(0x3ec)][_0x1349ab(0x20f)](),_0x11d5e6=_0x2ed4cf+_0x325ae5/0x2,_0x3545d6=_0x34e37b+_0x593035/0x2,_0x21678f=new _0x122d5a['Transform']([_0x3bee84[0x0],_0x3bee84[0x1],_0x3bee84[0x2],_0x3bee84[0x3],_0x11d5e6,_0x3545d6]),_0xabf921=this[_0x1349ab(0x36e)]();return(this[_0x1349ab(0x23d)]&&(_0xabf921==null?void 0x0:_0xabf921['classType'])===_0x122d5a[_0x1349ab(0x31d)][_0x1349ab(0x3e4)]?_0xabf921[_0x1349ab(0x164)][_0x1349ab(0x1cc)](_0x21678f):_0x21678f)[_0x1349ab(0x143)]()[_0x1349ab(0x356)](_0x28b4bf);}[_0x2ea0c4(0x3f0)](_0x95239a){const _0x48d3d1=_0x2ea0c4;let {left:_0x31b17e,top:_0x106b05,width:_0x1f6e94,height:_0x4ed984}=this[_0x48d3d1(0x372)](),_0x3c41ce=_0x31b17e+_0x1f6e94/0x2,_0x3d1e16=_0x106b05+_0x4ed984/0x2,_0x4d1f37=this[_0x48d3d1(0x3ec)][_0x48d3d1(0x20f)](),_0x57fe69=new _0x122d5a[(_0x48d3d1(0x427))]([_0x4d1f37[0x0],_0x4d1f37[0x1],_0x4d1f37[0x2],_0x4d1f37[0x3],_0x3c41ce,_0x3d1e16]),_0x599ebf=this[_0x48d3d1(0x36e)](),_0x16d2c8=(this[_0x48d3d1(0x23d)]&&(_0x599ebf==null?void 0x0:_0x599ebf[_0x48d3d1(0x141)])===_0x122d5a[_0x48d3d1(0x31d)][_0x48d3d1(0x3e4)]?_0x599ebf[_0x48d3d1(0x164)]['multiply'](_0x57fe69):_0x57fe69)['invert']()[_0x48d3d1(0x356)](_0x95239a),_0x4726e5=_0x1f6e94/0x2,_0x228cc1=_0x4ed984/0x2,_0x109323=this['_props'][_0x48d3d1(0x377)];return _0x109323&&_0x109323[_0x48d3d1(0x31a)]()?_0x109323[_0x48d3d1(0x1c5)](_0x16d2c8['x'],_0x16d2c8['y'],_0x1f6e94,_0x4ed984):_0x16d2c8['x']>=-_0x4726e5-this[_0x48d3d1(0x426)]/0x2&&_0x16d2c8['x']<=_0x4726e5+this['strokeWidth']/0x2&&_0x16d2c8['y']>=-_0x228cc1-this[_0x48d3d1(0x426)]/0x2&&_0x16d2c8['y']<=_0x228cc1+this[_0x48d3d1(0x426)]/0x2;}[_0x2ea0c4(0x14f)](){const _0x22d5cc=_0x2ea0c4;this['_props'][_0x22d5cc(0x377)]=null,super[_0x22d5cc(0x14f)]();}},_0x1d0af4=class extends _0x122d5a['Shape']{constructor(_0x3c71da,_0x56ca15){const _0x3cbb39=_0x2ea0c4;super(_0x3c71da,_0x56ca15),_0x144b44(this,_0x3cbb39(0x26e),null),_0x144b44(this,_0x3cbb39(0x266),null),_0x144b44(this,'_unitId',null),_0x144b44(this,_0x3cbb39(0x154),null),_0x56ca15&&this[_0x3cbb39(0x2ca)](_0x56ca15);}[_0x2ea0c4(0x14e)](){const _0x15ba1a=_0x2ea0c4;return{'unitId':this[_0x15ba1a(0x434)],'subUnitId':this[_0x15ba1a(0x154)],'drawingId':this[_0x15ba1a(0x26e)]};}[_0x2ea0c4(0x2ca)](_0x285b23){const _0x2e73f7=_0x2ea0c4;_0x285b23[_0x2e73f7(0x124)]!==void 0x0&&(this['_shapeId']=_0x285b23[_0x2e73f7(0x124)]),_0x285b23[_0x2e73f7(0x21a)]!==void 0x0&&(this[_0x2e73f7(0x266)]=_0x285b23['adjName']),_0x285b23['unitId']!==void 0x0&&(this['_unitId']=_0x285b23[_0x2e73f7(0x429)]),_0x285b23[_0x2e73f7(0x3aa)]!==void 0x0&&(this[_0x2e73f7(0x154)]=_0x285b23[_0x2e73f7(0x3aa)]),this[_0x2e73f7(0x413)]({'width':_0x285b23[_0x2e73f7(0x1bf)],'height':_0x285b23[_0x2e73f7(0x403)]});}[_0x2ea0c4(0x3a6)](_0x3d70fd){const _0x53191e=_0x2ea0c4;_0x122d5a['Circle'][_0x53191e(0x385)](_0x3d70fd,{'radius':_0x360390['ShapeDefaultConfig'][_0x53191e(0x1ba)],'fill':_0x360390[_0x53191e(0x18d)][_0x53191e(0x2fc)],'stroke':_0x360390[_0x53191e(0x18d)][_0x53191e(0x3ab)],'strokeWidth':0x1,'evented':!0x0});}};function _0x26d55f(_0x526ec2,_0x390ec5){return function(_0x286712,_0x1100ee){_0x390ec5(_0x286712,_0x1100ee,_0x526ec2);};}function _0x20d714(_0xbbf2a3,_0x474856,_0x291257,_0x5df469){const _0xefbf49=_0x2ea0c4;var _0x3e70dc=arguments[_0xefbf49(0x111)],_0x91865a=_0x3e70dc<0x3?_0x474856:_0x5df469===null?_0x5df469=Object[_0xefbf49(0x2cf)](_0x474856,_0x291257):_0x5df469,_0x36dd76;if(typeof Reflect==_0xefbf49(0x17d)&&typeof Reflect[_0xefbf49(0x1c1)]==_0xefbf49(0x3c1))_0x91865a=Reflect[_0xefbf49(0x1c1)](_0xbbf2a3,_0x474856,_0x291257,_0x5df469);else{for(var _0x2c87cc=_0xbbf2a3[_0xefbf49(0x111)]-0x1;_0x2c87cc>=0x0;_0x2c87cc--)(_0x36dd76=_0xbbf2a3[_0x2c87cc])&&(_0x91865a=(_0x3e70dc<0x3?_0x36dd76(_0x91865a):_0x3e70dc>0x3?_0x36dd76(_0x474856,_0x291257,_0x91865a):_0x36dd76(_0x474856,_0x291257))||_0x91865a);}return _0x3e70dc>0x3&&_0x91865a&&Object[_0xefbf49(0x2db)](_0x474856,_0x291257,_0x91865a),_0x91865a;}let _0x3eccdb=class extends _0x3fe9b6['Disposable']{constructor(_0x45001d,_0x48bf49,_0x14aaee,_0x580919,_0x39b95c){const _0x485984=_0x2ea0c4;super(),this[_0x485984(0x275)]=_0x45001d,this['_sheetsShapeService']=_0x48bf49,this[_0x485984(0x2e5)]=_0x14aaee,this[_0x485984(0x406)]=_0x580919,this[_0x485984(0x109)]=_0x39b95c;}[_0x2ea0c4(0x321)](_0x34d49e,_0x4f9a0f,_0xe28106){const _0x4ad799=_0x2ea0c4;let {transform:_0x327bd2,drawingType:_0x422734,srcRect:_0x2a19dc,prstGeom:_0x1a34c0,groupId:_0x412b34,unitId:_0x158db4,subUnitId:_0x1dba12,drawingId:_0x589281,isMultiTransform:_0x4f77c0,transforms:_0x1e7c79,hidden:_0x5be8dd}=_0x34d49e;if(_0x422734!==_0x3fe9b6['DrawingTypeEnum'][_0x4ad799(0x1d9)]||!this[_0x4ad799(0x275)][_0x4ad799(0x147)]()||_0x327bd2==null)return;let _0x1e1ae7=this[_0x4ad799(0x275)][_0x4ad799(0x3a2)]();_0x1e1ae7&&_0x4f9a0f[_0x4ad799(0x18b)](_0x502542[_0x4ad799(0x297)]);let _0x5378d0=_0x4f77c0&&_0x1e7c79?_0x1e7c79:[_0x327bd2],_0x5c60f3=[];for(let _0x154ba5 of _0x5378d0){let {left:_0x3fc065,top:_0x59a372,width:_0x17bc2e,height:_0x1cfb0a,angle:_0x5993f8,flipX:_0x1b867a,flipY:_0x3ad724,skewX:_0x219e9a,skewY:_0x2c3bf5}=_0x154ba5,_0x238700=_0x5378d0['indexOf'](_0x154ba5),_0x2ff866=(0x0,_0xcd0f0e[_0x4ad799(0x1f8)])({'unitId':_0x158db4,'subUnitId':_0x1dba12,'drawingId':_0x589281},_0x4f77c0?_0x238700:void 0x0),_0xa76443=_0x4f9a0f[_0x4ad799(0x432)](_0x2ff866);if(_0xa76443!=null){_0xa76443[_0x4ad799(0x413)]({'left':_0x3fc065,'top':_0x59a372,'width':_0x17bc2e,'height':_0x1cfb0a,'angle':_0x5993f8,'flipX':_0x1b867a,'flipY':_0x3ad724,'skewX':_0x219e9a,'skewY':_0x2c3bf5});continue;}let _0x3beefb=this['_drawingManagerService'][_0x4ad799(0x235)](_0x158db4,_0x1dba12),_0x44e526=_0x3beefb['indexOf'](_0x589281);if(_0x4f9a0f[_0x4ad799(0x432)](_0x2ff866)||!this[_0x4ad799(0x275)][_0x4ad799(0x147)]())continue;let _0x3925ed=this[_0x4ad799(0x25b)][_0x4ad799(0x252)](_0x158db4,_0x1dba12,_0x589281);if(!_0x3925ed)continue;let _0x2d8e33=new _0x2264dd(_0x2ff866,{...(0x0,_0x360390[_0x4ad799(0x295)])(_0x3925ed[_0x4ad799(0x1b9)]())?{..._0x154ba5,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x154ba5},'zIndex':_0x44e526===-0x1?_0x3beefb[_0x4ad799(0x111)]-0x1:_0x44e526,'shapeModel':_0x3925ed,'localeService':this[_0x4ad799(0x2e5)],'shapeId':_0x589281,'unitId':_0x158db4,'subUnitId':_0x1dba12,'visible':_0x5be8dd!==!0x0});_0x4f9a0f['addObject'](_0x2d8e33,_0x122d5a[_0x4ad799(0x192)]),_0x1e1ae7&&_0x4f9a0f[_0x4ad799(0x269)](_0x2d8e33),_0x412b34&&(0x0,_0x3cfff1['insertGroupObject'])({'drawingId':_0x412b34,'unitId':_0x158db4,'subUnitId':_0x1dba12},_0x2d8e33,_0x4f9a0f,this[_0x4ad799(0x275)]),_0x1a34c0!=null&&_0x2d8e33[_0x4ad799(0x37d)](_0x1a34c0),_0x2a19dc!=null&&_0x2d8e33['setSrcRect'](_0x2a19dc);let _0x116d1e=this[_0x4ad799(0x149)](_0x2d8e33,_0x3925ed[_0x4ad799(0x11d)]());if(_0x116d1e){var _0x2f3b47;_0xe28106==null||(_0x2f3b47=_0xe28106[_0x4ad799(0x3fe)])==null||_0x2f3b47[_0x4ad799(0x323)](_0x116d1e);}_0x5c60f3[_0x4ad799(0x35c)](_0x2d8e33);}return _0x5c60f3;}[_0x2ea0c4(0x149)](_0x2b0882,_0x388f38){const _0x5ae3d2=_0x2ea0c4;var _0x57a233;let _0x537061=_0x388f38['fill'];if(!_0x537061||_0x537061['fillType']!==_0x360390[_0x5ae3d2(0x1b7)][_0x5ae3d2(0x1ee)]||!_0x537061[_0x5ae3d2(0x410)])return;let _0x4ab6e9=_0x537061[_0x5ae3d2(0x410)],_0x4d1f78=(_0x57a233=_0x537061[_0x5ae3d2(0x15d)])==null?_0x360390[_0x5ae3d2(0x334)][_0x5ae3d2(0x301)]:_0x57a233,_0x28926f=this['_imageIoService'][_0x5ae3d2(0x36b)](_0x4ab6e9,_0x4d1f78);if(_0x28926f){_0x2b0882[_0x5ae3d2(0x2c5)](_0x28926f);return;}return this[_0x5ae3d2(0x10f)](_0x2b0882,_0x4ab6e9,_0x4d1f78);}async['_loadAndSetImage'](_0x3df360,_0x4127ce,_0x4800fc){const _0x50d077=_0x2ea0c4;let _0x17ff07;try{if(_0x4800fc===_0x360390[_0x50d077(0x334)][_0x50d077(0x24f)])_0x17ff07=await this[_0x50d077(0x406)]['getImage'](_0x4127ce);else{if(_0x4800fc===_0x360390[_0x50d077(0x334)]['URL'])try{_0x17ff07=await this[_0x50d077(0x109)][_0x50d077(0x332)](_0x4127ce);}catch{_0x17ff07=_0x4127ce;}else _0x17ff07=_0x4127ce;}}catch(_0x58df2f){console[_0x50d077(0x2dd)](_0x50d077(0x424),_0x58df2f);return;}await new Promise(_0x36d878=>{const _0x10fee7=_0x50d077;let _0x1591e5=new window['Image']();_0x1591e5[_0x10fee7(0x1e4)]=()=>{const _0x47fa0a=_0x10fee7;this[_0x47fa0a(0x406)]['addImageSourceCache'](_0x4127ce,_0x4800fc,_0x1591e5),_0x3df360['setFillImage'](_0x1591e5),_0x36d878();},_0x1591e5[_0x10fee7(0x3c5)]=()=>{const _0x29e063=_0x10fee7;console['error'](_0x29e063(0x333),_0x4127ce),_0x36d878();},_0x1591e5[_0x10fee7(0x138)]=_0x17ff07;});}};_0x3eccdb=_0x20d714([_0x26d55f(0x0,_0xcd0f0e['IDrawingManagerService']),_0x26d55f(0x1,(0x0,_0x3fe9b6['Inject'])(_0x2cb023[_0x2ea0c4(0x40f)])),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3fe9b6['LocaleService'])),_0x26d55f(0x3,_0x3fe9b6[_0x2ea0c4(0x354)]),_0x26d55f(0x4,_0x3fe9b6[_0x2ea0c4(0x300)])],_0x3eccdb);let _0x17ed0c=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x5c5612,_0x379191,_0x1726e8,_0x53159e,_0x2229e6,_0x46f920){const _0x42c0a2=_0x2ea0c4;super(),this['_drawingManagerService']=_0x5c5612,this[_0x42c0a2(0x25b)]=_0x379191,this[_0x42c0a2(0x200)]=_0x1726e8,this[_0x42c0a2(0x1d6)]=_0x53159e,this[_0x42c0a2(0x2ba)]=_0x2229e6,this[_0x42c0a2(0x3d4)]=_0x46f920,_0x144b44(this,_0x42c0a2(0x1be),null),_0x144b44(this,_0x42c0a2(0x434),null),_0x144b44(this,_0x42c0a2(0x154),null),_0x144b44(this,'_activeShapeAdjustPointList',void 0x0),_0x144b44(this,_0x42c0a2(0x42f),[]),_0x144b44(this,_0x42c0a2(0x12c),0x0),_0x144b44(this,_0x42c0a2(0x1e6),0x0),_0x144b44(this,_0x42c0a2(0x33f),0x0),_0x144b44(this,_0x42c0a2(0x320),0x0),_0x144b44(this,_0x42c0a2(0x331),!0x1),_0x144b44(this,_0x42c0a2(0x36c),void 0x0),_0x144b44(this,'_activeShapeModel',void 0x0),_0x144b44(this,_0x42c0a2(0x438),void 0x0),_0x144b44(this,'_adjHandlerPointerUp',void 0x0),_0x144b44(this,_0x42c0a2(0x421),!0x1),this[_0x42c0a2(0x31f)](),this[_0x42c0a2(0x262)]();}['_getShapeAdjustPointListById'](_0x9b4974,_0x29c463,_0x21a91f){const _0x43b8cf=_0x2ea0c4;let _0x24b804=this[_0x43b8cf(0x25b)][_0x43b8cf(0x252)](_0x9b4974,_0x29c463,_0x21a91f);if(_0x24b804)return _0x24b804[_0x43b8cf(0x1e7)]();}['clearAdjustControls'](){const _0x282fcb=_0x2ea0c4;this[_0x282fcb(0x1c2)]();}[_0x2ea0c4(0x2a5)](){const _0x1d2529=_0x2ea0c4;this[_0x1d2529(0x3b5)](!0x0);}[_0x2ea0c4(0x3bc)](_0x11ddeb){this['_isShouldShowDrawingShapeAdjust']=_0x11ddeb;}[_0x2ea0c4(0x314)](_0x5ec90c,_0x378cb9,_0x24e0b2,_0x476ec3){const _0x1b7683=_0x2ea0c4;let _0x272758=this[_0x1b7683(0x25b)]['getShapeModel'](_0x5ec90c,_0x378cb9,_0x24e0b2);if(_0x272758)return _0x272758[_0x1b7683(0x28e)](_0x476ec3);}[_0x2ea0c4(0x405)](_0x26a409=!0x1){const _0x29c989=_0x2ea0c4;if(this['_unitId']===null||this[_0x29c989(0x154)]===null||this[_0x29c989(0x1be)]===null)return;let _0x5233b0=this[_0x29c989(0x200)]['getRenderById'](this[_0x29c989(0x434)]);if(!_0x5233b0||!_0x5233b0[_0x29c989(0x3f8)](_0x48ecbb[_0x29c989(0x3ff)])[_0x29c989(0x1d3)]())return;let {scene:_0x89671c}=_0x5233b0,_0x5bd7cb={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x29c989(0x1be)]},_0x8e823c=this[_0x29c989(0x275)][_0x29c989(0x3e3)](_0x5bd7cb),{transform:_0x5d2f0e}=_0x8e823c;if(!_0x5d2f0e||_0x8e823c[_0x29c989(0x19a)]!==_0x3fe9b6[_0x29c989(0x225)][_0x29c989(0x1d9)])return;let {left:_0x5257eb,top:_0x4316ad,width:_0x347c9b,height:_0x260bda,flipX:_0x41919b,flipY:_0x23fcab,angle:_0x4b9be8=0x0}=_0x5d2f0e;if(_0x5257eb===void 0x0||_0x4316ad===void 0x0)return;_0x26a409&&(this[_0x29c989(0x393)]=this['_getShapeAdjustPointListById'](this[_0x29c989(0x434)],this[_0x29c989(0x154)],this[_0x29c989(0x1be)]));let _0x4d8c76=this['_activeShapeAdjustPointList'];for(let _0x5a3dc9=0x0;_0x5a3dc9<_0x4d8c76[_0x29c989(0x111)];_0x5a3dc9++){let _0x3c3431=_0x4d8c76[_0x5a3dc9],_0x4beed5=_0x3c3431['x'],_0x40abc5=_0x3c3431['y'];if(_0x41919b&&(_0x4beed5=(_0x347c9b||0x0)-_0x4beed5),_0x23fcab&&(_0x40abc5=(_0x260bda||0x0)-_0x40abc5),_0x4b9be8!==0x0){let _0x5d2205=(_0x347c9b||0x0)/0x2,_0x2a916d=(_0x260bda||0x0)/0x2,_0x52d659=_0x4b9be8*Math['PI']/0xb4,_0x1d1813=Math[_0x29c989(0x38d)](_0x52d659),_0x4f4131=Math[_0x29c989(0x2a2)](_0x52d659),_0x2e2d3c=_0x4beed5-_0x5d2205,_0xca3267=_0x40abc5-_0x2a916d;_0x4beed5=_0x5d2205+(_0x2e2d3c*_0x1d1813-_0xca3267*_0x4f4131),_0x40abc5=_0x2a916d+(_0x2e2d3c*_0x4f4131+_0xca3267*_0x1d1813);}let _0x2c1231={'x':_0x4beed5,'y':_0x40abc5,'adjName':_0x3c3431[_0x29c989(0x21a)]};this['_addShapeAdjustControl'](_0x89671c,_0x2c1231,_0x2c1231[_0x29c989(0x21a)],_0x5257eb,_0x4316ad,this['_unitId'],this[_0x29c989(0x154)]);}}[_0x2ea0c4(0x3b5)](_0x4986b1=!0x1){const _0x3c084a=_0x2ea0c4;_0x4986b1&&(this[_0x3c084a(0x1c2)](),this['_createShapeAdjustControls'](_0x4986b1));}[_0x2ea0c4(0x22d)](_0x4ca767,_0x201ab0,_0x532096,_0x8cd161,_0xa90caf,_0xe155d2,_0x274123){const _0x4b9893=_0x2ea0c4;if(!this[_0x4b9893(0x1be)])return;let _0x48eff6=_0x4ca767[_0x4b9893(0x432)](_0x4b9893(0x2da)+this['_activeShapeId']+'-'+_0x532096);if(_0x48eff6){_0x48eff6[_0x4b9893(0x413)]({'left':_0x201ab0['x']+_0x8cd161-_0x360390[_0x4b9893(0x18d)][_0x4b9893(0x1ba)],'top':_0x201ab0['y']+_0xa90caf-_0x360390['ShapeDefaultConfig']['adjHandleSize']});return;}let _0x57b025={'left':_0x201ab0['x']+_0x8cd161-_0x360390[_0x4b9893(0x18d)][_0x4b9893(0x1ba)],'top':_0x201ab0['y']+_0xa90caf-_0x360390[_0x4b9893(0x18d)][_0x4b9893(0x1ba)],'adjName':_0x532096,'shapeId':this[_0x4b9893(0x1be)],'unitId':_0xe155d2,'subUnitId':_0x274123,'width':_0x360390[_0x4b9893(0x18d)]['adjHandleSize']+0x8,'height':_0x360390[_0x4b9893(0x18d)][_0x4b9893(0x1ba)]+0x8,'zIndex':_0x122d5a[_0x4b9893(0x192)]+0x1,'evented':!0x0},_0x18e6ed=new _0x1d0af4(_0x4b9893(0x2da)+this[_0x4b9893(0x1be)]+'-'+_0x532096,_0x57b025);this['_shapes']['push'](_0x18e6ed),this[_0x4b9893(0x3a5)](_0x18e6ed,_0x4ca767,_0x532096),_0x4ca767[_0x4b9893(0x112)](_0x18e6ed,_0x122d5a[_0x4b9893(0x192)]+0x1);}[_0x2ea0c4(0x1c2)](){const _0x303747=_0x2ea0c4;this[_0x303747(0x42f)][_0x303747(0x111)]!==0x0&&(this['_shapes'][_0x303747(0x31b)](_0x209453=>{const _0xfb3d65=_0x303747;_0x209453[_0xfb3d65(0x14f)]();}),this[_0x303747(0x42f)]=[]);}[_0x2ea0c4(0x3ac)](){const _0x2d214b=_0x2ea0c4;this[_0x2d214b(0x405)]();}[_0x2ea0c4(0x2e0)](_0x508a10,_0x40ced0){const _0x55676e=_0x2ea0c4;var _0x345330;let _0x9d094e={'x':0x0,'y':0x0};if(!_0x508a10||!_0x40ced0)return _0x9d094e;let _0x4ced77=this['_renderManagerService']['getRenderById'](_0x508a10);if(!_0x4ced77||!_0x4ced77[_0x55676e(0x3f8)](_0x48ecbb[_0x55676e(0x3ff)])['getSkeleton'](_0x40ced0))return _0x9d094e;let _0x104728=_0x4ced77['with'](_0x48ecbb['SheetScrollManagerService']),_0x16b296=_0x104728==null?void 0x0:_0x104728[_0x55676e(0x1a4)]();if(!_0x16b296)return _0x9d094e;let _0x3cc068=(_0x345330=this['_univerInstanceService'][_0x55676e(0x34b)](_0x508a10))==null?void 0x0:_0x345330[_0x55676e(0x20c)](_0x40ced0);if(!_0x3cc068)return _0x9d094e;let _0x10132b=(0x0,_0x48ecbb[_0x55676e(0x32f)])(_0x16b296[_0x55676e(0x419)],_0x16b296[_0x55676e(0x3ae)],_0x4ced77[_0x55676e(0x373)],_0x3cc068);return _0x10132b?{'x':_0x10132b[_0x55676e(0x327)],'y':_0x10132b[_0x55676e(0x2b8)]}:_0x9d094e;}[_0x2ea0c4(0x388)](_0x11cac9,_0x3c0303){const _0x29cb6f=_0x2ea0c4;var _0x49746f,_0x17760d;let _0xb3f494=(_0x49746f=this[_0x29cb6f(0x2ba)][_0x29cb6f(0x34b)](_0x11cac9))==null?void 0x0:_0x49746f[_0x29cb6f(0x20c)](_0x3c0303);return(_0x17760d=_0xb3f494==null?void 0x0:_0xb3f494[_0x29cb6f(0x1b2)]())==null?0x1:_0x17760d;}[_0x2ea0c4(0x3a5)](_0x565c29,_0x46714e,_0x44238b){const _0x5202d9=_0x2ea0c4;this[_0x5202d9(0x3c0)]((0x0,_0x3fe9b6['toDisposable'])(_0x565c29[_0x5202d9(0x173)]['subscribeEvent']((_0x495c11,_0xdf8571)=>{const _0x30054d=_0x5202d9;var _0x16a91b,_0x4a3477,_0x320b29,_0x26b71d;let _0x394980=_0x565c29[_0x30054d(0x14e)]();this[_0x30054d(0x36c)]=this['_getShapeAdjustInfosById'](_0x394980[_0x30054d(0x429)],_0x394980[_0x30054d(0x3aa)],_0x394980[_0x30054d(0x215)],_0x44238b),this[_0x30054d(0xf9)]=this[_0x30054d(0x25b)][_0x30054d(0x252)](_0x394980[_0x30054d(0x429)],_0x394980[_0x30054d(0x3aa)],_0x394980[_0x30054d(0x215)]);let _0x1ee241=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x30054d(0x434)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x30054d(0x1be)]}),{transform:_0xb358e2}=_0x1ee241;if(_0xb358e2){let {left:_0x35b248,top:_0x3d5a12,width:_0x1122cb,height:_0x58d3d6}=_0xb358e2;this[_0x30054d(0x12c)]=_0x35b248||0x0,this[_0x30054d(0x1e6)]=_0x3d5a12||0x0,this[_0x30054d(0x33f)]=_0x1122cb||0x0,this['_baseShapeHeight']=_0x58d3d6||0x0;}let _0x2c2434=!!((_0x16a91b=_0x1ee241[_0x30054d(0x3ec)])!=null&&_0x16a91b[_0x30054d(0x17a)]),_0x5e5f3d=!!((_0x4a3477=_0x1ee241[_0x30054d(0x3ec)])!=null&&_0x4a3477[_0x30054d(0x30e)]),_0x587f75=((_0x320b29=_0x1ee241[_0x30054d(0x3ec)])==null?void 0x0:_0x320b29[_0x30054d(0x2a0)])||0x0;this['_isStartAdjusting']=!0x0,_0x46714e[_0x30054d(0x286)]();let _0x586ba2=(_0x26b71d=this[_0x30054d(0xf9)])==null?void 0x0:_0x26b71d[_0x30054d(0x1a7)](_0x44238b),_0xa5f41={[_0x44238b]:_0x586ba2};this[_0x30054d(0x438)]=_0x46714e[_0x30054d(0x2a7)]['subscribeEvent']((_0x28a5d5,_0x3b2072)=>{const _0x5173a3=_0x30054d;if(!this[_0x5173a3(0x331)])return;let {offsetX:_0x41aa57,offsetY:_0x4241c9}=_0x28a5d5,_0x2960fa=this[_0x5173a3(0x36c)];if(this[_0x5173a3(0xf9)]&&_0x2960fa){_0x46714e[_0x5173a3(0x286)](),_0x46714e[_0x5173a3(0x229)](_0x122d5a[_0x5173a3(0x37f)][_0x5173a3(0x224)]);let _0x1d1a14={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x5173a3(0x320)]},_0x16e8e3=this['_getScrollInfo'](this[_0x5173a3(0x434)],this[_0x5173a3(0x154)]),_0x40d0fe=this[_0x5173a3(0x388)](this['_unitId'],this[_0x5173a3(0x154)]),_0x670209=_0x41aa57/_0x40d0fe+_0x16e8e3['x']-this[_0x5173a3(0x12c)],_0x1bc3c4=_0x4241c9/_0x40d0fe+_0x16e8e3['y']-this['_baseShapeTop'];if(_0x587f75!==0x0){let _0x3686bd=this[_0x5173a3(0x33f)]/0x2,_0x1d9522=this['_baseShapeHeight']/0x2,_0x316613=_0x587f75*Math['PI']/0xb4,_0x62bae1=Math['cos'](_0x316613),_0x4f733c=Math[_0x5173a3(0x2a2)](_0x316613),_0x4a175a=_0x670209-_0x3686bd,_0x49c916=_0x1bc3c4-_0x1d9522;_0x670209=_0x3686bd+(_0x4a175a*_0x62bae1+_0x49c916*_0x4f733c),_0x1bc3c4=_0x1d9522+(-_0x4a175a*_0x4f733c+_0x49c916*_0x62bae1);}_0x2c2434&&(_0x670209=this[_0x5173a3(0x33f)]-_0x670209),_0x5e5f3d&&(_0x1bc3c4=this['_baseShapeHeight']-_0x1bc3c4);let _0xc2d781={'x':_0x670209,'y':_0x1bc3c4},_0x3b7175=this[_0x5173a3(0xf9)][_0x5173a3(0x27a)](_0x1d1a14,_0xc2d781,_0x2960fa,_0x2c2434,_0x5e5f3d),_0x59efb0=_0x2960fa['gdRefX']||_0x2960fa['gdRefY']||_0x2960fa[_0x5173a3(0x203)]||_0x2960fa['gdRefR'];if(_0x59efb0===void 0x0)return;this['_activeShapeModel']['setAdjustValueByName'](_0x59efb0,_0x3b7175);let _0x5e7511=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x394980[_0x5173a3(0x429)],'subUnitId':_0x394980['subUnitId'],'drawingId':_0x394980[_0x5173a3(0x215)]});_0x5e7511&&(this[_0x5173a3(0x1d6)]['renderDrawingShape'](_0x5e7511,_0x46714e),this[_0x5173a3(0x393)]=this['_getShapeAdjustPointListById'](_0x394980[_0x5173a3(0x429)],_0x394980[_0x5173a3(0x3aa)],_0x394980['drawingId']),this[_0x5173a3(0x3ac)]());}_0x3b2072[_0x5173a3(0x2eb)]();}),this[_0x30054d(0x1f5)]=_0x46714e[_0x30054d(0x239)][_0x30054d(0x1d2)]((_0x419708,_0x3ffa7f)=>{const _0x508b93=_0x30054d;this[_0x508b93(0x438)][_0x508b93(0x1ea)](),this['_adjHandlerPointerUp'][_0x508b93(0x1ea)](),_0x46714e[_0x508b93(0x3f5)]();let _0x57771a=this[_0x508b93(0x36c)];if(_0x57771a){let _0x42c13d=_0x394980[_0x508b93(0x429)],_0x50f9e7=_0x394980[_0x508b93(0x3aa)],_0x254ff8=_0x394980[_0x508b93(0x215)],_0x3e33d5=_0x57771a[_0x508b93(0x245)]||_0x57771a['gdRefY']||_0x57771a[_0x508b93(0x203)]||_0x57771a['gdRefR'];if(_0x3e33d5!==void 0x0){var _0x2955f5;let _0x1f6389=(_0x2955f5=this['_activeShapeModel'])==null?void 0x0:_0x2955f5[_0x508b93(0x1a7)](_0x3e33d5);_0x1f6389!==void 0x0&&_0x2ed581(this[_0x508b93(0x3d4)],_0x42c13d,_0x50f9e7,_0x254ff8,{'oldShapeData':{'adjustValues':_0xa5f41}},{'adjustValues':{[_0x3e33d5]:_0x1f6389}});}}this['_activeAdjustInfo']=void 0x0,this[_0x508b93(0xf9)]=void 0x0,this[_0x508b93(0x331)]=!0x1,_0x3ffa7f[_0x508b93(0x2eb)](),_0x46714e[_0x508b93(0x3ba)]();}),_0xdf8571[_0x30054d(0x2eb)]();})));}[_0x2ea0c4(0x262)](){const _0x1823da=_0x2ea0c4;let _0x6bb5a4=this['_univerInstanceService'][_0x1823da(0x1e8)](_0x3fe9b6['UniverInstanceType'][_0x1823da(0x430)]);this['disposeWithMe'](_0x6bb5a4[_0x1823da(0xfe)]((0x0,_0x14dd2b['switchMap'])(_0x587108=>_0x587108?_0x587108[_0x1823da(0x3b0)][_0x1823da(0xfe)]((0x0,_0x14dd2b['switchMap'])(_0x29731a=>{const _0x524005=_0x1823da;if(!_0x29731a)return _0x14dd2b[_0x524005(0x29d)];let _0x370d19=_0x587108[_0x524005(0x2b5)](),_0x344b8c=this[_0x524005(0x200)][_0x524005(0x425)](_0x370d19),_0x18ed66=_0x344b8c==null?void 0x0:_0x344b8c[_0x524005(0x373)];return _0x18ed66?(0x0,_0x14dd2b['of'])(_0x18ed66):_0x14dd2b[_0x524005(0x29d)];})):_0x14dd2b[_0x1823da(0x29d)]))['subscribe'](_0x533cba=>{const _0x1dafa0=_0x1823da;let _0x9879c=_0x533cba[_0x1dafa0(0x279)]();this[_0x1dafa0(0x3c0)](_0x533cba[_0x1dafa0(0x2a7)][_0x1dafa0(0x1d2)](()=>{const _0x67b0d8=_0x1dafa0;this[_0x67b0d8(0x421)];})),this[_0x1dafa0(0x3c0)](_0x9879c[_0x1dafa0(0x3d1)][_0x1dafa0(0x15f)](_0x36dd99=>{const _0x5b2938=_0x1dafa0;let {objects:_0x1ce492}=_0x36dd99;this[_0x5b2938(0x405)](),_0x1ce492!==null&&_0x1ce492[_0x5b2938(0x347)]===0x1&&_0x1ce492[_0x5b2938(0x38e)]()[_0x5b2938(0x234)]()[_0x5b2938(0x2e8)]instanceof _0x2264dd&&this[_0x5b2938(0x3bc)](!0x0);})),this[_0x1dafa0(0x3c0)](_0x9879c[_0x1dafa0(0x3ea)][_0x1dafa0(0x15f)](()=>{const _0x540fc1=_0x1dafa0;this[_0x540fc1(0x421)]&&this['_clearShapeAdjustControls']();})),this[_0x1dafa0(0x3c0)](_0x533cba[_0x1dafa0(0x239)][_0x1dafa0(0x1d2)](()=>{const _0x2a4f26=_0x1dafa0;this[_0x2a4f26(0x421)]&&(this[_0x2a4f26(0x3bc)](!0x1),this[_0x2a4f26(0x405)]());})),this[_0x1dafa0(0x3c0)](_0x9879c['changeEnd$'][_0x1dafa0(0x15f)](()=>{const _0x4001e2=_0x1dafa0;this[_0x4001e2(0x434)]&&this[_0x4001e2(0x154)]&&this[_0x4001e2(0x1be)]&&this[_0x4001e2(0x275)][_0x4001e2(0x3e3)]({'unitId':this[_0x4001e2(0x434)],'subUnitId':this[_0x4001e2(0x154)],'drawingId':this[_0x4001e2(0x1be)]})&&(this[_0x4001e2(0x393)]=this['_getShapeAdjustPointListById'](this[_0x4001e2(0x434)],this[_0x4001e2(0x154)],this['_activeShapeId']),this[_0x4001e2(0x3ac)]());}));}));}[_0x2ea0c4(0x31f)](){const _0x275ad4=_0x2ea0c4;this[_0x275ad4(0x3c0)](this[_0x275ad4(0x275)][_0x275ad4(0x3be)][_0x275ad4(0x15f)](_0x11dd35=>{const _0x3f861f=_0x275ad4;if(_0x11dd35[_0x3f861f(0x111)]===0x1){let _0x410159=_0x11dd35[0x0];if(_0x410159[_0x3f861f(0x19a)]===_0x3fe9b6[_0x3f861f(0x225)]['DRAWING_SHAPE']){this[_0x3f861f(0x1be)]=_0x410159[_0x3f861f(0x215)];let {unitId:_0x188191,subUnitId:_0x1bd387}=_0x410159;this[_0x3f861f(0x393)]=this[_0x3f861f(0x122)](_0x188191,_0x1bd387,this[_0x3f861f(0x1be)]),this[_0x3f861f(0x434)]=_0x188191,this[_0x3f861f(0x154)]=_0x1bd387,this[_0x3f861f(0x1c2)](),this['_createShapeAdjustControls']();}else this['_activeShapeId']=null,this[_0x3f861f(0x393)]=void 0x0,this[_0x3f861f(0x434)]=null,this[_0x3f861f(0x154)]=null,this[_0x3f861f(0x1c2)]();}(_0x11dd35[_0x3f861f(0x111)]>0x1||_0x11dd35[_0x3f861f(0x111)]===0x0)&&(this[_0x3f861f(0x1be)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3f861f(0x434)]=null,this[_0x3f861f(0x154)]=null,this[_0x3f861f(0x1c2)]());})),this[_0x275ad4(0x3c0)](this[_0x275ad4(0x275)][_0x275ad4(0x3a8)]['subscribe'](_0x3ace2a=>{const _0x46f61f=_0x275ad4;if(_0x3ace2a[_0x46f61f(0x111)]===0x1){var _0x2bfdb3;let _0x529b18=_0x3ace2a[0x0];((_0x2bfdb3=this['_drawingManagerService']['getDrawingByParam'](_0x529b18))==null?void 0x0:_0x2bfdb3[_0x46f61f(0x19a)])===_0x3fe9b6['DrawingTypeEnum']['DRAWING_SHAPE']&&this[_0x46f61f(0x3b5)](!0x0);}})),this['disposeWithMe'](this[_0x275ad4(0x275)]['remove$'][_0x275ad4(0x15f)](_0x28920e=>{const _0x175048=_0x275ad4;for(let _0x2813a3 of _0x28920e)this[_0x175048(0x1be)]===_0x2813a3['drawingId']&&(this[_0x175048(0x1be)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x175048(0x154)]=null,this[_0x175048(0x1c2)]());}));}};_0x17ed0c=_0x20d714([_0x26d55f(0x0,_0xcd0f0e[_0x2ea0c4(0x3c8)]),_0x26d55f(0x1,(0x0,_0x3fe9b6['Inject'])(_0x2cb023[_0x2ea0c4(0x40f)])),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x122d5a[_0x2ea0c4(0x238)])),_0x26d55f(0x3,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3eccdb)),_0x26d55f(0x4,_0x3fe9b6[_0x2ea0c4(0x287)]),_0x26d55f(0x5,_0x3fe9b6[_0x2ea0c4(0x2ec)])],_0x17ed0c);let _0x46cdb6={'id':_0x2ea0c4(0x3de),'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ef)],'handler':(_0x524f4e,_0x2cdade)=>{const _0x5ea67b=_0x2ea0c4;let _0x2e4fc3=_0x524f4e['get'](_0xcd0f0e[_0x5ea67b(0x3c8)]),_0x2ba5b3=_0x524f4e['get'](_0x122d5a[_0x5ea67b(0x238)]),_0x559720=_0x524f4e[_0x5ea67b(0x263)](_0x17ed0c);if(_0x2cdade==null)return!0x0;if(_0x2cdade[_0x5ea67b(0x111)]>0x0){var _0x436715;let _0x4c1729=(_0x436715=_0x2ba5b3[_0x5ea67b(0x425)](_0x2cdade[0x0][_0x5ea67b(0x429)]))==null?void 0x0:_0x436715[_0x5ea67b(0x373)];if(_0x4c1729){let {unitId:_0x3308e6,subUnitId:_0x3fc2b6,drawingId:_0x4c9c0b}=_0x2cdade[0x0],_0x2d4f0d=(0x0,_0xcd0f0e[_0x5ea67b(0x1f8)])({'unitId':_0x3308e6,'subUnitId':_0x3fc2b6,'drawingId':_0x4c9c0b},void 0x0),_0x5043aa=_0x4c1729[_0x5ea67b(0x432)](_0x2d4f0d);if(_0x5043aa){var _0x38394e;(_0x38394e=_0x2ba5b3[_0x5ea67b(0x425)](_0x2cdade[0x0]['unitId']))==null||(_0x38394e=_0x38394e['scene'][_0x5ea67b(0x41e)]())==null||_0x38394e['activeAnObject'](_0x5043aa);}}_0x2e4fc3[_0x5ea67b(0x223)](_0x2cdade),_0x559720[_0x5ea67b(0x3bc)](!0x1);}return!0x0;}},_0x5e7a4e={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x414),'handler':async(_0x15d622,_0x4e7f82)=>{const _0x272828=_0x2ea0c4;let _0x251897=(0x0,_0x12af8f[_0x272828(0x10d)])(_0x15d622['get'](_0x3fe9b6[_0x272828(0x287)]));if(!_0x251897)return!0x1;let _0x270373=_0x15d622[_0x272828(0x263)](_0x12af8f[_0x272828(0x21c)])[_0x272828(0x1cb)]();if(!_0x270373)return!0x1;let _0x32e56f=_0x15d622[_0x272828(0x263)](_0x3fe9b6[_0x272828(0x2ec)]),{unitId:_0x4bf02c,subUnitId:_0x376934}=_0x251897,{value:_0x4b0b6a,enhanceParams:_0x175f91}=_0x4e7f82,{range:_0x57864b}=_0x270373,_0xec6472={'unitId':_0x4bf02c,'subUnitId':_0x376934,'shapeType':_0x4b0b6a,'range':_0x57864b,'shapeId':(0x0,_0x3fe9b6[_0x272828(0x387)])()};if(_0x175f91){let _0x411bd3=(0x0,_0x360390[_0x272828(0x295)])(_0x4b0b6a),_0x29baa8=_0x4b0b6a===_0x360390[_0x272828(0x39f)]['Rect'];_0x411bd3&&(_0x175f91[_0x272828(0x108)]||_0x175f91[_0x272828(0x175)])&&(_0xec6472[_0x272828(0x27e)]={'ln':{'startArrow':_0x175f91[_0x272828(0x108)]?{'type':_0x360390[_0x272828(0x363)]['Arrow'],'size':_0x360390[_0x272828(0x41b)][_0x272828(0x33a)]}:void 0x0,'endArrow':_0x175f91[_0x272828(0x175)]?{'type':_0x360390[_0x272828(0x363)]['Arrow'],'size':_0x360390[_0x272828(0x41b)][_0x272828(0x382)]}:void 0x0}}),_0x29baa8&&(_0x175f91[_0x272828(0x40c)]||_0x175f91[_0x272828(0x170)])&&(_0xec6472[_0x272828(0x27e)]=(0x0,_0x502542[_0x272828(0x308)])({'fill':{'fillType':_0x360390[_0x272828(0x1b7)][_0x272828(0x3bb)],'color':_0x272828(0x276)},'isHorizontal':!!_0x175f91['horizontal'],'stroke':{'lineStrokeType':_0x360390['ShapeLineTypeEnum'][_0x272828(0x35e)],'width':0x1,'color':_0x272828(0x249)}}));}let _0x28a99c=_0x32e56f['syncExecuteCommand'](_0x2cb023['InsertShapeCommand']['id'],_0xec6472);return setTimeout(()=>{const _0x2cc633=_0x272828;_0x32e56f['executeCommand'](_0x46cdb6['id'],[{'unitId':_0x4bf02c,'subUnitId':_0x376934,'drawingId':_0xec6472[_0x2cc633(0x124)]}]);},0xc8),_0x28a99c;}};var _0x383d16=class extends _0x3fe9b6['Disposable']{constructor(..._0x56c773){const _0x3640ae=_0x2ea0c4;super(..._0x56c773),_0x144b44(this,_0x3640ae(0x42e),new _0x14dd2b[(_0x3640ae(0x277))](null)),_0x144b44(this,_0x3640ae(0x3c2),this['_editingParams$'][_0x3640ae(0x1c0)]()),_0x144b44(this,'_onSavingEditorData$',new _0x14dd2b[(_0x3640ae(0x277))](!0x1)),_0x144b44(this,_0x3640ae(0x367),this['_onSavingEditorData$'][_0x3640ae(0x1c0)]());}[_0x2ea0c4(0x14f)](){const _0x467e32=_0x2ea0c4;this[_0x467e32(0x42e)][_0x467e32(0x234)](null),this['_editingParams$'][_0x467e32(0x183)](),this['_onSavingEditorData$']['next'](!0x1),this[_0x467e32(0x39e)][_0x467e32(0x183)](),super[_0x467e32(0x14f)]();}[_0x2ea0c4(0x38c)](_0x4f079c){const _0x24d70f=_0x2ea0c4;this['_editingParams$'][_0x24d70f(0x234)](_0x4f079c),_0x4f079c==null&&this['_onSavingEditorData$'][_0x24d70f(0x234)](!0x1);}[_0x2ea0c4(0x34f)](_0x45f402){const _0xc8203e=_0x2ea0c4;this[_0xc8203e(0x39e)][_0xc8203e(0x234)](_0x45f402);}[_0x2ea0c4(0x2fd)](){const _0x465a17=_0x2ea0c4;return this[_0x465a17(0x42e)][_0x465a17(0x32b)]();}[_0x2ea0c4(0x171)](_0x5c1cf4){const _0x41528b=_0x2ea0c4;this[_0x41528b(0x2fd)]()&&(this[_0x41528b(0x34f)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x2ea0c4(0x3b9)](){const _0x1f52cf=_0x2ea0c4;this[_0x1f52cf(0x2fd)]()&&this[_0x1f52cf(0x38c)](null);}};let _0x18c74f={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x226),'handler':async(_0x488236,_0x253c32)=>{const _0x60af16=_0x2ea0c4;var _0x5caf9c;if(!(0x0,_0x12af8f['getSheetCommandTarget'])(_0x488236['get'](_0x3fe9b6[_0x60af16(0x287)])))return!0x1;let _0x34c87d=_0x488236['get'](_0x1ba3d5[_0x60af16(0x230)])[_0x60af16(0x19d)]()[_0x60af16(0x222)](_0x3ac44e=>_0x3ac44e[_0x60af16(0x19a)]===_0x3fe9b6[_0x60af16(0x225)][_0x60af16(0x1d9)]);if(_0x34c87d[_0x60af16(0x111)]!==0x1)return!0x1;let _0x4db3f4=_0x488236[_0x60af16(0x263)](_0x383d16)[_0x60af16(0x2fd)](),_0x5c563c=(_0x4db3f4==null?void 0x0:_0x4db3f4[_0x60af16(0x429)])||_0x34c87d[0x0][_0x60af16(0x429)],_0x4d7fa8=(_0x4db3f4==null?void 0x0:_0x4db3f4[_0x60af16(0x3aa)])||_0x34c87d[0x0]['subUnitId'],_0x1c3613=(_0x4db3f4==null?void 0x0:_0x4db3f4[_0x60af16(0x124)])||_0x34c87d[0x0][_0x60af16(0x215)],_0x2ee8db=_0x488236[_0x60af16(0x263)](_0x2cb023[_0x60af16(0x40f)])['getShapeModel'](_0x5c563c,_0x4d7fa8,_0x1c3613);if(!_0x2ee8db)return!0x1;let _0x511ed3=_0x2ee8db[_0x60af16(0x236)]();if(!_0x511ed3||!('dataModel'in _0x511ed3))return!0x1;let _0x4c8549=_0x488236[_0x60af16(0x263)](_0x3fe9b6['ICommandService']),{value:_0x14a6dc}=_0x253c32,_0x4a10e3=_0x2ee8db[_0x60af16(0x1b9)](),_0x578d75=_0x2ee8db[_0x60af16(0x11d)](),_0x19b3be=(0x0,_0x502542['normalizeShapeTextModel'])(_0x511ed3[_0x60af16(0x299)]);if(!_0x19b3be)return!0x1;let _0x2599cb={..._0x19b3be,'ha':_0x14a6dc};return await _0x4c8549[_0x60af16(0x196)](_0x4a4f06['id'],{'unitId':_0x5c563c,'subUnitId':_0x4d7fa8,'shapeId':_0x1c3613,'shapeType':_0x4a10e3,'shapeData':{'shapeText':{..._0x511ed3,'isHorizontal':(_0x5caf9c=_0x511ed3[_0x60af16(0x42c)])==null?!0x0:_0x5caf9c,'dataModel':_0x2599cb}},'oldShapeJSON':{'oldShapeType':_0x4a10e3,'oldShapeData':_0x578d75}});}},_0xd4b25={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':'sheet.command.set-shape-text-vertical-align','handler':async(_0x49c1e8,_0xd8e228)=>{const _0xb59ea5=_0x2ea0c4;var _0x572175;if(!(0x0,_0x12af8f['getSheetCommandTarget'])(_0x49c1e8[_0xb59ea5(0x263)](_0x3fe9b6['IUniverInstanceService'])))return!0x1;let _0x35d521=_0x49c1e8[_0xb59ea5(0x263)](_0x1ba3d5[_0xb59ea5(0x230)])[_0xb59ea5(0x19d)]()[_0xb59ea5(0x222)](_0x245855=>_0x245855[_0xb59ea5(0x19a)]===_0x3fe9b6[_0xb59ea5(0x225)][_0xb59ea5(0x1d9)]);if(_0x35d521['length']!==0x1)return!0x1;let _0x27f618=_0x49c1e8[_0xb59ea5(0x263)](_0x383d16)[_0xb59ea5(0x2fd)](),_0x41e243=(_0x27f618==null?void 0x0:_0x27f618['unitId'])||_0x35d521[0x0][_0xb59ea5(0x429)],_0x35a0f0=(_0x27f618==null?void 0x0:_0x27f618[_0xb59ea5(0x3aa)])||_0x35d521[0x0][_0xb59ea5(0x3aa)],_0x53a0d7=(_0x27f618==null?void 0x0:_0x27f618[_0xb59ea5(0x124)])||_0x35d521[0x0]['drawingId'],_0x4f493b=_0x49c1e8[_0xb59ea5(0x263)](_0x2cb023['SheetsShapeService'])['getShapeModel'](_0x41e243,_0x35a0f0,_0x53a0d7);if(!_0x4f493b)return!0x1;let _0x228966=_0x4f493b[_0xb59ea5(0x236)]();if(!_0x228966||!(_0xb59ea5(0x299)in _0x228966))return!0x1;let _0x2c0404=_0x49c1e8['get'](_0x3fe9b6['ICommandService']),{value:_0x5b60b7}=_0xd8e228,_0x5aa26b=_0x4f493b['getShapeType'](),_0x1be8fe=_0x4f493b[_0xb59ea5(0x11d)](),_0x2ac8d9=(0x0,_0x502542[_0xb59ea5(0x381)])(_0x228966['dataModel']);if(!_0x2ac8d9)return!0x1;let _0xdad412={..._0x2ac8d9,'va':_0x5b60b7};return await _0x2c0404[_0xb59ea5(0x196)](_0x4a4f06['id'],{'unitId':_0x41e243,'subUnitId':_0x35a0f0,'shapeId':_0x53a0d7,'shapeType':_0x5aa26b,'shapeData':{'shapeText':{..._0x228966,'isHorizontal':(_0x572175=_0x228966['isHorizontal'])==null?!0x0:_0x572175,'dataModel':_0xdad412}},'oldShapeJSON':{'oldShapeType':_0x5aa26b,'oldShapeData':_0x1be8fe}});}},_0x1ad3e6='sheet.shape.edit.panel',_0x66df24='sheet.shape.object-list.panel',_0x414ec8=_0x2ea0c4(0x404),_0x1a57f2=(0x0,_0x3fe9b6[_0x2ea0c4(0x12a)])(_0x2ea0c4(0x242)),_0xe06288={'id':_0x2ea0c4(0x353),'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'handler':(_0x186866,_0x339084)=>{const _0x15d76c=_0x2ea0c4;let _0x11fcb5=_0x186866[_0x15d76c(0x263)](_0x2b76f2[_0x15d76c(0x2ed)]),_0x3bb628=_0x186866[_0x15d76c(0x263)](_0x3fe9b6[_0x15d76c(0x151)]),_0x5c6bfc=_0x186866[_0x15d76c(0x263)](_0x3fe9b6[_0x15d76c(0x287)]),_0x3f3465=_0x186866['get'](_0x3fe9b6[_0x15d76c(0x2ec)]);return(0x0,_0x12af8f[_0x15d76c(0x10d)])(_0x5c6bfc)?(_0x339084==null?void 0x0:_0x339084['value'])===_0x15d76c(0x1d7)?(_0x11fcb5[_0x15d76c(0x1d7)](_0x66df24),!0x0):(_0x11fcb5['open']({'id':_0x66df24,'header':{'title':_0x3bb628['t'](_0x15d76c(0x193))},'children':{'label':_0x66df24},'onClose':()=>{const _0x41cd43=_0x15d76c;_0x3f3465[_0x41cd43(0x38f)](_0xcd0f0e[_0x41cd43(0x2a8)]['id'],[]);},'width':0x168}),!0x0):!0x1;}};function _0x4a92a8(_0x3d910e){const _0x316c65=_0x2ea0c4;let _0x575169=_0x3d910e[_0x316c65(0x263)](_0x3fe9b6[_0x316c65(0x287)]);return{'id':_0xe06288['id'],'type':_0x2b76f2['MenuItemType'][_0x316c65(0x2cd)],'icon':_0x316c65(0x1e3),'title':_0x316c65(0x2e9),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':(0x0,_0x48ecbb['deriveStateFromActiveSheet$'])(_0x575169,!0x1,()=>new _0x14dd2b[(_0x316c65(0x2c3))](_0x3235c1=>{const _0x24eef0=_0x316c65;_0x3235c1[_0x24eef0(0x234)](!0x1);})),'hidden$':(0x0,_0x2b76f2[_0x316c65(0x23a)])(_0x3d910e,_0x3fe9b6[_0x316c65(0x1df)][_0x316c65(0x430)]),'disabled$':(0x0,_0x48ecbb[_0x316c65(0x398)])(_0x3d910e)};}let _0x53ad6d={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x2f7),'handler':(_0x5b863d,_0x55228e)=>{const _0x1b4b7b=_0x2ea0c4;if(!_0x55228e)return!0x1;let {value:_0x5ad30d}=_0x55228e;return _0x5b863d[_0x1b4b7b(0x263)](_0x3fe9b6['ICommandService'])[_0x1b4b7b(0x38f)](_0x2ef8df[_0x1b4b7b(0x2c8)]['id'],{'alignType':_0x5ad30d});}};_0x3fe9b6[_0x2ea0c4(0x120)]['LEFT'],_0x3fe9b6['HorizontalAlign'][_0x2ea0c4(0x216)],_0x3fe9b6[_0x2ea0c4(0x120)][_0x2ea0c4(0x326)];function _0x4ed3e6(_0x264ed9){const _0x43b517=_0x2ea0c4;let _0x4c2e39=_0x264ed9[_0x43b517(0x263)](_0x3fe9b6['IContextService']),_0x2a0583=_0x264ed9['get'](_0x3fe9b6[_0x43b517(0x115)]);return{'id':_0x2ef8df[_0x43b517(0x3cf)]['id'],'tooltip':'sheets-shape-ui.toolbar.fillColor.main','type':_0x2b76f2[_0x43b517(0x3b7)][_0x43b517(0x32c)],'icon':_0x43b517(0x40a),'selections':[{'label':{'name':_0x2b76f2['COLOR_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'value$':new _0x14dd2b[(_0x43b517(0x2c3))](_0x39e048=>{const _0x4a3fd9=_0x43b517;_0x39e048[_0x4a3fd9(0x234)](_0x2a0583[_0x4a3fd9(0x17e)](_0x4a3fd9(0x290)));}),'hidden$':_0x4c2e39[_0x43b517(0x212)](_0x3fe9b6[_0x43b517(0x114)])['pipe']((0x0,_0x14dd2b[_0x43b517(0x313)])(_0x4c2e39['getContextValue'](_0x3fe9b6['FOCUSING_COMMON_DRAWINGS'])),(0x0,_0x14dd2b[_0x43b517(0x2cb)])(_0x43e759=>!_0x43e759))};}function _0x254b20(_0x3f6723){const _0x14f73a=_0x2ea0c4;let _0x44a482=_0x3f6723['get'](_0x3fe9b6[_0x14f73a(0x3ed)]);return{'id':_0x2ef8df[_0x14f73a(0x3c7)]['id'],'type':_0x2b76f2['MenuItemType']['BUTTON'],'title':_0x14f73a(0x291),'hidden$':_0x44a482[_0x14f73a(0x212)](_0x3fe9b6['FOCUSING_COMMON_DRAWINGS'])[_0x14f73a(0xfe)]((0x0,_0x14dd2b[_0x14f73a(0x313)])(_0x44a482[_0x14f73a(0x233)](_0x3fe9b6[_0x14f73a(0x114)])),(0x0,_0x14dd2b[_0x14f73a(0x2cb)])(_0x1b1c1d=>!_0x1b1c1d))};}function _0x500dae(_0x6a5e5,_0xabf1c0){const _0x45a192=_0x2ea0c4;try{return _0x6a5e5[_0x45a192(0x263)](_0xabf1c0);}catch{return null;}}let _0x28211f=[{'label':_0x2ea0c4(0x32d),'icon':'LeftJustifyingIcon','value':_0x3fe9b6[_0x2ea0c4(0x120)]['LEFT']},{'label':_0x2ea0c4(0x2cc),'icon':'HorizontallyIcon','value':_0x3fe9b6[_0x2ea0c4(0x120)][_0x2ea0c4(0x216)]},{'label':'sheets-shape-ui.align.right','icon':_0x2ea0c4(0x3ee),'value':_0x3fe9b6[_0x2ea0c4(0x120)]['RIGHT']}];function _0x2c6490(_0x51ff03){const _0x52c33f=_0x2ea0c4;var _0x4f32ec;let _0x1cf73c=_0x51ff03[_0x52c33f(0x263)](_0x3fe9b6[_0x52c33f(0x2ec)]),_0x46ba90=_0x51ff03[_0x52c33f(0x263)](_0x3fe9b6[_0x52c33f(0x3ed)]),_0xb59ef2=_0x500dae(_0x51ff03,_0x1ba3d5[_0x52c33f(0x230)]),_0xa861e1=_0x500dae(_0x51ff03,_0x383d16),_0x4e713c=_0x500dae(_0x51ff03,_0x2cb023[_0x52c33f(0x40f)]),_0x3a71d4=_0x3fe9b6[_0x52c33f(0x120)]['LEFT'];if(!_0xb59ef2||!_0xa861e1||!_0x4e713c){var _0x172c3d;return{'id':_0x18c74f['id'],'icon':(_0x172c3d=_0x28211f['find'](_0x375670=>_0x375670['value']===_0x3a71d4))==null?void 0x0:_0x172c3d[_0x52c33f(0x113)],'tooltip':_0x52c33f(0x1a9),'type':_0x2b76f2[_0x52c33f(0x3b7)]['SELECTOR'],'selections':_0x28211f,'value$':(0x0,_0x14dd2b['of'])(_0x3a71d4),'hidden$':(0x0,_0x14dd2b['of'])(!0x0)};}let _0x57c758=()=>{const _0x2fbf54=_0x52c33f;var _0x2a351b;let _0x35b7b1=_0xb59ef2[_0x2fbf54(0x19d)]()[_0x2fbf54(0x222)](_0x183351=>_0x183351[_0x2fbf54(0x19a)]===_0x3fe9b6[_0x2fbf54(0x225)][_0x2fbf54(0x1d9)]);if(_0x35b7b1[_0x2fbf54(0x111)]!==0x1)return _0x3a71d4;let _0x519d7c=_0xa861e1[_0x2fbf54(0x2fd)](),_0x1fec14=(_0x519d7c==null?void 0x0:_0x519d7c[_0x2fbf54(0x429)])||_0x35b7b1[0x0][_0x2fbf54(0x429)],_0x352d91=(_0x519d7c==null?void 0x0:_0x519d7c['subUnitId'])||_0x35b7b1[0x0][_0x2fbf54(0x3aa)],_0x1dc305=(_0x519d7c==null?void 0x0:_0x519d7c['shapeId'])||_0x35b7b1[0x0][_0x2fbf54(0x215)],_0x589858=_0x4e713c[_0x2fbf54(0x252)](_0x1fec14,_0x352d91,_0x1dc305);if(!_0x589858)return _0x3a71d4;let _0x570968=_0x589858[_0x2fbf54(0x236)]();if(!_0x570968||!(_0x2fbf54(0x299)in _0x570968))return _0x3a71d4;let _0x859bdb=(0x0,_0x502542[_0x2fbf54(0x381)])(_0x570968[_0x2fbf54(0x299)]);return(_0x2a351b=_0x859bdb==null?void 0x0:_0x859bdb['ha'])==null?_0x3a71d4:_0x2a351b;};return{'id':_0x18c74f['id'],'icon':(_0x4f32ec=_0x28211f[_0x52c33f(0x40b)](_0x21cab2=>_0x21cab2[_0x52c33f(0x2e8)]===_0x3a71d4))==null?void 0x0:_0x4f32ec[_0x52c33f(0x113)],'tooltip':_0x52c33f(0x1a9),'type':_0x2b76f2[_0x52c33f(0x3b7)]['SELECTOR'],'selections':_0x28211f,'value$':new _0x14dd2b[(_0x52c33f(0x2c3))](_0x3046c9=>{const _0x42744f=_0x52c33f;let _0x2854d9=_0x1cf73c[_0x42744f(0x23e)](_0x5e0e90=>{const _0x463ebd=_0x42744f;_0x5e0e90['id']===_0x18c74f['id']&&_0x3046c9[_0x463ebd(0x234)](_0x57c758());}),_0x3e8bfd=_0xa861e1[_0x42744f(0x3c2)]['subscribe'](()=>{const _0x37dacc=_0x42744f;_0x3046c9[_0x37dacc(0x234)](_0x57c758());});return _0x3046c9['next'](_0x57c758()),()=>{const _0xa6d577=_0x42744f;_0x2854d9[_0xa6d577(0x14f)](),_0x3e8bfd[_0xa6d577(0x1ea)]();};}),'hidden$':_0x46ba90[_0x52c33f(0x212)](_0x3fe9b6[_0x52c33f(0x114)])[_0x52c33f(0xfe)]((0x0,_0x14dd2b[_0x52c33f(0x2cb)])(_0x1db9bf=>!_0x1db9bf))};}let _0x285ee8=[{'label':'sheets-shape-ui.align.top','icon':_0x2ea0c4(0x371),'value':_0x3fe9b6['VerticalAlign'][_0x2ea0c4(0x20d)]},{'label':_0x2ea0c4(0x3e2),'icon':_0x2ea0c4(0x33e),'value':_0x3fe9b6[_0x2ea0c4(0x306)][_0x2ea0c4(0x1e9)]},{'label':_0x2ea0c4(0x22f),'icon':_0x2ea0c4(0x185),'value':_0x3fe9b6[_0x2ea0c4(0x306)][_0x2ea0c4(0x14d)]}];function _0x1f26b7(_0x307bcb){const _0x43248d=_0x2ea0c4;var _0x202d79;let _0x2fbc6f=_0x307bcb[_0x43248d(0x263)](_0x3fe9b6[_0x43248d(0x2ec)]),_0x2083d6=_0x307bcb[_0x43248d(0x263)](_0x3fe9b6[_0x43248d(0x3ed)]),_0x15aa45=_0x500dae(_0x307bcb,_0x1ba3d5[_0x43248d(0x230)]),_0x8a72db=_0x500dae(_0x307bcb,_0x383d16),_0x3a48e6=_0x500dae(_0x307bcb,_0x2cb023[_0x43248d(0x40f)]),_0x2d5c20=_0x3fe9b6['VerticalAlign'][_0x43248d(0x20d)];if(!_0x15aa45||!_0x8a72db||!_0x3a48e6){var _0x30609b;return{'id':_0xd4b25['id'],'icon':(_0x30609b=_0x285ee8[_0x43248d(0x40b)](_0x4474ec=>_0x4474ec[_0x43248d(0x2e8)]===_0x2d5c20))==null?void 0x0:_0x30609b[_0x43248d(0x113)],'tooltip':'sheets-shape-ui.toolbar.verticalAlignMode.main','type':_0x2b76f2[_0x43248d(0x3b7)][_0x43248d(0x365)],'selections':_0x285ee8,'value$':(0x0,_0x14dd2b['of'])(_0x2d5c20),'hidden$':(0x0,_0x14dd2b['of'])(!0x0)};}let _0xa5adf8=()=>{const _0x5a6e81=_0x43248d;var _0x351334;let _0x5dd286=_0x15aa45['getFocusDrawings']()[_0x5a6e81(0x222)](_0x5e57e4=>_0x5e57e4[_0x5a6e81(0x19a)]===_0x3fe9b6[_0x5a6e81(0x225)][_0x5a6e81(0x1d9)]);if(_0x5dd286[_0x5a6e81(0x111)]!==0x1)return _0x2d5c20;let _0x404f2b=_0x8a72db[_0x5a6e81(0x2fd)](),_0x9f04fc=(_0x404f2b==null?void 0x0:_0x404f2b['unitId'])||_0x5dd286[0x0]['unitId'],_0x49f646=(_0x404f2b==null?void 0x0:_0x404f2b[_0x5a6e81(0x3aa)])||_0x5dd286[0x0]['subUnitId'],_0x3e6129=(_0x404f2b==null?void 0x0:_0x404f2b['shapeId'])||_0x5dd286[0x0][_0x5a6e81(0x215)],_0x3d9525=_0x3a48e6[_0x5a6e81(0x252)](_0x9f04fc,_0x49f646,_0x3e6129);if(!_0x3d9525)return _0x2d5c20;let _0x38cbde=_0x3d9525[_0x5a6e81(0x236)]();if(!_0x38cbde||!(_0x5a6e81(0x299)in _0x38cbde))return _0x2d5c20;let _0x46fa6f=(0x0,_0x502542[_0x5a6e81(0x381)])(_0x38cbde[_0x5a6e81(0x299)]);return(_0x351334=_0x46fa6f==null?void 0x0:_0x46fa6f['va'])==null?_0x2d5c20:_0x351334;};return{'id':_0xd4b25['id'],'icon':(_0x202d79=_0x285ee8[_0x43248d(0x40b)](_0x30f75e=>_0x30f75e[_0x43248d(0x2e8)]===_0x2d5c20))==null?void 0x0:_0x202d79[_0x43248d(0x113)],'tooltip':_0x43248d(0x13f),'type':_0x2b76f2[_0x43248d(0x3b7)][_0x43248d(0x365)],'selections':_0x285ee8,'value$':new _0x14dd2b['Observable'](_0x2f170f=>{const _0xa74e48=_0x43248d;let _0x122834=_0x2fbc6f[_0xa74e48(0x23e)](_0xa6e150=>{const _0x563ba5=_0xa74e48;_0xa6e150['id']===_0xd4b25['id']&&_0x2f170f[_0x563ba5(0x234)](_0xa5adf8());}),_0x55a6eb=_0x8a72db[_0xa74e48(0x3c2)][_0xa74e48(0x15f)](()=>{const _0x2b8e21=_0xa74e48;_0x2f170f[_0x2b8e21(0x234)](_0xa5adf8());});return _0x2f170f[_0xa74e48(0x234)](_0xa5adf8()),()=>{const _0x3c6787=_0xa74e48;_0x122834['dispose'](),_0x55a6eb[_0x3c6787(0x1ea)]();};}),'hidden$':_0x2083d6['subscribeContextValue$'](_0x3fe9b6[_0x43248d(0x114)])[_0x43248d(0xfe)]((0x0,_0x14dd2b['map'])(_0x355f76=>!_0x355f76))};}let _0x7de345=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x3bda76,_0x14ae83){const _0x3d3ef5=_0x2ea0c4;super(),this[_0x3d3ef5(0x13e)]=_0x3bda76,this[_0x3d3ef5(0x275)]=_0x14ae83,this[_0x3d3ef5(0x1dc)](),this[_0x3d3ef5(0x13e)][_0x3d3ef5(0x1ca)](!0x0),this[_0x3d3ef5(0x3c0)]({'dispose':()=>this[_0x3d3ef5(0x13e)][_0x3d3ef5(0x1ca)](!0x1)});}[_0x2ea0c4(0x1dc)](){const _0x3941c8=_0x2ea0c4;let _0x4fb640=this[_0x3941c8(0x13e)],_0x29ca07=new Map(),_0x191f1b=_0x4fb640[_0x3941c8(0x3d6)]((_0x7840e7,_0x14a6b6,_0x304a71,_0x11895b,_0x253af0)=>{const _0x50332d=_0x3941c8;let _0x554d0f=_0x14a6b6;if(_0x554d0f===_0x360390[_0x50332d(0x39f)][_0x50332d(0x3a3)]||_0x14a6b6===_0x50332d(0x3b8))return!0x1;try{let _0x4dffb5=_0x29ca07[_0x50332d(0x263)](_0x14a6b6);return _0x4dffb5||(_0x4dffb5=new _0x360390[(_0x50332d(0x341))](_0x554d0f,_0x50332d(0x435)+_0x14a6b6),_0x29ca07['set'](_0x14a6b6,_0x4dffb5)),_0x253af0&&_0x4dffb5['setShapeData']({'adjustValues':_0x253af0},!0x0),_0x4dffb5[_0x50332d(0x21d)]({'width':_0x304a71,'height':_0x11895b}),_0x4dffb5['buildClipPath'](_0x7840e7,{'left':0x0,'top':0x0,'width':_0x304a71,'height':_0x11895b});}catch{return!0x1;}});this[_0x3941c8(0x3c0)](_0x191f1b),this[_0x3941c8(0x3c0)]({'dispose':()=>_0x29ca07[_0x3941c8(0x2f6)]()});}[_0x2ea0c4(0x129)](_0x1f6383,_0x17c865,_0x15e324,_0x571bed,_0x220f57){const _0x20d350=_0x2ea0c4;let _0x97fab7=this[_0x20d350(0x275)]['getDrawingData'](_0x1f6383,_0x17c865);if(!_0x97fab7[_0x15e324])return;let _0x22fd56={..._0x97fab7[_0x15e324],'prstGeom':_0x571bed,'adjustValues':_0x220f57};this[_0x20d350(0x275)][_0x20d350(0x1b6)]([_0x22fd56]);}};_0x7de345=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3cfff1[_0x2ea0c4(0x362)])),_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0xcd0f0e[_0x2ea0c4(0x3c8)]))],_0x7de345);let _0x53f9d3=_0x2ea0c4(0x368),_0x12dd5f='sheet.image-clip.shape-picker.component';function _0x4cdeaa({onShapeClick:_0x265df4,excludeGroups:_0xe150c2}){const _0x3f923f=_0x2ea0c4;return(0x0,_0x5817cb[_0x3f923f(0x3af)])(_0x502542[_0x3f923f(0x1fc)],{'excludeGroups':_0xe150c2,'onShapeClick':_0x265df4,'scrollContainer':'parent'});}function _0x72ce34(){const _0x12189a=_0x2ea0c4;let _0x47d36e=(0x0,_0x2b76f2[_0x12189a(0x20b)])(_0xcd0f0e[_0x12189a(0x3c8)]),_0x5baecb=(0x0,_0x2b76f2['useDependency'])(_0x7de345);return(0x0,_0x5817cb[_0x12189a(0x3af)])(_0x502542['ShapePickerDropdown'],{'buttonLabel':_0x12189a(0x178),'excludeGroups':[_0x502542[_0x12189a(0x1a8)][_0x12189a(0x253)]],'onShapeClick':_0x4edf80=>{const _0x556af7=_0x12189a;let _0x20541a=_0x47d36e[_0x556af7(0x19d)]()[_0x556af7(0x40b)](_0xfda307=>_0xfda307[_0x556af7(0x19a)]===_0x3fe9b6[_0x556af7(0x225)][_0x556af7(0x34c)]);if(!_0x20541a)return;let {unitId:_0x524109,subUnitId:_0x37b2cd,drawingId:_0x4d1456}=_0x20541a;_0x5baecb['clipByShape'](_0x524109,_0x37b2cd,_0x4d1456,_0x4edf80[_0x556af7(0x1d5)]);}});}function _0x383bbe(){const _0x32f17a=_0x2ea0c4;let _0x33fb25=(0x0,_0x2b76f2['useDependency'])(_0x2b76f2['ComponentManager']),_0xfc0e0e=(0x0,_0x2b76f2[_0x32f17a(0x20b)])(_0xcd0f0e[_0x32f17a(0x3c8)]),_0x2aa40c=(0x0,_0x2b76f2[_0x32f17a(0x20b)])(_0x3fe9b6['IUniverInstanceService']),_0x4a1e1f=_0xfc0e0e[_0x32f17a(0x19d)]()[0x0],_0x2fecf0=_0x4a1e1f?_0x2aa40c[_0x32f17a(0x3f7)](_0x4a1e1f[_0x32f17a(0x429)]):void 0x0,_0x3404bf=_0x2fecf0===_0x3fe9b6[_0x32f17a(0x1df)]['UNIVER_DOC']?_0x32f17a(0xfd):_0x2fecf0===_0x3fe9b6[_0x32f17a(0x1df)][_0x32f17a(0x430)]?_0x12dd5f:void 0x0,_0x4b5be7=_0x3404bf?_0x33fb25['get'](_0x3404bf):void 0x0;return _0x4b5be7?(0x0,_0x5817cb[_0x32f17a(0x3af)])(_0x4b5be7,{}):null;}function _0x444add(){const _0x16f6ae=_0x2ea0c4;let _0xc1b3ea=(0x0,_0x2b76f2[_0x16f6ae(0x20b)])(_0x3fe9b6[_0x16f6ae(0x2ec)]);return(0x0,_0x5817cb[_0x16f6ae(0x3af)])(_0x4cdeaa,{'onShapeClick':_0xc3428e=>{const _0x18cc10=_0x16f6ae;_0xc1b3ea[_0x18cc10(0x196)](_0x5e7a4e['id'],{'value':_0xc3428e[_0x18cc10(0x1d5)],'enhanceParams':{'endArrow':_0xc3428e[_0x18cc10(0x175)],'startArrow':_0xc3428e['startArrow'],'horizontal':_0xc3428e['horizontal'],'vertical':_0xc3428e[_0x18cc10(0x170)]}});}});}function _0x5e2d7a(_0x4d10be){const _0x30f84d=_0x2ea0c4;let _0xa80894=_0x4d10be[_0x30f84d(0x263)](_0x3fe9b6[_0x30f84d(0x287)]);return{'id':_0x5e7a4e['id'],'type':_0x2b76f2[_0x30f84d(0x3b7)][_0x30f84d(0x365)],'selections':[{'label':{'name':_0x53f9d3,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x5e7a4e['id']}}}],'icon':_0x30f84d(0x1c6),'tooltip':_0x30f84d(0x10a),'activated$':(0x0,_0x48ecbb[_0x30f84d(0x3d2)])(_0xa80894,!0x1,()=>new _0x14dd2b[(_0x30f84d(0x2c3))](_0x5148f6=>{const _0x16d97d=_0x30f84d;_0x5148f6[_0x16d97d(0x234)](!0x1);})),'hidden$':(0x0,_0x2b76f2[_0x30f84d(0x23a)])(_0x4d10be,_0x3fe9b6['UniverInstanceType']['UNIVER_SHEET']),'disabled$':(0x0,_0x48ecbb[_0x30f84d(0x398)])(_0x4d10be)};}let _0x247894={[_0x2b76f2['RibbonPosition'][_0x2ea0c4(0x35b)]]:{[_0x2b76f2['RibbonStartGroup'][_0x2ea0c4(0x19b)]]:{[_0xd4b25['id']]:{'order':3.5,'menuItemFactory':_0x1f26b7},[_0x18c74f['id']]:{'order':3.4,'menuItemFactory':_0x2c6490}},[_0x2b76f2['RibbonStartGroup'][_0x2ea0c4(0x2d5)]]:{[_0x2ef8df['SetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x1,'menuItemFactory':_0x4ed3e6,[_0x2ef8df['ResetInlineFormatTextBackgroundColorCommand']['id']]:{'order':0x0,'menuItemFactory':_0x254b20}}}},[_0x2b76f2[_0x2ea0c4(0x29f)][_0x2ea0c4(0x2ac)]]:{[_0x5e7a4e['id']]:{'order':0x4,'menuItemFactory':_0x5e2d7a},[_0xe06288['id']]:{'order':4.1,'menuItemFactory':_0x4a92a8}}};var _0x105126=_0x2ea0c4(0x19e),_0x45f0cc=_0x2ea0c4(0x3a9);let _0x441656={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x31e),'handler':async(_0x327486,_0x24d681)=>{const _0x3660e9=_0x2ea0c4;var _0x182fe2;if(!_0x24d681)return!0x1;let {value:_0x480bd6}=_0x24d681,_0x4083dd=_0x327486[_0x3660e9(0x263)](_0x3fe9b6[_0x3660e9(0x2ec)]),_0x3be7f7=_0x327486['get'](_0x383d16),_0x5978b6=_0x327486[_0x3660e9(0x263)](_0x2cb023[_0x3660e9(0x40f)]),_0x559b02=_0x327486['get'](_0x122d5a[_0x3660e9(0x238)]),_0x3a13ea=_0x3be7f7[_0x3660e9(0x2fd)]();if(!_0x3a13ea)return!0x1;let {unitId:_0x4c4b46,subUnitId:_0x58bedb,shapeId:_0x1090c5}=_0x3a13ea,_0xf12ec7=_0x5978b6[_0x3660e9(0x252)](_0x4c4b46,_0x58bedb,_0x1090c5);if(!_0xf12ec7)return!0x1;let _0x2fcd6a=_0xf12ec7[_0x3660e9(0x236)]();if(!_0x2fcd6a||!('dataModel'in _0x2fcd6a))return!0x1;let _0x192aa7=(0x0,_0x502542[_0x3660e9(0x381)])(_0x2fcd6a[_0x3660e9(0x299)]);if(!_0x192aa7)return!0x1;let _0x372de3={..._0x192aa7,'fs':_0x480bd6},_0x531158=await _0x4083dd[_0x3660e9(0x196)](_0x4a4f06['id'],{'unitId':_0x4c4b46,'subUnitId':_0x58bedb,'shapeId':_0x1090c5,'shapeData':{'shapeText':{..._0x2fcd6a,'isHorizontal':(_0x182fe2=_0x2fcd6a[_0x3660e9(0x42c)])==null?!0x0:_0x182fe2,'dataModel':_0x372de3}}});if(_0x531158){let _0x55b662=_0x559b02[_0x3660e9(0x425)](_0x4c4b46);if(_0x55b662!=null&&_0x55b662[_0x3660e9(0x373)]){let _0x27a72b=(0x0,_0xcd0f0e[_0x3660e9(0x1f8)])({'unitId':_0x4c4b46,'subUnitId':_0x58bedb,'drawingId':_0x1090c5}),_0x24e333=_0x55b662[_0x3660e9(0x373)][_0x3660e9(0x432)](_0x27a72b);_0x24e333&&_0x24e333[_0x3660e9(0x1d4)](!0x0);}}return _0x531158;}},_0xabf84b={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0x3a0),'handler':async _0x4faecf=>{const _0x1039b1=_0x2ea0c4;var _0x5f5dd5;let _0x1b7076=_0x4faecf[_0x1039b1(0x263)](_0x383d16),_0x445df1=_0x4faecf['get'](_0x2cb023[_0x1039b1(0x40f)]),_0xefb667=_0x4faecf[_0x1039b1(0x263)](_0x3fe9b6['ICommandService']),_0x506854=_0x1b7076['getEditing']();if(!_0x506854)return!0x1;let {unitId:_0x1b4152,subUnitId:_0x244681,shapeId:_0x368d62}=_0x506854,_0x487d32=_0x445df1[_0x1039b1(0x252)](_0x1b4152,_0x244681,_0x368d62);if(!_0x487d32)return!0x1;let _0x2e993f=_0x487d32[_0x1039b1(0x236)]();if(!_0x2e993f||!('dataModel'in _0x2e993f))return!0x1;let _0x4243b7=(0x0,_0x502542[_0x1039b1(0x381)])(_0x2e993f['dataModel']),_0x4672a5=(_0x5f5dd5=_0x4243b7==null?void 0x0:_0x4243b7['fs'])==null?0xe:_0x5f5dd5,_0x3c9ae8=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x3a174f=_0x4672a5,_0x35a175=_0x3c9ae8['indexOf'](_0x4672a5);return _0x35a175!==-0x1&&_0x35a175<_0x3c9ae8[_0x1039b1(0x111)]-0x1?_0x3a174f=_0x3c9ae8[_0x35a175+0x1]:_0x35a175===-0x1&&(_0x3a174f=Math[_0x1039b1(0x1a5)](_0x4672a5)+0x1),_0xefb667[_0x1039b1(0x196)](_0x441656['id'],{'value':_0x3a174f});}},_0x41635b={'type':_0x3fe9b6['CommandType'][_0x2ea0c4(0x2ad)],'id':_0x2ea0c4(0xfc),'handler':async _0x4faa39=>{const _0xc67f90=_0x2ea0c4;var _0x1265f2;let _0x4b5c38=_0x4faa39[_0xc67f90(0x263)](_0x383d16),_0x3f8089=_0x4faa39['get'](_0x2cb023['SheetsShapeService']),_0x115cb9=_0x4faa39[_0xc67f90(0x263)](_0x3fe9b6[_0xc67f90(0x2ec)]),_0x277d9b=_0x4b5c38['getEditing']();if(!_0x277d9b)return!0x1;let {unitId:_0xbb241d,subUnitId:_0x3fbcc6,shapeId:_0x1bc9d7}=_0x277d9b,_0x3cefe1=_0x3f8089[_0xc67f90(0x252)](_0xbb241d,_0x3fbcc6,_0x1bc9d7);if(!_0x3cefe1)return!0x1;let _0x475a98=_0x3cefe1[_0xc67f90(0x236)]();if(!_0x475a98||!(_0xc67f90(0x299)in _0x475a98))return!0x1;let _0x43c8cd=(0x0,_0x502542['normalizeShapeTextModel'])(_0x475a98[_0xc67f90(0x299)]),_0x2974ce=(_0x1265f2=_0x43c8cd==null?void 0x0:_0x43c8cd['fs'])==null?0xe:_0x1265f2,_0x5ba2ce=[0x9,0xa,0xb,0xc,0xe,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x24,0x30,0x48],_0x574130=_0x2974ce,_0x3da11e=_0x5ba2ce[_0xc67f90(0x3f3)](_0x2974ce);return _0x3da11e!==-0x1&&_0x3da11e>0x0?_0x574130=_0x5ba2ce[_0x3da11e-0x1]:_0x3da11e===-0x1&&(_0x574130=Math[_0xc67f90(0x1a5)](_0x2974ce)-0x1),_0x574130<0x1&&(_0x574130=0x1),_0x115cb9[_0xc67f90(0x196)](_0x441656['id'],{'value':_0x574130});}},_0x43882a={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ef)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},_0xe5dd06={'type':_0x3fe9b6[_0x2ea0c4(0x2bc)][_0x2ea0c4(0x2ef)],'id':_0x2ea0c4(0x2e6),'handler'(){return!0x0;}},_0x4a6307={};function _0x568943({ref:_0x2905dc,..._0x2545f}){const _0x3f5b05=_0x2ea0c4;let {icon:_0x1b90aa,id:_0x71f088,className:_0x341155,extend:_0x29de70,..._0x3920cc}=_0x2545f,_0x5182e3=(_0x3f5b05(0x146)+_0x71f088+'\x20'+(_0x341155||''))[_0x3f5b05(0x317)](),_0x34197e=(0x0,_0x6a3016['useRef'])('_'+_0x1dcfb2());return _0x196fdb(_0x1b90aa,''+_0x71f088,{'defIds':_0x1b90aa[_0x3f5b05(0x2ce)],'idSuffix':_0x34197e['current']},{'ref':_0x2905dc,'className':_0x5182e3,..._0x3920cc},_0x29de70);}function _0x196fdb(_0x3f2c83,_0x240959,_0x214d00,_0x370155,_0x930ec6){const _0x947302=_0x2ea0c4;return(0x0,_0x6a3016[_0x947302(0x105)])(_0x3f2c83['tag'],{'key':_0x240959,..._0x5124ee(_0x3f2c83,_0x214d00,_0x930ec6),..._0x370155},(_0x46cac1(_0x3f2c83,_0x214d00)['children']||[])[_0x947302(0x2cb)]((_0x551914,_0x98d359)=>_0x196fdb(_0x551914,_0x240959+'-'+_0x3f2c83[_0x947302(0x2c6)]+'-'+_0x98d359,_0x214d00,void 0x0,_0x930ec6)));}function _0x5124ee(_0x5471ee,_0x1c0a7b,_0x21e116){const _0x8fe7c1=_0x2ea0c4;let _0xa79852={..._0x5471ee['attrs']};_0x21e116!=null&&_0x21e116[_0x8fe7c1(0x187)]&&_0xa79852['fill']===_0x8fe7c1(0x187)&&(_0xa79852[_0x8fe7c1(0x23b)]=_0x21e116[_0x8fe7c1(0x187)]),_0x21e116!=null&&_0x21e116['colorChannel1']&&_0xa79852[_0x8fe7c1(0x374)]===_0x8fe7c1(0x187)&&(_0xa79852[_0x8fe7c1(0x374)]=_0x21e116[_0x8fe7c1(0x187)]),_0x5471ee[_0x8fe7c1(0x2c6)]==='mask'&&_0xa79852['id']&&(_0xa79852['id']+=_0x1c0a7b[_0x8fe7c1(0x119)]),Object[_0x8fe7c1(0x132)](_0xa79852)[_0x8fe7c1(0x31b)](([_0x341367,_0x3300f7])=>{const _0x3c28ea=_0x8fe7c1;_0x341367===_0x3c28ea(0x3cc)&&typeof _0x3300f7==_0x3c28ea(0x3eb)&&(_0xa79852[_0x341367]=_0x3300f7[_0x3c28ea(0x36f)](/url\(#(.*)\)/,_0x3c28ea(0x2c9)+_0x1c0a7b[_0x3c28ea(0x119)]+')'));});let {defIds:_0x271b47}=_0x1c0a7b;return!_0x271b47||_0x271b47['length']===0x0?_0xa79852:(_0x5471ee[_0x8fe7c1(0x2c6)]===_0x8fe7c1(0x3db)&&_0xa79852[_0x8fe7c1(0x322)]&&(_0xa79852[_0x8fe7c1(0x322)]+=_0x1c0a7b[_0x8fe7c1(0x119)]),Object[_0x8fe7c1(0x132)](_0xa79852)['forEach'](([_0x2d9f05,_0x420fc7])=>{const _0x5b575f=_0x8fe7c1;typeof _0x420fc7==_0x5b575f(0x3eb)&&(_0xa79852[_0x2d9f05]=_0x420fc7[_0x5b575f(0x36f)](/url\(#(.*)\)/,_0x5b575f(0x2c9)+_0x1c0a7b['idSuffix']+')'));}),_0xa79852);}function _0x46cac1(_0x4bca27,_0x302ccb){const _0x5f6894=_0x2ea0c4;var _0x525a02;let {defIds:_0x52b698}=_0x302ccb;return!_0x52b698||_0x52b698[_0x5f6894(0x111)]===0x0?_0x4bca27:_0x4bca27[_0x5f6894(0x2c6)]==='defs'&&(_0x525a02=_0x4bca27[_0x5f6894(0x307)])!=null&&_0x525a02[_0x5f6894(0x111)]?{..._0x4bca27,'children':_0x4bca27['children'][_0x5f6894(0x2cb)](_0x2b9397=>typeof _0x2b9397[_0x5f6894(0x303)]['id']==_0x5f6894(0x3eb)&&_0x52b698&&_0x52b698['includes'](_0x2b9397[_0x5f6894(0x303)]['id'])?{..._0x2b9397,'attrs':{..._0x2b9397['attrs'],'id':_0x2b9397[_0x5f6894(0x303)]['id']+_0x302ccb[_0x5f6894(0x119)]}}:_0x2b9397)}:_0x4bca27;}function _0x1dcfb2(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x568943[_0x2ea0c4(0x1a2)]=_0x2ea0c4(0x202);let _0x1c9fa3={'tag':_0x2ea0c4(0x1cf),'attrs':{'xmlns':_0x2ea0c4(0x1a6),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2ea0c4(0x37b),'height':_0x2ea0c4(0x37b)},'children':[{'tag':_0x2ea0c4(0x25c),'attrs':{'fill':_0x2ea0c4(0x187),'d':_0x2ea0c4(0x436),'fillRule':_0x2ea0c4(0x168),'clipRule':_0x2ea0c4(0x168)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2ea0c4(0x156),'fillRule':'evenodd','clipRule':_0x2ea0c4(0x168)}}]},_0xee2ef4=(0x0,_0x6a3016['forwardRef'])(function(_0x4dcdfc,_0x3fe8fe){const _0x428a3b=_0x2ea0c4;return(0x0,_0x6a3016[_0x428a3b(0x105)])(_0x568943,Object[_0x428a3b(0x28a)]({},_0x4dcdfc,{'id':_0x428a3b(0x2d3),'ref':_0x3fe8fe,'icon':_0x1c9fa3}));});_0xee2ef4[_0x2ea0c4(0x1a2)]='CopyDoubleIcon';function _0x338b15(_0x2accbf){const _0x30bd64=_0x2ea0c4;return _0x2accbf[_0x30bd64(0x317)]()||void 0x0;}function _0x1b513f(_0x6231b6){const _0x222b31=_0x2ea0c4;switch(_0x6231b6[_0x222b31(0x19a)]){case _0x3fe9b6[_0x222b31(0x225)][_0x222b31(0x34c)]:return _0x222b31(0x1c7);case _0x3fe9b6[_0x222b31(0x225)][_0x222b31(0x1f9)]:return _0x222b31(0x35d);case _0x3fe9b6['DrawingTypeEnum'][_0x222b31(0x165)]:return'table';case _0x3fe9b6[_0x222b31(0x225)][_0x222b31(0x106)]:return'smartArt';case _0x3fe9b6['DrawingTypeEnum'][_0x222b31(0x282)]:return _0x222b31(0x305);case _0x3fe9b6[_0x222b31(0x225)][_0x222b31(0x133)]:return'group';case _0x3fe9b6['DrawingTypeEnum'][_0x222b31(0x11e)]:return _0x222b31(0xf7);case _0x3fe9b6[_0x222b31(0x225)][_0x222b31(0x29a)]:return _0x222b31(0x3fa);case _0x3fe9b6['DrawingTypeEnum'][_0x222b31(0x1d9)]:return _0x222b31(0x340);default:return'object';}}function _0x5a5527(_0x1eeb76,_0xe8c967,_0x343140){const _0xe5c20e=_0x2ea0c4;var _0x4ad920;return((_0x4ad920=_0x1eeb76['name'])==null?void 0x0:_0x4ad920['trim']())||(0x0,_0x3cfff1[_0xe5c20e(0x2de)])(_0x343140,_0x1b513f(_0x1eeb76))+'\x20'+(_0xe8c967+0x1);}function _0x2b46fb(){const _0x27cd65=_0x2ea0c4;var _0x2f1e9c,_0x21ff21,_0x57408c,_0x1b4286;let _0x4d0e50=(0x0,_0x2b76f2[_0x27cd65(0x20b)])(_0x3fe9b6[_0x27cd65(0x151)]),_0x300584=(0x0,_0x2b76f2[_0x27cd65(0x20b)])(_0x3fe9b6[_0x27cd65(0x2ec)]),_0x26e847=(0x0,_0x2b76f2['useDependency'])(_0x3fe9b6[_0x27cd65(0x287)]),_0x1bd136=(0x0,_0x2b76f2[_0x27cd65(0x20b)])(_0x1ba3d5['ISheetDrawingService']),_0x50b529=(0x0,_0x2b76f2['useDependency'])(_0xcd0f0e['IDrawingManagerService']),_0x5c5da1=(0x0,_0x2b76f2['useDependency'])(_0x122d5a['IRenderManagerService']),[,_0x2e35e2]=(0x0,_0x6a3016['useReducer'])(_0xe16fe2=>_0xe16fe2+0x1,0x0),_0x3e773f=_0x26e847[_0x27cd65(0x1b3)](_0x3fe9b6['UniverInstanceType'][_0x27cd65(0x430)]),_0x3e1c96=(_0x2f1e9c=_0x3e773f==null?void 0x0:_0x3e773f[_0x27cd65(0x2b5)]())==null?'':_0x2f1e9c,_0x22b116=(_0x21ff21=_0x3e773f==null||(_0x57408c=_0x3e773f['getActiveSheet']())==null?void 0x0:_0x57408c[_0x27cd65(0x1eb)]())==null?'':_0x21ff21,_0x2e5173=(0x0,_0x2b76f2[_0x27cd65(0x25a)])(()=>_0x50b529[_0x27cd65(0x3be)],_0x50b529['getFocusDrawings'](),!0x1,[_0x50b529]);(0x0,_0x6a3016[_0x27cd65(0x16c)])(()=>{const _0x40f78d=_0x27cd65;let _0x55f333=_0x300584['onCommandExecuted'](()=>_0x2e35e2());return()=>_0x55f333[_0x40f78d(0x14f)]();},[_0x300584]);let _0x501521=_0x3e1c96&&_0x22b116?_0x1bd136[_0x27cd65(0x22c)](_0x3e1c96,_0x22b116):{},_0x618f39=_0x3e1c96&&_0x22b116?_0x1bd136[_0x27cd65(0x235)](_0x3e1c96,_0x22b116):[],_0x92c42d=(0x0,_0x6a3016[_0x27cd65(0x3ca)])(()=>(0x0,_0x3cfff1['getObjectListPanelLabels'])(_0x4d0e50),[_0x4d0e50]),_0x5d324f=(0x0,_0x6a3016[_0x27cd65(0x3ca)])(()=>{const _0x557aa3=_0x27cd65;let _0xba52c8=_0x618f39[_0x557aa3(0x2cb)](_0x2ef028=>_0x501521[_0x2ef028])[_0x557aa3(0x222)](_0x24290a=>!!_0x24290a)[_0x557aa3(0x3f1)](),_0x4deba6=_0xba52c8[_0x557aa3(0x437)]((_0x1f8bb8,_0x1704a6)=>(_0x1f8bb8[(0x0,_0x3cfff1[_0x557aa3(0x1fe)])(_0x1704a6['drawingType'])]+=0x1,_0x1f8bb8),{'canvas':0x0,'floating':0x0}),_0x209dc0={'canvas':0x0,'floating':0x0};return _0xba52c8['map']((_0x3e2cdf,_0xd97add)=>{const _0x58148b=_0x557aa3;let _0x2874c1=(0x0,_0x3cfff1['getObjectListPanelSectionIdForDrawingType'])(_0x3e2cdf['drawingType']),_0x1e42ec=_0x2874c1===_0x3cfff1[_0x58148b(0x26c)],_0x20779e=_0x209dc0[_0x2874c1]++;return{'id':_0x3e2cdf[_0x58148b(0x215)],'name':_0x5a5527(_0x3e2cdf,_0xd97add,_0x4d0e50),'description':_0x3e2cdf[_0x58148b(0x1aa)],'visible':_0x3e2cdf[_0x58148b(0x31c)]!==!0x0,'selectable':_0x3e2cdf[_0x58148b(0x428)]!==!0x1,'sectionId':_0x2874c1,'sectionTitle':_0x1e42ec?_0x92c42d[_0x58148b(0x2dc)]:_0x92c42d['sectionCanvas'],'capabilities':_0x1e42ec?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x1e42ec&&_0x20779e>0x0,'canMoveBackward':!_0x1e42ec&&_0x20779e<_0x4deba6[_0x58148b(0x163)]-0x1,'canReorder':!_0x1e42ec};});},[_0x501521,_0x618f39,_0x92c42d[_0x27cd65(0x415)],_0x92c42d[_0x27cd65(0x2dc)],_0x4d0e50]),_0x3acd67=(0x0,_0x6a3016[_0x27cd65(0x3ca)])(()=>(_0x2e5173==null?[]:_0x2e5173)[_0x27cd65(0x222)](_0x1aeba5=>_0x1aeba5[_0x27cd65(0x429)]===_0x3e1c96&&_0x1aeba5[_0x27cd65(0x3aa)]===_0x22b116)['map'](_0x5dc962=>_0x5dc962[_0x27cd65(0x215)]),[_0x2e5173,_0x22b116,_0x3e1c96]),_0x33b10e=(_0x1b4286=_0x3acd67[_0x3acd67[_0x27cd65(0x111)]-0x1])==null?null:_0x1b4286,_0x3f46d4=_0x145de0=>{const _0x5b8c92=_0x27cd65;var _0x5b476;return(_0x5b476=_0x1bd136[_0x5b8c92(0x3e3)]({'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingId':_0x145de0}))==null?null:_0x5b476;},_0x5818aa=_0x5dcb28=>{const _0x4b1ae1=_0x27cd65;!_0x3e1c96||!_0x5dcb28[_0x4b1ae1(0x111)]||_0x300584[_0x4b1ae1(0x196)](_0x1ba3d5[_0x4b1ae1(0x1ae)]['id'],{'unitId':_0x3e1c96,'drawings':_0x5dcb28});},_0x261c34=(_0x4c960c,_0x5a2323)=>{_0x3f46d4(_0x4c960c)&&_0x5818aa([{'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingId':_0x4c960c,..._0x5a2323}]);},_0x447b35=(_0x51f6cd,_0x911b2)=>{const _0x339e39=_0x27cd65;if(!_0x3e1c96||!_0x22b116)return;let _0x93bdf6=_0x911b2?_0x3acd67[_0x339e39(0x261)](_0x51f6cd)?_0x3acd67[_0x339e39(0x222)](_0x5a8dce=>_0x5a8dce!==_0x51f6cd):[..._0x3acd67,_0x51f6cd]:[_0x51f6cd];_0x300584[_0x339e39(0x38f)](_0xcd0f0e[_0x339e39(0x2a8)]['id'],_0x93bdf6[_0x339e39(0x2cb)](_0x96dea2=>({'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingId':_0x96dea2})));let _0x444d82=_0x93bdf6[_0x93bdf6[_0x339e39(0x111)]-0x1];_0x444d82?(0x0,_0x502542[_0x339e39(0x3b1)])(_0x5c5da1,{'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingId':_0x444d82}):(0x0,_0x502542[_0x339e39(0x174)])(_0x5c5da1,_0x3e1c96);},_0x10cdab=(_0x502c51,_0x469dd7)=>{const _0x338350=_0x27cd65;_0x5818aa(_0x502c51[_0x338350(0x2cb)](_0x736169=>_0x3f46d4(_0x736169))[_0x338350(0x222)](_0x20da87=>!!_0x20da87)[_0x338350(0x222)](_0x50ef48=>_0x50ef48[_0x338350(0x31c)]!==!0x0!==_0x469dd7)['map'](_0x29a2d8=>({'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingId':_0x29a2d8[_0x338350(0x215)],'hidden':!_0x469dd7})));},_0x1fdb0c=_0x1cfd15=>{const _0x3bcd0a=_0x27cd65;let _0x1a9517=_0x3f46d4(_0x1cfd15);_0x1a9517&&_0x261c34(_0x1cfd15,{'selectable':_0x1a9517[_0x3bcd0a(0x428)]===!0x1?void 0x0:!0x1});},_0x290488=(_0x3b7efa,_0x460a03)=>{const _0xbadb8f=_0x27cd65;var _0x81bb7a,_0x14e6ba;let _0x27f461=_0x338b15(_0x460a03);((_0x81bb7a=(_0x14e6ba=_0x3f46d4(_0x3b7efa))==null?void 0x0:_0x14e6ba[_0xbadb8f(0x2bb)])==null?void 0x0:_0x81bb7a)!==_0x27f461&&_0x261c34(_0x3b7efa,{'name':_0x27f461});},_0x3c9913=(_0x44240e,_0x44b695)=>{const _0x17bf26=_0x27cd65;var _0x37e309,_0x7caf7a;let _0x52f933=_0x338b15(_0x44b695);((_0x37e309=(_0x7caf7a=_0x3f46d4(_0x44240e))==null?void 0x0:_0x7caf7a[_0x17bf26(0x1aa)])==null?void 0x0:_0x37e309)!==_0x52f933&&_0x261c34(_0x44240e,{'description':_0x52f933});},_0x2be267=(_0x34e4d1,_0x370099)=>{const _0x25f036=_0x27cd65;!_0x3e1c96||!_0x22b116||_0x300584[_0x25f036(0x196)](_0x1ba3d5[_0x25f036(0x206)]['id'],{'unitId':_0x3e1c96,'subUnitId':_0x22b116,'drawingIds':[_0x34e4d1],'arrangeType':_0x370099});};return!_0x3e1c96||!_0x22b116?(0x0,_0x5817cb[_0x27cd65(0x3af)])(_0x27cd65(0x104),{'className':_0x27cd65(0xff),'children':_0x92c42d['title']}):(0x0,_0x5817cb[_0x27cd65(0x3af)])(_0x3cfff1[_0x27cd65(0x184)],{'items':_0x5d324f,'selectedIds':_0x3acd67,'focusedId':_0x33b10e,'labels':_0x92c42d,'onSelect':_0x447b35,'onSetVisible':_0x10cdab,'onCommitName':_0x290488,'onCommitDescription':_0x3c9913,'onMoveForward':_0x3ecdd4=>_0x2be267(_0x3ecdd4,_0x3fe9b6['ArrangeTypeEnum'][_0x27cd65(0x29b)]),'onMoveBackward':_0x238077=>_0x2be267(_0x238077,_0x3fe9b6['ArrangeTypeEnum'][_0x27cd65(0x21f)]),'onToggleSelectable':_0x1fdb0c});}let _0x2408bd=class{constructor(_0x35ace7){this['_renderManagerService']=_0x35ace7;}[_0x2ea0c4(0x280)](_0x284ecb,_0x326212){const _0x2dc5b4=_0x2ea0c4;let _0x468311=this[_0x2dc5b4(0x200)][_0x2dc5b4(0x425)](_0x284ecb['unitId']),_0x4f4369=_0x468311==null?void 0x0:_0x468311['scene'];if(!_0x4f4369)return;let _0x4960ac=(0x0,_0xcd0f0e[_0x2dc5b4(0x1f8)])(_0x284ecb),_0x370d31=_0x4f4369['getObjectIncludeInGroup'](_0x4960ac);_0x370d31==null||_0x370d31[_0x2dc5b4(0x2c5)](_0x326212);}};_0x2408bd=_0x20d714([_0x26d55f(0x0,_0x122d5a[_0x2ea0c4(0x238)])],_0x2408bd);function _0x494fc9(){const _0x25cc1b=_0x2ea0c4;let _0x298d87=(0x0,_0x2b76f2[_0x25cc1b(0x20b)])(_0xcd0f0e[_0x25cc1b(0x3c8)]),[_0x1797ad,_0x25142a]=(0x0,_0x6a3016[_0x25cc1b(0x2f4)])(_0x298d87[_0x25cc1b(0x19d)]());return(0x0,_0x6a3016['useEffect'])(()=>{const _0x222843=_0x25cc1b;let _0x102f0a=_0x298d87['focus$'][_0x222843(0x15f)](_0x4bc39d=>{_0x25142a(_0x4bc39d);});return()=>{_0x102f0a['unsubscribe']();};},[]),_0x1797ad['length']===0x0?null:(0x0,_0x5817cb[_0x25cc1b(0x3af)])(_0x25cc1b(0x104),{'children':(0x0,_0x5817cb[_0x25cc1b(0x391)])('div',{'className':_0x25cc1b(0x417),'children':[(0x0,_0x5817cb['jsx'])(_0x3cfff1[_0x25cc1b(0x18c)],{'drawings':_0x1797ad,'hasCropper':!0x1}),(0x0,_0x5817cb[_0x25cc1b(0x3af)])(_0x20f931['SheetDrawingAnchor'],{'drawings':_0x1797ad})]})});}function _0x3930f0(_0xce4ea){const _0x51e503=_0x2ea0c4;let {unitId:_0x314c85,subUnitId:_0x31f00f,shapeId:_0x419de3}=_0xce4ea,_0x2cee83=(0x0,_0x2b76f2[_0x51e503(0x20b)])(_0x3fe9b6[_0x51e503(0x2ec)]),_0xf75989=(0x0,_0x2b76f2[_0x51e503(0x20b)])(_0x2408bd);return(0x0,_0x5817cb['jsx'])(_0x502542[_0x51e503(0x378)],{..._0xce4ea,'positionEditor':(0x0,_0x5817cb['jsx'])(_0x494fc9,{}),'onUpdateShapeData':(_0x4f3f71,_0x39f405)=>{_0x2ed581(_0x2cee83,_0x314c85,_0x31f00f,_0x419de3,_0x4f3f71,_0x39f405);},'onUpdateLineShapeData':(_0x3c353e,_0x1f9cb5)=>{_0x20ea5c(_0x2cee83,_0x314c85,_0x31f00f,_0x419de3,_0x3c353e,_0x1f9cb5);},'onUpdateShapeFillImage':_0x4318ff=>{_0xf75989['updateShapeFillImage']({'unitId':_0x314c85,'subUnitId':_0x31f00f,'drawingId':_0x419de3},_0x4318ff);}});}function _0x39ba89(_0x10d353){const _0x2cb070=_0x2ea0c4;let _0xad8fbc=_0x10d353[_0x2cb070(0x195)];return _0xad8fbc&&_0x2cb070(0x299)in _0xad8fbc&&_0xad8fbc[_0x2cb070(0x299)]?(0x0,_0x502542['normalizeShapeTextModel'])(_0xad8fbc[_0x2cb070(0x299)]):null;}function _0x50f5b7(_0x2a97e4){const _0x519720=_0x2ea0c4;var _0xc3631d,_0x5d59de,_0x40de96,_0x12a8b7;let _0x573cbe=(_0xc3631d=_0x39ba89(_0x2a97e4))==null?void 0x0:_0xc3631d[_0x519720(0x209)],_0x34fa26=(_0x5d59de=_0x573cbe==null||(_0x40de96=_0x573cbe[_0x519720(0x1f6)])==null||(_0x40de96=_0x40de96[_0x519720(0x1c8)])==null||(_0x40de96=_0x40de96[0x0])==null?void 0x0:_0x40de96['ts'])==null?{}:_0x5d59de;return{..._0x573cbe==null||(_0x12a8b7=_0x573cbe[_0x519720(0x2b6)])==null?void 0x0:_0x12a8b7[_0x519720(0x28d)],..._0x34fa26};}function _0x497a68(_0x25272d){const _0xfda052=_0x2ea0c4;let _0x43a636=_0x25272d[_0xfda052(0x389)]['extraProps'];return _0x43a636?(0x0,_0x5817cb[_0xfda052(0x3af)])(_0x152a1e,{..._0x43a636}):null;}function _0x152a1e(_0x40c433){const _0x471837=_0x2ea0c4;var _0x1ad10e,_0x2f0268;let _0x1cdf91=(0x0,_0x2b76f2[_0x471837(0x20b)])(_0x3fe9b6['ICommandService']),_0xb32642=(0x0,_0x2b76f2['useDependency'])(_0x2cb023['SheetsShapeService']),{unitId:_0x3cba87,subUnitId:_0x324273,drawingId:_0x385bbc,drawingType:_0x213db2,shapeType:_0x27074}=_0x40c433,[_0x29c5b3,_0x30b262]=(0x0,_0x6a3016['useState'])(_0x40c433[_0x471837(0x27e)]),_0x3eadbc=(0x0,_0x6a3016['useMemo'])(()=>_0x50f5b7(_0x29c5b3),[_0x29c5b3]),_0x429a06=(0x0,_0x6a3016['useMemo'])(()=>_0x39ba89(_0x29c5b3),[_0x29c5b3]);(0x0,_0x6a3016[_0x471837(0x16c)])(()=>{const _0x4876e0=_0x471837;let _0x22a727=_0x1cdf91[_0x4876e0(0x23e)](_0x3aa58c=>{const _0x2ce6b7=_0x4876e0;if(_0x3aa58c['id']!==_0x2cb023[_0x2ce6b7(0x2d7)]['id'])return;let _0x478dbf=_0xb32642[_0x2ce6b7(0x15b)](_0x3cba87,_0x324273,_0x385bbc);_0x478dbf&&_0x30b262(_0x478dbf);});return()=>_0x22a727[_0x4876e0(0x14f)]();},[_0x1cdf91,_0x385bbc,_0xb32642,_0x324273,_0x3cba87]);let _0x3860f6=_0x277133=>{_0x30b262(_0x2bf7cc=>({..._0x2bf7cc,..._0x277133}));},_0x231051=_0x4bc47b=>{let _0x5a9d6b=(0x0,_0x502542['buildShapeTextDataUpdate'])(_0x29c5b3,_0x4bc47b);_0x2ed581(_0x1cdf91,_0x3cba87,_0x324273,_0x385bbc,{'oldShapeData':{'shapeText':_0x29c5b3['shapeText']}},_0x5a9d6b),_0x3860f6(_0x5a9d6b);};return(0x0,_0x5817cb[_0x471837(0x3af)])(_0x502542[_0x471837(0x2ff)],{'shapeData':_0x29c5b3,'shapeType':_0x27074,'textStyle':{'ff':_0x360390['ShapeDefaultConfig'][_0x471837(0x195)]['fontFamily'],'fs':_0x360390[_0x471837(0x18d)][_0x471837(0x195)][_0x471837(0x14c)],'cl':{'rgb':_0x360390[_0x471837(0x18d)][_0x471837(0x195)][_0x471837(0x390)]},..._0x3eadbc},'textModel':_0x429a06?{'ha':(_0x1ad10e=_0x429a06['ha'])==null?_0x3fe9b6[_0x471837(0x120)][_0x471837(0xf8)]:_0x1ad10e,'va':(_0x2f0268=_0x429a06['va'])==null?_0x3fe9b6['VerticalAlign'][_0x471837(0x20d)]:_0x2f0268}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x360390[_0x471837(0x18d)]['fill'],'defaultGradientEndColor':_0x360390['ShapeDefaultConfig'][_0x471837(0x265)],'defaultStrokeColor':_0x360390[_0x471837(0x18d)][_0x471837(0x374)],'onUpdateShapeData':(_0x3df995,_0x4a5000)=>{_0x2ed581(_0x1cdf91,_0x3cba87,_0x324273,_0x385bbc,_0x3df995,_0x4a5000),_0x4a5000&&_0x3860f6(_0x4a5000);},'onUpdateText':_0x231051,'onOpenPanel':()=>{const _0x280702=_0x471837;_0x1cdf91[_0x280702(0x196)](_0xe5dd06['id'],{'unitId':_0x3cba87,'subUnitId':_0x324273,'drawingId':_0x385bbc});},'onDelete':()=>{const _0x5ee561=_0x471837;_0x1cdf91[_0x5ee561(0x196)](_0x1ba3d5[_0x5ee561(0x23f)]['id'],{'unitId':_0x3cba87,'drawings':[{'unitId':_0x3cba87,'subUnitId':_0x324273,'drawingId':_0x385bbc,'drawingType':_0x213db2}]});}});}let _0x40f01c=(0x0,_0x6a3016[_0x2ea0c4(0x172)])(()=>{const _0x55455d=_0x2ea0c4;let _0xdcffac=(0x0,_0x2b76f2[_0x55455d(0x20b)])(_0x383d16),_0x3c54cf=(0x0,_0x2b76f2[_0x55455d(0x20b)])(_0x2cb023[_0x55455d(0x40f)]),_0x5847a1=(0x0,_0x2b76f2[_0x55455d(0x20b)])(_0xcd0f0e[_0x55455d(0x3c8)]),_0x4047fd=(0x0,_0x2b76f2[_0x55455d(0x20b)])(_0x3fe9b6[_0x55455d(0x2ec)]),_0x14063b=(0x0,_0x2b76f2['useDependency'])(_0x122d5a[_0x55455d(0x238)]);return(0x0,_0x5817cb['jsx'])(_0x502542['ShapeTextEditorContainer'],{'adapter':(0x0,_0x6a3016[_0x55455d(0x3ca)])(()=>({'getShapeModel':(_0x4804f4,_0x222847,_0x4184cb)=>_0x3c54cf[_0x55455d(0x252)](_0x4804f4,_0x222847,_0x4184cb),'getShapeData':(_0x522a05,_0x34fe51,_0x2922a6)=>_0x3c54cf[_0x55455d(0x15b)](_0x522a05,_0x34fe51,_0x2922a6),'getDrawingTransform':(_0xb6deee,_0x56fb92,_0x4e9458)=>{const _0x33a1e6=_0x55455d;let _0x831fcd=_0x5847a1[_0x33a1e6(0x3e3)]({'unitId':_0xb6deee,'subUnitId':_0x56fb92,'drawingId':_0x4e9458});return _0x831fcd==null?void 0x0:_0x831fcd[_0x33a1e6(0x3ec)];},'updateShapeText':({unitId:_0x7f205,subUnitId:_0x542129,shapeId:_0x112d49,shapeText:_0x8af40c,oldShapeText:_0x1585aa})=>{const _0x162eab=_0x55455d;_0x4047fd[_0x162eab(0x196)](_0x4a4f06['id'],{'unitId':_0x7f205,'subUnitId':_0x542129,'shapeId':_0x112d49,'shapeData':{'shapeText':_0x8af40c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1585aa}}});},'updateHostSize':({unitId:_0x4a8af1,subUnitId:_0x18bda8,shapeId:_0x372855,width:_0x59baa2,height:_0x181ea5})=>{const _0x431053=_0x55455d;var _0x26639c,_0x10c312,_0x270180;let _0x369971=_0x5847a1[_0x431053(0x3e3)]({'unitId':_0x4a8af1,'subUnitId':_0x18bda8,'drawingId':_0x372855}),_0x2c9ff5=_0x369971==null?void 0x0:_0x369971[_0x431053(0x3ec)];if(!_0x369971||!_0x2c9ff5)return;let _0x5890ed={..._0x2c9ff5,'width':_0x59baa2,'height':_0x181ea5},_0x4717d4=(_0x26639c=_0x14063b[_0x431053(0x425)](_0x4a8af1))==null||(_0x26639c=_0x26639c['with'](_0x48ecbb[_0x431053(0x3ff)])[_0x431053(0x2fe)](_0x18bda8))==null?void 0x0:_0x26639c['skeleton'],_0x36fe66=_0x4717d4?(_0x10c312=(0x0,_0x1ba3d5[_0x431053(0x2e2)])(_0x5890ed,_0x4717d4))==null?_0x369971[_0x431053(0x116)]:_0x10c312:_0x369971['sheetTransform'],_0x153c64=_0x4717d4?(_0x270180=(0x0,_0x1ba3d5[_0x431053(0x27b)])(_0x5890ed,_0x4717d4))==null?_0x369971[_0x431053(0x315)]:_0x270180:_0x369971[_0x431053(0x315)];_0x4047fd[_0x431053(0x196)](_0x1ba3d5[_0x431053(0x1ae)]['id'],{'unitId':_0x4a8af1,'drawings':[{..._0x369971,'transform':_0x5890ed,'sheetTransform':_0x36fe66,'axisAlignSheetTransform':_0x153c64}]});},'allowHostSizeShrink':({unitId:_0x253bb9,subUnitId:_0x26dd6a,shapeId:_0x12643f})=>(0x0,_0x502542[_0x55455d(0x1d0)])(_0x3c54cf[_0x55455d(0x15b)](_0x253bb9,_0x26dd6a,_0x12643f))}),[_0x4047fd,_0x5847a1,_0x14063b,_0x3c54cf]),'editingService':_0xdcffac,'editorUnitId':_0x1a57f2,'positionOptions':(0x0,_0x6a3016['useMemo'])(()=>({'viewportKeys':{'main':_0x122d5a[_0x55455d(0x179)][_0x55455d(0x12d)],'leftTop':_0x122d5a[_0x55455d(0x179)][_0x55455d(0x24b)],'top':_0x122d5a[_0x55455d(0x179)][_0x55455d(0x3b6)],'left':_0x122d5a[_0x55455d(0x179)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x52cb9c,_0x2aaf14)=>{const _0x507ebf=_0x55455d;var _0x442698,_0x1e9e45;return(_0x442698=(_0x1e9e45=_0x52cb9c[_0x507ebf(0x3f8)](_0x48ecbb[_0x507ebf(0x3ff)])[_0x507ebf(0x2fe)](_0x2aaf14['subUnitId']))==null?void 0x0:_0x1e9e45[_0x507ebf(0x366)])==null?null:_0x442698;}}),[]),'verticalAlignCommandId':_0xd4b25['id']});}),_0x36f8a5=class extends _0x3fe9b6['Disposable']{constructor(_0x179a49,_0x4a38a8){const _0x31479e=_0x2ea0c4;super(),this['_componentManager']=_0x179a49,this['_iconManager']=_0x4a38a8,this[_0x31479e(0x2b0)](),this[_0x31479e(0x190)]();}['_registerIcons'](){const _0x40a3b0=_0x2ea0c4;this[_0x40a3b0(0x2b9)]['has']('CopyDoubleIcon')||this['disposeWithMe'](this[_0x40a3b0(0x2b9)][_0x40a3b0(0x2a6)]({'CopyDoubleIcon':_0xee2ef4}));}[_0x2ea0c4(0x190)](){const _0x265121=_0x2ea0c4;this[_0x265121(0x3c0)](this[_0x265121(0x25e)][_0x265121(0x2a6)](_0x1ad3e6,_0x3930f0)),this[_0x265121(0x3c0)](this[_0x265121(0x25e)][_0x265121(0x2a6)](_0x66df24,_0x2b46fb)),this[_0x265121(0x3c0)](this[_0x265121(0x25e)][_0x265121(0x2a6)](_0x53f9d3,_0x444add)),this['disposeWithMe'](this[_0x265121(0x25e)][_0x265121(0x2a6)](_0x12dd5f,_0x72ce34)),this[_0x265121(0x25e)]['get'](_0x3cfff1[_0x265121(0x2df)])||this[_0x265121(0x3c0)](this[_0x265121(0x25e)][_0x265121(0x2a6)](_0x3cfff1[_0x265121(0x2df)],_0x383bbe)),this[_0x265121(0x3c0)](this[_0x265121(0x25e)]['register'](_0x414ec8,_0x497a68)),this[_0x265121(0x3c0)](this[_0x265121(0x25e)][_0x265121(0x2a6)]('SheetShapeTextEditorContainer',_0x40f01c));}};_0x36f8a5=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2b76f2[_0x2ea0c4(0x136)])),_0x26d55f(0x1,(0x0,_0x3fe9b6['Inject'])(_0x2b76f2[_0x2ea0c4(0x157)]))],_0x36f8a5);let _0x1717ef=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0xa643e4,_0x69e82a,_0x59c61f,_0x4ca193,_0x131205){const _0x3b3353=_0x2ea0c4;super(),this[_0x3b3353(0x130)]=_0xa643e4,this['_drawingManagerService']=_0x69e82a,this[_0x3b3353(0x200)]=_0x59c61f,this[_0x3b3353(0x2ba)]=_0x4ca193,this[_0x3b3353(0x25d)]=_0x131205,_0x144b44(this,_0x3b3353(0x18a),null),_0x144b44(this,_0x3b3353(0x434),null),_0x144b44(this,_0x3b3353(0x154),null),_0x144b44(this,_0x3b3353(0x339),void 0x0),_0x144b44(this,_0x3b3353(0x42f),[]),_0x144b44(this,_0x3b3353(0x1e2),0x0),_0x144b44(this,_0x3b3353(0x39a),0x0),_0x144b44(this,_0x3b3353(0x3c6),0x0),_0x144b44(this,_0x3b3353(0x246),0x0),_0x144b44(this,_0x3b3353(0x331),!0x1),_0x144b44(this,_0x3b3353(0x36c),void 0x0),_0x144b44(this,'_activeShapeModel',void 0x0),_0x144b44(this,_0x3b3353(0x438),void 0x0),_0x144b44(this,_0x3b3353(0x1f5),void 0x0),_0x144b44(this,_0x3b3353(0x3f2),!0x1),this[_0x3b3353(0x36a)](),this[_0x3b3353(0x125)]();}[_0x2ea0c4(0x3cb)](){const _0x4339bc=_0x2ea0c4;this[_0x4339bc(0x28c)]();}[_0x2ea0c4(0x2a5)](){const _0x2a406a=_0x2ea0c4;this[_0x2a406a(0x28c)](),this[_0x2a406a(0x386)](!0x0);}[_0x2ea0c4(0x26b)](_0x45f4be,_0x59f129,_0x72fee3,_0x5465c8){const _0x255cfa=_0x2ea0c4;let _0x17b27d=_0x45f4be;if(!(_0x17b27d===_0x360390[_0x255cfa(0x39f)][_0x255cfa(0x3a3)]||_0x45f4be===_0x255cfa(0x3b8)))try{let _0x9c879f=new _0x360390[(_0x255cfa(0x341))](_0x17b27d,_0x255cfa(0x11f)+_0x45f4be);return _0x5465c8&&_0x9c879f[_0x255cfa(0x1f2)]({'adjustValues':_0x5465c8},!0x0),_0x9c879f['updateContext']({'width':_0x59f129,'height':_0x72fee3}),_0x9c879f;}catch{return;}}[_0x2ea0c4(0x2b1)](_0x2b893b,_0x159f75,_0x280dad){const _0x5de675=_0x2ea0c4;let _0x528ae3={'unitId':_0x2b893b,'subUnitId':_0x159f75,'drawingId':_0x280dad},_0x60635d=this[_0x5de675(0x275)][_0x5de675(0x3e3)](_0x528ae3);if(!(!_0x60635d||_0x60635d['drawingType']!==_0x3fe9b6[_0x5de675(0x225)][_0x5de675(0x34c)]))return _0x60635d;}[_0x2ea0c4(0x3dc)](_0x3ae1c9,_0x1a1c04,_0x44f32d){const _0x12906d=_0x2ea0c4;let _0x952ccb=this[_0x12906d(0x200)]['getRenderById'](_0x3ae1c9);if(!_0x952ccb)return;let {scene:_0x588649}=_0x952ccb,_0x1c25ca=(0x0,_0xcd0f0e['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3ae1c9,'subUnitId':_0x1a1c04,'drawingId':_0x44f32d}),_0x1c9956=_0x588649[_0x12906d(0x2d4)](_0x1c25ca);if(_0x1c9956 instanceof _0x122d5a[_0x12906d(0x270)]){let _0x460bbf=_0x1c9956[_0x12906d(0x22b)];if(_0x460bbf)return{'prstGeom':_0x460bbf,'adjustValues':_0x1c9956[_0x12906d(0x135)]};}}[_0x2ea0c4(0x386)](_0x2129c3=!0x1){const _0x1610c9=_0x2ea0c4;if(!this[_0x1610c9(0x434)]||!this[_0x1610c9(0x154)]||!this[_0x1610c9(0x18a)])return;let _0x3dcb1e=this['_renderManagerService'][_0x1610c9(0x425)](this[_0x1610c9(0x434)]);if(!_0x3dcb1e||!_0x3dcb1e[_0x1610c9(0x3f8)](_0x48ecbb[_0x1610c9(0x3ff)])[_0x1610c9(0x1d3)]())return;let {scene:_0x3ce53e}=_0x3dcb1e,_0x438bef=this[_0x1610c9(0x2b1)](this[_0x1610c9(0x434)],this[_0x1610c9(0x154)],this[_0x1610c9(0x18a)]);if(!_0x438bef)return;let {transform:_0x5979b7}=_0x438bef;if(!_0x5979b7)return;let {left:_0x36c3bc,top:_0x47ea7b,width:_0x2facd2,height:_0x4df64f,flipX:_0x5eee4e,flipY:_0x5acde8,angle:_0x3c0083=0x0}=_0x5979b7;if(_0x36c3bc===void 0x0||_0x47ea7b===void 0x0)return;let _0x91dab9=this[_0x1610c9(0x3dc)](this[_0x1610c9(0x434)],this[_0x1610c9(0x154)],this[_0x1610c9(0x18a)]);if(!_0x91dab9)return;if(_0x2129c3){let _0x542bee=this[_0x1610c9(0x26b)](_0x91dab9['prstGeom'],_0x2facd2||0x0,_0x4df64f||0x0,_0x91dab9[_0x1610c9(0x217)]);if(!_0x542bee)return;this[_0x1610c9(0x339)]=_0x542bee['getDrawingPoints']();}let _0x325038=this['_activeAdjustPointList'];if(!(!_0x325038||_0x325038[_0x1610c9(0x111)]===0x0))for(let _0x14f928=0x0;_0x14f928<_0x325038[_0x1610c9(0x111)];_0x14f928++){let _0x44184a=_0x325038[_0x14f928],_0x18272d=_0x44184a['x'],_0x552dfc=_0x44184a['y'];if(_0x5eee4e&&(_0x18272d=(_0x2facd2||0x0)-_0x18272d),_0x5acde8&&(_0x552dfc=(_0x4df64f||0x0)-_0x552dfc),_0x3c0083!==0x0){let _0x54b499=(_0x2facd2||0x0)/0x2,_0x353e6f=(_0x4df64f||0x0)/0x2,_0x5266d3=_0x3c0083*Math['PI']/0xb4,_0x240157=Math[_0x1610c9(0x38d)](_0x5266d3),_0x37fbbf=Math['sin'](_0x5266d3),_0x28b94e=_0x18272d-_0x54b499,_0x2b236d=_0x552dfc-_0x353e6f;_0x18272d=_0x54b499+(_0x28b94e*_0x240157-_0x2b236d*_0x37fbbf),_0x552dfc=_0x353e6f+(_0x28b94e*_0x37fbbf+_0x2b236d*_0x240157);}let _0x2909b3={'x':_0x18272d,'y':_0x552dfc,'adjName':_0x44184a['adjName']};this[_0x1610c9(0x204)](_0x3ce53e,_0x2909b3,_0x2909b3[_0x1610c9(0x21a)],_0x36c3bc,_0x47ea7b,this['_unitId'],this[_0x1610c9(0x154)]);}}[_0x2ea0c4(0x204)](_0x195c53,_0x4786b6,_0x1481ef,_0x226d0a,_0x5d527c,_0x50a6e5,_0x158bc6){const _0x37a876=_0x2ea0c4;if(!this[_0x37a876(0x18a)])return;let _0x85bf93=_0x37a876(0x329)+this[_0x37a876(0x18a)]+'-'+_0x1481ef,_0x586e3=_0x195c53[_0x37a876(0x432)](_0x85bf93);if(_0x586e3){_0x586e3['transformByState']({'left':_0x4786b6['x']+_0x226d0a-_0x360390[_0x37a876(0x18d)]['adjHandleSize'],'top':_0x4786b6['y']+_0x5d527c-_0x360390['ShapeDefaultConfig']['adjHandleSize']});return;}let _0x206c35=new _0x1d0af4(_0x85bf93,{'left':_0x4786b6['x']+_0x226d0a-_0x360390[_0x37a876(0x18d)][_0x37a876(0x1ba)],'top':_0x4786b6['y']+_0x5d527c-_0x360390[_0x37a876(0x18d)][_0x37a876(0x1ba)],'adjName':_0x1481ef,'shapeId':this[_0x37a876(0x18a)],'unitId':_0x50a6e5,'subUnitId':_0x158bc6,'width':_0x360390['ShapeDefaultConfig'][_0x37a876(0x1ba)]+0x8,'height':_0x360390['ShapeDefaultConfig'][_0x37a876(0x1ba)]+0x8,'zIndex':_0x122d5a[_0x37a876(0x192)]+0x1,'evented':!0x0});this['_shapes'][_0x37a876(0x35c)](_0x206c35),this[_0x37a876(0x3a5)](_0x206c35,_0x195c53,_0x1481ef),_0x195c53[_0x37a876(0x112)](_0x206c35,_0x122d5a[_0x37a876(0x192)]+0x1);}[_0x2ea0c4(0x28c)](){const _0x177a99=_0x2ea0c4;this['_shapes']['length']!==0x0&&(this[_0x177a99(0x42f)][_0x177a99(0x31b)](_0x42ad81=>_0x42ad81[_0x177a99(0x14f)]()),this[_0x177a99(0x42f)]=[]);}[_0x2ea0c4(0x2e0)](_0x1ee1f3,_0x14cebd){const _0x4b2ff6=_0x2ea0c4;var _0x94a3af;let _0x3cdc2a={'x':0x0,'y':0x0},_0x42b542=this[_0x4b2ff6(0x200)][_0x4b2ff6(0x425)](_0x1ee1f3);if(!_0x42b542||!_0x42b542[_0x4b2ff6(0x3f8)](_0x48ecbb['SheetSkeletonManagerService'])[_0x4b2ff6(0x2f8)](_0x14cebd))return _0x3cdc2a;let _0x5b24d2=_0x42b542[_0x4b2ff6(0x3f8)](_0x48ecbb[_0x4b2ff6(0x186)]),_0x121ad8=_0x5b24d2==null?void 0x0:_0x5b24d2[_0x4b2ff6(0x1a4)]();if(!_0x121ad8)return _0x3cdc2a;let _0x424d15=(_0x94a3af=this['_univerInstanceService'][_0x4b2ff6(0x34b)](_0x1ee1f3))==null?void 0x0:_0x94a3af[_0x4b2ff6(0x20c)](_0x14cebd);if(!_0x424d15)return _0x3cdc2a;let _0x3b95e8=(0x0,_0x48ecbb[_0x4b2ff6(0x32f)])(_0x121ad8['sheetViewStartRow'],_0x121ad8[_0x4b2ff6(0x3ae)],_0x42b542[_0x4b2ff6(0x373)],_0x424d15);return _0x3b95e8?{'x':_0x3b95e8[_0x4b2ff6(0x327)],'y':_0x3b95e8[_0x4b2ff6(0x2b8)]}:_0x3cdc2a;}[_0x2ea0c4(0x388)](_0x125faa,_0x358730){const _0x34a4ea=_0x2ea0c4;var _0x16712f,_0x53208d;let _0x145122=(_0x16712f=this[_0x34a4ea(0x2ba)][_0x34a4ea(0x34b)](_0x125faa))==null?void 0x0:_0x16712f[_0x34a4ea(0x20c)](_0x358730);return(_0x53208d=_0x145122==null?void 0x0:_0x145122['getZoomRatio']())==null?0x1:_0x53208d;}[_0x2ea0c4(0x3a5)](_0x10113f,_0xb04710,_0xcb73c8){const _0x1c5bd8=_0x2ea0c4;this['disposeWithMe']((0x0,_0x3fe9b6[_0x1c5bd8(0x1c4)])(_0x10113f['onPointerDown$'][_0x1c5bd8(0x1d2)]((_0x144204,_0x31f8d3)=>{const _0x3d1a4e=_0x1c5bd8;var _0x2a5756,_0x1f5c25,_0x5d7b31;let {unitId:_0x275cc8,subUnitId:_0x2ec4e8,drawingId:_0x2d929b}=_0x10113f[_0x3d1a4e(0x14e)](),_0x2a86ec=this[_0x3d1a4e(0x2b1)](_0x275cc8,_0x2ec4e8,_0x2d929b);if(!(_0x2a86ec!=null&&_0x2a86ec['transform']))return;let {left:_0x4c0966,top:_0x1a9a77,width:_0x276363,height:_0x3ee1e9}=_0x2a86ec[_0x3d1a4e(0x3ec)];this[_0x3d1a4e(0x1e2)]=_0x4c0966||0x0,this[_0x3d1a4e(0x39a)]=_0x1a9a77||0x0,this[_0x3d1a4e(0x3c6)]=_0x276363||0x0,this[_0x3d1a4e(0x246)]=_0x3ee1e9||0x0;let _0x5537fe=!!((_0x2a5756=_0x2a86ec[_0x3d1a4e(0x3ec)])!=null&&_0x2a5756['flipX']),_0x969af2=!!((_0x1f5c25=_0x2a86ec[_0x3d1a4e(0x3ec)])!=null&&_0x1f5c25[_0x3d1a4e(0x30e)]),_0x503978=((_0x5d7b31=_0x2a86ec['transform'])==null?void 0x0:_0x5d7b31[_0x3d1a4e(0x2a0)])||0x0,_0x26c045=this[_0x3d1a4e(0x3dc)](_0x275cc8,_0x2ec4e8,_0x2d929b);if(!_0x26c045)return;let _0x3bb96d=this[_0x3d1a4e(0x26b)](_0x26c045[_0x3d1a4e(0x22b)],this[_0x3d1a4e(0x3c6)],this['_baseHeight'],_0x26c045[_0x3d1a4e(0x217)]);if(!_0x3bb96d||(this[_0x3d1a4e(0xf9)]=_0x3bb96d,this[_0x3d1a4e(0x36c)]=_0x3bb96d['getAdjustInfoByName'](_0xcb73c8),!this[_0x3d1a4e(0x36c)]))return;this[_0x3d1a4e(0x331)]=!0x0,_0xb04710[_0x3d1a4e(0x286)]();let _0x58b5dd=_0x26c045[_0x3d1a4e(0x22b)];this['_adjHandlerPointerMove']=_0xb04710[_0x3d1a4e(0x2a7)][_0x3d1a4e(0x1d2)]((_0x5980e2,_0x3d2884)=>{const _0x58e66d=_0x3d1a4e;if(!this[_0x58e66d(0x331)])return;let {offsetX:_0xd06517,offsetY:_0x455981}=_0x5980e2,_0x2faebc=this[_0x58e66d(0x36c)];if(!this[_0x58e66d(0xf9)]||!_0x2faebc)return;_0xb04710['disableObjectsEvent'](),_0xb04710[_0x58e66d(0x229)](_0x122d5a['CURSOR_TYPE']['CROSSHAIR']);let _0x17801b={'left':0x0,'top':0x0,'width':this[_0x58e66d(0x3c6)],'height':this['_baseHeight']},_0xf69099=this[_0x58e66d(0x2e0)](_0x275cc8,_0x2ec4e8),_0x5ef425=this['_getZoomRatio'](_0x275cc8,_0x2ec4e8),_0x3773b0=_0xd06517/_0x5ef425+_0xf69099['x']-this[_0x58e66d(0x1e2)],_0x201550=_0x455981/_0x5ef425+_0xf69099['y']-this[_0x58e66d(0x39a)];if(_0x503978!==0x0){let _0x4bd243=this[_0x58e66d(0x3c6)]/0x2,_0x2f8c8c=this['_baseHeight']/0x2,_0x49f3b9=_0x503978*Math['PI']/0xb4,_0xb796c1=Math[_0x58e66d(0x38d)](_0x49f3b9),_0x35f72d=Math[_0x58e66d(0x2a2)](_0x49f3b9),_0x5b38a5=_0x3773b0-_0x4bd243,_0x3e4552=_0x201550-_0x2f8c8c;_0x3773b0=_0x4bd243+(_0x5b38a5*_0xb796c1+_0x3e4552*_0x35f72d),_0x201550=_0x2f8c8c+(-_0x5b38a5*_0x35f72d+_0x3e4552*_0xb796c1);}_0x5537fe&&(_0x3773b0=this[_0x58e66d(0x3c6)]-_0x3773b0),_0x969af2&&(_0x201550=this['_baseHeight']-_0x201550);let _0xcd2106=this[_0x58e66d(0xf9)][_0x58e66d(0x27a)](_0x17801b,{'x':_0x3773b0,'y':_0x201550},_0x2faebc,_0x5537fe,_0x969af2),_0x2d0e6e=_0x2faebc[_0x58e66d(0x245)]||_0x2faebc[_0x58e66d(0xfb)]||_0x2faebc['gdRefAng']||_0x2faebc['gdRefR'];_0x2d0e6e!==void 0x0&&(this[_0x58e66d(0xf9)][_0x58e66d(0x3df)](_0x2d0e6e,_0xcd2106),this[_0x58e66d(0xf9)][_0x58e66d(0x21d)]({'width':this[_0x58e66d(0x3c6)],'height':this[_0x58e66d(0x246)]}),this[_0x58e66d(0x328)](_0x275cc8,_0x2ec4e8,_0x2d929b,_0x2d0e6e,_0xcd2106),this[_0x58e66d(0x339)]=this[_0x58e66d(0xf9)]['getDrawingPoints'](),this[_0x58e66d(0x36c)]=this[_0x58e66d(0xf9)][_0x58e66d(0x28e)](_0xcb73c8),this[_0x58e66d(0x386)](),_0x3d2884['stopPropagation']());}),this[_0x3d1a4e(0x1f5)]=_0xb04710['onPointerUp$']['subscribeEvent']((_0x174b44,_0x25e85d)=>{const _0xeeb895=_0x3d1a4e;if(this[_0xeeb895(0x438)][_0xeeb895(0x1ea)](),this[_0xeeb895(0x1f5)][_0xeeb895(0x1ea)](),_0xb04710[_0xeeb895(0x3f5)](),this[_0xeeb895(0xf9)]){let _0x1d58a1=this[_0xeeb895(0xf9)]['getAdjustNames'](),_0x451b36={};for(let _0x4384ec of _0x1d58a1){let _0x4601b1=this['_activeShapeModel'][_0xeeb895(0x1a7)](_0x4384ec);_0x4601b1!==void 0x0&&(_0x451b36[_0x4384ec]=_0x4601b1);}this[_0xeeb895(0x25d)][_0xeeb895(0x129)](_0x275cc8,_0x2ec4e8,_0x2d929b,_0x58b5dd,_0x451b36);}this[_0xeeb895(0x36c)]=void 0x0,this['_activeShapeModel']=void 0x0,this['_isStartAdjusting']=!0x1,_0x25e85d[_0xeeb895(0x2eb)](),_0xb04710[_0xeeb895(0x3ba)]();}),_0x31f8d3[_0x3d1a4e(0x2eb)]();})));}[_0x2ea0c4(0x328)](_0x14fa0d,_0x4f3e35,_0x2bc36c,_0x49c0eb,_0x50f599){const _0x5c5252=_0x2ea0c4;let _0x1f51b9=this[_0x5c5252(0x200)]['getRenderById'](_0x14fa0d);if(!_0x1f51b9)return;let {scene:_0x5e1496}=_0x1f51b9,_0x1c9b97=(0x0,_0xcd0f0e[_0x5c5252(0x1f8)])({'unitId':_0x14fa0d,'subUnitId':_0x4f3e35,'drawingId':_0x2bc36c}),_0x4109d1=_0x5e1496[_0x5c5252(0x2d4)](_0x1c9b97);if(_0x4109d1 instanceof _0x122d5a['Image']){var _0x3c5d5e;let _0x31357a=(_0x3c5d5e=_0x4109d1[_0x5c5252(0x135)])==null?{}:_0x3c5d5e;_0x4109d1[_0x5c5252(0x161)]({..._0x31357a,[_0x49c0eb]:_0x50f599}),_0x4109d1[_0x5c5252(0x1d4)](!0x0);}}[_0x2ea0c4(0x125)](){const _0x4de7ae=_0x2ea0c4;let _0xc02fb7=this[_0x4de7ae(0x2ba)][_0x4de7ae(0x1e8)](_0x3fe9b6[_0x4de7ae(0x1df)]['UNIVER_SHEET']);this[_0x4de7ae(0x3c0)](_0xc02fb7[_0x4de7ae(0xfe)]((0x0,_0x14dd2b[_0x4de7ae(0x298)])(_0x5e41ee=>_0x5e41ee?_0x5e41ee['activeSheet$'][_0x4de7ae(0xfe)]((0x0,_0x14dd2b['switchMap'])(_0x205743=>{const _0x31360b=_0x4de7ae;if(!_0x205743)return _0x14dd2b[_0x31360b(0x29d)];let _0x31c35a=_0x5e41ee[_0x31360b(0x2b5)](),_0x33c3e2=this[_0x31360b(0x200)][_0x31360b(0x425)](_0x31c35a),_0x346b34=_0x33c3e2==null?void 0x0:_0x33c3e2[_0x31360b(0x373)];return _0x346b34?(0x0,_0x14dd2b['of'])(_0x346b34):_0x14dd2b[_0x31360b(0x29d)];})):_0x14dd2b[_0x4de7ae(0x29d)]))[_0x4de7ae(0x15f)](_0x3ae1a7=>{const _0x594fdd=_0x4de7ae;let _0x3d21b3=_0x3ae1a7['getTransformerByCreate']();this[_0x594fdd(0x3c0)](_0x3ae1a7['onPointerMove$'][_0x594fdd(0x1d2)](()=>{const _0x47f18c=_0x594fdd;this[_0x47f18c(0x3f2)]&&this[_0x47f18c(0x28c)]();})),this[_0x594fdd(0x3c0)](_0x3d21b3['changeStart$']['subscribe'](_0x425b5c=>{const _0x176fb5=_0x594fdd;let {objects:_0x1e0e30}=_0x425b5c;if(this[_0x176fb5(0x386)](),_0x1e0e30!==null&&_0x1e0e30['size']===0x1){let _0x2f0ff1=_0x1e0e30[_0x176fb5(0x38e)]()['next']()['value'];_0x2f0ff1 instanceof _0x122d5a[_0x176fb5(0x270)]&&_0x2f0ff1[_0x176fb5(0x22b)]&&(this[_0x176fb5(0x3f2)]=!0x0);}})),this[_0x594fdd(0x3c0)](_0x3d21b3[_0x594fdd(0x3ea)]['subscribe'](()=>{const _0x278fbf=_0x594fdd;this[_0x278fbf(0x3f2)]&&this[_0x278fbf(0x28c)]();})),this[_0x594fdd(0x3c0)](_0x3ae1a7[_0x594fdd(0x239)][_0x594fdd(0x1d2)](()=>{const _0x198203=_0x594fdd;this[_0x198203(0x3f2)]&&(this[_0x198203(0x3f2)]=!0x1,this[_0x198203(0x386)]());})),this['disposeWithMe'](_0x3d21b3[_0x594fdd(0x10b)][_0x594fdd(0x15f)](()=>{const _0x189eab=_0x594fdd;if(this['_unitId']&&this[_0x189eab(0x154)]&&this[_0x189eab(0x18a)]){let _0x3fdbed=this[_0x189eab(0x3dc)](this['_unitId'],this['_subUnitId'],this[_0x189eab(0x18a)]);if(_0x3fdbed){var _0x32371c,_0x1977c7;let _0x45e444=this['_getImageDrawingInfo'](this[_0x189eab(0x434)],this['_subUnitId'],this[_0x189eab(0x18a)]),_0x5a7660=(_0x45e444==null||(_0x32371c=_0x45e444[_0x189eab(0x3ec)])==null?void 0x0:_0x32371c[_0x189eab(0x1bf)])||0x0,_0x444e5f=(_0x45e444==null||(_0x1977c7=_0x45e444['transform'])==null?void 0x0:_0x1977c7['height'])||0x0,_0x43b698=this[_0x189eab(0x26b)](_0x3fdbed[_0x189eab(0x22b)],_0x5a7660,_0x444e5f,_0x3fdbed[_0x189eab(0x217)]);_0x43b698&&(this['_activeAdjustPointList']=_0x43b698[_0x189eab(0x1e7)](),this['_clearControls'](),this['_createControls'](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x3eb273=_0x2ea0c4;this['disposeWithMe'](this[_0x3eb273(0x275)]['focus$'][_0x3eb273(0x15f)](_0x3fb52a=>{const _0x405300=_0x3eb273;if(_0x3fb52a[_0x405300(0x111)]===0x1){let _0x2e979b=_0x3fb52a[0x0];if(_0x2e979b['drawingType']===_0x3fe9b6[_0x405300(0x225)][_0x405300(0x34c)]){let {unitId:_0x991562,subUnitId:_0x2ad875,drawingId:_0x4457a9}=_0x2e979b,_0x16d754=this[_0x405300(0x3dc)](_0x991562,_0x2ad875,_0x4457a9);if(_0x16d754){var _0x532bef,_0x3f5f33;this[_0x405300(0x18a)]=_0x4457a9,this[_0x405300(0x434)]=_0x991562,this['_subUnitId']=_0x2ad875;let _0x471cd2=this['_getImageDrawingInfo'](_0x991562,_0x2ad875,_0x4457a9),_0x2a3876=(_0x471cd2==null||(_0x532bef=_0x471cd2[_0x405300(0x3ec)])==null?void 0x0:_0x532bef['width'])||0x0,_0x484b73=(_0x471cd2==null||(_0x3f5f33=_0x471cd2[_0x405300(0x3ec)])==null?void 0x0:_0x3f5f33[_0x405300(0x403)])||0x0,_0x139405=this[_0x405300(0x26b)](_0x16d754[_0x405300(0x22b)],_0x2a3876,_0x484b73,_0x16d754['adjustValues']);_0x139405&&(this[_0x405300(0x339)]=_0x139405[_0x405300(0x1e7)]()),this['_clearControls'](),this[_0x405300(0x386)](!0x0);}else this['_resetState']();}else this[_0x405300(0x357)]();}else this[_0x405300(0x357)]();})),this[_0x3eb273(0x3c0)](this[_0x3eb273(0x275)][_0x3eb273(0x3a8)][_0x3eb273(0x15f)](_0x37c8dd=>{const _0x51c7f6=_0x3eb273;if(_0x37c8dd['length']===0x1){let _0x37eac7=_0x37c8dd[0x0],_0x36cdb6=this[_0x51c7f6(0x275)]['getDrawingByParam'](_0x37eac7);(_0x36cdb6==null?void 0x0:_0x36cdb6[_0x51c7f6(0x19a)])===_0x3fe9b6[_0x51c7f6(0x225)][_0x51c7f6(0x34c)]&&this[_0x51c7f6(0x18a)]===_0x37eac7[_0x51c7f6(0x215)]&&(this[_0x51c7f6(0x28c)](),this[_0x51c7f6(0x386)](!0x0));}})),this[_0x3eb273(0x3c0)](this[_0x3eb273(0x275)]['remove$'][_0x3eb273(0x15f)](_0x4a7a43=>{const _0x27b3a6=_0x3eb273;for(let _0x266770 of _0x4a7a43)this[_0x27b3a6(0x18a)]===_0x266770[_0x27b3a6(0x215)]&&this[_0x27b3a6(0x357)]();}));}[_0x2ea0c4(0x357)](){const _0x554948=_0x2ea0c4;this[_0x554948(0x18a)]=null,this[_0x554948(0x434)]=null,this[_0x554948(0x154)]=null,this['_activeAdjustPointList']=void 0x0,this['_clearControls']();}};_0x1717ef=_0x20d714([_0x26d55f(0x1,_0xcd0f0e['IDrawingManagerService']),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x122d5a[_0x2ea0c4(0x238)])),_0x26d55f(0x3,_0x3fe9b6[_0x2ea0c4(0x287)]),_0x26d55f(0x4,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x7de345))],_0x1717ef);let _0x21c348=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x55c7f5,_0xeea258,_0x2d9259,_0x367228){const _0x3cb8f7=_0x2ea0c4;super(),this['_univerInstanceService']=_0x55c7f5,this[_0x3cb8f7(0x384)]=_0xeea258,this[_0x3cb8f7(0x309)]=_0x2d9259,this[_0x3cb8f7(0x25b)]=_0x367228,this[_0x3cb8f7(0x1bc)]();}[_0x2ea0c4(0x1bc)](){const _0x200d46=_0x2ea0c4;this[_0x200d46(0x3c0)](this[_0x200d46(0x384)][_0x200d46(0x408)]({'getMutations':_0x22c16e=>{const _0x4889f9=_0x200d46;if(_0x22c16e['id']===_0x12af8f['RemoveSheetCommand']['id']){let _0x5afb9c=(0x0,_0x12af8f[_0x4889f9(0x10d)])(this[_0x4889f9(0x2ba)],_0x22c16e['params']);if(!_0x5afb9c)return{'redos':[],'undos':[]};let {unitId:_0xbd900d,subUnitId:_0x511d92}=_0x5afb9c,_0x2eb6a3=this[_0x4889f9(0x309)][_0x4889f9(0x22c)](_0xbd900d,_0x511d92),_0x3b1224=Object['values'](_0x2eb6a3)['filter'](_0x3a7a1d=>_0x3a7a1d['drawingType']===_0x3fe9b6[_0x4889f9(0x225)]['DRAWING_SHAPE']);if(_0x3b1224['length']===0x0)return{'redos':[],'undos':[]};let _0x1469ba=[],_0x176f6d=[];for(let _0x5f580b=0x0;_0x5f580b<_0x3b1224[_0x4889f9(0x111)];_0x5f580b++){let _0x40b497=_0x3b1224[_0x5f580b],_0xa5d62b=this[_0x4889f9(0x25b)]['getShapeModel'](_0x40b497[_0x4889f9(0x429)],_0x40b497[_0x4889f9(0x3aa)],_0x40b497[_0x4889f9(0x215)]);if(!_0xa5d62b)continue;let {redo:_0x45e125,undo:_0x232b80,objects:_0x48c2bd}=this[_0x4889f9(0x309)]['getBatchRemoveOp']([_0x40b497]);_0x1469ba[_0x4889f9(0x35c)]({'id':_0x2cb023[_0x4889f9(0x117)]['id'],'params':{'unitId':_0xbd900d,'subUnitId':_0x511d92,'shapeId':_0x40b497[_0x4889f9(0x215)]}}),_0x1469ba[_0x4889f9(0x35c)]({'id':_0x1ba3d5[_0x4889f9(0x2e7)]['id'],'params':{'unitId':_0xbd900d,'subUnitId':_0x511d92,'type':_0x1ba3d5['DrawingApplyType'][_0x4889f9(0x255)],'op':_0x45e125,'objects':_0x48c2bd}}),_0x176f6d[_0x4889f9(0x35c)]({'id':_0x1ba3d5['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xbd900d,'subUnitId':_0x511d92,'type':_0x1ba3d5['DrawingApplyType'][_0x4889f9(0x2bd)],'op':_0x232b80,'objects':_0x48c2bd}}),_0x176f6d[_0x4889f9(0x35c)]({'id':_0x2cb023[_0x4889f9(0x26a)]['id'],'params':{'unitId':_0xbd900d,'subUnitId':_0x511d92,'shapeId':_0x40b497['drawingId'],'shapeType':_0xa5d62b[_0x4889f9(0x1b9)](),'shapeData':JSON[_0x4889f9(0x2f1)](JSON['stringify'](_0xa5d62b[_0x4889f9(0x11d)]()))}});}return{'redos':_0x1469ba,'undos':_0x176f6d};}else{if(_0x22c16e['id']===_0x12af8f['CopySheetCommand']['id']){let {unitId:_0x1159e7,subUnitId:_0x67d0b9,targetSubUnitId:_0x25f9a0}=_0x22c16e[_0x4889f9(0x137)];if(!_0x1159e7||!_0x67d0b9||!_0x25f9a0)return{'redos':[],'undos':[]};let _0x57f61a=this['_sheetDrawingService'][_0x4889f9(0x22c)](_0x1159e7,_0x67d0b9),_0x4f5ecf=Object[_0x4889f9(0x38e)](_0x57f61a)[_0x4889f9(0x222)](_0x360e2f=>_0x360e2f['drawingType']===_0x3fe9b6[_0x4889f9(0x225)]['DRAWING_SHAPE']);if(_0x4f5ecf[_0x4889f9(0x111)]===0x0)return{'redos':[],'undos':[]};let _0x506f2b=[],_0x2faa5c=[];for(let _0xbfeb8e=0x0;_0xbfeb8e<_0x4f5ecf[_0x4889f9(0x111)];_0xbfeb8e++){let _0x500e0a=_0x4f5ecf[_0xbfeb8e],_0x1673c1=this[_0x4889f9(0x25b)]['getShapeModel'](_0x500e0a[_0x4889f9(0x429)],_0x500e0a[_0x4889f9(0x3aa)],_0x500e0a['drawingId']);if(!_0x1673c1)continue;let _0x343531=(0x0,_0x3fe9b6[_0x4889f9(0x387)])(),_0x18ce23={..._0x500e0a,'unitId':_0x1159e7,'subUnitId':_0x25f9a0,'drawingId':_0x343531},{redo:_0x36d083,undo:_0x4ac7ae,objects:_0x57c63c}=this[_0x4889f9(0x309)][_0x4889f9(0x1f1)]([_0x18ce23]);_0x506f2b[_0x4889f9(0x35c)]({'id':_0x1ba3d5['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1159e7,'subUnitId':_0x25f9a0,'type':_0x1ba3d5[_0x4889f9(0x18e)][_0x4889f9(0x2bd)],'op':_0x36d083,'objects':_0x57c63c}}),_0x506f2b[_0x4889f9(0x35c)]({'id':_0x2cb023[_0x4889f9(0x26a)]['id'],'params':{'unitId':_0x1159e7,'subUnitId':_0x25f9a0,'shapeId':_0x343531,'shapeType':_0x1673c1[_0x4889f9(0x1b9)](),'shapeData':JSON[_0x4889f9(0x2f1)](JSON[_0x4889f9(0x3b3)](_0x1673c1[_0x4889f9(0x11d)]()))}}),_0x2faa5c[_0x4889f9(0x35c)]({'id':_0x2cb023['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x1159e7,'subUnitId':_0x25f9a0,'shapeId':_0x343531}}),_0x2faa5c[_0x4889f9(0x35c)]({'id':_0x1ba3d5[_0x4889f9(0x2e7)]['id'],'params':{'unitId':_0x1159e7,'subUnitId':_0x25f9a0,'type':_0x1ba3d5[_0x4889f9(0x18e)]['REMOVE'],'op':_0x4ac7ae,'objects':_0x57c63c}});}return{'redos':_0x506f2b,'undos':_0x2faa5c};}}return{'redos':[],'undos':[]};}}));}};_0x21c348=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3fe9b6[_0x2ea0c4(0x287)])),_0x26d55f(0x1,(0x0,_0x3fe9b6['Inject'])(_0x12af8f[_0x2ea0c4(0x12b)])),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x1ba3d5[_0x2ea0c4(0x230)])),_0x26d55f(0x3,(0x0,_0x3fe9b6['Inject'])(_0x2cb023[_0x2ea0c4(0x40f)]))],_0x21c348);let _0x508c50=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x9c6259,_0x67eee0,_0x47d0e5,_0x5ed865,_0x4e0284){const _0x1b5dec=_0x2ea0c4;super(),this[_0x1b5dec(0x130)]=_0x9c6259,this[_0x1b5dec(0x360)]=_0x67eee0,this['_drawingManagerService']=_0x47d0e5,this[_0x1b5dec(0x16e)]=_0x5ed865,this[_0x1b5dec(0x25b)]=_0x4e0284,_0x144b44(this,'_lastEditingShapeKey',null),this['_initEvents'](),this[_0x1b5dec(0x228)](),this[_0x1b5dec(0x1e0)]();}[_0x2ea0c4(0x433)](){const _0x97c799=_0x2ea0c4;let {scene:_0x38e361}=this[_0x97c799(0x130)];this['disposeWithMe'](_0x38e361[_0x97c799(0x1a1)]['subscribeEvent'](_0x57fc6c=>{const _0x1d618e=_0x97c799;let {offsetX:_0x585d90,offsetY:_0x31aea9}=_0x57fc6c,_0x53deb6=_0x38e361[_0x1d618e(0x2d9)](_0x122d5a['Vector2'][_0x1d618e(0x319)]([_0x585d90,_0x31aea9]));if(_0x53deb6 instanceof _0x2264dd){if((0x0,_0x360390[_0x1d618e(0x295)])(this[_0x1d618e(0x25b)][_0x1d618e(0x1b9)](_0x53deb6[_0x1d618e(0x429)],_0x53deb6[_0x1d618e(0x3aa)],_0x53deb6[_0x1d618e(0x124)])))return;this[_0x1d618e(0x360)]['setEditing']({'visible':!0x0,'unitId':_0x53deb6[_0x1d618e(0x429)],'subUnitId':_0x53deb6[_0x1d618e(0x3aa)],'shapeId':_0x53deb6[_0x1d618e(0x124)],'shapeKey':_0x53deb6[_0x1d618e(0x1a0)]});}}));}[_0x2ea0c4(0x228)](){const _0x334a34=_0x2ea0c4;this[_0x334a34(0x3c0)](this[_0x334a34(0x275)][_0x334a34(0x3be)][_0x334a34(0x15f)](_0x2e7ec0=>{const _0x450aa6=_0x334a34;if(_0x2e7ec0['length']===0x1){let _0x4a5bf4=_0x2e7ec0[0x0],_0x375361=this['_drawingManagerService'][_0x450aa6(0x3e3)](_0x4a5bf4);if((_0x375361==null?void 0x0:_0x375361['drawingType'])===_0x3fe9b6[_0x450aa6(0x225)]['DRAWING_SHAPE']){let _0xfd480d=this['_shapeTextEditingService'][_0x450aa6(0x2fd)]();if((_0xfd480d==null?void 0x0:_0xfd480d[_0x450aa6(0x124)])===_0x4a5bf4[_0x450aa6(0x215)]&&_0xfd480d[_0x450aa6(0x197)])return;(0x0,_0x360390[_0x450aa6(0x295)])(this[_0x450aa6(0x25b)][_0x450aa6(0x1b9)](_0x4a5bf4[_0x450aa6(0x429)],_0x4a5bf4['subUnitId'],_0x4a5bf4['drawingId']))&&this[_0x450aa6(0x360)][_0x450aa6(0x38c)](null);}else this[_0x450aa6(0x360)][_0x450aa6(0x2fd)]()&&(this[_0x450aa6(0x360)][_0x450aa6(0x34f)](!0x0),requestAnimationFrame(()=>{const _0x2101b6=_0x450aa6;this[_0x2101b6(0x360)][_0x2101b6(0x38c)](null);}));}else this['_shapeTextEditingService'][_0x450aa6(0x2fd)]()&&(this[_0x450aa6(0x360)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{this['_shapeTextEditingService']['setEditing'](null);}));})),this[_0x334a34(0x3c0)](this[_0x334a34(0x275)]['remove$']['subscribe'](_0x932908=>{const _0x258703=_0x334a34;let _0x426469=this['_shapeTextEditingService']['getEditing']();_0x426469&&_0x932908[_0x258703(0x420)](_0x58a237=>_0x58a237[_0x258703(0x215)]===_0x426469[_0x258703(0x124)])&&this[_0x258703(0x360)][_0x258703(0x38c)](null);}));}[_0x2ea0c4(0x1e0)](){const _0x448b99=_0x2ea0c4;this[_0x448b99(0x3c0)](this[_0x448b99(0x360)][_0x448b99(0x3c2)][_0x448b99(0x15f)](_0x33ac0d=>{const _0x529677=_0x448b99;let {scene:_0x43be0e}=this[_0x529677(0x130)];if(this[_0x529677(0x1cd)]){let _0x3cafe1=_0x43be0e[_0x529677(0x432)](this['_lastEditingShapeKey']);_0x3cafe1&&_0x3cafe1[_0x529677(0x38c)](!0x1);}if(_0x33ac0d){let _0x2ef43f=!!_0x33ac0d[_0x529677(0x197)],_0x2423f7=_0x43be0e[_0x529677(0x432)](_0x33ac0d[_0x529677(0x41d)]);_0x2423f7&&(_0x2423f7[_0x529677(0x38c)](_0x2ef43f),this['_lastEditingShapeKey']=_0x33ac0d['shapeKey']),this[_0x529677(0x16e)][_0x529677(0x1b5)](_0x3fe9b6['FOCUSING_SHAPE_TEXT_EDITOR'],_0x2ef43f);}else this[_0x529677(0x1cd)]=null,this[_0x529677(0x16e)][_0x529677(0x1b5)](_0x3fe9b6['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x508c50=_0x20d714([_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x383d16)),_0x26d55f(0x2,_0xcd0f0e[_0x2ea0c4(0x3c8)]),_0x26d55f(0x3,_0x3fe9b6[_0x2ea0c4(0x3ed)]),_0x26d55f(0x4,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2cb023[_0x2ea0c4(0x40f)]))],_0x508c50);let _0x3abd37=class extends _0x502542[_0x2ea0c4(0x349)]{constructor(_0x1ac882,_0x18eb6c,_0x10e970,_0x3f012e,_0x5e86a4){const _0x2f6464=_0x2ea0c4;super(_0x1ac882,_0x18eb6c,_0x10e970,_0x3f012e,_0x5e86a4,{'componentKey':_0x2f6464(0x30d),'editorUnitId':_0x1a57f2,'toolbarComponent':_0x502542[_0x2f6464(0x27f)]});}};_0x3abd37=_0x20d714([_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x485986[_0x2ea0c4(0x256)])),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2ef8df[_0x2ea0c4(0x24e)])),_0x26d55f(0x3,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2b76f2[_0x2ea0c4(0x136)])),_0x26d55f(0x4,(0x0,_0x3fe9b6['Inject'])(_0x2ef8df[_0x2ea0c4(0x3dd)]))],_0x3abd37);let _0x560525=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x2fab6f,_0x56d002,_0x1c18c1,_0x4f9ed2,_0x21fcc9,_0x32cfc3){const _0xfa9fb=_0x2ea0c4;super(),this[_0xfa9fb(0x3d4)]=_0x2fab6f,this[_0xfa9fb(0x200)]=_0x56d002,this[_0xfa9fb(0x275)]=_0x1c18c1,this[_0xfa9fb(0x194)]=_0x4f9ed2,this['_drawingRenderService']=_0x21fcc9,this[_0xfa9fb(0x1d6)]=_0x32cfc3,_0x144b44(this,_0xfa9fb(0x121),new Set()),this[_0xfa9fb(0x337)]();}[_0x2ea0c4(0x337)](){const _0x37fba0=_0x2ea0c4;this['_drawingAddListener'](),this[_0x37fba0(0x380)](),this[_0x37fba0(0x2af)]();}[_0x2ea0c4(0x342)](){const _0x46d3d8=_0x2ea0c4;this[_0x46d3d8(0x3c0)](this[_0x46d3d8(0x275)][_0x46d3d8(0x189)]['subscribe'](_0x20eb83=>{this['_insertShapes'](_0x20eb83);}));}[_0x2ea0c4(0x380)](){const _0x605158=_0x2ea0c4;this[_0x605158(0x3c0)](this['_commandService'][_0x605158(0x23e)](_0x457d1d=>{const _0x1a83d6=_0x605158;if(_0x457d1d['id']===_0x2cb023[_0x1a83d6(0x26a)]['id']){var _0xd2ccac;let {unitId:_0xb4cd7d,subUnitId:_0x209ef0,shapeId:_0x4baa0a}=_0x457d1d[_0x1a83d6(0x137)],_0x1b274d=this[_0x1a83d6(0x272)](_0xb4cd7d);if(_0x1b274d==null)return;let {scene:_0x1b5785}=_0x1b274d,_0x64829f=(0x0,_0xcd0f0e[_0x1a83d6(0x1f8)])({'unitId':_0xb4cd7d,'subUnitId':_0x209ef0,'drawingId':_0x4baa0a}),_0x4747fa=_0x1b5785[_0x1a83d6(0x432)](_0x64829f);if(!((_0xd2ccac=this['_renderManagerService'][_0x1a83d6(0x425)](_0xb4cd7d))!=null&&_0xd2ccac[_0x1a83d6(0x3f8)](_0x48ecbb[_0x1a83d6(0x3ff)])['getSkeleton'](_0x209ef0)))return!0x1;if(_0x4747fa)return;this[_0x1a83d6(0x1db)]([{'unitId':_0xb4cd7d,'subUnitId':_0x209ef0,'drawingId':_0x4baa0a}]);}}));}[_0x2ea0c4(0x2af)](){const _0x2385f7=_0x2ea0c4;this['disposeWithMe'](this['_drawingManagerService'][_0x2385f7(0x3a8)]['subscribe'](_0x564065=>{const _0x3587e0=_0x2385f7;_0x564065[_0x3587e0(0x31b)](_0x4822ca=>{const _0x35c3cd=_0x3587e0;let {unitId:_0xb2a90d,subUnitId:_0x364cf1,drawingId:_0x1dfcdb}=_0x4822ca,_0x2d8c63=this[_0x35c3cd(0x275)][_0x35c3cd(0x3e3)](_0x4822ca);if(_0x2d8c63==null)return;let {transform:_0x144a41,drawingType:_0x4426d9,srcRect:_0x2938c9,prstGeom:_0x47101d}=_0x2d8c63;if(_0x4426d9!==_0x3fe9b6[_0x35c3cd(0x225)]['DRAWING_SHAPE'])return;let _0x3a6687=this[_0x35c3cd(0x272)](_0xb2a90d);if(_0x3a6687==null)return;let {scene:_0x158c05,transformer:_0x2ece61}=_0x3a6687;if(_0x144a41==null)return!0x0;let _0x243d84=(0x0,_0xcd0f0e['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xb2a90d,'subUnitId':_0x364cf1,'drawingId':_0x1dfcdb}),_0x3c3f4d=_0x158c05[_0x35c3cd(0x432)](_0x243d84);if(_0x3c3f4d==null)return!0x0;_0x3c3f4d[_0x35c3cd(0x16f)](_0x2938c9),_0x3c3f4d[_0x35c3cd(0x37d)](_0x47101d);});}));}[_0x2ea0c4(0x1db)](_0x2673bb){const _0x52f552=_0x2ea0c4;for(let _0x53a845 of _0x2673bb){var _0x5f0e14;let {unitId:_0x2c4cf2,subUnitId:_0x10642e,drawingId:_0x4fdcde}=_0x53a845,_0x47f984=this[_0x52f552(0x272)](_0x2c4cf2),_0x376d23=(_0x5f0e14=(0x0,_0x3cfff1[_0x52f552(0x259)])(this['_currentUniverService'],_0x2c4cf2))==null?void 0x0:_0x5f0e14[_0x52f552(0x3aa)];if(_0x47f984==null||_0x376d23!==_0x10642e)return;let _0x31fa06=(0x0,_0xcd0f0e[_0x52f552(0x1f8)])({'unitId':_0x2c4cf2,'subUnitId':_0x10642e,'drawingId':_0x4fdcde});if(this[_0x52f552(0x121)]['has'](_0x31fa06)||_0x47f984['scene'][_0x52f552(0x432)](_0x31fa06)!=null)return;let _0x5f5d5a=this[_0x52f552(0x275)]['getDrawingByParam'](_0x53a845);if(_0x5f5d5a==null||_0x5f5d5a[_0x52f552(0x19a)]!==_0x3fe9b6[_0x52f552(0x225)]['DRAWING_SHAPE'])return;if((0x0,_0x360390[_0x52f552(0x295)])((_0x5f5d5a['data']||{})['shapeType'])){let _0x52f1e6=_0x5f5d5a[_0x52f552(0x3ec)];_0x52f1e6&&(_0x5f5d5a[_0x52f552(0x3ec)]={..._0x52f1e6,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x52f552(0x121)][_0x52f552(0x323)](_0x31fa06);try{this['_sheetDrawingShapeRenderController']['renderDrawingShape'](_0x5f5d5a,_0x47f984[_0x52f552(0x373)]);}finally{this[_0x52f552(0x121)]['delete'](_0x31fa06);}queueMicrotask(()=>{const _0x3f7f81=_0x52f552;if(this['_disposed'])return;let _0x4f5e03=(0x0,_0xcd0f0e['getDrawingShapeKeyByDrawingSearch'])(_0x53a845);_0x47f984[_0x3f7f81(0x373)]['getObjectIncludeInGroup'](_0x4f5e03)&&this[_0x3f7f81(0x275)]['refreshTransform']([_0x5f5d5a]);});}}[_0x2ea0c4(0x272)](_0x487bd7){const _0x4db4a7=_0x2ea0c4;if(_0x487bd7==null)return;let _0x396632=this['_renderManagerService'][_0x4db4a7(0x425)](_0x487bd7),_0x1cf9e2=_0x396632==null?void 0x0:_0x396632[_0x4db4a7(0x373)];return _0x1cf9e2==null?null:{'scene':_0x1cf9e2,'transformer':_0x1cf9e2[_0x4db4a7(0x279)]()};}};_0x560525=_0x20d714([_0x26d55f(0x0,_0x3fe9b6[_0x2ea0c4(0x2ec)]),_0x26d55f(0x1,_0x122d5a[_0x2ea0c4(0x238)]),_0x26d55f(0x2,_0xcd0f0e[_0x2ea0c4(0x3c8)]),_0x26d55f(0x3,_0x3fe9b6[_0x2ea0c4(0x287)]),_0x26d55f(0x4,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3cfff1['DrawingRenderService'])),_0x26d55f(0x5,(0x0,_0x3fe9b6['Inject'])(_0x3eccdb))],_0x560525);let _0x41bc05={'normal':{'fill':_0x360390['ShapeDefaultConfig'][_0x2ea0c4(0x17f)],'stroke':_0x360390[_0x2ea0c4(0x18d)][_0x2ea0c4(0x221)],'strokeWidth':_0x360390['ShapeDefaultConfig'][_0x2ea0c4(0x302)]},'highlighted':{'fill':_0x2ea0c4(0x1b8),'stroke':'#1a73e8','strokeWidth':0x2}};var _0x36016e=class extends _0x122d5a[_0x2ea0c4(0x191)]{constructor(_0x1781bb,_0x51b521){const _0x1557bd=_0x2ea0c4;super(_0x1781bb,_0x51b521),_0x144b44(this,_0x1557bd(0x38b),''),_0x144b44(this,_0x1557bd(0x1da),-0x1),_0x144b44(this,_0x1557bd(0x434),''),_0x144b44(this,_0x1557bd(0x154),''),_0x144b44(this,_0x1557bd(0x102),!0x1),_0x51b521&&this[_0x1557bd(0x2ca)](_0x51b521);}[_0x2ea0c4(0x220)](){return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'shapeId':this['_targetShapeId'],'cxnIndex':this['_cxnIndex']};}[_0x2ea0c4(0x2f3)](_0x9a57a1){const _0x3a0a22=_0x2ea0c4;this[_0x3a0a22(0x102)]!==_0x9a57a1&&(this[_0x3a0a22(0x102)]=_0x9a57a1,this['makeDirty'](!0x0));}[_0x2ea0c4(0x376)](){const _0x34eb96=_0x2ea0c4;return this[_0x34eb96(0x102)];}['setShapeProps'](_0x4ffd5f){const _0x12c5c3=_0x2ea0c4;var _0x16300a,_0x545a1e;_0x4ffd5f[_0x12c5c3(0x210)]!==void 0x0&&(this[_0x12c5c3(0x38b)]=_0x4ffd5f[_0x12c5c3(0x210)]),_0x4ffd5f[_0x12c5c3(0x159)]!==void 0x0&&(this['_cxnIndex']=_0x4ffd5f['cxnIndex']),_0x4ffd5f[_0x12c5c3(0x429)]!==void 0x0&&(this[_0x12c5c3(0x434)]=_0x4ffd5f[_0x12c5c3(0x429)]),_0x4ffd5f[_0x12c5c3(0x3aa)]!==void 0x0&&(this[_0x12c5c3(0x154)]=_0x4ffd5f[_0x12c5c3(0x3aa)]),_0x4ffd5f[_0x12c5c3(0x376)]!==void 0x0&&(this[_0x12c5c3(0x102)]=_0x4ffd5f['isHighlighted']),this[_0x12c5c3(0x413)]({'width':(_0x16300a=_0x4ffd5f[_0x12c5c3(0x1bf)])==null?_0x360390[_0x12c5c3(0x18d)][_0x12c5c3(0x20a)]*0x2:_0x16300a,'height':(_0x545a1e=_0x4ffd5f[_0x12c5c3(0x403)])==null?_0x360390[_0x12c5c3(0x18d)][_0x12c5c3(0x20a)]*0x2:_0x545a1e});}[_0x2ea0c4(0x3a6)](_0x196a04){const _0x24baf9=_0x2ea0c4;let _0x49c045=this['_isHighlighted']?_0x41bc05['highlighted']:_0x41bc05[_0x24baf9(0x294)];_0x122d5a['Circle']['drawWith'](_0x196a04,{'radius':_0x360390[_0x24baf9(0x18d)][_0x24baf9(0x20a)],'fill':_0x49c045[_0x24baf9(0x23b)],'stroke':_0x49c045[_0x24baf9(0x374)],'strokeWidth':_0x49c045[_0x24baf9(0x426)],'evented':!0x0});}};let _0x4fe1d3=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x5e7e04,_0x1c14d4,_0x1a67fd,_0x583e3c){const _0x15b5fd=_0x2ea0c4;super(),this[_0x15b5fd(0x130)]=_0x5e7e04,this['_renderManagerService']=_0x1c14d4,this[_0x15b5fd(0x275)]=_0x1a67fd,this[_0x15b5fd(0x25b)]=_0x583e3c,_0x144b44(this,_0x15b5fd(0x13a),[]),_0x144b44(this,_0x15b5fd(0x283),null),_0x144b44(this,_0x15b5fd(0x28b),-0x1),_0x144b44(this,_0x15b5fd(0x19c),null),_0x144b44(this,'_unitId',''),_0x144b44(this,_0x15b5fd(0x154),''),_0x144b44(this,'_draggingConnectorId',null);}[_0x2ea0c4(0x26d)](_0x247560,_0x3964ab,_0x4b4e3b,_0x4db433){const _0x48a8d7=_0x2ea0c4;this[_0x48a8d7(0x19c)]=_0x247560,this['_unitId']=_0x3964ab,this[_0x48a8d7(0x154)]=_0x4b4e3b,this[_0x48a8d7(0x1fd)]=_0x4db433;}['updateConnectionDetection'](_0x1aa649){const _0x3b2de5=_0x2ea0c4;if(!this[_0x3b2de5(0x19c)])return null;let _0x352c37=this[_0x3b2de5(0x24d)](_0x1aa649);return _0x352c37?(this[_0x3b2de5(0x283)]!==_0x352c37['shapeId']&&(this[_0x3b2de5(0x40e)](),this[_0x3b2de5(0x32a)](_0x352c37[_0x3b2de5(0x124)],_0x352c37['shapeModel']),this[_0x3b2de5(0x283)]=_0x352c37[_0x3b2de5(0x124)]),this[_0x3b2de5(0x21b)](_0x1aa649)):(this[_0x3b2de5(0x283)]!==null&&(this[_0x3b2de5(0x40e)](),this[_0x3b2de5(0x283)]=null),null);}[_0x2ea0c4(0x162)](){const _0x469ad7=_0x2ea0c4;this[_0x469ad7(0x40e)](),this['_currentScene']=null,this[_0x469ad7(0x283)]=null,this[_0x469ad7(0x28b)]=-0x1,this[_0x469ad7(0x1fd)]=null;}[_0x2ea0c4(0x3fc)](){const _0x5ef5ef=_0x2ea0c4;return this['_activeTargetShapeId']===null||this[_0x5ef5ef(0x28b)]<0x0?null:{'shapeId':this[_0x5ef5ef(0x283)],'cxnIndex':this[_0x5ef5ef(0x28b)]};}[_0x2ea0c4(0x24d)](_0x29e170){const _0x431d45=_0x2ea0c4;let _0x3e4158=this[_0x431d45(0x275)][_0x431d45(0x22c)](this[_0x431d45(0x434)],this['_subUnitId']);for(let _0x920a4 of Object[_0x431d45(0x16d)](_0x3e4158)){if(_0x920a4===this['_draggingConnectorId']||_0x3e4158[_0x920a4][_0x431d45(0x19a)]!==_0x3fe9b6[_0x431d45(0x225)][_0x431d45(0x1d9)])continue;let _0x3caf48=this[_0x431d45(0x25b)][_0x431d45(0x252)](this['_unitId'],this['_subUnitId'],_0x920a4);if(!_0x3caf48||(0x0,_0x360390[_0x431d45(0x295)])(_0x3caf48[_0x431d45(0x1b9)]())||_0x3caf48[_0x431d45(0x1b0)]()[_0x431d45(0x111)]===0x0||!this[_0x431d45(0x19c)])continue;let _0x3631f4=(0x0,_0xcd0f0e[_0x431d45(0x1f8)])({'unitId':this[_0x431d45(0x434)],'subUnitId':this[_0x431d45(0x154)],'drawingId':_0x920a4}),_0x24bcb0=this[_0x431d45(0x19c)][_0x431d45(0x432)](_0x3631f4);if(!_0x24bcb0)continue;let {left:_0x4a9f35,top:_0x5492a8,width:_0x5ece73,height:_0x4e44bd}=_0x24bcb0[_0x431d45(0x372)](),_0x374c57=_0x4a9f35+_0x5ece73/0x2,_0x3affe7=_0x5492a8+_0x4e44bd/0x2,_0x5cd949=_0x24bcb0[_0x431d45(0x3ec)][_0x431d45(0x20f)](),_0x6e95bb=new _0x122d5a[(_0x431d45(0x427))]([_0x5cd949[0x0],_0x5cd949[0x1],_0x5cd949[0x2],_0x5cd949[0x3],_0x374c57,_0x3affe7]),_0x3ea1b6=_0x24bcb0['getParent'](),_0x29f1a1=(_0x24bcb0['isInGroup']&&(_0x3ea1b6==null?void 0x0:_0x3ea1b6[_0x431d45(0x141)])===_0x122d5a[_0x431d45(0x31d)][_0x431d45(0x3e4)]?_0x3ea1b6[_0x431d45(0x164)][_0x431d45(0x1cc)](_0x6e95bb):_0x6e95bb)[_0x431d45(0x143)]()['applyPoint'](_0x29e170),_0x2d813f=_0x5ece73/0x2,_0x3f619a=_0x4e44bd/0x2;if(_0x29f1a1['x']>=-_0x2d813f-0x5&&_0x29f1a1['x']<=_0x2d813f+0x5&&_0x29f1a1['y']>=-_0x3f619a-0x5&&_0x29f1a1['y']<=_0x3f619a+0x5)return{'shapeId':_0x920a4,'shapeModel':_0x3caf48};}return null;}[_0x2ea0c4(0x32a)](_0x35a670,_0x4ade65){const _0xfcd1ff=_0x2ea0c4;if(!this[_0xfcd1ff(0x19c)])return;let _0x27ee71=(0x0,_0xcd0f0e[_0xfcd1ff(0x1f8)])({'unitId':this[_0xfcd1ff(0x434)],'subUnitId':this[_0xfcd1ff(0x154)],'drawingId':_0x35a670}),_0x19fae9=this[_0xfcd1ff(0x19c)][_0xfcd1ff(0x432)](_0x27ee71);if(!_0x19fae9)return;let {left:_0x305653,top:_0x317319,width:_0x4f0914,height:_0x58618c}=_0x19fae9[_0xfcd1ff(0x372)](),_0x41094d=_0x305653+_0x4f0914/0x2,_0x3ef041=_0x317319+_0x58618c/0x2,_0xee26c6=_0x19fae9[_0xfcd1ff(0x3ec)][_0xfcd1ff(0x20f)](),_0x4f97f7=new _0x122d5a[(_0xfcd1ff(0x427))]([_0xee26c6[0x0],_0xee26c6[0x1],_0xee26c6[0x2],_0xee26c6[0x3],_0x41094d,_0x3ef041]),_0x6612a1=_0x19fae9[_0xfcd1ff(0x36e)](),_0xde5b4c=_0x19fae9['isInGroup']&&(_0x6612a1==null?void 0x0:_0x6612a1['classType'])===_0x122d5a[_0xfcd1ff(0x31d)][_0xfcd1ff(0x3e4)]?_0x6612a1[_0xfcd1ff(0x164)]['multiply'](_0x4f97f7):_0x4f97f7;_0x4ade65['updateContext']({'width':_0x4f0914,'height':_0x58618c});let _0x2ede80=_0x4ade65[_0xfcd1ff(0x1b0)]();for(let _0x2774bd of _0x2ede80){let _0x85374a=_0x2774bd['x']-_0x4f0914/0x2,_0x13589c=_0x2774bd['y']-_0x58618c/0x2,_0x18f54b=_0xde5b4c[_0xfcd1ff(0x356)]({'x':_0x85374a,'y':_0x13589c}),_0x4cf2a4=_0x18f54b['x'],_0x167407=_0x18f54b['y'],_0x1b356d=new _0x36016e('connection-site-'+_0x35a670+'-'+_0x2774bd[_0xfcd1ff(0x247)],{'left':_0x4cf2a4-_0x360390[_0xfcd1ff(0x18d)][_0xfcd1ff(0x20a)],'top':_0x167407-_0x360390[_0xfcd1ff(0x18d)][_0xfcd1ff(0x20a)],'targetShapeId':_0x35a670,'cxnIndex':_0x2774bd[_0xfcd1ff(0x247)],'unitId':this['_unitId'],'subUnitId':this[_0xfcd1ff(0x154)],'width':_0x360390['ShapeDefaultConfig'][_0xfcd1ff(0x20a)]*0x2,'height':_0x360390[_0xfcd1ff(0x18d)][_0xfcd1ff(0x20a)]*0x2,'zIndex':_0x122d5a['DRAWING_OBJECT_LAYER_INDEX']+0x2,'evented':!0x1});this[_0xfcd1ff(0x13a)]['push'](_0x1b356d),this['_currentScene'][_0xfcd1ff(0x112)](_0x1b356d,_0x122d5a['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x2ea0c4(0x21b)](_0x34f850){const _0x29eec1=_0x2ea0c4;let _0x3a9c76=null,_0x1e7f65=0x1/0x0,_0x15a8ba=null;for(let _0x36325d of this[_0x29eec1(0x13a)]){let _0x187318=_0x36325d[_0x29eec1(0x2b3)]+_0x360390[_0x29eec1(0x18d)][_0x29eec1(0x20a)],_0x3e8e53=_0x36325d['top']+_0x360390[_0x29eec1(0x18d)][_0x29eec1(0x20a)],_0x695ee7=_0x34f850['x']-_0x187318,_0x1d0422=_0x34f850['y']-_0x3e8e53,_0x3f137f=Math[_0x29eec1(0x409)](_0x695ee7*_0x695ee7+_0x1d0422*_0x1d0422);_0x3f137f<_0x1e7f65&&(_0x1e7f65=_0x3f137f,_0x3a9c76=_0x36325d,_0x15a8ba={'x':_0x187318,'y':_0x3e8e53});}let _0x26bab6=_0x1e7f65<=0xa&&_0x3a9c76?_0x3a9c76[_0x29eec1(0x220)]()['cxnIndex']:-0x1;if(_0x26bab6!==this['_highlightedSiteIndex']){for(let _0x610a1d of this[_0x29eec1(0x13a)]){let _0x2fc679=_0x610a1d[_0x29eec1(0x220)]();_0x610a1d[_0x29eec1(0x2f3)](_0x2fc679[_0x29eec1(0x159)]===_0x26bab6);}this[_0x29eec1(0x28b)]=_0x26bab6;}if(_0x1e7f65<=0xa&&_0x3a9c76&&_0x15a8ba){let _0x1b999e=_0x3a9c76[_0x29eec1(0x220)](),_0x24690a=this[_0x29eec1(0x20e)](_0x1b999e[_0x29eec1(0x124)],_0x1b999e['cxnIndex']);return{'shapeId':_0x1b999e[_0x29eec1(0x124)],'cxnIndex':_0x1b999e[_0x29eec1(0x159)],'unitId':_0x1b999e[_0x29eec1(0x429)],'subUnitId':_0x1b999e[_0x29eec1(0x3aa)],'worldPoint':_0x15a8ba,'angle':_0x24690a};}return null;}[_0x2ea0c4(0x20e)](_0x3173aa,_0x2f20e4){const _0x167548=_0x2ea0c4;let _0x3c5347=this[_0x167548(0x25b)][_0x167548(0x252)](this[_0x167548(0x434)],this[_0x167548(0x154)],_0x3173aa);if(!_0x3c5347)return 0x0;let _0x1e6716=this[_0x167548(0x275)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x167548(0x154)],'drawingId':_0x3173aa});if(!(_0x1e6716!=null&&_0x1e6716[_0x167548(0x3ec)]))return 0x0;let {width:_0x400dcf=0x0,height:_0x400877=0x0,flipX:_0x1ef55b=!0x1,flipY:_0x4fc05f=!0x1}=_0x1e6716['transform'];_0x3c5347[_0x167548(0x21d)]({'width':_0x400dcf,'height':_0x400877});let _0x2f6d4e=_0x3c5347[_0x167548(0x1b0)]()['find'](_0x528eb2=>_0x528eb2[_0x167548(0x247)]===_0x2f20e4);if(!_0x2f6d4e)return 0x0;let _0x5f0145=_0x2f6d4e['ang']/0xea60;return _0x1ef55b&&(_0x5f0145=0xb4-_0x5f0145),_0x4fc05f&&(_0x5f0145=-_0x5f0145),_0x5f0145=(_0x5f0145%0x168+0x168)%0x168,_0x5f0145;}[_0x2ea0c4(0x40e)](){const _0x2d478b=_0x2ea0c4;for(let _0x28b1f2 of this[_0x2d478b(0x13a)])_0x28b1f2[_0x2d478b(0x14f)]();this['_connectionSiteObjects']=[],this[_0x2d478b(0x28b)]=-0x1;}[_0x2ea0c4(0x14f)](){const _0x59dbbd=_0x2ea0c4;this[_0x59dbbd(0x40e)](),super[_0x59dbbd(0x14f)]();}};_0x4fe1d3=_0x20d714([_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x122d5a[_0x2ea0c4(0x238)])),_0x26d55f(0x2,(0x0,_0x3fe9b6['Inject'])(_0xcd0f0e[_0x2ea0c4(0x3c8)])),_0x26d55f(0x3,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2cb023['SheetsShapeService']))],_0x4fe1d3);let _0x585fa5=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x1e16e2,_0x483196,_0x2e1bca,_0x221d15,_0x3361fc){const _0xb0854a=_0x2ea0c4;super(),this[_0xb0854a(0x1d1)]=_0x1e16e2,this[_0xb0854a(0x311)]=_0x483196,this[_0xb0854a(0x309)]=_0x2e1bca,this['_shapeService']=_0x221d15,this[_0xb0854a(0x394)]=_0x3361fc,_0x144b44(this,_0xb0854a(0x35a),void 0x0),this['_initCopyPaste'](),this[_0xb0854a(0x2d2)]();}get[_0x2ea0c4(0x2be)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x2ea0c4(0x2d2)](){const _0x13d2c6=_0x2ea0c4;this['_groupCopyPasteController'][_0x13d2c6(0x397)](({fromUnitId:_0x55bc1c,fromSubUnitId:_0x3782c4,toUnitId:_0x59a9d2,toSubUnitId:_0x58e2ce,idMap:_0x3d6aea})=>{const _0x33b6ac=_0x13d2c6;let _0x481073=[],_0x5d4d88=[];for(let [_0x1b7173,_0x32c97e]of _0x3d6aea[_0x33b6ac(0x132)]()){let _0x317bc6=this['_shapeService'][_0x33b6ac(0x252)](_0x55bc1c,_0x3782c4,_0x1b7173);if(!_0x317bc6)continue;let _0x3b0fcc=_0x317bc6['getShapeType'](),_0x5dffc2=JSON[_0x33b6ac(0x2f1)](JSON[_0x33b6ac(0x3b3)](_0x317bc6['getShapeData']()));if(_0x5dffc2[_0x33b6ac(0x134)]){var _0x4034ad,_0x2331d8;let _0x3ad95f=(_0x4034ad=_0x5dffc2[_0x33b6ac(0x134)][_0x33b6ac(0x11b)])==null?void 0x0:_0x4034ad[_0x33b6ac(0x124)],_0x51495f=(_0x2331d8=_0x5dffc2[_0x33b6ac(0x134)]['to'])==null?void 0x0:_0x2331d8[_0x33b6ac(0x124)],_0x50cfde=_0x3ad95f?_0x3d6aea[_0x33b6ac(0x1fb)](_0x3ad95f):!0x0,_0xe19ba=_0x51495f?_0x3d6aea['has'](_0x51495f):!0x0;_0x50cfde&&_0x3ad95f&&_0x5dffc2[_0x33b6ac(0x134)][_0x33b6ac(0x11b)]?_0x5dffc2[_0x33b6ac(0x134)][_0x33b6ac(0x11b)]={..._0x5dffc2['relation'][_0x33b6ac(0x11b)],'shapeId':_0x3d6aea[_0x33b6ac(0x263)](_0x3ad95f)}:_0x5dffc2[_0x33b6ac(0x134)][_0x33b6ac(0x11b)]=void 0x0,_0xe19ba&&_0x51495f&&_0x5dffc2[_0x33b6ac(0x134)]['to']?_0x5dffc2[_0x33b6ac(0x134)]['to']={..._0x5dffc2[_0x33b6ac(0x134)]['to'],'shapeId':_0x3d6aea['get'](_0x51495f)}:_0x5dffc2[_0x33b6ac(0x134)]['to']=void 0x0;}_0x481073['push']({'id':_0x2cb023[_0x33b6ac(0x26a)]['id'],'params':{'unitId':_0x59a9d2,'subUnitId':_0x58e2ce,'shapeId':_0x32c97e,'shapeType':_0x3b0fcc,'shapeData':_0x5dffc2}}),_0x5d4d88['push']({'id':_0x2cb023[_0x33b6ac(0x117)]['id'],'params':{'unitId':_0x59a9d2,'subUnitId':_0x58e2ce,'shapeId':_0x32c97e}});}return{'redos':_0x481073,'undos':_0x5d4d88};});}[_0x2ea0c4(0x278)](){const _0x3ab1ca=_0x2ea0c4;this['disposeWithMe'](this[_0x3ab1ca(0x311)][_0x3ab1ca(0x2a1)]({'id':_0x3ab1ca(0x188),'onBeforeCopy':(_0x11d4ea,_0x3bcccf,_0x28c32e,_0x46415e)=>{const _0x339fbe=_0x3ab1ca;this[_0x339fbe(0x35a)]=null;let _0x38f0ef=this['_focusedDrawings'];if(_0x38f0ef['length']){let _0xa60b8=_0x38f0ef[_0x339fbe(0x222)](_0x5a5d8d=>_0x5a5d8d[_0x339fbe(0x19a)]===_0x3fe9b6[_0x339fbe(0x225)]['DRAWING_SHAPE']);if(_0xa60b8[_0x339fbe(0x111)]===0x0)return;this['_copyInfo']={'unitId':_0x11d4ea,'subUnitId':_0x3bcccf,'copyType':_0x46415e,'drawings':_0xa60b8};}else this[_0x339fbe(0x27d)](_0x11d4ea,_0x3bcccf,_0x28c32e,_0x46415e);},'onPasteCells':(_0x1e9a6d,_0x4df5e4,_0x5c6fde,_0x4f33df)=>{const _0x420c65=_0x3ab1ca;if(!this[_0x420c65(0x35a)])return{'redos':[],'undos':[]};let {pasteType:_0x466744}=_0x4f33df;return _0x466744===_0x48ecbb[_0x420c65(0x2ea)]['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x4df5e4,this[_0x420c65(0x35a)][_0x420c65(0x201)]===_0x48ecbb['COPY_TYPE'][_0x420c65(0x1af)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x32ec10=>this['_copyInfo']?this[_0x3ab1ca(0x2b4)](_0x32ec10,this[_0x3ab1ca(0x35a)][_0x3ab1ca(0x201)]===_0x48ecbb[_0x3ab1ca(0x325)][_0x3ab1ca(0x1af)]):{'redos':[],'undos':[]}}));}['_createCopyInfoByRange'](_0x556b8c,_0x3d9e0f,_0xc62aa9,_0x3bd912){const _0x17c1a4=_0x2ea0c4;let _0x2163a9=this['_sheetSkeletonService'][_0x17c1a4(0x2f8)](_0x556b8c,_0x3d9e0f);if(!_0x2163a9)return;let _0x2311e0=(0x0,_0x12af8f[_0x17c1a4(0x30b)])(_0x2163a9,_0xc62aa9);if(!_0x2311e0)return;let {startX:_0x54733b,endX:_0x3bb308,startY:_0x1b80f7,endY:_0x25272c}=_0x2311e0,_0x4e7fc2=this[_0x17c1a4(0x309)][_0x17c1a4(0x22c)](_0x556b8c,_0x3d9e0f),_0x509730=this[_0x17c1a4(0x2be)][_0x17c1a4(0x3c3)]();for(let [_0x5c6d0a,_0x445e3f]of Object[_0x17c1a4(0x132)](_0x4e7fc2)){if(_0x445e3f['drawingType']!==_0x3fe9b6[_0x17c1a4(0x225)]['DRAWING_SHAPE'])continue;let {transform:_0x45c4e8}=_0x445e3f;if(!_0x45c4e8)continue;let {left:_0x497ec5=0x0,top:_0x4a58fa=0x0,width:_0x18c64b=0x0,height:_0x43bfa0=0x0}=_0x45c4e8;_0x54733b<=_0x497ec5&&_0x3bb308>=_0x497ec5+_0x18c64b&&_0x1b80f7<=_0x4a58fa&&_0x25272c>=_0x4a58fa+_0x43bfa0&&_0x509730['push'](_0x445e3f);}_0x509730['length']>0x0&&(this[_0x17c1a4(0x35a)]={'unitId':_0x556b8c,'subUnitId':_0x3d9e0f,'copyType':_0x3bd912,'copyRange':_0xc62aa9,'drawings':_0x509730});}[_0x2ea0c4(0x2b4)](_0x37c0db,_0x4d1afe){const _0x937874=_0x2ea0c4;let {unitId:_0x1f5e3c,subUnitId:_0x377c22,range:_0xe29812}=_0x37c0db,_0x2e1464=this[_0x937874(0x1d1)][_0x937874(0x2f8)](_0x1f5e3c,_0x377c22);if(!_0x2e1464)return{'redos':[],'undos':[]};let _0x16928b=(0x0,_0x12af8f[_0x937874(0x198)])(_0xe29812),{unitId:_0x281c0b,subUnitId:_0x405ef7,copyRange:_0x4aa70c,drawings:_0x1d5af7}=this[_0x937874(0x35a)],_0x9b32b2=this[_0x937874(0x1d1)][_0x937874(0x2f8)](_0x281c0b,_0x405ef7);if(!_0x9b32b2)return{'redos':[],'undos':[]};let _0xffae75;if(!_0x4aa70c){let _0x255489=0x1/0x0,_0x2ab172=0x1/0x0;for(let _0x496a73 of _0x1d5af7){var _0x58c294;let {left:_0x2a14e8=0x0,top:_0x2abf4c=0x0}=(_0x58c294=_0x496a73[_0x937874(0x3ec)])==null?{}:_0x58c294;_0x2a14e8<_0x255489&&(_0x255489=_0x2a14e8),_0x2abf4c<_0x2ab172&&(_0x2ab172=_0x2abf4c);}_0x255489!==0x1/0x0&&_0x2ab172!==0x1/0x0&&(_0xffae75={'left':_0x255489,'top':_0x2ab172});}let _0x3b81c1=new Map();if(!_0x4d1afe){for(let _0x5b4875 of _0x1d5af7)_0x3b81c1[_0x937874(0x152)](_0x5b4875['drawingId'],(0x0,_0x3fe9b6[_0x937874(0x387)])());}let _0x3a28a2=[],_0x5771ea=[];for(let _0x12dedf of _0x1d5af7){let {drawingId:_0x32e6b8,transform:_0x2cddeb,sheetTransform:_0x8479c}=_0x12dedf;if(!_0x2cddeb||!_0x8479c)continue;let _0x34ff29=this[_0x937874(0x40d)]({'transform':_0x2cddeb,'sheetTransform':_0x8479c},{'skeleton':_0x9b32b2,'range':_0x4aa70c},{'skeleton':_0x2e1464,'range':_0x16928b},_0xffae75);if(_0x4d1afe){let {redos:_0x50253d,undos:_0x1e2c36}=this[_0x937874(0x128)]({'fromUnitId':_0x281c0b,'fromSubUnitId':_0x405ef7,'toUnitId':_0x1f5e3c,'toSubUnitId':_0x377c22,'drawing':_0x12dedf,'newTransforms':_0x34ff29});_0x3a28a2[_0x937874(0x35c)](..._0x50253d),_0x5771ea[_0x937874(0x35c)](..._0x1e2c36);continue;}let {redos:_0x28b785,undos:_0x5ffc5c}=this[_0x937874(0x1ab)]({'toUnitId':_0x1f5e3c,'toSubUnitId':_0x377c22,'drawing':_0x12dedf,'newTransforms':_0x34ff29,'newDrawingId':_0x3b81c1[_0x937874(0x263)](_0x32e6b8),'idMap':_0x3b81c1});_0x3a28a2[_0x937874(0x35c)](..._0x28b785),_0x5771ea[_0x937874(0x35c)](..._0x5ffc5c);}return{'redos':_0x3a28a2,'undos':_0x5771ea};}['_generateCutPasteMutations'](_0x4fae00){const _0x2c4782=_0x2ea0c4;let {fromUnitId:_0x53414a,fromSubUnitId:_0x4971e0,toUnitId:_0x10da9c,toSubUnitId:_0x2f8e6a,drawing:_0x236881,newTransforms:_0x43d84f}=_0x4fae00,_0x564f07={..._0x236881,'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'transform':_0x43d84f[_0x2c4782(0x3ec)],'sheetTransform':_0x43d84f[_0x2c4782(0x116)]};if(_0x10da9c===_0x53414a&&_0x2f8e6a===_0x4971e0){let {redo:_0x387dad,undo:_0x16161c,objects:_0x56d8e3}=this[_0x2c4782(0x309)][_0x2c4782(0x338)]([_0x564f07]);return{'redos':[{'id':_0x1ba3d5[_0x2c4782(0x2e7)]['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'type':_0x1ba3d5['DrawingApplyType']['UPDATE'],'op':_0x387dad,'objects':_0x56d8e3}}],'undos':[{'id':_0x1ba3d5['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'type':_0x1ba3d5['DrawingApplyType'][_0x2c4782(0x11a)],'op':_0x16161c,'objects':_0x56d8e3}}]};}else{let _0x3aaf69=this[_0x2c4782(0x309)][_0x2c4782(0x423)]([_0x236881]),_0xce760f=this[_0x2c4782(0x309)][_0x2c4782(0x1f1)]([_0x564f07]),_0x2a7c1c=this['_shapeService']['getShapeModel'](_0x236881[_0x2c4782(0x429)],_0x236881[_0x2c4782(0x3aa)],_0x236881[_0x2c4782(0x215)]);if(!_0x2a7c1c)return{'redos':[],'undos':[]};let _0x889eba=_0x2a7c1c[_0x2c4782(0x1b9)](),_0x5584cc=JSON[_0x2c4782(0x2f1)](JSON[_0x2c4782(0x3b3)](_0x2a7c1c[_0x2c4782(0x11d)]()));return{'redos':[{'id':_0x1ba3d5[_0x2c4782(0x2e7)]['id'],'params':{'unitId':_0x53414a,'subUnitId':_0x4971e0,'type':_0x1ba3d5[_0x2c4782(0x18e)][_0x2c4782(0x255)],'op':_0x3aaf69[_0x2c4782(0x160)],'objects':_0x3aaf69[_0x2c4782(0x1bd)]}},{'id':_0x2cb023[_0x2c4782(0x117)]['id'],'params':{'unitId':_0x53414a,'subUnitId':_0x4971e0,'shapeId':_0x236881[_0x2c4782(0x215)]}},{'id':_0x1ba3d5[_0x2c4782(0x2e7)]['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'type':_0x1ba3d5['DrawingApplyType']['INSERT'],'op':_0xce760f[_0x2c4782(0x160)],'objects':_0xce760f[_0x2c4782(0x1bd)]}},{'id':_0x2cb023[_0x2c4782(0x26a)]['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'shapeId':_0x236881['drawingId'],'shapeType':_0x889eba,'shapeData':_0x5584cc}}],'undos':[{'id':_0x1ba3d5[_0x2c4782(0x2e7)]['id'],'params':{'unitId':_0x53414a,'subUnitId':_0x4971e0,'type':_0x1ba3d5[_0x2c4782(0x18e)][_0x2c4782(0x2bd)],'op':_0x3aaf69[_0x2c4782(0x346)],'objects':_0x3aaf69[_0x2c4782(0x1bd)]}},{'id':_0x2cb023[_0x2c4782(0x26a)]['id'],'params':{'unitId':_0x53414a,'subUnitId':_0x4971e0,'shapeId':_0x236881[_0x2c4782(0x215)],'shapeType':_0x889eba,'shapeData':_0x5584cc}},{'id':_0x1ba3d5['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'type':_0x1ba3d5[_0x2c4782(0x18e)][_0x2c4782(0x255)],'op':_0xce760f['undo'],'objects':_0xce760f[_0x2c4782(0x1bd)]}},{'id':_0x2cb023[_0x2c4782(0x117)]['id'],'params':{'unitId':_0x10da9c,'subUnitId':_0x2f8e6a,'shapeId':_0x236881[_0x2c4782(0x215)]}}]};}}[_0x2ea0c4(0x1ab)](_0xb520ea){const _0x558bc7=_0x2ea0c4;let {toUnitId:_0x143e52,toSubUnitId:_0x271a4f,drawing:_0x1be398,newTransforms:_0x5752d5,newDrawingId:_0x57959a,idMap:_0x2774d2}=_0xb520ea,_0x5e6a0c={..._0x1be398,'unitId':_0x143e52,'subUnitId':_0x271a4f,'drawingId':_0x57959a,'transform':_0x5752d5[_0x558bc7(0x3ec)],'sheetTransform':_0x5752d5[_0x558bc7(0x116)]},{redo:_0x151050,undo:_0x4712a0,objects:_0xcf173a}=this[_0x558bc7(0x309)][_0x558bc7(0x1f1)]([_0x5e6a0c]),_0x466cd2=this[_0x558bc7(0x355)][_0x558bc7(0x252)](_0x1be398['unitId'],_0x1be398['subUnitId'],_0x1be398['drawingId']);if(!_0x466cd2)return{'redos':[],'undos':[]};let _0x3ecf6a=_0x466cd2[_0x558bc7(0x1b9)](),_0x9063b6=JSON[_0x558bc7(0x2f1)](JSON['stringify'](_0x466cd2[_0x558bc7(0x11d)]()));if(_0x9063b6['relation']){var _0x39d594,_0x7653a9;let _0x4f3e19=(_0x39d594=_0x9063b6['relation'][_0x558bc7(0x11b)])==null?void 0x0:_0x39d594[_0x558bc7(0x124)],_0x5f3912=(_0x7653a9=_0x9063b6[_0x558bc7(0x134)]['to'])==null?void 0x0:_0x7653a9['shapeId'],_0x4ff310=_0x4f3e19?_0x2774d2[_0x558bc7(0x1fb)](_0x4f3e19):!0x0,_0x55b978=_0x5f3912?_0x2774d2[_0x558bc7(0x1fb)](_0x5f3912):!0x0;_0x4ff310&&_0x4f3e19&&_0x9063b6[_0x558bc7(0x134)][_0x558bc7(0x11b)]?_0x9063b6[_0x558bc7(0x134)][_0x558bc7(0x11b)]={..._0x9063b6['relation'][_0x558bc7(0x11b)],'shapeId':_0x2774d2[_0x558bc7(0x263)](_0x4f3e19)}:_0x9063b6['relation']['from']=void 0x0,_0x55b978&&_0x5f3912&&_0x9063b6[_0x558bc7(0x134)]['to']?_0x9063b6[_0x558bc7(0x134)]['to']={..._0x9063b6[_0x558bc7(0x134)]['to'],'shapeId':_0x2774d2[_0x558bc7(0x263)](_0x5f3912)}:_0x9063b6[_0x558bc7(0x134)]['to']=void 0x0;}return{'redos':[{'id':_0x1ba3d5[_0x558bc7(0x2e7)]['id'],'params':{'unitId':_0x143e52,'subUnitId':_0x271a4f,'type':_0x1ba3d5[_0x558bc7(0x18e)]['INSERT'],'op':_0x151050,'objects':_0xcf173a}},{'id':_0x2cb023[_0x558bc7(0x26a)]['id'],'params':{'unitId':_0x143e52,'subUnitId':_0x271a4f,'shapeId':_0x57959a,'shapeType':_0x3ecf6a,'shapeData':_0x9063b6}}],'undos':[{'id':_0x1ba3d5['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x143e52,'subUnitId':_0x271a4f,'type':_0x1ba3d5[_0x558bc7(0x18e)][_0x558bc7(0x255)],'op':_0x4712a0,'objects':_0xcf173a}},{'id':_0x2cb023['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x143e52,'subUnitId':_0x271a4f,'shapeId':_0x57959a}}]};}[_0x2ea0c4(0x40d)](_0x39f1b4,_0x129610,_0x4a146d,_0x347109){const _0x3e9963=_0x2ea0c4;var _0x430369;let {range:_0x5ee780,skeleton:_0x43319b}=_0x129610,{range:_0x4b3eb8,skeleton:_0x452568}=_0x4a146d,{transform:_0xda5aa,sheetTransform:_0x275661}=_0x39f1b4,_0x147046={..._0xda5aa};if(_0x5ee780){let _0x10e2fb=(0x0,_0x12af8f['attachRangeWithCoord'])(_0x43319b,_0x5ee780),_0x510dff=(0x0,_0x12af8f['attachRangeWithCoord'])(_0x452568,_0x4b3eb8);if(_0x10e2fb&&_0x510dff){var _0x12b4b1,_0x48ada3;let _0x4e5291=_0x510dff[_0x3e9963(0x182)]-_0x10e2fb['startX'],_0x1a0fd3=_0x510dff[_0x3e9963(0x144)]-_0x10e2fb[_0x3e9963(0x144)];_0x147046[_0x3e9963(0x2b3)]=((_0x12b4b1=_0x147046[_0x3e9963(0x2b3)])==null?0x0:_0x12b4b1)+_0x4e5291,_0x147046[_0x3e9963(0x176)]=((_0x48ada3=_0x147046['top'])==null?0x0:_0x48ada3)+_0x1a0fd3;}}else{let _0x5d07dd=(0x0,_0x12af8f[_0x3e9963(0x30b)])(_0x452568,_0x4b3eb8);if(_0x347109&&_0x5d07dd){var _0x45a6ac,_0x369339;let _0x4ee1cb=((_0x45a6ac=_0x147046['left'])==null?0x0:_0x45a6ac)-_0x347109[_0x3e9963(0x2b3)],_0x3ded70=((_0x369339=_0x147046[_0x3e9963(0x176)])==null?0x0:_0x369339)-_0x347109['top'];_0x147046[_0x3e9963(0x2b3)]=_0x5d07dd[_0x3e9963(0x182)]+_0x4ee1cb,_0x147046['top']=_0x5d07dd['startY']+_0x3ded70;}else _0x147046[_0x3e9963(0x2b3)]=_0x5d07dd==null?void 0x0:_0x5d07dd[_0x3e9963(0x182)],_0x147046[_0x3e9963(0x176)]=_0x5d07dd==null?void 0x0:_0x5d07dd[_0x3e9963(0x144)];}return{'transform':_0x147046,'sheetTransform':(_0x430369=(0x0,_0x1ba3d5[_0x3e9963(0x2e2)])(_0x147046,_0x452568))==null?_0x275661:_0x430369};}};_0x585fa5=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6['Inject'])(_0x12af8f[_0x2ea0c4(0x19f)])),_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x48ecbb['ISheetClipboardService'])),_0x26d55f(0x2,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x1ba3d5[_0x2ea0c4(0x230)])),_0x26d55f(0x3,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2cb023[_0x2ea0c4(0x40f)])),_0x26d55f(0x4,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x20f931[_0x2ea0c4(0x3f9)]))],_0x585fa5);var _0x230b53=class extends _0x122d5a[_0x2ea0c4(0x191)]{constructor(_0x481018,_0x1a0a59){const _0x16f75f=_0x2ea0c4;super(_0x481018,_0x1a0a59),_0x144b44(this,_0x16f75f(0x26e),null),_0x144b44(this,_0x16f75f(0x2a9),null),_0x144b44(this,_0x16f75f(0x434),null),_0x144b44(this,_0x16f75f(0x154),null),_0x144b44(this,_0x16f75f(0x407),!0x1),_0x1a0a59&&this[_0x16f75f(0x2ca)](_0x1a0a59);}[_0x2ea0c4(0x14e)](){const _0x412e7d=_0x2ea0c4;return{'unitId':this[_0x412e7d(0x434)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x412e7d(0x26e)]};}[_0x2ea0c4(0x2ca)](_0x53bb9b){const _0x174ed4=_0x2ea0c4;_0x53bb9b[_0x174ed4(0x124)]!==void 0x0&&(this[_0x174ed4(0x26e)]=_0x53bb9b[_0x174ed4(0x124)]),_0x53bb9b[_0x174ed4(0x429)]!==void 0x0&&(this['_unitId']=_0x53bb9b['unitId']),_0x53bb9b[_0x174ed4(0x3aa)]!==void 0x0&&(this[_0x174ed4(0x154)]=_0x53bb9b[_0x174ed4(0x3aa)]),_0x53bb9b[_0x174ed4(0x180)]!==void 0x0&&(this['_isStartConnectorPoint']=_0x53bb9b[_0x174ed4(0x180)]),this[_0x174ed4(0x413)]({'width':_0x53bb9b[_0x174ed4(0x1bf)],'height':_0x53bb9b[_0x174ed4(0x403)]});}[_0x2ea0c4(0x3a6)](_0x2620d7){const _0x296cad=_0x2ea0c4;_0x122d5a[_0x296cad(0x181)][_0x296cad(0x385)](_0x2620d7,{'radius':_0x360390[_0x296cad(0x18d)][_0x296cad(0x20a)],'fill':_0x360390[_0x296cad(0x18d)][_0x296cad(0x17f)],'stroke':_0x360390[_0x296cad(0x18d)][_0x296cad(0x221)],'strokeWidth':_0x360390['ShapeDefaultConfig']['cxnPointStrokeWidth'],'evented':!0x0});}};let _0x4cd232=class extends _0x3fe9b6['Disposable']{constructor(_0x40c7c6,_0x5329c1,_0xef511b,_0x82db59,_0x8469fa,_0xd8fc0b,_0x5508a7,_0x3065ec){const _0x41de55=_0x2ea0c4;super(),this[_0x41de55(0x130)]=_0x40c7c6,this[_0x41de55(0x3d4)]=_0x5329c1,this['_renderManagerService']=_0xef511b,this[_0x41de55(0x275)]=_0x82db59,this[_0x41de55(0x2ba)]=_0x8469fa,this['_sheetsShapeService']=_0xd8fc0b,this[_0x41de55(0x352)]=_0x5508a7,this['_sheetBasicShapeConnectionPointController']=_0x3065ec,_0x144b44(this,_0x41de55(0x1be),void 0x0),_0x144b44(this,_0x41de55(0x434),void 0x0),_0x144b44(this,_0x41de55(0x154),void 0x0),_0x144b44(this,'_connectorObjects',[]),_0x144b44(this,_0x41de55(0x1f7),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x144b44(this,_0x41de55(0xf9),void 0x0),_0x144b44(this,_0x41de55(0x1b1),!0x1),_0x144b44(this,'_isDrawingShapePointDown',!0x1),_0x144b44(this,_0x41de55(0x38a),!0x1),_0x144b44(this,_0x41de55(0x207),void 0x0),_0x144b44(this,'_cxtHandlerPointerUp',void 0x0),_0x144b44(this,'_currentConnectionTarget',null),this['_initialize']();}[_0x2ea0c4(0x337)](){const _0x149449=_0x2ea0c4;this['_registerDrawingFocusChangeHandler'](),this[_0x149449(0x262)]();}[_0x2ea0c4(0x251)](){const _0x184a9b=_0x2ea0c4;if(!this[_0x184a9b(0x434)]||!this[_0x184a9b(0x154)]||!this['_activeShapeId'])return;let _0x5390f5={'unitId':this[_0x184a9b(0x434)],'subUnitId':this[_0x184a9b(0x154)],'drawingId':this[_0x184a9b(0x1be)]},{transform:_0xff936b}=this['_drawingManagerService'][_0x184a9b(0x3e3)](_0x5390f5);if(_0xff936b)return{'left':_0xff936b[_0x184a9b(0x2b3)]||0x0,'top':_0xff936b[_0x184a9b(0x176)]||0x0,'width':_0xff936b[_0x184a9b(0x1bf)]||0x0,'height':_0xff936b[_0x184a9b(0x403)]||0x0,'flipX':_0xff936b[_0x184a9b(0x17a)]||!0x1,'flipY':_0xff936b[_0x184a9b(0x30e)]||!0x1,'angle':_0xff936b[_0x184a9b(0x2a0)]};}['_addShapeConnectorHandlerObjects'](){const _0x401c8b=_0x2ea0c4;if(this[_0x401c8b(0x434)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x401c8b(0x1be)]===void 0x0)return;let _0x5aa085=this[_0x401c8b(0x200)][_0x401c8b(0x425)](this[_0x401c8b(0x434)]);if(!_0x5aa085||!_0x5aa085[_0x401c8b(0x3f8)](_0x48ecbb[_0x401c8b(0x3ff)])[_0x401c8b(0x1d3)]())return;let {scene:_0x7bb68}=_0x5aa085,_0x245abb=this['_getDrawingRect']();if(!_0x245abb)return;let _0x497c57=this[_0x401c8b(0x25b)][_0x401c8b(0x252)](this['_unitId'],this['_subUnitId'],this[_0x401c8b(0x1be)]);if(!_0x497c57||!(0x0,_0x360390[_0x401c8b(0x295)])(_0x497c57['getShapeType']()))return;let _0x349dba=_0x497c57['getConnectorLinePoints']();if(_0x349dba[_0x401c8b(0x111)]<0x2)return;let _0xac306=new _0x360390[(_0x401c8b(0x3c9))](_0x245abb),_0x5ddc47=_0x349dba[0x0],_0x122b8c=_0x349dba[_0x349dba[_0x401c8b(0x111)]-0x1],_0x3953f=_0xac306['localToWorld'](_0x5ddc47),_0x81f67=_0xac306['localToWorld'](_0x122b8c);this[_0x401c8b(0x155)](_0x7bb68,{..._0x3953f},!0x0),this['_addShapeConnectorHandlerObject'](_0x7bb68,{..._0x81f67},!0x1);}[_0x2ea0c4(0x155)](_0x2070fc,_0x4fbb1d,_0x507000){const _0x5b34b1=_0x2ea0c4;if(this[_0x5b34b1(0x1be)]===void 0x0||this['_unitId']===void 0x0||this[_0x5b34b1(0x154)]===void 0x0)return;let _0x4d1a48=_0x5b34b1(0x3d9)+this[_0x5b34b1(0x434)]+'-'+this[_0x5b34b1(0x154)]+'-'+this[_0x5b34b1(0x1be)]+'-'+(_0x507000?_0x5b34b1(0x336):_0x5b34b1(0x18f)),_0x437b06=_0x2070fc[_0x5b34b1(0x432)](_0x4d1a48);if(_0x437b06){_0x437b06[_0x5b34b1(0x413)]({'left':_0x4fbb1d['x']-_0x360390[_0x5b34b1(0x18d)][_0x5b34b1(0x20a)],'top':_0x4fbb1d['y']-_0x360390[_0x5b34b1(0x18d)][_0x5b34b1(0x20a)]});return;}let _0x17aee2=new _0x230b53(_0x4d1a48,{'left':_0x4fbb1d['x']-_0x360390[_0x5b34b1(0x18d)][_0x5b34b1(0x20a)],'top':_0x4fbb1d['y']-_0x360390['ShapeDefaultConfig'][_0x5b34b1(0x20a)],'shapeId':this[_0x5b34b1(0x1be)],'unitId':this[_0x5b34b1(0x434)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x507000,'width':_0x360390[_0x5b34b1(0x18d)][_0x5b34b1(0x20a)]*0x2,'height':_0x360390['ShapeDefaultConfig'][_0x5b34b1(0x20a)]*0x2,'zIndex':_0x122d5a[_0x5b34b1(0x192)]+0x1,'evented':!0x0});this[_0x5b34b1(0x268)][_0x5b34b1(0x35c)](_0x17aee2),this[_0x5b34b1(0x2d0)](_0x17aee2,_0x2070fc,_0x507000),_0x2070fc[_0x5b34b1(0x112)](_0x17aee2,_0x122d5a[_0x5b34b1(0x192)]+0x1);}[_0x2ea0c4(0x2e0)](_0xe12db3,_0x5db81d){const _0x1c008e=_0x2ea0c4;var _0x1d2c05;let _0x2f8515={'x':0x0,'y':0x0};if(!_0xe12db3||!_0x5db81d)return _0x2f8515;let _0x48635c=this['_renderManagerService'][_0x1c008e(0x425)](_0xe12db3);if(!_0x48635c||!_0x48635c[_0x1c008e(0x3f8)](_0x48ecbb['SheetSkeletonManagerService'])[_0x1c008e(0x2f8)](_0x5db81d))return _0x2f8515;let _0x2f76fb=_0x48635c[_0x1c008e(0x3f8)](_0x48ecbb[_0x1c008e(0x186)]),_0xca8b10=_0x2f76fb==null?void 0x0:_0x2f76fb[_0x1c008e(0x1a4)]();if(!_0xca8b10)return _0x2f8515;let _0x4cbe9a=(_0x1d2c05=this[_0x1c008e(0x2ba)][_0x1c008e(0x34b)](_0xe12db3))==null?void 0x0:_0x1d2c05[_0x1c008e(0x20c)](_0x5db81d);if(!_0x4cbe9a)return _0x2f8515;let _0x21fffd=(0x0,_0x48ecbb[_0x1c008e(0x32f)])(_0xca8b10['sheetViewStartRow'],_0xca8b10['sheetViewStartColumn'],_0x48635c[_0x1c008e(0x373)],_0x4cbe9a);return _0x21fffd?{'x':_0x21fffd[_0x1c008e(0x327)],'y':_0x21fffd[_0x1c008e(0x2b8)]}:_0x2f8515;}[_0x2ea0c4(0x388)](_0x14ffe2,_0x18c7d0){const _0x4f64e2=_0x2ea0c4;var _0x33262d,_0x432e12;let _0x27f1ba=(_0x33262d=this[_0x4f64e2(0x2ba)][_0x4f64e2(0x34b)](_0x14ffe2))==null?void 0x0:_0x33262d['getSheetBySheetId'](_0x18c7d0);return(_0x432e12=_0x27f1ba==null?void 0x0:_0x27f1ba[_0x4f64e2(0x1b2)]())==null?0x1:_0x432e12;}[_0x2ea0c4(0x1c3)](_0x235d1b,_0x176e10,_0x1a54ad,_0x4c3d6d,_0x1eb24c){const _0xdb8c5f=_0x2ea0c4;this[_0xdb8c5f(0x207)][_0xdb8c5f(0x1ea)](),this['_cxtHandlerPointerUp'][_0xdb8c5f(0x1ea)](),this['_sheetShapeAdjustController'][_0xdb8c5f(0x2a5)]();let _0x50f3ef=this[_0xdb8c5f(0x24a)];this[_0xdb8c5f(0x379)][_0xdb8c5f(0x162)]();let _0x10fc7a=this[_0xdb8c5f(0x2e0)](this[_0xdb8c5f(0x434)],this[_0xdb8c5f(0x154)]),_0x48a8f4=this[_0xdb8c5f(0x388)](this['_unitId'],this[_0xdb8c5f(0x154)]),_0x43e0cf={'x':_0x1a54ad['offsetX']/_0x48a8f4+_0x10fc7a['x'],'y':_0x1a54ad[_0xdb8c5f(0x2e3)]/_0x48a8f4+_0x10fc7a['y']},_0x43cdce=_0x50f3ef?_0x50f3ef['worldPoint']:_0x43e0cf,_0x59071e=_0x4c3d6d?this[_0xdb8c5f(0xf9)][_0xdb8c5f(0x16a)]():this[_0xdb8c5f(0xf9)]['getStartConnectInfo'](),_0x5c5f83=this[_0xdb8c5f(0xf9)][_0xdb8c5f(0x1b9)]();_0x59071e?this[_0xdb8c5f(0x2f0)](_0x59071e,_0x43cdce,_0x4c3d6d,_0x50f3ef,_0x1eb24c):this[_0xdb8c5f(0x1ce)](_0x176e10,_0x43cdce,_0x4c3d6d,_0x50f3ef,_0x1eb24c,_0x5c5f83),this[_0xdb8c5f(0x1b1)]=!0x1,this[_0xdb8c5f(0x38a)]=!0x1,this[_0xdb8c5f(0x24a)]=null,_0x235d1b[_0xdb8c5f(0x3ba)]();}['_handleFreeEndpointPointerUp'](_0x733c6a,_0x262523,_0x3aa1d7,_0x1837f3,_0x33d214,_0x1a345c){const _0x5170c4=_0x2ea0c4;let _0x428fb3=_0x1a345c===_0x360390['ShapeTypeEnum'][_0x5170c4(0x253)]||_0x1a345c===_0x360390[_0x5170c4(0x39f)]['StraightConnector1'],_0x59dc02=_0x3aa1d7?_0x262523:_0x733c6a,_0x1bda23=_0x3aa1d7?_0x733c6a:_0x262523,_0x20ff64=this[_0x5170c4(0xf9)][_0x5170c4(0x284)](),_0x15b0bc=(0x0,_0x360390[_0x5170c4(0x2ee)])(this[_0x5170c4(0xf9)][_0x5170c4(0x1b9)]()),_0x4bc3cd=_0x360390[_0x5170c4(0x3c9)]['getBentTypeFromPoints'](_0x20ff64,_0x15b0bc),_0x350994=_0x428fb3?_0x360390['ConnectorCoordinateTransform']['computeStraightConnectorLayout'](_0x59dc02,_0x1bda23):_0x360390[_0x5170c4(0x3c9)][_0x5170c4(0x37e)](_0x733c6a,_0x262523,_0x3aa1d7,_0x4bc3cd);_0x1837f3?this[_0x5170c4(0x1ff)](_0x350994,_0x1837f3,_0x3aa1d7,_0x33d214):this[_0x5170c4(0x10e)](_0x350994,_0x33d214);}[_0x2ea0c4(0x2f0)](_0x463b16,_0x49896a,_0x5eca4f,_0xef7964,_0x4b3ac3){const _0x431494=_0x2ea0c4;let _0xf96e96=this['_getConnectPointInfo'](_0x463b16);if(!_0xf96e96)return;let _0x4238e8=_0xef7964?_0xef7964[_0x431494(0x2a0)]:this['_calculateFreeEndpointAngle'](_0xf96e96[_0x431494(0x127)],_0x49896a),_0xfd899e;if(_0xef7964){let _0x2d57de=this[_0x431494(0x275)][_0x431494(0x3e3)]({'unitId':_0xef7964['unitId'],'subUnitId':_0xef7964['subUnitId'],'drawingId':_0xef7964[_0x431494(0x124)]});if(_0x2d57de!=null&&_0x2d57de[_0x431494(0x3ec)]){let {left:_0x9b161d=0x0,top:_0x366c0c=0x0,width:_0x1c4e73=0x0,height:_0x4dada8=0x0,angle:_0x1744a5}=_0x2d57de[_0x431494(0x3ec)];_0xfd899e=(0x0,_0x360390[_0x431494(0x364)])({'left':_0x9b161d,'top':_0x366c0c,'width':_0x1c4e73,'height':_0x4dada8},_0x1744a5||0x0);}else _0xfd899e={'left':_0x49896a['x'],'top':_0x49896a['y'],'width':0x0,'height':0x0};}else _0xfd899e={'left':_0x49896a['x'],'top':_0x49896a['y'],'width':0x0,'height':0x0};let _0x408146={'point':_0x49896a,'angle':_0x4238e8,'bounds':_0xfd899e},_0x115786=_0x5eca4f?_0x408146:_0xf96e96,_0x1b7052=_0x5eca4f?_0xf96e96:_0x408146,_0x4895f0=this['_activeShapeModel'][_0x431494(0x1b9)](),_0xaa0f15=(0x0,_0x360390[_0x431494(0x219)])(_0x115786,_0x1b7052,_0x4895f0);this[_0x431494(0xf9)][_0x431494(0x2c2)]();let _0x3ad404=(0x0,_0x360390[_0x431494(0x30c)])(_0xaa0f15,_0x4895f0);_0xef7964?this[_0x431494(0x3fb)](_0x3ad404,_0xef7964,_0x463b16,_0x5eca4f,_0x4b3ac3):this[_0x431494(0x2d8)](_0x3ad404,_0x463b16,_0x5eca4f,_0x4b3ac3);}[_0x2ea0c4(0x1ff)](_0x318658,_0x5178b4,_0x292c71,_0x18a8f8){const _0x394a33=_0x2ea0c4;let _0x43f89e=this['_activeShapeModel'][_0x394a33(0x11d)]()[_0x394a33(0x134)],_0x3ac7e5={..._0x43f89e},_0x5ca5c2={'shapeId':_0x5178b4[_0x394a33(0x124)],'cxnIndex':_0x5178b4['cxnIndex']};_0x292c71?_0x3ac7e5[_0x394a33(0x11b)]=_0x5ca5c2:_0x3ac7e5['to']=_0x5ca5c2;let _0x1dee82=this[_0x394a33(0xf9)][_0x394a33(0x1b9)](),_0x382064=(0x0,_0x360390[_0x394a33(0x30c)])(_0x318658['worldPoints'],_0x1dee82),_0x567a8b={'unitId':this[_0x394a33(0x434)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x394a33(0x1be)],'width':_0x318658['worldRect'][_0x394a33(0x1bf)],'height':_0x318658['worldRect'][_0x394a33(0x403)],'left':_0x318658[_0x394a33(0x41f)][_0x394a33(0x2b3)],'top':_0x318658[_0x394a33(0x41f)][_0x394a33(0x176)],'flipX':_0x318658['worldRect']['flipX']||!0x1,'flipY':_0x318658[_0x394a33(0x41f)][_0x394a33(0x30e)]||!0x1,'newAdjustValues':_0x382064['adjustValues'],'oldAdjustValues':_0x18a8f8,'oldRelation':_0x43f89e,'newRelation':_0x3ac7e5,'newLineType':_0x382064['lineType'],'oldLineType':_0x1dee82};this['_commandService'][_0x394a33(0x196)](_0x2cb023[_0x394a33(0x3e8)]['id'],_0x567a8b);}['_executeResizeCommand'](_0x4a0df4,_0x4f8c3a){const _0x392f69=_0x2ea0c4;let _0x5846b5=this[_0x392f69(0xf9)][_0x392f69(0x1b9)](),_0x3df336=(0x0,_0x360390[_0x392f69(0x30c)])(_0x4a0df4['worldPoints'],_0x5846b5),_0x37a18b={'unitId':this['_unitId'],'subUnitId':this[_0x392f69(0x154)],'shapeId':this[_0x392f69(0x1be)],'width':_0x4a0df4['worldRect'][_0x392f69(0x1bf)],'height':_0x4a0df4[_0x392f69(0x41f)]['height'],'left':_0x4a0df4[_0x392f69(0x41f)]['left'],'top':_0x4a0df4[_0x392f69(0x41f)][_0x392f69(0x176)],'flipX':_0x4a0df4['worldRect']['flipX']||!0x1,'flipY':_0x4a0df4[_0x392f69(0x41f)][_0x392f69(0x30e)]||!0x1,'angle':_0x4a0df4['worldRect'][_0x392f69(0x2a0)]||0x0,'newAdjustValues':_0x3df336[_0x392f69(0x217)],'oldAdjustValues':_0x4f8c3a,'newLineType':_0x3df336[_0x392f69(0x37c)],'oldLineType':_0x5846b5};this[_0x392f69(0x3d4)][_0x392f69(0x196)](_0x2cb023[_0x392f69(0x348)]['id'],_0x37a18b);}['_executeConnectedRouteConnectionCommand'](_0x57058e,_0x5b917a,_0x1616d5,_0x562997,_0x36bbdc){const _0x3ff2d5=_0x2ea0c4;let _0x940f65=this[_0x3ff2d5(0xf9)][_0x3ff2d5(0x11d)]()[_0x3ff2d5(0x134)],_0xbc6d5d={..._0x940f65},_0x48ff97={'shapeId':_0x5b917a['shapeId'],'cxnIndex':_0x5b917a[_0x3ff2d5(0x159)]};_0x562997?(_0xbc6d5d[_0x3ff2d5(0x11b)]=_0x48ff97,_0xbc6d5d['to']=_0x1616d5):(_0xbc6d5d[_0x3ff2d5(0x11b)]=_0x1616d5,_0xbc6d5d['to']=_0x48ff97);let _0x31d5b5={'unitId':this[_0x3ff2d5(0x434)],'subUnitId':this[_0x3ff2d5(0x154)],'connectorShapeId':this[_0x3ff2d5(0x1be)],'width':_0x57058e['worldRect']['width'],'height':_0x57058e[_0x3ff2d5(0x41f)][_0x3ff2d5(0x403)],'left':_0x57058e[_0x3ff2d5(0x41f)][_0x3ff2d5(0x2b3)],'top':_0x57058e[_0x3ff2d5(0x41f)][_0x3ff2d5(0x176)],'flipX':_0x57058e[_0x3ff2d5(0x41f)][_0x3ff2d5(0x17a)]||!0x1,'flipY':_0x57058e[_0x3ff2d5(0x41f)][_0x3ff2d5(0x30e)]||!0x1,'oldAdjustValues':_0x36bbdc,'newAdjustValues':_0x57058e[_0x3ff2d5(0x217)],'newLineType':_0x57058e['lineType'],'rotation':_0x57058e[_0x3ff2d5(0x3fd)],'oldRelation':_0x940f65,'newRelation':_0xbc6d5d};this[_0x3ff2d5(0x3d4)][_0x3ff2d5(0x196)](_0x2cb023[_0x3ff2d5(0x3e8)]['id'],_0x31d5b5);}[_0x2ea0c4(0x2d8)](_0x1625b0,_0x1577f7,_0x5a8931,_0x52be39){const _0x2dfce0=_0x2ea0c4;let _0x2e032f=this[_0x2dfce0(0xf9)]['getShapeData']()[_0x2dfce0(0x134)],_0x3352a5={};_0x5a8931?(_0x3352a5['to']=_0x1577f7,_0x3352a5[_0x2dfce0(0x11b)]=void 0x0):(_0x3352a5['from']=_0x1577f7,_0x3352a5['to']=void 0x0);let _0x5dcdb3={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x2dfce0(0x1be)],'width':_0x1625b0[_0x2dfce0(0x41f)][_0x2dfce0(0x1bf)],'height':_0x1625b0[_0x2dfce0(0x41f)][_0x2dfce0(0x403)],'left':_0x1625b0['worldRect'][_0x2dfce0(0x2b3)],'top':_0x1625b0[_0x2dfce0(0x41f)][_0x2dfce0(0x176)],'flipX':_0x1625b0[_0x2dfce0(0x41f)]['flipX']||!0x1,'flipY':_0x1625b0[_0x2dfce0(0x41f)][_0x2dfce0(0x30e)]||!0x1,'oldAdjustValues':_0x52be39,'newAdjustValues':_0x1625b0[_0x2dfce0(0x217)],'newLineType':_0x1625b0[_0x2dfce0(0x37c)],'rotation':_0x1625b0[_0x2dfce0(0x3fd)],'oldRelation':_0x2e032f,'newRelation':_0x3352a5};this[_0x2dfce0(0x3d4)]['executeCommand'](_0x2cb023[_0x2dfce0(0x3e8)]['id'],_0x5dcdb3);}['_attachConnectorObjectEvent'](_0x40b792,_0x2ca506,_0x52c88e){const _0x463045=_0x2ea0c4;this[_0x463045(0x3c0)]((0x0,_0x3fe9b6[_0x463045(0x1c4)])(_0x40b792['onPointerDown$'][_0x463045(0x1d2)]((_0xaf775,_0x4cd07f)=>{const _0x1728bb=_0x463045;let _0x2ed540=_0x40b792[_0x1728bb(0x14e)]();if(this['_activeShapeModel']=this[_0x1728bb(0x25b)][_0x1728bb(0x252)](_0x2ed540[_0x1728bb(0x429)],_0x2ed540[_0x1728bb(0x3aa)],_0x2ed540['drawingId']),!this['_activeShapeModel'])return;let _0x403ae8={};this[_0x1728bb(0xf9)][_0x1728bb(0x395)]()[_0x1728bb(0x31b)](_0x3f5bcc=>{const _0xaecc4b=_0x1728bb;let _0x5df295=this['_activeShapeModel'][_0xaecc4b(0x1a7)](_0x3f5bcc);_0x5df295!==void 0x0&&(_0x403ae8[_0x3f5bcc]=_0x5df295);});let _0x2b1497=this[_0x1728bb(0x251)]();if(!_0x2b1497)return;this[_0x1728bb(0x1f7)]={..._0x2b1497};let _0x5990d4=new _0x360390[(_0x1728bb(0x3c9))](this[_0x1728bb(0x1f7)]),_0x354db3=(0x0,_0xcd0f0e[_0x1728bb(0x1f8)])({'unitId':this['_unitId'],'subUnitId':this[_0x1728bb(0x154)],'drawingId':this['_activeShapeId']}),_0x69b9f3=_0x2ca506[_0x1728bb(0x432)](_0x354db3);this[_0x1728bb(0x1b1)]=!0x0,_0x2ca506[_0x1728bb(0x286)](),this[_0x1728bb(0x379)]['startConnectionDetection'](_0x2ca506,this[_0x1728bb(0x434)],this[_0x1728bb(0x154)],this[_0x1728bb(0x1be)]),this[_0x1728bb(0x24a)]=null;let _0x5b9fdd=this[_0x1728bb(0xf9)]['getConnectorLinePoints'](),_0x54c2be=_0x5b9fdd[0x0],_0x3ee75d=_0x5b9fdd[_0x5b9fdd[_0x1728bb(0x111)]-0x1],_0x1d6827=_0x52c88e?_0x5990d4[_0x1728bb(0x3a7)](_0x3ee75d):_0x5990d4['localToWorld'](_0x54c2be);this[_0x1728bb(0x207)]=_0x2ca506[_0x1728bb(0x2a7)]['subscribeEvent']((_0x5fb738,_0x521ef1)=>{const _0x143547=_0x1728bb;if(!this[_0x143547(0x1b1)]||!this[_0x143547(0xf9)])return;this['_hasReset']||(this[_0x143547(0x352)][_0x143547(0x3cb)](),this[_0x143547(0xf9)]['clearAdjustValue'](),this[_0x143547(0x38a)]=!0x0);let _0x481327=this[_0x143547(0x2e0)](this[_0x143547(0x434)],this[_0x143547(0x154)]),_0x27bd3d=this[_0x143547(0x388)](this[_0x143547(0x434)],this[_0x143547(0x154)]),_0x58894e={'x':_0x5fb738[_0x143547(0x248)]/_0x27bd3d+_0x481327['x'],'y':_0x5fb738[_0x143547(0x2e3)]/_0x27bd3d+_0x481327['y']},_0x12434e=this['_sheetBasicShapeConnectionPointController'][_0x143547(0x370)](_0x58894e);if(_0x12434e){let {shapeId:_0x265a0b,unitId:_0x4bf54f,subUnitId:_0x45e130}=_0x12434e;if(_0x265a0b&&_0x4bf54f&&_0x45e130){let _0x6486c1=(0x0,_0xcd0f0e['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x4bf54f,'subUnitId':_0x45e130,'drawingId':_0x265a0b});_0x12434e['angle']=(_0x2ca506[_0x143547(0x432)](_0x6486c1)['angle']||0x0)+_0x12434e[_0x143547(0x2a0)];}}this[_0x143547(0x24a)]=_0x12434e;let _0x21657e=_0x52c88e?this[_0x143547(0xf9)][_0x143547(0x16a)]():this['_activeShapeModel'][_0x143547(0x1a3)]();if(_0x21657e){this[_0x143547(0x273)](_0x21657e,_0x58894e,_0x52c88e,_0x69b9f3,_0x40b792);return;}this[_0x143547(0x2f2)](_0x58894e,_0x1d6827,_0x52c88e,_0x69b9f3,_0x40b792);}),this[_0x1728bb(0x1fa)]=_0x2ca506['onPointerUp$'][_0x1728bb(0x1d2)]((_0x2d59f5,_0x4f5737)=>{const _0x96680f=_0x1728bb;this[_0x96680f(0x1c3)](_0x2ca506,_0x1d6827,_0x2d59f5,_0x52c88e,_0x403ae8);}),_0x4cd07f['stopPropagation']();})));}['_handleBasicShapeUpdateConnectorLineShape'](_0x43084c,_0x591d23,_0x2fd051){const _0xc2edb9=_0x2ea0c4;let _0x428427=this[_0xc2edb9(0x25b)][_0xc2edb9(0x123)](_0x43084c,_0x591d23,_0x2fd051);if(!_0x428427||_0x428427[_0xc2edb9(0x111)]===0x0)return;let _0x394037=this[_0xc2edb9(0x200)]['getRenderById'](_0x43084c);if(!_0x394037)return;let {scene:_0x2e5f49}=_0x394037;for(let _0x2987e8 of _0x428427){let _0x25d744=_0x2987e8[_0xc2edb9(0x41a)],_0x518bb9=this[_0xc2edb9(0x25b)][_0xc2edb9(0x252)](_0x43084c,_0x591d23,_0x25d744);if(!_0x518bb9)continue;let _0x3a586c=_0x518bb9[_0xc2edb9(0x1a3)](),_0x716a53=_0x518bb9[_0xc2edb9(0x16a)](),_0x7333b3=(_0x3a586c==null?void 0x0:_0x3a586c['shapeId'])===_0x2fd051,_0x3a97e4=(0x0,_0xcd0f0e[_0xc2edb9(0x1f8)])({'unitId':_0x43084c,'subUnitId':_0x591d23,'drawingId':_0x25d744}),_0x559671=_0x2e5f49[_0xc2edb9(0x432)](_0x3a97e4);if(!_0x559671)continue;let _0x47b64d=this[_0xc2edb9(0x275)][_0xc2edb9(0x3e3)]({'unitId':_0x43084c,'subUnitId':_0x591d23,'drawingId':_0x25d744});_0x47b64d!=null&&_0x47b64d[_0xc2edb9(0x3ec)]&&(_0x3a586c&&_0x716a53?this[_0xc2edb9(0x439)](_0x43084c,_0x591d23,_0x25d744,_0x518bb9,_0x3a586c,_0x716a53,_0x559671):this[_0xc2edb9(0x3e1)](_0x43084c,_0x591d23,_0x25d744,_0x518bb9,_0x7333b3?_0x3a586c:_0x716a53,_0x7333b3,_0x47b64d,_0x559671));}}[_0x2ea0c4(0x439)](_0x50b79d,_0x3597b2,_0x36f3e2,_0x48c9c3,_0x46f3ba,_0x3c14af,_0x1ead91){const _0x3c3437=_0x2ea0c4;let _0x498e5d=this[_0x3c3437(0x434)],_0x58d767=this['_subUnitId'];this[_0x3c3437(0x434)]=_0x50b79d,this[_0x3c3437(0x154)]=_0x3597b2;let _0x26cb4c=this['_getConnectPointInfo'](_0x46f3ba),_0x116c53=this['_getConnectPointInfo'](_0x3c14af);if(this[_0x3c3437(0x434)]=_0x498e5d,this[_0x3c3437(0x154)]=_0x58d767,!_0x26cb4c||!_0x116c53)return;let _0x27fc85=_0x48c9c3[_0x3c3437(0x1b9)](),_0x1056cb=(0x0,_0x360390[_0x3c3437(0x219)])(_0x26cb4c,_0x116c53,_0x27fc85);_0x1056cb&&_0x48c9c3[_0x3c3437(0x34d)](_0x1056cb);let _0x31d791=(0x0,_0x360390['computeConnectorRouteLayout'])(_0x1056cb,_0x27fc85);_0x31d791[_0x3c3437(0x37c)]!==_0x27fc85&&_0x48c9c3[_0x3c3437(0x100)](_0x31d791[_0x3c3437(0x37c)]),_0x48c9c3['clearAdjustValue']();for(let [_0x3d2d96,_0x50033d]of Object['entries'](_0x31d791['adjustValues']))_0x48c9c3[_0x3c3437(0x3df)](_0x3d2d96,_0x50033d);_0x48c9c3[_0x3c3437(0x21d)]({'width':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x1bf)],'height':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x403)]}),_0x1ead91[_0x3c3437(0x413)]({'flipX':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x17a)],'flipY':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x30e)],'left':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x2b3)],'top':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x176)],'width':_0x31d791['worldRect'][_0x3c3437(0x1bf)],'height':_0x31d791[_0x3c3437(0x41f)][_0x3c3437(0x403)],'angle':_0x31d791['rotation']}),_0x48c9c3[_0x3c3437(0x2c2)]();}[_0x2ea0c4(0x3e1)](_0x212d91,_0x4d10ee,_0x11abab,_0x193eea,_0xa88a56,_0x54ea93,_0x2bd92b,_0x548af4){const _0x4170a1=_0x2ea0c4;let _0x47b096=this[_0x4170a1(0x434)],_0x2eb6ee=this[_0x4170a1(0x154)];this['_unitId']=_0x212d91,this['_subUnitId']=_0x4d10ee;let _0xd45339=this[_0x4170a1(0x237)](_0xa88a56);if(this[_0x4170a1(0x434)]=_0x47b096,this[_0x4170a1(0x154)]=_0x2eb6ee,!_0xd45339)return;let {left:_0x508bdd=0x0,top:_0x28ba90=0x0,width:_0x4f2abc=0x0,height:_0x36fdf6=0x0,flipX:_0x39c02=!0x1,flipY:_0x336ce4=!0x1}=_0x2bd92b[_0x4170a1(0x3ec)],_0x5319e3=_0x193eea[_0x4170a1(0x284)]();if(_0x5319e3['length']<0x2)return;let _0x478e18=new _0x360390[(_0x4170a1(0x3c9))]({'left':_0x508bdd,'top':_0x28ba90,'width':_0x4f2abc,'height':_0x36fdf6,'flipX':_0x39c02,'flipY':_0x336ce4}),_0x3702b6=_0x54ea93?_0x5319e3[_0x5319e3[_0x4170a1(0x111)]-0x1]:_0x5319e3[0x0],_0xb0f51e=_0x478e18[_0x4170a1(0x3a7)](_0x3702b6),_0x5ad11f=_0x360390[_0x4170a1(0x3c9)][_0x4170a1(0x37e)](_0xb0f51e,_0xd45339[_0x4170a1(0x127)],!_0x54ea93);_0x548af4[_0x4170a1(0x413)]({'flipX':_0x5ad11f[_0x4170a1(0x41f)][_0x4170a1(0x17a)],'flipY':_0x5ad11f[_0x4170a1(0x41f)][_0x4170a1(0x30e)],'left':_0x5ad11f[_0x4170a1(0x41f)]['left'],'top':_0x5ad11f[_0x4170a1(0x41f)]['top'],'width':_0x5ad11f['worldRect'][_0x4170a1(0x1bf)],'height':_0x5ad11f[_0x4170a1(0x41f)][_0x4170a1(0x403)],'angle':_0x5ad11f['worldRect'][_0x4170a1(0x2a0)]}),_0x548af4[_0x4170a1(0x1d4)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x2093c6=_0x2ea0c4;this[_0x2093c6(0x268)][_0x2093c6(0x111)]!==0x0&&(this['_connectorObjects'][_0x2093c6(0x31b)](_0x490eb1=>{const _0x2bb447=_0x2093c6;_0x490eb1[_0x2bb447(0x14f)]();}),this[_0x2093c6(0x268)]=[]);}[_0x2ea0c4(0x262)](){const _0x167071=_0x2ea0c4;let _0x419656=this[_0x167071(0x2ba)][_0x167071(0x1e8)](_0x3fe9b6['UniverInstanceType'][_0x167071(0x430)]);this[_0x167071(0x3c0)](_0x419656['pipe']((0x0,_0x14dd2b[_0x167071(0x298)])(_0x359be9=>_0x359be9?_0x359be9[_0x167071(0x3b0)]['pipe']((0x0,_0x14dd2b[_0x167071(0x298)])(_0x56c569=>{const _0x1d4114=_0x167071;if(!_0x56c569)return _0x14dd2b[_0x1d4114(0x29d)];let _0x5051ee=_0x359be9[_0x1d4114(0x2b5)](),_0x4bc239=this['_renderManagerService'][_0x1d4114(0x425)](_0x5051ee),_0x48db09=_0x4bc239==null?void 0x0:_0x4bc239[_0x1d4114(0x373)];return _0x48db09?(0x0,_0x14dd2b['of'])(_0x48db09):_0x14dd2b[_0x1d4114(0x29d)];})):_0x14dd2b['EMPTY']))[_0x167071(0x15f)](_0x505762=>{const _0x51df57=_0x167071;let _0x4db518=_0x505762[_0x51df57(0x279)]();this[_0x51df57(0x3c0)](_0x505762[_0x51df57(0x2a7)][_0x51df57(0x1d2)](_0x5c76be=>{const _0x38c16d=_0x51df57;this['_isDrawingShapePointDown']&&this['_activeShapeId']&&this[_0x38c16d(0x250)]();})),this[_0x51df57(0x3c0)](_0x4db518['changeStart$'][_0x51df57(0x15f)](_0x4c479e=>{const _0x218196=_0x51df57;let {objects:_0x31a350}=_0x4c479e;this[_0x218196(0x250)](),_0x31a350!==null&&_0x31a350[_0x218196(0x347)]===0x1&&_0x31a350[_0x218196(0x38e)]()[_0x218196(0x234)]()[_0x218196(0x2e8)]instanceof _0x2264dd&&(this[_0x218196(0x3d0)]=!0x0);})),this[_0x51df57(0x3c0)](_0x4db518['changing$'][_0x51df57(0x15f)](_0xd96de6=>{const _0x22ffd2=_0x51df57;this[_0x22ffd2(0x3d0)]&&this[_0x22ffd2(0x250)]();})),this['disposeWithMe'](_0x505762[_0x51df57(0x239)][_0x51df57(0x1d2)](()=>{const _0x3a3ae1=_0x51df57;this[_0x3a3ae1(0x3d0)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x3a3ae1(0x39d)]());})),this['disposeWithMe'](_0x4db518[_0x51df57(0x10b)][_0x51df57(0x15f)](()=>{const _0x5580b6=_0x51df57;this['_unitId']&&this[_0x5580b6(0x154)]&&this[_0x5580b6(0x1be)]&&this['_drawingManagerService'][_0x5580b6(0x3e3)]({'unitId':this[_0x5580b6(0x434)],'subUnitId':this[_0x5580b6(0x154)],'drawingId':this[_0x5580b6(0x1be)]})&&(this[_0x5580b6(0x250)](),this[_0x5580b6(0x39d)]());}));}));}[_0x2ea0c4(0x31f)](){const _0x340f01=_0x2ea0c4;this[_0x340f01(0x3c0)](this[_0x340f01(0x275)][_0x340f01(0x3be)][_0x340f01(0x15f)](_0x2643ab=>{const _0x192d50=_0x340f01;if(_0x2643ab['length']===0x1){let _0x153235=_0x2643ab[0x0];if(_0x153235[_0x192d50(0x19a)]===_0x3fe9b6[_0x192d50(0x225)][_0x192d50(0x1d9)]){let _0x45f6ef=this[_0x192d50(0x25b)]['getShapeModel'](_0x153235[_0x192d50(0x429)],_0x153235[_0x192d50(0x3aa)],_0x153235[_0x192d50(0x215)]);if(_0x45f6ef&&(0x0,_0x360390[_0x192d50(0x295)])(_0x45f6ef[_0x192d50(0x1b9)]())){this['_activeShapeId']=_0x153235[_0x192d50(0x215)],this['_unitId']=_0x153235[_0x192d50(0x429)],this[_0x192d50(0x154)]=_0x153235[_0x192d50(0x3aa)],this[_0x192d50(0x250)](),this[_0x192d50(0x39d)]();return;}}}this[_0x192d50(0x1be)]=void 0x0,this[_0x192d50(0x434)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x192d50(0x250)]();})),this[_0x340f01(0x3c0)](this[_0x340f01(0x275)][_0x340f01(0x3a8)][_0x340f01(0x15f)](_0x4aee0f=>{const _0x146d5c=_0x340f01;if(_0x4aee0f[_0x146d5c(0x111)]===0x1){var _0x5d9635;let _0x59cd=_0x4aee0f[0x0],_0x38a60b=(_0x5d9635=this[_0x146d5c(0x275)]['getDrawingByParam'](_0x59cd))==null?void 0x0:_0x5d9635[_0x146d5c(0x19a)];_0x38a60b===_0x3fe9b6[_0x146d5c(0x225)][_0x146d5c(0x1d9)]&&_0x59cd[_0x146d5c(0x215)]===this[_0x146d5c(0x1be)]?(this[_0x146d5c(0x250)](),this[_0x146d5c(0x39d)]()):!this['_activeShapeId']&&_0x38a60b===_0x3fe9b6[_0x146d5c(0x225)][_0x146d5c(0x1d9)]&&this[_0x146d5c(0x33c)](_0x59cd[_0x146d5c(0x429)],_0x59cd[_0x146d5c(0x3aa)],_0x59cd[_0x146d5c(0x215)]);}})),this[_0x340f01(0x3c0)](this[_0x340f01(0x275)]['remove$'][_0x340f01(0x15f)](_0x433a9f=>{const _0x4fbcc3=_0x340f01;for(let _0x571b31 of _0x433a9f){let {drawingId:_0x4521cf}=_0x571b31;if(this[_0x4fbcc3(0x1be)]===_0x4521cf){this[_0x4fbcc3(0x107)]();return;}}}));}['_handleConnectedEndpointMove'](_0x54a420,_0x482f57,_0x23760f,_0x525bf9,_0x3ac4a4){const _0xfac313=_0x2ea0c4;var _0xcae20,_0x20aa56;if(!this[_0xfac313(0xf9)])return;let _0x32669b=this[_0xfac313(0x237)](_0x54a420);if(!_0x32669b)return;let _0x253c95=this[_0xfac313(0x24a)]?this[_0xfac313(0x24a)][_0xfac313(0x34e)]:_0x482f57,_0x3d490c=this[_0xfac313(0x24a)]?this['_currentConnectionTarget'][_0xfac313(0x2a0)]:this['_calculateFreeEndpointAngle'](_0x32669b['point'],_0x253c95),_0x998b32;if(this[_0xfac313(0x24a)]){let _0xf976ad=this[_0xfac313(0x275)][_0xfac313(0x3e3)]({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0xfac313(0x24a)][_0xfac313(0x3aa)],'drawingId':this['_currentConnectionTarget']['shapeId']});if(_0xf976ad!=null&&_0xf976ad['transform']){let {left:_0x31c2e2=0x0,top:_0x3a3ff1=0x0,width:_0x26cc89=0x0,height:_0x1b580a=0x0,angle:_0x2d55b1}=_0xf976ad[_0xfac313(0x3ec)];_0x998b32=(0x0,_0x360390[_0xfac313(0x364)])({'left':_0x31c2e2,'top':_0x3a3ff1,'width':_0x26cc89,'height':_0x1b580a},_0x2d55b1||0x0);}else _0x998b32={'left':_0x253c95['x'],'top':_0x253c95['y'],'width':0x0,'height':0x0};}else _0x998b32={'left':_0x253c95['x'],'top':_0x253c95['y'],'width':0x0,'height':0x0};let _0x13fac0={'point':_0x253c95,'angle':_0x3d490c,'bounds':_0x998b32},_0x555141=_0x23760f?_0x13fac0:_0x32669b,_0x441c37=_0x23760f?_0x32669b:_0x13fac0,_0x154047=this[_0xfac313(0xf9)][_0xfac313(0x1b9)](),_0x10a0f2=(0x0,_0x360390[_0xfac313(0x219)])(_0x555141,_0x441c37,_0x154047);_0x10a0f2&&this[_0xfac313(0xf9)][_0xfac313(0x34d)](_0x10a0f2);let _0x5ce22f=(0x0,_0x360390[_0xfac313(0x30c)])(_0x10a0f2,_0x154047);_0x5ce22f[_0xfac313(0x37c)]!==_0x154047&&this[_0xfac313(0xf9)][_0xfac313(0x100)](_0x5ce22f['lineType']);for(let [_0x8e3c18,_0x4eb411]of Object[_0xfac313(0x132)](_0x5ce22f[_0xfac313(0x217)]))this[_0xfac313(0xf9)]['setAdjustValueByName'](_0x8e3c18,_0x4eb411);this['_activeShapeModel'][_0xfac313(0x21d)]({'width':_0x5ce22f[_0xfac313(0x41f)][_0xfac313(0x1bf)],'height':_0x5ce22f[_0xfac313(0x41f)][_0xfac313(0x403)]}),_0x525bf9[_0xfac313(0x413)]({'flipX':_0x5ce22f[_0xfac313(0x41f)]['flipX'],'flipY':_0x5ce22f[_0xfac313(0x41f)][_0xfac313(0x30e)],'left':_0x5ce22f['worldRect'][_0xfac313(0x2b3)],'top':_0x5ce22f['worldRect'][_0xfac313(0x176)],'width':_0x5ce22f['worldRect'][_0xfac313(0x1bf)],'height':_0x5ce22f[_0xfac313(0x41f)][_0xfac313(0x403)],'angle':_0x5ce22f['rotation']}),_0x525bf9[_0xfac313(0x1d4)](!0x0);let _0x8aa95c=(_0xcae20=(_0x20aa56=this[_0xfac313(0x24a)])==null?void 0x0:_0x20aa56[_0xfac313(0x34e)])==null?_0x482f57:_0xcae20;_0x3ac4a4[_0xfac313(0x413)]({'left':_0x8aa95c['x']-_0x360390[_0xfac313(0x18d)][_0xfac313(0x20a)],'top':_0x8aa95c['y']-_0x360390[_0xfac313(0x18d)][_0xfac313(0x20a)]});}[_0x2ea0c4(0x2f2)](_0x3d950a,_0x5d442f,_0x99434f,_0x3236d6,_0x1f3d6b){const _0x3101c0=_0x2ea0c4;var _0x13639b,_0x4bc9dc,_0x2913dd,_0x3743b5;let _0x3c30a3=(_0x13639b=(_0x4bc9dc=this[_0x3101c0(0x24a)])==null?void 0x0:_0x4bc9dc[_0x3101c0(0x34e)])==null?_0x3d950a:_0x13639b,_0x26d369=_0x360390[_0x3101c0(0x3c9)]['computeConnectorResizeLayout'](_0x5d442f,_0x3c30a3,_0x99434f);_0x3236d6[_0x3101c0(0x413)]({'flipX':_0x26d369[_0x3101c0(0x41f)][_0x3101c0(0x17a)],'flipY':_0x26d369[_0x3101c0(0x41f)][_0x3101c0(0x30e)],'left':_0x26d369[_0x3101c0(0x41f)][_0x3101c0(0x2b3)],'top':_0x26d369['worldRect'][_0x3101c0(0x176)],'width':_0x26d369[_0x3101c0(0x41f)]['width'],'height':_0x26d369['worldRect']['height'],'angle':_0x26d369['worldRect']['angle']});let _0x332b58=(_0x2913dd=(_0x3743b5=this[_0x3101c0(0x24a)])==null?void 0x0:_0x3743b5[_0x3101c0(0x34e)])==null?_0x3d950a:_0x2913dd;_0x1f3d6b[_0x3101c0(0x413)]({'left':_0x332b58['x']-_0x360390[_0x3101c0(0x18d)][_0x3101c0(0x20a)],'top':_0x332b58['y']-_0x360390['ShapeDefaultConfig'][_0x3101c0(0x20a)]});}[_0x2ea0c4(0x237)](_0x249a63){const _0x20cd7b=_0x2ea0c4;if(!this[_0x20cd7b(0x434)]||!this['_subUnitId'])return null;let {shapeId:_0x4ce966,cxnIndex:_0x3278bd}=_0x249a63,_0x2de1f4=this[_0x20cd7b(0x25b)][_0x20cd7b(0x252)](this[_0x20cd7b(0x434)],this['_subUnitId'],_0x4ce966);if(!_0x2de1f4)return null;let _0x3a736a=this[_0x20cd7b(0x275)][_0x20cd7b(0x3e3)]({'unitId':this[_0x20cd7b(0x434)],'subUnitId':this['_subUnitId'],'drawingId':_0x4ce966});if(!(_0x3a736a!=null&&_0x3a736a[_0x20cd7b(0x3ec)]))return null;let {left:_0x3cd3dd=0x0,top:_0x95632=0x0,width:_0x4203a0=0x0,height:_0x467407=0x0,flipX:_0x41a65a=!0x1,flipY:_0x3798e9=!0x1,angle:_0x5a212c}=_0x3a736a[_0x20cd7b(0x3ec)];_0x2de1f4[_0x20cd7b(0x21d)]({'width':_0x4203a0,'height':_0x467407});let _0x50bfdd=_0x2de1f4[_0x20cd7b(0x1b0)]()[_0x20cd7b(0x40b)](_0x27115e=>_0x27115e[_0x20cd7b(0x247)]===_0x3278bd);if(!_0x50bfdd)return null;let _0xdaebef=_0x41a65a?_0x4203a0-_0x50bfdd['x']:_0x50bfdd['x'],_0x44a8a1=_0x3798e9?_0x467407-_0x50bfdd['y']:_0x50bfdd['y'];if(_0x5a212c!==0x0&&_0x5a212c!=null){let _0x2acd6b=_0x5a212c*Math['PI']/0xb4,_0x28815b=Math['cos'](_0x2acd6b),_0x590c0a=Math[_0x20cd7b(0x2a2)](_0x2acd6b),_0x98e4cc=_0x4203a0/0x2,_0x3f903f=_0x467407/0x2,_0x5d977a=_0xdaebef-_0x98e4cc,_0x4acf1a=_0x44a8a1-_0x3f903f;_0xdaebef=_0x98e4cc+_0x5d977a*_0x28815b-_0x4acf1a*_0x590c0a,_0x44a8a1=_0x3f903f+_0x5d977a*_0x590c0a+_0x4acf1a*_0x28815b;}_0xdaebef+=_0x3cd3dd,_0x44a8a1+=_0x95632;let _0x264f6b=_0x50bfdd[_0x20cd7b(0x240)]/0xea60;_0x41a65a&&(_0x264f6b=0xb4-_0x264f6b),_0x3798e9&&(_0x264f6b=-_0x264f6b),_0x264f6b+=_0x5a212c||0x0,_0x264f6b=(_0x264f6b%0x168+0x168)%0x168;let _0x421feb=(0x0,_0x360390['getBasicShapeRotateBound'])({'left':_0x3cd3dd,'top':_0x95632,'width':_0x4203a0,'height':_0x467407},_0x5a212c||0x0);return{'point':{'x':_0xdaebef,'y':_0x44a8a1},'angle':_0x264f6b,'bounds':_0x421feb};}[_0x2ea0c4(0x167)](_0x5e128c,_0x38c9e7){const _0x5a6618=_0x2ea0c4;let _0xcdaa62=_0x38c9e7['x']-_0x5e128c['x'],_0x3bf39c=_0x38c9e7['y']-_0x5e128c['y'];return Math[_0x5a6618(0x169)](_0xcdaa62)>=Math[_0x5a6618(0x169)](_0x3bf39c)?_0xcdaa62>=0x0?0xb4:0x0:_0x3bf39c>=0x0?0x10e:0x5a;}['_reset'](){const _0x3d55ef=_0x2ea0c4;this['_activeShapeId']=void 0x0,this[_0x3d55ef(0x434)]=void 0x0,this[_0x3d55ef(0x154)]=void 0x0,this[_0x3d55ef(0x250)]();}[_0x2ea0c4(0x14f)](){const _0x40f481=_0x2ea0c4;this[_0x40f481(0x250)](),super['dispose']();}};_0x4cd232=_0x20d714([_0x26d55f(0x1,_0x3fe9b6[_0x2ea0c4(0x2ec)]),_0x26d55f(0x2,_0x122d5a[_0x2ea0c4(0x238)]),_0x26d55f(0x3,_0xcd0f0e['IDrawingManagerService']),_0x26d55f(0x4,_0x3fe9b6[_0x2ea0c4(0x287)]),_0x26d55f(0x5,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2cb023[_0x2ea0c4(0x40f)])),_0x26d55f(0x6,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x17ed0c)),_0x26d55f(0x7,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x4fe1d3))],_0x4cd232);let _0xad1885=class extends _0x3fe9b6[_0x2ea0c4(0x16b)]{constructor(_0x14b890,_0x3a4c3a,_0xa89f5c){const _0x532339=_0x2ea0c4;super(),this[_0x532339(0x254)]=_0x14b890,this[_0x532339(0x275)]=_0x3a4c3a,this['_shapeRenderController']=_0xa89f5c,this[_0x532339(0x243)]();}['_initPrinting'](){const _0x357248=_0x2ea0c4;this['disposeWithMe'](this[_0x357248(0x254)][_0x357248(0x1f0)]['intercept'](this[_0x357248(0x254)][_0x357248(0x1f0)][_0x357248(0x1ad)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2a4e35,_0x58c9c7,_0x20ce50)=>{const _0x35cdc7=_0x357248;var _0x3df8b5;let {unitId:_0x430834,subUnitId:_0x36949c,scene:_0x45dd20,resourceCollector:_0x4078de}=_0x58c9c7,_0x136857=(_0x3df8b5=this[_0x35cdc7(0x275)]['getDrawingDataForUnit'](_0x430834))==null?void 0x0:_0x3df8b5[_0x36949c];return _0x136857==null||_0x136857[_0x35cdc7(0x2b7)]['forEach'](_0xea7d64=>{const _0x3e3126=_0x35cdc7;let _0x1c277a=_0x136857[_0x3e3126(0x369)][_0xea7d64];_0x1c277a[_0x3e3126(0x19a)]===_0x3fe9b6['DrawingTypeEnum'][_0x3e3126(0x1d9)]&&!_0x1c277a[_0x3e3126(0x31c)]&&this[_0x3e3126(0x150)][_0x3e3126(0x321)](_0x1c277a,_0x45dd20,{'resourceCollector':_0x4078de});}),_0x20ce50(_0x2a4e35);}}));}};_0xad1885=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x48ecbb[_0x2ea0c4(0x402)])),_0x26d55f(0x1,_0xcd0f0e['IDrawingManagerService']),_0x26d55f(0x2,(0x0,_0x3fe9b6['Inject'])(_0x3eccdb))],_0xad1885);let _0x5525dd=class extends _0x3fe9b6['Disposable']{constructor(_0x4a2cde,_0x26d921,_0x2d7591){const _0x13eab6=_0x2ea0c4;super(),this[_0x13eab6(0x3d4)]=_0x4a2cde,this[_0x13eab6(0x2e5)]=_0x26d921,this['_sheetPermissionCheckController']=_0x2d7591,this['_initPermission']();}[_0x2ea0c4(0x418)](){const _0x253829=_0x2ea0c4;this['disposeWithMe'](this[_0x253829(0x3d4)]['beforeCommandExecuted'](_0x3e47b6=>{const _0x43c663=_0x253829;let _0x36d29d,_0x18b111;if(_0x3e47b6['id']===_0x2cb023['InsertShapeCommand']['id']||_0x3e47b6['id']===_0x2cb023[_0x43c663(0x260)]['id']||_0x3e47b6['id']===_0x2cb023['UpdateConnectorRelationCommand']['id']){let _0x450c54=_0x3e47b6[_0x43c663(0x137)];_0x36d29d=_0x450c54['unitId'],_0x18b111=_0x450c54[_0x43c663(0x3aa)];}!_0x36d29d||!_0x18b111||this[_0x43c663(0x3e0)][_0x43c663(0x267)]({'workbookTypes':[_0x12af8f[_0x43c663(0x3b4)]],'worksheetTypes':[_0x12af8f['WorksheetEditPermission']]},_0x36d29d,_0x18b111)||this[_0x43c663(0x3e0)][_0x43c663(0x1d8)](this[_0x43c663(0x2e5)]['t'](_0x43c663(0x12e)));}));}};_0x5525dd=_0x20d714([_0x26d55f(0x0,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3fe9b6[_0x2ea0c4(0x2ec)])),_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3fe9b6[_0x2ea0c4(0x151)])),_0x26d55f(0x2,(0x0,_0x3fe9b6['Inject'])(_0x12af8f[_0x2ea0c4(0x232)]))],_0x5525dd);let _0x4f7037=class extends _0x3fe9b6['Disposable']{constructor(_0x278086,_0x4a84c0,_0x243d05,_0x3124a3,_0x4bbb78,_0x120c2d,_0x5861ad,_0x2da75f,_0x307525,_0x2c5a35,_0x5d652c){const _0x54c31b=_0x2ea0c4;super(),this[_0x54c31b(0x2ba)]=_0x278086,this['_sidebarService']=_0x4a84c0,this[_0x54c31b(0x1c9)]=_0x243d05,this[_0x54c31b(0x25b)]=_0x3124a3,this[_0x54c31b(0x2e5)]=_0x4bbb78,this[_0x54c31b(0x3d4)]=_0x120c2d,this[_0x54c31b(0x275)]=_0x5861ad,this[_0x54c31b(0x1e5)]=_0x2da75f,this[_0x54c31b(0x16e)]=_0x307525,this[_0x54c31b(0x200)]=_0x2c5a35,this[_0x54c31b(0x360)]=_0x5d652c,_0x144b44(this,_0x54c31b(0x199),null),_0x144b44(this,_0x54c31b(0x17c),null),_0x144b44(this,_0x54c31b(0x218),!0x1),_0x144b44(this,_0x54c31b(0x3cd),0x0),_0x144b44(this,_0x54c31b(0x2bf),new Set()),_0x144b44(this,_0x54c31b(0x1f3),[]),this[_0x54c31b(0x2c1)](),this[_0x54c31b(0x3c0)](this[_0x54c31b(0x2ba)][_0x54c31b(0x1e8)](_0x3fe9b6[_0x54c31b(0x1df)]['UNIVER_SHEET'])[_0x54c31b(0x15f)](_0x4ef7e5=>{const _0x20094c=_0x54c31b;if(!_0x4ef7e5){var _0x102807;(_0x102807=this[_0x20094c(0x199)])==null||_0x102807['dispose']();return;}this[_0x20094c(0x42b)](_0x4ef7e5);})),this[_0x54c31b(0x281)](),this[_0x54c31b(0x36d)](),this[_0x54c31b(0x3f6)](),this['disposeWithMe'](this[_0x54c31b(0x360)][_0x54c31b(0x3c2)][_0x54c31b(0x15f)](_0x2e0143=>{const _0x507aad=_0x54c31b;_0x2e0143&&this[_0x507aad(0x30f)]();}));}[_0x2ea0c4(0x2c1)](){const _0x333208=_0x2ea0c4;this['_menuManagerService'][_0x333208(0x3d8)](_0x247894);}['_registerShapeMenu'](){const _0x41d084=_0x2ea0c4;this[_0x41d084(0x1e5)][_0x41d084(0x22e)](_0x3fe9b6[_0x41d084(0x225)]['DRAWING_SHAPE'],this[_0x41d084(0x241)][_0x41d084(0x153)](this)),this[_0x41d084(0x1e5)]['registerFeatureMenuOffset'](_0x3fe9b6[_0x41d084(0x225)][_0x41d084(0x1d9)],0x6,0x4);}[_0x2ea0c4(0x3f6)](){const _0x79b6c6=_0x2ea0c4;this[_0x79b6c6(0x2ba)][_0x79b6c6(0x288)](_0x3fe9b6[_0x79b6c6(0x1df)]['UNIVER_SHEET'])[_0x79b6c6(0x31b)](_0x107904=>this[_0x79b6c6(0x42b)](_0x107904));}[_0x2ea0c4(0x241)](_0x437df5,_0xd2cb46,_0xe53fd7,_0x149875){const _0x5a6b41=_0x2ea0c4;return[{'label':'sheets-shape-ui.openPanel','index':0x0,'commandId':_0xe5dd06['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'drawingId':_0xe53fd7},'disable':_0x149875===_0x3fe9b6['DrawingTypeEnum']['DRAWING_DOM']},{'label':_0x5a6b41(0x361),'index':0x1,'commandId':_0x1ba3d5['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x437df5,'drawings':[{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'drawingId':_0xe53fd7,'drawingType':_0x149875}]},'disable':!0x1},{'label':_0x5a6b41(0x344),'index':0x2,'commandId':_0x43882a['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'drawingId':_0xe53fd7},'disable':!0x1},{'label':_0x5a6b41(0x34a),'index':0x3,'commandId':_0x2cb023['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'shapeId':_0xe53fd7,'flipH':!0x0},'disable':!0x1},{'label':_0x5a6b41(0x324),'index':0x4,'commandId':_0x2cb023[_0x5a6b41(0x1ed)]['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'shapeId':_0xe53fd7,'flipV':!0x0},'disable':!0x1},{'label':_0x5a6b41(0x15e),'index':0x4,'commandId':_0x2cb023[_0x5a6b41(0x3c4)]['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'shapeId':_0xe53fd7,'rotate':0x5a},'disable':!0x1},{'label':_0x5a6b41(0x422),'index':0x4,'commandId':_0x2cb023[_0x5a6b41(0x3c4)]['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'shapeId':_0xe53fd7,'rotate':-0x5a},'disable':!0x1},{'label':_0x5a6b41(0x13b),'index':0x4,'commandId':_0x2cb023[_0x5a6b41(0x399)]['id'],'commandParams':{'unitId':_0x437df5,'subUnitId':_0xd2cb46,'shapeId':_0xe53fd7},'disable':!0x1}];}['_getShapeInfo'](_0x31a367,_0x3d43c2,_0x2e2add){const _0xf4b1ec=_0x2ea0c4;let _0x305301=this[_0xf4b1ec(0x25b)][_0xf4b1ec(0x158)](_0x31a367,_0x3d43c2,_0x2e2add),_0x2398db=this[_0xf4b1ec(0x25b)]['getShapeDataById'](_0x31a367,_0x3d43c2,_0x2e2add);return _0x305301!==void 0x0&&_0x2398db!==void 0x0?{'shapeData':_0x2398db,'shapeId':_0x2e2add,'shapeType':_0x305301,'unitId':_0x31a367,'subUnitId':_0x3d43c2,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x2ea0c4(0x42b)](_0x3b2092){const _0x9c0d9c=_0x2ea0c4;if(!_0x3b2092)return;let _0x44dde4=_0x3b2092[_0x9c0d9c(0x2b5)]();this[_0x9c0d9c(0x200)][_0x9c0d9c(0x1fb)](_0x44dde4)&&!this[_0x9c0d9c(0x2bf)]['has'](_0x44dde4)&&(this[_0x9c0d9c(0x2a3)](_0x44dde4),this[_0x9c0d9c(0x2bf)][_0x9c0d9c(0x323)](_0x44dde4));}[_0x2ea0c4(0x30f)](){const _0x243ef7=_0x2ea0c4;this[_0x243ef7(0x1f3)]['forEach'](_0x4182b8=>_0x4182b8['dispose']()),this['_disposePopups'][_0x243ef7(0x111)]=0x0;}[_0x2ea0c4(0x2a3)](_0x31e96b){const _0x586d9e=_0x2ea0c4;var _0x37a971;let _0x5a594d=(_0x37a971=this[_0x586d9e(0x200)][_0x586d9e(0x425)](_0x31e96b))==null?void 0x0:_0x37a971['scene'],_0x13bde1=_0x5a594d==null?void 0x0:_0x5a594d[_0x586d9e(0x279)]();!_0x5a594d||!_0x13bde1||(this[_0x586d9e(0x3c0)](_0x13bde1['createControl$'][_0x586d9e(0x15f)](()=>{const _0x4a5ba7=_0x586d9e;let _0x12a597=_0x13bde1['getSelectedObjectMap']();if(this['_clearPopups'](),this[_0x4a5ba7(0x218)]||_0x12a597[_0x4a5ba7(0x347)]>0x1)return;let _0x1307d6=_0x12a597['values']()['next']()['value'];if(!_0x1307d6)return;let _0x1f0bcd=this[_0x4a5ba7(0x275)][_0x4a5ba7(0x345)](_0x1307d6[_0x4a5ba7(0x1a0)]);if(!_0x1f0bcd||_0x1f0bcd[_0x4a5ba7(0x19a)]!==_0x3fe9b6[_0x4a5ba7(0x225)][_0x4a5ba7(0x1d9)])return;let {unitId:_0x1f5699,subUnitId:_0x53cfd0,drawingId:_0x3f857b,drawingType:_0x2e2708}=_0x1f0bcd,_0x27cfb3=this['_getShapeInfo'](_0x1f5699,_0x53cfd0,_0x3f857b);if(!_0x27cfb3)return;this[_0x4a5ba7(0x16e)][_0x4a5ba7(0x1b5)](_0x3fe9b6['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x221744=this[_0x4a5ba7(0x1e5)][_0x4a5ba7(0x335)](_0x1307d6,{'componentKey':_0x414ec8,'direction':'top-center','offset':[0x0,_0x502542[_0x4a5ba7(0x29e)]],'extraProps':{'unitId':_0x1f5699,'subUnitId':_0x53cfd0,'drawingId':_0x3f857b,'drawingType':_0x2e2708,'shapeType':_0x27cfb3[_0x4a5ba7(0x3da)],'shapeData':_0x27cfb3['shapeData']}});this[_0x4a5ba7(0x1f3)][_0x4a5ba7(0x35c)](this[_0x4a5ba7(0x3c0)](_0x221744)),this[_0x4a5ba7(0x275)]['getFocusDrawings']()['find'](_0x4ec821=>_0x4ec821[_0x4a5ba7(0x429)]===_0x1f5699&&_0x4ec821['subUnitId']===_0x53cfd0&&_0x4ec821[_0x4a5ba7(0x215)]===_0x3f857b)||this[_0x4a5ba7(0x275)][_0x4a5ba7(0x223)]([{'unitId':_0x1f5699,'subUnitId':_0x53cfd0,'drawingId':_0x3f857b}]);})),this['disposeWithMe'](_0x13bde1[_0x586d9e(0x10c)][_0x586d9e(0x15f)](()=>{const _0x138944=_0x586d9e;this[_0x138944(0x30f)](),this[_0x138944(0x16e)][_0x138944(0x1b5)](_0x3fe9b6[_0x138944(0x114)],!0x1),this[_0x138944(0x275)][_0x138944(0x223)](null);})),this[_0x586d9e(0x3c0)](_0x13bde1['changing$'][_0x586d9e(0x15f)](()=>{const _0x4563af=_0x586d9e;this[_0x4563af(0x30f)]();})),this['disposeWithMe'](_0x13bde1[_0x586d9e(0x3d1)]['subscribe'](()=>{this['_clearPopups']();})));}['_registerOperations'](){const _0x43f39b=_0x2ea0c4;this['disposeWithMe'](this['_commandService'][_0x43f39b(0x23e)](_0xca970a=>{const _0x55cd78=_0x43f39b;if(_0xca970a['id']===_0xe5dd06['id']){let {unitId:_0xcee510,subUnitId:_0x55cc93,drawingId:_0x2cc467}=_0xca970a[_0x55cd78(0x137)];this[_0x55cd78(0x3cd)]+=0x1,this[_0x55cd78(0x17c)]=this[_0x55cd78(0x28f)](_0xcee510,_0x55cc93,_0x2cc467),this[_0x55cd78(0x30f)](),this[_0x55cd78(0x1ef)]();}if(_0xca970a['id']===_0x43882a['id']&&(this[_0x55cd78(0x17c)]=null,this['_closeShapeEditPanel']()),_0xca970a['id']===_0x2cb023[_0x55cd78(0x2d7)]['id']){let {unitId:_0x4b2c84,subUnitId:_0x2aab76,shapeId:_0x5223c0}=_0xca970a[_0x55cd78(0x137)];if(this[_0x55cd78(0x17c)]&&this['_activeShapeInfo'][_0x55cd78(0x124)]===_0x5223c0){let _0x3e4458=this[_0x55cd78(0x28f)](_0x4b2c84,_0x2aab76,_0x5223c0);_0x3e4458&&(this['_shapeEditPanelVersion']+=0x1,_0x3e4458[_0x55cd78(0x401)]=this[_0x55cd78(0x3cd)],this[_0x55cd78(0x17c)]=_0x3e4458,this['_isOpenedShapeEditPanel']&&this[_0x55cd78(0x1ef)]());}}})),this[_0x43f39b(0x3c0)](this[_0x43f39b(0x275)][_0x43f39b(0x3be)]['subscribe'](_0x17d878=>{const _0x3ff7c3=_0x43f39b;if(this[_0x3ff7c3(0x218)]===!0x1)return;if(_0x17d878['length']===0x0){this[_0x3ff7c3(0x17c)]=null,this['_closeShapeEditPanel']();return;}if(_0x17d878[_0x3ff7c3(0x111)]===0x1&&_0x17d878[0x0][_0x3ff7c3(0x19a)]===_0x3fe9b6[_0x3ff7c3(0x225)][_0x3ff7c3(0x1d9)]&&(this[_0x3ff7c3(0x3cd)]+=0x1,this[_0x3ff7c3(0x17c)]=this[_0x3ff7c3(0x28f)](_0x17d878[0x0][_0x3ff7c3(0x429)],_0x17d878[0x0][_0x3ff7c3(0x3aa)],_0x17d878[0x0]['drawingId']),this[_0x3ff7c3(0x17c)])){this['_openShapeEditPanel']();return;}let _0x555b21=_0x17d878['filter'](_0x51fb63=>_0x51fb63[_0x3ff7c3(0x19a)]===_0x3fe9b6[_0x3ff7c3(0x225)][_0x3ff7c3(0x1d9)]);if(_0x17d878[_0x3ff7c3(0x111)]>0x1&&_0x555b21[_0x3ff7c3(0x111)]===_0x17d878['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x3ff7c3(0x17c)]=this[_0x3ff7c3(0x28f)](_0x17d878[0x0][_0x3ff7c3(0x429)],_0x17d878[0x0][_0x3ff7c3(0x3aa)],_0x17d878[0x0][_0x3ff7c3(0x215)]),this[_0x3ff7c3(0x17c)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3ff7c3(0x28f)](_0x17d878[0x0]['unitId'],_0x17d878[0x0][_0x3ff7c3(0x3aa)],_0x17d878[0x0]['drawingId']),this[_0x3ff7c3(0x17c)]){this[_0x3ff7c3(0x17c)][_0x3ff7c3(0x42d)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x3ff7c3(0x400)]();}));}['_openShapeEditPanel'](){const _0x15e94d=_0x2ea0c4;this['_activeShapeInfo']&&(this[_0x15e94d(0x199)]=this[_0x15e94d(0x139)][_0x15e94d(0x292)]({'id':_0x1ad3e6,'header':{'title':this[_0x15e94d(0x2e5)]['t'](_0x15e94d(0x330))},'width':0x184,'children':{'label':_0x1ad3e6,...this[_0x15e94d(0x17c)]},'onClose':()=>{const _0x4492ad=_0x15e94d;this[_0x4492ad(0x275)][_0x4492ad(0x223)](null),this['_contextService'][_0x4492ad(0x1b5)](_0x3fe9b6[_0x4492ad(0x114)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x15e94d(0x218)]=!0x0);}[_0x2ea0c4(0x400)](){const _0x4e258e=_0x2ea0c4;this[_0x4e258e(0x218)]=!0x1,this[_0x4e258e(0x139)][_0x4e258e(0x1d7)](_0x1ad3e6),this['_sidebarDisposable']=null,this[_0x4e258e(0x16e)][_0x4e258e(0x1b5)](_0x3fe9b6[_0x4e258e(0x114)],!0x1),this['_drawingManagerService'][_0x4e258e(0x223)](null);}};_0x4f7037=_0x20d714([_0x26d55f(0x0,_0x3fe9b6[_0x2ea0c4(0x287)]),_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2b76f2['ISidebarService'])),_0x26d55f(0x2,_0x2b76f2[_0x2ea0c4(0x375)]),_0x26d55f(0x3,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x2cb023['SheetsShapeService'])),_0x26d55f(0x4,(0x0,_0x3fe9b6['Inject'])(_0x3fe9b6['LocaleService'])),_0x26d55f(0x5,_0x3fe9b6[_0x2ea0c4(0x2ec)]),_0x26d55f(0x6,_0xcd0f0e[_0x2ea0c4(0x3c8)]),_0x26d55f(0x7,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x48ecbb['SheetCanvasPopManagerService'])),_0x26d55f(0x8,_0x3fe9b6[_0x2ea0c4(0x3ed)]),_0x26d55f(0x9,_0x122d5a[_0x2ea0c4(0x238)]),_0x26d55f(0xa,(0x0,_0x3fe9b6['Inject'])(_0x383d16))],_0x4f7037);let _0x41deda=class extends _0x3fe9b6[_0x2ea0c4(0x316)]{constructor(_0x37ba3f=_0x4a6307,_0x8ad5be,_0x2a7b91,_0x142bf3,_0x5e13a8){const _0x2125f3=_0x2ea0c4;super(),this[_0x2125f3(0x177)]=_0x37ba3f,this[_0x2125f3(0x35f)]=_0x8ad5be,this[_0x2125f3(0x3d4)]=_0x2a7b91,this['_configService']=_0x142bf3,this[_0x2125f3(0x200)]=_0x5e13a8;let {..._0x56ae4f}=(0x0,_0x3fe9b6['merge'])({},_0x4a6307,this[_0x2125f3(0x177)]);this['_configService'][_0x2125f3(0x33d)](_0x2125f3(0x145),_0x56ae4f),this[_0x2125f3(0x2c7)]();}[_0x2ea0c4(0x142)](){const _0x47ffb6=_0x2ea0c4;(0x0,_0x3fe9b6[_0x47ffb6(0x310)])(this[_0x47ffb6(0x35f)],[[_0x4f7037],[_0x560525],[_0x3eccdb],[_0xad1885]]);}[_0x2ea0c4(0x11c)](){const _0x5b4e80=_0x2ea0c4;this[_0x5b4e80(0x35f)]['get'](_0x4f7037)['initShapePopupMenu']();}[_0x2ea0c4(0x3e6)](){const _0x50fe97=_0x2ea0c4;[[_0x4fe1d3],[_0x17ed0c],[_0x585fa5]][_0x50fe97(0x31b)](_0x44077d=>this[_0x50fe97(0x35f)][_0x50fe97(0x323)](_0x44077d)),(0x0,_0x3fe9b6[_0x50fe97(0x310)])(this['_injector'],[[_0x585fa5],[_0x17ed0c]]),this[_0x50fe97(0x200)][_0x50fe97(0x358)](_0x3fe9b6[_0x50fe97(0x1df)][_0x50fe97(0x430)],[_0x4fe1d3]),this[_0x50fe97(0x200)]['registerRenderModule'](_0x3fe9b6[_0x50fe97(0x1df)][_0x50fe97(0x430)],[_0x1717ef]),this['_renderManagerService'][_0x50fe97(0x358)](_0x3fe9b6[_0x50fe97(0x1df)][_0x50fe97(0x430)],[_0x4cd232]),this['_renderManagerService']['registerRenderModule'](_0x3fe9b6[_0x50fe97(0x1df)][_0x50fe97(0x430)],[_0x508c50]),this[_0x50fe97(0x200)]['registerRenderModule'](_0x3fe9b6[_0x50fe97(0x1df)][_0x50fe97(0x37a)],[_0x3abd37]);}['onStarting'](){const _0x3be870=_0x2ea0c4;this[_0x3be870(0x35f)][_0x3be870(0x323)]([_0x36f8a5]),this[_0x3be870(0x35f)]['get'](_0x36f8a5);let _0x14ef9e=this[_0x3be870(0x35f)];[[_0x4f7037],[_0x560525],[_0x3eccdb],[_0xad1885],[_0x2408bd],[_0x383d16],[_0x21c348],[_0x7de345],[_0x5525dd]][_0x3be870(0x31b)](_0x129d2e=>_0x14ef9e[_0x3be870(0x323)](_0x129d2e)),(0x0,_0x3fe9b6[_0x3be870(0x310)])(this[_0x3be870(0x35f)],[[_0x4f7037],[_0x560525],[_0x3eccdb],[_0x2408bd],[_0x383d16],[_0x21c348],[_0x7de345],[_0x5525dd]]);}[_0x2ea0c4(0x2c7)](){const _0x40e131=_0x2ea0c4;[_0x5e7a4e,_0x4a4f06,_0xd4b25,_0x18c74f,_0x441656,_0x41635b,_0xabf84b,_0x43882a,_0xe5dd06,_0xe06288,_0x53ad6d,_0x46cdb6][_0x40e131(0x31b)](_0x8ed05=>this[_0x40e131(0x3c0)](this[_0x40e131(0x3d4)]['registerCommand'](_0x8ed05)));}};_0x144b44(_0x41deda,_0x2ea0c4(0x1d5),_0x3fe9b6[_0x2ea0c4(0x1df)][_0x2ea0c4(0x430)]),_0x144b44(_0x41deda,'pluginName',_0x2ea0c4(0x166)),_0x144b44(_0x41deda,'packageName',_0x105126),_0x144b44(_0x41deda,_0x2ea0c4(0x401),_0x45f0cc),_0x41deda=_0x20d714([(0x0,_0x3fe9b6[_0x2ea0c4(0x43a)])(_0x86dc86[_0x2ea0c4(0x140)],_0x502542[_0x2ea0c4(0x3e7)],_0x20f931[_0x2ea0c4(0x213)],_0x2cb023[_0x2ea0c4(0x13d)]),_0x26d55f(0x1,(0x0,_0x3fe9b6[_0x2ea0c4(0x3ad)])(_0x3fe9b6[_0x2ea0c4(0x23c)])),_0x26d55f(0x2,_0x3fe9b6[_0x2ea0c4(0x2ec)]),_0x26d55f(0x3,_0x3fe9b6['IConfigService']),_0x26d55f(0x4,_0x122d5a['IRenderManagerService'])],_0x41deda),_0x4f45b0['SheetsShapeUIMenuSchema']=_0x247894,Object['defineProperty'](_0x4f45b0,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return _0x41deda;}});}));
1
+ function _0x5874(){const _0x2a6e11=['setOnSavingEditorData','SetDrawingArrangeCommand','close','_focusedDrawings','DRAWING_OBJECT_LAYER_INDEX','gdRefAng','SheetsShapeService','getSkeleton','getState','ancestorTransform','clone','onCommandExecuted','_clearShapeAdjustControls','stroke','hidden','SheetSkeletonService','VIEW_MAIN','getCurrentSkeleton','completeEditing','setShapeProps','sheet.shape.text.float-menu','entries','_draw','sheets-shape-ui.rotateRight90','SetDrawingApplyMutation','http://www.w3.org/2000/svg','from','None','gradientEndColor','cxnIndex','UniverProShapeEditorUi','SetDrawingSelectedOperation','rotation','getRenderById','targetShapeId','end','_sheetInterceptorService','_drawSimpleText','SheetPrintInterceptorService','viewportScrollY','drawWith','_clipService','touchDependencies','0\x200\x2016\x2016','UNIVER_DOC','_shapeId','_generateCutPasteMutations','_lastEditingShapeKey','IURLImageService','canvas','has','focusDrawing','_baseShapeTop','disposeWithMe','skeleton','cos','PictureFill','_clearConnectionSites','_registerShapeMenu','left','disableObjectsEvent','draw','top','UniverCore','getDrawingOKey','FromArray','clearControl$','_context','order','getDrawingEditable','getInterceptPoints','useObservable','discreteRangeToRange','index','createShapeTextBoxShapeData','_drawShapeText','fontFamily','#4285f4','@univerjs-pro/shape-editor-ui','getObjectListPanelSectionIdForDrawingType','COMMAND','oKey','@univerjs-pro/sheets-shape-ui','getTextModel','_activeAdjustInfo','height','#bcbcbc','InsertSheetsShapeMutation','UniverIcon','fillImageSource','chart','Circle','attachPopupToObject','@univerjs/sheets','_updateSrcRectByTransform','updateLinePoints','_index','UpdateConnectorRelationCommand','5111487nySOku','adjHandleFill','updateDocumentStyle','IUndoRedoService','ShapeLineTypeEnum','useDependency','Inject','path','DrawingCommonPanel','updateConnectionDetection','asObservable','SheetsShapeUIMenuSchema','_urlImageService','_cxnIndex','getInverseCoord','shape-adjust-point-','InsertShapeCommand','getDrawingSearch','activateDrawingObject','UniverInstanceType','RENDER_CLASS_TYPE','getDrawingShapeKeyByDrawingSearch','multiply','_executeConnectedRouteResizeCommand','_shapeTextEditingService','SheetsDrawingGroupCopyPasteController','interceptor','getCurrentScrollState','shapeId','clearAdjustControls','adjHandleSize','_getOrCreateShapeModel','VerticalAlign','getDrawingVisible','_cxtHandlerPointerMove','map','executeCommand','StraightConnector1','text','_sidebarService','_shapeUpdateListener','_shapes','DrawingApplyType','UniverProSheetsShape','_baseWidth','_cxtHandlerPointerUp','next','syncExecuteCommand','IImageIoService','onStarting','getUnit','_localeService','focus$','M1.33203\x205.40015C1.33203\x204.55622\x202.01618\x203.87207\x202.86011\x203.87207H10.5998C11.4437\x203.87207\x2012.1278\x204.55622\x2012.1278\x205.40015V13.1398C12.1278\x2013.9837\x2011.4437\x2014.6679\x2010.5998\x2014.6679H2.86011C2.01618\x2014.6679\x201.33203\x2013.9837\x201.33203\x2013.1398V5.40015ZM2.86011\x205.14217C2.71763\x205.14217\x202.60213\x205.25767\x202.60213\x205.40015V13.1398C2.60213\x2013.2823\x202.71763\x2013.3978\x202.86011\x2013.3978H10.5998C10.7422\x2013.3978\x2010.8577\x2013.2823\x2010.8577\x2013.1398V5.40015C10.8577\x205.25767\x2010.7422\x205.14217\x2010.5998\x205.14217H2.86011Z','_getScrollInfo','sheets-shape-ui.objectListPanel.open','DependentOn','fontSize','_openShapeEditPanel','plainShapeTextToDocumentData','@univerjs/drawing','version','addImageSourceCache','attrs','ComponentManager','_registerDrawingMoveHandler','sheet.shape.edit.panel','Rect','_registerOperations','UniverSheetsShapePlugin','isHighlighted','415199IkMtSP','UniverSheetsDrawingUIPlugin','subUnitId','sheet.image-clip.shape-picker.component','random','_isDrawingShapePointDown','clipHeight','SetShapeDrawingDataCommand','UniverSheetsDrawingUi','objects','clip-','shape','Disposable','vertical','DocCanvasPopManagerService','getBatchAddOp','getShapeTypeById','ISheetClipboardService','getImageSourceCache','DrawingRenderService','_currentScene','scale','getEndConnectInfo','_imageIoService','changeShapeType','restore','ConnectorCoordinateTransform','_shapeService','translateWithPrecision','_drawingType','_updateAdjustControlPositions','isHit','_config','DocumentViewModel','_popupMenuListener','deriveStateFromActiveSheet$','_reset','includes','INSERT','SHAPE_TEXT','setHighlighted','blockExecuteWithoutPermission','getAdjustValueByName','univer-box-border\x20univer-px-4\x20univer-text-sm','getCurrentTypeOfUnit$','drawingId','FOCUSING_SHAPE_TEXT_EDITOR','5565780ayLKsi','_iconManager','onPointerMove$','LocaleService','video','getImage','backward','complete','rxjs','top-center','evenodd','DRAWING_SMART_ART','ShapeEditPanel','PRINTING_COMPONENT_COLLECT','getObjectListPanelLabels','pick','UniverProEngineShape','DRAWING_CHART','value','_univerInstanceService','_registerImageShapeClipDelegate','_initEditingParams','@univerjs-pro/license','get','translate','sheetViewStartRow','ShapeModel','getParent','ToggleSheetsShapeFlipCommand','clipByShape','5idGjdA','_sheetSkeletonService','getTransformer','clipTop','contentVerticalOffset','getAdjustInfoByName','_registerDrawingFocusChangeHandler','_setTransForm','getAllUnitsForType','1em','_highlightedSiteIndex','_clearShapeConnectorHandlerObjects','_registerMoveHandler','default','_connectionSiteObjects','sheets-shape-ui.toggleFlipV','CommandType','_activeShapeInfo','getShapeType','stringify','src','register','HorizontalAlign','Image','push','DRAWING_TABLE','endArrow','sheet.command.menu-insert-shape','shapeText','_addShapeConnectorHandlerObjects','DRAWING_SHAPE','jsx','MenuItemType','start','angle','isCurvedConnectorShape','clip-adj-','use','getConnectorLinePoints','UniverProSheetsShapeUi','REMOVE','_drawingAddListener','gdRefX','sheets-shape-ui.config','_createShapePopupMenu','_commandService','sheets-shape-ui.insertShape','getAdjustNames','getActualSize','subscribeEvent','setCanUseShapeClip','_registerIcons','getRealBound','_executeConnectedRouteConnectionCommand','sheets-shape-ui.deleteShape','_sheetDrawingService','startArrow','getMenuHiddenObservable','changing$','_attachConnectorObjectEvent','updateDocumentDataMargin','scene','_handleBasicShapeUpdateConnectorLineShape','dispose','substring','_adjHandlerPointerMove','_initEvents','sectionCanvas','_showConnectionSites','SheetScrollManagerService','_generateCopyPasteMutations','getCurrentRangeDisable$','CUT','_initPermission','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_baseShapeWidth','CopySheetCommand','registerRenderModule','updateShapeFillImage','react/jsx-runtime','invert','342246vDaYxo','isHorizontal','cxnPointRadius','ShapeTypeEnum','_initializedShapePopupMenu','_activeShapeId','tag','editingParams$','horizontal','svg','calcAdjValue','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','refreshTransform','_handleFreeEndpointMove','localToWorld','xlink:href','1.0.0-alpha.5','_isShouldShowDrawingShapeAdjust','shape-text-','function','shapeType','currentColor','redo','sheets-shape-ui.rotateLeft90','packageName','DocSelectionRenderService','sheets-shape-ui.imagePanel.crop.shape','CopyDoubleIcon','_adjHandlerPointerUp','44292ZzbeRR','registerClipDelegate','cxnPointStrokeWidth','extraProps','SHEET_VIEWPORT_KEY','decorate','IDrawingManagerService','getObject','getSelectedObjectMap','lineShapeId','@univerjs/docs-ui','@univerjs/sheets-drawing-ui','setShouldShowAdjust','_initPrinting','RemoveSheetCommand','_getZoomRatio','useEffect','memo','length','params','shouldAllowShapeTextEditorHostSizeShrink','indexOf','getUnitId','1169MBjUVj','image-clip-adjust-point-','title','getFocusDrawings','_initCommands','add$','@univerjs/docs','worldPoint','parse','ShapeTextFloatMenuRenderControllerBase','DRAWING_VIDEO','getDrawingOrder','_handleConnectedEndpointMove','TOP','name','resolveShapeTextEditorWrapStrategy','getCurrentLastSelection','_sheetDrawingShapeRenderController','unsubscribe','CROSSHAIR','assign','FOCUSING_COMMON_DRAWINGS','getConnectionSiteList','remove$','sheets-shape-ui.objectListPanel.title','reverse','selectable','_transformCalculateSrcRect','ICommandService','keys','attachRangeWithCoord','toDisposable','_contextService','save','getBatchUpdateOp','SheetInterceptorService','onTransformChange$','abs','_drawRichText','UniverSheetsUi','getObjectIncludeInGroup','isInGroup','_activeTargetShapeId','offsetY','Line','ShapeRenderModeEnum','transform','_baseDrawingRect','Shape','onPointerUp$','_groupCopyPasteController','getViewportByCell','_shapeRenderController','_isOpenedShapeEditPanel','Vector2','cxnPointStroke','toString','UpdateSheetsShapeDataMutation','Arrow','axisAlignSheetTransform','jsxs','useMemo','_findNearestConnectionSite','_updateTransform','isLineShape','UniverLicensePlugin','_activeShapeModel','_baseLeft','setPrstGeom','changeEnd$','createControl$','values','open','rect','_getShapeInfo','_initialize','_updateShapeAdjustControls','sheetViewStartColumn','adjustValues','setSrcRect','ShapeDefaultConfig','adjHandleStroke','attachTransformerTo','clip','DEFAULT_PASTE','refreshAdjustControls','COPY_TYPE','transformToAxisAlignPosition','IConfigService','#FFFFFF','ShapeArrowTypeEnum','_registerFocusChangeHandler','current','width','GROUP','UniverEngineRender','_sheetBasicShapeConnectionPointController','colorChannel1','13998LGggFA','generateRandomId','_menuManagerService','create','Large','gdRefR','_isStartAdjusting','_disposePopups','sheets-shape-text-','computeConnectorResizeLayout','_hasReset','normalizeShapeTextModel','trim','exports','_imageShapeClipController','isRichText','lineType','onPointerDown$','prepareShapeTextDocumentData','@univerjs-pro/sheets-shape','RemoveSheetsShapeMutation','_renderManagerService','find','_activeAdjustPointList','pipe','_targetShapeId','size','sheets-shape-ui.formatShape','React','getShapeDataById','error','UPDATE','getCurrentUnitOfType','_executeResizeCommand','_onSavingEditorData$','isRenderLinePointsMode','_currentConnectionTarget','resetCursor','UNIVER_SHEET','wrapStrategy','useReducer','subscribe','strokeWidth','onRendered','_createControls','_getImagePrstGeom','@univerjs/engine-render','setPrstGeomAdjValues','_isImagePointerDown','SolidLine','_transform','_sheetsShapeService','refreshShapeFillImage','worldRect','SHAPE_EDITOR_TRANSFORMER_CONFIG','_registerComponents','_copyInfo','getDrawingDataForUnit','custom','getShapeData','_componentManager','getObjectListPanelTypeName','group','transformByState','LEFT','_getShapeAdjustInfosById','sheets-shape-ui.openPanel','set','isStartConnectorPoint','shapeData','featurePluginUpdateNotification','getStartConnectInfo','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','insertGroupObject','removeLinePoints','url(#$1','image','UniverSheets','useState','ShapeArrowSizeEnum','OPERATION','dataModel','_insertShapes','shapeKey','forward','flipY','contentHeight','SetSheetsShapeRotateCommand','interceptCommand','_updateImageAdjValues','PREDEFINED_HOOK_NAME','@univerjs-pro/engine-shape','_moveConnectorWithShape','_attachAdjustEvent','BehaviorSubject','drawingType','_initCopyPaste','_editingParams$','sheets-shape-ui','getShapeModel','routeConnectorLineShape','_sheetClipboardService','UniverDrawing','_adjName','some','mask','_init','_initMenu','DRAWING_IMAGE','getEditing','amd','getTransformerByCreate','sheet.shape.object-list.panel','@univerjs/drawing-ui','data','MEDIA','sheets-shape-ui.hidePanel','getConnectionInfo','_clearControls','getSheetCommandTarget','SheetSkeletonManagerService','_findShapeAtPoint','_sheetCanvasPopManagerService','getBentTypeFromPoints','ShapeTextFloatToolbar','_configService','computeStraightConnectorLayout','_baseShapeLeft','ArrangeTypeEnum','symbol','resize','object','SolidFill','worldPoints','ShapePickerPanel','onload','getZoomRatio','fillType','_activeImageId','endConnectionDetection','point','ISheetDrawingService','Observable','idSuffix','UniverDrawingUi','_injector','getBatchRemoveOp','undo','initShapePopupMenu','getSheetBySheetId','startX','sheetTransform','_addControl','_shapeEditPanelVersion','4FwEbNQ','_sidebarDisposable','@univerjs/sheets-ui','SELECTOR','_drawingManagerService','UniverSheetsDrawing','EMPTY','_baseShapeHeight','merge','activeAnObject','IUniverInstanceService','SetSheetDrawingCommand','unit','_getConnectionSiteAngle','activeSheet$','addObject','_clearPopups','constructor','11JSGyVW','cxnPointFill','_getSceneAndTransformerByDrawingSearch','_props','_executeConnectionCommand','gdRefY','_getDrawingRect','Transform','prstGeom','react','getSkeletonParam','shouldClipShapeTextDocument','initTransformer','_connectorObjects','VIEW_MAIN_LEFT_TOP','Medium','render','createElement','call','12420612ZlWTIh','_getImageDrawingInfo','URL','_insertingShapeKeys','startConnectionDetection','@univerjs/core','UniverShapeEditorUIPlugin','adjName','srcRect','highlighted','filter','children','UniverSheetsShapeUIPlugin','getBasicShapeRotateBound','_closeShapeEditPanel','visible','calculate','setAdjustValueByName','enableObjectsEvent','ShapeFillEnum','beginPath','setContextValue','_sheetPermissionCheckController','unitId','cancelEditing','beforeCommandExecuted','_sheetPrintInterceptorService','_initSheetChange','UniverDocsUi','marginTop','_baseHeight','permissionCheckWithoutRange','buildClipPath','relation','_calculateFreeEndpointAngle','isHitLine','isEditing','smartArt','_createShapeAdjustControls','defs','_addShapeConnectorHandlerObject','_subUnitId','string','forEach','DRAWING_GROUP','setConfig','toStringTag','IRenderManagerService','_initSelection','classType','flipX','CURSOR_TYPE','registerFeatureMenuOffset','transformToDrawingPosition','_activeShapeAdjustPointList','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','toPrimitive','8UwbDaJ','update$','IconManager','RibbonInsertGroup','UUID','SetSheetsShapeTextVerticalToggleCommand','type','RemoveSheetDrawingCommand','ImageSourceTypeEnum','DrawingTypeEnum','_baseTop','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','_draggingConnectorId','offsetX','defineProperty','isArray','changeStart$','Path','_createCopyInfoByRange','add','getShapePopupMenus','switchMap','setFillImage','connection-site-','_unitId','_currentUniverService','_handleConnectedEndpointPointerUp','_resetState','copyType','VIEW_MAIN_LEFT','mergeMenu','updateContext','getDrawingPoints','_getShapeAdjustPointListById','ShapePickerDropdown','div','ISidebarService','_isConnecting','popup','getDrawingData','getDrawingByParam','_loadAndSetImage','IContextService','clearAdjustValue','_getConnectPointInfo','stopPropagation','setEditing','#1a73e8','defIds','sin','pushUndoRedo','_generatePasteMutations','startY','delete','_isHighlighted','sheets-shape-ui.toggleFlipH','fill','with','renderDrawingShape','sqrt','isDrawingObject','_handleFreeEndpointPointerUp','_sheetShapeAdjustController','UniverProLicense','shapeModel','DRAWING_DOM','getMatrix','isConnectorShape','bind','makeDirty','resolveShapeTextEditorBehaviorShapeData','getShapeTextRect','computeConnectorRouteLayout','_handleConnectorPointerUp','DocSelectionManagerService','viewportScrollX','DocumentDataModel'];_0x5874=function(){return _0x2a6e11;};return _0x5874();}function _0x3642(_0x4759d9,_0x3a3277){_0x4759d9=_0x4759d9-0x188;const _0x5874b4=_0x5874();let _0x364244=_0x5874b4[_0x4759d9];return _0x364244;}(function(_0x428b9c,_0x12ee91){const _0x3c5148=_0x3642,_0x22d2fe=_0x428b9c();while(!![]){try{const _0x17e87a=parseInt(_0x3c5148(0x47f))/0x1+parseInt(_0x3c5148(0x32b))/0x2*(parseInt(_0x3c5148(0x1fb))/0x3)+parseInt(_0x3c5148(0x218))/0x4*(parseInt(_0x3c5148(0x1aa))/0x5)+parseInt(_0x3c5148(0x291))/0x6*(-parseInt(_0x3c5148(0x22f))/0x7)+parseInt(_0x3c5148(0x389))/0x8*(parseInt(_0x3c5148(0x438))/0x9)+parseInt(_0x3c5148(0x18c))/0xa+parseInt(_0x3c5148(0x33d))/0xb*(-parseInt(_0x3c5148(0x350))/0xc);if(_0x17e87a===_0x12ee91)break;else _0x22d2fe['push'](_0x22d2fe['shift']());}catch(_0x5a4eb0){_0x22d2fe['push'](_0x22d2fe['shift']());}}}(_0x5874,0x567f7),function(_0x511577,_0x3fbfa7){const _0x344650=_0x3642;typeof exports==_0x344650(0x314)&&typeof module<'u'?_0x3fbfa7(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor-ui'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require('rxjs'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/sheets-drawing-ui'),require('react'),require('@univerjs/sheets-drawing'),require('@univerjs/docs'),require('@univerjs/docs-ui')):typeof define==_0x344650(0x20e)&&define[_0x344650(0x2ff)]?define([_0x344650(0x29e),'@univerjs/ui',_0x344650(0x2ec),_0x344650(0x424),_0x344650(0x2a4),_0x344650(0x355),_0x344650(0x433),_0x344650(0x474),_0x344650(0x2bf),_0x344650(0x32d),'rxjs',_0x344650(0x302),_0x344650(0x1f9),_0x344650(0x1a2),_0x344650(0x223),_0x344650(0x346),'@univerjs/sheets-drawing',_0x344650(0x235),_0x344650(0x222)],_0x3fbfa7):(_0x511577=typeof globalThis<'u'?globalThis:_0x511577||self,_0x3fbfa7(_0x511577[_0x344650(0x1d1)]={},_0x511577['UniverUi'],_0x511577[_0x344650(0x19c)],_0x511577[_0x344650(0x3f4)],_0x511577[_0x344650(0x463)],_0x511577[_0x344650(0x415)],_0x511577[_0x344650(0x2de)],_0x511577[_0x344650(0x2f7)],_0x511577[_0x344650(0x28e)],_0x511577[_0x344650(0x256)],_0x511577[_0x344650(0x194)],_0x511577[_0x344650(0x321)],_0x511577[_0x344650(0x2ad)],_0x511577[_0x344650(0x3c8)],_0x511577[_0x344650(0x487)],_0x511577[_0x344650(0x2ad)],_0x511577[_0x344650(0x330)],_0x511577['UniverDocs'],_0x511577[_0x344650(0x36c)]));}(this,function(_0x4f30a0,_0x23402e,_0x8713ee,_0x2a5532,_0xe63f5c,_0xa2ae07,_0x2042f3,_0x2c1288,_0x5663a2,_0xe965b,_0x50bd3e,_0x5e919d,_0x1fa7e6,_0x3a0fb2,_0x300372,_0x437a9d,_0x3f4b55,_0x3ae947,_0x75d37d){const _0x30c533=_0x3642;Object[_0x30c533(0x397)](_0x4f30a0,Symbol[_0x30c533(0x37e)],{'value':'Module'});function _0x318ba4(_0x4b9813,_0x5dcef4){const _0x5ed359=_0x30c533;let _0xdab36e={};for(let _0x204232 of Object[_0x5ed359(0x24c)](_0x5dcef4)){let _0x395c1f=_0x5dcef4[_0x204232],_0x970c92=_0x4b9813[_0x204232];if(_0x395c1f!==void 0x0){if(_0x970c92===void 0x0){_0xdab36e[_0x204232]=void 0x0;continue;}typeof _0x395c1f==_0x5ed359(0x314)&&_0x395c1f&&!Array[_0x5ed359(0x398)](_0x395c1f)&&typeof _0x970c92==_0x5ed359(0x314)&&_0x970c92&&!Array[_0x5ed359(0x398)](_0x970c92)?_0xdab36e[_0x204232]=_0x318ba4(_0x970c92,_0x395c1f):_0xdab36e[_0x204232]=_0x970c92;}}return _0xdab36e;}let _0xc12450={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x426)],'id':'sheet.command.update-shape-data','handler':(_0x336ec0,_0x5a19d6)=>{const _0x2167b8=_0x30c533;let _0x45def7=_0x336ec0[_0x2167b8(0x1a3)](_0xe63f5c[_0x2167b8(0x3dc)]),{unitId:_0x3e6418,subUnitId:_0x508cdc,shapeType:_0x56db54,shapeId:_0x446a78,shapeData:_0x5e4a24,oldShapeJSON:_0x2f795f}=_0x5a19d6;if(!_0x45def7[_0x2167b8(0x2f4)](_0x3e6418,_0x508cdc,_0x446a78))return!0x1;let _0x398b39=_0x336ec0['get'](_0xa2ae07['ICommandService']),_0x4b6466=_0x336ec0[_0x2167b8(0x1a3)](_0xa2ae07[_0x2167b8(0x43b)]),{oldShapeType:_0x154799,oldShapeData:_0x3966ac={}}=_0x2f795f,_0x25e4c5=_0x318ba4(_0x3966ac,_0x5e4a24||{}),_0x1eb1c6={'id':_0xe63f5c[_0x2167b8(0x268)]['id'],'params':{'unitId':_0x3e6418,'subUnitId':_0x508cdc,'shapeId':_0x446a78,'shapeType':_0x56db54,'shapeData':_0x5e4a24}},_0x38d28b={'id':_0xe63f5c[_0x2167b8(0x268)]['id'],'params':{'unitId':_0x3e6418,'subUnitId':_0x508cdc,'shapeId':_0x446a78,'shapeType':_0x154799,'shapeData':_0x25e4c5}};return _0x398b39[_0x2167b8(0x467)](_0x1eb1c6['id'],_0x1eb1c6[_0x2167b8(0x22b)])?(_0x4b6466[_0x2167b8(0x3bb)]({'unitID':_0x3e6418,'undoMutations':[_0x38d28b],'redoMutations':[_0x1eb1c6]}),!0x0):!0x1;}};function _0x2a12a7(_0x1bef15,_0x554b6f,_0x23777d,_0x2b28f5,_0x29b530,_0x52eeb1){let _0x8702e7={'unitId':_0x554b6f,'subUnitId':_0x23777d,'shapeId':_0x2b28f5,'shapeData':_0x52eeb1,'oldShapeJSON':_0x29b530};return _0x1bef15['executeCommand'](_0xc12450['id'],_0x8702e7);}function _0x11404e(_0x16c001,_0x98d1b,_0x29bec0,_0x36366d,_0x3ed13c,_0x922001){let _0x28404f={'unitId':_0x98d1b,'subUnitId':_0x29bec0,'shapeId':_0x36366d,'shapeData':_0x922001,'oldShapeJSON':_0x3ed13c};return _0x16c001['executeCommand'](_0xc12450['id'],_0x28404f);}function _0x2ae425(_0x556b2c){'@babel/helpers - typeof';const _0x1a5dea=_0x30c533;return _0x2ae425=typeof Symbol==_0x1a5dea(0x20e)&&typeof Symbol['iterator']=='symbol'?function(_0x3c49b3){return typeof _0x3c49b3;}:function(_0x2133df){const _0x33f38f=_0x1a5dea;return _0x2133df&&typeof Symbol==_0x33f38f(0x20e)&&_0x2133df[_0x33f38f(0x33c)]===Symbol&&_0x2133df!==Symbol['prototype']?_0x33f38f(0x312):typeof _0x2133df;},_0x2ae425(_0x556b2c);}function _0x118e81(_0x53b5f6,_0x484584){const _0xcd5bab=_0x30c533;if(_0x2ae425(_0x53b5f6)!=_0xcd5bab(0x314)||!_0x53b5f6)return _0x53b5f6;var _0x30ec5a=_0x53b5f6[Symbol[_0xcd5bab(0x388)]];if(_0x30ec5a!==void 0x0){var _0x59ac32=_0x30ec5a[_0xcd5bab(0x34f)](_0x53b5f6,_0x484584||_0xcd5bab(0x1b7));if(_0x2ae425(_0x59ac32)!=_0xcd5bab(0x314))return _0x59ac32;throw TypeError(_0xcd5bab(0x1f4));}return(_0x484584===_0xcd5bab(0x37a)?String:Number)(_0x53b5f6);}function _0x42d4d1(_0xf1e209){var _0x48c0ab=_0x118e81(_0xf1e209,'string');return _0x2ae425(_0x48c0ab)=='symbol'?_0x48c0ab:_0x48c0ab+'';}function _0x54eac0(_0x21f5ef,_0xe5dc3,_0x57a498){const _0x525940=_0x30c533;return(_0xe5dc3=_0x42d4d1(_0xe5dc3))in _0x21f5ef?Object[_0x525940(0x397)](_0x21f5ef,_0xe5dc3,{'value':_0x57a498,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21f5ef[_0xe5dc3]=_0x57a498,_0x21f5ef;}function _0x5877ed(_0x4374cb,_0x12f80a,_0x1ad9c8){const _0x42f353=_0x30c533;var _0x5ecf83;let _0x22041f=(0x0,_0x2a5532[_0x42f353(0x3cf)])(_0x4374cb,{..._0x12f80a,'dataModel':{...(_0x5ecf83=_0x12f80a[_0x42f353(0x2e2)])==null?{}:_0x5ecf83,..._0x1ad9c8?{'doc':_0x1ad9c8}:null}}),_0x5742e6=(0x0,_0x2a5532[_0x42f353(0x23e)])(_0x22041f);return{'clip':(0x0,_0x2a5532[_0x42f353(0x348)])(_0x22041f,_0x5742e6),'wrapStrategy':_0x5742e6};}var _0x4da10f=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x54786a,_0x38ba39){const _0x18ad2b=_0x30c533;super(_0x54786a,_0x38ba39),_0x54eac0(this,_0x18ad2b(0x340),void 0x0),_0x54eac0(this,_0x18ad2b(0x24a),!0x0),_0x54eac0(this,_0x18ad2b(0x49c),_0xa2ae07[_0x18ad2b(0x392)]['DRAWING_SHAPE']),_0x54eac0(this,_0x18ad2b(0x3c5),!0x0),this[_0x18ad2b(0x340)]={..._0x38ba39},this[_0x18ad2b(0x2fb)]();}[_0x30c533(0x2fb)](){const _0x21b5a0=_0x30c533;this[_0x21b5a0(0x253)][_0x21b5a0(0x1db)](_0x2d11dc=>{this['_updateSrcRectByTransform'](_0x2d11dc);});}[_0x30c533(0x273)](_0x2879e0){const _0x32adb1=_0x30c533;this[_0x32adb1(0x340)][_0x32adb1(0x345)]=_0x2879e0;}[_0x30c533(0x3b7)](_0x258994){const _0x3d542a=_0x30c533;this['_props'][_0x3d542a(0x374)]=_0x258994,this['makeDirty'](!0x0);}get['unitId'](){return this['_props']['unitId'];}get[_0x30c533(0x481)](){const _0xc82682=_0x30c533;return this[_0xc82682(0x340)][_0xc82682(0x481)];}[_0x30c533(0x434)](_0xbd401b){const _0x368f86=_0x30c533;if(this[_0x368f86(0x340)]['srcRect']==null||!this[_0x368f86(0x24a)])return;let {width:_0x53c3d2,height:_0x252dc7}=this,{width:_0x1fb480=0x0,height:_0x34442f=0x0}=_0xbd401b['preValue'],{left:_0x4161b9=0x0,top:_0x44c1bc=0x0,right:_0x4ca845=0x0,bottom:_0x31d169=0x0}=this[_0x368f86(0x340)][_0x368f86(0x358)],_0x1f04f5=_0x4161b9,_0x57d301=_0x44c1bc,_0x908b53=_0x4ca845,_0x53ec24=_0x31d169,_0x5619e9=!0x1;if(_0x1fb480!==0x0&&_0x1fb480!==_0x53c3d2){let _0x270737=_0x4161b9/_0x1fb480,_0x58c00d=_0x4ca845/_0x1fb480;_0x1f04f5=_0x53c3d2*_0x270737,_0x908b53=_0x53c3d2*_0x58c00d,_0x5619e9=!0x0;}if(_0x34442f!==0x0&&_0x34442f!==_0x252dc7){let _0x5a775a=_0x44c1bc/_0x34442f,_0x2ee8a8=_0x31d169/_0x34442f;_0x57d301=_0x252dc7*_0x5a775a,_0x53ec24=_0x252dc7*_0x2ee8a8,_0x5619e9=!0x0;}_0x5619e9&&this[_0x368f86(0x27e)]({'left':_0x1f04f5,'top':_0x57d301,'right':_0x908b53,'bottom':_0x53ec24});}[_0x30c533(0x27e)](_0xe7d901){const _0x4d78c7=_0x30c533;this[_0x4d78c7(0x340)][_0x4d78c7(0x358)]=_0xe7d901,this[_0x4d78c7(0x3ce)](!0x0);}['setFillImage'](_0xadf6c0){const _0x290bfe=_0x30c533;this[_0x290bfe(0x340)][_0x290bfe(0x2dd)]=_0xadf6c0,this['makeDirty'](!0x0);}set[_0x30c533(0x25d)](_0x20f5c3){this['_transform']=_0x20f5c3;}get[_0x30c533(0x25d)](){const _0x140e89=_0x30c533;this[_0x140e89(0x2c3)]||this[_0x140e89(0x1b1)]();let _0x211985=this[_0x140e89(0x2c3)][_0x140e89(0x3e0)]();return this['transformForAngle'](_0x211985);}get[_0x30c533(0x3c9)](){const _0x41e9e1=_0x30c533;return this[_0x41e9e1(0x340)][_0x41e9e1(0x3c9)];}get[_0x30c533(0x454)](){const _0x2bdac1=_0x30c533;return this[_0x2bdac1(0x340)][_0x2bdac1(0x454)];}get[_0x30c533(0x381)](){const _0x88fd91=_0x30c533;return _0x5663a2[_0x88fd91(0x44c)]['SHAPE'];}['_draw'](_0x339647,_0x571dd1,_0x422cb5,_0x107999){const _0x4bfcdc=_0x30c533;let _0x2e8e15=this['_props'][_0x4bfcdc(0x3c9)];if(!_0x2e8e15||!_0x571dd1)return;let _0x1a15a3=_0x422cb5==null?this['width']:_0x422cb5,_0x4109f1=_0x107999==null?this[_0x4bfcdc(0x42b)]:_0x107999,_0x24f040={'shapeType':_0x2e8e15['getShapeType'](),'width':_0x1a15a3,'height':_0x4109f1},_0x176769={'renderMode':_0x8713ee[_0x4bfcdc(0x25c)][_0x4bfcdc(0x39a)],'oKey':this[_0x4bfcdc(0x427)],'image':this[_0x4bfcdc(0x340)][_0x4bfcdc(0x2dd)],'angle':this['angle']};_0x2e8e15[_0x4bfcdc(0x3a8)](_0x24f040),_0x339647[_0x4bfcdc(0x250)]();let _0x4e71f2={'top':0x0,'left':0x0,'width':_0x1a15a3,'height':_0x4109f1};_0x2e8e15['render'](_0x339647,_0x4e71f2,_0x176769),_0x339647['restore']();let _0x32c3f8=_0x2e8e15['getShapeTextData'](),_0x278423=_0x2e8e15[_0x4bfcdc(0x3d0)](_0x4e71f2),_0x146e8c=_0x2e8e15[_0x4bfcdc(0x26f)]();if(_0x32c3f8&&_0x278423&&!_0x146e8c){_0x339647[_0x4bfcdc(0x250)](),this['getState']()['flipX']&&_0x339647[_0x4bfcdc(0x494)](-0x1,0x1);let _0x361ad0=_0x1a15a3/0x2,_0x3b63a3=_0x4109f1/0x2;_0x339647[_0x4bfcdc(0x1a4)](-_0x361ad0,-_0x3b63a3),_0x339647['beginPath'](),this['_drawShapeText'](_0x339647,_0x32c3f8,_0x278423),_0x339647[_0x4bfcdc(0x498)]();}}[_0x30c533(0x3a9)](_0x3f1f8b){}[_0x30c533(0x421)](_0x432feb,_0x415dff,_0x4bbe04){const _0x337e19=_0x30c533;var _0xa948d1;this[_0x337e19(0x340)][_0x337e19(0x374)]||(!((_0xa948d1=_0x415dff['dataModel'])!=null&&_0xa948d1['doc'])&&_0x337e19(0x2a0)in _0x415dff&&_0x415dff[_0x337e19(0x2a0)]===!0x1?this[_0x337e19(0x3fb)](_0x432feb,_0x415dff,_0x4bbe04):this['_drawRichText'](_0x432feb,_0x415dff,_0x4bbe04));}[_0x30c533(0x3fb)](_0x20eb7d,_0x1722e4,_0xe135dc){const _0x21834d=_0x30c533;var _0x73f4a2;this[_0x21834d(0x255)](_0x20eb7d,{..._0x1722e4,'text':(_0x73f4a2=_0x1722e4[_0x21834d(0x45e)])==null?'':_0x73f4a2,'dataModel':{'doc':(0x0,_0x2a5532[_0x21834d(0x473)])(_0x1722e4,_0x21834d(0x299)+this[_0x21834d(0x427)])}},_0xe135dc);}['_drawRichText'](_0x569788,_0xa8a9c5,_0x4f1bce){const _0x5a88a8=_0x30c533;var _0x438b58,_0x3b5532;let _0x36f1c8=this[_0x5a88a8(0x340)]['localeService'];if(!_0xa8a9c5[_0x5a88a8(0x2e2)]||!_0x36f1c8)return;let _0x38cb2d=(0x0,_0x2a5532[_0x5a88a8(0x29c)])(_0xa8a9c5[_0x5a88a8(0x2e2)]);if(!_0x38cb2d)return;let _0x406083=_0x38cb2d['doc'];if(!_0x406083)return;let _0x5c8ab1=(_0x438b58=_0x38cb2d['va'])==null?_0xa2ae07[_0x5a88a8(0x458)][_0x5a88a8(0x23c)]:_0x438b58,_0x678dc3=(_0x3b5532=_0x38cb2d['ha'])==null?_0xa2ae07[_0x5a88a8(0x1c0)][_0x5a88a8(0x2d1)]:_0x3b5532,_0x67e407=_0x5877ed(this[_0x5a88a8(0x340)][_0x5a88a8(0x3c9)]['getShapeData'](),_0xa8a9c5,_0x406083),_0x97838f=_0xa8a9c5[_0x5a88a8(0x1fc)],_0x2ac7b7=new _0xa2ae07[(_0x5a88a8(0x3d5))]((0x0,_0x2a5532[_0x5a88a8(0x2a3)])(_0x406083,{'isHorizontal':_0x97838f!==!0x1,'textRect':_0x4f1bce,'verticalAlign':_0x5c8ab1,'horizontalAlign':_0x678dc3,'wrapStrategy':_0x67e407[_0x5a88a8(0x2b8)]})),_0x36f918=new _0x5663a2[(_0x5a88a8(0x4a0))](_0x2ac7b7),_0x207d68=_0x5663a2['DocumentSkeleton'][_0x5a88a8(0x294)](_0x36f918,_0x36f1c8);_0x207d68[_0x5a88a8(0x360)]();let _0x1f3ec6=_0x207d68[_0x5a88a8(0x1da)]()['actualHeight'],_0x89fa80=(0x0,_0x2a5532['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x1f3ec6,'verticalAlign':_0x5c8ab1,'viewportHeight':_0x4f1bce['height']});_0x2ac7b7[_0x5a88a8(0x43a)]({'pageSize':{'width':_0x97838f===!0x1?_0x4f1bce[_0x5a88a8(0x42b)]:_0x4f1bce[_0x5a88a8(0x28c)],'height':_0x89fa80[_0x5a88a8(0x2e7)]}}),_0x2ac7b7[_0x5a88a8(0x1e6)]({'t':_0x89fa80[_0x5a88a8(0x36d)]}),_0x207d68[_0x5a88a8(0x360)]();let _0x5c830d=new _0x5663a2['Documents'](_0x5a88a8(0x20d)+this[_0x5a88a8(0x427)],_0x207d68,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5a88a8(0x3ce)](!0x0)});_0x5c830d[_0x5a88a8(0x313)](_0x4f1bce['width'],_0x89fa80[_0x5a88a8(0x2e7)]),_0x569788[_0x5a88a8(0x250)](),_0x569788[_0x5a88a8(0x49b)](_0x4f1bce[_0x5a88a8(0x411)],_0x4f1bce[_0x5a88a8(0x414)]),_0x67e407[_0x5a88a8(0x282)]&&(_0x569788[_0x5a88a8(0x364)](),_0x569788[_0x5a88a8(0x278)](0x0,_0x89fa80[_0x5a88a8(0x1ad)],_0x4f1bce[_0x5a88a8(0x28c)],_0x89fa80[_0x5a88a8(0x485)]),_0x569788['clip']()),_0x89fa80['contentVerticalOffset']&&_0x569788['translateWithPrecision'](0x0,_0x89fa80[_0x5a88a8(0x1ae)]),_0x5c830d[_0x5a88a8(0x413)](_0x569788),_0x569788[_0x5a88a8(0x498)](),_0x5c830d[_0x5a88a8(0x1e9)](),_0x207d68[_0x5a88a8(0x1e9)](),_0x36f918[_0x5a88a8(0x1e9)](),_0x2ac7b7[_0x5a88a8(0x1e9)]();}[_0x30c533(0x34d)](_0x5636a8,_0x4d7120,_0x37c4bd=!0x1){const _0x4bd2ac=_0x30c533;if(!this[_0x4bd2ac(0x35f)])return this[_0x4bd2ac(0x3ce)](!0x1),this;let {width:_0x148776,height:_0x7b2eb2,left:_0x133eeb,top:_0x94433b}=this,_0x19aa35=this[_0x4bd2ac(0x1de)]();if(_0x148776=_0x19aa35[_0x4bd2ac(0x28c)],_0x7b2eb2=_0x19aa35[_0x4bd2ac(0x42b)],_0x133eeb=_0x19aa35['left'],_0x94433b=_0x19aa35[_0x4bd2ac(0x414)],this['isRender'](_0x4d7120)){let {top:_0x335bb0,left:_0xe8d201,bottom:_0x54d046,right:_0x111b3e}=_0x4d7120['viewBound'];if(_0x148776+this[_0x4bd2ac(0x2bb)]+_0x133eeb<_0xe8d201||_0x111b3e<_0x133eeb||_0x7b2eb2+this[_0x4bd2ac(0x2bb)]+_0x94433b<_0x335bb0||_0x54d046<_0x94433b)return this;}let _0x44fd05=_0x133eeb+_0x148776/0x2,_0x233b27=_0x94433b+_0x7b2eb2/0x2,_0x1e817f=this['transform'][_0x4bd2ac(0x3cb)]();if(this[_0x4bd2ac(0x340)]['isEditing']){let _0x5665dc=this[_0x4bd2ac(0x3de)](),_0x4ff717=new _0x5663a2[(_0x4bd2ac(0x344))]();_0x4ff717['composeMatrix']({..._0x5665dc}),_0x1e817f=_0x4ff717[_0x4bd2ac(0x3cb)]();}return _0x5636a8[_0x4bd2ac(0x250)](),this[_0x4bd2ac(0x340)][_0x4bd2ac(0x3c9)][_0x4bd2ac(0x2b4)]===!0x0||_0x5636a8['transform'](_0x1e817f[0x0],_0x1e817f[0x1],_0x1e817f[0x2],_0x1e817f[0x3],_0x44fd05,_0x233b27),this['_draw'](_0x5636a8,_0x4d7120,_0x148776,_0x7b2eb2),_0x5636a8['restore'](),this[_0x4bd2ac(0x3ce)](!0x1),this;}[_0x30c533(0x446)](_0x42d9b1){const _0x2587a2=_0x30c533;let {left:_0x2a4c21,top:_0x2fa6b9,width:_0x5bdb1d,height:_0xe59e1e}=this[_0x2587a2(0x1de)](),_0x6fbd3c=this['transform'][_0x2587a2(0x3cb)](),_0x4315b7=_0x2a4c21+_0x5bdb1d/0x2,_0x546110=_0x2fa6b9+_0xe59e1e/0x2,_0x40d247=new _0x5663a2['Transform']([_0x6fbd3c[0x0],_0x6fbd3c[0x1],_0x6fbd3c[0x2],_0x6fbd3c[0x3],_0x4315b7,_0x546110]),_0x3d3af8=this[_0x2587a2(0x1a7)]();return(this['isInGroup']&&(_0x3d3af8==null?void 0x0:_0x3d3af8[_0x2587a2(0x381)])===_0x5663a2[_0x2587a2(0x44c)][_0x2587a2(0x28d)]?_0x3d3af8[_0x2587a2(0x3df)][_0x2587a2(0x44e)](_0x40d247):_0x40d247)[_0x2587a2(0x1fa)]()['applyPoint'](_0x42d9b1);}[_0x30c533(0x49e)](_0x53b6d8){const _0x46262=_0x30c533;let {left:_0x3278cb,top:_0x5b5b73,width:_0x239661,height:_0x5ae5e7}=this[_0x46262(0x1de)](),_0x1bdfa9=_0x3278cb+_0x239661/0x2,_0x3739f5=_0x5b5b73+_0x5ae5e7/0x2,_0xee2f8=this['transform']['getMatrix'](),_0x1cee15=new _0x5663a2[(_0x46262(0x344))]([_0xee2f8[0x0],_0xee2f8[0x1],_0xee2f8[0x2],_0xee2f8[0x3],_0x1bdfa9,_0x3739f5]),_0x4cbed1=this[_0x46262(0x1a7)](),_0x3e800e=(this[_0x46262(0x258)]&&(_0x4cbed1==null?void 0x0:_0x4cbed1[_0x46262(0x381)])===_0x5663a2[_0x46262(0x44c)][_0x46262(0x28d)]?_0x4cbed1[_0x46262(0x3df)][_0x46262(0x44e)](_0x1cee15):_0x1cee15)[_0x46262(0x1fa)]()['applyPoint'](_0x53b6d8),_0x425fed=_0x239661/0x2,_0x18d0e2=_0x5ae5e7/0x2,_0x373153=this['_props'][_0x46262(0x3c9)];return _0x373153&&_0x373153[_0x46262(0x26f)]()?_0x373153[_0x46262(0x373)](_0x3e800e['x'],_0x3e800e['y'],_0x239661,_0x5ae5e7):_0x3e800e['x']>=-_0x425fed-this[_0x46262(0x2bb)]/0x2&&_0x3e800e['x']<=_0x425fed+this[_0x46262(0x2bb)]/0x2&&_0x3e800e['y']>=-_0x18d0e2-this[_0x46262(0x2bb)]/0x2&&_0x3e800e['y']<=_0x18d0e2+this[_0x46262(0x2bb)]/0x2;}[_0x30c533(0x1e9)](){const _0x362bd3=_0x30c533;this[_0x362bd3(0x340)]['shapeModel']=null,super[_0x362bd3(0x1e9)]();}},_0x44d757=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x3db88e,_0x118023){const _0x5b5dda=_0x30c533;super(_0x3db88e,_0x118023),_0x54eac0(this,'_shapeId',null),_0x54eac0(this,_0x5b5dda(0x2f8),null),_0x54eac0(this,_0x5b5dda(0x3a1),null),_0x54eac0(this,_0x5b5dda(0x379),null),_0x118023&&this[_0x5b5dda(0x3e9)](_0x118023);}[_0x30c533(0x449)](){const _0x226b1a=_0x30c533;return{'unitId':this[_0x226b1a(0x3a1)],'subUnitId':this[_0x226b1a(0x379)],'drawingId':this[_0x226b1a(0x403)]};}['setShapeProps'](_0x276cd3){const _0x252981=_0x30c533;_0x276cd3[_0x252981(0x454)]!==void 0x0&&(this[_0x252981(0x403)]=_0x276cd3['shapeId']),_0x276cd3[_0x252981(0x357)]!==void 0x0&&(this[_0x252981(0x2f8)]=_0x276cd3[_0x252981(0x357)]),_0x276cd3[_0x252981(0x367)]!==void 0x0&&(this[_0x252981(0x3a1)]=_0x276cd3[_0x252981(0x367)]),_0x276cd3[_0x252981(0x481)]!==void 0x0&&(this[_0x252981(0x379)]=_0x276cd3[_0x252981(0x481)]),this['transformByState']({'width':_0x276cd3[_0x252981(0x28c)],'height':_0x276cd3[_0x252981(0x42b)]});}[_0x30c533(0x3ec)](_0xfb3781){const _0x4caf4f=_0x30c533;_0x5663a2[_0x4caf4f(0x431)]['drawWith'](_0xfb3781,{'radius':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x456)],'fill':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x439)],'stroke':_0x8713ee[_0x4caf4f(0x27f)][_0x4caf4f(0x280)],'strokeWidth':0x1,'evented':!0x0});}};function _0x4fa083(_0x105721,_0x51b7db){return function(_0x149e5a,_0x1b0512){_0x51b7db(_0x149e5a,_0x1b0512,_0x105721);};}function _0x164126(_0xdfb111,_0x183660,_0xb21de2,_0x34f750){const _0xc5e1e8=_0x30c533;var _0x5f162b=arguments[_0xc5e1e8(0x22a)],_0x14c3d5=_0x5f162b<0x3?_0x183660:_0x34f750===null?_0x34f750=Object['getOwnPropertyDescriptor'](_0x183660,_0xb21de2):_0x34f750,_0x2613bc;if(typeof Reflect==_0xc5e1e8(0x314)&&typeof Reflect[_0xc5e1e8(0x21d)]=='function')_0x14c3d5=Reflect[_0xc5e1e8(0x21d)](_0xdfb111,_0x183660,_0xb21de2,_0x34f750);else{for(var _0x3e18e7=_0xdfb111[_0xc5e1e8(0x22a)]-0x1;_0x3e18e7>=0x0;_0x3e18e7--)(_0x2613bc=_0xdfb111[_0x3e18e7])&&(_0x14c3d5=(_0x5f162b<0x3?_0x2613bc(_0x14c3d5):_0x5f162b>0x3?_0x2613bc(_0x183660,_0xb21de2,_0x14c3d5):_0x2613bc(_0x183660,_0xb21de2))||_0x14c3d5);}return _0x5f162b>0x3&&_0x14c3d5&&Object[_0xc5e1e8(0x397)](_0x183660,_0xb21de2,_0x14c3d5),_0x14c3d5;}let _0x568a7c=class extends _0xa2ae07['Disposable']{constructor(_0x3a9416,_0x57cbf8,_0xf48383,_0x61092e,_0x48de46){const _0x425db5=_0x30c533;super(),this[_0x425db5(0x32f)]=_0x3a9416,this[_0x425db5(0x2c4)]=_0x57cbf8,this[_0x425db5(0x46b)]=_0xf48383,this[_0x425db5(0x496)]=_0x61092e,this[_0x425db5(0x444)]=_0x48de46;}[_0x30c533(0x3c3)](_0x1fdba4,_0x48e3ce,_0x7ed450){const _0x20cebf=_0x30c533;let {transform:_0x1d4180,drawingType:_0x59c50e,srcRect:_0x173bd3,prstGeom:_0x40cbf5,groupId:_0x8d6543,unitId:_0xb02922,subUnitId:_0x3f3dc4,drawingId:_0x262d13,isMultiTransform:_0x2f0997,transforms:_0x1beff2,hidden:_0x4a5a94,selectable:_0xb0b2c6}=_0x1fdba4;if(_0x59c50e!==_0xa2ae07[_0x20cebf(0x392)]['DRAWING_SHAPE']||!this[_0x20cebf(0x32f)]['getDrawingVisible']()||_0x1d4180==null)return;let _0x38cb86=this[_0x20cebf(0x32f)][_0x20cebf(0x41b)]();_0x38cb86&&_0x48e3ce[_0x20cebf(0x349)](_0x2a5532[_0x20cebf(0x2c7)]);let _0x46095b=_0x2f0997&&_0x1beff2?_0x1beff2:[_0x1d4180],_0x378bdb=[];for(let _0x5c58d9 of _0x46095b){let {left:_0x5dca50,top:_0x18f209,width:_0x49e0ba,height:_0x4351a7,angle:_0x36e27c,flipX:_0x42a41f,flipY:_0x373672,skewX:_0x48bf68,skewY:_0x52ea46}=_0x5c58d9,_0x14b9f1=_0x46095b['indexOf'](_0x5c58d9),_0x43f23b=(0x0,_0x2c1288[_0x20cebf(0x44d)])({'unitId':_0xb02922,'subUnitId':_0x3f3dc4,'drawingId':_0x262d13},_0x2f0997?_0x14b9f1:void 0x0),_0x26aad7=_0x48e3ce[_0x20cebf(0x257)](_0x43f23b);if(_0x26aad7!=null){_0x26aad7[_0x20cebf(0x2d0)]({'left':_0x5dca50,'top':_0x18f209,'width':_0x49e0ba,'height':_0x4351a7,'angle':_0x36e27c,'flipX':_0x42a41f,'flipY':_0x373672,'skewX':_0x48bf68,'skewY':_0x52ea46});continue;}let _0x593eed=this['_drawingManagerService']['getDrawingOrder'](_0xb02922,_0x3f3dc4),_0x35aaf7=_0x593eed[_0x20cebf(0x22d)](_0x262d13);if(_0x48e3ce['getObjectIncludeInGroup'](_0x43f23b)||!this['_drawingManagerService'][_0x20cebf(0x459)]())continue;let _0x365cc8=this['_sheetsShapeService']['getShapeModel'](_0xb02922,_0x3f3dc4,_0x262d13);if(!_0x365cc8)continue;let _0x5c7903=new _0x4da10f(_0x43f23b,{...(0x0,_0x8713ee['isConnectorShape'])(_0x365cc8[_0x20cebf(0x1bc)]())?{..._0x5c58d9,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5c58d9},'zIndex':_0x35aaf7===-0x1?_0x593eed[_0x20cebf(0x22a)]-0x1:_0x35aaf7,'shapeModel':_0x365cc8,'localeService':this[_0x20cebf(0x46b)],'shapeId':_0x262d13,'unitId':_0xb02922,'subUnitId':_0x3f3dc4,'visible':_0x4a5a94!==!0x0,'evented':_0xb0b2c6!==!0x1});_0x48e3ce[_0x20cebf(0x33a)](_0x5c7903,_0x5663a2[_0x20cebf(0x3da)]),_0x38cb86&&_0x48e3ce[_0x20cebf(0x281)](_0x5c7903),_0x8d6543&&(0x0,_0x5e919d[_0x20cebf(0x2da)])({'drawingId':_0x8d6543,'unitId':_0xb02922,'subUnitId':_0x3f3dc4},_0x5c7903,_0x48e3ce,this['_drawingManagerService']),_0x40cbf5!=null&&_0x5c7903[_0x20cebf(0x273)](_0x40cbf5),_0x173bd3!=null&&_0x5c7903[_0x20cebf(0x27e)](_0x173bd3);let _0x416869=this['_loadShapePictureFill'](_0x5c7903,_0x365cc8['getShapeData']());if(_0x416869){var _0x5dc21d;_0x7ed450==null||(_0x5dc21d=_0x7ed450['resourceCollector'])==null||_0x5dc21d[_0x20cebf(0x39c)](_0x416869);}_0x378bdb[_0x20cebf(0x1c2)](_0x5c7903);}return _0x378bdb;}[_0x30c533(0x2c5)](_0x1df37f){const _0x5e0a7a=_0x30c533;let _0xc30096=_0x1df37f[_0x5e0a7a(0x3c9)][_0x5e0a7a(0x2cc)](),_0x5822c5=_0xc30096[_0x5e0a7a(0x3c1)];if(!_0x5822c5||_0x5822c5['fillType']!==_0x8713ee[_0x5e0a7a(0x363)][_0x5e0a7a(0x40e)]||!_0x5822c5['fillImageSource']){_0x1df37f['setFillImage'](void 0x0);return;}this['_loadShapePictureFill'](_0x1df37f,_0xc30096);}['_loadShapePictureFill'](_0x4a3672,_0x376477){const _0x56b07b=_0x30c533;var _0x38d36a;let _0xdbdcf6=_0x376477[_0x56b07b(0x3c1)];if(!_0xdbdcf6||_0xdbdcf6[_0x56b07b(0x31a)]!==_0x8713ee[_0x56b07b(0x363)][_0x56b07b(0x40e)]||!_0xdbdcf6['fillImageSource'])return;let _0x34d97f=_0xdbdcf6[_0x56b07b(0x42f)],_0x17a79d=(_0x38d36a=_0xdbdcf6['fillImageSourceType'])==null?_0x8713ee[_0x56b07b(0x391)][_0x56b07b(0x352)]:_0x38d36a,_0x1c881f=this['_imageIoService'][_0x56b07b(0x491)](_0x34d97f,_0x17a79d);if(_0x1c881f){_0x4a3672[_0x56b07b(0x39f)](_0x1c881f);return;}return this[_0x56b07b(0x3b2)](_0x4a3672,_0x34d97f,_0x17a79d);}async[_0x30c533(0x3b2)](_0x14e815,_0x3a7516,_0x43139b){const _0x30a661=_0x30c533;let _0x1a8d8e;try{if(_0x43139b===_0x8713ee['ImageSourceTypeEnum'][_0x30a661(0x38d)])_0x1a8d8e=await this[_0x30a661(0x496)][_0x30a661(0x191)](_0x3a7516);else{if(_0x43139b===_0x8713ee['ImageSourceTypeEnum'][_0x30a661(0x352)])try{_0x1a8d8e=await this[_0x30a661(0x444)]['getImage'](_0x3a7516);}catch{_0x1a8d8e=_0x3a7516;}else _0x1a8d8e=_0x3a7516;}}catch(_0x10845a){console[_0x30a661(0x2af)](_0x30a661(0x387),_0x10845a);return;}await new Promise(_0x491a6d=>{const _0x390272=_0x30a661;let _0x2c6255=new window['Image']();_0x2c6255[_0x390272(0x318)]=()=>{const _0x4b5886=_0x390272;this[_0x4b5886(0x496)][_0x4b5886(0x476)](_0x3a7516,_0x43139b,_0x2c6255),_0x14e815[_0x4b5886(0x39f)](_0x2c6255),_0x491a6d();},_0x2c6255['onerror']=()=>{const _0x4cdaa5=_0x390272;console[_0x4cdaa5(0x2af)](_0x4cdaa5(0x2d9),_0x3a7516),_0x491a6d();},_0x2c6255[_0x390272(0x1be)]=_0x1a8d8e;});}};_0x568a7c=_0x164126([_0x4fa083(0x0,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x18f)])),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x468)]),_0x4fa083(0x4,_0xa2ae07[_0x30c533(0x406)])],_0x568a7c);let _0x3dd7d6=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x182acc,_0x5b10a6,_0x209efc,_0x5c778b,_0x47cc8b,_0x35894d){const _0x3912ef=_0x30c533;super(),this[_0x3912ef(0x32f)]=_0x182acc,this[_0x3912ef(0x2c4)]=_0x5b10a6,this[_0x3912ef(0x2a6)]=_0x209efc,this['_sheetDrawingShapeRenderController']=_0x5c778b,this[_0x3912ef(0x19f)]=_0x47cc8b,this[_0x3912ef(0x1d7)]=_0x35894d,_0x54eac0(this,'_activeShapeId',null),_0x54eac0(this,_0x3912ef(0x3a1),null),_0x54eac0(this,_0x3912ef(0x379),null),_0x54eac0(this,'_activeShapeAdjustPointList',void 0x0),_0x54eac0(this,'_shapes',[]),_0x54eac0(this,_0x3912ef(0x310),0x0),_0x54eac0(this,_0x3912ef(0x40a),0x0),_0x54eac0(this,_0x3912ef(0x1f5),0x0),_0x54eac0(this,_0x3912ef(0x332),0x0),_0x54eac0(this,_0x3912ef(0x297),!0x1),_0x54eac0(this,_0x3912ef(0x42a),void 0x0),_0x54eac0(this,_0x3912ef(0x271),void 0x0),_0x54eac0(this,'_adjHandlerPointerMove',void 0x0),_0x54eac0(this,'_adjHandlerPointerUp',void 0x0),_0x54eac0(this,_0x3912ef(0x20c),!0x1),this[_0x3912ef(0x1b0)](),this[_0x3912ef(0x479)]();}['_getShapeAdjustPointListById'](_0x2afa52,_0x3f0b4f,_0x3625c3){const _0x55e6eb=_0x30c533;let _0x185a78=this[_0x55e6eb(0x2c4)][_0x55e6eb(0x2f4)](_0x2afa52,_0x3f0b4f,_0x3625c3);if(_0x185a78)return _0x185a78[_0x55e6eb(0x3a9)]();}[_0x30c533(0x455)](){this['_clearShapeAdjustControls']();}[_0x30c533(0x284)](){this['_updateShapeAdjustControls'](!0x0);}[_0x30c533(0x224)](_0x141ad2){const _0x373ca2=_0x30c533;this[_0x373ca2(0x20c)]=_0x141ad2;}[_0x30c533(0x2d2)](_0x70d6a1,_0x5d1534,_0x20a4fb,_0x1c49e0){const _0x401df2=_0x30c533;let _0x31d8f2=this[_0x401df2(0x2c4)][_0x401df2(0x2f4)](_0x70d6a1,_0x5d1534,_0x20a4fb);if(_0x31d8f2)return _0x31d8f2[_0x401df2(0x1af)](_0x1c49e0);}[_0x30c533(0x376)](_0x3fcdf2=!0x1){const _0x36738c=_0x30c533;if(this['_unitId']===null||this[_0x36738c(0x379)]===null||this[_0x36738c(0x200)]===null)return;let _0x2aeef4=this['_renderManagerService']['getRenderById'](this[_0x36738c(0x3a1)]);if(!_0x2aeef4||!_0x2aeef4[_0x36738c(0x3c2)](_0xe965b[_0x36738c(0x309)])['getCurrentSkeleton']())return;let {scene:_0x6f4ff6}=_0x2aeef4,_0x4d5ecb={'unitId':this['_unitId'],'subUnitId':this[_0x36738c(0x379)],'drawingId':this['_activeShapeId']},_0x3a6cad=this[_0x36738c(0x32f)]['getDrawingByParam'](_0x4d5ecb),{transform:_0x20c5cb}=_0x3a6cad;if(!_0x20c5cb||_0x3a6cad[_0x36738c(0x2f0)]!==_0xa2ae07[_0x36738c(0x392)]['DRAWING_SHAPE'])return;let {left:_0x25361b,top:_0x1dcadc,width:_0x575081,height:_0x59ff7b,flipX:_0x50f153,flipY:_0x320052,angle:_0x5f18e8=0x0}=_0x20c5cb;if(_0x25361b===void 0x0||_0x1dcadc===void 0x0)return;_0x3fcdf2&&(this['_activeShapeAdjustPointList']=this[_0x36738c(0x3aa)](this[_0x36738c(0x3a1)],this['_subUnitId'],this[_0x36738c(0x200)]));let _0x307eb0=this[_0x36738c(0x386)];for(let _0x2552c7=0x0;_0x2552c7<_0x307eb0['length'];_0x2552c7++){let _0x3dfce8=_0x307eb0[_0x2552c7],_0x5ef66d=_0x3dfce8['x'],_0x3c21d1=_0x3dfce8['y'];if(_0x50f153&&(_0x5ef66d=(_0x575081||0x0)-_0x5ef66d),_0x320052&&(_0x3c21d1=(_0x59ff7b||0x0)-_0x3c21d1),_0x5f18e8!==0x0){let _0x2c3a76=(_0x575081||0x0)/0x2,_0x415909=(_0x59ff7b||0x0)/0x2,_0x4502ee=_0x5f18e8*Math['PI']/0xb4,_0x9f8f29=Math[_0x36738c(0x40d)](_0x4502ee),_0x3311c9=Math[_0x36738c(0x3ba)](_0x4502ee),_0x1f5ba3=_0x5ef66d-_0x2c3a76,_0x78cb91=_0x3c21d1-_0x415909;_0x5ef66d=_0x2c3a76+(_0x1f5ba3*_0x9f8f29-_0x78cb91*_0x3311c9),_0x3c21d1=_0x415909+(_0x1f5ba3*_0x3311c9+_0x78cb91*_0x9f8f29);}let _0xaa1815={'x':_0x5ef66d,'y':_0x3c21d1,'adjName':_0x3dfce8[_0x36738c(0x357)]};this['_addShapeAdjustControl'](_0x6f4ff6,_0xaa1815,_0xaa1815['adjName'],_0x25361b,_0x1dcadc,this[_0x36738c(0x3a1)],this[_0x36738c(0x379)]);}}[_0x30c533(0x27b)](_0x1aa529=!0x1){const _0xdfbb89=_0x30c533;_0x1aa529&&(this[_0xdfbb89(0x3e2)](),this[_0xdfbb89(0x376)](_0x1aa529));}['_addShapeAdjustControl'](_0x32ba5e,_0x38939b,_0x135ecb,_0x15a8d0,_0x6a250c,_0x250662,_0x320bd0){const _0x22b5a1=_0x30c533;if(!this['_activeShapeId'])return;let _0xb40591=_0x32ba5e[_0x22b5a1(0x257)]('shape-adjust-point-'+this[_0x22b5a1(0x200)]+'-'+_0x135ecb);if(_0xb40591){_0xb40591[_0x22b5a1(0x2d0)]({'left':_0x38939b['x']+_0x15a8d0-_0x8713ee[_0x22b5a1(0x27f)]['adjHandleSize'],'top':_0x38939b['y']+_0x6a250c-_0x8713ee[_0x22b5a1(0x27f)]['adjHandleSize']});return;}let _0x5eb31e={'left':_0x38939b['x']+_0x15a8d0-_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)],'top':_0x38939b['y']+_0x6a250c-_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)],'adjName':_0x135ecb,'shapeId':this[_0x22b5a1(0x200)],'unitId':_0x250662,'subUnitId':_0x320bd0,'width':_0x8713ee[_0x22b5a1(0x27f)][_0x22b5a1(0x456)]+0x8,'height':_0x8713ee['ShapeDefaultConfig']['adjHandleSize']+0x8,'zIndex':_0x5663a2[_0x22b5a1(0x3da)]+0x1,'evented':!0x0},_0xb9ed25=new _0x44d757(_0x22b5a1(0x447)+this[_0x22b5a1(0x200)]+'-'+_0x135ecb,_0x5eb31e);this['_shapes'][_0x22b5a1(0x1c2)](_0xb9ed25),this[_0x22b5a1(0x2ee)](_0xb9ed25,_0x32ba5e,_0x135ecb),_0x32ba5e['addObject'](_0xb9ed25,_0x5663a2[_0x22b5a1(0x3da)]+0x1);}[_0x30c533(0x3e2)](){const _0xa077ef=_0x30c533;this[_0xa077ef(0x461)][_0xa077ef(0x22a)]!==0x0&&(this[_0xa077ef(0x461)][_0xa077ef(0x37b)](_0x46857d=>{const _0x300320=_0xa077ef;_0x46857d[_0x300320(0x1e9)]();}),this[_0xa077ef(0x461)]=[]);}[_0x30c533(0x49d)](){const _0x16ec18=_0x30c533;this[_0x16ec18(0x376)]();}[_0x30c533(0x46e)](_0x3e2b52,_0x5a8491){const _0x4a6e9d=_0x30c533;var _0x39680a;let _0x1d671e={'x':0x0,'y':0x0};if(!_0x3e2b52||!_0x5a8491)return _0x1d671e;let _0x4b3af9=this[_0x4a6e9d(0x2a6)][_0x4a6e9d(0x3f7)](_0x3e2b52);if(!_0x4b3af9||!_0x4b3af9['with'](_0xe965b['SheetSkeletonManagerService'])['getSkeleton'](_0x5a8491))return _0x1d671e;let _0x3f73d3=_0x4b3af9[_0x4a6e9d(0x3c2)](_0xe965b['SheetScrollManagerService']),_0x71504b=_0x3f73d3==null?void 0x0:_0x3f73d3[_0x4a6e9d(0x453)]();if(!_0x71504b)return _0x1d671e;let _0x336226=(_0x39680a=this[_0x4a6e9d(0x19f)]['getUnit'](_0x3e2b52))==null?void 0x0:_0x39680a['getSheetBySheetId'](_0x5a8491);if(!_0x336226)return _0x1d671e;let _0x49c521=(0x0,_0xe965b[_0x4a6e9d(0x262)])(_0x71504b['sheetViewStartRow'],_0x71504b[_0x4a6e9d(0x27c)],_0x4b3af9[_0x4a6e9d(0x1e7)],_0x336226);return _0x49c521?{'x':_0x49c521[_0x4a6e9d(0x3d4)],'y':_0x49c521[_0x4a6e9d(0x3fd)]}:_0x1d671e;}['_getZoomRatio'](_0x955695,_0x446d03){const _0x1c54ca=_0x30c533;var _0x5eaffe,_0x5989f3;let _0x306697=(_0x5eaffe=this[_0x1c54ca(0x19f)]['getUnit'](_0x955695))==null?void 0x0:_0x5eaffe[_0x1c54ca(0x326)](_0x446d03);return(_0x5989f3=_0x306697==null?void 0x0:_0x306697[_0x1c54ca(0x319)]())==null?0x1:_0x5989f3;}[_0x30c533(0x2ee)](_0x205df8,_0x352ede,_0x2254ae){const _0x37b4cf=_0x30c533;this[_0x37b4cf(0x40b)]((0x0,_0xa2ae07[_0x37b4cf(0x24e)])(_0x205df8['onPointerDown$'][_0x37b4cf(0x1db)]((_0xff51ac,_0x2a76a9)=>{const _0x31e4e0=_0x37b4cf;var _0x25630b,_0x30a56e,_0x4f6b1a,_0x1cb03d;let _0x45cb47=_0x205df8['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x31e4e0(0x2d2)](_0x45cb47[_0x31e4e0(0x367)],_0x45cb47[_0x31e4e0(0x481)],_0x45cb47[_0x31e4e0(0x18a)],_0x2254ae),this[_0x31e4e0(0x271)]=this[_0x31e4e0(0x2c4)]['getShapeModel'](_0x45cb47['unitId'],_0x45cb47['subUnitId'],_0x45cb47['drawingId']);let _0x52789b=this[_0x31e4e0(0x32f)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x31e4e0(0x379)],'drawingId':this[_0x31e4e0(0x200)]}),{transform:_0x20f7bc}=_0x52789b;if(_0x20f7bc){let {left:_0x3e4948,top:_0x4d662c,width:_0x376535,height:_0x3b1df2}=_0x20f7bc;this['_baseShapeLeft']=_0x3e4948||0x0,this[_0x31e4e0(0x40a)]=_0x4d662c||0x0,this['_baseShapeWidth']=_0x376535||0x0,this[_0x31e4e0(0x332)]=_0x3b1df2||0x0;}let _0x4c96df=!!((_0x25630b=_0x52789b[_0x31e4e0(0x25d)])!=null&&_0x25630b['flipX']),_0xf825fb=!!((_0x30a56e=_0x52789b[_0x31e4e0(0x25d)])!=null&&_0x30a56e[_0x31e4e0(0x2e6)]),_0x131c86=((_0x4f6b1a=_0x52789b[_0x31e4e0(0x25d)])==null?void 0x0:_0x4f6b1a[_0x31e4e0(0x1cc)])||0x0;this[_0x31e4e0(0x297)]=!0x0,_0x352ede[_0x31e4e0(0x412)]();let _0x21632b=(_0x1cb03d=this['_activeShapeModel'])==null?void 0x0:_0x1cb03d[_0x31e4e0(0x4a9)](_0x2254ae),_0x23120a={[_0x2254ae]:_0x21632b};this[_0x31e4e0(0x1eb)]=_0x352ede[_0x31e4e0(0x18e)][_0x31e4e0(0x1db)]((_0x3d0d5c,_0x25ad4e)=>{const _0x1e5979=_0x31e4e0;if(!this['_isStartAdjusting'])return;let {offsetX:_0x4de4af,offsetY:_0x261968}=_0x3d0d5c,_0x38312d=this[_0x1e5979(0x42a)];if(this[_0x1e5979(0x271)]&&_0x38312d){_0x352ede[_0x1e5979(0x412)](),_0x352ede['setCursor'](_0x5663a2[_0x1e5979(0x383)][_0x1e5979(0x242)]);let _0x5458f2={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x1e5979(0x332)]},_0x35ca29=this[_0x1e5979(0x46e)](this['_unitId'],this[_0x1e5979(0x379)]),_0x4c1b90=this[_0x1e5979(0x227)](this[_0x1e5979(0x3a1)],this[_0x1e5979(0x379)]),_0x5e5d93=_0x4de4af/_0x4c1b90+_0x35ca29['x']-this[_0x1e5979(0x310)],_0x498bce=_0x261968/_0x4c1b90+_0x35ca29['y']-this['_baseShapeTop'];if(_0x131c86!==0x0){let _0x387576=this['_baseShapeWidth']/0x2,_0x2a1bdc=this['_baseShapeHeight']/0x2,_0x5bb8a7=_0x131c86*Math['PI']/0xb4,_0x1629a9=Math[_0x1e5979(0x40d)](_0x5bb8a7),_0x376f57=Math[_0x1e5979(0x3ba)](_0x5bb8a7),_0x2a6348=_0x5e5d93-_0x387576,_0x39c5ae=_0x498bce-_0x2a1bdc;_0x5e5d93=_0x387576+(_0x2a6348*_0x1629a9+_0x39c5ae*_0x376f57),_0x498bce=_0x2a1bdc+(-_0x2a6348*_0x376f57+_0x39c5ae*_0x1629a9);}_0x4c96df&&(_0x5e5d93=this[_0x1e5979(0x1f5)]-_0x5e5d93),_0xf825fb&&(_0x498bce=this[_0x1e5979(0x332)]-_0x498bce);let _0x3600b2={'x':_0x5e5d93,'y':_0x498bce},_0x5c444d=this[_0x1e5979(0x271)]['calcAdjValue'](_0x5458f2,_0x3600b2,_0x38312d,_0x4c96df,_0xf825fb),_0x3a266d=_0x38312d[_0x1e5979(0x1d4)]||_0x38312d[_0x1e5979(0x342)]||_0x38312d['gdRefAng']||_0x38312d[_0x1e5979(0x296)];if(_0x3a266d===void 0x0)return;this[_0x1e5979(0x271)][_0x1e5979(0x361)](_0x3a266d,_0x5c444d);let _0x1b490a=this[_0x1e5979(0x32f)][_0x1e5979(0x3b1)]({'unitId':_0x45cb47[_0x1e5979(0x367)],'subUnitId':_0x45cb47['subUnitId'],'drawingId':_0x45cb47[_0x1e5979(0x18a)]});_0x1b490a&&(this[_0x1e5979(0x240)][_0x1e5979(0x3c3)](_0x1b490a,_0x352ede),this[_0x1e5979(0x386)]=this['_getShapeAdjustPointListById'](_0x45cb47[_0x1e5979(0x367)],_0x45cb47[_0x1e5979(0x481)],_0x45cb47[_0x1e5979(0x18a)]),this[_0x1e5979(0x49d)]());}_0x25ad4e[_0x1e5979(0x3b6)]();}),this['_adjHandlerPointerUp']=_0x352ede['onPointerUp$'][_0x31e4e0(0x1db)]((_0x1298d5,_0x4074d5)=>{const _0x5516e3=_0x31e4e0;this[_0x5516e3(0x1eb)][_0x5516e3(0x241)](),this[_0x5516e3(0x217)]['unsubscribe'](),_0x352ede[_0x5516e3(0x2b6)]();let _0x3a56ed=this['_activeAdjustInfo'];if(_0x3a56ed){let _0xf7c9ff=_0x45cb47['unitId'],_0x4950d6=_0x45cb47[_0x5516e3(0x481)],_0x13abe9=_0x45cb47['drawingId'],_0x43a0d8=_0x3a56ed[_0x5516e3(0x1d4)]||_0x3a56ed['gdRefY']||_0x3a56ed[_0x5516e3(0x3db)]||_0x3a56ed[_0x5516e3(0x296)];if(_0x43a0d8!==void 0x0){var _0x255b4b;let _0x589441=(_0x255b4b=this[_0x5516e3(0x271)])==null?void 0x0:_0x255b4b[_0x5516e3(0x4a9)](_0x43a0d8);_0x589441!==void 0x0&&_0x2a12a7(this[_0x5516e3(0x1d7)],_0xf7c9ff,_0x4950d6,_0x13abe9,{'oldShapeData':{'adjustValues':_0x23120a}},{'adjustValues':{[_0x43a0d8]:_0x589441}});}}this['_activeAdjustInfo']=void 0x0,this[_0x5516e3(0x271)]=void 0x0,this[_0x5516e3(0x297)]=!0x1,_0x4074d5[_0x5516e3(0x3b6)](),_0x352ede[_0x5516e3(0x362)]();}),_0x2a76a9['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x5b9603=_0x30c533;let _0x4828f0=this[_0x5b9603(0x19f)][_0x5b9603(0x189)](_0xa2ae07[_0x5b9603(0x44b)]['UNIVER_SHEET']);this['disposeWithMe'](_0x4828f0[_0x5b9603(0x2a9)]((0x0,_0x50bd3e[_0x5b9603(0x39e)])(_0x4eb1fd=>_0x4eb1fd?_0x4eb1fd['activeSheet$']['pipe']((0x0,_0x50bd3e[_0x5b9603(0x39e)])(_0x43b78e=>{const _0x219b6c=_0x5b9603;if(!_0x43b78e)return _0x50bd3e[_0x219b6c(0x331)];let _0xa53b98=_0x4eb1fd[_0x219b6c(0x22e)](),_0x44b9ed=this[_0x219b6c(0x2a6)]['getRenderById'](_0xa53b98),_0x2d9a47=_0x44b9ed==null?void 0x0:_0x44b9ed[_0x219b6c(0x1e7)];return _0x2d9a47?(0x0,_0x50bd3e['of'])(_0x2d9a47):_0x50bd3e[_0x219b6c(0x331)];})):_0x50bd3e[_0x5b9603(0x331)]))[_0x5b9603(0x2ba)](_0x44818e=>{const _0x29a9ae=_0x5b9603;let _0x5bd06b=_0x44818e[_0x29a9ae(0x300)]();this[_0x29a9ae(0x40b)](_0x44818e['onPointerMove$'][_0x29a9ae(0x1db)](()=>{const _0x460792=_0x29a9ae;this[_0x460792(0x20c)];})),this[_0x29a9ae(0x40b)](_0x5bd06b['changeStart$'][_0x29a9ae(0x2ba)](_0x20db06=>{const _0x45fabc=_0x29a9ae;let {objects:_0x21956a}=_0x20db06;this[_0x45fabc(0x376)](),_0x21956a!==null&&_0x21956a[_0x45fabc(0x2ab)]===0x1&&_0x21956a['values']()['next']()[_0x45fabc(0x19e)]instanceof _0x4da10f&&this[_0x45fabc(0x224)](!0x0);})),this['disposeWithMe'](_0x5bd06b[_0x29a9ae(0x1e4)]['subscribe'](()=>{const _0x449e44=_0x29a9ae;this[_0x449e44(0x20c)]&&this[_0x449e44(0x3e2)]();})),this['disposeWithMe'](_0x44818e[_0x29a9ae(0x260)][_0x29a9ae(0x1db)](()=>{const _0xabfdeb=_0x29a9ae;this[_0xabfdeb(0x20c)]&&(this['setShouldShowAdjust'](!0x1),this[_0xabfdeb(0x376)]());})),this['disposeWithMe'](_0x5bd06b[_0x29a9ae(0x274)]['subscribe'](()=>{const _0x17b45a=_0x29a9ae;this['_unitId']&&this[_0x17b45a(0x379)]&&this[_0x17b45a(0x200)]&&this[_0x17b45a(0x32f)][_0x17b45a(0x3b1)]({'unitId':this[_0x17b45a(0x3a1)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x17b45a(0x200)]})&&(this[_0x17b45a(0x386)]=this['_getShapeAdjustPointListById'](this[_0x17b45a(0x3a1)],this[_0x17b45a(0x379)],this[_0x17b45a(0x200)]),this[_0x17b45a(0x49d)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5f06b8=_0x30c533;this[_0x5f06b8(0x40b)](this['_drawingManagerService'][_0x5f06b8(0x46c)]['subscribe'](_0x561a85=>{const _0x249ffb=_0x5f06b8;if(_0x561a85[_0x249ffb(0x22a)]===0x1){let _0x8717fa=_0x561a85[0x0];if(_0x8717fa[_0x249ffb(0x2f0)]===_0xa2ae07[_0x249ffb(0x392)][_0x249ffb(0x1c8)]){this['_activeShapeId']=_0x8717fa[_0x249ffb(0x18a)];let {unitId:_0x5e60fd,subUnitId:_0xd1b2c8}=_0x8717fa;this[_0x249ffb(0x386)]=this[_0x249ffb(0x3aa)](_0x5e60fd,_0xd1b2c8,this[_0x249ffb(0x200)]),this[_0x249ffb(0x3a1)]=_0x5e60fd,this['_subUnitId']=_0xd1b2c8,this[_0x249ffb(0x3e2)](),this[_0x249ffb(0x376)]();}else this['_activeShapeId']=null,this[_0x249ffb(0x386)]=void 0x0,this['_unitId']=null,this[_0x249ffb(0x379)]=null,this[_0x249ffb(0x3e2)]();}(_0x561a85[_0x249ffb(0x22a)]>0x1||_0x561a85[_0x249ffb(0x22a)]===0x0)&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x249ffb(0x3a1)]=null,this[_0x249ffb(0x379)]=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x5f06b8(0x32f)]['update$'][_0x5f06b8(0x2ba)](_0x33127a=>{const _0x23544a=_0x5f06b8;if(_0x33127a[_0x23544a(0x22a)]===0x1){var _0x2bd045;let _0x2a71f6=_0x33127a[0x0];((_0x2bd045=this[_0x23544a(0x32f)][_0x23544a(0x3b1)](_0x2a71f6))==null?void 0x0:_0x2bd045[_0x23544a(0x2f0)])===_0xa2ae07['DrawingTypeEnum'][_0x23544a(0x1c8)]&&this[_0x23544a(0x27b)](!0x0);}})),this[_0x5f06b8(0x40b)](this[_0x5f06b8(0x32f)][_0x5f06b8(0x246)]['subscribe'](_0x2a8648=>{const _0x4f0905=_0x5f06b8;for(let _0x3a87f2 of _0x2a8648)this['_activeShapeId']===_0x3a87f2['drawingId']&&(this[_0x4f0905(0x200)]=null,this[_0x4f0905(0x386)]=void 0x0,this[_0x4f0905(0x3a1)]=null,this[_0x4f0905(0x379)]=null,this[_0x4f0905(0x3e2)]());}));}};_0x3dd7d6=_0x164126([_0x4fa083(0x0,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2['IRenderManagerService'])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x568a7c)),_0x4fa083(0x4,_0xa2ae07['IUniverInstanceService']),_0x4fa083(0x5,_0xa2ae07[_0x30c533(0x24b)])],_0x3dd7d6);let _0x2f0931={'id':'drawing.operation.set-drawing-active','type':_0xa2ae07[_0x30c533(0x1ba)]['OPERATION'],'handler':(_0x15a7f0,_0x1931e9)=>{const _0x134871=_0x30c533;let _0x50288b=_0x15a7f0[_0x134871(0x1a3)](_0x2c1288[_0x134871(0x21e)]),_0xd88cfc=_0x15a7f0[_0x134871(0x1a3)](_0x5663a2[_0x134871(0x37f)]),_0x186096=_0x15a7f0[_0x134871(0x1a3)](_0x3dd7d6);if(_0x1931e9==null)return!0x0;if(_0x1931e9[_0x134871(0x22a)]>0x0){var _0x2f8b38;let _0x55f8d3=(_0x2f8b38=_0xd88cfc[_0x134871(0x3f7)](_0x1931e9[0x0][_0x134871(0x367)]))==null?void 0x0:_0x2f8b38[_0x134871(0x1e7)];if(_0x55f8d3){let {unitId:_0x47f6ec,subUnitId:_0x4068ea,drawingId:_0x538304}=_0x1931e9[0x0],_0x5674d6=(0x0,_0x2c1288[_0x134871(0x44d)])({'unitId':_0x47f6ec,'subUnitId':_0x4068ea,'drawingId':_0x538304},void 0x0),_0x2d25ed=_0x55f8d3[_0x134871(0x257)](_0x5674d6);if(_0x2d25ed){var _0xf53af6;(_0xf53af6=_0xd88cfc[_0x134871(0x3f7)](_0x1931e9[0x0][_0x134871(0x367)]))==null||(_0xf53af6=_0xf53af6['scene'][_0x134871(0x1ac)]())==null||_0xf53af6[_0x134871(0x334)](_0x2d25ed);}}_0x50288b['focusDrawing'](_0x1931e9),_0x186096[_0x134871(0x224)](!0x1);}return!0x0;}},_0x9938a3={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x426)],'id':_0x30c533(0x1c5),'handler':async(_0x22aaf0,_0x172d32)=>{const _0x171434=_0x30c533;let _0x60e82b=(0x0,_0x2042f3[_0x171434(0x308)])(_0x22aaf0['get'](_0xa2ae07[_0x171434(0x335)]));if(!_0x60e82b)return!0x1;let _0x1b174c=_0x22aaf0[_0x171434(0x1a3)](_0x2042f3['SheetsSelectionsService'])[_0x171434(0x23f)]();if(!_0x1b174c)return!0x1;let _0x486b55=_0x22aaf0[_0x171434(0x1a3)](_0xa2ae07[_0x171434(0x24b)]),{unitId:_0x360735,subUnitId:_0x1e9e57}=_0x60e82b,{value:_0x54c834,enhanceParams:_0x32aabb}=_0x172d32,{range:_0x379470}=_0x1b174c,_0x1cc53f={'unitId':_0x360735,'subUnitId':_0x1e9e57,'shapeType':_0x54c834,'range':_0x379470,'shapeId':(0x0,_0xa2ae07['generateRandomId'])()};if(_0x32aabb){let _0x1ac9e=(0x0,_0x8713ee['isConnectorShape'])(_0x54c834),_0x1596d2=_0x54c834===_0x8713ee[_0x171434(0x1fe)][_0x171434(0x47b)];_0x1ac9e&&(_0x32aabb[_0x171434(0x1e2)]||_0x32aabb['endArrow'])&&(_0x1cc53f[_0x171434(0x2d6)]={'ln':{'startArrow':_0x32aabb[_0x171434(0x1e2)]?{'type':_0x8713ee[_0x171434(0x289)][_0x171434(0x269)],'size':_0x8713ee[_0x171434(0x2e0)][_0x171434(0x34c)]}:void 0x0,'endArrow':_0x32aabb['endArrow']?{'type':_0x8713ee[_0x171434(0x289)][_0x171434(0x269)],'size':_0x8713ee[_0x171434(0x2e0)][_0x171434(0x295)]}:void 0x0}}),_0x1596d2&&(_0x32aabb[_0x171434(0x203)]||_0x32aabb['vertical'])&&(_0x1cc53f['shapeData']=(0x0,_0x2a5532[_0x171434(0x420)])({'fill':{'fillType':_0x8713ee[_0x171434(0x363)][_0x171434(0x315)],'color':_0x171434(0x288)},'isHorizontal':!!_0x32aabb['horizontal'],'stroke':{'lineStrokeType':_0x8713ee[_0x171434(0x43c)][_0x171434(0x2c2)],'width':0x1,'color':_0x171434(0x42c)}}));}let _0x361fe3=_0x486b55[_0x171434(0x467)](_0xe63f5c[_0x171434(0x448)]['id'],_0x1cc53f);return setTimeout(()=>{const _0x546a00=_0x171434;_0x486b55['executeCommand'](_0x2f0931['id'],[{'unitId':_0x360735,'subUnitId':_0x1e9e57,'drawingId':_0x1cc53f[_0x546a00(0x454)]}]);},0xc8),_0x361fe3;}},_0x24cb15=_0x30c533(0x47a),_0x4512d8=_0x30c533(0x301),_0x339a89='sheet.shape.floating-toolbar',_0x5a56de=(0x0,_0xa2ae07['createInternalEditorID'])(_0x30c533(0x4a6)),_0x367d65=_0x30c533(0x3ea),_0xebe58f={'id':'sheet.operation.open-shape-object-list-panel','type':_0xa2ae07['CommandType'][_0x30c533(0x426)],'handler':(_0x2aa3da,_0xfd6e34)=>{const _0x6f394=_0x30c533;let _0x50475b=_0x2aa3da['get'](_0x23402e['ISidebarService']),_0x32dd5b=_0x2aa3da[_0x6f394(0x1a3)](_0xa2ae07[_0x6f394(0x18f)]),_0x2180b0=_0x2aa3da[_0x6f394(0x1a3)](_0xa2ae07[_0x6f394(0x335)]),_0x58fdc8=_0x2aa3da['get'](_0xa2ae07[_0x6f394(0x24b)]);return(0x0,_0x2042f3[_0x6f394(0x308)])(_0x2180b0)?(_0xfd6e34==null?void 0x0:_0xfd6e34[_0x6f394(0x19e)])===_0x6f394(0x3d8)?(_0x50475b[_0x6f394(0x3d8)](_0x4512d8),!0x0):(_0x50475b[_0x6f394(0x277)]({'id':_0x4512d8,'header':{'title':_0x32dd5b['t'](_0x6f394(0x247))},'children':{'label':_0x4512d8},'onClose':()=>{const _0x381a96=_0x6f394;_0x58fdc8[_0x381a96(0x467)](_0x2c1288['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x319800=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x3c1906,_0x3ec5d0){const _0x5ca1aa=_0x30c533;super(),this['_clipService']=_0x3c1906,this[_0x5ca1aa(0x32f)]=_0x3ec5d0,this[_0x5ca1aa(0x1a0)](),this['_clipService'][_0x5ca1aa(0x1dc)](!0x0),this[_0x5ca1aa(0x40b)]({'dispose':()=>this[_0x5ca1aa(0x3ff)][_0x5ca1aa(0x1dc)](!0x1)});}[_0x30c533(0x1a0)](){const _0x5d6674=_0x30c533;let _0x2117cf=this['_clipService'],_0x2ce18e=new Map(),_0x473ac1=_0x2117cf[_0x5d6674(0x219)]((_0x5de999,_0x1233bc,_0x467656,_0x52d625,_0x3faa2e)=>{const _0x218caf=_0x5d6674;let _0x333b75=_0x1233bc;if(_0x333b75===_0x8713ee[_0x218caf(0x1fe)]['None']||_0x1233bc===_0x218caf(0x2cb))return!0x1;try{let _0x424fa1=_0x2ce18e[_0x218caf(0x1a3)](_0x1233bc);return _0x424fa1||(_0x424fa1=new _0x8713ee[(_0x218caf(0x1a6))](_0x333b75,_0x218caf(0x489)+_0x1233bc),_0x2ce18e[_0x218caf(0x2d4)](_0x1233bc,_0x424fa1)),_0x3faa2e&&_0x424fa1['setShapeData']({'adjustValues':_0x3faa2e},!0x0),_0x424fa1[_0x218caf(0x3a8)]({'width':_0x467656,'height':_0x52d625}),_0x424fa1[_0x218caf(0x370)](_0x5de999,{'left':0x0,'top':0x0,'width':_0x467656,'height':_0x52d625});}catch{return!0x1;}});this[_0x5d6674(0x40b)](_0x473ac1),this['disposeWithMe']({'dispose':()=>_0x2ce18e['clear']()});}[_0x30c533(0x1a9)](_0x166ad4,_0x47a790,_0x322f33,_0x4a483f,_0x12e667){const _0x571c77=_0x30c533;let _0x27e561=this[_0x571c77(0x32f)]['getDrawingData'](_0x166ad4,_0x47a790);if(!_0x27e561[_0x322f33])return;let _0x5593d4={..._0x27e561[_0x322f33],'prstGeom':_0x4a483f,'adjustValues':_0x12e667};this[_0x571c77(0x32f)][_0x571c77(0x2d7)]([_0x5593d4]);}};_0x319800=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07['Inject'])(_0x5e919d['DrawingImageClipService'])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2c1288[_0x30c533(0x21e)]))],_0x319800);let _0x18c58e='sheet.shape.picker.component',_0x5365fe=_0x30c533(0x482);function _0x1891b8({onShapeClick:_0xb00ddb,excludeGroups:_0x3d5439}){const _0x5c71be=_0x30c533;return(0x0,_0x1fa7e6[_0x5c71be(0x1c9)])(_0x2a5532[_0x5c71be(0x317)],{'excludeGroups':_0x3d5439,'onShapeClick':_0xb00ddb,'scrollContainer':'parent'});}function _0x172a78(){const _0x56bd6f=_0x30c533;let _0x296dd9=(0x0,_0x23402e['useDependency'])(_0x2c1288[_0x56bd6f(0x21e)]),_0x1d75fb=(0x0,_0x23402e[_0x56bd6f(0x43d)])(_0x319800);return(0x0,_0x1fa7e6[_0x56bd6f(0x1c9)])(_0x2a5532[_0x56bd6f(0x3ab)],{'buttonLabel':_0x56bd6f(0x215),'excludeGroups':[_0x2a5532['ShapeGroupEnum'][_0x56bd6f(0x25b)]],'onShapeClick':_0x5d85c7=>{const _0x4002a1=_0x56bd6f;let _0x48f412=_0x296dd9[_0x4002a1(0x232)]()[_0x4002a1(0x2a7)](_0x18f956=>_0x18f956[_0x4002a1(0x2f0)]===_0xa2ae07[_0x4002a1(0x392)][_0x4002a1(0x2fd)]);if(!_0x48f412)return;let {unitId:_0x3269f2,subUnitId:_0x82cb95,drawingId:_0x3ff14d}=_0x48f412;_0x1d75fb['clipByShape'](_0x3269f2,_0x82cb95,_0x3ff14d,_0x5d85c7[_0x4002a1(0x38f)]);}});}function _0x1d657b(){const _0x2b1351=_0x30c533;let _0x3ad40e=(0x0,_0x23402e['useDependency'])(_0x23402e[_0x2b1351(0x478)]),_0x437f76=(0x0,_0x23402e[_0x2b1351(0x43d)])(_0x2c1288[_0x2b1351(0x21e)]),_0x676aaa=(0x0,_0x23402e[_0x2b1351(0x43d)])(_0xa2ae07[_0x2b1351(0x335)]),_0x137503=_0x437f76[_0x2b1351(0x232)]()[0x0],_0x37ab16=_0x137503?_0x676aaa['getUnitType'](_0x137503[_0x2b1351(0x367)]):void 0x0,_0x30c7f8=_0x37ab16===_0xa2ae07['UniverInstanceType']['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0x37ab16===_0xa2ae07[_0x2b1351(0x44b)][_0x2b1351(0x2b7)]?_0x5365fe:void 0x0,_0x707bb5=_0x30c7f8?_0x3ad40e['get'](_0x30c7f8):void 0x0;return _0x707bb5?(0x0,_0x1fa7e6[_0x2b1351(0x1c9)])(_0x707bb5,{}):null;}function _0x3d1388(){const _0x45b77d=_0x30c533;let _0x11be86=(0x0,_0x23402e['useDependency'])(_0xa2ae07['ICommandService']);return(0x0,_0x1fa7e6[_0x45b77d(0x1c9)])(_0x1891b8,{'onShapeClick':_0x37cd33=>{const _0x2c06e8=_0x45b77d;_0x11be86['executeCommand'](_0x9938a3['id'],{'value':_0x37cd33[_0x2c06e8(0x38f)],'enhanceParams':{'endArrow':_0x37cd33[_0x2c06e8(0x1c4)],'startArrow':_0x37cd33[_0x2c06e8(0x1e2)],'horizontal':_0x37cd33[_0x2c06e8(0x203)],'vertical':_0x37cd33[_0x2c06e8(0x48c)]}});}});}function _0x3dec83(_0x72f66f){const _0x5b22f3=_0x30c533;let _0x31d4c9=_0x72f66f['get'](_0xa2ae07['IUniverInstanceService']);return{'id':_0x9938a3['id'],'type':_0x23402e['MenuItemType'][_0x5b22f3(0x32e)],'selections':[{'label':{'name':_0x18c58e,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x9938a3['id']}}}],'icon':'ShapeIcon','tooltip':_0x5b22f3(0x1d8),'activated$':(0x0,_0xe965b['deriveStateFromActiveSheet$'])(_0x31d4c9,!0x1,()=>new _0x50bd3e[(_0x5b22f3(0x31f))](_0x1c3da5=>{const _0x5a626c=_0x5b22f3;_0x1c3da5[_0x5a626c(0x466)](!0x1);})),'hidden$':(0x0,_0x23402e[_0x5b22f3(0x1e3)])(_0x72f66f,_0xa2ae07[_0x5b22f3(0x44b)][_0x5b22f3(0x2b7)]),'disabled$':(0x0,_0xe965b['getCurrentRangeDisable$'])(_0x72f66f)};}function _0x147461(_0x92d59){const _0x45242c=_0x30c533;let _0x461329=_0x92d59[_0x45242c(0x1a3)](_0xa2ae07[_0x45242c(0x335)]);return{'id':_0xebe58f['id'],'type':_0x23402e[_0x45242c(0x1ca)]['BUTTON'],'icon':_0x45242c(0x216),'title':'sheets-shape-ui.objectListPanel.open','tooltip':_0x45242c(0x46f),'activated$':(0x0,_0xe965b[_0x45242c(0x4a2)])(_0x461329,!0x1,()=>new _0x50bd3e[(_0x45242c(0x31f))](_0x22b3e4=>{_0x22b3e4['next'](!0x1);})),'hidden$':(0x0,_0x23402e[_0x45242c(0x1e3)])(_0x92d59,_0xa2ae07['UniverInstanceType'][_0x45242c(0x2b7)]),'disabled$':(0x0,_0xe965b[_0x45242c(0x1f1)])(_0x92d59)};}let _0x8aef12={[_0x23402e[_0x30c533(0x38c)][_0x30c533(0x304)]]:{[_0x9938a3['id']]:{'order':0x4,'menuItemFactory':_0x3dec83},[_0xebe58f['id']]:{'order':4.1,'menuItemFactory':_0x147461}}};var _0x3d8ba4=_0x30c533(0x428),_0x13a4b6=_0x30c533(0x20b);let _0x2ae476={'type':_0xa2ae07[_0x30c533(0x1ba)][_0x30c533(0x2e1)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}},_0x3a4b3e={'type':_0xa2ae07[_0x30c533(0x1ba)]['OPERATION'],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}},_0x1a263c={};function _0x54df8b({ref:_0x28266f,..._0x524c1c}){const _0x347190=_0x30c533;let {icon:_0x347fdd,id:_0x522908,className:_0x22a0d2,extend:_0x408855,..._0xc18224}=_0x524c1c,_0xaf43be=('univerjs-icon\x20univerjs-icon-'+_0x522908+'\x20'+(_0x22a0d2||''))[_0x347190(0x29d)](),_0x4d0939=(0x0,_0x437a9d['useRef'])('_'+_0x425260());return _0x52fd02(_0x347fdd,''+_0x522908,{'defIds':_0x347fdd[_0x347190(0x3b9)],'idSuffix':_0x4d0939[_0x347190(0x28b)]},{'ref':_0x28266f,'className':_0xaf43be,..._0xc18224},_0x408855);}function _0x52fd02(_0x83b59f,_0x522f4e,_0x506538,_0x3cbb3f,_0x10e824){const _0x328a8d=_0x30c533;return(0x0,_0x437a9d[_0x328a8d(0x34e)])(_0x83b59f[_0x328a8d(0x201)],{'key':_0x522f4e,..._0x2e7c3b(_0x83b59f,_0x506538,_0x10e824),..._0x3cbb3f},(_0x387b8a(_0x83b59f,_0x506538)[_0x328a8d(0x35b)]||[])[_0x328a8d(0x45b)]((_0x59d325,_0x2c2561)=>_0x52fd02(_0x59d325,_0x522f4e+'-'+_0x83b59f[_0x328a8d(0x201)]+'-'+_0x2c2561,_0x506538,void 0x0,_0x10e824)));}function _0x2e7c3b(_0x52ceea,_0x41235b,_0x54bd85){const _0x451e71=_0x30c533;let _0x2f5ade={..._0x52ceea['attrs']};_0x54bd85!=null&&_0x54bd85[_0x451e71(0x290)]&&_0x2f5ade['fill']===_0x451e71(0x290)&&(_0x2f5ade[_0x451e71(0x3c1)]=_0x54bd85[_0x451e71(0x290)]),_0x54bd85!=null&&_0x54bd85[_0x451e71(0x290)]&&_0x2f5ade['stroke']===_0x451e71(0x290)&&(_0x2f5ade['stroke']=_0x54bd85[_0x451e71(0x290)]),_0x52ceea[_0x451e71(0x201)]==='mask'&&_0x2f5ade['id']&&(_0x2f5ade['id']+=_0x41235b[_0x451e71(0x320)]),Object[_0x451e71(0x3eb)](_0x2f5ade)[_0x451e71(0x37b)](([_0x2efac5,_0x2dd950])=>{const _0x5a23de=_0x451e71;_0x2efac5===_0x5a23de(0x2fa)&&typeof _0x2dd950==_0x5a23de(0x37a)&&(_0x2f5ade[_0x2efac5]=_0x2dd950['replace'](/url\(#(.*)\)/,_0x5a23de(0x2dc)+_0x41235b['idSuffix']+')'));});let {defIds:_0x5daaa5}=_0x41235b;return!_0x5daaa5||_0x5daaa5[_0x451e71(0x22a)]===0x0?_0x2f5ade:(_0x52ceea[_0x451e71(0x201)]===_0x451e71(0x1cf)&&_0x2f5ade['xlink:href']&&(_0x2f5ade[_0x451e71(0x20a)]+=_0x41235b[_0x451e71(0x320)]),Object[_0x451e71(0x3eb)](_0x2f5ade)[_0x451e71(0x37b)](([_0x110f9c,_0x4289a1])=>{const _0x1c0c1e=_0x451e71;typeof _0x4289a1=='string'&&(_0x2f5ade[_0x110f9c]=_0x4289a1['replace'](/url\(#(.*)\)/,_0x1c0c1e(0x2dc)+_0x41235b[_0x1c0c1e(0x320)]+')'));}),_0x2f5ade);}function _0x387b8a(_0x146e3e,_0x27411d){const _0x50dc73=_0x30c533;var _0x44d75d;let {defIds:_0x269801}=_0x27411d;return!_0x269801||_0x269801['length']===0x0?_0x146e3e:_0x146e3e['tag']===_0x50dc73(0x377)&&(_0x44d75d=_0x146e3e['children'])!=null&&_0x44d75d[_0x50dc73(0x22a)]?{..._0x146e3e,'children':_0x146e3e[_0x50dc73(0x35b)][_0x50dc73(0x45b)](_0x5df265=>typeof _0x5df265['attrs']['id']==_0x50dc73(0x37a)&&_0x269801&&_0x269801['includes'](_0x5df265[_0x50dc73(0x477)]['id'])?{..._0x5df265,'attrs':{..._0x5df265[_0x50dc73(0x477)],'id':_0x5df265[_0x50dc73(0x477)]['id']+_0x27411d[_0x50dc73(0x320)]}}:_0x5df265)}:_0x146e3e;}function _0x425260(){const _0xa90364=_0x30c533;return Math[_0xa90364(0x483)]()[_0xa90364(0x267)](0x24)[_0xa90364(0x1ea)](0x2,0x8);}_0x54df8b['displayName']=_0x30c533(0x42e);let _0x2a94ca={'tag':_0x30c533(0x204),'attrs':{'xmlns':_0x30c533(0x3ef),'fill':'none','viewBox':_0x30c533(0x401),'width':_0x30c533(0x1b3),'height':_0x30c533(0x1b3)},'children':[{'tag':_0x30c533(0x43f),'attrs':{'fill':'colorChannel1','d':'M5.4004\x202.60213C5.25792\x202.60213\x205.14241\x202.71763\x205.14241\x202.86011V4.32679C5.14241\x204.67752\x204.85809\x204.96184\x204.50736\x204.96184C4.15663\x204.96184\x203.87231\x204.67752\x203.87231\x204.32679V2.86011C3.87231\x202.01618\x204.55646\x201.33203\x205.4004\x201.33203H13.14C13.984\x201.33203\x2014.6681\x202.01618\x2014.6681\x202.86011V10.5998C14.6681\x2011.4437\x2013.984\x2012.1278\x2013.14\x2012.1278H11.6568C11.3061\x2012.1278\x2011.0218\x2011.8435\x2011.0218\x2011.4928C11.0218\x2011.1421\x2011.3061\x2010.8577\x2011.6568\x2010.8577H13.14C13.2825\x2010.8577\x2013.398\x2010.7422\x2013.398\x2010.5998V2.86011C13.398\x202.71763\x2013.2825\x202.60213\x2013.14\x202.60213H5.4004Z','fillRule':_0x30c533(0x196),'clipRule':_0x30c533(0x196)}},{'tag':_0x30c533(0x43f),'attrs':{'fill':_0x30c533(0x210),'d':_0x30c533(0x46d),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x52e7b=(0x0,_0x437a9d['forwardRef'])(function(_0x267de6,_0x3c7abe){const _0x4d4828=_0x30c533;return(0x0,_0x437a9d[_0x4d4828(0x34e)])(_0x54df8b,Object[_0x4d4828(0x243)]({},_0x267de6,{'id':'copy-double-icon','ref':_0x3c7abe,'icon':_0x2a94ca}));});_0x52e7b['displayName']=_0x30c533(0x216);function _0x94c393(_0x168584){const _0x22f9fc=_0x30c533;return _0x168584[_0x22f9fc(0x29d)]()||void 0x0;}function _0x4ef245(_0x4cffa9){const _0xc9303d=_0x30c533;switch(_0x4cffa9[_0xc9303d(0x2f0)]){case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x2fd)]:return _0xc9303d(0x2dd);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x19d)]:return _0xc9303d(0x430);case _0xa2ae07['DrawingTypeEnum'][_0xc9303d(0x1c3)]:return'table';case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x197)]:return _0xc9303d(0x375);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x239)]:return _0xc9303d(0x190);case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x37c)]:return _0xc9303d(0x2cf);case _0xa2ae07['DrawingTypeEnum']['DRAWING_UNIT']:return _0xc9303d(0x337);case _0xa2ae07[_0xc9303d(0x392)]['DRAWING_DOM']:return'dom';case _0xa2ae07[_0xc9303d(0x392)][_0xc9303d(0x1c8)]:return _0xc9303d(0x48a);default:return _0xc9303d(0x314);}}function _0x1c7c60(_0x1761c7,_0xc2fa2a,_0x24bac0){const _0x10f81c=_0x30c533;var _0x4b4434;return((_0x4b4434=_0x1761c7[_0x10f81c(0x23d)])==null?void 0x0:_0x4b4434[_0x10f81c(0x29d)]())||(0x0,_0x5e919d[_0x10f81c(0x2ce)])(_0x24bac0,_0x4ef245(_0x1761c7))+'\x20'+(_0xc2fa2a+0x1);}function _0x2844ad(){const _0x107327=_0x30c533;var _0x2990d9,_0x3b96c2,_0x24511d,_0x1ae811;let _0x4d58b1=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x18f)]),_0x260599=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x24b)]),_0x5f228f=(0x0,_0x23402e[_0x107327(0x43d)])(_0xa2ae07[_0x107327(0x335)]),_0x57ad54=(0x0,_0x23402e['useDependency'])(_0x3f4b55[_0x107327(0x31e)]),_0x4a1b88=(0x0,_0x23402e[_0x107327(0x43d)])(_0x2c1288[_0x107327(0x21e)]),_0x23f30f=(0x0,_0x23402e[_0x107327(0x43d)])(_0x5663a2[_0x107327(0x37f)]),[,_0x5451cf]=(0x0,_0x437a9d[_0x107327(0x2b9)])(_0x192418=>_0x192418+0x1,0x0),_0x351361=_0x5f228f[_0x107327(0x2b1)](_0xa2ae07[_0x107327(0x44b)]['UNIVER_SHEET']),_0x45ca19=(_0x2990d9=_0x351361==null?void 0x0:_0x351361[_0x107327(0x22e)]())==null?'':_0x2990d9,_0x315d6e=(_0x3b96c2=_0x351361==null||(_0x24511d=_0x351361['getActiveSheet']())==null?void 0x0:_0x24511d['getSheetId']())==null?'':_0x3b96c2,_0x167ee0=(0x0,_0x23402e[_0x107327(0x41d)])(()=>_0x4a1b88['focus$'],_0x4a1b88[_0x107327(0x232)](),!0x1,[_0x4a1b88]);(0x0,_0x437a9d[_0x107327(0x228)])(()=>{const _0x18b7c9=_0x107327;let _0x5216f7=_0x260599[_0x18b7c9(0x3e1)](()=>_0x5451cf());return()=>_0x5216f7[_0x18b7c9(0x1e9)]();},[_0x260599]);let _0x1751b3=_0x45ca19&&_0x315d6e?_0x57ad54[_0x107327(0x3b0)](_0x45ca19,_0x315d6e):{},_0x427711=_0x45ca19&&_0x315d6e?_0x57ad54[_0x107327(0x23a)](_0x45ca19,_0x315d6e):[],_0x1980b9=(0x0,_0x437a9d[_0x107327(0x26c)])(()=>(0x0,_0x5e919d[_0x107327(0x19a)])(_0x4d58b1),[_0x4d58b1]),_0x588083=(0x0,_0x437a9d[_0x107327(0x26c)])(()=>{const _0x135ed7=_0x107327;let _0xaf8a58=_0x427711[_0x135ed7(0x45b)](_0x1c74db=>_0x1751b3[_0x1c74db])[_0x135ed7(0x35a)](_0x1e9cd3=>!!_0x1e9cd3)[_0x135ed7(0x248)](),_0x3c32ac=_0xaf8a58['reduce']((_0x5bb792,_0x4a2161)=>(_0x5bb792[(0x0,_0x5e919d['getObjectListPanelSectionIdForDrawingType'])(_0x4a2161[_0x135ed7(0x2f0)])]+=0x1,_0x5bb792),{'canvas':0x0,'floating':0x0}),_0x3ffcd3={'canvas':0x0,'floating':0x0};return _0xaf8a58[_0x135ed7(0x45b)]((_0xbd49ff,_0x491bd2)=>{const _0x106fe2=_0x135ed7;let _0x359509=(0x0,_0x5e919d[_0x106fe2(0x425)])(_0xbd49ff[_0x106fe2(0x2f0)]),_0x152902=_0x359509===_0x5e919d['OBJECT_LIST_FLOATING_SECTION_ID'],_0x369877=_0x3ffcd3[_0x359509]++;return{'id':_0xbd49ff[_0x106fe2(0x18a)],'name':_0x1c7c60(_0xbd49ff,_0x491bd2,_0x4d58b1),'description':_0xbd49ff['description'],'visible':_0xbd49ff[_0x106fe2(0x3e4)]!==!0x0,'selectable':_0xbd49ff[_0x106fe2(0x249)]!==!0x1,'sectionId':_0x359509,'sectionTitle':_0x152902?_0x1980b9['sectionFloating']:_0x1980b9['sectionCanvas'],'capabilities':_0x152902?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x152902&&_0x369877>0x0,'canMoveBackward':!_0x152902&&_0x369877<_0x3c32ac[_0x106fe2(0x407)]-0x1,'canReorder':!_0x152902};});},[_0x1751b3,_0x427711,_0x1980b9[_0x107327(0x1ed)],_0x1980b9['sectionFloating'],_0x4d58b1]),_0x414015=(0x0,_0x437a9d['useMemo'])(()=>(_0x167ee0==null?[]:_0x167ee0)[_0x107327(0x35a)](_0x40f164=>_0x40f164[_0x107327(0x367)]===_0x45ca19&&_0x40f164['subUnitId']===_0x315d6e)[_0x107327(0x45b)](_0xf4da74=>_0xf4da74[_0x107327(0x18a)]),[_0x167ee0,_0x315d6e,_0x45ca19]),_0x33f169=(_0x1ae811=_0x414015[_0x414015[_0x107327(0x22a)]-0x1])==null?null:_0x1ae811,_0x204930=_0x2ac0fe=>{const _0x5b27f3=_0x107327;var _0x3fb03c;return(_0x3fb03c=_0x57ad54[_0x5b27f3(0x3b1)]({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x2ac0fe}))==null?null:_0x3fb03c;},_0x1b0ecf=_0x355a6f=>{const _0x2f4063=_0x107327;!_0x45ca19||!_0x355a6f['length']||_0x260599['executeCommand'](_0x3f4b55[_0x2f4063(0x336)]['id'],{'unitId':_0x45ca19,'drawings':_0x355a6f});},_0x585a7c=(_0x537455,_0x45b9dd)=>{_0x204930(_0x537455)&&_0x1b0ecf([{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x537455,..._0x45b9dd}]);},_0x2f58db=(_0x1745b4,_0x3d4cd3)=>{const _0xa969ed=_0x107327;if(!_0x45ca19||!_0x315d6e)return;let _0x54ffd1=_0x3d4cd3?_0x414015[_0xa969ed(0x4a4)](_0x1745b4)?_0x414015['filter'](_0x16cb45=>_0x16cb45!==_0x1745b4):[..._0x414015,_0x1745b4]:[_0x1745b4];_0x260599[_0xa969ed(0x467)](_0x2c1288[_0xa969ed(0x3f5)]['id'],_0x54ffd1[_0xa969ed(0x45b)](_0x199ae5=>({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x199ae5})));let _0x224880=_0x54ffd1[_0x54ffd1[_0xa969ed(0x22a)]-0x1];_0x224880?(0x0,_0x2a5532[_0xa969ed(0x44a)])(_0x23f30f,{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x224880}):(0x0,_0x2a5532['clearActiveDrawingObjects'])(_0x23f30f,_0x45ca19);},_0x1aca09=(_0x4b1d68,_0x474304)=>{const _0x4ef103=_0x107327;_0x1b0ecf(_0x4b1d68['map'](_0x376f0=>_0x204930(_0x376f0))[_0x4ef103(0x35a)](_0x2abb73=>!!_0x2abb73)['filter'](_0x596931=>_0x596931[_0x4ef103(0x3e4)]!==!0x0!==_0x474304)[_0x4ef103(0x45b)](_0x3510a1=>({'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingId':_0x3510a1['drawingId'],'hidden':!_0x474304})));},_0x44eb10=_0x1e2aae=>{let _0x1eb4d6=_0x204930(_0x1e2aae);_0x1eb4d6&&_0x585a7c(_0x1e2aae,{'selectable':_0x1eb4d6['selectable']===!0x1?void 0x0:!0x1});},_0x151215=(_0x24b981,_0x2e9eca)=>{const _0x5912f5=_0x107327;var _0x38f14d,_0x102339;let _0x55a827=_0x94c393(_0x2e9eca);((_0x38f14d=(_0x102339=_0x204930(_0x24b981))==null?void 0x0:_0x102339[_0x5912f5(0x23d)])==null?void 0x0:_0x38f14d)!==_0x55a827&&_0x585a7c(_0x24b981,{'name':_0x55a827});},_0x52ef47=(_0x3cb011,_0x36c449)=>{var _0x1ffe3e,_0x1b19f8;let _0x1acc2f=_0x94c393(_0x36c449);((_0x1ffe3e=(_0x1b19f8=_0x204930(_0x3cb011))==null?void 0x0:_0x1b19f8['description'])==null?void 0x0:_0x1ffe3e)!==_0x1acc2f&&_0x585a7c(_0x3cb011,{'description':_0x1acc2f});},_0xf4e9d1=(_0x46a58c,_0x51ebfd)=>{const _0x3d606c=_0x107327;!_0x45ca19||!_0x315d6e||_0x260599[_0x3d606c(0x45c)](_0x3f4b55[_0x3d606c(0x3d7)]['id'],{'unitId':_0x45ca19,'subUnitId':_0x315d6e,'drawingIds':[_0x46a58c],'arrangeType':_0x51ebfd});};return!_0x45ca19||!_0x315d6e?(0x0,_0x1fa7e6[_0x107327(0x1c9)])(_0x107327(0x3ac),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1980b9[_0x107327(0x231)]}):(0x0,_0x1fa7e6[_0x107327(0x1c9)])(_0x5e919d['ObjectListPanelBase'],{'items':_0x588083,'selectedIds':_0x414015,'focusedId':_0x33f169,'labels':_0x1980b9,'onSelect':_0x2f58db,'onSetVisible':_0x1aca09,'onCommitName':_0x151215,'onCommitDescription':_0x52ef47,'onMoveForward':_0x5e121b=>_0xf4e9d1(_0x5e121b,_0xa2ae07[_0x107327(0x311)][_0x107327(0x2e5)]),'onMoveBackward':_0x2d05ea=>_0xf4e9d1(_0x2d05ea,_0xa2ae07[_0x107327(0x311)][_0x107327(0x192)]),'onToggleSelectable':_0x44eb10});}let _0x5e4c74=class{constructor(_0x119445){const _0x1a6f76=_0x30c533;this[_0x1a6f76(0x2a6)]=_0x119445;}['updateShapeFillImage'](_0x2b6306,_0x2615dd){const _0x163412=_0x30c533;let _0x261a7a=this[_0x163412(0x2a6)][_0x163412(0x3f7)](_0x2b6306[_0x163412(0x367)]),_0x4010ab=_0x261a7a==null?void 0x0:_0x261a7a[_0x163412(0x1e7)];if(!_0x4010ab)return;let _0x2209e1=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])(_0x2b6306),_0x4ad8e0=_0x4010ab[_0x163412(0x257)](_0x2209e1);_0x4ad8e0==null||_0x4ad8e0[_0x163412(0x39f)](_0x2615dd);}};_0x5e4c74=_0x164126([_0x4fa083(0x0,_0x5663a2[_0x30c533(0x37f)])],_0x5e4c74);function _0x11e4a2(){const _0x55a023=_0x30c533;let _0x282b7a=(0x0,_0x23402e[_0x55a023(0x43d)])(_0x2c1288[_0x55a023(0x21e)]),_0x8a7b0=(0x0,_0x23402e[_0x55a023(0x41d)])(()=>_0x282b7a[_0x55a023(0x46c)],_0x282b7a['getFocusDrawings'](),!0x1,[_0x282b7a]);return _0x8a7b0[_0x55a023(0x22a)]===0x0?null:(0x0,_0x1fa7e6[_0x55a023(0x1c9)])('div',{'children':(0x0,_0x1fa7e6[_0x55a023(0x26b)])(_0x55a023(0x3ac),{'className':_0x55a023(0x188),'children':[(0x0,_0x1fa7e6[_0x55a023(0x1c9)])(_0x5e919d[_0x55a023(0x440)],{'drawings':_0x8a7b0,'hasCropper':!0x1}),(0x0,_0x1fa7e6['jsx'])(_0x300372['SheetDrawingAnchor'],{'drawings':_0x8a7b0})]})});}function _0x4d67f5(_0x12bc99){const _0x1c429e=_0x30c533;let {unitId:_0x5cfab6,subUnitId:_0x3eee69,shapeId:_0x462cd7}=_0x12bc99,_0x595b59=(0x0,_0x23402e[_0x1c429e(0x43d)])(_0xa2ae07[_0x1c429e(0x24b)]),_0x1cf85b=(0x0,_0x23402e['useDependency'])(_0x5e4c74);return(0x0,_0x1fa7e6[_0x1c429e(0x1c9)])(_0x2a5532[_0x1c429e(0x198)],{..._0x12bc99,'positionEditor':(0x0,_0x1fa7e6[_0x1c429e(0x1c9)])(_0x11e4a2,{}),'onUpdateShapeData':(_0x23bc3a,_0xcbe937)=>{_0x2a12a7(_0x595b59,_0x5cfab6,_0x3eee69,_0x462cd7,_0x23bc3a,_0xcbe937);},'onUpdateLineShapeData':(_0x24f764,_0x1b9161)=>{_0x11404e(_0x595b59,_0x5cfab6,_0x3eee69,_0x462cd7,_0x24f764,_0x1b9161);},'onUpdateShapeFillImage':_0x1924fd=>{const _0x3269c9=_0x1c429e;_0x1cf85b[_0x3269c9(0x1f8)]({'unitId':_0x5cfab6,'subUnitId':_0x3eee69,'drawingId':_0x462cd7},_0x1924fd);}});}function _0x1ecbff(_0x1ff74a){const _0x4687fa=_0x30c533;let _0x92d7c4=_0x1ff74a[_0x4687fa(0x3af)][_0x4687fa(0x21b)];return _0x92d7c4?(0x0,_0x1fa7e6[_0x4687fa(0x1c9)])(_0xc9aaaf,{..._0x92d7c4}):null;}function _0xc9aaaf(_0x528130){const _0x570447=_0x30c533;var _0x54f45b,_0x123e1f;let _0x5b86b3=(0x0,_0x23402e[_0x570447(0x43d)])(_0xa2ae07[_0x570447(0x24b)]),_0x3b6d37=(0x0,_0x23402e['useDependency'])(_0xe63f5c[_0x570447(0x3dc)]),{unitId:_0x572041,subUnitId:_0x25bd52,drawingId:_0x543fe4,drawingType:_0x1764f7,shapeType:_0xf649f9}=_0x528130,[_0x15c4eb,_0x17c5d4]=(0x0,_0x437a9d[_0x570447(0x2df)])(_0x528130[_0x570447(0x2d6)]),_0x10a158=(0x0,_0x437a9d[_0x570447(0x26c)])(()=>(0x0,_0x2a5532['getTextStyle'])(_0x15c4eb),[_0x15c4eb]),_0x224885=(0x0,_0x437a9d[_0x570447(0x26c)])(()=>(0x0,_0x2a5532[_0x570447(0x429)])(_0x15c4eb),[_0x15c4eb]);(0x0,_0x437a9d[_0x570447(0x228)])(()=>{const _0x4c505a=_0x570447;let _0x134c23=_0x5b86b3[_0x4c505a(0x3e1)](_0x27e0fd=>{const _0xea41c2=_0x4c505a;if(_0x27e0fd['id']!==_0xe63f5c[_0xea41c2(0x268)]['id'])return;let _0x62465a=_0x3b6d37[_0xea41c2(0x2ae)](_0x572041,_0x25bd52,_0x543fe4);_0x62465a&&_0x17c5d4(_0x62465a);});return()=>_0x134c23[_0x4c505a(0x1e9)]();},[_0x5b86b3,_0x543fe4,_0x3b6d37,_0x25bd52,_0x572041]);let _0x5697fb=_0xad2cae=>{_0x17c5d4(_0x39ad6f=>({..._0x39ad6f,..._0xad2cae}));},_0x363bcd=_0x57df02=>{const _0x2ea6bf=_0x570447;let _0x55726d=(0x0,_0x2a5532['buildShapeTextDataUpdate'])(_0x15c4eb,_0x57df02);_0x2a12a7(_0x5b86b3,_0x572041,_0x25bd52,_0x543fe4,{'oldShapeData':{'shapeText':_0x15c4eb[_0x2ea6bf(0x1c6)]}},_0x55726d),_0x5697fb(_0x55726d);};return(0x0,_0x1fa7e6[_0x570447(0x1c9)])(_0x2a5532['ShapeFloatingToolbar'],{'shapeData':_0x15c4eb,'shapeType':_0xf649f9,'textStyle':{'ff':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)][_0x570447(0x422)],'fs':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)][_0x570447(0x471)],'cl':{'rgb':_0x8713ee[_0x570447(0x27f)][_0x570447(0x1c6)]['color']},..._0x10a158},'textModel':_0x224885?{'ha':(_0x54f45b=_0x224885['ha'])==null?_0xa2ae07[_0x570447(0x1c0)][_0x570447(0x2d1)]:_0x54f45b,'va':(_0x123e1f=_0x224885['va'])==null?_0xa2ae07['VerticalAlign'][_0x570447(0x23c)]:_0x123e1f}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3c1)],'defaultGradientEndColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3f2)],'defaultStrokeColor':_0x8713ee[_0x570447(0x27f)][_0x570447(0x3e3)],'onUpdateShapeData':(_0x3fb198,_0x1f8e74)=>{_0x2a12a7(_0x5b86b3,_0x572041,_0x25bd52,_0x543fe4,_0x3fb198,_0x1f8e74),_0x1f8e74&&_0x5697fb(_0x1f8e74);},'onUpdateText':_0x363bcd,'onOpenPanel':()=>{_0x5b86b3['executeCommand'](_0x3a4b3e['id'],{'unitId':_0x572041,'subUnitId':_0x25bd52,'drawingId':_0x543fe4});},'onDelete':()=>{const _0x48e404=_0x570447;_0x5b86b3[_0x48e404(0x45c)](_0x3f4b55[_0x48e404(0x390)]['id'],{'unitId':_0x572041,'drawings':[{'unitId':_0x572041,'subUnitId':_0x25bd52,'drawingId':_0x543fe4,'drawingType':_0x1764f7}]});}});}var _0x580c45=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(..._0x534809){const _0x1af843=_0x30c533;super(..._0x534809),_0x54eac0(this,_0x1af843(0x2f2),new _0x50bd3e[(_0x1af843(0x2ef))](null)),_0x54eac0(this,_0x1af843(0x202),this['_editingParams$'][_0x1af843(0x442)]()),_0x54eac0(this,_0x1af843(0x2b3),new _0x50bd3e[(_0x1af843(0x2ef))](!0x1)),_0x54eac0(this,'onSavingEditorData$',this[_0x1af843(0x2b3)]['asObservable']());}['dispose'](){const _0x3db228=_0x30c533;this['_editingParams$']['next'](null),this[_0x3db228(0x2f2)][_0x3db228(0x193)](),this[_0x3db228(0x2b3)][_0x3db228(0x466)](!0x1),this[_0x3db228(0x2b3)]['complete'](),super[_0x3db228(0x1e9)]();}[_0x30c533(0x3b7)](_0x7446ba){const _0x3c960b=_0x30c533;this[_0x3c960b(0x2f2)][_0x3c960b(0x466)](_0x7446ba),_0x7446ba==null&&this['_onSavingEditorData$']['next'](!0x1);}['setOnSavingEditorData'](_0xea139c){const _0x33ae39=_0x30c533;this[_0x33ae39(0x2b3)]['next'](_0xea139c);}[_0x30c533(0x2fe)](){return this['_editingParams$']['getValue']();}[_0x30c533(0x3e8)](_0x50ddf8){const _0x1801ed=_0x30c533;this[_0x1801ed(0x2fe)]()&&(this[_0x1801ed(0x3d6)](!0x0),requestAnimationFrame(()=>{this['setEditing'](null);}));}[_0x30c533(0x368)](){const _0x24e31b=_0x30c533;this[_0x24e31b(0x2fe)]()&&this[_0x24e31b(0x3b7)](null);}};let _0x52b989=(0x0,_0x437a9d[_0x30c533(0x229)])(()=>{const _0x251afd=_0x30c533;let _0x481c03=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x580c45),_0x1e17bd=(0x0,_0x23402e[_0x251afd(0x43d)])(_0xe63f5c[_0x251afd(0x3dc)]),_0x46d949=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x2c1288['IDrawingManagerService']),_0x31c58f=(0x0,_0x23402e[_0x251afd(0x43d)])(_0xa2ae07['ICommandService']),_0x26c662=(0x0,_0x23402e[_0x251afd(0x43d)])(_0x5663a2[_0x251afd(0x37f)]);return(0x0,_0x1fa7e6[_0x251afd(0x1c9)])(_0x2a5532['ShapeTextEditorContainer'],{'adapter':(0x0,_0x437a9d['useMemo'])(()=>({'getShapeModel':(_0x366b6b,_0x563443,_0x14b0bd)=>_0x1e17bd[_0x251afd(0x2f4)](_0x366b6b,_0x563443,_0x14b0bd),'getShapeData':(_0x48228f,_0x344364,_0x5dede2)=>_0x1e17bd[_0x251afd(0x2ae)](_0x48228f,_0x344364,_0x5dede2),'getDrawingTransform':(_0x42cd78,_0x55edea,_0x1a5d3f)=>{const _0x221374=_0x251afd;let _0x541f24=_0x46d949[_0x221374(0x3b1)]({'unitId':_0x42cd78,'subUnitId':_0x55edea,'drawingId':_0x1a5d3f});return _0x541f24==null?void 0x0:_0x541f24[_0x221374(0x25d)];},'updateShapeText':({unitId:_0xe7ce2f,subUnitId:_0x6ab8c8,shapeId:_0x518930,shapeText:_0x14d3b1,oldShapeText:_0x1540c2})=>{const _0x4020c8=_0x251afd;_0x31c58f[_0x4020c8(0x45c)](_0xc12450['id'],{'unitId':_0xe7ce2f,'subUnitId':_0x6ab8c8,'shapeId':_0x518930,'shapeData':{'shapeText':_0x14d3b1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1540c2}}});},'updateHostSize':({unitId:_0x3fbf5e,subUnitId:_0x199e6a,shapeId:_0x4caed5,width:_0x464177,height:_0x594f78})=>{const _0x16bd34=_0x251afd;var _0xb6729f,_0x40e2f6,_0x2cab32;let _0x4403bb=_0x46d949['getDrawingByParam']({'unitId':_0x3fbf5e,'subUnitId':_0x199e6a,'drawingId':_0x4caed5}),_0x4ab3f3=_0x4403bb==null?void 0x0:_0x4403bb[_0x16bd34(0x25d)];if(!_0x4403bb||!_0x4ab3f3)return;let _0x1d5407={..._0x4ab3f3,'width':_0x464177,'height':_0x594f78},_0x5286d6=(_0xb6729f=_0x26c662[_0x16bd34(0x3f7)](_0x3fbf5e))==null||(_0xb6729f=_0xb6729f[_0x16bd34(0x3c2)](_0xe965b[_0x16bd34(0x309)])[_0x16bd34(0x347)](_0x199e6a))==null?void 0x0:_0xb6729f[_0x16bd34(0x40c)],_0x426d8e=_0x5286d6?(_0x40e2f6=(0x0,_0x3f4b55[_0x16bd34(0x385)])(_0x1d5407,_0x5286d6))==null?_0x4403bb[_0x16bd34(0x328)]:_0x40e2f6:_0x4403bb[_0x16bd34(0x328)],_0x5daf05=_0x5286d6?(_0x2cab32=(0x0,_0x3f4b55[_0x16bd34(0x286)])(_0x1d5407,_0x5286d6))==null?_0x4403bb[_0x16bd34(0x26a)]:_0x2cab32:_0x4403bb['axisAlignSheetTransform'];_0x31c58f['executeCommand'](_0x3f4b55[_0x16bd34(0x336)]['id'],{'unitId':_0x3fbf5e,'drawings':[{..._0x4403bb,'transform':_0x1d5407,'sheetTransform':_0x426d8e,'axisAlignSheetTransform':_0x5daf05}]});},'allowHostSizeShrink':({unitId:_0x31386a,subUnitId:_0x335fe1,shapeId:_0x5d7b23})=>(0x0,_0x2a5532[_0x251afd(0x22c)])(_0x1e17bd[_0x251afd(0x2ae)](_0x31386a,_0x335fe1,_0x5d7b23))}),[_0x31c58f,_0x46d949,_0x26c662,_0x1e17bd]),'editingService':_0x481c03,'editorUnitId':_0x5a56de,'positionOptions':(0x0,_0x437a9d[_0x251afd(0x26c)])(()=>({'viewportKeys':{'main':_0x5663a2['SHEET_VIEWPORT_KEY'][_0x251afd(0x3e6)],'leftTop':_0x5663a2['SHEET_VIEWPORT_KEY'][_0x251afd(0x34b)],'top':_0x5663a2[_0x251afd(0x21c)]['VIEW_MAIN_TOP'],'left':_0x5663a2[_0x251afd(0x21c)][_0x251afd(0x3a6)]},'getSkeleton':(_0xf84cda,_0x3ab8f7)=>{const _0x3a841d=_0x251afd;var _0x379fbc,_0x20c1f8;return(_0x379fbc=(_0x20c1f8=_0xf84cda['with'](_0xe965b[_0x3a841d(0x309)])[_0x3a841d(0x347)](_0x3ab8f7[_0x3a841d(0x481)]))==null?void 0x0:_0x20c1f8[_0x3a841d(0x40c)])==null?null:_0x379fbc;}}),[])});}),_0x3a8708=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x1b4a47,_0x4907e4){const _0x4aeb7d=_0x30c533;super(),this[_0x4aeb7d(0x2cd)]=_0x1b4a47,this['_iconManager']=_0x4907e4,this[_0x4aeb7d(0x1dd)](),this[_0x4aeb7d(0x2c8)]();}[_0x30c533(0x1dd)](){const _0x248678=_0x30c533;this[_0x248678(0x18d)]['has']('CopyDoubleIcon')||this['disposeWithMe'](this[_0x248678(0x18d)][_0x248678(0x1bf)]({'CopyDoubleIcon':_0x52e7b}));}[_0x30c533(0x2c8)](){const _0x5b4810=_0x30c533;this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x24cb15,_0x4d67f5)),this['disposeWithMe'](this['_componentManager'][_0x5b4810(0x1bf)](_0x4512d8,_0x2844ad)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)]['register'](_0x18c58e,_0x3d1388)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x5365fe,_0x172a78)),this['_componentManager'][_0x5b4810(0x1a3)](_0x5e919d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](this['_componentManager'][_0x5b4810(0x1bf)](_0x5e919d[_0x5b4810(0x206)],_0x1d657b)),this[_0x5b4810(0x40b)](this['_componentManager'][_0x5b4810(0x1bf)](_0x339a89,_0x1ecbff)),this[_0x5b4810(0x40b)](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)](_0x367d65,_0x2a5532[_0x5b4810(0x30d)])),this['disposeWithMe'](this[_0x5b4810(0x2cd)][_0x5b4810(0x1bf)]('SheetShapeTextEditorContainer',_0x52b989));}};_0x3a8708=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x478)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x38b)]))],_0x3a8708);let _0x16b33d=class extends _0xa2ae07['Disposable']{constructor(_0x1d57a6,_0x413324,_0x1b2c5c,_0x1ff26f,_0x515f16){const _0x2e3485=_0x30c533;super(),this[_0x2e3485(0x419)]=_0x1d57a6,this[_0x2e3485(0x32f)]=_0x413324,this[_0x2e3485(0x2a6)]=_0x1b2c5c,this['_univerInstanceService']=_0x1ff26f,this[_0x2e3485(0x29f)]=_0x515f16,_0x54eac0(this,_0x2e3485(0x31b),null),_0x54eac0(this,_0x2e3485(0x3a1),null),_0x54eac0(this,_0x2e3485(0x379),null),_0x54eac0(this,'_activeAdjustPointList',void 0x0),_0x54eac0(this,_0x2e3485(0x461),[]),_0x54eac0(this,'_baseLeft',0x0),_0x54eac0(this,_0x2e3485(0x393),0x0),_0x54eac0(this,'_baseWidth',0x0),_0x54eac0(this,_0x2e3485(0x36e),0x0),_0x54eac0(this,'_isStartAdjusting',!0x1),_0x54eac0(this,_0x2e3485(0x42a),void 0x0),_0x54eac0(this,'_activeShapeModel',void 0x0),_0x54eac0(this,_0x2e3485(0x1eb),void 0x0),_0x54eac0(this,_0x2e3485(0x217),void 0x0),_0x54eac0(this,_0x2e3485(0x2c1),!0x1),this['_registerFocusChangeHandler'](),this[_0x2e3485(0x1b6)]();}['clearAdjustControls'](){this['_clearControls']();}[_0x30c533(0x284)](){const _0x360d0e=_0x30c533;this[_0x360d0e(0x307)](),this[_0x360d0e(0x2bd)](!0x0);}[_0x30c533(0x457)](_0x287858,_0x71ca08,_0x5ead50,_0x178b9a){const _0x37b8b0=_0x30c533;let _0x4cc5cf=_0x287858;if(!(_0x4cc5cf===_0x8713ee[_0x37b8b0(0x1fe)][_0x37b8b0(0x3f1)]||_0x287858==='custom'))try{let _0x157941=new _0x8713ee['ShapeModel'](_0x4cc5cf,_0x37b8b0(0x1ce)+_0x287858);return _0x178b9a&&_0x157941['setShapeData']({'adjustValues':_0x178b9a},!0x0),_0x157941[_0x37b8b0(0x3a8)]({'width':_0x71ca08,'height':_0x5ead50}),_0x157941;}catch{return;}}[_0x30c533(0x351)](_0x33bea0,_0x1ed2de,_0x410c0a){const _0x40b4f6=_0x30c533;let _0x49f0e3={'unitId':_0x33bea0,'subUnitId':_0x1ed2de,'drawingId':_0x410c0a},_0x4c66ab=this[_0x40b4f6(0x32f)][_0x40b4f6(0x3b1)](_0x49f0e3);if(!(!_0x4c66ab||_0x4c66ab[_0x40b4f6(0x2f0)]!==_0xa2ae07[_0x40b4f6(0x392)][_0x40b4f6(0x2fd)]))return _0x4c66ab;}[_0x30c533(0x2be)](_0x2c20a6,_0x2bcc05,_0x398838){const _0x305f3b=_0x30c533;let _0x379453=this[_0x305f3b(0x2a6)][_0x305f3b(0x3f7)](_0x2c20a6);if(!_0x379453)return;let {scene:_0x5e396e}=_0x379453,_0x57871a=(0x0,_0x2c1288[_0x305f3b(0x44d)])({'unitId':_0x2c20a6,'subUnitId':_0x2bcc05,'drawingId':_0x398838}),_0x13bd7b=_0x5e396e[_0x305f3b(0x21f)](_0x57871a);if(_0x13bd7b instanceof _0x5663a2[_0x305f3b(0x1c1)]){let _0x4492e7=_0x13bd7b['prstGeom'];if(_0x4492e7)return{'prstGeom':_0x4492e7,'adjustValues':_0x13bd7b['prstGeomAdjValues']};}}[_0x30c533(0x2bd)](_0x1ede9f=!0x1){const _0xe31959=_0x30c533;if(!this[_0xe31959(0x3a1)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x4c6a6c=this[_0xe31959(0x2a6)]['getRenderById'](this['_unitId']);if(!_0x4c6a6c||!_0x4c6a6c[_0xe31959(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0xe31959(0x3e7)]())return;let {scene:_0x4f7293}=_0x4c6a6c,_0xa14fb4=this[_0xe31959(0x351)](this['_unitId'],this['_subUnitId'],this['_activeImageId']);if(!_0xa14fb4)return;let {transform:_0x517d7a}=_0xa14fb4;if(!_0x517d7a)return;let {left:_0xb3ec08,top:_0x4c3c79,width:_0x4d0b38,height:_0x2f28ac,flipX:_0x4b23b7,flipY:_0x379c4d,angle:_0x55cd9d=0x0}=_0x517d7a;if(_0xb3ec08===void 0x0||_0x4c3c79===void 0x0)return;let _0x5afdbd=this[_0xe31959(0x2be)](this[_0xe31959(0x3a1)],this[_0xe31959(0x379)],this[_0xe31959(0x31b)]);if(!_0x5afdbd)return;if(_0x1ede9f){let _0x463d05=this[_0xe31959(0x457)](_0x5afdbd[_0xe31959(0x345)],_0x4d0b38||0x0,_0x2f28ac||0x0,_0x5afdbd[_0xe31959(0x27d)]);if(!_0x463d05)return;this[_0xe31959(0x2a8)]=_0x463d05[_0xe31959(0x3a9)]();}let _0x11226e=this[_0xe31959(0x2a8)];if(!(!_0x11226e||_0x11226e[_0xe31959(0x22a)]===0x0))for(let _0x517957=0x0;_0x517957<_0x11226e[_0xe31959(0x22a)];_0x517957++){let _0x8e0eb1=_0x11226e[_0x517957],_0xaaa9f9=_0x8e0eb1['x'],_0x29a37b=_0x8e0eb1['y'];if(_0x4b23b7&&(_0xaaa9f9=(_0x4d0b38||0x0)-_0xaaa9f9),_0x379c4d&&(_0x29a37b=(_0x2f28ac||0x0)-_0x29a37b),_0x55cd9d!==0x0){let _0x679b2b=(_0x4d0b38||0x0)/0x2,_0x6a3af0=(_0x2f28ac||0x0)/0x2,_0x4891c9=_0x55cd9d*Math['PI']/0xb4,_0x5499c3=Math[_0xe31959(0x40d)](_0x4891c9),_0x1dfb26=Math[_0xe31959(0x3ba)](_0x4891c9),_0xe7fd9b=_0xaaa9f9-_0x679b2b,_0x35e8b6=_0x29a37b-_0x6a3af0;_0xaaa9f9=_0x679b2b+(_0xe7fd9b*_0x5499c3-_0x35e8b6*_0x1dfb26),_0x29a37b=_0x6a3af0+(_0xe7fd9b*_0x1dfb26+_0x35e8b6*_0x5499c3);}let _0xf20714={'x':_0xaaa9f9,'y':_0x29a37b,'adjName':_0x8e0eb1[_0xe31959(0x357)]};this[_0xe31959(0x329)](_0x4f7293,_0xf20714,_0xf20714[_0xe31959(0x357)],_0xb3ec08,_0x4c3c79,this[_0xe31959(0x3a1)],this[_0xe31959(0x379)]);}}[_0x30c533(0x329)](_0x4cd5ee,_0x39c5ef,_0x3e3736,_0x5989a3,_0x37e6c6,_0x5656de,_0xed7624){const _0x56d691=_0x30c533;if(!this[_0x56d691(0x31b)])return;let _0x177225=_0x56d691(0x230)+this[_0x56d691(0x31b)]+'-'+_0x3e3736,_0x33996a=_0x4cd5ee[_0x56d691(0x257)](_0x177225);if(_0x33996a){_0x33996a['transformByState']({'left':_0x39c5ef['x']+_0x5989a3-_0x8713ee['ShapeDefaultConfig'][_0x56d691(0x456)],'top':_0x39c5ef['y']+_0x37e6c6-_0x8713ee[_0x56d691(0x27f)]['adjHandleSize']});return;}let _0x2720d4=new _0x44d757(_0x177225,{'left':_0x39c5ef['x']+_0x5989a3-_0x8713ee[_0x56d691(0x27f)]['adjHandleSize'],'top':_0x39c5ef['y']+_0x37e6c6-_0x8713ee['ShapeDefaultConfig'][_0x56d691(0x456)],'adjName':_0x3e3736,'shapeId':this[_0x56d691(0x31b)],'unitId':_0x5656de,'subUnitId':_0xed7624,'width':_0x8713ee[_0x56d691(0x27f)][_0x56d691(0x456)]+0x8,'height':_0x8713ee[_0x56d691(0x27f)]['adjHandleSize']+0x8,'zIndex':_0x5663a2[_0x56d691(0x3da)]+0x1,'evented':!0x0});this['_shapes'][_0x56d691(0x1c2)](_0x2720d4),this[_0x56d691(0x2ee)](_0x2720d4,_0x4cd5ee,_0x3e3736),_0x4cd5ee[_0x56d691(0x33a)](_0x2720d4,_0x5663a2[_0x56d691(0x3da)]+0x1);}[_0x30c533(0x307)](){const _0x303a66=_0x30c533;this['_shapes'][_0x303a66(0x22a)]!==0x0&&(this[_0x303a66(0x461)][_0x303a66(0x37b)](_0x4c8bb1=>_0x4c8bb1[_0x303a66(0x1e9)]()),this[_0x303a66(0x461)]=[]);}[_0x30c533(0x46e)](_0x1fdfef,_0x4d5a96){const _0xf7b385=_0x30c533;var _0x5d22ec;let _0x1c0d05={'x':0x0,'y':0x0},_0x44ba92=this[_0xf7b385(0x2a6)]['getRenderById'](_0x1fdfef);if(!_0x44ba92||!_0x44ba92[_0xf7b385(0x3c2)](_0xe965b['SheetSkeletonManagerService'])['getSkeleton'](_0x4d5a96))return _0x1c0d05;let _0x131485=_0x44ba92[_0xf7b385(0x3c2)](_0xe965b[_0xf7b385(0x1ef)]),_0x286112=_0x131485==null?void 0x0:_0x131485['getCurrentScrollState']();if(!_0x286112)return _0x1c0d05;let _0x20c9b4=(_0x5d22ec=this['_univerInstanceService']['getUnit'](_0x1fdfef))==null?void 0x0:_0x5d22ec['getSheetBySheetId'](_0x4d5a96);if(!_0x20c9b4)return _0x1c0d05;let _0x22b57a=(0x0,_0xe965b[_0xf7b385(0x262)])(_0x286112[_0xf7b385(0x1a5)],_0x286112[_0xf7b385(0x27c)],_0x44ba92[_0xf7b385(0x1e7)],_0x20c9b4);return _0x22b57a?{'x':_0x22b57a[_0xf7b385(0x3d4)],'y':_0x22b57a[_0xf7b385(0x3fd)]}:_0x1c0d05;}[_0x30c533(0x227)](_0x4ce568,_0x405c20){const _0x185a39=_0x30c533;var _0x5f58d4,_0xaab397;let _0x547382=(_0x5f58d4=this[_0x185a39(0x19f)][_0x185a39(0x46a)](_0x4ce568))==null?void 0x0:_0x5f58d4[_0x185a39(0x326)](_0x405c20);return(_0xaab397=_0x547382==null?void 0x0:_0x547382['getZoomRatio']())==null?0x1:_0xaab397;}[_0x30c533(0x2ee)](_0x5ded29,_0x185430,_0x284b19){const _0x7f459=_0x30c533;this[_0x7f459(0x40b)]((0x0,_0xa2ae07[_0x7f459(0x24e)])(_0x5ded29[_0x7f459(0x2a2)][_0x7f459(0x1db)]((_0x28a2a,_0x3f0b47)=>{const _0x19de7f=_0x7f459;var _0x50058d,_0x108243,_0x5dfe90;let {unitId:_0x23abf2,subUnitId:_0x24ed35,drawingId:_0x56e3a8}=_0x5ded29[_0x19de7f(0x449)](),_0x264e3f=this[_0x19de7f(0x351)](_0x23abf2,_0x24ed35,_0x56e3a8);if(!(_0x264e3f!=null&&_0x264e3f[_0x19de7f(0x25d)]))return;let {left:_0x3d3a17,top:_0x27e80e,width:_0x2aad7c,height:_0x2a875b}=_0x264e3f[_0x19de7f(0x25d)];this['_baseLeft']=_0x3d3a17||0x0,this['_baseTop']=_0x27e80e||0x0,this[_0x19de7f(0x464)]=_0x2aad7c||0x0,this[_0x19de7f(0x36e)]=_0x2a875b||0x0;let _0x1ec943=!!((_0x50058d=_0x264e3f['transform'])!=null&&_0x50058d[_0x19de7f(0x382)]),_0xd05c5c=!!((_0x108243=_0x264e3f[_0x19de7f(0x25d)])!=null&&_0x108243[_0x19de7f(0x2e6)]),_0x2e8f98=((_0x5dfe90=_0x264e3f[_0x19de7f(0x25d)])==null?void 0x0:_0x5dfe90[_0x19de7f(0x1cc)])||0x0,_0x376be4=this[_0x19de7f(0x2be)](_0x23abf2,_0x24ed35,_0x56e3a8);if(!_0x376be4)return;let _0x3f13c5=this[_0x19de7f(0x457)](_0x376be4[_0x19de7f(0x345)],this[_0x19de7f(0x464)],this['_baseHeight'],_0x376be4['adjustValues']);if(!_0x3f13c5||(this[_0x19de7f(0x271)]=_0x3f13c5,this[_0x19de7f(0x42a)]=_0x3f13c5[_0x19de7f(0x1af)](_0x284b19),!this[_0x19de7f(0x42a)]))return;this[_0x19de7f(0x297)]=!0x0,_0x185430[_0x19de7f(0x412)]();let _0x4e87c4=_0x376be4[_0x19de7f(0x345)];this[_0x19de7f(0x1eb)]=_0x185430[_0x19de7f(0x18e)]['subscribeEvent']((_0x2bd12f,_0x12225d)=>{const _0x48b010=_0x19de7f;if(!this[_0x48b010(0x297)])return;let {offsetX:_0x52ed73,offsetY:_0x3d2f8d}=_0x2bd12f,_0x54fb84=this[_0x48b010(0x42a)];if(!this[_0x48b010(0x271)]||!_0x54fb84)return;_0x185430[_0x48b010(0x412)](),_0x185430['setCursor'](_0x5663a2[_0x48b010(0x383)][_0x48b010(0x242)]);let _0x375bf2={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x48b010(0x36e)]},_0x2c6f5f=this['_getScrollInfo'](_0x23abf2,_0x24ed35),_0x2d72bd=this['_getZoomRatio'](_0x23abf2,_0x24ed35),_0x3851f9=_0x52ed73/_0x2d72bd+_0x2c6f5f['x']-this[_0x48b010(0x272)],_0x491c5d=_0x3d2f8d/_0x2d72bd+_0x2c6f5f['y']-this[_0x48b010(0x393)];if(_0x2e8f98!==0x0){let _0x292271=this[_0x48b010(0x464)]/0x2,_0x1d4ad3=this[_0x48b010(0x36e)]/0x2,_0x4b5311=_0x2e8f98*Math['PI']/0xb4,_0xbc7013=Math['cos'](_0x4b5311),_0x10e8b6=Math['sin'](_0x4b5311),_0xd975a2=_0x3851f9-_0x292271,_0x5b418d=_0x491c5d-_0x1d4ad3;_0x3851f9=_0x292271+(_0xd975a2*_0xbc7013+_0x5b418d*_0x10e8b6),_0x491c5d=_0x1d4ad3+(-_0xd975a2*_0x10e8b6+_0x5b418d*_0xbc7013);}_0x1ec943&&(_0x3851f9=this[_0x48b010(0x464)]-_0x3851f9),_0xd05c5c&&(_0x491c5d=this[_0x48b010(0x36e)]-_0x491c5d);let _0x2db28c=this['_activeShapeModel'][_0x48b010(0x205)](_0x375bf2,{'x':_0x3851f9,'y':_0x491c5d},_0x54fb84,_0x1ec943,_0xd05c5c),_0x23d366=_0x54fb84[_0x48b010(0x1d4)]||_0x54fb84[_0x48b010(0x342)]||_0x54fb84[_0x48b010(0x3db)]||_0x54fb84['gdRefR'];_0x23d366!==void 0x0&&(this[_0x48b010(0x271)][_0x48b010(0x361)](_0x23d366,_0x2db28c),this[_0x48b010(0x271)][_0x48b010(0x3a8)]({'width':this[_0x48b010(0x464)],'height':this['_baseHeight']}),this[_0x48b010(0x2ea)](_0x23abf2,_0x24ed35,_0x56e3a8,_0x23d366,_0x2db28c),this['_activeAdjustPointList']=this[_0x48b010(0x271)][_0x48b010(0x3a9)](),this[_0x48b010(0x42a)]=this[_0x48b010(0x271)][_0x48b010(0x1af)](_0x284b19),this[_0x48b010(0x2bd)](),_0x12225d[_0x48b010(0x3b6)]());}),this[_0x19de7f(0x217)]=_0x185430[_0x19de7f(0x260)][_0x19de7f(0x1db)]((_0x541fe9,_0x37b59d)=>{const _0x52458f=_0x19de7f;if(this['_adjHandlerPointerMove'][_0x52458f(0x241)](),this[_0x52458f(0x217)][_0x52458f(0x241)](),_0x185430['resetCursor'](),this[_0x52458f(0x271)]){let _0x3b72be=this[_0x52458f(0x271)][_0x52458f(0x1d9)](),_0x5dc480={};for(let _0x2e89f2 of _0x3b72be){let _0x3ccadf=this['_activeShapeModel'][_0x52458f(0x4a9)](_0x2e89f2);_0x3ccadf!==void 0x0&&(_0x5dc480[_0x2e89f2]=_0x3ccadf);}this['_imageShapeClipController'][_0x52458f(0x1a9)](_0x23abf2,_0x24ed35,_0x56e3a8,_0x4e87c4,_0x5dc480);}this[_0x52458f(0x42a)]=void 0x0,this[_0x52458f(0x271)]=void 0x0,this[_0x52458f(0x297)]=!0x1,_0x37b59d[_0x52458f(0x3b6)](),_0x185430[_0x52458f(0x362)]();}),_0x3f0b47[_0x19de7f(0x3b6)]();})));}['_updateImageAdjValues'](_0x2089c8,_0x354ded,_0x53f546,_0x1f5fb2,_0x5cbdb5){const _0x3e75ee=_0x30c533;let _0x443542=this[_0x3e75ee(0x2a6)]['getRenderById'](_0x2089c8);if(!_0x443542)return;let {scene:_0x386be9}=_0x443542,_0x568c5a=(0x0,_0x2c1288[_0x3e75ee(0x44d)])({'unitId':_0x2089c8,'subUnitId':_0x354ded,'drawingId':_0x53f546}),_0x1dd835=_0x386be9[_0x3e75ee(0x21f)](_0x568c5a);if(_0x1dd835 instanceof _0x5663a2['Image']){var _0xa3ebb4;let _0xbed68a=(_0xa3ebb4=_0x1dd835['prstGeomAdjValues'])==null?{}:_0xa3ebb4;_0x1dd835[_0x3e75ee(0x2c0)]({..._0xbed68a,[_0x1f5fb2]:_0x5cbdb5}),_0x1dd835[_0x3e75ee(0x3ce)](!0x0);}}[_0x30c533(0x1b6)](){const _0x45b9c3=_0x30c533;let _0xe586f2=this[_0x45b9c3(0x19f)][_0x45b9c3(0x189)](_0xa2ae07[_0x45b9c3(0x44b)][_0x45b9c3(0x2b7)]);this[_0x45b9c3(0x40b)](_0xe586f2[_0x45b9c3(0x2a9)]((0x0,_0x50bd3e['switchMap'])(_0x509bd8=>_0x509bd8?_0x509bd8[_0x45b9c3(0x339)][_0x45b9c3(0x2a9)]((0x0,_0x50bd3e[_0x45b9c3(0x39e)])(_0x2a74b0=>{const _0x59163c=_0x45b9c3;if(!_0x2a74b0)return _0x50bd3e[_0x59163c(0x331)];let _0x5a8298=_0x509bd8[_0x59163c(0x22e)](),_0x395fb4=this[_0x59163c(0x2a6)]['getRenderById'](_0x5a8298),_0x3b6aa0=_0x395fb4==null?void 0x0:_0x395fb4['scene'];return _0x3b6aa0?(0x0,_0x50bd3e['of'])(_0x3b6aa0):_0x50bd3e['EMPTY'];})):_0x50bd3e[_0x45b9c3(0x331)]))[_0x45b9c3(0x2ba)](_0x3b07c1=>{const _0x51883d=_0x45b9c3;let _0x1cf3d4=_0x3b07c1[_0x51883d(0x300)]();this[_0x51883d(0x40b)](_0x3b07c1['onPointerMove$'][_0x51883d(0x1db)](()=>{const _0x24b789=_0x51883d;this[_0x24b789(0x2c1)]&&this[_0x24b789(0x307)]();})),this[_0x51883d(0x40b)](_0x1cf3d4[_0x51883d(0x399)][_0x51883d(0x2ba)](_0x5cb076=>{const _0x1cccfb=_0x51883d;let {objects:_0x29e293}=_0x5cb076;if(this[_0x1cccfb(0x2bd)](),_0x29e293!==null&&_0x29e293[_0x1cccfb(0x2ab)]===0x1){let _0x467112=_0x29e293[_0x1cccfb(0x276)]()[_0x1cccfb(0x466)]()[_0x1cccfb(0x19e)];_0x467112 instanceof _0x5663a2[_0x1cccfb(0x1c1)]&&_0x467112[_0x1cccfb(0x345)]&&(this[_0x1cccfb(0x2c1)]=!0x0);}})),this['disposeWithMe'](_0x1cf3d4[_0x51883d(0x1e4)][_0x51883d(0x2ba)](()=>{const _0x4abb3e=_0x51883d;this[_0x4abb3e(0x2c1)]&&this[_0x4abb3e(0x307)]();})),this[_0x51883d(0x40b)](_0x3b07c1[_0x51883d(0x260)][_0x51883d(0x1db)](()=>{const _0x42507f=_0x51883d;this[_0x42507f(0x2c1)]&&(this['_isImagePointerDown']=!0x1,this['_createControls']());})),this[_0x51883d(0x40b)](_0x1cf3d4[_0x51883d(0x274)][_0x51883d(0x2ba)](()=>{const _0xce3ef0=_0x51883d;if(this['_unitId']&&this[_0xce3ef0(0x379)]&&this['_activeImageId']){let _0x21fce7=this['_getImagePrstGeom'](this['_unitId'],this[_0xce3ef0(0x379)],this[_0xce3ef0(0x31b)]);if(_0x21fce7){var _0x17ed1d,_0x1d550c;let _0x1f0379=this[_0xce3ef0(0x351)](this[_0xce3ef0(0x3a1)],this[_0xce3ef0(0x379)],this[_0xce3ef0(0x31b)]),_0x305995=(_0x1f0379==null||(_0x17ed1d=_0x1f0379[_0xce3ef0(0x25d)])==null?void 0x0:_0x17ed1d[_0xce3ef0(0x28c)])||0x0,_0x4c8c48=(_0x1f0379==null||(_0x1d550c=_0x1f0379[_0xce3ef0(0x25d)])==null?void 0x0:_0x1d550c[_0xce3ef0(0x42b)])||0x0,_0x16bbeb=this[_0xce3ef0(0x457)](_0x21fce7[_0xce3ef0(0x345)],_0x305995,_0x4c8c48,_0x21fce7[_0xce3ef0(0x27d)]);_0x16bbeb&&(this[_0xce3ef0(0x2a8)]=_0x16bbeb[_0xce3ef0(0x3a9)](),this[_0xce3ef0(0x307)](),this[_0xce3ef0(0x2bd)](!0x0));}}}));}));}[_0x30c533(0x28a)](){const _0x1db1d=_0x30c533;this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x46c)][_0x1db1d(0x2ba)](_0x4e5a69=>{const _0xd76ebe=_0x1db1d;if(_0x4e5a69[_0xd76ebe(0x22a)]===0x1){let _0x1a41d1=_0x4e5a69[0x0];if(_0x1a41d1[_0xd76ebe(0x2f0)]===_0xa2ae07[_0xd76ebe(0x392)][_0xd76ebe(0x2fd)]){let {unitId:_0x51c0e9,subUnitId:_0x3d7016,drawingId:_0x28d506}=_0x1a41d1,_0x47fd3d=this['_getImagePrstGeom'](_0x51c0e9,_0x3d7016,_0x28d506);if(_0x47fd3d){var _0xaaf26f,_0x4d3ed2;this[_0xd76ebe(0x31b)]=_0x28d506,this[_0xd76ebe(0x3a1)]=_0x51c0e9,this['_subUnitId']=_0x3d7016;let _0x29bba4=this['_getImageDrawingInfo'](_0x51c0e9,_0x3d7016,_0x28d506),_0x2366ae=(_0x29bba4==null||(_0xaaf26f=_0x29bba4[_0xd76ebe(0x25d)])==null?void 0x0:_0xaaf26f[_0xd76ebe(0x28c)])||0x0,_0x507409=(_0x29bba4==null||(_0x4d3ed2=_0x29bba4[_0xd76ebe(0x25d)])==null?void 0x0:_0x4d3ed2[_0xd76ebe(0x42b)])||0x0,_0x293c0a=this[_0xd76ebe(0x457)](_0x47fd3d[_0xd76ebe(0x345)],_0x2366ae,_0x507409,_0x47fd3d[_0xd76ebe(0x27d)]);_0x293c0a&&(this[_0xd76ebe(0x2a8)]=_0x293c0a[_0xd76ebe(0x3a9)]()),this[_0xd76ebe(0x307)](),this['_createControls'](!0x0);}else this[_0xd76ebe(0x3a4)]();}else this[_0xd76ebe(0x3a4)]();}else this[_0xd76ebe(0x3a4)]();})),this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x38a)][_0x1db1d(0x2ba)](_0x5de948=>{const _0x285ac0=_0x1db1d;if(_0x5de948[_0x285ac0(0x22a)]===0x1){let _0x4d3460=_0x5de948[0x0],_0x22654a=this[_0x285ac0(0x32f)][_0x285ac0(0x3b1)](_0x4d3460);(_0x22654a==null?void 0x0:_0x22654a[_0x285ac0(0x2f0)])===_0xa2ae07[_0x285ac0(0x392)][_0x285ac0(0x2fd)]&&this[_0x285ac0(0x31b)]===_0x4d3460[_0x285ac0(0x18a)]&&(this[_0x285ac0(0x307)](),this[_0x285ac0(0x2bd)](!0x0));}})),this[_0x1db1d(0x40b)](this[_0x1db1d(0x32f)][_0x1db1d(0x246)][_0x1db1d(0x2ba)](_0x565abe=>{const _0x511291=_0x1db1d;for(let _0x3ca146 of _0x565abe)this['_activeImageId']===_0x3ca146['drawingId']&&this[_0x511291(0x3a4)]();}));}['_resetState'](){const _0x8fbfbf=_0x30c533;this['_activeImageId']=null,this['_unitId']=null,this[_0x8fbfbf(0x379)]=null,this[_0x8fbfbf(0x2a8)]=void 0x0,this[_0x8fbfbf(0x307)]();}};_0x16b33d=_0x164126([_0x4fa083(0x1,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2[_0x30c533(0x37f)])),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x319800))],_0x16b33d);let _0x1d9a43=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x10636e,_0xbb0c2d,_0x173f5e,_0x3249ee){const _0x1591d2=_0x30c533;super(),this['_univerInstanceService']=_0x10636e,this[_0x1591d2(0x3fa)]=_0xbb0c2d,this[_0x1591d2(0x1e1)]=_0x173f5e,this[_0x1591d2(0x2c4)]=_0x3249ee,this[_0x1591d2(0x36b)]();}['_initSheetChange'](){const _0x473e91=_0x30c533;this[_0x473e91(0x40b)](this[_0x473e91(0x3fa)][_0x473e91(0x2e9)]({'getMutations':_0x256d3b=>{const _0x221011=_0x473e91;if(_0x256d3b['id']===_0x2042f3[_0x221011(0x226)]['id']){let _0x17025e=(0x0,_0x2042f3['getSheetCommandTarget'])(this[_0x221011(0x19f)],_0x256d3b['params']);if(!_0x17025e)return{'redos':[],'undos':[]};let {unitId:_0x464316,subUnitId:_0x4ec33e}=_0x17025e,_0x241b86=this['_sheetDrawingService'][_0x221011(0x3b0)](_0x464316,_0x4ec33e),_0x2d6b4a=Object['values'](_0x241b86)[_0x221011(0x35a)](_0x5733d2=>_0x5733d2[_0x221011(0x2f0)]===_0xa2ae07['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x2d6b4a[_0x221011(0x22a)]===0x0)return{'redos':[],'undos':[]};let _0x69ac28=[],_0x1f147c=[];for(let _0x53063e=0x0;_0x53063e<_0x2d6b4a[_0x221011(0x22a)];_0x53063e++){let _0x51287f=_0x2d6b4a[_0x53063e],_0x3b1fce=this[_0x221011(0x2c4)][_0x221011(0x2f4)](_0x51287f[_0x221011(0x367)],_0x51287f[_0x221011(0x481)],_0x51287f[_0x221011(0x18a)]);if(!_0x3b1fce)continue;let {redo:_0x3e268b,undo:_0x56c98b,objects:_0x12adde}=this[_0x221011(0x1e1)][_0x221011(0x323)]([_0x51287f]);_0x69ac28[_0x221011(0x1c2)]({'id':_0xe63f5c[_0x221011(0x2a5)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'shapeId':_0x51287f[_0x221011(0x18a)]}}),_0x69ac28['push']({'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'type':_0x3f4b55[_0x221011(0x462)][_0x221011(0x1d2)],'op':_0x3e268b,'objects':_0x12adde}}),_0x1f147c[_0x221011(0x1c2)]({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'type':_0x3f4b55[_0x221011(0x462)][_0x221011(0x4a5)],'op':_0x56c98b,'objects':_0x12adde}}),_0x1f147c[_0x221011(0x1c2)]({'id':_0xe63f5c[_0x221011(0x42d)]['id'],'params':{'unitId':_0x464316,'subUnitId':_0x4ec33e,'shapeId':_0x51287f[_0x221011(0x18a)],'shapeType':_0x3b1fce['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x221011(0x1bd)](_0x3b1fce[_0x221011(0x2cc)]()))}});}return{'redos':_0x69ac28,'undos':_0x1f147c};}else{if(_0x256d3b['id']===_0x2042f3[_0x221011(0x1f6)]['id']){let {unitId:_0x31926e,subUnitId:_0x4badcd,targetSubUnitId:_0x5d5b51}=_0x256d3b[_0x221011(0x22b)];if(!_0x31926e||!_0x4badcd||!_0x5d5b51)return{'redos':[],'undos':[]};let _0x1622a4=this[_0x221011(0x1e1)][_0x221011(0x3b0)](_0x31926e,_0x4badcd),_0x46b4bf=Object['values'](_0x1622a4)['filter'](_0x614619=>_0x614619['drawingType']===_0xa2ae07[_0x221011(0x392)][_0x221011(0x1c8)]);if(_0x46b4bf[_0x221011(0x22a)]===0x0)return{'redos':[],'undos':[]};let _0x5ade38=[],_0x1b5d2f=[];for(let _0x5c2f8e=0x0;_0x5c2f8e<_0x46b4bf[_0x221011(0x22a)];_0x5c2f8e++){let _0x21a5fa=_0x46b4bf[_0x5c2f8e],_0x16f9fc=this[_0x221011(0x2c4)]['getShapeModel'](_0x21a5fa[_0x221011(0x367)],_0x21a5fa['subUnitId'],_0x21a5fa[_0x221011(0x18a)]);if(!_0x16f9fc)continue;let _0x527438=(0x0,_0xa2ae07['generateRandomId'])(),_0x5f2c7a={..._0x21a5fa,'unitId':_0x31926e,'subUnitId':_0x5d5b51,'drawingId':_0x527438},{redo:_0x272a39,undo:_0x4abd36,objects:_0x42f437}=this[_0x221011(0x1e1)][_0x221011(0x48e)]([_0x5f2c7a]);_0x5ade38['push']({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'type':_0x3f4b55[_0x221011(0x462)]['INSERT'],'op':_0x272a39,'objects':_0x42f437}}),_0x5ade38['push']({'id':_0xe63f5c[_0x221011(0x42d)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'shapeId':_0x527438,'shapeType':_0x16f9fc[_0x221011(0x1bc)](),'shapeData':JSON['parse'](JSON[_0x221011(0x1bd)](_0x16f9fc[_0x221011(0x2cc)]()))}}),_0x1b5d2f['push']({'id':_0xe63f5c[_0x221011(0x2a5)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'shapeId':_0x527438}}),_0x1b5d2f[_0x221011(0x1c2)]({'id':_0x3f4b55[_0x221011(0x3ee)]['id'],'params':{'unitId':_0x31926e,'subUnitId':_0x5d5b51,'type':_0x3f4b55['DrawingApplyType'][_0x221011(0x1d2)],'op':_0x4abd36,'objects':_0x42f437}});}return{'redos':_0x5ade38,'undos':_0x1b5d2f};}}return{'redos':[],'undos':[]};}}));}};_0x1d9a43=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x335)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2042f3[_0x30c533(0x252)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3f4b55[_0x30c533(0x31e)])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)]))],_0x1d9a43);let _0x3659ed=class extends _0xa2ae07['Disposable']{constructor(_0x225035,_0x444a67,_0xd6ce71,_0x53f798,_0x2e55a6){const _0x1152f1=_0x30c533;super(),this[_0x1152f1(0x419)]=_0x225035,this[_0x1152f1(0x450)]=_0x444a67,this[_0x1152f1(0x32f)]=_0xd6ce71,this[_0x1152f1(0x24f)]=_0x53f798,this[_0x1152f1(0x2c4)]=_0x2e55a6,_0x54eac0(this,_0x1152f1(0x405),null),this[_0x1152f1(0x1ec)](),this[_0x1152f1(0x380)](),this[_0x1152f1(0x1a1)]();}[_0x30c533(0x1ec)](){const _0x3de72b=_0x30c533;let {scene:_0x45d094}=this[_0x3de72b(0x419)];this['disposeWithMe'](_0x45d094['onDblclick$'][_0x3de72b(0x1db)](_0xdc2c38=>{const _0xd8df47=_0x3de72b;let {offsetX:_0x8af80f,offsetY:_0x140ff3}=_0xdc2c38,_0x50ea34=_0x45d094[_0xd8df47(0x19b)](_0x5663a2[_0xd8df47(0x265)][_0xd8df47(0x417)]([_0x8af80f,_0x140ff3]));if(_0x50ea34 instanceof _0x4da10f){if((0x0,_0x8713ee['isConnectorShape'])(this[_0xd8df47(0x2c4)][_0xd8df47(0x1bc)](_0x50ea34[_0xd8df47(0x367)],_0x50ea34[_0xd8df47(0x481)],_0x50ea34[_0xd8df47(0x454)])))return;this[_0xd8df47(0x450)][_0xd8df47(0x3b7)]({'visible':!0x0,'unitId':_0x50ea34[_0xd8df47(0x367)],'subUnitId':_0x50ea34[_0xd8df47(0x481)],'shapeId':_0x50ea34[_0xd8df47(0x454)],'shapeKey':_0x50ea34[_0xd8df47(0x427)]});}}));}['_initSelection'](){const _0x1544c3=_0x30c533;this[_0x1544c3(0x40b)](this[_0x1544c3(0x32f)][_0x1544c3(0x46c)][_0x1544c3(0x2ba)](_0x4ae98e=>{const _0x454ee5=_0x1544c3;if(_0x4ae98e['length']===0x1){let _0x2eeb16=_0x4ae98e[0x0],_0x1fce9d=this[_0x454ee5(0x32f)][_0x454ee5(0x3b1)](_0x2eeb16);if((_0x1fce9d==null?void 0x0:_0x1fce9d[_0x454ee5(0x2f0)])===_0xa2ae07[_0x454ee5(0x392)][_0x454ee5(0x1c8)]){let _0x18795d=this['_shapeTextEditingService'][_0x454ee5(0x2fe)]();if((_0x18795d==null?void 0x0:_0x18795d[_0x454ee5(0x454)])===_0x2eeb16[_0x454ee5(0x18a)]&&_0x18795d[_0x454ee5(0x35f)])return;(0x0,_0x8713ee[_0x454ee5(0x3cc)])(this[_0x454ee5(0x2c4)][_0x454ee5(0x1bc)](_0x2eeb16[_0x454ee5(0x367)],_0x2eeb16['subUnitId'],_0x2eeb16[_0x454ee5(0x18a)]))&&this[_0x454ee5(0x450)][_0x454ee5(0x3b7)](null);}else this['_shapeTextEditingService'][_0x454ee5(0x2fe)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x51c5c8=_0x454ee5;this[_0x51c5c8(0x450)][_0x51c5c8(0x3b7)](null);}));}else this[_0x454ee5(0x450)][_0x454ee5(0x2fe)]()&&(this['_shapeTextEditingService'][_0x454ee5(0x3d6)](!0x0),requestAnimationFrame(()=>{const _0xc27c37=_0x454ee5;this[_0xc27c37(0x450)]['setEditing'](null);}));})),this[_0x1544c3(0x40b)](this[_0x1544c3(0x32f)]['remove$'][_0x1544c3(0x2ba)](_0x506e5f=>{const _0x50386d=_0x1544c3;let _0x56f1b0=this['_shapeTextEditingService'][_0x50386d(0x2fe)]();_0x56f1b0&&_0x506e5f[_0x50386d(0x2f9)](_0x1cfb47=>_0x1cfb47[_0x50386d(0x18a)]===_0x56f1b0[_0x50386d(0x454)])&&this[_0x50386d(0x450)][_0x50386d(0x3b7)](null);}));}[_0x30c533(0x1a1)](){const _0x4d4279=_0x30c533;this[_0x4d4279(0x40b)](this[_0x4d4279(0x450)][_0x4d4279(0x202)][_0x4d4279(0x2ba)](_0x4696df=>{const _0x315596=_0x4d4279;let {scene:_0x528129}=this[_0x315596(0x419)];if(this['_lastEditingShapeKey']){let _0x1d4d5f=_0x528129[_0x315596(0x257)](this[_0x315596(0x405)]);_0x1d4d5f&&_0x1d4d5f[_0x315596(0x3b7)](!0x1);}if(_0x4696df){let _0x3d5ef1=!!_0x4696df[_0x315596(0x35f)],_0x493c2e=_0x528129[_0x315596(0x257)](_0x4696df[_0x315596(0x2e4)]);_0x493c2e&&(_0x493c2e[_0x315596(0x3b7)](_0x3d5ef1),this[_0x315596(0x405)]=_0x4696df[_0x315596(0x2e4)]),this[_0x315596(0x24f)][_0x315596(0x365)](_0xa2ae07[_0x315596(0x18b)],_0x3d5ef1);}else this['_lastEditingShapeKey']=null,this[_0x315596(0x24f)][_0x315596(0x365)](_0xa2ae07['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};_0x3659ed=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x580c45)),_0x4fa083(0x2,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x3,_0xa2ae07['IContextService']),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService']))],_0x3659ed);let _0x2a1cdb=class extends _0x2a5532[_0x30c533(0x238)]{constructor(_0x12fc5b,_0x2c2f6c,_0xf5b061,_0xd3fdc9){super(_0x12fc5b,_0x2c2f6c,_0xf5b061,_0xd3fdc9,{'componentKey':_0x367d65,'editorUnitId':_0x5a56de});}};_0x2a1cdb=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3ae947[_0x30c533(0x3d3)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x75d37d[_0x30c533(0x48d)])),_0x4fa083(0x3,(0x0,_0xa2ae07['Inject'])(_0x75d37d[_0x30c533(0x214)]))],_0x2a1cdb);let _0x9c314e=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x2c7c33,_0x4e8bae,_0x31f69a,_0x4637c4,_0x37a925,_0x1e71b5){const _0x5958ec=_0x30c533;super(),this['_commandService']=_0x2c7c33,this[_0x5958ec(0x2a6)]=_0x4e8bae,this['_drawingManagerService']=_0x31f69a,this[_0x5958ec(0x3a2)]=_0x4637c4,this['_drawingRenderService']=_0x37a925,this[_0x5958ec(0x240)]=_0x1e71b5,_0x54eac0(this,_0x5958ec(0x353),new Set()),this[_0x5958ec(0x27a)]();}[_0x30c533(0x27a)](){const _0xe878d0=_0x30c533;this[_0xe878d0(0x1d3)](),this['_commandExecutedListener'](),this[_0xe878d0(0x460)]();}[_0x30c533(0x1d3)](){const _0x22df42=_0x30c533;this['disposeWithMe'](this[_0x22df42(0x32f)][_0x22df42(0x234)][_0x22df42(0x2ba)](_0x1242cb=>{const _0x1bb02f=_0x22df42;this[_0x1bb02f(0x2e3)](_0x1242cb);}));}['_commandExecutedListener'](){const _0x3ade8b=_0x30c533;this[_0x3ade8b(0x40b)](this[_0x3ade8b(0x1d7)][_0x3ade8b(0x3e1)](_0x12f900=>{const _0x168818=_0x3ade8b;if(_0x12f900['id']===_0xe63f5c[_0x168818(0x268)]['id']){let {unitId:_0x1b7feb,subUnitId:_0x30bd22,shapeId:_0x477929}=_0x12f900[_0x168818(0x22b)],_0x9c6c80=this[_0x168818(0x33f)](_0x1b7feb),_0x5851f9=(0x0,_0x2c1288[_0x168818(0x44d)])({'unitId':_0x1b7feb,'subUnitId':_0x30bd22,'drawingId':_0x477929}),_0x596a9b=_0x9c6c80==null?void 0x0:_0x9c6c80[_0x168818(0x1e7)][_0x168818(0x257)](_0x5851f9);_0x596a9b&&(this['_sheetDrawingShapeRenderController']['refreshShapeFillImage'](_0x596a9b),_0x596a9b[_0x168818(0x3ce)](!0x0));return;}if(_0x12f900['id']===_0xe63f5c[_0x168818(0x42d)]['id']){var _0x3c6ffb;let {unitId:_0x11e166,subUnitId:_0x5e4459,shapeId:_0x302cb0}=_0x12f900['params'],_0x42a843=this[_0x168818(0x33f)](_0x11e166);if(_0x42a843==null)return;let {scene:_0x5d344a}=_0x42a843,_0x5f3197=(0x0,_0x2c1288[_0x168818(0x44d)])({'unitId':_0x11e166,'subUnitId':_0x5e4459,'drawingId':_0x302cb0}),_0x1cd6e5=_0x5d344a[_0x168818(0x257)](_0x5f3197);if(!((_0x3c6ffb=this[_0x168818(0x2a6)][_0x168818(0x3f7)](_0x11e166))!=null&&_0x3c6ffb[_0x168818(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0x168818(0x3dd)](_0x5e4459)))return!0x1;if(_0x1cd6e5)return;this['_insertShapes']([{'unitId':_0x11e166,'subUnitId':_0x5e4459,'drawingId':_0x302cb0}]);}}));}[_0x30c533(0x460)](){const _0x39d78e=_0x30c533;this[_0x39d78e(0x40b)](this[_0x39d78e(0x32f)][_0x39d78e(0x38a)][_0x39d78e(0x2ba)](_0x1d541f=>{const _0x5149f6=_0x39d78e;_0x1d541f[_0x5149f6(0x37b)](_0x16fec5=>{const _0x3d3a5b=_0x5149f6;let {unitId:_0x2ef1f1,subUnitId:_0x2bd731,drawingId:_0x46e06d}=_0x16fec5,_0xdfc818=this[_0x3d3a5b(0x32f)][_0x3d3a5b(0x3b1)](_0x16fec5);if(_0xdfc818==null)return;let {transform:_0x112fe7,drawingType:_0x2ea148,srcRect:_0x990da0,prstGeom:_0x507a62}=_0xdfc818;if(_0x2ea148!==_0xa2ae07[_0x3d3a5b(0x392)][_0x3d3a5b(0x1c8)])return;let _0x4ac51c=this['_getSceneAndTransformerByDrawingSearch'](_0x2ef1f1);if(_0x4ac51c==null)return;let {scene:_0x4d86db,transformer:_0x13d75e}=_0x4ac51c;if(_0x112fe7==null)return!0x0;let _0x2dbaa4=(0x0,_0x2c1288[_0x3d3a5b(0x44d)])({'unitId':_0x2ef1f1,'subUnitId':_0x2bd731,'drawingId':_0x46e06d}),_0x5763f9=_0x4d86db[_0x3d3a5b(0x257)](_0x2dbaa4);if(_0x5763f9==null)return!0x0;_0x5763f9[_0x3d3a5b(0x27e)](_0x990da0),_0x5763f9['setPrstGeom'](_0x507a62);});}));}[_0x30c533(0x2e3)](_0x405368){const _0x320cc3=_0x30c533;for(let _0x42ac56 of _0x405368){var _0x5cfccc;let {unitId:_0x441dae,subUnitId:_0x4db4f2,drawingId:_0x277bd6}=_0x42ac56,_0x2cc04a=this[_0x320cc3(0x33f)](_0x441dae),_0x44271e=(_0x5cfccc=(0x0,_0x5e919d['getCurrentUnitInfo'])(this[_0x320cc3(0x3a2)],_0x441dae))==null?void 0x0:_0x5cfccc[_0x320cc3(0x481)];if(_0x2cc04a==null||_0x44271e!==_0x4db4f2)return;let _0x482f4c=(0x0,_0x2c1288[_0x320cc3(0x44d)])({'unitId':_0x441dae,'subUnitId':_0x4db4f2,'drawingId':_0x277bd6});if(this['_insertingShapeKeys'][_0x320cc3(0x408)](_0x482f4c)||_0x2cc04a['scene'][_0x320cc3(0x257)](_0x482f4c)!=null)return;let _0x4c8cae=this[_0x320cc3(0x32f)][_0x320cc3(0x3b1)](_0x42ac56);if(_0x4c8cae==null||_0x4c8cae[_0x320cc3(0x2f0)]!==_0xa2ae07[_0x320cc3(0x392)][_0x320cc3(0x1c8)])return;if((0x0,_0x8713ee['isConnectorShape'])((_0x4c8cae[_0x320cc3(0x303)]||{})[_0x320cc3(0x20f)])){let _0x38d869=_0x4c8cae['transform'];_0x38d869&&(_0x4c8cae['transform']={..._0x38d869,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x320cc3(0x353)][_0x320cc3(0x39c)](_0x482f4c);try{this[_0x320cc3(0x240)][_0x320cc3(0x3c3)](_0x4c8cae,_0x2cc04a[_0x320cc3(0x1e7)]);}finally{this[_0x320cc3(0x353)][_0x320cc3(0x3be)](_0x482f4c);}queueMicrotask(()=>{const _0x1dd46f=_0x320cc3;if(this['_disposed'])return;let _0x37f427=(0x0,_0x2c1288[_0x1dd46f(0x44d)])(_0x42ac56);if(!_0x2cc04a[_0x1dd46f(0x1e7)][_0x1dd46f(0x257)](_0x37f427))return;let _0x414999=this[_0x1dd46f(0x32f)]['getDrawingByParam'](_0x42ac56);_0x414999&&this[_0x1dd46f(0x32f)][_0x1dd46f(0x207)]([_0x414999]);});}}[_0x30c533(0x33f)](_0x3f08c9){const _0x50c3c4=_0x30c533;if(_0x3f08c9==null)return;let _0x4aae75=this[_0x50c3c4(0x2a6)]['getRenderById'](_0x3f08c9),_0x457214=_0x4aae75==null?void 0x0:_0x4aae75[_0x50c3c4(0x1e7)];return _0x457214==null?null:{'scene':_0x457214,'transformer':_0x457214[_0x50c3c4(0x300)]()};}};_0x9c314e=_0x164126([_0x4fa083(0x0,_0xa2ae07[_0x30c533(0x24b)]),_0x4fa083(0x1,_0x5663a2[_0x30c533(0x37f)]),_0x4fa083(0x2,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5e919d[_0x30c533(0x492)])),_0x4fa083(0x5,(0x0,_0xa2ae07['Inject'])(_0x568a7c))],_0x9c314e);let _0x3c55a1={'normal':{'fill':_0x8713ee[_0x30c533(0x27f)][_0x30c533(0x33e)],'stroke':_0x8713ee['ShapeDefaultConfig'][_0x30c533(0x266)],'strokeWidth':_0x8713ee[_0x30c533(0x27f)][_0x30c533(0x21a)]},'highlighted':{'fill':_0x30c533(0x423),'stroke':_0x30c533(0x3b8),'strokeWidth':0x2}};var _0x1a8d00=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x3da296,_0x10bb84){const _0x4c633b=_0x30c533;super(_0x3da296,_0x10bb84),_0x54eac0(this,'_targetShapeId',''),_0x54eac0(this,_0x4c633b(0x445),-0x1),_0x54eac0(this,_0x4c633b(0x3a1),''),_0x54eac0(this,_0x4c633b(0x379),''),_0x54eac0(this,'_isHighlighted',!0x1),_0x10bb84&&this[_0x4c633b(0x3e9)](_0x10bb84);}['getConnectionInfo'](){const _0x57ac9a=_0x30c533;return{'unitId':this[_0x57ac9a(0x3a1)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x57ac9a(0x2aa)],'cxnIndex':this['_cxnIndex']};}[_0x30c533(0x4a7)](_0x20cd24){const _0x19ecec=_0x30c533;this['_isHighlighted']!==_0x20cd24&&(this['_isHighlighted']=_0x20cd24,this[_0x19ecec(0x3ce)](!0x0));}['isHighlighted'](){return this['_isHighlighted'];}[_0x30c533(0x3e9)](_0x4d01f2){const _0x9f018a=_0x30c533;var _0x3c5bfe,_0x5804a0;_0x4d01f2['targetShapeId']!==void 0x0&&(this[_0x9f018a(0x2aa)]=_0x4d01f2[_0x9f018a(0x3f8)]),_0x4d01f2['cxnIndex']!==void 0x0&&(this[_0x9f018a(0x445)]=_0x4d01f2[_0x9f018a(0x3f3)]),_0x4d01f2[_0x9f018a(0x367)]!==void 0x0&&(this[_0x9f018a(0x3a1)]=_0x4d01f2[_0x9f018a(0x367)]),_0x4d01f2['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x4d01f2[_0x9f018a(0x481)]),_0x4d01f2[_0x9f018a(0x47e)]!==void 0x0&&(this[_0x9f018a(0x3bf)]=_0x4d01f2[_0x9f018a(0x47e)]),this[_0x9f018a(0x2d0)]({'width':(_0x3c5bfe=_0x4d01f2[_0x9f018a(0x28c)])==null?_0x8713ee[_0x9f018a(0x27f)][_0x9f018a(0x1fd)]*0x2:_0x3c5bfe,'height':(_0x5804a0=_0x4d01f2[_0x9f018a(0x42b)])==null?_0x8713ee[_0x9f018a(0x27f)][_0x9f018a(0x1fd)]*0x2:_0x5804a0});}['_draw'](_0x39ae42){const _0x2b866a=_0x30c533;let _0x2774ec=this[_0x2b866a(0x3bf)]?_0x3c55a1[_0x2b866a(0x359)]:_0x3c55a1['normal'];_0x5663a2['Circle'][_0x2b866a(0x3fe)](_0x39ae42,{'radius':_0x8713ee['ShapeDefaultConfig']['cxnPointRadius'],'fill':_0x2774ec[_0x2b866a(0x3c1)],'stroke':_0x2774ec[_0x2b866a(0x3e3)],'strokeWidth':_0x2774ec[_0x2b866a(0x2bb)],'evented':!0x0});}};let _0x507830=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x2620c3,_0x2350e3,_0x46fda7,_0x5a9b9e){const _0x290d36=_0x30c533;super(),this['_context']=_0x2620c3,this['_renderManagerService']=_0x2350e3,this[_0x290d36(0x32f)]=_0x46fda7,this[_0x290d36(0x2c4)]=_0x5a9b9e,_0x54eac0(this,_0x290d36(0x1b8),[]),_0x54eac0(this,_0x290d36(0x259),null),_0x54eac0(this,_0x290d36(0x1b4),-0x1),_0x54eac0(this,_0x290d36(0x493),null),_0x54eac0(this,_0x290d36(0x3a1),''),_0x54eac0(this,_0x290d36(0x379),''),_0x54eac0(this,'_draggingConnectorId',null);}[_0x30c533(0x354)](_0x8f3166,_0x2f5138,_0x146ebd,_0x400718){const _0x5674e8=_0x30c533;this[_0x5674e8(0x493)]=_0x8f3166,this[_0x5674e8(0x3a1)]=_0x2f5138,this[_0x5674e8(0x379)]=_0x146ebd,this[_0x5674e8(0x395)]=_0x400718;}[_0x30c533(0x441)](_0x393c3c){const _0x2b3816=_0x30c533;if(!this[_0x2b3816(0x493)])return null;let _0x4d8b04=this[_0x2b3816(0x30a)](_0x393c3c);return _0x4d8b04?(this['_activeTargetShapeId']!==_0x4d8b04[_0x2b3816(0x454)]&&(this[_0x2b3816(0x40f)](),this[_0x2b3816(0x1ee)](_0x4d8b04['shapeId'],_0x4d8b04[_0x2b3816(0x3c9)]),this[_0x2b3816(0x259)]=_0x4d8b04['shapeId']),this[_0x2b3816(0x26d)](_0x393c3c)):(this[_0x2b3816(0x259)]!==null&&(this['_clearConnectionSites'](),this['_activeTargetShapeId']=null),null);}[_0x30c533(0x31c)](){const _0x44d2f2=_0x30c533;this[_0x44d2f2(0x40f)](),this[_0x44d2f2(0x493)]=null,this[_0x44d2f2(0x259)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x44d2f2(0x395)]=null;}['getConnectionRelation'](){const _0x124f70=_0x30c533;return this['_activeTargetShapeId']===null||this[_0x124f70(0x1b4)]<0x0?null:{'shapeId':this[_0x124f70(0x259)],'cxnIndex':this[_0x124f70(0x1b4)]};}[_0x30c533(0x30a)](_0x14fc16){const _0x3a3882=_0x30c533;let _0x3372fe=this[_0x3a3882(0x32f)]['getDrawingData'](this[_0x3a3882(0x3a1)],this[_0x3a3882(0x379)]);for(let _0x37f105 of Object['keys'](_0x3372fe)){if(_0x37f105===this['_draggingConnectorId']||_0x3372fe[_0x37f105][_0x3a3882(0x2f0)]!==_0xa2ae07[_0x3a3882(0x392)][_0x3a3882(0x1c8)])continue;let _0x2bfe70=this[_0x3a3882(0x2c4)][_0x3a3882(0x2f4)](this['_unitId'],this['_subUnitId'],_0x37f105);if(!_0x2bfe70||(0x0,_0x8713ee[_0x3a3882(0x3cc)])(_0x2bfe70[_0x3a3882(0x1bc)]())||_0x2bfe70['getConnectionSiteList']()['length']===0x0||!this[_0x3a3882(0x493)])continue;let _0xf7f8b=(0x0,_0x2c1288[_0x3a3882(0x44d)])({'unitId':this[_0x3a3882(0x3a1)],'subUnitId':this[_0x3a3882(0x379)],'drawingId':_0x37f105}),_0x30e0cd=this[_0x3a3882(0x493)][_0x3a3882(0x257)](_0xf7f8b);if(!_0x30e0cd)continue;let {left:_0x563616,top:_0x139e17,width:_0x470400,height:_0x1d0f97}=_0x30e0cd[_0x3a3882(0x1de)](),_0x513bae=_0x563616+_0x470400/0x2,_0x5bf8b3=_0x139e17+_0x1d0f97/0x2,_0x2f7c8d=_0x30e0cd[_0x3a3882(0x25d)][_0x3a3882(0x3cb)](),_0x630d6c=new _0x5663a2['Transform']([_0x2f7c8d[0x0],_0x2f7c8d[0x1],_0x2f7c8d[0x2],_0x2f7c8d[0x3],_0x513bae,_0x5bf8b3]),_0x2942ef=_0x30e0cd[_0x3a3882(0x1a7)](),_0x2af94e=(_0x30e0cd[_0x3a3882(0x258)]&&(_0x2942ef==null?void 0x0:_0x2942ef[_0x3a3882(0x381)])===_0x5663a2[_0x3a3882(0x44c)]['GROUP']?_0x2942ef[_0x3a3882(0x3df)][_0x3a3882(0x44e)](_0x630d6c):_0x630d6c)['invert']()['applyPoint'](_0x14fc16),_0x19dfbd=_0x470400/0x2,_0x35a3bb=_0x1d0f97/0x2;if(_0x2af94e['x']>=-_0x19dfbd-0x5&&_0x2af94e['x']<=_0x19dfbd+0x5&&_0x2af94e['y']>=-_0x35a3bb-0x5&&_0x2af94e['y']<=_0x35a3bb+0x5)return{'shapeId':_0x37f105,'shapeModel':_0x2bfe70};}return null;}[_0x30c533(0x1ee)](_0x24d912,_0x1cff8d){const _0x22103e=_0x30c533;if(!this['_currentScene'])return;let _0x4fa5e1=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x22103e(0x3a1)],'subUnitId':this[_0x22103e(0x379)],'drawingId':_0x24d912}),_0x2a72ab=this[_0x22103e(0x493)][_0x22103e(0x257)](_0x4fa5e1);if(!_0x2a72ab)return;let {left:_0x2d5a1c,top:_0x19ae48,width:_0x1eb86c,height:_0x4a6279}=_0x2a72ab[_0x22103e(0x1de)](),_0x3c0f4c=_0x2d5a1c+_0x1eb86c/0x2,_0xbf47f1=_0x19ae48+_0x4a6279/0x2,_0x6db83d=_0x2a72ab[_0x22103e(0x25d)][_0x22103e(0x3cb)](),_0x3c659c=new _0x5663a2[(_0x22103e(0x344))]([_0x6db83d[0x0],_0x6db83d[0x1],_0x6db83d[0x2],_0x6db83d[0x3],_0x3c0f4c,_0xbf47f1]),_0x3aba88=_0x2a72ab[_0x22103e(0x1a7)](),_0x386d2a=_0x2a72ab[_0x22103e(0x258)]&&(_0x3aba88==null?void 0x0:_0x3aba88[_0x22103e(0x381)])===_0x5663a2[_0x22103e(0x44c)][_0x22103e(0x28d)]?_0x3aba88[_0x22103e(0x3df)][_0x22103e(0x44e)](_0x3c659c):_0x3c659c;_0x1cff8d[_0x22103e(0x3a8)]({'width':_0x1eb86c,'height':_0x4a6279});let _0x3c3941=_0x1cff8d[_0x22103e(0x245)]();for(let _0x31f621 of _0x3c3941){let _0xdbfdc4=_0x31f621['x']-_0x1eb86c/0x2,_0x53eabb=_0x31f621['y']-_0x4a6279/0x2,_0x2aef1f=_0x386d2a['applyPoint']({'x':_0xdbfdc4,'y':_0x53eabb}),_0x3470b7=_0x2aef1f['x'],_0x45a710=_0x2aef1f['y'],_0x17b8ab=new _0x1a8d00(_0x22103e(0x3a0)+_0x24d912+'-'+_0x31f621[_0x22103e(0x41f)],{'left':_0x3470b7-_0x8713ee[_0x22103e(0x27f)]['cxnPointRadius'],'top':_0x45a710-_0x8713ee[_0x22103e(0x27f)]['cxnPointRadius'],'targetShapeId':_0x24d912,'cxnIndex':_0x31f621['index'],'unitId':this['_unitId'],'subUnitId':this[_0x22103e(0x379)],'width':_0x8713ee[_0x22103e(0x27f)][_0x22103e(0x1fd)]*0x2,'height':_0x8713ee[_0x22103e(0x27f)][_0x22103e(0x1fd)]*0x2,'zIndex':_0x5663a2[_0x22103e(0x3da)]+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x22103e(0x1c2)](_0x17b8ab),this[_0x22103e(0x493)][_0x22103e(0x33a)](_0x17b8ab,_0x5663a2[_0x22103e(0x3da)]+0x2);}}[_0x30c533(0x26d)](_0x309d5e){const _0x501dfb=_0x30c533;let _0xf96062=null,_0x392b21=0x1/0x0,_0x3cd124=null;for(let _0x367a27 of this[_0x501dfb(0x1b8)]){let _0xdcb0d=_0x367a27[_0x501dfb(0x411)]+_0x8713ee[_0x501dfb(0x27f)][_0x501dfb(0x1fd)],_0x3cbb8b=_0x367a27['top']+_0x8713ee[_0x501dfb(0x27f)]['cxnPointRadius'],_0x36579a=_0x309d5e['x']-_0xdcb0d,_0x595fec=_0x309d5e['y']-_0x3cbb8b,_0x2a0b13=Math[_0x501dfb(0x3c4)](_0x36579a*_0x36579a+_0x595fec*_0x595fec);_0x2a0b13<_0x392b21&&(_0x392b21=_0x2a0b13,_0xf96062=_0x367a27,_0x3cd124={'x':_0xdcb0d,'y':_0x3cbb8b});}let _0x18d04b=_0x392b21<=0xa&&_0xf96062?_0xf96062[_0x501dfb(0x306)]()['cxnIndex']:-0x1;if(_0x18d04b!==this[_0x501dfb(0x1b4)]){for(let _0x577667 of this[_0x501dfb(0x1b8)]){let _0xc3bd99=_0x577667[_0x501dfb(0x306)]();_0x577667['setHighlighted'](_0xc3bd99[_0x501dfb(0x3f3)]===_0x18d04b);}this[_0x501dfb(0x1b4)]=_0x18d04b;}if(_0x392b21<=0xa&&_0xf96062&&_0x3cd124){let _0x406da1=_0xf96062[_0x501dfb(0x306)](),_0x333696=this[_0x501dfb(0x338)](_0x406da1['shapeId'],_0x406da1[_0x501dfb(0x3f3)]);return{'shapeId':_0x406da1[_0x501dfb(0x454)],'cxnIndex':_0x406da1[_0x501dfb(0x3f3)],'unitId':_0x406da1['unitId'],'subUnitId':_0x406da1['subUnitId'],'worldPoint':_0x3cd124,'angle':_0x333696};}return null;}['_getConnectionSiteAngle'](_0x4949f1,_0x4316cd){const _0x54af62=_0x30c533;let _0x1bc670=this['_sheetsShapeService'][_0x54af62(0x2f4)](this[_0x54af62(0x3a1)],this[_0x54af62(0x379)],_0x4949f1);if(!_0x1bc670)return 0x0;let _0x1d1f30=this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x54af62(0x3a1)],'subUnitId':this[_0x54af62(0x379)],'drawingId':_0x4949f1});if(!(_0x1d1f30!=null&&_0x1d1f30['transform']))return 0x0;let {width:_0x23ff60=0x0,height:_0x238fce=0x0,flipX:_0xf6548=!0x1,flipY:_0x14eefc=!0x1}=_0x1d1f30[_0x54af62(0x25d)];_0x1bc670['updateContext']({'width':_0x23ff60,'height':_0x238fce});let _0x23ab64=_0x1bc670[_0x54af62(0x245)]()[_0x54af62(0x2a7)](_0x38298b=>_0x38298b[_0x54af62(0x41f)]===_0x4316cd);if(!_0x23ab64)return 0x0;let _0x1626f2=_0x23ab64['ang']/0xea60;return _0xf6548&&(_0x1626f2=0xb4-_0x1626f2),_0x14eefc&&(_0x1626f2=-_0x1626f2),_0x1626f2=(_0x1626f2%0x168+0x168)%0x168,_0x1626f2;}[_0x30c533(0x40f)](){const _0xe5fa78=_0x30c533;for(let _0x11d5b8 of this[_0xe5fa78(0x1b8)])_0x11d5b8[_0xe5fa78(0x1e9)]();this[_0xe5fa78(0x1b8)]=[],this[_0xe5fa78(0x1b4)]=-0x1;}[_0x30c533(0x1e9)](){const _0x32c26c=_0x30c533;this[_0x32c26c(0x40f)](),super[_0x32c26c(0x1e9)]();}};_0x507830=_0x164126([_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x5663a2[_0x30c533(0x37f)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2c1288[_0x30c533(0x21e)])),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c[_0x30c533(0x3dc)]))],_0x507830);let _0x1e8b99=class extends _0xa2ae07['Disposable']{constructor(_0x23fa56,_0x5b798c,_0x12db41,_0xc2e743,_0x3c3a3c){const _0x186081=_0x30c533;super(),this[_0x186081(0x1ab)]=_0x23fa56,this[_0x186081(0x2f6)]=_0x5b798c,this[_0x186081(0x1e1)]=_0x12db41,this['_shapeService']=_0xc2e743,this[_0x186081(0x261)]=_0x3c3a3c,_0x54eac0(this,'_copyInfo',void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x30c533(0x3d9)](){const _0x3cad40=_0x30c533;return this[_0x3cad40(0x1e1)]['getFocusDrawings']();}['_registerGroupFeaturePasteHook'](){const _0x367ea4=_0x30c533;this[_0x367ea4(0x261)]['registerFeaturePasteHook'](({fromUnitId:_0x315505,fromSubUnitId:_0x348415,toUnitId:_0x143224,toSubUnitId:_0x4fe269,idMap:_0x3a5b47})=>{const _0x5a7024=_0x367ea4;let _0x859fca=[],_0x4872dc=[];for(let [_0x2dd615,_0x470640]of _0x3a5b47[_0x5a7024(0x3eb)]()){let _0x120876=this[_0x5a7024(0x49a)][_0x5a7024(0x2f4)](_0x315505,_0x348415,_0x2dd615);if(!_0x120876)continue;let _0x55b15c=_0x120876[_0x5a7024(0x1bc)](),_0x1a9f24=JSON[_0x5a7024(0x237)](JSON['stringify'](_0x120876['getShapeData']()));if(_0x1a9f24[_0x5a7024(0x371)]){var _0x1b163e,_0x4a3088;let _0x34053b=(_0x1b163e=_0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)])==null?void 0x0:_0x1b163e[_0x5a7024(0x454)],_0x4b9de5=(_0x4a3088=_0x1a9f24['relation']['to'])==null?void 0x0:_0x4a3088[_0x5a7024(0x454)],_0x421cf5=_0x34053b?_0x3a5b47[_0x5a7024(0x408)](_0x34053b):!0x0,_0x4d9dc0=_0x4b9de5?_0x3a5b47['has'](_0x4b9de5):!0x0;_0x421cf5&&_0x34053b&&_0x1a9f24['relation']['from']?_0x1a9f24['relation'][_0x5a7024(0x3f0)]={..._0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)],'shapeId':_0x3a5b47[_0x5a7024(0x1a3)](_0x34053b)}:_0x1a9f24[_0x5a7024(0x371)][_0x5a7024(0x3f0)]=void 0x0,_0x4d9dc0&&_0x4b9de5&&_0x1a9f24['relation']['to']?_0x1a9f24[_0x5a7024(0x371)]['to']={..._0x1a9f24[_0x5a7024(0x371)]['to'],'shapeId':_0x3a5b47['get'](_0x4b9de5)}:_0x1a9f24[_0x5a7024(0x371)]['to']=void 0x0;}_0x859fca[_0x5a7024(0x1c2)]({'id':_0xe63f5c[_0x5a7024(0x42d)]['id'],'params':{'unitId':_0x143224,'subUnitId':_0x4fe269,'shapeId':_0x470640,'shapeType':_0x55b15c,'shapeData':_0x1a9f24}}),_0x4872dc[_0x5a7024(0x1c2)]({'id':_0xe63f5c[_0x5a7024(0x2a5)]['id'],'params':{'unitId':_0x143224,'subUnitId':_0x4fe269,'shapeId':_0x470640}});}return{'redos':_0x859fca,'undos':_0x4872dc};});}[_0x30c533(0x2f1)](){const _0xfcfa20=_0x30c533;this[_0xfcfa20(0x40b)](this[_0xfcfa20(0x2f6)]['addClipboardHook']({'id':_0xfcfa20(0x2f3),'onBeforeCopy':(_0x1bc21b,_0x3bf1c9,_0x534ed9,_0x5a55e8)=>{const _0x3c61ae=_0xfcfa20;this[_0x3c61ae(0x2c9)]=null;let _0x1d5155=this['_focusedDrawings'];if(_0x1d5155[_0x3c61ae(0x22a)]){let _0x33b7e5=_0x1d5155['filter'](_0x4eacf9=>_0x4eacf9[_0x3c61ae(0x2f0)]===_0xa2ae07[_0x3c61ae(0x392)][_0x3c61ae(0x1c8)]);if(_0x33b7e5[_0x3c61ae(0x22a)]===0x0)return;this[_0x3c61ae(0x2c9)]={'unitId':_0x1bc21b,'subUnitId':_0x3bf1c9,'copyType':_0x5a55e8,'drawings':_0x33b7e5};}else this[_0x3c61ae(0x39b)](_0x1bc21b,_0x3bf1c9,_0x534ed9,_0x5a55e8);},'onPasteCells':(_0x382d6a,_0x40e9e4,_0x45600f,_0x1d2c27)=>{const _0x130ee5=_0xfcfa20;if(!this[_0x130ee5(0x2c9)])return{'redos':[],'undos':[]};let {pasteType:_0x888471}=_0x1d2c27;return _0x888471===_0xe965b[_0x130ee5(0x2eb)][_0x130ee5(0x283)]?this[_0x130ee5(0x3bc)](_0x40e9e4,this['_copyInfo'][_0x130ee5(0x3a5)]===_0xe965b[_0x130ee5(0x285)][_0x130ee5(0x1f2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x554871=>this['_copyInfo']?this['_generatePasteMutations'](_0x554871,this[_0xfcfa20(0x2c9)][_0xfcfa20(0x3a5)]===_0xe965b['COPY_TYPE'][_0xfcfa20(0x1f2)]):{'redos':[],'undos':[]}}));}[_0x30c533(0x39b)](_0x339485,_0x335316,_0x4e7236,_0x3d9352){const _0x111bfa=_0x30c533;let _0x1d471c=this[_0x111bfa(0x1ab)]['getSkeleton'](_0x339485,_0x335316);if(!_0x1d471c)return;let _0x3bb2de=(0x0,_0x2042f3['attachRangeWithCoord'])(_0x1d471c,_0x4e7236);if(!_0x3bb2de)return;let {startX:_0x29cf4f,endX:_0x5c1220,startY:_0x219815,endY:_0x5dbf79}=_0x3bb2de,_0x1e13cd=this[_0x111bfa(0x1e1)][_0x111bfa(0x3b0)](_0x339485,_0x335316),_0x29083f=this[_0x111bfa(0x3d9)]['slice']();for(let [_0x433d85,_0x6b6ccb]of Object[_0x111bfa(0x3eb)](_0x1e13cd)){if(_0x6b6ccb[_0x111bfa(0x2f0)]!==_0xa2ae07[_0x111bfa(0x392)][_0x111bfa(0x1c8)])continue;let {transform:_0x3cae9b}=_0x6b6ccb;if(!_0x3cae9b)continue;let {left:_0x261440=0x0,top:_0x149388=0x0,width:_0x3e9c8f=0x0,height:_0x2a99df=0x0}=_0x3cae9b;_0x29cf4f<=_0x261440&&_0x5c1220>=_0x261440+_0x3e9c8f&&_0x219815<=_0x149388&&_0x5dbf79>=_0x149388+_0x2a99df&&_0x29083f[_0x111bfa(0x1c2)](_0x6b6ccb);}_0x29083f['length']>0x0&&(this[_0x111bfa(0x2c9)]={'unitId':_0x339485,'subUnitId':_0x335316,'copyType':_0x3d9352,'copyRange':_0x4e7236,'drawings':_0x29083f});}[_0x30c533(0x3bc)](_0x3e28f4,_0x398665){const _0x29c8d9=_0x30c533;let {unitId:_0x204f55,subUnitId:_0x815f38,range:_0x5a1285}=_0x3e28f4,_0x206913=this['_sheetSkeletonService']['getSkeleton'](_0x204f55,_0x815f38);if(!_0x206913)return{'redos':[],'undos':[]};let _0x101da2=(0x0,_0x2042f3[_0x29c8d9(0x41e)])(_0x5a1285),{unitId:_0x1b94e8,subUnitId:_0x51a9c4,copyRange:_0x49c245,drawings:_0x517de4}=this[_0x29c8d9(0x2c9)],_0x391fda=this[_0x29c8d9(0x1ab)][_0x29c8d9(0x3dd)](_0x1b94e8,_0x51a9c4);if(!_0x391fda)return{'redos':[],'undos':[]};let _0x594753;if(!_0x49c245){let _0x5759b1=0x1/0x0,_0xec2707=0x1/0x0;for(let _0x58f9e0 of _0x517de4){var _0x39a4ba;let {left:_0x122140=0x0,top:_0x160235=0x0}=(_0x39a4ba=_0x58f9e0[_0x29c8d9(0x25d)])==null?{}:_0x39a4ba;_0x122140<_0x5759b1&&(_0x5759b1=_0x122140),_0x160235<_0xec2707&&(_0xec2707=_0x160235);}_0x5759b1!==0x1/0x0&&_0xec2707!==0x1/0x0&&(_0x594753={'left':_0x5759b1,'top':_0xec2707});}let _0x2e9e06=new Map();if(!_0x398665){for(let _0x53d6e7 of _0x517de4)_0x2e9e06[_0x29c8d9(0x2d4)](_0x53d6e7[_0x29c8d9(0x18a)],(0x0,_0xa2ae07[_0x29c8d9(0x292)])());}let _0x298f43=[],_0x287bd8=[];for(let _0x3eb085 of _0x517de4){let {drawingId:_0x1c0187,transform:_0x20b5ef,sheetTransform:_0x3e22a1}=_0x3eb085;if(!_0x20b5ef||!_0x3e22a1)continue;let _0x29748a=this[_0x29c8d9(0x26e)]({'transform':_0x20b5ef,'sheetTransform':_0x3e22a1},{'skeleton':_0x391fda,'range':_0x49c245},{'skeleton':_0x206913,'range':_0x101da2},_0x594753);if(_0x398665){let {redos:_0x4636bc,undos:_0x424340}=this[_0x29c8d9(0x404)]({'fromUnitId':_0x1b94e8,'fromSubUnitId':_0x51a9c4,'toUnitId':_0x204f55,'toSubUnitId':_0x815f38,'drawing':_0x3eb085,'newTransforms':_0x29748a});_0x298f43[_0x29c8d9(0x1c2)](..._0x4636bc),_0x287bd8['push'](..._0x424340);continue;}let {redos:_0x417e80,undos:_0x1c3297}=this[_0x29c8d9(0x1f0)]({'toUnitId':_0x204f55,'toSubUnitId':_0x815f38,'drawing':_0x3eb085,'newTransforms':_0x29748a,'newDrawingId':_0x2e9e06[_0x29c8d9(0x1a3)](_0x1c0187),'idMap':_0x2e9e06});_0x298f43['push'](..._0x417e80),_0x287bd8['push'](..._0x1c3297);}return{'redos':_0x298f43,'undos':_0x287bd8};}[_0x30c533(0x404)](_0x296bd3){const _0xecdf61=_0x30c533;let {fromUnitId:_0x485f55,fromSubUnitId:_0x3e865f,toUnitId:_0x4b9ca6,toSubUnitId:_0x244bc4,drawing:_0x1d32d2,newTransforms:_0x5a9dda}=_0x296bd3,_0x3cde67={..._0x1d32d2,'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'transform':_0x5a9dda['transform'],'sheetTransform':_0x5a9dda[_0xecdf61(0x328)]};if(_0x4b9ca6===_0x485f55&&_0x244bc4===_0x3e865f){let {redo:_0x182cb9,undo:_0x3749a1,objects:_0x1d3dc9}=this['_sheetDrawingService'][_0xecdf61(0x251)]([_0x3cde67]);return{'redos':[{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x2b0)],'op':_0x182cb9,'objects':_0x1d3dc9}}],'undos':[{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x2b0)],'op':_0x3749a1,'objects':_0x1d3dc9}}]};}else{let _0x1d4830=this['_sheetDrawingService'][_0xecdf61(0x323)]([_0x1d32d2]),_0x1f3d9=this[_0xecdf61(0x1e1)][_0xecdf61(0x48e)]([_0x3cde67]),_0x385b07=this[_0xecdf61(0x49a)][_0xecdf61(0x2f4)](_0x1d32d2[_0xecdf61(0x367)],_0x1d32d2[_0xecdf61(0x481)],_0x1d32d2['drawingId']);if(!_0x385b07)return{'redos':[],'undos':[]};let _0x13415b=_0x385b07['getShapeType'](),_0x2a22c9=JSON[_0xecdf61(0x237)](JSON[_0xecdf61(0x1bd)](_0x385b07[_0xecdf61(0x2cc)]()));return{'redos':[{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x1d2)],'op':_0x1d4830['redo'],'objects':_0x1d4830[_0xecdf61(0x488)]}},{'id':_0xe63f5c['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'shapeId':_0x1d32d2[_0xecdf61(0x18a)]}},{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55[_0xecdf61(0x462)][_0xecdf61(0x4a5)],'op':_0x1f3d9[_0xecdf61(0x211)],'objects':_0x1f3d9[_0xecdf61(0x488)]}},{'id':_0xe63f5c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'shapeId':_0x1d32d2[_0xecdf61(0x18a)],'shapeType':_0x13415b,'shapeData':_0x2a22c9}}],'undos':[{'id':_0x3f4b55['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x4a5)],'op':_0x1d4830[_0xecdf61(0x324)],'objects':_0x1d4830[_0xecdf61(0x488)]}},{'id':_0xe63f5c[_0xecdf61(0x42d)]['id'],'params':{'unitId':_0x485f55,'subUnitId':_0x3e865f,'shapeId':_0x1d32d2[_0xecdf61(0x18a)],'shapeType':_0x13415b,'shapeData':_0x2a22c9}},{'id':_0x3f4b55[_0xecdf61(0x3ee)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'type':_0x3f4b55['DrawingApplyType'][_0xecdf61(0x1d2)],'op':_0x1f3d9[_0xecdf61(0x324)],'objects':_0x1f3d9['objects']}},{'id':_0xe63f5c[_0xecdf61(0x2a5)]['id'],'params':{'unitId':_0x4b9ca6,'subUnitId':_0x244bc4,'shapeId':_0x1d32d2['drawingId']}}]};}}[_0x30c533(0x1f0)](_0x51b8ba){const _0xbee0=_0x30c533;let {toUnitId:_0x160064,toSubUnitId:_0x571478,drawing:_0x9f3483,newTransforms:_0x1360b9,newDrawingId:_0x3fc26a,idMap:_0x3c07a3}=_0x51b8ba,_0x2b50c2={..._0x9f3483,'unitId':_0x160064,'subUnitId':_0x571478,'drawingId':_0x3fc26a,'transform':_0x1360b9[_0xbee0(0x25d)],'sheetTransform':_0x1360b9[_0xbee0(0x328)]},{redo:_0x175cc8,undo:_0x23299d,objects:_0x42140a}=this[_0xbee0(0x1e1)][_0xbee0(0x48e)]([_0x2b50c2]),_0x33996f=this['_shapeService']['getShapeModel'](_0x9f3483[_0xbee0(0x367)],_0x9f3483['subUnitId'],_0x9f3483['drawingId']);if(!_0x33996f)return{'redos':[],'undos':[]};let _0x39ed86=_0x33996f[_0xbee0(0x1bc)](),_0x19fec1=JSON[_0xbee0(0x237)](JSON[_0xbee0(0x1bd)](_0x33996f[_0xbee0(0x2cc)]()));if(_0x19fec1[_0xbee0(0x371)]){var _0x39b05c,_0x523b40;let _0x3f0bea=(_0x39b05c=_0x19fec1['relation'][_0xbee0(0x3f0)])==null?void 0x0:_0x39b05c['shapeId'],_0x364ea6=(_0x523b40=_0x19fec1[_0xbee0(0x371)]['to'])==null?void 0x0:_0x523b40[_0xbee0(0x454)],_0xad632f=_0x3f0bea?_0x3c07a3[_0xbee0(0x408)](_0x3f0bea):!0x0,_0x2cbbd6=_0x364ea6?_0x3c07a3['has'](_0x364ea6):!0x0;_0xad632f&&_0x3f0bea&&_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]?_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]={..._0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)],'shapeId':_0x3c07a3[_0xbee0(0x1a3)](_0x3f0bea)}:_0x19fec1[_0xbee0(0x371)][_0xbee0(0x3f0)]=void 0x0,_0x2cbbd6&&_0x364ea6&&_0x19fec1[_0xbee0(0x371)]['to']?_0x19fec1[_0xbee0(0x371)]['to']={..._0x19fec1['relation']['to'],'shapeId':_0x3c07a3['get'](_0x364ea6)}:_0x19fec1[_0xbee0(0x371)]['to']=void 0x0;}return{'redos':[{'id':_0x3f4b55[_0xbee0(0x3ee)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'type':_0x3f4b55['DrawingApplyType'][_0xbee0(0x4a5)],'op':_0x175cc8,'objects':_0x42140a}},{'id':_0xe63f5c['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'shapeId':_0x3fc26a,'shapeType':_0x39ed86,'shapeData':_0x19fec1}}],'undos':[{'id':_0x3f4b55[_0xbee0(0x3ee)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'type':_0x3f4b55['DrawingApplyType'][_0xbee0(0x1d2)],'op':_0x23299d,'objects':_0x42140a}},{'id':_0xe63f5c[_0xbee0(0x2a5)]['id'],'params':{'unitId':_0x160064,'subUnitId':_0x571478,'shapeId':_0x3fc26a}}]};}[_0x30c533(0x26e)](_0x3101ba,_0x4f0fc1,_0xdee569,_0x53bf2){const _0x19ae51=_0x30c533;var _0x480ded;let {range:_0x4ffb0d,skeleton:_0x1401fc}=_0x4f0fc1,{range:_0x13273f,skeleton:_0x6e08fc}=_0xdee569,{transform:_0x572ff1,sheetTransform:_0x8a57eb}=_0x3101ba,_0x4d45d6={..._0x572ff1};if(_0x4ffb0d){let _0x1d199d=(0x0,_0x2042f3['attachRangeWithCoord'])(_0x1401fc,_0x4ffb0d),_0x3e86c3=(0x0,_0x2042f3[_0x19ae51(0x24d)])(_0x6e08fc,_0x13273f);if(_0x1d199d&&_0x3e86c3){var _0x282315,_0x2e8b22;let _0x407979=_0x3e86c3['startX']-_0x1d199d[_0x19ae51(0x327)],_0x358f06=_0x3e86c3['startY']-_0x1d199d[_0x19ae51(0x3bd)];_0x4d45d6['left']=((_0x282315=_0x4d45d6[_0x19ae51(0x411)])==null?0x0:_0x282315)+_0x407979,_0x4d45d6[_0x19ae51(0x414)]=((_0x2e8b22=_0x4d45d6['top'])==null?0x0:_0x2e8b22)+_0x358f06;}}else{let _0x3f8216=(0x0,_0x2042f3[_0x19ae51(0x24d)])(_0x6e08fc,_0x13273f);if(_0x53bf2&&_0x3f8216){var _0x58f352,_0xa9964d;let _0x15143c=((_0x58f352=_0x4d45d6[_0x19ae51(0x411)])==null?0x0:_0x58f352)-_0x53bf2[_0x19ae51(0x411)],_0x41df4b=((_0xa9964d=_0x4d45d6['top'])==null?0x0:_0xa9964d)-_0x53bf2['top'];_0x4d45d6['left']=_0x3f8216[_0x19ae51(0x327)]+_0x15143c,_0x4d45d6[_0x19ae51(0x414)]=_0x3f8216[_0x19ae51(0x3bd)]+_0x41df4b;}else _0x4d45d6[_0x19ae51(0x411)]=_0x3f8216==null?void 0x0:_0x3f8216[_0x19ae51(0x327)],_0x4d45d6['top']=_0x3f8216==null?void 0x0:_0x3f8216[_0x19ae51(0x3bd)];}return{'transform':_0x4d45d6,'sheetTransform':(_0x480ded=(0x0,_0x3f4b55['transformToDrawingPosition'])(_0x4d45d6,_0x6e08fc))==null?_0x8a57eb:_0x480ded};}};_0x1e8b99=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x2042f3[_0x30c533(0x3e5)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe965b[_0x30c533(0x490)])),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3f4b55[_0x30c533(0x31e)])),_0x4fa083(0x3,(0x0,_0xa2ae07['Inject'])(_0xe63f5c[_0x30c533(0x3dc)])),_0x4fa083(0x4,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x300372[_0x30c533(0x451)]))],_0x1e8b99);var _0x4edf9a=class extends _0x5663a2[_0x30c533(0x25f)]{constructor(_0x5ed7ca,_0x1156a9){const _0x4b01b6=_0x30c533;super(_0x5ed7ca,_0x1156a9),_0x54eac0(this,'_shapeId',null),_0x54eac0(this,_0x4b01b6(0x436),null),_0x54eac0(this,_0x4b01b6(0x3a1),null),_0x54eac0(this,_0x4b01b6(0x379),null),_0x54eac0(this,'_isStartConnectorPoint',!0x1),_0x1156a9&&this[_0x4b01b6(0x3e9)](_0x1156a9);}[_0x30c533(0x449)](){const _0x5112db=_0x30c533;return{'unitId':this[_0x5112db(0x3a1)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x5112db(0x403)]};}[_0x30c533(0x3e9)](_0x475d7a){const _0x337bcc=_0x30c533;_0x475d7a[_0x337bcc(0x454)]!==void 0x0&&(this[_0x337bcc(0x403)]=_0x475d7a['shapeId']),_0x475d7a[_0x337bcc(0x367)]!==void 0x0&&(this[_0x337bcc(0x3a1)]=_0x475d7a[_0x337bcc(0x367)]),_0x475d7a[_0x337bcc(0x481)]!==void 0x0&&(this[_0x337bcc(0x379)]=_0x475d7a['subUnitId']),_0x475d7a['isStartConnectorPoint']!==void 0x0&&(this['_isStartConnectorPoint']=_0x475d7a[_0x337bcc(0x2d5)]),this[_0x337bcc(0x2d0)]({'width':_0x475d7a['width'],'height':_0x475d7a[_0x337bcc(0x42b)]});}['_draw'](_0x21da8f){const _0x297af4=_0x30c533;_0x5663a2[_0x297af4(0x431)]['drawWith'](_0x21da8f,{'radius':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x1fd)],'fill':_0x8713ee[_0x297af4(0x27f)]['cxnPointFill'],'stroke':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x266)],'strokeWidth':_0x8713ee[_0x297af4(0x27f)][_0x297af4(0x21a)],'evented':!0x0});}};let _0x9291ab=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x1d72f7,_0x1e3e73,_0x467486,_0x2d1d21,_0x1a69a8,_0x1281f2,_0x2c1418,_0x26e895){const _0x491b08=_0x30c533;super(),this['_context']=_0x1d72f7,this[_0x491b08(0x1d7)]=_0x1e3e73,this[_0x491b08(0x2a6)]=_0x467486,this[_0x491b08(0x32f)]=_0x2d1d21,this['_univerInstanceService']=_0x1a69a8,this[_0x491b08(0x2c4)]=_0x1281f2,this['_sheetShapeAdjustController']=_0x2c1418,this[_0x491b08(0x28f)]=_0x26e895,_0x54eac0(this,_0x491b08(0x200),void 0x0),_0x54eac0(this,_0x491b08(0x3a1),void 0x0),_0x54eac0(this,_0x491b08(0x379),void 0x0),_0x54eac0(this,_0x491b08(0x34a),[]),_0x54eac0(this,_0x491b08(0x25e),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x54eac0(this,_0x491b08(0x271),void 0x0),_0x54eac0(this,_0x491b08(0x3ae),!0x1),_0x54eac0(this,_0x491b08(0x484),!0x1),_0x54eac0(this,_0x491b08(0x29b),!0x1),_0x54eac0(this,_0x491b08(0x45a),void 0x0),_0x54eac0(this,_0x491b08(0x465),void 0x0),_0x54eac0(this,_0x491b08(0x2b5),null),this['_initialize']();}[_0x30c533(0x27a)](){const _0x31f5c8=_0x30c533;this[_0x31f5c8(0x1b0)](),this[_0x31f5c8(0x479)]();}['_getDrawingRect'](){const _0x4c9f7d=_0x30c533;if(!this[_0x4c9f7d(0x3a1)]||!this[_0x4c9f7d(0x379)]||!this['_activeShapeId'])return;let _0x5d2bdd={'unitId':this['_unitId'],'subUnitId':this[_0x4c9f7d(0x379)],'drawingId':this[_0x4c9f7d(0x200)]},{transform:_0x3fda22}=this[_0x4c9f7d(0x32f)][_0x4c9f7d(0x3b1)](_0x5d2bdd);if(_0x3fda22)return{'left':_0x3fda22['left']||0x0,'top':_0x3fda22[_0x4c9f7d(0x414)]||0x0,'width':_0x3fda22[_0x4c9f7d(0x28c)]||0x0,'height':_0x3fda22[_0x4c9f7d(0x42b)]||0x0,'flipX':_0x3fda22[_0x4c9f7d(0x382)]||!0x1,'flipY':_0x3fda22['flipY']||!0x1,'angle':_0x3fda22['angle']};}[_0x30c533(0x1c7)](){const _0x5a0660=_0x30c533;if(this[_0x5a0660(0x3a1)]===void 0x0||this['_subUnitId']===void 0x0||this[_0x5a0660(0x200)]===void 0x0)return;let _0x38673c=this[_0x5a0660(0x2a6)]['getRenderById'](this[_0x5a0660(0x3a1)]);if(!_0x38673c||!_0x38673c[_0x5a0660(0x3c2)](_0xe965b[_0x5a0660(0x309)])['getCurrentSkeleton']())return;let {scene:_0xd9bc44}=_0x38673c,_0x205045=this[_0x5a0660(0x343)]();if(!_0x205045)return;let _0x5a159f=this[_0x5a0660(0x2c4)][_0x5a0660(0x2f4)](this['_unitId'],this['_subUnitId'],this[_0x5a0660(0x200)]);if(!_0x5a159f||!(0x0,_0x8713ee[_0x5a0660(0x3cc)])(_0x5a159f[_0x5a0660(0x1bc)]()))return;let _0x1bc713=_0x5a159f['getConnectorLinePoints']();if(_0x1bc713[_0x5a0660(0x22a)]<0x2)return;let _0x5eb6fe=new _0x8713ee['ConnectorCoordinateTransform'](_0x205045),_0x577db0=_0x1bc713[0x0],_0x273661=_0x1bc713[_0x1bc713[_0x5a0660(0x22a)]-0x1],_0x2f5050=_0x5eb6fe[_0x5a0660(0x209)](_0x577db0),_0x3e6945=_0x5eb6fe[_0x5a0660(0x209)](_0x273661);this['_addShapeConnectorHandlerObject'](_0xd9bc44,{..._0x2f5050},!0x0),this[_0x5a0660(0x378)](_0xd9bc44,{..._0x3e6945},!0x1);}['_addShapeConnectorHandlerObject'](_0x22ef86,_0x38130d,_0x6e5294){const _0x15441a=_0x30c533;if(this[_0x15441a(0x200)]===void 0x0||this[_0x15441a(0x3a1)]===void 0x0||this[_0x15441a(0x379)]===void 0x0)return;let _0x486a0d='connector-handler-'+this[_0x15441a(0x3a1)]+'-'+this[_0x15441a(0x379)]+'-'+this[_0x15441a(0x200)]+'-'+(_0x6e5294?_0x15441a(0x1cb):_0x15441a(0x3f9)),_0x4d78c3=_0x22ef86[_0x15441a(0x257)](_0x486a0d);if(_0x4d78c3){_0x4d78c3[_0x15441a(0x2d0)]({'left':_0x38130d['x']-_0x8713ee[_0x15441a(0x27f)][_0x15441a(0x1fd)],'top':_0x38130d['y']-_0x8713ee[_0x15441a(0x27f)][_0x15441a(0x1fd)]});return;}let _0x3765f3=new _0x4edf9a(_0x486a0d,{'left':_0x38130d['x']-_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)],'top':_0x38130d['y']-_0x8713ee[_0x15441a(0x27f)]['cxnPointRadius'],'shapeId':this[_0x15441a(0x200)],'unitId':this[_0x15441a(0x3a1)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x6e5294,'width':_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)]*0x2,'height':_0x8713ee['ShapeDefaultConfig'][_0x15441a(0x1fd)]*0x2,'zIndex':_0x5663a2['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_connectorObjects'][_0x15441a(0x1c2)](_0x3765f3),this[_0x15441a(0x1e5)](_0x3765f3,_0x22ef86,_0x6e5294),_0x22ef86['addObject'](_0x3765f3,_0x5663a2[_0x15441a(0x3da)]+0x1);}[_0x30c533(0x46e)](_0x5731e8,_0x133f5b){const _0x39b2ff=_0x30c533;var _0x282a32;let _0xd97856={'x':0x0,'y':0x0};if(!_0x5731e8||!_0x133f5b)return _0xd97856;let _0x9d0c9e=this[_0x39b2ff(0x2a6)][_0x39b2ff(0x3f7)](_0x5731e8);if(!_0x9d0c9e||!_0x9d0c9e[_0x39b2ff(0x3c2)](_0xe965b['SheetSkeletonManagerService'])[_0x39b2ff(0x3dd)](_0x133f5b))return _0xd97856;let _0x5abe65=_0x9d0c9e['with'](_0xe965b[_0x39b2ff(0x1ef)]),_0x2807c0=_0x5abe65==null?void 0x0:_0x5abe65['getCurrentScrollState']();if(!_0x2807c0)return _0xd97856;let _0x1cb85c=(_0x282a32=this[_0x39b2ff(0x19f)]['getUnit'](_0x5731e8))==null?void 0x0:_0x282a32[_0x39b2ff(0x326)](_0x133f5b);if(!_0x1cb85c)return _0xd97856;let _0x491459=(0x0,_0xe965b[_0x39b2ff(0x262)])(_0x2807c0[_0x39b2ff(0x1a5)],_0x2807c0['sheetViewStartColumn'],_0x9d0c9e[_0x39b2ff(0x1e7)],_0x1cb85c);return _0x491459?{'x':_0x491459[_0x39b2ff(0x3d4)],'y':_0x491459[_0x39b2ff(0x3fd)]}:_0xd97856;}[_0x30c533(0x227)](_0x8dda9e,_0x5be437){const _0x2a96cf=_0x30c533;var _0x43a7d3,_0x3f7e1e;let _0x429a30=(_0x43a7d3=this[_0x2a96cf(0x19f)][_0x2a96cf(0x46a)](_0x8dda9e))==null?void 0x0:_0x43a7d3[_0x2a96cf(0x326)](_0x5be437);return(_0x3f7e1e=_0x429a30==null?void 0x0:_0x429a30[_0x2a96cf(0x319)]())==null?0x1:_0x3f7e1e;}[_0x30c533(0x3d2)](_0x67a5ac,_0x296c18,_0x1c292c,_0x44e141,_0x58f0d3){const _0x2c9dbc=_0x30c533;this[_0x2c9dbc(0x45a)][_0x2c9dbc(0x241)](),this[_0x2c9dbc(0x465)][_0x2c9dbc(0x241)](),this[_0x2c9dbc(0x3c7)][_0x2c9dbc(0x284)]();let _0x17fca9=this[_0x2c9dbc(0x2b5)];this['_sheetBasicShapeConnectionPointController'][_0x2c9dbc(0x31c)]();let _0x114919=this[_0x2c9dbc(0x46e)](this[_0x2c9dbc(0x3a1)],this[_0x2c9dbc(0x379)]),_0x20a8d5=this['_getZoomRatio'](this[_0x2c9dbc(0x3a1)],this[_0x2c9dbc(0x379)]),_0x2e4bf6={'x':_0x1c292c[_0x2c9dbc(0x396)]/_0x20a8d5+_0x114919['x'],'y':_0x1c292c[_0x2c9dbc(0x25a)]/_0x20a8d5+_0x114919['y']},_0x316db5=_0x17fca9?_0x17fca9[_0x2c9dbc(0x236)]:_0x2e4bf6,_0x3e86a1=_0x44e141?this[_0x2c9dbc(0x271)][_0x2c9dbc(0x495)]():this[_0x2c9dbc(0x271)][_0x2c9dbc(0x2d8)](),_0x3e0d13=this['_activeShapeModel'][_0x2c9dbc(0x1bc)]();_0x3e86a1?this[_0x2c9dbc(0x3a3)](_0x3e86a1,_0x316db5,_0x44e141,_0x17fca9,_0x58f0d3):this[_0x2c9dbc(0x3c6)](_0x296c18,_0x316db5,_0x44e141,_0x17fca9,_0x58f0d3,_0x3e0d13),this[_0x2c9dbc(0x3ae)]=!0x1,this[_0x2c9dbc(0x29b)]=!0x1,this[_0x2c9dbc(0x2b5)]=null,_0x67a5ac[_0x2c9dbc(0x362)]();}['_handleFreeEndpointPointerUp'](_0x5c16ca,_0x3a3b76,_0x2b31c3,_0xe731ed,_0x4884ea,_0x5e513b){const _0x55240d=_0x30c533;let _0x399a67=_0x5e513b===_0x8713ee['ShapeTypeEnum'][_0x55240d(0x25b)]||_0x5e513b===_0x8713ee[_0x55240d(0x1fe)][_0x55240d(0x45d)],_0x3a5259=_0x2b31c3?_0x3a3b76:_0x5c16ca,_0xa0573c=_0x2b31c3?_0x5c16ca:_0x3a3b76,_0x3cfa5f=this['_activeShapeModel'][_0x55240d(0x1d0)](),_0xdabbad=(0x0,_0x8713ee[_0x55240d(0x1cd)])(this[_0x55240d(0x271)][_0x55240d(0x1bc)]()),_0xd1f17=_0x8713ee['ConnectorCoordinateTransform'][_0x55240d(0x30c)](_0x3cfa5f,_0xdabbad),_0x243c96=_0x399a67?_0x8713ee[_0x55240d(0x499)][_0x55240d(0x30f)](_0x3a5259,_0xa0573c):_0x8713ee[_0x55240d(0x499)][_0x55240d(0x29a)](_0x5c16ca,_0x3a3b76,_0x2b31c3,_0xd1f17);_0xe731ed?this['_executeConnectionCommand'](_0x243c96,_0xe731ed,_0x2b31c3,_0x4884ea):this[_0x55240d(0x2b2)](_0x243c96,_0x4884ea);}[_0x30c533(0x3a3)](_0x1282e9,_0x1bcd94,_0x141e25,_0x4d4adc,_0x2d3f32){const _0x32b6ac=_0x30c533;let _0x4a802=this[_0x32b6ac(0x3b5)](_0x1282e9);if(!_0x4a802)return;let _0x1041fa=_0x4d4adc?_0x4d4adc[_0x32b6ac(0x1cc)]:this[_0x32b6ac(0x372)](_0x4a802['point'],_0x1bcd94),_0x6f3d9d;if(_0x4d4adc){let _0x307bf2=this['_drawingManagerService'][_0x32b6ac(0x3b1)]({'unitId':_0x4d4adc['unitId'],'subUnitId':_0x4d4adc[_0x32b6ac(0x481)],'drawingId':_0x4d4adc[_0x32b6ac(0x454)]});if(_0x307bf2!=null&&_0x307bf2[_0x32b6ac(0x25d)]){let {left:_0x3c3520=0x0,top:_0x5270b5=0x0,width:_0x30cb9=0x0,height:_0x1093b4=0x0,angle:_0x4e8e1f}=_0x307bf2[_0x32b6ac(0x25d)];_0x6f3d9d=(0x0,_0x8713ee[_0x32b6ac(0x35d)])({'left':_0x3c3520,'top':_0x5270b5,'width':_0x30cb9,'height':_0x1093b4},_0x4e8e1f||0x0);}else _0x6f3d9d={'left':_0x1bcd94['x'],'top':_0x1bcd94['y'],'width':0x0,'height':0x0};}else _0x6f3d9d={'left':_0x1bcd94['x'],'top':_0x1bcd94['y'],'width':0x0,'height':0x0};let _0x5840a8={'point':_0x1bcd94,'angle':_0x1041fa,'bounds':_0x6f3d9d},_0x4e0fd4=_0x141e25?_0x5840a8:_0x4a802,_0x15ab16=_0x141e25?_0x4a802:_0x5840a8,_0x2de6ec=this['_activeShapeModel'][_0x32b6ac(0x1bc)](),_0x5eec83=(0x0,_0x8713ee[_0x32b6ac(0x2f5)])(_0x4e0fd4,_0x15ab16,_0x2de6ec);this[_0x32b6ac(0x271)][_0x32b6ac(0x2db)]();let _0xb0071d=(0x0,_0x8713ee['computeConnectorRouteLayout'])(_0x5eec83,_0x2de6ec);_0x4d4adc?this[_0x32b6ac(0x1df)](_0xb0071d,_0x4d4adc,_0x1282e9,_0x141e25,_0x2d3f32):this[_0x32b6ac(0x44f)](_0xb0071d,_0x1282e9,_0x141e25,_0x2d3f32);}[_0x30c533(0x341)](_0x4170db,_0x38642b,_0xb3f02e,_0x1a0cf9){const _0x1f20ef=_0x30c533;let _0x3ca642=this[_0x1f20ef(0x271)][_0x1f20ef(0x2cc)]()['relation'],_0x55fb3a={..._0x3ca642},_0x233e62={'shapeId':_0x38642b[_0x1f20ef(0x454)],'cxnIndex':_0x38642b[_0x1f20ef(0x3f3)]};_0xb3f02e?_0x55fb3a[_0x1f20ef(0x3f0)]=_0x233e62:_0x55fb3a['to']=_0x233e62;let _0x3b02e4=this['_activeShapeModel']['getShapeType'](),_0x1c9865=(0x0,_0x8713ee['computeConnectorRouteLayout'])(_0x4170db[_0x1f20ef(0x316)],_0x3b02e4),_0x4348d3={'unitId':this[_0x1f20ef(0x3a1)],'subUnitId':this[_0x1f20ef(0x379)],'connectorShapeId':this[_0x1f20ef(0x200)],'width':_0x4170db['worldRect'][_0x1f20ef(0x28c)],'height':_0x4170db[_0x1f20ef(0x2c6)]['height'],'left':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x411)],'top':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x414)],'flipX':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x382)]||!0x1,'flipY':_0x4170db[_0x1f20ef(0x2c6)][_0x1f20ef(0x2e6)]||!0x1,'newAdjustValues':_0x1c9865['adjustValues'],'oldAdjustValues':_0x1a0cf9,'oldRelation':_0x3ca642,'newRelation':_0x55fb3a,'newLineType':_0x1c9865[_0x1f20ef(0x2a1)],'oldLineType':_0x3b02e4};this['_commandService'][_0x1f20ef(0x45c)](_0xe63f5c[_0x1f20ef(0x437)]['id'],_0x4348d3);}[_0x30c533(0x2b2)](_0x10496e,_0xb7bbad){const _0x549038=_0x30c533;let _0x2c21ca=this['_activeShapeModel'][_0x549038(0x1bc)](),_0x1f514b=(0x0,_0x8713ee[_0x549038(0x3d1)])(_0x10496e[_0x549038(0x316)],_0x2c21ca),_0x2c2d49={'unitId':this[_0x549038(0x3a1)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x549038(0x200)],'width':_0x10496e[_0x549038(0x2c6)][_0x549038(0x28c)],'height':_0x10496e['worldRect'][_0x549038(0x42b)],'left':_0x10496e[_0x549038(0x2c6)]['left'],'top':_0x10496e[_0x549038(0x2c6)][_0x549038(0x414)],'flipX':_0x10496e['worldRect'][_0x549038(0x382)]||!0x1,'flipY':_0x10496e[_0x549038(0x2c6)][_0x549038(0x2e6)]||!0x1,'angle':_0x10496e[_0x549038(0x2c6)][_0x549038(0x1cc)]||0x0,'newAdjustValues':_0x1f514b[_0x549038(0x27d)],'oldAdjustValues':_0xb7bbad,'newLineType':_0x1f514b[_0x549038(0x2a1)],'oldLineType':_0x2c21ca};this[_0x549038(0x1d7)]['executeCommand'](_0xe63f5c['UpdateLineShapeResizeCommand']['id'],_0x2c2d49);}['_executeConnectedRouteConnectionCommand'](_0x30b245,_0x5b5d4a,_0x5de45f,_0x165a56,_0x26dbcc){const _0x43c06d=_0x30c533;let _0x19237e=this[_0x43c06d(0x271)]['getShapeData']()['relation'],_0x1bde52={..._0x19237e},_0x4195d8={'shapeId':_0x5b5d4a[_0x43c06d(0x454)],'cxnIndex':_0x5b5d4a['cxnIndex']};_0x165a56?(_0x1bde52['from']=_0x4195d8,_0x1bde52['to']=_0x5de45f):(_0x1bde52['from']=_0x5de45f,_0x1bde52['to']=_0x4195d8);let _0x1f2f51={'unitId':this[_0x43c06d(0x3a1)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x43c06d(0x200)],'width':_0x30b245[_0x43c06d(0x2c6)]['width'],'height':_0x30b245[_0x43c06d(0x2c6)][_0x43c06d(0x42b)],'left':_0x30b245[_0x43c06d(0x2c6)]['left'],'top':_0x30b245[_0x43c06d(0x2c6)]['top'],'flipX':_0x30b245['worldRect']['flipX']||!0x1,'flipY':_0x30b245[_0x43c06d(0x2c6)][_0x43c06d(0x2e6)]||!0x1,'oldAdjustValues':_0x26dbcc,'newAdjustValues':_0x30b245[_0x43c06d(0x27d)],'newLineType':_0x30b245['lineType'],'rotation':_0x30b245[_0x43c06d(0x3f6)],'oldRelation':_0x19237e,'newRelation':_0x1bde52};this['_commandService'][_0x43c06d(0x45c)](_0xe63f5c[_0x43c06d(0x437)]['id'],_0x1f2f51);}[_0x30c533(0x44f)](_0x30c1e7,_0x25a7bd,_0x508458,_0x3eec7c){const _0x501ded=_0x30c533;let _0x1b6f0f=this[_0x501ded(0x271)]['getShapeData']()[_0x501ded(0x371)],_0x12d70b={};_0x508458?(_0x12d70b['to']=_0x25a7bd,_0x12d70b[_0x501ded(0x3f0)]=void 0x0):(_0x12d70b[_0x501ded(0x3f0)]=_0x25a7bd,_0x12d70b['to']=void 0x0);let _0x3f12ce={'unitId':this[_0x501ded(0x3a1)],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x28c)],'height':_0x30c1e7['worldRect']['height'],'left':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x411)],'top':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x414)],'flipX':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x382)]||!0x1,'flipY':_0x30c1e7[_0x501ded(0x2c6)][_0x501ded(0x2e6)]||!0x1,'oldAdjustValues':_0x3eec7c,'newAdjustValues':_0x30c1e7[_0x501ded(0x27d)],'newLineType':_0x30c1e7['lineType'],'rotation':_0x30c1e7['rotation'],'oldRelation':_0x1b6f0f,'newRelation':_0x12d70b};this[_0x501ded(0x1d7)][_0x501ded(0x45c)](_0xe63f5c[_0x501ded(0x437)]['id'],_0x3f12ce);}[_0x30c533(0x1e5)](_0x1d1600,_0x317f94,_0x4ae0a8){const _0x3bcbf1=_0x30c533;this[_0x3bcbf1(0x40b)]((0x0,_0xa2ae07[_0x3bcbf1(0x24e)])(_0x1d1600[_0x3bcbf1(0x2a2)][_0x3bcbf1(0x1db)]((_0x1667e7,_0x263ae9)=>{const _0x5c55c1=_0x3bcbf1;let _0x3ed85e=_0x1d1600[_0x5c55c1(0x449)]();if(this['_activeShapeModel']=this[_0x5c55c1(0x2c4)]['getShapeModel'](_0x3ed85e[_0x5c55c1(0x367)],_0x3ed85e['subUnitId'],_0x3ed85e[_0x5c55c1(0x18a)]),!this['_activeShapeModel'])return;let _0x16ad5b={};this[_0x5c55c1(0x271)]['getAdjustNames']()[_0x5c55c1(0x37b)](_0x39c778=>{const _0x31257c=_0x5c55c1;let _0x2d4cd2=this[_0x31257c(0x271)][_0x31257c(0x4a9)](_0x39c778);_0x2d4cd2!==void 0x0&&(_0x16ad5b[_0x39c778]=_0x2d4cd2);});let _0x4fd3b2=this['_getDrawingRect']();if(!_0x4fd3b2)return;this[_0x5c55c1(0x25e)]={..._0x4fd3b2};let _0x3114de=new _0x8713ee[(_0x5c55c1(0x499))](this['_baseDrawingRect']),_0x4dfced=(0x0,_0x2c1288[_0x5c55c1(0x44d)])({'unitId':this['_unitId'],'subUnitId':this[_0x5c55c1(0x379)],'drawingId':this[_0x5c55c1(0x200)]}),_0xd59df8=_0x317f94[_0x5c55c1(0x257)](_0x4dfced);this[_0x5c55c1(0x3ae)]=!0x0,_0x317f94['disableObjectsEvent'](),this[_0x5c55c1(0x28f)][_0x5c55c1(0x354)](_0x317f94,this[_0x5c55c1(0x3a1)],this[_0x5c55c1(0x379)],this['_activeShapeId']),this[_0x5c55c1(0x2b5)]=null;let _0x54a805=this['_activeShapeModel'][_0x5c55c1(0x1d0)](),_0x29282c=_0x54a805[0x0],_0x139270=_0x54a805[_0x54a805['length']-0x1],_0x46908e=_0x4ae0a8?_0x3114de[_0x5c55c1(0x209)](_0x139270):_0x3114de[_0x5c55c1(0x209)](_0x29282c);this[_0x5c55c1(0x45a)]=_0x317f94[_0x5c55c1(0x18e)][_0x5c55c1(0x1db)]((_0x4a0913,_0x3820cb)=>{const _0x50fd34=_0x5c55c1;if(!this[_0x50fd34(0x3ae)]||!this[_0x50fd34(0x271)])return;this[_0x50fd34(0x29b)]||(this['_sheetShapeAdjustController'][_0x50fd34(0x455)](),this[_0x50fd34(0x271)][_0x50fd34(0x3b4)](),this[_0x50fd34(0x29b)]=!0x0);let _0x330bf0=this[_0x50fd34(0x46e)](this[_0x50fd34(0x3a1)],this[_0x50fd34(0x379)]),_0x274fdb=this[_0x50fd34(0x227)](this[_0x50fd34(0x3a1)],this[_0x50fd34(0x379)]),_0x5d578c={'x':_0x4a0913['offsetX']/_0x274fdb+_0x330bf0['x'],'y':_0x4a0913[_0x50fd34(0x25a)]/_0x274fdb+_0x330bf0['y']},_0xe61e42=this[_0x50fd34(0x28f)]['updateConnectionDetection'](_0x5d578c);if(_0xe61e42){let {shapeId:_0x22167f,unitId:_0x3faec0,subUnitId:_0x48aa94}=_0xe61e42;if(_0x22167f&&_0x3faec0&&_0x48aa94){let _0x3235ae=(0x0,_0x2c1288['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3faec0,'subUnitId':_0x48aa94,'drawingId':_0x22167f});_0xe61e42[_0x50fd34(0x1cc)]=(_0x317f94[_0x50fd34(0x257)](_0x3235ae)[_0x50fd34(0x1cc)]||0x0)+_0xe61e42[_0x50fd34(0x1cc)];}}this[_0x50fd34(0x2b5)]=_0xe61e42;let _0x4c546f=_0x4ae0a8?this[_0x50fd34(0x271)][_0x50fd34(0x495)]():this['_activeShapeModel']['getStartConnectInfo']();if(_0x4c546f){this[_0x50fd34(0x23b)](_0x4c546f,_0x5d578c,_0x4ae0a8,_0xd59df8,_0x1d1600);return;}this[_0x50fd34(0x208)](_0x5d578c,_0x46908e,_0x4ae0a8,_0xd59df8,_0x1d1600);}),this['_cxtHandlerPointerUp']=_0x317f94[_0x5c55c1(0x260)]['subscribeEvent']((_0x5b78ad,_0x68c22c)=>{this['_handleConnectorPointerUp'](_0x317f94,_0x46908e,_0x5b78ad,_0x4ae0a8,_0x16ad5b);}),_0x263ae9['stopPropagation']();})));}[_0x30c533(0x1e8)](_0x3d8b1c,_0x3c0468,_0x28f8c6){const _0x5968bf=_0x30c533;let _0x906f67=this[_0x5968bf(0x2c4)]['getBasicShapeRelation'](_0x3d8b1c,_0x3c0468,_0x28f8c6);if(!_0x906f67||_0x906f67[_0x5968bf(0x22a)]===0x0)return;let _0x29136f=this['_renderManagerService']['getRenderById'](_0x3d8b1c);if(!_0x29136f)return;let {scene:_0x5b6003}=_0x29136f;for(let _0x3008e4 of _0x906f67){let _0x5ddc45=_0x3008e4[_0x5968bf(0x221)],_0x40abaf=this['_sheetsShapeService'][_0x5968bf(0x2f4)](_0x3d8b1c,_0x3c0468,_0x5ddc45);if(!_0x40abaf)continue;let _0x43efaf=_0x40abaf[_0x5968bf(0x2d8)](),_0x2f682f=_0x40abaf['getEndConnectInfo'](),_0x36d2c5=(_0x43efaf==null?void 0x0:_0x43efaf['shapeId'])===_0x28f8c6,_0x16591c=(0x0,_0x2c1288[_0x5968bf(0x44d)])({'unitId':_0x3d8b1c,'subUnitId':_0x3c0468,'drawingId':_0x5ddc45}),_0x13f4e0=_0x5b6003['getObjectIncludeInGroup'](_0x16591c);if(!_0x13f4e0)continue;let _0x125161=this[_0x5968bf(0x32f)][_0x5968bf(0x3b1)]({'unitId':_0x3d8b1c,'subUnitId':_0x3c0468,'drawingId':_0x5ddc45});_0x125161!=null&&_0x125161['transform']&&(_0x43efaf&&_0x2f682f?this['_rerouteConnectorLine'](_0x3d8b1c,_0x3c0468,_0x5ddc45,_0x40abaf,_0x43efaf,_0x2f682f,_0x13f4e0):this[_0x5968bf(0x2ed)](_0x3d8b1c,_0x3c0468,_0x5ddc45,_0x40abaf,_0x36d2c5?_0x43efaf:_0x2f682f,_0x36d2c5,_0x125161,_0x13f4e0));}}['_rerouteConnectorLine'](_0x50e946,_0x4e1f54,_0x1f5fa7,_0x398b00,_0x20a2f6,_0x38aca9,_0x49284d){const _0x553364=_0x30c533;let _0x3ac76b=this['_unitId'],_0x1f8974=this['_subUnitId'];this[_0x553364(0x3a1)]=_0x50e946,this[_0x553364(0x379)]=_0x4e1f54;let _0x54a9c6=this[_0x553364(0x3b5)](_0x20a2f6),_0x7e2c0f=this[_0x553364(0x3b5)](_0x38aca9);if(this[_0x553364(0x3a1)]=_0x3ac76b,this[_0x553364(0x379)]=_0x1f8974,!_0x54a9c6||!_0x7e2c0f)return;let _0x5cc787=_0x398b00['getShapeType'](),_0x2824a1=(0x0,_0x8713ee['routeConnectorLineShape'])(_0x54a9c6,_0x7e2c0f,_0x5cc787);_0x2824a1&&_0x398b00['updateLinePoints'](_0x2824a1);let _0x2d236b=(0x0,_0x8713ee[_0x553364(0x3d1)])(_0x2824a1,_0x5cc787);_0x2d236b[_0x553364(0x2a1)]!==_0x5cc787&&_0x398b00[_0x553364(0x497)](_0x2d236b[_0x553364(0x2a1)]),_0x398b00[_0x553364(0x3b4)]();for(let [_0x5df672,_0x511dea]of Object[_0x553364(0x3eb)](_0x2d236b[_0x553364(0x27d)]))_0x398b00[_0x553364(0x361)](_0x5df672,_0x511dea);_0x398b00[_0x553364(0x3a8)]({'width':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x28c)],'height':_0x2d236b['worldRect'][_0x553364(0x42b)]}),_0x49284d[_0x553364(0x2d0)]({'flipX':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x382)],'flipY':_0x2d236b['worldRect'][_0x553364(0x2e6)],'left':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x411)],'top':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x414)],'width':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x28c)],'height':_0x2d236b[_0x553364(0x2c6)][_0x553364(0x42b)],'angle':_0x2d236b[_0x553364(0x3f6)]}),_0x398b00[_0x553364(0x2db)]();}[_0x30c533(0x2ed)](_0x145bf7,_0x2c7152,_0x636542,_0x3f1d32,_0x2c927f,_0x3b27c7,_0x39a5b6,_0x42ece9){const _0x169c63=_0x30c533;let _0x25fd57=this[_0x169c63(0x3a1)],_0x4cc8c3=this['_subUnitId'];this[_0x169c63(0x3a1)]=_0x145bf7,this[_0x169c63(0x379)]=_0x2c7152;let _0x33c982=this[_0x169c63(0x3b5)](_0x2c927f);if(this[_0x169c63(0x3a1)]=_0x25fd57,this[_0x169c63(0x379)]=_0x4cc8c3,!_0x33c982)return;let {left:_0x349f62=0x0,top:_0x487531=0x0,width:_0x565d4e=0x0,height:_0x1f35d6=0x0,flipX:_0x4ebcdc=!0x1,flipY:_0x37d917=!0x1}=_0x39a5b6[_0x169c63(0x25d)],_0x4abffd=_0x3f1d32[_0x169c63(0x1d0)]();if(_0x4abffd[_0x169c63(0x22a)]<0x2)return;let _0x2c00f1=new _0x8713ee[(_0x169c63(0x499))]({'left':_0x349f62,'top':_0x487531,'width':_0x565d4e,'height':_0x1f35d6,'flipX':_0x4ebcdc,'flipY':_0x37d917}),_0x119efa=_0x3b27c7?_0x4abffd[_0x4abffd['length']-0x1]:_0x4abffd[0x0],_0x21f3fd=_0x2c00f1[_0x169c63(0x209)](_0x119efa),_0x28fdd0=_0x8713ee[_0x169c63(0x499)][_0x169c63(0x29a)](_0x21f3fd,_0x33c982[_0x169c63(0x31d)],!_0x3b27c7);_0x42ece9[_0x169c63(0x2d0)]({'flipX':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x382)],'flipY':_0x28fdd0[_0x169c63(0x2c6)]['flipY'],'left':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x411)],'top':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x414)],'width':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x28c)],'height':_0x28fdd0[_0x169c63(0x2c6)][_0x169c63(0x42b)],'angle':_0x28fdd0['worldRect'][_0x169c63(0x1cc)]}),_0x42ece9[_0x169c63(0x3ce)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x4bd213=_0x30c533;this[_0x4bd213(0x34a)][_0x4bd213(0x22a)]!==0x0&&(this[_0x4bd213(0x34a)][_0x4bd213(0x37b)](_0x29e0bc=>{const _0x3c043f=_0x4bd213;_0x29e0bc[_0x3c043f(0x1e9)]();}),this['_connectorObjects']=[]);}[_0x30c533(0x479)](){const _0x454ced=_0x30c533;let _0x577cdc=this[_0x454ced(0x19f)][_0x454ced(0x189)](_0xa2ae07['UniverInstanceType'][_0x454ced(0x2b7)]);this['disposeWithMe'](_0x577cdc['pipe']((0x0,_0x50bd3e[_0x454ced(0x39e)])(_0x4cd83e=>_0x4cd83e?_0x4cd83e[_0x454ced(0x339)]['pipe']((0x0,_0x50bd3e['switchMap'])(_0x37e4fc=>{const _0x1c567f=_0x454ced;if(!_0x37e4fc)return _0x50bd3e[_0x1c567f(0x331)];let _0x54b7f3=_0x4cd83e['getUnitId'](),_0x317ccb=this[_0x1c567f(0x2a6)][_0x1c567f(0x3f7)](_0x54b7f3),_0x2e9841=_0x317ccb==null?void 0x0:_0x317ccb[_0x1c567f(0x1e7)];return _0x2e9841?(0x0,_0x50bd3e['of'])(_0x2e9841):_0x50bd3e[_0x1c567f(0x331)];})):_0x50bd3e['EMPTY']))[_0x454ced(0x2ba)](_0x423a9c=>{const _0x20fd09=_0x454ced;let _0x22385c=_0x423a9c[_0x20fd09(0x300)]();this['disposeWithMe'](_0x423a9c[_0x20fd09(0x18e)][_0x20fd09(0x1db)](_0xd9ee62=>{const _0x2c30bb=_0x20fd09;this['_isDrawingShapePointDown']&&this['_activeShapeId']&&this[_0x2c30bb(0x1b5)]();})),this['disposeWithMe'](_0x22385c['changeStart$'][_0x20fd09(0x2ba)](_0x7c4f1e=>{const _0x4e51a5=_0x20fd09;let {objects:_0x497469}=_0x7c4f1e;this[_0x4e51a5(0x1b5)](),_0x497469!==null&&_0x497469[_0x4e51a5(0x2ab)]===0x1&&_0x497469[_0x4e51a5(0x276)]()[_0x4e51a5(0x466)]()['value']instanceof _0x4da10f&&(this[_0x4e51a5(0x484)]=!0x0);})),this['disposeWithMe'](_0x22385c['changing$'][_0x20fd09(0x2ba)](_0x3ec77e=>{const _0x486743=_0x20fd09;this[_0x486743(0x484)]&&this[_0x486743(0x1b5)]();})),this[_0x20fd09(0x40b)](_0x423a9c[_0x20fd09(0x260)][_0x20fd09(0x1db)](()=>{const _0x331142=_0x20fd09;this[_0x331142(0x484)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x20fd09(0x40b)](_0x22385c['changeEnd$'][_0x20fd09(0x2ba)](()=>{const _0x4507fe=_0x20fd09;this[_0x4507fe(0x3a1)]&&this[_0x4507fe(0x379)]&&this[_0x4507fe(0x200)]&&this[_0x4507fe(0x32f)][_0x4507fe(0x3b1)]({'unitId':this['_unitId'],'subUnitId':this[_0x4507fe(0x379)],'drawingId':this[_0x4507fe(0x200)]})&&(this[_0x4507fe(0x1b5)](),this[_0x4507fe(0x1c7)]());}));}));}[_0x30c533(0x1b0)](){const _0x3b3e25=_0x30c533;this[_0x3b3e25(0x40b)](this[_0x3b3e25(0x32f)][_0x3b3e25(0x46c)][_0x3b3e25(0x2ba)](_0xc24b7a=>{const _0x1a260b=_0x3b3e25;if(_0xc24b7a[_0x1a260b(0x22a)]===0x1){let _0x2f8331=_0xc24b7a[0x0];if(_0x2f8331[_0x1a260b(0x2f0)]===_0xa2ae07[_0x1a260b(0x392)][_0x1a260b(0x1c8)]){let _0x52960a=this[_0x1a260b(0x2c4)]['getShapeModel'](_0x2f8331[_0x1a260b(0x367)],_0x2f8331[_0x1a260b(0x481)],_0x2f8331[_0x1a260b(0x18a)]);if(_0x52960a&&(0x0,_0x8713ee[_0x1a260b(0x3cc)])(_0x52960a[_0x1a260b(0x1bc)]())){this[_0x1a260b(0x200)]=_0x2f8331[_0x1a260b(0x18a)],this['_unitId']=_0x2f8331[_0x1a260b(0x367)],this[_0x1a260b(0x379)]=_0x2f8331[_0x1a260b(0x481)],this[_0x1a260b(0x1b5)](),this[_0x1a260b(0x1c7)]();return;}}}this[_0x1a260b(0x200)]=void 0x0,this[_0x1a260b(0x3a1)]=void 0x0,this[_0x1a260b(0x379)]=void 0x0,this[_0x1a260b(0x1b5)]();})),this['disposeWithMe'](this[_0x3b3e25(0x32f)][_0x3b3e25(0x38a)][_0x3b3e25(0x2ba)](_0x193092=>{const _0x579275=_0x3b3e25;if(_0x193092[_0x579275(0x22a)]===0x1){var _0x7882c9;let _0x2d69db=_0x193092[0x0],_0x2d55f3=(_0x7882c9=this[_0x579275(0x32f)][_0x579275(0x3b1)](_0x2d69db))==null?void 0x0:_0x7882c9[_0x579275(0x2f0)];_0x2d55f3===_0xa2ae07['DrawingTypeEnum'][_0x579275(0x1c8)]&&_0x2d69db[_0x579275(0x18a)]===this['_activeShapeId']?(this[_0x579275(0x1b5)](),this[_0x579275(0x1c7)]()):!this['_activeShapeId']&&_0x2d55f3===_0xa2ae07[_0x579275(0x392)]['DRAWING_SHAPE']&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x2d69db['unitId'],_0x2d69db[_0x579275(0x481)],_0x2d69db[_0x579275(0x18a)]);}})),this[_0x3b3e25(0x40b)](this[_0x3b3e25(0x32f)][_0x3b3e25(0x246)][_0x3b3e25(0x2ba)](_0x3c6cee=>{const _0x300db4=_0x3b3e25;for(let _0x5ef2ec of _0x3c6cee){let {drawingId:_0x38496b}=_0x5ef2ec;if(this[_0x300db4(0x200)]===_0x38496b){this[_0x300db4(0x4a3)]();return;}}}));}[_0x30c533(0x23b)](_0x54069d,_0x4806bc,_0x2fad2b,_0x21925d,_0x5b28de){const _0x701e48=_0x30c533;var _0x350afb,_0x12d22b;if(!this['_activeShapeModel'])return;let _0x1acb20=this[_0x701e48(0x3b5)](_0x54069d);if(!_0x1acb20)return;let _0x1f5ae0=this[_0x701e48(0x2b5)]?this[_0x701e48(0x2b5)][_0x701e48(0x236)]:_0x4806bc,_0x3cc440=this[_0x701e48(0x2b5)]?this[_0x701e48(0x2b5)][_0x701e48(0x1cc)]:this[_0x701e48(0x372)](_0x1acb20[_0x701e48(0x31d)],_0x1f5ae0),_0x5b29c0;if(this['_currentConnectionTarget']){let _0x580d72=this[_0x701e48(0x32f)][_0x701e48(0x3b1)]({'unitId':this[_0x701e48(0x2b5)]['unitId'],'subUnitId':this[_0x701e48(0x2b5)]['subUnitId'],'drawingId':this[_0x701e48(0x2b5)][_0x701e48(0x454)]});if(_0x580d72!=null&&_0x580d72[_0x701e48(0x25d)]){let {left:_0x3bf210=0x0,top:_0x588369=0x0,width:_0x36d359=0x0,height:_0x4c3d93=0x0,angle:_0x2aa657}=_0x580d72['transform'];_0x5b29c0=(0x0,_0x8713ee[_0x701e48(0x35d)])({'left':_0x3bf210,'top':_0x588369,'width':_0x36d359,'height':_0x4c3d93},_0x2aa657||0x0);}else _0x5b29c0={'left':_0x1f5ae0['x'],'top':_0x1f5ae0['y'],'width':0x0,'height':0x0};}else _0x5b29c0={'left':_0x1f5ae0['x'],'top':_0x1f5ae0['y'],'width':0x0,'height':0x0};let _0xf20c8f={'point':_0x1f5ae0,'angle':_0x3cc440,'bounds':_0x5b29c0},_0x3efeb5=_0x2fad2b?_0xf20c8f:_0x1acb20,_0x4b6745=_0x2fad2b?_0x1acb20:_0xf20c8f,_0x4247f=this[_0x701e48(0x271)][_0x701e48(0x1bc)](),_0x569db9=(0x0,_0x8713ee['routeConnectorLineShape'])(_0x3efeb5,_0x4b6745,_0x4247f);_0x569db9&&this[_0x701e48(0x271)][_0x701e48(0x435)](_0x569db9);let _0x18d535=(0x0,_0x8713ee[_0x701e48(0x3d1)])(_0x569db9,_0x4247f);_0x18d535[_0x701e48(0x2a1)]!==_0x4247f&&this['_activeShapeModel']['changeShapeType'](_0x18d535[_0x701e48(0x2a1)]);for(let [_0x23e164,_0x1cbd86]of Object[_0x701e48(0x3eb)](_0x18d535[_0x701e48(0x27d)]))this['_activeShapeModel']['setAdjustValueByName'](_0x23e164,_0x1cbd86);this[_0x701e48(0x271)][_0x701e48(0x3a8)]({'width':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x28c)],'height':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x42b)]}),_0x21925d['transformByState']({'flipX':_0x18d535['worldRect'][_0x701e48(0x382)],'flipY':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x2e6)],'left':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x411)],'top':_0x18d535[_0x701e48(0x2c6)]['top'],'width':_0x18d535[_0x701e48(0x2c6)][_0x701e48(0x28c)],'height':_0x18d535['worldRect']['height'],'angle':_0x18d535[_0x701e48(0x3f6)]}),_0x21925d['makeDirty'](!0x0);let _0x3e6f2d=(_0x350afb=(_0x12d22b=this[_0x701e48(0x2b5)])==null?void 0x0:_0x12d22b[_0x701e48(0x236)])==null?_0x4806bc:_0x350afb;_0x5b28de[_0x701e48(0x2d0)]({'left':_0x3e6f2d['x']-_0x8713ee[_0x701e48(0x27f)][_0x701e48(0x1fd)],'top':_0x3e6f2d['y']-_0x8713ee[_0x701e48(0x27f)][_0x701e48(0x1fd)]});}[_0x30c533(0x208)](_0x3f7f98,_0x395ccb,_0x26977c,_0x70cc9e,_0x562610){const _0x16e43b=_0x30c533;var _0x45204b,_0x3c1ae0,_0x262a84,_0x3936fa;let _0x2a34e5=(_0x45204b=(_0x3c1ae0=this[_0x16e43b(0x2b5)])==null?void 0x0:_0x3c1ae0[_0x16e43b(0x236)])==null?_0x3f7f98:_0x45204b,_0x44a6bd=_0x8713ee['ConnectorCoordinateTransform'][_0x16e43b(0x29a)](_0x395ccb,_0x2a34e5,_0x26977c);_0x70cc9e[_0x16e43b(0x2d0)]({'flipX':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x382)],'flipY':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x2e6)],'left':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x411)],'top':_0x44a6bd['worldRect'][_0x16e43b(0x414)],'width':_0x44a6bd[_0x16e43b(0x2c6)]['width'],'height':_0x44a6bd['worldRect'][_0x16e43b(0x42b)],'angle':_0x44a6bd[_0x16e43b(0x2c6)][_0x16e43b(0x1cc)]});let _0x31daaa=(_0x262a84=(_0x3936fa=this[_0x16e43b(0x2b5)])==null?void 0x0:_0x3936fa['worldPoint'])==null?_0x3f7f98:_0x262a84;_0x562610[_0x16e43b(0x2d0)]({'left':_0x31daaa['x']-_0x8713ee['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x31daaa['y']-_0x8713ee[_0x16e43b(0x27f)]['cxnPointRadius']});}['_getConnectPointInfo'](_0x347b98){const _0x1fb3c6=_0x30c533;if(!this[_0x1fb3c6(0x3a1)]||!this[_0x1fb3c6(0x379)])return null;let {shapeId:_0x3cc053,cxnIndex:_0x588fa6}=_0x347b98,_0xb560e2=this[_0x1fb3c6(0x2c4)][_0x1fb3c6(0x2f4)](this[_0x1fb3c6(0x3a1)],this[_0x1fb3c6(0x379)],_0x3cc053);if(!_0xb560e2)return null;let _0x258cb8=this[_0x1fb3c6(0x32f)]['getDrawingByParam']({'unitId':this[_0x1fb3c6(0x3a1)],'subUnitId':this[_0x1fb3c6(0x379)],'drawingId':_0x3cc053});if(!(_0x258cb8!=null&&_0x258cb8['transform']))return null;let {left:_0x2988a1=0x0,top:_0x4af56f=0x0,width:_0x1dd437=0x0,height:_0x200002=0x0,flipX:_0x11d424=!0x1,flipY:_0xca00d3=!0x1,angle:_0x2b9f1d}=_0x258cb8[_0x1fb3c6(0x25d)];_0xb560e2['updateContext']({'width':_0x1dd437,'height':_0x200002});let _0x357108=_0xb560e2[_0x1fb3c6(0x245)]()[_0x1fb3c6(0x2a7)](_0x29e21e=>_0x29e21e[_0x1fb3c6(0x41f)]===_0x588fa6);if(!_0x357108)return null;let _0x100ecd=_0x11d424?_0x1dd437-_0x357108['x']:_0x357108['x'],_0x11daec=_0xca00d3?_0x200002-_0x357108['y']:_0x357108['y'];if(_0x2b9f1d!==0x0&&_0x2b9f1d!=null){let _0x5320c3=_0x2b9f1d*Math['PI']/0xb4,_0x253600=Math[_0x1fb3c6(0x40d)](_0x5320c3),_0x2d07e3=Math[_0x1fb3c6(0x3ba)](_0x5320c3),_0x9e2781=_0x1dd437/0x2,_0x2e7b1c=_0x200002/0x2,_0x210a53=_0x100ecd-_0x9e2781,_0x8cefc2=_0x11daec-_0x2e7b1c;_0x100ecd=_0x9e2781+_0x210a53*_0x253600-_0x8cefc2*_0x2d07e3,_0x11daec=_0x2e7b1c+_0x210a53*_0x2d07e3+_0x8cefc2*_0x253600;}_0x100ecd+=_0x2988a1,_0x11daec+=_0x4af56f;let _0x41abab=_0x357108['ang']/0xea60;_0x11d424&&(_0x41abab=0xb4-_0x41abab),_0xca00d3&&(_0x41abab=-_0x41abab),_0x41abab+=_0x2b9f1d||0x0,_0x41abab=(_0x41abab%0x168+0x168)%0x168;let _0x415729=(0x0,_0x8713ee[_0x1fb3c6(0x35d)])({'left':_0x2988a1,'top':_0x4af56f,'width':_0x1dd437,'height':_0x200002},_0x2b9f1d||0x0);return{'point':{'x':_0x100ecd,'y':_0x11daec},'angle':_0x41abab,'bounds':_0x415729};}[_0x30c533(0x372)](_0x40ee57,_0x34f153){const _0x5777d3=_0x30c533;let _0x90b97=_0x34f153['x']-_0x40ee57['x'],_0x130c10=_0x34f153['y']-_0x40ee57['y'];return Math[_0x5777d3(0x254)](_0x90b97)>=Math[_0x5777d3(0x254)](_0x130c10)?_0x90b97>=0x0?0xb4:0x0:_0x130c10>=0x0?0x10e:0x5a;}['_reset'](){const _0xb13297=_0x30c533;this[_0xb13297(0x200)]=void 0x0,this[_0xb13297(0x3a1)]=void 0x0,this[_0xb13297(0x379)]=void 0x0,this[_0xb13297(0x1b5)]();}[_0x30c533(0x1e9)](){const _0x8f4b8d=_0x30c533;this['_clearShapeConnectorHandlerObjects'](),super[_0x8f4b8d(0x1e9)]();}};_0x9291ab=_0x164126([_0x4fa083(0x1,_0xa2ae07['ICommandService']),_0x4fa083(0x2,_0x5663a2[_0x30c533(0x37f)]),_0x4fa083(0x3,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x4,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x5,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService'])),_0x4fa083(0x6,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x3dd7d6)),_0x4fa083(0x7,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x507830))],_0x9291ab);let _0x1ac36f=class extends _0xa2ae07['Disposable']{constructor(_0x2836bf,_0x27c407,_0x214d40){const _0x1f15d3=_0x30c533;super(),this[_0x1f15d3(0x36a)]=_0x2836bf,this[_0x1f15d3(0x32f)]=_0x27c407,this[_0x1f15d3(0x263)]=_0x214d40,this[_0x1f15d3(0x225)]();}[_0x30c533(0x225)](){const _0x3b9a6b=_0x30c533;this[_0x3b9a6b(0x40b)](this['_sheetPrintInterceptorService'][_0x3b9a6b(0x452)]['intercept'](this[_0x3b9a6b(0x36a)][_0x3b9a6b(0x452)][_0x3b9a6b(0x41c)]()[_0x3b9a6b(0x199)],{'handler':(_0x3f857e,_0x14a328,_0x2a868c)=>{const _0x477226=_0x3b9a6b;var _0x3008c3;let {unitId:_0x34ade9,subUnitId:_0x2739d7,scene:_0x1c2d90,resourceCollector:_0x21023e}=_0x14a328,_0x233d59=(_0x3008c3=this[_0x477226(0x32f)][_0x477226(0x2ca)](_0x34ade9))==null?void 0x0:_0x3008c3[_0x2739d7];return _0x233d59==null||_0x233d59[_0x477226(0x41a)][_0x477226(0x37b)](_0x5ac95a=>{const _0x26b1a3=_0x477226;let _0x903509=_0x233d59['data'][_0x5ac95a];_0x903509[_0x26b1a3(0x2f0)]===_0xa2ae07[_0x26b1a3(0x392)]['DRAWING_SHAPE']&&!_0x903509[_0x26b1a3(0x3e4)]&&this['_shapeRenderController'][_0x26b1a3(0x3c3)](_0x903509,_0x1c2d90,{'resourceCollector':_0x21023e});}),_0x2a868c(_0x3f857e);}}));}};_0x1ac36f=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07['Inject'])(_0xe965b[_0x30c533(0x3fc)])),_0x4fa083(0x1,_0x2c1288[_0x30c533(0x21e)]),_0x4fa083(0x2,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x568a7c))],_0x1ac36f);let _0x107f86=class extends _0xa2ae07['Disposable']{constructor(_0x2e92b4,_0x228a16,_0x57d3ba){const _0x3e7bc2=_0x30c533;super(),this['_commandService']=_0x2e92b4,this[_0x3e7bc2(0x46b)]=_0x228a16,this[_0x3e7bc2(0x366)]=_0x57d3ba,this[_0x3e7bc2(0x1f3)]();}['_initPermission'](){const _0x15ed08=_0x30c533;this[_0x15ed08(0x40b)](this[_0x15ed08(0x1d7)][_0x15ed08(0x369)](_0x438191=>{const _0x4f5d3a=_0x15ed08;let _0x36952b,_0x363fb8;if(_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x448)]['id']||_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x486)]['id']||_0x438191['id']===_0xe63f5c[_0x4f5d3a(0x437)]['id']){let _0x333273=_0x438191[_0x4f5d3a(0x22b)];_0x36952b=_0x333273['unitId'],_0x363fb8=_0x333273[_0x4f5d3a(0x481)];}!_0x36952b||!_0x363fb8||this[_0x4f5d3a(0x366)][_0x4f5d3a(0x36f)]({'workbookTypes':[_0x2042f3['WorkbookEditablePermission']],'worksheetTypes':[_0x2042f3['WorksheetEditPermission']]},_0x36952b,_0x363fb8)||this[_0x4f5d3a(0x366)][_0x4f5d3a(0x4a8)](this[_0x4f5d3a(0x46b)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x107f86=_0x164126([_0x4fa083(0x0,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07[_0x30c533(0x24b)])),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07['LocaleService'])),_0x4fa083(0x2,(0x0,_0xa2ae07['Inject'])(_0x2042f3['SheetPermissionCheckController']))],_0x107f86);let _0x290b8b=class extends _0xa2ae07[_0x30c533(0x48b)]{constructor(_0x5b6d99,_0x773a47,_0x560e65,_0x360ff8,_0x66f468,_0x345149,_0x3ef40f,_0x3543c4,_0x290e24,_0x2eb2de,_0x2b491e){const _0x34e74c=_0x30c533;super(),this[_0x34e74c(0x19f)]=_0x5b6d99,this[_0x34e74c(0x45f)]=_0x773a47,this[_0x34e74c(0x293)]=_0x560e65,this[_0x34e74c(0x2c4)]=_0x360ff8,this[_0x34e74c(0x46b)]=_0x66f468,this[_0x34e74c(0x1d7)]=_0x345149,this[_0x34e74c(0x32f)]=_0x3ef40f,this[_0x34e74c(0x30b)]=_0x3543c4,this[_0x34e74c(0x24f)]=_0x290e24,this[_0x34e74c(0x2a6)]=_0x2eb2de,this[_0x34e74c(0x450)]=_0x2b491e,_0x54eac0(this,_0x34e74c(0x32c),null),_0x54eac0(this,_0x34e74c(0x1bb),null),_0x54eac0(this,_0x34e74c(0x264),!0x1),_0x54eac0(this,_0x34e74c(0x32a),0x0),_0x54eac0(this,_0x34e74c(0x1ff),new Set()),_0x54eac0(this,_0x34e74c(0x298),[]),this[_0x34e74c(0x2fc)](),this[_0x34e74c(0x40b)](this[_0x34e74c(0x19f)][_0x34e74c(0x189)](_0xa2ae07['UniverInstanceType'][_0x34e74c(0x2b7)])[_0x34e74c(0x2ba)](_0x478978=>{const _0x44a572=_0x34e74c;if(!_0x478978){var _0x22b516;(_0x22b516=this['_sidebarDisposable'])==null||_0x22b516['dispose']();return;}this[_0x44a572(0x1d6)](_0x478978);})),this['_registerOperations'](),this[_0x34e74c(0x410)](),this['initShapePopupMenu'](),this[_0x34e74c(0x40b)](this['_shapeTextEditingService'][_0x34e74c(0x202)][_0x34e74c(0x2ba)](_0x3426f1=>{const _0x5c7d84=_0x34e74c;_0x3426f1&&this[_0x5c7d84(0x33b)]();}));}['_initMenu'](){const _0xc9c677=_0x30c533;this[_0xc9c677(0x293)][_0xc9c677(0x3a7)](_0x8aef12);}[_0x30c533(0x410)](){const _0x727924=_0x30c533;this[_0x727924(0x30b)]['registerFeatureMenu'](_0xa2ae07[_0x727924(0x392)][_0x727924(0x1c8)],this[_0x727924(0x39d)][_0x727924(0x3cd)](this)),this[_0x727924(0x30b)][_0x727924(0x384)](_0xa2ae07[_0x727924(0x392)][_0x727924(0x1c8)],0x6,0x4);}[_0x30c533(0x325)](){const _0x167c31=_0x30c533;this[_0x167c31(0x19f)][_0x167c31(0x1b2)](_0xa2ae07[_0x167c31(0x44b)]['UNIVER_SHEET'])[_0x167c31(0x37b)](_0x2f33f7=>this['_createShapePopupMenu'](_0x2f33f7));}[_0x30c533(0x39d)](_0x4348ee,_0x12bd52,_0x3d21ac,_0x4a053){const _0x1380f0=_0x30c533;return[{'label':_0x1380f0(0x2d3),'index':0x0,'commandId':_0x3a4b3e['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac},'disable':_0x4a053===_0xa2ae07[_0x1380f0(0x392)][_0x1380f0(0x3ca)]},{'label':_0x1380f0(0x1e0),'index':0x1,'commandId':_0x3f4b55[_0x1380f0(0x390)]['id'],'commandParams':{'unitId':_0x4348ee,'drawings':[{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac,'drawingType':_0x4a053}]},'disable':!0x1},{'label':_0x1380f0(0x305),'index':0x2,'commandId':_0x2ae476['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'drawingId':_0x3d21ac},'disable':!0x1},{'label':_0x1380f0(0x3c0),'index':0x3,'commandId':_0xe63f5c[_0x1380f0(0x1a8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'flipH':!0x0},'disable':!0x1},{'label':_0x1380f0(0x1b9),'index':0x4,'commandId':_0xe63f5c['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'flipV':!0x0},'disable':!0x1},{'label':_0x1380f0(0x3ed),'index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x2e8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'rotate':0x5a},'disable':!0x1},{'label':_0x1380f0(0x212),'index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x2e8)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac,'rotate':-0x5a},'disable':!0x1},{'label':'sheets-shape-ui.toggleTextVertical','index':0x4,'commandId':_0xe63f5c[_0x1380f0(0x38e)]['id'],'commandParams':{'unitId':_0x4348ee,'subUnitId':_0x12bd52,'shapeId':_0x3d21ac},'disable':!0x1}];}[_0x30c533(0x279)](_0x4aa413,_0xaeb48,_0x4f736a){const _0x1cc9f7=_0x30c533;let _0x5f0469=this[_0x1cc9f7(0x2c4)][_0x1cc9f7(0x48f)](_0x4aa413,_0xaeb48,_0x4f736a),_0x27c310=this[_0x1cc9f7(0x2c4)]['getShapeDataById'](_0x4aa413,_0xaeb48,_0x4f736a);return _0x5f0469!==void 0x0&&_0x27c310!==void 0x0?{'shapeData':_0x27c310,'shapeId':_0x4f736a,'shapeType':_0x5f0469,'unitId':_0x4aa413,'subUnitId':_0xaeb48,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x30c533(0x1d6)](_0x4c8f7f){const _0x48f329=_0x30c533;if(!_0x4c8f7f)return;let _0x3a5c89=_0x4c8f7f[_0x48f329(0x22e)]();this[_0x48f329(0x2a6)][_0x48f329(0x408)](_0x3a5c89)&&!this[_0x48f329(0x1ff)][_0x48f329(0x408)](_0x3a5c89)&&(this[_0x48f329(0x4a1)](_0x3a5c89),this[_0x48f329(0x1ff)][_0x48f329(0x39c)](_0x3a5c89));}['_clearPopups'](){const _0x457ce4=_0x30c533;this[_0x457ce4(0x298)][_0x457ce4(0x37b)](_0x87eda8=>_0x87eda8[_0x457ce4(0x1e9)]()),this[_0x457ce4(0x298)][_0x457ce4(0x22a)]=0x0;}[_0x30c533(0x4a1)](_0x429812){const _0x35f9b7=_0x30c533;var _0x4c2f30;let _0x48aedb=(_0x4c2f30=this[_0x35f9b7(0x2a6)]['getRenderById'](_0x429812))==null?void 0x0:_0x4c2f30['scene'],_0x1c2b54=_0x48aedb==null?void 0x0:_0x48aedb[_0x35f9b7(0x300)]();!_0x48aedb||!_0x1c2b54||(this['disposeWithMe'](_0x1c2b54[_0x35f9b7(0x275)]['subscribe'](()=>{const _0x28d654=_0x35f9b7;let _0x2edf00=_0x1c2b54[_0x28d654(0x220)]();if(this[_0x28d654(0x33b)](),this[_0x28d654(0x264)]||_0x2edf00[_0x28d654(0x2ab)]>0x1)return;let _0x99bb1c=_0x2edf00['values']()[_0x28d654(0x466)]()[_0x28d654(0x19e)];if(!_0x99bb1c)return;let _0x3f2336=this[_0x28d654(0x32f)][_0x28d654(0x416)](_0x99bb1c[_0x28d654(0x427)]);if(!_0x3f2336||_0x3f2336[_0x28d654(0x2f0)]!==_0xa2ae07['DrawingTypeEnum'][_0x28d654(0x1c8)])return;let {unitId:_0x1fba4e,subUnitId:_0x10091e,drawingId:_0x39866a,drawingType:_0x275cb3}=_0x3f2336,_0x4d7f0a=this[_0x28d654(0x279)](_0x1fba4e,_0x10091e,_0x39866a);if(!_0x4d7f0a)return;this[_0x28d654(0x24f)][_0x28d654(0x365)](_0xa2ae07[_0x28d654(0x244)],!0x0);let _0x36f273=this[_0x28d654(0x30b)][_0x28d654(0x432)](_0x99bb1c,{'componentKey':_0x339a89,'direction':_0x28d654(0x195),'offset':[0x0,_0x2a5532[_0x28d654(0x394)]],'extraProps':{'unitId':_0x1fba4e,'subUnitId':_0x10091e,'drawingId':_0x39866a,'drawingType':_0x275cb3,'shapeType':_0x4d7f0a[_0x28d654(0x20f)],'shapeData':_0x4d7f0a[_0x28d654(0x2d6)]}});this[_0x28d654(0x298)]['push'](this[_0x28d654(0x40b)](_0x36f273)),this[_0x28d654(0x32f)]['getFocusDrawings']()[_0x28d654(0x2a7)](_0x2fb13d=>_0x2fb13d[_0x28d654(0x367)]===_0x1fba4e&&_0x2fb13d[_0x28d654(0x481)]===_0x10091e&&_0x2fb13d['drawingId']===_0x39866a)||this[_0x28d654(0x32f)]['focusDrawing']([{'unitId':_0x1fba4e,'subUnitId':_0x10091e,'drawingId':_0x39866a}]);})),this['disposeWithMe'](_0x1c2b54[_0x35f9b7(0x418)]['subscribe'](()=>{const _0x39039b=_0x35f9b7;this[_0x39039b(0x33b)](),this[_0x39039b(0x24f)]['setContextValue'](_0xa2ae07['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x39039b(0x409)](null);})),this[_0x35f9b7(0x40b)](_0x1c2b54[_0x35f9b7(0x1e4)][_0x35f9b7(0x2ba)](()=>{const _0x347d8f=_0x35f9b7;this[_0x347d8f(0x33b)]();})),this[_0x35f9b7(0x40b)](_0x1c2b54['changeStart$']['subscribe'](()=>{const _0x141e2c=_0x35f9b7;this[_0x141e2c(0x33b)]();})));}[_0x30c533(0x47c)](){const _0x1f0056=_0x30c533;this['disposeWithMe'](this[_0x1f0056(0x1d7)][_0x1f0056(0x3e1)](_0x229475=>{const _0x5069bd=_0x1f0056;if(_0x229475['id']===_0x3a4b3e['id']){let {unitId:_0x33b411,subUnitId:_0x89503e,drawingId:_0x37fee0}=_0x229475[_0x5069bd(0x22b)];this[_0x5069bd(0x32a)]+=0x1,this[_0x5069bd(0x1bb)]=this[_0x5069bd(0x279)](_0x33b411,_0x89503e,_0x37fee0),this[_0x5069bd(0x33b)](),this[_0x5069bd(0x472)]();}if(_0x229475['id']===_0x2ae476['id']&&(this['_activeShapeInfo']=null,this[_0x5069bd(0x35e)]()),_0x229475['id']===_0xe63f5c[_0x5069bd(0x268)]['id']){let {unitId:_0x270675,subUnitId:_0x5854c8,shapeId:_0x2f1cd7}=_0x229475[_0x5069bd(0x22b)];if(this[_0x5069bd(0x1bb)]&&this[_0x5069bd(0x1bb)][_0x5069bd(0x454)]===_0x2f1cd7){let _0x36a721=this['_getShapeInfo'](_0x270675,_0x5854c8,_0x2f1cd7);_0x36a721&&(this[_0x5069bd(0x32a)]+=0x1,_0x36a721['version']=this['_shapeEditPanelVersion'],this[_0x5069bd(0x1bb)]=_0x36a721,this[_0x5069bd(0x264)]&&this[_0x5069bd(0x472)]());}}})),this[_0x1f0056(0x40b)](this['_drawingManagerService'][_0x1f0056(0x46c)][_0x1f0056(0x2ba)](_0x250bd5=>{const _0x483df3=_0x1f0056;if(this[_0x483df3(0x264)]===!0x1)return;if(_0x250bd5[_0x483df3(0x22a)]===0x0){this[_0x483df3(0x1bb)]=null,this[_0x483df3(0x35e)]();return;}if(_0x250bd5[_0x483df3(0x22a)]===0x1&&_0x250bd5[0x0][_0x483df3(0x2f0)]===_0xa2ae07[_0x483df3(0x392)][_0x483df3(0x1c8)]&&(this[_0x483df3(0x32a)]+=0x1,this[_0x483df3(0x1bb)]=this['_getShapeInfo'](_0x250bd5[0x0][_0x483df3(0x367)],_0x250bd5[0x0][_0x483df3(0x481)],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)])){this['_openShapeEditPanel']();return;}let _0x20ba7c=_0x250bd5[_0x483df3(0x35a)](_0x5d8100=>_0x5d8100[_0x483df3(0x2f0)]===_0xa2ae07['DrawingTypeEnum'][_0x483df3(0x1c8)]);if(_0x250bd5['length']>0x1&&_0x20ba7c[_0x483df3(0x22a)]===_0x250bd5['length']){if(this[_0x483df3(0x32a)]+=0x1,this['_activeShapeInfo']=this[_0x483df3(0x279)](_0x250bd5[0x0]['unitId'],_0x250bd5[0x0]['subUnitId'],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)]){this['_openShapeEditPanel']();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x483df3(0x1bb)]=this[_0x483df3(0x279)](_0x250bd5[0x0]['unitId'],_0x250bd5[0x0][_0x483df3(0x481)],_0x250bd5[0x0]['drawingId']),this[_0x483df3(0x1bb)]){this[_0x483df3(0x1bb)]['disableShapeOption']=!0x0,this[_0x483df3(0x472)]();return;}}this[_0x483df3(0x35e)]();}));}[_0x30c533(0x472)](){const _0x471225=_0x30c533;this[_0x471225(0x1bb)]&&(this[_0x471225(0x32c)]=this[_0x471225(0x45f)][_0x471225(0x277)]({'id':_0x24cb15,'header':{'title':this['_localeService']['t'](_0x471225(0x2ac))},'width':0x184,'children':{'label':_0x24cb15,...this[_0x471225(0x1bb)]},'onClose':()=>{const _0x487455=_0x471225;this[_0x487455(0x32f)][_0x487455(0x409)](null),this[_0x487455(0x24f)][_0x487455(0x365)](_0xa2ae07[_0x487455(0x244)],!0x1),this[_0x487455(0x32c)]=null;}}),this[_0x471225(0x264)]=!0x0);}[_0x30c533(0x35e)](){const _0x4b04bc=_0x30c533;this[_0x4b04bc(0x264)]=!0x1,this[_0x4b04bc(0x45f)][_0x4b04bc(0x3d8)](_0x24cb15),this[_0x4b04bc(0x32c)]=null,this[_0x4b04bc(0x24f)]['setContextValue'](_0xa2ae07[_0x4b04bc(0x244)],!0x1),this['_drawingManagerService']['focusDrawing'](null);}};_0x290b8b=_0x164126([_0x4fa083(0x0,_0xa2ae07[_0x30c533(0x335)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x23402e[_0x30c533(0x3ad)])),_0x4fa083(0x2,_0x23402e['IMenuManagerService']),_0x4fa083(0x3,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe63f5c['SheetsShapeService'])),_0x4fa083(0x4,(0x0,_0xa2ae07['Inject'])(_0xa2ae07[_0x30c533(0x18f)])),_0x4fa083(0x5,_0xa2ae07[_0x30c533(0x24b)]),_0x4fa083(0x6,_0x2c1288['IDrawingManagerService']),_0x4fa083(0x7,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xe965b['SheetCanvasPopManagerService'])),_0x4fa083(0x8,_0xa2ae07[_0x30c533(0x3b3)]),_0x4fa083(0x9,_0x5663a2['IRenderManagerService']),_0x4fa083(0xa,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0x580c45))],_0x290b8b);let _0x261eb8=class extends _0xa2ae07['Plugin']{constructor(_0x2dbcfb=_0x1a263c,_0x2e7a56,_0x3684f9,_0x564ad5,_0x55bbab){const _0x534ec6=_0x30c533;super(),this[_0x534ec6(0x49f)]=_0x2dbcfb,this[_0x534ec6(0x322)]=_0x2e7a56,this[_0x534ec6(0x1d7)]=_0x3684f9,this[_0x534ec6(0x30e)]=_0x564ad5,this[_0x534ec6(0x2a6)]=_0x55bbab;let {..._0x3bdde1}=(0x0,_0xa2ae07[_0x534ec6(0x333)])({},_0x1a263c,this[_0x534ec6(0x49f)]);this[_0x534ec6(0x30e)][_0x534ec6(0x37d)](_0x534ec6(0x1d5),_0x3bdde1),this[_0x534ec6(0x233)]();}[_0x30c533(0x2bc)](){const _0x33e4bd=_0x30c533;(0x0,_0xa2ae07[_0x33e4bd(0x400)])(this[_0x33e4bd(0x322)],[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x1ac36f]]);}['onSteady'](){const _0x5c4308=_0x30c533;this[_0x5c4308(0x322)][_0x5c4308(0x1a3)](_0x290b8b)[_0x5c4308(0x325)]();}['onReady'](){const _0x1fdd4c=_0x30c533;[[_0x507830],[_0x3dd7d6],[_0x1e8b99]][_0x1fdd4c(0x37b)](_0x2a10ca=>this[_0x1fdd4c(0x322)]['add'](_0x2a10ca)),(0x0,_0xa2ae07[_0x1fdd4c(0x400)])(this[_0x1fdd4c(0x322)],[[_0x1e8b99],[_0x3dd7d6]]),this[_0x1fdd4c(0x2a6)][_0x1fdd4c(0x1f7)](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x507830]),this['_renderManagerService']['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)]['UNIVER_SHEET'],[_0x16b33d]),this['_renderManagerService'][_0x1fdd4c(0x1f7)](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x9291ab]),this[_0x1fdd4c(0x2a6)]['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x2b7)],[_0x3659ed]),this[_0x1fdd4c(0x2a6)]['registerRenderModule'](_0xa2ae07[_0x1fdd4c(0x44b)][_0x1fdd4c(0x402)],[_0x2a1cdb]);}[_0x30c533(0x469)](){const _0x4bb275=_0x30c533;this[_0x4bb275(0x322)][_0x4bb275(0x39c)]([_0x3a8708]),this[_0x4bb275(0x322)][_0x4bb275(0x1a3)](_0x3a8708);let _0x42a808=this[_0x4bb275(0x322)];[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x1ac36f],[_0x5e4c74],[_0x580c45],[_0x1d9a43],[_0x319800],[_0x107f86]]['forEach'](_0x12bbdb=>_0x42a808[_0x4bb275(0x39c)](_0x12bbdb)),(0x0,_0xa2ae07[_0x4bb275(0x400)])(this[_0x4bb275(0x322)],[[_0x290b8b],[_0x9c314e],[_0x568a7c],[_0x5e4c74],[_0x580c45],[_0x1d9a43],[_0x319800],[_0x107f86]]);}['_initCommands'](){const _0x24060a=_0x30c533;[_0x9938a3,_0xc12450,_0x2ae476,_0x3a4b3e,_0xebe58f,_0x2f0931][_0x24060a(0x37b)](_0x5f403f=>this['disposeWithMe'](this[_0x24060a(0x1d7)]['registerCommand'](_0x5f403f)));}};_0x54eac0(_0x261eb8,_0x30c533(0x38f),_0xa2ae07[_0x30c533(0x44b)][_0x30c533(0x2b7)]),_0x54eac0(_0x261eb8,'pluginName','SHEET_SHAPE_UI_PLUGIN'),_0x54eac0(_0x261eb8,_0x30c533(0x213),_0x3d8ba4),_0x54eac0(_0x261eb8,_0x30c533(0x475),_0x13a4b6),_0x261eb8=_0x164126([(0x0,_0xa2ae07[_0x30c533(0x470)])(_0x3a0fb2[_0x30c533(0x270)],_0x2a5532[_0x30c533(0x356)],_0x300372[_0x30c533(0x480)],_0xe63f5c[_0x30c533(0x47d)]),_0x4fa083(0x1,(0x0,_0xa2ae07[_0x30c533(0x43e)])(_0xa2ae07['Injector'])),_0x4fa083(0x2,_0xa2ae07['ICommandService']),_0x4fa083(0x3,_0xa2ae07[_0x30c533(0x287)]),_0x4fa083(0x4,_0x5663a2[_0x30c533(0x37f)])],_0x261eb8),_0x4f30a0[_0x30c533(0x443)]=_0x8aef12,Object[_0x30c533(0x397)](_0x4f30a0,_0x30c533(0x35c),{'enumerable':!0x0,'get':function(){return _0x261eb8;}});}));