@univerjs-pro/sheets-shape-ui 1.0.0-alpha.7 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/const.d.ts +1 -1
- package/lib/types/controllers/ui.controller.d.ts +1 -98
- package/lib/types/locale/en-US.d.ts +2 -10
- package/lib/types/menu/shape-context-menu.d.ts +7 -0
- package/lib/types/views/shape-floating-toolbar/ShapeFloatingToolbar.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3901(){const _0x5c1c13=['clear','MEDIA','DrawingCommonPanel','CROSSHAIR','_adjHandlerPointerMove','_updateShapeAdjustControls','StraightConnector1','IUniverInstanceService','_loadShapePictureFill','asObservable','iterator','SELECTOR','getTransformer','_init','IconManager','824612kinpZb','getConnectionInfo','_shapeTextEditingService','SetDrawingApplyMutation','_handleConnectedEndpointMove','gdRefR','getDrawingOrder','_sheetCanvasPopManagerService','path','_setTransForm','_transformCalculateSrcRect','setSrcRect','ToggleSheetsShapeFlipCommand','formulaBinding','slice','_configService','animationEnabled','registerRenderModule','_baseWidth','close','div','discreteRangeToRange','_sheetSkeletonService','UniverProSheetsShapeUi','decorate','@univerjs/sheets-drawing','useState','_addShapeConnectorHandlerObjects','_calculateFreeEndpointAngle','@univerjs-pro/license','_createCopyInfoByRange','IUndoRedoService','_isShouldShowDrawingShapeAdjust','cos','_registerFocusChangeHandler','_initCommands','PREDEFINED_HOOK_NAME','interceptor','scene','_showConnectionSites','transformToDrawingPosition','computeConnectorResizeLayout','ISheetClipboardService','UniverCore','smartArt','getZoomRatio','flipY','ShapeFormulaService','_initSelection','_isOpenedShapeEditPanel','Observable','Large','MenuItemType','sectionCanvas','insertGroupObject','subscribeEvent','oKey','createShapeFormulaDocument','memo','OTHERS','_urlImageService','VIEW_MAIN_LEFT_TOP','REMOVE','OBJECT_LIST_FLOATING_SECTION_ID','createInternalEditorID','_baseShapeTop','DrawingTypeEnum','getSheetBySheetId','DrawingImageClipService','Injector','forwardRef','_drawSimpleText','rect','getDrawingSearch','useRef','isHit','selectable','function','Vector2','_getSceneAndTransformerByDrawingSearch','getCurrentScrollState','_currentConnectionTarget','object','multiply','error','_loadAndSetImage','_baseShapeLeft','RemoveSheetCommand','createControl$','ISidebarService','remove$','_drawRichText','_getOrCreateShapeModel','BehaviorSubject','table','fontSize','@univerjs/docs','_disposePopups','computeConnectorRouteLayout','_isImagePointerDown','_createControls','src','ShapeDefaultConfig','_menuManagerService','getOwnPropertyDescriptor','has','some','plainShapeTextToDocumentData','OPERATION','SHAPE_TEXT','ShapeArrowTypeEnum','resolveShapeTextDocumentRenderLayout','getBatchAddOp','targetShapeId','_attachConnectorObjectEvent','DocCanvasPopManagerService','_transform','defIds','buildShapeTextDataUpdate','_adjName','sectionFloating','ShapeTextFloatToolbar','_activeShapeId','_sheetPrintInterceptorService','_copyInfo','InsertShapeCommand','getConnectionRelation','svg','DocSelectionRenderService','filter','vertical','ShapeFloatingToolbar','unregister','getDrawingShapeKeyByDrawingSearch','@univerjs/core','scale','_clearConnectionSites','@univerjs-pro/shape-editor','worldPoints','RENDER_CLASS_TYPE','getObjectListPanelTypeName','startConnectionDetection','_contextService','getImageSourceCache','clip-','CopySheetCommand','isConnectorShape','UniverDocs','fill','ShapeFillEnum','call','sheets-shape-ui.toggleFlipV','width','getUnitType','_resetState','resetCursor','getUnitId','getSheetCommandTarget','sheets-shape-ui','getFocusDrawings','@univerjs-pro/sheets-shape','drawWith','ShapeArrowSizeEnum','size','SheetPrintInterceptorService','invert','getAdjustNames','isHighlighted','#4285f4','useObservable','create','_drawingRenderService','cancelEditing','#FFFFFF','_baseTop','popup','_iconManager','_isHighlighted','onDblclick$','14174970JWqvjz','_cxnIndex','updateDocumentStyle','horizontal','shape','displayName','shapeId','1.0.0-alpha.7','UpdateConnectorRelationCommand','disposeWithMe','getShapeTextRect','VIEW_MAIN','SHAPE_EDITOR_TRANSFORMER_CONFIG','Rect','onerror','PictureFill','LocaleService','sheets-shape-ui.objectListPanel.open','drawingType','DrawingApplyType','shapeKey','FromArray','SetSheetsShapeTextVerticalToggleCommand','push','ang','setShapeData','stringify','image-clip-adjust-point-','_insertShapes','UniverProShapeEditor','_drawShapeText','univer-box-border\x20univer-px-4\x20univer-text-sm','syncExecuteCommand','image','Circle','_clearShapeAdjustControls','updateConnectionDetection','SheetInterceptorService','_createShapeAdjustControls','replace','adjHandleSize','getShapeTextData','applyPoint','beforeCommandExecuted','set','activeSheet$','setOnSavingEditorData','getObjectListPanelLabels','getState','draw','ShapeTextFloatMenuRenderControllerBase','clearAdjustControls','_closeShapeEditPanel','sheetTransform','rotation','_renderManagerService','getSkeletonParam','_adjHandlerPointerUp','getDrawingOKey','UniverSheets','_formulaKey','_componentManager','highlighted','_formulaShapes','string','data','_sheetShapeAdjustController','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getDrawingPoints','InsertSheetsShapeMutation','fillImageSource','gradientEndColor','sheet.shape.picker.component','ShapeGroupEnum','_sidebarService','getPresentation','IMenuManagerService','_registerGroupFeaturePasteHook','refreshAdjustControls','delete','_isStartConnectorPoint','1427336rbMCIr','getValue','Documents','_isConnecting','_reset','worldPoint','disableShapeOption','getConnectionSiteList','UniverDocsUi','UniverProSheetsShape','DRAWING_IMAGE','render','React','sheet.operation.open-shape-object-list-panel','SetShapeDrawingDataCommand','getConnectorLinePoints','actualHeight','backward','_shapeRenderController','redo','attrs','_sheetDrawingService','angle','relation','use','getCurrentRangeDisable$','unitId','resolveShapeTextEditorBehaviorShapeData','_sheetPermissionCheckController','ImageSourceTypeEnum','getSelectedObjectMap','_executeConnectionCommand','translateWithPrecision','sheets-shape-ui.rotateLeft90','add','_initializedShapePopupMenu','36200rcslfN','update$','_activeAdjustInfo','from','complete','DocumentDataModel','with','react','_registerDrawingFocusChangeHandler','isCurvedConnectorShape','ShapePickerPanel','_registerIcons','_registerMoveHandler','SheetSkeletonService','_targetShapeId','setAdjustValueByName','version','tag','gdRefX','@univerjs/ui','formulaPresentation','FormulaShapeAnimationController','_shapes','transformByState','toPrimitive','video','register','computeStraightConnectorLayout','startArrow','onPointerMove$','none','dispose','prstGeom','changeShapeType','gdRefAng','_clipService','onStarting','_baseShapeWidth','_imageShapeClipController','_index','sheets-shape-text-','_registerDrawingMoveHandler','dataModel','UPDATE','sheetViewStartColumn','shouldAllowShapeTextEditorHostSizeShrink','presentationChanged$','lineShapeId','sheets-shape-ui.config','_initialize','RibbonInsertGroup','_executeResizeCommand','Inject','sheet.operation.close-sheet-shape-format-panel','copyType','abs','COPY_TYPE','ConnectorCoordinateTransform','_handleBasicShapeUpdateConnectorLineShape','clearAdjustValue','_attachAdjustEvent','_sheetsShapeService','_subUnitId','gdRefY','objects','extraProps','_updateTransform','_isDrawingShapePointDown','strokeWidth','getMatrix','_addShapeAdjustControl','Shape','sheets-shape-ui.deleteShape','_executeConnectedRouteResizeCommand','getInterceptPoints','defineProperty','colorChannel1','height','cxnIndex','idSuffix','sheets-shape-ui.permission.editErr','point','getParent','merge','panel','_cxtHandlerPointerUp','enableObjectsEvent','assign','attachRangeWithCoord','routeConnectorLineShape','LEFT','clip','#bcbcbc','rxjs','children','shapeModel','onPointerUp$','offsetY','getBasicShapeRotateBound','registerCommand','_sheetDrawingShapeRenderController','getShapeType','_getDrawingRect','getShapeModel','DRAWING_UNIT','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getImage','visible','getShapePopupMenus','sheets-shape-ui.toggleTextVertical','UNIVER_DOC','isLineShape','Image','_registerImageShapeClipDelegate','getStartConnectInfo','@univerjs/docs-ui','GROUP','fillType','isRichText','_getShapeAdjustPointListById','chart','setCanUseShapeClip','ICommandService','DRAWING_CHART','localeService','doc','isRenderLinePointsMode','presentation','pluginName','onCommandExecuted','get','228FYkmhM','canvas','_getShapeAdjustInfosById','substring','left','subscribe','shapeData','getMenuHiddenObservable','_connectorObjects','changeEnd$','Module','srcRect','_drawingAddListener','_updateAdjustControlPositions','_activeImageId','getAdjustInfoByName','useEffect','_baseLeft','axisAlignSheetTransform','sin','_handleFreeEndpointPointerUp','sheet.shape.text.float-menu','_findNearestConnectionSite','_drawingManagerService','_moveConnectorWithShape','onSavingEditorData$','changing$','_sheetClipboardService','_config','resolveFormulaShapeAutoFitSize','endConnectionDetection','_highlightedSiteIndex','_formulaAnimation','9dHEkWH','CommandType','_currentUniverService','_draggingConnectorId','entries','_onSavingEditorData$','_sheetBasicShapeConnectionPointController','IContextService','useDependency','getShapeTypeById','amd','DependentOn','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','_insertingShapeKeys','_getConnectionSiteAngle','DRAWING_SHAPE','trim','VIEW_MAIN_TOP','_sheetInterceptorService','adjustValues','Path','sheets-shape-ui.toggleFlipH','pushUndoRedo','transformForAngle','executeCommand','Plugin','SHAPE','ShapeIcon','DRAWING_TABLE','deriveStateFromActiveSheet$','TOP','@univerjs/sheets','Transform','UniverUi','isArray','VerticalAlign','Medium','DEFAULT_PASTE','index','_initCopyPaste','viewportScrollX','getTextStyle','addObject','Fragment','viewBound','marginTop','values','start','title','contentHeight','_shapeService','sheets-shape-ui.hidePanel','_initMenu','parse','constructor','keys','getCurrentUnitInfo','attachPopupToObject','touchDependencies','stroke','_initPrinting','SHEET_VIEWPORT_KEY','exports','intercept','259144MoZrkw','restore','getEndConnectInfo','cxnPointRadius','getCurrentLastSelection','_addControl','@univerjs/drawing','startY','updateLinePoints','fillImageSourceType','clone','initShapePopupMenu','UniverSheetsDrawingUi','SheetScrollManagerService','pipe','disableObjectsEvent','contentVerticalOffset','_generateCopyPasteMutations','None','shapeText','UniverLicensePlugin','DocumentSkeleton','_initEvents','_clearControls','generateRandomId','getDrawingByParam','buildClipPath','currentColor','isHitLine','cxnPointStroke','ShapeTextEditorContainer','preValue','getAdjustValueByName','@univerjs-pro/shape-editor-ui','setShapeProps','useFormulaShapeToolbar','toStringTag','_initEditingParams','UniverDrawing','_currentScene','_registerComponents','initTransformer','UniverSheetsShapeUIPlugin','_handleConnectorPointerUp','DRAWING_DOM','SetSheetsShapeRotateCommand','refreshShapeFillImage','onPointerDown$','CURSOR_TYPE','getShapeData','shape-adjust-point-','SHEET_SHAPE_UI_PLUGIN','_activeAdjustPointList','WorkbookEditablePermission','getObject','completeEditing','getObjectIncludeInGroup','_disposed','getUnit','_context','animateFormulaPresentation','sheetViewStartRow','_drawRichTextLayer','setPrstGeom','sheet.operation.open-sheet-shape-format-panel','_activeTargetShapeId','order','Line','_baseDrawingRect','getCurrentSkeleton','IDrawingManagerService','_activeShapeModel','ShapeLineTypeEnum','undo','end','_generatePasteMutations','FOCUSING_COMMON_DRAWINGS','_commandService','next','SheetSkeletonManagerService','useMemo','_getConnectPointInfo','clipByShape','removeLinePoints','getEditing','setCursor','round','univerjs-icon\x20univerjs-icon-','switchMap','description','setFillImage','RemoveSheetsShapeMutation','_hasReset','forEach','COMMAND','_initPermission','594282pdaVWl','getRealBound','UniverShapeEditorUIPlugin','setShouldShowAdjust','_drawingType','group','adjName','top','mask','URL','makeDirty','INSERT','shouldClipShapeTextDocument','ShapePickerDropdown','jsx','getTransformerByCreate','drawFormulaShapeAnimationLayers','SheetsShapeService','_connectionSiteObjects','map','transform','object-layers-icon','setConfig','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','getCurrentTypeOfUnit$','indexOf','sheets-shape-ui.openPanel','toString','getObjectListPanelSectionIdForDrawingType','onTransformChange$','_baseShapeHeight','connection-site-','UpdateSheetsShapeDataMutation','includes','changeStart$','UniverInstanceType','_clearShapeConnectorHandlerObjects','_isStartAdjusting','ArrangeTypeEnum','_injector','parent','getShapeDataById','unsubscribe','@univerjs-pro/engine-shape','DRAWING_OBJECT_LAYER_INDEX','getActiveSheet','_sidebarDisposable','_cxtHandlerPointerMove','50jSSyCb','FOCUSING_SHAPE_TEXT_EDITOR','beginPath','calculate','renderDrawingShape','onRendered','_commandExecutedListener','#1a73e8','addClipboardHook','packageName','0\x200\x2016\x2016','_shapeId','length','getDrawingEditable','clearActiveDrawingObjects','_shapeEditPanelVersion','bind','setPresentation','UNIVER_SHEET','setFormulaPresentation','ShapeTypeEnum','symbol','worldRect','_groupCopyPasteController','hidden','_getZoomRatio','setContextValue','_focusedDrawings','skeleton','editingParams$','_clearPopups','activeAnObject','_initSheetChange','SheetsShapeUIMenuSchema','startX','focus$','_registerOperations','_getScrollInfo','_draw','_getImagePrstGeom','getTextModel','ComponentManager','_activeShapeInfo','CUT','UpdateLineShapeResizeCommand','_addShapeConnectorHandlerObject','localToWorld','_rerouteConnectorLine','url(#$1','value','save','stopPropagation','SetDrawingSelectedOperation','ISheetDrawingService','_editingParams$','IRenderManagerService','isEditing','adjHandleFill','find','_univerInstanceService','_activeShapeAdjustPointList','_shapeUpdateListener','updateContext','_props','registerFeaturePasteHook','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_executeConnectedRouteConnectionCommand','ancestorTransform','params','resize','_getShapeInfo','getDrawingVisible','1em','WorksheetEditPermission','open','Disposable','calcAdjValue','EMPTY','_lastEditingShapeKey','toDisposable','SetSheetDrawingCommand','reduce','setHighlighted','_findShapeAtPoint','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','flipX','getSkeleton','viewportScrollY','_shapeFormulaService','UniverSheetsUi','setEditing','_localeService','updateDocumentDataMargin','xlink:href','UniverProEngineShape','refreshFormulaPresentation','_updateImageAdjValues','_handleFreeEndpointMove','IURLImageService','SheetPermissionCheckController','ShapeModel','createElement','drawingId','HorizontalAlign','sheet.command.update-shape-data','4090674lHxVju','isInGroup','resourceCollector','prepareShapeTextDocumentData','Arrow','getBatchUpdateOp','_generateCutPasteMutations','@univerjs/engine-render','ObjectLayersIcon','type','offsetX','getRenderById','_applyFormulaAutoFitSize','blockExecuteWithoutPermission','custom','normalizeShapeTextModel','_createShapePopupMenu','getDrawingData','subUnitId','classType','DrawingRenderService','sheet.shape.floating-toolbar','SheetCanvasPopManagerService','_getImageDrawingInfo','isRender','endArrow','add$','registerFeatureMenuOffset','lineType','BUTTON','@univerjs/drawing-ui','name','DRAWING_VIDEO','jsxs','_unitId','_openShapeEditPanel','focusDrawing','getBentTypeFromPoints','_baseHeight','react/jsx-runtime'];_0x3901=function(){return _0x5c1c13;};return _0x3901();}function _0x45fb(_0x34db8f,_0x429791){_0x34db8f=_0x34db8f-0x1cc;const _0x390101=_0x3901();let _0x45fb2a=_0x390101[_0x34db8f];return _0x45fb2a;}(function(_0x34445c,_0x362e6b){const _0x22365b=_0x45fb,_0x332425=_0x34445c();while(!![]){try{const _0x250625=parseInt(_0x22365b(0x323))/0x1+-parseInt(_0x22365b(0x427))/0x2+-parseInt(_0x22365b(0x4ce))/0x3*(-parseInt(_0x22365b(0x44b))/0x4)+-parseInt(_0x22365b(0x283))/0x5*(-parseInt(_0x22365b(0x253))/0x6)+parseInt(_0x22365b(0x2ec))/0x7+-parseInt(_0x22365b(0x1f3))/0x8*(-parseInt(_0x22365b(0x4ef))/0x9)+-parseInt(_0x22365b(0x3d6))/0xa;if(_0x250625===_0x362e6b)break;else _0x332425['push'](_0x332425['shift']());}catch(_0x5e086a){_0x332425['push'](_0x332425['shift']());}}}(_0x3901,0xf154c),function(_0x204849,_0x91840d){const _0x25e093=_0x45fb;typeof exports==_0x25e093(0x375)&&typeof module<'u'?_0x91840d(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),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-pro/shape-editor-ui'),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==_0x25e093(0x370)&&define[_0x25e093(0x4f9)]?define([_0x25e093(0x1f1),_0x25e093(0x45e),_0x25e093(0x27e),_0x25e093(0x3ac),_0x25e093(0x3c3),_0x25e093(0x3a9),_0x25e093(0x1d2),_0x25e093(0x1f9),_0x25e093(0x2f3),'@univerjs/sheets-ui',_0x25e093(0x4a8),_0x25e093(0x214),_0x25e093(0x30a),_0x25e093(0x313),_0x25e093(0x340),'@univerjs/sheets-drawing-ui',_0x25e093(0x452),_0x25e093(0x33c),_0x25e093(0x383),_0x25e093(0x4be)],_0x91840d):(_0x204849=typeof globalThis<'u'?globalThis:_0x204849||self,_0x91840d(_0x204849[_0x25e093(0x33a)]={},_0x204849[_0x25e093(0x1d4)],_0x204849[_0x25e093(0x2e1)],_0x204849[_0x25e093(0x3f3)],_0x204849[_0x25e093(0x430)],_0x204849[_0x25e093(0x34e)],_0x204849[_0x25e093(0x411)],_0x204849[_0x25e093(0x219)],_0x204849['UniverEngineRender'],_0x204849[_0x25e093(0x2dc)],_0x204849[_0x25e093(0x4a8)],_0x204849['UniverProShapeEditorUi'],_0x204849['UniverDrawingUi'],_0x204849[_0x25e093(0x433)],_0x204849['UniverProLicense'],_0x204849[_0x25e093(0x1ff)],_0x204849[_0x25e093(0x433)],_0x204849['UniverSheetsDrawing'],_0x204849[_0x25e093(0x3b6)],_0x204849[_0x25e093(0x42f)]));}(this,function(_0x11b69c,_0xa9133b,_0x5b6709,_0x5a6548,_0x4eb2ab,_0x49d30a,_0x4fbea5,_0x510035,_0x40dd84,_0x100e66,_0x230aed,_0xa40d9e,_0xceb6c3,_0x208661,_0x9f095,_0x4c7223,_0x4ff626,_0x28a390,_0x2bba01,_0x31dab3){const _0x209063=_0x45fb;Object[_0x209063(0x496)](_0x11b69c,Symbol[_0x209063(0x217)],{'value':_0x209063(0x4d8)});function _0x7bb43(_0x184c86,_0x559e40){const _0x3a88bb=_0x209063;let _0x34fff7={};for(let _0x1ea294 of Object[_0x3a88bb(0x1ea)](_0x559e40)){let _0x247331=_0x559e40[_0x1ea294],_0x491242=_0x184c86[_0x1ea294];if(_0x247331!==void 0x0){if(_0x491242===void 0x0){_0x34fff7[_0x1ea294]=void 0x0;continue;}typeof _0x247331=='object'&&_0x247331&&!Array[_0x3a88bb(0x1d5)](_0x247331)&&typeof _0x491242=='object'&&_0x491242&&!Array[_0x3a88bb(0x1d5)](_0x491242)?_0x34fff7[_0x1ea294]=_0x7bb43(_0x491242,_0x247331):_0x34fff7[_0x1ea294]=_0x491242;}}return _0x34fff7;}let _0x39f376={'type':_0x49d30a['CommandType'][_0x209063(0x251)],'id':_0x209063(0x2eb),'handler':(_0x418ff4,_0x833116)=>{const _0x19e5a3=_0x209063;let _0x5dbe63=_0x418ff4[_0x19e5a3(0x4cd)](_0x4eb2ab[_0x19e5a3(0x264)]),{unitId:_0x2bf6b5,subUnitId:_0x587ef6,shapeType:_0x564bdc,shapeId:_0x2912d9,shapeData:_0x5ab0d8,oldShapeJSON:_0x5d7ca8}=_0x833116;if(!_0x5dbe63[_0x19e5a3(0x4b2)](_0x2bf6b5,_0x587ef6,_0x2912d9))return!0x1;let _0x5bd167=_0x418ff4[_0x19e5a3(0x4cd)](_0x49d30a[_0x19e5a3(0x4c5)]),_0x1adf76=_0x418ff4[_0x19e5a3(0x4cd)](_0x49d30a[_0x19e5a3(0x342)]),{oldShapeType:_0x4bc825,oldShapeData:_0x1b8257={}}=_0x5d7ca8,_0x41b4c2=_0x7bb43(_0x1b8257,_0x5ab0d8||{}),_0x4d0026={'id':_0x4eb2ab[_0x19e5a3(0x273)]['id'],'params':{'unitId':_0x2bf6b5,'subUnitId':_0x587ef6,'shapeId':_0x2912d9,'shapeType':_0x564bdc,'shapeData':_0x5ab0d8}},_0x344279={'id':_0x4eb2ab[_0x19e5a3(0x273)]['id'],'params':{'unitId':_0x2bf6b5,'subUnitId':_0x587ef6,'shapeId':_0x2912d9,'shapeType':_0x4bc825,'shapeData':_0x41b4c2}};return _0x5bd167['syncExecuteCommand'](_0x4d0026['id'],_0x4d0026[_0x19e5a3(0x2c7)])?(_0x1adf76[_0x19e5a3(0x505)]({'unitID':_0x2bf6b5,'undoMutations':[_0x344279],'redoMutations':[_0x4d0026]}),!0x0):!0x1;}};function _0x407767(_0x424776,_0x45284b,_0x449074,_0x357483,_0x302be7,_0x5cf8ba){const _0x30d48c=_0x209063;let _0x3502b3={'unitId':_0x45284b,'subUnitId':_0x449074,'shapeId':_0x357483,'shapeData':_0x5cf8ba,'oldShapeJSON':_0x302be7};return _0x424776[_0x30d48c(0x507)](_0x39f376['id'],_0x3502b3);}function _0x2583c5(_0x43557e,_0x2e9d7e,_0x49ce80,_0x51c577,_0xa0cdcc,_0x2359a6){const _0x39af62=_0x209063;let _0x2ffd6d={'unitId':_0x2e9d7e,'subUnitId':_0x49ce80,'shapeId':_0x51c577,'shapeData':_0x2359a6,'oldShapeJSON':_0xa0cdcc};return _0x43557e[_0x39af62(0x507)](_0x39f376['id'],_0x2ffd6d);}function _0x15400d(_0x31f8f6){'@babel/helpers - typeof';const _0x274cc0=_0x209063;return _0x15400d=typeof Symbol==_0x274cc0(0x370)&&typeof Symbol[_0x274cc0(0x31e)]==_0x274cc0(0x298)?function(_0x137c2a){return typeof _0x137c2a;}:function(_0x303cf6){const _0x174d20=_0x274cc0;return _0x303cf6&&typeof Symbol==_0x174d20(0x370)&&_0x303cf6[_0x174d20(0x1e9)]===Symbol&&_0x303cf6!==Symbol['prototype']?_0x174d20(0x298):typeof _0x303cf6;},_0x15400d(_0x31f8f6);}function _0x224c7e(_0x79031d,_0x5c8c42){const _0x4cb775=_0x209063;if(_0x15400d(_0x79031d)!=_0x4cb775(0x375)||!_0x79031d)return _0x79031d;var _0x46a9a6=_0x79031d[Symbol[_0x4cb775(0x463)]];if(_0x46a9a6!==void 0x0){var _0x36527c=_0x46a9a6[_0x4cb775(0x3b9)](_0x79031d,_0x5c8c42||'default');if(_0x15400d(_0x36527c)!=_0x4cb775(0x375))return _0x36527c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c8c42===_0x4cb775(0x416)?String:Number)(_0x79031d);}function _0x275d4f(_0xab4ae3){const _0x56e20d=_0x209063;var _0x165c4d=_0x224c7e(_0xab4ae3,_0x56e20d(0x416));return _0x15400d(_0x165c4d)==_0x56e20d(0x298)?_0x165c4d:_0x165c4d+'';}function _0x28368a(_0x53f700,_0x538bfb,_0x23cade){return(_0x538bfb=_0x275d4f(_0x538bfb))in _0x53f700?Object['defineProperty'](_0x53f700,_0x538bfb,{'value':_0x23cade,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53f700[_0x538bfb]=_0x23cade,_0x53f700;}function _0x35312a(_0x4119cb,_0x179963,_0x46f3d0){const _0x352c35=_0x209063;var _0x51bb2a;let _0x1be1a9=(0x0,_0xa40d9e[_0x352c35(0x442)])(_0x4119cb,{..._0x179963,'dataModel':{...(_0x51bb2a=_0x179963['dataModel'])==null?{}:_0x51bb2a,..._0x46f3d0?{'doc':_0x46f3d0}:null}}),_0xbda7eb=(0x0,_0xa40d9e['resolveShapeTextEditorWrapStrategy'])(_0x1be1a9);return{'clip':(0x0,_0xa40d9e[_0x352c35(0x25f)])(_0x1be1a9,_0xbda7eb),'wrapStrategy':_0xbda7eb};}var _0x642241=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x401f21,_0x17ba38){const _0x1bce8e=_0x209063;super(_0x401f21,_0x17ba38),_0x28368a(this,'_props',void 0x0),_0x28368a(this,'_formulaAnimation',new _0xa40d9e[(_0x1bce8e(0x460))](()=>this[_0x1bce8e(0x25d)](!0x0),()=>this[_0x1bce8e(0x2f8)]())),_0x28368a(this,_0x1bce8e(0x32d),!0x0),_0x28368a(this,_0x1bce8e(0x257),_0x49d30a[_0x1bce8e(0x365)][_0x1bce8e(0x4fe)]),_0x28368a(this,'isDrawingObject',!0x0),this[_0x1bce8e(0x2c2)]={..._0x17ba38},this[_0x1bce8e(0x4ee)]['setPresentation'](_0x17ba38[_0x1bce8e(0x45f)],_0x17ba38[_0x1bce8e(0x22f)]!==!0x1),this[_0x1bce8e(0x321)](),this['_applyFormulaAutoFitSize']();}[_0x209063(0x321)](){const _0x314450=_0x209063;this[_0x314450(0x270)][_0x314450(0x35a)](_0x1e9fcd=>{this['_updateSrcRectByTransform'](_0x1e9fcd);});}[_0x209063(0x232)](_0x13af58){const _0x3cccc4=_0x209063;this[_0x3cccc4(0x2c2)]['prstGeom']=_0x13af58;}[_0x209063(0x2dd)](_0x405061){const _0x3f8dce=_0x209063;this[_0x3f8dce(0x2c2)][_0x3f8dce(0x2bb)]=_0x405061,this[_0x3f8dce(0x25d)](!0x0);}['setFormulaPresentation'](_0x4c0872,_0x493f2c=!0x0){const _0x47bada=_0x209063;this['_formulaAnimation'][_0x47bada(0x294)](_0x4c0872,_0x493f2c),this[_0x47bada(0x2c2)][_0x47bada(0x45f)]=_0x4c0872,this[_0x47bada(0x2f8)](),this[_0x47bada(0x25d)](!0x0);}[_0x209063(0x2f8)](){const _0x4f4424=_0x209063;let _0x591290=this[_0x4f4424(0x2c2)][_0x4f4424(0x4aa)],_0x40dfb7=_0x591290['getShapeTextData'](),_0x18174a=(0x0,_0xa40d9e['normalizeShapeTextModel'])(_0x40dfb7==null?void 0x0:_0x40dfb7[_0x4f4424(0x475)]),_0x4606f4=_0x18174a==null?void 0x0:_0x18174a['doc'],_0x394852=this[_0x4f4424(0x4ee)]['getAutoFitPresentations']();if(!_0x4606f4||_0x394852[_0x4f4424(0x28f)]===0x0)return;_0x591290[_0x4f4424(0x2c1)]({'width':this['width'],'height':this[_0x4f4424(0x498)]});let _0x5e3a30=(0x0,_0xa40d9e[_0x4f4424(0x4eb)])({'documentData':_0x394852[_0x4f4424(0x266)](_0x5da123=>(0x0,_0x5a6548[_0x4f4424(0x35c)])(_0x4606f4,_0x5da123)),'height':this['height'],'shapeData':_0x591290[_0x4f4424(0x224)](),'textRect':_0x591290[_0x4f4424(0x3e0)]({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x4f4424(0x498)]}),'width':this[_0x4f4424(0x3bb)]});if(_0x5e3a30){var _0x3754b5;this[_0x4f4424(0x2c8)](_0x5e3a30[_0x4f4424(0x3bb)],_0x5e3a30[_0x4f4424(0x498)]),(_0x3754b5=this['getScene']())==null||(_0x3754b5=_0x3754b5[_0x4f4424(0x320)]())==null||_0x3754b5['debounceRefreshControls']();}}get[_0x209063(0x441)](){const _0xa20091=_0x209063;return this[_0xa20091(0x2c2)][_0xa20091(0x441)];}get[_0x209063(0x2fe)](){const _0x2ea507=_0x209063;return this[_0x2ea507(0x2c2)]['subUnitId'];}['_updateSrcRectByTransform'](_0x596d26){const _0x51aa3c=_0x209063;if(this[_0x51aa3c(0x2c2)][_0x51aa3c(0x4d9)]==null||!this[_0x51aa3c(0x32d)])return;let {width:_0x5b859c,height:_0x1e3358}=this,{width:_0x1949e0=0x0,height:_0x18ca78=0x0}=_0x596d26[_0x51aa3c(0x212)],{left:_0x33a055=0x0,top:_0x140072=0x0,right:_0x220401=0x0,bottom:_0xf0b607=0x0}=this[_0x51aa3c(0x2c2)][_0x51aa3c(0x4d9)],_0x586b56=_0x33a055,_0x2db230=_0x140072,_0x104316=_0x220401,_0xcc0209=_0xf0b607,_0x4d7576=!0x1;if(_0x1949e0!==0x0&&_0x1949e0!==_0x5b859c){let _0x1a45b2=_0x33a055/_0x1949e0,_0x5f2e62=_0x220401/_0x1949e0;_0x586b56=_0x5b859c*_0x1a45b2,_0x104316=_0x5b859c*_0x5f2e62,_0x4d7576=!0x0;}if(_0x18ca78!==0x0&&_0x18ca78!==_0x1e3358){let _0x2db832=_0x140072/_0x18ca78,_0x1d38d7=_0xf0b607/_0x18ca78;_0x2db230=_0x1e3358*_0x2db832,_0xcc0209=_0x1e3358*_0x1d38d7,_0x4d7576=!0x0;}_0x4d7576&&this['setSrcRect']({'left':_0x586b56,'top':_0x2db230,'right':_0x104316,'bottom':_0xcc0209});}[_0x209063(0x32e)](_0xdd26fe){const _0x6ca0b8=_0x209063;this[_0x6ca0b8(0x2c2)][_0x6ca0b8(0x4d9)]=_0xdd26fe,this['makeDirty'](!0x0);}[_0x209063(0x24d)](_0x3b3624){const _0x2f975b=_0x209063;this[_0x2f975b(0x2c2)][_0x2f975b(0x3f7)]=_0x3b3624,this[_0x2f975b(0x25d)](!0x0);}set[_0x209063(0x267)](_0x4375df){const _0x25b0a3=_0x209063;this[_0x25b0a3(0x397)]=_0x4375df;}get[_0x209063(0x267)](){const _0x53a5e0=_0x209063;this[_0x53a5e0(0x397)]||this[_0x53a5e0(0x32c)]();let _0x1b5f79=this[_0x53a5e0(0x397)][_0x53a5e0(0x1fd)]();return this[_0x53a5e0(0x506)](_0x1b5f79);}get['shapeModel'](){const _0x3b95a1=_0x209063;return this[_0x3b95a1(0x2c2)][_0x3b95a1(0x4aa)];}get[_0x209063(0x3dc)](){const _0x243aeb=_0x209063;return this[_0x243aeb(0x2c2)]['shapeId'];}get[_0x209063(0x2ff)](){const _0x16e699=_0x209063;return _0x40dd84[_0x16e699(0x3ae)][_0x16e699(0x1cd)];}['_draw'](_0x1494c,_0x2c9ee7,_0x404825,_0x1ce873){const _0x35daca=_0x209063;let _0x29c442=this[_0x35daca(0x2c2)][_0x35daca(0x4aa)];if(!_0x29c442||!_0x2c9ee7)return;let _0x3477e5=_0x404825==null?this[_0x35daca(0x3bb)]:_0x404825,_0x278d05=_0x1ce873==null?this['height']:_0x1ce873,_0x17d7ed={'shapeType':_0x29c442['getShapeType'](),'width':_0x3477e5,'height':_0x278d05},_0x3582d0={'renderMode':_0x5b6709['ShapeRenderModeEnum'][_0x35daca(0x503)],'oKey':this[_0x35daca(0x35b)],'image':this['_props']['image'],'angle':this[_0x35daca(0x43d)]};_0x29c442[_0x35daca(0x2c1)](_0x17d7ed),_0x1494c[_0x35daca(0x2b5)]();let _0x142b4d={'top':0x0,'left':0x0,'width':_0x3477e5,'height':_0x278d05};_0x29c442[_0x35daca(0x432)](_0x1494c,_0x142b4d,_0x3582d0),_0x1494c['restore']();let _0x3650d8=_0x29c442[_0x35daca(0x3ff)](),_0x136b50=_0x29c442['getShapeTextRect'](_0x142b4d),_0x1124eb=_0x29c442[_0x35daca(0x4ba)]();if(_0x3650d8&&_0x136b50&&!_0x1124eb){_0x1494c['save'](),this[_0x35daca(0x406)]()['flipX']&&_0x1494c[_0x35daca(0x3aa)](-0x1,0x1);let _0x4cba15=_0x3477e5/0x2,_0x16ba25=_0x278d05/0x2;_0x1494c['translate'](-_0x4cba15,-_0x16ba25),_0x1494c['beginPath'](),this[_0x35daca(0x3f4)](_0x1494c,_0x3650d8,_0x136b50),_0x1494c[_0x35daca(0x1f4)]();}}['getDrawingPoints'](_0x3c39c9){}['_drawShapeText'](_0x524c47,_0x24f024,_0x1875eb){const _0x383a44=_0x209063;var _0x66dbe1;this[_0x383a44(0x2c2)][_0x383a44(0x2bb)]||(!((_0x66dbe1=_0x24f024[_0x383a44(0x475)])!=null&&_0x66dbe1[_0x383a44(0x4c8)])&&'isRichText'in _0x24f024&&_0x24f024[_0x383a44(0x4c1)]===!0x1?this['_drawSimpleText'](_0x524c47,_0x24f024,_0x1875eb):this[_0x383a44(0x37e)](_0x524c47,_0x24f024,_0x1875eb));}[_0x209063(0x36a)](_0x8d2b8c,_0x1b336a,_0x49d94b){const _0x3ec430=_0x209063;var _0x44fb4b;this['_drawRichText'](_0x8d2b8c,{..._0x1b336a,'text':(_0x44fb4b=_0x1b336a['text'])==null?'':_0x44fb4b,'dataModel':{'doc':(0x0,_0xa40d9e[_0x3ec430(0x38e)])(_0x1b336a,_0x3ec430(0x473)+this[_0x3ec430(0x35b)])}},_0x49d94b);}['_drawRichText'](_0x17ff1d,_0x2fa589,_0x436cb6){const _0x5b8cec=_0x209063;(0x0,_0xa40d9e[_0x5b8cec(0x263)])(_0x17ff1d,this[_0x5b8cec(0x4ee)],(_0x323fbd,_0xd5b682)=>{const _0x5d4edf=_0x5b8cec;this[_0x5d4edf(0x231)](_0x323fbd,_0x2fa589,_0x436cb6,_0xd5b682);});}[_0x209063(0x231)](_0x13028d,_0x419d48,_0x5cdf08,_0x3da884){const _0x5cb14a=_0x209063;var _0x3efef1,_0x4190ea;let _0x29a701=this[_0x5cb14a(0x2c2)][_0x5cb14a(0x4c7)];if(!_0x419d48[_0x5cb14a(0x475)]||!_0x29a701)return;let _0x466ae7=(0x0,_0xa40d9e[_0x5cb14a(0x2fb)])(_0x419d48[_0x5cb14a(0x475)]);if(!_0x466ae7)return;let _0x3ce464=_0x466ae7[_0x5cb14a(0x4c8)];if(!_0x3ce464)return;let _0x2a1c55=(0x0,_0x5a6548[_0x5cb14a(0x35c)])(_0x3ce464,_0x3da884),_0x572e5c=(_0x3efef1=_0x466ae7['va'])==null?_0x49d30a[_0x5cb14a(0x1d6)][_0x5cb14a(0x1d1)]:_0x3efef1,_0x15fd40=(_0x4190ea=_0x466ae7['ha'])==null?_0x49d30a[_0x5cb14a(0x2ea)][_0x5cb14a(0x4a5)]:_0x4190ea,_0x380445=_0x35312a(this['_props'][_0x5cb14a(0x4aa)][_0x5cb14a(0x224)](),_0x419d48,_0x2a1c55),_0xb7d257=_0x419d48['isHorizontal'],_0x5e79d1=new _0x49d30a[(_0x5cb14a(0x450))]((0x0,_0xa40d9e[_0x5cb14a(0x2ef)])(_0x2a1c55,{'isHorizontal':_0xb7d257!==!0x1,'textRect':_0x5cdf08,'verticalAlign':_0x572e5c,'horizontalAlign':_0x15fd40,'wrapStrategy':_0x380445['wrapStrategy']})),_0x21bc78=new _0x40dd84['DocumentViewModel'](_0x5e79d1),_0x5e6ae8=_0x40dd84[_0x5cb14a(0x208)][_0x5cb14a(0x3cd)](_0x21bc78,_0x29a701);_0x5e6ae8[_0x5cb14a(0x286)]();let _0x614fb3=_0x5e6ae8['getActualSize']()[_0x5cb14a(0x437)],_0x512fcd=(0x0,_0xa40d9e[_0x5cb14a(0x392)])({'contentHeight':_0x614fb3,'verticalAlign':_0x572e5c,'viewportHeight':_0x5cdf08[_0x5cb14a(0x498)]});_0x5e79d1[_0x5cb14a(0x3d8)]({'pageSize':{'width':_0xb7d257===!0x1?_0x5cdf08['height']:_0x5cdf08[_0x5cb14a(0x3bb)],'height':_0x512fcd[_0x5cb14a(0x1e4)]}}),_0x5e79d1[_0x5cb14a(0x2df)]({'t':_0x512fcd[_0x5cb14a(0x1e0)]}),_0x5e6ae8[_0x5cb14a(0x286)]();let _0x5d6929=new _0x40dd84[(_0x5cb14a(0x429))]('shape-text-'+this['oKey'],_0x5e6ae8,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x5cb14a(0x25d)](!0x0)});_0x5d6929[_0x5cb14a(0x2c8)](_0x5cdf08[_0x5cb14a(0x3bb)],_0x512fcd['contentHeight']),_0x13028d[_0x5cb14a(0x2b5)](),_0x13028d[_0x5cb14a(0x447)](_0x5cdf08[_0x5cb14a(0x4d2)],_0x5cdf08[_0x5cb14a(0x25a)]),_0x380445[_0x5cb14a(0x4a6)]&&(_0x13028d[_0x5cb14a(0x285)](),_0x13028d[_0x5cb14a(0x36b)](0x0,_0x512fcd['clipTop'],_0x5cdf08['width'],_0x512fcd['clipHeight']),_0x13028d[_0x5cb14a(0x4a6)]()),_0x512fcd[_0x5cb14a(0x203)]&&_0x13028d[_0x5cb14a(0x447)](0x0,_0x512fcd['contentVerticalOffset']),_0x5d6929[_0x5cb14a(0x407)](_0x13028d),_0x13028d[_0x5cb14a(0x1f4)](),_0x5d6929[_0x5cb14a(0x46a)](),_0x5e6ae8[_0x5cb14a(0x46a)](),_0x21bc78[_0x5cb14a(0x46a)](),_0x5e79d1['dispose']();}[_0x209063(0x432)](_0x11b311,_0x12be51,_0x4888fb=!0x1){const _0x77f5bd=_0x209063;if(!this['visible'])return this[_0x77f5bd(0x25d)](!0x1),this;let {width:_0xc42ee5,height:_0x4b578f,left:_0x2f2f3b,top:_0x2b6c5e}=this,_0x131bd7=this['getRealBound']();if(_0xc42ee5=_0x131bd7[_0x77f5bd(0x3bb)],_0x4b578f=_0x131bd7[_0x77f5bd(0x498)],_0x2f2f3b=_0x131bd7[_0x77f5bd(0x4d2)],_0x2b6c5e=_0x131bd7[_0x77f5bd(0x25a)],this[_0x77f5bd(0x304)](_0x12be51)){let {top:_0x5244be,left:_0x5e567e,bottom:_0x5d34bc,right:_0x5119ce}=_0x12be51[_0x77f5bd(0x1df)];if(_0xc42ee5+this[_0x77f5bd(0x48f)]+_0x2f2f3b<_0x5e567e||_0x5119ce<_0x2f2f3b||_0x4b578f+this[_0x77f5bd(0x48f)]+_0x2b6c5e<_0x5244be||_0x5d34bc<_0x2b6c5e)return this;}let _0x573b3c=_0x2f2f3b+_0xc42ee5/0x2,_0x471a27=_0x2b6c5e+_0x4b578f/0x2,_0x3bbf31=this[_0x77f5bd(0x267)][_0x77f5bd(0x490)]();if(this[_0x77f5bd(0x2c2)]['isEditing']){let _0x18a0a3=this[_0x77f5bd(0x406)](),_0x28c070=new _0x40dd84['Transform']();_0x28c070['composeMatrix']({..._0x18a0a3}),_0x3bbf31=_0x28c070[_0x77f5bd(0x490)]();}return _0x11b311['save'](),this[_0x77f5bd(0x2c2)][_0x77f5bd(0x4aa)][_0x77f5bd(0x4c9)]===!0x0||_0x11b311[_0x77f5bd(0x267)](_0x3bbf31[0x0],_0x3bbf31[0x1],_0x3bbf31[0x2],_0x3bbf31[0x3],_0x573b3c,_0x471a27),this['_draw'](_0x11b311,_0x12be51,_0xc42ee5,_0x4b578f),_0x11b311[_0x77f5bd(0x1f4)](),this[_0x77f5bd(0x25d)](!0x1),this;}['getInverseCoord'](_0x1723bf){const _0x1ac42d=_0x209063;let {left:_0x1d19cb,top:_0xa13a52,width:_0x1f0755,height:_0x2d23af}=this[_0x1ac42d(0x254)](),_0x16e08a=this[_0x1ac42d(0x267)][_0x1ac42d(0x490)](),_0x32e5a6=_0x1d19cb+_0x1f0755/0x2,_0xa9ed89=_0xa13a52+_0x2d23af/0x2,_0x26f342=new _0x40dd84[(_0x1ac42d(0x1d3))]([_0x16e08a[0x0],_0x16e08a[0x1],_0x16e08a[0x2],_0x16e08a[0x3],_0x32e5a6,_0xa9ed89]),_0x1f7b78=this[_0x1ac42d(0x49d)]();return(this[_0x1ac42d(0x2ed)]&&(_0x1f7b78==null?void 0x0:_0x1f7b78['classType'])===_0x40dd84[_0x1ac42d(0x3ae)]['GROUP']?_0x1f7b78['ancestorTransform'][_0x1ac42d(0x376)](_0x26f342):_0x26f342)[_0x1ac42d(0x3c8)]()[_0x1ac42d(0x400)](_0x1723bf);}[_0x209063(0x36e)](_0x519261){const _0x1ceffe=_0x209063;let {left:_0x1f5ff3,top:_0x364d5c,width:_0xbd01f6,height:_0x2120db}=this[_0x1ceffe(0x254)](),_0x3de6d5=_0x1f5ff3+_0xbd01f6/0x2,_0x17d0be=_0x364d5c+_0x2120db/0x2,_0x4189fb=this['transform'][_0x1ceffe(0x490)](),_0xbefebf=new _0x40dd84[(_0x1ceffe(0x1d3))]([_0x4189fb[0x0],_0x4189fb[0x1],_0x4189fb[0x2],_0x4189fb[0x3],_0x3de6d5,_0x17d0be]),_0x3d6f62=this[_0x1ceffe(0x49d)](),_0x3ef2c9=(this[_0x1ceffe(0x2ed)]&&(_0x3d6f62==null?void 0x0:_0x3d6f62[_0x1ceffe(0x2ff)])===_0x40dd84[_0x1ceffe(0x3ae)]['GROUP']?_0x3d6f62['ancestorTransform'][_0x1ceffe(0x376)](_0xbefebf):_0xbefebf)['invert']()[_0x1ceffe(0x400)](_0x519261),_0x7bb365=_0xbd01f6/0x2,_0x4d4e3d=_0x2120db/0x2,_0x511ba3=this[_0x1ceffe(0x2c2)][_0x1ceffe(0x4aa)];return _0x511ba3&&_0x511ba3[_0x1ceffe(0x4ba)]()?_0x511ba3[_0x1ceffe(0x20f)](_0x3ef2c9['x'],_0x3ef2c9['y'],_0xbd01f6,_0x2120db):_0x3ef2c9['x']>=-_0x7bb365-this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['x']<=_0x7bb365+this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['y']>=-_0x4d4e3d-this[_0x1ceffe(0x48f)]/0x2&&_0x3ef2c9['y']<=_0x4d4e3d+this[_0x1ceffe(0x48f)]/0x2;}[_0x209063(0x46a)](){const _0x2eb5ce=_0x209063;this[_0x2eb5ce(0x4ee)][_0x2eb5ce(0x46a)](),this[_0x2eb5ce(0x2c2)][_0x2eb5ce(0x4aa)]=null,super[_0x2eb5ce(0x46a)]();}},_0xa97e9e=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x2f859e,_0x46c39c){const _0x5ca532=_0x209063;super(_0x2f859e,_0x46c39c),_0x28368a(this,_0x5ca532(0x28e),null),_0x28368a(this,_0x5ca532(0x39a),null),_0x28368a(this,_0x5ca532(0x30e),null),_0x28368a(this,_0x5ca532(0x489),null),_0x46c39c&&this['setShapeProps'](_0x46c39c);}[_0x209063(0x36c)](){const _0x2d6e33=_0x209063;return{'unitId':this[_0x2d6e33(0x30e)],'subUnitId':this[_0x2d6e33(0x489)],'drawingId':this['_shapeId']};}[_0x209063(0x215)](_0x5e0e98){const _0xa3039b=_0x209063;_0x5e0e98[_0xa3039b(0x3dc)]!==void 0x0&&(this['_shapeId']=_0x5e0e98[_0xa3039b(0x3dc)]),_0x5e0e98[_0xa3039b(0x259)]!==void 0x0&&(this[_0xa3039b(0x39a)]=_0x5e0e98[_0xa3039b(0x259)]),_0x5e0e98[_0xa3039b(0x441)]!==void 0x0&&(this[_0xa3039b(0x30e)]=_0x5e0e98['unitId']),_0x5e0e98[_0xa3039b(0x2fe)]!==void 0x0&&(this[_0xa3039b(0x489)]=_0x5e0e98[_0xa3039b(0x2fe)]),this[_0xa3039b(0x462)]({'width':_0x5e0e98[_0xa3039b(0x3bb)],'height':_0x5e0e98[_0xa3039b(0x498)]});}[_0x209063(0x2a9)](_0xc26ece){const _0x1f7d6e=_0x209063;_0x40dd84['Circle'][_0x1f7d6e(0x3c4)](_0xc26ece,{'radius':_0x5b6709[_0x1f7d6e(0x389)][_0x1f7d6e(0x3fe)],'fill':_0x5b6709['ShapeDefaultConfig'][_0x1f7d6e(0x2bc)],'stroke':_0x5b6709['ShapeDefaultConfig']['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function _0x3cbe95(_0x4d4eff,_0x573670){return function(_0x1b7518,_0x39370e){_0x573670(_0x1b7518,_0x39370e,_0x4d4eff);};}function _0x276893(_0x319d71,_0x500e69,_0x18847a,_0x40935e){const _0x19530a=_0x209063;var _0x45623c=arguments['length'],_0x59abfb=_0x45623c<0x3?_0x500e69:_0x40935e===null?_0x40935e=Object[_0x19530a(0x38b)](_0x500e69,_0x18847a):_0x40935e,_0x3447b1;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x59abfb=Reflect[_0x19530a(0x33b)](_0x319d71,_0x500e69,_0x18847a,_0x40935e);else{for(var _0x2a8cad=_0x319d71['length']-0x1;_0x2a8cad>=0x0;_0x2a8cad--)(_0x3447b1=_0x319d71[_0x2a8cad])&&(_0x59abfb=(_0x45623c<0x3?_0x3447b1(_0x59abfb):_0x45623c>0x3?_0x3447b1(_0x500e69,_0x18847a,_0x59abfb):_0x3447b1(_0x500e69,_0x18847a))||_0x59abfb);}return _0x45623c>0x3&&_0x59abfb&&Object[_0x19530a(0x496)](_0x500e69,_0x18847a,_0x59abfb),_0x59abfb;}let _0x4fc7b5=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x4ec986,_0x317a73,_0x59a54c,_0x4f1d16,_0x20c912,_0x4d445d){const _0xd03e38=_0x209063;super(),this['_drawingManagerService']=_0x4ec986,this['_sheetsShapeService']=_0x317a73,this[_0xd03e38(0x2de)]=_0x59a54c,this['_imageIoService']=_0x4f1d16,this[_0xd03e38(0x35f)]=_0x20c912,this[_0xd03e38(0x2db)]=_0x4d445d,_0x28368a(this,_0xd03e38(0x415),new Map()),this[_0xd03e38(0x3df)](this['_shapeFormulaService'][_0xd03e38(0x479)][_0xd03e38(0x4d3)](_0x2ccc33=>{const _0x79e59a=_0xd03e38;var _0x5c732b;(_0x5c732b=this[_0x79e59a(0x415)][_0x79e59a(0x4cd)](this[_0x79e59a(0x412)](_0x2ccc33[_0x79e59a(0x441)],_0x2ccc33[_0x79e59a(0x2fe)],_0x2ccc33[_0x79e59a(0x3dc)])))==null||_0x5c732b[_0x79e59a(0x250)](_0x3bb82a=>_0x3bb82a[_0x79e59a(0x296)](_0x2ccc33[_0x79e59a(0x4ca)],_0x2ccc33[_0x79e59a(0x333)]));})),this[_0xd03e38(0x3df)](this['_drawingManagerService'][_0xd03e38(0x37d)][_0xd03e38(0x4d3)](_0x1d4d72=>{const _0x39540b=_0xd03e38;_0x1d4d72[_0x39540b(0x250)](_0x561526=>{const _0x489e79=_0x39540b;this['_shapeFormulaService']['unregister']({'unitId':_0x561526[_0x489e79(0x441)],'subUnitId':_0x561526['subUnitId'],'shapeId':_0x561526[_0x489e79(0x2e9)]}),this['_formulaShapes']['delete'](this[_0x489e79(0x412)](_0x561526[_0x489e79(0x441)],_0x561526[_0x489e79(0x2fe)],_0x561526[_0x489e79(0x2e9)]));});}));}[_0x209063(0x287)](_0x1872ad,_0x340326,_0xa4a4ba){const _0x3b117b=_0x209063;let {transform:_0x1846ab,drawingType:_0x461e03,srcRect:_0x36ed5f,prstGeom:_0x1843c6,groupId:_0x2ba368,unitId:_0x329c09,subUnitId:_0x31cf64,drawingId:_0xb2561c,isMultiTransform:_0xabaef5,transforms:_0x4d5aa4,hidden:_0x10294d,selectable:_0x38bdbd}=_0x1872ad;if(_0x461e03!==_0x49d30a['DrawingTypeEnum'][_0x3b117b(0x4fe)]||!this[_0x3b117b(0x4e5)]['getDrawingVisible']()||_0x1846ab==null)return;let _0x58f689=this['_drawingManagerService'][_0x3b117b(0x290)]();_0x58f689&&_0x340326[_0x3b117b(0x21c)](_0xa40d9e[_0x3b117b(0x3e2)]);let _0xd07b03=_0xabaef5&&_0x4d5aa4?_0x4d5aa4:[_0x1846ab],_0x3ddc46=[];for(let _0x239580 of _0xd07b03){let {left:_0x4f2102,top:_0x1811f1,width:_0xb4dbb6,height:_0x11d945,angle:_0x50e1fb,flipX:_0x2e2502,flipY:_0x1e3b1c,skewX:_0x4e93c3,skewY:_0x2f82cd}=_0x239580,_0x76a5a=_0xd07b03['indexOf'](_0x239580),_0x24fddf=(0x0,_0x510035[_0x3b117b(0x3a8)])({'unitId':_0x329c09,'subUnitId':_0x31cf64,'drawingId':_0xb2561c},_0xabaef5?_0x76a5a:void 0x0),_0x5c7fc8=_0x340326[_0x3b117b(0x22b)](_0x24fddf);if(_0x5c7fc8!=null){let _0x219cfb={'unitId':_0x329c09,'subUnitId':_0x31cf64,'shapeId':_0xb2561c};_0x5c7fc8 instanceof _0x642241&&this[_0x3b117b(0x2e2)](_0x5c7fc8,_0x219cfb),_0x5c7fc8[_0x3b117b(0x462)]({'left':_0x4f2102,'top':_0x1811f1,'width':_0xb4dbb6,'height':_0x11d945,'angle':_0x50e1fb,'flipX':_0x2e2502,'flipY':_0x1e3b1c,'skewX':_0x4e93c3,'skewY':_0x2f82cd});continue;}let _0x5c5193=this[_0x3b117b(0x4e5)][_0x3b117b(0x329)](_0x329c09,_0x31cf64),_0x58108f=_0x5c5193[_0x3b117b(0x26c)](_0xb2561c);if(_0x340326[_0x3b117b(0x22b)](_0x24fddf)||!this[_0x3b117b(0x4e5)][_0x3b117b(0x2ca)]())continue;let _0x2c3c01=this['_sheetsShapeService'][_0x3b117b(0x4b2)](_0x329c09,_0x31cf64,_0xb2561c);if(!_0x2c3c01)continue;let _0x909470=(0x0,_0x5b6709['isConnectorShape'])(_0x2c3c01[_0x3b117b(0x4b0)]()),_0x2208fd=_0x2c3c01[_0x3b117b(0x224)]()[_0x3b117b(0x330)],_0x266187={'unitId':_0x329c09,'subUnitId':_0x31cf64,'shapeId':_0xb2561c};_0x2208fd&&this[_0x3b117b(0x2db)][_0x3b117b(0x465)](_0x266187,_0x2208fd);let _0x5e97f7=new _0x642241(_0x24fddf,{..._0x909470?{..._0x239580,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x239580},'zIndex':_0x58108f===-0x1?_0x5c5193['length']-0x1:_0x58108f,'shapeModel':_0x2c3c01,'localeService':this[_0x3b117b(0x2de)],'shapeId':_0xb2561c,'unitId':_0x329c09,'subUnitId':_0x31cf64,'visible':_0x10294d!==!0x0,'evented':_0x38bdbd!==!0x1,'formulaPresentation':_0x2208fd?this['_shapeFormulaService'][_0x3b117b(0x421)](_0x266187):void 0x0,'animateFormulaPresentation':(_0x2208fd==null?void 0x0:_0x2208fd[_0x3b117b(0x333)])!==!0x1});if(_0x2208fd){var _0x7177f;let _0x38adc9=this[_0x3b117b(0x412)](_0x329c09,_0x31cf64,_0xb2561c),_0x223eb2=(_0x7177f=this[_0x3b117b(0x415)][_0x3b117b(0x4cd)](_0x38adc9))==null?new Set():_0x7177f;_0x223eb2[_0x3b117b(0x449)](_0x5e97f7),this['_formulaShapes'][_0x3b117b(0x402)](_0x38adc9,_0x223eb2);}_0x340326[_0x3b117b(0x1dd)](_0x5e97f7,_0x40dd84['DRAWING_OBJECT_LAYER_INDEX']),_0x58f689&&_0x340326['attachTransformerTo'](_0x5e97f7),_0x2ba368&&(0x0,_0xceb6c3[_0x3b117b(0x359)])({'drawingId':_0x2ba368,'unitId':_0x329c09,'subUnitId':_0x31cf64},_0x5e97f7,_0x340326,this[_0x3b117b(0x4e5)]),_0x1843c6!=null&&_0x5e97f7['setPrstGeom'](_0x1843c6),_0x36ed5f!=null&&_0x5e97f7[_0x3b117b(0x32e)](_0x36ed5f);let _0x176568=this['_loadShapePictureFill'](_0x5e97f7,_0x2c3c01[_0x3b117b(0x224)]());if(_0x176568){var _0x18064d;_0xa4a4ba==null||(_0x18064d=_0xa4a4ba[_0x3b117b(0x2ee)])==null||_0x18064d['add'](_0x176568);}_0x3ddc46[_0x3b117b(0x3ed)](_0x5e97f7);}return _0x3ddc46;}[_0x209063(0x412)](_0x37947d,_0x20d3fd,_0x2629cc){return _0x37947d+'\x00'+_0x20d3fd+'\x00'+_0x2629cc;}[_0x209063(0x2e2)](_0x396abd,_0x1e29f0){const _0x17af01=_0x209063;let _0x21103e=this['_sheetsShapeService'][_0x17af01(0x4b2)](_0x1e29f0['unitId'],_0x1e29f0[_0x17af01(0x2fe)],_0x1e29f0['shapeId']),_0x3228e0=_0x21103e==null?void 0x0:_0x21103e[_0x17af01(0x224)]()[_0x17af01(0x330)],_0x179bde=this['_formulaKey'](_0x1e29f0['unitId'],_0x1e29f0[_0x17af01(0x2fe)],_0x1e29f0[_0x17af01(0x3dc)]);if(_0x3228e0){var _0x5ec6f3;this['_shapeFormulaService'][_0x17af01(0x465)](_0x1e29f0,_0x3228e0);let _0x2a2e20=(_0x5ec6f3=this['_formulaShapes'][_0x17af01(0x4cd)](_0x179bde))==null?new Set():_0x5ec6f3;_0x2a2e20['add'](_0x396abd),this[_0x17af01(0x415)][_0x17af01(0x402)](_0x179bde,_0x2a2e20);}else{var _0x90e1b2;this[_0x17af01(0x2db)][_0x17af01(0x3a7)](_0x1e29f0),(_0x90e1b2=this['_formulaShapes'][_0x17af01(0x4cd)](_0x179bde))==null||_0x90e1b2[_0x17af01(0x425)](_0x396abd);}_0x396abd[_0x17af01(0x296)](_0x3228e0?this[_0x17af01(0x2db)][_0x17af01(0x421)](_0x1e29f0):void 0x0,(_0x3228e0==null?void 0x0:_0x3228e0[_0x17af01(0x333)])!==!0x1);}[_0x209063(0x221)](_0x40884c){const _0x41b2e6=_0x209063;let _0x17b742=_0x40884c[_0x41b2e6(0x4aa)][_0x41b2e6(0x224)](),_0x55a841=_0x17b742[_0x41b2e6(0x3b7)];if(!_0x55a841||_0x55a841['fillType']!==_0x5b6709[_0x41b2e6(0x3b8)][_0x41b2e6(0x3e5)]||!_0x55a841['fillImageSource']){_0x40884c[_0x41b2e6(0x24d)](void 0x0);return;}this[_0x41b2e6(0x31c)](_0x40884c,_0x17b742);}[_0x209063(0x31c)](_0x4e9ac7,_0x3d0847){const _0x33f2aa=_0x209063;var _0x25036f;let _0xe7d57c=_0x3d0847[_0x33f2aa(0x3b7)];if(!_0xe7d57c||_0xe7d57c[_0x33f2aa(0x4c0)]!==_0x5b6709['ShapeFillEnum'][_0x33f2aa(0x3e5)]||!_0xe7d57c[_0x33f2aa(0x41c)])return;let _0x1b258f=_0xe7d57c[_0x33f2aa(0x41c)],_0x4bac00=(_0x25036f=_0xe7d57c[_0x33f2aa(0x1fc)])==null?_0x5b6709[_0x33f2aa(0x444)][_0x33f2aa(0x25c)]:_0x25036f,_0x37897d=this['_imageIoService'][_0x33f2aa(0x3b2)](_0x1b258f,_0x4bac00);if(_0x37897d){_0x4e9ac7['setFillImage'](_0x37897d);return;}return this[_0x33f2aa(0x378)](_0x4e9ac7,_0x1b258f,_0x4bac00);}async[_0x209063(0x378)](_0x28affb,_0x156bb8,_0x516357){const _0x5c39cb=_0x209063;let _0x4dfcf8;try{if(_0x516357===_0x5b6709[_0x5c39cb(0x444)]['UUID'])_0x4dfcf8=await this['_imageIoService'][_0x5c39cb(0x4b5)](_0x156bb8);else{if(_0x516357===_0x5b6709[_0x5c39cb(0x444)][_0x5c39cb(0x25c)])try{_0x4dfcf8=await this[_0x5c39cb(0x35f)][_0x5c39cb(0x4b5)](_0x156bb8);}catch{_0x4dfcf8=_0x156bb8;}else _0x4dfcf8=_0x156bb8;}}catch(_0x42fd16){console[_0x5c39cb(0x377)](_0x5c39cb(0x2c4),_0x42fd16);return;}await new Promise(_0x34e133=>{const _0x43543d=_0x5c39cb;let _0x347969=new window[(_0x43543d(0x4bb))]();_0x347969['onload']=()=>{const _0x20aa79=_0x43543d;this['_imageIoService']['addImageSourceCache'](_0x156bb8,_0x516357,_0x347969),_0x28affb[_0x20aa79(0x24d)](_0x347969),_0x34e133();},_0x347969[_0x43543d(0x3e4)]=()=>{const _0x1ca317=_0x43543d;console[_0x1ca317(0x377)](_0x1ca317(0x419),_0x156bb8),_0x34e133();},_0x347969[_0x43543d(0x388)]=_0x4dfcf8;});}};_0x4fc7b5=_0x276893([_0x3cbe95(0x0,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab['SheetsShapeService'])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['LocaleService'])),_0x3cbe95(0x3,_0x49d30a['IImageIoService']),_0x3cbe95(0x4,_0x49d30a[_0x209063(0x2e5)]),_0x3cbe95(0x5,(0x0,_0x49d30a['Inject'])(_0x5a6548[_0x209063(0x352)]))],_0x4fc7b5);let _0x54179a=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x560c5a,_0x383015,_0x421787,_0x5e2be7,_0x49aa93,_0x3173b9){const _0x30fbbb=_0x209063;super(),this[_0x30fbbb(0x4e5)]=_0x560c5a,this[_0x30fbbb(0x488)]=_0x383015,this[_0x30fbbb(0x40d)]=_0x421787,this[_0x30fbbb(0x4af)]=_0x5e2be7,this['_univerInstanceService']=_0x49aa93,this[_0x30fbbb(0x240)]=_0x3173b9,_0x28368a(this,_0x30fbbb(0x39d),null),_0x28368a(this,_0x30fbbb(0x30e),null),_0x28368a(this,'_subUnitId',null),_0x28368a(this,_0x30fbbb(0x2bf),void 0x0),_0x28368a(this,_0x30fbbb(0x461),[]),_0x28368a(this,_0x30fbbb(0x379),0x0),_0x28368a(this,_0x30fbbb(0x364),0x0),_0x28368a(this,_0x30fbbb(0x470),0x0),_0x28368a(this,'_baseShapeHeight',0x0),_0x28368a(this,'_isStartAdjusting',!0x1),_0x28368a(this,_0x30fbbb(0x44d),void 0x0),_0x28368a(this,_0x30fbbb(0x23a),void 0x0),_0x28368a(this,_0x30fbbb(0x318),void 0x0),_0x28368a(this,_0x30fbbb(0x40f),void 0x0),_0x28368a(this,_0x30fbbb(0x343),!0x1),this[_0x30fbbb(0x453)](),this[_0x30fbbb(0x474)]();}[_0x209063(0x4c2)](_0x815a9f,_0x8e5f61,_0x285487){const _0x139c75=_0x209063;let _0x337a37=this['_sheetsShapeService'][_0x139c75(0x4b2)](_0x815a9f,_0x8e5f61,_0x285487);if(_0x337a37)return _0x337a37['getDrawingPoints']();}[_0x209063(0x409)](){const _0xb72df5=_0x209063;this[_0xb72df5(0x3f9)]();}[_0x209063(0x424)](){const _0x135ef0=_0x209063;this[_0x135ef0(0x319)](!0x0);}[_0x209063(0x256)](_0x411c1a){const _0x555885=_0x209063;this[_0x555885(0x343)]=_0x411c1a;}[_0x209063(0x4d0)](_0x120942,_0x40489a,_0x40843c,_0x3ed655){const _0x2a7a71=_0x209063;let _0x5b9097=this[_0x2a7a71(0x488)]['getShapeModel'](_0x120942,_0x40489a,_0x40843c);if(_0x5b9097)return _0x5b9097[_0x2a7a71(0x4dd)](_0x3ed655);}[_0x209063(0x3fc)](_0x5b9b01=!0x1){const _0x2a13ae=_0x209063;if(this[_0x2a13ae(0x30e)]===null||this[_0x2a13ae(0x489)]===null||this[_0x2a13ae(0x39d)]===null)return;let _0x57324d=this[_0x2a13ae(0x40d)][_0x2a13ae(0x2f7)](this['_unitId']);if(!_0x57324d||!_0x57324d[_0x2a13ae(0x451)](_0x100e66[_0x2a13ae(0x242)])[_0x2a13ae(0x238)]())return;let {scene:_0x1c393f}=_0x57324d,_0x310913={'unitId':this['_unitId'],'subUnitId':this[_0x2a13ae(0x489)],'drawingId':this[_0x2a13ae(0x39d)]},_0x349583=this[_0x2a13ae(0x4e5)][_0x2a13ae(0x20c)](_0x310913),{transform:_0x513a6d}=_0x349583;if(!_0x513a6d||_0x349583[_0x2a13ae(0x3e8)]!==_0x49d30a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {left:_0x2c0019,top:_0x443d61,width:_0x43105d,height:_0x2a1496,flipX:_0x19864c,flipY:_0x1fb0f3,angle:_0x397b5a=0x0}=_0x513a6d;if(_0x2c0019===void 0x0||_0x443d61===void 0x0)return;_0x5b9b01&&(this['_activeShapeAdjustPointList']=this[_0x2a13ae(0x4c2)](this['_unitId'],this[_0x2a13ae(0x489)],this[_0x2a13ae(0x39d)]));let _0x1e465a=this[_0x2a13ae(0x2bf)];for(let _0x5ee64c=0x0;_0x5ee64c<_0x1e465a[_0x2a13ae(0x28f)];_0x5ee64c++){let _0x2662fe=_0x1e465a[_0x5ee64c],_0x5483ca=_0x2662fe['x'],_0x1071ea=_0x2662fe['y'];if(_0x19864c&&(_0x5483ca=(_0x43105d||0x0)-_0x5483ca),_0x1fb0f3&&(_0x1071ea=(_0x2a1496||0x0)-_0x1071ea),_0x397b5a!==0x0){let _0x2728b6=(_0x43105d||0x0)/0x2,_0x1a4067=(_0x2a1496||0x0)/0x2,_0x27f4a4=_0x397b5a*Math['PI']/0xb4,_0x545d17=Math[_0x2a13ae(0x344)](_0x27f4a4),_0xd2e096=Math[_0x2a13ae(0x4e1)](_0x27f4a4),_0x5a6458=_0x5483ca-_0x2728b6,_0xef46a3=_0x1071ea-_0x1a4067;_0x5483ca=_0x2728b6+(_0x5a6458*_0x545d17-_0xef46a3*_0xd2e096),_0x1071ea=_0x1a4067+(_0x5a6458*_0xd2e096+_0xef46a3*_0x545d17);}let _0x48e965={'x':_0x5483ca,'y':_0x1071ea,'adjName':_0x2662fe[_0x2a13ae(0x259)]};this[_0x2a13ae(0x491)](_0x1c393f,_0x48e965,_0x48e965['adjName'],_0x2c0019,_0x443d61,this[_0x2a13ae(0x30e)],this[_0x2a13ae(0x489)]);}}['_updateShapeAdjustControls'](_0x4fed1e=!0x1){const _0x5d1d2c=_0x209063;_0x4fed1e&&(this[_0x5d1d2c(0x3f9)](),this[_0x5d1d2c(0x3fc)](_0x4fed1e));}['_addShapeAdjustControl'](_0x5c417d,_0x44b55b,_0x587b6c,_0x830790,_0x1c7974,_0x483987,_0xb8a841){const _0x4bda45=_0x209063;if(!this['_activeShapeId'])return;let _0x39618e=_0x5c417d[_0x4bda45(0x22b)](_0x4bda45(0x225)+this[_0x4bda45(0x39d)]+'-'+_0x587b6c);if(_0x39618e){_0x39618e[_0x4bda45(0x462)]({'left':_0x44b55b['x']+_0x830790-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'top':_0x44b55b['y']+_0x1c7974-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]});return;}let _0x39d703={'left':_0x44b55b['x']+_0x830790-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'top':_0x44b55b['y']+_0x1c7974-_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)],'adjName':_0x587b6c,'shapeId':this[_0x4bda45(0x39d)],'unitId':_0x483987,'subUnitId':_0xb8a841,'width':_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]+0x8,'height':_0x5b6709[_0x4bda45(0x389)][_0x4bda45(0x3fe)]+0x8,'zIndex':_0x40dd84[_0x4bda45(0x27f)]+0x1,'evented':!0x0},_0x36d253=new _0xa97e9e(_0x4bda45(0x225)+this['_activeShapeId']+'-'+_0x587b6c,_0x39d703);this[_0x4bda45(0x461)]['push'](_0x36d253),this[_0x4bda45(0x487)](_0x36d253,_0x5c417d,_0x587b6c),_0x5c417d['addObject'](_0x36d253,_0x40dd84[_0x4bda45(0x27f)]+0x1);}[_0x209063(0x3f9)](){const _0xc853a4=_0x209063;this['_shapes'][_0xc853a4(0x28f)]!==0x0&&(this[_0xc853a4(0x461)]['forEach'](_0x1dadf5=>{const _0x40c993=_0xc853a4;_0x1dadf5[_0x40c993(0x46a)]();}),this[_0xc853a4(0x461)]=[]);}[_0x209063(0x4db)](){const _0x5499ea=_0x209063;this[_0x5499ea(0x3fc)]();}[_0x209063(0x2a8)](_0x1db63b,_0x4a67e0){const _0x274006=_0x209063;var _0x56882f;let _0x469202={'x':0x0,'y':0x0};if(!_0x1db63b||!_0x4a67e0)return _0x469202;let _0x94d9f9=this[_0x274006(0x40d)][_0x274006(0x2f7)](_0x1db63b);if(!_0x94d9f9||!_0x94d9f9[_0x274006(0x451)](_0x100e66['SheetSkeletonManagerService'])['getSkeleton'](_0x4a67e0))return _0x469202;let _0x386f49=_0x94d9f9[_0x274006(0x451)](_0x100e66[_0x274006(0x200)]),_0xe9151e=_0x386f49==null?void 0x0:_0x386f49['getCurrentScrollState']();if(!_0xe9151e)return _0x469202;let _0x6f048=(_0x56882f=this[_0x274006(0x2be)][_0x274006(0x22d)](_0x1db63b))==null?void 0x0:_0x56882f['getSheetBySheetId'](_0x4a67e0);if(!_0x6f048)return _0x469202;let _0x5ec706=(0x0,_0x100e66['getViewportByCell'])(_0xe9151e[_0x274006(0x230)],_0xe9151e[_0x274006(0x477)],_0x94d9f9[_0x274006(0x349)],_0x6f048);return _0x5ec706?{'x':_0x5ec706[_0x274006(0x1db)],'y':_0x5ec706[_0x274006(0x2da)]}:_0x469202;}[_0x209063(0x29c)](_0x424ba1,_0x425547){const _0x2bd719=_0x209063;var _0xc8f417,_0x46cdc5;let _0x1fbf15=(_0xc8f417=this[_0x2bd719(0x2be)][_0x2bd719(0x22d)](_0x424ba1))==null?void 0x0:_0xc8f417['getSheetBySheetId'](_0x425547);return(_0x46cdc5=_0x1fbf15==null?void 0x0:_0x1fbf15[_0x2bd719(0x350)]())==null?0x1:_0x46cdc5;}[_0x209063(0x487)](_0x2c2c09,_0x3012cf,_0x29b390){const _0x163dd4=_0x209063;this[_0x163dd4(0x3df)]((0x0,_0x49d30a['toDisposable'])(_0x2c2c09[_0x163dd4(0x222)][_0x163dd4(0x35a)]((_0x39f7f0,_0x5a8cd2)=>{const _0x4ef6c7=_0x163dd4;var _0x34efb7,_0x336bb6,_0x2f2b8a,_0x4aa4d4;let _0x4073f9=_0x2c2c09[_0x4ef6c7(0x36c)]();this['_activeAdjustInfo']=this[_0x4ef6c7(0x4d0)](_0x4073f9['unitId'],_0x4073f9['subUnitId'],_0x4073f9[_0x4ef6c7(0x2e9)],_0x29b390),this[_0x4ef6c7(0x23a)]=this['_sheetsShapeService'][_0x4ef6c7(0x4b2)](_0x4073f9[_0x4ef6c7(0x441)],_0x4073f9['subUnitId'],_0x4073f9[_0x4ef6c7(0x2e9)]);let _0x391c8f=this[_0x4ef6c7(0x4e5)][_0x4ef6c7(0x20c)]({'unitId':this['_unitId'],'subUnitId':this[_0x4ef6c7(0x489)],'drawingId':this['_activeShapeId']}),{transform:_0xb3d407}=_0x391c8f;if(_0xb3d407){let {left:_0x366847,top:_0x23e460,width:_0x1a2fd8,height:_0x38f85e}=_0xb3d407;this[_0x4ef6c7(0x379)]=_0x366847||0x0,this['_baseShapeTop']=_0x23e460||0x0,this['_baseShapeWidth']=_0x1a2fd8||0x0,this[_0x4ef6c7(0x271)]=_0x38f85e||0x0;}let _0x5108b0=!!((_0x34efb7=_0x391c8f['transform'])!=null&&_0x34efb7[_0x4ef6c7(0x2d8)]),_0x23f700=!!((_0x336bb6=_0x391c8f[_0x4ef6c7(0x267)])!=null&&_0x336bb6['flipY']),_0x44be95=((_0x2f2b8a=_0x391c8f[_0x4ef6c7(0x267)])==null?void 0x0:_0x2f2b8a[_0x4ef6c7(0x43d)])||0x0;this[_0x4ef6c7(0x278)]=!0x0,_0x3012cf[_0x4ef6c7(0x202)]();let _0x2e55be=(_0x4aa4d4=this['_activeShapeModel'])==null?void 0x0:_0x4aa4d4[_0x4ef6c7(0x213)](_0x29b390),_0x29ca4a={[_0x29b390]:_0x2e55be};this['_adjHandlerPointerMove']=_0x3012cf[_0x4ef6c7(0x468)]['subscribeEvent']((_0x12c064,_0x3e84c5)=>{const _0x2997d9=_0x4ef6c7;if(!this[_0x2997d9(0x278)])return;let {offsetX:_0x7a9009,offsetY:_0x2e0486}=_0x12c064,_0x2e9dfb=this[_0x2997d9(0x44d)];if(this[_0x2997d9(0x23a)]&&_0x2e9dfb){_0x3012cf['disableObjectsEvent'](),_0x3012cf[_0x2997d9(0x248)](_0x40dd84[_0x2997d9(0x223)][_0x2997d9(0x317)]);let _0x25331e={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x2997d9(0x271)]},_0x42711c=this[_0x2997d9(0x2a8)](this[_0x2997d9(0x30e)],this['_subUnitId']),_0x4420f1=this[_0x2997d9(0x29c)](this[_0x2997d9(0x30e)],this[_0x2997d9(0x489)]),_0x4fff96=_0x7a9009/_0x4420f1+_0x42711c['x']-this[_0x2997d9(0x379)],_0x2c9a57=_0x2e0486/_0x4420f1+_0x42711c['y']-this[_0x2997d9(0x364)];if(_0x44be95!==0x0){let _0x15cf3b=this['_baseShapeWidth']/0x2,_0x4b17f5=this[_0x2997d9(0x271)]/0x2,_0x17b01e=_0x44be95*Math['PI']/0xb4,_0x33413b=Math['cos'](_0x17b01e),_0x1ace90=Math[_0x2997d9(0x4e1)](_0x17b01e),_0x5d25b4=_0x4fff96-_0x15cf3b,_0x2d5772=_0x2c9a57-_0x4b17f5;_0x4fff96=_0x15cf3b+(_0x5d25b4*_0x33413b+_0x2d5772*_0x1ace90),_0x2c9a57=_0x4b17f5+(-_0x5d25b4*_0x1ace90+_0x2d5772*_0x33413b);}_0x5108b0&&(_0x4fff96=this[_0x2997d9(0x470)]-_0x4fff96),_0x23f700&&(_0x2c9a57=this['_baseShapeHeight']-_0x2c9a57);let _0xf69bbe={'x':_0x4fff96,'y':_0x2c9a57},_0x39e05f=this[_0x2997d9(0x23a)][_0x2997d9(0x2cf)](_0x25331e,_0xf69bbe,_0x2e9dfb,_0x5108b0,_0x23f700),_0x11c99b=_0x2e9dfb[_0x2997d9(0x45d)]||_0x2e9dfb[_0x2997d9(0x48a)]||_0x2e9dfb[_0x2997d9(0x46d)]||_0x2e9dfb['gdRefR'];if(_0x11c99b===void 0x0)return;this[_0x2997d9(0x23a)][_0x2997d9(0x45a)](_0x11c99b,_0x39e05f);let _0x3a1dc7=this[_0x2997d9(0x4e5)][_0x2997d9(0x20c)]({'unitId':_0x4073f9[_0x2997d9(0x441)],'subUnitId':_0x4073f9[_0x2997d9(0x2fe)],'drawingId':_0x4073f9['drawingId']});_0x3a1dc7&&(this[_0x2997d9(0x4af)][_0x2997d9(0x287)](_0x3a1dc7,_0x3012cf),this[_0x2997d9(0x2bf)]=this[_0x2997d9(0x4c2)](_0x4073f9[_0x2997d9(0x441)],_0x4073f9[_0x2997d9(0x2fe)],_0x4073f9[_0x2997d9(0x2e9)]),this[_0x2997d9(0x4db)]());}_0x3e84c5[_0x2997d9(0x2b6)]();}),this[_0x4ef6c7(0x40f)]=_0x3012cf['onPointerUp$']['subscribeEvent']((_0x420e9a,_0x116c75)=>{const _0x3b3937=_0x4ef6c7;this[_0x3b3937(0x318)][_0x3b3937(0x27d)](),this[_0x3b3937(0x40f)][_0x3b3937(0x27d)](),_0x3012cf[_0x3b3937(0x3be)]();let _0x4b62e8=this[_0x3b3937(0x44d)];if(_0x4b62e8){let _0x17e311=_0x4073f9[_0x3b3937(0x441)],_0x25920c=_0x4073f9['subUnitId'],_0x292adb=_0x4073f9[_0x3b3937(0x2e9)],_0x57a2fd=_0x4b62e8[_0x3b3937(0x45d)]||_0x4b62e8[_0x3b3937(0x48a)]||_0x4b62e8['gdRefAng']||_0x4b62e8[_0x3b3937(0x328)];if(_0x57a2fd!==void 0x0){var _0x14a965;let _0x46c9ac=(_0x14a965=this[_0x3b3937(0x23a)])==null?void 0x0:_0x14a965[_0x3b3937(0x213)](_0x57a2fd);_0x46c9ac!==void 0x0&&_0x407767(this[_0x3b3937(0x240)],_0x17e311,_0x25920c,_0x292adb,{'oldShapeData':{'adjustValues':_0x29ca4a}},{'adjustValues':{[_0x57a2fd]:_0x46c9ac}});}}this[_0x3b3937(0x44d)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x3b3937(0x278)]=!0x1,_0x116c75[_0x3b3937(0x2b6)](),_0x3012cf[_0x3b3937(0x4a1)]();}),_0x5a8cd2['stopPropagation']();})));}[_0x209063(0x474)](){const _0x1b3d58=_0x209063;let _0x28560f=this[_0x1b3d58(0x2be)]['getCurrentTypeOfUnit$'](_0x49d30a['UniverInstanceType']['UNIVER_SHEET']);this[_0x1b3d58(0x3df)](_0x28560f[_0x1b3d58(0x201)]((0x0,_0x230aed[_0x1b3d58(0x24b)])(_0x500200=>_0x500200?_0x500200['activeSheet$'][_0x1b3d58(0x201)]((0x0,_0x230aed['switchMap'])(_0x497539=>{const _0x29f2e1=_0x1b3d58;if(!_0x497539)return _0x230aed['EMPTY'];let _0x8a18f4=_0x500200['getUnitId'](),_0x5779f8=this['_renderManagerService']['getRenderById'](_0x8a18f4),_0x59982f=_0x5779f8==null?void 0x0:_0x5779f8[_0x29f2e1(0x349)];return _0x59982f?(0x0,_0x230aed['of'])(_0x59982f):_0x230aed[_0x29f2e1(0x2d0)];})):_0x230aed[_0x1b3d58(0x2d0)]))[_0x1b3d58(0x4d3)](_0x518dad=>{const _0x22e598=_0x1b3d58;let _0x80a756=_0x518dad[_0x22e598(0x262)]();this[_0x22e598(0x3df)](_0x518dad[_0x22e598(0x468)][_0x22e598(0x35a)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this[_0x22e598(0x3df)](_0x80a756[_0x22e598(0x275)]['subscribe'](_0x1b9ff6=>{const _0xd7af8b=_0x22e598;let {objects:_0x48f94b}=_0x1b9ff6;this[_0xd7af8b(0x3fc)](),_0x48f94b!==null&&_0x48f94b[_0xd7af8b(0x3c6)]===0x1&&_0x48f94b[_0xd7af8b(0x1e1)]()['next']()[_0xd7af8b(0x2b4)]instanceof _0x642241&&this[_0xd7af8b(0x256)](!0x0);})),this[_0x22e598(0x3df)](_0x80a756['changing$']['subscribe'](()=>{const _0x1590e5=_0x22e598;this[_0x1590e5(0x343)]&&this[_0x1590e5(0x3f9)]();})),this[_0x22e598(0x3df)](_0x518dad['onPointerUp$'][_0x22e598(0x35a)](()=>{const _0x3e20f0=_0x22e598;this[_0x3e20f0(0x343)]&&(this['setShouldShowAdjust'](!0x1),this[_0x3e20f0(0x3fc)]());})),this['disposeWithMe'](_0x80a756[_0x22e598(0x4d7)][_0x22e598(0x4d3)](()=>{const _0x10d014=_0x22e598;this[_0x10d014(0x30e)]&&this['_subUnitId']&&this[_0x10d014(0x39d)]&&this[_0x10d014(0x4e5)][_0x10d014(0x20c)]({'unitId':this['_unitId'],'subUnitId':this[_0x10d014(0x489)],'drawingId':this[_0x10d014(0x39d)]})&&(this[_0x10d014(0x2bf)]=this[_0x10d014(0x4c2)](this['_unitId'],this[_0x10d014(0x489)],this['_activeShapeId']),this[_0x10d014(0x4db)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x5e7b51=_0x209063;this[_0x5e7b51(0x3df)](this[_0x5e7b51(0x4e5)]['focus$']['subscribe'](_0xb429b4=>{const _0x206ad8=_0x5e7b51;if(_0xb429b4[_0x206ad8(0x28f)]===0x1){let _0x4067b9=_0xb429b4[0x0];if(_0x4067b9[_0x206ad8(0x3e8)]===_0x49d30a[_0x206ad8(0x365)]['DRAWING_SHAPE']){this[_0x206ad8(0x39d)]=_0x4067b9[_0x206ad8(0x2e9)];let {unitId:_0x3a6904,subUnitId:_0x7b3691}=_0x4067b9;this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0x3a6904,_0x7b3691,this[_0x206ad8(0x39d)]),this[_0x206ad8(0x30e)]=_0x3a6904,this[_0x206ad8(0x489)]=_0x7b3691,this[_0x206ad8(0x3f9)](),this['_createShapeAdjustControls']();}else this['_activeShapeId']=null,this[_0x206ad8(0x2bf)]=void 0x0,this[_0x206ad8(0x30e)]=null,this[_0x206ad8(0x489)]=null,this[_0x206ad8(0x3f9)]();}(_0xb429b4['length']>0x1||_0xb429b4[_0x206ad8(0x28f)]===0x0)&&(this[_0x206ad8(0x39d)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x206ad8(0x489)]=null,this[_0x206ad8(0x3f9)]());})),this['disposeWithMe'](this[_0x5e7b51(0x4e5)][_0x5e7b51(0x44c)][_0x5e7b51(0x4d3)](_0x9079f2=>{const _0x349af7=_0x5e7b51;if(_0x9079f2[_0x349af7(0x28f)]===0x1){var _0x209e47;let _0x1b63b0=_0x9079f2[0x0];((_0x209e47=this[_0x349af7(0x4e5)]['getDrawingByParam'](_0x1b63b0))==null?void 0x0:_0x209e47[_0x349af7(0x3e8)])===_0x49d30a[_0x349af7(0x365)][_0x349af7(0x4fe)]&&this[_0x349af7(0x319)](!0x0);}})),this[_0x5e7b51(0x3df)](this[_0x5e7b51(0x4e5)][_0x5e7b51(0x37d)]['subscribe'](_0x50deaa=>{const _0x2fba60=_0x5e7b51;for(let _0x32a074 of _0x50deaa)this[_0x2fba60(0x39d)]===_0x32a074['drawingId']&&(this['_activeShapeId']=null,this[_0x2fba60(0x2bf)]=void 0x0,this['_unitId']=null,this[_0x2fba60(0x489)]=null,this[_0x2fba60(0x3f9)]());}));}};_0x54179a=_0x276893([_0x3cbe95(0x0,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5)),_0x3cbe95(0x4,_0x49d30a['IUniverInstanceService']),_0x3cbe95(0x5,_0x49d30a['ICommandService'])],_0x54179a);let _0x2d736f={'id':'drawing.operation.set-drawing-active','type':_0x49d30a['CommandType'][_0x209063(0x38f)],'handler':(_0x4af4f6,_0x1f515b)=>{const _0x577004=_0x209063;let _0x72afcb=_0x4af4f6[_0x577004(0x4cd)](_0x510035['IDrawingManagerService']),_0x3ef45c=_0x4af4f6['get'](_0x40dd84[_0x577004(0x2ba)]),_0xef3961=_0x4af4f6[_0x577004(0x4cd)](_0x54179a);if(_0x1f515b==null)return!0x0;if(_0x1f515b[_0x577004(0x28f)]>0x0){var _0x2758c1;let _0x2d1026=(_0x2758c1=_0x3ef45c[_0x577004(0x2f7)](_0x1f515b[0x0][_0x577004(0x441)]))==null?void 0x0:_0x2758c1[_0x577004(0x349)];if(_0x2d1026){let {unitId:_0x423845,subUnitId:_0x267f2a,drawingId:_0x2b04f7}=_0x1f515b[0x0],_0x579552=(0x0,_0x510035['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x423845,'subUnitId':_0x267f2a,'drawingId':_0x2b04f7},void 0x0),_0x2ee236=_0x2d1026['getObjectIncludeInGroup'](_0x579552);if(_0x2ee236){var _0x55569f;(_0x55569f=_0x3ef45c[_0x577004(0x2f7)](_0x1f515b[0x0]['unitId']))==null||(_0x55569f=_0x55569f['scene']['getTransformer']())==null||_0x55569f[_0x577004(0x2a2)](_0x2ee236);}}_0x72afcb[_0x577004(0x310)](_0x1f515b),_0xef3961[_0x577004(0x256)](!0x1);}return!0x0;}},_0x454166={'type':_0x49d30a[_0x209063(0x4f0)]['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x284ae4,_0x3aabca)=>{const _0x29b3c2=_0x209063;let _0x17fce9=(0x0,_0x4fbea5[_0x29b3c2(0x3c0)])(_0x284ae4[_0x29b3c2(0x4cd)](_0x49d30a['IUniverInstanceService']));if(!_0x17fce9)return!0x1;let _0x58fd19=_0x284ae4[_0x29b3c2(0x4cd)](_0x4fbea5['SheetsSelectionsService'])[_0x29b3c2(0x1f7)]();if(!_0x58fd19)return!0x1;let _0x1e6d1a=_0x284ae4['get'](_0x49d30a[_0x29b3c2(0x4c5)]),{unitId:_0x44d87c,subUnitId:_0x462dde}=_0x17fce9,{value:_0x281614,enhanceParams:_0x1741b0}=_0x3aabca,{range:_0x1c7672}=_0x58fd19,_0x472685={'unitId':_0x44d87c,'subUnitId':_0x462dde,'shapeType':_0x281614,'range':_0x1c7672,'shapeId':(0x0,_0x49d30a[_0x29b3c2(0x20b)])()};if(_0x1741b0){let _0x3b5494=(0x0,_0x5b6709[_0x29b3c2(0x3b5)])(_0x281614),_0x3c7a7d=_0x281614===_0x5b6709[_0x29b3c2(0x297)][_0x29b3c2(0x3e3)];_0x3b5494&&(_0x1741b0[_0x29b3c2(0x467)]||_0x1741b0[_0x29b3c2(0x305)])&&(_0x472685['shapeData']={'ln':{'startArrow':_0x1741b0[_0x29b3c2(0x467)]?{'type':_0x5b6709['ShapeArrowTypeEnum'][_0x29b3c2(0x2f0)],'size':_0x5b6709[_0x29b3c2(0x3c5)][_0x29b3c2(0x1d7)]}:void 0x0,'endArrow':_0x1741b0[_0x29b3c2(0x305)]?{'type':_0x5b6709[_0x29b3c2(0x391)][_0x29b3c2(0x2f0)],'size':_0x5b6709[_0x29b3c2(0x3c5)][_0x29b3c2(0x356)]}:void 0x0}}),_0x3c7a7d&&(_0x1741b0['horizontal']||_0x1741b0[_0x29b3c2(0x3a5)])&&(_0x472685[_0x29b3c2(0x4d4)]=(0x0,_0x5a6548['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x5b6709[_0x29b3c2(0x3b8)]['SolidFill'],'color':_0x29b3c2(0x3d0)},'isHorizontal':!!_0x1741b0[_0x29b3c2(0x3d9)],'stroke':{'lineStrokeType':_0x5b6709[_0x29b3c2(0x23b)]['SolidLine'],'width':0x1,'color':_0x29b3c2(0x4a7)}}));}let _0x276ca8=_0x1e6d1a['syncExecuteCommand'](_0x4eb2ab[_0x29b3c2(0x3a0)]['id'],_0x472685);return setTimeout(()=>{const _0x56621b=_0x29b3c2;_0x1e6d1a['executeCommand'](_0x2d736f['id'],[{'unitId':_0x44d87c,'subUnitId':_0x462dde,'drawingId':_0x472685[_0x56621b(0x3dc)]}]);},0xc8),_0x276ca8;}},_0x1e65b6='sheet.shape.edit.panel',_0xd78f5f='sheet.shape.object-list.panel',_0x15b03d=_0x209063(0x301),_0x1e912e=(0x0,_0x49d30a[_0x209063(0x363)])(_0x209063(0x390)),_0x3c71d3=_0x209063(0x4e3),_0x3dd6d4={'id':_0x209063(0x434),'type':_0x49d30a[_0x209063(0x4f0)][_0x209063(0x251)],'handler':(_0x53f8b5,_0x415a69)=>{const _0x524d3d=_0x209063;let _0x474797=_0x53f8b5[_0x524d3d(0x4cd)](_0xa9133b[_0x524d3d(0x37c)]),_0x6495c1=_0x53f8b5['get'](_0x49d30a[_0x524d3d(0x3e6)]),_0x4e8ba2=_0x53f8b5[_0x524d3d(0x4cd)](_0x49d30a['IUniverInstanceService']),_0x2cdadf=_0x53f8b5[_0x524d3d(0x4cd)](_0x49d30a[_0x524d3d(0x4c5)]);return(0x0,_0x4fbea5['getSheetCommandTarget'])(_0x4e8ba2)?(_0x415a69==null?void 0x0:_0x415a69['value'])===_0x524d3d(0x336)?(_0x474797['close'](_0xd78f5f),!0x0):(_0x474797[_0x524d3d(0x2cd)]({'id':_0xd78f5f,'header':{'title':_0x6495c1['t']('sheets-shape-ui.objectListPanel.title')},'children':{'label':_0xd78f5f},'onClose':()=>{const _0x316a3b=_0x524d3d;_0x2cdadf[_0x316a3b(0x3f6)](_0x510035[_0x316a3b(0x2b7)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x43d42e=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x1425fc,_0x3dbf18){const _0x41006f=_0x209063;super(),this[_0x41006f(0x46e)]=_0x1425fc,this[_0x41006f(0x4e5)]=_0x3dbf18,this[_0x41006f(0x4bc)](),this[_0x41006f(0x46e)]['setCanUseShapeClip'](!0x0),this[_0x41006f(0x3df)]({'dispose':()=>this[_0x41006f(0x46e)][_0x41006f(0x4c4)](!0x1)});}[_0x209063(0x4bc)](){const _0x2cc359=_0x209063;let _0x46b651=this[_0x2cc359(0x46e)],_0x939ca9=new Map(),_0x1ef8d5=_0x46b651['registerClipDelegate']((_0x1a21bd,_0x4c9074,_0x2adb2b,_0x4fb6f7,_0x11389d)=>{const _0x3fe521=_0x2cc359;let _0x2efbc3=_0x4c9074;if(_0x2efbc3===_0x5b6709[_0x3fe521(0x297)]['None']||_0x4c9074==='custom')return!0x1;try{let _0x566dd7=_0x939ca9[_0x3fe521(0x4cd)](_0x4c9074);return _0x566dd7||(_0x566dd7=new _0x5b6709[(_0x3fe521(0x2e7))](_0x2efbc3,_0x3fe521(0x3b3)+_0x4c9074),_0x939ca9[_0x3fe521(0x402)](_0x4c9074,_0x566dd7)),_0x11389d&&_0x566dd7['setShapeData']({'adjustValues':_0x11389d},!0x0),_0x566dd7[_0x3fe521(0x2c1)]({'width':_0x2adb2b,'height':_0x4fb6f7}),_0x566dd7[_0x3fe521(0x20d)](_0x1a21bd,{'left':0x0,'top':0x0,'width':_0x2adb2b,'height':_0x4fb6f7});}catch{return!0x1;}});this[_0x2cc359(0x3df)](_0x1ef8d5),this[_0x2cc359(0x3df)]({'dispose':()=>_0x939ca9[_0x2cc359(0x314)]()});}[_0x209063(0x245)](_0x500f98,_0x4c0369,_0xd32ddf,_0x11ca58,_0x538085){const _0x4270d4=_0x209063;let _0x298626=this['_drawingManagerService']['getDrawingData'](_0x500f98,_0x4c0369);if(!_0x298626[_0xd32ddf])return;let _0x43df73={..._0x298626[_0xd32ddf],'prstGeom':_0x11ca58,'adjustValues':_0x538085};this[_0x4270d4(0x4e5)]['featurePluginUpdateNotification']([_0x43df73]);}};_0x43d42e=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xceb6c3[_0x209063(0x367)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x510035[_0x209063(0x239)]))],_0x43d42e);let _0x172a63=_0x209063(0x41e),_0x5e4e34='sheet.image-clip.shape-picker.component';function _0x40ae00({onShapeClick:_0x1d9627,excludeGroups:_0x2ba985}){const _0x3a530b=_0x209063;return(0x0,_0x208661[_0x3a530b(0x261)])(_0xa40d9e[_0x3a530b(0x455)],{'excludeGroups':_0x2ba985,'onShapeClick':_0x1d9627,'scrollContainer':_0x3a530b(0x27b)});}function _0x4926c6(){const _0xb9acad=_0x209063;let _0x1a821c=(0x0,_0xa9133b[_0xb9acad(0x4f7)])(_0x510035[_0xb9acad(0x239)]),_0x3a527e=(0x0,_0xa9133b[_0xb9acad(0x4f7)])(_0x43d42e);return(0x0,_0x208661['jsx'])(_0xa40d9e[_0xb9acad(0x260)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0xa40d9e[_0xb9acad(0x41f)][_0xb9acad(0x236)]],'onShapeClick':_0x374e44=>{const _0x351652=_0xb9acad;let _0x5e59fc=_0x1a821c[_0x351652(0x3c2)]()['find'](_0x32993a=>_0x32993a[_0x351652(0x3e8)]===_0x49d30a['DrawingTypeEnum'][_0x351652(0x431)]);if(!_0x5e59fc)return;let {unitId:_0x4dbc68,subUnitId:_0x13cd6a,drawingId:_0x174804}=_0x5e59fc;_0x3a527e['clipByShape'](_0x4dbc68,_0x13cd6a,_0x174804,_0x374e44['type']);}});}function _0x344e7e(){const _0x10de08=_0x209063;let _0x52287a=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0xa9133b['ComponentManager']),_0x426db0=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0x510035['IDrawingManagerService']),_0x1749ed=(0x0,_0xa9133b[_0x10de08(0x4f7)])(_0x49d30a[_0x10de08(0x31b)]),_0x4245df=_0x426db0[_0x10de08(0x3c2)]()[0x0],_0x23f72c=_0x4245df?_0x1749ed[_0x10de08(0x3bc)](_0x4245df[_0x10de08(0x441)]):void 0x0,_0x3d8d35=_0x23f72c===_0x49d30a[_0x10de08(0x276)]['UNIVER_DOC']?'doc.image-clip.shape-picker.component':_0x23f72c===_0x49d30a[_0x10de08(0x276)][_0x10de08(0x295)]?_0x5e4e34:void 0x0,_0x4e3103=_0x3d8d35?_0x52287a[_0x10de08(0x4cd)](_0x3d8d35):void 0x0;return _0x4e3103?(0x0,_0x208661[_0x10de08(0x261)])(_0x4e3103,{}):null;}function _0x2945f1(){const _0x47e630=_0x209063;let _0x11d997=(0x0,_0xa9133b[_0x47e630(0x4f7)])(_0x49d30a[_0x47e630(0x4c5)]);return(0x0,_0x208661['jsx'])(_0x40ae00,{'onShapeClick':_0x3c6a88=>{const _0x1adf4e=_0x47e630;_0x11d997[_0x1adf4e(0x507)](_0x454166['id'],{'value':_0x3c6a88[_0x1adf4e(0x2f5)],'enhanceParams':{'endArrow':_0x3c6a88[_0x1adf4e(0x305)],'startArrow':_0x3c6a88['startArrow'],'horizontal':_0x3c6a88['horizontal'],'vertical':_0x3c6a88[_0x1adf4e(0x3a5)]}});}});}function _0x148c64(_0x4b72c0){const _0x2dd851=_0x209063;let _0xc5a6d8=_0x4b72c0[_0x2dd851(0x4cd)](_0x49d30a[_0x2dd851(0x31b)]);return{'id':_0x454166['id'],'type':_0xa9133b[_0x2dd851(0x357)][_0x2dd851(0x31f)],'selections':[{'label':{'name':_0x172a63,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x454166['id']}}}],'icon':_0x2dd851(0x1ce),'tooltip':'sheets-shape-ui.insertShape','activated$':(0x0,_0x100e66['deriveStateFromActiveSheet$'])(_0xc5a6d8,!0x1,()=>new _0x230aed[(_0x2dd851(0x355))](_0x393e93=>{_0x393e93['next'](!0x1);})),'hidden$':(0x0,_0xa9133b['getMenuHiddenObservable'])(_0x4b72c0,_0x49d30a[_0x2dd851(0x276)]['UNIVER_SHEET']),'disabled$':(0x0,_0x100e66[_0x2dd851(0x440)])(_0x4b72c0)};}function _0x3a44ab(_0x2fea12){const _0x1e7bc6=_0x209063;let _0x165c0d=_0x2fea12['get'](_0x49d30a[_0x1e7bc6(0x31b)]);return{'id':_0x3dd6d4['id'],'type':_0xa9133b[_0x1e7bc6(0x357)][_0x1e7bc6(0x309)],'icon':'ObjectLayersIcon','title':_0x1e7bc6(0x3e7),'tooltip':_0x1e7bc6(0x3e7),'activated$':(0x0,_0x100e66[_0x1e7bc6(0x1d0)])(_0x165c0d,!0x1,()=>new _0x230aed[(_0x1e7bc6(0x355))](_0xb19b12=>{const _0x21302d=_0x1e7bc6;_0xb19b12[_0x21302d(0x241)](!0x1);})),'hidden$':(0x0,_0xa9133b[_0x1e7bc6(0x4d5)])(_0x2fea12,_0x49d30a[_0x1e7bc6(0x276)][_0x1e7bc6(0x295)]),'disabled$':(0x0,_0x100e66[_0x1e7bc6(0x440)])(_0x2fea12)};}let _0xbe3a61={[_0xa9133b['RibbonInsertGroup'][_0x209063(0x315)]]:{[_0x454166['id']]:{'order':0x4,'menuItemFactory':_0x148c64}},[_0xa9133b[_0x209063(0x47d)][_0x209063(0x35e)]]:{[_0x3dd6d4['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x3a44ab}}};var _0x102c9e='@univerjs-pro/sheets-shape-ui',_0x2234cd=_0x209063(0x3dd);let _0x1810f4={'type':_0x49d30a[_0x209063(0x4f0)][_0x209063(0x38f)],'id':_0x209063(0x480),'handler'(){return!0x0;}},_0x5e6950={'type':_0x49d30a[_0x209063(0x4f0)]['OPERATION'],'id':_0x209063(0x233),'handler'(){return!0x0;}},_0x3d157b={};function _0x11d47d({ref:_0x56de8d,..._0x409efd}){const _0x58227a=_0x209063;let {icon:_0x2292df,id:_0x200f92,className:_0x384bae,extend:_0x5878f3,..._0x8e2a4d}=_0x409efd,_0x3fe1f7=(_0x58227a(0x24a)+_0x200f92+'\x20'+(_0x384bae||''))[_0x58227a(0x4ff)](),_0x55b2c6=(0x0,_0x4ff626[_0x58227a(0x36d)])('_'+_0x4c6c06());return _0xb2015a(_0x2292df,''+_0x200f92,{'defIds':_0x2292df[_0x58227a(0x398)],'idSuffix':_0x55b2c6['current']},{'ref':_0x56de8d,'className':_0x3fe1f7,..._0x8e2a4d},_0x5878f3);}function _0xb2015a(_0x503fd5,_0x524ea5,_0x3d65e9,_0x466bb5,_0x5e1b08){return(0x0,_0x4ff626['createElement'])(_0x503fd5['tag'],{'key':_0x524ea5,..._0x147ed5(_0x503fd5,_0x3d65e9,_0x5e1b08),..._0x466bb5},(_0xf77cc8(_0x503fd5,_0x3d65e9)['children']||[])['map']((_0x455149,_0x371be2)=>_0xb2015a(_0x455149,_0x524ea5+'-'+_0x503fd5['tag']+'-'+_0x371be2,_0x3d65e9,void 0x0,_0x5e1b08)));}function _0x147ed5(_0x34364a,_0x13e668,_0x1219b2){const _0x48008e=_0x209063;let _0xdcce72={..._0x34364a[_0x48008e(0x43b)]};_0x1219b2!=null&&_0x1219b2['colorChannel1']&&_0xdcce72['fill']===_0x48008e(0x497)&&(_0xdcce72[_0x48008e(0x3b7)]=_0x1219b2['colorChannel1']),_0x1219b2!=null&&_0x1219b2[_0x48008e(0x497)]&&_0xdcce72[_0x48008e(0x1ee)]===_0x48008e(0x497)&&(_0xdcce72[_0x48008e(0x1ee)]=_0x1219b2[_0x48008e(0x497)]),_0x34364a['tag']===_0x48008e(0x25b)&&_0xdcce72['id']&&(_0xdcce72['id']+=_0x13e668[_0x48008e(0x49a)]),Object[_0x48008e(0x4f3)](_0xdcce72)[_0x48008e(0x250)](([_0x586d12,_0x618ba0])=>{const _0x2d8016=_0x48008e;_0x586d12===_0x2d8016(0x25b)&&typeof _0x618ba0==_0x2d8016(0x416)&&(_0xdcce72[_0x586d12]=_0x618ba0[_0x2d8016(0x3fd)](/url\(#(.*)\)/,_0x2d8016(0x2b3)+_0x13e668[_0x2d8016(0x49a)]+')'));});let {defIds:_0x1bef09}=_0x13e668;return!_0x1bef09||_0x1bef09[_0x48008e(0x28f)]===0x0?_0xdcce72:(_0x34364a[_0x48008e(0x45c)]===_0x48008e(0x43f)&&_0xdcce72[_0x48008e(0x2e0)]&&(_0xdcce72[_0x48008e(0x2e0)]+=_0x13e668[_0x48008e(0x49a)]),Object['entries'](_0xdcce72)[_0x48008e(0x250)](([_0x734a5e,_0x2285c7])=>{const _0x45ffaf=_0x48008e;typeof _0x2285c7==_0x45ffaf(0x416)&&(_0xdcce72[_0x734a5e]=_0x2285c7[_0x45ffaf(0x3fd)](/url\(#(.*)\)/,_0x45ffaf(0x2b3)+_0x13e668[_0x45ffaf(0x49a)]+')'));}),_0xdcce72);}function _0xf77cc8(_0x307815,_0x1eb14f){const _0x50113a=_0x209063;var _0x4cfb55;let {defIds:_0x34cc43}=_0x1eb14f;return!_0x34cc43||_0x34cc43[_0x50113a(0x28f)]===0x0?_0x307815:_0x307815[_0x50113a(0x45c)]==='defs'&&(_0x4cfb55=_0x307815[_0x50113a(0x4a9)])!=null&&_0x4cfb55[_0x50113a(0x28f)]?{..._0x307815,'children':_0x307815[_0x50113a(0x4a9)][_0x50113a(0x266)](_0x557461=>typeof _0x557461[_0x50113a(0x43b)]['id']==_0x50113a(0x416)&&_0x34cc43&&_0x34cc43[_0x50113a(0x274)](_0x557461['attrs']['id'])?{..._0x557461,'attrs':{..._0x557461[_0x50113a(0x43b)],'id':_0x557461['attrs']['id']+_0x1eb14f[_0x50113a(0x49a)]}}:_0x557461)}:_0x307815;}function _0x4c6c06(){const _0x1e6ab2=_0x209063;return Math['random']()[_0x1e6ab2(0x26e)](0x24)[_0x1e6ab2(0x4d1)](0x2,0x8);}_0x11d47d[_0x209063(0x3db)]='UniverIcon';let _0x1ededf={'tag':_0x209063(0x3a2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x209063(0x469),'viewBox':_0x209063(0x28d),'width':_0x209063(0x2cb),'height':_0x209063(0x2cb)},'children':[{'tag':_0x209063(0x32b),'attrs':{'stroke':_0x209063(0x20e),'d':_0x209063(0x2d7),'strokeLinecap':_0x209063(0x249),'strokeLinejoin':_0x209063(0x249),'strokeWidth':1.3}},{'tag':_0x209063(0x32b),'attrs':{'stroke':'currentColor','d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x209063(0x249),'strokeLinejoin':_0x209063(0x249),'strokeWidth':1.3}}]},_0x11e83e=(0x0,_0x4ff626[_0x209063(0x369)])(function(_0x984857,_0x27c920){const _0x8e0b4b=_0x209063;return(0x0,_0x4ff626[_0x8e0b4b(0x2e8)])(_0x11d47d,Object[_0x8e0b4b(0x4a2)]({},_0x984857,{'id':_0x8e0b4b(0x268),'ref':_0x27c920,'icon':_0x1ededf}));});_0x11e83e[_0x209063(0x3db)]=_0x209063(0x2f4);function _0x1764b0(_0x3b1255){const _0x5888f0=_0x209063;return _0x3b1255[_0x5888f0(0x4ff)]()||void 0x0;}function _0x58f127(_0x70de5d){const _0x2b3b35=_0x209063;switch(_0x70de5d[_0x2b3b35(0x3e8)]){case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_IMAGE']:return'image';case _0x49d30a['DrawingTypeEnum'][_0x2b3b35(0x4c6)]:return _0x2b3b35(0x4c3);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x1cf)]:return _0x2b3b35(0x381);case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_SMART_ART']:return _0x2b3b35(0x34f);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x30c)]:return _0x2b3b35(0x464);case _0x49d30a[_0x2b3b35(0x365)]['DRAWING_GROUP']:return _0x2b3b35(0x258);case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x4b3)]:return'unit';case _0x49d30a[_0x2b3b35(0x365)][_0x2b3b35(0x21f)]:return'dom';case _0x49d30a['DrawingTypeEnum'][_0x2b3b35(0x4fe)]:return _0x2b3b35(0x3da);default:return _0x2b3b35(0x375);}}function _0x178118(_0x34c661,_0x4a0bc1,_0x62efd9){const _0x7aee7a=_0x209063;var _0x49b436;return((_0x49b436=_0x34c661[_0x7aee7a(0x30b)])==null?void 0x0:_0x49b436['trim']())||(0x0,_0xceb6c3[_0x7aee7a(0x3af)])(_0x62efd9,_0x58f127(_0x34c661))+'\x20'+(_0x4a0bc1+0x1);}function _0x111ad8(){const _0x20020c=_0x209063;var _0x1be82a,_0x4a3557,_0x4dab76,_0x48a766;let _0x164b3c=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x49d30a['LocaleService']),_0x1f43d0=(0x0,_0xa9133b['useDependency'])(_0x49d30a['ICommandService']),_0x473917=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x49d30a['IUniverInstanceService']),_0x4af0b6=(0x0,_0xa9133b['useDependency'])(_0x28a390[_0x20020c(0x2b8)]),_0x1b8ed9=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x510035[_0x20020c(0x239)]),_0x17e6ad=(0x0,_0xa9133b[_0x20020c(0x4f7)])(_0x40dd84[_0x20020c(0x2ba)]),[,_0x4f9fa7]=(0x0,_0x4ff626['useReducer'])(_0x4488b5=>_0x4488b5+0x1,0x0),_0x18ece2=_0x473917['getCurrentUnitOfType'](_0x49d30a['UniverInstanceType'][_0x20020c(0x295)]),_0x4d2f87=(_0x1be82a=_0x18ece2==null?void 0x0:_0x18ece2[_0x20020c(0x3bf)]())==null?'':_0x1be82a,_0x2ebfed=(_0x4a3557=_0x18ece2==null||(_0x4dab76=_0x18ece2[_0x20020c(0x280)]())==null?void 0x0:_0x4dab76['getSheetId']())==null?'':_0x4a3557,_0x4233be=(0x0,_0xa9133b[_0x20020c(0x3cc)])(()=>_0x1b8ed9[_0x20020c(0x2a6)],_0x1b8ed9[_0x20020c(0x3c2)](),!0x1,[_0x1b8ed9]);(0x0,_0x4ff626['useEffect'])(()=>{const _0x301023=_0x20020c;let _0x3c9c6a=_0x1f43d0[_0x301023(0x4cc)](()=>_0x4f9fa7());return()=>_0x3c9c6a['dispose']();},[_0x1f43d0]);let _0x15db0b=_0x4d2f87&&_0x2ebfed?_0x4af0b6[_0x20020c(0x2fd)](_0x4d2f87,_0x2ebfed):{},_0x26e3b7=_0x4d2f87&&_0x2ebfed?_0x4af0b6[_0x20020c(0x329)](_0x4d2f87,_0x2ebfed):[],_0x4ebb54=(0x0,_0x4ff626['useMemo'])(()=>(0x0,_0xceb6c3[_0x20020c(0x405)])(_0x164b3c),[_0x164b3c]),_0x2c7d53=(0x0,_0x4ff626[_0x20020c(0x243)])(()=>{const _0x4e6eaf=_0x20020c;let _0x1e9c87=_0x26e3b7[_0x4e6eaf(0x266)](_0x356b02=>_0x15db0b[_0x356b02])['filter'](_0x36323d=>!!_0x36323d)['reverse'](),_0x4ccb74=_0x1e9c87[_0x4e6eaf(0x2d4)]((_0x105a8c,_0x505eb7)=>(_0x105a8c[(0x0,_0xceb6c3['getObjectListPanelSectionIdForDrawingType'])(_0x505eb7['drawingType'])]+=0x1,_0x105a8c),{'canvas':0x0,'floating':0x0}),_0x5d61ef={'canvas':0x0,'floating':0x0};return _0x1e9c87[_0x4e6eaf(0x266)]((_0x3bf4ba,_0xe89f3c)=>{const _0x3e0413=_0x4e6eaf;let _0x12dd18=(0x0,_0xceb6c3[_0x3e0413(0x26f)])(_0x3bf4ba[_0x3e0413(0x3e8)]),_0x1b0710=_0x12dd18===_0xceb6c3[_0x3e0413(0x362)],_0x21f08d=_0x5d61ef[_0x12dd18]++;return{'id':_0x3bf4ba[_0x3e0413(0x2e9)],'name':_0x178118(_0x3bf4ba,_0xe89f3c,_0x164b3c),'description':_0x3bf4ba[_0x3e0413(0x24c)],'visible':_0x3bf4ba[_0x3e0413(0x29b)]!==!0x0,'selectable':_0x3bf4ba[_0x3e0413(0x36f)]!==!0x1,'sectionId':_0x12dd18,'sectionTitle':_0x1b0710?_0x4ebb54[_0x3e0413(0x39b)]:_0x4ebb54['sectionCanvas'],'capabilities':_0x1b0710?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x1b0710&&_0x21f08d>0x0,'canMoveBackward':!_0x1b0710&&_0x21f08d<_0x4ccb74[_0x3e0413(0x4cf)]-0x1,'canReorder':!_0x1b0710};});},[_0x15db0b,_0x26e3b7,_0x4ebb54[_0x20020c(0x358)],_0x4ebb54[_0x20020c(0x39b)],_0x164b3c]),_0x2e582c=(0x0,_0x4ff626[_0x20020c(0x243)])(()=>(_0x4233be==null?[]:_0x4233be)['filter'](_0x6e4a5=>_0x6e4a5[_0x20020c(0x441)]===_0x4d2f87&&_0x6e4a5['subUnitId']===_0x2ebfed)[_0x20020c(0x266)](_0x23ef42=>_0x23ef42[_0x20020c(0x2e9)]),[_0x4233be,_0x2ebfed,_0x4d2f87]),_0x4cc25d=(_0x48a766=_0x2e582c[_0x2e582c[_0x20020c(0x28f)]-0x1])==null?null:_0x48a766,_0x115b5f=_0x298714=>{const _0x3101b9=_0x20020c;var _0x1fdbdc;return(_0x1fdbdc=_0x4af0b6[_0x3101b9(0x20c)]({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x298714}))==null?null:_0x1fdbdc;},_0x29302a=_0x5996bc=>{const _0x574fba=_0x20020c;!_0x4d2f87||!_0x5996bc[_0x574fba(0x28f)]||_0x1f43d0[_0x574fba(0x507)](_0x28a390[_0x574fba(0x2d3)]['id'],{'unitId':_0x4d2f87,'drawings':_0x5996bc});},_0x3be4b0=(_0x4ceb02,_0x36f350)=>{_0x115b5f(_0x4ceb02)&&_0x29302a([{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x4ceb02,..._0x36f350}]);},_0x596461=(_0x296b66,_0x567c6d)=>{const _0x4cf04d=_0x20020c;if(!_0x4d2f87||!_0x2ebfed)return;let _0x2ad915=_0x567c6d?_0x2e582c[_0x4cf04d(0x274)](_0x296b66)?_0x2e582c['filter'](_0x2c8043=>_0x2c8043!==_0x296b66):[..._0x2e582c,_0x296b66]:[_0x296b66];_0x1f43d0['syncExecuteCommand'](_0x510035[_0x4cf04d(0x2b7)]['id'],_0x2ad915[_0x4cf04d(0x266)](_0x401b76=>({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x401b76})));let _0x54d328=_0x2ad915[_0x2ad915['length']-0x1];_0x54d328?(0x0,_0xa40d9e['activateDrawingObject'])(_0x17e6ad,{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x54d328}):(0x0,_0xa40d9e[_0x4cf04d(0x291)])(_0x17e6ad,_0x4d2f87);},_0x360cc2=(_0x29e064,_0x3077f1)=>{const _0xf0c97d=_0x20020c;_0x29302a(_0x29e064[_0xf0c97d(0x266)](_0x397f4d=>_0x115b5f(_0x397f4d))[_0xf0c97d(0x3a4)](_0x577749=>!!_0x577749)[_0xf0c97d(0x3a4)](_0x3ad211=>_0x3ad211[_0xf0c97d(0x29b)]!==!0x0!==_0x3077f1)[_0xf0c97d(0x266)](_0x462d2c=>({'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingId':_0x462d2c[_0xf0c97d(0x2e9)],'hidden':!_0x3077f1})));},_0x391030=_0x26e755=>{const _0x4f8417=_0x20020c;let _0x2f1786=_0x115b5f(_0x26e755);_0x2f1786&&_0x3be4b0(_0x26e755,{'selectable':_0x2f1786[_0x4f8417(0x36f)]===!0x1?void 0x0:!0x1});},_0x2c0d79=(_0x1177a2,_0x1a3682)=>{var _0x3d3301,_0x116321;let _0x34b66e=_0x1764b0(_0x1a3682);((_0x3d3301=(_0x116321=_0x115b5f(_0x1177a2))==null?void 0x0:_0x116321['name'])==null?void 0x0:_0x3d3301)!==_0x34b66e&&_0x3be4b0(_0x1177a2,{'name':_0x34b66e});},_0x1670e4=(_0x4eb1ce,_0x9239e7)=>{const _0x534fe4=_0x20020c;var _0x57eee6,_0x53a578;let _0x5f1a75=_0x1764b0(_0x9239e7);((_0x57eee6=(_0x53a578=_0x115b5f(_0x4eb1ce))==null?void 0x0:_0x53a578[_0x534fe4(0x24c)])==null?void 0x0:_0x57eee6)!==_0x5f1a75&&_0x3be4b0(_0x4eb1ce,{'description':_0x5f1a75});},_0x5b1092=(_0x42af81,_0x359edc)=>{const _0x58dc9f=_0x20020c;!_0x4d2f87||!_0x2ebfed||_0x1f43d0[_0x58dc9f(0x507)](_0x28a390['SetDrawingArrangeCommand']['id'],{'unitId':_0x4d2f87,'subUnitId':_0x2ebfed,'drawingIds':[_0x42af81],'arrangeType':_0x359edc});};return!_0x4d2f87||!_0x2ebfed?(0x0,_0x208661[_0x20020c(0x261)])(_0x20020c(0x337),{'className':_0x20020c(0x4b4),'children':_0x4ebb54[_0x20020c(0x1e3)]}):(0x0,_0x208661['jsx'])(_0xceb6c3['ObjectListPanelBase'],{'items':_0x2c7d53,'selectedIds':_0x2e582c,'focusedId':_0x4cc25d,'labels':_0x4ebb54,'onSelect':_0x596461,'onSetVisible':_0x360cc2,'onCommitName':_0x2c0d79,'onCommitDescription':_0x1670e4,'onMoveForward':_0x16acd2=>_0x5b1092(_0x16acd2,_0x49d30a[_0x20020c(0x279)]['forward']),'onMoveBackward':_0x3a251e=>_0x5b1092(_0x3a251e,_0x49d30a[_0x20020c(0x279)][_0x20020c(0x438)]),'onToggleSelectable':_0x391030});}let _0x4aab0f=class{constructor(_0x3fe845){const _0x4ed8f1=_0x209063;this[_0x4ed8f1(0x40d)]=_0x3fe845;}['updateShapeFillImage'](_0x590176,_0x454517){const _0x114c0b=_0x209063;let _0x45f8c9=this[_0x114c0b(0x40d)][_0x114c0b(0x2f7)](_0x590176[_0x114c0b(0x441)]),_0x4662e9=_0x45f8c9==null?void 0x0:_0x45f8c9['scene'];if(!_0x4662e9)return;let _0x12d222=(0x0,_0x510035[_0x114c0b(0x3a8)])(_0x590176),_0x24f8f2=_0x4662e9['getObjectIncludeInGroup'](_0x12d222);_0x24f8f2==null||_0x24f8f2[_0x114c0b(0x24d)](_0x454517);}};_0x4aab0f=_0x276893([_0x3cbe95(0x0,_0x40dd84[_0x209063(0x2ba)])],_0x4aab0f);function _0x30b6ae(){const _0x594c76=_0x209063;let _0x913893=(0x0,_0xa9133b['useDependency'])(_0x510035['IDrawingManagerService']),_0x27a8c9=(0x0,_0xa9133b[_0x594c76(0x3cc)])(()=>_0x913893['focus$'],_0x913893['getFocusDrawings'](),!0x1,[_0x913893]);return _0x27a8c9[_0x594c76(0x28f)]===0x0?null:(0x0,_0x208661['jsx'])(_0x594c76(0x337),{'children':(0x0,_0x208661[_0x594c76(0x30d)])(_0x594c76(0x337),{'className':_0x594c76(0x3f5),'children':[(0x0,_0x208661['jsx'])(_0xceb6c3[_0x594c76(0x316)],{'drawings':_0x27a8c9,'hasCropper':!0x1}),(0x0,_0x208661['jsx'])(_0x4c7223['SheetDrawingAnchor'],{'drawings':_0x27a8c9})]})});}function _0x5d9b51(_0x555485){const _0xd85207=_0x209063;let {unitId:_0x31f749,subUnitId:_0x145ed5,shapeId:_0x548157}=_0x555485,_0x2ef533=(0x0,_0xa9133b[_0xd85207(0x4f7)])(_0x49d30a[_0xd85207(0x4c5)]),_0x2b5568=(0x0,_0xa9133b[_0xd85207(0x4f7)])(_0x4aab0f);return(0x0,_0x208661[_0xd85207(0x261)])(_0xa40d9e['ShapeEditPanel'],{..._0x555485,'positionEditor':(0x0,_0x208661['jsx'])(_0x30b6ae,{}),'onUpdateShapeData':(_0x1fbe5d,_0x231877)=>{_0x407767(_0x2ef533,_0x31f749,_0x145ed5,_0x548157,_0x1fbe5d,_0x231877);},'onUpdateLineShapeData':(_0x4d73ae,_0x387c86)=>{_0x2583c5(_0x2ef533,_0x31f749,_0x145ed5,_0x548157,_0x4d73ae,_0x387c86);},'onUpdateShapeFillImage':_0x4e9724=>{_0x2b5568['updateShapeFillImage']({'unitId':_0x31f749,'subUnitId':_0x145ed5,'drawingId':_0x548157},_0x4e9724);}});}function _0x18b2ad(_0x54347e){const _0x29e7b0=_0x209063;let _0x1b6aa8=_0x54347e[_0x29e7b0(0x3d2)][_0x29e7b0(0x48c)];return _0x1b6aa8?(0x0,_0x208661['jsx'])(_0x4d1f75,{..._0x1b6aa8}):null;}function _0x4d1f75(_0x587d0a){const _0x4b8c83=_0x209063;var _0x1e2825,_0x4579b5;let _0xa06900=(0x0,_0xa9133b[_0x4b8c83(0x4f7)])(_0x49d30a[_0x4b8c83(0x4c5)]),_0x189f9a=(0x0,_0xa9133b[_0x4b8c83(0x4f7)])(_0x4eb2ab[_0x4b8c83(0x264)]),{unitId:_0x5206e6,subUnitId:_0x4a3a0e,drawingId:_0x311f32,drawingType:_0x3fe674,shapeType:_0x593e62}=_0x587d0a,[_0x4dd62f,_0x118749]=(0x0,_0x4ff626[_0x4b8c83(0x33d)])(_0x587d0a[_0x4b8c83(0x4d4)]),_0x5a5aba=(0x0,_0x4ff626[_0x4b8c83(0x243)])(()=>(0x0,_0xa40d9e[_0x4b8c83(0x1dc)])(_0x4dd62f),[_0x4dd62f]),_0x45786e=(0x0,_0x4ff626[_0x4b8c83(0x243)])(()=>(0x0,_0xa40d9e[_0x4b8c83(0x2ab)])(_0x4dd62f),[_0x4dd62f]);(0x0,_0x4ff626[_0x4b8c83(0x4de)])(()=>{const _0x2f4abb=_0x4b8c83;let _0xd8c1ab=_0xa06900['onCommandExecuted'](_0x499f2b=>{if(_0x499f2b['id']!==_0x4eb2ab['UpdateSheetsShapeDataMutation']['id'])return;let _0x22c690=_0x189f9a['getShapeDataById'](_0x5206e6,_0x4a3a0e,_0x311f32);_0x22c690&&_0x118749(_0x22c690);});return()=>_0xd8c1ab[_0x2f4abb(0x46a)]();},[_0xa06900,_0x311f32,_0x189f9a,_0x4a3a0e,_0x5206e6]);let _0x1f023e=_0x11b96e=>{_0x118749(_0x40921b=>({..._0x40921b,..._0x11b96e}));},_0x5c17f2=_0x1c3d05=>{const _0x3a5923=_0x4b8c83;let _0xa17f09=(0x0,_0xa40d9e[_0x3a5923(0x399)])(_0x4dd62f,_0x1c3d05);_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,{'oldShapeData':{'shapeText':_0x4dd62f[_0x3a5923(0x206)]}},_0xa17f09),_0x1f023e(_0xa17f09);},_0x2aa0c0=(0x0,_0xa40d9e[_0x4b8c83(0x216)])({'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'shapeId':_0x311f32,'shapeData':_0x4dd62f,'onUpdateBinding':_0x2787b4=>{const _0x5f42f1=_0x4b8c83;let _0x5a8600={'formulaBinding':_0x2787b4};_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,{'oldShapeData':{'formulaBinding':_0x4dd62f[_0x5f42f1(0x330)]}},_0x5a8600),_0x1f023e(_0x5a8600);}});return(0x0,_0x208661[_0x4b8c83(0x30d)])(_0x208661[_0x4b8c83(0x1de)],{'children':[(0x0,_0x208661[_0x4b8c83(0x261)])(_0xa40d9e[_0x4b8c83(0x3a6)],{'shapeData':_0x4dd62f,'shapeType':_0x593e62,'textStyle':{'ff':_0x5b6709[_0x4b8c83(0x389)]['shapeText']['fontFamily'],'fs':_0x5b6709['ShapeDefaultConfig'][_0x4b8c83(0x206)][_0x4b8c83(0x382)],'cl':{'rgb':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x206)]['color']},..._0x5a5aba},'textModel':_0x45786e?{'ha':(_0x1e2825=_0x45786e['ha'])==null?_0x49d30a[_0x4b8c83(0x2ea)][_0x4b8c83(0x4a5)]:_0x1e2825,'va':(_0x4579b5=_0x45786e['va'])==null?_0x49d30a[_0x4b8c83(0x1d6)][_0x4b8c83(0x1d1)]:_0x4579b5}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5b6709['ShapeDefaultConfig']['fill'],'defaultGradientEndColor':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x41d)],'defaultStrokeColor':_0x5b6709[_0x4b8c83(0x389)][_0x4b8c83(0x1ee)],'extensionGroups':_0x2aa0c0['extensionGroups'],'onUpdateShapeData':(_0x4c3737,_0x154481)=>{_0x407767(_0xa06900,_0x5206e6,_0x4a3a0e,_0x311f32,_0x4c3737,_0x154481),_0x154481&&_0x1f023e(_0x154481);},'onUpdateText':_0x5c17f2,'onOpenPanel':()=>{const _0x5c45f0=_0x4b8c83;_0xa06900[_0x5c45f0(0x507)](_0x5e6950['id'],{'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'drawingId':_0x311f32});},'onDelete':()=>{const _0x282d4a=_0x4b8c83;_0xa06900[_0x282d4a(0x507)](_0x28a390['RemoveSheetDrawingCommand']['id'],{'unitId':_0x5206e6,'drawings':[{'unitId':_0x5206e6,'subUnitId':_0x4a3a0e,'drawingId':_0x311f32,'drawingType':_0x3fe674}]});}}),_0x2aa0c0[_0x4b8c83(0x49f)]]});}var _0x3da7be=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(..._0x1302cc){const _0x73bceb=_0x209063;super(..._0x1302cc),_0x28368a(this,_0x73bceb(0x2b9),new _0x230aed[(_0x73bceb(0x380))](null)),_0x28368a(this,_0x73bceb(0x2a0),this[_0x73bceb(0x2b9)][_0x73bceb(0x31d)]()),_0x28368a(this,_0x73bceb(0x4f4),new _0x230aed[(_0x73bceb(0x380))](!0x1)),_0x28368a(this,_0x73bceb(0x4e7),this['_onSavingEditorData$'][_0x73bceb(0x31d)]());}[_0x209063(0x46a)](){const _0x32dbb3=_0x209063;this[_0x32dbb3(0x2b9)][_0x32dbb3(0x241)](null),this[_0x32dbb3(0x2b9)][_0x32dbb3(0x44f)](),this[_0x32dbb3(0x4f4)]['next'](!0x1),this['_onSavingEditorData$'][_0x32dbb3(0x44f)](),super[_0x32dbb3(0x46a)]();}[_0x209063(0x2dd)](_0x13cd5c){const _0x27e32a=_0x209063;this[_0x27e32a(0x2b9)][_0x27e32a(0x241)](_0x13cd5c),_0x13cd5c==null&&this['_onSavingEditorData$'][_0x27e32a(0x241)](!0x1);}['setOnSavingEditorData'](_0x557dfe){const _0x5a1ed7=_0x209063;this[_0x5a1ed7(0x4f4)][_0x5a1ed7(0x241)](_0x557dfe);}[_0x209063(0x247)](){const _0x10c488=_0x209063;return this[_0x10c488(0x2b9)][_0x10c488(0x428)]();}[_0x209063(0x22a)](_0x30f812){this['getEditing']()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2736bc=_0x45fb;this[_0x2736bc(0x2dd)](null);}));}[_0x209063(0x3cf)](){const _0x5e40c9=_0x209063;this[_0x5e40c9(0x247)]()&&this['setEditing'](null);}};let _0x411310=(0x0,_0x4ff626[_0x209063(0x35d)])(()=>{const _0x481a86=_0x209063;let _0x547fb3=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x3da7be),_0x267c47=(0x0,_0xa9133b['useDependency'])(_0x4eb2ab[_0x481a86(0x264)]),_0x1e6733=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x510035[_0x481a86(0x239)]),_0x552c79=(0x0,_0xa9133b['useDependency'])(_0x49d30a['ICommandService']),_0x8344ef=(0x0,_0xa9133b[_0x481a86(0x4f7)])(_0x40dd84[_0x481a86(0x2ba)]);return(0x0,_0x208661[_0x481a86(0x261)])(_0xa40d9e[_0x481a86(0x211)],{'adapter':(0x0,_0x4ff626['useMemo'])(()=>({'getShapeModel':(_0x36d21b,_0xdab15b,_0x20a90e)=>_0x267c47['getShapeModel'](_0x36d21b,_0xdab15b,_0x20a90e),'getShapeData':(_0x3b7da1,_0x1236a2,_0x37101e)=>_0x267c47[_0x481a86(0x27c)](_0x3b7da1,_0x1236a2,_0x37101e),'getDrawingTransform':(_0x5d3119,_0x1d6420,_0x5195e5)=>{const _0x2090af=_0x481a86;let _0x1ac99c=_0x1e6733['getDrawingByParam']({'unitId':_0x5d3119,'subUnitId':_0x1d6420,'drawingId':_0x5195e5});return _0x1ac99c==null?void 0x0:_0x1ac99c[_0x2090af(0x267)];},'updateShapeText':({unitId:_0x4c0d28,subUnitId:_0x1b44ea,shapeId:_0x29f3d3,shapeText:_0x387688,oldShapeText:_0x6948c2})=>{const _0x4cd7ad=_0x481a86;_0x552c79[_0x4cd7ad(0x507)](_0x39f376['id'],{'unitId':_0x4c0d28,'subUnitId':_0x1b44ea,'shapeId':_0x29f3d3,'shapeData':{'shapeText':_0x387688},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x6948c2}}});},'updateHostSize':({unitId:_0x2b76e6,subUnitId:_0x1fdca3,shapeId:_0x299045,width:_0x5831b1,height:_0x42fa6c})=>{const _0x4c53eb=_0x481a86;var _0xd5c970,_0x4994b7,_0x21b858;let _0x148cef=_0x1e6733[_0x4c53eb(0x20c)]({'unitId':_0x2b76e6,'subUnitId':_0x1fdca3,'drawingId':_0x299045}),_0x3953f3=_0x148cef==null?void 0x0:_0x148cef[_0x4c53eb(0x267)];if(!_0x148cef||!_0x3953f3)return;let _0x3263d6={..._0x3953f3,'width':_0x5831b1,'height':_0x42fa6c},_0x59d2c9=(_0xd5c970=_0x8344ef[_0x4c53eb(0x2f7)](_0x2b76e6))==null||(_0xd5c970=_0xd5c970[_0x4c53eb(0x451)](_0x100e66['SheetSkeletonManagerService'])[_0x4c53eb(0x40e)](_0x1fdca3))==null?void 0x0:_0xd5c970[_0x4c53eb(0x29f)],_0x1e7166=_0x59d2c9?(_0x4994b7=(0x0,_0x28a390[_0x4c53eb(0x34b)])(_0x3263d6,_0x59d2c9))==null?_0x148cef[_0x4c53eb(0x40b)]:_0x4994b7:_0x148cef[_0x4c53eb(0x40b)],_0x4de4e8=_0x59d2c9?(_0x21b858=(0x0,_0x28a390['transformToAxisAlignPosition'])(_0x3263d6,_0x59d2c9))==null?_0x148cef[_0x4c53eb(0x4e0)]:_0x21b858:_0x148cef[_0x4c53eb(0x4e0)];_0x552c79['executeCommand'](_0x28a390[_0x4c53eb(0x2d3)]['id'],{'unitId':_0x2b76e6,'drawings':[{..._0x148cef,'transform':_0x3263d6,'sheetTransform':_0x1e7166,'axisAlignSheetTransform':_0x4de4e8}]});},'allowHostSizeShrink':({unitId:_0x5505e8,subUnitId:_0x27e45b,shapeId:_0x22ddbf})=>(0x0,_0xa40d9e[_0x481a86(0x478)])(_0x267c47[_0x481a86(0x27c)](_0x5505e8,_0x27e45b,_0x22ddbf))}),[_0x552c79,_0x1e6733,_0x8344ef,_0x267c47]),'editingService':_0x547fb3,'editorUnitId':_0x1e912e,'positionOptions':(0x0,_0x4ff626['useMemo'])(()=>({'viewportKeys':{'main':_0x40dd84[_0x481a86(0x1f0)][_0x481a86(0x3e1)],'leftTop':_0x40dd84['SHEET_VIEWPORT_KEY'][_0x481a86(0x360)],'top':_0x40dd84['SHEET_VIEWPORT_KEY'][_0x481a86(0x500)],'left':_0x40dd84['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT']},'getSkeleton':(_0x21ac4c,_0x3d7609)=>{const _0x2d1330=_0x481a86;var _0x53e746,_0x7bd866;return(_0x53e746=(_0x7bd866=_0x21ac4c[_0x2d1330(0x451)](_0x100e66['SheetSkeletonManagerService'])['getSkeletonParam'](_0x3d7609[_0x2d1330(0x2fe)]))==null?void 0x0:_0x7bd866[_0x2d1330(0x29f)])==null?null:_0x53e746;}}),[])});}),_0x58c754=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x190314,_0x29a32b){const _0x30301b=_0x209063;super(),this[_0x30301b(0x413)]=_0x190314,this['_iconManager']=_0x29a32b,this[_0x30301b(0x456)](),this[_0x30301b(0x21b)]();}['_registerIcons'](){const _0x43fd4e=_0x209063;this[_0x43fd4e(0x3d3)][_0x43fd4e(0x38c)]('ObjectLayersIcon')||this[_0x43fd4e(0x3df)](this[_0x43fd4e(0x3d3)][_0x43fd4e(0x465)]({'ObjectLayersIcon':_0x11e83e}));}[_0x209063(0x21b)](){const _0x5b9bdc=_0x209063;this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)]['register'](_0x1e65b6,_0x5d9b51)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0xd78f5f,_0x111ad8)),this['disposeWithMe'](this[_0x5b9bdc(0x413)]['register'](_0x172a63,_0x2945f1)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0x5e4e34,_0x4926c6)),this['_componentManager']['get'](_0xceb6c3[_0x5b9bdc(0x4fb)])||this['disposeWithMe'](this[_0x5b9bdc(0x413)][_0x5b9bdc(0x465)](_0xceb6c3[_0x5b9bdc(0x4fb)],_0x344e7e)),this[_0x5b9bdc(0x3df)](this['_componentManager'][_0x5b9bdc(0x465)](_0x15b03d,_0x18b2ad)),this[_0x5b9bdc(0x3df)](this[_0x5b9bdc(0x413)]['register'](_0x3c71d3,_0xa40d9e[_0x5b9bdc(0x39c)])),this[_0x5b9bdc(0x3df)](this['_componentManager'][_0x5b9bdc(0x465)]('SheetShapeTextEditorContainer',_0x411310));}};_0x58c754=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xa9133b[_0x209063(0x2ac)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xa9133b[_0x209063(0x322)]))],_0x58c754);let _0x43f6ab=class extends _0x49d30a['Disposable']{constructor(_0x262a46,_0x134fd,_0x4d4d55,_0x5ed83f,_0x1431cb){const _0x172eec=_0x209063;super(),this['_context']=_0x262a46,this[_0x172eec(0x4e5)]=_0x134fd,this[_0x172eec(0x40d)]=_0x4d4d55,this['_univerInstanceService']=_0x5ed83f,this[_0x172eec(0x471)]=_0x1431cb,_0x28368a(this,_0x172eec(0x4dc),null),_0x28368a(this,'_unitId',null),_0x28368a(this,_0x172eec(0x489),null),_0x28368a(this,_0x172eec(0x227),void 0x0),_0x28368a(this,_0x172eec(0x461),[]),_0x28368a(this,_0x172eec(0x4df),0x0),_0x28368a(this,'_baseTop',0x0),_0x28368a(this,_0x172eec(0x335),0x0),_0x28368a(this,_0x172eec(0x312),0x0),_0x28368a(this,_0x172eec(0x278),!0x1),_0x28368a(this,_0x172eec(0x44d),void 0x0),_0x28368a(this,_0x172eec(0x23a),void 0x0),_0x28368a(this,_0x172eec(0x318),void 0x0),_0x28368a(this,_0x172eec(0x40f),void 0x0),_0x28368a(this,_0x172eec(0x386),!0x1),this[_0x172eec(0x345)](),this[_0x172eec(0x457)]();}[_0x209063(0x409)](){const _0x1108f3=_0x209063;this[_0x1108f3(0x20a)]();}[_0x209063(0x424)](){const _0x568b1e=_0x209063;this['_clearControls'](),this[_0x568b1e(0x387)](!0x0);}[_0x209063(0x37f)](_0x192284,_0x8752c6,_0x519d22,_0x5dce8b){const _0x3f4505=_0x209063;let _0x1d3f01=_0x192284;if(!(_0x1d3f01===_0x5b6709[_0x3f4505(0x297)][_0x3f4505(0x205)]||_0x192284===_0x3f4505(0x2fa)))try{let _0x10d5ab=new _0x5b6709[(_0x3f4505(0x2e7))](_0x1d3f01,'clip-adj-'+_0x192284);return _0x5dce8b&&_0x10d5ab[_0x3f4505(0x3ef)]({'adjustValues':_0x5dce8b},!0x0),_0x10d5ab[_0x3f4505(0x2c1)]({'width':_0x8752c6,'height':_0x519d22}),_0x10d5ab;}catch{return;}}[_0x209063(0x303)](_0x5b2ea2,_0x10e41b,_0x1d3879){const _0x3aced3=_0x209063;let _0x444d41={'unitId':_0x5b2ea2,'subUnitId':_0x10e41b,'drawingId':_0x1d3879},_0x891bb9=this[_0x3aced3(0x4e5)][_0x3aced3(0x20c)](_0x444d41);if(!(!_0x891bb9||_0x891bb9[_0x3aced3(0x3e8)]!==_0x49d30a[_0x3aced3(0x365)][_0x3aced3(0x431)]))return _0x891bb9;}[_0x209063(0x2aa)](_0x42adb4,_0x91f7f2,_0x3b962d){const _0x36e8f1=_0x209063;let _0x2367ab=this[_0x36e8f1(0x40d)][_0x36e8f1(0x2f7)](_0x42adb4);if(!_0x2367ab)return;let {scene:_0x5da988}=_0x2367ab,_0x155104=(0x0,_0x510035[_0x36e8f1(0x3a8)])({'unitId':_0x42adb4,'subUnitId':_0x91f7f2,'drawingId':_0x3b962d}),_0x2ee22a=_0x5da988[_0x36e8f1(0x229)](_0x155104);if(_0x2ee22a instanceof _0x40dd84[_0x36e8f1(0x4bb)]){let _0x191f8b=_0x2ee22a['prstGeom'];if(_0x191f8b)return{'prstGeom':_0x191f8b,'adjustValues':_0x2ee22a['prstGeomAdjValues']};}}[_0x209063(0x387)](_0x1d760f=!0x1){const _0x6d195=_0x209063;if(!this[_0x6d195(0x30e)]||!this[_0x6d195(0x489)]||!this['_activeImageId'])return;let _0x2d6a9c=this[_0x6d195(0x40d)][_0x6d195(0x2f7)](this[_0x6d195(0x30e)]);if(!_0x2d6a9c||!_0x2d6a9c[_0x6d195(0x451)](_0x100e66[_0x6d195(0x242)])[_0x6d195(0x238)]())return;let {scene:_0x4f4b5e}=_0x2d6a9c,_0x1dfda1=this[_0x6d195(0x303)](this[_0x6d195(0x30e)],this['_subUnitId'],this[_0x6d195(0x4dc)]);if(!_0x1dfda1)return;let {transform:_0xcdca56}=_0x1dfda1;if(!_0xcdca56)return;let {left:_0x1f8265,top:_0x351b79,width:_0x52204a,height:_0x1a1b61,flipX:_0x3412c0,flipY:_0x38e83d,angle:_0x44f51f=0x0}=_0xcdca56;if(_0x1f8265===void 0x0||_0x351b79===void 0x0)return;let _0x4fa4e2=this[_0x6d195(0x2aa)](this[_0x6d195(0x30e)],this[_0x6d195(0x489)],this[_0x6d195(0x4dc)]);if(!_0x4fa4e2)return;if(_0x1d760f){let _0x384e25=this[_0x6d195(0x37f)](_0x4fa4e2[_0x6d195(0x46b)],_0x52204a||0x0,_0x1a1b61||0x0,_0x4fa4e2[_0x6d195(0x502)]);if(!_0x384e25)return;this[_0x6d195(0x227)]=_0x384e25[_0x6d195(0x41a)]();}let _0x430c51=this[_0x6d195(0x227)];if(!(!_0x430c51||_0x430c51[_0x6d195(0x28f)]===0x0))for(let _0x1ebb1d=0x0;_0x1ebb1d<_0x430c51[_0x6d195(0x28f)];_0x1ebb1d++){let _0x2b6ded=_0x430c51[_0x1ebb1d],_0xb05f42=_0x2b6ded['x'],_0x177a15=_0x2b6ded['y'];if(_0x3412c0&&(_0xb05f42=(_0x52204a||0x0)-_0xb05f42),_0x38e83d&&(_0x177a15=(_0x1a1b61||0x0)-_0x177a15),_0x44f51f!==0x0){let _0x8bb71e=(_0x52204a||0x0)/0x2,_0x231de8=(_0x1a1b61||0x0)/0x2,_0x477e70=_0x44f51f*Math['PI']/0xb4,_0x50932a=Math[_0x6d195(0x344)](_0x477e70),_0x456736=Math[_0x6d195(0x4e1)](_0x477e70),_0x311a0f=_0xb05f42-_0x8bb71e,_0x4b33c8=_0x177a15-_0x231de8;_0xb05f42=_0x8bb71e+(_0x311a0f*_0x50932a-_0x4b33c8*_0x456736),_0x177a15=_0x231de8+(_0x311a0f*_0x456736+_0x4b33c8*_0x50932a);}let _0x51ab21={'x':_0xb05f42,'y':_0x177a15,'adjName':_0x2b6ded['adjName']};this[_0x6d195(0x1f8)](_0x4f4b5e,_0x51ab21,_0x51ab21[_0x6d195(0x259)],_0x1f8265,_0x351b79,this['_unitId'],this[_0x6d195(0x489)]);}}[_0x209063(0x1f8)](_0x101d04,_0x19de21,_0x45e929,_0x16543a,_0xb9ff6b,_0x5e1df9,_0x43f777){const _0x28bd76=_0x209063;if(!this[_0x28bd76(0x4dc)])return;let _0x4cfc87=_0x28bd76(0x3f1)+this[_0x28bd76(0x4dc)]+'-'+_0x45e929,_0x3023c2=_0x101d04[_0x28bd76(0x22b)](_0x4cfc87);if(_0x3023c2){_0x3023c2[_0x28bd76(0x462)]({'left':_0x19de21['x']+_0x16543a-_0x5b6709[_0x28bd76(0x389)]['adjHandleSize'],'top':_0x19de21['y']+_0xb9ff6b-_0x5b6709['ShapeDefaultConfig'][_0x28bd76(0x3fe)]});return;}let _0x383f09=new _0xa97e9e(_0x4cfc87,{'left':_0x19de21['x']+_0x16543a-_0x5b6709[_0x28bd76(0x389)]['adjHandleSize'],'top':_0x19de21['y']+_0xb9ff6b-_0x5b6709[_0x28bd76(0x389)][_0x28bd76(0x3fe)],'adjName':_0x45e929,'shapeId':this[_0x28bd76(0x4dc)],'unitId':_0x5e1df9,'subUnitId':_0x43f777,'width':_0x5b6709[_0x28bd76(0x389)][_0x28bd76(0x3fe)]+0x8,'height':_0x5b6709['ShapeDefaultConfig'][_0x28bd76(0x3fe)]+0x8,'zIndex':_0x40dd84['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this['_shapes']['push'](_0x383f09),this[_0x28bd76(0x487)](_0x383f09,_0x101d04,_0x45e929),_0x101d04['addObject'](_0x383f09,_0x40dd84[_0x28bd76(0x27f)]+0x1);}[_0x209063(0x20a)](){const _0x575711=_0x209063;this['_shapes'][_0x575711(0x28f)]!==0x0&&(this['_shapes'][_0x575711(0x250)](_0x5e91c6=>_0x5e91c6[_0x575711(0x46a)]()),this[_0x575711(0x461)]=[]);}[_0x209063(0x2a8)](_0x27768e,_0x38b415){const _0x1adc9c=_0x209063;var _0x3ca44b;let _0x55ce64={'x':0x0,'y':0x0},_0x4eded1=this[_0x1adc9c(0x40d)][_0x1adc9c(0x2f7)](_0x27768e);if(!_0x4eded1||!_0x4eded1['with'](_0x100e66[_0x1adc9c(0x242)])['getSkeleton'](_0x38b415))return _0x55ce64;let _0x33e58c=_0x4eded1[_0x1adc9c(0x451)](_0x100e66[_0x1adc9c(0x200)]),_0x3b94d8=_0x33e58c==null?void 0x0:_0x33e58c[_0x1adc9c(0x373)]();if(!_0x3b94d8)return _0x55ce64;let _0x3b3475=(_0x3ca44b=this[_0x1adc9c(0x2be)][_0x1adc9c(0x22d)](_0x27768e))==null?void 0x0:_0x3ca44b[_0x1adc9c(0x366)](_0x38b415);if(!_0x3b3475)return _0x55ce64;let _0x596b4f=(0x0,_0x100e66['getViewportByCell'])(_0x3b94d8[_0x1adc9c(0x230)],_0x3b94d8[_0x1adc9c(0x477)],_0x4eded1[_0x1adc9c(0x349)],_0x3b3475);return _0x596b4f?{'x':_0x596b4f[_0x1adc9c(0x1db)],'y':_0x596b4f[_0x1adc9c(0x2da)]}:_0x55ce64;}[_0x209063(0x29c)](_0x128d4a,_0x1d8723){const _0x2b27dd=_0x209063;var _0x50399b,_0x536343;let _0x21be48=(_0x50399b=this[_0x2b27dd(0x2be)][_0x2b27dd(0x22d)](_0x128d4a))==null?void 0x0:_0x50399b[_0x2b27dd(0x366)](_0x1d8723);return(_0x536343=_0x21be48==null?void 0x0:_0x21be48[_0x2b27dd(0x350)]())==null?0x1:_0x536343;}[_0x209063(0x487)](_0x430afd,_0x1103a0,_0x2c18ab){const _0x51da9b=_0x209063;this[_0x51da9b(0x3df)]((0x0,_0x49d30a[_0x51da9b(0x2d2)])(_0x430afd[_0x51da9b(0x222)][_0x51da9b(0x35a)]((_0x1f8aca,_0x2b91fe)=>{const _0x37e60e=_0x51da9b;var _0x297682,_0x562998,_0x35d40d;let {unitId:_0x62ec61,subUnitId:_0x17c4e6,drawingId:_0x66e74c}=_0x430afd[_0x37e60e(0x36c)](),_0x379524=this[_0x37e60e(0x303)](_0x62ec61,_0x17c4e6,_0x66e74c);if(!(_0x379524!=null&&_0x379524['transform']))return;let {left:_0x333743,top:_0x36273b,width:_0x2365a0,height:_0x2a73e4}=_0x379524[_0x37e60e(0x267)];this['_baseLeft']=_0x333743||0x0,this[_0x37e60e(0x3d1)]=_0x36273b||0x0,this[_0x37e60e(0x335)]=_0x2365a0||0x0,this[_0x37e60e(0x312)]=_0x2a73e4||0x0;let _0x43073b=!!((_0x297682=_0x379524[_0x37e60e(0x267)])!=null&&_0x297682[_0x37e60e(0x2d8)]),_0x34b44d=!!((_0x562998=_0x379524[_0x37e60e(0x267)])!=null&&_0x562998['flipY']),_0x33d7d4=((_0x35d40d=_0x379524[_0x37e60e(0x267)])==null?void 0x0:_0x35d40d[_0x37e60e(0x43d)])||0x0,_0x37cb79=this[_0x37e60e(0x2aa)](_0x62ec61,_0x17c4e6,_0x66e74c);if(!_0x37cb79)return;let _0x5d3752=this['_getOrCreateShapeModel'](_0x37cb79[_0x37e60e(0x46b)],this[_0x37e60e(0x335)],this[_0x37e60e(0x312)],_0x37cb79[_0x37e60e(0x502)]);if(!_0x5d3752||(this[_0x37e60e(0x23a)]=_0x5d3752,this[_0x37e60e(0x44d)]=_0x5d3752[_0x37e60e(0x4dd)](_0x2c18ab),!this['_activeAdjustInfo']))return;this[_0x37e60e(0x278)]=!0x0,_0x1103a0[_0x37e60e(0x202)]();let _0x5f10cc=_0x37cb79[_0x37e60e(0x46b)];this['_adjHandlerPointerMove']=_0x1103a0[_0x37e60e(0x468)]['subscribeEvent']((_0x3bc869,_0x40498a)=>{const _0x5d881e=_0x37e60e;if(!this['_isStartAdjusting'])return;let {offsetX:_0x9ff36b,offsetY:_0x361835}=_0x3bc869,_0x252506=this['_activeAdjustInfo'];if(!this[_0x5d881e(0x23a)]||!_0x252506)return;_0x1103a0[_0x5d881e(0x202)](),_0x1103a0[_0x5d881e(0x248)](_0x40dd84[_0x5d881e(0x223)][_0x5d881e(0x317)]);let _0x8dd332={'left':0x0,'top':0x0,'width':this[_0x5d881e(0x335)],'height':this['_baseHeight']},_0x5a8e20=this[_0x5d881e(0x2a8)](_0x62ec61,_0x17c4e6),_0x3f63e5=this[_0x5d881e(0x29c)](_0x62ec61,_0x17c4e6),_0x416deb=_0x9ff36b/_0x3f63e5+_0x5a8e20['x']-this[_0x5d881e(0x4df)],_0x444dec=_0x361835/_0x3f63e5+_0x5a8e20['y']-this[_0x5d881e(0x3d1)];if(_0x33d7d4!==0x0){let _0x38b0a5=this[_0x5d881e(0x335)]/0x2,_0x57ebca=this[_0x5d881e(0x312)]/0x2,_0x16e36d=_0x33d7d4*Math['PI']/0xb4,_0x42160e=Math['cos'](_0x16e36d),_0x4cc53c=Math[_0x5d881e(0x4e1)](_0x16e36d),_0x49a655=_0x416deb-_0x38b0a5,_0x44fcdf=_0x444dec-_0x57ebca;_0x416deb=_0x38b0a5+(_0x49a655*_0x42160e+_0x44fcdf*_0x4cc53c),_0x444dec=_0x57ebca+(-_0x49a655*_0x4cc53c+_0x44fcdf*_0x42160e);}_0x43073b&&(_0x416deb=this[_0x5d881e(0x335)]-_0x416deb),_0x34b44d&&(_0x444dec=this[_0x5d881e(0x312)]-_0x444dec);let _0x3c3e44=this['_activeShapeModel']['calcAdjValue'](_0x8dd332,{'x':_0x416deb,'y':_0x444dec},_0x252506,_0x43073b,_0x34b44d),_0x28fb55=_0x252506[_0x5d881e(0x45d)]||_0x252506[_0x5d881e(0x48a)]||_0x252506[_0x5d881e(0x46d)]||_0x252506['gdRefR'];_0x28fb55!==void 0x0&&(this[_0x5d881e(0x23a)][_0x5d881e(0x45a)](_0x28fb55,_0x3c3e44),this[_0x5d881e(0x23a)][_0x5d881e(0x2c1)]({'width':this[_0x5d881e(0x335)],'height':this['_baseHeight']}),this[_0x5d881e(0x2e3)](_0x62ec61,_0x17c4e6,_0x66e74c,_0x28fb55,_0x3c3e44),this[_0x5d881e(0x227)]=this['_activeShapeModel']['getDrawingPoints'](),this[_0x5d881e(0x44d)]=this[_0x5d881e(0x23a)][_0x5d881e(0x4dd)](_0x2c18ab),this[_0x5d881e(0x387)](),_0x40498a[_0x5d881e(0x2b6)]());}),this[_0x37e60e(0x40f)]=_0x1103a0[_0x37e60e(0x4ab)][_0x37e60e(0x35a)]((_0xfb734f,_0x40b0f0)=>{const _0x17c90d=_0x37e60e;if(this[_0x17c90d(0x318)][_0x17c90d(0x27d)](),this['_adjHandlerPointerUp'][_0x17c90d(0x27d)](),_0x1103a0[_0x17c90d(0x3be)](),this['_activeShapeModel']){let _0x4b3efd=this[_0x17c90d(0x23a)][_0x17c90d(0x3c9)](),_0x4cefbe={};for(let _0x3339e8 of _0x4b3efd){let _0x5d0094=this[_0x17c90d(0x23a)][_0x17c90d(0x213)](_0x3339e8);_0x5d0094!==void 0x0&&(_0x4cefbe[_0x3339e8]=_0x5d0094);}this[_0x17c90d(0x471)][_0x17c90d(0x245)](_0x62ec61,_0x17c4e6,_0x66e74c,_0x5f10cc,_0x4cefbe);}this[_0x17c90d(0x44d)]=void 0x0,this[_0x17c90d(0x23a)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x40b0f0[_0x17c90d(0x2b6)](),_0x1103a0[_0x17c90d(0x4a1)]();}),_0x2b91fe[_0x37e60e(0x2b6)]();})));}[_0x209063(0x2e3)](_0x4cadaa,_0xff72f4,_0x132442,_0x5f5b40,_0x45f58c){const _0x154eb1=_0x209063;let _0x599364=this['_renderManagerService']['getRenderById'](_0x4cadaa);if(!_0x599364)return;let {scene:_0x5db11c}=_0x599364,_0x42648e=(0x0,_0x510035[_0x154eb1(0x3a8)])({'unitId':_0x4cadaa,'subUnitId':_0xff72f4,'drawingId':_0x132442}),_0x1b34c5=_0x5db11c[_0x154eb1(0x229)](_0x42648e);if(_0x1b34c5 instanceof _0x40dd84[_0x154eb1(0x4bb)]){var _0x63b49a;let _0x246f63=(_0x63b49a=_0x1b34c5['prstGeomAdjValues'])==null?{}:_0x63b49a;_0x1b34c5['setPrstGeomAdjValues']({..._0x246f63,[_0x5f5b40]:_0x45f58c}),_0x1b34c5[_0x154eb1(0x25d)](!0x0);}}[_0x209063(0x457)](){const _0x3a7e7e=_0x209063;let _0x7c67ce=this[_0x3a7e7e(0x2be)][_0x3a7e7e(0x26b)](_0x49d30a[_0x3a7e7e(0x276)][_0x3a7e7e(0x295)]);this[_0x3a7e7e(0x3df)](_0x7c67ce[_0x3a7e7e(0x201)]((0x0,_0x230aed[_0x3a7e7e(0x24b)])(_0x85664d=>_0x85664d?_0x85664d[_0x3a7e7e(0x403)][_0x3a7e7e(0x201)]((0x0,_0x230aed[_0x3a7e7e(0x24b)])(_0x48fb12=>{const _0x5aa487=_0x3a7e7e;if(!_0x48fb12)return _0x230aed[_0x5aa487(0x2d0)];let _0x3c579f=_0x85664d[_0x5aa487(0x3bf)](),_0x3c69f7=this[_0x5aa487(0x40d)][_0x5aa487(0x2f7)](_0x3c579f),_0x32acd5=_0x3c69f7==null?void 0x0:_0x3c69f7[_0x5aa487(0x349)];return _0x32acd5?(0x0,_0x230aed['of'])(_0x32acd5):_0x230aed[_0x5aa487(0x2d0)];})):_0x230aed[_0x3a7e7e(0x2d0)]))[_0x3a7e7e(0x4d3)](_0x113fd5=>{const _0x4401c4=_0x3a7e7e;let _0x6a275a=_0x113fd5[_0x4401c4(0x262)]();this[_0x4401c4(0x3df)](_0x113fd5[_0x4401c4(0x468)][_0x4401c4(0x35a)](()=>{const _0x56b0ab=_0x4401c4;this['_isImagePointerDown']&&this[_0x56b0ab(0x20a)]();})),this[_0x4401c4(0x3df)](_0x6a275a[_0x4401c4(0x275)][_0x4401c4(0x4d3)](_0x27daf4=>{const _0x1a24a7=_0x4401c4;let {objects:_0x4a7ec2}=_0x27daf4;if(this[_0x1a24a7(0x387)](),_0x4a7ec2!==null&&_0x4a7ec2[_0x1a24a7(0x3c6)]===0x1){let _0x5d4df1=_0x4a7ec2[_0x1a24a7(0x1e1)]()[_0x1a24a7(0x241)]()[_0x1a24a7(0x2b4)];_0x5d4df1 instanceof _0x40dd84[_0x1a24a7(0x4bb)]&&_0x5d4df1[_0x1a24a7(0x46b)]&&(this[_0x1a24a7(0x386)]=!0x0);}})),this[_0x4401c4(0x3df)](_0x6a275a[_0x4401c4(0x4e8)][_0x4401c4(0x4d3)](()=>{const _0x90b837=_0x4401c4;this['_isImagePointerDown']&&this[_0x90b837(0x20a)]();})),this['disposeWithMe'](_0x113fd5['onPointerUp$'][_0x4401c4(0x35a)](()=>{const _0x5d1511=_0x4401c4;this[_0x5d1511(0x386)]&&(this['_isImagePointerDown']=!0x1,this[_0x5d1511(0x387)]());})),this['disposeWithMe'](_0x6a275a[_0x4401c4(0x4d7)][_0x4401c4(0x4d3)](()=>{const _0x28e6f2=_0x4401c4;if(this[_0x28e6f2(0x30e)]&&this['_subUnitId']&&this[_0x28e6f2(0x4dc)]){let _0x4c3171=this[_0x28e6f2(0x2aa)](this[_0x28e6f2(0x30e)],this[_0x28e6f2(0x489)],this[_0x28e6f2(0x4dc)]);if(_0x4c3171){var _0xff246f,_0x266327;let _0x3e927b=this['_getImageDrawingInfo'](this['_unitId'],this[_0x28e6f2(0x489)],this[_0x28e6f2(0x4dc)]),_0x470914=(_0x3e927b==null||(_0xff246f=_0x3e927b['transform'])==null?void 0x0:_0xff246f[_0x28e6f2(0x3bb)])||0x0,_0x4c4fb3=(_0x3e927b==null||(_0x266327=_0x3e927b[_0x28e6f2(0x267)])==null?void 0x0:_0x266327['height'])||0x0,_0x487991=this[_0x28e6f2(0x37f)](_0x4c3171[_0x28e6f2(0x46b)],_0x470914,_0x4c4fb3,_0x4c3171[_0x28e6f2(0x502)]);_0x487991&&(this[_0x28e6f2(0x227)]=_0x487991[_0x28e6f2(0x41a)](),this[_0x28e6f2(0x20a)](),this['_createControls'](!0x0));}}}));}));}[_0x209063(0x345)](){const _0x3bedf8=_0x209063;this['disposeWithMe'](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x2a6)][_0x3bedf8(0x4d3)](_0x23fc99=>{const _0x141ebd=_0x3bedf8;if(_0x23fc99['length']===0x1){let _0x3ef1ed=_0x23fc99[0x0];if(_0x3ef1ed[_0x141ebd(0x3e8)]===_0x49d30a[_0x141ebd(0x365)][_0x141ebd(0x431)]){let {unitId:_0x1ac214,subUnitId:_0x150313,drawingId:_0x8b56fa}=_0x3ef1ed,_0x4a9687=this[_0x141ebd(0x2aa)](_0x1ac214,_0x150313,_0x8b56fa);if(_0x4a9687){var _0x3ab0a1,_0xd71749;this['_activeImageId']=_0x8b56fa,this['_unitId']=_0x1ac214,this[_0x141ebd(0x489)]=_0x150313;let _0x2a22c5=this[_0x141ebd(0x303)](_0x1ac214,_0x150313,_0x8b56fa),_0xc64be1=(_0x2a22c5==null||(_0x3ab0a1=_0x2a22c5[_0x141ebd(0x267)])==null?void 0x0:_0x3ab0a1[_0x141ebd(0x3bb)])||0x0,_0x377f59=(_0x2a22c5==null||(_0xd71749=_0x2a22c5[_0x141ebd(0x267)])==null?void 0x0:_0xd71749[_0x141ebd(0x498)])||0x0,_0x12853c=this['_getOrCreateShapeModel'](_0x4a9687[_0x141ebd(0x46b)],_0xc64be1,_0x377f59,_0x4a9687['adjustValues']);_0x12853c&&(this[_0x141ebd(0x227)]=_0x12853c[_0x141ebd(0x41a)]()),this[_0x141ebd(0x20a)](),this[_0x141ebd(0x387)](!0x0);}else this['_resetState']();}else this[_0x141ebd(0x3bd)]();}else this[_0x141ebd(0x3bd)]();})),this['disposeWithMe'](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x44c)]['subscribe'](_0x409b80=>{const _0x3ff3db=_0x3bedf8;if(_0x409b80['length']===0x1){let _0x3407a1=_0x409b80[0x0],_0x16d865=this['_drawingManagerService'][_0x3ff3db(0x20c)](_0x3407a1);(_0x16d865==null?void 0x0:_0x16d865['drawingType'])===_0x49d30a[_0x3ff3db(0x365)]['DRAWING_IMAGE']&&this[_0x3ff3db(0x4dc)]===_0x3407a1[_0x3ff3db(0x2e9)]&&(this[_0x3ff3db(0x20a)](),this[_0x3ff3db(0x387)](!0x0));}})),this[_0x3bedf8(0x3df)](this[_0x3bedf8(0x4e5)][_0x3bedf8(0x37d)][_0x3bedf8(0x4d3)](_0x17d8e5=>{const _0x2e25b6=_0x3bedf8;for(let _0x2d5d04 of _0x17d8e5)this[_0x2e25b6(0x4dc)]===_0x2d5d04[_0x2e25b6(0x2e9)]&&this['_resetState']();}));}[_0x209063(0x3bd)](){const _0x2a5ea5=_0x209063;this[_0x2a5ea5(0x4dc)]=null,this[_0x2a5ea5(0x30e)]=null,this[_0x2a5ea5(0x489)]=null,this[_0x2a5ea5(0x227)]=void 0x0,this[_0x2a5ea5(0x20a)]();}};_0x43f6ab=_0x276893([_0x3cbe95(0x1,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x2,(0x0,_0x49d30a['Inject'])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x43d42e))],_0x43f6ab);let _0x19f29c=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x43b4eb,_0x310d98,_0x5dbad4,_0x1a4c60){const _0x8ae9a9=_0x209063;super(),this['_univerInstanceService']=_0x43b4eb,this[_0x8ae9a9(0x501)]=_0x310d98,this[_0x8ae9a9(0x43c)]=_0x5dbad4,this[_0x8ae9a9(0x488)]=_0x1a4c60,this[_0x8ae9a9(0x2a3)]();}[_0x209063(0x2a3)](){this['disposeWithMe'](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x5a4f23=>{const _0x446cc0=_0x45fb;if(_0x5a4f23['id']===_0x4fbea5[_0x446cc0(0x37a)]['id']){let _0x1ad89c=(0x0,_0x4fbea5[_0x446cc0(0x3c0)])(this[_0x446cc0(0x2be)],_0x5a4f23[_0x446cc0(0x2c7)]);if(!_0x1ad89c)return{'redos':[],'undos':[]};let {unitId:_0x5afca4,subUnitId:_0x4ed431}=_0x1ad89c,_0x389c13=this[_0x446cc0(0x43c)]['getDrawingData'](_0x5afca4,_0x4ed431),_0xe6d933=Object[_0x446cc0(0x1e1)](_0x389c13)[_0x446cc0(0x3a4)](_0x2e23ef=>_0x2e23ef['drawingType']===_0x49d30a['DrawingTypeEnum'][_0x446cc0(0x4fe)]);if(_0xe6d933[_0x446cc0(0x28f)]===0x0)return{'redos':[],'undos':[]};let _0x384064=[],_0x20e61b=[];for(let _0x5f6f58=0x0;_0x5f6f58<_0xe6d933[_0x446cc0(0x28f)];_0x5f6f58++){let _0x164d41=_0xe6d933[_0x5f6f58],_0x1241be=this[_0x446cc0(0x488)][_0x446cc0(0x4b2)](_0x164d41[_0x446cc0(0x441)],_0x164d41[_0x446cc0(0x2fe)],_0x164d41[_0x446cc0(0x2e9)]);if(!_0x1241be)continue;let {redo:_0x38d766,undo:_0x59d551,objects:_0x454389}=this[_0x446cc0(0x43c)]['getBatchRemoveOp']([_0x164d41]);_0x384064['push']({'id':_0x4eb2ab['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'shapeId':_0x164d41[_0x446cc0(0x2e9)]}}),_0x384064[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'type':_0x28a390[_0x446cc0(0x3e9)]['REMOVE'],'op':_0x38d766,'objects':_0x454389}}),_0x20e61b[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'type':_0x28a390[_0x446cc0(0x3e9)][_0x446cc0(0x25e)],'op':_0x59d551,'objects':_0x454389}}),_0x20e61b[_0x446cc0(0x3ed)]({'id':_0x4eb2ab[_0x446cc0(0x41b)]['id'],'params':{'unitId':_0x5afca4,'subUnitId':_0x4ed431,'shapeId':_0x164d41[_0x446cc0(0x2e9)],'shapeType':_0x1241be[_0x446cc0(0x4b0)](),'shapeData':JSON[_0x446cc0(0x1e8)](JSON['stringify'](_0x1241be[_0x446cc0(0x224)]()))}});}return{'redos':_0x384064,'undos':_0x20e61b};}else{if(_0x5a4f23['id']===_0x4fbea5[_0x446cc0(0x3b4)]['id']){let {unitId:_0x12dbb3,subUnitId:_0x24924d,targetSubUnitId:_0x4b3be0}=_0x5a4f23[_0x446cc0(0x2c7)];if(!_0x12dbb3||!_0x24924d||!_0x4b3be0)return{'redos':[],'undos':[]};let _0x4063f0=this[_0x446cc0(0x43c)][_0x446cc0(0x2fd)](_0x12dbb3,_0x24924d),_0x3738bb=Object['values'](_0x4063f0)[_0x446cc0(0x3a4)](_0x5ea7b7=>_0x5ea7b7[_0x446cc0(0x3e8)]===_0x49d30a[_0x446cc0(0x365)][_0x446cc0(0x4fe)]);if(_0x3738bb[_0x446cc0(0x28f)]===0x0)return{'redos':[],'undos':[]};let _0x5a130d=[],_0x459ffe=[];for(let _0x32ecd5=0x0;_0x32ecd5<_0x3738bb[_0x446cc0(0x28f)];_0x32ecd5++){let _0x4d9803=_0x3738bb[_0x32ecd5],_0x312501=this['_sheetsShapeService'][_0x446cc0(0x4b2)](_0x4d9803[_0x446cc0(0x441)],_0x4d9803[_0x446cc0(0x2fe)],_0x4d9803[_0x446cc0(0x2e9)]);if(!_0x312501)continue;let _0x5441f8=(0x0,_0x49d30a['generateRandomId'])(),_0x4a8880={..._0x4d9803,'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'drawingId':_0x5441f8},{redo:_0x2e34f0,undo:_0x2df7a4,objects:_0x3ba659}=this['_sheetDrawingService']['getBatchAddOp']([_0x4a8880]);_0x5a130d[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'type':_0x28a390['DrawingApplyType']['INSERT'],'op':_0x2e34f0,'objects':_0x3ba659}}),_0x5a130d[_0x446cc0(0x3ed)]({'id':_0x4eb2ab['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'shapeId':_0x5441f8,'shapeType':_0x312501[_0x446cc0(0x4b0)](),'shapeData':JSON[_0x446cc0(0x1e8)](JSON['stringify'](_0x312501[_0x446cc0(0x224)]()))}}),_0x459ffe[_0x446cc0(0x3ed)]({'id':_0x4eb2ab[_0x446cc0(0x24e)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'shapeId':_0x5441f8}}),_0x459ffe[_0x446cc0(0x3ed)]({'id':_0x28a390[_0x446cc0(0x326)]['id'],'params':{'unitId':_0x12dbb3,'subUnitId':_0x4b3be0,'type':_0x28a390['DrawingApplyType'][_0x446cc0(0x361)],'op':_0x2df7a4,'objects':_0x3ba659}});}return{'redos':_0x5a130d,'undos':_0x459ffe};}}return{'redos':[],'undos':[]};}}));}};_0x19f29c=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x31b)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fbea5[_0x209063(0x3fb)])),_0x3cbe95(0x2,(0x0,_0x49d30a['Inject'])(_0x28a390[_0x209063(0x2b8)])),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)]))],_0x19f29c);let _0x312b3e=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x59ecee,_0x5a4818,_0x1fbbde,_0x30dad6,_0x4cb2c4){const _0x1e0f5c=_0x209063;super(),this['_context']=_0x59ecee,this[_0x1e0f5c(0x325)]=_0x5a4818,this[_0x1e0f5c(0x4e5)]=_0x1fbbde,this[_0x1e0f5c(0x3b1)]=_0x30dad6,this['_sheetsShapeService']=_0x4cb2c4,_0x28368a(this,_0x1e0f5c(0x2d1),null),this['_initEvents'](),this[_0x1e0f5c(0x353)](),this[_0x1e0f5c(0x218)]();}[_0x209063(0x209)](){const _0x3e57af=_0x209063;let {scene:_0x404557}=this['_context'];this['disposeWithMe'](_0x404557[_0x3e57af(0x3d5)]['subscribeEvent'](_0x2c6a1e=>{const _0x488cb3=_0x3e57af;let {offsetX:_0x42fe7e,offsetY:_0xfbd185}=_0x2c6a1e,_0x117679=_0x404557['pick'](_0x40dd84[_0x488cb3(0x371)][_0x488cb3(0x3eb)]([_0x42fe7e,_0xfbd185]));if(_0x117679 instanceof _0x642241){let _0x56e9f1=this[_0x488cb3(0x488)]['getShapeModel'](_0x117679[_0x488cb3(0x441)],_0x117679[_0x488cb3(0x2fe)],_0x117679['shapeId']);if(_0x56e9f1!=null&&_0x56e9f1[_0x488cb3(0x224)]()[_0x488cb3(0x330)]||(0x0,_0x5b6709[_0x488cb3(0x3b5)])(this[_0x488cb3(0x488)][_0x488cb3(0x4b0)](_0x117679['unitId'],_0x117679[_0x488cb3(0x2fe)],_0x117679[_0x488cb3(0x3dc)])))return;this[_0x488cb3(0x325)][_0x488cb3(0x2dd)]({'visible':!0x0,'unitId':_0x117679[_0x488cb3(0x441)],'subUnitId':_0x117679[_0x488cb3(0x2fe)],'shapeId':_0x117679[_0x488cb3(0x3dc)],'shapeKey':_0x117679[_0x488cb3(0x35b)]});}}));}[_0x209063(0x353)](){const _0x1c770f=_0x209063;this[_0x1c770f(0x3df)](this[_0x1c770f(0x4e5)]['focus$'][_0x1c770f(0x4d3)](_0x41faa2=>{const _0x4b0a61=_0x1c770f;if(_0x41faa2[_0x4b0a61(0x28f)]===0x1){let _0x59aabb=_0x41faa2[0x0],_0xfdf60e=this[_0x4b0a61(0x4e5)][_0x4b0a61(0x20c)](_0x59aabb);if((_0xfdf60e==null?void 0x0:_0xfdf60e[_0x4b0a61(0x3e8)])===_0x49d30a[_0x4b0a61(0x365)][_0x4b0a61(0x4fe)]){var _0x4165f8;let _0x4b8c94=this[_0x4b0a61(0x325)][_0x4b0a61(0x247)]();if((_0x4b8c94==null?void 0x0:_0x4b8c94[_0x4b0a61(0x3dc)])===_0x59aabb[_0x4b0a61(0x2e9)]&&_0x4b8c94[_0x4b0a61(0x4b6)])return;let _0x3f7338=(0x0,_0x5b6709[_0x4b0a61(0x3b5)])(this[_0x4b0a61(0x488)]['getShapeType'](_0x59aabb[_0x4b0a61(0x441)],_0x59aabb[_0x4b0a61(0x2fe)],_0x59aabb[_0x4b0a61(0x2e9)])),_0x4a0ea5=!!((_0x4165f8=this['_sheetsShapeService'][_0x4b0a61(0x4b2)](_0x59aabb[_0x4b0a61(0x441)],_0x59aabb[_0x4b0a61(0x2fe)],_0x59aabb[_0x4b0a61(0x2e9)]))!=null&&_0x4165f8[_0x4b0a61(0x224)]()[_0x4b0a61(0x330)]);(_0x3f7338||_0x4a0ea5)&&this[_0x4b0a61(0x325)][_0x4b0a61(0x2dd)](null);}else this[_0x4b0a61(0x325)][_0x4b0a61(0x247)]()&&(this[_0x4b0a61(0x325)][_0x4b0a61(0x404)](!0x0),requestAnimationFrame(()=>{const _0x4f78be=_0x4b0a61;this[_0x4f78be(0x325)][_0x4f78be(0x2dd)](null);}));}else this['_shapeTextEditingService'][_0x4b0a61(0x247)]()&&(this['_shapeTextEditingService']['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x2cd45f=_0x4b0a61;this[_0x2cd45f(0x325)]['setEditing'](null);}));})),this[_0x1c770f(0x3df)](this['_drawingManagerService'][_0x1c770f(0x37d)]['subscribe'](_0x164da1=>{const _0x5470bf=_0x1c770f;let _0x2528a3=this[_0x5470bf(0x325)][_0x5470bf(0x247)]();_0x2528a3&&_0x164da1[_0x5470bf(0x38d)](_0x406042=>_0x406042['drawingId']===_0x2528a3[_0x5470bf(0x3dc)])&&this[_0x5470bf(0x325)][_0x5470bf(0x2dd)](null);}));}[_0x209063(0x218)](){const _0x4cd925=_0x209063;this[_0x4cd925(0x3df)](this[_0x4cd925(0x325)]['editingParams$']['subscribe'](_0x11d71d=>{const _0x6190d3=_0x4cd925;let {scene:_0xb4748}=this[_0x6190d3(0x22e)];if(this[_0x6190d3(0x2d1)]){let _0x48667d=_0xb4748['getObjectIncludeInGroup'](this['_lastEditingShapeKey']);_0x48667d&&_0x48667d[_0x6190d3(0x2dd)](!0x1);}if(_0x11d71d){let _0x4f4a25=!!_0x11d71d[_0x6190d3(0x4b6)],_0x45240b=_0xb4748[_0x6190d3(0x22b)](_0x11d71d[_0x6190d3(0x3ea)]);_0x45240b&&(_0x45240b['setEditing'](_0x4f4a25),this['_lastEditingShapeKey']=_0x11d71d[_0x6190d3(0x3ea)]),this[_0x6190d3(0x3b1)]['setContextValue'](_0x49d30a['FOCUSING_SHAPE_TEXT_EDITOR'],_0x4f4a25);}else this[_0x6190d3(0x2d1)]=null,this[_0x6190d3(0x3b1)][_0x6190d3(0x29d)](_0x49d30a[_0x6190d3(0x284)],!0x1);}));}};_0x312b3e=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x3da7be)),_0x3cbe95(0x2,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x4f6)]),_0x3cbe95(0x4,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)]))],_0x312b3e);let _0x24a7bf=class extends _0xa40d9e[_0x209063(0x408)]{constructor(_0x679e4e,_0x156030,_0x321e30,_0x54016d){super(_0x679e4e,_0x156030,_0x321e30,_0x54016d,{'componentKey':_0x3c71d3,'editorUnitId':_0x1e912e});}};_0x24a7bf=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x2bba01['DocSelectionManagerService'])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x31dab3[_0x209063(0x396)])),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x31dab3[_0x209063(0x3a3)]))],_0x24a7bf);let _0x2d94be=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0xcd583c,_0x479b16,_0x119e85,_0x359e00,_0x118804,_0x541e64){const _0x1843ed=_0x209063;super(),this[_0x1843ed(0x240)]=_0xcd583c,this[_0x1843ed(0x40d)]=_0x479b16,this[_0x1843ed(0x4e5)]=_0x119e85,this[_0x1843ed(0x4f1)]=_0x359e00,this[_0x1843ed(0x3ce)]=_0x118804,this[_0x1843ed(0x4af)]=_0x541e64,_0x28368a(this,_0x1843ed(0x4fc),new Set()),this[_0x1843ed(0x47c)]();}[_0x209063(0x47c)](){const _0x16596c=_0x209063;this[_0x16596c(0x4da)](),this[_0x16596c(0x289)](),this['_shapeUpdateListener']();}[_0x209063(0x4da)](){const _0x200fc5=_0x209063;this[_0x200fc5(0x3df)](this[_0x200fc5(0x4e5)][_0x200fc5(0x306)][_0x200fc5(0x4d3)](_0x395ef3=>{const _0x25b40f=_0x200fc5;this[_0x25b40f(0x3f2)](_0x395ef3);}));}[_0x209063(0x289)](){const _0x12796b=_0x209063;this['disposeWithMe'](this[_0x12796b(0x240)][_0x12796b(0x4cc)](_0x4d88e1=>{const _0x3c3a58=_0x12796b;if(_0x4d88e1['id']===_0x4eb2ab['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x147b4b,subUnitId:_0x329b38,shapeId:_0x38f8ba}=_0x4d88e1[_0x3c3a58(0x2c7)],_0x26c3f4=this[_0x3c3a58(0x372)](_0x147b4b),_0xb549d3=(0x0,_0x510035[_0x3c3a58(0x3a8)])({'unitId':_0x147b4b,'subUnitId':_0x329b38,'drawingId':_0x38f8ba}),_0x11df5e=_0x26c3f4==null?void 0x0:_0x26c3f4['scene'][_0x3c3a58(0x22b)](_0xb549d3);_0x11df5e&&(this[_0x3c3a58(0x4af)][_0x3c3a58(0x221)](_0x11df5e),this[_0x3c3a58(0x4af)]['refreshFormulaPresentation'](_0x11df5e,{'unitId':_0x147b4b,'subUnitId':_0x329b38,'shapeId':_0x38f8ba}),_0x11df5e[_0x3c3a58(0x25d)](!0x0));return;}if(_0x4d88e1['id']===_0x4eb2ab['InsertSheetsShapeMutation']['id']){var _0x2a71b0;let {unitId:_0x33f067,subUnitId:_0x38b1dd,shapeId:_0x5b9628}=_0x4d88e1[_0x3c3a58(0x2c7)],_0x41b954=this[_0x3c3a58(0x372)](_0x33f067);if(_0x41b954==null)return;let {scene:_0x51a9b0}=_0x41b954,_0x22ebcb=(0x0,_0x510035[_0x3c3a58(0x3a8)])({'unitId':_0x33f067,'subUnitId':_0x38b1dd,'drawingId':_0x5b9628}),_0x39ea5b=_0x51a9b0['getObjectIncludeInGroup'](_0x22ebcb);if(!((_0x2a71b0=this['_renderManagerService']['getRenderById'](_0x33f067))!=null&&_0x2a71b0[_0x3c3a58(0x451)](_0x100e66[_0x3c3a58(0x242)])[_0x3c3a58(0x2d9)](_0x38b1dd)))return!0x1;if(_0x39ea5b)return;this[_0x3c3a58(0x3f2)]([{'unitId':_0x33f067,'subUnitId':_0x38b1dd,'drawingId':_0x5b9628}]);}}));}[_0x209063(0x2c0)](){const _0x48261d=_0x209063;this[_0x48261d(0x3df)](this[_0x48261d(0x4e5)][_0x48261d(0x44c)]['subscribe'](_0x2f3215=>{const _0x4292a9=_0x48261d;_0x2f3215[_0x4292a9(0x250)](_0x445b13=>{const _0xacf65d=_0x4292a9;let {unitId:_0x2cfa8a,subUnitId:_0x11c347,drawingId:_0x36f31d}=_0x445b13,_0x386daf=this[_0xacf65d(0x4e5)][_0xacf65d(0x20c)](_0x445b13);if(_0x386daf==null)return;let {transform:_0xd750f2,drawingType:_0x598c6d,srcRect:_0x99e764,prstGeom:_0x12cab}=_0x386daf;if(_0x598c6d!==_0x49d30a['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x2fb0e9=this[_0xacf65d(0x372)](_0x2cfa8a);if(_0x2fb0e9==null)return;let {scene:_0x3e3fa1,transformer:_0xd1011c}=_0x2fb0e9;if(_0xd750f2==null)return!0x0;let _0x162b3d=(0x0,_0x510035[_0xacf65d(0x3a8)])({'unitId':_0x2cfa8a,'subUnitId':_0x11c347,'drawingId':_0x36f31d}),_0x654b8f=_0x3e3fa1[_0xacf65d(0x22b)](_0x162b3d);if(_0x654b8f==null)return!0x0;_0x654b8f[_0xacf65d(0x32e)](_0x99e764),_0x654b8f['setPrstGeom'](_0x12cab);});}));}[_0x209063(0x3f2)](_0x298eab){const _0x5dfe0e=_0x209063;for(let _0x3ad709 of _0x298eab){var _0x211f88;let {unitId:_0x3a7aa8,subUnitId:_0x1d34a5,drawingId:_0x3c25c5}=_0x3ad709,_0x7f9d92=this[_0x5dfe0e(0x372)](_0x3a7aa8),_0x19ac49=(_0x211f88=(0x0,_0xceb6c3[_0x5dfe0e(0x1eb)])(this[_0x5dfe0e(0x4f1)],_0x3a7aa8))==null?void 0x0:_0x211f88[_0x5dfe0e(0x2fe)];if(_0x7f9d92==null||_0x19ac49!==_0x1d34a5)return;let _0xaf7e2b=(0x0,_0x510035[_0x5dfe0e(0x3a8)])({'unitId':_0x3a7aa8,'subUnitId':_0x1d34a5,'drawingId':_0x3c25c5});if(this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x38c)](_0xaf7e2b)||_0x7f9d92[_0x5dfe0e(0x349)][_0x5dfe0e(0x22b)](_0xaf7e2b)!=null)return;let _0x5c19d9=this['_drawingManagerService'][_0x5dfe0e(0x20c)](_0x3ad709);if(_0x5c19d9==null||_0x5c19d9[_0x5dfe0e(0x3e8)]!==_0x49d30a[_0x5dfe0e(0x365)][_0x5dfe0e(0x4fe)])return;if((0x0,_0x5b6709[_0x5dfe0e(0x3b5)])((_0x5c19d9['data']||{})['shapeType'])){let _0x5ba9e1=_0x5c19d9[_0x5dfe0e(0x267)];_0x5ba9e1&&(_0x5c19d9[_0x5dfe0e(0x267)]={..._0x5ba9e1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x449)](_0xaf7e2b);try{this[_0x5dfe0e(0x4af)]['renderDrawingShape'](_0x5c19d9,_0x7f9d92['scene']);}finally{this[_0x5dfe0e(0x4fc)][_0x5dfe0e(0x425)](_0xaf7e2b);}queueMicrotask(()=>{const _0x3d8522=_0x5dfe0e;if(this[_0x3d8522(0x22c)])return;let _0x17ce2b=(0x0,_0x510035[_0x3d8522(0x3a8)])(_0x3ad709);if(!_0x7f9d92['scene'][_0x3d8522(0x22b)](_0x17ce2b))return;let _0x25b10b=this['_drawingManagerService'][_0x3d8522(0x20c)](_0x3ad709);_0x25b10b&&this['_drawingManagerService']['refreshTransform']([_0x25b10b]);});}}[_0x209063(0x372)](_0x2f1ad1){const _0x48af94=_0x209063;if(_0x2f1ad1==null)return;let _0x1067d1=this[_0x48af94(0x40d)][_0x48af94(0x2f7)](_0x2f1ad1),_0x6f6a1=_0x1067d1==null?void 0x0:_0x1067d1[_0x48af94(0x349)];return _0x6f6a1==null?null:{'scene':_0x6f6a1,'transformer':_0x6f6a1[_0x48af94(0x262)]()};}};_0x2d94be=_0x276893([_0x3cbe95(0x0,_0x49d30a[_0x209063(0x4c5)]),_0x3cbe95(0x1,_0x40dd84['IRenderManagerService']),_0x3cbe95(0x2,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x3,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0xceb6c3[_0x209063(0x300)])),_0x3cbe95(0x5,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5))],_0x2d94be);let _0x4ac129={'normal':{'fill':_0x5b6709[_0x209063(0x389)]['cxnPointFill'],'stroke':_0x5b6709[_0x209063(0x389)][_0x209063(0x210)],'strokeWidth':_0x5b6709[_0x209063(0x389)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x209063(0x3cb),'stroke':_0x209063(0x28a),'strokeWidth':0x2}};var _0x29516a=class extends _0x40dd84['Shape']{constructor(_0xe536b8,_0x3365bc){const _0x137731=_0x209063;super(_0xe536b8,_0x3365bc),_0x28368a(this,'_targetShapeId',''),_0x28368a(this,_0x137731(0x3d7),-0x1),_0x28368a(this,_0x137731(0x30e),''),_0x28368a(this,_0x137731(0x489),''),_0x28368a(this,_0x137731(0x3d4),!0x1),_0x3365bc&&this[_0x137731(0x215)](_0x3365bc);}[_0x209063(0x324)](){const _0xd3b465=_0x209063;return{'unitId':this[_0xd3b465(0x30e)],'subUnitId':this[_0xd3b465(0x489)],'shapeId':this[_0xd3b465(0x459)],'cxnIndex':this['_cxnIndex']};}[_0x209063(0x2d5)](_0x18eb0a){const _0x100b37=_0x209063;this[_0x100b37(0x3d4)]!==_0x18eb0a&&(this[_0x100b37(0x3d4)]=_0x18eb0a,this[_0x100b37(0x25d)](!0x0));}[_0x209063(0x3ca)](){const _0x2a7898=_0x209063;return this[_0x2a7898(0x3d4)];}[_0x209063(0x215)](_0x22d364){const _0x27a5f3=_0x209063;var _0x2288bc,_0x2d9c57;_0x22d364[_0x27a5f3(0x394)]!==void 0x0&&(this[_0x27a5f3(0x459)]=_0x22d364['targetShapeId']),_0x22d364[_0x27a5f3(0x499)]!==void 0x0&&(this[_0x27a5f3(0x3d7)]=_0x22d364[_0x27a5f3(0x499)]),_0x22d364['unitId']!==void 0x0&&(this[_0x27a5f3(0x30e)]=_0x22d364[_0x27a5f3(0x441)]),_0x22d364['subUnitId']!==void 0x0&&(this[_0x27a5f3(0x489)]=_0x22d364['subUnitId']),_0x22d364['isHighlighted']!==void 0x0&&(this[_0x27a5f3(0x3d4)]=_0x22d364[_0x27a5f3(0x3ca)]),this[_0x27a5f3(0x462)]({'width':(_0x2288bc=_0x22d364[_0x27a5f3(0x3bb)])==null?_0x5b6709['ShapeDefaultConfig'][_0x27a5f3(0x1f6)]*0x2:_0x2288bc,'height':(_0x2d9c57=_0x22d364[_0x27a5f3(0x498)])==null?_0x5b6709[_0x27a5f3(0x389)]['cxnPointRadius']*0x2:_0x2d9c57});}[_0x209063(0x2a9)](_0x71c0f6){const _0x34c0d0=_0x209063;let _0x5055d4=this['_isHighlighted']?_0x4ac129[_0x34c0d0(0x414)]:_0x4ac129['normal'];_0x40dd84[_0x34c0d0(0x3f8)]['drawWith'](_0x71c0f6,{'radius':_0x5b6709[_0x34c0d0(0x389)]['cxnPointRadius'],'fill':_0x5055d4[_0x34c0d0(0x3b7)],'stroke':_0x5055d4['stroke'],'strokeWidth':_0x5055d4[_0x34c0d0(0x48f)],'evented':!0x0});}};let _0x2b6d77=class extends _0x49d30a['Disposable']{constructor(_0x2f2c58,_0x56b36e,_0x2f1c38,_0x4abc1f){const _0x254f62=_0x209063;super(),this[_0x254f62(0x22e)]=_0x2f2c58,this['_renderManagerService']=_0x56b36e,this[_0x254f62(0x4e5)]=_0x2f1c38,this['_sheetsShapeService']=_0x4abc1f,_0x28368a(this,_0x254f62(0x265),[]),_0x28368a(this,_0x254f62(0x234),null),_0x28368a(this,_0x254f62(0x4ed),-0x1),_0x28368a(this,'_currentScene',null),_0x28368a(this,_0x254f62(0x30e),''),_0x28368a(this,_0x254f62(0x489),''),_0x28368a(this,_0x254f62(0x4f2),null);}[_0x209063(0x3b0)](_0xc35e58,_0x29127b,_0x536b4e,_0x38af96){const _0x2a9c7a=_0x209063;this[_0x2a9c7a(0x21a)]=_0xc35e58,this[_0x2a9c7a(0x30e)]=_0x29127b,this[_0x2a9c7a(0x489)]=_0x536b4e,this[_0x2a9c7a(0x4f2)]=_0x38af96;}[_0x209063(0x3fa)](_0x40da7b){const _0x252ceb=_0x209063;if(!this['_currentScene'])return null;let _0x2788a4=this[_0x252ceb(0x2d6)](_0x40da7b);return _0x2788a4?(this[_0x252ceb(0x234)]!==_0x2788a4[_0x252ceb(0x3dc)]&&(this[_0x252ceb(0x3ab)](),this['_showConnectionSites'](_0x2788a4[_0x252ceb(0x3dc)],_0x2788a4['shapeModel']),this[_0x252ceb(0x234)]=_0x2788a4['shapeId']),this[_0x252ceb(0x4e4)](_0x40da7b)):(this[_0x252ceb(0x234)]!==null&&(this[_0x252ceb(0x3ab)](),this['_activeTargetShapeId']=null),null);}[_0x209063(0x4ec)](){const _0x40ca17=_0x209063;this[_0x40ca17(0x3ab)](),this[_0x40ca17(0x21a)]=null,this['_activeTargetShapeId']=null,this[_0x40ca17(0x4ed)]=-0x1,this['_draggingConnectorId']=null;}[_0x209063(0x3a1)](){const _0x31d899=_0x209063;return this[_0x31d899(0x234)]===null||this[_0x31d899(0x4ed)]<0x0?null:{'shapeId':this[_0x31d899(0x234)],'cxnIndex':this['_highlightedSiteIndex']};}[_0x209063(0x2d6)](_0xf26251){const _0x513214=_0x209063;let _0x3e0b6a=this[_0x513214(0x4e5)][_0x513214(0x2fd)](this['_unitId'],this['_subUnitId']);for(let _0x39a9a4 of Object[_0x513214(0x1ea)](_0x3e0b6a)){if(_0x39a9a4===this[_0x513214(0x4f2)]||_0x3e0b6a[_0x39a9a4][_0x513214(0x3e8)]!==_0x49d30a[_0x513214(0x365)][_0x513214(0x4fe)])continue;let _0x31c511=this[_0x513214(0x488)]['getShapeModel'](this[_0x513214(0x30e)],this[_0x513214(0x489)],_0x39a9a4);if(!_0x31c511||(0x0,_0x5b6709['isConnectorShape'])(_0x31c511['getShapeType']())||_0x31c511[_0x513214(0x42e)]()['length']===0x0||!this['_currentScene'])continue;let _0x9ac74d=(0x0,_0x510035[_0x513214(0x3a8)])({'unitId':this[_0x513214(0x30e)],'subUnitId':this[_0x513214(0x489)],'drawingId':_0x39a9a4}),_0x4e7c62=this[_0x513214(0x21a)][_0x513214(0x22b)](_0x9ac74d);if(!_0x4e7c62)continue;let {left:_0x4b0829,top:_0x3603a5,width:_0x3b7641,height:_0x557b71}=_0x4e7c62[_0x513214(0x254)](),_0x55b89a=_0x4b0829+_0x3b7641/0x2,_0x5bc6a5=_0x3603a5+_0x557b71/0x2,_0x1222dd=_0x4e7c62[_0x513214(0x267)]['getMatrix'](),_0x38fb35=new _0x40dd84[(_0x513214(0x1d3))]([_0x1222dd[0x0],_0x1222dd[0x1],_0x1222dd[0x2],_0x1222dd[0x3],_0x55b89a,_0x5bc6a5]),_0x309228=_0x4e7c62['getParent'](),_0x60abb4=(_0x4e7c62[_0x513214(0x2ed)]&&(_0x309228==null?void 0x0:_0x309228[_0x513214(0x2ff)])===_0x40dd84[_0x513214(0x3ae)][_0x513214(0x4bf)]?_0x309228['ancestorTransform']['multiply'](_0x38fb35):_0x38fb35)[_0x513214(0x3c8)]()[_0x513214(0x400)](_0xf26251),_0x25c4ce=_0x3b7641/0x2,_0x5b11ae=_0x557b71/0x2;if(_0x60abb4['x']>=-_0x25c4ce-0x5&&_0x60abb4['x']<=_0x25c4ce+0x5&&_0x60abb4['y']>=-_0x5b11ae-0x5&&_0x60abb4['y']<=_0x5b11ae+0x5)return{'shapeId':_0x39a9a4,'shapeModel':_0x31c511};}return null;}[_0x209063(0x34a)](_0x16f1fb,_0x52f5da){const _0x485bbb=_0x209063;if(!this['_currentScene'])return;let _0x3bb534=(0x0,_0x510035[_0x485bbb(0x3a8)])({'unitId':this[_0x485bbb(0x30e)],'subUnitId':this['_subUnitId'],'drawingId':_0x16f1fb}),_0x2bfb0e=this['_currentScene'][_0x485bbb(0x22b)](_0x3bb534);if(!_0x2bfb0e)return;let {left:_0x26c30a,top:_0x59de61,width:_0x8d656,height:_0x580757}=_0x2bfb0e['getRealBound'](),_0x3e99fe=_0x26c30a+_0x8d656/0x2,_0x3e4a67=_0x59de61+_0x580757/0x2,_0x225862=_0x2bfb0e[_0x485bbb(0x267)]['getMatrix'](),_0x50e844=new _0x40dd84[(_0x485bbb(0x1d3))]([_0x225862[0x0],_0x225862[0x1],_0x225862[0x2],_0x225862[0x3],_0x3e99fe,_0x3e4a67]),_0x4c60a2=_0x2bfb0e[_0x485bbb(0x49d)](),_0x4ccdc0=_0x2bfb0e[_0x485bbb(0x2ed)]&&(_0x4c60a2==null?void 0x0:_0x4c60a2[_0x485bbb(0x2ff)])===_0x40dd84[_0x485bbb(0x3ae)][_0x485bbb(0x4bf)]?_0x4c60a2[_0x485bbb(0x2c6)]['multiply'](_0x50e844):_0x50e844;_0x52f5da[_0x485bbb(0x2c1)]({'width':_0x8d656,'height':_0x580757});let _0x273632=_0x52f5da['getConnectionSiteList']();for(let _0x19d144 of _0x273632){let _0x501a15=_0x19d144['x']-_0x8d656/0x2,_0x5b0207=_0x19d144['y']-_0x580757/0x2,_0x267320=_0x4ccdc0[_0x485bbb(0x400)]({'x':_0x501a15,'y':_0x5b0207}),_0xd863b=_0x267320['x'],_0x325180=_0x267320['y'],_0x5bd524=new _0x29516a(_0x485bbb(0x272)+_0x16f1fb+'-'+_0x19d144[_0x485bbb(0x1d9)],{'left':_0xd863b-_0x5b6709['ShapeDefaultConfig'][_0x485bbb(0x1f6)],'top':_0x325180-_0x5b6709[_0x485bbb(0x389)]['cxnPointRadius'],'targetShapeId':_0x16f1fb,'cxnIndex':_0x19d144[_0x485bbb(0x1d9)],'unitId':this[_0x485bbb(0x30e)],'subUnitId':this[_0x485bbb(0x489)],'width':_0x5b6709[_0x485bbb(0x389)][_0x485bbb(0x1f6)]*0x2,'height':_0x5b6709[_0x485bbb(0x389)][_0x485bbb(0x1f6)]*0x2,'zIndex':_0x40dd84[_0x485bbb(0x27f)]+0x2,'evented':!0x1});this[_0x485bbb(0x265)]['push'](_0x5bd524),this[_0x485bbb(0x21a)][_0x485bbb(0x1dd)](_0x5bd524,_0x40dd84[_0x485bbb(0x27f)]+0x2);}}[_0x209063(0x4e4)](_0x34b3a7){const _0x1aad81=_0x209063;let _0x58cb41=null,_0x951ca8=0x1/0x0,_0x342f53=null;for(let _0x2c3469 of this[_0x1aad81(0x265)]){let _0x1ea3a2=_0x2c3469[_0x1aad81(0x4d2)]+_0x5b6709[_0x1aad81(0x389)][_0x1aad81(0x1f6)],_0x5634ef=_0x2c3469['top']+_0x5b6709['ShapeDefaultConfig']['cxnPointRadius'],_0x222586=_0x34b3a7['x']-_0x1ea3a2,_0x107b66=_0x34b3a7['y']-_0x5634ef,_0x1c1053=Math['sqrt'](_0x222586*_0x222586+_0x107b66*_0x107b66);_0x1c1053<_0x951ca8&&(_0x951ca8=_0x1c1053,_0x58cb41=_0x2c3469,_0x342f53={'x':_0x1ea3a2,'y':_0x5634ef});}let _0x9fee74=_0x951ca8<=0xa&&_0x58cb41?_0x58cb41[_0x1aad81(0x324)]()['cxnIndex']:-0x1;if(_0x9fee74!==this[_0x1aad81(0x4ed)]){for(let _0x1499f6 of this['_connectionSiteObjects']){let _0x2518ac=_0x1499f6[_0x1aad81(0x324)]();_0x1499f6[_0x1aad81(0x2d5)](_0x2518ac[_0x1aad81(0x499)]===_0x9fee74);}this[_0x1aad81(0x4ed)]=_0x9fee74;}if(_0x951ca8<=0xa&&_0x58cb41&&_0x342f53){let _0x2cc85f=_0x58cb41[_0x1aad81(0x324)](),_0x4244dc=this[_0x1aad81(0x4fd)](_0x2cc85f[_0x1aad81(0x3dc)],_0x2cc85f['cxnIndex']);return{'shapeId':_0x2cc85f[_0x1aad81(0x3dc)],'cxnIndex':_0x2cc85f['cxnIndex'],'unitId':_0x2cc85f[_0x1aad81(0x441)],'subUnitId':_0x2cc85f[_0x1aad81(0x2fe)],'worldPoint':_0x342f53,'angle':_0x4244dc};}return null;}[_0x209063(0x4fd)](_0x4eaf48,_0x7718a0){const _0x1a4b00=_0x209063;let _0x25774c=this[_0x1a4b00(0x488)][_0x1a4b00(0x4b2)](this[_0x1a4b00(0x30e)],this[_0x1a4b00(0x489)],_0x4eaf48);if(!_0x25774c)return 0x0;let _0x2ef041=this[_0x1a4b00(0x4e5)][_0x1a4b00(0x20c)]({'unitId':this[_0x1a4b00(0x30e)],'subUnitId':this[_0x1a4b00(0x489)],'drawingId':_0x4eaf48});if(!(_0x2ef041!=null&&_0x2ef041[_0x1a4b00(0x267)]))return 0x0;let {width:_0x39482b=0x0,height:_0xd979d7=0x0,flipX:_0xf1f972=!0x1,flipY:_0x67e19c=!0x1}=_0x2ef041['transform'];_0x25774c[_0x1a4b00(0x2c1)]({'width':_0x39482b,'height':_0xd979d7});let _0x23128b=_0x25774c[_0x1a4b00(0x42e)]()[_0x1a4b00(0x2bd)](_0x4f6b68=>_0x4f6b68[_0x1a4b00(0x1d9)]===_0x7718a0);if(!_0x23128b)return 0x0;let _0x1c1108=_0x23128b['ang']/0xea60;return _0xf1f972&&(_0x1c1108=0xb4-_0x1c1108),_0x67e19c&&(_0x1c1108=-_0x1c1108),_0x1c1108=(_0x1c1108%0x168+0x168)%0x168,_0x1c1108;}['_clearConnectionSites'](){const _0x10d782=_0x209063;for(let _0x4584b5 of this[_0x10d782(0x265)])_0x4584b5['dispose']();this['_connectionSiteObjects']=[],this[_0x10d782(0x4ed)]=-0x1;}[_0x209063(0x46a)](){this['_clearConnectionSites'](),super['dispose']();}};_0x2b6d77=_0x276893([_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x40dd84[_0x209063(0x2ba)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x510035[_0x209063(0x239)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab['SheetsShapeService']))],_0x2b6d77);let _0x21fb53=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x1c52d6,_0x2615cb,_0x2f5f47,_0x577cd4,_0x1cb9c0){const _0x22fc0a=_0x209063;super(),this[_0x22fc0a(0x339)]=_0x1c52d6,this[_0x22fc0a(0x4e9)]=_0x2615cb,this[_0x22fc0a(0x43c)]=_0x2f5f47,this['_shapeService']=_0x577cd4,this[_0x22fc0a(0x29a)]=_0x1cb9c0,_0x28368a(this,'_copyInfo',void 0x0),this[_0x22fc0a(0x1da)](),this[_0x22fc0a(0x423)]();}get[_0x209063(0x29e)](){const _0x57e8dd=_0x209063;return this[_0x57e8dd(0x43c)]['getFocusDrawings']();}[_0x209063(0x423)](){const _0x3dda24=_0x209063;this[_0x3dda24(0x29a)][_0x3dda24(0x2c3)](({fromUnitId:_0x53d3c0,fromSubUnitId:_0x36095f,toUnitId:_0x22dc11,toSubUnitId:_0x56e4e5,idMap:_0x2e48a3})=>{const _0x5906f8=_0x3dda24;let _0x17a6c1=[],_0x5bf72c=[];for(let [_0x3d1d84,_0x5aae3e]of _0x2e48a3[_0x5906f8(0x4f3)]()){let _0x2c1ba3=this[_0x5906f8(0x1e5)]['getShapeModel'](_0x53d3c0,_0x36095f,_0x3d1d84);if(!_0x2c1ba3)continue;let _0x41ed4c=_0x2c1ba3[_0x5906f8(0x4b0)](),_0x463378=JSON[_0x5906f8(0x1e8)](JSON[_0x5906f8(0x3f0)](_0x2c1ba3[_0x5906f8(0x224)]()));if(_0x463378[_0x5906f8(0x43e)]){var _0x1a30e7,_0x49d591;let _0x4e833f=(_0x1a30e7=_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)])==null?void 0x0:_0x1a30e7['shapeId'],_0x1ce2af=(_0x49d591=_0x463378[_0x5906f8(0x43e)]['to'])==null?void 0x0:_0x49d591[_0x5906f8(0x3dc)],_0x3f6845=_0x4e833f?_0x2e48a3[_0x5906f8(0x38c)](_0x4e833f):!0x0,_0x2bc607=_0x1ce2af?_0x2e48a3[_0x5906f8(0x38c)](_0x1ce2af):!0x0;_0x3f6845&&_0x4e833f&&_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)]?_0x463378[_0x5906f8(0x43e)][_0x5906f8(0x44e)]={..._0x463378['relation']['from'],'shapeId':_0x2e48a3[_0x5906f8(0x4cd)](_0x4e833f)}:_0x463378[_0x5906f8(0x43e)]['from']=void 0x0,_0x2bc607&&_0x1ce2af&&_0x463378['relation']['to']?_0x463378[_0x5906f8(0x43e)]['to']={..._0x463378['relation']['to'],'shapeId':_0x2e48a3[_0x5906f8(0x4cd)](_0x1ce2af)}:_0x463378['relation']['to']=void 0x0;}_0x17a6c1['push']({'id':_0x4eb2ab[_0x5906f8(0x41b)]['id'],'params':{'unitId':_0x22dc11,'subUnitId':_0x56e4e5,'shapeId':_0x5aae3e,'shapeType':_0x41ed4c,'shapeData':_0x463378}}),_0x5bf72c['push']({'id':_0x4eb2ab[_0x5906f8(0x24e)]['id'],'params':{'unitId':_0x22dc11,'subUnitId':_0x56e4e5,'shapeId':_0x5aae3e}});}return{'redos':_0x17a6c1,'undos':_0x5bf72c};});}[_0x209063(0x1da)](){const _0x2867cf=_0x209063;this['disposeWithMe'](this[_0x2867cf(0x4e9)][_0x2867cf(0x28b)]({'id':_0x2867cf(0x3c1),'onBeforeCopy':(_0x2d7c8e,_0x56a097,_0x474b0a,_0x332a2e)=>{const _0x32448f=_0x2867cf;this[_0x32448f(0x39f)]=null;let _0x33b49a=this[_0x32448f(0x29e)];if(_0x33b49a[_0x32448f(0x28f)]){let _0x588a50=_0x33b49a[_0x32448f(0x3a4)](_0x5f4d02=>_0x5f4d02[_0x32448f(0x3e8)]===_0x49d30a[_0x32448f(0x365)][_0x32448f(0x4fe)]);if(_0x588a50[_0x32448f(0x28f)]===0x0)return;this[_0x32448f(0x39f)]={'unitId':_0x2d7c8e,'subUnitId':_0x56a097,'copyType':_0x332a2e,'drawings':_0x588a50};}else this[_0x32448f(0x341)](_0x2d7c8e,_0x56a097,_0x474b0a,_0x332a2e);},'onPasteCells':(_0x192012,_0x518005,_0x1c7ec0,_0x130b20)=>{const _0x241529=_0x2867cf;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x54ccc0}=_0x130b20;return _0x54ccc0===_0x100e66[_0x241529(0x347)][_0x241529(0x1d8)]?this[_0x241529(0x23e)](_0x518005,this[_0x241529(0x39f)]['copyType']===_0x100e66['COPY_TYPE'][_0x241529(0x2ae)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x26e1f1=>this[_0x2867cf(0x39f)]?this[_0x2867cf(0x23e)](_0x26e1f1,this[_0x2867cf(0x39f)][_0x2867cf(0x481)]===_0x100e66[_0x2867cf(0x483)]['CUT']):{'redos':[],'undos':[]}}));}['_createCopyInfoByRange'](_0x1288ac,_0xdae729,_0x101ebc,_0x2deb80){const _0x4df269=_0x209063;let _0x5309f1=this['_sheetSkeletonService'][_0x4df269(0x2d9)](_0x1288ac,_0xdae729);if(!_0x5309f1)return;let _0xe5727f=(0x0,_0x4fbea5[_0x4df269(0x4a3)])(_0x5309f1,_0x101ebc);if(!_0xe5727f)return;let {startX:_0x2e44b8,endX:_0x278bdb,startY:_0x37ab30,endY:_0x3e51e0}=_0xe5727f,_0x414357=this[_0x4df269(0x43c)]['getDrawingData'](_0x1288ac,_0xdae729),_0x1a5d1c=this[_0x4df269(0x29e)][_0x4df269(0x331)]();for(let [_0x29065c,_0x26c01a]of Object[_0x4df269(0x4f3)](_0x414357)){if(_0x26c01a['drawingType']!==_0x49d30a[_0x4df269(0x365)]['DRAWING_SHAPE'])continue;let {transform:_0x3a6ba5}=_0x26c01a;if(!_0x3a6ba5)continue;let {left:_0x331a64=0x0,top:_0x30348f=0x0,width:_0x441aea=0x0,height:_0x16f1b8=0x0}=_0x3a6ba5;_0x2e44b8<=_0x331a64&&_0x278bdb>=_0x331a64+_0x441aea&&_0x37ab30<=_0x30348f&&_0x3e51e0>=_0x30348f+_0x16f1b8&&_0x1a5d1c[_0x4df269(0x3ed)](_0x26c01a);}_0x1a5d1c[_0x4df269(0x28f)]>0x0&&(this[_0x4df269(0x39f)]={'unitId':_0x1288ac,'subUnitId':_0xdae729,'copyType':_0x2deb80,'copyRange':_0x101ebc,'drawings':_0x1a5d1c});}['_generatePasteMutations'](_0x5ed899,_0x2bef61){const _0x30902e=_0x209063;let {unitId:_0x1186ae,subUnitId:_0xb7c407,range:_0x39e8df}=_0x5ed899,_0x4eefe2=this[_0x30902e(0x339)][_0x30902e(0x2d9)](_0x1186ae,_0xb7c407);if(!_0x4eefe2)return{'redos':[],'undos':[]};let _0x5685e9=(0x0,_0x4fbea5[_0x30902e(0x338)])(_0x39e8df),{unitId:_0x152b3f,subUnitId:_0x508b89,copyRange:_0x2815ff,drawings:_0x33fb12}=this['_copyInfo'],_0x486008=this[_0x30902e(0x339)]['getSkeleton'](_0x152b3f,_0x508b89);if(!_0x486008)return{'redos':[],'undos':[]};let _0x228275;if(!_0x2815ff){let _0x345bf0=0x1/0x0,_0x3cfb0a=0x1/0x0;for(let _0x2a1e83 of _0x33fb12){var _0x1cd4d2;let {left:_0x2d46a4=0x0,top:_0x25da83=0x0}=(_0x1cd4d2=_0x2a1e83['transform'])==null?{}:_0x1cd4d2;_0x2d46a4<_0x345bf0&&(_0x345bf0=_0x2d46a4),_0x25da83<_0x3cfb0a&&(_0x3cfb0a=_0x25da83);}_0x345bf0!==0x1/0x0&&_0x3cfb0a!==0x1/0x0&&(_0x228275={'left':_0x345bf0,'top':_0x3cfb0a});}let _0x36a104=new Map();if(!_0x2bef61){for(let _0x1b2b0d of _0x33fb12)_0x36a104[_0x30902e(0x402)](_0x1b2b0d[_0x30902e(0x2e9)],(0x0,_0x49d30a[_0x30902e(0x20b)])());}let _0x1af55=[],_0xb9d9a4=[];for(let _0x1d58a5 of _0x33fb12){let {drawingId:_0x3315f9,transform:_0x28d1a2,sheetTransform:_0x535a62}=_0x1d58a5;if(!_0x28d1a2||!_0x535a62)continue;let _0x46ea8d=this[_0x30902e(0x48d)]({'transform':_0x28d1a2,'sheetTransform':_0x535a62},{'skeleton':_0x486008,'range':_0x2815ff},{'skeleton':_0x4eefe2,'range':_0x5685e9},_0x228275);if(_0x2bef61){let {redos:_0x414255,undos:_0x8331f6}=this[_0x30902e(0x2f2)]({'fromUnitId':_0x152b3f,'fromSubUnitId':_0x508b89,'toUnitId':_0x1186ae,'toSubUnitId':_0xb7c407,'drawing':_0x1d58a5,'newTransforms':_0x46ea8d});_0x1af55[_0x30902e(0x3ed)](..._0x414255),_0xb9d9a4['push'](..._0x8331f6);continue;}let {redos:_0x31c8f8,undos:_0x5cc480}=this[_0x30902e(0x204)]({'toUnitId':_0x1186ae,'toSubUnitId':_0xb7c407,'drawing':_0x1d58a5,'newTransforms':_0x46ea8d,'newDrawingId':_0x36a104[_0x30902e(0x4cd)](_0x3315f9),'idMap':_0x36a104});_0x1af55[_0x30902e(0x3ed)](..._0x31c8f8),_0xb9d9a4[_0x30902e(0x3ed)](..._0x5cc480);}return{'redos':_0x1af55,'undos':_0xb9d9a4};}[_0x209063(0x2f2)](_0x108a3a){const _0x5a4df6=_0x209063;let {fromUnitId:_0x2ea90c,fromSubUnitId:_0x33ecc1,toUnitId:_0x4f1713,toSubUnitId:_0x530deb,drawing:_0x2e411d,newTransforms:_0xb29a2c}=_0x108a3a,_0x73201a={..._0x2e411d,'unitId':_0x4f1713,'subUnitId':_0x530deb,'transform':_0xb29a2c[_0x5a4df6(0x267)],'sheetTransform':_0xb29a2c[_0x5a4df6(0x40b)]};if(_0x4f1713===_0x2ea90c&&_0x530deb===_0x33ecc1){let {redo:_0x53e3d8,undo:_0x423a52,objects:_0x1cc29b}=this[_0x5a4df6(0x43c)][_0x5a4df6(0x2f1)]([_0x73201a]);return{'redos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x476)],'op':_0x53e3d8,'objects':_0x1cc29b}}],'undos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x476)],'op':_0x423a52,'objects':_0x1cc29b}}]};}else{let _0x4bec4c=this['_sheetDrawingService']['getBatchRemoveOp']([_0x2e411d]),_0x4d91fd=this[_0x5a4df6(0x43c)][_0x5a4df6(0x393)]([_0x73201a]),_0x518bd6=this['_shapeService'][_0x5a4df6(0x4b2)](_0x2e411d[_0x5a4df6(0x441)],_0x2e411d['subUnitId'],_0x2e411d[_0x5a4df6(0x2e9)]);if(!_0x518bd6)return{'redos':[],'undos':[]};let _0x3110a9=_0x518bd6['getShapeType'](),_0x52a910=JSON[_0x5a4df6(0x1e8)](JSON[_0x5a4df6(0x3f0)](_0x518bd6['getShapeData']()));return{'redos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x361)],'op':_0x4bec4c[_0x5a4df6(0x43a)],'objects':_0x4bec4c[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x24e)]['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'shapeId':_0x2e411d[_0x5a4df6(0x2e9)]}},{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x25e)],'op':_0x4d91fd[_0x5a4df6(0x43a)],'objects':_0x4d91fd[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x41b)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'shapeId':_0x2e411d[_0x5a4df6(0x2e9)],'shapeType':_0x3110a9,'shapeData':_0x52a910}}],'undos':[{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'type':_0x28a390[_0x5a4df6(0x3e9)][_0x5a4df6(0x25e)],'op':_0x4bec4c[_0x5a4df6(0x23c)],'objects':_0x4bec4c[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x2ea90c,'subUnitId':_0x33ecc1,'shapeId':_0x2e411d['drawingId'],'shapeType':_0x3110a9,'shapeData':_0x52a910}},{'id':_0x28a390[_0x5a4df6(0x326)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'type':_0x28a390[_0x5a4df6(0x3e9)]['REMOVE'],'op':_0x4d91fd[_0x5a4df6(0x23c)],'objects':_0x4d91fd[_0x5a4df6(0x48b)]}},{'id':_0x4eb2ab[_0x5a4df6(0x24e)]['id'],'params':{'unitId':_0x4f1713,'subUnitId':_0x530deb,'shapeId':_0x2e411d['drawingId']}}]};}}[_0x209063(0x204)](_0x18f160){const _0x38f9ef=_0x209063;let {toUnitId:_0xefbf7b,toSubUnitId:_0x37d4c0,drawing:_0x7d8fca,newTransforms:_0x57d227,newDrawingId:_0x274160,idMap:_0x3f2e2f}=_0x18f160,_0x15ef32={..._0x7d8fca,'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'drawingId':_0x274160,'transform':_0x57d227[_0x38f9ef(0x267)],'sheetTransform':_0x57d227[_0x38f9ef(0x40b)]},{redo:_0x591bac,undo:_0x2dc3a9,objects:_0x68813c}=this[_0x38f9ef(0x43c)][_0x38f9ef(0x393)]([_0x15ef32]),_0x2563e5=this[_0x38f9ef(0x1e5)][_0x38f9ef(0x4b2)](_0x7d8fca[_0x38f9ef(0x441)],_0x7d8fca['subUnitId'],_0x7d8fca['drawingId']);if(!_0x2563e5)return{'redos':[],'undos':[]};let _0xc36bf1=_0x2563e5[_0x38f9ef(0x4b0)](),_0x24c612=JSON[_0x38f9ef(0x1e8)](JSON['stringify'](_0x2563e5['getShapeData']()));if(_0x24c612[_0x38f9ef(0x43e)]){var _0x7156ca,_0x3b4d62;let _0x195ad0=(_0x7156ca=_0x24c612['relation']['from'])==null?void 0x0:_0x7156ca[_0x38f9ef(0x3dc)],_0x4d262f=(_0x3b4d62=_0x24c612[_0x38f9ef(0x43e)]['to'])==null?void 0x0:_0x3b4d62[_0x38f9ef(0x3dc)],_0x45929e=_0x195ad0?_0x3f2e2f[_0x38f9ef(0x38c)](_0x195ad0):!0x0,_0x5398e8=_0x4d262f?_0x3f2e2f['has'](_0x4d262f):!0x0;_0x45929e&&_0x195ad0&&_0x24c612['relation'][_0x38f9ef(0x44e)]?_0x24c612[_0x38f9ef(0x43e)]['from']={..._0x24c612[_0x38f9ef(0x43e)][_0x38f9ef(0x44e)],'shapeId':_0x3f2e2f['get'](_0x195ad0)}:_0x24c612['relation'][_0x38f9ef(0x44e)]=void 0x0,_0x5398e8&&_0x4d262f&&_0x24c612[_0x38f9ef(0x43e)]['to']?_0x24c612[_0x38f9ef(0x43e)]['to']={..._0x24c612['relation']['to'],'shapeId':_0x3f2e2f['get'](_0x4d262f)}:_0x24c612[_0x38f9ef(0x43e)]['to']=void 0x0;}return{'redos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'type':_0x28a390[_0x38f9ef(0x3e9)][_0x38f9ef(0x25e)],'op':_0x591bac,'objects':_0x68813c}},{'id':_0x4eb2ab[_0x38f9ef(0x41b)]['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'shapeId':_0x274160,'shapeType':_0xc36bf1,'shapeData':_0x24c612}}],'undos':[{'id':_0x28a390['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'type':_0x28a390[_0x38f9ef(0x3e9)][_0x38f9ef(0x361)],'op':_0x2dc3a9,'objects':_0x68813c}},{'id':_0x4eb2ab['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0xefbf7b,'subUnitId':_0x37d4c0,'shapeId':_0x274160}}]};}[_0x209063(0x48d)](_0x1396f7,_0x4567c5,_0x5f9d92,_0x39c316){const _0x65abd0=_0x209063;var _0x41dbd6;let {range:_0x5784dc,skeleton:_0x2bf73b}=_0x4567c5,{range:_0x2f2b68,skeleton:_0x5b3407}=_0x5f9d92,{transform:_0x76c4bd,sheetTransform:_0x26665c}=_0x1396f7,_0x336aa7={..._0x76c4bd};if(_0x5784dc){let _0x4d6cc0=(0x0,_0x4fbea5['attachRangeWithCoord'])(_0x2bf73b,_0x5784dc),_0x354173=(0x0,_0x4fbea5[_0x65abd0(0x4a3)])(_0x5b3407,_0x2f2b68);if(_0x4d6cc0&&_0x354173){var _0x40b25a,_0x765318;let _0x32f1f6=_0x354173[_0x65abd0(0x2a5)]-_0x4d6cc0[_0x65abd0(0x2a5)],_0x3dc670=_0x354173[_0x65abd0(0x1fa)]-_0x4d6cc0[_0x65abd0(0x1fa)];_0x336aa7[_0x65abd0(0x4d2)]=((_0x40b25a=_0x336aa7['left'])==null?0x0:_0x40b25a)+_0x32f1f6,_0x336aa7['top']=((_0x765318=_0x336aa7['top'])==null?0x0:_0x765318)+_0x3dc670;}}else{let _0x194c59=(0x0,_0x4fbea5[_0x65abd0(0x4a3)])(_0x5b3407,_0x2f2b68);if(_0x39c316&&_0x194c59){var _0x45c96c,_0x2a28da;let _0x392fb2=((_0x45c96c=_0x336aa7['left'])==null?0x0:_0x45c96c)-_0x39c316[_0x65abd0(0x4d2)],_0x1754da=((_0x2a28da=_0x336aa7[_0x65abd0(0x25a)])==null?0x0:_0x2a28da)-_0x39c316[_0x65abd0(0x25a)];_0x336aa7[_0x65abd0(0x4d2)]=_0x194c59['startX']+_0x392fb2,_0x336aa7[_0x65abd0(0x25a)]=_0x194c59[_0x65abd0(0x1fa)]+_0x1754da;}else _0x336aa7[_0x65abd0(0x4d2)]=_0x194c59==null?void 0x0:_0x194c59['startX'],_0x336aa7[_0x65abd0(0x25a)]=_0x194c59==null?void 0x0:_0x194c59[_0x65abd0(0x1fa)];}return{'transform':_0x336aa7,'sheetTransform':(_0x41dbd6=(0x0,_0x28a390[_0x65abd0(0x34b)])(_0x336aa7,_0x5b3407))==null?_0x26665c:_0x41dbd6};}};_0x21fb53=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x4fbea5[_0x209063(0x458)])),_0x3cbe95(0x1,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x100e66[_0x209063(0x34d)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x28a390[_0x209063(0x2b8)])),_0x3cbe95(0x3,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4c7223['SheetsDrawingGroupCopyPasteController']))],_0x21fb53);var _0x41f573=class extends _0x40dd84[_0x209063(0x492)]{constructor(_0x270ede,_0x50361f){const _0x41a691=_0x209063;super(_0x270ede,_0x50361f),_0x28368a(this,_0x41a691(0x28e),null),_0x28368a(this,_0x41a691(0x472),null),_0x28368a(this,'_unitId',null),_0x28368a(this,_0x41a691(0x489),null),_0x28368a(this,_0x41a691(0x426),!0x1),_0x50361f&&this[_0x41a691(0x215)](_0x50361f);}[_0x209063(0x36c)](){const _0x1a07f6=_0x209063;return{'unitId':this[_0x1a07f6(0x30e)],'subUnitId':this[_0x1a07f6(0x489)],'drawingId':this['_shapeId']};}[_0x209063(0x215)](_0x91ef7){const _0x46f4a1=_0x209063;_0x91ef7[_0x46f4a1(0x3dc)]!==void 0x0&&(this[_0x46f4a1(0x28e)]=_0x91ef7[_0x46f4a1(0x3dc)]),_0x91ef7[_0x46f4a1(0x441)]!==void 0x0&&(this['_unitId']=_0x91ef7[_0x46f4a1(0x441)]),_0x91ef7[_0x46f4a1(0x2fe)]!==void 0x0&&(this[_0x46f4a1(0x489)]=_0x91ef7[_0x46f4a1(0x2fe)]),_0x91ef7['isStartConnectorPoint']!==void 0x0&&(this[_0x46f4a1(0x426)]=_0x91ef7['isStartConnectorPoint']),this[_0x46f4a1(0x462)]({'width':_0x91ef7['width'],'height':_0x91ef7[_0x46f4a1(0x498)]});}[_0x209063(0x2a9)](_0x1a8148){const _0x49afc6=_0x209063;_0x40dd84[_0x49afc6(0x3f8)][_0x49afc6(0x3c4)](_0x1a8148,{'radius':_0x5b6709[_0x49afc6(0x389)][_0x49afc6(0x1f6)],'fill':_0x5b6709[_0x49afc6(0x389)]['cxnPointFill'],'stroke':_0x5b6709[_0x49afc6(0x389)][_0x49afc6(0x210)],'strokeWidth':_0x5b6709[_0x49afc6(0x389)]['cxnPointStrokeWidth'],'evented':!0x0});}};let _0x38186c=class extends _0x49d30a['Disposable']{constructor(_0xe21a56,_0x5a68cf,_0x4f9b1c,_0x246d8f,_0x4b1314,_0xdbe337,_0x1c9f10,_0x1c12f6){const _0x2f60c9=_0x209063;super(),this['_context']=_0xe21a56,this[_0x2f60c9(0x240)]=_0x5a68cf,this['_renderManagerService']=_0x4f9b1c,this[_0x2f60c9(0x4e5)]=_0x246d8f,this[_0x2f60c9(0x2be)]=_0x4b1314,this['_sheetsShapeService']=_0xdbe337,this[_0x2f60c9(0x418)]=_0x1c9f10,this[_0x2f60c9(0x4f5)]=_0x1c12f6,_0x28368a(this,_0x2f60c9(0x39d),void 0x0),_0x28368a(this,_0x2f60c9(0x30e),void 0x0),_0x28368a(this,_0x2f60c9(0x489),void 0x0),_0x28368a(this,_0x2f60c9(0x4d6),[]),_0x28368a(this,_0x2f60c9(0x237),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x28368a(this,_0x2f60c9(0x23a),void 0x0),_0x28368a(this,_0x2f60c9(0x42a),!0x1),_0x28368a(this,_0x2f60c9(0x48e),!0x1),_0x28368a(this,_0x2f60c9(0x24f),!0x1),_0x28368a(this,_0x2f60c9(0x282),void 0x0),_0x28368a(this,_0x2f60c9(0x4a0),void 0x0),_0x28368a(this,_0x2f60c9(0x374),null),this['_initialize']();}['_initialize'](){const _0x1da66d=_0x209063;this[_0x1da66d(0x453)](),this[_0x1da66d(0x474)]();}[_0x209063(0x4b1)](){const _0x46da30=_0x209063;if(!this[_0x46da30(0x30e)]||!this[_0x46da30(0x489)]||!this[_0x46da30(0x39d)])return;let _0x2c7914={'unitId':this[_0x46da30(0x30e)],'subUnitId':this[_0x46da30(0x489)],'drawingId':this[_0x46da30(0x39d)]},{transform:_0xa9adab}=this['_drawingManagerService']['getDrawingByParam'](_0x2c7914);if(_0xa9adab)return{'left':_0xa9adab['left']||0x0,'top':_0xa9adab[_0x46da30(0x25a)]||0x0,'width':_0xa9adab[_0x46da30(0x3bb)]||0x0,'height':_0xa9adab['height']||0x0,'flipX':_0xa9adab['flipX']||!0x1,'flipY':_0xa9adab[_0x46da30(0x351)]||!0x1,'angle':_0xa9adab[_0x46da30(0x43d)]};}[_0x209063(0x33e)](){const _0x4c8dfe=_0x209063;if(this[_0x4c8dfe(0x30e)]===void 0x0||this[_0x4c8dfe(0x489)]===void 0x0||this[_0x4c8dfe(0x39d)]===void 0x0)return;let _0x3d81a5=this[_0x4c8dfe(0x40d)]['getRenderById'](this['_unitId']);if(!_0x3d81a5||!_0x3d81a5['with'](_0x100e66[_0x4c8dfe(0x242)])[_0x4c8dfe(0x238)]())return;let {scene:_0x22c340}=_0x3d81a5,_0xb760c5=this[_0x4c8dfe(0x4b1)]();if(!_0xb760c5)return;let _0x3ba3c8=this[_0x4c8dfe(0x488)][_0x4c8dfe(0x4b2)](this[_0x4c8dfe(0x30e)],this[_0x4c8dfe(0x489)],this['_activeShapeId']);if(!_0x3ba3c8||!(0x0,_0x5b6709[_0x4c8dfe(0x3b5)])(_0x3ba3c8[_0x4c8dfe(0x4b0)]()))return;let _0x393dc4=_0x3ba3c8[_0x4c8dfe(0x436)]();if(_0x393dc4['length']<0x2)return;let _0x236856=new _0x5b6709['ConnectorCoordinateTransform'](_0xb760c5),_0x6b0a19=_0x393dc4[0x0],_0x36b281=_0x393dc4[_0x393dc4['length']-0x1],_0x5d3300=_0x236856[_0x4c8dfe(0x2b1)](_0x6b0a19),_0x9b0fa3=_0x236856[_0x4c8dfe(0x2b1)](_0x36b281);this[_0x4c8dfe(0x2b0)](_0x22c340,{..._0x5d3300},!0x0),this[_0x4c8dfe(0x2b0)](_0x22c340,{..._0x9b0fa3},!0x1);}['_addShapeConnectorHandlerObject'](_0x1e2f1c,_0x34cb95,_0x1f2800){const _0x370dc7=_0x209063;if(this['_activeShapeId']===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x38ca39='connector-handler-'+this[_0x370dc7(0x30e)]+'-'+this['_subUnitId']+'-'+this['_activeShapeId']+'-'+(_0x1f2800?_0x370dc7(0x1e2):_0x370dc7(0x23d)),_0x57a8f8=_0x1e2f1c[_0x370dc7(0x22b)](_0x38ca39);if(_0x57a8f8){_0x57a8f8[_0x370dc7(0x462)]({'left':_0x34cb95['x']-_0x5b6709['ShapeDefaultConfig'][_0x370dc7(0x1f6)],'top':_0x34cb95['y']-_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)]});return;}let _0x3a53e1=new _0x41f573(_0x38ca39,{'left':_0x34cb95['x']-_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)],'top':_0x34cb95['y']-_0x5b6709[_0x370dc7(0x389)]['cxnPointRadius'],'shapeId':this[_0x370dc7(0x39d)],'unitId':this[_0x370dc7(0x30e)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x1f2800,'width':_0x5b6709[_0x370dc7(0x389)]['cxnPointRadius']*0x2,'height':_0x5b6709[_0x370dc7(0x389)][_0x370dc7(0x1f6)]*0x2,'zIndex':_0x40dd84[_0x370dc7(0x27f)]+0x1,'evented':!0x0});this[_0x370dc7(0x4d6)]['push'](_0x3a53e1),this[_0x370dc7(0x395)](_0x3a53e1,_0x1e2f1c,_0x1f2800),_0x1e2f1c['addObject'](_0x3a53e1,_0x40dd84[_0x370dc7(0x27f)]+0x1);}[_0x209063(0x2a8)](_0xabf570,_0x1d1988){const _0x10ed70=_0x209063;var _0x5166b2;let _0x4813f2={'x':0x0,'y':0x0};if(!_0xabf570||!_0x1d1988)return _0x4813f2;let _0x9a5c0b=this[_0x10ed70(0x40d)][_0x10ed70(0x2f7)](_0xabf570);if(!_0x9a5c0b||!_0x9a5c0b[_0x10ed70(0x451)](_0x100e66[_0x10ed70(0x242)])[_0x10ed70(0x2d9)](_0x1d1988))return _0x4813f2;let _0x37072a=_0x9a5c0b[_0x10ed70(0x451)](_0x100e66[_0x10ed70(0x200)]),_0x25bfc5=_0x37072a==null?void 0x0:_0x37072a[_0x10ed70(0x373)]();if(!_0x25bfc5)return _0x4813f2;let _0x19ec87=(_0x5166b2=this['_univerInstanceService'][_0x10ed70(0x22d)](_0xabf570))==null?void 0x0:_0x5166b2['getSheetBySheetId'](_0x1d1988);if(!_0x19ec87)return _0x4813f2;let _0x354d16=(0x0,_0x100e66['getViewportByCell'])(_0x25bfc5[_0x10ed70(0x230)],_0x25bfc5[_0x10ed70(0x477)],_0x9a5c0b['scene'],_0x19ec87);return _0x354d16?{'x':_0x354d16[_0x10ed70(0x1db)],'y':_0x354d16['viewportScrollY']}:_0x4813f2;}['_getZoomRatio'](_0x3c5c7f,_0x2c6d2c){const _0x436da4=_0x209063;var _0x5cc0e4,_0x4ff64f;let _0xd5626c=(_0x5cc0e4=this[_0x436da4(0x2be)][_0x436da4(0x22d)](_0x3c5c7f))==null?void 0x0:_0x5cc0e4[_0x436da4(0x366)](_0x2c6d2c);return(_0x4ff64f=_0xd5626c==null?void 0x0:_0xd5626c[_0x436da4(0x350)]())==null?0x1:_0x4ff64f;}[_0x209063(0x21e)](_0xe0cd50,_0x1a4786,_0x1eab12,_0x4abe6d,_0x2552f3){const _0x2d2639=_0x209063;this['_cxtHandlerPointerMove'][_0x2d2639(0x27d)](),this[_0x2d2639(0x4a0)]['unsubscribe'](),this[_0x2d2639(0x418)]['refreshAdjustControls']();let _0x69a59c=this[_0x2d2639(0x374)];this['_sheetBasicShapeConnectionPointController'][_0x2d2639(0x4ec)]();let _0x4088ef=this[_0x2d2639(0x2a8)](this[_0x2d2639(0x30e)],this['_subUnitId']),_0x5918be=this[_0x2d2639(0x29c)](this[_0x2d2639(0x30e)],this[_0x2d2639(0x489)]),_0x3e3d6b={'x':_0x1eab12[_0x2d2639(0x2f6)]/_0x5918be+_0x4088ef['x'],'y':_0x1eab12['offsetY']/_0x5918be+_0x4088ef['y']},_0x5c686a=_0x69a59c?_0x69a59c['worldPoint']:_0x3e3d6b,_0x482d51=_0x4abe6d?this['_activeShapeModel'][_0x2d2639(0x1f5)]():this[_0x2d2639(0x23a)][_0x2d2639(0x4bd)](),_0x5b5519=this[_0x2d2639(0x23a)][_0x2d2639(0x4b0)]();_0x482d51?this['_handleConnectedEndpointPointerUp'](_0x482d51,_0x5c686a,_0x4abe6d,_0x69a59c,_0x2552f3):this[_0x2d2639(0x4e2)](_0x1a4786,_0x5c686a,_0x4abe6d,_0x69a59c,_0x2552f3,_0x5b5519),this[_0x2d2639(0x42a)]=!0x1,this[_0x2d2639(0x24f)]=!0x1,this[_0x2d2639(0x374)]=null,_0xe0cd50['enableObjectsEvent']();}[_0x209063(0x4e2)](_0x40ddf3,_0xa027f0,_0x4705f2,_0x37b166,_0x351fd7,_0x4e070e){const _0x2f1660=_0x209063;let _0x407216=_0x4e070e===_0x5b6709[_0x2f1660(0x297)][_0x2f1660(0x236)]||_0x4e070e===_0x5b6709['ShapeTypeEnum'][_0x2f1660(0x31a)],_0x12d659=_0x4705f2?_0xa027f0:_0x40ddf3,_0x590871=_0x4705f2?_0x40ddf3:_0xa027f0,_0x2f92ed=this['_activeShapeModel'][_0x2f1660(0x436)](),_0x531a10=(0x0,_0x5b6709[_0x2f1660(0x454)])(this[_0x2f1660(0x23a)][_0x2f1660(0x4b0)]()),_0x17ca1b=_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x311)](_0x2f92ed,_0x531a10),_0x99800c=_0x407216?_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x466)](_0x12d659,_0x590871):_0x5b6709[_0x2f1660(0x484)][_0x2f1660(0x34c)](_0x40ddf3,_0xa027f0,_0x4705f2,_0x17ca1b);_0x37b166?this[_0x2f1660(0x446)](_0x99800c,_0x37b166,_0x4705f2,_0x351fd7):this[_0x2f1660(0x47e)](_0x99800c,_0x351fd7);}['_handleConnectedEndpointPointerUp'](_0x2abb23,_0x139c9d,_0xad4732,_0x2ae8e0,_0x19233e){const _0x425ca6=_0x209063;let _0x39b7ec=this[_0x425ca6(0x244)](_0x2abb23);if(!_0x39b7ec)return;let _0x1a966f=_0x2ae8e0?_0x2ae8e0[_0x425ca6(0x43d)]:this[_0x425ca6(0x33f)](_0x39b7ec[_0x425ca6(0x49c)],_0x139c9d),_0x2cd528;if(_0x2ae8e0){let _0x291c73=this[_0x425ca6(0x4e5)][_0x425ca6(0x20c)]({'unitId':_0x2ae8e0[_0x425ca6(0x441)],'subUnitId':_0x2ae8e0[_0x425ca6(0x2fe)],'drawingId':_0x2ae8e0[_0x425ca6(0x3dc)]});if(_0x291c73!=null&&_0x291c73[_0x425ca6(0x267)]){let {left:_0x890594=0x0,top:_0x257e59=0x0,width:_0x47eb3e=0x0,height:_0x18f4bc=0x0,angle:_0x7182d9}=_0x291c73['transform'];_0x2cd528=(0x0,_0x5b6709[_0x425ca6(0x4ad)])({'left':_0x890594,'top':_0x257e59,'width':_0x47eb3e,'height':_0x18f4bc},_0x7182d9||0x0);}else _0x2cd528={'left':_0x139c9d['x'],'top':_0x139c9d['y'],'width':0x0,'height':0x0};}else _0x2cd528={'left':_0x139c9d['x'],'top':_0x139c9d['y'],'width':0x0,'height':0x0};let _0x5afaa4={'point':_0x139c9d,'angle':_0x1a966f,'bounds':_0x2cd528},_0x4f5d4a=_0xad4732?_0x5afaa4:_0x39b7ec,_0x9906e2=_0xad4732?_0x39b7ec:_0x5afaa4,_0x310e3=this[_0x425ca6(0x23a)][_0x425ca6(0x4b0)](),_0x3d5994=(0x0,_0x5b6709[_0x425ca6(0x4a4)])(_0x4f5d4a,_0x9906e2,_0x310e3);this['_activeShapeModel']['removeLinePoints']();let _0xf8e4d8=(0x0,_0x5b6709[_0x425ca6(0x385)])(_0x3d5994,_0x310e3);_0x2ae8e0?this[_0x425ca6(0x2c5)](_0xf8e4d8,_0x2ae8e0,_0x2abb23,_0xad4732,_0x19233e):this[_0x425ca6(0x494)](_0xf8e4d8,_0x2abb23,_0xad4732,_0x19233e);}[_0x209063(0x446)](_0x3448db,_0x2a6ca6,_0x5e83f1,_0x4a1c81){const _0x12e4b9=_0x209063;let _0x1742d4=this[_0x12e4b9(0x23a)][_0x12e4b9(0x224)]()['relation'],_0x135a16={..._0x1742d4},_0x212946={'shapeId':_0x2a6ca6[_0x12e4b9(0x3dc)],'cxnIndex':_0x2a6ca6[_0x12e4b9(0x499)]};_0x5e83f1?_0x135a16['from']=_0x212946:_0x135a16['to']=_0x212946;let _0x28e09d=this[_0x12e4b9(0x23a)][_0x12e4b9(0x4b0)](),_0x32a0fb=(0x0,_0x5b6709['computeConnectorRouteLayout'])(_0x3448db['worldPoints'],_0x28e09d),_0x48c004={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this['_activeShapeId'],'width':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x3bb)],'height':_0x3448db['worldRect']['height'],'left':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x4d2)],'top':_0x3448db[_0x12e4b9(0x299)][_0x12e4b9(0x25a)],'flipX':_0x3448db[_0x12e4b9(0x299)]['flipX']||!0x1,'flipY':_0x3448db[_0x12e4b9(0x299)]['flipY']||!0x1,'newAdjustValues':_0x32a0fb['adjustValues'],'oldAdjustValues':_0x4a1c81,'oldRelation':_0x1742d4,'newRelation':_0x135a16,'newLineType':_0x32a0fb['lineType'],'oldLineType':_0x28e09d};this[_0x12e4b9(0x240)][_0x12e4b9(0x507)](_0x4eb2ab[_0x12e4b9(0x3de)]['id'],_0x48c004);}[_0x209063(0x47e)](_0x243ff5,_0x27642a){const _0x13e9c6=_0x209063;let _0x27454e=this[_0x13e9c6(0x23a)]['getShapeType'](),_0x586ee5=(0x0,_0x5b6709[_0x13e9c6(0x385)])(_0x243ff5[_0x13e9c6(0x3ad)],_0x27454e),_0xd95ad6={'unitId':this[_0x13e9c6(0x30e)],'subUnitId':this['_subUnitId'],'shapeId':this['_activeShapeId'],'width':_0x243ff5['worldRect']['width'],'height':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x498)],'left':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x4d2)],'top':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x25a)],'flipX':_0x243ff5['worldRect'][_0x13e9c6(0x2d8)]||!0x1,'flipY':_0x243ff5[_0x13e9c6(0x299)]['flipY']||!0x1,'angle':_0x243ff5[_0x13e9c6(0x299)][_0x13e9c6(0x43d)]||0x0,'newAdjustValues':_0x586ee5[_0x13e9c6(0x502)],'oldAdjustValues':_0x27642a,'newLineType':_0x586ee5['lineType'],'oldLineType':_0x27454e};this[_0x13e9c6(0x240)][_0x13e9c6(0x507)](_0x4eb2ab[_0x13e9c6(0x2af)]['id'],_0xd95ad6);}[_0x209063(0x2c5)](_0x38f092,_0x44d976,_0xb6288e,_0x358012,_0x243834){const _0x1beba0=_0x209063;let _0x24ed19=this[_0x1beba0(0x23a)][_0x1beba0(0x224)]()[_0x1beba0(0x43e)],_0x20ad36={..._0x24ed19},_0x4d8a25={'shapeId':_0x44d976[_0x1beba0(0x3dc)],'cxnIndex':_0x44d976['cxnIndex']};_0x358012?(_0x20ad36[_0x1beba0(0x44e)]=_0x4d8a25,_0x20ad36['to']=_0xb6288e):(_0x20ad36[_0x1beba0(0x44e)]=_0xb6288e,_0x20ad36['to']=_0x4d8a25);let _0x1f66be={'unitId':this[_0x1beba0(0x30e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x1beba0(0x39d)],'width':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x3bb)],'height':_0x38f092[_0x1beba0(0x299)]['height'],'left':_0x38f092['worldRect']['left'],'top':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x25a)],'flipX':_0x38f092['worldRect'][_0x1beba0(0x2d8)]||!0x1,'flipY':_0x38f092[_0x1beba0(0x299)][_0x1beba0(0x351)]||!0x1,'oldAdjustValues':_0x243834,'newAdjustValues':_0x38f092['adjustValues'],'newLineType':_0x38f092[_0x1beba0(0x308)],'rotation':_0x38f092[_0x1beba0(0x40c)],'oldRelation':_0x24ed19,'newRelation':_0x20ad36};this[_0x1beba0(0x240)][_0x1beba0(0x507)](_0x4eb2ab[_0x1beba0(0x3de)]['id'],_0x1f66be);}[_0x209063(0x494)](_0x4aef13,_0x4e9d28,_0x3fd0b0,_0x5bd984){const _0x274d64=_0x209063;let _0x40143d=this[_0x274d64(0x23a)][_0x274d64(0x224)]()[_0x274d64(0x43e)],_0x5349c2={};_0x3fd0b0?(_0x5349c2['to']=_0x4e9d28,_0x5349c2[_0x274d64(0x44e)]=void 0x0):(_0x5349c2['from']=_0x4e9d28,_0x5349c2['to']=void 0x0);let _0x378a47={'unitId':this[_0x274d64(0x30e)],'subUnitId':this[_0x274d64(0x489)],'connectorShapeId':this[_0x274d64(0x39d)],'width':_0x4aef13['worldRect'][_0x274d64(0x3bb)],'height':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x498)],'left':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x4d2)],'top':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x25a)],'flipX':_0x4aef13[_0x274d64(0x299)]['flipX']||!0x1,'flipY':_0x4aef13[_0x274d64(0x299)][_0x274d64(0x351)]||!0x1,'oldAdjustValues':_0x5bd984,'newAdjustValues':_0x4aef13[_0x274d64(0x502)],'newLineType':_0x4aef13['lineType'],'rotation':_0x4aef13[_0x274d64(0x40c)],'oldRelation':_0x40143d,'newRelation':_0x5349c2};this['_commandService']['executeCommand'](_0x4eb2ab['UpdateConnectorRelationCommand']['id'],_0x378a47);}['_attachConnectorObjectEvent'](_0x413297,_0x3edfac,_0x4ede52){const _0x3a3314=_0x209063;this[_0x3a3314(0x3df)]((0x0,_0x49d30a['toDisposable'])(_0x413297[_0x3a3314(0x222)]['subscribeEvent']((_0x4c647b,_0xe8111d)=>{const _0x50bf64=_0x3a3314;let _0x35ddc9=_0x413297[_0x50bf64(0x36c)]();if(this['_activeShapeModel']=this['_sheetsShapeService']['getShapeModel'](_0x35ddc9['unitId'],_0x35ddc9['subUnitId'],_0x35ddc9[_0x50bf64(0x2e9)]),!this[_0x50bf64(0x23a)])return;let _0x363550={};this[_0x50bf64(0x23a)][_0x50bf64(0x3c9)]()['forEach'](_0x1c4b13=>{const _0x2eb437=_0x50bf64;let _0x32c8b5=this[_0x2eb437(0x23a)][_0x2eb437(0x213)](_0x1c4b13);_0x32c8b5!==void 0x0&&(_0x363550[_0x1c4b13]=_0x32c8b5);});let _0x4f868c=this[_0x50bf64(0x4b1)]();if(!_0x4f868c)return;this[_0x50bf64(0x237)]={..._0x4f868c};let _0xf2a220=new _0x5b6709[(_0x50bf64(0x484))](this[_0x50bf64(0x237)]),_0x46aa09=(0x0,_0x510035[_0x50bf64(0x3a8)])({'unitId':this[_0x50bf64(0x30e)],'subUnitId':this[_0x50bf64(0x489)],'drawingId':this[_0x50bf64(0x39d)]}),_0x30c9d9=_0x3edfac['getObjectIncludeInGroup'](_0x46aa09);this[_0x50bf64(0x42a)]=!0x0,_0x3edfac[_0x50bf64(0x202)](),this['_sheetBasicShapeConnectionPointController']['startConnectionDetection'](_0x3edfac,this[_0x50bf64(0x30e)],this['_subUnitId'],this[_0x50bf64(0x39d)]),this[_0x50bf64(0x374)]=null;let _0x143c12=this['_activeShapeModel'][_0x50bf64(0x436)](),_0x54c1ff=_0x143c12[0x0],_0x27f896=_0x143c12[_0x143c12[_0x50bf64(0x28f)]-0x1],_0x5d7eea=_0x4ede52?_0xf2a220[_0x50bf64(0x2b1)](_0x27f896):_0xf2a220[_0x50bf64(0x2b1)](_0x54c1ff);this[_0x50bf64(0x282)]=_0x3edfac[_0x50bf64(0x468)]['subscribeEvent']((_0x32e7e2,_0x16d04f)=>{const _0x3733e4=_0x50bf64;if(!this[_0x3733e4(0x42a)]||!this[_0x3733e4(0x23a)])return;this[_0x3733e4(0x24f)]||(this['_sheetShapeAdjustController'][_0x3733e4(0x409)](),this[_0x3733e4(0x23a)][_0x3733e4(0x486)](),this[_0x3733e4(0x24f)]=!0x0);let _0x1b70e5=this[_0x3733e4(0x2a8)](this['_unitId'],this[_0x3733e4(0x489)]),_0x46bca6=this[_0x3733e4(0x29c)](this[_0x3733e4(0x30e)],this['_subUnitId']),_0x9653e0={'x':_0x32e7e2[_0x3733e4(0x2f6)]/_0x46bca6+_0x1b70e5['x'],'y':_0x32e7e2[_0x3733e4(0x4ac)]/_0x46bca6+_0x1b70e5['y']},_0x3421a2=this[_0x3733e4(0x4f5)][_0x3733e4(0x3fa)](_0x9653e0);if(_0x3421a2){let {shapeId:_0xd9b8ba,unitId:_0x1b53f5,subUnitId:_0x5d1e6e}=_0x3421a2;if(_0xd9b8ba&&_0x1b53f5&&_0x5d1e6e){let _0x13d9bc=(0x0,_0x510035[_0x3733e4(0x3a8)])({'unitId':_0x1b53f5,'subUnitId':_0x5d1e6e,'drawingId':_0xd9b8ba});_0x3421a2['angle']=(_0x3edfac[_0x3733e4(0x22b)](_0x13d9bc)[_0x3733e4(0x43d)]||0x0)+_0x3421a2[_0x3733e4(0x43d)];}}this[_0x3733e4(0x374)]=_0x3421a2;let _0xb128f7=_0x4ede52?this[_0x3733e4(0x23a)][_0x3733e4(0x1f5)]():this[_0x3733e4(0x23a)]['getStartConnectInfo']();if(_0xb128f7){this[_0x3733e4(0x327)](_0xb128f7,_0x9653e0,_0x4ede52,_0x30c9d9,_0x413297);return;}this[_0x3733e4(0x2e4)](_0x9653e0,_0x5d7eea,_0x4ede52,_0x30c9d9,_0x413297);}),this[_0x50bf64(0x4a0)]=_0x3edfac[_0x50bf64(0x4ab)][_0x50bf64(0x35a)]((_0x44ef62,_0x2b92ab)=>{const _0x74a6dd=_0x50bf64;this[_0x74a6dd(0x21e)](_0x3edfac,_0x5d7eea,_0x44ef62,_0x4ede52,_0x363550);}),_0xe8111d['stopPropagation']();})));}[_0x209063(0x485)](_0x7236fa,_0x1dbc52,_0x955543){const _0x333a78=_0x209063;let _0x36746b=this[_0x333a78(0x488)]['getBasicShapeRelation'](_0x7236fa,_0x1dbc52,_0x955543);if(!_0x36746b||_0x36746b[_0x333a78(0x28f)]===0x0)return;let _0x38812a=this['_renderManagerService'][_0x333a78(0x2f7)](_0x7236fa);if(!_0x38812a)return;let {scene:_0x42e2c2}=_0x38812a;for(let _0x5b199b of _0x36746b){let _0x1a10d0=_0x5b199b[_0x333a78(0x47a)],_0x34b7dc=this[_0x333a78(0x488)][_0x333a78(0x4b2)](_0x7236fa,_0x1dbc52,_0x1a10d0);if(!_0x34b7dc)continue;let _0x58d4ec=_0x34b7dc['getStartConnectInfo'](),_0x31f1d9=_0x34b7dc[_0x333a78(0x1f5)](),_0x2ace22=(_0x58d4ec==null?void 0x0:_0x58d4ec[_0x333a78(0x3dc)])===_0x955543,_0x1539a4=(0x0,_0x510035['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x7236fa,'subUnitId':_0x1dbc52,'drawingId':_0x1a10d0}),_0x567284=_0x42e2c2[_0x333a78(0x22b)](_0x1539a4);if(!_0x567284)continue;let _0x431b96=this[_0x333a78(0x4e5)][_0x333a78(0x20c)]({'unitId':_0x7236fa,'subUnitId':_0x1dbc52,'drawingId':_0x1a10d0});_0x431b96!=null&&_0x431b96['transform']&&(_0x58d4ec&&_0x31f1d9?this[_0x333a78(0x2b2)](_0x7236fa,_0x1dbc52,_0x1a10d0,_0x34b7dc,_0x58d4ec,_0x31f1d9,_0x567284):this[_0x333a78(0x4e6)](_0x7236fa,_0x1dbc52,_0x1a10d0,_0x34b7dc,_0x2ace22?_0x58d4ec:_0x31f1d9,_0x2ace22,_0x431b96,_0x567284));}}[_0x209063(0x2b2)](_0x584e17,_0x25adea,_0x19f794,_0x425370,_0x1abf64,_0x10a14e,_0x33b566){const _0x1d97b3=_0x209063;let _0x1ed733=this['_unitId'],_0x5e8ab2=this[_0x1d97b3(0x489)];this[_0x1d97b3(0x30e)]=_0x584e17,this['_subUnitId']=_0x25adea;let _0x7a7e1b=this[_0x1d97b3(0x244)](_0x1abf64),_0x5b4120=this['_getConnectPointInfo'](_0x10a14e);if(this[_0x1d97b3(0x30e)]=_0x1ed733,this['_subUnitId']=_0x5e8ab2,!_0x7a7e1b||!_0x5b4120)return;let _0x432286=_0x425370[_0x1d97b3(0x4b0)](),_0x3bfce0=(0x0,_0x5b6709[_0x1d97b3(0x4a4)])(_0x7a7e1b,_0x5b4120,_0x432286);_0x3bfce0&&_0x425370['updateLinePoints'](_0x3bfce0);let _0x4dc97d=(0x0,_0x5b6709[_0x1d97b3(0x385)])(_0x3bfce0,_0x432286);_0x4dc97d[_0x1d97b3(0x308)]!==_0x432286&&_0x425370['changeShapeType'](_0x4dc97d['lineType']),_0x425370['clearAdjustValue']();for(let [_0x3e6521,_0x5eaace]of Object[_0x1d97b3(0x4f3)](_0x4dc97d[_0x1d97b3(0x502)]))_0x425370[_0x1d97b3(0x45a)](_0x3e6521,_0x5eaace);_0x425370[_0x1d97b3(0x2c1)]({'width':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x3bb)],'height':_0x4dc97d[_0x1d97b3(0x299)]['height']}),_0x33b566[_0x1d97b3(0x462)]({'flipX':_0x4dc97d[_0x1d97b3(0x299)]['flipX'],'flipY':_0x4dc97d[_0x1d97b3(0x299)]['flipY'],'left':_0x4dc97d['worldRect'][_0x1d97b3(0x4d2)],'top':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x25a)],'width':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x3bb)],'height':_0x4dc97d[_0x1d97b3(0x299)][_0x1d97b3(0x498)],'angle':_0x4dc97d['rotation']}),_0x425370[_0x1d97b3(0x246)]();}[_0x209063(0x4e6)](_0x7a85c9,_0x5087be,_0x362f76,_0x159046,_0x1ce3a6,_0x5d1606,_0x123e99,_0x45fc83){const _0x1602b9=_0x209063;let _0x484616=this['_unitId'],_0x4875ae=this[_0x1602b9(0x489)];this[_0x1602b9(0x30e)]=_0x7a85c9,this[_0x1602b9(0x489)]=_0x5087be;let _0x369202=this[_0x1602b9(0x244)](_0x1ce3a6);if(this['_unitId']=_0x484616,this[_0x1602b9(0x489)]=_0x4875ae,!_0x369202)return;let {left:_0x4b3567=0x0,top:_0x2d9cea=0x0,width:_0x5c39fa=0x0,height:_0x368877=0x0,flipX:_0x3b67bb=!0x1,flipY:_0x396f65=!0x1}=_0x123e99['transform'],_0x1e976b=_0x159046[_0x1602b9(0x436)]();if(_0x1e976b[_0x1602b9(0x28f)]<0x2)return;let _0x353793=new _0x5b6709['ConnectorCoordinateTransform']({'left':_0x4b3567,'top':_0x2d9cea,'width':_0x5c39fa,'height':_0x368877,'flipX':_0x3b67bb,'flipY':_0x396f65}),_0x4b2649=_0x5d1606?_0x1e976b[_0x1e976b[_0x1602b9(0x28f)]-0x1]:_0x1e976b[0x0],_0x26b9d7=_0x353793[_0x1602b9(0x2b1)](_0x4b2649),_0x5e5d13=_0x5b6709[_0x1602b9(0x484)][_0x1602b9(0x34c)](_0x26b9d7,_0x369202[_0x1602b9(0x49c)],!_0x5d1606);_0x45fc83[_0x1602b9(0x462)]({'flipX':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x2d8)],'flipY':_0x5e5d13[_0x1602b9(0x299)]['flipY'],'left':_0x5e5d13['worldRect'][_0x1602b9(0x4d2)],'top':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x25a)],'width':_0x5e5d13['worldRect']['width'],'height':_0x5e5d13['worldRect'][_0x1602b9(0x498)],'angle':_0x5e5d13[_0x1602b9(0x299)][_0x1602b9(0x43d)]}),_0x45fc83[_0x1602b9(0x25d)](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x1a63c5=_0x209063;this['_connectorObjects']['length']!==0x0&&(this[_0x1a63c5(0x4d6)][_0x1a63c5(0x250)](_0x23330c=>{_0x23330c['dispose']();}),this[_0x1a63c5(0x4d6)]=[]);}[_0x209063(0x474)](){const _0x1cedc9=_0x209063;let _0x15a768=this['_univerInstanceService'][_0x1cedc9(0x26b)](_0x49d30a[_0x1cedc9(0x276)][_0x1cedc9(0x295)]);this[_0x1cedc9(0x3df)](_0x15a768[_0x1cedc9(0x201)]((0x0,_0x230aed[_0x1cedc9(0x24b)])(_0x26a6ad=>_0x26a6ad?_0x26a6ad['activeSheet$'][_0x1cedc9(0x201)]((0x0,_0x230aed['switchMap'])(_0x39abb5=>{const _0x1117a8=_0x1cedc9;if(!_0x39abb5)return _0x230aed['EMPTY'];let _0x59268c=_0x26a6ad['getUnitId'](),_0x17c2ec=this['_renderManagerService'][_0x1117a8(0x2f7)](_0x59268c),_0x384612=_0x17c2ec==null?void 0x0:_0x17c2ec[_0x1117a8(0x349)];return _0x384612?(0x0,_0x230aed['of'])(_0x384612):_0x230aed[_0x1117a8(0x2d0)];})):_0x230aed[_0x1cedc9(0x2d0)]))[_0x1cedc9(0x4d3)](_0x2cd670=>{const _0x38090c=_0x1cedc9;let _0x5da36f=_0x2cd670[_0x38090c(0x262)]();this[_0x38090c(0x3df)](_0x2cd670[_0x38090c(0x468)][_0x38090c(0x35a)](_0x268961=>{const _0x5a6cac=_0x38090c;this[_0x5a6cac(0x48e)]&&this[_0x5a6cac(0x39d)]&&this[_0x5a6cac(0x277)]();})),this['disposeWithMe'](_0x5da36f[_0x38090c(0x275)]['subscribe'](_0x5d45c4=>{const _0x25b93d=_0x38090c;let {objects:_0x5d4fdc}=_0x5d45c4;this[_0x25b93d(0x277)](),_0x5d4fdc!==null&&_0x5d4fdc[_0x25b93d(0x3c6)]===0x1&&_0x5d4fdc[_0x25b93d(0x1e1)]()[_0x25b93d(0x241)]()[_0x25b93d(0x2b4)]instanceof _0x642241&&(this[_0x25b93d(0x48e)]=!0x0);})),this[_0x38090c(0x3df)](_0x5da36f[_0x38090c(0x4e8)][_0x38090c(0x4d3)](_0x5ed529=>{const _0x151737=_0x38090c;this[_0x151737(0x48e)]&&this[_0x151737(0x277)]();})),this[_0x38090c(0x3df)](_0x2cd670[_0x38090c(0x4ab)][_0x38090c(0x35a)](()=>{const _0x198bb5=_0x38090c;this[_0x198bb5(0x48e)]&&(this[_0x198bb5(0x48e)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0x38090c(0x3df)](_0x5da36f[_0x38090c(0x4d7)][_0x38090c(0x4d3)](()=>{const _0x4d7ac2=_0x38090c;this[_0x4d7ac2(0x30e)]&&this['_subUnitId']&&this[_0x4d7ac2(0x39d)]&&this['_drawingManagerService'][_0x4d7ac2(0x20c)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4d7ac2(0x39d)]})&&(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x209063(0x453)](){const _0x4aed85=_0x209063;this['disposeWithMe'](this[_0x4aed85(0x4e5)][_0x4aed85(0x2a6)][_0x4aed85(0x4d3)](_0x573955=>{const _0x20153c=_0x4aed85;if(_0x573955[_0x20153c(0x28f)]===0x1){let _0x426b4b=_0x573955[0x0];if(_0x426b4b[_0x20153c(0x3e8)]===_0x49d30a[_0x20153c(0x365)][_0x20153c(0x4fe)]){let _0x46749e=this[_0x20153c(0x488)]['getShapeModel'](_0x426b4b[_0x20153c(0x441)],_0x426b4b['subUnitId'],_0x426b4b[_0x20153c(0x2e9)]);if(_0x46749e&&(0x0,_0x5b6709['isConnectorShape'])(_0x46749e['getShapeType']())){this[_0x20153c(0x39d)]=_0x426b4b[_0x20153c(0x2e9)],this[_0x20153c(0x30e)]=_0x426b4b['unitId'],this[_0x20153c(0x489)]=_0x426b4b[_0x20153c(0x2fe)],this[_0x20153c(0x277)](),this[_0x20153c(0x33e)]();return;}}}this[_0x20153c(0x39d)]=void 0x0,this['_unitId']=void 0x0,this[_0x20153c(0x489)]=void 0x0,this[_0x20153c(0x277)]();})),this[_0x4aed85(0x3df)](this[_0x4aed85(0x4e5)][_0x4aed85(0x44c)][_0x4aed85(0x4d3)](_0x3701fb=>{const _0x133e39=_0x4aed85;if(_0x3701fb[_0x133e39(0x28f)]===0x1){var _0x2fe9ee;let _0x1d2afd=_0x3701fb[0x0],_0xfa8b85=(_0x2fe9ee=this[_0x133e39(0x4e5)][_0x133e39(0x20c)](_0x1d2afd))==null?void 0x0:_0x2fe9ee[_0x133e39(0x3e8)];_0xfa8b85===_0x49d30a[_0x133e39(0x365)][_0x133e39(0x4fe)]&&_0x1d2afd[_0x133e39(0x2e9)]===this['_activeShapeId']?(this[_0x133e39(0x277)](),this['_addShapeConnectorHandlerObjects']()):!this[_0x133e39(0x39d)]&&_0xfa8b85===_0x49d30a[_0x133e39(0x365)][_0x133e39(0x4fe)]&&this['_handleBasicShapeUpdateConnectorLineShape'](_0x1d2afd[_0x133e39(0x441)],_0x1d2afd[_0x133e39(0x2fe)],_0x1d2afd[_0x133e39(0x2e9)]);}})),this[_0x4aed85(0x3df)](this[_0x4aed85(0x4e5)]['remove$'][_0x4aed85(0x4d3)](_0xb19b6b=>{const _0x402cb6=_0x4aed85;for(let _0x6763d8 of _0xb19b6b){let {drawingId:_0xf4aba2}=_0x6763d8;if(this[_0x402cb6(0x39d)]===_0xf4aba2){this[_0x402cb6(0x42b)]();return;}}}));}[_0x209063(0x327)](_0x339d7b,_0x13be08,_0x447f72,_0x4f8bde,_0x262eac){const _0x17cb04=_0x209063;var _0x685fc5,_0x346081;if(!this[_0x17cb04(0x23a)])return;let _0x293e70=this['_getConnectPointInfo'](_0x339d7b);if(!_0x293e70)return;let _0x1e7cd7=this['_currentConnectionTarget']?this[_0x17cb04(0x374)][_0x17cb04(0x42c)]:_0x13be08,_0x14222e=this[_0x17cb04(0x374)]?this['_currentConnectionTarget']['angle']:this[_0x17cb04(0x33f)](_0x293e70[_0x17cb04(0x49c)],_0x1e7cd7),_0x14188b;if(this[_0x17cb04(0x374)]){let _0x2bb162=this[_0x17cb04(0x4e5)][_0x17cb04(0x20c)]({'unitId':this[_0x17cb04(0x374)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x17cb04(0x2fe)],'drawingId':this['_currentConnectionTarget'][_0x17cb04(0x3dc)]});if(_0x2bb162!=null&&_0x2bb162[_0x17cb04(0x267)]){let {left:_0x5aa0ba=0x0,top:_0x1fb8da=0x0,width:_0x44f0c9=0x0,height:_0x557235=0x0,angle:_0x4b3e0a}=_0x2bb162[_0x17cb04(0x267)];_0x14188b=(0x0,_0x5b6709['getBasicShapeRotateBound'])({'left':_0x5aa0ba,'top':_0x1fb8da,'width':_0x44f0c9,'height':_0x557235},_0x4b3e0a||0x0);}else _0x14188b={'left':_0x1e7cd7['x'],'top':_0x1e7cd7['y'],'width':0x0,'height':0x0};}else _0x14188b={'left':_0x1e7cd7['x'],'top':_0x1e7cd7['y'],'width':0x0,'height':0x0};let _0x6615a5={'point':_0x1e7cd7,'angle':_0x14222e,'bounds':_0x14188b},_0xee68ee=_0x447f72?_0x6615a5:_0x293e70,_0x2ad996=_0x447f72?_0x293e70:_0x6615a5,_0x1dadb2=this[_0x17cb04(0x23a)]['getShapeType'](),_0x108c87=(0x0,_0x5b6709[_0x17cb04(0x4a4)])(_0xee68ee,_0x2ad996,_0x1dadb2);_0x108c87&&this[_0x17cb04(0x23a)][_0x17cb04(0x1fb)](_0x108c87);let _0x306ac3=(0x0,_0x5b6709[_0x17cb04(0x385)])(_0x108c87,_0x1dadb2);_0x306ac3['lineType']!==_0x1dadb2&&this[_0x17cb04(0x23a)][_0x17cb04(0x46c)](_0x306ac3[_0x17cb04(0x308)]);for(let [_0x227afc,_0x3535d7]of Object[_0x17cb04(0x4f3)](_0x306ac3[_0x17cb04(0x502)]))this[_0x17cb04(0x23a)][_0x17cb04(0x45a)](_0x227afc,_0x3535d7);this[_0x17cb04(0x23a)][_0x17cb04(0x2c1)]({'width':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x3bb)],'height':_0x306ac3['worldRect']['height']}),_0x4f8bde['transformByState']({'flipX':_0x306ac3['worldRect'][_0x17cb04(0x2d8)],'flipY':_0x306ac3['worldRect'][_0x17cb04(0x351)],'left':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x4d2)],'top':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x25a)],'width':_0x306ac3[_0x17cb04(0x299)][_0x17cb04(0x3bb)],'height':_0x306ac3['worldRect']['height'],'angle':_0x306ac3[_0x17cb04(0x40c)]}),_0x4f8bde[_0x17cb04(0x25d)](!0x0);let _0x262954=(_0x685fc5=(_0x346081=this[_0x17cb04(0x374)])==null?void 0x0:_0x346081[_0x17cb04(0x42c)])==null?_0x13be08:_0x685fc5;_0x262eac[_0x17cb04(0x462)]({'left':_0x262954['x']-_0x5b6709[_0x17cb04(0x389)][_0x17cb04(0x1f6)],'top':_0x262954['y']-_0x5b6709[_0x17cb04(0x389)][_0x17cb04(0x1f6)]});}[_0x209063(0x2e4)](_0x1261b9,_0x4a7fd6,_0x213d06,_0x2b4e18,_0x50e177){const _0x4a11c7=_0x209063;var _0x294663,_0x530441,_0x5caf01,_0x18eb12;let _0x55858e=(_0x294663=(_0x530441=this[_0x4a11c7(0x374)])==null?void 0x0:_0x530441[_0x4a11c7(0x42c)])==null?_0x1261b9:_0x294663,_0x8f2849=_0x5b6709['ConnectorCoordinateTransform'][_0x4a11c7(0x34c)](_0x4a7fd6,_0x55858e,_0x213d06);_0x2b4e18[_0x4a11c7(0x462)]({'flipX':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x2d8)],'flipY':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x351)],'left':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x4d2)],'top':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x25a)],'width':_0x8f2849['worldRect'][_0x4a11c7(0x3bb)],'height':_0x8f2849[_0x4a11c7(0x299)]['height'],'angle':_0x8f2849[_0x4a11c7(0x299)][_0x4a11c7(0x43d)]});let _0x489ba3=(_0x5caf01=(_0x18eb12=this['_currentConnectionTarget'])==null?void 0x0:_0x18eb12[_0x4a11c7(0x42c)])==null?_0x1261b9:_0x5caf01;_0x50e177[_0x4a11c7(0x462)]({'left':_0x489ba3['x']-_0x5b6709[_0x4a11c7(0x389)]['cxnPointRadius'],'top':_0x489ba3['y']-_0x5b6709[_0x4a11c7(0x389)]['cxnPointRadius']});}[_0x209063(0x244)](_0x302ff7){const _0xb0a045=_0x209063;if(!this['_unitId']||!this[_0xb0a045(0x489)])return null;let {shapeId:_0x260f4e,cxnIndex:_0x47bb3a}=_0x302ff7,_0x7cc723=this[_0xb0a045(0x488)]['getShapeModel'](this[_0xb0a045(0x30e)],this[_0xb0a045(0x489)],_0x260f4e);if(!_0x7cc723)return null;let _0x55363e=this[_0xb0a045(0x4e5)]['getDrawingByParam']({'unitId':this[_0xb0a045(0x30e)],'subUnitId':this[_0xb0a045(0x489)],'drawingId':_0x260f4e});if(!(_0x55363e!=null&&_0x55363e[_0xb0a045(0x267)]))return null;let {left:_0x27d594=0x0,top:_0x250308=0x0,width:_0x42720c=0x0,height:_0x3893e3=0x0,flipX:_0xa1d509=!0x1,flipY:_0x2053f8=!0x1,angle:_0x516386}=_0x55363e[_0xb0a045(0x267)];_0x7cc723['updateContext']({'width':_0x42720c,'height':_0x3893e3});let _0x3de815=_0x7cc723[_0xb0a045(0x42e)]()[_0xb0a045(0x2bd)](_0x3d0058=>_0x3d0058[_0xb0a045(0x1d9)]===_0x47bb3a);if(!_0x3de815)return null;let _0x382f0f=_0xa1d509?_0x42720c-_0x3de815['x']:_0x3de815['x'],_0x1d5f1e=_0x2053f8?_0x3893e3-_0x3de815['y']:_0x3de815['y'];if(_0x516386!==0x0&&_0x516386!=null){let _0x3aa705=_0x516386*Math['PI']/0xb4,_0x1259fa=Math['cos'](_0x3aa705),_0x25fd4f=Math['sin'](_0x3aa705),_0x437770=_0x42720c/0x2,_0x32c76b=_0x3893e3/0x2,_0x246285=_0x382f0f-_0x437770,_0x4f1c36=_0x1d5f1e-_0x32c76b;_0x382f0f=_0x437770+_0x246285*_0x1259fa-_0x4f1c36*_0x25fd4f,_0x1d5f1e=_0x32c76b+_0x246285*_0x25fd4f+_0x4f1c36*_0x1259fa;}_0x382f0f+=_0x27d594,_0x1d5f1e+=_0x250308;let _0x28c304=_0x3de815[_0xb0a045(0x3ee)]/0xea60;_0xa1d509&&(_0x28c304=0xb4-_0x28c304),_0x2053f8&&(_0x28c304=-_0x28c304),_0x28c304+=_0x516386||0x0,_0x28c304=(_0x28c304%0x168+0x168)%0x168;let _0x4b6b69=(0x0,_0x5b6709[_0xb0a045(0x4ad)])({'left':_0x27d594,'top':_0x250308,'width':_0x42720c,'height':_0x3893e3},_0x516386||0x0);return{'point':{'x':_0x382f0f,'y':_0x1d5f1e},'angle':_0x28c304,'bounds':_0x4b6b69};}[_0x209063(0x33f)](_0x3f3230,_0x36364d){const _0x322ab8=_0x209063;let _0x2e1811=_0x36364d['x']-_0x3f3230['x'],_0x4daa19=_0x36364d['y']-_0x3f3230['y'];return Math[_0x322ab8(0x482)](_0x2e1811)>=Math[_0x322ab8(0x482)](_0x4daa19)?_0x2e1811>=0x0?0xb4:0x0:_0x4daa19>=0x0?0x10e:0x5a;}[_0x209063(0x42b)](){const _0x1d8afd=_0x209063;this[_0x1d8afd(0x39d)]=void 0x0,this['_unitId']=void 0x0,this[_0x1d8afd(0x489)]=void 0x0,this['_clearShapeConnectorHandlerObjects']();}['dispose'](){const _0x2d1f4e=_0x209063;this[_0x2d1f4e(0x277)](),super[_0x2d1f4e(0x46a)]();}};_0x38186c=_0x276893([_0x3cbe95(0x1,_0x49d30a['ICommandService']),_0x3cbe95(0x2,_0x40dd84[_0x209063(0x2ba)]),_0x3cbe95(0x3,_0x510035['IDrawingManagerService']),_0x3cbe95(0x4,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x5,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x6,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x54179a)),_0x3cbe95(0x7,(0x0,_0x49d30a['Inject'])(_0x2b6d77))],_0x38186c);let _0x3d9ac3=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x2c5762,_0x28b24b,_0x2283a2){const _0xd703f4=_0x209063;super(),this[_0xd703f4(0x39e)]=_0x2c5762,this['_drawingManagerService']=_0x28b24b,this[_0xd703f4(0x439)]=_0x2283a2,this[_0xd703f4(0x1ef)]();}['_initPrinting'](){const _0x30856d=_0x209063;this[_0x30856d(0x3df)](this['_sheetPrintInterceptorService'][_0x30856d(0x348)][_0x30856d(0x1f2)](this[_0x30856d(0x39e)]['interceptor'][_0x30856d(0x495)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1cb567,_0x4fced3,_0x378326)=>{const _0x32f82a=_0x30856d;var _0x141b53;let {unitId:_0x1a97fe,subUnitId:_0xae5523,scene:_0x55ba6e,resourceCollector:_0x4003a2}=_0x4fced3,_0x24c60f=(_0x141b53=this[_0x32f82a(0x4e5)]['getDrawingDataForUnit'](_0x1a97fe))==null?void 0x0:_0x141b53[_0xae5523];return _0x24c60f==null||_0x24c60f[_0x32f82a(0x235)]['forEach'](_0x401e16=>{const _0x371079=_0x32f82a;let _0x397d9f=_0x24c60f[_0x371079(0x417)][_0x401e16];_0x397d9f[_0x371079(0x3e8)]===_0x49d30a[_0x371079(0x365)][_0x371079(0x4fe)]&&!_0x397d9f[_0x371079(0x29b)]&&this[_0x371079(0x439)][_0x371079(0x287)](_0x397d9f,_0x55ba6e,{'resourceCollector':_0x4003a2});}),_0x378326(_0x1cb567);}}));}};_0x3d9ac3=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a['Inject'])(_0x100e66[_0x209063(0x3c7)])),_0x3cbe95(0x1,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fc7b5))],_0x3d9ac3);let _0x54b75c=class extends _0x49d30a[_0x209063(0x2ce)]{constructor(_0x3a71dd,_0x45e7d2,_0x387f17){const _0x2eb91a=_0x209063;super(),this['_commandService']=_0x3a71dd,this[_0x2eb91a(0x2de)]=_0x45e7d2,this[_0x2eb91a(0x443)]=_0x387f17,this[_0x2eb91a(0x252)]();}['_initPermission'](){const _0x4e0317=_0x209063;this[_0x4e0317(0x3df)](this[_0x4e0317(0x240)][_0x4e0317(0x401)](_0x5a1951=>{const _0x2497a0=_0x4e0317;let _0x512df6,_0x32f5d6;if(_0x5a1951['id']===_0x4eb2ab['InsertShapeCommand']['id']||_0x5a1951['id']===_0x4eb2ab[_0x2497a0(0x435)]['id']||_0x5a1951['id']===_0x4eb2ab[_0x2497a0(0x3de)]['id']){let _0x4e51e4=_0x5a1951[_0x2497a0(0x2c7)];_0x512df6=_0x4e51e4[_0x2497a0(0x441)],_0x32f5d6=_0x4e51e4[_0x2497a0(0x2fe)];}!_0x512df6||!_0x32f5d6||this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x4fbea5[_0x2497a0(0x228)]],'worksheetTypes':[_0x4fbea5[_0x2497a0(0x2cc)]]},_0x512df6,_0x32f5d6)||this['_sheetPermissionCheckController'][_0x2497a0(0x2f9)](this[_0x2497a0(0x2de)]['t'](_0x2497a0(0x49b)));}));}};_0x54b75c=_0x276893([_0x3cbe95(0x0,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['ICommandService'])),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x3e6)])),_0x3cbe95(0x2,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x4fbea5[_0x209063(0x2e6)]))],_0x54b75c);let _0xed137=class extends _0x49d30a['Disposable']{constructor(_0x3d5769,_0x573d0d,_0x13abeb,_0x136f42,_0x16677d,_0x4024b4,_0x1c93a2,_0x778a4a,_0x355501,_0x8bb5e5,_0x4b9601){const _0x3f3b8b=_0x209063;super(),this['_univerInstanceService']=_0x3d5769,this[_0x3f3b8b(0x420)]=_0x573d0d,this[_0x3f3b8b(0x38a)]=_0x13abeb,this[_0x3f3b8b(0x488)]=_0x136f42,this['_localeService']=_0x16677d,this[_0x3f3b8b(0x240)]=_0x4024b4,this[_0x3f3b8b(0x4e5)]=_0x1c93a2,this[_0x3f3b8b(0x32a)]=_0x778a4a,this[_0x3f3b8b(0x3b1)]=_0x355501,this[_0x3f3b8b(0x40d)]=_0x8bb5e5,this[_0x3f3b8b(0x325)]=_0x4b9601,_0x28368a(this,'_sidebarDisposable',null),_0x28368a(this,_0x3f3b8b(0x2ad),null),_0x28368a(this,_0x3f3b8b(0x354),!0x1),_0x28368a(this,_0x3f3b8b(0x292),0x0),_0x28368a(this,_0x3f3b8b(0x44a),new Set()),_0x28368a(this,'_disposePopups',[]),this[_0x3f3b8b(0x1e7)](),this[_0x3f3b8b(0x3df)](this[_0x3f3b8b(0x2be)]['getCurrentTypeOfUnit$'](_0x49d30a[_0x3f3b8b(0x276)][_0x3f3b8b(0x295)])[_0x3f3b8b(0x4d3)](_0x478d68=>{if(!_0x478d68){var _0x427410;(_0x427410=this['_sidebarDisposable'])==null||_0x427410['dispose']();return;}this['_createShapePopupMenu'](_0x478d68);})),this[_0x3f3b8b(0x2a7)](),this['_registerShapeMenu'](),this[_0x3f3b8b(0x1fe)](),this[_0x3f3b8b(0x3df)](this['_shapeTextEditingService']['editingParams$'][_0x3f3b8b(0x4d3)](_0x5e7fbc=>{const _0x1e02ae=_0x3f3b8b;_0x5e7fbc&&this[_0x1e02ae(0x2a1)]();}));}[_0x209063(0x1e7)](){const _0x510d1d=_0x209063;this[_0x510d1d(0x38a)]['mergeMenu'](_0xbe3a61);}['_registerShapeMenu'](){const _0x4b5d0d=_0x209063;this[_0x4b5d0d(0x32a)]['registerFeatureMenu'](_0x49d30a[_0x4b5d0d(0x365)]['DRAWING_SHAPE'],this[_0x4b5d0d(0x4b7)][_0x4b5d0d(0x293)](this)),this['_sheetCanvasPopManagerService'][_0x4b5d0d(0x307)](_0x49d30a[_0x4b5d0d(0x365)][_0x4b5d0d(0x4fe)],0x6,0x4);}[_0x209063(0x1fe)](){const _0x186a94=_0x209063;this[_0x186a94(0x2be)]['getAllUnitsForType'](_0x49d30a[_0x186a94(0x276)]['UNIVER_SHEET'])[_0x186a94(0x250)](_0x384b25=>this[_0x186a94(0x2fc)](_0x384b25));}[_0x209063(0x4b7)](_0x5c262a,_0x2266a3,_0x372e89,_0x4066f1){const _0x53e4a2=_0x209063;return[{'label':_0x53e4a2(0x26d),'index':0x0,'commandId':_0x5e6950['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89},'disable':_0x4066f1===_0x49d30a['DrawingTypeEnum'][_0x53e4a2(0x21f)]},{'label':_0x53e4a2(0x493),'index':0x1,'commandId':_0x28a390['RemoveSheetDrawingCommand']['id'],'commandParams':{'unitId':_0x5c262a,'drawings':[{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89,'drawingType':_0x4066f1}]},'disable':!0x1},{'label':_0x53e4a2(0x1e6),'index':0x2,'commandId':_0x1810f4['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'drawingId':_0x372e89},'disable':!0x1},{'label':_0x53e4a2(0x504),'index':0x3,'commandId':_0x4eb2ab['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'flipH':!0x0},'disable':!0x1},{'label':_0x53e4a2(0x3ba),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x32f)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'flipV':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.rotateRight90','index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x220)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'rotate':0x5a},'disable':!0x1},{'label':_0x53e4a2(0x448),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x220)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89,'rotate':-0x5a},'disable':!0x1},{'label':_0x53e4a2(0x4b8),'index':0x4,'commandId':_0x4eb2ab[_0x53e4a2(0x3ec)]['id'],'commandParams':{'unitId':_0x5c262a,'subUnitId':_0x2266a3,'shapeId':_0x372e89},'disable':!0x1}];}['_getShapeInfo'](_0x3c9afc,_0x43c003,_0x462f57){const _0x4c702b=_0x209063;let _0x5cee1e=this[_0x4c702b(0x488)][_0x4c702b(0x4f8)](_0x3c9afc,_0x43c003,_0x462f57),_0x5745d7=this[_0x4c702b(0x488)][_0x4c702b(0x27c)](_0x3c9afc,_0x43c003,_0x462f57);return _0x5cee1e!==void 0x0&&_0x5745d7!==void 0x0?{'shapeData':_0x5745d7,'shapeId':_0x462f57,'shapeType':_0x5cee1e,'unitId':_0x3c9afc,'subUnitId':_0x43c003,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x43f7b1){const _0x370285=_0x209063;if(!_0x43f7b1)return;let _0xedd5db=_0x43f7b1['getUnitId']();this[_0x370285(0x40d)][_0x370285(0x38c)](_0xedd5db)&&!this[_0x370285(0x44a)][_0x370285(0x38c)](_0xedd5db)&&(this['_popupMenuListener'](_0xedd5db),this[_0x370285(0x44a)][_0x370285(0x449)](_0xedd5db));}['_clearPopups'](){const _0x3ad881=_0x209063;this[_0x3ad881(0x384)][_0x3ad881(0x250)](_0x17f0e7=>_0x17f0e7[_0x3ad881(0x46a)]()),this[_0x3ad881(0x384)][_0x3ad881(0x28f)]=0x0;}['_popupMenuListener'](_0x34d460){const _0x2c3b6f=_0x209063;var _0x3ea3aa;let _0x53d226=(_0x3ea3aa=this[_0x2c3b6f(0x40d)][_0x2c3b6f(0x2f7)](_0x34d460))==null?void 0x0:_0x3ea3aa[_0x2c3b6f(0x349)],_0x510de7=_0x53d226==null?void 0x0:_0x53d226['getTransformerByCreate']();!_0x53d226||!_0x510de7||(this[_0x2c3b6f(0x3df)](_0x510de7[_0x2c3b6f(0x37b)][_0x2c3b6f(0x4d3)](()=>{const _0xa27a7=_0x2c3b6f;let _0x5b29a5=_0x510de7[_0xa27a7(0x445)]();if(this[_0xa27a7(0x2a1)](),this[_0xa27a7(0x354)]||_0x5b29a5['size']>0x1)return;let _0x46249c=_0x5b29a5[_0xa27a7(0x1e1)]()[_0xa27a7(0x241)]()[_0xa27a7(0x2b4)];if(!_0x46249c)return;let _0x46ef7e=this[_0xa27a7(0x4e5)][_0xa27a7(0x410)](_0x46249c[_0xa27a7(0x35b)]);if(!_0x46ef7e||_0x46ef7e['drawingType']!==_0x49d30a[_0xa27a7(0x365)]['DRAWING_SHAPE'])return;let {unitId:_0x58d1da,subUnitId:_0x18eab2,drawingId:_0x56ca21,drawingType:_0x54200a}=_0x46ef7e,_0x4a9446=this[_0xa27a7(0x2c9)](_0x58d1da,_0x18eab2,_0x56ca21);if(!_0x4a9446)return;this[_0xa27a7(0x3b1)][_0xa27a7(0x29d)](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x32c226=this['_sheetCanvasPopManagerService'][_0xa27a7(0x1ec)](_0x46249c,{'componentKey':_0x15b03d,'direction':'top-center','offset':[0x0,_0xa40d9e[_0xa27a7(0x26a)]],'extraProps':{'unitId':_0x58d1da,'subUnitId':_0x18eab2,'drawingId':_0x56ca21,'drawingType':_0x54200a,'shapeType':_0x4a9446['shapeType'],'shapeData':_0x4a9446[_0xa27a7(0x4d4)]}});this[_0xa27a7(0x384)]['push'](this[_0xa27a7(0x3df)](_0x32c226)),this[_0xa27a7(0x4e5)][_0xa27a7(0x3c2)]()[_0xa27a7(0x2bd)](_0x17c7c7=>_0x17c7c7[_0xa27a7(0x441)]===_0x58d1da&&_0x17c7c7[_0xa27a7(0x2fe)]===_0x18eab2&&_0x17c7c7[_0xa27a7(0x2e9)]===_0x56ca21)||this[_0xa27a7(0x4e5)][_0xa27a7(0x310)]([{'unitId':_0x58d1da,'subUnitId':_0x18eab2,'drawingId':_0x56ca21}]);})),this['disposeWithMe'](_0x510de7['clearControl$']['subscribe'](()=>{const _0x4e2a5a=_0x2c3b6f;this[_0x4e2a5a(0x2a1)](),this['_contextService'][_0x4e2a5a(0x29d)](_0x49d30a[_0x4e2a5a(0x23f)],!0x1),this['_drawingManagerService'][_0x4e2a5a(0x310)](null);})),this['disposeWithMe'](_0x510de7['changing$'][_0x2c3b6f(0x4d3)](()=>{this['_clearPopups']();})),this['disposeWithMe'](_0x510de7[_0x2c3b6f(0x275)][_0x2c3b6f(0x4d3)](()=>{this['_clearPopups']();})));}[_0x209063(0x2a7)](){const _0x1a45a7=_0x209063;this[_0x1a45a7(0x3df)](this['_commandService'][_0x1a45a7(0x4cc)](_0x327847=>{const _0x4fedc2=_0x1a45a7;if(_0x327847['id']===_0x5e6950['id']){let {unitId:_0x34437f,subUnitId:_0x4a44b2,drawingId:_0x15fd94}=_0x327847[_0x4fedc2(0x2c7)];this['_shapeEditPanelVersion']+=0x1,this[_0x4fedc2(0x2ad)]=this[_0x4fedc2(0x2c9)](_0x34437f,_0x4a44b2,_0x15fd94),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x327847['id']===_0x1810f4['id']&&(this[_0x4fedc2(0x2ad)]=null,this['_closeShapeEditPanel']()),_0x327847['id']===_0x4eb2ab[_0x4fedc2(0x273)]['id']){let {unitId:_0x2d1d81,subUnitId:_0x1e9e65,shapeId:_0x207533}=_0x327847[_0x4fedc2(0x2c7)];if(this['_activeShapeInfo']&&this[_0x4fedc2(0x2ad)]['shapeId']===_0x207533){let _0x23704c=this[_0x4fedc2(0x2c9)](_0x2d1d81,_0x1e9e65,_0x207533);_0x23704c&&(this[_0x4fedc2(0x292)]+=0x1,_0x23704c[_0x4fedc2(0x45b)]=this[_0x4fedc2(0x292)],this[_0x4fedc2(0x2ad)]=_0x23704c,this[_0x4fedc2(0x354)]&&this[_0x4fedc2(0x30f)]());}}})),this[_0x1a45a7(0x3df)](this['_drawingManagerService']['focus$']['subscribe'](_0x4d22af=>{const _0x544f08=_0x1a45a7;if(this[_0x544f08(0x354)]===!0x1)return;if(_0x4d22af[_0x544f08(0x28f)]===0x0){this[_0x544f08(0x2ad)]=null,this[_0x544f08(0x40a)]();return;}if(_0x4d22af[_0x544f08(0x28f)]===0x1&&_0x4d22af[0x0][_0x544f08(0x3e8)]===_0x49d30a[_0x544f08(0x365)][_0x544f08(0x4fe)]&&(this[_0x544f08(0x292)]+=0x1,this[_0x544f08(0x2ad)]=this[_0x544f08(0x2c9)](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0x544f08(0x30f)]();return;}let _0x381ca4=_0x4d22af[_0x544f08(0x3a4)](_0x36dcae=>_0x36dcae[_0x544f08(0x3e8)]===_0x49d30a[_0x544f08(0x365)]['DRAWING_SHAPE']);if(_0x4d22af[_0x544f08(0x28f)]>0x1&&_0x381ca4[_0x544f08(0x28f)]===_0x4d22af[_0x544f08(0x28f)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x544f08(0x2ad)]=this[_0x544f08(0x2c9)](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0][_0x544f08(0x2e9)]),this[_0x544f08(0x2ad)]){this[_0x544f08(0x30f)]();return;}}else{if(this[_0x544f08(0x292)]+=0x1,this[_0x544f08(0x2ad)]=this['_getShapeInfo'](_0x4d22af[0x0][_0x544f08(0x441)],_0x4d22af[0x0][_0x544f08(0x2fe)],_0x4d22af[0x0]['drawingId']),this[_0x544f08(0x2ad)]){this[_0x544f08(0x2ad)][_0x544f08(0x42d)]=!0x0,this[_0x544f08(0x30f)]();return;}}this[_0x544f08(0x40a)]();}));}[_0x209063(0x30f)](){const _0x2ab053=_0x209063;this[_0x2ab053(0x2ad)]&&(this[_0x2ab053(0x281)]=this[_0x2ab053(0x420)][_0x2ab053(0x2cd)]({'id':_0x1e65b6,'header':{'title':this[_0x2ab053(0x2de)]['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':_0x1e65b6,...this[_0x2ab053(0x2ad)]},'onClose':()=>{const _0x21e86b=_0x2ab053;this[_0x21e86b(0x4e5)][_0x21e86b(0x310)](null),this[_0x21e86b(0x3b1)]['setContextValue'](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x21e86b(0x281)]=null;}}),this[_0x2ab053(0x354)]=!0x0);}[_0x209063(0x40a)](){const _0x487feb=_0x209063;this[_0x487feb(0x354)]=!0x1,this['_sidebarService'][_0x487feb(0x336)](_0x1e65b6),this[_0x487feb(0x281)]=null,this['_contextService'][_0x487feb(0x29d)](_0x49d30a['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x487feb(0x310)](null);}};_0xed137=_0x276893([_0x3cbe95(0x0,_0x49d30a[_0x209063(0x31b)]),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0xa9133b[_0x209063(0x37c)])),_0x3cbe95(0x2,_0xa9133b[_0x209063(0x422)]),_0x3cbe95(0x3,(0x0,_0x49d30a['Inject'])(_0x4eb2ab[_0x209063(0x264)])),_0x3cbe95(0x4,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x49d30a['LocaleService'])),_0x3cbe95(0x5,_0x49d30a['ICommandService']),_0x3cbe95(0x6,_0x510035[_0x209063(0x239)]),_0x3cbe95(0x7,(0x0,_0x49d30a['Inject'])(_0x100e66[_0x209063(0x302)])),_0x3cbe95(0x8,_0x49d30a[_0x209063(0x4f6)]),_0x3cbe95(0x9,_0x40dd84[_0x209063(0x2ba)]),_0x3cbe95(0xa,(0x0,_0x49d30a[_0x209063(0x47f)])(_0x3da7be))],_0xed137);let _0x412986=class extends _0x49d30a[_0x209063(0x1cc)]{constructor(_0x1e4d12=_0x3d157b,_0x130bd9,_0x10b77d,_0x559c51,_0xd145fa){const _0x48635f=_0x209063;super(),this[_0x48635f(0x4ea)]=_0x1e4d12,this['_injector']=_0x130bd9,this[_0x48635f(0x240)]=_0x10b77d,this[_0x48635f(0x332)]=_0x559c51,this[_0x48635f(0x40d)]=_0xd145fa;let {..._0x2b9487}=(0x0,_0x49d30a[_0x48635f(0x49e)])({},_0x3d157b,this[_0x48635f(0x4ea)]);this[_0x48635f(0x332)][_0x48635f(0x269)](_0x48635f(0x47b),_0x2b9487),this[_0x48635f(0x346)]();}[_0x209063(0x288)](){const _0x5d2331=_0x209063;(0x0,_0x49d30a[_0x5d2331(0x1ed)])(this[_0x5d2331(0x27a)],[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x3d9ac3]]);}['onSteady'](){const _0x517366=_0x209063;this[_0x517366(0x27a)][_0x517366(0x4cd)](_0xed137)[_0x517366(0x1fe)]();}['onReady'](){const _0xc7f959=_0x209063;[[_0x2b6d77],[_0x54179a],[_0x21fb53]][_0xc7f959(0x250)](_0x56d616=>this[_0xc7f959(0x27a)][_0xc7f959(0x449)](_0x56d616)),(0x0,_0x49d30a[_0xc7f959(0x1ed)])(this['_injector'],[[_0x21fb53],[_0x54179a]]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a['UniverInstanceType'][_0xc7f959(0x295)],[_0x2b6d77]),this['_renderManagerService']['registerRenderModule'](_0x49d30a[_0xc7f959(0x276)]['UNIVER_SHEET'],[_0x43f6ab]),this['_renderManagerService']['registerRenderModule'](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x295)],[_0x38186c]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x295)],[_0x312b3e]),this[_0xc7f959(0x40d)][_0xc7f959(0x334)](_0x49d30a[_0xc7f959(0x276)][_0xc7f959(0x4b9)],[_0x24a7bf]);}[_0x209063(0x46f)](){const _0x593e15=_0x209063;this[_0x593e15(0x27a)][_0x593e15(0x449)]([_0x58c754]),this['_injector'][_0x593e15(0x4cd)](_0x58c754);let _0x407638=this[_0x593e15(0x27a)];[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x3d9ac3],[_0x4aab0f],[_0x3da7be],[_0x19f29c],[_0x43d42e],[_0x54b75c]]['forEach'](_0x237498=>_0x407638[_0x593e15(0x449)](_0x237498)),(0x0,_0x49d30a[_0x593e15(0x1ed)])(this[_0x593e15(0x27a)],[[_0xed137],[_0x2d94be],[_0x4fc7b5],[_0x4aab0f],[_0x3da7be],[_0x19f29c],[_0x43d42e],[_0x54b75c]]);}[_0x209063(0x346)](){const _0x49bf95=_0x209063;[_0x454166,_0x39f376,_0x1810f4,_0x5e6950,_0x3dd6d4,_0x2d736f][_0x49bf95(0x250)](_0x447740=>this[_0x49bf95(0x3df)](this['_commandService'][_0x49bf95(0x4ae)](_0x447740)));}};_0x28368a(_0x412986,_0x209063(0x2f5),_0x49d30a[_0x209063(0x276)]['UNIVER_SHEET']),_0x28368a(_0x412986,_0x209063(0x4cb),_0x209063(0x226)),_0x28368a(_0x412986,_0x209063(0x28c),_0x102c9e),_0x28368a(_0x412986,_0x209063(0x45b),_0x2234cd),_0x412986=_0x276893([(0x0,_0x49d30a[_0x209063(0x4fa)])(_0x9f095[_0x209063(0x207)],_0xa40d9e[_0x209063(0x255)],_0x4c7223['UniverSheetsDrawingUIPlugin'],_0x4eb2ab['UniverSheetsShapePlugin']),_0x3cbe95(0x1,(0x0,_0x49d30a['Inject'])(_0x49d30a[_0x209063(0x368)])),_0x3cbe95(0x2,_0x49d30a[_0x209063(0x4c5)]),_0x3cbe95(0x3,_0x49d30a['IConfigService']),_0x3cbe95(0x4,_0x40dd84[_0x209063(0x2ba)])],_0x412986),_0x11b69c[_0x209063(0x2a4)]=_0xbe3a61,Object[_0x209063(0x496)](_0x11b69c,_0x209063(0x21d),{'enumerable':!0x0,'get':function(){return _0x412986;}});}));
|
|
1
|
+
function _0x19bc(){const _0x1d9f57=['getObjectIncludeInGroup','classType','onReady','horizontal','clone','dataModel','ObjectListPanelBase','_baseHeight','getImageSourceCache','setHighlighted','computeConnectorRouteLayout','useObservable','#4285f4','render','_executeResizeCommand','function','getCurrentTypeOfUnit$','getDrawingOKey','startArrow','calculate','defs','isInGroup','_formulaAnimation','sheet.command.update-shape-data','params','DocumentSkeleton','getRenderUnitById','ShapeTypeEnum','_draw','REMOVE','CURSOR_TYPE','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','ArrangeTypeEnum','getObjectListPanelLabels','_getShapeAdjustInfosById','custom','isRender','Vector2','_adjName','translateWithPrecision','sheet.menu.shape.flip-vertical','_baseShapeHeight','_sheetDrawingShapeRenderController','_showConnectionSites','permissionCheckWithoutRange','_onSavingEditorData$','_executeConnectionCommand','_drawRichTextLayer','useMemo','_shapeService','_drawRichText','onerror','UniverIcon','_handleConnectedEndpointPointerUp','DRAWING_VIDEO','setAdjustValueByName','_commandService','attrs','_generatePasteMutations','sheets-shape-ui.objectListPanel.title','_shapeTextEditingService','mask','SHAPE','delete','setFormulaPresentation','_createCopyInfoByRange','_sheetClipboardService','ContextMenuPosition','_imageShapeClipController','offsetY','_drawingType','updateLinePoints','cxnPointFill','_rerouteConnectorLine','getDrawingShapeKeyByDrawingSearch','getConnectorLinePoints','FlipHorizontalIcon','generateRandomId','setPrstGeom','onTransformChange$','startX','M8\x2014V14.2','_registerDrawingFocusChangeHandler','DocSelectionRenderService','getUnit','@univerjs/docs-ui','_addShapeConnectorHandlerObjects','axisAlignSheetTransform','_disposed','196382AJfFMQ','merge','prstGeomAdjValues','_clearShapeConnectorHandlerObjects','VIEW_MAIN_LEFT','ShapeIcon','2230020DDThTe','isHitLine','popup','getBasicShapeRotateBound','onPointerMove$','SHEET_VIEWPORT_KEY','close','memo','removeLinePoints','resolveFormulaShapeAutoFitSize','onRendered','forEach','clip-adj-','set','defIds','completeEditing','SolidFill','drawWith','_formulaKey','registerClipDelegate','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','UniverUi','M2.6\x203.3L6.2\x208L2.6\x2012.7V3.3Z','Rect','Large','changeEnd$','transform','_releaseRenderCache','getMatrix','intercept','setShouldShowAdjust','getUnitId','isHorizontal','worldPoints','sheets-shape-ui.objectListPanel.open','WorksheetEditPermission','UniverSheetsPlugin','setConfig','shapeId','doc','prototype','ComponentManager','getConnectionSiteList','jsx','get','_calculateFreeEndpointAngle','formulaBinding','_transform','addObject','_handleFreeEndpointMove','sheet.shape.object-list.panel','UniverSheetsUi','length','createElement','visible','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','ShapeModel','canvas','@univerjs-pro/shape-editor-ui','_props','registerFeaturePasteHook','URL','EMPTY','setOnSavingEditorData','FOCUSING_SHAPE_TEXT_EDITOR','MenuItemType','_highlightedSiteIndex','data','UniverDrawingPlugin','colorChannel1','gradientEndColor','computeStraightConnectorLayout','drawingType','image','_baseShapeTop','ImageSourceTypeEnum','localToWorld','updateShapeFillImage','toDisposable','replace','UniverShapeEditorPlugin','_activeImageId','getSheetCommandTarget','ShapeDefaultConfig','IImageIoService','getSheetId','isLineShape','DrawingApplyType','_shapeUpdateListener','getActiveSheet','ISheetClipboardService','_setTransForm','update$','_isConnecting','6GKVJQu','point','@univerjs/sheets-ui','UniverSheetsShapePlugin','_lastEditingShapeKey','clipHeight','getSkeleton','SetDrawingArrangeCommand','unsubscribe','DrawingImageClipService','getSelectedObjectMap','VerticalAlign','_sheetsShapeService','calcAdjValues','_initCopyPaste','url(#$1','_sheetCanvasPopManagerService','_isHighlighted','sheet.operation.open-sheet-shape-format-panel','getZoomRatio','useState','0\x200\x2016\x2016','useReducer','create','@univerjs/ui','RemoveSheetsShapeMutation','_urlImageService','parent','adjustValues','switchMap','_applyFormulaAutoFitSize','sheetViewStartColumn','getTransformerByCreate','_baseWidth','ToggleSheetsShapeFlipCommand','fillImageSourceType','M14\x208H14.2','isHit','unitId','SELECTOR','useRef','sheet.shape.edit.panel','_initPrinting','extensionGroups','_getShapeAdjustPointListById','current','UniverProLicense','svg','keys','getEndConnectInfo','undo','focus$','SolidLine','refreshTransform','prepareShapeTextDocumentData','getBentTypeFromPoints','Shape','Observable','OBJECT_LIST_FLOATING_SECTION_ID','PictureFill','decorate','INSERT','xlink:href','setContextValue','_config','getParent','_registerComponents','@univerjs/engine-render','offsetX','_injector','copyType','_clearConnectionSites','_getOrCreateShapeModel','getUnitType','objects','getOwnPropertyDescriptor','SheetsShapeService','sheets-shape-ui.flipHorizontal','isRichText','plainShapeTextToDocumentData','worldPoint','getCurrentScrollState','_activeTargetShapeId','SetDrawingSelectedOperation','240823dJnXYN','UniverDocs','clearActiveDrawingObjects','UniverProSheetsShapeUi','getShapeDataById','_renderManagerService','clearAdjustValue','complete','attachRangeWithCoord','changing$','error','onStarting','ShapeTextEditorContainer','includes','Image','filter','SetSheetDrawingCommand','_generateCopyPasteMutations','getDrawingEditable','fillType','transformToDrawingPosition','_handleBasicShapeUpdateConnectorLineShape','setCursor','useEffect','ShapeRenderModeEnum','Injector','VIEW_MAIN_LEFT_TOP','_isOpenedShapeEditPanel','viewportScrollX','debounceRefreshControls','_initPermission','getDrawingByParam','entries','RibbonInsertGroup','iterator','fontFamily','getValue','UpdateSheetsShapeDataMutation','BUTTON','image-clip-adjust-point-','_sidebarService','_baseTop','useFormulaShapeToolbar','DRAWING_OBJECT_LAYER_INDEX','IConfigService','substring','shape-adjust-point-','_createControls','routeConnectorLineShape','dom','applyPoint','_drawingAddListener','strokeWidth','@univerjs/drawing','currentColor','marginTop','stroke','SheetScrollManagerService','OPERATION','SetDrawingApplyMutation','_attachAdjustEvent','M8\x206.2V7.8','index','_initEvents','createShapeFormulaDocument','displayName','UniverEngineRender','trim','UniverDrawingUIPlugin','remove$','endArrow','doc.image-clip.shape-picker.component','SheetsSelectionsService','srcRect','getTransformer','SheetPermissionCheckController','_isShouldShowDrawingShapeAdjust','getAdjustInfoByName','WorkbookEditablePermission','resolveShapeTextEditorWrapStrategy','_initCommands','FlipVerticalIcon','flip-horizontal-icon','default','DRAWING_TABLE','_addShapeAdjustControl','contentVerticalOffset','getFocusDrawings','_transformCalculateSrcRect','getMenuHiddenObservable','isDrawingObject','_cxtHandlerPointerUp','_initSheetChange','_localeService','renderDrawingShape','clearAdjustControls','disableObjectsEvent','none','getSkeletonParam','sheet.operation.close-sheet-shape-format-panel','size','isStartConnectorPoint','_formulaShapes','blockExecuteWithoutPermission','getPresentation','SheetCanvasPopManagerService','_registerGroupFeaturePasteHook','_activeAdjustInfo','_updateAdjustControlPositions','TOP','focusDrawing','724779bFSUyR','shapeModel','_baseLeft','_getZoomRatio','_sheetPrintInterceptorService','drawFormulaShapeAnimationLayers','Disposable','IRenderManagerService','add','Circle','getTextModel','UniverDrawing','resolveShapeTextEditorBehaviorShapeData','has','object','wrapStrategy','refreshAdjustControls','Documents','shapeType','ConnectorCoordinateTransform','assign','_clearShapeAdjustControls','_drawingRenderService','DrawingTypeEnum','_isDrawingShapePointDown','_disposePopups','ShapePickerDropdown','map','_activeAdjustPointList','_connectorObjects','_clearControls','DRAWING_CHART','PREDEFINED_HOOK_NAME','activeSheet$','viewportScrollY','subscribeEvent','getScene','getConnectionInfo','_createShapeAdjustControls','_currentUniverService','UniverSheetsDrawingPlugin','_baseDrawingRect','_unitId','left','setFillImage','slice','_attachConnectorObjectEvent','_getConnectionSiteAngle','name','getShapeTextData','Inject','sheets-shape-ui.flipVertical','version','ShapePickerPanel','LEFT','getBasicShapeRelation','from','updateConnectionDetection','_isImagePointerDown','DRAWING','_executeConnectedRouteResizeCommand','table','_generateCutPasteMutations','DocumentViewModel','_addControl','draw','DEFAULT_PASTE','UniverProEngineShape','useDependency','reverse','_connectionSiteObjects','unregister','resize','_loadShapePictureFill','lineShapeId','value','composeMatrix','Line','_updateSrcRectByTransform','160924eIlKwh','resetCursor','CommandType','setEditing','redo','ISheetDrawingService','_currentScene','cancelEditing','CUT','sheets-shape-ui.formatShape','isEditing','forwardRef','_contextService','getShapeModel','UUID','sectionCanvas','pluginName','IContextService','translate','_focusedDrawings','_registerMoveHandler','type','IUndoRedoService','_loadAndSetImage','sheet.command.menu-insert-shape','_initEditingParams','SheetShapeTextEditorContainer','symbol','getShapeTypeById','string','SheetInterceptorService','UniverLicensePlugin','worldRect','InsertSheetsShapeMutation','jsxs','scene','@univerjs/sheets-drawing-ui','preValue','_iconManager','_imageIoService','rotation','_getConnectPointInfo','touchDependencies','sheets-shape-ui.insertShape','_adjHandlerPointerUp','SheetSkeletonService','round','ShapeArrowTypeEnum','_shapeRenderController','values','_updateImageAdjValues','FormulaShapeAnimationController','20485RpPkIr','_openShapeEditPanel','ancestorTransform','_createShapePopupMenu','_updateShapeAdjustControls','shapeText','_adjHandlerPointerMove','getShapeType','packageName','UpdateConnectorRelationCommand','sheet.image-clip.shape-picker.component','_activeShapeId','COPY_TYPE','ShapeEditPanel','call','80ynMxJw','setSrcRect','_closeShapeEditPanel','getInterceptPoints','_hasReset','InsertShapeCommand','shape','_getImagePrstGeom','fill','getDrawingData','None','dispose','parse','start','IUniverInstanceService','getAdjustValueByName','onCommandExecuted','subscribe','1.0.0-alpha.8','adjHandleSize','_activeShapeInfo','M2.2\x208H3.8','beginPath','lineType','buildShapeTextDataUpdate','UniverDocsUi','_registerFocusChangeHandler','shouldClipShapeTextDocument','setShapeProps','attachTransformerTo','@univerjs/sheets-drawing','resourceCollector','_subUnitId','animationEnabled','IDrawingManagerService','UPDATE','prstGeom','_univerInstanceService','_activeShapeModel','getCurrentLastSelection','selectable','getDrawingVisible','getBatchRemoveOp','getDrawingEffectBounds','height','contentHeight','M13.4\x203.3L9.8\x208L13.4\x2012.7V3.3Z','getObjectListPanelTypeName','_handleConnectorPointerUp','adjName','onPointerDown$','stopPropagation','_currentConnectionTarget','@univerjs-pro/shape-editor','getBatchAddOp','DocSelectionManagerService','_drawingManagerService','_initMenu','_getImageDrawingInfo','_resetState','adjHandleStroke','DRAWING_GROUP','getObject','normal','_shapes','_sheetSkeletonService','flipY','DrawingCommonPanel','SheetSkeletonManagerService','@univerjs-pro/sheets-shape','refreshShapeFillImage','push','ICommandService','_insertingShapeKeys','_registerImageShapeClipDelegate','sin','IconManager','getEditing','Fragment','updateContext','getViewportByCell','insertGroupObject','open','_isStartAdjusting','1em','angle','group','mergeMenu','startWith','_getScrollInfo','_registerDrawingMoveHandler','idSuffix','_targetShapeId','transformByState','HorizontalAlign','use','_draggingConnectorId','shapeKey','_sheetInterceptorService','SheetsShapeUIMenuSchema','enableObjectsEvent','restore','_init','interceptor','_initializedShapePopupMenu','UniverRenderEnginePlugin','getImage','ISidebarService','react','1329342MDkjGp','DRAWING_DOM','text','_baseShapeWidth','ShapeLineTypeEnum','with','indexOf','Plugin','fillImageSource','getShapeData','410MIpYXe','_handleFreeEndpointPointerUp','_context','_shapeFormulaService','_cxnIndex','_registerIcons','register','@univerjs/drawing-ui','ShapeTextFloatToolbar','DocumentDataModel','IMenuManagerService','_cxtHandlerPointerMove','transformForAngle','onSavingEditorData$','_getDrawingRect','width','vertical','hidden','getObjectListPanelSectionIdForDrawingType','getState','presentation','_activeShapeAdjustPointList','ObjectLayersIcon','isRenderLinePointsMode','UNIVER_DOC','syncExecuteCommand','cos','UniverSheetsUIPlugin','stringify','next','getShapeTextRect','getStartConnectInfo','connection-site-','discreteRangeToRange','_baseShapeLeft','subUnitId','cxnPointRadius','_handleConnectedEndpointMove','featurePluginUpdateNotification','_findNearestConnectionSite','COMMAND','_reset','_addShapeConnectorHandlerObject','_clearPopups','RemoveSheetDrawingCommand','UpdateLineShapeResizeCommand','_drawSimpleText','shouldAllowShapeTextEditorHostSizeShrink','#1a73e8','_copyInfo','_clipService','getRealBound','drawing.operation.set-drawing-active','executeCommand','updateDocumentStyle','clip-','resolveShapeTextDocumentRenderLayout','cxnIndex','cxnPointStroke','invert','UniverDocsPlugin','_getSceneAndTransformerByDrawingSearch','Path','_registerOperations','formulaPresentation','refreshFormulaPresentation','beforeCommandExecuted','univer-box-border\x20univer-px-4\x20univer-text-sm','VIEW_MAIN_TOP','CROSSHAIR','isHighlighted','_initialize','_sheetPermissionCheckController','drawingId','registerCommand','DRAWING_IMAGE','_editingParams$','getDrawingPoints','makeDirty','getCurrentRangeDisable$','SHEET_SHAPE_UI_PLUGIN','M8\x2010.2V11.8','UniverUIPlugin','_findShapeAtPoint','object-layers-icon','sheet.operation.open-shape-object-list-panel','_shapeId','adjHandleFill','pipe','oKey','_moveConnectorWithShape','some','flipX','skeleton','_configService','setPresentation','getInverseCoord','description','_updateTransform','unit','isArray','connector-handler-','relation','DRAWING_SMART_ART','shape-text-','CopySheetCommand','find','changeStart$','LocaleService','_menuManagerService','Arrow','ShapeTextFloatMenuRenderControllerBase','_isStartConnectorPoint','_sheetBasicShapeConnectionPointController','BehaviorSubject','fontSize','@univerjs-pro/engine-shape','disposeWithMe','getDrawingOrder','order','changeShapeType','setShapeData','startConnectionDetection','div','top-center','save','_componentManager','M2\x204.75\x208\x201.8l6\x202.95L8\x207.7\x202\x204.75Z','registerRenderModule','_sheetDrawingService','startY','_sheetShapeAdjustController','IURLImageService','_popupMenuListener','_renderWithCache','#FFFFFF','getSheetBySheetId','Transform','_insertShapes','endConnectionDetection','getCurrentSkeleton','getDrawingSearch','sectionFloating','http://www.w3.org/2000/svg','sheets-shape-ui.config','GROUP','children','editingParams$','isConnectorShape','_sidebarDisposable','UniverSheetsDrawingUIPlugin','top','ShapeGroupEnum','sheetTransform','getBatchUpdateOp','clearControl$','toStringTag','FOCUSING_COMMON_DRAWINGS','getAdjustNames','normalizeShapeTextModel','RENDER_CLASS_TYPE','animateFormulaPresentation','cxnPointStrokeWidth','OTHERS','DRAWING_SHAPE','multiply','asObservable','transformToAxisAlignPosition','@univerjs/docs','shapeData','initShapePopupMenu','SheetDrawingAnchor','_commandExecutedListener','UniverProSheetsShape','path','UniverDocsUIPlugin','tag','onPointerUp$','UNIVER_SHEET','UniverSheetsDrawingUi','onSteady','UniverInstanceType','_getShapeInfo','deriveStateFromActiveSheet$','localeService','smartArt','constructor','sheet.shape.picker.component','UniverSheets','@univerjs/sheets','defineProperty','clipByShape','628swCgtR','targetShapeId','_shapeEditPanelVersion'];_0x19bc=function(){return _0x1d9f57;};return _0x19bc();}function _0x93c9(_0x453bb0,_0x5a236e){_0x453bb0=_0x453bb0-0x10b;const _0x19bcd9=_0x19bc();let _0x93c90d=_0x19bcd9[_0x453bb0];return _0x93c90d;}(function(_0x2586f0,_0x376f2f){const _0x41a4a6=_0x93c9,_0x144b5d=_0x2586f0();while(!![]){try{const _0x36c275=-parseInt(_0x41a4a6(0x127))/0x1+-parseInt(_0x41a4a6(0x2fd))/0x2*(-parseInt(_0x41a4a6(0x361))/0x3)+parseInt(_0x41a4a6(0x2a1))/0x4*(parseInt(_0x41a4a6(0x15b))/0x5)+-parseInt(_0x41a4a6(0x303))/0x6+parseInt(_0x41a4a6(0x1d7))/0x7+-parseInt(_0x41a4a6(0x16a))/0x8*(parseInt(_0x41a4a6(0x424))/0x9)+-parseInt(_0x41a4a6(0x1e1))/0xa*(-parseInt(_0x41a4a6(0x3b5))/0xb);if(_0x36c275===_0x376f2f)break;else _0x144b5d['push'](_0x144b5d['shift']());}catch(_0x13021e){_0x144b5d['push'](_0x144b5d['shift']());}}}(_0x19bc,0x8fdaa),function(_0xb75d89,_0x3558e6){const _0x502680=_0x93c9;typeof exports==_0x502680(0x432)&&typeof module<'u'?_0x3558e6(exports,require('@univerjs/ui'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/shape-editor'),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-pro/shape-editor-ui'),require('@univerjs/drawing-ui'),require('react/jsx-runtime'),require('@univerjs-pro/license'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('react')):typeof define=='function'&&define['amd']?define(['exports',_0x502680(0x379),_0x502680(0x255),_0x502680(0x19f),_0x502680(0x1af),'@univerjs/core',_0x502680(0x29e),_0x502680(0x3ea),_0x502680(0x3a4),_0x502680(0x363),'rxjs',_0x502680(0x33d),_0x502680(0x1e8),'react/jsx-runtime','@univerjs-pro/license',_0x502680(0x289),_0x502680(0x2f9),_0x502680(0x188),_0x502680(0x14b),_0x502680(0x1d6)],_0x3558e6):(_0xb75d89=typeof globalThis<'u'?globalThis:_0xb75d89||self,_0x3558e6(_0xb75d89[_0x502680(0x3b8)]={},_0xb75d89[_0x502680(0x318)],_0xb75d89[_0x502680(0x11b)],_0xb75d89['UniverProShapeEditor'],_0xb75d89[_0x502680(0x28e)],_0xb75d89['UniverCore'],_0xb75d89[_0x502680(0x29d)],_0xb75d89[_0x502680(0x42f)],_0xb75d89[_0x502680(0x3f7)],_0xb75d89[_0x502680(0x336)],_0xb75d89['rxjs'],_0xb75d89['UniverProShapeEditorUi'],_0xb75d89['UniverDrawingUi'],_0xb75d89['React'],_0xb75d89[_0x502680(0x38f)],_0xb75d89[_0x502680(0x3b6)],_0xb75d89[_0x502680(0x183)],_0xb75d89['UniverSheetsDrawing'],_0xb75d89[_0x502680(0x294)],_0xb75d89['React']));}(this,function(_0x962624,_0x4b5551,_0x3d21cd,_0x32598e,_0x1b87be,_0x2eccf5,_0x2554f2,_0x215a9,_0x114b3e,_0x3c12d8,_0x124e3f,_0x25b599,_0x34fb64,_0x2dcc44,_0x3fe551,_0x4f7558,_0x2a24ec,_0x2a2650,_0x101b82,_0x33f0ff){const _0x1e3977=_0x93c9;Object[_0x1e3977(0x29f)](_0x962624,Symbol[_0x1e3977(0x27d)],{'value':'Module'});function _0x13b692(_0x3b58d1,_0x58c250){const _0x14d7cb=_0x1e3977;let _0x15cec3={};for(let _0x3eb233 of Object[_0x14d7cb(0x391)](_0x58c250)){let _0xa00a01=_0x58c250[_0x3eb233],_0x2160ae=_0x3b58d1[_0x3eb233];if(_0xa00a01!==void 0x0){if(_0x2160ae===void 0x0){_0x15cec3[_0x3eb233]=void 0x0;continue;}typeof _0xa00a01=='object'&&_0xa00a01&&!Array[_0x14d7cb(0x245)](_0xa00a01)&&typeof _0x2160ae==_0x14d7cb(0x432)&&_0x2160ae&&!Array[_0x14d7cb(0x245)](_0x2160ae)?_0x15cec3[_0x3eb233]=_0x13b692(_0x2160ae,_0xa00a01):_0x15cec3[_0x3eb233]=_0x2160ae;}}return _0x15cec3;}let _0x5a577b={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x209)],'id':_0x1e3977(0x2bb),'handler':(_0x5a682d,_0x198b6e)=>{const _0x250e67=_0x1e3977;let _0x3449ab=_0x5a682d['get'](_0x1b87be['SheetsShapeService']),{unitId:_0x35e749,subUnitId:_0x43e097,shapeType:_0x49f9d8,shapeId:_0x29da79,shapeData:_0x564355,oldShapeJSON:_0x25a992}=_0x198b6e;if(!_0x3449ab[_0x250e67(0x134)](_0x35e749,_0x43e097,_0x29da79))return!0x1;let _0x5093d4=_0x5a682d[_0x250e67(0x32f)](_0x2eccf5[_0x250e67(0x1b2)]),_0x54534b=_0x5a682d['get'](_0x2eccf5[_0x250e67(0x13d)]),{oldShapeType:_0x5b9716,oldShapeData:_0x52f8d6={}}=_0x25a992,_0x8b37f1=_0x13b692(_0x52f8d6,_0x564355||{}),_0x112d47={'id':_0x1b87be['UpdateSheetsShapeDataMutation']['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x49f9d8,'shapeData':_0x564355}},_0x121117={'id':_0x1b87be[_0x250e67(0x3da)]['id'],'params':{'unitId':_0x35e749,'subUnitId':_0x43e097,'shapeId':_0x29da79,'shapeType':_0x5b9716,'shapeData':_0x8b37f1}};return _0x5093d4[_0x250e67(0x1fa)](_0x112d47['id'],_0x112d47['params'])?(_0x54534b['pushUndoRedo']({'unitID':_0x35e749,'undoMutations':[_0x121117],'redoMutations':[_0x112d47]}),!0x0):!0x1;}};function _0x3cdd2e(_0x456e8b,_0x4febf5,_0x136584,_0x396730,_0x5048c9,_0x267cfa){const _0x5c984d=_0x1e3977;let _0x344e56={'unitId':_0x4febf5,'subUnitId':_0x136584,'shapeId':_0x396730,'shapeData':_0x267cfa,'oldShapeJSON':_0x5048c9};return _0x456e8b[_0x5c984d(0x216)](_0x5a577b['id'],_0x344e56);}function _0x43c867(_0x1a6124,_0x2041e8,_0x289e41,_0x387471,_0x30a7be,_0x5061b2){const _0x17265b=_0x1e3977;let _0x1dc160={'unitId':_0x2041e8,'subUnitId':_0x289e41,'shapeId':_0x387471,'shapeData':_0x5061b2,'oldShapeJSON':_0x30a7be};return _0x1a6124[_0x17265b(0x216)](_0x5a577b['id'],_0x1dc160);}function _0x630d7d(_0x393f44){'@babel/helpers - typeof';const _0x11392f=_0x1e3977;return _0x630d7d=typeof Symbol==_0x11392f(0x2b3)&&typeof Symbol[_0x11392f(0x3d7)]==_0x11392f(0x142)?function(_0x46193f){return typeof _0x46193f;}:function(_0x410de8){const _0x4a822f=_0x11392f;return _0x410de8&&typeof Symbol==_0x4a822f(0x2b3)&&_0x410de8[_0x4a822f(0x29b)]===Symbol&&_0x410de8!==Symbol[_0x4a822f(0x32b)]?_0x4a822f(0x142):typeof _0x410de8;},_0x630d7d(_0x393f44);}function _0x5172cd(_0x49b5f8,_0x2de7a4){const _0x5a30fb=_0x1e3977;if(_0x630d7d(_0x49b5f8)!='object'||!_0x49b5f8)return _0x49b5f8;var _0x18f4f8=_0x49b5f8[Symbol['toPrimitive']];if(_0x18f4f8!==void 0x0){var _0xdb346=_0x18f4f8[_0x5a30fb(0x169)](_0x49b5f8,_0x2de7a4||_0x5a30fb(0x408));if(_0x630d7d(_0xdb346)!=_0x5a30fb(0x432))return _0xdb346;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2de7a4===_0x5a30fb(0x144)?String:Number)(_0x49b5f8);}function _0x1f9ce2(_0x35daec){const _0x136a6c=_0x1e3977;var _0x55c94f=_0x5172cd(_0x35daec,_0x136a6c(0x144));return _0x630d7d(_0x55c94f)==_0x136a6c(0x142)?_0x55c94f:_0x55c94f+'';}function _0x163ed0(_0x5381a3,_0x5b002f,_0x53187c){return(_0x5b002f=_0x1f9ce2(_0x5b002f))in _0x5381a3?Object['defineProperty'](_0x5381a3,_0x5b002f,{'value':_0x53187c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5381a3[_0x5b002f]=_0x53187c,_0x5381a3;}function _0x5c230c(_0x4b87ca,_0x17d0e1,_0x4b8c26){const _0x4123bd=_0x1e3977;var _0x480892;let _0xc7c029=(0x0,_0x25b599[_0x4123bd(0x430)])(_0x4b87ca,{..._0x17d0e1,'dataModel':{...(_0x480892=_0x17d0e1['dataModel'])==null?{}:_0x480892,..._0x4b8c26?{'doc':_0x4b8c26}:null}}),_0x25cd00=(0x0,_0x25b599[_0x4123bd(0x404)])(_0xc7c029);return{'clip':(0x0,_0x25b599[_0x4123bd(0x185)])(_0xc7c029,_0x25cd00),'wrapStrategy':_0x25cd00};}var _0x34cbbf=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x3f21c2,_0x52e889){const _0x8bf63d=_0x1e3977;super(_0x3f21c2,_0x52e889),_0x163ed0(this,_0x8bf63d(0x33e),void 0x0),_0x163ed0(this,_0x8bf63d(0x2ba),new _0x25b599[(_0x8bf63d(0x15a))](()=>this[_0x8bf63d(0x22f)](!0x0),()=>this['_applyFormulaAutoFitSize']())),_0x163ed0(this,_0x8bf63d(0x40d),!0x0),_0x163ed0(this,_0x8bf63d(0x2ea),_0x2eccf5['DrawingTypeEnum'][_0x8bf63d(0x285)]),_0x163ed0(this,_0x8bf63d(0x40f),!0x0),this[_0x8bf63d(0x33e)]={..._0x52e889},this[_0x8bf63d(0x2ba)]['setPresentation'](_0x52e889[_0x8bf63d(0x221)],_0x52e889[_0x8bf63d(0x282)]!==!0x1),this[_0x8bf63d(0x1d0)](),this[_0x8bf63d(0x37f)]();}[_0x1e3977(0x1d0)](){const _0x2835a3=_0x1e3977;this[_0x2835a3(0x2f3)]['subscribeEvent'](_0x5dc869=>{const _0x35a531=_0x2835a3;this[_0x35a531(0x126)](_0x5dc869);});}[_0x1e3977(0x2f2)](_0xe10f1){const _0x148f58=_0x1e3977;this[_0x148f58(0x33e)][_0x148f58(0x18e)]=_0xe10f1;}[_0x1e3977(0x12a)](_0x38108d){const _0x17ad46=_0x1e3977;this[_0x17ad46(0x33e)][_0x17ad46(0x131)]=_0x38108d,this[_0x17ad46(0x22f)](!0x0);}['setFormulaPresentation'](_0x111fa2,_0x12bbb7=!0x0){const _0x28e164=_0x1e3977;this[_0x28e164(0x2ba)][_0x28e164(0x240)](_0x111fa2,_0x12bbb7),this['_props'][_0x28e164(0x221)]=_0x111fa2,this[_0x28e164(0x37f)](),this['makeDirty'](!0x0);}['_applyFormulaAutoFitSize'](){const _0x4ca803=_0x1e3977;let _0x10b1c0=this[_0x4ca803(0x33e)][_0x4ca803(0x425)],_0x59a2db=_0x10b1c0[_0x4ca803(0x455)](),_0x37b0b3=(0x0,_0x25b599[_0x4ca803(0x280)])(_0x59a2db==null?void 0x0:_0x59a2db[_0x4ca803(0x2a9)]),_0x10ad4e=_0x37b0b3==null?void 0x0:_0x37b0b3['doc'],_0x16b94f=this[_0x4ca803(0x2ba)]['getAutoFitPresentations']();if(!_0x10ad4e||_0x16b94f[_0x4ca803(0x337)]===0x0)return;_0x10b1c0[_0x4ca803(0x1b9)]({'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]});let _0x30340b=(0x0,_0x25b599[_0x4ca803(0x30c)])({'documentData':_0x16b94f[_0x4ca803(0x43f)](_0x28d796=>(0x0,_0x32598e[_0x4ca803(0x3f5)])(_0x10ad4e,_0x28d796)),'height':this['height'],'shapeData':_0x10b1c0[_0x4ca803(0x1e0)](),'textRect':_0x10b1c0['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x4ca803(0x1f0)],'height':this[_0x4ca803(0x196)]}),'width':this[_0x4ca803(0x1f0)]});if(_0x30340b){var _0x80f6cf;this[_0x4ca803(0x120)](_0x30340b[_0x4ca803(0x1f0)],_0x30340b['height']),(_0x80f6cf=this[_0x4ca803(0x448)]())==null||(_0x80f6cf=_0x80f6cf['getTransformer']())==null||_0x80f6cf[_0x4ca803(0x3d2)]();}}get[_0x1e3977(0x387)](){const _0x6cf21=_0x1e3977;return this[_0x6cf21(0x33e)][_0x6cf21(0x387)];}get[_0x1e3977(0x204)](){const _0x7e93fc=_0x1e3977;return this['_props'][_0x7e93fc(0x204)];}[_0x1e3977(0x126)](_0x5a758f){const _0x408f39=_0x1e3977;if(this[_0x408f39(0x33e)]['srcRect']==null||!this[_0x408f39(0x40d)])return;let {width:_0x56674d,height:_0xbb6240}=this,{width:_0x4c436b=0x0,height:_0x3fe4f6=0x0}=_0x5a758f[_0x408f39(0x14c)],{left:_0x917e21=0x0,top:_0x5df631=0x0,right:_0x49987d=0x0,bottom:_0x2f3d2e=0x0}=this[_0x408f39(0x33e)][_0x408f39(0x3fe)],_0x72b40=_0x917e21,_0x530109=_0x5df631,_0x59697f=_0x49987d,_0x16996d=_0x2f3d2e,_0x4ef9f4=!0x1;if(_0x4c436b!==0x0&&_0x4c436b!==_0x56674d){let _0x3d58cf=_0x917e21/_0x4c436b,_0x4cab22=_0x49987d/_0x4c436b;_0x72b40=_0x56674d*_0x3d58cf,_0x59697f=_0x56674d*_0x4cab22,_0x4ef9f4=!0x0;}if(_0x3fe4f6!==0x0&&_0x3fe4f6!==_0xbb6240){let _0x1fb4c2=_0x5df631/_0x3fe4f6,_0x196b0b=_0x2f3d2e/_0x3fe4f6;_0x530109=_0xbb6240*_0x1fb4c2,_0x16996d=_0xbb6240*_0x196b0b,_0x4ef9f4=!0x0;}_0x4ef9f4&&this['setSrcRect']({'left':_0x72b40,'top':_0x530109,'right':_0x59697f,'bottom':_0x16996d});}[_0x1e3977(0x16b)](_0x467426){const _0x5ed86d=_0x1e3977;this[_0x5ed86d(0x33e)][_0x5ed86d(0x3fe)]=_0x467426,this[_0x5ed86d(0x22f)](!0x0);}[_0x1e3977(0x450)](_0x5c8b9e){const _0x1d181e=_0x1e3977;this['_props']['image']=_0x5c8b9e,this[_0x1d181e(0x22f)](!0x0);}set[_0x1e3977(0x31d)](_0x2f6715){const _0xa48227=_0x1e3977;this[_0xa48227(0x332)]=_0x2f6715;}get[_0x1e3977(0x31d)](){const _0x1d88b1=_0x1e3977;this[_0x1d88b1(0x332)]||this[_0x1d88b1(0x35e)]();let _0x246b96=this[_0x1d88b1(0x332)][_0x1d88b1(0x2a8)]();return this[_0x1d88b1(0x1ed)](_0x246b96);}get[_0x1e3977(0x425)](){const _0x4ab39a=_0x1e3977;return this[_0x4ab39a(0x33e)][_0x4ab39a(0x425)];}get[_0x1e3977(0x329)](){const _0xca36fc=_0x1e3977;return this[_0xca36fc(0x33e)][_0xca36fc(0x329)];}get[_0x1e3977(0x2a5)](){const _0x34c3d8=_0x1e3977;return _0x114b3e[_0x34c3d8(0x281)][_0x34c3d8(0x2e2)];}['_draw'](_0x1f2a75,_0x4b6867,_0x34e7e0,_0x5465ea){const _0x54b602=_0x1e3977;let _0x3d14cc=this[_0x54b602(0x33e)]['shapeModel'];if(!_0x3d14cc||!_0x4b6867)return;let _0x1705d0=_0x34e7e0==null?this[_0x54b602(0x1f0)]:_0x34e7e0,_0x45dce8=_0x5465ea==null?this[_0x54b602(0x196)]:_0x5465ea,_0x5cbc8e={'shapeType':_0x3d14cc[_0x54b602(0x162)](),'width':_0x1705d0,'height':_0x45dce8},_0x4003a8={'renderMode':_0x3d21cd[_0x54b602(0x3cd)][_0x54b602(0x21f)],'oKey':this[_0x54b602(0x23a)],'image':this[_0x54b602(0x33e)][_0x54b602(0x34c)],'angle':this[_0x54b602(0x1bf)]};_0x3d14cc[_0x54b602(0x1b9)](_0x5cbc8e),_0x1f2a75[_0x54b602(0x25e)]();let _0x48f5ba={'top':0x0,'left':0x0,'width':_0x1705d0,'height':_0x45dce8},_0x43def7=_0x3d14cc[_0x54b602(0x195)](_0x48f5ba);_0x43def7?this[_0x54b602(0x267)](_0x1f2a75,_0x43def7,_0x28edb0=>{_0x3d14cc['render'](_0x28edb0,_0x48f5ba,_0x4003a8);}):(this[_0x54b602(0x31e)](),_0x3d14cc['render'](_0x1f2a75,_0x48f5ba,_0x4003a8)),_0x1f2a75[_0x54b602(0x1cf)]();let _0x12b189=_0x3d14cc[_0x54b602(0x455)](),_0x43ecc5=_0x3d14cc[_0x54b602(0x1ff)](_0x48f5ba),_0x1252a4=_0x3d14cc[_0x54b602(0x359)]();if(_0x12b189&&_0x43ecc5&&!_0x1252a4){_0x1f2a75[_0x54b602(0x25e)](),this[_0x54b602(0x1f4)]()[_0x54b602(0x23d)]&&_0x1f2a75['scale'](-0x1,0x1);let _0x4c6a4a=_0x1705d0/0x2,_0x142d4a=_0x45dce8/0x2;_0x1f2a75[_0x54b602(0x139)](-_0x4c6a4a,-_0x142d4a),_0x1f2a75[_0x54b602(0x180)](),this['_drawShapeText'](_0x1f2a75,_0x12b189,_0x43ecc5),_0x1f2a75[_0x54b602(0x1cf)]();}}[_0x1e3977(0x22e)](_0x268803){}['_drawShapeText'](_0x2ddbbe,_0x20f9b4,_0x2a9c6d){const _0x87d6c6=_0x1e3977;var _0x3b1efb;this[_0x87d6c6(0x33e)][_0x87d6c6(0x131)]||(!((_0x3b1efb=_0x20f9b4[_0x87d6c6(0x2a9)])!=null&&_0x3b1efb[_0x87d6c6(0x32a)])&&_0x87d6c6(0x3af)in _0x20f9b4&&_0x20f9b4[_0x87d6c6(0x3af)]===!0x1?this[_0x87d6c6(0x20f)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d):this[_0x87d6c6(0x2d6)](_0x2ddbbe,_0x20f9b4,_0x2a9c6d));}[_0x1e3977(0x20f)](_0x2ce6c9,_0x207f66,_0x5968d8){const _0x5632d1=_0x1e3977;var _0x322315;this[_0x5632d1(0x2d6)](_0x2ce6c9,{..._0x207f66,'text':(_0x322315=_0x207f66[_0x5632d1(0x1d9)])==null?'':_0x322315,'dataModel':{'doc':(0x0,_0x25b599[_0x5632d1(0x3b0)])(_0x207f66,'sheets-shape-text-'+this['oKey'])}},_0x5968d8);}['_drawRichText'](_0x1430f7,_0x40729f,_0x39a12c){const _0x46e0ed=_0x1e3977;(0x0,_0x25b599[_0x46e0ed(0x429)])(_0x1430f7,this[_0x46e0ed(0x2ba)],(_0x728913,_0x22a978)=>{const _0x1e5f87=_0x46e0ed;this[_0x1e5f87(0x2d3)](_0x728913,_0x40729f,_0x39a12c,_0x22a978);});}[_0x1e3977(0x2d3)](_0x133d91,_0x51c1fd,_0x45fb01,_0x201ece){const _0x9c7989=_0x1e3977;var _0x2ea188,_0x1ccd3c;let _0x1d94ad=this['_props'][_0x9c7989(0x299)];if(!_0x51c1fd['dataModel']||!_0x1d94ad)return;let _0x498eb4=(0x0,_0x25b599[_0x9c7989(0x280)])(_0x51c1fd['dataModel']);if(!_0x498eb4)return;let _0x1e64e1=_0x498eb4[_0x9c7989(0x32a)];if(!_0x1e64e1)return;let _0x5a9c43=(0x0,_0x32598e[_0x9c7989(0x3f5)])(_0x1e64e1,_0x201ece),_0x512f48=(_0x2ea188=_0x498eb4['va'])==null?_0x2eccf5[_0x9c7989(0x36c)][_0x9c7989(0x422)]:_0x2ea188,_0x21bdcb=(_0x1ccd3c=_0x498eb4['ha'])==null?_0x2eccf5[_0x9c7989(0x1c8)][_0x9c7989(0x10e)]:_0x1ccd3c,_0x1680db=_0x5c230c(this[_0x9c7989(0x33e)][_0x9c7989(0x425)]['getShapeData'](),_0x51c1fd,_0x5a9c43),_0x2d0257=_0x51c1fd[_0x9c7989(0x323)],_0x459d62=new _0x2eccf5[(_0x9c7989(0x1ea))]((0x0,_0x25b599[_0x9c7989(0x397)])(_0x5a9c43,{'isHorizontal':_0x2d0257!==!0x1,'textRect':_0x45fb01,'verticalAlign':_0x512f48,'horizontalAlign':_0x21bdcb,'wrapStrategy':_0x1680db[_0x9c7989(0x433)]})),_0x3d846b=new _0x114b3e[(_0x9c7989(0x117))](_0x459d62),_0x3461fd=_0x114b3e[_0x9c7989(0x2bd)][_0x9c7989(0x378)](_0x3d846b,_0x1d94ad);_0x3461fd[_0x9c7989(0x2b7)]();let _0x1496b1=_0x3461fd['getActualSize']()['actualHeight'],_0xf2d1bf=(0x0,_0x25b599[_0x9c7989(0x219)])({'contentHeight':_0x1496b1,'verticalAlign':_0x512f48,'viewportHeight':_0x45fb01['height']});_0x459d62[_0x9c7989(0x217)]({'pageSize':{'width':_0x2d0257===!0x1?_0x45fb01[_0x9c7989(0x196)]:_0x45fb01[_0x9c7989(0x1f0)],'height':_0xf2d1bf[_0x9c7989(0x197)]}}),_0x459d62['updateDocumentDataMargin']({'t':_0xf2d1bf[_0x9c7989(0x3ec)]}),_0x3461fd[_0x9c7989(0x2b7)]();let _0x13942f=new _0x114b3e[(_0x9c7989(0x435))](_0x9c7989(0x249)+this[_0x9c7989(0x23a)],_0x3461fd,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x9c7989(0x22f)](!0x0)});_0x13942f[_0x9c7989(0x120)](_0x45fb01[_0x9c7989(0x1f0)],_0xf2d1bf[_0x9c7989(0x197)]),_0x133d91[_0x9c7989(0x25e)](),_0x133d91[_0x9c7989(0x2cb)](_0x45fb01[_0x9c7989(0x44f)],_0x45fb01[_0x9c7989(0x278)]),_0x1680db['clip']&&(_0x133d91[_0x9c7989(0x180)](),_0x133d91['rect'](0x0,_0xf2d1bf['clipTop'],_0x45fb01['width'],_0xf2d1bf[_0x9c7989(0x366)]),_0x133d91['clip']()),_0xf2d1bf[_0x9c7989(0x40b)]&&_0x133d91[_0x9c7989(0x2cb)](0x0,_0xf2d1bf[_0x9c7989(0x40b)]),_0x13942f[_0x9c7989(0x119)](_0x133d91),_0x133d91['restore'](),_0x13942f[_0x9c7989(0x175)](),_0x3461fd[_0x9c7989(0x175)](),_0x3d846b[_0x9c7989(0x175)](),_0x459d62[_0x9c7989(0x175)]();}[_0x1e3977(0x2b1)](_0x5a5b7b,_0x1c0dee,_0x4a57bd=!0x1){const _0x4c6ebc=_0x1e3977;if(!this[_0x4c6ebc(0x339)])return this[_0x4c6ebc(0x22f)](!0x1),this;let {width:_0x1541fe,height:_0x11a170,left:_0x14ee96,top:_0x523b8c}=this,_0x5e3381=this[_0x4c6ebc(0x214)]();if(_0x1541fe=_0x5e3381[_0x4c6ebc(0x1f0)],_0x11a170=_0x5e3381[_0x4c6ebc(0x196)],_0x14ee96=_0x5e3381['left'],_0x523b8c=_0x5e3381[_0x4c6ebc(0x278)],this[_0x4c6ebc(0x2c8)](_0x1c0dee)){let {top:_0x5b6b64,left:_0x11e09f,bottom:_0x5eeb25,right:_0x4e8a03}=_0x1c0dee['viewBound'];if(_0x1541fe+this['strokeWidth']+_0x14ee96<_0x11e09f||_0x4e8a03<_0x14ee96||_0x11a170+this[_0x4c6ebc(0x3e9)]+_0x523b8c<_0x5b6b64||_0x5eeb25<_0x523b8c)return this;}let _0x3a93d5=_0x14ee96+_0x1541fe/0x2,_0x44a101=_0x523b8c+_0x11a170/0x2,_0x2a20a4=this[_0x4c6ebc(0x31d)][_0x4c6ebc(0x31f)]();if(this[_0x4c6ebc(0x33e)]['isEditing']){let _0x4db7b5=this['getState'](),_0x1c1b8b=new _0x114b3e[(_0x4c6ebc(0x26a))]();_0x1c1b8b[_0x4c6ebc(0x124)]({..._0x4db7b5}),_0x2a20a4=_0x1c1b8b['getMatrix']();}return _0x5a5b7b[_0x4c6ebc(0x25e)](),this[_0x4c6ebc(0x33e)]['shapeModel'][_0x4c6ebc(0x1f8)]===!0x0||_0x5a5b7b[_0x4c6ebc(0x31d)](_0x2a20a4[0x0],_0x2a20a4[0x1],_0x2a20a4[0x2],_0x2a20a4[0x3],_0x3a93d5,_0x44a101),this[_0x4c6ebc(0x2c0)](_0x5a5b7b,_0x1c0dee,_0x1541fe,_0x11a170),_0x5a5b7b['restore'](),this[_0x4c6ebc(0x22f)](!0x1),this;}[_0x1e3977(0x241)](_0x23c898){const _0xbcb4d6=_0x1e3977;let {left:_0x39434b,top:_0x436684,width:_0x338579,height:_0x2782ec}=this[_0xbcb4d6(0x214)](),_0x576653=this[_0xbcb4d6(0x31d)][_0xbcb4d6(0x31f)](),_0x318e92=_0x39434b+_0x338579/0x2,_0x142fd4=_0x436684+_0x2782ec/0x2,_0x3e20ff=new _0x114b3e['Transform']([_0x576653[0x0],_0x576653[0x1],_0x576653[0x2],_0x576653[0x3],_0x318e92,_0x142fd4]),_0x189154=this[_0xbcb4d6(0x3a2)]();return(this[_0xbcb4d6(0x2b9)]&&(_0x189154==null?void 0x0:_0x189154[_0xbcb4d6(0x2a5)])===_0x114b3e[_0xbcb4d6(0x281)][_0xbcb4d6(0x272)]?_0x189154[_0xbcb4d6(0x15d)][_0xbcb4d6(0x286)](_0x3e20ff):_0x3e20ff)[_0xbcb4d6(0x21c)]()['applyPoint'](_0x23c898);}[_0x1e3977(0x386)](_0x31f9ee){const _0x3a7501=_0x1e3977;let {left:_0x3654fd,top:_0x57303c,width:_0x596a64,height:_0x3788e2}=this[_0x3a7501(0x214)](),_0x189811=_0x3654fd+_0x596a64/0x2,_0x24a1cb=_0x57303c+_0x3788e2/0x2,_0x3cfb21=this['transform']['getMatrix'](),_0x3e720e=new _0x114b3e[(_0x3a7501(0x26a))]([_0x3cfb21[0x0],_0x3cfb21[0x1],_0x3cfb21[0x2],_0x3cfb21[0x3],_0x189811,_0x24a1cb]),_0x190f21=this[_0x3a7501(0x3a2)](),_0x2d4cbb=(this[_0x3a7501(0x2b9)]&&(_0x190f21==null?void 0x0:_0x190f21[_0x3a7501(0x2a5)])===_0x114b3e['RENDER_CLASS_TYPE'][_0x3a7501(0x272)]?_0x190f21[_0x3a7501(0x15d)][_0x3a7501(0x286)](_0x3e720e):_0x3e720e)[_0x3a7501(0x21c)]()[_0x3a7501(0x3e7)](_0x31f9ee),_0x42ad5=_0x596a64/0x2,_0x4055bb=_0x3788e2/0x2,_0x454115=this[_0x3a7501(0x33e)][_0x3a7501(0x425)];return _0x454115&&_0x454115[_0x3a7501(0x359)]()?_0x454115[_0x3a7501(0x304)](_0x2d4cbb['x'],_0x2d4cbb['y'],_0x596a64,_0x3788e2):_0x2d4cbb['x']>=-_0x42ad5-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['x']<=_0x42ad5+this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']>=-_0x4055bb-this[_0x3a7501(0x3e9)]/0x2&&_0x2d4cbb['y']<=_0x4055bb+this[_0x3a7501(0x3e9)]/0x2;}[_0x1e3977(0x175)](){const _0x44b3f6=_0x1e3977;this[_0x44b3f6(0x2ba)][_0x44b3f6(0x175)](),this[_0x44b3f6(0x33e)][_0x44b3f6(0x425)]=null,super['dispose']();}},_0x372832=class extends _0x114b3e['Shape']{constructor(_0x4d80c3,_0x169158){const _0x450226=_0x1e3977;super(_0x4d80c3,_0x169158),_0x163ed0(this,'_shapeId',null),_0x163ed0(this,_0x450226(0x2ca),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x450226(0x18a),null),_0x169158&&this[_0x450226(0x186)](_0x169158);}[_0x1e3977(0x26e)](){const _0x3494e6=_0x1e3977;return{'unitId':this[_0x3494e6(0x44e)],'subUnitId':this[_0x3494e6(0x18a)],'drawingId':this[_0x3494e6(0x237)]};}['setShapeProps'](_0x3a981f){const _0x529e6c=_0x1e3977;_0x3a981f[_0x529e6c(0x329)]!==void 0x0&&(this['_shapeId']=_0x3a981f['shapeId']),_0x3a981f['adjName']!==void 0x0&&(this[_0x529e6c(0x2ca)]=_0x3a981f[_0x529e6c(0x19b)]),_0x3a981f['unitId']!==void 0x0&&(this[_0x529e6c(0x44e)]=_0x3a981f[_0x529e6c(0x387)]),_0x3a981f[_0x529e6c(0x204)]!==void 0x0&&(this[_0x529e6c(0x18a)]=_0x3a981f['subUnitId']),this[_0x529e6c(0x1c7)]({'width':_0x3a981f[_0x529e6c(0x1f0)],'height':_0x3a981f[_0x529e6c(0x196)]});}[_0x1e3977(0x2c0)](_0x387495){const _0xf9e943=_0x1e3977;_0x114b3e['Circle'][_0xf9e943(0x314)](_0x387495,{'radius':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x17d)],'fill':_0x3d21cd[_0xf9e943(0x356)][_0xf9e943(0x238)],'stroke':_0x3d21cd['ShapeDefaultConfig'][_0xf9e943(0x1a6)],'strokeWidth':0x1,'evented':!0x0});}};function _0x5a8c13(_0x17813e,_0x431ff6){return function(_0x569b0c,_0x11b964){_0x431ff6(_0x569b0c,_0x11b964,_0x17813e);};}function _0xba323d(_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6){const _0x502669=_0x1e3977;var _0x1256c3=arguments[_0x502669(0x337)],_0x58810b=_0x1256c3<0x3?_0x3aacfa:_0x1d17c6===null?_0x1d17c6=Object[_0x502669(0x3ac)](_0x3aacfa,_0x293857):_0x1d17c6,_0x2ffa42;if(typeof Reflect=='object'&&typeof Reflect[_0x502669(0x39d)]==_0x502669(0x2b3))_0x58810b=Reflect[_0x502669(0x39d)](_0x3a5abe,_0x3aacfa,_0x293857,_0x1d17c6);else{for(var _0x978540=_0x3a5abe['length']-0x1;_0x978540>=0x0;_0x978540--)(_0x2ffa42=_0x3a5abe[_0x978540])&&(_0x58810b=(_0x1256c3<0x3?_0x2ffa42(_0x58810b):_0x1256c3>0x3?_0x2ffa42(_0x3aacfa,_0x293857,_0x58810b):_0x2ffa42(_0x3aacfa,_0x293857))||_0x58810b);}return _0x1256c3>0x3&&_0x58810b&&Object[_0x502669(0x29f)](_0x3aacfa,_0x293857,_0x58810b),_0x58810b;}let _0x1f5133=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x7cc7a3,_0x1176fd,_0x388e04,_0x58eaad,_0x266637,_0x4169df){const _0x24a093=_0x1e3977;super(),this['_drawingManagerService']=_0x7cc7a3,this['_sheetsShapeService']=_0x1176fd,this['_localeService']=_0x388e04,this[_0x24a093(0x14e)]=_0x58eaad,this[_0x24a093(0x37b)]=_0x266637,this['_shapeFormulaService']=_0x4169df,_0x163ed0(this,'_formulaShapes',new Map()),this[_0x24a093(0x256)](this['_shapeFormulaService']['presentationChanged$']['subscribe'](_0x306625=>{const _0x3b3272=_0x24a093;var _0x38c099;(_0x38c099=this['_formulaShapes']['get'](this[_0x3b3272(0x315)](_0x306625[_0x3b3272(0x387)],_0x306625['subUnitId'],_0x306625[_0x3b3272(0x329)])))==null||_0x38c099['forEach'](_0x38594f=>_0x38594f['setFormulaPresentation'](_0x306625[_0x3b3272(0x1f5)],_0x306625[_0x3b3272(0x18b)]));})),this[_0x24a093(0x256)](this[_0x24a093(0x1a2)][_0x24a093(0x3fa)][_0x24a093(0x17b)](_0x4832d4=>{const _0x1b93c0=_0x24a093;_0x4832d4[_0x1b93c0(0x30e)](_0x29ee60=>{const _0x389cf1=_0x1b93c0;this['_shapeFormulaService'][_0x389cf1(0x11f)]({'unitId':_0x29ee60[_0x389cf1(0x387)],'subUnitId':_0x29ee60[_0x389cf1(0x204)],'shapeId':_0x29ee60[_0x389cf1(0x22a)]}),this[_0x389cf1(0x41b)][_0x389cf1(0x2e3)](this[_0x389cf1(0x315)](_0x29ee60[_0x389cf1(0x387)],_0x29ee60[_0x389cf1(0x204)],_0x29ee60[_0x389cf1(0x22a)]));});}));}[_0x1e3977(0x413)](_0x3f5ce9,_0x49b9c9,_0x22a47b){const _0x1facd8=_0x1e3977;let {transform:_0x17c211,drawingType:_0x4f594e,srcRect:_0x5c3b7e,prstGeom:_0x248394,groupId:_0x1ec179,unitId:_0x237bdf,subUnitId:_0x337415,drawingId:_0x1a49bb,isMultiTransform:_0xe3f488,transforms:_0xc7816,hidden:_0x464bc9,selectable:_0x44b560}=_0x3f5ce9;if(_0x4f594e!==_0x2eccf5[_0x1facd8(0x43b)][_0x1facd8(0x285)]||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]()||_0x17c211==null)return;let _0x10a8cf=this[_0x1facd8(0x1a2)][_0x1facd8(0x3c7)]();_0x10a8cf&&_0x49b9c9['initTransformer'](_0x25b599['SHAPE_EDITOR_TRANSFORMER_CONFIG']);let _0x1a022f=_0xe3f488&&_0xc7816?_0xc7816:[_0x17c211],_0xd43528=[];for(let _0x5adaf1 of _0x1a022f){let {left:_0x5eb6b1,top:_0x10d36a,width:_0x1b14c5,height:_0x2c5012,angle:_0x1bbf40,flipX:_0x499b1c,flipY:_0x57d23b,skewX:_0x350df6,skewY:_0x45ed67}=_0x5adaf1,_0x2edc58=_0x1a022f[_0x1facd8(0x1dd)](_0x5adaf1),_0x5e5c3c=(0x0,_0x215a9[_0x1facd8(0x2ee)])({'unitId':_0x237bdf,'subUnitId':_0x337415,'drawingId':_0x1a49bb},_0xe3f488?_0x2edc58:void 0x0),_0x5ab780=_0x49b9c9[_0x1facd8(0x2a4)](_0x5e5c3c);if(_0x5ab780!=null){let _0x598ea8={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x5ab780 instanceof _0x34cbbf&&this[_0x1facd8(0x222)](_0x5ab780,_0x598ea8),_0x5ab780[_0x1facd8(0x1c7)]({'left':_0x5eb6b1,'top':_0x10d36a,'width':_0x1b14c5,'height':_0x2c5012,'angle':_0x1bbf40,'flipX':_0x499b1c,'flipY':_0x57d23b,'skewX':_0x350df6,'skewY':_0x45ed67});continue;}let _0x13302d=this[_0x1facd8(0x1a2)][_0x1facd8(0x257)](_0x237bdf,_0x337415),_0x136862=_0x13302d[_0x1facd8(0x1dd)](_0x1a49bb);if(_0x49b9c9['getObjectIncludeInGroup'](_0x5e5c3c)||!this[_0x1facd8(0x1a2)][_0x1facd8(0x193)]())continue;let _0x10575f=this['_sheetsShapeService'][_0x1facd8(0x134)](_0x237bdf,_0x337415,_0x1a49bb);if(!_0x10575f)continue;let _0x4838ce=(0x0,_0x3d21cd[_0x1facd8(0x275)])(_0x10575f[_0x1facd8(0x162)]()),_0x2b76f3=_0x10575f[_0x1facd8(0x1e0)]()[_0x1facd8(0x331)],_0x39fea5={'unitId':_0x237bdf,'subUnitId':_0x337415,'shapeId':_0x1a49bb};_0x2b76f3&&this[_0x1facd8(0x1e4)][_0x1facd8(0x1e7)](_0x39fea5,_0x2b76f3);let _0x295e5f=new _0x34cbbf(_0x5e5c3c,{..._0x4838ce?{..._0x5adaf1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x5adaf1},'zIndex':_0x136862===-0x1?_0x13302d['length']-0x1:_0x136862,'shapeModel':_0x10575f,'localeService':this[_0x1facd8(0x412)],'shapeId':_0x1a49bb,'unitId':_0x237bdf,'subUnitId':_0x337415,'visible':_0x464bc9!==!0x0,'evented':_0x44b560!==!0x1,'formulaPresentation':_0x2b76f3?this[_0x1facd8(0x1e4)]['getPresentation'](_0x39fea5):void 0x0,'animateFormulaPresentation':(_0x2b76f3==null?void 0x0:_0x2b76f3[_0x1facd8(0x18b)])!==!0x1});if(_0x2b76f3){var _0x288df8;let _0x52203e=this[_0x1facd8(0x315)](_0x237bdf,_0x337415,_0x1a49bb),_0x18aa22=(_0x288df8=this['_formulaShapes'][_0x1facd8(0x32f)](_0x52203e))==null?new Set():_0x288df8;_0x18aa22[_0x1facd8(0x42c)](_0x295e5f),this[_0x1facd8(0x41b)]['set'](_0x52203e,_0x18aa22);}_0x49b9c9['addObject'](_0x295e5f,_0x114b3e[_0x1facd8(0x3e0)]),_0x10a8cf&&_0x49b9c9[_0x1facd8(0x187)](_0x295e5f),_0x1ec179&&(0x0,_0x34fb64[_0x1facd8(0x1bb)])({'drawingId':_0x1ec179,'unitId':_0x237bdf,'subUnitId':_0x337415},_0x295e5f,_0x49b9c9,this[_0x1facd8(0x1a2)]),_0x248394!=null&&_0x295e5f[_0x1facd8(0x2f2)](_0x248394),_0x5c3b7e!=null&&_0x295e5f[_0x1facd8(0x16b)](_0x5c3b7e);let _0x77c1a5=this[_0x1facd8(0x121)](_0x295e5f,_0x10575f[_0x1facd8(0x1e0)]());if(_0x77c1a5){var _0xb3943d;_0x22a47b==null||(_0xb3943d=_0x22a47b[_0x1facd8(0x189)])==null||_0xb3943d['add'](_0x77c1a5);}_0xd43528[_0x1facd8(0x1b1)](_0x295e5f);}return _0xd43528;}[_0x1e3977(0x315)](_0x3f3c0e,_0x508d57,_0x486d62){return _0x3f3c0e+'\x00'+_0x508d57+'\x00'+_0x486d62;}[_0x1e3977(0x222)](_0x213a8b,_0xd01215){const _0x9ddbf4=_0x1e3977;let _0x3da541=this[_0x9ddbf4(0x36d)]['getShapeModel'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215[_0x9ddbf4(0x329)]),_0xcfac7d=_0x3da541==null?void 0x0:_0x3da541[_0x9ddbf4(0x1e0)]()[_0x9ddbf4(0x331)],_0x5a736c=this['_formulaKey'](_0xd01215[_0x9ddbf4(0x387)],_0xd01215[_0x9ddbf4(0x204)],_0xd01215['shapeId']);if(_0xcfac7d){var _0x42188c;this[_0x9ddbf4(0x1e4)]['register'](_0xd01215,_0xcfac7d);let _0x2a8038=(_0x42188c=this[_0x9ddbf4(0x41b)][_0x9ddbf4(0x32f)](_0x5a736c))==null?new Set():_0x42188c;_0x2a8038[_0x9ddbf4(0x42c)](_0x213a8b),this[_0x9ddbf4(0x41b)]['set'](_0x5a736c,_0x2a8038);}else{var _0x6325e3;this['_shapeFormulaService'][_0x9ddbf4(0x11f)](_0xd01215),(_0x6325e3=this['_formulaShapes']['get'](_0x5a736c))==null||_0x6325e3['delete'](_0x213a8b);}_0x213a8b[_0x9ddbf4(0x2e4)](_0xcfac7d?this[_0x9ddbf4(0x1e4)][_0x9ddbf4(0x41d)](_0xd01215):void 0x0,(_0xcfac7d==null?void 0x0:_0xcfac7d[_0x9ddbf4(0x18b)])!==!0x1);}[_0x1e3977(0x1b0)](_0x41e5f0){const _0x52796e=_0x1e3977;let _0x269078=_0x41e5f0[_0x52796e(0x425)]['getShapeData'](),_0x1620b4=_0x269078[_0x52796e(0x172)];if(!_0x1620b4||_0x1620b4['fillType']!==_0x3d21cd['ShapeFillEnum'][_0x52796e(0x39c)]||!_0x1620b4[_0x52796e(0x1df)]){_0x41e5f0['setFillImage'](void 0x0);return;}this[_0x52796e(0x121)](_0x41e5f0,_0x269078);}[_0x1e3977(0x121)](_0x1aa9a6,_0x7660cf){const _0xd585db=_0x1e3977;var _0x499816;let _0x92f818=_0x7660cf['fill'];if(!_0x92f818||_0x92f818[_0xd585db(0x3c8)]!==_0x3d21cd['ShapeFillEnum']['PictureFill']||!_0x92f818[_0xd585db(0x1df)])return;let _0x22875b=_0x92f818['fillImageSource'],_0x4c60ea=(_0x499816=_0x92f818[_0xd585db(0x384)])==null?_0x3d21cd[_0xd585db(0x34e)][_0xd585db(0x340)]:_0x499816,_0x50ed12=this['_imageIoService'][_0xd585db(0x2ac)](_0x22875b,_0x4c60ea);if(_0x50ed12){_0x1aa9a6[_0xd585db(0x450)](_0x50ed12);return;}return this[_0xd585db(0x13e)](_0x1aa9a6,_0x22875b,_0x4c60ea);}async[_0x1e3977(0x13e)](_0x5aea33,_0x5ab6db,_0x88be6d){const _0x4b0562=_0x1e3977;let _0x1a1e47;try{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x135)])_0x1a1e47=await this['_imageIoService'][_0x4b0562(0x1d4)](_0x5ab6db);else{if(_0x88be6d===_0x3d21cd[_0x4b0562(0x34e)][_0x4b0562(0x340)])try{_0x1a1e47=await this[_0x4b0562(0x37b)]['getImage'](_0x5ab6db);}catch{_0x1a1e47=_0x5ab6db;}else _0x1a1e47=_0x5ab6db;}}catch(_0x2b0b43){console[_0x4b0562(0x3bf)](_0x4b0562(0x33a),_0x2b0b43);return;}await new Promise(_0x5b6968=>{const _0x493ad9=_0x4b0562;let _0x5387a7=new window[(_0x493ad9(0x3c3))]();_0x5387a7['onload']=()=>{this['_imageIoService']['addImageSourceCache'](_0x5ab6db,_0x88be6d,_0x5387a7),_0x5aea33['setFillImage'](_0x5387a7),_0x5b6968();},_0x5387a7[_0x493ad9(0x2d7)]=()=>{const _0x38a65d=_0x493ad9;console[_0x38a65d(0x3bf)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x5ab6db),_0x5b6968();},_0x5387a7['src']=_0x1a1e47;});}};_0x1f5133=_0xba323d([_0x5a8c13(0x0,_0x215a9['IDrawingManagerService']),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be['SheetsShapeService'])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['LocaleService'])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x357)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x265)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x32598e['ShapeFormulaService']))],_0x1f5133);let _0x34fe5c=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2793c6,_0x30ff20,_0x16c642,_0x4f2b27,_0xc170d2,_0x6227e3){const _0x3df55f=_0x1e3977;super(),this[_0x3df55f(0x1a2)]=_0x2793c6,this['_sheetsShapeService']=_0x30ff20,this[_0x3df55f(0x3ba)]=_0x16c642,this['_sheetDrawingShapeRenderController']=_0x4f2b27,this[_0x3df55f(0x18f)]=_0xc170d2,this[_0x3df55f(0x2dc)]=_0x6227e3,_0x163ed0(this,'_activeShapeId',null),_0x163ed0(this,_0x3df55f(0x44e),null),_0x163ed0(this,_0x3df55f(0x18a),null),_0x163ed0(this,_0x3df55f(0x1f6),void 0x0),_0x163ed0(this,_0x3df55f(0x1aa),[]),_0x163ed0(this,_0x3df55f(0x203),0x0),_0x163ed0(this,_0x3df55f(0x34d),0x0),_0x163ed0(this,'_baseShapeWidth',0x0),_0x163ed0(this,'_baseShapeHeight',0x0),_0x163ed0(this,'_isStartAdjusting',!0x1),_0x163ed0(this,_0x3df55f(0x420),void 0x0),_0x163ed0(this,_0x3df55f(0x190),void 0x0),_0x163ed0(this,'_adjHandlerPointerMove',void 0x0),_0x163ed0(this,_0x3df55f(0x153),void 0x0),_0x163ed0(this,_0x3df55f(0x401),!0x1),this[_0x3df55f(0x2f6)](),this[_0x3df55f(0x1c4)]();}['_getShapeAdjustPointListById'](_0x74bd0c,_0x305b5b,_0x1f33fc){const _0xfdde03=_0x1e3977;let _0x22b00f=this[_0xfdde03(0x36d)][_0xfdde03(0x134)](_0x74bd0c,_0x305b5b,_0x1f33fc);if(_0x22b00f)return _0x22b00f['getDrawingPoints']();}[_0x1e3977(0x414)](){const _0x9adce5=_0x1e3977;this[_0x9adce5(0x439)]();}[_0x1e3977(0x434)](){const _0x4acf64=_0x1e3977;this[_0x4acf64(0x15f)](!0x0);}['setShouldShowAdjust'](_0x28914b){const _0x276344=_0x1e3977;this[_0x276344(0x401)]=_0x28914b;}[_0x1e3977(0x2c6)](_0x30c886,_0x1da24d,_0x211e12,_0x5a9255){let _0x342997=this['_sheetsShapeService']['getShapeModel'](_0x30c886,_0x1da24d,_0x211e12);if(_0x342997)return _0x342997['getAdjustInfoByName'](_0x5a9255);}[_0x1e3977(0x44a)](_0x2a3067=!0x1){const _0x5203b3=_0x1e3977;if(this[_0x5203b3(0x44e)]===null||this[_0x5203b3(0x18a)]===null||this[_0x5203b3(0x166)]===null)return;let _0x5528dc=this[_0x5203b3(0x3ba)][_0x5203b3(0x2be)](this['_unitId']);if(!_0x5528dc||!_0x5528dc[_0x5203b3(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5203b3(0x26d)]())return;let {scene:_0x310db4}=_0x5528dc,_0xad02ce={'unitId':this[_0x5203b3(0x44e)],'subUnitId':this[_0x5203b3(0x18a)],'drawingId':this[_0x5203b3(0x166)]},_0x51ddfa=this[_0x5203b3(0x1a2)][_0x5203b3(0x3d4)](_0xad02ce),{transform:_0x307b5b}=_0x51ddfa;if(!_0x307b5b||_0x51ddfa['drawingType']!==_0x2eccf5[_0x5203b3(0x43b)]['DRAWING_SHAPE'])return;let {left:_0x105aad,top:_0x2196e5,width:_0x32ca17,height:_0x17a22d,flipX:_0x405ece,flipY:_0x5507f2,angle:_0x406133=0x0}=_0x307b5b;if(_0x105aad===void 0x0||_0x2196e5===void 0x0)return;if(_0x2a3067){let _0x581dd5=this['_sheetsShapeService']['getShapeModel'](this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)],this[_0x5203b3(0x166)]);_0x581dd5==null||_0x581dd5[_0x5203b3(0x1b9)]({'width':_0x32ca17==null?0x0:_0x32ca17,'height':_0x17a22d==null?0x0:_0x17a22d}),this[_0x5203b3(0x1f6)]=_0x581dd5==null?void 0x0:_0x581dd5[_0x5203b3(0x22e)]();}let _0x297557=this[_0x5203b3(0x1f6)];for(let _0x4c7b38=0x0;_0x4c7b38<_0x297557['length'];_0x4c7b38++){let _0x5f2b46=_0x297557[_0x4c7b38],_0x110da8=_0x5f2b46['x'],_0x1f11b8=_0x5f2b46['y'];if(_0x405ece&&(_0x110da8=(_0x32ca17||0x0)-_0x110da8),_0x5507f2&&(_0x1f11b8=(_0x17a22d||0x0)-_0x1f11b8),_0x406133!==0x0){let _0x533c9f=(_0x32ca17||0x0)/0x2,_0x40f04a=(_0x17a22d||0x0)/0x2,_0x1c1df6=_0x406133*Math['PI']/0xb4,_0x1934f9=Math[_0x5203b3(0x1fb)](_0x1c1df6),_0x2a3d90=Math['sin'](_0x1c1df6),_0x53a019=_0x110da8-_0x533c9f,_0x328ff2=_0x1f11b8-_0x40f04a;_0x110da8=_0x533c9f+(_0x53a019*_0x1934f9-_0x328ff2*_0x2a3d90),_0x1f11b8=_0x40f04a+(_0x53a019*_0x2a3d90+_0x328ff2*_0x1934f9);}let _0x2de920={'x':_0x110da8,'y':_0x1f11b8,'adjName':_0x5f2b46[_0x5203b3(0x19b)]};this[_0x5203b3(0x40a)](_0x310db4,_0x2de920,_0x2de920[_0x5203b3(0x19b)],_0x105aad,_0x2196e5,this[_0x5203b3(0x44e)],this[_0x5203b3(0x18a)]);}}[_0x1e3977(0x15f)](_0x26e31e=!0x1){const _0xd424ac=_0x1e3977;_0x26e31e&&(this['_clearShapeAdjustControls'](),this[_0xd424ac(0x44a)](_0x26e31e));}[_0x1e3977(0x40a)](_0x5b9d3a,_0x26c5ad,_0x219dab,_0x6c0b6d,_0x2b9f66,_0x33f97c,_0xd9aea9){const _0xc050ee=_0x1e3977;if(!this[_0xc050ee(0x166)])return;let _0x41d2ec=_0x5b9d3a['getObjectIncludeInGroup'](_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab);if(_0x41d2ec){_0x41d2ec[_0xc050ee(0x1c7)]({'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)]});return;}let _0x43319b={'left':_0x26c5ad['x']+_0x6c0b6d-_0x3d21cd['ShapeDefaultConfig'][_0xc050ee(0x17d)],'top':_0x26c5ad['y']+_0x2b9f66-_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)],'adjName':_0x219dab,'shapeId':this[_0xc050ee(0x166)],'unitId':_0x33f97c,'subUnitId':_0xd9aea9,'width':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'height':_0x3d21cd[_0xc050ee(0x356)][_0xc050ee(0x17d)]+0x8,'zIndex':_0x114b3e[_0xc050ee(0x3e0)]+0x1,'evented':!0x0},_0x305cdc=new _0x372832(_0xc050ee(0x3e3)+this[_0xc050ee(0x166)]+'-'+_0x219dab,_0x43319b);this[_0xc050ee(0x1aa)][_0xc050ee(0x1b1)](_0x305cdc),this[_0xc050ee(0x3f1)](_0x305cdc,_0x5b9d3a,_0x219dab),_0x5b9d3a[_0xc050ee(0x333)](_0x305cdc,_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1e3977(0x439)](){const _0x2267e6=_0x1e3977;this[_0x2267e6(0x1aa)]['length']!==0x0&&(this[_0x2267e6(0x1aa)][_0x2267e6(0x30e)](_0x1d5908=>{const _0xaa6563=_0x2267e6;_0x1d5908[_0xaa6563(0x175)]();}),this['_shapes']=[]);}[_0x1e3977(0x421)](){const _0x441fc8=_0x1e3977;this[_0x441fc8(0x44a)]();}['_getScrollInfo'](_0x53b908,_0x3e6b1c){const _0x5bfecc=_0x1e3977;var _0x361dc7;let _0x356eb9={'x':0x0,'y':0x0};if(!_0x53b908||!_0x3e6b1c)return _0x356eb9;let _0x482c33=this[_0x5bfecc(0x3ba)][_0x5bfecc(0x2be)](_0x53b908);if(!_0x482c33||!_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x1ae)])[_0x5bfecc(0x367)](_0x3e6b1c))return _0x356eb9;let _0x592dfd=_0x482c33[_0x5bfecc(0x1dc)](_0x3c12d8[_0x5bfecc(0x3ee)]),_0x276833=_0x592dfd==null?void 0x0:_0x592dfd['getCurrentScrollState']();if(!_0x276833)return _0x356eb9;let _0x131f6d=(_0x361dc7=this[_0x5bfecc(0x18f)][_0x5bfecc(0x2f8)](_0x53b908))==null?void 0x0:_0x361dc7[_0x5bfecc(0x269)](_0x3e6b1c);if(!_0x131f6d)return _0x356eb9;let _0x337b57=(0x0,_0x3c12d8[_0x5bfecc(0x1ba)])(_0x276833['sheetViewStartRow'],_0x276833[_0x5bfecc(0x380)],_0x482c33['scene'],_0x131f6d);return _0x337b57?{'x':_0x337b57[_0x5bfecc(0x3d1)],'y':_0x337b57[_0x5bfecc(0x446)]}:_0x356eb9;}[_0x1e3977(0x427)](_0x2cb34e,_0x4fd24e){const _0x238fe9=_0x1e3977;var _0x4c7ca3,_0x35e6ed;let _0x2faecd=(_0x4c7ca3=this['_univerInstanceService'][_0x238fe9(0x2f8)](_0x2cb34e))==null?void 0x0:_0x4c7ca3[_0x238fe9(0x269)](_0x4fd24e);return(_0x35e6ed=_0x2faecd==null?void 0x0:_0x2faecd[_0x238fe9(0x374)]())==null?0x1:_0x35e6ed;}[_0x1e3977(0x3f1)](_0xced445,_0x9f3b33,_0x42102f){const _0x2dfe75=_0x1e3977;this[_0x2dfe75(0x256)]((0x0,_0x2eccf5['toDisposable'])(_0xced445[_0x2dfe75(0x19c)][_0x2dfe75(0x447)]((_0x105c61,_0xe7af46)=>{const _0x414260=_0x2dfe75;var _0x375d6,_0x4d9b4d,_0x4d4d93,_0x1288c8,_0x6990cc;let _0x19582a=_0xced445[_0x414260(0x26e)]();this[_0x414260(0x420)]=this['_getShapeAdjustInfosById'](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)],_0x42102f),this[_0x414260(0x190)]=this[_0x414260(0x36d)][_0x414260(0x134)](_0x19582a[_0x414260(0x387)],_0x19582a[_0x414260(0x204)],_0x19582a[_0x414260(0x22a)]);let _0x8da3f2=this[_0x414260(0x1a2)][_0x414260(0x3d4)]({'unitId':this[_0x414260(0x44e)],'subUnitId':this[_0x414260(0x18a)],'drawingId':this['_activeShapeId']}),{transform:_0x4f1a46}=_0x8da3f2;if(_0x4f1a46){let {left:_0x312d77,top:_0x243d56,width:_0x2399b6,height:_0x8f7753}=_0x4f1a46;this['_baseShapeLeft']=_0x312d77||0x0,this[_0x414260(0x34d)]=_0x243d56||0x0,this['_baseShapeWidth']=_0x2399b6||0x0,this[_0x414260(0x2cd)]=_0x8f7753||0x0;}let _0x1be396=!!((_0x375d6=_0x8da3f2[_0x414260(0x31d)])!=null&&_0x375d6[_0x414260(0x23d)]),_0x3565d3=!!((_0x4d9b4d=_0x8da3f2['transform'])!=null&&_0x4d9b4d[_0x414260(0x1ac)]),_0x1d74d3=((_0x4d4d93=_0x8da3f2[_0x414260(0x31d)])==null?void 0x0:_0x4d4d93[_0x414260(0x1bf)])||0x0;this['_isStartAdjusting']=!0x0,_0x9f3b33['disableObjectsEvent']();let _0x4ec960={...(_0x1288c8=(_0x6990cc=this[_0x414260(0x420)])==null?void 0x0:_0x6990cc['currentAdjustValues'])==null?{}:_0x1288c8};this[_0x414260(0x161)]=_0x9f3b33[_0x414260(0x307)]['subscribeEvent']((_0x9bd5bf,_0x26707d)=>{const _0x3490f2=_0x414260;if(!this[_0x3490f2(0x1bd)])return;let {offsetX:_0xdca601,offsetY:_0x63cbcc}=_0x9bd5bf,_0x3bf5e6=this[_0x3490f2(0x420)];if(this[_0x3490f2(0x190)]&&_0x3bf5e6){_0x9f3b33[_0x3490f2(0x415)](),_0x9f3b33[_0x3490f2(0x3cb)](_0x114b3e[_0x3490f2(0x2c2)][_0x3490f2(0x226)]);let _0x96eaae={'left':0x0,'top':0x0,'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]},_0x4fe392=this[_0x3490f2(0x1c3)](this['_unitId'],this['_subUnitId']),_0x53a14e=this['_getZoomRatio'](this[_0x3490f2(0x44e)],this[_0x3490f2(0x18a)]),_0x59dc85=_0xdca601/_0x53a14e+_0x4fe392['x']-this['_baseShapeLeft'],_0x1a8da8=_0x63cbcc/_0x53a14e+_0x4fe392['y']-this[_0x3490f2(0x34d)];if(_0x1d74d3!==0x0){let _0x33ab50=this[_0x3490f2(0x1da)]/0x2,_0x563370=this['_baseShapeHeight']/0x2,_0x437a23=_0x1d74d3*Math['PI']/0xb4,_0x2071ae=Math[_0x3490f2(0x1fb)](_0x437a23),_0x36888b=Math[_0x3490f2(0x1b5)](_0x437a23),_0x10d6a2=_0x59dc85-_0x33ab50,_0x239ddc=_0x1a8da8-_0x563370;_0x59dc85=_0x33ab50+(_0x10d6a2*_0x2071ae+_0x239ddc*_0x36888b),_0x1a8da8=_0x563370+(-_0x10d6a2*_0x36888b+_0x239ddc*_0x2071ae);}_0x1be396&&(_0x59dc85=this[_0x3490f2(0x1da)]-_0x59dc85),_0x3565d3&&(_0x1a8da8=this['_baseShapeHeight']-_0x1a8da8);let _0x453e93={'x':_0x59dc85,'y':_0x1a8da8},_0x4d264c=this['_activeShapeModel'][_0x3490f2(0x36e)](_0x96eaae,_0x453e93,_0x3bf5e6,_0x1be396,_0x3565d3);if(Object[_0x3490f2(0x391)](_0x4d264c)[_0x3490f2(0x337)]===0x0)return;for(let [_0x18efdb,_0x140fbf]of Object[_0x3490f2(0x3d5)](_0x4d264c))this['_activeShapeModel']['setAdjustValueByName'](_0x18efdb,_0x140fbf);this[_0x3490f2(0x190)][_0x3490f2(0x1b9)]({'width':this[_0x3490f2(0x1da)],'height':this[_0x3490f2(0x2cd)]});let _0x6dd4c9=this['_drawingManagerService'][_0x3490f2(0x3d4)]({'unitId':_0x19582a[_0x3490f2(0x387)],'subUnitId':_0x19582a['subUnitId'],'drawingId':_0x19582a[_0x3490f2(0x22a)]});_0x6dd4c9&&(this[_0x3490f2(0x2ce)][_0x3490f2(0x413)](_0x6dd4c9,_0x9f3b33),this[_0x3490f2(0x1f6)]=this[_0x3490f2(0x38d)](_0x19582a[_0x3490f2(0x387)],_0x19582a['subUnitId'],_0x19582a[_0x3490f2(0x22a)]),this[_0x3490f2(0x421)]());}_0x26707d[_0x3490f2(0x19d)]();}),this[_0x414260(0x153)]=_0x9f3b33['onPointerUp$'][_0x414260(0x447)]((_0x1295c5,_0xe3b75d)=>{const _0x524664=_0x414260;this['_adjHandlerPointerMove'][_0x524664(0x369)](),this[_0x524664(0x153)][_0x524664(0x369)](),_0x9f3b33[_0x524664(0x128)]();let _0x11881d=this['_activeAdjustInfo'];if(_0x11881d){let _0x4da3c8=_0x19582a[_0x524664(0x387)],_0x3b123f=_0x19582a['subUnitId'],_0x7c53e8=_0x19582a['drawingId'],_0x4780be={};for(let _0x3aa24f of Object[_0x524664(0x391)](_0x11881d['currentAdjustValues'])){var _0x141162;let _0x1db343=(_0x141162=this['_activeShapeModel'])==null?void 0x0:_0x141162[_0x524664(0x179)](_0x3aa24f);_0x1db343!==void 0x0&&(_0x4780be[_0x3aa24f]=_0x1db343);}Object[_0x524664(0x391)](_0x4780be)['length']>0x0&&_0x3cdd2e(this[_0x524664(0x2dc)],_0x4da3c8,_0x3b123f,_0x7c53e8,{'oldShapeData':{'adjustValues':_0x4ec960}},{'adjustValues':_0x4780be});}this[_0x524664(0x420)]=void 0x0,this[_0x524664(0x190)]=void 0x0,this['_isStartAdjusting']=!0x1,_0xe3b75d[_0x524664(0x19d)](),_0x9f3b33[_0x524664(0x1ce)]();}),_0xe7af46['stopPropagation']();})));}[_0x1e3977(0x1c4)](){const _0x53dfbc=_0x1e3977;let _0x276994=this[_0x53dfbc(0x18f)][_0x53dfbc(0x2b4)](_0x2eccf5[_0x53dfbc(0x296)]['UNIVER_SHEET']);this[_0x53dfbc(0x256)](_0x276994[_0x53dfbc(0x239)]((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x36a86b=>_0x36a86b?_0x36a86b[_0x53dfbc(0x445)]['pipe']((0x0,_0x124e3f[_0x53dfbc(0x37e)])(_0x4df35b=>{const _0xb0ef8e=_0x53dfbc;if(!_0x4df35b)return _0x124e3f[_0xb0ef8e(0x341)];let _0x250df3=_0x36a86b[_0xb0ef8e(0x322)](),_0x2f4e4a=this[_0xb0ef8e(0x3ba)][_0xb0ef8e(0x2be)](_0x250df3),_0x239390=_0x2f4e4a==null?void 0x0:_0x2f4e4a[_0xb0ef8e(0x14a)];return _0x239390?(0x0,_0x124e3f['of'])(_0x239390):_0x124e3f[_0xb0ef8e(0x341)];})):_0x124e3f[_0x53dfbc(0x341)]))[_0x53dfbc(0x17b)](_0x40eb2d=>{const _0x454302=_0x53dfbc;let _0x11e5a1=_0x40eb2d['getTransformerByCreate']();this[_0x454302(0x256)](_0x40eb2d['onPointerMove$'][_0x454302(0x447)](()=>{const _0xff0bad=_0x454302;this[_0xff0bad(0x401)];})),this[_0x454302(0x256)](_0x11e5a1['changeStart$']['subscribe'](_0x37939b=>{const _0x3501c9=_0x454302;let {objects:_0x9530aa}=_0x37939b;this[_0x3501c9(0x44a)](),_0x9530aa!==null&&_0x9530aa[_0x3501c9(0x419)]===0x1&&_0x9530aa[_0x3501c9(0x158)]()[_0x3501c9(0x1fe)]()[_0x3501c9(0x123)]instanceof _0x34cbbf&&this[_0x3501c9(0x321)](!0x0);})),this[_0x454302(0x256)](_0x11e5a1[_0x454302(0x3be)]['subscribe'](()=>{const _0x250487=_0x454302;this[_0x250487(0x401)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x40eb2d[_0x454302(0x292)][_0x454302(0x447)](()=>{const _0x26106b=_0x454302;this[_0x26106b(0x401)]&&(this[_0x26106b(0x321)](!0x1),this['_createShapeAdjustControls']());})),this['disposeWithMe'](_0x11e5a1[_0x454302(0x31c)][_0x454302(0x17b)](()=>{const _0x575b2f=_0x454302;this['_unitId']&&this[_0x575b2f(0x18a)]&&this[_0x575b2f(0x166)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x575b2f(0x44e)],'subUnitId':this[_0x575b2f(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x575b2f(0x1f6)]=this[_0x575b2f(0x38d)](this[_0x575b2f(0x44e)],this[_0x575b2f(0x18a)],this[_0x575b2f(0x166)]),this['_updateAdjustControlPositions']());}));}));}[_0x1e3977(0x2f6)](){const _0x2470b5=_0x1e3977;this[_0x2470b5(0x256)](this[_0x2470b5(0x2dc)][_0x2470b5(0x17a)](_0x6366dd=>{const _0xd9070d=_0x2470b5;if(_0x6366dd['id']!==_0x1b87be[_0xd9070d(0x3da)]['id'])return;let {unitId:_0x11caa1,subUnitId:_0xe516ef,shapeId:_0x4e9e1c}=_0x6366dd[_0xd9070d(0x2bc)];_0x11caa1===this[_0xd9070d(0x44e)]&&_0xe516ef===this[_0xd9070d(0x18a)]&&_0x4e9e1c===this[_0xd9070d(0x166)]&&this[_0xd9070d(0x434)]();})),this['disposeWithMe'](this[_0x2470b5(0x1a2)][_0x2470b5(0x394)]['subscribe'](_0x2d40a2=>{const _0x447ff0=_0x2470b5;if(_0x2d40a2[_0x447ff0(0x337)]===0x1){let _0x5f4b2b=_0x2d40a2[0x0];if(_0x5f4b2b[_0x447ff0(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x447ff0(0x285)]){this['_activeShapeId']=_0x5f4b2b['drawingId'];let {unitId:_0x21290c,subUnitId:_0x25a2c9}=_0x5f4b2b;this[_0x447ff0(0x1f6)]=this[_0x447ff0(0x38d)](_0x21290c,_0x25a2c9,this[_0x447ff0(0x166)]),this[_0x447ff0(0x44e)]=_0x21290c,this[_0x447ff0(0x18a)]=_0x25a2c9,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();}else this[_0x447ff0(0x166)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x447ff0(0x44e)]=null,this[_0x447ff0(0x18a)]=null,this['_clearShapeAdjustControls']();}(_0x2d40a2[_0x447ff0(0x337)]>0x1||_0x2d40a2[_0x447ff0(0x337)]===0x0)&&(this[_0x447ff0(0x166)]=null,this[_0x447ff0(0x1f6)]=void 0x0,this['_unitId']=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());})),this['disposeWithMe'](this[_0x2470b5(0x1a2)]['update$'][_0x2470b5(0x17b)](_0x5e39cf=>{const _0x76ad00=_0x2470b5;if(_0x5e39cf[_0x76ad00(0x337)]===0x1){var _0x4dd6d8;let _0x26e8b6=_0x5e39cf[0x0];((_0x4dd6d8=this['_drawingManagerService'][_0x76ad00(0x3d4)](_0x26e8b6))==null?void 0x0:_0x4dd6d8[_0x76ad00(0x34b)])===_0x2eccf5[_0x76ad00(0x43b)][_0x76ad00(0x285)]&&this[_0x76ad00(0x15f)](!0x0);}})),this[_0x2470b5(0x256)](this['_drawingManagerService'][_0x2470b5(0x3fa)][_0x2470b5(0x17b)](_0x31fa78=>{const _0x183c2c=_0x2470b5;for(let _0x356c8a of _0x31fa78)this[_0x183c2c(0x166)]===_0x356c8a[_0x183c2c(0x22a)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x183c2c(0x44e)]=null,this[_0x183c2c(0x18a)]=null,this[_0x183c2c(0x439)]());}));}};_0x34fe5c=_0xba323d([_0x5a8c13(0x0,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e['IRenderManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133)),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)])],_0x34fe5c);let _0x4162f6={'id':_0x1e3977(0x215),'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'handler':(_0x537f2d,_0x3a1bfc)=>{const _0x318215=_0x1e3977;let _0x504c70=_0x537f2d[_0x318215(0x32f)](_0x215a9[_0x318215(0x18c)]),_0x57fba5=_0x537f2d[_0x318215(0x32f)](_0x114b3e[_0x318215(0x42b)]),_0x727ffc=_0x537f2d[_0x318215(0x32f)](_0x34fe5c);if(_0x3a1bfc==null)return!0x0;if(_0x3a1bfc[_0x318215(0x337)]>0x0){var _0x392461;let _0x3f3193=(_0x392461=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0]['unitId']))==null?void 0x0:_0x392461[_0x318215(0x14a)];if(_0x3f3193){let {unitId:_0x489cf6,subUnitId:_0x400008,drawingId:_0x208d26}=_0x3a1bfc[0x0],_0x4b8363=(0x0,_0x215a9[_0x318215(0x2ee)])({'unitId':_0x489cf6,'subUnitId':_0x400008,'drawingId':_0x208d26},void 0x0),_0x12dfcd=_0x3f3193['getObjectIncludeInGroup'](_0x4b8363);if(_0x12dfcd){var _0x137baf;(_0x137baf=_0x57fba5[_0x318215(0x2be)](_0x3a1bfc[0x0][_0x318215(0x387)]))==null||(_0x137baf=_0x137baf[_0x318215(0x14a)][_0x318215(0x3ff)]())==null||_0x137baf['activeAnObject'](_0x12dfcd);}}_0x504c70[_0x318215(0x423)](_0x3a1bfc),_0x727ffc['setShouldShowAdjust'](!0x1);}return!0x0;}},_0x29cd9f={'type':_0x2eccf5['CommandType'][_0x1e3977(0x209)],'id':_0x1e3977(0x13f),'handler':async(_0x53a7f8,_0xc5d2a9)=>{const _0x1d3bc6=_0x1e3977;let _0x12fddb=(0x0,_0x2554f2[_0x1d3bc6(0x355)])(_0x53a7f8['get'](_0x2eccf5[_0x1d3bc6(0x178)]));if(!_0x12fddb)return!0x1;let _0x196094=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2554f2[_0x1d3bc6(0x3fd)])[_0x1d3bc6(0x191)]();if(!_0x196094)return!0x1;let _0x56402c=_0x53a7f8[_0x1d3bc6(0x32f)](_0x2eccf5['ICommandService']),{unitId:_0x2a0919,subUnitId:_0x5a6aec}=_0x12fddb,{value:_0x58d8b0,enhanceParams:_0x555a22}=_0xc5d2a9,{range:_0x2d82a8}=_0x196094,_0x24ab20={'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'shapeType':_0x58d8b0,'range':_0x2d82a8,'shapeId':(0x0,_0x2eccf5[_0x1d3bc6(0x2f1)])()};if(_0x555a22){let _0x460b84=(0x0,_0x3d21cd[_0x1d3bc6(0x275)])(_0x58d8b0),_0x2e1b5f=_0x58d8b0===_0x3d21cd[_0x1d3bc6(0x2bf)][_0x1d3bc6(0x31a)];_0x460b84&&(_0x555a22[_0x1d3bc6(0x2b6)]||_0x555a22[_0x1d3bc6(0x3fb)])&&(_0x24ab20[_0x1d3bc6(0x28a)]={'ln':{'startArrow':_0x555a22['startArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)]['Arrow'],'size':_0x3d21cd['ShapeArrowSizeEnum']['Medium']}:void 0x0,'endArrow':_0x555a22['endArrow']?{'type':_0x3d21cd[_0x1d3bc6(0x156)][_0x1d3bc6(0x24f)],'size':_0x3d21cd['ShapeArrowSizeEnum'][_0x1d3bc6(0x31b)]}:void 0x0}}),_0x2e1b5f&&(_0x555a22[_0x1d3bc6(0x2a7)]||_0x555a22[_0x1d3bc6(0x1f1)])&&(_0x24ab20['shapeData']=(0x0,_0x32598e['createShapeTextBoxShapeData'])({'fill':{'fillType':_0x3d21cd['ShapeFillEnum'][_0x1d3bc6(0x313)],'color':_0x1d3bc6(0x268)},'isHorizontal':!!_0x555a22['horizontal'],'stroke':{'lineStrokeType':_0x3d21cd[_0x1d3bc6(0x1db)][_0x1d3bc6(0x395)],'width':0x1,'color':'#bcbcbc'}}));}let _0x3b9b50=_0x56402c[_0x1d3bc6(0x1fa)](_0x1b87be['InsertShapeCommand']['id'],_0x24ab20);return setTimeout(()=>{const _0x15d30e=_0x1d3bc6;_0x56402c[_0x15d30e(0x216)](_0x4162f6['id'],[{'unitId':_0x2a0919,'subUnitId':_0x5a6aec,'drawingId':_0x24ab20['shapeId']}]);},0xc8),_0x3b9b50;}},_0xb9db8d=_0x1e3977(0x38a),_0x19a922=_0x1e3977(0x335),_0x1f1d2c='sheet.shape.floating-toolbar',_0x39b4a9=(0x0,_0x2eccf5['createInternalEditorID'])('SHAPE_TEXT'),_0x9609bf='sheet.shape.text.float-menu',_0x393ac4={'id':_0x1e3977(0x236),'type':_0x2eccf5['CommandType']['COMMAND'],'handler':(_0x357534,_0x2bd638)=>{const _0x9207d1=_0x1e3977;let _0x5d1952=_0x357534[_0x9207d1(0x32f)](_0x4b5551['ISidebarService']),_0x39aed8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x24d)]),_0x5c11b8=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x178)]),_0x5bf9b5=_0x357534[_0x9207d1(0x32f)](_0x2eccf5[_0x9207d1(0x1b2)]);return(0x0,_0x2554f2[_0x9207d1(0x355)])(_0x5c11b8)?(_0x2bd638==null?void 0x0:_0x2bd638[_0x9207d1(0x123)])===_0x9207d1(0x309)?(_0x5d1952[_0x9207d1(0x309)](_0x19a922),!0x0):(_0x5d1952[_0x9207d1(0x1bc)]({'id':_0x19a922,'header':{'title':_0x39aed8['t'](_0x9207d1(0x2df))},'children':{'label':_0x19a922},'onClose':()=>{const _0x2fa475=_0x9207d1;_0x5bf9b5[_0x2fa475(0x1fa)](_0x215a9[_0x2fa475(0x3b4)]['id'],[]);},'width':0x168}),!0x0):!0x1;}},_0x432d68=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2f0735,_0x4bebf6){const _0x4944aa=_0x1e3977;super(),this[_0x4944aa(0x213)]=_0x2f0735,this[_0x4944aa(0x1a2)]=_0x4bebf6,this[_0x4944aa(0x1b4)](),this['_clipService']['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x4944aa(0x213)]['setCanUseShapeClip'](!0x1)});}[_0x1e3977(0x1b4)](){const _0x4375c7=_0x1e3977;let _0x280a91=this[_0x4375c7(0x213)],_0x8fc27=new Map(),_0x126867=_0x280a91[_0x4375c7(0x316)]((_0x58bd3d,_0x288eaa,_0x2459d3,_0x13309f,_0x4c473c)=>{const _0x368bfc=_0x4375c7;let _0x42771c=_0x288eaa;if(_0x42771c===_0x3d21cd['ShapeTypeEnum'][_0x368bfc(0x174)]||_0x288eaa==='custom')return!0x1;try{let _0x5e6128=_0x8fc27['get'](_0x288eaa);return _0x5e6128||(_0x5e6128=new _0x3d21cd['ShapeModel'](_0x42771c,_0x368bfc(0x218)+_0x288eaa),_0x8fc27[_0x368bfc(0x310)](_0x288eaa,_0x5e6128)),_0x5e6128[_0x368bfc(0x3bb)](),_0x4c473c&&Object[_0x368bfc(0x391)](_0x4c473c)['length']>0x0&&_0x5e6128[_0x368bfc(0x25a)]({'adjustValues':_0x4c473c},!0x0),_0x5e6128[_0x368bfc(0x1b9)]({'width':_0x2459d3,'height':_0x13309f}),_0x5e6128['buildClipPath'](_0x58bd3d,{'left':0x0,'top':0x0,'width':_0x2459d3,'height':_0x13309f});}catch{return!0x1;}});this[_0x4375c7(0x256)](_0x126867),this[_0x4375c7(0x256)]({'dispose':()=>_0x8fc27['clear']()});}[_0x1e3977(0x2a0)](_0x37ac98,_0x2da1e7,_0x57b435,_0x52b1ce,_0x5a0bf6){const _0x1f0925=_0x1e3977;let _0x3971bd=this['_drawingManagerService'][_0x1f0925(0x173)](_0x37ac98,_0x2da1e7);if(!_0x3971bd[_0x57b435])return;let _0x1afec2={..._0x3971bd[_0x57b435],'prstGeom':_0x52b1ce,'adjustValues':_0x5a0bf6};this[_0x1f0925(0x1a2)][_0x1f0925(0x207)]([_0x1afec2]);}};_0x432d68=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64[_0x1e3977(0x36a)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)]))],_0x432d68);let _0x1ed21a=_0x1e3977(0x29c),_0x456ca6=_0x1e3977(0x165);function _0x17973b({onShapeClick:_0x55471e,excludeGroups:_0xabe569}){const _0x8f636=_0x1e3977;return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0x8f636(0x10d)],{'excludeGroups':_0xabe569,'onShapeClick':_0x55471e,'scrollContainer':_0x8f636(0x37c)});}function _0x5968f5(){const _0x2e9eaf=_0x1e3977;let _0x3e5142=(0x0,_0x4b5551['useDependency'])(_0x215a9[_0x2e9eaf(0x18c)]),_0x516b8e=(0x0,_0x4b5551[_0x2e9eaf(0x11c)])(_0x432d68);return(0x0,_0x2dcc44[_0x2e9eaf(0x32e)])(_0x25b599[_0x2e9eaf(0x43e)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x25b599[_0x2e9eaf(0x279)][_0x2e9eaf(0x125)]],'onShapeClick':_0x3a9590=>{const _0x3ca35c=_0x2e9eaf;let _0x22f012=_0x3e5142[_0x3ca35c(0x40c)]()[_0x3ca35c(0x24b)](_0x572588=>_0x572588[_0x3ca35c(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x3ca35c(0x22c)]);if(!_0x22f012)return;let {unitId:_0x2b279a,subUnitId:_0x3f0827,drawingId:_0x57a3d9}=_0x22f012;_0x516b8e[_0x3ca35c(0x2a0)](_0x2b279a,_0x3f0827,_0x57a3d9,_0x3a9590['type']);}});}function _0x49666e(){const _0x91670f=_0x1e3977;let _0x380d26=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x4b5551[_0x91670f(0x32c)]),_0x7fb1f1=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x215a9['IDrawingManagerService']),_0x57bbe6=(0x0,_0x4b5551[_0x91670f(0x11c)])(_0x2eccf5['IUniverInstanceService']),_0x4665d7=_0x7fb1f1[_0x91670f(0x40c)]()[0x0],_0x581df4=_0x4665d7?_0x57bbe6[_0x91670f(0x3aa)](_0x4665d7[_0x91670f(0x387)]):void 0x0,_0x3beb59=_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x1f9)]?_0x91670f(0x3fc):_0x581df4===_0x2eccf5[_0x91670f(0x296)][_0x91670f(0x293)]?_0x456ca6:void 0x0,_0x2f362a=_0x3beb59?_0x380d26[_0x91670f(0x32f)](_0x3beb59):void 0x0;return _0x2f362a?(0x0,_0x2dcc44[_0x91670f(0x32e)])(_0x2f362a,{}):null;}function _0x46b9a0(){let _0xf41edd=(0x0,_0x4b5551['useDependency'])(_0x2eccf5['ICommandService']);return(0x0,_0x2dcc44['jsx'])(_0x17973b,{'onShapeClick':_0x56a378=>{const _0x3d3fb4=_0x93c9;_0xf41edd['executeCommand'](_0x29cd9f['id'],{'value':_0x56a378[_0x3d3fb4(0x13c)],'enhanceParams':{'endArrow':_0x56a378['endArrow'],'startArrow':_0x56a378['startArrow'],'horizontal':_0x56a378[_0x3d3fb4(0x2a7)],'vertical':_0x56a378[_0x3d3fb4(0x1f1)]}});}});}function _0x488c8b(_0x27c005){const _0x1c1309=_0x1e3977;let _0x55a959=_0x27c005[_0x1c1309(0x32f)](_0x2eccf5[_0x1c1309(0x178)]);return{'id':_0x29cd9f['id'],'type':_0x4b5551[_0x1c1309(0x344)][_0x1c1309(0x388)],'selections':[{'label':{'name':_0x1ed21a,'hoverable':!0x1,'selectable':!0x1,'props':{'id':_0x29cd9f['id']}}}],'icon':_0x1c1309(0x302),'tooltip':_0x1c1309(0x152),'activated$':(0x0,_0x3c12d8['deriveStateFromActiveSheet$'])(_0x55a959,!0x1,()=>new _0x124e3f['Observable'](_0x1f8e51=>{const _0x1f2cbb=_0x1c1309;_0x1f8e51[_0x1f2cbb(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551[_0x1c1309(0x40e)])(_0x27c005,_0x2eccf5[_0x1c1309(0x296)][_0x1c1309(0x293)]),'disabled$':(0x0,_0x3c12d8['getCurrentRangeDisable$'])(_0x27c005)};}function _0x436454(_0x286b62){const _0xfaddc8=_0x1e3977;let _0x20fb94=_0x286b62[_0xfaddc8(0x32f)](_0x2eccf5[_0xfaddc8(0x178)]);return{'id':_0x393ac4['id'],'type':_0x4b5551['MenuItemType'][_0xfaddc8(0x3db)],'icon':_0xfaddc8(0x1f7),'title':_0xfaddc8(0x325),'tooltip':_0xfaddc8(0x325),'activated$':(0x0,_0x3c12d8[_0xfaddc8(0x298)])(_0x20fb94,!0x1,()=>new _0x124e3f[(_0xfaddc8(0x39a))](_0x30c544=>{const _0x2df28c=_0xfaddc8;_0x30c544[_0x2df28c(0x1fe)](!0x1);})),'hidden$':(0x0,_0x4b5551['getMenuHiddenObservable'])(_0x286b62,_0x2eccf5[_0xfaddc8(0x296)]['UNIVER_SHEET']),'disabled$':(0x0,_0x3c12d8[_0xfaddc8(0x230)])(_0x286b62)};}let _0x2f7d0f='sheet.menu.shape.flip-horizontal',_0x4dfc59=_0x1e3977(0x2cc);function _0x34faa1(_0x485aa7){const _0x3bde45=_0x1e3977;let _0x4769dd=_0x485aa7[_0x3bde45(0x32f)](_0x215a9[_0x3bde45(0x18c)])[_0x3bde45(0x40c)]();return _0x4769dd[_0x3bde45(0x337)]===0x1&&_0x4769dd[0x0][_0x3bde45(0x34b)]===_0x2eccf5[_0x3bde45(0x43b)][_0x3bde45(0x285)]?_0x4769dd[0x0]:null;}function _0x4e4fbf(_0x3c2214){const _0x8832e0=_0x1e3977;let _0x2e87de=_0x3c2214['get'](_0x215a9[_0x8832e0(0x18c)]);return _0x2e87de[_0x8832e0(0x394)][_0x8832e0(0x239)]((0x0,_0x124e3f[_0x8832e0(0x1c2)])(_0x2e87de['getFocusDrawings']()),(0x0,_0x124e3f[_0x8832e0(0x43f)])(_0x250d80=>_0x250d80[_0x8832e0(0x337)]!==0x1||_0x250d80[0x0]['drawingType']!==_0x2eccf5[_0x8832e0(0x43b)][_0x8832e0(0x285)]));}function _0x36a234(_0x344a31){const _0x3d0d44=_0x1e3977;return{'id':_0x2f7d0f,'commandId':_0x1b87be[_0x3d0d44(0x383)]['id'],'type':_0x4b5551[_0x3d0d44(0x344)][_0x3d0d44(0x3db)],'title':'sheets-shape-ui.flipHorizontal','tooltip':_0x3d0d44(0x3ae),'icon':_0x3d0d44(0x2f0),'hidden$':_0x4e4fbf(_0x344a31),'params':()=>{const _0x40d47d=_0x3d0d44;let _0x4b7333=_0x34faa1(_0x344a31);return _0x4b7333?{'unitId':_0x4b7333[_0x40d47d(0x387)],'subUnitId':_0x4b7333[_0x40d47d(0x204)],'shapeId':_0x4b7333[_0x40d47d(0x22a)],'flipH':!0x0}:void 0x0;}};}function _0x1d3c90(_0x129ece){const _0x22a168=_0x1e3977;return{'id':_0x4dfc59,'commandId':_0x1b87be['ToggleSheetsShapeFlipCommand']['id'],'type':_0x4b5551[_0x22a168(0x344)][_0x22a168(0x3db)],'title':_0x22a168(0x10b),'tooltip':_0x22a168(0x10b),'icon':_0x22a168(0x406),'hidden$':_0x4e4fbf(_0x129ece),'params':()=>{const _0x5da263=_0x22a168;let _0x276f6c=_0x34faa1(_0x129ece);return _0x276f6c?{'unitId':_0x276f6c['unitId'],'subUnitId':_0x276f6c[_0x5da263(0x204)],'shapeId':_0x276f6c[_0x5da263(0x22a)],'flipV':!0x0}:void 0x0;}};}let _0x3b310c={[_0x4b5551['RibbonInsertGroup']['MEDIA']]:{[_0x29cd9f['id']]:{'order':0x4,'menuItemFactory':_0x488c8b}},[_0x4b5551[_0x1e3977(0x3d6)][_0x1e3977(0x284)]]:{[_0x393ac4['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_0x436454}},[_0x4b5551[_0x1e3977(0x2e7)][_0x1e3977(0x113)]]:{[_0x4b5551['ContextMenuGroup'][_0x1e3977(0x284)]]:{[_0x2f7d0f]:{'order':0x4,'menuItemFactory':_0x36a234},[_0x4dfc59]:{'order':0x5,'menuItemFactory':_0x1d3c90}}}};var _0xa08251='@univerjs-pro/sheets-shape-ui',_0x3fe8c1=_0x1e3977(0x17c);let _0x157efe={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x418),'handler'(){return!0x0;}},_0x148656={'type':_0x2eccf5[_0x1e3977(0x129)][_0x1e3977(0x3ef)],'id':_0x1e3977(0x373),'handler'(){return!0x0;}},_0x4f4787={};function _0x4b8678({ref:_0x1df250,..._0xf7ec53}){const _0xa60854=_0x1e3977;let {icon:_0x11d6d3,id:_0x19b5d5,className:_0x3dfa18,extend:_0x52e6e6,..._0x135d44}=_0xf7ec53,_0x388146=('univerjs-icon\x20univerjs-icon-'+_0x19b5d5+'\x20'+(_0x3dfa18||''))[_0xa60854(0x3f8)](),_0x56e976=(0x0,_0x33f0ff[_0xa60854(0x389)])('_'+_0x4c1645());return _0x32b6df(_0x11d6d3,''+_0x19b5d5,{'defIds':_0x11d6d3[_0xa60854(0x311)],'idSuffix':_0x56e976[_0xa60854(0x38e)]},{'ref':_0x1df250,'className':_0x388146,..._0x135d44},_0x52e6e6);}function _0x32b6df(_0x2cd28b,_0x54fd21,_0x51735d,_0x1fa9d7,_0x4a6d79){const _0x1676aa=_0x1e3977;return(0x0,_0x33f0ff[_0x1676aa(0x338)])(_0x2cd28b['tag'],{'key':_0x54fd21,..._0x384154(_0x2cd28b,_0x51735d,_0x4a6d79),..._0x1fa9d7},(_0x2b9ebc(_0x2cd28b,_0x51735d)[_0x1676aa(0x273)]||[])[_0x1676aa(0x43f)]((_0x123158,_0x51ff65)=>_0x32b6df(_0x123158,_0x54fd21+'-'+_0x2cd28b['tag']+'-'+_0x51ff65,_0x51735d,void 0x0,_0x4a6d79)));}function _0x384154(_0x137561,_0x16eb1d,_0x5e0a33){const _0x2fc0b7=_0x1e3977;let _0x4b6d23={..._0x137561[_0x2fc0b7(0x2dd)]};_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x172)]===_0x2fc0b7(0x348)&&(_0x4b6d23[_0x2fc0b7(0x172)]=_0x5e0a33['colorChannel1']),_0x5e0a33!=null&&_0x5e0a33['colorChannel1']&&_0x4b6d23[_0x2fc0b7(0x3ed)]==='colorChannel1'&&(_0x4b6d23['stroke']=_0x5e0a33['colorChannel1']),_0x137561[_0x2fc0b7(0x291)]===_0x2fc0b7(0x2e1)&&_0x4b6d23['id']&&(_0x4b6d23['id']+=_0x16eb1d['idSuffix']),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)['forEach'](([_0x555f8c,_0x12606c])=>{const _0x458155=_0x2fc0b7;_0x555f8c===_0x458155(0x2e1)&&typeof _0x12606c==_0x458155(0x144)&&(_0x4b6d23[_0x555f8c]=_0x12606c[_0x458155(0x352)](/url\(#(.*)\)/,_0x458155(0x370)+_0x16eb1d[_0x458155(0x1c5)]+')'));});let {defIds:_0x35e84e}=_0x16eb1d;return!_0x35e84e||_0x35e84e[_0x2fc0b7(0x337)]===0x0?_0x4b6d23:(_0x137561['tag']===_0x2fc0b7(0x1c9)&&_0x4b6d23[_0x2fc0b7(0x39f)]&&(_0x4b6d23[_0x2fc0b7(0x39f)]+=_0x16eb1d[_0x2fc0b7(0x1c5)]),Object[_0x2fc0b7(0x3d5)](_0x4b6d23)[_0x2fc0b7(0x30e)](([_0x309cca,_0x4f4c4f])=>{const _0x5ade92=_0x2fc0b7;typeof _0x4f4c4f==_0x5ade92(0x144)&&(_0x4b6d23[_0x309cca]=_0x4f4c4f[_0x5ade92(0x352)](/url\(#(.*)\)/,_0x5ade92(0x370)+_0x16eb1d['idSuffix']+')'));}),_0x4b6d23);}function _0x2b9ebc(_0x5700d1,_0x296b1f){const _0x3f05ae=_0x1e3977;var _0x2a4d45;let {defIds:_0x5123b1}=_0x296b1f;return!_0x5123b1||_0x5123b1[_0x3f05ae(0x337)]===0x0?_0x5700d1:_0x5700d1[_0x3f05ae(0x291)]===_0x3f05ae(0x2b8)&&(_0x2a4d45=_0x5700d1['children'])!=null&&_0x2a4d45[_0x3f05ae(0x337)]?{..._0x5700d1,'children':_0x5700d1[_0x3f05ae(0x273)]['map'](_0x311dc1=>typeof _0x311dc1[_0x3f05ae(0x2dd)]['id']==_0x3f05ae(0x144)&&_0x5123b1&&_0x5123b1[_0x3f05ae(0x3c2)](_0x311dc1[_0x3f05ae(0x2dd)]['id'])?{..._0x311dc1,'attrs':{..._0x311dc1[_0x3f05ae(0x2dd)],'id':_0x311dc1['attrs']['id']+_0x296b1f['idSuffix']}}:_0x311dc1)}:_0x5700d1;}function _0x4c1645(){const _0x3bb7e5=_0x1e3977;return Math['random']()['toString'](0x24)[_0x3bb7e5(0x3e2)](0x2,0x8);}_0x4b8678[_0x1e3977(0x3f6)]=_0x1e3977(0x2d8);let _0x5dc691={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':'1em'},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x319),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x198),'strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M8\x202.2V3.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':'currentColor','d':_0x1e3977(0x3f2),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x232),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':'path','attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x2f5),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x194a17=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x14e816,_0x17215b){const _0x54258a=_0x1e3977;return(0x0,_0x33f0ff[_0x54258a(0x338)])(_0x4b8678,Object[_0x54258a(0x438)]({},_0x14e816,{'id':_0x54258a(0x407),'ref':_0x17215b,'icon':_0x5dc691}));});_0x194a17[_0x1e3977(0x3f6)]=_0x1e3977(0x2f0);let _0x14e41a={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':'none','viewBox':_0x1e3977(0x376),'width':_0x1e3977(0x1be),'height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x202.6L8\x206.2L12.7\x202.6H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M3.3\x2013.4L8\x209.8L12.7\x2013.4H3.3Z','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':'round','strokeWidth':1.3}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1e3977(0x17f),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M6.2\x208H7.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'M10.2\x208H11.8','strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x385),'strokeLinecap':_0x1e3977(0x155),'strokeWidth':1.2}}]},_0x1e6e5=(0x0,_0x33f0ff['forwardRef'])(function(_0x484882,_0x271ecc){const _0x9387e4=_0x1e3977;return(0x0,_0x33f0ff[_0x9387e4(0x338)])(_0x4b8678,Object['assign']({},_0x484882,{'id':'flip-vertical-icon','ref':_0x271ecc,'icon':_0x14e41a}));});_0x1e6e5[_0x1e3977(0x3f6)]=_0x1e3977(0x406);let _0x2b29ce={'tag':_0x1e3977(0x390),'attrs':{'xmlns':_0x1e3977(0x270),'fill':_0x1e3977(0x416),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1e3977(0x1be)},'children':[{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':_0x1e3977(0x260),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.3}},{'tag':_0x1e3977(0x28f),'attrs':{'stroke':_0x1e3977(0x3eb),'d':'m2\x207.75\x206\x202.95\x206-2.95M2\x2010.75l6\x202.95\x206-2.95','strokeLinecap':_0x1e3977(0x155),'strokeLinejoin':_0x1e3977(0x155),'strokeWidth':1.3}}]},_0x2f353d=(0x0,_0x33f0ff[_0x1e3977(0x132)])(function(_0x38532b,_0x2bbfbf){const _0x1a7444=_0x1e3977;return(0x0,_0x33f0ff['createElement'])(_0x4b8678,Object[_0x1a7444(0x438)]({},_0x38532b,{'id':_0x1a7444(0x235),'ref':_0x2bbfbf,'icon':_0x2b29ce}));});_0x2f353d[_0x1e3977(0x3f6)]=_0x1e3977(0x1f7);function _0x32de57(_0x44d846){return _0x44d846['trim']()||void 0x0;}function _0x5d6260(_0x4f3705){const _0x2d8e31=_0x1e3977;switch(_0x4f3705[_0x2d8e31(0x34b)]){case _0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']:return _0x2d8e31(0x34c);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x443)]:return'chart';case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x409)]:return _0x2d8e31(0x115);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x248)]:return _0x2d8e31(0x29a);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x2da)]:return'video';case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x1a7)]:return _0x2d8e31(0x1c0);case _0x2eccf5[_0x2d8e31(0x43b)]['DRAWING_UNIT']:return _0x2d8e31(0x244);case _0x2eccf5[_0x2d8e31(0x43b)][_0x2d8e31(0x1d8)]:return _0x2d8e31(0x3e6);case _0x2eccf5['DrawingTypeEnum'][_0x2d8e31(0x285)]:return _0x2d8e31(0x170);default:return _0x2d8e31(0x432);}}function _0x245041(_0x1e224a,_0x1966a4,_0x1020ca){const _0x5afdcb=_0x1e3977;var _0x4b2e6d;return((_0x4b2e6d=_0x1e224a[_0x5afdcb(0x454)])==null?void 0x0:_0x4b2e6d['trim']())||(0x0,_0x34fb64[_0x5afdcb(0x199)])(_0x1020ca,_0x5d6260(_0x1e224a))+'\x20'+(_0x1966a4+0x1);}function _0x45565c(){const _0xde20f9=_0x1e3977;var _0x171cb6,_0x50ca38,_0x4278bd,_0x2e5bac;let _0x4d8540=(0x0,_0x4b5551['useDependency'])(_0x2eccf5[_0xde20f9(0x24d)]),_0x3208e6=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x1b2)]),_0x1ea424=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2eccf5[_0xde20f9(0x178)]),_0x397819=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x2a2650['ISheetDrawingService']),_0xc93c0d=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x215a9[_0xde20f9(0x18c)]),_0x39cfbf=(0x0,_0x4b5551[_0xde20f9(0x11c)])(_0x114b3e['IRenderManagerService']),[,_0x365b1f]=(0x0,_0x33f0ff[_0xde20f9(0x377)])(_0x415480=>_0x415480+0x1,0x0),_0x3b4915=_0x1ea424['getCurrentUnitOfType'](_0x2eccf5[_0xde20f9(0x296)]['UNIVER_SHEET']),_0x59e8b8=(_0x171cb6=_0x3b4915==null?void 0x0:_0x3b4915[_0xde20f9(0x322)]())==null?'':_0x171cb6,_0x4c4377=(_0x50ca38=_0x3b4915==null||(_0x4278bd=_0x3b4915[_0xde20f9(0x35c)]())==null?void 0x0:_0x4278bd[_0xde20f9(0x358)]())==null?'':_0x50ca38,_0x5c32ed=(0x0,_0x4b5551[_0xde20f9(0x2af)])(()=>_0xc93c0d[_0xde20f9(0x394)],_0xc93c0d['getFocusDrawings'](),!0x1,[_0xc93c0d]);(0x0,_0x33f0ff['useEffect'])(()=>{const _0x15463d=_0xde20f9;let _0x3f443a=_0x3208e6[_0x15463d(0x17a)](()=>_0x365b1f());return()=>_0x3f443a['dispose']();},[_0x3208e6]);let _0xc7a6c2=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x173)](_0x59e8b8,_0x4c4377):{},_0x1e77a1=_0x59e8b8&&_0x4c4377?_0x397819[_0xde20f9(0x257)](_0x59e8b8,_0x4c4377):[],_0x2c3747=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(0x0,_0x34fb64[_0xde20f9(0x2c5)])(_0x4d8540),[_0x4d8540]),_0x497080=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>{const _0x5c2eba=_0xde20f9;let _0x36df50=_0x1e77a1[_0x5c2eba(0x43f)](_0xbdf73c=>_0xc7a6c2[_0xbdf73c])[_0x5c2eba(0x3c4)](_0x4a88c6=>!!_0x4a88c6)[_0x5c2eba(0x11d)](),_0x3d69e9=_0x36df50['reduce']((_0x3aa7f8,_0x3d8ec6)=>(_0x3aa7f8[(0x0,_0x34fb64[_0x5c2eba(0x1f3)])(_0x3d8ec6[_0x5c2eba(0x34b)])]+=0x1,_0x3aa7f8),{'canvas':0x0,'floating':0x0}),_0x1f8552={'canvas':0x0,'floating':0x0};return _0x36df50[_0x5c2eba(0x43f)]((_0x1f10e1,_0x436827)=>{const _0x3340a1=_0x5c2eba;let _0x2dcc5b=(0x0,_0x34fb64['getObjectListPanelSectionIdForDrawingType'])(_0x1f10e1['drawingType']),_0x49f185=_0x2dcc5b===_0x34fb64[_0x3340a1(0x39b)],_0x1ba1ac=_0x1f8552[_0x2dcc5b]++;return{'id':_0x1f10e1[_0x3340a1(0x22a)],'name':_0x245041(_0x1f10e1,_0x436827,_0x4d8540),'description':_0x1f10e1['description'],'visible':_0x1f10e1[_0x3340a1(0x1f2)]!==!0x0,'selectable':_0x1f10e1[_0x3340a1(0x192)]!==!0x1,'sectionId':_0x2dcc5b,'sectionTitle':_0x49f185?_0x2c3747[_0x3340a1(0x26f)]:_0x2c3747[_0x3340a1(0x136)],'capabilities':_0x49f185?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x49f185&&_0x1ba1ac>0x0,'canMoveBackward':!_0x49f185&&_0x1ba1ac<_0x3d69e9[_0x3340a1(0x33c)]-0x1,'canReorder':!_0x49f185};});},[_0xc7a6c2,_0x1e77a1,_0x2c3747[_0xde20f9(0x136)],_0x2c3747['sectionFloating'],_0x4d8540]),_0x2f3461=(0x0,_0x33f0ff[_0xde20f9(0x2d4)])(()=>(_0x5c32ed==null?[]:_0x5c32ed)[_0xde20f9(0x3c4)](_0x2d817d=>_0x2d817d['unitId']===_0x59e8b8&&_0x2d817d[_0xde20f9(0x204)]===_0x4c4377)[_0xde20f9(0x43f)](_0x369862=>_0x369862[_0xde20f9(0x22a)]),[_0x5c32ed,_0x4c4377,_0x59e8b8]),_0x3a17dc=(_0x2e5bac=_0x2f3461[_0x2f3461[_0xde20f9(0x337)]-0x1])==null?null:_0x2e5bac,_0x8628fc=_0xcbf2ba=>{var _0x2d0183;return(_0x2d0183=_0x397819['getDrawingByParam']({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0xcbf2ba}))==null?null:_0x2d0183;},_0x36bb11=_0x42a18b=>{const _0xbaf2f2=_0xde20f9;!_0x59e8b8||!_0x42a18b[_0xbaf2f2(0x337)]||_0x3208e6[_0xbaf2f2(0x216)](_0x2a2650[_0xbaf2f2(0x3c5)]['id'],{'unitId':_0x59e8b8,'drawings':_0x42a18b});},_0x359762=(_0x33fbf8,_0x4245c3)=>{_0x8628fc(_0x33fbf8)&&_0x36bb11([{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x33fbf8,..._0x4245c3}]);},_0x3b013e=(_0x5472f5,_0x17dfdc)=>{const _0x4c24e3=_0xde20f9;if(!_0x59e8b8||!_0x4c4377)return;let _0x27e9b9=_0x17dfdc?_0x2f3461[_0x4c24e3(0x3c2)](_0x5472f5)?_0x2f3461['filter'](_0x51f807=>_0x51f807!==_0x5472f5):[..._0x2f3461,_0x5472f5]:[_0x5472f5];_0x3208e6[_0x4c24e3(0x1fa)](_0x215a9[_0x4c24e3(0x3b4)]['id'],_0x27e9b9[_0x4c24e3(0x43f)](_0x3eb2de=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x3eb2de})));let _0x2ba1e7=_0x27e9b9[_0x27e9b9[_0x4c24e3(0x337)]-0x1];_0x2ba1e7?(0x0,_0x25b599['activateDrawingObject'])(_0x39cfbf,{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x2ba1e7}):(0x0,_0x25b599[_0x4c24e3(0x3b7)])(_0x39cfbf,_0x59e8b8);},_0x2894e2=(_0x33cb6e,_0x1e3864)=>{const _0x19e818=_0xde20f9;_0x36bb11(_0x33cb6e[_0x19e818(0x43f)](_0x19500d=>_0x8628fc(_0x19500d))[_0x19e818(0x3c4)](_0x40b6b8=>!!_0x40b6b8)['filter'](_0x5abcc8=>_0x5abcc8[_0x19e818(0x1f2)]!==!0x0!==_0x1e3864)[_0x19e818(0x43f)](_0x508cc7=>({'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingId':_0x508cc7['drawingId'],'hidden':!_0x1e3864})));},_0x49b1d8=_0x279c94=>{const _0xf6e29d=_0xde20f9;let _0x2d1538=_0x8628fc(_0x279c94);_0x2d1538&&_0x359762(_0x279c94,{'selectable':_0x2d1538[_0xf6e29d(0x192)]===!0x1&&void 0x0});},_0x541679=(_0x102e06,_0x159aae)=>{const _0x183daa=_0xde20f9;var _0x490660,_0x5ad4bd;let _0x326474=_0x32de57(_0x159aae);((_0x490660=(_0x5ad4bd=_0x8628fc(_0x102e06))==null?void 0x0:_0x5ad4bd[_0x183daa(0x454)])==null?void 0x0:_0x490660)!==_0x326474&&_0x359762(_0x102e06,{'name':_0x326474});},_0x14e4f4=(_0x44b12b,_0x10a2fa)=>{const _0x3ddb11=_0xde20f9;var _0x47fcf1,_0x1952db;let _0x39e949=_0x32de57(_0x10a2fa);((_0x47fcf1=(_0x1952db=_0x8628fc(_0x44b12b))==null?void 0x0:_0x1952db[_0x3ddb11(0x242)])==null?void 0x0:_0x47fcf1)!==_0x39e949&&_0x359762(_0x44b12b,{'description':_0x39e949});},_0x2d1a87=(_0x216f2b,_0x2fdd86)=>{const _0x97295b=_0xde20f9;!_0x59e8b8||!_0x4c4377||_0x3208e6[_0x97295b(0x216)](_0x2a2650[_0x97295b(0x368)]['id'],{'unitId':_0x59e8b8,'subUnitId':_0x4c4377,'drawingIds':[_0x216f2b],'arrangeType':_0x2fdd86});};return!_0x59e8b8||!_0x4c4377?(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0xde20f9(0x25c),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x2c3747['title']}):(0x0,_0x2dcc44[_0xde20f9(0x32e)])(_0x34fb64[_0xde20f9(0x2aa)],{'items':_0x497080,'selectedIds':_0x2f3461,'focusedId':_0x3a17dc,'labels':_0x2c3747,'onSelect':_0x3b013e,'onSetVisible':_0x2894e2,'onCommitName':_0x541679,'onCommitDescription':_0x14e4f4,'onMoveForward':_0x419892=>_0x2d1a87(_0x419892,_0x2eccf5[_0xde20f9(0x2c4)]['forward']),'onMoveBackward':_0x1a3797=>_0x2d1a87(_0x1a3797,_0x2eccf5[_0xde20f9(0x2c4)]['backward']),'onToggleSelectable':_0x49b1d8});}let _0x2950cd=class{constructor(_0x5f04e1){const _0x43dcd6=_0x1e3977;this[_0x43dcd6(0x3ba)]=_0x5f04e1;}[_0x1e3977(0x350)](_0x4017c9,_0x1b007a){const _0x2841bd=_0x1e3977;let _0x459063=this['_renderManagerService'][_0x2841bd(0x2be)](_0x4017c9[_0x2841bd(0x387)]),_0x4a0c99=_0x459063==null?void 0x0:_0x459063[_0x2841bd(0x14a)];if(!_0x4a0c99)return;let _0x34a44f=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x4017c9),_0x421216=_0x4a0c99['getObjectIncludeInGroup'](_0x34a44f);_0x421216==null||_0x421216[_0x2841bd(0x450)](_0x1b007a);}};_0x2950cd=_0xba323d([_0x5a8c13(0x0,_0x114b3e[_0x1e3977(0x42b)])],_0x2950cd);function _0x22e8ac(){const _0x13a17a=_0x1e3977;let _0x1543d2=(0x0,_0x4b5551[_0x13a17a(0x11c)])(_0x215a9[_0x13a17a(0x18c)]),_0x2a8a1f=(0x0,_0x4b5551[_0x13a17a(0x2af)])(()=>_0x1543d2['focus$'],_0x1543d2['getFocusDrawings'](),!0x1,[_0x1543d2]);return _0x2a8a1f[_0x13a17a(0x337)]===0x0?null:(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x13a17a(0x25c),{'children':(0x0,_0x2dcc44[_0x13a17a(0x149)])('div',{'className':_0x13a17a(0x224),'children':[(0x0,_0x2dcc44['jsx'])(_0x34fb64[_0x13a17a(0x1ad)],{'drawings':_0x2a8a1f,'hasCropper':!0x1}),(0x0,_0x2dcc44[_0x13a17a(0x32e)])(_0x101b82[_0x13a17a(0x28c)],{'drawings':_0x2a8a1f})]})});}function _0x1d45ee(_0x1c1493){const _0xccb28e=_0x1e3977;let {unitId:_0x45b560,subUnitId:_0x1bc2aa,shapeId:_0x491624}=_0x1c1493,_0x32f731=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2eccf5[_0xccb28e(0x1b2)]),_0x16e1e8=(0x0,_0x4b5551[_0xccb28e(0x11c)])(_0x2950cd);return(0x0,_0x2dcc44['jsx'])(_0x25b599[_0xccb28e(0x168)],{..._0x1c1493,'positionEditor':(0x0,_0x2dcc44[_0xccb28e(0x32e)])(_0x22e8ac,{}),'onUpdateShapeData':(_0x2eddf8,_0x519e3c)=>{_0x3cdd2e(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x2eddf8,_0x519e3c);},'onUpdateLineShapeData':(_0x5f2c00,_0x12195a)=>{_0x43c867(_0x32f731,_0x45b560,_0x1bc2aa,_0x491624,_0x5f2c00,_0x12195a);},'onUpdateShapeFillImage':_0x26bce4=>{_0x16e1e8['updateShapeFillImage']({'unitId':_0x45b560,'subUnitId':_0x1bc2aa,'drawingId':_0x491624},_0x26bce4);}});}function _0x11b3b1(_0x1b1b3c){const _0x2805c3=_0x1e3977;let _0x5511d9=_0x1b1b3c[_0x2805c3(0x305)]['extraProps'];return _0x5511d9?(0x0,_0x2dcc44[_0x2805c3(0x32e)])(_0x4dcbaf,{..._0x5511d9}):null;}function _0x4dcbaf(_0x240d01){const _0x27019a=_0x1e3977;var _0x409270,_0xdc311d;let _0x21ca2=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x2eccf5[_0x27019a(0x1b2)]),_0x2c3bec=(0x0,_0x4b5551[_0x27019a(0x11c)])(_0x1b87be['SheetsShapeService']),{unitId:_0x4d4597,subUnitId:_0x2e40c7,drawingId:_0x5e3126,drawingType:_0xc8f1b6,shapeType:_0xca6746}=_0x240d01,[_0x4e87e3,_0x1e5c2d]=(0x0,_0x33f0ff[_0x27019a(0x375)])(_0x240d01['shapeData']),_0x413f72=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599['getTextStyle'])(_0x4e87e3),[_0x4e87e3]),_0x4e621c=(0x0,_0x33f0ff[_0x27019a(0x2d4)])(()=>(0x0,_0x25b599[_0x27019a(0x42e)])(_0x4e87e3),[_0x4e87e3]);(0x0,_0x33f0ff[_0x27019a(0x3cc)])(()=>{const _0x2edb8f=_0x27019a;let _0x3d388a=_0x21ca2[_0x2edb8f(0x17a)](_0x2b6ce5=>{const _0x2c7ccc=_0x2edb8f;if(_0x2b6ce5['id']!==_0x1b87be[_0x2c7ccc(0x3da)]['id'])return;let _0x1b1be0=_0x2c3bec['getShapeDataById'](_0x4d4597,_0x2e40c7,_0x5e3126);_0x1b1be0&&_0x1e5c2d(_0x1b1be0);});return()=>_0x3d388a[_0x2edb8f(0x175)]();},[_0x21ca2,_0x5e3126,_0x2c3bec,_0x2e40c7,_0x4d4597]);let _0x24bfc7=_0x5e5a53=>{_0x1e5c2d(_0x3cf710=>({..._0x3cf710,..._0x5e5a53}));},_0x3bfd0f=_0x3e3d27=>{const _0x157c54=_0x27019a;let _0x310e6b=(0x0,_0x25b599[_0x157c54(0x182)])(_0x4e87e3,_0x3e3d27);_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'shapeText':_0x4e87e3[_0x157c54(0x160)]}},_0x310e6b),_0x24bfc7(_0x310e6b);},_0x22c66e=(0x0,_0x25b599[_0x27019a(0x3df)])({'hostType':_0x2eccf5['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'shapeId':_0x5e3126,'shapeData':_0x4e87e3,'onUpdateBinding':_0x28eb60=>{const _0x95a8ec=_0x27019a;let _0xe10f34={'formulaBinding':_0x28eb60};_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,{'oldShapeData':{'formulaBinding':_0x4e87e3[_0x95a8ec(0x331)]}},_0xe10f34),_0x24bfc7(_0xe10f34);}});return(0x0,_0x2dcc44['jsxs'])(_0x2dcc44[_0x27019a(0x1b8)],{'children':[(0x0,_0x2dcc44['jsx'])(_0x25b599['ShapeFloatingToolbar'],{'shapeData':_0x4e87e3,'shapeType':_0xca6746,'textStyle':{'ff':_0x3d21cd[_0x27019a(0x356)]['shapeText'][_0x27019a(0x3d8)],'fs':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x160)][_0x27019a(0x254)],'cl':{'rgb':_0x3d21cd['ShapeDefaultConfig'][_0x27019a(0x160)]['color']},..._0x413f72},'textModel':_0x4e621c?{'ha':(_0x409270=_0x4e621c['ha'])==null?_0x2eccf5['HorizontalAlign']['LEFT']:_0x409270,'va':(_0xdc311d=_0x4e621c['va'])==null?_0x2eccf5['VerticalAlign'][_0x27019a(0x422)]:_0xdc311d}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x172)],'defaultGradientEndColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x349)],'defaultStrokeColor':_0x3d21cd[_0x27019a(0x356)][_0x27019a(0x3ed)],'extensionGroups':_0x22c66e[_0x27019a(0x38c)],'onUpdateShapeData':(_0x360bc9,_0x727d3f)=>{_0x3cdd2e(_0x21ca2,_0x4d4597,_0x2e40c7,_0x5e3126,_0x360bc9,_0x727d3f),_0x727d3f&&_0x24bfc7(_0x727d3f);},'onUpdateText':_0x3bfd0f,'onOpenPanel':()=>{_0x21ca2['executeCommand'](_0x148656['id'],{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126});},'onDelete':()=>{const _0x9fc523=_0x27019a;_0x21ca2[_0x9fc523(0x216)](_0x2a2650[_0x9fc523(0x20d)]['id'],{'unitId':_0x4d4597,'drawings':[{'unitId':_0x4d4597,'subUnitId':_0x2e40c7,'drawingId':_0x5e3126,'drawingType':_0xc8f1b6}]});}}),_0x22c66e['panel']]});}var _0x31cbef=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(..._0x633089){const _0x118621=_0x1e3977;super(..._0x633089),_0x163ed0(this,_0x118621(0x22d),new _0x124e3f['BehaviorSubject'](null)),_0x163ed0(this,'editingParams$',this[_0x118621(0x22d)]['asObservable']()),_0x163ed0(this,_0x118621(0x2d1),new _0x124e3f[(_0x118621(0x253))](!0x1)),_0x163ed0(this,_0x118621(0x1ee),this[_0x118621(0x2d1)][_0x118621(0x287)]());}['dispose'](){const _0x48f6f2=_0x1e3977;this[_0x48f6f2(0x22d)]['next'](null),this['_editingParams$']['complete'](),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x1fe)](!0x1),this[_0x48f6f2(0x2d1)][_0x48f6f2(0x3bc)](),super[_0x48f6f2(0x175)]();}[_0x1e3977(0x12a)](_0xa8e3fe){const _0x12c931=_0x1e3977;this['_editingParams$'][_0x12c931(0x1fe)](_0xa8e3fe),_0xa8e3fe==null&&this[_0x12c931(0x2d1)][_0x12c931(0x1fe)](!0x1);}[_0x1e3977(0x342)](_0x5d10f0){const _0x16408f=_0x1e3977;this[_0x16408f(0x2d1)][_0x16408f(0x1fe)](_0x5d10f0);}[_0x1e3977(0x1b7)](){const _0xfe1622=_0x1e3977;return this[_0xfe1622(0x22d)][_0xfe1622(0x3d9)]();}[_0x1e3977(0x312)](_0x5afe7d){const _0x38d7b2=_0x1e3977;this[_0x38d7b2(0x1b7)]()&&(this['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x46aa16=_0x38d7b2;this[_0x46aa16(0x12a)](null);}));}[_0x1e3977(0x12e)](){const _0x328486=_0x1e3977;this[_0x328486(0x1b7)]()&&this[_0x328486(0x12a)](null);}};let _0x289f1a=(0x0,_0x33f0ff[_0x1e3977(0x30a)])(()=>{const _0x478c19=_0x1e3977;let _0x25a70e=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x31cbef),_0x3228ba=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x1b87be['SheetsShapeService']),_0x562b74=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x215a9[_0x478c19(0x18c)]),_0x23f9fb=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x2eccf5[_0x478c19(0x1b2)]),_0x1b049a=(0x0,_0x4b5551[_0x478c19(0x11c)])(_0x114b3e['IRenderManagerService']);return(0x0,_0x2dcc44[_0x478c19(0x32e)])(_0x25b599[_0x478c19(0x3c1)],{'adapter':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'getShapeModel':(_0x2631fd,_0x1b7243,_0x39d035)=>_0x3228ba[_0x478c19(0x134)](_0x2631fd,_0x1b7243,_0x39d035),'getShapeData':(_0x281d53,_0xf578f6,_0x1c32dc)=>_0x3228ba[_0x478c19(0x3b9)](_0x281d53,_0xf578f6,_0x1c32dc),'getDrawingTransform':(_0x28526e,_0x5c3986,_0x86a3b5)=>{const _0x5bd0a1=_0x478c19;let _0x520c88=_0x562b74[_0x5bd0a1(0x3d4)]({'unitId':_0x28526e,'subUnitId':_0x5c3986,'drawingId':_0x86a3b5});return _0x520c88==null?void 0x0:_0x520c88['transform'];},'updateShapeText':({unitId:_0x3c0e44,subUnitId:_0x4a152c,shapeId:_0x471c56,shapeText:_0x42c5b1,oldShapeText:_0x3ca308})=>{const _0xde68a4=_0x478c19;_0x23f9fb[_0xde68a4(0x216)](_0x5a577b['id'],{'unitId':_0x3c0e44,'subUnitId':_0x4a152c,'shapeId':_0x471c56,'shapeData':{'shapeText':_0x42c5b1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3ca308}}});},'updateHostSize':({unitId:_0x5b948f,subUnitId:_0x2117e2,shapeId:_0x1065fa,width:_0x363472,height:_0x2d8901})=>{const _0x1926fd=_0x478c19;var _0x2340cf,_0x54f2ec,_0x4f261c;let _0x2196ba=_0x562b74['getDrawingByParam']({'unitId':_0x5b948f,'subUnitId':_0x2117e2,'drawingId':_0x1065fa}),_0x2085a4=_0x2196ba==null?void 0x0:_0x2196ba[_0x1926fd(0x31d)];if(!_0x2196ba||!_0x2085a4)return;let _0x3569d4={..._0x2085a4,'width':_0x363472,'height':_0x2d8901},_0x27c7ba=(_0x2340cf=_0x1b049a['getRenderUnitById'](_0x5b948f))==null||(_0x2340cf=_0x2340cf['with'](_0x3c12d8[_0x1926fd(0x1ae)])['getSkeletonParam'](_0x2117e2))==null?void 0x0:_0x2340cf[_0x1926fd(0x23e)],_0x28a7b8=_0x27c7ba?(_0x54f2ec=(0x0,_0x2a2650[_0x1926fd(0x3c9)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x27a)]:_0x54f2ec:_0x2196ba[_0x1926fd(0x27a)],_0x404c8d=_0x27c7ba?(_0x4f261c=(0x0,_0x2a2650[_0x1926fd(0x288)])(_0x3569d4,_0x27c7ba))==null?_0x2196ba[_0x1926fd(0x2fb)]:_0x4f261c:_0x2196ba[_0x1926fd(0x2fb)];_0x23f9fb[_0x1926fd(0x216)](_0x2a2650[_0x1926fd(0x3c5)]['id'],{'unitId':_0x5b948f,'drawings':[{..._0x2196ba,'transform':_0x3569d4,'sheetTransform':_0x28a7b8,'axisAlignSheetTransform':_0x404c8d}]});},'allowHostSizeShrink':({unitId:_0x54713a,subUnitId:_0x587fca,shapeId:_0x7490ed})=>(0x0,_0x25b599[_0x478c19(0x210)])(_0x3228ba['getShapeDataById'](_0x54713a,_0x587fca,_0x7490ed))}),[_0x23f9fb,_0x562b74,_0x1b049a,_0x3228ba]),'editingService':_0x25a70e,'editorUnitId':_0x39b4a9,'positionOptions':(0x0,_0x33f0ff[_0x478c19(0x2d4)])(()=>({'viewportKeys':{'main':_0x114b3e['SHEET_VIEWPORT_KEY']['VIEW_MAIN'],'leftTop':_0x114b3e['SHEET_VIEWPORT_KEY'][_0x478c19(0x3cf)],'top':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x225)],'left':_0x114b3e[_0x478c19(0x308)][_0x478c19(0x301)]},'getSkeleton':(_0x480de6,_0x26f00)=>{const _0x1169bd=_0x478c19;var _0x475b1e,_0x46a2a3;return(_0x475b1e=(_0x46a2a3=_0x480de6[_0x1169bd(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x1169bd(0x417)](_0x26f00[_0x1169bd(0x204)]))==null?void 0x0:_0x46a2a3[_0x1169bd(0x23e)])==null?null:_0x475b1e;}}),[])});}),_0x1ef4c8=class extends _0x2eccf5['Disposable']{constructor(_0xec0a48,_0x143d46){const _0x323b80=_0x1e3977;super(),this[_0x323b80(0x25f)]=_0xec0a48,this[_0x323b80(0x14d)]=_0x143d46,this['_registerIcons'](),this[_0x323b80(0x3a3)]();}[_0x1e3977(0x1e6)](){const _0x473dae=_0x1e3977;this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x1f7))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'ObjectLayersIcon':_0x2f353d})),this[_0x473dae(0x14d)][_0x473dae(0x431)](_0x473dae(0x2f0))||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipHorizontalIcon':_0x194a17})),this[_0x473dae(0x14d)][_0x473dae(0x431)]('FlipVerticalIcon')||this[_0x473dae(0x256)](this[_0x473dae(0x14d)][_0x473dae(0x1e7)]({'FlipVerticalIcon':_0x1e6e5}));}[_0x1e3977(0x3a3)](){const _0x1b228c=_0x1e3977;this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0xb9db8d,_0x1d45ee)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x19a922,_0x45565c)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x1ed21a,_0x46b9a0)),this['disposeWithMe'](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x456ca6,_0x5968f5)),this[_0x1b228c(0x25f)][_0x1b228c(0x32f)](_0x34fb64[_0x1b228c(0x2c3)])||this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x34fb64[_0x1b228c(0x2c3)],_0x49666e)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1f1d2c,_0x11b3b1)),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)]['register'](_0x9609bf,_0x25b599[_0x1b228c(0x1e9)])),this[_0x1b228c(0x256)](this[_0x1b228c(0x25f)][_0x1b228c(0x1e7)](_0x1b228c(0x141),_0x289f1a));}};_0x1ef4c8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551['ComponentManager'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1b6)]))],_0x1ef4c8);let _0x1970f0=class extends _0x2eccf5['Disposable']{constructor(_0x3fa445,_0x4013a3,_0x2b43db,_0x2c0d7a,_0x53bb8){const _0x3c861e=_0x1e3977;super(),this['_context']=_0x3fa445,this['_drawingManagerService']=_0x4013a3,this[_0x3c861e(0x3ba)]=_0x2b43db,this[_0x3c861e(0x18f)]=_0x2c0d7a,this['_imageShapeClipController']=_0x53bb8,_0x163ed0(this,_0x3c861e(0x354),null),_0x163ed0(this,'_unitId',null),_0x163ed0(this,_0x3c861e(0x18a),null),_0x163ed0(this,_0x3c861e(0x440),void 0x0),_0x163ed0(this,'_shapes',[]),_0x163ed0(this,_0x3c861e(0x426),0x0),_0x163ed0(this,_0x3c861e(0x3de),0x0),_0x163ed0(this,_0x3c861e(0x382),0x0),_0x163ed0(this,_0x3c861e(0x2ab),0x0),_0x163ed0(this,_0x3c861e(0x1bd),!0x1),_0x163ed0(this,_0x3c861e(0x420),void 0x0),_0x163ed0(this,_0x3c861e(0x190),void 0x0),_0x163ed0(this,_0x3c861e(0x161),void 0x0),_0x163ed0(this,_0x3c861e(0x153),void 0x0),_0x163ed0(this,_0x3c861e(0x112),!0x1),this[_0x3c861e(0x184)](),this[_0x3c861e(0x13b)]();}[_0x1e3977(0x414)](){this['_clearControls']();}['refreshAdjustControls'](){const _0x15196a=_0x1e3977;this[_0x15196a(0x442)](),this[_0x15196a(0x3e4)](!0x0);}[_0x1e3977(0x3a9)](_0x46b908,_0x28c158,_0x3de600,_0x3eb49d){const _0x5074a9=_0x1e3977;let _0x165224=_0x46b908;if(_0x165224!==_0x3d21cd['ShapeTypeEnum'][_0x5074a9(0x174)]&&_0x46b908!==_0x5074a9(0x2c7))try{let _0x12e4b2=new _0x3d21cd[(_0x5074a9(0x33b))](_0x165224,_0x5074a9(0x30f)+_0x46b908);return _0x3eb49d&&_0x12e4b2[_0x5074a9(0x25a)]({'adjustValues':_0x3eb49d},!0x0),_0x12e4b2['updateContext']({'width':_0x28c158,'height':_0x3de600}),_0x12e4b2;}catch{return;}}[_0x1e3977(0x1a4)](_0x836a82,_0x133dc4,_0x9513c9){const _0x2aec9d=_0x1e3977;let _0x3c31f2={'unitId':_0x836a82,'subUnitId':_0x133dc4,'drawingId':_0x9513c9},_0x221c98=this[_0x2aec9d(0x1a2)][_0x2aec9d(0x3d4)](_0x3c31f2);if(!(!_0x221c98||_0x221c98[_0x2aec9d(0x34b)]!==_0x2eccf5[_0x2aec9d(0x43b)][_0x2aec9d(0x22c)]))return _0x221c98;}[_0x1e3977(0x171)](_0x31ed43,_0x2155a3,_0x34c318){const _0x3357a0=_0x1e3977;let _0x16b673=this['_renderManagerService'][_0x3357a0(0x2be)](_0x31ed43);if(!_0x16b673)return;let {scene:_0x32008c}=_0x16b673,_0x5ca56a=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x31ed43,'subUnitId':_0x2155a3,'drawingId':_0x34c318}),_0x17eea4=_0x32008c[_0x3357a0(0x1a8)](_0x5ca56a);if(_0x17eea4 instanceof _0x114b3e[_0x3357a0(0x3c3)]){let _0x5b8eb2=_0x17eea4[_0x3357a0(0x18e)];if(_0x5b8eb2)return{'prstGeom':_0x5b8eb2,'adjustValues':_0x17eea4[_0x3357a0(0x2ff)]};}}[_0x1e3977(0x3e4)](_0x552f19=!0x1){const _0x5cf6c5=_0x1e3977;if(!this[_0x5cf6c5(0x44e)]||!this[_0x5cf6c5(0x18a)]||!this[_0x5cf6c5(0x354)])return;let _0x474644=this['_renderManagerService'][_0x5cf6c5(0x2be)](this['_unitId']);if(!_0x474644||!_0x474644[_0x5cf6c5(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x5cf6c5(0x26d)]())return;let {scene:_0x50844b}=_0x474644,_0x1bfe4d=this[_0x5cf6c5(0x1a4)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x1bfe4d)return;let {transform:_0x42c56f}=_0x1bfe4d;if(!_0x42c56f)return;let {left:_0x173cff,top:_0x638cb9,width:_0x234acd,height:_0x543965,flipX:_0x64708e,flipY:_0x80a2da,angle:_0x3ced37=0x0}=_0x42c56f;if(_0x173cff===void 0x0||_0x638cb9===void 0x0)return;let _0x405c23=this[_0x5cf6c5(0x171)](this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)],this[_0x5cf6c5(0x354)]);if(!_0x405c23)return;if(_0x552f19){let _0x313c7c=this[_0x5cf6c5(0x3a9)](_0x405c23[_0x5cf6c5(0x18e)],_0x234acd||0x0,_0x543965||0x0,_0x405c23[_0x5cf6c5(0x37d)]);if(!_0x313c7c)return;this[_0x5cf6c5(0x440)]=_0x313c7c[_0x5cf6c5(0x22e)]();}let _0x3f492a=this[_0x5cf6c5(0x440)];if(!(!_0x3f492a||_0x3f492a['length']===0x0))for(let _0x280291=0x0;_0x280291<_0x3f492a[_0x5cf6c5(0x337)];_0x280291++){let _0x4e5758=_0x3f492a[_0x280291],_0x3530c1=_0x4e5758['x'],_0x18c428=_0x4e5758['y'];if(_0x64708e&&(_0x3530c1=(_0x234acd||0x0)-_0x3530c1),_0x80a2da&&(_0x18c428=(_0x543965||0x0)-_0x18c428),_0x3ced37!==0x0){let _0x2cbc6b=(_0x234acd||0x0)/0x2,_0x154c7b=(_0x543965||0x0)/0x2,_0x4f65da=_0x3ced37*Math['PI']/0xb4,_0x343ec1=Math[_0x5cf6c5(0x1fb)](_0x4f65da),_0x3affaf=Math['sin'](_0x4f65da),_0x544aa8=_0x3530c1-_0x2cbc6b,_0x410d08=_0x18c428-_0x154c7b;_0x3530c1=_0x2cbc6b+(_0x544aa8*_0x343ec1-_0x410d08*_0x3affaf),_0x18c428=_0x154c7b+(_0x544aa8*_0x3affaf+_0x410d08*_0x343ec1);}let _0x1dd7b6={'x':_0x3530c1,'y':_0x18c428,'adjName':_0x4e5758[_0x5cf6c5(0x19b)]};this[_0x5cf6c5(0x118)](_0x50844b,_0x1dd7b6,_0x1dd7b6[_0x5cf6c5(0x19b)],_0x173cff,_0x638cb9,this[_0x5cf6c5(0x44e)],this[_0x5cf6c5(0x18a)]);}}['_addControl'](_0x59af6f,_0x5edca9,_0x35ff01,_0xdf88c1,_0x4ba137,_0x135d65,_0x5580ad){const _0x38fec5=_0x1e3977;if(!this[_0x38fec5(0x354)])return;let _0x26387d=_0x38fec5(0x3dc)+this[_0x38fec5(0x354)]+'-'+_0x35ff01,_0x2d89ae=_0x59af6f[_0x38fec5(0x2a4)](_0x26387d);if(_0x2d89ae){_0x2d89ae[_0x38fec5(0x1c7)]({'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]});return;}let _0x1280c4=new _0x372832(_0x26387d,{'left':_0x5edca9['x']+_0xdf88c1-_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)],'top':_0x5edca9['y']+_0x4ba137-_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)],'adjName':_0x35ff01,'shapeId':this[_0x38fec5(0x354)],'unitId':_0x135d65,'subUnitId':_0x5580ad,'width':_0x3d21cd['ShapeDefaultConfig'][_0x38fec5(0x17d)]+0x8,'height':_0x3d21cd[_0x38fec5(0x356)][_0x38fec5(0x17d)]+0x8,'zIndex':_0x114b3e['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x38fec5(0x1aa)][_0x38fec5(0x1b1)](_0x1280c4),this[_0x38fec5(0x3f1)](_0x1280c4,_0x59af6f,_0x35ff01),_0x59af6f['addObject'](_0x1280c4,_0x114b3e[_0x38fec5(0x3e0)]+0x1);}[_0x1e3977(0x442)](){const _0x2e446b=_0x1e3977;this[_0x2e446b(0x1aa)]['length']!==0x0&&(this['_shapes'][_0x2e446b(0x30e)](_0x223121=>_0x223121[_0x2e446b(0x175)]()),this[_0x2e446b(0x1aa)]=[]);}[_0x1e3977(0x1c3)](_0x26342e,_0x1ea9d7){const _0x37dbb1=_0x1e3977;var _0x4d370c;let _0x318a20={'x':0x0,'y':0x0},_0x89e971=this['_renderManagerService'][_0x37dbb1(0x2be)](_0x26342e);if(!_0x89e971||!_0x89e971['with'](_0x3c12d8[_0x37dbb1(0x1ae)])[_0x37dbb1(0x367)](_0x1ea9d7))return _0x318a20;let _0x51bc21=_0x89e971[_0x37dbb1(0x1dc)](_0x3c12d8[_0x37dbb1(0x3ee)]),_0x200589=_0x51bc21==null?void 0x0:_0x51bc21[_0x37dbb1(0x3b2)]();if(!_0x200589)return _0x318a20;let _0x3980de=(_0x4d370c=this[_0x37dbb1(0x18f)][_0x37dbb1(0x2f8)](_0x26342e))==null?void 0x0:_0x4d370c['getSheetBySheetId'](_0x1ea9d7);if(!_0x3980de)return _0x318a20;let _0x214aff=(0x0,_0x3c12d8[_0x37dbb1(0x1ba)])(_0x200589['sheetViewStartRow'],_0x200589['sheetViewStartColumn'],_0x89e971['scene'],_0x3980de);return _0x214aff?{'x':_0x214aff[_0x37dbb1(0x3d1)],'y':_0x214aff[_0x37dbb1(0x446)]}:_0x318a20;}[_0x1e3977(0x427)](_0x12c5dd,_0x27567b){const _0x254048=_0x1e3977;var _0x1b4292,_0x2e94d9;let _0x2485a9=(_0x1b4292=this[_0x254048(0x18f)][_0x254048(0x2f8)](_0x12c5dd))==null?void 0x0:_0x1b4292[_0x254048(0x269)](_0x27567b);return(_0x2e94d9=_0x2485a9==null?void 0x0:_0x2485a9[_0x254048(0x374)]())==null?0x1:_0x2e94d9;}['_attachAdjustEvent'](_0x3cc853,_0x2731cb,_0x1e98fd){const _0x925634=_0x1e3977;this['disposeWithMe']((0x0,_0x2eccf5[_0x925634(0x351)])(_0x3cc853['onPointerDown$'][_0x925634(0x447)]((_0xe77460,_0x2d8c0a)=>{const _0x59e9d5=_0x925634;var _0x377704,_0x2693e1,_0x39095b;let {unitId:_0x2c93a8,subUnitId:_0x228c4f,drawingId:_0x8fa038}=_0x3cc853[_0x59e9d5(0x26e)](),_0x5e4cc9=this[_0x59e9d5(0x1a4)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!(_0x5e4cc9!=null&&_0x5e4cc9[_0x59e9d5(0x31d)]))return;let {left:_0x21c60b,top:_0x2c3998,width:_0x262392,height:_0x1783f1}=_0x5e4cc9[_0x59e9d5(0x31d)];this[_0x59e9d5(0x426)]=_0x21c60b||0x0,this[_0x59e9d5(0x3de)]=_0x2c3998||0x0,this[_0x59e9d5(0x382)]=_0x262392||0x0,this[_0x59e9d5(0x2ab)]=_0x1783f1||0x0;let _0x224a5e=!!((_0x377704=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x377704[_0x59e9d5(0x23d)]),_0x1e35e2=!!((_0x2693e1=_0x5e4cc9[_0x59e9d5(0x31d)])!=null&&_0x2693e1[_0x59e9d5(0x1ac)]),_0x4cd614=((_0x39095b=_0x5e4cc9[_0x59e9d5(0x31d)])==null?void 0x0:_0x39095b[_0x59e9d5(0x1bf)])||0x0,_0x3ae807=this[_0x59e9d5(0x171)](_0x2c93a8,_0x228c4f,_0x8fa038);if(!_0x3ae807)return;let _0x4dab28=this['_getOrCreateShapeModel'](_0x3ae807[_0x59e9d5(0x18e)],this[_0x59e9d5(0x382)],this[_0x59e9d5(0x2ab)],_0x3ae807['adjustValues']);if(!_0x4dab28||(this[_0x59e9d5(0x190)]=_0x4dab28,this[_0x59e9d5(0x420)]=_0x4dab28[_0x59e9d5(0x402)](_0x1e98fd),!this[_0x59e9d5(0x420)]))return;this['_isStartAdjusting']=!0x0,_0x2731cb['disableObjectsEvent']();let _0x434ad4=_0x3ae807[_0x59e9d5(0x18e)];this[_0x59e9d5(0x161)]=_0x2731cb[_0x59e9d5(0x307)][_0x59e9d5(0x447)]((_0x3ea717,_0x24a3e0)=>{const _0x22aa3e=_0x59e9d5;if(!this[_0x22aa3e(0x1bd)])return;let {offsetX:_0x227133,offsetY:_0x4149d6}=_0x3ea717,_0x5e50fc=this[_0x22aa3e(0x420)];if(!this[_0x22aa3e(0x190)]||!_0x5e50fc)return;_0x2731cb[_0x22aa3e(0x415)](),_0x2731cb['setCursor'](_0x114b3e[_0x22aa3e(0x2c2)][_0x22aa3e(0x226)]);let _0x419542={'left':0x0,'top':0x0,'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]},_0x5f3a53=this['_getScrollInfo'](_0x2c93a8,_0x228c4f),_0x53a3c8=this[_0x22aa3e(0x427)](_0x2c93a8,_0x228c4f),_0x522856=_0x227133/_0x53a3c8+_0x5f3a53['x']-this['_baseLeft'],_0x40eee4=_0x4149d6/_0x53a3c8+_0x5f3a53['y']-this[_0x22aa3e(0x3de)];if(_0x4cd614!==0x0){let _0x14cc2b=this['_baseWidth']/0x2,_0x4ede70=this['_baseHeight']/0x2,_0x26c906=_0x4cd614*Math['PI']/0xb4,_0x48a983=Math[_0x22aa3e(0x1fb)](_0x26c906),_0x55dc67=Math[_0x22aa3e(0x1b5)](_0x26c906),_0x137bbf=_0x522856-_0x14cc2b,_0x5523f9=_0x40eee4-_0x4ede70;_0x522856=_0x14cc2b+(_0x137bbf*_0x48a983+_0x5523f9*_0x55dc67),_0x40eee4=_0x4ede70+(-_0x137bbf*_0x55dc67+_0x5523f9*_0x48a983);}_0x224a5e&&(_0x522856=this[_0x22aa3e(0x382)]-_0x522856),_0x1e35e2&&(_0x40eee4=this['_baseHeight']-_0x40eee4);let _0x26d13f=this[_0x22aa3e(0x190)][_0x22aa3e(0x36e)](_0x419542,{'x':_0x522856,'y':_0x40eee4},_0x5e50fc,_0x224a5e,_0x1e35e2);if(Object[_0x22aa3e(0x391)](_0x26d13f)['length']!==0x0){for(let [_0x321c70,_0x192243]of Object['entries'](_0x26d13f))this[_0x22aa3e(0x190)][_0x22aa3e(0x2db)](_0x321c70,_0x192243);this['_activeShapeModel']['updateContext']({'width':this[_0x22aa3e(0x382)],'height':this[_0x22aa3e(0x2ab)]}),this[_0x22aa3e(0x159)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x26d13f),this[_0x22aa3e(0x440)]=this['_activeShapeModel']['getDrawingPoints'](),this[_0x22aa3e(0x3e4)](),_0x24a3e0[_0x22aa3e(0x19d)]();}}),this[_0x59e9d5(0x153)]=_0x2731cb[_0x59e9d5(0x292)]['subscribeEvent']((_0x5be1da,_0x38c21a)=>{const _0x49b6d2=_0x59e9d5;if(this[_0x49b6d2(0x161)][_0x49b6d2(0x369)](),this[_0x49b6d2(0x153)][_0x49b6d2(0x369)](),_0x2731cb[_0x49b6d2(0x128)](),this[_0x49b6d2(0x190)]){let _0x499cfa=this['_activeShapeModel'][_0x49b6d2(0x27f)](),_0x2a351e={};for(let _0x5d756f of _0x499cfa){let _0x5d4ad6=this[_0x49b6d2(0x190)][_0x49b6d2(0x179)](_0x5d756f);_0x5d4ad6!==void 0x0&&(_0x2a351e[_0x5d756f]=_0x5d4ad6);}this[_0x49b6d2(0x2e8)][_0x49b6d2(0x2a0)](_0x2c93a8,_0x228c4f,_0x8fa038,_0x434ad4,_0x2a351e);}this[_0x49b6d2(0x420)]=void 0x0,this[_0x49b6d2(0x190)]=void 0x0,this[_0x49b6d2(0x1bd)]=!0x1,_0x38c21a[_0x49b6d2(0x19d)](),_0x2731cb[_0x49b6d2(0x1ce)]();}),_0x2d8c0a['stopPropagation']();})));}[_0x1e3977(0x159)](_0x5229dc,_0x2cbc37,_0x239cb0,_0x48eaad){const _0x4442a0=_0x1e3977;let _0x144848=this[_0x4442a0(0x3ba)]['getRenderUnitById'](_0x5229dc);if(!_0x144848)return;let {scene:_0x40bbd3}=_0x144848,_0x27d618=(0x0,_0x215a9[_0x4442a0(0x2ee)])({'unitId':_0x5229dc,'subUnitId':_0x2cbc37,'drawingId':_0x239cb0}),_0x3604fb=_0x40bbd3[_0x4442a0(0x1a8)](_0x27d618);if(_0x3604fb instanceof _0x114b3e['Image']){var _0x3c4ff4;let _0x152830=(_0x3c4ff4=_0x3604fb[_0x4442a0(0x2ff)])==null?{}:_0x3c4ff4;_0x3604fb['setPrstGeomAdjValues']({..._0x152830,..._0x48eaad}),_0x3604fb['makeDirty'](!0x0);}}['_registerMoveHandler'](){const _0x44dfda=_0x1e3977;let _0x54d250=this[_0x44dfda(0x18f)][_0x44dfda(0x2b4)](_0x2eccf5[_0x44dfda(0x296)][_0x44dfda(0x293)]);this['disposeWithMe'](_0x54d250['pipe']((0x0,_0x124e3f['switchMap'])(_0x346c5f=>_0x346c5f?_0x346c5f[_0x44dfda(0x445)][_0x44dfda(0x239)]((0x0,_0x124e3f[_0x44dfda(0x37e)])(_0x1f7da1=>{const _0x57cdbb=_0x44dfda;if(!_0x1f7da1)return _0x124e3f[_0x57cdbb(0x341)];let _0x1abce7=_0x346c5f[_0x57cdbb(0x322)](),_0x528082=this[_0x57cdbb(0x3ba)][_0x57cdbb(0x2be)](_0x1abce7),_0x48557d=_0x528082==null?void 0x0:_0x528082[_0x57cdbb(0x14a)];return _0x48557d?(0x0,_0x124e3f['of'])(_0x48557d):_0x124e3f[_0x57cdbb(0x341)];})):_0x124e3f[_0x44dfda(0x341)]))[_0x44dfda(0x17b)](_0x37fe87=>{const _0xfa4761=_0x44dfda;let _0x3b6d07=_0x37fe87['getTransformerByCreate']();this['disposeWithMe'](_0x37fe87[_0xfa4761(0x307)][_0xfa4761(0x447)](()=>{const _0xfde7a8=_0xfa4761;this[_0xfde7a8(0x112)]&&this['_clearControls']();})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x24c)]['subscribe'](_0x314cdf=>{const _0x410e5a=_0xfa4761;let {objects:_0x1b5a62}=_0x314cdf;if(this[_0x410e5a(0x3e4)](),_0x1b5a62!==null&&_0x1b5a62[_0x410e5a(0x419)]===0x1){let _0x274121=_0x1b5a62[_0x410e5a(0x158)]()[_0x410e5a(0x1fe)]()[_0x410e5a(0x123)];_0x274121 instanceof _0x114b3e[_0x410e5a(0x3c3)]&&_0x274121[_0x410e5a(0x18e)]&&(this[_0x410e5a(0x112)]=!0x0);}})),this[_0xfa4761(0x256)](_0x3b6d07[_0xfa4761(0x3be)][_0xfa4761(0x17b)](()=>{const _0x1b3109=_0xfa4761;this[_0x1b3109(0x112)]&&this[_0x1b3109(0x442)]();})),this[_0xfa4761(0x256)](_0x37fe87['onPointerUp$'][_0xfa4761(0x447)](()=>{const _0x2753c0=_0xfa4761;this[_0x2753c0(0x112)]&&(this[_0x2753c0(0x112)]=!0x1,this[_0x2753c0(0x3e4)]());})),this[_0xfa4761(0x256)](_0x3b6d07['changeEnd$'][_0xfa4761(0x17b)](()=>{const _0x2e8c97=_0xfa4761;if(this[_0x2e8c97(0x44e)]&&this['_subUnitId']&&this[_0x2e8c97(0x354)]){let _0x28fe79=this[_0x2e8c97(0x171)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this['_activeImageId']);if(_0x28fe79){var _0x3217de,_0x2b6d30;let _0x38e383=this[_0x2e8c97(0x1a4)](this[_0x2e8c97(0x44e)],this[_0x2e8c97(0x18a)],this[_0x2e8c97(0x354)]),_0x149c5b=(_0x38e383==null||(_0x3217de=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x3217de['width'])||0x0,_0x49f310=(_0x38e383==null||(_0x2b6d30=_0x38e383[_0x2e8c97(0x31d)])==null?void 0x0:_0x2b6d30[_0x2e8c97(0x196)])||0x0,_0xed0dd2=this[_0x2e8c97(0x3a9)](_0x28fe79['prstGeom'],_0x149c5b,_0x49f310,_0x28fe79[_0x2e8c97(0x37d)]);_0xed0dd2&&(this[_0x2e8c97(0x440)]=_0xed0dd2[_0x2e8c97(0x22e)](),this[_0x2e8c97(0x442)](),this[_0x2e8c97(0x3e4)](!0x0));}}}));}));}[_0x1e3977(0x184)](){const _0x1d599f=_0x1e3977;this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)]['focus$']['subscribe'](_0xbbe5a8=>{const _0x424aaf=_0x1d599f;if(_0xbbe5a8['length']===0x1){let _0x3d6e03=_0xbbe5a8[0x0];if(_0x3d6e03['drawingType']===_0x2eccf5['DrawingTypeEnum']['DRAWING_IMAGE']){let {unitId:_0x189343,subUnitId:_0x43d86e,drawingId:_0x415e0c}=_0x3d6e03,_0x400487=this[_0x424aaf(0x171)](_0x189343,_0x43d86e,_0x415e0c);if(_0x400487){var _0x2fc4ba,_0x30c360;this[_0x424aaf(0x354)]=_0x415e0c,this[_0x424aaf(0x44e)]=_0x189343,this['_subUnitId']=_0x43d86e;let _0x8df1c6=this['_getImageDrawingInfo'](_0x189343,_0x43d86e,_0x415e0c),_0x2b3ae3=(_0x8df1c6==null||(_0x2fc4ba=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x2fc4ba[_0x424aaf(0x1f0)])||0x0,_0x31e454=(_0x8df1c6==null||(_0x30c360=_0x8df1c6[_0x424aaf(0x31d)])==null?void 0x0:_0x30c360[_0x424aaf(0x196)])||0x0,_0x457109=this['_getOrCreateShapeModel'](_0x400487[_0x424aaf(0x18e)],_0x2b3ae3,_0x31e454,_0x400487['adjustValues']);_0x457109&&(this['_activeAdjustPointList']=_0x457109[_0x424aaf(0x22e)]()),this['_clearControls'](),this[_0x424aaf(0x3e4)](!0x0);}else this[_0x424aaf(0x1a5)]();}else this['_resetState']();}else this[_0x424aaf(0x1a5)]();})),this[_0x1d599f(0x256)](this[_0x1d599f(0x1a2)][_0x1d599f(0x35f)][_0x1d599f(0x17b)](_0x207dd6=>{const _0x4bc26e=_0x1d599f;if(_0x207dd6[_0x4bc26e(0x337)]===0x1){let _0x582b40=_0x207dd6[0x0],_0x34a918=this[_0x4bc26e(0x1a2)][_0x4bc26e(0x3d4)](_0x582b40);(_0x34a918==null?void 0x0:_0x34a918[_0x4bc26e(0x34b)])===_0x2eccf5[_0x4bc26e(0x43b)]['DRAWING_IMAGE']&&this['_activeImageId']===_0x582b40['drawingId']&&(this[_0x4bc26e(0x442)](),this[_0x4bc26e(0x3e4)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService'][_0x1d599f(0x3fa)][_0x1d599f(0x17b)](_0x21734b=>{const _0x1c3bfe=_0x1d599f;for(let _0x4fc74e of _0x21734b)this['_activeImageId']===_0x4fc74e[_0x1c3bfe(0x22a)]&&this[_0x1c3bfe(0x1a5)]();}));}[_0x1e3977(0x1a5)](){const _0x51cfd9=_0x1e3977;this[_0x51cfd9(0x354)]=null,this[_0x51cfd9(0x44e)]=null,this[_0x51cfd9(0x18a)]=null,this[_0x51cfd9(0x440)]=void 0x0,this[_0x51cfd9(0x442)]();}};_0x1970f0=_0xba323d([_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x432d68))],_0x1970f0);let _0x3f5298=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x5b129f,_0x3ef977,_0x4f56e1,_0x266337){const _0x550ba3=_0x1e3977;super(),this['_univerInstanceService']=_0x5b129f,this['_sheetInterceptorService']=_0x3ef977,this[_0x550ba3(0x262)]=_0x4f56e1,this[_0x550ba3(0x36d)]=_0x266337,this[_0x550ba3(0x411)]();}[_0x1e3977(0x411)](){const _0x4f9bfd=_0x1e3977;this[_0x4f9bfd(0x256)](this[_0x4f9bfd(0x1cc)]['interceptCommand']({'getMutations':_0x469dfa=>{const _0x8f6157=_0x4f9bfd;if(_0x469dfa['id']===_0x2554f2['RemoveSheetCommand']['id']){let _0x3c9e6e=(0x0,_0x2554f2[_0x8f6157(0x355)])(this['_univerInstanceService'],_0x469dfa['params']);if(!_0x3c9e6e)return{'redos':[],'undos':[]};let {unitId:_0x40c8f0,subUnitId:_0x2545b1}=_0x3c9e6e,_0x38e178=this[_0x8f6157(0x262)]['getDrawingData'](_0x40c8f0,_0x2545b1),_0x5b3108=Object[_0x8f6157(0x158)](_0x38e178)[_0x8f6157(0x3c4)](_0x207e74=>_0x207e74[_0x8f6157(0x34b)]===_0x2eccf5['DrawingTypeEnum'][_0x8f6157(0x285)]);if(_0x5b3108[_0x8f6157(0x337)]===0x0)return{'redos':[],'undos':[]};let _0x587bcf=[],_0x97b796=[];for(let _0x500ab8=0x0;_0x500ab8<_0x5b3108[_0x8f6157(0x337)];_0x500ab8++){let _0x36eb60=_0x5b3108[_0x500ab8],_0x1f97f1=this[_0x8f6157(0x36d)]['getShapeModel'](_0x36eb60['unitId'],_0x36eb60[_0x8f6157(0x204)],_0x36eb60[_0x8f6157(0x22a)]);if(!_0x1f97f1)continue;let {redo:_0x434bcb,undo:_0x3c3b7c,objects:_0x4688ae}=this[_0x8f6157(0x262)]['getBatchRemoveOp']([_0x36eb60]);_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x37a)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)]}}),_0x587bcf[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650[_0x8f6157(0x35a)][_0x8f6157(0x2c1)],'op':_0x434bcb,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x3c3b7c,'objects':_0x4688ae}}),_0x97b796[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x40c8f0,'subUnitId':_0x2545b1,'shapeId':_0x36eb60[_0x8f6157(0x22a)],'shapeType':_0x1f97f1[_0x8f6157(0x162)](),'shapeData':JSON[_0x8f6157(0x176)](JSON[_0x8f6157(0x1fd)](_0x1f97f1['getShapeData']()))}});}return{'redos':_0x587bcf,'undos':_0x97b796};}else{if(_0x469dfa['id']===_0x2554f2[_0x8f6157(0x24a)]['id']){let {unitId:_0x385ed0,subUnitId:_0x34456d,targetSubUnitId:_0x136dfb}=_0x469dfa[_0x8f6157(0x2bc)];if(!_0x385ed0||!_0x34456d||!_0x136dfb)return{'redos':[],'undos':[]};let _0xb01b3a=this[_0x8f6157(0x262)]['getDrawingData'](_0x385ed0,_0x34456d),_0xbf6df9=Object['values'](_0xb01b3a)[_0x8f6157(0x3c4)](_0x463896=>_0x463896[_0x8f6157(0x34b)]===_0x2eccf5[_0x8f6157(0x43b)][_0x8f6157(0x285)]);if(_0xbf6df9['length']===0x0)return{'redos':[],'undos':[]};let _0x1ea3bc=[],_0x238f7e=[];for(let _0x402f9c=0x0;_0x402f9c<_0xbf6df9[_0x8f6157(0x337)];_0x402f9c++){let _0x47bf2a=_0xbf6df9[_0x402f9c],_0x3f0d4f=this[_0x8f6157(0x36d)][_0x8f6157(0x134)](_0x47bf2a[_0x8f6157(0x387)],_0x47bf2a[_0x8f6157(0x204)],_0x47bf2a[_0x8f6157(0x22a)]);if(!_0x3f0d4f)continue;let _0x5736c8=(0x0,_0x2eccf5[_0x8f6157(0x2f1)])(),_0x2f9a94={..._0x47bf2a,'unitId':_0x385ed0,'subUnitId':_0x136dfb,'drawingId':_0x5736c8},{redo:_0x419014,undo:_0x3dc5ae,objects:_0x5565d3}=this[_0x8f6157(0x262)]['getBatchAddOp']([_0x2f9a94]);_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x2a2650[_0x8f6157(0x3f0)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x39e)],'op':_0x419014,'objects':_0x5565d3}}),_0x1ea3bc[_0x8f6157(0x1b1)]({'id':_0x1b87be[_0x8f6157(0x148)]['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8,'shapeType':_0x3f0d4f[_0x8f6157(0x162)](),'shapeData':JSON['parse'](JSON[_0x8f6157(0x1fd)](_0x3f0d4f[_0x8f6157(0x1e0)]()))}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'shapeId':_0x5736c8}}),_0x238f7e[_0x8f6157(0x1b1)]({'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x385ed0,'subUnitId':_0x136dfb,'type':_0x2a2650['DrawingApplyType'][_0x8f6157(0x2c1)],'op':_0x3dc5ae,'objects':_0x5565d3}});}return{'redos':_0x1ea3bc,'undos':_0x238f7e};}}return{'redos':[],'undos':[]};}}));}};_0x3f5298=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5['IUniverInstanceService'])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x145)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3f5298);let _0x3ec7c3=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2a47da,_0x568c88,_0x2dd82c,_0x1be518,_0x5deef1){const _0x4d8fe9=_0x1e3977;super(),this['_context']=_0x2a47da,this[_0x4d8fe9(0x2e0)]=_0x568c88,this[_0x4d8fe9(0x1a2)]=_0x2dd82c,this[_0x4d8fe9(0x133)]=_0x1be518,this[_0x4d8fe9(0x36d)]=_0x5deef1,_0x163ed0(this,_0x4d8fe9(0x365),null),this[_0x4d8fe9(0x3f4)](),this['_initSelection'](),this[_0x4d8fe9(0x140)]();}[_0x1e3977(0x3f4)](){const _0x44f537=_0x1e3977;let {scene:_0x575292}=this['_context'];this[_0x44f537(0x256)](_0x575292['onDblclick$'][_0x44f537(0x447)](_0x4048=>{const _0x35a6dd=_0x44f537;let {offsetX:_0xa533fe,offsetY:_0x4a7ec2}=_0x4048,_0x1d66d2=_0x575292['pick'](_0x114b3e[_0x35a6dd(0x2c9)]['FromArray']([_0xa533fe,_0x4a7ec2]));if(_0x1d66d2 instanceof _0x34cbbf){let _0x1ac9fd=this[_0x35a6dd(0x36d)][_0x35a6dd(0x134)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2[_0x35a6dd(0x329)]);if(_0x1ac9fd!=null&&_0x1ac9fd[_0x35a6dd(0x1e0)]()[_0x35a6dd(0x331)]||(0x0,_0x3d21cd['isConnectorShape'])(this[_0x35a6dd(0x36d)][_0x35a6dd(0x162)](_0x1d66d2[_0x35a6dd(0x387)],_0x1d66d2[_0x35a6dd(0x204)],_0x1d66d2['shapeId'])))return;this[_0x35a6dd(0x2e0)]['setEditing']({'visible':!0x0,'unitId':_0x1d66d2[_0x35a6dd(0x387)],'subUnitId':_0x1d66d2[_0x35a6dd(0x204)],'shapeId':_0x1d66d2['shapeId'],'shapeKey':_0x1d66d2['oKey']});}}));}['_initSelection'](){const _0x59ff2a=_0x1e3977;this['disposeWithMe'](this[_0x59ff2a(0x1a2)]['focus$'][_0x59ff2a(0x17b)](_0x4d41a0=>{const _0x3c03f3=_0x59ff2a;if(_0x4d41a0['length']===0x1){let _0x557a46=_0x4d41a0[0x0],_0x1537eb=this['_drawingManagerService'][_0x3c03f3(0x3d4)](_0x557a46);if((_0x1537eb==null?void 0x0:_0x1537eb[_0x3c03f3(0x34b)])===_0x2eccf5[_0x3c03f3(0x43b)]['DRAWING_SHAPE']){var _0x4313a5;let _0x4035af=this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]();if((_0x4035af==null?void 0x0:_0x4035af[_0x3c03f3(0x329)])===_0x557a46[_0x3c03f3(0x22a)]&&_0x4035af[_0x3c03f3(0x339)])return;let _0x11604a=(0x0,_0x3d21cd[_0x3c03f3(0x275)])(this[_0x3c03f3(0x36d)][_0x3c03f3(0x162)](_0x557a46[_0x3c03f3(0x387)],_0x557a46[_0x3c03f3(0x204)],_0x557a46[_0x3c03f3(0x22a)])),_0x4cac84=!!((_0x4313a5=this[_0x3c03f3(0x36d)][_0x3c03f3(0x134)](_0x557a46[_0x3c03f3(0x387)],_0x557a46['subUnitId'],_0x557a46[_0x3c03f3(0x22a)]))!=null&&_0x4313a5[_0x3c03f3(0x1e0)]()[_0x3c03f3(0x331)]);(_0x11604a||_0x4cac84)&&this['_shapeTextEditingService'][_0x3c03f3(0x12a)](null);}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x448a6e=_0x3c03f3;this[_0x448a6e(0x2e0)][_0x448a6e(0x12a)](null);}));}else this[_0x3c03f3(0x2e0)][_0x3c03f3(0x1b7)]()&&(this[_0x3c03f3(0x2e0)]['setOnSavingEditorData'](!0x0),requestAnimationFrame(()=>{const _0x1ab7c5=_0x3c03f3;this['_shapeTextEditingService'][_0x1ab7c5(0x12a)](null);}));})),this['disposeWithMe'](this[_0x59ff2a(0x1a2)][_0x59ff2a(0x3fa)][_0x59ff2a(0x17b)](_0x2d3fd3=>{const _0x331ebe=_0x59ff2a;let _0x5d6f9b=this[_0x331ebe(0x2e0)]['getEditing']();_0x5d6f9b&&_0x2d3fd3[_0x331ebe(0x23c)](_0x1f10ac=>_0x1f10ac[_0x331ebe(0x22a)]===_0x5d6f9b[_0x331ebe(0x329)])&&this[_0x331ebe(0x2e0)][_0x331ebe(0x12a)](null);}));}['_initEditingParams'](){const _0x1f6c7b=_0x1e3977;this[_0x1f6c7b(0x256)](this['_shapeTextEditingService'][_0x1f6c7b(0x274)][_0x1f6c7b(0x17b)](_0x44e4f3=>{const _0x5a7d85=_0x1f6c7b;let {scene:_0x404b27}=this[_0x5a7d85(0x1e3)];if(this[_0x5a7d85(0x365)]){let _0x41e4b6=_0x404b27[_0x5a7d85(0x2a4)](this[_0x5a7d85(0x365)]);_0x41e4b6&&_0x41e4b6[_0x5a7d85(0x12a)](!0x1);}if(_0x44e4f3){let _0x545fce=!!_0x44e4f3['visible'],_0x13e66c=_0x404b27[_0x5a7d85(0x2a4)](_0x44e4f3['shapeKey']);_0x13e66c&&(_0x13e66c[_0x5a7d85(0x12a)](_0x545fce),this['_lastEditingShapeKey']=_0x44e4f3[_0x5a7d85(0x1cb)]),this[_0x5a7d85(0x133)][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],_0x545fce);}else this['_lastEditingShapeKey']=null,this['_contextService'][_0x5a7d85(0x3a0)](_0x2eccf5[_0x5a7d85(0x343)],!0x1);}));}};_0x3ec7c3=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x31cbef)),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5['IContextService']),_0x5a8c13(0x4,(0x0,_0x2eccf5['Inject'])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x3ec7c3);let _0x298514=class extends _0x25b599[_0x1e3977(0x250)]{constructor(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c){super(_0x54ed25,_0xe3da6f,_0x376272,_0xd36b6c,{'componentKey':_0x9609bf,'editorUnitId':_0x39b4a9});}};_0x298514=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4f7558[_0x1e3977(0x1a1)])),_0x5a8c13(0x2,(0x0,_0x2eccf5['Inject'])(_0x2a24ec['DocCanvasPopManagerService'])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a24ec[_0x1e3977(0x2f7)]))],_0x298514);let _0x262dc4=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2fe8cd,_0x565ac4,_0x428a42,_0x1d71ed,_0x3b1f1e,_0x10d110){const _0x4169bb=_0x1e3977;super(),this[_0x4169bb(0x2dc)]=_0x2fe8cd,this[_0x4169bb(0x3ba)]=_0x565ac4,this[_0x4169bb(0x1a2)]=_0x428a42,this['_currentUniverService']=_0x1d71ed,this[_0x4169bb(0x43a)]=_0x3b1f1e,this[_0x4169bb(0x2ce)]=_0x10d110,_0x163ed0(this,_0x4169bb(0x1b3),new Set()),this[_0x4169bb(0x228)]();}[_0x1e3977(0x228)](){const _0xd3b0fe=_0x1e3977;this['_drawingAddListener'](),this[_0xd3b0fe(0x28d)](),this['_shapeUpdateListener']();}[_0x1e3977(0x3e8)](){const _0x53d1e7=_0x1e3977;this[_0x53d1e7(0x256)](this[_0x53d1e7(0x1a2)]['add$'][_0x53d1e7(0x17b)](_0xfe8cf0=>{const _0x406cb8=_0x53d1e7;this[_0x406cb8(0x26b)](_0xfe8cf0);}));}[_0x1e3977(0x28d)](){const _0x45d1c4=_0x1e3977;this['disposeWithMe'](this[_0x45d1c4(0x2dc)][_0x45d1c4(0x17a)](_0x2a94f9=>{const _0x55be22=_0x45d1c4;if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x3da)]['id']){let {unitId:_0x362b96,subUnitId:_0x8ce8de,shapeId:_0x24a18a}=_0x2a94f9[_0x55be22(0x2bc)],_0x568ef1=this['_getSceneAndTransformerByDrawingSearch'](_0x362b96),_0x39aa73=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x362b96,'subUnitId':_0x8ce8de,'drawingId':_0x24a18a}),_0x13d838=_0x568ef1==null?void 0x0:_0x568ef1[_0x55be22(0x14a)][_0x55be22(0x2a4)](_0x39aa73);_0x13d838&&(this[_0x55be22(0x2ce)][_0x55be22(0x1b0)](_0x13d838),this[_0x55be22(0x2ce)][_0x55be22(0x222)](_0x13d838,{'unitId':_0x362b96,'subUnitId':_0x8ce8de,'shapeId':_0x24a18a}),_0x13d838[_0x55be22(0x22f)](!0x0));return;}if(_0x2a94f9['id']===_0x1b87be[_0x55be22(0x148)]['id']){var _0x42eac5;let {unitId:_0x3d8455,subUnitId:_0x34b010,shapeId:_0x4baaf4}=_0x2a94f9[_0x55be22(0x2bc)],_0xe918bb=this[_0x55be22(0x21e)](_0x3d8455);if(_0xe918bb==null)return;let {scene:_0x53929e}=_0xe918bb,_0x2bf094=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}),_0x1a8ddb=_0x53929e[_0x55be22(0x2a4)](_0x2bf094);if(!((_0x42eac5=this['_renderManagerService']['getRenderUnitById'](_0x3d8455))!=null&&_0x42eac5[_0x55be22(0x1dc)](_0x3c12d8[_0x55be22(0x1ae)])[_0x55be22(0x367)](_0x34b010)))return!0x1;if(_0x1a8ddb)return;this[_0x55be22(0x26b)]([{'unitId':_0x3d8455,'subUnitId':_0x34b010,'drawingId':_0x4baaf4}]);}}));}[_0x1e3977(0x35b)](){const _0xb39b20=_0x1e3977;this['disposeWithMe'](this[_0xb39b20(0x1a2)][_0xb39b20(0x35f)][_0xb39b20(0x17b)](_0x29cec0=>{_0x29cec0['forEach'](_0x48b6ad=>{const _0x3db831=_0x93c9;let {unitId:_0x35e56e,subUnitId:_0x5c2850,drawingId:_0x5da25e}=_0x48b6ad,_0xb1e2eb=this[_0x3db831(0x1a2)][_0x3db831(0x3d4)](_0x48b6ad);if(_0xb1e2eb==null)return;let {transform:_0x271018,drawingType:_0x2ab470,srcRect:_0x3c16f1,prstGeom:_0x495792}=_0xb1e2eb;if(_0x2ab470!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let _0x4373bc=this[_0x3db831(0x21e)](_0x35e56e);if(_0x4373bc==null)return;let {scene:_0x32e404,transformer:_0x357ff1}=_0x4373bc;if(_0x271018==null)return!0x0;let _0x7ca34b=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x35e56e,'subUnitId':_0x5c2850,'drawingId':_0x5da25e}),_0x29b851=_0x32e404['getObjectIncludeInGroup'](_0x7ca34b);if(_0x29b851==null)return!0x0;_0x29b851[_0x3db831(0x16b)](_0x3c16f1),_0x29b851[_0x3db831(0x2f2)](_0x495792);});}));}['_insertShapes'](_0x1247e1){const _0x5a1298=_0x1e3977;for(let _0x56f20b of _0x1247e1){var _0x12cad0;let {unitId:_0x5d5eac,subUnitId:_0x54cf09,drawingId:_0x364381}=_0x56f20b,_0x5e15e0=this[_0x5a1298(0x21e)](_0x5d5eac),_0x268693=(_0x12cad0=(0x0,_0x34fb64['getCurrentUnitInfo'])(this[_0x5a1298(0x44b)],_0x5d5eac))==null?void 0x0:_0x12cad0[_0x5a1298(0x204)];if(_0x5e15e0==null||_0x268693!==_0x54cf09)return;let _0x18cd70=(0x0,_0x215a9[_0x5a1298(0x2ee)])({'unitId':_0x5d5eac,'subUnitId':_0x54cf09,'drawingId':_0x364381});if(this[_0x5a1298(0x1b3)][_0x5a1298(0x431)](_0x18cd70)||_0x5e15e0['scene'][_0x5a1298(0x2a4)](_0x18cd70)!=null)return;let _0x546f72=this[_0x5a1298(0x1a2)][_0x5a1298(0x3d4)](_0x56f20b);if(_0x546f72==null||_0x546f72['drawingType']!==_0x2eccf5[_0x5a1298(0x43b)][_0x5a1298(0x285)])return;if((0x0,_0x3d21cd[_0x5a1298(0x275)])((_0x546f72['data']||{})[_0x5a1298(0x436)])){let _0x4c3217=_0x546f72['transform'];_0x4c3217&&(_0x546f72['transform']={..._0x4c3217,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5a1298(0x1b3)][_0x5a1298(0x42c)](_0x18cd70);try{this[_0x5a1298(0x2ce)][_0x5a1298(0x413)](_0x546f72,_0x5e15e0[_0x5a1298(0x14a)]);}finally{this['_insertingShapeKeys'][_0x5a1298(0x2e3)](_0x18cd70);}queueMicrotask(()=>{const _0x394697=_0x5a1298;if(this[_0x394697(0x2fc)])return;let _0x43212d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])(_0x56f20b);if(!_0x5e15e0['scene'][_0x394697(0x2a4)](_0x43212d))return;let _0x36327e=this['_drawingManagerService'][_0x394697(0x3d4)](_0x56f20b);_0x36327e&&this[_0x394697(0x1a2)][_0x394697(0x396)]([_0x36327e]);});}}[_0x1e3977(0x21e)](_0x5e588e){const _0x6651b0=_0x1e3977;if(_0x5e588e==null)return;let _0x4f0589=this['_renderManagerService']['getRenderUnitById'](_0x5e588e),_0x2c8b71=_0x4f0589==null?void 0x0:_0x4f0589[_0x6651b0(0x14a)];return _0x2c8b71==null?null:{'scene':_0x2c8b71,'transformer':_0x2c8b71[_0x6651b0(0x381)]()};}};_0x262dc4=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x1,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x2,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x34fb64['DrawingRenderService'])),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x262dc4);let _0x3ef74e={'normal':{'fill':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x2ec)],'stroke':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x21b)],'strokeWidth':_0x3d21cd[_0x1e3977(0x356)][_0x1e3977(0x283)]},'highlighted':{'fill':_0x1e3977(0x2b0),'stroke':_0x1e3977(0x211),'strokeWidth':0x2}};var _0x1a9cae=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x119669,_0x5a6fc3){const _0x324b06=_0x1e3977;super(_0x119669,_0x5a6fc3),_0x163ed0(this,_0x324b06(0x1c6),''),_0x163ed0(this,_0x324b06(0x1e5),-0x1),_0x163ed0(this,'_unitId',''),_0x163ed0(this,_0x324b06(0x18a),''),_0x163ed0(this,_0x324b06(0x372),!0x1),_0x5a6fc3&&this[_0x324b06(0x186)](_0x5a6fc3);}['getConnectionInfo'](){const _0x43655d=_0x1e3977;return{'unitId':this[_0x43655d(0x44e)],'subUnitId':this[_0x43655d(0x18a)],'shapeId':this[_0x43655d(0x1c6)],'cxnIndex':this[_0x43655d(0x1e5)]};}[_0x1e3977(0x2ad)](_0xcce30e){const _0x578b95=_0x1e3977;this[_0x578b95(0x372)]!==_0xcce30e&&(this['_isHighlighted']=_0xcce30e,this['makeDirty'](!0x0));}[_0x1e3977(0x227)](){const _0x29aaa9=_0x1e3977;return this[_0x29aaa9(0x372)];}[_0x1e3977(0x186)](_0xe21051){const _0x1ac69e=_0x1e3977;var _0xed605f,_0x1d6dcd;_0xe21051['targetShapeId']!==void 0x0&&(this[_0x1ac69e(0x1c6)]=_0xe21051[_0x1ac69e(0x2a2)]),_0xe21051[_0x1ac69e(0x21a)]!==void 0x0&&(this[_0x1ac69e(0x1e5)]=_0xe21051['cxnIndex']),_0xe21051[_0x1ac69e(0x387)]!==void 0x0&&(this['_unitId']=_0xe21051[_0x1ac69e(0x387)]),_0xe21051[_0x1ac69e(0x204)]!==void 0x0&&(this[_0x1ac69e(0x18a)]=_0xe21051[_0x1ac69e(0x204)]),_0xe21051[_0x1ac69e(0x227)]!==void 0x0&&(this[_0x1ac69e(0x372)]=_0xe21051[_0x1ac69e(0x227)]),this['transformByState']({'width':(_0xed605f=_0xe21051[_0x1ac69e(0x1f0)])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0xed605f,'height':(_0x1d6dcd=_0xe21051['height'])==null?_0x3d21cd[_0x1ac69e(0x356)][_0x1ac69e(0x205)]*0x2:_0x1d6dcd});}['_draw'](_0x1e50f4){const _0x2ca607=_0x1e3977;let _0x543de1=this[_0x2ca607(0x372)]?_0x3ef74e['highlighted']:_0x3ef74e[_0x2ca607(0x1a9)];_0x114b3e[_0x2ca607(0x42d)][_0x2ca607(0x314)](_0x1e50f4,{'radius':_0x3d21cd['ShapeDefaultConfig'][_0x2ca607(0x205)],'fill':_0x543de1[_0x2ca607(0x172)],'stroke':_0x543de1[_0x2ca607(0x3ed)],'strokeWidth':_0x543de1[_0x2ca607(0x3e9)],'evented':!0x0});}};let _0x4bf73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x1b2386,_0x34d121,_0x1a2c11,_0x417c1a){const _0x4fe62=_0x1e3977;super(),this[_0x4fe62(0x1e3)]=_0x1b2386,this[_0x4fe62(0x3ba)]=_0x34d121,this['_drawingManagerService']=_0x1a2c11,this[_0x4fe62(0x36d)]=_0x417c1a,_0x163ed0(this,'_connectionSiteObjects',[]),_0x163ed0(this,_0x4fe62(0x3b3),null),_0x163ed0(this,_0x4fe62(0x345),-0x1),_0x163ed0(this,_0x4fe62(0x12d),null),_0x163ed0(this,_0x4fe62(0x44e),''),_0x163ed0(this,_0x4fe62(0x18a),''),_0x163ed0(this,_0x4fe62(0x1ca),null);}[_0x1e3977(0x25b)](_0x32bb67,_0x43467b,_0xf1f540,_0x2a2c31){const _0x58c694=_0x1e3977;this[_0x58c694(0x12d)]=_0x32bb67,this[_0x58c694(0x44e)]=_0x43467b,this[_0x58c694(0x18a)]=_0xf1f540,this[_0x58c694(0x1ca)]=_0x2a2c31;}['updateConnectionDetection'](_0x72f301){const _0x10dced=_0x1e3977;if(!this['_currentScene'])return null;let _0x3987fc=this[_0x10dced(0x234)](_0x72f301);return _0x3987fc?(this[_0x10dced(0x3b3)]!==_0x3987fc['shapeId']&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x2cf)](_0x3987fc[_0x10dced(0x329)],_0x3987fc[_0x10dced(0x425)]),this[_0x10dced(0x3b3)]=_0x3987fc['shapeId']),this[_0x10dced(0x208)](_0x72f301)):(this[_0x10dced(0x3b3)]!==null&&(this[_0x10dced(0x3a8)](),this[_0x10dced(0x3b3)]=null),null);}[_0x1e3977(0x26c)](){const _0x1a244d=_0x1e3977;this[_0x1a244d(0x3a8)](),this[_0x1a244d(0x12d)]=null,this[_0x1a244d(0x3b3)]=null,this[_0x1a244d(0x345)]=-0x1,this[_0x1a244d(0x1ca)]=null;}['getConnectionRelation'](){const _0x51b7ed=_0x1e3977;return this['_activeTargetShapeId']===null||this[_0x51b7ed(0x345)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x51b7ed(0x345)]};}['_findShapeAtPoint'](_0x58074a){const _0x369b5d=_0x1e3977;let _0x5326dd=this[_0x369b5d(0x1a2)][_0x369b5d(0x173)](this[_0x369b5d(0x44e)],this[_0x369b5d(0x18a)]);for(let _0x472813 of Object['keys'](_0x5326dd)){if(_0x472813===this[_0x369b5d(0x1ca)]||_0x5326dd[_0x472813]['drawingType']!==_0x2eccf5['DrawingTypeEnum'][_0x369b5d(0x285)])continue;let _0x2659ee=this[_0x369b5d(0x36d)][_0x369b5d(0x134)](this['_unitId'],this[_0x369b5d(0x18a)],_0x472813);if(!_0x2659ee||(0x0,_0x3d21cd[_0x369b5d(0x275)])(_0x2659ee[_0x369b5d(0x162)]())||_0x2659ee[_0x369b5d(0x32d)]()[_0x369b5d(0x337)]===0x0||!this['_currentScene'])continue;let _0x3af84a=(0x0,_0x215a9[_0x369b5d(0x2ee)])({'unitId':this[_0x369b5d(0x44e)],'subUnitId':this[_0x369b5d(0x18a)],'drawingId':_0x472813}),_0x39b963=this[_0x369b5d(0x12d)][_0x369b5d(0x2a4)](_0x3af84a);if(!_0x39b963)continue;let {left:_0x46a339,top:_0x396227,width:_0x4a41b5,height:_0x5ba09d}=_0x39b963[_0x369b5d(0x214)](),_0x5f47ba=_0x46a339+_0x4a41b5/0x2,_0x34aff8=_0x396227+_0x5ba09d/0x2,_0x592c6d=_0x39b963[_0x369b5d(0x31d)]['getMatrix'](),_0x18f3b9=new _0x114b3e[(_0x369b5d(0x26a))]([_0x592c6d[0x0],_0x592c6d[0x1],_0x592c6d[0x2],_0x592c6d[0x3],_0x5f47ba,_0x34aff8]),_0x4688bc=_0x39b963['getParent'](),_0x909dfe=(_0x39b963[_0x369b5d(0x2b9)]&&(_0x4688bc==null?void 0x0:_0x4688bc[_0x369b5d(0x2a5)])===_0x114b3e[_0x369b5d(0x281)]['GROUP']?_0x4688bc['ancestorTransform'][_0x369b5d(0x286)](_0x18f3b9):_0x18f3b9)[_0x369b5d(0x21c)]()[_0x369b5d(0x3e7)](_0x58074a),_0x38c178=_0x4a41b5/0x2,_0x17669c=_0x5ba09d/0x2;if(_0x909dfe['x']>=-_0x38c178-0x5&&_0x909dfe['x']<=_0x38c178+0x5&&_0x909dfe['y']>=-_0x17669c-0x5&&_0x909dfe['y']<=_0x17669c+0x5)return{'shapeId':_0x472813,'shapeModel':_0x2659ee};}return null;}['_showConnectionSites'](_0x331ffc,_0x27171e){const _0x2b1aff=_0x1e3977;if(!this[_0x2b1aff(0x12d)])return;let _0x384eb4=(0x0,_0x215a9[_0x2b1aff(0x2ee)])({'unitId':this['_unitId'],'subUnitId':this[_0x2b1aff(0x18a)],'drawingId':_0x331ffc}),_0x4aec95=this['_currentScene'][_0x2b1aff(0x2a4)](_0x384eb4);if(!_0x4aec95)return;let {left:_0x1146b3,top:_0x130201,width:_0x440c0c,height:_0x4dc719}=_0x4aec95[_0x2b1aff(0x214)](),_0x19948f=_0x1146b3+_0x440c0c/0x2,_0x429b8e=_0x130201+_0x4dc719/0x2,_0x213da3=_0x4aec95['transform'][_0x2b1aff(0x31f)](),_0x3f1505=new _0x114b3e[(_0x2b1aff(0x26a))]([_0x213da3[0x0],_0x213da3[0x1],_0x213da3[0x2],_0x213da3[0x3],_0x19948f,_0x429b8e]),_0x3335df=_0x4aec95[_0x2b1aff(0x3a2)](),_0x44d4cf=_0x4aec95[_0x2b1aff(0x2b9)]&&(_0x3335df==null?void 0x0:_0x3335df['classType'])===_0x114b3e[_0x2b1aff(0x281)][_0x2b1aff(0x272)]?_0x3335df[_0x2b1aff(0x15d)][_0x2b1aff(0x286)](_0x3f1505):_0x3f1505;_0x27171e[_0x2b1aff(0x1b9)]({'width':_0x440c0c,'height':_0x4dc719});let _0x4b8cf8=_0x27171e['getConnectionSiteList']();for(let _0x55339d of _0x4b8cf8){let _0x1b6939=_0x55339d['x']-_0x440c0c/0x2,_0x2a2337=_0x55339d['y']-_0x4dc719/0x2,_0x46403e=_0x44d4cf[_0x2b1aff(0x3e7)]({'x':_0x1b6939,'y':_0x2a2337}),_0x3032cd=_0x46403e['x'],_0x27cfe2=_0x46403e['y'],_0x3acf7d=new _0x1a9cae(_0x2b1aff(0x201)+_0x331ffc+'-'+_0x55339d[_0x2b1aff(0x3f3)],{'left':_0x3032cd-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius'],'top':_0x27cfe2-_0x3d21cd[_0x2b1aff(0x356)]['cxnPointRadius'],'targetShapeId':_0x331ffc,'cxnIndex':_0x55339d['index'],'unitId':this[_0x2b1aff(0x44e)],'subUnitId':this[_0x2b1aff(0x18a)],'width':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'height':_0x3d21cd['ShapeDefaultConfig'][_0x2b1aff(0x205)]*0x2,'zIndex':_0x114b3e[_0x2b1aff(0x3e0)]+0x2,'evented':!0x1});this[_0x2b1aff(0x11e)]['push'](_0x3acf7d),this[_0x2b1aff(0x12d)][_0x2b1aff(0x333)](_0x3acf7d,_0x114b3e[_0x2b1aff(0x3e0)]+0x2);}}[_0x1e3977(0x208)](_0x2a7f3e){const _0x180b04=_0x1e3977;let _0x59d4cb=null,_0x5a27e5=0x1/0x0,_0x40892a=null;for(let _0x4dfe81 of this[_0x180b04(0x11e)]){let _0x2f4765=_0x4dfe81['left']+_0x3d21cd['ShapeDefaultConfig'][_0x180b04(0x205)],_0x4e6047=_0x4dfe81['top']+_0x3d21cd[_0x180b04(0x356)]['cxnPointRadius'],_0x396779=_0x2a7f3e['x']-_0x2f4765,_0x179313=_0x2a7f3e['y']-_0x4e6047,_0x1033aa=Math['sqrt'](_0x396779*_0x396779+_0x179313*_0x179313);_0x1033aa<_0x5a27e5&&(_0x5a27e5=_0x1033aa,_0x59d4cb=_0x4dfe81,_0x40892a={'x':_0x2f4765,'y':_0x4e6047});}let _0x3848ce=_0x5a27e5<=0xa&&_0x59d4cb?_0x59d4cb[_0x180b04(0x449)]()[_0x180b04(0x21a)]:-0x1;if(_0x3848ce!==this['_highlightedSiteIndex']){for(let _0x306a46 of this[_0x180b04(0x11e)]){let _0x1b2e0c=_0x306a46[_0x180b04(0x449)]();_0x306a46[_0x180b04(0x2ad)](_0x1b2e0c[_0x180b04(0x21a)]===_0x3848ce);}this[_0x180b04(0x345)]=_0x3848ce;}if(_0x5a27e5<=0xa&&_0x59d4cb&&_0x40892a){let _0x54cb27=_0x59d4cb[_0x180b04(0x449)](),_0x228137=this[_0x180b04(0x453)](_0x54cb27[_0x180b04(0x329)],_0x54cb27[_0x180b04(0x21a)]);return{'shapeId':_0x54cb27['shapeId'],'cxnIndex':_0x54cb27['cxnIndex'],'unitId':_0x54cb27[_0x180b04(0x387)],'subUnitId':_0x54cb27[_0x180b04(0x204)],'worldPoint':_0x40892a,'angle':_0x228137};}return null;}['_getConnectionSiteAngle'](_0x237d09,_0x55d3e7){const _0x287405=_0x1e3977;let _0xccaaf5=this[_0x287405(0x36d)][_0x287405(0x134)](this[_0x287405(0x44e)],this[_0x287405(0x18a)],_0x237d09);if(!_0xccaaf5)return 0x0;let _0x126deb=this[_0x287405(0x1a2)][_0x287405(0x3d4)]({'unitId':this[_0x287405(0x44e)],'subUnitId':this[_0x287405(0x18a)],'drawingId':_0x237d09});if(!(_0x126deb!=null&&_0x126deb[_0x287405(0x31d)]))return 0x0;let {width:_0xb269ba=0x0,height:_0x3a7cb4=0x0,flipX:_0x42fc08=!0x1,flipY:_0x560c3a=!0x1}=_0x126deb[_0x287405(0x31d)];_0xccaaf5[_0x287405(0x1b9)]({'width':_0xb269ba,'height':_0x3a7cb4});let _0x533d48=_0xccaaf5[_0x287405(0x32d)]()[_0x287405(0x24b)](_0x47c9ee=>_0x47c9ee['index']===_0x55d3e7);if(!_0x533d48)return 0x0;let _0x13522c=_0x533d48['ang']/0xea60;return _0x42fc08&&(_0x13522c=0xb4-_0x13522c),_0x560c3a&&(_0x13522c=-_0x13522c),_0x13522c=(_0x13522c%0x168+0x168)%0x168,_0x13522c;}[_0x1e3977(0x3a8)](){const _0x41adbc=_0x1e3977;for(let _0x52d15a of this[_0x41adbc(0x11e)])_0x52d15a['dispose']();this['_connectionSiteObjects']=[],this[_0x41adbc(0x345)]=-0x1;}[_0x1e3977(0x175)](){this['_clearConnectionSites'](),super['dispose']();}};_0x4bf73b=_0xba323d([_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x114b3e[_0x1e3977(0x42b)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x215a9[_0x1e3977(0x18c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)]))],_0x4bf73b);let _0x13cfb8=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x10b042,_0x1d8d9e,_0x5929fa,_0x497746,_0x239146){const _0x41086a=_0x1e3977;super(),this[_0x41086a(0x1ab)]=_0x10b042,this[_0x41086a(0x2e6)]=_0x1d8d9e,this[_0x41086a(0x262)]=_0x5929fa,this[_0x41086a(0x2d5)]=_0x497746,this['_groupCopyPasteController']=_0x239146,_0x163ed0(this,_0x41086a(0x212),void 0x0),this['_initCopyPaste'](),this[_0x41086a(0x41f)]();}get[_0x1e3977(0x13a)](){const _0x2aa7bb=_0x1e3977;return this['_sheetDrawingService'][_0x2aa7bb(0x40c)]();}[_0x1e3977(0x41f)](){const _0x294616=_0x1e3977;this['_groupCopyPasteController'][_0x294616(0x33f)](({fromUnitId:_0x1d3e59,fromSubUnitId:_0x5f37c4,toUnitId:_0x3735db,toSubUnitId:_0x4cc226,idMap:_0x3297f7})=>{const _0x2c6d40=_0x294616;let _0x4e988f=[],_0x37767b=[];for(let [_0x32ceed,_0x33bf63]of _0x3297f7['entries']()){let _0x5c9417=this['_shapeService'][_0x2c6d40(0x134)](_0x1d3e59,_0x5f37c4,_0x32ceed);if(!_0x5c9417)continue;let _0x14bf46=_0x5c9417[_0x2c6d40(0x162)](),_0x4cea82=JSON['parse'](JSON[_0x2c6d40(0x1fd)](_0x5c9417[_0x2c6d40(0x1e0)]()));if(_0x4cea82[_0x2c6d40(0x247)]){var _0x22584f,_0x413aeb;let _0x35a7d0=(_0x22584f=_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)])==null?void 0x0:_0x22584f[_0x2c6d40(0x329)],_0x2e8ea=(_0x413aeb=_0x4cea82[_0x2c6d40(0x247)]['to'])==null?void 0x0:_0x413aeb[_0x2c6d40(0x329)],_0x5f43aa=!_0x35a7d0||_0x3297f7[_0x2c6d40(0x431)](_0x35a7d0),_0x381981=!_0x2e8ea||_0x3297f7[_0x2c6d40(0x431)](_0x2e8ea);_0x5f43aa&&_0x35a7d0&&_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]?_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]={..._0x4cea82['relation'][_0x2c6d40(0x110)],'shapeId':_0x3297f7[_0x2c6d40(0x32f)](_0x35a7d0)}:_0x4cea82[_0x2c6d40(0x247)][_0x2c6d40(0x110)]=void 0x0,_0x381981&&_0x2e8ea&&_0x4cea82[_0x2c6d40(0x247)]['to']?_0x4cea82['relation']['to']={..._0x4cea82['relation']['to'],'shapeId':_0x3297f7['get'](_0x2e8ea)}:_0x4cea82[_0x2c6d40(0x247)]['to']=void 0x0;}_0x4e988f[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x148)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63,'shapeType':_0x14bf46,'shapeData':_0x4cea82}}),_0x37767b[_0x2c6d40(0x1b1)]({'id':_0x1b87be[_0x2c6d40(0x37a)]['id'],'params':{'unitId':_0x3735db,'subUnitId':_0x4cc226,'shapeId':_0x33bf63}});}return{'redos':_0x4e988f,'undos':_0x37767b};});}[_0x1e3977(0x36f)](){const _0x28b23d=_0x1e3977;this['disposeWithMe'](this[_0x28b23d(0x2e6)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopy':(_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447)=>{const _0x397452=_0x28b23d;this[_0x397452(0x212)]=null;let _0x5ec5a4=this[_0x397452(0x13a)];if(_0x5ec5a4['length']){let _0x36ad3e=_0x5ec5a4[_0x397452(0x3c4)](_0x55564f=>_0x55564f['drawingType']===_0x2eccf5[_0x397452(0x43b)][_0x397452(0x285)]);if(_0x36ad3e[_0x397452(0x337)]===0x0)return;this['_copyInfo']={'unitId':_0x5c7db4,'subUnitId':_0x24ab24,'copyType':_0x391447,'drawings':_0x36ad3e};}else this['_createCopyInfoByRange'](_0x5c7db4,_0x24ab24,_0x4ab1d7,_0x391447);},'onPasteCells':(_0x150428,_0x1b2f0e,_0x168dfb,_0x299bd0)=>{const _0x3595e4=_0x28b23d;if(!this[_0x3595e4(0x212)])return{'redos':[],'undos':[]};let {pasteType:_0x2826e6}=_0x299bd0;return _0x2826e6===_0x3c12d8[_0x3595e4(0x444)][_0x3595e4(0x11a)]?this[_0x3595e4(0x2de)](_0x1b2f0e,this[_0x3595e4(0x212)][_0x3595e4(0x3a7)]===_0x3c12d8[_0x3595e4(0x167)][_0x3595e4(0x12f)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x7d50a5=>this[_0x28b23d(0x212)]?this[_0x28b23d(0x2de)](_0x7d50a5,this[_0x28b23d(0x212)][_0x28b23d(0x3a7)]===_0x3c12d8[_0x28b23d(0x167)][_0x28b23d(0x12f)]):{'redos':[],'undos':[]}}));}[_0x1e3977(0x2e5)](_0x3553b3,_0x239325,_0x1e1b7a,_0x1ed5fe){const _0x5ead1b=_0x1e3977;let _0x2b0d89=this[_0x5ead1b(0x1ab)][_0x5ead1b(0x367)](_0x3553b3,_0x239325);if(!_0x2b0d89)return;let _0x5cb659=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x2b0d89,_0x1e1b7a);if(!_0x5cb659)return;let {startX:_0x54e5dc,endX:_0x8e7ab6,startY:_0x4d5fef,endY:_0x501450}=_0x5cb659,_0x244d01=this['_sheetDrawingService'][_0x5ead1b(0x173)](_0x3553b3,_0x239325),_0x201a95=this[_0x5ead1b(0x13a)][_0x5ead1b(0x451)]();for(let [_0x45fe85,_0x5da171]of Object[_0x5ead1b(0x3d5)](_0x244d01)){if(_0x5da171[_0x5ead1b(0x34b)]!==_0x2eccf5[_0x5ead1b(0x43b)][_0x5ead1b(0x285)])continue;let {transform:_0x7592c7}=_0x5da171;if(!_0x7592c7)continue;let {left:_0x40c60e=0x0,top:_0x1bf872=0x0,width:_0x4f80de=0x0,height:_0xe16e46=0x0}=_0x7592c7;_0x54e5dc<=_0x40c60e&&_0x8e7ab6>=_0x40c60e+_0x4f80de&&_0x4d5fef<=_0x1bf872&&_0x501450>=_0x1bf872+_0xe16e46&&_0x201a95[_0x5ead1b(0x1b1)](_0x5da171);}_0x201a95[_0x5ead1b(0x337)]>0x0&&(this[_0x5ead1b(0x212)]={'unitId':_0x3553b3,'subUnitId':_0x239325,'copyType':_0x1ed5fe,'copyRange':_0x1e1b7a,'drawings':_0x201a95});}[_0x1e3977(0x2de)](_0x1c1f8c,_0xee6fe){const _0x1cd5a8=_0x1e3977;let {unitId:_0x180e47,subUnitId:_0x3ffdbd,range:_0x216ab2}=_0x1c1f8c,_0x168805=this[_0x1cd5a8(0x1ab)][_0x1cd5a8(0x367)](_0x180e47,_0x3ffdbd);if(!_0x168805)return{'redos':[],'undos':[]};let _0x16a710=(0x0,_0x2554f2[_0x1cd5a8(0x202)])(_0x216ab2),{unitId:_0x285b03,subUnitId:_0x388514,copyRange:_0x26f384,drawings:_0xc5b0fa}=this[_0x1cd5a8(0x212)],_0x1625ee=this[_0x1cd5a8(0x1ab)]['getSkeleton'](_0x285b03,_0x388514);if(!_0x1625ee)return{'redos':[],'undos':[]};let _0x53181e;if(!_0x26f384){let _0x50b433=0x1/0x0,_0x17b0ea=0x1/0x0;for(let _0x572e8e of _0xc5b0fa){var _0x3956f9;let {left:_0x492bd5=0x0,top:_0x595cdb=0x0}=(_0x3956f9=_0x572e8e[_0x1cd5a8(0x31d)])==null?{}:_0x3956f9;_0x492bd5<_0x50b433&&(_0x50b433=_0x492bd5),_0x595cdb<_0x17b0ea&&(_0x17b0ea=_0x595cdb);}_0x50b433!==0x1/0x0&&_0x17b0ea!==0x1/0x0&&(_0x53181e={'left':_0x50b433,'top':_0x17b0ea});}let _0x4ea646=new Map();if(!_0xee6fe){for(let _0x4c0b95 of _0xc5b0fa)_0x4ea646['set'](_0x4c0b95['drawingId'],(0x0,_0x2eccf5[_0x1cd5a8(0x2f1)])());}let _0x242a2b=[],_0x34780e=[];for(let _0x30cdbc of _0xc5b0fa){let {drawingId:_0x1868c8,transform:_0x5c189d,sheetTransform:_0xe5b00e}=_0x30cdbc;if(!_0x5c189d||!_0xe5b00e)continue;let _0x157761=this[_0x1cd5a8(0x243)]({'transform':_0x5c189d,'sheetTransform':_0xe5b00e},{'skeleton':_0x1625ee,'range':_0x26f384},{'skeleton':_0x168805,'range':_0x16a710},_0x53181e);if(_0xee6fe){let {redos:_0x389dfb,undos:_0x7d6cfd}=this['_generateCutPasteMutations']({'fromUnitId':_0x285b03,'fromSubUnitId':_0x388514,'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x389dfb),_0x34780e['push'](..._0x7d6cfd);continue;}let {redos:_0x5ab811,undos:_0x2e98f6}=this['_generateCopyPasteMutations']({'toUnitId':_0x180e47,'toSubUnitId':_0x3ffdbd,'drawing':_0x30cdbc,'newTransforms':_0x157761,'newDrawingId':_0x4ea646[_0x1cd5a8(0x32f)](_0x1868c8),'idMap':_0x4ea646});_0x242a2b[_0x1cd5a8(0x1b1)](..._0x5ab811),_0x34780e[_0x1cd5a8(0x1b1)](..._0x2e98f6);}return{'redos':_0x242a2b,'undos':_0x34780e};}[_0x1e3977(0x116)](_0xf0719b){const _0x44d169=_0x1e3977;let {fromUnitId:_0x1522a6,fromSubUnitId:_0x325b5,toUnitId:_0x5e64ab,toSubUnitId:_0x1163bb,drawing:_0x1bf8b3,newTransforms:_0x5cc48e}=_0xf0719b,_0x2c794c={..._0x1bf8b3,'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'transform':_0x5cc48e[_0x44d169(0x31d)],'sheetTransform':_0x5cc48e['sheetTransform']};if(_0x5e64ab===_0x1522a6&&_0x1163bb===_0x325b5){let {redo:_0x429cee,undo:_0x22e6b1,objects:_0x47434d}=this[_0x44d169(0x262)][_0x44d169(0x27b)]([_0x2c794c]);return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x429cee,'objects':_0x47434d}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x18d)],'op':_0x22e6b1,'objects':_0x47434d}}]};}else{let _0x25a6b9=this['_sheetDrawingService'][_0x44d169(0x194)]([_0x1bf8b3]),_0x3c7ea8=this[_0x44d169(0x262)][_0x44d169(0x1a0)]([_0x2c794c]),_0x4f1750=this['_shapeService'][_0x44d169(0x134)](_0x1bf8b3[_0x44d169(0x387)],_0x1bf8b3[_0x44d169(0x204)],_0x1bf8b3[_0x44d169(0x22a)]);if(!_0x4f1750)return{'redos':[],'undos':[]};let _0x5c6608=_0x4f1750[_0x44d169(0x162)](),_0x1c3c41=JSON[_0x44d169(0x176)](JSON[_0x44d169(0x1fd)](_0x4f1750['getShapeData']()));return{'redos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x25a6b9[_0x44d169(0x12b)],'objects':_0x25a6b9[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}},{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650['DrawingApplyType'][_0x44d169(0x39e)],'op':_0x3c7ea8['redo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}}],'undos':[{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x39e)],'op':_0x25a6b9[_0x44d169(0x393)],'objects':_0x25a6b9['objects']}},{'id':_0x1b87be[_0x44d169(0x148)]['id'],'params':{'unitId':_0x1522a6,'subUnitId':_0x325b5,'shapeId':_0x1bf8b3[_0x44d169(0x22a)],'shapeType':_0x5c6608,'shapeData':_0x1c3c41}},{'id':_0x2a2650[_0x44d169(0x3f0)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'type':_0x2a2650[_0x44d169(0x35a)][_0x44d169(0x2c1)],'op':_0x3c7ea8['undo'],'objects':_0x3c7ea8[_0x44d169(0x3ab)]}},{'id':_0x1b87be[_0x44d169(0x37a)]['id'],'params':{'unitId':_0x5e64ab,'subUnitId':_0x1163bb,'shapeId':_0x1bf8b3[_0x44d169(0x22a)]}}]};}}[_0x1e3977(0x3c6)](_0x3468ce){const _0x3ad00a=_0x1e3977;let {toUnitId:_0x281b2d,toSubUnitId:_0x128c3f,drawing:_0x2f7464,newTransforms:_0x1c7b30,newDrawingId:_0x103ec3,idMap:_0x138b91}=_0x3468ce,_0x498a08={..._0x2f7464,'unitId':_0x281b2d,'subUnitId':_0x128c3f,'drawingId':_0x103ec3,'transform':_0x1c7b30[_0x3ad00a(0x31d)],'sheetTransform':_0x1c7b30[_0x3ad00a(0x27a)]},{redo:_0x42d960,undo:_0x52afd4,objects:_0x405a4f}=this[_0x3ad00a(0x262)][_0x3ad00a(0x1a0)]([_0x498a08]),_0x18fdd4=this[_0x3ad00a(0x2d5)][_0x3ad00a(0x134)](_0x2f7464[_0x3ad00a(0x387)],_0x2f7464[_0x3ad00a(0x204)],_0x2f7464['drawingId']);if(!_0x18fdd4)return{'redos':[],'undos':[]};let _0xde84c3=_0x18fdd4[_0x3ad00a(0x162)](),_0x54db3f=JSON[_0x3ad00a(0x176)](JSON[_0x3ad00a(0x1fd)](_0x18fdd4[_0x3ad00a(0x1e0)]()));if(_0x54db3f[_0x3ad00a(0x247)]){var _0x550788,_0x89fadd;let _0x40cb12=(_0x550788=_0x54db3f[_0x3ad00a(0x247)]['from'])==null?void 0x0:_0x550788[_0x3ad00a(0x329)],_0x4afa96=(_0x89fadd=_0x54db3f[_0x3ad00a(0x247)]['to'])==null?void 0x0:_0x89fadd['shapeId'],_0x25a7fe=!_0x40cb12||_0x138b91[_0x3ad00a(0x431)](_0x40cb12),_0x5ec238=!_0x4afa96||_0x138b91[_0x3ad00a(0x431)](_0x4afa96);_0x25a7fe&&_0x40cb12&&_0x54db3f[_0x3ad00a(0x247)]['from']?_0x54db3f[_0x3ad00a(0x247)][_0x3ad00a(0x110)]={..._0x54db3f['relation'][_0x3ad00a(0x110)],'shapeId':_0x138b91[_0x3ad00a(0x32f)](_0x40cb12)}:_0x54db3f['relation']['from']=void 0x0,_0x5ec238&&_0x4afa96&&_0x54db3f['relation']['to']?_0x54db3f['relation']['to']={..._0x54db3f['relation']['to'],'shapeId':_0x138b91['get'](_0x4afa96)}:_0x54db3f[_0x3ad00a(0x247)]['to']=void 0x0;}return{'redos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650['DrawingApplyType'][_0x3ad00a(0x39e)],'op':_0x42d960,'objects':_0x405a4f}},{'id':_0x1b87be['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3,'shapeType':_0xde84c3,'shapeData':_0x54db3f}}],'undos':[{'id':_0x2a2650['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'type':_0x2a2650[_0x3ad00a(0x35a)][_0x3ad00a(0x2c1)],'op':_0x52afd4,'objects':_0x405a4f}},{'id':_0x1b87be['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x281b2d,'subUnitId':_0x128c3f,'shapeId':_0x103ec3}}]};}[_0x1e3977(0x243)](_0x4b83cc,_0x5babbb,_0x58675d,_0x2e6456){const _0x1efc6b=_0x1e3977;var _0xf4143d;let {range:_0x3a65c6,skeleton:_0x54786f}=_0x5babbb,{range:_0x5ec6ca,skeleton:_0x14e270}=_0x58675d,{transform:_0x1507f9,sheetTransform:_0x17a565}=_0x4b83cc,_0x3cfe61={..._0x1507f9};if(_0x3a65c6){let _0x30c3ac=(0x0,_0x2554f2['attachRangeWithCoord'])(_0x54786f,_0x3a65c6),_0x1214c5=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x30c3ac&&_0x1214c5){var _0x26589e,_0x415e6c;let _0x47726d=_0x1214c5['startX']-_0x30c3ac['startX'],_0x24addf=_0x1214c5[_0x1efc6b(0x263)]-_0x30c3ac[_0x1efc6b(0x263)];_0x3cfe61[_0x1efc6b(0x44f)]=((_0x26589e=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x26589e)+_0x47726d,_0x3cfe61[_0x1efc6b(0x278)]=((_0x415e6c=_0x3cfe61[_0x1efc6b(0x278)])==null?0x0:_0x415e6c)+_0x24addf;}}else{let _0x5e7272=(0x0,_0x2554f2[_0x1efc6b(0x3bd)])(_0x14e270,_0x5ec6ca);if(_0x2e6456&&_0x5e7272){var _0x262c51,_0x43cb0f;let _0x2b90e1=((_0x262c51=_0x3cfe61[_0x1efc6b(0x44f)])==null?0x0:_0x262c51)-_0x2e6456['left'],_0x403550=((_0x43cb0f=_0x3cfe61['top'])==null?0x0:_0x43cb0f)-_0x2e6456[_0x1efc6b(0x278)];_0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272[_0x1efc6b(0x2f4)]+_0x2b90e1,_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272[_0x1efc6b(0x263)]+_0x403550;}else _0x3cfe61[_0x1efc6b(0x44f)]=_0x5e7272==null?void 0x0:_0x5e7272['startX'],_0x3cfe61[_0x1efc6b(0x278)]=_0x5e7272==null?void 0x0:_0x5e7272[_0x1efc6b(0x263)];}return{'transform':_0x3cfe61,'sheetTransform':(_0xf4143d=(0x0,_0x2a2650[_0x1efc6b(0x3c9)])(_0x3cfe61,_0x14e270))==null?_0x17a565:_0xf4143d};}};_0x13cfb8=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2554f2[_0x1e3977(0x154)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x35d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2a2650[_0x1e3977(0x12c)])),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x101b82['SheetsDrawingGroupCopyPasteController']))],_0x13cfb8);var _0x1bacbd=class extends _0x114b3e[_0x1e3977(0x399)]{constructor(_0x4ed6d9,_0x21c575){const _0x16c815=_0x1e3977;super(_0x4ed6d9,_0x21c575),_0x163ed0(this,_0x16c815(0x237),null),_0x163ed0(this,'_index',null),_0x163ed0(this,_0x16c815(0x44e),null),_0x163ed0(this,'_subUnitId',null),_0x163ed0(this,_0x16c815(0x251),!0x1),_0x21c575&&this[_0x16c815(0x186)](_0x21c575);}[_0x1e3977(0x26e)](){const _0x39ab12=_0x1e3977;return{'unitId':this[_0x39ab12(0x44e)],'subUnitId':this[_0x39ab12(0x18a)],'drawingId':this[_0x39ab12(0x237)]};}[_0x1e3977(0x186)](_0x1d152b){const _0x1437c9=_0x1e3977;_0x1d152b[_0x1437c9(0x329)]!==void 0x0&&(this[_0x1437c9(0x237)]=_0x1d152b[_0x1437c9(0x329)]),_0x1d152b['unitId']!==void 0x0&&(this['_unitId']=_0x1d152b[_0x1437c9(0x387)]),_0x1d152b[_0x1437c9(0x204)]!==void 0x0&&(this[_0x1437c9(0x18a)]=_0x1d152b[_0x1437c9(0x204)]),_0x1d152b[_0x1437c9(0x41a)]!==void 0x0&&(this[_0x1437c9(0x251)]=_0x1d152b['isStartConnectorPoint']),this[_0x1437c9(0x1c7)]({'width':_0x1d152b[_0x1437c9(0x1f0)],'height':_0x1d152b[_0x1437c9(0x196)]});}[_0x1e3977(0x2c0)](_0x293d7e){const _0x2c63d8=_0x1e3977;_0x114b3e[_0x2c63d8(0x42d)][_0x2c63d8(0x314)](_0x293d7e,{'radius':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x205)],'fill':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x2ec)],'stroke':_0x3d21cd[_0x2c63d8(0x356)]['cxnPointStroke'],'strokeWidth':_0x3d21cd[_0x2c63d8(0x356)][_0x2c63d8(0x283)],'evented':!0x0});}};let _0x511a6f=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7996,_0x2156a9,_0x1c205d,_0x3f1fc5,_0x3ef33f,_0xafb160,_0xe18e6,_0x5197a4){const _0x1efbc1=_0x1e3977;super(),this[_0x1efbc1(0x1e3)]=_0x2c7996,this[_0x1efbc1(0x2dc)]=_0x2156a9,this[_0x1efbc1(0x3ba)]=_0x1c205d,this[_0x1efbc1(0x1a2)]=_0x3f1fc5,this[_0x1efbc1(0x18f)]=_0x3ef33f,this[_0x1efbc1(0x36d)]=_0xafb160,this[_0x1efbc1(0x264)]=_0xe18e6,this[_0x1efbc1(0x252)]=_0x5197a4,_0x163ed0(this,_0x1efbc1(0x166),void 0x0),_0x163ed0(this,_0x1efbc1(0x44e),void 0x0),_0x163ed0(this,'_subUnitId',void 0x0),_0x163ed0(this,_0x1efbc1(0x441),[]),_0x163ed0(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),_0x163ed0(this,_0x1efbc1(0x190),void 0x0),_0x163ed0(this,'_isConnecting',!0x1),_0x163ed0(this,_0x1efbc1(0x43c),!0x1),_0x163ed0(this,_0x1efbc1(0x16e),!0x1),_0x163ed0(this,_0x1efbc1(0x1ec),void 0x0),_0x163ed0(this,_0x1efbc1(0x410),void 0x0),_0x163ed0(this,'_currentConnectionTarget',null),this['_initialize']();}['_initialize'](){const _0x345b62=_0x1e3977;this[_0x345b62(0x2f6)](),this[_0x345b62(0x1c4)]();}[_0x1e3977(0x1ef)](){const _0x23beaa=_0x1e3977;if(!this['_unitId']||!this['_subUnitId']||!this[_0x23beaa(0x166)])return;let _0x5affad={'unitId':this[_0x23beaa(0x44e)],'subUnitId':this[_0x23beaa(0x18a)],'drawingId':this[_0x23beaa(0x166)]},{transform:_0x9d67cd}=this[_0x23beaa(0x1a2)][_0x23beaa(0x3d4)](_0x5affad);if(_0x9d67cd)return{'left':_0x9d67cd[_0x23beaa(0x44f)]||0x0,'top':_0x9d67cd[_0x23beaa(0x278)]||0x0,'width':_0x9d67cd[_0x23beaa(0x1f0)]||0x0,'height':_0x9d67cd['height']||0x0,'flipX':_0x9d67cd['flipX']||!0x1,'flipY':_0x9d67cd[_0x23beaa(0x1ac)]||!0x1,'angle':_0x9d67cd[_0x23beaa(0x1bf)]};}['_addShapeConnectorHandlerObjects'](){const _0x17fc2a=_0x1e3977;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this['_activeShapeId']===void 0x0)return;let _0x109052=this[_0x17fc2a(0x3ba)][_0x17fc2a(0x2be)](this['_unitId']);if(!_0x109052||!_0x109052[_0x17fc2a(0x1dc)](_0x3c12d8['SheetSkeletonManagerService'])[_0x17fc2a(0x26d)]())return;let {scene:_0x39f945}=_0x109052,_0xd392bf=this['_getDrawingRect']();if(!_0xd392bf)return;let _0x5693c0=this[_0x17fc2a(0x36d)][_0x17fc2a(0x134)](this[_0x17fc2a(0x44e)],this[_0x17fc2a(0x18a)],this[_0x17fc2a(0x166)]);if(!_0x5693c0||!(0x0,_0x3d21cd[_0x17fc2a(0x275)])(_0x5693c0[_0x17fc2a(0x162)]()))return;let _0x28f454=_0x5693c0[_0x17fc2a(0x2ef)]();if(_0x28f454[_0x17fc2a(0x337)]<0x2)return;let _0x3f3e34=new _0x3d21cd[(_0x17fc2a(0x437))](_0xd392bf),_0x1030df=_0x28f454[0x0],_0x411c22=_0x28f454[_0x28f454[_0x17fc2a(0x337)]-0x1],_0x17f6a2=_0x3f3e34[_0x17fc2a(0x34f)](_0x1030df),_0x38604e=_0x3f3e34[_0x17fc2a(0x34f)](_0x411c22);this[_0x17fc2a(0x20b)](_0x39f945,{..._0x17f6a2},!0x0),this[_0x17fc2a(0x20b)](_0x39f945,{..._0x38604e},!0x1);}[_0x1e3977(0x20b)](_0x16c70f,_0x279b68,_0x5a02bd){const _0x25a541=_0x1e3977;if(this[_0x25a541(0x166)]===void 0x0||this[_0x25a541(0x44e)]===void 0x0||this[_0x25a541(0x18a)]===void 0x0)return;let _0x186156=_0x25a541(0x246)+this[_0x25a541(0x44e)]+'-'+this[_0x25a541(0x18a)]+'-'+this[_0x25a541(0x166)]+'-'+(_0x5a02bd?_0x25a541(0x177):'end'),_0x2c1250=_0x16c70f[_0x25a541(0x2a4)](_0x186156);if(_0x2c1250){_0x2c1250[_0x25a541(0x1c7)]({'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)]});return;}let _0x239666=new _0x1bacbd(_0x186156,{'left':_0x279b68['x']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'top':_0x279b68['y']-_0x3d21cd[_0x25a541(0x356)][_0x25a541(0x205)],'shapeId':this[_0x25a541(0x166)],'unitId':this['_unitId'],'subUnitId':this[_0x25a541(0x18a)],'isStartConnectorPoint':_0x5a02bd,'width':_0x3d21cd[_0x25a541(0x356)]['cxnPointRadius']*0x2,'height':_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']*0x2,'zIndex':_0x114b3e[_0x25a541(0x3e0)]+0x1,'evented':!0x0});this['_connectorObjects']['push'](_0x239666),this[_0x25a541(0x452)](_0x239666,_0x16c70f,_0x5a02bd),_0x16c70f['addObject'](_0x239666,_0x114b3e[_0x25a541(0x3e0)]+0x1);}[_0x1e3977(0x1c3)](_0x3713a0,_0x51279e){const _0x13f5fb=_0x1e3977;var _0xa3c60;let _0x552d21={'x':0x0,'y':0x0};if(!_0x3713a0||!_0x51279e)return _0x552d21;let _0x54c546=this['_renderManagerService'][_0x13f5fb(0x2be)](_0x3713a0);if(!_0x54c546||!_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x1ae)])[_0x13f5fb(0x367)](_0x51279e))return _0x552d21;let _0xd4032=_0x54c546[_0x13f5fb(0x1dc)](_0x3c12d8[_0x13f5fb(0x3ee)]),_0x416c80=_0xd4032==null?void 0x0:_0xd4032[_0x13f5fb(0x3b2)]();if(!_0x416c80)return _0x552d21;let _0xea94c1=(_0xa3c60=this[_0x13f5fb(0x18f)][_0x13f5fb(0x2f8)](_0x3713a0))==null?void 0x0:_0xa3c60['getSheetBySheetId'](_0x51279e);if(!_0xea94c1)return _0x552d21;let _0x16f6f7=(0x0,_0x3c12d8[_0x13f5fb(0x1ba)])(_0x416c80['sheetViewStartRow'],_0x416c80[_0x13f5fb(0x380)],_0x54c546[_0x13f5fb(0x14a)],_0xea94c1);return _0x16f6f7?{'x':_0x16f6f7[_0x13f5fb(0x3d1)],'y':_0x16f6f7['viewportScrollY']}:_0x552d21;}[_0x1e3977(0x427)](_0x158d1e,_0x30ca89){const _0x4e4921=_0x1e3977;var _0x117d5c,_0x424590;let _0x35250e=(_0x117d5c=this[_0x4e4921(0x18f)][_0x4e4921(0x2f8)](_0x158d1e))==null?void 0x0:_0x117d5c[_0x4e4921(0x269)](_0x30ca89);return(_0x424590=_0x35250e==null?void 0x0:_0x35250e[_0x4e4921(0x374)]())==null?0x1:_0x424590;}[_0x1e3977(0x19a)](_0x4a07ab,_0x46d342,_0x484901,_0x449d03,_0xe7760b){const _0x582b07=_0x1e3977;this[_0x582b07(0x1ec)][_0x582b07(0x369)](),this[_0x582b07(0x410)][_0x582b07(0x369)](),this[_0x582b07(0x264)][_0x582b07(0x434)]();let _0x2f0804=this[_0x582b07(0x19e)];this['_sheetBasicShapeConnectionPointController'][_0x582b07(0x26c)]();let _0x5f5662=this[_0x582b07(0x1c3)](this[_0x582b07(0x44e)],this['_subUnitId']),_0x424e0c=this['_getZoomRatio'](this[_0x582b07(0x44e)],this['_subUnitId']),_0x229731={'x':_0x484901[_0x582b07(0x3a5)]/_0x424e0c+_0x5f5662['x'],'y':_0x484901['offsetY']/_0x424e0c+_0x5f5662['y']},_0x7304b5=_0x2f0804?_0x2f0804[_0x582b07(0x3b1)]:_0x229731,_0x1ec210=_0x449d03?this[_0x582b07(0x190)]['getEndConnectInfo']():this[_0x582b07(0x190)][_0x582b07(0x200)](),_0x49cfd7=this[_0x582b07(0x190)][_0x582b07(0x162)]();_0x1ec210?this['_handleConnectedEndpointPointerUp'](_0x1ec210,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b):this['_handleFreeEndpointPointerUp'](_0x46d342,_0x7304b5,_0x449d03,_0x2f0804,_0xe7760b,_0x49cfd7),this[_0x582b07(0x360)]=!0x1,this['_hasReset']=!0x1,this[_0x582b07(0x19e)]=null,_0x4a07ab['enableObjectsEvent']();}[_0x1e3977(0x1e2)](_0x5caaac,_0x38e0e4,_0x4e8888,_0x16e790,_0x3edf88,_0x4dd7f7){const _0x2662f8=_0x1e3977;let _0x1df11f=_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)][_0x2662f8(0x125)]||_0x4dd7f7===_0x3d21cd[_0x2662f8(0x2bf)]['StraightConnector1'],_0x5a6379=_0x4e8888?_0x38e0e4:_0x5caaac,_0x1fd48d=_0x4e8888?_0x5caaac:_0x38e0e4,_0x5a3011=this[_0x2662f8(0x190)][_0x2662f8(0x2ef)](),_0x25a18c=(0x0,_0x3d21cd['isCurvedConnectorShape'])(this[_0x2662f8(0x190)]['getShapeType']()),_0x5a3c75=_0x3d21cd['ConnectorCoordinateTransform'][_0x2662f8(0x398)](_0x5a3011,_0x25a18c),_0x3b76bb=_0x1df11f?_0x3d21cd[_0x2662f8(0x437)][_0x2662f8(0x34a)](_0x5a6379,_0x1fd48d):_0x3d21cd[_0x2662f8(0x437)]['computeConnectorResizeLayout'](_0x5caaac,_0x38e0e4,_0x4e8888,_0x5a3c75);_0x16e790?this[_0x2662f8(0x2d2)](_0x3b76bb,_0x16e790,_0x4e8888,_0x3edf88):this[_0x2662f8(0x2b2)](_0x3b76bb,_0x3edf88);}[_0x1e3977(0x2d9)](_0x1b4351,_0x2af3b2,_0x309316,_0x34c49d,_0x50348d){const _0x414a8a=_0x1e3977;let _0x3c2971=this[_0x414a8a(0x150)](_0x1b4351);if(!_0x3c2971)return;let _0x533164=_0x34c49d?_0x34c49d[_0x414a8a(0x1bf)]:this[_0x414a8a(0x330)](_0x3c2971[_0x414a8a(0x362)],_0x2af3b2),_0x247a00;if(_0x34c49d){let _0x49f1e8=this['_drawingManagerService'][_0x414a8a(0x3d4)]({'unitId':_0x34c49d[_0x414a8a(0x387)],'subUnitId':_0x34c49d['subUnitId'],'drawingId':_0x34c49d[_0x414a8a(0x329)]});if(_0x49f1e8!=null&&_0x49f1e8['transform']){let {left:_0x55257e=0x0,top:_0xe570ff=0x0,width:_0x35611c=0x0,height:_0x2f384b=0x0,angle:_0x264fb7}=_0x49f1e8[_0x414a8a(0x31d)];_0x247a00=(0x0,_0x3d21cd[_0x414a8a(0x306)])({'left':_0x55257e,'top':_0xe570ff,'width':_0x35611c,'height':_0x2f384b},_0x264fb7||0x0);}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};}else _0x247a00={'left':_0x2af3b2['x'],'top':_0x2af3b2['y'],'width':0x0,'height':0x0};let _0x1451fd={'point':_0x2af3b2,'angle':_0x533164,'bounds':_0x247a00},_0x4a557f=_0x309316?_0x1451fd:_0x3c2971,_0x3126f=_0x309316?_0x3c2971:_0x1451fd,_0x4ef7c0=this[_0x414a8a(0x190)][_0x414a8a(0x162)](),_0x4c4774=(0x0,_0x3d21cd[_0x414a8a(0x3e5)])(_0x4a557f,_0x3126f,_0x4ef7c0);this[_0x414a8a(0x190)]['removeLinePoints']();let _0x49b8a9=(0x0,_0x3d21cd[_0x414a8a(0x2ae)])(_0x4c4774,_0x4ef7c0);_0x34c49d?this['_executeConnectedRouteConnectionCommand'](_0x49b8a9,_0x34c49d,_0x1b4351,_0x309316,_0x50348d):this[_0x414a8a(0x114)](_0x49b8a9,_0x1b4351,_0x309316,_0x50348d);}[_0x1e3977(0x2d2)](_0x180341,_0x44acb0,_0x1bdd21,_0x4dd3d6){const _0x3334c5=_0x1e3977;let _0x1e0df0=this[_0x3334c5(0x190)][_0x3334c5(0x1e0)]()[_0x3334c5(0x247)],_0xd175d4={..._0x1e0df0},_0x3a8177={'shapeId':_0x44acb0['shapeId'],'cxnIndex':_0x44acb0['cxnIndex']};_0x1bdd21?_0xd175d4['from']=_0x3a8177:_0xd175d4['to']=_0x3a8177;let _0x136898=this[_0x3334c5(0x190)]['getShapeType'](),_0x477adc=(0x0,_0x3d21cd[_0x3334c5(0x2ae)])(_0x180341[_0x3334c5(0x324)],_0x136898),_0x34140d={'unitId':this['_unitId'],'subUnitId':this[_0x3334c5(0x18a)],'connectorShapeId':this[_0x3334c5(0x166)],'width':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x1f0)],'height':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x196)],'left':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x44f)],'top':_0x180341[_0x3334c5(0x147)][_0x3334c5(0x278)],'flipX':_0x180341['worldRect']['flipX']||!0x1,'flipY':_0x180341['worldRect'][_0x3334c5(0x1ac)]||!0x1,'newAdjustValues':_0x477adc['adjustValues'],'oldAdjustValues':_0x4dd3d6,'oldRelation':_0x1e0df0,'newRelation':_0xd175d4,'newLineType':_0x477adc[_0x3334c5(0x181)],'oldLineType':_0x136898};this[_0x3334c5(0x2dc)][_0x3334c5(0x216)](_0x1b87be[_0x3334c5(0x164)]['id'],_0x34140d);}[_0x1e3977(0x2b2)](_0x2b99af,_0x13a04d){const _0x35921a=_0x1e3977;let _0x95af50=this[_0x35921a(0x190)][_0x35921a(0x162)](),_0x1f9923=(0x0,_0x3d21cd[_0x35921a(0x2ae)])(_0x2b99af[_0x35921a(0x324)],_0x95af50),_0x1d44e1={'unitId':this[_0x35921a(0x44e)],'subUnitId':this[_0x35921a(0x18a)],'shapeId':this[_0x35921a(0x166)],'width':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1f0)],'height':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x196)],'left':_0x2b99af[_0x35921a(0x147)]['left'],'top':_0x2b99af[_0x35921a(0x147)]['top'],'flipX':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x23d)]||!0x1,'flipY':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1ac)]||!0x1,'angle':_0x2b99af[_0x35921a(0x147)][_0x35921a(0x1bf)]||0x0,'newAdjustValues':_0x1f9923[_0x35921a(0x37d)],'oldAdjustValues':_0x13a04d,'newLineType':_0x1f9923[_0x35921a(0x181)],'oldLineType':_0x95af50};this[_0x35921a(0x2dc)]['executeCommand'](_0x1b87be[_0x35921a(0x20e)]['id'],_0x1d44e1);}['_executeConnectedRouteConnectionCommand'](_0x5dfcfc,_0x10c228,_0x15c99c,_0x4df22a,_0x4e965f){const _0xa853ce=_0x1e3977;let _0x5edd99=this[_0xa853ce(0x190)][_0xa853ce(0x1e0)]()[_0xa853ce(0x247)],_0x4760f9={..._0x5edd99},_0x2dd541={'shapeId':_0x10c228[_0xa853ce(0x329)],'cxnIndex':_0x10c228['cxnIndex']};_0x4df22a?(_0x4760f9[_0xa853ce(0x110)]=_0x2dd541,_0x4760f9['to']=_0x15c99c):(_0x4760f9['from']=_0x15c99c,_0x4760f9['to']=_0x2dd541);let _0x28c113={'unitId':this[_0xa853ce(0x44e)],'subUnitId':this[_0xa853ce(0x18a)],'connectorShapeId':this[_0xa853ce(0x166)],'width':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1f0)],'height':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x196)],'left':_0x5dfcfc[_0xa853ce(0x147)]['left'],'top':_0x5dfcfc['worldRect'][_0xa853ce(0x278)],'flipX':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x23d)]||!0x1,'flipY':_0x5dfcfc[_0xa853ce(0x147)][_0xa853ce(0x1ac)]||!0x1,'oldAdjustValues':_0x4e965f,'newAdjustValues':_0x5dfcfc[_0xa853ce(0x37d)],'newLineType':_0x5dfcfc[_0xa853ce(0x181)],'rotation':_0x5dfcfc[_0xa853ce(0x14f)],'oldRelation':_0x5edd99,'newRelation':_0x4760f9};this[_0xa853ce(0x2dc)]['executeCommand'](_0x1b87be[_0xa853ce(0x164)]['id'],_0x28c113);}[_0x1e3977(0x114)](_0x36b4f5,_0x2d8090,_0x56e3ab,_0x3f064d){const _0x4dd0ab=_0x1e3977;let _0x35d205=this['_activeShapeModel'][_0x4dd0ab(0x1e0)]()[_0x4dd0ab(0x247)],_0xd06732={};_0x56e3ab?(_0xd06732['to']=_0x2d8090,_0xd06732[_0x4dd0ab(0x110)]=void 0x0):(_0xd06732['from']=_0x2d8090,_0xd06732['to']=void 0x0);let _0x445c08={'unitId':this[_0x4dd0ab(0x44e)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x4dd0ab(0x166)],'width':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1f0)],'height':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x196)],'left':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x44f)],'top':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x278)],'flipX':_0x36b4f5[_0x4dd0ab(0x147)]['flipX']||!0x1,'flipY':_0x36b4f5[_0x4dd0ab(0x147)][_0x4dd0ab(0x1ac)]||!0x1,'oldAdjustValues':_0x3f064d,'newAdjustValues':_0x36b4f5[_0x4dd0ab(0x37d)],'newLineType':_0x36b4f5[_0x4dd0ab(0x181)],'rotation':_0x36b4f5['rotation'],'oldRelation':_0x35d205,'newRelation':_0xd06732};this[_0x4dd0ab(0x2dc)][_0x4dd0ab(0x216)](_0x1b87be[_0x4dd0ab(0x164)]['id'],_0x445c08);}['_attachConnectorObjectEvent'](_0x2eaef3,_0x242b50,_0x55c71a){const _0x289e94=_0x1e3977;this[_0x289e94(0x256)]((0x0,_0x2eccf5[_0x289e94(0x351)])(_0x2eaef3[_0x289e94(0x19c)][_0x289e94(0x447)]((_0x54d3a8,_0x54c420)=>{const _0x391ee0=_0x289e94;let _0x182a2d=_0x2eaef3[_0x391ee0(0x26e)]();if(this[_0x391ee0(0x190)]=this[_0x391ee0(0x36d)][_0x391ee0(0x134)](_0x182a2d[_0x391ee0(0x387)],_0x182a2d[_0x391ee0(0x204)],_0x182a2d[_0x391ee0(0x22a)]),!this[_0x391ee0(0x190)])return;let _0x32eaaa={};this[_0x391ee0(0x190)][_0x391ee0(0x27f)]()[_0x391ee0(0x30e)](_0x289c2d=>{const _0x5360a4=_0x391ee0;let _0x261e92=this[_0x5360a4(0x190)]['getAdjustValueByName'](_0x289c2d);_0x261e92!==void 0x0&&(_0x32eaaa[_0x289c2d]=_0x261e92);});let _0x3f25e4=this[_0x391ee0(0x1ef)]();if(!_0x3f25e4)return;this['_baseDrawingRect']={..._0x3f25e4};let _0x12e147=new _0x3d21cd[(_0x391ee0(0x437))](this[_0x391ee0(0x44d)]),_0x22bf9d=(0x0,_0x215a9['getDrawingShapeKeyByDrawingSearch'])({'unitId':this[_0x391ee0(0x44e)],'subUnitId':this[_0x391ee0(0x18a)],'drawingId':this[_0x391ee0(0x166)]}),_0x3be8b3=_0x242b50[_0x391ee0(0x2a4)](_0x22bf9d);this[_0x391ee0(0x360)]=!0x0,_0x242b50[_0x391ee0(0x415)](),this[_0x391ee0(0x252)][_0x391ee0(0x25b)](_0x242b50,this[_0x391ee0(0x44e)],this[_0x391ee0(0x18a)],this[_0x391ee0(0x166)]),this[_0x391ee0(0x19e)]=null;let _0x2997ab=this[_0x391ee0(0x190)]['getConnectorLinePoints'](),_0x4273b7=_0x2997ab[0x0],_0x38390c=_0x2997ab[_0x2997ab[_0x391ee0(0x337)]-0x1],_0x48c36c=_0x55c71a?_0x12e147['localToWorld'](_0x38390c):_0x12e147[_0x391ee0(0x34f)](_0x4273b7);this[_0x391ee0(0x1ec)]=_0x242b50[_0x391ee0(0x307)][_0x391ee0(0x447)]((_0x422003,_0xa711f7)=>{const _0x334797=_0x391ee0;if(!this[_0x334797(0x360)]||!this[_0x334797(0x190)])return;this[_0x334797(0x16e)]||(this[_0x334797(0x264)][_0x334797(0x414)](),this[_0x334797(0x190)][_0x334797(0x3bb)](),this[_0x334797(0x16e)]=!0x0);let _0x1c4390=this[_0x334797(0x1c3)](this[_0x334797(0x44e)],this[_0x334797(0x18a)]),_0x41cbdc=this[_0x334797(0x427)](this['_unitId'],this[_0x334797(0x18a)]),_0x40b910={'x':_0x422003[_0x334797(0x3a5)]/_0x41cbdc+_0x1c4390['x'],'y':_0x422003[_0x334797(0x2e9)]/_0x41cbdc+_0x1c4390['y']},_0x48a420=this[_0x334797(0x252)][_0x334797(0x111)](_0x40b910);if(_0x48a420){let {shapeId:_0x4bbe40,unitId:_0x3682e9,subUnitId:_0x18a03a}=_0x48a420;if(_0x4bbe40&&_0x3682e9&&_0x18a03a){let _0x4680de=(0x0,_0x215a9[_0x334797(0x2ee)])({'unitId':_0x3682e9,'subUnitId':_0x18a03a,'drawingId':_0x4bbe40});_0x48a420[_0x334797(0x1bf)]=(_0x242b50[_0x334797(0x2a4)](_0x4680de)['angle']||0x0)+_0x48a420['angle'];}}this['_currentConnectionTarget']=_0x48a420;let _0x3de31c=_0x55c71a?this[_0x334797(0x190)][_0x334797(0x392)]():this[_0x334797(0x190)][_0x334797(0x200)]();if(_0x3de31c){this[_0x334797(0x206)](_0x3de31c,_0x40b910,_0x55c71a,_0x3be8b3,_0x2eaef3);return;}this[_0x334797(0x334)](_0x40b910,_0x48c36c,_0x55c71a,_0x3be8b3,_0x2eaef3);}),this[_0x391ee0(0x410)]=_0x242b50[_0x391ee0(0x292)][_0x391ee0(0x447)]((_0x4fa3be,_0xad0d99)=>{this['_handleConnectorPointerUp'](_0x242b50,_0x48c36c,_0x4fa3be,_0x55c71a,_0x32eaaa);}),_0x54c420['stopPropagation']();})));}[_0x1e3977(0x3ca)](_0x32e32b,_0x2401f5,_0x267528){const _0x565b1a=_0x1e3977;let _0x441146=this['_sheetsShapeService'][_0x565b1a(0x10f)](_0x32e32b,_0x2401f5,_0x267528);if(!_0x441146||_0x441146[_0x565b1a(0x337)]===0x0)return;let _0x1cea82=this[_0x565b1a(0x3ba)][_0x565b1a(0x2be)](_0x32e32b);if(!_0x1cea82)return;let {scene:_0x3e373f}=_0x1cea82;for(let _0x4bc905 of _0x441146){let _0x297db4=_0x4bc905[_0x565b1a(0x122)],_0x100730=this[_0x565b1a(0x36d)][_0x565b1a(0x134)](_0x32e32b,_0x2401f5,_0x297db4);if(!_0x100730)continue;let _0x37fc4b=_0x100730[_0x565b1a(0x200)](),_0x325887=_0x100730[_0x565b1a(0x392)](),_0x11174b=(_0x37fc4b==null?void 0x0:_0x37fc4b[_0x565b1a(0x329)])===_0x267528,_0x342698=(0x0,_0x215a9[_0x565b1a(0x2ee)])({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4}),_0x527f1b=_0x3e373f[_0x565b1a(0x2a4)](_0x342698);if(!_0x527f1b)continue;let _0x35c18d=this[_0x565b1a(0x1a2)][_0x565b1a(0x3d4)]({'unitId':_0x32e32b,'subUnitId':_0x2401f5,'drawingId':_0x297db4});_0x35c18d!=null&&_0x35c18d[_0x565b1a(0x31d)]&&(_0x37fc4b&&_0x325887?this[_0x565b1a(0x2ed)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x37fc4b,_0x325887,_0x527f1b):this[_0x565b1a(0x23b)](_0x32e32b,_0x2401f5,_0x297db4,_0x100730,_0x11174b?_0x37fc4b:_0x325887,_0x11174b,_0x35c18d,_0x527f1b));}}[_0x1e3977(0x2ed)](_0x12e0e0,_0x58cf63,_0xfd81af,_0x3aa4d9,_0x365e62,_0x5a847e,_0x2fccef){const _0x765f64=_0x1e3977;let _0x7ccb=this[_0x765f64(0x44e)],_0x1935b6=this[_0x765f64(0x18a)];this['_unitId']=_0x12e0e0,this['_subUnitId']=_0x58cf63;let _0x7ffa76=this[_0x765f64(0x150)](_0x365e62),_0x22f679=this[_0x765f64(0x150)](_0x5a847e);if(this[_0x765f64(0x44e)]=_0x7ccb,this[_0x765f64(0x18a)]=_0x1935b6,!_0x7ffa76||!_0x22f679)return;let _0x9b928e=_0x3aa4d9[_0x765f64(0x162)](),_0x4f75d1=(0x0,_0x3d21cd[_0x765f64(0x3e5)])(_0x7ffa76,_0x22f679,_0x9b928e);_0x4f75d1&&_0x3aa4d9[_0x765f64(0x2eb)](_0x4f75d1);let _0x3b9a2a=(0x0,_0x3d21cd[_0x765f64(0x2ae)])(_0x4f75d1,_0x9b928e);_0x3b9a2a[_0x765f64(0x181)]!==_0x9b928e&&_0x3aa4d9[_0x765f64(0x259)](_0x3b9a2a[_0x765f64(0x181)]),_0x3aa4d9[_0x765f64(0x3bb)]();for(let [_0x383d17,_0x2397bf]of Object['entries'](_0x3b9a2a['adjustValues']))_0x3aa4d9[_0x765f64(0x2db)](_0x383d17,_0x2397bf);_0x3aa4d9['updateContext']({'width':_0x3b9a2a['worldRect'][_0x765f64(0x1f0)],'height':_0x3b9a2a['worldRect'][_0x765f64(0x196)]}),_0x2fccef[_0x765f64(0x1c7)]({'flipX':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x23d)],'flipY':_0x3b9a2a['worldRect'][_0x765f64(0x1ac)],'left':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x44f)],'top':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x278)],'width':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x1f0)],'height':_0x3b9a2a[_0x765f64(0x147)][_0x765f64(0x196)],'angle':_0x3b9a2a[_0x765f64(0x14f)]}),_0x3aa4d9[_0x765f64(0x30b)]();}[_0x1e3977(0x23b)](_0x3ad051,_0x22c9a1,_0x1ca777,_0x52be86,_0x4ed50d,_0x5e9e0e,_0x1360eb,_0x15f66d){const _0xd4c487=_0x1e3977;let _0x28effc=this[_0xd4c487(0x44e)],_0x3524c6=this['_subUnitId'];this[_0xd4c487(0x44e)]=_0x3ad051,this[_0xd4c487(0x18a)]=_0x22c9a1;let _0x231074=this[_0xd4c487(0x150)](_0x4ed50d);if(this[_0xd4c487(0x44e)]=_0x28effc,this[_0xd4c487(0x18a)]=_0x3524c6,!_0x231074)return;let {left:_0x32d9f3=0x0,top:_0x378ac9=0x0,width:_0x30a121=0x0,height:_0x5c5b4e=0x0,flipX:_0x4febb3=!0x1,flipY:_0x857269=!0x1}=_0x1360eb['transform'],_0x2f2ab1=_0x52be86[_0xd4c487(0x2ef)]();if(_0x2f2ab1['length']<0x2)return;let _0x586b1e=new _0x3d21cd[(_0xd4c487(0x437))]({'left':_0x32d9f3,'top':_0x378ac9,'width':_0x30a121,'height':_0x5c5b4e,'flipX':_0x4febb3,'flipY':_0x857269}),_0x3ccbb7=_0x5e9e0e?_0x2f2ab1[_0x2f2ab1[_0xd4c487(0x337)]-0x1]:_0x2f2ab1[0x0],_0x4821d4=_0x586b1e[_0xd4c487(0x34f)](_0x3ccbb7),_0x175da4=_0x3d21cd[_0xd4c487(0x437)]['computeConnectorResizeLayout'](_0x4821d4,_0x231074[_0xd4c487(0x362)],!_0x5e9e0e);_0x15f66d[_0xd4c487(0x1c7)]({'flipX':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x23d)],'flipY':_0x175da4['worldRect']['flipY'],'left':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x44f)],'top':_0x175da4[_0xd4c487(0x147)][_0xd4c487(0x278)],'width':_0x175da4['worldRect'][_0xd4c487(0x1f0)],'height':_0x175da4['worldRect'][_0xd4c487(0x196)],'angle':_0x175da4['worldRect'][_0xd4c487(0x1bf)]}),_0x15f66d['makeDirty'](!0x0);}[_0x1e3977(0x300)](){const _0x58f5ad=_0x1e3977;this['_connectorObjects'][_0x58f5ad(0x337)]!==0x0&&(this[_0x58f5ad(0x441)][_0x58f5ad(0x30e)](_0x4cd543=>{const _0x18eaf1=_0x58f5ad;_0x4cd543[_0x18eaf1(0x175)]();}),this[_0x58f5ad(0x441)]=[]);}[_0x1e3977(0x1c4)](){const _0x3d9023=_0x1e3977;let _0x5547e2=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2eccf5['UniverInstanceType'][_0x3d9023(0x293)]);this['disposeWithMe'](_0x5547e2[_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x3ffc05=>_0x3ffc05?_0x3ffc05[_0x3d9023(0x445)][_0x3d9023(0x239)]((0x0,_0x124e3f[_0x3d9023(0x37e)])(_0x26f50a=>{const _0x4d144b=_0x3d9023;if(!_0x26f50a)return _0x124e3f[_0x4d144b(0x341)];let _0x4acefa=_0x3ffc05[_0x4d144b(0x322)](),_0x5c6b40=this[_0x4d144b(0x3ba)][_0x4d144b(0x2be)](_0x4acefa),_0x2a3c7b=_0x5c6b40==null?void 0x0:_0x5c6b40[_0x4d144b(0x14a)];return _0x2a3c7b?(0x0,_0x124e3f['of'])(_0x2a3c7b):_0x124e3f[_0x4d144b(0x341)];})):_0x124e3f['EMPTY']))[_0x3d9023(0x17b)](_0x37e6c2=>{const _0x7550f6=_0x3d9023;let _0x115e79=_0x37e6c2[_0x7550f6(0x381)]();this['disposeWithMe'](_0x37e6c2[_0x7550f6(0x307)][_0x7550f6(0x447)](_0x26a1e5=>{const _0x4fde35=_0x7550f6;this[_0x4fde35(0x43c)]&&this['_activeShapeId']&&this[_0x4fde35(0x300)]();})),this[_0x7550f6(0x256)](_0x115e79['changeStart$'][_0x7550f6(0x17b)](_0x36af2c=>{const _0x1c44d4=_0x7550f6;let {objects:_0x3dc268}=_0x36af2c;this[_0x1c44d4(0x300)](),_0x3dc268!==null&&_0x3dc268[_0x1c44d4(0x419)]===0x1&&_0x3dc268[_0x1c44d4(0x158)]()[_0x1c44d4(0x1fe)]()[_0x1c44d4(0x123)]instanceof _0x34cbbf&&(this[_0x1c44d4(0x43c)]=!0x0);})),this[_0x7550f6(0x256)](_0x115e79[_0x7550f6(0x3be)]['subscribe'](_0x27d190=>{const _0x4e7cab=_0x7550f6;this[_0x4e7cab(0x43c)]&&this[_0x4e7cab(0x300)]();})),this[_0x7550f6(0x256)](_0x37e6c2[_0x7550f6(0x292)][_0x7550f6(0x447)](()=>{const _0x4d5b03=_0x7550f6;this['_isDrawingShapePointDown']&&(this[_0x4d5b03(0x43c)]=!0x1,this[_0x4d5b03(0x2fa)]());})),this[_0x7550f6(0x256)](_0x115e79['changeEnd$'][_0x7550f6(0x17b)](()=>{const _0x24c07e=_0x7550f6;this[_0x24c07e(0x44e)]&&this[_0x24c07e(0x18a)]&&this[_0x24c07e(0x166)]&&this[_0x24c07e(0x1a2)]['getDrawingByParam']({'unitId':this[_0x24c07e(0x44e)],'subUnitId':this[_0x24c07e(0x18a)],'drawingId':this['_activeShapeId']})&&(this[_0x24c07e(0x300)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x1e3977(0x2f6)](){const _0x485fe0=_0x1e3977;this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)]['focus$'][_0x485fe0(0x17b)](_0x47a928=>{const _0x32ce7f=_0x485fe0;if(_0x47a928['length']===0x1){let _0xe6c74e=_0x47a928[0x0];if(_0xe6c74e['drawingType']===_0x2eccf5[_0x32ce7f(0x43b)]['DRAWING_SHAPE']){let _0x4b825f=this[_0x32ce7f(0x36d)]['getShapeModel'](_0xe6c74e[_0x32ce7f(0x387)],_0xe6c74e[_0x32ce7f(0x204)],_0xe6c74e[_0x32ce7f(0x22a)]);if(_0x4b825f&&(0x0,_0x3d21cd[_0x32ce7f(0x275)])(_0x4b825f['getShapeType']())){this[_0x32ce7f(0x166)]=_0xe6c74e[_0x32ce7f(0x22a)],this[_0x32ce7f(0x44e)]=_0xe6c74e[_0x32ce7f(0x387)],this['_subUnitId']=_0xe6c74e[_0x32ce7f(0x204)],this[_0x32ce7f(0x300)](),this[_0x32ce7f(0x2fa)]();return;}}}this[_0x32ce7f(0x166)]=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x32ce7f(0x300)]();})),this[_0x485fe0(0x256)](this[_0x485fe0(0x1a2)][_0x485fe0(0x35f)][_0x485fe0(0x17b)](_0x1105bf=>{const _0x39e188=_0x485fe0;if(_0x1105bf['length']===0x1){var _0x1d5dd9;let _0x3cbf74=_0x1105bf[0x0],_0x2e685e=(_0x1d5dd9=this[_0x39e188(0x1a2)][_0x39e188(0x3d4)](_0x3cbf74))==null?void 0x0:_0x1d5dd9[_0x39e188(0x34b)];_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&_0x3cbf74['drawingId']===this[_0x39e188(0x166)]?(this[_0x39e188(0x300)](),this[_0x39e188(0x2fa)]()):!this[_0x39e188(0x166)]&&_0x2e685e===_0x2eccf5[_0x39e188(0x43b)][_0x39e188(0x285)]&&this[_0x39e188(0x3ca)](_0x3cbf74[_0x39e188(0x387)],_0x3cbf74['subUnitId'],_0x3cbf74['drawingId']);}})),this['disposeWithMe'](this[_0x485fe0(0x1a2)]['remove$'][_0x485fe0(0x17b)](_0x3cd353=>{const _0x170807=_0x485fe0;for(let _0x52081 of _0x3cd353){let {drawingId:_0x5773a2}=_0x52081;if(this[_0x170807(0x166)]===_0x5773a2){this[_0x170807(0x20a)]();return;}}}));}[_0x1e3977(0x206)](_0x3cd745,_0x2d6165,_0x199899,_0x32419a,_0x28c86a){const _0x218af3=_0x1e3977;var _0x3be649,_0x5c0a7e;if(!this[_0x218af3(0x190)])return;let _0x4fcf00=this[_0x218af3(0x150)](_0x3cd745);if(!_0x4fcf00)return;let _0x2d5156=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x3b1)]:_0x2d6165,_0x474300=this[_0x218af3(0x19e)]?this[_0x218af3(0x19e)][_0x218af3(0x1bf)]:this[_0x218af3(0x330)](_0x4fcf00['point'],_0x2d5156),_0x2ad999;if(this[_0x218af3(0x19e)]){let _0x42b75c=this['_drawingManagerService'][_0x218af3(0x3d4)]({'unitId':this[_0x218af3(0x19e)]['unitId'],'subUnitId':this[_0x218af3(0x19e)][_0x218af3(0x204)],'drawingId':this[_0x218af3(0x19e)][_0x218af3(0x329)]});if(_0x42b75c!=null&&_0x42b75c['transform']){let {left:_0x22fc49=0x0,top:_0x44be56=0x0,width:_0x4085d4=0x0,height:_0x2df5f4=0x0,angle:_0x394c10}=_0x42b75c['transform'];_0x2ad999=(0x0,_0x3d21cd[_0x218af3(0x306)])({'left':_0x22fc49,'top':_0x44be56,'width':_0x4085d4,'height':_0x2df5f4},_0x394c10||0x0);}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};}else _0x2ad999={'left':_0x2d5156['x'],'top':_0x2d5156['y'],'width':0x0,'height':0x0};let _0x425944={'point':_0x2d5156,'angle':_0x474300,'bounds':_0x2ad999},_0x41a2bd=_0x199899?_0x425944:_0x4fcf00,_0x339a7d=_0x199899?_0x4fcf00:_0x425944,_0x1b020e=this[_0x218af3(0x190)][_0x218af3(0x162)](),_0x6a3de2=(0x0,_0x3d21cd[_0x218af3(0x3e5)])(_0x41a2bd,_0x339a7d,_0x1b020e);_0x6a3de2&&this['_activeShapeModel'][_0x218af3(0x2eb)](_0x6a3de2);let _0x4c3b68=(0x0,_0x3d21cd['computeConnectorRouteLayout'])(_0x6a3de2,_0x1b020e);_0x4c3b68[_0x218af3(0x181)]!==_0x1b020e&&this[_0x218af3(0x190)][_0x218af3(0x259)](_0x4c3b68[_0x218af3(0x181)]);for(let [_0x24c751,_0x37e4d6]of Object[_0x218af3(0x3d5)](_0x4c3b68[_0x218af3(0x37d)]))this['_activeShapeModel'][_0x218af3(0x2db)](_0x24c751,_0x37e4d6);this[_0x218af3(0x190)]['updateContext']({'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68['worldRect']['height']}),_0x32419a[_0x218af3(0x1c7)]({'flipX':_0x4c3b68['worldRect'][_0x218af3(0x23d)],'flipY':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1ac)],'left':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x44f)],'top':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x278)],'width':_0x4c3b68[_0x218af3(0x147)][_0x218af3(0x1f0)],'height':_0x4c3b68[_0x218af3(0x147)]['height'],'angle':_0x4c3b68[_0x218af3(0x14f)]}),_0x32419a['makeDirty'](!0x0);let _0x4ec62c=(_0x3be649=(_0x5c0a7e=this[_0x218af3(0x19e)])==null?void 0x0:_0x5c0a7e[_0x218af3(0x3b1)])==null?_0x2d6165:_0x3be649;_0x28c86a['transformByState']({'left':_0x4ec62c['x']-_0x3d21cd[_0x218af3(0x356)]['cxnPointRadius'],'top':_0x4ec62c['y']-_0x3d21cd['ShapeDefaultConfig']['cxnPointRadius']});}[_0x1e3977(0x334)](_0x1ad03e,_0x18e237,_0x8f5a85,_0x107486,_0x17b8e3){const _0x4c277b=_0x1e3977;var _0x37364e,_0x5ea96a,_0x4c023b,_0x12b853;let _0x47fb69=(_0x37364e=(_0x5ea96a=this[_0x4c277b(0x19e)])==null?void 0x0:_0x5ea96a[_0x4c277b(0x3b1)])==null?_0x1ad03e:_0x37364e,_0x5169bb=_0x3d21cd['ConnectorCoordinateTransform']['computeConnectorResizeLayout'](_0x18e237,_0x47fb69,_0x8f5a85);_0x107486[_0x4c277b(0x1c7)]({'flipX':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x23d)],'flipY':_0x5169bb[_0x4c277b(0x147)]['flipY'],'left':_0x5169bb['worldRect']['left'],'top':_0x5169bb[_0x4c277b(0x147)]['top'],'width':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1f0)],'height':_0x5169bb[_0x4c277b(0x147)]['height'],'angle':_0x5169bb[_0x4c277b(0x147)][_0x4c277b(0x1bf)]});let _0x14cee4=(_0x4c023b=(_0x12b853=this[_0x4c277b(0x19e)])==null?void 0x0:_0x12b853['worldPoint'])==null?_0x1ad03e:_0x4c023b;_0x17b8e3['transformByState']({'left':_0x14cee4['x']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)],'top':_0x14cee4['y']-_0x3d21cd[_0x4c277b(0x356)][_0x4c277b(0x205)]});}[_0x1e3977(0x150)](_0x121b84){const _0x362d8d=_0x1e3977;if(!this[_0x362d8d(0x44e)]||!this[_0x362d8d(0x18a)])return null;let {shapeId:_0x3ef477,cxnIndex:_0x5530d3}=_0x121b84,_0x3c45c7=this[_0x362d8d(0x36d)][_0x362d8d(0x134)](this['_unitId'],this[_0x362d8d(0x18a)],_0x3ef477);if(!_0x3c45c7)return null;let _0x51e629=this['_drawingManagerService'][_0x362d8d(0x3d4)]({'unitId':this[_0x362d8d(0x44e)],'subUnitId':this[_0x362d8d(0x18a)],'drawingId':_0x3ef477});if(!(_0x51e629!=null&&_0x51e629['transform']))return null;let {left:_0x1cf372=0x0,top:_0x5c916f=0x0,width:_0x16a2fa=0x0,height:_0x44a130=0x0,flipX:_0x255f3c=!0x1,flipY:_0x4becf9=!0x1,angle:_0xf6ae71}=_0x51e629['transform'];_0x3c45c7[_0x362d8d(0x1b9)]({'width':_0x16a2fa,'height':_0x44a130});let _0x33bccb=_0x3c45c7[_0x362d8d(0x32d)]()[_0x362d8d(0x24b)](_0x2da086=>_0x2da086['index']===_0x5530d3);if(!_0x33bccb)return null;let _0x36aeb1=_0x255f3c?_0x16a2fa-_0x33bccb['x']:_0x33bccb['x'],_0x3de879=_0x4becf9?_0x44a130-_0x33bccb['y']:_0x33bccb['y'];if(_0xf6ae71!==0x0&&_0xf6ae71!=null){let _0x5ec9e1=_0xf6ae71*Math['PI']/0xb4,_0x4bc547=Math['cos'](_0x5ec9e1),_0x3b7e89=Math['sin'](_0x5ec9e1),_0x14f9d9=_0x16a2fa/0x2,_0x3e9855=_0x44a130/0x2,_0x25362b=_0x36aeb1-_0x14f9d9,_0x25271f=_0x3de879-_0x3e9855;_0x36aeb1=_0x14f9d9+_0x25362b*_0x4bc547-_0x25271f*_0x3b7e89,_0x3de879=_0x3e9855+_0x25362b*_0x3b7e89+_0x25271f*_0x4bc547;}_0x36aeb1+=_0x1cf372,_0x3de879+=_0x5c916f;let _0x245a1c=_0x33bccb['ang']/0xea60;_0x255f3c&&(_0x245a1c=0xb4-_0x245a1c),_0x4becf9&&(_0x245a1c=-_0x245a1c),_0x245a1c+=_0xf6ae71||0x0,_0x245a1c=(_0x245a1c%0x168+0x168)%0x168;let _0x191e08=(0x0,_0x3d21cd[_0x362d8d(0x306)])({'left':_0x1cf372,'top':_0x5c916f,'width':_0x16a2fa,'height':_0x44a130},_0xf6ae71||0x0);return{'point':{'x':_0x36aeb1,'y':_0x3de879},'angle':_0x245a1c,'bounds':_0x191e08};}[_0x1e3977(0x330)](_0x1d2174,_0x46b539){let _0x1518ac=_0x46b539['x']-_0x1d2174['x'],_0x535beb=_0x46b539['y']-_0x1d2174['y'];return Math['abs'](_0x1518ac)>=Math['abs'](_0x535beb)?_0x1518ac>=0x0?0xb4:0x0:_0x535beb>=0x0?0x10e:0x5a;}['_reset'](){const _0x58dbce=_0x1e3977;this[_0x58dbce(0x166)]=void 0x0,this[_0x58dbce(0x44e)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x58dbce(0x300)]();}[_0x1e3977(0x175)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};_0x511a6f=_0xba323d([_0x5a8c13(0x1,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x2,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0x3,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x4,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x5,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x6,(0x0,_0x2eccf5['Inject'])(_0x34fe5c)),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4bf73b))],_0x511a6f);let _0x186612=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x49b2de,_0x3709cf,_0x32d15f){const _0x5acee5=_0x1e3977;super(),this[_0x5acee5(0x428)]=_0x49b2de,this['_drawingManagerService']=_0x3709cf,this[_0x5acee5(0x157)]=_0x32d15f,this[_0x5acee5(0x38b)]();}['_initPrinting'](){const _0x54e093=_0x1e3977;this[_0x54e093(0x256)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x320)](this[_0x54e093(0x428)][_0x54e093(0x1d1)][_0x54e093(0x16d)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x2f782b,_0x5b75fe,_0x195539)=>{const _0x4c720e=_0x54e093;var _0x55425e;let {unitId:_0x93cbf8,subUnitId:_0x35769d,scene:_0x39bc35,resourceCollector:_0x5e35fc}=_0x5b75fe,_0x1764f2=(_0x55425e=this[_0x4c720e(0x1a2)]['getDrawingDataForUnit'](_0x93cbf8))==null?void 0x0:_0x55425e[_0x35769d];return _0x1764f2==null||_0x1764f2[_0x4c720e(0x258)]['forEach'](_0x5d4466=>{const _0x4dcaee=_0x4c720e;let _0x2c40e3=_0x1764f2[_0x4dcaee(0x346)][_0x5d4466];_0x2c40e3[_0x4dcaee(0x34b)]===_0x2eccf5[_0x4dcaee(0x43b)]['DRAWING_SHAPE']&&!_0x2c40e3[_0x4dcaee(0x1f2)]&&this[_0x4dcaee(0x157)][_0x4dcaee(0x413)](_0x2c40e3,_0x39bc35,{'resourceCollector':_0x5e35fc});}),_0x195539(_0x2f782b);}}));}};_0x186612=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8['SheetPrintInterceptorService'])),_0x5a8c13(0x1,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1f5133))],_0x186612);let _0x1361b3=class extends _0x2eccf5['Disposable']{constructor(_0x15e8c3,_0x53802f,_0xde8ffc){const _0x3c9b0a=_0x1e3977;super(),this[_0x3c9b0a(0x2dc)]=_0x15e8c3,this['_localeService']=_0x53802f,this[_0x3c9b0a(0x229)]=_0xde8ffc,this[_0x3c9b0a(0x3d3)]();}[_0x1e3977(0x3d3)](){const _0x5eab34=_0x1e3977;this[_0x5eab34(0x256)](this['_commandService'][_0x5eab34(0x223)](_0x3e3c0d=>{const _0x38977b=_0x5eab34;let _0x5f38c3,_0x5af7f9;if(_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x16f)]['id']||_0x3e3c0d['id']===_0x1b87be['SetShapeDrawingDataCommand']['id']||_0x3e3c0d['id']===_0x1b87be[_0x38977b(0x164)]['id']){let _0x41f39b=_0x3e3c0d[_0x38977b(0x2bc)];_0x5f38c3=_0x41f39b[_0x38977b(0x387)],_0x5af7f9=_0x41f39b[_0x38977b(0x204)];}!_0x5f38c3||!_0x5af7f9||this[_0x38977b(0x229)][_0x38977b(0x2d0)]({'workbookTypes':[_0x2554f2[_0x38977b(0x403)]],'worksheetTypes':[_0x2554f2[_0x38977b(0x326)]]},_0x5f38c3,_0x5af7f9)||this['_sheetPermissionCheckController'][_0x38977b(0x41c)](this[_0x38977b(0x412)]['t']('sheets-shape-ui.permission.editErr'));}));}};_0x1361b3=_0xba323d([_0x5a8c13(0x0,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x1b2)])),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x2,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2554f2[_0x1e3977(0x400)]))],_0x1361b3);let _0x23f73b=class extends _0x2eccf5[_0x1e3977(0x42a)]{constructor(_0x2c7613,_0x2e3386,_0x12e26c,_0x327bb8,_0x4cc101,_0x1f5266,_0x136fda,_0x3e47e3,_0x85c063,_0x5164ac,_0xbec7da){const _0x388667=_0x1e3977;super(),this[_0x388667(0x18f)]=_0x2c7613,this[_0x388667(0x3dd)]=_0x2e3386,this[_0x388667(0x24e)]=_0x12e26c,this[_0x388667(0x36d)]=_0x327bb8,this[_0x388667(0x412)]=_0x4cc101,this['_commandService']=_0x1f5266,this[_0x388667(0x1a2)]=_0x136fda,this[_0x388667(0x371)]=_0x3e47e3,this[_0x388667(0x133)]=_0x85c063,this[_0x388667(0x3ba)]=_0x5164ac,this[_0x388667(0x2e0)]=_0xbec7da,_0x163ed0(this,_0x388667(0x276),null),_0x163ed0(this,_0x388667(0x17e),null),_0x163ed0(this,_0x388667(0x3d0),!0x1),_0x163ed0(this,_0x388667(0x2a3),0x0),_0x163ed0(this,_0x388667(0x1d2),new Set()),_0x163ed0(this,_0x388667(0x43d),[]),this[_0x388667(0x1a3)](),this[_0x388667(0x256)](this[_0x388667(0x18f)][_0x388667(0x2b4)](_0x2eccf5[_0x388667(0x296)]['UNIVER_SHEET'])[_0x388667(0x17b)](_0x22d4b1=>{const _0x73333a=_0x388667;if(!_0x22d4b1){var _0x3199e5;(_0x3199e5=this['_sidebarDisposable'])==null||_0x3199e5[_0x73333a(0x175)]();return;}this['_createShapePopupMenu'](_0x22d4b1);})),this[_0x388667(0x220)](),this[_0x388667(0x28b)](),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x388667(0x17b)](_0x52a9e0=>{const _0x5d666f=_0x388667;_0x52a9e0&&this[_0x5d666f(0x20c)]();}));}[_0x1e3977(0x1a3)](){const _0x47a12f=_0x1e3977;this['_menuManagerService'][_0x47a12f(0x1c1)](_0x3b310c);}['initShapePopupMenu'](){const _0x188818=_0x1e3977;this[_0x188818(0x18f)]['getAllUnitsForType'](_0x2eccf5[_0x188818(0x296)]['UNIVER_SHEET'])[_0x188818(0x30e)](_0x47b56a=>this['_createShapePopupMenu'](_0x47b56a));}[_0x1e3977(0x297)](_0x332bae,_0x5d26d5,_0x909dc5){const _0x42bfb2=_0x1e3977;let _0x3336f0=this[_0x42bfb2(0x36d)][_0x42bfb2(0x143)](_0x332bae,_0x5d26d5,_0x909dc5),_0x165276=this['_sheetsShapeService'][_0x42bfb2(0x3b9)](_0x332bae,_0x5d26d5,_0x909dc5);return _0x3336f0!==void 0x0&&_0x165276!==void 0x0?{'shapeData':_0x165276,'shapeId':_0x909dc5,'shapeType':_0x3336f0,'unitId':_0x332bae,'subUnitId':_0x5d26d5,'version':this[_0x42bfb2(0x2a3)],'disableShapeOption':!0x1}:null;}[_0x1e3977(0x15e)](_0x1d609d){const _0x3a1478=_0x1e3977;if(!_0x1d609d)return;let _0x466334=_0x1d609d[_0x3a1478(0x322)]();this[_0x3a1478(0x3ba)][_0x3a1478(0x431)](_0x466334)&&!this[_0x3a1478(0x1d2)][_0x3a1478(0x431)](_0x466334)&&(this[_0x3a1478(0x266)](_0x466334),this[_0x3a1478(0x1d2)][_0x3a1478(0x42c)](_0x466334));}[_0x1e3977(0x20c)](){const _0x4a4804=_0x1e3977;this[_0x4a4804(0x43d)]['forEach'](_0x206dc8=>_0x206dc8[_0x4a4804(0x175)]()),this[_0x4a4804(0x43d)][_0x4a4804(0x337)]=0x0;}[_0x1e3977(0x266)](_0xe349b6){const _0x169ebf=_0x1e3977;var _0x1d8c02;let _0x4d21e7=(_0x1d8c02=this[_0x169ebf(0x3ba)][_0x169ebf(0x2be)](_0xe349b6))==null?void 0x0:_0x1d8c02[_0x169ebf(0x14a)],_0x5cfd71=_0x4d21e7==null?void 0x0:_0x4d21e7['getTransformerByCreate']();!_0x4d21e7||!_0x5cfd71||(this['disposeWithMe'](_0x5cfd71['createControl$'][_0x169ebf(0x17b)](()=>{const _0x1ebd5c=_0x169ebf;let _0x582491=_0x5cfd71[_0x1ebd5c(0x36b)]();if(this[_0x1ebd5c(0x20c)](),this[_0x1ebd5c(0x3d0)]||_0x582491[_0x1ebd5c(0x419)]>0x1)return;let _0x80dd98=_0x582491['values']()[_0x1ebd5c(0x1fe)]()[_0x1ebd5c(0x123)];if(!_0x80dd98)return;let _0x3e99ee=this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x2b5)](_0x80dd98[_0x1ebd5c(0x23a)]);if(!_0x3e99ee||_0x3e99ee[_0x1ebd5c(0x34b)]!==_0x2eccf5['DrawingTypeEnum']['DRAWING_SHAPE'])return;let {unitId:_0x3a1667,subUnitId:_0x55187e,drawingId:_0x19c611,drawingType:_0x21527d}=_0x3e99ee,_0x4821ee=this[_0x1ebd5c(0x297)](_0x3a1667,_0x55187e,_0x19c611);if(!_0x4821ee)return;this[_0x1ebd5c(0x133)]['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x0);let _0x4340c1=this[_0x1ebd5c(0x371)]['attachPopupToObject'](_0x80dd98,{'componentKey':_0x1f1d2c,'direction':_0x1ebd5c(0x25d),'offset':[0x0,_0x25b599[_0x1ebd5c(0x317)]],'extraProps':{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611,'drawingType':_0x21527d,'shapeType':_0x4821ee[_0x1ebd5c(0x436)],'shapeData':_0x4821ee[_0x1ebd5c(0x28a)]}});this['_disposePopups'][_0x1ebd5c(0x1b1)](this[_0x1ebd5c(0x256)](_0x4340c1)),this[_0x1ebd5c(0x1a2)][_0x1ebd5c(0x40c)]()[_0x1ebd5c(0x24b)](_0xaa4701=>_0xaa4701[_0x1ebd5c(0x387)]===_0x3a1667&&_0xaa4701[_0x1ebd5c(0x204)]===_0x55187e&&_0xaa4701['drawingId']===_0x19c611)||this[_0x1ebd5c(0x1a2)]['focusDrawing']([{'unitId':_0x3a1667,'subUnitId':_0x55187e,'drawingId':_0x19c611}]);})),this[_0x169ebf(0x256)](_0x5cfd71[_0x169ebf(0x27c)]['subscribe'](()=>{const _0x2b6dcd=_0x169ebf;this[_0x2b6dcd(0x20c)](),this[_0x2b6dcd(0x133)][_0x2b6dcd(0x3a0)](_0x2eccf5[_0x2b6dcd(0x27e)],!0x1),this[_0x2b6dcd(0x1a2)][_0x2b6dcd(0x423)](null);})),this['disposeWithMe'](_0x5cfd71[_0x169ebf(0x3be)][_0x169ebf(0x17b)](()=>{const _0x4c7d3c=_0x169ebf;this[_0x4c7d3c(0x20c)]();})),this['disposeWithMe'](_0x5cfd71['changeStart$'][_0x169ebf(0x17b)](()=>{this['_clearPopups']();})));}[_0x1e3977(0x220)](){const _0x4a7640=_0x1e3977;this[_0x4a7640(0x256)](this[_0x4a7640(0x2dc)][_0x4a7640(0x17a)](_0x44fc21=>{const _0x43e5cb=_0x4a7640;if(_0x44fc21['id']===_0x148656['id']){let {unitId:_0x206763,subUnitId:_0x5dfe46,drawingId:_0x944b5e}=_0x44fc21[_0x43e5cb(0x2bc)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x43e5cb(0x297)](_0x206763,_0x5dfe46,_0x944b5e),this[_0x43e5cb(0x20c)](),this['_openShapeEditPanel']();}if(_0x44fc21['id']===_0x157efe['id']&&(this[_0x43e5cb(0x17e)]=null,this[_0x43e5cb(0x16c)]()),_0x44fc21['id']===_0x1b87be[_0x43e5cb(0x3da)]['id']){let {unitId:_0x553cd2,subUnitId:_0x209eba,shapeId:_0x2f4c5f}=_0x44fc21[_0x43e5cb(0x2bc)];if(this[_0x43e5cb(0x17e)]&&this[_0x43e5cb(0x17e)][_0x43e5cb(0x329)]===_0x2f4c5f){let _0x16c0ff=this[_0x43e5cb(0x297)](_0x553cd2,_0x209eba,_0x2f4c5f);_0x16c0ff&&(this['_shapeEditPanelVersion']+=0x1,_0x16c0ff[_0x43e5cb(0x10c)]=this[_0x43e5cb(0x2a3)],this[_0x43e5cb(0x17e)]=_0x16c0ff,this[_0x43e5cb(0x3d0)]&&this[_0x43e5cb(0x15c)]());}}})),this['disposeWithMe'](this[_0x4a7640(0x1a2)][_0x4a7640(0x394)]['subscribe'](_0x1fa47d=>{const _0x22dd65=_0x4a7640;if(this[_0x22dd65(0x3d0)]===!0x1)return;if(_0x1fa47d[_0x22dd65(0x337)]===0x0){this[_0x22dd65(0x17e)]=null,this[_0x22dd65(0x16c)]();return;}if(_0x1fa47d['length']===0x1&&_0x1fa47d[0x0][_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']&&(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0]['subUnitId'],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this['_activeShapeInfo'])){this[_0x22dd65(0x15c)]();return;}let _0x32d712=_0x1fa47d['filter'](_0xfd4cfc=>_0xfd4cfc[_0x22dd65(0x34b)]===_0x2eccf5[_0x22dd65(0x43b)]['DRAWING_SHAPE']);if(_0x1fa47d[_0x22dd65(0x337)]>0x1&&_0x32d712[_0x22dd65(0x337)]===_0x1fa47d[_0x22dd65(0x337)]){if(this[_0x22dd65(0x2a3)]+=0x1,this[_0x22dd65(0x17e)]=this['_getShapeInfo'](_0x1fa47d[0x0][_0x22dd65(0x387)],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x15c)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x22dd65(0x297)](_0x1fa47d[0x0]['unitId'],_0x1fa47d[0x0][_0x22dd65(0x204)],_0x1fa47d[0x0][_0x22dd65(0x22a)]),this[_0x22dd65(0x17e)]){this[_0x22dd65(0x17e)]['disableShapeOption']=!0x0,this[_0x22dd65(0x15c)]();return;}}this['_closeShapeEditPanel']();}));}[_0x1e3977(0x15c)](){const _0x54fee2=_0x1e3977;this['_activeShapeInfo']&&(this[_0x54fee2(0x276)]=this[_0x54fee2(0x3dd)][_0x54fee2(0x1bc)]({'id':_0xb9db8d,'header':{'title':this[_0x54fee2(0x412)]['t'](_0x54fee2(0x130))},'width':0x184,'children':{'label':_0xb9db8d,...this[_0x54fee2(0x17e)]},'onClose':()=>{const _0x57eae2=_0x54fee2;this[_0x57eae2(0x1a2)]['focusDrawing'](null),this[_0x57eae2(0x133)][_0x57eae2(0x3a0)](_0x2eccf5[_0x57eae2(0x27e)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x54fee2(0x3d0)]=!0x0);}['_closeShapeEditPanel'](){const _0x24b7f0=_0x1e3977;this[_0x24b7f0(0x3d0)]=!0x1,this[_0x24b7f0(0x3dd)][_0x24b7f0(0x309)](_0xb9db8d),this[_0x24b7f0(0x276)]=null,this['_contextService']['setContextValue'](_0x2eccf5['FOCUSING_COMMON_DRAWINGS'],!0x1),this['_drawingManagerService'][_0x24b7f0(0x423)](null);}};_0x23f73b=_0xba323d([_0x5a8c13(0x0,_0x2eccf5[_0x1e3977(0x178)]),_0x5a8c13(0x1,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x4b5551[_0x1e3977(0x1d5)])),_0x5a8c13(0x2,_0x4b5551[_0x1e3977(0x1eb)]),_0x5a8c13(0x3,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x1b87be[_0x1e3977(0x3ad)])),_0x5a8c13(0x4,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x2eccf5[_0x1e3977(0x24d)])),_0x5a8c13(0x5,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x6,_0x215a9[_0x1e3977(0x18c)]),_0x5a8c13(0x7,(0x0,_0x2eccf5[_0x1e3977(0x456)])(_0x3c12d8[_0x1e3977(0x41e)])),_0x5a8c13(0x8,_0x2eccf5[_0x1e3977(0x138)]),_0x5a8c13(0x9,_0x114b3e[_0x1e3977(0x42b)]),_0x5a8c13(0xa,(0x0,_0x2eccf5['Inject'])(_0x31cbef))],_0x23f73b);let _0x2ba9f7=class extends _0x2eccf5[_0x1e3977(0x1de)]{constructor(_0x1b3284=_0x4f4787,_0x2f6512,_0x45b222,_0x2c96b3,_0x3ba019){const _0x34e61a=_0x1e3977;super(),this[_0x34e61a(0x3a1)]=_0x1b3284,this[_0x34e61a(0x3a6)]=_0x2f6512,this[_0x34e61a(0x2dc)]=_0x45b222,this[_0x34e61a(0x23f)]=_0x2c96b3,this[_0x34e61a(0x3ba)]=_0x3ba019;let {..._0x53b7db}=(0x0,_0x2eccf5[_0x34e61a(0x2fe)])({},_0x4f4787,this[_0x34e61a(0x3a1)]);this['_configService'][_0x34e61a(0x328)](_0x34e61a(0x271),_0x53b7db),this['_initCommands']();}[_0x1e3977(0x30d)](){const _0x4db71c=_0x1e3977;(0x0,_0x2eccf5[_0x4db71c(0x151)])(this[_0x4db71c(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612]]);}[_0x1e3977(0x295)](){const _0xd1447b=_0x1e3977;this[_0xd1447b(0x3a6)][_0xd1447b(0x32f)](_0x23f73b)['initShapePopupMenu']();}[_0x1e3977(0x2a6)](){const _0x43aa97=_0x1e3977;[[_0x4bf73b],[_0x34fe5c],[_0x13cfb8]][_0x43aa97(0x30e)](_0x1607fb=>this[_0x43aa97(0x3a6)][_0x43aa97(0x42c)](_0x1607fb)),(0x0,_0x2eccf5['touchDependencies'])(this[_0x43aa97(0x3a6)],[[_0x13cfb8],[_0x34fe5c]]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType'][_0x43aa97(0x293)],[_0x4bf73b]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x1970f0]),this['_renderManagerService']['registerRenderModule'](_0x2eccf5[_0x43aa97(0x296)]['UNIVER_SHEET'],[_0x511a6f]),this['_renderManagerService'][_0x43aa97(0x261)](_0x2eccf5[_0x43aa97(0x296)][_0x43aa97(0x293)],[_0x3ec7c3]),this[_0x43aa97(0x3ba)][_0x43aa97(0x261)](_0x2eccf5['UniverInstanceType']['UNIVER_DOC'],[_0x298514]);}[_0x1e3977(0x3c0)](){const _0x2bd449=_0x1e3977;this['_injector'][_0x2bd449(0x42c)]([_0x1ef4c8]),this['_injector']['get'](_0x1ef4c8);let _0x55c1ff=this['_injector'];[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x186612],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]['forEach'](_0x4a15c8=>_0x55c1ff[_0x2bd449(0x42c)](_0x4a15c8)),(0x0,_0x2eccf5[_0x2bd449(0x151)])(this[_0x2bd449(0x3a6)],[[_0x23f73b],[_0x262dc4],[_0x1f5133],[_0x2950cd],[_0x31cbef],[_0x3f5298],[_0x432d68],[_0x1361b3]]);}[_0x1e3977(0x405)](){const _0x528249=_0x1e3977;[_0x29cd9f,_0x5a577b,_0x157efe,_0x148656,_0x393ac4,_0x4162f6][_0x528249(0x30e)](_0x4f377c=>this['disposeWithMe'](this[_0x528249(0x2dc)][_0x528249(0x22b)](_0x4f377c)));}};_0x163ed0(_0x2ba9f7,'type',_0x2eccf5[_0x1e3977(0x296)][_0x1e3977(0x293)]),_0x163ed0(_0x2ba9f7,_0x1e3977(0x137),_0x1e3977(0x231)),_0x163ed0(_0x2ba9f7,_0x1e3977(0x163),_0xa08251),_0x163ed0(_0x2ba9f7,_0x1e3977(0x10c),_0x3fe8c1),_0x2ba9f7=_0xba323d([(0x0,_0x2eccf5['DependentOn'])(_0x3fe551[_0x1e3977(0x146)],_0x4f7558[_0x1e3977(0x21d)],_0x215a9[_0x1e3977(0x347)],_0x34fb64[_0x1e3977(0x3f9)],_0x114b3e[_0x1e3977(0x1d3)],_0x2554f2[_0x1e3977(0x327)],_0x2a24ec[_0x1e3977(0x290)],_0x2a2650[_0x1e3977(0x44c)],_0x4b5551[_0x1e3977(0x233)],_0x32598e[_0x1e3977(0x353)],_0x101b82[_0x1e3977(0x277)],_0x1b87be[_0x1e3977(0x364)],_0x3c12d8[_0x1e3977(0x1fc)],_0x25b599['UniverShapeEditorUIPlugin']),_0x5a8c13(0x1,(0x0,_0x2eccf5['Inject'])(_0x2eccf5[_0x1e3977(0x3ce)])),_0x5a8c13(0x2,_0x2eccf5[_0x1e3977(0x1b2)]),_0x5a8c13(0x3,_0x2eccf5[_0x1e3977(0x3e1)]),_0x5a8c13(0x4,_0x114b3e['IRenderManagerService'])],_0x2ba9f7),_0x962624[_0x1e3977(0x1cd)]=_0x3b310c,Object[_0x1e3977(0x29f)](_0x962624,'UniverSheetsShapeUIPlugin',{'enumerable':!0x0,'get':function(){return _0x2ba9f7;}});}));
|