@univerjs-pro/sheets-shape-ui 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/commands/command/set-shape-text-align.command.d.ts +5 -0
  62. package/lib/types/commands/command/set-shape-text-style.command.d.ts +7 -0
  63. package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +5 -0
  64. package/lib/types/commands/command/shape-doc-align.command.d.ts +10 -0
  65. package/lib/types/commands/menu/menu-dependencies.d.ts +2 -0
  66. package/lib/types/commands/menu/object-list.menu.d.ts +4 -0
  67. package/lib/types/commands/menu/shape-doc-format.menu.d.ts +19 -0
  68. package/lib/types/commands/menu/shape-font-size.menu.d.ts +6 -0
  69. package/lib/types/commands/menu/shape-text-align.menu.d.ts +10 -0
  70. package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +10 -0
  71. package/lib/types/commands/operations/actvie-drawing-operation.d.ts +2 -0
  72. package/lib/types/controllers/shape-text-hyper-link.render-controller.d.ts +9 -0
  73. package/lib/types/view-model/drawing-shape.d.ts +2 -0
  74. package/lib/types/view-model/shape-data-model.d.ts +8 -0
  75. package/lib/types/views/ShapeOptions.d.ts +26 -0
  76. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +12 -0
  77. package/lib/types/views/shape-editor-panel/index.d.ts +1 -0
  78. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +2 -0
  79. package/lib/types/views/shapes.d.ts +58 -0
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +19 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x244912=_0x4e9b;(function(_0x40a8fa,_0x51c51e){const _0x26dfdc=_0x4e9b,_0x2bca18=_0x40a8fa();while(!![]){try{const _0x4f959a=parseInt(_0x26dfdc(0x189))/0x1*(-parseInt(_0x26dfdc(0x1ab))/0x2)+parseInt(_0x26dfdc(0x152))/0x3*(parseInt(_0x26dfdc(0x1ad))/0x4)+parseInt(_0x26dfdc(0x2d5))/0x5+-parseInt(_0x26dfdc(0x3a6))/0x6*(parseInt(_0x26dfdc(0x367))/0x7)+-parseInt(_0x26dfdc(0x14e))/0x8*(-parseInt(_0x26dfdc(0x230))/0x9)+-parseInt(_0x26dfdc(0x2dd))/0xa+parseInt(_0x26dfdc(0x1e3))/0xb;if(_0x4f959a===_0x51c51e)break;else _0x2bca18['push'](_0x2bca18['shift']());}catch(_0x1efbc0){_0x2bca18['push'](_0x2bca18['shift']());}}}(_0x2c7e,0xc7e62));import{FormulaShapeAnimationController as _0x141052,MobileShapeEditorService as _0x349883,SHAPE_CHANGE_PICKER_COMPONENT as _0x39514a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x31a8fe,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x574cac,ShapeEditPanel as _0x17d686,ShapeFloatingToolbar as _0x1a3d2a,ShapeFloatingToolbarService as _0x11b9ca,ShapeFloatingToolbarToggleFactory as _0x28f120,ShapeFormulaRibbonControl as _0x1e07ad,ShapeGroupEnum as _0x46a4b9,ShapePickerDropdown as _0xd97ad,ShapePickerPanel as _0x377851,ShapeQuickStyleGallery as _0x364599,ShapeStyleRibbonControl as _0x1535fe,ShapeTextEditorContainer as _0xa7fac2,ShapeTextFloatMenuRenderControllerBase as _0x2ed20c,ShapeTextFloatToolbar as _0x2689dd,ShapeTextHyperLinkPopupService as _0x56b244,ShapeTextRibbonControl as _0x361c7f,ToggleShapeFloatingToolbarOperation as _0x29b704,UniverShapeEditorMobileUIPlugin as _0x1803a2,UniverShapeEditorUIPlugin as _0x5cbd77,activateDrawingObject as _0x35675d,bindRenderTransformerLifecycle as _0x50a450,buildShapeTextDataUpdate as _0x410366,clearActiveDrawingObjects as _0x4c6b4,drawFormulaShapeAnimationLayers as _0x4dca42,getDrawingTypeNameKey as _0x58b895,getTextModel as _0x19f250,getTextStyle as _0x3c50f1,normalizeShapeTextModel as _0x10cd0f,plainShapeTextToDocumentData as _0x3f9894,prepareShapeTextDocumentData as _0x437d41,registerShapeFormatPainter as _0x3ed075,resolveFormulaShapeAutoFitSize as _0x17f889,resolveShapeContextualRibbonHostMode as _0x570759,resolveShapeTextDocumentPageHeight as _0x5ca9c1,resolveShapeTextDocumentRenderLayout as _0xe799eb,resolveShapeTextEditorBehaviorShapeData as _0x432dcd,resolveShapeTextEditorWrapStrategy as _0x338209,shouldAllowShapeTextEditorHostSizeShrink as _0x51130d,shouldClipShapeTextDocument as _0x48a615,useFormulaShapeToolbar as _0xaa2e40}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x56d3ac,ContextMenuGroup as _0x510854,ContextMenuPosition as _0x2af139,FloatingObjectToolbarPosition as _0x404cbd,FormatPainterSessionService as _0x131d68,IMenuManagerService as _0x2ed3c1,IRibbonService as _0x313322,ISidebarService as _0x26d1b3,IconManager as _0x40e0f9,MenuItemType as _0x4171da,MenuManagerPosition as _0x13bc74,RibbonInsertGroup as _0x3cd9aa,UndoRedoGroupService as _0x466c9e,UniverMobileUIPlugin as _0xe117d2,getMenuHiddenObservable as _0x4ff7fb,useDependency as _0x2c7ca5,useObservable as _0x297a75}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x3a7d90,ImageSourceTypeEnum as _0x4ef65b,ShapeArrowSizeEnum as _0x29f38e,ShapeArrowTypeEnum as _0x7556f9,ShapeDefaultConfig as _0x59f579,ShapeFillEnum as _0x31dedb,ShapeLineTypeEnum as _0xdf880d,ShapeModel as _0x2e34c6,ShapeRenderModeEnum as _0x4ba7f7,ShapeTypeEnum as _0x1ecf22,computeConnectorRouteLayout as _0x42d9b4,getBasicShapeRotateBound as _0x3e1f4f,isConnectorShape as _0x3c2fe3,isCurvedConnectorShape as _0x147030,routeConnectorLineShape as _0x349ecd}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x3d58ed,UniverShapeEditorPlugin as _0x26432c,applyQuickStyleToShapeData as _0xde63d9,cloneShapeDataForType as _0x5aef65,createShapeFormulaDocument as _0x4841cb,createShapeTextBoxShapeData as _0x52ce78,getShapeQuickStylePreset as _0x4ac0ae,getShapeQuickStyleType as _0x5e4bfe,resolveActiveShapeQuickStylePresetId as _0x54dddb}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x13dbe5,InsertSheetsShapeMutation as _0x220ec8,RemoveSheetsShapeMutation as _0xd0fb5f,SetShapeDrawingDataCommand as _0x168968,SheetsShapeService as _0x5594a6,ToggleSheetsShapeFlipCommand as _0x3cca56,UniverSheetsShapePlugin as _0x41a1bc,UpdateConnectorRelationCommand as _0xb35938,UpdateLineShapeResizeCommand as _0x54a28b,UpdateSheetsShapeDataMutation as _0x4fa39c}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x5de8db,CommandType as _0x1644dd,DependentOn as _0x247bab,Disposable as _0x2c7179,DisposableCollection as _0x4cf05e,DocumentDataModel as _0x579f00,DrawingTypeEnum as _0x54d53a,FOCUSING_COMMON_DRAWINGS as _0x15a415,FOCUSING_SHAPE_TEXT_EDITOR as _0x3e7b7b,HorizontalAlign as _0x324c7e,ICommandService as _0x4aa13b,IConfigService as _0x20789e,IContextService as _0x21e25a,IImageIoService as _0x52e3a0,IPermissionService as _0x10d99e,IURLImageService as _0x55093c,IUndoRedoService as _0x22695f,IUniverInstanceService as _0x595744,Inject as _0x318433,Injector as _0x54646c,LocaleService as _0x3f1353,Plugin as _0x3c4eb2,UniverInstanceType as _0x37e7a9,VerticalAlign as _0x42b23f,createInternalEditorID as _0x17c599,generateRandomId as _0x524ea6,merge as _0x845994,registerDependencies as _0x1446da,toDisposable as _0x21ce23,touchDependencies as _0x45a757}from'@univerjs/core';import{CopySheetCommand as _0x2b67e1,RemoveSheetCommand as _0x56b5fe,SheetInterceptorService as _0x5dcb53,SheetPermissionCheckController as _0x24fc12,SheetSkeletonService as _0x29e188,SheetsSelectionsService as _0x188788,UniverSheetsPlugin as _0x3d2d07,WorkbookEditablePermission as _0x59c9a1,WorksheetEditPermission as _0x5ec863,attachRangeWithCoord as _0x20495d,discreteRangeToRange as _0x17eb2d,getSheetCommandTarget as _0x4b1c62}from'@univerjs/sheets';import{IDrawingManagerService as _0x1f50fa,SetDrawingSelectedOperation as _0x4c2abf,UniverDrawingPlugin as _0x31be2a,getDrawingShapeKeyByDrawingSearch as _0x5cc8a7,getOrCreateDrawingCopyPlan as _0x48a662}from'@univerjs/drawing';import{CURSOR_TYPE as _0x48d0e8,Circle as _0x2e680e,DRAWING_OBJECT_LAYER_INDEX as _0x352374,DocumentSkeleton as _0x1caf05,DocumentViewModel as _0xe5b13a,Documents as _0x4d7bfb,IRenderManagerService as _0xc8f10c,Image as _0x2cf69c,RENDER_CLASS_TYPE as _0x511859,SHEET_VIEWPORT_KEY as _0x54edb1,Shape as _0x4546bd,Transform as _0x16a726,UniverRenderEnginePlugin as _0x48dbc2,Vector2 as _0x145e25}from'@univerjs/engine-render';import{COPY_TYPE as _0x40a630,ISheetClipboardService as _0x2730e,PREDEFINED_HOOK_NAME as _0x314886,SheetCanvasPopManagerService as _0xf74177,SheetPrintInterceptorService as _0x14d662,SheetScrollManagerService as _0x20a826,SheetSkeletonManagerService as _0x307dc0,UniverSheetsMobileUIPlugin as _0x49620b,UniverSheetsUIPlugin as _0x30d40e,deriveStateFromActiveSheet$ as _0x3baf69,getCurrentRangeDisable$ as _0x49adae,getViewportByCell as _0x2ead9}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x170955,EMPTY as _0x351d29,Observable as _0x1cfcc4,map as _0x3be804,merge as _0xa89b72,of as _0x1e0e82,startWith as _0x44274b,switchMap as _0x4ab26c}from'rxjs';import{DrawingCommonPanel as _0x3bb4b3,DrawingImageClipService as _0x1432e0,DrawingRenderService as _0x2346f6,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x184fa8,MobileObjectListPanel as _0x2083db,OBJECT_LIST_FLOATING_SECTION_ID as _0xdc906c,ObjectListPanelBase as _0xb2f346,UniverDrawingUIPlugin as _0x1df8f2,getCurrentUnitInfo as _0x23371e,getObjectListPanelSectionIdForDrawingType as _0x303f7a,insertGroupObject as _0x1e07bb}from'@univerjs/drawing-ui';import{MobileDropdown as _0x2f0a7d}from'@univerjs/design';import{Fragment as _0x4ca382,jsx as _0xcdc9dc,jsxs as _0x4537d2}from'react/jsx-runtime';import{DrawingApplyType as _0x3c81cc,ISheetDrawingService as _0x35f22e,RemoveSheetDrawingCommand as _0x4d296c,SetDrawingApplyMutation as _0x50f2f5,SetDrawingArrangeCommand as _0x4e0df7,SetSheetDrawingCommand as _0x480d38,UniverSheetsDrawingPlugin as _0x572c12,transformToAxisAlignPosition as _0x306e59,transformToDrawingPosition as _0x3dccba}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x5c2b4a}from'@univerjs-pro/license';import{DocInterceptorService as _0x59811b,DocSelectionManagerService as _0x2f74d4,UniverDocsPlugin as _0x21e271}from'@univerjs/docs';function _0x2c7e(){const _0x1f188b=['_executeConnectedRouteResizeCommand','save','viewportScrollY','getBatchUpdateOp','drawing-ui.objectListPanel.lockHint','_drawRichText','_hide','onCommandExecuted','MoveUpIcon','updateLinePoints','_imageShapeClipController','animationEnabled','getShapeModel','cancelEditing','sheets-shape-ui.editShape','drawing-ui.objectListPanel.close','_handleConnectedEndpointPointerUp','offsetY','_baseLeft','_createControls','TOP','color','lineShapeId','animateFormulaPresentation','7KcdsSr','startArrow','sheet.shape.object-list.panel','_createShapeAdjustControls','getAutoFitPresentations','extensionGroups','onPointerUp$','data','PRINTING_COMPONENT_COLLECT','canvas','fillType','_cxtHandlerPointerUp','_insertShapes','Image','reverse','_activeShapeModel','_drawSimpleText','UNIVER_DOC','rect','_shapeUpdateListener','setPrstGeom','_registerFocusChangeHandler','canvasElement','setFillImage','shape-editor-ui.arrange.front','adjustValues','_isConnecting','getShapeType','onPointerDown$','sheet.shape.edit.panel','VIEW_MAIN','_addShapeConnectorHandlerObjects','_getImageDrawingInfo','angle','getObject','_canEdit','getRealBound','_applyFormulaAutoFitSize','_adjHandlerPointerUp','startConnectionDetection','fill','mergeMenu','_injector','_isStartConnectorPoint','_disposePopups','setCanUseShapeClip','shapeModel','div','_handleFreeEndpointPointerUp','onDblclick$','push','shape-text-','sheets-shape-ui.quickStyles','_clearPopups','presentation','drawing-ui.objectListPanel.name','srcRect','drawing-ui.objectListPanel.description','selectable','getImageSourceCache','sheetTransform','calcAdjValues','getDrawingByParam','7111638WhydRC','drawing-ui.objectListPanel.expand','_renderWithCache','popup','drawing-ui.objectListPanel.moveForward','presentationChanged$','next','getDrawingPoints','_getOrCreateShapeModel','_sidebarDisposable','isStartConnectorPoint','SELECTOR','flipY','setAdjustValueByName','INSERT','gradientEndColor','_baseShapeTop','clipTop','_localeService','from','cxnPointStrokeWidth','onSteady','sheets-shape-ui.flipVertical','getImage','parse','_groupCopyPasteController','_shapeFloatingToolbarService','front','_shapeService','contentVerticalOffset','setSrcRect','adjHandleSize','stringify','MEDIA','error','map','setShouldShowAdjust','stroke','decorate','activeSheet$','sheets-shape-ui','LEFT','#bcbcbc','_drawingType','offsetX','_insertingShapeKeys','_handleConnectorPointerUp','getDrawingEditable','sheets-shape-ui.ribbon.shape-format.arrange-front','getDrawingDataForUnit','getState','object','keys','call','setPrstGeomAdjValues','ShapeFormatSettingIcon','value','vertical','_generateCutPasteMutations','isHighlighted','getZoomRatio','formulaPresentation','getShapeTypeById','_updateShapeAdjustControls','_registerDrawingMoveHandler','_clearFocusedShape','isRenderLinePointsMode','getScene','drawing-ui.objectListPanel.search','onerror','SheetShapeTextEditorContainer','getTransformerByCreate','resetCursor','sheets-shape-ui.ribbon.shape-format','custom','onTransformChange$','_shapeEditPanelVersion','isHorizontal','_reset','fontFamily','completeEditing','_menuManagerService','_config','drawing-ui.objectListPanel.unlock','_sheetShapeAdjustController','ShapeIcon','unsubscribe','_generateCopyPasteMutations','_shapeRenderController','packageName','_updateSrcRectByTransform','drawing-ui.objectListPanel.lockAll','formulaBinding','DRAWING','translateWithPrecision','getConnectionInfo','getCurrentScrollState','_baseDrawingRect','drawing-ui.objectListPanel.dragToReorder','worldPoint','registerFeatureMenu','disposeWithMe','_generatePasteMutations','idMap','sectionFloating','7096mVEIHG','_initialize','filter','sheet.shape.picker.component','3LfssqQ','mode','getInterceptPoints','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getConnectorLinePoints','drawing-ui.objectListPanel.show','getShapeTextData','disableShapeOption','VIEW_MAIN_LEFT_TOP','cxnPointRadius','_registerOperations','_context','_isDrawingShapePointDown','sheets-shape-text-','TopmostIcon','_registerMoveHandler','ancestorTransform','getSkeleton','_drawRichTextLayer','_clipService','flipX','FlipVerticalIcon','_formulaKey','_loadShapePictureFill','fontSize','_draw','computeConnectorResizeLayout','remove$','BottomIcon','DRAWING_IMAGE','open','drawing-ui.objectListPanel.unlockHint','top','_isOpenedShapeEditPanel','isEditing','vertical-center','getVisible','_urlImageService','VIEW_MAIN_TOP','_sheetInterceptorService','size','isHitLine','addClipboardHook','shapeData','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_sheetPermissionCheckController','_clearConnectionSites','currentAdjustValues','drawing-ui.objectListPanel.filterAll','SolidFill','getSheetBySheetId','drawingType','getUnitId','PictureFill','doc.image-clip.shape-picker.component','1yuxaRy','pipe','endConnectionDetection','_visible','_getScrollInfo','relation','copyId','refreshShapeFillImage','attachTransformerTo','sheets-shape-ui.ribbon.shape-format.style-control','_clearControls','composeMatrix','_activeShapeId','values','name','_initCopyPaste','isMainScene','_addControl','delete','shapeId','_sheetCanvasPopManagerService','prstGeom','PaintIcon','_copyInfo','abs','type','add','beginPath','_registerDrawingFocusChangeHandler','intercept','end','_moveConnectorWithShape','_handleFreeEndpointMove','presetId','2016414EMGFwY','executeCommand','1006004vESCpa','length','1.0.2','multiply','DRAWING_SHAPE','buildClipPath','connection-site-','image','_adjName','_formulaShapes','transform','_cxtHandlerPointerMove','shapeType','height','refreshFormulaPresentation','sheetViewStartRow','_activeAdjustPointList','drawing-ui.objectListPanel.filterLocked','OPERATION','run','_popupMenuListener','_isShouldShowDrawingShapeAdjust','setFallbackVisible','_activeImageId','subUnitId','onPointerMove$','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','getDrawingData','bottom','setEditing','_completionFrame','image-clip-adjust-point-','update$','sheets-shape-ui.ribbon.shape-format.formula-control','#FFFFFF','sheet.menu.shape.flip-vertical','title','_registerFeatureMenu','@univerjs-pro/sheets-shape-ui','_initSheetChange','flatMap','_connectorObjects','order','transformByState','extraProps','renderDrawingShape','UPDATE','_cxnIndex','_getShapeInfo','sheet.operation.update-shape-type','BUTTON','get','prstGeomAdjValues','startY','16078612FLwEbd','_initEditingParams','initShapePopupMenu','_hasReset','_openShapeEditPanel','horizontal','_subUnitId','sheets-shape-ui.objectListPanel.title','sectionCanvas','description','_executeConnectionCommand','cos','getMatrix','sheets-shape-format-font-family-menu','CROSSHAIR','asObservable','focusDrawing','getBasicShapeRelation','_showConnectionSites','symbol','_sheetBasicShapeConnectionPointController','_connectionSiteObjects','pluginName','getShapeDataById','panel','connector-handler-','viewportScrollX','left','_update','_getSceneAndTransformerByDrawingSearch','_drawingAddListener','blockExecuteWithoutPermission','drawing-ui.objectListPanel.unlockAll','sheet.command.update-shape-data','sheets-shape-ui.insertShape','oKey','set','_closeShapeEditPanel','getEditing','_unitId','_calculateFreeEndpointAngle','sheets-shape-ui.title','drawing-ui.objectListPanel.sectionCanvas','startX','setHighlighted','_contextService','_props','Line','getCurrentUnitOfType','None','adjHandleFill','getConnectionRelation','isDrawingObject','_baseWidth','draw','render','_sheetDrawingService','_getImagePrstGeom','getAdjustInfoByName','getAdjustValueByName','unitId','getCurrentSkeleton','includes','isArray','_baseShapeHeight','redo','_initEvents','changing$','sheets-shape-ui.ribbon.shape-format.text-control','setFormulaPresentation','scene','restore','_editingParams$','create','_iconManager','some','_activeShapeInfo','14841eOJMwR','_index','text','_getShapeAdjustPointListById','setContextValue','ang','permissionPointUpdate$','drawingId','copyType','_drawingManagerService','makeDirty','univer-box-border\x20univer-px-4\x20univer-text-sm','sheets-shape-ui.config','getConnectionSiteList','MoveDownIcon','drawing-ui.objectListPanel.collapse','registerRenderModule','_highlightedSiteIndex','getSkeletonParam','unregister','_sheetDrawingShapeRenderController','_findShapeAtPoint','calculate','drawing.operation.set-drawing-active','default','resize','SHEET_SHAPE_UI_PLUGIN','contentHeight','changeStart$','hidden','getUnitType','getDrawingSearch','_initPermission','getObjectIncludeInGroup','drawing-ui.objectListPanel.hideAll','function','parent','getTransformer','editingParams$','_isImagePointerDown','GROUP','_updateAdjustControlPositions','setCollapsedIds','_targetShapeId','drawing-ui.objectListPanel.moveBackward','getCurrentTypeOfUnit$','_init','_getConnectionSiteAngle','_ribbonService','targetShapeId','_registerGroupFeaturePasteHook','shape-adjust-point-','interceptor','_permissionService','shape-editor-ui.toolbar.changeShape','_baseHeight','_findNearestConnectionSite','_clearShapeAdjustControls','drawing-ui.objectListPanel.noSelection','getStartConnectInfo','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.title','_draggingConnectorId','clearControl$','_isHighlighted','clip','SolidLine','_activeAdjustInfo','classType','_baseTop','getRenderUnitById','_registerComponents','worldRect','sheet.command.menu-insert-shape','getBatchAddOp','with','syncExecuteCommand','isInGroup','visible','changeEnd$','drawing-ui.objectListPanel.nameInput','isRichText','reduce','getEndConnectInfo','_resetState','forward','cxnIndex','getUnit','_sheetsShapeService','refreshAdjustControls','getDrawingOKey','_lastEditingShapeKey','rotation','shape-editor-ui.arrange.backward','_shapePopupMenuDisposable','isRender','skeleton','sheets-shape-ui.editText','cxnPointFill','registerCommand','_setTransForm','backward','_shapeFormulaService','_adjHandlerPointerMove','sheetViewStartColumn','sheets-shape-ui.formatShape','attachPopupToObject','hideContextualTab','_sheetPrintInterceptorService','_formulaAnimation','showContextualTab','_shapeTextEditingService','getFocusDrawings','_attachConnectorObjectEvent','_imageIoService','constructor','getParent','getShapeTextRect','shape-editor-ui.toolbar.quickStyles','strokeWidth','register','getAdjustNames','localToWorld','axisAlignSheetTransform','_rerouteConnectorLine','onStarting','_currentConnectionTarget','refreshTransform','_clearCompletionFrame','_activeTargetShapeId','SHAPE_TEXT','forEach','highlighted','sheets-shape-ui.permission.editErr','toPrimitive','getShapeData','_sidebarService','point','getSelectedObjectMap','REMOVE','_transform','clearAdjustValue','worldPoints','drawing-ui.objectListPanel.showAll','sheets-shape-ui.objectListPanel.open','sheet.shape.text.float-menu','iterator','addImageSourceCache','complete','sheets-shape-ui.shape-format.style-ribbon-control','drawing-ui.objectListPanel.hide','preValue','getContextValue','UNIVER_SHEET','invert','endArrow','sheets-shape-ui.imagePanel.crop.shape','_shapeId','localeService','translate','_commandService','_handleConnectedEndpointMove','getDrawingOrder','ObjectLayersIcon','setShapeProps','3407830RRwPEI','getPermissionPoint','lineType','getValue','getSheetId','addObject','_clearShapeConnectorHandlerObjects','Arrow','8451560CGRsed','index','_componentManager','shape-editor-ui.arrange.back','sin','getBatchRemoveOp','activeAnObject','clipByShape','fillImageSource','debounceRefreshControls','_initPrinting','_activeShapeAdjustPointList','_currentScene','setConfig','_configService','shapeText','sheet.operation.open-shape-object-list-panel','shapeKey','_createCopyInfoByRange','_renderManagerService','_focusedDrawings','updateShapeFillImage','sheets-shape-ui.ribbon.shape-format.arrange-backward','find','permissionCheckWithoutRange','setOnSavingEditorData','#4285f4','onRendered','_updateTransform','pick','FlipHorizontalIcon','focus$','getBentTypeFromPoints','_initCommands','sheets-shape-ui.flipHorizontal','string','isHit','normal','_getConnectPointInfo','visible$','subscribe','_handleBasicShapeUpdateConnectorLineShape','getActualSize','_shapes','clearAdjustControls','getActiveSheet','fromChangeset','defineProperty','objects','_executeResizeCommand','sheets-shape-ui.shape-format.quick-style-gallery','marginTop','OTHERS','getDrawingVisible','_onSavingEditorData$','URL','Large','style','COMMAND','subscribeEvent','undo','sheets-shape-ui.deleteShape','actions','getInverseCoord','sheet.operation.open-mobile-shape-editor','drawWith','sqrt','_addShapeConnectorHandlerObject','_univerInstanceService','drawing-ui.objectListPanel.filterHidden','setPresentation','entries','sheet.operation.close-sheet-shape-format-panel','width','_sheetClipboardService','dataModel','disableObjectsEvent','_baseShapeLeft','_getDrawingRect','src','_attachAdjustEvent','add$','_disposed','featurePluginUpdateNotification','_getZoomRatio','_isStartAdjusting','transformForAngle','_baseShapeWidth','onReady','updateConnectionDetection','_sheetSkeletonService','drawing-ui.objectListPanel.typeNames.','adjName','has','getOwnPropertyDescriptor','enableObjectsEvent','drawing-ui.objectListPanel.lock','_initMenu','_drawingRenderService','updateContext','engine','_releaseRenderCache','doc','clip-adj-','version','dispose','fillImageSourceType','params','_commandExecutedListener','stopPropagation','applyPoint','trim','setCursor','setShapeData'];_0x2c7e=function(){return _0x1f188b;};return _0x2c7e();}import{DocCanvasPopManagerService as _0x5908e1,DocEventManagerService as _0x181919,DocRenderController as _0x44ebf9,DocSelectionRenderService as _0x1706ef,UniverDocsUIPlugin as _0x99abe1}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x28ac02,SheetsDrawingGroupCopyPasteController as _0x38ae18,UniverSheetsDrawingMobileUIPlugin as _0x4a669e,UniverSheetsDrawingUIPlugin as _0x57b4f0}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0xe20eb,FlipHorizontalIcon as _0x183126,FlipVerticalIcon as _0x3dabc1,MoveDownIcon as _0x1bee1c,MoveUpIcon as _0x368783,ObjectLayersIcon as _0x4809c9,ShapeFormatSettingIcon as _0x1516df,TopmostIcon as _0x1f7182}from'@univerjs/icons';import{memo as _0x2a23cd,useEffect as _0x1ff107,useMemo as _0x3352e0,useReducer as _0x256536,useState as _0x1ccdce}from'react';function yr(_0x5a2e3a,_0x5a9f46){const _0x58c17d=_0x4e9b;let _0x44d09b={};for(let _0x3b1e11 of Object[_0x58c17d(0x3da)](_0x5a9f46)){let _0x2c30f8=_0x5a9f46[_0x3b1e11],_0x22f2b3=_0x5a2e3a[_0x3b1e11];if(_0x22f2b3===void 0x0){_0x44d09b[_0x3b1e11]=void 0x0;continue;}_0x44d09b[_0x3b1e11]=typeof _0x2c30f8=='object'&&_0x2c30f8&&!Array[_0x58c17d(0x222)](_0x2c30f8)&&typeof _0x22f2b3==_0x58c17d(0x3d9)&&_0x22f2b3&&!Array[_0x58c17d(0x222)](_0x22f2b3)?yr(_0x22f2b3,_0x2c30f8):_0x22f2b3;}return _0x44d09b;}const K={'type':_0x1644dd['COMMAND'],'id':_0x244912(0x204),'handler':(_0x13ad01,_0x595215)=>{const _0xb8724b=_0x244912;let _0x31fe87=_0x13ad01['get'](_0x5594a6),{unitId:_0x262a2f,subUnitId:_0x5388db,shapeType:_0x13a6cc,shapeId:_0x338951,shapeData:_0x2bda58,replaceShapeData:_0x8f8eb6,oldShapeJSON:_0x420932}=_0x595215;if(!_0x31fe87[_0xb8724b(0x35b)](_0x262a2f,_0x5388db,_0x338951))return!0x1;let _0x198f2a=_0x13ad01[_0xb8724b(0x1e0)](_0x4aa13b),_0x3e7f8d=_0x13ad01['get'](_0x22695f),{oldShapeType:_0x4914c3,oldShapeData:_0x193ce7={}}=_0x420932,_0x7fa4dc=_0x8f8eb6?_0x193ce7:yr(_0x193ce7,_0x2bda58||{}),_0x585fbd={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x13a6cc,'shapeData':_0x2bda58,'replace':_0x8f8eb6}},_0x137288={'id':_0x4fa39c['id'],'params':{'unitId':_0x262a2f,'subUnitId':_0x5388db,'shapeId':_0x338951,'shapeType':_0x4914c3,'shapeData':_0x7fa4dc,'replace':_0x8f8eb6}};return _0x198f2a[_0xb8724b(0x27c)](_0x585fbd['id'],_0x585fbd[_0xb8724b(0x348)])?(_0x3e7f8d['pushUndoRedo']({'unitID':_0x262a2f,'undoMutations':[_0x137288],'redoMutations':[_0x585fbd]}),!0x0):!0x1;}};function br(_0x1200f2,_0x5348dd,_0xd5cbfa,_0x3f8120,_0x505e59,_0x4db269){const _0x3ddfa9=_0x244912;let _0x43675b={'unitId':_0x5348dd,'subUnitId':_0xd5cbfa,'shapeId':_0x3f8120,'shapeData':_0x4db269,'oldShapeJSON':_0x505e59};return _0x1200f2[_0x3ddfa9(0x1ac)](K['id'],_0x43675b);}function xr(_0x1bf49c,_0x2578f5,_0x28bf0c,_0x4bcd1f,_0x4c1ec8,_0x47998f){const _0x5b1a31=_0x244912;let _0x7b376c={'unitId':_0x2578f5,'subUnitId':_0x28bf0c,'shapeId':_0x4bcd1f,'shapeData':_0x47998f,'oldShapeJSON':_0x4c1ec8};return _0x1bf49c[_0x5b1a31(0x1ac)](K['id'],_0x7b376c);}function Sr(_0x5d9b0a){'@babel/helpers - typeof';const _0x57fa34=_0x244912;return Sr=typeof Symbol==_0x57fa34(0x253)&&typeof Symbol[_0x57fa34(0x2c2)]==_0x57fa34(0x1f6)?function(_0x345c20){return typeof _0x345c20;}:function(_0x65f977){const _0x267e29=_0x57fa34;return _0x65f977&&typeof Symbol=='function'&&_0x65f977[_0x267e29(0x2a3)]===Symbol&&_0x65f977!==Symbol['prototype']?_0x267e29(0x1f6):typeof _0x65f977;},Sr(_0x5d9b0a);}function Cr(_0x2285bb,_0x1ed628){const _0x14907d=_0x244912;if(Sr(_0x2285bb)!=_0x14907d(0x3d9)||!_0x2285bb)return _0x2285bb;var _0x411419=_0x2285bb[Symbol[_0x14907d(0x2b6)]];if(_0x411419!==void 0x0){var _0x180e2f=_0x411419[_0x14907d(0x3db)](_0x2285bb,_0x1ed628||_0x14907d(0x248));if(Sr(_0x180e2f)!=_0x14907d(0x3d9))return _0x180e2f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1ed628===_0x14907d(0x300)?String:Number)(_0x2285bb);}function wr(_0x542607){const _0x5bf2ce=_0x244912;var _0x5f1ffd=Cr(_0x542607,_0x5bf2ce(0x300));return Sr(_0x5f1ffd)=='symbol'?_0x5f1ffd:_0x5f1ffd+'';}function q(_0x1254eb,_0x490417,_0x43b5dc){const _0x5113e1=_0x244912;return(_0x490417=wr(_0x490417))in _0x1254eb?Object[_0x5113e1(0x30c)](_0x1254eb,_0x490417,{'value':_0x43b5dc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1254eb[_0x490417]=_0x43b5dc,_0x1254eb;}function Tr(_0x40d0fc,_0x2289e5,_0x2214c6){const _0xecb51b=_0x244912;let _0xf1599={..._0x2289e5,'dataModel':{..._0x2289e5[_0xecb51b(0x328)]??{},..._0x2214c6?{'doc':_0x2214c6}:null}},_0x44d915=_0x432dcd(_0x40d0fc,_0xf1599),_0x20531c=_0x338209(_0x44d915);return{'clip':_0x48a615(_0x44d915,_0x20531c),'wrapStrategy':_0x20531c};}var Er=class extends _0x4546bd{constructor(_0x58c15d,_0x29ac89){const _0x341125=_0x244912;super(_0x58c15d,_0x29ac89),q(this,_0x341125(0x211),void 0x0),q(this,'_formulaAnimation',new _0x141052(()=>this[_0x341125(0x23a)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,'_transformCalculateSrcRect',!0x0),q(this,_0x341125(0x3d1),_0x54d53a[_0x341125(0x1b1)]),q(this,_0x341125(0x217),!0x0),this[_0x341125(0x211)]={..._0x29ac89},this[_0x341125(0x29d)]['setPresentation'](_0x29ac89[_0x341125(0x3e3)],_0x29ac89[_0x341125(0x366)]!==!0x1),this[_0x341125(0x25e)](),this[_0x341125(0x38c)]();}['_init'](){const _0x3a1b8b=_0x244912;this[_0x3a1b8b(0x3f1)][_0x3a1b8b(0x318)](_0x163f88=>{const _0x4b91a8=_0x3a1b8b;this[_0x4b91a8(0x13f)](_0x163f88);});}['setPrstGeom'](_0x426f13){const _0x32c1d1=_0x244912;this[_0x32c1d1(0x211)]['prstGeom']=_0x426f13;}[_0x244912(0x1ca)](_0x49b1e5){const _0x11ae88=_0x244912;this[_0x11ae88(0x211)][_0x11ae88(0x174)]=_0x49b1e5,this['makeDirty'](!0x0);}['setFormulaPresentation'](_0x20bd36,_0x28cd46=!0x0){const _0x54be33=_0x244912;this[_0x54be33(0x29d)][_0x54be33(0x323)](_0x20bd36,_0x28cd46),this[_0x54be33(0x211)]['formulaPresentation']=_0x20bd36,this[_0x54be33(0x38c)](),this[_0x54be33(0x23a)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x5d28a2=_0x244912;let _0x586c70=this[_0x5d28a2(0x211)]['shapeModel'],_0x5553c3=_0x586c70[_0x5d28a2(0x158)](),_0x298b92=_0x10cd0f(_0x5553c3==null?void 0x0:_0x5553c3[_0x5d28a2(0x328)]),_0x3359d5=_0x298b92==null?void 0x0:_0x298b92['doc'],_0x41c73e=this[_0x5d28a2(0x29d)][_0x5d28a2(0x36b)]();if(!_0x3359d5||_0x41c73e[_0x5d28a2(0x1ae)]===0x0)return;_0x586c70[_0x5d28a2(0x340)]({'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]});let _0x94c6dd=_0x17f889({'documentData':_0x41c73e[_0x5d28a2(0x3c9)](_0x54a124=>_0x4841cb(_0x3359d5,_0x54a124)),'height':this['height'],'shapeData':_0x586c70[_0x5d28a2(0x2b7)](),'textRect':_0x586c70['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x5d28a2(0x326)],'height':this[_0x5d28a2(0x1ba)]}),'width':this[_0x5d28a2(0x326)]});if(_0x94c6dd){var _0x617d71;this[_0x5d28a2(0x249)](_0x94c6dd['width'],_0x94c6dd['height']),(_0x617d71=this[_0x5d28a2(0x3e9)]())==null||(_0x617d71=_0x617d71[_0x5d28a2(0x255)]())==null||_0x617d71[_0x5d28a2(0x2e6)]();}}get['unitId'](){const _0x224b00=_0x244912;return this[_0x224b00(0x211)][_0x224b00(0x21f)];}get['subUnitId'](){const _0x25027d=_0x244912;return this[_0x25027d(0x211)]['subUnitId'];}[_0x244912(0x13f)](_0x44b438){const _0x2b247c=_0x244912;if(this[_0x2b247c(0x211)][_0x2b247c(0x39f)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x4b99ea,height:_0x4c60a2}=this,{width:_0x4023da=0x0,height:_0x393f89=0x0}=_0x44b438[_0x2b247c(0x2c7)],{left:_0x49f185=0x0,top:_0x6e5c84=0x0,right:_0xef8de=0x0,bottom:_0x5856c3=0x0}=this[_0x2b247c(0x211)]['srcRect'],_0xd1c295=_0x49f185,_0x49dcb1=_0x6e5c84,_0x300326=_0xef8de,_0x4cb772=_0x5856c3,_0x1299a7=!0x1;if(_0x4023da!==0x0&&_0x4023da!==_0x4b99ea){let _0x34c0e3=_0x49f185/_0x4023da,_0x42faf0=_0xef8de/_0x4023da;_0xd1c295=_0x4b99ea*_0x34c0e3,_0x300326=_0x4b99ea*_0x42faf0,_0x1299a7=!0x0;}if(_0x393f89!==0x0&&_0x393f89!==_0x4c60a2){let _0x2c322c=_0x6e5c84/_0x393f89,_0x5f3a7b=_0x5856c3/_0x393f89;_0x49dcb1=_0x4c60a2*_0x2c322c,_0x4cb772=_0x4c60a2*_0x5f3a7b,_0x1299a7=!0x0;}_0x1299a7&&this[_0x2b247c(0x3c4)]({'left':_0xd1c295,'top':_0x49dcb1,'right':_0x300326,'bottom':_0x4cb772});}[_0x244912(0x3c4)](_0x7f0376){const _0x9ae493=_0x244912;this[_0x9ae493(0x211)][_0x9ae493(0x39f)]=_0x7f0376,this[_0x9ae493(0x23a)](!0x0);}[_0x244912(0x37e)](_0x4487a4){const _0x2eb7d1=_0x244912;this[_0x2eb7d1(0x211)][_0x2eb7d1(0x1b4)]=_0x4487a4,this['makeDirty'](!0x0);}set['transform'](_0x2c61b6){const _0x1b644=_0x244912;this[_0x1b644(0x2bc)]=_0x2c61b6;}get[_0x244912(0x1b7)](){const _0x16b4e8=_0x244912;this[_0x16b4e8(0x2bc)]||this[_0x16b4e8(0x294)]();let _0x5022b9=this[_0x16b4e8(0x2bc)]['clone']();return this[_0x16b4e8(0x333)](_0x5022b9);}get[_0x244912(0x395)](){const _0x29a3ff=_0x244912;return this[_0x29a3ff(0x211)]['shapeModel'];}get[_0x244912(0x19c)](){const _0x3e2ac1=_0x244912;return this[_0x3e2ac1(0x211)][_0x3e2ac1(0x19c)];}get[_0x244912(0x274)](){return _0x511859['SHAPE'];}['_draw'](_0x2ae495,_0x2de7ee,_0x3923c1,_0x4e5420){const _0x276c40=_0x244912;let _0x53aedf=this[_0x276c40(0x211)][_0x276c40(0x395)];if(!_0x53aedf||!_0x2de7ee)return;let _0x760c32=_0x3923c1??this[_0x276c40(0x326)],_0x716484=_0x4e5420??this[_0x276c40(0x1ba)],_0x2b43a2={'shapeType':_0x53aedf[_0x276c40(0x382)](),'width':_0x760c32,'height':_0x716484},_0x320c6d={'renderMode':_0x4ba7f7['Path'],'oKey':this[_0x276c40(0x206)],'image':this[_0x276c40(0x211)][_0x276c40(0x1b4)],'angle':this['angle']};_0x53aedf[_0x276c40(0x340)](_0x2b43a2),_0x2ae495[_0x276c40(0x350)]();let _0x353288={'top':0x0,'left':0x0,'width':_0x760c32,'height':_0x716484},_0x29a030=_0x53aedf['getDrawingEffectBounds'](_0x353288);_0x29a030?this[_0x276c40(0x3a8)](_0x2ae495,_0x29a030,_0x4d4034=>{const _0x1655ec=_0x276c40;_0x53aedf[_0x1655ec(0x21a)](_0x4d4034,_0x353288,_0x320c6d);}):(this[_0x276c40(0x342)](),_0x53aedf[_0x276c40(0x21a)](_0x2ae495,_0x353288,_0x320c6d)),_0x2ae495[_0x276c40(0x22a)]();let _0xe3617e=_0x53aedf['getShapeTextData'](),_0x505de7=_0x53aedf[_0x276c40(0x2a5)](_0x353288),_0x3b46ae=_0x53aedf['isLineShape']();if(_0xe3617e&&_0x505de7&&!_0x3b46ae){_0x2ae495[_0x276c40(0x350)](),this[_0x276c40(0x3d8)]()[_0x276c40(0x166)]&&_0x2ae495['scale'](-0x1,0x1);let _0x380483=_0x760c32/0x2,_0x557066=_0x716484/0x2;_0x2ae495[_0x276c40(0x2cf)](-_0x380483,-_0x557066),_0x2ae495[_0x276c40(0x1a4)](),this['_drawShapeText'](_0x2ae495,_0xe3617e,_0x505de7),_0x2ae495[_0x276c40(0x22a)]();}}[_0x244912(0x3ad)](_0x56b13c){}['_drawShapeText'](_0x369fec,_0x4ed1fd,_0x3ac218){const _0x412883=_0x244912;var _0x2cf7d8;this['_props']['isEditing']||(!((_0x2cf7d8=_0x4ed1fd['dataModel'])!=null&&_0x2cf7d8[_0x412883(0x343)])&&'isRichText'in _0x4ed1fd&&_0x4ed1fd[_0x412883(0x281)]===!0x1?this['_drawSimpleText'](_0x369fec,_0x4ed1fd,_0x3ac218):this[_0x412883(0x354)](_0x369fec,_0x4ed1fd,_0x3ac218));}[_0x244912(0x377)](_0x262b79,_0x3df5c3,_0x2ae611){const _0x575dee=_0x244912;this[_0x575dee(0x354)](_0x262b79,{..._0x3df5c3,'text':_0x3df5c3[_0x575dee(0x232)]??'','dataModel':{'doc':_0x3f9894(_0x3df5c3,_0x575dee(0x15f)+this[_0x575dee(0x206)])}},_0x2ae611);}[_0x244912(0x354)](_0xcba5e0,_0x343f5e,_0x12ce37){const _0x4ec8b6=_0x244912;_0x4dca42(_0xcba5e0,this[_0x4ec8b6(0x29d)],(_0x53ee7e,_0xb6c392)=>{this['_drawRichTextLayer'](_0x53ee7e,_0x343f5e,_0x12ce37,_0xb6c392);});}[_0x244912(0x164)](_0x14f38b,_0x3307c8,_0x19382e,_0x320c25){const _0x4f85d4=_0x244912;let _0x342807=this[_0x4f85d4(0x211)][_0x4f85d4(0x2ce)];if(!_0x3307c8[_0x4f85d4(0x328)]||!_0x342807)return;let _0x1f3f15=_0x10cd0f(_0x3307c8[_0x4f85d4(0x328)]);if(!_0x1f3f15)return;let _0x4edd41=_0x1f3f15[_0x4f85d4(0x343)];if(!_0x4edd41)return;let _0x34469c=_0x4841cb(_0x4edd41,_0x320c25),_0xd5962e=_0x1f3f15['va']??_0x42b23f[_0x4f85d4(0x363)],_0x141c6e=_0x1f3f15['ha']??_0x324c7e[_0x4f85d4(0x3cf)],_0xdb8dd8=Tr(this[_0x4f85d4(0x211)][_0x4f85d4(0x395)][_0x4f85d4(0x2b7)](),_0x3307c8,_0x34469c),_0x377171=_0x3307c8[_0x4f85d4(0x3f3)],_0x21efb9=_0x437d41(_0x34469c,{'isHorizontal':_0x377171!==!0x1,'textRect':_0x19382e,'verticalAlign':_0xd5962e,'horizontalAlign':_0x141c6e,'wrapStrategy':_0xdb8dd8['wrapStrategy']}),_0x1e1e9b=new _0x579f00(_0x21efb9),_0x33515a=new _0xe5b13a(_0x1e1e9b),_0x25d61c=_0x1caf05[_0x4f85d4(0x22c)](_0x33515a,_0x342807);_0x25d61c[_0x4f85d4(0x246)]();let _0x4d113e=_0x25d61c[_0x4f85d4(0x307)]()['actualHeight'],_0xccc59c=_0xe799eb({'contentHeight':_0x4d113e,'verticalAlign':_0xd5962e,'viewportHeight':_0x19382e[_0x4f85d4(0x1ba)]});_0x1e1e9b['updateDocumentStyle']({'pageSize':{'width':_0x377171===!0x1?_0x19382e[_0x4f85d4(0x1ba)]:_0x19382e[_0x4f85d4(0x326)],'height':_0x5ca9c1(_0x34469c,_0xccc59c[_0x4f85d4(0x24b)])}}),_0x1e1e9b['updateDocumentDataMargin']({'t':_0xccc59c[_0x4f85d4(0x310)]}),_0x25d61c[_0x4f85d4(0x246)]();let _0x22f0df=new _0x4d7bfb(_0x4f85d4(0x39a)+this['oKey'],_0x25d61c,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x4f85d4(0x23a)](!0x0)});_0x22f0df[_0x4f85d4(0x249)](_0x19382e[_0x4f85d4(0x326)],_0xccc59c[_0x4f85d4(0x24b)]),_0x14f38b['save'](),_0x14f38b[_0x4f85d4(0x143)](_0x19382e[_0x4f85d4(0x1fe)],_0x19382e[_0x4f85d4(0x172)]),_0xdb8dd8[_0x4f85d4(0x271)]&&(_0x14f38b[_0x4f85d4(0x1a4)](),_0x14f38b[_0x4f85d4(0x379)](0x0,_0xccc59c[_0x4f85d4(0x3b7)],_0x19382e[_0x4f85d4(0x326)],_0xccc59c['clipHeight']),_0x14f38b[_0x4f85d4(0x271)]()),_0xccc59c[_0x4f85d4(0x3c3)]&&_0x14f38b[_0x4f85d4(0x143)](0x0,_0xccc59c[_0x4f85d4(0x3c3)]),_0x22f0df[_0x4f85d4(0x219)](_0x14f38b),_0x14f38b[_0x4f85d4(0x22a)](),_0x22f0df[_0x4f85d4(0x346)](),_0x25d61c[_0x4f85d4(0x346)](),_0x33515a[_0x4f85d4(0x346)](),_0x1e1e9b['dispose']();}[_0x244912(0x21a)](_0x27299e,_0x81ed65,_0x514305=!0x1){const _0x5822d7=_0x244912;if(!this[_0x5822d7(0x27e)])return this[_0x5822d7(0x23a)](!0x1),this;let {width:_0x2b19da,height:_0x1dae20,left:_0x45f934,top:_0x7bd85d}=this,_0x22d3b2=this['getRealBound']();if(_0x2b19da=_0x22d3b2[_0x5822d7(0x326)],_0x1dae20=_0x22d3b2[_0x5822d7(0x1ba)],_0x45f934=_0x22d3b2['left'],_0x7bd85d=_0x22d3b2[_0x5822d7(0x172)],this[_0x5822d7(0x28f)](_0x81ed65)){let {top:_0x19f389,left:_0x4a89fb,bottom:_0x2e5197,right:_0x3b7756}=_0x81ed65['viewBound'];if(_0x2b19da+this['strokeWidth']+_0x45f934<_0x4a89fb||_0x3b7756<_0x45f934||_0x1dae20+this[_0x5822d7(0x2a7)]+_0x7bd85d<_0x19f389||_0x2e5197<_0x7bd85d)return this;}let _0x262c27=_0x45f934+_0x2b19da/0x2,_0x5bd815=_0x7bd85d+_0x1dae20/0x2,_0x559d48=this[_0x5822d7(0x1b7)]['getMatrix']();if(this['_props'][_0x5822d7(0x174)]){let _0x4983c1=this[_0x5822d7(0x3d8)](),_0x2f5231=new _0x16a726();_0x2f5231[_0x5822d7(0x194)]({..._0x4983c1}),_0x559d48=_0x2f5231[_0x5822d7(0x1ef)]();}return _0x27299e['save'](),this[_0x5822d7(0x211)][_0x5822d7(0x395)][_0x5822d7(0x3e8)]===!0x0||_0x27299e[_0x5822d7(0x1b7)](_0x559d48[0x0],_0x559d48[0x1],_0x559d48[0x2],_0x559d48[0x3],_0x262c27,_0x5bd815),this['_draw'](_0x27299e,_0x81ed65,_0x2b19da,_0x1dae20),_0x27299e[_0x5822d7(0x22a)](),this[_0x5822d7(0x23a)](!0x1),this;}[_0x244912(0x31c)](_0x1191ea){const _0x2aff13=_0x244912;let {left:_0x2ef96a,top:_0x791bcc,width:_0xbc9f5,height:_0x24cf48}=this[_0x2aff13(0x38b)](),_0x120f0e=this['transform'][_0x2aff13(0x1ef)](),_0x5b653f=_0x2ef96a+_0xbc9f5/0x2,_0x3ec877=_0x791bcc+_0x24cf48/0x2,_0x4cf6a7=new _0x16a726([_0x120f0e[0x0],_0x120f0e[0x1],_0x120f0e[0x2],_0x120f0e[0x3],_0x5b653f,_0x3ec877]),_0x2ae7ee=this[_0x2aff13(0x2a4)]();return(this['isInGroup']&&(_0x2ae7ee==null?void 0x0:_0x2ae7ee['classType'])===_0x511859['GROUP']?_0x2ae7ee[_0x2aff13(0x162)][_0x2aff13(0x1b0)](_0x4cf6a7):_0x4cf6a7)[_0x2aff13(0x2ca)]()[_0x2aff13(0x34b)](_0x1191ea);}[_0x244912(0x301)](_0x5656f8){const _0x2a73a3=_0x244912;let {left:_0x2039c3,top:_0x6355c,width:_0x2c00a9,height:_0x515bdc}=this[_0x2a73a3(0x38b)](),_0xb82e9f=_0x2039c3+_0x2c00a9/0x2,_0x909c91=_0x6355c+_0x515bdc/0x2,_0x2b1dff=this[_0x2a73a3(0x1b7)][_0x2a73a3(0x1ef)](),_0x3be251=new _0x16a726([_0x2b1dff[0x0],_0x2b1dff[0x1],_0x2b1dff[0x2],_0x2b1dff[0x3],_0xb82e9f,_0x909c91]),_0x353a91=this[_0x2a73a3(0x2a4)](),_0x408df3=(this['isInGroup']&&(_0x353a91==null?void 0x0:_0x353a91[_0x2a73a3(0x274)])===_0x511859['GROUP']?_0x353a91[_0x2a73a3(0x162)][_0x2a73a3(0x1b0)](_0x3be251):_0x3be251)['invert']()[_0x2a73a3(0x34b)](_0x5656f8),_0x5b7831=_0x2c00a9/0x2,_0x36604e=_0x515bdc/0x2,_0x1a395=this['_props'][_0x2a73a3(0x395)];return _0x1a395&&_0x1a395['isLineShape']()?_0x1a395[_0x2a73a3(0x17b)](_0x408df3['x'],_0x408df3['y'],_0x2c00a9,_0x515bdc):_0x408df3['x']>=-_0x5b7831-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['x']<=_0x5b7831+this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']>=-_0x36604e-this[_0x2a73a3(0x2a7)]/0x2&&_0x408df3['y']<=_0x36604e+this['strokeWidth']/0x2;}[_0x244912(0x346)](){const _0x33b70e=_0x244912;this['_formulaAnimation'][_0x33b70e(0x346)](),this[_0x33b70e(0x211)]['shapeModel']=null,super[_0x33b70e(0x346)]();}},Dr=class extends _0x4546bd{constructor(_0x3d00ac,_0x5858cd){const _0x73a06=_0x244912;super(_0x3d00ac,_0x5858cd),q(this,_0x73a06(0x2cd),null),q(this,_0x73a06(0x1b5),null),q(this,_0x73a06(0x20a),null),q(this,_0x73a06(0x1e9),null),_0x5858cd&&this[_0x73a06(0x2d4)](_0x5858cd);}[_0x244912(0x24f)](){const _0x454e31=_0x244912;return{'unitId':this[_0x454e31(0x20a)],'subUnitId':this[_0x454e31(0x1e9)],'drawingId':this['_shapeId']};}[_0x244912(0x2d4)](_0xde3ba7){const _0x25a2aa=_0x244912;_0xde3ba7[_0x25a2aa(0x19c)]!==void 0x0&&(this[_0x25a2aa(0x2cd)]=_0xde3ba7[_0x25a2aa(0x19c)]),_0xde3ba7['adjName']!==void 0x0&&(this['_adjName']=_0xde3ba7[_0x25a2aa(0x339)]),_0xde3ba7[_0x25a2aa(0x21f)]!==void 0x0&&(this[_0x25a2aa(0x20a)]=_0xde3ba7[_0x25a2aa(0x21f)]),_0xde3ba7[_0x25a2aa(0x1c5)]!==void 0x0&&(this[_0x25a2aa(0x1e9)]=_0xde3ba7['subUnitId']),this[_0x25a2aa(0x1d8)]({'width':_0xde3ba7[_0x25a2aa(0x326)],'height':_0xde3ba7[_0x25a2aa(0x1ba)]});}[_0x244912(0x16b)](_0x2c5505){const _0xed7c5=_0x244912;_0x2e680e[_0xed7c5(0x31e)](_0x2c5505,{'radius':_0x59f579[_0xed7c5(0x3c5)],'fill':_0x59f579[_0xed7c5(0x215)],'stroke':_0x59f579['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function J(_0x545f47,_0x5ac016){return function(_0x5895dc,_0x33a3ef){_0x5ac016(_0x5895dc,_0x33a3ef,_0x545f47);};}function Y(_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959){const _0x1cd034=_0x244912;var _0x4e3185=arguments[_0x1cd034(0x1ae)],_0x1f5412=_0x4e3185<0x3?_0x15d8d8:_0x2f4959===null?_0x2f4959=Object[_0x1cd034(0x33b)](_0x15d8d8,_0x3cac19):_0x2f4959,_0x37818a;if(typeof Reflect==_0x1cd034(0x3d9)&&typeof Reflect[_0x1cd034(0x3cc)]=='function')_0x1f5412=Reflect[_0x1cd034(0x3cc)](_0x3438c3,_0x15d8d8,_0x3cac19,_0x2f4959);else{for(var _0x218e96=_0x3438c3[_0x1cd034(0x1ae)]-0x1;_0x218e96>=0x0;_0x218e96--)(_0x37818a=_0x3438c3[_0x218e96])&&(_0x1f5412=(_0x4e3185<0x3?_0x37818a(_0x1f5412):_0x4e3185>0x3?_0x37818a(_0x15d8d8,_0x3cac19,_0x1f5412):_0x37818a(_0x15d8d8,_0x3cac19))||_0x1f5412);}return _0x4e3185>0x3&&_0x1f5412&&Object[_0x1cd034(0x30c)](_0x15d8d8,_0x3cac19,_0x1f5412),_0x1f5412;}let X=class extends _0x2c7179{constructor(_0x8ffbbd,_0x7b3275,_0x2d1e2f,_0xc3d79,_0x2b73ed,_0x284c84){const _0x50ef8d=_0x244912;super(),this[_0x50ef8d(0x239)]=_0x8ffbbd,this[_0x50ef8d(0x288)]=_0x7b3275,this[_0x50ef8d(0x3b8)]=_0x2d1e2f,this[_0x50ef8d(0x2a2)]=_0xc3d79,this[_0x50ef8d(0x177)]=_0x2b73ed,this[_0x50ef8d(0x296)]=_0x284c84,q(this,_0x50ef8d(0x1b6),new Map()),this[_0x50ef8d(0x14a)](this['_shapeFormulaService'][_0x50ef8d(0x3ab)][_0x50ef8d(0x305)](_0x44ff00=>{const _0x48d0e1=_0x50ef8d;var _0x1b3a07;(_0x1b3a07=this['_formulaShapes'][_0x48d0e1(0x1e0)](this[_0x48d0e1(0x168)](_0x44ff00['unitId'],_0x44ff00[_0x48d0e1(0x1c5)],_0x44ff00[_0x48d0e1(0x19c)])))==null||_0x1b3a07[_0x48d0e1(0x2b3)](_0x4005ec=>_0x4005ec[_0x48d0e1(0x228)](_0x44ff00[_0x48d0e1(0x39d)],_0x44ff00[_0x48d0e1(0x35a)]));})),this[_0x50ef8d(0x14a)](this[_0x50ef8d(0x239)][_0x50ef8d(0x16d)][_0x50ef8d(0x305)](_0x2ad799=>{const _0x569004=_0x50ef8d;_0x2ad799[_0x569004(0x2b3)](_0x14a229=>{const _0x2dcced=_0x569004;this[_0x2dcced(0x296)][_0x2dcced(0x243)]({'unitId':_0x14a229[_0x2dcced(0x21f)],'subUnitId':_0x14a229[_0x2dcced(0x1c5)],'shapeId':_0x14a229['drawingId']}),this[_0x2dcced(0x1b6)]['delete'](this[_0x2dcced(0x168)](_0x14a229[_0x2dcced(0x21f)],_0x14a229[_0x2dcced(0x1c5)],_0x14a229[_0x2dcced(0x237)]));});}));}[_0x244912(0x1da)](_0x468bc3,_0xba6425,_0x23ccc3){const _0x3d8fbd=_0x244912;let {transform:_0x573c92,drawingType:_0x2f90a2,srcRect:_0x261997,prstGeom:_0x53e6cd,groupId:_0x55f6b3,unitId:_0x4752f5,subUnitId:_0x478367,drawingId:_0x5b4834,isMultiTransform:_0x127e8a,transforms:_0x2975a5,hidden:_0x3eac5b,selectable:_0x4b1135}=_0x468bc3;if(_0x2f90a2!==_0x54d53a['DRAWING_SHAPE']||!this[_0x3d8fbd(0x239)]['getDrawingVisible']()||_0x573c92==null)return;let _0x4d8acc=this['_drawingManagerService'][_0x3d8fbd(0x3d5)](),_0x36415c=_0x127e8a&&_0x2975a5?_0x2975a5:[_0x573c92],_0x1c3872=[];for(let _0x445200 of _0x36415c){let {left:_0xd1166c,top:_0x5d056d,width:_0x1992ca,height:_0x2a5b94,angle:_0x137560,flipX:_0x51b435,flipY:_0x2e1b73,skewX:_0x4a5010,skewY:_0x4bdddb}=_0x445200,_0x4a1ac2=_0x36415c['indexOf'](_0x445200),_0x1a83b0=_0x5cc8a7({'unitId':_0x4752f5,'subUnitId':_0x478367,'drawingId':_0x5b4834},_0x127e8a?_0x4a1ac2:void 0x0),_0x1bd0e0=_0xba6425[_0x3d8fbd(0x251)](_0x1a83b0);if(_0x1bd0e0!=null){let _0x56d134={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x1bd0e0 instanceof Er&&this[_0x3d8fbd(0x1bb)](_0x1bd0e0,_0x56d134),_0x1bd0e0[_0x3d8fbd(0x1d8)]({'left':_0xd1166c,'top':_0x5d056d,'width':_0x1992ca,'height':_0x2a5b94,'angle':_0x137560,'flipX':_0x51b435,'flipY':_0x2e1b73,'skewX':_0x4a5010,'skewY':_0x4bdddb});continue;}let _0x1ffb06=this[_0x3d8fbd(0x239)][_0x3d8fbd(0x2d2)](_0x4752f5,_0x478367),_0x2ca096=_0x1ffb06['indexOf'](_0x5b4834);if(_0xba6425['getObjectIncludeInGroup'](_0x1a83b0)||!this['_drawingManagerService'][_0x3d8fbd(0x312)]())continue;let _0x864e4c=this[_0x3d8fbd(0x288)]['getShapeModel'](_0x4752f5,_0x478367,_0x5b4834);if(!_0x864e4c)continue;let _0x4da4de=_0x3c2fe3(_0x864e4c[_0x3d8fbd(0x382)]())?{..._0x31a8fe,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x31a8fe,_0x346944=_0x864e4c[_0x3d8fbd(0x2b7)]()[_0x3d8fbd(0x141)],_0x2bb6b6={'unitId':_0x4752f5,'subUnitId':_0x478367,'shapeId':_0x5b4834};_0x346944&&this[_0x3d8fbd(0x296)][_0x3d8fbd(0x2a8)](_0x2bb6b6,_0x346944);let _0x3dcbc5=new Er(_0x1a83b0,{..._0x445200,'zIndex':_0x2ca096===-0x1?_0x1ffb06[_0x3d8fbd(0x1ae)]-0x1:_0x2ca096,'shapeModel':_0x864e4c,'localeService':this[_0x3d8fbd(0x3b8)],'shapeId':_0x5b4834,'unitId':_0x4752f5,'subUnitId':_0x478367,'visible':_0x3eac5b!==!0x0,'evented':_0x4b1135!==!0x1,'formulaPresentation':_0x346944?this['_shapeFormulaService']['getPresentation'](_0x2bb6b6):void 0x0,'animateFormulaPresentation':(_0x346944==null?void 0x0:_0x346944[_0x3d8fbd(0x35a)])!==!0x1,'transformerConfig':_0x4da4de});if(_0x346944){let _0x7553d2=this[_0x3d8fbd(0x168)](_0x4752f5,_0x478367,_0x5b4834),_0x53b1ce=this['_formulaShapes'][_0x3d8fbd(0x1e0)](_0x7553d2)??new Set();_0x53b1ce['add'](_0x3dcbc5),this[_0x3d8fbd(0x1b6)][_0x3d8fbd(0x207)](_0x7553d2,_0x53b1ce);}_0xba6425['addObject'](_0x3dcbc5,_0x352374),_0x4d8acc&&_0xba6425[_0x3d8fbd(0x191)](_0x3dcbc5),_0x55f6b3&&_0x1e07bb({'drawingId':_0x55f6b3,'unitId':_0x4752f5,'subUnitId':_0x478367},_0x3dcbc5,_0xba6425,this[_0x3d8fbd(0x239)]),_0x53e6cd!=null&&_0x3dcbc5[_0x3d8fbd(0x37b)](_0x53e6cd),_0x261997!=null&&_0x3dcbc5['setSrcRect'](_0x261997);let _0x4b570c=this[_0x3d8fbd(0x169)](_0x3dcbc5,_0x864e4c[_0x3d8fbd(0x2b7)]());if(_0x4b570c){var _0x3b441f;_0x23ccc3==null||(_0x3b441f=_0x23ccc3['resourceCollector'])==null||_0x3b441f[_0x3d8fbd(0x1a3)](_0x4b570c);}_0x1c3872[_0x3d8fbd(0x399)](_0x3dcbc5);}return _0x1c3872;}[_0x244912(0x168)](_0x86d034,_0x36b0ca,_0x5f1159){return _0x86d034+'\x00'+_0x36b0ca+'\x00'+_0x5f1159;}[_0x244912(0x1bb)](_0x51671c,_0x195067){const _0x25c5a6=_0x244912;let _0x9bddd9=this['_sheetsShapeService'][_0x25c5a6(0x35b)](_0x195067[_0x25c5a6(0x21f)],_0x195067['subUnitId'],_0x195067[_0x25c5a6(0x19c)]),_0x5c68e4=_0x9bddd9==null?void 0x0:_0x9bddd9[_0x25c5a6(0x2b7)]()[_0x25c5a6(0x141)],_0xc2308b=this[_0x25c5a6(0x168)](_0x195067[_0x25c5a6(0x21f)],_0x195067[_0x25c5a6(0x1c5)],_0x195067[_0x25c5a6(0x19c)]);if(_0x5c68e4){this[_0x25c5a6(0x296)][_0x25c5a6(0x2a8)](_0x195067,_0x5c68e4);let _0x414719=this['_formulaShapes'][_0x25c5a6(0x1e0)](_0xc2308b)??new Set();_0x414719[_0x25c5a6(0x1a3)](_0x51671c),this[_0x25c5a6(0x1b6)][_0x25c5a6(0x207)](_0xc2308b,_0x414719);}else{var _0x205a6c;this[_0x25c5a6(0x296)]['unregister'](_0x195067),(_0x205a6c=this[_0x25c5a6(0x1b6)]['get'](_0xc2308b))==null||_0x205a6c[_0x25c5a6(0x19b)](_0x51671c);}_0x51671c[_0x25c5a6(0x228)](_0x5c68e4?this[_0x25c5a6(0x296)]['getPresentation'](_0x195067):void 0x0,(_0x5c68e4==null?void 0x0:_0x5c68e4['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x4275e3){const _0x392b24=_0x244912;let _0x1e131d=_0x4275e3[_0x392b24(0x395)]['getShapeData'](),_0x2a7fd7=_0x1e131d[_0x392b24(0x38f)];if(!_0x2a7fd7||_0x2a7fd7[_0x392b24(0x371)]!==_0x31dedb[_0x392b24(0x187)]||!_0x2a7fd7['fillImageSource']){_0x4275e3[_0x392b24(0x37e)](void 0x0);return;}this[_0x392b24(0x169)](_0x4275e3,_0x1e131d);}[_0x244912(0x169)](_0x3666e2,_0x1341f2){const _0x2b564c=_0x244912;let _0x1b2cda=_0x1341f2[_0x2b564c(0x38f)];if(!_0x1b2cda||_0x1b2cda[_0x2b564c(0x371)]!==_0x31dedb[_0x2b564c(0x187)]||!_0x1b2cda['fillImageSource'])return;let _0x27c7a3=_0x1b2cda[_0x2b564c(0x2e5)],_0x4b8e60=_0x1b2cda[_0x2b564c(0x347)]??_0x4ef65b[_0x2b564c(0x314)],_0x215a3a=this['_imageIoService'][_0x2b564c(0x3a2)](_0x27c7a3,_0x4b8e60);if(_0x215a3a){_0x3666e2[_0x2b564c(0x37e)](_0x215a3a);return;}return this['_loadAndSetImage'](_0x3666e2,_0x27c7a3,_0x4b8e60);}async['_loadAndSetImage'](_0x4b562e,_0x3bc792,_0x2381e7){const _0xa6d1e5=_0x244912;let _0x95c19f;try{if(_0x2381e7===_0x4ef65b['UUID'])_0x95c19f=await this['_imageIoService'][_0xa6d1e5(0x3bd)](_0x3bc792);else{if(_0x2381e7===_0x4ef65b[_0xa6d1e5(0x314)])try{_0x95c19f=await this[_0xa6d1e5(0x177)][_0xa6d1e5(0x3bd)](_0x3bc792);}catch{_0x95c19f=_0x3bc792;}else _0x95c19f=_0x3bc792;}}catch(_0x25b3ba){console['error'](_0xa6d1e5(0x17e),_0x25b3ba);return;}await new Promise(_0x1aee48=>{const _0x42a68f=_0xa6d1e5;let _0x48b8c2=new window[(_0x42a68f(0x374))]();_0x48b8c2['onload']=()=>{const _0x3ebcc3=_0x42a68f;this[_0x3ebcc3(0x2a2)][_0x3ebcc3(0x2c3)](_0x3bc792,_0x2381e7,_0x48b8c2),_0x4b562e[_0x3ebcc3(0x37e)](_0x48b8c2),_0x1aee48();},_0x48b8c2[_0x42a68f(0x3eb)]=()=>{const _0xd4f5fa=_0x42a68f;console[_0xd4f5fa(0x3c8)](_0xd4f5fa(0x155),_0x3bc792),_0x1aee48();},_0x48b8c2[_0x42a68f(0x32c)]=_0x95c19f;});}};X=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0x3f1353)),J(0x3,_0x52e3a0),J(0x4,_0x55093c),J(0x5,_0x318433(_0x3d58ed))],X);let Z=class extends _0x2c7179{constructor(_0x4da913,_0x3ce703,_0x22f6b9,_0x43833c,_0x19d509,_0x56337){const _0x330ffd=_0x244912;super(),this['_drawingManagerService']=_0x4da913,this[_0x330ffd(0x288)]=_0x3ce703,this[_0x330ffd(0x2f0)]=_0x22f6b9,this['_sheetDrawingShapeRenderController']=_0x43833c,this['_univerInstanceService']=_0x19d509,this[_0x330ffd(0x2d0)]=_0x56337,q(this,_0x330ffd(0x195),null),q(this,_0x330ffd(0x20a),null),q(this,_0x330ffd(0x1e9),null),q(this,_0x330ffd(0x2e8),void 0x0),q(this,'_shapes',[]),q(this,'_baseShapeLeft',0x0),q(this,_0x330ffd(0x3b6),0x0),q(this,_0x330ffd(0x334),0x0),q(this,_0x330ffd(0x223),0x0),q(this,_0x330ffd(0x332),!0x1),q(this,_0x330ffd(0x273),void 0x0),q(this,_0x330ffd(0x376),void 0x0),q(this,_0x330ffd(0x297),void 0x0),q(this,_0x330ffd(0x38d),void 0x0),q(this,'_isShouldShowDrawingShapeAdjust',!0x1),this[_0x330ffd(0x1a5)](),this[_0x330ffd(0x3e6)]();}[_0x244912(0x233)](_0x3f60d7,_0xea94e1,_0x28b775){const _0x25b901=_0x244912;let _0x5fa7ec=this['_sheetsShapeService'][_0x25b901(0x35b)](_0x3f60d7,_0xea94e1,_0x28b775);if(_0x5fa7ec)return _0x5fa7ec[_0x25b901(0x3ad)]();}[_0x244912(0x309)](){const _0x2acd39=_0x244912;this[_0x2acd39(0x269)]();}[_0x244912(0x289)](){const _0x8b3c16=_0x244912;this[_0x8b3c16(0x3e5)](!0x0);}[_0x244912(0x3ca)](_0x2344f3){const _0x40d584=_0x244912;this[_0x40d584(0x1c2)]=_0x2344f3;}['_getShapeAdjustInfosById'](_0x32c798,_0xf63c38,_0x311d66,_0x415cfc){const _0x31e3db=_0x244912;let _0x3aee8e=this[_0x31e3db(0x288)]['getShapeModel'](_0x32c798,_0xf63c38,_0x311d66);if(_0x3aee8e)return _0x3aee8e[_0x31e3db(0x21d)](_0x415cfc);}['_createShapeAdjustControls'](_0xe48bac=!0x1){const _0x240a6c=_0x244912;if(this[_0x240a6c(0x20a)]===null||this[_0x240a6c(0x1e9)]===null||this['_activeShapeId']===null)return;let _0x534f35=this[_0x240a6c(0x2f0)][_0x240a6c(0x276)](this[_0x240a6c(0x20a)]);if(!_0x534f35||!_0x534f35['with'](_0x307dc0)[_0x240a6c(0x220)]())return;let {scene:_0xd7beee}=_0x534f35,_0x1c5348={'unitId':this[_0x240a6c(0x20a)],'subUnitId':this[_0x240a6c(0x1e9)],'drawingId':this[_0x240a6c(0x195)]},_0x2089f2=this[_0x240a6c(0x239)][_0x240a6c(0x3a5)](_0x1c5348),{transform:_0xd1b8e1}=_0x2089f2;if(!_0xd1b8e1||_0x2089f2[_0x240a6c(0x185)]!==_0x54d53a[_0x240a6c(0x1b1)])return;let {left:_0x40ec58,top:_0x585c76,width:_0x5c06fa,height:_0x2c3ea6,flipX:_0x49b605,flipY:_0x228d6a,angle:_0x2216a5=0x0}=_0xd1b8e1;if(_0x40ec58===void 0x0||_0x585c76===void 0x0)return;if(_0xe48bac){let _0x3c414e=this['_sheetsShapeService'][_0x240a6c(0x35b)](this[_0x240a6c(0x20a)],this[_0x240a6c(0x1e9)],this[_0x240a6c(0x195)]);_0x3c414e==null||_0x3c414e['updateContext']({'width':_0x5c06fa??0x0,'height':_0x2c3ea6??0x0}),this[_0x240a6c(0x2e8)]=_0x3c414e==null?void 0x0:_0x3c414e[_0x240a6c(0x3ad)]();}let _0x21006b=this[_0x240a6c(0x2e8)];for(let _0x171fd2=0x0;_0x171fd2<_0x21006b[_0x240a6c(0x1ae)];_0x171fd2++){let _0x4b475f=_0x21006b[_0x171fd2],_0x20559b=_0x4b475f['x'],_0x53008b=_0x4b475f['y'];if(_0x49b605&&(_0x20559b=(_0x5c06fa||0x0)-_0x20559b),_0x228d6a&&(_0x53008b=(_0x2c3ea6||0x0)-_0x53008b),_0x2216a5!==0x0){let _0x78cdad=(_0x5c06fa||0x0)/0x2,_0x238da0=(_0x2c3ea6||0x0)/0x2,_0x2ad710=_0x2216a5*Math['PI']/0xb4,_0x32fa0a=Math['cos'](_0x2ad710),_0x29a50f=Math[_0x240a6c(0x2e1)](_0x2ad710),_0x444d88=_0x20559b-_0x78cdad,_0x5bedce=_0x53008b-_0x238da0;_0x20559b=_0x78cdad+(_0x444d88*_0x32fa0a-_0x5bedce*_0x29a50f),_0x53008b=_0x238da0+(_0x444d88*_0x29a50f+_0x5bedce*_0x32fa0a);}let _0x29c9ca={'x':_0x20559b,'y':_0x53008b,'adjName':_0x4b475f[_0x240a6c(0x339)]};this['_addShapeAdjustControl'](_0xd7beee,_0x29c9ca,_0x29c9ca[_0x240a6c(0x339)],_0x40ec58,_0x585c76,this['_unitId'],this[_0x240a6c(0x1e9)]);}}[_0x244912(0x3e5)](_0x1e18e4=!0x1){const _0x9dbedd=_0x244912;_0x1e18e4&&(this['_clearShapeAdjustControls'](),this[_0x9dbedd(0x36a)](_0x1e18e4));}['_addShapeAdjustControl'](_0xfd1c36,_0x19432a,_0x3cc982,_0x2ad3fd,_0x39bd7f,_0x1fddaf,_0x10b610){const _0x4c9e38=_0x244912;if(!this[_0x4c9e38(0x195)])return;let _0x505038=_0xfd1c36[_0x4c9e38(0x251)](_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982);if(_0x505038){_0x505038[_0x4c9e38(0x1d8)]({'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579[_0x4c9e38(0x3c5)]});return;}let _0x426eb4={'left':_0x19432a['x']+_0x2ad3fd-_0x59f579[_0x4c9e38(0x3c5)],'top':_0x19432a['y']+_0x39bd7f-_0x59f579['adjHandleSize'],'adjName':_0x3cc982,'shapeId':this['_activeShapeId'],'unitId':_0x1fddaf,'subUnitId':_0x10b610,'width':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'height':_0x59f579[_0x4c9e38(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0},_0x290501=new Dr(_0x4c9e38(0x263)+this[_0x4c9e38(0x195)]+'-'+_0x3cc982,_0x426eb4);this['_shapes']['push'](_0x290501),this[_0x4c9e38(0x32d)](_0x290501,_0xfd1c36,_0x3cc982),_0xfd1c36['addObject'](_0x290501,_0x352374+0x1);}[_0x244912(0x269)](){const _0x4887fe=_0x244912;this[_0x4887fe(0x308)][_0x4887fe(0x1ae)]!==0x0&&(this[_0x4887fe(0x308)][_0x4887fe(0x2b3)](_0x17f788=>{_0x17f788['dispose']();}),this[_0x4887fe(0x308)]=[]);}[_0x244912(0x259)](){this['_createShapeAdjustControls']();}[_0x244912(0x18d)](_0x17db28,_0x1e84a5){const _0x30a35c=_0x244912;var _0x206b68;let _0x43685c={'x':0x0,'y':0x0};if(!_0x17db28||!_0x1e84a5)return _0x43685c;let _0x46c198=this[_0x30a35c(0x2f0)]['getRenderUnitById'](_0x17db28);if(!_0x46c198||!_0x46c198[_0x30a35c(0x27b)](_0x307dc0)[_0x30a35c(0x163)](_0x1e84a5))return _0x43685c;let _0x50eccd=_0x46c198[_0x30a35c(0x27b)](_0x20a826),_0x47de93=_0x50eccd==null?void 0x0:_0x50eccd['getCurrentScrollState']();if(!_0x47de93)return _0x43685c;let _0x28491c=(_0x206b68=this[_0x30a35c(0x321)][_0x30a35c(0x287)](_0x17db28))==null?void 0x0:_0x206b68[_0x30a35c(0x184)](_0x1e84a5);if(!_0x28491c)return _0x43685c;let _0x5062bd=_0x2ead9(_0x47de93['sheetViewStartRow'],_0x47de93[_0x30a35c(0x298)],_0x46c198[_0x30a35c(0x229)],_0x28491c);return _0x5062bd?{'x':_0x5062bd[_0x30a35c(0x1fd)],'y':_0x5062bd[_0x30a35c(0x351)]}:_0x43685c;}[_0x244912(0x331)](_0x364558,_0x12309b){const _0x5419e6=_0x244912;var _0x322a9c;let _0x5e8827=(_0x322a9c=this['_univerInstanceService']['getUnit'](_0x364558))==null?void 0x0:_0x322a9c[_0x5419e6(0x184)](_0x12309b);return(_0x5e8827==null?void 0x0:_0x5e8827[_0x5419e6(0x3e2)]())??0x1;}['_attachAdjustEvent'](_0x3a5fe6,_0x2b405a,_0x197773){const _0x2a08ff=_0x244912;this[_0x2a08ff(0x14a)](_0x21ce23(_0x3a5fe6['onPointerDown$'][_0x2a08ff(0x318)]((_0x4a8cdb,_0x3a37d9)=>{const _0x1b7bad=_0x2a08ff;var _0x146430,_0x20f4d8,_0x32f43e,_0x1fa901;let _0x50ae58=_0x3a5fe6[_0x1b7bad(0x24f)]();this[_0x1b7bad(0x273)]=this['_getShapeAdjustInfosById'](_0x50ae58[_0x1b7bad(0x21f)],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58['drawingId'],_0x197773),this[_0x1b7bad(0x376)]=this[_0x1b7bad(0x288)][_0x1b7bad(0x35b)](_0x50ae58['unitId'],_0x50ae58[_0x1b7bad(0x1c5)],_0x50ae58[_0x1b7bad(0x237)]);let _0x5095a7=this['_drawingManagerService'][_0x1b7bad(0x3a5)]({'unitId':this[_0x1b7bad(0x20a)],'subUnitId':this[_0x1b7bad(0x1e9)],'drawingId':this['_activeShapeId']}),{transform:_0x580844}=_0x5095a7;if(_0x580844){let {left:_0x44fedd,top:_0x55d482,width:_0x2d2367,height:_0x48053e}=_0x580844;this[_0x1b7bad(0x32a)]=_0x44fedd||0x0,this['_baseShapeTop']=_0x55d482||0x0,this[_0x1b7bad(0x334)]=_0x2d2367||0x0,this['_baseShapeHeight']=_0x48053e||0x0;}let _0x3860eb=!!((_0x146430=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x146430['flipX']),_0x5c7fd7=!!((_0x20f4d8=_0x5095a7[_0x1b7bad(0x1b7)])!=null&&_0x20f4d8[_0x1b7bad(0x3b2)]),_0x5a7cdf=((_0x32f43e=_0x5095a7[_0x1b7bad(0x1b7)])==null?void 0x0:_0x32f43e[_0x1b7bad(0x388)])||0x0;this[_0x1b7bad(0x332)]=!0x0,_0x2b405a[_0x1b7bad(0x329)]();let _0x15bb80={...((_0x1fa901=this[_0x1b7bad(0x273)])==null?void 0x0:_0x1fa901[_0x1b7bad(0x181)])??{}};this[_0x1b7bad(0x297)]=_0x2b405a[_0x1b7bad(0x1c6)][_0x1b7bad(0x318)]((_0x2f2726,_0x5160bd)=>{const _0x32a05b=_0x1b7bad;if(!this[_0x32a05b(0x332)])return;let {offsetX:_0x87e3f9,offsetY:_0x546aa0}=_0x2f2726,_0x4d5965=this[_0x32a05b(0x273)];if(this[_0x32a05b(0x376)]&&_0x4d5965){_0x2b405a[_0x32a05b(0x329)](),_0x2b405a[_0x32a05b(0x34d)](_0x48d0e8[_0x32a05b(0x1f1)]);let _0x189b90={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x32a05b(0x223)]},_0x367b89=this['_getScrollInfo'](this['_unitId'],this[_0x32a05b(0x1e9)]),_0x2a6f60=this[_0x32a05b(0x331)](this[_0x32a05b(0x20a)],this['_subUnitId']),_0x51a595=_0x87e3f9/_0x2a6f60+_0x367b89['x']-this[_0x32a05b(0x32a)],_0x142f4b=_0x546aa0/_0x2a6f60+_0x367b89['y']-this[_0x32a05b(0x3b6)];if(_0x5a7cdf!==0x0){let _0x11031a=this[_0x32a05b(0x334)]/0x2,_0x3e484b=this[_0x32a05b(0x223)]/0x2,_0x1f9ece=_0x5a7cdf*Math['PI']/0xb4,_0x55417d=Math[_0x32a05b(0x1ee)](_0x1f9ece),_0x125559=Math[_0x32a05b(0x2e1)](_0x1f9ece),_0x250b18=_0x51a595-_0x11031a,_0x43f1c6=_0x142f4b-_0x3e484b;_0x51a595=_0x11031a+(_0x250b18*_0x55417d+_0x43f1c6*_0x125559),_0x142f4b=_0x3e484b+(-_0x250b18*_0x125559+_0x43f1c6*_0x55417d);}_0x3860eb&&(_0x51a595=this[_0x32a05b(0x334)]-_0x51a595),_0x5c7fd7&&(_0x142f4b=this[_0x32a05b(0x223)]-_0x142f4b);let _0x58f255={'x':_0x51a595,'y':_0x142f4b},_0x24dbcf=this[_0x32a05b(0x376)][_0x32a05b(0x3a4)](_0x189b90,_0x58f255,_0x4d5965,_0x3860eb,_0x5c7fd7);if(Object['keys'](_0x24dbcf)[_0x32a05b(0x1ae)]===0x0)return;for(let [_0x5c552,_0x47f983]of Object['entries'](_0x24dbcf))this[_0x32a05b(0x376)]['setAdjustValueByName'](_0x5c552,_0x47f983);this[_0x32a05b(0x376)][_0x32a05b(0x340)]({'width':this[_0x32a05b(0x334)],'height':this[_0x32a05b(0x223)]});let _0x311eb2=this[_0x32a05b(0x239)][_0x32a05b(0x3a5)]({'unitId':_0x50ae58['unitId'],'subUnitId':_0x50ae58['subUnitId'],'drawingId':_0x50ae58[_0x32a05b(0x237)]});_0x311eb2&&(this['_sheetDrawingShapeRenderController'][_0x32a05b(0x1da)](_0x311eb2,_0x2b405a),this['_activeShapeAdjustPointList']=this[_0x32a05b(0x233)](_0x50ae58[_0x32a05b(0x21f)],_0x50ae58[_0x32a05b(0x1c5)],_0x50ae58[_0x32a05b(0x237)]),this['_updateAdjustControlPositions']());}_0x5160bd[_0x32a05b(0x34a)]();}),this[_0x1b7bad(0x38d)]=_0x2b405a[_0x1b7bad(0x36d)][_0x1b7bad(0x318)]((_0x24ce86,_0x264baa)=>{const _0x3782b3=_0x1b7bad;this[_0x3782b3(0x297)][_0x3782b3(0x3fc)](),this[_0x3782b3(0x38d)][_0x3782b3(0x3fc)](),_0x2b405a[_0x3782b3(0x3ee)]();let _0x3069d0=this[_0x3782b3(0x273)];if(_0x3069d0){let _0x37eb2d=_0x50ae58[_0x3782b3(0x21f)],_0x30461e=_0x50ae58[_0x3782b3(0x1c5)],_0x533018=_0x50ae58[_0x3782b3(0x237)],_0x425727={};for(let _0x56b784 of Object[_0x3782b3(0x3da)](_0x3069d0['currentAdjustValues'])){var _0x516a9c;let _0x3f1601=(_0x516a9c=this[_0x3782b3(0x376)])==null?void 0x0:_0x516a9c['getAdjustValueByName'](_0x56b784);_0x3f1601!==void 0x0&&(_0x425727[_0x56b784]=_0x3f1601);}Object[_0x3782b3(0x3da)](_0x425727)[_0x3782b3(0x1ae)]>0x0&&br(this[_0x3782b3(0x2d0)],_0x37eb2d,_0x30461e,_0x533018,{'oldShapeData':{'adjustValues':_0x15bb80}},{'adjustValues':_0x425727});}this[_0x3782b3(0x273)]=void 0x0,this[_0x3782b3(0x376)]=void 0x0,this[_0x3782b3(0x332)]=!0x1,_0x264baa['stopPropagation'](),_0x2b405a[_0x3782b3(0x33c)]();}),_0x3a37d9[_0x1b7bad(0x34a)]();})));}[_0x244912(0x3e6)](){const _0x187959=_0x244912;let _0x990274=this['_univerInstanceService'][_0x187959(0x25d)](_0x37e7a9['UNIVER_SHEET']);this['disposeWithMe'](_0x990274[_0x187959(0x18a)](_0x4ab26c(_0x50c74f=>_0x50c74f?_0x50c74f['activeSheet$'][_0x187959(0x18a)](_0x4ab26c(_0x44ef32=>{const _0x3caf42=_0x187959;if(!_0x44ef32)return _0x351d29;let _0xd131b4=_0x50c74f['getUnitId'](),_0xdc3f00=this['_renderManagerService']['getRenderUnitById'](_0xd131b4),_0x4751c5=_0xdc3f00==null?void 0x0:_0xdc3f00[_0x3caf42(0x229)];return _0x4751c5?_0x1e0e82(_0x4751c5):_0x351d29;})):_0x351d29))[_0x187959(0x305)](_0x5c7ea8=>{const _0x5951fe=_0x187959;let _0x28fc15=_0x5c7ea8[_0x5951fe(0x3ed)]();this['disposeWithMe'](_0x5c7ea8['onPointerMove$'][_0x5951fe(0x318)](()=>{const _0x3ee0cd=_0x5951fe;this[_0x3ee0cd(0x1c2)];})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x24c)][_0x5951fe(0x305)](_0xf0ed26=>{const _0x2fe531=_0x5951fe;let {objects:_0x3c82cb}=_0xf0ed26;this[_0x2fe531(0x36a)](),_0x3c82cb!==null&&_0x3c82cb[_0x2fe531(0x17a)]===0x1&&_0x3c82cb['values']()[_0x2fe531(0x3ac)]()[_0x2fe531(0x3de)]instanceof Er&&this[_0x2fe531(0x3ca)](!0x0);})),this[_0x5951fe(0x14a)](_0x28fc15[_0x5951fe(0x226)][_0x5951fe(0x305)](()=>{const _0x1819a9=_0x5951fe;this[_0x1819a9(0x1c2)]&&this[_0x1819a9(0x269)]();})),this[_0x5951fe(0x14a)](_0x5c7ea8[_0x5951fe(0x36d)][_0x5951fe(0x318)](()=>{const _0x2cb102=_0x5951fe;this[_0x2cb102(0x1c2)]&&(this[_0x2cb102(0x3ca)](!0x1),this[_0x2cb102(0x36a)]());})),this[_0x5951fe(0x14a)](_0x28fc15['changeEnd$'][_0x5951fe(0x305)](()=>{const _0x1678c9=_0x5951fe;this[_0x1678c9(0x20a)]&&this[_0x1678c9(0x1e9)]&&this[_0x1678c9(0x195)]&&this[_0x1678c9(0x239)][_0x1678c9(0x3a5)]({'unitId':this[_0x1678c9(0x20a)],'subUnitId':this[_0x1678c9(0x1e9)],'drawingId':this[_0x1678c9(0x195)]})&&(this[_0x1678c9(0x2e8)]=this['_getShapeAdjustPointListById'](this['_unitId'],this[_0x1678c9(0x1e9)],this[_0x1678c9(0x195)]),this[_0x1678c9(0x259)]());}));}));}[_0x244912(0x1a5)](){const _0x7b4652=_0x244912;this['disposeWithMe'](this['_commandService'][_0x7b4652(0x356)](_0x3ed4a4=>{const _0x4a610c=_0x7b4652;if(_0x3ed4a4['id']!==_0x4fa39c['id'])return;let {unitId:_0x305e1c,subUnitId:_0x5b3fa3,shapeId:_0x420d9c}=_0x3ed4a4[_0x4a610c(0x348)];_0x305e1c===this[_0x4a610c(0x20a)]&&_0x5b3fa3===this[_0x4a610c(0x1e9)]&&_0x420d9c===this[_0x4a610c(0x195)]&&this['refreshAdjustControls']();})),this[_0x7b4652(0x14a)](this[_0x7b4652(0x239)]['focus$']['subscribe'](_0x3d4ec8=>{const _0x1caca9=_0x7b4652;if(_0x3d4ec8[_0x1caca9(0x1ae)]===0x1){let _0x46ca82=_0x3d4ec8[0x0];if(_0x46ca82['drawingType']===_0x54d53a['DRAWING_SHAPE']&&this[_0x1caca9(0x321)]['getUnitType'](_0x46ca82['unitId'])===_0x37e7a9['UNIVER_SHEET']){this[_0x1caca9(0x195)]=_0x46ca82[_0x1caca9(0x237)];let {unitId:_0x1d7463,subUnitId:_0x420c85}=_0x46ca82;this['_activeShapeAdjustPointList']=this[_0x1caca9(0x233)](_0x1d7463,_0x420c85,this[_0x1caca9(0x195)]),this['_unitId']=_0x1d7463,this[_0x1caca9(0x1e9)]=_0x420c85,this[_0x1caca9(0x269)](),this[_0x1caca9(0x36a)]();return;}}this[_0x1caca9(0x195)]=null,this[_0x1caca9(0x2e8)]=void 0x0,this[_0x1caca9(0x20a)]=null,this['_subUnitId']=null,this[_0x1caca9(0x269)]();})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x1cd)]['subscribe'](_0x540a67=>{const _0x4aa0b9=_0x7b4652;if(_0x540a67[_0x4aa0b9(0x1ae)]===0x1){var _0x201526;let _0xc52e8f=_0x540a67[0x0];((_0x201526=this[_0x4aa0b9(0x239)]['getDrawingByParam'](_0xc52e8f))==null?void 0x0:_0x201526[_0x4aa0b9(0x185)])===_0x54d53a[_0x4aa0b9(0x1b1)]&&this[_0x4aa0b9(0x3e5)](!0x0);}})),this['disposeWithMe'](this[_0x7b4652(0x239)][_0x7b4652(0x16d)][_0x7b4652(0x305)](_0x4e0265=>{const _0x3b132a=_0x7b4652;for(let _0x50d6d2 of _0x4e0265)this[_0x3b132a(0x195)]===_0x50d6d2[_0x3b132a(0x237)]&&(this['_activeShapeId']=null,this[_0x3b132a(0x2e8)]=void 0x0,this['_unitId']=null,this[_0x3b132a(0x1e9)]=null,this[_0x3b132a(0x269)]());}));}};Z=Y([J(0x0,_0x1f50fa),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x318433(X)),J(0x4,_0x595744),J(0x5,_0x4aa13b)],Z);const Or={'id':_0x244912(0x247),'type':_0x1644dd['OPERATION'],'handler':(_0x1e0e52,_0x20556c)=>{const _0x231e25=_0x244912;let _0x3082b4=_0x1e0e52[_0x231e25(0x1e0)](_0x1f50fa),_0x450419=_0x1e0e52[_0x231e25(0x1e0)](_0xc8f10c),_0x495441=_0x1e0e52[_0x231e25(0x1e0)](Z);if(_0x20556c==null)return!0x0;if(_0x20556c[_0x231e25(0x1ae)]>0x0){var _0x52b9c4;let _0x3811d5=(_0x52b9c4=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null?void 0x0:_0x52b9c4[_0x231e25(0x229)];if(_0x3811d5){let {unitId:_0x49531e,subUnitId:_0xf9f016,drawingId:_0x21c103}=_0x20556c[0x0],_0x2a2f29=_0x5cc8a7({'unitId':_0x49531e,'subUnitId':_0xf9f016,'drawingId':_0x21c103},void 0x0),_0x3278b3=_0x3811d5[_0x231e25(0x251)](_0x2a2f29);if(_0x3278b3){var _0x2e2a03;(_0x2e2a03=_0x450419[_0x231e25(0x276)](_0x20556c[0x0][_0x231e25(0x21f)]))==null||(_0x2e2a03=_0x2e2a03[_0x231e25(0x229)][_0x231e25(0x255)]())==null||_0x2e2a03[_0x231e25(0x2e3)](_0x3278b3);}}_0x3082b4['focusDrawing'](_0x20556c),_0x495441[_0x231e25(0x3ca)](!0x1);}return!0x0;}},kr={'type':_0x1644dd[_0x244912(0x317)],'id':_0x244912(0x279),'handler':async(_0x51db68,_0x2e520e)=>{const _0x2d5fc1=_0x244912;let _0xa1c397=_0x4b1c62(_0x51db68['get'](_0x595744));if(!_0xa1c397)return!0x1;let _0x588b1e=_0x51db68['get'](_0x188788)['getCurrentLastSelection']();if(!_0x588b1e)return!0x1;let _0x47c1b9=_0x51db68['get'](_0x4aa13b),{unitId:_0x1f93f3,subUnitId:_0x563ce8}=_0xa1c397,{value:_0x1f63f8,enhanceParams:_0x51d3bb}=_0x2e520e,{range:_0x172f71}=_0x588b1e,_0xea9087={'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'shapeType':_0x1f63f8,'range':_0x172f71,'shapeId':_0x524ea6()};if(_0x51d3bb){let _0x31451f=_0x3c2fe3(_0x1f63f8),_0x55b66e=_0x1f63f8===_0x1ecf22['Rect'];_0x31451f&&(_0x51d3bb['startArrow']||_0x51d3bb[_0x2d5fc1(0x2cb)])&&(_0xea9087[_0x2d5fc1(0x17d)]={'ln':{'startArrow':_0x51d3bb['startArrow']?{'type':_0x7556f9['Arrow'],'size':_0x29f38e['Medium']}:void 0x0,'endArrow':_0x51d3bb[_0x2d5fc1(0x2cb)]?{'type':_0x7556f9[_0x2d5fc1(0x2dc)],'size':_0x29f38e[_0x2d5fc1(0x315)]}:void 0x0}}),_0x55b66e&&(_0x51d3bb[_0x2d5fc1(0x1e8)]||_0x51d3bb[_0x2d5fc1(0x3df)])&&(_0xea9087['shapeData']=_0x52ce78({'fill':{'fillType':_0x31dedb[_0x2d5fc1(0x183)],'color':_0x2d5fc1(0x1cf)},'isHorizontal':!!_0x51d3bb[_0x2d5fc1(0x1e8)],'stroke':{'lineStrokeType':_0xdf880d[_0x2d5fc1(0x272)],'width':0x1,'color':_0x2d5fc1(0x3d0)}}));}let _0x140072=_0x47c1b9['syncExecuteCommand'](_0x13dbe5['id'],_0xea9087);return setTimeout(()=>{const _0x8ee3ca=_0x2d5fc1;_0x47c1b9[_0x8ee3ca(0x1ac)](Or['id'],[{'unitId':_0x1f93f3,'subUnitId':_0x563ce8,'drawingId':_0xea9087[_0x8ee3ca(0x19c)]}]);},0xc8),_0x140072;}},Ar=_0x244912(0x384),jr=_0x244912(0x369),Mr='sheet.shape.floating-toolbar',Nr=_0x244912(0x3ef),Pr=_0x17c599(_0x244912(0x2b2)),Fr=_0x244912(0x2c1),Ir={'id':_0x244912(0x2ed),'type':_0x1644dd[_0x244912(0x317)],'handler':(_0x27e6cc,_0x368d1f)=>{const _0xe9efa9=_0x244912;let _0x2832bc=_0x27e6cc[_0xe9efa9(0x1e0)](_0x26d1b3),_0x4f8a36=_0x27e6cc['get'](_0x3f1353),_0x52e1a3=_0x27e6cc['get'](_0x595744),_0x53f654=_0x27e6cc['get'](_0x4aa13b);return _0x4b1c62(_0x52e1a3)?(_0x368d1f==null?void 0x0:_0x368d1f[_0xe9efa9(0x3de)])==='close'?(_0x2832bc['close'](jr),!0x0):(_0x2832bc[_0xe9efa9(0x170)]({'id':jr,'header':{'title':_0x4f8a36['t'](_0xe9efa9(0x1ea))},'children':{'label':jr},'onClose':()=>{const _0x245bbc=_0xe9efa9;_0x53f654[_0x245bbc(0x27c)](_0x4c2abf['id'],[]);},'width':0x168}),!0x0):!0x1;}},Lr={'type':_0x1644dd[_0x244912(0x1bf)],'id':'sheet.operation.open-sheet-shape-format-panel','handler'(){return!0x0;}};function Rr(_0x5532c3){const _0x1eaeb9=_0x244912;let _0x1c74a3=_0x5532c3[_0x1eaeb9(0x1e0)](_0x1f50fa)[_0x1eaeb9(0x2a0)](),_0x2ae793=_0x1c74a3['length']===0x1?_0x1c74a3[0x0]:null;if(!_0x2ae793||_0x2ae793['drawingType']!==_0x54d53a[_0x1eaeb9(0x1b1)])return null;let _0x2ad79e=_0x5532c3[_0x1eaeb9(0x1e0)](_0x5594a6),_0x158272=_0x2ad79e['getShapeTypeById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793['subUnitId'],_0x2ae793[_0x1eaeb9(0x237)]),_0x21856f=_0x2ad79e['getShapeDataById'](_0x2ae793[_0x1eaeb9(0x21f)],_0x2ae793[_0x1eaeb9(0x1c5)],_0x2ae793[_0x1eaeb9(0x237)]);return _0x158272===void 0x0||!_0x21856f?null:{'drawing':_0x2ae793,'shapeData':_0x21856f,'shapeType':_0x158272};}const zr={'id':'sheet.operation.apply-shape-quick-style','type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x4cd436,_0xff0ecc)=>{const _0x2cbda8=_0x244912;let _0x5a4235=Rr(_0x4cd436),_0x561132=_0x4ac0ae((_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x1aa)])??(_0xff0ecc==null?void 0x0:_0xff0ecc[_0x2cbda8(0x3de)])??'');if(!_0x5a4235||!_0x561132||_0x561132[_0x2cbda8(0x1a2)]!==_0x5e4bfe(_0x5a4235[_0x2cbda8(0x17d)]))return!0x1;let _0x3c49ab=_0xde63d9(_0x5a4235[_0x2cbda8(0x17d)],_0x561132);if(!_0x3c49ab)return!0x1;let {drawing:_0x4c30a1}=_0x5a4235;return _0x4cd436[_0x2cbda8(0x1e0)](_0x4aa13b)[_0x2cbda8(0x1ac)](K['id'],{'unitId':_0x4c30a1[_0x2cbda8(0x21f)],'subUnitId':_0x4c30a1[_0x2cbda8(0x1c5)],'shapeId':_0x4c30a1['drawingId'],'shapeData':_0x3c49ab,'oldShapeJSON':{'oldShapeData':_0x5a4235['shapeData']}});}},Br={'id':_0x244912(0x1de),'type':_0x1644dd[_0x244912(0x1bf)],'handler':(_0x1b8b7f,_0x1cd317)=>{const _0x22863f=_0x244912;let _0x29bf22=Rr(_0x1b8b7f),_0x1256b5=(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x1b9)])??(_0x1cd317==null?void 0x0:_0x1cd317[_0x22863f(0x3de)]);if(!_0x29bf22||!_0x1256b5||_0x3c2fe3(_0x29bf22[_0x22863f(0x1b9)])||_0x3c2fe3(_0x1256b5))return!0x1;let _0x4c57ca=_0x5aef65(_0x29bf22[_0x22863f(0x17d)],_0x1256b5);if(!_0x4c57ca)return!0x1;let {drawing:_0x227fd6}=_0x29bf22;return _0x1b8b7f['get'](_0x4aa13b)[_0x22863f(0x1ac)](K['id'],{'unitId':_0x227fd6['unitId'],'subUnitId':_0x227fd6[_0x22863f(0x1c5)],'shapeId':_0x227fd6[_0x22863f(0x237)],'shapeType':_0x1256b5,'shapeData':_0x4c57ca,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x29bf22[_0x22863f(0x1b9)],'oldShapeData':_0x29bf22[_0x22863f(0x17d)]}});}};let Q=class extends _0x2c7179{constructor(_0x5e56bd,_0xf023bc){const _0x320c0c=_0x244912;super(),this[_0x320c0c(0x165)]=_0x5e56bd,this[_0x320c0c(0x239)]=_0xf023bc,this['_registerImageShapeClipDelegate'](),this[_0x320c0c(0x165)]['setCanUseShapeClip'](!0x0),this[_0x320c0c(0x14a)]({'dispose':()=>this[_0x320c0c(0x165)][_0x320c0c(0x394)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x8e01b=_0x244912;let _0x5e2a7e=this[_0x8e01b(0x165)],_0x55e730=new Map(),_0x2267ea=_0x5e2a7e['registerClipDelegate']((_0x5d4c44,_0x41dc37,_0x121a09,_0x5c9067,_0xb884b7)=>{const _0x328c1a=_0x8e01b;let _0x2dc048=_0x41dc37;if(_0x2dc048===_0x1ecf22[_0x328c1a(0x214)]||_0x41dc37===_0x328c1a(0x3f0))return!0x1;try{let _0xf7234b=_0x55e730['get'](_0x41dc37);return _0xf7234b||(_0xf7234b=new _0x2e34c6(_0x2dc048,'clip-'+_0x41dc37),_0x55e730['set'](_0x41dc37,_0xf7234b)),_0xf7234b[_0x328c1a(0x2bd)](),_0xb884b7&&Object[_0x328c1a(0x3da)](_0xb884b7)['length']>0x0&&_0xf7234b[_0x328c1a(0x34e)]({'adjustValues':_0xb884b7},!0x0),_0xf7234b[_0x328c1a(0x340)]({'width':_0x121a09,'height':_0x5c9067}),_0xf7234b[_0x328c1a(0x1b2)](_0x5d4c44,{'left':0x0,'top':0x0,'width':_0x121a09,'height':_0x5c9067});}catch{return!0x1;}});this[_0x8e01b(0x14a)](_0x2267ea),this['disposeWithMe']({'dispose':()=>_0x55e730['clear']()});}['clipByShape'](_0x9b6688,_0x8f452d,_0x266ff9,_0x27098a,_0x2d7907){const _0x481450=_0x244912;let _0x267f88=this['_drawingManagerService']['getDrawingData'](_0x9b6688,_0x8f452d);if(!_0x267f88[_0x266ff9])return;let _0x3bda08={..._0x267f88[_0x266ff9],'prstGeom':_0x27098a,'adjustValues':_0x2d7907};this[_0x481450(0x239)][_0x481450(0x330)]([_0x3bda08]);}};Q=Y([J(0x0,_0x318433(_0x1432e0)),J(0x1,_0x318433(_0x1f50fa))],Q);const Vr=_0x244912(0x151),Hr='sheet.image-clip.shape-picker.component';function Ur({onShapeClick:_0x121612,excludeGroups:_0x3a6362}){const _0x7ffdea=_0x244912;return _0xcdc9dc(_0x377851,{'excludeGroups':_0x3a6362,'onShapeClick':_0x121612,'scrollContainer':_0x7ffdea(0x254)});}function Wr(){const _0x32d3d8=_0x244912;let _0x144f6b=_0x2c7ca5(_0x1f50fa),_0x40a87b=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x32d3d8(0x2cc),'excludeGroups':[_0x46a4b9[_0x32d3d8(0x212)]],'onShapeClick':_0x9dbeeb=>{const _0x5b6550=_0x32d3d8;let _0x4f7af8=_0x144f6b[_0x5b6550(0x2a0)]()[_0x5b6550(0x2f4)](_0x4bc966=>_0x4bc966[_0x5b6550(0x185)]===_0x54d53a[_0x5b6550(0x16f)]);if(!_0x4f7af8)return;let {unitId:_0x5596d8,subUnitId:_0x5b068d,drawingId:_0x166475}=_0x4f7af8;_0x40a87b[_0x5b6550(0x2e4)](_0x5596d8,_0x5b068d,_0x166475,_0x9dbeeb['type']);}});}function Gr(){const _0x4e47ab=_0x244912;let _0x22d331=_0x2c7ca5(_0x1f50fa),_0x233083=_0x2c7ca5(Q);return _0xcdc9dc(_0xd97ad,{'buttonLabel':_0x4e47ab(0x2cc),'excludeGroups':[_0x46a4b9[_0x4e47ab(0x212)]],'DropdownComponent':_0x2f0a7d,'onShapeClick':_0x1c3996=>{const _0xcb01f4=_0x4e47ab;let _0x142029=_0x22d331[_0xcb01f4(0x2a0)]()['find'](_0x3c9a57=>_0x3c9a57[_0xcb01f4(0x185)]===_0x54d53a[_0xcb01f4(0x16f)]);if(!_0x142029)return;let {unitId:_0x45e4e5,subUnitId:_0x52cff3,drawingId:_0x464ca1}=_0x142029;_0x233083['clipByShape'](_0x45e4e5,_0x52cff3,_0x464ca1,_0x1c3996[_0xcb01f4(0x1a2)]);}});}function Kr(){const _0x1ae7f5=_0x244912;let _0x5e4e1c=_0x2c7ca5(_0x56d3ac),_0x2d1d04=_0x2c7ca5(_0x1f50fa),_0x3e8385=_0x2c7ca5(_0x595744),_0xc64af7=_0x2d1d04[_0x1ae7f5(0x2a0)]()[0x0],_0x7bcf02=_0xc64af7?_0x3e8385[_0x1ae7f5(0x24e)](_0xc64af7[_0x1ae7f5(0x21f)]):void 0x0,_0x1394e0=_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x378)]?_0x1ae7f5(0x188):_0x7bcf02===_0x37e7a9[_0x1ae7f5(0x2c9)]?Hr:void 0x0,_0x51fcfb=_0x1394e0?_0x5e4e1c['get'](_0x1394e0):void 0x0;return _0x51fcfb?_0xcdc9dc(_0x51fcfb,{}):null;}function qr(){let _0x49acc6=_0x2c7ca5(_0x4aa13b);return _0xcdc9dc(Ur,{'onShapeClick':_0x33e4ce=>{const _0x4a6696=_0x4e9b;_0x49acc6[_0x4a6696(0x1ac)](kr['id'],{'value':_0x33e4ce[_0x4a6696(0x1a2)],'enhanceParams':{'endArrow':_0x33e4ce[_0x4a6696(0x2cb)],'startArrow':_0x33e4ce[_0x4a6696(0x368)],'horizontal':_0x33e4ce[_0x4a6696(0x1e8)],'vertical':_0x33e4ce[_0x4a6696(0x3df)]}});}});}function Jr(){return _0xcdc9dc(qr,{});}function Yr(_0x274dfd){const _0x38c2c3=_0x244912;let _0x1644ca=_0x274dfd['get'](_0x595744);return{'id':kr['id'],'type':_0x4171da['SELECTOR'],'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':kr['id']}}}],'icon':_0x38c2c3(0x3fb),'tooltip':_0x38c2c3(0x205),'activated$':_0x3baf69(_0x1644ca,!0x1,()=>new _0x1cfcc4(_0x5899a8=>{const _0x593474=_0x38c2c3;_0x5899a8[_0x593474(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x274dfd,_0x37e7a9[_0x38c2c3(0x2c9)]),'disabled$':_0x49adae(_0x274dfd)};}function Xr(_0x1d0823){const _0x574363=_0x244912;let _0x2864a4=_0x1d0823[_0x574363(0x1e0)](_0x595744);return{'id':Ir['id'],'type':_0x4171da[_0x574363(0x1df)],'icon':_0x574363(0x2d3),'title':_0x574363(0x2c0),'tooltip':_0x574363(0x2c0),'activated$':_0x3baf69(_0x2864a4,!0x1,()=>new _0x1cfcc4(_0x12684e=>{const _0x1ecf9d=_0x574363;_0x12684e[_0x1ecf9d(0x3ac)](!0x1);})),'hidden$':_0x4ff7fb(_0x1d0823,_0x37e7a9['UNIVER_SHEET']),'disabled$':_0x49adae(_0x1d0823)};}const Zr='sheet.menu.shape.flip-horizontal',Qr=_0x244912(0x1d0);function $r(_0x17baa2){const _0x48aa34=_0x244912;let _0x529804=_0x17baa2['get'](_0x1f50fa)[_0x48aa34(0x2a0)]();return _0x529804['length']===0x1&&_0x529804[0x0][_0x48aa34(0x185)]===_0x54d53a[_0x48aa34(0x1b1)]?_0x529804[0x0]:null;}function ei(_0x35ff64){const _0x5a41d2=_0x244912;let _0x2b6ed1=_0x35ff64['get'](_0x1f50fa);return _0x2b6ed1['focus$'][_0x5a41d2(0x18a)](_0x44274b(_0x2b6ed1[_0x5a41d2(0x2a0)]()),_0x3be804(_0x51963a=>_0x51963a[_0x5a41d2(0x1ae)]!==0x1||_0x51963a[0x0][_0x5a41d2(0x185)]!==_0x54d53a[_0x5a41d2(0x1b1)]));}function ti(_0xb74110){const _0x31985b=_0x244912;return{'id':Zr,'commandId':_0x3cca56['id'],'type':_0x4171da[_0x31985b(0x1df)],'title':_0x31985b(0x2ff),'tooltip':_0x31985b(0x2ff),'icon':_0x31985b(0x2fb),'hidden$':ei(_0xb74110),'params':()=>{const _0x21314e=_0x31985b;let _0x1c5269=$r(_0xb74110);return _0x1c5269?{'unitId':_0x1c5269['unitId'],'subUnitId':_0x1c5269[_0x21314e(0x1c5)],'shapeId':_0x1c5269[_0x21314e(0x237)],'flipH':!0x0}:void 0x0;}};}function ni(_0x3a1dd8){const _0x520ca5=_0x244912;return{'id':Qr,'commandId':_0x3cca56['id'],'type':_0x4171da['BUTTON'],'title':_0x520ca5(0x3bc),'tooltip':'sheets-shape-ui.flipVertical','icon':_0x520ca5(0x167),'hidden$':ei(_0x3a1dd8),'params':()=>{const _0x4157ac=_0x520ca5;let _0x1a0dbf=$r(_0x3a1dd8);return _0x1a0dbf?{'unitId':_0x1a0dbf[_0x4157ac(0x21f)],'subUnitId':_0x1a0dbf[_0x4157ac(0x1c5)],'shapeId':_0x1a0dbf[_0x4157ac(0x237)],'flipV':!0x0}:void 0x0;}};}const ri=_0x244912(0x30f),ii=_0x244912(0x2c5),ai='sheets-shape-ui.shape-format.text-ribbon-control',oi='sheets-shape-ui.shape-format.formula-ribbon-control';function si(){let _0x1c7ee1=_0x2c7ca5(_0x4aa13b),_0x31d029=_0x2c7ca5(_0x1f50fa),_0x504a23=_0x2c7ca5(_0x5594a6),_0x1aa19b=()=>{const _0x23625f=_0x4e9b;var _0x398ab5;let _0x5f34ac=_0x31d029[_0x23625f(0x2a0)]();if(_0x5f34ac[_0x23625f(0x1ae)]!==0x1||((_0x398ab5=_0x5f34ac[0x0])==null?void 0x0:_0x398ab5[_0x23625f(0x185)])!==_0x54d53a[_0x23625f(0x1b1)])return null;let {unitId:_0x6a7d47,subUnitId:_0x29fd60,drawingId:_0x364f6d}=_0x5f34ac[0x0],_0x39cc7a=_0x504a23[_0x23625f(0x3e4)](_0x6a7d47,_0x29fd60,_0x364f6d),_0x52d22f=_0x504a23[_0x23625f(0x1fa)](_0x6a7d47,_0x29fd60,_0x364f6d);return _0x39cc7a===void 0x0||!_0x52d22f?null:{'unitId':_0x6a7d47,'subUnitId':_0x29fd60,'drawingId':_0x364f6d,'shapeType':_0x39cc7a,'shapeData':_0x52d22f};},_0x16c0a9=_0x297a75(()=>new _0x1cfcc4(_0x110931=>{const _0x390e9f=_0x4e9b;let _0x1b08cd=()=>_0x110931[_0x390e9f(0x3ac)](_0x1aa19b()),_0x54d300=_0x31d029[_0x390e9f(0x2fc)][_0x390e9f(0x305)](_0x1b08cd),_0x3c90fa=_0x1c7ee1['onCommandExecuted'](_0xf8f428=>{_0xf8f428['id']===_0x4fa39c['id']&&_0x1b08cd();});return _0x1b08cd(),()=>{const _0x203eba=_0x390e9f;_0x54d300[_0x203eba(0x3fc)](),_0x3c90fa[_0x203eba(0x346)]();};}),_0x1aa19b(),!0x1,[_0x1c7ee1,_0x31d029,_0x504a23]);return{'selection':_0x16c0a9,'updateShapeData':_0x221b9f=>{const _0x5d4bf3=_0x4e9b;_0x16c0a9&&br(_0x1c7ee1,_0x16c0a9[_0x5d4bf3(0x21f)],_0x16c0a9[_0x5d4bf3(0x1c5)],_0x16c0a9[_0x5d4bf3(0x237)],{'oldShapeData':_0x16c0a9['shapeData']},_0x221b9f);}};}function ci(){const _0x26afd7=_0x244912;let {selection:_0x594e40,updateShapeData:_0x486077}=si();return _0x594e40?_0xcdc9dc(_0x1535fe,{'shapeData':_0x594e40[_0x26afd7(0x17d)],'shapeType':_0x594e40[_0x26afd7(0x1b9)],'onUpdateShapeData':_0x486077}):null;}function li(){const _0x51b874=_0x244912;let _0x4214a4=_0x2c7ca5(_0x4aa13b),_0x1dab7d=_0x2c7ca5(_0x3f1353),{selection:_0x5dfaa4}=si();return _0x5dfaa4?_0xcdc9dc(_0x364599,{'type':_0x5e4bfe(_0x5dfaa4['shapeData']),'ariaLabel':_0x1dab7d['t'](_0x51b874(0x39b)),'activePresetId':_0x54dddb(_0x5dfaa4[_0x51b874(0x17d)]),'onSelect':_0x279c49=>_0x4214a4[_0x51b874(0x1ac)](zr['id'],{'presetId':_0x279c49})}):null;}function ui(){const _0x502493=_0x244912;let {selection:_0x21d027,updateShapeData:_0x1267c3}=si();return _0x21d027?_0xcdc9dc(_0x361c7f,{'fontFamilyPopupDataComponent':_0x502493(0x1f0),'shapeData':_0x21d027[_0x502493(0x17d)],'onUpdateShapeData':_0x1267c3}):null;}function di(){const _0x1348f5=_0x244912;var _0x2746ad;let {selection:_0x51f10c,updateShapeData:_0x3ba2c8}=si(),_0x5bb1a4=_0xaa2e40({'hostType':_0x37e7a9[_0x1348f5(0x2c9)],'unitId':(_0x51f10c==null?void 0x0:_0x51f10c['unitId'])??'','subUnitId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x1c5)])??'','shapeId':(_0x51f10c==null?void 0x0:_0x51f10c[_0x1348f5(0x237)])??'','shapeData':_0x51f10c==null?void 0x0:_0x51f10c['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x1348f5(0x1c9),'onUpdateBinding':_0x220dd5=>_0x3ba2c8({'formulaBinding':_0x220dd5})}),_0x21fe3d=((_0x2746ad=_0x5bb1a4[_0x1348f5(0x36c)])==null?void 0x0:_0x2746ad[_0x1348f5(0x1d5)](_0x373c4a=>_0x373c4a[_0x1348f5(0x31b)])[_0x1348f5(0x150)](_0x141fd5=>_0x141fd5[_0x1348f5(0x27e)]!==!0x1))??[];return _0x51f10c!=null&&_0x51f10c[_0x1348f5(0x17d)][_0x1348f5(0x141)]?_0xcdc9dc(_0x1e07ad,{'actions':_0x21fe3d,'panel':_0x5bb1a4['panel']}):null;}const fi=_0x244912(0x192),pi=_0x244912(0x227),mi=_0x244912(0x1ce),hi='sheets-shape-ui.ribbon.shape-format.arrange-forward',gi=_0x244912(0x2f3),_i=_0x244912(0x3d6),vi='sheets-shape-ui.ribbon.shape-format.arrange-back';function yi(_0x584638){const _0x20e297=_0x244912;let _0xc1fae1=_0x584638[_0x20e297(0x1e0)](_0x4aa13b),_0x3fb139=_0x584638[_0x20e297(0x1e0)](_0x1f50fa),_0x419133=_0x584638[_0x20e297(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x164ca0=>{const _0x171d8e=_0x20e297;let _0x41ed2c=()=>{const _0x11e3f2=_0x4e9b;let _0x310d55=bi(_0x584638),_0x270363=_0x310d55?_0x419133[_0x11e3f2(0x1fa)](_0x310d55['unitId'],_0x310d55['subUnitId'],_0x310d55[_0x11e3f2(0x237)]):null;_0x164ca0[_0x11e3f2(0x3ac)](_0x270363?_0x54dddb(_0x270363)??'':'');},_0x200ecf=_0x3fb139[_0x171d8e(0x2fc)][_0x171d8e(0x305)](_0x41ed2c),_0x2c0c1e=_0xc1fae1[_0x171d8e(0x356)](_0x5707a6=>{_0x5707a6['id']===_0x4fa39c['id']&&_0x41ed2c();});return _0x41ed2c(),()=>{const _0x2cd42d=_0x171d8e;_0x200ecf[_0x2cd42d(0x3fc)](),_0x2c0c1e['dispose']();};});}function bi(_0x5a3a3a){const _0x4cc5ad=_0x244912;var _0x51e683;let _0x18b022=_0x5a3a3a[_0x4cc5ad(0x1e0)](_0x1f50fa)[_0x4cc5ad(0x2a0)]();return _0x18b022['length']===0x1&&((_0x51e683=_0x18b022[0x0])==null?void 0x0:_0x51e683[_0x4cc5ad(0x185)])===_0x54d53a['DRAWING_SHAPE']?_0x18b022[0x0]:null;}function xi(_0x3f68e5,_0xe0e20b=!0x1){const _0x317a43=_0x244912;let _0x42c844=_0x3f68e5[_0x317a43(0x1e0)](_0x4aa13b),_0x55a73d=_0x3f68e5['get'](_0x1f50fa),_0x4e809d=_0x3f68e5[_0x317a43(0x1e0)](_0x5594a6);return new _0x1cfcc4(_0x183b43=>{const _0x1ccdb=_0x317a43;let _0x3933d5=()=>{const _0x12aa71=_0x4e9b;let _0x587690=bi(_0x3f68e5);if(!_0x587690){_0x183b43[_0x12aa71(0x3ac)](!0x0);return;}let _0x56cdb9=_0x4e809d[_0x12aa71(0x1fa)](_0x587690['unitId'],_0x587690[_0x12aa71(0x1c5)],_0x587690[_0x12aa71(0x237)]);_0x183b43['next'](!_0x56cdb9||_0xe0e20b&&_0x56cdb9[_0x12aa71(0x141)]==null);},_0x3ead84=_0x55a73d[_0x1ccdb(0x2fc)][_0x1ccdb(0x305)](_0x3933d5),_0x454cd3=_0x42c844[_0x1ccdb(0x356)](_0x5a60c3=>{_0x5a60c3['id']===_0x4fa39c['id']&&_0x3933d5();});return _0x3933d5(),()=>{const _0x16c201=_0x1ccdb;_0x3ead84[_0x16c201(0x3fc)](),_0x454cd3[_0x16c201(0x346)]();};});}function Si(_0x412a0b){const _0xe6c2c2=_0x244912;let _0xe1eb2=_0x412a0b[_0xe6c2c2(0x1e0)](_0x1f50fa),_0x3f0562=_0x412a0b[_0xe6c2c2(0x1e0)](_0x5594a6);return _0xe1eb2[_0xe6c2c2(0x2fc)][_0xe6c2c2(0x18a)](_0x44274b(_0xe1eb2['getFocusDrawings']()),_0x3be804(()=>{const _0x1bd963=_0xe6c2c2;let _0x468fff=bi(_0x412a0b),_0x4dc685=_0x468fff?_0x3f0562[_0x1bd963(0x3e4)](_0x468fff['unitId'],_0x468fff['subUnitId'],_0x468fff[_0x1bd963(0x237)]):void 0x0;return _0x4dc685===void 0x0||_0x3c2fe3(_0x4dc685);}));}function Ci(_0xf6f117){const _0x11c26d=_0x244912;return{'id':zr['id'],'type':_0x4171da['SELECTOR'],'icon':_0x11c26d(0x19f),'title':_0x11c26d(0x2a6),'tooltip':_0x11c26d(0x2a6),'selections':[{'label':{'name':ri,'hoverable':!0x1,'selectable':!0x1}}],'value$':yi(_0xf6f117),'hidden$':xi(_0xf6f117)};}function wi(_0x1a453e){const _0x1bcd1b=_0x244912;return{'id':Br['id'],'type':_0x4171da[_0x1bcd1b(0x3b1)],'icon':_0x1bcd1b(0x3fb),'title':_0x1bcd1b(0x266),'tooltip':_0x1bcd1b(0x266),'slot':!0x0,'selections':[{'label':{'name':_0x39514a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x1a453e)};}function Ti(_0xad6096,_0x145d73,_0x23bcfc=!0x1){const _0x4d8db4=_0x244912;return _0x7dbb65=>({'id':_0xad6096,'type':_0x4171da[_0x4d8db4(0x1df)],'label':{'name':_0x145d73,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x7dbb65,_0x23bcfc)});}const Ei=Ti(fi,ii),Di=Ti(pi,ai),Oi=Ti(mi,oi,!0x0);function ki(_0x58c6cd,_0x23497b,_0x29ceef,_0x3c86a0){const _0x12aceb=_0x244912;return _0x563a16=>({'id':_0x58c6cd,'commandId':_0x4e0df7['id'],'type':_0x4171da[_0x12aceb(0x1df)],'icon':_0x29ceef,'title':_0x3c86a0,'tooltip':_0x3c86a0,'hidden$':xi(_0x563a16),'params':()=>{const _0x502fc8=_0x12aceb;let _0x1bb686=bi(_0x563a16);return _0x1bb686?{'unitId':_0x1bb686['unitId'],'subUnitId':_0x1bb686[_0x502fc8(0x1c5)],'drawingIds':[_0x1bb686[_0x502fc8(0x237)]],'arrangeType':_0x23497b}:void 0x0;}});}const Ai=ki(hi,_0x5de8db[_0x244912(0x285)],_0x244912(0x357),'shape-editor-ui.arrange.forward'),ji=ki(gi,_0x5de8db[_0x244912(0x295)],_0x244912(0x23e),_0x244912(0x28d)),Mi=ki(_i,_0x5de8db[_0x244912(0x3c1)],_0x244912(0x160),_0x244912(0x37f)),Ni=ki(vi,_0x5de8db['back'],'BottomIcon',_0x244912(0x2e0));function Pi(_0x41edc0){const _0x3b556a=_0x244912;return{'id':Lr['id'],'type':_0x4171da[_0x3b556a(0x1df)],'icon':_0x3b556a(0x3dd),'title':_0x3b556a(0x299),'tooltip':'sheets-shape-ui.formatShape','hidden$':xi(_0x41edc0),'params':()=>{const _0x9e3920=_0x3b556a;let _0x5edf36=bi(_0x41edc0);return _0x5edf36?{'unitId':_0x5edf36[_0x9e3920(0x21f)],'subUnitId':_0x5edf36[_0x9e3920(0x1c5)],'drawingId':_0x5edf36[_0x9e3920(0x237)]}:void 0x0;}};}const Fi={[_0x13bc74['RIBBON']]:{[Nr]:{'order':0x64,'title':_0x244912(0x299),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[zr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Br['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[fi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[pi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Zr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ti},[Qr]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':ni},[hi]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Ai},[gi]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':ji},[_i]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Mi},[vi]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[mi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Lr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0x29b704['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x28f120}}}}},Ii={[_0x3cd9aa[_0x244912(0x3c7)]]:{[kr['id']]:{'order':0x4,'menuItemFactory':Yr}}},Li={...Ii,[_0x3cd9aa['OTHERS']]:{[Ir['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr}},[_0x2af139[_0x244912(0x142)]]:{[_0x510854[_0x244912(0x311)]]:{[Zr]:{'order':0x4,'menuItemFactory':ti},[Qr]:{'order':0x5,'menuItemFactory':ni}}}};var Ri=_0x244912(0x1d3),zi=_0x244912(0x1af);const Bi={'id':_0x244912(0x31d),'type':_0x1644dd[_0x244912(0x1bf)],'handler'(_0x56a07a,_0x47a608){const _0x47f022=_0x244912;return _0x47a608?(_0x56a07a[_0x47f022(0x1e0)](_0x349883)['open'](_0x47a608[_0x47f022(0x153)],{'hostType':_0x37e7a9[_0x47f022(0x2c9)],'shapeId':_0x47a608['drawingId'],'subUnitId':_0x47a608[_0x47f022(0x1c5)],'unitId':_0x47a608['unitId']}),!0x0):!0x1;}},Vi=_0x244912(0x23c),Hi={};let Ui=class extends _0x2c7179{constructor(_0x3f4b59,_0x50b121,_0x1d71b1,_0x21c224,_0xa86903){const _0x41a983=_0x244912;super(),this[_0x41a983(0x15d)]=_0x3f4b59,this['_drawingManagerService']=_0x50b121,this['_renderManagerService']=_0x1d71b1,this[_0x41a983(0x321)]=_0x21c224,this[_0x41a983(0x359)]=_0xa86903,q(this,_0x41a983(0x1c4),null),q(this,_0x41a983(0x20a),null),q(this,_0x41a983(0x1e9),null),q(this,_0x41a983(0x1bd),void 0x0),q(this,_0x41a983(0x308),[]),q(this,_0x41a983(0x361),0x0),q(this,'_baseTop',0x0),q(this,'_baseWidth',0x0),q(this,_0x41a983(0x267),0x0),q(this,_0x41a983(0x332),!0x1),q(this,_0x41a983(0x273),void 0x0),q(this,_0x41a983(0x376),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,_0x41a983(0x38d),void 0x0),q(this,_0x41a983(0x257),!0x1),this['_registerFocusChangeHandler'](),this[_0x41a983(0x161)]();}[_0x244912(0x309)](){const _0xbd4a1f=_0x244912;this[_0xbd4a1f(0x193)]();}[_0x244912(0x289)](){const _0x8079e9=_0x244912;this[_0x8079e9(0x193)](),this['_createControls'](!0x0);}['_getOrCreateShapeModel'](_0x1c9c82,_0x4701ce,_0xd5f7f7,_0x4f0028){const _0x40651b=_0x244912;let _0x12ead4=_0x1c9c82;if(_0x12ead4!==_0x1ecf22[_0x40651b(0x214)]&&_0x1c9c82!=='custom')try{let _0x4ad599=new _0x2e34c6(_0x12ead4,_0x40651b(0x344)+_0x1c9c82);return _0x4f0028&&_0x4ad599['setShapeData']({'adjustValues':_0x4f0028},!0x0),_0x4ad599[_0x40651b(0x340)]({'width':_0x4701ce,'height':_0xd5f7f7}),_0x4ad599;}catch{return;}}[_0x244912(0x387)](_0x479042,_0x3e75db,_0x715a38){const _0x1d5517=_0x244912;let _0x883c82={'unitId':_0x479042,'subUnitId':_0x3e75db,'drawingId':_0x715a38},_0x13d014=this[_0x1d5517(0x239)][_0x1d5517(0x3a5)](_0x883c82);if(_0x13d014&&_0x13d014[_0x1d5517(0x185)]===_0x54d53a[_0x1d5517(0x16f)])return _0x13d014;}[_0x244912(0x21c)](_0x268668,_0x408c9d,_0x556276){const _0x2faa9f=_0x244912;let _0x144c7a=this['_renderManagerService'][_0x2faa9f(0x276)](_0x268668);if(!_0x144c7a)return;let {scene:_0xfbd99c}=_0x144c7a,_0x5ce2c2=_0x5cc8a7({'unitId':_0x268668,'subUnitId':_0x408c9d,'drawingId':_0x556276}),_0x5b8d33=_0xfbd99c[_0x2faa9f(0x389)](_0x5ce2c2);if(_0x5b8d33 instanceof _0x2cf69c){let _0x3c3d6f=_0x5b8d33[_0x2faa9f(0x19e)];if(_0x3c3d6f)return{'prstGeom':_0x3c3d6f,'adjustValues':_0x5b8d33[_0x2faa9f(0x1e1)]};}}[_0x244912(0x362)](_0x7339aa=!0x1){const _0x137b62=_0x244912;if(!this[_0x137b62(0x20a)]||!this['_subUnitId']||!this['_activeImageId'])return;let _0x1f0f09=this[_0x137b62(0x2f0)]['getRenderUnitById'](this[_0x137b62(0x20a)]);if(!_0x1f0f09||!_0x1f0f09[_0x137b62(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x4e8521}=_0x1f0f09,_0x36582e=this[_0x137b62(0x387)](this['_unitId'],this[_0x137b62(0x1e9)],this['_activeImageId']);if(!_0x36582e)return;let {transform:_0x1fdf77}=_0x36582e;if(!_0x1fdf77)return;let {left:_0x3a37ea,top:_0x363fdd,width:_0x4160fa,height:_0x390851,flipX:_0x3ae07,flipY:_0xf5630e,angle:_0x4d00ad=0x0}=_0x1fdf77;if(_0x3a37ea===void 0x0||_0x363fdd===void 0x0)return;let _0xf1fbe1=this[_0x137b62(0x21c)](this[_0x137b62(0x20a)],this[_0x137b62(0x1e9)],this[_0x137b62(0x1c4)]);if(!_0xf1fbe1)return;if(_0x7339aa){let _0x3963e4=this[_0x137b62(0x3ae)](_0xf1fbe1['prstGeom'],_0x4160fa||0x0,_0x390851||0x0,_0xf1fbe1[_0x137b62(0x380)]);if(!_0x3963e4)return;this[_0x137b62(0x1bd)]=_0x3963e4[_0x137b62(0x3ad)]();}let _0x350ead=this[_0x137b62(0x1bd)];if(_0x350ead&&_0x350ead[_0x137b62(0x1ae)]!==0x0)for(let _0x1dcd46=0x0;_0x1dcd46<_0x350ead[_0x137b62(0x1ae)];_0x1dcd46++){let _0xd3933f=_0x350ead[_0x1dcd46],_0x2ff2c4=_0xd3933f['x'],_0x1a0e2d=_0xd3933f['y'];if(_0x3ae07&&(_0x2ff2c4=(_0x4160fa||0x0)-_0x2ff2c4),_0xf5630e&&(_0x1a0e2d=(_0x390851||0x0)-_0x1a0e2d),_0x4d00ad!==0x0){let _0x495665=(_0x4160fa||0x0)/0x2,_0x13fd2f=(_0x390851||0x0)/0x2,_0x2afe3=_0x4d00ad*Math['PI']/0xb4,_0x533459=Math['cos'](_0x2afe3),_0x38fbea=Math['sin'](_0x2afe3),_0x53a56d=_0x2ff2c4-_0x495665,_0x3b4e4c=_0x1a0e2d-_0x13fd2f;_0x2ff2c4=_0x495665+(_0x53a56d*_0x533459-_0x3b4e4c*_0x38fbea),_0x1a0e2d=_0x13fd2f+(_0x53a56d*_0x38fbea+_0x3b4e4c*_0x533459);}let _0x3eb431={'x':_0x2ff2c4,'y':_0x1a0e2d,'adjName':_0xd3933f['adjName']};this[_0x137b62(0x19a)](_0x4e8521,_0x3eb431,_0x3eb431['adjName'],_0x3a37ea,_0x363fdd,this['_unitId'],this[_0x137b62(0x1e9)]);}}['_addControl'](_0x2701f9,_0x3eec72,_0x3ab7eb,_0x1715a3,_0x4028a6,_0x753624,_0x6f66b1){const _0x3d9d98=_0x244912;if(!this[_0x3d9d98(0x1c4)])return;let _0x5d68c8=_0x3d9d98(0x1cc)+this[_0x3d9d98(0x1c4)]+'-'+_0x3ab7eb,_0x56820b=_0x2701f9[_0x3d9d98(0x251)](_0x5d68c8);if(_0x56820b){_0x56820b[_0x3d9d98(0x1d8)]({'left':_0x3eec72['x']+_0x1715a3-_0x59f579[_0x3d9d98(0x3c5)],'top':_0x3eec72['y']+_0x4028a6-_0x59f579[_0x3d9d98(0x3c5)]});return;}let _0x5e3679=new Dr(_0x5d68c8,{'left':_0x3eec72['x']+_0x1715a3-_0x59f579['adjHandleSize'],'top':_0x3eec72['y']+_0x4028a6-_0x59f579['adjHandleSize'],'adjName':_0x3ab7eb,'shapeId':this[_0x3d9d98(0x1c4)],'unitId':_0x753624,'subUnitId':_0x6f66b1,'width':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'height':_0x59f579[_0x3d9d98(0x3c5)]+0x8,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x3d9d98(0x308)][_0x3d9d98(0x399)](_0x5e3679),this[_0x3d9d98(0x32d)](_0x5e3679,_0x2701f9,_0x3ab7eb),_0x2701f9[_0x3d9d98(0x2da)](_0x5e3679,_0x352374+0x1);}['_clearControls'](){const _0x48bf57=_0x244912;this[_0x48bf57(0x308)][_0x48bf57(0x1ae)]!==0x0&&(this['_shapes']['forEach'](_0x3990ed=>_0x3990ed[_0x48bf57(0x346)]()),this[_0x48bf57(0x308)]=[]);}['_getScrollInfo'](_0x2f9ea8,_0xb2a6f4){const _0x12f20e=_0x244912;var _0x48007a;let _0x17de34={'x':0x0,'y':0x0},_0x138831=this[_0x12f20e(0x2f0)][_0x12f20e(0x276)](_0x2f9ea8);if(!_0x138831||!_0x138831[_0x12f20e(0x27b)](_0x307dc0)['getSkeleton'](_0xb2a6f4))return _0x17de34;let _0x6870f9=_0x138831[_0x12f20e(0x27b)](_0x20a826),_0x58dfe6=_0x6870f9==null?void 0x0:_0x6870f9[_0x12f20e(0x145)]();if(!_0x58dfe6)return _0x17de34;let _0x3f702f=(_0x48007a=this[_0x12f20e(0x321)][_0x12f20e(0x287)](_0x2f9ea8))==null?void 0x0:_0x48007a[_0x12f20e(0x184)](_0xb2a6f4);if(!_0x3f702f)return _0x17de34;let _0x254f52=_0x2ead9(_0x58dfe6[_0x12f20e(0x1bc)],_0x58dfe6[_0x12f20e(0x298)],_0x138831[_0x12f20e(0x229)],_0x3f702f);return _0x254f52?{'x':_0x254f52['viewportScrollX'],'y':_0x254f52[_0x12f20e(0x351)]}:_0x17de34;}[_0x244912(0x331)](_0x43e819,_0x282edc){const _0x1204e2=_0x244912;var _0x4ebf66;let _0x2e9b64=(_0x4ebf66=this['_univerInstanceService']['getUnit'](_0x43e819))==null?void 0x0:_0x4ebf66[_0x1204e2(0x184)](_0x282edc);return(_0x2e9b64==null?void 0x0:_0x2e9b64[_0x1204e2(0x3e2)]())??0x1;}[_0x244912(0x32d)](_0x1503db,_0x591a88,_0xfbf031){const _0x1731e0=_0x244912;this[_0x1731e0(0x14a)](_0x21ce23(_0x1503db[_0x1731e0(0x383)]['subscribeEvent']((_0x26b496,_0x42c1fe)=>{const _0x407f41=_0x1731e0;var _0x239f3d,_0x5d4319,_0x1020d3;let {unitId:_0x35d574,subUnitId:_0xf41294,drawingId:_0x123f76}=_0x1503db['getDrawingSearch'](),_0x2817f4=this[_0x407f41(0x387)](_0x35d574,_0xf41294,_0x123f76);if(!(_0x2817f4!=null&&_0x2817f4[_0x407f41(0x1b7)]))return;let {left:_0x950c8b,top:_0x1c7da8,width:_0x239e49,height:_0x4b79fa}=_0x2817f4[_0x407f41(0x1b7)];this['_baseLeft']=_0x950c8b||0x0,this['_baseTop']=_0x1c7da8||0x0,this[_0x407f41(0x218)]=_0x239e49||0x0,this[_0x407f41(0x267)]=_0x4b79fa||0x0;let _0x94539=!!((_0x239f3d=_0x2817f4['transform'])!=null&&_0x239f3d[_0x407f41(0x166)]),_0x2e8d0a=!!((_0x5d4319=_0x2817f4[_0x407f41(0x1b7)])!=null&&_0x5d4319[_0x407f41(0x3b2)]),_0x5b4916=((_0x1020d3=_0x2817f4[_0x407f41(0x1b7)])==null?void 0x0:_0x1020d3[_0x407f41(0x388)])||0x0,_0x4d2ed3=this[_0x407f41(0x21c)](_0x35d574,_0xf41294,_0x123f76);if(!_0x4d2ed3)return;let _0xde94e8=this[_0x407f41(0x3ae)](_0x4d2ed3['prstGeom'],this[_0x407f41(0x218)],this['_baseHeight'],_0x4d2ed3[_0x407f41(0x380)]);if(!_0xde94e8||(this['_activeShapeModel']=_0xde94e8,this[_0x407f41(0x273)]=_0xde94e8[_0x407f41(0x21d)](_0xfbf031),!this[_0x407f41(0x273)]))return;this[_0x407f41(0x332)]=!0x0,_0x591a88[_0x407f41(0x329)]();let _0xe071f6=_0x4d2ed3['prstGeom'];this['_adjHandlerPointerMove']=_0x591a88['onPointerMove$']['subscribeEvent']((_0x228b32,_0x317d77)=>{const _0x500db8=_0x407f41;if(!this[_0x500db8(0x332)])return;let {offsetX:_0x407d35,offsetY:_0xa0e823}=_0x228b32,_0x1f4400=this[_0x500db8(0x273)];if(!this['_activeShapeModel']||!_0x1f4400)return;_0x591a88[_0x500db8(0x329)](),_0x591a88[_0x500db8(0x34d)](_0x48d0e8[_0x500db8(0x1f1)]);let _0x1bdc2c={'left':0x0,'top':0x0,'width':this[_0x500db8(0x218)],'height':this[_0x500db8(0x267)]},_0x121463=this[_0x500db8(0x18d)](_0x35d574,_0xf41294),_0x4822df=this[_0x500db8(0x331)](_0x35d574,_0xf41294),_0x1cf1ce=_0x407d35/_0x4822df+_0x121463['x']-this[_0x500db8(0x361)],_0x5f28fd=_0xa0e823/_0x4822df+_0x121463['y']-this[_0x500db8(0x275)];if(_0x5b4916!==0x0){let _0x22f4a2=this[_0x500db8(0x218)]/0x2,_0x5c3fe8=this[_0x500db8(0x267)]/0x2,_0x5eed2c=_0x5b4916*Math['PI']/0xb4,_0x1f6e97=Math[_0x500db8(0x1ee)](_0x5eed2c),_0x26608d=Math['sin'](_0x5eed2c),_0xe1cc97=_0x1cf1ce-_0x22f4a2,_0x2cd732=_0x5f28fd-_0x5c3fe8;_0x1cf1ce=_0x22f4a2+(_0xe1cc97*_0x1f6e97+_0x2cd732*_0x26608d),_0x5f28fd=_0x5c3fe8+(-_0xe1cc97*_0x26608d+_0x2cd732*_0x1f6e97);}_0x94539&&(_0x1cf1ce=this['_baseWidth']-_0x1cf1ce),_0x2e8d0a&&(_0x5f28fd=this['_baseHeight']-_0x5f28fd);let _0x5e7d01=this[_0x500db8(0x376)][_0x500db8(0x3a4)](_0x1bdc2c,{'x':_0x1cf1ce,'y':_0x5f28fd},_0x1f4400,_0x94539,_0x2e8d0a);if(Object[_0x500db8(0x3da)](_0x5e7d01)['length']!==0x0){for(let [_0x4da03e,_0x3ea1ff]of Object[_0x500db8(0x324)](_0x5e7d01))this[_0x500db8(0x376)][_0x500db8(0x3b3)](_0x4da03e,_0x3ea1ff);this[_0x500db8(0x376)]['updateContext']({'width':this[_0x500db8(0x218)],'height':this['_baseHeight']}),this['_updateImageAdjValues'](_0x35d574,_0xf41294,_0x123f76,_0x5e7d01),this['_activeAdjustPointList']=this['_activeShapeModel']['getDrawingPoints'](),this['_createControls'](),_0x317d77[_0x500db8(0x34a)]();}}),this[_0x407f41(0x38d)]=_0x591a88['onPointerUp$'][_0x407f41(0x318)]((_0x3f230a,_0x1e1920)=>{const _0xe50912=_0x407f41;if(this[_0xe50912(0x297)][_0xe50912(0x3fc)](),this[_0xe50912(0x38d)][_0xe50912(0x3fc)](),_0x591a88[_0xe50912(0x3ee)](),this[_0xe50912(0x376)]){let _0x1db046=this[_0xe50912(0x376)][_0xe50912(0x2a9)](),_0x1e1d5e={};for(let _0x9e75ca of _0x1db046){let _0x53aec=this[_0xe50912(0x376)][_0xe50912(0x21e)](_0x9e75ca);_0x53aec!==void 0x0&&(_0x1e1d5e[_0x9e75ca]=_0x53aec);}this[_0xe50912(0x359)][_0xe50912(0x2e4)](_0x35d574,_0xf41294,_0x123f76,_0xe071f6,_0x1e1d5e);}this[_0xe50912(0x273)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0xe50912(0x332)]=!0x1,_0x1e1920[_0xe50912(0x34a)](),_0x591a88[_0xe50912(0x33c)]();}),_0x42c1fe[_0x407f41(0x34a)]();})));}['_updateImageAdjValues'](_0x589b46,_0x481b52,_0x1e430b,_0x35aa2c){const _0x43c437=_0x244912;let _0x7e6182=this[_0x43c437(0x2f0)][_0x43c437(0x276)](_0x589b46);if(!_0x7e6182)return;let {scene:_0x9f4cb}=_0x7e6182,_0x56f0a6=_0x5cc8a7({'unitId':_0x589b46,'subUnitId':_0x481b52,'drawingId':_0x1e430b}),_0x4b8b9a=_0x9f4cb['getObject'](_0x56f0a6);if(_0x4b8b9a instanceof _0x2cf69c){let _0x1b1a97=_0x4b8b9a[_0x43c437(0x1e1)]??{};_0x4b8b9a[_0x43c437(0x3dc)]({..._0x1b1a97,..._0x35aa2c}),_0x4b8b9a[_0x43c437(0x23a)](!0x0);}}[_0x244912(0x161)](){const _0xde867c=_0x244912;let _0x31ed1c=this['_univerInstanceService'][_0xde867c(0x25d)](_0x37e7a9[_0xde867c(0x2c9)]);this[_0xde867c(0x14a)](_0x31ed1c[_0xde867c(0x18a)](_0x4ab26c(_0x53387a=>_0x53387a?_0x53387a['activeSheet$'][_0xde867c(0x18a)](_0x4ab26c(_0x37b905=>{const _0x2f315e=_0xde867c;if(!_0x37b905)return _0x351d29;let _0x1f9ba8=_0x53387a[_0x2f315e(0x186)](),_0xe93758=this[_0x2f315e(0x2f0)]['getRenderUnitById'](_0x1f9ba8),_0x584154=_0xe93758==null?void 0x0:_0xe93758[_0x2f315e(0x229)];return _0x584154?_0x1e0e82(_0x584154):_0x351d29;})):_0x351d29))[_0xde867c(0x305)](_0x308928=>{const _0x4e90f0=_0xde867c;let _0x1afead=_0x308928[_0x4e90f0(0x3ed)]();this[_0x4e90f0(0x14a)](_0x308928['onPointerMove$'][_0x4e90f0(0x318)](()=>{const _0x38af5e=_0x4e90f0;this[_0x38af5e(0x257)]&&this[_0x38af5e(0x193)]();})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x24c)][_0x4e90f0(0x305)](_0x150cc5=>{const _0x44ca1=_0x4e90f0;let {objects:_0x4885b9}=_0x150cc5;if(this[_0x44ca1(0x362)](),_0x4885b9!==null&&_0x4885b9['size']===0x1){let _0x2f7915=_0x4885b9[_0x44ca1(0x196)]()[_0x44ca1(0x3ac)]()[_0x44ca1(0x3de)];_0x2f7915 instanceof _0x2cf69c&&_0x2f7915[_0x44ca1(0x19e)]&&(this[_0x44ca1(0x257)]=!0x0);}})),this[_0x4e90f0(0x14a)](_0x1afead['changing$'][_0x4e90f0(0x305)](()=>{const _0xc2dac3=_0x4e90f0;this[_0xc2dac3(0x257)]&&this[_0xc2dac3(0x193)]();})),this[_0x4e90f0(0x14a)](_0x308928[_0x4e90f0(0x36d)][_0x4e90f0(0x318)](()=>{const _0x14037e=_0x4e90f0;this['_isImagePointerDown']&&(this[_0x14037e(0x257)]=!0x1,this[_0x14037e(0x362)]());})),this[_0x4e90f0(0x14a)](_0x1afead[_0x4e90f0(0x27f)][_0x4e90f0(0x305)](()=>{const _0xa56a1=_0x4e90f0;if(this[_0xa56a1(0x20a)]&&this[_0xa56a1(0x1e9)]&&this['_activeImageId']){let _0x25d36d=this[_0xa56a1(0x21c)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]);if(_0x25d36d){var _0x52e6b9,_0x540082;let _0x1a8a02=this[_0xa56a1(0x387)](this[_0xa56a1(0x20a)],this[_0xa56a1(0x1e9)],this[_0xa56a1(0x1c4)]),_0x180915=(_0x1a8a02==null||(_0x52e6b9=_0x1a8a02['transform'])==null?void 0x0:_0x52e6b9[_0xa56a1(0x326)])||0x0,_0x2b4dc6=(_0x1a8a02==null||(_0x540082=_0x1a8a02[_0xa56a1(0x1b7)])==null?void 0x0:_0x540082[_0xa56a1(0x1ba)])||0x0,_0x39f271=this['_getOrCreateShapeModel'](_0x25d36d['prstGeom'],_0x180915,_0x2b4dc6,_0x25d36d[_0xa56a1(0x380)]);_0x39f271&&(this['_activeAdjustPointList']=_0x39f271[_0xa56a1(0x3ad)](),this[_0xa56a1(0x193)](),this['_createControls'](!0x0));}}}));}));}[_0x244912(0x37c)](){const _0x4b5def=_0x244912;this[_0x4b5def(0x14a)](this['_drawingManagerService'][_0x4b5def(0x2fc)][_0x4b5def(0x305)](_0x24d33b=>{const _0x4e869a=_0x4b5def;if(_0x24d33b[_0x4e869a(0x1ae)]===0x1){let _0x352b51=_0x24d33b[0x0];if(_0x352b51[_0x4e869a(0x185)]===_0x54d53a[_0x4e869a(0x16f)]){let {unitId:_0x14491b,subUnitId:_0x705972,drawingId:_0x4d4e10}=_0x352b51,_0x2b4449=this[_0x4e869a(0x21c)](_0x14491b,_0x705972,_0x4d4e10);if(_0x2b4449){var _0x1ce8b5,_0x3b4240;this[_0x4e869a(0x1c4)]=_0x4d4e10,this[_0x4e869a(0x20a)]=_0x14491b,this[_0x4e869a(0x1e9)]=_0x705972;let _0x15cfcd=this['_getImageDrawingInfo'](_0x14491b,_0x705972,_0x4d4e10),_0x12cde9=(_0x15cfcd==null||(_0x1ce8b5=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x1ce8b5['width'])||0x0,_0xd2b6c0=(_0x15cfcd==null||(_0x3b4240=_0x15cfcd[_0x4e869a(0x1b7)])==null?void 0x0:_0x3b4240[_0x4e869a(0x1ba)])||0x0,_0x5edcdb=this[_0x4e869a(0x3ae)](_0x2b4449[_0x4e869a(0x19e)],_0x12cde9,_0xd2b6c0,_0x2b4449[_0x4e869a(0x380)]);_0x5edcdb&&(this[_0x4e869a(0x1bd)]=_0x5edcdb[_0x4e869a(0x3ad)]()),this[_0x4e869a(0x193)](),this[_0x4e869a(0x362)](!0x0);}else this['_resetState']();}else this[_0x4e869a(0x284)]();}else this[_0x4e869a(0x284)]();})),this['disposeWithMe'](this[_0x4b5def(0x239)][_0x4b5def(0x1cd)]['subscribe'](_0x48ac81=>{const _0x4937d2=_0x4b5def;if(_0x48ac81[_0x4937d2(0x1ae)]===0x1){let _0x25f13e=_0x48ac81[0x0],_0x173fa9=this['_drawingManagerService'][_0x4937d2(0x3a5)](_0x25f13e);(_0x173fa9==null?void 0x0:_0x173fa9[_0x4937d2(0x185)])===_0x54d53a[_0x4937d2(0x16f)]&&this['_activeImageId']===_0x25f13e[_0x4937d2(0x237)]&&(this[_0x4937d2(0x193)](),this[_0x4937d2(0x362)](!0x0));}})),this['disposeWithMe'](this['_drawingManagerService']['remove$'][_0x4b5def(0x305)](_0x51ac86=>{const _0x21e4eb=_0x4b5def;for(let _0x38ddc2 of _0x51ac86)this[_0x21e4eb(0x1c4)]===_0x38ddc2[_0x21e4eb(0x237)]&&this['_resetState']();}));}[_0x244912(0x284)](){const _0x5c1a4b=_0x244912;this['_activeImageId']=null,this['_unitId']=null,this[_0x5c1a4b(0x1e9)]=null,this[_0x5c1a4b(0x1bd)]=void 0x0,this[_0x5c1a4b(0x193)]();}};Ui=Y([J(0x1,_0x1f50fa),J(0x2,_0x318433(_0xc8f10c)),J(0x3,_0x595744),J(0x4,_0x318433(Q))],Ui);function Wi(_0x480778){const _0x17429f=_0x244912;return _0x480778[_0x17429f(0x34c)]()||void 0x0;}function Gi(_0xb21ae9,_0x5ef6a0,_0x494e83){const _0xaa197e=_0x244912;var _0x48b3e4;return((_0x48b3e4=_0xb21ae9[_0xaa197e(0x197)])==null?void 0x0:_0x48b3e4[_0xaa197e(0x34c)]())||_0x494e83['t'](_0xaa197e(0x338)+_0x58b895(_0xb21ae9[_0xaa197e(0x185)]))+'\x20'+(_0x5ef6a0+0x1);}function Ki({PanelComponent:_0xc50bb8=_0xb2f346}){const _0x1b6ff0=_0x244912;var _0x3f2eb7;let _0x1e435f=_0x2c7ca5(_0x3f1353),_0x48002f={'title':_0x1e435f['t'](_0x1b6ff0(0x26d)),'empty':_0x1e435f['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x1e435f['t'](_0x1b6ff0(0x2bf)),'hideAll':_0x1e435f['t'](_0x1b6ff0(0x252)),'lockAll':_0x1e435f['t'](_0x1b6ff0(0x140)),'unlockAll':_0x1e435f['t'](_0x1b6ff0(0x203)),'moveForward':_0x1e435f['t'](_0x1b6ff0(0x3aa)),'moveBackward':_0x1e435f['t'](_0x1b6ff0(0x25c)),'close':_0x1e435f['t'](_0x1b6ff0(0x35e)),'show':_0x1e435f['t'](_0x1b6ff0(0x157)),'hide':_0x1e435f['t'](_0x1b6ff0(0x2c6)),'lock':_0x1e435f['t'](_0x1b6ff0(0x33d)),'unlock':_0x1e435f['t'](_0x1b6ff0(0x3f9)),'lockHint':_0x1e435f['t'](_0x1b6ff0(0x353)),'unlockHint':_0x1e435f['t'](_0x1b6ff0(0x171)),'name':_0x1e435f['t'](_0x1b6ff0(0x39e)),'nameInput':_0x1e435f['t'](_0x1b6ff0(0x280)),'description':_0x1e435f['t'](_0x1b6ff0(0x3a0)),'descriptionPlaceholder':_0x1e435f['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x1e435f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x1e435f['t'](_0x1b6ff0(0x26a)),'locate':_0x1e435f['t']('drawing-ui.objectListPanel.locate'),'expand':_0x1e435f['t'](_0x1b6ff0(0x3a7)),'collapse':_0x1e435f['t'](_0x1b6ff0(0x23f)),'dragToReorder':_0x1e435f['t'](_0x1b6ff0(0x147)),'search':_0x1e435f['t'](_0x1b6ff0(0x3ea)),'filterAll':_0x1e435f['t'](_0x1b6ff0(0x182)),'filterHidden':_0x1e435f['t'](_0x1b6ff0(0x322)),'filterLocked':_0x1e435f['t'](_0x1b6ff0(0x1be)),'sectionCanvas':_0x1e435f['t'](_0x1b6ff0(0x20d)),'sectionFloating':_0x1e435f['t']('drawing-ui.objectListPanel.sectionFloating')},_0x44a32d=_0x2c7ca5(_0x4aa13b),_0x5f538a=_0x2c7ca5(_0x595744),_0x426475=_0x2c7ca5(_0x35f22e),_0x40f1b0=_0x2c7ca5(_0x1f50fa),_0x585243=_0x2c7ca5(_0xc8f10c),[,_0x1c4b77]=_0x256536(_0x598685=>_0x598685+0x1,0x0),_0x412860=_0x5f538a[_0x1b6ff0(0x213)](_0x37e7a9[_0x1b6ff0(0x2c9)]),_0x518689=(_0x412860==null?void 0x0:_0x412860['getUnitId']())??'',_0x2e7731=(_0x412860==null||(_0x3f2eb7=_0x412860[_0x1b6ff0(0x30a)]())==null?void 0x0:_0x3f2eb7[_0x1b6ff0(0x2d9)]())??'',_0x40db54=_0x297a75(()=>_0x40f1b0[_0x1b6ff0(0x2fc)],_0x40f1b0[_0x1b6ff0(0x2a0)](),!0x1,[_0x40f1b0]);_0x1ff107(()=>{const _0x330832=_0x1b6ff0;let _0x509aeb=_0x44a32d[_0x330832(0x356)](()=>_0x1c4b77());return()=>_0x509aeb[_0x330832(0x346)]();},[_0x44a32d]);let _0x572c94=_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x1c8)](_0x518689,_0x2e7731):{},_0x3fd21e=(_0x518689&&_0x2e7731?_0x426475[_0x1b6ff0(0x2d2)](_0x518689,_0x2e7731):[])['map'](_0x561b7a=>_0x572c94[_0x561b7a])[_0x1b6ff0(0x150)](_0x33b987=>!!_0x33b987)[_0x1b6ff0(0x375)](),_0x23a1d9=_0x3fd21e[_0x1b6ff0(0x282)]((_0x4fe22b,_0x1f52b8)=>(_0x4fe22b[_0x303f7a(_0x1f52b8[_0x1b6ff0(0x185)])]+=0x1,_0x4fe22b),{'canvas':0x0,'floating':0x0}),_0x3bb872={'canvas':0x0,'floating':0x0},_0x2d481d=_0x3fd21e[_0x1b6ff0(0x3c9)]((_0x52f488,_0x3a42b1)=>{const _0x3ebf7d=_0x1b6ff0;let _0x527213=_0x303f7a(_0x52f488[_0x3ebf7d(0x185)]),_0x22cec1=_0x527213===_0xdc906c,_0x1bbc4c=_0x3bb872[_0x527213]++;return{'id':_0x52f488['drawingId'],'name':Gi(_0x52f488,_0x3a42b1,_0x1e435f),'description':_0x52f488[_0x3ebf7d(0x1ec)],'visible':_0x52f488[_0x3ebf7d(0x24d)]!==!0x0,'selectable':_0x52f488['selectable']!==!0x1,'sectionId':_0x527213,'sectionTitle':_0x22cec1?_0x48002f[_0x3ebf7d(0x14d)]:_0x48002f[_0x3ebf7d(0x1eb)],'capabilities':_0x22cec1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x22cec1&&_0x1bbc4c>0x0,'canMoveBackward':!_0x22cec1&&_0x1bbc4c<_0x23a1d9[_0x3ebf7d(0x370)]-0x1,'canReorder':!_0x22cec1};}),_0x3e7f87=_0x3352e0(()=>(_0x40db54??[])[_0x1b6ff0(0x150)](_0x5ad116=>_0x5ad116[_0x1b6ff0(0x21f)]===_0x518689&&_0x5ad116['subUnitId']===_0x2e7731)[_0x1b6ff0(0x3c9)](_0x1665cd=>_0x1665cd['drawingId']),[_0x40db54,_0x2e7731,_0x518689]),_0x1f4c5e=_0x3e7f87[_0x3e7f87[_0x1b6ff0(0x1ae)]-0x1]??null,_0x5918c4=_0x252c94=>_0x426475[_0x1b6ff0(0x3a5)]({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x252c94})??null,_0x37c39f=async _0x54fe47=>{const _0x490227=_0x1b6ff0;_0x518689&&_0x54fe47[_0x490227(0x1ae)]&&await _0x44a32d[_0x490227(0x1ac)](_0x480d38['id'],{'unitId':_0x518689,'drawings':_0x54fe47});},_0x3dced5=async(_0x2a2286,_0x1d5e75)=>{_0x5918c4(_0x2a2286)&&await _0x37c39f([{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x2a2286,..._0x1d5e75}]);},_0x34186c=(_0x50ddcf,_0x592f66)=>{const _0x585067=_0x1b6ff0;if(!_0x518689||!_0x2e7731)return;let _0x192c16=_0x592f66?_0x3e7f87[_0x585067(0x221)](_0x50ddcf)?_0x3e7f87[_0x585067(0x150)](_0x126759=>_0x126759!==_0x50ddcf):[..._0x3e7f87,_0x50ddcf]:[_0x50ddcf];_0x44a32d[_0x585067(0x27c)](_0x4c2abf['id'],_0x192c16[_0x585067(0x3c9)](_0x384312=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x384312})));let _0x38d3b2=_0x192c16[_0x192c16[_0x585067(0x1ae)]-0x1];_0x38d3b2?_0x35675d(_0x585243,{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x38d3b2}):_0x4c6b4(_0x585243,_0x518689);},_0x58a5af=async(_0x29f387,_0x1d4a68)=>{const _0x38ea1d=_0x1b6ff0;await _0x37c39f(_0x29f387[_0x38ea1d(0x3c9)](_0x34b2f4=>_0x5918c4(_0x34b2f4))[_0x38ea1d(0x150)](_0x4c2994=>!!_0x4c2994)[_0x38ea1d(0x150)](_0x5f42e4=>_0x5f42e4[_0x38ea1d(0x24d)]!==!0x0!==_0x1d4a68)[_0x38ea1d(0x3c9)](_0x186e5a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x186e5a[_0x38ea1d(0x237)],'hidden':!_0x1d4a68})));},_0x33036c=async(_0x41f3ee,_0x54e0d7)=>{const _0x553291=_0x1b6ff0;await _0x37c39f(_0x41f3ee[_0x553291(0x3c9)](_0x426cf1=>_0x5918c4(_0x426cf1))[_0x553291(0x150)](_0x5a0c06=>!!_0x5a0c06)[_0x553291(0x150)](_0x1e3738=>_0x1e3738[_0x553291(0x3a1)]!==!0x1!==_0x54e0d7)[_0x553291(0x3c9)](_0x15128a=>({'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingId':_0x15128a[_0x553291(0x237)],'selectable':_0x54e0d7})));},_0x25c998=_0x4d1429=>{const _0x587b16=_0x1b6ff0;let _0x4ca49b=_0x5918c4(_0x4d1429);if(_0x4ca49b)return _0x33036c([_0x4d1429],_0x4ca49b[_0x587b16(0x3a1)]===!0x1);},_0x5ec528=async(_0x430b2b,_0x551952)=>{const _0x1f1503=_0x1b6ff0;var _0x2fabbc;let _0x3944cc=Wi(_0x551952);(((_0x2fabbc=_0x5918c4(_0x430b2b))==null?void 0x0:_0x2fabbc[_0x1f1503(0x197)])??void 0x0)!==_0x3944cc&&await _0x3dced5(_0x430b2b,{'name':_0x3944cc});},_0x1c45c9=async(_0xfc435f,_0x40be81)=>{const _0x1a4376=_0x1b6ff0;var _0x22bc99;let _0x14658f=Wi(_0x40be81);(((_0x22bc99=_0x5918c4(_0xfc435f))==null?void 0x0:_0x22bc99[_0x1a4376(0x1ec)])??void 0x0)!==_0x14658f&&await _0x3dced5(_0xfc435f,{'description':_0x14658f});},_0xe0991b=async(_0x33b16b,_0x4847d6)=>{_0x518689&&_0x2e7731&&await _0x44a32d['executeCommand'](_0x4e0df7['id'],{'unitId':_0x518689,'subUnitId':_0x2e7731,'drawingIds':[_0x33b16b],'arrangeType':_0x4847d6});};return!_0x518689||!_0x2e7731?_0xcdc9dc('div',{'className':_0x1b6ff0(0x1c7),'children':_0x48002f[_0x1b6ff0(0x1d1)]}):_0xcdc9dc(_0xc50bb8,{'labels':_0x48002f,'items':_0x2d481d,'selectedIds':_0x3e7f87,'focusedId':_0x1f4c5e,'showHeader':!0x1,'onSelect':_0x34186c,'onSetVisible':_0x58a5af,'onSetSelectable':_0x33036c,'onCommitName':_0x5ec528,'onCommitDescription':_0x1c45c9,'onMoveForward':async _0x5f3f1a=>_0xe0991b(_0x5f3f1a,_0x5de8db[_0x1b6ff0(0x285)]),'onMoveBackward':async _0x1f4f28=>_0xe0991b(_0x1f4f28,_0x5de8db[_0x1b6ff0(0x295)]),'onToggleSelectable':_0x25c998});}function qi(){return _0xcdc9dc(Ki,{'PanelComponent':_0x2083db});}let Ji=class extends _0x2c7179{constructor(_0x378de9,_0x25e3e0){const _0x36edd5=_0x244912;super(),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](jr,qi)),this[_0x36edd5(0x14a)](_0x25e3e0[_0x36edd5(0x2a8)]({'BottomIcon':_0xe20eb,'FlipHorizontalIcon':_0x183126,'FlipVerticalIcon':_0x3dabc1,'MoveDownIcon':_0x1bee1c,'MoveUpIcon':_0x368783,'ObjectLayersIcon':_0x4809c9,'ShapeFormatSettingIcon':_0x1516df,'TopmostIcon':_0x1f7182})),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Vr,Jr)),this[_0x36edd5(0x14a)](_0x378de9[_0x36edd5(0x2a8)](Hr,Gr)),_0x378de9['get'](_0x184fa8)||this[_0x36edd5(0x14a)](_0x378de9['register'](_0x184fa8,Kr));}};function _0x4e9b(_0x1f63ca,_0x522d12){_0x1f63ca=_0x1f63ca-0x13f;const _0x2c7e0f=_0x2c7e();let _0x4e9b7c=_0x2c7e0f[_0x1f63ca];return _0x4e9b7c;}Ji=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],Ji);let $=class extends _0x2c7179{constructor(_0x2d3024){const _0x273d69=_0x244912;super(),this[_0x273d69(0x265)]=_0x2d3024,q(this,_0x273d69(0x22b),new _0x170955(null)),q(this,_0x273d69(0x256),this[_0x273d69(0x22b)]['asObservable']()),q(this,_0x273d69(0x313),new _0x170955(!0x1)),q(this,'onSavingEditorData$',this[_0x273d69(0x313)][_0x273d69(0x1f2)]()),q(this,_0x273d69(0x1cb),void 0x0),this[_0x273d69(0x14a)](this['_permissionService'][_0x273d69(0x236)]['subscribe'](()=>{const _0x304414=_0x273d69;let _0x5b0cdc=this[_0x304414(0x209)]();_0x5b0cdc!=null&&_0x5b0cdc['visible']&&!this[_0x304414(0x38a)](_0x5b0cdc)&&this['setEditing'](null);}));}[_0x244912(0x346)](){const _0x24d639=_0x244912;this['_clearCompletionFrame'](),this[_0x24d639(0x22b)][_0x24d639(0x3ac)](null),this[_0x24d639(0x22b)]['complete'](),this[_0x24d639(0x313)]['next'](!0x1),this[_0x24d639(0x313)][_0x24d639(0x2c4)](),super[_0x24d639(0x346)]();}[_0x244912(0x1ca)](_0x2e3b01){const _0x3a9236=_0x244912;(_0x2e3b01==null||!_0x2e3b01[_0x3a9236(0x27e)]||this[_0x3a9236(0x38a)](_0x2e3b01))&&(this[_0x3a9236(0x2b0)](),this[_0x3a9236(0x22b)][_0x3a9236(0x3ac)](_0x2e3b01),(_0x2e3b01==null||_0x2e3b01['visible']&&this['_onSavingEditorData$'][_0x3a9236(0x2d8)]())&&this['_onSavingEditorData$'][_0x3a9236(0x3ac)](!0x1));}[_0x244912(0x2f6)](_0xb768e9){const _0x45e506=_0x244912;this['_onSavingEditorData$'][_0x45e506(0x3ac)](_0xb768e9);}[_0x244912(0x209)](){const _0x548965=_0x244912;return this['_editingParams$'][_0x548965(0x2d8)]();}[_0x244912(0x38a)](_0x3b7023){const _0x475b25=_0x244912;let _0x39bf22=this[_0x475b25(0x265)][_0x475b25(0x2d6)](new _0x59c9a1(_0x3b7023['unitId'])['id']),_0x3a82be=this['_permissionService'][_0x475b25(0x2d6)](new _0x5ec863(_0x3b7023[_0x475b25(0x21f)],_0x3b7023[_0x475b25(0x1c5)])['id']);return((_0x39bf22==null?void 0x0:_0x39bf22['value'])??!0x0)&&((_0x3a82be==null?void 0x0:_0x3a82be[_0x475b25(0x3de)])??!0x0);}['completeEditing'](_0x3c8fad){const _0x36b6f9=_0x244912;let _0x4738a9=this[_0x36b6f9(0x209)]();_0x4738a9&&this[_0x36b6f9(0x1cb)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x36b6f9(0x1cb)]=requestAnimationFrame(()=>{const _0x228f7c=_0x36b6f9;this[_0x228f7c(0x1cb)]=void 0x0,this[_0x228f7c(0x209)]()===_0x4738a9&&this[_0x228f7c(0x1ca)](null);}));}[_0x244912(0x2b0)](){const _0x157f49=_0x244912;this[_0x157f49(0x1cb)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x157f49(0x1cb)]=void 0x0);}[_0x244912(0x35c)](){const _0x4f2534=_0x244912;this[_0x4f2534(0x209)]()&&this[_0x4f2534(0x1ca)](null);}};$=Y([J(0x0,_0x10d99e)],$);let Yi=class extends _0x2c7179{constructor(_0x261758,_0x56f6e8,_0x2a9866,_0x103625,_0x158e11,_0x3e6193){const _0x2b121e=_0x244912;super(),this['_context']=_0x261758,this[_0x2b121e(0x391)]=_0x56f6e8,this[_0x2b121e(0x29f)]=_0x2a9866,this['_drawingManagerService']=_0x103625,this[_0x2b121e(0x210)]=_0x158e11,this[_0x2b121e(0x288)]=_0x3e6193,q(this,'_lastEditingShapeKey',null),this[_0x2b121e(0x225)](),this['_initSelection'](),this[_0x2b121e(0x1e4)]();}[_0x244912(0x225)](){const _0x4aef0b=_0x244912;let {scene:_0x2591d2}=this['_context'];this[_0x4aef0b(0x14a)](_0x2591d2[_0x4aef0b(0x398)][_0x4aef0b(0x318)](_0x571b97=>{const _0x5c7489=_0x4aef0b;let {offsetX:_0x230b6a,offsetY:_0x43c2fc}=_0x571b97,_0x5cdcc7=_0x2591d2[_0x5c7489(0x2fa)](_0x145e25['FromArray']([_0x230b6a,_0x43c2fc]));if(_0x5cdcc7 instanceof Er){let _0x13ef6a=this[_0x5c7489(0x288)][_0x5c7489(0x35b)](_0x5cdcc7[_0x5c7489(0x21f)],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]);if(_0x3c2fe3(this['_sheetsShapeService']['getShapeType'](_0x5cdcc7['unitId'],_0x5cdcc7[_0x5c7489(0x1c5)],_0x5cdcc7[_0x5c7489(0x19c)]))||_0x13ef6a!=null&&_0x13ef6a['getShapeData']()[_0x5c7489(0x141)])return;this['_shapeTextEditingService'][_0x5c7489(0x1ca)]({'visible':!0x0,'unitId':_0x5cdcc7[_0x5c7489(0x21f)],'subUnitId':_0x5cdcc7[_0x5c7489(0x1c5)],'shapeId':_0x5cdcc7[_0x5c7489(0x19c)],'shapeKey':_0x5cdcc7[_0x5c7489(0x206)]});}}));}['_initSelection'](){const _0x47b7cd=_0x244912;this[_0x47b7cd(0x14a)](this['_drawingManagerService'][_0x47b7cd(0x2fc)][_0x47b7cd(0x305)](_0x3ce9c4=>{const _0x4c8b7d=_0x47b7cd;if(_0x3ce9c4[_0x4c8b7d(0x1ae)]===0x1){let _0x240dfd=_0x3ce9c4[0x0],_0xfdaaff=this[_0x4c8b7d(0x239)][_0x4c8b7d(0x3a5)](_0x240dfd);if((_0xfdaaff==null?void 0x0:_0xfdaaff[_0x4c8b7d(0x185)])===_0x54d53a[_0x4c8b7d(0x1b1)]){var _0x5841a8;let _0x37e654=this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x209)]();if((_0x37e654==null?void 0x0:_0x37e654[_0x4c8b7d(0x19c)])===_0x240dfd[_0x4c8b7d(0x237)]&&_0x37e654[_0x4c8b7d(0x27e)])return;let _0x1d46da=_0x3c2fe3(this['_sheetsShapeService'][_0x4c8b7d(0x382)](_0x240dfd['unitId'],_0x240dfd[_0x4c8b7d(0x1c5)],_0x240dfd[_0x4c8b7d(0x237)])),_0x299022=!!((_0x5841a8=this[_0x4c8b7d(0x288)][_0x4c8b7d(0x35b)](_0x240dfd[_0x4c8b7d(0x21f)],_0x240dfd['subUnitId'],_0x240dfd[_0x4c8b7d(0x237)]))!=null&&_0x5841a8['getShapeData']()[_0x4c8b7d(0x141)]);(_0x1d46da||_0x299022)&&this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x1ca)](null);}else this[_0x4c8b7d(0x29f)][_0x4c8b7d(0x3f6)]();}else this['_shapeTextEditingService'][_0x4c8b7d(0x3f6)]();})),this[_0x47b7cd(0x14a)](this[_0x47b7cd(0x239)][_0x47b7cd(0x16d)][_0x47b7cd(0x305)](_0x337839=>{const _0x218f18=_0x47b7cd;let _0x2dbdfd=this[_0x218f18(0x29f)]['getEditing']();_0x2dbdfd&&_0x337839[_0x218f18(0x22e)](_0x2c63c0=>_0x2c63c0[_0x218f18(0x237)]===_0x2dbdfd[_0x218f18(0x19c)])&&this[_0x218f18(0x29f)][_0x218f18(0x1ca)](null);}));}[_0x244912(0x1e4)](){const _0x5e87af=_0x244912;this['disposeWithMe'](this['_shapeTextEditingService'][_0x5e87af(0x256)][_0x5e87af(0x305)](_0xb4bbce=>{const _0xc92173=_0x5e87af;let {scene:_0x399f4a}=this[_0xc92173(0x15d)];if(this[_0xc92173(0x28b)]){let _0x50aa1f=_0x399f4a[_0xc92173(0x251)](this[_0xc92173(0x28b)]);_0x50aa1f&&_0x50aa1f[_0xc92173(0x1ca)](!0x1);}if(_0xb4bbce){let _0x3c76e4=!!_0xb4bbce['visible'],_0x259509=_0x399f4a[_0xc92173(0x251)](_0xb4bbce[_0xc92173(0x2ee)]);_0x259509&&(_0x259509[_0xc92173(0x1ca)](_0x3c76e4),this['_lastEditingShapeKey']=_0xb4bbce[_0xc92173(0x2ee)]),this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,_0x3c76e4);}else this[_0xc92173(0x28b)]=null,this[_0xc92173(0x210)][_0xc92173(0x234)](_0x3e7b7b,!0x1);}));}};Yi=Y([J(0x1,_0x318433(_0x54646c)),J(0x2,_0x318433($)),J(0x3,_0x1f50fa),J(0x4,_0x21e25a),J(0x5,_0x318433(_0x5594a6))],Yi);var Xi=class extends Yi{[_0x244912(0x225)](){const _0x2a038a=_0x244912;let {scene:_0x552859}=this['_context'],_0x542877=this['_injector'][_0x2a038a(0x1e0)](_0x349883);this[_0x2a038a(0x14a)](_0x552859[_0x2a038a(0x398)][_0x2a038a(0x318)](_0x35f52c=>{const _0x28ef02=_0x2a038a;let {offsetX:_0x43aa2f,offsetY:_0x69ca88}=_0x35f52c,_0x22cdcd=_0x552859['pick'](_0x145e25['FromArray']([_0x43aa2f,_0x69ca88]));if(!(_0x22cdcd instanceof Er))return;let _0x843641=this[_0x28ef02(0x288)]['getShapeModel'](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]);_0x3c2fe3(this[_0x28ef02(0x288)][_0x28ef02(0x382)](_0x22cdcd[_0x28ef02(0x21f)],_0x22cdcd[_0x28ef02(0x1c5)],_0x22cdcd[_0x28ef02(0x19c)]))||_0x843641!=null&&_0x843641[_0x28ef02(0x2b7)]()[_0x28ef02(0x141)]||_0x542877[_0x28ef02(0x170)]('text',{'hostType':_0x37e7a9['UNIVER_SHEET'],'unitId':_0x22cdcd[_0x28ef02(0x21f)],'subUnitId':_0x22cdcd[_0x28ef02(0x1c5)],'shapeId':_0x22cdcd[_0x28ef02(0x19c)]});}));}};const Zi={...Ii};let Qi=class extends _0x2c7179{constructor(_0x5a4fa8,_0x4b6148,_0x45e743,_0x2a3b7e,_0x2f78ec,_0x3539ff,_0x29c894,_0x230357){const _0x57abb9=_0x244912;super(),this[_0x57abb9(0x3f7)]=_0x5a4fa8,this['_sheetsShapeService']=_0x4b6148,this['_commandService']=_0x45e743,this[_0x57abb9(0x239)]=_0x2a3b7e,this[_0x57abb9(0x19d)]=_0x2f78ec,this[_0x57abb9(0x210)]=_0x3539ff,this['_renderManagerService']=_0x29c894,this[_0x57abb9(0x29f)]=_0x230357,q(this,_0x57abb9(0x28e),null),this[_0x57abb9(0x3f7)][_0x57abb9(0x390)](Zi),this[_0x57abb9(0x1d2)](),this[_0x57abb9(0x14a)](this[_0x57abb9(0x29f)][_0x57abb9(0x256)]['subscribe'](_0x5ef871=>{_0x5ef871&&this['_clearFocusedShape']();}));}[_0x244912(0x1e5)](){const _0x5eb5ad=_0x244912;this[_0x5eb5ad(0x28e)]||=this[_0x5eb5ad(0x14a)](_0x50a450(this[_0x5eb5ad(0x2f0)],_0x37e7a9[_0x5eb5ad(0x2c9)],_0x5f19b3=>this['_popupMenuListener'](_0x5f19b3)));}[_0x244912(0x1d2)](){const _0x30374e=_0x244912;this[_0x30374e(0x19d)][_0x30374e(0x149)](_0x54d53a['DRAWING_SHAPE'],(_0x412f7d,_0x2a260d,_0x4d8b77,_0x410342)=>{const _0x534c3e=_0x30374e;let _0x3a7971=this[_0x534c3e(0x288)][_0x534c3e(0x3e4)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2b9b5f=this[_0x534c3e(0x288)][_0x534c3e(0x1fa)](_0x412f7d,_0x2a260d,_0x4d8b77),_0x2cb279=_0x3a7971!==void 0x0&&!_0x3c2fe3(_0x3a7971)&&!(_0x2b9b5f!=null&&_0x2b9b5f['formulaBinding']);return[{'label':_0x534c3e(0x35d),'index':0x0,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':_0x534c3e(0x316)},'disable':!0x1},..._0x2cb279?[{'label':_0x534c3e(0x291),'index':0x1,'commandId':Bi['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'mode':'text'},'disable':!0x1}]:[],{'label':_0x534c3e(0x31a),'index':0x2,'commandId':_0x4d296c['id'],'commandParams':{'unitId':_0x412f7d,'drawings':[{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'drawingId':_0x4d8b77,'drawingType':_0x410342}]},'disable':!0x1},{'label':_0x534c3e(0x2ff),'index':0x3,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x3cca56['id'],'commandParams':{'unitId':_0x412f7d,'subUnitId':_0x2a260d,'shapeId':_0x4d8b77,'flipV':!0x0},'disable':!0x1}];},_0x30374e(0x20c));}[_0x244912(0x1c1)](_0x1ec957){const _0x45de13=_0x244912;let _0x321eda=new _0x4cf05e(),_0x531dfe=null,_0x584d80=()=>{const _0x1de4be=_0x4e9b;if(!_0x531dfe)return;let _0x550715=this[_0x1de4be(0x239)][_0x1de4be(0x2a0)](),_0x52f52d=_0x550715[_0x1de4be(0x1ae)]===0x0||_0x550715[_0x1de4be(0x1ae)]===0x1&&_0x550715[_0x1de4be(0x22e)](_0x1824f1=>_0x1824f1[_0x1de4be(0x21f)]===(_0x531dfe==null?void 0x0:_0x531dfe['unitId'])&&_0x1824f1['subUnitId']===(_0x531dfe==null?void 0x0:_0x531dfe['subUnitId'])&&_0x1824f1[_0x1de4be(0x237)]===(_0x531dfe==null?void 0x0:_0x531dfe['drawingId']));_0x531dfe=null,_0x52f52d&&(this['_contextService']['setContextValue'](_0x15a415,!0x1),this[_0x1de4be(0x239)][_0x1de4be(0x1f3)](null));};return _0x321eda[_0x45de13(0x1a3)](_0x1ec957['createControl$'][_0x45de13(0x305)](()=>{const _0x445d23=_0x45de13;let _0x1e1bc0=_0x1ec957[_0x445d23(0x2ba)]();if(_0x1e1bc0[_0x445d23(0x17a)]>0x1){_0x584d80();return;}let _0x2e9e4b=_0x1e1bc0[_0x445d23(0x196)]()[_0x445d23(0x3ac)]()[_0x445d23(0x3de)];if(!_0x2e9e4b){_0x584d80();return;}let _0x964512=this[_0x445d23(0x239)][_0x445d23(0x28a)](_0x2e9e4b[_0x445d23(0x206)]);if(!_0x964512||_0x964512[_0x445d23(0x185)]!==_0x54d53a[_0x445d23(0x1b1)]){_0x584d80();return;}let {unitId:_0x335da1,subUnitId:_0x543b43,drawingId:_0x4bdc69}=_0x964512;_0x531dfe={'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69},this[_0x445d23(0x210)][_0x445d23(0x234)](_0x15a415,!0x0),this['_drawingManagerService']['getFocusDrawings']()[_0x445d23(0x2f4)](_0xfbd86b=>_0xfbd86b[_0x445d23(0x21f)]===_0x335da1&&_0xfbd86b[_0x445d23(0x1c5)]===_0x543b43&&_0xfbd86b[_0x445d23(0x237)]===_0x4bdc69)||this[_0x445d23(0x239)][_0x445d23(0x1f3)]([{'unitId':_0x335da1,'subUnitId':_0x543b43,'drawingId':_0x4bdc69}]);})),_0x321eda[_0x45de13(0x1a3)](_0x1ec957[_0x45de13(0x26f)]['subscribe'](()=>{_0x584d80();})),_0x21ce23(()=>{_0x321eda['dispose'](),_0x584d80();});}[_0x244912(0x3e7)](){const _0x5b3638=_0x244912;this[_0x5b3638(0x210)]['setContextValue'](_0x15a415,!0x1),this[_0x5b3638(0x239)][_0x5b3638(0x1f3)](null);}};Qi=Y([J(0x0,_0x2ed3c1),J(0x1,_0x318433(_0x5594a6)),J(0x2,_0x4aa13b),J(0x3,_0x1f50fa),J(0x4,_0x318433(_0xf74177)),J(0x5,_0x21e25a),J(0x6,_0xc8f10c),J(0x7,_0x318433($))],Qi);function $i(_0x373b12,_0x4f2fbc,_0x42f951,_0x2f1325){const _0x55bcb5=_0x244912;let _0xb3c3c0=_0x48a662(_0x373b12,_0x4f2fbc,_0x42f951),_0x30228a=[];for(let _0x836a18 of _0x4f2fbc){let _0x2c0829=_0xb3c3c0[_0x55bcb5(0x14c)][_0x55bcb5(0x1e0)](_0x836a18['drawingId']),_0x59916d=_0x2f1325(_0x836a18);_0x2c0829&&_0x59916d&&_0x30228a['push']({'targetShapeId':_0x2c0829,'source':_0x59916d});}return _0x30228a;}let ea=class extends _0x2c7179{constructor(_0x374a61,_0x107711,_0x11f91c,_0x1402f4){const _0x4daddf=_0x244912;super(),this['_univerInstanceService']=_0x374a61,this['_sheetInterceptorService']=_0x107711,this[_0x4daddf(0x21b)]=_0x11f91c,this[_0x4daddf(0x288)]=_0x1402f4,this[_0x4daddf(0x1d4)]();}[_0x244912(0x1d4)](){const _0x2f80a5=_0x244912;this[_0x2f80a5(0x14a)](this[_0x2f80a5(0x179)]['interceptCommand']({'getMutations':_0x4375a1=>{const _0x1104c2=_0x2f80a5;if(_0x4375a1['id']===_0x56b5fe['id']){let _0x3323e3=_0x4b1c62(this['_univerInstanceService'],_0x4375a1['params']);if(!_0x3323e3)return{'redos':[],'undos':[]};let {unitId:_0x2bae71,subUnitId:_0x13a759}=_0x3323e3,_0xf7f2aa=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x2bae71,_0x13a759),_0x520e60=Object['values'](_0xf7f2aa)[_0x1104c2(0x150)](_0x143646=>_0x143646[_0x1104c2(0x185)]===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x520e60[_0x1104c2(0x1ae)]===0x0)return{'redos':[],'undos':[]};let _0x33b072=[],_0x205952=[];for(let _0x1b0a2d=0x0;_0x1b0a2d<_0x520e60[_0x1104c2(0x1ae)];_0x1b0a2d++){let _0x51cd55=_0x520e60[_0x1b0a2d],_0x187084=this['_sheetsShapeService'][_0x1104c2(0x35b)](_0x51cd55[_0x1104c2(0x21f)],_0x51cd55[_0x1104c2(0x1c5)],_0x51cd55[_0x1104c2(0x237)]);_0x187084&&(_0x33b072[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)]}}),_0x205952[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x2bae71,'subUnitId':_0x13a759,'shapeId':_0x51cd55[_0x1104c2(0x237)],'shapeType':_0x187084[_0x1104c2(0x382)](),'shapeData':JSON[_0x1104c2(0x3be)](JSON['stringify'](_0x187084[_0x1104c2(0x2b7)]()))}}));}return{'redos':_0x33b072,'undos':_0x205952};}if(_0x4375a1['id']===_0x2b67e1['id']){let {unitId:_0x4238f8,subUnitId:_0x2b8083,targetSubUnitId:_0x1b667b,copyContext:_0x364b4a}=_0x4375a1[_0x1104c2(0x348)];if(!_0x4238f8||!_0x2b8083||!_0x1b667b)return{'redos':[],'undos':[]};let _0x194555=this[_0x1104c2(0x21b)][_0x1104c2(0x1c8)](_0x4238f8,_0x2b8083),_0x41f920=Object['values'](_0x194555)[_0x1104c2(0x150)](_0x4d9791=>_0x4d9791['drawingType']===_0x54d53a[_0x1104c2(0x1b1)]);if(_0x41f920['length']===0x0)return{'redos':[],'undos':[]};let _0x1afe92=$i(_0x364b4a,_0x41f920,{'unitId':_0x4238f8,'sourceSubUnitId':_0x2b8083,'targetSubUnitId':_0x1b667b},_0x1635ed=>{const _0x5a4279=_0x1104c2;let _0x3b5daf=this[_0x5a4279(0x288)][_0x5a4279(0x35b)](_0x1635ed[_0x5a4279(0x21f)],_0x1635ed['subUnitId'],_0x1635ed['drawingId']);if(_0x3b5daf)return{'shapeType':_0x3b5daf[_0x5a4279(0x382)](),'shapeData':JSON[_0x5a4279(0x3be)](JSON[_0x5a4279(0x3c6)](_0x3b5daf[_0x5a4279(0x2b7)]()))};}),_0x546656=[],_0x4e59d0=[];for(let {targetShapeId:_0x597f45,source:_0x16daec}of _0x1afe92)_0x546656[_0x1104c2(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45,'shapeType':_0x16daec[_0x1104c2(0x1b9)],'shapeData':_0x16daec[_0x1104c2(0x17d)]}}),_0x4e59d0[_0x1104c2(0x399)]({'id':_0xd0fb5f['id'],'params':{'unitId':_0x4238f8,'subUnitId':_0x1b667b,'shapeId':_0x597f45}});return{'redos':_0x546656,'undos':_0x4e59d0};}return{'redos':[],'undos':[]};}}));}};ea=Y([J(0x0,_0x318433(_0x595744)),J(0x1,_0x318433(_0x5dcb53)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6))],ea);let ta=class extends _0x2c7179{constructor(_0x243040,_0x4b69b5,_0x1ff86b,_0x57c88f,_0x55204f,_0x116ebc){const _0x28522f=_0x244912;super(),this[_0x28522f(0x2d0)]=_0x243040,this[_0x28522f(0x2f0)]=_0x4b69b5,this[_0x28522f(0x239)]=_0x1ff86b,this['_currentUniverService']=_0x57c88f,this[_0x28522f(0x33f)]=_0x55204f,this['_sheetDrawingShapeRenderController']=_0x116ebc,q(this,_0x28522f(0x3d3),new Set()),this['_initialize']();}['_initialize'](){const _0x149dd4=_0x244912;this[_0x149dd4(0x201)](),this[_0x149dd4(0x349)](),this[_0x149dd4(0x37a)]();}['_drawingAddListener'](){const _0x40a11c=_0x244912;this[_0x40a11c(0x14a)](this[_0x40a11c(0x239)][_0x40a11c(0x32e)]['subscribe'](_0x2b46d0=>{this['_insertShapes'](_0x2b46d0);}));}[_0x244912(0x349)](){const _0x19485b=_0x244912;this['disposeWithMe'](this[_0x19485b(0x2d0)][_0x19485b(0x356)]((_0x148af8,_0x37d574)=>{const _0x311d54=_0x19485b;if(_0x148af8['id']===_0x4fa39c['id']){let {unitId:_0x5365f1,subUnitId:_0x5efea4,shapeId:_0x54030b}=_0x148af8['params'],_0x207356=this[_0x311d54(0x200)](_0x5365f1),_0x4d9af2=_0x5cc8a7({'unitId':_0x5365f1,'subUnitId':_0x5efea4,'drawingId':_0x54030b}),_0x3a7ce7=_0x207356==null?void 0x0:_0x207356[_0x311d54(0x229)][_0x311d54(0x251)](_0x4d9af2);_0x3a7ce7&&(this[_0x311d54(0x244)][_0x311d54(0x190)](_0x3a7ce7),this[_0x311d54(0x244)][_0x311d54(0x1bb)](_0x3a7ce7,{'unitId':_0x5365f1,'subUnitId':_0x5efea4,'shapeId':_0x54030b}),_0x3a7ce7[_0x311d54(0x23a)](!0x0));return;}if(_0x148af8['id']===_0x220ec8['id']){var _0x527f2a;let {unitId:_0xc40f45,subUnitId:_0x1e9ba7,shapeId:_0x434c85}=_0x148af8[_0x311d54(0x348)],_0x5abc48=this[_0x311d54(0x200)](_0xc40f45);if(_0x5abc48==null)return;let {scene:_0x48ca2b}=_0x5abc48,_0x3399f8=_0x5cc8a7({'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}),_0x31e740=_0x48ca2b[_0x311d54(0x251)](_0x3399f8);if(!((_0x527f2a=this[_0x311d54(0x2f0)][_0x311d54(0x276)](_0xc40f45))!=null&&_0x527f2a[_0x311d54(0x27b)](_0x307dc0)['getSkeleton'](_0x1e9ba7)))return!0x1;if(_0x31e740)return;if(_0x37d574!=null&&_0x37d574[_0x311d54(0x30b)]){queueMicrotask(()=>{const _0x1bd3a7=_0x311d54;this['_disposed']||this[_0x1bd3a7(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);});return;}this[_0x311d54(0x373)]([{'unitId':_0xc40f45,'subUnitId':_0x1e9ba7,'drawingId':_0x434c85}]);}}));}[_0x244912(0x37a)](){const _0x21e7eb=_0x244912;this[_0x21e7eb(0x14a)](this[_0x21e7eb(0x239)][_0x21e7eb(0x1cd)][_0x21e7eb(0x305)](_0x39a966=>{const _0x21d94a=_0x21e7eb;_0x39a966[_0x21d94a(0x2b3)](_0x39bb0a=>{const _0x2def31=_0x21d94a;let {unitId:_0x322577,subUnitId:_0x322a47,drawingId:_0x218950}=_0x39bb0a,_0x2c1b24=this['_drawingManagerService']['getDrawingByParam'](_0x39bb0a);if(_0x2c1b24==null)return;let {transform:_0xebbf5d,drawingType:_0x432e34,srcRect:_0x49fb21,prstGeom:_0x2a568c}=_0x2c1b24;if(_0x432e34!==_0x54d53a[_0x2def31(0x1b1)])return;let _0x3030fb=this[_0x2def31(0x200)](_0x322577);if(_0x3030fb==null)return;let {scene:_0x952cbd,transformer:_0x5e07a8}=_0x3030fb;if(_0xebbf5d==null)return!0x0;let _0x425d0e=_0x5cc8a7({'unitId':_0x322577,'subUnitId':_0x322a47,'drawingId':_0x218950}),_0x532ea4=_0x952cbd[_0x2def31(0x251)](_0x425d0e);if(_0x532ea4==null)return!0x0;_0x532ea4['setSrcRect'](_0x49fb21),_0x532ea4[_0x2def31(0x37b)](_0x2a568c);});}));}['_insertShapes'](_0x45c5d5){const _0x410fd6=_0x244912;for(let _0x45b0b2 of _0x45c5d5){var _0x40056b;let {unitId:_0x1a3a14,subUnitId:_0x5773dd,drawingId:_0x88eec2}=_0x45b0b2,_0x4ed283=this[_0x410fd6(0x200)](_0x1a3a14),_0x2a76dc=(_0x40056b=_0x23371e(this['_currentUniverService'],_0x1a3a14))==null?void 0x0:_0x40056b['subUnitId'];if(_0x4ed283==null||_0x2a76dc!==_0x5773dd)return;let _0x38163e=_0x5cc8a7({'unitId':_0x1a3a14,'subUnitId':_0x5773dd,'drawingId':_0x88eec2});if(this['_insertingShapeKeys'][_0x410fd6(0x33a)](_0x38163e)||_0x4ed283[_0x410fd6(0x229)][_0x410fd6(0x251)](_0x38163e)!=null)return;let _0x104aa2=this[_0x410fd6(0x239)]['getDrawingByParam'](_0x45b0b2);if(_0x104aa2==null||_0x104aa2[_0x410fd6(0x185)]!==_0x54d53a[_0x410fd6(0x1b1)])return;let _0x512bb7=_0x104aa2[_0x410fd6(0x36e)]||{};if(_0x3c2fe3(_0x512bb7[_0x410fd6(0x1b9)])){let _0x5c213f=_0x104aa2[_0x410fd6(0x1b7)];_0x5c213f&&(_0x104aa2[_0x410fd6(0x1b7)]={..._0x5c213f,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this['_insertingShapeKeys'][_0x410fd6(0x1a3)](_0x38163e);try{this[_0x410fd6(0x244)][_0x410fd6(0x1da)](_0x104aa2,_0x4ed283[_0x410fd6(0x229)]);}finally{this['_insertingShapeKeys']['delete'](_0x38163e);}queueMicrotask(()=>{const _0x42a40f=_0x410fd6;if(this[_0x42a40f(0x32f)])return;let _0x1676c2=_0x5cc8a7(_0x45b0b2);if(!_0x4ed283[_0x42a40f(0x229)]['getObjectIncludeInGroup'](_0x1676c2))return;let _0x14bfeb=this['_drawingManagerService'][_0x42a40f(0x3a5)](_0x45b0b2);_0x14bfeb&&this[_0x42a40f(0x239)][_0x42a40f(0x2af)]([_0x14bfeb]);});}}[_0x244912(0x200)](_0x3ba5da){const _0x2ce5fd=_0x244912;if(_0x3ba5da==null)return;let _0x97c32c=this[_0x2ce5fd(0x2f0)][_0x2ce5fd(0x276)](_0x3ba5da),_0x43e995=_0x97c32c==null?void 0x0:_0x97c32c[_0x2ce5fd(0x229)];return _0x43e995==null?null:{'scene':_0x43e995,'transformer':_0x43e995['getTransformerByCreate']()};}};ta=Y([J(0x0,_0x4aa13b),J(0x1,_0xc8f10c),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0x318433(_0x2346f6)),J(0x5,_0x318433(X))],ta);const na={'normal':{'fill':_0x59f579[_0x244912(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x244912(0x3ba)]},'highlighted':{'fill':_0x244912(0x2f7),'stroke':'#1a73e8','strokeWidth':0x2}};var ra=class extends _0x4546bd{constructor(_0xcf14b4,_0x4ce6d8){const _0x3e2d13=_0x244912;super(_0xcf14b4,_0x4ce6d8),q(this,_0x3e2d13(0x25b),''),q(this,_0x3e2d13(0x1dc),-0x1),q(this,_0x3e2d13(0x20a),''),q(this,'_subUnitId',''),q(this,'_isHighlighted',!0x1),_0x4ce6d8&&this[_0x3e2d13(0x2d4)](_0x4ce6d8);}[_0x244912(0x144)](){const _0x154982=_0x244912;return{'unitId':this[_0x154982(0x20a)],'subUnitId':this[_0x154982(0x1e9)],'shapeId':this[_0x154982(0x25b)],'cxnIndex':this[_0x154982(0x1dc)]};}[_0x244912(0x20f)](_0x52fefe){const _0x59d8df=_0x244912;this[_0x59d8df(0x270)]!==_0x52fefe&&(this[_0x59d8df(0x270)]=_0x52fefe,this[_0x59d8df(0x23a)](!0x0));}[_0x244912(0x3e1)](){const _0x2b11fc=_0x244912;return this[_0x2b11fc(0x270)];}[_0x244912(0x2d4)](_0x204417){const _0x3c5eec=_0x244912;_0x204417[_0x3c5eec(0x261)]!==void 0x0&&(this['_targetShapeId']=_0x204417[_0x3c5eec(0x261)]),_0x204417['cxnIndex']!==void 0x0&&(this[_0x3c5eec(0x1dc)]=_0x204417['cxnIndex']),_0x204417['unitId']!==void 0x0&&(this[_0x3c5eec(0x20a)]=_0x204417[_0x3c5eec(0x21f)]),_0x204417['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x204417[_0x3c5eec(0x1c5)]),_0x204417[_0x3c5eec(0x3e1)]!==void 0x0&&(this['_isHighlighted']=_0x204417[_0x3c5eec(0x3e1)]),this['transformByState']({'width':_0x204417[_0x3c5eec(0x326)]??_0x59f579[_0x3c5eec(0x15b)]*0x2,'height':_0x204417[_0x3c5eec(0x1ba)]??_0x59f579[_0x3c5eec(0x15b)]*0x2});}[_0x244912(0x16b)](_0xd8c0d6){const _0x33ef29=_0x244912;let _0x1a30bc=this[_0x33ef29(0x270)]?na[_0x33ef29(0x2b4)]:na[_0x33ef29(0x302)];_0x2e680e[_0x33ef29(0x31e)](_0xd8c0d6,{'radius':_0x59f579[_0x33ef29(0x15b)],'fill':_0x1a30bc['fill'],'stroke':_0x1a30bc[_0x33ef29(0x3cb)],'strokeWidth':_0x1a30bc['strokeWidth'],'evented':!0x0});}};let ia=class extends _0x2c7179{constructor(_0x426e88,_0x52cad0,_0x35ccba,_0x5d6247){const _0x179e66=_0x244912;super(),this[_0x179e66(0x15d)]=_0x426e88,this[_0x179e66(0x2f0)]=_0x52cad0,this[_0x179e66(0x239)]=_0x35ccba,this['_sheetsShapeService']=_0x5d6247,q(this,_0x179e66(0x1f8),[]),q(this,_0x179e66(0x2b1),null),q(this,_0x179e66(0x241),-0x1),q(this,'_currentScene',null),q(this,'_unitId',''),q(this,_0x179e66(0x1e9),''),q(this,_0x179e66(0x26e),null);}['startConnectionDetection'](_0x2e5aec,_0x13fc6e,_0x6da088,_0x54259a){const _0x43928a=_0x244912;this[_0x43928a(0x2e9)]=_0x2e5aec,this['_unitId']=_0x13fc6e,this[_0x43928a(0x1e9)]=_0x6da088,this[_0x43928a(0x26e)]=_0x54259a;}[_0x244912(0x336)](_0x167675){const _0x10f8a9=_0x244912;if(!this[_0x10f8a9(0x2e9)])return null;let _0x4244d1=this[_0x10f8a9(0x245)](_0x167675);return _0x4244d1?(this[_0x10f8a9(0x2b1)]!==_0x4244d1[_0x10f8a9(0x19c)]&&(this[_0x10f8a9(0x180)](),this[_0x10f8a9(0x1f5)](_0x4244d1['shapeId'],_0x4244d1[_0x10f8a9(0x395)]),this[_0x10f8a9(0x2b1)]=_0x4244d1[_0x10f8a9(0x19c)]),this[_0x10f8a9(0x268)](_0x167675)):(this[_0x10f8a9(0x2b1)]!==null&&(this[_0x10f8a9(0x180)](),this['_activeTargetShapeId']=null),null);}[_0x244912(0x18b)](){const _0x337231=_0x244912;this['_clearConnectionSites'](),this['_currentScene']=null,this[_0x337231(0x2b1)]=null,this['_highlightedSiteIndex']=-0x1,this[_0x337231(0x26e)]=null;}[_0x244912(0x216)](){const _0xa98235=_0x244912;return this[_0xa98235(0x2b1)]===null||this[_0xa98235(0x241)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0xa98235(0x241)]};}[_0x244912(0x245)](_0x2917cd){const _0x4a72fc=_0x244912;let _0x4d893f=this[_0x4a72fc(0x239)][_0x4a72fc(0x1c8)](this[_0x4a72fc(0x20a)],this[_0x4a72fc(0x1e9)]);for(let _0xc1dd3e of Object['keys'](_0x4d893f)){if(_0xc1dd3e===this[_0x4a72fc(0x26e)]||_0x4d893f[_0xc1dd3e][_0x4a72fc(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let _0x3af02b=this['_sheetsShapeService'][_0x4a72fc(0x35b)](this['_unitId'],this['_subUnitId'],_0xc1dd3e);if(!_0x3af02b||_0x3c2fe3(_0x3af02b[_0x4a72fc(0x382)]())||_0x3af02b['getConnectionSiteList']()[_0x4a72fc(0x1ae)]===0x0||!this[_0x4a72fc(0x2e9)])continue;let _0x50f949=_0x5cc8a7({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':_0xc1dd3e}),_0x5ba7fe=this['_currentScene'][_0x4a72fc(0x251)](_0x50f949);if(!_0x5ba7fe)continue;let {left:_0x362d99,top:_0x3d5709,width:_0x5078c5,height:_0x1cf461}=_0x5ba7fe['getRealBound'](),_0xe459d2=_0x362d99+_0x5078c5/0x2,_0xa3d554=_0x3d5709+_0x1cf461/0x2,_0x59dd03=_0x5ba7fe[_0x4a72fc(0x1b7)][_0x4a72fc(0x1ef)](),_0x4a7747=new _0x16a726([_0x59dd03[0x0],_0x59dd03[0x1],_0x59dd03[0x2],_0x59dd03[0x3],_0xe459d2,_0xa3d554]),_0x2a59fc=_0x5ba7fe['getParent'](),_0x5356de=(_0x5ba7fe[_0x4a72fc(0x27d)]&&(_0x2a59fc==null?void 0x0:_0x2a59fc[_0x4a72fc(0x274)])===_0x511859['GROUP']?_0x2a59fc[_0x4a72fc(0x162)]['multiply'](_0x4a7747):_0x4a7747)[_0x4a72fc(0x2ca)]()[_0x4a72fc(0x34b)](_0x2917cd),_0x1ca6a6=_0x5078c5/0x2,_0x5aa783=_0x1cf461/0x2;if(_0x5356de['x']>=-_0x1ca6a6-0x5&&_0x5356de['x']<=_0x1ca6a6+0x5&&_0x5356de['y']>=-_0x5aa783-0x5&&_0x5356de['y']<=_0x5aa783+0x5)return{'shapeId':_0xc1dd3e,'shapeModel':_0x3af02b};}return null;}['_showConnectionSites'](_0x223667,_0x1c51db){const _0x564cf1=_0x244912;if(!this[_0x564cf1(0x2e9)])return;let _0x82e591=_0x5cc8a7({'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'drawingId':_0x223667}),_0x5e285c=this[_0x564cf1(0x2e9)]['getObjectIncludeInGroup'](_0x82e591);if(!_0x5e285c)return;let {left:_0x365866,top:_0x4b9e85,width:_0x188a0b,height:_0x3ccbd0}=_0x5e285c[_0x564cf1(0x38b)](),_0x256c29=_0x365866+_0x188a0b/0x2,_0x2445fe=_0x4b9e85+_0x3ccbd0/0x2,_0x46cbc4=_0x5e285c[_0x564cf1(0x1b7)][_0x564cf1(0x1ef)](),_0x8046e=new _0x16a726([_0x46cbc4[0x0],_0x46cbc4[0x1],_0x46cbc4[0x2],_0x46cbc4[0x3],_0x256c29,_0x2445fe]),_0x330b8a=_0x5e285c['getParent'](),_0x2f8a67=_0x5e285c[_0x564cf1(0x27d)]&&(_0x330b8a==null?void 0x0:_0x330b8a[_0x564cf1(0x274)])===_0x511859[_0x564cf1(0x258)]?_0x330b8a[_0x564cf1(0x162)]['multiply'](_0x8046e):_0x8046e;_0x1c51db['updateContext']({'width':_0x188a0b,'height':_0x3ccbd0});let _0x13897e=_0x1c51db[_0x564cf1(0x23d)]();for(let _0x34bb4f of _0x13897e){let _0x5d9481=_0x34bb4f['x']-_0x188a0b/0x2,_0x4fcfab=_0x34bb4f['y']-_0x3ccbd0/0x2,_0x1a8f0a=_0x2f8a67[_0x564cf1(0x34b)]({'x':_0x5d9481,'y':_0x4fcfab}),_0x349e3f=_0x1a8f0a['x'],_0x12346b=_0x1a8f0a['y'],_0x4622e0=new ra(_0x564cf1(0x1b3)+_0x223667+'-'+_0x34bb4f['index'],{'left':_0x349e3f-_0x59f579[_0x564cf1(0x15b)],'top':_0x12346b-_0x59f579[_0x564cf1(0x15b)],'targetShapeId':_0x223667,'cxnIndex':_0x34bb4f[_0x564cf1(0x2de)],'unitId':this[_0x564cf1(0x20a)],'subUnitId':this[_0x564cf1(0x1e9)],'width':_0x59f579[_0x564cf1(0x15b)]*0x2,'height':_0x59f579[_0x564cf1(0x15b)]*0x2,'zIndex':_0x352374+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x564cf1(0x399)](_0x4622e0),this['_currentScene']['addObject'](_0x4622e0,_0x352374+0x2);}}['_findNearestConnectionSite'](_0xe9fa29){const _0x1781e6=_0x244912;let _0x545442=null,_0xc55192=0x1/0x0,_0x3282ab=null;for(let _0x3b29dd of this[_0x1781e6(0x1f8)]){let _0x4e5e5e=_0x3b29dd['left']+_0x59f579[_0x1781e6(0x15b)],_0x4e2bce=_0x3b29dd[_0x1781e6(0x172)]+_0x59f579[_0x1781e6(0x15b)],_0x31ad6e=_0xe9fa29['x']-_0x4e5e5e,_0x5fe281=_0xe9fa29['y']-_0x4e2bce,_0x26166f=Math[_0x1781e6(0x31f)](_0x31ad6e*_0x31ad6e+_0x5fe281*_0x5fe281);_0x26166f<_0xc55192&&(_0xc55192=_0x26166f,_0x545442=_0x3b29dd,_0x3282ab={'x':_0x4e5e5e,'y':_0x4e2bce});}let _0x51d462=_0xc55192<=0xa&&_0x545442?_0x545442[_0x1781e6(0x144)]()[_0x1781e6(0x286)]:-0x1;if(_0x51d462!==this['_highlightedSiteIndex']){for(let _0x5970b4 of this['_connectionSiteObjects']){let _0x23a988=_0x5970b4[_0x1781e6(0x144)]();_0x5970b4['setHighlighted'](_0x23a988[_0x1781e6(0x286)]===_0x51d462);}this[_0x1781e6(0x241)]=_0x51d462;}if(_0xc55192<=0xa&&_0x545442&&_0x3282ab){let _0x1b2081=_0x545442['getConnectionInfo'](),_0x66e80e=this['_getConnectionSiteAngle'](_0x1b2081[_0x1781e6(0x19c)],_0x1b2081[_0x1781e6(0x286)]);return{'shapeId':_0x1b2081[_0x1781e6(0x19c)],'cxnIndex':_0x1b2081[_0x1781e6(0x286)],'unitId':_0x1b2081['unitId'],'subUnitId':_0x1b2081[_0x1781e6(0x1c5)],'worldPoint':_0x3282ab,'angle':_0x66e80e};}return null;}[_0x244912(0x25f)](_0x4ece78,_0x592844){const _0x1df286=_0x244912;let _0x4c01c3=this['_sheetsShapeService'][_0x1df286(0x35b)](this['_unitId'],this['_subUnitId'],_0x4ece78);if(!_0x4c01c3)return 0x0;let _0x5d3898=this[_0x1df286(0x239)]['getDrawingByParam']({'unitId':this[_0x1df286(0x20a)],'subUnitId':this[_0x1df286(0x1e9)],'drawingId':_0x4ece78});if(!(_0x5d3898!=null&&_0x5d3898['transform']))return 0x0;let {width:_0x32ff1e=0x0,height:_0x4f3401=0x0,flipX:_0xdaa813=!0x1,flipY:_0x162090=!0x1}=_0x5d3898['transform'];_0x4c01c3[_0x1df286(0x340)]({'width':_0x32ff1e,'height':_0x4f3401});let _0x3eb0d1=_0x4c01c3[_0x1df286(0x23d)]()[_0x1df286(0x2f4)](_0x20140a=>_0x20140a['index']===_0x592844);if(!_0x3eb0d1)return 0x0;let _0x3e4e54=_0x3eb0d1['ang']/0xea60;return _0xdaa813&&(_0x3e4e54=0xb4-_0x3e4e54),_0x162090&&(_0x3e4e54=-_0x3e4e54),_0x3e4e54=(_0x3e4e54%0x168+0x168)%0x168,_0x3e4e54;}[_0x244912(0x180)](){const _0x4f48a4=_0x244912;for(let _0xe800ec of this[_0x4f48a4(0x1f8)])_0xe800ec[_0x4f48a4(0x346)]();this[_0x4f48a4(0x1f8)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x244912(0x346)](){const _0x70e932=_0x244912;this[_0x70e932(0x180)](),super[_0x70e932(0x346)]();}};ia=Y([J(0x1,_0x318433(_0xc8f10c)),J(0x2,_0x318433(_0x1f50fa)),J(0x3,_0x318433(_0x5594a6))],ia);let aa=class extends _0x2c7179{constructor(_0x5027b4,_0x57a776,_0x58ddc3,_0x3c27aa,_0x348e6a){const _0x510a19=_0x244912;super(),this[_0x510a19(0x337)]=_0x5027b4,this[_0x510a19(0x327)]=_0x57a776,this[_0x510a19(0x21b)]=_0x58ddc3,this[_0x510a19(0x3c2)]=_0x3c27aa,this[_0x510a19(0x3bf)]=_0x348e6a,q(this,_0x510a19(0x1a0),void 0x0),this[_0x510a19(0x198)](),this[_0x510a19(0x262)]();}get[_0x244912(0x2f1)](){const _0x263671=_0x244912;return this[_0x263671(0x21b)][_0x263671(0x2a0)]();}[_0x244912(0x262)](){const _0x1d097b=_0x244912;this[_0x1d097b(0x3bf)]['registerFeaturePasteHook'](({fromUnitId:_0x85d4ff,fromSubUnitId:_0x5f60e4,toUnitId:_0x54ad20,toSubUnitId:_0x255058,idMap:_0x21afbb})=>{const _0x5ba2ff=_0x1d097b;let _0x2d13d9=[],_0x3013b3=[];for(let [_0x45f30f,_0x29b2f6]of _0x21afbb[_0x5ba2ff(0x324)]()){let _0x70c830=this[_0x5ba2ff(0x3c2)][_0x5ba2ff(0x35b)](_0x85d4ff,_0x5f60e4,_0x45f30f);if(!_0x70c830)continue;let _0x21553f=_0x70c830[_0x5ba2ff(0x382)](),_0x39d4af=JSON[_0x5ba2ff(0x3be)](JSON[_0x5ba2ff(0x3c6)](_0x70c830[_0x5ba2ff(0x2b7)]()));if(_0x39d4af[_0x5ba2ff(0x18e)]){var _0x13d4ee,_0x38c17c;let _0x5a8f97=(_0x13d4ee=_0x39d4af['relation'][_0x5ba2ff(0x3b9)])==null?void 0x0:_0x13d4ee[_0x5ba2ff(0x19c)],_0x2c7c67=(_0x38c17c=_0x39d4af[_0x5ba2ff(0x18e)]['to'])==null?void 0x0:_0x38c17c[_0x5ba2ff(0x19c)],_0x112017=!_0x5a8f97||_0x21afbb['has'](_0x5a8f97),_0x31b9d1=!_0x2c7c67||_0x21afbb['has'](_0x2c7c67);_0x112017&&_0x5a8f97&&_0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)]?_0x39d4af['relation'][_0x5ba2ff(0x3b9)]={..._0x39d4af[_0x5ba2ff(0x18e)][_0x5ba2ff(0x3b9)],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x5a8f97)}:_0x39d4af[_0x5ba2ff(0x18e)]['from']=void 0x0,_0x31b9d1&&_0x2c7c67&&_0x39d4af[_0x5ba2ff(0x18e)]['to']?_0x39d4af[_0x5ba2ff(0x18e)]['to']={..._0x39d4af[_0x5ba2ff(0x18e)]['to'],'shapeId':_0x21afbb[_0x5ba2ff(0x1e0)](_0x2c7c67)}:_0x39d4af['relation']['to']=void 0x0;}_0x2d13d9[_0x5ba2ff(0x399)]({'id':_0x220ec8['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6,'shapeType':_0x21553f,'shapeData':_0x39d4af}}),_0x3013b3['push']({'id':_0xd0fb5f['id'],'params':{'unitId':_0x54ad20,'subUnitId':_0x255058,'shapeId':_0x29b2f6}});}return{'redos':_0x2d13d9,'undos':_0x3013b3};});}['_initCopyPaste'](){const _0x423fc1=_0x244912;this[_0x423fc1(0x14a)](this['_sheetClipboardService'][_0x423fc1(0x17c)]({'id':_0x423fc1(0x3ce),'onBeforeCopyFocusedObject':(_0x1f735a,_0x312ea0,_0x35d8df)=>{const _0x3d7ff7=_0x423fc1;this[_0x3d7ff7(0x1a0)]=null;let _0x5231f9=this[_0x3d7ff7(0x2f1)][_0x3d7ff7(0x150)](_0x447e3b=>_0x447e3b[_0x3d7ff7(0x185)]===_0x54d53a['DRAWING_SHAPE']);return _0x5231f9[_0x3d7ff7(0x1ae)]!==0x0&&(this[_0x3d7ff7(0x1a0)]={'unitId':_0x1f735a,'subUnitId':_0x312ea0,'copyType':_0x35d8df,'drawings':_0x5231f9},!0x0);},'onBeforeCopy':(_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8)=>{const _0x5c7adb=_0x423fc1;this[_0x5c7adb(0x1a0)]=null,this['_createCopyInfoByRange'](_0x25e1eb,_0x4b5c4c,_0x3c8b53,_0x4876a8);},'onPasteCells':(_0x3162be,_0x3417e4,_0x331c56,_0x156160)=>{const _0x213a94=_0x423fc1;if(!_0x156160[_0x213a94(0x18f)]||!_0x3162be||!this[_0x213a94(0x1a0)])return{'redos':[],'undos':[]};let {pasteType:_0x12df3a}=_0x156160;return _0x12df3a===_0x314886['DEFAULT_PASTE']?this[_0x213a94(0x14b)](_0x3417e4,this['_copyInfo'][_0x213a94(0x238)]===_0x40a630['CUT']):{'redos':[],'undos':[]};}}));}[_0x244912(0x2ef)](_0x17c9f1,_0xe730f3,_0xd945ef,_0x26efe5){const _0x1cea57=_0x244912;let _0xe0baa2=this[_0x1cea57(0x337)][_0x1cea57(0x163)](_0x17c9f1,_0xe730f3);if(!_0xe0baa2)return;let _0x4ffa5f=_0x20495d(_0xe0baa2,_0xd945ef);if(!_0x4ffa5f)return;let {startX:_0x35357f,endX:_0x43b588,startY:_0x3d6d84,endY:_0xf309e7}=_0x4ffa5f,_0x5be954=this[_0x1cea57(0x21b)][_0x1cea57(0x1c8)](_0x17c9f1,_0xe730f3),_0x4ede9b=[];for(let [_0x4e3971,_0x719316]of Object[_0x1cea57(0x324)](_0x5be954)){if(_0x719316[_0x1cea57(0x185)]!==_0x54d53a['DRAWING_SHAPE'])continue;let {transform:_0x37e5a8}=_0x719316;if(!_0x37e5a8)continue;let {left:_0x27eab0=0x0,top:_0xd65926=0x0,width:_0x44d6b8=0x0,height:_0x49b1cd=0x0}=_0x37e5a8;_0x35357f<=_0x27eab0&&_0x43b588>=_0x27eab0+_0x44d6b8&&_0x3d6d84<=_0xd65926&&_0xf309e7>=_0xd65926+_0x49b1cd&&_0x4ede9b[_0x1cea57(0x399)](_0x719316);}_0x4ede9b[_0x1cea57(0x1ae)]>0x0&&(this[_0x1cea57(0x1a0)]={'unitId':_0x17c9f1,'subUnitId':_0xe730f3,'copyType':_0x26efe5,'copyRange':_0xd945ef,'drawings':_0x4ede9b});}[_0x244912(0x14b)](_0x4fdf3c,_0x1b570f){const _0x561179=_0x244912;let {unitId:_0x23020b,subUnitId:_0x4b96f6,range:_0x3c14f0}=_0x4fdf3c,_0x40fd1e=this[_0x561179(0x337)]['getSkeleton'](_0x23020b,_0x4b96f6);if(!_0x40fd1e)return{'redos':[],'undos':[]};let _0x49d5f4=_0x17eb2d(_0x3c14f0),{unitId:_0x5186c6,subUnitId:_0x31f6e1,copyRange:_0x56c0e4,drawings:_0x27d8e8}=this[_0x561179(0x1a0)],_0x3006b4=this['_sheetSkeletonService'][_0x561179(0x163)](_0x5186c6,_0x31f6e1);if(!_0x3006b4)return{'redos':[],'undos':[]};let _0x3b9686;if(!_0x56c0e4){let _0x4c99ad=0x1/0x0,_0x26e332=0x1/0x0;for(let _0x47c4ce of _0x27d8e8){let {left:_0x52ae64=0x0,top:_0x11d17e=0x0}=_0x47c4ce[_0x561179(0x1b7)]??{};_0x52ae64<_0x4c99ad&&(_0x4c99ad=_0x52ae64),_0x11d17e<_0x26e332&&(_0x26e332=_0x11d17e);}_0x4c99ad!==0x1/0x0&&_0x26e332!==0x1/0x0&&(_0x3b9686={'left':_0x4c99ad,'top':_0x26e332});}let _0x438fea=new Map();if(!_0x1b570f){for(let _0x3355c6 of _0x27d8e8)_0x438fea['set'](_0x3355c6[_0x561179(0x237)],_0x524ea6());}let _0x15797c=[],_0x11a491=[];for(let _0x9604ba of _0x27d8e8){let {drawingId:_0x40b3b6,transform:_0x13c61a,sheetTransform:_0x47ede9}=_0x9604ba;if(!_0x13c61a||!_0x47ede9)continue;let _0x3bae7f=this[_0x561179(0x2f9)]({'transform':_0x13c61a,'sheetTransform':_0x47ede9},{'skeleton':_0x3006b4,'range':_0x56c0e4},{'skeleton':_0x40fd1e,'range':_0x49d5f4},_0x3b9686);if(_0x1b570f){let {redos:_0x4851b7,undos:_0x2a3808}=this[_0x561179(0x3e0)]({'fromUnitId':_0x5186c6,'fromSubUnitId':_0x31f6e1,'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f});_0x15797c[_0x561179(0x399)](..._0x4851b7),_0x11a491[_0x561179(0x399)](..._0x2a3808);continue;}let {redos:_0x166857,undos:_0x3fa039}=this[_0x561179(0x3fd)]({'toUnitId':_0x23020b,'toSubUnitId':_0x4b96f6,'drawing':_0x9604ba,'newTransforms':_0x3bae7f,'newDrawingId':_0x438fea[_0x561179(0x1e0)](_0x40b3b6),'idMap':_0x438fea});_0x15797c[_0x561179(0x399)](..._0x166857),_0x11a491['push'](..._0x3fa039);}return{'redos':_0x15797c,'undos':_0x11a491};}[_0x244912(0x3e0)](_0x3deae8){const _0x408b7d=_0x244912;let {fromUnitId:_0x2de529,fromSubUnitId:_0x403adf,toUnitId:_0x2b650b,toSubUnitId:_0x52a7c8,drawing:_0x3b364f,newTransforms:_0x1ad2b7}=_0x3deae8,_0x14bcbc={..._0x3b364f,'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'transform':_0x1ad2b7['transform'],'sheetTransform':_0x1ad2b7[_0x408b7d(0x3a3)]};if(_0x2b650b===_0x2de529&&_0x52a7c8===_0x403adf){let {redo:_0x54ee89,undo:_0x4d2922,objects:_0x5e8630}=this['_sheetDrawingService'][_0x408b7d(0x352)]([_0x14bcbc]);return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x54ee89,'objects':_0x5e8630}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x1db)],'op':_0x4d2922,'objects':_0x5e8630}}]};}{let _0x4999c7=this[_0x408b7d(0x21b)][_0x408b7d(0x2e2)]([_0x3b364f]),_0x454582=this[_0x408b7d(0x21b)][_0x408b7d(0x27a)]([_0x14bcbc]),_0x2b221a=this[_0x408b7d(0x3c2)]['getShapeModel'](_0x3b364f[_0x408b7d(0x21f)],_0x3b364f[_0x408b7d(0x1c5)],_0x3b364f['drawingId']);if(!_0x2b221a)return{'redos':[],'undos':[]};let _0x3d0335=_0x2b221a[_0x408b7d(0x382)](),_0x2013b5=JSON[_0x408b7d(0x3be)](JSON[_0x408b7d(0x3c6)](_0x2b221a['getShapeData']()));return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x4999c7[_0x408b7d(0x224)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f[_0x408b7d(0x237)]}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x454582['redo'],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)],'shapeType':_0x3d0335,'shapeData':_0x2013b5}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'type':_0x3c81cc[_0x408b7d(0x3b4)],'op':_0x4999c7[_0x408b7d(0x319)],'objects':_0x4999c7[_0x408b7d(0x30d)]}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2de529,'subUnitId':_0x403adf,'shapeId':_0x3b364f['drawingId'],'shapeType':_0x3d0335,'shapeData':_0x2013b5}},{'id':_0x50f2f5['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'type':_0x3c81cc[_0x408b7d(0x2bb)],'op':_0x454582[_0x408b7d(0x319)],'objects':_0x454582[_0x408b7d(0x30d)]}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2b650b,'subUnitId':_0x52a7c8,'shapeId':_0x3b364f[_0x408b7d(0x237)]}}]};}}[_0x244912(0x3fd)](_0x1c0695){const _0x3792f0=_0x244912;let {toUnitId:_0x2cfd3f,toSubUnitId:_0x431800,drawing:_0x566f75,newTransforms:_0x392c0c,newDrawingId:_0x441d7c,idMap:_0x4df9ef}=_0x1c0695,_0x1baea6={..._0x566f75,'unitId':_0x2cfd3f,'subUnitId':_0x431800,'drawingId':_0x441d7c,'transform':_0x392c0c['transform'],'sheetTransform':_0x392c0c[_0x3792f0(0x3a3)]},{redo:_0x584b7c,undo:_0x596521,objects:_0x4aa9a3}=this[_0x3792f0(0x21b)]['getBatchAddOp']([_0x1baea6]),_0x5487c5=this['_shapeService'][_0x3792f0(0x35b)](_0x566f75[_0x3792f0(0x21f)],_0x566f75[_0x3792f0(0x1c5)],_0x566f75[_0x3792f0(0x237)]);if(!_0x5487c5)return{'redos':[],'undos':[]};let _0xfbb29f=_0x5487c5['getShapeType'](),_0x4d1ebc=JSON['parse'](JSON['stringify'](_0x5487c5['getShapeData']()));if(_0x4d1ebc[_0x3792f0(0x18e)]){var _0xc96609,_0x59f340;let _0x5136e3=(_0xc96609=_0x4d1ebc[_0x3792f0(0x18e)]['from'])==null?void 0x0:_0xc96609[_0x3792f0(0x19c)],_0x1ff06b=(_0x59f340=_0x4d1ebc[_0x3792f0(0x18e)]['to'])==null?void 0x0:_0x59f340[_0x3792f0(0x19c)],_0x29207f=!_0x5136e3||_0x4df9ef[_0x3792f0(0x33a)](_0x5136e3),_0x4a7916=!_0x1ff06b||_0x4df9ef['has'](_0x1ff06b);_0x29207f&&_0x5136e3&&_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]?_0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)]={..._0x4d1ebc[_0x3792f0(0x18e)][_0x3792f0(0x3b9)],'shapeId':_0x4df9ef['get'](_0x5136e3)}:_0x4d1ebc[_0x3792f0(0x18e)]['from']=void 0x0,_0x4a7916&&_0x1ff06b&&_0x4d1ebc[_0x3792f0(0x18e)]['to']?_0x4d1ebc[_0x3792f0(0x18e)]['to']={..._0x4d1ebc[_0x3792f0(0x18e)]['to'],'shapeId':_0x4df9ef[_0x3792f0(0x1e0)](_0x1ff06b)}:_0x4d1ebc[_0x3792f0(0x18e)]['to']=void 0x0;}return{'redos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc[_0x3792f0(0x3b4)],'op':_0x584b7c,'objects':_0x4aa9a3}},{'id':_0x220ec8['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c,'shapeType':_0xfbb29f,'shapeData':_0x4d1ebc}}],'undos':[{'id':_0x50f2f5['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'type':_0x3c81cc['REMOVE'],'op':_0x596521,'objects':_0x4aa9a3}},{'id':_0xd0fb5f['id'],'params':{'unitId':_0x2cfd3f,'subUnitId':_0x431800,'shapeId':_0x441d7c}}]};}['_updateTransform'](_0x1f4ab3,_0x172952,_0x5bec8c,_0x52e177){const _0x3fbf69=_0x244912;let {range:_0x20e07e,skeleton:_0x47ee82}=_0x172952,{range:_0x2b558e,skeleton:_0x418006}=_0x5bec8c,{transform:_0x17890a,sheetTransform:_0x44cb2c}=_0x1f4ab3,_0x4069bc={..._0x17890a};if(_0x20e07e){let _0x43ea9c=_0x20495d(_0x47ee82,_0x20e07e),_0x2128ed=_0x20495d(_0x418006,_0x2b558e);if(_0x43ea9c&&_0x2128ed){let _0x733ff1=_0x2128ed['startX']-_0x43ea9c['startX'],_0x593ad9=_0x2128ed[_0x3fbf69(0x1e2)]-_0x43ea9c[_0x3fbf69(0x1e2)];_0x4069bc[_0x3fbf69(0x1fe)]=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)+_0x733ff1,_0x4069bc[_0x3fbf69(0x172)]=(_0x4069bc['top']??0x0)+_0x593ad9;}}else{let _0x46e78e=_0x20495d(_0x418006,_0x2b558e);if(_0x52e177&&_0x46e78e){let _0x62b0a8=(_0x4069bc[_0x3fbf69(0x1fe)]??0x0)-_0x52e177[_0x3fbf69(0x1fe)],_0x48167e=(_0x4069bc[_0x3fbf69(0x172)]??0x0)-_0x52e177[_0x3fbf69(0x172)];_0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e['startX']+_0x62b0a8,_0x4069bc[_0x3fbf69(0x172)]=_0x46e78e[_0x3fbf69(0x1e2)]+_0x48167e;}else _0x4069bc[_0x3fbf69(0x1fe)]=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x20e)],_0x4069bc['top']=_0x46e78e==null?void 0x0:_0x46e78e[_0x3fbf69(0x1e2)];}return{'transform':_0x4069bc,'sheetTransform':_0x3dccba(_0x4069bc,_0x418006)??_0x44cb2c};}};aa=Y([J(0x0,_0x318433(_0x29e188)),J(0x1,_0x318433(_0x2730e)),J(0x2,_0x318433(_0x35f22e)),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x38ae18))],aa);var oa=class extends _0x4546bd{constructor(_0x34914a,_0x5579c2){const _0x50abe9=_0x244912;super(_0x34914a,_0x5579c2),q(this,'_shapeId',null),q(this,_0x50abe9(0x231),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x50abe9(0x392),!0x1),_0x5579c2&&this[_0x50abe9(0x2d4)](_0x5579c2);}['getDrawingSearch'](){const _0x338734=_0x244912;return{'unitId':this[_0x338734(0x20a)],'subUnitId':this[_0x338734(0x1e9)],'drawingId':this[_0x338734(0x2cd)]};}[_0x244912(0x2d4)](_0x4e699a){const _0x3eb779=_0x244912;_0x4e699a[_0x3eb779(0x19c)]!==void 0x0&&(this[_0x3eb779(0x2cd)]=_0x4e699a[_0x3eb779(0x19c)]),_0x4e699a[_0x3eb779(0x21f)]!==void 0x0&&(this['_unitId']=_0x4e699a[_0x3eb779(0x21f)]),_0x4e699a[_0x3eb779(0x1c5)]!==void 0x0&&(this[_0x3eb779(0x1e9)]=_0x4e699a['subUnitId']),_0x4e699a[_0x3eb779(0x3b0)]!==void 0x0&&(this[_0x3eb779(0x392)]=_0x4e699a[_0x3eb779(0x3b0)]),this[_0x3eb779(0x1d8)]({'width':_0x4e699a[_0x3eb779(0x326)],'height':_0x4e699a[_0x3eb779(0x1ba)]});}[_0x244912(0x16b)](_0x244961){const _0x4a96c6=_0x244912;_0x2e680e[_0x4a96c6(0x31e)](_0x244961,{'radius':_0x59f579[_0x4a96c6(0x15b)],'fill':_0x59f579[_0x4a96c6(0x292)],'stroke':_0x59f579['cxnPointStroke'],'strokeWidth':_0x59f579[_0x4a96c6(0x3ba)],'evented':!0x0});}};let sa=class extends _0x2c7179{constructor(_0x231d9c,_0x3c742e,_0x4421d5,_0x3c9af3,_0x1c38c7,_0x1307f5,_0x8c2342,_0x3549d2){const _0x3ed2c3=_0x244912;super(),this[_0x3ed2c3(0x15d)]=_0x231d9c,this['_commandService']=_0x3c742e,this[_0x3ed2c3(0x2f0)]=_0x4421d5,this[_0x3ed2c3(0x239)]=_0x3c9af3,this[_0x3ed2c3(0x321)]=_0x1c38c7,this[_0x3ed2c3(0x288)]=_0x1307f5,this[_0x3ed2c3(0x3fa)]=_0x8c2342,this[_0x3ed2c3(0x1f7)]=_0x3549d2,q(this,_0x3ed2c3(0x195),void 0x0),q(this,_0x3ed2c3(0x20a),void 0x0),q(this,_0x3ed2c3(0x1e9),void 0x0),q(this,_0x3ed2c3(0x1d6),[]),q(this,_0x3ed2c3(0x146),{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x3ed2c3(0x376),void 0x0),q(this,_0x3ed2c3(0x381),!0x1),q(this,_0x3ed2c3(0x15e),!0x1),q(this,_0x3ed2c3(0x1e6),!0x1),q(this,_0x3ed2c3(0x1b8),void 0x0),q(this,_0x3ed2c3(0x372),void 0x0),q(this,_0x3ed2c3(0x2ae),null),this[_0x3ed2c3(0x14f)]();}[_0x244912(0x14f)](){const _0x3bd19c=_0x244912;this[_0x3bd19c(0x1a5)](),this[_0x3bd19c(0x3e6)]();}[_0x244912(0x32b)](){const _0x552dd9=_0x244912;if(!this[_0x552dd9(0x20a)]||!this['_subUnitId']||!this[_0x552dd9(0x195)])return;let _0x497dc9={'unitId':this[_0x552dd9(0x20a)],'subUnitId':this[_0x552dd9(0x1e9)],'drawingId':this[_0x552dd9(0x195)]},{transform:_0x2ccca2}=this['_drawingManagerService']['getDrawingByParam'](_0x497dc9);if(_0x2ccca2)return{'left':_0x2ccca2[_0x552dd9(0x1fe)]||0x0,'top':_0x2ccca2[_0x552dd9(0x172)]||0x0,'width':_0x2ccca2['width']||0x0,'height':_0x2ccca2['height']||0x0,'flipX':_0x2ccca2[_0x552dd9(0x166)]||!0x1,'flipY':_0x2ccca2[_0x552dd9(0x3b2)]||!0x1,'angle':_0x2ccca2[_0x552dd9(0x388)]};}[_0x244912(0x386)](){const _0x41a540=_0x244912;if(this['_unitId']===void 0x0||this[_0x41a540(0x1e9)]===void 0x0||this[_0x41a540(0x195)]===void 0x0)return;let _0x2f691a=this['_renderManagerService'][_0x41a540(0x276)](this['_unitId']);if(!_0x2f691a||!_0x2f691a[_0x41a540(0x27b)](_0x307dc0)['getCurrentSkeleton']())return;let {scene:_0x2c5650}=_0x2f691a,_0x2c719a=this[_0x41a540(0x32b)]();if(!_0x2c719a)return;let _0x4cde9c=this[_0x41a540(0x288)][_0x41a540(0x35b)](this[_0x41a540(0x20a)],this[_0x41a540(0x1e9)],this[_0x41a540(0x195)]);if(!_0x4cde9c||!_0x3c2fe3(_0x4cde9c[_0x41a540(0x382)]()))return;let _0x20cba6=_0x4cde9c['getConnectorLinePoints']();if(_0x20cba6['length']<0x2)return;let _0x223c70=new _0x3a7d90(_0x2c719a),_0x15c47c=_0x20cba6[0x0],_0x3c1b5d=_0x20cba6[_0x20cba6['length']-0x1],_0x369d91=_0x223c70[_0x41a540(0x2aa)](_0x15c47c),_0x24bf4f=_0x223c70['localToWorld'](_0x3c1b5d);this[_0x41a540(0x320)](_0x2c5650,{..._0x369d91},!0x0),this['_addShapeConnectorHandlerObject'](_0x2c5650,{..._0x24bf4f},!0x1);}[_0x244912(0x320)](_0x2fc87b,_0x20f6c6,_0x2b7b25){const _0x2e053f=_0x244912;if(this[_0x2e053f(0x195)]===void 0x0||this['_unitId']===void 0x0||this['_subUnitId']===void 0x0)return;let _0x2f8fc3=_0x2e053f(0x1fc)+this[_0x2e053f(0x20a)]+'-'+this[_0x2e053f(0x1e9)]+'-'+this[_0x2e053f(0x195)]+'-'+(_0x2b7b25?'start':_0x2e053f(0x1a7)),_0x5216f3=_0x2fc87b[_0x2e053f(0x251)](_0x2f8fc3);if(_0x5216f3){_0x5216f3['transformByState']({'left':_0x20f6c6['x']-_0x59f579['cxnPointRadius'],'top':_0x20f6c6['y']-_0x59f579[_0x2e053f(0x15b)]});return;}let _0x2afe77=new oa(_0x2f8fc3,{'left':_0x20f6c6['x']-_0x59f579[_0x2e053f(0x15b)],'top':_0x20f6c6['y']-_0x59f579['cxnPointRadius'],'shapeId':this[_0x2e053f(0x195)],'unitId':this[_0x2e053f(0x20a)],'subUnitId':this[_0x2e053f(0x1e9)],'isStartConnectorPoint':_0x2b7b25,'width':_0x59f579[_0x2e053f(0x15b)]*0x2,'height':_0x59f579[_0x2e053f(0x15b)]*0x2,'zIndex':_0x352374+0x1,'evented':!0x0});this[_0x2e053f(0x1d6)]['push'](_0x2afe77),this['_attachConnectorObjectEvent'](_0x2afe77,_0x2fc87b,_0x2b7b25),_0x2fc87b[_0x2e053f(0x2da)](_0x2afe77,_0x352374+0x1);}[_0x244912(0x18d)](_0x494ab9,_0x543fe0){const _0x35b21a=_0x244912;var _0x5d4456;let _0x4c7122={'x':0x0,'y':0x0};if(!_0x494ab9||!_0x543fe0)return _0x4c7122;let _0x5ab8c3=this[_0x35b21a(0x2f0)]['getRenderUnitById'](_0x494ab9);if(!_0x5ab8c3||!_0x5ab8c3[_0x35b21a(0x27b)](_0x307dc0)[_0x35b21a(0x163)](_0x543fe0))return _0x4c7122;let _0x52812b=_0x5ab8c3['with'](_0x20a826),_0x1ac94e=_0x52812b==null?void 0x0:_0x52812b[_0x35b21a(0x145)]();if(!_0x1ac94e)return _0x4c7122;let _0x4781df=(_0x5d4456=this['_univerInstanceService'][_0x35b21a(0x287)](_0x494ab9))==null?void 0x0:_0x5d4456[_0x35b21a(0x184)](_0x543fe0);if(!_0x4781df)return _0x4c7122;let _0x2a83f0=_0x2ead9(_0x1ac94e[_0x35b21a(0x1bc)],_0x1ac94e[_0x35b21a(0x298)],_0x5ab8c3[_0x35b21a(0x229)],_0x4781df);return _0x2a83f0?{'x':_0x2a83f0[_0x35b21a(0x1fd)],'y':_0x2a83f0[_0x35b21a(0x351)]}:_0x4c7122;}['_getZoomRatio'](_0x3ccbe8,_0x3e8511){const _0x5ce866=_0x244912;var _0x4e890a;let _0x4def37=(_0x4e890a=this[_0x5ce866(0x321)][_0x5ce866(0x287)](_0x3ccbe8))==null?void 0x0:_0x4e890a['getSheetBySheetId'](_0x3e8511);return(_0x4def37==null?void 0x0:_0x4def37['getZoomRatio']())??0x1;}[_0x244912(0x3d4)](_0xb7879d,_0x9daa60,_0x9be380,_0x5a3ff5,_0x3ee3ad){const _0x3a6990=_0x244912;this[_0x3a6990(0x1b8)][_0x3a6990(0x3fc)](),this[_0x3a6990(0x372)][_0x3a6990(0x3fc)](),this['_sheetShapeAdjustController'][_0x3a6990(0x289)]();let _0x5c51c6=this[_0x3a6990(0x2ae)];this[_0x3a6990(0x1f7)]['endConnectionDetection']();let _0x178623=this[_0x3a6990(0x18d)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x5a2995=this[_0x3a6990(0x331)](this[_0x3a6990(0x20a)],this[_0x3a6990(0x1e9)]),_0x4445e8={'x':_0x9be380[_0x3a6990(0x3d2)]/_0x5a2995+_0x178623['x'],'y':_0x9be380[_0x3a6990(0x360)]/_0x5a2995+_0x178623['y']},_0x1b596f=_0x5c51c6?_0x5c51c6[_0x3a6990(0x148)]:_0x4445e8,_0x4c269f=_0x5a3ff5?this[_0x3a6990(0x376)][_0x3a6990(0x283)]():this[_0x3a6990(0x376)][_0x3a6990(0x26b)](),_0x84a48b=this[_0x3a6990(0x376)][_0x3a6990(0x382)]();_0x4c269f?this[_0x3a6990(0x35f)](_0x4c269f,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad):this[_0x3a6990(0x397)](_0x9daa60,_0x1b596f,_0x5a3ff5,_0x5c51c6,_0x3ee3ad,_0x84a48b),this[_0x3a6990(0x381)]=!0x1,this[_0x3a6990(0x1e6)]=!0x1,this['_currentConnectionTarget']=null,_0xb7879d['enableObjectsEvent']();}[_0x244912(0x397)](_0x55ebcf,_0x5c172e,_0x428401,_0x41b54a,_0x400418,_0x111e5f){const _0x214f24=_0x244912;let _0x4f32b8=_0x111e5f===_0x1ecf22[_0x214f24(0x212)]||_0x111e5f===_0x1ecf22['StraightConnector1'],_0xb7a4c2=_0x428401?_0x5c172e:_0x55ebcf,_0x149458=_0x428401?_0x55ebcf:_0x5c172e,_0x10809e=this[_0x214f24(0x376)][_0x214f24(0x156)](),_0x2ca233=this['_activeShapeModel']['getShapeType'](),_0x26dd0a=_0x147030(_0x2ca233),_0x416734=_0x3a7d90[_0x214f24(0x2fd)](_0x10809e,_0x26dd0a),_0x98d084=_0x4f32b8?_0x3a7d90['computeStraightConnectorLayout'](_0xb7a4c2,_0x149458):_0x3a7d90[_0x214f24(0x16c)](_0x55ebcf,_0x5c172e,_0x428401,_0x416734);_0x41b54a?this[_0x214f24(0x1ed)](_0x98d084,_0x41b54a,_0x428401,_0x400418):this['_executeResizeCommand'](_0x98d084,_0x400418);}[_0x244912(0x35f)](_0x1e0d84,_0x2c9721,_0x38b38b,_0x58eab5,_0x354a8e){const _0x2c99ef=_0x244912;let _0x1e5a43=this[_0x2c99ef(0x303)](_0x1e0d84);if(!_0x1e5a43)return;let _0x180255=_0x58eab5?_0x58eab5[_0x2c99ef(0x388)]:this[_0x2c99ef(0x20b)](_0x1e5a43['point'],_0x2c9721),_0x4c407e;if(_0x58eab5){let _0x629ad0=this[_0x2c99ef(0x239)]['getDrawingByParam']({'unitId':_0x58eab5[_0x2c99ef(0x21f)],'subUnitId':_0x58eab5[_0x2c99ef(0x1c5)],'drawingId':_0x58eab5['shapeId']});if(_0x629ad0!=null&&_0x629ad0[_0x2c99ef(0x1b7)]){let {left:_0x344ba5=0x0,top:_0x1bbf02=0x0,width:_0x8d654b=0x0,height:_0x3781d9=0x0,angle:_0x147cce}=_0x629ad0['transform'];_0x4c407e=_0x3e1f4f({'left':_0x344ba5,'top':_0x1bbf02,'width':_0x8d654b,'height':_0x3781d9},_0x147cce||0x0);}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};}else _0x4c407e={'left':_0x2c9721['x'],'top':_0x2c9721['y'],'width':0x0,'height':0x0};let _0x4227e7={'point':_0x2c9721,'angle':_0x180255,'bounds':_0x4c407e},_0x7ddafa=_0x38b38b?_0x4227e7:_0x1e5a43,_0x44ecd4=_0x38b38b?_0x1e5a43:_0x4227e7,_0x582ed7=this[_0x2c99ef(0x376)][_0x2c99ef(0x382)](),_0x25219a=_0x349ecd(_0x7ddafa,_0x44ecd4,_0x582ed7);this[_0x2c99ef(0x376)]['removeLinePoints']();let _0x2d0de7=_0x42d9b4(_0x25219a,_0x582ed7);_0x58eab5?this['_executeConnectedRouteConnectionCommand'](_0x2d0de7,_0x58eab5,_0x1e0d84,_0x38b38b,_0x354a8e):this[_0x2c99ef(0x34f)](_0x2d0de7,_0x1e0d84,_0x38b38b,_0x354a8e);}[_0x244912(0x1ed)](_0x30caf5,_0x89cf3b,_0x4e6947,_0x1a8329){const _0x47faaa=_0x244912;let _0x17168f=this[_0x47faaa(0x376)][_0x47faaa(0x2b7)]()['relation'],_0x1aa901={..._0x17168f},_0x559f6={'shapeId':_0x89cf3b[_0x47faaa(0x19c)],'cxnIndex':_0x89cf3b[_0x47faaa(0x286)]};_0x4e6947?_0x1aa901['from']=_0x559f6:_0x1aa901['to']=_0x559f6;let _0x213011=this[_0x47faaa(0x376)][_0x47faaa(0x382)](),_0x141ae2=_0x42d9b4(_0x30caf5[_0x47faaa(0x2be)],_0x213011),_0x347a62={'unitId':this[_0x47faaa(0x20a)],'subUnitId':this[_0x47faaa(0x1e9)],'connectorShapeId':this[_0x47faaa(0x195)],'width':_0x30caf5[_0x47faaa(0x278)]['width'],'height':_0x30caf5[_0x47faaa(0x278)]['height'],'left':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x1fe)],'top':_0x30caf5['worldRect']['top'],'flipX':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x166)]||!0x1,'flipY':_0x30caf5[_0x47faaa(0x278)][_0x47faaa(0x3b2)]||!0x1,'newAdjustValues':_0x141ae2[_0x47faaa(0x380)],'oldAdjustValues':_0x1a8329,'oldRelation':_0x17168f,'newRelation':_0x1aa901,'newLineType':_0x141ae2[_0x47faaa(0x2d7)],'oldLineType':_0x213011};this['_commandService'][_0x47faaa(0x1ac)](_0xb35938['id'],_0x347a62);}[_0x244912(0x30e)](_0x49c26d,_0x2048bf){const _0x107f79=_0x244912;let _0xc6105b=this[_0x107f79(0x376)][_0x107f79(0x382)](),_0x379066=_0x42d9b4(_0x49c26d[_0x107f79(0x2be)],_0xc6105b),_0x16e4e1={'unitId':this[_0x107f79(0x20a)],'subUnitId':this[_0x107f79(0x1e9)],'shapeId':this['_activeShapeId'],'width':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x326)],'height':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1ba)],'left':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x1fe)],'top':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x172)],'flipX':_0x49c26d['worldRect'][_0x107f79(0x166)]||!0x1,'flipY':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x3b2)]||!0x1,'angle':_0x49c26d[_0x107f79(0x278)][_0x107f79(0x388)]||0x0,'newAdjustValues':_0x379066[_0x107f79(0x380)],'oldAdjustValues':_0x2048bf,'newLineType':_0x379066[_0x107f79(0x2d7)],'oldLineType':_0xc6105b};this['_commandService'][_0x107f79(0x1ac)](_0x54a28b['id'],_0x16e4e1);}[_0x244912(0x26c)](_0x1c563f,_0xbf9a6f,_0x4ec075,_0x474e0e,_0xe027fc){const _0x141674=_0x244912;let _0x44fa22=this[_0x141674(0x376)][_0x141674(0x2b7)]()['relation'],_0x469822={..._0x44fa22},_0x59d52b={'shapeId':_0xbf9a6f[_0x141674(0x19c)],'cxnIndex':_0xbf9a6f['cxnIndex']};_0x474e0e?(_0x469822[_0x141674(0x3b9)]=_0x59d52b,_0x469822['to']=_0x4ec075):(_0x469822[_0x141674(0x3b9)]=_0x4ec075,_0x469822['to']=_0x59d52b);let _0x397229={'unitId':this[_0x141674(0x20a)],'subUnitId':this[_0x141674(0x1e9)],'connectorShapeId':this[_0x141674(0x195)],'width':_0x1c563f[_0x141674(0x278)][_0x141674(0x326)],'height':_0x1c563f[_0x141674(0x278)]['height'],'left':_0x1c563f[_0x141674(0x278)][_0x141674(0x1fe)],'top':_0x1c563f[_0x141674(0x278)][_0x141674(0x172)],'flipX':_0x1c563f[_0x141674(0x278)]['flipX']||!0x1,'flipY':_0x1c563f[_0x141674(0x278)][_0x141674(0x3b2)]||!0x1,'oldAdjustValues':_0xe027fc,'newAdjustValues':_0x1c563f[_0x141674(0x380)],'newLineType':_0x1c563f[_0x141674(0x2d7)],'rotation':_0x1c563f[_0x141674(0x28c)],'oldRelation':_0x44fa22,'newRelation':_0x469822};this[_0x141674(0x2d0)][_0x141674(0x1ac)](_0xb35938['id'],_0x397229);}['_executeConnectedRouteResizeCommand'](_0xad3a19,_0x388755,_0x43e521,_0x168bdb){const _0x5152a6=_0x244912;let _0x344fd1=this[_0x5152a6(0x376)][_0x5152a6(0x2b7)]()['relation'],_0x329be1={};_0x43e521?(_0x329be1['to']=_0x388755,_0x329be1[_0x5152a6(0x3b9)]=void 0x0):(_0x329be1[_0x5152a6(0x3b9)]=_0x388755,_0x329be1['to']=void 0x0);let _0x4c2bd5={'unitId':this[_0x5152a6(0x20a)],'subUnitId':this[_0x5152a6(0x1e9)],'connectorShapeId':this[_0x5152a6(0x195)],'width':_0xad3a19['worldRect'][_0x5152a6(0x326)],'height':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1ba)],'left':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x1fe)],'top':_0xad3a19[_0x5152a6(0x278)]['top'],'flipX':_0xad3a19['worldRect']['flipX']||!0x1,'flipY':_0xad3a19[_0x5152a6(0x278)][_0x5152a6(0x3b2)]||!0x1,'oldAdjustValues':_0x168bdb,'newAdjustValues':_0xad3a19[_0x5152a6(0x380)],'newLineType':_0xad3a19[_0x5152a6(0x2d7)],'rotation':_0xad3a19[_0x5152a6(0x28c)],'oldRelation':_0x344fd1,'newRelation':_0x329be1};this[_0x5152a6(0x2d0)][_0x5152a6(0x1ac)](_0xb35938['id'],_0x4c2bd5);}[_0x244912(0x2a1)](_0x56b0af,_0x14c5ab,_0x571b90){const _0x47cc7b=_0x244912;this[_0x47cc7b(0x14a)](_0x21ce23(_0x56b0af[_0x47cc7b(0x383)][_0x47cc7b(0x318)]((_0x133e0f,_0x6555ac)=>{const _0x378849=_0x47cc7b;let _0xdf83fe=_0x56b0af[_0x378849(0x24f)]();if(this[_0x378849(0x376)]=this['_sheetsShapeService'][_0x378849(0x35b)](_0xdf83fe[_0x378849(0x21f)],_0xdf83fe['subUnitId'],_0xdf83fe[_0x378849(0x237)]),!this[_0x378849(0x376)])return;let _0x50a740={};this['_activeShapeModel']['getAdjustNames']()['forEach'](_0xfdb40e=>{const _0x456dc8=_0x378849;let _0x1d2fea=this[_0x456dc8(0x376)]['getAdjustValueByName'](_0xfdb40e);_0x1d2fea!==void 0x0&&(_0x50a740[_0xfdb40e]=_0x1d2fea);});let _0x2e4465=this[_0x378849(0x32b)]();if(!_0x2e4465)return;this[_0x378849(0x146)]={..._0x2e4465};let _0x27c472=new _0x3a7d90(this[_0x378849(0x146)]),_0x3e4aa2=_0x5cc8a7({'unitId':this[_0x378849(0x20a)],'subUnitId':this[_0x378849(0x1e9)],'drawingId':this[_0x378849(0x195)]}),_0x3abbbf=_0x14c5ab[_0x378849(0x251)](_0x3e4aa2);this[_0x378849(0x381)]=!0x0,_0x14c5ab['disableObjectsEvent'](),this['_sheetBasicShapeConnectionPointController'][_0x378849(0x38e)](_0x14c5ab,this['_unitId'],this[_0x378849(0x1e9)],this[_0x378849(0x195)]),this[_0x378849(0x2ae)]=null;let _0x43bcfb=this[_0x378849(0x376)][_0x378849(0x156)](),_0x5f070d=_0x43bcfb[0x0],_0x3be12d=_0x43bcfb[_0x43bcfb[_0x378849(0x1ae)]-0x1],_0x310e83=_0x571b90?_0x27c472['localToWorld'](_0x3be12d):_0x27c472[_0x378849(0x2aa)](_0x5f070d);this[_0x378849(0x1b8)]=_0x14c5ab['onPointerMove$'][_0x378849(0x318)]((_0x5e2f9f,_0x4ecb57)=>{const _0x3be57a=_0x378849;if(!this[_0x3be57a(0x381)]||!this[_0x3be57a(0x376)])return;this[_0x3be57a(0x1e6)]||=(this['_sheetShapeAdjustController'][_0x3be57a(0x309)](),this[_0x3be57a(0x376)][_0x3be57a(0x2bd)](),!0x0);let _0x18e25e=this[_0x3be57a(0x18d)](this[_0x3be57a(0x20a)],this[_0x3be57a(0x1e9)]),_0x48c84c=this['_getZoomRatio'](this['_unitId'],this[_0x3be57a(0x1e9)]),_0x3fcea8={'x':_0x5e2f9f[_0x3be57a(0x3d2)]/_0x48c84c+_0x18e25e['x'],'y':_0x5e2f9f[_0x3be57a(0x360)]/_0x48c84c+_0x18e25e['y']},_0x4aab67=this[_0x3be57a(0x1f7)][_0x3be57a(0x336)](_0x3fcea8);if(_0x4aab67){let {shapeId:_0x4c30eb,unitId:_0xe69a73,subUnitId:_0xf789ce}=_0x4aab67;if(_0x4c30eb&&_0xe69a73&&_0xf789ce){let _0x5cc082=_0x5cc8a7({'unitId':_0xe69a73,'subUnitId':_0xf789ce,'drawingId':_0x4c30eb});_0x4aab67[_0x3be57a(0x388)]=(_0x14c5ab[_0x3be57a(0x251)](_0x5cc082)['angle']||0x0)+_0x4aab67[_0x3be57a(0x388)];}}this['_currentConnectionTarget']=_0x4aab67;let _0x420570=_0x571b90?this[_0x3be57a(0x376)][_0x3be57a(0x283)]():this[_0x3be57a(0x376)]['getStartConnectInfo']();if(_0x420570){this[_0x3be57a(0x2d1)](_0x420570,_0x3fcea8,_0x571b90,_0x3abbbf,_0x56b0af);return;}this[_0x3be57a(0x1a9)](_0x3fcea8,_0x310e83,_0x571b90,_0x3abbbf,_0x56b0af);}),this[_0x378849(0x372)]=_0x14c5ab[_0x378849(0x36d)][_0x378849(0x318)]((_0x57f57a,_0x1eede6)=>{const _0x36630a=_0x378849;this[_0x36630a(0x3d4)](_0x14c5ab,_0x310e83,_0x57f57a,_0x571b90,_0x50a740);}),_0x6555ac[_0x378849(0x34a)]();})));}[_0x244912(0x306)](_0xb99396,_0x34e237,_0x2fc17a){const _0x8b8113=_0x244912;let _0x330ef8=this[_0x8b8113(0x288)][_0x8b8113(0x1f4)](_0xb99396,_0x34e237,_0x2fc17a);if(!_0x330ef8||_0x330ef8[_0x8b8113(0x1ae)]===0x0)return;let _0x24ea1a=this[_0x8b8113(0x2f0)][_0x8b8113(0x276)](_0xb99396);if(!_0x24ea1a)return;let {scene:_0x33651f}=_0x24ea1a;for(let _0x34b66e of _0x330ef8){let _0x2ef41b=_0x34b66e[_0x8b8113(0x365)],_0x4c3779=this['_sheetsShapeService'][_0x8b8113(0x35b)](_0xb99396,_0x34e237,_0x2ef41b);if(!_0x4c3779)continue;let _0x52fa09=_0x4c3779[_0x8b8113(0x26b)](),_0x58d708=_0x4c3779[_0x8b8113(0x283)](),_0xeeccc5=(_0x52fa09==null?void 0x0:_0x52fa09[_0x8b8113(0x19c)])===_0x2fc17a,_0x226743=_0x5cc8a7({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b}),_0x1389bb=_0x33651f['getObjectIncludeInGroup'](_0x226743);if(!_0x1389bb)continue;let _0x58202f=this[_0x8b8113(0x239)][_0x8b8113(0x3a5)]({'unitId':_0xb99396,'subUnitId':_0x34e237,'drawingId':_0x2ef41b});_0x58202f!=null&&_0x58202f[_0x8b8113(0x1b7)]&&(_0x52fa09&&_0x58d708?this[_0x8b8113(0x2ac)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0x52fa09,_0x58d708,_0x1389bb):this[_0x8b8113(0x1a8)](_0xb99396,_0x34e237,_0x2ef41b,_0x4c3779,_0xeeccc5?_0x52fa09:_0x58d708,_0xeeccc5,_0x58202f,_0x1389bb));}}['_rerouteConnectorLine'](_0x1bade5,_0x35b98c,_0x4229cf,_0x26bfa1,_0x263bdc,_0x2bf191,_0x4f26a3){const _0xea0df=_0x244912;let _0x23aebd=this[_0xea0df(0x20a)],_0x6587a8=this[_0xea0df(0x1e9)];this['_unitId']=_0x1bade5,this[_0xea0df(0x1e9)]=_0x35b98c;let _0x43c4a1=this[_0xea0df(0x303)](_0x263bdc),_0x5a9fb8=this['_getConnectPointInfo'](_0x2bf191);if(this[_0xea0df(0x20a)]=_0x23aebd,this[_0xea0df(0x1e9)]=_0x6587a8,!_0x43c4a1||!_0x5a9fb8)return;let _0x14f2f2=_0x26bfa1[_0xea0df(0x382)](),_0x4712d4=_0x349ecd(_0x43c4a1,_0x5a9fb8,_0x14f2f2);_0x4712d4&&_0x26bfa1['updateLinePoints'](_0x4712d4);let _0x1bd6c1=_0x42d9b4(_0x4712d4,_0x14f2f2);_0x1bd6c1[_0xea0df(0x2d7)]!==_0x14f2f2&&_0x26bfa1['changeShapeType'](_0x1bd6c1[_0xea0df(0x2d7)]),_0x26bfa1['clearAdjustValue']();for(let [_0x4479d1,_0x149351]of Object[_0xea0df(0x324)](_0x1bd6c1[_0xea0df(0x380)]))_0x26bfa1[_0xea0df(0x3b3)](_0x4479d1,_0x149351);_0x26bfa1[_0xea0df(0x340)]({'width':_0x1bd6c1['worldRect'][_0xea0df(0x326)],'height':_0x1bd6c1['worldRect']['height']}),_0x4f26a3[_0xea0df(0x1d8)]({'flipX':_0x1bd6c1[_0xea0df(0x278)]['flipX'],'flipY':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x3b2)],'left':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1fe)],'top':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x172)],'width':_0x1bd6c1[_0xea0df(0x278)]['width'],'height':_0x1bd6c1[_0xea0df(0x278)][_0xea0df(0x1ba)],'angle':_0x1bd6c1[_0xea0df(0x28c)]}),_0x26bfa1['removeLinePoints']();}[_0x244912(0x1a8)](_0x31cc2a,_0x347855,_0x132014,_0x5640db,_0x40b972,_0x18e330,_0x25cdaf,_0x2c42fb){const _0x5b2288=_0x244912;let _0x3808af=this[_0x5b2288(0x20a)],_0x4e7058=this[_0x5b2288(0x1e9)];this['_unitId']=_0x31cc2a,this[_0x5b2288(0x1e9)]=_0x347855;let _0xbe0b8f=this['_getConnectPointInfo'](_0x40b972);if(this[_0x5b2288(0x20a)]=_0x3808af,this['_subUnitId']=_0x4e7058,!_0xbe0b8f)return;let {left:_0x22e5d5=0x0,top:_0x373759=0x0,width:_0x1e7a13=0x0,height:_0x28be11=0x0,flipX:_0x430599=!0x1,flipY:_0x5af273=!0x1}=_0x25cdaf[_0x5b2288(0x1b7)],_0x321d8a=_0x5640db['getConnectorLinePoints']();if(_0x321d8a[_0x5b2288(0x1ae)]<0x2)return;let _0x18639b=new _0x3a7d90({'left':_0x22e5d5,'top':_0x373759,'width':_0x1e7a13,'height':_0x28be11,'flipX':_0x430599,'flipY':_0x5af273}),_0x5be4aa=_0x18e330?_0x321d8a[_0x321d8a[_0x5b2288(0x1ae)]-0x1]:_0x321d8a[0x0],_0x15879a=_0x18639b[_0x5b2288(0x2aa)](_0x5be4aa),_0x5cec49=_0x3a7d90[_0x5b2288(0x16c)](_0x15879a,_0xbe0b8f[_0x5b2288(0x2b9)],!_0x18e330);_0x2c42fb[_0x5b2288(0x1d8)]({'flipX':_0x5cec49['worldRect'][_0x5b2288(0x166)],'flipY':_0x5cec49['worldRect']['flipY'],'left':_0x5cec49[_0x5b2288(0x278)]['left'],'top':_0x5cec49['worldRect']['top'],'width':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x326)],'height':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x1ba)],'angle':_0x5cec49[_0x5b2288(0x278)][_0x5b2288(0x388)]}),_0x2c42fb[_0x5b2288(0x23a)](!0x0);}[_0x244912(0x2db)](){const _0x1b3b7d=_0x244912;this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x1ae)]!==0x0&&(this[_0x1b3b7d(0x1d6)][_0x1b3b7d(0x2b3)](_0x3738c8=>{const _0x1f6f2b=_0x1b3b7d;_0x3738c8[_0x1f6f2b(0x346)]();}),this[_0x1b3b7d(0x1d6)]=[]);}[_0x244912(0x3e6)](){const _0x28598a=_0x244912;let _0x556671=this[_0x28598a(0x321)][_0x28598a(0x25d)](_0x37e7a9[_0x28598a(0x2c9)]);this[_0x28598a(0x14a)](_0x556671[_0x28598a(0x18a)](_0x4ab26c(_0x313151=>_0x313151?_0x313151[_0x28598a(0x3cd)][_0x28598a(0x18a)](_0x4ab26c(_0x436ea1=>{const _0x997b12=_0x28598a;if(!_0x436ea1)return _0x351d29;let _0x4ed300=_0x313151[_0x997b12(0x186)](),_0x10b19f=this[_0x997b12(0x2f0)][_0x997b12(0x276)](_0x4ed300),_0x3624bc=_0x10b19f==null?void 0x0:_0x10b19f[_0x997b12(0x229)];return _0x3624bc?_0x1e0e82(_0x3624bc):_0x351d29;})):_0x351d29))[_0x28598a(0x305)](_0x44337d=>{const _0x482a2f=_0x28598a;let _0x4daf0d=_0x44337d[_0x482a2f(0x3ed)]();this[_0x482a2f(0x14a)](_0x44337d[_0x482a2f(0x1c6)][_0x482a2f(0x318)](_0x2f9a02=>{const _0x4da4ba=_0x482a2f;this[_0x4da4ba(0x15e)]&&this[_0x4da4ba(0x195)]&&this[_0x4da4ba(0x2db)]();})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x24c)]['subscribe'](_0x11c96=>{const _0x36f6d7=_0x482a2f;let {objects:_0x18340f}=_0x11c96;this['_clearShapeConnectorHandlerObjects'](),_0x18340f!==null&&_0x18340f[_0x36f6d7(0x17a)]===0x1&&_0x18340f[_0x36f6d7(0x196)]()[_0x36f6d7(0x3ac)]()[_0x36f6d7(0x3de)]instanceof Er&&(this[_0x36f6d7(0x15e)]=!0x0);})),this[_0x482a2f(0x14a)](_0x4daf0d[_0x482a2f(0x226)]['subscribe'](_0x2915d8=>{this['_isDrawingShapePointDown']&&this['_clearShapeConnectorHandlerObjects']();})),this['disposeWithMe'](_0x44337d['onPointerUp$']['subscribeEvent'](()=>{const _0x50c7be=_0x482a2f;this[_0x50c7be(0x15e)]&&(this['_isDrawingShapePointDown']=!0x1,this[_0x50c7be(0x386)]());})),this['disposeWithMe'](_0x4daf0d[_0x482a2f(0x27f)][_0x482a2f(0x305)](()=>{const _0x6008a7=_0x482a2f;this[_0x6008a7(0x20a)]&&this[_0x6008a7(0x1e9)]&&this[_0x6008a7(0x195)]&&this[_0x6008a7(0x239)][_0x6008a7(0x3a5)]({'unitId':this['_unitId'],'subUnitId':this[_0x6008a7(0x1e9)],'drawingId':this[_0x6008a7(0x195)]})&&(this[_0x6008a7(0x2db)](),this[_0x6008a7(0x386)]());}));}));}['_registerDrawingFocusChangeHandler'](){const _0x14f44e=_0x244912;this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)]['focus$']['subscribe'](_0x47e9fb=>{const _0x3d28e6=_0x14f44e;if(_0x47e9fb[_0x3d28e6(0x1ae)]===0x1){let _0xd412fd=_0x47e9fb[0x0];if(_0xd412fd[_0x3d28e6(0x185)]===_0x54d53a['DRAWING_SHAPE']){let _0x5c1f01=this[_0x3d28e6(0x288)]['getShapeModel'](_0xd412fd['unitId'],_0xd412fd[_0x3d28e6(0x1c5)],_0xd412fd[_0x3d28e6(0x237)]);if(_0x5c1f01&&_0x3c2fe3(_0x5c1f01[_0x3d28e6(0x382)]())){this[_0x3d28e6(0x195)]=_0xd412fd[_0x3d28e6(0x237)],this[_0x3d28e6(0x20a)]=_0xd412fd[_0x3d28e6(0x21f)],this[_0x3d28e6(0x1e9)]=_0xd412fd['subUnitId'],this[_0x3d28e6(0x2db)](),this[_0x3d28e6(0x386)]();return;}}}this[_0x3d28e6(0x195)]=void 0x0,this[_0x3d28e6(0x20a)]=void 0x0,this[_0x3d28e6(0x1e9)]=void 0x0,this[_0x3d28e6(0x2db)]();})),this['disposeWithMe'](this[_0x14f44e(0x239)][_0x14f44e(0x1cd)][_0x14f44e(0x305)](_0x4cf11e=>{const _0x567509=_0x14f44e;if(_0x4cf11e[_0x567509(0x1ae)]===0x1){var _0x52c8fe;let _0x27fc11=_0x4cf11e[0x0],_0x3645e9=(_0x52c8fe=this[_0x567509(0x239)][_0x567509(0x3a5)](_0x27fc11))==null?void 0x0:_0x52c8fe['drawingType'];_0x3645e9===_0x54d53a['DRAWING_SHAPE']&&_0x27fc11[_0x567509(0x237)]===this[_0x567509(0x195)]?(this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']()):!this[_0x567509(0x195)]&&_0x3645e9===_0x54d53a[_0x567509(0x1b1)]&&this[_0x567509(0x306)](_0x27fc11['unitId'],_0x27fc11[_0x567509(0x1c5)],_0x27fc11[_0x567509(0x237)]);}})),this[_0x14f44e(0x14a)](this[_0x14f44e(0x239)][_0x14f44e(0x16d)][_0x14f44e(0x305)](_0x4379b5=>{const _0x23356f=_0x14f44e;for(let _0x40945b of _0x4379b5){let {drawingId:_0x1955c2}=_0x40945b;if(this[_0x23356f(0x195)]===_0x1955c2){this['_reset']();return;}}}));}[_0x244912(0x2d1)](_0x4057f2,_0x2595c4,_0x4cddaf,_0x347a78,_0x1fcc15){const _0x8df13a=_0x244912;var _0x365ea0;if(!this[_0x8df13a(0x376)])return;let _0x29a7c2=this[_0x8df13a(0x303)](_0x4057f2);if(!_0x29a7c2)return;let _0x1f63b9=this['_currentConnectionTarget']?this['_currentConnectionTarget'][_0x8df13a(0x148)]:_0x2595c4,_0x110a41=this['_currentConnectionTarget']?this[_0x8df13a(0x2ae)][_0x8df13a(0x388)]:this[_0x8df13a(0x20b)](_0x29a7c2[_0x8df13a(0x2b9)],_0x1f63b9),_0xa45365;if(this[_0x8df13a(0x2ae)]){let _0x3a319a=this[_0x8df13a(0x239)]['getDrawingByParam']({'unitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x21f)],'subUnitId':this[_0x8df13a(0x2ae)][_0x8df13a(0x1c5)],'drawingId':this[_0x8df13a(0x2ae)][_0x8df13a(0x19c)]});if(_0x3a319a!=null&&_0x3a319a[_0x8df13a(0x1b7)]){let {left:_0x53b044=0x0,top:_0x242812=0x0,width:_0x2251ab=0x0,height:_0x37f990=0x0,angle:_0x2b0095}=_0x3a319a[_0x8df13a(0x1b7)];_0xa45365=_0x3e1f4f({'left':_0x53b044,'top':_0x242812,'width':_0x2251ab,'height':_0x37f990},_0x2b0095||0x0);}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};}else _0xa45365={'left':_0x1f63b9['x'],'top':_0x1f63b9['y'],'width':0x0,'height':0x0};let _0x5ca500={'point':_0x1f63b9,'angle':_0x110a41,'bounds':_0xa45365},_0x419e6a=_0x4cddaf?_0x5ca500:_0x29a7c2,_0x44b966=_0x4cddaf?_0x29a7c2:_0x5ca500,_0x27cc7f=this['_activeShapeModel']['getShapeType'](),_0x1ef5d5=_0x349ecd(_0x419e6a,_0x44b966,_0x27cc7f);_0x1ef5d5&&this['_activeShapeModel'][_0x8df13a(0x358)](_0x1ef5d5);let _0xd9dedb=_0x42d9b4(_0x1ef5d5,_0x27cc7f);_0xd9dedb[_0x8df13a(0x2d7)]!==_0x27cc7f&&this[_0x8df13a(0x376)]['changeShapeType'](_0xd9dedb[_0x8df13a(0x2d7)]);for(let [_0x765c31,_0x58c8b2]of Object[_0x8df13a(0x324)](_0xd9dedb[_0x8df13a(0x380)]))this[_0x8df13a(0x376)][_0x8df13a(0x3b3)](_0x765c31,_0x58c8b2);this['_activeShapeModel']['updateContext']({'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb['worldRect'][_0x8df13a(0x1ba)]}),_0x347a78[_0x8df13a(0x1d8)]({'flipX':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x166)],'flipY':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x3b2)],'left':_0xd9dedb[_0x8df13a(0x278)]['left'],'top':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x172)],'width':_0xd9dedb[_0x8df13a(0x278)]['width'],'height':_0xd9dedb[_0x8df13a(0x278)][_0x8df13a(0x1ba)],'angle':_0xd9dedb[_0x8df13a(0x28c)]}),_0x347a78[_0x8df13a(0x23a)](!0x0);let _0x515be5=((_0x365ea0=this[_0x8df13a(0x2ae)])==null?void 0x0:_0x365ea0[_0x8df13a(0x148)])??_0x2595c4;_0x1fcc15[_0x8df13a(0x1d8)]({'left':_0x515be5['x']-_0x59f579[_0x8df13a(0x15b)],'top':_0x515be5['y']-_0x59f579[_0x8df13a(0x15b)]});}[_0x244912(0x1a9)](_0x3c4b21,_0x3b2d24,_0x4d5438,_0x5d85c1,_0x425101){const _0x58de26=_0x244912;var _0x4340c8,_0xbbc684;let _0x555abd=((_0x4340c8=this['_currentConnectionTarget'])==null?void 0x0:_0x4340c8['worldPoint'])??_0x3c4b21,_0x2ab77c=_0x3a7d90['computeConnectorResizeLayout'](_0x3b2d24,_0x555abd,_0x4d5438);_0x5d85c1[_0x58de26(0x1d8)]({'flipX':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x166)],'flipY':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x3b2)],'left':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x1fe)],'top':_0x2ab77c['worldRect'][_0x58de26(0x172)],'width':_0x2ab77c[_0x58de26(0x278)]['width'],'height':_0x2ab77c[_0x58de26(0x278)]['height'],'angle':_0x2ab77c[_0x58de26(0x278)][_0x58de26(0x388)]});let _0x1fda6a=((_0xbbc684=this[_0x58de26(0x2ae)])==null?void 0x0:_0xbbc684['worldPoint'])??_0x3c4b21;_0x425101['transformByState']({'left':_0x1fda6a['x']-_0x59f579[_0x58de26(0x15b)],'top':_0x1fda6a['y']-_0x59f579[_0x58de26(0x15b)]});}[_0x244912(0x303)](_0x519fab){const _0x1f1833=_0x244912;if(!this['_unitId']||!this[_0x1f1833(0x1e9)])return null;let {shapeId:_0x18c2cc,cxnIndex:_0x4d44b9}=_0x519fab,_0x2e7cd4=this[_0x1f1833(0x288)][_0x1f1833(0x35b)](this['_unitId'],this[_0x1f1833(0x1e9)],_0x18c2cc);if(!_0x2e7cd4)return null;let _0x31bca5=this['_drawingManagerService'][_0x1f1833(0x3a5)]({'unitId':this[_0x1f1833(0x20a)],'subUnitId':this[_0x1f1833(0x1e9)],'drawingId':_0x18c2cc});if(!(_0x31bca5!=null&&_0x31bca5[_0x1f1833(0x1b7)]))return null;let {left:_0x11f8a4=0x0,top:_0x18137b=0x0,width:_0x29f170=0x0,height:_0x220728=0x0,flipX:_0x38090e=!0x1,flipY:_0x641fa6=!0x1,angle:_0xebb8}=_0x31bca5[_0x1f1833(0x1b7)];_0x2e7cd4['updateContext']({'width':_0x29f170,'height':_0x220728});let _0x2c8074=_0x2e7cd4[_0x1f1833(0x23d)]()[_0x1f1833(0x2f4)](_0x25ed5d=>_0x25ed5d[_0x1f1833(0x2de)]===_0x4d44b9);if(!_0x2c8074)return null;let _0x4850bf=_0x38090e?_0x29f170-_0x2c8074['x']:_0x2c8074['x'],_0x1815ba=_0x641fa6?_0x220728-_0x2c8074['y']:_0x2c8074['y'];if(_0xebb8!==0x0&&_0xebb8!=null){let _0x3bd796=_0xebb8*Math['PI']/0xb4,_0x15fa1c=Math['cos'](_0x3bd796),_0x170d11=Math[_0x1f1833(0x2e1)](_0x3bd796),_0x161233=_0x29f170/0x2,_0xf23d2b=_0x220728/0x2,_0x1cebcc=_0x4850bf-_0x161233,_0x14051e=_0x1815ba-_0xf23d2b;_0x4850bf=_0x161233+_0x1cebcc*_0x15fa1c-_0x14051e*_0x170d11,_0x1815ba=_0xf23d2b+_0x1cebcc*_0x170d11+_0x14051e*_0x15fa1c;}_0x4850bf+=_0x11f8a4,_0x1815ba+=_0x18137b;let _0x50fb5e=_0x2c8074[_0x1f1833(0x235)]/0xea60;_0x38090e&&(_0x50fb5e=0xb4-_0x50fb5e),_0x641fa6&&(_0x50fb5e=-_0x50fb5e),_0x50fb5e+=_0xebb8||0x0,_0x50fb5e=(_0x50fb5e%0x168+0x168)%0x168;let _0x139b36=_0x3e1f4f({'left':_0x11f8a4,'top':_0x18137b,'width':_0x29f170,'height':_0x220728},_0xebb8||0x0);return{'point':{'x':_0x4850bf,'y':_0x1815ba},'angle':_0x50fb5e,'bounds':_0x139b36};}[_0x244912(0x20b)](_0x5a764,_0x4eb2d2){const _0x543f4f=_0x244912;let _0x87c34f=_0x4eb2d2['x']-_0x5a764['x'],_0x44a5cf=_0x4eb2d2['y']-_0x5a764['y'];return Math[_0x543f4f(0x1a1)](_0x87c34f)>=Math['abs'](_0x44a5cf)?_0x87c34f>=0x0?0xb4:0x0:_0x44a5cf>=0x0?0x10e:0x5a;}[_0x244912(0x3f4)](){const _0x484aec=_0x244912;this[_0x484aec(0x195)]=void 0x0,this[_0x484aec(0x20a)]=void 0x0,this[_0x484aec(0x1e9)]=void 0x0,this[_0x484aec(0x2db)]();}['dispose'](){const _0x52d7e9=_0x244912;this[_0x52d7e9(0x2db)](),super[_0x52d7e9(0x346)]();}};sa=Y([J(0x1,_0x4aa13b),J(0x2,_0xc8f10c),J(0x3,_0x1f50fa),J(0x4,_0x595744),J(0x5,_0x318433(_0x5594a6)),J(0x6,_0x318433(Z)),J(0x7,_0x318433(ia))],sa);let ca=class extends _0x2c7179{constructor(_0x264616,_0xe614ed,_0x434498){const _0x485da9=_0x244912;super(),this[_0x485da9(0x29c)]=_0x264616,this['_drawingManagerService']=_0xe614ed,this[_0x485da9(0x3fe)]=_0x434498,this[_0x485da9(0x2e7)]();}[_0x244912(0x2e7)](){const _0x8a3ac=_0x244912;this[_0x8a3ac(0x14a)](this[_0x8a3ac(0x29c)][_0x8a3ac(0x264)][_0x8a3ac(0x1a6)](this['_sheetPrintInterceptorService'][_0x8a3ac(0x264)][_0x8a3ac(0x154)]()[_0x8a3ac(0x36f)],{'handler':(_0x3f0bb6,_0x3310b6,_0x479dfb)=>{const _0x5d985e=_0x8a3ac;var _0x1bb72a;let {unitId:_0x46fd0f,subUnitId:_0x344333,scene:_0x43efb9,resourceCollector:_0x678588}=_0x3310b6,_0x36b390=(_0x1bb72a=this[_0x5d985e(0x239)][_0x5d985e(0x3d7)](_0x46fd0f))==null?void 0x0:_0x1bb72a[_0x344333];return _0x36b390==null||_0x36b390[_0x5d985e(0x1d7)][_0x5d985e(0x2b3)](_0x427910=>{const _0x1f2982=_0x5d985e;let _0x3a02f3=_0x36b390['data'][_0x427910];_0x3a02f3[_0x1f2982(0x185)]===_0x54d53a[_0x1f2982(0x1b1)]&&!_0x3a02f3[_0x1f2982(0x24d)]&&this[_0x1f2982(0x3fe)][_0x1f2982(0x1da)](_0x3a02f3,_0x43efb9,{'resourceCollector':_0x678588});}),_0x479dfb(_0x3f0bb6);}}));}};ca=Y([J(0x0,_0x318433(_0x14d662)),J(0x1,_0x1f50fa),J(0x2,_0x318433(X))],ca);let la=class extends _0x2c7179{constructor(_0x5ab216,_0xcd4997,_0x352fca){const _0x727128=_0x244912;super(),this['_commandService']=_0x5ab216,this['_localeService']=_0xcd4997,this[_0x727128(0x17f)]=_0x352fca,this[_0x727128(0x250)]();}[_0x244912(0x250)](){const _0x458775=_0x244912;this[_0x458775(0x14a)](this['_commandService']['beforeCommandExecuted'](_0x416654=>{const _0x15bb5d=_0x458775;let _0x1042dc,_0x544bd2;if(_0x416654['id']===_0x13dbe5['id']||_0x416654['id']===_0x168968['id']||_0x416654['id']===_0xb35938['id']){let _0xe2164a=_0x416654[_0x15bb5d(0x348)];_0x1042dc=_0xe2164a[_0x15bb5d(0x21f)],_0x544bd2=_0xe2164a[_0x15bb5d(0x1c5)];}_0x1042dc&&_0x544bd2&&(this[_0x15bb5d(0x17f)][_0x15bb5d(0x2f5)]({'workbookTypes':[_0x59c9a1],'worksheetTypes':[_0x5ec863]},_0x1042dc,_0x544bd2)||this[_0x15bb5d(0x17f)][_0x15bb5d(0x202)](this[_0x15bb5d(0x3b8)]['t'](_0x15bb5d(0x2b5))));}));}};la=Y([J(0x0,_0x318433(_0x4aa13b)),J(0x1,_0x318433(_0x3f1353)),J(0x2,_0x318433(_0x24fc12))],la);let ua=class{constructor(_0x41b228){const _0x32ff6f=_0x244912;this[_0x32ff6f(0x2f0)]=_0x41b228;}[_0x244912(0x2f2)](_0x5a43f6,_0x1d87ca){const _0x373a21=_0x244912;let _0x22ca9e=this[_0x373a21(0x2f0)][_0x373a21(0x276)](_0x5a43f6[_0x373a21(0x21f)]),_0x505410=_0x22ca9e==null?void 0x0:_0x22ca9e[_0x373a21(0x229)];if(!_0x505410)return;let _0x2612b3=_0x5cc8a7(_0x5a43f6),_0x1665e3=_0x505410[_0x373a21(0x251)](_0x2612b3);_0x1665e3==null||_0x1665e3['setFillImage'](_0x1d87ca);}};ua=Y([J(0x0,_0xc8f10c)],ua);let da=class extends _0x3c4eb2{constructor(_0x2935c8=Hi,_0x242458,_0x288ecf,_0x598955,_0x26c19f){const _0x9c1e40=_0x244912;super(),this[_0x9c1e40(0x3f8)]=_0x2935c8,this[_0x9c1e40(0x391)]=_0x242458,this[_0x9c1e40(0x2d0)]=_0x288ecf,this[_0x9c1e40(0x2eb)]=_0x598955,this['_renderManagerService']=_0x26c19f;let {..._0x53a542}=_0x845994({},Hi,this[_0x9c1e40(0x3f8)]);this['_configService']['setConfig'](Vi,_0x53a542),this['_initCommands']();}[_0x244912(0x2ad)](){const _0x3288bb=_0x244912;this['_injector'][_0x3288bb(0x1a3)]([Ji]),this[_0x3288bb(0x391)][_0x3288bb(0x1e0)](Ji),_0x1446da(this[_0x3288bb(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}[_0x244912(0x335)](){const _0xd76dc4=_0x244912;_0x1446da(this[_0xd76dc4(0x391)],[[ia],[Z],[aa]]),_0x45a757(this['_injector'],[[aa],[Z]]),[[ia],[Ui],[sa],[Xi]][_0xd76dc4(0x2b3)](_0x43ba98=>{const _0x4eb270=_0xd76dc4;this[_0x4eb270(0x14a)](this[_0x4eb270(0x2f0)][_0x4eb270(0x240)](_0x37e7a9[_0x4eb270(0x2c9)],_0x43ba98));});}['onRendered'](){const _0x650072=_0x244912;_0x45a757(this[_0x650072(0x391)],[[Qi],[ta],[X],[ca],[ua],[$],[ea],[Q],[la]]);}['onSteady'](){const _0x1be495=_0x244912;this[_0x1be495(0x391)][_0x1be495(0x1e0)](Qi)['initShapePopupMenu']();}[_0x244912(0x2fe)](){const _0x297f62=_0x244912;[kr,K,Or,Bi][_0x297f62(0x2b3)](_0x221f8c=>this[_0x297f62(0x14a)](this[_0x297f62(0x2d0)][_0x297f62(0x293)](_0x221f8c)));}};q(da,_0x244912(0x1a2),_0x37e7a9[_0x244912(0x2c9)]),q(da,_0x244912(0x1f9),'SHEET_SHAPE_UI_PLUGIN'),q(da,_0x244912(0x3ff),Ri),q(da,_0x244912(0x345),zi),da=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x4a669e,_0x41a1bc,_0x49620b,_0x1803a2,_0xe117d2),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],da);const fa={'type':_0x1644dd[_0x244912(0x1bf)],'id':_0x244912(0x325),'handler'(){return!0x0;}};function pa(){const _0x197d59=_0x244912;let _0x92a0c4=_0x2c7ca5(_0x1f50fa),_0x321715=_0x297a75(()=>_0x92a0c4[_0x197d59(0x2fc)],_0x92a0c4[_0x197d59(0x2a0)](),!0x1,[_0x92a0c4]);return _0x321715['length']===0x0?null:_0xcdc9dc(_0x197d59(0x396),{'children':_0x4537d2(_0x197d59(0x396),{'className':_0x197d59(0x23b),'children':[_0xcdc9dc(_0x3bb4b3,{'drawings':_0x321715,'hasCropper':!0x1}),_0xcdc9dc(_0x28ac02,{'drawings':_0x321715})]})});}function ma(_0xc0b6b9){let {unitId:_0x1c7d1f,subUnitId:_0x5ed9a4,shapeId:_0x3e745a}=_0xc0b6b9,_0xede998=_0x2c7ca5(_0x4aa13b),_0x2e6d8e=_0x2c7ca5(ua);return _0xcdc9dc(_0x17d686,{..._0xc0b6b9,'positionEditor':_0xcdc9dc(pa,{}),'onUpdateShapeData':(_0x8704c0,_0x6d877f)=>{br(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x8704c0,_0x6d877f);},'onUpdateLineShapeData':(_0x200b1a,_0x395ad2)=>{xr(_0xede998,_0x1c7d1f,_0x5ed9a4,_0x3e745a,_0x200b1a,_0x395ad2);},'onUpdateShapeFillImage':_0x84426e=>{const _0x1d91d0=_0x4e9b;_0x2e6d8e[_0x1d91d0(0x2f2)]({'unitId':_0x1c7d1f,'subUnitId':_0x5ed9a4,'drawingId':_0x3e745a},_0x84426e);}});}function ha(_0x5ec4db){const _0x41d7ff=_0x244912;let _0x19bdf5=_0x2c7ca5(_0x11b9ca),_0x5add63=_0x297a75(()=>_0x19bdf5[_0x41d7ff(0x304)],_0x19bdf5[_0x41d7ff(0x176)](),!0x1,[_0x19bdf5]),_0x112c3e=_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x1d9)];return!_0x112c3e||!_0x5add63?null:_0xcdc9dc(ga,{..._0x112c3e,'canvasElement':_0x5ec4db[_0x41d7ff(0x3a9)][_0x41d7ff(0x37d)]});}function ga(_0x2119bc){const _0x3bf8e4=_0x244912;let _0xfe33b7=_0x2c7ca5(_0x4aa13b),_0x3e5518=_0x2c7ca5(_0x5594a6),{unitId:_0x4edefc,subUnitId:_0x2e18ba,drawingId:_0x1ce0f2,drawingType:_0x49d64d,shapeType:_0x1c9fa5}=_0x2119bc,[_0x100981,_0x4a19a9]=_0x1ccdce(_0x2119bc[_0x3bf8e4(0x17d)]),_0x27ef82=_0x3352e0(()=>_0x3c50f1(_0x100981),[_0x100981]),_0x2ad698=_0x3352e0(()=>_0x19f250(_0x100981),[_0x100981]);_0x1ff107(()=>{const _0x32d949=_0x3bf8e4;let _0x5856e3=_0xfe33b7['onCommandExecuted'](_0x5c8744=>{const _0x48b8a7=_0x4e9b;if(_0x5c8744['id']!==_0x4fa39c['id'])return;let _0x334eb5=_0x3e5518[_0x48b8a7(0x1fa)](_0x4edefc,_0x2e18ba,_0x1ce0f2);_0x334eb5&&_0x4a19a9(_0x334eb5);});return()=>_0x5856e3[_0x32d949(0x346)]();},[_0xfe33b7,_0x1ce0f2,_0x3e5518,_0x2e18ba,_0x4edefc]);let _0x3387f1=_0x443b32=>{_0x4a19a9(_0x3c28f9=>({..._0x3c28f9,..._0x443b32}));},_0x34f2bf=_0xdb3df2=>{const _0x26edd4=_0x3bf8e4;let _0x52c4bb=_0x410366(_0x100981,_0xdb3df2);br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'shapeText':_0x100981[_0x26edd4(0x2ec)]}},_0x52c4bb),_0x3387f1(_0x52c4bb);},_0x4cd718=_0xaa2e40({'hostType':_0x37e7a9[_0x3bf8e4(0x2c9)],'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'shapeId':_0x1ce0f2,'shapeData':_0x100981,'onUpdateBinding':_0x584573=>{let _0x43b325={'formulaBinding':_0x584573};br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,{'oldShapeData':{'formulaBinding':_0x100981['formulaBinding']}},_0x43b325),_0x3387f1(_0x43b325);}});return _0x4537d2(_0x4ca382,{'children':[_0xcdc9dc(_0x1a3d2a,{'canvasElement':_0x2119bc[_0x3bf8e4(0x37d)],'shapeData':_0x100981,'shapeType':_0x1c9fa5,'textStyle':{'ff':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x3f5)],'fs':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x16a)],'cl':{'rgb':_0x59f579[_0x3bf8e4(0x2ec)][_0x3bf8e4(0x364)]},..._0x27ef82},'textModel':_0x2ad698?{'ha':_0x2ad698['ha']??_0x324c7e['LEFT'],'va':_0x2ad698['va']??_0x42b23f[_0x3bf8e4(0x363)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x59f579[_0x3bf8e4(0x38f)],'defaultGradientEndColor':_0x59f579[_0x3bf8e4(0x3b5)],'defaultStrokeColor':_0x59f579[_0x3bf8e4(0x3cb)],'extensionGroups':_0x4cd718[_0x3bf8e4(0x36c)],'floatingObjectToolbarPosition':_0x404cbd['SHEET'],'onUpdateShapeData':(_0x3b22bb,_0x3ae36a)=>{br(_0xfe33b7,_0x4edefc,_0x2e18ba,_0x1ce0f2,_0x3b22bb,_0x3ae36a),_0x3ae36a&&_0x3387f1(_0x3ae36a);},'onUpdateText':_0x34f2bf,'onOpenPanel':()=>{const _0x22b0c7=_0x3bf8e4;_0xfe33b7[_0x22b0c7(0x1ac)](Lr['id'],{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2});},'onDelete':()=>{const _0x4209a8=_0x3bf8e4;_0xfe33b7[_0x4209a8(0x1ac)](_0x4d296c['id'],{'unitId':_0x4edefc,'drawings':[{'unitId':_0x4edefc,'subUnitId':_0x2e18ba,'drawingId':_0x1ce0f2,'drawingType':_0x49d64d}]});}}),_0x4cd718[_0x3bf8e4(0x1fb)]]});}function _a(_0x13a020){const _0x4a8279=_0x244912;return!!_0x13a020&&_0x4a8279(0x2ab)in _0x13a020&&_0x4a8279(0x3a3)in _0x13a020;}const va=_0x2a23cd(()=>{const _0x20896a=_0x244912;let _0xbcefdf=_0x2c7ca5($),_0x5aec0b=_0x2c7ca5(_0x5594a6),_0x45508d=_0x2c7ca5(_0x1f50fa),_0x27ed79=_0x2c7ca5(_0x4aa13b),_0x164f7f=_0x2c7ca5(_0x466c9e),_0x4e767e=_0x2c7ca5(_0xc8f10c),_0x328c73=_0x3352e0(()=>({'getShapeModel':(_0x5a7d28,_0x496597,_0x3e4b95)=>_0x5aec0b[_0x20896a(0x35b)](_0x5a7d28,_0x496597,_0x3e4b95),'getShapeData':(_0x49858b,_0x59861a,_0x5c4916)=>_0x5aec0b[_0x20896a(0x1fa)](_0x49858b,_0x59861a,_0x5c4916),'getDrawingTransform':(_0x152159,_0x232e52,_0x4e3a83)=>{const _0x23425f=_0x20896a;let _0x111eab=_0x45508d['getDrawingByParam']({'unitId':_0x152159,'subUnitId':_0x232e52,'drawingId':_0x4e3a83});return _0x111eab==null?void 0x0:_0x111eab[_0x23425f(0x1b7)];},'updateShapeText':({unitId:_0xb35182,subUnitId:_0x4577a0,shapeId:_0x241244,shapeText:_0x1a0a73,oldShapeText:_0x495929,hostSize:_0x3955e0})=>{const _0xa80806=_0x20896a;_0x164f7f[_0xa80806(0x1c0)](_0xb35182,()=>{const _0x5f3f9d=_0xa80806;var _0x3c102a;let _0x441558=_0x27ed79[_0x5f3f9d(0x27c)](K['id'],{'unitId':_0xb35182,'subUnitId':_0x4577a0,'shapeId':_0x241244,'shapeData':{'shapeText':_0x1a0a73},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x495929}}});if(!_0x441558||!_0x3955e0)return _0x441558;let _0x405d41=_0x45508d['getDrawingByParam']({'unitId':_0xb35182,'subUnitId':_0x4577a0,'drawingId':_0x241244}),_0x53ebd8=_0x405d41==null?void 0x0:_0x405d41[_0x5f3f9d(0x1b7)];if(!_a(_0x405d41)||!_0x53ebd8)return!0x1;let _0x55cbad={..._0x53ebd8,'width':_0x3955e0[_0x5f3f9d(0x326)],'height':_0x3955e0[_0x5f3f9d(0x1ba)]},_0x5fdad=(_0x3c102a=_0x4e767e[_0x5f3f9d(0x276)](_0xb35182))==null||(_0x3c102a=_0x3c102a[_0x5f3f9d(0x27b)](_0x307dc0)[_0x5f3f9d(0x242)](_0x4577a0))==null?void 0x0:_0x3c102a[_0x5f3f9d(0x290)];return _0x27ed79[_0x5f3f9d(0x27c)](_0x480d38['id'],{'unitId':_0xb35182,'drawings':[{..._0x405d41,'transform':_0x55cbad,'sheetTransform':_0x5fdad?_0x3dccba(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x3a3)]:_0x405d41[_0x5f3f9d(0x3a3)],'axisAlignSheetTransform':_0x5fdad?_0x306e59(_0x55cbad,_0x5fdad)??_0x405d41[_0x5f3f9d(0x2ab)]:_0x405d41['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x446cde,subUnitId:_0x226dfa,shapeId:_0x127e55,width:_0x4b482e,height:_0x1bf144})=>{const _0x28414b=_0x20896a;var _0x149644;let _0x4292a7=_0x45508d[_0x28414b(0x3a5)]({'unitId':_0x446cde,'subUnitId':_0x226dfa,'drawingId':_0x127e55}),_0x5b0c88=_0x4292a7==null?void 0x0:_0x4292a7[_0x28414b(0x1b7)];if(!_a(_0x4292a7)||!_0x5b0c88)return;let _0x1c3f2a={..._0x5b0c88,'width':_0x4b482e,'height':_0x1bf144},_0x40c8c3=(_0x149644=_0x4e767e['getRenderUnitById'](_0x446cde))==null||(_0x149644=_0x149644[_0x28414b(0x27b)](_0x307dc0)[_0x28414b(0x242)](_0x226dfa))==null?void 0x0:_0x149644['skeleton'],_0x2eb327=_0x40c8c3?_0x3dccba(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x3a3)]:_0x4292a7['sheetTransform'],_0x2696e3=_0x40c8c3?_0x306e59(_0x1c3f2a,_0x40c8c3)??_0x4292a7[_0x28414b(0x2ab)]:_0x4292a7[_0x28414b(0x2ab)];_0x27ed79[_0x28414b(0x1ac)](_0x480d38['id'],{'unitId':_0x446cde,'drawings':[{..._0x4292a7,'transform':_0x1c3f2a,'sheetTransform':_0x2eb327,'axisAlignSheetTransform':_0x2696e3}]});},'allowHostSizeShrink':({unitId:_0x3d5148,subUnitId:_0x4b6077,shapeId:_0x3244f7})=>_0x51130d(_0x5aec0b[_0x20896a(0x1fa)](_0x3d5148,_0x4b6077,_0x3244f7)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x27ed79,_0x45508d,_0x4e767e,_0x5aec0b,_0x164f7f]),_0xa0a270=_0x3352e0(()=>({'viewportKeys':{'main':_0x54edb1[_0x20896a(0x385)],'leftTop':_0x54edb1[_0x20896a(0x15a)],'top':_0x54edb1[_0x20896a(0x178)],'left':_0x54edb1['VIEW_MAIN_LEFT']},'getSkeleton':(_0x368cb2,_0x101270)=>{const _0xcb8745=_0x20896a;var _0x5944c6;return((_0x5944c6=_0x368cb2[_0xcb8745(0x27b)](_0x307dc0)['getSkeletonParam'](_0x101270[_0xcb8745(0x1c5)]))==null?void 0x0:_0x5944c6[_0xcb8745(0x290)])??null;}}),[]);return _0xcdc9dc(_0xa7fac2,{'adapter':_0x328c73,'editingService':_0xbcefdf,'editorUnitId':Pr,'positionOptions':_0xa0a270});});let ya=class extends _0x2c7179{constructor(_0x33afa7,_0x5918b5){const _0x92d486=_0x244912;super(),this[_0x92d486(0x2df)]=_0x33afa7,this[_0x92d486(0x22d)]=_0x5918b5,this['_registerIcons'](),this[_0x92d486(0x277)]();}['_registerIcons'](){const _0x19bedb=_0x244912;this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x2d3))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ObjectLayersIcon':_0x4809c9})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x2fb))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'FlipHorizontalIcon':_0x183126})),this['_iconManager'][_0x19bedb(0x33a)](_0x19bedb(0x167))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)]['register']({'FlipVerticalIcon':_0x3dabc1})),this['_iconManager']['has'](_0x19bedb(0x16e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'BottomIcon':_0xe20eb})),this[_0x19bedb(0x22d)]['has'](_0x19bedb(0x23e))||this[_0x19bedb(0x14a)](this['_iconManager'][_0x19bedb(0x2a8)]({'MoveDownIcon':_0x1bee1c})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x357))||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'MoveUpIcon':_0x368783})),this['_iconManager']['has']('ShapeFormatSettingIcon')||this[_0x19bedb(0x14a)](this[_0x19bedb(0x22d)][_0x19bedb(0x2a8)]({'ShapeFormatSettingIcon':_0x1516df})),this[_0x19bedb(0x22d)][_0x19bedb(0x33a)](_0x19bedb(0x160))||this[_0x19bedb(0x14a)](this['_iconManager']['register']({'TopmostIcon':_0x1f7182}));}[_0x244912(0x277)](){const _0x2bf7ec=_0x244912;this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Ar,ma)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](jr,Ki)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Vr,qr)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Hr,Wr)),this[_0x2bf7ec(0x2df)]['get'](_0x184fa8)||this[_0x2bf7ec(0x14a)](this['_componentManager'][_0x2bf7ec(0x2a8)](_0x184fa8,Kr)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](Mr,ha)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)][_0x2bf7ec(0x2a8)](ii,ci)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](ri,li)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](ai,ui)),this[_0x2bf7ec(0x14a)](this[_0x2bf7ec(0x2df)]['register'](oi,di)),this['disposeWithMe'](this['_componentManager']['register'](Fr,_0x2689dd)),this['disposeWithMe'](this[_0x2bf7ec(0x2df)]['register'](_0x2bf7ec(0x3ec),va));}};ya=Y([J(0x0,_0x318433(_0x56d3ac)),J(0x1,_0x318433(_0x40e0f9))],ya);let ba=class extends _0x2c7179{constructor(_0x40c7bc,_0x44ddb6,_0x3dd584,_0x5c1976,_0x9aac40,_0x5ef861,_0x3a2e6d,_0xa8efdc,_0x3796e8){const _0x80b810=_0x244912;super();let _0x572665=_0x4e2887=>{const _0x3b3374=_0x4e9b;var _0x37588e,_0x181452;return(((_0x37588e=_0xa8efdc[_0x3b3374(0x2d6)](new _0x59c9a1(_0x4e2887[_0x3b3374(0x21f)])['id']))==null?void 0x0:_0x37588e[_0x3b3374(0x3de)])??!0x0)&&(((_0x181452=_0xa8efdc[_0x3b3374(0x2d6)](new _0x5ec863(_0x4e2887['unitId'],_0x4e2887['subUnitId'])['id']))==null?void 0x0:_0x181452[_0x3b3374(0x3de)])??!0x0);},_0x14ef50=_0xa0ada1=>_0xa0ada1['shapeId']&&_0x572665(_0xa0ada1)?_0x3dd584['getShapeDataById'](_0xa0ada1[_0x80b810(0x21f)],_0xa0ada1[_0x80b810(0x1c5)],_0xa0ada1[_0x80b810(0x19c)])??null:null,_0x12e8cd=()=>{const _0xc650b3=_0x80b810;let _0x1b10d4=_0x9aac40[_0xc650b3(0x2a0)](),_0x309b91=_0x1b10d4[_0xc650b3(0x1ae)]===0x1?_0x1b10d4[0x0]:null;return(_0x309b91==null?void 0x0:_0x309b91[_0xc650b3(0x185)])===_0x54d53a[_0xc650b3(0x1b1)]&&_0x309b91[_0xc650b3(0x21f)]===_0x40c7bc[_0xc650b3(0x21f)]?{'unitId':_0x309b91[_0xc650b3(0x21f)],'subUnitId':_0x309b91[_0xc650b3(0x1c5)],'shapeId':_0x309b91[_0xc650b3(0x237)]}:null;};this[_0x80b810(0x14a)](_0x3ed075(_0x40c7bc,_0x44ddb6,{'changes$':_0xa89b72(_0x9aac40[_0x80b810(0x2fc)],_0x5c1976[_0x80b810(0x256)],_0xa8efdc[_0x80b810(0x236)]),'isActive':()=>{const _0x185998=_0x80b810;var _0x2437c7;return((_0x2437c7=_0x5ef861['getFocusedUnit']())==null?void 0x0:_0x2437c7['getUnitId']())===_0x40c7bc[_0x185998(0x21f)]&&!_0x3a2e6d[_0x185998(0x2c8)](_0x3e7b7b)&&_0x9aac40[_0x185998(0x2a0)]()[_0x185998(0x22e)](_0x5a6ae2=>_0x5a6ae2['unitId']===_0x40c7bc['unitId']);},'getSelectedTarget':_0x12e8cd,'getSource':()=>{let _0xea436f=_0x12e8cd();return _0xea436f?_0x14ef50(_0xea436f):null;},'getTarget':_0x44c761=>{const _0x5dc66b=_0x80b810;let _0x24d12b=_0x40c7bc[_0x5dc66b(0x229)][_0x5dc66b(0x2fa)](new _0x145e25(_0x44c761[_0x5dc66b(0x3d2)],_0x44c761['offsetY']));if(!(_0x24d12b instanceof Er))return null;let _0xd5c66c={'unitId':_0x40c7bc[_0x5dc66b(0x21f)],'subUnitId':_0x24d12b[_0x5dc66b(0x1c5)],'shapeId':_0x24d12b[_0x5dc66b(0x19c)]};return _0x572665(_0xd5c66c)?_0xd5c66c:null;},'getShape':_0x14ef50,'update':(_0x529e3b,_0x1da10f,_0x17e842)=>_0x3796e8[_0x80b810(0x1ac)](K['id'],{..._0x529e3b,'shapeData':_0x17e842,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x1da10f}})}));}};ba=Y([J(0x1,_0x318433(_0x131d68)),J(0x2,_0x318433(_0x5594a6)),J(0x3,_0x318433($)),J(0x4,_0x1f50fa),J(0x5,_0x595744),J(0x6,_0x21e25a),J(0x7,_0x10d99e),J(0x8,_0x4aa13b)],ba);const xa='sheets-shape-contextual-ribbon';let Sa=class extends _0x2c7179{constructor(_0xeebf04,_0x248079,_0x80f52a,_0x5252ad,_0x5b3e8e,_0x562ae6){const _0x5537a1=_0x244912;super(),this[_0x5537a1(0x3f7)]=_0xeebf04,this[_0x5537a1(0x260)]=_0x248079,this[_0x5537a1(0x239)]=_0x80f52a,this['_univerInstanceService']=_0x5252ad,this[_0x5537a1(0x2f0)]=_0x5b3e8e,this[_0x5537a1(0x3c0)]=_0x562ae6,q(this,_0x5537a1(0x18c),!0x1),this[_0x5537a1(0x3f7)][_0x5537a1(0x390)](Fi),this[_0x5537a1(0x14a)](_0x21ce23(this['_drawingManagerService']['focus$'][_0x5537a1(0x305)](()=>this[_0x5537a1(0x1ff)]()))),this[_0x5537a1(0x1ff)]();}[_0x244912(0x346)](){const _0x2410f4=_0x244912;this[_0x2410f4(0x3c0)][_0x2410f4(0x1c3)](!0x1,xa),this[_0x2410f4(0x355)](),super['dispose']();}[_0x244912(0x1ff)](){const _0x3c25d8=_0x244912;var _0x8b4c8b;let _0x581f6d=this['_drawingManagerService'][_0x3c25d8(0x2a0)](),_0x35d3f7=_0x581f6d[_0x3c25d8(0x1ae)]===0x1?_0x581f6d[0x0]:void 0x0;if((_0x35d3f7==null?void 0x0:_0x35d3f7[_0x3c25d8(0x185)])!==_0x54d53a['DRAWING_SHAPE']||this[_0x3c25d8(0x321)]['getUnitType'](_0x35d3f7[_0x3c25d8(0x21f)])!==_0x37e7a9['UNIVER_SHEET']){this[_0x3c25d8(0x3c0)]['setFallbackVisible'](!0x1,xa),this[_0x3c25d8(0x355)]();return;}let _0x3bf827=(_0x8b4c8b=this[_0x3c25d8(0x2f0)][_0x3c25d8(0x276)](_0x35d3f7['unitId']))==null?void 0x0:_0x8b4c8b[_0x3c25d8(0x341)]['getCanvasElement'](),_0x21c693=_0x570759(_0x3bf827)==='isolated';if(this[_0x3c25d8(0x3c0)]['setFallbackVisible'](_0x21c693,xa),_0x21c693){this[_0x3c25d8(0x355)]();return;}this[_0x3c25d8(0x18c)]||(this['_visible']=!0x0,this[_0x3c25d8(0x260)][_0x3c25d8(0x29e)](Nr,{'activate':!0x0}));}[_0x244912(0x355)](){const _0x184a8b=_0x244912;this['_visible']&&(this[_0x184a8b(0x18c)]=!0x1,this[_0x184a8b(0x260)][_0x184a8b(0x29b)](Nr),this['_ribbonService'][_0x184a8b(0x25a)]([]));}};Sa=Y([J(0x0,_0x2ed3c1),J(0x1,_0x313322),J(0x2,_0x1f50fa),J(0x3,_0x595744),J(0x4,_0xc8f10c),J(0x5,_0x318433(_0x11b9ca))],Sa);let Ca=class extends _0x2ed20c{constructor(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae){super(_0x112954,_0x107550,_0x162349,_0x2bd615,_0x2efe43,_0x4c728e,_0x31f22f,_0x164ef4,_0x579346,_0x39c1ae,{'componentKey':Fr,'editorUnitId':Pr});}};Ca=Y([J(0x1,_0x318433(_0x2f74d4)),J(0x2,_0x318433(_0x5908e1)),J(0x3,_0x318433(_0x1706ef)),J(0x4,_0x4aa13b),J(0x5,_0x318433(_0x181919)),J(0x6,_0x318433(_0x56b244)),J(0x7,_0x318433(_0x59811b)),J(0x8,_0x318433(_0x44ebf9)),J(0x9,_0x318433($))],Ca);let wa=class extends _0x2c7179{constructor(_0x145d88,_0x4deab1,_0x77944b,_0x177dec,_0x6ae884,_0x4261f7,_0x103cc9,_0xa91718,_0x490a3c,_0x5d0542,_0x2b66ce){const _0x423970=_0x244912;super(),this[_0x423970(0x321)]=_0x145d88,this['_sidebarService']=_0x4deab1,this[_0x423970(0x3f7)]=_0x77944b,this[_0x423970(0x288)]=_0x177dec,this[_0x423970(0x3b8)]=_0x6ae884,this[_0x423970(0x2d0)]=_0x4261f7,this[_0x423970(0x239)]=_0x103cc9,this[_0x423970(0x19d)]=_0xa91718,this[_0x423970(0x210)]=_0x490a3c,this[_0x423970(0x2f0)]=_0x5d0542,this[_0x423970(0x29f)]=_0x2b66ce,q(this,_0x423970(0x3af),null),q(this,_0x423970(0x22f),null),q(this,_0x423970(0x173),!0x1),q(this,_0x423970(0x3f2),0x0),q(this,_0x423970(0x28e),null),q(this,_0x423970(0x393),[]),this['_initMenu'](),this[_0x423970(0x14a)](this['_univerInstanceService'][_0x423970(0x25d)](_0x37e7a9[_0x423970(0x2c9)])[_0x423970(0x305)](_0x2d6442=>{const _0x482d17=_0x423970;if(!_0x2d6442){var _0x2eb705;(_0x2eb705=this[_0x482d17(0x3af)])==null||_0x2eb705[_0x482d17(0x346)]();}})),this[_0x423970(0x15c)](),this[_0x423970(0x1e5)](),this[_0x423970(0x14a)](this[_0x423970(0x29f)][_0x423970(0x256)][_0x423970(0x305)](_0x7f46fc=>{const _0x4ce7a1=_0x423970;_0x7f46fc&&this[_0x4ce7a1(0x39c)]();}));}[_0x244912(0x33e)](){const _0x16ca2b=_0x244912;this['_menuManagerService'][_0x16ca2b(0x390)](Li);}[_0x244912(0x1e5)](){const _0xf0e86b=_0x244912;this[_0xf0e86b(0x28e)]||=this[_0xf0e86b(0x14a)](_0x50a450(this[_0xf0e86b(0x2f0)],_0x37e7a9[_0xf0e86b(0x2c9)],_0x342b45=>this[_0xf0e86b(0x1c1)](_0x342b45)));}[_0x244912(0x1dd)](_0x457fd8,_0x1e78c2,_0xa4919f){const _0x596349=_0x244912;let _0x2c1393=this[_0x596349(0x288)][_0x596349(0x3e4)](_0x457fd8,_0x1e78c2,_0xa4919f),_0x30a1ef=this[_0x596349(0x288)][_0x596349(0x1fa)](_0x457fd8,_0x1e78c2,_0xa4919f);return _0x2c1393!==void 0x0&&_0x30a1ef!==void 0x0?{'shapeData':_0x30a1ef,'shapeId':_0xa4919f,'shapeType':_0x2c1393,'unitId':_0x457fd8,'subUnitId':_0x1e78c2,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x244912(0x39c)](){const _0x3cf0e2=_0x244912;this['_disposePopups'][_0x3cf0e2(0x2b3)](_0x132818=>_0x132818[_0x3cf0e2(0x346)]()),this[_0x3cf0e2(0x393)][_0x3cf0e2(0x1ae)]=0x0;}[_0x244912(0x1c1)](_0x318ab8){const _0x3c9117=_0x244912;let _0x363d3e=new _0x4cf05e();return _0x363d3e[_0x3c9117(0x1a3)](_0x318ab8['createControl$'][_0x3c9117(0x305)](()=>{const _0x726cdb=_0x3c9117;let _0x455ef1=_0x318ab8[_0x726cdb(0x2ba)]();if(this[_0x726cdb(0x39c)](),this[_0x726cdb(0x173)]||_0x455ef1[_0x726cdb(0x17a)]>0x1)return;let _0x5f1f90=_0x455ef1[_0x726cdb(0x196)]()[_0x726cdb(0x3ac)]()[_0x726cdb(0x3de)];if(!_0x5f1f90)return;let _0x272aa0=this[_0x726cdb(0x239)][_0x726cdb(0x28a)](_0x5f1f90[_0x726cdb(0x206)]);if(!_0x272aa0||_0x272aa0[_0x726cdb(0x185)]!==_0x54d53a[_0x726cdb(0x1b1)])return;let {unitId:_0x1ab823,subUnitId:_0x1ccc1c,drawingId:_0x884449,drawingType:_0x10e5be}=_0x272aa0,_0x3dd3fa=this[_0x726cdb(0x1dd)](_0x1ab823,_0x1ccc1c,_0x884449);if(!_0x3dd3fa)return;this[_0x726cdb(0x210)][_0x726cdb(0x234)](_0x15a415,!0x0);let _0x14a856=this['_renderManagerService']['getRenderUnitById'](_0x1ab823),_0x1035b5=((_0x14a856==null?void 0x0:_0x14a856[_0x726cdb(0x199)])===!0x1?_0x14a856['with'](_0xf74177):this[_0x726cdb(0x19d)])[_0x726cdb(0x29a)](_0x5f1f90,{'componentKey':Mr,'direction':_0x726cdb(0x175),'offset':[0x0,_0x574cac],'extraProps':{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449,'drawingType':_0x10e5be,'shapeType':_0x3dd3fa['shapeType'],'shapeData':_0x3dd3fa[_0x726cdb(0x17d)]}});this[_0x726cdb(0x393)][_0x726cdb(0x399)](this[_0x726cdb(0x14a)](_0x1035b5)),this[_0x726cdb(0x239)][_0x726cdb(0x2a0)]()[_0x726cdb(0x2f4)](_0x581203=>_0x581203[_0x726cdb(0x21f)]===_0x1ab823&&_0x581203[_0x726cdb(0x1c5)]===_0x1ccc1c&&_0x581203[_0x726cdb(0x237)]===_0x884449)||this[_0x726cdb(0x239)]['focusDrawing']([{'unitId':_0x1ab823,'subUnitId':_0x1ccc1c,'drawingId':_0x884449}]);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x26f)][_0x3c9117(0x305)](()=>{const _0x4c8ccd=_0x3c9117;this['_clearPopups'](),this[_0x4c8ccd(0x210)][_0x4c8ccd(0x234)](_0x15a415,!0x1),this[_0x4c8ccd(0x239)][_0x4c8ccd(0x1f3)](null);})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x226)][_0x3c9117(0x305)](()=>{const _0x5eeccf=_0x3c9117;this[_0x5eeccf(0x39c)]();})),_0x363d3e[_0x3c9117(0x1a3)](_0x318ab8[_0x3c9117(0x24c)][_0x3c9117(0x305)](()=>{const _0x2d996c=_0x3c9117;this[_0x2d996c(0x39c)]();})),_0x21ce23(()=>{const _0x216eea=_0x3c9117;_0x363d3e[_0x216eea(0x346)](),this[_0x216eea(0x39c)]();});}[_0x244912(0x15c)](){const _0x5addae=_0x244912;this[_0x5addae(0x14a)](this['_commandService'][_0x5addae(0x356)](_0x429436=>{const _0x5b811d=_0x5addae;if(_0x429436['id']===Lr['id']){let {unitId:_0x271089,subUnitId:_0x268c77,drawingId:_0x338793}=_0x429436[_0x5b811d(0x348)];this[_0x5b811d(0x3f2)]+=0x1,this[_0x5b811d(0x22f)]=this[_0x5b811d(0x1dd)](_0x271089,_0x268c77,_0x338793),this[_0x5b811d(0x39c)](),this[_0x5b811d(0x1e7)]();}if(_0x429436['id']===fa['id']&&(this['_activeShapeInfo']=null,this[_0x5b811d(0x208)]()),_0x429436['id']===_0x4fa39c['id']){let {unitId:_0x2277e3,subUnitId:_0x45bda2,shapeId:_0x635e5e}=_0x429436[_0x5b811d(0x348)];if(this[_0x5b811d(0x22f)]&&this[_0x5b811d(0x22f)][_0x5b811d(0x19c)]===_0x635e5e){let _0x22b2cf=this[_0x5b811d(0x1dd)](_0x2277e3,_0x45bda2,_0x635e5e);_0x22b2cf&&(this[_0x5b811d(0x3f2)]+=0x1,_0x22b2cf[_0x5b811d(0x345)]=this[_0x5b811d(0x3f2)],this[_0x5b811d(0x22f)]=_0x22b2cf,this[_0x5b811d(0x173)]&&this[_0x5b811d(0x1e7)]());}}})),this[_0x5addae(0x14a)](this[_0x5addae(0x239)][_0x5addae(0x2fc)][_0x5addae(0x305)](_0x5a16c0=>{const _0x3784ca=_0x5addae;if(this[_0x3784ca(0x173)]===!0x1)return;if(_0x5a16c0[_0x3784ca(0x1ae)]===0x0){this[_0x3784ca(0x22f)]=null,this[_0x3784ca(0x208)]();return;}if(_0x5a16c0[_0x3784ca(0x1ae)]===0x1&&_0x5a16c0[0x0][_0x3784ca(0x185)]===_0x54d53a[_0x3784ca(0x1b1)]&&(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this['_getShapeInfo'](_0x5a16c0[0x0]['unitId'],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this[_0x3784ca(0x22f)])){this['_openShapeEditPanel']();return;}let _0x2bf8be=_0x5a16c0[_0x3784ca(0x150)](_0x5287fb=>_0x5287fb['drawingType']===_0x54d53a[_0x3784ca(0x1b1)]);if(_0x5a16c0[_0x3784ca(0x1ae)]>0x1&&_0x2bf8be[_0x3784ca(0x1ae)]===_0x5a16c0['length']){if(this[_0x3784ca(0x3f2)]+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0][_0x3784ca(0x1c5)],_0x5a16c0[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x3784ca(0x1e7)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x3784ca(0x22f)]=this[_0x3784ca(0x1dd)](_0x5a16c0[0x0][_0x3784ca(0x21f)],_0x5a16c0[0x0]['subUnitId'],_0x5a16c0[0x0][_0x3784ca(0x237)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x3784ca(0x159)]=!0x0,this[_0x3784ca(0x1e7)]();return;}}this[_0x3784ca(0x208)]();}));}['_openShapeEditPanel'](){const _0x428dd5=_0x244912;this[_0x428dd5(0x22f)]&&(this['_sidebarDisposable']=this[_0x428dd5(0x2b8)][_0x428dd5(0x170)]({'id':Ar,'header':{'title':this[_0x428dd5(0x3b8)]['t'](_0x428dd5(0x299))},'width':0x184,'children':{'label':Ar,...this['_activeShapeInfo']},'onClose':()=>{const _0x2fcca0=_0x428dd5;this[_0x2fcca0(0x239)]['focusDrawing'](null),this[_0x2fcca0(0x210)][_0x2fcca0(0x234)](_0x15a415,!0x1),this[_0x2fcca0(0x3af)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x1a2bfd=_0x244912;this['_isOpenedShapeEditPanel']=!0x1,this['_sidebarService']['close'](Ar),this[_0x1a2bfd(0x3af)]=null,this[_0x1a2bfd(0x210)][_0x1a2bfd(0x234)](_0x15a415,!0x1),this[_0x1a2bfd(0x239)]['focusDrawing'](null);}};wa=Y([J(0x0,_0x595744),J(0x1,_0x318433(_0x26d1b3)),J(0x2,_0x2ed3c1),J(0x3,_0x318433(_0x5594a6)),J(0x4,_0x318433(_0x3f1353)),J(0x5,_0x4aa13b),J(0x6,_0x1f50fa),J(0x7,_0x318433(_0xf74177)),J(0x8,_0x21e25a),J(0x9,_0xc8f10c),J(0xa,_0x318433($))],wa);let Ta=class extends _0x3c4eb2{constructor(_0x46e6a4=Hi,_0x7d01f4,_0x512d32,_0xff2025,_0x21ba60){const _0x324342=_0x244912;super(),this[_0x324342(0x3f8)]=_0x46e6a4,this[_0x324342(0x391)]=_0x7d01f4,this[_0x324342(0x2d0)]=_0x512d32,this[_0x324342(0x2eb)]=_0xff2025,this[_0x324342(0x2f0)]=_0x21ba60;let {..._0x1fd5d8}=_0x845994({},Hi,this[_0x324342(0x3f8)]);this[_0x324342(0x2eb)][_0x324342(0x2ea)](Vi,_0x1fd5d8),this[_0x324342(0x2fe)]();}[_0x244912(0x2f8)](){const _0x35fdb7=_0x244912;this[_0x35fdb7(0x2f0)]['registerRenderModule'](_0x37e7a9['UNIVER_DOC'],[Ca]),_0x45a757(this[_0x35fdb7(0x391)],[[wa],[ta],[X],[ca]]);}[_0x244912(0x3bb)](){const _0x253d39=_0x244912;this[_0x253d39(0x391)][_0x253d39(0x1e0)](wa)[_0x253d39(0x1e5)]();}['onReady'](){const _0x57d1b5=_0x244912;[[ia],[Z],[aa]][_0x57d1b5(0x2b3)](_0x5d6fcc=>this[_0x57d1b5(0x391)][_0x57d1b5(0x1a3)](_0x5d6fcc)),_0x45a757(this[_0x57d1b5(0x391)],[[aa],[Z]]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ia]),this[_0x57d1b5(0x2f0)]['registerRenderModule'](_0x37e7a9[_0x57d1b5(0x2c9)],[Ui]),this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[sa]),this['_renderManagerService'][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[Yi]),this['disposeWithMe'](this[_0x57d1b5(0x2f0)][_0x57d1b5(0x240)](_0x37e7a9[_0x57d1b5(0x2c9)],[ba]));}[_0x244912(0x2ad)](){const _0x5859ce=_0x244912;this[_0x5859ce(0x391)][_0x5859ce(0x1a3)]([ya]),this['_injector'][_0x5859ce(0x1e0)](ya);let _0x43a425=this['_injector'];[[wa],[ta],[X],[ca],[ua],[$],[ea],[Q],[la],[Sa]][_0x5859ce(0x2b3)](_0x5d8f7f=>_0x43a425[_0x5859ce(0x1a3)](_0x5d8f7f)),_0x45a757(this[_0x5859ce(0x391)],[[wa],[ta],[X],[ua],[$],[ea],[Q],[la],[Sa]]);}[_0x244912(0x2fe)](){const _0xe0ebd9=_0x244912;[kr,K,fa,Lr,Ir,Or,zr,Br][_0xe0ebd9(0x2b3)](_0x33b696=>this['disposeWithMe'](this[_0xe0ebd9(0x2d0)][_0xe0ebd9(0x293)](_0x33b696)));}};q(Ta,_0x244912(0x1a2),_0x37e7a9['UNIVER_SHEET']),q(Ta,_0x244912(0x1f9),_0x244912(0x24a)),q(Ta,_0x244912(0x3ff),Ri),q(Ta,_0x244912(0x345),zi),Ta=Y([_0x247bab(_0x5c2b4a,_0x21e271,_0x31be2a,_0x1df8f2,_0x48dbc2,_0x3d2d07,_0x99abe1,_0x572c12,_0x26432c,_0x57b4f0,_0x41a1bc,_0x30d40e,_0x5cbd77),J(0x1,_0x318433(_0x54646c)),J(0x2,_0x4aa13b),J(0x3,_0x20789e),J(0x4,_0xc8f10c)],Ta);export{Fi as SheetsShapeUIContextualRibbonSchema,Li as SheetsShapeUIMenuSchema,da as UniverSheetsShapeMobileUIPlugin,Ta as UniverSheetsShapeUIPlugin};
1
+ const _0x40a3e1=_0x214c;(function(_0x2137e7,_0x583801){const _0x2fc5a7=_0x214c,_0x3596ed=_0x2137e7();while(!![]){try{const _0x23fce4=parseInt(_0x2fc5a7(0x1e0))/0x1*(parseInt(_0x2fc5a7(0x37a))/0x2)+parseInt(_0x2fc5a7(0x291))/0x3*(-parseInt(_0x2fc5a7(0x350))/0x4)+-parseInt(_0x2fc5a7(0x28d))/0x5*(parseInt(_0x2fc5a7(0x37d))/0x6)+-parseInt(_0x2fc5a7(0x29b))/0x7*(-parseInt(_0x2fc5a7(0x2c4))/0x8)+parseInt(_0x2fc5a7(0x1fd))/0x9*(parseInt(_0x2fc5a7(0x248))/0xa)+parseInt(_0x2fc5a7(0x35f))/0xb*(-parseInt(_0x2fc5a7(0x3c4))/0xc)+-parseInt(_0x2fc5a7(0x34b))/0xd*(-parseInt(_0x2fc5a7(0x225))/0xe);if(_0x23fce4===_0x583801)break;else _0x3596ed['push'](_0x3596ed['shift']());}catch(_0x12913c){_0x3596ed['push'](_0x3596ed['shift']());}}}(_0x4acb,0xa723d));import{FormulaShapeAnimationController as _0x4ae454,MobileShapeEditorService as _0xd18c3c,SHAPE_CHANGE_PICKER_COMPONENT as _0x37ce7a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xc2fb67,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xd4bd0a,ShapeEditPanel as _0x4ced55,ShapeFloatingToolbar as _0x23aeb0,ShapeFloatingToolbarService as _0xfc879,ShapeFloatingToolbarToggleFactory as _0x1d0040,ShapeFormulaRibbonControl as _0x46df00,ShapeGroupEnum as _0x416c0a,ShapePickerDropdown as _0x276ebe,ShapePickerPanel as _0xc763c4,ShapeQuickStyleGallery as _0x506439,ShapeStyleRibbonControl as _0x171727,ShapeTextEditorContainer as _0x5afdbc,ShapeTextFloatMenuRenderControllerBase as _0x41bb9b,ShapeTextFloatToolbar as _0x3eed75,ShapeTextHyperLinkHoverController as _0x3a1637,ShapeTextHyperLinkInfo as _0x6a8cbb,ShapeTextHyperLinkPopupService as _0x31dfd7,ShapeTextRibbonControl as _0x4f2621,ToggleShapeFloatingToolbarOperation as _0x326f6f,UniverShapeEditorMobileUIPlugin as _0x255e95,UniverShapeEditorUIPlugin as _0x48041f,activateDrawingObject as _0x5312c2,bindRenderTransformerLifecycle as _0x429510,buildShapeTextDataUpdate as _0x25fcc6,clearActiveDrawingObjects as _0x1da64c,createShapeTextHyperLinkRegions as _0x2db872,drawFormulaShapeAnimationLayers as _0xdd2b48,getDrawingTypeNameKey as _0x5d4a8c,getTextModel as _0x5add35,getTextStyle as _0x1503fd,normalizeShapeTextModel as _0x557c0f,plainShapeTextToDocumentData as _0x4e6013,prepareShapeTextDocumentData as _0x56440a,registerShapeFormatPainter as _0x3cf394,resolveFormulaShapeAutoFitSize as _0x4b51b7,resolveShapeContextualRibbonHostMode as _0x542739,resolveShapeTextDocumentPageHeight as _0x338660,resolveShapeTextDocumentRenderLayout as _0x2ffc08,resolveShapeTextEditorBehaviorShapeData as _0x263e98,resolveShapeTextEditorWrapStrategy as _0xbf2fdd,resolveShapeTextHyperLinkAt as _0x271bf0,resolveShapeTextHyperLinkObject as _0x2c8700,shouldAllowShapeTextEditorHostSizeShrink as _0x4bf744,shouldClipShapeTextDocument as _0x38d030,useFormulaShapeToolbar as _0x31f90f}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x203616,ContextMenuGroup as _0x4caf77,ContextMenuPosition as _0x420dc4,FloatingObjectToolbarPosition as _0x36ba8a,FormatPainterSessionService as _0x4e03be,IMenuManagerService as _0x2a7418,IRibbonService as _0xbd47b4,ISidebarService as _0x4edbc3,IconManager as _0x3141ce,MenuItemType as _0x3cc54f,MenuManagerPosition as _0x15f1c1,RibbonInsertGroup as _0x30f74f,UndoRedoGroupService as _0x1b9e9a,UniverMobileUIPlugin as _0x31c67a,getMenuHiddenObservable as _0x5b0d7c,useDependency as _0x3911a9,useObservable as _0x17fdf6}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x28f453,ImageSourceTypeEnum as _0x58be7c,ShapeArrowSizeEnum as _0x49eb54,ShapeArrowTypeEnum as _0x5a007b,ShapeDefaultConfig as _0x2c02a7,ShapeFillEnum as _0xbc8bca,ShapeLineTypeEnum as _0x4ccbce,ShapeModel as _0x442f4b,ShapeRenderModeEnum as _0x200468,ShapeTypeEnum as _0x27efd2,computeConnectorRouteLayout as _0x1306f6,getBasicShapeRotateBound as _0x149266,isConnectorShape as _0x421dc8,isCurvedConnectorShape as _0xa7da83,routeConnectorLineShape as _0x4ed1b6}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x343dc9,UniverShapeEditorPlugin as _0x4fffad,applyQuickStyleToShapeData as _0x46bc18,cloneShapeDataForType as _0x4013e1,createShapeFormulaDocument as _0xb20a3a,createShapeTextBoxShapeData as _0x57c405,getShapeQuickStylePreset as _0x583dc0,getShapeQuickStyleType as _0x3e70c6,resolveActiveShapeQuickStylePresetId as _0x244835}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x68b808,InsertSheetsShapeMutation as _0x30d486,RemoveSheetsShapeMutation as _0x950b4f,SetShapeDrawingDataCommand as _0x2e6ede,SheetsShapeService as _0x25eee4,ToggleSheetsShapeFlipCommand as _0x559a4e,UniverSheetsShapePlugin as _0xb1acc8,UpdateConnectorRelationCommand as _0x56d2bf,UpdateLineShapeResizeCommand as _0x521bba,UpdateSheetsShapeDataMutation as _0x2abe23}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x387bee,CommandType as _0x47a509,DependentOn as _0x5da42f,Disposable as _0x1f1ba9,DisposableCollection as _0x2bf40d,DocumentDataModel as _0x18e868,DrawingTypeEnum as _0x204a86,FOCUSING_COMMON_DRAWINGS as _0x4c4f0c,FOCUSING_SHAPE_TEXT_EDITOR as _0x22723e,HorizontalAlign as _0x1388a6,ICommandService as _0x3a4817,IConfigService as _0x4b4871,IContextService as _0x264df0,IImageIoService as _0x227de8,IPermissionService as _0x579508,IURLImageService as _0x4646eb,IUndoRedoService as _0x21d046,IUniverInstanceService as _0x3a3cc8,Inject as _0x34f57e,Injector as _0xa4fd93,LocaleService as _0x1fc669,Plugin as _0x5e7af4,UniverInstanceType as _0x2f72d4,VerticalAlign as _0x11de6,createInternalEditorID as _0xd3eef3,generateRandomId as _0x57f70d,merge as _0x2b5604,registerDependencies as _0x457bb0,toDisposable as _0x35229e,touchDependencies as _0x557f52}from'@univerjs/core';import{CopySheetCommand as _0x143b18,RemoveSheetCommand as _0x590306,SheetInterceptorService as _0x20a0fd,SheetPermissionCheckController as _0xe3fb01,SheetSkeletonService as _0x2b81a7,SheetsSelectionsService as _0x28680f,UniverSheetsPlugin as _0x1b66b7,WorkbookCopyPermission as _0x2b4124,WorkbookEditablePermission as _0x3edb9a,WorksheetCopyPermission as _0x4974af,WorksheetEditPermission as _0x2e8354,attachRangeWithCoord as _0x500c4e,discreteRangeToRange as _0x32c5b6,getSheetCommandTarget as _0x1eaf70}from'@univerjs/sheets';import{IDrawingManagerService as _0x2d58e3,SetDrawingSelectedOperation as _0x5bb1f9,UniverDrawingPlugin as _0x499a28,getDrawingShapeKeyByDrawingSearch as _0x4eca2a,getOrCreateDrawingCopyPlan as _0x25a00d}from'@univerjs/drawing';import{CURSOR_TYPE as _0x27b168,Circle as _0x597d7e,DRAWING_OBJECT_LAYER_INDEX as _0x1301e0,DocumentSkeleton as _0x32a266,DocumentViewModel as _0x12e277,Documents as _0x214f4b,IRenderManagerService as _0x5a17c7,Image as _0x2b9b89,RENDER_CLASS_TYPE as _0x5caa7e,SHEET_VIEWPORT_KEY as _0x4b46ff,Shape as _0x4d9757,Transform as _0x270023,UniverRenderEnginePlugin as _0x29d435,Vector2 as _0x1e9d06}from'@univerjs/engine-render';import{COPY_TYPE as _0x483eee,ISheetClipboardService as _0x5ddcd0,PREDEFINED_HOOK_NAME as _0x20a41f,SheetCanvasPopManagerService as _0x2bf47d,SheetPrintInterceptorService as _0x118b16,SheetScrollManagerService as _0x1d24d6,SheetSkeletonManagerService as _0x22bccb,UniverSheetsMobileUIPlugin as _0x330621,UniverSheetsUIPlugin as _0x18a7f0,deriveStateFromActiveSheet$ as _0x297af0,getCurrentRangeDisable$ as _0x587855,getViewportByCell as _0xf578ae}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1343c7,EMPTY as _0x50a9a5,Observable as _0x38e630,map as _0x1b0143,merge as _0x378593,of as _0x3cb66b,startWith as _0x56668c,switchMap as _0x59c42a}from'rxjs';import{DrawingCommonPanel as _0x297d10,DrawingImageClipService as _0x5706e2,DrawingRenderService as _0xe326a7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x48abb2,MobileObjectListPanel as _0x320793,OBJECT_LIST_FLOATING_SECTION_ID as _0x4460bf,ObjectListPanelBase as _0x2814d9,UniverDrawingUIPlugin as _0x2a1c33,getCurrentUnitInfo as _0x296f70,getObjectListPanelSectionIdForDrawingType as _0x295780,insertGroupObject as _0x4218fd}from'@univerjs/drawing-ui';import{MobileDropdown as _0x5d0172}from'@univerjs/design';import{Fragment as _0x470de9,jsx as _0xf2bc1d,jsxs as _0x2ae626}from'react/jsx-runtime';import{DrawingApplyType as _0x55dd60,ISheetDrawingService as _0x40f806,RemoveSheetDrawingCommand as _0x2982ca,SetDrawingApplyMutation as _0x2bb859,SetDrawingArrangeCommand as _0x5a5e2c,SetSheetDrawingCommand as _0x33b43a,UniverSheetsDrawingPlugin as _0x211085,transformToAxisAlignPosition as _0x48d94d,transformToDrawingPosition as _0x588a4b}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1146d0}from'@univerjs-pro/license';import{DocInterceptorService as _0x3f7435,DocSelectionManagerService as _0x4e6c7e,UniverDocsPlugin as _0x40457b}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xd91da3,DocEventManagerService as _0x156cf6,DocRenderController as _0x285cfc,DocSelectionRenderService as _0x35cd82,UniverDocsUIPlugin as _0x5b0db3}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x3f9b53,SheetsDrawingGroupCopyPasteController as _0x250565,UniverSheetsDrawingMobileUIPlugin as _0x6be2d1,UniverSheetsDrawingUIPlugin as _0xf463fc}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5aa288,FlipHorizontalIcon as _0x4ef5a4,FlipVerticalIcon as _0x132c9b,MoveDownIcon as _0x560a3c,MoveUpIcon as _0x543917,ObjectLayersIcon as _0x351aa4,ShapeFormatSettingIcon as _0x4333c8,TopmostIcon as _0x41d425}from'@univerjs/icons';import{memo as _0x3fd15d,useEffect as _0x4f4595,useMemo as _0x21a1e7,useReducer as _0x4d2c52,useState as _0x1e43f1}from'react';function Er(_0x5496bc,_0x4a2041){const _0x52d833=_0x214c;let _0x204424={};for(let _0x4ee951 of Object[_0x52d833(0x413)](_0x4a2041)){let _0x4b504b=_0x4a2041[_0x4ee951],_0x1632c2=_0x5496bc[_0x4ee951];if(_0x1632c2===void 0x0){_0x204424[_0x4ee951]=void 0x0;continue;}_0x204424[_0x4ee951]=typeof _0x4b504b==_0x52d833(0x32c)&&_0x4b504b&&!Array[_0x52d833(0x297)](_0x4b504b)&&typeof _0x1632c2==_0x52d833(0x32c)&&_0x1632c2&&!Array['isArray'](_0x1632c2)?Er(_0x1632c2,_0x4b504b):_0x1632c2;}return _0x204424;}function _0x214c(_0x7fd82e,_0x24d9a9){_0x7fd82e=_0x7fd82e-0x1b7;const _0x4acb95=_0x4acb();let _0x214cb2=_0x4acb95[_0x7fd82e];return _0x214cb2;}const K={'type':_0x47a509[_0x40a3e1(0x1f2)],'id':_0x40a3e1(0x23c),'handler':(_0x2296bb,_0x4f9bca)=>{const _0x181690=_0x40a3e1;let _0x276dc8=_0x2296bb['get'](_0x25eee4),{unitId:_0x4a7354,subUnitId:_0x21251e,shapeType:_0x3771c4,shapeId:_0x4e2b1b,shapeData:_0x3684bd,replaceShapeData:_0x5a4d07,oldShapeJSON:_0x130356}=_0x4f9bca;if(!_0x276dc8[_0x181690(0x3f9)](_0x4a7354,_0x21251e,_0x4e2b1b))return!0x1;let _0xd304aa=_0x2296bb[_0x181690(0x270)](_0x3a4817),_0x190123=_0x2296bb[_0x181690(0x270)](_0x21d046),{oldShapeType:_0x41f1a0,oldShapeData:_0x43a38b={}}=_0x130356,_0x385b61=_0x5a4d07?_0x43a38b:Er(_0x43a38b,_0x3684bd||{}),_0x3085e6={'id':_0x2abe23['id'],'params':{'unitId':_0x4a7354,'subUnitId':_0x21251e,'shapeId':_0x4e2b1b,'shapeType':_0x3771c4,'shapeData':_0x3684bd,'replace':_0x5a4d07}},_0x50a761={'id':_0x2abe23['id'],'params':{'unitId':_0x4a7354,'subUnitId':_0x21251e,'shapeId':_0x4e2b1b,'shapeType':_0x41f1a0,'shapeData':_0x385b61,'replace':_0x5a4d07}};return _0xd304aa['syncExecuteCommand'](_0x3085e6['id'],_0x3085e6['params'])?(_0x190123['pushUndoRedo']({'unitID':_0x4a7354,'undoMutations':[_0x50a761],'redoMutations':[_0x3085e6]}),!0x0):!0x1;}};function Dr(_0x49ef6e,_0x1ee7ae,_0xea956e,_0x587714,_0x3ab20e,_0x3fc571){const _0x29c2d3=_0x40a3e1;let _0x360056={'unitId':_0x1ee7ae,'subUnitId':_0xea956e,'shapeId':_0x587714,'shapeData':_0x3fc571,'oldShapeJSON':_0x3ab20e};return _0x49ef6e[_0x29c2d3(0x2d5)](K['id'],_0x360056);}function Or(_0x12a7be,_0x382bc4,_0x2e7a8c,_0x264a42,_0x30a80a,_0x3654f4){const _0x5b6832=_0x40a3e1;let _0xbe8e45={'unitId':_0x382bc4,'subUnitId':_0x2e7a8c,'shapeId':_0x264a42,'shapeData':_0x3654f4,'oldShapeJSON':_0x30a80a};return _0x12a7be[_0x5b6832(0x2d5)](K['id'],_0xbe8e45);}function kr(_0x29601d){'@babel/helpers - typeof';const _0x4923a6=_0x40a3e1;return kr=typeof Symbol=='function'&&typeof Symbol[_0x4923a6(0x29e)]==_0x4923a6(0x220)?function(_0x4620fc){return typeof _0x4620fc;}:function(_0x194708){const _0x9f31c0=_0x4923a6;return _0x194708&&typeof Symbol==_0x9f31c0(0x380)&&_0x194708[_0x9f31c0(0x2fa)]===Symbol&&_0x194708!==Symbol[_0x9f31c0(0x261)]?_0x9f31c0(0x220):typeof _0x194708;},kr(_0x29601d);}function Ar(_0x312a34,_0x43e7b9){const _0x37d482=_0x40a3e1;if(kr(_0x312a34)!=_0x37d482(0x32c)||!_0x312a34)return _0x312a34;var _0x498294=_0x312a34[Symbol['toPrimitive']];if(_0x498294!==void 0x0){var _0x2abd80=_0x498294[_0x37d482(0x1e8)](_0x312a34,_0x43e7b9||_0x37d482(0x2ed));if(kr(_0x2abd80)!=_0x37d482(0x32c))return _0x2abd80;throw TypeError(_0x37d482(0x449));}return(_0x43e7b9==='string'?String:Number)(_0x312a34);}function jr(_0x5274af){const _0x2eaae4=_0x40a3e1;var _0x315764=Ar(_0x5274af,_0x2eaae4(0x35a));return kr(_0x315764)==_0x2eaae4(0x220)?_0x315764:_0x315764+'';}function q(_0x4b90e1,_0x1882aa,_0x17e338){const _0x42f788=_0x40a3e1;return(_0x1882aa=jr(_0x1882aa))in _0x4b90e1?Object[_0x42f788(0x288)](_0x4b90e1,_0x1882aa,{'value':_0x17e338,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b90e1[_0x1882aa]=_0x17e338,_0x4b90e1;}function Mr(_0x19c3db,_0x549a40,_0x3c06ce){const _0x48f5b6=_0x40a3e1;let _0x4cc1b1={..._0x549a40,'dataModel':{..._0x549a40[_0x48f5b6(0x224)]??{},..._0x3c06ce?{'doc':_0x3c06ce}:null}},_0x174e4c=_0x263e98(_0x19c3db,_0x4cc1b1),_0x3d2a09=_0xbf2fdd(_0x174e4c);return{'clip':_0x38d030(_0x174e4c,_0x3d2a09),'wrapStrategy':_0x3d2a09};}var J=class extends _0x4d9757{constructor(_0x378ff9,_0x3a506a){const _0x11dfd0=_0x40a3e1;super(_0x378ff9,_0x3a506a),q(this,_0x11dfd0(0x40c),[]),q(this,_0x11dfd0(0x1db),void 0x0),q(this,_0x11dfd0(0x441),new _0x4ae454(()=>this['makeDirty'](!0x0),()=>this[_0x11dfd0(0x36f)]())),q(this,_0x11dfd0(0x28b),!0x0),q(this,'_drawingType',_0x204a86['DRAWING_SHAPE']),q(this,_0x11dfd0(0x2da),!0x0),this[_0x11dfd0(0x1db)]={..._0x3a506a},this['_formulaAnimation'][_0x11dfd0(0x26a)](_0x3a506a[_0x11dfd0(0x349)],_0x3a506a['animateFormulaPresentation']!==!0x1),this[_0x11dfd0(0x3e9)](),this[_0x11dfd0(0x36f)]();}[_0x40a3e1(0x3e9)](){const _0x90bfbd=_0x40a3e1;this[_0x90bfbd(0x3be)][_0x90bfbd(0x42f)](_0x45af16=>{this['_updateSrcRectByTransform'](_0x45af16);});}[_0x40a3e1(0x240)](_0x30b5f0){const _0x2e96ca=_0x40a3e1;this[_0x2e96ca(0x1db)]['prstGeom']=_0x30b5f0;}[_0x40a3e1(0x2bc)](_0x206d85){const _0x41f013=_0x40a3e1;if(this[_0x41f013(0x1db)][_0x41f013(0x3cb)])return null;let _0x5cbb5a=this['getInverseCoord'](_0x206d85),{width:_0x2c4e3f,height:_0xa8e2b1}=this[_0x41f013(0x43c)]();return _0x271bf0(this['_hyperLinkRegions'],{'x':(this[_0x41f013(0x405)]?-_0x5cbb5a['x']:_0x5cbb5a['x'])+_0x2c4e3f/0x2,'y':_0x5cbb5a['y']+_0xa8e2b1/0x2});}[_0x40a3e1(0x29d)](_0x1f0bdf){const _0x5c5b55=_0x40a3e1;this[_0x5c5b55(0x1db)]['isEditing']=_0x1f0bdf,this[_0x5c5b55(0x33f)](!0x0);}[_0x40a3e1(0x43f)](_0x4c5dcf,_0x1b6036=!0x0){const _0x35ea31=_0x40a3e1;this[_0x35ea31(0x441)][_0x35ea31(0x26a)](_0x4c5dcf,_0x1b6036),this[_0x35ea31(0x1db)][_0x35ea31(0x349)]=_0x4c5dcf,this[_0x35ea31(0x36f)](),this['makeDirty'](!0x0);}[_0x40a3e1(0x36f)](){const _0x5ad028=_0x40a3e1;let _0x4b1bea=this[_0x5ad028(0x1db)]['shapeModel'],_0x57c36b=_0x4b1bea['getShapeTextData'](),_0x221ef5=_0x557c0f(_0x57c36b==null?void 0x0:_0x57c36b['dataModel']),_0x74e459=_0x221ef5==null?void 0x0:_0x221ef5['doc'],_0x3a287a=this['_formulaAnimation'][_0x5ad028(0x25a)]();if(!_0x74e459||_0x3a287a[_0x5ad028(0x46d)]===0x0)return;_0x4b1bea['updateContext']({'width':this[_0x5ad028(0x294)],'height':this['height']});let _0x4f3087=_0x4b51b7({'documentData':_0x3a287a[_0x5ad028(0x241)](_0x31bb7f=>_0xb20a3a(_0x74e459,_0x31bb7f)),'height':this[_0x5ad028(0x222)],'shapeData':_0x4b1bea[_0x5ad028(0x295)](),'textRect':_0x4b1bea[_0x5ad028(0x1d5)]({'left':0x0,'top':0x0,'width':this[_0x5ad028(0x294)],'height':this[_0x5ad028(0x222)]}),'width':this[_0x5ad028(0x294)]});if(_0x4f3087){var _0x5f273d;this[_0x5ad028(0x340)](_0x4f3087[_0x5ad028(0x294)],_0x4f3087[_0x5ad028(0x222)]),(_0x5f273d=this[_0x5ad028(0x44c)]())==null||(_0x5f273d=_0x5f273d['getTransformer']())==null||_0x5f273d['debounceRefreshControls']();}}get[_0x40a3e1(0x43a)](){const _0x184d08=_0x40a3e1;return this[_0x184d08(0x1db)]['unitId'];}get['subUnitId'](){const _0xe6015d=_0x40a3e1;return this[_0xe6015d(0x1db)]['subUnitId'];}[_0x40a3e1(0x2f0)](_0x50668d){const _0x2b3ba2=_0x40a3e1;if(this[_0x2b3ba2(0x1db)][_0x2b3ba2(0x37c)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x32a01e,height:_0x432793}=this,{width:_0x40655a=0x0,height:_0x3b1695=0x0}=_0x50668d['preValue'],{left:_0x22ea8d=0x0,top:_0x3489a1=0x0,right:_0x434eaa=0x0,bottom:_0x44c414=0x0}=this[_0x2b3ba2(0x1db)][_0x2b3ba2(0x37c)],_0x5009ea=_0x22ea8d,_0x5d4e70=_0x3489a1,_0xe9021c=_0x434eaa,_0x2c7ed3=_0x44c414,_0x437db2=!0x1;if(_0x40655a!==0x0&&_0x40655a!==_0x32a01e){let _0x58d14a=_0x22ea8d/_0x40655a,_0x1f5f48=_0x434eaa/_0x40655a;_0x5009ea=_0x32a01e*_0x58d14a,_0xe9021c=_0x32a01e*_0x1f5f48,_0x437db2=!0x0;}if(_0x3b1695!==0x0&&_0x3b1695!==_0x432793){let _0x25d198=_0x3489a1/_0x3b1695,_0x3307a6=_0x44c414/_0x3b1695;_0x5d4e70=_0x432793*_0x25d198,_0x2c7ed3=_0x432793*_0x3307a6,_0x437db2=!0x0;}_0x437db2&&this[_0x2b3ba2(0x292)]({'left':_0x5009ea,'top':_0x5d4e70,'right':_0xe9021c,'bottom':_0x2c7ed3});}[_0x40a3e1(0x292)](_0x29adae){const _0x6d5b07=_0x40a3e1;this[_0x6d5b07(0x1db)][_0x6d5b07(0x37c)]=_0x29adae,this[_0x6d5b07(0x33f)](!0x0);}[_0x40a3e1(0x3b9)](_0x25071b){const _0x55eab5=_0x40a3e1;this[_0x55eab5(0x1db)][_0x55eab5(0x444)]=_0x25071b,this['makeDirty'](!0x0);}set['transform'](_0x3d4a71){const _0x2d1cf4=_0x40a3e1;this[_0x2d1cf4(0x247)]=_0x3d4a71;}get[_0x40a3e1(0x412)](){const _0x296b1f=_0x40a3e1;this['_transform']||this[_0x296b1f(0x2bf)]();let _0x221e3d=this[_0x296b1f(0x247)][_0x296b1f(0x2d9)]();return this['transformForAngle'](_0x221e3d);}get['shapeModel'](){const _0x4964c8=_0x40a3e1;return this[_0x4964c8(0x1db)]['shapeModel'];}get['shapeId'](){return this['_props']['shapeId'];}get['classType'](){return _0x5caa7e['SHAPE'];}['_draw'](_0x12ecc5,_0x1834ee,_0x24bea8,_0x3bed59){const _0x3e3279=_0x40a3e1;let _0x5dddf4=this[_0x3e3279(0x1db)]['shapeModel'];if(!_0x5dddf4||!_0x1834ee)return;let _0x2843f2=_0x24bea8??this[_0x3e3279(0x294)],_0x5084dc=_0x3bed59??this[_0x3e3279(0x222)],_0x1baa5d={'shapeType':_0x5dddf4['getShapeType'](),'width':_0x2843f2,'height':_0x5084dc},_0x5427bf={'renderMode':_0x200468[_0x3e3279(0x2e7)],'oKey':this['oKey'],'image':this['_props'][_0x3e3279(0x444)],'angle':this['angle']};_0x5dddf4[_0x3e3279(0x2e0)](_0x1baa5d),_0x12ecc5[_0x3e3279(0x26f)]();let _0x27a029={'top':0x0,'left':0x0,'width':_0x2843f2,'height':_0x5084dc},_0xf0c755=_0x5dddf4[_0x3e3279(0x438)](_0x27a029);_0xf0c755?this['_renderWithCache'](_0x12ecc5,_0xf0c755,_0x4cfe31=>{const _0x1eada2=_0x3e3279;_0x5dddf4[_0x1eada2(0x41c)](_0x4cfe31,_0x27a029,_0x5427bf);}):(this['_releaseRenderCache'](),_0x5dddf4['render'](_0x12ecc5,_0x27a029,_0x5427bf)),_0x12ecc5[_0x3e3279(0x27d)]();let _0x5535ac=_0x5dddf4[_0x3e3279(0x1bb)](),_0x5d3983=_0x5dddf4['getShapeTextRect'](_0x27a029),_0x726b0a=_0x5dddf4[_0x3e3279(0x390)]();if(_0x5535ac&&_0x5d3983&&!_0x726b0a){_0x12ecc5[_0x3e3279(0x26f)](),this[_0x3e3279(0x36e)]()[_0x3e3279(0x405)]&&_0x12ecc5[_0x3e3279(0x281)](-0x1,0x1);let _0x5741c6=_0x2843f2/0x2,_0xb0223f=_0x5084dc/0x2;_0x12ecc5[_0x3e3279(0x2e4)](-_0x5741c6,-_0xb0223f),_0x12ecc5[_0x3e3279(0x38b)](),this[_0x3e3279(0x46a)](_0x12ecc5,_0x5535ac,_0x5d3983),_0x12ecc5[_0x3e3279(0x27d)]();}}['getDrawingPoints'](_0x41b0fc){}['_drawShapeText'](_0x59f6c1,_0x1290c5,_0x220876){const _0x32eb39=_0x40a3e1;var _0x4e67d8;this[_0x32eb39(0x40c)]=[],!this[_0x32eb39(0x1db)][_0x32eb39(0x3cb)]&&(!((_0x4e67d8=_0x1290c5['dataModel'])!=null&&_0x4e67d8[_0x32eb39(0x379)])&&_0x32eb39(0x2d6)in _0x1290c5&&_0x1290c5[_0x32eb39(0x2d6)]===!0x1?this[_0x32eb39(0x338)](_0x59f6c1,_0x1290c5,_0x220876):this[_0x32eb39(0x2f3)](_0x59f6c1,_0x1290c5,_0x220876));}[_0x40a3e1(0x338)](_0x37a961,_0x387d4b,_0x5236f9){const _0x210e34=_0x40a3e1;this[_0x210e34(0x2f3)](_0x37a961,{..._0x387d4b,'text':_0x387d4b[_0x210e34(0x319)]??'','dataModel':{'doc':_0x4e6013(_0x387d4b,_0x210e34(0x366)+this[_0x210e34(0x39f)])}},_0x5236f9);}[_0x40a3e1(0x2f3)](_0x34c28a,_0x5af303,_0x4e08d9){const _0x11a6b4=_0x40a3e1;_0xdd2b48(_0x34c28a,this[_0x11a6b4(0x441)],(_0x1bc3e3,_0x27ccd4,_0x451b11)=>{const _0x5394e0=_0x11a6b4;this['_drawRichTextLayer'](_0x1bc3e3,_0x5af303,_0x4e08d9,_0x27ccd4,_0x451b11===_0x5394e0(0x34d));});}[_0x40a3e1(0x3bb)](_0x1020e0,_0x42c185,_0x5b7c54,_0x5839b3,_0x42e4fa){const _0x187ec2=_0x40a3e1;let _0x57a543=this['_props']['localeService'];if(!_0x42c185['dataModel']||!_0x57a543)return;let _0x1c7924=_0x557c0f(_0x42c185[_0x187ec2(0x224)]);if(!_0x1c7924)return;let _0xf9d50e=_0x1c7924['doc'];if(!_0xf9d50e)return;let _0x16ee1d=_0xb20a3a(_0xf9d50e,_0x5839b3),_0xc2b095=_0x1c7924['va']??_0x11de6[_0x187ec2(0x32a)],_0x5382ba=_0x1c7924['ha']??_0x1388a6[_0x187ec2(0x1d9)],_0x472e36=Mr(this[_0x187ec2(0x1db)][_0x187ec2(0x450)][_0x187ec2(0x295)](),_0x42c185,_0x16ee1d),_0x5384ca=_0x42c185['isHorizontal'],_0x200d78=_0x56440a(_0x16ee1d,{'isHorizontal':_0x5384ca!==!0x1,'textRect':_0x5b7c54,'verticalAlign':_0xc2b095,'horizontalAlign':_0x5382ba,'wrapStrategy':_0x472e36[_0x187ec2(0x231)]}),_0x3c0152=new _0x18e868(_0x200d78),_0x52946d=new _0x12e277(_0x3c0152),_0x557636=_0x32a266[_0x187ec2(0x3d9)](_0x52946d,_0x57a543);_0x557636[_0x187ec2(0x1d8)]();let _0x167151=_0x557636[_0x187ec2(0x2be)]()[_0x187ec2(0x336)],_0x2aed75=_0x2ffc08({'contentHeight':_0x167151,'verticalAlign':_0xc2b095,'viewportHeight':_0x5b7c54[_0x187ec2(0x222)]});_0x3c0152[_0x187ec2(0x43e)]({'pageSize':{'width':_0x5384ca===!0x1?_0x5b7c54[_0x187ec2(0x222)]:_0x5b7c54[_0x187ec2(0x294)],'height':_0x338660(_0x16ee1d,_0x2aed75[_0x187ec2(0x3f2)])}}),_0x3c0152[_0x187ec2(0x325)]({'t':_0x2aed75[_0x187ec2(0x274)]}),_0x557636[_0x187ec2(0x1d8)]();let _0x382e2f=new _0x214f4b(_0x187ec2(0x45a)+this[_0x187ec2(0x39f)],_0x557636,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x187ec2(0x33f)](!0x0)});_0x382e2f[_0x187ec2(0x340)](_0x5b7c54[_0x187ec2(0x294)],_0x2aed75[_0x187ec2(0x3f2)]),_0x1020e0[_0x187ec2(0x26f)](),_0x1020e0[_0x187ec2(0x1c1)](_0x5b7c54[_0x187ec2(0x3d3)],_0x5b7c54[_0x187ec2(0x473)]),_0x472e36['clip']&&(_0x1020e0[_0x187ec2(0x38b)](),_0x1020e0['rect'](0x0,_0x2aed75[_0x187ec2(0x3fa)],_0x5b7c54[_0x187ec2(0x294)],_0x2aed75[_0x187ec2(0x2cc)]),_0x1020e0[_0x187ec2(0x347)]()),_0x2aed75['contentVerticalOffset']&&_0x1020e0['translateWithPrecision'](0x0,_0x2aed75[_0x187ec2(0x1f3)]),_0x382e2f[_0x187ec2(0x3e5)](_0x1020e0),_0x42e4fa&&(this[_0x187ec2(0x40c)]=_0x2db872(_0x382e2f,{'left':_0x5b7c54[_0x187ec2(0x3d3)],'top':_0x5b7c54[_0x187ec2(0x473)]+_0x2aed75['contentVerticalOffset']},_0x472e36[_0x187ec2(0x347)]?{'left':_0x5b7c54[_0x187ec2(0x3d3)],'right':_0x5b7c54['left']+_0x5b7c54[_0x187ec2(0x294)],'top':_0x5b7c54[_0x187ec2(0x473)]+_0x2aed75[_0x187ec2(0x3fa)],'bottom':_0x5b7c54['top']+_0x2aed75['clipTop']+_0x2aed75[_0x187ec2(0x2cc)]}:void 0x0)),_0x1020e0[_0x187ec2(0x27d)](),_0x382e2f[_0x187ec2(0x223)](),_0x557636[_0x187ec2(0x223)](),_0x52946d['dispose'](),_0x3c0152['dispose']();}[_0x40a3e1(0x41c)](_0x43e30d,_0x216807,_0x47229a=!0x1){const _0x6c684f=_0x40a3e1;if(!this[_0x6c684f(0x3e8)])return this[_0x6c684f(0x33f)](!0x1),this;let {width:_0x41fb9f,height:_0x53f452,left:_0x7e6f32,top:_0x3ca2d3}=this,_0x352598=this[_0x6c684f(0x43c)]();if(_0x41fb9f=_0x352598['width'],_0x53f452=_0x352598[_0x6c684f(0x222)],_0x7e6f32=_0x352598[_0x6c684f(0x3d3)],_0x3ca2d3=_0x352598[_0x6c684f(0x473)],this[_0x6c684f(0x436)](_0x216807)){let {top:_0x513887,left:_0xcd67a5,bottom:_0x406b48,right:_0x53e0ad}=_0x216807[_0x6c684f(0x213)];if(_0x41fb9f+this[_0x6c684f(0x230)]+_0x7e6f32<_0xcd67a5||_0x53e0ad<_0x7e6f32||_0x53f452+this[_0x6c684f(0x230)]+_0x3ca2d3<_0x513887||_0x406b48<_0x3ca2d3)return this;}let _0x2eba49=_0x7e6f32+_0x41fb9f/0x2,_0x409322=_0x3ca2d3+_0x53f452/0x2,_0x544b11=this[_0x6c684f(0x412)][_0x6c684f(0x411)]();if(this[_0x6c684f(0x1db)]['isEditing']){let _0xc9f760=this[_0x6c684f(0x36e)](),_0x2b4efb=new _0x270023();_0x2b4efb[_0x6c684f(0x362)]({..._0xc9f760}),_0x544b11=_0x2b4efb[_0x6c684f(0x411)]();}return _0x43e30d[_0x6c684f(0x26f)](),this[_0x6c684f(0x1db)][_0x6c684f(0x450)]['isRenderLinePointsMode']===!0x0||_0x43e30d[_0x6c684f(0x412)](_0x544b11[0x0],_0x544b11[0x1],_0x544b11[0x2],_0x544b11[0x3],_0x2eba49,_0x409322),this['_draw'](_0x43e30d,_0x216807,_0x41fb9f,_0x53f452),_0x43e30d[_0x6c684f(0x27d)](),this['makeDirty'](!0x1),this;}['getInverseCoord'](_0xae96ce){const _0x48e3db=_0x40a3e1;let {left:_0x521619,top:_0x3f5800,width:_0xc44c6f,height:_0x3fdbac}=this[_0x48e3db(0x43c)](),_0x8ee5c8=this[_0x48e3db(0x412)][_0x48e3db(0x411)](),_0x30bee8=_0x521619+_0xc44c6f/0x2,_0x153435=_0x3f5800+_0x3fdbac/0x2,_0x2a94b1=new _0x270023([_0x8ee5c8[0x0],_0x8ee5c8[0x1],_0x8ee5c8[0x2],_0x8ee5c8[0x3],_0x30bee8,_0x153435]),_0x13ff95=this['getParent']();return(this['isInGroup']&&(_0x13ff95==null?void 0x0:_0x13ff95[_0x48e3db(0x3b0)])===_0x5caa7e[_0x48e3db(0x45d)]?_0x13ff95['ancestorTransform'][_0x48e3db(0x376)](_0x2a94b1):_0x2a94b1)[_0x48e3db(0x420)]()[_0x48e3db(0x415)](_0xae96ce);}['isHit'](_0x4d24ef){const _0x34ea34=_0x40a3e1;let {left:_0x529574,top:_0x17fd00,width:_0x233339,height:_0x8181d5}=this[_0x34ea34(0x43c)](),_0xd012ff=_0x529574+_0x233339/0x2,_0x19afc0=_0x17fd00+_0x8181d5/0x2,_0x11d197=this[_0x34ea34(0x412)]['getMatrix'](),_0x15d8db=new _0x270023([_0x11d197[0x0],_0x11d197[0x1],_0x11d197[0x2],_0x11d197[0x3],_0xd012ff,_0x19afc0]),_0x4998ea=this[_0x34ea34(0x374)](),_0x2482e9=(this[_0x34ea34(0x384)]&&(_0x4998ea==null?void 0x0:_0x4998ea[_0x34ea34(0x3b0)])===_0x5caa7e['GROUP']?_0x4998ea['ancestorTransform'][_0x34ea34(0x376)](_0x15d8db):_0x15d8db)['invert']()[_0x34ea34(0x415)](_0x4d24ef),_0x48e8d4=_0x233339/0x2,_0x1efecd=_0x8181d5/0x2,_0x258ec3=this['_props'][_0x34ea34(0x450)];return _0x258ec3&&_0x258ec3[_0x34ea34(0x390)]()?_0x258ec3[_0x34ea34(0x202)](_0x2482e9['x'],_0x2482e9['y'],_0x233339,_0x8181d5):_0x2482e9['x']>=-_0x48e8d4-this[_0x34ea34(0x230)]/0x2&&_0x2482e9['x']<=_0x48e8d4+this[_0x34ea34(0x230)]/0x2&&_0x2482e9['y']>=-_0x1efecd-this[_0x34ea34(0x230)]/0x2&&_0x2482e9['y']<=_0x1efecd+this[_0x34ea34(0x230)]/0x2;}['dispose'](){const _0x15d1b6=_0x40a3e1;this[_0x15d1b6(0x441)][_0x15d1b6(0x223)](),this[_0x15d1b6(0x1db)][_0x15d1b6(0x450)]=null,super[_0x15d1b6(0x223)]();}},Nr=class extends _0x4d9757{constructor(_0x336a25,_0x222256){const _0x524aac=_0x40a3e1;super(_0x336a25,_0x222256),q(this,'_shapeId',null),q(this,_0x524aac(0x3ad),null),q(this,_0x524aac(0x34f),null),q(this,_0x524aac(0x465),null),_0x222256&&this['setShapeProps'](_0x222256);}[_0x40a3e1(0x2fc)](){const _0x32c5ca=_0x40a3e1;return{'unitId':this[_0x32c5ca(0x34f)],'subUnitId':this[_0x32c5ca(0x465)],'drawingId':this[_0x32c5ca(0x3d8)]};}[_0x40a3e1(0x268)](_0x57acc6){const _0x2d66cd=_0x40a3e1;_0x57acc6[_0x2d66cd(0x464)]!==void 0x0&&(this[_0x2d66cd(0x3d8)]=_0x57acc6[_0x2d66cd(0x464)]),_0x57acc6['adjName']!==void 0x0&&(this[_0x2d66cd(0x3ad)]=_0x57acc6[_0x2d66cd(0x391)]),_0x57acc6['unitId']!==void 0x0&&(this[_0x2d66cd(0x34f)]=_0x57acc6['unitId']),_0x57acc6[_0x2d66cd(0x330)]!==void 0x0&&(this[_0x2d66cd(0x465)]=_0x57acc6[_0x2d66cd(0x330)]),this[_0x2d66cd(0x3a6)]({'width':_0x57acc6[_0x2d66cd(0x294)],'height':_0x57acc6[_0x2d66cd(0x222)]});}[_0x40a3e1(0x1ed)](_0x4aaa5b){const _0x348eb5=_0x40a3e1;_0x597d7e['drawWith'](_0x4aaa5b,{'radius':_0x2c02a7[_0x348eb5(0x22c)],'fill':_0x2c02a7[_0x348eb5(0x284)],'stroke':_0x2c02a7[_0x348eb5(0x423)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x426c96,_0x444c04){return function(_0x151fe3,_0x1a1a86){_0x444c04(_0x151fe3,_0x1a1a86,_0x426c96);};}function X(_0x2fcb20,_0x22f3dc,_0x2d5f58,_0x1c6a25){const _0x4e1623=_0x40a3e1;var _0x839ff3=arguments[_0x4e1623(0x46d)],_0x18069f=_0x839ff3<0x3?_0x22f3dc:_0x1c6a25===null?_0x1c6a25=Object[_0x4e1623(0x2c9)](_0x22f3dc,_0x2d5f58):_0x1c6a25,_0x3d4fcb;if(typeof Reflect==_0x4e1623(0x32c)&&typeof Reflect[_0x4e1623(0x22a)]==_0x4e1623(0x380))_0x18069f=Reflect[_0x4e1623(0x22a)](_0x2fcb20,_0x22f3dc,_0x2d5f58,_0x1c6a25);else{for(var _0x3f88df=_0x2fcb20[_0x4e1623(0x46d)]-0x1;_0x3f88df>=0x0;_0x3f88df--)(_0x3d4fcb=_0x2fcb20[_0x3f88df])&&(_0x18069f=(_0x839ff3<0x3?_0x3d4fcb(_0x18069f):_0x839ff3>0x3?_0x3d4fcb(_0x22f3dc,_0x2d5f58,_0x18069f):_0x3d4fcb(_0x22f3dc,_0x2d5f58))||_0x18069f);}return _0x839ff3>0x3&&_0x18069f&&Object[_0x4e1623(0x288)](_0x22f3dc,_0x2d5f58,_0x18069f),_0x18069f;}let Z=class extends _0x1f1ba9{constructor(_0x307d60,_0xe1873a,_0x5df784,_0x2915ec,_0x5dc381,_0x4cc6bd){const _0x58f025=_0x40a3e1;super(),this[_0x58f025(0x2f1)]=_0x307d60,this[_0x58f025(0x285)]=_0xe1873a,this[_0x58f025(0x1d3)]=_0x5df784,this[_0x58f025(0x414)]=_0x2915ec,this[_0x58f025(0x1c2)]=_0x5dc381,this[_0x58f025(0x3ed)]=_0x4cc6bd,q(this,_0x58f025(0x432),new Map()),this[_0x58f025(0x1c6)](this['_shapeFormulaService']['presentationChanged$'][_0x58f025(0x1ff)](_0x337a59=>{const _0x3cf06c=_0x58f025;var _0x3dc53e;(_0x3dc53e=this[_0x3cf06c(0x432)][_0x3cf06c(0x270)](this['_formulaKey'](_0x337a59[_0x3cf06c(0x43a)],_0x337a59[_0x3cf06c(0x330)],_0x337a59['shapeId'])))==null||_0x3dc53e['forEach'](_0xd957b2=>_0xd957b2[_0x3cf06c(0x43f)](_0x337a59[_0x3cf06c(0x21d)],_0x337a59['animationEnabled']));})),this[_0x58f025(0x1c6)](this[_0x58f025(0x2f1)][_0x58f025(0x2f6)][_0x58f025(0x1ff)](_0x4817eb=>{const _0x2b82b9=_0x58f025;_0x4817eb[_0x2b82b9(0x46b)](_0x24aafe=>{const _0x3f3434=_0x2b82b9;this['_shapeFormulaService'][_0x3f3434(0x1e2)]({'unitId':_0x24aafe[_0x3f3434(0x43a)],'subUnitId':_0x24aafe[_0x3f3434(0x330)],'shapeId':_0x24aafe[_0x3f3434(0x35b)]}),this[_0x3f3434(0x432)]['delete'](this[_0x3f3434(0x1c8)](_0x24aafe['unitId'],_0x24aafe[_0x3f3434(0x330)],_0x24aafe[_0x3f3434(0x35b)]));});}));}[_0x40a3e1(0x359)](_0x461d5c,_0xc48a2b,_0x2fa6a4){const _0x2c0cea=_0x40a3e1;let {transform:_0x2cb953,drawingType:_0x226354,srcRect:_0x4fdb4c,prstGeom:_0x46b686,groupId:_0x23ffa6,unitId:_0x56581e,subUnitId:_0x5cff17,drawingId:_0x29e28c,isMultiTransform:_0x24c463,transforms:_0x353246,hidden:_0xc3f1bc,selectable:_0x5d2a49}=_0x461d5c;if(_0x226354!==_0x204a86['DRAWING_SHAPE']||!this[_0x2c0cea(0x2f1)][_0x2c0cea(0x243)]()||_0x2cb953==null)return;let _0xb32390=this[_0x2c0cea(0x2f1)][_0x2c0cea(0x1b7)](),_0x392133=_0x24c463&&_0x353246?_0x353246:[_0x2cb953],_0x31168e=[];for(let _0x4bea31 of _0x392133){let {left:_0x3d81cd,top:_0x16a3f8,width:_0x106cb5,height:_0x569bd2,angle:_0xfaa9cf,flipX:_0x324f9e,flipY:_0x1aebf2,skewX:_0x50a21d,skewY:_0x4489ce}=_0x4bea31,_0x203610=_0x392133[_0x2c0cea(0x25e)](_0x4bea31),_0x19780a=_0x4eca2a({'unitId':_0x56581e,'subUnitId':_0x5cff17,'drawingId':_0x29e28c},_0x24c463?_0x203610:void 0x0),_0x293eab=_0xc48a2b[_0x2c0cea(0x2d2)](_0x19780a);if(_0x293eab!=null){let _0x17a898={'unitId':_0x56581e,'subUnitId':_0x5cff17,'shapeId':_0x29e28c};_0x293eab instanceof J&&this[_0x2c0cea(0x3de)](_0x293eab,_0x17a898),_0x293eab['transformByState']({'left':_0x3d81cd,'top':_0x16a3f8,'width':_0x106cb5,'height':_0x569bd2,'angle':_0xfaa9cf,'flipX':_0x324f9e,'flipY':_0x1aebf2,'skewX':_0x50a21d,'skewY':_0x4489ce});continue;}let _0x464b10=this[_0x2c0cea(0x2f1)][_0x2c0cea(0x310)](_0x56581e,_0x5cff17),_0x13e7dd=_0x464b10[_0x2c0cea(0x25e)](_0x29e28c);if(_0xc48a2b[_0x2c0cea(0x2d2)](_0x19780a)||!this['_drawingManagerService'][_0x2c0cea(0x243)]())continue;let _0x440413=this['_sheetsShapeService'][_0x2c0cea(0x3f9)](_0x56581e,_0x5cff17,_0x29e28c);if(!_0x440413)continue;let _0x4cc752=_0x421dc8(_0x440413[_0x2c0cea(0x3e1)]())?{..._0xc2fb67,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xc2fb67,_0x3722ac=_0x440413[_0x2c0cea(0x295)]()[_0x2c0cea(0x40f)],_0x3edc98={'unitId':_0x56581e,'subUnitId':_0x5cff17,'shapeId':_0x29e28c};_0x3722ac&&this[_0x2c0cea(0x3ed)][_0x2c0cea(0x3f1)](_0x3edc98,_0x3722ac);let _0x4c39ee=new J(_0x19780a,{..._0x4bea31,'zIndex':_0x13e7dd===-0x1?_0x464b10[_0x2c0cea(0x46d)]-0x1:_0x13e7dd,'shapeModel':_0x440413,'localeService':this[_0x2c0cea(0x1d3)],'shapeId':_0x29e28c,'unitId':_0x56581e,'subUnitId':_0x5cff17,'visible':_0xc3f1bc!==!0x0,'evented':_0x5d2a49!==!0x1,'formulaPresentation':_0x3722ac?this['_shapeFormulaService'][_0x2c0cea(0x22b)](_0x3edc98):void 0x0,'animateFormulaPresentation':(_0x3722ac==null?void 0x0:_0x3722ac['animationEnabled'])!==!0x1,'transformerConfig':_0x4cc752});if(_0x3722ac){let _0x2b771b=this['_formulaKey'](_0x56581e,_0x5cff17,_0x29e28c),_0x575d04=this[_0x2c0cea(0x432)][_0x2c0cea(0x270)](_0x2b771b)??new Set();_0x575d04[_0x2c0cea(0x38e)](_0x4c39ee),this[_0x2c0cea(0x432)]['set'](_0x2b771b,_0x575d04);}_0xc48a2b[_0x2c0cea(0x3ae)](_0x4c39ee,_0x1301e0),_0xb32390&&_0xc48a2b[_0x2c0cea(0x47b)](_0x4c39ee),_0x23ffa6&&_0x4218fd({'drawingId':_0x23ffa6,'unitId':_0x56581e,'subUnitId':_0x5cff17},_0x4c39ee,_0xc48a2b,this['_drawingManagerService']),_0x46b686!=null&&_0x4c39ee['setPrstGeom'](_0x46b686),_0x4fdb4c!=null&&_0x4c39ee['setSrcRect'](_0x4fdb4c);let _0x2c895e=this[_0x2c0cea(0x2fe)](_0x4c39ee,_0x440413[_0x2c0cea(0x295)]());if(_0x2c895e){var _0x156ae4;_0x2fa6a4==null||(_0x156ae4=_0x2fa6a4[_0x2c0cea(0x23f)])==null||_0x156ae4['add'](_0x2c895e);}_0x31168e['push'](_0x4c39ee);}return _0x31168e;}[_0x40a3e1(0x1c8)](_0x2c59f0,_0x35581a,_0xb16851){return _0x2c59f0+'\x00'+_0x35581a+'\x00'+_0xb16851;}[_0x40a3e1(0x3de)](_0x1ad2ec,_0x25e372){const _0x36611c=_0x40a3e1;let _0x293af9=this[_0x36611c(0x285)][_0x36611c(0x3f9)](_0x25e372[_0x36611c(0x43a)],_0x25e372['subUnitId'],_0x25e372['shapeId']),_0xcad65=_0x293af9==null?void 0x0:_0x293af9['getShapeData']()['formulaBinding'],_0xaa8741=this[_0x36611c(0x1c8)](_0x25e372[_0x36611c(0x43a)],_0x25e372[_0x36611c(0x330)],_0x25e372[_0x36611c(0x464)]);if(_0xcad65){this[_0x36611c(0x3ed)][_0x36611c(0x3f1)](_0x25e372,_0xcad65);let _0x36773=this[_0x36611c(0x432)][_0x36611c(0x270)](_0xaa8741)??new Set();_0x36773[_0x36611c(0x38e)](_0x1ad2ec),this[_0x36611c(0x432)]['set'](_0xaa8741,_0x36773);}else{var _0x798e84;this['_shapeFormulaService'][_0x36611c(0x1e2)](_0x25e372),(_0x798e84=this[_0x36611c(0x432)][_0x36611c(0x270)](_0xaa8741))==null||_0x798e84['delete'](_0x1ad2ec);}_0x1ad2ec[_0x36611c(0x43f)](_0xcad65?this[_0x36611c(0x3ed)][_0x36611c(0x22b)](_0x25e372):void 0x0,(_0xcad65==null?void 0x0:_0xcad65[_0x36611c(0x3a8)])!==!0x1);}[_0x40a3e1(0x3dd)](_0x346a14){const _0x5b5963=_0x40a3e1;let _0x882b71=_0x346a14[_0x5b5963(0x450)]['getShapeData'](),_0x2da268=_0x882b71[_0x5b5963(0x2fb)];if(!_0x2da268||_0x2da268[_0x5b5963(0x2bb)]!==_0xbc8bca[_0x5b5963(0x22e)]||!_0x2da268['fillImageSource']){_0x346a14[_0x5b5963(0x3b9)](void 0x0);return;}this[_0x5b5963(0x2fe)](_0x346a14,_0x882b71);}[_0x40a3e1(0x2fe)](_0x124d81,_0x5bb5ce){const _0x2f408d=_0x40a3e1;let _0x1dc9eb=_0x5bb5ce[_0x2f408d(0x2fb)];if(!_0x1dc9eb||_0x1dc9eb[_0x2f408d(0x2bb)]!==_0xbc8bca['PictureFill']||!_0x1dc9eb[_0x2f408d(0x217)])return;let _0xd9298a=_0x1dc9eb[_0x2f408d(0x217)],_0x593c65=_0x1dc9eb[_0x2f408d(0x2e1)]??_0x58be7c[_0x2f408d(0x260)],_0x47917d=this['_imageIoService'][_0x2f408d(0x1e5)](_0xd9298a,_0x593c65);if(_0x47917d){_0x124d81[_0x2f408d(0x3b9)](_0x47917d);return;}return this[_0x2f408d(0x205)](_0x124d81,_0xd9298a,_0x593c65);}async['_loadAndSetImage'](_0x303f58,_0x3009ab,_0x44f3c4){const _0x2333bb=_0x40a3e1;let _0x431f0f;try{if(_0x44f3c4===_0x58be7c[_0x2333bb(0x3c5)])_0x431f0f=await this[_0x2333bb(0x414)][_0x2333bb(0x3c7)](_0x3009ab);else{if(_0x44f3c4===_0x58be7c[_0x2333bb(0x260)])try{_0x431f0f=await this[_0x2333bb(0x1c2)][_0x2333bb(0x3c7)](_0x3009ab);}catch{_0x431f0f=_0x3009ab;}else _0x431f0f=_0x3009ab;}}catch(_0x407f44){console[_0x2333bb(0x27a)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x407f44);return;}await new Promise(_0x26c4b0=>{const _0x4c2f6d=_0x2333bb;let _0x5755a8=new window[(_0x4c2f6d(0x459))]();_0x5755a8[_0x4c2f6d(0x2b9)]=()=>{const _0x49576a=_0x4c2f6d;this['_imageIoService'][_0x49576a(0x440)](_0x3009ab,_0x44f3c4,_0x5755a8),_0x303f58[_0x49576a(0x3b9)](_0x5755a8),_0x26c4b0();},_0x5755a8[_0x4c2f6d(0x1e4)]=()=>{const _0x434fc=_0x4c2f6d;console['error'](_0x434fc(0x333),_0x3009ab),_0x26c4b0();},_0x5755a8[_0x4c2f6d(0x39d)]=_0x431f0f;});}};Z=X([Y(0x0,_0x2d58e3),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x34f57e(_0x1fc669)),Y(0x3,_0x227de8),Y(0x4,_0x4646eb),Y(0x5,_0x34f57e(_0x343dc9))],Z);let Pr=class extends _0x1f1ba9{constructor(_0x349867,_0x1ea8ab,_0x35a104,_0x4b7262,_0x4ed905,_0xaf8932){const _0x2299bd=_0x40a3e1;super(),this[_0x2299bd(0x2f1)]=_0x349867,this['_sheetsShapeService']=_0x1ea8ab,this[_0x2299bd(0x258)]=_0x35a104,this['_sheetDrawingShapeRenderController']=_0x4b7262,this['_univerInstanceService']=_0x4ed905,this[_0x2299bd(0x279)]=_0xaf8932,q(this,_0x2299bd(0x27c),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x2299bd(0x408),void 0x0),q(this,_0x2299bd(0x203),[]),q(this,_0x2299bd(0x35c),0x0),q(this,_0x2299bd(0x1f7),0x0),q(this,'_baseShapeWidth',0x0),q(this,_0x2299bd(0x40a),0x0),q(this,_0x2299bd(0x3f8),!0x1),q(this,_0x2299bd(0x26d),void 0x0),q(this,_0x2299bd(0x1d7),void 0x0),q(this,_0x2299bd(0x472),void 0x0),q(this,_0x2299bd(0x395),void 0x0),q(this,_0x2299bd(0x3d6),!0x1),this[_0x2299bd(0x28e)](),this[_0x2299bd(0x451)]();}['_getShapeAdjustPointListById'](_0x265379,_0x34f852,_0x235c7c){const _0x1acf88=_0x40a3e1;let _0x507964=this[_0x1acf88(0x285)][_0x1acf88(0x3f9)](_0x265379,_0x34f852,_0x235c7c);if(_0x507964)return _0x507964[_0x1acf88(0x3b2)]();}[_0x40a3e1(0x377)](){const _0x5e5ca0=_0x40a3e1;this[_0x5e5ca0(0x3a2)]();}[_0x40a3e1(0x1e9)](){const _0x13bc5c=_0x40a3e1;this[_0x13bc5c(0x3f0)](!0x0);}['setShouldShowAdjust'](_0x3152b7){const _0x1aed7d=_0x40a3e1;this[_0x1aed7d(0x3d6)]=_0x3152b7;}[_0x40a3e1(0x404)](_0x71f1a6,_0x55e003,_0x172cb1,_0x437a46){const _0x5b1ac4=_0x40a3e1;let _0x2b1826=this['_sheetsShapeService'][_0x5b1ac4(0x3f9)](_0x71f1a6,_0x55e003,_0x172cb1);if(_0x2b1826)return _0x2b1826[_0x5b1ac4(0x42e)](_0x437a46);}[_0x40a3e1(0x2a7)](_0x4412eb=!0x1){const _0x4ff82d=_0x40a3e1;if(this[_0x4ff82d(0x34f)]===null||this[_0x4ff82d(0x465)]===null||this[_0x4ff82d(0x27c)]===null)return;let _0x589037=this['_renderManagerService']['getRenderUnitById'](this[_0x4ff82d(0x34f)]);if(!_0x589037||!_0x589037[_0x4ff82d(0x433)](_0x22bccb)[_0x4ff82d(0x23e)]())return;let {scene:_0x1ce0ab}=_0x589037,_0x4c9253={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4ff82d(0x27c)]},_0xe64eb9=this[_0x4ff82d(0x2f1)]['getDrawingByParam'](_0x4c9253),{transform:_0x2fcc39}=_0xe64eb9;if(!_0x2fcc39||_0xe64eb9[_0x4ff82d(0x221)]!==_0x204a86[_0x4ff82d(0x41a)])return;let {left:_0x51bb68,top:_0x3a7200,width:_0x432ad4,height:_0x43f0a1,flipX:_0x21a940,flipY:_0x5da3d0,angle:_0x369434=0x0}=_0x2fcc39;if(_0x51bb68===void 0x0||_0x3a7200===void 0x0)return;if(_0x4412eb){let _0x2239b9=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this[_0x4ff82d(0x465)],this[_0x4ff82d(0x27c)]);_0x2239b9==null||_0x2239b9[_0x4ff82d(0x2e0)]({'width':_0x432ad4??0x0,'height':_0x43f0a1??0x0}),this[_0x4ff82d(0x408)]=_0x2239b9==null?void 0x0:_0x2239b9[_0x4ff82d(0x3b2)]();}let _0x53461f=this['_activeShapeAdjustPointList'];for(let _0x131329=0x0;_0x131329<_0x53461f[_0x4ff82d(0x46d)];_0x131329++){let _0x56f8c7=_0x53461f[_0x131329],_0x4a1b96=_0x56f8c7['x'],_0xc4084f=_0x56f8c7['y'];if(_0x21a940&&(_0x4a1b96=(_0x432ad4||0x0)-_0x4a1b96),_0x5da3d0&&(_0xc4084f=(_0x43f0a1||0x0)-_0xc4084f),_0x369434!==0x0){let _0xf50673=(_0x432ad4||0x0)/0x2,_0x3d313f=(_0x43f0a1||0x0)/0x2,_0x4758bb=_0x369434*Math['PI']/0xb4,_0x9d37b2=Math[_0x4ff82d(0x3d2)](_0x4758bb),_0x2e22d4=Math[_0x4ff82d(0x332)](_0x4758bb),_0x3e8dbe=_0x4a1b96-_0xf50673,_0x3c5ef5=_0xc4084f-_0x3d313f;_0x4a1b96=_0xf50673+(_0x3e8dbe*_0x9d37b2-_0x3c5ef5*_0x2e22d4),_0xc4084f=_0x3d313f+(_0x3e8dbe*_0x2e22d4+_0x3c5ef5*_0x9d37b2);}let _0x5b6365={'x':_0x4a1b96,'y':_0xc4084f,'adjName':_0x56f8c7[_0x4ff82d(0x391)]};this[_0x4ff82d(0x2c7)](_0x1ce0ab,_0x5b6365,_0x5b6365['adjName'],_0x51bb68,_0x3a7200,this[_0x4ff82d(0x34f)],this[_0x4ff82d(0x465)]);}}[_0x40a3e1(0x3f0)](_0x1320db=!0x1){const _0x378dc7=_0x40a3e1;_0x1320db&&(this[_0x378dc7(0x3a2)](),this['_createShapeAdjustControls'](_0x1320db));}[_0x40a3e1(0x2c7)](_0xe83146,_0x460172,_0x5624ca,_0x4ef103,_0x5e2dc7,_0x22f93b,_0x13fb25){const _0xa15974=_0x40a3e1;if(!this[_0xa15974(0x27c)])return;let _0x3b48d5=_0xe83146['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0xa15974(0x27c)]+'-'+_0x5624ca);if(_0x3b48d5){_0x3b48d5[_0xa15974(0x3a6)]({'left':_0x460172['x']+_0x4ef103-_0x2c02a7[_0xa15974(0x22c)],'top':_0x460172['y']+_0x5e2dc7-_0x2c02a7[_0xa15974(0x22c)]});return;}let _0x3ba40d={'left':_0x460172['x']+_0x4ef103-_0x2c02a7['adjHandleSize'],'top':_0x460172['y']+_0x5e2dc7-_0x2c02a7[_0xa15974(0x22c)],'adjName':_0x5624ca,'shapeId':this[_0xa15974(0x27c)],'unitId':_0x22f93b,'subUnitId':_0x13fb25,'width':_0x2c02a7[_0xa15974(0x22c)]+0x8,'height':_0x2c02a7['adjHandleSize']+0x8,'zIndex':_0x1301e0+0x1,'evented':!0x0},_0x57fc99=new Nr(_0xa15974(0x21c)+this['_activeShapeId']+'-'+_0x5624ca,_0x3ba40d);this[_0xa15974(0x203)][_0xa15974(0x346)](_0x57fc99),this[_0xa15974(0x286)](_0x57fc99,_0xe83146,_0x5624ca),_0xe83146['addObject'](_0x57fc99,_0x1301e0+0x1);}[_0x40a3e1(0x3a2)](){const _0x22d3ad=_0x40a3e1;this[_0x22d3ad(0x203)][_0x22d3ad(0x46d)]!==0x0&&(this[_0x22d3ad(0x203)][_0x22d3ad(0x46b)](_0x2bddd0=>{const _0x4ffa03=_0x22d3ad;_0x2bddd0[_0x4ffa03(0x223)]();}),this[_0x22d3ad(0x203)]=[]);}[_0x40a3e1(0x2b1)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x5a8897,_0x16cf87){const _0x2a7283=_0x40a3e1;var _0x3790bf;let _0x1c932d={'x':0x0,'y':0x0};if(!_0x5a8897||!_0x16cf87)return _0x1c932d;let _0x4840a2=this['_renderManagerService']['getRenderUnitById'](_0x5a8897);if(!_0x4840a2||!_0x4840a2['with'](_0x22bccb)['getSkeleton'](_0x16cf87))return _0x1c932d;let _0x1094c8=_0x4840a2[_0x2a7283(0x433)](_0x1d24d6),_0x5db560=_0x1094c8==null?void 0x0:_0x1094c8[_0x2a7283(0x369)]();if(!_0x5db560)return _0x1c932d;let _0x1a1ba5=(_0x3790bf=this[_0x2a7283(0x2c3)][_0x2a7283(0x2fd)](_0x5a8897))==null?void 0x0:_0x3790bf[_0x2a7283(0x475)](_0x16cf87);if(!_0x1a1ba5)return _0x1c932d;let _0x47b3df=_0xf578ae(_0x5db560['sheetViewStartRow'],_0x5db560['sheetViewStartColumn'],_0x4840a2[_0x2a7283(0x25b)],_0x1a1ba5);return _0x47b3df?{'x':_0x47b3df[_0x2a7283(0x253)],'y':_0x47b3df[_0x2a7283(0x393)]}:_0x1c932d;}[_0x40a3e1(0x454)](_0x4ed136,_0x4b6d58){const _0xd4e94a=_0x40a3e1;var _0x2c4a79;let _0x67d2b4=(_0x2c4a79=this[_0xd4e94a(0x2c3)][_0xd4e94a(0x2fd)](_0x4ed136))==null?void 0x0:_0x2c4a79[_0xd4e94a(0x475)](_0x4b6d58);return(_0x67d2b4==null?void 0x0:_0x67d2b4[_0xd4e94a(0x474)]())??0x1;}[_0x40a3e1(0x286)](_0xb4990b,_0x2e4828,_0x33d698){const _0x757556=_0x40a3e1;this[_0x757556(0x1c6)](_0x35229e(_0xb4990b[_0x757556(0x200)][_0x757556(0x42f)]((_0x42d2d3,_0x2cb9ea)=>{const _0x90a069=_0x757556;var _0x40f686,_0x945445,_0x46c3d1,_0x28bd24;let _0x52ca53=_0xb4990b[_0x90a069(0x2fc)]();this[_0x90a069(0x26d)]=this['_getShapeAdjustInfosById'](_0x52ca53[_0x90a069(0x43a)],_0x52ca53['subUnitId'],_0x52ca53[_0x90a069(0x35b)],_0x33d698),this[_0x90a069(0x1d7)]=this[_0x90a069(0x285)][_0x90a069(0x3f9)](_0x52ca53[_0x90a069(0x43a)],_0x52ca53[_0x90a069(0x330)],_0x52ca53[_0x90a069(0x35b)]);let _0x155da9=this[_0x90a069(0x2f1)][_0x90a069(0x31f)]({'unitId':this[_0x90a069(0x34f)],'subUnitId':this[_0x90a069(0x465)],'drawingId':this[_0x90a069(0x27c)]}),{transform:_0x5df69d}=_0x155da9;if(_0x5df69d){let {left:_0x5e9333,top:_0x47914d,width:_0x46f61b,height:_0x37a990}=_0x5df69d;this[_0x90a069(0x35c)]=_0x5e9333||0x0,this[_0x90a069(0x1f7)]=_0x47914d||0x0,this[_0x90a069(0x235)]=_0x46f61b||0x0,this[_0x90a069(0x40a)]=_0x37a990||0x0;}let _0x1bd5b6=!!((_0x40f686=_0x155da9[_0x90a069(0x412)])!=null&&_0x40f686[_0x90a069(0x405)]),_0x879075=!!((_0x945445=_0x155da9[_0x90a069(0x412)])!=null&&_0x945445[_0x90a069(0x305)]),_0x2d3585=((_0x46c3d1=_0x155da9[_0x90a069(0x412)])==null?void 0x0:_0x46c3d1[_0x90a069(0x2f9)])||0x0;this['_isStartAdjusting']=!0x0,_0x2e4828[_0x90a069(0x29c)]();let _0x59da5a={...((_0x28bd24=this[_0x90a069(0x26d)])==null?void 0x0:_0x28bd24[_0x90a069(0x2b2)])??{}};this[_0x90a069(0x472)]=_0x2e4828[_0x90a069(0x427)][_0x90a069(0x42f)]((_0x46062f,_0x17c2bf)=>{const _0x3fb582=_0x90a069;if(!this[_0x3fb582(0x3f8)])return;let {offsetX:_0x17477c,offsetY:_0x4388b8}=_0x46062f,_0x11b6af=this['_activeAdjustInfo'];if(this[_0x3fb582(0x1d7)]&&_0x11b6af){_0x2e4828['disableObjectsEvent'](),_0x2e4828['setCursor'](_0x27b168['CROSSHAIR']);let _0x48d785={'left':0x0,'top':0x0,'width':this[_0x3fb582(0x235)],'height':this[_0x3fb582(0x40a)]},_0x156a70=this[_0x3fb582(0x3d4)](this['_unitId'],this[_0x3fb582(0x465)]),_0x1e14a5=this[_0x3fb582(0x454)](this[_0x3fb582(0x34f)],this[_0x3fb582(0x465)]),_0x408bf2=_0x17477c/_0x1e14a5+_0x156a70['x']-this[_0x3fb582(0x35c)],_0x14bd0d=_0x4388b8/_0x1e14a5+_0x156a70['y']-this['_baseShapeTop'];if(_0x2d3585!==0x0){let _0x272b90=this[_0x3fb582(0x235)]/0x2,_0x51428d=this['_baseShapeHeight']/0x2,_0x22768d=_0x2d3585*Math['PI']/0xb4,_0x95045b=Math[_0x3fb582(0x3d2)](_0x22768d),_0x5aee4b=Math[_0x3fb582(0x332)](_0x22768d),_0x73ffa0=_0x408bf2-_0x272b90,_0x532e51=_0x14bd0d-_0x51428d;_0x408bf2=_0x272b90+(_0x73ffa0*_0x95045b+_0x532e51*_0x5aee4b),_0x14bd0d=_0x51428d+(-_0x73ffa0*_0x5aee4b+_0x532e51*_0x95045b);}_0x1bd5b6&&(_0x408bf2=this[_0x3fb582(0x235)]-_0x408bf2),_0x879075&&(_0x14bd0d=this[_0x3fb582(0x40a)]-_0x14bd0d);let _0x55e98e={'x':_0x408bf2,'y':_0x14bd0d},_0x2e0c22=this['_activeShapeModel'][_0x3fb582(0x302)](_0x48d785,_0x55e98e,_0x11b6af,_0x1bd5b6,_0x879075);if(Object[_0x3fb582(0x413)](_0x2e0c22)[_0x3fb582(0x46d)]===0x0)return;for(let [_0x4f35a3,_0x580334]of Object['entries'](_0x2e0c22))this[_0x3fb582(0x1d7)][_0x3fb582(0x1fc)](_0x4f35a3,_0x580334);this['_activeShapeModel'][_0x3fb582(0x2e0)]({'width':this[_0x3fb582(0x235)],'height':this[_0x3fb582(0x40a)]});let _0x51bc2a=this[_0x3fb582(0x2f1)][_0x3fb582(0x31f)]({'unitId':_0x52ca53[_0x3fb582(0x43a)],'subUnitId':_0x52ca53['subUnitId'],'drawingId':_0x52ca53[_0x3fb582(0x35b)]});_0x51bc2a&&(this[_0x3fb582(0x2c0)]['renderDrawingShape'](_0x51bc2a,_0x2e4828),this[_0x3fb582(0x408)]=this[_0x3fb582(0x46c)](_0x52ca53['unitId'],_0x52ca53[_0x3fb582(0x330)],_0x52ca53['drawingId']),this['_updateAdjustControlPositions']());}_0x17c2bf[_0x3fb582(0x204)]();}),this[_0x90a069(0x395)]=_0x2e4828[_0x90a069(0x304)][_0x90a069(0x42f)]((_0x4185b5,_0x5f3bc5)=>{const _0xc00013=_0x90a069;this[_0xc00013(0x472)]['unsubscribe'](),this[_0xc00013(0x395)][_0xc00013(0x2a2)](),_0x2e4828[_0xc00013(0x39e)]();let _0x458c6a=this['_activeAdjustInfo'];if(_0x458c6a){let _0x6651bb=_0x52ca53[_0xc00013(0x43a)],_0x3f0529=_0x52ca53[_0xc00013(0x330)],_0x59fe97=_0x52ca53[_0xc00013(0x35b)],_0x49b473={};for(let _0x262371 of Object['keys'](_0x458c6a['currentAdjustValues'])){var _0x55e274;let _0x13212e=(_0x55e274=this[_0xc00013(0x1d7)])==null?void 0x0:_0x55e274[_0xc00013(0x1d1)](_0x262371);_0x13212e!==void 0x0&&(_0x49b473[_0x262371]=_0x13212e);}Object[_0xc00013(0x413)](_0x49b473)[_0xc00013(0x46d)]>0x0&&Dr(this[_0xc00013(0x279)],_0x6651bb,_0x3f0529,_0x59fe97,{'oldShapeData':{'adjustValues':_0x59da5a}},{'adjustValues':_0x49b473});}this['_activeAdjustInfo']=void 0x0,this[_0xc00013(0x1d7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x5f3bc5[_0xc00013(0x204)](),_0x2e4828[_0xc00013(0x3fc)]();}),_0x2cb9ea[_0x90a069(0x204)]();})));}[_0x40a3e1(0x451)](){const _0x186689=_0x40a3e1;let _0x3c2dd3=this[_0x186689(0x2c3)][_0x186689(0x293)](_0x2f72d4[_0x186689(0x2ce)]);this[_0x186689(0x1c6)](_0x3c2dd3[_0x186689(0x300)](_0x59c42a(_0x46bf3d=>_0x46bf3d?_0x46bf3d['activeSheet$'][_0x186689(0x300)](_0x59c42a(_0x32f8cc=>{const _0x353853=_0x186689;if(!_0x32f8cc)return _0x50a9a5;let _0x5def04=_0x46bf3d[_0x353853(0x2ae)](),_0x1ebb04=this[_0x353853(0x258)][_0x353853(0x2cf)](_0x5def04),_0xab1723=_0x1ebb04==null?void 0x0:_0x1ebb04[_0x353853(0x25b)];return _0xab1723?_0x3cb66b(_0xab1723):_0x50a9a5;})):_0x50a9a5))['subscribe'](_0x49cc85=>{const _0x397d09=_0x186689;let _0x53ab96=_0x49cc85[_0x397d09(0x282)]();this[_0x397d09(0x1c6)](_0x49cc85[_0x397d09(0x427)][_0x397d09(0x42f)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this['disposeWithMe'](_0x53ab96['changeStart$']['subscribe'](_0x28fd07=>{const _0x5ac830=_0x397d09;let {objects:_0x352130}=_0x28fd07;this[_0x5ac830(0x2a7)](),_0x352130!==null&&_0x352130['size']===0x1&&_0x352130['values']()[_0x5ac830(0x24c)]()[_0x5ac830(0x437)]instanceof J&&this[_0x5ac830(0x32f)](!0x0);})),this['disposeWithMe'](_0x53ab96[_0x397d09(0x303)]['subscribe'](()=>{const _0x3f40d3=_0x397d09;this['_isShouldShowDrawingShapeAdjust']&&this[_0x3f40d3(0x3a2)]();})),this[_0x397d09(0x1c6)](_0x49cc85[_0x397d09(0x304)][_0x397d09(0x42f)](()=>{const _0x45ad98=_0x397d09;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x45ad98(0x32f)](!0x1),this[_0x45ad98(0x2a7)]());})),this[_0x397d09(0x1c6)](_0x53ab96[_0x397d09(0x44f)][_0x397d09(0x1ff)](()=>{const _0x2e4eee=_0x397d09;this[_0x2e4eee(0x34f)]&&this['_subUnitId']&&this[_0x2e4eee(0x27c)]&&this[_0x2e4eee(0x2f1)]['getDrawingByParam']({'unitId':this[_0x2e4eee(0x34f)],'subUnitId':this[_0x2e4eee(0x465)],'drawingId':this[_0x2e4eee(0x27c)]})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x2e4eee(0x34f)],this['_subUnitId'],this[_0x2e4eee(0x27c)]),this[_0x2e4eee(0x2b1)]());}));}));}[_0x40a3e1(0x28e)](){const _0x230eb7=_0x40a3e1;this[_0x230eb7(0x1c6)](this[_0x230eb7(0x279)][_0x230eb7(0x3a7)](_0x219d48=>{const _0x16a850=_0x230eb7;if(_0x219d48['id']!==_0x2abe23['id'])return;let {unitId:_0x56ca6f,subUnitId:_0xeced0,shapeId:_0x51c669}=_0x219d48[_0x16a850(0x1fa)];_0x56ca6f===this[_0x16a850(0x34f)]&&_0xeced0===this[_0x16a850(0x465)]&&_0x51c669===this['_activeShapeId']&&this[_0x16a850(0x1e9)]();})),this['disposeWithMe'](this[_0x230eb7(0x2f1)]['focus$'][_0x230eb7(0x1ff)](_0x5f58a4=>{const _0x9b3a70=_0x230eb7;if(_0x5f58a4[_0x9b3a70(0x46d)]===0x1){let _0x1a76e2=_0x5f58a4[0x0];if(_0x1a76e2['drawingType']===_0x204a86[_0x9b3a70(0x41a)]&&this[_0x9b3a70(0x2c3)]['getUnitType'](_0x1a76e2['unitId'])===_0x2f72d4['UNIVER_SHEET']){this[_0x9b3a70(0x27c)]=_0x1a76e2[_0x9b3a70(0x35b)];let {unitId:_0x386df2,subUnitId:_0xf8efc9}=_0x1a76e2;this[_0x9b3a70(0x408)]=this[_0x9b3a70(0x46c)](_0x386df2,_0xf8efc9,this[_0x9b3a70(0x27c)]),this[_0x9b3a70(0x34f)]=_0x386df2,this[_0x9b3a70(0x465)]=_0xf8efc9,this[_0x9b3a70(0x3a2)](),this[_0x9b3a70(0x2a7)]();return;}}this['_activeShapeId']=null,this[_0x9b3a70(0x408)]=void 0x0,this[_0x9b3a70(0x34f)]=null,this[_0x9b3a70(0x465)]=null,this['_clearShapeAdjustControls']();})),this[_0x230eb7(0x1c6)](this[_0x230eb7(0x2f1)][_0x230eb7(0x2a3)][_0x230eb7(0x1ff)](_0x51a85d=>{const _0x5bb0a8=_0x230eb7;if(_0x51a85d[_0x5bb0a8(0x46d)]===0x1){var _0x1bd597;let _0x25b213=_0x51a85d[0x0];((_0x1bd597=this[_0x5bb0a8(0x2f1)][_0x5bb0a8(0x31f)](_0x25b213))==null?void 0x0:_0x1bd597[_0x5bb0a8(0x221)])===_0x204a86[_0x5bb0a8(0x41a)]&&this[_0x5bb0a8(0x3f0)](!0x0);}})),this[_0x230eb7(0x1c6)](this[_0x230eb7(0x2f1)][_0x230eb7(0x2f6)]['subscribe'](_0x588869=>{const _0x1b214d=_0x230eb7;for(let _0x3fce02 of _0x588869)this[_0x1b214d(0x27c)]===_0x3fce02[_0x1b214d(0x35b)]&&(this['_activeShapeId']=null,this[_0x1b214d(0x408)]=void 0x0,this[_0x1b214d(0x34f)]=null,this[_0x1b214d(0x465)]=null,this[_0x1b214d(0x3a2)]());}));}};Pr=X([Y(0x0,_0x2d58e3),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x34f57e(_0x5a17c7)),Y(0x3,_0x34f57e(Z)),Y(0x4,_0x3a3cc8),Y(0x5,_0x3a4817)],Pr);const Fr={'id':_0x40a3e1(0x25c),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0x4e48a1,_0x1831de)=>{const _0x46b9f0=_0x40a3e1;let _0x891345=_0x4e48a1[_0x46b9f0(0x270)](_0x2d58e3),_0x225d45=_0x4e48a1[_0x46b9f0(0x270)](_0x5a17c7),_0xe960a3=_0x4e48a1['get'](Pr);if(_0x1831de==null)return!0x0;if(_0x1831de[_0x46b9f0(0x46d)]>0x0){var _0x542110;let _0x42692d=(_0x542110=_0x225d45[_0x46b9f0(0x2cf)](_0x1831de[0x0]['unitId']))==null?void 0x0:_0x542110[_0x46b9f0(0x25b)];if(_0x42692d){let {unitId:_0x4b1962,subUnitId:_0x3cef61,drawingId:_0x3a8b71}=_0x1831de[0x0],_0x2b66d7=_0x4eca2a({'unitId':_0x4b1962,'subUnitId':_0x3cef61,'drawingId':_0x3a8b71},void 0x0),_0x46f7d7=_0x42692d[_0x46b9f0(0x2d2)](_0x2b66d7);if(_0x46f7d7){var _0x34a9c3;(_0x34a9c3=_0x225d45[_0x46b9f0(0x2cf)](_0x1831de[0x0][_0x46b9f0(0x43a)]))==null||(_0x34a9c3=_0x34a9c3[_0x46b9f0(0x25b)][_0x46b9f0(0x401)]())==null||_0x34a9c3[_0x46b9f0(0x476)](_0x46f7d7);}}_0x891345[_0x46b9f0(0x40e)](_0x1831de),_0xe960a3[_0x46b9f0(0x32f)](!0x1);}return!0x0;}},Ir={'type':_0x47a509['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x54550a,_0x4c4cae)=>{const _0x2ff711=_0x40a3e1;let _0x17e502=_0x1eaf70(_0x54550a[_0x2ff711(0x270)](_0x3a3cc8));if(!_0x17e502)return!0x1;let _0x37a748=_0x54550a['get'](_0x28680f)[_0x2ff711(0x3fb)]();if(!_0x37a748)return!0x1;let _0x234e58=_0x54550a[_0x2ff711(0x270)](_0x3a4817),{unitId:_0x47ba13,subUnitId:_0x2ac9a6}=_0x17e502,{value:_0x1ac8f7,enhanceParams:_0x5b22bb}=_0x4c4cae,{range:_0x53a374}=_0x37a748,_0x452be9={'unitId':_0x47ba13,'subUnitId':_0x2ac9a6,'shapeType':_0x1ac8f7,'range':_0x53a374,'shapeId':_0x57f70d()};if(_0x5b22bb){let _0x2093ff=_0x421dc8(_0x1ac8f7),_0x355b9a=_0x1ac8f7===_0x27efd2[_0x2ff711(0x469)];_0x2093ff&&(_0x5b22bb[_0x2ff711(0x232)]||_0x5b22bb['endArrow'])&&(_0x452be9[_0x2ff711(0x1eb)]={'ln':{'startArrow':_0x5b22bb[_0x2ff711(0x232)]?{'type':_0x5a007b[_0x2ff711(0x1b9)],'size':_0x49eb54[_0x2ff711(0x27b)]}:void 0x0,'endArrow':_0x5b22bb[_0x2ff711(0x1e1)]?{'type':_0x5a007b['Arrow'],'size':_0x49eb54[_0x2ff711(0x2b8)]}:void 0x0}}),_0x355b9a&&(_0x5b22bb[_0x2ff711(0x3c1)]||_0x5b22bb['vertical'])&&(_0x452be9[_0x2ff711(0x1eb)]=_0x57c405({'fill':{'fillType':_0xbc8bca['SolidFill'],'color':_0x2ff711(0x33b)},'isHorizontal':!!_0x5b22bb[_0x2ff711(0x3c1)],'stroke':{'lineStrokeType':_0x4ccbce[_0x2ff711(0x339)],'width':0x1,'color':_0x2ff711(0x29a)}}));}let _0x10962e=_0x234e58['syncExecuteCommand'](_0x68b808['id'],_0x452be9);return setTimeout(()=>{const _0x462a3f=_0x2ff711;_0x234e58[_0x462a3f(0x2d5)](Fr['id'],[{'unitId':_0x47ba13,'subUnitId':_0x2ac9a6,'drawingId':_0x452be9['shapeId']}]);},0xc8),_0x10962e;}},Lr=_0x40a3e1(0x3c8),Rr=_0x40a3e1(0x269),zr=_0x40a3e1(0x3eb),Br=_0x40a3e1(0x400),Vr=_0xd3eef3(_0x40a3e1(0x3fd)),Hr=_0x40a3e1(0x36a),Ur={'id':'sheet.operation.open-shape-object-list-panel','type':_0x47a509['COMMAND'],'handler':(_0x12a300,_0x1738fc)=>{const _0x6829e3=_0x40a3e1;let _0x6431f9=_0x12a300[_0x6829e3(0x270)](_0x4edbc3),_0x34dba2=_0x12a300[_0x6829e3(0x270)](_0x1fc669),_0x2cd746=_0x12a300[_0x6829e3(0x270)](_0x3a3cc8),_0x295265=_0x12a300[_0x6829e3(0x270)](_0x3a4817);return _0x1eaf70(_0x2cd746)?(_0x1738fc==null?void 0x0:_0x1738fc[_0x6829e3(0x437)])==='close'?(_0x6431f9['close'](Rr),!0x0):(_0x6431f9[_0x6829e3(0x361)]({'id':Rr,'header':{'title':_0x34dba2['t'](_0x6829e3(0x43b))},'children':{'label':Rr},'onClose':()=>{_0x295265['syncExecuteCommand'](_0x5bb1f9['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x47a509[_0x40a3e1(0x31e)],'id':_0x40a3e1(0x39a),'handler'(){return!0x0;}};function Gr(_0x2d0c97){const _0x4626c7=_0x40a3e1;let _0x56af7c=_0x2d0c97['get'](_0x2d58e3)[_0x4626c7(0x23d)](),_0x5aa8f6=_0x56af7c[_0x4626c7(0x46d)]===0x1?_0x56af7c[0x0]:null;if(!_0x5aa8f6||_0x5aa8f6[_0x4626c7(0x221)]!==_0x204a86[_0x4626c7(0x41a)])return null;let _0x2e36ec=_0x2d0c97[_0x4626c7(0x270)](_0x25eee4),_0x21bf8f=_0x2e36ec[_0x4626c7(0x38a)](_0x5aa8f6['unitId'],_0x5aa8f6[_0x4626c7(0x330)],_0x5aa8f6[_0x4626c7(0x35b)]),_0x363810=_0x2e36ec[_0x4626c7(0x1df)](_0x5aa8f6[_0x4626c7(0x43a)],_0x5aa8f6[_0x4626c7(0x330)],_0x5aa8f6['drawingId']);return _0x21bf8f===void 0x0||!_0x363810?null:{'drawing':_0x5aa8f6,'shapeData':_0x363810,'shapeType':_0x21bf8f};}const Kr={'id':_0x40a3e1(0x3e4),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0xc6295d,_0x2058b9)=>{const _0xe7c452=_0x40a3e1;let _0x3c0a65=Gr(_0xc6295d),_0x201bdf=_0x583dc0((_0x2058b9==null?void 0x0:_0x2058b9[_0xe7c452(0x3f4)])??(_0x2058b9==null?void 0x0:_0x2058b9[_0xe7c452(0x437)])??'');if(!_0x3c0a65||!_0x201bdf||_0x201bdf['type']!==_0x3e70c6(_0x3c0a65[_0xe7c452(0x1eb)]))return!0x1;let _0x1e1578=_0x46bc18(_0x3c0a65[_0xe7c452(0x1eb)],_0x201bdf);if(!_0x1e1578)return!0x1;let {drawing:_0x402ec8}=_0x3c0a65;return _0xc6295d[_0xe7c452(0x270)](_0x3a4817)[_0xe7c452(0x2d5)](K['id'],{'unitId':_0x402ec8['unitId'],'subUnitId':_0x402ec8['subUnitId'],'shapeId':_0x402ec8['drawingId'],'shapeData':_0x1e1578,'oldShapeJSON':{'oldShapeData':_0x3c0a65[_0xe7c452(0x1eb)]}});}},qr={'id':_0x40a3e1(0x370),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0x16c1e0,_0x26958e)=>{const _0x3fa144=_0x40a3e1;let _0x2e8683=Gr(_0x16c1e0),_0x50d807=(_0x26958e==null?void 0x0:_0x26958e['shapeType'])??(_0x26958e==null?void 0x0:_0x26958e[_0x3fa144(0x437)]);if(!_0x2e8683||!_0x50d807||_0x421dc8(_0x2e8683[_0x3fa144(0x1bc)])||_0x421dc8(_0x50d807))return!0x1;let _0x26e329=_0x4013e1(_0x2e8683[_0x3fa144(0x1eb)],_0x50d807);if(!_0x26e329)return!0x1;let {drawing:_0x2cb3c5}=_0x2e8683;return _0x16c1e0['get'](_0x3a4817)[_0x3fa144(0x2d5)](K['id'],{'unitId':_0x2cb3c5['unitId'],'subUnitId':_0x2cb3c5['subUnitId'],'shapeId':_0x2cb3c5[_0x3fa144(0x35b)],'shapeType':_0x50d807,'shapeData':_0x26e329,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2e8683[_0x3fa144(0x1bc)],'oldShapeData':_0x2e8683[_0x3fa144(0x1eb)]}});}};let Q=class extends _0x1f1ba9{constructor(_0x4495de,_0x4aff0d){const _0x33a14c=_0x40a3e1;super(),this['_clipService']=_0x4495de,this[_0x33a14c(0x2f1)]=_0x4aff0d,this[_0x33a14c(0x41f)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x33a14c(0x1c6)]({'dispose':()=>this['_clipService']['setCanUseShapeClip'](!0x1)});}[_0x40a3e1(0x41f)](){const _0x30e9f9=_0x40a3e1;let _0x55315a=this['_clipService'],_0x13cfe1=new Map(),_0x5cf92e=_0x55315a[_0x30e9f9(0x3d0)]((_0x3e9b68,_0x1c1e6b,_0x3daf81,_0x35dd70,_0xdb1c0b)=>{const _0x4a8721=_0x30e9f9;let _0x3be01a=_0x1c1e6b;if(_0x3be01a===_0x27efd2[_0x4a8721(0x3ab)]||_0x1c1e6b==='custom')return!0x1;try{let _0x307de3=_0x13cfe1['get'](_0x1c1e6b);return _0x307de3||(_0x307de3=new _0x442f4b(_0x3be01a,_0x4a8721(0x3cc)+_0x1c1e6b),_0x13cfe1[_0x4a8721(0x3a0)](_0x1c1e6b,_0x307de3)),_0x307de3[_0x4a8721(0x416)](),_0xdb1c0b&&Object[_0x4a8721(0x413)](_0xdb1c0b)[_0x4a8721(0x46d)]>0x0&&_0x307de3[_0x4a8721(0x45e)]({'adjustValues':_0xdb1c0b},!0x0),_0x307de3[_0x4a8721(0x2e0)]({'width':_0x3daf81,'height':_0x35dd70}),_0x307de3[_0x4a8721(0x289)](_0x3e9b68,{'left':0x0,'top':0x0,'width':_0x3daf81,'height':_0x35dd70});}catch{return!0x1;}});this['disposeWithMe'](_0x5cf92e),this[_0x30e9f9(0x1c6)]({'dispose':()=>_0x13cfe1[_0x30e9f9(0x3b6)]()});}[_0x40a3e1(0x25d)](_0x3272bb,_0x16846e,_0x4f3ba6,_0x4b358b,_0x1f8946){const _0x31b0da=_0x40a3e1;let _0x3ba50e=this[_0x31b0da(0x2f1)][_0x31b0da(0x1d0)](_0x3272bb,_0x16846e);if(!_0x3ba50e[_0x4f3ba6])return;let _0x58b173={..._0x3ba50e[_0x4f3ba6],'prstGeom':_0x4b358b,'adjustValues':_0x1f8946};this[_0x31b0da(0x2f1)]['featurePluginUpdateNotification']([_0x58b173]);}};Q=X([Y(0x0,_0x34f57e(_0x5706e2)),Y(0x1,_0x34f57e(_0x2d58e3))],Q);const Jr='sheet.shape.picker.component',Yr=_0x40a3e1(0x3f5);function Xr({onShapeClick:_0x192721,excludeGroups:_0x488706}){const _0x34ec13=_0x40a3e1;return _0xf2bc1d(_0xc763c4,{'excludeGroups':_0x488706,'onShapeClick':_0x192721,'scrollContainer':_0x34ec13(0x1e3)});}function Zr(){const _0x344ad0=_0x40a3e1;let _0x4a9886=_0x3911a9(_0x2d58e3),_0x87536d=_0x3911a9(Q);return _0xf2bc1d(_0x276ebe,{'buttonLabel':_0x344ad0(0x2c5),'excludeGroups':[_0x416c0a['Line']],'onShapeClick':_0x166bbd=>{const _0x5727f8=_0x344ad0;let _0x38e5c0=_0x4a9886['getFocusDrawings']()['find'](_0x1f154c=>_0x1f154c[_0x5727f8(0x221)]===_0x204a86['DRAWING_IMAGE']);if(!_0x38e5c0)return;let {unitId:_0x30cbb6,subUnitId:_0x35cf4b,drawingId:_0x5b9857}=_0x38e5c0;_0x87536d['clipByShape'](_0x30cbb6,_0x35cf4b,_0x5b9857,_0x166bbd['type']);}});}function Qr(){const _0x55b194=_0x40a3e1;let _0x62f087=_0x3911a9(_0x2d58e3),_0x393c6e=_0x3911a9(Q);return _0xf2bc1d(_0x276ebe,{'buttonLabel':_0x55b194(0x2c5),'excludeGroups':[_0x416c0a[_0x55b194(0x3ef)]],'DropdownComponent':_0x5d0172,'onShapeClick':_0x62b36e=>{const _0x5884d2=_0x55b194;let _0x113ffd=_0x62f087[_0x5884d2(0x23d)]()[_0x5884d2(0x278)](_0x223d84=>_0x223d84[_0x5884d2(0x221)]===_0x204a86[_0x5884d2(0x1fe)]);if(!_0x113ffd)return;let {unitId:_0x3744ff,subUnitId:_0x3c1c73,drawingId:_0x5c808b}=_0x113ffd;_0x393c6e[_0x5884d2(0x25d)](_0x3744ff,_0x3c1c73,_0x5c808b,_0x62b36e[_0x5884d2(0x275)]);}});}function $r(){const _0x46578f=_0x40a3e1;let _0x22afab=_0x3911a9(_0x203616),_0x4da5fc=_0x3911a9(_0x2d58e3),_0x10c881=_0x3911a9(_0x3a3cc8),_0x3fdae2=_0x4da5fc[_0x46578f(0x23d)]()[0x0],_0x50b317=_0x3fdae2?_0x10c881['getUnitType'](_0x3fdae2[_0x46578f(0x43a)]):void 0x0,_0x21c6ab=_0x50b317===_0x2f72d4[_0x46578f(0x44d)]?_0x46578f(0x2ee):_0x50b317===_0x2f72d4[_0x46578f(0x2ce)]?Yr:void 0x0,_0xf6adfe=_0x21c6ab?_0x22afab[_0x46578f(0x270)](_0x21c6ab):void 0x0;return _0xf6adfe?_0xf2bc1d(_0xf6adfe,{}):null;}function ei(){let _0x44cf70=_0x3911a9(_0x3a4817);return _0xf2bc1d(Xr,{'onShapeClick':_0x1fcba6=>{const _0x4945a0=_0x214c;_0x44cf70['executeCommand'](Ir['id'],{'value':_0x1fcba6[_0x4945a0(0x275)],'enhanceParams':{'endArrow':_0x1fcba6[_0x4945a0(0x1e1)],'startArrow':_0x1fcba6[_0x4945a0(0x232)],'horizontal':_0x1fcba6[_0x4945a0(0x3c1)],'vertical':_0x1fcba6[_0x4945a0(0x42c)]}});}});}function ti(){return _0xf2bc1d(ei,{});}function ni(_0x3d2c14){const _0x40041e=_0x40a3e1;let _0x4a3869=_0x3d2c14[_0x40041e(0x270)](_0x3a3cc8);return{'id':Ir['id'],'type':_0x3cc54f[_0x40041e(0x44a)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':'ShapeIcon','tooltip':_0x40041e(0x335),'activated$':_0x297af0(_0x4a3869,!0x1,()=>new _0x38e630(_0x32f695=>{const _0x31c1b8=_0x40041e;_0x32f695[_0x31c1b8(0x24c)](!0x1);})),'hidden$':_0x5b0d7c(_0x3d2c14,_0x2f72d4['UNIVER_SHEET']),'disabled$':_0x587855(_0x3d2c14)};}function ri(_0xbff9ce){const _0xa184d1=_0x40a3e1;let _0x66174=_0xbff9ce[_0xa184d1(0x270)](_0x3a3cc8);return{'id':Ur['id'],'type':_0x3cc54f[_0xa184d1(0x2b5)],'icon':_0xa184d1(0x20f),'title':_0xa184d1(0x1fb),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x297af0(_0x66174,!0x1,()=>new _0x38e630(_0x33eae7=>{_0x33eae7['next'](!0x1);})),'hidden$':_0x5b0d7c(_0xbff9ce,_0x2f72d4['UNIVER_SHEET']),'disabled$':_0x587855(_0xbff9ce)};}const ii='sheet.menu.shape.flip-horizontal',ai=_0x40a3e1(0x312);function oi(_0x4739a7){const _0x3bc95a=_0x40a3e1;let _0x5f189b=_0x4739a7['get'](_0x2d58e3)[_0x3bc95a(0x23d)]();return _0x5f189b[_0x3bc95a(0x46d)]===0x1&&_0x5f189b[0x0][_0x3bc95a(0x221)]===_0x204a86[_0x3bc95a(0x41a)]?_0x5f189b[0x0]:null;}function si(_0x266483){const _0x2e47b4=_0x40a3e1;let _0x22cccd=_0x266483[_0x2e47b4(0x270)](_0x2d58e3);return _0x22cccd[_0x2e47b4(0x2f5)][_0x2e47b4(0x300)](_0x56668c(_0x22cccd['getFocusDrawings']()),_0x1b0143(_0x227669=>_0x227669['length']!==0x1||_0x227669[0x0][_0x2e47b4(0x221)]!==_0x204a86[_0x2e47b4(0x41a)]));}function ci(_0xe09fae){const _0x1f5c97=_0x40a3e1;return{'id':ii,'commandId':_0x559a4e['id'],'type':_0x3cc54f[_0x1f5c97(0x2b5)],'title':_0x1f5c97(0x210),'tooltip':_0x1f5c97(0x210),'icon':_0x1f5c97(0x329),'hidden$':si(_0xe09fae),'params':()=>{const _0xa076c6=_0x1f5c97;let _0x56341c=oi(_0xe09fae);return _0x56341c?{'unitId':_0x56341c[_0xa076c6(0x43a)],'subUnitId':_0x56341c[_0xa076c6(0x330)],'shapeId':_0x56341c['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0x1fb8b7){const _0x91603a=_0x40a3e1;return{'id':ai,'commandId':_0x559a4e['id'],'type':_0x3cc54f[_0x91603a(0x2b5)],'title':_0x91603a(0x3cf),'tooltip':_0x91603a(0x3cf),'icon':_0x91603a(0x2d1),'hidden$':si(_0x1fb8b7),'params':()=>{const _0x4d088c=_0x91603a;let _0x321677=oi(_0x1fb8b7);return _0x321677?{'unitId':_0x321677[_0x4d088c(0x43a)],'subUnitId':_0x321677[_0x4d088c(0x330)],'shapeId':_0x321677[_0x4d088c(0x35b)],'flipV':!0x0}:void 0x0;}};}const ui=_0x40a3e1(0x478),di=_0x40a3e1(0x3b7),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x40a3e1(0x407);function mi(){let _0x5a6622=_0x3911a9(_0x3a4817),_0x561c65=_0x3911a9(_0x2d58e3),_0x200c25=_0x3911a9(_0x25eee4),_0x175563=()=>{const _0x148243=_0x214c;var _0x1d4cd1;let _0x4381b0=_0x561c65[_0x148243(0x23d)]();if(_0x4381b0['length']!==0x1||((_0x1d4cd1=_0x4381b0[0x0])==null?void 0x0:_0x1d4cd1['drawingType'])!==_0x204a86[_0x148243(0x41a)])return null;let {unitId:_0xbd1b56,subUnitId:_0x5079b8,drawingId:_0x45bbbf}=_0x4381b0[0x0],_0x322866=_0x200c25[_0x148243(0x38a)](_0xbd1b56,_0x5079b8,_0x45bbbf),_0x57a3d1=_0x200c25[_0x148243(0x1df)](_0xbd1b56,_0x5079b8,_0x45bbbf);return _0x322866===void 0x0||!_0x57a3d1?null:{'unitId':_0xbd1b56,'subUnitId':_0x5079b8,'drawingId':_0x45bbbf,'shapeType':_0x322866,'shapeData':_0x57a3d1};},_0x27741b=_0x17fdf6(()=>new _0x38e630(_0x9ed82d=>{const _0x1054f4=_0x214c;let _0x36acaa=()=>_0x9ed82d[_0x1054f4(0x24c)](_0x175563()),_0x665b16=_0x561c65['focus$']['subscribe'](_0x36acaa),_0x2fd3f1=_0x5a6622[_0x1054f4(0x3a7)](_0x1d3520=>{_0x1d3520['id']===_0x2abe23['id']&&_0x36acaa();});return _0x36acaa(),()=>{const _0x30e76f=_0x1054f4;_0x665b16[_0x30e76f(0x2a2)](),_0x2fd3f1[_0x30e76f(0x223)]();};}),_0x175563(),!0x1,[_0x5a6622,_0x561c65,_0x200c25]);return{'selection':_0x27741b,'updateShapeData':_0x908070=>{const _0x42c92b=_0x214c;_0x27741b&&Dr(_0x5a6622,_0x27741b[_0x42c92b(0x43a)],_0x27741b[_0x42c92b(0x330)],_0x27741b[_0x42c92b(0x35b)],{'oldShapeData':_0x27741b[_0x42c92b(0x1eb)]},_0x908070);}};}function hi(){const _0x506ac5=_0x40a3e1;let {selection:_0x3cce8c,updateShapeData:_0x205ac3}=mi();return _0x3cce8c?_0xf2bc1d(_0x171727,{'shapeData':_0x3cce8c['shapeData'],'shapeType':_0x3cce8c[_0x506ac5(0x1bc)],'onUpdateShapeData':_0x205ac3}):null;}function gi(){const _0x5cd64f=_0x40a3e1;let _0x4f4404=_0x3911a9(_0x3a4817),_0x22a5bd=_0x3911a9(_0x1fc669),{selection:_0x5a8fe0}=mi();return _0x5a8fe0?_0xf2bc1d(_0x506439,{'type':_0x3e70c6(_0x5a8fe0[_0x5cd64f(0x1eb)]),'ariaLabel':_0x22a5bd['t'](_0x5cd64f(0x228)),'activePresetId':_0x244835(_0x5a8fe0[_0x5cd64f(0x1eb)]),'onSelect':_0x351c42=>_0x4f4404[_0x5cd64f(0x2d5)](Kr['id'],{'presetId':_0x351c42})}):null;}function _i(){const _0x29e082=_0x40a3e1;let {selection:_0x3de0b8,updateShapeData:_0xf998af}=mi();return _0x3de0b8?_0xf2bc1d(_0x4f2621,{'fontFamilyPopupDataComponent':_0x29e082(0x448),'shapeData':_0x3de0b8[_0x29e082(0x1eb)],'onUpdateShapeData':_0xf998af}):null;}function vi(){const _0xdfd452=_0x40a3e1;var _0x2c229d;let {selection:_0xc252e1,updateShapeData:_0x425723}=mi(),_0x25e57f=_0x31f90f({'hostType':_0x2f72d4[_0xdfd452(0x2ce)],'unitId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x43a)])??'','subUnitId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x330)])??'','shapeId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x35b)])??'','shapeData':_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x1eb)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xdfd452(0x396),'onUpdateBinding':_0x51dd5d=>_0x425723({'formulaBinding':_0x51dd5d})}),_0x350b34=((_0x2c229d=_0x25e57f[_0xdfd452(0x33d)])==null?void 0x0:_0x2c229d[_0xdfd452(0x3bf)](_0x380642=>_0x380642['actions'])[_0xdfd452(0x385)](_0x403f25=>_0x403f25[_0xdfd452(0x3e8)]!==!0x1))??[];return _0xc252e1!=null&&_0xc252e1['shapeData']['formulaBinding']?_0xf2bc1d(_0x46df00,{'actions':_0x350b34,'panel':_0x25e57f['panel']}):null;}const yi='sheets-shape-ui.ribbon.shape-format.style-control',bi='sheets-shape-ui.ribbon.shape-format.text-control',xi='sheets-shape-ui.ribbon.shape-format.formula-control',Si='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ci=_0x40a3e1(0x2d8),wi=_0x40a3e1(0x277),Ti=_0x40a3e1(0x463);function Ei(_0x7979d2){const _0x2f4400=_0x40a3e1;let _0x5d5278=_0x7979d2['get'](_0x3a4817),_0x3b581e=_0x7979d2[_0x2f4400(0x270)](_0x2d58e3),_0x4726d0=_0x7979d2[_0x2f4400(0x270)](_0x25eee4);return new _0x38e630(_0x4f1371=>{const _0x113a50=_0x2f4400;let _0x378b8e=()=>{const _0x594b75=_0x214c;let _0x4b0072=Di(_0x7979d2),_0x5681fd=_0x4b0072?_0x4726d0['getShapeDataById'](_0x4b0072[_0x594b75(0x43a)],_0x4b0072[_0x594b75(0x330)],_0x4b0072[_0x594b75(0x35b)]):null;_0x4f1371[_0x594b75(0x24c)](_0x5681fd?_0x244835(_0x5681fd)??'':'');},_0xa59bc8=_0x3b581e['focus$'][_0x113a50(0x1ff)](_0x378b8e),_0x50f92b=_0x5d5278['onCommandExecuted'](_0x33ca7c=>{_0x33ca7c['id']===_0x2abe23['id']&&_0x378b8e();});return _0x378b8e(),()=>{const _0x153d09=_0x113a50;_0xa59bc8[_0x153d09(0x2a2)](),_0x50f92b['dispose']();};});}function Di(_0x499274){const _0x2c0961=_0x40a3e1;var _0x3fc972;let _0x1e12c0=_0x499274[_0x2c0961(0x270)](_0x2d58e3)[_0x2c0961(0x23d)]();return _0x1e12c0[_0x2c0961(0x46d)]===0x1&&((_0x3fc972=_0x1e12c0[0x0])==null?void 0x0:_0x3fc972[_0x2c0961(0x221)])===_0x204a86[_0x2c0961(0x41a)]?_0x1e12c0[0x0]:null;}function Oi(_0xb4f509,_0x4adad0=!0x1){const _0x3b53f7=_0x40a3e1;let _0x269d7d=_0xb4f509[_0x3b53f7(0x270)](_0x3a4817),_0x55705a=_0xb4f509[_0x3b53f7(0x270)](_0x2d58e3),_0x19e346=_0xb4f509['get'](_0x25eee4);return new _0x38e630(_0x3d663f=>{const _0x242672=_0x3b53f7;let _0x5a0d59=()=>{const _0x1c714a=_0x214c;let _0x488bff=Di(_0xb4f509);if(!_0x488bff){_0x3d663f[_0x1c714a(0x24c)](!0x0);return;}let _0x1b9343=_0x19e346[_0x1c714a(0x1df)](_0x488bff[_0x1c714a(0x43a)],_0x488bff[_0x1c714a(0x330)],_0x488bff[_0x1c714a(0x35b)]);_0x3d663f[_0x1c714a(0x24c)](!_0x1b9343||_0x4adad0&&_0x1b9343['formulaBinding']==null);},_0x44a825=_0x55705a[_0x242672(0x2f5)]['subscribe'](_0x5a0d59),_0x2bd21b=_0x269d7d[_0x242672(0x3a7)](_0x54346f=>{_0x54346f['id']===_0x2abe23['id']&&_0x5a0d59();});return _0x5a0d59(),()=>{const _0x265ffb=_0x242672;_0x44a825[_0x265ffb(0x2a2)](),_0x2bd21b[_0x265ffb(0x223)]();};});}function ki(_0x2d6b7f){const _0x1c7dca=_0x40a3e1;let _0x2c4ae4=_0x2d6b7f[_0x1c7dca(0x270)](_0x2d58e3),_0x4565f8=_0x2d6b7f[_0x1c7dca(0x270)](_0x25eee4);return _0x2c4ae4['focus$']['pipe'](_0x56668c(_0x2c4ae4['getFocusDrawings']()),_0x1b0143(()=>{const _0x557dc7=_0x1c7dca;let _0x1240bc=Di(_0x2d6b7f),_0x20d897=_0x1240bc?_0x4565f8[_0x557dc7(0x38a)](_0x1240bc[_0x557dc7(0x43a)],_0x1240bc[_0x557dc7(0x330)],_0x1240bc[_0x557dc7(0x35b)]):void 0x0;return _0x20d897===void 0x0||_0x421dc8(_0x20d897);}));}function Ai(_0x5824a6){const _0x27ce1f=_0x40a3e1;return{'id':Kr['id'],'type':_0x3cc54f[_0x27ce1f(0x44a)],'icon':'PaintIcon','title':_0x27ce1f(0x381),'tooltip':_0x27ce1f(0x381),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x5824a6),'hidden$':Oi(_0x5824a6)};}function ji(_0x4dec21){const _0x91de4a=_0x40a3e1;return{'id':qr['id'],'type':_0x3cc54f[_0x91de4a(0x44a)],'icon':_0x91de4a(0x21a),'title':_0x91de4a(0x30b),'tooltip':_0x91de4a(0x30b),'slot':!0x0,'selections':[{'label':{'name':_0x37ce7a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x4dec21)};}function Mi(_0x18159b,_0x10a877,_0x40be3a=!0x1){const _0xcad484=_0x40a3e1;return _0x129a89=>({'id':_0x18159b,'type':_0x3cc54f[_0xcad484(0x2b5)],'label':{'name':_0x10a877,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x129a89,_0x40be3a)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x3d37b4,_0x34c11b,_0x5c31a9,_0x1ec4b2){const _0x16d423=_0x40a3e1;return _0x2a33e5=>({'id':_0x3d37b4,'commandId':_0x5a5e2c['id'],'type':_0x3cc54f[_0x16d423(0x2b5)],'icon':_0x5c31a9,'title':_0x1ec4b2,'tooltip':_0x1ec4b2,'hidden$':Oi(_0x2a33e5),'params':()=>{const _0x1c4e55=_0x16d423;let _0x267790=Di(_0x2a33e5);return _0x267790?{'unitId':_0x267790['unitId'],'subUnitId':_0x267790['subUnitId'],'drawingIds':[_0x267790[_0x1c4e55(0x35b)]],'arrangeType':_0x34c11b}:void 0x0;}});}const Li=Ii(Si,_0x387bee[_0x40a3e1(0x41b)],'MoveUpIcon',_0x40a3e1(0x38c)),Ri=Ii(Ci,_0x387bee[_0x40a3e1(0x2bd)],'MoveDownIcon',_0x40a3e1(0x357)),zi=Ii(wi,_0x387bee[_0x40a3e1(0x3fe)],_0x40a3e1(0x3e2),'shape-editor-ui.arrange.front'),Bi=Ii(Ti,_0x387bee[_0x40a3e1(0x439)],_0x40a3e1(0x298),_0x40a3e1(0x356));function Vi(_0x3f2001){const _0x49afb3=_0x40a3e1;return{'id':Wr['id'],'type':_0x3cc54f['BUTTON'],'icon':_0x49afb3(0x27e),'title':_0x49afb3(0x256),'tooltip':_0x49afb3(0x256),'hidden$':Oi(_0x3f2001),'params':()=>{const _0x288447=_0x49afb3;let _0x5bd8fa=Di(_0x3f2001);return _0x5bd8fa?{'unitId':_0x5bd8fa[_0x288447(0x43a)],'subUnitId':_0x5bd8fa[_0x288447(0x330)],'drawingId':_0x5bd8fa[_0x288447(0x35b)]}:void 0x0;}};}const Hi={[_0x15f1c1['RIBBON']]:{[Br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x326f6f['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x1d0040}}}}},Ui={[_0x30f74f[_0x40a3e1(0x353)]]:{[Ir['id']]:{'order':0x4,'menuItemFactory':ni}}},Wi={...Ui,[_0x30f74f[_0x40a3e1(0x3a5)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x420dc4[_0x40a3e1(0x272)]]:{[_0x4caf77['OTHERS']]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x40a3e1(0x409),Ki='1.0.4';const qi={'id':_0x40a3e1(0x447),'type':_0x47a509[_0x40a3e1(0x31e)],'handler'(_0x31402c,_0x4be94b){const _0x34d4c1=_0x40a3e1;return _0x4be94b?(_0x31402c['get'](_0xd18c3c)[_0x34d4c1(0x361)](_0x4be94b['mode'],{'hostType':_0x2f72d4[_0x34d4c1(0x2ce)],'shapeId':_0x4be94b[_0x34d4c1(0x35b)],'subUnitId':_0x4be94b[_0x34d4c1(0x330)],'unitId':_0x4be94b[_0x34d4c1(0x43a)]}),!0x0):!0x1;}},Ji='sheets-shape-ui.config',Yi={};let Xi=class extends _0x1f1ba9{constructor(_0xb4d1d7,_0x57fd5e,_0x1fd250,_0x325d74,_0x18d9ae){const _0x907035=_0x40a3e1;super(),this['_context']=_0xb4d1d7,this[_0x907035(0x2f1)]=_0x57fd5e,this[_0x907035(0x258)]=_0x1fd250,this[_0x907035(0x2c3)]=_0x325d74,this[_0x907035(0x322)]=_0x18d9ae,q(this,_0x907035(0x1ee),null),q(this,_0x907035(0x34f),null),q(this,'_subUnitId',null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x907035(0x21e),0x0),q(this,_0x907035(0x388),0x0),q(this,_0x907035(0x32b),0x0),q(this,'_baseHeight',0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x907035(0x26d),void 0x0),q(this,_0x907035(0x1d7),void 0x0),q(this,_0x907035(0x472),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0x907035(0x392),!0x1),this[_0x907035(0x443)](),this[_0x907035(0x323)]();}[_0x40a3e1(0x377)](){const _0x57422c=_0x40a3e1;this[_0x57422c(0x3e3)]();}['refreshAdjustControls'](){const _0x11e912=_0x40a3e1;this[_0x11e912(0x3e3)](),this[_0x11e912(0x434)](!0x0);}[_0x40a3e1(0x212)](_0x1cc816,_0xc2740c,_0x35b7f3,_0xa21097){const _0x5a7623=_0x40a3e1;let _0x428738=_0x1cc816;if(_0x428738!==_0x27efd2['None']&&_0x1cc816!==_0x5a7623(0x344))try{let _0x438211=new _0x442f4b(_0x428738,_0x5a7623(0x386)+_0x1cc816);return _0xa21097&&_0x438211[_0x5a7623(0x45e)]({'adjustValues':_0xa21097},!0x0),_0x438211['updateContext']({'width':_0xc2740c,'height':_0x35b7f3}),_0x438211;}catch{return;}}[_0x40a3e1(0x40d)](_0x1c8dfd,_0x36bdfb,_0x5981b4){const _0x4c9b49=_0x40a3e1;let _0xd50c82={'unitId':_0x1c8dfd,'subUnitId':_0x36bdfb,'drawingId':_0x5981b4},_0x15a8a5=this[_0x4c9b49(0x2f1)]['getDrawingByParam'](_0xd50c82);if(_0x15a8a5&&_0x15a8a5[_0x4c9b49(0x221)]===_0x204a86[_0x4c9b49(0x1fe)])return _0x15a8a5;}['_getImagePrstGeom'](_0x5f1226,_0x53adcc,_0x2dfbaf){const _0x35e6c7=_0x40a3e1;let _0x5b40ea=this[_0x35e6c7(0x258)]['getRenderUnitById'](_0x5f1226);if(!_0x5b40ea)return;let {scene:_0x13cae1}=_0x5b40ea,_0x17b50b=_0x4eca2a({'unitId':_0x5f1226,'subUnitId':_0x53adcc,'drawingId':_0x2dfbaf}),_0xd84d4e=_0x13cae1[_0x35e6c7(0x2e9)](_0x17b50b);if(_0xd84d4e instanceof _0x2b9b89){let _0x1a8684=_0xd84d4e[_0x35e6c7(0x365)];if(_0x1a8684)return{'prstGeom':_0x1a8684,'adjustValues':_0xd84d4e[_0x35e6c7(0x206)]};}}[_0x40a3e1(0x434)](_0x47aafc=!0x1){const _0x213724=_0x40a3e1;if(!this[_0x213724(0x34f)]||!this[_0x213724(0x465)]||!this['_activeImageId'])return;let _0x3ee643=this[_0x213724(0x258)][_0x213724(0x2cf)](this['_unitId']);if(!_0x3ee643||!_0x3ee643[_0x213724(0x433)](_0x22bccb)['getCurrentSkeleton']())return;let {scene:_0x51cda4}=_0x3ee643,_0x486d93=this[_0x213724(0x40d)](this[_0x213724(0x34f)],this[_0x213724(0x465)],this[_0x213724(0x1ee)]);if(!_0x486d93)return;let {transform:_0x596d63}=_0x486d93;if(!_0x596d63)return;let {left:_0x38bf0d,top:_0x17da50,width:_0x9ad193,height:_0x134ca0,flipX:_0x20c8d4,flipY:_0x4f3e59,angle:_0x254170=0x0}=_0x596d63;if(_0x38bf0d===void 0x0||_0x17da50===void 0x0)return;let _0x56cfb4=this[_0x213724(0x360)](this['_unitId'],this[_0x213724(0x465)],this['_activeImageId']);if(!_0x56cfb4)return;if(_0x47aafc){let _0x56345a=this[_0x213724(0x212)](_0x56cfb4[_0x213724(0x365)],_0x9ad193||0x0,_0x134ca0||0x0,_0x56cfb4['adjustValues']);if(!_0x56345a)return;this['_activeAdjustPointList']=_0x56345a[_0x213724(0x3b2)]();}let _0x2dff6c=this['_activeAdjustPointList'];if(_0x2dff6c&&_0x2dff6c[_0x213724(0x46d)]!==0x0)for(let _0x12563d=0x0;_0x12563d<_0x2dff6c['length'];_0x12563d++){let _0x399b89=_0x2dff6c[_0x12563d],_0x416a87=_0x399b89['x'],_0x1658f1=_0x399b89['y'];if(_0x20c8d4&&(_0x416a87=(_0x9ad193||0x0)-_0x416a87),_0x4f3e59&&(_0x1658f1=(_0x134ca0||0x0)-_0x1658f1),_0x254170!==0x0){let _0x461b90=(_0x9ad193||0x0)/0x2,_0x20395c=(_0x134ca0||0x0)/0x2,_0x238d65=_0x254170*Math['PI']/0xb4,_0x6eea5f=Math[_0x213724(0x3d2)](_0x238d65),_0x5689c5=Math[_0x213724(0x332)](_0x238d65),_0x193543=_0x416a87-_0x461b90,_0x3c020d=_0x1658f1-_0x20395c;_0x416a87=_0x461b90+(_0x193543*_0x6eea5f-_0x3c020d*_0x5689c5),_0x1658f1=_0x20395c+(_0x193543*_0x5689c5+_0x3c020d*_0x6eea5f);}let _0x3f9ad7={'x':_0x416a87,'y':_0x1658f1,'adjName':_0x399b89[_0x213724(0x391)]};this['_addControl'](_0x51cda4,_0x3f9ad7,_0x3f9ad7[_0x213724(0x391)],_0x38bf0d,_0x17da50,this['_unitId'],this['_subUnitId']);}}[_0x40a3e1(0x34a)](_0x117a30,_0x3d1c0a,_0x1fee0f,_0x28dfa9,_0x5f3894,_0x4dab1c,_0x18e4e7){const _0x5aad51=_0x40a3e1;if(!this[_0x5aad51(0x1ee)])return;let _0x4cbf8f=_0x5aad51(0x2d3)+this[_0x5aad51(0x1ee)]+'-'+_0x1fee0f,_0x3e368a=_0x117a30[_0x5aad51(0x2d2)](_0x4cbf8f);if(_0x3e368a){_0x3e368a[_0x5aad51(0x3a6)]({'left':_0x3d1c0a['x']+_0x28dfa9-_0x2c02a7[_0x5aad51(0x22c)],'top':_0x3d1c0a['y']+_0x5f3894-_0x2c02a7[_0x5aad51(0x22c)]});return;}let _0x357821=new Nr(_0x4cbf8f,{'left':_0x3d1c0a['x']+_0x28dfa9-_0x2c02a7[_0x5aad51(0x22c)],'top':_0x3d1c0a['y']+_0x5f3894-_0x2c02a7[_0x5aad51(0x22c)],'adjName':_0x1fee0f,'shapeId':this['_activeImageId'],'unitId':_0x4dab1c,'subUnitId':_0x18e4e7,'width':_0x2c02a7[_0x5aad51(0x22c)]+0x8,'height':_0x2c02a7[_0x5aad51(0x22c)]+0x8,'zIndex':_0x1301e0+0x1,'evented':!0x0});this[_0x5aad51(0x203)]['push'](_0x357821),this['_attachAdjustEvent'](_0x357821,_0x117a30,_0x1fee0f),_0x117a30[_0x5aad51(0x3ae)](_0x357821,_0x1301e0+0x1);}[_0x40a3e1(0x3e3)](){const _0x2bc2d1=_0x40a3e1;this[_0x2bc2d1(0x203)][_0x2bc2d1(0x46d)]!==0x0&&(this[_0x2bc2d1(0x203)]['forEach'](_0x3333fc=>_0x3333fc[_0x2bc2d1(0x223)]()),this['_shapes']=[]);}[_0x40a3e1(0x3d4)](_0x56f38e,_0x2ce8e5){const _0x508a64=_0x40a3e1;var _0x2fcc9f;let _0x1a3f86={'x':0x0,'y':0x0},_0xeffbda=this[_0x508a64(0x258)][_0x508a64(0x2cf)](_0x56f38e);if(!_0xeffbda||!_0xeffbda[_0x508a64(0x433)](_0x22bccb)[_0x508a64(0x1d6)](_0x2ce8e5))return _0x1a3f86;let _0x239476=_0xeffbda[_0x508a64(0x433)](_0x1d24d6),_0xdc6799=_0x239476==null?void 0x0:_0x239476['getCurrentScrollState']();if(!_0xdc6799)return _0x1a3f86;let _0x363145=(_0x2fcc9f=this[_0x508a64(0x2c3)][_0x508a64(0x2fd)](_0x56f38e))==null?void 0x0:_0x2fcc9f[_0x508a64(0x475)](_0x2ce8e5);if(!_0x363145)return _0x1a3f86;let _0x5251db=_0xf578ae(_0xdc6799[_0x508a64(0x3c9)],_0xdc6799[_0x508a64(0x3a3)],_0xeffbda['scene'],_0x363145);return _0x5251db?{'x':_0x5251db[_0x508a64(0x253)],'y':_0x5251db[_0x508a64(0x393)]}:_0x1a3f86;}[_0x40a3e1(0x454)](_0x3e6e2f,_0x27b305){const _0x1530df=_0x40a3e1;var _0xb6fdb8;let _0x1711a5=(_0xb6fdb8=this['_univerInstanceService']['getUnit'](_0x3e6e2f))==null?void 0x0:_0xb6fdb8[_0x1530df(0x475)](_0x27b305);return(_0x1711a5==null?void 0x0:_0x1711a5[_0x1530df(0x474)]())??0x1;}[_0x40a3e1(0x286)](_0x54ba46,_0x4ec8f0,_0x12161b){const _0x4939c8=_0x40a3e1;this[_0x4939c8(0x1c6)](_0x35229e(_0x54ba46[_0x4939c8(0x200)][_0x4939c8(0x42f)]((_0x17fdba,_0x25fcb9)=>{const _0x5e9c64=_0x4939c8;var _0x40ce23,_0x2473aa,_0x124ae6;let {unitId:_0x379a27,subUnitId:_0x4c5c80,drawingId:_0x45783c}=_0x54ba46[_0x5e9c64(0x2fc)](),_0x23acd1=this[_0x5e9c64(0x40d)](_0x379a27,_0x4c5c80,_0x45783c);if(!(_0x23acd1!=null&&_0x23acd1[_0x5e9c64(0x412)]))return;let {left:_0x279190,top:_0x5e4bbd,width:_0x20bfd6,height:_0x2bbcbe}=_0x23acd1[_0x5e9c64(0x412)];this['_baseLeft']=_0x279190||0x0,this[_0x5e9c64(0x388)]=_0x5e4bbd||0x0,this[_0x5e9c64(0x32b)]=_0x20bfd6||0x0,this[_0x5e9c64(0x45f)]=_0x2bbcbe||0x0;let _0x8a14ce=!!((_0x40ce23=_0x23acd1[_0x5e9c64(0x412)])!=null&&_0x40ce23[_0x5e9c64(0x405)]),_0x456332=!!((_0x2473aa=_0x23acd1[_0x5e9c64(0x412)])!=null&&_0x2473aa[_0x5e9c64(0x305)]),_0x1f3b2d=((_0x124ae6=_0x23acd1[_0x5e9c64(0x412)])==null?void 0x0:_0x124ae6['angle'])||0x0,_0x3e6132=this['_getImagePrstGeom'](_0x379a27,_0x4c5c80,_0x45783c);if(!_0x3e6132)return;let _0x282e71=this[_0x5e9c64(0x212)](_0x3e6132['prstGeom'],this['_baseWidth'],this['_baseHeight'],_0x3e6132[_0x5e9c64(0x3df)]);if(!_0x282e71||(this[_0x5e9c64(0x1d7)]=_0x282e71,this['_activeAdjustInfo']=_0x282e71[_0x5e9c64(0x42e)](_0x12161b),!this[_0x5e9c64(0x26d)]))return;this[_0x5e9c64(0x3f8)]=!0x0,_0x4ec8f0[_0x5e9c64(0x29c)]();let _0x1a79dd=_0x3e6132[_0x5e9c64(0x365)];this[_0x5e9c64(0x472)]=_0x4ec8f0['onPointerMove$'][_0x5e9c64(0x42f)]((_0x11179f,_0x3f5951)=>{const _0x421261=_0x5e9c64;if(!this[_0x421261(0x3f8)])return;let {offsetX:_0x23dca2,offsetY:_0x43351c}=_0x11179f,_0x1a2412=this[_0x421261(0x26d)];if(!this[_0x421261(0x1d7)]||!_0x1a2412)return;_0x4ec8f0[_0x421261(0x29c)](),_0x4ec8f0[_0x421261(0x26c)](_0x27b168['CROSSHAIR']);let _0x388dd3={'left':0x0,'top':0x0,'width':this[_0x421261(0x32b)],'height':this[_0x421261(0x45f)]},_0x475392=this[_0x421261(0x3d4)](_0x379a27,_0x4c5c80),_0x283fb5=this[_0x421261(0x454)](_0x379a27,_0x4c5c80),_0x2fac7d=_0x23dca2/_0x283fb5+_0x475392['x']-this['_baseLeft'],_0x5eadb4=_0x43351c/_0x283fb5+_0x475392['y']-this['_baseTop'];if(_0x1f3b2d!==0x0){let _0x212a9a=this[_0x421261(0x32b)]/0x2,_0x349d99=this[_0x421261(0x45f)]/0x2,_0xa7f452=_0x1f3b2d*Math['PI']/0xb4,_0x269202=Math[_0x421261(0x3d2)](_0xa7f452),_0x154930=Math[_0x421261(0x332)](_0xa7f452),_0x5cae1d=_0x2fac7d-_0x212a9a,_0x1b41dd=_0x5eadb4-_0x349d99;_0x2fac7d=_0x212a9a+(_0x5cae1d*_0x269202+_0x1b41dd*_0x154930),_0x5eadb4=_0x349d99+(-_0x5cae1d*_0x154930+_0x1b41dd*_0x269202);}_0x8a14ce&&(_0x2fac7d=this[_0x421261(0x32b)]-_0x2fac7d),_0x456332&&(_0x5eadb4=this[_0x421261(0x45f)]-_0x5eadb4);let _0x4bb371=this[_0x421261(0x1d7)][_0x421261(0x302)](_0x388dd3,{'x':_0x2fac7d,'y':_0x5eadb4},_0x1a2412,_0x8a14ce,_0x456332);if(Object[_0x421261(0x413)](_0x4bb371)[_0x421261(0x46d)]!==0x0){for(let [_0x5249d2,_0x98a69c]of Object[_0x421261(0x417)](_0x4bb371))this[_0x421261(0x1d7)]['setAdjustValueByName'](_0x5249d2,_0x98a69c);this[_0x421261(0x1d7)][_0x421261(0x2e0)]({'width':this['_baseWidth'],'height':this[_0x421261(0x45f)]}),this[_0x421261(0x211)](_0x379a27,_0x4c5c80,_0x45783c,_0x4bb371),this[_0x421261(0x20b)]=this['_activeShapeModel'][_0x421261(0x3b2)](),this[_0x421261(0x434)](),_0x3f5951['stopPropagation']();}}),this['_adjHandlerPointerUp']=_0x4ec8f0[_0x5e9c64(0x304)]['subscribeEvent']((_0x375291,_0x2dd235)=>{const _0x28e435=_0x5e9c64;if(this[_0x28e435(0x472)][_0x28e435(0x2a2)](),this['_adjHandlerPointerUp'][_0x28e435(0x2a2)](),_0x4ec8f0[_0x28e435(0x39e)](),this[_0x28e435(0x1d7)]){let _0x400bc6=this[_0x28e435(0x1d7)][_0x28e435(0x226)](),_0x14a7e5={};for(let _0x555829 of _0x400bc6){let _0x2633a0=this[_0x28e435(0x1d7)][_0x28e435(0x1d1)](_0x555829);_0x2633a0!==void 0x0&&(_0x14a7e5[_0x555829]=_0x2633a0);}this[_0x28e435(0x322)]['clipByShape'](_0x379a27,_0x4c5c80,_0x45783c,_0x1a79dd,_0x14a7e5);}this['_activeAdjustInfo']=void 0x0,this[_0x28e435(0x1d7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x2dd235[_0x28e435(0x204)](),_0x4ec8f0[_0x28e435(0x3fc)]();}),_0x25fcb9[_0x5e9c64(0x204)]();})));}['_updateImageAdjValues'](_0x234af0,_0x62607,_0x4db2dc,_0x162ce2){const _0x37b873=_0x40a3e1;let _0x1ba91e=this[_0x37b873(0x258)][_0x37b873(0x2cf)](_0x234af0);if(!_0x1ba91e)return;let {scene:_0xad5438}=_0x1ba91e,_0x4024ec=_0x4eca2a({'unitId':_0x234af0,'subUnitId':_0x62607,'drawingId':_0x4db2dc}),_0x3e4c2e=_0xad5438['getObject'](_0x4024ec);if(_0x3e4c2e instanceof _0x2b9b89){let _0x4579b3=_0x3e4c2e[_0x37b873(0x206)]??{};_0x3e4c2e['setPrstGeomAdjValues']({..._0x4579b3,..._0x162ce2}),_0x3e4c2e['makeDirty'](!0x0);}}[_0x40a3e1(0x323)](){const _0x1f8d74=_0x40a3e1;let _0x362245=this[_0x1f8d74(0x2c3)][_0x1f8d74(0x293)](_0x2f72d4[_0x1f8d74(0x2ce)]);this[_0x1f8d74(0x1c6)](_0x362245['pipe'](_0x59c42a(_0x4841a2=>_0x4841a2?_0x4841a2['activeSheet$'][_0x1f8d74(0x300)](_0x59c42a(_0x19de68=>{const _0x5a8c5a=_0x1f8d74;if(!_0x19de68)return _0x50a9a5;let _0x3e19ca=_0x4841a2[_0x5a8c5a(0x2ae)](),_0xd1a286=this[_0x5a8c5a(0x258)]['getRenderUnitById'](_0x3e19ca),_0x694fb7=_0xd1a286==null?void 0x0:_0xd1a286[_0x5a8c5a(0x25b)];return _0x694fb7?_0x3cb66b(_0x694fb7):_0x50a9a5;})):_0x50a9a5))['subscribe'](_0x20bb51=>{const _0x466f46=_0x1f8d74;let _0x56331a=_0x20bb51['getTransformerByCreate']();this[_0x466f46(0x1c6)](_0x20bb51[_0x466f46(0x427)][_0x466f46(0x42f)](()=>{const _0x4ac1b8=_0x466f46;this[_0x4ac1b8(0x392)]&&this[_0x4ac1b8(0x3e3)]();})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x37f)][_0x466f46(0x1ff)](_0x50e0f6=>{const _0x43c537=_0x466f46;let {objects:_0x4e4f74}=_0x50e0f6;if(this[_0x43c537(0x434)](),_0x4e4f74!==null&&_0x4e4f74[_0x43c537(0x219)]===0x1){let _0x1c792e=_0x4e4f74['values']()['next']()[_0x43c537(0x437)];_0x1c792e instanceof _0x2b9b89&&_0x1c792e[_0x43c537(0x365)]&&(this[_0x43c537(0x392)]=!0x0);}})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x303)][_0x466f46(0x1ff)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0x466f46(0x1c6)](_0x20bb51[_0x466f46(0x304)][_0x466f46(0x42f)](()=>{const _0x490237=_0x466f46;this[_0x490237(0x392)]&&(this[_0x490237(0x392)]=!0x1,this[_0x490237(0x434)]());})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x44f)][_0x466f46(0x1ff)](()=>{const _0x4b0205=_0x466f46;if(this[_0x4b0205(0x34f)]&&this[_0x4b0205(0x465)]&&this[_0x4b0205(0x1ee)]){let _0xeeda06=this[_0x4b0205(0x360)](this[_0x4b0205(0x34f)],this[_0x4b0205(0x465)],this[_0x4b0205(0x1ee)]);if(_0xeeda06){var _0x287fe0,_0x392e8c;let _0x5f58b6=this[_0x4b0205(0x40d)](this[_0x4b0205(0x34f)],this[_0x4b0205(0x465)],this[_0x4b0205(0x1ee)]),_0x3ffe5f=(_0x5f58b6==null||(_0x287fe0=_0x5f58b6[_0x4b0205(0x412)])==null?void 0x0:_0x287fe0[_0x4b0205(0x294)])||0x0,_0x5be514=(_0x5f58b6==null||(_0x392e8c=_0x5f58b6[_0x4b0205(0x412)])==null?void 0x0:_0x392e8c[_0x4b0205(0x222)])||0x0,_0x170598=this[_0x4b0205(0x212)](_0xeeda06[_0x4b0205(0x365)],_0x3ffe5f,_0x5be514,_0xeeda06[_0x4b0205(0x3df)]);_0x170598&&(this['_activeAdjustPointList']=_0x170598[_0x4b0205(0x3b2)](),this[_0x4b0205(0x3e3)](),this[_0x4b0205(0x434)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x107859=_0x40a3e1;this[_0x107859(0x1c6)](this['_drawingManagerService'][_0x107859(0x2f5)][_0x107859(0x1ff)](_0x4c9ffe=>{const _0x485c69=_0x107859;if(_0x4c9ffe[_0x485c69(0x46d)]===0x1){let _0x2b14f2=_0x4c9ffe[0x0];if(_0x2b14f2[_0x485c69(0x221)]===_0x204a86[_0x485c69(0x1fe)]){let {unitId:_0x134598,subUnitId:_0x1a2138,drawingId:_0x2ac9e8}=_0x2b14f2,_0x25b43d=this[_0x485c69(0x360)](_0x134598,_0x1a2138,_0x2ac9e8);if(_0x25b43d){var _0x1a7457,_0x172f15;this[_0x485c69(0x1ee)]=_0x2ac9e8,this[_0x485c69(0x34f)]=_0x134598,this['_subUnitId']=_0x1a2138;let _0x108dbb=this[_0x485c69(0x40d)](_0x134598,_0x1a2138,_0x2ac9e8),_0x5e5ff6=(_0x108dbb==null||(_0x1a7457=_0x108dbb['transform'])==null?void 0x0:_0x1a7457[_0x485c69(0x294)])||0x0,_0x1bbff6=(_0x108dbb==null||(_0x172f15=_0x108dbb[_0x485c69(0x412)])==null?void 0x0:_0x172f15[_0x485c69(0x222)])||0x0,_0x46a7e2=this[_0x485c69(0x212)](_0x25b43d[_0x485c69(0x365)],_0x5e5ff6,_0x1bbff6,_0x25b43d[_0x485c69(0x3df)]);_0x46a7e2&&(this[_0x485c69(0x20b)]=_0x46a7e2['getDrawingPoints']()),this[_0x485c69(0x3e3)](),this[_0x485c69(0x434)](!0x0);}else this[_0x485c69(0x1f0)]();}else this[_0x485c69(0x1f0)]();}else this[_0x485c69(0x1f0)]();})),this[_0x107859(0x1c6)](this[_0x107859(0x2f1)]['update$'][_0x107859(0x1ff)](_0x2b90c4=>{const _0x5e3337=_0x107859;if(_0x2b90c4[_0x5e3337(0x46d)]===0x1){let _0x50238a=_0x2b90c4[0x0],_0x3dcfc4=this['_drawingManagerService'][_0x5e3337(0x31f)](_0x50238a);(_0x3dcfc4==null?void 0x0:_0x3dcfc4[_0x5e3337(0x221)])===_0x204a86['DRAWING_IMAGE']&&this[_0x5e3337(0x1ee)]===_0x50238a[_0x5e3337(0x35b)]&&(this[_0x5e3337(0x3e3)](),this['_createControls'](!0x0));}})),this[_0x107859(0x1c6)](this['_drawingManagerService'][_0x107859(0x2f6)][_0x107859(0x1ff)](_0x173c43=>{const _0x47ea09=_0x107859;for(let _0x3e0716 of _0x173c43)this[_0x47ea09(0x1ee)]===_0x3e0716[_0x47ea09(0x35b)]&&this[_0x47ea09(0x1f0)]();}));}[_0x40a3e1(0x1f0)](){const _0x4f8ee8=_0x40a3e1;this[_0x4f8ee8(0x1ee)]=null,this[_0x4f8ee8(0x34f)]=null,this[_0x4f8ee8(0x465)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x4f8ee8(0x3e3)]();}};Xi=X([Y(0x1,_0x2d58e3),Y(0x2,_0x34f57e(_0x5a17c7)),Y(0x3,_0x3a3cc8),Y(0x4,_0x34f57e(Q))],Xi);function Zi(_0x2c9911){const _0x23bed7=_0x40a3e1;return _0x2c9911[_0x23bed7(0x24b)]()||void 0x0;}function Qi(_0x20a4ae,_0x50a64c,_0x55fc8b){const _0x5d8091=_0x40a3e1;var _0x3a3b9a;return((_0x3a3b9a=_0x20a4ae[_0x5d8091(0x445)])==null?void 0x0:_0x3a3b9a[_0x5d8091(0x24b)]())||_0x55fc8b['t']('drawing-ui.objectListPanel.typeNames.'+_0x5d4a8c(_0x20a4ae[_0x5d8091(0x221)]))+'\x20'+(_0x50a64c+0x1);}function $i({PanelComponent:_0x4eb32d=_0x2814d9}){const _0xc9b28b=_0x40a3e1;var _0x4c73c8;let _0x4de0c6=_0x3911a9(_0x1fc669),_0x147088={'title':_0x4de0c6['t'](_0xc9b28b(0x3ea)),'empty':_0x4de0c6['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x4de0c6['t'](_0xc9b28b(0x273)),'hideAll':_0x4de0c6['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x4de0c6['t'](_0xc9b28b(0x22f)),'unlockAll':_0x4de0c6['t'](_0xc9b28b(0x1c7)),'moveForward':_0x4de0c6['t'](_0xc9b28b(0x3aa)),'moveBackward':_0x4de0c6['t'](_0xc9b28b(0x2ec)),'close':_0x4de0c6['t']('drawing-ui.objectListPanel.close'),'show':_0x4de0c6['t'](_0xc9b28b(0x252)),'hide':_0x4de0c6['t'](_0xc9b28b(0x2b7)),'lock':_0x4de0c6['t'](_0xc9b28b(0x421)),'unlock':_0x4de0c6['t'](_0xc9b28b(0x327)),'lockHint':_0x4de0c6['t'](_0xc9b28b(0x215)),'unlockHint':_0x4de0c6['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x4de0c6['t'](_0xc9b28b(0x2af)),'nameInput':_0x4de0c6['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x4de0c6['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x4de0c6['t'](_0xc9b28b(0x328)),'details':_0x4de0c6['t'](_0xc9b28b(0x22d)),'noSelection':_0x4de0c6['t'](_0xc9b28b(0x35e)),'locate':_0x4de0c6['t'](_0xc9b28b(0x402)),'expand':_0x4de0c6['t'](_0xc9b28b(0x1f6)),'collapse':_0x4de0c6['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x4de0c6['t'](_0xc9b28b(0x214)),'search':_0x4de0c6['t'](_0xc9b28b(0x3d1)),'filterAll':_0x4de0c6['t'](_0xc9b28b(0x431)),'filterHidden':_0x4de0c6['t'](_0xc9b28b(0x20e)),'filterLocked':_0x4de0c6['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x4de0c6['t'](_0xc9b28b(0x36c)),'sectionFloating':_0x4de0c6['t'](_0xc9b28b(0x382))},_0x50b035=_0x3911a9(_0x3a4817),_0x203a36=_0x3911a9(_0x3a3cc8),_0x3e656f=_0x3911a9(_0x40f806),_0x5953a1=_0x3911a9(_0x2d58e3),_0x59c367=_0x3911a9(_0x5a17c7),[,_0x20981c]=_0x4d2c52(_0x49778e=>_0x49778e+0x1,0x0),_0x77936f=_0x203a36[_0xc9b28b(0x2ad)](_0x2f72d4[_0xc9b28b(0x2ce)]),_0xba3cd0=(_0x77936f==null?void 0x0:_0x77936f[_0xc9b28b(0x2ae)]())??'',_0x4670db=(_0x77936f==null||(_0x4c73c8=_0x77936f[_0xc9b28b(0x41e)]())==null?void 0x0:_0x4c73c8[_0xc9b28b(0x418)]())??'',_0x9d97d7=_0x17fdf6(()=>_0x5953a1[_0xc9b28b(0x2f5)],_0x5953a1[_0xc9b28b(0x23d)](),!0x1,[_0x5953a1]);_0x4f4595(()=>{const _0xf5e5a1=_0xc9b28b;let _0x4cebb8=_0x50b035[_0xf5e5a1(0x3a7)](()=>_0x20981c());return()=>_0x4cebb8[_0xf5e5a1(0x223)]();},[_0x50b035]);let _0x2c1cca=_0xba3cd0&&_0x4670db?_0x3e656f[_0xc9b28b(0x1d0)](_0xba3cd0,_0x4670db):{},_0x5e6085=(_0xba3cd0&&_0x4670db?_0x3e656f[_0xc9b28b(0x310)](_0xba3cd0,_0x4670db):[])[_0xc9b28b(0x241)](_0x9a8fa8=>_0x2c1cca[_0x9a8fa8])[_0xc9b28b(0x385)](_0x4cdf8f=>!!_0x4cdf8f)[_0xc9b28b(0x3b5)](),_0x12c28f=_0x5e6085['reduce']((_0x5c80bb,_0x374667)=>(_0x5c80bb[_0x295780(_0x374667['drawingType'])]+=0x1,_0x5c80bb),{'canvas':0x0,'floating':0x0}),_0x5cd7c3={'canvas':0x0,'floating':0x0},_0x342f79=_0x5e6085[_0xc9b28b(0x241)]((_0x3d2669,_0x1b7830)=>{const _0x41d540=_0xc9b28b;let _0x1a46e0=_0x295780(_0x3d2669[_0x41d540(0x221)]),_0x448ebb=_0x1a46e0===_0x4460bf,_0x161669=_0x5cd7c3[_0x1a46e0]++;return{'id':_0x3d2669[_0x41d540(0x35b)],'name':Qi(_0x3d2669,_0x1b7830,_0x4de0c6),'description':_0x3d2669['description'],'visible':_0x3d2669[_0x41d540(0x44e)]!==!0x0,'selectable':_0x3d2669[_0x41d540(0x3b8)]!==!0x1,'sectionId':_0x1a46e0,'sectionTitle':_0x448ebb?_0x147088[_0x41d540(0x262)]:_0x147088[_0x41d540(0x299)],'capabilities':_0x448ebb?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x448ebb&&_0x161669>0x0,'canMoveBackward':!_0x448ebb&&_0x161669<_0x12c28f[_0x41d540(0x2e2)]-0x1,'canReorder':!_0x448ebb};}),_0x1642b7=_0x21a1e7(()=>(_0x9d97d7??[])[_0xc9b28b(0x385)](_0x10af1b=>_0x10af1b['unitId']===_0xba3cd0&&_0x10af1b['subUnitId']===_0x4670db)[_0xc9b28b(0x241)](_0x15292f=>_0x15292f[_0xc9b28b(0x35b)]),[_0x9d97d7,_0x4670db,_0xba3cd0]),_0x5f586a=_0x1642b7[_0x1642b7['length']-0x1]??null,_0x2c38d6=_0x30c490=>_0x3e656f[_0xc9b28b(0x31f)]({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x30c490})??null,_0x4def3d=async _0x4a477b=>{const _0x2ef0ce=_0xc9b28b;_0xba3cd0&&_0x4a477b[_0x2ef0ce(0x46d)]&&await _0x50b035['executeCommand'](_0x33b43a['id'],{'unitId':_0xba3cd0,'drawings':_0x4a477b});},_0x1c90b9=async(_0x5ee18c,_0x3d44d7)=>{_0x2c38d6(_0x5ee18c)&&await _0x4def3d([{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x5ee18c,..._0x3d44d7}]);},_0x5d724a=(_0x36bac1,_0x5789fe)=>{const _0x64463b=_0xc9b28b;if(!_0xba3cd0||!_0x4670db)return;let _0x22f2a6=_0x5789fe?_0x1642b7[_0x64463b(0x3d7)](_0x36bac1)?_0x1642b7['filter'](_0x19edcc=>_0x19edcc!==_0x36bac1):[..._0x1642b7,_0x36bac1]:[_0x36bac1];_0x50b035['syncExecuteCommand'](_0x5bb1f9['id'],_0x22f2a6[_0x64463b(0x241)](_0x4f7e33=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x4f7e33})));let _0x5629a4=_0x22f2a6[_0x22f2a6['length']-0x1];_0x5629a4?_0x5312c2(_0x59c367,{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x5629a4}):_0x1da64c(_0x59c367,_0xba3cd0);},_0x2a8053=async(_0x2417cf,_0x5ce29f)=>{const _0x1cee1b=_0xc9b28b;await _0x4def3d(_0x2417cf[_0x1cee1b(0x241)](_0x5cef8a=>_0x2c38d6(_0x5cef8a))['filter'](_0x42c2bc=>!!_0x42c2bc)['filter'](_0x588aac=>_0x588aac['hidden']!==!0x0!==_0x5ce29f)[_0x1cee1b(0x241)](_0x14f1a3=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x14f1a3[_0x1cee1b(0x35b)],'hidden':!_0x5ce29f})));},_0x38f03e=async(_0x1e0197,_0x3a7614)=>{const _0x5b0446=_0xc9b28b;await _0x4def3d(_0x1e0197['map'](_0x6d2b4c=>_0x2c38d6(_0x6d2b4c))[_0x5b0446(0x385)](_0x448aed=>!!_0x448aed)[_0x5b0446(0x385)](_0x1bfd60=>_0x1bfd60[_0x5b0446(0x3b8)]!==!0x1!==_0x3a7614)[_0x5b0446(0x241)](_0x1e1a96=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x1e1a96[_0x5b0446(0x35b)],'selectable':_0x3a7614})));},_0x27f1bb=_0x319555=>{const _0xc46e5b=_0xc9b28b;let _0x32886b=_0x2c38d6(_0x319555);if(_0x32886b)return _0x38f03e([_0x319555],_0x32886b[_0xc46e5b(0x3b8)]===!0x1);},_0x3fc2ee=async(_0x5013f4,_0x11f009)=>{const _0x3461e1=_0xc9b28b;var _0x54fd58;let _0x25f424=Zi(_0x11f009);(((_0x54fd58=_0x2c38d6(_0x5013f4))==null?void 0x0:_0x54fd58[_0x3461e1(0x445)])??void 0x0)!==_0x25f424&&await _0x1c90b9(_0x5013f4,{'name':_0x25f424});},_0x1fc206=async(_0x10fd56,_0xf725fb)=>{var _0x5c3cb6;let _0x284da6=Zi(_0xf725fb);(((_0x5c3cb6=_0x2c38d6(_0x10fd56))==null?void 0x0:_0x5c3cb6['description'])??void 0x0)!==_0x284da6&&await _0x1c90b9(_0x10fd56,{'description':_0x284da6});},_0x340710=async(_0x1e83c8,_0x5dbf02)=>{const _0x129dd2=_0xc9b28b;_0xba3cd0&&_0x4670db&&await _0x50b035[_0x129dd2(0x2d5)](_0x5a5e2c['id'],{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingIds':[_0x1e83c8],'arrangeType':_0x5dbf02});};return!_0xba3cd0||!_0x4670db?_0xf2bc1d(_0xc9b28b(0x1b8),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x147088[_0xc9b28b(0x296)]}):_0xf2bc1d(_0x4eb32d,{'labels':_0x147088,'items':_0x342f79,'selectedIds':_0x1642b7,'focusedId':_0x5f586a,'showHeader':!0x1,'onSelect':_0x5d724a,'onSetVisible':_0x2a8053,'onSetSelectable':_0x38f03e,'onCommitName':_0x3fc2ee,'onCommitDescription':_0x1fc206,'onMoveForward':async _0x609396=>_0x340710(_0x609396,_0x387bee[_0xc9b28b(0x41b)]),'onMoveBackward':async _0x4d31bd=>_0x340710(_0x4d31bd,_0x387bee[_0xc9b28b(0x2bd)]),'onToggleSelectable':_0x27f1bb});}function ea(){return _0xf2bc1d($i,{'PanelComponent':_0x320793});}let ta=class extends _0x1f1ba9{constructor(_0x12160a,_0x45544d){const _0x36cf84=_0x40a3e1;super(),this[_0x36cf84(0x1c6)](_0x12160a[_0x36cf84(0x3f1)](Rr,ea)),this[_0x36cf84(0x1c6)](_0x45544d[_0x36cf84(0x3f1)]({'BottomIcon':_0x5aa288,'FlipHorizontalIcon':_0x4ef5a4,'FlipVerticalIcon':_0x132c9b,'MoveDownIcon':_0x560a3c,'MoveUpIcon':_0x543917,'ObjectLayersIcon':_0x351aa4,'ShapeFormatSettingIcon':_0x4333c8,'TopmostIcon':_0x41d425})),this['disposeWithMe'](_0x12160a[_0x36cf84(0x3f1)](Jr,ti)),this[_0x36cf84(0x1c6)](_0x12160a['register'](Yr,Qr)),_0x12160a[_0x36cf84(0x430)](_0x48abb2)||this['disposeWithMe'](_0x12160a['register'](_0x48abb2,$r));}};ta=X([Y(0x0,_0x34f57e(_0x203616)),Y(0x1,_0x34f57e(_0x3141ce))],ta);let $=class extends _0x1f1ba9{constructor(_0xbe5c17){const _0x161e1c=_0x40a3e1;super(),this[_0x161e1c(0x363)]=_0xbe5c17,q(this,'_editingParams$',new _0x1343c7(null)),q(this,_0x161e1c(0x342),this[_0x161e1c(0x236)]['asObservable']()),q(this,_0x161e1c(0x2a1),new _0x1343c7(!0x1)),q(this,_0x161e1c(0x32d),this[_0x161e1c(0x2a1)]['asObservable']()),q(this,'_completionFrame',void 0x0),this[_0x161e1c(0x1c6)](this[_0x161e1c(0x363)][_0x161e1c(0x373)][_0x161e1c(0x1ff)](()=>{const _0x2ac22c=_0x161e1c;let _0xab35d=this[_0x2ac22c(0x24f)]();_0xab35d!=null&&_0xab35d[_0x2ac22c(0x3e8)]&&!this[_0x2ac22c(0x3ac)](_0xab35d)&&this[_0x2ac22c(0x29d)](null);}));}[_0x40a3e1(0x223)](){const _0xf2424d=_0x40a3e1;this[_0xf2424d(0x3c2)](),this[_0xf2424d(0x236)][_0xf2424d(0x24c)](null),this[_0xf2424d(0x236)][_0xf2424d(0x313)](),this['_onSavingEditorData$'][_0xf2424d(0x24c)](!0x1),this['_onSavingEditorData$'][_0xf2424d(0x313)](),super['dispose']();}['setEditing'](_0x2cfcd2){const _0x3e710b=_0x40a3e1;(_0x2cfcd2==null||!_0x2cfcd2[_0x3e710b(0x3e8)]||this[_0x3e710b(0x3ac)](_0x2cfcd2))&&(this[_0x3e710b(0x3c2)](),this['_editingParams$'][_0x3e710b(0x24c)](_0x2cfcd2),(_0x2cfcd2==null||_0x2cfcd2['visible']&&this['_onSavingEditorData$'][_0x3e710b(0x345)]())&&this[_0x3e710b(0x2a1)]['next'](!0x1));}[_0x40a3e1(0x47c)](_0x4a2872){const _0x134c63=_0x40a3e1;this[_0x134c63(0x2a1)][_0x134c63(0x24c)](_0x4a2872);}['getEditing'](){const _0x2ca389=_0x40a3e1;return this[_0x2ca389(0x236)][_0x2ca389(0x345)]();}['_canEdit'](_0x41f628){const _0x443bcf=_0x40a3e1;let _0x54ec26=this[_0x443bcf(0x363)]['getPermissionPoint'](new _0x3edb9a(_0x41f628[_0x443bcf(0x43a)])['id']),_0x169c5c=this['_permissionService'][_0x443bcf(0x287)](new _0x2e8354(_0x41f628['unitId'],_0x41f628[_0x443bcf(0x330)])['id']);return((_0x54ec26==null?void 0x0:_0x54ec26['value'])??!0x0)&&((_0x169c5c==null?void 0x0:_0x169c5c[_0x443bcf(0x437)])??!0x0);}[_0x40a3e1(0x2a5)](_0x17935b){const _0x5197ce=_0x40a3e1;let _0x38eea1=this['getEditing']();_0x38eea1&&this[_0x5197ce(0x364)]===void 0x0&&(this[_0x5197ce(0x47c)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x1cf7bf=_0x5197ce;this['_completionFrame']=void 0x0,this[_0x1cf7bf(0x24f)]()===_0x38eea1&&this[_0x1cf7bf(0x29d)](null);}));}['_clearCompletionFrame'](){const _0x19e2a3=_0x40a3e1;this[_0x19e2a3(0x364)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x19e2a3(0x364)]=void 0x0);}['cancelEditing'](){const _0xe48430=_0x40a3e1;this['getEditing']()&&this[_0xe48430(0x29d)](null);}};$=X([Y(0x0,_0x579508)],$);let na=class extends _0x1f1ba9{constructor(_0x1a887b,_0x3b86a4,_0x3af857,_0x4ec830,_0x5a2bf1,_0xea44b8){const _0x294776=_0x40a3e1;super(),this['_context']=_0x1a887b,this[_0x294776(0x315)]=_0x3b86a4,this['_shapeTextEditingService']=_0x3af857,this[_0x294776(0x2f1)]=_0x4ec830,this['_contextService']=_0x5a2bf1,this[_0x294776(0x285)]=_0xea44b8,q(this,_0x294776(0x26b),null),this['_initEvents'](),this[_0x294776(0x2e3)](),this[_0x294776(0x20a)]();}[_0x40a3e1(0x30a)](){const _0x2f74d5=_0x40a3e1;let {scene:_0xf059ef}=this[_0x2f74d5(0x40b)];this[_0x2f74d5(0x1c6)](_0xf059ef[_0x2f74d5(0x267)][_0x2f74d5(0x42f)](_0x1ed99e=>{const _0x7d0977=_0x2f74d5;let {offsetX:_0x13e057,offsetY:_0x7bdda3}=_0x1ed99e,_0x1eba7d=_0xf059ef[_0x7d0977(0x479)](_0x1e9d06[_0x7d0977(0x3c3)]([_0x13e057,_0x7bdda3]));if(_0x1eba7d instanceof J){let _0x487032=this[_0x7d0977(0x285)][_0x7d0977(0x3f9)](_0x1eba7d[_0x7d0977(0x43a)],_0x1eba7d[_0x7d0977(0x330)],_0x1eba7d[_0x7d0977(0x464)]);if(_0x421dc8(this[_0x7d0977(0x285)][_0x7d0977(0x3e1)](_0x1eba7d['unitId'],_0x1eba7d[_0x7d0977(0x330)],_0x1eba7d[_0x7d0977(0x464)]))||_0x487032!=null&&_0x487032[_0x7d0977(0x295)]()['formulaBinding'])return;this[_0x7d0977(0x218)][_0x7d0977(0x29d)]({'visible':!0x0,'unitId':_0x1eba7d['unitId'],'subUnitId':_0x1eba7d[_0x7d0977(0x330)],'shapeId':_0x1eba7d[_0x7d0977(0x464)],'shapeKey':_0x1eba7d[_0x7d0977(0x39f)]});}}));}[_0x40a3e1(0x2e3)](){const _0x49875f=_0x40a3e1;this[_0x49875f(0x1c6)](this['_drawingManagerService']['focus$'][_0x49875f(0x1ff)](_0x12a6e6=>{const _0x335196=_0x49875f;if(_0x12a6e6[_0x335196(0x46d)]===0x1){let _0x45d0df=_0x12a6e6[0x0],_0xdcf151=this[_0x335196(0x2f1)][_0x335196(0x31f)](_0x45d0df);if((_0xdcf151==null?void 0x0:_0xdcf151[_0x335196(0x221)])===_0x204a86['DRAWING_SHAPE']){var _0x278b7f;let _0x16920c=this[_0x335196(0x218)][_0x335196(0x24f)]();if((_0x16920c==null?void 0x0:_0x16920c[_0x335196(0x464)])===_0x45d0df['drawingId']&&_0x16920c[_0x335196(0x3e8)])return;let _0x44047b=_0x421dc8(this[_0x335196(0x285)][_0x335196(0x3e1)](_0x45d0df[_0x335196(0x43a)],_0x45d0df[_0x335196(0x330)],_0x45d0df[_0x335196(0x35b)])),_0x1d4d21=!!((_0x278b7f=this[_0x335196(0x285)][_0x335196(0x3f9)](_0x45d0df[_0x335196(0x43a)],_0x45d0df[_0x335196(0x330)],_0x45d0df[_0x335196(0x35b)]))!=null&&_0x278b7f['getShapeData']()[_0x335196(0x40f)]);(_0x44047b||_0x1d4d21)&&this[_0x335196(0x218)][_0x335196(0x29d)](null);}else this[_0x335196(0x218)][_0x335196(0x2a5)]();}else this[_0x335196(0x218)][_0x335196(0x2a5)]();})),this[_0x49875f(0x1c6)](this['_drawingManagerService']['remove$'][_0x49875f(0x1ff)](_0x3d1c5a=>{const _0x16502f=_0x49875f;let _0x507ff9=this['_shapeTextEditingService'][_0x16502f(0x24f)]();_0x507ff9&&_0x3d1c5a[_0x16502f(0x435)](_0x187d7b=>_0x187d7b[_0x16502f(0x35b)]===_0x507ff9[_0x16502f(0x464)])&&this[_0x16502f(0x218)][_0x16502f(0x29d)](null);}));}[_0x40a3e1(0x20a)](){const _0x5a6b4f=_0x40a3e1;this[_0x5a6b4f(0x1c6)](this[_0x5a6b4f(0x218)]['editingParams$'][_0x5a6b4f(0x1ff)](_0x846c06=>{const _0x5e8ee1=_0x5a6b4f;let {scene:_0x1665ed}=this['_context'];if(this[_0x5e8ee1(0x26b)]){let _0xc695d6=_0x1665ed[_0x5e8ee1(0x2d2)](this[_0x5e8ee1(0x26b)]);_0xc695d6&&_0xc695d6[_0x5e8ee1(0x29d)](!0x1);}if(_0x846c06){let _0x246e40=!!_0x846c06[_0x5e8ee1(0x3e8)],_0x19b797=_0x1665ed[_0x5e8ee1(0x2d2)](_0x846c06[_0x5e8ee1(0x3f3)]);_0x19b797&&(_0x19b797[_0x5e8ee1(0x29d)](_0x246e40),this['_lastEditingShapeKey']=_0x846c06[_0x5e8ee1(0x3f3)]),this[_0x5e8ee1(0x394)][_0x5e8ee1(0x1f4)](_0x22723e,_0x246e40);}else this[_0x5e8ee1(0x26b)]=null,this[_0x5e8ee1(0x394)][_0x5e8ee1(0x1f4)](_0x22723e,!0x1);}));}};na=X([Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x34f57e($)),Y(0x3,_0x2d58e3),Y(0x4,_0x264df0),Y(0x5,_0x34f57e(_0x25eee4))],na);var ra=class extends na{[_0x40a3e1(0x30a)](){const _0x420b9b=_0x40a3e1;let {scene:_0x44a5aa}=this[_0x420b9b(0x40b)],_0x5ea2d3=this[_0x420b9b(0x315)][_0x420b9b(0x270)](_0xd18c3c);this[_0x420b9b(0x1c6)](_0x44a5aa[_0x420b9b(0x267)][_0x420b9b(0x42f)](_0x45600a=>{const _0x26f552=_0x420b9b;let {offsetX:_0x56dc86,offsetY:_0x2f7727}=_0x45600a,_0x19a077=_0x44a5aa[_0x26f552(0x479)](_0x1e9d06[_0x26f552(0x3c3)]([_0x56dc86,_0x2f7727]));if(!(_0x19a077 instanceof J))return;let _0x1f6263=this[_0x26f552(0x285)][_0x26f552(0x3f9)](_0x19a077[_0x26f552(0x43a)],_0x19a077[_0x26f552(0x330)],_0x19a077[_0x26f552(0x464)]);_0x421dc8(this[_0x26f552(0x285)][_0x26f552(0x3e1)](_0x19a077[_0x26f552(0x43a)],_0x19a077[_0x26f552(0x330)],_0x19a077[_0x26f552(0x464)]))||_0x1f6263!=null&&_0x1f6263[_0x26f552(0x295)]()[_0x26f552(0x40f)]||_0x5ea2d3[_0x26f552(0x361)]('text',{'hostType':_0x2f72d4[_0x26f552(0x2ce)],'unitId':_0x19a077[_0x26f552(0x43a)],'subUnitId':_0x19a077['subUnitId'],'shapeId':_0x19a077['shapeId']});}));}};const ia={...Ui};let aa=class extends _0x1f1ba9{constructor(_0xe64c4b,_0x5036d5,_0x48855b,_0xe73561,_0x1f7610,_0x1bca94,_0x2713e1,_0x1dd501){const _0x5f2f55=_0x40a3e1;super(),this[_0x5f2f55(0x246)]=_0xe64c4b,this[_0x5f2f55(0x285)]=_0x5036d5,this['_commandService']=_0x48855b,this['_drawingManagerService']=_0xe73561,this[_0x5f2f55(0x331)]=_0x1f7610,this[_0x5f2f55(0x394)]=_0x1bca94,this['_renderManagerService']=_0x2713e1,this[_0x5f2f55(0x218)]=_0x1dd501,q(this,'_shapePopupMenuDisposable',null),this[_0x5f2f55(0x246)][_0x5f2f55(0x227)](ia),this[_0x5f2f55(0x242)](),this[_0x5f2f55(0x1c6)](this[_0x5f2f55(0x218)][_0x5f2f55(0x342)][_0x5f2f55(0x1ff)](_0x2e942a=>{const _0x194409=_0x5f2f55;_0x2e942a&&this[_0x194409(0x2c1)]();}));}[_0x40a3e1(0x33e)](){const _0x56a050=_0x40a3e1;this[_0x56a050(0x35d)]||=this['disposeWithMe'](_0x429510(this[_0x56a050(0x258)],_0x2f72d4[_0x56a050(0x2ce)],_0x2cbed4=>this[_0x56a050(0x1c3)](_0x2cbed4)));}[_0x40a3e1(0x242)](){const _0x59cd52=_0x40a3e1;this[_0x59cd52(0x331)]['registerFeatureMenu'](_0x204a86[_0x59cd52(0x41a)],(_0x53d765,_0x447a8e,_0x1690e9,_0x81ce3f)=>{const _0x58eab4=_0x59cd52;let _0x51eebe=this[_0x58eab4(0x285)][_0x58eab4(0x38a)](_0x53d765,_0x447a8e,_0x1690e9),_0x20ef63=this[_0x58eab4(0x285)][_0x58eab4(0x1df)](_0x53d765,_0x447a8e,_0x1690e9),_0x215945=_0x51eebe!==void 0x0&&!_0x421dc8(_0x51eebe)&&!(_0x20ef63!=null&&_0x20ef63['formulaBinding']);return[{'label':_0x58eab4(0x1e7),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'mode':_0x58eab4(0x467)},'disable':!0x1},..._0x215945?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'mode':_0x58eab4(0x319)},'disable':!0x1}]:[],{'label':_0x58eab4(0x1cd),'index':0x2,'commandId':_0x2982ca['id'],'commandParams':{'unitId':_0x53d765,'drawings':[{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'drawingType':_0x81ce3f}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x559a4e['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'shapeId':_0x1690e9,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x559a4e['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'shapeId':_0x1690e9,'flipV':!0x0},'disable':!0x1}];},_0x59cd52(0x3af));}[_0x40a3e1(0x1c3)](_0x22f349){const _0x343db2=_0x40a3e1;let _0x18c889=new _0x2bf40d(),_0xe754e1=null,_0x3f82fb=()=>{const _0xc5e430=_0x214c;if(!_0xe754e1)return;let _0x571e0e=this['_drawingManagerService'][_0xc5e430(0x23d)](),_0x216efe=_0x571e0e['length']===0x0||_0x571e0e[_0xc5e430(0x46d)]===0x1&&_0x571e0e[_0xc5e430(0x435)](_0x3233ca=>_0x3233ca[_0xc5e430(0x43a)]===(_0xe754e1==null?void 0x0:_0xe754e1[_0xc5e430(0x43a)])&&_0x3233ca[_0xc5e430(0x330)]===(_0xe754e1==null?void 0x0:_0xe754e1['subUnitId'])&&_0x3233ca['drawingId']===(_0xe754e1==null?void 0x0:_0xe754e1[_0xc5e430(0x35b)]));_0xe754e1=null,_0x216efe&&(this['_contextService'][_0xc5e430(0x1f4)](_0x4c4f0c,!0x1),this[_0xc5e430(0x2f1)][_0xc5e430(0x40e)](null));};return _0x18c889[_0x343db2(0x38e)](_0x22f349[_0x343db2(0x3b1)]['subscribe'](()=>{const _0x2e070b=_0x343db2;let _0x2151fc=_0x22f349[_0x2e070b(0x307)]();if(_0x2151fc[_0x2e070b(0x219)]>0x1){_0x3f82fb();return;}let _0xf49576=_0x2151fc[_0x2e070b(0x209)]()[_0x2e070b(0x24c)]()[_0x2e070b(0x437)];if(!_0xf49576){_0x3f82fb();return;}let _0x5c4f57=this[_0x2e070b(0x2f1)][_0x2e070b(0x1dd)](_0xf49576[_0x2e070b(0x39f)]);if(!_0x5c4f57||_0x5c4f57[_0x2e070b(0x221)]!==_0x204a86[_0x2e070b(0x41a)]){_0x3f82fb();return;}let {unitId:_0x5aa240,subUnitId:_0x3d1853,drawingId:_0x53135e}=_0x5c4f57;_0xe754e1={'unitId':_0x5aa240,'subUnitId':_0x3d1853,'drawingId':_0x53135e},this[_0x2e070b(0x394)][_0x2e070b(0x1f4)](_0x4c4f0c,!0x0),this['_drawingManagerService'][_0x2e070b(0x23d)]()[_0x2e070b(0x278)](_0xd639b3=>_0xd639b3[_0x2e070b(0x43a)]===_0x5aa240&&_0xd639b3[_0x2e070b(0x330)]===_0x3d1853&&_0xd639b3[_0x2e070b(0x35b)]===_0x53135e)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x5aa240,'subUnitId':_0x3d1853,'drawingId':_0x53135e}]);})),_0x18c889[_0x343db2(0x38e)](_0x22f349[_0x343db2(0x1e6)][_0x343db2(0x1ff)](()=>{_0x3f82fb();})),_0x35229e(()=>{const _0x3ea5d9=_0x343db2;_0x18c889[_0x3ea5d9(0x223)](),_0x3f82fb();});}[_0x40a3e1(0x2c1)](){const _0x3e5047=_0x40a3e1;this[_0x3e5047(0x394)][_0x3e5047(0x1f4)](_0x4c4f0c,!0x1),this[_0x3e5047(0x2f1)]['focusDrawing'](null);}};aa=X([Y(0x0,_0x2a7418),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x3a4817),Y(0x3,_0x2d58e3),Y(0x4,_0x34f57e(_0x2bf47d)),Y(0x5,_0x264df0),Y(0x6,_0x5a17c7),Y(0x7,_0x34f57e($))],aa);function oa(_0x47779c,_0x256ae3,_0x272218,_0x1ab3ca){const _0x5eb7c5=_0x40a3e1;let _0x18272b=_0x25a00d(_0x47779c,_0x256ae3,_0x272218),_0x7c0c49=[];for(let _0x25da28 of _0x256ae3){let _0x505b8b=_0x18272b['idMap'][_0x5eb7c5(0x270)](_0x25da28[_0x5eb7c5(0x35b)]),_0x204846=_0x1ab3ca(_0x25da28);_0x505b8b&&_0x204846&&_0x7c0c49[_0x5eb7c5(0x346)]({'targetShapeId':_0x505b8b,'source':_0x204846});}return _0x7c0c49;}let sa=class extends _0x1f1ba9{constructor(_0x3c3663,_0x192ded,_0x1ed558,_0x148098){const _0xb466d5=_0x40a3e1;super(),this[_0xb466d5(0x2c3)]=_0x3c3663,this['_sheetInterceptorService']=_0x192ded,this[_0xb466d5(0x410)]=_0x1ed558,this[_0xb466d5(0x285)]=_0x148098,this[_0xb466d5(0x28a)]();}[_0x40a3e1(0x28a)](){const _0x1dc79f=_0x40a3e1;this['disposeWithMe'](this['_sheetInterceptorService'][_0x1dc79f(0x250)]({'getMutations':_0x561733=>{const _0x40ae7c=_0x1dc79f;if(_0x561733['id']===_0x590306['id']){let _0x1c8cdf=_0x1eaf70(this[_0x40ae7c(0x2c3)],_0x561733[_0x40ae7c(0x1fa)]);if(!_0x1c8cdf)return{'redos':[],'undos':[]};let {unitId:_0x336048,subUnitId:_0xfaf2f3}=_0x1c8cdf,_0x26a1b8=this[_0x40ae7c(0x410)][_0x40ae7c(0x1d0)](_0x336048,_0xfaf2f3),_0x552487=Object[_0x40ae7c(0x209)](_0x26a1b8)['filter'](_0x393065=>_0x393065[_0x40ae7c(0x221)]===_0x204a86['DRAWING_SHAPE']);if(_0x552487[_0x40ae7c(0x46d)]===0x0)return{'redos':[],'undos':[]};let _0x3e1046=[],_0x52a841=[];for(let _0x39fedc=0x0;_0x39fedc<_0x552487[_0x40ae7c(0x46d)];_0x39fedc++){let _0x24fbcd=_0x552487[_0x39fedc],_0x186bb5=this[_0x40ae7c(0x285)][_0x40ae7c(0x3f9)](_0x24fbcd[_0x40ae7c(0x43a)],_0x24fbcd[_0x40ae7c(0x330)],_0x24fbcd['drawingId']);_0x186bb5&&(_0x3e1046['push']({'id':_0x950b4f['id'],'params':{'unitId':_0x336048,'subUnitId':_0xfaf2f3,'shapeId':_0x24fbcd[_0x40ae7c(0x35b)]}}),_0x52a841[_0x40ae7c(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x336048,'subUnitId':_0xfaf2f3,'shapeId':_0x24fbcd[_0x40ae7c(0x35b)],'shapeType':_0x186bb5[_0x40ae7c(0x3e1)](),'shapeData':JSON[_0x40ae7c(0x424)](JSON[_0x40ae7c(0x3a9)](_0x186bb5[_0x40ae7c(0x295)]()))}}));}return{'redos':_0x3e1046,'undos':_0x52a841};}if(_0x561733['id']===_0x143b18['id']){let {unitId:_0x1dbf6a,subUnitId:_0xff61e,targetSubUnitId:_0x5caaf9,copyContext:_0x27ea4c}=_0x561733[_0x40ae7c(0x1fa)];if(!_0x1dbf6a||!_0xff61e||!_0x5caaf9)return{'redos':[],'undos':[]};let _0x3c42a1=this[_0x40ae7c(0x410)]['getDrawingData'](_0x1dbf6a,_0xff61e),_0x5278b5=Object[_0x40ae7c(0x209)](_0x3c42a1)[_0x40ae7c(0x385)](_0x174ce0=>_0x174ce0[_0x40ae7c(0x221)]===_0x204a86[_0x40ae7c(0x41a)]);if(_0x5278b5[_0x40ae7c(0x46d)]===0x0)return{'redos':[],'undos':[]};let _0xf2a64a=oa(_0x27ea4c,_0x5278b5,{'unitId':_0x1dbf6a,'sourceSubUnitId':_0xff61e,'targetSubUnitId':_0x5caaf9},_0x467f41=>{const _0x4eb16a=_0x40ae7c;let _0x47413b=this['_sheetsShapeService'][_0x4eb16a(0x3f9)](_0x467f41[_0x4eb16a(0x43a)],_0x467f41[_0x4eb16a(0x330)],_0x467f41['drawingId']);if(_0x47413b)return{'shapeType':_0x47413b[_0x4eb16a(0x3e1)](),'shapeData':JSON['parse'](JSON[_0x4eb16a(0x3a9)](_0x47413b[_0x4eb16a(0x295)]()))};}),_0x4aed5d=[],_0x1361d4=[];for(let {targetShapeId:_0x1b9b1d,source:_0x13b927}of _0xf2a64a)_0x4aed5d[_0x40ae7c(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x1dbf6a,'subUnitId':_0x5caaf9,'shapeId':_0x1b9b1d,'shapeType':_0x13b927[_0x40ae7c(0x1bc)],'shapeData':_0x13b927[_0x40ae7c(0x1eb)]}}),_0x1361d4[_0x40ae7c(0x346)]({'id':_0x950b4f['id'],'params':{'unitId':_0x1dbf6a,'subUnitId':_0x5caaf9,'shapeId':_0x1b9b1d}});return{'redos':_0x4aed5d,'undos':_0x1361d4};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x34f57e(_0x3a3cc8)),Y(0x1,_0x34f57e(_0x20a0fd)),Y(0x2,_0x34f57e(_0x40f806)),Y(0x3,_0x34f57e(_0x25eee4))],sa);let ca=class extends _0x1f1ba9{constructor(_0x470beb,_0x2e95f6,_0x4a9b93,_0x36ce19,_0x551edd,_0x3c34b9){const _0x4f2e5f=_0x40a3e1;super(),this[_0x4f2e5f(0x279)]=_0x470beb,this[_0x4f2e5f(0x258)]=_0x2e95f6,this[_0x4f2e5f(0x2f1)]=_0x4a9b93,this[_0x4f2e5f(0x466)]=_0x36ce19,this['_drawingRenderService']=_0x551edd,this[_0x4f2e5f(0x2c0)]=_0x3c34b9,q(this,_0x4f2e5f(0x397),new Set()),this[_0x4f2e5f(0x2f2)]();}[_0x40a3e1(0x2f2)](){const _0x20610b=_0x40a3e1;this[_0x20610b(0x30f)](),this['_commandExecutedListener'](),this[_0x20610b(0x351)]();}['_drawingAddListener'](){const _0x388e87=_0x40a3e1;this[_0x388e87(0x1c6)](this[_0x388e87(0x2f1)][_0x388e87(0x42b)][_0x388e87(0x1ff)](_0x10aa17=>{this['_insertShapes'](_0x10aa17);}));}[_0x40a3e1(0x207)](){const _0x3e998a=_0x40a3e1;this['disposeWithMe'](this[_0x3e998a(0x279)][_0x3e998a(0x3a7)]((_0x3af2d7,_0x4123a0)=>{const _0x4b4610=_0x3e998a;if(_0x3af2d7['id']===_0x2abe23['id']){let {unitId:_0x3acc38,subUnitId:_0x34db00,shapeId:_0x4c7836}=_0x3af2d7[_0x4b4610(0x1fa)],_0x37e75f=this[_0x4b4610(0x36d)](_0x3acc38),_0x5d4503=_0x4eca2a({'unitId':_0x3acc38,'subUnitId':_0x34db00,'drawingId':_0x4c7836}),_0x1ca358=_0x37e75f==null?void 0x0:_0x37e75f[_0x4b4610(0x25b)][_0x4b4610(0x2d2)](_0x5d4503);_0x1ca358&&(this['_sheetDrawingShapeRenderController'][_0x4b4610(0x3dd)](_0x1ca358),this[_0x4b4610(0x2c0)][_0x4b4610(0x3de)](_0x1ca358,{'unitId':_0x3acc38,'subUnitId':_0x34db00,'shapeId':_0x4c7836}),_0x1ca358[_0x4b4610(0x33f)](!0x0));return;}if(_0x3af2d7['id']===_0x30d486['id']){var _0x2b04c8;let {unitId:_0x13a80b,subUnitId:_0x1f08d1,shapeId:_0x5b7e7e}=_0x3af2d7[_0x4b4610(0x1fa)],_0x316ce7=this[_0x4b4610(0x36d)](_0x13a80b);if(_0x316ce7==null)return;let {scene:_0x1ce24e}=_0x316ce7,_0x41e045=_0x4eca2a({'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}),_0x16e424=_0x1ce24e['getObjectIncludeInGroup'](_0x41e045);if(!((_0x2b04c8=this[_0x4b4610(0x258)]['getRenderUnitById'](_0x13a80b))!=null&&_0x2b04c8['with'](_0x22bccb)[_0x4b4610(0x1d6)](_0x1f08d1)))return!0x1;if(_0x16e424)return;if(_0x4123a0!=null&&_0x4123a0[_0x4b4610(0x403)]){queueMicrotask(()=>{const _0x3b978c=_0x4b4610;this[_0x3b978c(0x31a)]||this[_0x3b978c(0x24e)]([{'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}]);});return;}this[_0x4b4610(0x24e)]([{'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}]);}}));}['_shapeUpdateListener'](){const _0x1bb093=_0x40a3e1;this['disposeWithMe'](this[_0x1bb093(0x2f1)][_0x1bb093(0x2a3)][_0x1bb093(0x1ff)](_0x581b37=>{const _0x240ada=_0x1bb093;_0x581b37[_0x240ada(0x46b)](_0x48b0c7=>{const _0x50b010=_0x240ada;let {unitId:_0x302256,subUnitId:_0x5e0843,drawingId:_0x5b8911}=_0x48b0c7,_0x4c045d=this[_0x50b010(0x2f1)][_0x50b010(0x31f)](_0x48b0c7);if(_0x4c045d==null)return;let {transform:_0x42f10a,drawingType:_0x4f23cb,srcRect:_0x35891c,prstGeom:_0x3c60d2}=_0x4c045d;if(_0x4f23cb!==_0x204a86['DRAWING_SHAPE'])return;let _0x3438df=this[_0x50b010(0x36d)](_0x302256);if(_0x3438df==null)return;let {scene:_0x298291,transformer:_0x253b36}=_0x3438df;if(_0x42f10a==null)return!0x0;let _0x379d40=_0x4eca2a({'unitId':_0x302256,'subUnitId':_0x5e0843,'drawingId':_0x5b8911}),_0x3f4664=_0x298291['getObjectIncludeInGroup'](_0x379d40);if(_0x3f4664==null)return!0x0;_0x3f4664['setSrcRect'](_0x35891c),_0x3f4664[_0x50b010(0x240)](_0x3c60d2);});}));}[_0x40a3e1(0x24e)](_0x40a339){const _0x81c3f5=_0x40a3e1;for(let _0x2eec47 of _0x40a339){var _0x23b519;let {unitId:_0xd25a6f,subUnitId:_0x4a899c,drawingId:_0xaf5b5}=_0x2eec47,_0x112d1a=this['_getSceneAndTransformerByDrawingSearch'](_0xd25a6f),_0x4f737b=(_0x23b519=_0x296f70(this[_0x81c3f5(0x466)],_0xd25a6f))==null?void 0x0:_0x23b519['subUnitId'];if(_0x112d1a==null||_0x4f737b!==_0x4a899c)return;let _0x48582b=_0x4eca2a({'unitId':_0xd25a6f,'subUnitId':_0x4a899c,'drawingId':_0xaf5b5});if(this[_0x81c3f5(0x397)][_0x81c3f5(0x2df)](_0x48582b)||_0x112d1a[_0x81c3f5(0x25b)]['getObjectIncludeInGroup'](_0x48582b)!=null)return;let _0x33eb75=this[_0x81c3f5(0x2f1)][_0x81c3f5(0x31f)](_0x2eec47);if(_0x33eb75==null||_0x33eb75['drawingType']!==_0x204a86['DRAWING_SHAPE'])return;let _0x49860f=_0x33eb75[_0x81c3f5(0x406)]||{};if(_0x421dc8(_0x49860f[_0x81c3f5(0x1bc)])){let _0x190176=_0x33eb75[_0x81c3f5(0x412)];_0x190176&&(_0x33eb75[_0x81c3f5(0x412)]={..._0x190176,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x81c3f5(0x397)][_0x81c3f5(0x38e)](_0x48582b);try{this['_sheetDrawingShapeRenderController'][_0x81c3f5(0x359)](_0x33eb75,_0x112d1a['scene']);}finally{this['_insertingShapeKeys']['delete'](_0x48582b);}queueMicrotask(()=>{const _0x1f22d9=_0x81c3f5;if(this[_0x1f22d9(0x31a)])return;let _0x4a1fd3=_0x4eca2a(_0x2eec47);if(!_0x112d1a[_0x1f22d9(0x25b)][_0x1f22d9(0x2d2)](_0x4a1fd3))return;let _0x103a89=this[_0x1f22d9(0x2f1)][_0x1f22d9(0x31f)](_0x2eec47);_0x103a89&&this['_drawingManagerService']['refreshTransform']([_0x103a89]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x3810fd){const _0xa8ec1e=_0x40a3e1;if(_0x3810fd==null)return;let _0x266186=this[_0xa8ec1e(0x258)][_0xa8ec1e(0x2cf)](_0x3810fd),_0xe5c67a=_0x266186==null?void 0x0:_0x266186[_0xa8ec1e(0x25b)];return _0xe5c67a==null?null:{'scene':_0xe5c67a,'transformer':_0xe5c67a['getTransformerByCreate']()};}};ca=X([Y(0x0,_0x3a4817),Y(0x1,_0x5a17c7),Y(0x2,_0x2d58e3),Y(0x3,_0x3a3cc8),Y(0x4,_0x34f57e(_0xe326a7)),Y(0x5,_0x34f57e(Z))],ca);const la={'normal':{'fill':_0x2c02a7[_0x40a3e1(0x387)],'stroke':_0x2c02a7[_0x40a3e1(0x2b0)],'strokeWidth':_0x2c02a7['cxnPointStrokeWidth']},'highlighted':{'fill':_0x40a3e1(0x259),'stroke':'#1a73e8','strokeWidth':0x2}};var ua=class extends _0x4d9757{constructor(_0x3f9b78,_0x4a4f8f){const _0x36c63e=_0x40a3e1;super(_0x3f9b78,_0x4a4f8f),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,'_unitId',''),q(this,_0x36c63e(0x465),''),q(this,_0x36c63e(0x468),!0x1),_0x4a4f8f&&this[_0x36c63e(0x268)](_0x4a4f8f);}[_0x40a3e1(0x257)](){const _0x121f19=_0x40a3e1;return{'unitId':this['_unitId'],'subUnitId':this[_0x121f19(0x465)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x121f19(0x1f5)]};}[_0x40a3e1(0x34e)](_0x77b50c){const _0x48f6dd=_0x40a3e1;this[_0x48f6dd(0x468)]!==_0x77b50c&&(this[_0x48f6dd(0x468)]=_0x77b50c,this[_0x48f6dd(0x33f)](!0x0));}[_0x40a3e1(0x39c)](){const _0xdaf1d1=_0x40a3e1;return this[_0xdaf1d1(0x468)];}[_0x40a3e1(0x268)](_0x19e763){const _0x53dbb4=_0x40a3e1;_0x19e763[_0x53dbb4(0x3ee)]!==void 0x0&&(this['_targetShapeId']=_0x19e763[_0x53dbb4(0x3ee)]),_0x19e763[_0x53dbb4(0x3d5)]!==void 0x0&&(this[_0x53dbb4(0x1f5)]=_0x19e763['cxnIndex']),_0x19e763[_0x53dbb4(0x43a)]!==void 0x0&&(this[_0x53dbb4(0x34f)]=_0x19e763[_0x53dbb4(0x43a)]),_0x19e763['subUnitId']!==void 0x0&&(this[_0x53dbb4(0x465)]=_0x19e763[_0x53dbb4(0x330)]),_0x19e763[_0x53dbb4(0x39c)]!==void 0x0&&(this[_0x53dbb4(0x468)]=_0x19e763[_0x53dbb4(0x39c)]),this['transformByState']({'width':_0x19e763[_0x53dbb4(0x294)]??_0x2c02a7[_0x53dbb4(0x314)]*0x2,'height':_0x19e763[_0x53dbb4(0x222)]??_0x2c02a7[_0x53dbb4(0x314)]*0x2});}[_0x40a3e1(0x1ed)](_0x279935){const _0x26508f=_0x40a3e1;let _0x58b2ce=this[_0x26508f(0x468)]?la['highlighted']:la[_0x26508f(0x43d)];_0x597d7e['drawWith'](_0x279935,{'radius':_0x2c02a7[_0x26508f(0x314)],'fill':_0x58b2ce[_0x26508f(0x2fb)],'stroke':_0x58b2ce[_0x26508f(0x453)],'strokeWidth':_0x58b2ce['strokeWidth'],'evented':!0x0});}};let da=class extends _0x1f1ba9{constructor(_0x38626c,_0x4ca4aa,_0x1996b2,_0x196186){const _0x39162e=_0x40a3e1;super(),this[_0x39162e(0x40b)]=_0x38626c,this[_0x39162e(0x258)]=_0x4ca4aa,this[_0x39162e(0x2f1)]=_0x1996b2,this[_0x39162e(0x285)]=_0x196186,q(this,_0x39162e(0x201),[]),q(this,_0x39162e(0x21b),null),q(this,_0x39162e(0x372),-0x1),q(this,_0x39162e(0x1cc),null),q(this,_0x39162e(0x34f),''),q(this,_0x39162e(0x465),''),q(this,_0x39162e(0x3f6),null);}[_0x40a3e1(0x343)](_0x1d51de,_0x583650,_0x24b721,_0x3006e6){const _0x46aa7e=_0x40a3e1;this[_0x46aa7e(0x1cc)]=_0x1d51de,this['_unitId']=_0x583650,this['_subUnitId']=_0x24b721,this[_0x46aa7e(0x3f6)]=_0x3006e6;}[_0x40a3e1(0x29f)](_0xcbce8f){const _0x1ebafc=_0x40a3e1;if(!this[_0x1ebafc(0x1cc)])return null;let _0x10e76d=this[_0x1ebafc(0x42d)](_0xcbce8f);return _0x10e76d?(this[_0x1ebafc(0x21b)]!==_0x10e76d[_0x1ebafc(0x464)]&&(this['_clearConnectionSites'](),this[_0x1ebafc(0x37e)](_0x10e76d[_0x1ebafc(0x464)],_0x10e76d[_0x1ebafc(0x450)]),this['_activeTargetShapeId']=_0x10e76d[_0x1ebafc(0x464)]),this[_0x1ebafc(0x28f)](_0xcbce8f)):(this['_activeTargetShapeId']!==null&&(this[_0x1ebafc(0x38f)](),this[_0x1ebafc(0x21b)]=null),null);}[_0x40a3e1(0x46f)](){const _0x1c0d8a=_0x40a3e1;this[_0x1c0d8a(0x38f)](),this['_currentScene']=null,this[_0x1c0d8a(0x21b)]=null,this[_0x1c0d8a(0x372)]=-0x1,this[_0x1c0d8a(0x3f6)]=null;}[_0x40a3e1(0x31c)](){const _0x487259=_0x40a3e1;return this[_0x487259(0x21b)]===null||this[_0x487259(0x372)]<0x0?null:{'shapeId':this[_0x487259(0x21b)],'cxnIndex':this[_0x487259(0x372)]};}[_0x40a3e1(0x42d)](_0x4f4589){const _0x2681db=_0x40a3e1;let _0x558cd5=this[_0x2681db(0x2f1)]['getDrawingData'](this[_0x2681db(0x34f)],this['_subUnitId']);for(let _0x586834 of Object[_0x2681db(0x413)](_0x558cd5)){if(_0x586834===this[_0x2681db(0x3f6)]||_0x558cd5[_0x586834][_0x2681db(0x221)]!==_0x204a86[_0x2681db(0x41a)])continue;let _0x512623=this[_0x2681db(0x285)][_0x2681db(0x3f9)](this[_0x2681db(0x34f)],this[_0x2681db(0x465)],_0x586834);if(!_0x512623||_0x421dc8(_0x512623[_0x2681db(0x3e1)]())||_0x512623[_0x2681db(0x3ca)]()['length']===0x0||!this[_0x2681db(0x1cc)])continue;let _0x39d741=_0x4eca2a({'unitId':this['_unitId'],'subUnitId':this[_0x2681db(0x465)],'drawingId':_0x586834}),_0x38f0dc=this[_0x2681db(0x1cc)][_0x2681db(0x2d2)](_0x39d741);if(!_0x38f0dc)continue;let {left:_0x43d380,top:_0x359689,width:_0x5a8657,height:_0x57e709}=_0x38f0dc['getRealBound'](),_0x529a69=_0x43d380+_0x5a8657/0x2,_0x3b63a3=_0x359689+_0x57e709/0x2,_0x5cc140=_0x38f0dc[_0x2681db(0x412)][_0x2681db(0x411)](),_0x1c6cd1=new _0x270023([_0x5cc140[0x0],_0x5cc140[0x1],_0x5cc140[0x2],_0x5cc140[0x3],_0x529a69,_0x3b63a3]),_0x4aeb29=_0x38f0dc[_0x2681db(0x374)](),_0xcb56fb=(_0x38f0dc[_0x2681db(0x384)]&&(_0x4aeb29==null?void 0x0:_0x4aeb29[_0x2681db(0x3b0)])===_0x5caa7e['GROUP']?_0x4aeb29[_0x2681db(0x320)][_0x2681db(0x376)](_0x1c6cd1):_0x1c6cd1)[_0x2681db(0x420)]()[_0x2681db(0x415)](_0x4f4589),_0x2d64c7=_0x5a8657/0x2,_0x401137=_0x57e709/0x2;if(_0xcb56fb['x']>=-_0x2d64c7-0x5&&_0xcb56fb['x']<=_0x2d64c7+0x5&&_0xcb56fb['y']>=-_0x401137-0x5&&_0xcb56fb['y']<=_0x401137+0x5)return{'shapeId':_0x586834,'shapeModel':_0x512623};}return null;}[_0x40a3e1(0x37e)](_0x1dfbe9,_0x38bfb9){const _0x44c25c=_0x40a3e1;if(!this[_0x44c25c(0x1cc)])return;let _0x1a35ce=_0x4eca2a({'unitId':this[_0x44c25c(0x34f)],'subUnitId':this['_subUnitId'],'drawingId':_0x1dfbe9}),_0x3f7a43=this[_0x44c25c(0x1cc)][_0x44c25c(0x2d2)](_0x1a35ce);if(!_0x3f7a43)return;let {left:_0x29c9b3,top:_0x2ded42,width:_0x1c8c9f,height:_0x1db188}=_0x3f7a43['getRealBound'](),_0x5bea2d=_0x29c9b3+_0x1c8c9f/0x2,_0x566db1=_0x2ded42+_0x1db188/0x2,_0x19619a=_0x3f7a43[_0x44c25c(0x412)]['getMatrix'](),_0x404b2f=new _0x270023([_0x19619a[0x0],_0x19619a[0x1],_0x19619a[0x2],_0x19619a[0x3],_0x5bea2d,_0x566db1]),_0x3f7f5d=_0x3f7a43[_0x44c25c(0x374)](),_0xdd678f=_0x3f7a43[_0x44c25c(0x384)]&&(_0x3f7f5d==null?void 0x0:_0x3f7f5d[_0x44c25c(0x3b0)])===_0x5caa7e['GROUP']?_0x3f7f5d['ancestorTransform'][_0x44c25c(0x376)](_0x404b2f):_0x404b2f;_0x38bfb9[_0x44c25c(0x2e0)]({'width':_0x1c8c9f,'height':_0x1db188});let _0x22635c=_0x38bfb9[_0x44c25c(0x3ca)]();for(let _0x44250b of _0x22635c){let _0x1cb4cd=_0x44250b['x']-_0x1c8c9f/0x2,_0x111e0e=_0x44250b['y']-_0x1db188/0x2,_0x32ab4b=_0xdd678f['applyPoint']({'x':_0x1cb4cd,'y':_0x111e0e}),_0x62229=_0x32ab4b['x'],_0x4592b0=_0x32ab4b['y'],_0x3bf9fb=new ua('connection-site-'+_0x1dfbe9+'-'+_0x44250b[_0x44c25c(0x352)],{'left':_0x62229-_0x2c02a7[_0x44c25c(0x314)],'top':_0x4592b0-_0x2c02a7[_0x44c25c(0x314)],'targetShapeId':_0x1dfbe9,'cxnIndex':_0x44250b['index'],'unitId':this['_unitId'],'subUnitId':this[_0x44c25c(0x465)],'width':_0x2c02a7['cxnPointRadius']*0x2,'height':_0x2c02a7[_0x44c25c(0x314)]*0x2,'zIndex':_0x1301e0+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x44c25c(0x346)](_0x3bf9fb),this[_0x44c25c(0x1cc)][_0x44c25c(0x3ae)](_0x3bf9fb,_0x1301e0+0x2);}}['_findNearestConnectionSite'](_0x2f1b6c){const _0x4be77a=_0x40a3e1;let _0x454331=null,_0xf92f32=0x1/0x0,_0x1f49d5=null;for(let _0x1327b1 of this[_0x4be77a(0x201)]){let _0x3476e8=_0x1327b1['left']+_0x2c02a7[_0x4be77a(0x314)],_0x476ee8=_0x1327b1[_0x4be77a(0x473)]+_0x2c02a7['cxnPointRadius'],_0x119232=_0x2f1b6c['x']-_0x3476e8,_0x3d6e2f=_0x2f1b6c['y']-_0x476ee8,_0x12a776=Math[_0x4be77a(0x3dc)](_0x119232*_0x119232+_0x3d6e2f*_0x3d6e2f);_0x12a776<_0xf92f32&&(_0xf92f32=_0x12a776,_0x454331=_0x1327b1,_0x1f49d5={'x':_0x3476e8,'y':_0x476ee8});}let _0x3ac9db=_0xf92f32<=0xa&&_0x454331?_0x454331['getConnectionInfo']()[_0x4be77a(0x3d5)]:-0x1;if(_0x3ac9db!==this[_0x4be77a(0x372)]){for(let _0x588b6e of this['_connectionSiteObjects']){let _0x596d68=_0x588b6e[_0x4be77a(0x257)]();_0x588b6e['setHighlighted'](_0x596d68[_0x4be77a(0x3d5)]===_0x3ac9db);}this['_highlightedSiteIndex']=_0x3ac9db;}if(_0xf92f32<=0xa&&_0x454331&&_0x1f49d5){let _0x546607=_0x454331['getConnectionInfo'](),_0x2f0a32=this[_0x4be77a(0x2e5)](_0x546607[_0x4be77a(0x464)],_0x546607[_0x4be77a(0x3d5)]);return{'shapeId':_0x546607[_0x4be77a(0x464)],'cxnIndex':_0x546607[_0x4be77a(0x3d5)],'unitId':_0x546607[_0x4be77a(0x43a)],'subUnitId':_0x546607['subUnitId'],'worldPoint':_0x1f49d5,'angle':_0x2f0a32};}return null;}[_0x40a3e1(0x2e5)](_0x5b5b0e,_0x179f6a){const _0xf72345=_0x40a3e1;let _0x1561c5=this['_sheetsShapeService'][_0xf72345(0x3f9)](this['_unitId'],this[_0xf72345(0x465)],_0x5b5b0e);if(!_0x1561c5)return 0x0;let _0x1117dd=this[_0xf72345(0x2f1)][_0xf72345(0x31f)]({'unitId':this['_unitId'],'subUnitId':this[_0xf72345(0x465)],'drawingId':_0x5b5b0e});if(!(_0x1117dd!=null&&_0x1117dd[_0xf72345(0x412)]))return 0x0;let {width:_0x123da9=0x0,height:_0x1256cf=0x0,flipX:_0x47fad6=!0x1,flipY:_0x19e0f2=!0x1}=_0x1117dd['transform'];_0x1561c5[_0xf72345(0x2e0)]({'width':_0x123da9,'height':_0x1256cf});let _0x4bdd5e=_0x1561c5['getConnectionSiteList']()['find'](_0x46d613=>_0x46d613[_0xf72345(0x352)]===_0x179f6a);if(!_0x4bdd5e)return 0x0;let _0x4576aa=_0x4bdd5e[_0xf72345(0x308)]/0xea60;return _0x47fad6&&(_0x4576aa=0xb4-_0x4576aa),_0x19e0f2&&(_0x4576aa=-_0x4576aa),_0x4576aa=(_0x4576aa%0x168+0x168)%0x168,_0x4576aa;}[_0x40a3e1(0x38f)](){const _0x68f3db=_0x40a3e1;for(let _0x2d696d of this[_0x68f3db(0x201)])_0x2d696d['dispose']();this[_0x68f3db(0x201)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x40a3e1(0x223)](){const _0xe5f3d7=_0x40a3e1;this[_0xe5f3d7(0x38f)](),super[_0xe5f3d7(0x223)]();}};da=X([Y(0x1,_0x34f57e(_0x5a17c7)),Y(0x2,_0x34f57e(_0x2d58e3)),Y(0x3,_0x34f57e(_0x25eee4))],da);let fa=class extends _0x1f1ba9{constructor(_0x39899d,_0x3951e9,_0x1032da,_0x59f5e3,_0xb5ed1){const _0x799150=_0x40a3e1;super(),this[_0x799150(0x3ba)]=_0x39899d,this[_0x799150(0x3b4)]=_0x3951e9,this[_0x799150(0x410)]=_0x1032da,this[_0x799150(0x3bc)]=_0x59f5e3,this['_groupCopyPasteController']=_0xb5ed1,q(this,_0x799150(0x3f7),void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x40a3e1(0x1cb)](){const _0x2ec5de=_0x40a3e1;return this[_0x2ec5de(0x410)][_0x2ec5de(0x23d)]();}[_0x40a3e1(0x3db)](){const _0x5515d7=_0x40a3e1;this[_0x5515d7(0x283)][_0x5515d7(0x26e)](({fromUnitId:_0x3c278d,fromSubUnitId:_0x489d66,toUnitId:_0x1c6d7c,toSubUnitId:_0x378293,idMap:_0x45293e})=>{const _0x35c84a=_0x5515d7;let _0x5b927c=[],_0xa3a367=[];for(let [_0x1e3419,_0x53dc6f]of _0x45293e['entries']()){let _0x1fe0d0=this[_0x35c84a(0x3bc)][_0x35c84a(0x3f9)](_0x3c278d,_0x489d66,_0x1e3419);if(!_0x1fe0d0)continue;let _0x511dc3=_0x1fe0d0[_0x35c84a(0x3e1)](),_0x4831bc=JSON['parse'](JSON['stringify'](_0x1fe0d0['getShapeData']()));if(_0x4831bc[_0x35c84a(0x276)]){var _0x2e2d23,_0x27d6b4;let _0x3a69d2=(_0x2e2d23=_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)])==null?void 0x0:_0x2e2d23['shapeId'],_0x50b41d=(_0x27d6b4=_0x4831bc[_0x35c84a(0x276)]['to'])==null?void 0x0:_0x27d6b4[_0x35c84a(0x464)],_0x2b5f5f=!_0x3a69d2||_0x45293e[_0x35c84a(0x2df)](_0x3a69d2),_0x25d507=!_0x50b41d||_0x45293e[_0x35c84a(0x2df)](_0x50b41d);_0x2b5f5f&&_0x3a69d2&&_0x4831bc[_0x35c84a(0x276)]['from']?_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)]={..._0x4831bc['relation'][_0x35c84a(0x354)],'shapeId':_0x45293e['get'](_0x3a69d2)}:_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)]=void 0x0,_0x25d507&&_0x50b41d&&_0x4831bc['relation']['to']?_0x4831bc['relation']['to']={..._0x4831bc[_0x35c84a(0x276)]['to'],'shapeId':_0x45293e[_0x35c84a(0x270)](_0x50b41d)}:_0x4831bc['relation']['to']=void 0x0;}_0x5b927c[_0x35c84a(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x1c6d7c,'subUnitId':_0x378293,'shapeId':_0x53dc6f,'shapeType':_0x511dc3,'shapeData':_0x4831bc}}),_0xa3a367['push']({'id':_0x950b4f['id'],'params':{'unitId':_0x1c6d7c,'subUnitId':_0x378293,'shapeId':_0x53dc6f}});}return{'redos':_0x5b927c,'undos':_0xa3a367};});}[_0x40a3e1(0x1c5)](){const _0x51a936=_0x40a3e1;this[_0x51a936(0x1c6)](this['_sheetClipboardService'][_0x51a936(0x2a8)]({'id':_0x51a936(0x428),'onBeforeCopyFocusedObject':(_0x7917d5,_0xab419e,_0x1f4d7e)=>{const _0x23c44d=_0x51a936;this[_0x23c44d(0x3f7)]=null;let _0x4b6860=this[_0x23c44d(0x1cb)][_0x23c44d(0x385)](_0x34cd83=>_0x34cd83[_0x23c44d(0x221)]===_0x204a86[_0x23c44d(0x41a)]);return _0x4b6860[_0x23c44d(0x46d)]!==0x0&&(this[_0x23c44d(0x3f7)]={'unitId':_0x7917d5,'subUnitId':_0xab419e,'copyType':_0x1f4d7e,'drawings':_0x4b6860},!0x0);},'onBeforeCopy':(_0x1b99f5,_0x5e4b65,_0xb192de,_0x24c935)=>{this['_copyInfo']=null,this['_createCopyInfoByRange'](_0x1b99f5,_0x5e4b65,_0xb192de,_0x24c935);},'onPasteCells':(_0x241e0a,_0x19189f,_0x1b6bf5,_0x8b43ee)=>{const _0x34df09=_0x51a936;if(!_0x8b43ee['copyId']||!_0x241e0a||!this[_0x34df09(0x3f7)])return{'redos':[],'undos':[]};let {pasteType:_0x33132a}=_0x8b43ee;return _0x33132a===_0x20a41f[_0x34df09(0x456)]?this[_0x34df09(0x399)](_0x19189f,this[_0x34df09(0x3f7)][_0x34df09(0x290)]===_0x483eee['CUT']):{'redos':[],'undos':[]};}}));}[_0x40a3e1(0x263)](_0x3b796a,_0x2cb1cb,_0x3e651f,_0x34c119){const _0xb9a172=_0x40a3e1;let _0x1efc26=this['_sheetSkeletonService']['getSkeleton'](_0x3b796a,_0x2cb1cb);if(!_0x1efc26)return;let _0x58dcfb=_0x500c4e(_0x1efc26,_0x3e651f);if(!_0x58dcfb)return;let {startX:_0x5131fe,endX:_0x578197,startY:_0x2f0d16,endY:_0x5e3c67}=_0x58dcfb,_0x6fc265=this[_0xb9a172(0x410)][_0xb9a172(0x1d0)](_0x3b796a,_0x2cb1cb),_0x445e59=[];for(let [_0x22e384,_0x32a508]of Object[_0xb9a172(0x417)](_0x6fc265)){if(_0x32a508[_0xb9a172(0x221)]!==_0x204a86[_0xb9a172(0x41a)])continue;let {transform:_0x5ae639}=_0x32a508;if(!_0x5ae639)continue;let {left:_0x2f2e14=0x0,top:_0x51a56f=0x0,width:_0xbd8a90=0x0,height:_0x4f1732=0x0}=_0x5ae639;_0x5131fe<=_0x2f2e14&&_0x578197>=_0x2f2e14+_0xbd8a90&&_0x2f0d16<=_0x51a56f&&_0x5e3c67>=_0x51a56f+_0x4f1732&&_0x445e59['push'](_0x32a508);}_0x445e59['length']>0x0&&(this['_copyInfo']={'unitId':_0x3b796a,'subUnitId':_0x2cb1cb,'copyType':_0x34c119,'copyRange':_0x3e651f,'drawings':_0x445e59});}[_0x40a3e1(0x399)](_0x58b45e,_0x30e2ca){const _0x3bf670=_0x40a3e1;let {unitId:_0x5b7a93,subUnitId:_0x4b1ef7,range:_0x16be56}=_0x58b45e,_0x387925=this[_0x3bf670(0x3ba)][_0x3bf670(0x1d6)](_0x5b7a93,_0x4b1ef7);if(!_0x387925)return{'redos':[],'undos':[]};let _0x335c88=_0x32c5b6(_0x16be56),{unitId:_0x38966f,subUnitId:_0x45c52b,copyRange:_0x2a2771,drawings:_0x34c92e}=this[_0x3bf670(0x3f7)],_0x42a3c9=this[_0x3bf670(0x3ba)]['getSkeleton'](_0x38966f,_0x45c52b);if(!_0x42a3c9)return{'redos':[],'undos':[]};let _0x57962a;if(!_0x2a2771){let _0x4ec917=0x1/0x0,_0x33b6bb=0x1/0x0;for(let _0x55da9d of _0x34c92e){let {left:_0x43c8b2=0x0,top:_0x3b30c6=0x0}=_0x55da9d['transform']??{};_0x43c8b2<_0x4ec917&&(_0x4ec917=_0x43c8b2),_0x3b30c6<_0x33b6bb&&(_0x33b6bb=_0x3b30c6);}_0x4ec917!==0x1/0x0&&_0x33b6bb!==0x1/0x0&&(_0x57962a={'left':_0x4ec917,'top':_0x33b6bb});}let _0x13a82b=new Map();if(!_0x30e2ca){for(let _0x3308d4 of _0x34c92e)_0x13a82b['set'](_0x3308d4[_0x3bf670(0x35b)],_0x57f70d());}let _0x5b47e8=[],_0x11287b=[];for(let _0x3e2cc1 of _0x34c92e){let {drawingId:_0x75fc5b,transform:_0x45eabc,sheetTransform:_0x5c034f}=_0x3e2cc1;if(!_0x45eabc||!_0x5c034f)continue;let _0x48a93b=this[_0x3bf670(0x27f)]({'transform':_0x45eabc,'sheetTransform':_0x5c034f},{'skeleton':_0x42a3c9,'range':_0x2a2771},{'skeleton':_0x387925,'range':_0x335c88},_0x57962a);if(_0x30e2ca){let {redos:_0x5b594f,undos:_0x226755}=this['_generateCutPasteMutations']({'fromUnitId':_0x38966f,'fromSubUnitId':_0x45c52b,'toUnitId':_0x5b7a93,'toSubUnitId':_0x4b1ef7,'drawing':_0x3e2cc1,'newTransforms':_0x48a93b});_0x5b47e8[_0x3bf670(0x346)](..._0x5b594f),_0x11287b[_0x3bf670(0x346)](..._0x226755);continue;}let {redos:_0x5cd1c6,undos:_0x50e283}=this[_0x3bf670(0x1cf)]({'toUnitId':_0x5b7a93,'toSubUnitId':_0x4b1ef7,'drawing':_0x3e2cc1,'newTransforms':_0x48a93b,'newDrawingId':_0x13a82b[_0x3bf670(0x270)](_0x75fc5b),'idMap':_0x13a82b});_0x5b47e8[_0x3bf670(0x346)](..._0x5cd1c6),_0x11287b[_0x3bf670(0x346)](..._0x50e283);}return{'redos':_0x5b47e8,'undos':_0x11287b};}[_0x40a3e1(0x389)](_0x313acc){const _0x11c148=_0x40a3e1;let {fromUnitId:_0x2f9dc5,fromSubUnitId:_0x1be9ce,toUnitId:_0x191b4e,toSubUnitId:_0x3fdb17,drawing:_0x4f5efa,newTransforms:_0x7a8b3c}=_0x313acc,_0x22d0c9={..._0x4f5efa,'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'transform':_0x7a8b3c['transform'],'sheetTransform':_0x7a8b3c[_0x11c148(0x33c)]};if(_0x191b4e===_0x2f9dc5&&_0x3fdb17===_0x1be9ce){let {redo:_0x3c5620,undo:_0x37cf4e,objects:_0x1ce6f3}=this['_sheetDrawingService'][_0x11c148(0x33a)]([_0x22d0c9]);return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60['UPDATE'],'op':_0x3c5620,'objects':_0x1ce6f3}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60[_0x11c148(0x455)],'op':_0x37cf4e,'objects':_0x1ce6f3}}]};}{let _0x4ac7e8=this[_0x11c148(0x410)][_0x11c148(0x3a4)]([_0x4f5efa]),_0x3dda28=this[_0x11c148(0x410)][_0x11c148(0x24d)]([_0x22d0c9]),_0x29c9cd=this['_shapeService']['getShapeModel'](_0x4f5efa[_0x11c148(0x43a)],_0x4f5efa[_0x11c148(0x330)],_0x4f5efa[_0x11c148(0x35b)]);if(!_0x29c9cd)return{'redos':[],'undos':[]};let _0x25a054=_0x29c9cd['getShapeType'](),_0xc1567c=JSON[_0x11c148(0x424)](JSON['stringify'](_0x29c9cd[_0x11c148(0x295)]()));return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'type':_0x55dd60['REMOVE'],'op':_0x4ac7e8[_0x11c148(0x41d)],'objects':_0x4ac7e8[_0x11c148(0x2dc)]}},{'id':_0x950b4f['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'shapeId':_0x4f5efa[_0x11c148(0x35b)]}},{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60[_0x11c148(0x1ef)],'op':_0x3dda28[_0x11c148(0x41d)],'objects':_0x3dda28['objects']}},{'id':_0x30d486['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'shapeId':_0x4f5efa[_0x11c148(0x35b)],'shapeType':_0x25a054,'shapeData':_0xc1567c}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'type':_0x55dd60[_0x11c148(0x1ef)],'op':_0x4ac7e8[_0x11c148(0x2a9)],'objects':_0x4ac7e8['objects']}},{'id':_0x30d486['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'shapeId':_0x4f5efa['drawingId'],'shapeType':_0x25a054,'shapeData':_0xc1567c}},{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60['REMOVE'],'op':_0x3dda28[_0x11c148(0x2a9)],'objects':_0x3dda28['objects']}},{'id':_0x950b4f['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'shapeId':_0x4f5efa[_0x11c148(0x35b)]}}]};}}[_0x40a3e1(0x1cf)](_0x550a30){const _0x5e7991=_0x40a3e1;let {toUnitId:_0x23c2ec,toSubUnitId:_0x3e1bc3,drawing:_0x5dfb1f,newTransforms:_0xff9456,newDrawingId:_0x53d15f,idMap:_0x24710b}=_0x550a30,_0x1f0acf={..._0x5dfb1f,'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'drawingId':_0x53d15f,'transform':_0xff9456['transform'],'sheetTransform':_0xff9456[_0x5e7991(0x33c)]},{redo:_0x33c96e,undo:_0x5272d1,objects:_0x59b311}=this[_0x5e7991(0x410)][_0x5e7991(0x24d)]([_0x1f0acf]),_0x38bdff=this['_shapeService'][_0x5e7991(0x3f9)](_0x5dfb1f[_0x5e7991(0x43a)],_0x5dfb1f[_0x5e7991(0x330)],_0x5dfb1f['drawingId']);if(!_0x38bdff)return{'redos':[],'undos':[]};let _0x179c6a=_0x38bdff['getShapeType'](),_0x3b9d3b=JSON[_0x5e7991(0x424)](JSON[_0x5e7991(0x3a9)](_0x38bdff[_0x5e7991(0x295)]()));if(_0x3b9d3b['relation']){var _0x1f3d4d,_0xaa6bbb;let _0x900bf3=(_0x1f3d4d=_0x3b9d3b['relation'][_0x5e7991(0x354)])==null?void 0x0:_0x1f3d4d[_0x5e7991(0x464)],_0x3ed7c8=(_0xaa6bbb=_0x3b9d3b[_0x5e7991(0x276)]['to'])==null?void 0x0:_0xaa6bbb[_0x5e7991(0x464)],_0x56fcfd=!_0x900bf3||_0x24710b[_0x5e7991(0x2df)](_0x900bf3),_0x3d84c1=!_0x3ed7c8||_0x24710b['has'](_0x3ed7c8);_0x56fcfd&&_0x900bf3&&_0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)]?_0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)]={..._0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)],'shapeId':_0x24710b[_0x5e7991(0x270)](_0x900bf3)}:_0x3b9d3b['relation'][_0x5e7991(0x354)]=void 0x0,_0x3d84c1&&_0x3ed7c8&&_0x3b9d3b['relation']['to']?_0x3b9d3b['relation']['to']={..._0x3b9d3b[_0x5e7991(0x276)]['to'],'shapeId':_0x24710b[_0x5e7991(0x270)](_0x3ed7c8)}:_0x3b9d3b[_0x5e7991(0x276)]['to']=void 0x0;}return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'type':_0x55dd60[_0x5e7991(0x1ef)],'op':_0x33c96e,'objects':_0x59b311}},{'id':_0x30d486['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'shapeId':_0x53d15f,'shapeType':_0x179c6a,'shapeData':_0x3b9d3b}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'type':_0x55dd60[_0x5e7991(0x238)],'op':_0x5272d1,'objects':_0x59b311}},{'id':_0x950b4f['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'shapeId':_0x53d15f}}]};}[_0x40a3e1(0x27f)](_0x27c06c,_0x424aee,_0xb851de,_0x3b1f00){const _0x578429=_0x40a3e1;let {range:_0x251e75,skeleton:_0x12023b}=_0x424aee,{range:_0x121768,skeleton:_0x16ec19}=_0xb851de,{transform:_0x307f0c,sheetTransform:_0x3872a5}=_0x27c06c,_0x5761fa={..._0x307f0c};if(_0x251e75){let _0x3eb19b=_0x500c4e(_0x12023b,_0x251e75),_0x48f735=_0x500c4e(_0x16ec19,_0x121768);if(_0x3eb19b&&_0x48f735){let _0x2d3049=_0x48f735[_0x578429(0x31b)]-_0x3eb19b[_0x578429(0x31b)],_0x439604=_0x48f735['startY']-_0x3eb19b[_0x578429(0x2a4)];_0x5761fa[_0x578429(0x3d3)]=(_0x5761fa[_0x578429(0x3d3)]??0x0)+_0x2d3049,_0x5761fa['top']=(_0x5761fa[_0x578429(0x473)]??0x0)+_0x439604;}}else{let _0x39d50d=_0x500c4e(_0x16ec19,_0x121768);if(_0x3b1f00&&_0x39d50d){let _0x4fce7c=(_0x5761fa[_0x578429(0x3d3)]??0x0)-_0x3b1f00[_0x578429(0x3d3)],_0x47943b=(_0x5761fa[_0x578429(0x473)]??0x0)-_0x3b1f00['top'];_0x5761fa[_0x578429(0x3d3)]=_0x39d50d[_0x578429(0x31b)]+_0x4fce7c,_0x5761fa['top']=_0x39d50d[_0x578429(0x2a4)]+_0x47943b;}else _0x5761fa[_0x578429(0x3d3)]=_0x39d50d==null?void 0x0:_0x39d50d[_0x578429(0x31b)],_0x5761fa['top']=_0x39d50d==null?void 0x0:_0x39d50d[_0x578429(0x2a4)];}return{'transform':_0x5761fa,'sheetTransform':_0x588a4b(_0x5761fa,_0x16ec19)??_0x3872a5};}};fa=X([Y(0x0,_0x34f57e(_0x2b81a7)),Y(0x1,_0x34f57e(_0x5ddcd0)),Y(0x2,_0x34f57e(_0x40f806)),Y(0x3,_0x34f57e(_0x25eee4)),Y(0x4,_0x34f57e(_0x250565))],fa);var pa=class extends _0x4d9757{constructor(_0x2ac554,_0x80d306){const _0x3e9269=_0x40a3e1;super(_0x2ac554,_0x80d306),q(this,_0x3e9269(0x3d8),null),q(this,_0x3e9269(0x2dd),null),q(this,_0x3e9269(0x34f),null),q(this,_0x3e9269(0x465),null),q(this,_0x3e9269(0x348),!0x1),_0x80d306&&this[_0x3e9269(0x268)](_0x80d306);}['getDrawingSearch'](){const _0x4edb51=_0x40a3e1;return{'unitId':this['_unitId'],'subUnitId':this[_0x4edb51(0x465)],'drawingId':this['_shapeId']};}[_0x40a3e1(0x268)](_0x20a602){const _0x4b425d=_0x40a3e1;_0x20a602[_0x4b425d(0x464)]!==void 0x0&&(this['_shapeId']=_0x20a602[_0x4b425d(0x464)]),_0x20a602['unitId']!==void 0x0&&(this[_0x4b425d(0x34f)]=_0x20a602[_0x4b425d(0x43a)]),_0x20a602[_0x4b425d(0x330)]!==void 0x0&&(this['_subUnitId']=_0x20a602[_0x4b425d(0x330)]),_0x20a602[_0x4b425d(0x2f4)]!==void 0x0&&(this[_0x4b425d(0x348)]=_0x20a602['isStartConnectorPoint']),this['transformByState']({'width':_0x20a602['width'],'height':_0x20a602[_0x4b425d(0x222)]});}[_0x40a3e1(0x1ed)](_0x3c6504){const _0x1edaa6=_0x40a3e1;_0x597d7e[_0x1edaa6(0x3e6)](_0x3c6504,{'radius':_0x2c02a7[_0x1edaa6(0x314)],'fill':_0x2c02a7[_0x1edaa6(0x387)],'stroke':_0x2c02a7['cxnPointStroke'],'strokeWidth':_0x2c02a7[_0x1edaa6(0x1c9)],'evented':!0x0});}};let ma=class extends _0x1f1ba9{constructor(_0x10dd2c,_0x5ac449,_0x48b845,_0x3f1759,_0x33df8e,_0x20e485,_0x5e02fa,_0x2e0b4b){const _0x59135b=_0x40a3e1;super(),this[_0x59135b(0x40b)]=_0x10dd2c,this[_0x59135b(0x279)]=_0x5ac449,this[_0x59135b(0x258)]=_0x48b845,this[_0x59135b(0x2f1)]=_0x3f1759,this[_0x59135b(0x2c3)]=_0x33df8e,this['_sheetsShapeService']=_0x20e485,this[_0x59135b(0x383)]=_0x5e02fa,this['_sheetBasicShapeConnectionPointController']=_0x2e0b4b,q(this,_0x59135b(0x27c),void 0x0),q(this,_0x59135b(0x34f),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x59135b(0x309),[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x59135b(0x1d7),void 0x0),q(this,_0x59135b(0x47a),!0x1),q(this,_0x59135b(0x233),!0x1),q(this,'_hasReset',!0x1),q(this,_0x59135b(0x208),void 0x0),q(this,_0x59135b(0x2db),void 0x0),q(this,_0x59135b(0x324),null),this[_0x59135b(0x2f2)]();}[_0x40a3e1(0x2f2)](){const _0x298ccc=_0x40a3e1;this[_0x298ccc(0x28e)](),this[_0x298ccc(0x451)]();}[_0x40a3e1(0x462)](){const _0x3e5c22=_0x40a3e1;if(!this[_0x3e5c22(0x34f)]||!this[_0x3e5c22(0x465)]||!this['_activeShapeId'])return;let _0x3ac7ef={'unitId':this['_unitId'],'subUnitId':this[_0x3e5c22(0x465)],'drawingId':this['_activeShapeId']},{transform:_0x128de1}=this[_0x3e5c22(0x2f1)][_0x3e5c22(0x31f)](_0x3ac7ef);if(_0x128de1)return{'left':_0x128de1[_0x3e5c22(0x3d3)]||0x0,'top':_0x128de1['top']||0x0,'width':_0x128de1[_0x3e5c22(0x294)]||0x0,'height':_0x128de1[_0x3e5c22(0x222)]||0x0,'flipX':_0x128de1[_0x3e5c22(0x405)]||!0x1,'flipY':_0x128de1['flipY']||!0x1,'angle':_0x128de1['angle']};}[_0x40a3e1(0x28c)](){const _0x302944=_0x40a3e1;if(this[_0x302944(0x34f)]===void 0x0||this[_0x302944(0x465)]===void 0x0||this[_0x302944(0x27c)]===void 0x0)return;let _0xf437f7=this[_0x302944(0x258)][_0x302944(0x2cf)](this['_unitId']);if(!_0xf437f7||!_0xf437f7[_0x302944(0x433)](_0x22bccb)['getCurrentSkeleton']())return;let {scene:_0x2f0ef1}=_0xf437f7,_0x515efc=this[_0x302944(0x462)]();if(!_0x515efc)return;let _0x3c7090=this[_0x302944(0x285)][_0x302944(0x3f9)](this[_0x302944(0x34f)],this[_0x302944(0x465)],this['_activeShapeId']);if(!_0x3c7090||!_0x421dc8(_0x3c7090[_0x302944(0x3e1)]()))return;let _0x2ec2be=_0x3c7090['getConnectorLinePoints']();if(_0x2ec2be[_0x302944(0x46d)]<0x2)return;let _0x17c965=new _0x28f453(_0x515efc),_0x184cb9=_0x2ec2be[0x0],_0x859001=_0x2ec2be[_0x2ec2be[_0x302944(0x46d)]-0x1],_0x1b8899=_0x17c965[_0x302944(0x442)](_0x184cb9),_0x5e8e64=_0x17c965[_0x302944(0x442)](_0x859001);this[_0x302944(0x3bd)](_0x2f0ef1,{..._0x1b8899},!0x0),this[_0x302944(0x3bd)](_0x2f0ef1,{..._0x5e8e64},!0x1);}[_0x40a3e1(0x3bd)](_0x410d4c,_0x5b3a7e,_0x4ad202){const _0x2d3b8c=_0x40a3e1;if(this['_activeShapeId']===void 0x0||this[_0x2d3b8c(0x34f)]===void 0x0||this[_0x2d3b8c(0x465)]===void 0x0)return;let _0x37d55f=_0x2d3b8c(0x1f9)+this['_unitId']+'-'+this[_0x2d3b8c(0x465)]+'-'+this[_0x2d3b8c(0x27c)]+'-'+(_0x4ad202?_0x2d3b8c(0x1bf):_0x2d3b8c(0x23b)),_0x45a819=_0x410d4c[_0x2d3b8c(0x2d2)](_0x37d55f);if(_0x45a819){_0x45a819[_0x2d3b8c(0x3a6)]({'left':_0x5b3a7e['x']-_0x2c02a7[_0x2d3b8c(0x314)],'top':_0x5b3a7e['y']-_0x2c02a7[_0x2d3b8c(0x314)]});return;}let _0x26298e=new pa(_0x37d55f,{'left':_0x5b3a7e['x']-_0x2c02a7[_0x2d3b8c(0x314)],'top':_0x5b3a7e['y']-_0x2c02a7[_0x2d3b8c(0x314)],'shapeId':this[_0x2d3b8c(0x27c)],'unitId':this[_0x2d3b8c(0x34f)],'subUnitId':this[_0x2d3b8c(0x465)],'isStartConnectorPoint':_0x4ad202,'width':_0x2c02a7[_0x2d3b8c(0x314)]*0x2,'height':_0x2c02a7[_0x2d3b8c(0x314)]*0x2,'zIndex':_0x1301e0+0x1,'evented':!0x0});this['_connectorObjects'][_0x2d3b8c(0x346)](_0x26298e),this[_0x2d3b8c(0x341)](_0x26298e,_0x410d4c,_0x4ad202),_0x410d4c[_0x2d3b8c(0x3ae)](_0x26298e,_0x1301e0+0x1);}[_0x40a3e1(0x3d4)](_0x391649,_0x4982f7){const _0x42f4ed=_0x40a3e1;var _0x4228f5;let _0x410f03={'x':0x0,'y':0x0};if(!_0x391649||!_0x4982f7)return _0x410f03;let _0x5b2ebb=this[_0x42f4ed(0x258)][_0x42f4ed(0x2cf)](_0x391649);if(!_0x5b2ebb||!_0x5b2ebb['with'](_0x22bccb)[_0x42f4ed(0x1d6)](_0x4982f7))return _0x410f03;let _0x249ffb=_0x5b2ebb['with'](_0x1d24d6),_0x4a002a=_0x249ffb==null?void 0x0:_0x249ffb[_0x42f4ed(0x369)]();if(!_0x4a002a)return _0x410f03;let _0x31521e=(_0x4228f5=this['_univerInstanceService'][_0x42f4ed(0x2fd)](_0x391649))==null?void 0x0:_0x4228f5[_0x42f4ed(0x475)](_0x4982f7);if(!_0x31521e)return _0x410f03;let _0x1c2f59=_0xf578ae(_0x4a002a[_0x42f4ed(0x3c9)],_0x4a002a['sheetViewStartColumn'],_0x5b2ebb[_0x42f4ed(0x25b)],_0x31521e);return _0x1c2f59?{'x':_0x1c2f59['viewportScrollX'],'y':_0x1c2f59[_0x42f4ed(0x393)]}:_0x410f03;}[_0x40a3e1(0x454)](_0x1c7f7b,_0x21818c){const _0x147601=_0x40a3e1;var _0x2c9e53;let _0x52d637=(_0x2c9e53=this[_0x147601(0x2c3)][_0x147601(0x2fd)](_0x1c7f7b))==null?void 0x0:_0x2c9e53[_0x147601(0x475)](_0x21818c);return(_0x52d637==null?void 0x0:_0x52d637[_0x147601(0x474)]())??0x1;}[_0x40a3e1(0x38d)](_0xc3df63,_0x195c21,_0x36df7f,_0x3c9263,_0x49aa38){const _0x2e5ad8=_0x40a3e1;this[_0x2e5ad8(0x208)][_0x2e5ad8(0x2a2)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x2e5ad8(0x383)][_0x2e5ad8(0x1e9)]();let _0x57384a=this[_0x2e5ad8(0x324)];this[_0x2e5ad8(0x461)]['endConnectionDetection']();let _0x4ed965=this[_0x2e5ad8(0x3d4)](this[_0x2e5ad8(0x34f)],this['_subUnitId']),_0x4e1a50=this['_getZoomRatio'](this[_0x2e5ad8(0x34f)],this['_subUnitId']),_0x56d133={'x':_0x36df7f[_0x2e5ad8(0x2d7)]/_0x4e1a50+_0x4ed965['x'],'y':_0x36df7f[_0x2e5ad8(0x2cd)]/_0x4e1a50+_0x4ed965['y']},_0x59c70d=_0x57384a?_0x57384a[_0x2e5ad8(0x426)]:_0x56d133,_0x2d0ece=_0x3c9263?this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x30e)]():this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x1d2)](),_0x6b145a=this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x3e1)]();_0x2d0ece?this['_handleConnectedEndpointPointerUp'](_0x2d0ece,_0x59c70d,_0x3c9263,_0x57384a,_0x49aa38):this[_0x2e5ad8(0x457)](_0x195c21,_0x59c70d,_0x3c9263,_0x57384a,_0x49aa38,_0x6b145a),this[_0x2e5ad8(0x47a)]=!0x1,this[_0x2e5ad8(0x3c0)]=!0x1,this[_0x2e5ad8(0x324)]=null,_0xc3df63[_0x2e5ad8(0x3fc)]();}[_0x40a3e1(0x457)](_0x1e2a21,_0x1d7d47,_0x58a50e,_0x188402,_0x2992a5,_0x3ac176){const _0x5550a5=_0x40a3e1;let _0x151fc5=_0x3ac176===_0x27efd2[_0x5550a5(0x3ef)]||_0x3ac176===_0x27efd2[_0x5550a5(0x271)],_0x2b2d89=_0x58a50e?_0x1d7d47:_0x1e2a21,_0x415cf5=_0x58a50e?_0x1e2a21:_0x1d7d47,_0x5169fb=this[_0x5550a5(0x1d7)][_0x5550a5(0x3e7)](),_0xc9b008=this[_0x5550a5(0x1d7)][_0x5550a5(0x3e1)](),_0x347e41=_0xa7da83(_0xc9b008),_0x2646b1=_0x28f453['getBentTypeFromPoints'](_0x5169fb,_0x347e41),_0xaaae13=_0x151fc5?_0x28f453['computeStraightConnectorLayout'](_0x2b2d89,_0x415cf5):_0x28f453[_0x5550a5(0x337)](_0x1e2a21,_0x1d7d47,_0x58a50e,_0x2646b1);_0x188402?this[_0x5550a5(0x316)](_0xaaae13,_0x188402,_0x58a50e,_0x2992a5):this[_0x5550a5(0x398)](_0xaaae13,_0x2992a5);}[_0x40a3e1(0x452)](_0x38ad7a,_0x42a07c,_0x3a97a6,_0x5223c2,_0x105796){const _0x451a85=_0x40a3e1;let _0x144521=this[_0x451a85(0x375)](_0x38ad7a);if(!_0x144521)return;let _0x3d0fd7=_0x5223c2?_0x5223c2['angle']:this[_0x451a85(0x36b)](_0x144521[_0x451a85(0x249)],_0x42a07c),_0x3f4a77;if(_0x5223c2){let _0x7da299=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x5223c2[_0x451a85(0x43a)],'subUnitId':_0x5223c2[_0x451a85(0x330)],'drawingId':_0x5223c2[_0x451a85(0x464)]});if(_0x7da299!=null&&_0x7da299[_0x451a85(0x412)]){let {left:_0x48e3bf=0x0,top:_0xcec39d=0x0,width:_0x29cee4=0x0,height:_0x306258=0x0,angle:_0x4a79b0}=_0x7da299[_0x451a85(0x412)];_0x3f4a77=_0x149266({'left':_0x48e3bf,'top':_0xcec39d,'width':_0x29cee4,'height':_0x306258},_0x4a79b0||0x0);}else _0x3f4a77={'left':_0x42a07c['x'],'top':_0x42a07c['y'],'width':0x0,'height':0x0};}else _0x3f4a77={'left':_0x42a07c['x'],'top':_0x42a07c['y'],'width':0x0,'height':0x0};let _0x469b0d={'point':_0x42a07c,'angle':_0x3d0fd7,'bounds':_0x3f4a77},_0x279785=_0x3a97a6?_0x469b0d:_0x144521,_0x23a948=_0x3a97a6?_0x144521:_0x469b0d,_0x348b41=this[_0x451a85(0x1d7)][_0x451a85(0x3e1)](),_0x376154=_0x4ed1b6(_0x279785,_0x23a948,_0x348b41);this['_activeShapeModel'][_0x451a85(0x2a0)]();let _0x21bc51=_0x1306f6(_0x376154,_0x348b41);_0x5223c2?this['_executeConnectedRouteConnectionCommand'](_0x21bc51,_0x5223c2,_0x38ad7a,_0x3a97a6,_0x105796):this['_executeConnectedRouteResizeCommand'](_0x21bc51,_0x38ad7a,_0x3a97a6,_0x105796);}[_0x40a3e1(0x316)](_0x2a30ae,_0x1a99e3,_0x35f7e7,_0x36bf6c){const _0x374e8b=_0x40a3e1;let _0x3b9705=this[_0x374e8b(0x1d7)][_0x374e8b(0x295)]()[_0x374e8b(0x276)],_0x352eff={..._0x3b9705},_0x1aeb86={'shapeId':_0x1a99e3[_0x374e8b(0x464)],'cxnIndex':_0x1a99e3[_0x374e8b(0x3d5)]};_0x35f7e7?_0x352eff['from']=_0x1aeb86:_0x352eff['to']=_0x1aeb86;let _0x46a37c=this[_0x374e8b(0x1d7)]['getShapeType'](),_0x48c926=_0x1306f6(_0x2a30ae[_0x374e8b(0x31d)],_0x46a37c),_0x1b653d={'unitId':this[_0x374e8b(0x34f)],'subUnitId':this[_0x374e8b(0x465)],'connectorShapeId':this[_0x374e8b(0x27c)],'width':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x294)],'height':_0x2a30ae[_0x374e8b(0x21f)]['height'],'left':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x3d3)],'top':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x473)],'flipX':_0x2a30ae['worldRect'][_0x374e8b(0x405)]||!0x1,'flipY':_0x2a30ae['worldRect'][_0x374e8b(0x305)]||!0x1,'newAdjustValues':_0x48c926['adjustValues'],'oldAdjustValues':_0x36bf6c,'oldRelation':_0x3b9705,'newRelation':_0x352eff,'newLineType':_0x48c926[_0x374e8b(0x34c)],'oldLineType':_0x46a37c};this['_commandService'][_0x374e8b(0x2d5)](_0x56d2bf['id'],_0x1b653d);}[_0x40a3e1(0x398)](_0x5e5be6,_0x275614){const _0x599429=_0x40a3e1;let _0x24a3c6=this[_0x599429(0x1d7)][_0x599429(0x3e1)](),_0x227777=_0x1306f6(_0x5e5be6['worldPoints'],_0x24a3c6),_0x4d6499={'unitId':this[_0x599429(0x34f)],'subUnitId':this[_0x599429(0x465)],'shapeId':this[_0x599429(0x27c)],'width':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x294)],'height':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x222)],'left':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x3d3)],'top':_0x5e5be6['worldRect']['top'],'flipX':_0x5e5be6[_0x599429(0x21f)]['flipX']||!0x1,'flipY':_0x5e5be6[_0x599429(0x21f)]['flipY']||!0x1,'angle':_0x5e5be6[_0x599429(0x21f)]['angle']||0x0,'newAdjustValues':_0x227777[_0x599429(0x3df)],'oldAdjustValues':_0x275614,'newLineType':_0x227777[_0x599429(0x34c)],'oldLineType':_0x24a3c6};this['_commandService'][_0x599429(0x2d5)](_0x521bba['id'],_0x4d6499);}['_executeConnectedRouteConnectionCommand'](_0x2a9b83,_0x38fe36,_0x4b6c07,_0x5cffed,_0x565c35){const _0x33fb83=_0x40a3e1;let _0x32d0fc=this[_0x33fb83(0x1d7)][_0x33fb83(0x295)]()[_0x33fb83(0x276)],_0x1c60be={..._0x32d0fc},_0x5e9169={'shapeId':_0x38fe36[_0x33fb83(0x464)],'cxnIndex':_0x38fe36[_0x33fb83(0x3d5)]};_0x5cffed?(_0x1c60be[_0x33fb83(0x354)]=_0x5e9169,_0x1c60be['to']=_0x4b6c07):(_0x1c60be[_0x33fb83(0x354)]=_0x4b6c07,_0x1c60be['to']=_0x5e9169);let _0x15374c={'unitId':this[_0x33fb83(0x34f)],'subUnitId':this[_0x33fb83(0x465)],'connectorShapeId':this[_0x33fb83(0x27c)],'width':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x294)],'height':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x222)],'left':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x3d3)],'top':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x473)],'flipX':_0x2a9b83['worldRect'][_0x33fb83(0x405)]||!0x1,'flipY':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x305)]||!0x1,'oldAdjustValues':_0x565c35,'newAdjustValues':_0x2a9b83[_0x33fb83(0x3df)],'newLineType':_0x2a9b83[_0x33fb83(0x34c)],'rotation':_0x2a9b83['rotation'],'oldRelation':_0x32d0fc,'newRelation':_0x1c60be};this[_0x33fb83(0x279)][_0x33fb83(0x2d5)](_0x56d2bf['id'],_0x15374c);}[_0x40a3e1(0x44b)](_0x32de79,_0x4b7639,_0x2b71f8,_0x528298){const _0x11ad8f=_0x40a3e1;let _0x4fbac6=this['_activeShapeModel']['getShapeData']()[_0x11ad8f(0x276)],_0x2ad7f7={};_0x2b71f8?(_0x2ad7f7['to']=_0x4b7639,_0x2ad7f7[_0x11ad8f(0x354)]=void 0x0):(_0x2ad7f7[_0x11ad8f(0x354)]=_0x4b7639,_0x2ad7f7['to']=void 0x0);let _0x48149e={'unitId':this['_unitId'],'subUnitId':this[_0x11ad8f(0x465)],'connectorShapeId':this['_activeShapeId'],'width':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x294)],'height':_0x32de79[_0x11ad8f(0x21f)]['height'],'left':_0x32de79[_0x11ad8f(0x21f)]['left'],'top':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x473)],'flipX':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x405)]||!0x1,'flipY':_0x32de79[_0x11ad8f(0x21f)]['flipY']||!0x1,'oldAdjustValues':_0x528298,'newAdjustValues':_0x32de79[_0x11ad8f(0x3df)],'newLineType':_0x32de79[_0x11ad8f(0x34c)],'rotation':_0x32de79[_0x11ad8f(0x2b3)],'oldRelation':_0x4fbac6,'newRelation':_0x2ad7f7};this[_0x11ad8f(0x279)][_0x11ad8f(0x2d5)](_0x56d2bf['id'],_0x48149e);}[_0x40a3e1(0x341)](_0x248d9c,_0x2f0ff2,_0x577713){const _0x21b1c1=_0x40a3e1;this[_0x21b1c1(0x1c6)](_0x35229e(_0x248d9c[_0x21b1c1(0x200)]['subscribeEvent']((_0x318cfe,_0x54db43)=>{const _0x3a35d5=_0x21b1c1;let _0xcd68f2=_0x248d9c[_0x3a35d5(0x2fc)]();if(this['_activeShapeModel']=this[_0x3a35d5(0x285)][_0x3a35d5(0x3f9)](_0xcd68f2[_0x3a35d5(0x43a)],_0xcd68f2['subUnitId'],_0xcd68f2[_0x3a35d5(0x35b)]),!this['_activeShapeModel'])return;let _0x14973a={};this[_0x3a35d5(0x1d7)][_0x3a35d5(0x226)]()[_0x3a35d5(0x46b)](_0x1da188=>{const _0x237d82=_0x3a35d5;let _0x5619c7=this[_0x237d82(0x1d7)][_0x237d82(0x1d1)](_0x1da188);_0x5619c7!==void 0x0&&(_0x14973a[_0x1da188]=_0x5619c7);});let _0xa6559=this['_getDrawingRect']();if(!_0xa6559)return;this[_0x3a35d5(0x3c6)]={..._0xa6559};let _0x21ae62=new _0x28f453(this[_0x3a35d5(0x3c6)]),_0x79217c=_0x4eca2a({'unitId':this[_0x3a35d5(0x34f)],'subUnitId':this[_0x3a35d5(0x465)],'drawingId':this['_activeShapeId']}),_0x26ab91=_0x2f0ff2[_0x3a35d5(0x2d2)](_0x79217c);this[_0x3a35d5(0x47a)]=!0x0,_0x2f0ff2[_0x3a35d5(0x29c)](),this[_0x3a35d5(0x461)][_0x3a35d5(0x343)](_0x2f0ff2,this[_0x3a35d5(0x34f)],this['_subUnitId'],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0x46e161=this[_0x3a35d5(0x1d7)][_0x3a35d5(0x3e7)](),_0x16b6d0=_0x46e161[0x0],_0x2ac415=_0x46e161[_0x46e161[_0x3a35d5(0x46d)]-0x1],_0x23cb4d=_0x577713?_0x21ae62[_0x3a35d5(0x442)](_0x2ac415):_0x21ae62['localToWorld'](_0x16b6d0);this[_0x3a35d5(0x208)]=_0x2f0ff2[_0x3a35d5(0x427)][_0x3a35d5(0x42f)]((_0x1b5b93,_0x457267)=>{const _0x3e0b0c=_0x3a35d5;if(!this[_0x3e0b0c(0x47a)]||!this[_0x3e0b0c(0x1d7)])return;this['_hasReset']||=(this[_0x3e0b0c(0x383)][_0x3e0b0c(0x377)](),this[_0x3e0b0c(0x1d7)][_0x3e0b0c(0x416)](),!0x0);let _0x1e9728=this[_0x3e0b0c(0x3d4)](this[_0x3e0b0c(0x34f)],this[_0x3e0b0c(0x465)]),_0x3ac217=this['_getZoomRatio'](this[_0x3e0b0c(0x34f)],this[_0x3e0b0c(0x465)]),_0x3ceb7a={'x':_0x1b5b93['offsetX']/_0x3ac217+_0x1e9728['x'],'y':_0x1b5b93[_0x3e0b0c(0x2cd)]/_0x3ac217+_0x1e9728['y']},_0x14792a=this['_sheetBasicShapeConnectionPointController'][_0x3e0b0c(0x29f)](_0x3ceb7a);if(_0x14792a){let {shapeId:_0x6cec26,unitId:_0xbbfaec,subUnitId:_0xc5e0a9}=_0x14792a;if(_0x6cec26&&_0xbbfaec&&_0xc5e0a9){let _0x46cc0f=_0x4eca2a({'unitId':_0xbbfaec,'subUnitId':_0xc5e0a9,'drawingId':_0x6cec26});_0x14792a[_0x3e0b0c(0x2f9)]=(_0x2f0ff2[_0x3e0b0c(0x2d2)](_0x46cc0f)[_0x3e0b0c(0x2f9)]||0x0)+_0x14792a[_0x3e0b0c(0x2f9)];}}this[_0x3e0b0c(0x324)]=_0x14792a;let _0x3a8406=_0x577713?this[_0x3e0b0c(0x1d7)][_0x3e0b0c(0x30e)]():this[_0x3e0b0c(0x1d7)]['getStartConnectInfo']();if(_0x3a8406){this[_0x3e0b0c(0x2de)](_0x3a8406,_0x3ceb7a,_0x577713,_0x26ab91,_0x248d9c);return;}this[_0x3e0b0c(0x458)](_0x3ceb7a,_0x23cb4d,_0x577713,_0x26ab91,_0x248d9c);}),this[_0x3a35d5(0x2db)]=_0x2f0ff2[_0x3a35d5(0x304)][_0x3a35d5(0x42f)]((_0x200814,_0x36ee7f)=>{const _0x5c09ef=_0x3a35d5;this[_0x5c09ef(0x38d)](_0x2f0ff2,_0x23cb4d,_0x200814,_0x577713,_0x14973a);}),_0x54db43[_0x3a35d5(0x204)]();})));}[_0x40a3e1(0x2ef)](_0x2ddd91,_0x4c2f0c,_0x2c0090){const _0x561a9d=_0x40a3e1;let _0x33510d=this[_0x561a9d(0x285)][_0x561a9d(0x3e0)](_0x2ddd91,_0x4c2f0c,_0x2c0090);if(!_0x33510d||_0x33510d['length']===0x0)return;let _0x15be20=this[_0x561a9d(0x258)][_0x561a9d(0x2cf)](_0x2ddd91);if(!_0x15be20)return;let {scene:_0x30233b}=_0x15be20;for(let _0x3f8e02 of _0x33510d){let _0x5997fb=_0x3f8e02['lineShapeId'],_0x5927dc=this['_sheetsShapeService'][_0x561a9d(0x3f9)](_0x2ddd91,_0x4c2f0c,_0x5997fb);if(!_0x5927dc)continue;let _0x4204a4=_0x5927dc['getStartConnectInfo'](),_0x488618=_0x5927dc[_0x561a9d(0x30e)](),_0xac51f3=(_0x4204a4==null?void 0x0:_0x4204a4[_0x561a9d(0x464)])===_0x2c0090,_0x417efb=_0x4eca2a({'unitId':_0x2ddd91,'subUnitId':_0x4c2f0c,'drawingId':_0x5997fb}),_0x47f979=_0x30233b[_0x561a9d(0x2d2)](_0x417efb);if(!_0x47f979)continue;let _0x2f9f31=this[_0x561a9d(0x2f1)][_0x561a9d(0x31f)]({'unitId':_0x2ddd91,'subUnitId':_0x4c2f0c,'drawingId':_0x5997fb});_0x2f9f31!=null&&_0x2f9f31[_0x561a9d(0x412)]&&(_0x4204a4&&_0x488618?this[_0x561a9d(0x2b4)](_0x2ddd91,_0x4c2f0c,_0x5997fb,_0x5927dc,_0x4204a4,_0x488618,_0x47f979):this[_0x561a9d(0x321)](_0x2ddd91,_0x4c2f0c,_0x5997fb,_0x5927dc,_0xac51f3?_0x4204a4:_0x488618,_0xac51f3,_0x2f9f31,_0x47f979));}}[_0x40a3e1(0x2b4)](_0x252ec5,_0x1cf9af,_0x3f9f2a,_0xf79fd6,_0x189b1c,_0x88980a,_0x14cb4a){const _0xe34439=_0x40a3e1;let _0x2c87e9=this[_0xe34439(0x34f)],_0x349678=this[_0xe34439(0x465)];this[_0xe34439(0x34f)]=_0x252ec5,this[_0xe34439(0x465)]=_0x1cf9af;let _0x54d301=this[_0xe34439(0x375)](_0x189b1c),_0x3db7bc=this['_getConnectPointInfo'](_0x88980a);if(this[_0xe34439(0x34f)]=_0x2c87e9,this[_0xe34439(0x465)]=_0x349678,!_0x54d301||!_0x3db7bc)return;let _0xbf3e81=_0xf79fd6['getShapeType'](),_0x57b42a=_0x4ed1b6(_0x54d301,_0x3db7bc,_0xbf3e81);_0x57b42a&&_0xf79fd6[_0xe34439(0x2c2)](_0x57b42a);let _0x2318a3=_0x1306f6(_0x57b42a,_0xbf3e81);_0x2318a3[_0xe34439(0x34c)]!==_0xbf3e81&&_0xf79fd6[_0xe34439(0x244)](_0x2318a3['lineType']),_0xf79fd6[_0xe34439(0x416)]();for(let [_0xf872bd,_0x105e40]of Object[_0xe34439(0x417)](_0x2318a3[_0xe34439(0x3df)]))_0xf79fd6['setAdjustValueByName'](_0xf872bd,_0x105e40);_0xf79fd6['updateContext']({'width':_0x2318a3['worldRect'][_0xe34439(0x294)],'height':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x222)]}),_0x14cb4a[_0xe34439(0x3a6)]({'flipX':_0x2318a3[_0xe34439(0x21f)]['flipX'],'flipY':_0x2318a3[_0xe34439(0x21f)]['flipY'],'left':_0x2318a3['worldRect']['left'],'top':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x473)],'width':_0x2318a3['worldRect'][_0xe34439(0x294)],'height':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x222)],'angle':_0x2318a3[_0xe34439(0x2b3)]}),_0xf79fd6['removeLinePoints']();}[_0x40a3e1(0x321)](_0x2de7aa,_0x3dbfd4,_0x584e9e,_0xd6887,_0x535d62,_0x341502,_0x46afa8,_0x44f803){const _0x3f9972=_0x40a3e1;let _0x36ba13=this[_0x3f9972(0x34f)],_0x3446d9=this[_0x3f9972(0x465)];this[_0x3f9972(0x34f)]=_0x2de7aa,this[_0x3f9972(0x465)]=_0x3dbfd4;let _0x550820=this['_getConnectPointInfo'](_0x535d62);if(this[_0x3f9972(0x34f)]=_0x36ba13,this[_0x3f9972(0x465)]=_0x3446d9,!_0x550820)return;let {left:_0x249645=0x0,top:_0x5a0d18=0x0,width:_0x74eef5=0x0,height:_0xb74bb7=0x0,flipX:_0x311969=!0x1,flipY:_0x4bb764=!0x1}=_0x46afa8[_0x3f9972(0x412)],_0x343aef=_0xd6887['getConnectorLinePoints']();if(_0x343aef[_0x3f9972(0x46d)]<0x2)return;let _0x16840c=new _0x28f453({'left':_0x249645,'top':_0x5a0d18,'width':_0x74eef5,'height':_0xb74bb7,'flipX':_0x311969,'flipY':_0x4bb764}),_0x453fa1=_0x341502?_0x343aef[_0x343aef[_0x3f9972(0x46d)]-0x1]:_0x343aef[0x0],_0x6102f7=_0x16840c[_0x3f9972(0x442)](_0x453fa1),_0x429a91=_0x28f453[_0x3f9972(0x337)](_0x6102f7,_0x550820['point'],!_0x341502);_0x44f803[_0x3f9972(0x3a6)]({'flipX':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x405)],'flipY':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x305)],'left':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x3d3)],'top':_0x429a91['worldRect'][_0x3f9972(0x473)],'width':_0x429a91['worldRect'][_0x3f9972(0x294)],'height':_0x429a91['worldRect'][_0x3f9972(0x222)],'angle':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x2f9)]}),_0x44f803['makeDirty'](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x5eb804=_0x40a3e1;this[_0x5eb804(0x309)][_0x5eb804(0x46d)]!==0x0&&(this['_connectorObjects'][_0x5eb804(0x46b)](_0x22d55c=>{_0x22d55c['dispose']();}),this[_0x5eb804(0x309)]=[]);}['_registerDrawingMoveHandler'](){const _0x2d119b=_0x40a3e1;let _0x3be967=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2f72d4[_0x2d119b(0x2ce)]);this[_0x2d119b(0x1c6)](_0x3be967[_0x2d119b(0x300)](_0x59c42a(_0x40b043=>_0x40b043?_0x40b043[_0x2d119b(0x251)][_0x2d119b(0x300)](_0x59c42a(_0x3ef725=>{const _0x588a1c=_0x2d119b;if(!_0x3ef725)return _0x50a9a5;let _0x27a773=_0x40b043[_0x588a1c(0x2ae)](),_0x175e2e=this[_0x588a1c(0x258)][_0x588a1c(0x2cf)](_0x27a773),_0x37ce19=_0x175e2e==null?void 0x0:_0x175e2e[_0x588a1c(0x25b)];return _0x37ce19?_0x3cb66b(_0x37ce19):_0x50a9a5;})):_0x50a9a5))[_0x2d119b(0x1ff)](_0xed6003=>{const _0x51a315=_0x2d119b;let _0x33a16e=_0xed6003[_0x51a315(0x282)]();this['disposeWithMe'](_0xed6003[_0x51a315(0x427)][_0x51a315(0x42f)](_0x4d03b9=>{const _0x3ef75f=_0x51a315;this[_0x3ef75f(0x233)]&&this[_0x3ef75f(0x27c)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x51a315(0x1c6)](_0x33a16e[_0x51a315(0x37f)][_0x51a315(0x1ff)](_0x40d1f7=>{const _0x29ff8b=_0x51a315;let {objects:_0x3a77c6}=_0x40d1f7;this[_0x29ff8b(0x20d)](),_0x3a77c6!==null&&_0x3a77c6[_0x29ff8b(0x219)]===0x1&&_0x3a77c6['values']()['next']()[_0x29ff8b(0x437)]instanceof J&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x51a315(0x1c6)](_0x33a16e[_0x51a315(0x303)][_0x51a315(0x1ff)](_0x308666=>{const _0x532c07=_0x51a315;this[_0x532c07(0x233)]&&this[_0x532c07(0x20d)]();})),this['disposeWithMe'](_0xed6003[_0x51a315(0x304)][_0x51a315(0x42f)](()=>{const _0x34237c=_0x51a315;this['_isDrawingShapePointDown']&&(this[_0x34237c(0x233)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this['disposeWithMe'](_0x33a16e[_0x51a315(0x44f)]['subscribe'](()=>{const _0x231e7e=_0x51a315;this[_0x231e7e(0x34f)]&&this[_0x231e7e(0x465)]&&this[_0x231e7e(0x27c)]&&this[_0x231e7e(0x2f1)][_0x231e7e(0x31f)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x231e7e(0x27c)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x231e7e(0x28c)]());}));}));}[_0x40a3e1(0x28e)](){const _0x2fc07f=_0x40a3e1;this['disposeWithMe'](this[_0x2fc07f(0x2f1)][_0x2fc07f(0x2f5)][_0x2fc07f(0x1ff)](_0x2353f3=>{const _0x55e996=_0x2fc07f;if(_0x2353f3[_0x55e996(0x46d)]===0x1){let _0x4bd3d9=_0x2353f3[0x0];if(_0x4bd3d9[_0x55e996(0x221)]===_0x204a86['DRAWING_SHAPE']){let _0x16704b=this[_0x55e996(0x285)][_0x55e996(0x3f9)](_0x4bd3d9['unitId'],_0x4bd3d9[_0x55e996(0x330)],_0x4bd3d9[_0x55e996(0x35b)]);if(_0x16704b&&_0x421dc8(_0x16704b[_0x55e996(0x3e1)]())){this['_activeShapeId']=_0x4bd3d9[_0x55e996(0x35b)],this[_0x55e996(0x34f)]=_0x4bd3d9[_0x55e996(0x43a)],this[_0x55e996(0x465)]=_0x4bd3d9[_0x55e996(0x330)],this[_0x55e996(0x20d)](),this[_0x55e996(0x28c)]();return;}}}this[_0x55e996(0x27c)]=void 0x0,this[_0x55e996(0x34f)]=void 0x0,this[_0x55e996(0x465)]=void 0x0,this[_0x55e996(0x20d)]();})),this[_0x2fc07f(0x1c6)](this[_0x2fc07f(0x2f1)][_0x2fc07f(0x2a3)][_0x2fc07f(0x1ff)](_0x1081b2=>{const _0x3c43cc=_0x2fc07f;if(_0x1081b2[_0x3c43cc(0x46d)]===0x1){var _0x5e3ddb;let _0x141a8f=_0x1081b2[0x0],_0x5ad352=(_0x5e3ddb=this[_0x3c43cc(0x2f1)]['getDrawingByParam'](_0x141a8f))==null?void 0x0:_0x5e3ddb['drawingType'];_0x5ad352===_0x204a86[_0x3c43cc(0x41a)]&&_0x141a8f['drawingId']===this[_0x3c43cc(0x27c)]?(this[_0x3c43cc(0x20d)](),this[_0x3c43cc(0x28c)]()):!this['_activeShapeId']&&_0x5ad352===_0x204a86[_0x3c43cc(0x41a)]&&this[_0x3c43cc(0x2ef)](_0x141a8f[_0x3c43cc(0x43a)],_0x141a8f[_0x3c43cc(0x330)],_0x141a8f[_0x3c43cc(0x35b)]);}})),this[_0x2fc07f(0x1c6)](this['_drawingManagerService'][_0x2fc07f(0x2f6)]['subscribe'](_0x263339=>{const _0x42a69d=_0x2fc07f;for(let _0x38e1d9 of _0x263339){let {drawingId:_0x546c9c}=_0x38e1d9;if(this[_0x42a69d(0x27c)]===_0x546c9c){this[_0x42a69d(0x2f7)]();return;}}}));}[_0x40a3e1(0x2de)](_0x52de6f,_0x508a79,_0x3c86e0,_0x272e71,_0x15f73d){const _0x3459e8=_0x40a3e1;var _0x3bd4fe;if(!this[_0x3459e8(0x1d7)])return;let _0x187fa8=this[_0x3459e8(0x375)](_0x52de6f);if(!_0x187fa8)return;let _0x39a2dc=this[_0x3459e8(0x324)]?this['_currentConnectionTarget'][_0x3459e8(0x426)]:_0x508a79,_0x5ddb3e=this[_0x3459e8(0x324)]?this[_0x3459e8(0x324)]['angle']:this[_0x3459e8(0x36b)](_0x187fa8['point'],_0x39a2dc),_0x5d8702;if(this['_currentConnectionTarget']){let _0x3547b2=this[_0x3459e8(0x2f1)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0x3459e8(0x324)][_0x3459e8(0x330)],'drawingId':this[_0x3459e8(0x324)][_0x3459e8(0x464)]});if(_0x3547b2!=null&&_0x3547b2[_0x3459e8(0x412)]){let {left:_0x373535=0x0,top:_0x312f8f=0x0,width:_0x5e79f4=0x0,height:_0xc37579=0x0,angle:_0x39dd7d}=_0x3547b2['transform'];_0x5d8702=_0x149266({'left':_0x373535,'top':_0x312f8f,'width':_0x5e79f4,'height':_0xc37579},_0x39dd7d||0x0);}else _0x5d8702={'left':_0x39a2dc['x'],'top':_0x39a2dc['y'],'width':0x0,'height':0x0};}else _0x5d8702={'left':_0x39a2dc['x'],'top':_0x39a2dc['y'],'width':0x0,'height':0x0};let _0x19ac6b={'point':_0x39a2dc,'angle':_0x5ddb3e,'bounds':_0x5d8702},_0x2aef36=_0x3c86e0?_0x19ac6b:_0x187fa8,_0x232bb8=_0x3c86e0?_0x187fa8:_0x19ac6b,_0x4974d2=this['_activeShapeModel'][_0x3459e8(0x3e1)](),_0x5b1bfb=_0x4ed1b6(_0x2aef36,_0x232bb8,_0x4974d2);_0x5b1bfb&&this[_0x3459e8(0x1d7)][_0x3459e8(0x2c2)](_0x5b1bfb);let _0x262ba8=_0x1306f6(_0x5b1bfb,_0x4974d2);_0x262ba8[_0x3459e8(0x34c)]!==_0x4974d2&&this[_0x3459e8(0x1d7)][_0x3459e8(0x244)](_0x262ba8[_0x3459e8(0x34c)]);for(let [_0x2674a2,_0x32f084]of Object[_0x3459e8(0x417)](_0x262ba8['adjustValues']))this[_0x3459e8(0x1d7)][_0x3459e8(0x1fc)](_0x2674a2,_0x32f084);this[_0x3459e8(0x1d7)][_0x3459e8(0x2e0)]({'width':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x294)],'height':_0x262ba8[_0x3459e8(0x21f)]['height']}),_0x272e71['transformByState']({'flipX':_0x262ba8['worldRect']['flipX'],'flipY':_0x262ba8['worldRect']['flipY'],'left':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x3d3)],'top':_0x262ba8['worldRect'][_0x3459e8(0x473)],'width':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x294)],'height':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x222)],'angle':_0x262ba8['rotation']}),_0x272e71[_0x3459e8(0x33f)](!0x0);let _0x32e6d0=((_0x3bd4fe=this['_currentConnectionTarget'])==null?void 0x0:_0x3bd4fe[_0x3459e8(0x426)])??_0x508a79;_0x15f73d['transformByState']({'left':_0x32e6d0['x']-_0x2c02a7[_0x3459e8(0x314)],'top':_0x32e6d0['y']-_0x2c02a7[_0x3459e8(0x314)]});}[_0x40a3e1(0x458)](_0xb5fd66,_0xf6c344,_0x2a6d92,_0x8c4a27,_0x14b23d){const _0x35973d=_0x40a3e1;var _0x267209,_0x2b5827;let _0xdd9b49=((_0x267209=this[_0x35973d(0x324)])==null?void 0x0:_0x267209['worldPoint'])??_0xb5fd66,_0x548800=_0x28f453[_0x35973d(0x337)](_0xf6c344,_0xdd9b49,_0x2a6d92);_0x8c4a27[_0x35973d(0x3a6)]({'flipX':_0x548800[_0x35973d(0x21f)]['flipX'],'flipY':_0x548800[_0x35973d(0x21f)]['flipY'],'left':_0x548800[_0x35973d(0x21f)]['left'],'top':_0x548800[_0x35973d(0x21f)]['top'],'width':_0x548800['worldRect']['width'],'height':_0x548800['worldRect'][_0x35973d(0x222)],'angle':_0x548800[_0x35973d(0x21f)][_0x35973d(0x2f9)]});let _0x5e7d73=((_0x2b5827=this[_0x35973d(0x324)])==null?void 0x0:_0x2b5827[_0x35973d(0x426)])??_0xb5fd66;_0x14b23d[_0x35973d(0x3a6)]({'left':_0x5e7d73['x']-_0x2c02a7[_0x35973d(0x314)],'top':_0x5e7d73['y']-_0x2c02a7[_0x35973d(0x314)]});}[_0x40a3e1(0x375)](_0x2f8022){const _0x5e2d46=_0x40a3e1;if(!this[_0x5e2d46(0x34f)]||!this[_0x5e2d46(0x465)])return null;let {shapeId:_0xc3bd7d,cxnIndex:_0x52ee97}=_0x2f8022,_0x35303f=this['_sheetsShapeService'][_0x5e2d46(0x3f9)](this[_0x5e2d46(0x34f)],this['_subUnitId'],_0xc3bd7d);if(!_0x35303f)return null;let _0x4ddd25=this[_0x5e2d46(0x2f1)][_0x5e2d46(0x31f)]({'unitId':this['_unitId'],'subUnitId':this[_0x5e2d46(0x465)],'drawingId':_0xc3bd7d});if(!(_0x4ddd25!=null&&_0x4ddd25[_0x5e2d46(0x412)]))return null;let {left:_0x6bd6bc=0x0,top:_0x4ed20d=0x0,width:_0x36f878=0x0,height:_0x58d260=0x0,flipX:_0x4e0ba9=!0x1,flipY:_0x5411e5=!0x1,angle:_0x1c16ca}=_0x4ddd25[_0x5e2d46(0x412)];_0x35303f[_0x5e2d46(0x2e0)]({'width':_0x36f878,'height':_0x58d260});let _0xfb6a14=_0x35303f['getConnectionSiteList']()[_0x5e2d46(0x278)](_0x49a128=>_0x49a128[_0x5e2d46(0x352)]===_0x52ee97);if(!_0xfb6a14)return null;let _0x5a772f=_0x4e0ba9?_0x36f878-_0xfb6a14['x']:_0xfb6a14['x'],_0x20279a=_0x5411e5?_0x58d260-_0xfb6a14['y']:_0xfb6a14['y'];if(_0x1c16ca!==0x0&&_0x1c16ca!=null){let _0x25a790=_0x1c16ca*Math['PI']/0xb4,_0x450cf0=Math[_0x5e2d46(0x3d2)](_0x25a790),_0x26dd88=Math[_0x5e2d46(0x332)](_0x25a790),_0x2b0721=_0x36f878/0x2,_0x58e022=_0x58d260/0x2,_0x2ae902=_0x5a772f-_0x2b0721,_0x1f8621=_0x20279a-_0x58e022;_0x5a772f=_0x2b0721+_0x2ae902*_0x450cf0-_0x1f8621*_0x26dd88,_0x20279a=_0x58e022+_0x2ae902*_0x26dd88+_0x1f8621*_0x450cf0;}_0x5a772f+=_0x6bd6bc,_0x20279a+=_0x4ed20d;let _0x351b1c=_0xfb6a14[_0x5e2d46(0x308)]/0xea60;_0x4e0ba9&&(_0x351b1c=0xb4-_0x351b1c),_0x5411e5&&(_0x351b1c=-_0x351b1c),_0x351b1c+=_0x1c16ca||0x0,_0x351b1c=(_0x351b1c%0x168+0x168)%0x168;let _0x1003bb=_0x149266({'left':_0x6bd6bc,'top':_0x4ed20d,'width':_0x36f878,'height':_0x58d260},_0x1c16ca||0x0);return{'point':{'x':_0x5a772f,'y':_0x20279a},'angle':_0x351b1c,'bounds':_0x1003bb};}[_0x40a3e1(0x36b)](_0x459b3d,_0x13f748){const _0x359f7e=_0x40a3e1;let _0x7e1cda=_0x13f748['x']-_0x459b3d['x'],_0x5e17d2=_0x13f748['y']-_0x459b3d['y'];return Math['abs'](_0x7e1cda)>=Math[_0x359f7e(0x32e)](_0x5e17d2)?_0x7e1cda>=0x0?0xb4:0x0:_0x5e17d2>=0x0?0x10e:0x5a;}[_0x40a3e1(0x2f7)](){const _0x335783=_0x40a3e1;this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x335783(0x20d)]();}[_0x40a3e1(0x223)](){const _0x270694=_0x40a3e1;this['_clearShapeConnectorHandlerObjects'](),super[_0x270694(0x223)]();}};ma=X([Y(0x1,_0x3a4817),Y(0x2,_0x5a17c7),Y(0x3,_0x2d58e3),Y(0x4,_0x3a3cc8),Y(0x5,_0x34f57e(_0x25eee4)),Y(0x6,_0x34f57e(Pr)),Y(0x7,_0x34f57e(da))],ma);let ha=class extends _0x1f1ba9{constructor(_0x54389f,_0x106ba7,_0x227e27){const _0x48cea7=_0x40a3e1;super(),this[_0x48cea7(0x1d4)]=_0x54389f,this[_0x48cea7(0x2f1)]=_0x106ba7,this[_0x48cea7(0x239)]=_0x227e27,this[_0x48cea7(0x334)]();}[_0x40a3e1(0x334)](){const _0x303f3c=_0x40a3e1;this['disposeWithMe'](this[_0x303f3c(0x1d4)]['interceptor'][_0x303f3c(0x245)](this['_sheetPrintInterceptorService'][_0x303f3c(0x378)][_0x303f3c(0x1f8)]()[_0x303f3c(0x371)],{'handler':(_0x16ad1a,_0x3061c0,_0x460d9f)=>{const _0x40e8ef=_0x303f3c;var _0x172bed;let {unitId:_0x4db447,subUnitId:_0x3c6655,scene:_0x330f95,resourceCollector:_0x2748e6}=_0x3061c0,_0x591c75=(_0x172bed=this[_0x40e8ef(0x2f1)][_0x40e8ef(0x1c4)](_0x4db447))==null?void 0x0:_0x172bed[_0x3c6655];return _0x591c75==null||_0x591c75['order']['forEach'](_0x4a7a99=>{const _0x50e5ae=_0x40e8ef;let _0x5c3e04=_0x591c75[_0x50e5ae(0x406)][_0x4a7a99];_0x5c3e04[_0x50e5ae(0x221)]===_0x204a86[_0x50e5ae(0x41a)]&&!_0x5c3e04[_0x50e5ae(0x44e)]&&this[_0x50e5ae(0x239)][_0x50e5ae(0x359)](_0x5c3e04,_0x330f95,{'resourceCollector':_0x2748e6});}),_0x460d9f(_0x16ad1a);}}));}};ha=X([Y(0x0,_0x34f57e(_0x118b16)),Y(0x1,_0x2d58e3),Y(0x2,_0x34f57e(Z))],ha);let ga=class extends _0x1f1ba9{constructor(_0x27d3f3,_0x100434,_0x4dc577){const _0x4cacae=_0x40a3e1;super(),this[_0x4cacae(0x279)]=_0x27d3f3,this[_0x4cacae(0x1d3)]=_0x100434,this[_0x4cacae(0x1ec)]=_0x4dc577,this[_0x4cacae(0x1ba)]();}['_initPermission'](){const _0x29b14a=_0x40a3e1;this[_0x29b14a(0x1c6)](this['_commandService']['beforeCommandExecuted'](_0x2fe561=>{const _0x3c03bd=_0x29b14a;let _0x313173,_0x534c21;if(_0x2fe561['id']===_0x68b808['id']||_0x2fe561['id']===_0x2e6ede['id']||_0x2fe561['id']===_0x56d2bf['id']){let _0x366069=_0x2fe561['params'];_0x313173=_0x366069[_0x3c03bd(0x43a)],_0x534c21=_0x366069[_0x3c03bd(0x330)];}_0x313173&&_0x534c21&&(this[_0x3c03bd(0x1ec)][_0x3c03bd(0x1bd)]({'workbookTypes':[_0x3edb9a],'worksheetTypes':[_0x2e8354]},_0x313173,_0x534c21)||this[_0x3c03bd(0x1ec)][_0x3c03bd(0x367)](this['_localeService']['t'](_0x3c03bd(0x237))));}));}};ga=X([Y(0x0,_0x34f57e(_0x3a4817)),Y(0x1,_0x34f57e(_0x1fc669)),Y(0x2,_0x34f57e(_0xe3fb01))],ga);let _a=class{constructor(_0x3e64db){const _0x1f62b6=_0x40a3e1;this[_0x1f62b6(0x258)]=_0x3e64db;}['updateShapeFillImage'](_0x4cca11,_0x1379d8){const _0x16570a=_0x40a3e1;let _0x136e60=this[_0x16570a(0x258)][_0x16570a(0x2cf)](_0x4cca11[_0x16570a(0x43a)]),_0x11b217=_0x136e60==null?void 0x0:_0x136e60[_0x16570a(0x25b)];if(!_0x11b217)return;let _0x1143f6=_0x4eca2a(_0x4cca11),_0x37f138=_0x11b217[_0x16570a(0x2d2)](_0x1143f6);_0x37f138==null||_0x37f138[_0x16570a(0x3b9)](_0x1379d8);}};function _0x4acb(){const _0x5637bb=['hideContextualTab','pipe','transformVector2SceneCoord','calcAdjValues','changing$','onPointerUp$','flipY','_registerComponents','getSelectedObjectMap','ang','_connectorObjects','_initEvents','shape-editor-ui.toolbar.changeShape','setConfig','onStarting','getEndConnectInfo','_drawingAddListener','getDrawingOrder','univer-box-border\x20univer-px-4\x20univer-text-sm','sheet.menu.shape.flip-vertical','complete','cxnPointRadius','_injector','_executeConnectionCommand','extraProps','skeleton','text','_disposed','startX','getConnectionRelation','worldPoints','OPERATION','getDrawingByParam','ancestorTransform','_moveConnectorWithShape','_imageShapeClipController','_registerMoveHandler','_currentConnectionTarget','updateDocumentDataMargin','unit','drawing-ui.objectListPanel.unlock','drawing-ui.objectListPanel.descriptionPlaceholder','FlipHorizontalIcon','TOP','_baseWidth','object','onSavingEditorData$','abs','setShouldShowAdjust','subUnitId','_sheetCanvasPopManagerService','sin','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_initPrinting','sheets-shape-ui.insertShape','actualHeight','computeConnectorResizeLayout','_drawSimpleText','SolidLine','getBatchUpdateOp','#FFFFFF','sheetTransform','extensionGroups','initShapePopupMenu','makeDirty','resize','_attachConnectorObjectEvent','editingParams$','startConnectionDetection','custom','getValue','push','clip','_isStartConnectorPoint','formulaPresentation','_addControl','11258FlSpSW','lineType','current','setHighlighted','_unitId','76zLBcJV','_shapeUpdateListener','index','MEDIA','from','_shapeFloatingToolbarService','shape-editor-ui.arrange.back','shape-editor-ui.arrange.backward','_clearPopups','renderDrawingShape','string','drawingId','_baseShapeLeft','_shapePopupMenuDisposable','drawing-ui.objectListPanel.noSelection','5896nUfrrk','_getImagePrstGeom','open','composeMatrix','_permissionService','_completionFrame','prstGeom','sheets-shape-text-','blockExecuteWithoutPermission','panel','getCurrentScrollState','sheet.shape.text.float-menu','_calculateFreeEndpointAngle','drawing-ui.objectListPanel.sectionCanvas','_getSceneAndTransformerByDrawingSearch','getState','_applyFormulaAutoFitSize','sheet.operation.update-shape-type','PRINTING_COMPONENT_COLLECT','_highlightedSiteIndex','permissionPointUpdate$','getParent','_getConnectPointInfo','multiply','clearAdjustControls','interceptor','doc','1026106HwlhDr','updateShapeFillImage','srcRect','24RITCka','_showConnectionSites','changeStart$','function','shape-editor-ui.toolbar.quickStyles','drawing-ui.objectListPanel.sectionFloating','_sheetShapeAdjustController','isInGroup','filter','clip-adj-','cxnPointFill','_baseTop','_generateCutPasteMutations','getShapeTypeById','beginPath','shape-editor-ui.arrange.forward','_handleConnectorPointerUp','add','_clearConnectionSites','isLineShape','adjName','_isImagePointerDown','viewportScrollY','_contextService','_adjHandlerPointerUp','bottom','_insertingShapeKeys','_executeResizeCommand','_generatePasteMutations','sheet.operation.open-sheet-shape-format-panel','_registerIcons','isHighlighted','src','resetCursor','oKey','set','_hide','_clearShapeAdjustControls','sheetViewStartColumn','getBatchRemoveOp','OTHERS','transformByState','onCommandExecuted','animationEnabled','stringify','drawing-ui.objectListPanel.moveForward','None','_canEdit','_adjName','addObject','sheets-shape-ui.title','classType','createControl$','getDrawingPoints','visible$','_sheetClipboardService','reverse','clear','sheets-shape-ui.shape-format.style-ribbon-control','selectable','setFillImage','_sheetSkeletonService','_drawRichTextLayer','_shapeService','_addShapeConnectorHandlerObject','onTransformChange$','flatMap','_hasReset','horizontal','_clearCompletionFrame','FromArray','14376MAPglc','UUID','_baseDrawingRect','getImage','sheet.shape.edit.panel','sheetViewStartRow','getConnectionSiteList','isEditing','clip-','axisAlignSheetTransform','gradientEndColor','sheets-shape-ui.flipVertical','registerClipDelegate','drawing-ui.objectListPanel.search','cos','left','_getScrollInfo','cxnIndex','_isShouldShowDrawingShapeAdjust','includes','_shapeId','create','_initMenu','_registerGroupFeaturePasteHook','sqrt','refreshShapeFillImage','refreshFormulaPresentation','adjustValues','getBasicShapeRelation','getShapeType','TopmostIcon','_clearControls','sheet.operation.apply-shape-quick-style','draw','drawWith','getConnectorLinePoints','visible','_init','drawing-ui.objectListPanel.title','sheet.shape.floating-toolbar','onReady','_shapeFormulaService','targetShapeId','Line','_updateShapeAdjustControls','register','contentHeight','shapeKey','presetId','sheet.image-clip.shape-picker.component','_draggingConnectorId','_copyInfo','_isStartAdjusting','getShapeModel','clipTop','getCurrentLastSelection','enableObjectsEvent','SHAPE_TEXT','front','_sidebarService','sheets-shape-ui.ribbon.shape-format','getTransformer','drawing-ui.objectListPanel.locate','fromChangeset','_getShapeAdjustInfosById','flipX','data','sheets-shape-ui.shape-format.formula-ribbon-control','_activeShapeAdjustPointList','@univerjs-pro/sheets-shape-ui','_baseShapeHeight','_context','_hyperLinkRegions','_getImageDrawingInfo','focusDrawing','formulaBinding','_sheetDrawingService','getMatrix','transform','keys','_imageIoService','applyPoint','clearAdjustValue','entries','getSheetId','componentKey','DRAWING_SHAPE','forward','render','redo','getActiveSheet','_registerImageShapeClipDelegate','invert','drawing-ui.objectListPanel.lock','fontSize','adjHandleStroke','parse','_activeShapeInfo','worldPoint','onPointerMove$','sheets-shape-ui','_visible','pluginName','add$','vertical','_findShapeAtPoint','getAdjustInfoByName','subscribeEvent','hasDefault','drawing-ui.objectListPanel.filterAll','_formulaShapes','with','_createControls','some','isRender','value','getDrawingEffectBounds','back','unitId','sheets-shape-ui.objectListPanel.title','getRealBound','normal','updateDocumentStyle','setFormulaPresentation','addImageSourceCache','_formulaAnimation','localToWorld','_registerFocusChangeHandler','image','name','VIEW_MAIN_LEFT_TOP','sheet.operation.open-mobile-shape-editor','sheets-shape-format-font-family-menu','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SELECTOR','_executeConnectedRouteResizeCommand','getScene','UNIVER_DOC','hidden','changeEnd$','shapeModel','_registerDrawingMoveHandler','_handleConnectedEndpointPointerUp','stroke','_getZoomRatio','UPDATE','DEFAULT_PASTE','_handleFreeEndpointPointerUp','_handleFreeEndpointMove','Image','shape-text-','fontFamily','_iconManager','GROUP','setShapeData','_baseHeight','getActiveViewportByCoord','_sheetBasicShapeConnectionPointController','_getDrawingRect','sheets-shape-ui.ribbon.shape-format.arrange-back','shapeId','_subUnitId','_currentUniverService','style','_isHighlighted','Rect','_drawShapeText','forEach','_getShapeAdjustPointListById','length','popup','endConnectionDetection','getSkeletonParam','sheets-shape-contextual-ribbon','_adjHandlerPointerMove','top','getZoomRatio','getSheetBySheetId','activeAnObject','_initCommands','sheets-shape-ui.shape-format.quick-style-gallery','pick','_isConnecting','attachTransformerTo','setOnSavingEditorData','getDrawingEditable','div','Arrow','_initPermission','getShapeTextData','shapeType','permissionCheckWithoutRange','_shapeEditPanelVersion','start','SheetShapeTextEditorContainer','translateWithPrecision','_urlImageService','_popupMenuListener','getDrawingDataForUnit','_initCopyPaste','disposeWithMe','drawing-ui.objectListPanel.unlockAll','_formulaKey','cxnPointStrokeWidth','setCollapsedIds','_focusedDrawings','_currentScene','sheets-shape-ui.deleteShape','onSteady','_generateCopyPasteMutations','getDrawingData','getAdjustValueByName','getStartConnectInfo','_localeService','_sheetPrintInterceptorService','getShapeTextRect','getSkeleton','_activeShapeModel','calculate','LEFT','top-center','_props','_ribbonService','getDrawingOKey','syncExecuteCommand','getShapeDataById','1ktQujE','endArrow','unregister','parent','onerror','getImageSourceCache','clearControl$','sheets-shape-ui.editShape','call','refreshAdjustControls','registerCommand','shapeData','_sheetPermissionCheckController','_draw','_activeImageId','INSERT','_resetState','_sidebarDisposable','COMMAND','contentVerticalOffset','setContextValue','_cxnIndex','drawing-ui.objectListPanel.expand','_baseShapeTop','getInterceptPoints','connector-handler-','params','sheets-shape-ui.objectListPanel.open','setAdjustValueByName','48366iVXEbY','DRAWING_IMAGE','subscribe','onPointerDown$','_connectionSiteObjects','isHitLine','_shapes','stopPropagation','_loadAndSetImage','prstGeomAdjValues','_commandExecutedListener','_cxtHandlerPointerMove','values','_initEditingParams','_activeAdjustPointList','onRendered','_clearShapeConnectorHandlerObjects','drawing-ui.objectListPanel.filterHidden','ObjectLayersIcon','sheets-shape-ui.flipHorizontal','_updateImageAdjValues','_getOrCreateShapeModel','viewBound','drawing-ui.objectListPanel.dragToReorder','drawing-ui.objectListPanel.lockHint','vertical-center','fillImageSource','_shapeTextEditingService','size','ShapeIcon','_activeTargetShapeId','shape-adjust-point-','presentation','_baseLeft','worldRect','symbol','drawingType','height','dispose','dataModel','9926ESStXZ','getAdjustNames','mergeMenu','sheets-shape-ui.quickStyles','_registerOperations','decorate','getPresentation','adjHandleSize','drawing-ui.objectListPanel.details','PictureFill','drawing-ui.objectListPanel.lockAll','strokeWidth','wrapStrategy','startArrow','_isDrawingShapePointDown','hideInfoPopup','_baseShapeWidth','_editingParams$','sheets-shape-ui.permission.editErr','REMOVE','_shapeRenderController','_closeShapeEditPanel','end','sheet.command.update-shape-data','getFocusDrawings','getCurrentSkeleton','resourceCollector','setPrstGeom','map','_registerFeatureMenu','getDrawingVisible','changeShapeType','intercept','_menuManagerService','_transform','1460EKeakg','point','_isOpenedShapeEditPanel','trim','next','getBatchAddOp','_insertShapes','getEditing','interceptCommand','activeSheet$','drawing-ui.objectListPanel.show','viewportScrollX','getContextValue','_config','sheets-shape-ui.formatShape','getConnectionInfo','_renderManagerService','#4285f4','getAutoFitPresentations','scene','drawing.operation.set-drawing-active','clipByShape','indexOf','MoveDownIcon','URL','prototype','sectionFloating','_createCopyInfoByRange','registerRenderModule','getCanvasElement','VIEW_MAIN','onDblclick$','setShapeProps','sheet.shape.object-list.panel','setPresentation','_lastEditingShapeKey','setCursor','_activeAdjustInfo','registerFeaturePasteHook','save','get','StraightConnector1','DRAWING','drawing-ui.objectListPanel.showAll','marginTop','type','relation','sheets-shape-ui.ribbon.shape-format.arrange-front','find','_commandService','error','Medium','_activeShapeId','restore','ShapeFormatSettingIcon','_updateTransform','setFallbackVisible','scale','getTransformerByCreate','_groupCopyPasteController','adjHandleFill','_sheetsShapeService','_attachAdjustEvent','getPermissionPoint','defineProperty','buildClipPath','_initSheetChange','_transformCalculateSrcRect','_addShapeConnectorHandlerObjects','1628860qmUzGs','_registerDrawingFocusChangeHandler','_findNearestConnectionSite','copyType','95955vgfHFi','setSrcRect','getCurrentTypeOfUnit$','width','getShapeData','title','isArray','BottomIcon','sectionCanvas','#bcbcbc','9281195wXxWiM','disableObjectsEvent','setEditing','iterator','updateConnectionDetection','removeLinePoints','_onSavingEditorData$','unsubscribe','update$','startY','completeEditing','getVisible','_createShapeAdjustControls','addClipboardHook','undo','color','isMainScene','_openShapeEditPanel','getCurrentUnitOfType','getUnitId','drawing-ui.objectListPanel.name','cxnPointStroke','_updateAdjustControlPositions','currentAdjustValues','rotation','_rerouteConnectorLine','BUTTON','_disposePopups','drawing-ui.objectListPanel.hide','Large','onload','shapeText','fillType','resolveHyperLinkAt','backward','getActualSize','_setTransForm','_sheetDrawingShapeRenderController','_clearFocusedShape','updateLinePoints','_univerInstanceService','8EZgSJQ','sheets-shape-ui.imagePanel.crop.shape','attachPopupToObject','_addShapeAdjustControl','canvasElement','getOwnPropertyDescriptor','_configService','version','clipHeight','offsetY','UNIVER_SHEET','getRenderUnitById','isolated','FlipVerticalIcon','getObjectIncludeInGroup','image-clip-adjust-point-','SHEET_SHAPE_UI_PLUGIN','executeCommand','isRichText','offsetX','sheets-shape-ui.ribbon.shape-format.arrange-backward','clone','isDrawingObject','_cxtHandlerPointerUp','objects','_index','_handleConnectedEndpointMove','has','updateContext','fillImageSourceType','canvas','_initSelection','translate','_getConnectionSiteAngle','_componentManager','Path','_getShapeInfo','getObject','packageName','showContextualTab','drawing-ui.objectListPanel.moveBackward','default','doc.image-clip.shape-picker.component','_handleBasicShapeUpdateConnectorLineShape','_updateSrcRectByTransform','_drawingManagerService','_initialize','_drawRichText','isStartConnectorPoint','focus$','remove$','_reset','_update','angle','constructor','fill','getDrawingSearch','getUnit','_loadShapePictureFill'];_0x4acb=function(){return _0x5637bb;};return _0x4acb();}_a=X([Y(0x0,_0x5a17c7)],_a);let va=class extends _0x5e7af4{constructor(_0x402819=Yi,_0x59db70,_0x33153d,_0x1f202b,_0x22be97){const _0xc3c2f9=_0x40a3e1;super(),this[_0xc3c2f9(0x255)]=_0x402819,this[_0xc3c2f9(0x315)]=_0x59db70,this[_0xc3c2f9(0x279)]=_0x33153d,this[_0xc3c2f9(0x2ca)]=_0x1f202b,this[_0xc3c2f9(0x258)]=_0x22be97;let {..._0x18bf3e}=_0x2b5604({},Yi,this[_0xc3c2f9(0x255)]);this[_0xc3c2f9(0x2ca)][_0xc3c2f9(0x30c)](Ji,_0x18bf3e),this[_0xc3c2f9(0x477)]();}['onStarting'](){const _0x22dd80=_0x40a3e1;this['_injector'][_0x22dd80(0x38e)]([ta]),this['_injector'][_0x22dd80(0x270)](ta),_0x457bb0(this[_0x22dd80(0x315)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x40a3e1(0x3ec)](){const _0x4a75f8=_0x40a3e1;_0x457bb0(this['_injector'],[[da],[Pr],[fa]]),_0x557f52(this[_0x4a75f8(0x315)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x4a75f8(0x46b)](_0x1d909e=>{const _0x46d6b5=_0x4a75f8;this[_0x46d6b5(0x1c6)](this[_0x46d6b5(0x258)][_0x46d6b5(0x264)](_0x2f72d4[_0x46d6b5(0x2ce)],_0x1d909e));});}[_0x40a3e1(0x20c)](){const _0x281536=_0x40a3e1;_0x557f52(this[_0x281536(0x315)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x40a3e1(0x1ce)](){const _0x33f241=_0x40a3e1;this[_0x33f241(0x315)][_0x33f241(0x270)](aa)[_0x33f241(0x33e)]();}[_0x40a3e1(0x477)](){const _0x5c41d8=_0x40a3e1;[Ir,K,Fr,qi][_0x5c41d8(0x46b)](_0x2bc58b=>this[_0x5c41d8(0x1c6)](this[_0x5c41d8(0x279)][_0x5c41d8(0x1ea)](_0x2bc58b)));}};q(va,_0x40a3e1(0x275),_0x2f72d4[_0x40a3e1(0x2ce)]),q(va,_0x40a3e1(0x42a),_0x40a3e1(0x2d4)),q(va,'packageName',Gi),q(va,'version',Ki),va=X([_0x5da42f(_0x1146d0,_0x40457b,_0x499a28,_0x29d435,_0x1b66b7,_0x5b0db3,_0x211085,_0x4fffad,_0x6be2d1,_0xb1acc8,_0x330621,_0x255e95,_0x31c67a),Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x3a4817),Y(0x3,_0x4b4871),Y(0x4,_0x5a17c7)],va);const ya={'type':_0x47a509[_0x40a3e1(0x31e)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0xfe7dba=_0x40a3e1;let _0x55637a=_0x3911a9(_0x2d58e3),_0x1b2f9f=_0x17fdf6(()=>_0x55637a[_0xfe7dba(0x2f5)],_0x55637a['getFocusDrawings'](),!0x1,[_0x55637a]);return _0x1b2f9f[_0xfe7dba(0x46d)]===0x0?null:_0xf2bc1d(_0xfe7dba(0x1b8),{'children':_0x2ae626(_0xfe7dba(0x1b8),{'className':_0xfe7dba(0x311),'children':[_0xf2bc1d(_0x297d10,{'drawings':_0x1b2f9f,'hasCropper':!0x1}),_0xf2bc1d(_0x3f9b53,{'drawings':_0x1b2f9f})]})});}function xa(_0x53aba3){let {unitId:_0x192a4e,subUnitId:_0x1ef6a4,shapeId:_0x15b152}=_0x53aba3,_0x71374d=_0x3911a9(_0x3a4817),_0x4f6b30=_0x3911a9(_a);return _0xf2bc1d(_0x4ced55,{..._0x53aba3,'positionEditor':_0xf2bc1d(ba,{}),'onUpdateShapeData':(_0x2bf9a6,_0xa059bc)=>{Dr(_0x71374d,_0x192a4e,_0x1ef6a4,_0x15b152,_0x2bf9a6,_0xa059bc);},'onUpdateLineShapeData':(_0x177586,_0x3a2a5e)=>{Or(_0x71374d,_0x192a4e,_0x1ef6a4,_0x15b152,_0x177586,_0x3a2a5e);},'onUpdateShapeFillImage':_0x2dae3a=>{const _0x47160c=_0x214c;_0x4f6b30[_0x47160c(0x37b)]({'unitId':_0x192a4e,'subUnitId':_0x1ef6a4,'drawingId':_0x15b152},_0x2dae3a);}});}function Sa(_0x255371){const _0x3513ed=_0x40a3e1;let _0x22e796=_0x3911a9(_0xfc879),_0x5162a6=_0x17fdf6(()=>_0x22e796[_0x3513ed(0x3b3)],_0x22e796[_0x3513ed(0x2a6)](),!0x1,[_0x22e796]),_0x1577a9=_0x255371['popup'][_0x3513ed(0x317)];return!_0x1577a9||!_0x5162a6?null:_0xf2bc1d(Ca,{..._0x1577a9,'canvasElement':_0x255371[_0x3513ed(0x46e)][_0x3513ed(0x2c8)]});}function Ca(_0x41c183){const _0x23f790=_0x40a3e1;let _0x39a877=_0x3911a9(_0x3a4817),_0x1db577=_0x3911a9(_0x25eee4),{unitId:_0x5d5afc,subUnitId:_0x5b7e81,drawingId:_0x3e2f4e,drawingType:_0x57aa63,shapeType:_0x531124}=_0x41c183,[_0x1d5877,_0x541bec]=_0x1e43f1(_0x41c183[_0x23f790(0x1eb)]),_0x4b7561=_0x21a1e7(()=>_0x1503fd(_0x1d5877),[_0x1d5877]),_0x1b12fe=_0x21a1e7(()=>_0x5add35(_0x1d5877),[_0x1d5877]);_0x4f4595(()=>{const _0x2cf861=_0x23f790;let _0x580213=_0x39a877['onCommandExecuted'](_0x147356=>{const _0x4d22d4=_0x214c;if(_0x147356['id']!==_0x2abe23['id'])return;let _0x374c3d=_0x1db577[_0x4d22d4(0x1df)](_0x5d5afc,_0x5b7e81,_0x3e2f4e);_0x374c3d&&_0x541bec(_0x374c3d);});return()=>_0x580213[_0x2cf861(0x223)]();},[_0x39a877,_0x3e2f4e,_0x1db577,_0x5b7e81,_0x5d5afc]);let _0x57aaa7=_0x40e45c=>{_0x541bec(_0x3ab4be=>({..._0x3ab4be,..._0x40e45c}));},_0x16e84c=_0x213407=>{const _0x442ba5=_0x23f790;let _0x14d4f1=_0x25fcc6(_0x1d5877,_0x213407);Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,{'oldShapeData':{'shapeText':_0x1d5877[_0x442ba5(0x2ba)]}},_0x14d4f1),_0x57aaa7(_0x14d4f1);},_0x28dde0=_0x31f90f({'hostType':_0x2f72d4[_0x23f790(0x2ce)],'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'shapeId':_0x3e2f4e,'shapeData':_0x1d5877,'onUpdateBinding':_0x1f8905=>{const _0x18e269=_0x23f790;let _0x3894e2={'formulaBinding':_0x1f8905};Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,{'oldShapeData':{'formulaBinding':_0x1d5877[_0x18e269(0x40f)]}},_0x3894e2),_0x57aaa7(_0x3894e2);}});return _0x2ae626(_0x470de9,{'children':[_0xf2bc1d(_0x23aeb0,{'canvasElement':_0x41c183[_0x23f790(0x2c8)],'shapeData':_0x1d5877,'shapeType':_0x531124,'textStyle':{'ff':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x45b)],'fs':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x422)],'cl':{'rgb':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x2aa)]},..._0x4b7561},'textModel':_0x1b12fe?{'ha':_0x1b12fe['ha']??_0x1388a6['LEFT'],'va':_0x1b12fe['va']??_0x11de6['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2c02a7[_0x23f790(0x2fb)],'defaultGradientEndColor':_0x2c02a7[_0x23f790(0x3ce)],'defaultStrokeColor':_0x2c02a7[_0x23f790(0x453)],'extensionGroups':_0x28dde0[_0x23f790(0x33d)],'floatingObjectToolbarPosition':_0x36ba8a['SHEET'],'onUpdateShapeData':(_0x10af35,_0x480a66)=>{Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,_0x10af35,_0x480a66),_0x480a66&&_0x57aaa7(_0x480a66);},'onUpdateText':_0x16e84c,'onOpenPanel':()=>{_0x39a877['executeCommand'](Wr['id'],{'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'drawingId':_0x3e2f4e});},'onDelete':()=>{const _0xfea9fb=_0x23f790;_0x39a877[_0xfea9fb(0x2d5)](_0x2982ca['id'],{'unitId':_0x5d5afc,'drawings':[{'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'drawingId':_0x3e2f4e,'drawingType':_0x57aa63}]});}}),_0x28dde0[_0x23f790(0x368)]]});}function wa(_0x4d1774){const _0xb7a845=_0x40a3e1;return!!_0x4d1774&&_0xb7a845(0x3cd)in _0x4d1774&&'sheetTransform'in _0x4d1774;}const Ta=_0x3fd15d(()=>{const _0x5b375d=_0x40a3e1;let _0x7a415f=_0x3911a9($),_0x5ee3b3=_0x3911a9(_0x25eee4),_0x3b1129=_0x3911a9(_0x2d58e3),_0xf47e90=_0x3911a9(_0x3a4817),_0x5cb8a1=_0x3911a9(_0x1b9e9a),_0x275b90=_0x3911a9(_0x5a17c7),_0x59868e=_0x21a1e7(()=>({'getShapeModel':(_0x5de7e5,_0x5e8626,_0x325711)=>_0x5ee3b3[_0x5b375d(0x3f9)](_0x5de7e5,_0x5e8626,_0x325711),'getShapeData':(_0x530f8d,_0x183c30,_0x1a2d4e)=>_0x5ee3b3['getShapeDataById'](_0x530f8d,_0x183c30,_0x1a2d4e),'getDrawingTransform':(_0x19d6c4,_0x4ba9e6,_0x42a6c7)=>{const _0x2f0317=_0x5b375d;let _0x525c7b=_0x3b1129[_0x2f0317(0x31f)]({'unitId':_0x19d6c4,'subUnitId':_0x4ba9e6,'drawingId':_0x42a6c7});return _0x525c7b==null?void 0x0:_0x525c7b[_0x2f0317(0x412)];},'updateShapeText':({unitId:_0x147c5e,subUnitId:_0x57d8cc,shapeId:_0x2d5938,shapeText:_0x3fe6c0,oldShapeText:_0x3e7b7f,hostSize:_0x215fe6})=>{_0x5cb8a1['run'](_0x147c5e,()=>{const _0x3204a2=_0x214c;var _0x19b590;let _0x299946=_0xf47e90['syncExecuteCommand'](K['id'],{'unitId':_0x147c5e,'subUnitId':_0x57d8cc,'shapeId':_0x2d5938,'shapeData':{'shapeText':_0x3fe6c0},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3e7b7f}}});if(!_0x299946||!_0x215fe6)return _0x299946;let _0x3cb445=_0x3b1129[_0x3204a2(0x31f)]({'unitId':_0x147c5e,'subUnitId':_0x57d8cc,'drawingId':_0x2d5938}),_0x4cac76=_0x3cb445==null?void 0x0:_0x3cb445[_0x3204a2(0x412)];if(!wa(_0x3cb445)||!_0x4cac76)return!0x1;let _0x1db940={..._0x4cac76,'width':_0x215fe6[_0x3204a2(0x294)],'height':_0x215fe6[_0x3204a2(0x222)]},_0x5604c4=(_0x19b590=_0x275b90['getRenderUnitById'](_0x147c5e))==null||(_0x19b590=_0x19b590[_0x3204a2(0x433)](_0x22bccb)[_0x3204a2(0x470)](_0x57d8cc))==null?void 0x0:_0x19b590[_0x3204a2(0x318)];return _0xf47e90[_0x3204a2(0x1de)](_0x33b43a['id'],{'unitId':_0x147c5e,'drawings':[{..._0x3cb445,'transform':_0x1db940,'sheetTransform':_0x5604c4?_0x588a4b(_0x1db940,_0x5604c4)??_0x3cb445['sheetTransform']:_0x3cb445[_0x3204a2(0x33c)],'axisAlignSheetTransform':_0x5604c4?_0x48d94d(_0x1db940,_0x5604c4)??_0x3cb445[_0x3204a2(0x3cd)]:_0x3cb445[_0x3204a2(0x3cd)]}]});});},'updateHostSize':({unitId:_0x5b2427,subUnitId:_0x4c6aa6,shapeId:_0xeca85,width:_0x107a7b,height:_0x2fe103})=>{const _0x449708=_0x5b375d;var _0x233b4f;let _0x1c2651=_0x3b1129[_0x449708(0x31f)]({'unitId':_0x5b2427,'subUnitId':_0x4c6aa6,'drawingId':_0xeca85}),_0x254242=_0x1c2651==null?void 0x0:_0x1c2651['transform'];if(!wa(_0x1c2651)||!_0x254242)return;let _0x200f0e={..._0x254242,'width':_0x107a7b,'height':_0x2fe103},_0x546320=(_0x233b4f=_0x275b90['getRenderUnitById'](_0x5b2427))==null||(_0x233b4f=_0x233b4f[_0x449708(0x433)](_0x22bccb)[_0x449708(0x470)](_0x4c6aa6))==null?void 0x0:_0x233b4f['skeleton'],_0x1d6edc=_0x546320?_0x588a4b(_0x200f0e,_0x546320)??_0x1c2651['sheetTransform']:_0x1c2651[_0x449708(0x33c)],_0xaa27e9=_0x546320?_0x48d94d(_0x200f0e,_0x546320)??_0x1c2651[_0x449708(0x3cd)]:_0x1c2651[_0x449708(0x3cd)];_0xf47e90['executeCommand'](_0x33b43a['id'],{'unitId':_0x5b2427,'drawings':[{..._0x1c2651,'transform':_0x200f0e,'sheetTransform':_0x1d6edc,'axisAlignSheetTransform':_0xaa27e9}]});},'allowHostSizeShrink':({unitId:_0x59ceac,subUnitId:_0x1b02f4,shapeId:_0x29e1dd})=>_0x4bf744(_0x5ee3b3[_0x5b375d(0x1df)](_0x59ceac,_0x1b02f4,_0x29e1dd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0xf47e90,_0x3b1129,_0x275b90,_0x5ee3b3,_0x5cb8a1]),_0x33d3a9=_0x21a1e7(()=>({'viewportKeys':{'main':_0x4b46ff[_0x5b375d(0x266)],'leftTop':_0x4b46ff[_0x5b375d(0x446)],'top':_0x4b46ff['VIEW_MAIN_TOP'],'left':_0x4b46ff['VIEW_MAIN_LEFT']},'getSkeleton':(_0x5b6da2,_0x22a969)=>{const _0x196164=_0x5b375d;var _0x8b039c;return((_0x8b039c=_0x5b6da2['with'](_0x22bccb)['getSkeletonParam'](_0x22a969['subUnitId']))==null?void 0x0:_0x8b039c[_0x196164(0x318)])??null;}}),[]);return _0xf2bc1d(_0x5afdbc,{'adapter':_0x59868e,'editingService':_0x7a415f,'editorUnitId':Vr,'positionOptions':_0x33d3a9});});let Ea=class extends _0x1f1ba9{constructor(_0x228cff,_0x5d2c77){const _0x2e7dc0=_0x40a3e1;super(),this[_0x2e7dc0(0x2e6)]=_0x228cff,this['_iconManager']=_0x5d2c77,this[_0x2e7dc0(0x39b)](),this['_registerComponents']();}['_registerIcons'](){const _0x4406a8=_0x40a3e1;this[_0x4406a8(0x45c)][_0x4406a8(0x2df)](_0x4406a8(0x20f))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)]['register']({'ObjectLayersIcon':_0x351aa4})),this['_iconManager']['has'](_0x4406a8(0x329))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'FlipHorizontalIcon':_0x4ef5a4})),this[_0x4406a8(0x45c)][_0x4406a8(0x2df)]('FlipVerticalIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'FlipVerticalIcon':_0x132c9b})),this[_0x4406a8(0x45c)][_0x4406a8(0x2df)](_0x4406a8(0x298))||this['disposeWithMe'](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'BottomIcon':_0x5aa288})),this[_0x4406a8(0x45c)]['has'](_0x4406a8(0x25f))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'MoveDownIcon':_0x560a3c})),this['_iconManager'][_0x4406a8(0x2df)]('MoveUpIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)]['register']({'MoveUpIcon':_0x543917})),this['_iconManager'][_0x4406a8(0x2df)](_0x4406a8(0x27e))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'ShapeFormatSettingIcon':_0x4333c8})),this['_iconManager'][_0x4406a8(0x2df)]('TopmostIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'TopmostIcon':_0x41d425}));}[_0x40a3e1(0x306)](){const _0x4039eb=_0x40a3e1;this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](Lr,xa)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](Rr,$i)),this[_0x4039eb(0x1c6)](this['_componentManager'][_0x4039eb(0x3f1)](Jr,ei)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](Yr,Zr)),this[_0x4039eb(0x2e6)]['hasDefault'](_0x48abb2)||this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](_0x48abb2,$r)),this['disposeWithMe'](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](zr,Sa)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](di,hi)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](ui,gi)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](fi,_i)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](pi,vi)),this['disposeWithMe'](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](Hr,_0x3eed75)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](_0x4039eb(0x1c0),Ta));}};Ea=X([Y(0x0,_0x34f57e(_0x203616)),Y(0x1,_0x34f57e(_0x3141ce))],Ea);let Da=class extends _0x1f1ba9{constructor(_0x47eff1,_0x223819,_0x594cf6,_0xe5dcb0,_0x32327e,_0xc46945,_0x5ec8e7,_0x276d46,_0x222685){const _0xe78ba2=_0x40a3e1;super();let _0x2fc41b=_0x36bf4a=>{const _0x5a8b22=_0x214c;var _0x33290f,_0x290792;return(((_0x33290f=_0x276d46['getPermissionPoint'](new _0x3edb9a(_0x36bf4a[_0x5a8b22(0x43a)])['id']))==null?void 0x0:_0x33290f[_0x5a8b22(0x437)])??!0x0)&&(((_0x290792=_0x276d46['getPermissionPoint'](new _0x2e8354(_0x36bf4a[_0x5a8b22(0x43a)],_0x36bf4a[_0x5a8b22(0x330)])['id']))==null?void 0x0:_0x290792['value'])??!0x0);},_0x4f4ff3=_0x4d7674=>_0x4d7674['shapeId']&&_0x2fc41b(_0x4d7674)?_0x594cf6[_0xe78ba2(0x1df)](_0x4d7674[_0xe78ba2(0x43a)],_0x4d7674[_0xe78ba2(0x330)],_0x4d7674[_0xe78ba2(0x464)])??null:null,_0x59db82=()=>{const _0x21a24a=_0xe78ba2;let _0x6dd7b7=_0x32327e['getFocusDrawings'](),_0x41ee05=_0x6dd7b7[_0x21a24a(0x46d)]===0x1?_0x6dd7b7[0x0]:null;return(_0x41ee05==null?void 0x0:_0x41ee05[_0x21a24a(0x221)])===_0x204a86['DRAWING_SHAPE']&&_0x41ee05['unitId']===_0x47eff1[_0x21a24a(0x43a)]?{'unitId':_0x41ee05[_0x21a24a(0x43a)],'subUnitId':_0x41ee05[_0x21a24a(0x330)],'shapeId':_0x41ee05[_0x21a24a(0x35b)]}:null;};this[_0xe78ba2(0x1c6)](_0x3cf394(_0x47eff1,_0x223819,{'changes$':_0x378593(_0x32327e[_0xe78ba2(0x2f5)],_0xe5dcb0[_0xe78ba2(0x342)],_0x276d46[_0xe78ba2(0x373)]),'isActive':()=>{const _0x5c9a5e=_0xe78ba2;var _0x419e0f;return((_0x419e0f=_0xc46945['getFocusedUnit']())==null?void 0x0:_0x419e0f[_0x5c9a5e(0x2ae)]())===_0x47eff1[_0x5c9a5e(0x43a)]&&!_0x5ec8e7[_0x5c9a5e(0x254)](_0x22723e)&&_0x32327e[_0x5c9a5e(0x23d)]()['some'](_0x307787=>_0x307787[_0x5c9a5e(0x43a)]===_0x47eff1[_0x5c9a5e(0x43a)]);},'getSelectedTarget':_0x59db82,'getSource':()=>{let _0x140aae=_0x59db82();return _0x140aae?_0x4f4ff3(_0x140aae):null;},'getTarget':_0x596d21=>{const _0x4a6a2b=_0xe78ba2;let _0x521224=_0x47eff1['scene'][_0x4a6a2b(0x479)](new _0x1e9d06(_0x596d21[_0x4a6a2b(0x2d7)],_0x596d21[_0x4a6a2b(0x2cd)]));if(!(_0x521224 instanceof J))return null;let _0x471b66={'unitId':_0x47eff1['unitId'],'subUnitId':_0x521224['subUnitId'],'shapeId':_0x521224[_0x4a6a2b(0x464)]};return _0x2fc41b(_0x471b66)?_0x471b66:null;},'getShape':_0x4f4ff3,'update':(_0x45604a,_0x38223f,_0x548d97)=>_0x222685['executeCommand'](K['id'],{..._0x45604a,'shapeData':_0x548d97,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x38223f}})}));}};Da=X([Y(0x1,_0x34f57e(_0x4e03be)),Y(0x2,_0x34f57e(_0x25eee4)),Y(0x3,_0x34f57e($)),Y(0x4,_0x2d58e3),Y(0x5,_0x3a3cc8),Y(0x6,_0x264df0),Y(0x7,_0x579508),Y(0x8,_0x3a4817)],Da);const Oa=_0x40a3e1(0x471);let ka=class extends _0x1f1ba9{constructor(_0x515b8c,_0x33390d,_0x2ec596,_0x5c0fd9,_0x5347a0,_0x4dafc7){const _0x188574=_0x40a3e1;super(),this['_menuManagerService']=_0x515b8c,this[_0x188574(0x1dc)]=_0x33390d,this[_0x188574(0x2f1)]=_0x2ec596,this[_0x188574(0x2c3)]=_0x5c0fd9,this[_0x188574(0x258)]=_0x5347a0,this['_shapeFloatingToolbarService']=_0x4dafc7,q(this,_0x188574(0x429),!0x1),this['_menuManagerService'][_0x188574(0x227)](Hi),this['disposeWithMe'](_0x35229e(this['_drawingManagerService']['focus$'][_0x188574(0x1ff)](()=>this[_0x188574(0x2f8)]()))),this[_0x188574(0x2f8)]();}[_0x40a3e1(0x223)](){const _0x40a371=_0x40a3e1;this[_0x40a371(0x355)][_0x40a371(0x280)](!0x1,Oa),this[_0x40a371(0x3a1)](),super['dispose']();}['_update'](){const _0x55ce3b=_0x40a3e1;var _0x5e1016;let _0x8329d2=this[_0x55ce3b(0x2f1)][_0x55ce3b(0x23d)](),_0x56008f=_0x8329d2[_0x55ce3b(0x46d)]===0x1?_0x8329d2[0x0]:void 0x0;if((_0x56008f==null?void 0x0:_0x56008f['drawingType'])!==_0x204a86[_0x55ce3b(0x41a)]||this['_univerInstanceService']['getUnitType'](_0x56008f[_0x55ce3b(0x43a)])!==_0x2f72d4['UNIVER_SHEET']){this[_0x55ce3b(0x355)][_0x55ce3b(0x280)](!0x1,Oa),this['_hide']();return;}let _0x393a5d=(_0x5e1016=this[_0x55ce3b(0x258)][_0x55ce3b(0x2cf)](_0x56008f[_0x55ce3b(0x43a)]))==null?void 0x0:_0x5e1016['engine'][_0x55ce3b(0x265)](),_0x5b3cad=_0x542739(_0x393a5d)===_0x55ce3b(0x2d0);if(this['_shapeFloatingToolbarService'][_0x55ce3b(0x280)](_0x5b3cad,Oa),_0x5b3cad){this[_0x55ce3b(0x3a1)]();return;}this['_visible']||(this[_0x55ce3b(0x429)]=!0x0,this[_0x55ce3b(0x1dc)][_0x55ce3b(0x2eb)](Br,{'activate':!0x0}));}['_hide'](){const _0x464119=_0x40a3e1;this['_visible']&&(this[_0x464119(0x429)]=!0x1,this[_0x464119(0x1dc)][_0x464119(0x2ff)](Br),this[_0x464119(0x1dc)][_0x464119(0x1ca)]([]));}};ka=X([Y(0x0,_0x2a7418),Y(0x1,_0xbd47b4),Y(0x2,_0x2d58e3),Y(0x3,_0x3a3cc8),Y(0x4,_0x5a17c7),Y(0x5,_0x34f57e(_0xfc879))],ka);let Aa=class extends _0x41bb9b{constructor(_0x2e63c1,_0x201785,_0x1e16c8,_0x5e3416,_0x8c31aa,_0x483329,_0x522296,_0x54fc32,_0x1f6aee,_0x197642){super(_0x2e63c1,_0x201785,_0x1e16c8,_0x5e3416,_0x8c31aa,_0x483329,_0x522296,_0x54fc32,_0x1f6aee,_0x197642,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x34f57e(_0x4e6c7e)),Y(0x2,_0x34f57e(_0xd91da3)),Y(0x3,_0x34f57e(_0x35cd82)),Y(0x4,_0x3a4817),Y(0x5,_0x34f57e(_0x156cf6)),Y(0x6,_0x34f57e(_0x31dfd7)),Y(0x7,_0x34f57e(_0x3f7435)),Y(0x8,_0x34f57e(_0x285cfc)),Y(0x9,_0x34f57e($))],Aa);let ja=class extends _0x3a1637{constructor(_0x58f40c,_0x1b1478,_0x30bdfd,_0x94fc10,_0x1194ff){const _0x399464=_0x40a3e1;super(_0x58f40c,_0x1b1478,{'editing$':_0x30bdfd[_0x399464(0x342)],'resolve':_0x1dca43=>{const _0xa32da=_0x399464;var _0x2cf5c6,_0x4667ba,_0x59b5b5;let _0x4524b7=new _0x1e9d06(_0x1dca43[_0xa32da(0x2d7)],_0x1dca43['offsetY']),_0x524676=((_0x2cf5c6=_0x58f40c['scene'][_0xa32da(0x460)](_0x4524b7))==null?void 0x0:_0x2cf5c6[_0xa32da(0x301)](_0x4524b7))??_0x4524b7,_0x3ab7a2=_0x2c8700(_0x58f40c[_0xa32da(0x25b)][_0xa32da(0x479)](_0x4524b7)??null,_0x524676);if(!(_0x3ab7a2 instanceof J))return null;let _0x3718eb=_0x3ab7a2[_0xa32da(0x2bc)](_0x524676);if(!_0x3718eb)return null;let _0x3d34cb=_0x3ab7a2,_0x124f9c={'componentKey':_0x6a8cbb[_0xa32da(0x419)],'direction':_0xa32da(0x1da),'offset':[0x0,0xa],'onClickOutside':()=>_0x1b1478[_0xa32da(0x234)]()};return{'object':_0x3ab7a2,'info':{..._0x3718eb,'unitId':_0x3ab7a2[_0xa32da(0x43a)],'subUnitId':_0x3ab7a2[_0xa32da(0x330)],'shapeKey':_0x3ab7a2[_0xa32da(0x39f)],'readonly':!0x0,'copyable':((_0x4667ba=_0x1194ff[_0xa32da(0x287)](new _0x2b4124(_0x3ab7a2[_0xa32da(0x43a)])['id']))==null?void 0x0:_0x4667ba['value'])!==!0x1&&((_0x59b5b5=_0x1194ff[_0xa32da(0x287)](new _0x4974af(_0x3ab7a2[_0xa32da(0x43a)],_0x3ab7a2['subUnitId'])['id']))==null?void 0x0:_0x59b5b5[_0xa32da(0x437)])!==!0x1},'attachPopup':()=>_0x94fc10[_0xa32da(0x2c6)](_0x3d34cb,_0x124f9c)};}}),this[_0x399464(0x1c6)](_0x58f40c[_0x399464(0x326)][_0x399464(0x251)][_0x399464(0x1ff)](()=>this[_0x399464(0x3b6)]()));}};ja=X([Y(0x1,_0x34f57e(_0x31dfd7)),Y(0x2,_0x34f57e($)),Y(0x3,_0x34f57e(_0x2bf47d)),Y(0x4,_0x579508)],ja);let Ma=class extends _0x1f1ba9{constructor(_0x22d27c,_0x4cbac8,_0x456ba2,_0x5edb46,_0x138238,_0x115b41,_0x51cde3,_0x158791,_0x42178f,_0x32e32a,_0x189e44){const _0x12370f=_0x40a3e1;super(),this[_0x12370f(0x2c3)]=_0x22d27c,this[_0x12370f(0x3ff)]=_0x4cbac8,this[_0x12370f(0x246)]=_0x456ba2,this[_0x12370f(0x285)]=_0x5edb46,this[_0x12370f(0x1d3)]=_0x138238,this[_0x12370f(0x279)]=_0x115b41,this[_0x12370f(0x2f1)]=_0x51cde3,this[_0x12370f(0x331)]=_0x158791,this[_0x12370f(0x394)]=_0x42178f,this['_renderManagerService']=_0x32e32a,this[_0x12370f(0x218)]=_0x189e44,q(this,_0x12370f(0x1f1),null),q(this,_0x12370f(0x425),null),q(this,_0x12370f(0x24a),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x12370f(0x35d),null),q(this,'_disposePopups',[]),this[_0x12370f(0x3da)](),this[_0x12370f(0x1c6)](this[_0x12370f(0x2c3)][_0x12370f(0x293)](_0x2f72d4['UNIVER_SHEET'])[_0x12370f(0x1ff)](_0x199163=>{const _0x1fe1dd=_0x12370f;if(!_0x199163){var _0x2db72e;(_0x2db72e=this['_sidebarDisposable'])==null||_0x2db72e[_0x1fe1dd(0x223)]();}})),this[_0x12370f(0x229)](),this[_0x12370f(0x33e)](),this[_0x12370f(0x1c6)](this['_shapeTextEditingService']['editingParams$'][_0x12370f(0x1ff)](_0x5f58eb=>{const _0xa5ee3d=_0x12370f;_0x5f58eb&&this[_0xa5ee3d(0x358)]();}));}[_0x40a3e1(0x3da)](){const _0x399c1f=_0x40a3e1;this[_0x399c1f(0x246)]['mergeMenu'](Wi);}['initShapePopupMenu'](){const _0x25536f=_0x40a3e1;this['_shapePopupMenuDisposable']||=this[_0x25536f(0x1c6)](_0x429510(this[_0x25536f(0x258)],_0x2f72d4[_0x25536f(0x2ce)],_0x128c4f=>this[_0x25536f(0x1c3)](_0x128c4f)));}[_0x40a3e1(0x2e8)](_0xc48c08,_0x2f4d1c,_0x30d610){const _0x624cb2=_0x40a3e1;let _0x4f019e=this[_0x624cb2(0x285)]['getShapeTypeById'](_0xc48c08,_0x2f4d1c,_0x30d610),_0x4cde8f=this[_0x624cb2(0x285)]['getShapeDataById'](_0xc48c08,_0x2f4d1c,_0x30d610);return _0x4f019e!==void 0x0&&_0x4cde8f!==void 0x0?{'shapeData':_0x4cde8f,'shapeId':_0x30d610,'shapeType':_0x4f019e,'unitId':_0xc48c08,'subUnitId':_0x2f4d1c,'version':this[_0x624cb2(0x1be)],'disableShapeOption':!0x1}:null;}[_0x40a3e1(0x358)](){const _0x55ca55=_0x40a3e1;this[_0x55ca55(0x2b6)][_0x55ca55(0x46b)](_0x23c901=>_0x23c901[_0x55ca55(0x223)]()),this[_0x55ca55(0x2b6)][_0x55ca55(0x46d)]=0x0;}['_popupMenuListener'](_0x5c496b){const _0x5aa6d0=_0x40a3e1;let _0x38e0c7=new _0x2bf40d();return _0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b['createControl$'][_0x5aa6d0(0x1ff)](()=>{const _0xde6697=_0x5aa6d0;let _0x1559b7=_0x5c496b['getSelectedObjectMap']();if(this[_0xde6697(0x358)](),this[_0xde6697(0x24a)]||_0x1559b7[_0xde6697(0x219)]>0x1)return;let _0x82feb8=_0x1559b7[_0xde6697(0x209)]()[_0xde6697(0x24c)]()[_0xde6697(0x437)];if(!_0x82feb8)return;let _0x5e2c17=this[_0xde6697(0x2f1)]['getDrawingOKey'](_0x82feb8[_0xde6697(0x39f)]);if(!_0x5e2c17||_0x5e2c17['drawingType']!==_0x204a86[_0xde6697(0x41a)])return;let {unitId:_0x17fbe6,subUnitId:_0x130ff7,drawingId:_0x4cfa6c,drawingType:_0x5444e2}=_0x5e2c17,_0x31cbc1=this['_getShapeInfo'](_0x17fbe6,_0x130ff7,_0x4cfa6c);if(!_0x31cbc1)return;this[_0xde6697(0x394)]['setContextValue'](_0x4c4f0c,!0x0);let _0x1223df=this[_0xde6697(0x258)][_0xde6697(0x2cf)](_0x17fbe6),_0x4cd30f=((_0x1223df==null?void 0x0:_0x1223df[_0xde6697(0x2ab)])===!0x1?_0x1223df[_0xde6697(0x433)](_0x2bf47d):this[_0xde6697(0x331)])['attachPopupToObject'](_0x82feb8,{'componentKey':zr,'direction':_0xde6697(0x216),'offset':[0x0,_0xd4bd0a],'extraProps':{'unitId':_0x17fbe6,'subUnitId':_0x130ff7,'drawingId':_0x4cfa6c,'drawingType':_0x5444e2,'shapeType':_0x31cbc1['shapeType'],'shapeData':_0x31cbc1[_0xde6697(0x1eb)]}});this[_0xde6697(0x2b6)]['push'](this['disposeWithMe'](_0x4cd30f)),this[_0xde6697(0x2f1)]['getFocusDrawings']()[_0xde6697(0x278)](_0x5092a2=>_0x5092a2[_0xde6697(0x43a)]===_0x17fbe6&&_0x5092a2[_0xde6697(0x330)]===_0x130ff7&&_0x5092a2['drawingId']===_0x4cfa6c)||this[_0xde6697(0x2f1)][_0xde6697(0x40e)]([{'unitId':_0x17fbe6,'subUnitId':_0x130ff7,'drawingId':_0x4cfa6c}]);})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b[_0x5aa6d0(0x1e6)][_0x5aa6d0(0x1ff)](()=>{const _0x43434c=_0x5aa6d0;this[_0x43434c(0x358)](),this[_0x43434c(0x394)][_0x43434c(0x1f4)](_0x4c4f0c,!0x1),this[_0x43434c(0x2f1)][_0x43434c(0x40e)](null);})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b[_0x5aa6d0(0x303)][_0x5aa6d0(0x1ff)](()=>{const _0x5347b7=_0x5aa6d0;this[_0x5347b7(0x358)]();})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b['changeStart$'][_0x5aa6d0(0x1ff)](()=>{const _0x2059d4=_0x5aa6d0;this[_0x2059d4(0x358)]();})),_0x35229e(()=>{const _0x230b1f=_0x5aa6d0;_0x38e0c7[_0x230b1f(0x223)](),this[_0x230b1f(0x358)]();});}[_0x40a3e1(0x229)](){const _0x47c3a6=_0x40a3e1;this['disposeWithMe'](this['_commandService'][_0x47c3a6(0x3a7)](_0x50f6e4=>{const _0x90cbc7=_0x47c3a6;if(_0x50f6e4['id']===Wr['id']){let {unitId:_0x4378bc,subUnitId:_0x1bd770,drawingId:_0x2040d1}=_0x50f6e4[_0x90cbc7(0x1fa)];this[_0x90cbc7(0x1be)]+=0x1,this[_0x90cbc7(0x425)]=this['_getShapeInfo'](_0x4378bc,_0x1bd770,_0x2040d1),this[_0x90cbc7(0x358)](),this[_0x90cbc7(0x2ac)]();}if(_0x50f6e4['id']===ya['id']&&(this[_0x90cbc7(0x425)]=null,this[_0x90cbc7(0x23a)]()),_0x50f6e4['id']===_0x2abe23['id']){let {unitId:_0x14a1bc,subUnitId:_0x5bfe19,shapeId:_0x1a554a}=_0x50f6e4[_0x90cbc7(0x1fa)];if(this[_0x90cbc7(0x425)]&&this[_0x90cbc7(0x425)][_0x90cbc7(0x464)]===_0x1a554a){let _0x59a2fc=this[_0x90cbc7(0x2e8)](_0x14a1bc,_0x5bfe19,_0x1a554a);_0x59a2fc&&(this[_0x90cbc7(0x1be)]+=0x1,_0x59a2fc['version']=this[_0x90cbc7(0x1be)],this['_activeShapeInfo']=_0x59a2fc,this[_0x90cbc7(0x24a)]&&this[_0x90cbc7(0x2ac)]());}}})),this['disposeWithMe'](this[_0x47c3a6(0x2f1)][_0x47c3a6(0x2f5)][_0x47c3a6(0x1ff)](_0x4c4d36=>{const _0x24866d=_0x47c3a6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x4c4d36['length']===0x0){this[_0x24866d(0x425)]=null,this['_closeShapeEditPanel']();return;}if(_0x4c4d36[_0x24866d(0x46d)]===0x1&&_0x4c4d36[0x0][_0x24866d(0x221)]===_0x204a86[_0x24866d(0x41a)]&&(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this[_0x24866d(0x2e8)](_0x4c4d36[0x0][_0x24866d(0x43a)],_0x4c4d36[0x0]['subUnitId'],_0x4c4d36[0x0][_0x24866d(0x35b)]),this['_activeShapeInfo'])){this[_0x24866d(0x2ac)]();return;}let _0x478927=_0x4c4d36[_0x24866d(0x385)](_0x2a243c=>_0x2a243c[_0x24866d(0x221)]===_0x204a86[_0x24866d(0x41a)]);if(_0x4c4d36[_0x24866d(0x46d)]>0x1&&_0x478927[_0x24866d(0x46d)]===_0x4c4d36[_0x24866d(0x46d)]){if(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this[_0x24866d(0x2e8)](_0x4c4d36[0x0]['unitId'],_0x4c4d36[0x0]['subUnitId'],_0x4c4d36[0x0]['drawingId']),this[_0x24866d(0x425)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this['_getShapeInfo'](_0x4c4d36[0x0][_0x24866d(0x43a)],_0x4c4d36[0x0][_0x24866d(0x330)],_0x4c4d36[0x0][_0x24866d(0x35b)]),this[_0x24866d(0x425)]){this[_0x24866d(0x425)]['disableShapeOption']=!0x0,this[_0x24866d(0x2ac)]();return;}}this[_0x24866d(0x23a)]();}));}[_0x40a3e1(0x2ac)](){const _0x17a2da=_0x40a3e1;this['_activeShapeInfo']&&(this[_0x17a2da(0x1f1)]=this[_0x17a2da(0x3ff)][_0x17a2da(0x361)]({'id':Lr,'header':{'title':this[_0x17a2da(0x1d3)]['t'](_0x17a2da(0x256))},'width':0x184,'children':{'label':Lr,...this[_0x17a2da(0x425)]},'onClose':()=>{const _0x43786a=_0x17a2da;this[_0x43786a(0x2f1)][_0x43786a(0x40e)](null),this[_0x43786a(0x394)]['setContextValue'](_0x4c4f0c,!0x1),this[_0x43786a(0x1f1)]=null;}}),this[_0x17a2da(0x24a)]=!0x0);}[_0x40a3e1(0x23a)](){const _0x43bd34=_0x40a3e1;this[_0x43bd34(0x24a)]=!0x1,this[_0x43bd34(0x3ff)]['close'](Lr),this['_sidebarDisposable']=null,this[_0x43bd34(0x394)][_0x43bd34(0x1f4)](_0x4c4f0c,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ma=X([Y(0x0,_0x3a3cc8),Y(0x1,_0x34f57e(_0x4edbc3)),Y(0x2,_0x2a7418),Y(0x3,_0x34f57e(_0x25eee4)),Y(0x4,_0x34f57e(_0x1fc669)),Y(0x5,_0x3a4817),Y(0x6,_0x2d58e3),Y(0x7,_0x34f57e(_0x2bf47d)),Y(0x8,_0x264df0),Y(0x9,_0x5a17c7),Y(0xa,_0x34f57e($))],Ma);let Na=class extends _0x5e7af4{constructor(_0x1b71f1=Yi,_0x293d1d,_0x5f1612,_0x1e79df,_0x21078a){const _0x9d39ae=_0x40a3e1;super(),this[_0x9d39ae(0x255)]=_0x1b71f1,this[_0x9d39ae(0x315)]=_0x293d1d,this[_0x9d39ae(0x279)]=_0x5f1612,this[_0x9d39ae(0x2ca)]=_0x1e79df,this[_0x9d39ae(0x258)]=_0x21078a;let {..._0x2ad20c}=_0x2b5604({},Yi,this[_0x9d39ae(0x255)]);this['_configService']['setConfig'](Ji,_0x2ad20c),this[_0x9d39ae(0x477)]();}[_0x40a3e1(0x20c)](){const _0x32ee07=_0x40a3e1;this[_0x32ee07(0x258)][_0x32ee07(0x264)](_0x2f72d4['UNIVER_DOC'],[Aa]),_0x557f52(this['_injector'],[[Ma],[ca],[Z],[ha]]);}[_0x40a3e1(0x1ce)](){const _0x593e4d=_0x40a3e1;this['_injector']['get'](Ma)[_0x593e4d(0x33e)]();}['onReady'](){const _0x13974d=_0x40a3e1;[[da],[Pr],[fa]][_0x13974d(0x46b)](_0x494923=>this[_0x13974d(0x315)][_0x13974d(0x38e)](_0x494923)),_0x557f52(this[_0x13974d(0x315)],[[fa],[Pr]]),this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4['UNIVER_SHEET'],[da]),this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[Xi]),this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[ma]),this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[na]),this[_0x13974d(0x1c6)](this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[ja])),this[_0x13974d(0x1c6)](this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[Da]));}[_0x40a3e1(0x30d)](){const _0x10ff0b=_0x40a3e1;this['_injector'][_0x10ff0b(0x38e)]([Ea]),this[_0x10ff0b(0x315)][_0x10ff0b(0x270)](Ea);let _0x1c435a=this['_injector'];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x10ff0b(0x46b)](_0x5ed117=>_0x1c435a[_0x10ff0b(0x38e)](_0x5ed117)),_0x557f52(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x40a3e1(0x477)](){const _0x1603dd=_0x40a3e1;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x1603dd(0x46b)](_0x5d2de2=>this[_0x1603dd(0x1c6)](this[_0x1603dd(0x279)][_0x1603dd(0x1ea)](_0x5d2de2)));}};q(Na,_0x40a3e1(0x275),_0x2f72d4['UNIVER_SHEET']),q(Na,_0x40a3e1(0x42a),_0x40a3e1(0x2d4)),q(Na,_0x40a3e1(0x2ea),Gi),q(Na,_0x40a3e1(0x2cb),Ki),Na=X([_0x5da42f(_0x1146d0,_0x40457b,_0x499a28,_0x2a1c33,_0x29d435,_0x1b66b7,_0x5b0db3,_0x211085,_0x4fffad,_0xf463fc,_0xb1acc8,_0x18a7f0,_0x48041f),Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x3a4817),Y(0x3,_0x4b4871),Y(0x4,_0x5a17c7)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};