@univerjs-pro/sheets-shape-ui 1.0.0-rc.0 → 1.0.1
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/controllers/format-painter.controller.d.ts +10 -0
- package/lib/types/controllers/mobile/ui.controller.d.ts +21 -6
- package/lib/types/mobile-plugin.d.ts +1 -3
- package/lib/types/views/object-list-panel/MobileSheetDrawingObjectListPanel.d.ts +1 -0
- package/lib/types/views/object-list-panel/SheetDrawingObjectListPanel.d.ts +5 -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 +21 -21
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5db5d0=_0x29aa;(function(_0x57e97a,_0x29690c){const _0x2122ae=_0x29aa,_0x22aeb6=_0x57e97a();while(!![]){try{const _0x4d0814=parseInt(_0x2122ae(0x372))/0x1+parseInt(_0x2122ae(0x10b))/0x2*(-parseInt(_0x2122ae(0x2da))/0x3)+-parseInt(_0x2122ae(0x36f))/0x4*(parseInt(_0x2122ae(0x1b7))/0x5)+-parseInt(_0x2122ae(0x347))/0x6+-parseInt(_0x2122ae(0x107))/0x7*(parseInt(_0x2122ae(0x2f3))/0x8)+parseInt(_0x2122ae(0x348))/0x9+-parseInt(_0x2122ae(0x22a))/0xa*(-parseInt(_0x2122ae(0x288))/0xb);if(_0x4d0814===_0x29690c)break;else _0x22aeb6['push'](_0x22aeb6['shift']());}catch(_0x288579){_0x22aeb6['push'](_0x22aeb6['shift']());}}}(_0x4052,0xab4d4),Object[_0x5db5d0(0x1af)](exports,Symbol[_0x5db5d0(0x206)],{'value':_0x5db5d0(0x285)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function x(_0xef507d,_0x3966d1){const _0x1412c1=_0x5db5d0;let _0x7f8428={};for(let _0x5712ec of Object['keys'](_0x3966d1)){let _0x30c8e4=_0x3966d1[_0x5712ec],_0x10ec61=_0xef507d[_0x5712ec];if(_0x30c8e4!==void 0x0){if(_0x10ec61===void 0x0){_0x7f8428[_0x5712ec]=void 0x0;continue;}typeof _0x30c8e4==_0x1412c1(0x23b)&&_0x30c8e4&&!Array[_0x1412c1(0x335)](_0x30c8e4)&&typeof _0x10ec61=='object'&&_0x10ec61&&!Array[_0x1412c1(0x335)](_0x10ec61)?_0x7f8428[_0x5712ec]=x(_0x10ec61,_0x30c8e4):_0x7f8428[_0x5712ec]=_0x10ec61;}}return _0x7f8428;}const S={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'id':_0x5db5d0(0x176),'handler':(_0x437ce9,_0x533477)=>{const _0x1040c8=_0x5db5d0;let _0x216864=_0x437ce9[_0x1040c8(0x3b6)](i['SheetsShapeService']),{unitId:_0x32fa63,subUnitId:_0x540ae8,shapeType:_0x3919b3,shapeId:_0x698963,shapeData:_0x28cd2b,replaceShapeData:_0x1b8a38,oldShapeJSON:_0x37289a}=_0x533477;if(!_0x216864[_0x1040c8(0x11e)](_0x32fa63,_0x540ae8,_0x698963))return!0x1;let _0x58ca2f=_0x437ce9[_0x1040c8(0x3b6)](a[_0x1040c8(0x2b9)]),_0x1593ee=_0x437ce9['get'](a[_0x1040c8(0x236)]),{oldShapeType:_0x16f6a5,oldShapeData:_0x3095ed={}}=_0x37289a,_0x5d4f18=_0x1b8a38?_0x3095ed:x(_0x3095ed,_0x28cd2b||{}),_0x2020e8={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x3919b3,'shapeData':_0x28cd2b,'replace':_0x1b8a38}},_0x4e5306={'id':i[_0x1040c8(0x244)]['id'],'params':{'unitId':_0x32fa63,'subUnitId':_0x540ae8,'shapeId':_0x698963,'shapeType':_0x16f6a5,'shapeData':_0x5d4f18,'replace':_0x1b8a38}};return _0x58ca2f[_0x1040c8(0x3b8)](_0x2020e8['id'],_0x2020e8[_0x1040c8(0x1a0)])?(_0x1593ee[_0x1040c8(0x327)]({'unitID':_0x32fa63,'undoMutations':[_0x4e5306],'redoMutations':[_0x2020e8]}),!0x0):!0x1;}};function C(_0x545848,_0x599dff,_0x44f34d,_0x152bb2,_0x4b6a54,_0x3ac8bf){const _0x185f1f=_0x5db5d0;let _0x5fbf90={'unitId':_0x599dff,'subUnitId':_0x44f34d,'shapeId':_0x152bb2,'shapeData':_0x3ac8bf,'oldShapeJSON':_0x4b6a54};return _0x545848[_0x185f1f(0x3e5)](S['id'],_0x5fbf90);}function ee(_0x1fb605,_0x3da226,_0x596126,_0x5d6790,_0x2a59cf,_0x529a50){const _0x82e95b=_0x5db5d0;let _0x424319={'unitId':_0x3da226,'subUnitId':_0x596126,'shapeId':_0x5d6790,'shapeData':_0x529a50,'oldShapeJSON':_0x2a59cf};return _0x1fb605[_0x82e95b(0x3e5)](S['id'],_0x424319);}function w(_0x54642a){'@babel/helpers - typeof';const _0x2eadd1=_0x5db5d0;return w=typeof Symbol==_0x2eadd1(0x1f3)&&typeof Symbol[_0x2eadd1(0x282)]==_0x2eadd1(0x3ad)?function(_0x695935){return typeof _0x695935;}:function(_0x1613a1){const _0x286296=_0x2eadd1;return _0x1613a1&&typeof Symbol=='function'&&_0x1613a1['constructor']===Symbol&&_0x1613a1!==Symbol[_0x286296(0x406)]?_0x286296(0x3ad):typeof _0x1613a1;},w(_0x54642a);}function te(_0x342797,_0x64d7e3){const _0x2ce095=_0x5db5d0;if(w(_0x342797)!='object'||!_0x342797)return _0x342797;var _0x7f380b=_0x342797[Symbol['toPrimitive']];if(_0x7f380b!==void 0x0){var _0x525cb8=_0x7f380b[_0x2ce095(0x33a)](_0x342797,_0x64d7e3||'default');if(w(_0x525cb8)!=_0x2ce095(0x23b))return _0x525cb8;throw TypeError(_0x2ce095(0x323));}return(_0x64d7e3===_0x2ce095(0x40a)?String:Number)(_0x342797);}function T(_0x10cef8){const _0x10cf74=_0x5db5d0;var _0x551b9a=te(_0x10cef8,_0x10cf74(0x40a));return w(_0x551b9a)==_0x10cf74(0x3ad)?_0x551b9a:_0x551b9a+'';}function E(_0x4d2a51,_0x5539ec,_0x2fc6b2){const _0x1f090d=_0x5db5d0;return(_0x5539ec=T(_0x5539ec))in _0x4d2a51?Object[_0x1f090d(0x1af)](_0x4d2a51,_0x5539ec,{'value':_0x2fc6b2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d2a51[_0x5539ec]=_0x2fc6b2,_0x4d2a51;}function D(_0x3fd9de,_0xd820bf,_0x413ae5){const _0x2f54e8=_0x5db5d0;let _0x4ace68=(0x0,e[_0x2f54e8(0x3ce)])(_0x3fd9de,{..._0xd820bf,'dataModel':{..._0xd820bf[_0x2f54e8(0x373)]??{},..._0x413ae5?{'doc':_0x413ae5}:null}}),_0x587801=(0x0,e[_0x2f54e8(0x416)])(_0x4ace68);return{'clip':(0x0,e[_0x2f54e8(0x165)])(_0x4ace68,_0x587801),'wrapStrategy':_0x587801};}function _0x4052(){const _0x245dae=['getConnectionInfo','shape-adjust-point-','mergeMenu','MobileShapeEditorService','ShapeTextRibbonControl','getInterceptPoints','_imageShapeClipController','OTHERS','getCurrentScrollState','width','BuiltInUIPart','getAdjustInfoByName','stroke','_closeShapeEditPanel','sheets-shape-ui.insertShape','isConnectorShape','ShapeDefaultConfig','hideContextualTab','_baseShapeWidth','isDrawingObject','render','ICommandService','setConfig','presentationChanged$','getCurrentSkeleton','InsertShapeCommand','getAutoFitPresentations','getAdjustNames','isRender','canvas','_groupCopyPasteController','_clearShapeAdjustControls','getRenderUnitById','presetId','_registerFocusChangeHandler','popup','clip-','sheets-shape-ui.imagePanel.crop.shape','editingParams$','_canEdit','visible','strokeWidth','isHighlighted','worldPoint','entries','getUnitId','CopySheetCommand','getDrawingDataForUnit','setPrstGeom','_transform','_updateAdjustControlPositions','drawWith','_initSelection','set','402ZXlbtU','FromArray','startWith','contentVerticalOffset','ISheetClipboardService','sheet.shape.text.float-menu','TOP','_sidebarService','clipTop','ShapeArrowTypeEnum','GROUP','setOnSavingEditorData','SHEET_SHAPE_UI_PLUGIN','scene','multiply','setCollapsedIds','_context','updateConnectionDetection','_sheetDrawingShapeRenderController','_clearConnectionSites','order','PictureFill','_sheetClipboardService','complete','normal','115176EwBErT','_sheetPermissionCheckController','worldPoints','onReady','OBJECT_LIST_FLOATING_SECTION_ID','_findNearestConnectionSite','getBatchRemoveOp','getShapeType','length','_iconManager','RemoveSheetCommand','fillType','asObservable','_formulaShapes','cancelEditing','getEditing','doc','_loadAndSetImage','sheets-shape-ui.title','forward','animateFormulaPresentation','renderDrawingShape','_releaseRenderCache','_renderWithCache','value','UniverDocsPlugin','setSrcRect','Rect','CURSOR_TYPE','removeLinePoints','plainShapeTextToDocumentData','SHAPE_TEXT','MEDIA','_shapePopupMenuDisposable','ImageSourceTypeEnum','_registerFeatureMenu','ConnectorCoordinateTransform','_getConnectionSiteAngle','UNIVER_SHEET','_initEditingParams','fill','_registerGroupFeaturePasteHook','getDrawingOrder','_rerouteConnectorLine','IConfigService','applyPoint','sheets-shape-ui.deleteShape','RemoveSheetsShapeMutation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DrawingApplyType','_currentConnectionTarget','SetDrawingArrangeCommand','pushUndoRedo','changeStart$','getTextModel','transform','_updateTransform','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getObjectListPanelSectionIdForDrawingType','activateDrawingObject','_completionFrame','_resetState','SHAPE_EDITOR_TRANSFORMER_CONFIG','SheetSkeletonService','draw','_sheetShapeAdjustController','isArray','featurePluginUpdateNotification','REMOVE','resetCursor','sheets-shape-ui.flipVertical','call','CommandType','cxnPointFill','fromChangeset','UniverRenderEnginePlugin','sheets-shape-ui.ribbon.shape-format.arrange-front','shapeId','formulaPresentation','getSkeletonParam','getDrawingData','focus$','indexOf','RemoveSheetDrawingCommand','3172194aLZtCw','10812996HhPHlv','_drawRichTextLayer','BottomIcon','InsertSheetsShapeMutation','updateShapeFillImage','_addShapeConnectorHandlerObject','vertical','_getZoomRatio','ShapeGroupEnum','_sheetCanvasPopManagerService','UniverLicensePlugin','_update','offsetY','endConnectionDetection','generateRandomId','_focusedDrawings','actualHeight','resourceCollector','with','_hasReset','description','startY','MenuItemType','_imageIoService','Circle','interceptCommand','setEditing','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','SheetSkeletonManagerService','_highlightedSiteIndex','debounceRefreshControls','_getImageDrawingInfo','beforeCommandExecuted','onPointerUp$','stringify','SheetsShapeUIContextualRibbonSchema','ToggleSheetsShapeFlipCommand','_initEvents','VIEW_MAIN_LEFT_TOP','780PKlQnq','viewportScrollY','_calculateFreeEndpointAngle','874639LbSQlv','dataModel','buildShapeTextDataUpdate','sheets-shape-ui.editText','_isShouldShowDrawingShapeAdjust','FOCUSING_COMMON_DRAWINGS','front','sheet.operation.open-mobile-shape-editor','jsx','_handleConnectedEndpointMove','_registerDrawingFocusChangeHandler','_isHighlighted','registerDependencies','DocCanvasPopManagerService','ShapeTextHyperLinkPopupService','add','useMemo','_disposed','getCurrentTypeOfUnit$','_addShapeConnectorHandlerObjects','remove$','_initMenu','_transformCalculateSrcRect','getState','ShapeFloatingToolbarService','_drawingRenderService','addClipboardHook','FlipHorizontalIcon','filter','ToggleShapeFloatingToolbarOperation','IPermissionService','resolveFormulaShapeAutoFitSize','ShapeFillEnum','_executeConnectedRouteConnectionCommand','div','EMPTY','start','useState','shapeData','UniverSheetsShapeMobileUIPlugin','DocumentViewModel','pick','_shapeFloatingToolbarService','jsxs','cos','transformToDrawingPosition','getDrawingTypeNameKey','setShapeProps','fontFamily','computeConnectorResizeLayout','setPrstGeomAdjValues','_drawingType','calculate','Shape','_draggingConnectorId','DRAWING_OBJECT_LAYER_INDEX','focusDrawing','DisposableCollection','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','symbol','values','disableShapeOption','index','_drawingManagerService','_clearPopups','clip-adj-','computeStraightConnectorLayout','RENDER_CLASS_TYPE','get','getObject','syncExecuteCommand','hidden','WorksheetEditPermission','startArrow','getShapeData','sheet.operation.open-shape-object-list-panel','IURLImageService','unitId','image-clip-adjust-point-','drawingType','VerticalAlign','preValue','sheet.command.menu-insert-shape','height','shouldAllowShapeTextEditorHostSizeShrink','ang','resize','VIEW_MAIN_TOP','updateDocumentStyle','getTransformerByCreate','sheets-shape-ui.config','sheet.menu.shape.flip-horizontal','resolveShapeTextEditorBehaviorShapeData','idMap','connectInjector','_configService','_unitId','error','composeMatrix','DEFAULT_PASTE','_disposePopups','_config','_handleBasicShapeUpdateConnectorLineShape','_sheetSkeletonService','setFormulaPresentation','setFallbackVisible','_isImagePointerDown','SetDrawingSelectedOperation','shapeText','_isConnecting','size','_getShapeAdjustPointListById','_insertingShapeKeys','drawingId','_visible','executeCommand','DrawingTypeEnum','doc.image-clip.shape-picker.component','Path','restore','actions','sheet.menu.shape.flip-vertical','DrawingImageClipService','angle','sheet.image-clip.shape-picker.component','_baseWidth','_drawShapeText','skeleton','transformToAxisAlignPosition','register','_findShapeAtPoint','_contextService','_getShapeAdjustInfosById','UniverSheetsDrawingUIPlugin','changeEnd$','ShapeFormatSettingIcon','name','open','getFocusDrawings','registerFeaturePasteHook','ContextMenuPosition','sheets-shape-ui.shape-format.formula-ribbon-control','UniverInstanceType','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','pipe','getConnectorLinePoints','getViewportByCell','_createCopyInfoByRange','prototype','sin','setShapeData','getDrawingVisible','string','Image','parse','useEffect','_connectorObjects','refreshAdjustControls','map','shape-editor-ui.arrange.forward','MenuManagerPosition','DRAWING','Arrow','RIBBON','resolveShapeTextEditorWrapStrategy','localeService','_injector','DocSelectionRenderService','initShapePopupMenu','PREDEFINED_HOOK_NAME','canvasElement','translate','UniverSheetsDrawingMobileUIPlugin','end','DocEventManagerService','SetSheetDrawingCommand','_activeAdjustPointList','_baseShapeTop','save','_editingParams$','subscribe','version','createShapeFormulaDocument','flatMap','lineShapeId','relation','useReducer','getOwnPropertyDescriptor','left','_shapeTextEditingService','next','Line','useDependency','sheets-shape-ui.ribbon.shape-format','getTextStyle','viewportScrollX','getAdjustValueByName','ComponentManager','_activeTargetShapeId','registerClipDelegate','objects','_updateShapeAdjustControls','resolveShapeContextualRibbonHostMode','_ribbonService','completeEditing','_baseShapeHeight','_sheetBasicShapeConnectionPointController','calcAdjValues','ShapeStyleRibbonControl','sheets-shape-ui.objectListPanel.open','forEach','close','update$','IContextService','cxnPointStrokeWidth','_connectionSiteObjects','wrapStrategy','ShapeQuickStyleGallery','setHighlighted','FOCUSING_SHAPE_TEXT_EDITOR','flipY','_addControl','cxnPointRadius','ContextMenuGroup','prstGeom','oKey','localToWorld','None','getCurrentRangeDisable$','_props','axisAlignSheetTransform','flipX','_copyInfo','_attachConnectorObjectEvent','_sheetPrintInterceptorService','cxnIndex','onStarting','_activeImageId','refreshShapeFillImage','_currentUniverService','changeShapeType','_renderManagerService','toDisposable','trim','581UECopC','bottom','delete','sheets-shape-ui.flipHorizontal','11622irvWIl','_drawSimpleText','IDrawingManagerService','undo','from','shapeModel','_hide','getRealBound','_isStartConnectorPoint','_executeResizeCommand','activeSheet$','selectable','SolidLine','_init','_registerImageShapeClipDelegate','_registerIcons','touchDependencies','TopmostIcon','getDrawingOKey','getShapeModel','bindRenderTransformerLifecycle','ShapeTextEditorContainer','pluginName','getShapeTextRect','getDrawingPoints','_draw','attachTransformerTo','custom','_shapeFormulaService','_sidebarDisposable','getStartConnectInfo','_activeShapeAdjustPointList','UUID','_univerInstanceService','setPresentation','getCanvasElement','_initCopyPaste','isRenderLinePointsMode','refreshTransform','getTransformer','_getDrawingRect','SheetsSelectionsService','DRAWING_IMAGE','getActiveSheet','_clearShapeConnectorHandlerObjects','onload','_attachAdjustEvent','createControl$','_onSavingEditorData$','enableObjectsEvent','_createShapeAdjustControls','SheetDrawingAnchor','_reset','_baseDrawingRect','updateContext','UniverDocsUIPlugin','getShapeTextData','DocRenderController','_getShapeInfo','getShapeQuickStyleType','deriveStateFromActiveSheet$','useObservable','sheetViewStartColumn','_isDrawingShapePointDown','_registerOperations','_uiPartsService','getActualSize','getObjectListPanelLabels','scale','ArrangeTypeEnum','subscribeEvent','text','_formulaKey','registerCommand','setCanUseShapeClip','fillImageSource','transformForAngle','ShapeFloatingToolbar','DependentOn','getDrawingByParam','isEditing','adjustValues','SetDrawingApplyMutation','_lastEditingShapeKey','stopPropagation','panel','onTransformChange$','_generateCopyPasteMutations','_registerComponents','ShapeArrowSizeEnum','shouldClipShapeTextDocument','UniverMobileUIPlugin','Injector','translateWithPrecision','getSheetCommandTarget','_currentScene','point','getUnitType','_shapeRenderController','_insertShapes','_handleConnectorPointerUp','_updateImageAdjValues','classType','IMenuManagerService','_adjHandlerPointerMove','RibbonInsertGroup','includes','sheet.command.update-shape-data','switchMap','unregister','Vector2','Plugin','onDblclick$','ancestorTransform','disposeWithMe','clip','shapeType','_applyFormulaAutoFitSize','image','_isStartAdjusting','shapeKey','_updateSrcRectByTransform','_cxtHandlerPointerUp','getConnectionSiteList','BehaviorSubject','shape-editor-ui.arrange.back','_executeConnectionCommand','ShapeFormulaService','_initCommands','onSavingEditorData$','_handleFreeEndpointPointerUp','has','color','isHitLine','_adjName','sheets-shape-ui.ribbon.shape-format.arrange-forward','insertGroupObject','sheetTransform','UNIVER_DOC','isRichText','connector-handler-','SHEET_VIEWPORT_KEY','_popupMenuListener','setAdjustValueByName','getDrawingSearch','BUTTON','DRAWING_SHAPE','sheets-shape-contextual-ribbon','isCurvedConnectorShape','params','isHit','changing$','_getOrCreateShapeModel','_addShapeAdjustControl','sheetViewStartRow','SHAPE','DrawingCommonPanel','UPDATE','_setTransForm','onCommandExecuted','transformByState','lineType','_commandService','getUnit','defineProperty','SELECTOR','sqrt','Transform','ShapePickerDropdown','startConnectionDetection','onPointerMove$','ShapeLineTypeEnum','32755CNFlwD','vertical-center','ObjectLayersIcon','IImageIoService','#1a73e8','getVisible','push','_index','#4285f4','ShapeFormulaRibbonControl','_activeShapeInfo','onPointerDown$','FlipVerticalIcon','dispose','sheets-shape-ui.permission.editErr','highlighted','activeAnObject','IUniverInstanceService','MobileShapeActionPanel','worldRect','FormulaShapeAnimationController','UniverSheetsShapePlugin','_baseLeft','refreshFormulaPresentation','ShapePickerPanel','_commandExecutedListener','_loadShapePictureFill','_formulaAnimation','Observable','merge','getObjectIncludeInGroup','onSteady','isMainScene','_openShapeEditPanel','_getConnectPointInfo','SHAPE_CHANGE_PICKER_COMPONENT','getEndConnectInfo','MoveUpIcon','UniverShapeEditorUIPlugin','setShouldShowAdjust','shape-editor-ui.arrange.front','SheetsShapeService','CUT','invert','Fragment','interceptor','clearAdjustValue','DocSelectionManagerService','_getImagePrstGeom','rotation','makeDirty','UniverSheetsPlugin','data','updateLinePoints','sectionFloating','startX','_baseTop','prstGeomAdjValues','COMMAND','_createControls','function','_shapeService','srcRect','_activeAdjustInfo','_generatePasteMutations','getDrawingShapeKeyByDrawingSearch','currentAdjustValues','clone','marginTop','shape-editor-ui.toolbar.quickStyles','PRINTING_COMPONENT_COLLECT','cxnPointStroke','Disposable','_handleFreeEndpointMove','ISheetDrawingService','getCurrentUnitInfo','some','UniverSheetsShapeUIPlugin','_drawRichText','toStringTag','FloatingObjectToolbarPosition','_handleConnectedEndpointPointerUp','sheet.operation.close-sheet-shape-format-panel','subUnitId','HorizontalAlign','sheets-shape-format-font-family-menu','permissionCheckWithoutRange','getParent','univer-box-border\x20univer-px-4\x20univer-text-sm','rect','isolated','_shapeId','resolveActiveShapeQuickStylePresetId','getShapeTypeById','UniverDrawingPlugin','getBatchAddOp','Large','beginPath','_sheetDrawingService','getCurrentLastSelection','DocumentDataModel','_registerDrawingMoveHandler','_getSceneAndTransformerByDrawingSearch','sheets-shape-ui.formatShape','clipHeight','_isOpenedShapeEditPanel','_shapes','sheets-shape-ui.shape-format.text-ribbon-control','_permissionService','_registerMoveHandler','IUIPartsService','IRenderManagerService','getImage','_executeConnectedRouteResizeCommand','getPresentation','18460kFIANa','attachRangeWithCoord','INSERT','_generateCutPasteMutations','fontSize','Inject','top','DrawingRenderService','LocaleService','getDrawingEditable','abs','IconManager','IUndoRedoService','SheetCanvasPopManagerService','formulaBinding','getBasicShapeRotateBound','getSkeleton','object','_subUnitId','_baseHeight','fillImageSourceType','type','decorate','_urlImageService','redo','ShapeModel','UpdateSheetsShapeDataMutation','_getScrollInfo','UniverDrawingUIPlugin','SheetPermissionCheckController','visible$','find','useFormulaShapeToolbar','adjName','computeConnectorRouteLayout','sheets-shape-ui.objectListPanel.title','getOrCreateDrawingCopyPlan','clearAdjustControls','extensionGroups','addObject','clearControl$','getBentTypeFromPoints','getImageSourceCache','UniverSheetsDrawingPlugin','back','memo','_activeShapeModel','ShapeTypeEnum','registerRenderModule','style','_menuManagerService','sheets-shape-ui.shape-format.style-ribbon-control','clipByShape','_initPermission','_baseShapeLeft','_drawingAddListener','sectionCanvas','SheetInterceptorService','src','DocumentSkeleton','MobileDropdown','MoveDownIcon','title','adjHandleSize','blockExecuteWithoutPermission','ShapeIcon','ShapeTextFloatMenuRenderControllerBase','getSheetBySheetId','_showConnectionSites','targetShapeId','_cxnIndex','run','_localeService','_initPrinting','getConnectionRelation','getScene','_cxtHandlerPointerMove','parent','connection-site-','sheets-shape-ui.editShape','getZoomRatio','LEFT','ISidebarService','setCursor','normalizeShapeTextModel','_sheetsShapeService','_componentManager','isLineShape','iterator','onRendered','unsubscribe','Module','packageName','getShapeDataById','14333QKTDoh','isInGroup','setContextValue','getMenuHiddenObservable','getMatrix','_clearControls','endArrow','isStartConnectorPoint','registerComponent','_clipService','_shapeEditPanelVersion','_sheetInterceptorService','ObjectListPanelBase','_clearCompletionFrame','_activeShapeId','drawing.operation.set-drawing-active','UniverSheetsUIPlugin','getSelectedObjectMap','OPERATION','UpdateConnectorRelationCommand','keys','_adjHandlerPointerUp','_initialize','horizontal','routeConnectorLineShape','disableObjectsEvent','ShapeEditPanel','setFillImage'];_0x4052=function(){return _0x245dae;};return _0x4052();}var O=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xd9fa73,_0x415cf2){const _0x571ea9=_0x5db5d0;super(_0xd9fa73,_0x415cf2),E(this,_0x571ea9(0xf8),void 0x0),E(this,'_formulaAnimation',new e[(_0x571ea9(0x1cb))](()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),E(this,_0x571ea9(0x388),!0x0),E(this,_0x571ea9(0x3a5),a[_0x571ea9(0x3e6)][_0x571ea9(0x19d)]),E(this,_0x571ea9(0x2b7),!0x0),this[_0x571ea9(0xf8)]={..._0x415cf2},this['_formulaAnimation']['setPresentation'](_0x415cf2[_0x571ea9(0x341)],_0x415cf2[_0x571ea9(0x307)]!==!0x1),this[_0x571ea9(0x118)](),this['_applyFormulaAutoFitSize']();}[_0x5db5d0(0x118)](){const _0x250df3=_0x5db5d0;this[_0x250df3(0x161)]['subscribeEvent'](_0x10c0c1=>{const _0x15aba8=_0x250df3;this[_0x15aba8(0x184)](_0x10c0c1);});}['setPrstGeom'](_0x139033){const _0x5e8dc7=_0x5db5d0;this[_0x5e8dc7(0xf8)][_0x5e8dc7(0xf3)]=_0x139033;}[_0x5db5d0(0x362)](_0x1cd12a){const _0x18d2fb=_0x5db5d0;this[_0x18d2fb(0xf8)]['isEditing']=_0x1cd12a,this[_0x18d2fb(0x1e9)](!0x0);}[_0x5db5d0(0x3da)](_0x3f836d,_0x2c8eec=!0x0){const _0x443af5=_0x5db5d0;this[_0x443af5(0x1d2)][_0x443af5(0x12d)](_0x3f836d,_0x2c8eec),this['_props']['formulaPresentation']=_0x3f836d,this[_0x443af5(0x180)](),this[_0x443af5(0x1e9)](!0x0);}[_0x5db5d0(0x180)](){const _0x2d4253=_0x5db5d0;let _0x18c4c5=this[_0x2d4253(0xf8)]['shapeModel'],_0x25f487=_0x18c4c5['getShapeTextData'](),_0x3697ca=(0x0,e[_0x2d4253(0x27e)])(_0x25f487==null?void 0x0:_0x25f487[_0x2d4253(0x373)]),_0x58bc03=_0x3697ca==null?void 0x0:_0x3697ca['doc'],_0x118d3f=this['_formulaAnimation'][_0x2d4253(0x2be)]();if(!_0x58bc03||_0x118d3f['length']===0x0)return;_0x18c4c5['updateContext']({'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]});let _0x21f78b=(0x0,e[_0x2d4253(0x391)])({'documentData':_0x118d3f['map'](_0x411997=>(0x0,r[_0x2d4253(0x428)])(_0x58bc03,_0x411997)),'height':this[_0x2d4253(0x3c5)],'shapeData':_0x18c4c5[_0x2d4253(0x3bc)](),'textRect':_0x18c4c5[_0x2d4253(0x122)]({'left':0x0,'top':0x0,'width':this[_0x2d4253(0x2ad)],'height':this[_0x2d4253(0x3c5)]}),'width':this[_0x2d4253(0x2ad)]});if(_0x21f78b){var _0x3a048b;this['resize'](_0x21f78b['width'],_0x21f78b[_0x2d4253(0x3c5)]),(_0x3a048b=this[_0x2d4253(0x275)]())==null||(_0x3a048b=_0x3a048b[_0x2d4253(0x132)]())==null||_0x3a048b[_0x2d4253(0x366)]();}}get[_0x5db5d0(0x3bf)](){const _0x2f1875=_0x5db5d0;return this[_0x2f1875(0xf8)][_0x2f1875(0x3bf)];}get['subUnitId'](){const _0x5c15a0=_0x5db5d0;return this[_0x5c15a0(0xf8)][_0x5c15a0(0x20a)];}[_0x5db5d0(0x184)](_0x5db135){const _0x154cde=_0x5db5d0;if(this[_0x154cde(0xf8)][_0x154cde(0x1f5)]==null||!this[_0x154cde(0x388)])return;let {width:_0xd1b730,height:_0x2981a0}=this,{width:_0x4bcce5=0x0,height:_0x1845e4=0x0}=_0x5db135[_0x154cde(0x3c3)],{left:_0x155e59=0x0,top:_0x4f34ca=0x0,right:_0x547aef=0x0,bottom:_0x2f4d67=0x0}=this[_0x154cde(0xf8)][_0x154cde(0x1f5)],_0x59b10d=_0x155e59,_0x390ee4=_0x4f34ca,_0x4aa67c=_0x547aef,_0x26720d=_0x2f4d67,_0x32e993=!0x1;if(_0x4bcce5!==0x0&&_0x4bcce5!==_0xd1b730){let _0x56462f=_0x155e59/_0x4bcce5,_0x46bb61=_0x547aef/_0x4bcce5;_0x59b10d=_0xd1b730*_0x56462f,_0x4aa67c=_0xd1b730*_0x46bb61,_0x32e993=!0x0;}if(_0x1845e4!==0x0&&_0x1845e4!==_0x2981a0){let _0x5479f2=_0x4f34ca/_0x1845e4,_0x433c4d=_0x2f4d67/_0x1845e4;_0x390ee4=_0x2981a0*_0x5479f2,_0x26720d=_0x2981a0*_0x433c4d,_0x32e993=!0x0;}_0x32e993&&this[_0x154cde(0x30d)]({'left':_0x59b10d,'top':_0x390ee4,'right':_0x4aa67c,'bottom':_0x26720d});}['setSrcRect'](_0x1dc783){const _0x18e0c9=_0x5db5d0;this[_0x18e0c9(0xf8)][_0x18e0c9(0x1f5)]=_0x1dc783,this['makeDirty'](!0x0);}[_0x5db5d0(0x2a3)](_0x43983a){const _0x18147f=_0x5db5d0;this[_0x18147f(0xf8)][_0x18147f(0x181)]=_0x43983a,this['makeDirty'](!0x0);}set['transform'](_0x59ef2c){const _0x4fb357=_0x5db5d0;this[_0x4fb357(0x2d5)]=_0x59ef2c;}get['transform'](){const _0x1dd4dd=_0x5db5d0;this[_0x1dd4dd(0x2d5)]||this[_0x1dd4dd(0x1a9)]();let _0x51cc1e=this[_0x1dd4dd(0x2d5)][_0x1dd4dd(0x1fa)]();return this[_0x1dd4dd(0x157)](_0x51cc1e);}get[_0x5db5d0(0x110)](){const _0x4aa4ab=_0x5db5d0;return this[_0x4aa4ab(0xf8)][_0x4aa4ab(0x110)];}get[_0x5db5d0(0x340)](){const _0x1d4f09=_0x5db5d0;return this[_0x1d4f09(0xf8)]['shapeId'];}get[_0x5db5d0(0x171)](){const _0x5576ac=_0x5db5d0;return c[_0x5576ac(0x3b5)][_0x5576ac(0x1a6)];}[_0x5db5d0(0x124)](_0x5697bf,_0x3876d6,_0x4c00d2,_0x12759b){const _0x9fb9d9=_0x5db5d0;let _0x42d423=this['_props'][_0x9fb9d9(0x110)];if(!_0x42d423||!_0x3876d6)return;let _0x82f002=_0x4c00d2??this[_0x9fb9d9(0x2ad)],_0x48cf74=_0x12759b??this[_0x9fb9d9(0x3c5)],_0x55d146={'shapeType':_0x42d423[_0x9fb9d9(0x2fa)](),'width':_0x82f002,'height':_0x48cf74},_0x341902={'renderMode':n['ShapeRenderModeEnum'][_0x9fb9d9(0x3e8)],'oKey':this['oKey'],'image':this[_0x9fb9d9(0xf8)][_0x9fb9d9(0x181)],'angle':this[_0x9fb9d9(0x3ed)]};_0x42d423[_0x9fb9d9(0x141)](_0x55d146),_0x5697bf['save']();let _0x352649={'top':0x0,'left':0x0,'width':_0x82f002,'height':_0x48cf74},_0xff18f5=_0x42d423['getDrawingEffectBounds'](_0x352649);_0xff18f5?this[_0x9fb9d9(0x30a)](_0x5697bf,_0xff18f5,_0xda7ec7=>{const _0xa92a48=_0x9fb9d9;_0x42d423[_0xa92a48(0x2b8)](_0xda7ec7,_0x352649,_0x341902);}):(this[_0x9fb9d9(0x309)](),_0x42d423['render'](_0x5697bf,_0x352649,_0x341902)),_0x5697bf[_0x9fb9d9(0x3e9)]();let _0x4e106a=_0x42d423[_0x9fb9d9(0x143)](),_0x4b2903=_0x42d423['getShapeTextRect'](_0x352649),_0x3a7344=_0x42d423['isLineShape']();if(_0x4e106a&&_0x4b2903&&!_0x3a7344){_0x5697bf[_0x9fb9d9(0x424)](),this['getState']()[_0x9fb9d9(0xfa)]&&_0x5697bf[_0x9fb9d9(0x14f)](-0x1,0x1);let _0x3e0230=_0x82f002/0x2,_0x854f0=_0x48cf74/0x2;_0x5697bf[_0x9fb9d9(0x41d)](-_0x3e0230,-_0x854f0),_0x5697bf[_0x9fb9d9(0x218)](),this[_0x9fb9d9(0x3f0)](_0x5697bf,_0x4e106a,_0x4b2903),_0x5697bf[_0x9fb9d9(0x3e9)]();}}[_0x5db5d0(0x123)](_0x3debcd){}[_0x5db5d0(0x3f0)](_0x22266f,_0x97f4c2,_0x278304){const _0x1cc66e=_0x5db5d0;var _0xc8a5d3;this[_0x1cc66e(0xf8)][_0x1cc66e(0x15b)]||(!((_0xc8a5d3=_0x97f4c2['dataModel'])!=null&&_0xc8a5d3[_0x1cc66e(0x303)])&&_0x1cc66e(0x196)in _0x97f4c2&&_0x97f4c2[_0x1cc66e(0x196)]===!0x1?this[_0x1cc66e(0x10c)](_0x22266f,_0x97f4c2,_0x278304):this[_0x1cc66e(0x205)](_0x22266f,_0x97f4c2,_0x278304));}[_0x5db5d0(0x10c)](_0x3a37fb,_0x4f1f8f,_0x163ac1){const _0x163778=_0x5db5d0;this['_drawRichText'](_0x3a37fb,{..._0x4f1f8f,'text':_0x4f1f8f[_0x163778(0x152)]??'','dataModel':{'doc':(0x0,e[_0x163778(0x311)])(_0x4f1f8f,'sheets-shape-text-'+this['oKey'])}},_0x163ac1);}[_0x5db5d0(0x205)](_0x1a4af9,_0x3e62ef,_0xf13811){const _0x3ad8e8=_0x5db5d0;(0x0,e['drawFormulaShapeAnimationLayers'])(_0x1a4af9,this[_0x3ad8e8(0x1d2)],(_0x456fc5,_0x3afea9)=>{const _0x255329=_0x3ad8e8;this[_0x255329(0x349)](_0x456fc5,_0x3e62ef,_0xf13811,_0x3afea9);});}['_drawRichTextLayer'](_0x7cda5e,_0x37ef0b,_0x27b445,_0x3c1894){const _0x1e98ba=_0x5db5d0;let _0x5d99f8=this[_0x1e98ba(0xf8)][_0x1e98ba(0x417)];if(!_0x37ef0b[_0x1e98ba(0x373)]||!_0x5d99f8)return;let _0x4375f0=(0x0,e[_0x1e98ba(0x27e)])(_0x37ef0b['dataModel']);if(!_0x4375f0)return;let _0x26e2c4=_0x4375f0[_0x1e98ba(0x303)];if(!_0x26e2c4)return;let _0x561812=(0x0,r[_0x1e98ba(0x428)])(_0x26e2c4,_0x3c1894),_0x3ce2de=_0x4375f0['va']??a[_0x1e98ba(0x3c2)][_0x1e98ba(0x2e0)],_0x121a95=_0x4375f0['ha']??a[_0x1e98ba(0x20b)][_0x1e98ba(0x27b)],_0x5259cd=D(this['_props'][_0x1e98ba(0x110)][_0x1e98ba(0x3bc)](),_0x37ef0b,_0x561812),_0x3590c3=_0x37ef0b['isHorizontal'],_0x572bea=new a[(_0x1e98ba(0x21b))]((0x0,e['prepareShapeTextDocumentData'])(_0x561812,{'isHorizontal':_0x3590c3!==!0x1,'textRect':_0x27b445,'verticalAlign':_0x3ce2de,'horizontalAlign':_0x121a95,'wrapStrategy':_0x5259cd[_0x1e98ba(0xeb)]})),_0xd4f539=new c[(_0x1e98ba(0x39a))](_0x572bea),_0x45cb4b=c[_0x1e98ba(0x265)]['create'](_0xd4f539,_0x5d99f8);_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x234d0c=_0x45cb4b[_0x1e98ba(0x14d)]()[_0x1e98ba(0x358)],_0x17bad9=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x234d0c,'verticalAlign':_0x3ce2de,'viewportHeight':_0x27b445['height']});_0x572bea[_0x1e98ba(0x3ca)]({'pageSize':{'width':_0x3590c3===!0x1?_0x27b445[_0x1e98ba(0x3c5)]:_0x27b445[_0x1e98ba(0x2ad)],'height':_0x17bad9['contentHeight']}}),_0x572bea['updateDocumentDataMargin']({'t':_0x17bad9[_0x1e98ba(0x1fb)]}),_0x45cb4b[_0x1e98ba(0x3a6)]();let _0x50e48c=new c['Documents']('shape-text-'+this[_0x1e98ba(0xf4)],_0x45cb4b,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1e98ba(0x1e9)](!0x0)});_0x50e48c[_0x1e98ba(0x3c8)](_0x27b445[_0x1e98ba(0x2ad)],_0x17bad9['contentHeight']),_0x7cda5e[_0x1e98ba(0x424)](),_0x7cda5e[_0x1e98ba(0x168)](_0x27b445[_0x1e98ba(0x42e)],_0x27b445[_0x1e98ba(0x230)]),_0x5259cd[_0x1e98ba(0x17e)]&&(_0x7cda5e[_0x1e98ba(0x218)](),_0x7cda5e[_0x1e98ba(0x210)](0x0,_0x17bad9[_0x1e98ba(0x2e2)],_0x27b445['width'],_0x17bad9[_0x1e98ba(0x21f)]),_0x7cda5e[_0x1e98ba(0x17e)]()),_0x17bad9[_0x1e98ba(0x2dd)]&&_0x7cda5e[_0x1e98ba(0x168)](0x0,_0x17bad9[_0x1e98ba(0x2dd)]),_0x50e48c[_0x1e98ba(0x333)](_0x7cda5e),_0x7cda5e[_0x1e98ba(0x3e9)](),_0x50e48c[_0x1e98ba(0x1c4)](),_0x45cb4b[_0x1e98ba(0x1c4)](),_0xd4f539[_0x1e98ba(0x1c4)](),_0x572bea['dispose']();}[_0x5db5d0(0x2b8)](_0x5c1abb,_0x2c5483,_0x229aa6=!0x1){const _0x2859b1=_0x5db5d0;if(!this[_0x2859b1(0x2cc)])return this['makeDirty'](!0x1),this;let {width:_0x3a8398,height:_0x1f9bd5,left:_0x26870d,top:_0x8da84f}=this,_0x46f4cb=this['getRealBound']();if(_0x3a8398=_0x46f4cb[_0x2859b1(0x2ad)],_0x1f9bd5=_0x46f4cb[_0x2859b1(0x3c5)],_0x26870d=_0x46f4cb[_0x2859b1(0x42e)],_0x8da84f=_0x46f4cb[_0x2859b1(0x230)],this[_0x2859b1(0x2c0)](_0x2c5483)){let {top:_0x310fb3,left:_0x55fc43,bottom:_0x22a181,right:_0x2dc222}=_0x2c5483['viewBound'];if(_0x3a8398+this['strokeWidth']+_0x26870d<_0x55fc43||_0x2dc222<_0x26870d||_0x1f9bd5+this[_0x2859b1(0x2cd)]+_0x8da84f<_0x310fb3||_0x22a181<_0x8da84f)return this;}let _0x454667=_0x26870d+_0x3a8398/0x2,_0xd06746=_0x8da84f+_0x1f9bd5/0x2,_0x3f7351=this[_0x2859b1(0x32a)][_0x2859b1(0x28c)]();if(this[_0x2859b1(0xf8)][_0x2859b1(0x15b)]){let _0x12d78=this[_0x2859b1(0x389)](),_0x5a7b7b=new c[(_0x2859b1(0x1b2))]();_0x5a7b7b[_0x2859b1(0x3d4)]({..._0x12d78}),_0x3f7351=_0x5a7b7b[_0x2859b1(0x28c)]();}return _0x5c1abb['save'](),this['_props'][_0x2859b1(0x110)][_0x2859b1(0x130)]===!0x0||_0x5c1abb[_0x2859b1(0x32a)](_0x3f7351[0x0],_0x3f7351[0x1],_0x3f7351[0x2],_0x3f7351[0x3],_0x454667,_0xd06746),this[_0x2859b1(0x124)](_0x5c1abb,_0x2c5483,_0x3a8398,_0x1f9bd5),_0x5c1abb[_0x2859b1(0x3e9)](),this[_0x2859b1(0x1e9)](!0x1),this;}['getInverseCoord'](_0x4efd7b){const _0x343cfb=_0x5db5d0;let {left:_0x17e4e6,top:_0x71dc2a,width:_0x4faef4,height:_0x44fc87}=this[_0x343cfb(0x112)](),_0x171cef=this[_0x343cfb(0x32a)]['getMatrix'](),_0x34cb2c=_0x17e4e6+_0x4faef4/0x2,_0x5a1934=_0x71dc2a+_0x44fc87/0x2,_0x51db06=new c[(_0x343cfb(0x1b2))]([_0x171cef[0x0],_0x171cef[0x1],_0x171cef[0x2],_0x171cef[0x3],_0x34cb2c,_0x5a1934]),_0x19a3ed=this[_0x343cfb(0x20e)]();return(this[_0x343cfb(0x289)]&&(_0x19a3ed==null?void 0x0:_0x19a3ed[_0x343cfb(0x171)])===c[_0x343cfb(0x3b5)][_0x343cfb(0x2e4)]?_0x19a3ed[_0x343cfb(0x17c)]['multiply'](_0x51db06):_0x51db06)[_0x343cfb(0x1e2)]()[_0x343cfb(0x320)](_0x4efd7b);}[_0x5db5d0(0x1a1)](_0x1c2ba4){const _0x3c0599=_0x5db5d0;let {left:_0x324708,top:_0x562ce6,width:_0x4c4194,height:_0x338755}=this[_0x3c0599(0x112)](),_0x2414cf=_0x324708+_0x4c4194/0x2,_0x28b3a3=_0x562ce6+_0x338755/0x2,_0x1a40a2=this[_0x3c0599(0x32a)][_0x3c0599(0x28c)](),_0x1cbc5b=new c[(_0x3c0599(0x1b2))]([_0x1a40a2[0x0],_0x1a40a2[0x1],_0x1a40a2[0x2],_0x1a40a2[0x3],_0x2414cf,_0x28b3a3]),_0x4a8590=this[_0x3c0599(0x20e)](),_0xa9f75a=(this[_0x3c0599(0x289)]&&(_0x4a8590==null?void 0x0:_0x4a8590[_0x3c0599(0x171)])===c['RENDER_CLASS_TYPE'][_0x3c0599(0x2e4)]?_0x4a8590[_0x3c0599(0x17c)]['multiply'](_0x1cbc5b):_0x1cbc5b)[_0x3c0599(0x1e2)]()['applyPoint'](_0x1c2ba4),_0x107627=_0x4c4194/0x2,_0x5db5bc=_0x338755/0x2,_0x50e7cf=this[_0x3c0599(0xf8)][_0x3c0599(0x110)];return _0x50e7cf&&_0x50e7cf[_0x3c0599(0x281)]()?_0x50e7cf[_0x3c0599(0x190)](_0xa9f75a['x'],_0xa9f75a['y'],_0x4c4194,_0x338755):_0xa9f75a['x']>=-_0x107627-this['strokeWidth']/0x2&&_0xa9f75a['x']<=_0x107627+this['strokeWidth']/0x2&&_0xa9f75a['y']>=-_0x5db5bc-this['strokeWidth']/0x2&&_0xa9f75a['y']<=_0x5db5bc+this[_0x3c0599(0x2cd)]/0x2;}[_0x5db5d0(0x1c4)](){const _0x12cd32=_0x5db5d0;this['_formulaAnimation'][_0x12cd32(0x1c4)](),this[_0x12cd32(0xf8)][_0x12cd32(0x110)]=null,super[_0x12cd32(0x1c4)]();}},k=class extends c[_0x5db5d0(0x3a7)]{constructor(_0xf56d2c,_0x305645){const _0xaf7d21=_0x5db5d0;super(_0xf56d2c,_0x305645),E(this,_0xaf7d21(0x212),null),E(this,_0xaf7d21(0x191),null),E(this,_0xaf7d21(0x3d2),null),E(this,_0xaf7d21(0x23c),null),_0x305645&&this['setShapeProps'](_0x305645);}[_0x5db5d0(0x19b)](){const _0x904710=_0x5db5d0;return{'unitId':this[_0x904710(0x3d2)],'subUnitId':this[_0x904710(0x23c)],'drawingId':this['_shapeId']};}[_0x5db5d0(0x3a1)](_0x473758){const _0x56cc9a=_0x5db5d0;_0x473758[_0x56cc9a(0x340)]!==void 0x0&&(this[_0x56cc9a(0x212)]=_0x473758[_0x56cc9a(0x340)]),_0x473758[_0x56cc9a(0x24b)]!==void 0x0&&(this[_0x56cc9a(0x191)]=_0x473758['adjName']),_0x473758['unitId']!==void 0x0&&(this['_unitId']=_0x473758[_0x56cc9a(0x3bf)]),_0x473758['subUnitId']!==void 0x0&&(this[_0x56cc9a(0x23c)]=_0x473758['subUnitId']),this['transformByState']({'width':_0x473758[_0x56cc9a(0x2ad)],'height':_0x473758[_0x56cc9a(0x3c5)]});}['_draw'](_0xa5b53d){const _0x2e8898=_0x5db5d0;c['Circle']['drawWith'](_0xa5b53d,{'radius':n[_0x2e8898(0x2b4)][_0x2e8898(0x269)],'fill':n['ShapeDefaultConfig']['adjHandleFill'],'stroke':n[_0x2e8898(0x2b4)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function A(_0x2f687a,_0x26e627){return function(_0xec30c4,_0x328301){_0x26e627(_0xec30c4,_0x328301,_0x2f687a);};}function _0x29aa(_0x37f916,_0x120a0b){_0x37f916=_0x37f916-0xd6;const _0x405240=_0x4052();let _0x29aa13=_0x405240[_0x37f916];return _0x29aa13;}function j(_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92){const _0x37ea6a=_0x5db5d0;var _0x40f8eb=arguments[_0x37ea6a(0x2fb)],_0x53b233=_0x40f8eb<0x3?_0x1e3e57:_0x1a5f92===null?_0x1a5f92=Object[_0x37ea6a(0x42d)](_0x1e3e57,_0x69226):_0x1a5f92,_0x2ff7b0;if(typeof Reflect=='object'&&typeof Reflect[_0x37ea6a(0x240)]=='function')_0x53b233=Reflect[_0x37ea6a(0x240)](_0x23c08c,_0x1e3e57,_0x69226,_0x1a5f92);else{for(var _0x25054b=_0x23c08c[_0x37ea6a(0x2fb)]-0x1;_0x25054b>=0x0;_0x25054b--)(_0x2ff7b0=_0x23c08c[_0x25054b])&&(_0x53b233=(_0x40f8eb<0x3?_0x2ff7b0(_0x53b233):_0x40f8eb>0x3?_0x2ff7b0(_0x1e3e57,_0x69226,_0x53b233):_0x2ff7b0(_0x1e3e57,_0x69226))||_0x53b233);}return _0x40f8eb>0x3&&_0x53b233&&Object[_0x37ea6a(0x1af)](_0x1e3e57,_0x69226,_0x53b233),_0x53b233;}let M=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x4db8b6,_0x316a5e,_0x5e6794,_0x25eeb2,_0x19893d,_0x1b582a){const _0x8c12d1=_0x5db5d0;super(),this[_0x8c12d1(0x3b1)]=_0x4db8b6,this[_0x8c12d1(0x27f)]=_0x316a5e,this['_localeService']=_0x5e6794,this[_0x8c12d1(0x35f)]=_0x25eeb2,this[_0x8c12d1(0x241)]=_0x19893d,this[_0x8c12d1(0x127)]=_0x1b582a,E(this,_0x8c12d1(0x300),new Map()),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x127)][_0x8c12d1(0x2bb)]['subscribe'](_0xc4d221=>{const _0x557b0b=_0x8c12d1;var _0x270187;(_0x270187=this[_0x557b0b(0x300)][_0x557b0b(0x3b6)](this[_0x557b0b(0x153)](_0xc4d221[_0x557b0b(0x3bf)],_0xc4d221[_0x557b0b(0x20a)],_0xc4d221[_0x557b0b(0x340)])))==null||_0x270187[_0x557b0b(0xe5)](_0x5d4c91=>_0x5d4c91[_0x557b0b(0x3da)](_0xc4d221['presentation'],_0xc4d221['animationEnabled']));})),this[_0x8c12d1(0x17d)](this[_0x8c12d1(0x3b1)][_0x8c12d1(0x386)][_0x8c12d1(0x426)](_0x40e0a8=>{_0x40e0a8['forEach'](_0x20ee3e=>{const _0x7e68aa=_0x29aa;this['_shapeFormulaService'][_0x7e68aa(0x178)]({'unitId':_0x20ee3e[_0x7e68aa(0x3bf)],'subUnitId':_0x20ee3e[_0x7e68aa(0x20a)],'shapeId':_0x20ee3e[_0x7e68aa(0x3e3)]}),this[_0x7e68aa(0x300)]['delete'](this['_formulaKey'](_0x20ee3e[_0x7e68aa(0x3bf)],_0x20ee3e[_0x7e68aa(0x20a)],_0x20ee3e['drawingId']));});}));}['renderDrawingShape'](_0x2c29bd,_0x21b00e,_0x2ee512){const _0x47f69f=_0x5db5d0;let {transform:_0x263f1c,drawingType:_0x399f49,srcRect:_0x540ae2,prstGeom:_0x48e809,groupId:_0x96640e,unitId:_0x4d0c53,subUnitId:_0x177163,drawingId:_0x3aa03b,isMultiTransform:_0x12bc90,transforms:_0x89bcf8,hidden:_0x21543c,selectable:_0x6d0fde}=_0x2c29bd;if(_0x399f49!==a[_0x47f69f(0x3e6)][_0x47f69f(0x19d)]||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]()||_0x263f1c==null)return;let _0x20a8ea=this[_0x47f69f(0x3b1)][_0x47f69f(0x233)](),_0x51bc3f=_0x12bc90&&_0x89bcf8?_0x89bcf8:[_0x263f1c],_0x5c5cd9=[];for(let _0x201d27 of _0x51bc3f){let {left:_0x201d3a,top:_0x558ef8,width:_0x463687,height:_0xaed204,angle:_0x19cbac,flipX:_0x225d21,flipY:_0x1c7058,skewX:_0x448fca,skewY:_0x4a4f92}=_0x201d27,_0x34a8d9=_0x51bc3f['indexOf'](_0x201d27),_0x2c8347=(0x0,s[_0x47f69f(0x1f8)])({'unitId':_0x4d0c53,'subUnitId':_0x177163,'drawingId':_0x3aa03b},_0x12bc90?_0x34a8d9:void 0x0),_0x438dfc=_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347);if(_0x438dfc!=null){let _0x54c8fe={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x438dfc instanceof O&&this['refreshFormulaPresentation'](_0x438dfc,_0x54c8fe),_0x438dfc['transformByState']({'left':_0x201d3a,'top':_0x558ef8,'width':_0x463687,'height':_0xaed204,'angle':_0x19cbac,'flipX':_0x225d21,'flipY':_0x1c7058,'skewX':_0x448fca,'skewY':_0x4a4f92});continue;}let _0x1d1fe2=this[_0x47f69f(0x3b1)]['getDrawingOrder'](_0x4d0c53,_0x177163),_0x8a569b=_0x1d1fe2[_0x47f69f(0x345)](_0x3aa03b);if(_0x21b00e[_0x47f69f(0x1d5)](_0x2c8347)||!this[_0x47f69f(0x3b1)][_0x47f69f(0x409)]())continue;let _0x234a10=this[_0x47f69f(0x27f)][_0x47f69f(0x11e)](_0x4d0c53,_0x177163,_0x3aa03b);if(!_0x234a10)continue;let _0xbc268=(0x0,n[_0x47f69f(0x2b3)])(_0x234a10[_0x47f69f(0x2fa)]())?{...e[_0x47f69f(0x331)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x47f69f(0x331)],_0x5ea7b0=_0x234a10['getShapeData']()['formulaBinding'],_0x24697f={'unitId':_0x4d0c53,'subUnitId':_0x177163,'shapeId':_0x3aa03b};_0x5ea7b0&&this['_shapeFormulaService'][_0x47f69f(0x3f3)](_0x24697f,_0x5ea7b0);let _0x246e1f=new O(_0x2c8347,{..._0x201d27,'zIndex':_0x8a569b===-0x1?_0x1d1fe2['length']-0x1:_0x8a569b,'shapeModel':_0x234a10,'localeService':this[_0x47f69f(0x272)],'shapeId':_0x3aa03b,'unitId':_0x4d0c53,'subUnitId':_0x177163,'visible':_0x21543c!==!0x0,'evented':_0x6d0fde!==!0x1,'formulaPresentation':_0x5ea7b0?this[_0x47f69f(0x127)]['getPresentation'](_0x24697f):void 0x0,'animateFormulaPresentation':(_0x5ea7b0==null?void 0x0:_0x5ea7b0['animationEnabled'])!==!0x1,'transformerConfig':_0xbc268});if(_0x5ea7b0){let _0x5e4e8e=this[_0x47f69f(0x153)](_0x4d0c53,_0x177163,_0x3aa03b),_0x3fe4d4=this['_formulaShapes']['get'](_0x5e4e8e)??new Set();_0x3fe4d4[_0x47f69f(0x381)](_0x246e1f),this[_0x47f69f(0x300)]['set'](_0x5e4e8e,_0x3fe4d4);}_0x21b00e[_0x47f69f(0x251)](_0x246e1f,c[_0x47f69f(0x3a9)]),_0x20a8ea&&_0x21b00e[_0x47f69f(0x125)](_0x246e1f),_0x96640e&&(0x0,d[_0x47f69f(0x193)])({'drawingId':_0x96640e,'unitId':_0x4d0c53,'subUnitId':_0x177163},_0x246e1f,_0x21b00e,this['_drawingManagerService']),_0x48e809!=null&&_0x246e1f[_0x47f69f(0x2d4)](_0x48e809),_0x540ae2!=null&&_0x246e1f[_0x47f69f(0x30d)](_0x540ae2);let _0x5f1371=this[_0x47f69f(0x1d1)](_0x246e1f,_0x234a10[_0x47f69f(0x3bc)]());if(_0x5f1371){var _0x4c0b72;_0x2ee512==null||(_0x4c0b72=_0x2ee512[_0x47f69f(0x359)])==null||_0x4c0b72[_0x47f69f(0x381)](_0x5f1371);}_0x5c5cd9[_0x47f69f(0x1bd)](_0x246e1f);}return _0x5c5cd9;}['_formulaKey'](_0x46e290,_0x1cc3af,_0xe0b4be){return _0x46e290+'\x00'+_0x1cc3af+'\x00'+_0xe0b4be;}[_0x5db5d0(0x1ce)](_0x32c773,_0x37b41e){const _0xf51cd1=_0x5db5d0;let _0x1d53af=this['_sheetsShapeService'][_0xf51cd1(0x11e)](_0x37b41e[_0xf51cd1(0x3bf)],_0x37b41e['subUnitId'],_0x37b41e[_0xf51cd1(0x340)]),_0x12661a=_0x1d53af==null?void 0x0:_0x1d53af[_0xf51cd1(0x3bc)]()['formulaBinding'],_0x388763=this['_formulaKey'](_0x37b41e['unitId'],_0x37b41e[_0xf51cd1(0x20a)],_0x37b41e['shapeId']);if(_0x12661a){this['_shapeFormulaService']['register'](_0x37b41e,_0x12661a);let _0x59a433=this['_formulaShapes'][_0xf51cd1(0x3b6)](_0x388763)??new Set();_0x59a433[_0xf51cd1(0x381)](_0x32c773),this['_formulaShapes'][_0xf51cd1(0x2d9)](_0x388763,_0x59a433);}else{var _0x56409e;this[_0xf51cd1(0x127)][_0xf51cd1(0x178)](_0x37b41e),(_0x56409e=this[_0xf51cd1(0x300)]['get'](_0x388763))==null||_0x56409e[_0xf51cd1(0x109)](_0x32c773);}_0x32c773[_0xf51cd1(0x3da)](_0x12661a?this['_shapeFormulaService'][_0xf51cd1(0x229)](_0x37b41e):void 0x0,(_0x12661a==null?void 0x0:_0x12661a['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x22df70){const _0x5511c8=_0x5db5d0;let _0x329b75=_0x22df70[_0x5511c8(0x110)][_0x5511c8(0x3bc)](),_0x143534=_0x329b75[_0x5511c8(0x31b)];if(!_0x143534||_0x143534[_0x5511c8(0x2fe)]!==n[_0x5511c8(0x392)]['PictureFill']||!_0x143534[_0x5511c8(0x156)]){_0x22df70['setFillImage'](void 0x0);return;}this[_0x5511c8(0x1d1)](_0x22df70,_0x329b75);}['_loadShapePictureFill'](_0x35330c,_0x5f0f86){const _0x187c25=_0x5db5d0;let _0x290a4b=_0x5f0f86[_0x187c25(0x31b)];if(!_0x290a4b||_0x290a4b[_0x187c25(0x2fe)]!==n['ShapeFillEnum'][_0x187c25(0x2ef)]||!_0x290a4b[_0x187c25(0x156)])return;let _0xc7c73e=_0x290a4b['fillImageSource'],_0x4f79a7=_0x290a4b[_0x187c25(0x23e)]??n[_0x187c25(0x315)]['URL'],_0x3377db=this[_0x187c25(0x35f)][_0x187c25(0x254)](_0xc7c73e,_0x4f79a7);if(_0x3377db){_0x35330c[_0x187c25(0x2a3)](_0x3377db);return;}return this['_loadAndSetImage'](_0x35330c,_0xc7c73e,_0x4f79a7);}async[_0x5db5d0(0x304)](_0x47d264,_0x1df2a2,_0x38d1ce){const _0x37a69a=_0x5db5d0;let _0x23dd12;try{if(_0x38d1ce===n['ImageSourceTypeEnum'][_0x37a69a(0x12b)])_0x23dd12=await this['_imageIoService'][_0x37a69a(0x227)](_0x1df2a2);else{if(_0x38d1ce===n[_0x37a69a(0x315)]['URL'])try{_0x23dd12=await this[_0x37a69a(0x241)]['getImage'](_0x1df2a2);}catch{_0x23dd12=_0x1df2a2;}else _0x23dd12=_0x1df2a2;}}catch(_0x2a931a){console[_0x37a69a(0x3d3)](_0x37a69a(0x3ac),_0x2a931a);return;}await new Promise(_0x50863a=>{const _0x22e817=_0x37a69a;let _0x2a3dae=new window[(_0x22e817(0x40b))]();_0x2a3dae[_0x22e817(0x138)]=()=>{const _0x5ec262=_0x22e817;this[_0x5ec262(0x35f)]['addImageSourceCache'](_0x1df2a2,_0x38d1ce,_0x2a3dae),_0x47d264[_0x5ec262(0x2a3)](_0x2a3dae),_0x50863a();},_0x2a3dae['onerror']=()=>{const _0x6431a8=_0x22e817;console[_0x6431a8(0x3d3)]('[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image',_0x1df2a2),_0x50863a();},_0x2a3dae[_0x22e817(0x264)]=_0x23dd12;});}};M=j([A(0x0,s[_0x5db5d0(0x10d)]),A(0x1,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x3,a[_0x5db5d0(0x1ba)]),A(0x4,a[_0x5db5d0(0x3be)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(r[_0x5db5d0(0x18a)]))],M);let N=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x5c236e,_0x579f43,_0x9b882b,_0x5724e3,_0x1d261c,_0x383cde){const _0xc56a17=_0x5db5d0;super(),this['_drawingManagerService']=_0x5c236e,this[_0xc56a17(0x27f)]=_0x579f43,this[_0xc56a17(0x104)]=_0x9b882b,this[_0xc56a17(0x2ec)]=_0x5724e3,this[_0xc56a17(0x12c)]=_0x1d261c,this[_0xc56a17(0x1ad)]=_0x383cde,E(this,_0xc56a17(0x296),null),E(this,_0xc56a17(0x3d2),null),E(this,'_subUnitId',null),E(this,'_activeShapeAdjustPointList',void 0x0),E(this,_0xc56a17(0x221),[]),E(this,_0xc56a17(0x260),0x0),E(this,'_baseShapeTop',0x0),E(this,'_baseShapeWidth',0x0),E(this,_0xc56a17(0xe0),0x0),E(this,'_isStartAdjusting',!0x1),E(this,_0xc56a17(0x1f6),void 0x0),E(this,_0xc56a17(0x258),void 0x0),E(this,_0xc56a17(0x173),void 0x0),E(this,_0xc56a17(0x29d),void 0x0),E(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0xc56a17(0x37c)](),this[_0xc56a17(0x21c)]();}[_0x5db5d0(0x3e1)](_0x301574,_0x1e386d,_0x266bc8){const _0x2b3933=_0x5db5d0;let _0x3befdd=this[_0x2b3933(0x27f)]['getShapeModel'](_0x301574,_0x1e386d,_0x266bc8);if(_0x3befdd)return _0x3befdd[_0x2b3933(0x123)]();}['clearAdjustControls'](){const _0x171b5d=_0x5db5d0;this[_0x171b5d(0x2c3)]();}[_0x5db5d0(0x40f)](){const _0x4735d3=_0x5db5d0;this[_0x4735d3(0xdc)](!0x0);}[_0x5db5d0(0x1de)](_0x197ef2){const _0x548990=_0x5db5d0;this[_0x548990(0x376)]=_0x197ef2;}[_0x5db5d0(0x3f6)](_0x13c892,_0x5c70f7,_0x24cc91,_0xeacddd){const _0x4a6867=_0x5db5d0;let _0x42933d=this[_0x4a6867(0x27f)]['getShapeModel'](_0x13c892,_0x5c70f7,_0x24cc91);if(_0x42933d)return _0x42933d[_0x4a6867(0x2af)](_0xeacddd);}[_0x5db5d0(0x13d)](_0x3ddbf5=!0x1){const _0x299ef7=_0x5db5d0;if(this[_0x299ef7(0x3d2)]===null||this[_0x299ef7(0x23c)]===null||this[_0x299ef7(0x296)]===null)return;let _0x2e7952=this['_renderManagerService'][_0x299ef7(0x2c4)](this['_unitId']);if(!_0x2e7952||!_0x2e7952[_0x299ef7(0x35a)](l[_0x299ef7(0x364)])['getCurrentSkeleton']())return;let {scene:_0xadea2b}=_0x2e7952,_0x59dec1={'unitId':this[_0x299ef7(0x3d2)],'subUnitId':this[_0x299ef7(0x23c)],'drawingId':this['_activeShapeId']},_0x5b09e0=this[_0x299ef7(0x3b1)]['getDrawingByParam'](_0x59dec1),{transform:_0x1992ae}=_0x5b09e0;if(!_0x1992ae||_0x5b09e0['drawingType']!==a[_0x299ef7(0x3e6)][_0x299ef7(0x19d)])return;let {left:_0x37cf2e,top:_0x3ddaf3,width:_0xca45ef,height:_0x2057ac,flipX:_0x1a04e9,flipY:_0x4a814f,angle:_0x1f46c6=0x0}=_0x1992ae;if(_0x37cf2e===void 0x0||_0x3ddaf3===void 0x0)return;if(_0x3ddbf5){let _0x4e46fe=this['_sheetsShapeService'][_0x299ef7(0x11e)](this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)],this[_0x299ef7(0x296)]);_0x4e46fe==null||_0x4e46fe[_0x299ef7(0x141)]({'width':_0xca45ef??0x0,'height':_0x2057ac??0x0}),this[_0x299ef7(0x12a)]=_0x4e46fe==null?void 0x0:_0x4e46fe[_0x299ef7(0x123)]();}let _0x4dcde1=this['_activeShapeAdjustPointList'];for(let _0x4ff21b=0x0;_0x4ff21b<_0x4dcde1['length'];_0x4ff21b++){let _0x2d3e71=_0x4dcde1[_0x4ff21b],_0x8411bc=_0x2d3e71['x'],_0x2879c6=_0x2d3e71['y'];if(_0x1a04e9&&(_0x8411bc=(_0xca45ef||0x0)-_0x8411bc),_0x4a814f&&(_0x2879c6=(_0x2057ac||0x0)-_0x2879c6),_0x1f46c6!==0x0){let _0x121a4e=(_0xca45ef||0x0)/0x2,_0x1fe6d0=(_0x2057ac||0x0)/0x2,_0x5710bd=_0x1f46c6*Math['PI']/0xb4,_0x48a62a=Math[_0x299ef7(0x39e)](_0x5710bd),_0x5b3ef9=Math[_0x299ef7(0x407)](_0x5710bd),_0x4e6f0d=_0x8411bc-_0x121a4e,_0x56a61c=_0x2879c6-_0x1fe6d0;_0x8411bc=_0x121a4e+(_0x4e6f0d*_0x48a62a-_0x56a61c*_0x5b3ef9),_0x2879c6=_0x1fe6d0+(_0x4e6f0d*_0x5b3ef9+_0x56a61c*_0x48a62a);}let _0x1fd709={'x':_0x8411bc,'y':_0x2879c6,'adjName':_0x2d3e71[_0x299ef7(0x24b)]};this[_0x299ef7(0x1a4)](_0xadea2b,_0x1fd709,_0x1fd709['adjName'],_0x37cf2e,_0x3ddaf3,this[_0x299ef7(0x3d2)],this[_0x299ef7(0x23c)]);}}[_0x5db5d0(0xdc)](_0x5352f3=!0x1){const _0x502400=_0x5db5d0;_0x5352f3&&(this[_0x502400(0x2c3)](),this['_createShapeAdjustControls'](_0x5352f3));}['_addShapeAdjustControl'](_0x50b39f,_0x4a2bcf,_0x26cadb,_0x17ee47,_0x15feea,_0x1cbbc1,_0x9d6fe6){const _0x593433=_0x5db5d0;if(!this[_0x593433(0x296)])return;let _0x169b6e=_0x50b39f['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0x593433(0x296)]+'-'+_0x26cadb);if(_0x169b6e){_0x169b6e['transformByState']({'left':_0x4a2bcf['x']+_0x17ee47-n[_0x593433(0x2b4)]['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)]['adjHandleSize']});return;}let _0x25ee1c={'left':_0x4a2bcf['x']+_0x17ee47-n['ShapeDefaultConfig']['adjHandleSize'],'top':_0x4a2bcf['y']+_0x15feea-n[_0x593433(0x2b4)][_0x593433(0x269)],'adjName':_0x26cadb,'shapeId':this[_0x593433(0x296)],'unitId':_0x1cbbc1,'subUnitId':_0x9d6fe6,'width':n[_0x593433(0x2b4)][_0x593433(0x269)]+0x8,'height':n[_0x593433(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0},_0x35ab7d=new k(_0x593433(0x2a5)+this['_activeShapeId']+'-'+_0x26cadb,_0x25ee1c);this[_0x593433(0x221)][_0x593433(0x1bd)](_0x35ab7d),this[_0x593433(0x139)](_0x35ab7d,_0x50b39f,_0x26cadb),_0x50b39f[_0x593433(0x251)](_0x35ab7d,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x5db5d0(0x2c3)](){const _0x4e40d3=_0x5db5d0;this[_0x4e40d3(0x221)][_0x4e40d3(0x2fb)]!==0x0&&(this[_0x4e40d3(0x221)][_0x4e40d3(0xe5)](_0x4e2fa4=>{const _0x353fde=_0x4e40d3;_0x4e2fa4[_0x353fde(0x1c4)]();}),this[_0x4e40d3(0x221)]=[]);}['_updateAdjustControlPositions'](){const _0x56d7a0=_0x5db5d0;this[_0x56d7a0(0x13d)]();}['_getScrollInfo'](_0x3b23f6,_0x232853){const _0x4c16c9=_0x5db5d0;var _0x5d4003;let _0x11a200={'x':0x0,'y':0x0};if(!_0x3b23f6||!_0x232853)return _0x11a200;let _0x2d7585=this[_0x4c16c9(0x104)][_0x4c16c9(0x2c4)](_0x3b23f6);if(!_0x2d7585||!_0x2d7585[_0x4c16c9(0x35a)](l[_0x4c16c9(0x364)])[_0x4c16c9(0x23a)](_0x232853))return _0x11a200;let _0x50ecd6=_0x2d7585[_0x4c16c9(0x35a)](l['SheetScrollManagerService']),_0x270279=_0x50ecd6==null?void 0x0:_0x50ecd6[_0x4c16c9(0x2ac)]();if(!_0x270279)return _0x11a200;let _0x52f3bb=(_0x5d4003=this[_0x4c16c9(0x12c)][_0x4c16c9(0x1ae)](_0x3b23f6))==null?void 0x0:_0x5d4003[_0x4c16c9(0x26d)](_0x232853);if(!_0x52f3bb)return _0x11a200;let _0x40f816=(0x0,l[_0x4c16c9(0x404)])(_0x270279[_0x4c16c9(0x1a5)],_0x270279[_0x4c16c9(0x149)],_0x2d7585['scene'],_0x52f3bb);return _0x40f816?{'x':_0x40f816[_0x4c16c9(0xd6)],'y':_0x40f816[_0x4c16c9(0x370)]}:_0x11a200;}[_0x5db5d0(0x34f)](_0x4be629,_0xb46b70){const _0x2dbb67=_0x5db5d0;var _0x645bf6;let _0x46efc9=(_0x645bf6=this[_0x2dbb67(0x12c)][_0x2dbb67(0x1ae)](_0x4be629))==null?void 0x0:_0x645bf6[_0x2dbb67(0x26d)](_0xb46b70);return(_0x46efc9==null?void 0x0:_0x46efc9[_0x2dbb67(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x3d2b32,_0xf53558,_0xb5a46f){const _0x9f67dd=_0x5db5d0;this[_0x9f67dd(0x17d)]((0x0,a[_0x9f67dd(0x105)])(_0x3d2b32[_0x9f67dd(0x1c2)][_0x9f67dd(0x151)]((_0x5a49f0,_0x42076d)=>{const _0x816f93=_0x9f67dd;var _0x3804a1,_0x2da439,_0x4a1659,_0x453ae5;let _0x4ac962=_0x3d2b32['getDrawingSearch']();this[_0x816f93(0x1f6)]=this[_0x816f93(0x3f6)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)],_0xb5a46f),this['_activeShapeModel']=this[_0x816f93(0x27f)][_0x816f93(0x11e)](_0x4ac962['unitId'],_0x4ac962[_0x816f93(0x20a)],_0x4ac962[_0x816f93(0x3e3)]);let _0x4cc543=this[_0x816f93(0x3b1)][_0x816f93(0x15a)]({'unitId':this[_0x816f93(0x3d2)],'subUnitId':this[_0x816f93(0x23c)],'drawingId':this[_0x816f93(0x296)]}),{transform:_0x413e37}=_0x4cc543;if(_0x413e37){let {left:_0x489923,top:_0x47f467,width:_0x59170d,height:_0x42017b}=_0x413e37;this[_0x816f93(0x260)]=_0x489923||0x0,this[_0x816f93(0x423)]=_0x47f467||0x0,this[_0x816f93(0x2b6)]=_0x59170d||0x0,this[_0x816f93(0xe0)]=_0x42017b||0x0;}let _0x25dc2f=!!((_0x3804a1=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x3804a1['flipX']),_0x307f8b=!!((_0x2da439=_0x4cc543[_0x816f93(0x32a)])!=null&&_0x2da439[_0x816f93(0xef)]),_0x70b56a=((_0x4a1659=_0x4cc543[_0x816f93(0x32a)])==null?void 0x0:_0x4a1659[_0x816f93(0x3ed)])||0x0;this['_isStartAdjusting']=!0x0,_0xf53558['disableObjectsEvent']();let _0x4d1d2e={...((_0x453ae5=this[_0x816f93(0x1f6)])==null?void 0x0:_0x453ae5[_0x816f93(0x1f9)])??{}};this['_adjHandlerPointerMove']=_0xf53558[_0x816f93(0x1b5)][_0x816f93(0x151)]((_0x1d69ac,_0x935fa9)=>{const _0x3621b4=_0x816f93;if(!this['_isStartAdjusting'])return;let {offsetX:_0x26489f,offsetY:_0x576114}=_0x1d69ac,_0x294eef=this[_0x3621b4(0x1f6)];if(this['_activeShapeModel']&&_0x294eef){_0xf53558[_0x3621b4(0x2a1)](),_0xf53558[_0x3621b4(0x27d)](c[_0x3621b4(0x30f)]['CROSSHAIR']);let _0x4801fb={'left':0x0,'top':0x0,'width':this[_0x3621b4(0x2b6)],'height':this[_0x3621b4(0xe0)]},_0x21096d=this[_0x3621b4(0x245)](this['_unitId'],this[_0x3621b4(0x23c)]),_0x3ad485=this[_0x3621b4(0x34f)](this[_0x3621b4(0x3d2)],this['_subUnitId']),_0x3ca882=_0x26489f/_0x3ad485+_0x21096d['x']-this[_0x3621b4(0x260)],_0x122ec7=_0x576114/_0x3ad485+_0x21096d['y']-this[_0x3621b4(0x423)];if(_0x70b56a!==0x0){let _0x2d0f34=this[_0x3621b4(0x2b6)]/0x2,_0x24bf47=this['_baseShapeHeight']/0x2,_0x3e10d1=_0x70b56a*Math['PI']/0xb4,_0x5717c3=Math[_0x3621b4(0x39e)](_0x3e10d1),_0x355475=Math[_0x3621b4(0x407)](_0x3e10d1),_0x353c07=_0x3ca882-_0x2d0f34,_0x2dcf4d=_0x122ec7-_0x24bf47;_0x3ca882=_0x2d0f34+(_0x353c07*_0x5717c3+_0x2dcf4d*_0x355475),_0x122ec7=_0x24bf47+(-_0x353c07*_0x355475+_0x2dcf4d*_0x5717c3);}_0x25dc2f&&(_0x3ca882=this[_0x3621b4(0x2b6)]-_0x3ca882),_0x307f8b&&(_0x122ec7=this[_0x3621b4(0xe0)]-_0x122ec7);let _0x475cae={'x':_0x3ca882,'y':_0x122ec7},_0x49589f=this[_0x3621b4(0x258)][_0x3621b4(0xe2)](_0x4801fb,_0x475cae,_0x294eef,_0x25dc2f,_0x307f8b);if(Object[_0x3621b4(0x29c)](_0x49589f)[_0x3621b4(0x2fb)]===0x0)return;for(let [_0x3202ff,_0x1cbd78]of Object['entries'](_0x49589f))this['_activeShapeModel'][_0x3621b4(0x19a)](_0x3202ff,_0x1cbd78);this['_activeShapeModel'][_0x3621b4(0x141)]({'width':this[_0x3621b4(0x2b6)],'height':this['_baseShapeHeight']});let _0x59d2b1=this[_0x3621b4(0x3b1)][_0x3621b4(0x15a)]({'unitId':_0x4ac962[_0x3621b4(0x3bf)],'subUnitId':_0x4ac962[_0x3621b4(0x20a)],'drawingId':_0x4ac962[_0x3621b4(0x3e3)]});_0x59d2b1&&(this['_sheetDrawingShapeRenderController'][_0x3621b4(0x308)](_0x59d2b1,_0xf53558),this[_0x3621b4(0x12a)]=this['_getShapeAdjustPointListById'](_0x4ac962[_0x3621b4(0x3bf)],_0x4ac962['subUnitId'],_0x4ac962[_0x3621b4(0x3e3)]),this[_0x3621b4(0x2d6)]());}_0x935fa9[_0x3621b4(0x15f)]();}),this[_0x816f93(0x29d)]=_0xf53558['onPointerUp$'][_0x816f93(0x151)]((_0x2b7ab4,_0xa2664)=>{const _0x5ebef2=_0x816f93;this[_0x5ebef2(0x173)]['unsubscribe'](),this[_0x5ebef2(0x29d)][_0x5ebef2(0x284)](),_0xf53558[_0x5ebef2(0x338)]();let _0x5dd987=this[_0x5ebef2(0x1f6)];if(_0x5dd987){let _0x21a7c4=_0x4ac962[_0x5ebef2(0x3bf)],_0x4ff9d9=_0x4ac962[_0x5ebef2(0x20a)],_0x5b4677=_0x4ac962['drawingId'],_0x76a23d={};for(let _0x3d0125 of Object[_0x5ebef2(0x29c)](_0x5dd987['currentAdjustValues'])){var _0x10a983;let _0x326f02=(_0x10a983=this[_0x5ebef2(0x258)])==null?void 0x0:_0x10a983[_0x5ebef2(0xd7)](_0x3d0125);_0x326f02!==void 0x0&&(_0x76a23d[_0x3d0125]=_0x326f02);}Object['keys'](_0x76a23d)[_0x5ebef2(0x2fb)]>0x0&&C(this[_0x5ebef2(0x1ad)],_0x21a7c4,_0x4ff9d9,_0x5b4677,{'oldShapeData':{'adjustValues':_0x4d1d2e}},{'adjustValues':_0x76a23d});}this['_activeAdjustInfo']=void 0x0,this[_0x5ebef2(0x258)]=void 0x0,this[_0x5ebef2(0x182)]=!0x1,_0xa2664[_0x5ebef2(0x15f)](),_0xf53558['enableObjectsEvent']();}),_0x42076d['stopPropagation']();})));}[_0x5db5d0(0x21c)](){const _0x27b35d=_0x5db5d0;let _0x1053bf=this[_0x27b35d(0x12c)][_0x27b35d(0x384)](a['UniverInstanceType']['UNIVER_SHEET']);this[_0x27b35d(0x17d)](_0x1053bf[_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x2b3c05=>_0x2b3c05?_0x2b3c05['activeSheet$'][_0x27b35d(0x402)]((0x0,u[_0x27b35d(0x177)])(_0x1c7c8c=>{const _0xa4997b=_0x27b35d;if(!_0x1c7c8c)return u['EMPTY'];let _0x38ff5c=_0x2b3c05[_0xa4997b(0x2d1)](),_0x335224=this[_0xa4997b(0x104)]['getRenderUnitById'](_0x38ff5c),_0x3b45e3=_0x335224==null?void 0x0:_0x335224[_0xa4997b(0x2e7)];return _0x3b45e3?(0x0,u['of'])(_0x3b45e3):u[_0xa4997b(0x395)];})):u['EMPTY']))[_0x27b35d(0x426)](_0x34b92d=>{const _0x3d3671=_0x27b35d;let _0x300cfb=_0x34b92d[_0x3d3671(0x3cb)]();this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x1b5)][_0x3d3671(0x151)](()=>{const _0x31a611=_0x3d3671;this[_0x31a611(0x376)];})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x328)][_0x3d3671(0x426)](_0x353937=>{const _0x2357a0=_0x3d3671;let {objects:_0x3316ff}=_0x353937;this[_0x2357a0(0x13d)](),_0x3316ff!==null&&_0x3316ff['size']===0x1&&_0x3316ff[_0x2357a0(0x3ae)]()[_0x2357a0(0x430)]()[_0x2357a0(0x30b)]instanceof O&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x300cfb['changing$'][_0x3d3671(0x426)](()=>{const _0xb9e001=_0x3d3671;this[_0xb9e001(0x376)]&&this[_0xb9e001(0x2c3)]();})),this[_0x3d3671(0x17d)](_0x34b92d[_0x3d3671(0x369)]['subscribeEvent'](()=>{const _0x26b0c5=_0x3d3671;this[_0x26b0c5(0x376)]&&(this[_0x26b0c5(0x1de)](!0x1),this[_0x26b0c5(0x13d)]());})),this[_0x3d3671(0x17d)](_0x300cfb[_0x3d3671(0x3f8)][_0x3d3671(0x426)](()=>{const _0x3e779b=_0x3d3671;this[_0x3e779b(0x3d2)]&&this[_0x3e779b(0x23c)]&&this['_activeShapeId']&&this['_drawingManagerService'][_0x3e779b(0x15a)]({'unitId':this['_unitId'],'subUnitId':this[_0x3e779b(0x23c)],'drawingId':this['_activeShapeId']})&&(this[_0x3e779b(0x12a)]=this[_0x3e779b(0x3e1)](this[_0x3e779b(0x3d2)],this[_0x3e779b(0x23c)],this[_0x3e779b(0x296)]),this[_0x3e779b(0x2d6)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x28bd44=_0x5db5d0;this[_0x28bd44(0x17d)](this[_0x28bd44(0x1ad)][_0x28bd44(0x1aa)](_0x594085=>{const _0xea327=_0x28bd44;if(_0x594085['id']!==i[_0xea327(0x244)]['id'])return;let {unitId:_0xdf8a2a,subUnitId:_0x391fab,shapeId:_0x302d3a}=_0x594085['params'];_0xdf8a2a===this['_unitId']&&_0x391fab===this[_0xea327(0x23c)]&&_0x302d3a===this['_activeShapeId']&&this[_0xea327(0x40f)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x344)][_0x28bd44(0x426)](_0x4f7843=>{const _0x5627f1=_0x28bd44;if(_0x4f7843[_0x5627f1(0x2fb)]===0x1){let _0x21596c=_0x4f7843[0x0];if(_0x21596c[_0x5627f1(0x3c1)]===a[_0x5627f1(0x3e6)][_0x5627f1(0x19d)]&&this[_0x5627f1(0x12c)][_0x5627f1(0x16c)](_0x21596c['unitId'])===a[_0x5627f1(0x400)]['UNIVER_SHEET']){this[_0x5627f1(0x296)]=_0x21596c[_0x5627f1(0x3e3)];let {unitId:_0x1acd31,subUnitId:_0x22137d}=_0x21596c;this[_0x5627f1(0x12a)]=this[_0x5627f1(0x3e1)](_0x1acd31,_0x22137d,this[_0x5627f1(0x296)]),this[_0x5627f1(0x3d2)]=_0x1acd31,this[_0x5627f1(0x23c)]=_0x22137d,this[_0x5627f1(0x2c3)](),this[_0x5627f1(0x13d)]();return;}}this[_0x5627f1(0x296)]=null,this[_0x5627f1(0x12a)]=void 0x0,this['_unitId']=null,this[_0x5627f1(0x23c)]=null,this[_0x5627f1(0x2c3)]();})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)]['update$']['subscribe'](_0x5bb939=>{const _0x1d6c36=_0x28bd44;if(_0x5bb939[_0x1d6c36(0x2fb)]===0x1){var _0x5c2a26;let _0x62c74=_0x5bb939[0x0];((_0x5c2a26=this['_drawingManagerService'][_0x1d6c36(0x15a)](_0x62c74))==null?void 0x0:_0x5c2a26[_0x1d6c36(0x3c1)])===a['DrawingTypeEnum'][_0x1d6c36(0x19d)]&&this[_0x1d6c36(0xdc)](!0x0);}})),this[_0x28bd44(0x17d)](this[_0x28bd44(0x3b1)][_0x28bd44(0x386)][_0x28bd44(0x426)](_0x59a964=>{const _0x282dc0=_0x28bd44;for(let _0x5e9ffa of _0x59a964)this[_0x282dc0(0x296)]===_0x5e9ffa[_0x282dc0(0x3e3)]&&(this[_0x282dc0(0x296)]=null,this[_0x282dc0(0x12a)]=void 0x0,this['_unitId']=null,this[_0x282dc0(0x23c)]=null,this[_0x282dc0(0x2c3)]());}));}};N=j([A(0x0,s['IDrawingManagerService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(i['SheetsShapeService'])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c['IRenderManagerService'])),A(0x3,(0x0,a['Inject'])(M)),A(0x4,a['IUniverInstanceService']),A(0x5,a['ICommandService'])],N);const P={'id':_0x5db5d0(0x297),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x3b03a1,_0x23a133)=>{const _0x34da4e=_0x5db5d0;let _0x1b6340=_0x3b03a1[_0x34da4e(0x3b6)](s[_0x34da4e(0x10d)]),_0x2b0804=_0x3b03a1['get'](c[_0x34da4e(0x226)]),_0x50cb7d=_0x3b03a1[_0x34da4e(0x3b6)](N);if(_0x23a133==null)return!0x0;if(_0x23a133['length']>0x0){var _0x513da0;let _0x2a166a=(_0x513da0=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null?void 0x0:_0x513da0[_0x34da4e(0x2e7)];if(_0x2a166a){let {unitId:_0x1bc30c,subUnitId:_0x371878,drawingId:_0x23a108}=_0x23a133[0x0],_0x5138f8=(0x0,s[_0x34da4e(0x1f8)])({'unitId':_0x1bc30c,'subUnitId':_0x371878,'drawingId':_0x23a108},void 0x0),_0x2c8281=_0x2a166a[_0x34da4e(0x1d5)](_0x5138f8);if(_0x2c8281){var _0x26e28c;(_0x26e28c=_0x2b0804['getRenderUnitById'](_0x23a133[0x0][_0x34da4e(0x3bf)]))==null||(_0x26e28c=_0x26e28c['scene']['getTransformer']())==null||_0x26e28c[_0x34da4e(0x1c7)](_0x2c8281);}}_0x1b6340[_0x34da4e(0x3aa)](_0x23a133),_0x50cb7d[_0x34da4e(0x1de)](!0x1);}return!0x0;}},F={'type':a['CommandType']['COMMAND'],'id':_0x5db5d0(0x3c4),'handler':async(_0x4380b2,_0x16ab60)=>{const _0x58c4e0=_0x5db5d0;let _0x531f2b=(0x0,o[_0x58c4e0(0x169)])(_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x1c8)]));if(!_0x531f2b)return!0x1;let _0x5d4d64=_0x4380b2[_0x58c4e0(0x3b6)](o[_0x58c4e0(0x134)])[_0x58c4e0(0x21a)]();if(!_0x5d4d64)return!0x1;let _0x423137=_0x4380b2[_0x58c4e0(0x3b6)](a[_0x58c4e0(0x2b9)]),{unitId:_0x4b82f1,subUnitId:_0x162f52}=_0x531f2b,{value:_0x5bed16,enhanceParams:_0x51787d}=_0x16ab60,{range:_0x4b0301}=_0x5d4d64,_0xbe6a18={'unitId':_0x4b82f1,'subUnitId':_0x162f52,'shapeType':_0x5bed16,'range':_0x4b0301,'shapeId':(0x0,a['generateRandomId'])()};if(_0x51787d){let _0x3023a6=(0x0,n[_0x58c4e0(0x2b3)])(_0x5bed16),_0x1664d3=_0x5bed16===n['ShapeTypeEnum'][_0x58c4e0(0x30e)];_0x3023a6&&(_0x51787d[_0x58c4e0(0x3bb)]||_0x51787d[_0x58c4e0(0x28e)])&&(_0xbe6a18['shapeData']={'ln':{'startArrow':_0x51787d[_0x58c4e0(0x3bb)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n[_0x58c4e0(0x164)]['Medium']}:void 0x0,'endArrow':_0x51787d[_0x58c4e0(0x28e)]?{'type':n[_0x58c4e0(0x2e3)][_0x58c4e0(0x414)],'size':n['ShapeArrowSizeEnum'][_0x58c4e0(0x217)]}:void 0x0}}),_0x1664d3&&(_0x51787d['horizontal']||_0x51787d[_0x58c4e0(0x34e)])&&(_0xbe6a18['shapeData']=(0x0,r['createShapeTextBoxShapeData'])({'fill':{'fillType':n[_0x58c4e0(0x392)]['SolidFill'],'color':'#FFFFFF'},'isHorizontal':!!_0x51787d[_0x58c4e0(0x29f)],'stroke':{'lineStrokeType':n[_0x58c4e0(0x1b6)][_0x58c4e0(0x117)],'width':0x1,'color':'#bcbcbc'}}));}let _0x774892=_0x423137[_0x58c4e0(0x3b8)](i['InsertShapeCommand']['id'],_0xbe6a18);return setTimeout(()=>{const _0x36cd25=_0x58c4e0;_0x423137[_0x36cd25(0x3e5)](P['id'],[{'unitId':_0x4b82f1,'subUnitId':_0x162f52,'drawingId':_0xbe6a18['shapeId']}]);},0xc8),_0x774892;}},I='sheet.shape.edit.panel',L='sheet.shape.object-list.panel',R='sheet.shape.floating-toolbar',z=_0x5db5d0(0x433),ne=(0x0,a['createInternalEditorID'])(_0x5db5d0(0x312)),re=_0x5db5d0(0x2df),ie={'id':_0x5db5d0(0x3bd),'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x1f1)],'handler':(_0x436940,_0x42bd42)=>{const _0x5a9b4a=_0x5db5d0;let _0x3a9e37=_0x436940[_0x5a9b4a(0x3b6)](t['ISidebarService']),_0x785d12=_0x436940['get'](a['LocaleService']),_0x4fff9a=_0x436940['get'](a[_0x5a9b4a(0x1c8)]),_0x542222=_0x436940[_0x5a9b4a(0x3b6)](a[_0x5a9b4a(0x2b9)]);return(0x0,o[_0x5a9b4a(0x169)])(_0x4fff9a)?(_0x42bd42==null?void 0x0:_0x42bd42['value'])==='close'?(_0x3a9e37['close'](L),!0x0):(_0x3a9e37[_0x5a9b4a(0x3fb)]({'id':L,'header':{'title':_0x785d12['t'](_0x5a9b4a(0x24d))},'children':{'label':L},'onClose':()=>{_0x542222['syncExecuteCommand'](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},B={'type':a['CommandType'][_0x5db5d0(0x29a)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function ae(_0x25c4f7){const _0x2ddd54=_0x5db5d0;let _0x3941f5=_0x25c4f7[_0x2ddd54(0x3b6)](s['IDrawingManagerService'])[_0x2ddd54(0x3fc)](),_0x56bdfa=_0x3941f5[_0x2ddd54(0x2fb)]===0x1?_0x3941f5[0x0]:null;if(!_0x56bdfa||_0x56bdfa[_0x2ddd54(0x3c1)]!==a[_0x2ddd54(0x3e6)]['DRAWING_SHAPE'])return null;let _0x164aed=_0x25c4f7[_0x2ddd54(0x3b6)](i[_0x2ddd54(0x1e0)]),_0x34b7c9=_0x164aed[_0x2ddd54(0x214)](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa[_0x2ddd54(0x20a)],_0x56bdfa[_0x2ddd54(0x3e3)]),_0x505b5f=_0x164aed['getShapeDataById'](_0x56bdfa[_0x2ddd54(0x3bf)],_0x56bdfa['subUnitId'],_0x56bdfa[_0x2ddd54(0x3e3)]);return _0x34b7c9===void 0x0||!_0x505b5f?null:{'drawing':_0x56bdfa,'shapeData':_0x505b5f,'shapeType':_0x34b7c9};}const oe={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'handler':(_0x2cd733,_0x452941)=>{const _0x125974=_0x5db5d0;let _0x563dea=ae(_0x2cd733),_0x391267=(0x0,r['getShapeQuickStylePreset'])((_0x452941==null?void 0x0:_0x452941[_0x125974(0x2c5)])??(_0x452941==null?void 0x0:_0x452941['value'])??'');if(!_0x563dea||!_0x391267||_0x391267[_0x125974(0x23f)]!==(0x0,r[_0x125974(0x146)])(_0x563dea['shapeData']))return!0x1;let _0x26a47c=(0x0,r['applyQuickStyleToShapeData'])(_0x563dea[_0x125974(0x398)],_0x391267);if(!_0x26a47c)return!0x1;let {drawing:_0x19877f}=_0x563dea;return _0x2cd733[_0x125974(0x3b6)](a['ICommandService'])[_0x125974(0x3e5)](S['id'],{'unitId':_0x19877f['unitId'],'subUnitId':_0x19877f[_0x125974(0x20a)],'shapeId':_0x19877f[_0x125974(0x3e3)],'shapeData':_0x26a47c,'oldShapeJSON':{'oldShapeData':_0x563dea['shapeData']}});}},se={'id':'sheet.operation.update-shape-type','type':a['CommandType']['OPERATION'],'handler':(_0x122ee3,_0x32e6e2)=>{const _0x23e181=_0x5db5d0;let _0x38ce44=ae(_0x122ee3),_0x8ddefa=(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x17f)])??(_0x32e6e2==null?void 0x0:_0x32e6e2[_0x23e181(0x30b)]);if(!_0x38ce44||!_0x8ddefa||(0x0,n[_0x23e181(0x2b3)])(_0x38ce44[_0x23e181(0x17f)])||(0x0,n[_0x23e181(0x2b3)])(_0x8ddefa))return!0x1;let _0x2bbb96=(0x0,r['cloneShapeDataForType'])(_0x38ce44[_0x23e181(0x398)],_0x8ddefa);if(!_0x2bbb96)return!0x1;let {drawing:_0x2eb01e}=_0x38ce44;return _0x122ee3['get'](a['ICommandService'])[_0x23e181(0x3e5)](S['id'],{'unitId':_0x2eb01e['unitId'],'subUnitId':_0x2eb01e[_0x23e181(0x20a)],'shapeId':_0x2eb01e[_0x23e181(0x3e3)],'shapeType':_0x8ddefa,'shapeData':_0x2bbb96,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x38ce44[_0x23e181(0x17f)],'oldShapeData':_0x38ce44[_0x23e181(0x398)]}});}};let V=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x14f30c,_0x2c62b4){const _0x3a1232=_0x5db5d0;super(),this[_0x3a1232(0x291)]=_0x14f30c,this[_0x3a1232(0x3b1)]=_0x2c62b4,this[_0x3a1232(0x119)](),this['_clipService'][_0x3a1232(0x155)](!0x0),this[_0x3a1232(0x17d)]({'dispose':()=>this[_0x3a1232(0x291)]['setCanUseShapeClip'](!0x1)});}[_0x5db5d0(0x119)](){const _0x57dbab=_0x5db5d0;let _0x47d998=this[_0x57dbab(0x291)],_0x1c5fda=new Map(),_0x5d1dfe=_0x47d998[_0x57dbab(0xda)]((_0x2c5d04,_0x41b6e0,_0x5d794b,_0x4c4aa6,_0xa887d4)=>{const _0x28f115=_0x57dbab;let _0x260fbf=_0x41b6e0;if(_0x260fbf===n[_0x28f115(0x259)][_0x28f115(0xf6)]||_0x41b6e0===_0x28f115(0x126))return!0x1;try{let _0x265683=_0x1c5fda[_0x28f115(0x3b6)](_0x41b6e0);return _0x265683||(_0x265683=new n[(_0x28f115(0x243))](_0x260fbf,_0x28f115(0x2c8)+_0x41b6e0),_0x1c5fda['set'](_0x41b6e0,_0x265683)),_0x265683[_0x28f115(0x1e5)](),_0xa887d4&&Object[_0x28f115(0x29c)](_0xa887d4)[_0x28f115(0x2fb)]>0x0&&_0x265683[_0x28f115(0x408)]({'adjustValues':_0xa887d4},!0x0),_0x265683[_0x28f115(0x141)]({'width':_0x5d794b,'height':_0x4c4aa6}),_0x265683['buildClipPath'](_0x2c5d04,{'left':0x0,'top':0x0,'width':_0x5d794b,'height':_0x4c4aa6});}catch{return!0x1;}});this[_0x57dbab(0x17d)](_0x5d1dfe),this[_0x57dbab(0x17d)]({'dispose':()=>_0x1c5fda['clear']()});}['clipByShape'](_0x23aa74,_0x37af8b,_0x1635bb,_0x595934,_0x38deb4){const _0xcf57ca=_0x5db5d0;let _0x2c394c=this[_0xcf57ca(0x3b1)][_0xcf57ca(0x343)](_0x23aa74,_0x37af8b);if(!_0x2c394c[_0x1635bb])return;let _0x4de1cd={..._0x2c394c[_0x1635bb],'prstGeom':_0x595934,'adjustValues':_0x38deb4};this['_drawingManagerService'][_0xcf57ca(0x336)]([_0x4de1cd]);}};V=j([A(0x0,(0x0,a['Inject'])(d[_0x5db5d0(0x3ec)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)]))],V);const ce='sheet.shape.picker.component',le=_0x5db5d0(0x3ee);function ue({onShapeClick:_0x123916,excludeGroups:_0x31eb4c}){const _0x37f713=_0x5db5d0;return(0x0,p['jsx'])(e[_0x37f713(0x1cf)],{'excludeGroups':_0x31eb4c,'onShapeClick':_0x123916,'scrollContainer':_0x37f713(0x277)});}function de(){const _0x4e6a6e=_0x5db5d0;let _0x1cb97a=(0x0,t[_0x4e6a6e(0x432)])(s[_0x4e6a6e(0x10d)]),_0x20d684=(0x0,t['useDependency'])(V);return(0x0,p['jsx'])(e[_0x4e6a6e(0x1b3)],{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[e['ShapeGroupEnum'][_0x4e6a6e(0x431)]],'onShapeClick':_0x19561d=>{const _0x24abff=_0x4e6a6e;let _0x3778c1=_0x1cb97a[_0x24abff(0x3fc)]()[_0x24abff(0x249)](_0x10e2cc=>_0x10e2cc[_0x24abff(0x3c1)]===a[_0x24abff(0x3e6)][_0x24abff(0x135)]);if(!_0x3778c1)return;let {unitId:_0x4a34f8,subUnitId:_0x386716,drawingId:_0x507a81}=_0x3778c1;_0x20d684['clipByShape'](_0x4a34f8,_0x386716,_0x507a81,_0x19561d['type']);}});}function fe(){const _0x16a5d4=_0x5db5d0;let _0x2ac001=(0x0,t[_0x16a5d4(0x432)])(s[_0x16a5d4(0x10d)]),_0xfd19bb=(0x0,t[_0x16a5d4(0x432)])(V);return(0x0,p[_0x16a5d4(0x37a)])(e['ShapePickerDropdown'],{'buttonLabel':_0x16a5d4(0x2c9),'excludeGroups':[e[_0x16a5d4(0x350)][_0x16a5d4(0x431)]],'DropdownComponent':f[_0x16a5d4(0x266)],'onShapeClick':_0x4820fb=>{const _0xfe3fd2=_0x16a5d4;let _0x23668a=_0x2ac001[_0xfe3fd2(0x3fc)]()['find'](_0x526c9b=>_0x526c9b['drawingType']===a[_0xfe3fd2(0x3e6)]['DRAWING_IMAGE']);if(!_0x23668a)return;let {unitId:_0x30e5,subUnitId:_0x4e93df,drawingId:_0x252818}=_0x23668a;_0xfd19bb[_0xfe3fd2(0x25e)](_0x30e5,_0x4e93df,_0x252818,_0x4820fb[_0xfe3fd2(0x23f)]);}});}function pe(){const _0x1cd864=_0x5db5d0;let _0x1b16a4=(0x0,t[_0x1cd864(0x432)])(t[_0x1cd864(0xd8)]),_0x4fc013=(0x0,t[_0x1cd864(0x432)])(s['IDrawingManagerService']),_0x3274fb=(0x0,t[_0x1cd864(0x432)])(a[_0x1cd864(0x1c8)]),_0xe04eca=_0x4fc013[_0x1cd864(0x3fc)]()[0x0],_0x6cb655=_0xe04eca?_0x3274fb[_0x1cd864(0x16c)](_0xe04eca[_0x1cd864(0x3bf)]):void 0x0,_0x18c0fe=_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_DOC']?_0x1cd864(0x3e7):_0x6cb655===a[_0x1cd864(0x400)]['UNIVER_SHEET']?le:void 0x0,_0x2cb553=_0x18c0fe?_0x1b16a4[_0x1cd864(0x3b6)](_0x18c0fe):void 0x0;return _0x2cb553?(0x0,p[_0x1cd864(0x37a)])(_0x2cb553,{}):null;}function me(){const _0xcce9e0=_0x5db5d0;let _0x1ed19b=(0x0,t[_0xcce9e0(0x432)])(a[_0xcce9e0(0x2b9)]);return(0x0,p[_0xcce9e0(0x37a)])(ue,{'onShapeClick':_0x2433d1=>{const _0x36f103=_0xcce9e0;_0x1ed19b[_0x36f103(0x3e5)](F['id'],{'value':_0x2433d1['type'],'enhanceParams':{'endArrow':_0x2433d1['endArrow'],'startArrow':_0x2433d1[_0x36f103(0x3bb)],'horizontal':_0x2433d1[_0x36f103(0x29f)],'vertical':_0x2433d1[_0x36f103(0x34e)]}});}});}function he(){const _0x1d95c1=_0x5db5d0;return(0x0,p[_0x1d95c1(0x37a)])(me,{});}function ge(_0x104cf0){const _0x833584=_0x5db5d0;let _0x40ec6c=_0x104cf0[_0x833584(0x3b6)](a[_0x833584(0x1c8)]);return{'id':F['id'],'type':t['MenuItemType'][_0x833584(0x1b0)],'selections':[{'label':{'name':ce,'hoverable':!0x1,'selectable':!0x1,'props':{'id':F['id']}}}],'icon':_0x833584(0x26b),'tooltip':_0x833584(0x2b2),'activated$':(0x0,l[_0x833584(0x147)])(_0x40ec6c,!0x1,()=>new u[(_0x833584(0x1d3))](_0x3687d6=>{const _0x2cd91c=_0x833584;_0x3687d6[_0x2cd91c(0x430)](!0x1);})),'hidden$':(0x0,t[_0x833584(0x28b)])(_0x104cf0,a['UniverInstanceType'][_0x833584(0x319)]),'disabled$':(0x0,l[_0x833584(0xf7)])(_0x104cf0)};}function _e(_0x1e8fd5){const _0x508e3d=_0x5db5d0;let _0x662a50=_0x1e8fd5[_0x508e3d(0x3b6)](a['IUniverInstanceService']);return{'id':ie['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x508e3d(0x1b9),'title':_0x508e3d(0xe4),'tooltip':_0x508e3d(0xe4),'activated$':(0x0,l[_0x508e3d(0x147)])(_0x662a50,!0x1,()=>new u['Observable'](_0x4faeee=>{const _0x5642a7=_0x508e3d;_0x4faeee[_0x5642a7(0x430)](!0x1);})),'hidden$':(0x0,t[_0x508e3d(0x28b)])(_0x1e8fd5,a[_0x508e3d(0x400)][_0x508e3d(0x319)]),'disabled$':(0x0,l[_0x508e3d(0xf7)])(_0x1e8fd5)};}const ve=_0x5db5d0(0x3cd),ye=_0x5db5d0(0x3eb);function be(_0x477a49){const _0x23dddc=_0x5db5d0;let _0x4ab12b=_0x477a49[_0x23dddc(0x3b6)](s['IDrawingManagerService'])[_0x23dddc(0x3fc)]();return _0x4ab12b[_0x23dddc(0x2fb)]===0x1&&_0x4ab12b[0x0][_0x23dddc(0x3c1)]===a[_0x23dddc(0x3e6)][_0x23dddc(0x19d)]?_0x4ab12b[0x0]:null;}function xe(_0x5335a0){const _0x217f39=_0x5db5d0;let _0x25dc71=_0x5335a0[_0x217f39(0x3b6)](s[_0x217f39(0x10d)]);return _0x25dc71['focus$'][_0x217f39(0x402)]((0x0,u[_0x217f39(0x2dc)])(_0x25dc71[_0x217f39(0x3fc)]()),(0x0,u[_0x217f39(0x410)])(_0xfe0ca4=>_0xfe0ca4['length']!==0x1||_0xfe0ca4[0x0][_0x217f39(0x3c1)]!==a['DrawingTypeEnum']['DRAWING_SHAPE']));}function Se(_0x57e9aa){const _0x5bb09e=_0x5db5d0;return{'id':ve,'commandId':i[_0x5bb09e(0x36c)]['id'],'type':t[_0x5bb09e(0x35e)][_0x5bb09e(0x19c)],'title':_0x5bb09e(0x10a),'tooltip':_0x5bb09e(0x10a),'icon':_0x5bb09e(0x38d),'hidden$':xe(_0x57e9aa),'params':()=>{const _0x4ddfeb=_0x5bb09e;let _0x28524b=be(_0x57e9aa);return _0x28524b?{'unitId':_0x28524b[_0x4ddfeb(0x3bf)],'subUnitId':_0x28524b['subUnitId'],'shapeId':_0x28524b['drawingId'],'flipH':!0x0}:void 0x0;}};}function Ce(_0x3bb372){const _0x738da9=_0x5db5d0;return{'id':ye,'commandId':i[_0x738da9(0x36c)]['id'],'type':t[_0x738da9(0x35e)][_0x738da9(0x19c)],'title':_0x738da9(0x339),'tooltip':_0x738da9(0x339),'icon':_0x738da9(0x1c3),'hidden$':xe(_0x3bb372),'params':()=>{const _0x121b05=_0x738da9;let _0xfbab1=be(_0x3bb372);return _0xfbab1?{'unitId':_0xfbab1[_0x121b05(0x3bf)],'subUnitId':_0xfbab1[_0x121b05(0x20a)],'shapeId':_0xfbab1[_0x121b05(0x3e3)],'flipV':!0x0}:void 0x0;}};}const we='sheets-shape-ui.shape-format.quick-style-gallery',Te=_0x5db5d0(0x25d),Ee=_0x5db5d0(0x222),De=_0x5db5d0(0x3ff);function Oe(){const _0x3a6e90=_0x5db5d0;let _0x64bfbc=(0x0,t[_0x3a6e90(0x432)])(a[_0x3a6e90(0x2b9)]),_0x389a7f=(0x0,t['useDependency'])(s[_0x3a6e90(0x10d)]),_0x55faf9=(0x0,t['useDependency'])(i[_0x3a6e90(0x1e0)]),_0x22eb0a=()=>{const _0x458d05=_0x3a6e90;var _0x5e7d32;let _0x158410=_0x389a7f[_0x458d05(0x3fc)]();if(_0x158410[_0x458d05(0x2fb)]!==0x1||((_0x5e7d32=_0x158410[0x0])==null?void 0x0:_0x5e7d32['drawingType'])!==a[_0x458d05(0x3e6)][_0x458d05(0x19d)])return null;let {unitId:_0x4ee30b,subUnitId:_0xea6d25,drawingId:_0x39e4e3}=_0x158410[0x0],_0x26288d=_0x55faf9[_0x458d05(0x214)](_0x4ee30b,_0xea6d25,_0x39e4e3),_0x554f46=_0x55faf9['getShapeDataById'](_0x4ee30b,_0xea6d25,_0x39e4e3);return _0x26288d===void 0x0||!_0x554f46?null:{'unitId':_0x4ee30b,'subUnitId':_0xea6d25,'drawingId':_0x39e4e3,'shapeType':_0x26288d,'shapeData':_0x554f46};},_0xf5a1b9=(0x0,t[_0x3a6e90(0x148)])(()=>new u[(_0x3a6e90(0x1d3))](_0x3b78cd=>{const _0xf683ff=_0x3a6e90;let _0x19c92c=()=>_0x3b78cd['next'](_0x22eb0a()),_0x131977=_0x389a7f[_0xf683ff(0x344)]['subscribe'](_0x19c92c),_0x43c62e=_0x64bfbc['onCommandExecuted'](_0x225f3b=>{const _0x33ddd1=_0xf683ff;_0x225f3b['id']===i[_0x33ddd1(0x244)]['id']&&_0x19c92c();});return _0x19c92c(),()=>{const _0x23a24e=_0xf683ff;_0x131977['unsubscribe'](),_0x43c62e[_0x23a24e(0x1c4)]();};}),_0x22eb0a(),!0x1,[_0x64bfbc,_0x389a7f,_0x55faf9]);return{'selection':_0xf5a1b9,'updateShapeData':_0x20335d=>{const _0x699c7c=_0x3a6e90;_0xf5a1b9&&C(_0x64bfbc,_0xf5a1b9[_0x699c7c(0x3bf)],_0xf5a1b9[_0x699c7c(0x20a)],_0xf5a1b9[_0x699c7c(0x3e3)],{'oldShapeData':_0xf5a1b9[_0x699c7c(0x398)]},_0x20335d);}};}function ke(){const _0x3e10b2=_0x5db5d0;let {selection:_0x2a4f02,updateShapeData:_0x1637c8}=Oe();return _0x2a4f02?(0x0,p[_0x3e10b2(0x37a)])(e[_0x3e10b2(0xe3)],{'shapeData':_0x2a4f02['shapeData'],'shapeType':_0x2a4f02[_0x3e10b2(0x17f)],'onUpdateShapeData':_0x1637c8}):null;}function Ae(){const _0x622ee8=_0x5db5d0;let _0x2da6cc=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x2b9)]),_0x191cd0=(0x0,t[_0x622ee8(0x432)])(a[_0x622ee8(0x232)]),{selection:_0x5c2661}=Oe();return _0x5c2661?(0x0,p[_0x622ee8(0x37a)])(e[_0x622ee8(0xec)],{'type':(0x0,r['getShapeQuickStyleType'])(_0x5c2661[_0x622ee8(0x398)]),'ariaLabel':_0x191cd0['t']('sheets-shape-ui.quickStyles'),'activePresetId':(0x0,r[_0x622ee8(0x213)])(_0x5c2661['shapeData']),'onSelect':_0x917367=>_0x2da6cc[_0x622ee8(0x3e5)](oe['id'],{'presetId':_0x917367})}):null;}function je(){const _0x1a0df7=_0x5db5d0;let {selection:_0x41f0d5,updateShapeData:_0x303e75}=Oe();return _0x41f0d5?(0x0,p[_0x1a0df7(0x37a)])(e[_0x1a0df7(0x2a8)],{'fontFamilyPopupDataComponent':_0x1a0df7(0x20c),'shapeData':_0x41f0d5['shapeData'],'onUpdateShapeData':_0x303e75}):null;}function Me(){const _0x48ad11=_0x5db5d0;var _0x298cb1;let {selection:_0x79f59e,updateShapeData:_0x4a6671}=Oe(),_0x6627ff=(0x0,e['useFormulaShapeToolbar'])({'hostType':a[_0x48ad11(0x400)][_0x48ad11(0x319)],'unitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3bf)])??'','subUnitId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x20a)])??'','shapeId':(_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x3e3)])??'','shapeData':_0x79f59e==null?void 0x0:_0x79f59e[_0x48ad11(0x398)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x48ad11(0x108),'onUpdateBinding':_0x5e802d=>_0x4a6671({'formulaBinding':_0x5e802d})}),_0x1babe7=((_0x298cb1=_0x6627ff[_0x48ad11(0x250)])==null?void 0x0:_0x298cb1[_0x48ad11(0x429)](_0xaf2d7c=>_0xaf2d7c[_0x48ad11(0x3ea)])[_0x48ad11(0x38e)](_0x569208=>_0x569208[_0x48ad11(0x2cc)]!==!0x1))??[];return _0x79f59e!=null&&_0x79f59e['shapeData'][_0x48ad11(0x238)]?(0x0,p[_0x48ad11(0x37a)])(e[_0x48ad11(0x1c0)],{'actions':_0x1babe7,'panel':_0x6627ff[_0x48ad11(0x160)]}):null;}const Ne='sheets-shape-ui.ribbon.shape-format.style-control',Pe='sheets-shape-ui.ribbon.shape-format.text-control',Fe='sheets-shape-ui.ribbon.shape-format.formula-control',Ie=_0x5db5d0(0x192),Le='sheets-shape-ui.ribbon.shape-format.arrange-backward',Re=_0x5db5d0(0x33f),ze='sheets-shape-ui.ribbon.shape-format.arrange-back';function Be(_0x23f57d){const _0x3c500c=_0x5db5d0;let _0x1d6ba7=_0x23f57d[_0x3c500c(0x3b6)](a['ICommandService']),_0x25e15e=_0x23f57d[_0x3c500c(0x3b6)](s[_0x3c500c(0x10d)]),_0x483095=_0x23f57d[_0x3c500c(0x3b6)](i[_0x3c500c(0x1e0)]);return new u['Observable'](_0x41e710=>{const _0x32cf0f=_0x3c500c;let _0x17e95b=()=>{const _0x23e960=_0x29aa;let _0x5201e3=H(_0x23f57d),_0x4533cb=_0x5201e3?_0x483095[_0x23e960(0x287)](_0x5201e3['unitId'],_0x5201e3[_0x23e960(0x20a)],_0x5201e3['drawingId']):null;_0x41e710[_0x23e960(0x430)](_0x4533cb?(0x0,r[_0x23e960(0x213)])(_0x4533cb)??'':'');},_0x36c2fe=_0x25e15e[_0x32cf0f(0x344)][_0x32cf0f(0x426)](_0x17e95b),_0x375cca=_0x1d6ba7[_0x32cf0f(0x1aa)](_0x3eb978=>{const _0x1ebdd3=_0x32cf0f;_0x3eb978['id']===i[_0x1ebdd3(0x244)]['id']&&_0x17e95b();});return _0x17e95b(),()=>{const _0x2069c2=_0x32cf0f;_0x36c2fe[_0x2069c2(0x284)](),_0x375cca['dispose']();};});}function H(_0x2c9ff6){const _0x2cc988=_0x5db5d0;var _0x2acf25;let _0x1a0866=_0x2c9ff6['get'](s[_0x2cc988(0x10d)])[_0x2cc988(0x3fc)]();return _0x1a0866['length']===0x1&&((_0x2acf25=_0x1a0866[0x0])==null?void 0x0:_0x2acf25['drawingType'])===a[_0x2cc988(0x3e6)]['DRAWING_SHAPE']?_0x1a0866[0x0]:null;}function Ve(_0x313b0c,_0x234192=!0x1){const _0x2a4ae5=_0x5db5d0;let _0x24da15=_0x313b0c[_0x2a4ae5(0x3b6)](a[_0x2a4ae5(0x2b9)]),_0x2038ed=_0x313b0c[_0x2a4ae5(0x3b6)](s[_0x2a4ae5(0x10d)]),_0x22b6b3=_0x313b0c[_0x2a4ae5(0x3b6)](i[_0x2a4ae5(0x1e0)]);return new u['Observable'](_0x28c239=>{const _0xf0dd89=_0x2a4ae5;let _0x5799be=()=>{const _0x33ad39=_0x29aa;let _0x594dcd=H(_0x313b0c);if(!_0x594dcd){_0x28c239[_0x33ad39(0x430)](!0x0);return;}let _0x1e0670=_0x22b6b3[_0x33ad39(0x287)](_0x594dcd['unitId'],_0x594dcd['subUnitId'],_0x594dcd[_0x33ad39(0x3e3)]);_0x28c239[_0x33ad39(0x430)](!_0x1e0670||_0x234192&&_0x1e0670[_0x33ad39(0x238)]==null);},_0x4663b7=_0x2038ed[_0xf0dd89(0x344)]['subscribe'](_0x5799be),_0x542b0b=_0x24da15[_0xf0dd89(0x1aa)](_0x519471=>{const _0x49eab1=_0xf0dd89;_0x519471['id']===i[_0x49eab1(0x244)]['id']&&_0x5799be();});return _0x5799be(),()=>{const _0x5b8f07=_0xf0dd89;_0x4663b7[_0x5b8f07(0x284)](),_0x542b0b[_0x5b8f07(0x1c4)]();};});}function He(_0x1a5f83){const _0x15ce4f=_0x5db5d0;let _0x16f6c8=_0x1a5f83[_0x15ce4f(0x3b6)](s['IDrawingManagerService']),_0x9cf590=_0x1a5f83[_0x15ce4f(0x3b6)](i['SheetsShapeService']);return _0x16f6c8[_0x15ce4f(0x344)][_0x15ce4f(0x402)]((0x0,u[_0x15ce4f(0x2dc)])(_0x16f6c8['getFocusDrawings']()),(0x0,u['map'])(()=>{const _0x52aa77=_0x15ce4f;let _0x4efb7c=H(_0x1a5f83),_0x5849e4=_0x4efb7c?_0x9cf590[_0x52aa77(0x214)](_0x4efb7c[_0x52aa77(0x3bf)],_0x4efb7c['subUnitId'],_0x4efb7c['drawingId']):void 0x0;return _0x5849e4===void 0x0||(0x0,n[_0x52aa77(0x2b3)])(_0x5849e4);}));}function Ue(_0x5877d4){const _0x5d0670=_0x5db5d0;return{'id':oe['id'],'type':t[_0x5d0670(0x35e)][_0x5d0670(0x1b0)],'icon':'PaintIcon','title':_0x5d0670(0x1fc),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':we,'hoverable':!0x1,'selectable':!0x1}}],'value$':Be(_0x5877d4),'hidden$':Ve(_0x5877d4)};}function We(_0x2923f0){const _0x8a5d74=_0x5db5d0;return{'id':se['id'],'type':t[_0x8a5d74(0x35e)][_0x8a5d74(0x1b0)],'icon':_0x8a5d74(0x26b),'title':'shape-editor-ui.toolbar.changeShape','tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':e[_0x8a5d74(0x1da)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':He(_0x2923f0)};}function Ge(_0x1bd34d,_0x5ab42e,_0x1111df=!0x1){const _0x4d9c65=_0x5db5d0;return _0x4d5a3b=>({'id':_0x1bd34d,'type':t[_0x4d9c65(0x35e)][_0x4d9c65(0x19c)],'label':{'name':_0x5ab42e,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ve(_0x4d5a3b,_0x1111df)});}const Ke=Ge(Ne,Te),qe=Ge(Pe,Ee),Je=Ge(Fe,De,!0x0);function Ye(_0x5a0677,_0x258f32,_0x547525,_0x4575b7){const _0x5c22a6=_0x5db5d0;return _0x336118=>({'id':_0x5a0677,'commandId':m[_0x5c22a6(0x326)]['id'],'type':t[_0x5c22a6(0x35e)][_0x5c22a6(0x19c)],'icon':_0x547525,'title':_0x4575b7,'tooltip':_0x4575b7,'hidden$':Ve(_0x336118),'params':()=>{const _0x4f8a5a=_0x5c22a6;let _0x1150c4=H(_0x336118);return _0x1150c4?{'unitId':_0x1150c4['unitId'],'subUnitId':_0x1150c4[_0x4f8a5a(0x20a)],'drawingIds':[_0x1150c4[_0x4f8a5a(0x3e3)]],'arrangeType':_0x258f32}:void 0x0;}});}const Xe=Ye(Ie,a[_0x5db5d0(0x150)][_0x5db5d0(0x306)],_0x5db5d0(0x1dc),_0x5db5d0(0x411)),Ze=Ye(Le,a['ArrangeTypeEnum']['backward'],'MoveDownIcon','shape-editor-ui.arrange.backward'),Qe=Ye(Re,a[_0x5db5d0(0x150)][_0x5db5d0(0x378)],_0x5db5d0(0x11c),_0x5db5d0(0x1df)),$e=Ye(ze,a[_0x5db5d0(0x150)][_0x5db5d0(0x256)],_0x5db5d0(0x34a),_0x5db5d0(0x188));function et(_0x991484){const _0x13cde9=_0x5db5d0;return{'id':B['id'],'type':t['MenuItemType']['BUTTON'],'icon':_0x13cde9(0x3f9),'title':_0x13cde9(0x21e),'tooltip':_0x13cde9(0x21e),'hidden$':Ve(_0x991484),'params':()=>{const _0x3058f6=_0x13cde9;let _0xc67668=H(_0x991484);return _0xc67668?{'unitId':_0xc67668[_0x3058f6(0x3bf)],'subUnitId':_0xc67668[_0x3058f6(0x20a)],'drawingId':_0xc67668[_0x3058f6(0x3e3)]}:void 0x0;}};}const tt={[t[_0x5db5d0(0x412)][_0x5db5d0(0x415)]]:{[z]:{'order':0x64,'title':_0x5db5d0(0x21e),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[oe['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ue},[se['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':We}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Ne]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ke}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ve]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Se},[ye]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':Ce},[Ie]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Xe},[Le]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Qe},[ze]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':$e}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[B['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':et},[e[_0x5db5d0(0x38f)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},nt={[t[_0x5db5d0(0x174)][_0x5db5d0(0x313)]]:{[F['id']]:{'order':0x4,'menuItemFactory':ge}}},rt={...nt,[t['RibbonInsertGroup'][_0x5db5d0(0x2ab)]]:{[ie['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':_e}},[t[_0x5db5d0(0x3fe)][_0x5db5d0(0x413)]]:{[t[_0x5db5d0(0xf2)][_0x5db5d0(0x2ab)]]:{[ve]:{'order':0x4,'menuItemFactory':Se},[ye]:{'order':0x5,'menuItemFactory':Ce}}}};var it='@univerjs-pro/sheets-shape-ui',at='1.0.0-rc.0';const ot={'id':_0x5db5d0(0x379),'type':a[_0x5db5d0(0x33b)]['OPERATION'],'handler'(_0x21d005,_0x1cb46a){const _0xb0a8ed=_0x5db5d0;return _0x1cb46a?(_0x21d005['get'](e['MobileShapeEditorService'])['open'](_0x1cb46a['mode'],{'hostType':a[_0xb0a8ed(0x400)][_0xb0a8ed(0x319)],'shapeId':_0x1cb46a['drawingId'],'subUnitId':_0x1cb46a['subUnitId'],'unitId':_0x1cb46a[_0xb0a8ed(0x3bf)]}),!0x0):!0x1;}},st=_0x5db5d0(0x3cc),ct={};let lt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x510bd1,_0x2dc074,_0x56adf1,_0x547ce7,_0x524e5d){const _0x58f8e2=_0x5db5d0;super(),this[_0x58f8e2(0x2ea)]=_0x510bd1,this[_0x58f8e2(0x3b1)]=_0x2dc074,this[_0x58f8e2(0x104)]=_0x56adf1,this[_0x58f8e2(0x12c)]=_0x547ce7,this[_0x58f8e2(0x2aa)]=_0x524e5d,E(this,_0x58f8e2(0x100),null),E(this,_0x58f8e2(0x3d2),null),E(this,_0x58f8e2(0x23c),null),E(this,'_activeAdjustPointList',void 0x0),E(this,_0x58f8e2(0x221),[]),E(this,_0x58f8e2(0x1cd),0x0),E(this,_0x58f8e2(0x1ef),0x0),E(this,_0x58f8e2(0x3ef),0x0),E(this,_0x58f8e2(0x23d),0x0),E(this,_0x58f8e2(0x182),!0x1),E(this,_0x58f8e2(0x1f6),void 0x0),E(this,_0x58f8e2(0x258),void 0x0),E(this,_0x58f8e2(0x173),void 0x0),E(this,_0x58f8e2(0x29d),void 0x0),E(this,_0x58f8e2(0x3dc),!0x1),this[_0x58f8e2(0x2c6)](),this[_0x58f8e2(0x224)]();}[_0x5db5d0(0x24f)](){this['_clearControls']();}[_0x5db5d0(0x40f)](){const _0x2bfb80=_0x5db5d0;this[_0x2bfb80(0x28d)](),this[_0x2bfb80(0x1f2)](!0x0);}[_0x5db5d0(0x1a3)](_0x3696fd,_0x439a62,_0x448433,_0x43420a){const _0x4e3f41=_0x5db5d0;let _0x3f6382=_0x3696fd;if(_0x3f6382!==n[_0x4e3f41(0x259)][_0x4e3f41(0xf6)]&&_0x3696fd!==_0x4e3f41(0x126))try{let _0x23335f=new n[(_0x4e3f41(0x243))](_0x3f6382,_0x4e3f41(0x3b3)+_0x3696fd);return _0x43420a&&_0x23335f[_0x4e3f41(0x408)]({'adjustValues':_0x43420a},!0x0),_0x23335f[_0x4e3f41(0x141)]({'width':_0x439a62,'height':_0x448433}),_0x23335f;}catch{return;}}['_getImageDrawingInfo'](_0x1abb0b,_0x45e616,_0x593430){const _0x4553e9=_0x5db5d0;let _0x163b9e={'unitId':_0x1abb0b,'subUnitId':_0x45e616,'drawingId':_0x593430},_0x4a19a3=this[_0x4553e9(0x3b1)][_0x4553e9(0x15a)](_0x163b9e);if(!(!_0x4a19a3||_0x4a19a3['drawingType']!==a[_0x4553e9(0x3e6)]['DRAWING_IMAGE']))return _0x4a19a3;}['_getImagePrstGeom'](_0xd2b67b,_0x540830,_0x436a0b){const _0x4e137d=_0x5db5d0;let _0x24381d=this[_0x4e137d(0x104)][_0x4e137d(0x2c4)](_0xd2b67b);if(!_0x24381d)return;let {scene:_0x24b927}=_0x24381d,_0x19da5e=(0x0,s[_0x4e137d(0x1f8)])({'unitId':_0xd2b67b,'subUnitId':_0x540830,'drawingId':_0x436a0b}),_0x998d57=_0x24b927[_0x4e137d(0x3b7)](_0x19da5e);if(_0x998d57 instanceof c[_0x4e137d(0x40b)]){let _0x27631e=_0x998d57[_0x4e137d(0xf3)];if(_0x27631e)return{'prstGeom':_0x27631e,'adjustValues':_0x998d57[_0x4e137d(0x1f0)]};}}[_0x5db5d0(0x1f2)](_0xb88a91=!0x1){const _0x264830=_0x5db5d0;if(!this[_0x264830(0x3d2)]||!this[_0x264830(0x23c)]||!this[_0x264830(0x100)])return;let _0x2c397e=this[_0x264830(0x104)]['getRenderUnitById'](this[_0x264830(0x3d2)]);if(!_0x2c397e||!_0x2c397e['with'](l[_0x264830(0x364)])[_0x264830(0x2bc)]())return;let {scene:_0x8d1885}=_0x2c397e,_0x58410e=this[_0x264830(0x367)](this[_0x264830(0x3d2)],this['_subUnitId'],this[_0x264830(0x100)]);if(!_0x58410e)return;let {transform:_0x89a639}=_0x58410e;if(!_0x89a639)return;let {left:_0x16e5c2,top:_0x50db28,width:_0x4df3d2,height:_0x28dac4,flipX:_0x308756,flipY:_0x262385,angle:_0x27d408=0x0}=_0x89a639;if(_0x16e5c2===void 0x0||_0x50db28===void 0x0)return;let _0x1aeecb=this[_0x264830(0x1e7)](this[_0x264830(0x3d2)],this[_0x264830(0x23c)],this[_0x264830(0x100)]);if(!_0x1aeecb)return;if(_0xb88a91){let _0x10da79=this[_0x264830(0x1a3)](_0x1aeecb[_0x264830(0xf3)],_0x4df3d2||0x0,_0x28dac4||0x0,_0x1aeecb[_0x264830(0x15c)]);if(!_0x10da79)return;this[_0x264830(0x422)]=_0x10da79[_0x264830(0x123)]();}let _0x5e6379=this[_0x264830(0x422)];if(!(!_0x5e6379||_0x5e6379[_0x264830(0x2fb)]===0x0))for(let _0x55e626=0x0;_0x55e626<_0x5e6379[_0x264830(0x2fb)];_0x55e626++){let _0x4bcabe=_0x5e6379[_0x55e626],_0x59b599=_0x4bcabe['x'],_0x45580e=_0x4bcabe['y'];if(_0x308756&&(_0x59b599=(_0x4df3d2||0x0)-_0x59b599),_0x262385&&(_0x45580e=(_0x28dac4||0x0)-_0x45580e),_0x27d408!==0x0){let _0x597b97=(_0x4df3d2||0x0)/0x2,_0x4a5a06=(_0x28dac4||0x0)/0x2,_0x2d2654=_0x27d408*Math['PI']/0xb4,_0x39384c=Math['cos'](_0x2d2654),_0x6e0854=Math['sin'](_0x2d2654),_0x4c0013=_0x59b599-_0x597b97,_0x33cea0=_0x45580e-_0x4a5a06;_0x59b599=_0x597b97+(_0x4c0013*_0x39384c-_0x33cea0*_0x6e0854),_0x45580e=_0x4a5a06+(_0x4c0013*_0x6e0854+_0x33cea0*_0x39384c);}let _0x3566ea={'x':_0x59b599,'y':_0x45580e,'adjName':_0x4bcabe[_0x264830(0x24b)]};this['_addControl'](_0x8d1885,_0x3566ea,_0x3566ea[_0x264830(0x24b)],_0x16e5c2,_0x50db28,this[_0x264830(0x3d2)],this['_subUnitId']);}}[_0x5db5d0(0xf0)](_0x486ca1,_0x4d7c23,_0x5809cb,_0x575f80,_0x39ce8f,_0x3cab13,_0x48e17b){const _0x344ff9=_0x5db5d0;if(!this[_0x344ff9(0x100)])return;let _0x2a3a19=_0x344ff9(0x3c0)+this[_0x344ff9(0x100)]+'-'+_0x5809cb,_0x247108=_0x486ca1[_0x344ff9(0x1d5)](_0x2a3a19);if(_0x247108){_0x247108['transformByState']({'left':_0x4d7c23['x']+_0x575f80-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]});return;}let _0x705774=new k(_0x2a3a19,{'left':_0x4d7c23['x']+_0x575f80-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'top':_0x4d7c23['y']+_0x39ce8f-n['ShapeDefaultConfig'][_0x344ff9(0x269)],'adjName':_0x5809cb,'shapeId':this['_activeImageId'],'unitId':_0x3cab13,'subUnitId':_0x48e17b,'width':n[_0x344ff9(0x2b4)][_0x344ff9(0x269)]+0x8,'height':n[_0x344ff9(0x2b4)]['adjHandleSize']+0x8,'zIndex':c['DRAWING_OBJECT_LAYER_INDEX']+0x1,'evented':!0x0});this[_0x344ff9(0x221)][_0x344ff9(0x1bd)](_0x705774),this['_attachAdjustEvent'](_0x705774,_0x486ca1,_0x5809cb),_0x486ca1[_0x344ff9(0x251)](_0x705774,c[_0x344ff9(0x3a9)]+0x1);}[_0x5db5d0(0x28d)](){const _0x1e2e0b=_0x5db5d0;this['_shapes']['length']!==0x0&&(this[_0x1e2e0b(0x221)][_0x1e2e0b(0xe5)](_0x4b4ad8=>_0x4b4ad8[_0x1e2e0b(0x1c4)]()),this[_0x1e2e0b(0x221)]=[]);}[_0x5db5d0(0x245)](_0x426156,_0x3ba84b){const _0x572c26=_0x5db5d0;var _0x558886;let _0x90fa53={'x':0x0,'y':0x0},_0x12b90f=this[_0x572c26(0x104)][_0x572c26(0x2c4)](_0x426156);if(!_0x12b90f||!_0x12b90f[_0x572c26(0x35a)](l['SheetSkeletonManagerService'])[_0x572c26(0x23a)](_0x3ba84b))return _0x90fa53;let _0x5493a8=_0x12b90f[_0x572c26(0x35a)](l['SheetScrollManagerService']),_0x57a707=_0x5493a8==null?void 0x0:_0x5493a8[_0x572c26(0x2ac)]();if(!_0x57a707)return _0x90fa53;let _0x550d65=(_0x558886=this['_univerInstanceService'][_0x572c26(0x1ae)](_0x426156))==null?void 0x0:_0x558886['getSheetBySheetId'](_0x3ba84b);if(!_0x550d65)return _0x90fa53;let _0x2d8b0c=(0x0,l[_0x572c26(0x404)])(_0x57a707[_0x572c26(0x1a5)],_0x57a707['sheetViewStartColumn'],_0x12b90f[_0x572c26(0x2e7)],_0x550d65);return _0x2d8b0c?{'x':_0x2d8b0c['viewportScrollX'],'y':_0x2d8b0c[_0x572c26(0x370)]}:_0x90fa53;}[_0x5db5d0(0x34f)](_0x5241fa,_0x4bca30){const _0x297cf6=_0x5db5d0;var _0x19da28;let _0x5b6616=(_0x19da28=this[_0x297cf6(0x12c)][_0x297cf6(0x1ae)](_0x5241fa))==null?void 0x0:_0x19da28[_0x297cf6(0x26d)](_0x4bca30);return(_0x5b6616==null?void 0x0:_0x5b6616[_0x297cf6(0x27a)]())??0x1;}[_0x5db5d0(0x139)](_0x2efa7f,_0x2963d0,_0x3582b8){const _0x42015d=_0x5db5d0;this[_0x42015d(0x17d)]((0x0,a[_0x42015d(0x105)])(_0x2efa7f[_0x42015d(0x1c2)][_0x42015d(0x151)]((_0xe597f2,_0x3c28ed)=>{const _0x1daff2=_0x42015d;var _0xa72104,_0x3622f7,_0x1815ed;let {unitId:_0x449f29,subUnitId:_0x2c9d98,drawingId:_0xc0a0ed}=_0x2efa7f[_0x1daff2(0x19b)](),_0x22d6bf=this[_0x1daff2(0x367)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!(_0x22d6bf!=null&&_0x22d6bf[_0x1daff2(0x32a)]))return;let {left:_0xf93943,top:_0x2844de,width:_0x58be57,height:_0x359895}=_0x22d6bf['transform'];this[_0x1daff2(0x1cd)]=_0xf93943||0x0,this[_0x1daff2(0x1ef)]=_0x2844de||0x0,this['_baseWidth']=_0x58be57||0x0,this[_0x1daff2(0x23d)]=_0x359895||0x0;let _0x16cd3a=!!((_0xa72104=_0x22d6bf['transform'])!=null&&_0xa72104[_0x1daff2(0xfa)]),_0x228438=!!((_0x3622f7=_0x22d6bf[_0x1daff2(0x32a)])!=null&&_0x3622f7[_0x1daff2(0xef)]),_0x34aa31=((_0x1815ed=_0x22d6bf[_0x1daff2(0x32a)])==null?void 0x0:_0x1815ed[_0x1daff2(0x3ed)])||0x0,_0x21ee3c=this[_0x1daff2(0x1e7)](_0x449f29,_0x2c9d98,_0xc0a0ed);if(!_0x21ee3c)return;let _0x17e961=this['_getOrCreateShapeModel'](_0x21ee3c[_0x1daff2(0xf3)],this[_0x1daff2(0x3ef)],this[_0x1daff2(0x23d)],_0x21ee3c[_0x1daff2(0x15c)]);if(!_0x17e961||(this[_0x1daff2(0x258)]=_0x17e961,this[_0x1daff2(0x1f6)]=_0x17e961[_0x1daff2(0x2af)](_0x3582b8),!this[_0x1daff2(0x1f6)]))return;this[_0x1daff2(0x182)]=!0x0,_0x2963d0['disableObjectsEvent']();let _0x43f147=_0x21ee3c[_0x1daff2(0xf3)];this[_0x1daff2(0x173)]=_0x2963d0[_0x1daff2(0x1b5)][_0x1daff2(0x151)]((_0x429986,_0xe048bb)=>{const _0x92aabe=_0x1daff2;if(!this['_isStartAdjusting'])return;let {offsetX:_0x29e85b,offsetY:_0x169928}=_0x429986,_0x183743=this[_0x92aabe(0x1f6)];if(!this[_0x92aabe(0x258)]||!_0x183743)return;_0x2963d0[_0x92aabe(0x2a1)](),_0x2963d0[_0x92aabe(0x27d)](c[_0x92aabe(0x30f)]['CROSSHAIR']);let _0x14e1e1={'left':0x0,'top':0x0,'width':this['_baseWidth'],'height':this[_0x92aabe(0x23d)]},_0x31a322=this[_0x92aabe(0x245)](_0x449f29,_0x2c9d98),_0x2b41ec=this[_0x92aabe(0x34f)](_0x449f29,_0x2c9d98),_0x428fbc=_0x29e85b/_0x2b41ec+_0x31a322['x']-this[_0x92aabe(0x1cd)],_0x1d2db9=_0x169928/_0x2b41ec+_0x31a322['y']-this[_0x92aabe(0x1ef)];if(_0x34aa31!==0x0){let _0xde90b4=this[_0x92aabe(0x3ef)]/0x2,_0x1784bf=this[_0x92aabe(0x23d)]/0x2,_0x3c76da=_0x34aa31*Math['PI']/0xb4,_0x4ae7e3=Math[_0x92aabe(0x39e)](_0x3c76da),_0x56361f=Math['sin'](_0x3c76da),_0x2a562c=_0x428fbc-_0xde90b4,_0x450ca9=_0x1d2db9-_0x1784bf;_0x428fbc=_0xde90b4+(_0x2a562c*_0x4ae7e3+_0x450ca9*_0x56361f),_0x1d2db9=_0x1784bf+(-_0x2a562c*_0x56361f+_0x450ca9*_0x4ae7e3);}_0x16cd3a&&(_0x428fbc=this['_baseWidth']-_0x428fbc),_0x228438&&(_0x1d2db9=this[_0x92aabe(0x23d)]-_0x1d2db9);let _0x56d4f8=this['_activeShapeModel']['calcAdjValues'](_0x14e1e1,{'x':_0x428fbc,'y':_0x1d2db9},_0x183743,_0x16cd3a,_0x228438);if(Object[_0x92aabe(0x29c)](_0x56d4f8)[_0x92aabe(0x2fb)]!==0x0){for(let [_0x3366a4,_0x24e627]of Object[_0x92aabe(0x2d0)](_0x56d4f8))this['_activeShapeModel'][_0x92aabe(0x19a)](_0x3366a4,_0x24e627);this['_activeShapeModel'][_0x92aabe(0x141)]({'width':this[_0x92aabe(0x3ef)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x56d4f8),this[_0x92aabe(0x422)]=this[_0x92aabe(0x258)][_0x92aabe(0x123)](),this[_0x92aabe(0x1f2)](),_0xe048bb[_0x92aabe(0x15f)]();}}),this['_adjHandlerPointerUp']=_0x2963d0[_0x1daff2(0x369)]['subscribeEvent']((_0x3b321d,_0x48cd1f)=>{const _0x47909d=_0x1daff2;if(this[_0x47909d(0x173)][_0x47909d(0x284)](),this[_0x47909d(0x29d)][_0x47909d(0x284)](),_0x2963d0[_0x47909d(0x338)](),this['_activeShapeModel']){let _0x2dda1f=this[_0x47909d(0x258)]['getAdjustNames'](),_0xd90ee0={};for(let _0x4ab26a of _0x2dda1f){let _0x2608bd=this[_0x47909d(0x258)][_0x47909d(0xd7)](_0x4ab26a);_0x2608bd!==void 0x0&&(_0xd90ee0[_0x4ab26a]=_0x2608bd);}this[_0x47909d(0x2aa)][_0x47909d(0x25e)](_0x449f29,_0x2c9d98,_0xc0a0ed,_0x43f147,_0xd90ee0);}this['_activeAdjustInfo']=void 0x0,this[_0x47909d(0x258)]=void 0x0,this[_0x47909d(0x182)]=!0x1,_0x48cd1f[_0x47909d(0x15f)](),_0x2963d0[_0x47909d(0x13c)]();}),_0x3c28ed[_0x1daff2(0x15f)]();})));}[_0x5db5d0(0x170)](_0x6a7b0b,_0x4fb708,_0x312c9f,_0x2cb53d){const _0x158561=_0x5db5d0;let _0x9df31d=this['_renderManagerService']['getRenderUnitById'](_0x6a7b0b);if(!_0x9df31d)return;let {scene:_0x349083}=_0x9df31d,_0x4de2b1=(0x0,s[_0x158561(0x1f8)])({'unitId':_0x6a7b0b,'subUnitId':_0x4fb708,'drawingId':_0x312c9f}),_0x1b56d4=_0x349083['getObject'](_0x4de2b1);if(_0x1b56d4 instanceof c[_0x158561(0x40b)]){let _0x412d5a=_0x1b56d4[_0x158561(0x1f0)]??{};_0x1b56d4[_0x158561(0x3a4)]({..._0x412d5a,..._0x2cb53d}),_0x1b56d4['makeDirty'](!0x0);}}[_0x5db5d0(0x224)](){const _0x5c4933=_0x5db5d0;let _0x269688=this[_0x5c4933(0x12c)][_0x5c4933(0x384)](a[_0x5c4933(0x400)][_0x5c4933(0x319)]);this[_0x5c4933(0x17d)](_0x269688[_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0xbb0554=>_0xbb0554?_0xbb0554[_0x5c4933(0x115)][_0x5c4933(0x402)]((0x0,u[_0x5c4933(0x177)])(_0x5352e7=>{const _0x5081f5=_0x5c4933;if(!_0x5352e7)return u[_0x5081f5(0x395)];let _0x2347a1=_0xbb0554['getUnitId'](),_0x422e98=this[_0x5081f5(0x104)][_0x5081f5(0x2c4)](_0x2347a1),_0x2abe8a=_0x422e98==null?void 0x0:_0x422e98[_0x5081f5(0x2e7)];return _0x2abe8a?(0x0,u['of'])(_0x2abe8a):u[_0x5081f5(0x395)];})):u['EMPTY']))[_0x5c4933(0x426)](_0x14f71f=>{const _0xb881b0=_0x5c4933;let _0x3a27b4=_0x14f71f[_0xb881b0(0x3cb)]();this[_0xb881b0(0x17d)](_0x14f71f[_0xb881b0(0x1b5)][_0xb881b0(0x151)](()=>{const _0x4bcf8b=_0xb881b0;this[_0x4bcf8b(0x3dc)]&&this[_0x4bcf8b(0x28d)]();})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x328)][_0xb881b0(0x426)](_0x577a72=>{const _0x1d7c92=_0xb881b0;let {objects:_0x4378a6}=_0x577a72;if(this[_0x1d7c92(0x1f2)](),_0x4378a6!==null&&_0x4378a6['size']===0x1){let _0x3f7805=_0x4378a6[_0x1d7c92(0x3ae)]()[_0x1d7c92(0x430)]()['value'];_0x3f7805 instanceof c[_0x1d7c92(0x40b)]&&_0x3f7805[_0x1d7c92(0xf3)]&&(this['_isImagePointerDown']=!0x0);}})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x1a2)][_0xb881b0(0x426)](()=>{const _0x3c35dc=_0xb881b0;this['_isImagePointerDown']&&this[_0x3c35dc(0x28d)]();})),this['disposeWithMe'](_0x14f71f['onPointerUp$'][_0xb881b0(0x151)](()=>{const _0x49e199=_0xb881b0;this[_0x49e199(0x3dc)]&&(this['_isImagePointerDown']=!0x1,this[_0x49e199(0x1f2)]());})),this[_0xb881b0(0x17d)](_0x3a27b4[_0xb881b0(0x3f8)][_0xb881b0(0x426)](()=>{const _0x48f091=_0xb881b0;if(this[_0x48f091(0x3d2)]&&this[_0x48f091(0x23c)]&&this[_0x48f091(0x100)]){let _0x4562e5=this[_0x48f091(0x1e7)](this[_0x48f091(0x3d2)],this[_0x48f091(0x23c)],this[_0x48f091(0x100)]);if(_0x4562e5){var _0x4e7fab,_0x30c130;let _0xbf93ca=this['_getImageDrawingInfo'](this['_unitId'],this[_0x48f091(0x23c)],this['_activeImageId']),_0x1dbff1=(_0xbf93ca==null||(_0x4e7fab=_0xbf93ca[_0x48f091(0x32a)])==null?void 0x0:_0x4e7fab[_0x48f091(0x2ad)])||0x0,_0x4abf77=(_0xbf93ca==null||(_0x30c130=_0xbf93ca['transform'])==null?void 0x0:_0x30c130['height'])||0x0,_0x22b615=this[_0x48f091(0x1a3)](_0x4562e5[_0x48f091(0xf3)],_0x1dbff1,_0x4abf77,_0x4562e5[_0x48f091(0x15c)]);_0x22b615&&(this[_0x48f091(0x422)]=_0x22b615['getDrawingPoints'](),this[_0x48f091(0x28d)](),this[_0x48f091(0x1f2)](!0x0));}}}));}));}[_0x5db5d0(0x2c6)](){const _0x3560f0=_0x5db5d0;this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0x344)]['subscribe'](_0x1186f1=>{const _0x180672=_0x3560f0;if(_0x1186f1[_0x180672(0x2fb)]===0x1){let _0x4ae8a2=_0x1186f1[0x0];if(_0x4ae8a2[_0x180672(0x3c1)]===a[_0x180672(0x3e6)][_0x180672(0x135)]){let {unitId:_0x5ceedb,subUnitId:_0x22b8ab,drawingId:_0x3e1361}=_0x4ae8a2,_0x4f44e9=this[_0x180672(0x1e7)](_0x5ceedb,_0x22b8ab,_0x3e1361);if(_0x4f44e9){var _0x5b05bf,_0x564287;this['_activeImageId']=_0x3e1361,this[_0x180672(0x3d2)]=_0x5ceedb,this[_0x180672(0x23c)]=_0x22b8ab;let _0x1c7c1d=this[_0x180672(0x367)](_0x5ceedb,_0x22b8ab,_0x3e1361),_0x18d47c=(_0x1c7c1d==null||(_0x5b05bf=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x5b05bf[_0x180672(0x2ad)])||0x0,_0x5dd2e3=(_0x1c7c1d==null||(_0x564287=_0x1c7c1d[_0x180672(0x32a)])==null?void 0x0:_0x564287[_0x180672(0x3c5)])||0x0,_0x207e05=this[_0x180672(0x1a3)](_0x4f44e9['prstGeom'],_0x18d47c,_0x5dd2e3,_0x4f44e9[_0x180672(0x15c)]);_0x207e05&&(this['_activeAdjustPointList']=_0x207e05[_0x180672(0x123)]()),this['_clearControls'](),this[_0x180672(0x1f2)](!0x0);}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();}else this[_0x180672(0x330)]();})),this[_0x3560f0(0x17d)](this[_0x3560f0(0x3b1)][_0x3560f0(0xe7)]['subscribe'](_0x38532b=>{const _0x44b8ff=_0x3560f0;if(_0x38532b[_0x44b8ff(0x2fb)]===0x1){let _0x339b46=_0x38532b[0x0],_0x4d35f5=this[_0x44b8ff(0x3b1)][_0x44b8ff(0x15a)](_0x339b46);(_0x4d35f5==null?void 0x0:_0x4d35f5['drawingType'])===a['DrawingTypeEnum'][_0x44b8ff(0x135)]&&this[_0x44b8ff(0x100)]===_0x339b46[_0x44b8ff(0x3e3)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x3560f0(0x17d)](this['_drawingManagerService'][_0x3560f0(0x386)]['subscribe'](_0x1490bd=>{const _0x423170=_0x3560f0;for(let _0x8ad254 of _0x1490bd)this['_activeImageId']===_0x8ad254[_0x423170(0x3e3)]&&this[_0x423170(0x330)]();}));}[_0x5db5d0(0x330)](){const _0x513dea=_0x5db5d0;this[_0x513dea(0x100)]=null,this[_0x513dea(0x3d2)]=null,this[_0x513dea(0x23c)]=null,this[_0x513dea(0x422)]=void 0x0,this[_0x513dea(0x28d)]();}};lt=j([A(0x1,s['IDrawingManagerService']),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(c[_0x5db5d0(0x226)])),A(0x3,a['IUniverInstanceService']),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(V))],lt);let ut=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2855d3,_0x542a40){const _0x524768=_0x5db5d0;super(),this[_0x524768(0x17d)](_0x542a40[_0x524768(0x3f3)]({'BottomIcon':y[_0x524768(0x34a)],'FlipHorizontalIcon':y['FlipHorizontalIcon'],'FlipVerticalIcon':y[_0x524768(0x1c3)],'MoveDownIcon':y[_0x524768(0x267)],'MoveUpIcon':y[_0x524768(0x1dc)],'ObjectLayersIcon':y['ObjectLayersIcon'],'ShapeFormatSettingIcon':y[_0x524768(0x3f9)],'TopmostIcon':y[_0x524768(0x11c)]})),this[_0x524768(0x17d)](_0x2855d3[_0x524768(0x3f3)](ce,he)),this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](le,fe)),_0x2855d3['get'](d['IMAGE_CLIP_SHAPE_PICKER_COMPONENT'])||this['disposeWithMe'](_0x2855d3[_0x524768(0x3f3)](d[_0x524768(0x401)],pe));}};ut=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],ut);let U=class extends a['Disposable']{constructor(_0x5c4a6b){const _0x10b09a=_0x5db5d0;super(),this[_0x10b09a(0x223)]=_0x5c4a6b,E(this,_0x10b09a(0x425),new u[(_0x10b09a(0x187))](null)),E(this,_0x10b09a(0x2ca),this['_editingParams$'][_0x10b09a(0x2ff)]()),E(this,_0x10b09a(0x13b),new u[(_0x10b09a(0x187))](!0x1)),E(this,_0x10b09a(0x18c),this[_0x10b09a(0x13b)][_0x10b09a(0x2ff)]()),E(this,'_completionFrame',void 0x0),this[_0x10b09a(0x17d)](this[_0x10b09a(0x223)]['permissionPointUpdate$'][_0x10b09a(0x426)](()=>{const _0x3480f1=_0x10b09a;let _0x11fedd=this[_0x3480f1(0x302)]();_0x11fedd!=null&&_0x11fedd[_0x3480f1(0x2cc)]&&!this[_0x3480f1(0x2cb)](_0x11fedd)&&this['setEditing'](null);}));}['dispose'](){const _0x222cc9=_0x5db5d0;this[_0x222cc9(0x295)](),this[_0x222cc9(0x425)][_0x222cc9(0x430)](null),this['_editingParams$'][_0x222cc9(0x2f1)](),this[_0x222cc9(0x13b)][_0x222cc9(0x430)](!0x1),this['_onSavingEditorData$'][_0x222cc9(0x2f1)](),super[_0x222cc9(0x1c4)]();}['setEditing'](_0x1bb58e){const _0x571978=_0x5db5d0;_0x1bb58e!=null&&_0x1bb58e[_0x571978(0x2cc)]&&!this[_0x571978(0x2cb)](_0x1bb58e)||(this[_0x571978(0x295)](),this['_editingParams$']['next'](_0x1bb58e),(_0x1bb58e==null||_0x1bb58e[_0x571978(0x2cc)]&&this[_0x571978(0x13b)]['getValue']())&&this[_0x571978(0x13b)][_0x571978(0x430)](!0x1));}[_0x5db5d0(0x2e5)](_0x3bd292){this['_onSavingEditorData$']['next'](_0x3bd292);}[_0x5db5d0(0x302)](){const _0x6aee82=_0x5db5d0;return this[_0x6aee82(0x425)]['getValue']();}[_0x5db5d0(0x2cb)](_0x313521){const _0x5a7b0e=_0x5db5d0;let _0x9eecf2=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o['WorkbookEditablePermission'](_0x313521['unitId'])['id']),_0x6294d9=this[_0x5a7b0e(0x223)]['getPermissionPoint'](new o[(_0x5a7b0e(0x3ba))](_0x313521[_0x5a7b0e(0x3bf)],_0x313521[_0x5a7b0e(0x20a)])['id']);return((_0x9eecf2==null?void 0x0:_0x9eecf2[_0x5a7b0e(0x30b)])??!0x0)&&((_0x6294d9==null?void 0x0:_0x6294d9[_0x5a7b0e(0x30b)])??!0x0);}[_0x5db5d0(0xdf)](_0x5eb90e){const _0x434881=_0x5db5d0;let _0xc0b4de=this[_0x434881(0x302)]();!_0xc0b4de||this[_0x434881(0x32f)]!==void 0x0||(this['setOnSavingEditorData'](!0x0),this[_0x434881(0x32f)]=requestAnimationFrame(()=>{const _0x513ebb=_0x434881;this[_0x513ebb(0x32f)]=void 0x0,this[_0x513ebb(0x302)]()===_0xc0b4de&&this[_0x513ebb(0x362)](null);}));}[_0x5db5d0(0x295)](){const _0x240ac2=_0x5db5d0;this[_0x240ac2(0x32f)]!==void 0x0&&(cancelAnimationFrame(this[_0x240ac2(0x32f)]),this[_0x240ac2(0x32f)]=void 0x0);}[_0x5db5d0(0x301)](){const _0x679323=_0x5db5d0;this[_0x679323(0x302)]()&&this['setEditing'](null);}};U=j([A(0x0,a[_0x5db5d0(0x390)])],U);let dt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x331adf,_0xf3c76,_0x3f1400,_0x327b81,_0x2dfdc2,_0x1f86e0){const _0x437abf=_0x5db5d0;super(),this[_0x437abf(0x2ea)]=_0x331adf,this[_0x437abf(0x418)]=_0xf3c76,this[_0x437abf(0x42f)]=_0x3f1400,this['_drawingManagerService']=_0x327b81,this[_0x437abf(0x3f5)]=_0x2dfdc2,this[_0x437abf(0x27f)]=_0x1f86e0,E(this,'_lastEditingShapeKey',null),this[_0x437abf(0x36d)](),this[_0x437abf(0x2d8)](),this['_initEditingParams']();}['_initEvents'](){const _0x5a1ff3=_0x5db5d0;let {scene:_0x3d23ba}=this[_0x5a1ff3(0x2ea)];this[_0x5a1ff3(0x17d)](_0x3d23ba[_0x5a1ff3(0x17b)][_0x5a1ff3(0x151)](_0x312e4c=>{const _0x59dd92=_0x5a1ff3;let {offsetX:_0x7ffda6,offsetY:_0x56e254}=_0x312e4c,_0x568704=_0x3d23ba[_0x59dd92(0x39b)](c[_0x59dd92(0x179)][_0x59dd92(0x2db)]([_0x7ffda6,_0x56e254]));if(_0x568704 instanceof O){let _0x21ae8d=this[_0x59dd92(0x27f)][_0x59dd92(0x11e)](_0x568704[_0x59dd92(0x3bf)],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]);if((0x0,n[_0x59dd92(0x2b3)])(this[_0x59dd92(0x27f)][_0x59dd92(0x2fa)](_0x568704['unitId'],_0x568704[_0x59dd92(0x20a)],_0x568704[_0x59dd92(0x340)]))||_0x21ae8d!=null&&_0x21ae8d[_0x59dd92(0x3bc)]()['formulaBinding'])return;this[_0x59dd92(0x42f)]['setEditing']({'visible':!0x0,'unitId':_0x568704[_0x59dd92(0x3bf)],'subUnitId':_0x568704[_0x59dd92(0x20a)],'shapeId':_0x568704[_0x59dd92(0x340)],'shapeKey':_0x568704[_0x59dd92(0xf4)]});}}));}[_0x5db5d0(0x2d8)](){const _0x110206=_0x5db5d0;this[_0x110206(0x17d)](this[_0x110206(0x3b1)][_0x110206(0x344)][_0x110206(0x426)](_0x497530=>{const _0x740017=_0x110206;if(_0x497530['length']===0x1){let _0x311cbf=_0x497530[0x0],_0x4e3203=this['_drawingManagerService'][_0x740017(0x15a)](_0x311cbf);if((_0x4e3203==null?void 0x0:_0x4e3203[_0x740017(0x3c1)])===a['DrawingTypeEnum'][_0x740017(0x19d)]){var _0xbb67c5;let _0x17ac26=this[_0x740017(0x42f)][_0x740017(0x302)]();if((_0x17ac26==null?void 0x0:_0x17ac26[_0x740017(0x340)])===_0x311cbf[_0x740017(0x3e3)]&&_0x17ac26['visible'])return;let _0x2d99ec=(0x0,n[_0x740017(0x2b3)])(this[_0x740017(0x27f)]['getShapeType'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf['subUnitId'],_0x311cbf['drawingId'])),_0x84fd0c=!!((_0xbb67c5=this[_0x740017(0x27f)]['getShapeModel'](_0x311cbf[_0x740017(0x3bf)],_0x311cbf[_0x740017(0x20a)],_0x311cbf[_0x740017(0x3e3)]))!=null&&_0xbb67c5[_0x740017(0x3bc)]()['formulaBinding']);(_0x2d99ec||_0x84fd0c)&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x740017(0x42f)][_0x740017(0xdf)]();}else this[_0x740017(0x42f)][_0x740017(0xdf)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x110206(0x386)][_0x110206(0x426)](_0x1f6f82=>{const _0x295d37=_0x110206;let _0x26586b=this['_shapeTextEditingService'][_0x295d37(0x302)]();_0x26586b&&_0x1f6f82[_0x295d37(0x203)](_0x4f1434=>_0x4f1434[_0x295d37(0x3e3)]===_0x26586b[_0x295d37(0x340)])&&this[_0x295d37(0x42f)][_0x295d37(0x362)](null);}));}[_0x5db5d0(0x31a)](){const _0x2bd697=_0x5db5d0;this['disposeWithMe'](this[_0x2bd697(0x42f)][_0x2bd697(0x2ca)][_0x2bd697(0x426)](_0x1454e8=>{const _0x400c50=_0x2bd697;let {scene:_0x3dfa16}=this[_0x400c50(0x2ea)];if(this[_0x400c50(0x15e)]){let _0x462736=_0x3dfa16[_0x400c50(0x1d5)](this[_0x400c50(0x15e)]);_0x462736&&_0x462736[_0x400c50(0x362)](!0x1);}if(_0x1454e8){let _0x88e21=!!_0x1454e8[_0x400c50(0x2cc)],_0x1fcf6f=_0x3dfa16[_0x400c50(0x1d5)](_0x1454e8['shapeKey']);_0x1fcf6f&&(_0x1fcf6f[_0x400c50(0x362)](_0x88e21),this[_0x400c50(0x15e)]=_0x1454e8[_0x400c50(0x183)]),this['_contextService'][_0x400c50(0x28a)](a[_0x400c50(0xee)],_0x88e21);}else this[_0x400c50(0x15e)]=null,this[_0x400c50(0x3f5)][_0x400c50(0x28a)](a['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};dt=j([A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(U)),A(0x3,s[_0x5db5d0(0x10d)]),A(0x4,a[_0x5db5d0(0xe8)]),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],dt);var ft=class extends dt{['_initEvents'](){const _0x1fd0a1=_0x5db5d0;let {scene:_0x38d5d0}=this['_context'],_0x4ed1be=this[_0x1fd0a1(0x418)][_0x1fd0a1(0x3b6)](e[_0x1fd0a1(0x2a7)]);this['disposeWithMe'](_0x38d5d0[_0x1fd0a1(0x17b)][_0x1fd0a1(0x151)](_0x50b97e=>{const _0x28e21e=_0x1fd0a1;let {offsetX:_0x51ce73,offsetY:_0x51931e}=_0x50b97e,_0x48166b=_0x38d5d0[_0x28e21e(0x39b)](c['Vector2'][_0x28e21e(0x2db)]([_0x51ce73,_0x51931e]));if(!(_0x48166b instanceof O))return;let _0x2f984f=this[_0x28e21e(0x27f)][_0x28e21e(0x11e)](_0x48166b['unitId'],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]);(0x0,n['isConnectorShape'])(this['_sheetsShapeService']['getShapeType'](_0x48166b[_0x28e21e(0x3bf)],_0x48166b[_0x28e21e(0x20a)],_0x48166b[_0x28e21e(0x340)]))||_0x2f984f!=null&&_0x2f984f['getShapeData']()[_0x28e21e(0x238)]||_0x4ed1be['open']('text',{'hostType':a[_0x28e21e(0x400)]['UNIVER_SHEET'],'unitId':_0x48166b[_0x28e21e(0x3bf)],'subUnitId':_0x48166b[_0x28e21e(0x20a)],'shapeId':_0x48166b[_0x28e21e(0x340)]});}));}};const pt={...nt},mt={'type':a[_0x5db5d0(0x33b)][_0x5db5d0(0x29a)],'id':_0x5db5d0(0x209),'handler'(){return!0x0;}};let W=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3b672e,_0x1c03dd,_0x589307,_0x1b3d80,_0x138a9e,_0x388d26,_0x193c64,_0x40dc6c,_0x1de8ce,_0x4b271b,_0x4c8151){const _0x25556f=_0x5db5d0;super(),this[_0x25556f(0x12c)]=_0x3b672e,this['_sidebarService']=_0x1c03dd,this['_menuManagerService']=_0x589307,this[_0x25556f(0x27f)]=_0x1b3d80,this[_0x25556f(0x272)]=_0x138a9e,this[_0x25556f(0x1ad)]=_0x388d26,this['_drawingManagerService']=_0x193c64,this[_0x25556f(0x351)]=_0x40dc6c,this[_0x25556f(0x3f5)]=_0x1de8ce,this['_renderManagerService']=_0x4b271b,this[_0x25556f(0x42f)]=_0x4c8151,E(this,_0x25556f(0x128),null),E(this,_0x25556f(0x1c1),null),E(this,_0x25556f(0x220),!0x1),E(this,_0x25556f(0x292),0x0),E(this,_0x25556f(0x314),null),E(this,_0x25556f(0x3d6),[]),this[_0x25556f(0x387)](),this['disposeWithMe'](this[_0x25556f(0x12c)]['getCurrentTypeOfUnit$'](a[_0x25556f(0x400)][_0x25556f(0x319)])['subscribe'](_0x5503a3=>{const _0x5d6c9b=_0x25556f;if(!_0x5503a3){var _0x3f2c76;(_0x3f2c76=this[_0x5d6c9b(0x128)])==null||_0x3f2c76['dispose']();}})),this[_0x25556f(0x14b)](),this[_0x25556f(0x41a)](),this[_0x25556f(0x17d)](this[_0x25556f(0x42f)][_0x25556f(0x2ca)][_0x25556f(0x426)](_0x5cc0a8=>{_0x5cc0a8&&this['_clearPopups']();}));}[_0x5db5d0(0x387)](){const _0x10b012=_0x5db5d0;this[_0x10b012(0x25c)][_0x10b012(0x2a6)](rt);}[_0x5db5d0(0x41a)](){const _0x36606c=_0x5db5d0;this[_0x36606c(0x314)]||=this[_0x36606c(0x17d)]((0x0,e[_0x36606c(0x11f)])(this[_0x36606c(0x104)],a[_0x36606c(0x400)]['UNIVER_SHEET'],_0x14c08f=>this['_popupMenuListener'](_0x14c08f)));}[_0x5db5d0(0x145)](_0x37064e,_0x9b459a,_0x2b2f3b){const _0x1456c3=_0x5db5d0;let _0x58a0df=this['_sheetsShapeService'][_0x1456c3(0x214)](_0x37064e,_0x9b459a,_0x2b2f3b),_0x1fcb39=this[_0x1456c3(0x27f)][_0x1456c3(0x287)](_0x37064e,_0x9b459a,_0x2b2f3b);return _0x58a0df!==void 0x0&&_0x1fcb39!==void 0x0?{'shapeData':_0x1fcb39,'shapeId':_0x2b2f3b,'shapeType':_0x58a0df,'unitId':_0x37064e,'subUnitId':_0x9b459a,'version':this[_0x1456c3(0x292)],'disableShapeOption':!0x1}:null;}[_0x5db5d0(0x3b2)](){const _0x96ac5a=_0x5db5d0;this[_0x96ac5a(0x3d6)]['forEach'](_0x4955fc=>_0x4955fc[_0x96ac5a(0x1c4)]()),this[_0x96ac5a(0x3d6)]['length']=0x0;}[_0x5db5d0(0x199)](_0x420afa){const _0x18a7f5=_0x5db5d0;let _0x1360f5=new a[(_0x18a7f5(0x3ab))]();return _0x1360f5['add'](_0x420afa[_0x18a7f5(0x13a)][_0x18a7f5(0x426)](()=>{const _0x4d9cb5=_0x18a7f5;let _0x2acd33=_0x420afa[_0x4d9cb5(0x299)]();if(this[_0x4d9cb5(0x3b2)](),this[_0x4d9cb5(0x220)]||_0x2acd33['size']>0x1)return;let _0x2a5ec9=_0x2acd33[_0x4d9cb5(0x3ae)]()[_0x4d9cb5(0x430)]()[_0x4d9cb5(0x30b)];if(!_0x2a5ec9)return;let _0x17a0f2=this['_drawingManagerService'][_0x4d9cb5(0x11d)](_0x2a5ec9['oKey']);if(!_0x17a0f2||_0x17a0f2[_0x4d9cb5(0x3c1)]!==a[_0x4d9cb5(0x3e6)]['DRAWING_SHAPE'])return;let {unitId:_0x41f976,subUnitId:_0x575878,drawingId:_0x4b40fb,drawingType:_0x2114e7}=_0x17a0f2,_0x3ce332=this[_0x4d9cb5(0x145)](_0x41f976,_0x575878,_0x4b40fb);if(!_0x3ce332)return;this[_0x4d9cb5(0x3f5)][_0x4d9cb5(0x28a)](a[_0x4d9cb5(0x377)],!0x0);let _0x439f0f=this[_0x4d9cb5(0x104)][_0x4d9cb5(0x2c4)](_0x41f976),_0x19c7de=((_0x439f0f==null?void 0x0:_0x439f0f[_0x4d9cb5(0x1d7)])===!0x1?_0x439f0f['with'](l['SheetCanvasPopManagerService']):this[_0x4d9cb5(0x351)])['attachPopupToObject'](_0x2a5ec9,{'componentKey':R,'direction':_0x4d9cb5(0x1b8),'offset':[0x0,e[_0x4d9cb5(0x363)]],'extraProps':{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb,'drawingType':_0x2114e7,'shapeType':_0x3ce332[_0x4d9cb5(0x17f)],'shapeData':_0x3ce332[_0x4d9cb5(0x398)]}});this[_0x4d9cb5(0x3d6)][_0x4d9cb5(0x1bd)](this[_0x4d9cb5(0x17d)](_0x19c7de)),this[_0x4d9cb5(0x3b1)]['getFocusDrawings']()[_0x4d9cb5(0x249)](_0x21a829=>_0x21a829[_0x4d9cb5(0x3bf)]===_0x41f976&&_0x21a829[_0x4d9cb5(0x20a)]===_0x575878&&_0x21a829[_0x4d9cb5(0x3e3)]===_0x4b40fb)||this[_0x4d9cb5(0x3b1)]['focusDrawing']([{'unitId':_0x41f976,'subUnitId':_0x575878,'drawingId':_0x4b40fb}]);})),_0x1360f5['add'](_0x420afa[_0x18a7f5(0x252)][_0x18a7f5(0x426)](()=>{const _0x55ac1e=_0x18a7f5;this[_0x55ac1e(0x3b2)](),this[_0x55ac1e(0x3f5)][_0x55ac1e(0x28a)](a[_0x55ac1e(0x377)],!0x1),this[_0x55ac1e(0x3b1)][_0x55ac1e(0x3aa)](null);})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa['changing$'][_0x18a7f5(0x426)](()=>{const _0x133be6=_0x18a7f5;this[_0x133be6(0x3b2)]();})),_0x1360f5[_0x18a7f5(0x381)](_0x420afa[_0x18a7f5(0x328)][_0x18a7f5(0x426)](()=>{const _0x4f8c0e=_0x18a7f5;this[_0x4f8c0e(0x3b2)]();})),(0x0,a[_0x18a7f5(0x105)])(()=>{const _0x5180e8=_0x18a7f5;_0x1360f5[_0x5180e8(0x1c4)](),this['_clearPopups']();});}[_0x5db5d0(0x14b)](){const _0x4b0eac=_0x5db5d0;this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x1ad)][_0x4b0eac(0x1aa)](_0x4a3753=>{const _0x51f9f0=_0x4b0eac;if(_0x4a3753['id']===B['id']){let {unitId:_0x223f7a,subUnitId:_0x5e7774,drawingId:_0x4bf5db}=_0x4a3753['params'];this[_0x51f9f0(0x292)]+=0x1,this[_0x51f9f0(0x1c1)]=this['_getShapeInfo'](_0x223f7a,_0x5e7774,_0x4bf5db),this['_clearPopups'](),this['_openShapeEditPanel']();}if(_0x4a3753['id']===mt['id']&&(this['_activeShapeInfo']=null,this[_0x51f9f0(0x2b1)]()),_0x4a3753['id']===i[_0x51f9f0(0x244)]['id']){let {unitId:_0x31c78c,subUnitId:_0x38c81d,shapeId:_0x3aba40}=_0x4a3753[_0x51f9f0(0x1a0)];if(this[_0x51f9f0(0x1c1)]&&this['_activeShapeInfo'][_0x51f9f0(0x340)]===_0x3aba40){let _0x741718=this[_0x51f9f0(0x145)](_0x31c78c,_0x38c81d,_0x3aba40);_0x741718&&(this['_shapeEditPanelVersion']+=0x1,_0x741718[_0x51f9f0(0x427)]=this[_0x51f9f0(0x292)],this[_0x51f9f0(0x1c1)]=_0x741718,this[_0x51f9f0(0x220)]&&this[_0x51f9f0(0x1d8)]());}}})),this[_0x4b0eac(0x17d)](this[_0x4b0eac(0x3b1)][_0x4b0eac(0x344)][_0x4b0eac(0x426)](_0x542674=>{const _0x36a08a=_0x4b0eac;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x542674[_0x36a08a(0x2fb)]===0x0){this[_0x36a08a(0x1c1)]=null,this['_closeShapeEditPanel']();return;}if(_0x542674[_0x36a08a(0x2fb)]===0x1&&_0x542674[0x0][_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)][_0x36a08a(0x19d)]&&(this[_0x36a08a(0x292)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)])){this[_0x36a08a(0x1d8)]();return;}let _0x6cdc25=_0x542674[_0x36a08a(0x38e)](_0x354156=>_0x354156[_0x36a08a(0x3c1)]===a[_0x36a08a(0x3e6)]['DRAWING_SHAPE']);if(_0x542674['length']>0x1&&_0x6cdc25['length']===_0x542674[_0x36a08a(0x2fb)]){if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0]['unitId'],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0]['drawingId']),this[_0x36a08a(0x1c1)]){this[_0x36a08a(0x1d8)]();return;}}else{if(this[_0x36a08a(0x292)]+=0x1,this[_0x36a08a(0x1c1)]=this[_0x36a08a(0x145)](_0x542674[0x0][_0x36a08a(0x3bf)],_0x542674[0x0][_0x36a08a(0x20a)],_0x542674[0x0][_0x36a08a(0x3e3)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x36a08a(0x3af)]=!0x0,this[_0x36a08a(0x1d8)]();return;}}this[_0x36a08a(0x2b1)]();}));}[_0x5db5d0(0x1d8)](){const _0x44aea2=_0x5db5d0;this[_0x44aea2(0x1c1)]&&(this['_sidebarDisposable']=this[_0x44aea2(0x2e1)]['open']({'id':I,'header':{'title':this['_localeService']['t'](_0x44aea2(0x21e))},'width':0x184,'children':{'label':I,...this[_0x44aea2(0x1c1)]},'onClose':()=>{const _0x21f547=_0x44aea2;this[_0x21f547(0x3b1)][_0x21f547(0x3aa)](null),this['_contextService'][_0x21f547(0x28a)](a[_0x21f547(0x377)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x44aea2(0x220)]=!0x0);}[_0x5db5d0(0x2b1)](){const _0x595963=_0x5db5d0;this['_isOpenedShapeEditPanel']=!0x1,this[_0x595963(0x2e1)][_0x595963(0xe6)](I),this[_0x595963(0x128)]=null,this[_0x595963(0x3f5)][_0x595963(0x28a)](a[_0x595963(0x377)],!0x1),this[_0x595963(0x3b1)][_0x595963(0x3aa)](null);}};W=j([A(0x0,a['IUniverInstanceService']),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x27c)])),A(0x2,t[_0x5db5d0(0x172)]),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x5,a[_0x5db5d0(0x2b9)]),A(0x6,s[_0x5db5d0(0x10d)]),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(l[_0x5db5d0(0x237)])),A(0x8,a['IContextService']),A(0x9,c[_0x5db5d0(0x226)]),A(0xa,(0x0,a['Inject'])(U))],W);var ht=class extends W{[_0x5db5d0(0x387)](){const _0x3b4a94=_0x5db5d0;this[_0x3b4a94(0x25c)]['mergeMenu'](pt);}[_0x5db5d0(0x316)](){const _0x16c15d=_0x5db5d0;this[_0x16c15d(0x351)]['registerFeatureMenu'](a[_0x16c15d(0x3e6)][_0x16c15d(0x19d)],(_0xb8a060,_0x5bc2f0,_0x2f4d07,_0x2f972b)=>{const _0x4de41f=_0x16c15d;let _0x2ecb1e=this['_sheetsShapeService'][_0x4de41f(0x214)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0xa5af80=this[_0x4de41f(0x27f)][_0x4de41f(0x287)](_0xb8a060,_0x5bc2f0,_0x2f4d07),_0x619213=_0x2ecb1e!==void 0x0&&!(0x0,n[_0x4de41f(0x2b3)])(_0x2ecb1e)&&!(_0xa5af80!=null&&_0xa5af80[_0x4de41f(0x238)]);return[{'label':_0x4de41f(0x279),'index':0x0,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x25b)},'disable':!0x1},..._0x619213?[{'label':_0x4de41f(0x375),'index':0x1,'commandId':ot['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'mode':_0x4de41f(0x152)},'disable':!0x1}]:[],{'label':_0x4de41f(0x321),'index':0x2,'commandId':m[_0x4de41f(0x346)]['id'],'commandParams':{'unitId':_0xb8a060,'drawings':[{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'drawingId':_0x2f4d07,'drawingType':_0x2f972b}]},'disable':!0x1},{'label':_0x4de41f(0x10a),'index':0x3,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipH':!0x0},'disable':!0x1},{'label':_0x4de41f(0x339),'index':0x4,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0xb8a060,'subUnitId':_0x5bc2f0,'shapeId':_0x2f4d07,'flipV':!0x0},'disable':!0x1}];},_0x16c15d(0x305));}[_0x5db5d0(0x199)](_0xd0132){const _0x2f7c0e=_0x5db5d0;this['_registerFeatureMenu']();let _0x569b86=new a[(_0x2f7c0e(0x3ab))](),_0x432e92=null,_0x22a651=()=>{const _0x55682b=_0x2f7c0e;if(!_0x432e92)return;let _0x472a20=this['_drawingManagerService']['getFocusDrawings'](),_0x4e2a32=_0x472a20[_0x55682b(0x2fb)]===0x0||_0x472a20[_0x55682b(0x2fb)]===0x1&&_0x472a20[_0x55682b(0x203)](_0x5cb60f=>_0x5cb60f[_0x55682b(0x3bf)]===(_0x432e92==null?void 0x0:_0x432e92['unitId'])&&_0x5cb60f[_0x55682b(0x20a)]===(_0x432e92==null?void 0x0:_0x432e92[_0x55682b(0x20a)])&&_0x5cb60f['drawingId']===(_0x432e92==null?void 0x0:_0x432e92['drawingId']));_0x432e92=null,_0x4e2a32&&(this['_contextService'][_0x55682b(0x28a)](a[_0x55682b(0x377)],!0x1),this[_0x55682b(0x3b1)][_0x55682b(0x3aa)](null));};return _0x569b86[_0x2f7c0e(0x381)](_0xd0132[_0x2f7c0e(0x13a)][_0x2f7c0e(0x426)](()=>{const _0x326ae9=_0x2f7c0e;let _0x42e1bc=_0xd0132[_0x326ae9(0x299)]();if(_0x42e1bc[_0x326ae9(0x3e0)]>0x1){_0x22a651();return;}let _0x95e6d0=_0x42e1bc['values']()[_0x326ae9(0x430)]()[_0x326ae9(0x30b)];if(!_0x95e6d0){_0x22a651();return;}let _0x47019c=this[_0x326ae9(0x3b1)][_0x326ae9(0x11d)](_0x95e6d0[_0x326ae9(0xf4)]);if(!_0x47019c||_0x47019c['drawingType']!==a[_0x326ae9(0x3e6)][_0x326ae9(0x19d)]){_0x22a651();return;}let {unitId:_0x215430,subUnitId:_0x160fe6,drawingId:_0x1a9851}=_0x47019c;_0x432e92={'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851},this[_0x326ae9(0x3f5)][_0x326ae9(0x28a)](a[_0x326ae9(0x377)],!0x0),this[_0x326ae9(0x3b1)][_0x326ae9(0x3fc)]()[_0x326ae9(0x249)](_0x549af8=>_0x549af8[_0x326ae9(0x3bf)]===_0x215430&&_0x549af8[_0x326ae9(0x20a)]===_0x160fe6&&_0x549af8[_0x326ae9(0x3e3)]===_0x1a9851)||this[_0x326ae9(0x3b1)][_0x326ae9(0x3aa)]([{'unitId':_0x215430,'subUnitId':_0x160fe6,'drawingId':_0x1a9851}]);})),_0x569b86['add'](_0xd0132[_0x2f7c0e(0x252)][_0x2f7c0e(0x426)](()=>{_0x22a651();})),(0x0,a[_0x2f7c0e(0x105)])(()=>{_0x569b86['dispose'](),_0x22a651();});}};function gt(_0x5363f4,_0x2c35e1,_0x5e63db,_0x28ac2f){const _0x58314a=_0x5db5d0;let _0x2bc670=(0x0,s[_0x58314a(0x24e)])(_0x5363f4,_0x2c35e1,_0x5e63db),_0x4ec426=[];for(let _0x470022 of _0x2c35e1){let _0x334f13=_0x2bc670[_0x58314a(0x3cf)][_0x58314a(0x3b6)](_0x470022['drawingId']),_0x1ada92=_0x28ac2f(_0x470022);!_0x334f13||!_0x1ada92||_0x4ec426[_0x58314a(0x1bd)]({'targetShapeId':_0x334f13,'source':_0x1ada92});}return _0x4ec426;}let G=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x363253,_0x1b55b3,_0x1cc450,_0x5f2e9e){const _0x19f573=_0x5db5d0;super(),this[_0x19f573(0x12c)]=_0x363253,this[_0x19f573(0x293)]=_0x1b55b3,this[_0x19f573(0x219)]=_0x1cc450,this[_0x19f573(0x27f)]=_0x5f2e9e,this['_initSheetChange']();}['_initSheetChange'](){const _0x5d75d8=_0x5db5d0;this[_0x5d75d8(0x17d)](this['_sheetInterceptorService'][_0x5d75d8(0x361)]({'getMutations':_0x309934=>{const _0x8711b6=_0x5d75d8;if(_0x309934['id']===o[_0x8711b6(0x2fd)]['id']){let _0x14296e=(0x0,o[_0x8711b6(0x169)])(this[_0x8711b6(0x12c)],_0x309934[_0x8711b6(0x1a0)]);if(!_0x14296e)return{'redos':[],'undos':[]};let {unitId:_0x1300ba,subUnitId:_0x4fe70c}=_0x14296e,_0x2d31c6=this[_0x8711b6(0x219)][_0x8711b6(0x343)](_0x1300ba,_0x4fe70c),_0x341637=Object[_0x8711b6(0x3ae)](_0x2d31c6)[_0x8711b6(0x38e)](_0x5f4aaf=>_0x5f4aaf[_0x8711b6(0x3c1)]===a[_0x8711b6(0x3e6)]['DRAWING_SHAPE']);if(_0x341637[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x4f396b=[],_0x23df5d=[];for(let _0x2a9091=0x0;_0x2a9091<_0x341637['length'];_0x2a9091++){let _0x6a92b2=_0x341637[_0x2a9091],_0x234fd4=this[_0x8711b6(0x27f)][_0x8711b6(0x11e)](_0x6a92b2[_0x8711b6(0x3bf)],_0x6a92b2[_0x8711b6(0x20a)],_0x6a92b2[_0x8711b6(0x3e3)]);_0x234fd4&&(_0x4f396b[_0x8711b6(0x1bd)]({'id':i[_0x8711b6(0x322)]['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2[_0x8711b6(0x3e3)]}}),_0x23df5d[_0x8711b6(0x1bd)]({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x1300ba,'subUnitId':_0x4fe70c,'shapeId':_0x6a92b2['drawingId'],'shapeType':_0x234fd4[_0x8711b6(0x2fa)](),'shapeData':JSON[_0x8711b6(0x40c)](JSON[_0x8711b6(0x36a)](_0x234fd4[_0x8711b6(0x3bc)]()))}}));}return{'redos':_0x4f396b,'undos':_0x23df5d};}else{if(_0x309934['id']===o[_0x8711b6(0x2d2)]['id']){let {unitId:_0x7469e4,subUnitId:_0x4521f2,targetSubUnitId:_0x4f19f2,copyContext:_0x593388}=_0x309934['params'];if(!_0x7469e4||!_0x4521f2||!_0x4f19f2)return{'redos':[],'undos':[]};let _0x4052d6=this['_sheetDrawingService'][_0x8711b6(0x343)](_0x7469e4,_0x4521f2),_0x2fa47d=Object[_0x8711b6(0x3ae)](_0x4052d6)['filter'](_0x1cfb5c=>_0x1cfb5c[_0x8711b6(0x3c1)]===a['DrawingTypeEnum'][_0x8711b6(0x19d)]);if(_0x2fa47d[_0x8711b6(0x2fb)]===0x0)return{'redos':[],'undos':[]};let _0x54600e=gt(_0x593388,_0x2fa47d,{'unitId':_0x7469e4,'sourceSubUnitId':_0x4521f2,'targetSubUnitId':_0x4f19f2},_0x397ed4=>{const _0x9ea326=_0x8711b6;let _0x5ba11d=this[_0x9ea326(0x27f)][_0x9ea326(0x11e)](_0x397ed4['unitId'],_0x397ed4[_0x9ea326(0x20a)],_0x397ed4[_0x9ea326(0x3e3)]);if(_0x5ba11d)return{'shapeType':_0x5ba11d[_0x9ea326(0x2fa)](),'shapeData':JSON[_0x9ea326(0x40c)](JSON[_0x9ea326(0x36a)](_0x5ba11d[_0x9ea326(0x3bc)]()))};}),_0x97f60c=[],_0x289222=[];for(let {targetShapeId:_0x31a7e1,source:_0x1143ee}of _0x54600e)_0x97f60c['push']({'id':i[_0x8711b6(0x34b)]['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1,'shapeType':_0x1143ee[_0x8711b6(0x17f)],'shapeData':_0x1143ee[_0x8711b6(0x398)]}}),_0x289222[_0x8711b6(0x1bd)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x7469e4,'subUnitId':_0x4f19f2,'shapeId':_0x31a7e1}});return{'redos':_0x97f60c,'undos':_0x289222};}}return{'redos':[],'undos':[]};}}));}};G=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x1c8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x263)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m['ISheetDrawingService'])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],G);let K=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x344252,_0x203167,_0x10c88d,_0x3825f5,_0x15b87c,_0x2ab997){const _0xce577a=_0x5db5d0;super(),this[_0xce577a(0x1ad)]=_0x344252,this[_0xce577a(0x104)]=_0x203167,this[_0xce577a(0x3b1)]=_0x10c88d,this[_0xce577a(0x102)]=_0x3825f5,this[_0xce577a(0x38b)]=_0x15b87c,this['_sheetDrawingShapeRenderController']=_0x2ab997,E(this,_0xce577a(0x3e2),new Set()),this[_0xce577a(0x29e)]();}[_0x5db5d0(0x29e)](){this['_drawingAddListener'](),this['_commandExecutedListener'](),this['_shapeUpdateListener']();}[_0x5db5d0(0x261)](){const _0x30b65b=_0x5db5d0;this[_0x30b65b(0x17d)](this[_0x30b65b(0x3b1)]['add$']['subscribe'](_0xcce4f5=>{const _0x24581d=_0x30b65b;this[_0x24581d(0x16e)](_0xcce4f5);}));}[_0x5db5d0(0x1d0)](){const _0x2b3c50=_0x5db5d0;this[_0x2b3c50(0x17d)](this[_0x2b3c50(0x1ad)][_0x2b3c50(0x1aa)]((_0xdbea49,_0x38f0cb)=>{const _0xf55273=_0x2b3c50;if(_0xdbea49['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x4d6411,subUnitId:_0x4233b4,shapeId:_0x4980b6}=_0xdbea49[_0xf55273(0x1a0)],_0x37e378=this['_getSceneAndTransformerByDrawingSearch'](_0x4d6411),_0x97f5d6=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x4d6411,'subUnitId':_0x4233b4,'drawingId':_0x4980b6}),_0x2849f9=_0x37e378==null?void 0x0:_0x37e378['scene'][_0xf55273(0x1d5)](_0x97f5d6);_0x2849f9&&(this[_0xf55273(0x2ec)][_0xf55273(0x101)](_0x2849f9),this[_0xf55273(0x2ec)][_0xf55273(0x1ce)](_0x2849f9,{'unitId':_0x4d6411,'subUnitId':_0x4233b4,'shapeId':_0x4980b6}),_0x2849f9[_0xf55273(0x1e9)](!0x0));return;}if(_0xdbea49['id']===i[_0xf55273(0x34b)]['id']){var _0x45b17e;let {unitId:_0x391156,subUnitId:_0x5cb063,shapeId:_0xeb4d7f}=_0xdbea49[_0xf55273(0x1a0)],_0xb7ec10=this['_getSceneAndTransformerByDrawingSearch'](_0x391156);if(_0xb7ec10==null)return;let {scene:_0xa11456}=_0xb7ec10,_0x24bb92=(0x0,s[_0xf55273(0x1f8)])({'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}),_0x4b3d2b=_0xa11456[_0xf55273(0x1d5)](_0x24bb92);if(!((_0x45b17e=this[_0xf55273(0x104)][_0xf55273(0x2c4)](_0x391156))!=null&&_0x45b17e[_0xf55273(0x35a)](l[_0xf55273(0x364)])['getSkeleton'](_0x5cb063)))return!0x1;if(_0x4b3d2b)return;if(_0x38f0cb!=null&&_0x38f0cb[_0xf55273(0x33d)]){queueMicrotask(()=>{const _0x48aa8e=_0xf55273;this['_disposed']||this[_0x48aa8e(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);});return;}this[_0xf55273(0x16e)]([{'unitId':_0x391156,'subUnitId':_0x5cb063,'drawingId':_0xeb4d7f}]);}}));}['_shapeUpdateListener'](){const _0x386488=_0x5db5d0;this[_0x386488(0x17d)](this[_0x386488(0x3b1)][_0x386488(0xe7)][_0x386488(0x426)](_0x12cb2b=>{const _0x240f41=_0x386488;_0x12cb2b[_0x240f41(0xe5)](_0x2110a9=>{const _0x429ae8=_0x240f41;let {unitId:_0x3b68ae,subUnitId:_0x410c30,drawingId:_0x4c039b}=_0x2110a9,_0x26db19=this[_0x429ae8(0x3b1)][_0x429ae8(0x15a)](_0x2110a9);if(_0x26db19==null)return;let {transform:_0xe966cb,drawingType:_0x39ab4e,srcRect:_0x166b5a,prstGeom:_0x471661}=_0x26db19;if(_0x39ab4e!==a[_0x429ae8(0x3e6)][_0x429ae8(0x19d)])return;let _0x75123c=this[_0x429ae8(0x21d)](_0x3b68ae);if(_0x75123c==null)return;let {scene:_0x53f230,transformer:_0x5a8456}=_0x75123c;if(_0xe966cb==null)return!0x0;let _0x2f6339=(0x0,s[_0x429ae8(0x1f8)])({'unitId':_0x3b68ae,'subUnitId':_0x410c30,'drawingId':_0x4c039b}),_0x392f73=_0x53f230[_0x429ae8(0x1d5)](_0x2f6339);if(_0x392f73==null)return!0x0;_0x392f73[_0x429ae8(0x30d)](_0x166b5a),_0x392f73[_0x429ae8(0x2d4)](_0x471661);});}));}[_0x5db5d0(0x16e)](_0x2472cd){const _0x302e83=_0x5db5d0;for(let _0x3dd730 of _0x2472cd){var _0x3193d8;let {unitId:_0x91a924,subUnitId:_0x165142,drawingId:_0x5b78e9}=_0x3dd730,_0x4a5f6f=this[_0x302e83(0x21d)](_0x91a924),_0x26e4c0=(_0x3193d8=(0x0,d[_0x302e83(0x202)])(this[_0x302e83(0x102)],_0x91a924))==null?void 0x0:_0x3193d8[_0x302e83(0x20a)];if(_0x4a5f6f==null||_0x26e4c0!==_0x165142)return;let _0x554e57=(0x0,s[_0x302e83(0x1f8)])({'unitId':_0x91a924,'subUnitId':_0x165142,'drawingId':_0x5b78e9});if(this[_0x302e83(0x3e2)][_0x302e83(0x18e)](_0x554e57)||_0x4a5f6f['scene']['getObjectIncludeInGroup'](_0x554e57)!=null)return;let _0x5b9acf=this[_0x302e83(0x3b1)]['getDrawingByParam'](_0x3dd730);if(_0x5b9acf==null||_0x5b9acf[_0x302e83(0x3c1)]!==a[_0x302e83(0x3e6)][_0x302e83(0x19d)])return;if((0x0,n['isConnectorShape'])((_0x5b9acf[_0x302e83(0x1eb)]||{})[_0x302e83(0x17f)])){let _0x1b4c45=_0x5b9acf['transform'];_0x1b4c45&&(_0x5b9acf[_0x302e83(0x32a)]={..._0x1b4c45,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x302e83(0x381)](_0x554e57);try{this[_0x302e83(0x2ec)][_0x302e83(0x308)](_0x5b9acf,_0x4a5f6f[_0x302e83(0x2e7)]);}finally{this[_0x302e83(0x3e2)]['delete'](_0x554e57);}queueMicrotask(()=>{const _0x2411dd=_0x302e83;if(this[_0x2411dd(0x383)])return;let _0x392fea=(0x0,s[_0x2411dd(0x1f8)])(_0x3dd730);if(!_0x4a5f6f['scene'][_0x2411dd(0x1d5)](_0x392fea))return;let _0x1548fb=this[_0x2411dd(0x3b1)][_0x2411dd(0x15a)](_0x3dd730);_0x1548fb&&this[_0x2411dd(0x3b1)][_0x2411dd(0x131)]([_0x1548fb]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x2fecb8){const _0x4e455b=_0x5db5d0;if(_0x2fecb8==null)return;let _0x2c2a2a=this['_renderManagerService']['getRenderUnitById'](_0x2fecb8),_0x57ce15=_0x2c2a2a==null?void 0x0:_0x2c2a2a[_0x4e455b(0x2e7)];return _0x57ce15==null?null:{'scene':_0x57ce15,'transformer':_0x57ce15['getTransformerByCreate']()};}};K=j([A(0x0,a['ICommandService']),A(0x1,c[_0x5db5d0(0x226)]),A(0x2,s[_0x5db5d0(0x10d)]),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,(0x0,a['Inject'])(d[_0x5db5d0(0x231)])),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(M))],K);const _t={'normal':{'fill':n['ShapeDefaultConfig'][_0x5db5d0(0x33c)],'stroke':n[_0x5db5d0(0x2b4)][_0x5db5d0(0x1fe)],'strokeWidth':n[_0x5db5d0(0x2b4)]['cxnPointStrokeWidth']},'highlighted':{'fill':_0x5db5d0(0x1bf),'stroke':_0x5db5d0(0x1bb),'strokeWidth':0x2}};var vt=class extends c['Shape']{constructor(_0xed9782,_0x2a9b49){const _0x24b09c=_0x5db5d0;super(_0xed9782,_0x2a9b49),E(this,'_targetShapeId',''),E(this,_0x24b09c(0x270),-0x1),E(this,_0x24b09c(0x3d2),''),E(this,_0x24b09c(0x23c),''),E(this,_0x24b09c(0x37d),!0x1),_0x2a9b49&&this[_0x24b09c(0x3a1)](_0x2a9b49);}['getConnectionInfo'](){const _0x572f3f=_0x5db5d0;return{'unitId':this[_0x572f3f(0x3d2)],'subUnitId':this[_0x572f3f(0x23c)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x572f3f(0x270)]};}[_0x5db5d0(0xed)](_0x5cecd2){const _0x37a64f=_0x5db5d0;this['_isHighlighted']!==_0x5cecd2&&(this[_0x37a64f(0x37d)]=_0x5cecd2,this[_0x37a64f(0x1e9)](!0x0));}[_0x5db5d0(0x2ce)](){return this['_isHighlighted'];}['setShapeProps'](_0xeb10d8){const _0x536d00=_0x5db5d0;_0xeb10d8[_0x536d00(0x26f)]!==void 0x0&&(this['_targetShapeId']=_0xeb10d8['targetShapeId']),_0xeb10d8['cxnIndex']!==void 0x0&&(this[_0x536d00(0x270)]=_0xeb10d8[_0x536d00(0xfe)]),_0xeb10d8[_0x536d00(0x3bf)]!==void 0x0&&(this['_unitId']=_0xeb10d8[_0x536d00(0x3bf)]),_0xeb10d8['subUnitId']!==void 0x0&&(this[_0x536d00(0x23c)]=_0xeb10d8[_0x536d00(0x20a)]),_0xeb10d8['isHighlighted']!==void 0x0&&(this[_0x536d00(0x37d)]=_0xeb10d8['isHighlighted']),this['transformByState']({'width':_0xeb10d8[_0x536d00(0x2ad)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2,'height':_0xeb10d8[_0x536d00(0x3c5)]??n[_0x536d00(0x2b4)][_0x536d00(0xf1)]*0x2});}[_0x5db5d0(0x124)](_0x3b21d2){const _0x5ead54=_0x5db5d0;let _0x2df0f8=this['_isHighlighted']?_t[_0x5ead54(0x1c6)]:_t[_0x5ead54(0x2f2)];c[_0x5ead54(0x360)][_0x5ead54(0x2d7)](_0x3b21d2,{'radius':n[_0x5ead54(0x2b4)]['cxnPointRadius'],'fill':_0x2df0f8[_0x5ead54(0x31b)],'stroke':_0x2df0f8[_0x5ead54(0x2b0)],'strokeWidth':_0x2df0f8[_0x5ead54(0x2cd)],'evented':!0x0});}};let q=class extends a['Disposable']{constructor(_0x4cb6f7,_0x414cb0,_0x14e858,_0x1b4489){const _0x941717=_0x5db5d0;super(),this[_0x941717(0x2ea)]=_0x4cb6f7,this[_0x941717(0x104)]=_0x414cb0,this['_drawingManagerService']=_0x14e858,this[_0x941717(0x27f)]=_0x1b4489,E(this,_0x941717(0xea),[]),E(this,'_activeTargetShapeId',null),E(this,_0x941717(0x365),-0x1),E(this,_0x941717(0x16a),null),E(this,_0x941717(0x3d2),''),E(this,_0x941717(0x23c),''),E(this,_0x941717(0x3a8),null);}[_0x5db5d0(0x1b4)](_0x385861,_0x168ee9,_0xf5aed1,_0x22ae72){const _0x147451=_0x5db5d0;this[_0x147451(0x16a)]=_0x385861,this[_0x147451(0x3d2)]=_0x168ee9,this[_0x147451(0x23c)]=_0xf5aed1,this[_0x147451(0x3a8)]=_0x22ae72;}['updateConnectionDetection'](_0x3604f2){const _0x1571fd=_0x5db5d0;if(!this['_currentScene'])return null;let _0x8fe3da=this['_findShapeAtPoint'](_0x3604f2);return _0x8fe3da?(this[_0x1571fd(0xd9)]!==_0x8fe3da['shapeId']&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0x26e)](_0x8fe3da[_0x1571fd(0x340)],_0x8fe3da[_0x1571fd(0x110)]),this[_0x1571fd(0xd9)]=_0x8fe3da[_0x1571fd(0x340)]),this[_0x1571fd(0x2f8)](_0x3604f2)):(this[_0x1571fd(0xd9)]!==null&&(this[_0x1571fd(0x2ed)](),this[_0x1571fd(0xd9)]=null),null);}[_0x5db5d0(0x355)](){const _0x3382c2=_0x5db5d0;this[_0x3382c2(0x2ed)](),this[_0x3382c2(0x16a)]=null,this[_0x3382c2(0xd9)]=null,this[_0x3382c2(0x365)]=-0x1,this[_0x3382c2(0x3a8)]=null;}[_0x5db5d0(0x274)](){const _0x1af925=_0x5db5d0;return this[_0x1af925(0xd9)]===null||this[_0x1af925(0x365)]<0x0?null:{'shapeId':this[_0x1af925(0xd9)],'cxnIndex':this[_0x1af925(0x365)]};}[_0x5db5d0(0x3f4)](_0x1f5207){const _0x175ad0=_0x5db5d0;let _0x262dd5=this['_drawingManagerService']['getDrawingData'](this[_0x175ad0(0x3d2)],this[_0x175ad0(0x23c)]);for(let _0x533e8c of Object[_0x175ad0(0x29c)](_0x262dd5)){if(_0x533e8c===this[_0x175ad0(0x3a8)]||_0x262dd5[_0x533e8c][_0x175ad0(0x3c1)]!==a['DrawingTypeEnum'][_0x175ad0(0x19d)])continue;let _0x5abdc5=this[_0x175ad0(0x27f)][_0x175ad0(0x11e)](this[_0x175ad0(0x3d2)],this['_subUnitId'],_0x533e8c);if(!_0x5abdc5||(0x0,n[_0x175ad0(0x2b3)])(_0x5abdc5[_0x175ad0(0x2fa)]())||_0x5abdc5[_0x175ad0(0x186)]()[_0x175ad0(0x2fb)]===0x0||!this[_0x175ad0(0x16a)])continue;let _0x5dac57=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this[_0x175ad0(0x23c)],'drawingId':_0x533e8c}),_0x30515=this['_currentScene'][_0x175ad0(0x1d5)](_0x5dac57);if(!_0x30515)continue;let {left:_0x40fbd0,top:_0x57f7bb,width:_0x45883e,height:_0xa0854f}=_0x30515['getRealBound'](),_0x1e40df=_0x40fbd0+_0x45883e/0x2,_0x2be0c2=_0x57f7bb+_0xa0854f/0x2,_0x184e51=_0x30515[_0x175ad0(0x32a)][_0x175ad0(0x28c)](),_0x8454b6=new c[(_0x175ad0(0x1b2))]([_0x184e51[0x0],_0x184e51[0x1],_0x184e51[0x2],_0x184e51[0x3],_0x1e40df,_0x2be0c2]),_0x3b58c7=_0x30515['getParent'](),_0x3594e7=(_0x30515['isInGroup']&&(_0x3b58c7==null?void 0x0:_0x3b58c7[_0x175ad0(0x171)])===c[_0x175ad0(0x3b5)][_0x175ad0(0x2e4)]?_0x3b58c7[_0x175ad0(0x17c)][_0x175ad0(0x2e8)](_0x8454b6):_0x8454b6)[_0x175ad0(0x1e2)]()[_0x175ad0(0x320)](_0x1f5207),_0x26f4f5=_0x45883e/0x2,_0x5407bd=_0xa0854f/0x2;if(_0x3594e7['x']>=-_0x26f4f5-0x5&&_0x3594e7['x']<=_0x26f4f5+0x5&&_0x3594e7['y']>=-_0x5407bd-0x5&&_0x3594e7['y']<=_0x5407bd+0x5)return{'shapeId':_0x533e8c,'shapeModel':_0x5abdc5};}return null;}[_0x5db5d0(0x26e)](_0x51f646,_0x3cb5a2){const _0x2c9220=_0x5db5d0;if(!this['_currentScene'])return;let _0x2dfe7d=(0x0,s[_0x2c9220(0x1f8)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x51f646}),_0x281763=this['_currentScene'][_0x2c9220(0x1d5)](_0x2dfe7d);if(!_0x281763)return;let {left:_0x551c5a,top:_0x54f4c1,width:_0x6ef823,height:_0x2d67e6}=_0x281763[_0x2c9220(0x112)](),_0x258810=_0x551c5a+_0x6ef823/0x2,_0x5174b3=_0x54f4c1+_0x2d67e6/0x2,_0x4adbec=_0x281763[_0x2c9220(0x32a)][_0x2c9220(0x28c)](),_0x355203=new c['Transform']([_0x4adbec[0x0],_0x4adbec[0x1],_0x4adbec[0x2],_0x4adbec[0x3],_0x258810,_0x5174b3]),_0x1966d0=_0x281763[_0x2c9220(0x20e)](),_0x17e4c8=_0x281763[_0x2c9220(0x289)]&&(_0x1966d0==null?void 0x0:_0x1966d0[_0x2c9220(0x171)])===c[_0x2c9220(0x3b5)]['GROUP']?_0x1966d0[_0x2c9220(0x17c)][_0x2c9220(0x2e8)](_0x355203):_0x355203;_0x3cb5a2[_0x2c9220(0x141)]({'width':_0x6ef823,'height':_0x2d67e6});let _0xe17354=_0x3cb5a2[_0x2c9220(0x186)]();for(let _0x356827 of _0xe17354){let _0x5cf946=_0x356827['x']-_0x6ef823/0x2,_0x5f1734=_0x356827['y']-_0x2d67e6/0x2,_0x53cc8a=_0x17e4c8[_0x2c9220(0x320)]({'x':_0x5cf946,'y':_0x5f1734}),_0x45c77c=_0x53cc8a['x'],_0x360fd7=_0x53cc8a['y'],_0x46365b=new vt(_0x2c9220(0x278)+_0x51f646+'-'+_0x356827[_0x2c9220(0x3b0)],{'left':_0x45c77c-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'top':_0x360fd7-n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)],'targetShapeId':_0x51f646,'cxnIndex':_0x356827['index'],'unitId':this[_0x2c9220(0x3d2)],'subUnitId':this['_subUnitId'],'width':n[_0x2c9220(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x2c9220(0x2b4)][_0x2c9220(0xf1)]*0x2,'zIndex':c[_0x2c9220(0x3a9)]+0x2,'evented':!0x1});this[_0x2c9220(0xea)][_0x2c9220(0x1bd)](_0x46365b),this[_0x2c9220(0x16a)][_0x2c9220(0x251)](_0x46365b,c[_0x2c9220(0x3a9)]+0x2);}}[_0x5db5d0(0x2f8)](_0x4e56e2){const _0x3eac07=_0x5db5d0;let _0x1679d1=null,_0x7d2d22=0x1/0x0,_0x355c79=null;for(let _0x416373 of this['_connectionSiteObjects']){let _0x145192=_0x416373[_0x3eac07(0x42e)]+n[_0x3eac07(0x2b4)][_0x3eac07(0xf1)],_0x43c3d5=_0x416373['top']+n[_0x3eac07(0x2b4)]['cxnPointRadius'],_0x3ba901=_0x4e56e2['x']-_0x145192,_0x4e5add=_0x4e56e2['y']-_0x43c3d5,_0x467d20=Math[_0x3eac07(0x1b1)](_0x3ba901*_0x3ba901+_0x4e5add*_0x4e5add);_0x467d20<_0x7d2d22&&(_0x7d2d22=_0x467d20,_0x1679d1=_0x416373,_0x355c79={'x':_0x145192,'y':_0x43c3d5});}let _0x35583f=_0x7d2d22<=0xa&&_0x1679d1?_0x1679d1[_0x3eac07(0x2a4)]()[_0x3eac07(0xfe)]:-0x1;if(_0x35583f!==this[_0x3eac07(0x365)]){for(let _0x1c2bbb of this[_0x3eac07(0xea)]){let _0x38fa60=_0x1c2bbb[_0x3eac07(0x2a4)]();_0x1c2bbb['setHighlighted'](_0x38fa60[_0x3eac07(0xfe)]===_0x35583f);}this[_0x3eac07(0x365)]=_0x35583f;}if(_0x7d2d22<=0xa&&_0x1679d1&&_0x355c79){let _0xbfe3ef=_0x1679d1[_0x3eac07(0x2a4)](),_0xc3f12e=this[_0x3eac07(0x318)](_0xbfe3ef['shapeId'],_0xbfe3ef['cxnIndex']);return{'shapeId':_0xbfe3ef[_0x3eac07(0x340)],'cxnIndex':_0xbfe3ef['cxnIndex'],'unitId':_0xbfe3ef['unitId'],'subUnitId':_0xbfe3ef['subUnitId'],'worldPoint':_0x355c79,'angle':_0xc3f12e};}return null;}['_getConnectionSiteAngle'](_0x945b2a,_0x5aef67){const _0x1ec1c1=_0x5db5d0;let _0x112067=this[_0x1ec1c1(0x27f)][_0x1ec1c1(0x11e)](this['_unitId'],this[_0x1ec1c1(0x23c)],_0x945b2a);if(!_0x112067)return 0x0;let _0x5a61d6=this[_0x1ec1c1(0x3b1)][_0x1ec1c1(0x15a)]({'unitId':this[_0x1ec1c1(0x3d2)],'subUnitId':this[_0x1ec1c1(0x23c)],'drawingId':_0x945b2a});if(!(_0x5a61d6!=null&&_0x5a61d6[_0x1ec1c1(0x32a)]))return 0x0;let {width:_0x1252ad=0x0,height:_0x3d71ad=0x0,flipX:_0x5dc7ff=!0x1,flipY:_0x18c9db=!0x1}=_0x5a61d6[_0x1ec1c1(0x32a)];_0x112067[_0x1ec1c1(0x141)]({'width':_0x1252ad,'height':_0x3d71ad});let _0x5a91a5=_0x112067[_0x1ec1c1(0x186)]()['find'](_0x3f1312=>_0x3f1312[_0x1ec1c1(0x3b0)]===_0x5aef67);if(!_0x5a91a5)return 0x0;let _0x56affa=_0x5a91a5[_0x1ec1c1(0x3c7)]/0xea60;return _0x5dc7ff&&(_0x56affa=0xb4-_0x56affa),_0x18c9db&&(_0x56affa=-_0x56affa),_0x56affa=(_0x56affa%0x168+0x168)%0x168,_0x56affa;}[_0x5db5d0(0x2ed)](){const _0x187f19=_0x5db5d0;for(let _0x39d87d of this[_0x187f19(0xea)])_0x39d87d[_0x187f19(0x1c4)]();this[_0x187f19(0xea)]=[],this['_highlightedSiteIndex']=-0x1;}['dispose'](){const _0x55708b=_0x5db5d0;this['_clearConnectionSites'](),super[_0x55708b(0x1c4)]();}};q=j([A(0x1,(0x0,a['Inject'])(c[_0x5db5d0(0x226)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(s[_0x5db5d0(0x10d)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)]))],q);let J=class extends a['Disposable']{constructor(_0x45758c,_0x4c21f6,_0x2ad2ef,_0x2c34a9,_0x3733c3){const _0x4395a3=_0x5db5d0;super(),this[_0x4395a3(0x3d9)]=_0x45758c,this['_sheetClipboardService']=_0x4c21f6,this[_0x4395a3(0x219)]=_0x2ad2ef,this['_shapeService']=_0x2c34a9,this[_0x4395a3(0x2c2)]=_0x3733c3,E(this,_0x4395a3(0xfb),void 0x0),this['_initCopyPaste'](),this[_0x4395a3(0x31c)]();}get[_0x5db5d0(0x357)](){const _0x3f5ece=_0x5db5d0;return this[_0x3f5ece(0x219)][_0x3f5ece(0x3fc)]();}['_registerGroupFeaturePasteHook'](){const _0x3547da=_0x5db5d0;this[_0x3547da(0x2c2)][_0x3547da(0x3fd)](({fromUnitId:_0x570e2c,fromSubUnitId:_0x25ec4b,toUnitId:_0x5342c2,toSubUnitId:_0x13f1d8,idMap:_0x369d24})=>{const _0x56e4c3=_0x3547da;let _0x24f95b=[],_0x1d4e28=[];for(let [_0x5a9799,_0x1a29ec]of _0x369d24[_0x56e4c3(0x2d0)]()){let _0x539d4e=this[_0x56e4c3(0x1f4)][_0x56e4c3(0x11e)](_0x570e2c,_0x25ec4b,_0x5a9799);if(!_0x539d4e)continue;let _0x3fcebf=_0x539d4e[_0x56e4c3(0x2fa)](),_0x11a4b3=JSON[_0x56e4c3(0x40c)](JSON[_0x56e4c3(0x36a)](_0x539d4e[_0x56e4c3(0x3bc)]()));if(_0x11a4b3[_0x56e4c3(0x42b)]){var _0x2142e1,_0x559885;let _0x5da6de=(_0x2142e1=_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)])==null?void 0x0:_0x2142e1[_0x56e4c3(0x340)],_0x50a0b5=(_0x559885=_0x11a4b3[_0x56e4c3(0x42b)]['to'])==null?void 0x0:_0x559885[_0x56e4c3(0x340)],_0x1d7059=!_0x5da6de||_0x369d24[_0x56e4c3(0x18e)](_0x5da6de),_0x32b923=!_0x50a0b5||_0x369d24['has'](_0x50a0b5);_0x1d7059&&_0x5da6de&&_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]?_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]={..._0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x5da6de)}:_0x11a4b3[_0x56e4c3(0x42b)][_0x56e4c3(0x10f)]=void 0x0,_0x32b923&&_0x50a0b5&&_0x11a4b3[_0x56e4c3(0x42b)]['to']?_0x11a4b3[_0x56e4c3(0x42b)]['to']={..._0x11a4b3[_0x56e4c3(0x42b)]['to'],'shapeId':_0x369d24[_0x56e4c3(0x3b6)](_0x50a0b5)}:_0x11a4b3['relation']['to']=void 0x0;}_0x24f95b['push']({'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec,'shapeType':_0x3fcebf,'shapeData':_0x11a4b3}}),_0x1d4e28[_0x56e4c3(0x1bd)]({'id':i[_0x56e4c3(0x322)]['id'],'params':{'unitId':_0x5342c2,'subUnitId':_0x13f1d8,'shapeId':_0x1a29ec}});}return{'redos':_0x24f95b,'undos':_0x1d4e28};});}[_0x5db5d0(0x12f)](){const _0x3e6ca8=_0x5db5d0;this[_0x3e6ca8(0x17d)](this[_0x3e6ca8(0x2f0)][_0x3e6ca8(0x38c)]({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x3e456b,_0x268c27,_0x2fb0bf)=>{const _0x466b91=_0x3e6ca8;this[_0x466b91(0xfb)]=null;let _0x36c8e=this[_0x466b91(0x357)][_0x466b91(0x38e)](_0x21f694=>_0x21f694[_0x466b91(0x3c1)]===a[_0x466b91(0x3e6)]['DRAWING_SHAPE']);return _0x36c8e[_0x466b91(0x2fb)]===0x0?!0x1:(this[_0x466b91(0xfb)]={'unitId':_0x3e456b,'subUnitId':_0x268c27,'copyType':_0x2fb0bf,'drawings':_0x36c8e},!0x0);},'onBeforeCopy':(_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137)=>{const _0x463ab4=_0x3e6ca8;this['_copyInfo']=null,this[_0x463ab4(0x405)](_0x25d09e,_0xe7ce0b,_0x2be9c6,_0x21f137);},'onPasteCells':(_0x421dfa,_0x165bd6,_0x1533f2,_0x595f4c)=>{const _0x381b54=_0x3e6ca8;if(!_0x595f4c['copyId']||!_0x421dfa||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4c3ef6}=_0x595f4c;return _0x4c3ef6===l[_0x381b54(0x41b)][_0x381b54(0x3d5)]?this[_0x381b54(0x1f7)](_0x165bd6,this['_copyInfo']['copyType']===l['COPY_TYPE'][_0x381b54(0x1e1)]):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x58473f,_0x5e957b,_0x5d1c43,_0x5d7444){const _0x2ac386=_0x5db5d0;let _0x4443bd=this[_0x2ac386(0x3d9)][_0x2ac386(0x23a)](_0x58473f,_0x5e957b);if(!_0x4443bd)return;let _0x1ac8dd=(0x0,o[_0x2ac386(0x22b)])(_0x4443bd,_0x5d1c43);if(!_0x1ac8dd)return;let {startX:_0x3762ec,endX:_0x34648d,startY:_0x2f8193,endY:_0x5965ae}=_0x1ac8dd,_0x1b1fb2=this['_sheetDrawingService'][_0x2ac386(0x343)](_0x58473f,_0x5e957b),_0x350254=[];for(let [_0x1bd966,_0x19717b]of Object[_0x2ac386(0x2d0)](_0x1b1fb2)){if(_0x19717b[_0x2ac386(0x3c1)]!==a[_0x2ac386(0x3e6)][_0x2ac386(0x19d)])continue;let {transform:_0x22d9c9}=_0x19717b;if(!_0x22d9c9)continue;let {left:_0x5e33ab=0x0,top:_0x212f92=0x0,width:_0x31b7e3=0x0,height:_0x354525=0x0}=_0x22d9c9;_0x3762ec<=_0x5e33ab&&_0x34648d>=_0x5e33ab+_0x31b7e3&&_0x2f8193<=_0x212f92&&_0x5965ae>=_0x212f92+_0x354525&&_0x350254[_0x2ac386(0x1bd)](_0x19717b);}_0x350254[_0x2ac386(0x2fb)]>0x0&&(this[_0x2ac386(0xfb)]={'unitId':_0x58473f,'subUnitId':_0x5e957b,'copyType':_0x5d7444,'copyRange':_0x5d1c43,'drawings':_0x350254});}[_0x5db5d0(0x1f7)](_0x56094b,_0x24b79b){const _0x1d1201=_0x5db5d0;let {unitId:_0xf59696,subUnitId:_0x56aea0,range:_0x58e3af}=_0x56094b,_0x592e97=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0xf59696,_0x56aea0);if(!_0x592e97)return{'redos':[],'undos':[]};let _0x350f06=(0x0,o['discreteRangeToRange'])(_0x58e3af),{unitId:_0x3bb60e,subUnitId:_0x33b757,copyRange:_0x18ea96,drawings:_0x41d956}=this[_0x1d1201(0xfb)],_0x238115=this[_0x1d1201(0x3d9)][_0x1d1201(0x23a)](_0x3bb60e,_0x33b757);if(!_0x238115)return{'redos':[],'undos':[]};let _0x401bb1;if(!_0x18ea96){let _0x1e3605=0x1/0x0,_0x1078fe=0x1/0x0;for(let _0x14fe45 of _0x41d956){let {left:_0x1de61a=0x0,top:_0x4911d8=0x0}=_0x14fe45[_0x1d1201(0x32a)]??{};_0x1de61a<_0x1e3605&&(_0x1e3605=_0x1de61a),_0x4911d8<_0x1078fe&&(_0x1078fe=_0x4911d8);}_0x1e3605!==0x1/0x0&&_0x1078fe!==0x1/0x0&&(_0x401bb1={'left':_0x1e3605,'top':_0x1078fe});}let _0x18041a=new Map();if(!_0x24b79b){for(let _0x4f613d of _0x41d956)_0x18041a[_0x1d1201(0x2d9)](_0x4f613d['drawingId'],(0x0,a[_0x1d1201(0x356)])());}let _0x52281f=[],_0x472ccf=[];for(let _0x37ce5b of _0x41d956){let {drawingId:_0x1e204b,transform:_0x4d218a,sheetTransform:_0x1fa9f6}=_0x37ce5b;if(!_0x4d218a||!_0x1fa9f6)continue;let _0x13adfb=this[_0x1d1201(0x32b)]({'transform':_0x4d218a,'sheetTransform':_0x1fa9f6},{'skeleton':_0x238115,'range':_0x18ea96},{'skeleton':_0x592e97,'range':_0x350f06},_0x401bb1);if(_0x24b79b){let {redos:_0x355e7f,undos:_0x3bf1c2}=this[_0x1d1201(0x22d)]({'fromUnitId':_0x3bb60e,'fromSubUnitId':_0x33b757,'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb});_0x52281f['push'](..._0x355e7f),_0x472ccf[_0x1d1201(0x1bd)](..._0x3bf1c2);continue;}let {redos:_0x5f5b65,undos:_0x39d7e6}=this[_0x1d1201(0x162)]({'toUnitId':_0xf59696,'toSubUnitId':_0x56aea0,'drawing':_0x37ce5b,'newTransforms':_0x13adfb,'newDrawingId':_0x18041a[_0x1d1201(0x3b6)](_0x1e204b),'idMap':_0x18041a});_0x52281f[_0x1d1201(0x1bd)](..._0x5f5b65),_0x472ccf[_0x1d1201(0x1bd)](..._0x39d7e6);}return{'redos':_0x52281f,'undos':_0x472ccf};}[_0x5db5d0(0x22d)](_0x4bcf38){const _0x1f4543=_0x5db5d0;let {fromUnitId:_0x382dc5,fromSubUnitId:_0x463736,toUnitId:_0x23acfc,toSubUnitId:_0x1a9d43,drawing:_0x389505,newTransforms:_0x4dc81a}=_0x4bcf38,_0x3875bc={..._0x389505,'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'transform':_0x4dc81a['transform'],'sheetTransform':_0x4dc81a[_0x1f4543(0x194)]};if(_0x23acfc===_0x382dc5&&_0x1a9d43===_0x463736){let {redo:_0x1d23d2,undo:_0x50e088,objects:_0x2a27d2}=this[_0x1f4543(0x219)]['getBatchUpdateOp']([_0x3875bc]);return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType'][_0x1f4543(0x1a8)],'op':_0x1d23d2,'objects':_0x2a27d2}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x1a8)],'op':_0x50e088,'objects':_0x2a27d2}}]};}else{let _0x56266c=this['_sheetDrawingService'][_0x1f4543(0x2f9)]([_0x389505]),_0x2f1f05=this[_0x1f4543(0x219)][_0x1f4543(0x216)]([_0x3875bc]),_0x151cb3=this['_shapeService']['getShapeModel'](_0x389505[_0x1f4543(0x3bf)],_0x389505[_0x1f4543(0x20a)],_0x389505[_0x1f4543(0x3e3)]);if(!_0x151cb3)return{'redos':[],'undos':[]};let _0x2f72b3=_0x151cb3['getShapeType'](),_0xbd575e=JSON[_0x1f4543(0x40c)](JSON[_0x1f4543(0x36a)](_0x151cb3['getShapeData']()));return{'redos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x337)],'op':_0x56266c['redo'],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)]}},{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m['DrawingApplyType']['INSERT'],'op':_0x2f1f05[_0x1f4543(0x242)],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x34b)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505['drawingId'],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}}],'undos':[{'id':m[_0x1f4543(0x15d)]['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'type':m['DrawingApplyType'][_0x1f4543(0x22c)],'op':_0x56266c[_0x1f4543(0x10e)],'objects':_0x56266c[_0x1f4543(0xdb)]}},{'id':i['InsertSheetsShapeMutation']['id'],'params':{'unitId':_0x382dc5,'subUnitId':_0x463736,'shapeId':_0x389505[_0x1f4543(0x3e3)],'shapeType':_0x2f72b3,'shapeData':_0xbd575e}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'type':m[_0x1f4543(0x324)][_0x1f4543(0x337)],'op':_0x2f1f05['undo'],'objects':_0x2f1f05[_0x1f4543(0xdb)]}},{'id':i[_0x1f4543(0x322)]['id'],'params':{'unitId':_0x23acfc,'subUnitId':_0x1a9d43,'shapeId':_0x389505[_0x1f4543(0x3e3)]}}]};}}['_generateCopyPasteMutations'](_0x3ac089){const _0x4f01c5=_0x5db5d0;let {toUnitId:_0x5c93aa,toSubUnitId:_0x157c62,drawing:_0xffc5a8,newTransforms:_0xd9aed2,newDrawingId:_0x215aea,idMap:_0x50a7f8}=_0x3ac089,_0xf492d0={..._0xffc5a8,'unitId':_0x5c93aa,'subUnitId':_0x157c62,'drawingId':_0x215aea,'transform':_0xd9aed2['transform'],'sheetTransform':_0xd9aed2['sheetTransform']},{redo:_0x1909bb,undo:_0x33d481,objects:_0x1922de}=this[_0x4f01c5(0x219)][_0x4f01c5(0x216)]([_0xf492d0]),_0x50810d=this[_0x4f01c5(0x1f4)][_0x4f01c5(0x11e)](_0xffc5a8[_0x4f01c5(0x3bf)],_0xffc5a8[_0x4f01c5(0x20a)],_0xffc5a8[_0x4f01c5(0x3e3)]);if(!_0x50810d)return{'redos':[],'undos':[]};let _0x2a2ca0=_0x50810d[_0x4f01c5(0x2fa)](),_0x447fc2=JSON[_0x4f01c5(0x40c)](JSON[_0x4f01c5(0x36a)](_0x50810d[_0x4f01c5(0x3bc)]()));if(_0x447fc2[_0x4f01c5(0x42b)]){var _0x4eed77,_0x2fd8b9;let _0x444356=(_0x4eed77=_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)])==null?void 0x0:_0x4eed77[_0x4f01c5(0x340)],_0x3e565b=(_0x2fd8b9=_0x447fc2[_0x4f01c5(0x42b)]['to'])==null?void 0x0:_0x2fd8b9[_0x4f01c5(0x340)],_0xb4458b=!_0x444356||_0x50a7f8[_0x4f01c5(0x18e)](_0x444356),_0x501ac3=!_0x3e565b||_0x50a7f8['has'](_0x3e565b);_0xb4458b&&_0x444356&&_0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)]?_0x447fc2['relation']['from']={..._0x447fc2[_0x4f01c5(0x42b)][_0x4f01c5(0x10f)],'shapeId':_0x50a7f8[_0x4f01c5(0x3b6)](_0x444356)}:_0x447fc2[_0x4f01c5(0x42b)]['from']=void 0x0,_0x501ac3&&_0x3e565b&&_0x447fc2[_0x4f01c5(0x42b)]['to']?_0x447fc2[_0x4f01c5(0x42b)]['to']={..._0x447fc2['relation']['to'],'shapeId':_0x50a7f8['get'](_0x3e565b)}:_0x447fc2['relation']['to']=void 0x0;}return{'redos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x22c)],'op':_0x1909bb,'objects':_0x1922de}},{'id':i[_0x4f01c5(0x34b)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea,'shapeType':_0x2a2ca0,'shapeData':_0x447fc2}}],'undos':[{'id':m[_0x4f01c5(0x15d)]['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'type':m[_0x4f01c5(0x324)][_0x4f01c5(0x337)],'op':_0x33d481,'objects':_0x1922de}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x5c93aa,'subUnitId':_0x157c62,'shapeId':_0x215aea}}]};}[_0x5db5d0(0x32b)](_0x552e1e,_0x3a3b54,_0x251848,_0xe79e86){const _0x8108c7=_0x5db5d0;let {range:_0x3bace4,skeleton:_0x1ad58c}=_0x3a3b54,{range:_0x49f6d8,skeleton:_0x3fefdd}=_0x251848,{transform:_0x10ef59,sheetTransform:_0x16afde}=_0x552e1e,_0x3b4ca4={..._0x10ef59};if(_0x3bace4){let _0x2e2cc6=(0x0,o['attachRangeWithCoord'])(_0x1ad58c,_0x3bace4),_0x2e99bb=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0x2e2cc6&&_0x2e99bb){let _0x19e197=_0x2e99bb[_0x8108c7(0x1ee)]-_0x2e2cc6[_0x8108c7(0x1ee)],_0x206283=_0x2e99bb[_0x8108c7(0x35d)]-_0x2e2cc6[_0x8108c7(0x35d)];_0x3b4ca4[_0x8108c7(0x42e)]=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)+_0x19e197,_0x3b4ca4[_0x8108c7(0x230)]=(_0x3b4ca4[_0x8108c7(0x230)]??0x0)+_0x206283;}}else{let _0x179191=(0x0,o[_0x8108c7(0x22b)])(_0x3fefdd,_0x49f6d8);if(_0xe79e86&&_0x179191){let _0x18b461=(_0x3b4ca4[_0x8108c7(0x42e)]??0x0)-_0xe79e86['left'],_0x22c8bf=(_0x3b4ca4['top']??0x0)-_0xe79e86[_0x8108c7(0x230)];_0x3b4ca4[_0x8108c7(0x42e)]=_0x179191[_0x8108c7(0x1ee)]+_0x18b461,_0x3b4ca4[_0x8108c7(0x230)]=_0x179191[_0x8108c7(0x35d)]+_0x22c8bf;}else _0x3b4ca4['left']=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x1ee)],_0x3b4ca4[_0x8108c7(0x230)]=_0x179191==null?void 0x0:_0x179191[_0x8108c7(0x35d)];}return{'transform':_0x3b4ca4,'sheetTransform':(0x0,m[_0x8108c7(0x39f)])(_0x3b4ca4,_0x3fefdd)??_0x16afde};}};J=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(o[_0x5db5d0(0x332)])),A(0x1,(0x0,a['Inject'])(l[_0x5db5d0(0x2de)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(m[_0x5db5d0(0x201)])),A(0x3,(0x0,a[_0x5db5d0(0x22f)])(i[_0x5db5d0(0x1e0)])),A(0x4,(0x0,a[_0x5db5d0(0x22f)])(v['SheetsDrawingGroupCopyPasteController']))],J);var yt=class extends c[_0x5db5d0(0x3a7)]{constructor(_0x4602be,_0x11b382){const _0x349094=_0x5db5d0;super(_0x4602be,_0x11b382),E(this,'_shapeId',null),E(this,_0x349094(0x1be),null),E(this,_0x349094(0x3d2),null),E(this,'_subUnitId',null),E(this,_0x349094(0x113),!0x1),_0x11b382&&this[_0x349094(0x3a1)](_0x11b382);}[_0x5db5d0(0x19b)](){const _0x18ee06=_0x5db5d0;return{'unitId':this[_0x18ee06(0x3d2)],'subUnitId':this[_0x18ee06(0x23c)],'drawingId':this[_0x18ee06(0x212)]};}[_0x5db5d0(0x3a1)](_0x257fcd){const _0x56b9bf=_0x5db5d0;_0x257fcd['shapeId']!==void 0x0&&(this['_shapeId']=_0x257fcd[_0x56b9bf(0x340)]),_0x257fcd['unitId']!==void 0x0&&(this[_0x56b9bf(0x3d2)]=_0x257fcd[_0x56b9bf(0x3bf)]),_0x257fcd[_0x56b9bf(0x20a)]!==void 0x0&&(this['_subUnitId']=_0x257fcd['subUnitId']),_0x257fcd[_0x56b9bf(0x28f)]!==void 0x0&&(this[_0x56b9bf(0x113)]=_0x257fcd['isStartConnectorPoint']),this[_0x56b9bf(0x1ab)]({'width':_0x257fcd[_0x56b9bf(0x2ad)],'height':_0x257fcd['height']});}[_0x5db5d0(0x124)](_0x39223e){const _0x47f00e=_0x5db5d0;c[_0x47f00e(0x360)][_0x47f00e(0x2d7)](_0x39223e,{'radius':n[_0x47f00e(0x2b4)][_0x47f00e(0xf1)],'fill':n[_0x47f00e(0x2b4)][_0x47f00e(0x33c)],'stroke':n[_0x47f00e(0x2b4)]['cxnPointStroke'],'strokeWidth':n[_0x47f00e(0x2b4)][_0x47f00e(0xe9)],'evented':!0x0});}};let bt=class extends a['Disposable']{constructor(_0x5c09c2,_0x564412,_0x20da0d,_0x462ff0,_0x51d241,_0xe2f647,_0xf1add6,_0x391e8d){const _0x69acad=_0x5db5d0;super(),this[_0x69acad(0x2ea)]=_0x5c09c2,this[_0x69acad(0x1ad)]=_0x564412,this[_0x69acad(0x104)]=_0x20da0d,this['_drawingManagerService']=_0x462ff0,this[_0x69acad(0x12c)]=_0x51d241,this[_0x69acad(0x27f)]=_0xe2f647,this[_0x69acad(0x334)]=_0xf1add6,this[_0x69acad(0xe1)]=_0x391e8d,E(this,_0x69acad(0x296),void 0x0),E(this,_0x69acad(0x3d2),void 0x0),E(this,_0x69acad(0x23c),void 0x0),E(this,_0x69acad(0x40e),[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x69acad(0x258),void 0x0),E(this,'_isConnecting',!0x1),E(this,_0x69acad(0x14a),!0x1),E(this,_0x69acad(0x35b),!0x1),E(this,'_cxtHandlerPointerMove',void 0x0),E(this,_0x69acad(0x185),void 0x0),E(this,'_currentConnectionTarget',null),this[_0x69acad(0x29e)]();}['_initialize'](){const _0x113346=_0x5db5d0;this[_0x113346(0x37c)](),this[_0x113346(0x21c)]();}[_0x5db5d0(0x133)](){const _0x245365=_0x5db5d0;if(!this[_0x245365(0x3d2)]||!this[_0x245365(0x23c)]||!this['_activeShapeId'])return;let _0x48183a={'unitId':this[_0x245365(0x3d2)],'subUnitId':this[_0x245365(0x23c)],'drawingId':this[_0x245365(0x296)]},{transform:_0x2c53a8}=this[_0x245365(0x3b1)][_0x245365(0x15a)](_0x48183a);if(_0x2c53a8)return{'left':_0x2c53a8['left']||0x0,'top':_0x2c53a8['top']||0x0,'width':_0x2c53a8[_0x245365(0x2ad)]||0x0,'height':_0x2c53a8[_0x245365(0x3c5)]||0x0,'flipX':_0x2c53a8['flipX']||!0x1,'flipY':_0x2c53a8[_0x245365(0xef)]||!0x1,'angle':_0x2c53a8[_0x245365(0x3ed)]};}[_0x5db5d0(0x385)](){const _0x3dc226=_0x5db5d0;if(this['_unitId']===void 0x0||this[_0x3dc226(0x23c)]===void 0x0||this[_0x3dc226(0x296)]===void 0x0)return;let _0x4d5bff=this['_renderManagerService'][_0x3dc226(0x2c4)](this['_unitId']);if(!_0x4d5bff||!_0x4d5bff['with'](l[_0x3dc226(0x364)])[_0x3dc226(0x2bc)]())return;let {scene:_0x1ab8c7}=_0x4d5bff,_0x5da104=this[_0x3dc226(0x133)]();if(!_0x5da104)return;let _0x21a5df=this[_0x3dc226(0x27f)][_0x3dc226(0x11e)](this[_0x3dc226(0x3d2)],this['_subUnitId'],this[_0x3dc226(0x296)]);if(!_0x21a5df||!(0x0,n[_0x3dc226(0x2b3)])(_0x21a5df[_0x3dc226(0x2fa)]()))return;let _0x3714ed=_0x21a5df[_0x3dc226(0x403)]();if(_0x3714ed[_0x3dc226(0x2fb)]<0x2)return;let _0x11de4a=new n[(_0x3dc226(0x317))](_0x5da104),_0x3c6eb5=_0x3714ed[0x0],_0x27c993=_0x3714ed[_0x3714ed[_0x3dc226(0x2fb)]-0x1],_0xa0629=_0x11de4a[_0x3dc226(0xf5)](_0x3c6eb5),_0x720561=_0x11de4a[_0x3dc226(0xf5)](_0x27c993);this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0xa0629},!0x0),this[_0x3dc226(0x34d)](_0x1ab8c7,{..._0x720561},!0x1);}[_0x5db5d0(0x34d)](_0x99b8a0,_0x39bd77,_0x2ccdb3){const _0x708d91=_0x5db5d0;if(this['_activeShapeId']===void 0x0||this[_0x708d91(0x3d2)]===void 0x0||this[_0x708d91(0x23c)]===void 0x0)return;let _0xb8bc1d=_0x708d91(0x197)+this[_0x708d91(0x3d2)]+'-'+this[_0x708d91(0x23c)]+'-'+this['_activeShapeId']+'-'+(_0x2ccdb3?_0x708d91(0x396):_0x708d91(0x41f)),_0x454c55=_0x99b8a0[_0x708d91(0x1d5)](_0xb8bc1d);if(_0x454c55){_0x454c55['transformByState']({'left':_0x39bd77['x']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'top':_0x39bd77['y']-n['ShapeDefaultConfig'][_0x708d91(0xf1)]});return;}let _0x124ece=new yt(_0xb8bc1d,{'left':_0x39bd77['x']-n['ShapeDefaultConfig'][_0x708d91(0xf1)],'top':_0x39bd77['y']-n[_0x708d91(0x2b4)][_0x708d91(0xf1)],'shapeId':this[_0x708d91(0x296)],'unitId':this[_0x708d91(0x3d2)],'subUnitId':this[_0x708d91(0x23c)],'isStartConnectorPoint':_0x2ccdb3,'width':n[_0x708d91(0x2b4)]['cxnPointRadius']*0x2,'height':n[_0x708d91(0x2b4)][_0x708d91(0xf1)]*0x2,'zIndex':c[_0x708d91(0x3a9)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x708d91(0x1bd)](_0x124ece),this[_0x708d91(0xfc)](_0x124ece,_0x99b8a0,_0x2ccdb3),_0x99b8a0['addObject'](_0x124ece,c[_0x708d91(0x3a9)]+0x1);}[_0x5db5d0(0x245)](_0x4622c7,_0x55dee8){const _0x47fbbd=_0x5db5d0;var _0x363819;let _0x1d6fda={'x':0x0,'y':0x0};if(!_0x4622c7||!_0x55dee8)return _0x1d6fda;let _0x26f492=this['_renderManagerService']['getRenderUnitById'](_0x4622c7);if(!_0x26f492||!_0x26f492['with'](l[_0x47fbbd(0x364)])[_0x47fbbd(0x23a)](_0x55dee8))return _0x1d6fda;let _0x59a454=_0x26f492[_0x47fbbd(0x35a)](l['SheetScrollManagerService']),_0x44d063=_0x59a454==null?void 0x0:_0x59a454[_0x47fbbd(0x2ac)]();if(!_0x44d063)return _0x1d6fda;let _0x1130d4=(_0x363819=this['_univerInstanceService'][_0x47fbbd(0x1ae)](_0x4622c7))==null?void 0x0:_0x363819[_0x47fbbd(0x26d)](_0x55dee8);if(!_0x1130d4)return _0x1d6fda;let _0x25307d=(0x0,l['getViewportByCell'])(_0x44d063[_0x47fbbd(0x1a5)],_0x44d063[_0x47fbbd(0x149)],_0x26f492['scene'],_0x1130d4);return _0x25307d?{'x':_0x25307d[_0x47fbbd(0xd6)],'y':_0x25307d[_0x47fbbd(0x370)]}:_0x1d6fda;}[_0x5db5d0(0x34f)](_0x2fc0fd,_0x2ba3e8){const _0x3d4119=_0x5db5d0;var _0x78f144;let _0x70c56a=(_0x78f144=this[_0x3d4119(0x12c)][_0x3d4119(0x1ae)](_0x2fc0fd))==null?void 0x0:_0x78f144[_0x3d4119(0x26d)](_0x2ba3e8);return(_0x70c56a==null?void 0x0:_0x70c56a[_0x3d4119(0x27a)]())??0x1;}[_0x5db5d0(0x16f)](_0x1619ed,_0x4d2ed8,_0x4eef2d,_0x285f2f,_0x1ac399){const _0x5d2ee1=_0x5db5d0;this[_0x5d2ee1(0x276)]['unsubscribe'](),this[_0x5d2ee1(0x185)][_0x5d2ee1(0x284)](),this[_0x5d2ee1(0x334)][_0x5d2ee1(0x40f)]();let _0x4ab25e=this[_0x5d2ee1(0x325)];this[_0x5d2ee1(0xe1)][_0x5d2ee1(0x355)]();let _0x3dca58=this[_0x5d2ee1(0x245)](this[_0x5d2ee1(0x3d2)],this[_0x5d2ee1(0x23c)]),_0x2c0170=this['_getZoomRatio'](this['_unitId'],this['_subUnitId']),_0xcb6f85={'x':_0x4eef2d['offsetX']/_0x2c0170+_0x3dca58['x'],'y':_0x4eef2d[_0x5d2ee1(0x354)]/_0x2c0170+_0x3dca58['y']},_0x596078=_0x4ab25e?_0x4ab25e['worldPoint']:_0xcb6f85,_0x4021d4=_0x285f2f?this[_0x5d2ee1(0x258)][_0x5d2ee1(0x1db)]():this['_activeShapeModel']['getStartConnectInfo'](),_0x2a20eb=this[_0x5d2ee1(0x258)]['getShapeType']();_0x4021d4?this[_0x5d2ee1(0x208)](_0x4021d4,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399):this[_0x5d2ee1(0x18d)](_0x4d2ed8,_0x596078,_0x285f2f,_0x4ab25e,_0x1ac399,_0x2a20eb),this[_0x5d2ee1(0x3df)]=!0x1,this['_hasReset']=!0x1,this[_0x5d2ee1(0x325)]=null,_0x1619ed['enableObjectsEvent']();}[_0x5db5d0(0x18d)](_0x38a471,_0x328092,_0x475152,_0x5991a4,_0x5bf316,_0x2b7988){const _0x3e9342=_0x5db5d0;let _0x4537d9=_0x2b7988===n['ShapeTypeEnum'][_0x3e9342(0x431)]||_0x2b7988===n['ShapeTypeEnum']['StraightConnector1'],_0x3ed72b=_0x475152?_0x328092:_0x38a471,_0x125e2b=_0x475152?_0x38a471:_0x328092,_0x4b1b51=this[_0x3e9342(0x258)]['getConnectorLinePoints'](),_0x337122=(0x0,n[_0x3e9342(0x19f)])(this[_0x3e9342(0x258)][_0x3e9342(0x2fa)]()),_0x1b6bd9=n[_0x3e9342(0x317)][_0x3e9342(0x253)](_0x4b1b51,_0x337122),_0x5d6866=_0x4537d9?n['ConnectorCoordinateTransform'][_0x3e9342(0x3b4)](_0x3ed72b,_0x125e2b):n[_0x3e9342(0x317)]['computeConnectorResizeLayout'](_0x38a471,_0x328092,_0x475152,_0x1b6bd9);_0x5991a4?this['_executeConnectionCommand'](_0x5d6866,_0x5991a4,_0x475152,_0x5bf316):this[_0x3e9342(0x114)](_0x5d6866,_0x5bf316);}[_0x5db5d0(0x208)](_0x4c0a72,_0x1c2d4c,_0x54bc42,_0x449a61,_0x50487e){const _0x21ab5a=_0x5db5d0;let _0x31fd0a=this[_0x21ab5a(0x1d9)](_0x4c0a72);if(!_0x31fd0a)return;let _0x4b8fc1=_0x449a61?_0x449a61[_0x21ab5a(0x3ed)]:this[_0x21ab5a(0x371)](_0x31fd0a['point'],_0x1c2d4c),_0x58fa3f;if(_0x449a61){let _0x72b6cb=this[_0x21ab5a(0x3b1)]['getDrawingByParam']({'unitId':_0x449a61[_0x21ab5a(0x3bf)],'subUnitId':_0x449a61['subUnitId'],'drawingId':_0x449a61['shapeId']});if(_0x72b6cb!=null&&_0x72b6cb[_0x21ab5a(0x32a)]){let {left:_0x165581=0x0,top:_0x57e005=0x0,width:_0x807b51=0x0,height:_0x146eb7=0x0,angle:_0x468785}=_0x72b6cb[_0x21ab5a(0x32a)];_0x58fa3f=(0x0,n['getBasicShapeRotateBound'])({'left':_0x165581,'top':_0x57e005,'width':_0x807b51,'height':_0x146eb7},_0x468785||0x0);}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};}else _0x58fa3f={'left':_0x1c2d4c['x'],'top':_0x1c2d4c['y'],'width':0x0,'height':0x0};let _0x2d0e3c={'point':_0x1c2d4c,'angle':_0x4b8fc1,'bounds':_0x58fa3f},_0x3fa0b2=_0x54bc42?_0x2d0e3c:_0x31fd0a,_0x149e27=_0x54bc42?_0x31fd0a:_0x2d0e3c,_0x23cf60=this['_activeShapeModel'][_0x21ab5a(0x2fa)](),_0x46659b=(0x0,n[_0x21ab5a(0x2a0)])(_0x3fa0b2,_0x149e27,_0x23cf60);this[_0x21ab5a(0x258)][_0x21ab5a(0x310)]();let _0x3d4e92=(0x0,n[_0x21ab5a(0x24c)])(_0x46659b,_0x23cf60);_0x449a61?this[_0x21ab5a(0x393)](_0x3d4e92,_0x449a61,_0x4c0a72,_0x54bc42,_0x50487e):this[_0x21ab5a(0x228)](_0x3d4e92,_0x4c0a72,_0x54bc42,_0x50487e);}[_0x5db5d0(0x189)](_0x300bfb,_0x209db8,_0x3523e6,_0x1be060){const _0x45e212=_0x5db5d0;let _0x5ac07d=this[_0x45e212(0x258)][_0x45e212(0x3bc)]()[_0x45e212(0x42b)],_0x28a48b={..._0x5ac07d},_0x525772={'shapeId':_0x209db8[_0x45e212(0x340)],'cxnIndex':_0x209db8[_0x45e212(0xfe)]};_0x3523e6?_0x28a48b[_0x45e212(0x10f)]=_0x525772:_0x28a48b['to']=_0x525772;let _0x2664e7=this[_0x45e212(0x258)][_0x45e212(0x2fa)](),_0x546568=(0x0,n[_0x45e212(0x24c)])(_0x300bfb[_0x45e212(0x2f5)],_0x2664e7),_0x5f23c7={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x45e212(0x296)],'width':_0x300bfb[_0x45e212(0x1ca)]['width'],'height':_0x300bfb[_0x45e212(0x1ca)]['height'],'left':_0x300bfb['worldRect'][_0x45e212(0x42e)],'top':_0x300bfb['worldRect'][_0x45e212(0x230)],'flipX':_0x300bfb[_0x45e212(0x1ca)][_0x45e212(0xfa)]||!0x1,'flipY':_0x300bfb[_0x45e212(0x1ca)]['flipY']||!0x1,'newAdjustValues':_0x546568[_0x45e212(0x15c)],'oldAdjustValues':_0x1be060,'oldRelation':_0x5ac07d,'newRelation':_0x28a48b,'newLineType':_0x546568['lineType'],'oldLineType':_0x2664e7};this[_0x45e212(0x1ad)][_0x45e212(0x3e5)](i[_0x45e212(0x29b)]['id'],_0x5f23c7);}['_executeResizeCommand'](_0x2bff09,_0x3b896d){const _0x372685=_0x5db5d0;let _0x415ad0=this[_0x372685(0x258)]['getShapeType'](),_0xec1e4d=(0x0,n[_0x372685(0x24c)])(_0x2bff09[_0x372685(0x2f5)],_0x415ad0),_0x2d63b2={'unitId':this[_0x372685(0x3d2)],'subUnitId':this[_0x372685(0x23c)],'shapeId':this['_activeShapeId'],'width':_0x2bff09['worldRect'][_0x372685(0x2ad)],'height':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x3c5)],'left':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x42e)],'top':_0x2bff09[_0x372685(0x1ca)][_0x372685(0x230)],'flipX':_0x2bff09[_0x372685(0x1ca)][_0x372685(0xfa)]||!0x1,'flipY':_0x2bff09[_0x372685(0x1ca)]['flipY']||!0x1,'angle':_0x2bff09['worldRect'][_0x372685(0x3ed)]||0x0,'newAdjustValues':_0xec1e4d[_0x372685(0x15c)],'oldAdjustValues':_0x3b896d,'newLineType':_0xec1e4d[_0x372685(0x1ac)],'oldLineType':_0x415ad0};this[_0x372685(0x1ad)]['executeCommand'](i['UpdateLineShapeResizeCommand']['id'],_0x2d63b2);}[_0x5db5d0(0x393)](_0x151d5b,_0x536b37,_0x267ff3,_0x2e2b72,_0x771bbd){const _0x57f1ff=_0x5db5d0;let _0x4942d5=this[_0x57f1ff(0x258)][_0x57f1ff(0x3bc)]()['relation'],_0x4ec192={..._0x4942d5},_0x539ba7={'shapeId':_0x536b37[_0x57f1ff(0x340)],'cxnIndex':_0x536b37[_0x57f1ff(0xfe)]};_0x2e2b72?(_0x4ec192[_0x57f1ff(0x10f)]=_0x539ba7,_0x4ec192['to']=_0x267ff3):(_0x4ec192['from']=_0x267ff3,_0x4ec192['to']=_0x539ba7);let _0x4ab75b={'unitId':this[_0x57f1ff(0x3d2)],'subUnitId':this[_0x57f1ff(0x23c)],'connectorShapeId':this[_0x57f1ff(0x296)],'width':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x2ad)],'height':_0x151d5b[_0x57f1ff(0x1ca)]['height'],'left':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0x42e)],'top':_0x151d5b[_0x57f1ff(0x1ca)]['top'],'flipX':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xfa)]||!0x1,'flipY':_0x151d5b[_0x57f1ff(0x1ca)][_0x57f1ff(0xef)]||!0x1,'oldAdjustValues':_0x771bbd,'newAdjustValues':_0x151d5b[_0x57f1ff(0x15c)],'newLineType':_0x151d5b['lineType'],'rotation':_0x151d5b[_0x57f1ff(0x1e8)],'oldRelation':_0x4942d5,'newRelation':_0x4ec192};this[_0x57f1ff(0x1ad)][_0x57f1ff(0x3e5)](i['UpdateConnectorRelationCommand']['id'],_0x4ab75b);}[_0x5db5d0(0x228)](_0x54a2c0,_0x3bd547,_0x7afb57,_0x53e7d5){const _0x2a26f6=_0x5db5d0;let _0x1b8054=this[_0x2a26f6(0x258)][_0x2a26f6(0x3bc)]()[_0x2a26f6(0x42b)],_0x4dd3d0={};_0x7afb57?(_0x4dd3d0['to']=_0x3bd547,_0x4dd3d0[_0x2a26f6(0x10f)]=void 0x0):(_0x4dd3d0[_0x2a26f6(0x10f)]=_0x3bd547,_0x4dd3d0['to']=void 0x0);let _0x67f65f={'unitId':this[_0x2a26f6(0x3d2)],'subUnitId':this[_0x2a26f6(0x23c)],'connectorShapeId':this[_0x2a26f6(0x296)],'width':_0x54a2c0['worldRect']['width'],'height':_0x54a2c0[_0x2a26f6(0x1ca)]['height'],'left':_0x54a2c0[_0x2a26f6(0x1ca)]['left'],'top':_0x54a2c0['worldRect'][_0x2a26f6(0x230)],'flipX':_0x54a2c0['worldRect'][_0x2a26f6(0xfa)]||!0x1,'flipY':_0x54a2c0[_0x2a26f6(0x1ca)][_0x2a26f6(0xef)]||!0x1,'oldAdjustValues':_0x53e7d5,'newAdjustValues':_0x54a2c0[_0x2a26f6(0x15c)],'newLineType':_0x54a2c0[_0x2a26f6(0x1ac)],'rotation':_0x54a2c0[_0x2a26f6(0x1e8)],'oldRelation':_0x1b8054,'newRelation':_0x4dd3d0};this[_0x2a26f6(0x1ad)][_0x2a26f6(0x3e5)](i[_0x2a26f6(0x29b)]['id'],_0x67f65f);}[_0x5db5d0(0xfc)](_0x5ee4c8,_0x4a3712,_0x2f3de3){const _0x2d9104=_0x5db5d0;this[_0x2d9104(0x17d)]((0x0,a[_0x2d9104(0x105)])(_0x5ee4c8['onPointerDown$'][_0x2d9104(0x151)]((_0x2b09e0,_0x2cb2a3)=>{const _0x2554a6=_0x2d9104;let _0x796429=_0x5ee4c8[_0x2554a6(0x19b)]();if(this['_activeShapeModel']=this[_0x2554a6(0x27f)][_0x2554a6(0x11e)](_0x796429['unitId'],_0x796429[_0x2554a6(0x20a)],_0x796429['drawingId']),!this[_0x2554a6(0x258)])return;let _0x222336={};this[_0x2554a6(0x258)][_0x2554a6(0x2bf)]()[_0x2554a6(0xe5)](_0x372284=>{const _0x1d3848=_0x2554a6;let _0x39cd4d=this[_0x1d3848(0x258)][_0x1d3848(0xd7)](_0x372284);_0x39cd4d!==void 0x0&&(_0x222336[_0x372284]=_0x39cd4d);});let _0x4574c7=this[_0x2554a6(0x133)]();if(!_0x4574c7)return;this[_0x2554a6(0x140)]={..._0x4574c7};let _0x3b2ab0=new n['ConnectorCoordinateTransform'](this[_0x2554a6(0x140)]),_0x249e77=(0x0,s[_0x2554a6(0x1f8)])({'unitId':this[_0x2554a6(0x3d2)],'subUnitId':this[_0x2554a6(0x23c)],'drawingId':this[_0x2554a6(0x296)]}),_0x313bf2=_0x4a3712[_0x2554a6(0x1d5)](_0x249e77);this['_isConnecting']=!0x0,_0x4a3712[_0x2554a6(0x2a1)](),this[_0x2554a6(0xe1)][_0x2554a6(0x1b4)](_0x4a3712,this['_unitId'],this[_0x2554a6(0x23c)],this[_0x2554a6(0x296)]),this[_0x2554a6(0x325)]=null;let _0xc17000=this[_0x2554a6(0x258)][_0x2554a6(0x403)](),_0xc0595b=_0xc17000[0x0],_0x4c218a=_0xc17000[_0xc17000['length']-0x1],_0x3eaea9=_0x2f3de3?_0x3b2ab0[_0x2554a6(0xf5)](_0x4c218a):_0x3b2ab0[_0x2554a6(0xf5)](_0xc0595b);this['_cxtHandlerPointerMove']=_0x4a3712['onPointerMove$']['subscribeEvent']((_0x50b7ec,_0x51cb03)=>{const _0x3eb120=_0x2554a6;if(!this[_0x3eb120(0x3df)]||!this[_0x3eb120(0x258)])return;this[_0x3eb120(0x35b)]||=(this[_0x3eb120(0x334)][_0x3eb120(0x24f)](),this[_0x3eb120(0x258)][_0x3eb120(0x1e5)](),!0x0);let _0x304da1=this['_getScrollInfo'](this[_0x3eb120(0x3d2)],this['_subUnitId']),_0x3201d7=this[_0x3eb120(0x34f)](this[_0x3eb120(0x3d2)],this[_0x3eb120(0x23c)]),_0x1c751f={'x':_0x50b7ec['offsetX']/_0x3201d7+_0x304da1['x'],'y':_0x50b7ec[_0x3eb120(0x354)]/_0x3201d7+_0x304da1['y']},_0x386bd0=this[_0x3eb120(0xe1)][_0x3eb120(0x2eb)](_0x1c751f);if(_0x386bd0){let {shapeId:_0x207dd7,unitId:_0x3abab9,subUnitId:_0x464a5c}=_0x386bd0;if(_0x207dd7&&_0x3abab9&&_0x464a5c){let _0x230905=(0x0,s[_0x3eb120(0x1f8)])({'unitId':_0x3abab9,'subUnitId':_0x464a5c,'drawingId':_0x207dd7});_0x386bd0[_0x3eb120(0x3ed)]=(_0x4a3712[_0x3eb120(0x1d5)](_0x230905)[_0x3eb120(0x3ed)]||0x0)+_0x386bd0[_0x3eb120(0x3ed)];}}this[_0x3eb120(0x325)]=_0x386bd0;let _0x10c481=_0x2f3de3?this['_activeShapeModel'][_0x3eb120(0x1db)]():this['_activeShapeModel'][_0x3eb120(0x129)]();if(_0x10c481){this[_0x3eb120(0x37b)](_0x10c481,_0x1c751f,_0x2f3de3,_0x313bf2,_0x5ee4c8);return;}this[_0x3eb120(0x200)](_0x1c751f,_0x3eaea9,_0x2f3de3,_0x313bf2,_0x5ee4c8);}),this[_0x2554a6(0x185)]=_0x4a3712[_0x2554a6(0x369)][_0x2554a6(0x151)]((_0x8cacfe,_0x5bd5c4)=>{const _0x2a3907=_0x2554a6;this[_0x2a3907(0x16f)](_0x4a3712,_0x3eaea9,_0x8cacfe,_0x2f3de3,_0x222336);}),_0x2cb2a3[_0x2554a6(0x15f)]();})));}[_0x5db5d0(0x3d8)](_0x923cc2,_0x3d6dda,_0x37d9f2){const _0x1cf22f=_0x5db5d0;let _0x2323df=this[_0x1cf22f(0x27f)]['getBasicShapeRelation'](_0x923cc2,_0x3d6dda,_0x37d9f2);if(!_0x2323df||_0x2323df[_0x1cf22f(0x2fb)]===0x0)return;let _0x452084=this['_renderManagerService']['getRenderUnitById'](_0x923cc2);if(!_0x452084)return;let {scene:_0x476246}=_0x452084;for(let _0x3e4097 of _0x2323df){let _0x17e7f7=_0x3e4097[_0x1cf22f(0x42a)],_0x228b25=this[_0x1cf22f(0x27f)]['getShapeModel'](_0x923cc2,_0x3d6dda,_0x17e7f7);if(!_0x228b25)continue;let _0xb5a8b4=_0x228b25[_0x1cf22f(0x129)](),_0x74d93e=_0x228b25[_0x1cf22f(0x1db)](),_0x33c2b6=(_0xb5a8b4==null?void 0x0:_0xb5a8b4[_0x1cf22f(0x340)])===_0x37d9f2,_0x38026a=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7}),_0xff39c2=_0x476246[_0x1cf22f(0x1d5)](_0x38026a);if(!_0xff39c2)continue;let _0x1ea585=this[_0x1cf22f(0x3b1)][_0x1cf22f(0x15a)]({'unitId':_0x923cc2,'subUnitId':_0x3d6dda,'drawingId':_0x17e7f7});_0x1ea585!=null&&_0x1ea585[_0x1cf22f(0x32a)]&&(_0xb5a8b4&&_0x74d93e?this[_0x1cf22f(0x31e)](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0xb5a8b4,_0x74d93e,_0xff39c2):this['_moveConnectorWithShape'](_0x923cc2,_0x3d6dda,_0x17e7f7,_0x228b25,_0x33c2b6?_0xb5a8b4:_0x74d93e,_0x33c2b6,_0x1ea585,_0xff39c2));}}[_0x5db5d0(0x31e)](_0x435bf5,_0x1585a0,_0x367306,_0x880075,_0x11efd6,_0x5c3811,_0x4fdc51){const _0x22baf0=_0x5db5d0;let _0x47399b=this[_0x22baf0(0x3d2)],_0x14e342=this[_0x22baf0(0x23c)];this[_0x22baf0(0x3d2)]=_0x435bf5,this[_0x22baf0(0x23c)]=_0x1585a0;let _0x463539=this[_0x22baf0(0x1d9)](_0x11efd6),_0x11ad60=this[_0x22baf0(0x1d9)](_0x5c3811);if(this[_0x22baf0(0x3d2)]=_0x47399b,this[_0x22baf0(0x23c)]=_0x14e342,!_0x463539||!_0x11ad60)return;let _0x514176=_0x880075[_0x22baf0(0x2fa)](),_0x1d67f9=(0x0,n[_0x22baf0(0x2a0)])(_0x463539,_0x11ad60,_0x514176);_0x1d67f9&&_0x880075[_0x22baf0(0x1ec)](_0x1d67f9);let _0x4f8ed0=(0x0,n[_0x22baf0(0x24c)])(_0x1d67f9,_0x514176);_0x4f8ed0['lineType']!==_0x514176&&_0x880075[_0x22baf0(0x103)](_0x4f8ed0[_0x22baf0(0x1ac)]),_0x880075[_0x22baf0(0x1e5)]();for(let [_0x21c011,_0x4a0c16]of Object[_0x22baf0(0x2d0)](_0x4f8ed0[_0x22baf0(0x15c)]))_0x880075[_0x22baf0(0x19a)](_0x21c011,_0x4a0c16);_0x880075['updateContext']({'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)]}),_0x4fdc51['transformByState']({'flipX':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xfa)],'flipY':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0xef)],'left':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x42e)],'top':_0x4f8ed0[_0x22baf0(0x1ca)]['top'],'width':_0x4f8ed0['worldRect'][_0x22baf0(0x2ad)],'height':_0x4f8ed0[_0x22baf0(0x1ca)][_0x22baf0(0x3c5)],'angle':_0x4f8ed0['rotation']}),_0x880075[_0x22baf0(0x310)]();}['_moveConnectorWithShape'](_0x1e2e69,_0x4d9c4a,_0x45f284,_0x3cddbb,_0x5c7170,_0x5831dc,_0x51babe,_0x49ba5b){const _0xfcb160=_0x5db5d0;let _0x32c359=this[_0xfcb160(0x3d2)],_0xb79c8=this['_subUnitId'];this[_0xfcb160(0x3d2)]=_0x1e2e69,this[_0xfcb160(0x23c)]=_0x4d9c4a;let _0x2bdbbf=this[_0xfcb160(0x1d9)](_0x5c7170);if(this[_0xfcb160(0x3d2)]=_0x32c359,this[_0xfcb160(0x23c)]=_0xb79c8,!_0x2bdbbf)return;let {left:_0xcaa62=0x0,top:_0x21b508=0x0,width:_0x558a96=0x0,height:_0x5000d2=0x0,flipX:_0x22c736=!0x1,flipY:_0x5bb873=!0x1}=_0x51babe['transform'],_0x59f170=_0x3cddbb[_0xfcb160(0x403)]();if(_0x59f170[_0xfcb160(0x2fb)]<0x2)return;let _0x2ecd7b=new n[(_0xfcb160(0x317))]({'left':_0xcaa62,'top':_0x21b508,'width':_0x558a96,'height':_0x5000d2,'flipX':_0x22c736,'flipY':_0x5bb873}),_0x474178=_0x5831dc?_0x59f170[_0x59f170[_0xfcb160(0x2fb)]-0x1]:_0x59f170[0x0],_0x44b169=_0x2ecd7b[_0xfcb160(0xf5)](_0x474178),_0x353697=n[_0xfcb160(0x317)][_0xfcb160(0x3a3)](_0x44b169,_0x2bdbbf[_0xfcb160(0x16b)],!_0x5831dc);_0x49ba5b[_0xfcb160(0x1ab)]({'flipX':_0x353697['worldRect'][_0xfcb160(0xfa)],'flipY':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0xef)],'left':_0x353697['worldRect']['left'],'top':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x230)],'width':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x2ad)],'height':_0x353697[_0xfcb160(0x1ca)][_0xfcb160(0x3c5)],'angle':_0x353697['worldRect'][_0xfcb160(0x3ed)]}),_0x49ba5b[_0xfcb160(0x1e9)](!0x0);}[_0x5db5d0(0x137)](){const _0x4c969a=_0x5db5d0;this['_connectorObjects'][_0x4c969a(0x2fb)]!==0x0&&(this['_connectorObjects'][_0x4c969a(0xe5)](_0x4acc4c=>{_0x4acc4c['dispose']();}),this[_0x4c969a(0x40e)]=[]);}['_registerDrawingMoveHandler'](){const _0x483b19=_0x5db5d0;let _0x256ea1=this[_0x483b19(0x12c)]['getCurrentTypeOfUnit$'](a[_0x483b19(0x400)][_0x483b19(0x319)]);this['disposeWithMe'](_0x256ea1[_0x483b19(0x402)]((0x0,u['switchMap'])(_0x2174e3=>_0x2174e3?_0x2174e3['activeSheet$'][_0x483b19(0x402)]((0x0,u['switchMap'])(_0x1a3147=>{const _0x97ec42=_0x483b19;if(!_0x1a3147)return u[_0x97ec42(0x395)];let _0x37a112=_0x2174e3[_0x97ec42(0x2d1)](),_0x3c670d=this[_0x97ec42(0x104)]['getRenderUnitById'](_0x37a112),_0x15696b=_0x3c670d==null?void 0x0:_0x3c670d[_0x97ec42(0x2e7)];return _0x15696b?(0x0,u['of'])(_0x15696b):u[_0x97ec42(0x395)];})):u[_0x483b19(0x395)]))[_0x483b19(0x426)](_0x34ae9a=>{const _0xd9799a=_0x483b19;let _0x21b0f1=_0x34ae9a[_0xd9799a(0x3cb)]();this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x1b5)][_0xd9799a(0x151)](_0xbf06ac=>{const _0x326b28=_0xd9799a;this[_0x326b28(0x14a)]&&this[_0x326b28(0x296)]&&this[_0x326b28(0x137)]();})),this['disposeWithMe'](_0x21b0f1[_0xd9799a(0x328)][_0xd9799a(0x426)](_0x2ad1a4=>{const _0x30158=_0xd9799a;let {objects:_0x148f12}=_0x2ad1a4;this['_clearShapeConnectorHandlerObjects'](),_0x148f12!==null&&_0x148f12[_0x30158(0x3e0)]===0x1&&_0x148f12[_0x30158(0x3ae)]()['next']()[_0x30158(0x30b)]instanceof O&&(this[_0x30158(0x14a)]=!0x0);})),this['disposeWithMe'](_0x21b0f1['changing$'][_0xd9799a(0x426)](_0x6f07e4=>{const _0xb9f064=_0xd9799a;this[_0xb9f064(0x14a)]&&this[_0xb9f064(0x137)]();})),this[_0xd9799a(0x17d)](_0x34ae9a[_0xd9799a(0x369)][_0xd9799a(0x151)](()=>{const _0x4ccd5c=_0xd9799a;this[_0x4ccd5c(0x14a)]&&(this['_isDrawingShapePointDown']=!0x1,this['_addShapeConnectorHandlerObjects']());})),this[_0xd9799a(0x17d)](_0x21b0f1[_0xd9799a(0x3f8)][_0xd9799a(0x426)](()=>{const _0x24733c=_0xd9799a;this[_0x24733c(0x3d2)]&&this[_0x24733c(0x23c)]&&this[_0x24733c(0x296)]&&this[_0x24733c(0x3b1)]['getDrawingByParam']({'unitId':this[_0x24733c(0x3d2)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x24733c(0x296)]})&&(this[_0x24733c(0x137)](),this[_0x24733c(0x385)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x48c7fb=_0x5db5d0;this[_0x48c7fb(0x17d)](this['_drawingManagerService']['focus$'][_0x48c7fb(0x426)](_0x444141=>{const _0x31ee48=_0x48c7fb;if(_0x444141[_0x31ee48(0x2fb)]===0x1){let _0x21a9dd=_0x444141[0x0];if(_0x21a9dd[_0x31ee48(0x3c1)]===a[_0x31ee48(0x3e6)]['DRAWING_SHAPE']){let _0x2630a1=this['_sheetsShapeService'][_0x31ee48(0x11e)](_0x21a9dd['unitId'],_0x21a9dd[_0x31ee48(0x20a)],_0x21a9dd[_0x31ee48(0x3e3)]);if(_0x2630a1&&(0x0,n[_0x31ee48(0x2b3)])(_0x2630a1[_0x31ee48(0x2fa)]())){this[_0x31ee48(0x296)]=_0x21a9dd[_0x31ee48(0x3e3)],this[_0x31ee48(0x3d2)]=_0x21a9dd[_0x31ee48(0x3bf)],this[_0x31ee48(0x23c)]=_0x21a9dd[_0x31ee48(0x20a)],this[_0x31ee48(0x137)](),this[_0x31ee48(0x385)]();return;}}}this[_0x31ee48(0x296)]=void 0x0,this[_0x31ee48(0x3d2)]=void 0x0,this[_0x31ee48(0x23c)]=void 0x0,this[_0x31ee48(0x137)]();})),this[_0x48c7fb(0x17d)](this[_0x48c7fb(0x3b1)][_0x48c7fb(0xe7)][_0x48c7fb(0x426)](_0x43fbf0=>{const _0x473918=_0x48c7fb;if(_0x43fbf0[_0x473918(0x2fb)]===0x1){var _0x5bdf9e;let _0x3c1406=_0x43fbf0[0x0],_0x49b227=(_0x5bdf9e=this['_drawingManagerService'][_0x473918(0x15a)](_0x3c1406))==null?void 0x0:_0x5bdf9e[_0x473918(0x3c1)];_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&_0x3c1406[_0x473918(0x3e3)]===this[_0x473918(0x296)]?(this[_0x473918(0x137)](),this[_0x473918(0x385)]()):!this[_0x473918(0x296)]&&_0x49b227===a[_0x473918(0x3e6)][_0x473918(0x19d)]&&this[_0x473918(0x3d8)](_0x3c1406[_0x473918(0x3bf)],_0x3c1406['subUnitId'],_0x3c1406[_0x473918(0x3e3)]);}})),this['disposeWithMe'](this[_0x48c7fb(0x3b1)][_0x48c7fb(0x386)][_0x48c7fb(0x426)](_0x49b4f6=>{const _0x11db29=_0x48c7fb;for(let _0x4375b1 of _0x49b4f6){let {drawingId:_0x5f1195}=_0x4375b1;if(this[_0x11db29(0x296)]===_0x5f1195){this[_0x11db29(0x13f)]();return;}}}));}[_0x5db5d0(0x37b)](_0x346aef,_0x5761dd,_0x477660,_0x4cbbea,_0x2ca154){const _0x2aa3ff=_0x5db5d0;var _0x33d901;if(!this[_0x2aa3ff(0x258)])return;let _0x362e79=this['_getConnectPointInfo'](_0x346aef);if(!_0x362e79)return;let _0x903ace=this['_currentConnectionTarget']?this[_0x2aa3ff(0x325)][_0x2aa3ff(0x2cf)]:_0x5761dd,_0x1238f2=this[_0x2aa3ff(0x325)]?this['_currentConnectionTarget']['angle']:this[_0x2aa3ff(0x371)](_0x362e79[_0x2aa3ff(0x16b)],_0x903ace),_0x460c18;if(this['_currentConnectionTarget']){let _0x59f4e6=this[_0x2aa3ff(0x3b1)][_0x2aa3ff(0x15a)]({'unitId':this[_0x2aa3ff(0x325)]['unitId'],'subUnitId':this['_currentConnectionTarget'][_0x2aa3ff(0x20a)],'drawingId':this[_0x2aa3ff(0x325)][_0x2aa3ff(0x340)]});if(_0x59f4e6!=null&&_0x59f4e6[_0x2aa3ff(0x32a)]){let {left:_0x38d2b7=0x0,top:_0x3d5512=0x0,width:_0xe80c20=0x0,height:_0x6790f7=0x0,angle:_0x47b290}=_0x59f4e6[_0x2aa3ff(0x32a)];_0x460c18=(0x0,n[_0x2aa3ff(0x239)])({'left':_0x38d2b7,'top':_0x3d5512,'width':_0xe80c20,'height':_0x6790f7},_0x47b290||0x0);}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};}else _0x460c18={'left':_0x903ace['x'],'top':_0x903ace['y'],'width':0x0,'height':0x0};let _0x31b5c6={'point':_0x903ace,'angle':_0x1238f2,'bounds':_0x460c18},_0x5d8176=_0x477660?_0x31b5c6:_0x362e79,_0x2305a3=_0x477660?_0x362e79:_0x31b5c6,_0x351337=this[_0x2aa3ff(0x258)]['getShapeType'](),_0xed955b=(0x0,n['routeConnectorLineShape'])(_0x5d8176,_0x2305a3,_0x351337);_0xed955b&&this[_0x2aa3ff(0x258)]['updateLinePoints'](_0xed955b);let _0x4bf561=(0x0,n[_0x2aa3ff(0x24c)])(_0xed955b,_0x351337);_0x4bf561['lineType']!==_0x351337&&this[_0x2aa3ff(0x258)][_0x2aa3ff(0x103)](_0x4bf561['lineType']);for(let [_0xc4cacc,_0x50c8e9]of Object[_0x2aa3ff(0x2d0)](_0x4bf561[_0x2aa3ff(0x15c)]))this[_0x2aa3ff(0x258)][_0x2aa3ff(0x19a)](_0xc4cacc,_0x50c8e9);this['_activeShapeModel']['updateContext']({'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)]['height']}),_0x4cbbea[_0x2aa3ff(0x1ab)]({'flipX':_0x4bf561[_0x2aa3ff(0x1ca)]['flipX'],'flipY':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0xef)],'left':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x42e)],'top':_0x4bf561[_0x2aa3ff(0x1ca)]['top'],'width':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x2ad)],'height':_0x4bf561[_0x2aa3ff(0x1ca)][_0x2aa3ff(0x3c5)],'angle':_0x4bf561[_0x2aa3ff(0x1e8)]}),_0x4cbbea['makeDirty'](!0x0);let _0xbdf79f=((_0x33d901=this['_currentConnectionTarget'])==null?void 0x0:_0x33d901['worldPoint'])??_0x5761dd;_0x2ca154['transformByState']({'left':_0xbdf79f['x']-n[_0x2aa3ff(0x2b4)][_0x2aa3ff(0xf1)],'top':_0xbdf79f['y']-n[_0x2aa3ff(0x2b4)]['cxnPointRadius']});}[_0x5db5d0(0x200)](_0x552152,_0x4815a4,_0x2c8de4,_0x28aa8e,_0x3390e0){const _0x556bd7=_0x5db5d0;var _0x592957,_0xd2b56c;let _0x1ec3df=((_0x592957=this[_0x556bd7(0x325)])==null?void 0x0:_0x592957['worldPoint'])??_0x552152,_0x308f69=n[_0x556bd7(0x317)][_0x556bd7(0x3a3)](_0x4815a4,_0x1ec3df,_0x2c8de4);_0x28aa8e[_0x556bd7(0x1ab)]({'flipX':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0xfa)],'flipY':_0x308f69['worldRect']['flipY'],'left':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x42e)],'top':_0x308f69[_0x556bd7(0x1ca)]['top'],'width':_0x308f69['worldRect'][_0x556bd7(0x2ad)],'height':_0x308f69['worldRect']['height'],'angle':_0x308f69[_0x556bd7(0x1ca)][_0x556bd7(0x3ed)]});let _0x62141b=((_0xd2b56c=this[_0x556bd7(0x325)])==null?void 0x0:_0xd2b56c['worldPoint'])??_0x552152;_0x3390e0['transformByState']({'left':_0x62141b['x']-n[_0x556bd7(0x2b4)]['cxnPointRadius'],'top':_0x62141b['y']-n['ShapeDefaultConfig'][_0x556bd7(0xf1)]});}[_0x5db5d0(0x1d9)](_0x29f097){const _0xa66680=_0x5db5d0;if(!this[_0xa66680(0x3d2)]||!this[_0xa66680(0x23c)])return null;let {shapeId:_0x4ff6a6,cxnIndex:_0x3578c9}=_0x29f097,_0x589ca6=this[_0xa66680(0x27f)][_0xa66680(0x11e)](this[_0xa66680(0x3d2)],this[_0xa66680(0x23c)],_0x4ff6a6);if(!_0x589ca6)return null;let _0x4cce28=this['_drawingManagerService'][_0xa66680(0x15a)]({'unitId':this[_0xa66680(0x3d2)],'subUnitId':this[_0xa66680(0x23c)],'drawingId':_0x4ff6a6});if(!(_0x4cce28!=null&&_0x4cce28[_0xa66680(0x32a)]))return null;let {left:_0x1c2e89=0x0,top:_0x48bd43=0x0,width:_0x21d1ec=0x0,height:_0xb9519d=0x0,flipX:_0x30c47d=!0x1,flipY:_0x4a1e69=!0x1,angle:_0x55ea61}=_0x4cce28[_0xa66680(0x32a)];_0x589ca6[_0xa66680(0x141)]({'width':_0x21d1ec,'height':_0xb9519d});let _0x2cc4ce=_0x589ca6[_0xa66680(0x186)]()[_0xa66680(0x249)](_0x19c6db=>_0x19c6db[_0xa66680(0x3b0)]===_0x3578c9);if(!_0x2cc4ce)return null;let _0x5e8193=_0x30c47d?_0x21d1ec-_0x2cc4ce['x']:_0x2cc4ce['x'],_0x367114=_0x4a1e69?_0xb9519d-_0x2cc4ce['y']:_0x2cc4ce['y'];if(_0x55ea61!==0x0&&_0x55ea61!=null){let _0x216fba=_0x55ea61*Math['PI']/0xb4,_0x4a48e5=Math['cos'](_0x216fba),_0x598ed5=Math['sin'](_0x216fba),_0x1804ad=_0x21d1ec/0x2,_0xca3c95=_0xb9519d/0x2,_0x332cb7=_0x5e8193-_0x1804ad,_0x11cabd=_0x367114-_0xca3c95;_0x5e8193=_0x1804ad+_0x332cb7*_0x4a48e5-_0x11cabd*_0x598ed5,_0x367114=_0xca3c95+_0x332cb7*_0x598ed5+_0x11cabd*_0x4a48e5;}_0x5e8193+=_0x1c2e89,_0x367114+=_0x48bd43;let _0x4bee40=_0x2cc4ce[_0xa66680(0x3c7)]/0xea60;_0x30c47d&&(_0x4bee40=0xb4-_0x4bee40),_0x4a1e69&&(_0x4bee40=-_0x4bee40),_0x4bee40+=_0x55ea61||0x0,_0x4bee40=(_0x4bee40%0x168+0x168)%0x168;let _0x1b65f3=(0x0,n[_0xa66680(0x239)])({'left':_0x1c2e89,'top':_0x48bd43,'width':_0x21d1ec,'height':_0xb9519d},_0x55ea61||0x0);return{'point':{'x':_0x5e8193,'y':_0x367114},'angle':_0x4bee40,'bounds':_0x1b65f3};}[_0x5db5d0(0x371)](_0x37de8d,_0x1c23bf){const _0x4bc3a2=_0x5db5d0;let _0x148874=_0x1c23bf['x']-_0x37de8d['x'],_0x111663=_0x1c23bf['y']-_0x37de8d['y'];return Math[_0x4bc3a2(0x234)](_0x148874)>=Math[_0x4bc3a2(0x234)](_0x111663)?_0x148874>=0x0?0xb4:0x0:_0x111663>=0x0?0x10e:0x5a;}[_0x5db5d0(0x13f)](){const _0x185082=_0x5db5d0;this['_activeShapeId']=void 0x0,this[_0x185082(0x3d2)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x185082(0x137)]();}[_0x5db5d0(0x1c4)](){const _0x8385d4=_0x5db5d0;this[_0x8385d4(0x137)](),super['dispose']();}};bt=j([A(0x1,a[_0x5db5d0(0x2b9)]),A(0x2,c[_0x5db5d0(0x226)]),A(0x3,s['IDrawingManagerService']),A(0x4,a[_0x5db5d0(0x1c8)]),A(0x5,(0x0,a['Inject'])(i[_0x5db5d0(0x1e0)])),A(0x6,(0x0,a['Inject'])(N)),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(q))],bt);let Y=class extends a['Disposable']{constructor(_0xa8c5d,_0xd2b554,_0x484b7a){const _0x1ff54c=_0x5db5d0;super(),this[_0x1ff54c(0xfd)]=_0xa8c5d,this[_0x1ff54c(0x3b1)]=_0xd2b554,this[_0x1ff54c(0x16d)]=_0x484b7a,this['_initPrinting']();}[_0x5db5d0(0x273)](){const _0x4aeb66=_0x5db5d0;this[_0x4aeb66(0x17d)](this['_sheetPrintInterceptorService'][_0x4aeb66(0x1e4)]['intercept'](this[_0x4aeb66(0xfd)][_0x4aeb66(0x1e4)][_0x4aeb66(0x2a9)]()[_0x4aeb66(0x1fd)],{'handler':(_0x10c37e,_0x2a04cd,_0xafc51a)=>{const _0x3cc7aa=_0x4aeb66;var _0x337fe4;let {unitId:_0x2d2972,subUnitId:_0x2e4c5d,scene:_0xe799c8,resourceCollector:_0x158038}=_0x2a04cd,_0x5de664=(_0x337fe4=this['_drawingManagerService'][_0x3cc7aa(0x2d3)](_0x2d2972))==null?void 0x0:_0x337fe4[_0x2e4c5d];return _0x5de664==null||_0x5de664[_0x3cc7aa(0x2ee)][_0x3cc7aa(0xe5)](_0x4b07d3=>{const _0x2f68b3=_0x3cc7aa;let _0x37d0d0=_0x5de664['data'][_0x4b07d3];_0x37d0d0[_0x2f68b3(0x3c1)]===a[_0x2f68b3(0x3e6)][_0x2f68b3(0x19d)]&&!_0x37d0d0[_0x2f68b3(0x3b9)]&&this[_0x2f68b3(0x16d)][_0x2f68b3(0x308)](_0x37d0d0,_0xe799c8,{'resourceCollector':_0x158038});}),_0xafc51a(_0x10c37e);}}));}};Y=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(l['SheetPrintInterceptorService'])),A(0x1,s[_0x5db5d0(0x10d)]),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(M))],Y);let X=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x2e6842,_0x291348,_0x42b988){const _0x5ea235=_0x5db5d0;super(),this[_0x5ea235(0x1ad)]=_0x2e6842,this[_0x5ea235(0x272)]=_0x291348,this[_0x5ea235(0x2f4)]=_0x42b988,this[_0x5ea235(0x25f)]();}[_0x5db5d0(0x25f)](){const _0x24005a=_0x5db5d0;this[_0x24005a(0x17d)](this[_0x24005a(0x1ad)][_0x24005a(0x368)](_0x443ce0=>{const _0x4001cf=_0x24005a;let _0x58d5d3,_0xae2f3d;if(_0x443ce0['id']===i[_0x4001cf(0x2bd)]['id']||_0x443ce0['id']===i['SetShapeDrawingDataCommand']['id']||_0x443ce0['id']===i[_0x4001cf(0x29b)]['id']){let _0x90e6d0=_0x443ce0[_0x4001cf(0x1a0)];_0x58d5d3=_0x90e6d0[_0x4001cf(0x3bf)],_0xae2f3d=_0x90e6d0[_0x4001cf(0x20a)];}!_0x58d5d3||!_0xae2f3d||this['_sheetPermissionCheckController'][_0x4001cf(0x20d)]({'workbookTypes':[o['WorkbookEditablePermission']],'worksheetTypes':[o['WorksheetEditPermission']]},_0x58d5d3,_0xae2f3d)||this[_0x4001cf(0x2f4)][_0x4001cf(0x26a)](this[_0x4001cf(0x272)]['t'](_0x4001cf(0x1c5)));}));}};X=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x2b9)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a[_0x5db5d0(0x232)])),A(0x2,(0x0,a['Inject'])(o[_0x5db5d0(0x247)]))],X);let Z=class{constructor(_0x1799d0){const _0x37f03b=_0x5db5d0;this[_0x37f03b(0x104)]=_0x1799d0;}[_0x5db5d0(0x34c)](_0x4421c1,_0x2ca133){const _0x9adbf2=_0x5db5d0;let _0xb2e800=this[_0x9adbf2(0x104)][_0x9adbf2(0x2c4)](_0x4421c1['unitId']),_0x4d4187=_0xb2e800==null?void 0x0:_0xb2e800[_0x9adbf2(0x2e7)];if(!_0x4d4187)return;let _0x2ade55=(0x0,s[_0x9adbf2(0x1f8)])(_0x4421c1),_0x175fc8=_0x4d4187[_0x9adbf2(0x1d5)](_0x2ade55);_0x175fc8==null||_0x175fc8['setFillImage'](_0x2ca133);}};Z=j([A(0x0,c['IRenderManagerService'])],Z);let Q=class extends a['Plugin']{constructor(_0x1028ee=ct,_0x5eb5f9,_0x3295f9,_0x57c185,_0x3e00e9,_0x1df249){const _0x3d1574=_0x5db5d0;super(),this[_0x3d1574(0x3d7)]=_0x1028ee,this[_0x3d1574(0x418)]=_0x5eb5f9,this['_commandService']=_0x3295f9,this[_0x3d1574(0x3d1)]=_0x57c185,this[_0x3d1574(0x104)]=_0x3e00e9,this['_uiPartsService']=_0x1df249;let {..._0x4d9814}=(0x0,a[_0x3d1574(0x1d4)])({},ct,this[_0x3d1574(0x3d7)]);this[_0x3d1574(0x3d1)][_0x3d1574(0x2ba)](st,_0x4d9814),this['_initCommands']();}[_0x5db5d0(0xff)](){const _0x209493=_0x5db5d0;this[_0x209493(0x418)][_0x209493(0x381)]([ut]),this[_0x209493(0x418)][_0x209493(0x3b6)](ut),(0x0,a['registerDependencies'])(this[_0x209493(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x2f6)](){const _0x5c1504=_0x5db5d0;(0x0,a[_0x5c1504(0x37e)])(this[_0x5c1504(0x418)],[[q],[N],[J]]),(0x0,a['touchDependencies'])(this['_injector'],[[J],[N]]),[[q],[lt],[bt],[ft]]['forEach'](_0x2907a8=>{const _0x23f5ac=_0x5c1504;this['disposeWithMe'](this[_0x23f5ac(0x104)]['registerRenderModule'](a[_0x23f5ac(0x400)][_0x23f5ac(0x319)],_0x2907a8));}),this[_0x5c1504(0x17d)](this[_0x5c1504(0x14c)][_0x5c1504(0x290)](t[_0x5c1504(0x2ae)]['FOOTER'],()=>(0x0,t[_0x5c1504(0x3d0)])(e[_0x5c1504(0x1c9)],this[_0x5c1504(0x418)])));}[_0x5db5d0(0x283)](){const _0x478069=_0x5db5d0;(0x0,a['touchDependencies'])(this[_0x478069(0x418)],[[ht],[K],[M],[Y],[Z],[U],[G],[V],[X]]);}[_0x5db5d0(0x1d6)](){const _0x23bca7=_0x5db5d0;this[_0x23bca7(0x418)]['get'](ht)[_0x23bca7(0x41a)]();}[_0x5db5d0(0x18b)](){const _0xe6b026=_0x5db5d0;[F,S,P,ot][_0xe6b026(0xe5)](_0x1be916=>this[_0xe6b026(0x17d)](this['_commandService']['registerCommand'](_0x1be916)));}};E(Q,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E(Q,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E(Q,_0x5db5d0(0x286),it),E(Q,_0x5db5d0(0x427),at),Q=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g['UniverDocsPlugin'],s['UniverDrawingPlugin'],c['UniverRenderEnginePlugin'],o[_0x5db5d0(0x1ea)],_[_0x5db5d0(0x142)],m[_0x5db5d0(0x255)],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x41e)],i[_0x5db5d0(0x1cc)],l['UniverSheetsMobileUIPlugin'],e['UniverShapeEditorMobileUIPlugin'],t[_0x5db5d0(0x166)]),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(a['Injector'])),A(0x2,a[_0x5db5d0(0x2b9)]),A(0x3,a[_0x5db5d0(0x31f)]),A(0x4,c[_0x5db5d0(0x226)]),A(0x5,t[_0x5db5d0(0x225)])],Q);function xt(_0x12273f){const _0x229e2f=_0x5db5d0;return _0x12273f[_0x229e2f(0x106)]()||void 0x0;}function St(_0x3f35c0,_0x4f8f18,_0x412c3e){const _0x5234c0=_0x5db5d0;var _0x4b7841;return((_0x4b7841=_0x3f35c0[_0x5234c0(0x3fa)])==null?void 0x0:_0x4b7841[_0x5234c0(0x106)]())||(0x0,d['getObjectListPanelTypeName'])(_0x412c3e,(0x0,e[_0x5234c0(0x3a0)])(_0x3f35c0[_0x5234c0(0x3c1)]))+'\x20'+(_0x4f8f18+0x1);}function Ct(){const _0x4cf398=_0x5db5d0;var _0x3eb2bf;let _0x239272=(0x0,t[_0x4cf398(0x432)])(a['LocaleService']),_0x4812c9=(0x0,t[_0x4cf398(0x432)])(a[_0x4cf398(0x2b9)]),_0x32b671=(0x0,t[_0x4cf398(0x432)])(a['IUniverInstanceService']),_0x1ddc19=(0x0,t['useDependency'])(m[_0x4cf398(0x201)]),_0x5e5dce=(0x0,t[_0x4cf398(0x432)])(s['IDrawingManagerService']),_0x14fa69=(0x0,t['useDependency'])(c[_0x4cf398(0x226)]),[,_0x18d9f6]=(0x0,b[_0x4cf398(0x42c)])(_0x244ce3=>_0x244ce3+0x1,0x0),_0xa8ac51=_0x32b671['getCurrentUnitOfType'](a[_0x4cf398(0x400)][_0x4cf398(0x319)]),_0x3f956b=(_0xa8ac51==null?void 0x0:_0xa8ac51[_0x4cf398(0x2d1)]())??'',_0x3f108e=(_0xa8ac51==null||(_0x3eb2bf=_0xa8ac51[_0x4cf398(0x136)]())==null?void 0x0:_0x3eb2bf['getSheetId']())??'',_0x4a2b24=(0x0,t['useObservable'])(()=>_0x5e5dce[_0x4cf398(0x344)],_0x5e5dce['getFocusDrawings'](),!0x1,[_0x5e5dce]);(0x0,b[_0x4cf398(0x40d)])(()=>{const _0x218eba=_0x4cf398;let _0x4524ae=_0x4812c9['onCommandExecuted'](()=>_0x18d9f6());return()=>_0x4524ae[_0x218eba(0x1c4)]();},[_0x4812c9]);let _0x5143f2=(0x0,b[_0x4cf398(0x382)])(()=>(0x0,d[_0x4cf398(0x14e)])(_0x239272),[_0x239272]),_0x3bfb44=_0x3f956b&&_0x3f108e?_0x1ddc19['getDrawingData'](_0x3f956b,_0x3f108e):{},_0x539897=(_0x3f956b&&_0x3f108e?_0x1ddc19[_0x4cf398(0x31d)](_0x3f956b,_0x3f108e):[])[_0x4cf398(0x410)](_0x20f534=>_0x3bfb44[_0x20f534])['filter'](_0x437838=>!!_0x437838)['reverse'](),_0x2d1039=_0x539897['reduce']((_0x453abb,_0x5745eb)=>(_0x453abb[(0x0,d[_0x4cf398(0x32d)])(_0x5745eb['drawingType'])]+=0x1,_0x453abb),{'canvas':0x0,'floating':0x0}),_0x252df0={'canvas':0x0,'floating':0x0},_0x309749=_0x539897[_0x4cf398(0x410)]((_0x38a796,_0x56cb9d)=>{const _0x222437=_0x4cf398;let _0x1b2b5b=(0x0,d[_0x222437(0x32d)])(_0x38a796[_0x222437(0x3c1)]),_0x116a84=_0x1b2b5b===d[_0x222437(0x2f7)],_0x66deab=_0x252df0[_0x1b2b5b]++;return{'id':_0x38a796[_0x222437(0x3e3)],'name':St(_0x38a796,_0x56cb9d,_0x239272),'description':_0x38a796[_0x222437(0x35c)],'visible':_0x38a796[_0x222437(0x3b9)]!==!0x0,'selectable':_0x38a796[_0x222437(0x116)]!==!0x1,'sectionId':_0x1b2b5b,'sectionTitle':_0x116a84?_0x5143f2[_0x222437(0x1ed)]:_0x5143f2[_0x222437(0x262)],'capabilities':_0x116a84?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x116a84&&_0x66deab>0x0,'canMoveBackward':!_0x116a84&&_0x66deab<_0x2d1039[_0x222437(0x2c1)]-0x1,'canReorder':!_0x116a84};}),_0x297d8d=(0x0,b[_0x4cf398(0x382)])(()=>(_0x4a2b24??[])[_0x4cf398(0x38e)](_0x3c1782=>_0x3c1782[_0x4cf398(0x3bf)]===_0x3f956b&&_0x3c1782['subUnitId']===_0x3f108e)[_0x4cf398(0x410)](_0x231e14=>_0x231e14[_0x4cf398(0x3e3)]),[_0x4a2b24,_0x3f108e,_0x3f956b]),_0x4e8fd2=_0x297d8d[_0x297d8d[_0x4cf398(0x2fb)]-0x1]??null,_0x455eed=_0x3b19e0=>_0x1ddc19['getDrawingByParam']({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3b19e0})??null,_0x82e3b3=async _0x30cd36=>{const _0x282097=_0x4cf398;!_0x3f956b||!_0x30cd36[_0x282097(0x2fb)]||await _0x4812c9['executeCommand'](m[_0x282097(0x421)]['id'],{'unitId':_0x3f956b,'drawings':_0x30cd36});},_0x369a96=async(_0x49237e,_0x22ee22)=>{_0x455eed(_0x49237e)&&await _0x82e3b3([{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x49237e,..._0x22ee22}]);},_0x5e5c9a=(_0x7b96d7,_0x249541)=>{const _0x1da828=_0x4cf398;if(!_0x3f956b||!_0x3f108e)return;let _0x47bf28=_0x249541?_0x297d8d[_0x1da828(0x175)](_0x7b96d7)?_0x297d8d['filter'](_0x273edc=>_0x273edc!==_0x7b96d7):[..._0x297d8d,_0x7b96d7]:[_0x7b96d7];_0x4812c9[_0x1da828(0x3b8)](s[_0x1da828(0x3dd)]['id'],_0x47bf28['map'](_0x501a8f=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x501a8f})));let _0x1b3a75=_0x47bf28[_0x47bf28[_0x1da828(0x2fb)]-0x1];_0x1b3a75?(0x0,e[_0x1da828(0x32e)])(_0x14fa69,{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x1b3a75}):(0x0,e['clearActiveDrawingObjects'])(_0x14fa69,_0x3f956b);},_0x160d5c=async(_0x203e8b,_0x5973ef)=>{const _0x4d314a=_0x4cf398;await _0x82e3b3(_0x203e8b[_0x4d314a(0x410)](_0x3dc742=>_0x455eed(_0x3dc742))[_0x4d314a(0x38e)](_0x35e088=>!!_0x35e088)[_0x4d314a(0x38e)](_0x1bacc9=>_0x1bacc9['hidden']!==!0x0!==_0x5973ef)[_0x4d314a(0x410)](_0x3d6bad=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x3d6bad[_0x4d314a(0x3e3)],'hidden':!_0x5973ef})));},_0xdb59f5=async(_0x40f914,_0x2f916c)=>{const _0x453980=_0x4cf398;await _0x82e3b3(_0x40f914['map'](_0x3ebee5=>_0x455eed(_0x3ebee5))[_0x453980(0x38e)](_0x39fc34=>!!_0x39fc34)['filter'](_0x454964=>_0x454964[_0x453980(0x116)]!==!0x1!==_0x2f916c)['map'](_0x5772ff=>({'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingId':_0x5772ff['drawingId'],'selectable':_0x2f916c})));},_0x254547=_0x2b6898=>{const _0x549eec=_0x4cf398;let _0x876f09=_0x455eed(_0x2b6898);if(_0x876f09)return _0xdb59f5([_0x2b6898],_0x876f09[_0x549eec(0x116)]===!0x1);},_0x4602c7=async(_0x9fd6df,_0x1c5100)=>{const _0x5af92f=_0x4cf398;var _0xdf1ac7;let _0x2ae9cf=xt(_0x1c5100);(((_0xdf1ac7=_0x455eed(_0x9fd6df))==null?void 0x0:_0xdf1ac7[_0x5af92f(0x3fa)])??void 0x0)!==_0x2ae9cf&&await _0x369a96(_0x9fd6df,{'name':_0x2ae9cf});},_0xea3835=async(_0x2b584c,_0x496296)=>{const _0x4997cc=_0x4cf398;var _0x5771be;let _0x463c0e=xt(_0x496296);(((_0x5771be=_0x455eed(_0x2b584c))==null?void 0x0:_0x5771be[_0x4997cc(0x35c)])??void 0x0)!==_0x463c0e&&await _0x369a96(_0x2b584c,{'description':_0x463c0e});},_0x30c4f6=async(_0x44892a,_0xfe7982)=>{const _0x281761=_0x4cf398;!_0x3f956b||!_0x3f108e||await _0x4812c9[_0x281761(0x3e5)](m[_0x281761(0x326)]['id'],{'unitId':_0x3f956b,'subUnitId':_0x3f108e,'drawingIds':[_0x44892a],'arrangeType':_0xfe7982});};return!_0x3f956b||!_0x3f108e?(0x0,p[_0x4cf398(0x37a)])(_0x4cf398(0x394),{'className':_0x4cf398(0x32c),'children':_0x5143f2[_0x4cf398(0x268)]}):(0x0,p['jsx'])(d[_0x4cf398(0x294)],{'items':_0x309749,'selectedIds':_0x297d8d,'focusedId':_0x4e8fd2,'labels':_0x5143f2,'showHeader':!0x1,'onSelect':_0x5e5c9a,'onSetVisible':_0x160d5c,'onSetSelectable':_0xdb59f5,'onCommitName':_0x4602c7,'onCommitDescription':_0xea3835,'onMoveForward':async _0x7ae4d5=>_0x30c4f6(_0x7ae4d5,a[_0x4cf398(0x150)][_0x4cf398(0x306)]),'onMoveBackward':async _0x1001de=>_0x30c4f6(_0x1001de,a[_0x4cf398(0x150)]['backward']),'onToggleSelectable':_0x254547});}function wt(){const _0x38229e=_0x5db5d0;let _0x17c9d8=(0x0,t['useDependency'])(s[_0x38229e(0x10d)]),_0x3a506d=(0x0,t[_0x38229e(0x148)])(()=>_0x17c9d8[_0x38229e(0x344)],_0x17c9d8[_0x38229e(0x3fc)](),!0x1,[_0x17c9d8]);return _0x3a506d[_0x38229e(0x2fb)]===0x0?null:(0x0,p['jsx'])(_0x38229e(0x394),{'children':(0x0,p[_0x38229e(0x39d)])(_0x38229e(0x394),{'className':_0x38229e(0x20f),'children':[(0x0,p['jsx'])(d[_0x38229e(0x1a7)],{'drawings':_0x3a506d,'hasCropper':!0x1}),(0x0,p[_0x38229e(0x37a)])(v[_0x38229e(0x13e)],{'drawings':_0x3a506d})]})});}function Tt(_0x481269){const _0x2f05ac=_0x5db5d0;let {unitId:_0xbe9989,subUnitId:_0x1c1d7d,shapeId:_0x269846}=_0x481269,_0x35bbe8=(0x0,t[_0x2f05ac(0x432)])(a['ICommandService']),_0x3d36de=(0x0,t['useDependency'])(Z);return(0x0,p[_0x2f05ac(0x37a)])(e[_0x2f05ac(0x2a2)],{..._0x481269,'positionEditor':(0x0,p[_0x2f05ac(0x37a)])(wt,{}),'onUpdateShapeData':(_0x3fc726,_0x15523e)=>{C(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0x3fc726,_0x15523e);},'onUpdateLineShapeData':(_0xa813de,_0x399bf9)=>{ee(_0x35bbe8,_0xbe9989,_0x1c1d7d,_0x269846,_0xa813de,_0x399bf9);},'onUpdateShapeFillImage':_0x41c126=>{_0x3d36de['updateShapeFillImage']({'unitId':_0xbe9989,'subUnitId':_0x1c1d7d,'drawingId':_0x269846},_0x41c126);}});}function Et(_0x10e0fd){const _0x2a7064=_0x5db5d0;let _0x5d85c4=(0x0,t[_0x2a7064(0x432)])(e[_0x2a7064(0x38a)]),_0x283429=(0x0,t['useObservable'])(()=>_0x5d85c4[_0x2a7064(0x248)],_0x5d85c4[_0x2a7064(0x1bc)](),!0x1,[_0x5d85c4]),_0xe7d298=_0x10e0fd[_0x2a7064(0x2c7)]['extraProps'];return!_0xe7d298||!_0x283429?null:(0x0,p['jsx'])(Dt,{..._0xe7d298,'canvasElement':_0x10e0fd[_0x2a7064(0x2c7)][_0x2a7064(0x41c)]});}function Dt(_0x3e7a61){const _0x26b297=_0x5db5d0;let _0x3cbd74=(0x0,t[_0x26b297(0x432)])(a[_0x26b297(0x2b9)]),_0x1660c5=(0x0,t[_0x26b297(0x432)])(i[_0x26b297(0x1e0)]),{unitId:_0x1307b8,subUnitId:_0x5591a1,drawingId:_0x4872be,drawingType:_0x4ad896,shapeType:_0x3c5d9b}=_0x3e7a61,[_0x52c097,_0xfe55d1]=(0x0,b[_0x26b297(0x397)])(_0x3e7a61[_0x26b297(0x398)]),_0x40180b=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x434)])(_0x52c097),[_0x52c097]),_0x5977f5=(0x0,b['useMemo'])(()=>(0x0,e[_0x26b297(0x329)])(_0x52c097),[_0x52c097]);(0x0,b[_0x26b297(0x40d)])(()=>{const _0x3f26f0=_0x26b297;let _0x366790=_0x3cbd74[_0x3f26f0(0x1aa)](_0x285c36=>{const _0x59e04d=_0x3f26f0;if(_0x285c36['id']!==i['UpdateSheetsShapeDataMutation']['id'])return;let _0x5b8de6=_0x1660c5[_0x59e04d(0x287)](_0x1307b8,_0x5591a1,_0x4872be);_0x5b8de6&&_0xfe55d1(_0x5b8de6);});return()=>_0x366790[_0x3f26f0(0x1c4)]();},[_0x3cbd74,_0x4872be,_0x1660c5,_0x5591a1,_0x1307b8]);let _0x3b40a1=_0x5ba2d3=>{_0xfe55d1(_0x44c5cd=>({..._0x44c5cd,..._0x5ba2d3}));},_0x38afe2=_0x47d916=>{const _0xfacbb0=_0x26b297;let _0x269d78=(0x0,e[_0xfacbb0(0x374)])(_0x52c097,_0x47d916);C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'shapeText':_0x52c097[_0xfacbb0(0x3de)]}},_0x269d78),_0x3b40a1(_0x269d78);},_0x421141=(0x0,e[_0x26b297(0x24a)])({'hostType':a[_0x26b297(0x400)]['UNIVER_SHEET'],'unitId':_0x1307b8,'subUnitId':_0x5591a1,'shapeId':_0x4872be,'shapeData':_0x52c097,'onUpdateBinding':_0x2a8bf1=>{const _0x2a9e1e=_0x26b297;let _0x23d3c6={'formulaBinding':_0x2a8bf1};C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,{'oldShapeData':{'formulaBinding':_0x52c097[_0x2a9e1e(0x238)]}},_0x23d3c6),_0x3b40a1(_0x23d3c6);}});return(0x0,p[_0x26b297(0x39d)])(p[_0x26b297(0x1e3)],{'children':[(0x0,p[_0x26b297(0x37a)])(e[_0x26b297(0x158)],{'canvasElement':_0x3e7a61[_0x26b297(0x41c)],'shapeData':_0x52c097,'shapeType':_0x3c5d9b,'textStyle':{'ff':n[_0x26b297(0x2b4)][_0x26b297(0x3de)][_0x26b297(0x3a2)],'fs':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x22e)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x26b297(0x3de)][_0x26b297(0x18f)]},..._0x40180b},'textModel':_0x5977f5?{'ha':_0x5977f5['ha']??a[_0x26b297(0x20b)][_0x26b297(0x27b)],'va':_0x5977f5['va']??a[_0x26b297(0x3c2)][_0x26b297(0x2e0)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x26b297(0x2b4)]['fill'],'defaultGradientEndColor':n[_0x26b297(0x2b4)]['gradientEndColor'],'defaultStrokeColor':n[_0x26b297(0x2b4)][_0x26b297(0x2b0)],'extensionGroups':_0x421141[_0x26b297(0x250)],'floatingObjectToolbarPosition':t[_0x26b297(0x207)]['SHEET'],'onUpdateShapeData':(_0x209397,_0x199fd5)=>{C(_0x3cbd74,_0x1307b8,_0x5591a1,_0x4872be,_0x209397,_0x199fd5),_0x199fd5&&_0x3b40a1(_0x199fd5);},'onUpdateText':_0x38afe2,'onOpenPanel':()=>{const _0x7895f=_0x26b297;_0x3cbd74[_0x7895f(0x3e5)](B['id'],{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be});},'onDelete':()=>{const _0xc3e302=_0x26b297;_0x3cbd74['executeCommand'](m[_0xc3e302(0x346)]['id'],{'unitId':_0x1307b8,'drawings':[{'unitId':_0x1307b8,'subUnitId':_0x5591a1,'drawingId':_0x4872be,'drawingType':_0x4ad896}]});}}),_0x421141[_0x26b297(0x160)]]});}function Ot(_0x14ad00){const _0x11915f=_0x5db5d0;return!!_0x14ad00&&'axisAlignSheetTransform'in _0x14ad00&&_0x11915f(0x194)in _0x14ad00;}const kt=(0x0,b[_0x5db5d0(0x257)])(()=>{const _0x6f0f21=_0x5db5d0;let _0x4c433a=(0x0,t['useDependency'])(U),_0x403692=(0x0,t[_0x6f0f21(0x432)])(i['SheetsShapeService']),_0x1fd6b1=(0x0,t['useDependency'])(s[_0x6f0f21(0x10d)]),_0x3ccc3e=(0x0,t[_0x6f0f21(0x432)])(a[_0x6f0f21(0x2b9)]),_0x18a881=(0x0,t[_0x6f0f21(0x432)])(t['UndoRedoGroupService']),_0x3edfe0=(0x0,t['useDependency'])(c[_0x6f0f21(0x226)]);return(0x0,p['jsx'])(e[_0x6f0f21(0x120)],{'adapter':(0x0,b[_0x6f0f21(0x382)])(()=>({'getShapeModel':(_0x2a0907,_0x355b71,_0x2fd3f1)=>_0x403692[_0x6f0f21(0x11e)](_0x2a0907,_0x355b71,_0x2fd3f1),'getShapeData':(_0x318545,_0x164a45,_0x4ab0dc)=>_0x403692[_0x6f0f21(0x287)](_0x318545,_0x164a45,_0x4ab0dc),'getDrawingTransform':(_0x1de989,_0x9ca176,_0xf3dd3e)=>{const _0x241ad9=_0x6f0f21;let _0x384939=_0x1fd6b1[_0x241ad9(0x15a)]({'unitId':_0x1de989,'subUnitId':_0x9ca176,'drawingId':_0xf3dd3e});return _0x384939==null?void 0x0:_0x384939[_0x241ad9(0x32a)];},'updateShapeText':({unitId:_0x25c071,subUnitId:_0x5743a6,shapeId:_0x109267,shapeText:_0x3f5cb1,oldShapeText:_0x470132,hostSize:_0x1e7767})=>{const _0x463ef1=_0x6f0f21;_0x18a881[_0x463ef1(0x271)](_0x25c071,()=>{const _0x573203=_0x463ef1;var _0x225d82;let _0x1c96c8=_0x3ccc3e[_0x573203(0x3b8)](S['id'],{'unitId':_0x25c071,'subUnitId':_0x5743a6,'shapeId':_0x109267,'shapeData':{'shapeText':_0x3f5cb1},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x470132}}});if(!_0x1c96c8||!_0x1e7767)return _0x1c96c8;let _0x515541=_0x1fd6b1[_0x573203(0x15a)]({'unitId':_0x25c071,'subUnitId':_0x5743a6,'drawingId':_0x109267}),_0x33fcab=_0x515541==null?void 0x0:_0x515541['transform'];if(!Ot(_0x515541)||!_0x33fcab)return!0x1;let _0x494696={..._0x33fcab,'width':_0x1e7767[_0x573203(0x2ad)],'height':_0x1e7767[_0x573203(0x3c5)]},_0x5a7f40=(_0x225d82=_0x3edfe0[_0x573203(0x2c4)](_0x25c071))==null||(_0x225d82=_0x225d82['with'](l[_0x573203(0x364)])[_0x573203(0x342)](_0x5743a6))==null?void 0x0:_0x225d82['skeleton'];return _0x3ccc3e[_0x573203(0x3b8)](m[_0x573203(0x421)]['id'],{'unitId':_0x25c071,'drawings':[{..._0x515541,'transform':_0x494696,'sheetTransform':_0x5a7f40?(0x0,m['transformToDrawingPosition'])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0x194)]:_0x515541[_0x573203(0x194)],'axisAlignSheetTransform':_0x5a7f40?(0x0,m[_0x573203(0x3f2)])(_0x494696,_0x5a7f40)??_0x515541[_0x573203(0xf9)]:_0x515541[_0x573203(0xf9)]}]});});},'updateHostSize':({unitId:_0x213966,subUnitId:_0x3b9191,shapeId:_0x2c7255,width:_0x4350db,height:_0x509480})=>{const _0x33b2bd=_0x6f0f21;var _0x5053de;let _0x5b5706=_0x1fd6b1[_0x33b2bd(0x15a)]({'unitId':_0x213966,'subUnitId':_0x3b9191,'drawingId':_0x2c7255}),_0x38b5eb=_0x5b5706==null?void 0x0:_0x5b5706['transform'];if(!Ot(_0x5b5706)||!_0x38b5eb)return;let _0x413706={..._0x38b5eb,'width':_0x4350db,'height':_0x509480},_0x476bb3=(_0x5053de=_0x3edfe0['getRenderUnitById'](_0x213966))==null||(_0x5053de=_0x5053de[_0x33b2bd(0x35a)](l[_0x33b2bd(0x364)])[_0x33b2bd(0x342)](_0x3b9191))==null?void 0x0:_0x5053de[_0x33b2bd(0x3f1)],_0x234390=_0x476bb3?(0x0,m[_0x33b2bd(0x39f)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0x194)]:_0x5b5706[_0x33b2bd(0x194)],_0x32cacc=_0x476bb3?(0x0,m[_0x33b2bd(0x3f2)])(_0x413706,_0x476bb3)??_0x5b5706[_0x33b2bd(0xf9)]:_0x5b5706[_0x33b2bd(0xf9)];_0x3ccc3e['executeCommand'](m[_0x33b2bd(0x421)]['id'],{'unitId':_0x213966,'drawings':[{..._0x5b5706,'transform':_0x413706,'sheetTransform':_0x234390,'axisAlignSheetTransform':_0x32cacc}]});},'allowHostSizeShrink':({unitId:_0x127292,subUnitId:_0x21d729,shapeId:_0x436288})=>(0x0,e[_0x6f0f21(0x3c6)])(_0x403692[_0x6f0f21(0x287)](_0x127292,_0x21d729,_0x436288)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x3ccc3e,_0x1fd6b1,_0x3edfe0,_0x403692,_0x18a881]),'editingService':_0x4c433a,'editorUnitId':ne,'positionOptions':(0x0,b['useMemo'])(()=>({'viewportKeys':{'main':c[_0x6f0f21(0x198)]['VIEW_MAIN'],'leftTop':c[_0x6f0f21(0x198)][_0x6f0f21(0x36e)],'top':c['SHEET_VIEWPORT_KEY'][_0x6f0f21(0x3c9)],'left':c[_0x6f0f21(0x198)]['VIEW_MAIN_LEFT']},'getSkeleton':(_0x5ae672,_0xd1adee)=>{const _0x30d518=_0x6f0f21;var _0x2ccdbf;return((_0x2ccdbf=_0x5ae672[_0x30d518(0x35a)](l[_0x30d518(0x364)])[_0x30d518(0x342)](_0xd1adee[_0x30d518(0x20a)]))==null?void 0x0:_0x2ccdbf[_0x30d518(0x3f1)])??null;}}),[])});});let At=class extends a['Disposable']{constructor(_0x3fb35a,_0x568b90){const _0xdda604=_0x5db5d0;super(),this[_0xdda604(0x280)]=_0x3fb35a,this['_iconManager']=_0x568b90,this[_0xdda604(0x11a)](),this[_0xdda604(0x163)]();}[_0x5db5d0(0x11a)](){const _0xf2eb79=_0x5db5d0;this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1b9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)]['register']({'ObjectLayersIcon':y[_0xf2eb79(0x1b9)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x38d))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipHorizontalIcon':y[_0xf2eb79(0x38d)]})),this[_0xf2eb79(0x2fc)]['has'](_0xf2eb79(0x1c3))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'FlipVerticalIcon':y['FlipVerticalIcon']})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x34a))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'BottomIcon':y[_0xf2eb79(0x34a)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x267))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)]['register']({'MoveDownIcon':y[_0xf2eb79(0x267)]})),this['_iconManager'][_0xf2eb79(0x18e)](_0xf2eb79(0x1dc))||this['disposeWithMe'](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'MoveUpIcon':y[_0xf2eb79(0x1dc)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x3f9))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'ShapeFormatSettingIcon':y[_0xf2eb79(0x3f9)]})),this[_0xf2eb79(0x2fc)][_0xf2eb79(0x18e)](_0xf2eb79(0x11c))||this[_0xf2eb79(0x17d)](this[_0xf2eb79(0x2fc)][_0xf2eb79(0x3f3)]({'TopmostIcon':y[_0xf2eb79(0x11c)]}));}[_0x5db5d0(0x163)](){const _0x48d75a=_0x5db5d0;this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](I,Tt)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](L,Ct)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](ce,me)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](le,de)),this[_0x48d75a(0x280)][_0x48d75a(0x3b6)](d[_0x48d75a(0x401)])||this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](d[_0x48d75a(0x401)],pe)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](R,Et)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Te,ke)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](we,Ae)),this['disposeWithMe'](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](Ee,je)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)][_0x48d75a(0x3f3)](De,Me)),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register'](re,e['ShapeTextFloatToolbar'])),this[_0x48d75a(0x17d)](this[_0x48d75a(0x280)]['register']('SheetShapeTextEditorContainer',kt));}};At=j([A(0x0,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0xd8)])),A(0x1,(0x0,a[_0x5db5d0(0x22f)])(t[_0x5db5d0(0x235)]))],At);const jt=_0x5db5d0(0x19e);let Mt=class extends a[_0x5db5d0(0x1ff)]{constructor(_0x3be93c,_0x443268,_0x374f64,_0x371607,_0x59b40b,_0x5861b4){const _0x4c9c32=_0x5db5d0;super(),this[_0x4c9c32(0x25c)]=_0x3be93c,this['_ribbonService']=_0x443268,this[_0x4c9c32(0x3b1)]=_0x374f64,this[_0x4c9c32(0x12c)]=_0x371607,this[_0x4c9c32(0x104)]=_0x59b40b,this['_shapeFloatingToolbarService']=_0x5861b4,E(this,_0x4c9c32(0x3e4),!0x1),this[_0x4c9c32(0x25c)][_0x4c9c32(0x2a6)](tt),this[_0x4c9c32(0x17d)]((0x0,a['toDisposable'])(this[_0x4c9c32(0x3b1)][_0x4c9c32(0x344)]['subscribe'](()=>this['_update']()))),this['_update']();}['dispose'](){const _0x1da6ea=_0x5db5d0;this[_0x1da6ea(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0x1da6ea(0x111)](),super[_0x1da6ea(0x1c4)]();}[_0x5db5d0(0x353)](){const _0xc7a9de=_0x5db5d0;var _0x4d5f46;let _0x243ea3=this[_0xc7a9de(0x3b1)][_0xc7a9de(0x3fc)](),_0xd73dec=_0x243ea3['length']===0x1?_0x243ea3[0x0]:void 0x0;if((_0xd73dec==null?void 0x0:_0xd73dec[_0xc7a9de(0x3c1)])!==a['DrawingTypeEnum'][_0xc7a9de(0x19d)]||this[_0xc7a9de(0x12c)][_0xc7a9de(0x16c)](_0xd73dec[_0xc7a9de(0x3bf)])!==a['UniverInstanceType'][_0xc7a9de(0x319)]){this[_0xc7a9de(0x39c)]['setFallbackVisible'](!0x1,jt),this[_0xc7a9de(0x111)]();return;}let _0x5a7d69=(0x0,e[_0xc7a9de(0xdd)])((_0x4d5f46=this['_renderManagerService'][_0xc7a9de(0x2c4)](_0xd73dec[_0xc7a9de(0x3bf)]))==null?void 0x0:_0x4d5f46['engine'][_0xc7a9de(0x12e)]())===_0xc7a9de(0x211);if(this[_0xc7a9de(0x39c)][_0xc7a9de(0x3db)](_0x5a7d69,jt),_0x5a7d69){this[_0xc7a9de(0x111)]();return;}this[_0xc7a9de(0x3e4)]||(this[_0xc7a9de(0x3e4)]=!0x0,this[_0xc7a9de(0xde)]['showContextualTab'](z,{'activate':!0x0}));}['_hide'](){const _0x8ee407=_0x5db5d0;this[_0x8ee407(0x3e4)]&&(this[_0x8ee407(0x3e4)]=!0x1,this[_0x8ee407(0xde)][_0x8ee407(0x2b5)](z),this[_0x8ee407(0xde)][_0x8ee407(0x2e9)]([]));}};Mt=j([A(0x0,t[_0x5db5d0(0x172)]),A(0x1,t['IRibbonService']),A(0x2,s['IDrawingManagerService']),A(0x3,a[_0x5db5d0(0x1c8)]),A(0x4,c['IRenderManagerService']),A(0x5,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x38a)]))],Mt);let Nt=class extends e[_0x5db5d0(0x26c)]{constructor(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066){super(_0x3bf12b,_0x43fd44,_0x13b4bb,_0x1f2124,_0x4d54c5,_0x2d4bf2,_0x1d1aff,_0xffbcb5,_0xd23c66,_0xb0a066,{'componentKey':re,'editorUnitId':ne});}};Nt=j([A(0x1,(0x0,a[_0x5db5d0(0x22f)])(g[_0x5db5d0(0x1e6)])),A(0x2,(0x0,a[_0x5db5d0(0x22f)])(_[_0x5db5d0(0x37f)])),A(0x3,(0x0,a['Inject'])(_[_0x5db5d0(0x419)])),A(0x4,a[_0x5db5d0(0x2b9)]),A(0x5,(0x0,a['Inject'])(_[_0x5db5d0(0x420)])),A(0x6,(0x0,a[_0x5db5d0(0x22f)])(e[_0x5db5d0(0x380)])),A(0x7,(0x0,a[_0x5db5d0(0x22f)])(g['DocInterceptorService'])),A(0x8,(0x0,a['Inject'])(_[_0x5db5d0(0x144)])),A(0x9,(0x0,a[_0x5db5d0(0x22f)])(U))],Nt);let $=class extends a[_0x5db5d0(0x17a)]{constructor(_0x5209f5=ct,_0x4cc0b2,_0x4abd0a,_0x2ed204,_0x3ce49f){const _0x308cba=_0x5db5d0;super(),this[_0x308cba(0x3d7)]=_0x5209f5,this[_0x308cba(0x418)]=_0x4cc0b2,this[_0x308cba(0x1ad)]=_0x4abd0a,this['_configService']=_0x2ed204,this[_0x308cba(0x104)]=_0x3ce49f;let {..._0x38675f}=(0x0,a[_0x308cba(0x1d4)])({},ct,this['_config']);this[_0x308cba(0x3d1)][_0x308cba(0x2ba)](st,_0x38675f),this[_0x308cba(0x18b)]();}[_0x5db5d0(0x283)](){const _0x460313=_0x5db5d0;this['_renderManagerService'][_0x460313(0x25a)](a[_0x460313(0x400)][_0x460313(0x195)],[Nt]),(0x0,a[_0x460313(0x11b)])(this[_0x460313(0x418)],[[W],[K],[M],[Y]]);}['onSteady'](){const _0x1e2412=_0x5db5d0;this['_injector']['get'](W)[_0x1e2412(0x41a)]();}[_0x5db5d0(0x2f6)](){const _0x11f39f=_0x5db5d0;[[q],[N],[J]][_0x11f39f(0xe5)](_0x3a5a6=>this[_0x11f39f(0x418)][_0x11f39f(0x381)](_0x3a5a6)),(0x0,a['touchDependencies'])(this[_0x11f39f(0x418)],[[J],[N]]),this[_0x11f39f(0x104)]['registerRenderModule'](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[q]),this['_renderManagerService'][_0x11f39f(0x25a)](a['UniverInstanceType']['UNIVER_SHEET'],[lt]),this['_renderManagerService'][_0x11f39f(0x25a)](a[_0x11f39f(0x400)][_0x11f39f(0x319)],[bt]),this[_0x11f39f(0x104)][_0x11f39f(0x25a)](a[_0x11f39f(0x400)]['UNIVER_SHEET'],[dt]);}[_0x5db5d0(0xff)](){const _0x2f0bc2=_0x5db5d0;this['_injector']['add']([At]),this[_0x2f0bc2(0x418)][_0x2f0bc2(0x3b6)](At);let _0x591144=this['_injector'];[[W],[K],[M],[Y],[Z],[U],[G],[V],[X],[Mt]][_0x2f0bc2(0xe5)](_0x454272=>_0x591144[_0x2f0bc2(0x381)](_0x454272)),(0x0,a[_0x2f0bc2(0x11b)])(this[_0x2f0bc2(0x418)],[[W],[K],[M],[Z],[U],[G],[V],[X],[Mt]]);}[_0x5db5d0(0x18b)](){const _0x492b13=_0x5db5d0;[F,S,mt,B,ie,P,oe,se][_0x492b13(0xe5)](_0x405de2=>this[_0x492b13(0x17d)](this[_0x492b13(0x1ad)][_0x492b13(0x154)](_0x405de2)));}};E($,_0x5db5d0(0x23f),a[_0x5db5d0(0x400)][_0x5db5d0(0x319)]),E($,_0x5db5d0(0x121),_0x5db5d0(0x2e6)),E($,_0x5db5d0(0x286),it),E($,_0x5db5d0(0x427),at),$=j([(0x0,a[_0x5db5d0(0x159)])(h[_0x5db5d0(0x352)],g[_0x5db5d0(0x30c)],s[_0x5db5d0(0x215)],d[_0x5db5d0(0x246)],c[_0x5db5d0(0x33e)],o[_0x5db5d0(0x1ea)],_['UniverDocsUIPlugin'],m['UniverSheetsDrawingPlugin'],r['UniverShapeEditorPlugin'],v[_0x5db5d0(0x3f7)],i['UniverSheetsShapePlugin'],l[_0x5db5d0(0x298)],e[_0x5db5d0(0x1dd)]),A(0x1,(0x0,a['Inject'])(a[_0x5db5d0(0x167)])),A(0x2,a['ICommandService']),A(0x3,a['IConfigService']),A(0x4,c[_0x5db5d0(0x226)])],$),exports[_0x5db5d0(0x36b)]=tt,exports['SheetsShapeUIMenuSchema']=rt,Object['defineProperty'](exports,_0x5db5d0(0x399),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x5db5d0(0x204),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x1d5b92=_0x128e;(function(_0x173497,_0x596fa2){const _0x49596b=_0x128e,_0x256a99=_0x173497();while(!![]){try{const _0x13c29c=-parseInt(_0x49596b(0x39f))/0x1+-parseInt(_0x49596b(0x462))/0x2*(-parseInt(_0x49596b(0x2f8))/0x3)+-parseInt(_0x49596b(0x1b9))/0x4*(-parseInt(_0x49596b(0x461))/0x5)+-parseInt(_0x49596b(0x378))/0x6+-parseInt(_0x49596b(0x373))/0x7*(-parseInt(_0x49596b(0x241))/0x8)+parseInt(_0x49596b(0x292))/0x9+-parseInt(_0x49596b(0x2d6))/0xa;if(_0x13c29c===_0x596fa2)break;else _0x256a99['push'](_0x256a99['shift']());}catch(_0x160959){_0x256a99['push'](_0x256a99['shift']());}}}(_0x5193,0x27c97),Object[_0x1d5b92(0x325)](exports,Symbol[_0x1d5b92(0x3be)],{'value':_0x1d5b92(0x197)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/ui'),n=require('@univerjs-pro/engine-shape'),r=require('@univerjs-pro/shape-editor'),i=require('@univerjs-pro/sheets-shape'),a=require('@univerjs/core'),o=require('@univerjs/sheets'),s=require('@univerjs/drawing'),c=require('@univerjs/engine-render'),l=require('@univerjs/sheets-ui'),u=require('rxjs'),d=require('@univerjs/drawing-ui'),f=require('@univerjs/design'),p=require('react/jsx-runtime'),m=require('@univerjs/sheets-drawing'),h=require('@univerjs-pro/license'),g=require('@univerjs/docs'),_=require('@univerjs/docs-ui'),v=require('@univerjs/sheets-drawing-ui'),y=require('@univerjs/icons'),b=require('react');function _0x5193(){const _0xab0bf8=['isHighlighted','presentationChanged$','lineType','Circle','value','getCurrentScrollState','drawing-ui.objectListPanel.name','FOCUSING_SHAPE_TEXT_EDITOR','getImageSourceCache','LocaleService','relation','shouldAllowShapeTextEditorHostSizeShrink','translate','sqrt','_updateImageAdjValues','4609440zFXRIr','sheets-shape-ui.quickStyles','shape-editor-ui.toolbar.quickStyles','stringify','_clearCompletionFrame','vertical','DependentOn','UndoRedoGroupService','unitId','switchMap','_sheetDrawingShapeRenderController','_isImagePointerDown','sheets-shape-ui.permission.editErr','_isStartAdjusting','axisAlignSheetTransform','setCursor','_visible','map','getInterceptPoints','ObjectListPanelBase','SHAPE_EDITOR_TRANSFORMER_CONFIG','_update','startY','_urlImageService','ComponentManager','drawing-ui.objectListPanel.search','getBatchAddOp','disposeWithMe','register','_sidebarService','_registerMoveHandler','keys','setOnSavingEditorData','_createShapeAdjustControls','52545CRKNmC','horizontal','isRichText','drawWith','_editingParams$','_activeAdjustInfo','SetDrawingSelectedOperation','width','DEFAULT_PASTE','DocSelectionRenderService','useDependency','toDisposable','sheet.operation.open-shape-object-list-panel','jsxs','CUT','MobileShapeEditorService','drawing-ui.objectListPanel.hideAll','translateWithPrecision','UniverDocsUIPlugin','_applyFormulaAutoFitSize','_baseShapeLeft','type','_transformCalculateSrcRect','_configService','_drawingType','_handleFreeEndpointPointerUp','_insertingShapeKeys','sheets-shape-ui.ribbon.shape-format.arrange-front','_sheetClipboardService','_adjName','clipByShape','_addShapeConnectorHandlerObjects','UniverShapeEditorUIPlugin','startConnectionDetection','drawing-ui.objectListPanel.sectionCanvas','forward','_initCopyPaste','getCanvasElement','gradientEndColor','_getOrCreateShapeModel','clipTop','_shapeFormulaService','toPrimitive','shape-text-','ShapeEditPanel','defineProperty','src','save','getObject','onPointerDown$','_getSceneAndTransformerByDrawingSearch','sheet.shape.text.float-menu','_registerDrawingFocusChangeHandler','getBasicShapeRotateBound','permissionPointUpdate$','setCollapsedIds','viewportScrollY','getZoomRatio','setCanUseShapeClip','getEndConnectInfo','insertGroupObject','popup','ShapeQuickStyleGallery','_shapeTextEditingService','Vector2','find','discreteRangeToRange','complete','data','engine','UniverShapeEditorMobileUIPlugin','IRenderManagerService','_initialize','extraProps','HorizontalAlign','ShapeGroupEnum','Large','entries','ContextMenuPosition','_injector','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.unlockHint','changing$','undo','_canEdit','resolveShapeTextEditorBehaviorShapeData','normalizeShapeTextModel','getShapeTextData','_isShouldShowDrawingShapeAdjust','UniverSheetsShapePlugin','GROUP','left','BUTTON','cxnIndex','SheetDrawingAnchor','drawing-ui.objectListPanel.description','showContextualTab','merge','pipe','_closeShapeEditPanel','_config','getSelectedObjectMap','_getShapeAdjustPointListById','_groupCopyPasteController','sheets-shape-ui.ribbon.shape-format.arrange-back','ShapeFormulaService','buildShapeTextDataUpdate','cxnPointStroke','isolated','subUnitId','IDrawingManagerService','getShapeTypeById','sheets-shape-ui.formatShape','getConnectionRelation','SHEET_VIEWPORT_KEY','WorksheetEditPermission','shape-editor-ui.arrange.front','SHEET_SHAPE_UI_PLUGIN','cxnPointStrokeWidth','_shapeService','contentHeight','_formulaKey','ObjectLayersIcon','1477cWhwmc','computeStraightConnectorLayout','drawing-ui.objectListPanel.expand','IMenuManagerService','getConnectorLinePoints','821370IdxOVJ','parse','_initEvents','stopPropagation','executeCommand','_sheetPrintInterceptorService','_baseLeft','Fragment','image-clip-adjust-point-','MEDIA','close','activateDrawingObject','IURLImageService','DrawingTypeEnum','fillImageSource','_subUnitId','registerRenderModule','DRAWING_OBJECT_LAYER_INDEX','getConnectionInfo','registerFeatureMenu','packageName','dataModel','sheets-shape-ui.flipHorizontal','_lastEditingShapeKey','_draw','default','_clipService','ICommandService','fill','multiply','DocumentSkeleton','canvas','color','UniverSheetsDrawingMobileUIPlugin','getDrawingShapeKeyByDrawingSearch','_insertShapes','adjHandleSize','_activeImageId','1.0.1','67310NOanUV','FormatPainterSessionService','_getImagePrstGeom','_getZoomRatio','size','getDrawingData','_sidebarDisposable','MobileObjectListPanel','IUniverInstanceService','getDrawingTypeNameKey','setPresentation','copyId','_contextService','SheetSkeletonService','cxnPointFill','clearAdjustValue','drawing-ui.objectListPanel.close','_isOpenedShapeEditPanel','skeleton','ShapeTextEditorContainer','invert','hidden','updateLinePoints','_generatePasteMutations','UniverDrawingPlugin','symbol','_imageIoService','isConnectorShape','prstGeom','_moveConnectorWithShape','_adjHandlerPointerUp','toStringTag','clip-adj-','IImageIoService','ShapeFloatingToolbarToggleFactory','isHorizontal','setPrstGeom','_registerDrawingMoveHandler','editingParams$','title','canvasElement','_getConnectionSiteAngle','debounceRefreshControls','Path','permissionCheckWithoutRange','_clearShapeAdjustControls','getTransformer','parent','VIEW_MAIN','FromArray','sheets-shape-ui.config','DocRenderController','setEditing','useState','_initMenu','presentation','_sheetShapeAdjustController','interceptCommand','unsubscribe','changeEnd$','_registerFocusChangeHandler','DocEventManagerService','ShapePickerPanel','setAdjustValueByName','shapeType','adjName','cos','_initCommands','_drawingAddListener','SheetPermissionCheckController','beforeCommandExecuted','shape-adjust-point-','DRAWING','DRAWING_SHAPE','sheet.shape.picker.component','_ribbonService','_shapeRenderController','getCurrentRangeDisable$','_drawRichText','_renderManagerService','_init','marginTop','open','UNIVER_SHEET','UniverSheetsShapeUIPlugin','isHit','VIEW_MAIN_LEFT','_formulaAnimation','resolveShapeTextDocumentPageHeight','ISheetClipboardService','_reset','_attachAdjustEvent','getDrawingEditable','SolidLine','RemoveSheetCommand','_executeConnectedRouteConnectionCommand','transformToDrawingPosition','#bcbcbc','_isStartConnectorPoint','MobileDropdown','ancestorTransform','attachPopupToObject','_registerComponents','FOCUSING_COMMON_DRAWINGS','_completionFrame','shapeModel','SheetsSelectionsService','localToWorld','EMPTY','OTHERS','name','_handleConnectedEndpointMove','some','update$','_baseShapeTop','getShapeData','Shape','computeConnectorRouteLayout','getContextValue','getCurrentLastSelection','_imageShapeClipController','scene','getAdjustValueByName','attachRangeWithCoord','drawing-ui.objectListPanel.dragToReorder','_generateCutPasteMutations','sectionCanvas','object','clearAdjustControls','resolveShapeTextDocumentRenderLayout','_addControl','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','get','_drawSimpleText','with','Observable','strokeWidth','drawing-ui.objectListPanel.lockHint','visible$','updateDocumentDataMargin','getCurrentUnitInfo','completeEditing','formulaBinding','shapeData','setSrcRect','_draggingConnectorId','getDrawingEffectBounds','back','setFillImage','getVisible','string','sheets-shape-ui.shape-format.formula-ribbon-control','DRAWING_IMAGE','lineShapeId','MoveDownIcon','resolveShapeContextualRibbonHostMode','worldRect','sheets-shape-ui.ribbon.shape-format.text-control','disableObjectsEvent','INSERT','version','_handleConnectedEndpointPointerUp','ISheetDrawingService','getSkeleton','UpdateSheetsShapeDataMutation','_isConnecting','renderDrawingShape','_handleBasicShapeUpdateConnectorLineShape','animationEnabled','endArrow','setContextValue','WorkbookEditablePermission','_sheetInterceptorService','_baseDrawingRect','end','extensionGroups','registerFeaturePasteHook','ShapeModel','getAutoFitPresentations','setFormulaPresentation','drawingId','_sheetDrawingService','_iconManager','viewportScrollX','getSheetCommandTarget','UniverSheetsUIPlugin','_targetShapeId','values','_sheetSkeletonService','ShapeIcon','viewBound','targetShapeId','UniverSheetsDrawingPlugin','unregister','2570OLKmZA','14EAXcJc','focusDrawing','drawing-ui.objectListPanel.lock','set','Inject','sheets-shape-ui.shape-format.quick-style-gallery','sheet.command.update-shape-data','_currentScene','attachTransformerTo','ShapeArrowTypeEnum','animateFormulaPresentation','useMemo','UniverInstanceType','isEditing','restore','_shapeUpdateListener','Injector','create','drawing-ui.objectListPanel.lockAll','Plugin','@univerjs-pro/sheets-shape-ui','_sheetsShapeService','flipX','ToggleSheetsShapeFlipCommand','ShapeFloatingToolbar','Rect','ShapeStyleRibbonControl','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','rotation','OPERATION','InsertShapeCommand','URL','getCurrentUnitOfType','getTransformerByCreate','createShapeFormulaDocument','onStarting','setFallbackVisible','_addShapeConnectorHandlerObject','adjHandleFill','Line','sheet.shape.object-list.panel','DrawingRenderService','UniverSheetsDrawingUIPlugin','getDrawingPoints','plainShapeTextToDocumentData','_getDrawingRect','onPointerUp$','_disposePopups','getUnitType','filter','ContextMenuGroup','useReducer','getShapeQuickStylePreset','registerClipDelegate','pick','ShapeDefaultConfig','getAdjustInfoByName','resize','sheets-shape-ui.ribbon.shape-format','_getImageDrawingInfo','DrawingCommonPanel','setPrstGeomAdjValues','getViewportByCell','sheets-shape-ui.insertShape','stroke','_currentConnectionTarget','onCommandExecuted','ShapeFloatingToolbarService','clip','BottomIcon','DocCanvasPopManagerService','getBatchRemoveOp','buildClipPath','_disposed','isStartConnectorPoint','fontSize','pushUndoRedo','actualHeight','_baseTop','DocumentDataModel','_activeShapeModel','getObjectListPanelSectionIdForDrawingType','getActiveSheet','sheets-shape-ui.title','transform','ShapeTypeEnum','IUndoRedoService','_context','_formulaShapes','has','transformForAngle','shapeId','changeShapeType','clear','activeAnObject','_menuManagerService','getSkeletonParam','addObject','drawingType','asObservable','_getConnectPointInfo','_resetState','_baseWidth','_sheetBasicShapeConnectionPointController','constructor','panel','resolveActiveShapeQuickStylePresetId','getDrawingOKey','IPermissionService','getBatchUpdateOp','univer-box-border\x20univer-px-4\x20univer-text-sm','PRINTING_COMPONENT_COLLECT','_permissionService','SetSheetDrawingCommand','_openShapeEditPanel','SheetScrollManagerService','OBJECT_LIST_FLOATING_SECTION_ID','indexOf','#4285f4','RibbonInsertGroup','getConnectionSiteList','SheetCanvasPopManagerService','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','reduce','_shapeFloatingToolbarService','sheetTransform','useObservable','changeStart$','getRealBound','getParent','sheet.command.menu-insert-shape','ShapeArrowSizeEnum','_adjHandlerPointerMove','worldPoint','updateDocumentStyle','blockExecuteWithoutPermission','ShapePickerDropdown','getFocusDrawings','shape-editor-ui.toolbar.changeShape','Disposable','getShapeQuickStyleType','FormulaShapeAnimationController','VIEW_MAIN_TOP','sheet.menu.shape.flip-vertical','shape-editor-ui.arrange.backward','TopmostIcon','addImageSourceCache','_baseShapeHeight','refreshAdjustControls','useEffect','front','drawing-ui.objectListPanel.locate','oKey','clone','_getShapeAdjustInfosById','sheets-shape-ui.imagePanel.crop.shape','objects','_drawShapeText','getDrawingOrder','sheets-shape-ui.ribbon.shape-format.arrange-backward','updateShapeFillImage','routeConnectorLineShape','getAdjustNames','getSheetBySheetId','_createControls','formulaPresentation','SheetsShapeService','sheet.menu.shape.flip-horizontal','sheet.shape.floating-toolbar','CopySheetCommand','render','getShapeDataById','COMMAND','getUnit','length','SheetSkeletonManagerService','_getScrollInfo','_sheetCanvasPopManagerService','MenuItemType','computeConnectorResizeLayout','_baseShapeWidth','Module','MoveUpIcon','resolveShapeTextEditorWrapStrategy','InsertSheetsShapeMutation','getObjectIncludeInGroup','_releaseRenderCache','_connectionSiteObjects','_registerGroupFeaturePasteHook','idMap','SHAPE','applyPoint','CURSOR_TYPE','_getShapeInfo','ConnectorCoordinateTransform','add','setHighlighted','RENDER_CLASS_TYPE','drawing-ui.objectListPanel.unlock','srcRect','IconManager','registerDependencies','setShouldShowAdjust','iterator','_cxtHandlerPointerMove','_isHighlighted','cancelEditing','ang','_showConnectionSites','SHAPE_TEXT','_drawingRenderService','_registerIcons','trim','_connectorObjects','ShapeFormatSettingIcon','2232mQgVZe','_clearShapeConnectorHandlerObjects','Medium','function','_activeShapeInfo','point','fontFamily','drawing.operation.set-drawing-active','description','focus$','_loadShapePictureFill','touchDependencies','_clearConnectionSites','visible','_copyInfo','refreshFormulaPresentation','angle','fromChangeset','sheets-shape-contextual-ribbon','getEditing','getBasicShapeRelation','adjustValues','refreshShapeFillImage','_attachConnectorObjectEvent','sheet.operation.open-sheet-shape-format-panel','_initPrinting','run','UNIVER_DOC','transformByState','SetDrawingApplyMutation','_drawRichTextLayer','contentVerticalOffset','onPointerMove$','doc','_commandService','_localeService','DocumentViewModel','useFormulaShapeToolbar','getShapeModel','refreshTransform','from','getMatrix','div','subscribeEvent','beginPath','index','isInGroup','_initEditingParams','startX','order','onTransformChange$','mergeMenu','PictureFill','jsx','_registerOperations','connector-handler-','_transform','SetDrawingArrangeCommand','_activeTargetShapeId','_unitId','_calculateFreeEndpointAngle','RemoveSheetDrawingCommand','includes','_activeShapeId','dispose','FlipHorizontalIcon','ShapeTextRibbonControl','push','remove$','ShapeFormulaRibbonControl','prepareShapeTextDocumentData','getOwnPropertyDescriptor','UpdateConnectorRelationCommand','UniverDocsPlugin','None','getScene','_shapePopupMenuDisposable','createInternalEditorID','sheetViewStartColumn','sheets-shape-ui.editShape','onDblclick$','_props','isArray','shouldClipShapeTextDocument','setShapeData','getOrCreateDrawingCopyPlan','_executeConnectionCommand','sin','UniverSheetsShapeMobileUIPlugin','shapeText','_initSheetChange','fillType','_baseHeight','drawing-ui.objectListPanel.moveBackward','COPY_TYPE','FloatingObjectToolbarPosition','_clearPopups','sectionFloating','_focusedDrawings','backward','UniverSheetsMobileUIPlugin','FlipVerticalIcon','pluginName','createShapeTextBoxShapeData','sheets-shape-ui.objectListPanel.open','wrapStrategy','currentAdjustValues','abs','_rerouteConnectorLine','_generateCopyPasteMutations','setShapeProps','_updateSrcRectByTransform','_executeResizeCommand','_createCopyInfoByRange','_drawingManagerService','Image','fillImageSourceType','drawing-ui.objectListPanel.empty','_highlightedSiteIndex','offsetX','_popupMenuListener','getPermissionPoint','getMenuHiddenObservable','_activeShapeAdjustPointList','isLineShape','_sheetPermissionCheckController','selectable','getDrawingVisible','transformToAxisAlignPosition','drawing-ui.objectListPanel.typeNames.','_findNearestConnectionSite','StraightConnector1','sheets-shape-ui.flipVertical','UniverSheetsPlugin','ToggleShapeFloatingToolbarOperation','IContextService','9528QJYiva','sheet.operation.open-mobile-shape-editor','subscribe','top','SolidFill','hideContextualTab','isRender','ShapeRenderModeEnum','cxnPointRadius','_renderWithCache','drawing-ui.objectListPanel.moveForward','getFocusedUnit','SheetsDrawingGroupCopyPasteController','removeLinePoints','RemoveSheetsShapeMutation','_initPermission','featurePluginUpdateNotification','_registerImageShapeClipDelegate','sheet.image-clip.shape-picker.component','_isDrawingShapePointDown','getDrawingByParam','drawing-ui.objectListPanel.hide','offsetY','_executeConnectedRouteResizeCommand','_handleFreeEndpointMove','LEFT','_currentUniverService','_shapeEditPanelVersion','style','getCurrentTypeOfUnit$','decorate','_univerInstanceService','resourceCollector','interceptor','_hide','CROSSHAIR','sheet.operation.update-shape-type','#1a73e8','getDrawingSearch','delete','clearControl$','initShapePopupMenu','_updateShapeAdjustControls','forEach','UniverRenderEnginePlugin','ArrangeTypeEnum','getRenderUnitById','getValue','actions','_commandExecutedListener','TOP','_hasReset','UniverShapeEditorPlugin','setConfig','DrawingImageClipService','SELECTOR','_shapes','next','_clearFocusedShape','UPDATE','presetId','CommandType','getCurrentSkeleton','getState','drawing-ui.objectListPanel.sectionFloating','calcAdjValues','_clearControls','SetShapeDrawingDataCommand','worldPoints','isCurvedConnectorShape','ShapeFillEnum','Documents','flatMap','params','sheets-shape-ui.shape-format.style-ribbon-control','DrawingApplyType','onRendered','getShapeTextRect','enableObjectsEvent','onReady','REMOVE','1506582bmVOps','getStartConnectInfo','cloneShapeDataForType','_cxnIndex','_updateAdjustControlPositions','ImageSourceTypeEnum','Transform','activeSheet$','startWith','createControl$','_shapeId','updateContext','ISidebarService','ShapeTextFloatToolbar','_index','VerticalAlign','_componentManager','sheetViewStartRow','bottom','IConfigService','_findShapeAtPoint','_onSavingEditorData$','_cxtHandlerPointerUp','makeDirty','getImage','classType','bindRenderTransformerLifecycle','drawFormulaShapeAnimationLayers','adjHandleStroke','onload','memo','flipY','sheets-shape-ui.objectListPanel.title','draw','scale','redo','drawing-ui.objectListPanel.title','_loadAndSetImage','_activeAdjustPointList','updateConnectionDetection','getUnitId','DocInterceptorService','error','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','resetCursor','clipHeight','registerCommand','isRenderLinePointsMode','custom','height','onSteady','syncExecuteCommand','getShapeType'];_0x5193=function(){return _0xab0bf8;};return _0x5193();}function x(_0x2cdce7,_0x50985b){const _0x1e0668=_0x1d5b92;let _0x52ce3e={};for(let _0x15127d of Object[_0x1e0668(0x2f5)](_0x50985b)){let _0x334b07=_0x50985b[_0x15127d],_0x12ba0c=_0x2cdce7[_0x15127d];if(_0x12ba0c===void 0x0){_0x52ce3e[_0x15127d]=void 0x0;continue;}_0x52ce3e[_0x15127d]=typeof _0x334b07==_0x1e0668(0x41e)&&_0x334b07&&!Array[_0x1e0668(0x20b)](_0x334b07)&&typeof _0x12ba0c=='object'&&_0x12ba0c&&!Array[_0x1e0668(0x20b)](_0x12ba0c)?x(_0x12ba0c,_0x334b07):_0x12ba0c;}return _0x52ce3e;}const S={'type':a[_0x1d5b92(0x27e)]['COMMAND'],'id':_0x1d5b92(0x468),'handler':(_0x5d6aef,_0x63610c)=>{const _0x4e495c=_0x1d5b92;let _0x18653d=_0x5d6aef[_0x4e495c(0x423)](i[_0x4e495c(0x188)]),{unitId:_0x2f1a73,subUnitId:_0x24ebf3,shapeType:_0x5386fa,shapeId:_0x3fc95d,shapeData:_0x5e45a7,replaceShapeData:_0x985dd4,oldShapeJSON:_0x4883d7}=_0x63610c;if(!_0x18653d['getShapeModel'](_0x2f1a73,_0x24ebf3,_0x3fc95d))return!0x1;let _0x5b9147=_0x5d6aef[_0x4e495c(0x423)](a[_0x4e495c(0x393)]),_0x420591=_0x5d6aef['get'](a[_0x4e495c(0x138)]),{oldShapeType:_0x383700,oldShapeData:_0x3ad22c={}}=_0x4883d7,_0x1df5fe=_0x985dd4?_0x3ad22c:x(_0x3ad22c,_0x5e45a7||{}),_0x449e6c={'id':i[_0x4e495c(0x443)]['id'],'params':{'unitId':_0x2f1a73,'subUnitId':_0x24ebf3,'shapeId':_0x3fc95d,'shapeType':_0x5386fa,'shapeData':_0x5e45a7,'replace':_0x985dd4}},_0x131d4f={'id':i[_0x4e495c(0x443)]['id'],'params':{'unitId':_0x2f1a73,'subUnitId':_0x24ebf3,'shapeId':_0x3fc95d,'shapeType':_0x383700,'shapeData':_0x1df5fe,'replace':_0x985dd4}};return _0x5b9147[_0x4e495c(0x2c5)](_0x449e6c['id'],_0x449e6c['params'])?(_0x420591[_0x4e495c(0x12e)]({'unitID':_0x2f1a73,'undoMutations':[_0x131d4f],'redoMutations':[_0x449e6c]}),!0x0):!0x1;}};function C(_0x1b2e26,_0x1dbdad,_0x37f556,_0x2df20d,_0x3c1475,_0x4fed05){const _0x1ca21f=_0x1d5b92;let _0x30596c={'unitId':_0x1dbdad,'subUnitId':_0x37f556,'shapeId':_0x2df20d,'shapeData':_0x4fed05,'oldShapeJSON':_0x3c1475};return _0x1b2e26[_0x1ca21f(0x37c)](S['id'],_0x30596c);}function w(_0x21a080,_0x410e87,_0x547698,_0x37d3cf,_0x51a9b8,_0x281238){const _0x197344=_0x1d5b92;let _0x38939f={'unitId':_0x410e87,'subUnitId':_0x547698,'shapeId':_0x37d3cf,'shapeData':_0x281238,'oldShapeJSON':_0x51a9b8};return _0x21a080[_0x197344(0x37c)](S['id'],_0x38939f);}function T(_0x92d526){'@babel/helpers - typeof';const _0x2b25a5=_0x1d5b92;return T=typeof Symbol==_0x2b25a5(0x1bc)&&typeof Symbol[_0x2b25a5(0x1ad)]==_0x2b25a5(0x3b8)?function(_0x4ee6e2){return typeof _0x4ee6e2;}:function(_0x2cd6cc){const _0x5074f4=_0x2b25a5;return _0x2cd6cc&&typeof Symbol==_0x5074f4(0x1bc)&&_0x2cd6cc[_0x5074f4(0x14a)]===Symbol&&_0x2cd6cc!==Symbol['prototype']?_0x5074f4(0x3b8):typeof _0x2cd6cc;},T(_0x92d526);}function ee(_0x573278,_0x2d1aa0){const _0x1ccab5=_0x1d5b92;if(T(_0x573278)!=_0x1ccab5(0x41e)||!_0x573278)return _0x573278;var _0x3dd049=_0x573278[Symbol[_0x1ccab5(0x322)]];if(_0x3dd049!==void 0x0){var _0x3da361=_0x3dd049['call'](_0x573278,_0x2d1aa0||_0x1ccab5(0x391));if(T(_0x3da361)!=_0x1ccab5(0x41e))return _0x3da361;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2d1aa0===_0x1ccab5(0x435)?String:Number)(_0x573278);}function te(_0x5d8cdc){const _0x1f715f=_0x1d5b92;var _0x5eb812=ee(_0x5d8cdc,_0x1f715f(0x435));return T(_0x5eb812)==_0x1f715f(0x3b8)?_0x5eb812:_0x5eb812+'';}function E(_0x2dd467,_0x30f13c,_0x54388e){const _0x2e4dd2=_0x1d5b92;return(_0x30f13c=te(_0x30f13c))in _0x2dd467?Object[_0x2e4dd2(0x325)](_0x2dd467,_0x30f13c,{'value':_0x54388e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dd467[_0x30f13c]=_0x54388e,_0x2dd467;}function ne(_0x1c6fbd,_0x3acabb,_0x2f021e){const _0x2eaded=_0x1d5b92;let _0x2991a5={..._0x3acabb,'dataModel':{..._0x3acabb[_0x2eaded(0x38d)]??{},..._0x2f021e?{'doc':_0x2f021e}:null}},_0x2d68e9=(0x0,e[_0x2eaded(0x34d)])(_0x1c6fbd,_0x2991a5),_0x2cf140=(0x0,e[_0x2eaded(0x199)])(_0x2d68e9);return{'clip':(0x0,e[_0x2eaded(0x20c)])(_0x2d68e9,_0x2cf140),'wrapStrategy':_0x2cf140};}var D=class extends c[_0x1d5b92(0x413)]{constructor(_0x578c97,_0x182db0){const _0x2697e5=_0x1d5b92;super(_0x578c97,_0x182db0),E(this,_0x2697e5(0x20a),void 0x0),E(this,'_formulaAnimation',new e[(_0x2697e5(0x16f))](()=>this[_0x2697e5(0x2a9)](!0x0),()=>this[_0x2697e5(0x30b)]())),E(this,_0x2697e5(0x30e),!0x0),E(this,_0x2697e5(0x310),a[_0x2697e5(0x385)][_0x2697e5(0x3e8)]),E(this,'isDrawingObject',!0x0),this[_0x2697e5(0x20a)]={..._0x182db0},this[_0x2697e5(0x3f6)][_0x2697e5(0x3a9)](_0x182db0[_0x2697e5(0x187)],_0x182db0[_0x2697e5(0x46c)]!==!0x1),this[_0x2697e5(0x3ef)](),this['_applyFormulaAutoFitSize']();}['_init'](){const _0x4079f1=_0x1d5b92;this[_0x4079f1(0x1eb)][_0x4079f1(0x1e4)](_0x5eb8fb=>{const _0x41fe27=_0x4079f1;this[_0x41fe27(0x228)](_0x5eb8fb);});}[_0x1d5b92(0x3c3)](_0x18ac0b){const _0x25bae9=_0x1d5b92;this[_0x25bae9(0x20a)][_0x25bae9(0x3bb)]=_0x18ac0b;}[_0x1d5b92(0x3d3)](_0x15fafc){const _0x124628=_0x1d5b92;this[_0x124628(0x20a)][_0x124628(0x46f)]=_0x15fafc,this[_0x124628(0x2a9)](!0x0);}['setFormulaPresentation'](_0x5a4ddd,_0x1be99e=!0x0){const _0x357504=_0x1d5b92;this[_0x357504(0x3f6)][_0x357504(0x3a9)](_0x5a4ddd,_0x1be99e),this[_0x357504(0x20a)][_0x357504(0x187)]=_0x5a4ddd,this[_0x357504(0x30b)](),this[_0x357504(0x2a9)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x447251=_0x1d5b92;let _0xc693b2=this[_0x447251(0x20a)][_0x447251(0x408)],_0x414c68=_0xc693b2[_0x447251(0x34f)](),_0x5873f2=(0x0,e[_0x447251(0x34e)])(_0x414c68==null?void 0x0:_0x414c68[_0x447251(0x38d)]),_0x160cc4=_0x5873f2==null?void 0x0:_0x5873f2[_0x447251(0x1da)],_0x5e8749=this[_0x447251(0x3f6)][_0x447251(0x451)]();if(!_0x160cc4||_0x5e8749[_0x447251(0x190)]===0x0)return;_0xc693b2[_0x447251(0x29d)]({'width':this[_0x447251(0x2ff)],'height':this['height']});let _0x4cb599=(0x0,e['resolveFormulaShapeAutoFitSize'])({'documentData':_0x5e8749[_0x447251(0x2e7)](_0xde759e=>(0x0,r[_0x447251(0x484)])(_0x160cc4,_0xde759e)),'height':this['height'],'shapeData':_0xc693b2[_0x447251(0x412)](),'textRect':_0xc693b2[_0x447251(0x28e)]({'left':0x0,'top':0x0,'width':this[_0x447251(0x2ff)],'height':this[_0x447251(0x2c3)]}),'width':this[_0x447251(0x2ff)]});if(_0x4cb599){var _0x4ba4d2;this['resize'](_0x4cb599[_0x447251(0x2ff)],_0x4cb599[_0x447251(0x2c3)]),(_0x4ba4d2=this[_0x447251(0x204)]())==null||(_0x4ba4d2=_0x4ba4d2[_0x447251(0x3cd)]())==null||_0x4ba4d2[_0x447251(0x3c9)]();}}get['unitId'](){const _0x264b86=_0x1d5b92;return this[_0x264b86(0x20a)][_0x264b86(0x2de)];}get[_0x1d5b92(0x365)](){const _0x198d27=_0x1d5b92;return this[_0x198d27(0x20a)][_0x198d27(0x365)];}['_updateSrcRectByTransform'](_0x433bed){const _0xcf9dd5=_0x1d5b92;if(this['_props'][_0xcf9dd5(0x1a9)]==null||!this[_0xcf9dd5(0x30e)])return;let {width:_0x3cf08e,height:_0x42ea00}=this,{width:_0xa2e1e3=0x0,height:_0x4acf5b=0x0}=_0x433bed['preValue'],{left:_0x32d99d=0x0,top:_0x3c45eb=0x0,right:_0x4a8fbd=0x0,bottom:_0x35fc4b=0x0}=this[_0xcf9dd5(0x20a)][_0xcf9dd5(0x1a9)],_0x2ce45e=_0x32d99d,_0x58b581=_0x3c45eb,_0x4d4cd3=_0x4a8fbd,_0x2fe19d=_0x35fc4b,_0x10e755=!0x1;if(_0xa2e1e3!==0x0&&_0xa2e1e3!==_0x3cf08e){let _0x4a6889=_0x32d99d/_0xa2e1e3,_0x469d56=_0x4a8fbd/_0xa2e1e3;_0x2ce45e=_0x3cf08e*_0x4a6889,_0x4d4cd3=_0x3cf08e*_0x469d56,_0x10e755=!0x0;}if(_0x4acf5b!==0x0&&_0x4acf5b!==_0x42ea00){let _0x15c8fd=_0x3c45eb/_0x4acf5b,_0x1236b8=_0x35fc4b/_0x4acf5b;_0x58b581=_0x42ea00*_0x15c8fd,_0x2fe19d=_0x42ea00*_0x1236b8,_0x10e755=!0x0;}_0x10e755&&this[_0xcf9dd5(0x42f)]({'left':_0x2ce45e,'top':_0x58b581,'right':_0x4d4cd3,'bottom':_0x2fe19d});}['setSrcRect'](_0x24148c){const _0x326bc1=_0x1d5b92;this[_0x326bc1(0x20a)][_0x326bc1(0x1a9)]=_0x24148c,this['makeDirty'](!0x0);}[_0x1d5b92(0x433)](_0x18e976){const _0x501565=_0x1d5b92;this['_props']['image']=_0x18e976,this[_0x501565(0x2a9)](!0x0);}set[_0x1d5b92(0x136)](_0x285bdf){const _0x50c1db=_0x1d5b92;this[_0x50c1db(0x1f1)]=_0x285bdf;}get[_0x1d5b92(0x136)](){const _0x52e9f1=_0x1d5b92;this['_transform']||this['_setTransForm']();let _0x4e44f7=this[_0x52e9f1(0x1f1)][_0x52e9f1(0x17b)]();return this[_0x52e9f1(0x13c)](_0x4e44f7);}get['shapeModel'](){const _0x2cbed5=_0x1d5b92;return this[_0x2cbed5(0x20a)][_0x2cbed5(0x408)];}get['shapeId'](){const _0x53e4f2=_0x1d5b92;return this[_0x53e4f2(0x20a)]['shapeId'];}get[_0x1d5b92(0x2ab)](){const _0x1b4cfd=_0x1d5b92;return c[_0x1b4cfd(0x1a7)][_0x1b4cfd(0x1a0)];}[_0x1d5b92(0x390)](_0x5e2345,_0x4f5ee7,_0x1f7c18,_0x130c68){const _0x166202=_0x1d5b92;let _0x2eeaae=this[_0x166202(0x20a)][_0x166202(0x408)];if(!_0x2eeaae||!_0x4f5ee7)return;let _0x3ea07d=_0x1f7c18??this[_0x166202(0x2ff)],_0x8f4f71=_0x130c68??this[_0x166202(0x2c3)],_0x1126d3={'shapeType':_0x2eeaae[_0x166202(0x2c6)](),'width':_0x3ea07d,'height':_0x8f4f71},_0x409902={'renderMode':n[_0x166202(0x248)][_0x166202(0x3ca)],'oKey':this['oKey'],'image':this['_props']['image'],'angle':this[_0x166202(0x1c9)]};_0x2eeaae[_0x166202(0x29d)](_0x1126d3),_0x5e2345['save']();let _0x2a17b2={'top':0x0,'left':0x0,'width':_0x3ea07d,'height':_0x8f4f71},_0x5e6a8c=_0x2eeaae[_0x166202(0x431)](_0x2a17b2);_0x5e6a8c?this[_0x166202(0x24a)](_0x5e2345,_0x5e6a8c,_0x2fd03f=>{const _0x214452=_0x166202;_0x2eeaae[_0x214452(0x18c)](_0x2fd03f,_0x2a17b2,_0x409902);}):(this[_0x166202(0x19c)](),_0x2eeaae[_0x166202(0x18c)](_0x5e2345,_0x2a17b2,_0x409902)),_0x5e2345[_0x166202(0x470)]();let _0x381605=_0x2eeaae[_0x166202(0x34f)](),_0x4743d6=_0x2eeaae[_0x166202(0x28e)](_0x2a17b2),_0x959a76=_0x2eeaae[_0x166202(0x235)]();if(_0x381605&&_0x4743d6&&!_0x959a76){_0x5e2345['save'](),this['getState']()[_0x166202(0x478)]&&_0x5e2345[_0x166202(0x2b4)](-0x1,0x1);let _0x47809e=_0x3ea07d/0x2,_0x406240=_0x8f4f71/0x2;_0x5e2345[_0x166202(0x2d3)](-_0x47809e,-_0x406240),_0x5e2345[_0x166202(0x1e5)](),this[_0x166202(0x17f)](_0x5e2345,_0x381605,_0x4743d6),_0x5e2345['restore']();}}[_0x1d5b92(0x48d)](_0x2bd464){}[_0x1d5b92(0x17f)](_0x5dd8ca,_0x3b8c68,_0x24de23){const _0x52fb62=_0x1d5b92;var _0x7e64b6;this['_props']['isEditing']||(!((_0x7e64b6=_0x3b8c68[_0x52fb62(0x38d)])!=null&&_0x7e64b6[_0x52fb62(0x1da)])&&_0x52fb62(0x2fa)in _0x3b8c68&&_0x3b8c68[_0x52fb62(0x2fa)]===!0x1?this[_0x52fb62(0x424)](_0x5dd8ca,_0x3b8c68,_0x24de23):this[_0x52fb62(0x3ed)](_0x5dd8ca,_0x3b8c68,_0x24de23));}[_0x1d5b92(0x424)](_0x2108ab,_0x16b77c,_0x436eef){const _0x33fa21=_0x1d5b92;this[_0x33fa21(0x3ed)](_0x2108ab,{..._0x16b77c,'text':_0x16b77c['text']??'','dataModel':{'doc':(0x0,e[_0x33fa21(0x48e)])(_0x16b77c,'sheets-shape-text-'+this[_0x33fa21(0x17a)])}},_0x436eef);}['_drawRichText'](_0x588e66,_0x3a58f6,_0x1bffe6){const _0x104f66=_0x1d5b92;(0x0,e[_0x104f66(0x2ad)])(_0x588e66,this['_formulaAnimation'],(_0x23842d,_0x3176ca)=>{const _0x35124e=_0x104f66;this[_0x35124e(0x1d7)](_0x23842d,_0x3a58f6,_0x1bffe6,_0x3176ca);});}[_0x1d5b92(0x1d7)](_0x384c2a,_0x4d54ad,_0x4ce735,_0x1b92c0){const _0x15f96f=_0x1d5b92;let _0x2d20ab=this[_0x15f96f(0x20a)]['localeService'];if(!_0x4d54ad[_0x15f96f(0x38d)]||!_0x2d20ab)return;let _0x4a7d5d=(0x0,e['normalizeShapeTextModel'])(_0x4d54ad['dataModel']);if(!_0x4a7d5d)return;let _0x55b930=_0x4a7d5d[_0x15f96f(0x1da)];if(!_0x55b930)return;let _0x5d99b7=(0x0,r['createShapeFormulaDocument'])(_0x55b930,_0x1b92c0),_0xb5c11=_0x4a7d5d['va']??a[_0x15f96f(0x2a1)][_0x15f96f(0x273)],_0x1cbc9b=_0x4a7d5d['ha']??a[_0x15f96f(0x342)][_0x15f96f(0x25a)],_0x4108df=ne(this[_0x15f96f(0x20a)]['shapeModel'][_0x15f96f(0x412)](),_0x4d54ad,_0x5d99b7),_0x54c168=_0x4d54ad[_0x15f96f(0x3c2)],_0x471c2a=(0x0,e[_0x15f96f(0x1ff)])(_0x5d99b7,{'isHorizontal':_0x54c168!==!0x1,'textRect':_0x4ce735,'verticalAlign':_0xb5c11,'horizontalAlign':_0x1cbc9b,'wrapStrategy':_0x4108df[_0x15f96f(0x222)]}),_0x5b13ed=new a[(_0x15f96f(0x131))](_0x471c2a),_0x3bc344=new c[(_0x15f96f(0x1dd))](_0x5b13ed),_0x5839a4=c[_0x15f96f(0x396)][_0x15f96f(0x473)](_0x3bc344,_0x2d20ab);_0x5839a4['calculate']();let _0x172630=_0x5839a4['getActualSize']()[_0x15f96f(0x12f)],_0x3a0caf=(0x0,e[_0x15f96f(0x420)])({'contentHeight':_0x172630,'verticalAlign':_0xb5c11,'viewportHeight':_0x4ce735[_0x15f96f(0x2c3)]});_0x5b13ed[_0x15f96f(0x168)]({'pageSize':{'width':_0x54c168===!0x1?_0x4ce735[_0x15f96f(0x2c3)]:_0x4ce735[_0x15f96f(0x2ff)],'height':(0x0,e[_0x15f96f(0x3f7)])(_0x5d99b7,_0x3a0caf[_0x15f96f(0x370)])}}),_0x5b13ed[_0x15f96f(0x42a)]({'t':_0x3a0caf[_0x15f96f(0x3f0)]}),_0x5839a4['calculate']();let _0x29a936=new c[(_0x15f96f(0x288))](_0x15f96f(0x323)+this[_0x15f96f(0x17a)],_0x5839a4,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x15f96f(0x2a9)](!0x0)});_0x29a936[_0x15f96f(0x49b)](_0x4ce735[_0x15f96f(0x2ff)],_0x3a0caf['contentHeight']),_0x384c2a['save'](),_0x384c2a[_0x15f96f(0x309)](_0x4ce735[_0x15f96f(0x353)],_0x4ce735[_0x15f96f(0x244)]),_0x4108df[_0x15f96f(0x126)]&&(_0x384c2a[_0x15f96f(0x1e5)](),_0x384c2a['rect'](0x0,_0x3a0caf[_0x15f96f(0x320)],_0x4ce735['width'],_0x3a0caf[_0x15f96f(0x2bf)]),_0x384c2a[_0x15f96f(0x126)]()),_0x3a0caf[_0x15f96f(0x1d8)]&&_0x384c2a['translateWithPrecision'](0x0,_0x3a0caf[_0x15f96f(0x1d8)]),_0x29a936[_0x15f96f(0x2b3)](_0x384c2a),_0x384c2a['restore'](),_0x29a936[_0x15f96f(0x1f9)](),_0x5839a4[_0x15f96f(0x1f9)](),_0x3bc344['dispose'](),_0x5b13ed[_0x15f96f(0x1f9)]();}['render'](_0x2c1d79,_0x4ed0ae,_0x1d25ab=!0x1){const _0x4d85d9=_0x1d5b92;if(!this['visible'])return this[_0x4d85d9(0x2a9)](!0x1),this;let {width:_0x516bb2,height:_0x32c50e,left:_0x5ca53f,top:_0x10d2b7}=this,_0x553764=this['getRealBound']();if(_0x516bb2=_0x553764[_0x4d85d9(0x2ff)],_0x32c50e=_0x553764[_0x4d85d9(0x2c3)],_0x5ca53f=_0x553764[_0x4d85d9(0x353)],_0x10d2b7=_0x553764[_0x4d85d9(0x244)],this[_0x4d85d9(0x247)](_0x4ed0ae)){let {top:_0x46c953,left:_0x150146,bottom:_0x4e1714,right:_0x59b87a}=_0x4ed0ae[_0x4d85d9(0x45d)];if(_0x516bb2+this[_0x4d85d9(0x427)]+_0x5ca53f<_0x150146||_0x59b87a<_0x5ca53f||_0x32c50e+this[_0x4d85d9(0x427)]+_0x10d2b7<_0x46c953||_0x4e1714<_0x10d2b7)return this;}let _0x166ac7=_0x5ca53f+_0x516bb2/0x2,_0x21d449=_0x10d2b7+_0x32c50e/0x2,_0x5a52d1=this['transform'][_0x4d85d9(0x1e2)]();if(this[_0x4d85d9(0x20a)][_0x4d85d9(0x46f)]){let _0x37d856=this[_0x4d85d9(0x280)](),_0x3488b4=new c[(_0x4d85d9(0x298))]();_0x3488b4['composeMatrix']({..._0x37d856}),_0x5a52d1=_0x3488b4[_0x4d85d9(0x1e2)]();}return _0x2c1d79[_0x4d85d9(0x327)](),this[_0x4d85d9(0x20a)][_0x4d85d9(0x408)][_0x4d85d9(0x2c1)]===!0x0||_0x2c1d79['transform'](_0x5a52d1[0x0],_0x5a52d1[0x1],_0x5a52d1[0x2],_0x5a52d1[0x3],_0x166ac7,_0x21d449),this[_0x4d85d9(0x390)](_0x2c1d79,_0x4ed0ae,_0x516bb2,_0x32c50e),_0x2c1d79[_0x4d85d9(0x470)](),this[_0x4d85d9(0x2a9)](!0x1),this;}['getInverseCoord'](_0x459a8b){const _0x47fbc6=_0x1d5b92;let {left:_0x2d4dcf,top:_0x24686e,width:_0x316a8d,height:_0x1ad0d8}=this['getRealBound'](),_0x235aec=this['transform'][_0x47fbc6(0x1e2)](),_0x1e2130=_0x2d4dcf+_0x316a8d/0x2,_0x87165=_0x24686e+_0x1ad0d8/0x2,_0x2c0f86=new c[(_0x47fbc6(0x298))]([_0x235aec[0x0],_0x235aec[0x1],_0x235aec[0x2],_0x235aec[0x3],_0x1e2130,_0x87165]),_0x2b2e81=this[_0x47fbc6(0x163)]();return(this['isInGroup']&&(_0x2b2e81==null?void 0x0:_0x2b2e81[_0x47fbc6(0x2ab)])===c[_0x47fbc6(0x1a7)][_0x47fbc6(0x352)]?_0x2b2e81[_0x47fbc6(0x403)][_0x47fbc6(0x395)](_0x2c0f86):_0x2c0f86)['invert']()['applyPoint'](_0x459a8b);}[_0x1d5b92(0x3f4)](_0x2a68dc){const _0x276d30=_0x1d5b92;let {left:_0x2b0edc,top:_0x4b800a,width:_0x394705,height:_0x283cc8}=this[_0x276d30(0x162)](),_0x462166=_0x2b0edc+_0x394705/0x2,_0x388094=_0x4b800a+_0x283cc8/0x2,_0x25952d=this[_0x276d30(0x136)][_0x276d30(0x1e2)](),_0x3010d4=new c[(_0x276d30(0x298))]([_0x25952d[0x0],_0x25952d[0x1],_0x25952d[0x2],_0x25952d[0x3],_0x462166,_0x388094]),_0x36bddf=this[_0x276d30(0x163)](),_0x27ffe4=(this[_0x276d30(0x1e7)]&&(_0x36bddf==null?void 0x0:_0x36bddf[_0x276d30(0x2ab)])===c[_0x276d30(0x1a7)][_0x276d30(0x352)]?_0x36bddf[_0x276d30(0x403)][_0x276d30(0x395)](_0x3010d4):_0x3010d4)[_0x276d30(0x3b3)]()[_0x276d30(0x1a1)](_0x2a68dc),_0x7f0198=_0x394705/0x2,_0x3a24fa=_0x283cc8/0x2,_0x35ca5c=this[_0x276d30(0x20a)][_0x276d30(0x408)];return _0x35ca5c&&_0x35ca5c[_0x276d30(0x235)]()?_0x35ca5c['isHitLine'](_0x27ffe4['x'],_0x27ffe4['y'],_0x394705,_0x283cc8):_0x27ffe4['x']>=-_0x7f0198-this['strokeWidth']/0x2&&_0x27ffe4['x']<=_0x7f0198+this['strokeWidth']/0x2&&_0x27ffe4['y']>=-_0x3a24fa-this[_0x276d30(0x427)]/0x2&&_0x27ffe4['y']<=_0x3a24fa+this[_0x276d30(0x427)]/0x2;}[_0x1d5b92(0x1f9)](){const _0x208b84=_0x1d5b92;this[_0x208b84(0x3f6)][_0x208b84(0x1f9)](),this[_0x208b84(0x20a)]['shapeModel']=null,super[_0x208b84(0x1f9)]();}},O=class extends c[_0x1d5b92(0x413)]{constructor(_0x18aeed,_0x23acf0){const _0x2c2ff4=_0x1d5b92;super(_0x18aeed,_0x23acf0),E(this,_0x2c2ff4(0x29c),null),E(this,_0x2c2ff4(0x315),null),E(this,_0x2c2ff4(0x1f4),null),E(this,_0x2c2ff4(0x387),null),_0x23acf0&&this[_0x2c2ff4(0x227)](_0x23acf0);}['getDrawingSearch'](){const _0x1c9dc3=_0x1d5b92;return{'unitId':this[_0x1c9dc3(0x1f4)],'subUnitId':this['_subUnitId'],'drawingId':this['_shapeId']};}[_0x1d5b92(0x227)](_0x35dd3e){const _0x49a013=_0x1d5b92;_0x35dd3e[_0x49a013(0x13d)]!==void 0x0&&(this[_0x49a013(0x29c)]=_0x35dd3e[_0x49a013(0x13d)]),_0x35dd3e[_0x49a013(0x3e0)]!==void 0x0&&(this[_0x49a013(0x315)]=_0x35dd3e[_0x49a013(0x3e0)]),_0x35dd3e[_0x49a013(0x2de)]!==void 0x0&&(this[_0x49a013(0x1f4)]=_0x35dd3e[_0x49a013(0x2de)]),_0x35dd3e['subUnitId']!==void 0x0&&(this[_0x49a013(0x387)]=_0x35dd3e[_0x49a013(0x365)]),this[_0x49a013(0x1d5)]({'width':_0x35dd3e[_0x49a013(0x2ff)],'height':_0x35dd3e[_0x49a013(0x2c3)]});}[_0x1d5b92(0x390)](_0x2d08a0){const _0x237570=_0x1d5b92;c[_0x237570(0x2ca)][_0x237570(0x2fb)](_0x2d08a0,{'radius':n[_0x237570(0x499)][_0x237570(0x39c)],'fill':n[_0x237570(0x499)][_0x237570(0x488)],'stroke':n[_0x237570(0x499)][_0x237570(0x2ae)],'strokeWidth':0x1,'evented':!0x0});}};function k(_0x5db4db,_0x10bf47){return function(_0x1402ff,_0x1804da){_0x10bf47(_0x1402ff,_0x1804da,_0x5db4db);};}function A(_0x281493,_0x2721d8,_0x25c224,_0x3e67f4){const _0x39e3c1=_0x1d5b92;var _0x262d6c=arguments['length'],_0x103c09=_0x262d6c<0x3?_0x2721d8:_0x3e67f4===null?_0x3e67f4=Object[_0x39e3c1(0x200)](_0x2721d8,_0x25c224):_0x3e67f4,_0x30da56;if(typeof Reflect==_0x39e3c1(0x41e)&&typeof Reflect[_0x39e3c1(0x25f)]==_0x39e3c1(0x1bc))_0x103c09=Reflect[_0x39e3c1(0x25f)](_0x281493,_0x2721d8,_0x25c224,_0x3e67f4);else{for(var _0x2fc66c=_0x281493[_0x39e3c1(0x190)]-0x1;_0x2fc66c>=0x0;_0x2fc66c--)(_0x30da56=_0x281493[_0x2fc66c])&&(_0x103c09=(_0x262d6c<0x3?_0x30da56(_0x103c09):_0x262d6c>0x3?_0x30da56(_0x2721d8,_0x25c224,_0x103c09):_0x30da56(_0x2721d8,_0x25c224))||_0x103c09);}return _0x262d6c>0x3&&_0x103c09&&Object[_0x39e3c1(0x325)](_0x2721d8,_0x25c224,_0x103c09),_0x103c09;}let j=class extends a[_0x1d5b92(0x16d)]{constructor(_0x326a3e,_0x92749a,_0xfd3ae1,_0x1f0ed9,_0x237c93,_0x2d3421){const _0x5623cd=_0x1d5b92;super(),this[_0x5623cd(0x22b)]=_0x326a3e,this[_0x5623cd(0x477)]=_0x92749a,this[_0x5623cd(0x1dc)]=_0xfd3ae1,this[_0x5623cd(0x3b9)]=_0x1f0ed9,this['_urlImageService']=_0x237c93,this['_shapeFormulaService']=_0x2d3421,E(this,'_formulaShapes',new Map()),this[_0x5623cd(0x2f1)](this[_0x5623cd(0x321)][_0x5623cd(0x2c8)][_0x5623cd(0x243)](_0xe3531e=>{const _0x4dc2a2=_0x5623cd;var _0x1e4f6c;(_0x1e4f6c=this['_formulaShapes']['get'](this[_0x4dc2a2(0x371)](_0xe3531e[_0x4dc2a2(0x2de)],_0xe3531e['subUnitId'],_0xe3531e[_0x4dc2a2(0x13d)])))==null||_0x1e4f6c[_0x4dc2a2(0x26c)](_0xcf1d9b=>_0xcf1d9b['setFormulaPresentation'](_0xe3531e[_0x4dc2a2(0x3d6)],_0xe3531e[_0x4dc2a2(0x447)]));})),this['disposeWithMe'](this[_0x5623cd(0x22b)]['remove$'][_0x5623cd(0x243)](_0x3bb9a6=>{_0x3bb9a6['forEach'](_0x4d5e7f=>{const _0x310bb5=_0x128e;this[_0x310bb5(0x321)][_0x310bb5(0x460)]({'unitId':_0x4d5e7f['unitId'],'subUnitId':_0x4d5e7f[_0x310bb5(0x365)],'shapeId':_0x4d5e7f[_0x310bb5(0x453)]}),this[_0x310bb5(0x13a)][_0x310bb5(0x268)](this['_formulaKey'](_0x4d5e7f[_0x310bb5(0x2de)],_0x4d5e7f[_0x310bb5(0x365)],_0x4d5e7f[_0x310bb5(0x453)]));});}));}['renderDrawingShape'](_0x3748ae,_0x1e1941,_0x37e83a){const _0x450684=_0x1d5b92;let {transform:_0x5319b6,drawingType:_0x5e6bec,srcRect:_0x201a39,prstGeom:_0x14475d,groupId:_0x42695f,unitId:_0x1433f5,subUnitId:_0x582c3d,drawingId:_0x147788,isMultiTransform:_0x596ea2,transforms:_0x3db04c,hidden:_0x25fe60,selectable:_0x5fd14b}=_0x3748ae;if(_0x5e6bec!==a[_0x450684(0x385)][_0x450684(0x3e8)]||!this[_0x450684(0x22b)][_0x450684(0x238)]()||_0x5319b6==null)return;let _0x460da9=this[_0x450684(0x22b)][_0x450684(0x3fb)](),_0x8d61ea=_0x596ea2&&_0x3db04c?_0x3db04c:[_0x5319b6],_0x484d83=[];for(let _0x19ef0f of _0x8d61ea){let {left:_0x78b8ed,top:_0x554779,width:_0x9dd126,height:_0x3d16dc,angle:_0x333e70,flipX:_0x432398,flipY:_0xf5d797,skewX:_0x1673a7,skewY:_0x4de25d}=_0x19ef0f,_0x38c7ac=_0x8d61ea['indexOf'](_0x19ef0f),_0x4f8090=(0x0,s[_0x450684(0x39a)])({'unitId':_0x1433f5,'subUnitId':_0x582c3d,'drawingId':_0x147788},_0x596ea2?_0x38c7ac:void 0x0),_0x5d8979=_0x1e1941[_0x450684(0x19b)](_0x4f8090);if(_0x5d8979!=null){let _0x3232c6={'unitId':_0x1433f5,'subUnitId':_0x582c3d,'shapeId':_0x147788};_0x5d8979 instanceof D&&this[_0x450684(0x1c8)](_0x5d8979,_0x3232c6),_0x5d8979[_0x450684(0x1d5)]({'left':_0x78b8ed,'top':_0x554779,'width':_0x9dd126,'height':_0x3d16dc,'angle':_0x333e70,'flipX':_0x432398,'flipY':_0xf5d797,'skewX':_0x1673a7,'skewY':_0x4de25d});continue;}let _0x5756a7=this['_drawingManagerService'][_0x450684(0x180)](_0x1433f5,_0x582c3d),_0x502175=_0x5756a7[_0x450684(0x157)](_0x147788);if(_0x1e1941['getObjectIncludeInGroup'](_0x4f8090)||!this[_0x450684(0x22b)][_0x450684(0x238)]())continue;let _0x52828b=this[_0x450684(0x477)]['getShapeModel'](_0x1433f5,_0x582c3d,_0x147788);if(!_0x52828b)continue;let _0x3d79eb=(0x0,n[_0x450684(0x3ba)])(_0x52828b['getShapeType']())?{...e[_0x450684(0x2ea)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e[_0x450684(0x2ea)],_0x5645cd=_0x52828b[_0x450684(0x412)]()[_0x450684(0x42d)],_0x43d622={'unitId':_0x1433f5,'subUnitId':_0x582c3d,'shapeId':_0x147788};_0x5645cd&&this['_shapeFormulaService'][_0x450684(0x2f2)](_0x43d622,_0x5645cd);let _0x209f4c=new D(_0x4f8090,{..._0x19ef0f,'zIndex':_0x502175===-0x1?_0x5756a7[_0x450684(0x190)]-0x1:_0x502175,'shapeModel':_0x52828b,'localeService':this[_0x450684(0x1dc)],'shapeId':_0x147788,'unitId':_0x1433f5,'subUnitId':_0x582c3d,'visible':_0x25fe60!==!0x0,'evented':_0x5fd14b!==!0x1,'formulaPresentation':_0x5645cd?this[_0x450684(0x321)]['getPresentation'](_0x43d622):void 0x0,'animateFormulaPresentation':(_0x5645cd==null?void 0x0:_0x5645cd['animationEnabled'])!==!0x1,'transformerConfig':_0x3d79eb});if(_0x5645cd){let _0x3bb379=this['_formulaKey'](_0x1433f5,_0x582c3d,_0x147788),_0x49575d=this[_0x450684(0x13a)][_0x450684(0x423)](_0x3bb379)??new Set();_0x49575d[_0x450684(0x1a5)](_0x209f4c),this['_formulaShapes'][_0x450684(0x465)](_0x3bb379,_0x49575d);}_0x1e1941[_0x450684(0x143)](_0x209f4c,c[_0x450684(0x389)]),_0x460da9&&_0x1e1941[_0x450684(0x46a)](_0x209f4c),_0x42695f&&(0x0,d[_0x450684(0x334)])({'drawingId':_0x42695f,'unitId':_0x1433f5,'subUnitId':_0x582c3d},_0x209f4c,_0x1e1941,this['_drawingManagerService']),_0x14475d!=null&&_0x209f4c[_0x450684(0x3c3)](_0x14475d),_0x201a39!=null&&_0x209f4c[_0x450684(0x42f)](_0x201a39);let _0x2f7571=this[_0x450684(0x1c3)](_0x209f4c,_0x52828b[_0x450684(0x412)]());if(_0x2f7571){var _0x1a951a;_0x37e83a==null||(_0x1a951a=_0x37e83a[_0x450684(0x261)])==null||_0x1a951a[_0x450684(0x1a5)](_0x2f7571);}_0x484d83[_0x450684(0x1fc)](_0x209f4c);}return _0x484d83;}[_0x1d5b92(0x371)](_0x42cc0d,_0x5e72d3,_0x4dd707){return _0x42cc0d+'\x00'+_0x5e72d3+'\x00'+_0x4dd707;}[_0x1d5b92(0x1c8)](_0x564436,_0x26acec){const _0x41aae3=_0x1d5b92;let _0x34b81a=this[_0x41aae3(0x477)][_0x41aae3(0x1df)](_0x26acec[_0x41aae3(0x2de)],_0x26acec[_0x41aae3(0x365)],_0x26acec['shapeId']),_0x58b674=_0x34b81a==null?void 0x0:_0x34b81a[_0x41aae3(0x412)]()['formulaBinding'],_0x23c8c5=this[_0x41aae3(0x371)](_0x26acec[_0x41aae3(0x2de)],_0x26acec['subUnitId'],_0x26acec['shapeId']);if(_0x58b674){this[_0x41aae3(0x321)]['register'](_0x26acec,_0x58b674);let _0xa91080=this[_0x41aae3(0x13a)][_0x41aae3(0x423)](_0x23c8c5)??new Set();_0xa91080[_0x41aae3(0x1a5)](_0x564436),this[_0x41aae3(0x13a)]['set'](_0x23c8c5,_0xa91080);}else{var _0x241fb1;this[_0x41aae3(0x321)][_0x41aae3(0x460)](_0x26acec),(_0x241fb1=this[_0x41aae3(0x13a)]['get'](_0x23c8c5))==null||_0x241fb1['delete'](_0x564436);}_0x564436[_0x41aae3(0x452)](_0x58b674?this[_0x41aae3(0x321)]['getPresentation'](_0x26acec):void 0x0,(_0x58b674==null?void 0x0:_0x58b674['animationEnabled'])!==!0x1);}[_0x1d5b92(0x1cf)](_0x36db03){const _0x55346d=_0x1d5b92;let _0x538652=_0x36db03[_0x55346d(0x408)][_0x55346d(0x412)](),_0x468f4d=_0x538652[_0x55346d(0x394)];if(!_0x468f4d||_0x468f4d[_0x55346d(0x214)]!==n[_0x55346d(0x287)][_0x55346d(0x1ed)]||!_0x468f4d['fillImageSource']){_0x36db03['setFillImage'](void 0x0);return;}this[_0x55346d(0x1c3)](_0x36db03,_0x538652);}[_0x1d5b92(0x1c3)](_0x1de840,_0x2aafc7){const _0x240fa5=_0x1d5b92;let _0x20316a=_0x2aafc7['fill'];if(!_0x20316a||_0x20316a[_0x240fa5(0x214)]!==n['ShapeFillEnum'][_0x240fa5(0x1ed)]||!_0x20316a[_0x240fa5(0x386)])return;let _0x5f44dd=_0x20316a[_0x240fa5(0x386)],_0x53f815=_0x20316a[_0x240fa5(0x22d)]??n[_0x240fa5(0x297)]['URL'],_0xe25a18=this[_0x240fa5(0x3b9)][_0x240fa5(0x2cf)](_0x5f44dd,_0x53f815);if(_0xe25a18){_0x1de840[_0x240fa5(0x433)](_0xe25a18);return;}return this[_0x240fa5(0x2b7)](_0x1de840,_0x5f44dd,_0x53f815);}async[_0x1d5b92(0x2b7)](_0x127317,_0x255ffe,_0x113376){const _0x1b979b=_0x1d5b92;let _0x16367e;try{if(_0x113376===n[_0x1b979b(0x297)]['UUID'])_0x16367e=await this[_0x1b979b(0x3b9)][_0x1b979b(0x2aa)](_0x255ffe);else{if(_0x113376===n[_0x1b979b(0x297)][_0x1b979b(0x481)])try{_0x16367e=await this[_0x1b979b(0x2ed)][_0x1b979b(0x2aa)](_0x255ffe);}catch{_0x16367e=_0x255ffe;}else _0x16367e=_0x255ffe;}}catch(_0x54e4ed){console[_0x1b979b(0x2bc)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x54e4ed);return;}await new Promise(_0x56e7ce=>{const _0x53e06e=_0x1b979b;let _0x460288=new window[(_0x53e06e(0x22c))]();_0x460288[_0x53e06e(0x2af)]=()=>{const _0x490492=_0x53e06e;this['_imageIoService'][_0x490492(0x174)](_0x255ffe,_0x113376,_0x460288),_0x127317[_0x490492(0x433)](_0x460288),_0x56e7ce();},_0x460288['onerror']=()=>{const _0x57eb4c=_0x53e06e;console[_0x57eb4c(0x2bc)](_0x57eb4c(0x47d),_0x255ffe),_0x56e7ce();},_0x460288[_0x53e06e(0x326)]=_0x16367e;});}};j=A([k(0x0,s[_0x1d5b92(0x366)]),k(0x1,(0x0,a[_0x1d5b92(0x466)])(i[_0x1d5b92(0x188)])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x2d0)])),k(0x3,a[_0x1d5b92(0x3c0)]),k(0x4,a[_0x1d5b92(0x384)]),k(0x5,(0x0,a['Inject'])(r[_0x1d5b92(0x361)]))],j);let M=class extends a[_0x1d5b92(0x16d)]{constructor(_0x10173d,_0x4afc07,_0x1068c3,_0x198df1,_0x2037fd,_0x3dace2){const _0x4cf078=_0x1d5b92;super(),this[_0x4cf078(0x22b)]=_0x10173d,this[_0x4cf078(0x477)]=_0x4afc07,this[_0x4cf078(0x3ee)]=_0x1068c3,this['_sheetDrawingShapeRenderController']=_0x198df1,this['_univerInstanceService']=_0x2037fd,this[_0x4cf078(0x1db)]=_0x3dace2,E(this,_0x4cf078(0x1f8),null),E(this,_0x4cf078(0x1f4),null),E(this,_0x4cf078(0x387),null),E(this,_0x4cf078(0x234),void 0x0),E(this,_0x4cf078(0x279),[]),E(this,_0x4cf078(0x30c),0x0),E(this,_0x4cf078(0x411),0x0),E(this,_0x4cf078(0x196),0x0),E(this,'_baseShapeHeight',0x0),E(this,_0x4cf078(0x2e3),!0x1),E(this,_0x4cf078(0x2fd),void 0x0),E(this,'_activeShapeModel',void 0x0),E(this,_0x4cf078(0x166),void 0x0),E(this,_0x4cf078(0x3bd),void 0x0),E(this,_0x4cf078(0x350),!0x1),this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x1d5b92(0x35e)](_0xf5c6a9,_0x1f3b8a,_0xdd7582){const _0x331aee=_0x1d5b92;let _0x41af85=this[_0x331aee(0x477)][_0x331aee(0x1df)](_0xf5c6a9,_0x1f3b8a,_0xdd7582);if(_0x41af85)return _0x41af85[_0x331aee(0x48d)]();}[_0x1d5b92(0x41f)](){this['_clearShapeAdjustControls']();}['refreshAdjustControls'](){const _0x27efd6=_0x1d5b92;this[_0x27efd6(0x26b)](!0x0);}[_0x1d5b92(0x1ac)](_0x10369c){this['_isShouldShowDrawingShapeAdjust']=_0x10369c;}[_0x1d5b92(0x17c)](_0x25e741,_0x55045a,_0x56607d,_0x171ee3){const _0xbf9d60=_0x1d5b92;let _0x5e67b9=this[_0xbf9d60(0x477)]['getShapeModel'](_0x25e741,_0x55045a,_0x56607d);if(_0x5e67b9)return _0x5e67b9[_0xbf9d60(0x49a)](_0x171ee3);}[_0x1d5b92(0x2f7)](_0x488052=!0x1){const _0x435d8e=_0x1d5b92;if(this[_0x435d8e(0x1f4)]===null||this[_0x435d8e(0x387)]===null||this[_0x435d8e(0x1f8)]===null)return;let _0x30ad84=this[_0x435d8e(0x3ee)][_0x435d8e(0x26f)](this['_unitId']);if(!_0x30ad84||!_0x30ad84[_0x435d8e(0x425)](l[_0x435d8e(0x191)])['getCurrentSkeleton']())return;let {scene:_0x1b9d79}=_0x30ad84,_0x4ff7c9={'unitId':this[_0x435d8e(0x1f4)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x435d8e(0x1f8)]},_0x2a09c2=this[_0x435d8e(0x22b)][_0x435d8e(0x255)](_0x4ff7c9),{transform:_0x4baeed}=_0x2a09c2;if(!_0x4baeed||_0x2a09c2[_0x435d8e(0x144)]!==a[_0x435d8e(0x385)][_0x435d8e(0x3e8)])return;let {left:_0x58b3df,top:_0x171e88,width:_0x2e0794,height:_0x2310ad,flipX:_0x2aa6b8,flipY:_0x3ae178,angle:_0x53b5db=0x0}=_0x4baeed;if(_0x58b3df===void 0x0||_0x171e88===void 0x0)return;if(_0x488052){let _0x4816cc=this[_0x435d8e(0x477)]['getShapeModel'](this[_0x435d8e(0x1f4)],this[_0x435d8e(0x387)],this[_0x435d8e(0x1f8)]);_0x4816cc==null||_0x4816cc['updateContext']({'width':_0x2e0794??0x0,'height':_0x2310ad??0x0}),this['_activeShapeAdjustPointList']=_0x4816cc==null?void 0x0:_0x4816cc['getDrawingPoints']();}let _0x2896b5=this['_activeShapeAdjustPointList'];for(let _0x43b386=0x0;_0x43b386<_0x2896b5[_0x435d8e(0x190)];_0x43b386++){let _0x20dac2=_0x2896b5[_0x43b386],_0x3731bf=_0x20dac2['x'],_0x30cb26=_0x20dac2['y'];if(_0x2aa6b8&&(_0x3731bf=(_0x2e0794||0x0)-_0x3731bf),_0x3ae178&&(_0x30cb26=(_0x2310ad||0x0)-_0x30cb26),_0x53b5db!==0x0){let _0x2aeeec=(_0x2e0794||0x0)/0x2,_0x42d7a9=(_0x2310ad||0x0)/0x2,_0x1b33fa=_0x53b5db*Math['PI']/0xb4,_0x31c062=Math[_0x435d8e(0x3e1)](_0x1b33fa),_0x3326bd=Math[_0x435d8e(0x210)](_0x1b33fa),_0x2c2d65=_0x3731bf-_0x2aeeec,_0x15b363=_0x30cb26-_0x42d7a9;_0x3731bf=_0x2aeeec+(_0x2c2d65*_0x31c062-_0x15b363*_0x3326bd),_0x30cb26=_0x42d7a9+(_0x2c2d65*_0x3326bd+_0x15b363*_0x31c062);}let _0x17a0fa={'x':_0x3731bf,'y':_0x30cb26,'adjName':_0x20dac2[_0x435d8e(0x3e0)]};this['_addShapeAdjustControl'](_0x1b9d79,_0x17a0fa,_0x17a0fa[_0x435d8e(0x3e0)],_0x58b3df,_0x171e88,this[_0x435d8e(0x1f4)],this[_0x435d8e(0x387)]);}}[_0x1d5b92(0x26b)](_0x51b102=!0x1){const _0x5f44bd=_0x1d5b92;_0x51b102&&(this[_0x5f44bd(0x3cc)](),this[_0x5f44bd(0x2f7)](_0x51b102));}['_addShapeAdjustControl'](_0x147934,_0x47cfd0,_0x41f65a,_0x539c87,_0x46acb3,_0xaef330,_0xc28df0){const _0xcc4a2b=_0x1d5b92;if(!this[_0xcc4a2b(0x1f8)])return;let _0x595281=_0x147934['getObjectIncludeInGroup'](_0xcc4a2b(0x3e6)+this[_0xcc4a2b(0x1f8)]+'-'+_0x41f65a);if(_0x595281){_0x595281[_0xcc4a2b(0x1d5)]({'left':_0x47cfd0['x']+_0x539c87-n[_0xcc4a2b(0x499)][_0xcc4a2b(0x39c)],'top':_0x47cfd0['y']+_0x46acb3-n[_0xcc4a2b(0x499)]['adjHandleSize']});return;}let _0x497a19={'left':_0x47cfd0['x']+_0x539c87-n['ShapeDefaultConfig'][_0xcc4a2b(0x39c)],'top':_0x47cfd0['y']+_0x46acb3-n[_0xcc4a2b(0x499)]['adjHandleSize'],'adjName':_0x41f65a,'shapeId':this[_0xcc4a2b(0x1f8)],'unitId':_0xaef330,'subUnitId':_0xc28df0,'width':n['ShapeDefaultConfig'][_0xcc4a2b(0x39c)]+0x8,'height':n['ShapeDefaultConfig'][_0xcc4a2b(0x39c)]+0x8,'zIndex':c[_0xcc4a2b(0x389)]+0x1,'evented':!0x0},_0x26799f=new O(_0xcc4a2b(0x3e6)+this['_activeShapeId']+'-'+_0x41f65a,_0x497a19);this['_shapes']['push'](_0x26799f),this[_0xcc4a2b(0x3fa)](_0x26799f,_0x147934,_0x41f65a),_0x147934[_0xcc4a2b(0x143)](_0x26799f,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x1d5b92(0x3cc)](){const _0x4d7bd5=_0x1d5b92;this[_0x4d7bd5(0x279)][_0x4d7bd5(0x190)]!==0x0&&(this[_0x4d7bd5(0x279)][_0x4d7bd5(0x26c)](_0x55a464=>{const _0x1c1290=_0x4d7bd5;_0x55a464[_0x1c1290(0x1f9)]();}),this[_0x4d7bd5(0x279)]=[]);}[_0x1d5b92(0x296)](){const _0x323ec2=_0x1d5b92;this[_0x323ec2(0x2f7)]();}[_0x1d5b92(0x192)](_0x646b8b,_0x34ae86){const _0x5ebf1d=_0x1d5b92;var _0x30a31c;let _0x5e26ba={'x':0x0,'y':0x0};if(!_0x646b8b||!_0x34ae86)return _0x5e26ba;let _0x3312f1=this['_renderManagerService'][_0x5ebf1d(0x26f)](_0x646b8b);if(!_0x3312f1||!_0x3312f1[_0x5ebf1d(0x425)](l[_0x5ebf1d(0x191)])['getSkeleton'](_0x34ae86))return _0x5e26ba;let _0x1d2de7=_0x3312f1[_0x5ebf1d(0x425)](l[_0x5ebf1d(0x155)]),_0x4cbc5c=_0x1d2de7==null?void 0x0:_0x1d2de7[_0x5ebf1d(0x2cc)]();if(!_0x4cbc5c)return _0x5e26ba;let _0x217b1a=(_0x30a31c=this[_0x5ebf1d(0x260)][_0x5ebf1d(0x18f)](_0x646b8b))==null?void 0x0:_0x30a31c[_0x5ebf1d(0x185)](_0x34ae86);if(!_0x217b1a)return _0x5e26ba;let _0x22a4cc=(0x0,l[_0x5ebf1d(0x120)])(_0x4cbc5c[_0x5ebf1d(0x2a3)],_0x4cbc5c[_0x5ebf1d(0x207)],_0x3312f1[_0x5ebf1d(0x418)],_0x217b1a);return _0x22a4cc?{'x':_0x22a4cc[_0x5ebf1d(0x456)],'y':_0x22a4cc[_0x5ebf1d(0x330)]}:_0x5e26ba;}['_getZoomRatio'](_0x3b2a1b,_0x981994){const _0x1516fc=_0x1d5b92;var _0x43c116;let _0x5f1a22=(_0x43c116=this[_0x1516fc(0x260)]['getUnit'](_0x3b2a1b))==null?void 0x0:_0x43c116['getSheetBySheetId'](_0x981994);return(_0x5f1a22==null?void 0x0:_0x5f1a22[_0x1516fc(0x331)]())??0x1;}[_0x1d5b92(0x3fa)](_0x1d4d63,_0x23bd4d,_0xb37f9f){const _0x10e4c9=_0x1d5b92;this[_0x10e4c9(0x2f1)]((0x0,a[_0x10e4c9(0x303)])(_0x1d4d63[_0x10e4c9(0x329)]['subscribeEvent']((_0x2e697c,_0x2f426a)=>{const _0x4597b0=_0x10e4c9;var _0x21a278,_0x50c03e,_0x3d01e4,_0x44693d;let _0x3d082b=_0x1d4d63['getDrawingSearch']();this[_0x4597b0(0x2fd)]=this[_0x4597b0(0x17c)](_0x3d082b['unitId'],_0x3d082b['subUnitId'],_0x3d082b['drawingId'],_0xb37f9f),this[_0x4597b0(0x132)]=this[_0x4597b0(0x477)]['getShapeModel'](_0x3d082b['unitId'],_0x3d082b[_0x4597b0(0x365)],_0x3d082b['drawingId']);let _0x55d18e=this['_drawingManagerService'][_0x4597b0(0x255)]({'unitId':this[_0x4597b0(0x1f4)],'subUnitId':this[_0x4597b0(0x387)],'drawingId':this[_0x4597b0(0x1f8)]}),{transform:_0x481d07}=_0x55d18e;if(_0x481d07){let {left:_0x15da53,top:_0x114b6c,width:_0x40ea76,height:_0x46ab33}=_0x481d07;this['_baseShapeLeft']=_0x15da53||0x0,this[_0x4597b0(0x411)]=_0x114b6c||0x0,this[_0x4597b0(0x196)]=_0x40ea76||0x0,this[_0x4597b0(0x175)]=_0x46ab33||0x0;}let _0x56f9c9=!!((_0x21a278=_0x55d18e['transform'])!=null&&_0x21a278['flipX']),_0x5150ba=!!((_0x50c03e=_0x55d18e[_0x4597b0(0x136)])!=null&&_0x50c03e[_0x4597b0(0x2b1)]),_0x23b3d0=((_0x3d01e4=_0x55d18e[_0x4597b0(0x136)])==null?void 0x0:_0x3d01e4['angle'])||0x0;this['_isStartAdjusting']=!0x0,_0x23bd4d[_0x4597b0(0x43d)]();let _0x13c548={...((_0x44693d=this[_0x4597b0(0x2fd)])==null?void 0x0:_0x44693d[_0x4597b0(0x223)])??{}};this[_0x4597b0(0x166)]=_0x23bd4d[_0x4597b0(0x1d9)][_0x4597b0(0x1e4)]((_0x41bf79,_0x3b3242)=>{const _0x6016e0=_0x4597b0;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2982e1,offsetY:_0x472887}=_0x41bf79,_0x8ef977=this[_0x6016e0(0x2fd)];if(this[_0x6016e0(0x132)]&&_0x8ef977){_0x23bd4d[_0x6016e0(0x43d)](),_0x23bd4d[_0x6016e0(0x2e5)](c[_0x6016e0(0x1a2)][_0x6016e0(0x264)]);let _0x5851ec={'left':0x0,'top':0x0,'width':this[_0x6016e0(0x196)],'height':this[_0x6016e0(0x175)]},_0x46da41=this[_0x6016e0(0x192)](this[_0x6016e0(0x1f4)],this[_0x6016e0(0x387)]),_0x48f1e1=this[_0x6016e0(0x3a2)](this[_0x6016e0(0x1f4)],this[_0x6016e0(0x387)]),_0x37ff8c=_0x2982e1/_0x48f1e1+_0x46da41['x']-this[_0x6016e0(0x30c)],_0x3a5684=_0x472887/_0x48f1e1+_0x46da41['y']-this['_baseShapeTop'];if(_0x23b3d0!==0x0){let _0x3171b1=this[_0x6016e0(0x196)]/0x2,_0x4d880b=this[_0x6016e0(0x175)]/0x2,_0x54c6e2=_0x23b3d0*Math['PI']/0xb4,_0x5b0d99=Math[_0x6016e0(0x3e1)](_0x54c6e2),_0x426d25=Math[_0x6016e0(0x210)](_0x54c6e2),_0x3b05ce=_0x37ff8c-_0x3171b1,_0x410fe4=_0x3a5684-_0x4d880b;_0x37ff8c=_0x3171b1+(_0x3b05ce*_0x5b0d99+_0x410fe4*_0x426d25),_0x3a5684=_0x4d880b+(-_0x3b05ce*_0x426d25+_0x410fe4*_0x5b0d99);}_0x56f9c9&&(_0x37ff8c=this[_0x6016e0(0x196)]-_0x37ff8c),_0x5150ba&&(_0x3a5684=this[_0x6016e0(0x175)]-_0x3a5684);let _0x1f538b={'x':_0x37ff8c,'y':_0x3a5684},_0x460d52=this['_activeShapeModel'][_0x6016e0(0x282)](_0x5851ec,_0x1f538b,_0x8ef977,_0x56f9c9,_0x5150ba);if(Object['keys'](_0x460d52)[_0x6016e0(0x190)]===0x0)return;for(let [_0x52fa4c,_0x2318fe]of Object[_0x6016e0(0x345)](_0x460d52))this[_0x6016e0(0x132)][_0x6016e0(0x3de)](_0x52fa4c,_0x2318fe);this[_0x6016e0(0x132)]['updateContext']({'width':this[_0x6016e0(0x196)],'height':this['_baseShapeHeight']});let _0x233c66=this[_0x6016e0(0x22b)]['getDrawingByParam']({'unitId':_0x3d082b['unitId'],'subUnitId':_0x3d082b[_0x6016e0(0x365)],'drawingId':_0x3d082b[_0x6016e0(0x453)]});_0x233c66&&(this[_0x6016e0(0x2e0)][_0x6016e0(0x445)](_0x233c66,_0x23bd4d),this[_0x6016e0(0x234)]=this[_0x6016e0(0x35e)](_0x3d082b[_0x6016e0(0x2de)],_0x3d082b['subUnitId'],_0x3d082b[_0x6016e0(0x453)]),this[_0x6016e0(0x296)]());}_0x3b3242[_0x6016e0(0x37b)]();}),this[_0x4597b0(0x3bd)]=_0x23bd4d['onPointerUp$'][_0x4597b0(0x1e4)]((_0x46e7b1,_0x1ef42d)=>{const _0x1dd7af=_0x4597b0;this[_0x1dd7af(0x166)]['unsubscribe'](),this[_0x1dd7af(0x3bd)][_0x1dd7af(0x3d9)](),_0x23bd4d['resetCursor']();let _0x6567f=this[_0x1dd7af(0x2fd)];if(_0x6567f){let _0x172513=_0x3d082b[_0x1dd7af(0x2de)],_0x5cf1ff=_0x3d082b[_0x1dd7af(0x365)],_0x5d9d76=_0x3d082b[_0x1dd7af(0x453)],_0x237149={};for(let _0x20d747 of Object['keys'](_0x6567f['currentAdjustValues'])){var _0x5a8734;let _0x346226=(_0x5a8734=this[_0x1dd7af(0x132)])==null?void 0x0:_0x5a8734['getAdjustValueByName'](_0x20d747);_0x346226!==void 0x0&&(_0x237149[_0x20d747]=_0x346226);}Object[_0x1dd7af(0x2f5)](_0x237149)[_0x1dd7af(0x190)]>0x0&&C(this['_commandService'],_0x172513,_0x5cf1ff,_0x5d9d76,{'oldShapeData':{'adjustValues':_0x13c548}},{'adjustValues':_0x237149});}this['_activeAdjustInfo']=void 0x0,this[_0x1dd7af(0x132)]=void 0x0,this[_0x1dd7af(0x2e3)]=!0x1,_0x1ef42d[_0x1dd7af(0x37b)](),_0x23bd4d['enableObjectsEvent']();}),_0x2f426a['stopPropagation']();})));}[_0x1d5b92(0x3c4)](){const _0x105c38=_0x1d5b92;let _0x5100a5=this['_univerInstanceService'][_0x105c38(0x25e)](a[_0x105c38(0x46e)][_0x105c38(0x3f2)]);this[_0x105c38(0x2f1)](_0x5100a5[_0x105c38(0x35a)]((0x0,u['switchMap'])(_0x84433d=>_0x84433d?_0x84433d[_0x105c38(0x299)][_0x105c38(0x35a)]((0x0,u[_0x105c38(0x2df)])(_0x5195ef=>{const _0x4d51a1=_0x105c38;if(!_0x5195ef)return u['EMPTY'];let _0x5b36c0=_0x84433d[_0x4d51a1(0x2ba)](),_0x32dd56=this[_0x4d51a1(0x3ee)][_0x4d51a1(0x26f)](_0x5b36c0),_0x40d1ab=_0x32dd56==null?void 0x0:_0x32dd56['scene'];return _0x40d1ab?(0x0,u['of'])(_0x40d1ab):u[_0x4d51a1(0x40b)];})):u[_0x105c38(0x40b)]))[_0x105c38(0x243)](_0x1af8aa=>{const _0x239c93=_0x105c38;let _0x5563ab=_0x1af8aa[_0x239c93(0x483)]();this['disposeWithMe'](_0x1af8aa['onPointerMove$']['subscribeEvent'](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this['disposeWithMe'](_0x5563ab['changeStart$'][_0x239c93(0x243)](_0x2ffc65=>{const _0x2af21b=_0x239c93;let {objects:_0x17bc9d}=_0x2ffc65;this[_0x2af21b(0x2f7)](),_0x17bc9d!==null&&_0x17bc9d[_0x2af21b(0x3a3)]===0x1&&_0x17bc9d['values']()[_0x2af21b(0x27a)]()[_0x2af21b(0x2cb)]instanceof D&&this['setShouldShowAdjust'](!0x0);})),this[_0x239c93(0x2f1)](_0x5563ab[_0x239c93(0x34a)][_0x239c93(0x243)](()=>{const _0x4c575e=_0x239c93;this[_0x4c575e(0x350)]&&this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x1af8aa[_0x239c93(0x490)][_0x239c93(0x1e4)](()=>{const _0x4a977d=_0x239c93;this[_0x4a977d(0x350)]&&(this[_0x4a977d(0x1ac)](!0x1),this[_0x4a977d(0x2f7)]());})),this[_0x239c93(0x2f1)](_0x5563ab['changeEnd$']['subscribe'](()=>{const _0x2d7d58=_0x239c93;this[_0x2d7d58(0x1f4)]&&this['_subUnitId']&&this[_0x2d7d58(0x1f8)]&&this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x2d7d58(0x1f4)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2d7d58(0x1f8)]})&&(this[_0x2d7d58(0x234)]=this['_getShapeAdjustPointListById'](this[_0x2d7d58(0x1f4)],this[_0x2d7d58(0x387)],this[_0x2d7d58(0x1f8)]),this['_updateAdjustControlPositions']());}));}));}[_0x1d5b92(0x32c)](){const _0x1fe767=_0x1d5b92;this[_0x1fe767(0x2f1)](this[_0x1fe767(0x1db)][_0x1fe767(0x124)](_0x3b6696=>{const _0x1918dd=_0x1fe767;if(_0x3b6696['id']!==i[_0x1918dd(0x443)]['id'])return;let {unitId:_0x45e03a,subUnitId:_0x464201,shapeId:_0x468954}=_0x3b6696['params'];_0x45e03a===this[_0x1918dd(0x1f4)]&&_0x464201===this[_0x1918dd(0x387)]&&_0x468954===this['_activeShapeId']&&this[_0x1918dd(0x176)]();})),this[_0x1fe767(0x2f1)](this[_0x1fe767(0x22b)]['focus$'][_0x1fe767(0x243)](_0x4582a2=>{const _0x2c0ae5=_0x1fe767;if(_0x4582a2['length']===0x1){let _0x1126d6=_0x4582a2[0x0];if(_0x1126d6['drawingType']===a[_0x2c0ae5(0x385)][_0x2c0ae5(0x3e8)]&&this[_0x2c0ae5(0x260)]['getUnitType'](_0x1126d6[_0x2c0ae5(0x2de)])===a['UniverInstanceType'][_0x2c0ae5(0x3f2)]){this[_0x2c0ae5(0x1f8)]=_0x1126d6[_0x2c0ae5(0x453)];let {unitId:_0x3269be,subUnitId:_0x3abdd4}=_0x1126d6;this[_0x2c0ae5(0x234)]=this[_0x2c0ae5(0x35e)](_0x3269be,_0x3abdd4,this[_0x2c0ae5(0x1f8)]),this[_0x2c0ae5(0x1f4)]=_0x3269be,this[_0x2c0ae5(0x387)]=_0x3abdd4,this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();return;}}this[_0x2c0ae5(0x1f8)]=null,this[_0x2c0ae5(0x234)]=void 0x0,this[_0x2c0ae5(0x1f4)]=null,this[_0x2c0ae5(0x387)]=null,this[_0x2c0ae5(0x3cc)]();})),this[_0x1fe767(0x2f1)](this[_0x1fe767(0x22b)][_0x1fe767(0x410)]['subscribe'](_0x1e2d21=>{const _0x2011cd=_0x1fe767;if(_0x1e2d21[_0x2011cd(0x190)]===0x1){var _0x134140;let _0x4d5447=_0x1e2d21[0x0];((_0x134140=this['_drawingManagerService'][_0x2011cd(0x255)](_0x4d5447))==null?void 0x0:_0x134140[_0x2011cd(0x144)])===a['DrawingTypeEnum'][_0x2011cd(0x3e8)]&&this[_0x2011cd(0x26b)](!0x0);}})),this[_0x1fe767(0x2f1)](this[_0x1fe767(0x22b)][_0x1fe767(0x1fd)][_0x1fe767(0x243)](_0x3bf19e=>{const _0x44136d=_0x1fe767;for(let _0x372e9a of _0x3bf19e)this[_0x44136d(0x1f8)]===_0x372e9a[_0x44136d(0x453)]&&(this[_0x44136d(0x1f8)]=null,this[_0x44136d(0x234)]=void 0x0,this[_0x44136d(0x1f4)]=null,this[_0x44136d(0x387)]=null,this['_clearShapeAdjustControls']());}));}};M=A([k(0x0,s[_0x1d5b92(0x366)]),k(0x1,(0x0,a[_0x1d5b92(0x466)])(i['SheetsShapeService'])),k(0x2,(0x0,a['Inject'])(c[_0x1d5b92(0x33f)])),k(0x3,(0x0,a[_0x1d5b92(0x466)])(j)),k(0x4,a[_0x1d5b92(0x3a7)]),k(0x5,a['ICommandService'])],M);const N={'id':_0x1d5b92(0x1c0),'type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x47f)],'handler':(_0xdcfbf0,_0x3b7e01)=>{const _0x3ee8e2=_0x1d5b92;let _0x21501c=_0xdcfbf0[_0x3ee8e2(0x423)](s[_0x3ee8e2(0x366)]),_0x37f54d=_0xdcfbf0[_0x3ee8e2(0x423)](c[_0x3ee8e2(0x33f)]),_0x5dd590=_0xdcfbf0['get'](M);if(_0x3b7e01==null)return!0x0;if(_0x3b7e01[_0x3ee8e2(0x190)]>0x0){var _0x5a6b30;let _0x4b4c18=(_0x5a6b30=_0x37f54d[_0x3ee8e2(0x26f)](_0x3b7e01[0x0][_0x3ee8e2(0x2de)]))==null?void 0x0:_0x5a6b30['scene'];if(_0x4b4c18){let {unitId:_0x5be726,subUnitId:_0xc9567c,drawingId:_0x3c07c8}=_0x3b7e01[0x0],_0x3eb357=(0x0,s[_0x3ee8e2(0x39a)])({'unitId':_0x5be726,'subUnitId':_0xc9567c,'drawingId':_0x3c07c8},void 0x0),_0x48ff73=_0x4b4c18['getObjectIncludeInGroup'](_0x3eb357);if(_0x48ff73){var _0x5155dc;(_0x5155dc=_0x37f54d[_0x3ee8e2(0x26f)](_0x3b7e01[0x0]['unitId']))==null||(_0x5155dc=_0x5155dc[_0x3ee8e2(0x418)][_0x3ee8e2(0x3cd)]())==null||_0x5155dc[_0x3ee8e2(0x140)](_0x48ff73);}}_0x21501c['focusDrawing'](_0x3b7e01),_0x5dd590['setShouldShowAdjust'](!0x1);}return!0x0;}},P={'type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x18e)],'id':_0x1d5b92(0x164),'handler':async(_0xe10b3f,_0x43e76c)=>{const _0x3d9f65=_0x1d5b92;let _0x48cf64=(0x0,o['getSheetCommandTarget'])(_0xe10b3f[_0x3d9f65(0x423)](a['IUniverInstanceService']));if(!_0x48cf64)return!0x1;let _0x4ccb82=_0xe10b3f[_0x3d9f65(0x423)](o[_0x3d9f65(0x409)])[_0x3d9f65(0x416)]();if(!_0x4ccb82)return!0x1;let _0x3507e7=_0xe10b3f[_0x3d9f65(0x423)](a[_0x3d9f65(0x393)]),{unitId:_0x2af926,subUnitId:_0x1077a9}=_0x48cf64,{value:_0x34e865,enhanceParams:_0xa060df}=_0x43e76c,{range:_0x4a0a8e}=_0x4ccb82,_0x250146={'unitId':_0x2af926,'subUnitId':_0x1077a9,'shapeType':_0x34e865,'range':_0x4a0a8e,'shapeId':(0x0,a['generateRandomId'])()};if(_0xa060df){let _0x1fd080=(0x0,n[_0x3d9f65(0x3ba)])(_0x34e865),_0x45b555=_0x34e865===n[_0x3d9f65(0x137)][_0x3d9f65(0x47b)];_0x1fd080&&(_0xa060df['startArrow']||_0xa060df[_0x3d9f65(0x448)])&&(_0x250146[_0x3d9f65(0x42e)]={'ln':{'startArrow':_0xa060df['startArrow']?{'type':n[_0x3d9f65(0x46b)]['Arrow'],'size':n[_0x3d9f65(0x165)][_0x3d9f65(0x1bb)]}:void 0x0,'endArrow':_0xa060df[_0x3d9f65(0x448)]?{'type':n[_0x3d9f65(0x46b)]['Arrow'],'size':n[_0x3d9f65(0x165)][_0x3d9f65(0x344)]}:void 0x0}}),_0x45b555&&(_0xa060df[_0x3d9f65(0x2f9)]||_0xa060df[_0x3d9f65(0x2db)])&&(_0x250146[_0x3d9f65(0x42e)]=(0x0,r[_0x3d9f65(0x220)])({'fill':{'fillType':n[_0x3d9f65(0x287)][_0x3d9f65(0x245)],'color':'#FFFFFF'},'isHorizontal':!!_0xa060df[_0x3d9f65(0x2f9)],'stroke':{'lineStrokeType':n['ShapeLineTypeEnum'][_0x3d9f65(0x3fc)],'width':0x1,'color':_0x3d9f65(0x400)}}));}let _0x5dabe2=_0x3507e7[_0x3d9f65(0x2c5)](i[_0x3d9f65(0x480)]['id'],_0x250146);return setTimeout(()=>{const _0x388d5f=_0x3d9f65;_0x3507e7[_0x388d5f(0x37c)](N['id'],[{'unitId':_0x2af926,'subUnitId':_0x1077a9,'drawingId':_0x250146[_0x388d5f(0x13d)]}]);},0xc8),_0x5dabe2;}},F='sheet.shape.edit.panel',I=_0x1d5b92(0x48a),L=_0x1d5b92(0x18a),R=_0x1d5b92(0x49c),re=(0x0,a[_0x1d5b92(0x206)])(_0x1d5b92(0x1b3)),ie=_0x1d5b92(0x32b),ae={'id':_0x1d5b92(0x304),'type':a[_0x1d5b92(0x27e)]['COMMAND'],'handler':(_0x38684f,_0x5ceb35)=>{const _0x515683=_0x1d5b92;let _0x2502a8=_0x38684f[_0x515683(0x423)](t['ISidebarService']),_0x472097=_0x38684f['get'](a['LocaleService']),_0x1256ec=_0x38684f['get'](a[_0x515683(0x3a7)]),_0x4327cc=_0x38684f[_0x515683(0x423)](a[_0x515683(0x393)]);return(0x0,o[_0x515683(0x457)])(_0x1256ec)?(_0x5ceb35==null?void 0x0:_0x5ceb35[_0x515683(0x2cb)])===_0x515683(0x382)?(_0x2502a8['close'](I),!0x0):(_0x2502a8[_0x515683(0x3f1)]({'id':I,'header':{'title':_0x472097['t'](_0x515683(0x2b2))},'children':{'label':I},'onClose':()=>{const _0x3568e4=_0x515683;_0x4327cc[_0x3568e4(0x2c5)](s['SetDrawingSelectedOperation']['id'],[]);},'width':0x168}),!0x0):!0x1;}},z={'type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x47f)],'id':_0x1d5b92(0x1d1),'handler'(){return!0x0;}};function oe(_0x3870fa){const _0x25fc9a=_0x1d5b92;let _0x4aa374=_0x3870fa[_0x25fc9a(0x423)](s[_0x25fc9a(0x366)])[_0x25fc9a(0x16b)](),_0x47f3af=_0x4aa374[_0x25fc9a(0x190)]===0x1?_0x4aa374[0x0]:null;if(!_0x47f3af||_0x47f3af[_0x25fc9a(0x144)]!==a['DrawingTypeEnum'][_0x25fc9a(0x3e8)])return null;let _0x8d004f=_0x3870fa[_0x25fc9a(0x423)](i['SheetsShapeService']),_0x4d5516=_0x8d004f[_0x25fc9a(0x367)](_0x47f3af[_0x25fc9a(0x2de)],_0x47f3af[_0x25fc9a(0x365)],_0x47f3af[_0x25fc9a(0x453)]),_0x695ee8=_0x8d004f[_0x25fc9a(0x18d)](_0x47f3af[_0x25fc9a(0x2de)],_0x47f3af[_0x25fc9a(0x365)],_0x47f3af['drawingId']);return _0x4d5516===void 0x0||!_0x695ee8?null:{'drawing':_0x47f3af,'shapeData':_0x695ee8,'shapeType':_0x4d5516};}const se={'id':'sheet.operation.apply-shape-quick-style','type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x47f)],'handler':(_0x53f835,_0x3bbd04)=>{const _0x8aa4bb=_0x1d5b92;let _0x558b89=oe(_0x53f835),_0x4e7ecc=(0x0,r[_0x8aa4bb(0x496)])((_0x3bbd04==null?void 0x0:_0x3bbd04[_0x8aa4bb(0x27d)])??(_0x3bbd04==null?void 0x0:_0x3bbd04['value'])??'');if(!_0x558b89||!_0x4e7ecc||_0x4e7ecc[_0x8aa4bb(0x30d)]!==(0x0,r[_0x8aa4bb(0x16e)])(_0x558b89[_0x8aa4bb(0x42e)]))return!0x1;let _0x288700=(0x0,r['applyQuickStyleToShapeData'])(_0x558b89['shapeData'],_0x4e7ecc);if(!_0x288700)return!0x1;let {drawing:_0x5acf74}=_0x558b89;return _0x53f835[_0x8aa4bb(0x423)](a[_0x8aa4bb(0x393)])['executeCommand'](S['id'],{'unitId':_0x5acf74[_0x8aa4bb(0x2de)],'subUnitId':_0x5acf74[_0x8aa4bb(0x365)],'shapeId':_0x5acf74[_0x8aa4bb(0x453)],'shapeData':_0x288700,'oldShapeJSON':{'oldShapeData':_0x558b89[_0x8aa4bb(0x42e)]}});}},ce={'id':_0x1d5b92(0x265),'type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x47f)],'handler':(_0x57f6d2,_0x37a467)=>{const _0x4ef47b=_0x1d5b92;let _0x36e21b=oe(_0x57f6d2),_0x4e60ab=(_0x37a467==null?void 0x0:_0x37a467[_0x4ef47b(0x3df)])??(_0x37a467==null?void 0x0:_0x37a467[_0x4ef47b(0x2cb)]);if(!_0x36e21b||!_0x4e60ab||(0x0,n['isConnectorShape'])(_0x36e21b['shapeType'])||(0x0,n[_0x4ef47b(0x3ba)])(_0x4e60ab))return!0x1;let _0x3f50e9=(0x0,r[_0x4ef47b(0x294)])(_0x36e21b[_0x4ef47b(0x42e)],_0x4e60ab);if(!_0x3f50e9)return!0x1;let {drawing:_0x51327e}=_0x36e21b;return _0x57f6d2[_0x4ef47b(0x423)](a['ICommandService'])['executeCommand'](S['id'],{'unitId':_0x51327e[_0x4ef47b(0x2de)],'subUnitId':_0x51327e[_0x4ef47b(0x365)],'shapeId':_0x51327e[_0x4ef47b(0x453)],'shapeType':_0x4e60ab,'shapeData':_0x3f50e9,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x36e21b[_0x4ef47b(0x3df)],'oldShapeData':_0x36e21b[_0x4ef47b(0x42e)]}});}};let B=class extends a['Disposable']{constructor(_0x539153,_0x447c6){const _0x3e14b0=_0x1d5b92;super(),this['_clipService']=_0x539153,this[_0x3e14b0(0x22b)]=_0x447c6,this[_0x3e14b0(0x252)](),this[_0x3e14b0(0x392)][_0x3e14b0(0x332)](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x3e14b0(0x392)][_0x3e14b0(0x332)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x240719=_0x1d5b92;let _0x4d883c=this[_0x240719(0x392)],_0x525526=new Map(),_0x159ab7=_0x4d883c[_0x240719(0x497)]((_0x4a180c,_0x390547,_0x50b97c,_0x385088,_0x1f5200)=>{const _0x599223=_0x240719;let _0x2ef76c=_0x390547;if(_0x2ef76c===n['ShapeTypeEnum'][_0x599223(0x203)]||_0x390547==='custom')return!0x1;try{let _0x78ea99=_0x525526[_0x599223(0x423)](_0x390547);return _0x78ea99||(_0x78ea99=new n[(_0x599223(0x450))](_0x2ef76c,'clip-'+_0x390547),_0x525526['set'](_0x390547,_0x78ea99)),_0x78ea99['clearAdjustValue'](),_0x1f5200&&Object[_0x599223(0x2f5)](_0x1f5200)[_0x599223(0x190)]>0x0&&_0x78ea99[_0x599223(0x20d)]({'adjustValues':_0x1f5200},!0x0),_0x78ea99[_0x599223(0x29d)]({'width':_0x50b97c,'height':_0x385088}),_0x78ea99[_0x599223(0x12a)](_0x4a180c,{'left':0x0,'top':0x0,'width':_0x50b97c,'height':_0x385088});}catch{return!0x1;}});this[_0x240719(0x2f1)](_0x159ab7),this[_0x240719(0x2f1)]({'dispose':()=>_0x525526[_0x240719(0x13f)]()});}[_0x1d5b92(0x316)](_0x2353d3,_0x49cf96,_0x5bff20,_0x2124e7,_0x4f29b5){const _0x44368e=_0x1d5b92;let _0x4b5927=this[_0x44368e(0x22b)][_0x44368e(0x3a4)](_0x2353d3,_0x49cf96);if(!_0x4b5927[_0x5bff20])return;let _0x57f6ee={..._0x4b5927[_0x5bff20],'prstGeom':_0x2124e7,'adjustValues':_0x4f29b5};this['_drawingManagerService'][_0x44368e(0x251)]([_0x57f6ee]);}};B=A([k(0x0,(0x0,a[_0x1d5b92(0x466)])(d[_0x1d5b92(0x277)])),k(0x1,(0x0,a[_0x1d5b92(0x466)])(s['IDrawingManagerService']))],B);const le=_0x1d5b92(0x3e9),ue=_0x1d5b92(0x253);function de({onShapeClick:_0x414228,excludeGroups:_0x5dcec4}){const _0x1665c8=_0x1d5b92;return(0x0,p[_0x1665c8(0x1ee)])(e[_0x1665c8(0x3dd)],{'excludeGroups':_0x5dcec4,'onShapeClick':_0x414228,'scrollContainer':_0x1665c8(0x3ce)});}function fe(){const _0x566742=_0x1d5b92;let _0x560c98=(0x0,t['useDependency'])(s[_0x566742(0x366)]),_0x464d45=(0x0,t[_0x566742(0x302)])(B);return(0x0,p['jsx'])(e[_0x566742(0x16a)],{'buttonLabel':_0x566742(0x17d),'excludeGroups':[e['ShapeGroupEnum']['Line']],'onShapeClick':_0x5e76bb=>{const _0x525577=_0x566742;let _0x585e4e=_0x560c98['getFocusDrawings']()[_0x525577(0x339)](_0x451b6d=>_0x451b6d[_0x525577(0x144)]===a[_0x525577(0x385)][_0x525577(0x437)]);if(!_0x585e4e)return;let {unitId:_0x98143b,subUnitId:_0x4dbbb7,drawingId:_0x58bf75}=_0x585e4e;_0x464d45[_0x525577(0x316)](_0x98143b,_0x4dbbb7,_0x58bf75,_0x5e76bb['type']);}});}function pe(){const _0x5854a6=_0x1d5b92;let _0x589367=(0x0,t['useDependency'])(s['IDrawingManagerService']),_0x47a19b=(0x0,t['useDependency'])(B);return(0x0,p[_0x5854a6(0x1ee)])(e[_0x5854a6(0x16a)],{'buttonLabel':_0x5854a6(0x17d),'excludeGroups':[e[_0x5854a6(0x343)][_0x5854a6(0x489)]],'DropdownComponent':f[_0x5854a6(0x402)],'onShapeClick':_0x2b1f99=>{const _0x64a093=_0x5854a6;let _0x3f98ff=_0x589367['getFocusDrawings']()[_0x64a093(0x339)](_0x3b936c=>_0x3b936c[_0x64a093(0x144)]===a[_0x64a093(0x385)][_0x64a093(0x437)]);if(!_0x3f98ff)return;let {unitId:_0x2e533b,subUnitId:_0x3e4415,drawingId:_0x3ca744}=_0x3f98ff;_0x47a19b[_0x64a093(0x316)](_0x2e533b,_0x3e4415,_0x3ca744,_0x2b1f99[_0x64a093(0x30d)]);}});}function me(){const _0x35a9e4=_0x1d5b92;let _0x438111=(0x0,t[_0x35a9e4(0x302)])(t[_0x35a9e4(0x2ee)]),_0x5a1098=(0x0,t['useDependency'])(s[_0x35a9e4(0x366)]),_0x38b98d=(0x0,t[_0x35a9e4(0x302)])(a[_0x35a9e4(0x3a7)]),_0x117fce=_0x5a1098['getFocusDrawings']()[0x0],_0x3fdfdc=_0x117fce?_0x38b98d[_0x35a9e4(0x492)](_0x117fce[_0x35a9e4(0x2de)]):void 0x0,_0x2c119f=_0x3fdfdc===a[_0x35a9e4(0x46e)][_0x35a9e4(0x1d4)]?'doc.image-clip.shape-picker.component':_0x3fdfdc===a[_0x35a9e4(0x46e)][_0x35a9e4(0x3f2)]?ue:void 0x0,_0x482e28=_0x2c119f?_0x438111[_0x35a9e4(0x423)](_0x2c119f):void 0x0;return _0x482e28?(0x0,p[_0x35a9e4(0x1ee)])(_0x482e28,{}):null;}function he(){const _0x3099c9=_0x1d5b92;let _0x5f02ed=(0x0,t[_0x3099c9(0x302)])(a[_0x3099c9(0x393)]);return(0x0,p[_0x3099c9(0x1ee)])(de,{'onShapeClick':_0x385ac4=>{const _0x3fbaec=_0x3099c9;_0x5f02ed[_0x3fbaec(0x37c)](P['id'],{'value':_0x385ac4['type'],'enhanceParams':{'endArrow':_0x385ac4[_0x3fbaec(0x448)],'startArrow':_0x385ac4['startArrow'],'horizontal':_0x385ac4[_0x3fbaec(0x2f9)],'vertical':_0x385ac4[_0x3fbaec(0x2db)]}});}});}function ge(){const _0x39d3fc=_0x1d5b92;return(0x0,p[_0x39d3fc(0x1ee)])(he,{});}function _e(_0x104282){const _0x40413b=_0x1d5b92;let _0x4d10a2=_0x104282[_0x40413b(0x423)](a['IUniverInstanceService']);return{'id':P['id'],'type':t[_0x40413b(0x194)][_0x40413b(0x278)],'selections':[{'label':{'name':le,'hoverable':!0x1,'selectable':!0x1,'props':{'id':P['id']}}}],'icon':'ShapeIcon','tooltip':_0x40413b(0x121),'activated$':(0x0,l['deriveStateFromActiveSheet$'])(_0x4d10a2,!0x1,()=>new u['Observable'](_0x2fb011=>{const _0x24471b=_0x40413b;_0x2fb011[_0x24471b(0x27a)](!0x1);})),'hidden$':(0x0,t[_0x40413b(0x233)])(_0x104282,a[_0x40413b(0x46e)][_0x40413b(0x3f2)]),'disabled$':(0x0,l['getCurrentRangeDisable$'])(_0x104282)};}function ve(_0x113966){const _0x29ee69=_0x1d5b92;let _0x5516d6=_0x113966[_0x29ee69(0x423)](a['IUniverInstanceService']);return{'id':ae['id'],'type':t[_0x29ee69(0x194)]['BUTTON'],'icon':_0x29ee69(0x372),'title':_0x29ee69(0x221),'tooltip':_0x29ee69(0x221),'activated$':(0x0,l['deriveStateFromActiveSheet$'])(_0x5516d6,!0x1,()=>new u['Observable'](_0x3d6aeb=>{const _0x5661ba=_0x29ee69;_0x3d6aeb[_0x5661ba(0x27a)](!0x1);})),'hidden$':(0x0,t[_0x29ee69(0x233)])(_0x113966,a[_0x29ee69(0x46e)][_0x29ee69(0x3f2)]),'disabled$':(0x0,l[_0x29ee69(0x3ec)])(_0x113966)};}const ye=_0x1d5b92(0x189),be=_0x1d5b92(0x171);function xe(_0x95dcc6){const _0x56600d=_0x1d5b92;let _0x3dcb8f=_0x95dcc6[_0x56600d(0x423)](s['IDrawingManagerService'])[_0x56600d(0x16b)]();return _0x3dcb8f['length']===0x1&&_0x3dcb8f[0x0][_0x56600d(0x144)]===a[_0x56600d(0x385)]['DRAWING_SHAPE']?_0x3dcb8f[0x0]:null;}function Se(_0x2415e3){const _0xfed74a=_0x1d5b92;let _0x1948b2=_0x2415e3['get'](s[_0xfed74a(0x366)]);return _0x1948b2[_0xfed74a(0x1c2)]['pipe']((0x0,u[_0xfed74a(0x29a)])(_0x1948b2[_0xfed74a(0x16b)]()),(0x0,u['map'])(_0x52837b=>_0x52837b[_0xfed74a(0x190)]!==0x1||_0x52837b[0x0][_0xfed74a(0x144)]!==a['DrawingTypeEnum'][_0xfed74a(0x3e8)]));}function Ce(_0xc57e28){const _0xa2c4c5=_0x1d5b92;return{'id':ye,'commandId':i[_0xa2c4c5(0x479)]['id'],'type':t['MenuItemType'][_0xa2c4c5(0x354)],'title':'sheets-shape-ui.flipHorizontal','tooltip':'sheets-shape-ui.flipHorizontal','icon':_0xa2c4c5(0x1fa),'hidden$':Se(_0xc57e28),'params':()=>{const _0x17a4ce=_0xa2c4c5;let _0x54b59d=xe(_0xc57e28);return _0x54b59d?{'unitId':_0x54b59d[_0x17a4ce(0x2de)],'subUnitId':_0x54b59d[_0x17a4ce(0x365)],'shapeId':_0x54b59d[_0x17a4ce(0x453)],'flipH':!0x0}:void 0x0;}};}function we(_0x1733d9){const _0x43aff4=_0x1d5b92;return{'id':be,'commandId':i[_0x43aff4(0x479)]['id'],'type':t['MenuItemType'][_0x43aff4(0x354)],'title':_0x43aff4(0x23d),'tooltip':_0x43aff4(0x23d),'icon':'FlipVerticalIcon','hidden$':Se(_0x1733d9),'params':()=>{const _0x9394f5=_0x43aff4;let _0x1e4d02=xe(_0x1733d9);return _0x1e4d02?{'unitId':_0x1e4d02[_0x9394f5(0x2de)],'subUnitId':_0x1e4d02['subUnitId'],'shapeId':_0x1e4d02[_0x9394f5(0x453)],'flipV':!0x0}:void 0x0;}};}const Te=_0x1d5b92(0x467),Ee=_0x1d5b92(0x28b),De='sheets-shape-ui.shape-format.text-ribbon-control',Oe=_0x1d5b92(0x436);function ke(){const _0x31e07d=_0x1d5b92;let _0x27faa6=(0x0,t[_0x31e07d(0x302)])(a[_0x31e07d(0x393)]),_0x475121=(0x0,t[_0x31e07d(0x302)])(s[_0x31e07d(0x366)]),_0x108ab7=(0x0,t[_0x31e07d(0x302)])(i['SheetsShapeService']),_0x58bd68=()=>{const _0x4d352c=_0x31e07d;var _0x56f9d8;let _0x22ab7a=_0x475121['getFocusDrawings']();if(_0x22ab7a[_0x4d352c(0x190)]!==0x1||((_0x56f9d8=_0x22ab7a[0x0])==null?void 0x0:_0x56f9d8[_0x4d352c(0x144)])!==a[_0x4d352c(0x385)][_0x4d352c(0x3e8)])return null;let {unitId:_0x357e43,subUnitId:_0x393c85,drawingId:_0x4f1937}=_0x22ab7a[0x0],_0x510fac=_0x108ab7[_0x4d352c(0x367)](_0x357e43,_0x393c85,_0x4f1937),_0x364159=_0x108ab7[_0x4d352c(0x18d)](_0x357e43,_0x393c85,_0x4f1937);return _0x510fac===void 0x0||!_0x364159?null:{'unitId':_0x357e43,'subUnitId':_0x393c85,'drawingId':_0x4f1937,'shapeType':_0x510fac,'shapeData':_0x364159};},_0x51a78b=(0x0,t[_0x31e07d(0x160)])(()=>new u[(_0x31e07d(0x426))](_0x45a45c=>{const _0x719927=_0x31e07d;let _0x4aab58=()=>_0x45a45c['next'](_0x58bd68()),_0x467768=_0x475121[_0x719927(0x1c2)][_0x719927(0x243)](_0x4aab58),_0x284878=_0x27faa6['onCommandExecuted'](_0x2493bb=>{_0x2493bb['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x4aab58();});return _0x4aab58(),()=>{const _0x1ece3c=_0x719927;_0x467768[_0x1ece3c(0x3d9)](),_0x284878['dispose']();};}),_0x58bd68(),!0x1,[_0x27faa6,_0x475121,_0x108ab7]);return{'selection':_0x51a78b,'updateShapeData':_0x3097ce=>{const _0x53572a=_0x31e07d;_0x51a78b&&C(_0x27faa6,_0x51a78b[_0x53572a(0x2de)],_0x51a78b[_0x53572a(0x365)],_0x51a78b[_0x53572a(0x453)],{'oldShapeData':_0x51a78b[_0x53572a(0x42e)]},_0x3097ce);}};}function Ae(){const _0x4dd123=_0x1d5b92;let {selection:_0x412795,updateShapeData:_0x157854}=ke();return _0x412795?(0x0,p['jsx'])(e[_0x4dd123(0x47c)],{'shapeData':_0x412795[_0x4dd123(0x42e)],'shapeType':_0x412795[_0x4dd123(0x3df)],'onUpdateShapeData':_0x157854}):null;}function je(){const _0x560e65=_0x1d5b92;let _0x76b70c=(0x0,t[_0x560e65(0x302)])(a[_0x560e65(0x393)]),_0x456931=(0x0,t[_0x560e65(0x302)])(a[_0x560e65(0x2d0)]),{selection:_0xc68d2}=ke();return _0xc68d2?(0x0,p[_0x560e65(0x1ee)])(e[_0x560e65(0x336)],{'type':(0x0,r[_0x560e65(0x16e)])(_0xc68d2['shapeData']),'ariaLabel':_0x456931['t'](_0x560e65(0x2d7)),'activePresetId':(0x0,r[_0x560e65(0x14c)])(_0xc68d2[_0x560e65(0x42e)]),'onSelect':_0x5022b3=>_0x76b70c[_0x560e65(0x37c)](se['id'],{'presetId':_0x5022b3})}):null;}function Me(){const _0x34532e=_0x1d5b92;let {selection:_0x5290cd,updateShapeData:_0x5a1bcd}=ke();return _0x5290cd?(0x0,p[_0x34532e(0x1ee)])(e[_0x34532e(0x1fb)],{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x5290cd['shapeData'],'onUpdateShapeData':_0x5a1bcd}):null;}function Ne(){const _0x3c1e59=_0x1d5b92;var _0x1220a3;let {selection:_0x31278d,updateShapeData:_0x4d2203}=ke(),_0x24a1b2=(0x0,e[_0x3c1e59(0x1de)])({'hostType':a[_0x3c1e59(0x46e)]['UNIVER_SHEET'],'unitId':(_0x31278d==null?void 0x0:_0x31278d[_0x3c1e59(0x2de)])??'','subUnitId':(_0x31278d==null?void 0x0:_0x31278d['subUnitId'])??'','shapeId':(_0x31278d==null?void 0x0:_0x31278d[_0x3c1e59(0x453)])??'','shapeData':_0x31278d==null?void 0x0:_0x31278d['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x3c1e59(0x2a4),'onUpdateBinding':_0xa192e3=>_0x4d2203({'formulaBinding':_0xa192e3})}),_0x4703f4=((_0x1220a3=_0x24a1b2[_0x3c1e59(0x44e)])==null?void 0x0:_0x1220a3[_0x3c1e59(0x289)](_0x590748=>_0x590748[_0x3c1e59(0x271)])[_0x3c1e59(0x493)](_0x59ba2d=>_0x59ba2d[_0x3c1e59(0x1c6)]!==!0x1))??[];return _0x31278d!=null&&_0x31278d[_0x3c1e59(0x42e)][_0x3c1e59(0x42d)]?(0x0,p[_0x3c1e59(0x1ee)])(e[_0x3c1e59(0x1fe)],{'actions':_0x4703f4,'panel':_0x24a1b2['panel']}):null;}const Pe='sheets-shape-ui.ribbon.shape-format.style-control',Fe=_0x1d5b92(0x43c),Ie='sheets-shape-ui.ribbon.shape-format.formula-control',Le='sheets-shape-ui.ribbon.shape-format.arrange-forward',Re=_0x1d5b92(0x181),ze=_0x1d5b92(0x313),Be=_0x1d5b92(0x360);function Ve(_0x44d6f6){const _0x17a10f=_0x1d5b92;let _0x45a4b3=_0x44d6f6[_0x17a10f(0x423)](a['ICommandService']),_0x16e06d=_0x44d6f6[_0x17a10f(0x423)](s[_0x17a10f(0x366)]),_0x4bfca8=_0x44d6f6[_0x17a10f(0x423)](i[_0x17a10f(0x188)]);return new u[(_0x17a10f(0x426))](_0x12c687=>{const _0x495174=_0x17a10f;let _0x38ff81=()=>{const _0x3fe63d=_0x128e;let _0x487384=V(_0x44d6f6),_0x23244f=_0x487384?_0x4bfca8[_0x3fe63d(0x18d)](_0x487384['unitId'],_0x487384[_0x3fe63d(0x365)],_0x487384[_0x3fe63d(0x453)]):null;_0x12c687['next'](_0x23244f?(0x0,r['resolveActiveShapeQuickStylePresetId'])(_0x23244f)??'':'');},_0x4ad752=_0x16e06d['focus$'][_0x495174(0x243)](_0x38ff81),_0x4f37b9=_0x45a4b3['onCommandExecuted'](_0x597f43=>{_0x597f43['id']===i['UpdateSheetsShapeDataMutation']['id']&&_0x38ff81();});return _0x38ff81(),()=>{const _0x4b2149=_0x495174;_0x4ad752[_0x4b2149(0x3d9)](),_0x4f37b9[_0x4b2149(0x1f9)]();};});}function V(_0x1601c4){const _0x5a0e58=_0x1d5b92;var _0xdcda8b;let _0x5e54c3=_0x1601c4['get'](s['IDrawingManagerService'])[_0x5a0e58(0x16b)]();return _0x5e54c3[_0x5a0e58(0x190)]===0x1&&((_0xdcda8b=_0x5e54c3[0x0])==null?void 0x0:_0xdcda8b[_0x5a0e58(0x144)])===a['DrawingTypeEnum'][_0x5a0e58(0x3e8)]?_0x5e54c3[0x0]:null;}function He(_0x1d7d92,_0x4b7a32=!0x1){const _0x1b8633=_0x1d5b92;let _0x5742eb=_0x1d7d92[_0x1b8633(0x423)](a[_0x1b8633(0x393)]),_0x2b6a69=_0x1d7d92[_0x1b8633(0x423)](s['IDrawingManagerService']),_0x240b67=_0x1d7d92['get'](i[_0x1b8633(0x188)]);return new u['Observable'](_0x2b31f1=>{const _0x5403c4=_0x1b8633;let _0x436531=()=>{const _0x26a11b=_0x128e;let _0xa50a78=V(_0x1d7d92);if(!_0xa50a78){_0x2b31f1[_0x26a11b(0x27a)](!0x0);return;}let _0x2025d3=_0x240b67[_0x26a11b(0x18d)](_0xa50a78[_0x26a11b(0x2de)],_0xa50a78[_0x26a11b(0x365)],_0xa50a78[_0x26a11b(0x453)]);_0x2b31f1[_0x26a11b(0x27a)](!_0x2025d3||_0x4b7a32&&_0x2025d3[_0x26a11b(0x42d)]==null);},_0x1a380c=_0x2b6a69[_0x5403c4(0x1c2)][_0x5403c4(0x243)](_0x436531),_0x18d35d=_0x5742eb[_0x5403c4(0x124)](_0x25b71c=>{const _0x1c7a95=_0x5403c4;_0x25b71c['id']===i[_0x1c7a95(0x443)]['id']&&_0x436531();});return _0x436531(),()=>{const _0x1410e9=_0x5403c4;_0x1a380c['unsubscribe'](),_0x18d35d[_0x1410e9(0x1f9)]();};});}function Ue(_0x5cbac0){const _0x18c763=_0x1d5b92;let _0x1f918e=_0x5cbac0[_0x18c763(0x423)](s[_0x18c763(0x366)]),_0x287530=_0x5cbac0[_0x18c763(0x423)](i[_0x18c763(0x188)]);return _0x1f918e[_0x18c763(0x1c2)][_0x18c763(0x35a)]((0x0,u['startWith'])(_0x1f918e[_0x18c763(0x16b)]()),(0x0,u[_0x18c763(0x2e7)])(()=>{const _0xdda636=_0x18c763;let _0x5376a7=V(_0x5cbac0),_0x191ad0=_0x5376a7?_0x287530[_0xdda636(0x367)](_0x5376a7[_0xdda636(0x2de)],_0x5376a7[_0xdda636(0x365)],_0x5376a7[_0xdda636(0x453)]):void 0x0;return _0x191ad0===void 0x0||(0x0,n[_0xdda636(0x3ba)])(_0x191ad0);}));}function We(_0x36b98d){const _0x4987d6=_0x1d5b92;return{'id':se['id'],'type':t[_0x4987d6(0x194)][_0x4987d6(0x278)],'icon':'PaintIcon','title':_0x4987d6(0x2d8),'tooltip':_0x4987d6(0x2d8),'selections':[{'label':{'name':Te,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ve(_0x36b98d),'hidden$':He(_0x36b98d)};}function Ge(_0x109850){const _0x3345a3=_0x1d5b92;return{'id':ce['id'],'type':t[_0x3345a3(0x194)][_0x3345a3(0x278)],'icon':_0x3345a3(0x45c),'title':_0x3345a3(0x16c),'tooltip':_0x3345a3(0x16c),'slot':!0x0,'selections':[{'label':{'name':e['SHAPE_CHANGE_PICKER_COMPONENT'],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ue(_0x109850)};}function Ke(_0x1a627a,_0x26dc96,_0x3006ef=!0x1){const _0xb33b84=_0x1d5b92;return _0x22002e=>({'id':_0x1a627a,'type':t[_0xb33b84(0x194)][_0xb33b84(0x354)],'label':{'name':_0x26dc96,'hoverable':!0x1,'selectable':!0x1},'hidden$':He(_0x22002e,_0x3006ef)});}const qe=Ke(Pe,Ee),Je=Ke(Fe,De),Ye=Ke(Ie,Oe,!0x0);function Xe(_0x315ef3,_0x313b6f,_0x3dd7ef,_0x16bab4){const _0x57b07e=_0x1d5b92;return _0x347e99=>({'id':_0x315ef3,'commandId':m[_0x57b07e(0x1f2)]['id'],'type':t[_0x57b07e(0x194)][_0x57b07e(0x354)],'icon':_0x3dd7ef,'title':_0x16bab4,'tooltip':_0x16bab4,'hidden$':He(_0x347e99),'params':()=>{const _0x23d411=_0x57b07e;let _0x4f98f2=V(_0x347e99);return _0x4f98f2?{'unitId':_0x4f98f2['unitId'],'subUnitId':_0x4f98f2[_0x23d411(0x365)],'drawingIds':[_0x4f98f2[_0x23d411(0x453)]],'arrangeType':_0x313b6f}:void 0x0;}});}const Ze=Xe(Le,a[_0x1d5b92(0x26e)][_0x1d5b92(0x31b)],_0x1d5b92(0x198),'shape-editor-ui.arrange.forward'),Qe=Xe(Re,a[_0x1d5b92(0x26e)][_0x1d5b92(0x21c)],_0x1d5b92(0x439),_0x1d5b92(0x172)),$e=Xe(ze,a[_0x1d5b92(0x26e)][_0x1d5b92(0x178)],'TopmostIcon',_0x1d5b92(0x36c)),et=Xe(Be,a['ArrangeTypeEnum'][_0x1d5b92(0x432)],_0x1d5b92(0x127),'shape-editor-ui.arrange.back');function tt(_0x33c589){const _0x36df72=_0x1d5b92;return{'id':z['id'],'type':t[_0x36df72(0x194)][_0x36df72(0x354)],'icon':'ShapeFormatSettingIcon','title':_0x36df72(0x368),'tooltip':_0x36df72(0x368),'hidden$':He(_0x33c589),'params':()=>{const _0x3e379d=_0x36df72;let _0xe91837=V(_0x33c589);return _0xe91837?{'unitId':_0xe91837[_0x3e379d(0x2de)],'subUnitId':_0xe91837['subUnitId'],'drawingId':_0xe91837[_0x3e379d(0x453)]}:void 0x0;}};}const nt={[t['MenuManagerPosition']['RIBBON']]:{[R]:{'order':0x64,'title':_0x1d5b92(0x368),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[se['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':We},[ce['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ge}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[Pe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qe}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[Fe]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Je}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ye]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':Ce},[be]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':we},[Le]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ze},[Re]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Qe},[ze]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':$e},[Be]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':et}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Ie]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ye}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[z['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':tt},[e[_0x1d5b92(0x23f)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x1d5b92(0x3c1)]}}}}},rt={[t[_0x1d5b92(0x159)][_0x1d5b92(0x381)]]:{[P['id']]:{'order':0x4,'menuItemFactory':_e}}},it={...rt,[t[_0x1d5b92(0x159)][_0x1d5b92(0x40c)]]:{[ae['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ve}},[t[_0x1d5b92(0x346)][_0x1d5b92(0x3e7)]]:{[t[_0x1d5b92(0x494)]['OTHERS']]:{[ye]:{'order':0x4,'menuItemFactory':Ce},[be]:{'order':0x5,'menuItemFactory':we}}}};var at=_0x1d5b92(0x476),ot=_0x1d5b92(0x39e);const st={'id':_0x1d5b92(0x242),'type':a[_0x1d5b92(0x27e)][_0x1d5b92(0x47f)],'handler'(_0x144d8f,_0x4c28bb){const _0x247ad8=_0x1d5b92;return _0x4c28bb?(_0x144d8f['get'](e['MobileShapeEditorService'])['open'](_0x4c28bb['mode'],{'hostType':a['UniverInstanceType'][_0x247ad8(0x3f2)],'shapeId':_0x4c28bb[_0x247ad8(0x453)],'subUnitId':_0x4c28bb[_0x247ad8(0x365)],'unitId':_0x4c28bb[_0x247ad8(0x2de)]}),!0x0):!0x1;}},ct=_0x1d5b92(0x3d1),lt={};let ut=class extends a['Disposable']{constructor(_0x506f24,_0x103268,_0x397bb1,_0x47757f,_0x51488e){const _0x226f12=_0x1d5b92;super(),this['_context']=_0x506f24,this[_0x226f12(0x22b)]=_0x103268,this[_0x226f12(0x3ee)]=_0x397bb1,this[_0x226f12(0x260)]=_0x47757f,this['_imageShapeClipController']=_0x51488e,E(this,_0x226f12(0x39d),null),E(this,_0x226f12(0x1f4),null),E(this,_0x226f12(0x387),null),E(this,_0x226f12(0x2b8),void 0x0),E(this,'_shapes',[]),E(this,'_baseLeft',0x0),E(this,_0x226f12(0x130),0x0),E(this,'_baseWidth',0x0),E(this,_0x226f12(0x215),0x0),E(this,_0x226f12(0x2e3),!0x1),E(this,'_activeAdjustInfo',void 0x0),E(this,_0x226f12(0x132),void 0x0),E(this,_0x226f12(0x166),void 0x0),E(this,_0x226f12(0x3bd),void 0x0),E(this,_0x226f12(0x2e1),!0x1),this[_0x226f12(0x3db)](),this[_0x226f12(0x2f4)]();}[_0x1d5b92(0x41f)](){const _0x4408cd=_0x1d5b92;this[_0x4408cd(0x283)]();}[_0x1d5b92(0x176)](){const _0x2339f3=_0x1d5b92;this[_0x2339f3(0x283)](),this[_0x2339f3(0x186)](!0x0);}[_0x1d5b92(0x31f)](_0x4df151,_0x985ed0,_0x588bc4,_0x5e0486){const _0x28c819=_0x1d5b92;let _0x560a02=_0x4df151;if(_0x560a02!==n[_0x28c819(0x137)]['None']&&_0x4df151!==_0x28c819(0x2c2))try{let _0x36028d=new n[(_0x28c819(0x450))](_0x560a02,_0x28c819(0x3bf)+_0x4df151);return _0x5e0486&&_0x36028d[_0x28c819(0x20d)]({'adjustValues':_0x5e0486},!0x0),_0x36028d[_0x28c819(0x29d)]({'width':_0x985ed0,'height':_0x588bc4}),_0x36028d;}catch{return;}}[_0x1d5b92(0x11d)](_0x1b7508,_0x142475,_0x502828){const _0x53dbc0=_0x1d5b92;let _0x1845ac={'unitId':_0x1b7508,'subUnitId':_0x142475,'drawingId':_0x502828},_0x48068e=this[_0x53dbc0(0x22b)]['getDrawingByParam'](_0x1845ac);if(_0x48068e&&_0x48068e[_0x53dbc0(0x144)]===a['DrawingTypeEnum'][_0x53dbc0(0x437)])return _0x48068e;}[_0x1d5b92(0x3a1)](_0x37dda4,_0x56e86d,_0x5cb94f){const _0x47c4ec=_0x1d5b92;let _0x392b73=this[_0x47c4ec(0x3ee)]['getRenderUnitById'](_0x37dda4);if(!_0x392b73)return;let {scene:_0x473416}=_0x392b73,_0x2e4a9e=(0x0,s[_0x47c4ec(0x39a)])({'unitId':_0x37dda4,'subUnitId':_0x56e86d,'drawingId':_0x5cb94f}),_0x442429=_0x473416[_0x47c4ec(0x328)](_0x2e4a9e);if(_0x442429 instanceof c[_0x47c4ec(0x22c)]){let _0x54525b=_0x442429[_0x47c4ec(0x3bb)];if(_0x54525b)return{'prstGeom':_0x54525b,'adjustValues':_0x442429['prstGeomAdjValues']};}}[_0x1d5b92(0x186)](_0x555e7b=!0x1){const _0xee2f5b=_0x1d5b92;if(!this[_0xee2f5b(0x1f4)]||!this['_subUnitId']||!this[_0xee2f5b(0x39d)])return;let _0x547b47=this['_renderManagerService'][_0xee2f5b(0x26f)](this[_0xee2f5b(0x1f4)]);if(!_0x547b47||!_0x547b47[_0xee2f5b(0x425)](l[_0xee2f5b(0x191)])[_0xee2f5b(0x27f)]())return;let {scene:_0x5519b9}=_0x547b47,_0x7b8281=this[_0xee2f5b(0x11d)](this['_unitId'],this['_subUnitId'],this[_0xee2f5b(0x39d)]);if(!_0x7b8281)return;let {transform:_0x2b5ba3}=_0x7b8281;if(!_0x2b5ba3)return;let {left:_0x8aa21e,top:_0x5b41b0,width:_0x3ff434,height:_0x364810,flipX:_0x2b9b7e,flipY:_0x5a4a2e,angle:_0x334afd=0x0}=_0x2b5ba3;if(_0x8aa21e===void 0x0||_0x5b41b0===void 0x0)return;let _0x22e1fd=this[_0xee2f5b(0x3a1)](this['_unitId'],this[_0xee2f5b(0x387)],this[_0xee2f5b(0x39d)]);if(!_0x22e1fd)return;if(_0x555e7b){let _0x147fcc=this[_0xee2f5b(0x31f)](_0x22e1fd['prstGeom'],_0x3ff434||0x0,_0x364810||0x0,_0x22e1fd[_0xee2f5b(0x1ce)]);if(!_0x147fcc)return;this[_0xee2f5b(0x2b8)]=_0x147fcc[_0xee2f5b(0x48d)]();}let _0x3b6988=this[_0xee2f5b(0x2b8)];if(_0x3b6988&&_0x3b6988[_0xee2f5b(0x190)]!==0x0)for(let _0x52ac5b=0x0;_0x52ac5b<_0x3b6988[_0xee2f5b(0x190)];_0x52ac5b++){let _0x10dba8=_0x3b6988[_0x52ac5b],_0x56f4f7=_0x10dba8['x'],_0x51ee74=_0x10dba8['y'];if(_0x2b9b7e&&(_0x56f4f7=(_0x3ff434||0x0)-_0x56f4f7),_0x5a4a2e&&(_0x51ee74=(_0x364810||0x0)-_0x51ee74),_0x334afd!==0x0){let _0x304dbc=(_0x3ff434||0x0)/0x2,_0x2f0418=(_0x364810||0x0)/0x2,_0x16a32d=_0x334afd*Math['PI']/0xb4,_0x1f2814=Math[_0xee2f5b(0x3e1)](_0x16a32d),_0x4f99be=Math[_0xee2f5b(0x210)](_0x16a32d),_0x29c69e=_0x56f4f7-_0x304dbc,_0x51d0f9=_0x51ee74-_0x2f0418;_0x56f4f7=_0x304dbc+(_0x29c69e*_0x1f2814-_0x51d0f9*_0x4f99be),_0x51ee74=_0x2f0418+(_0x29c69e*_0x4f99be+_0x51d0f9*_0x1f2814);}let _0x1a0671={'x':_0x56f4f7,'y':_0x51ee74,'adjName':_0x10dba8[_0xee2f5b(0x3e0)]};this[_0xee2f5b(0x421)](_0x5519b9,_0x1a0671,_0x1a0671['adjName'],_0x8aa21e,_0x5b41b0,this['_unitId'],this[_0xee2f5b(0x387)]);}}['_addControl'](_0x118742,_0x1d666f,_0x4f8eeb,_0x1adaa5,_0x2ba18f,_0x6908cc,_0x13fc26){const _0x574c6e=_0x1d5b92;if(!this['_activeImageId'])return;let _0x45bb41=_0x574c6e(0x380)+this[_0x574c6e(0x39d)]+'-'+_0x4f8eeb,_0x28e2c9=_0x118742[_0x574c6e(0x19b)](_0x45bb41);if(_0x28e2c9){_0x28e2c9[_0x574c6e(0x1d5)]({'left':_0x1d666f['x']+_0x1adaa5-n['ShapeDefaultConfig'][_0x574c6e(0x39c)],'top':_0x1d666f['y']+_0x2ba18f-n[_0x574c6e(0x499)][_0x574c6e(0x39c)]});return;}let _0x3ccec2=new O(_0x45bb41,{'left':_0x1d666f['x']+_0x1adaa5-n['ShapeDefaultConfig'][_0x574c6e(0x39c)],'top':_0x1d666f['y']+_0x2ba18f-n['ShapeDefaultConfig'][_0x574c6e(0x39c)],'adjName':_0x4f8eeb,'shapeId':this[_0x574c6e(0x39d)],'unitId':_0x6908cc,'subUnitId':_0x13fc26,'width':n[_0x574c6e(0x499)]['adjHandleSize']+0x8,'height':n[_0x574c6e(0x499)]['adjHandleSize']+0x8,'zIndex':c[_0x574c6e(0x389)]+0x1,'evented':!0x0});this[_0x574c6e(0x279)][_0x574c6e(0x1fc)](_0x3ccec2),this[_0x574c6e(0x3fa)](_0x3ccec2,_0x118742,_0x4f8eeb),_0x118742[_0x574c6e(0x143)](_0x3ccec2,c[_0x574c6e(0x389)]+0x1);}[_0x1d5b92(0x283)](){const _0x3ca039=_0x1d5b92;this['_shapes']['length']!==0x0&&(this[_0x3ca039(0x279)]['forEach'](_0x5c088c=>_0x5c088c[_0x3ca039(0x1f9)]()),this['_shapes']=[]);}[_0x1d5b92(0x192)](_0x24e75b,_0x36344c){const _0x15b1bb=_0x1d5b92;var _0x52476f;let _0x1c5a9a={'x':0x0,'y':0x0},_0x26f3f9=this['_renderManagerService'][_0x15b1bb(0x26f)](_0x24e75b);if(!_0x26f3f9||!_0x26f3f9['with'](l[_0x15b1bb(0x191)])[_0x15b1bb(0x442)](_0x36344c))return _0x1c5a9a;let _0x426cef=_0x26f3f9[_0x15b1bb(0x425)](l[_0x15b1bb(0x155)]),_0x3f7011=_0x426cef==null?void 0x0:_0x426cef[_0x15b1bb(0x2cc)]();if(!_0x3f7011)return _0x1c5a9a;let _0x2f4310=(_0x52476f=this[_0x15b1bb(0x260)][_0x15b1bb(0x18f)](_0x24e75b))==null?void 0x0:_0x52476f[_0x15b1bb(0x185)](_0x36344c);if(!_0x2f4310)return _0x1c5a9a;let _0x520860=(0x0,l[_0x15b1bb(0x120)])(_0x3f7011[_0x15b1bb(0x2a3)],_0x3f7011[_0x15b1bb(0x207)],_0x26f3f9[_0x15b1bb(0x418)],_0x2f4310);return _0x520860?{'x':_0x520860[_0x15b1bb(0x456)],'y':_0x520860[_0x15b1bb(0x330)]}:_0x1c5a9a;}['_getZoomRatio'](_0x558ccf,_0x5a0927){const _0xb9f3d2=_0x1d5b92;var _0x32c42c;let _0x39f92b=(_0x32c42c=this[_0xb9f3d2(0x260)][_0xb9f3d2(0x18f)](_0x558ccf))==null?void 0x0:_0x32c42c[_0xb9f3d2(0x185)](_0x5a0927);return(_0x39f92b==null?void 0x0:_0x39f92b[_0xb9f3d2(0x331)]())??0x1;}[_0x1d5b92(0x3fa)](_0xa46b4a,_0xece272,_0x587c85){const _0x288d51=_0x1d5b92;this[_0x288d51(0x2f1)]((0x0,a[_0x288d51(0x303)])(_0xa46b4a[_0x288d51(0x329)][_0x288d51(0x1e4)]((_0x33d414,_0x211f66)=>{const _0x1fdc21=_0x288d51;var _0x374fa4,_0x378beb,_0x5be1fa;let {unitId:_0x419138,subUnitId:_0x2e878d,drawingId:_0x443a39}=_0xa46b4a[_0x1fdc21(0x267)](),_0x3ca018=this[_0x1fdc21(0x11d)](_0x419138,_0x2e878d,_0x443a39);if(!(_0x3ca018!=null&&_0x3ca018[_0x1fdc21(0x136)]))return;let {left:_0x4df474,top:_0x46870f,width:_0x5a844c,height:_0x2056ac}=_0x3ca018[_0x1fdc21(0x136)];this[_0x1fdc21(0x37e)]=_0x4df474||0x0,this[_0x1fdc21(0x130)]=_0x46870f||0x0,this[_0x1fdc21(0x148)]=_0x5a844c||0x0,this[_0x1fdc21(0x215)]=_0x2056ac||0x0;let _0x5e8a84=!!((_0x374fa4=_0x3ca018[_0x1fdc21(0x136)])!=null&&_0x374fa4[_0x1fdc21(0x478)]),_0x5e98f3=!!((_0x378beb=_0x3ca018['transform'])!=null&&_0x378beb[_0x1fdc21(0x2b1)]),_0x22aed9=((_0x5be1fa=_0x3ca018[_0x1fdc21(0x136)])==null?void 0x0:_0x5be1fa[_0x1fdc21(0x1c9)])||0x0,_0x5f25d2=this[_0x1fdc21(0x3a1)](_0x419138,_0x2e878d,_0x443a39);if(!_0x5f25d2)return;let _0x224521=this[_0x1fdc21(0x31f)](_0x5f25d2[_0x1fdc21(0x3bb)],this[_0x1fdc21(0x148)],this[_0x1fdc21(0x215)],_0x5f25d2[_0x1fdc21(0x1ce)]);if(!_0x224521||(this[_0x1fdc21(0x132)]=_0x224521,this[_0x1fdc21(0x2fd)]=_0x224521[_0x1fdc21(0x49a)](_0x587c85),!this[_0x1fdc21(0x2fd)]))return;this[_0x1fdc21(0x2e3)]=!0x0,_0xece272[_0x1fdc21(0x43d)]();let _0x2ef675=_0x5f25d2[_0x1fdc21(0x3bb)];this[_0x1fdc21(0x166)]=_0xece272[_0x1fdc21(0x1d9)]['subscribeEvent']((_0x5db2d7,_0x10f06d)=>{const _0x36adb9=_0x1fdc21;if(!this['_isStartAdjusting'])return;let {offsetX:_0x2f2835,offsetY:_0x18d2e9}=_0x5db2d7,_0xfd3386=this[_0x36adb9(0x2fd)];if(!this[_0x36adb9(0x132)]||!_0xfd3386)return;_0xece272['disableObjectsEvent'](),_0xece272[_0x36adb9(0x2e5)](c[_0x36adb9(0x1a2)][_0x36adb9(0x264)]);let _0x514bac={'left':0x0,'top':0x0,'width':this[_0x36adb9(0x148)],'height':this[_0x36adb9(0x215)]},_0x1cced7=this[_0x36adb9(0x192)](_0x419138,_0x2e878d),_0x1cfac1=this[_0x36adb9(0x3a2)](_0x419138,_0x2e878d),_0x298759=_0x2f2835/_0x1cfac1+_0x1cced7['x']-this[_0x36adb9(0x37e)],_0x3d3d7c=_0x18d2e9/_0x1cfac1+_0x1cced7['y']-this[_0x36adb9(0x130)];if(_0x22aed9!==0x0){let _0x75ad22=this['_baseWidth']/0x2,_0x405d1f=this[_0x36adb9(0x215)]/0x2,_0xfa91ae=_0x22aed9*Math['PI']/0xb4,_0x5b4c9d=Math[_0x36adb9(0x3e1)](_0xfa91ae),_0x5ac5bf=Math[_0x36adb9(0x210)](_0xfa91ae),_0x551c3e=_0x298759-_0x75ad22,_0x5ec9ad=_0x3d3d7c-_0x405d1f;_0x298759=_0x75ad22+(_0x551c3e*_0x5b4c9d+_0x5ec9ad*_0x5ac5bf),_0x3d3d7c=_0x405d1f+(-_0x551c3e*_0x5ac5bf+_0x5ec9ad*_0x5b4c9d);}_0x5e8a84&&(_0x298759=this[_0x36adb9(0x148)]-_0x298759),_0x5e98f3&&(_0x3d3d7c=this[_0x36adb9(0x215)]-_0x3d3d7c);let _0x7d0606=this[_0x36adb9(0x132)][_0x36adb9(0x282)](_0x514bac,{'x':_0x298759,'y':_0x3d3d7c},_0xfd3386,_0x5e8a84,_0x5e98f3);if(Object[_0x36adb9(0x2f5)](_0x7d0606)[_0x36adb9(0x190)]!==0x0){for(let [_0x5e0795,_0x478286]of Object[_0x36adb9(0x345)](_0x7d0606))this['_activeShapeModel'][_0x36adb9(0x3de)](_0x5e0795,_0x478286);this[_0x36adb9(0x132)][_0x36adb9(0x29d)]({'width':this[_0x36adb9(0x148)],'height':this[_0x36adb9(0x215)]}),this[_0x36adb9(0x2d5)](_0x419138,_0x2e878d,_0x443a39,_0x7d0606),this[_0x36adb9(0x2b8)]=this['_activeShapeModel'][_0x36adb9(0x48d)](),this[_0x36adb9(0x186)](),_0x10f06d[_0x36adb9(0x37b)]();}}),this[_0x1fdc21(0x3bd)]=_0xece272['onPointerUp$'][_0x1fdc21(0x1e4)]((_0x240b50,_0x358bac)=>{const _0x13b11f=_0x1fdc21;if(this[_0x13b11f(0x166)][_0x13b11f(0x3d9)](),this[_0x13b11f(0x3bd)][_0x13b11f(0x3d9)](),_0xece272[_0x13b11f(0x2be)](),this[_0x13b11f(0x132)]){let _0x20d7a3=this['_activeShapeModel'][_0x13b11f(0x184)](),_0x206229={};for(let _0x1fc2a2 of _0x20d7a3){let _0x31682b=this[_0x13b11f(0x132)][_0x13b11f(0x419)](_0x1fc2a2);_0x31682b!==void 0x0&&(_0x206229[_0x1fc2a2]=_0x31682b);}this[_0x13b11f(0x417)][_0x13b11f(0x316)](_0x419138,_0x2e878d,_0x443a39,_0x2ef675,_0x206229);}this[_0x13b11f(0x2fd)]=void 0x0,this[_0x13b11f(0x132)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x358bac[_0x13b11f(0x37b)](),_0xece272[_0x13b11f(0x28f)]();}),_0x211f66['stopPropagation']();})));}[_0x1d5b92(0x2d5)](_0x552602,_0x11429c,_0x35d1d6,_0x23b644){const _0x53b649=_0x1d5b92;let _0x38b4e1=this['_renderManagerService'][_0x53b649(0x26f)](_0x552602);if(!_0x38b4e1)return;let {scene:_0x114d8c}=_0x38b4e1,_0x4114f6=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x552602,'subUnitId':_0x11429c,'drawingId':_0x35d1d6}),_0x28dd50=_0x114d8c[_0x53b649(0x328)](_0x4114f6);if(_0x28dd50 instanceof c[_0x53b649(0x22c)]){let _0x5e782f=_0x28dd50['prstGeomAdjValues']??{};_0x28dd50[_0x53b649(0x11f)]({..._0x5e782f,..._0x23b644}),_0x28dd50[_0x53b649(0x2a9)](!0x0);}}['_registerMoveHandler'](){const _0x5cc29c=_0x1d5b92;let _0x57e26=this[_0x5cc29c(0x260)][_0x5cc29c(0x25e)](a[_0x5cc29c(0x46e)][_0x5cc29c(0x3f2)]);this[_0x5cc29c(0x2f1)](_0x57e26['pipe']((0x0,u[_0x5cc29c(0x2df)])(_0x120bc6=>_0x120bc6?_0x120bc6[_0x5cc29c(0x299)][_0x5cc29c(0x35a)]((0x0,u[_0x5cc29c(0x2df)])(_0x3eaf62=>{const _0x5331ea=_0x5cc29c;if(!_0x3eaf62)return u[_0x5331ea(0x40b)];let _0x3d9cf3=_0x120bc6['getUnitId'](),_0x3069e9=this[_0x5331ea(0x3ee)][_0x5331ea(0x26f)](_0x3d9cf3),_0x5f3164=_0x3069e9==null?void 0x0:_0x3069e9[_0x5331ea(0x418)];return _0x5f3164?(0x0,u['of'])(_0x5f3164):u[_0x5331ea(0x40b)];})):u[_0x5cc29c(0x40b)]))[_0x5cc29c(0x243)](_0x5aab25=>{const _0x204bca=_0x5cc29c;let _0x2c6b5a=_0x5aab25['getTransformerByCreate']();this[_0x204bca(0x2f1)](_0x5aab25['onPointerMove$'][_0x204bca(0x1e4)](()=>{const _0x129581=_0x204bca;this[_0x129581(0x2e1)]&&this[_0x129581(0x283)]();})),this['disposeWithMe'](_0x2c6b5a[_0x204bca(0x161)][_0x204bca(0x243)](_0x210810=>{const _0x50da40=_0x204bca;let {objects:_0x3e41eb}=_0x210810;if(this[_0x50da40(0x186)](),_0x3e41eb!==null&&_0x3e41eb[_0x50da40(0x3a3)]===0x1){let _0x2d8dad=_0x3e41eb[_0x50da40(0x45a)]()['next']()['value'];_0x2d8dad instanceof c[_0x50da40(0x22c)]&&_0x2d8dad['prstGeom']&&(this[_0x50da40(0x2e1)]=!0x0);}})),this['disposeWithMe'](_0x2c6b5a[_0x204bca(0x34a)][_0x204bca(0x243)](()=>{const _0x947bab=_0x204bca;this[_0x947bab(0x2e1)]&&this[_0x947bab(0x283)]();})),this[_0x204bca(0x2f1)](_0x5aab25['onPointerUp$'][_0x204bca(0x1e4)](()=>{const _0x4681e3=_0x204bca;this['_isImagePointerDown']&&(this[_0x4681e3(0x2e1)]=!0x1,this[_0x4681e3(0x186)]());})),this[_0x204bca(0x2f1)](_0x2c6b5a['changeEnd$'][_0x204bca(0x243)](()=>{const _0xd950b1=_0x204bca;if(this[_0xd950b1(0x1f4)]&&this[_0xd950b1(0x387)]&&this[_0xd950b1(0x39d)]){let _0x50ccbd=this[_0xd950b1(0x3a1)](this['_unitId'],this[_0xd950b1(0x387)],this['_activeImageId']);if(_0x50ccbd){var _0x5f30f2,_0x257d85;let _0x2325e6=this[_0xd950b1(0x11d)](this[_0xd950b1(0x1f4)],this[_0xd950b1(0x387)],this[_0xd950b1(0x39d)]),_0x459e30=(_0x2325e6==null||(_0x5f30f2=_0x2325e6[_0xd950b1(0x136)])==null?void 0x0:_0x5f30f2[_0xd950b1(0x2ff)])||0x0,_0x2f7d29=(_0x2325e6==null||(_0x257d85=_0x2325e6[_0xd950b1(0x136)])==null?void 0x0:_0x257d85[_0xd950b1(0x2c3)])||0x0,_0x423fed=this['_getOrCreateShapeModel'](_0x50ccbd[_0xd950b1(0x3bb)],_0x459e30,_0x2f7d29,_0x50ccbd[_0xd950b1(0x1ce)]);_0x423fed&&(this['_activeAdjustPointList']=_0x423fed[_0xd950b1(0x48d)](),this[_0xd950b1(0x283)](),this['_createControls'](!0x0));}}}));}));}[_0x1d5b92(0x3db)](){const _0x5d4886=_0x1d5b92;this[_0x5d4886(0x2f1)](this[_0x5d4886(0x22b)][_0x5d4886(0x1c2)][_0x5d4886(0x243)](_0x5f0013=>{const _0x41641f=_0x5d4886;if(_0x5f0013[_0x41641f(0x190)]===0x1){let _0x219aa3=_0x5f0013[0x0];if(_0x219aa3[_0x41641f(0x144)]===a['DrawingTypeEnum'][_0x41641f(0x437)]){let {unitId:_0x5bb6b6,subUnitId:_0x3d02ba,drawingId:_0x2898c4}=_0x219aa3,_0x301689=this['_getImagePrstGeom'](_0x5bb6b6,_0x3d02ba,_0x2898c4);if(_0x301689){var _0x961d3b,_0x33a3cb;this[_0x41641f(0x39d)]=_0x2898c4,this[_0x41641f(0x1f4)]=_0x5bb6b6,this['_subUnitId']=_0x3d02ba;let _0x326175=this[_0x41641f(0x11d)](_0x5bb6b6,_0x3d02ba,_0x2898c4),_0x418a84=(_0x326175==null||(_0x961d3b=_0x326175[_0x41641f(0x136)])==null?void 0x0:_0x961d3b[_0x41641f(0x2ff)])||0x0,_0x15d4db=(_0x326175==null||(_0x33a3cb=_0x326175[_0x41641f(0x136)])==null?void 0x0:_0x33a3cb[_0x41641f(0x2c3)])||0x0,_0x1f92d4=this[_0x41641f(0x31f)](_0x301689[_0x41641f(0x3bb)],_0x418a84,_0x15d4db,_0x301689[_0x41641f(0x1ce)]);_0x1f92d4&&(this[_0x41641f(0x2b8)]=_0x1f92d4[_0x41641f(0x48d)]()),this[_0x41641f(0x283)](),this['_createControls'](!0x0);}else this[_0x41641f(0x147)]();}else this['_resetState']();}else this[_0x41641f(0x147)]();})),this[_0x5d4886(0x2f1)](this[_0x5d4886(0x22b)]['update$'][_0x5d4886(0x243)](_0x272228=>{const _0x37caad=_0x5d4886;if(_0x272228['length']===0x1){let _0x3efe14=_0x272228[0x0],_0x18439d=this[_0x37caad(0x22b)]['getDrawingByParam'](_0x3efe14);(_0x18439d==null?void 0x0:_0x18439d[_0x37caad(0x144)])===a[_0x37caad(0x385)][_0x37caad(0x437)]&&this[_0x37caad(0x39d)]===_0x3efe14[_0x37caad(0x453)]&&(this[_0x37caad(0x283)](),this[_0x37caad(0x186)](!0x0));}})),this['disposeWithMe'](this[_0x5d4886(0x22b)][_0x5d4886(0x1fd)][_0x5d4886(0x243)](_0x4f085a=>{const _0xd18564=_0x5d4886;for(let _0x41f4b1 of _0x4f085a)this['_activeImageId']===_0x41f4b1[_0xd18564(0x453)]&&this[_0xd18564(0x147)]();}));}[_0x1d5b92(0x147)](){const _0x5091c9=_0x1d5b92;this[_0x5091c9(0x39d)]=null,this['_unitId']=null,this[_0x5091c9(0x387)]=null,this[_0x5091c9(0x2b8)]=void 0x0,this[_0x5091c9(0x283)]();}};ut=A([k(0x1,s['IDrawingManagerService']),k(0x2,(0x0,a[_0x1d5b92(0x466)])(c['IRenderManagerService'])),k(0x3,a[_0x1d5b92(0x3a7)]),k(0x4,(0x0,a['Inject'])(B))],ut);function dt(_0x470713){const _0x472b11=_0x1d5b92;return _0x470713[_0x472b11(0x1b6)]()||void 0x0;}function ft(_0xafabe0,_0x236d0e,_0x159a73){const _0x3f02eb=_0x1d5b92;var _0x3aabcf;return((_0x3aabcf=_0xafabe0['name'])==null?void 0x0:_0x3aabcf[_0x3f02eb(0x1b6)]())||_0x159a73['t'](_0x3f02eb(0x23a)+(0x0,e[_0x3f02eb(0x3a8)])(_0xafabe0[_0x3f02eb(0x144)]))+'\x20'+(_0x236d0e+0x1);}function pt({PanelComponent:_0x58667d=d[_0x1d5b92(0x2e9)]}){const _0x1c6f16=_0x1d5b92;var _0x5d3c10;let _0xfbb3c=(0x0,t[_0x1c6f16(0x302)])(a['LocaleService']),_0x1a9e83={'title':_0xfbb3c['t'](_0x1c6f16(0x2b6)),'empty':_0xfbb3c['t'](_0x1c6f16(0x22e)),'showAll':_0xfbb3c['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0xfbb3c['t'](_0x1c6f16(0x308)),'lockAll':_0xfbb3c['t'](_0x1c6f16(0x474)),'unlockAll':_0xfbb3c['t']('drawing-ui.objectListPanel.unlockAll'),'moveForward':_0xfbb3c['t'](_0x1c6f16(0x24b)),'moveBackward':_0xfbb3c['t'](_0x1c6f16(0x216)),'close':_0xfbb3c['t'](_0x1c6f16(0x3af)),'show':_0xfbb3c['t']('drawing-ui.objectListPanel.show'),'hide':_0xfbb3c['t'](_0x1c6f16(0x256)),'lock':_0xfbb3c['t'](_0x1c6f16(0x464)),'unlock':_0xfbb3c['t'](_0x1c6f16(0x1a8)),'lockHint':_0xfbb3c['t'](_0x1c6f16(0x428)),'unlockHint':_0xfbb3c['t'](_0x1c6f16(0x349)),'name':_0xfbb3c['t'](_0x1c6f16(0x2cd)),'nameInput':_0xfbb3c['t']('drawing-ui.objectListPanel.nameInput'),'description':_0xfbb3c['t'](_0x1c6f16(0x357)),'descriptionPlaceholder':_0xfbb3c['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0xfbb3c['t']('drawing-ui.objectListPanel.details'),'noSelection':_0xfbb3c['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0xfbb3c['t'](_0x1c6f16(0x179)),'expand':_0xfbb3c['t'](_0x1c6f16(0x375)),'collapse':_0xfbb3c['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xfbb3c['t'](_0x1c6f16(0x41b)),'search':_0xfbb3c['t'](_0x1c6f16(0x2ef)),'filterAll':_0xfbb3c['t'](_0x1c6f16(0x348)),'filterHidden':_0xfbb3c['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0xfbb3c['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0xfbb3c['t'](_0x1c6f16(0x31a)),'sectionFloating':_0xfbb3c['t'](_0x1c6f16(0x281))},_0xde29dc=(0x0,t[_0x1c6f16(0x302)])(a['ICommandService']),_0x8fb91=(0x0,t[_0x1c6f16(0x302)])(a[_0x1c6f16(0x3a7)]),_0xc86658=(0x0,t[_0x1c6f16(0x302)])(m[_0x1c6f16(0x441)]),_0x4b3d1a=(0x0,t['useDependency'])(s[_0x1c6f16(0x366)]),_0x5b9859=(0x0,t[_0x1c6f16(0x302)])(c[_0x1c6f16(0x33f)]),[,_0x7d7245]=(0x0,b[_0x1c6f16(0x495)])(_0x3a5325=>_0x3a5325+0x1,0x0),_0x336b4f=_0x8fb91[_0x1c6f16(0x482)](a[_0x1c6f16(0x46e)]['UNIVER_SHEET']),_0x30b4db=(_0x336b4f==null?void 0x0:_0x336b4f[_0x1c6f16(0x2ba)]())??'',_0x4a5c92=(_0x336b4f==null||(_0x5d3c10=_0x336b4f[_0x1c6f16(0x134)]())==null?void 0x0:_0x5d3c10['getSheetId']())??'',_0x1fa16f=(0x0,t[_0x1c6f16(0x160)])(()=>_0x4b3d1a['focus$'],_0x4b3d1a[_0x1c6f16(0x16b)](),!0x1,[_0x4b3d1a]);(0x0,b[_0x1c6f16(0x177)])(()=>{const _0x4a5310=_0x1c6f16;let _0x5c72f6=_0xde29dc[_0x4a5310(0x124)](()=>_0x7d7245());return()=>_0x5c72f6[_0x4a5310(0x1f9)]();},[_0xde29dc]);let _0x23748e=_0x30b4db&&_0x4a5c92?_0xc86658['getDrawingData'](_0x30b4db,_0x4a5c92):{},_0x36bdd1=(_0x30b4db&&_0x4a5c92?_0xc86658['getDrawingOrder'](_0x30b4db,_0x4a5c92):[])['map'](_0x4591b5=>_0x23748e[_0x4591b5])[_0x1c6f16(0x493)](_0x28d40c=>!!_0x28d40c)['reverse'](),_0x51bee6=_0x36bdd1[_0x1c6f16(0x15d)]((_0x42e611,_0x14054a)=>(_0x42e611[(0x0,d[_0x1c6f16(0x133)])(_0x14054a[_0x1c6f16(0x144)])]+=0x1,_0x42e611),{'canvas':0x0,'floating':0x0}),_0x377445={'canvas':0x0,'floating':0x0},_0x22879f=_0x36bdd1[_0x1c6f16(0x2e7)]((_0x180e30,_0x4851ed)=>{const _0x13e85d=_0x1c6f16;let _0x1e23d6=(0x0,d[_0x13e85d(0x133)])(_0x180e30['drawingType']),_0x35d227=_0x1e23d6===d[_0x13e85d(0x156)],_0x1fde4f=_0x377445[_0x1e23d6]++;return{'id':_0x180e30[_0x13e85d(0x453)],'name':ft(_0x180e30,_0x4851ed,_0xfbb3c),'description':_0x180e30[_0x13e85d(0x1c1)],'visible':_0x180e30[_0x13e85d(0x3b4)]!==!0x0,'selectable':_0x180e30['selectable']!==!0x1,'sectionId':_0x1e23d6,'sectionTitle':_0x35d227?_0x1a9e83[_0x13e85d(0x21a)]:_0x1a9e83[_0x13e85d(0x41d)],'capabilities':_0x35d227?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x35d227&&_0x1fde4f>0x0,'canMoveBackward':!_0x35d227&&_0x1fde4f<_0x51bee6[_0x13e85d(0x397)]-0x1,'canReorder':!_0x35d227};}),_0x74644b=(0x0,b[_0x1c6f16(0x46d)])(()=>(_0x1fa16f??[])[_0x1c6f16(0x493)](_0x3dfb44=>_0x3dfb44[_0x1c6f16(0x2de)]===_0x30b4db&&_0x3dfb44['subUnitId']===_0x4a5c92)['map'](_0x469b72=>_0x469b72[_0x1c6f16(0x453)]),[_0x1fa16f,_0x4a5c92,_0x30b4db]),_0x2aaa64=_0x74644b[_0x74644b['length']-0x1]??null,_0x58836e=_0x300132=>_0xc86658['getDrawingByParam']({'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x300132})??null,_0x2e4a57=async _0x50431f=>{const _0x12185b=_0x1c6f16;_0x30b4db&&_0x50431f[_0x12185b(0x190)]&&await _0xde29dc[_0x12185b(0x37c)](m[_0x12185b(0x153)]['id'],{'unitId':_0x30b4db,'drawings':_0x50431f});},_0x3ee0d9=async(_0x231583,_0x399d4a)=>{_0x58836e(_0x231583)&&await _0x2e4a57([{'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x231583,..._0x399d4a}]);},_0x5037cd=(_0x21357a,_0x352bee)=>{const _0x2d183b=_0x1c6f16;if(!_0x30b4db||!_0x4a5c92)return;let _0x53132b=_0x352bee?_0x74644b[_0x2d183b(0x1f7)](_0x21357a)?_0x74644b[_0x2d183b(0x493)](_0x324da3=>_0x324da3!==_0x21357a):[..._0x74644b,_0x21357a]:[_0x21357a];_0xde29dc[_0x2d183b(0x2c5)](s[_0x2d183b(0x2fe)]['id'],_0x53132b[_0x2d183b(0x2e7)](_0x25d387=>({'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x25d387})));let _0x134c7c=_0x53132b[_0x53132b[_0x2d183b(0x190)]-0x1];_0x134c7c?(0x0,e[_0x2d183b(0x383)])(_0x5b9859,{'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x134c7c}):(0x0,e['clearActiveDrawingObjects'])(_0x5b9859,_0x30b4db);},_0x42ce53=async(_0x53de4c,_0x4694ce)=>{const _0x3fd892=_0x1c6f16;await _0x2e4a57(_0x53de4c['map'](_0x1d78a5=>_0x58836e(_0x1d78a5))[_0x3fd892(0x493)](_0x3b7382=>!!_0x3b7382)[_0x3fd892(0x493)](_0x39d24f=>_0x39d24f[_0x3fd892(0x3b4)]!==!0x0!==_0x4694ce)['map'](_0x181ce1=>({'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x181ce1[_0x3fd892(0x453)],'hidden':!_0x4694ce})));},_0x550f04=async(_0x2dab8e,_0x1138cc)=>{const _0x3d5ad3=_0x1c6f16;await _0x2e4a57(_0x2dab8e['map'](_0x430f58=>_0x58836e(_0x430f58))[_0x3d5ad3(0x493)](_0x148744=>!!_0x148744)[_0x3d5ad3(0x493)](_0x343789=>_0x343789[_0x3d5ad3(0x237)]!==!0x1!==_0x1138cc)['map'](_0x57c97a=>({'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingId':_0x57c97a['drawingId'],'selectable':_0x1138cc})));},_0x22335d=_0x115625=>{const _0x35ac7f=_0x1c6f16;let _0x241b77=_0x58836e(_0x115625);if(_0x241b77)return _0x550f04([_0x115625],_0x241b77[_0x35ac7f(0x237)]===!0x1);},_0x3a4cc3=async(_0x4b1635,_0x2e4eaf)=>{const _0x18d741=_0x1c6f16;var _0x5679a8;let _0x2e43b1=dt(_0x2e4eaf);(((_0x5679a8=_0x58836e(_0x4b1635))==null?void 0x0:_0x5679a8[_0x18d741(0x40d)])??void 0x0)!==_0x2e43b1&&await _0x3ee0d9(_0x4b1635,{'name':_0x2e43b1});},_0x50e311=async(_0x36c1c0,_0x40b5c5)=>{const _0x18cd1c=_0x1c6f16;var _0x1f7dc8;let _0x3a3e2d=dt(_0x40b5c5);(((_0x1f7dc8=_0x58836e(_0x36c1c0))==null?void 0x0:_0x1f7dc8[_0x18cd1c(0x1c1)])??void 0x0)!==_0x3a3e2d&&await _0x3ee0d9(_0x36c1c0,{'description':_0x3a3e2d});},_0x18d667=async(_0x5e55fe,_0x4637d1)=>{const _0x4e8cb1=_0x1c6f16;_0x30b4db&&_0x4a5c92&&await _0xde29dc['executeCommand'](m[_0x4e8cb1(0x1f2)]['id'],{'unitId':_0x30b4db,'subUnitId':_0x4a5c92,'drawingIds':[_0x5e55fe],'arrangeType':_0x4637d1});};return!_0x30b4db||!_0x4a5c92?(0x0,p[_0x1c6f16(0x1ee)])(_0x1c6f16(0x1e3),{'className':_0x1c6f16(0x2bd),'children':_0x1a9e83[_0x1c6f16(0x3c6)]}):(0x0,p[_0x1c6f16(0x1ee)])(_0x58667d,{'labels':_0x1a9e83,'items':_0x22879f,'selectedIds':_0x74644b,'focusedId':_0x2aaa64,'showHeader':!0x1,'onSelect':_0x5037cd,'onSetVisible':_0x42ce53,'onSetSelectable':_0x550f04,'onCommitName':_0x3a4cc3,'onCommitDescription':_0x50e311,'onMoveForward':async _0x463dd6=>_0x18d667(_0x463dd6,a[_0x1c6f16(0x26e)][_0x1c6f16(0x31b)]),'onMoveBackward':async _0x4bc724=>_0x18d667(_0x4bc724,a['ArrangeTypeEnum'][_0x1c6f16(0x21c)]),'onToggleSelectable':_0x22335d});}function mt(){const _0x359415=_0x1d5b92;return(0x0,p[_0x359415(0x1ee)])(pt,{'PanelComponent':d[_0x359415(0x3a6)]});}let ht=class extends a[_0x1d5b92(0x16d)]{constructor(_0x2dbcc2,_0x3d6d8b){const _0x3c3bce=_0x1d5b92;super(),this['disposeWithMe'](_0x2dbcc2[_0x3c3bce(0x2f2)](I,mt)),this['disposeWithMe'](_0x3d6d8b[_0x3c3bce(0x2f2)]({'BottomIcon':y[_0x3c3bce(0x127)],'FlipHorizontalIcon':y['FlipHorizontalIcon'],'FlipVerticalIcon':y[_0x3c3bce(0x21e)],'MoveDownIcon':y['MoveDownIcon'],'MoveUpIcon':y[_0x3c3bce(0x198)],'ObjectLayersIcon':y[_0x3c3bce(0x372)],'ShapeFormatSettingIcon':y[_0x3c3bce(0x1b8)],'TopmostIcon':y['TopmostIcon']})),this['disposeWithMe'](_0x2dbcc2['register'](le,ge)),this[_0x3c3bce(0x2f1)](_0x2dbcc2[_0x3c3bce(0x2f2)](ue,pe)),_0x2dbcc2[_0x3c3bce(0x423)](d[_0x3c3bce(0x422)])||this[_0x3c3bce(0x2f1)](_0x2dbcc2['register'](d[_0x3c3bce(0x422)],me));}};ht=A([k(0x0,(0x0,a['Inject'])(t['ComponentManager'])),k(0x1,(0x0,a['Inject'])(t['IconManager']))],ht);let H=class extends a['Disposable']{constructor(_0x12683a){const _0x1be7ec=_0x1d5b92;super(),this[_0x1be7ec(0x152)]=_0x12683a,E(this,_0x1be7ec(0x2fc),new u['BehaviorSubject'](null)),E(this,'editingParams$',this[_0x1be7ec(0x2fc)][_0x1be7ec(0x145)]()),E(this,_0x1be7ec(0x2a7),new u['BehaviorSubject'](!0x1)),E(this,'onSavingEditorData$',this[_0x1be7ec(0x2a7)][_0x1be7ec(0x145)]()),E(this,_0x1be7ec(0x407),void 0x0),this[_0x1be7ec(0x2f1)](this[_0x1be7ec(0x152)][_0x1be7ec(0x32e)][_0x1be7ec(0x243)](()=>{const _0xa1e158=_0x1be7ec;let _0x8f5c51=this[_0xa1e158(0x1cc)]();_0x8f5c51!=null&&_0x8f5c51['visible']&&!this[_0xa1e158(0x34c)](_0x8f5c51)&&this[_0xa1e158(0x3d3)](null);}));}[_0x1d5b92(0x1f9)](){const _0x8c272f=_0x1d5b92;this['_clearCompletionFrame'](),this[_0x8c272f(0x2fc)]['next'](null),this[_0x8c272f(0x2fc)][_0x8c272f(0x33b)](),this[_0x8c272f(0x2a7)][_0x8c272f(0x27a)](!0x1),this['_onSavingEditorData$'][_0x8c272f(0x33b)](),super[_0x8c272f(0x1f9)]();}[_0x1d5b92(0x3d3)](_0x330eb7){const _0x59f46e=_0x1d5b92;(_0x330eb7==null||!_0x330eb7['visible']||this[_0x59f46e(0x34c)](_0x330eb7))&&(this[_0x59f46e(0x2da)](),this[_0x59f46e(0x2fc)]['next'](_0x330eb7),(_0x330eb7==null||_0x330eb7[_0x59f46e(0x1c6)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x59f46e(0x2a7)][_0x59f46e(0x27a)](!0x1));}[_0x1d5b92(0x2f6)](_0x22975f){this['_onSavingEditorData$']['next'](_0x22975f);}[_0x1d5b92(0x1cc)](){const _0x109472=_0x1d5b92;return this[_0x109472(0x2fc)][_0x109472(0x270)]();}[_0x1d5b92(0x34c)](_0x46ff2a){const _0x2dfaf9=_0x1d5b92;let _0x32dfc6=this['_permissionService']['getPermissionPoint'](new o[(_0x2dfaf9(0x44a))](_0x46ff2a[_0x2dfaf9(0x2de)])['id']),_0xdee8e0=this[_0x2dfaf9(0x152)][_0x2dfaf9(0x232)](new o[(_0x2dfaf9(0x36b))](_0x46ff2a['unitId'],_0x46ff2a[_0x2dfaf9(0x365)])['id']);return((_0x32dfc6==null?void 0x0:_0x32dfc6[_0x2dfaf9(0x2cb)])??!0x0)&&((_0xdee8e0==null?void 0x0:_0xdee8e0[_0x2dfaf9(0x2cb)])??!0x0);}[_0x1d5b92(0x42c)](_0x349e67){const _0x5b8cfd=_0x1d5b92;let _0x17ebbf=this[_0x5b8cfd(0x1cc)]();_0x17ebbf&&this[_0x5b8cfd(0x407)]===void 0x0&&(this[_0x5b8cfd(0x2f6)](!0x0),this[_0x5b8cfd(0x407)]=requestAnimationFrame(()=>{const _0x1c045d=_0x5b8cfd;this['_completionFrame']=void 0x0,this[_0x1c045d(0x1cc)]()===_0x17ebbf&&this[_0x1c045d(0x3d3)](null);}));}['_clearCompletionFrame'](){const _0x20e32e=_0x1d5b92;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x20e32e(0x407)]=void 0x0);}[_0x1d5b92(0x1b0)](){this['getEditing']()&&this['setEditing'](null);}};H=A([k(0x0,a[_0x1d5b92(0x14e)])],H);let gt=class extends a['Disposable']{constructor(_0x346365,_0x494ad7,_0x15721b,_0x4a39ef,_0x4bf706,_0x25baf8){const _0x18b7fb=_0x1d5b92;super(),this[_0x18b7fb(0x139)]=_0x346365,this[_0x18b7fb(0x347)]=_0x494ad7,this[_0x18b7fb(0x337)]=_0x15721b,this[_0x18b7fb(0x22b)]=_0x4a39ef,this[_0x18b7fb(0x3ab)]=_0x4bf706,this[_0x18b7fb(0x477)]=_0x25baf8,E(this,_0x18b7fb(0x38f),null),this[_0x18b7fb(0x37a)](),this['_initSelection'](),this[_0x18b7fb(0x1e8)]();}[_0x1d5b92(0x37a)](){const _0x37f89d=_0x1d5b92;let {scene:_0x3c564d}=this[_0x37f89d(0x139)];this['disposeWithMe'](_0x3c564d[_0x37f89d(0x209)][_0x37f89d(0x1e4)](_0x422e3c=>{const _0x33854b=_0x37f89d;let {offsetX:_0x46f2a2,offsetY:_0x585eaf}=_0x422e3c,_0x2695a5=_0x3c564d[_0x33854b(0x498)](c[_0x33854b(0x338)][_0x33854b(0x3d0)]([_0x46f2a2,_0x585eaf]));if(_0x2695a5 instanceof D){let _0x1a3566=this[_0x33854b(0x477)][_0x33854b(0x1df)](_0x2695a5[_0x33854b(0x2de)],_0x2695a5['subUnitId'],_0x2695a5[_0x33854b(0x13d)]);if((0x0,n[_0x33854b(0x3ba)])(this[_0x33854b(0x477)][_0x33854b(0x2c6)](_0x2695a5[_0x33854b(0x2de)],_0x2695a5[_0x33854b(0x365)],_0x2695a5[_0x33854b(0x13d)]))||_0x1a3566!=null&&_0x1a3566[_0x33854b(0x412)]()['formulaBinding'])return;this[_0x33854b(0x337)][_0x33854b(0x3d3)]({'visible':!0x0,'unitId':_0x2695a5['unitId'],'subUnitId':_0x2695a5[_0x33854b(0x365)],'shapeId':_0x2695a5[_0x33854b(0x13d)],'shapeKey':_0x2695a5[_0x33854b(0x17a)]});}}));}['_initSelection'](){const _0x47c320=_0x1d5b92;this[_0x47c320(0x2f1)](this[_0x47c320(0x22b)]['focus$'][_0x47c320(0x243)](_0x4116b9=>{const _0x4d12e6=_0x47c320;if(_0x4116b9[_0x4d12e6(0x190)]===0x1){let _0x50e04f=_0x4116b9[0x0],_0x10694f=this[_0x4d12e6(0x22b)]['getDrawingByParam'](_0x50e04f);if((_0x10694f==null?void 0x0:_0x10694f[_0x4d12e6(0x144)])===a[_0x4d12e6(0x385)]['DRAWING_SHAPE']){var _0x2baeb2;let _0x41a1f3=this[_0x4d12e6(0x337)][_0x4d12e6(0x1cc)]();if((_0x41a1f3==null?void 0x0:_0x41a1f3['shapeId'])===_0x50e04f[_0x4d12e6(0x453)]&&_0x41a1f3[_0x4d12e6(0x1c6)])return;let _0x47dcbe=(0x0,n[_0x4d12e6(0x3ba)])(this[_0x4d12e6(0x477)][_0x4d12e6(0x2c6)](_0x50e04f[_0x4d12e6(0x2de)],_0x50e04f['subUnitId'],_0x50e04f[_0x4d12e6(0x453)])),_0x5a6377=!!((_0x2baeb2=this['_sheetsShapeService'][_0x4d12e6(0x1df)](_0x50e04f[_0x4d12e6(0x2de)],_0x50e04f[_0x4d12e6(0x365)],_0x50e04f[_0x4d12e6(0x453)]))!=null&&_0x2baeb2[_0x4d12e6(0x412)]()[_0x4d12e6(0x42d)]);(_0x47dcbe||_0x5a6377)&&this[_0x4d12e6(0x337)][_0x4d12e6(0x3d3)](null);}else this[_0x4d12e6(0x337)][_0x4d12e6(0x42c)]();}else this['_shapeTextEditingService']['completeEditing']();})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x226759=>{const _0x1f0fa6=_0x47c320;let _0x49e1fb=this['_shapeTextEditingService'][_0x1f0fa6(0x1cc)]();_0x49e1fb&&_0x226759['some'](_0x15647b=>_0x15647b['drawingId']===_0x49e1fb[_0x1f0fa6(0x13d)])&&this[_0x1f0fa6(0x337)][_0x1f0fa6(0x3d3)](null);}));}['_initEditingParams'](){const _0x1b17dc=_0x1d5b92;this[_0x1b17dc(0x2f1)](this[_0x1b17dc(0x337)]['editingParams$'][_0x1b17dc(0x243)](_0x3450c4=>{const _0x2dba36=_0x1b17dc;let {scene:_0x2fcd4c}=this[_0x2dba36(0x139)];if(this[_0x2dba36(0x38f)]){let _0x54dd86=_0x2fcd4c[_0x2dba36(0x19b)](this[_0x2dba36(0x38f)]);_0x54dd86&&_0x54dd86[_0x2dba36(0x3d3)](!0x1);}if(_0x3450c4){let _0x48bd97=!!_0x3450c4[_0x2dba36(0x1c6)],_0x1e5b54=_0x2fcd4c[_0x2dba36(0x19b)](_0x3450c4['shapeKey']);_0x1e5b54&&(_0x1e5b54[_0x2dba36(0x3d3)](_0x48bd97),this[_0x2dba36(0x38f)]=_0x3450c4['shapeKey']),this[_0x2dba36(0x3ab)][_0x2dba36(0x449)](a[_0x2dba36(0x2ce)],_0x48bd97);}else this[_0x2dba36(0x38f)]=null,this['_contextService']['setContextValue'](a['FOCUSING_SHAPE_TEXT_EDITOR'],!0x1);}));}};gt=A([k(0x1,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x472)])),k(0x2,(0x0,a['Inject'])(H)),k(0x3,s[_0x1d5b92(0x366)]),k(0x4,a[_0x1d5b92(0x240)]),k(0x5,(0x0,a[_0x1d5b92(0x466)])(i[_0x1d5b92(0x188)]))],gt);var _t=class extends gt{[_0x1d5b92(0x37a)](){const _0x4c1520=_0x1d5b92;let {scene:_0x39e50d}=this[_0x4c1520(0x139)],_0x187ad8=this[_0x4c1520(0x347)][_0x4c1520(0x423)](e[_0x4c1520(0x307)]);this[_0x4c1520(0x2f1)](_0x39e50d[_0x4c1520(0x209)][_0x4c1520(0x1e4)](_0x214704=>{const _0x222d29=_0x4c1520;let {offsetX:_0x45ffba,offsetY:_0x238b3a}=_0x214704,_0x25e2d5=_0x39e50d[_0x222d29(0x498)](c['Vector2'][_0x222d29(0x3d0)]([_0x45ffba,_0x238b3a]));if(!(_0x25e2d5 instanceof D))return;let _0x4b7772=this['_sheetsShapeService']['getShapeModel'](_0x25e2d5[_0x222d29(0x2de)],_0x25e2d5[_0x222d29(0x365)],_0x25e2d5[_0x222d29(0x13d)]);(0x0,n[_0x222d29(0x3ba)])(this['_sheetsShapeService']['getShapeType'](_0x25e2d5[_0x222d29(0x2de)],_0x25e2d5[_0x222d29(0x365)],_0x25e2d5[_0x222d29(0x13d)]))||_0x4b7772!=null&&_0x4b7772[_0x222d29(0x412)]()['formulaBinding']||_0x187ad8[_0x222d29(0x3f1)]('text',{'hostType':a['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x25e2d5[_0x222d29(0x2de)],'subUnitId':_0x25e2d5[_0x222d29(0x365)],'shapeId':_0x25e2d5[_0x222d29(0x13d)]});}));}};const vt={...rt};let U=class extends a[_0x1d5b92(0x16d)]{constructor(_0x5eb08e,_0x2cba18,_0x3e167b,_0x4ca331,_0xe17708,_0x142d99,_0x7b0667,_0x3bdf54){const _0x44d205=_0x1d5b92;super(),this[_0x44d205(0x141)]=_0x5eb08e,this[_0x44d205(0x477)]=_0x2cba18,this['_commandService']=_0x3e167b,this[_0x44d205(0x22b)]=_0x4ca331,this['_sheetCanvasPopManagerService']=_0xe17708,this['_contextService']=_0x142d99,this[_0x44d205(0x3ee)]=_0x7b0667,this[_0x44d205(0x337)]=_0x3bdf54,E(this,_0x44d205(0x205),null),this[_0x44d205(0x141)][_0x44d205(0x1ec)](vt),this['_registerFeatureMenu'](),this[_0x44d205(0x2f1)](this['_shapeTextEditingService'][_0x44d205(0x3c5)][_0x44d205(0x243)](_0x321c69=>{const _0x50640a=_0x44d205;_0x321c69&&this[_0x50640a(0x27b)]();}));}[_0x1d5b92(0x26a)](){const _0x52cdc3=_0x1d5b92;this[_0x52cdc3(0x205)]||=this['disposeWithMe']((0x0,e[_0x52cdc3(0x2ac)])(this['_renderManagerService'],a[_0x52cdc3(0x46e)][_0x52cdc3(0x3f2)],_0x3f9aad=>this['_popupMenuListener'](_0x3f9aad)));}['_registerFeatureMenu'](){const _0x40b703=_0x1d5b92;this[_0x40b703(0x193)][_0x40b703(0x38b)](a[_0x40b703(0x385)]['DRAWING_SHAPE'],(_0x34a9bb,_0x281835,_0x5f363a,_0x518a81)=>{const _0x410d15=_0x40b703;let _0x227183=this[_0x410d15(0x477)][_0x410d15(0x367)](_0x34a9bb,_0x281835,_0x5f363a),_0x35806b=this[_0x410d15(0x477)]['getShapeDataById'](_0x34a9bb,_0x281835,_0x5f363a),_0x38560d=_0x227183!==void 0x0&&!(0x0,n[_0x410d15(0x3ba)])(_0x227183)&&!(_0x35806b!=null&&_0x35806b[_0x410d15(0x42d)]);return[{'label':_0x410d15(0x208),'index':0x0,'commandId':st['id'],'commandParams':{'unitId':_0x34a9bb,'subUnitId':_0x281835,'drawingId':_0x5f363a,'mode':_0x410d15(0x25d)},'disable':!0x1},..._0x38560d?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':st['id'],'commandParams':{'unitId':_0x34a9bb,'subUnitId':_0x281835,'drawingId':_0x5f363a,'mode':'text'},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':m[_0x410d15(0x1f6)]['id'],'commandParams':{'unitId':_0x34a9bb,'drawings':[{'unitId':_0x34a9bb,'subUnitId':_0x281835,'drawingId':_0x5f363a,'drawingType':_0x518a81}]},'disable':!0x1},{'label':_0x410d15(0x38e),'index':0x3,'commandId':i['ToggleSheetsShapeFlipCommand']['id'],'commandParams':{'unitId':_0x34a9bb,'subUnitId':_0x281835,'shapeId':_0x5f363a,'flipH':!0x0},'disable':!0x1},{'label':_0x410d15(0x23d),'index':0x4,'commandId':i[_0x410d15(0x479)]['id'],'commandParams':{'unitId':_0x34a9bb,'subUnitId':_0x281835,'shapeId':_0x5f363a,'flipV':!0x0},'disable':!0x1}];},_0x40b703(0x135));}['_popupMenuListener'](_0x454679){const _0x4d36c1=_0x1d5b92;let _0xd1e9f2=new a['DisposableCollection'](),_0x1c85d6=null,_0x43bcce=()=>{const _0xe83ce=_0x128e;if(!_0x1c85d6)return;let _0x2a8382=this[_0xe83ce(0x22b)][_0xe83ce(0x16b)](),_0x2930b8=_0x2a8382[_0xe83ce(0x190)]===0x0||_0x2a8382[_0xe83ce(0x190)]===0x1&&_0x2a8382['some'](_0x432779=>_0x432779[_0xe83ce(0x2de)]===(_0x1c85d6==null?void 0x0:_0x1c85d6['unitId'])&&_0x432779[_0xe83ce(0x365)]===(_0x1c85d6==null?void 0x0:_0x1c85d6[_0xe83ce(0x365)])&&_0x432779[_0xe83ce(0x453)]===(_0x1c85d6==null?void 0x0:_0x1c85d6[_0xe83ce(0x453)]));_0x1c85d6=null,_0x2930b8&&(this[_0xe83ce(0x3ab)]['setContextValue'](a['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0xe83ce(0x22b)][_0xe83ce(0x463)](null));};return _0xd1e9f2[_0x4d36c1(0x1a5)](_0x454679['createControl$'][_0x4d36c1(0x243)](()=>{const _0x2ffb88=_0x4d36c1;let _0x578b9d=_0x454679[_0x2ffb88(0x35d)]();if(_0x578b9d[_0x2ffb88(0x3a3)]>0x1){_0x43bcce();return;}let _0x16cd74=_0x578b9d[_0x2ffb88(0x45a)]()[_0x2ffb88(0x27a)]()[_0x2ffb88(0x2cb)];if(!_0x16cd74){_0x43bcce();return;}let _0x5a92fa=this[_0x2ffb88(0x22b)][_0x2ffb88(0x14d)](_0x16cd74[_0x2ffb88(0x17a)]);if(!_0x5a92fa||_0x5a92fa['drawingType']!==a[_0x2ffb88(0x385)][_0x2ffb88(0x3e8)]){_0x43bcce();return;}let {unitId:_0x56fbeb,subUnitId:_0x37349a,drawingId:_0x3fff69}=_0x5a92fa;_0x1c85d6={'unitId':_0x56fbeb,'subUnitId':_0x37349a,'drawingId':_0x3fff69},this[_0x2ffb88(0x3ab)]['setContextValue'](a['FOCUSING_COMMON_DRAWINGS'],!0x0),this[_0x2ffb88(0x22b)][_0x2ffb88(0x16b)]()[_0x2ffb88(0x339)](_0x402044=>_0x402044[_0x2ffb88(0x2de)]===_0x56fbeb&&_0x402044[_0x2ffb88(0x365)]===_0x37349a&&_0x402044['drawingId']===_0x3fff69)||this[_0x2ffb88(0x22b)][_0x2ffb88(0x463)]([{'unitId':_0x56fbeb,'subUnitId':_0x37349a,'drawingId':_0x3fff69}]);})),_0xd1e9f2[_0x4d36c1(0x1a5)](_0x454679[_0x4d36c1(0x269)]['subscribe'](()=>{_0x43bcce();})),(0x0,a['toDisposable'])(()=>{_0xd1e9f2['dispose'](),_0x43bcce();});}[_0x1d5b92(0x27b)](){const _0x8645b2=_0x1d5b92;this[_0x8645b2(0x3ab)]['setContextValue'](a[_0x8645b2(0x406)],!0x1),this[_0x8645b2(0x22b)][_0x8645b2(0x463)](null);}};U=A([k(0x0,t[_0x1d5b92(0x376)]),k(0x1,(0x0,a[_0x1d5b92(0x466)])(i[_0x1d5b92(0x188)])),k(0x2,a[_0x1d5b92(0x393)]),k(0x3,s[_0x1d5b92(0x366)]),k(0x4,(0x0,a[_0x1d5b92(0x466)])(l['SheetCanvasPopManagerService'])),k(0x5,a[_0x1d5b92(0x240)]),k(0x6,c[_0x1d5b92(0x33f)]),k(0x7,(0x0,a[_0x1d5b92(0x466)])(H))],U);function yt(_0x4d2d66,_0x5d1fc6,_0x102b49,_0x2ca050){const _0x21a7ce=_0x1d5b92;let _0x2d6436=(0x0,s[_0x21a7ce(0x20e)])(_0x4d2d66,_0x5d1fc6,_0x102b49),_0x43a230=[];for(let _0xc3cd0a of _0x5d1fc6){let _0x127c57=_0x2d6436[_0x21a7ce(0x19f)][_0x21a7ce(0x423)](_0xc3cd0a['drawingId']),_0x5300e5=_0x2ca050(_0xc3cd0a);_0x127c57&&_0x5300e5&&_0x43a230[_0x21a7ce(0x1fc)]({'targetShapeId':_0x127c57,'source':_0x5300e5});}return _0x43a230;}function _0x128e(_0x4c283b,_0x1518f8){_0x4c283b=_0x4c283b-0x11d;const _0x519334=_0x5193();let _0x128e72=_0x519334[_0x4c283b];return _0x128e72;}let W=class extends a[_0x1d5b92(0x16d)]{constructor(_0x5b22f8,_0x31bbc0,_0x4c6598,_0x5b97a4){const _0x15545d=_0x1d5b92;super(),this['_univerInstanceService']=_0x5b22f8,this[_0x15545d(0x44b)]=_0x31bbc0,this['_sheetDrawingService']=_0x4c6598,this[_0x15545d(0x477)]=_0x5b97a4,this[_0x15545d(0x213)]();}[_0x1d5b92(0x213)](){const _0x2bac13=_0x1d5b92;this[_0x2bac13(0x2f1)](this[_0x2bac13(0x44b)][_0x2bac13(0x3d8)]({'getMutations':_0x1ca521=>{const _0x52c6b4=_0x2bac13;if(_0x1ca521['id']===o[_0x52c6b4(0x3fd)]['id']){let _0x3d2651=(0x0,o[_0x52c6b4(0x457)])(this[_0x52c6b4(0x260)],_0x1ca521[_0x52c6b4(0x28a)]);if(!_0x3d2651)return{'redos':[],'undos':[]};let {unitId:_0xb77df5,subUnitId:_0x22adc0}=_0x3d2651,_0x23d58a=this[_0x52c6b4(0x454)][_0x52c6b4(0x3a4)](_0xb77df5,_0x22adc0),_0x5d1e56=Object['values'](_0x23d58a)[_0x52c6b4(0x493)](_0x57eec0=>_0x57eec0['drawingType']===a[_0x52c6b4(0x385)]['DRAWING_SHAPE']);if(_0x5d1e56['length']===0x0)return{'redos':[],'undos':[]};let _0x426de5=[],_0x41bec5=[];for(let _0x178637=0x0;_0x178637<_0x5d1e56[_0x52c6b4(0x190)];_0x178637++){let _0x1c86ec=_0x5d1e56[_0x178637],_0x5aa35f=this['_sheetsShapeService']['getShapeModel'](_0x1c86ec[_0x52c6b4(0x2de)],_0x1c86ec[_0x52c6b4(0x365)],_0x1c86ec[_0x52c6b4(0x453)]);_0x5aa35f&&(_0x426de5[_0x52c6b4(0x1fc)]({'id':i[_0x52c6b4(0x24f)]['id'],'params':{'unitId':_0xb77df5,'subUnitId':_0x22adc0,'shapeId':_0x1c86ec['drawingId']}}),_0x41bec5[_0x52c6b4(0x1fc)]({'id':i[_0x52c6b4(0x19a)]['id'],'params':{'unitId':_0xb77df5,'subUnitId':_0x22adc0,'shapeId':_0x1c86ec[_0x52c6b4(0x453)],'shapeType':_0x5aa35f[_0x52c6b4(0x2c6)](),'shapeData':JSON['parse'](JSON[_0x52c6b4(0x2d9)](_0x5aa35f['getShapeData']()))}}));}return{'redos':_0x426de5,'undos':_0x41bec5};}if(_0x1ca521['id']===o[_0x52c6b4(0x18b)]['id']){let {unitId:_0x21bb98,subUnitId:_0x4c1681,targetSubUnitId:_0x20a144,copyContext:_0x10abf3}=_0x1ca521['params'];if(!_0x21bb98||!_0x4c1681||!_0x20a144)return{'redos':[],'undos':[]};let _0x1e6879=this[_0x52c6b4(0x454)]['getDrawingData'](_0x21bb98,_0x4c1681),_0x37d5e5=Object[_0x52c6b4(0x45a)](_0x1e6879)['filter'](_0x2c21bc=>_0x2c21bc[_0x52c6b4(0x144)]===a[_0x52c6b4(0x385)][_0x52c6b4(0x3e8)]);if(_0x37d5e5[_0x52c6b4(0x190)]===0x0)return{'redos':[],'undos':[]};let _0x3bc2a0=yt(_0x10abf3,_0x37d5e5,{'unitId':_0x21bb98,'sourceSubUnitId':_0x4c1681,'targetSubUnitId':_0x20a144},_0x2b442d=>{const _0x3365f6=_0x52c6b4;let _0x4c424c=this[_0x3365f6(0x477)][_0x3365f6(0x1df)](_0x2b442d[_0x3365f6(0x2de)],_0x2b442d[_0x3365f6(0x365)],_0x2b442d['drawingId']);if(_0x4c424c)return{'shapeType':_0x4c424c['getShapeType'](),'shapeData':JSON['parse'](JSON[_0x3365f6(0x2d9)](_0x4c424c[_0x3365f6(0x412)]()))};}),_0x5520ab=[],_0x237420=[];for(let {targetShapeId:_0x21be30,source:_0x1feb1}of _0x3bc2a0)_0x5520ab[_0x52c6b4(0x1fc)]({'id':i[_0x52c6b4(0x19a)]['id'],'params':{'unitId':_0x21bb98,'subUnitId':_0x20a144,'shapeId':_0x21be30,'shapeType':_0x1feb1[_0x52c6b4(0x3df)],'shapeData':_0x1feb1[_0x52c6b4(0x42e)]}}),_0x237420[_0x52c6b4(0x1fc)]({'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x21bb98,'subUnitId':_0x20a144,'shapeId':_0x21be30}});return{'redos':_0x5520ab,'undos':_0x237420};}return{'redos':[],'undos':[]};}}));}};W=A([k(0x0,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x3a7)])),k(0x1,(0x0,a[_0x1d5b92(0x466)])(o['SheetInterceptorService'])),k(0x2,(0x0,a['Inject'])(m['ISheetDrawingService'])),k(0x3,(0x0,a['Inject'])(i[_0x1d5b92(0x188)]))],W);let G=class extends a[_0x1d5b92(0x16d)]{constructor(_0x47ec0c,_0x5d47a9,_0x5ce99d,_0x2963eb,_0x41292d,_0x45daf7){const _0x37c779=_0x1d5b92;super(),this['_commandService']=_0x47ec0c,this[_0x37c779(0x3ee)]=_0x5d47a9,this['_drawingManagerService']=_0x5ce99d,this[_0x37c779(0x25b)]=_0x2963eb,this[_0x37c779(0x1b4)]=_0x41292d,this[_0x37c779(0x2e0)]=_0x45daf7,E(this,_0x37c779(0x312),new Set()),this['_initialize']();}[_0x1d5b92(0x340)](){const _0x338d97=_0x1d5b92;this['_drawingAddListener'](),this['_commandExecutedListener'](),this[_0x338d97(0x471)]();}[_0x1d5b92(0x3e3)](){const _0x2c642b=_0x1d5b92;this[_0x2c642b(0x2f1)](this[_0x2c642b(0x22b)]['add$'][_0x2c642b(0x243)](_0x486b0b=>{const _0x53b2eb=_0x2c642b;this[_0x53b2eb(0x39b)](_0x486b0b);}));}[_0x1d5b92(0x272)](){const _0x5b886d=_0x1d5b92;this[_0x5b886d(0x2f1)](this[_0x5b886d(0x1db)][_0x5b886d(0x124)]((_0x4ef7bb,_0x6fad4a)=>{const _0x780108=_0x5b886d;if(_0x4ef7bb['id']===i['UpdateSheetsShapeDataMutation']['id']){let {unitId:_0x1802af,subUnitId:_0x3183f2,shapeId:_0x4c701c}=_0x4ef7bb[_0x780108(0x28a)],_0x47948f=this['_getSceneAndTransformerByDrawingSearch'](_0x1802af),_0xda794=(0x0,s[_0x780108(0x39a)])({'unitId':_0x1802af,'subUnitId':_0x3183f2,'drawingId':_0x4c701c}),_0x4a2607=_0x47948f==null?void 0x0:_0x47948f[_0x780108(0x418)]['getObjectIncludeInGroup'](_0xda794);_0x4a2607&&(this[_0x780108(0x2e0)][_0x780108(0x1cf)](_0x4a2607),this[_0x780108(0x2e0)][_0x780108(0x1c8)](_0x4a2607,{'unitId':_0x1802af,'subUnitId':_0x3183f2,'shapeId':_0x4c701c}),_0x4a2607[_0x780108(0x2a9)](!0x0));return;}if(_0x4ef7bb['id']===i[_0x780108(0x19a)]['id']){var _0x57abd2;let {unitId:_0x230bb9,subUnitId:_0x474729,shapeId:_0x45e30d}=_0x4ef7bb['params'],_0x2ca47e=this[_0x780108(0x32a)](_0x230bb9);if(_0x2ca47e==null)return;let {scene:_0xffb997}=_0x2ca47e,_0x357aca=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x230bb9,'subUnitId':_0x474729,'drawingId':_0x45e30d}),_0x4bfe5d=_0xffb997[_0x780108(0x19b)](_0x357aca);if(!((_0x57abd2=this[_0x780108(0x3ee)][_0x780108(0x26f)](_0x230bb9))!=null&&_0x57abd2[_0x780108(0x425)](l[_0x780108(0x191)])['getSkeleton'](_0x474729)))return!0x1;if(_0x4bfe5d)return;if(_0x6fad4a!=null&&_0x6fad4a[_0x780108(0x1ca)]){queueMicrotask(()=>{const _0x463d66=_0x780108;this[_0x463d66(0x12b)]||this[_0x463d66(0x39b)]([{'unitId':_0x230bb9,'subUnitId':_0x474729,'drawingId':_0x45e30d}]);});return;}this['_insertShapes']([{'unitId':_0x230bb9,'subUnitId':_0x474729,'drawingId':_0x45e30d}]);}}));}[_0x1d5b92(0x471)](){const _0x1e9457=_0x1d5b92;this[_0x1e9457(0x2f1)](this[_0x1e9457(0x22b)]['update$'][_0x1e9457(0x243)](_0x15db90=>{_0x15db90['forEach'](_0x297759=>{const _0x1e54fa=_0x128e;let {unitId:_0x1ae102,subUnitId:_0x36b014,drawingId:_0x277e0c}=_0x297759,_0x576884=this[_0x1e54fa(0x22b)][_0x1e54fa(0x255)](_0x297759);if(_0x576884==null)return;let {transform:_0xe1e99,drawingType:_0x1bc7ac,srcRect:_0x2706e6,prstGeom:_0x2a516e}=_0x576884;if(_0x1bc7ac!==a[_0x1e54fa(0x385)][_0x1e54fa(0x3e8)])return;let _0x3ba4bf=this[_0x1e54fa(0x32a)](_0x1ae102);if(_0x3ba4bf==null)return;let {scene:_0x55ce64,transformer:_0x107d06}=_0x3ba4bf;if(_0xe1e99==null)return!0x0;let _0x1a94c2=(0x0,s[_0x1e54fa(0x39a)])({'unitId':_0x1ae102,'subUnitId':_0x36b014,'drawingId':_0x277e0c}),_0x12e6f3=_0x55ce64['getObjectIncludeInGroup'](_0x1a94c2);if(_0x12e6f3==null)return!0x0;_0x12e6f3['setSrcRect'](_0x2706e6),_0x12e6f3['setPrstGeom'](_0x2a516e);});}));}['_insertShapes'](_0x4a802c){const _0x5619c7=_0x1d5b92;for(let _0x565c47 of _0x4a802c){var _0x935a54;let {unitId:_0x5e853c,subUnitId:_0x2a22cf,drawingId:_0x1b3a32}=_0x565c47,_0x3ae8f3=this[_0x5619c7(0x32a)](_0x5e853c),_0x5cd8ab=(_0x935a54=(0x0,d[_0x5619c7(0x42b)])(this[_0x5619c7(0x25b)],_0x5e853c))==null?void 0x0:_0x935a54[_0x5619c7(0x365)];if(_0x3ae8f3==null||_0x5cd8ab!==_0x2a22cf)return;let _0x576c9c=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x5e853c,'subUnitId':_0x2a22cf,'drawingId':_0x1b3a32});if(this[_0x5619c7(0x312)][_0x5619c7(0x13b)](_0x576c9c)||_0x3ae8f3[_0x5619c7(0x418)][_0x5619c7(0x19b)](_0x576c9c)!=null)return;let _0x10e009=this[_0x5619c7(0x22b)][_0x5619c7(0x255)](_0x565c47);if(_0x10e009==null||_0x10e009[_0x5619c7(0x144)]!==a[_0x5619c7(0x385)][_0x5619c7(0x3e8)])return;let _0x29fc58=_0x10e009[_0x5619c7(0x33c)]||{};if((0x0,n[_0x5619c7(0x3ba)])(_0x29fc58[_0x5619c7(0x3df)])){let _0x5081ba=_0x10e009[_0x5619c7(0x136)];_0x5081ba&&(_0x10e009[_0x5619c7(0x136)]={..._0x5081ba,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x5619c7(0x312)][_0x5619c7(0x1a5)](_0x576c9c);try{this['_sheetDrawingShapeRenderController'][_0x5619c7(0x445)](_0x10e009,_0x3ae8f3['scene']);}finally{this[_0x5619c7(0x312)][_0x5619c7(0x268)](_0x576c9c);}queueMicrotask(()=>{const _0xef5801=_0x5619c7;if(this['_disposed'])return;let _0x120f07=(0x0,s[_0xef5801(0x39a)])(_0x565c47);if(!_0x3ae8f3[_0xef5801(0x418)][_0xef5801(0x19b)](_0x120f07))return;let _0x4997c5=this[_0xef5801(0x22b)][_0xef5801(0x255)](_0x565c47);_0x4997c5&&this[_0xef5801(0x22b)][_0xef5801(0x1e0)]([_0x4997c5]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x1fbad2){const _0x42bbb4=_0x1d5b92;if(_0x1fbad2==null)return;let _0x4f0713=this[_0x42bbb4(0x3ee)][_0x42bbb4(0x26f)](_0x1fbad2),_0x4b27f6=_0x4f0713==null?void 0x0:_0x4f0713[_0x42bbb4(0x418)];return _0x4b27f6==null?null:{'scene':_0x4b27f6,'transformer':_0x4b27f6[_0x42bbb4(0x483)]()};}};G=A([k(0x0,a[_0x1d5b92(0x393)]),k(0x1,c[_0x1d5b92(0x33f)]),k(0x2,s[_0x1d5b92(0x366)]),k(0x3,a[_0x1d5b92(0x3a7)]),k(0x4,(0x0,a[_0x1d5b92(0x466)])(d[_0x1d5b92(0x48b)])),k(0x5,(0x0,a[_0x1d5b92(0x466)])(j))],G);const bt={'normal':{'fill':n['ShapeDefaultConfig'][_0x1d5b92(0x3ad)],'stroke':n[_0x1d5b92(0x499)][_0x1d5b92(0x363)],'strokeWidth':n[_0x1d5b92(0x499)][_0x1d5b92(0x36e)]},'highlighted':{'fill':_0x1d5b92(0x158),'stroke':_0x1d5b92(0x266),'strokeWidth':0x2}};var xt=class extends c['Shape']{constructor(_0x681a62,_0x23ec2b){const _0x18c598=_0x1d5b92;super(_0x681a62,_0x23ec2b),E(this,_0x18c598(0x459),''),E(this,_0x18c598(0x295),-0x1),E(this,_0x18c598(0x1f4),''),E(this,'_subUnitId',''),E(this,'_isHighlighted',!0x1),_0x23ec2b&&this[_0x18c598(0x227)](_0x23ec2b);}[_0x1d5b92(0x38a)](){const _0x4dde21=_0x1d5b92;return{'unitId':this[_0x4dde21(0x1f4)],'subUnitId':this['_subUnitId'],'shapeId':this[_0x4dde21(0x459)],'cxnIndex':this['_cxnIndex']};}[_0x1d5b92(0x1a6)](_0xfcccf5){const _0x201f19=_0x1d5b92;this[_0x201f19(0x1af)]!==_0xfcccf5&&(this[_0x201f19(0x1af)]=_0xfcccf5,this[_0x201f19(0x2a9)](!0x0));}[_0x1d5b92(0x2c7)](){const _0x383284=_0x1d5b92;return this[_0x383284(0x1af)];}['setShapeProps'](_0x44cedd){const _0x151831=_0x1d5b92;_0x44cedd[_0x151831(0x45e)]!==void 0x0&&(this[_0x151831(0x459)]=_0x44cedd[_0x151831(0x45e)]),_0x44cedd[_0x151831(0x355)]!==void 0x0&&(this[_0x151831(0x295)]=_0x44cedd[_0x151831(0x355)]),_0x44cedd[_0x151831(0x2de)]!==void 0x0&&(this['_unitId']=_0x44cedd['unitId']),_0x44cedd[_0x151831(0x365)]!==void 0x0&&(this[_0x151831(0x387)]=_0x44cedd[_0x151831(0x365)]),_0x44cedd['isHighlighted']!==void 0x0&&(this[_0x151831(0x1af)]=_0x44cedd[_0x151831(0x2c7)]),this[_0x151831(0x1d5)]({'width':_0x44cedd[_0x151831(0x2ff)]??n[_0x151831(0x499)][_0x151831(0x249)]*0x2,'height':_0x44cedd[_0x151831(0x2c3)]??n[_0x151831(0x499)]['cxnPointRadius']*0x2});}[_0x1d5b92(0x390)](_0x925bef){const _0x360644=_0x1d5b92;let _0x4ade8c=this[_0x360644(0x1af)]?bt['highlighted']:bt['normal'];c[_0x360644(0x2ca)][_0x360644(0x2fb)](_0x925bef,{'radius':n[_0x360644(0x499)][_0x360644(0x249)],'fill':_0x4ade8c[_0x360644(0x394)],'stroke':_0x4ade8c[_0x360644(0x122)],'strokeWidth':_0x4ade8c[_0x360644(0x427)],'evented':!0x0});}};let K=class extends a[_0x1d5b92(0x16d)]{constructor(_0x2927f9,_0x27b794,_0x14de67,_0x217311){const _0x9f6d3a=_0x1d5b92;super(),this[_0x9f6d3a(0x139)]=_0x2927f9,this['_renderManagerService']=_0x27b794,this['_drawingManagerService']=_0x14de67,this[_0x9f6d3a(0x477)]=_0x217311,E(this,'_connectionSiteObjects',[]),E(this,_0x9f6d3a(0x1f3),null),E(this,'_highlightedSiteIndex',-0x1),E(this,'_currentScene',null),E(this,_0x9f6d3a(0x1f4),''),E(this,_0x9f6d3a(0x387),''),E(this,'_draggingConnectorId',null);}[_0x1d5b92(0x319)](_0x412d43,_0x129696,_0x3e739e,_0x3fd305){const _0xc852ab=_0x1d5b92;this[_0xc852ab(0x469)]=_0x412d43,this[_0xc852ab(0x1f4)]=_0x129696,this[_0xc852ab(0x387)]=_0x3e739e,this['_draggingConnectorId']=_0x3fd305;}[_0x1d5b92(0x2b9)](_0x433981){const _0x34e193=_0x1d5b92;if(!this[_0x34e193(0x469)])return null;let _0x151c1d=this[_0x34e193(0x2a6)](_0x433981);return _0x151c1d?(this[_0x34e193(0x1f3)]!==_0x151c1d[_0x34e193(0x13d)]&&(this[_0x34e193(0x1c5)](),this[_0x34e193(0x1b2)](_0x151c1d[_0x34e193(0x13d)],_0x151c1d['shapeModel']),this['_activeTargetShapeId']=_0x151c1d[_0x34e193(0x13d)]),this[_0x34e193(0x23b)](_0x433981)):(this['_activeTargetShapeId']!==null&&(this[_0x34e193(0x1c5)](),this['_activeTargetShapeId']=null),null);}['endConnectionDetection'](){const _0x26ff41=_0x1d5b92;this[_0x26ff41(0x1c5)](),this[_0x26ff41(0x469)]=null,this[_0x26ff41(0x1f3)]=null,this[_0x26ff41(0x22f)]=-0x1,this[_0x26ff41(0x430)]=null;}[_0x1d5b92(0x369)](){const _0x9b743e=_0x1d5b92;return this[_0x9b743e(0x1f3)]===null||this[_0x9b743e(0x22f)]<0x0?null:{'shapeId':this[_0x9b743e(0x1f3)],'cxnIndex':this[_0x9b743e(0x22f)]};}['_findShapeAtPoint'](_0x1ae5f9){const _0x266f78=_0x1d5b92;let _0x22460c=this[_0x266f78(0x22b)][_0x266f78(0x3a4)](this['_unitId'],this[_0x266f78(0x387)]);for(let _0x1c83f7 of Object['keys'](_0x22460c)){if(_0x1c83f7===this[_0x266f78(0x430)]||_0x22460c[_0x1c83f7][_0x266f78(0x144)]!==a[_0x266f78(0x385)][_0x266f78(0x3e8)])continue;let _0x4f36c4=this[_0x266f78(0x477)][_0x266f78(0x1df)](this[_0x266f78(0x1f4)],this['_subUnitId'],_0x1c83f7);if(!_0x4f36c4||(0x0,n['isConnectorShape'])(_0x4f36c4[_0x266f78(0x2c6)]())||_0x4f36c4[_0x266f78(0x15a)]()[_0x266f78(0x190)]===0x0||!this[_0x266f78(0x469)])continue;let _0x1e3616=(0x0,s[_0x266f78(0x39a)])({'unitId':this[_0x266f78(0x1f4)],'subUnitId':this[_0x266f78(0x387)],'drawingId':_0x1c83f7}),_0x39f533=this[_0x266f78(0x469)]['getObjectIncludeInGroup'](_0x1e3616);if(!_0x39f533)continue;let {left:_0x2834d7,top:_0x563e86,width:_0x443a75,height:_0x3e7b14}=_0x39f533['getRealBound'](),_0x50fd83=_0x2834d7+_0x443a75/0x2,_0x3b4ab9=_0x563e86+_0x3e7b14/0x2,_0x49173e=_0x39f533[_0x266f78(0x136)][_0x266f78(0x1e2)](),_0x519f01=new c[(_0x266f78(0x298))]([_0x49173e[0x0],_0x49173e[0x1],_0x49173e[0x2],_0x49173e[0x3],_0x50fd83,_0x3b4ab9]),_0x96ef5a=_0x39f533[_0x266f78(0x163)](),_0x5f37ef=(_0x39f533[_0x266f78(0x1e7)]&&(_0x96ef5a==null?void 0x0:_0x96ef5a[_0x266f78(0x2ab)])===c[_0x266f78(0x1a7)][_0x266f78(0x352)]?_0x96ef5a[_0x266f78(0x403)][_0x266f78(0x395)](_0x519f01):_0x519f01)[_0x266f78(0x3b3)]()[_0x266f78(0x1a1)](_0x1ae5f9),_0x36fd03=_0x443a75/0x2,_0x444fea=_0x3e7b14/0x2;if(_0x5f37ef['x']>=-_0x36fd03-0x5&&_0x5f37ef['x']<=_0x36fd03+0x5&&_0x5f37ef['y']>=-_0x444fea-0x5&&_0x5f37ef['y']<=_0x444fea+0x5)return{'shapeId':_0x1c83f7,'shapeModel':_0x4f36c4};}return null;}[_0x1d5b92(0x1b2)](_0x5ec1ef,_0x2296ec){const _0x24ec5f=_0x1d5b92;if(!this['_currentScene'])return;let _0x43370b=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0x5ec1ef}),_0x1ecbe7=this[_0x24ec5f(0x469)]['getObjectIncludeInGroup'](_0x43370b);if(!_0x1ecbe7)return;let {left:_0x5cc470,top:_0x1c1098,width:_0x550342,height:_0x21ba4f}=_0x1ecbe7['getRealBound'](),_0x3f936e=_0x5cc470+_0x550342/0x2,_0x45010d=_0x1c1098+_0x21ba4f/0x2,_0x66d3db=_0x1ecbe7[_0x24ec5f(0x136)][_0x24ec5f(0x1e2)](),_0x572a45=new c[(_0x24ec5f(0x298))]([_0x66d3db[0x0],_0x66d3db[0x1],_0x66d3db[0x2],_0x66d3db[0x3],_0x3f936e,_0x45010d]),_0x4e49db=_0x1ecbe7[_0x24ec5f(0x163)](),_0x49b248=_0x1ecbe7[_0x24ec5f(0x1e7)]&&(_0x4e49db==null?void 0x0:_0x4e49db[_0x24ec5f(0x2ab)])===c[_0x24ec5f(0x1a7)][_0x24ec5f(0x352)]?_0x4e49db[_0x24ec5f(0x403)]['multiply'](_0x572a45):_0x572a45;_0x2296ec['updateContext']({'width':_0x550342,'height':_0x21ba4f});let _0x5ec3d1=_0x2296ec[_0x24ec5f(0x15a)]();for(let _0x48fc45 of _0x5ec3d1){let _0x501053=_0x48fc45['x']-_0x550342/0x2,_0x50b6ec=_0x48fc45['y']-_0x21ba4f/0x2,_0x3d87d2=_0x49b248['applyPoint']({'x':_0x501053,'y':_0x50b6ec}),_0x495cd8=_0x3d87d2['x'],_0x263162=_0x3d87d2['y'],_0x527d19=new xt('connection-site-'+_0x5ec1ef+'-'+_0x48fc45[_0x24ec5f(0x1e6)],{'left':_0x495cd8-n[_0x24ec5f(0x499)]['cxnPointRadius'],'top':_0x263162-n[_0x24ec5f(0x499)][_0x24ec5f(0x249)],'targetShapeId':_0x5ec1ef,'cxnIndex':_0x48fc45['index'],'unitId':this[_0x24ec5f(0x1f4)],'subUnitId':this['_subUnitId'],'width':n[_0x24ec5f(0x499)][_0x24ec5f(0x249)]*0x2,'height':n[_0x24ec5f(0x499)][_0x24ec5f(0x249)]*0x2,'zIndex':c[_0x24ec5f(0x389)]+0x2,'evented':!0x1});this[_0x24ec5f(0x19d)][_0x24ec5f(0x1fc)](_0x527d19),this['_currentScene'][_0x24ec5f(0x143)](_0x527d19,c['DRAWING_OBJECT_LAYER_INDEX']+0x2);}}[_0x1d5b92(0x23b)](_0x75371b){const _0x32ff34=_0x1d5b92;let _0x1cc252=null,_0x73dbcf=0x1/0x0,_0xda5395=null;for(let _0xd24829 of this[_0x32ff34(0x19d)]){let _0x597a6c=_0xd24829[_0x32ff34(0x353)]+n[_0x32ff34(0x499)][_0x32ff34(0x249)],_0x5aebd8=_0xd24829[_0x32ff34(0x244)]+n[_0x32ff34(0x499)]['cxnPointRadius'],_0x2649aa=_0x75371b['x']-_0x597a6c,_0x404626=_0x75371b['y']-_0x5aebd8,_0x57094d=Math[_0x32ff34(0x2d4)](_0x2649aa*_0x2649aa+_0x404626*_0x404626);_0x57094d<_0x73dbcf&&(_0x73dbcf=_0x57094d,_0x1cc252=_0xd24829,_0xda5395={'x':_0x597a6c,'y':_0x5aebd8});}let _0x5c165a=_0x73dbcf<=0xa&&_0x1cc252?_0x1cc252[_0x32ff34(0x38a)]()['cxnIndex']:-0x1;if(_0x5c165a!==this[_0x32ff34(0x22f)]){for(let _0x220863 of this[_0x32ff34(0x19d)]){let _0x197488=_0x220863[_0x32ff34(0x38a)]();_0x220863['setHighlighted'](_0x197488['cxnIndex']===_0x5c165a);}this[_0x32ff34(0x22f)]=_0x5c165a;}if(_0x73dbcf<=0xa&&_0x1cc252&&_0xda5395){let _0x353e3d=_0x1cc252[_0x32ff34(0x38a)](),_0x34ab1b=this['_getConnectionSiteAngle'](_0x353e3d[_0x32ff34(0x13d)],_0x353e3d[_0x32ff34(0x355)]);return{'shapeId':_0x353e3d[_0x32ff34(0x13d)],'cxnIndex':_0x353e3d[_0x32ff34(0x355)],'unitId':_0x353e3d[_0x32ff34(0x2de)],'subUnitId':_0x353e3d['subUnitId'],'worldPoint':_0xda5395,'angle':_0x34ab1b};}return null;}[_0x1d5b92(0x3c8)](_0x26b6eb,_0x556ee7){const _0x97cec1=_0x1d5b92;let _0x2df519=this[_0x97cec1(0x477)][_0x97cec1(0x1df)](this[_0x97cec1(0x1f4)],this[_0x97cec1(0x387)],_0x26b6eb);if(!_0x2df519)return 0x0;let _0x588e3e=this[_0x97cec1(0x22b)][_0x97cec1(0x255)]({'unitId':this[_0x97cec1(0x1f4)],'subUnitId':this[_0x97cec1(0x387)],'drawingId':_0x26b6eb});if(!(_0x588e3e!=null&&_0x588e3e[_0x97cec1(0x136)]))return 0x0;let {width:_0x361939=0x0,height:_0x2d977c=0x0,flipX:_0x357ddb=!0x1,flipY:_0x36735f=!0x1}=_0x588e3e[_0x97cec1(0x136)];_0x2df519['updateContext']({'width':_0x361939,'height':_0x2d977c});let _0x59260e=_0x2df519[_0x97cec1(0x15a)]()[_0x97cec1(0x339)](_0x59fb09=>_0x59fb09[_0x97cec1(0x1e6)]===_0x556ee7);if(!_0x59260e)return 0x0;let _0x1c09b2=_0x59260e[_0x97cec1(0x1b1)]/0xea60;return _0x357ddb&&(_0x1c09b2=0xb4-_0x1c09b2),_0x36735f&&(_0x1c09b2=-_0x1c09b2),_0x1c09b2=(_0x1c09b2%0x168+0x168)%0x168,_0x1c09b2;}[_0x1d5b92(0x1c5)](){const _0x1df9eb=_0x1d5b92;for(let _0xca8ab1 of this[_0x1df9eb(0x19d)])_0xca8ab1[_0x1df9eb(0x1f9)]();this[_0x1df9eb(0x19d)]=[],this[_0x1df9eb(0x22f)]=-0x1;}[_0x1d5b92(0x1f9)](){const _0x276515=_0x1d5b92;this['_clearConnectionSites'](),super[_0x276515(0x1f9)]();}};K=A([k(0x1,(0x0,a['Inject'])(c['IRenderManagerService'])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(s['IDrawingManagerService'])),k(0x3,(0x0,a[_0x1d5b92(0x466)])(i['SheetsShapeService']))],K);let q=class extends a[_0x1d5b92(0x16d)]{constructor(_0x199aa1,_0x3ad19b,_0x4b3ddf,_0x3561f0,_0x32a69e){const _0x4dbf67=_0x1d5b92;super(),this[_0x4dbf67(0x45b)]=_0x199aa1,this[_0x4dbf67(0x314)]=_0x3ad19b,this[_0x4dbf67(0x454)]=_0x4b3ddf,this[_0x4dbf67(0x36f)]=_0x3561f0,this[_0x4dbf67(0x35f)]=_0x32a69e,E(this,_0x4dbf67(0x1c7),void 0x0),this[_0x4dbf67(0x31c)](),this[_0x4dbf67(0x19e)]();}get[_0x1d5b92(0x21b)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0x1d5b92(0x19e)](){const _0x17388b=_0x1d5b92;this['_groupCopyPasteController'][_0x17388b(0x44f)](({fromUnitId:_0x2f4cf2,fromSubUnitId:_0xc9cb3a,toUnitId:_0x7982e1,toSubUnitId:_0x319e37,idMap:_0x51542e})=>{const _0x1664bc=_0x17388b;let _0x45367e=[],_0x7db024=[];for(let [_0x32187e,_0x47acf6]of _0x51542e['entries']()){let _0x1edb61=this['_shapeService'][_0x1664bc(0x1df)](_0x2f4cf2,_0xc9cb3a,_0x32187e);if(!_0x1edb61)continue;let _0x2d4423=_0x1edb61['getShapeType'](),_0x4d58a3=JSON['parse'](JSON['stringify'](_0x1edb61[_0x1664bc(0x412)]()));if(_0x4d58a3[_0x1664bc(0x2d1)]){var _0x59418e,_0x33a91c;let _0x158e06=(_0x59418e=_0x4d58a3[_0x1664bc(0x2d1)]['from'])==null?void 0x0:_0x59418e[_0x1664bc(0x13d)],_0x2c5a49=(_0x33a91c=_0x4d58a3[_0x1664bc(0x2d1)]['to'])==null?void 0x0:_0x33a91c['shapeId'],_0x4e84da=!_0x158e06||_0x51542e['has'](_0x158e06),_0x25e19b=!_0x2c5a49||_0x51542e[_0x1664bc(0x13b)](_0x2c5a49);_0x4e84da&&_0x158e06&&_0x4d58a3[_0x1664bc(0x2d1)]['from']?_0x4d58a3[_0x1664bc(0x2d1)][_0x1664bc(0x1e1)]={..._0x4d58a3['relation']['from'],'shapeId':_0x51542e['get'](_0x158e06)}:_0x4d58a3[_0x1664bc(0x2d1)][_0x1664bc(0x1e1)]=void 0x0,_0x25e19b&&_0x2c5a49&&_0x4d58a3['relation']['to']?_0x4d58a3['relation']['to']={..._0x4d58a3['relation']['to'],'shapeId':_0x51542e[_0x1664bc(0x423)](_0x2c5a49)}:_0x4d58a3[_0x1664bc(0x2d1)]['to']=void 0x0;}_0x45367e[_0x1664bc(0x1fc)]({'id':i[_0x1664bc(0x19a)]['id'],'params':{'unitId':_0x7982e1,'subUnitId':_0x319e37,'shapeId':_0x47acf6,'shapeType':_0x2d4423,'shapeData':_0x4d58a3}}),_0x7db024[_0x1664bc(0x1fc)]({'id':i[_0x1664bc(0x24f)]['id'],'params':{'unitId':_0x7982e1,'subUnitId':_0x319e37,'shapeId':_0x47acf6}});}return{'redos':_0x45367e,'undos':_0x7db024};});}[_0x1d5b92(0x31c)](){const _0x14ab2e=_0x1d5b92;this[_0x14ab2e(0x2f1)](this[_0x14ab2e(0x314)]['addClipboardHook']({'id':'sheets-shape-ui','onBeforeCopyFocusedObject':(_0x2dc064,_0x199b0f,_0x4f271e)=>{const _0x15ad2f=_0x14ab2e;this[_0x15ad2f(0x1c7)]=null;let _0x14203c=this[_0x15ad2f(0x21b)][_0x15ad2f(0x493)](_0x31cafa=>_0x31cafa[_0x15ad2f(0x144)]===a['DrawingTypeEnum'][_0x15ad2f(0x3e8)]);return _0x14203c['length']!==0x0&&(this['_copyInfo']={'unitId':_0x2dc064,'subUnitId':_0x199b0f,'copyType':_0x4f271e,'drawings':_0x14203c},!0x0);},'onBeforeCopy':(_0x1cfea2,_0x8edc28,_0x44339e,_0x2582cb)=>{const _0x9ca5c0=_0x14ab2e;this[_0x9ca5c0(0x1c7)]=null,this[_0x9ca5c0(0x22a)](_0x1cfea2,_0x8edc28,_0x44339e,_0x2582cb);},'onPasteCells':(_0x4ea1c4,_0x1d853e,_0x39f248,_0x21f239)=>{const _0x12277b=_0x14ab2e;if(!_0x21f239[_0x12277b(0x3aa)]||!_0x4ea1c4||!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x4ff7c1}=_0x21f239;return _0x4ff7c1===l['PREDEFINED_HOOK_NAME'][_0x12277b(0x300)]?this[_0x12277b(0x3b6)](_0x1d853e,this[_0x12277b(0x1c7)]['copyType']===l[_0x12277b(0x217)][_0x12277b(0x306)]):{'redos':[],'undos':[]};}}));}[_0x1d5b92(0x22a)](_0x132ab5,_0x49df2b,_0x3e2f24,_0x26e003){const _0x12c571=_0x1d5b92;let _0x4c229a=this[_0x12c571(0x45b)][_0x12c571(0x442)](_0x132ab5,_0x49df2b);if(!_0x4c229a)return;let _0x3ce839=(0x0,o[_0x12c571(0x41a)])(_0x4c229a,_0x3e2f24);if(!_0x3ce839)return;let {startX:_0x2b915c,endX:_0x23c879,startY:_0x444a58,endY:_0x2cec46}=_0x3ce839,_0x33ad3c=this['_sheetDrawingService'][_0x12c571(0x3a4)](_0x132ab5,_0x49df2b),_0x240278=[];for(let [_0x2d8d4a,_0x3a559a]of Object[_0x12c571(0x345)](_0x33ad3c)){if(_0x3a559a[_0x12c571(0x144)]!==a[_0x12c571(0x385)][_0x12c571(0x3e8)])continue;let {transform:_0x1ee564}=_0x3a559a;if(!_0x1ee564)continue;let {left:_0x643fa4=0x0,top:_0x343a64=0x0,width:_0x487199=0x0,height:_0x4637cf=0x0}=_0x1ee564;_0x2b915c<=_0x643fa4&&_0x23c879>=_0x643fa4+_0x487199&&_0x444a58<=_0x343a64&&_0x2cec46>=_0x343a64+_0x4637cf&&_0x240278[_0x12c571(0x1fc)](_0x3a559a);}_0x240278[_0x12c571(0x190)]>0x0&&(this[_0x12c571(0x1c7)]={'unitId':_0x132ab5,'subUnitId':_0x49df2b,'copyType':_0x26e003,'copyRange':_0x3e2f24,'drawings':_0x240278});}[_0x1d5b92(0x3b6)](_0xc986c5,_0x4ad60d){const _0x58b538=_0x1d5b92;let {unitId:_0xe16c83,subUnitId:_0x3be631,range:_0x4a020a}=_0xc986c5,_0x532c37=this[_0x58b538(0x45b)][_0x58b538(0x442)](_0xe16c83,_0x3be631);if(!_0x532c37)return{'redos':[],'undos':[]};let _0x58a07c=(0x0,o[_0x58b538(0x33a)])(_0x4a020a),{unitId:_0xdcaea0,subUnitId:_0x5d4e1c,copyRange:_0x3cf419,drawings:_0x441c7d}=this['_copyInfo'],_0x5bc04c=this['_sheetSkeletonService'][_0x58b538(0x442)](_0xdcaea0,_0x5d4e1c);if(!_0x5bc04c)return{'redos':[],'undos':[]};let _0x4f4e46;if(!_0x3cf419){let _0xebfdd3=0x1/0x0,_0xa407cf=0x1/0x0;for(let _0x52f2bb of _0x441c7d){let {left:_0x20f15d=0x0,top:_0x4bfa8a=0x0}=_0x52f2bb[_0x58b538(0x136)]??{};_0x20f15d<_0xebfdd3&&(_0xebfdd3=_0x20f15d),_0x4bfa8a<_0xa407cf&&(_0xa407cf=_0x4bfa8a);}_0xebfdd3!==0x1/0x0&&_0xa407cf!==0x1/0x0&&(_0x4f4e46={'left':_0xebfdd3,'top':_0xa407cf});}let _0x263cf0=new Map();if(!_0x4ad60d){for(let _0x3a70a0 of _0x441c7d)_0x263cf0[_0x58b538(0x465)](_0x3a70a0['drawingId'],(0x0,a['generateRandomId'])());}let _0x479eac=[],_0x201d80=[];for(let _0x57a822 of _0x441c7d){let {drawingId:_0x3613e3,transform:_0x6eb04a,sheetTransform:_0x8fa52f}=_0x57a822;if(!_0x6eb04a||!_0x8fa52f)continue;let _0xf71f86=this['_updateTransform']({'transform':_0x6eb04a,'sheetTransform':_0x8fa52f},{'skeleton':_0x5bc04c,'range':_0x3cf419},{'skeleton':_0x532c37,'range':_0x58a07c},_0x4f4e46);if(_0x4ad60d){let {redos:_0x32c044,undos:_0x330e32}=this['_generateCutPasteMutations']({'fromUnitId':_0xdcaea0,'fromSubUnitId':_0x5d4e1c,'toUnitId':_0xe16c83,'toSubUnitId':_0x3be631,'drawing':_0x57a822,'newTransforms':_0xf71f86});_0x479eac[_0x58b538(0x1fc)](..._0x32c044),_0x201d80['push'](..._0x330e32);continue;}let {redos:_0x51565d,undos:_0x360939}=this['_generateCopyPasteMutations']({'toUnitId':_0xe16c83,'toSubUnitId':_0x3be631,'drawing':_0x57a822,'newTransforms':_0xf71f86,'newDrawingId':_0x263cf0['get'](_0x3613e3),'idMap':_0x263cf0});_0x479eac[_0x58b538(0x1fc)](..._0x51565d),_0x201d80[_0x58b538(0x1fc)](..._0x360939);}return{'redos':_0x479eac,'undos':_0x201d80};}[_0x1d5b92(0x41c)](_0x359201){const _0x236f20=_0x1d5b92;let {fromUnitId:_0x1ce520,fromSubUnitId:_0x5afb0a,toUnitId:_0x32daa3,toSubUnitId:_0x2a2b7d,drawing:_0x59b8c4,newTransforms:_0x573925}=_0x359201,_0x50b4f6={..._0x59b8c4,'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'transform':_0x573925[_0x236f20(0x136)],'sheetTransform':_0x573925[_0x236f20(0x15f)]};if(_0x32daa3===_0x1ce520&&_0x2a2b7d===_0x5afb0a){let {redo:_0x2065c4,undo:_0x58fccc,objects:_0x4e8082}=this[_0x236f20(0x454)][_0x236f20(0x14f)]([_0x50b4f6]);return{'redos':[{'id':m[_0x236f20(0x1d6)]['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'type':m[_0x236f20(0x28c)][_0x236f20(0x27c)],'op':_0x2065c4,'objects':_0x4e8082}}],'undos':[{'id':m[_0x236f20(0x1d6)]['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'type':m[_0x236f20(0x28c)]['UPDATE'],'op':_0x58fccc,'objects':_0x4e8082}}]};}{let _0x21a8c3=this[_0x236f20(0x454)][_0x236f20(0x129)]([_0x59b8c4]),_0x4a9b23=this['_sheetDrawingService']['getBatchAddOp']([_0x50b4f6]),_0xee2fb0=this[_0x236f20(0x36f)][_0x236f20(0x1df)](_0x59b8c4[_0x236f20(0x2de)],_0x59b8c4[_0x236f20(0x365)],_0x59b8c4[_0x236f20(0x453)]);if(!_0xee2fb0)return{'redos':[],'undos':[]};let _0x2696cc=_0xee2fb0[_0x236f20(0x2c6)](),_0x5e528d=JSON[_0x236f20(0x379)](JSON[_0x236f20(0x2d9)](_0xee2fb0[_0x236f20(0x412)]()));return{'redos':[{'id':m[_0x236f20(0x1d6)]['id'],'params':{'unitId':_0x1ce520,'subUnitId':_0x5afb0a,'type':m[_0x236f20(0x28c)][_0x236f20(0x291)],'op':_0x21a8c3['redo'],'objects':_0x21a8c3[_0x236f20(0x17e)]}},{'id':i[_0x236f20(0x24f)]['id'],'params':{'unitId':_0x1ce520,'subUnitId':_0x5afb0a,'shapeId':_0x59b8c4[_0x236f20(0x453)]}},{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'type':m[_0x236f20(0x28c)]['INSERT'],'op':_0x4a9b23[_0x236f20(0x2b5)],'objects':_0x4a9b23[_0x236f20(0x17e)]}},{'id':i[_0x236f20(0x19a)]['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'shapeId':_0x59b8c4[_0x236f20(0x453)],'shapeType':_0x2696cc,'shapeData':_0x5e528d}}],'undos':[{'id':m['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1ce520,'subUnitId':_0x5afb0a,'type':m[_0x236f20(0x28c)][_0x236f20(0x43e)],'op':_0x21a8c3[_0x236f20(0x34b)],'objects':_0x21a8c3[_0x236f20(0x17e)]}},{'id':i[_0x236f20(0x19a)]['id'],'params':{'unitId':_0x1ce520,'subUnitId':_0x5afb0a,'shapeId':_0x59b8c4[_0x236f20(0x453)],'shapeType':_0x2696cc,'shapeData':_0x5e528d}},{'id':m[_0x236f20(0x1d6)]['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'type':m[_0x236f20(0x28c)][_0x236f20(0x291)],'op':_0x4a9b23['undo'],'objects':_0x4a9b23[_0x236f20(0x17e)]}},{'id':i[_0x236f20(0x24f)]['id'],'params':{'unitId':_0x32daa3,'subUnitId':_0x2a2b7d,'shapeId':_0x59b8c4['drawingId']}}]};}}[_0x1d5b92(0x226)](_0x2f4c5c){const _0x526d87=_0x1d5b92;let {toUnitId:_0x4b5994,toSubUnitId:_0x26167b,drawing:_0xca267,newTransforms:_0xec0071,newDrawingId:_0x27a76c,idMap:_0x1f2614}=_0x2f4c5c,_0x597730={..._0xca267,'unitId':_0x4b5994,'subUnitId':_0x26167b,'drawingId':_0x27a76c,'transform':_0xec0071[_0x526d87(0x136)],'sheetTransform':_0xec0071[_0x526d87(0x15f)]},{redo:_0x2ee645,undo:_0xca19b4,objects:_0x4e20e1}=this[_0x526d87(0x454)][_0x526d87(0x2f0)]([_0x597730]),_0x11f0df=this[_0x526d87(0x36f)][_0x526d87(0x1df)](_0xca267[_0x526d87(0x2de)],_0xca267[_0x526d87(0x365)],_0xca267[_0x526d87(0x453)]);if(!_0x11f0df)return{'redos':[],'undos':[]};let _0x174930=_0x11f0df[_0x526d87(0x2c6)](),_0xca98b1=JSON[_0x526d87(0x379)](JSON[_0x526d87(0x2d9)](_0x11f0df['getShapeData']()));if(_0xca98b1[_0x526d87(0x2d1)]){var _0x1d8548,_0x56a2f3;let _0x4531b2=(_0x1d8548=_0xca98b1[_0x526d87(0x2d1)][_0x526d87(0x1e1)])==null?void 0x0:_0x1d8548[_0x526d87(0x13d)],_0x2617be=(_0x56a2f3=_0xca98b1[_0x526d87(0x2d1)]['to'])==null?void 0x0:_0x56a2f3[_0x526d87(0x13d)],_0x26f3c3=!_0x4531b2||_0x1f2614[_0x526d87(0x13b)](_0x4531b2),_0x20009e=!_0x2617be||_0x1f2614[_0x526d87(0x13b)](_0x2617be);_0x26f3c3&&_0x4531b2&&_0xca98b1[_0x526d87(0x2d1)][_0x526d87(0x1e1)]?_0xca98b1[_0x526d87(0x2d1)]['from']={..._0xca98b1[_0x526d87(0x2d1)][_0x526d87(0x1e1)],'shapeId':_0x1f2614[_0x526d87(0x423)](_0x4531b2)}:_0xca98b1[_0x526d87(0x2d1)]['from']=void 0x0,_0x20009e&&_0x2617be&&_0xca98b1[_0x526d87(0x2d1)]['to']?_0xca98b1[_0x526d87(0x2d1)]['to']={..._0xca98b1[_0x526d87(0x2d1)]['to'],'shapeId':_0x1f2614[_0x526d87(0x423)](_0x2617be)}:_0xca98b1[_0x526d87(0x2d1)]['to']=void 0x0;}return{'redos':[{'id':m[_0x526d87(0x1d6)]['id'],'params':{'unitId':_0x4b5994,'subUnitId':_0x26167b,'type':m[_0x526d87(0x28c)][_0x526d87(0x43e)],'op':_0x2ee645,'objects':_0x4e20e1}},{'id':i[_0x526d87(0x19a)]['id'],'params':{'unitId':_0x4b5994,'subUnitId':_0x26167b,'shapeId':_0x27a76c,'shapeType':_0x174930,'shapeData':_0xca98b1}}],'undos':[{'id':m[_0x526d87(0x1d6)]['id'],'params':{'unitId':_0x4b5994,'subUnitId':_0x26167b,'type':m['DrawingApplyType'][_0x526d87(0x291)],'op':_0xca19b4,'objects':_0x4e20e1}},{'id':i['RemoveSheetsShapeMutation']['id'],'params':{'unitId':_0x4b5994,'subUnitId':_0x26167b,'shapeId':_0x27a76c}}]};}['_updateTransform'](_0x43a2b4,_0x2b1014,_0x579fd8,_0x41653c){const _0x29bb0a=_0x1d5b92;let {range:_0x3c4435,skeleton:_0x4852db}=_0x2b1014,{range:_0x1dfba8,skeleton:_0x45e7a8}=_0x579fd8,{transform:_0x1a7d54,sheetTransform:_0x1b8fad}=_0x43a2b4,_0x1cbc49={..._0x1a7d54};if(_0x3c4435){let _0x59b349=(0x0,o[_0x29bb0a(0x41a)])(_0x4852db,_0x3c4435),_0x50dc11=(0x0,o['attachRangeWithCoord'])(_0x45e7a8,_0x1dfba8);if(_0x59b349&&_0x50dc11){let _0x107f3e=_0x50dc11[_0x29bb0a(0x1e9)]-_0x59b349[_0x29bb0a(0x1e9)],_0x484807=_0x50dc11[_0x29bb0a(0x2ec)]-_0x59b349[_0x29bb0a(0x2ec)];_0x1cbc49[_0x29bb0a(0x353)]=(_0x1cbc49[_0x29bb0a(0x353)]??0x0)+_0x107f3e,_0x1cbc49[_0x29bb0a(0x244)]=(_0x1cbc49[_0x29bb0a(0x244)]??0x0)+_0x484807;}}else{let _0x21244b=(0x0,o[_0x29bb0a(0x41a)])(_0x45e7a8,_0x1dfba8);if(_0x41653c&&_0x21244b){let _0x1efa28=(_0x1cbc49[_0x29bb0a(0x353)]??0x0)-_0x41653c['left'],_0x11d06b=(_0x1cbc49[_0x29bb0a(0x244)]??0x0)-_0x41653c[_0x29bb0a(0x244)];_0x1cbc49[_0x29bb0a(0x353)]=_0x21244b[_0x29bb0a(0x1e9)]+_0x1efa28,_0x1cbc49[_0x29bb0a(0x244)]=_0x21244b[_0x29bb0a(0x2ec)]+_0x11d06b;}else _0x1cbc49['left']=_0x21244b==null?void 0x0:_0x21244b[_0x29bb0a(0x1e9)],_0x1cbc49['top']=_0x21244b==null?void 0x0:_0x21244b[_0x29bb0a(0x2ec)];}return{'transform':_0x1cbc49,'sheetTransform':(0x0,m['transformToDrawingPosition'])(_0x1cbc49,_0x45e7a8)??_0x1b8fad};}};q=A([k(0x0,(0x0,a[_0x1d5b92(0x466)])(o[_0x1d5b92(0x3ac)])),k(0x1,(0x0,a[_0x1d5b92(0x466)])(l[_0x1d5b92(0x3f8)])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(m[_0x1d5b92(0x441)])),k(0x3,(0x0,a[_0x1d5b92(0x466)])(i['SheetsShapeService'])),k(0x4,(0x0,a['Inject'])(v[_0x1d5b92(0x24d)]))],q);var St=class extends c[_0x1d5b92(0x413)]{constructor(_0x4d028f,_0x21c3b1){const _0x290360=_0x1d5b92;super(_0x4d028f,_0x21c3b1),E(this,_0x290360(0x29c),null),E(this,_0x290360(0x2a0),null),E(this,'_unitId',null),E(this,_0x290360(0x387),null),E(this,_0x290360(0x401),!0x1),_0x21c3b1&&this[_0x290360(0x227)](_0x21c3b1);}[_0x1d5b92(0x267)](){const _0x2d062d=_0x1d5b92;return{'unitId':this[_0x2d062d(0x1f4)],'subUnitId':this[_0x2d062d(0x387)],'drawingId':this[_0x2d062d(0x29c)]};}[_0x1d5b92(0x227)](_0x3cab2a){const _0x47aab4=_0x1d5b92;_0x3cab2a[_0x47aab4(0x13d)]!==void 0x0&&(this['_shapeId']=_0x3cab2a[_0x47aab4(0x13d)]),_0x3cab2a[_0x47aab4(0x2de)]!==void 0x0&&(this[_0x47aab4(0x1f4)]=_0x3cab2a[_0x47aab4(0x2de)]),_0x3cab2a[_0x47aab4(0x365)]!==void 0x0&&(this[_0x47aab4(0x387)]=_0x3cab2a[_0x47aab4(0x365)]),_0x3cab2a[_0x47aab4(0x12c)]!==void 0x0&&(this[_0x47aab4(0x401)]=_0x3cab2a['isStartConnectorPoint']),this[_0x47aab4(0x1d5)]({'width':_0x3cab2a['width'],'height':_0x3cab2a[_0x47aab4(0x2c3)]});}[_0x1d5b92(0x390)](_0x2c049a){const _0x313b57=_0x1d5b92;c['Circle'][_0x313b57(0x2fb)](_0x2c049a,{'radius':n['ShapeDefaultConfig']['cxnPointRadius'],'fill':n[_0x313b57(0x499)][_0x313b57(0x3ad)],'stroke':n['ShapeDefaultConfig']['cxnPointStroke'],'strokeWidth':n['ShapeDefaultConfig'][_0x313b57(0x36e)],'evented':!0x0});}};let Ct=class extends a['Disposable']{constructor(_0x34a9bd,_0xff4d11,_0x592dbd,_0x1f9804,_0x5f352f,_0x3a76dc,_0x3670db,_0x469e03){const _0x4e6cab=_0x1d5b92;super(),this[_0x4e6cab(0x139)]=_0x34a9bd,this['_commandService']=_0xff4d11,this['_renderManagerService']=_0x592dbd,this['_drawingManagerService']=_0x1f9804,this[_0x4e6cab(0x260)]=_0x5f352f,this[_0x4e6cab(0x477)]=_0x3a76dc,this[_0x4e6cab(0x3d7)]=_0x3670db,this['_sheetBasicShapeConnectionPointController']=_0x469e03,E(this,'_activeShapeId',void 0x0),E(this,_0x4e6cab(0x1f4),void 0x0),E(this,_0x4e6cab(0x387),void 0x0),E(this,'_connectorObjects',[]),E(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),E(this,_0x4e6cab(0x132),void 0x0),E(this,_0x4e6cab(0x444),!0x1),E(this,_0x4e6cab(0x254),!0x1),E(this,_0x4e6cab(0x274),!0x1),E(this,_0x4e6cab(0x1ae),void 0x0),E(this,_0x4e6cab(0x2a8),void 0x0),E(this,_0x4e6cab(0x123),null),this[_0x4e6cab(0x340)]();}[_0x1d5b92(0x340)](){const _0x43f342=_0x1d5b92;this[_0x43f342(0x32c)](),this[_0x43f342(0x3c4)]();}[_0x1d5b92(0x48f)](){const _0x16d662=_0x1d5b92;if(!this[_0x16d662(0x1f4)]||!this[_0x16d662(0x387)]||!this[_0x16d662(0x1f8)])return;let _0x357d0a={'unitId':this[_0x16d662(0x1f4)],'subUnitId':this[_0x16d662(0x387)],'drawingId':this['_activeShapeId']},{transform:_0x2de2e9}=this[_0x16d662(0x22b)][_0x16d662(0x255)](_0x357d0a);if(_0x2de2e9)return{'left':_0x2de2e9[_0x16d662(0x353)]||0x0,'top':_0x2de2e9[_0x16d662(0x244)]||0x0,'width':_0x2de2e9[_0x16d662(0x2ff)]||0x0,'height':_0x2de2e9[_0x16d662(0x2c3)]||0x0,'flipX':_0x2de2e9[_0x16d662(0x478)]||!0x1,'flipY':_0x2de2e9[_0x16d662(0x2b1)]||!0x1,'angle':_0x2de2e9[_0x16d662(0x1c9)]};}[_0x1d5b92(0x317)](){const _0xe66d11=_0x1d5b92;if(this['_unitId']===void 0x0||this['_subUnitId']===void 0x0||this[_0xe66d11(0x1f8)]===void 0x0)return;let _0x33dbab=this['_renderManagerService'][_0xe66d11(0x26f)](this['_unitId']);if(!_0x33dbab||!_0x33dbab[_0xe66d11(0x425)](l[_0xe66d11(0x191)])[_0xe66d11(0x27f)]())return;let {scene:_0x246a48}=_0x33dbab,_0x4cc141=this['_getDrawingRect']();if(!_0x4cc141)return;let _0x17f99f=this[_0xe66d11(0x477)][_0xe66d11(0x1df)](this[_0xe66d11(0x1f4)],this[_0xe66d11(0x387)],this['_activeShapeId']);if(!_0x17f99f||!(0x0,n['isConnectorShape'])(_0x17f99f[_0xe66d11(0x2c6)]()))return;let _0x486f40=_0x17f99f[_0xe66d11(0x377)]();if(_0x486f40[_0xe66d11(0x190)]<0x2)return;let _0x164a97=new n[(_0xe66d11(0x1a4))](_0x4cc141),_0x599556=_0x486f40[0x0],_0x304923=_0x486f40[_0x486f40[_0xe66d11(0x190)]-0x1],_0x7ec876=_0x164a97[_0xe66d11(0x40a)](_0x599556),_0x413bbf=_0x164a97[_0xe66d11(0x40a)](_0x304923);this['_addShapeConnectorHandlerObject'](_0x246a48,{..._0x7ec876},!0x0),this[_0xe66d11(0x487)](_0x246a48,{..._0x413bbf},!0x1);}[_0x1d5b92(0x487)](_0x4dce6a,_0x115a9f,_0x5efb9f){const _0x39604c=_0x1d5b92;if(this[_0x39604c(0x1f8)]===void 0x0||this[_0x39604c(0x1f4)]===void 0x0||this[_0x39604c(0x387)]===void 0x0)return;let _0x5af22b=_0x39604c(0x1f0)+this['_unitId']+'-'+this[_0x39604c(0x387)]+'-'+this[_0x39604c(0x1f8)]+'-'+(_0x5efb9f?'start':_0x39604c(0x44d)),_0x1c58d7=_0x4dce6a[_0x39604c(0x19b)](_0x5af22b);if(_0x1c58d7){_0x1c58d7[_0x39604c(0x1d5)]({'left':_0x115a9f['x']-n[_0x39604c(0x499)][_0x39604c(0x249)],'top':_0x115a9f['y']-n[_0x39604c(0x499)][_0x39604c(0x249)]});return;}let _0x5003b8=new St(_0x5af22b,{'left':_0x115a9f['x']-n[_0x39604c(0x499)][_0x39604c(0x249)],'top':_0x115a9f['y']-n[_0x39604c(0x499)]['cxnPointRadius'],'shapeId':this['_activeShapeId'],'unitId':this['_unitId'],'subUnitId':this[_0x39604c(0x387)],'isStartConnectorPoint':_0x5efb9f,'width':n[_0x39604c(0x499)][_0x39604c(0x249)]*0x2,'height':n['ShapeDefaultConfig'][_0x39604c(0x249)]*0x2,'zIndex':c[_0x39604c(0x389)]+0x1,'evented':!0x0});this['_connectorObjects'][_0x39604c(0x1fc)](_0x5003b8),this[_0x39604c(0x1d0)](_0x5003b8,_0x4dce6a,_0x5efb9f),_0x4dce6a[_0x39604c(0x143)](_0x5003b8,c['DRAWING_OBJECT_LAYER_INDEX']+0x1);}['_getScrollInfo'](_0x26c5f2,_0x441b1){const _0x3c6ce1=_0x1d5b92;var _0x42a5cf;let _0x312525={'x':0x0,'y':0x0};if(!_0x26c5f2||!_0x441b1)return _0x312525;let _0x159631=this[_0x3c6ce1(0x3ee)][_0x3c6ce1(0x26f)](_0x26c5f2);if(!_0x159631||!_0x159631[_0x3c6ce1(0x425)](l[_0x3c6ce1(0x191)])[_0x3c6ce1(0x442)](_0x441b1))return _0x312525;let _0x5581e0=_0x159631[_0x3c6ce1(0x425)](l[_0x3c6ce1(0x155)]),_0x182292=_0x5581e0==null?void 0x0:_0x5581e0['getCurrentScrollState']();if(!_0x182292)return _0x312525;let _0x2d997c=(_0x42a5cf=this[_0x3c6ce1(0x260)][_0x3c6ce1(0x18f)](_0x26c5f2))==null?void 0x0:_0x42a5cf[_0x3c6ce1(0x185)](_0x441b1);if(!_0x2d997c)return _0x312525;let _0x467edf=(0x0,l[_0x3c6ce1(0x120)])(_0x182292[_0x3c6ce1(0x2a3)],_0x182292[_0x3c6ce1(0x207)],_0x159631[_0x3c6ce1(0x418)],_0x2d997c);return _0x467edf?{'x':_0x467edf[_0x3c6ce1(0x456)],'y':_0x467edf['viewportScrollY']}:_0x312525;}['_getZoomRatio'](_0xbefcec,_0x39b3af){const _0x792cec=_0x1d5b92;var _0x530812;let _0x14a6c9=(_0x530812=this[_0x792cec(0x260)][_0x792cec(0x18f)](_0xbefcec))==null?void 0x0:_0x530812[_0x792cec(0x185)](_0x39b3af);return(_0x14a6c9==null?void 0x0:_0x14a6c9[_0x792cec(0x331)]())??0x1;}['_handleConnectorPointerUp'](_0xa776fd,_0x4cc2bb,_0x42264c,_0x11a502,_0x21ff99){const _0x2e108b=_0x1d5b92;this[_0x2e108b(0x1ae)]['unsubscribe'](),this['_cxtHandlerPointerUp'][_0x2e108b(0x3d9)](),this['_sheetShapeAdjustController'][_0x2e108b(0x176)]();let _0x522d73=this[_0x2e108b(0x123)];this[_0x2e108b(0x149)]['endConnectionDetection']();let _0x2f67dc=this[_0x2e108b(0x192)](this[_0x2e108b(0x1f4)],this['_subUnitId']),_0x25f092=this[_0x2e108b(0x3a2)](this[_0x2e108b(0x1f4)],this[_0x2e108b(0x387)]),_0x3f995d={'x':_0x42264c[_0x2e108b(0x230)]/_0x25f092+_0x2f67dc['x'],'y':_0x42264c[_0x2e108b(0x257)]/_0x25f092+_0x2f67dc['y']},_0x34cd4f=_0x522d73?_0x522d73['worldPoint']:_0x3f995d,_0x25ae9e=_0x11a502?this[_0x2e108b(0x132)][_0x2e108b(0x333)]():this['_activeShapeModel']['getStartConnectInfo'](),_0xa3fb7f=this[_0x2e108b(0x132)][_0x2e108b(0x2c6)]();_0x25ae9e?this[_0x2e108b(0x440)](_0x25ae9e,_0x34cd4f,_0x11a502,_0x522d73,_0x21ff99):this['_handleFreeEndpointPointerUp'](_0x4cc2bb,_0x34cd4f,_0x11a502,_0x522d73,_0x21ff99,_0xa3fb7f),this[_0x2e108b(0x444)]=!0x1,this[_0x2e108b(0x274)]=!0x1,this[_0x2e108b(0x123)]=null,_0xa776fd[_0x2e108b(0x28f)]();}[_0x1d5b92(0x311)](_0x18f64a,_0x16bcb4,_0x3618c3,_0x388ca2,_0x5d8e1b,_0xddcced){const _0x22ab15=_0x1d5b92;let _0x1ca08f=_0xddcced===n[_0x22ab15(0x137)][_0x22ab15(0x489)]||_0xddcced===n[_0x22ab15(0x137)][_0x22ab15(0x23c)],_0x56b774=_0x3618c3?_0x16bcb4:_0x18f64a,_0x47bd58=_0x3618c3?_0x18f64a:_0x16bcb4,_0x5b065c=this[_0x22ab15(0x132)][_0x22ab15(0x377)](),_0x5af7ce=this[_0x22ab15(0x132)][_0x22ab15(0x2c6)](),_0xc0bf4a=(0x0,n[_0x22ab15(0x286)])(_0x5af7ce),_0x169ceb=n[_0x22ab15(0x1a4)]['getBentTypeFromPoints'](_0x5b065c,_0xc0bf4a),_0x381e7a=_0x1ca08f?n['ConnectorCoordinateTransform'][_0x22ab15(0x374)](_0x56b774,_0x47bd58):n['ConnectorCoordinateTransform'][_0x22ab15(0x195)](_0x18f64a,_0x16bcb4,_0x3618c3,_0x169ceb);_0x388ca2?this['_executeConnectionCommand'](_0x381e7a,_0x388ca2,_0x3618c3,_0x5d8e1b):this[_0x22ab15(0x229)](_0x381e7a,_0x5d8e1b);}[_0x1d5b92(0x440)](_0xa2b13b,_0x2a7350,_0x6d2c7,_0x48b4f3,_0x48b3eb){const _0x4e0957=_0x1d5b92;let _0x21185a=this[_0x4e0957(0x146)](_0xa2b13b);if(!_0x21185a)return;let _0x198d87=_0x48b4f3?_0x48b4f3[_0x4e0957(0x1c9)]:this[_0x4e0957(0x1f5)](_0x21185a[_0x4e0957(0x1be)],_0x2a7350),_0x4294da;if(_0x48b4f3){let _0x14edc6=this[_0x4e0957(0x22b)][_0x4e0957(0x255)]({'unitId':_0x48b4f3[_0x4e0957(0x2de)],'subUnitId':_0x48b4f3[_0x4e0957(0x365)],'drawingId':_0x48b4f3[_0x4e0957(0x13d)]});if(_0x14edc6!=null&&_0x14edc6['transform']){let {left:_0x11ed6c=0x0,top:_0x1c3539=0x0,width:_0x25315d=0x0,height:_0x42a011=0x0,angle:_0x464e3b}=_0x14edc6[_0x4e0957(0x136)];_0x4294da=(0x0,n[_0x4e0957(0x32d)])({'left':_0x11ed6c,'top':_0x1c3539,'width':_0x25315d,'height':_0x42a011},_0x464e3b||0x0);}else _0x4294da={'left':_0x2a7350['x'],'top':_0x2a7350['y'],'width':0x0,'height':0x0};}else _0x4294da={'left':_0x2a7350['x'],'top':_0x2a7350['y'],'width':0x0,'height':0x0};let _0x5afc61={'point':_0x2a7350,'angle':_0x198d87,'bounds':_0x4294da},_0x22978d=_0x6d2c7?_0x5afc61:_0x21185a,_0x288db4=_0x6d2c7?_0x21185a:_0x5afc61,_0x2e0de3=this[_0x4e0957(0x132)][_0x4e0957(0x2c6)](),_0x4036c4=(0x0,n[_0x4e0957(0x183)])(_0x22978d,_0x288db4,_0x2e0de3);this[_0x4e0957(0x132)][_0x4e0957(0x24e)]();let _0x482947=(0x0,n[_0x4e0957(0x414)])(_0x4036c4,_0x2e0de3);_0x48b4f3?this[_0x4e0957(0x3fe)](_0x482947,_0x48b4f3,_0xa2b13b,_0x6d2c7,_0x48b3eb):this[_0x4e0957(0x258)](_0x482947,_0xa2b13b,_0x6d2c7,_0x48b3eb);}[_0x1d5b92(0x20f)](_0x1d258d,_0x215edc,_0x5174bf,_0x1115ef){const _0x58b472=_0x1d5b92;let _0x10edf6=this['_activeShapeModel'][_0x58b472(0x412)]()['relation'],_0x41670c={..._0x10edf6},_0x4203e4={'shapeId':_0x215edc['shapeId'],'cxnIndex':_0x215edc[_0x58b472(0x355)]};_0x5174bf?_0x41670c[_0x58b472(0x1e1)]=_0x4203e4:_0x41670c['to']=_0x4203e4;let _0x5da833=this[_0x58b472(0x132)][_0x58b472(0x2c6)](),_0x1dc15=(0x0,n[_0x58b472(0x414)])(_0x1d258d['worldPoints'],_0x5da833),_0x1b9646={'unitId':this[_0x58b472(0x1f4)],'subUnitId':this[_0x58b472(0x387)],'connectorShapeId':this['_activeShapeId'],'width':_0x1d258d[_0x58b472(0x43b)][_0x58b472(0x2ff)],'height':_0x1d258d['worldRect'][_0x58b472(0x2c3)],'left':_0x1d258d[_0x58b472(0x43b)][_0x58b472(0x353)],'top':_0x1d258d[_0x58b472(0x43b)][_0x58b472(0x244)],'flipX':_0x1d258d['worldRect'][_0x58b472(0x478)]||!0x1,'flipY':_0x1d258d[_0x58b472(0x43b)]['flipY']||!0x1,'newAdjustValues':_0x1dc15[_0x58b472(0x1ce)],'oldAdjustValues':_0x1115ef,'oldRelation':_0x10edf6,'newRelation':_0x41670c,'newLineType':_0x1dc15[_0x58b472(0x2c9)],'oldLineType':_0x5da833};this[_0x58b472(0x1db)][_0x58b472(0x37c)](i[_0x58b472(0x201)]['id'],_0x1b9646);}['_executeResizeCommand'](_0x58ad6f,_0x29947f){const _0xd476e6=_0x1d5b92;let _0x37b36f=this[_0xd476e6(0x132)][_0xd476e6(0x2c6)](),_0x1cfa1e=(0x0,n[_0xd476e6(0x414)])(_0x58ad6f[_0xd476e6(0x285)],_0x37b36f),_0xc76182={'unitId':this['_unitId'],'subUnitId':this[_0xd476e6(0x387)],'shapeId':this[_0xd476e6(0x1f8)],'width':_0x58ad6f[_0xd476e6(0x43b)][_0xd476e6(0x2ff)],'height':_0x58ad6f[_0xd476e6(0x43b)][_0xd476e6(0x2c3)],'left':_0x58ad6f[_0xd476e6(0x43b)]['left'],'top':_0x58ad6f[_0xd476e6(0x43b)][_0xd476e6(0x244)],'flipX':_0x58ad6f[_0xd476e6(0x43b)]['flipX']||!0x1,'flipY':_0x58ad6f['worldRect'][_0xd476e6(0x2b1)]||!0x1,'angle':_0x58ad6f[_0xd476e6(0x43b)][_0xd476e6(0x1c9)]||0x0,'newAdjustValues':_0x1cfa1e[_0xd476e6(0x1ce)],'oldAdjustValues':_0x29947f,'newLineType':_0x1cfa1e['lineType'],'oldLineType':_0x37b36f};this[_0xd476e6(0x1db)][_0xd476e6(0x37c)](i['UpdateLineShapeResizeCommand']['id'],_0xc76182);}[_0x1d5b92(0x3fe)](_0x4c1fa4,_0x5e681f,_0x5398a8,_0x1e2705,_0x4ad525){const _0x125285=_0x1d5b92;let _0x2a4b99=this['_activeShapeModel']['getShapeData']()[_0x125285(0x2d1)],_0x2b7ac7={..._0x2a4b99},_0x2fe3f2={'shapeId':_0x5e681f[_0x125285(0x13d)],'cxnIndex':_0x5e681f[_0x125285(0x355)]};_0x1e2705?(_0x2b7ac7[_0x125285(0x1e1)]=_0x2fe3f2,_0x2b7ac7['to']=_0x5398a8):(_0x2b7ac7[_0x125285(0x1e1)]=_0x5398a8,_0x2b7ac7['to']=_0x2fe3f2);let _0x281414={'unitId':this['_unitId'],'subUnitId':this[_0x125285(0x387)],'connectorShapeId':this[_0x125285(0x1f8)],'width':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x2ff)],'height':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x2c3)],'left':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x353)],'top':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x244)],'flipX':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x478)]||!0x1,'flipY':_0x4c1fa4[_0x125285(0x43b)][_0x125285(0x2b1)]||!0x1,'oldAdjustValues':_0x4ad525,'newAdjustValues':_0x4c1fa4[_0x125285(0x1ce)],'newLineType':_0x4c1fa4[_0x125285(0x2c9)],'rotation':_0x4c1fa4[_0x125285(0x47e)],'oldRelation':_0x2a4b99,'newRelation':_0x2b7ac7};this[_0x125285(0x1db)][_0x125285(0x37c)](i[_0x125285(0x201)]['id'],_0x281414);}[_0x1d5b92(0x258)](_0x2e1444,_0x58336a,_0x94c7d3,_0x40645d){const _0x290347=_0x1d5b92;let _0x220606=this[_0x290347(0x132)][_0x290347(0x412)]()[_0x290347(0x2d1)],_0x250c9a={};_0x94c7d3?(_0x250c9a['to']=_0x58336a,_0x250c9a[_0x290347(0x1e1)]=void 0x0):(_0x250c9a[_0x290347(0x1e1)]=_0x58336a,_0x250c9a['to']=void 0x0);let _0x102ce7={'unitId':this['_unitId'],'subUnitId':this[_0x290347(0x387)],'connectorShapeId':this[_0x290347(0x1f8)],'width':_0x2e1444[_0x290347(0x43b)][_0x290347(0x2ff)],'height':_0x2e1444['worldRect'][_0x290347(0x2c3)],'left':_0x2e1444[_0x290347(0x43b)]['left'],'top':_0x2e1444[_0x290347(0x43b)][_0x290347(0x244)],'flipX':_0x2e1444[_0x290347(0x43b)][_0x290347(0x478)]||!0x1,'flipY':_0x2e1444[_0x290347(0x43b)][_0x290347(0x2b1)]||!0x1,'oldAdjustValues':_0x40645d,'newAdjustValues':_0x2e1444[_0x290347(0x1ce)],'newLineType':_0x2e1444[_0x290347(0x2c9)],'rotation':_0x2e1444[_0x290347(0x47e)],'oldRelation':_0x220606,'newRelation':_0x250c9a};this['_commandService'][_0x290347(0x37c)](i[_0x290347(0x201)]['id'],_0x102ce7);}[_0x1d5b92(0x1d0)](_0x458e5d,_0x1aa380,_0x3ffebd){const _0x124eca=_0x1d5b92;this[_0x124eca(0x2f1)]((0x0,a['toDisposable'])(_0x458e5d[_0x124eca(0x329)]['subscribeEvent']((_0x5bfccd,_0x40209d)=>{const _0x4fb30e=_0x124eca;let _0x5048ea=_0x458e5d[_0x4fb30e(0x267)]();if(this[_0x4fb30e(0x132)]=this[_0x4fb30e(0x477)]['getShapeModel'](_0x5048ea[_0x4fb30e(0x2de)],_0x5048ea[_0x4fb30e(0x365)],_0x5048ea[_0x4fb30e(0x453)]),!this[_0x4fb30e(0x132)])return;let _0x45e4ec={};this[_0x4fb30e(0x132)][_0x4fb30e(0x184)]()[_0x4fb30e(0x26c)](_0x501837=>{const _0x348082=_0x4fb30e;let _0x75860f=this['_activeShapeModel'][_0x348082(0x419)](_0x501837);_0x75860f!==void 0x0&&(_0x45e4ec[_0x501837]=_0x75860f);});let _0x466505=this['_getDrawingRect']();if(!_0x466505)return;this['_baseDrawingRect']={..._0x466505};let _0xbe674d=new n['ConnectorCoordinateTransform'](this[_0x4fb30e(0x44c)]),_0x478430=(0x0,s[_0x4fb30e(0x39a)])({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x3b8c11=_0x1aa380[_0x4fb30e(0x19b)](_0x478430);this[_0x4fb30e(0x444)]=!0x0,_0x1aa380[_0x4fb30e(0x43d)](),this[_0x4fb30e(0x149)][_0x4fb30e(0x319)](_0x1aa380,this[_0x4fb30e(0x1f4)],this[_0x4fb30e(0x387)],this['_activeShapeId']),this[_0x4fb30e(0x123)]=null;let _0x10185b=this[_0x4fb30e(0x132)][_0x4fb30e(0x377)](),_0x5e4fb5=_0x10185b[0x0],_0x25ae65=_0x10185b[_0x10185b['length']-0x1],_0x4dedd8=_0x3ffebd?_0xbe674d['localToWorld'](_0x25ae65):_0xbe674d[_0x4fb30e(0x40a)](_0x5e4fb5);this[_0x4fb30e(0x1ae)]=_0x1aa380[_0x4fb30e(0x1d9)][_0x4fb30e(0x1e4)]((_0x2d0866,_0x6a6650)=>{const _0x56b9f0=_0x4fb30e;if(!this[_0x56b9f0(0x444)]||!this['_activeShapeModel'])return;this['_hasReset']||=(this[_0x56b9f0(0x3d7)][_0x56b9f0(0x41f)](),this[_0x56b9f0(0x132)][_0x56b9f0(0x3ae)](),!0x0);let _0x2efa49=this[_0x56b9f0(0x192)](this[_0x56b9f0(0x1f4)],this[_0x56b9f0(0x387)]),_0x147293=this[_0x56b9f0(0x3a2)](this[_0x56b9f0(0x1f4)],this[_0x56b9f0(0x387)]),_0x7eb91d={'x':_0x2d0866[_0x56b9f0(0x230)]/_0x147293+_0x2efa49['x'],'y':_0x2d0866[_0x56b9f0(0x257)]/_0x147293+_0x2efa49['y']},_0x1a1437=this[_0x56b9f0(0x149)][_0x56b9f0(0x2b9)](_0x7eb91d);if(_0x1a1437){let {shapeId:_0x597258,unitId:_0xa02cbb,subUnitId:_0x18f0d2}=_0x1a1437;if(_0x597258&&_0xa02cbb&&_0x18f0d2){let _0x272323=(0x0,s[_0x56b9f0(0x39a)])({'unitId':_0xa02cbb,'subUnitId':_0x18f0d2,'drawingId':_0x597258});_0x1a1437[_0x56b9f0(0x1c9)]=(_0x1aa380[_0x56b9f0(0x19b)](_0x272323)['angle']||0x0)+_0x1a1437[_0x56b9f0(0x1c9)];}}this['_currentConnectionTarget']=_0x1a1437;let _0xfc2f3a=_0x3ffebd?this['_activeShapeModel'][_0x56b9f0(0x333)]():this[_0x56b9f0(0x132)][_0x56b9f0(0x293)]();if(_0xfc2f3a){this[_0x56b9f0(0x40e)](_0xfc2f3a,_0x7eb91d,_0x3ffebd,_0x3b8c11,_0x458e5d);return;}this[_0x56b9f0(0x259)](_0x7eb91d,_0x4dedd8,_0x3ffebd,_0x3b8c11,_0x458e5d);}),this[_0x4fb30e(0x2a8)]=_0x1aa380[_0x4fb30e(0x490)]['subscribeEvent']((_0x1f5832,_0x23b5c0)=>{this['_handleConnectorPointerUp'](_0x1aa380,_0x4dedd8,_0x1f5832,_0x3ffebd,_0x45e4ec);}),_0x40209d[_0x4fb30e(0x37b)]();})));}[_0x1d5b92(0x446)](_0x15b784,_0x25a9bd,_0x2baec9){const _0xdc7c98=_0x1d5b92;let _0x397075=this[_0xdc7c98(0x477)][_0xdc7c98(0x1cd)](_0x15b784,_0x25a9bd,_0x2baec9);if(!_0x397075||_0x397075[_0xdc7c98(0x190)]===0x0)return;let _0x12e50e=this['_renderManagerService']['getRenderUnitById'](_0x15b784);if(!_0x12e50e)return;let {scene:_0x3473d8}=_0x12e50e;for(let _0x30b3a4 of _0x397075){let _0xcce799=_0x30b3a4[_0xdc7c98(0x438)],_0x2126a5=this['_sheetsShapeService'][_0xdc7c98(0x1df)](_0x15b784,_0x25a9bd,_0xcce799);if(!_0x2126a5)continue;let _0x44458f=_0x2126a5['getStartConnectInfo'](),_0x40ec5=_0x2126a5[_0xdc7c98(0x333)](),_0x4184d4=(_0x44458f==null?void 0x0:_0x44458f[_0xdc7c98(0x13d)])===_0x2baec9,_0x394913=(0x0,s['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x15b784,'subUnitId':_0x25a9bd,'drawingId':_0xcce799}),_0x3e7e7b=_0x3473d8['getObjectIncludeInGroup'](_0x394913);if(!_0x3e7e7b)continue;let _0x3ee02d=this[_0xdc7c98(0x22b)][_0xdc7c98(0x255)]({'unitId':_0x15b784,'subUnitId':_0x25a9bd,'drawingId':_0xcce799});_0x3ee02d!=null&&_0x3ee02d['transform']&&(_0x44458f&&_0x40ec5?this['_rerouteConnectorLine'](_0x15b784,_0x25a9bd,_0xcce799,_0x2126a5,_0x44458f,_0x40ec5,_0x3e7e7b):this[_0xdc7c98(0x3bc)](_0x15b784,_0x25a9bd,_0xcce799,_0x2126a5,_0x4184d4?_0x44458f:_0x40ec5,_0x4184d4,_0x3ee02d,_0x3e7e7b));}}[_0x1d5b92(0x225)](_0x2a0929,_0xcea9b9,_0x1508d3,_0x10f6bc,_0x1a9601,_0x20b101,_0x14e2b1){const _0x402f43=_0x1d5b92;let _0x1ee23f=this[_0x402f43(0x1f4)],_0x42adfa=this['_subUnitId'];this[_0x402f43(0x1f4)]=_0x2a0929,this[_0x402f43(0x387)]=_0xcea9b9;let _0x5c79b4=this[_0x402f43(0x146)](_0x1a9601),_0x2386df=this[_0x402f43(0x146)](_0x20b101);if(this[_0x402f43(0x1f4)]=_0x1ee23f,this[_0x402f43(0x387)]=_0x42adfa,!_0x5c79b4||!_0x2386df)return;let _0xa86f01=_0x10f6bc[_0x402f43(0x2c6)](),_0x444cc8=(0x0,n[_0x402f43(0x183)])(_0x5c79b4,_0x2386df,_0xa86f01);_0x444cc8&&_0x10f6bc['updateLinePoints'](_0x444cc8);let _0x5e492a=(0x0,n[_0x402f43(0x414)])(_0x444cc8,_0xa86f01);_0x5e492a[_0x402f43(0x2c9)]!==_0xa86f01&&_0x10f6bc[_0x402f43(0x13e)](_0x5e492a['lineType']),_0x10f6bc[_0x402f43(0x3ae)]();for(let [_0x4cb09e,_0x2e5997]of Object['entries'](_0x5e492a[_0x402f43(0x1ce)]))_0x10f6bc[_0x402f43(0x3de)](_0x4cb09e,_0x2e5997);_0x10f6bc[_0x402f43(0x29d)]({'width':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x2ff)],'height':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x2c3)]}),_0x14e2b1[_0x402f43(0x1d5)]({'flipX':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x478)],'flipY':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x2b1)],'left':_0x5e492a[_0x402f43(0x43b)]['left'],'top':_0x5e492a[_0x402f43(0x43b)]['top'],'width':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x2ff)],'height':_0x5e492a[_0x402f43(0x43b)][_0x402f43(0x2c3)],'angle':_0x5e492a[_0x402f43(0x47e)]}),_0x10f6bc[_0x402f43(0x24e)]();}['_moveConnectorWithShape'](_0x5bb77b,_0x139bee,_0xe74e09,_0x1109fc,_0x3d7f5f,_0x510a50,_0xa041a7,_0x26ef69){const _0x400d16=_0x1d5b92;let _0x4d46a4=this['_unitId'],_0x4e38b5=this['_subUnitId'];this[_0x400d16(0x1f4)]=_0x5bb77b,this[_0x400d16(0x387)]=_0x139bee;let _0x3f9d7d=this[_0x400d16(0x146)](_0x3d7f5f);if(this[_0x400d16(0x1f4)]=_0x4d46a4,this[_0x400d16(0x387)]=_0x4e38b5,!_0x3f9d7d)return;let {left:_0x17c65f=0x0,top:_0x26087c=0x0,width:_0x171287=0x0,height:_0x2e4bd6=0x0,flipX:_0x589b97=!0x1,flipY:_0x59acfb=!0x1}=_0xa041a7['transform'],_0x34e7d4=_0x1109fc['getConnectorLinePoints']();if(_0x34e7d4[_0x400d16(0x190)]<0x2)return;let _0x217696=new n[(_0x400d16(0x1a4))]({'left':_0x17c65f,'top':_0x26087c,'width':_0x171287,'height':_0x2e4bd6,'flipX':_0x589b97,'flipY':_0x59acfb}),_0x28acef=_0x510a50?_0x34e7d4[_0x34e7d4[_0x400d16(0x190)]-0x1]:_0x34e7d4[0x0],_0x58f217=_0x217696[_0x400d16(0x40a)](_0x28acef),_0x494f20=n[_0x400d16(0x1a4)][_0x400d16(0x195)](_0x58f217,_0x3f9d7d[_0x400d16(0x1be)],!_0x510a50);_0x26ef69['transformByState']({'flipX':_0x494f20['worldRect'][_0x400d16(0x478)],'flipY':_0x494f20['worldRect'][_0x400d16(0x2b1)],'left':_0x494f20[_0x400d16(0x43b)][_0x400d16(0x353)],'top':_0x494f20['worldRect'][_0x400d16(0x244)],'width':_0x494f20['worldRect'][_0x400d16(0x2ff)],'height':_0x494f20[_0x400d16(0x43b)][_0x400d16(0x2c3)],'angle':_0x494f20[_0x400d16(0x43b)]['angle']}),_0x26ef69[_0x400d16(0x2a9)](!0x0);}[_0x1d5b92(0x1ba)](){const _0xe2509a=_0x1d5b92;this[_0xe2509a(0x1b7)][_0xe2509a(0x190)]!==0x0&&(this['_connectorObjects'][_0xe2509a(0x26c)](_0x4ecc71=>{const _0x3de5bd=_0xe2509a;_0x4ecc71[_0x3de5bd(0x1f9)]();}),this[_0xe2509a(0x1b7)]=[]);}[_0x1d5b92(0x3c4)](){const _0x1c88f3=_0x1d5b92;let _0x2123b0=this[_0x1c88f3(0x260)]['getCurrentTypeOfUnit$'](a[_0x1c88f3(0x46e)][_0x1c88f3(0x3f2)]);this[_0x1c88f3(0x2f1)](_0x2123b0[_0x1c88f3(0x35a)]((0x0,u[_0x1c88f3(0x2df)])(_0x13dfd1=>_0x13dfd1?_0x13dfd1['activeSheet$'][_0x1c88f3(0x35a)]((0x0,u[_0x1c88f3(0x2df)])(_0x10647f=>{const _0x157111=_0x1c88f3;if(!_0x10647f)return u[_0x157111(0x40b)];let _0x2de717=_0x13dfd1[_0x157111(0x2ba)](),_0x35c438=this[_0x157111(0x3ee)][_0x157111(0x26f)](_0x2de717),_0x3cd7dc=_0x35c438==null?void 0x0:_0x35c438[_0x157111(0x418)];return _0x3cd7dc?(0x0,u['of'])(_0x3cd7dc):u['EMPTY'];})):u[_0x1c88f3(0x40b)]))['subscribe'](_0x28ac6c=>{const _0x3a352f=_0x1c88f3;let _0x1a3f9b=_0x28ac6c['getTransformerByCreate']();this[_0x3a352f(0x2f1)](_0x28ac6c[_0x3a352f(0x1d9)][_0x3a352f(0x1e4)](_0x529450=>{const _0x310434=_0x3a352f;this[_0x310434(0x254)]&&this[_0x310434(0x1f8)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x3a352f(0x2f1)](_0x1a3f9b['changeStart$'][_0x3a352f(0x243)](_0x5c4f48=>{const _0x34958e=_0x3a352f;let {objects:_0x5a72d1}=_0x5c4f48;this[_0x34958e(0x1ba)](),_0x5a72d1!==null&&_0x5a72d1['size']===0x1&&_0x5a72d1['values']()[_0x34958e(0x27a)]()[_0x34958e(0x2cb)]instanceof D&&(this[_0x34958e(0x254)]=!0x0);})),this['disposeWithMe'](_0x1a3f9b[_0x3a352f(0x34a)][_0x3a352f(0x243)](_0x4ccdf3=>{const _0x1ff592=_0x3a352f;this[_0x1ff592(0x254)]&&this[_0x1ff592(0x1ba)]();})),this[_0x3a352f(0x2f1)](_0x28ac6c[_0x3a352f(0x490)]['subscribeEvent'](()=>{const _0x10cab7=_0x3a352f;this['_isDrawingShapePointDown']&&(this['_isDrawingShapePointDown']=!0x1,this[_0x10cab7(0x317)]());})),this[_0x3a352f(0x2f1)](_0x1a3f9b[_0x3a352f(0x3da)][_0x3a352f(0x243)](()=>{const _0x39bda4=_0x3a352f;this[_0x39bda4(0x1f4)]&&this['_subUnitId']&&this['_activeShapeId']&&this[_0x39bda4(0x22b)]['getDrawingByParam']({'unitId':this[_0x39bda4(0x1f4)],'subUnitId':this[_0x39bda4(0x387)],'drawingId':this[_0x39bda4(0x1f8)]})&&(this[_0x39bda4(0x1ba)](),this[_0x39bda4(0x317)]());}));}));}[_0x1d5b92(0x32c)](){const _0x4b95c5=_0x1d5b92;this[_0x4b95c5(0x2f1)](this[_0x4b95c5(0x22b)][_0x4b95c5(0x1c2)][_0x4b95c5(0x243)](_0x347505=>{const _0x4d7d52=_0x4b95c5;if(_0x347505[_0x4d7d52(0x190)]===0x1){let _0x324797=_0x347505[0x0];if(_0x324797[_0x4d7d52(0x144)]===a['DrawingTypeEnum'][_0x4d7d52(0x3e8)]){let _0x464b47=this['_sheetsShapeService'][_0x4d7d52(0x1df)](_0x324797[_0x4d7d52(0x2de)],_0x324797['subUnitId'],_0x324797[_0x4d7d52(0x453)]);if(_0x464b47&&(0x0,n[_0x4d7d52(0x3ba)])(_0x464b47['getShapeType']())){this[_0x4d7d52(0x1f8)]=_0x324797[_0x4d7d52(0x453)],this[_0x4d7d52(0x1f4)]=_0x324797[_0x4d7d52(0x2de)],this['_subUnitId']=_0x324797[_0x4d7d52(0x365)],this[_0x4d7d52(0x1ba)](),this[_0x4d7d52(0x317)]();return;}}}this[_0x4d7d52(0x1f8)]=void 0x0,this['_unitId']=void 0x0,this[_0x4d7d52(0x387)]=void 0x0,this[_0x4d7d52(0x1ba)]();})),this[_0x4b95c5(0x2f1)](this[_0x4b95c5(0x22b)][_0x4b95c5(0x410)][_0x4b95c5(0x243)](_0x5f0c4c=>{const _0x347e2f=_0x4b95c5;if(_0x5f0c4c[_0x347e2f(0x190)]===0x1){var _0x45eeb4;let _0x426169=_0x5f0c4c[0x0],_0x397afb=(_0x45eeb4=this[_0x347e2f(0x22b)][_0x347e2f(0x255)](_0x426169))==null?void 0x0:_0x45eeb4[_0x347e2f(0x144)];_0x397afb===a[_0x347e2f(0x385)][_0x347e2f(0x3e8)]&&_0x426169['drawingId']===this[_0x347e2f(0x1f8)]?(this[_0x347e2f(0x1ba)](),this[_0x347e2f(0x317)]()):!this['_activeShapeId']&&_0x397afb===a[_0x347e2f(0x385)][_0x347e2f(0x3e8)]&&this[_0x347e2f(0x446)](_0x426169['unitId'],_0x426169['subUnitId'],_0x426169[_0x347e2f(0x453)]);}})),this[_0x4b95c5(0x2f1)](this[_0x4b95c5(0x22b)][_0x4b95c5(0x1fd)][_0x4b95c5(0x243)](_0x30c2e0=>{const _0x485796=_0x4b95c5;for(let _0x21ecde of _0x30c2e0){let {drawingId:_0x5ccf1e}=_0x21ecde;if(this[_0x485796(0x1f8)]===_0x5ccf1e){this[_0x485796(0x3f9)]();return;}}}));}[_0x1d5b92(0x40e)](_0xd2e4e7,_0x2a71f6,_0x3d2735,_0x5b5de8,_0x29fdbd){const _0x368063=_0x1d5b92;var _0x48eefb;if(!this[_0x368063(0x132)])return;let _0x331441=this[_0x368063(0x146)](_0xd2e4e7);if(!_0x331441)return;let _0x13db97=this[_0x368063(0x123)]?this[_0x368063(0x123)]['worldPoint']:_0x2a71f6,_0x7bf565=this[_0x368063(0x123)]?this[_0x368063(0x123)][_0x368063(0x1c9)]:this['_calculateFreeEndpointAngle'](_0x331441[_0x368063(0x1be)],_0x13db97),_0x176712;if(this[_0x368063(0x123)]){let _0x4e04cd=this[_0x368063(0x22b)][_0x368063(0x255)]({'unitId':this[_0x368063(0x123)][_0x368063(0x2de)],'subUnitId':this[_0x368063(0x123)][_0x368063(0x365)],'drawingId':this[_0x368063(0x123)][_0x368063(0x13d)]});if(_0x4e04cd!=null&&_0x4e04cd['transform']){let {left:_0x4f1285=0x0,top:_0x44df37=0x0,width:_0x4c457d=0x0,height:_0x55e678=0x0,angle:_0x5cde2c}=_0x4e04cd[_0x368063(0x136)];_0x176712=(0x0,n[_0x368063(0x32d)])({'left':_0x4f1285,'top':_0x44df37,'width':_0x4c457d,'height':_0x55e678},_0x5cde2c||0x0);}else _0x176712={'left':_0x13db97['x'],'top':_0x13db97['y'],'width':0x0,'height':0x0};}else _0x176712={'left':_0x13db97['x'],'top':_0x13db97['y'],'width':0x0,'height':0x0};let _0x1b5f96={'point':_0x13db97,'angle':_0x7bf565,'bounds':_0x176712},_0x182f61=_0x3d2735?_0x1b5f96:_0x331441,_0x228284=_0x3d2735?_0x331441:_0x1b5f96,_0x1eb4de=this[_0x368063(0x132)][_0x368063(0x2c6)](),_0x5a1963=(0x0,n[_0x368063(0x183)])(_0x182f61,_0x228284,_0x1eb4de);_0x5a1963&&this['_activeShapeModel'][_0x368063(0x3b5)](_0x5a1963);let _0x18cf19=(0x0,n['computeConnectorRouteLayout'])(_0x5a1963,_0x1eb4de);_0x18cf19['lineType']!==_0x1eb4de&&this[_0x368063(0x132)]['changeShapeType'](_0x18cf19['lineType']);for(let [_0x22edd9,_0x311a71]of Object[_0x368063(0x345)](_0x18cf19[_0x368063(0x1ce)]))this[_0x368063(0x132)][_0x368063(0x3de)](_0x22edd9,_0x311a71);this[_0x368063(0x132)][_0x368063(0x29d)]({'width':_0x18cf19['worldRect'][_0x368063(0x2ff)],'height':_0x18cf19[_0x368063(0x43b)][_0x368063(0x2c3)]}),_0x5b5de8[_0x368063(0x1d5)]({'flipX':_0x18cf19['worldRect'][_0x368063(0x478)],'flipY':_0x18cf19[_0x368063(0x43b)][_0x368063(0x2b1)],'left':_0x18cf19[_0x368063(0x43b)][_0x368063(0x353)],'top':_0x18cf19[_0x368063(0x43b)][_0x368063(0x244)],'width':_0x18cf19[_0x368063(0x43b)][_0x368063(0x2ff)],'height':_0x18cf19[_0x368063(0x43b)][_0x368063(0x2c3)],'angle':_0x18cf19[_0x368063(0x47e)]}),_0x5b5de8[_0x368063(0x2a9)](!0x0);let _0x5ce253=((_0x48eefb=this['_currentConnectionTarget'])==null?void 0x0:_0x48eefb[_0x368063(0x167)])??_0x2a71f6;_0x29fdbd[_0x368063(0x1d5)]({'left':_0x5ce253['x']-n[_0x368063(0x499)][_0x368063(0x249)],'top':_0x5ce253['y']-n['ShapeDefaultConfig'][_0x368063(0x249)]});}[_0x1d5b92(0x259)](_0x3567d7,_0x4dea24,_0x578018,_0x102800,_0x88c2f8){const _0x16543f=_0x1d5b92;var _0x9f879,_0x517137;let _0x1e35ba=((_0x9f879=this[_0x16543f(0x123)])==null?void 0x0:_0x9f879[_0x16543f(0x167)])??_0x3567d7,_0x32cbae=n[_0x16543f(0x1a4)][_0x16543f(0x195)](_0x4dea24,_0x1e35ba,_0x578018);_0x102800[_0x16543f(0x1d5)]({'flipX':_0x32cbae[_0x16543f(0x43b)][_0x16543f(0x478)],'flipY':_0x32cbae[_0x16543f(0x43b)][_0x16543f(0x2b1)],'left':_0x32cbae['worldRect'][_0x16543f(0x353)],'top':_0x32cbae[_0x16543f(0x43b)][_0x16543f(0x244)],'width':_0x32cbae[_0x16543f(0x43b)][_0x16543f(0x2ff)],'height':_0x32cbae['worldRect'][_0x16543f(0x2c3)],'angle':_0x32cbae[_0x16543f(0x43b)]['angle']});let _0x404942=((_0x517137=this[_0x16543f(0x123)])==null?void 0x0:_0x517137[_0x16543f(0x167)])??_0x3567d7;_0x88c2f8[_0x16543f(0x1d5)]({'left':_0x404942['x']-n[_0x16543f(0x499)][_0x16543f(0x249)],'top':_0x404942['y']-n[_0x16543f(0x499)][_0x16543f(0x249)]});}[_0x1d5b92(0x146)](_0x3cd22d){const _0xfc146f=_0x1d5b92;if(!this[_0xfc146f(0x1f4)]||!this[_0xfc146f(0x387)])return null;let {shapeId:_0x29111d,cxnIndex:_0x2277c6}=_0x3cd22d,_0x27d915=this[_0xfc146f(0x477)][_0xfc146f(0x1df)](this[_0xfc146f(0x1f4)],this[_0xfc146f(0x387)],_0x29111d);if(!_0x27d915)return null;let _0x2837f5=this[_0xfc146f(0x22b)][_0xfc146f(0x255)]({'unitId':this['_unitId'],'subUnitId':this[_0xfc146f(0x387)],'drawingId':_0x29111d});if(!(_0x2837f5!=null&&_0x2837f5[_0xfc146f(0x136)]))return null;let {left:_0x5d9815=0x0,top:_0x36c283=0x0,width:_0x259d4c=0x0,height:_0x2cf711=0x0,flipX:_0x29e4b6=!0x1,flipY:_0x276f97=!0x1,angle:_0x45af52}=_0x2837f5['transform'];_0x27d915['updateContext']({'width':_0x259d4c,'height':_0x2cf711});let _0x1695bf=_0x27d915[_0xfc146f(0x15a)]()['find'](_0x5622fc=>_0x5622fc[_0xfc146f(0x1e6)]===_0x2277c6);if(!_0x1695bf)return null;let _0x578d53=_0x29e4b6?_0x259d4c-_0x1695bf['x']:_0x1695bf['x'],_0x1def6a=_0x276f97?_0x2cf711-_0x1695bf['y']:_0x1695bf['y'];if(_0x45af52!==0x0&&_0x45af52!=null){let _0x4788fc=_0x45af52*Math['PI']/0xb4,_0x32feb3=Math[_0xfc146f(0x3e1)](_0x4788fc),_0x128acb=Math['sin'](_0x4788fc),_0x19bb04=_0x259d4c/0x2,_0x4c6008=_0x2cf711/0x2,_0x484e42=_0x578d53-_0x19bb04,_0x51a76e=_0x1def6a-_0x4c6008;_0x578d53=_0x19bb04+_0x484e42*_0x32feb3-_0x51a76e*_0x128acb,_0x1def6a=_0x4c6008+_0x484e42*_0x128acb+_0x51a76e*_0x32feb3;}_0x578d53+=_0x5d9815,_0x1def6a+=_0x36c283;let _0x1c48a2=_0x1695bf[_0xfc146f(0x1b1)]/0xea60;_0x29e4b6&&(_0x1c48a2=0xb4-_0x1c48a2),_0x276f97&&(_0x1c48a2=-_0x1c48a2),_0x1c48a2+=_0x45af52||0x0,_0x1c48a2=(_0x1c48a2%0x168+0x168)%0x168;let _0x5b39eb=(0x0,n[_0xfc146f(0x32d)])({'left':_0x5d9815,'top':_0x36c283,'width':_0x259d4c,'height':_0x2cf711},_0x45af52||0x0);return{'point':{'x':_0x578d53,'y':_0x1def6a},'angle':_0x1c48a2,'bounds':_0x5b39eb};}[_0x1d5b92(0x1f5)](_0x7fecda,_0x5b29b0){const _0x3e883c=_0x1d5b92;let _0x14283d=_0x5b29b0['x']-_0x7fecda['x'],_0x2ae6c3=_0x5b29b0['y']-_0x7fecda['y'];return Math[_0x3e883c(0x224)](_0x14283d)>=Math[_0x3e883c(0x224)](_0x2ae6c3)?_0x14283d>=0x0?0xb4:0x0:_0x2ae6c3>=0x0?0x10e:0x5a;}[_0x1d5b92(0x3f9)](){const _0x49611c=_0x1d5b92;this[_0x49611c(0x1f8)]=void 0x0,this[_0x49611c(0x1f4)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x49611c(0x1ba)]();}[_0x1d5b92(0x1f9)](){const _0x1ff085=_0x1d5b92;this[_0x1ff085(0x1ba)](),super[_0x1ff085(0x1f9)]();}};Ct=A([k(0x1,a[_0x1d5b92(0x393)]),k(0x2,c[_0x1d5b92(0x33f)]),k(0x3,s[_0x1d5b92(0x366)]),k(0x4,a['IUniverInstanceService']),k(0x5,(0x0,a['Inject'])(i[_0x1d5b92(0x188)])),k(0x6,(0x0,a['Inject'])(M)),k(0x7,(0x0,a[_0x1d5b92(0x466)])(K))],Ct);let J=class extends a[_0x1d5b92(0x16d)]{constructor(_0xfa478f,_0x1a0729,_0x340604){const _0x455c8d=_0x1d5b92;super(),this[_0x455c8d(0x37d)]=_0xfa478f,this[_0x455c8d(0x22b)]=_0x1a0729,this[_0x455c8d(0x3eb)]=_0x340604,this['_initPrinting']();}[_0x1d5b92(0x1d2)](){const _0x35dbf1=_0x1d5b92;this[_0x35dbf1(0x2f1)](this[_0x35dbf1(0x37d)][_0x35dbf1(0x262)]['intercept'](this['_sheetPrintInterceptorService'][_0x35dbf1(0x262)][_0x35dbf1(0x2e8)]()[_0x35dbf1(0x151)],{'handler':(_0x37558f,_0x2e4562,_0x2cf376)=>{const _0xcf1502=_0x35dbf1;var _0xba391f;let {unitId:_0x3cb22a,subUnitId:_0x288c17,scene:_0x446393,resourceCollector:_0x552386}=_0x2e4562,_0x548f35=(_0xba391f=this[_0xcf1502(0x22b)]['getDrawingDataForUnit'](_0x3cb22a))==null?void 0x0:_0xba391f[_0x288c17];return _0x548f35==null||_0x548f35[_0xcf1502(0x1ea)][_0xcf1502(0x26c)](_0x3cbb4f=>{const _0x338cc1=_0xcf1502;let _0x207493=_0x548f35[_0x338cc1(0x33c)][_0x3cbb4f];_0x207493['drawingType']===a[_0x338cc1(0x385)][_0x338cc1(0x3e8)]&&!_0x207493[_0x338cc1(0x3b4)]&&this[_0x338cc1(0x3eb)][_0x338cc1(0x445)](_0x207493,_0x446393,{'resourceCollector':_0x552386});}),_0x2cf376(_0x37558f);}}));}};J=A([k(0x0,(0x0,a['Inject'])(l['SheetPrintInterceptorService'])),k(0x1,s['IDrawingManagerService']),k(0x2,(0x0,a[_0x1d5b92(0x466)])(j))],J);let Y=class extends a[_0x1d5b92(0x16d)]{constructor(_0x11137a,_0x1a07cf,_0x3dd9cd){const _0x2bfcf9=_0x1d5b92;super(),this['_commandService']=_0x11137a,this['_localeService']=_0x1a07cf,this['_sheetPermissionCheckController']=_0x3dd9cd,this[_0x2bfcf9(0x250)]();}[_0x1d5b92(0x250)](){const _0x3779e7=_0x1d5b92;this['disposeWithMe'](this[_0x3779e7(0x1db)][_0x3779e7(0x3e5)](_0x1ad039=>{const _0x23cb01=_0x3779e7;let _0x370a4f,_0x57003c;if(_0x1ad039['id']===i[_0x23cb01(0x480)]['id']||_0x1ad039['id']===i[_0x23cb01(0x284)]['id']||_0x1ad039['id']===i[_0x23cb01(0x201)]['id']){let _0x53450e=_0x1ad039[_0x23cb01(0x28a)];_0x370a4f=_0x53450e[_0x23cb01(0x2de)],_0x57003c=_0x53450e[_0x23cb01(0x365)];}_0x370a4f&&_0x57003c&&(this[_0x23cb01(0x236)][_0x23cb01(0x3cb)]({'workbookTypes':[o[_0x23cb01(0x44a)]],'worksheetTypes':[o[_0x23cb01(0x36b)]]},_0x370a4f,_0x57003c)||this['_sheetPermissionCheckController'][_0x23cb01(0x169)](this['_localeService']['t'](_0x23cb01(0x2e2))));}));}};Y=A([k(0x0,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x393)])),k(0x1,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x2d0)])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(o[_0x1d5b92(0x3e4)]))],Y);let X=class{constructor(_0x203f35){const _0x32b6b1=_0x1d5b92;this[_0x32b6b1(0x3ee)]=_0x203f35;}[_0x1d5b92(0x182)](_0x179050,_0xc1b833){const _0xb5d20b=_0x1d5b92;let _0x1bf572=this[_0xb5d20b(0x3ee)][_0xb5d20b(0x26f)](_0x179050[_0xb5d20b(0x2de)]),_0x53e852=_0x1bf572==null?void 0x0:_0x1bf572['scene'];if(!_0x53e852)return;let _0x595fcb=(0x0,s[_0xb5d20b(0x39a)])(_0x179050),_0x1cef11=_0x53e852[_0xb5d20b(0x19b)](_0x595fcb);_0x1cef11==null||_0x1cef11[_0xb5d20b(0x433)](_0xc1b833);}};X=A([k(0x0,c['IRenderManagerService'])],X);let Z=class extends a[_0x1d5b92(0x475)]{constructor(_0x187fe8=lt,_0x2b12ae,_0x2bb319,_0x5cd4a2,_0x25e4e0){const _0xbf94f0=_0x1d5b92;super(),this[_0xbf94f0(0x35c)]=_0x187fe8,this[_0xbf94f0(0x347)]=_0x2b12ae,this[_0xbf94f0(0x1db)]=_0x2bb319,this[_0xbf94f0(0x30f)]=_0x5cd4a2,this[_0xbf94f0(0x3ee)]=_0x25e4e0;let {..._0x576c00}=(0x0,a[_0xbf94f0(0x359)])({},lt,this[_0xbf94f0(0x35c)]);this[_0xbf94f0(0x30f)][_0xbf94f0(0x276)](ct,_0x576c00),this['_initCommands']();}[_0x1d5b92(0x485)](){const _0x6c3336=_0x1d5b92;this['_injector'][_0x6c3336(0x1a5)]([ht]),this[_0x6c3336(0x347)][_0x6c3336(0x423)](ht),(0x0,a[_0x6c3336(0x1ab)])(this[_0x6c3336(0x347)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x1d5b92(0x290)](){const _0x377924=_0x1d5b92;(0x0,a[_0x377924(0x1ab)])(this[_0x377924(0x347)],[[K],[M],[q]]),(0x0,a[_0x377924(0x1c4)])(this['_injector'],[[q],[M]]),[[K],[ut],[Ct],[_t]][_0x377924(0x26c)](_0x35f326=>{const _0xb96406=_0x377924;this['disposeWithMe'](this[_0xb96406(0x3ee)][_0xb96406(0x388)](a[_0xb96406(0x46e)][_0xb96406(0x3f2)],_0x35f326));});}[_0x1d5b92(0x28d)](){const _0x5cd4ea=_0x1d5b92;(0x0,a[_0x5cd4ea(0x1c4)])(this[_0x5cd4ea(0x347)],[[U],[G],[j],[J],[X],[H],[W],[B],[Y]]);}[_0x1d5b92(0x2c4)](){const _0x41cb1c=_0x1d5b92;this[_0x41cb1c(0x347)][_0x41cb1c(0x423)](U)[_0x41cb1c(0x26a)]();}[_0x1d5b92(0x3e2)](){const _0x8111ee=_0x1d5b92;[P,S,N,st][_0x8111ee(0x26c)](_0x464b35=>this[_0x8111ee(0x2f1)](this[_0x8111ee(0x1db)][_0x8111ee(0x2c0)](_0x464b35)));}};E(Z,_0x1d5b92(0x30d),a[_0x1d5b92(0x46e)][_0x1d5b92(0x3f2)]),E(Z,_0x1d5b92(0x21f),_0x1d5b92(0x36d)),E(Z,_0x1d5b92(0x38c),at),E(Z,_0x1d5b92(0x43f),ot),Z=A([(0x0,a[_0x1d5b92(0x2dc)])(h['UniverLicensePlugin'],g[_0x1d5b92(0x202)],s[_0x1d5b92(0x3b7)],c[_0x1d5b92(0x26d)],o[_0x1d5b92(0x23e)],_[_0x1d5b92(0x30a)],m['UniverSheetsDrawingPlugin'],r[_0x1d5b92(0x275)],v[_0x1d5b92(0x399)],i[_0x1d5b92(0x351)],l[_0x1d5b92(0x21d)],e[_0x1d5b92(0x33e)],t['UniverMobileUIPlugin']),k(0x1,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x472)])),k(0x2,a[_0x1d5b92(0x393)]),k(0x3,a[_0x1d5b92(0x2a5)]),k(0x4,c['IRenderManagerService'])],Z);const wt={'type':a[_0x1d5b92(0x27e)]['OPERATION'],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function Tt(){const _0xb45372=_0x1d5b92;let _0x144c6f=(0x0,t[_0xb45372(0x302)])(s[_0xb45372(0x366)]),_0x544abf=(0x0,t[_0xb45372(0x160)])(()=>_0x144c6f[_0xb45372(0x1c2)],_0x144c6f[_0xb45372(0x16b)](),!0x1,[_0x144c6f]);return _0x544abf[_0xb45372(0x190)]===0x0?null:(0x0,p[_0xb45372(0x1ee)])(_0xb45372(0x1e3),{'children':(0x0,p[_0xb45372(0x305)])(_0xb45372(0x1e3),{'className':_0xb45372(0x150),'children':[(0x0,p[_0xb45372(0x1ee)])(d[_0xb45372(0x11e)],{'drawings':_0x544abf,'hasCropper':!0x1}),(0x0,p[_0xb45372(0x1ee)])(v[_0xb45372(0x356)],{'drawings':_0x544abf})]})});}function Et(_0x2af037){const _0x377abf=_0x1d5b92;let {unitId:_0x56483d,subUnitId:_0x571786,shapeId:_0x57a5a5}=_0x2af037,_0x3e5b9e=(0x0,t['useDependency'])(a[_0x377abf(0x393)]),_0x4a8836=(0x0,t['useDependency'])(X);return(0x0,p['jsx'])(e[_0x377abf(0x324)],{..._0x2af037,'positionEditor':(0x0,p[_0x377abf(0x1ee)])(Tt,{}),'onUpdateShapeData':(_0x24f012,_0x4a54a8)=>{C(_0x3e5b9e,_0x56483d,_0x571786,_0x57a5a5,_0x24f012,_0x4a54a8);},'onUpdateLineShapeData':(_0x2f495d,_0x3489f2)=>{w(_0x3e5b9e,_0x56483d,_0x571786,_0x57a5a5,_0x2f495d,_0x3489f2);},'onUpdateShapeFillImage':_0x44d8d8=>{const _0x55b1cd=_0x377abf;_0x4a8836[_0x55b1cd(0x182)]({'unitId':_0x56483d,'subUnitId':_0x571786,'drawingId':_0x57a5a5},_0x44d8d8);}});}function Dt(_0xecd205){const _0x148c36=_0x1d5b92;let _0x11ce41=(0x0,t[_0x148c36(0x302)])(e[_0x148c36(0x125)]),_0x3f3cff=(0x0,t['useObservable'])(()=>_0x11ce41[_0x148c36(0x429)],_0x11ce41[_0x148c36(0x434)](),!0x1,[_0x11ce41]),_0x1cce45=_0xecd205[_0x148c36(0x335)][_0x148c36(0x341)];return!_0x1cce45||!_0x3f3cff?null:(0x0,p[_0x148c36(0x1ee)])(Ot,{..._0x1cce45,'canvasElement':_0xecd205[_0x148c36(0x335)][_0x148c36(0x3c7)]});}function Ot(_0x311d27){const _0x52e4c9=_0x1d5b92;let _0x6b256d=(0x0,t[_0x52e4c9(0x302)])(a[_0x52e4c9(0x393)]),_0x135733=(0x0,t[_0x52e4c9(0x302)])(i[_0x52e4c9(0x188)]),{unitId:_0x3733dc,subUnitId:_0x2aa43f,drawingId:_0x5b9e13,drawingType:_0x43303b,shapeType:_0x346546}=_0x311d27,[_0x54016c,_0x158808]=(0x0,b[_0x52e4c9(0x3d4)])(_0x311d27[_0x52e4c9(0x42e)]),_0x2535c8=(0x0,b[_0x52e4c9(0x46d)])(()=>(0x0,e['getTextStyle'])(_0x54016c),[_0x54016c]),_0x2816de=(0x0,b['useMemo'])(()=>(0x0,e['getTextModel'])(_0x54016c),[_0x54016c]);(0x0,b[_0x52e4c9(0x177)])(()=>{const _0x395c82=_0x52e4c9;let _0x5365cb=_0x6b256d[_0x395c82(0x124)](_0x288664=>{const _0x32bce4=_0x395c82;if(_0x288664['id']!==i[_0x32bce4(0x443)]['id'])return;let _0x428cf5=_0x135733[_0x32bce4(0x18d)](_0x3733dc,_0x2aa43f,_0x5b9e13);_0x428cf5&&_0x158808(_0x428cf5);});return()=>_0x5365cb[_0x395c82(0x1f9)]();},[_0x6b256d,_0x5b9e13,_0x135733,_0x2aa43f,_0x3733dc]);let _0x2e7e25=_0x5228b0=>{_0x158808(_0x1921ee=>({..._0x1921ee,..._0x5228b0}));},_0xb9d663=_0x2c4133=>{const _0x529b06=_0x52e4c9;let _0x327257=(0x0,e[_0x529b06(0x362)])(_0x54016c,_0x2c4133);C(_0x6b256d,_0x3733dc,_0x2aa43f,_0x5b9e13,{'oldShapeData':{'shapeText':_0x54016c[_0x529b06(0x212)]}},_0x327257),_0x2e7e25(_0x327257);},_0x2c6059=(0x0,e[_0x52e4c9(0x1de)])({'hostType':a['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x3733dc,'subUnitId':_0x2aa43f,'shapeId':_0x5b9e13,'shapeData':_0x54016c,'onUpdateBinding':_0x2413a1=>{const _0x4f5add=_0x52e4c9;let _0x32b6b3={'formulaBinding':_0x2413a1};C(_0x6b256d,_0x3733dc,_0x2aa43f,_0x5b9e13,{'oldShapeData':{'formulaBinding':_0x54016c[_0x4f5add(0x42d)]}},_0x32b6b3),_0x2e7e25(_0x32b6b3);}});return(0x0,p[_0x52e4c9(0x305)])(p[_0x52e4c9(0x37f)],{'children':[(0x0,p[_0x52e4c9(0x1ee)])(e[_0x52e4c9(0x47a)],{'canvasElement':_0x311d27[_0x52e4c9(0x3c7)],'shapeData':_0x54016c,'shapeType':_0x346546,'textStyle':{'ff':n[_0x52e4c9(0x499)][_0x52e4c9(0x212)][_0x52e4c9(0x1bf)],'fs':n[_0x52e4c9(0x499)][_0x52e4c9(0x212)][_0x52e4c9(0x12d)],'cl':{'rgb':n['ShapeDefaultConfig'][_0x52e4c9(0x212)][_0x52e4c9(0x398)]},..._0x2535c8},'textModel':_0x2816de?{'ha':_0x2816de['ha']??a[_0x52e4c9(0x342)][_0x52e4c9(0x25a)],'va':_0x2816de['va']??a[_0x52e4c9(0x2a1)][_0x52e4c9(0x273)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':n[_0x52e4c9(0x499)][_0x52e4c9(0x394)],'defaultGradientEndColor':n[_0x52e4c9(0x499)][_0x52e4c9(0x31e)],'defaultStrokeColor':n[_0x52e4c9(0x499)]['stroke'],'extensionGroups':_0x2c6059[_0x52e4c9(0x44e)],'floatingObjectToolbarPosition':t[_0x52e4c9(0x218)]['SHEET'],'onUpdateShapeData':(_0x3f4a69,_0x1c30db)=>{C(_0x6b256d,_0x3733dc,_0x2aa43f,_0x5b9e13,_0x3f4a69,_0x1c30db),_0x1c30db&&_0x2e7e25(_0x1c30db);},'onUpdateText':_0xb9d663,'onOpenPanel':()=>{const _0x86c704=_0x52e4c9;_0x6b256d[_0x86c704(0x37c)](z['id'],{'unitId':_0x3733dc,'subUnitId':_0x2aa43f,'drawingId':_0x5b9e13});},'onDelete':()=>{const _0x2c3e85=_0x52e4c9;_0x6b256d[_0x2c3e85(0x37c)](m[_0x2c3e85(0x1f6)]['id'],{'unitId':_0x3733dc,'drawings':[{'unitId':_0x3733dc,'subUnitId':_0x2aa43f,'drawingId':_0x5b9e13,'drawingType':_0x43303b}]});}}),_0x2c6059[_0x52e4c9(0x14b)]]});}function kt(_0x1ebc2d){const _0x30fb8d=_0x1d5b92;return!!_0x1ebc2d&&_0x30fb8d(0x2e4)in _0x1ebc2d&&_0x30fb8d(0x15f)in _0x1ebc2d;}const At=(0x0,b[_0x1d5b92(0x2b0)])(()=>{const _0x5f5017=_0x1d5b92;let _0xa5174d=(0x0,t[_0x5f5017(0x302)])(H),_0x4e0f67=(0x0,t[_0x5f5017(0x302)])(i[_0x5f5017(0x188)]),_0x5b5e7f=(0x0,t['useDependency'])(s[_0x5f5017(0x366)]),_0x95bced=(0x0,t[_0x5f5017(0x302)])(a[_0x5f5017(0x393)]),_0x849fc1=(0x0,t[_0x5f5017(0x302)])(t[_0x5f5017(0x2dd)]),_0x52b11d=(0x0,t[_0x5f5017(0x302)])(c[_0x5f5017(0x33f)]),_0x5c3bab=(0x0,b[_0x5f5017(0x46d)])(()=>({'getShapeModel':(_0x1c359b,_0x35d4aa,_0x20245c)=>_0x4e0f67[_0x5f5017(0x1df)](_0x1c359b,_0x35d4aa,_0x20245c),'getShapeData':(_0x777ebc,_0xfc0824,_0x2036c6)=>_0x4e0f67['getShapeDataById'](_0x777ebc,_0xfc0824,_0x2036c6),'getDrawingTransform':(_0x2cc55a,_0x1215ee,_0x189ac9)=>{const _0x5ebd24=_0x5f5017;let _0x32a2c9=_0x5b5e7f[_0x5ebd24(0x255)]({'unitId':_0x2cc55a,'subUnitId':_0x1215ee,'drawingId':_0x189ac9});return _0x32a2c9==null?void 0x0:_0x32a2c9[_0x5ebd24(0x136)];},'updateShapeText':({unitId:_0x49b6dd,subUnitId:_0x171a2b,shapeId:_0x5d9b7a,shapeText:_0x497355,oldShapeText:_0xd213bf,hostSize:_0x17f2ac})=>{const _0x3127d7=_0x5f5017;_0x849fc1[_0x3127d7(0x1d3)](_0x49b6dd,()=>{const _0x3fc25d=_0x3127d7;var _0xea7c1b;let _0xa7bf6=_0x95bced[_0x3fc25d(0x2c5)](S['id'],{'unitId':_0x49b6dd,'subUnitId':_0x171a2b,'shapeId':_0x5d9b7a,'shapeData':{'shapeText':_0x497355},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xd213bf}}});if(!_0xa7bf6||!_0x17f2ac)return _0xa7bf6;let _0x3eed5f=_0x5b5e7f[_0x3fc25d(0x255)]({'unitId':_0x49b6dd,'subUnitId':_0x171a2b,'drawingId':_0x5d9b7a}),_0x3ec9f3=_0x3eed5f==null?void 0x0:_0x3eed5f[_0x3fc25d(0x136)];if(!kt(_0x3eed5f)||!_0x3ec9f3)return!0x1;let _0x37b363={..._0x3ec9f3,'width':_0x17f2ac[_0x3fc25d(0x2ff)],'height':_0x17f2ac[_0x3fc25d(0x2c3)]},_0x303c30=(_0xea7c1b=_0x52b11d[_0x3fc25d(0x26f)](_0x49b6dd))==null||(_0xea7c1b=_0xea7c1b[_0x3fc25d(0x425)](l[_0x3fc25d(0x191)])[_0x3fc25d(0x142)](_0x171a2b))==null?void 0x0:_0xea7c1b['skeleton'];return _0x95bced[_0x3fc25d(0x2c5)](m[_0x3fc25d(0x153)]['id'],{'unitId':_0x49b6dd,'drawings':[{..._0x3eed5f,'transform':_0x37b363,'sheetTransform':_0x303c30?(0x0,m['transformToDrawingPosition'])(_0x37b363,_0x303c30)??_0x3eed5f[_0x3fc25d(0x15f)]:_0x3eed5f['sheetTransform'],'axisAlignSheetTransform':_0x303c30?(0x0,m[_0x3fc25d(0x239)])(_0x37b363,_0x303c30)??_0x3eed5f[_0x3fc25d(0x2e4)]:_0x3eed5f[_0x3fc25d(0x2e4)]}]});});},'updateHostSize':({unitId:_0x3cb8f5,subUnitId:_0x4a5132,shapeId:_0x289fff,width:_0x3898d7,height:_0x140a07})=>{const _0x36ba1b=_0x5f5017;var _0x2dd740;let _0xdc1c5e=_0x5b5e7f[_0x36ba1b(0x255)]({'unitId':_0x3cb8f5,'subUnitId':_0x4a5132,'drawingId':_0x289fff}),_0x4558f6=_0xdc1c5e==null?void 0x0:_0xdc1c5e['transform'];if(!kt(_0xdc1c5e)||!_0x4558f6)return;let _0x3c969d={..._0x4558f6,'width':_0x3898d7,'height':_0x140a07},_0x8553f2=(_0x2dd740=_0x52b11d[_0x36ba1b(0x26f)](_0x3cb8f5))==null||(_0x2dd740=_0x2dd740[_0x36ba1b(0x425)](l[_0x36ba1b(0x191)])[_0x36ba1b(0x142)](_0x4a5132))==null?void 0x0:_0x2dd740['skeleton'],_0x2ab0ba=_0x8553f2?(0x0,m[_0x36ba1b(0x3ff)])(_0x3c969d,_0x8553f2)??_0xdc1c5e[_0x36ba1b(0x15f)]:_0xdc1c5e[_0x36ba1b(0x15f)],_0x365d6e=_0x8553f2?(0x0,m[_0x36ba1b(0x239)])(_0x3c969d,_0x8553f2)??_0xdc1c5e['axisAlignSheetTransform']:_0xdc1c5e[_0x36ba1b(0x2e4)];_0x95bced[_0x36ba1b(0x37c)](m[_0x36ba1b(0x153)]['id'],{'unitId':_0x3cb8f5,'drawings':[{..._0xdc1c5e,'transform':_0x3c969d,'sheetTransform':_0x2ab0ba,'axisAlignSheetTransform':_0x365d6e}]});},'allowHostSizeShrink':({unitId:_0xfb839f,subUnitId:_0x4eec24,shapeId:_0x5d92bd})=>(0x0,e[_0x5f5017(0x2d2)])(_0x4e0f67[_0x5f5017(0x18d)](_0xfb839f,_0x4eec24,_0x5d92bd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x95bced,_0x5b5e7f,_0x52b11d,_0x4e0f67,_0x849fc1]),_0x362cc1=(0x0,b[_0x5f5017(0x46d)])(()=>({'viewportKeys':{'main':c[_0x5f5017(0x36a)][_0x5f5017(0x3cf)],'leftTop':c['SHEET_VIEWPORT_KEY']['VIEW_MAIN_LEFT_TOP'],'top':c[_0x5f5017(0x36a)][_0x5f5017(0x170)],'left':c[_0x5f5017(0x36a)][_0x5f5017(0x3f5)]},'getSkeleton':(_0xd7e7f8,_0x1a1267)=>{const _0x440c5a=_0x5f5017;var _0x23e952;return((_0x23e952=_0xd7e7f8[_0x440c5a(0x425)](l[_0x440c5a(0x191)])[_0x440c5a(0x142)](_0x1a1267['subUnitId']))==null?void 0x0:_0x23e952[_0x440c5a(0x3b1)])??null;}}),[]);return(0x0,p[_0x5f5017(0x1ee)])(e[_0x5f5017(0x3b2)],{'adapter':_0x5c3bab,'editingService':_0xa5174d,'editorUnitId':re,'positionOptions':_0x362cc1});});let jt=class extends a[_0x1d5b92(0x16d)]{constructor(_0x1a0768,_0x164ba0){const _0x4d6415=_0x1d5b92;super(),this['_componentManager']=_0x1a0768,this[_0x4d6415(0x455)]=_0x164ba0,this[_0x4d6415(0x1b5)](),this[_0x4d6415(0x405)]();}[_0x1d5b92(0x1b5)](){const _0x5e28ff=_0x1d5b92;this['_iconManager'][_0x5e28ff(0x13b)]('ObjectLayersIcon')||this[_0x5e28ff(0x2f1)](this['_iconManager'][_0x5e28ff(0x2f2)]({'ObjectLayersIcon':y[_0x5e28ff(0x372)]})),this[_0x5e28ff(0x455)][_0x5e28ff(0x13b)](_0x5e28ff(0x1fa))||this[_0x5e28ff(0x2f1)](this['_iconManager'][_0x5e28ff(0x2f2)]({'FlipHorizontalIcon':y['FlipHorizontalIcon']})),this[_0x5e28ff(0x455)][_0x5e28ff(0x13b)]('FlipVerticalIcon')||this['disposeWithMe'](this[_0x5e28ff(0x455)]['register']({'FlipVerticalIcon':y[_0x5e28ff(0x21e)]})),this[_0x5e28ff(0x455)]['has'](_0x5e28ff(0x127))||this[_0x5e28ff(0x2f1)](this['_iconManager'][_0x5e28ff(0x2f2)]({'BottomIcon':y[_0x5e28ff(0x127)]})),this[_0x5e28ff(0x455)]['has'](_0x5e28ff(0x439))||this[_0x5e28ff(0x2f1)](this[_0x5e28ff(0x455)]['register']({'MoveDownIcon':y[_0x5e28ff(0x439)]})),this['_iconManager'][_0x5e28ff(0x13b)]('MoveUpIcon')||this[_0x5e28ff(0x2f1)](this[_0x5e28ff(0x455)]['register']({'MoveUpIcon':y['MoveUpIcon']})),this[_0x5e28ff(0x455)]['has'](_0x5e28ff(0x1b8))||this[_0x5e28ff(0x2f1)](this[_0x5e28ff(0x455)][_0x5e28ff(0x2f2)]({'ShapeFormatSettingIcon':y[_0x5e28ff(0x1b8)]})),this[_0x5e28ff(0x455)][_0x5e28ff(0x13b)](_0x5e28ff(0x173))||this[_0x5e28ff(0x2f1)](this['_iconManager'][_0x5e28ff(0x2f2)]({'TopmostIcon':y[_0x5e28ff(0x173)]}));}[_0x1d5b92(0x405)](){const _0xe3265d=_0x1d5b92;this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)]['register'](F,Et)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](I,pt)),this['disposeWithMe'](this['_componentManager'][_0xe3265d(0x2f2)](le,he)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](ue,fe)),this[_0xe3265d(0x2a2)]['get'](d[_0xe3265d(0x422)])||this['disposeWithMe'](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](d[_0xe3265d(0x422)],me)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](L,Dt)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)]['register'](Ee,Ae)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](Te,je)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)]['register'](De,Me)),this['disposeWithMe'](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](Oe,Ne)),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)](ie,e[_0xe3265d(0x29f)])),this[_0xe3265d(0x2f1)](this[_0xe3265d(0x2a2)][_0xe3265d(0x2f2)]('SheetShapeTextEditorContainer',At));}};jt=A([k(0x0,(0x0,a[_0x1d5b92(0x466)])(t[_0x1d5b92(0x2ee)])),k(0x1,(0x0,a['Inject'])(t[_0x1d5b92(0x1aa)]))],jt);let Mt=class extends a[_0x1d5b92(0x16d)]{constructor(_0x3e777a,_0x502884,_0x244175,_0x4f8515,_0x21dccf,_0x24aa78,_0x1198fb,_0x612e2c,_0x192154){const _0x232556=_0x1d5b92;super();let _0x2bc50d=_0xa4bdc4=>{const _0x53e046=_0x128e;var _0x5166c0,_0x36f255;return(((_0x5166c0=_0x612e2c[_0x53e046(0x232)](new o['WorkbookEditablePermission'](_0xa4bdc4[_0x53e046(0x2de)])['id']))==null?void 0x0:_0x5166c0[_0x53e046(0x2cb)])??!0x0)&&(((_0x36f255=_0x612e2c[_0x53e046(0x232)](new o[(_0x53e046(0x36b))](_0xa4bdc4['unitId'],_0xa4bdc4['subUnitId'])['id']))==null?void 0x0:_0x36f255[_0x53e046(0x2cb)])??!0x0);},_0x5a8774=_0x14ad9d=>_0x14ad9d['shapeId']&&_0x2bc50d(_0x14ad9d)?_0x244175[_0x232556(0x18d)](_0x14ad9d['unitId'],_0x14ad9d[_0x232556(0x365)],_0x14ad9d[_0x232556(0x13d)])??null:null,_0x1b0331=()=>{const _0x356e41=_0x232556;let _0x3913e8=_0x21dccf[_0x356e41(0x16b)](),_0x30fdec=_0x3913e8[_0x356e41(0x190)]===0x1?_0x3913e8[0x0]:null;return(_0x30fdec==null?void 0x0:_0x30fdec[_0x356e41(0x144)])===a[_0x356e41(0x385)]['DRAWING_SHAPE']&&_0x30fdec[_0x356e41(0x2de)]===_0x3e777a[_0x356e41(0x2de)]?{'unitId':_0x30fdec[_0x356e41(0x2de)],'subUnitId':_0x30fdec[_0x356e41(0x365)],'shapeId':_0x30fdec[_0x356e41(0x453)]}:null;};this[_0x232556(0x2f1)]((0x0,e['registerShapeFormatPainter'])(_0x3e777a,_0x502884,{'changes$':(0x0,u[_0x232556(0x359)])(_0x21dccf[_0x232556(0x1c2)],_0x4f8515['editingParams$'],_0x612e2c[_0x232556(0x32e)]),'isActive':()=>{const _0x2d17d7=_0x232556;var _0x52c634;return((_0x52c634=_0x24aa78[_0x2d17d7(0x24c)]())==null?void 0x0:_0x52c634[_0x2d17d7(0x2ba)]())===_0x3e777a[_0x2d17d7(0x2de)]&&!_0x1198fb[_0x2d17d7(0x415)](a[_0x2d17d7(0x2ce)])&&_0x21dccf[_0x2d17d7(0x16b)]()[_0x2d17d7(0x40f)](_0x50a2bb=>_0x50a2bb[_0x2d17d7(0x2de)]===_0x3e777a[_0x2d17d7(0x2de)]);},'getSelectedTarget':_0x1b0331,'getSource':()=>{let _0x33d193=_0x1b0331();return _0x33d193?_0x5a8774(_0x33d193):null;},'getTarget':_0x1f1c53=>{const _0x767399=_0x232556;let _0x374ebb=_0x3e777a['scene'][_0x767399(0x498)](new c[(_0x767399(0x338))](_0x1f1c53[_0x767399(0x230)],_0x1f1c53['offsetY']));if(!(_0x374ebb instanceof D))return null;let _0x3198f3={'unitId':_0x3e777a[_0x767399(0x2de)],'subUnitId':_0x374ebb['subUnitId'],'shapeId':_0x374ebb[_0x767399(0x13d)]};return _0x2bc50d(_0x3198f3)?_0x3198f3:null;},'getShape':_0x5a8774,'update':(_0x44c26f,_0x31cee1,_0x539caf)=>_0x192154['executeCommand'](S['id'],{..._0x44c26f,'shapeData':_0x539caf,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x31cee1}})}));}};Mt=A([k(0x1,(0x0,a['Inject'])(t[_0x1d5b92(0x3a0)])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(i[_0x1d5b92(0x188)])),k(0x3,(0x0,a[_0x1d5b92(0x466)])(H)),k(0x4,s['IDrawingManagerService']),k(0x5,a[_0x1d5b92(0x3a7)]),k(0x6,a[_0x1d5b92(0x240)]),k(0x7,a[_0x1d5b92(0x14e)]),k(0x8,a[_0x1d5b92(0x393)])],Mt);const Nt=_0x1d5b92(0x1cb);let Pt=class extends a[_0x1d5b92(0x16d)]{constructor(_0x1e23b6,_0x1d65c5,_0x21d0d1,_0x4de7fb,_0x34a43c,_0x33e641){const _0x25ee2a=_0x1d5b92;super(),this['_menuManagerService']=_0x1e23b6,this['_ribbonService']=_0x1d65c5,this[_0x25ee2a(0x22b)]=_0x21d0d1,this[_0x25ee2a(0x260)]=_0x4de7fb,this[_0x25ee2a(0x3ee)]=_0x34a43c,this[_0x25ee2a(0x15e)]=_0x33e641,E(this,_0x25ee2a(0x2e6),!0x1),this['_menuManagerService'][_0x25ee2a(0x1ec)](nt),this[_0x25ee2a(0x2f1)]((0x0,a[_0x25ee2a(0x303)])(this[_0x25ee2a(0x22b)][_0x25ee2a(0x1c2)]['subscribe'](()=>this[_0x25ee2a(0x2eb)]()))),this[_0x25ee2a(0x2eb)]();}[_0x1d5b92(0x1f9)](){const _0x3fe2ae=_0x1d5b92;this[_0x3fe2ae(0x15e)][_0x3fe2ae(0x486)](!0x1,Nt),this['_hide'](),super[_0x3fe2ae(0x1f9)]();}[_0x1d5b92(0x2eb)](){const _0x151812=_0x1d5b92;var _0x71b097;let _0x4670a1=this[_0x151812(0x22b)]['getFocusDrawings'](),_0x33220f=_0x4670a1[_0x151812(0x190)]===0x1?_0x4670a1[0x0]:void 0x0;if((_0x33220f==null?void 0x0:_0x33220f[_0x151812(0x144)])!==a['DrawingTypeEnum'][_0x151812(0x3e8)]||this[_0x151812(0x260)]['getUnitType'](_0x33220f[_0x151812(0x2de)])!==a[_0x151812(0x46e)]['UNIVER_SHEET']){this['_shapeFloatingToolbarService'][_0x151812(0x486)](!0x1,Nt),this[_0x151812(0x263)]();return;}let _0x28676f=(_0x71b097=this[_0x151812(0x3ee)][_0x151812(0x26f)](_0x33220f[_0x151812(0x2de)]))==null?void 0x0:_0x71b097[_0x151812(0x33d)][_0x151812(0x31d)](),_0x13cff7=(0x0,e[_0x151812(0x43a)])(_0x28676f)===_0x151812(0x364);if(this[_0x151812(0x15e)]['setFallbackVisible'](_0x13cff7,Nt),_0x13cff7){this[_0x151812(0x263)]();return;}this[_0x151812(0x2e6)]||(this['_visible']=!0x0,this[_0x151812(0x3ea)][_0x151812(0x358)](R,{'activate':!0x0}));}[_0x1d5b92(0x263)](){const _0x3253c5=_0x1d5b92;this[_0x3253c5(0x2e6)]&&(this[_0x3253c5(0x2e6)]=!0x1,this['_ribbonService'][_0x3253c5(0x246)](R),this[_0x3253c5(0x3ea)][_0x3253c5(0x32f)]([]));}};Pt=A([k(0x0,t[_0x1d5b92(0x376)]),k(0x1,t['IRibbonService']),k(0x2,s[_0x1d5b92(0x366)]),k(0x3,a['IUniverInstanceService']),k(0x4,c[_0x1d5b92(0x33f)]),k(0x5,(0x0,a['Inject'])(e[_0x1d5b92(0x125)]))],Pt);let Ft=class extends e['ShapeTextFloatMenuRenderControllerBase']{constructor(_0x5f239b,_0x56c1a5,_0x4b18ad,_0x50c212,_0x35d04d,_0x17f661,_0x5e8d6d,_0x4e7127,_0x2e93e4,_0x36c0a8){super(_0x5f239b,_0x56c1a5,_0x4b18ad,_0x50c212,_0x35d04d,_0x17f661,_0x5e8d6d,_0x4e7127,_0x2e93e4,_0x36c0a8,{'componentKey':ie,'editorUnitId':re});}};Ft=A([k(0x1,(0x0,a[_0x1d5b92(0x466)])(g['DocSelectionManagerService'])),k(0x2,(0x0,a[_0x1d5b92(0x466)])(_[_0x1d5b92(0x128)])),k(0x3,(0x0,a[_0x1d5b92(0x466)])(_[_0x1d5b92(0x301)])),k(0x4,a[_0x1d5b92(0x393)]),k(0x5,(0x0,a[_0x1d5b92(0x466)])(_[_0x1d5b92(0x3dc)])),k(0x6,(0x0,a['Inject'])(e['ShapeTextHyperLinkPopupService'])),k(0x7,(0x0,a['Inject'])(g[_0x1d5b92(0x2bb)])),k(0x8,(0x0,a[_0x1d5b92(0x466)])(_[_0x1d5b92(0x3d2)])),k(0x9,(0x0,a[_0x1d5b92(0x466)])(H))],Ft);let Q=class extends a[_0x1d5b92(0x16d)]{constructor(_0x293976,_0x449d68,_0xfd7b6b,_0x406137,_0x297963,_0x32a828,_0x2c1a4b,_0x6f3572,_0x5ee00e,_0xf465bb,_0xf00d15){const _0x6e6e34=_0x1d5b92;super(),this[_0x6e6e34(0x260)]=_0x293976,this['_sidebarService']=_0x449d68,this['_menuManagerService']=_0xfd7b6b,this[_0x6e6e34(0x477)]=_0x406137,this['_localeService']=_0x297963,this[_0x6e6e34(0x1db)]=_0x32a828,this['_drawingManagerService']=_0x2c1a4b,this[_0x6e6e34(0x193)]=_0x6f3572,this[_0x6e6e34(0x3ab)]=_0x5ee00e,this[_0x6e6e34(0x3ee)]=_0xf465bb,this[_0x6e6e34(0x337)]=_0xf00d15,E(this,'_sidebarDisposable',null),E(this,_0x6e6e34(0x1bd),null),E(this,_0x6e6e34(0x3b0),!0x1),E(this,'_shapeEditPanelVersion',0x0),E(this,_0x6e6e34(0x205),null),E(this,_0x6e6e34(0x491),[]),this['_initMenu'](),this['disposeWithMe'](this[_0x6e6e34(0x260)][_0x6e6e34(0x25e)](a[_0x6e6e34(0x46e)][_0x6e6e34(0x3f2)])['subscribe'](_0x2194b3=>{const _0x31352e=_0x6e6e34;if(!_0x2194b3){var _0x3c938e;(_0x3c938e=this['_sidebarDisposable'])==null||_0x3c938e[_0x31352e(0x1f9)]();}})),this[_0x6e6e34(0x1ef)](),this[_0x6e6e34(0x26a)](),this[_0x6e6e34(0x2f1)](this[_0x6e6e34(0x337)][_0x6e6e34(0x3c5)][_0x6e6e34(0x243)](_0x30b342=>{_0x30b342&&this['_clearPopups']();}));}[_0x1d5b92(0x3d5)](){const _0x4e082d=_0x1d5b92;this['_menuManagerService'][_0x4e082d(0x1ec)](it);}[_0x1d5b92(0x26a)](){const _0x336640=_0x1d5b92;this[_0x336640(0x205)]||=this['disposeWithMe']((0x0,e[_0x336640(0x2ac)])(this[_0x336640(0x3ee)],a[_0x336640(0x46e)]['UNIVER_SHEET'],_0x108ce0=>this[_0x336640(0x231)](_0x108ce0)));}['_getShapeInfo'](_0x3b1501,_0x4d69f7,_0x3047d4){const _0x37e252=_0x1d5b92;let _0x25c3d8=this[_0x37e252(0x477)][_0x37e252(0x367)](_0x3b1501,_0x4d69f7,_0x3047d4),_0x57e47b=this[_0x37e252(0x477)]['getShapeDataById'](_0x3b1501,_0x4d69f7,_0x3047d4);return _0x25c3d8!==void 0x0&&_0x57e47b!==void 0x0?{'shapeData':_0x57e47b,'shapeId':_0x3047d4,'shapeType':_0x25c3d8,'unitId':_0x3b1501,'subUnitId':_0x4d69f7,'version':this[_0x37e252(0x25c)],'disableShapeOption':!0x1}:null;}[_0x1d5b92(0x219)](){const _0x49e8de=_0x1d5b92;this[_0x49e8de(0x491)][_0x49e8de(0x26c)](_0x41f3bc=>_0x41f3bc[_0x49e8de(0x1f9)]()),this[_0x49e8de(0x491)][_0x49e8de(0x190)]=0x0;}[_0x1d5b92(0x231)](_0x4e45fa){const _0x585b96=_0x1d5b92;let _0x50dd37=new a['DisposableCollection']();return _0x50dd37[_0x585b96(0x1a5)](_0x4e45fa[_0x585b96(0x29b)][_0x585b96(0x243)](()=>{const _0x450505=_0x585b96;let _0x145773=_0x4e45fa[_0x450505(0x35d)]();if(this[_0x450505(0x219)](),this['_isOpenedShapeEditPanel']||_0x145773[_0x450505(0x3a3)]>0x1)return;let _0xbcfb6b=_0x145773['values']()[_0x450505(0x27a)]()[_0x450505(0x2cb)];if(!_0xbcfb6b)return;let _0x1eac40=this[_0x450505(0x22b)][_0x450505(0x14d)](_0xbcfb6b['oKey']);if(!_0x1eac40||_0x1eac40['drawingType']!==a[_0x450505(0x385)][_0x450505(0x3e8)])return;let {unitId:_0x4c73e2,subUnitId:_0x454f48,drawingId:_0x116714,drawingType:_0x2cce07}=_0x1eac40,_0x2bf3b0=this[_0x450505(0x1a3)](_0x4c73e2,_0x454f48,_0x116714);if(!_0x2bf3b0)return;this[_0x450505(0x3ab)][_0x450505(0x449)](a[_0x450505(0x406)],!0x0);let _0x5e06c1=this[_0x450505(0x3ee)]['getRenderUnitById'](_0x4c73e2),_0x3b81df=((_0x5e06c1==null?void 0x0:_0x5e06c1['isMainScene'])===!0x1?_0x5e06c1['with'](l[_0x450505(0x15b)]):this[_0x450505(0x193)])[_0x450505(0x404)](_0xbcfb6b,{'componentKey':L,'direction':'vertical-center','offset':[0x0,e[_0x450505(0x15c)]],'extraProps':{'unitId':_0x4c73e2,'subUnitId':_0x454f48,'drawingId':_0x116714,'drawingType':_0x2cce07,'shapeType':_0x2bf3b0['shapeType'],'shapeData':_0x2bf3b0[_0x450505(0x42e)]}});this[_0x450505(0x491)][_0x450505(0x1fc)](this[_0x450505(0x2f1)](_0x3b81df)),this['_drawingManagerService']['getFocusDrawings']()[_0x450505(0x339)](_0x4ed4fc=>_0x4ed4fc[_0x450505(0x2de)]===_0x4c73e2&&_0x4ed4fc[_0x450505(0x365)]===_0x454f48&&_0x4ed4fc[_0x450505(0x453)]===_0x116714)||this[_0x450505(0x22b)][_0x450505(0x463)]([{'unitId':_0x4c73e2,'subUnitId':_0x454f48,'drawingId':_0x116714}]);})),_0x50dd37[_0x585b96(0x1a5)](_0x4e45fa[_0x585b96(0x269)]['subscribe'](()=>{const _0x47feae=_0x585b96;this[_0x47feae(0x219)](),this[_0x47feae(0x3ab)][_0x47feae(0x449)](a[_0x47feae(0x406)],!0x1),this['_drawingManagerService']['focusDrawing'](null);})),_0x50dd37[_0x585b96(0x1a5)](_0x4e45fa[_0x585b96(0x34a)][_0x585b96(0x243)](()=>{const _0x12dd5e=_0x585b96;this[_0x12dd5e(0x219)]();})),_0x50dd37['add'](_0x4e45fa[_0x585b96(0x161)]['subscribe'](()=>{const _0x398e8e=_0x585b96;this[_0x398e8e(0x219)]();})),(0x0,a[_0x585b96(0x303)])(()=>{const _0x4d06c8=_0x585b96;_0x50dd37[_0x4d06c8(0x1f9)](),this[_0x4d06c8(0x219)]();});}[_0x1d5b92(0x1ef)](){const _0x2c0849=_0x1d5b92;this[_0x2c0849(0x2f1)](this[_0x2c0849(0x1db)]['onCommandExecuted'](_0x2e0121=>{const _0x28f71f=_0x2c0849;if(_0x2e0121['id']===z['id']){let {unitId:_0x135aa6,subUnitId:_0x1958ba,drawingId:_0xf6e344}=_0x2e0121[_0x28f71f(0x28a)];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x28f71f(0x1a3)](_0x135aa6,_0x1958ba,_0xf6e344),this[_0x28f71f(0x219)](),this[_0x28f71f(0x154)]();}if(_0x2e0121['id']===wt['id']&&(this[_0x28f71f(0x1bd)]=null,this[_0x28f71f(0x35b)]()),_0x2e0121['id']===i[_0x28f71f(0x443)]['id']){let {unitId:_0x2e717e,subUnitId:_0x3f6ea5,shapeId:_0x306348}=_0x2e0121[_0x28f71f(0x28a)];if(this[_0x28f71f(0x1bd)]&&this['_activeShapeInfo'][_0x28f71f(0x13d)]===_0x306348){let _0x24df97=this[_0x28f71f(0x1a3)](_0x2e717e,_0x3f6ea5,_0x306348);_0x24df97&&(this[_0x28f71f(0x25c)]+=0x1,_0x24df97[_0x28f71f(0x43f)]=this[_0x28f71f(0x25c)],this[_0x28f71f(0x1bd)]=_0x24df97,this[_0x28f71f(0x3b0)]&&this[_0x28f71f(0x154)]());}}})),this['disposeWithMe'](this[_0x2c0849(0x22b)][_0x2c0849(0x1c2)]['subscribe'](_0x50549b=>{const _0xee9541=_0x2c0849;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x50549b['length']===0x0){this[_0xee9541(0x1bd)]=null,this[_0xee9541(0x35b)]();return;}if(_0x50549b[_0xee9541(0x190)]===0x1&&_0x50549b[0x0]['drawingType']===a[_0xee9541(0x385)]['DRAWING_SHAPE']&&(this['_shapeEditPanelVersion']+=0x1,this[_0xee9541(0x1bd)]=this[_0xee9541(0x1a3)](_0x50549b[0x0][_0xee9541(0x2de)],_0x50549b[0x0][_0xee9541(0x365)],_0x50549b[0x0][_0xee9541(0x453)]),this[_0xee9541(0x1bd)])){this[_0xee9541(0x154)]();return;}let _0x3dba0d=_0x50549b[_0xee9541(0x493)](_0x300cad=>_0x300cad[_0xee9541(0x144)]===a[_0xee9541(0x385)]['DRAWING_SHAPE']);if(_0x50549b[_0xee9541(0x190)]>0x1&&_0x3dba0d[_0xee9541(0x190)]===_0x50549b[_0xee9541(0x190)]){if(this[_0xee9541(0x25c)]+=0x1,this[_0xee9541(0x1bd)]=this[_0xee9541(0x1a3)](_0x50549b[0x0][_0xee9541(0x2de)],_0x50549b[0x0][_0xee9541(0x365)],_0x50549b[0x0]['drawingId']),this[_0xee9541(0x1bd)]){this[_0xee9541(0x154)]();return;}}else{if(this[_0xee9541(0x25c)]+=0x1,this[_0xee9541(0x1bd)]=this[_0xee9541(0x1a3)](_0x50549b[0x0][_0xee9541(0x2de)],_0x50549b[0x0]['subUnitId'],_0x50549b[0x0][_0xee9541(0x453)]),this[_0xee9541(0x1bd)]){this[_0xee9541(0x1bd)]['disableShapeOption']=!0x0,this[_0xee9541(0x154)]();return;}}this[_0xee9541(0x35b)]();}));}[_0x1d5b92(0x154)](){const _0x4a74df=_0x1d5b92;this['_activeShapeInfo']&&(this['_sidebarDisposable']=this[_0x4a74df(0x2f3)]['open']({'id':F,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':F,...this[_0x4a74df(0x1bd)]},'onClose':()=>{const _0x35fd5a=_0x4a74df;this[_0x35fd5a(0x22b)]['focusDrawing'](null),this[_0x35fd5a(0x3ab)][_0x35fd5a(0x449)](a[_0x35fd5a(0x406)],!0x1),this['_sidebarDisposable']=null;}}),this[_0x4a74df(0x3b0)]=!0x0);}['_closeShapeEditPanel'](){const _0x6b946c=_0x1d5b92;this[_0x6b946c(0x3b0)]=!0x1,this['_sidebarService'][_0x6b946c(0x382)](F),this[_0x6b946c(0x3a5)]=null,this['_contextService']['setContextValue'](a[_0x6b946c(0x406)],!0x1),this[_0x6b946c(0x22b)][_0x6b946c(0x463)](null);}};Q=A([k(0x0,a['IUniverInstanceService']),k(0x1,(0x0,a[_0x1d5b92(0x466)])(t[_0x1d5b92(0x29e)])),k(0x2,t['IMenuManagerService']),k(0x3,(0x0,a[_0x1d5b92(0x466)])(i['SheetsShapeService'])),k(0x4,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x2d0)])),k(0x5,a[_0x1d5b92(0x393)]),k(0x6,s['IDrawingManagerService']),k(0x7,(0x0,a[_0x1d5b92(0x466)])(l['SheetCanvasPopManagerService'])),k(0x8,a[_0x1d5b92(0x240)]),k(0x9,c['IRenderManagerService']),k(0xa,(0x0,a[_0x1d5b92(0x466)])(H))],Q);let $=class extends a[_0x1d5b92(0x475)]{constructor(_0x3cf48d=lt,_0x100a8d,_0x2dab64,_0xe36421,_0xf65289){const _0x4539f3=_0x1d5b92;super(),this[_0x4539f3(0x35c)]=_0x3cf48d,this[_0x4539f3(0x347)]=_0x100a8d,this[_0x4539f3(0x1db)]=_0x2dab64,this['_configService']=_0xe36421,this[_0x4539f3(0x3ee)]=_0xf65289;let {..._0x1cb0e1}=(0x0,a[_0x4539f3(0x359)])({},lt,this[_0x4539f3(0x35c)]);this[_0x4539f3(0x30f)][_0x4539f3(0x276)](ct,_0x1cb0e1),this[_0x4539f3(0x3e2)]();}['onRendered'](){const _0x5ee1e9=_0x1d5b92;this[_0x5ee1e9(0x3ee)][_0x5ee1e9(0x388)](a[_0x5ee1e9(0x46e)][_0x5ee1e9(0x1d4)],[Ft]),(0x0,a[_0x5ee1e9(0x1c4)])(this['_injector'],[[Q],[G],[j],[J]]);}[_0x1d5b92(0x2c4)](){const _0x5a0a5c=_0x1d5b92;this[_0x5a0a5c(0x347)][_0x5a0a5c(0x423)](Q)[_0x5a0a5c(0x26a)]();}['onReady'](){const _0x58e2f2=_0x1d5b92;[[K],[M],[q]]['forEach'](_0x19274a=>this[_0x58e2f2(0x347)][_0x58e2f2(0x1a5)](_0x19274a)),(0x0,a[_0x58e2f2(0x1c4)])(this[_0x58e2f2(0x347)],[[q],[M]]),this['_renderManagerService'][_0x58e2f2(0x388)](a[_0x58e2f2(0x46e)][_0x58e2f2(0x3f2)],[K]),this[_0x58e2f2(0x3ee)][_0x58e2f2(0x388)](a['UniverInstanceType'][_0x58e2f2(0x3f2)],[ut]),this['_renderManagerService'][_0x58e2f2(0x388)](a[_0x58e2f2(0x46e)][_0x58e2f2(0x3f2)],[Ct]),this['_renderManagerService'][_0x58e2f2(0x388)](a[_0x58e2f2(0x46e)][_0x58e2f2(0x3f2)],[gt]),this[_0x58e2f2(0x2f1)](this['_renderManagerService']['registerRenderModule'](a[_0x58e2f2(0x46e)]['UNIVER_SHEET'],[Mt]));}[_0x1d5b92(0x485)](){const _0x2056e3=_0x1d5b92;this[_0x2056e3(0x347)][_0x2056e3(0x1a5)]([jt]),this[_0x2056e3(0x347)][_0x2056e3(0x423)](jt);let _0x27f51f=this['_injector'];[[Q],[G],[j],[J],[X],[H],[W],[B],[Y],[Pt]][_0x2056e3(0x26c)](_0x534c49=>_0x27f51f[_0x2056e3(0x1a5)](_0x534c49)),(0x0,a[_0x2056e3(0x1c4)])(this[_0x2056e3(0x347)],[[Q],[G],[j],[X],[H],[W],[B],[Y],[Pt]]);}[_0x1d5b92(0x3e2)](){const _0x113671=_0x1d5b92;[P,S,wt,z,ae,N,se,ce][_0x113671(0x26c)](_0x189fb=>this['disposeWithMe'](this[_0x113671(0x1db)][_0x113671(0x2c0)](_0x189fb)));}};E($,'type',a[_0x1d5b92(0x46e)]['UNIVER_SHEET']),E($,_0x1d5b92(0x21f),_0x1d5b92(0x36d)),E($,_0x1d5b92(0x38c),at),E($,'version',ot),$=A([(0x0,a[_0x1d5b92(0x2dc)])(h['UniverLicensePlugin'],g[_0x1d5b92(0x202)],s[_0x1d5b92(0x3b7)],d['UniverDrawingUIPlugin'],c[_0x1d5b92(0x26d)],o[_0x1d5b92(0x23e)],_[_0x1d5b92(0x30a)],m[_0x1d5b92(0x45f)],r[_0x1d5b92(0x275)],v[_0x1d5b92(0x48c)],i[_0x1d5b92(0x351)],l[_0x1d5b92(0x458)],e[_0x1d5b92(0x318)]),k(0x1,(0x0,a[_0x1d5b92(0x466)])(a[_0x1d5b92(0x472)])),k(0x2,a[_0x1d5b92(0x393)]),k(0x3,a[_0x1d5b92(0x2a5)]),k(0x4,c[_0x1d5b92(0x33f)])],$),exports['SheetsShapeUIContextualRibbonSchema']=nt,exports['SheetsShapeUIMenuSchema']=it,Object['defineProperty'](exports,_0x1d5b92(0x211),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x1d5b92(0x325)](exports,_0x1d5b92(0x3f3),{'enumerable':!0x0,'get':function(){return $;}});
|