@univerjs-pro/docs-shape-ui 1.0.3 → 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 (82) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/controllers/shape-text-editing.render-controller.d.ts +2 -3
  62. package/lib/umd/index.js +1 -1
  63. package/lib/umd/locale/ar-SA.js +1 -1
  64. package/lib/umd/locale/ca-ES.js +1 -1
  65. package/lib/umd/locale/de-DE.js +1 -1
  66. package/lib/umd/locale/en-US.js +1 -1
  67. package/lib/umd/locale/es-ES.js +1 -1
  68. package/lib/umd/locale/fa-IR.js +1 -1
  69. package/lib/umd/locale/fr-FR.js +1 -1
  70. package/lib/umd/locale/id-ID.js +1 -1
  71. package/lib/umd/locale/it-IT.js +1 -1
  72. package/lib/umd/locale/ja-JP.js +1 -1
  73. package/lib/umd/locale/ko-KR.js +1 -1
  74. package/lib/umd/locale/pl-PL.js +1 -1
  75. package/lib/umd/locale/pt-BR.js +1 -1
  76. package/lib/umd/locale/ru-RU.js +1 -1
  77. package/lib/umd/locale/sk-SK.js +1 -1
  78. package/lib/umd/locale/vi-VN.js +1 -1
  79. package/lib/umd/locale/zh-CN.js +1 -1
  80. package/lib/umd/locale/zh-HK.js +1 -1
  81. package/lib/umd/locale/zh-TW.js +1 -1
  82. package/package.json +20 -20
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xb07969=_0x56ec;(function(_0x189a64,_0x306af1){const _0x2b6ddc=_0x56ec,_0x3267f7=_0x189a64();while(!![]){try{const _0x50e89b=-parseInt(_0x2b6ddc(0x240))/0x1+parseInt(_0x2b6ddc(0x1fc))/0x2+-parseInt(_0x2b6ddc(0x230))/0x3*(-parseInt(_0x2b6ddc(0x26f))/0x4)+-parseInt(_0x2b6ddc(0x307))/0x5*(parseInt(_0x2b6ddc(0x1c4))/0x6)+parseInt(_0x2b6ddc(0x308))/0x7*(parseInt(_0x2b6ddc(0x25a))/0x8)+parseInt(_0x2b6ddc(0x179))/0x9*(-parseInt(_0x2b6ddc(0x17d))/0xa)+-parseInt(_0x2b6ddc(0x252))/0xb*(parseInt(_0x2b6ddc(0x26d))/0xc);if(_0x50e89b===_0x306af1)break;else _0x3267f7['push'](_0x3267f7['shift']());}catch(_0x5f4f02){_0x3267f7['push'](_0x3267f7['shift']());}}}(_0x5727,0x94c67));import{FormulaShapeAnimationController as _0x2f0b11,MobileShapeEditorControls as _0x5613de,MobileShapeEditorService as _0x21d080,MobileShapePickerPanel as _0x507df6,SHAPE_CHANGE_PICKER_COMPONENT as _0x157fc3,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xdd8679,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x4971b5,ShapeEditPanel as _0x5b0408,ShapeFloatingToolbar as _0x497eb4,ShapeFloatingToolbarService as _0x4df6ac,ShapeFloatingToolbarToggleFactory as _0x44248c,ShapeFormulaRibbonControl as _0x110de0,ShapeGroupEnum as _0x4d18eb,ShapePickerDropdown as _0x406cd8,ShapePickerPanel as _0x18a741,ShapeQuickStyleGallery as _0xaf4c0c,ShapeStyleRibbonControl as _0x329e07,ShapeTextEditorContainer as _0x215be5,ShapeTextFloatMenuRenderControllerBase as _0xeb3327,ShapeTextFloatToolbar as _0x4d68c4,ShapeTextHyperLinkHoverController as _0x334c84,ShapeTextHyperLinkInfo as _0x2d1f69,ShapeTextHyperLinkPopupService as _0x343e38,ShapeTextRibbonControl as _0x2e3acf,ToggleShapeFloatingToolbarOperation as _0x55323c,UniverShapeEditorMobileUIPlugin as _0x5d698b,UniverShapeEditorUIPlugin as _0x16bd14,activateDrawingObject as _0x5e88aa,bindRenderTransformerLifecycle as _0x26417c,buildShapeTextDataUpdate as _0x6f0257,clearActiveDrawingObjects as _0x1c8463,createShapeTextHyperLinkRegions as _0x24c9f8,drawFormulaShapeAnimationLayers as _0x307919,getDrawingTypeNameKey as _0x41e6a6,getTextModel as _0x1fbf5e,getTextStyle as _0x4a5c45,normalizeShapeTextModel as _0x16437f,plainShapeTextToDocumentData as _0x1503a7,prepareShapeTextDocumentData as _0x27fe9f,prepareShapeTextDocumentData as _0x31f136,registerShapeFormatPainter as _0x4f9cea,resolveFormulaShapeAutoFitSize as _0x59eb5a,resolveShapeContextualRibbonHostMode as _0x413b71,resolveShapeTextDocumentPageHeight as _0x4db670,resolveShapeTextDocumentRenderLayout as _0x455dbb,resolveShapeTextEditorBehaviorShapeData as _0x36fd1c,resolveShapeTextEditorWrapStrategy as _0x4e5632,resolveShapeTextHyperLinkAt as _0x197d1c,resolveShapeTextHyperLinkObject as _0x407e0f,shouldAllowShapeTextEditorHostSizeShrink as _0x3fe775,shouldClipShapeTextDocument as _0x4e8641,useFormulaShapeToolbar as _0x5f4d7f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0xad1241,DOC_CONTENT_INSERT_MENU_ID as _0x37f8c8,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x194cd6,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x29427a,DocCanvasPopManagerService as _0x114264,DocEventManagerService as _0x3f17e2,DocLayoutInteractionService as _0xbebd3f,DocParagraphMenuService as _0x250f54,DocPrintInterceptorService as _0x20923d,DocRenderController as _0x5bdc30,DocSelectionRenderService as _0x43d68e,EMPTY_PARAGRAPH_MENU_ID as _0x31b9c3,INSERT_BELLOW_MENU_ID as _0x449e25,UniverDocsMobileUIPlugin as _0x4a4e38,UniverDocsUIPlugin as _0x58cd09,VIEWPORT_KEY as _0x348953}from'@univerjs/docs-ui';import{BuiltInUIPart as _0xcc1654,ComponentManager as _0x2f6cfe,ContextMenuGroup as _0x15d011,ContextMenuPosition as _0x130606,FloatingObjectToolbarPosition as _0xe54cac,FormatPainterSessionService as _0x128469,IMenuManagerService as _0x867b4e,IRibbonService as _0x454476,ISidebarService as _0x60917c,IUIPartsService as _0x35439e,IconManager as _0x16de22,MenuItemType as _0x80d687,MenuManagerPosition as _0x18b81e,MobileMenu as _0x6ccfb9,ObjectPermissionButton as _0x7ed924,RibbonInsertGroup as _0x169de6,connectInjector as _0x4f06fa,getMenuHiddenObservable as _0x3b476c,useDependency as _0x2c5b17,useObservable as _0x291a35}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x303ee9,DEFAULT_DOC_SHAPE_WIDTH as _0x4a0d43,DocShapeAnchorPosition as _0x4f5378,DocsShapeService as _0x36af82,InsertDocShapeCommand as _0xbe5f5b,UniverDocsShapePlugin as _0x2d499a,UpdateDocDrawingMetadataCommand as _0x4541aa,UpdateDocShapeDataCommand as _0x45ff60,UpdateDocShapeDataMutation as _0x493300}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2c3528,ShapeArrowSizeEnum as _0x49e0aa,ShapeArrowTypeEnum as _0xec48d5,ShapeDefaultConfig as _0x5d831c,ShapeFillEnum as _0x32374d,ShapeLineTypeEnum as _0x2f6ee5,ShapeModel as _0x142a4d,ShapeRenderModeEnum as _0x40d6a8,ShapeTextAutoFitType as _0x4d280d,ShapeTypeEnum as _0x18c5ac,isConnectorShape as _0x1c9494,resolveShapeTextBodyBehavior as _0x4bf978}from'@univerjs-pro/engine-shape';function _0x5727(){const _0xaa3067=['docs-shape-ui.shape-format.style-ribbon-control','isHorizontal','shape-editor-ui.arrange.front','decorate','height','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','drawing-ui.objectListPanel.moveBackward','moveRange','1348911PplrtU','Path','docs-shape-ui.quickStyles','wrapStrategy','50IDNGBM','adjHandleFill','angle','onDblclick$','_adjustPointObjects','width','square','backward','presetId','docs-shape-ui.shape-format.quick-style-gallery','attachPopupToObject','drawing-ui.objectListPanel.unlockAll','getDrawingOrder','actions','_canEditShape','TRUE','cancelEditing','order','_drawSimpleText','#3B82F6','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','layoutType','top-bottom','_closeShapeEditPanel','pick','0.8','getFocusDrawings','_drawingManagerService','_toVisualAdjustPoint','refreshTransform$','getImageSourceCache','restore','getDrawingData','univer-grid\x20univer-gap-3','SHAPE','renderDrawingShape','data','getShapeDataById','_ribbonService','add$','docs-shape-ui.objectListPanel.open','drawings','label','hideInfoPopup','setShapeData','getInverseCoord','DocsShapeWrapInFrontOfTextIcon','getRenderUnitById','front','_init','get','drawing-ui.objectListPanel.description','_adjHandlerPointerUp','clipByShape','DocumentEntity','_baseShapeHeight','isMainScene','doc','registerComponent','DRAWING_SHAPE','segmentId','version','doc.operation.update-shape-type','currentAdjustValues','getActiveTextRange','_props','params','showContextualTab','canDispose','parent','_draw','126552fEwFQi','src','resize','classType','getRealBound','panel','symbol','find','max','getPresentation','_docsShapeService','custom','onPointerMove$','setEditing','SpAutoFit','startIndex','focus$','_updateAdjustControlPositions','docs-shape-ui.crop.shape','spaceBelowApply','getState','permissionPointUpdate$','prototype','popup','doc.image-clip.shape-picker.component','getParent','docs-shape-ui.ribbon.shape-format.arrange-back','drawing-ui.objectListPanel.descriptionPlaceholder','_hyperLinkRegions','_docCanvasPopManagerService','unitId','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','clip-','value','_registerOperations','docs-shape-text-','beginPath','getObjectIncludeInGroup','oKey','doc.shape.text.float-menu','SHAPE_TEXT','getCurrentUnitOfType','offsetX','Arrow','shapeId','_toScenePoint','getUnit','_initPrinting','_update','fontFamily','visible','type','dispose','sheet.image-clip.shape-picker.component','LAYOUT','isDrawingObject','2391094zNdLRz','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','svg','onStarting','remove$','disableObjectsEvent','drawing-ui.objectListPanel.close','srcRect','getSelectedObjectMap','isRenderLinePointsMode','registerCommand','buildClipPath','_shapeTextEditingService','extensionGroups','flipX','_renderWithCache','back','getShapeData','_initUIPart','text','_context','_updateShape','DOCS_SHAPE_UI_PLUGIN','startOffset','registerClipDelegate','footerId','drawing-ui.objectListPanel.expand','paragraph','OFFSET','registerRenderModule','executeCommand','cells','isLineShape','_docDrawingShapeRenderController','flipY','DocsShapeWrapSquareIcon','set','_updateSrcRectByTransform','setFillImage','setContextValue','Rect','paragraphMenuPlacement','inline','_registerFloatingToolbar','getDrawingByParam','trim','_drawShapeText','icon','horizontal','_insertShapes','behindDoc','getContextValue','3GFEjDo','extraProps','_mobileEditorService','top-center','drawing-ui.objectListPanel.showAll','contentHeight','complete','refreshShapeFillImage','shapeModel','map','_config','_menuManagerService','.below','isInGroup','_applyFormulaAutoFitSize','_openShapeEditPanel','728666xxUMCG','_shapeId','_imageIoService','_getShapeInfo','updateContext','skeHeaders','getDrawingOKey','drawing-ui.objectListPanel.dragToReorder','_onSavingEditorData$','image','enableObjectsEvent','docs-shape-format-font-family-menu','getFocusedUnit','OTHERS','setPresentation','drawing-ui.objectListPanel.unlockHint','_disposePopupsByUnit','sectionFloating','763301UrJDgA','_baseShapeWidth','_completionFrame','getShapeTypeById','VIEW_MAIN','visible$','applyPoint','rect','88wTQRGg','size','DocsShapeWrapTopBottomIcon','onload','contentVerticalOffset','setOnSavingEditorData','_activeShapeModel','save','_configService','setCanUseShapeClip','refreshFormulaPresentation','stroke','onerror','vertical-center','PictureFill','sin','changeEnd$','getEditing','drawing-ui.objectListPanel.lockHint','12sUDNvo','SolidLine','3978308KgdMSX','getImage','adjHandleSize','docs-shape-ui.hidePanel','bottom','makeDirty','RIBBON','getViewports','transformVector2SceneCoord','Image','doc.operation.open-shape-object-list-panel','scene','sectionCanvas','_transform','onRendered','docs-shape-ui.textWrap.inline','doc.shape.floating-toolbar','_getActiveDrawingParam','_shapeFormulaService','Copy','includes','LEFT','docs-shape-ui.ribbon.shape-format.formula-control','function','adjName','_isShouldShowDrawingShapeAdjust','forward','pageWidth','values','getBody','getPageDrawingIds','string','0.14','OPERATION','left','skeFooters','isRichText','shape-editor-ui.arrange.forward','constructor','COMMAND','drawingType','setConfig','style','update$','_popupTargetKeys','clip','shapeText','transformByState','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_activeShapeInfo','GROUP','_getShapePopup','setSrcRect','UNIVER_SHEET','doc.shape.object-list.panel','object','isHit','5.5','_endLayoutInteraction','IN_FRONT_OF_TEXT','DRAWING_DOM','getTransformerByCreate','onCommandExecuted','subUnitId','menuRange','SELECTOR','drawing-ui.objectListPanel.filterLocked','default','offsetY','shapeKey','DocsShapeWrapInlineIcon','fallbackWidth','_isOpenedShapeEditPanel','behind','dataModel','_initSelection','actualHeight','BUTTON','docs-shape-ui.ribbon.shape-format.wrapping-style','stopPropagation','open','fillType','#2563EB','_injector','presentation','pluginName','univer-box-border\x20univer-px-4\x20univer-text-sm','_sidebarService','transform','docs-shape-ui.mobile.style','fill','rows','updateDocumentDataMargin','_clipService','add','getShapeType','resetCursor','drawing-ui.objectListPanel.unlock','getDrawingVisible','docs-shape-ui.textWrap.inFrontText','_instanceService','_urlImageService','doc.operation.open-doc-shape-format-panel','_contextService','forEach','render','_registerDrawingTransformHandler','_drawRichTextLayer','drawing-ui.objectListPanel.lockAll','interceptor','flatMap','_lastEditingShapeKey','getShapeTextData','docs-shape-ui.insertShape','packageName','register','componentKey','getSnapshot','asObservable','paragraphId','clear','intercept','resolveHyperLinkAt','animationEnabled','drawingId','drawing','WRAP_NONE','BottomIcon','_registerDrawingFocusChangeHandler','doc.command.menu-insert-shape','_loadShapePictureFill','has','call','getAllRenderersOfType','shape-editor-ui.arrange.back','drawing-ui.objectListPanel.details','_loadAndSetImage','_getDependencies','_componentManager','docs-shape-ui.textWrap.behindText','0\x200\x2020\x2020','shape-editor-ui.toolbar.changeShape','getShapeTextRect','_getSceneByUnitId','some','drawing-ui.objectListPanel.show','_activeShapeAdjustPointList','1.0.3','next','getSelfOrHeaderFooterModel','prstGeom','_iconManager','80QsXCqr','193571bEpYjn','WRAP_TOP_AND_BOTTOM','endOffset','docs-shape-ui.objectListPanel.title','close','featurePluginUpdateNotification','getDrawingSearch','disposeWithMe','round','_transformCalculateSrcRect','TOP','addObject','drawing-ui.objectListPanel.sectionFloating','_univerInstanceService','marginTop','_canEdit','drawing-ui.objectListPanel.title','_baseShapeTop','_layoutInteraction','isHitLine','_clearShapeAdjustControls','_commandService','push','hideContextualTab','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','docs-shape-ui.textWrap.topAndBottom','isEditing','_formulaAnimation','description','below','length','clearControl$','_shapeFloatingToolbarService','formulaPresentation','currentColor','unregister','Line','getDrawingEffectBounds','skeTables','_docPrintInterceptorService','drawing-ui.objectListPanel.hide','getShapeModel','clipHeight','create','_formulaKey','doc.shape.edit.panel','changing$','subscribe','drawing-ui.objectListPanel.sectionCanvas','_adjHandlerPointerMove','UNIVER_DOC','doc.shape.picker.component','getAutoFitPresentations','_activeAdjustInfo','getDrawingDataForUnit','docs-shape-ui.ribbon.shape-format.style-control','name','_getShapeAdjustPointListById','indexOf','getTransformer','headerId','_registerPickers','getDrawingPoints','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_releaseRenderCache','PaintIcon','setAdjustValueByName','docs-shape-ui.mobile.delete','drawing-ui.objectListPanel.typeNames.','getShapePopupMenus','cos','keys','pages','focusDrawing','top','getSkeletonData','onPointerUp$','translateWithPrecision','path','docs-shape-ui.deleteShape','span','shape-editor-ui.toolbar.quickStyles','getCurrentTypeOfUnit$','formulaBinding','UUID','_getShapeAdjustInfosById','_initMenu','transformForAngle','MoveUpIcon','DocsShapeTextEditorContainer','completeEditing','getActiveViewportByCoord','_updateShapeAdjustControls','setFormulaPresentation','endArrow','startArrow','_setTransForm','ShapeIcon','shape-text-','setPrstGeom','shapeType','editingParams$','_adjName','_baseShapeLeft','INLINE','_sidebarDisposable','setShapeProps','color','filter','SolidFill','getInterceptPoints','_editingParams$','getUnitId','composeMatrix','getValue','animateFormulaPresentation','getVisible','entries','getAdjustInfoByName','docs-shape-ui.shape-format.formula-ribbon-control','docs-shape-ui.ribbon.shape-format.arrange-front','behindText','_getDisposePopups','_shapeEditPanelVersion','updateShapeFillImage','fillImageSource','disableShapeOption','-layout','subscribeEvent','target','_drawRichText','setCursor','_hide','drawing-ui.objectListPanel.moveForward','getMatrix','drawing-ui.objectListPanel.noSelection','_getFocusedShapeAtPoint','docs-shape-ui.openPanel','canvas','engine','_registerObjectListPanel','current','_getActiveDrawingShape','div','with','_renderManagerService','_registerIcons','getDrawingEditable','docs-shape-ui.textWrap.square','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','error','1.2','_visible','1em','localeService','onSavingEditorData$','reduce','defineProperty','onReady','changeStart$','_registerComponents','_popupMenuListener','warn','_subUnitId','_getRenderModules','getUnitType','draw','clipTop','setCollapsedIds','FromArray','refreshAdjustControls','WRAP_SQUARE','getCanvasElement','_docLayoutInteractionService','attachTransformerTo','ObjectLayersIcon','doc-shape-adjust-point-','skeDrawings','unsubscribe','shapeData','doc.operation.close-doc-shape-format-panel','_createShapeAdjustControls','invert','getAdjustValueByName','splice','delete','pipe','_unitId','_handleCreateControl','syncExecuteCommand','_initialize','calcAdjValues','docs-shape-ui.ribbon.shape-format.text-control','calculate','_activeShapeId','createControl$','_isStartAdjusting','_permissionService','_shapeRenderController','_clearCompletionFrame','DRAWING_IMAGE','CONTENT','context-bar','getActualSize','TopmostIcon','selectable','BEHIND_TEXT','docs-shape-ui.formatShape','_refreshShapeData','_initCommands','title','_clearPopups','objects','strokeWidth','_formulaShapes','_localeService','ShapeFormatSettingIcon','viewBound','setFallbackVisible','MoveDownIcon'];_0x5727=function(){return _0xaa3067;};return _0x5727();}import{ShapeFormulaService as _0x184033,UniverShapeEditorPlugin as _0x17866d,applyQuickStyleToShapeData as _0x23cb6b,cloneShapeDataForType as _0x11a9b5,createShapeFormulaDocument as _0x316dd3,createShapeTextBoxShapeData as _0x506c52,getShapeQuickStylePreset as _0x5d2fab,getShapeQuickStyleType as _0x4a3830,resolveActiveShapeQuickStylePresetId as _0x60290e}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x3c626a,BooleanNumber as _0x16c0b3,CommandType as _0x443e82,DependentOn as _0x3e509d,Disposable as _0x47cfe0,DisposableCollection as _0x4f92f4,DocumentDataModel as _0x320bf5,DrawingTypeEnum as _0x507337,FOCUSING_COMMON_DRAWINGS as _0x6e7cbb,FOCUSING_SHAPE_TEXT_EDITOR as _0x58fefd,HorizontalAlign as _0x22763e,ICommandService as _0x4e68a9,IConfigService as _0x12f4ed,IContextService as _0x244f46,IImageIoService as _0x9eb47c,IPermissionService as _0x52503b,IURLImageService as _0x501ca3,IUniverInstanceService as _0x97a100,Inject as _0x4e047b,Injector as _0x27c23b,LocaleService as _0xe303eb,Plugin as _0x3dcd10,PositionedObjectLayoutType as _0x1fafc0,UniverInstanceType as _0x1b3194,VerticalAlign as _0x4bcf3d,createInternalEditorID as _0x303f18,generateRandomId as _0x42095d,getParagraphContentStartOffset as _0x2f7fdc,merge as _0x504bfd,registerDependencies as _0x5ee79c,toDisposable as _0x35b1c9,touchDependencies as _0x28e47e}from'@univerjs/core';import{DocInterceptorService as _0x3d1cb9,DocSelectionManagerService as _0x4eb510,RichTextEditingMutation as _0x505338,SetDocumentPermissionCommand as _0x21ace8,UniverDocsPlugin as _0x408d49,canEditDocumentTargets as _0x33aa98,getDocumentDrawingSegmentId as _0x502f97,getDocumentEntityParentPermissionObjectIds as _0x57f81a,getDocumentEntityPermissionObjectId as _0x4ecdaa,getDocumentPermissionValue as _0x56d289}from'@univerjs/docs';import{IDocDrawingService as _0x15a612,RemoveDocDrawingCommand as _0x5bac08,SetDocDrawingArrangeCommand as _0x51e9f9,TextWrappingStyle as _0x2db77a,UpdateDocDrawingWrappingStyleCommand as _0x3e0463,UpdateDrawingDocTransformCommand as _0x457e80}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x29a1b3,Circle as _0x2c973b,DRAWING_OBJECT_LAYER_INDEX as _0x2958d1,DocumentSkeleton as _0x51294b,DocumentViewModel as _0x74ae6b,Documents as _0x159cfc,IRenderManagerService as _0x2de7f2,RENDER_CLASS_TYPE as _0x23ec4c,Shape as _0x58cf13,Transform as _0x416f20,UniverRenderEnginePlugin as _0x5797e3,Vector2 as _0x22f150,getLastLine as _0x54e01c,setDocsCustomBlockRenderViewportProvider as _0x145692}from'@univerjs/engine-render';import{IDrawingManagerService as _0x5e0832,SetDrawingSelectedOperation as _0x3eea09,UniverDrawingPlugin as _0x47a564,getDrawingShapeKeyByDrawingSearch as _0x4dbb43}from'@univerjs/drawing';import{DrawingCommonPanel as _0x314a33,DrawingImageClipService as _0x421fa3,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x10fa33,MobileObjectListPanel as _0x1c1392,OBJECT_LIST_FLOATING_SECTION_ID as _0x218ad6,ObjectListPanelBase as _0x3aafaf,UniverDrawingMobileUIPlugin as _0x64eb9d,UniverDrawingUIPlugin as _0x56cb01,getObjectListPanelSectionIdForDrawingType as _0x3c3b87,insertGroupObject as _0x3cac50}from'@univerjs/drawing-ui';import{Fragment as _0x488761,jsx as _0x3ae1d4,jsxs as _0x3f77f7}from'react/jsx-runtime';import{BehaviorSubject as _0x1e3b2d,Observable as _0x5eb731,distinctUntilChanged as _0x21b986,map as _0x456f26,merge as _0x50281f,of as _0x3b3dbe,startWith as _0xc4c7f}from'rxjs';import{UniverLicensePlugin as _0x2270d5}from'@univerjs-pro/license';import{DocDrawingPosition as _0x4b41dd,DocDrawingTextWrap as _0x297d86,MobileDocDrawingPosition as _0x3c7de0,MobileDocDrawingTextWrap as _0x1b9c40,UniverDocsDrawingMobileUIPlugin as _0x1fbb81,UniverDocsDrawingUIPlugin as _0x403f8a}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x191e47,MoreDownIcon as _0x5e6b79,MoreUpIcon as _0x5250f0,MoveDownIcon as _0x54d043,MoveUpIcon as _0x42135f,ObjectLayersIcon as _0x11cff1,ShapeFormatSettingIcon as _0x3eea86,TextWrapShapeIcon as _0x58b7bb,TopmostIcon as _0x3f3ea3}from'@univerjs/icons';import{MobileActionRow as _0x53dacb}from'@univerjs/design';import{memo as _0xfc0b1e,useEffect as _0x25db27,useMemo as _0x25a507,useReducer as _0x144fd5,useState as _0x32384b}from'react';import{UnitAction as _0x472897,UnitObject as _0x43baa7}from'@univerjs/protocol';function _0x56ec(_0x1bcb20,_0x4e8497){_0x1bcb20=_0x1bcb20-0x9a;const _0x572750=_0x5727();let _0x56ec06=_0x572750[_0x1bcb20];return _0x56ec06;}function wr(_0x5d432b,_0x45de07){const _0x176f1f=_0x56ec;if(_0x45de07){if(_0x1c9494(_0x5d432b)&&(_0x45de07[_0x176f1f(0xf4)]||_0x45de07[_0x176f1f(0xf3)]))return{'ln':{'startArrow':_0x45de07[_0x176f1f(0xf4)]?{'type':_0xec48d5[_0x176f1f(0x1ef)],'size':_0x49e0aa['Medium']}:void 0x0,'endArrow':_0x45de07['endArrow']?{'type':_0xec48d5[_0x176f1f(0x1ef)],'size':_0x49e0aa['Large']}:void 0x0}};if(_0x5d432b===_0x18c5ac[_0x176f1f(0x224)]&&(_0x45de07[_0x176f1f(0x22c)]||_0x45de07['vertical']))return _0x506c52({'fill':{'fillType':_0x32374d[_0x176f1f(0x102)],'color':_0x176f1f(0x190)},'isHorizontal':!!_0x45de07['horizontal'],'stroke':{'lineStrokeType':_0x2f6ee5[_0x176f1f(0x26e)],'width':0x1,'color':_0x176f1f(0x2c1)}});}}function Tr(_0x26a5e4,_0x31709c){const _0x553e1f=_0x56ec;var _0xb6be94;let _0x81a26a=_0x31709c['segmentId']??'',_0x4cd77e=(_0xb6be94=_0x26a5e4[_0x553e1f(0x304)](_0x81a26a))==null?void 0x0:_0xb6be94[_0x553e1f(0x28c)]();if(!_0x4cd77e)return null;let _0x356b19=_0x4cd77e['paragraphs']??[],_0x2c0f25=_0x356b19[_0x553e1f(0x1cb)](_0x1f6c97=>{const _0x1b9028=_0x553e1f;let _0x1207e2=_0x2f7fdc(_0x4cd77e,_0x1f6c97);return _0x31709c['startOffset']>=_0x1207e2&&_0x31709c['startOffset']<=_0x1f6c97[_0x1b9028(0x1d3)];})??_0x356b19[_0x356b19[_0x553e1f(0xb3)]-0x1];return _0x2c0f25?{'paragraphId':_0x2c0f25[_0x553e1f(0x2e6)],'segmentId':_0x81a26a,'position':_0x4f5378[_0x553e1f(0x218)],'offset':_0x31709c[_0x553e1f(0x213)]-_0x2f7fdc(_0x4cd77e,_0x2c0f25)}:null;}function Er(_0x4b90e2,_0x332e36,_0x4ae7c6){const _0x99e92c=_0x56ec;var _0x338141,_0x364101;if(!_0x4ae7c6)return null;let _0x391b49=(_0x338141=_0x4b90e2[_0x99e92c(0x1af)](_0x2de7f2)[_0x99e92c(0x1ac)](_0x332e36))==null?void 0x0:_0x338141[_0x99e92c(0x125)](_0x250f54)['activeTarget'];if(!_0x391b49)return null;let _0x258cae=_0x4ae7c6===_0x99e92c(0xb2)?{'startOffset':_0x391b49[_0x99e92c(0x178)][_0x99e92c(0x30a)],'endOffset':_0x391b49[_0x99e92c(0x178)][_0x99e92c(0x30a)]}:_0x391b49[_0x99e92c(0x2af)];return{'startOffset':_0x258cae[_0x99e92c(0x213)],'endOffset':_0x258cae[_0x99e92c(0x30a)],'collapsed':_0x258cae[_0x99e92c(0x213)]===_0x258cae[_0x99e92c(0x30a)],'segmentId':((_0x364101=_0x391b49[_0x99e92c(0x217)])==null?void 0x0:_0x364101[_0x99e92c(0x1b9)])??''};}const U={'type':_0x443e82[_0xb07969(0x296)],'id':_0xb07969(0x2f0),'handler':async(_0x5f1ae8,_0x477512)=>{const _0x4a1d7b=_0xb07969;let _0x13779c=_0x5f1ae8['get'](_0x97a100)[_0x4a1d7b(0x1ed)](_0x1b3194[_0x4a1d7b(0xc7)]);if(!_0x13779c)return!0x1;let _0xb08d07=_0x5f1ae8[_0x4a1d7b(0x1af)](_0x4e68a9),_0x27780b=_0x13779c['getUnitId'](),_0xdf24d=_0x477512[_0x4a1d7b(0x1f0)]??_0x42095d(),_0x389fbf=_0x477512[_0x4a1d7b(0x182)]??_0x4a0d43,_0x28c245=_0x477512['height']??_0x303ee9,_0x441ba1=_0x477512['shapeData']??wr(_0x477512[_0x4a1d7b(0x1e5)],_0x477512['enhanceParams']),_0x54e49e=Er(_0x5f1ae8,_0x27780b,_0x477512[_0x4a1d7b(0x225)])??_0x5f1ae8[_0x4a1d7b(0x1af)](_0x4eb510)[_0x4a1d7b(0x1bd)]();if(!_0x54e49e)return!0x1;let _0x2c4efa=Tr(_0x13779c,_0x54e49e);return _0x2c4efa?!!_0xb08d07[_0x4a1d7b(0x152)](_0xbe5f5b['id'],{'unitId':_0x27780b,'shapeId':_0xdf24d,'shapeType':_0x477512[_0x4a1d7b(0x1e5)],'shapeData':_0x441ba1,'transform':{'width':_0x389fbf,'height':_0x28c245},'placement':{'wrappingStyle':_0x2db77a['INLINE'],'anchor':_0x2c4efa}}):!0x1;}},W=_0xb07969(0xc2),Dr='docs-shape-ui.ribbon.shape-format',Or=_0xb07969(0x2a5),kr=_0x303f18(_0xb07969(0x1ec)),Ar=_0xb07969(0x1eb),jr=_0xb07969(0xee),Mr={'id':_0xb07969(0x279),'type':_0x443e82['COMMAND'],'handler':(_0x33df8d,_0x5c22ef)=>{const _0xc3a0ad=_0xb07969;let _0x526598=_0x33df8d[_0xc3a0ad(0x1af)](_0x60917c),_0x5ae547=_0x33df8d[_0xc3a0ad(0x1af)](_0xe303eb),_0x2fd6e1=_0x33df8d[_0xc3a0ad(0x1af)](_0x5e0832);return(_0x5c22ef==null?void 0x0:_0x5c22ef[_0xc3a0ad(0x1e5)])==='close'?(_0x526598[_0xc3a0ad(0x30c)](Or),!0x0):(_0x526598[_0xc3a0ad(0x2bf)]({'id':Or,'header':{'title':_0x5ae547['t'](_0xc3a0ad(0x30b))},'children':{'label':Or},'onClose':()=>{const _0x4d2691=_0xc3a0ad;_0x2fd6e1[_0x4d2691(0xde)](null);},'width':0x168}),!0x0);}},G={'type':_0x443e82[_0xb07969(0x290)],'id':_0xb07969(0x2d5),'handler'(){return!0x0;}};function Nr(_0x20c6bd){const _0x2d8469=_0xb07969;let _0x314f6a=_0x20c6bd[_0x2d8469(0x1af)](_0x5e0832)[_0x2d8469(0x197)](),_0x4f2a03=_0x314f6a[_0x2d8469(0xb3)]===0x1?_0x314f6a[0x0]:null;if(!_0x4f2a03||_0x4f2a03[_0x2d8469(0x297)]!==_0x507337['DRAWING_SHAPE'])return null;let _0x4a5916=_0x20c6bd[_0x2d8469(0x1af)](_0x36af82),_0x38f171=_0x4a5916[_0x2d8469(0x255)](_0x4f2a03['unitId'],_0x4f2a03['subUnitId'],_0x4f2a03['drawingId']),_0x3fa244=_0x4a5916[_0x2d8469(0x1a2)](_0x4f2a03['unitId'],_0x4f2a03[_0x2d8469(0x2ae)],_0x4f2a03['drawingId']);return _0x38f171===void 0x0||!_0x3fa244?null:{'drawing':_0x4f2a03,'shapeData':_0x3fa244,'shapeType':_0x38f171};}const Pr={'id':'doc.operation.apply-shape-quick-style','type':_0x443e82[_0xb07969(0x290)],'handler':(_0x1c4afc,_0x2f9f21)=>{const _0x37ed84=_0xb07969;let _0x480a16=Nr(_0x1c4afc),_0x331137=_0x5d2fab((_0x2f9f21==null?void 0x0:_0x2f9f21[_0x37ed84(0x185)])??(_0x2f9f21==null?void 0x0:_0x2f9f21['value'])??'');if(!_0x480a16||!_0x331137||_0x331137['type']!==_0x4a3830(_0x480a16[_0x37ed84(0x148)]))return!0x1;let _0x51bcbd=_0x23cb6b(_0x480a16[_0x37ed84(0x148)],_0x331137);if(!_0x51bcbd)return!0x1;let {drawing:_0x2b92a7}=_0x480a16;return _0x1c4afc['get'](_0x4e68a9)['executeCommand'](_0x45ff60['id'],{'unitId':_0x2b92a7[_0x37ed84(0x1e2)],'shapeId':_0x2b92a7[_0x37ed84(0x2eb)],'shapeData':_0x51bcbd,'oldShapeJSON':{'oldShapeData':_0x480a16[_0x37ed84(0x148)]}});}},Fr={'id':_0xb07969(0x1bb),'type':_0x443e82[_0xb07969(0x290)],'handler':(_0x59bc77,_0x5d91c2)=>{const _0x256b9d=_0xb07969;let _0x4826b2=Nr(_0x59bc77),_0x250f48=(_0x5d91c2==null?void 0x0:_0x5d91c2[_0x256b9d(0xf9)])??(_0x5d91c2==null?void 0x0:_0x5d91c2[_0x256b9d(0x1e5)]);if(!_0x4826b2||!_0x250f48||_0x1c9494(_0x4826b2[_0x256b9d(0xf9)])||_0x1c9494(_0x250f48))return!0x1;let _0x58385e=_0x11a9b5(_0x4826b2['shapeData'],_0x250f48);if(!_0x58385e)return!0x1;let {drawing:_0x47fbfb}=_0x4826b2;return _0x59bc77[_0x256b9d(0x1af)](_0x4e68a9)[_0x256b9d(0x21a)](_0x45ff60['id'],{'unitId':_0x47fbfb['unitId'],'shapeId':_0x47fbfb[_0x256b9d(0x2eb)],'shapeType':_0x250f48,'shapeData':_0x58385e,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x4826b2[_0x256b9d(0xf9)],'oldShapeData':_0x4826b2[_0x256b9d(0x148)]}});}};function K(_0x3c8313,_0x5723a1){return function(_0x4a374e,_0x40771c){_0x5723a1(_0x4a374e,_0x40771c,_0x3c8313);};}function q(_0x4beed9,_0x28aa55,_0x3860bb,_0x3baa85){const _0x17edb7=_0xb07969;var _0x4efef7=arguments['length'],_0x1c589b=_0x4efef7<0x3?_0x28aa55:_0x3baa85===null?_0x3baa85=Object['getOwnPropertyDescriptor'](_0x28aa55,_0x3860bb):_0x3baa85,_0x30ca3a;if(typeof Reflect==_0x17edb7(0x2a6)&&typeof Reflect['decorate']==_0x17edb7(0x286))_0x1c589b=Reflect[_0x17edb7(0x174)](_0x4beed9,_0x28aa55,_0x3860bb,_0x3baa85);else{for(var _0x11f906=_0x4beed9[_0x17edb7(0xb3)]-0x1;_0x11f906>=0x0;_0x11f906--)(_0x30ca3a=_0x4beed9[_0x11f906])&&(_0x1c589b=(_0x4efef7<0x3?_0x30ca3a(_0x1c589b):_0x4efef7>0x3?_0x30ca3a(_0x28aa55,_0x3860bb,_0x1c589b):_0x30ca3a(_0x28aa55,_0x3860bb))||_0x1c589b);}return _0x4efef7>0x3&&_0x1c589b&&Object[_0x17edb7(0x132)](_0x28aa55,_0x3860bb,_0x1c589b),_0x1c589b;}let J=class extends _0x47cfe0{constructor(_0x169c0b,_0x1626bc){const _0x34c1fc=_0xb07969;super(),this[_0x34c1fc(0x2cc)]=_0x169c0b,this[_0x34c1fc(0x198)]=_0x1626bc,this['_registerImageShapeClipDelegate'](),this[_0x34c1fc(0x2cc)][_0x34c1fc(0x263)](!0x0),this[_0x34c1fc(0x9c)]({'dispose':()=>this[_0x34c1fc(0x2cc)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x337215=_0xb07969;let _0x9cd2e2=new Map(),_0x2b20fa=this[_0x337215(0x2cc)][_0x337215(0x214)]((_0x2aacce,_0x51c7cf,_0xf77202,_0x3f4eed,_0x3b79fb)=>{const _0x1fff60=_0x337215;let _0x562fb8=_0x51c7cf;if(_0x562fb8===_0x18c5ac['None']||_0x51c7cf===_0x1fff60(0x1cf))return!0x1;try{let _0x2157dc=_0x9cd2e2['get'](_0x51c7cf);return _0x2157dc||(_0x2157dc=new _0x142a4d(_0x562fb8,_0x1fff60(0x1e4)+_0x51c7cf),_0x9cd2e2['set'](_0x51c7cf,_0x2157dc)),_0x2157dc['clearAdjustValue'](),_0x3b79fb&&Object[_0x1fff60(0xdc)](_0x3b79fb)[_0x1fff60(0xb3)]>0x0&&_0x2157dc[_0x1fff60(0x1a9)]({'adjustValues':_0x3b79fb},!0x0),_0x2157dc[_0x1fff60(0x244)]({'width':_0xf77202,'height':_0x3f4eed}),_0x2157dc[_0x1fff60(0x207)](_0x2aacce,{'left':0x0,'top':0x0,'width':_0xf77202,'height':_0x3f4eed});}catch{return!0x1;}});this[_0x337215(0x9c)](_0x2b20fa),this[_0x337215(0x9c)]({'dispose':()=>_0x9cd2e2[_0x337215(0x2e7)]()});}[_0xb07969(0x1b2)](_0x1c0b91,_0x997e84,_0xcc42fc,_0x3e6df7,_0x637a3b){const _0x56929b=_0xb07969;let _0x4ea002=this[_0x56929b(0x198)][_0x56929b(0x19d)](_0x1c0b91,_0x997e84)[_0xcc42fc];_0x4ea002&&_0x4ea002[_0x56929b(0x297)]===_0x507337[_0x56929b(0x15d)]&&this['_drawingManagerService'][_0x56929b(0x9a)]([{..._0x4ea002,'prstGeom':_0x3e6df7,'adjustValues':_0x637a3b}]);}};J=q([K(0x0,_0x4e047b(_0x421fa3)),K(0x1,_0x4e047b(_0x5e0832))],J);const Ir=_0xb07969(0xc8),Lr=_0xb07969(0x1dc);function Rr({onShapeClick:_0x4825d1,excludeGroups:_0x7a40ba}){const _0x46748d=_0xb07969;return _0x3ae1d4(_0x18a741,{'excludeGroups':_0x7a40ba,'onShapeClick':_0x4825d1,'scrollContainer':_0x46748d(0x1c2)});}function zr(){let _0x3cd390=_0x2c5b17(_0x5e0832),_0x1036d7=_0x2c5b17(J);return _0x31c7a8=>{const _0x19cc98=_0x56ec;let _0x37fd53=_0x3cd390[_0x19cc98(0x197)]()['find'](_0x29cab9=>_0x29cab9['drawingType']===_0x507337[_0x19cc98(0x15d)]);_0x37fd53&&_0x1036d7['clipByShape'](_0x37fd53[_0x19cc98(0x1e2)],_0x37fd53['subUnitId'],_0x37fd53[_0x19cc98(0x2eb)],_0x31c7a8[_0x19cc98(0x1f7)]);};}function Br(){const _0x1a7076=_0xb07969;let _0x4ee574=zr();return _0x3ae1d4(_0x406cd8,{'buttonLabel':_0x1a7076(0x1d6),'excludeGroups':[_0x4d18eb[_0x1a7076(0xb9)]],'onShapeClick':_0x4ee574});}function Vr(){const _0x329064=_0xb07969;let _0x22be19=_0x2c5b17(_0x2f6cfe),_0x30f968=_0x2c5b17(_0x5e0832),_0x5c2275=_0x2c5b17(_0x97a100),_0x4880ab=_0x30f968[_0x329064(0x197)]()[0x0],_0x1a2bcc=_0x4880ab?_0x5c2275[_0x329064(0x13a)](_0x4880ab[_0x329064(0x1e2)]):void 0x0,_0x2eb748=_0x1a2bcc===_0x1b3194[_0x329064(0xc7)]?Lr:_0x1a2bcc===_0x1b3194[_0x329064(0x2a4)]?_0x329064(0x1f9):void 0x0,_0x55735f=_0x2eb748?_0x22be19[_0x329064(0x1af)](_0x2eb748):void 0x0;return _0x55735f?_0x3ae1d4(_0x55735f,{}):null;}function Hr({paragraphMenuPlacement:_0x2930e2,PickerComponent:_0xbb534b=Rr}){let _0x4f36f8=_0x2c5b17(_0x4e68a9);return _0x3ae1d4(_0xbb534b,{'onShapeClick':_0x104b0f=>{const _0x1bff1c=_0x56ec;_0x4f36f8[_0x1bff1c(0x21a)](U['id'],{'paragraphMenuPlacement':_0x2930e2,'value':_0x104b0f['type'],'enhanceParams':{'endArrow':_0x104b0f['endArrow'],'startArrow':_0x104b0f['startArrow'],'horizontal':_0x104b0f[_0x1bff1c(0x22c)],'vertical':_0x104b0f['vertical']}});}});}function Ur(_0x5b87dc){const _0x4e0c35=_0xb07969;return _0x42c353=>({'id':U['id'],'type':_0x80d687[_0x4e0c35(0x2b0)],'selections':[{'label':{'name':Ir,'hoverable':!0x1,'selectable':!0x1,'props':_0x5b87dc?{'id':U['id'],'paragraphMenuPlacement':_0x5b87dc}:{'id':U['id']}}}],'icon':_0x4e0c35(0xf6),'title':_0x4e0c35(0x2e0),'tooltip':_0x4e0c35(0x2e0),'hidden$':_0x3b476c(_0x42c353,_0x1b3194['UNIVER_DOC'])});}const Wr=Ur(),Gr=Ur(_0xb07969(0xb2)),Kr=Ur(_0xb07969(0x116));function qr(_0x2abec5){const _0x474fff=_0xb07969;return{'id':Mr['id'],'type':_0x80d687[_0x474fff(0x2bc)],'icon':'ObjectLayersIcon','title':_0x474fff(0x1a5),'tooltip':_0x474fff(0x1a5),'hidden$':_0x3b476c(_0x2abec5,_0x1b3194[_0x474fff(0xc7)])};}function Jr(_0x158cc9,_0x3c5ad9,_0x123f2a,_0x55f1cf,_0x14842e,_0x23f9e2){let _0x30b6fc={'unitId':_0x3c5ad9,'shapeId':_0x55f1cf,'shapeData':_0x23f9e2,'oldShapeJSON':_0x14842e};return _0x158cc9['executeCommand'](_0x45ff60['id'],_0x30b6fc);}function Yr(_0x32cf67,_0x1a9958,_0x158061,_0x28c83b,_0x9471c9,_0x3c2e48){const _0x7a5fce=_0xb07969;let _0x3827a5={'unitId':_0x1a9958,'shapeId':_0x28c83b,'shapeData':_0x3c2e48,'oldShapeJSON':_0x9471c9};return _0x32cf67[_0x7a5fce(0x21a)](_0x45ff60['id'],_0x3827a5);}const Xr=_0xb07969(0x186),Zr=_0xb07969(0x171),Qr='docs-shape-ui.shape-format.text-ribbon-control',$r=_0xb07969(0x10c),ei='docs-shape-ui.shape-format.wrapping-style-label',ti=[{'value':_0x2db77a[_0xb07969(0xfd)],'label':_0xb07969(0x27e),'icon':_0xb07969(0x2b5)},{'value':_0x2db77a[_0xb07969(0x140)],'label':'docs-shape-ui.textWrap.square','icon':_0xb07969(0x21f)},{'value':_0x2db77a['WRAP_TOP_AND_BOTTOM'],'label':_0xb07969(0xae),'icon':_0xb07969(0x25c)},{'value':_0x2db77a[_0xb07969(0x163)],'label':_0xb07969(0x2fa),'icon':'DocsShapeWrapBehindTextIcon'},{'value':_0x2db77a['IN_FRONT_OF_TEXT'],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0xb07969(0x1ab)}];function ni(){let _0x345da8=_0x2c5b17(_0x4e68a9),_0x2f463f=_0x2c5b17(_0x5e0832),_0x424866=_0x2c5b17(_0x36af82),_0x24188e=()=>{const _0x44cd98=_0x56ec;var _0x45a37a;let _0x287ca1=_0x2f463f[_0x44cd98(0x197)]();if(_0x287ca1['length']!==0x1||((_0x45a37a=_0x287ca1[0x0])==null?void 0x0:_0x45a37a['drawingType'])!==_0x507337['DRAWING_SHAPE'])return null;let {unitId:_0x1576dc,subUnitId:_0x4a6be9,drawingId:_0x480ebd}=_0x287ca1[0x0],_0x4dc36a=_0x424866[_0x44cd98(0x255)](_0x1576dc,_0x4a6be9,_0x480ebd),_0xebfb49=_0x424866[_0x44cd98(0x1a2)](_0x1576dc,_0x4a6be9,_0x480ebd);return _0x4dc36a===void 0x0||!_0xebfb49?null:{'unitId':_0x1576dc,'subUnitId':_0x4a6be9,'drawingId':_0x480ebd,'shapeType':_0x4dc36a,'shapeData':_0xebfb49};},_0x13aa1a=_0x291a35(()=>new _0x5eb731(_0x104938=>{const _0x36d383=_0x56ec;let _0x2afa95=()=>_0x104938[_0x36d383(0x303)](_0x24188e()),_0x35656e=_0x2f463f[_0x36d383(0x1d4)][_0x36d383(0xc4)](_0x2afa95),_0x17596c=_0x345da8[_0x36d383(0x2ad)](_0x12f82b=>{_0x12f82b['id']===_0x493300['id']&&_0x2afa95();});return _0x2afa95(),()=>{const _0x19c6d8=_0x36d383;_0x35656e['unsubscribe'](),_0x17596c[_0x19c6d8(0x1f8)]();};}),_0x24188e(),!0x1,[_0x345da8,_0x424866,_0x2f463f]);return{'selection':_0x13aa1a,'updateShapeData':_0x54a2a0=>{const _0x50b5c0=_0x56ec;_0x13aa1a&&Jr(_0x345da8,_0x13aa1a[_0x50b5c0(0x1e2)],_0x13aa1a[_0x50b5c0(0x2ae)],_0x13aa1a[_0x50b5c0(0x2eb)],{'oldShapeData':_0x13aa1a[_0x50b5c0(0x148)]},_0x54a2a0);}};}function ri(){const _0xebab98=_0xb07969;let {selection:_0x17b6f1,updateShapeData:_0x5e83e4}=ni();return _0x17b6f1?_0x3ae1d4(_0x329e07,{'shapeData':_0x17b6f1['shapeData'],'shapeType':_0x17b6f1[_0xebab98(0xf9)],'onUpdateShapeData':_0x5e83e4}):null;}function ii(){const _0x3c8536=_0xb07969;let _0x5e584e=_0x2c5b17(_0x4e68a9),_0x447007=_0x2c5b17(_0xe303eb),{selection:_0x346ea1}=ni();return _0x346ea1?_0x3ae1d4(_0xaf4c0c,{'type':_0x4a3830(_0x346ea1[_0x3c8536(0x148)]),'ariaLabel':_0x447007['t'](_0x3c8536(0x17b)),'activePresetId':_0x60290e(_0x346ea1['shapeData']),'onSelect':_0x5f4d9b=>_0x5e584e[_0x3c8536(0x21a)](Pr['id'],{'presetId':_0x5f4d9b})}):null;}function ai(){const _0x53b9be=_0xb07969;let {selection:_0x7a8ce8,updateShapeData:_0xe192c}=ni();return _0x7a8ce8?_0x3ae1d4(_0x2e3acf,{'fontFamilyPopupDataComponent':_0x53b9be(0x24b),'shapeData':_0x7a8ce8['shapeData'],'onUpdateShapeData':_0xe192c}):null;}function oi(){const _0x4f0f80=_0xb07969;var _0x4dfbce;let {selection:_0x1b8b03,updateShapeData:_0x14e541}=ni(),_0x6cbfd8=_0x5f4d7f({'hostType':_0x1b3194[_0x4f0f80(0xc7)],'unitId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x1e2)])??'','subUnitId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x2ae)])??'','shapeId':(_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x2eb)])??'','shapeData':_0x1b8b03==null?void 0x0:_0x1b8b03[_0x4f0f80(0x148)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x4f0f80(0x273),'onUpdateBinding':_0x4fd389=>_0x14e541({'formulaBinding':_0x4fd389})}),_0x521b0a=((_0x4dfbce=_0x6cbfd8['extensionGroups'])==null?void 0x0:_0x4dfbce[_0x4f0f80(0x2dd)](_0x4f09c9=>_0x4f09c9[_0x4f0f80(0x18a)])['filter'](_0x129712=>_0x129712[_0x4f0f80(0x1f6)]!==!0x1))??[];return _0x1b8b03!=null&&_0x1b8b03[_0x4f0f80(0x148)][_0x4f0f80(0xe8)]?_0x3ae1d4(_0x110de0,{'actions':_0x521b0a,'panel':_0x6cbfd8['panel']}):null;}function si({value:_0x3843d3}){const _0x30ed10=_0xb07969;let _0x3262f1=_0x2c5b17(_0xe303eb),_0x31b09a=ti['find'](_0x22d060=>_0x22d060['value']===_0x3843d3)??ti[0x0];return _0x31b09a?_0x3ae1d4(_0x30ed10(0xe5),{'children':_0x3262f1['t'](_0x31b09a[_0x30ed10(0x1a7)])}):null;}const ci=_0xb07969(0xcc),li=_0xb07969(0x155),ui=_0xb07969(0x285),di='docs-shape-ui.ribbon.shape-format.arrange-forward',fi='docs-shape-ui.ribbon.shape-format.arrange-backward',pi=_0xb07969(0x10d),mi=_0xb07969(0x1de),hi=_0xb07969(0x2bd);function gi(_0x2c253f){const _0x264a12=_0xb07969;let _0x35f733=_0x2c253f['get'](_0x4e68a9),_0xe46f62=_0x2c253f[_0x264a12(0x1af)](_0x5e0832),_0x5f1fb1=_0x2c253f[_0x264a12(0x1af)](_0x36af82);return new _0x5eb731(_0x4ed373=>{const _0x56f028=_0x264a12;let _0x13362c=()=>{const _0xcb02c2=_0x56ec;let _0x3b06fd=Y(_0x2c253f),_0x32756b=_0x3b06fd?_0x5f1fb1[_0xcb02c2(0x1a2)](_0x3b06fd[_0xcb02c2(0x1e2)],_0x3b06fd[_0xcb02c2(0x2ae)],_0x3b06fd[_0xcb02c2(0x2eb)]):null;_0x4ed373['next'](_0x32756b?_0x60290e(_0x32756b)??'':'');},_0x401f7b=_0xe46f62[_0x56f028(0x1d4)]['subscribe'](_0x13362c),_0x3569f9=_0x35f733[_0x56f028(0x2ad)](_0x2b2c4e=>{_0x2b2c4e['id']===_0x493300['id']&&_0x13362c();});return _0x13362c(),()=>{const _0x17b4f0=_0x56f028;_0x401f7b[_0x17b4f0(0x147)](),_0x3569f9[_0x17b4f0(0x1f8)]();};});}function Y(_0x4630a2){const _0x558026=_0xb07969;var _0x2b0435;let _0x279c50=_0x4630a2[_0x558026(0x1af)](_0x5e0832)['getFocusDrawings']();return _0x279c50[_0x558026(0xb3)]===0x1&&((_0x2b0435=_0x279c50[0x0])==null?void 0x0:_0x2b0435['drawingType'])===_0x507337['DRAWING_SHAPE']?_0x279c50[0x0]:null;}function _i(_0x2177c1){const _0x350d1b=_0xb07969;return(_0x2177c1==null?void 0x0:_0x2177c1[_0x350d1b(0x192)])===_0x1fafc0[_0x350d1b(0x2ed)]?_0x2177c1['behindDoc']===_0x16c0b3[_0x350d1b(0x18c)]?_0x2db77a[_0x350d1b(0x163)]:_0x2db77a['IN_FRONT_OF_TEXT']:(_0x2177c1==null?void 0x0:_0x2177c1['layoutType'])===_0x1fafc0[_0x350d1b(0x140)]?_0x2db77a[_0x350d1b(0x140)]:(_0x2177c1==null?void 0x0:_0x2177c1['layoutType'])===_0x1fafc0[_0x350d1b(0x309)]?_0x2db77a[_0x350d1b(0x309)]:_0x2db77a['INLINE'];}function vi(_0x263d56){const _0x21df53=_0xb07969;let _0x28b79b=_0x263d56[_0x21df53(0x1af)](_0x4e68a9),_0x2382fa=_0x263d56[_0x21df53(0x1af)](_0x5e0832),_0x451365=_0x263d56[_0x21df53(0x1af)](_0x97a100);return new _0x5eb731(_0x45afe3=>{const _0x230ec2=_0x21df53;let _0x34d231=()=>{const _0x448b26=_0x56ec;var _0xb602d9;let _0x91b720=Y(_0x263d56),_0x3418ab=_0x91b720?_0x451365[_0x448b26(0x1f2)](_0x91b720[_0x448b26(0x1e2)],_0x1b3194[_0x448b26(0xc7)]):void 0x0;_0x45afe3[_0x448b26(0x303)](_i(_0x91b720?_0x3418ab==null||(_0xb602d9=_0x3418ab[_0x448b26(0x2e4)]()[_0x448b26(0x1a6)])==null?void 0x0:_0xb602d9[_0x91b720[_0x448b26(0x2eb)]]:void 0x0));},_0x133f53=_0x2382fa['focus$'][_0x230ec2(0xc4)](_0x34d231),_0x583e1d=_0x28b79b['onCommandExecuted'](_0x2b38aa=>{_0x2b38aa['id']===_0x505338['id']&&_0x34d231();});return _0x34d231(),()=>{const _0x477ca0=_0x230ec2;_0x133f53[_0x477ca0(0x147)](),_0x583e1d['dispose']();};})[_0x21df53(0x14f)](_0x21b986());}function yi(_0xf0038c,_0x35a970=!0x1){const _0x268dca=_0xb07969;let _0x5bf430=_0xf0038c[_0x268dca(0x1af)](_0x4e68a9),_0x448ed7=_0xf0038c['get'](_0x5e0832),_0x13f4c8=_0xf0038c[_0x268dca(0x1af)](_0x36af82);return new _0x5eb731(_0xd9db4a=>{const _0x4f2d9b=_0x268dca;let _0x8ea602=()=>{const _0x25974a=_0x56ec;let _0x7b0d2a=Y(_0xf0038c);if(!_0x7b0d2a){_0xd9db4a[_0x25974a(0x303)](!0x0);return;}let _0x1d0e35=_0x13f4c8[_0x25974a(0x1a2)](_0x7b0d2a[_0x25974a(0x1e2)],_0x7b0d2a[_0x25974a(0x2ae)],_0x7b0d2a['drawingId']);_0xd9db4a[_0x25974a(0x303)](!_0x1d0e35||_0x35a970&&_0x1d0e35['formulaBinding']==null);},_0x4ed013=_0x448ed7[_0x4f2d9b(0x1d4)][_0x4f2d9b(0xc4)](_0x8ea602),_0xbb6ce1=_0x5bf430[_0x4f2d9b(0x2ad)](_0x4bbdc2=>{_0x4bbdc2['id']===_0x493300['id']&&_0x8ea602();});return _0x8ea602(),()=>{const _0x45177f=_0x4f2d9b;_0x4ed013[_0x45177f(0x147)](),_0xbb6ce1[_0x45177f(0x1f8)]();};});}function bi(_0x1d267b){const _0x3f18b6=_0xb07969;let _0x41028b=_0x1d267b[_0x3f18b6(0x1af)](_0x5e0832),_0x21be32=_0x1d267b[_0x3f18b6(0x1af)](_0x36af82);return _0x41028b[_0x3f18b6(0x1d4)][_0x3f18b6(0x14f)](_0xc4c7f(_0x41028b['getFocusDrawings']()),_0x456f26(()=>{const _0x103cf0=_0x3f18b6;let _0x83a539=Y(_0x1d267b),_0x3f365f=_0x83a539?_0x21be32[_0x103cf0(0x255)](_0x83a539[_0x103cf0(0x1e2)],_0x83a539[_0x103cf0(0x2ae)],_0x83a539[_0x103cf0(0x2eb)]):void 0x0;return _0x3f365f===void 0x0||_0x1c9494(_0x3f365f);}));}function xi(_0x487fc0){const _0x20dff7=_0xb07969;return{'id':Pr['id'],'type':_0x80d687['SELECTOR'],'icon':_0x20dff7(0xd6),'title':_0x20dff7(0xe6),'tooltip':_0x20dff7(0xe6),'selections':[{'label':{'name':Xr,'hoverable':!0x1,'selectable':!0x1}}],'value$':gi(_0x487fc0),'hidden$':yi(_0x487fc0)};}function Si(_0x5b0f67){const _0x26b4fb=_0xb07969;return{'id':Fr['id'],'type':_0x80d687[_0x26b4fb(0x2b0)],'icon':_0x26b4fb(0xf6),'title':_0x26b4fb(0x2fc),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x157fc3,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':bi(_0x5b0f67)};}function Ci(_0x4c8f63,_0x2dbc23,_0x5c5b29=!0x1){const _0x1b3e37=_0xb07969;return _0x37b9cf=>({'id':_0x4c8f63,'type':_0x80d687[_0x1b3e37(0x2bc)],'label':{'name':_0x2dbc23,'hoverable':!0x1,'selectable':!0x1},'hidden$':yi(_0x37b9cf,_0x5c5b29)});}const wi=Ci(ci,Zr),Ti=Ci(li,Qr),Ei=Ci(ui,$r,!0x0);function Di(_0x59017e){const _0x2c801f=_0xb07969;return{'id':hi,'type':_0x80d687[_0x2c801f(0x2b0)],'icon':ti[0x0][_0x2c801f(0x22b)],'label':ei,'selectionsCommandId':_0x3e0463['id'],'selections':ti[_0x2c801f(0x239)](({icon:_0x3bcacb,label:_0x43ea46,value:_0x109130})=>({'value':_0x109130,'label':_0x43ea46,'icon':_0x3bcacb,'params':()=>{const _0x33b9c3=_0x2c801f;let _0x3be665=Y(_0x59017e);return _0x3be665?{'unitId':_0x3be665[_0x33b9c3(0x1e2)],'subUnitId':_0x3be665[_0x33b9c3(0x2ae)],'drawings':[{'unitId':_0x3be665[_0x33b9c3(0x1e2)],'subUnitId':_0x3be665[_0x33b9c3(0x2ae)],'drawingId':_0x3be665[_0x33b9c3(0x2eb)]}],'wrappingStyle':_0x109130}:void 0x0;}})),'value$':vi(_0x59017e),'hidden$':yi(_0x59017e)};}function Oi(_0x3ec4f5,_0x3f0681,_0x4c024c,_0x1e7f43){return _0x592e8e=>({'id':_0x3ec4f5,'commandId':_0x51e9f9['id'],'type':_0x80d687['BUTTON'],'icon':_0x4c024c,'title':_0x1e7f43,'tooltip':_0x1e7f43,'hidden$':yi(_0x592e8e),'params':()=>{const _0x2413b7=_0x56ec;let _0x50533d=Y(_0x592e8e);return _0x50533d?{'unitId':_0x50533d[_0x2413b7(0x1e2)],'subUnitId':_0x50533d['subUnitId'],'drawingIds':[_0x50533d[_0x2413b7(0x2eb)]],'arrangeType':_0x3f0681}:void 0x0;}});}const ki=Oi(di,_0x3c626a[_0xb07969(0x289)],_0xb07969(0xed),_0xb07969(0x294)),Ai=Oi(fi,_0x3c626a[_0xb07969(0x184)],_0xb07969(0x170),'shape-editor-ui.arrange.backward'),ji=Oi(pi,_0x3c626a[_0xb07969(0x1ad)],_0xb07969(0x161),_0xb07969(0x173)),Mi=Oi(mi,_0x3c626a[_0xb07969(0x20c)],_0xb07969(0x2ee),_0xb07969(0x2f5));function Ni(_0x391801){const _0x235342=_0xb07969;return{'id':G['id'],'type':_0x80d687[_0x235342(0x2bc)],'icon':_0x235342(0x16d),'title':'docs-shape-ui.formatShape','tooltip':_0x235342(0x164),'hidden$':yi(_0x391801),'params':()=>{const _0x3c777b=_0x235342;let _0x201dae=Y(_0x391801);return _0x201dae?{'unitId':_0x201dae[_0x3c777b(0x1e2)],'subUnitId':_0x201dae['subUnitId'],'drawingId':_0x201dae[_0x3c777b(0x2eb)]}:void 0x0;}};}const Pi={[_0x18b81e[_0xb07969(0x275)]]:{[Dr]:{'order':0x64,'title':_0xb07969(0x164),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':xi},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Si}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[ci]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ti}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[hi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Di},[di]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ki},[fi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Ai},[pi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':ji},[mi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Mi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ni},[_0x55323c['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x44248c}}}}},Fi={[_0x169de6['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x423db3=>({...Wr(_0x423db3),'title':void 0x0})}},[_0x169de6[_0xb07969(0x24d)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':qr}},[_0x130606['PARAGRAPH']]:{[_0x15d011[_0xb07969(0x1fa)]]:{[_0x449e25]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Gr}}},[_0x37f8c8]:{[_0x15d011[_0xb07969(0x1fa)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Gr}}},[_0x31b9c3]:{[_0x15d011[_0xb07969(0x1fa)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x29427a]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Wr}}},[_0x194cd6]:{'insert':{[U['id']+_0xb07969(0x23c)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}}}};var Ii='@univerjs-pro/docs-shape-ui',Li=_0xb07969(0x302);const Ri={'type':_0x443e82[_0xb07969(0x290)],'id':_0xb07969(0x149),'handler'(){return!0x0;}},zi='docs-shape-ui.config',Bi={};function Vi(_0x2b56b0){'@babel/helpers - typeof';const _0x1eb074=_0xb07969;return Vi=typeof Symbol==_0x1eb074(0x286)&&typeof Symbol['iterator']==_0x1eb074(0x1ca)?function(_0x408ada){return typeof _0x408ada;}:function(_0x501879){const _0x5f0e64=_0x1eb074;return _0x501879&&typeof Symbol==_0x5f0e64(0x286)&&_0x501879[_0x5f0e64(0x295)]===Symbol&&_0x501879!==Symbol[_0x5f0e64(0x1da)]?_0x5f0e64(0x1ca):typeof _0x501879;},Vi(_0x2b56b0);}function Hi(_0x47b235,_0x2684d6){const _0x320777=_0xb07969;if(Vi(_0x47b235)!=_0x320777(0x2a6)||!_0x47b235)return _0x47b235;var _0x27086e=_0x47b235[Symbol['toPrimitive']];if(_0x27086e!==void 0x0){var _0x1ca46c=_0x27086e[_0x320777(0x2f3)](_0x47b235,_0x2684d6||_0x320777(0x2b2));if(Vi(_0x1ca46c)!='object')return _0x1ca46c;throw TypeError(_0x320777(0x12a));}return(_0x2684d6===_0x320777(0x28e)?String:Number)(_0x47b235);}function Ui(_0x409051){const _0x3e428c=_0xb07969;var _0x1b2e87=Hi(_0x409051,_0x3e428c(0x28e));return Vi(_0x1b2e87)=='symbol'?_0x1b2e87:_0x1b2e87+'';}function X(_0x11cd4b,_0x410765,_0x1023e1){const _0x5e9f97=_0xb07969;return(_0x410765=Ui(_0x410765))in _0x11cd4b?Object[_0x5e9f97(0x132)](_0x11cd4b,_0x410765,{'value':_0x1023e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11cd4b[_0x410765]=_0x1023e1,_0x11cd4b;}var Wi=class extends _0x58cf13{constructor(_0x14bc5b,_0x2a4220){const _0x663fc1=_0xb07969;super(_0x14bc5b,_0x2a4220),X(this,'_shapeId',null),X(this,_0x663fc1(0xfb),null),X(this,_0x663fc1(0x150),null),X(this,'_subUnitId',null),_0x2a4220&&this[_0x663fc1(0xff)](_0x2a4220);}[_0xb07969(0x9b)](){const _0x209781=_0xb07969;return{'unitId':this[_0x209781(0x150)],'subUnitId':this[_0x209781(0x138)],'drawingId':this['_shapeId']};}[_0xb07969(0xff)](_0x5f452a){const _0x5c94ab=_0xb07969;_0x5f452a['shapeId']!==void 0x0&&(this[_0x5c94ab(0x241)]=_0x5f452a[_0x5c94ab(0x1f0)]),_0x5f452a[_0x5c94ab(0x287)]!==void 0x0&&(this[_0x5c94ab(0xfb)]=_0x5f452a[_0x5c94ab(0x287)]),_0x5f452a[_0x5c94ab(0x1e2)]!==void 0x0&&(this[_0x5c94ab(0x150)]=_0x5f452a[_0x5c94ab(0x1e2)]),_0x5f452a[_0x5c94ab(0x2ae)]!==void 0x0&&(this[_0x5c94ab(0x138)]=_0x5f452a[_0x5c94ab(0x2ae)]),this[_0x5c94ab(0x29e)]({'width':_0x5f452a[_0x5c94ab(0x182)],'height':_0x5f452a[_0x5c94ab(0x175)]});}[_0xb07969(0x1c3)](_0x918559){const _0x20c28d=_0xb07969;_0x2c973b['drawWith'](_0x918559,{'radius':_0x5d831c['adjHandleSize'],'fill':_0x5d831c[_0x20c28d(0x17e)],'stroke':_0x5d831c['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Gi(_0x3845b9,_0x10402b,_0x25cfd0){const _0x8309a2=_0xb07969;let _0x394510={..._0x10402b,'dataModel':{..._0x10402b[_0x8309a2(0x2b9)]??{},..._0x25cfd0?{'doc':_0x25cfd0}:null}},_0x53b9f1=_0x36fd1c(_0x3845b9,_0x394510),_0xa836e9=_0x4e5632(_0x53b9f1);return{'clip':_0x4e8641(_0x53b9f1,_0xa836e9),'wrapStrategy':_0xa836e9};}var Z=class extends _0x58cf13{constructor(_0x3221ab,_0x5f3e28){const _0x5e8c04=_0xb07969;super(_0x3221ab,_0x5f3e28),X(this,'_hyperLinkRegions',[]),X(this,_0x5e8c04(0x1be),void 0x0),X(this,_0x5e8c04(0xb0),new _0x2f0b11(()=>this['makeDirty'](!0x0),()=>this[_0x5e8c04(0x23e)]())),X(this,_0x5e8c04(0x9e),!0x0),X(this,'_drawingType',_0x507337[_0x5e8c04(0x1b8)]),X(this,_0x5e8c04(0x1fb),!0x0),this[_0x5e8c04(0x1be)]={..._0x5f3e28},this[_0x5e8c04(0xb0)][_0x5e8c04(0x24e)](_0x5f3e28[_0x5e8c04(0xb6)],_0x5f3e28[_0x5e8c04(0x108)]!==!0x1),this[_0x5e8c04(0x1ae)](),this[_0x5e8c04(0x23e)]();}[_0xb07969(0x1ae)](){const _0x4b7fa1=_0xb07969;this['onTransformChange$'][_0x4b7fa1(0x115)](_0x370d5b=>{const _0x3bf1d7=_0x4b7fa1;this[_0x3bf1d7(0x221)](_0x370d5b);});}[_0xb07969(0xf8)](_0x35b6f6){this['_props']['prstGeom']=_0x35b6f6;}[_0xb07969(0x2e9)](_0x48bbb7){const _0x187445=_0xb07969;if(this[_0x187445(0x1be)]['isEditing'])return null;let _0x3155ca=this[_0x187445(0x1aa)](_0x48bbb7),{width:_0x2e84df,height:_0x1c1675}=this[_0x187445(0x1c8)]();return _0x197d1c(this[_0x187445(0x1e0)],{'x':(this['flipX']?-_0x3155ca['x']:_0x3155ca['x'])+_0x2e84df/0x2,'y':_0x3155ca['y']+_0x1c1675/0x2});}[_0xb07969(0x1d1)](_0x5a1032){const _0x1a1c26=_0xb07969;this[_0x1a1c26(0x1be)][_0x1a1c26(0xaf)]=_0x5a1032,this[_0x1a1c26(0x274)](!0x0);}['setFormulaPresentation'](_0x341f1a,_0x1531b1=!0x0){const _0x2db340=_0xb07969;this[_0x2db340(0xb0)][_0x2db340(0x24e)](_0x341f1a,_0x1531b1),this[_0x2db340(0x1be)][_0x2db340(0xb6)]=_0x341f1a,this[_0x2db340(0x23e)](),this[_0x2db340(0x274)](!0x0);}[_0xb07969(0x23e)](){const _0x1db6a8=_0xb07969;let _0x66242=this[_0x1db6a8(0x1be)]['shapeModel'],_0x4a2ab6=_0x66242['getShapeTextData'](),_0x448874=_0x16437f(_0x4a2ab6==null?void 0x0:_0x4a2ab6['dataModel']),_0x5af748=_0x448874==null?void 0x0:_0x448874['doc'],_0x1b3462=this[_0x1db6a8(0xb0)][_0x1db6a8(0xc9)]();if(!_0x5af748||_0x1b3462[_0x1db6a8(0xb3)]===0x0)return;_0x66242[_0x1db6a8(0x244)]({'width':this['width'],'height':this[_0x1db6a8(0x175)]});let _0x5b59c3=_0x59eb5a({'documentData':_0x1b3462[_0x1db6a8(0x239)](_0x4348b0=>_0x316dd3(_0x5af748,_0x4348b0)),'height':this[_0x1db6a8(0x175)],'shapeData':_0x66242['getShapeData'](),'textRect':_0x66242[_0x1db6a8(0x2fd)]({'left':0x0,'top':0x0,'width':this[_0x1db6a8(0x182)],'height':this[_0x1db6a8(0x175)]}),'width':this[_0x1db6a8(0x182)]});if(_0x5b59c3){var _0x51872e;this[_0x1db6a8(0x1c6)](_0x5b59c3[_0x1db6a8(0x182)],_0x5b59c3[_0x1db6a8(0x175)]),(_0x51872e=this['getScene']())==null||(_0x51872e=_0x51872e[_0x1db6a8(0xd0)]())==null||_0x51872e['debounceRefreshControls']();}}get[_0xb07969(0x1e2)](){const _0x23d04c=_0xb07969;return this['_props'][_0x23d04c(0x1e2)];}get['subUnitId'](){const _0x57686e=_0xb07969;return this[_0x57686e(0x1be)][_0x57686e(0x2ae)];}[_0xb07969(0x221)](_0x2336cc){const _0x42822f=_0xb07969;if(this[_0x42822f(0x1be)]['srcRect']==null||!this['_transformCalculateSrcRect'])return;let {width:_0x2df1a3,height:_0x2f4449}=this,{width:_0x4030e3=0x0,height:_0x32b3b5=0x0}=_0x2336cc['preValue'],{left:_0xed042a=0x0,top:_0x5f3661=0x0,right:_0x5e5969=0x0,bottom:_0x20b740=0x0}=this[_0x42822f(0x1be)][_0x42822f(0x203)],_0x23bd23=_0xed042a,_0x54579b=_0x5f3661,_0x5cc09c=_0x5e5969,_0xa2a0bf=_0x20b740,_0x12062c=!0x1;if(_0x4030e3!==0x0&&_0x4030e3!==_0x2df1a3){let _0x3a3fcf=_0xed042a/_0x4030e3,_0xc58aa2=_0x5e5969/_0x4030e3;_0x23bd23=_0x2df1a3*_0x3a3fcf,_0x5cc09c=_0x2df1a3*_0xc58aa2,_0x12062c=!0x0;}if(_0x32b3b5!==0x0&&_0x32b3b5!==_0x2f4449){let _0x1a42ed=_0x5f3661/_0x32b3b5,_0x5d2d16=_0x20b740/_0x32b3b5;_0x54579b=_0x2f4449*_0x1a42ed,_0xa2a0bf=_0x2f4449*_0x5d2d16,_0x12062c=!0x0;}_0x12062c&&this['setSrcRect']({'left':_0x23bd23,'top':_0x54579b,'right':_0x5cc09c,'bottom':_0xa2a0bf});}['setSrcRect'](_0x483cef){const _0x3af847=_0xb07969;this[_0x3af847(0x1be)]['srcRect']=_0x483cef,this[_0x3af847(0x274)](!0x0);}[_0xb07969(0x222)](_0x447682){const _0x5335f5=_0xb07969;this[_0x5335f5(0x1be)][_0x5335f5(0x249)]=_0x447682,this[_0x5335f5(0x274)](!0x0);}set[_0xb07969(0x2c7)](_0x24417d){const _0x5aab64=_0xb07969;this[_0x5aab64(0x27c)]=_0x24417d;}get[_0xb07969(0x2c7)](){const _0x595080=_0xb07969;this[_0x595080(0x27c)]||this[_0x595080(0xf5)]();let _0x15657b=this[_0x595080(0x27c)]['clone']();return this[_0x595080(0xec)](_0x15657b);}get['shapeModel'](){const _0x179ce6=_0xb07969;return this[_0x179ce6(0x1be)][_0x179ce6(0x238)];}get[_0xb07969(0x1f0)](){const _0x5a0c41=_0xb07969;return this[_0x5a0c41(0x1be)]['shapeId'];}get[_0xb07969(0x1c7)](){const _0x13a0cb=_0xb07969;return _0x23ec4c[_0x13a0cb(0x19f)];}[_0xb07969(0x1c3)](_0x32749b,_0x4ca895,_0x4517e0,_0x4ee9aa){const _0x396402=_0xb07969;let _0x54f638=this[_0x396402(0x1be)][_0x396402(0x238)];if(!_0x54f638||!_0x4ca895)return;let _0x210165=_0x4517e0??this[_0x396402(0x182)],_0x3c8392=_0x4ee9aa??this[_0x396402(0x175)],_0x3047d5={'shapeType':_0x54f638['getShapeType'](),'width':_0x210165,'height':_0x3c8392},_0x226fc0={'renderMode':_0x40d6a8[_0x396402(0x17a)],'oKey':this[_0x396402(0x1ea)],'image':this['_props'][_0x396402(0x249)],'angle':this[_0x396402(0x17f)]};_0x54f638[_0x396402(0x244)](_0x3047d5),_0x32749b[_0x396402(0x261)]();let _0x489435={'top':0x0,'left':0x0,'width':_0x210165,'height':_0x3c8392},_0x4a1af1=_0x54f638[_0x396402(0xba)](_0x489435);_0x4a1af1?this[_0x396402(0x20b)](_0x32749b,_0x4a1af1,_0x1efe73=>{const _0x1f14cc=_0x396402;_0x54f638[_0x1f14cc(0x2d8)](_0x1efe73,_0x489435,_0x226fc0);}):(this[_0x396402(0xd5)](),_0x54f638['render'](_0x32749b,_0x489435,_0x226fc0)),_0x32749b['restore']();let _0x12d6bb=_0x54f638[_0x396402(0x2df)](),_0x588431=_0x54f638[_0x396402(0x2fd)](_0x489435),_0x3e24bb=_0x54f638[_0x396402(0x21c)]();if(_0x12d6bb&&_0x588431&&!_0x3e24bb){_0x32749b[_0x396402(0x261)](),this[_0x396402(0x1d8)]()[_0x396402(0x20a)]&&_0x32749b['scale'](-0x1,0x1);let _0x25a759=_0x210165/0x2,_0x1d7d9d=_0x3c8392/0x2;_0x32749b['translate'](-_0x25a759,-_0x1d7d9d),_0x32749b[_0x396402(0x1e8)](),this[_0x396402(0x22a)](_0x32749b,_0x12d6bb,_0x588431),_0x32749b[_0x396402(0x19c)]();}}[_0xb07969(0xd3)](_0xd99b5c){}['_drawShapeText'](_0x5d12cf,_0x22fdf5,_0x520afd){const _0x130f80=_0xb07969;var _0x2c9d89;this['_hyperLinkRegions']=[],!this[_0x130f80(0x1be)]['isEditing']&&(!((_0x2c9d89=_0x22fdf5[_0x130f80(0x2b9)])!=null&&_0x2c9d89[_0x130f80(0x1b6)])&&'isRichText'in _0x22fdf5&&_0x22fdf5[_0x130f80(0x293)]===!0x1?this['_drawSimpleText'](_0x5d12cf,_0x22fdf5,_0x520afd):this[_0x130f80(0x117)](_0x5d12cf,_0x22fdf5,_0x520afd));}[_0xb07969(0x18f)](_0x46129b,_0x134363,_0x444188){const _0xf7a3b0=_0xb07969;this[_0xf7a3b0(0x117)](_0x46129b,{..._0x134363,'text':_0x134363[_0xf7a3b0(0x20f)]??'','dataModel':{'doc':_0x1503a7(_0x134363,_0xf7a3b0(0x1e7)+this['oKey'])}},_0x444188);}['_drawRichText'](_0x49b82b,_0x484d99,_0x19bb17){const _0x5755b6=_0xb07969;_0x307919(_0x49b82b,this[_0x5755b6(0xb0)],(_0x160c0f,_0x45bfd3,_0x59eab3)=>{const _0x222caf=_0x5755b6;this[_0x222caf(0x2da)](_0x160c0f,_0x484d99,_0x19bb17,_0x45bfd3,_0x59eab3===_0x222caf(0x122));});}[_0xb07969(0x2da)](_0x51c352,_0x184e9e,_0x8547ac,_0x35c870,_0x1bfe8c){const _0x15b94d=_0xb07969;let _0x5a7562=this['_props'][_0x15b94d(0x12f)];if(!_0x184e9e['dataModel']||!_0x5a7562){_0x5a7562||console[_0x15b94d(0x137)](_0x15b94d(0x1e3));return;}let _0x5eeb55=_0x16437f(_0x184e9e[_0x15b94d(0x2b9)]);if(!_0x5eeb55)return;let _0x3071fd=_0x5eeb55['doc'];if(!_0x3071fd)return;let _0x115db1=_0x316dd3(_0x3071fd,_0x35c870),_0x293ee8=_0x5eeb55['va']??_0x4bcf3d[_0x15b94d(0x9f)],_0x209523=_0x5eeb55['ha']??_0x22763e[_0x15b94d(0x284)],_0x5f2971=Gi(this[_0x15b94d(0x1be)][_0x15b94d(0x238)][_0x15b94d(0x20d)](),_0x184e9e,_0x115db1),_0x464fc0=_0x184e9e[_0x15b94d(0x172)],_0x30011f=_0x31f136(_0x115db1,{'isHorizontal':_0x464fc0!==!0x1,'textRect':_0x8547ac,'verticalAlign':_0x293ee8,'horizontalAlign':_0x209523,'wrapStrategy':_0x5f2971[_0x15b94d(0x17c)]}),_0x32aaf9=new _0x320bf5(_0x30011f),_0x538dc4=new _0x74ae6b(_0x32aaf9),_0x3f1015=_0x51294b[_0x15b94d(0xc0)](_0x538dc4,_0x5a7562);_0x3f1015[_0x15b94d(0x156)]();let _0x36cdba=_0x3f1015['getActualSize']()[_0x15b94d(0x2bb)],_0x488c4c=_0x455dbb({'contentHeight':_0x36cdba,'verticalAlign':_0x293ee8,'viewportHeight':_0x8547ac[_0x15b94d(0x175)]});_0x32aaf9['updateDocumentStyle']({'pageSize':{'width':_0x464fc0===!0x1?_0x8547ac[_0x15b94d(0x175)]:_0x8547ac[_0x15b94d(0x182)],'height':_0x4db670(_0x115db1,_0x488c4c[_0x15b94d(0x235)])}}),_0x32aaf9[_0x15b94d(0x2cb)]({'t':_0x488c4c[_0x15b94d(0xa3)]}),_0x3f1015[_0x15b94d(0x156)]();let _0x13b440=new _0x159cfc(_0x15b94d(0xf7)+this[_0x15b94d(0x1ea)],_0x3f1015,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x15b94d(0x274)](!0x0)});_0x13b440[_0x15b94d(0x1c6)](_0x8547ac[_0x15b94d(0x182)],_0x488c4c[_0x15b94d(0x235)]),_0x51c352[_0x15b94d(0x261)](),_0x51c352['translateWithPrecision'](_0x8547ac[_0x15b94d(0x291)],_0x8547ac[_0x15b94d(0xdf)]),_0x5f2971['clip']&&(_0x51c352[_0x15b94d(0x1e8)](),_0x51c352[_0x15b94d(0x259)](0x0,_0x488c4c[_0x15b94d(0x13c)],_0x8547ac[_0x15b94d(0x182)],_0x488c4c[_0x15b94d(0xbf)]),_0x51c352['clip']()),_0x488c4c[_0x15b94d(0x25e)]&&_0x51c352[_0x15b94d(0xe2)](0x0,_0x488c4c[_0x15b94d(0x25e)]),_0x13b440[_0x15b94d(0x13b)](_0x51c352),_0x1bfe8c&&(this[_0x15b94d(0x1e0)]=_0x24c9f8(_0x13b440,{'left':_0x8547ac[_0x15b94d(0x291)],'top':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c[_0x15b94d(0x25e)]},_0x5f2971[_0x15b94d(0x29c)]?{'left':_0x8547ac[_0x15b94d(0x291)],'right':_0x8547ac[_0x15b94d(0x291)]+_0x8547ac['width'],'top':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c[_0x15b94d(0x13c)],'bottom':_0x8547ac[_0x15b94d(0xdf)]+_0x488c4c['clipTop']+_0x488c4c[_0x15b94d(0xbf)]}:void 0x0)),_0x51c352[_0x15b94d(0x19c)](),_0x13b440[_0x15b94d(0x1f8)](),_0x3f1015[_0x15b94d(0x1f8)](),_0x538dc4[_0x15b94d(0x1f8)](),_0x32aaf9[_0x15b94d(0x1f8)]();}[_0xb07969(0x2d8)](_0x5b74d1,_0x40fa3f,_0x48dc23=!0x1){const _0x395eee=_0xb07969;if(!this[_0x395eee(0x1f6)])return this['makeDirty'](!0x1),this;let {width:_0xacb97c,height:_0x270303,left:_0x4b954a,top:_0x427bd5}=this,_0x3ce6c5=this[_0x395eee(0x1c8)]();if(_0xacb97c=_0x3ce6c5[_0x395eee(0x182)],_0x270303=_0x3ce6c5['height'],_0x4b954a=_0x3ce6c5[_0x395eee(0x291)],_0x427bd5=_0x3ce6c5['top'],this['isRender'](_0x40fa3f)){let {top:_0x3ec256,left:_0x450568,bottom:_0x165980,right:_0x2b8cff}=_0x40fa3f[_0x395eee(0x16e)];if(_0xacb97c+this[_0x395eee(0x16a)]+_0x4b954a<_0x450568||_0x2b8cff<_0x4b954a||_0x270303+this['strokeWidth']+_0x427bd5<_0x3ec256||_0x165980<_0x427bd5)return this;}let _0x3c276a=_0x4b954a+_0xacb97c/0x2,_0x2b838b=_0x427bd5+_0x270303/0x2,_0x253419=this['transform'][_0x395eee(0x11b)]();if(this['_props']['isEditing']){let _0x1d1bd4=this[_0x395eee(0x1d8)](),_0x161e6c=new _0x416f20();_0x161e6c[_0x395eee(0x106)]({..._0x1d1bd4}),_0x253419=_0x161e6c['getMatrix']();}return _0x5b74d1['save'](),this[_0x395eee(0x1be)][_0x395eee(0x238)][_0x395eee(0x205)]===!0x0||_0x5b74d1[_0x395eee(0x2c7)](_0x253419[0x0],_0x253419[0x1],_0x253419[0x2],_0x253419[0x3],_0x3c276a,_0x2b838b),this[_0x395eee(0x1c3)](_0x5b74d1,_0x40fa3f,_0xacb97c,_0x270303),_0x5b74d1[_0x395eee(0x19c)](),this[_0x395eee(0x274)](!0x1),this;}[_0xb07969(0x1aa)](_0x5cc1f3){const _0x1dc658=_0xb07969;let {left:_0x5ba2be,top:_0x139a6b,width:_0x5baf35,height:_0x1afec0}=this[_0x1dc658(0x1c8)](),_0xe9d248=this['transform'][_0x1dc658(0x11b)](),_0x389ef2=_0x5ba2be+_0x5baf35/0x2,_0x5e81d4=_0x139a6b+_0x1afec0/0x2,_0x2e7a70=new _0x416f20([_0xe9d248[0x0],_0xe9d248[0x1],_0xe9d248[0x2],_0xe9d248[0x3],_0x389ef2,_0x5e81d4]),_0x4b9b38=this[_0x1dc658(0x1dd)]();return(this[_0x1dc658(0x23d)]&&(_0x4b9b38==null?void 0x0:_0x4b9b38[_0x1dc658(0x1c7)])===_0x23ec4c[_0x1dc658(0x2a1)]?_0x4b9b38['ancestorTransform']['multiply'](_0x2e7a70):_0x2e7a70)[_0x1dc658(0x14b)]()[_0x1dc658(0x258)](_0x5cc1f3);}[_0xb07969(0x2a7)](_0x56875f){const _0x3e580d=_0xb07969;let {left:_0x10277b,top:_0x2dee24,width:_0x32939c,height:_0x3656ff}=this[_0x3e580d(0x1c8)](),_0x37f92d=_0x10277b+_0x32939c/0x2,_0x52ec12=_0x2dee24+_0x3656ff/0x2,_0x40a7b6=this[_0x3e580d(0x2c7)][_0x3e580d(0x11b)](),_0x5042ad=new _0x416f20([_0x40a7b6[0x0],_0x40a7b6[0x1],_0x40a7b6[0x2],_0x40a7b6[0x3],_0x37f92d,_0x52ec12]),_0x31d341=this[_0x3e580d(0x1dd)](),_0x8953f4=(this[_0x3e580d(0x23d)]&&(_0x31d341==null?void 0x0:_0x31d341[_0x3e580d(0x1c7)])===_0x23ec4c[_0x3e580d(0x2a1)]?_0x31d341['ancestorTransform']['multiply'](_0x5042ad):_0x5042ad)[_0x3e580d(0x14b)]()['applyPoint'](_0x56875f),_0x2e0019=_0x32939c/0x2,_0x50b73e=_0x3656ff/0x2,_0x2f2d16=this[_0x3e580d(0x1be)][_0x3e580d(0x238)];return _0x2f2d16&&_0x2f2d16[_0x3e580d(0x21c)]()?_0x2f2d16[_0x3e580d(0xa8)](_0x8953f4['x'],_0x8953f4['y'],_0x32939c,_0x3656ff):_0x8953f4['x']>=-_0x2e0019-this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['x']<=_0x2e0019+this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['y']>=-_0x50b73e-this[_0x3e580d(0x16a)]/0x2&&_0x8953f4['y']<=_0x50b73e+this[_0x3e580d(0x16a)]/0x2;}[_0xb07969(0x1f8)](){const _0xbe6d42=_0xb07969;this['_formulaAnimation'][_0xbe6d42(0x1f8)](),this[_0xbe6d42(0x1be)][_0xbe6d42(0x238)]=null,super[_0xbe6d42(0x1f8)]();}};let Ki=class extends _0x47cfe0{constructor(_0x3c1945,_0x90acf7,_0x213823,_0x480e00){const _0x4004bd=_0xb07969;super(),this[_0x4004bd(0x210)]=_0x3c1945,this[_0x4004bd(0x198)]=_0x90acf7,this['_docsShapeService']=_0x213823,this[_0x4004bd(0xaa)]=_0x480e00,X(this,_0x4004bd(0x157),null),X(this,_0x4004bd(0x150),null),X(this,_0x4004bd(0x138),null),X(this,'_activeShapeAdjustPointList',void 0x0),X(this,_0x4004bd(0x181),[]),X(this,_0x4004bd(0xfc),0x0),X(this,'_baseShapeTop',0x0),X(this,_0x4004bd(0x253),0x0),X(this,_0x4004bd(0x1b4),0x0),X(this,'_isStartAdjusting',!0x1),X(this,_0x4004bd(0x288),!0x1),X(this,_0x4004bd(0xca),void 0x0),X(this,_0x4004bd(0x260),void 0x0),X(this,_0x4004bd(0xc6),void 0x0),X(this,_0x4004bd(0x1b1),void 0x0),this[_0x4004bd(0x2ef)](),this[_0x4004bd(0x2d9)]();}['clearAdjustControls'](){const _0x200810=_0xb07969;this[_0x200810(0xa9)]();}[_0xb07969(0x13f)](){const _0x30a4d6=_0xb07969;this[_0x30a4d6(0xf1)](!0x0);}['_getShapeAdjustPointListById'](_0x51d8dc,_0x3c44a5,_0x4873f){const _0x59942d=_0xb07969;var _0xb493e;return(_0xb493e=this[_0x59942d(0x1ce)][_0x59942d(0xbe)](_0x51d8dc,_0x3c44a5,_0x4873f))==null?void 0x0:_0xb493e[_0x59942d(0xd3)]();}[_0xb07969(0xea)](_0x36deb0,_0x563e46,_0x23b3ba,_0x5d86e7){const _0xffd50f=_0xb07969;var _0x28b285;return(_0x28b285=this[_0xffd50f(0x1ce)][_0xffd50f(0xbe)](_0x36deb0,_0x563e46,_0x23b3ba))==null?void 0x0:_0x28b285[_0xffd50f(0x10b)](_0x5d86e7);}[_0xb07969(0x280)](){const _0x127507=_0xb07969;return this[_0x127507(0x150)]===null||this[_0x127507(0x138)]===null||this[_0x127507(0x157)]===null?null:this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x127507(0x150)],'subUnitId':this[_0x127507(0x138)],'drawingId':this[_0x127507(0x157)]})??null;}[_0xb07969(0x123)](_0x4f885d){const _0x1f1442=_0xb07969;if(this[_0x1f1442(0x150)]===null||this[_0x1f1442(0x138)]===null||this[_0x1f1442(0x157)]===null)return null;let _0x14af22=_0x4dbb43({'unitId':this[_0x1f1442(0x150)],'subUnitId':this[_0x1f1442(0x138)],'drawingId':this[_0x1f1442(0x157)]}),_0x283a81=_0x4f885d[_0x1f1442(0x1e9)](_0x14af22);return _0x283a81 instanceof Z?_0x283a81:null;}[_0xb07969(0x14a)](_0x3f7bb9=!0x1){const _0x7f02da=_0xb07969;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return;let _0x3c2f76=this[_0x7f02da(0x280)]();if((_0x3c2f76==null?void 0x0:_0x3c2f76[_0x7f02da(0x297)])!==_0x507337[_0x7f02da(0x1b8)]||!_0x3c2f76[_0x7f02da(0x2c7)])return;let _0x75cf21=this[_0x7f02da(0x1ce)][_0x7f02da(0xbe)](this[_0x7f02da(0x150)],this['_subUnitId'],this['_activeShapeId']);if(!_0x75cf21||_0x75cf21[_0x7f02da(0x21c)]())return;let {left:_0x2a3ef7=0x0,top:_0x56491e=0x0,width:_0x3753b2=0x0,height:_0x4fcfbf=0x0,flipX:_0x27c92b,flipY:_0xf41d7a,angle:_0x2cd083=0x0}=_0x3c2f76[_0x7f02da(0x2c7)];(_0x3f7bb9||!this[_0x7f02da(0x301)])&&(_0x75cf21[_0x7f02da(0x244)]({'width':_0x3753b2,'height':_0x4fcfbf}),this[_0x7f02da(0x301)]=_0x75cf21[_0x7f02da(0xd3)]());let _0x3f143a=this[_0x7f02da(0x301)];if(!(_0x3f143a!=null&&_0x3f143a[_0x7f02da(0xb3)]))return;let {scene:_0x503feb}=this['_context'];for(let _0x5e788b of _0x3f143a){let _0x272c8c=this[_0x7f02da(0x199)](_0x5e788b,_0x3753b2,_0x4fcfbf,!!_0x27c92b,!!_0xf41d7a,_0x2cd083);this['_addShapeAdjustControl'](_0x503feb,_0x272c8c,_0x272c8c[_0x7f02da(0x287)],_0x2a3ef7,_0x56491e,this['_unitId'],this[_0x7f02da(0x138)]);}}[_0xb07969(0x199)](_0x23c1db,_0x2642a5,_0x9525f1,_0x20165e,_0x367780,_0x4d7e95){const _0x2e6c94=_0xb07969;let _0x3a180a=_0x23c1db['x'],_0x2dc9c7=_0x23c1db['y'];if(_0x20165e&&(_0x3a180a=_0x2642a5-_0x3a180a),_0x367780&&(_0x2dc9c7=_0x9525f1-_0x2dc9c7),_0x4d7e95!==0x0){let _0x55e03f=_0x2642a5/0x2,_0x176ca5=_0x9525f1/0x2,_0x3a3cd0=_0x4d7e95*Math['PI']/0xb4,_0x56f758=Math[_0x2e6c94(0xdb)](_0x3a3cd0),_0x482101=Math['sin'](_0x3a3cd0),_0x228be9=_0x3a180a-_0x55e03f,_0x4f9079=_0x2dc9c7-_0x176ca5;_0x3a180a=_0x55e03f+(_0x228be9*_0x56f758-_0x4f9079*_0x482101),_0x2dc9c7=_0x176ca5+(_0x228be9*_0x482101+_0x4f9079*_0x56f758);}return{'x':_0x3a180a,'y':_0x2dc9c7,'adjName':_0x23c1db[_0x2e6c94(0x287)]};}[_0xb07969(0xf1)](_0x5cfd05=!0x1){const _0x460f06=_0xb07969;_0x5cfd05&&this[_0x460f06(0xa9)](),this[_0x460f06(0x14a)](_0x5cfd05);}['_addShapeAdjustControl'](_0x55b437,_0x104ff2,_0x26bbd2,_0x457808,_0x6c8571,_0xafc404,_0x55925a){const _0x2ef1b0=_0xb07969;if(!this['_activeShapeId'])return;let _0x949229=_0x2ef1b0(0x145)+this[_0x2ef1b0(0x157)]+'-'+_0x26bbd2,_0x5b9077=_0x55b437[_0x2ef1b0(0x1e9)](_0x949229);if(_0x5b9077){_0x5b9077[_0x2ef1b0(0x29e)]({'left':_0x104ff2['x']+_0x457808-_0x5d831c[_0x2ef1b0(0x271)],'top':_0x104ff2['y']+_0x6c8571-_0x5d831c['adjHandleSize']}),_0x5b9077[_0x2ef1b0(0x274)](!0x0);return;}let _0x346e2b=new Wi(_0x949229,{'left':_0x104ff2['x']+_0x457808-_0x5d831c[_0x2ef1b0(0x271)],'top':_0x104ff2['y']+_0x6c8571-_0x5d831c[_0x2ef1b0(0x271)],'adjName':_0x26bbd2,'shapeId':this['_activeShapeId'],'unitId':_0xafc404,'subUnitId':_0x55925a,'width':_0x5d831c[_0x2ef1b0(0x271)]+0x8,'height':_0x5d831c[_0x2ef1b0(0x271)]+0x8,'zIndex':_0x2958d1+0x1,'evented':!0x0});this[_0x2ef1b0(0x181)][_0x2ef1b0(0xab)](_0x346e2b),this['_attachAdjustEvent'](_0x346e2b,_0x55b437,_0x26bbd2),_0x55b437[_0x2ef1b0(0xa0)](_0x346e2b,_0x2958d1+0x1);}[_0xb07969(0xa9)](){const _0x4b4d04=_0xb07969;this[_0x4b4d04(0x181)][_0x4b4d04(0x2d7)](_0x2b27b8=>_0x2b27b8['dispose']()),this['_adjustPointObjects']=[];}[_0xb07969(0x1d5)](){const _0x5032f9=_0xb07969;this[_0x5032f9(0x14a)]();}[_0xb07969(0x1f1)](_0x2c1f49,_0x508f06,_0x2ab420){const _0x1ce518=_0xb07969;let _0x177d86=_0x22f150[_0x1ce518(0x13e)]([_0x508f06,_0x2ab420]),_0x31d907=_0x2c1f49[_0x1ce518(0xf0)](_0x177d86)??_0x2c1f49[_0x1ce518(0x276)]()[0x0];return(_0x31d907==null?void 0x0:_0x31d907[_0x1ce518(0x277)](_0x177d86))??_0x177d86;}['_attachAdjustEvent'](_0x3594fc,_0x53a228,_0x3bcd10){const _0x16277f=_0xb07969;this[_0x16277f(0x9c)](_0x35b1c9(_0x3594fc['onPointerDown$']['subscribeEvent']((_0x17d6a9,_0x43cefa)=>{const _0x53c4dd=_0x16277f;var _0xb87f1b;let _0x2dd13c=_0x3594fc['getDrawingSearch']();this[_0x53c4dd(0xca)]=this[_0x53c4dd(0xea)](_0x2dd13c[_0x53c4dd(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c['drawingId'],_0x3bcd10),this[_0x53c4dd(0x260)]=this['_docsShapeService'][_0x53c4dd(0xbe)](_0x2dd13c[_0x53c4dd(0x1e2)],_0x2dd13c[_0x53c4dd(0x2ae)],_0x2dd13c[_0x53c4dd(0x2eb)]);let _0x5da4c8=this[_0x53c4dd(0x280)](),_0x351a21=_0x5da4c8==null?void 0x0:_0x5da4c8[_0x53c4dd(0x2c7)];if(!_0x5da4c8||!_0x351a21||!this[_0x53c4dd(0x260)])return;this[_0x53c4dd(0xfc)]=_0x351a21[_0x53c4dd(0x291)]||0x0,this[_0x53c4dd(0xa6)]=_0x351a21['top']||0x0,this[_0x53c4dd(0x253)]=_0x351a21[_0x53c4dd(0x182)]||0x0,this[_0x53c4dd(0x1b4)]=_0x351a21[_0x53c4dd(0x175)]||0x0;let _0x297275=!!_0x351a21[_0x53c4dd(0x20a)],_0x4a6c65=!!_0x351a21[_0x53c4dd(0x21e)],_0x5d2e34=_0x351a21[_0x53c4dd(0x17f)]||0x0,_0x5290e0={...((_0xb87f1b=this[_0x53c4dd(0xca)])==null?void 0x0:_0xb87f1b[_0x53c4dd(0x1bc)])??{}};this[_0x53c4dd(0x159)]=!0x0,_0x53a228[_0x53c4dd(0x201)](),this[_0x53c4dd(0xc6)]=_0x53a228[_0x53c4dd(0x1d0)][_0x53c4dd(0x115)]((_0x50b371,_0x2b9f5b)=>{const _0x24e948=_0x53c4dd;var _0x4813ca;if(!this['_isStartAdjusting']||!this[_0x24e948(0x260)]||!this[_0x24e948(0xca)])return;_0x53a228['disableObjectsEvent'](),_0x53a228[_0x24e948(0x118)](_0x29a1b3['CROSSHAIR']);let _0x2b0dca=this[_0x24e948(0x1f1)](_0x53a228,_0x50b371[_0x24e948(0x1ee)],_0x50b371[_0x24e948(0x2b3)]),_0x797013=_0x2b0dca['x']-this[_0x24e948(0xfc)],_0x5ce73c=_0x2b0dca['y']-this[_0x24e948(0xa6)];if(_0x5d2e34!==0x0){let _0x5117fd=this['_baseShapeWidth']/0x2,_0x1375ae=this['_baseShapeHeight']/0x2,_0x44c060=_0x5d2e34*Math['PI']/0xb4,_0x809ced=Math[_0x24e948(0xdb)](_0x44c060),_0x43433b=Math[_0x24e948(0x269)](_0x44c060),_0x2c77e8=_0x797013-_0x5117fd,_0x58df7c=_0x5ce73c-_0x1375ae;_0x797013=_0x5117fd+(_0x2c77e8*_0x809ced+_0x58df7c*_0x43433b),_0x5ce73c=_0x1375ae+(-_0x2c77e8*_0x43433b+_0x58df7c*_0x809ced);}_0x297275&&(_0x797013=this[_0x24e948(0x253)]-_0x797013),_0x4a6c65&&(_0x5ce73c=this[_0x24e948(0x1b4)]-_0x5ce73c);let _0x59d823={'left':0x0,'top':0x0,'width':this[_0x24e948(0x253)],'height':this[_0x24e948(0x1b4)]},_0x3006b2=this[_0x24e948(0x260)][_0x24e948(0x154)](_0x59d823,{'x':_0x797013,'y':_0x5ce73c},this['_activeAdjustInfo'],_0x297275,_0x4a6c65);if(Object['keys'](_0x3006b2)[_0x24e948(0xb3)]!==0x0){for(let [_0x18aa83,_0xbb0266]of Object[_0x24e948(0x10a)](_0x3006b2))this['_activeShapeModel'][_0x24e948(0xd7)](_0x18aa83,_0xbb0266);this['_activeShapeModel'][_0x24e948(0x244)]({'width':this['_baseShapeWidth'],'height':this[_0x24e948(0x1b4)]}),(_0x4813ca=this[_0x24e948(0x123)](_0x53a228))==null||_0x4813ca['makeDirty'](!0x0),this[_0x24e948(0x301)]=this[_0x24e948(0xce)](_0x2dd13c[_0x24e948(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c[_0x24e948(0x2eb)]),this[_0x24e948(0x1d5)](),_0x2b9f5b[_0x24e948(0x2be)]();}}),this[_0x53c4dd(0x1b1)]=_0x53a228[_0x53c4dd(0xe1)][_0x53c4dd(0x115)]((_0xd873cd,_0xca9f3a)=>{const _0x1147f1=_0x53c4dd;var _0xf72f7a,_0x41856a;(_0xf72f7a=this[_0x1147f1(0xc6)])==null||_0xf72f7a[_0x1147f1(0x147)](),(_0x41856a=this[_0x1147f1(0x1b1)])==null||_0x41856a[_0x1147f1(0x147)](),_0x53a228[_0x1147f1(0x2cf)]();let _0x3b52da=this['_activeAdjustInfo'];if(_0x3b52da&&this[_0x1147f1(0x260)]){let _0x44e307={};for(let _0x10e07f of Object[_0x1147f1(0xdc)](_0x3b52da[_0x1147f1(0x1bc)])){let _0x368d9a=this[_0x1147f1(0x260)][_0x1147f1(0x14c)](_0x10e07f);_0x368d9a!==void 0x0&&(_0x44e307[_0x10e07f]=_0x368d9a);}Object[_0x1147f1(0xdc)](_0x44e307)[_0x1147f1(0xb3)]>0x0&&Jr(this['_commandService'],_0x2dd13c[_0x1147f1(0x1e2)],_0x2dd13c['subUnitId'],_0x2dd13c[_0x1147f1(0x2eb)],{'oldShapeData':{'adjustValues':_0x5290e0}},{'adjustValues':_0x44e307});}this[_0x1147f1(0xca)]=void 0x0,this['_activeShapeModel']=void 0x0,this[_0x1147f1(0x159)]=!0x1,_0x53a228[_0x1147f1(0x24a)](),_0xca9f3a[_0x1147f1(0x2be)]();}),_0x43cefa[_0x53c4dd(0x2be)]();})));}[_0xb07969(0x2d9)](){const _0x4cdbb9=_0xb07969;let {scene:_0x125b99}=this[_0x4cdbb9(0x210)],_0x38ea00=_0x125b99['getTransformerByCreate']();this[_0x4cdbb9(0x9c)](_0x38ea00[_0x4cdbb9(0x134)]['subscribe'](_0x16e15c=>{const _0x4232b8=_0x4cdbb9;this['_createShapeAdjustControls'](),_0x16e15c[_0x4232b8(0x169)]!==null&&_0x16e15c[_0x4232b8(0x169)][_0x4232b8(0x25b)]===0x1&&_0x16e15c['objects'][_0x4232b8(0x28b)]()[_0x4232b8(0x303)]()[_0x4232b8(0x1e5)]instanceof Z&&(this[_0x4232b8(0x288)]=!0x0);})),this[_0x4cdbb9(0x9c)](_0x38ea00['changing$']['subscribe'](()=>{const _0x3dba2a=_0x4cdbb9;this[_0x3dba2a(0x288)]&&this[_0x3dba2a(0xa9)]();})),this[_0x4cdbb9(0x9c)](_0x125b99[_0x4cdbb9(0xe1)][_0x4cdbb9(0x115)](()=>{const _0x49f2c6=_0x4cdbb9;this[_0x49f2c6(0x288)]&&(this[_0x49f2c6(0x288)]=!0x1,this[_0x49f2c6(0x14a)]());})),this[_0x4cdbb9(0x9c)](_0x38ea00[_0x4cdbb9(0x26a)]['subscribe'](()=>{const _0x2ad2eb=_0x4cdbb9;this[_0x2ad2eb(0x150)]&&this[_0x2ad2eb(0x138)]&&this[_0x2ad2eb(0x157)]&&(this[_0x2ad2eb(0x301)]=this[_0x2ad2eb(0xce)](this['_unitId'],this[_0x2ad2eb(0x138)],this[_0x2ad2eb(0x157)]),this[_0x2ad2eb(0x1d5)]());}));}[_0xb07969(0x2ef)](){const _0xfc4dfe=_0xb07969;this['disposeWithMe'](this[_0xfc4dfe(0xaa)][_0xfc4dfe(0x2ad)](_0x2a5578=>{const _0x585b77=_0xfc4dfe;if(_0x2a5578['id']!==_0x493300['id'])return;let {unitId:_0x303d12,shapeId:_0x555873}=_0x2a5578[_0x585b77(0x1bf)];_0x303d12===this[_0x585b77(0x150)]&&_0x555873===this['_activeShapeId']&&this[_0x585b77(0x13f)]();})),this[_0xfc4dfe(0x9c)](this['_drawingManagerService'][_0xfc4dfe(0x1d4)][_0xfc4dfe(0xc4)](_0x1c0d17=>{const _0x867a11=_0xfc4dfe;if(_0x1c0d17[_0x867a11(0xb3)]===0x1){let _0x68047e=_0x1c0d17[0x0],_0x4c45f8=this[_0x867a11(0x198)][_0x867a11(0x228)](_0x68047e);if((_0x4c45f8==null?void 0x0:_0x4c45f8['drawingType'])===_0x507337[_0x867a11(0x1b8)]){this['_activeShapeId']=_0x68047e['drawingId'],this[_0x867a11(0x150)]=_0x68047e[_0x867a11(0x1e2)],this[_0x867a11(0x138)]=_0x68047e[_0x867a11(0x2ae)],this[_0x867a11(0x301)]=this[_0x867a11(0xce)](_0x68047e['unitId'],_0x68047e[_0x867a11(0x2ae)],_0x68047e[_0x867a11(0x2eb)]),this[_0x867a11(0xa9)](),this[_0x867a11(0x14a)]();return;}}this[_0x867a11(0x157)]=null,this[_0x867a11(0x301)]=void 0x0,this[_0x867a11(0x150)]=null,this[_0x867a11(0x138)]=null,this[_0x867a11(0xa9)]();})),this[_0xfc4dfe(0x9c)](_0x50281f(this[_0xfc4dfe(0x198)][_0xfc4dfe(0x29a)],this[_0xfc4dfe(0x198)][_0xfc4dfe(0x19a)])['subscribe'](_0x53c93b=>{const _0x2303f1=_0xfc4dfe;var _0x2f2018;let _0x5d4d83=_0x53c93b['find'](_0x2a0eb9=>_0x2a0eb9['drawingId']===this[_0x2303f1(0x157)]&&_0x2a0eb9[_0x2303f1(0x1e2)]===this[_0x2303f1(0x150)]&&_0x2a0eb9[_0x2303f1(0x2ae)]===this['_subUnitId']);_0x5d4d83&&((_0x2f2018=this[_0x2303f1(0x198)]['getDrawingByParam'](_0x5d4d83))==null?void 0x0:_0x2f2018['drawingType'])===_0x507337[_0x2303f1(0x1b8)]&&this[_0x2303f1(0xf1)](!0x0);})),this[_0xfc4dfe(0x9c)](this[_0xfc4dfe(0x198)][_0xfc4dfe(0x200)]['subscribe'](_0x26cd35=>{const _0x407af7=_0xfc4dfe;for(let _0x3281c4 of _0x26cd35)this['_activeShapeId']===_0x3281c4[_0x407af7(0x2eb)]&&(this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x407af7(0x150)]=null,this[_0x407af7(0x138)]=null,this['_clearShapeAdjustControls']());}));}};Ki=q([K(0x1,_0x5e0832),K(0x2,_0x4e047b(_0x36af82)),K(0x3,_0x4e68a9)],Ki);let Q=class extends _0x47cfe0{constructor(_0x3410b9,_0x4417f0){const _0x42ee89=_0xb07969;super(),this[_0x42ee89(0x15a)]=_0x3410b9,this[_0x42ee89(0x2d3)]=_0x4417f0,X(this,_0x42ee89(0x104),new _0x1e3b2d(null)),X(this,'editingParams$',this[_0x42ee89(0x104)][_0x42ee89(0x2e5)]()),X(this,'_onSavingEditorData$',new _0x1e3b2d(!0x1)),X(this,_0x42ee89(0x130),this[_0x42ee89(0x248)][_0x42ee89(0x2e5)]()),X(this,_0x42ee89(0x254),void 0x0),this[_0x42ee89(0x9c)](this[_0x42ee89(0x15a)][_0x42ee89(0x1d9)]['subscribe'](()=>{const _0x81da13=_0x42ee89;let _0x19c460=this['getEditing']();_0x19c460!=null&&_0x19c460['visible']&&!this[_0x81da13(0xa4)](_0x19c460)&&this[_0x81da13(0x1d1)](null);}));}['dispose'](){const _0x389834=_0xb07969;this[_0x389834(0x15c)](),this[_0x389834(0x104)][_0x389834(0x303)](null),this[_0x389834(0x104)][_0x389834(0x236)](),this[_0x389834(0x248)][_0x389834(0x303)](!0x1),this['_onSavingEditorData$'][_0x389834(0x236)](),super['dispose']();}[_0xb07969(0x1d1)](_0x4a1a44){const _0x513364=_0xb07969;(_0x4a1a44==null||!_0x4a1a44[_0x513364(0x1f6)]||this[_0x513364(0xa4)](_0x4a1a44))&&(this[_0x513364(0x15c)](),this[_0x513364(0x104)][_0x513364(0x303)](_0x4a1a44),(_0x4a1a44==null||_0x4a1a44['visible']&&this[_0x513364(0x248)][_0x513364(0x107)]())&&this['_onSavingEditorData$'][_0x513364(0x303)](!0x1));}[_0xb07969(0x25f)](_0x546a3e){const _0x313beb=_0xb07969;this[_0x313beb(0x248)][_0x313beb(0x303)](_0x546a3e);}[_0xb07969(0x26b)](){const _0x3904f1=_0xb07969;return this[_0x3904f1(0x104)]['getValue']();}['_canEdit'](_0x1c3906){const _0x23ea64=_0xb07969;let _0x782b9=this[_0x23ea64(0x2d3)]['getUnit'](_0x1c3906[_0x23ea64(0x1e2)],_0x1b3194['UNIVER_DOC']);if(!_0x782b9)return!0x0;let _0x5d5876=_0x502f97(_0x782b9,_0x1c3906['shapeId']);return _0x33aa98(this[_0x23ea64(0x15a)],_0x1c3906[_0x23ea64(0x1e2)],[..._0x57f81a(_0x782b9,_0x5d5876,_0x23ea64(0x2ec),_0x1c3906[_0x23ea64(0x1f0)]),_0x4ecdaa(_0x5d5876,_0x23ea64(0x2ec),_0x1c3906[_0x23ea64(0x1f0)])]);}['completeEditing'](_0x582f07){const _0x2c2ec8=_0xb07969;let _0x4aafb7=this[_0x2c2ec8(0x26b)]();_0x4aafb7&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x44688e=_0x2c2ec8;this[_0x44688e(0x254)]=void 0x0,this[_0x44688e(0x26b)]()===_0x4aafb7&&this['setEditing'](null);}));}[_0xb07969(0x15c)](){const _0x28c8b6=_0xb07969;this[_0x28c8b6(0x254)]!==void 0x0&&(cancelAnimationFrame(this[_0x28c8b6(0x254)]),this['_completionFrame']=void 0x0);}[_0xb07969(0x18d)](){const _0x1d5288=_0xb07969;this['getEditing']()&&this[_0x1d5288(0x1d1)](null);}};Q=q([K(0x0,_0x52503b),K(0x1,_0x97a100)],Q);function qi(_0x386c56){const _0x3024ab=_0xb07969;return _0x386c56[_0x3024ab(0x10e)]===!0x0||_0x386c56[_0x3024ab(0x10e)]===_0x16c0b3[_0x3024ab(0x18c)]||_0x386c56[_0x3024ab(0x192)]===_0x1fafc0[_0x3024ab(0x2ed)]&&_0x386c56[_0x3024ab(0x22e)]===_0x16c0b3[_0x3024ab(0x18c)]?_0xad1241-0x1:_0x2958d1;}let $=class extends _0x47cfe0{constructor(_0x27137c,_0x1a3f35,_0x1ac993,_0x2cd27f,_0xa469e,_0x11ef24,_0x23eda2){const _0x142f9e=_0xb07969;super(),this['_drawingManagerService']=_0x27137c,this[_0x142f9e(0x1ce)]=_0x1a3f35,this[_0x142f9e(0x16c)]=_0x1ac993,this[_0x142f9e(0x242)]=_0x2cd27f,this[_0x142f9e(0x2d4)]=_0xa469e,this[_0x142f9e(0x208)]=_0x11ef24,this[_0x142f9e(0x281)]=_0x23eda2,X(this,_0x142f9e(0x16b),new Map()),this['disposeWithMe'](this[_0x142f9e(0x281)]['presentationChanged$'][_0x142f9e(0xc4)](_0x1b97a5=>{const _0x2281c8=_0x142f9e;var _0x3d5dab;(_0x3d5dab=this[_0x2281c8(0x16b)][_0x2281c8(0x1af)](this[_0x2281c8(0xc1)](_0x1b97a5['unitId'],_0x1b97a5['subUnitId'],_0x1b97a5[_0x2281c8(0x1f0)])))==null||_0x3d5dab[_0x2281c8(0x2d7)](_0x39a4c9=>_0x39a4c9[_0x2281c8(0xf2)](_0x1b97a5[_0x2281c8(0x2c3)],_0x1b97a5['animationEnabled']));})),this['disposeWithMe'](this[_0x142f9e(0x198)]['remove$']['subscribe'](_0x1a1c39=>{_0x1a1c39['forEach'](_0x5ca237=>{const _0x15ad4f=_0x56ec;this['_shapeFormulaService'][_0x15ad4f(0xb8)]({'unitId':_0x5ca237['unitId'],'subUnitId':_0x5ca237[_0x15ad4f(0x2ae)],'shapeId':_0x5ca237[_0x15ad4f(0x2eb)]}),this[_0x15ad4f(0x16b)][_0x15ad4f(0x14e)](this[_0x15ad4f(0xc1)](_0x5ca237[_0x15ad4f(0x1e2)],_0x5ca237[_0x15ad4f(0x2ae)],_0x5ca237[_0x15ad4f(0x2eb)]));});}));}[_0xb07969(0x1a0)](_0x4b0cca,_0x42e79d){const _0x10229c=_0xb07969;let {transform:_0x2713cb,drawingType:_0x4dabb4,srcRect:_0x4b1b9f,prstGeom:_0x20c083,groupId:_0x3bfd8d,unitId:_0xcc984e,subUnitId:_0x142b7e,drawingId:_0x2ae1a5,isMultiTransform:_0x3d6cc6,transforms:_0x11b6bf,hidden:_0x162db0,selectable:_0x4330af}=_0x4b0cca;if(_0x4dabb4!==_0x507337[_0x10229c(0x1b8)]||!this[_0x10229c(0x198)][_0x10229c(0x2d1)]()||_0x2713cb==null)return;let _0x432e95=this[_0x10229c(0x198)][_0x10229c(0x128)](),_0x223314=_0x3d6cc6&&_0x11b6bf?_0x11b6bf:[_0x2713cb],_0x37be73=[];for(let [_0x4b1b17,_0x8a5b93]of _0x223314['entries']()){let {left:_0x3902f0,top:_0x3ebe1a,width:_0x5a4cbf,height:_0x4b1504,angle:_0x5b3ed8,flipX:_0xb7f5bf,flipY:_0x2a127a,skewX:_0x4b6c79,skewY:_0x4782bc}=_0x8a5b93,_0x7171ed=_0x4dbb43({'unitId':_0xcc984e,'subUnitId':_0x142b7e,'drawingId':_0x2ae1a5},_0x3d6cc6?_0x4b1b17:void 0x0),_0x622e0c=_0x42e79d[_0x10229c(0x1e9)](_0x7171ed);if(_0x622e0c!=null){let _0x2ffc41={'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5};_0x622e0c instanceof Z&&this[_0x10229c(0x264)](_0x622e0c,_0x2ffc41),_0x622e0c[_0x10229c(0x29e)]({'left':_0x3902f0,'top':_0x3ebe1a,'width':_0x5a4cbf,'height':_0x4b1504,'angle':_0x5b3ed8,'flipX':_0xb7f5bf,'flipY':_0x2a127a,'skewX':_0x4b6c79,'skewY':_0x4782bc});continue;}let _0x50ad7d=this['_drawingManagerService'][_0x10229c(0x189)](_0xcc984e,_0x142b7e),_0x4f782f=_0x50ad7d[_0x10229c(0xcf)](_0x2ae1a5);if(_0x42e79d['getObjectIncludeInGroup'](_0x7171ed)||!this['_drawingManagerService'][_0x10229c(0x2d1)]())continue;let _0x47e2de=this[_0x10229c(0x1ce)][_0x10229c(0xbe)](_0xcc984e,_0x142b7e,_0x2ae1a5);if(!_0x47e2de)continue;let _0x3b6c5d=_0x1c9494(_0x47e2de[_0x10229c(0x2ce)]())?{..._0xdd8679,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xdd8679,_0x15c8bc=_0x47e2de[_0x10229c(0x20d)]()[_0x10229c(0xe8)],_0x4fb712={'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5};_0x15c8bc&&this[_0x10229c(0x281)][_0x10229c(0x2e2)](_0x4fb712,_0x15c8bc);let _0x255fa9=new Z(_0x7171ed,{..._0x8a5b93,'zIndex':_0x4f782f===-0x1?_0x50ad7d[_0x10229c(0xb3)]-0x1:_0x4f782f,'shapeModel':_0x47e2de,'localeService':this[_0x10229c(0x16c)],'shapeId':_0x2ae1a5,'unitId':_0xcc984e,'subUnitId':_0x142b7e,'visible':_0x162db0!==!0x0,'evented':_0x4330af!==!0x1,'formulaPresentation':_0x15c8bc?this[_0x10229c(0x281)][_0x10229c(0x1cd)](_0x4fb712):void 0x0,'animateFormulaPresentation':(_0x15c8bc==null?void 0x0:_0x15c8bc[_0x10229c(0x2ea)])!==!0x1,'transformerConfig':_0x3b6c5d});if(_0x15c8bc){let _0x9cb24a=this['_formulaKey'](_0xcc984e,_0x142b7e,_0x2ae1a5),_0x4b50a0=this['_formulaShapes'][_0x10229c(0x1af)](_0x9cb24a)??new Set();_0x4b50a0[_0x10229c(0x2cd)](_0x255fa9),this[_0x10229c(0x16b)][_0x10229c(0x220)](_0x9cb24a,_0x4b50a0);}this['disposeWithMe'](_0x35b1c9(_0x255fa9['onDblclick$']['subscribeEvent']((_0x481fd8,_0x3178ee)=>{const _0x5b3e2e=_0x10229c;_0x47e2de[_0x5b3e2e(0x21c)]()||_0x15c8bc||(this[_0x5b3e2e(0x208)][_0x5b3e2e(0x1d1)]({'visible':!0x0,'unitId':_0xcc984e,'subUnitId':_0x142b7e,'shapeId':_0x2ae1a5,'shapeKey':_0x255fa9[_0x5b3e2e(0x1ea)]}),_0x3178ee['stopPropagation']());}))),_0x42e79d[_0x10229c(0xa0)](_0x255fa9,qi(_0x4b0cca)),_0x432e95&&_0x42e79d[_0x10229c(0x143)](_0x255fa9),_0x3bfd8d&&_0x3cac50({'drawingId':_0x3bfd8d,'unitId':_0xcc984e,'subUnitId':_0x142b7e},_0x255fa9,_0x42e79d,this[_0x10229c(0x198)],_0x3d6cc6?_0x4b1b17:void 0x0),_0x20c083!=null&&_0x255fa9[_0x10229c(0xf8)](_0x20c083),_0x4b1b9f!=null&&_0x255fa9['setSrcRect'](_0x4b1b9f),this[_0x10229c(0x2f1)](_0x255fa9,_0x47e2de[_0x10229c(0x20d)]()),_0x37be73[_0x10229c(0xab)](_0x255fa9);}return _0x37be73;}[_0xb07969(0xc1)](_0x3715c0,_0x53edc3,_0x5d3398){return _0x3715c0+'\x00'+_0x53edc3+'\x00'+_0x5d3398;}[_0xb07969(0x264)](_0x4db3c4,_0xec3426){const _0x2cfde9=_0xb07969;let _0xed579d=this[_0x2cfde9(0x1ce)][_0x2cfde9(0xbe)](_0xec3426[_0x2cfde9(0x1e2)],_0xec3426[_0x2cfde9(0x2ae)],_0xec3426[_0x2cfde9(0x1f0)]),_0x50e67b=_0xed579d==null?void 0x0:_0xed579d['getShapeData']()[_0x2cfde9(0xe8)],_0x441569=this[_0x2cfde9(0xc1)](_0xec3426[_0x2cfde9(0x1e2)],_0xec3426[_0x2cfde9(0x2ae)],_0xec3426['shapeId']);if(_0x50e67b){this[_0x2cfde9(0x281)][_0x2cfde9(0x2e2)](_0xec3426,_0x50e67b);let _0x3d29e0=this['_formulaShapes'][_0x2cfde9(0x1af)](_0x441569)??new Set();_0x3d29e0[_0x2cfde9(0x2cd)](_0x4db3c4),this[_0x2cfde9(0x16b)]['set'](_0x441569,_0x3d29e0);}else{var _0x725efb;this['_shapeFormulaService'][_0x2cfde9(0xb8)](_0xec3426),(_0x725efb=this['_formulaShapes']['get'](_0x441569))==null||_0x725efb[_0x2cfde9(0x14e)](_0x4db3c4);}_0x4db3c4[_0x2cfde9(0xf2)](_0x50e67b?this[_0x2cfde9(0x281)][_0x2cfde9(0x1cd)](_0xec3426):void 0x0,(_0x50e67b==null?void 0x0:_0x50e67b['animationEnabled'])!==!0x1);}[_0xb07969(0x237)](_0x106a46){const _0x42df79=_0xb07969;let _0x6eb5d6=_0x106a46[_0x42df79(0x238)][_0x42df79(0x20d)](),_0x20d85e=_0x6eb5d6[_0x42df79(0x2c9)];if(!_0x20d85e||_0x20d85e[_0x42df79(0x2c0)]!==_0x32374d['PictureFill']||!_0x20d85e['fillImageSource']){_0x106a46[_0x42df79(0x222)](void 0x0);return;}this[_0x42df79(0x2f1)](_0x106a46,_0x6eb5d6);}[_0xb07969(0x2f1)](_0x5b90d6,_0x142795){const _0x44f851=_0xb07969;let _0x2d3c66=_0x142795[_0x44f851(0x2c9)];if(!_0x2d3c66||_0x2d3c66[_0x44f851(0x2c0)]!==_0x32374d[_0x44f851(0x268)]||!_0x2d3c66[_0x44f851(0x112)])return;let _0x1424dc=_0x2d3c66[_0x44f851(0x112)],_0x124141=_0x2d3c66['fillImageSourceType']??_0x2c3528['URL'],_0xa29e3=this['_imageIoService'][_0x44f851(0x19b)](_0x1424dc,_0x124141);if(_0xa29e3){_0x5b90d6[_0x44f851(0x222)](_0xa29e3);return;}this['_loadAndSetImage'](_0x5b90d6,_0x1424dc,_0x124141);}async[_0xb07969(0x2f7)](_0x168d3c,_0x36cb56,_0x4fab10){const _0x517b1d=_0xb07969;let _0x1b2d44;try{if(_0x4fab10===_0x2c3528[_0x517b1d(0xe9)])_0x1b2d44=await this[_0x517b1d(0x242)][_0x517b1d(0x270)](_0x36cb56);else{if(_0x4fab10===_0x2c3528['URL'])try{_0x1b2d44=await this['_urlImageService'][_0x517b1d(0x270)](_0x36cb56);}catch{_0x1b2d44=_0x36cb56;}else _0x1b2d44=_0x36cb56;}}catch(_0x40aa1d){console[_0x517b1d(0x12b)](_0x517b1d(0x176),_0x40aa1d);return;}let _0x5ca4fa=new window[(_0x517b1d(0x278))]();_0x5ca4fa[_0x517b1d(0x25d)]=()=>{this['_imageIoService']['addImageSourceCache'](_0x36cb56,_0x4fab10,_0x5ca4fa),_0x168d3c['setFillImage'](_0x5ca4fa);},_0x5ca4fa[_0x517b1d(0x266)]=()=>{const _0x2aece4=_0x517b1d;console[_0x2aece4(0x12b)](_0x2aece4(0xd4),_0x36cb56);},_0x5ca4fa[_0x517b1d(0x1c5)]=_0x1b2d44;}};$=q([K(0x0,_0x5e0832),K(0x1,_0x4e047b(_0x36af82)),K(0x2,_0x4e047b(_0xe303eb)),K(0x3,_0x9eb47c),K(0x4,_0x501ca3),K(0x5,_0x4e047b(Q)),K(0x6,_0x4e047b(_0x184033))],$);let Ji=class extends _0x47cfe0{constructor(_0x1b60df,_0x58afc9,_0x8dce7a){const _0x110bbf=_0xb07969;super(),this[_0x110bbf(0xbc)]=_0x1b60df,this[_0x110bbf(0x198)]=_0x58afc9,this[_0x110bbf(0x15b)]=_0x8dce7a,this[_0x110bbf(0x1f3)]();}[_0xb07969(0x1f3)](){const _0x59dc11=_0xb07969;this['disposeWithMe'](this['_docPrintInterceptorService'][_0x59dc11(0x2dc)][_0x59dc11(0x2e8)](this[_0x59dc11(0xbc)]['interceptor'][_0x59dc11(0x103)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1c27cc,_0x427302,_0x475b7a)=>{const _0x4c6251=_0x59dc11;var _0x4d4b30;let {unitId:_0x492624,scene:_0x809368,skeleton:_0x16d06e}=_0x427302,{pageIndex:_0x4b26d5}=_0x427302,_0x131d6c=(_0x4d4b30=this[_0x4c6251(0x198)][_0x4c6251(0xcb)](_0x492624))==null?void 0x0:_0x4d4b30[_0x492624],_0x2fd9ad=Yi(this['_docPrintInterceptorService'],_0x16d06e,_0x4b26d5);return _0x131d6c==null||_0x131d6c[_0x4c6251(0x18e)][_0x4c6251(0x2d7)](_0x5b1067=>{const _0x441a14=_0x4c6251;if(_0x2fd9ad&&!_0x2fd9ad[_0x441a14(0x2f2)](_0x5b1067))return;let _0x2185eb=_0x131d6c[_0x441a14(0x1a1)][_0x5b1067];_0x2185eb[_0x441a14(0x297)]===_0x507337[_0x441a14(0x1b8)]&&!_0x2185eb['hidden']&&this[_0x441a14(0x15b)][_0x441a14(0x1a0)](_0x2185eb,_0x809368);}),_0x475b7a(_0x1c27cc);}}));}};Ji=q([K(0x0,_0x4e047b(_0x20923d)),K(0x1,_0x5e0832),K(0x2,_0x4e047b($))],Ji);function Yi(_0x9e5bd9,_0x3edfef,_0x16ad49){const _0xba41c9=_0xb07969;var _0x5717f0,_0x44c168;let _0x4ab11c=_0x9e5bd9;if(_0x4ab11c[_0xba41c9(0x28d)])return _0x4ab11c['getPageDrawingIds'](_0x3edfef,_0x16ad49);let _0x585ce4=_0x3edfef[_0xba41c9(0xe0)]();if(!_0x585ce4||_0x585ce4[_0xba41c9(0xdd)][_0xba41c9(0xb3)]<=0x1||_0x16ad49==null)return null;let _0x52a03c=new Set(),_0x10e39c=_0x585ce4[_0xba41c9(0xdd)][_0x16ad49];if(!_0x10e39c)return _0x52a03c;Xi(_0x10e39c,_0x52a03c);let _0x3d9847=(_0x5717f0=_0x585ce4[_0xba41c9(0x245)]['get'](_0x10e39c[_0xba41c9(0xd1)]))==null?void 0x0:_0x5717f0[_0xba41c9(0x1af)](_0x10e39c[_0xba41c9(0x28a)]),_0x42080a=(_0x44c168=_0x585ce4[_0xba41c9(0x292)][_0xba41c9(0x1af)](_0x10e39c[_0xba41c9(0x215)]))==null?void 0x0:_0x44c168['get'](_0x10e39c['pageWidth']);return _0x3d9847&&Xi(_0x3d9847,_0x52a03c),_0x42080a&&Xi(_0x42080a,_0x52a03c),_0x52a03c;}function Xi(_0x1e0a89,_0x3260ce){const _0x4cba2b=_0xb07969;for(let _0x214c39 of _0x1e0a89[_0x4cba2b(0x146)][_0x4cba2b(0xdc)]())_0x3260ce[_0x4cba2b(0x2cd)](_0x214c39);for(let _0x23fe0c of _0x1e0a89[_0x4cba2b(0xbb)][_0x4cba2b(0x28b)]())for(let _0x37feab of _0x23fe0c[_0x4cba2b(0x2ca)])for(let _0x4669db of _0x37feab[_0x4cba2b(0x21b)])Xi(_0x4669db,_0x3260ce);}function Zi(_0x1fece4){return _0x3ae1d4(Hr,{..._0x1fece4,'PickerComponent':_0x507df6});}function Qi(){const _0x1ad9ed=_0xb07969;let _0x3f3600=_0x2c5b17(_0xe303eb),_0xddd6ac=zr(),[_0x18af3a,_0x8a70e4]=_0x32384b(!0x1);return _0x3f77f7('div',{'className':_0x1ad9ed(0x19e),'children':[_0x3ae1d4(_0x53dacb,{'title':_0x3f3600['t'](_0x1ad9ed(0x1d6)),'aria-expanded':_0x18af3a,'variant':'subtle','trailing':_0x3ae1d4(_0x18af3a?_0x5250f0:_0x5e6b79,{}),'onClick':()=>_0x8a70e4(_0x58bdd8=>!_0x58bdd8)}),_0x18af3a&&_0x3ae1d4(_0x507df6,{'excludeGroups':[_0x4d18eb[_0x1ad9ed(0xb9)]],'onShapeClick':_0x2acfec=>{_0xddd6ac(_0x2acfec),_0x8a70e4(!0x1);}})]});}function $i(_0x327afb){const _0x575aff=_0xb07969;return _0x327afb[_0x575aff(0x229)]()||void 0x0;}function ea(_0x5f72fa,_0x2edbb1,_0x40b213){const _0x28a56e=_0xb07969;var _0x1a5273,_0x446054;return((_0x1a5273=_0x5f72fa[_0x28a56e(0xcd)])==null?void 0x0:_0x1a5273[_0x28a56e(0x229)]())||((_0x446054=_0x5f72fa[_0x28a56e(0x167)])==null?void 0x0:_0x446054[_0x28a56e(0x229)]())||_0x40b213['t'](_0x28a56e(0xd9)+_0x41e6a6(_0x5f72fa['drawingType']))+'\x20'+(_0x2edbb1+0x1);}function ta({PanelComponent:_0x51d060=_0x3aafaf}){const _0x36a468=_0xb07969;let _0x15974c=_0x2c5b17(_0xe303eb),_0x2508b3={'title':_0x15974c['t'](_0x36a468(0xa5)),'empty':_0x15974c['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x15974c['t'](_0x36a468(0x234)),'hideAll':_0x15974c['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x15974c['t'](_0x36a468(0x2db)),'unlockAll':_0x15974c['t'](_0x36a468(0x188)),'moveForward':_0x15974c['t'](_0x36a468(0x11a)),'moveBackward':_0x15974c['t'](_0x36a468(0x177)),'close':_0x15974c['t'](_0x36a468(0x202)),'show':_0x15974c['t'](_0x36a468(0x300)),'hide':_0x15974c['t'](_0x36a468(0xbd)),'lock':_0x15974c['t']('drawing-ui.objectListPanel.lock'),'unlock':_0x15974c['t'](_0x36a468(0x2d0)),'lockHint':_0x15974c['t'](_0x36a468(0x26c)),'unlockHint':_0x15974c['t'](_0x36a468(0x24f)),'name':_0x15974c['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x15974c['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x15974c['t'](_0x36a468(0x1b0)),'descriptionPlaceholder':_0x15974c['t'](_0x36a468(0x1df)),'details':_0x15974c['t'](_0x36a468(0x2f6)),'noSelection':_0x15974c['t'](_0x36a468(0x11c)),'locate':_0x15974c['t']('drawing-ui.objectListPanel.locate'),'expand':_0x15974c['t'](_0x36a468(0x216)),'collapse':_0x15974c['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x15974c['t'](_0x36a468(0x247)),'search':_0x15974c['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x15974c['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x15974c['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x15974c['t'](_0x36a468(0x2b1)),'sectionCanvas':_0x15974c['t'](_0x36a468(0xc5)),'sectionFloating':_0x15974c['t'](_0x36a468(0xa1))},_0x2472aa=_0x2c5b17(_0x4e68a9),_0x3ffd88=_0x2c5b17(_0x97a100),_0x177a1a=_0x2c5b17(_0x15a612),_0xec8fe0=_0x2c5b17(_0x5e0832),_0x39e018=_0x2c5b17(_0x2de7f2),[,_0x5de4c8]=_0x144fd5(_0x3e559e=>_0x3e559e+0x1,0x0),_0x3c4539=_0x3ffd88['getCurrentUnitOfType'](_0x1b3194[_0x36a468(0xc7)]),_0x56f095=(_0x3c4539==null?void 0x0:_0x3c4539['getUnitId']())??'',_0xeac5c2=_0x56f095,_0x3c1a8c=_0x291a35(()=>_0xec8fe0['focus$'],_0xec8fe0[_0x36a468(0x197)](),!0x1,[_0xec8fe0]);_0x25db27(()=>{const _0x97e0e0=_0x36a468;let _0x57f1e4=_0x2472aa[_0x97e0e0(0x2ad)](()=>_0x5de4c8());return()=>_0x57f1e4[_0x97e0e0(0x1f8)]();},[_0x2472aa]);let _0x2233e6=_0x56f095?_0x177a1a[_0x36a468(0x19d)](_0x56f095,_0xeac5c2):{},_0x217bf7=(_0x56f095?_0x177a1a[_0x36a468(0x189)](_0x56f095,_0xeac5c2):[])[_0x36a468(0x239)](_0x533d34=>_0x2233e6[_0x533d34])['filter'](_0x69534=>!!_0x69534)['reverse'](),_0x4c29d4=_0x217bf7[_0x36a468(0x131)]((_0x4ee69f,_0x5ed34d)=>(_0x4ee69f[_0x3c3b87(_0x5ed34d[_0x36a468(0x297)])]+=0x1,_0x4ee69f),{'canvas':0x0,'floating':0x0}),_0x2155fa={'canvas':0x0,'floating':0x0},_0x1c437a=_0x217bf7['map']((_0x7c16ca,_0x2d99bd)=>{const _0xf73b24=_0x36a468;let _0x5db569=_0x3c3b87(_0x7c16ca[_0xf73b24(0x297)]),_0x56d3f5=_0x5db569===_0x218ad6,_0x56e4a9=_0x2155fa[_0x5db569]++;return{'id':_0x7c16ca[_0xf73b24(0x2eb)],'name':ea(_0x7c16ca,_0x2d99bd,_0x15974c),'description':_0x7c16ca[_0xf73b24(0xb1)],'visible':_0x7c16ca['hidden']!==!0x0,'selectable':_0x7c16ca[_0xf73b24(0x162)]!==!0x1,'sectionId':_0x5db569,'sectionTitle':_0x56d3f5?_0x2508b3[_0xf73b24(0x251)]:_0x2508b3[_0xf73b24(0x27b)],'capabilities':_0x56d3f5?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x56d3f5&&_0x56e4a9>0x0,'canMoveBackward':!_0x56d3f5&&_0x56e4a9<_0x4c29d4[_0xf73b24(0x11f)]-0x1,'canReorder':!_0x56d3f5};}),_0x4d4d61=_0x25a507(()=>(_0x3c1a8c??[])[_0x36a468(0x101)](_0x3f7a4a=>_0x3f7a4a['unitId']===_0x56f095&&_0x3f7a4a[_0x36a468(0x2ae)]===_0xeac5c2)['map'](_0x441cd5=>_0x441cd5[_0x36a468(0x2eb)]),[_0x3c1a8c,_0xeac5c2,_0x56f095]),_0x3c0915=_0x4d4d61[_0x4d4d61[_0x36a468(0xb3)]-0x1]??null,_0x2e2538=_0x17b9a8=>_0x177a1a[_0x36a468(0x228)]({'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x17b9a8})??null,_0x5ebcbc=async _0x17d098=>{const _0x4b0216=_0x36a468;_0x56f095&&_0x17d098[_0x4b0216(0xb3)]&&await _0x2472aa[_0x4b0216(0x21a)](_0x4541aa['id'],{'unitId':_0x56f095,'patches':_0x17d098});},_0x105313=(_0x1748c0,_0x43f638)=>{const _0x34225e=_0x36a468;if(!_0x56f095)return;let _0x50c07d=_0x43f638?_0x4d4d61[_0x34225e(0x283)](_0x1748c0)?_0x4d4d61[_0x34225e(0x101)](_0x40cdda=>_0x40cdda!==_0x1748c0):[..._0x4d4d61,_0x1748c0]:[_0x1748c0];_0x2472aa[_0x34225e(0x152)](_0x3eea09['id'],_0x50c07d['map'](_0x2d5c19=>({'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x2d5c19})));let _0x372e89=_0x50c07d[_0x50c07d['length']-0x1];_0x372e89?_0x5e88aa(_0x39e018,{'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingId':_0x372e89}):_0x1c8463(_0x39e018,_0x56f095);},_0x3e27fc=async(_0x50b073,_0xba5f8e)=>{const _0x1c148f=_0x36a468;await _0x5ebcbc(_0x50b073[_0x1c148f(0x239)](_0x2231ec=>_0x2e2538(_0x2231ec))[_0x1c148f(0x101)](_0xa1d102=>!!_0xa1d102)[_0x1c148f(0x101)](_0x8430d9=>_0x8430d9['hidden']!==!0x0!==_0xba5f8e)[_0x1c148f(0x239)](_0x1bca39=>({'drawingId':_0x1bca39[_0x1c148f(0x2eb)],'hidden':!_0xba5f8e})));},_0x44422b=async(_0x475adb,_0x5433d6)=>{const _0x349d5d=_0x36a468;await _0x5ebcbc(_0x475adb['map'](_0xf0c6a9=>_0x2e2538(_0xf0c6a9))['filter'](_0x2c32bc=>!!_0x2c32bc)[_0x349d5d(0x101)](_0x5753d6=>_0x5753d6['selectable']!==!0x1!==_0x5433d6)[_0x349d5d(0x239)](_0xa643e8=>({'drawingId':_0xa643e8[_0x349d5d(0x2eb)],'selectable':_0x5433d6})));},_0x92791e=_0x282eb9=>{const _0x1de59c=_0x36a468;let _0xfe1143=_0x2e2538(_0x282eb9);if(_0xfe1143)return _0x44422b([_0x282eb9],_0xfe1143[_0x1de59c(0x162)]===!0x1);},_0x575795=async(_0x25e00d,_0x4d7147)=>{const _0x2a1581=_0x36a468;let _0x255b2d=_0x2e2538(_0x25e00d),_0x56e5db=$i(_0x4d7147);!_0x255b2d||(_0x255b2d[_0x2a1581(0xcd)]??void 0x0)===_0x56e5db&&(_0x255b2d[_0x2a1581(0x167)]||void 0x0)===_0x56e5db||await _0x5ebcbc([{'drawingId':_0x25e00d,'name':_0x56e5db,'title':_0x56e5db}]);},_0x48f7c3=async(_0x5d1ff4,_0x4d54b4)=>{let _0x269929=_0x2e2538(_0x5d1ff4),_0x59a272=$i(_0x4d54b4);_0x269929&&(_0x269929['description']??void 0x0)!==_0x59a272&&await _0x5ebcbc([{'drawingId':_0x5d1ff4,'description':_0x59a272}]);},_0x444b60=async(_0x4f0651,_0x1d487c)=>{const _0x58f82c=_0x36a468;_0x56f095&&await _0x2472aa[_0x58f82c(0x21a)](_0x51e9f9['id'],{'unitId':_0x56f095,'subUnitId':_0xeac5c2,'drawingIds':[_0x4f0651],'arrangeType':_0x1d487c});};return _0x56f095?_0x3ae1d4(_0x51d060,{'labels':_0x2508b3,'renderPermissionAction':_0x29301c=>_0x3c4539?_0x3ae1d4(_0x7ed924,{'target':{'unitId':_0x56f095,'objectId':_0x4ecdaa(_0x502f97(_0x3c4539,_0x29301c['id']),_0x36a468(0x2ec),_0x29301c['id']),'objectType':_0x43baa7[_0x36a468(0x1b3)]},'name':_0x29301c[_0x36a468(0xcd)],'commandId':_0x21ace8['id'],'exists':()=>!!_0x2e2538(_0x29301c['id'])},_0x56f095+'/'+_0x29301c['id']):null,'items':_0x1c437a,'selectedIds':_0x4d4d61,'focusedId':_0x3c0915,'showHeader':!0x1,'onSelect':_0x105313,'onSetVisible':_0x3e27fc,'onSetSelectable':_0x44422b,'onCommitName':_0x575795,'onCommitDescription':_0x48f7c3,'onMoveForward':async _0x4473f0=>_0x444b60(_0x4473f0,_0x3c626a[_0x36a468(0x289)]),'onMoveBackward':async _0x411b07=>_0x444b60(_0x411b07,_0x3c626a[_0x36a468(0x184)]),'onToggleSelectable':_0x92791e}):_0x3ae1d4(_0x36a468(0x124),{'className':_0x36a468(0xad),'children':_0x2508b3['title']});}function na(){return _0x3ae1d4(ta,{'PanelComponent':_0x1c1392});}let ra=class{constructor(_0x1f2580){const _0x161cd3=_0xb07969;this[_0x161cd3(0x126)]=_0x1f2580;}[_0xb07969(0x111)](_0x2ae7f2,_0x33bdec){const _0x4d12a2=_0xb07969;let _0x45b43b=this[_0x4d12a2(0x126)][_0x4d12a2(0x1ac)](_0x2ae7f2['unitId']),_0xf5111c=_0x45b43b==null?void 0x0:_0x45b43b[_0x4d12a2(0x27a)];if(!_0xf5111c)return;let _0x8c5cdc=_0x4dbb43(_0x2ae7f2),_0x1b4f2a=_0xf5111c[_0x4d12a2(0x1e9)](_0x8c5cdc);_0x1b4f2a==null||_0x1b4f2a[_0x4d12a2(0x222)](_0x33bdec);}};ra=q([K(0x0,_0x2de7f2)],ra);function ia(){const _0x4358f0=_0xb07969;let _0x74dee8=_0x2c5b17(_0x5e0832),_0x4c0345=_0x291a35(()=>_0x74dee8['focus$'],_0x74dee8[_0x4358f0(0x197)](),!0x1,[_0x74dee8]);return _0x4c0345[_0x4358f0(0xb3)]===0x0?null:_0x3ae1d4('div',{'children':_0x3f77f7(_0x4358f0(0x124),{'className':_0x4358f0(0x2c5),'children':[_0x3ae1d4(_0x314a33,{'drawings':_0x4c0345,'hasCropper':!0x1}),_0x3ae1d4(_0x297d86,{'drawings':_0x4c0345}),_0x3ae1d4(_0x4b41dd,{'drawings':_0x4c0345})]})});}function aa(_0x1c78c2){let {unitId:_0x438732,subUnitId:_0x1f6be3,shapeId:_0x176bbf,PositionComponent:_0x4bbda9=ia}=_0x1c78c2,_0x5c6226=_0x2c5b17(_0x4e68a9),_0x588899=_0x2c5b17(ra);return _0x3ae1d4(_0x5b0408,{..._0x1c78c2,'positionEditor':_0x3ae1d4(_0x4bbda9,{}),'onUpdateShapeData':(_0x6a2f03,_0x577134)=>{Jr(_0x5c6226,_0x438732,_0x1f6be3,_0x176bbf,_0x6a2f03,_0x577134);},'onUpdateLineShapeData':(_0x24982f,_0xb2907d)=>{Yr(_0x5c6226,_0x438732,_0x1f6be3,_0x176bbf,_0x24982f,_0xb2907d);},'onUpdateShapeFillImage':_0x29c409=>{_0x588899['updateShapeFillImage']({'unitId':_0x438732,'subUnitId':_0x1f6be3,'drawingId':_0x176bbf},_0x29c409);}});}function oa(){const _0x2f8157=_0xb07969;let _0x4ee580=_0x2c5b17(_0x5e0832),_0x2caee6=_0x291a35(_0x4ee580[_0x2f8157(0x1d4)],_0x4ee580[_0x2f8157(0x197)]());return _0x2caee6[_0x2f8157(0xb3)]===0x0?null:_0x3f77f7(_0x2f8157(0x124),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x3ae1d4(_0x314a33,{'drawings':_0x2caee6,'hasCropper':!0x1}),_0x3ae1d4(_0x1b9c40,{'drawings':_0x2caee6}),_0x3ae1d4(_0x3c7de0,{'drawings':_0x2caee6})]});}function sa(_0x4f26aa){return _0x3ae1d4(_0x5613de,{'children':_0x3ae1d4(aa,{..._0x4f26aa,'PositionComponent':oa})});}function ca({popup:_0x233fe3}){const _0x2a3b00=_0xb07969;let _0x5172ef=_0x2c5b17(_0xe303eb),{shapeType:_0x4aa553,onText:_0x382c21,onStyle:_0x339db1,onDelete:_0xf8ab45}=_0x233fe3[_0x2a3b00(0x231)],_0x2a1cbb=[{'key':'text','order':0x0,'item':{'id':_0x2a3b00(0x20f),'type':_0x80d687['BUTTON'],'title':_0x5172ef['t']('docs-shape-ui.mobile.text'),'disabled$':_0x3b3dbe(_0x1c9494(_0x4aa553))}},{'key':_0x2a3b00(0x299),'order':0x1,'item':{'id':_0x2a3b00(0x299),'type':_0x80d687[_0x2a3b00(0x2bc)],'title':_0x5172ef['t'](_0x2a3b00(0x2c8))}},{'key':'delete','order':0x2,'item':{'id':_0x2a3b00(0x14e),'type':_0x80d687['BUTTON'],'title':_0x5172ef['t'](_0x2a3b00(0xd8))}}];return _0x3ae1d4(_0x6ccfb9,{'schemas':_0x2a1cbb,'presentation':_0x2a3b00(0x15f),'onOptionSelect':async({id:_0x4fa340})=>{const _0x520af8=_0x2a3b00;_0x4fa340===_0x520af8(0x20f)?await _0x382c21():_0x4fa340==='style'?await _0x339db1():_0x4fa340===_0x520af8(0x14e)&&await _0xf8ab45();}});}const la=_0xb07969(0x27f);function ua(_0x51cf3b,_0x1937b6){const _0x207755=_0xb07969;var _0x51c1ef;let _0x52cb85=_0x51cf3b==null||(_0x51c1ef=_0x51cf3b['getSnapshot']()[_0x207755(0x1a6)])==null?void 0x0:_0x51c1ef[_0x1937b6];return _0x52cb85?_0x52cb85['layoutType']===_0x1fafc0[_0x207755(0x2ed)]?_0x52cb85[_0x207755(0x22e)]===_0x16c0b3[_0x207755(0x18c)]?_0x2db77a[_0x207755(0x163)]:_0x2db77a[_0x207755(0x2aa)]:_0x52cb85[_0x207755(0x192)]===_0x1fafc0[_0x207755(0x140)]?_0x2db77a[_0x207755(0x140)]:_0x52cb85[_0x207755(0x192)]===_0x1fafc0[_0x207755(0x309)]?_0x2db77a[_0x207755(0x309)]:_0x2db77a['INLINE']:_0x2db77a[_0x207755(0xfd)];}function da(_0xa4f791){const _0x3ebca5=_0xb07969;let _0x303334=_0x2c5b17(_0x4df6ac),_0x1ea859=_0x291a35(()=>_0x303334[_0x3ebca5(0x257)],_0x303334[_0x3ebca5(0x109)](),!0x1,[_0x303334]),_0x482c33=_0xa4f791[_0x3ebca5(0x1db)]['extraProps'];return _0x1ea859?_0x3ae1d4(fa,{..._0x482c33,'canvasElement':_0xa4f791['popup']['canvasElement']}):null;}function fa(_0x1136d4){const _0x2de82c=_0xb07969;let _0x3ceba1=_0x2c5b17(_0x4e68a9),_0x3192ff=_0x2c5b17(_0xe303eb),_0x171c3f=_0x2c5b17(_0x36af82),_0x59dbf5=_0x2c5b17(_0x97a100),{unitId:_0x15fe6c,subUnitId:_0x34af6b,drawingId:_0xe0f046,shapeType:_0x2f3cca}=_0x1136d4,[_0x42292f,_0x594b22]=_0x32384b(_0x1136d4[_0x2de82c(0x148)]),_0x1b7225=_0x59dbf5[_0x2de82c(0x1f2)](_0x15fe6c,_0x1b3194['UNIVER_DOC'])??void 0x0,[_0xe0c000,_0x4305c8]=_0x32384b(()=>ua(_0x1b7225,_0xe0f046)),_0x54af24=_0x25a507(()=>_0x4a5c45(_0x42292f),[_0x42292f]),_0x494632=_0x25a507(()=>_0x1fbf5e(_0x42292f),[_0x42292f]);_0x25db27(()=>{const _0x179736=_0x2de82c;let _0x5a8d52=_0x3ceba1[_0x179736(0x2ad)](_0x191f66=>{const _0x3d1d53=_0x179736;if(_0x191f66['id']!==_0x493300['id'])return;let _0x51bb31=_0x171c3f[_0x3d1d53(0x1a2)](_0x15fe6c,_0x34af6b,_0xe0f046);_0x51bb31&&_0x594b22(_0x51bb31);});return()=>_0x5a8d52['dispose']();},[_0x3ceba1,_0x171c3f,_0xe0f046,_0x34af6b,_0x15fe6c]);let _0x3aebc2=_0x32a395=>{_0x594b22(_0x1079f8=>({..._0x1079f8,..._0x32a395}));},_0x579b2f=_0x405161=>{const _0x15b663=_0x2de82c;let _0xe0d580=_0x6f0257(_0x42292f,_0x405161);Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,{'oldShapeData':{'shapeText':_0x42292f[_0x15b663(0x29d)]}},_0xe0d580),_0x3aebc2(_0xe0d580);},_0x3d8601=_0x2ad6d7=>{const _0x4b1478=_0x2de82c;_0x4305c8(_0x2ad6d7),_0x3ceba1[_0x4b1478(0x21a)](_0x3e0463['id'],{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawings':[{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046}],'wrappingStyle':_0x2ad6d7});},_0x57627c=_0x5f4d7f({'hostType':_0x1b3194['UNIVER_DOC'],'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'shapeId':_0xe0f046,'shapeData':_0x42292f,'onUpdateBinding':_0x33c86c=>{let _0x5b2a52={'formulaBinding':_0x33c86c};Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,{'oldShapeData':{'formulaBinding':_0x42292f['formulaBinding']}},_0x5b2a52),_0x3aebc2(_0x5b2a52);}}),_0x3c49c7=[{'label':_0x3192ff['t'](_0x2de82c(0x27e)),'value':_0x2db77a[_0x2de82c(0xfd)],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x129)),'value':_0x2db77a[_0x2de82c(0x140)],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x2db77a['WRAP_TOP_AND_BOTTOM'],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x2fa)),'value':_0x2db77a['BEHIND_TEXT'],'icon':_0x3ae1d4(_0x58b7bb,{})},{'label':_0x3192ff['t'](_0x2de82c(0x2d2)),'value':_0x2db77a[_0x2de82c(0x2aa)],'icon':_0x3ae1d4(_0x58b7bb,{})}];return _0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0x497eb4,{'canvasElement':_0x1136d4['canvasElement'],'shapeData':_0x42292f,'shapeType':_0x2f3cca,'textStyle':{'ff':_0x5d831c[_0x2de82c(0x29d)][_0x2de82c(0x1f5)],'fs':_0x5d831c['shapeText']['fontSize'],'cl':{'rgb':_0x5d831c[_0x2de82c(0x29d)][_0x2de82c(0x100)]},..._0x54af24},'textModel':_0x494632?{'ha':_0x494632['ha']??_0x22763e[_0x2de82c(0x284)],'va':_0x494632['va']??_0x4bcf3d['TOP']}:null,'wrappingStyle':_0xe0c000,'wrappingStyleOptions':_0x3c49c7,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x5d831c[_0x2de82c(0x2c9)],'defaultGradientEndColor':_0x5d831c['gradientEndColor'],'defaultStrokeColor':_0x5d831c[_0x2de82c(0x265)],'extensionGroups':_0x57627c[_0x2de82c(0x209)],'floatingObjectToolbarPosition':_0xe54cac['DOC'],'onUpdateShapeData':(_0x184966,_0x260a89)=>{Jr(_0x3ceba1,_0x15fe6c,_0x34af6b,_0xe0f046,_0x184966,_0x260a89),_0x260a89&&_0x3aebc2(_0x260a89);},'onUpdateText':_0x579b2f,'onUpdateWrappingStyle':_0x201f4c=>_0x3d8601(_0x201f4c),'onOpenPanel':()=>{const _0x20f4e4=_0x2de82c;_0x3ceba1[_0x20f4e4(0x21a)](G['id'],{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046});},'onDelete':()=>{const _0x52188f=_0x2de82c;_0x3ceba1[_0x52188f(0x21a)](_0x5bac08['id'],{'unitId':_0x15fe6c,'drawings':[{'unitId':_0x15fe6c,'subUnitId':_0x34af6b,'drawingId':_0xe0f046}]});}}),_0x57627c[_0x2de82c(0x1c9)]]});}function pa({variant:_0x2f8ef0,extend:_0x48eb87,..._0x2b9651}){const _0xb90356=_0xb07969;let _0x5ab890=_0x3ae1d4(_0xb90356(0x259),{'x':'7','y':_0xb90356(0x2a8),'width':'6','height':'9','rx':'1','fill':_0xb90356(0xb7),'fillOpacity':_0xb90356(0x28f),'stroke':_0xb90356(0xb7),'strokeWidth':_0xb90356(0x12c)});return _0x3f77f7(_0xb90356(0x1fe),{'aria-hidden':'true','fill':'none','height':_0xb90356(0x12e),'viewBox':_0xb90356(0x2fb),'width':'1em',..._0x2b9651,'children':[_0x2f8ef0===_0xb90356(0x226)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x29f),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0xb90356(0x12c)}),_0x3ae1d4('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0xb90356(0x196),'fill':'currentColor','fillOpacity':_0xb90356(0x28f),'stroke':_0xb90356(0xb7),'strokeWidth':_0xb90356(0x12c)})]}),_0x2f8ef0===_0xb90356(0x183)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x191),'stroke':'currentColor','strokeLinecap':_0xb90356(0x9d),'strokeWidth':_0xb90356(0x12c)}),_0x5ab890]}),_0x2f8ef0===_0xb90356(0x193)&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4(_0xb90356(0xe3),{'d':'M2\x203h16M2\x2017h16','stroke':_0xb90356(0xb7),'strokeLinecap':_0xb90356(0x9d),'strokeWidth':'1.2'}),_0x5ab890]}),_0x2f8ef0==='behind'&&_0x3f77f7(_0x488761,{'children':[_0x5ab890,_0x3ae1d4(_0xb90356(0xe3),{'d':_0xb90356(0x1fd),'stroke':_0xb90356(0xb7),'strokeLinecap':'round','strokeWidth':_0xb90356(0x12c)})]}),_0x2f8ef0==='front'&&_0x3f77f7(_0x488761,{'children':[_0x3ae1d4('path',{'d':_0xb90356(0x1fd),'stroke':_0xb90356(0xb7),'strokeLinecap':_0xb90356(0x9d),'strokeWidth':'1.2'}),_0x3ae1d4(_0xb90356(0x259),{'x':'7','y':_0xb90356(0x2a8),'width':'6','height':'9','rx':'1','fill':_0xb90356(0xb7)})]})]});}const ma=_0x53e4d4=>_0x1245f5=>_0x3ae1d4(pa,{..._0x1245f5,'variant':_0x53e4d4}),ha={'DocsShapeWrapInlineIcon':ma(_0xb07969(0x226)),'DocsShapeWrapSquareIcon':ma('square'),'DocsShapeWrapTopBottomIcon':ma(_0xb07969(0x193)),'DocsShapeWrapBehindTextIcon':ma(_0xb07969(0x2b8)),'DocsShapeWrapInFrontOfTextIcon':ma(_0xb07969(0x1ad))},ga=_0xfc0b1e(()=>{const _0x223c1f=_0xb07969;let _0x20115c=_0x2c5b17(Q),_0x594351=_0x2c5b17(_0x36af82),_0x34c7c4=_0x2c5b17(_0x5e0832),_0xcab6bf=_0x2c5b17(_0x4e68a9),_0x1b642c=_0x25a507(()=>({'getShapeModel':(_0x468eb2,_0xe5173f,_0x3670b2)=>_0x594351[_0x223c1f(0xbe)](_0x468eb2,_0xe5173f,_0x3670b2),'getShapeData':(_0x2f59b5,_0x573079,_0x49917e)=>_0x594351[_0x223c1f(0x1a2)](_0x2f59b5,_0x573079,_0x49917e),'getDrawingTransform':(_0x5c979e,_0x93d679,_0x40d2cc)=>{const _0x1f351a=_0x223c1f;let _0x56b480=_0x34c7c4[_0x1f351a(0x228)]({'unitId':_0x5c979e,'subUnitId':_0x93d679,'drawingId':_0x40d2cc});return _0x56b480==null?void 0x0:_0x56b480['transform'];},'updateShapeText':({unitId:_0x418667,shapeId:_0x28c004,shapeText:_0x13e122,oldShapeText:_0x1d49e5})=>{_0xcab6bf['executeCommand'](_0x45ff60['id'],{'unitId':_0x418667,'shapeId':_0x28c004,'shapeData':{'shapeText':_0x13e122},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x1d49e5}}});},'updateHostSize':({unitId:_0x573c6f,subUnitId:_0x2c95f,shapeId:_0x7e4169,width:_0x5c9b15,height:_0xfb9d63})=>{const _0x451303=_0x223c1f;_0xcab6bf[_0x451303(0x21a)](_0x457e80['id'],{'unitId':_0x573c6f,'subUnitId':_0x2c95f,'drawings':[{'drawingId':_0x7e4169,'key':'size','value':{'width':_0x5c9b15,'height':_0xfb9d63}}]});},'allowHostSizeShrink':({unitId:_0x3dc1c5,subUnitId:_0x333509,shapeId:_0x5aac4b})=>_0x3fe775(_0x594351['getShapeDataById'](_0x3dc1c5,_0x333509,_0x5aac4b))}),[_0xcab6bf,_0x594351,_0x34c7c4]),_0x33dc71=_0x25a507(()=>({'viewportKeys':{'main':_0x348953[_0x223c1f(0x256)]}}),[]);return _0x3ae1d4(_0x215be5,{'adapter':_0x1b642c,'editingService':_0x20115c,'editorUnitId':kr,'positionOptions':_0x33dc71});});let _a=class extends _0x47cfe0{constructor(_0x5f190b,_0x3cdd6c){const _0x34a8f8=_0xb07969;super(),this['_componentManager']=_0x5f190b,this[_0x34a8f8(0x306)]=_0x3cdd6c,this[_0x34a8f8(0x127)](),this[_0x34a8f8(0x135)]();}['_registerIcons'](){const _0xf277fa=_0xb07969;this['_iconManager']['has'](_0xf277fa(0x144))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'ObjectLayersIcon':_0x11cff1})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0x2ee))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'BottomIcon':_0x191e47})),this[_0xf277fa(0x306)]['has'](_0xf277fa(0x170))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)]['register']({'MoveDownIcon':_0x54d043})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0xed))||this[_0xf277fa(0x9c)](this['_iconManager'][_0xf277fa(0x2e2)]({'MoveUpIcon':_0x42135f})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)]('ShapeFormatSettingIcon')||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)]['register']({'ShapeFormatSettingIcon':_0x3eea86})),this[_0xf277fa(0x306)][_0xf277fa(0x2f2)](_0xf277fa(0x161))||this[_0xf277fa(0x9c)](this[_0xf277fa(0x306)][_0xf277fa(0x2e2)]({'TopmostIcon':_0x3f3ea3})),this[_0xf277fa(0x9c)](this['_iconManager'][_0xf277fa(0x2e2)](ha));}[_0xb07969(0x135)](){const _0x5b7f58=_0xb07969;this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](W,sa)),this[_0x5b7f58(0x121)](),this[_0x5b7f58(0x227)](),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](Zr,ri)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](Xr,ii)),this['disposeWithMe'](this['_componentManager'][_0x5b7f58(0x2e2)](Qr,ai)),this[_0x5b7f58(0x9c)](this['_componentManager'][_0x5b7f58(0x2e2)]($r,oi)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)]['register'](ei,si)),this['disposeWithMe'](this[_0x5b7f58(0x2f9)]['register'](Ar,_0x4d68c4)),this['_registerPickers'](),this[_0x5b7f58(0x2f9)][_0x5b7f58(0x1af)](_0x10fa33)||this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](_0x10fa33,Vr)),this[_0x5b7f58(0x9c)](this[_0x5b7f58(0x2f9)][_0x5b7f58(0x2e2)](jr,ga));}[_0xb07969(0x121)](){const _0x25f106=_0xb07969;this[_0x25f106(0x9c)](this[_0x25f106(0x2f9)][_0x25f106(0x2e2)](Or,na));}[_0xb07969(0x227)](){const _0x5bd246=_0xb07969;this[_0x5bd246(0x9c)](this[_0x5bd246(0x2f9)]['register'](la,ca));}[_0xb07969(0xd2)](){const _0x3e869a=_0xb07969;this[_0x3e869a(0x9c)](this['_componentManager'][_0x3e869a(0x2e2)](Ir,Zi)),this[_0x3e869a(0x9c)](this['_componentManager']['register'](Lr,Qi));}};_a=q([K(0x0,_0x4e047b(_0x2f6cfe)),K(0x1,_0x4e047b(_0x16de22))],_a);let va=class extends _0x47cfe0{constructor(_0x199151,_0x16449f,_0x1243a8,_0x75457e,_0x1727e0,_0x1b1f0e,_0x110e00,_0x266d8a,_0x82d80d,_0x3b1f1f,_0x1c6d44,_0x2b3471,_0x5c18ab){const _0x48b809=_0xb07969;super(),this[_0x48b809(0xa2)]=_0x199151,this[_0x48b809(0x2c6)]=_0x16449f,this['_menuManagerService']=_0x1243a8,this[_0x48b809(0x1ce)]=_0x75457e,this['_localeService']=_0x1727e0,this[_0x48b809(0xaa)]=_0x1b1f0e,this[_0x48b809(0x198)]=_0x110e00,this[_0x48b809(0x1e1)]=_0x266d8a,this['_renderManagerService']=_0x82d80d,this[_0x48b809(0x2d6)]=_0x3b1f1f,this['_shapeTextEditingService']=_0x1c6d44,this['_permissionService']=_0x2b3471,this[_0x48b809(0x232)]=_0x5c18ab,X(this,_0x48b809(0xfe),null),X(this,'_activeShapeInfo',null),X(this,_0x48b809(0x2b7),!0x1),X(this,_0x48b809(0x110),0x0),X(this,_0x48b809(0x250),new Map()),X(this,_0x48b809(0x29b),new Map()),this[_0x48b809(0xeb)](),this[_0x48b809(0x9c)](this[_0x48b809(0xa2)][_0x48b809(0xe7)](_0x1b3194['UNIVER_DOC'])[_0x48b809(0xc4)](_0x39528c=>{const _0x32408c=_0x48b809;if(!_0x39528c){var _0x55c399;(_0x55c399=this[_0x32408c(0xfe)])==null||_0x55c399['dispose']();}})),this[_0x48b809(0x1e6)](),this['disposeWithMe'](_0x26417c(this['_renderManagerService'],_0x1b3194[_0x48b809(0xc7)],_0xdb333c=>this[_0x48b809(0x136)](_0xdb333c))),this[_0x48b809(0x9c)](this['_shapeTextEditingService'][_0x48b809(0xfa)]['subscribe'](_0x1f094a=>{const _0xf14349=_0x48b809;_0x1f094a&&this[_0xf14349(0x168)](void 0x0,!0x0);})),this[_0x48b809(0x9c)](this[_0x48b809(0x15a)][_0x48b809(0x1d9)]['subscribe'](()=>{const _0x3586ab=_0x48b809;this['_drawingManagerService']['getFocusDrawings']()['some'](_0x420060=>_0x420060[_0x3586ab(0x297)]===_0x507337[_0x3586ab(0x1b8)]&&this[_0x3586ab(0xa2)][_0x3586ab(0x13a)](_0x420060[_0x3586ab(0x1e2)])===_0x1b3194[_0x3586ab(0xc7)]&&!this[_0x3586ab(0x18b)](_0x420060['unitId'],_0x420060[_0x3586ab(0x2eb)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x3586ab(0x194)]());}));}[_0xb07969(0xda)](_0x3c4384,_0xefa357,_0x42a688,_0x21d67d){const _0x3e8508=_0xb07969;return[{'label':_0x3e8508(0x11e),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688},'disable':_0x21d67d===_0x507337[_0x3e8508(0x2ab)]},{'label':_0x3e8508(0xe4),'index':0x1,'commandId':_0x5bac08['id'],'commandParams':{'unitId':_0x3c4384,'drawings':[{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Ri['id'],'commandParams':{'unitId':_0x3c4384,'subUnitId':_0xefa357,'drawingId':_0x42a688},'disable':!0x1}];}[_0xb07969(0xeb)](){const _0x44fa30=_0xb07969;this[_0x44fa30(0x23b)]['mergeMenu'](Fi);}[_0xb07969(0x243)](_0x21cab9,_0x520c54,_0x38bc72){const _0x33526b=_0xb07969;let _0xd2f348=this[_0x33526b(0x1ce)][_0x33526b(0x255)](_0x21cab9,_0x520c54,_0x38bc72),_0x1a460b=this['_docsShapeService']['getShapeDataById'](_0x21cab9,_0x520c54,_0x38bc72);return _0xd2f348===void 0x0||_0x1a460b===void 0x0?null:{'shapeData':_0x1a460b,'shapeId':_0x38bc72,'shapeType':_0xd2f348,'unitId':_0x21cab9,'subUnitId':_0x520c54,'version':this[_0x33526b(0x110)],'disableShapeOption':!0x1};}['_clearPopups'](_0xca5e22,_0x30d577=!0x1){const _0x58ca18=_0xb07969;if(_0xca5e22==null){[...this[_0x58ca18(0x250)][_0x58ca18(0xdc)]()][_0x58ca18(0x2d7)](_0x21920d=>this[_0x58ca18(0x168)](_0x21920d,_0x30d577));return;}let _0x4c2075=this[_0x58ca18(0x250)][_0x58ca18(0x1af)](_0xca5e22);if(_0x4c2075){for(let _0x5f0679=_0x4c2075[_0x58ca18(0xb3)]-0x1;_0x5f0679>=0x0;--_0x5f0679){let _0x3bf6ec=_0x4c2075[_0x5f0679];(_0x30d577||_0x3bf6ec[_0x58ca18(0x1c1)]())&&(_0x3bf6ec[_0x58ca18(0x1f8)](),_0x4c2075[_0x58ca18(0x14d)](_0x5f0679,0x1));}_0x4c2075[_0x58ca18(0xb3)]===0x0&&(this[_0x58ca18(0x250)][_0x58ca18(0x14e)](_0xca5e22),this[_0x58ca18(0x29b)][_0x58ca18(0x14e)](_0xca5e22));}}[_0xb07969(0x10f)](_0x31d07d){const _0x4a3166=_0xb07969;let _0xbe8d12=this['_disposePopupsByUnit'][_0x4a3166(0x1af)](_0x31d07d);if(_0xbe8d12)return _0xbe8d12;let _0x543f0c=[];return this[_0x4a3166(0x250)][_0x4a3166(0x220)](_0x31d07d,_0x543f0c),_0x543f0c;}['_popupMenuListener'](_0x184667){const _0x187a5d=_0xb07969;var _0x2b98e5;let _0x482cd6=new _0x4f92f4(),_0x6dd3d2=(_0x2b98e5=this[_0x187a5d(0x126)][_0x187a5d(0x2f4)](_0x1b3194[_0x187a5d(0xc7)])[_0x187a5d(0x1cb)](_0x4dae62=>_0x4dae62[_0x187a5d(0x27a)][_0x187a5d(0x2ac)]()===_0x184667))==null?void 0x0:_0x2b98e5[_0x187a5d(0x1e2)];return _0x6dd3d2?(_0x482cd6[_0x187a5d(0x2cd)](_0x184667[_0x187a5d(0x158)]['subscribe'](()=>this['_handleCreateControl'](_0x184667,_0x6dd3d2))),_0x482cd6[_0x187a5d(0x2cd)](_0x184667[_0x187a5d(0xb4)]['subscribe'](()=>{this['_clearPopups'](_0x6dd3d2),queueMicrotask(()=>{const _0x2fabc0=_0x56ec;_0x184667[_0x2fabc0(0x204)]()[_0x2fabc0(0x25b)]>0x0||!this[_0x2fabc0(0x198)]['getFocusDrawings']()['some'](_0x5a8475=>_0x5a8475[_0x2fabc0(0x1e2)]===_0x6dd3d2)||(this[_0x2fabc0(0x2d6)][_0x2fabc0(0x223)](_0x6e7cbb,!0x1),this[_0x2fabc0(0x198)]['focusDrawing'](null));});})),_0x482cd6[_0x187a5d(0x2cd)](_0x184667['changing$'][_0x187a5d(0xc4)](()=>{const _0x1ec63d=_0x187a5d;this[_0x1ec63d(0x168)](_0x6dd3d2,!0x0);})),_0x482cd6):_0x482cd6;}['_handleCreateControl'](_0x57b17b,_0x482405){const _0x309c64=_0xb07969;let _0x1f8944=_0x57b17b[_0x309c64(0x204)]();if(this[_0x309c64(0x2b7)]){this['_clearPopups'](_0x482405,!0x0);return;}if(_0x1f8944['size']>0x1){this[_0x309c64(0x168)](_0x482405);return;}let _0x5f5973=_0x1f8944[_0x309c64(0x28b)]()['next']()[_0x309c64(0x1e5)];if(!_0x5f5973){this['_clearPopups'](_0x482405);return;}let _0x3bfc2e=this[_0x309c64(0x198)][_0x309c64(0x246)](_0x5f5973[_0x309c64(0x1ea)]);if(!_0x3bfc2e||_0x3bfc2e[_0x309c64(0x297)]!==_0x507337[_0x309c64(0x1b8)]){this[_0x309c64(0x168)](_0x482405);return;}let {unitId:_0x1c4808,subUnitId:_0x711437,drawingId:_0xf4d44}=_0x3bfc2e;if(!this[_0x309c64(0x18b)](_0x1c4808,_0xf4d44)){this[_0x309c64(0x168)](_0x482405,!0x0);return;}let _0x40acf1=this[_0x309c64(0x243)](_0x1c4808,_0x711437,_0xf4d44);if(!_0x40acf1){this[_0x309c64(0x168)](_0x482405);return;}let _0x103373=this['_disposePopupsByUnit']['get'](_0x482405),_0x2abac4=_0x1c4808+':'+_0x711437+':'+_0xf4d44;if(this[_0x309c64(0x29b)][_0x309c64(0x1af)](_0x482405)===_0x2abac4&&_0x103373!=null&&_0x103373[_0x309c64(0xb3)])return;this['_clearPopups'](_0x482405);let _0x2d545f=this[_0x309c64(0x126)][_0x309c64(0x1ac)](_0x1c4808),_0x324785=((_0x2d545f==null?void 0x0:_0x2d545f[_0x309c64(0x1b5)])===!0x1?_0x2d545f[_0x309c64(0x125)](_0x114264):this[_0x309c64(0x1e1)])[_0x309c64(0x187)](_0x5f5973,this[_0x309c64(0x2a2)](_0x40acf1,()=>this[_0x309c64(0x168)](_0x482405,!0x0)),_0x1c4808);this[_0x309c64(0x9c)](_0x324785),this[_0x309c64(0x10f)](_0x482405)[_0x309c64(0xab)](_0x324785),this[_0x309c64(0x29b)][_0x309c64(0x220)](_0x482405,_0x2abac4),this[_0x309c64(0x198)]['getFocusDrawings']()[_0x309c64(0x2ff)](_0x33c0df=>_0x33c0df[_0x309c64(0x1e2)]===_0x1c4808&&_0x33c0df['subUnitId']===_0x711437&&_0x33c0df[_0x309c64(0x2eb)]===_0xf4d44)||this[_0x309c64(0x198)][_0x309c64(0xde)]([{'unitId':_0x1c4808,'subUnitId':_0x711437,'drawingId':_0xf4d44}]);}[_0xb07969(0x2a2)](_0x519cf3,_0x3d660a){const _0x387103=_0xb07969;let {unitId:_0x48d903,subUnitId:_0x108b59,shapeId:_0x4c6f81}=_0x519cf3,_0x22264d={'hostType':_0x1b3194['UNIVER_DOC'],'unitId':_0x48d903,'subUnitId':_0x108b59,'shapeId':_0x4c6f81};return{'componentKey':la,'direction':_0x387103(0x233),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x519cf3[_0x387103(0xf9)],'onText':()=>{const _0x5b941d=_0x387103;_0x3d660a(),this[_0x5b941d(0x232)]['open'](_0x5b941d(0x20f),_0x22264d);},'onStyle':()=>{const _0xf69cd1=_0x387103;_0x3d660a(),this[_0xf69cd1(0x232)]['open'](_0xf69cd1(0x299),_0x22264d);},'onDelete':()=>this[_0x387103(0xaa)][_0x387103(0x21a)](_0x5bac08['id'],{'unitId':_0x48d903,'drawings':[{'unitId':_0x48d903,'subUnitId':_0x108b59,'drawingId':_0x4c6f81}]})}};}[_0xb07969(0x18b)](_0xc2f04e,_0x1fd40f){const _0x2b679a=_0xb07969;let _0x1cfdab=this[_0x2b679a(0xa2)][_0x2b679a(0x1f2)](_0xc2f04e,_0x1b3194['UNIVER_DOC']);if(!_0x1cfdab)return!0x1;let _0x318964=_0x502f97(_0x1cfdab,_0x1fd40f);return _0x33aa98(this[_0x2b679a(0x15a)],_0xc2f04e,[..._0x57f81a(_0x1cfdab,_0x318964,'drawing',_0x1fd40f),_0x4ecdaa(_0x318964,_0x2b679a(0x2ec),_0x1fd40f)]);}['_registerOperations'](){const _0x321bc3=_0xb07969;this['disposeWithMe'](this[_0x321bc3(0xaa)][_0x321bc3(0x2ad)](_0x3f6fb4=>{const _0x15d28c=_0x321bc3;if(_0x3f6fb4['id']===G['id']){let {unitId:_0x49796d,subUnitId:_0x5d72be,drawingId:_0x5cb720}=_0x3f6fb4[_0x15d28c(0x1bf)];this[_0x15d28c(0x110)]+=0x1,this[_0x15d28c(0x2a0)]=this['_getShapeInfo'](_0x49796d,_0x5d72be,_0x5cb720),this[_0x15d28c(0x168)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x3f6fb4['id']===Ri['id']&&(this[_0x15d28c(0x2a0)]=null,this[_0x15d28c(0x194)]()),_0x3f6fb4['id']===_0x493300['id']){var _0x4d100d;let {unitId:_0x297a6f,shapeId:_0x14e7bc}=_0x3f6fb4['params'];if(((_0x4d100d=this[_0x15d28c(0x2a0)])==null?void 0x0:_0x4d100d[_0x15d28c(0x1f0)])===_0x14e7bc){let _0x58a053=this[_0x15d28c(0x243)](_0x297a6f,this['_activeShapeInfo'][_0x15d28c(0x2ae)],_0x14e7bc);_0x58a053&&(this['_shapeEditPanelVersion']+=0x1,_0x58a053[_0x15d28c(0x1ba)]=this['_shapeEditPanelVersion'],this[_0x15d28c(0x2a0)]=_0x58a053,this[_0x15d28c(0x2b7)]&&this[_0x15d28c(0x23f)]());}}})),this[_0x321bc3(0x9c)](this['_drawingManagerService'][_0x321bc3(0x1d4)][_0x321bc3(0xc4)](_0x475d86=>{const _0x5894f1=_0x321bc3;if(!this[_0x5894f1(0x2b7)])return;if(_0x475d86['length']===0x0){this[_0x5894f1(0x2a0)]=null,this[_0x5894f1(0x194)]();return;}if(_0x475d86[_0x5894f1(0xb3)]===0x1&&_0x475d86[0x0][_0x5894f1(0x297)]===_0x507337['DRAWING_SHAPE']&&(this[_0x5894f1(0x110)]+=0x1,this[_0x5894f1(0x2a0)]=this[_0x5894f1(0x243)](_0x475d86[0x0][_0x5894f1(0x1e2)],_0x475d86[0x0][_0x5894f1(0x2ae)],_0x475d86[0x0][_0x5894f1(0x2eb)]),this[_0x5894f1(0x2a0)])){this[_0x5894f1(0x23f)]();return;}let _0x2baba5=_0x475d86[_0x5894f1(0x101)](_0xcbb1c8=>_0xcbb1c8[_0x5894f1(0x297)]===_0x507337[_0x5894f1(0x1b8)]);if(this[_0x5894f1(0x110)]+=0x1,this[_0x5894f1(0x2a0)]=this['_getShapeInfo'](_0x475d86[0x0][_0x5894f1(0x1e2)],_0x475d86[0x0][_0x5894f1(0x2ae)],_0x475d86[0x0][_0x5894f1(0x2eb)]),this['_activeShapeInfo']&&_0x475d86['length']>0x1&&_0x2baba5[_0x5894f1(0xb3)]===_0x475d86[_0x5894f1(0xb3)]){this['_openShapeEditPanel']();return;}if(this['_activeShapeInfo']&&_0x2baba5[_0x5894f1(0xb3)]!==_0x475d86[_0x5894f1(0xb3)]){this[_0x5894f1(0x2a0)][_0x5894f1(0x113)]=!0x0,this[_0x5894f1(0x23f)]();return;}this[_0x5894f1(0x194)]();}));}['_openShapeEditPanel'](){const _0x3c4546=_0xb07969;this['_activeShapeInfo']&&(this[_0x3c4546(0xfe)]=this['_sidebarService'][_0x3c4546(0x2bf)]({'id':W,'header':{'title':this[_0x3c4546(0x16c)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x3c4546(0x2a0)]},'onClose':()=>{const _0x123927=_0x3c4546;this[_0x123927(0x198)]['focusDrawing'](null),this[_0x123927(0x2d6)][_0x123927(0x223)](_0x6e7cbb,!0x1),this['_sidebarDisposable']=null;}}),this[_0x3c4546(0x2b7)]=!0x0);}['_closeShapeEditPanel'](){const _0x4ac653=_0xb07969;this[_0x4ac653(0x2b7)]=!0x1,this[_0x4ac653(0x2c6)][_0x4ac653(0x30c)](W),this[_0x4ac653(0xfe)]=null,this[_0x4ac653(0x2d6)][_0x4ac653(0x223)](_0x6e7cbb,!0x1),this[_0x4ac653(0x198)][_0x4ac653(0xde)](null);}};va=q([K(0x0,_0x97a100),K(0x1,_0x4e047b(_0x60917c)),K(0x2,_0x867b4e),K(0x3,_0x4e047b(_0x36af82)),K(0x4,_0x4e047b(_0xe303eb)),K(0x5,_0x4e68a9),K(0x6,_0x5e0832),K(0x7,_0x4e047b(_0x114264)),K(0x8,_0x2de7f2),K(0x9,_0x244f46),K(0xa,_0x4e047b(Q)),K(0xb,_0x52503b),K(0xc,_0x4e047b(_0x21d080))],va);const ya='docs-shape-contextual-ribbon';let ba=class extends _0x47cfe0{constructor(_0x54a3c6,_0x5752bc,_0x260453,_0x4c8ce9,_0x47a892,_0x349573){const _0x5e9fab=_0xb07969;super(),this['_menuManagerService']=_0x54a3c6,this[_0x5e9fab(0x1a3)]=_0x5752bc,this[_0x5e9fab(0x198)]=_0x260453,this[_0x5e9fab(0xa2)]=_0x4c8ce9,this['_renderManagerService']=_0x47a892,this[_0x5e9fab(0xb5)]=_0x349573,X(this,_0x5e9fab(0x12d),!0x1),this[_0x5e9fab(0x23b)]['mergeMenu'](Pi),this['disposeWithMe'](_0x35b1c9(this['_drawingManagerService'][_0x5e9fab(0x1d4)][_0x5e9fab(0xc4)](()=>this[_0x5e9fab(0x1f4)]()))),this[_0x5e9fab(0x1f4)]();}[_0xb07969(0x1f8)](){const _0x4d4540=_0xb07969;this[_0x4d4540(0xb5)]['setFallbackVisible'](!0x1,ya),this[_0x4d4540(0x119)](),super[_0x4d4540(0x1f8)]();}[_0xb07969(0x1f4)](){const _0x43cae7=_0xb07969;var _0x4b726b;let _0x532b13=this[_0x43cae7(0x198)][_0x43cae7(0x197)](),_0xa1bef6=_0x532b13[_0x43cae7(0xb3)]===0x1?_0x532b13[0x0]:void 0x0;if((_0xa1bef6==null?void 0x0:_0xa1bef6[_0x43cae7(0x297)])!==_0x507337[_0x43cae7(0x1b8)]||this['_univerInstanceService']['getUnitType'](_0xa1bef6[_0x43cae7(0x1e2)])!==_0x1b3194['UNIVER_DOC']){this[_0x43cae7(0xb5)][_0x43cae7(0x16f)](!0x1,ya),this[_0x43cae7(0x119)]();return;}let _0x1bc40a=(_0x4b726b=this[_0x43cae7(0x126)]['getRenderUnitById'](_0xa1bef6[_0x43cae7(0x1e2)]))==null?void 0x0:_0x4b726b[_0x43cae7(0x120)][_0x43cae7(0x141)](),_0x2b3cb7=_0x413b71(_0x1bc40a)==='isolated';if(this['_shapeFloatingToolbarService'][_0x43cae7(0x16f)](_0x2b3cb7,ya),_0x2b3cb7){this[_0x43cae7(0x119)]();return;}this['_visible']=!0x0,this[_0x43cae7(0x1a3)][_0x43cae7(0x1c0)](Dr,{'activate':!0x0});}[_0xb07969(0x119)](){const _0x323173=_0xb07969;this[_0x323173(0x12d)]&&(this[_0x323173(0x12d)]=!0x1,this['_ribbonService'][_0x323173(0xac)](Dr),this[_0x323173(0x1a3)][_0x323173(0x13d)]([]));}};ba=q([K(0x0,_0x867b4e),K(0x1,_0x454476),K(0x2,_0x5e0832),K(0x3,_0x97a100),K(0x4,_0x2de7f2),K(0x5,_0x4e047b(_0x4df6ac))],ba);let xa=class extends _0x47cfe0{constructor(_0x55b7b2,_0x14a6d6,_0x59e87b,_0x5e4ac1){const _0x1dde5a=_0xb07969;super(),this[_0x1dde5a(0xaa)]=_0x55b7b2,this['_renderManagerService']=_0x14a6d6,this[_0x1dde5a(0x198)]=_0x59e87b,this['_docDrawingShapeRenderController']=_0x5e4ac1,this[_0x1dde5a(0x153)]();}['_initialize'](){const _0x33537b=_0xb07969;this[_0x33537b(0x9c)](this['_drawingManagerService'][_0x33537b(0x1a4)]['subscribe'](_0xae62a0=>this[_0x33537b(0x22d)](_0xae62a0))),this[_0x33537b(0x9c)](this['_drawingManagerService'][_0x33537b(0x29a)]['subscribe'](_0x25fdee=>{const _0x1e02dc=_0x33537b;_0x25fdee[_0x1e02dc(0x2d7)](_0x51f7ca=>this[_0x1e02dc(0x211)](_0x51f7ca));})),this[_0x33537b(0x9c)](this[_0x33537b(0xaa)][_0x33537b(0x2ad)](_0x2b7d02=>{const _0x575b5f=_0x33537b;if(_0x2b7d02['id']!==_0x493300['id'])return;let {unitId:_0x2b5c6e,shapeId:_0x43ed60}=_0x2b7d02[_0x575b5f(0x1bf)];this[_0x575b5f(0x165)]({'unitId':_0x2b5c6e,'subUnitId':_0x2b5c6e,'drawingId':_0x43ed60});}));}[_0xb07969(0x22d)](_0x396c37){const _0xfee4fa=_0xb07969;_0x396c37[_0xfee4fa(0x2d7)](_0x5a2d38=>{const _0x1b4052=_0xfee4fa;let _0x5ab309=this[_0x1b4052(0x2fe)](_0x5a2d38['unitId']);if(!_0x5ab309)return;let _0x4a23b9=this[_0x1b4052(0x198)]['getDrawingByParam'](_0x5a2d38);(_0x4a23b9==null?void 0x0:_0x4a23b9['drawingType'])===_0x507337[_0x1b4052(0x1b8)]&&this[_0x1b4052(0x21d)][_0x1b4052(0x1a0)](_0x4a23b9,_0x5ab309['scene']);});}[_0xb07969(0x211)](_0x55aab7){const _0x5426ae=_0xb07969;let _0x24b596=this[_0x5426ae(0x198)]['getDrawingByParam'](_0x55aab7);if((_0x24b596==null?void 0x0:_0x24b596[_0x5426ae(0x297)])!==_0x507337[_0x5426ae(0x1b8)])return;let _0x45a813=this['_getSceneByUnitId'](_0x55aab7[_0x5426ae(0x1e2)]);if(!_0x45a813||_0x24b596[_0x5426ae(0x2c7)]==null)return;let _0x28306d=_0x4dbb43(_0x55aab7),_0x4acf0b=_0x45a813[_0x5426ae(0x27a)][_0x5426ae(0x1e9)](_0x28306d);_0x4acf0b&&(_0x4acf0b[_0x5426ae(0x2a3)](_0x24b596[_0x5426ae(0x203)]),_0x4acf0b['setPrstGeom'](_0x24b596[_0x5426ae(0x305)]),_0x4acf0b[_0x5426ae(0x274)](!0x0));}[_0xb07969(0x165)](_0x340011){const _0x1ba4e1=_0xb07969;let _0x2fb671=this[_0x1ba4e1(0x2fe)](_0x340011[_0x1ba4e1(0x1e2)]);if(!_0x2fb671)return;let _0x1c0808=_0x4dbb43(_0x340011),_0xf15310=_0x2fb671['scene'][_0x1ba4e1(0x1e9)](_0x1c0808);_0xf15310&&(this[_0x1ba4e1(0x21d)][_0x1ba4e1(0x237)](_0xf15310),this[_0x1ba4e1(0x21d)]['refreshFormulaPresentation'](_0xf15310,{'unitId':_0x340011['unitId'],'subUnitId':_0x340011['subUnitId'],'shapeId':_0x340011[_0x1ba4e1(0x2eb)]}),_0xf15310[_0x1ba4e1(0x274)](!0x0));}[_0xb07969(0x2fe)](_0x24a0db){const _0x138ca4=_0xb07969;if(_0x24a0db==null)return null;let _0x1f9dd2=this[_0x138ca4(0x126)]['getRenderUnitById'](_0x24a0db),_0x2cb33d=_0x1f9dd2==null?void 0x0:_0x1f9dd2[_0x138ca4(0x27a)];return _0x2cb33d==null?null:{'scene':_0x2cb33d};}};xa=q([K(0x0,_0x4e68a9),K(0x1,_0x2de7f2),K(0x2,_0x5e0832),K(0x3,_0x4e047b($))],xa);let Sa=class extends _0x3dcd10{constructor(_0x35fa03=Bi,_0x354a69,_0x51f1e2,_0x582126,_0x38c72b){const _0x4ac9a3=_0xb07969;super(),this[_0x4ac9a3(0x23a)]=_0x35fa03,this['_injector']=_0x354a69,this[_0x4ac9a3(0xaa)]=_0x51f1e2,this[_0x4ac9a3(0x262)]=_0x582126,this[_0x4ac9a3(0x126)]=_0x38c72b;let {menu:_0x37ef1a,..._0x4f0b7a}=_0x504bfd({},Bi,this['_config']);_0x37ef1a&&this[_0x4ac9a3(0x262)][_0x4ac9a3(0x298)]('menu',_0x37ef1a,{'merge':!0x0}),this[_0x4ac9a3(0x262)]['setConfig'](zi,_0x4f0b7a),[U,Ri,G,Mr,Pr,Fr]['forEach'](_0x576e1c=>this[_0x4ac9a3(0x9c)](this['_commandService'][_0x4ac9a3(0x206)](_0x576e1c)));}[_0xb07969(0x1ff)](){const _0x5b3d22=_0xb07969;let _0x2051f8=[[_a],[va],[xa],[$],[Ji],[Ki],[J],[ra],[Q],[ba]];_0x5ee79c(this[_0x5b3d22(0x2c2)],_0x2051f8),this[_0x5b3d22(0x2c2)]['get'](_a);}[_0xb07969(0x133)](){const _0x38349c=_0xb07969;this[_0x38349c(0x9c)](this['_renderManagerService'][_0x38349c(0x219)](_0x1b3194[_0x38349c(0xc7)],[Ki])),_0x28e47e(this[_0x38349c(0x2c2)],[[va],[xa],[$],[Ji],[J],[ra],[Q],[ba]]);}};X(Sa,_0xb07969(0x1f7),_0x1b3194[_0xb07969(0xc7)]),X(Sa,_0xb07969(0x2c4),_0xb07969(0x212)),X(Sa,_0xb07969(0x2e1),Ii),X(Sa,_0xb07969(0x1ba),Li),Sa=q([_0x3e509d(_0x2270d5,_0x408d49,_0x47a564,_0x64eb9d,_0x5797e3,_0x4a4e38,_0x17866d,_0x1fbb81,_0x2d499a,_0x5d698b),K(0x1,_0x4e047b(_0x27c23b)),K(0x2,_0x4e68a9),K(0x3,_0x12f4ed),K(0x4,_0x2de7f2)],Sa);let Ca=class extends _0x47cfe0{constructor(_0x63c419,_0x57d0c4){const _0x1d5a1f=_0xb07969;super(),this[_0x1d5a1f(0x2f9)]=_0x63c419,this[_0x1d5a1f(0x306)]=_0x57d0c4,this[_0x1d5a1f(0x127)](),this[_0x1d5a1f(0x135)]();}[_0xb07969(0x127)](){const _0x7e82eb=_0xb07969;this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0x144))||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'ObjectLayersIcon':_0x11cff1})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)]('BottomIcon')||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'BottomIcon':_0x191e47})),this['_iconManager'][_0x7e82eb(0x2f2)](_0x7e82eb(0x170))||this[_0x7e82eb(0x9c)](this['_iconManager']['register']({'MoveDownIcon':_0x54d043})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0xed))||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'MoveUpIcon':_0x42135f})),this[_0x7e82eb(0x306)]['has']('ShapeFormatSettingIcon')||this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)][_0x7e82eb(0x2e2)]({'ShapeFormatSettingIcon':_0x3eea86})),this[_0x7e82eb(0x306)][_0x7e82eb(0x2f2)](_0x7e82eb(0x161))||this[_0x7e82eb(0x9c)](this['_iconManager'][_0x7e82eb(0x2e2)]({'TopmostIcon':_0x3f3ea3})),this[_0x7e82eb(0x9c)](this[_0x7e82eb(0x306)]['register'](ha));}['_registerComponents'](){const _0x22104d=_0xb07969;this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](W,aa)),this[_0x22104d(0x121)](),this[_0x22104d(0x227)](),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](Zr,ri)),this[_0x22104d(0x9c)](this['_componentManager']['register'](Xr,ii)),this[_0x22104d(0x9c)](this['_componentManager'][_0x22104d(0x2e2)](Qr,ai)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)]($r,oi)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](ei,si)),this[_0x22104d(0x9c)](this['_componentManager']['register'](Ar,_0x4d68c4)),this[_0x22104d(0xd2)](),this['_componentManager'][_0x22104d(0x1af)](_0x10fa33)||this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](_0x10fa33,Vr)),this[_0x22104d(0x9c)](this[_0x22104d(0x2f9)][_0x22104d(0x2e2)](jr,ga));}[_0xb07969(0x121)](){const _0x3f434e=_0xb07969;this[_0x3f434e(0x9c)](this['_componentManager'][_0x3f434e(0x2e2)](Or,ta));}['_registerFloatingToolbar'](){const _0x46d676=_0xb07969;this[_0x46d676(0x9c)](this[_0x46d676(0x2f9)][_0x46d676(0x2e2)](la,da));}['_registerPickers'](){const _0xbc830f=_0xb07969;this[_0xbc830f(0x9c)](this[_0xbc830f(0x2f9)][_0xbc830f(0x2e2)](Ir,Hr)),this[_0xbc830f(0x9c)](this[_0xbc830f(0x2f9)][_0xbc830f(0x2e2)](Lr,Br));}};Ca=q([K(0x0,_0x4e047b(_0x2f6cfe)),K(0x1,_0x4e047b(_0x16de22))],Ca);let wa=class extends _0x47cfe0{constructor(_0x5c38a9,_0x563558,_0x3b45f0,_0xf4966d,_0x889b15,_0x545a38,_0x5327f2,_0x5a522f,_0x469c1f){const _0x41c7df=_0xb07969;super();let _0x1202c9=_0x4c4cf1=>{const _0x59efef=_0x56ec;let _0x226e57=_0x545a38[_0x59efef(0x1f2)](_0x4c4cf1['unitId'],_0x1b3194[_0x59efef(0xc7)]),_0x1fd5d7=_0x226e57?_0x502f97(_0x226e57,_0x4c4cf1['shapeId']):'';return!!_0x226e57&&_0x33aa98(_0x5a522f,_0x4c4cf1[_0x59efef(0x1e2)],[_0x4ecdaa(_0x1fd5d7,'drawing',_0x4c4cf1[_0x59efef(0x1f0)]),..._0x57f81a(_0x226e57,_0x1fd5d7,_0x59efef(0x2ec),_0x4c4cf1[_0x59efef(0x1f0)])]);},_0x3dd54c=_0x144176=>_0x144176['shapeId']&&_0x1202c9(_0x144176)?_0x3b45f0[_0x41c7df(0x1a2)](_0x144176[_0x41c7df(0x1e2)],_0x144176[_0x41c7df(0x1f0)])??null:null,_0x19deb1=()=>{const _0x32e708=_0x41c7df;let _0x379d0a=_0x889b15['getFocusDrawings'](),_0x38e92d=_0x379d0a[_0x32e708(0xb3)]===0x1?_0x379d0a[0x0]:null;return(_0x38e92d==null?void 0x0:_0x38e92d[_0x32e708(0x297)])===_0x507337[_0x32e708(0x1b8)]&&_0x38e92d['unitId']===_0x5c38a9[_0x32e708(0x1e2)]?{'unitId':_0x38e92d[_0x32e708(0x1e2)],'subUnitId':_0x38e92d[_0x32e708(0x2ae)],'shapeId':_0x38e92d[_0x32e708(0x2eb)]}:null;};this['disposeWithMe'](_0x4f9cea(_0x5c38a9,_0x563558,{'changes$':_0x50281f(_0x889b15[_0x41c7df(0x1d4)],_0xf4966d[_0x41c7df(0xfa)],_0x5a522f[_0x41c7df(0x1d9)]),'isActive':()=>{const _0xa8be57=_0x41c7df;var _0x3f6f1a;return((_0x3f6f1a=_0x545a38[_0xa8be57(0x24c)]())==null?void 0x0:_0x3f6f1a[_0xa8be57(0x105)]())===_0x5c38a9[_0xa8be57(0x1e2)]&&!_0x5327f2[_0xa8be57(0x22f)](_0x58fefd)&&_0x889b15[_0xa8be57(0x197)]()[_0xa8be57(0x2ff)](_0x4c47ed=>_0x4c47ed[_0xa8be57(0x1e2)]===_0x5c38a9[_0xa8be57(0x1e2)]);},'getSelectedTarget':_0x19deb1,'getSource':()=>{let _0x468632=_0x19deb1();return _0x468632?_0x3dd54c(_0x468632):null;},'getTarget':_0x1ddb8e=>{const _0x443447=_0x41c7df;let _0x3d1031=_0x5c38a9[_0x443447(0x27a)][_0x443447(0x195)](new _0x22f150(_0x1ddb8e['offsetX'],_0x1ddb8e[_0x443447(0x2b3)]));if(!(_0x3d1031 instanceof Z))return null;let _0x1f3440={'unitId':_0x5c38a9[_0x443447(0x1e2)],'subUnitId':_0x5c38a9[_0x443447(0x1e2)],'shapeId':_0x3d1031['shapeId']};return _0x1202c9(_0x1f3440)?_0x1f3440:null;},'getShape':_0x3dd54c,'update':(_0x2909ec,_0x2d0a6c,_0x3b9bf7)=>_0x469c1f[_0x41c7df(0x21a)](_0x45ff60['id'],{..._0x2909ec,'shapeData':_0x3b9bf7,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2d0a6c}})}));}};wa=q([K(0x1,_0x4e047b(_0x128469)),K(0x2,_0x4e047b(_0x36af82)),K(0x3,_0x4e047b(Q)),K(0x4,_0x5e0832),K(0x5,_0x97a100),K(0x6,_0x244f46),K(0x7,_0x52503b),K(0x8,_0x4e68a9)],wa);function Ta(_0x2e7e89,_0x909d9f){const _0xace127=_0xb07969;let _0x1951ce=_0x2e7e89;for(;_0x1951ce;){if(_0x909d9f(_0x1951ce))return _0x1951ce;_0x1951ce=typeof _0x1951ce[_0xace127(0x1dd)]=='function'?_0x1951ce['getParent']():null;}return null;}function Ea(_0xc66b60){return Ta(_0xc66b60,_0x26c129=>_0x26c129 instanceof Z);}function Da(_0x17bebc){return(_0x17bebc==null?void 0x0:_0x17bebc['formulaBinding'])==null;}let Oa=class extends _0x47cfe0{constructor(_0x1d96db,_0x40b922,_0x5db17c,_0x28c8cb,_0x17dff4,_0x3fa08c){const _0x34027a=_0xb07969;super(),this[_0x34027a(0x210)]=_0x1d96db,this[_0x34027a(0x208)]=_0x40b922,this[_0x34027a(0x198)]=_0x5db17c,this['_contextService']=_0x28c8cb,this['_docLayoutInteractionService']=_0x17dff4,this[_0x34027a(0x1ce)]=_0x3fa08c,X(this,_0x34027a(0x2de),null),X(this,'_layoutInteraction',null),this['_initEvents'](),this['_initSelection'](),this['_initEditingParams']();}[_0xb07969(0x1f8)](){const _0x2d5830=_0xb07969;this[_0x2d5830(0x2a9)](),super[_0x2d5830(0x1f8)]();}['_initEvents'](){const _0x5952f0=_0xb07969;let {scene:_0xbb72dc}=this[_0x5952f0(0x210)];this[_0x5952f0(0x9c)](_0xbb72dc[_0x5952f0(0x180)][_0x5952f0(0x115)]((_0x11bdfe,_0x58e0ff)=>{const _0x917fe8=_0x5952f0;let {offsetX:_0x3aef06,offsetY:_0x5f0fba}=_0x11bdfe,_0x1da555=_0x22f150[_0x917fe8(0x13e)]([_0x3aef06,_0x5f0fba]),_0xc3d362=Ea(_0xbb72dc[_0x917fe8(0x195)](_0x1da555))??this[_0x917fe8(0x11d)](_0x1da555);if(_0xc3d362){_0x58e0ff[_0x917fe8(0x2be)]();let _0x49fe65=this[_0x917fe8(0x1ce)][_0x917fe8(0xbe)](_0xc3d362[_0x917fe8(0x1e2)],_0xc3d362[_0x917fe8(0x2ae)],_0xc3d362[_0x917fe8(0x1f0)]);if(!_0x49fe65||_0x1c9494(_0x49fe65[_0x917fe8(0x2ce)]())||!Da(_0x49fe65[_0x917fe8(0x20d)]()))return;this[_0x917fe8(0x208)][_0x917fe8(0x1d1)]({'visible':!0x0,'unitId':_0xc3d362['unitId'],'subUnitId':_0xc3d362[_0x917fe8(0x2ae)],'shapeId':_0xc3d362[_0x917fe8(0x1f0)],'shapeKey':_0xc3d362[_0x917fe8(0x1ea)]});}}));}[_0xb07969(0x11d)](_0x4a3daa){const _0x596ab8=_0xb07969;let {scene:_0x100230}=this[_0x596ab8(0x210)];return this[_0x596ab8(0x198)][_0x596ab8(0x197)]()[_0x596ab8(0x239)](_0x1da5ea=>_0x100230['getObjectIncludeInGroup'](_0x4dbb43(_0x1da5ea)))['find'](_0xaf67dd=>_0xaf67dd instanceof Z&&_0xaf67dd['isHit'](_0x4a3daa))??null;}[_0xb07969(0x2ba)](){const _0x48dff6=_0xb07969;this[_0x48dff6(0x9c)](this[_0x48dff6(0x198)][_0x48dff6(0x1d4)][_0x48dff6(0xc4)](_0x7379d6=>{const _0x2ad969=_0x48dff6;if(_0x7379d6[_0x2ad969(0xb3)]===0x1){let _0x2ebb8d=_0x7379d6[0x0],_0x4e6ba5=this['_drawingManagerService'][_0x2ad969(0x228)](_0x2ebb8d);if((_0x4e6ba5==null?void 0x0:_0x4e6ba5[_0x2ad969(0x297)])===_0x507337[_0x2ad969(0x1b8)]){let _0x122fe3=this[_0x2ad969(0x208)][_0x2ad969(0x26b)]();if((_0x122fe3==null?void 0x0:_0x122fe3[_0x2ad969(0x1f0)])===_0x2ebb8d[_0x2ad969(0x2eb)]&&_0x122fe3['visible'])return;_0x1c9494(this[_0x2ad969(0x1ce)][_0x2ad969(0x2ce)](_0x2ebb8d['unitId'],_0x2ebb8d[_0x2ad969(0x2ae)],_0x2ebb8d[_0x2ad969(0x2eb)]))&&this[_0x2ad969(0x208)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x2ad969(0xef)]();}else this[_0x2ad969(0x208)]['completeEditing']();})),this[_0x48dff6(0x9c)](this[_0x48dff6(0x198)][_0x48dff6(0x200)][_0x48dff6(0xc4)](_0x2ebb38=>{const _0x40dc0e=_0x48dff6;let _0x23cc27=this[_0x40dc0e(0x208)][_0x40dc0e(0x26b)]();_0x23cc27&&_0x2ebb38[_0x40dc0e(0x2ff)](_0x57c72b=>_0x57c72b[_0x40dc0e(0x2eb)]===_0x23cc27[_0x40dc0e(0x1f0)])&&this[_0x40dc0e(0x208)][_0x40dc0e(0x1d1)](null);}));}['_initEditingParams'](){const _0x223bba=_0xb07969;this[_0x223bba(0x9c)](this[_0x223bba(0x208)][_0x223bba(0xfa)][_0x223bba(0xc4)](_0x3c7f97=>{const _0x2b0593=_0x223bba;(_0x3c7f97==null?void 0x0:_0x3c7f97[_0x2b0593(0x1f6)])===!0x0&&_0x3c7f97[_0x2b0593(0x1e2)]===this[_0x2b0593(0x210)]['unitId']?this[_0x2b0593(0xa7)]??=this[_0x2b0593(0x142)]['beginInteraction']():this[_0x2b0593(0x2a9)]();let {scene:_0x15312f}=this[_0x2b0593(0x210)];if(this['_lastEditingShapeKey']){let _0x4a74a7=_0x15312f[_0x2b0593(0x1e9)](this['_lastEditingShapeKey']);_0x4a74a7&&_0x4a74a7[_0x2b0593(0x1d1)](!0x1);}if(_0x3c7f97){let _0x4d3a4e=!!_0x3c7f97[_0x2b0593(0x1f6)],_0x4442e0=_0x15312f[_0x2b0593(0x1e9)](_0x3c7f97['shapeKey']);_0x4442e0&&(_0x4442e0[_0x2b0593(0x1d1)](_0x4d3a4e),this['_lastEditingShapeKey']=_0x3c7f97[_0x2b0593(0x2b4)]),this[_0x2b0593(0x2d6)][_0x2b0593(0x223)](_0x58fefd,_0x4d3a4e);}else this[_0x2b0593(0x2de)]=null,this['_contextService'][_0x2b0593(0x223)](_0x58fefd,!0x1);}));}['_endLayoutInteraction'](){const _0x3e5f46=_0xb07969;var _0x395f17;(_0x395f17=this[_0x3e5f46(0xa7)])==null||_0x395f17[_0x3e5f46(0x1f8)](),this[_0x3e5f46(0xa7)]=null;}};Oa=q([K(0x1,_0x4e047b(Q)),K(0x2,_0x5e0832),K(0x3,_0x244f46),K(0x4,_0x4e047b(_0xbebd3f)),K(0x5,_0x4e047b(_0x36af82))],Oa);let ka=class extends _0xeb3327{constructor(_0x5a0dd5,_0x32082a,_0x27d8d6,_0x1df181,_0x4bcac1,_0x37c8ce,_0x515dd9,_0x46e5a6,_0x3ad1b7,_0x1f695f){super(_0x5a0dd5,_0x32082a,_0x27d8d6,_0x1df181,_0x4bcac1,_0x37c8ce,_0x515dd9,_0x46e5a6,_0x3ad1b7,_0x1f695f,{'componentKey':Ar,'editorUnitId':kr});}};ka=q([K(0x1,_0x4e047b(_0x4eb510)),K(0x2,_0x4e047b(_0x114264)),K(0x3,_0x4e047b(_0x43d68e)),K(0x4,_0x4e68a9),K(0x5,_0x4e047b(_0x3f17e2)),K(0x6,_0x4e047b(_0x343e38)),K(0x7,_0x4e047b(_0x3d1cb9)),K(0x8,_0x4e047b(_0x5bdc30)),K(0x9,_0x4e047b(Q))],ka);let Aa=class extends _0x334c84{constructor(_0x1ffc5c,_0x1c1421,_0x18cc30,_0x304193,_0x3097ad){const _0x2b8502=_0xb07969;super(_0x1ffc5c,_0x1c1421,{'editing$':_0x18cc30[_0x2b8502(0xfa)],'resolve':_0x56c4a9=>{const _0x3f5b7a=_0x2b8502;var _0x19ab5d;let _0x720899=new _0x22f150(_0x56c4a9[_0x3f5b7a(0x1ee)],_0x56c4a9['offsetY']),_0x22a53f=((_0x19ab5d=_0x1ffc5c[_0x3f5b7a(0x27a)][_0x3f5b7a(0xf0)](_0x720899))==null?void 0x0:_0x19ab5d['transformVector2SceneCoord'](_0x720899))??_0x720899,_0x15567f=_0x407e0f(_0x1ffc5c[_0x3f5b7a(0x27a)]['pick'](_0x720899)??null,_0x22a53f);if(!(_0x15567f instanceof Z))return null;let _0x5109ef=_0x15567f['resolveHyperLinkAt'](_0x22a53f);if(!_0x5109ef)return null;let _0x13f30d=_0x15567f,_0x3f30a9={'componentKey':_0x2d1f69[_0x3f5b7a(0x2e3)],'direction':_0x3f5b7a(0x233),'offset':[0x0,0xa],'onClickOutside':()=>_0x1c1421[_0x3f5b7a(0x1a8)]()};return{'object':_0x15567f,'info':{..._0x5109ef,'unitId':_0x15567f[_0x3f5b7a(0x1e2)],'subUnitId':_0x15567f[_0x3f5b7a(0x2ae)],'shapeKey':_0x15567f[_0x3f5b7a(0x1ea)],'readonly':!0x0,'copyable':_0x56d289(_0x3097ad,_0x15567f[_0x3f5b7a(0x1e2)],_0x15567f[_0x3f5b7a(0x1e2)],_0x472897[_0x3f5b7a(0x282)])},'attachPopup':()=>_0x304193[_0x3f5b7a(0x187)](_0x13f30d,_0x3f30a9,_0x13f30d[_0x3f5b7a(0x1e2)])};}});}};Aa=q([K(0x1,_0x4e047b(_0x343e38)),K(0x2,_0x4e047b(Q)),K(0x3,_0x4e047b(_0x114264)),K(0x4,_0x52503b)],Aa);let ja=class extends _0x47cfe0{constructor(_0x339771,_0x3a6f47,_0x282d2e,_0x425f15,_0x3ab328,_0x3c6f95,_0x3004bd,_0x5dce4c,_0x271889,_0x1adaef,_0x2adad4,_0xd21ce){const _0x33bfb7=_0xb07969;super(),this[_0x33bfb7(0xa2)]=_0x339771,this[_0x33bfb7(0x2c6)]=_0x3a6f47,this[_0x33bfb7(0x23b)]=_0x282d2e,this[_0x33bfb7(0x1ce)]=_0x425f15,this[_0x33bfb7(0x16c)]=_0x3ab328,this[_0x33bfb7(0xaa)]=_0x3c6f95,this[_0x33bfb7(0x198)]=_0x3004bd,this[_0x33bfb7(0x1e1)]=_0x5dce4c,this[_0x33bfb7(0x126)]=_0x271889,this['_contextService']=_0x1adaef,this[_0x33bfb7(0x208)]=_0x2adad4,this['_permissionService']=_0xd21ce,X(this,_0x33bfb7(0xfe),null),X(this,'_activeShapeInfo',null),X(this,_0x33bfb7(0x2b7),!0x1),X(this,_0x33bfb7(0x110),0x0),X(this,'_disposePopupsByUnit',new Map()),X(this,_0x33bfb7(0x29b),new Map()),this[_0x33bfb7(0xeb)](),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0xa2)][_0x33bfb7(0xe7)](_0x1b3194['UNIVER_DOC'])[_0x33bfb7(0xc4)](_0x15a697=>{const _0x4c18b9=_0x33bfb7;if(!_0x15a697){var _0x40b8a3;(_0x40b8a3=this['_sidebarDisposable'])==null||_0x40b8a3[_0x4c18b9(0x1f8)]();}})),this[_0x33bfb7(0x1e6)](),this[_0x33bfb7(0x9c)](_0x26417c(this['_renderManagerService'],_0x1b3194[_0x33bfb7(0xc7)],_0xb9c054=>this[_0x33bfb7(0x136)](_0xb9c054))),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0x208)][_0x33bfb7(0xfa)][_0x33bfb7(0xc4)](_0x533a5d=>{const _0x56739d=_0x33bfb7;_0x533a5d&&this[_0x56739d(0x168)](void 0x0,!0x0);})),this[_0x33bfb7(0x9c)](this[_0x33bfb7(0x15a)][_0x33bfb7(0x1d9)]['subscribe'](()=>{const _0x299072=_0x33bfb7;this[_0x299072(0x198)][_0x299072(0x197)]()[_0x299072(0x2ff)](_0x411dac=>_0x411dac['drawingType']===_0x507337[_0x299072(0x1b8)]&&this['_univerInstanceService'][_0x299072(0x13a)](_0x411dac[_0x299072(0x1e2)])===_0x1b3194[_0x299072(0xc7)]&&!this['_canEditShape'](_0x411dac[_0x299072(0x1e2)],_0x411dac['drawingId']))&&(this[_0x299072(0x168)](void 0x0,!0x0),this[_0x299072(0x194)]());}));}[_0xb07969(0xeb)](){const _0x469a2c=_0xb07969;this[_0x469a2c(0x23b)]['mergeMenu'](Fi);}[_0xb07969(0xda)](_0x3c4ca6,_0x1728eb,_0x50e4fb,_0x2edd13){const _0x5dd2a9=_0xb07969;return[{'label':_0x5dd2a9(0x11e),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb},'disable':_0x2edd13===_0x507337[_0x5dd2a9(0x2ab)]},{'label':_0x5dd2a9(0xe4),'index':0x1,'commandId':_0x5bac08['id'],'commandParams':{'unitId':_0x3c4ca6,'drawings':[{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb}]},'disable':!0x1},{'label':_0x5dd2a9(0x272),'index':0x2,'commandId':Ri['id'],'commandParams':{'unitId':_0x3c4ca6,'subUnitId':_0x1728eb,'drawingId':_0x50e4fb},'disable':!0x1}];}[_0xb07969(0x243)](_0x2eb982,_0x4e8dcb,_0x51abf1){const _0xe12f5c=_0xb07969;let _0x483ade=this['_docsShapeService'][_0xe12f5c(0x255)](_0x2eb982,_0x4e8dcb,_0x51abf1),_0x25db0f=this[_0xe12f5c(0x1ce)]['getShapeDataById'](_0x2eb982,_0x4e8dcb,_0x51abf1);return _0x483ade!==void 0x0&&_0x25db0f!==void 0x0?{'shapeData':_0x25db0f,'shapeId':_0x51abf1,'shapeType':_0x483ade,'unitId':_0x2eb982,'subUnitId':_0x4e8dcb,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0xb07969(0x168)](_0x5a1422,_0x4df8c7=!0x1){const _0x24ddcd=_0xb07969;if(_0x5a1422==null){[...this[_0x24ddcd(0x250)][_0x24ddcd(0xdc)]()][_0x24ddcd(0x2d7)](_0x9e4baf=>this[_0x24ddcd(0x168)](_0x9e4baf,_0x4df8c7));return;}let _0x46fbe5=this[_0x24ddcd(0x250)]['get'](_0x5a1422);if(_0x46fbe5){for(let _0x1e3b75=_0x46fbe5[_0x24ddcd(0xb3)]-0x1;_0x1e3b75>=0x0;--_0x1e3b75){let _0x22cdfd=_0x46fbe5[_0x1e3b75];(_0x4df8c7||_0x22cdfd['canDispose']())&&(_0x22cdfd[_0x24ddcd(0x1f8)](),_0x46fbe5[_0x24ddcd(0x14d)](_0x1e3b75,0x1));}_0x46fbe5[_0x24ddcd(0xb3)]===0x0&&(this['_disposePopupsByUnit'][_0x24ddcd(0x14e)](_0x5a1422),this['_popupTargetKeys'][_0x24ddcd(0x14e)](_0x5a1422));}}[_0xb07969(0x10f)](_0x5ed886){const _0x3a8260=_0xb07969;let _0x1ed0e6=this[_0x3a8260(0x250)]['get'](_0x5ed886);if(_0x1ed0e6)return _0x1ed0e6;let _0x544f74=[];return this['_disposePopupsByUnit'][_0x3a8260(0x220)](_0x5ed886,_0x544f74),_0x544f74;}[_0xb07969(0x136)](_0x48ad46){const _0x4decf1=_0xb07969;var _0x38a93e;let _0x301343=new _0x4f92f4(),_0x47a03e=(_0x38a93e=this[_0x4decf1(0x126)][_0x4decf1(0x2f4)](_0x1b3194[_0x4decf1(0xc7)])[_0x4decf1(0x1cb)](_0x365b69=>_0x365b69['scene']['getTransformerByCreate']()===_0x48ad46))==null?void 0x0:_0x38a93e[_0x4decf1(0x1e2)];return _0x47a03e?(_0x301343['add'](_0x48ad46[_0x4decf1(0x158)][_0x4decf1(0xc4)](()=>this[_0x4decf1(0x151)](_0x48ad46,_0x47a03e))),_0x301343['add'](_0x48ad46[_0x4decf1(0xb4)][_0x4decf1(0xc4)](()=>{const _0x473f06=_0x4decf1;this[_0x473f06(0x168)](_0x47a03e),queueMicrotask(()=>{const _0x5743d0=_0x473f06;_0x48ad46[_0x5743d0(0x204)]()[_0x5743d0(0x25b)]>0x0||!this[_0x5743d0(0x198)][_0x5743d0(0x197)]()[_0x5743d0(0x2ff)](_0x594e0a=>_0x594e0a[_0x5743d0(0x1e2)]===_0x47a03e)||(this[_0x5743d0(0x2d6)]['setContextValue'](_0x6e7cbb,!0x1),this['_drawingManagerService'][_0x5743d0(0xde)](null));});})),_0x301343[_0x4decf1(0x2cd)](_0x48ad46[_0x4decf1(0xc3)][_0x4decf1(0xc4)](()=>{const _0x101df9=_0x4decf1;this[_0x101df9(0x168)](_0x47a03e,!0x0);})),_0x301343):_0x301343;}[_0xb07969(0x151)](_0x33173f,_0x5f2b3d){const _0x5a6d0f=_0xb07969;let _0x1ff3db=_0x33173f['getSelectedObjectMap']();if(this[_0x5a6d0f(0x2b7)]){this[_0x5a6d0f(0x168)](_0x5f2b3d,!0x0);return;}if(_0x1ff3db[_0x5a6d0f(0x25b)]>0x1){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x6bcc82=_0x1ff3db[_0x5a6d0f(0x28b)]()[_0x5a6d0f(0x303)]()[_0x5a6d0f(0x1e5)];if(!_0x6bcc82){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x69d74e=this[_0x5a6d0f(0x198)][_0x5a6d0f(0x246)](_0x6bcc82[_0x5a6d0f(0x1ea)]);if(!_0x69d74e||_0x69d74e[_0x5a6d0f(0x297)]!==_0x507337['DRAWING_SHAPE']){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let {unitId:_0x1cf65f,subUnitId:_0x4b6ba8,drawingId:_0x63545d,drawingType:_0x1354ef}=_0x69d74e;if(!this['_canEditShape'](_0x1cf65f,_0x63545d)){this[_0x5a6d0f(0x168)](_0x5f2b3d,!0x0);return;}let _0x463c1f=this['_getShapeInfo'](_0x1cf65f,_0x4b6ba8,_0x63545d);if(!_0x463c1f){this[_0x5a6d0f(0x168)](_0x5f2b3d);return;}let _0x4bf05c=this[_0x5a6d0f(0x250)][_0x5a6d0f(0x1af)](_0x5f2b3d),_0x4b9d6a=_0x1cf65f+':'+_0x4b6ba8+':'+_0x63545d;if(this[_0x5a6d0f(0x29b)][_0x5a6d0f(0x1af)](_0x5f2b3d)===_0x4b9d6a&&_0x4bf05c&&_0x4bf05c[_0x5a6d0f(0xb3)]>0x0)return;this[_0x5a6d0f(0x168)](_0x5f2b3d);let _0x4548e4=this[_0x5a6d0f(0x126)][_0x5a6d0f(0x1ac)](_0x1cf65f),_0xaf3cde=((_0x4548e4==null?void 0x0:_0x4548e4['isMainScene'])===!0x1?_0x4548e4['with'](_0x114264):this['_docCanvasPopManagerService'])[_0x5a6d0f(0x187)](_0x6bcc82,this[_0x5a6d0f(0x2a2)](_0x463c1f,_0x1354ef),_0x1cf65f);this['disposeWithMe'](_0xaf3cde),this[_0x5a6d0f(0x10f)](_0x5f2b3d)[_0x5a6d0f(0xab)](_0xaf3cde),this[_0x5a6d0f(0x29b)]['set'](_0x5f2b3d,_0x4b9d6a),this[_0x5a6d0f(0x198)][_0x5a6d0f(0x197)]()[_0x5a6d0f(0x2ff)](_0x3b8f8e=>_0x3b8f8e['unitId']===_0x1cf65f&&_0x3b8f8e[_0x5a6d0f(0x2ae)]===_0x4b6ba8&&_0x3b8f8e[_0x5a6d0f(0x2eb)]===_0x63545d)||this[_0x5a6d0f(0x198)][_0x5a6d0f(0xde)]([{'unitId':_0x1cf65f,'subUnitId':_0x4b6ba8,'drawingId':_0x63545d}]);}[_0xb07969(0x2a2)](_0x300339,_0x97e78){const _0x4606fb=_0xb07969;return{'componentKey':la,'direction':_0x4606fb(0x267),'offset':[0x0,_0x4971b5],'extraProps':{'unitId':_0x300339[_0x4606fb(0x1e2)],'subUnitId':_0x300339[_0x4606fb(0x2ae)],'drawingId':_0x300339[_0x4606fb(0x1f0)],'drawingType':_0x97e78,'shapeType':_0x300339['shapeType'],'shapeData':_0x300339[_0x4606fb(0x148)]}};}[_0xb07969(0x18b)](_0x253194,_0x2bd830){const _0x5a013e=_0xb07969;let _0x344361=this['_univerInstanceService'][_0x5a013e(0x1f2)](_0x253194,_0x1b3194['UNIVER_DOC']);if(!_0x344361)return!0x1;let _0x504e9a=_0x502f97(_0x344361,_0x2bd830);return _0x33aa98(this[_0x5a013e(0x15a)],_0x253194,[..._0x57f81a(_0x344361,_0x504e9a,_0x5a013e(0x2ec),_0x2bd830),_0x4ecdaa(_0x504e9a,_0x5a013e(0x2ec),_0x2bd830)]);}[_0xb07969(0x1e6)](){const _0x57bde1=_0xb07969;this[_0x57bde1(0x9c)](this[_0x57bde1(0xaa)]['onCommandExecuted'](_0xff98a3=>{const _0x1ecb83=_0x57bde1;if(_0xff98a3['id']===G['id']){let {unitId:_0xb8b13c,subUnitId:_0x1742d1,drawingId:_0x5c016b}=_0xff98a3['params'];this[_0x1ecb83(0x110)]+=0x1,this[_0x1ecb83(0x2a0)]=this[_0x1ecb83(0x243)](_0xb8b13c,_0x1742d1,_0x5c016b),this['_clearPopups'](void 0x0,!0x0),this[_0x1ecb83(0x23f)]();}if(_0xff98a3['id']===Ri['id']&&(this[_0x1ecb83(0x2a0)]=null,this[_0x1ecb83(0x194)]()),_0xff98a3['id']===_0x493300['id']){let {unitId:_0x33f360,shapeId:_0x44e61f}=_0xff98a3['params'];if(this[_0x1ecb83(0x2a0)]&&this[_0x1ecb83(0x2a0)][_0x1ecb83(0x1f0)]===_0x44e61f){let _0x4ea8fe=this[_0x1ecb83(0x243)](_0x33f360,this[_0x1ecb83(0x2a0)][_0x1ecb83(0x2ae)],_0x44e61f);_0x4ea8fe&&(this[_0x1ecb83(0x110)]+=0x1,_0x4ea8fe['version']=this[_0x1ecb83(0x110)],this[_0x1ecb83(0x2a0)]=_0x4ea8fe,this['_isOpenedShapeEditPanel']&&this[_0x1ecb83(0x23f)]());}}})),this['disposeWithMe'](this[_0x57bde1(0x198)][_0x57bde1(0x1d4)]['subscribe'](_0xc3523=>{const _0x9daef6=_0x57bde1;if(this[_0x9daef6(0x2b7)]===!0x1)return;if(_0xc3523[_0x9daef6(0xb3)]===0x0){this[_0x9daef6(0x2a0)]=null,this['_closeShapeEditPanel']();return;}if(_0xc3523[_0x9daef6(0xb3)]===0x1&&_0xc3523[0x0][_0x9daef6(0x297)]===_0x507337[_0x9daef6(0x1b8)]&&(this[_0x9daef6(0x110)]+=0x1,this[_0x9daef6(0x2a0)]=this['_getShapeInfo'](_0xc3523[0x0]['unitId'],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0][_0x9daef6(0x2eb)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x13fa4b=_0xc3523[_0x9daef6(0x101)](_0x15cd6d=>_0x15cd6d['drawingType']===_0x507337[_0x9daef6(0x1b8)]);if(_0xc3523[_0x9daef6(0xb3)]>0x1&&_0x13fa4b[_0x9daef6(0xb3)]===_0xc3523['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x9daef6(0x2a0)]=this[_0x9daef6(0x243)](_0xc3523[0x0][_0x9daef6(0x1e2)],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0]['drawingId']),this[_0x9daef6(0x2a0)]){this[_0x9daef6(0x23f)]();return;}}else{if(this[_0x9daef6(0x110)]+=0x1,this[_0x9daef6(0x2a0)]=this['_getShapeInfo'](_0xc3523[0x0][_0x9daef6(0x1e2)],_0xc3523[0x0][_0x9daef6(0x2ae)],_0xc3523[0x0]['drawingId']),this['_activeShapeInfo']){this[_0x9daef6(0x2a0)][_0x9daef6(0x113)]=!0x0,this[_0x9daef6(0x23f)]();return;}}this[_0x9daef6(0x194)]();}));}[_0xb07969(0x23f)](){const _0xaf0ce3=_0xb07969;this[_0xaf0ce3(0x2a0)]&&(this[_0xaf0ce3(0xfe)]=this['_sidebarService'][_0xaf0ce3(0x2bf)]({'id':W,'header':{'title':this[_0xaf0ce3(0x16c)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0xaf0ce3(0x2a0)]},'onClose':()=>{const _0x56c14a=_0xaf0ce3;this['_drawingManagerService'][_0x56c14a(0xde)](null),this[_0x56c14a(0x2d6)][_0x56c14a(0x223)](_0x6e7cbb,!0x1),this[_0x56c14a(0xfe)]=null;}}),this[_0xaf0ce3(0x2b7)]=!0x0);}[_0xb07969(0x194)](){const _0x49d17e=_0xb07969;this['_isOpenedShapeEditPanel']=!0x1,this[_0x49d17e(0x2c6)]['close'](W),this['_sidebarDisposable']=null,this['_contextService'][_0x49d17e(0x223)](_0x6e7cbb,!0x1),this[_0x49d17e(0x198)]['focusDrawing'](null);}};ja=q([K(0x0,_0x97a100),K(0x1,_0x4e047b(_0x60917c)),K(0x2,_0x867b4e),K(0x3,_0x4e047b(_0x36af82)),K(0x4,_0x4e047b(_0xe303eb)),K(0x5,_0x4e68a9),K(0x6,_0x5e0832),K(0x7,_0x4e047b(_0x114264)),K(0x8,_0x2de7f2),K(0x9,_0x244f46),K(0xa,_0x4e047b(Q)),K(0xb,_0x52503b)],ja);let Ma=class extends _0x47cfe0{constructor(_0x4e0546,_0x59c137){const _0x39be92=_0xb07969;super(),this[_0x39be92(0x1ce)]=_0x4e0546,this['_localeService']=_0x59c137,this[_0x39be92(0x9c)](_0x35b1c9(_0x145692((_0x5daf63,_0x3fe7ca,_0x353ac9)=>this['_measure'](_0x5daf63,_0x3fe7ca,_0x353ac9))));}['_measure'](_0x5016ed,_0x342b3e,_0x53940f){const _0x11730a=_0xb07969;let _0x139089=this[_0x11730a(0x1ce)][_0x11730a(0xbe)](_0x5016ed,_0x342b3e);if(!_0x139089)return null;let _0x3f58fc=_0x139089[_0x11730a(0x20d)](),_0x4d89f4=_0x4bf978(_0x3f58fc),_0x47999b=_0x3f58fc[_0x11730a(0x29d)];if(!_0x47999b||_0x4d89f4['autoFitType']!==_0x4d280d[_0x11730a(0x1d2)])return null;let _0x171dc7=_0x53940f[_0x11730a(0x2b6)],_0x243d92=_0x53940f['fallbackHeight'];_0x139089[_0x11730a(0x244)]({'width':_0x171dc7,'height':_0x243d92});let _0x5966b6=_0x139089[_0x11730a(0x2fd)]({'left':0x0,'top':0x0,'width':_0x171dc7,'height':_0x243d92}),_0x3cac6d=_0x16437f(_0x11730a(0x2b9)in _0x47999b?_0x47999b[_0x11730a(0x2b9)]:void 0x0),_0x15b534=(_0x3cac6d==null?void 0x0:_0x3cac6d[_0x11730a(0x1b6)])??(_0x11730a(0x293)in _0x47999b?_0x1503a7(_0x47999b,_0x342b3e+_0x11730a(0x114)):null);if(!_0x15b534)return null;let _0x571b11=_0x59eb5a({'documentData':_0x15b534,'height':_0x243d92,'shapeData':_0x3f58fc,'textRect':_0x5966b6,'width':_0x171dc7,'widthBuffer':0x0});_0x571b11&&({width:_0x171dc7,height:_0x243d92}=_0x571b11,_0x139089[_0x11730a(0x244)]({'width':_0x171dc7,'height':_0x243d92}),_0x5966b6=_0x139089[_0x11730a(0x2fd)]({'left':0x0,'top':0x0,'width':_0x171dc7,'height':_0x243d92}));let _0x4f3d0f=_0x47999b['isHorizontal']!==!0x1,_0x59e566=_0x27fe9f(_0x15b534,{'isHorizontal':_0x4f3d0f,'textRect':_0x5966b6,'verticalAlign':_0x3cac6d==null?void 0x0:_0x3cac6d['va'],'horizontalAlign':_0x3cac6d==null?void 0x0:_0x3cac6d['ha'],'wrapStrategy':_0x4e5632(_0x3f58fc)}),_0x53eb1e=new _0x320bf5(_0x59e566),_0x3b0ad2=new _0x74ae6b(_0x53eb1e),_0x562123=_0x51294b[_0x11730a(0xc0)](_0x3b0ad2,this[_0x11730a(0x16c)]);try{var _0x568fbe,_0xcd6dfb;_0x562123[_0x11730a(0x156)]();let _0x294c37=((_0x568fbe=_0x562123['getSkeletonData']())==null?void 0x0:_0x568fbe['pages'])??[],_0x3875e2=_0x294c37[_0x294c37[_0x11730a(0xb3)]-0x1],_0x4113bf=_0x3875e2?Math['max'](0x0,((_0xcd6dfb=_0x54e01c(_0x3875e2))==null?void 0x0:_0xcd6dfb[_0x11730a(0x1d7)])??0x0):0x0,_0x5c8e0a=_0x562123[_0x11730a(0x160)]()[_0x11730a(0x2bb)]+_0x4113bf-(_0x4f3d0f?_0x5966b6[_0x11730a(0x175)]:_0x5966b6[_0x11730a(0x182)]);return Number['isFinite'](_0x5c8e0a)?_0x4f3d0f?{'width':_0x171dc7,'height':Math[_0x11730a(0x1cc)](0x1,_0x243d92+_0x5c8e0a)}:{'width':Math[_0x11730a(0x1cc)](0x1,_0x171dc7+_0x5c8e0a),'height':_0x243d92}:null;}finally{_0x562123[_0x11730a(0x1f8)](),_0x3b0ad2['dispose'](),_0x53eb1e[_0x11730a(0x1f8)]();}}};Ma=q([K(0x0,_0x4e047b(_0x36af82)),K(0x1,_0x4e047b(_0xe303eb))],Ma);let Na=class extends _0x3dcd10{constructor(_0x45425b=Bi,_0x31507d,_0x534075,_0x3e1817,_0x4b890d){const _0x11e7a9=_0xb07969;super(),this['_config']=_0x45425b,this['_injector']=_0x31507d,this[_0x11e7a9(0xaa)]=_0x534075,this[_0x11e7a9(0x262)]=_0x3e1817,this['_renderManagerService']=_0x4b890d;let {menu:_0x819b13,..._0x16cec4}=_0x504bfd({},Bi,this[_0x11e7a9(0x23a)]);_0x819b13&&this[_0x11e7a9(0x262)]['setConfig']('menu',_0x819b13,{'merge':!0x0}),this['_configService'][_0x11e7a9(0x298)](zi,_0x16cec4),this[_0x11e7a9(0x166)]();}['onStarting'](){const _0x206538=_0xb07969;_0x5ee79c(this[_0x206538(0x2c2)],this[_0x206538(0x2f8)]()),this[_0x206538(0x2c2)][_0x206538(0x1af)](Ca),this[_0x206538(0x20e)]();}[_0xb07969(0x2f8)](){return[[Ca],[ja],[xa],[$],[Ji],[Ki],[J],[ra],[Ma],[Q],[ba]];}[_0xb07969(0x133)](){const _0x7be3fc=_0xb07969;this[_0x7be3fc(0x139)]()[_0x7be3fc(0x2d7)](_0x3d3bdd=>{const _0x47738c=_0x7be3fc;this[_0x47738c(0x9c)](this['_renderManagerService'][_0x47738c(0x219)](_0x1b3194[_0x47738c(0xc7)],_0x3d3bdd));}),_0x28e47e(this[_0x7be3fc(0x2c2)],[[ja],[xa],[$],[Ji],[J],[ra],[Ma],[Q],[ba]]);}[_0xb07969(0x139)](){return[[Ki],[Oa],[Aa],[wa]];}[_0xb07969(0x27d)](){const _0x1a6657=_0xb07969;this['disposeWithMe'](this[_0x1a6657(0x126)][_0x1a6657(0x219)](_0x1b3194[_0x1a6657(0xc7)],[ka]));}[_0xb07969(0x166)](){const _0x2f3edb=_0xb07969;[U,Ri,G,Mr,Pr,Fr][_0x2f3edb(0x2d7)](_0xc0820e=>this[_0x2f3edb(0x9c)](this[_0x2f3edb(0xaa)]['registerCommand'](_0xc0820e)));}['_initUIPart'](){const _0xce084b=_0xb07969;let _0x16294e=this[_0xce084b(0x2c2)],_0x181069=_0x16294e[_0xce084b(0x1af)](_0x35439e);this[_0xce084b(0x9c)](_0x181069[_0xce084b(0x1b7)](_0xcc1654[_0xce084b(0x15e)],()=>_0x4f06fa(ga,_0x16294e)));}};X(Na,_0xb07969(0x1f7),_0x1b3194[_0xb07969(0xc7)]),X(Na,_0xb07969(0x2c4),_0xb07969(0x212)),X(Na,'packageName',Ii),X(Na,_0xb07969(0x1ba),Li),Na=q([_0x3e509d(_0x2270d5,_0x408d49,_0x47a564,_0x56cb01,_0x5797e3,_0x58cd09,_0x17866d,_0x403f8a,_0x2d499a,_0x16bd14),K(0x1,_0x4e047b(_0x27c23b)),K(0x2,_0x4e68a9),K(0x3,_0x12f4ed),K(0x4,_0x2de7f2)],Na);export{Fi as DocsShapeUIMenuSchema,Sa as UniverDocsShapeMobileUIPlugin,Na as UniverDocsShapeUIPlugin};
1
+ const _0x2b58b8=_0x73b8;(function(_0x2f8989,_0x267d73){const _0x155858=_0x73b8,_0x784576=_0x2f8989();while(!![]){try{const _0x1f5e37=parseInt(_0x155858(0x1ad))/0x1*(-parseInt(_0x155858(0x22a))/0x2)+parseInt(_0x155858(0x37d))/0x3+-parseInt(_0x155858(0x337))/0x4*(-parseInt(_0x155858(0x30f))/0x5)+-parseInt(_0x155858(0x159))/0x6+-parseInt(_0x155858(0x117))/0x7*(-parseInt(_0x155858(0x355))/0x8)+parseInt(_0x155858(0x2e9))/0x9+parseInt(_0x155858(0x2c8))/0xa*(-parseInt(_0x155858(0x266))/0xb);if(_0x1f5e37===_0x267d73)break;else _0x784576['push'](_0x784576['shift']());}catch(_0x226d17){_0x784576['push'](_0x784576['shift']());}}}(_0x3bfd,0x38591));import{FormulaShapeAnimationController as _0x4df99d,MobileShapeEditorControls as _0x406ee5,MobileShapeEditorService as _0x4b38a4,MobileShapePickerPanel as _0xe027d8,SHAPE_CHANGE_PICKER_COMPONENT as _0x342b81,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x48d4bb,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x199a5b,ShapeEditPanel as _0x11d750,ShapeFloatingToolbar as _0x1ee75a,ShapeFloatingToolbarService as _0x54ad5c,ShapeFloatingToolbarToggleFactory as _0x17729f,ShapeFormulaRibbonControl as _0x38d486,ShapeGroupEnum as _0x1aea6e,ShapePickerDropdown as _0x43ddc3,ShapePickerPanel as _0x4d11e9,ShapeQuickStyleGallery as _0x11cbb8,ShapeStyleRibbonControl as _0x5de1c8,ShapeTextEditorContainer as _0x4573e8,ShapeTextFloatMenuRenderControllerBase as _0x4f9593,ShapeTextFloatToolbar as _0x2439df,ShapeTextHyperLinkHoverController as _0x436d06,ShapeTextHyperLinkInfo as _0x1151ff,ShapeTextHyperLinkPopupService as _0x1edd14,ShapeTextRibbonControl as _0x21ece6,ToggleShapeFloatingToolbarOperation as _0x5bf1e4,UniverShapeEditorMobileUIPlugin as _0x3b9966,UniverShapeEditorUIPlugin as _0x21cd82,activateDrawingObject as _0x30f783,bindRenderTransformerLifecycle as _0x59c4f1,buildShapeTextDataUpdate as _0x4b7a9f,clearActiveDrawingObjects as _0x168dd8,createShapeTextHyperLinkRegions as _0x269858,drawFormulaShapeAnimationLayers as _0x1ecc92,getDrawingTypeNameKey as _0x29fa97,getTextModel as _0xf92dc,getTextStyle as _0x2f8313,normalizeShapeTextModel as _0x361202,plainShapeTextToDocumentData as _0x20f7f3,prepareShapeTextDocumentData as _0x1bee13,prepareShapeTextDocumentData as _0x3b74bd,registerShapeFormatPainter as _0x3dbd87,resolveFormulaShapeAutoFitSize as _0x57aa48,resolveShapeContextualRibbonHostMode as _0x5387c5,resolveShapeTextDocumentPageHeight as _0x261110,resolveShapeTextDocumentRenderLayout as _0x1e51d4,resolveShapeTextEditorBehaviorShapeData as _0x1e45b8,resolveShapeTextEditorWrapStrategy as _0x46d47a,resolveShapeTextHyperLinkAt as _0xccb99c,resolveShapeTextHyperLinkObject as _0xb163f0,shouldAllowShapeTextEditorHostSizeShrink as _0x37cf60,shouldClipShapeTextDocument as _0x3440f6,useFormulaShapeToolbar as _0x4bb66f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x191d2f,DOC_CONTENT_INSERT_MENU_ID as _0x53ef11,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x906c27,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x2b37e1,DocCanvasPopManagerService as _0x44b27e,DocEventManagerService as _0x20631e,DocLayoutInteractionService as _0x4c3397,DocParagraphMenuService as _0x11940c,DocPrintInterceptorService as _0x50c28a,DocRenderController as _0x2215d8,DocSelectionRenderService as _0x56a574,EMPTY_PARAGRAPH_MENU_ID as _0x3a423f,INSERT_BELLOW_MENU_ID as _0xcccbbd,UniverDocsMobileUIPlugin as _0x4a5d16,UniverDocsUIPlugin as _0x191fd8,VIEWPORT_KEY as _0x59aab8}from'@univerjs/docs-ui';import{BuiltInUIPart as _0xf47892,ComponentManager as _0x391057,ContextMenuGroup as _0xbc21b0,ContextMenuPosition as _0x519876,FloatingObjectToolbarPosition as _0x825cf2,FormatPainterSessionService as _0x292d84,IMenuManagerService as _0x955a33,IRibbonService as _0x16839e,ISidebarService as _0x4bee7b,IUIPartsService as _0x4050f2,IconManager as _0x3fa0b0,MenuItemType as _0x56fa91,MenuManagerPosition as _0x23e24a,MobileMenu as _0x2cf0e1,ObjectPermissionButton as _0x3d2d26,RibbonInsertGroup as _0x4dd0cf,connectInjector as _0x370dd2,getMenuHiddenObservable as _0x26c4d6,useDependency as _0x16858b,useObservable as _0x104db2}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x2e80b2,DEFAULT_DOC_SHAPE_WIDTH as _0x2a901a,DocShapeAnchorPosition as _0x24ab2d,DocsShapeService as _0xc58a76,InsertDocShapeCommand as _0x1b7b6a,UniverDocsShapePlugin as _0x33aa0d,UpdateDocDrawingMetadataCommand as _0x155b37,UpdateDocShapeDataCommand as _0x544402,UpdateDocShapeDataMutation as _0x3d4cfc}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x34e787,ShapeArrowSizeEnum as _0xf89a84,ShapeArrowTypeEnum as _0x1c38b1,ShapeDefaultConfig as _0xda9354,ShapeFillEnum as _0x377cba,ShapeLineTypeEnum as _0x52f7da,ShapeModel as _0x211894,ShapeRenderModeEnum as _0x1f70b1,ShapeTextAutoFitType as _0x52fc4f,ShapeTypeEnum as _0x32c60e,isConnectorShape as _0x3a6b70,resolveShapeTextBodyBehavior as _0x49519b}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x13f23d,UniverShapeEditorPlugin as _0x4f835e,applyQuickStyleToShapeData as _0x92fd7b,cloneShapeDataForType as _0x41e0ce,createShapeFormulaDocument as _0x5273c3,createShapeTextBoxShapeData as _0x42690e,getShapeQuickStylePreset as _0x1a66ee,getShapeQuickStyleType as _0x42e968,resolveActiveShapeQuickStylePresetId as _0x1547f4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x3963c4,BooleanNumber as _0x562bb0,CommandType as _0x1d6912,DependentOn as _0x5d76b8,Disposable as _0x587b62,DisposableCollection as _0x5570bd,DocumentDataModel as _0x4107fb,DrawingTypeEnum as _0x11efaa,FOCUSING_COMMON_DRAWINGS as _0x1ec544,FOCUSING_SHAPE_TEXT_EDITOR as _0x386d22,HorizontalAlign as _0x5cdaf0,ICommandService as _0x5f3c0a,IConfigService as _0x2f3c71,IContextService as _0x311686,IImageIoService as _0x1ec634,IPermissionService as _0x562515,IURLImageService as _0x57ea26,IUniverInstanceService as _0x52a285,Inject as _0xbdb0e2,Injector as _0x57c331,LocaleService as _0x5af3e2,Plugin as _0x2f0f12,PositionedObjectLayoutType as _0x292c91,UniverInstanceType as _0x19a5e9,VerticalAlign as _0x41d65f,createInternalEditorID as _0x3abe1f,generateRandomId as _0x205d4b,getParagraphContentStartOffset as _0x9501d0,merge as _0x4cbbbe,registerDependencies as _0x4136fc,toDisposable as _0x390b1,touchDependencies as _0x44a503}from'@univerjs/core';import{DocInterceptorService as _0x267fb9,DocSelectionManagerService as _0x30b345,RichTextEditingMutation as _0x2dba6b,SetDocumentPermissionCommand as _0x2ba39d,UniverDocsPlugin as _0x2627bb,canEditDocumentTargets as _0x353611,getDocumentDrawingSegmentId as _0x384956,getDocumentEntityParentPermissionObjectIds as _0x4fa6cb,getDocumentEntityPermissionObjectId as _0x418902,getDocumentPermissionValue as _0x196f76}from'@univerjs/docs';import{IDocDrawingService as _0x1c6928,RemoveDocDrawingCommand as _0x6ceb84,SetDocDrawingArrangeCommand as _0x441b4f,TextWrappingStyle as _0x31600f,UpdateDocDrawingWrappingStyleCommand as _0x210103,UpdateDrawingDocTransformCommand as _0x2f3fc9}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x5c1434,Circle as _0x20e69b,DRAWING_OBJECT_LAYER_INDEX as _0x59670b,DocumentSkeleton as _0x297bbe,DocumentViewModel as _0x2f6ee9,Documents as _0x501bdc,IRenderManagerService as _0x5479fc,RENDER_CLASS_TYPE as _0x585778,Shape as _0x55a1bf,Transform as _0x4b5d71,UniverRenderEnginePlugin as _0xd9d11,Vector2 as _0xd9a358,getLastLine as _0x5abd28,setDocsCustomBlockRenderViewportProvider as _0x3e088f}from'@univerjs/engine-render';import{IDrawingManagerService as _0x1f1d2f,SetDrawingSelectedOperation as _0x2aa15c,UniverDrawingPlugin as _0x224c4f,getDrawingShapeKeyByDrawingSearch as _0x3ac7e0}from'@univerjs/drawing';function _0x3bfd(){const _0x118904=['canvas','_closeShapeEditPanel','add$','_hide','setSrcRect','docs-shape-ui.shape-format.style-ribbon-control','fallbackWidth','applyPoint','_registerDrawingTransformHandler','_contextService','pages','Rect','MoveDownIcon','_transformCalculateSrcRect','_registerIcons','_getShapePopup','visible','docs-shape-ui.crop.shape','getState','refreshAdjustControls','adjHandleFill','find','_unitId','_attachAdjustEvent','forEach','408715BisTtX','some','paragraphMenuPlacement','docs-shape-ui.mobile.style','_popupTargetKeys','docs-shape-ui.ribbon.shape-format.arrange-back','getPresentation','_shapeRenderController','isEditing','_addShapeAdjustControl','getTransformerByCreate','docs-shape-ui.ribbon.shape-format.text-control','drawing-ui.objectListPanel.sectionCanvas','CROSSHAIR','docs-shape-ui.textWrap.topAndBottom','clearAdjustValue','getAdjustValueByName','_sidebarDisposable','subscribeEvent','WRAP_SQUARE','componentKey','_drawingManagerService','_getShapeInfo','type','actualHeight','formulaBinding','_disposePopupsByUnit','docs-shape-ui.textWrap.inFrontText','DRAWING_DOM','_isShouldShowDrawingShapeAdjust','disposeWithMe','Line','_baseShapeWidth','getRealBound','calculate','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','0.14','fillType','push','_transform','20QJmKkc','univer-grid\x20univer-gap-5\x20univer-p-3','params','_adjustPointObjects','buildClipPath','span','drawing-ui.objectListPanel.empty','drawing','_docsShapeService','endArrow','draw','beginPath','doc.shape.object-list.panel','objects','horizontal','error','getValue','getShapeModel','getDrawingEffectBounds','_initUIPart','rect','COMMAND','_commandService','_menuManagerService','_popupMenuListener','context-bar','_activeAdjustInfo','shape-editor-ui.arrange.back','onPointerDown$','docs-shape-ui.mobile.text','7144DDVoGU','changeEnd$','drawing-ui.objectListPanel.hide','drawing-ui.objectListPanel.descriptionPlaceholder','VIEW_MAIN','hasDefault','splice','_renderManagerService','_measure','gradientEndColor','drawing-ui.objectListPanel.description','startArrow','drawing-ui.objectListPanel.filterLocked','executeCommand','syncExecuteCommand','length','clearControl$','registerComponent','drawing-ui.objectListPanel.title','_shapeEditPanelVersion','onDblclick$','DocsShapeWrapTopBottomIcon','getSkeletonData','doc','URL','_getActiveDrawingShape','drawWith','transformByState','editingParams$','clipHeight','getInterceptPoints','DocsShapeWrapInFrontOfTextIcon','restore','_shapeFormulaService','_visible','doc-shape-adjust-point-','docs-shape-ui.textWrap.inline','changing$','svg','_subUnitId','1313130wnQQYN','_isOpenedShapeEditPanel','_context','refreshShapeFillImage','drawing-ui.objectListPanel.typeNames.','setCursor','unitId','_getActiveDrawingParam','div','addObject','_activeShapeAdjustPointList','formulaPresentation','isRenderLinePointsMode','_lastEditingShapeKey','contentVerticalOffset','symbol','register','drawing-ui.objectListPanel.close','scene','back','text','DocsShapeTextEditorContainer','translate','getSnapshot','skeFooters','left','get','top-bottom','BEHIND_TEXT','getMatrix','644sfkCtr','layoutType','None','add','oKey','-layout','getSelectedObjectMap','docs-shape-ui.insertShape','getShapeType','sectionCanvas','_permissionService','_registerComponents','_initPrinting','getSelfOrHeaderFooterModel','entries','_isStartAdjusting','order','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','animationEnabled','_getSceneByUnitId','shape-editor-ui.arrange.backward','_registerDrawingFocusChangeHandler','DOCS_SHAPE_UI_PLUGIN','top','dispose','intercept','presetId','_update','getActualSize','_updateAdjustControlPositions','style','fillImageSource','offsetX','subscribe','getPageDrawingIds','behindText','getVisible','Arrow','_updateShape','moveRange','shape-editor-ui.toolbar.changeShape','_toScenePoint','fallbackHeight','drawingType','warn','shapeKey','getShapeTextData','resize','_baseShapeTop','getBody','doc.shape.edit.panel','default','DocsShapeWrapInlineIcon','_componentManager','adjHandleSize','isInGroup','DRAWING_SHAPE','RIBBON','packageName','getShapeDataById','invert','setConfig','behind','_applyFormulaAutoFitSize','menu','stopPropagation','1279014bvqaWJ','docs-shape-ui.ribbon.shape-format.formula-control','_initMenu','docs-shape-ui.ribbon.shape-format.style-control','_activeShapeInfo','docs-shape-ui.ribbon.shape-format.wrapping-style','1.0.4','drawingId','_getDependencies','0\x200\x2020\x2020','_canEdit','_docLayoutInteractionService','_univerInstanceService','map','headerLayoutKey','subtle','panel','_formulaKey','_drawRichText','_editingParams$','_clipService','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','filter','getShapeData','_getDisposePopups','title','drawing-ui.objectListPanel.unlock','height','bottom','cells','width','WRAP_NONE','version','docs-shape-ui.quickStyles','label','shapeModel','drawing-ui.objectListPanel.unlockAll','prstGeom','popup','fill','_injector','multiply','name','setCollapsedIds','Path','backward','_getShapeAdjustPointListById','shapeText','disableObjectsEvent','featurePluginUpdateNotification','with','string','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','flipY','presentationChanged$','call','stroke','DocsShapeWrapSquareIcon','createControl$','current','function','composeMatrix','getDrawingSearch','_adjHandlerPointerUp','values','setCanUseShapeClip','_iconManager','object','getAutoFitPresentations','onCommandExecuted','ancestorTransform','canDispose','doc.operation.close-doc-shape-format-panel','delete','getDrawingPoints','drawings','animateFormulaPresentation','onStarting','shapeId','drawing-ui.objectListPanel.collapse','skeHeaders','_shapeTextEditingService','pageWidth','getShapeTypeById','13gidtUU','shapeData','_clearCompletionFrame','skeTables','wrapStrategy','_insertShapes','refreshTransform$','drawing-ui.objectListPanel.noSelection','getUnitType','PictureFill','SolidLine','startOffset','_activeShapeId','TopmostIcon','footerId','forward','_getShapeAdjustInfosById','contentHeight','setAdjustValueByName','drawing-ui.objectListPanel.hideAll','srcRect','setShapeData','docs-shape-ui.hidePanel','#2563EB','updateShapeFillImage','drawing-ui.objectListPanel.moveForward','doc.operation.apply-shape-quick-style','true','getRenderUnitById','FromArray','_refreshShapeData','Image','create','renderDrawingShape','drawing-ui.objectListPanel.lockHint','_handleCreateControl','front','TOP','max','1.2','drawing-ui.objectListPanel.expand','shapeType','clearAdjustControls','getParent','@univerjs-pro/docs-shape-ui','selectable','INLINE','value','set','unsubscribe','setPrstGeom','_adjName','interceptor','_drawShapeText','drawing-ui.objectListPanel.showAll','trim','inline','clear','save','_mobileEditorService','path','icon','_clearPopups','getDrawingOrder','getOwnPropertyDescriptor','clip','5.5','strokeWidth','_canEditShape','cos','1em','_shapeId','docs-shape-ui.deleteShape','scale','TRUE','updateContext','asObservable','drawing-ui.objectListPanel.lockAll','LAYOUT','transformForAngle','PaintIcon','docs-shape-ui.mobile.delete','getDrawingVisible','_getRenderModules','docs-shape-format-font-family-menu','getObjectIncludeInGroup','DocumentEntity','_localeService','LEFT','_baseShapeHeight','doc.operation.open-shape-object-list-panel','setPresentation','currentAdjustValues','onPointerUp$','docs-shape-ui.textWrap.square','isHorizontal','getDrawingEditable','onPointerMove$','marginTop','docs-shape-text-','_urlImageService','_docDrawingShapeRenderController','getDrawingData','close','getTransformer','_layoutInteraction','PRINTING_COMPONENT_COLLECT','registerRenderModule','drawing-ui.objectListPanel.unlockHint','_initCommands','pluginName','render','below','subUnitId','univer-box-border\x20univer-px-4\x20univer-text-sm','_setTransForm','getViewports','segmentId','classType','refreshFormulaPresentation','next','update$','parent','getCurrentTypeOfUnit$','_renderWithCache','26414UoTtgv','_drawSimpleText','PARAGRAPH','currentColor','DRAWING_IMAGE','_shapeFloatingToolbarService','transformVector2SceneCoord','iterator','canvasElement','isFinite','UNIVER_DOC','onRendered','endOffset','getContextValue','UUID','beginInteraction','_formulaAnimation','attachTransformerTo','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActiveTextRange','data','drawing-ui.objectListPanel.details','spaceBelowApply','_draw','enhanceParams','extensionGroups','mergeMenu','clip-','description','getDrawingByParam','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_ribbonService','_registerImageShapeClipDelegate','drawing-ui.objectListPanel.filterHidden','none','flipX','onload','shape-editor-ui.arrange.front','toPrimitive','defineProperty','drawing-ui.objectListPanel.filterAll','_imageIoService','vertical-center','Medium','decorate','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.ribbon.shape-format','src','drawing-ui.objectListPanel.nameInput','sheet.image-clip.shape-picker.component','has','_configService','dataModel','size','complete','docs-shape-ui.ribbon.shape-format.arrange-forward','getFocusDrawings','footerLayoutKey','drawing-ui.objectListPanel.search','clipByShape','11DYYbnJ','_registerPickers','debounceRefreshControls','resolveHyperLinkAt','Copy','WRAP_TOP_AND_BOTTOM','_updateShapeAdjustControls','docs-shape-ui.openPanel','completeEditing','behindDoc','_config','_completionFrame','getDrawingDataForUnit','getImage','getUnitId','_loadAndSetImage','angle','transform','ObjectLayersIcon','keys','autoFitType','shape-text-','_initEvents','getActiveViewportByCoord','OPERATION','permissionPointUpdate$','BUTTON','_instanceService','MEDIA','getUnit','square','SELECTOR','_hyperLinkRegions','showContextualTab','updateDocumentStyle','_updateSrcRectByTransform','_baseShapeLeft','MoveUpIcon','UNIVER_SHEET','drawing-ui.objectListPanel.lock','docs-shape-ui.textWrap.behindText','IN_FRONT_OF_TEXT','doc.shape.floating-toolbar','enableObjectsEvent','_endLayoutInteraction','setFillImage','attachPopupToObject','SHAPE_TEXT','doc.operation.update-shape-type','SpAutoFit','getAllRenderersOfType','isHit','isMainScene','prototype','offsetY','sectionFloating','docs-shape-ui.formatShape','drawing-ui.objectListPanel.name','fillImageSourceType','hidden','getDrawingOKey','clone','_formulaShapes','_sidebarService','getShapePopupMenus','BottomIcon','_createShapeAdjustControls','setFallbackVisible','_adjHandlerPointerMove','docs-shape-ui.objectListPanel.title','top-center','localeService','docs-shape-ui.shape-format.quick-style-gallery','color','_registerOperations','docs-shape-contextual-ribbon','isLineShape','constructor','custom','setFormulaPresentation','getCurrentUnitOfType','docs-shape-ui.objectListPanel.open','round','getShapeTextRect','isRichText','_onSavingEditorData$','_toVisualAdjustPoint','_props','headerId','_docPrintInterceptorService','_registerObjectListPanel','paragraph','drawing-ui.objectListPanel.locate','ShapeFormatSettingIcon','disableShapeOption','getEditing','adjName','extraProps','4254790CzjEtR','updateDocumentDataMargin','open','cancelEditing','docs-shape-ui.ribbon.shape-format.arrange-front','_clearShapeAdjustControls','SHAPE','sin','_docCanvasPopManagerService','setContextValue','drawing-ui.objectListPanel.show','getInverseCoord','drawing-ui.objectListPanel.sectionFloating','reverse','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_releaseRenderCache','calcAdjValues','translateWithPrecision','shape-editor-ui.toolbar.quickStyles','clipTop','changeStart$','_activeShapeModel','adjHandleStroke','_loadShapePictureFill','_getFocusedShapeAtPoint','_init','pick','getImageSourceCache','image','focusDrawing','_initEditingParams','vertical','setEditing','1013031xzAjQU','docs-shape-ui.shape-format.wrapping-style-label','_openShapeEditPanel','addImageSourceCache','DocsShapeWrapBehindTextIcon','makeDirty','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','isDrawingObject','_registerFloatingToolbar','remove$','focus$','onReady','OTHERS'];_0x3bfd=function(){return _0x118904;};return _0x3bfd();}import{DrawingCommonPanel as _0x45ca4b,DrawingImageClipService as _0x20d505,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x2c1395,MobileObjectListPanel as _0x4bf5db,OBJECT_LIST_FLOATING_SECTION_ID as _0xa72627,ObjectListPanelBase as _0x77d035,UniverDrawingMobileUIPlugin as _0x10c85b,UniverDrawingUIPlugin as _0x38457f,getObjectListPanelSectionIdForDrawingType as _0x590bb6,insertGroupObject as _0xfd7c86}from'@univerjs/drawing-ui';import{Fragment as _0x18996c,jsx as _0x9daf1d,jsxs as _0x29ba63}from'react/jsx-runtime';import{BehaviorSubject as _0x4ac5d9,Observable as _0x15ba3b,distinctUntilChanged as _0x325f40,map as _0x41dd31,merge as _0x3f58bc,of as _0x156e35,startWith as _0x19f0b7}from'rxjs';import{UniverLicensePlugin as _0x23a3e9}from'@univerjs-pro/license';import{DocDrawingPosition as _0x1adf5f,DocDrawingTextWrap as _0x4fb651,MobileDocDrawingPosition as _0x3ac16a,MobileDocDrawingTextWrap as _0x44ac19,UniverDocsDrawingMobileUIPlugin as _0x5994c3,UniverDocsDrawingUIPlugin as _0x26ca13}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x30111e,MoreDownIcon as _0x4067c9,MoreUpIcon as _0x1f633b,MoveDownIcon as _0x23588f,MoveUpIcon as _0x50d193,ObjectLayersIcon as _0x7b836,ShapeFormatSettingIcon as _0x38092e,TextWrapShapeIcon as _0x5e10e7,TopmostIcon as _0x37e31f}from'@univerjs/icons';import{MobileActionRow as _0x1cbd0b}from'@univerjs/design';import{memo as _0x4417c9,useEffect as _0x2951cf,useMemo as _0x17c0eb,useReducer as _0x3f2dd0,useState as _0x1960d6}from'react';import{UnitAction as _0x5c2975,UnitObject as _0xb843b5}from'@univerjs/protocol';function wr(_0xd08d52,_0x170c5a){const _0x452e40=_0x73b8;if(_0x170c5a){if(_0x3a6b70(_0xd08d52)&&(_0x170c5a[_0x452e40(0x360)]||_0x170c5a[_0x452e40(0x340)]))return{'ln':{'startArrow':_0x170c5a['startArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84[_0x452e40(0x255)]}:void 0x0,'endArrow':_0x170c5a['endArrow']?{'type':_0x1c38b1[_0x452e40(0x13c)],'size':_0xf89a84['Large']}:void 0x0}};if(_0xd08d52===_0x32c60e[_0x452e40(0x301)]&&(_0x170c5a['horizontal']||_0x170c5a[_0x452e40(0x2e7)]))return _0x42690e({'fill':{'fillType':_0x377cba['SolidFill'],'color':'#3B82F6'},'isHorizontal':!!_0x170c5a[_0x452e40(0x345)],'stroke':{'lineStrokeType':_0x52f7da[_0x452e40(0x1b7)],'width':0x1,'color':_0x452e40(0x1c4)}});}}function Tr(_0x1a532a,_0x2ea3c5){const _0x5a889e=_0x73b8;var _0x163cd4;let _0xc731d3=_0x2ea3c5[_0x5a889e(0x222)]??'',_0x53a4f3=(_0x163cd4=_0x1a532a[_0x5a889e(0x124)](_0xc731d3))==null?void 0x0:_0x163cd4[_0x5a889e(0x148)]();if(!_0x53a4f3)return null;let _0x3f580d=_0x53a4f3['paragraphs']??[],_0xb72fc9=_0x3f580d[_0x5a889e(0x30b)](_0x5a1fe5=>{const _0x3e5dc7=_0x5a889e;let _0x27c1d4=_0x9501d0(_0x53a4f3,_0x5a1fe5);return _0x2ea3c5[_0x3e5dc7(0x1b8)]>=_0x27c1d4&&_0x2ea3c5[_0x3e5dc7(0x1b8)]<=_0x5a1fe5['startIndex'];})??_0x3f580d[_0x3f580d[_0x5a889e(0x364)]-0x1];return _0xb72fc9?{'paragraphId':_0xb72fc9['paragraphId'],'segmentId':_0xc731d3,'position':_0x24ab2d['OFFSET'],'offset':_0x2ea3c5['startOffset']-_0x9501d0(_0x53a4f3,_0xb72fc9)}:null;}function Er(_0x324ea0,_0x848faf,_0x9a58f8){const _0x249fc3=_0x73b8;var _0x5e8cfe,_0x203564;if(!_0x9a58f8)return null;let _0x5ca359=(_0x5e8cfe=_0x324ea0[_0x249fc3(0x113)](_0x5479fc)[_0x249fc3(0x1c9)](_0x848faf))==null?void 0x0:_0x5e8cfe[_0x249fc3(0x18b)](_0x11940c)['activeTarget'];if(!_0x5ca359)return null;let _0x21c35f=_0x9a58f8===_0x249fc3(0x21d)?{'startOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)],'endOffset':_0x5ca359[_0x249fc3(0x13e)][_0x249fc3(0x236)]}:_0x5ca359['menuRange'];return{'startOffset':_0x21c35f[_0x249fc3(0x1b8)],'endOffset':_0x21c35f['endOffset'],'collapsed':_0x21c35f[_0x249fc3(0x1b8)]===_0x21c35f[_0x249fc3(0x236)],'segmentId':((_0x203564=_0x5ca359[_0x249fc3(0x2c1)])==null?void 0x0:_0x203564['segmentId'])??''};}const U={'type':_0x1d6912['COMMAND'],'id':'doc.command.menu-insert-shape','handler':async(_0x3e0818,_0x2faaf7)=>{const _0x5d3208=_0x73b8;let _0x3326c4=_0x3e0818[_0x5d3208(0x113)](_0x52a285)['getCurrentUnitOfType'](_0x19a5e9[_0x5d3208(0x234)]);if(!_0x3326c4)return!0x1;let _0x4f5d9f=_0x3e0818[_0x5d3208(0x113)](_0x5f3c0a),_0x519f4c=_0x3326c4[_0x5d3208(0x274)](),_0x219091=_0x2faaf7['shapeId']??_0x205d4b(),_0x36c836=_0x2faaf7[_0x5d3208(0x177)]??_0x2a901a,_0x9250fa=_0x2faaf7[_0x5d3208(0x174)]??_0x2e80b2,_0x228e0f=_0x2faaf7[_0x5d3208(0x1ae)]??wr(_0x2faaf7['value'],_0x2faaf7[_0x5d3208(0x242)]),_0x53dd53=Er(_0x3e0818,_0x519f4c,_0x2faaf7[_0x5d3208(0x311)])??_0x3e0818[_0x5d3208(0x113)](_0x30b345)[_0x5d3208(0x23d)]();if(!_0x53dd53)return!0x1;let _0x63dc1d=Tr(_0x3326c4,_0x53dd53);return _0x63dc1d?!!_0x4f5d9f[_0x5d3208(0x363)](_0x1b7b6a['id'],{'unitId':_0x519f4c,'shapeId':_0x219091,'shapeType':_0x2faaf7[_0x5d3208(0x1dc)],'shapeData':_0x228e0f,'transform':{'width':_0x36c836,'height':_0x9250fa},'placement':{'wrappingStyle':_0x31600f[_0x5d3208(0x1db)],'anchor':_0x63dc1d}}):!0x1;}},W=_0x2b58b8(0x149),Dr=_0x2b58b8(0x258),Or=_0x2b58b8(0x343),kr=_0x3abe1f(_0x2b58b8(0x295)),Ar='doc.shape.text.float-menu',jr=_0x2b58b8(0x10e),Mr={'id':_0x2b58b8(0x207),'type':_0x1d6912[_0x2b58b8(0x34c)],'handler':(_0x14b044,_0x185a15)=>{const _0x5c4fef=_0x2b58b8;let _0x125435=_0x14b044['get'](_0x4bee7b),_0x3f8f52=_0x14b044['get'](_0x5af3e2),_0x5b1624=_0x14b044[_0x5c4fef(0x113)](_0x1f1d2f);return(_0x185a15==null?void 0x0:_0x185a15[_0x5c4fef(0x1dc)])===_0x5c4fef(0x214)?(_0x125435[_0x5c4fef(0x214)](Or),!0x0):(_0x125435[_0x5c4fef(0x2ca)]({'id':Or,'header':{'title':_0x3f8f52['t'](_0x5c4fef(0x2ab))},'children':{'label':Or},'onClose':()=>{_0x5b1624['focusDrawing'](null);},'width':0x168}),!0x0);}},G={'type':_0x1d6912['OPERATION'],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x70cd97){const _0x2c67ad=_0x2b58b8;let _0x218e67=_0x70cd97[_0x2c67ad(0x113)](_0x1f1d2f)[_0x2c67ad(0x262)](),_0x16be9f=_0x218e67[_0x2c67ad(0x364)]===0x1?_0x218e67[0x0]:null;if(!_0x16be9f||_0x16be9f[_0x2c67ad(0x142)]!==_0x11efaa[_0x2c67ad(0x14f)])return null;let _0x4a82da=_0x70cd97['get'](_0xc58a76),_0x169f5f=_0x4a82da[_0x2c67ad(0x1ac)](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]),_0x37e65d=_0x4a82da['getShapeDataById'](_0x16be9f[_0x2c67ad(0x383)],_0x16be9f[_0x2c67ad(0x21e)],_0x16be9f[_0x2c67ad(0x160)]);return _0x169f5f===void 0x0||!_0x37e65d?null:{'drawing':_0x16be9f,'shapeData':_0x37e65d,'shapeType':_0x169f5f};}const Pr={'id':_0x2b58b8(0x1c7),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x4dd916,_0x1217e7)=>{const _0x35a749=_0x2b58b8;let _0x526900=Nr(_0x4dd916),_0x4681e1=_0x1a66ee((_0x1217e7==null?void 0x0:_0x1217e7[_0x35a749(0x131)])??(_0x1217e7==null?void 0x0:_0x1217e7['value'])??'');if(!_0x526900||!_0x4681e1||_0x4681e1[_0x35a749(0x326)]!==_0x42e968(_0x526900[_0x35a749(0x1ae)]))return!0x1;let _0x11e3df=_0x92fd7b(_0x526900[_0x35a749(0x1ae)],_0x4681e1);if(!_0x11e3df)return!0x1;let {drawing:_0x4a5b04}=_0x526900;return _0x4dd916[_0x35a749(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0x4a5b04[_0x35a749(0x383)],'shapeId':_0x4a5b04['drawingId'],'shapeData':_0x11e3df,'oldShapeJSON':{'oldShapeData':_0x526900[_0x35a749(0x1ae)]}});}},Fr={'id':_0x2b58b8(0x296),'type':_0x1d6912[_0x2b58b8(0x27e)],'handler':(_0x37d12f,_0x40b1cf)=>{const _0x3156d2=_0x2b58b8;let _0x514da0=Nr(_0x37d12f),_0x259b68=(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1d6)])??(_0x40b1cf==null?void 0x0:_0x40b1cf[_0x3156d2(0x1dc)]);if(!_0x514da0||!_0x259b68||_0x3a6b70(_0x514da0[_0x3156d2(0x1d6)])||_0x3a6b70(_0x259b68))return!0x1;let _0x3f91ad=_0x41e0ce(_0x514da0[_0x3156d2(0x1ae)],_0x259b68);if(!_0x3f91ad)return!0x1;let {drawing:_0xda6f5e}=_0x514da0;return _0x37d12f[_0x3156d2(0x113)](_0x5f3c0a)['executeCommand'](_0x544402['id'],{'unitId':_0xda6f5e[_0x3156d2(0x383)],'shapeId':_0xda6f5e[_0x3156d2(0x160)],'shapeType':_0x259b68,'shapeData':_0x3f91ad,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x514da0[_0x3156d2(0x1d6)],'oldShapeData':_0x514da0['shapeData']}});}};function K(_0x468cdc,_0x1a3cce){return function(_0x4cc2da,_0x21e181){_0x1a3cce(_0x4cc2da,_0x21e181,_0x468cdc);};}function q(_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e){const _0x4ec3c4=_0x2b58b8;var _0x4ae443=arguments['length'],_0x2fdcf0=_0x4ae443<0x3?_0x4281c8:_0x5d4b4e===null?_0x5d4b4e=Object[_0x4ec3c4(0x1ed)](_0x4281c8,_0x36ad47):_0x5d4b4e,_0xa62003;if(typeof Reflect=='object'&&typeof Reflect[_0x4ec3c4(0x256)]==_0x4ec3c4(0x195))_0x2fdcf0=Reflect[_0x4ec3c4(0x256)](_0x5b2194,_0x4281c8,_0x36ad47,_0x5d4b4e);else{for(var _0x15f513=_0x5b2194['length']-0x1;_0x15f513>=0x0;_0x15f513--)(_0xa62003=_0x5b2194[_0x15f513])&&(_0x2fdcf0=(_0x4ae443<0x3?_0xa62003(_0x2fdcf0):_0x4ae443>0x3?_0xa62003(_0x4281c8,_0x36ad47,_0x2fdcf0):_0xa62003(_0x4281c8,_0x36ad47))||_0x2fdcf0);}return _0x4ae443>0x3&&_0x2fdcf0&&Object[_0x4ec3c4(0x251)](_0x4281c8,_0x36ad47,_0x2fdcf0),_0x2fdcf0;}let Ir=class extends _0x587b62{constructor(_0x90164a,_0x59f8b0){const _0x34b91f=_0x2b58b8;super(),this[_0x34b91f(0x16d)]=_0x90164a,this[_0x34b91f(0x324)]=_0x59f8b0,this['_registerImageShapeClipDelegate'](),this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x0),this[_0x34b91f(0x32d)]({'dispose':()=>this[_0x34b91f(0x16d)][_0x34b91f(0x19a)](!0x1)});}[_0x2b58b8(0x24a)](){const _0x52582b=_0x2b58b8;let _0x1cefb9=new Map(),_0x19ace3=this[_0x52582b(0x16d)]['registerClipDelegate']((_0x35c704,_0x556a94,_0x596bd7,_0x29282b,_0x3a81e1)=>{const _0x198561=_0x52582b;let _0xbbe077=_0x556a94;if(_0xbbe077===_0x32c60e[_0x198561(0x119)]||_0x556a94===_0x198561(0x2b4))return!0x1;try{let _0x37b6aa=_0x1cefb9[_0x198561(0x113)](_0x556a94);return _0x37b6aa||(_0x37b6aa=new _0x211894(_0xbbe077,_0x198561(0x245)+_0x556a94),_0x1cefb9[_0x198561(0x1dd)](_0x556a94,_0x37b6aa)),_0x37b6aa[_0x198561(0x31e)](),_0x3a81e1&&Object['keys'](_0x3a81e1)[_0x198561(0x364)]>0x0&&_0x37b6aa[_0x198561(0x1c2)]({'adjustValues':_0x3a81e1},!0x0),_0x37b6aa[_0x198561(0x1f8)]({'width':_0x596bd7,'height':_0x29282b}),_0x37b6aa[_0x198561(0x33b)](_0x35c704,{'left':0x0,'top':0x0,'width':_0x596bd7,'height':_0x29282b});}catch{return!0x1;}});this[_0x52582b(0x32d)](_0x19ace3),this[_0x52582b(0x32d)]({'dispose':()=>_0x1cefb9[_0x52582b(0x1e6)]()});}['clipByShape'](_0x569d57,_0x392185,_0x52605a,_0x42a169,_0x40daab){const _0x22db48=_0x2b58b8;let _0x3d76ac=this[_0x22db48(0x324)][_0x22db48(0x213)](_0x569d57,_0x392185)[_0x52605a];_0x3d76ac&&_0x3d76ac['drawingType']===_0x11efaa['DRAWING_IMAGE']&&this[_0x22db48(0x324)][_0x22db48(0x18a)]([{..._0x3d76ac,'prstGeom':_0x42a169,'adjustValues':_0x40daab}]);}};Ir=q([K(0x0,_0xbdb0e2(_0x20d505)),K(0x1,_0xbdb0e2(_0x1f1d2f))],Ir);const Lr='doc.shape.picker.component',Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x1ff170,excludeGroups:_0x17de3e}){const _0x3737de=_0x2b58b8;return _0x9daf1d(_0x4d11e9,{'excludeGroups':_0x17de3e,'onShapeClick':_0x1ff170,'scrollContainer':_0x3737de(0x227)});}function Br(){let _0x59f1c5=_0x16858b(_0x1f1d2f),_0x15992c=_0x16858b(Ir);return _0x590fe7=>{const _0x4bb1e2=_0x73b8;let _0x22a186=_0x59f1c5[_0x4bb1e2(0x262)]()[_0x4bb1e2(0x30b)](_0xc87c72=>_0xc87c72['drawingType']===_0x11efaa[_0x4bb1e2(0x22e)]);_0x22a186&&_0x15992c[_0x4bb1e2(0x265)](_0x22a186[_0x4bb1e2(0x383)],_0x22a186[_0x4bb1e2(0x21e)],_0x22a186[_0x4bb1e2(0x160)],_0x590fe7[_0x4bb1e2(0x326)]);};}function Vr(){const _0x1bf7a3=_0x2b58b8;let _0x5762f5=Br();return _0x9daf1d(_0x43ddc3,{'buttonLabel':_0x1bf7a3(0x307),'excludeGroups':[_0x1aea6e[_0x1bf7a3(0x32e)]],'onShapeClick':_0x5762f5});}function Hr(){const _0x117a27=_0x2b58b8;let _0x2ebce8=_0x16858b(_0x391057),_0x1591a9=_0x16858b(_0x1f1d2f),_0x250366=_0x16858b(_0x52a285),_0xd2fcae=_0x1591a9[_0x117a27(0x262)]()[0x0],_0x40f7bc=_0xd2fcae?_0x250366[_0x117a27(0x1b5)](_0xd2fcae[_0x117a27(0x383)]):void 0x0,_0x1f68f9=_0x40f7bc===_0x19a5e9[_0x117a27(0x234)]?Rr:_0x40f7bc===_0x19a5e9[_0x117a27(0x28c)]?_0x117a27(0x25b):void 0x0,_0x497fab=_0x1f68f9?_0x2ebce8[_0x117a27(0x113)](_0x1f68f9):void 0x0;return _0x497fab?_0x9daf1d(_0x497fab,{}):null;}function Ur({paragraphMenuPlacement:_0x313d48,PickerComponent:_0x3ce292=zr}){let _0xa31034=_0x16858b(_0x5f3c0a);return _0x9daf1d(_0x3ce292,{'onShapeClick':_0x377c7d=>{const _0x17656a=_0x73b8;_0xa31034[_0x17656a(0x362)](U['id'],{'paragraphMenuPlacement':_0x313d48,'value':_0x377c7d['type'],'enhanceParams':{'endArrow':_0x377c7d[_0x17656a(0x340)],'startArrow':_0x377c7d[_0x17656a(0x360)],'horizontal':_0x377c7d[_0x17656a(0x345)],'vertical':_0x377c7d[_0x17656a(0x2e7)]}});}});}function Wr(_0x1227a6){const _0x3e107d=_0x2b58b8;return _0x1b73dc=>({'id':U['id'],'type':_0x56fa91['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x1227a6?{'id':U['id'],'paragraphMenuPlacement':_0x1227a6}:{'id':U['id']}}}],'icon':'ShapeIcon','title':'docs-shape-ui.insertShape','tooltip':_0x3e107d(0x11e),'hidden$':_0x26c4d6(_0x1b73dc,_0x19a5e9[_0x3e107d(0x234)])});}const Gr=Wr(),Kr=Wr(_0x2b58b8(0x21d)),qr=Wr('target');function Jr(_0x52f6bf){const _0x31474f=_0x2b58b8;return{'id':Mr['id'],'type':_0x56fa91[_0x31474f(0x280)],'icon':_0x31474f(0x278),'title':_0x31474f(0x2b7),'tooltip':_0x31474f(0x2b7),'hidden$':_0x26c4d6(_0x52f6bf,_0x19a5e9['UNIVER_DOC'])};}function Yr(_0x268ac4,_0x2f6f55,_0x40dc72,_0x423572,_0x536099,_0x4fb03b){const _0x2e8782=_0x2b58b8;let _0x1f090a={'unitId':_0x2f6f55,'shapeId':_0x423572,'shapeData':_0x4fb03b,'oldShapeJSON':_0x536099};return _0x268ac4[_0x2e8782(0x362)](_0x544402['id'],_0x1f090a);}function Xr(_0x599ccf,_0x25e856,_0x28d66f,_0x45e26a,_0x491dbb,_0x3648a4){let _0x5d37fe={'unitId':_0x25e856,'shapeId':_0x45e26a,'shapeData':_0x3648a4,'oldShapeJSON':_0x491dbb};return _0x599ccf['executeCommand'](_0x544402['id'],_0x5d37fe);}const Zr=_0x2b58b8(0x2ae),Qr=_0x2b58b8(0x2fb),$r=_0x2b58b8(0x257),ei='docs-shape-ui.shape-format.formula-ribbon-control',ti=_0x2b58b8(0x2ea),ni=[{'value':_0x31600f[_0x2b58b8(0x1db)],'label':_0x2b58b8(0x379),'icon':_0x2b58b8(0x14b)},{'value':_0x31600f['WRAP_SQUARE'],'label':'docs-shape-ui.textWrap.square','icon':_0x2b58b8(0x192)},{'value':_0x31600f['WRAP_TOP_AND_BOTTOM'],'label':_0x2b58b8(0x31d),'icon':_0x2b58b8(0x36a)},{'value':_0x31600f['BEHIND_TEXT'],'label':_0x2b58b8(0x28e),'icon':_0x2b58b8(0x2ed)},{'value':_0x31600f[_0x2b58b8(0x28f)],'label':_0x2b58b8(0x32a),'icon':_0x2b58b8(0x374)}];function ri(){let _0x299f86=_0x16858b(_0x5f3c0a),_0x4a6b63=_0x16858b(_0x1f1d2f),_0x3b909a=_0x16858b(_0xc58a76),_0x4ab3a6=()=>{const _0x29cf9f=_0x73b8;var _0x2a865f;let _0x4b1459=_0x4a6b63[_0x29cf9f(0x262)]();if(_0x4b1459[_0x29cf9f(0x364)]!==0x1||((_0x2a865f=_0x4b1459[0x0])==null?void 0x0:_0x2a865f[_0x29cf9f(0x142)])!==_0x11efaa[_0x29cf9f(0x14f)])return null;let {unitId:_0x3a631c,subUnitId:_0x53856a,drawingId:_0x3251b6}=_0x4b1459[0x0],_0x311f1a=_0x3b909a['getShapeTypeById'](_0x3a631c,_0x53856a,_0x3251b6),_0x5399f8=_0x3b909a[_0x29cf9f(0x152)](_0x3a631c,_0x53856a,_0x3251b6);return _0x311f1a===void 0x0||!_0x5399f8?null:{'unitId':_0x3a631c,'subUnitId':_0x53856a,'drawingId':_0x3251b6,'shapeType':_0x311f1a,'shapeData':_0x5399f8};},_0x586918=_0x104db2(()=>new _0x15ba3b(_0x2d0ead=>{const _0x40ad0c=_0x73b8;let _0x2f51fe=()=>_0x2d0ead[_0x40ad0c(0x225)](_0x4ab3a6()),_0x33fad5=_0x4a6b63[_0x40ad0c(0x2f3)][_0x40ad0c(0x138)](_0x2f51fe),_0x4b665d=_0x299f86[_0x40ad0c(0x19e)](_0x37a467=>{_0x37a467['id']===_0x3d4cfc['id']&&_0x2f51fe();});return _0x2f51fe(),()=>{const _0x4a938d=_0x40ad0c;_0x33fad5[_0x4a938d(0x1de)](),_0x4b665d['dispose']();};}),_0x4ab3a6(),!0x1,[_0x299f86,_0x3b909a,_0x4a6b63]);return{'selection':_0x586918,'updateShapeData':_0x261aca=>{const _0x345f08=_0x73b8;_0x586918&&Yr(_0x299f86,_0x586918['unitId'],_0x586918[_0x345f08(0x21e)],_0x586918[_0x345f08(0x160)],{'oldShapeData':_0x586918[_0x345f08(0x1ae)]},_0x261aca);}};}function ii(){const _0x184994=_0x2b58b8;let {selection:_0x459657,updateShapeData:_0x5d6b9b}=ri();return _0x459657?_0x9daf1d(_0x5de1c8,{'shapeData':_0x459657[_0x184994(0x1ae)],'shapeType':_0x459657['shapeType'],'onUpdateShapeData':_0x5d6b9b}):null;}function ai(){const _0x11cd8d=_0x2b58b8;let _0x41451c=_0x16858b(_0x5f3c0a),_0x37da9a=_0x16858b(_0x5af3e2),{selection:_0x5c1507}=ri();return _0x5c1507?_0x9daf1d(_0x11cbb8,{'type':_0x42e968(_0x5c1507['shapeData']),'ariaLabel':_0x37da9a['t'](_0x11cd8d(0x17a)),'activePresetId':_0x1547f4(_0x5c1507[_0x11cd8d(0x1ae)]),'onSelect':_0x239c21=>_0x41451c[_0x11cd8d(0x362)](Pr['id'],{'presetId':_0x239c21})}):null;}function oi(){const _0x4d176e=_0x2b58b8;let {selection:_0xa61126,updateShapeData:_0x50bb23}=ri();return _0xa61126?_0x9daf1d(_0x21ece6,{'fontFamilyPopupDataComponent':_0x4d176e(0x201),'shapeData':_0xa61126[_0x4d176e(0x1ae)],'onUpdateShapeData':_0x50bb23}):null;}function si(){const _0x5ab714=_0x2b58b8;var _0x45e70d;let {selection:_0x3e7804,updateShapeData:_0x59d9c2}=ri(),_0x5cbad0=_0x4bb66f({'hostType':_0x19a5e9[_0x5ab714(0x234)],'unitId':(_0x3e7804==null?void 0x0:_0x3e7804['unitId'])??'','subUnitId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x21e)])??'','shapeId':(_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x160)])??'','shapeData':_0x3e7804==null?void 0x0:_0x3e7804[_0x5ab714(0x1ae)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x5ab714(0x175),'onUpdateBinding':_0x3de2c6=>_0x59d9c2({'formulaBinding':_0x3de2c6})}),_0x3868ec=((_0x45e70d=_0x5cbad0[_0x5ab714(0x243)])==null?void 0x0:_0x45e70d['flatMap'](_0x3cdab6=>_0x3cdab6['actions'])[_0x5ab714(0x16f)](_0x5124e9=>_0x5124e9[_0x5ab714(0x306)]!==!0x1))??[];return _0x3e7804!=null&&_0x3e7804['shapeData'][_0x5ab714(0x328)]?_0x9daf1d(_0x38d486,{'actions':_0x3868ec,'panel':_0x5cbad0[_0x5ab714(0x169)]}):null;}function ci({value:_0x189cf3}){const _0x1b4f09=_0x2b58b8;let _0x5c2841=_0x16858b(_0x5af3e2),_0x26f7e5=ni[_0x1b4f09(0x30b)](_0x2eeead=>_0x2eeead['value']===_0x189cf3)??ni[0x0];return _0x26f7e5?_0x9daf1d(_0x1b4f09(0x33c),{'children':_0x5c2841['t'](_0x26f7e5[_0x1b4f09(0x17b)])}):null;}const li=_0x2b58b8(0x15c),ui=_0x2b58b8(0x31a),di=_0x2b58b8(0x15a),fi=_0x2b58b8(0x261),pi='docs-shape-ui.ribbon.shape-format.arrange-backward',mi=_0x2b58b8(0x2cc),hi=_0x2b58b8(0x314),gi=_0x2b58b8(0x15e);function _i(_0x2979fc){const _0x3757bc=_0x2b58b8;let _0xffaa0d=_0x2979fc[_0x3757bc(0x113)](_0x5f3c0a),_0x1ee158=_0x2979fc[_0x3757bc(0x113)](_0x1f1d2f),_0x3ebcda=_0x2979fc[_0x3757bc(0x113)](_0xc58a76);return new _0x15ba3b(_0x2d3a18=>{const _0x438f2c=_0x3757bc;let _0xc105a0=()=>{const _0x3d3f3a=_0x73b8;let _0x40085a=vi(_0x2979fc),_0x1f7fec=_0x40085a?_0x3ebcda[_0x3d3f3a(0x152)](_0x40085a[_0x3d3f3a(0x383)],_0x40085a[_0x3d3f3a(0x21e)],_0x40085a[_0x3d3f3a(0x160)]):null;_0x2d3a18[_0x3d3f3a(0x225)](_0x1f7fec?_0x1547f4(_0x1f7fec)??'':'');},_0x17fcab=_0x1ee158[_0x438f2c(0x2f3)][_0x438f2c(0x138)](_0xc105a0),_0x3a1188=_0xffaa0d[_0x438f2c(0x19e)](_0x329f79=>{_0x329f79['id']===_0x3d4cfc['id']&&_0xc105a0();});return _0xc105a0(),()=>{const _0xd23df8=_0x438f2c;_0x17fcab[_0xd23df8(0x1de)](),_0x3a1188['dispose']();};});}function vi(_0x1c765e){const _0x1f3cb0=_0x2b58b8;var _0x299007;let _0x148afd=_0x1c765e[_0x1f3cb0(0x113)](_0x1f1d2f)['getFocusDrawings']();return _0x148afd[_0x1f3cb0(0x364)]===0x1&&((_0x299007=_0x148afd[0x0])==null?void 0x0:_0x299007[_0x1f3cb0(0x142)])===_0x11efaa[_0x1f3cb0(0x14f)]?_0x148afd[0x0]:null;}function yi(_0x215bec){const _0x4c8944=_0x2b58b8;return(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x178)]?_0x215bec['behindDoc']===_0x562bb0['TRUE']?_0x31600f['BEHIND_TEXT']:_0x31600f[_0x4c8944(0x28f)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91[_0x4c8944(0x322)]?_0x31600f[_0x4c8944(0x322)]:(_0x215bec==null?void 0x0:_0x215bec[_0x4c8944(0x118)])===_0x292c91['WRAP_TOP_AND_BOTTOM']?_0x31600f['WRAP_TOP_AND_BOTTOM']:_0x31600f[_0x4c8944(0x1db)];}function bi(_0x4c7574){const _0x5405d8=_0x2b58b8;let _0x1fb748=_0x4c7574[_0x5405d8(0x113)](_0x5f3c0a),_0x138e86=_0x4c7574['get'](_0x1f1d2f),_0x26d5fa=_0x4c7574[_0x5405d8(0x113)](_0x52a285);return new _0x15ba3b(_0x5a02af=>{const _0x903a63=_0x5405d8;let _0x41c7d4=()=>{const _0x146628=_0x73b8;var _0x172ab6;let _0x3d6d98=vi(_0x4c7574),_0x294ce6=_0x3d6d98?_0x26d5fa['getUnit'](_0x3d6d98[_0x146628(0x383)],_0x19a5e9['UNIVER_DOC']):void 0x0;_0x5a02af[_0x146628(0x225)](yi(_0x3d6d98?_0x294ce6==null||(_0x172ab6=_0x294ce6[_0x146628(0x110)]()[_0x146628(0x1a4)])==null?void 0x0:_0x172ab6[_0x3d6d98[_0x146628(0x160)]]:void 0x0));},_0x11f614=_0x138e86[_0x903a63(0x2f3)]['subscribe'](_0x41c7d4),_0x413f41=_0x1fb748[_0x903a63(0x19e)](_0x33ba9d=>{_0x33ba9d['id']===_0x2dba6b['id']&&_0x41c7d4();});return _0x41c7d4(),()=>{const _0x357e9b=_0x903a63;_0x11f614[_0x357e9b(0x1de)](),_0x413f41['dispose']();};})['pipe'](_0x325f40());}function xi(_0x2cecf9,_0x313a76=!0x1){const _0x576213=_0x2b58b8;let _0x240902=_0x2cecf9[_0x576213(0x113)](_0x5f3c0a),_0x24c33b=_0x2cecf9[_0x576213(0x113)](_0x1f1d2f),_0x372ebb=_0x2cecf9[_0x576213(0x113)](_0xc58a76);return new _0x15ba3b(_0x31f6da=>{const _0x285017=_0x576213;let _0x4aed76=()=>{const _0x5831fd=_0x73b8;let _0x2474b4=vi(_0x2cecf9);if(!_0x2474b4){_0x31f6da[_0x5831fd(0x225)](!0x0);return;}let _0x1203e3=_0x372ebb['getShapeDataById'](_0x2474b4[_0x5831fd(0x383)],_0x2474b4[_0x5831fd(0x21e)],_0x2474b4['drawingId']);_0x31f6da[_0x5831fd(0x225)](!_0x1203e3||_0x313a76&&_0x1203e3[_0x5831fd(0x328)]==null);},_0x47a0a7=_0x24c33b[_0x285017(0x2f3)][_0x285017(0x138)](_0x4aed76),_0x54d454=_0x240902['onCommandExecuted'](_0x15cd30=>{_0x15cd30['id']===_0x3d4cfc['id']&&_0x4aed76();});return _0x4aed76(),()=>{const _0x5d3e29=_0x285017;_0x47a0a7[_0x5d3e29(0x1de)](),_0x54d454[_0x5d3e29(0x12f)]();};});}function Si(_0x2a39a8){const _0x47674c=_0x2b58b8;let _0x5063fd=_0x2a39a8['get'](_0x1f1d2f),_0x11ca84=_0x2a39a8['get'](_0xc58a76);return _0x5063fd[_0x47674c(0x2f3)]['pipe'](_0x19f0b7(_0x5063fd[_0x47674c(0x262)]()),_0x41dd31(()=>{const _0x2c5a67=_0x47674c;let _0x526b36=vi(_0x2a39a8),_0x3d4f4d=_0x526b36?_0x11ca84[_0x2c5a67(0x1ac)](_0x526b36['unitId'],_0x526b36[_0x2c5a67(0x21e)],_0x526b36[_0x2c5a67(0x160)]):void 0x0;return _0x3d4f4d===void 0x0||_0x3a6b70(_0x3d4f4d);}));}function Ci(_0x555136){const _0x36b857=_0x2b58b8;return{'id':Pr['id'],'type':_0x56fa91['SELECTOR'],'icon':_0x36b857(0x1fd),'title':_0x36b857(0x2da),'tooltip':_0x36b857(0x2da),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x555136),'hidden$':xi(_0x555136)};}function wi(_0x2d5cbb){const _0x3c91f2=_0x2b58b8;return{'id':Fr['id'],'type':_0x56fa91[_0x3c91f2(0x285)],'icon':'ShapeIcon','title':_0x3c91f2(0x13f),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x342b81,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x2d5cbb)};}function Ti(_0x16558c,_0x875e74,_0x1e39d8=!0x1){const _0x18b9d3=_0x2b58b8;return _0x34325d=>({'id':_0x16558c,'type':_0x56fa91[_0x18b9d3(0x280)],'label':{'name':_0x875e74,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x34325d,_0x1e39d8)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x2e1034){const _0x476dc5=_0x2b58b8;return{'id':gi,'type':_0x56fa91[_0x476dc5(0x285)],'icon':ni[0x0][_0x476dc5(0x1ea)],'label':ti,'selectionsCommandId':_0x210103['id'],'selections':ni[_0x476dc5(0x166)](({icon:_0xb84669,label:_0x1fe12e,value:_0x10d0b3})=>({'value':_0x10d0b3,'label':_0x1fe12e,'icon':_0xb84669,'params':()=>{const _0x1a0485=_0x476dc5;let _0x3c4d24=vi(_0x2e1034);return _0x3c4d24?{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawings':[{'unitId':_0x3c4d24[_0x1a0485(0x383)],'subUnitId':_0x3c4d24[_0x1a0485(0x21e)],'drawingId':_0x3c4d24[_0x1a0485(0x160)]}],'wrappingStyle':_0x10d0b3}:void 0x0;}})),'value$':bi(_0x2e1034),'hidden$':xi(_0x2e1034)};}function Ai(_0x2d1def,_0x20ac4b,_0x2797f,_0x584037){return _0x340d46=>({'id':_0x2d1def,'commandId':_0x441b4f['id'],'type':_0x56fa91['BUTTON'],'icon':_0x2797f,'title':_0x584037,'tooltip':_0x584037,'hidden$':xi(_0x340d46),'params':()=>{const _0x47372a=_0x73b8;let _0x52609f=vi(_0x340d46);return _0x52609f?{'unitId':_0x52609f[_0x47372a(0x383)],'subUnitId':_0x52609f[_0x47372a(0x21e)],'drawingIds':[_0x52609f[_0x47372a(0x160)]],'arrangeType':_0x20ac4b}:void 0x0;}});}const ji=Ai(fi,_0x3963c4[_0x2b58b8(0x1bc)],_0x2b58b8(0x28b),'shape-editor-ui.arrange.forward'),Mi=Ai(pi,_0x3963c4[_0x2b58b8(0x186)],_0x2b58b8(0x302),_0x2b58b8(0x12b)),Ni=Ai(mi,_0x3963c4[_0x2b58b8(0x1d1)],_0x2b58b8(0x1ba),_0x2b58b8(0x24f)),Pi=Ai(hi,_0x3963c4[_0x2b58b8(0x10c)],_0x2b58b8(0x2a7),_0x2b58b8(0x352));function Fi(_0x3fac19){const _0x674d7a=_0x2b58b8;return{'id':G['id'],'type':_0x56fa91['BUTTON'],'icon':'ShapeFormatSettingIcon','title':_0x674d7a(0x29e),'tooltip':_0x674d7a(0x29e),'hidden$':xi(_0x3fac19),'params':()=>{const _0x37dd57=_0x674d7a;let _0x1f1e03=vi(_0x3fac19);return _0x1f1e03?{'unitId':_0x1f1e03[_0x37dd57(0x383)],'subUnitId':_0x1f1e03[_0x37dd57(0x21e)],'drawingId':_0x1f1e03[_0x37dd57(0x160)]}:void 0x0;}};}const Ii={[_0x23e24a[_0x2b58b8(0x150)]]:{[Dr]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Pr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci},[Fr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':ki},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':ji},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Mi},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ni},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Pi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Oi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Fi},[_0x5bf1e4['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x17729f}}}}},Li={[_0x4dd0cf[_0x2b58b8(0x282)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x577281=>({...Gr(_0x577281),'title':void 0x0})}},[_0x4dd0cf[_0x2b58b8(0x2f5)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x519876[_0x2b58b8(0x22c)]]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[_0xcccbbd]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x53ef11]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3a423f]:{[_0xbc21b0[_0x2b58b8(0x1fb)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x2b37e1]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x906c27]:{'insert':{[U['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x2b58b8(0x1d9),zi=_0x2b58b8(0x15f);const Bi={'type':_0x1d6912[_0x2b58b8(0x27e)],'id':_0x2b58b8(0x1a1),'handler'(){return!0x0;}},Vi='docs-shape-ui.config',Hi={};function Ui(_0x3b9178){'@babel/helpers - typeof';const _0x2c7b46=_0x2b58b8;return Ui=typeof Symbol==_0x2c7b46(0x195)&&typeof Symbol[_0x2c7b46(0x231)]==_0x2c7b46(0x108)?function(_0x39c47d){return typeof _0x39c47d;}:function(_0x2ac11d){const _0x4ca8b3=_0x2c7b46;return _0x2ac11d&&typeof Symbol=='function'&&_0x2ac11d[_0x4ca8b3(0x2b3)]===Symbol&&_0x2ac11d!==Symbol[_0x4ca8b3(0x29b)]?'symbol':typeof _0x2ac11d;},Ui(_0x3b9178);}function Wi(_0x20ca1f,_0x3c378b){const _0x57c17b=_0x2b58b8;if(Ui(_0x20ca1f)!=_0x57c17b(0x19c)||!_0x20ca1f)return _0x20ca1f;var _0x35bb92=_0x20ca1f[Symbol[_0x57c17b(0x250)]];if(_0x35bb92!==void 0x0){var _0x2ec30e=_0x35bb92[_0x57c17b(0x190)](_0x20ca1f,_0x3c378b||_0x57c17b(0x14a));if(Ui(_0x2ec30e)!=_0x57c17b(0x19c))return _0x2ec30e;throw TypeError(_0x57c17b(0x23c));}return(_0x3c378b===_0x57c17b(0x18c)?String:Number)(_0x20ca1f);}function Gi(_0x38a4ca){const _0x1952b5=_0x2b58b8;var _0x5f4440=Wi(_0x38a4ca,_0x1952b5(0x18c));return Ui(_0x5f4440)==_0x1952b5(0x108)?_0x5f4440:_0x5f4440+'';}function J(_0x757c2d,_0x3e2d6f,_0x291de1){const _0x2c035f=_0x2b58b8;return(_0x3e2d6f=Gi(_0x3e2d6f))in _0x757c2d?Object[_0x2c035f(0x251)](_0x757c2d,_0x3e2d6f,{'value':_0x291de1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x757c2d[_0x3e2d6f]=_0x291de1,_0x757c2d;}var Ki=class extends _0x55a1bf{constructor(_0x411342,_0xaf1707){const _0x13f879=_0x2b58b8;super(_0x411342,_0xaf1707),J(this,_0x13f879(0x1f4),null),J(this,'_adjName',null),J(this,_0x13f879(0x30c),null),J(this,_0x13f879(0x37c),null),_0xaf1707&&this['setShapeProps'](_0xaf1707);}[_0x2b58b8(0x197)](){const _0xd6be48=_0x2b58b8;return{'unitId':this['_unitId'],'subUnitId':this[_0xd6be48(0x37c)],'drawingId':this[_0xd6be48(0x1f4)]};}['setShapeProps'](_0x44590f){const _0x16c210=_0x2b58b8;_0x44590f['shapeId']!==void 0x0&&(this[_0x16c210(0x1f4)]=_0x44590f[_0x16c210(0x1a7)]),_0x44590f[_0x16c210(0x2c6)]!==void 0x0&&(this[_0x16c210(0x1e0)]=_0x44590f[_0x16c210(0x2c6)]),_0x44590f[_0x16c210(0x383)]!==void 0x0&&(this[_0x16c210(0x30c)]=_0x44590f['unitId']),_0x44590f[_0x16c210(0x21e)]!==void 0x0&&(this[_0x16c210(0x37c)]=_0x44590f[_0x16c210(0x21e)]),this[_0x16c210(0x370)]({'width':_0x44590f[_0x16c210(0x177)],'height':_0x44590f[_0x16c210(0x174)]});}[_0x2b58b8(0x241)](_0x59c58f){const _0x457fea=_0x2b58b8;_0x20e69b[_0x457fea(0x36f)](_0x59c58f,{'radius':_0xda9354['adjHandleSize'],'fill':_0xda9354[_0x457fea(0x30a)],'stroke':_0xda9354[_0x457fea(0x2de)],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x280eed,_0x199da6,_0x51280c){const _0x25392e=_0x2b58b8;let _0x34743d={..._0x199da6,'dataModel':{..._0x199da6[_0x25392e(0x25e)]??{},..._0x51280c?{'doc':_0x51280c}:null}},_0x47cf78=_0x1e45b8(_0x280eed,_0x34743d),_0x2e1f0c=_0x46d47a(_0x47cf78);return{'clip':_0x3440f6(_0x47cf78,_0x2e1f0c),'wrapStrategy':_0x2e1f0c};}var Y=class extends _0x55a1bf{constructor(_0x2d219b,_0x809869){const _0x5b8eeb=_0x2b58b8;super(_0x2d219b,_0x809869),J(this,_0x5b8eeb(0x286),[]),J(this,_0x5b8eeb(0x2bd),void 0x0),J(this,_0x5b8eeb(0x23a),new _0x4df99d(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,_0x5b8eeb(0x303),!0x0),J(this,'_drawingType',_0x11efaa[_0x5b8eeb(0x14f)]),J(this,_0x5b8eeb(0x2f0),!0x0),this[_0x5b8eeb(0x2bd)]={..._0x809869},this[_0x5b8eeb(0x23a)]['setPresentation'](_0x809869[_0x5b8eeb(0x388)],_0x809869[_0x5b8eeb(0x1a5)]!==!0x1),this['_init'](),this[_0x5b8eeb(0x156)]();}[_0x2b58b8(0x2e1)](){this['onTransformChange$']['subscribeEvent'](_0x3e108c=>{const _0x4b9a70=_0x73b8;this[_0x4b9a70(0x289)](_0x3e108c);});}['setPrstGeom'](_0x39780c){const _0x392051=_0x2b58b8;this[_0x392051(0x2bd)][_0x392051(0x17e)]=_0x39780c;}[_0x2b58b8(0x269)](_0xdc4841){const _0x52e272=_0x2b58b8;if(this[_0x52e272(0x2bd)][_0x52e272(0x317)])return null;let _0x28acc3=this[_0x52e272(0x2d3)](_0xdc4841),{width:_0x330a45,height:_0x8f7a74}=this[_0x52e272(0x330)]();return _0xccb99c(this[_0x52e272(0x286)],{'x':(this[_0x52e272(0x24d)]?-_0x28acc3['x']:_0x28acc3['x'])+_0x330a45/0x2,'y':_0x28acc3['y']+_0x8f7a74/0x2});}['setEditing'](_0x2ea7e9){const _0x250193=_0x2b58b8;this['_props'][_0x250193(0x317)]=_0x2ea7e9,this['makeDirty'](!0x0);}[_0x2b58b8(0x2b5)](_0x15431c,_0x1ec61c=!0x0){const _0x32c67a=_0x2b58b8;this[_0x32c67a(0x23a)][_0x32c67a(0x208)](_0x15431c,_0x1ec61c),this[_0x32c67a(0x2bd)]['formulaPresentation']=_0x15431c,this[_0x32c67a(0x156)](),this[_0x32c67a(0x2ee)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x49d004=_0x2b58b8;let _0x296bf9=this[_0x49d004(0x2bd)]['shapeModel'],_0x23242f=_0x296bf9['getShapeTextData'](),_0x553985=_0x361202(_0x23242f==null?void 0x0:_0x23242f[_0x49d004(0x25e)]),_0x132509=_0x553985==null?void 0x0:_0x553985[_0x49d004(0x36c)],_0x3806e3=this[_0x49d004(0x23a)][_0x49d004(0x19d)]();if(!_0x132509||_0x3806e3[_0x49d004(0x364)]===0x0)return;_0x296bf9[_0x49d004(0x1f8)]({'width':this[_0x49d004(0x177)],'height':this['height']});let _0x41f4f6=_0x57aa48({'documentData':_0x3806e3['map'](_0x39c91f=>_0x5273c3(_0x132509,_0x39c91f)),'height':this[_0x49d004(0x174)],'shapeData':_0x296bf9[_0x49d004(0x170)](),'textRect':_0x296bf9[_0x49d004(0x2b9)]({'left':0x0,'top':0x0,'width':this[_0x49d004(0x177)],'height':this[_0x49d004(0x174)]}),'width':this[_0x49d004(0x177)]});if(_0x41f4f6){var _0x3a3df5;this[_0x49d004(0x146)](_0x41f4f6[_0x49d004(0x177)],_0x41f4f6[_0x49d004(0x174)]),(_0x3a3df5=this['getScene']())==null||(_0x3a3df5=_0x3a3df5[_0x49d004(0x215)]())==null||_0x3a3df5[_0x49d004(0x268)]();}}get[_0x2b58b8(0x383)](){const _0x31f29a=_0x2b58b8;return this[_0x31f29a(0x2bd)][_0x31f29a(0x383)];}get[_0x2b58b8(0x21e)](){const _0x5881c1=_0x2b58b8;return this[_0x5881c1(0x2bd)]['subUnitId'];}[_0x2b58b8(0x289)](_0x12fa19){const _0x20d287=_0x2b58b8;if(this[_0x20d287(0x2bd)][_0x20d287(0x1c1)]==null||!this[_0x20d287(0x303)])return;let {width:_0x4ae5d4,height:_0x3caa04}=this,{width:_0x2ae24f=0x0,height:_0x4249d7=0x0}=_0x12fa19['preValue'],{left:_0x327fe0=0x0,top:_0x4c195a=0x0,right:_0x275b74=0x0,bottom:_0xdcdf83=0x0}=this[_0x20d287(0x2bd)]['srcRect'],_0x1e471e=_0x327fe0,_0x208aef=_0x4c195a,_0x365b19=_0x275b74,_0x1edde3=_0xdcdf83,_0x7fc285=!0x1;if(_0x2ae24f!==0x0&&_0x2ae24f!==_0x4ae5d4){let _0x5398c9=_0x327fe0/_0x2ae24f,_0x6ec884=_0x275b74/_0x2ae24f;_0x1e471e=_0x4ae5d4*_0x5398c9,_0x365b19=_0x4ae5d4*_0x6ec884,_0x7fc285=!0x0;}if(_0x4249d7!==0x0&&_0x4249d7!==_0x3caa04){let _0x407d76=_0x4c195a/_0x4249d7,_0x59cc7d=_0xdcdf83/_0x4249d7;_0x208aef=_0x3caa04*_0x407d76,_0x1edde3=_0x3caa04*_0x59cc7d,_0x7fc285=!0x0;}_0x7fc285&&this[_0x20d287(0x2fa)]({'left':_0x1e471e,'top':_0x208aef,'right':_0x365b19,'bottom':_0x1edde3});}['setSrcRect'](_0x469b48){const _0xdb10c5=_0x2b58b8;this[_0xdb10c5(0x2bd)][_0xdb10c5(0x1c1)]=_0x469b48,this['makeDirty'](!0x0);}[_0x2b58b8(0x293)](_0x46d698){const _0x2641f5=_0x2b58b8;this['_props'][_0x2641f5(0x2e4)]=_0x46d698,this[_0x2641f5(0x2ee)](!0x0);}set[_0x2b58b8(0x277)](_0x460a95){const _0x44012a=_0x2b58b8;this[_0x44012a(0x336)]=_0x460a95;}get[_0x2b58b8(0x277)](){const _0x96f8d2=_0x2b58b8;this['_transform']||this[_0x96f8d2(0x220)]();let _0x36ad64=this[_0x96f8d2(0x336)][_0x96f8d2(0x2a3)]();return this[_0x96f8d2(0x1fc)](_0x36ad64);}get[_0x2b58b8(0x17c)](){const _0x10153b=_0x2b58b8;return this[_0x10153b(0x2bd)][_0x10153b(0x17c)];}get[_0x2b58b8(0x1a7)](){const _0x39c9b5=_0x2b58b8;return this['_props'][_0x39c9b5(0x1a7)];}get[_0x2b58b8(0x223)](){const _0xa3a93c=_0x2b58b8;return _0x585778[_0xa3a93c(0x2ce)];}[_0x2b58b8(0x241)](_0x2acb6b,_0x5444fe,_0x12b136,_0x3c114e){const _0x1c8606=_0x2b58b8;let _0x48ca76=this[_0x1c8606(0x2bd)][_0x1c8606(0x17c)];if(!_0x48ca76||!_0x5444fe)return;let _0xa2f530=_0x12b136??this[_0x1c8606(0x177)],_0x25375d=_0x3c114e??this[_0x1c8606(0x174)],_0x10f2a1={'shapeType':_0x48ca76[_0x1c8606(0x11f)](),'width':_0xa2f530,'height':_0x25375d},_0x1ff0f2={'renderMode':_0x1f70b1[_0x1c8606(0x185)],'oKey':this[_0x1c8606(0x11b)],'image':this[_0x1c8606(0x2bd)][_0x1c8606(0x2e4)],'angle':this[_0x1c8606(0x276)]};_0x48ca76[_0x1c8606(0x1f8)](_0x10f2a1),_0x2acb6b[_0x1c8606(0x1e7)]();let _0x19e978={'top':0x0,'left':0x0,'width':_0xa2f530,'height':_0x25375d},_0x44b5fe=_0x48ca76[_0x1c8606(0x349)](_0x19e978);_0x44b5fe?this[_0x1c8606(0x229)](_0x2acb6b,_0x44b5fe,_0x5ca6f3=>{const _0x5c259d=_0x1c8606;_0x48ca76[_0x5c259d(0x21c)](_0x5ca6f3,_0x19e978,_0x1ff0f2);}):(this[_0x1c8606(0x2d7)](),_0x48ca76[_0x1c8606(0x21c)](_0x2acb6b,_0x19e978,_0x1ff0f2)),_0x2acb6b['restore']();let _0x1982b6=_0x48ca76[_0x1c8606(0x145)](),_0x467e61=_0x48ca76['getShapeTextRect'](_0x19e978),_0xb5e946=_0x48ca76[_0x1c8606(0x2b2)]();if(_0x1982b6&&_0x467e61&&!_0xb5e946){_0x2acb6b[_0x1c8606(0x1e7)](),this[_0x1c8606(0x308)]()[_0x1c8606(0x24d)]&&_0x2acb6b[_0x1c8606(0x1f6)](-0x1,0x1);let _0x411aa9=_0xa2f530/0x2,_0x16f7ba=_0x25375d/0x2;_0x2acb6b[_0x1c8606(0x10f)](-_0x411aa9,-_0x16f7ba),_0x2acb6b[_0x1c8606(0x342)](),this[_0x1c8606(0x1e2)](_0x2acb6b,_0x1982b6,_0x467e61),_0x2acb6b[_0x1c8606(0x375)]();}}[_0x2b58b8(0x1a3)](_0x326a06){}[_0x2b58b8(0x1e2)](_0x244d24,_0x260cff,_0x25c327){const _0x5dac3b=_0x2b58b8;var _0xdf25fa;this[_0x5dac3b(0x286)]=[],!this[_0x5dac3b(0x2bd)][_0x5dac3b(0x317)]&&(!((_0xdf25fa=_0x260cff[_0x5dac3b(0x25e)])!=null&&_0xdf25fa[_0x5dac3b(0x36c)])&&_0x5dac3b(0x2ba)in _0x260cff&&_0x260cff[_0x5dac3b(0x2ba)]===!0x1?this[_0x5dac3b(0x22b)](_0x244d24,_0x260cff,_0x25c327):this[_0x5dac3b(0x16b)](_0x244d24,_0x260cff,_0x25c327));}[_0x2b58b8(0x22b)](_0x56206a,_0x52a0a0,_0x5b16d3){const _0x513ecc=_0x2b58b8;this[_0x513ecc(0x16b)](_0x56206a,{..._0x52a0a0,'text':_0x52a0a0[_0x513ecc(0x10d)]??'','dataModel':{'doc':_0x20f7f3(_0x52a0a0,_0x513ecc(0x210)+this['oKey'])}},_0x5b16d3);}[_0x2b58b8(0x16b)](_0x1ef1e8,_0xccd309,_0x5b8028){const _0x3e9b54=_0x2b58b8;_0x1ecc92(_0x1ef1e8,this[_0x3e9b54(0x23a)],(_0xe58a1b,_0x480082,_0x300b41)=>{const _0x39bf2e=_0x3e9b54;this['_drawRichTextLayer'](_0xe58a1b,_0xccd309,_0x5b8028,_0x480082,_0x300b41===_0x39bf2e(0x194));});}['_drawRichTextLayer'](_0x2336a7,_0xcfd96b,_0x2d5583,_0x12cb18,_0x2a1079){const _0xb64857=_0x2b58b8;let _0x1f50f1=this['_props'][_0xb64857(0x2ad)];if(!_0xcfd96b[_0xb64857(0x25e)]||!_0x1f50f1){_0x1f50f1||console[_0xb64857(0x143)](_0xb64857(0x128));return;}let _0x163060=_0x361202(_0xcfd96b[_0xb64857(0x25e)]);if(!_0x163060)return;let _0x5e0280=_0x163060[_0xb64857(0x36c)];if(!_0x5e0280)return;let _0x14745d=_0x5273c3(_0x5e0280,_0x12cb18),_0x250d64=_0x163060['va']??_0x41d65f[_0xb64857(0x1d2)],_0x4d6d10=_0x163060['ha']??_0x5cdaf0[_0xb64857(0x205)],_0x175e6a=qi(this[_0xb64857(0x2bd)]['shapeModel']['getShapeData'](),_0xcfd96b,_0x14745d),_0x59eb61=_0xcfd96b[_0xb64857(0x20c)],_0x35415f=_0x3b74bd(_0x14745d,{'isHorizontal':_0x59eb61!==!0x1,'textRect':_0x2d5583,'verticalAlign':_0x250d64,'horizontalAlign':_0x4d6d10,'wrapStrategy':_0x175e6a[_0xb64857(0x1b1)]}),_0x1e539c=new _0x4107fb(_0x35415f),_0x29815e=new _0x2f6ee9(_0x1e539c),_0x4220c9=_0x297bbe[_0xb64857(0x1cd)](_0x29815e,_0x1f50f1);_0x4220c9[_0xb64857(0x331)]();let _0x231503=_0x4220c9[_0xb64857(0x133)]()['actualHeight'],_0x535ab1=_0x1e51d4({'contentHeight':_0x231503,'verticalAlign':_0x250d64,'viewportHeight':_0x2d5583[_0xb64857(0x174)]});_0x1e539c[_0xb64857(0x288)]({'pageSize':{'width':_0x59eb61===!0x1?_0x2d5583['height']:_0x2d5583[_0xb64857(0x177)],'height':_0x261110(_0x14745d,_0x535ab1[_0xb64857(0x1be)])}}),_0x1e539c[_0xb64857(0x2c9)]({'t':_0x535ab1[_0xb64857(0x20f)]}),_0x4220c9[_0xb64857(0x331)]();let _0x5e7a10=new _0x501bdc(_0xb64857(0x27b)+this[_0xb64857(0x11b)],_0x4220c9,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xb64857(0x2ee)](!0x0)});_0x5e7a10['resize'](_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x1be)]),_0x2336a7['save'](),_0x2336a7[_0xb64857(0x2d9)](_0x2d5583['left'],_0x2d5583[_0xb64857(0x12e)]),_0x175e6a['clip']&&(_0x2336a7['beginPath'](),_0x2336a7[_0xb64857(0x34b)](0x0,_0x535ab1[_0xb64857(0x2db)],_0x2d5583[_0xb64857(0x177)],_0x535ab1[_0xb64857(0x372)]),_0x2336a7[_0xb64857(0x1ee)]()),_0x535ab1['contentVerticalOffset']&&_0x2336a7[_0xb64857(0x2d9)](0x0,_0x535ab1[_0xb64857(0x107)]),_0x5e7a10[_0xb64857(0x341)](_0x2336a7),_0x2a1079&&(this['_hyperLinkRegions']=_0x269858(_0x5e7a10,{'left':_0x2d5583[_0xb64857(0x112)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x107)]},_0x175e6a['clip']?{'left':_0x2d5583[_0xb64857(0x112)],'right':_0x2d5583[_0xb64857(0x112)]+_0x2d5583[_0xb64857(0x177)],'top':_0x2d5583[_0xb64857(0x12e)]+_0x535ab1[_0xb64857(0x2db)],'bottom':_0x2d5583['top']+_0x535ab1[_0xb64857(0x2db)]+_0x535ab1[_0xb64857(0x372)]}:void 0x0)),_0x2336a7[_0xb64857(0x375)](),_0x5e7a10[_0xb64857(0x12f)](),_0x4220c9[_0xb64857(0x12f)](),_0x29815e[_0xb64857(0x12f)](),_0x1e539c[_0xb64857(0x12f)]();}[_0x2b58b8(0x21c)](_0x2c50fb,_0xb5eec7,_0x16cd02=!0x1){const _0x219b65=_0x2b58b8;if(!this[_0x219b65(0x306)])return this[_0x219b65(0x2ee)](!0x1),this;let {width:_0x44ae79,height:_0x2a5721,left:_0x51cb27,top:_0x573dbd}=this,_0x5404ce=this[_0x219b65(0x330)]();if(_0x44ae79=_0x5404ce[_0x219b65(0x177)],_0x2a5721=_0x5404ce['height'],_0x51cb27=_0x5404ce[_0x219b65(0x112)],_0x573dbd=_0x5404ce[_0x219b65(0x12e)],this['isRender'](_0xb5eec7)){let {top:_0x14d5b2,left:_0x1a0197,bottom:_0x23f800,right:_0x51f7c4}=_0xb5eec7['viewBound'];if(_0x44ae79+this['strokeWidth']+_0x51cb27<_0x1a0197||_0x51f7c4<_0x51cb27||_0x2a5721+this['strokeWidth']+_0x573dbd<_0x14d5b2||_0x23f800<_0x573dbd)return this;}let _0x174e64=_0x51cb27+_0x44ae79/0x2,_0x318648=_0x573dbd+_0x2a5721/0x2,_0x8dffb9=this[_0x219b65(0x277)][_0x219b65(0x116)]();if(this['_props'][_0x219b65(0x317)]){let _0x2db6d4=this[_0x219b65(0x308)](),_0x2a0d3f=new _0x4b5d71();_0x2a0d3f[_0x219b65(0x196)]({..._0x2db6d4}),_0x8dffb9=_0x2a0d3f[_0x219b65(0x116)]();}return _0x2c50fb[_0x219b65(0x1e7)](),this[_0x219b65(0x2bd)][_0x219b65(0x17c)][_0x219b65(0x105)]===!0x0||_0x2c50fb[_0x219b65(0x277)](_0x8dffb9[0x0],_0x8dffb9[0x1],_0x8dffb9[0x2],_0x8dffb9[0x3],_0x174e64,_0x318648),this['_draw'](_0x2c50fb,_0xb5eec7,_0x44ae79,_0x2a5721),_0x2c50fb['restore'](),this[_0x219b65(0x2ee)](!0x1),this;}['getInverseCoord'](_0x21ea2a){const _0x372889=_0x2b58b8;let {left:_0x52c66f,top:_0x3a81bf,width:_0x342608,height:_0x53c9a7}=this[_0x372889(0x330)](),_0x3b0bdb=this[_0x372889(0x277)]['getMatrix'](),_0x5a9a63=_0x52c66f+_0x342608/0x2,_0x31cb53=_0x3a81bf+_0x53c9a7/0x2,_0x68a663=new _0x4b5d71([_0x3b0bdb[0x0],_0x3b0bdb[0x1],_0x3b0bdb[0x2],_0x3b0bdb[0x3],_0x5a9a63,_0x31cb53]),_0x1ebe17=this[_0x372889(0x1d8)]();return(this[_0x372889(0x14e)]&&(_0x1ebe17==null?void 0x0:_0x1ebe17[_0x372889(0x223)])===_0x585778['GROUP']?_0x1ebe17[_0x372889(0x19f)]['multiply'](_0x68a663):_0x68a663)[_0x372889(0x153)]()[_0x372889(0x2fd)](_0x21ea2a);}[_0x2b58b8(0x299)](_0x5824c3){const _0x2b6759=_0x2b58b8;let {left:_0x5e4df4,top:_0x4494f9,width:_0x3fa643,height:_0x2c0364}=this['getRealBound'](),_0x265c36=_0x5e4df4+_0x3fa643/0x2,_0x4c0a0f=_0x4494f9+_0x2c0364/0x2,_0x1e7949=this[_0x2b6759(0x277)][_0x2b6759(0x116)](),_0x44403e=new _0x4b5d71([_0x1e7949[0x0],_0x1e7949[0x1],_0x1e7949[0x2],_0x1e7949[0x3],_0x265c36,_0x4c0a0f]),_0x2f3fe5=this['getParent'](),_0x1f0780=(this['isInGroup']&&(_0x2f3fe5==null?void 0x0:_0x2f3fe5[_0x2b6759(0x223)])===_0x585778['GROUP']?_0x2f3fe5[_0x2b6759(0x19f)][_0x2b6759(0x182)](_0x44403e):_0x44403e)[_0x2b6759(0x153)]()[_0x2b6759(0x2fd)](_0x5824c3),_0x4a6254=_0x3fa643/0x2,_0x2ec4b7=_0x2c0364/0x2,_0x66c889=this['_props']['shapeModel'];return _0x66c889&&_0x66c889[_0x2b6759(0x2b2)]()?_0x66c889['isHitLine'](_0x1f0780['x'],_0x1f0780['y'],_0x3fa643,_0x2c0364):_0x1f0780['x']>=-_0x4a6254-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['x']<=_0x4a6254+this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']>=-_0x2ec4b7-this[_0x2b6759(0x1f0)]/0x2&&_0x1f0780['y']<=_0x2ec4b7+this['strokeWidth']/0x2;}['dispose'](){const _0x3942d3=_0x2b58b8;this['_formulaAnimation']['dispose'](),this['_props'][_0x3942d3(0x17c)]=null,super[_0x3942d3(0x12f)]();}};let Ji=class extends _0x587b62{constructor(_0x8f166d,_0x2d5812,_0x1319a1,_0x12bb1a){const _0x2066d6=_0x2b58b8;super(),this[_0x2066d6(0x37f)]=_0x8f166d,this[_0x2066d6(0x324)]=_0x2d5812,this['_docsShapeService']=_0x1319a1,this[_0x2066d6(0x34d)]=_0x12bb1a,J(this,'_activeShapeId',null),J(this,_0x2066d6(0x30c),null),J(this,_0x2066d6(0x37c),null),J(this,_0x2066d6(0x387),void 0x0),J(this,_0x2066d6(0x33a),[]),J(this,_0x2066d6(0x28a),0x0),J(this,_0x2066d6(0x147),0x0),J(this,'_baseShapeWidth',0x0),J(this,_0x2066d6(0x206),0x0),J(this,_0x2066d6(0x126),!0x1),J(this,'_isShouldShowDrawingShapeAdjust',!0x1),J(this,_0x2066d6(0x351),void 0x0),J(this,_0x2066d6(0x2dd),void 0x0),J(this,_0x2066d6(0x2aa),void 0x0),J(this,_0x2066d6(0x198),void 0x0),this[_0x2066d6(0x12c)](),this[_0x2066d6(0x2fe)]();}[_0x2b58b8(0x1d7)](){const _0x21d77c=_0x2b58b8;this[_0x21d77c(0x2cd)]();}['refreshAdjustControls'](){const _0x1c8e46=_0x2b58b8;this[_0x1c8e46(0x26c)](!0x0);}['_getShapeAdjustPointListById'](_0x1d6529,_0x12d8e1,_0x55d1a8){const _0x2b7275=_0x2b58b8;var _0x256c00;return(_0x256c00=this['_docsShapeService'][_0x2b7275(0x348)](_0x1d6529,_0x12d8e1,_0x55d1a8))==null?void 0x0:_0x256c00[_0x2b7275(0x1a3)]();}[_0x2b58b8(0x1bd)](_0x31664c,_0xcf64ac,_0x44ed60,_0x7f725f){const _0x1a80a5=_0x2b58b8;var _0x1cb3e9;return(_0x1cb3e9=this[_0x1a80a5(0x33f)][_0x1a80a5(0x348)](_0x31664c,_0xcf64ac,_0x44ed60))==null?void 0x0:_0x1cb3e9['getAdjustInfoByName'](_0x7f725f);}[_0x2b58b8(0x384)](){const _0x311690=_0x2b58b8;return this['_unitId']===null||this['_subUnitId']===null||this[_0x311690(0x1b9)]===null?null:this[_0x311690(0x324)]['getDrawingByParam']({'unitId':this[_0x311690(0x30c)],'subUnitId':this[_0x311690(0x37c)],'drawingId':this[_0x311690(0x1b9)]})??null;}[_0x2b58b8(0x36e)](_0x3ea397){const _0x18cb47=_0x2b58b8;if(this[_0x18cb47(0x30c)]===null||this[_0x18cb47(0x37c)]===null||this[_0x18cb47(0x1b9)]===null)return null;let _0x1057e9=_0x3ac7e0({'unitId':this['_unitId'],'subUnitId':this[_0x18cb47(0x37c)],'drawingId':this[_0x18cb47(0x1b9)]}),_0xce073a=_0x3ea397[_0x18cb47(0x202)](_0x1057e9);return _0xce073a instanceof Y?_0xce073a:null;}[_0x2b58b8(0x2a8)](_0x263769=!0x1){const _0x38263b=_0x2b58b8;if(this[_0x38263b(0x30c)]===null||this[_0x38263b(0x37c)]===null||this[_0x38263b(0x1b9)]===null)return;let _0x556d72=this[_0x38263b(0x384)]();if((_0x556d72==null?void 0x0:_0x556d72[_0x38263b(0x142)])!==_0x11efaa[_0x38263b(0x14f)]||!_0x556d72[_0x38263b(0x277)])return;let _0x210d23=this['_docsShapeService'][_0x38263b(0x348)](this[_0x38263b(0x30c)],this[_0x38263b(0x37c)],this['_activeShapeId']);if(!_0x210d23||_0x210d23[_0x38263b(0x2b2)]())return;let {left:_0xabf71f=0x0,top:_0x11fa0b=0x0,width:_0x355cea=0x0,height:_0x1bb0f2=0x0,flipX:_0x297355,flipY:_0x5ccaa8,angle:_0x5a9f40=0x0}=_0x556d72[_0x38263b(0x277)];(_0x263769||!this[_0x38263b(0x387)])&&(_0x210d23[_0x38263b(0x1f8)]({'width':_0x355cea,'height':_0x1bb0f2}),this['_activeShapeAdjustPointList']=_0x210d23[_0x38263b(0x1a3)]());let _0x47e303=this[_0x38263b(0x387)];if(!(_0x47e303!=null&&_0x47e303[_0x38263b(0x364)]))return;let {scene:_0x48f1c7}=this[_0x38263b(0x37f)];for(let _0x565f13 of _0x47e303){let _0x470662=this[_0x38263b(0x2bc)](_0x565f13,_0x355cea,_0x1bb0f2,!!_0x297355,!!_0x5ccaa8,_0x5a9f40);this[_0x38263b(0x318)](_0x48f1c7,_0x470662,_0x470662[_0x38263b(0x2c6)],_0xabf71f,_0x11fa0b,this['_unitId'],this[_0x38263b(0x37c)]);}}[_0x2b58b8(0x2bc)](_0x4ace78,_0x10c0ac,_0x5eedb6,_0x59c664,_0x865ce4,_0x5ce92e){const _0x8f80c9=_0x2b58b8;let _0x140fd9=_0x4ace78['x'],_0x52c480=_0x4ace78['y'];if(_0x59c664&&(_0x140fd9=_0x10c0ac-_0x140fd9),_0x865ce4&&(_0x52c480=_0x5eedb6-_0x52c480),_0x5ce92e!==0x0){let _0x2e8f7c=_0x10c0ac/0x2,_0x539109=_0x5eedb6/0x2,_0x5e7b6c=_0x5ce92e*Math['PI']/0xb4,_0xec0a3=Math[_0x8f80c9(0x1f2)](_0x5e7b6c),_0x57004c=Math[_0x8f80c9(0x2cf)](_0x5e7b6c),_0x4d5c77=_0x140fd9-_0x2e8f7c,_0x281f69=_0x52c480-_0x539109;_0x140fd9=_0x2e8f7c+(_0x4d5c77*_0xec0a3-_0x281f69*_0x57004c),_0x52c480=_0x539109+(_0x4d5c77*_0x57004c+_0x281f69*_0xec0a3);}return{'x':_0x140fd9,'y':_0x52c480,'adjName':_0x4ace78['adjName']};}[_0x2b58b8(0x26c)](_0x1487e9=!0x1){const _0x1ce24e=_0x2b58b8;_0x1487e9&&this[_0x1ce24e(0x2cd)](),this[_0x1ce24e(0x2a8)](_0x1487e9);}[_0x2b58b8(0x318)](_0x48fb63,_0x17ce2a,_0x2a7d19,_0x3a343d,_0x5771ff,_0x35e9d7,_0x2487ae){const _0x966ce3=_0x2b58b8;if(!this[_0x966ce3(0x1b9)])return;let _0x12815d=_0x966ce3(0x378)+this['_activeShapeId']+'-'+_0x2a7d19,_0x102cf4=_0x48fb63[_0x966ce3(0x202)](_0x12815d);if(_0x102cf4){_0x102cf4['transformByState']({'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354['adjHandleSize']}),_0x102cf4['makeDirty'](!0x0);return;}let _0x581167=new Ki(_0x12815d,{'left':_0x17ce2a['x']+_0x3a343d-_0xda9354['adjHandleSize'],'top':_0x17ce2a['y']+_0x5771ff-_0xda9354[_0x966ce3(0x14d)],'adjName':_0x2a7d19,'shapeId':this['_activeShapeId'],'unitId':_0x35e9d7,'subUnitId':_0x2487ae,'width':_0xda9354[_0x966ce3(0x14d)]+0x8,'height':_0xda9354['adjHandleSize']+0x8,'zIndex':_0x59670b+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x581167),this[_0x966ce3(0x30d)](_0x581167,_0x48fb63,_0x2a7d19),_0x48fb63[_0x966ce3(0x386)](_0x581167,_0x59670b+0x1);}[_0x2b58b8(0x2cd)](){const _0x4d6386=_0x2b58b8;this['_adjustPointObjects'][_0x4d6386(0x30e)](_0x30e0c8=>_0x30e0c8[_0x4d6386(0x12f)]()),this[_0x4d6386(0x33a)]=[];}['_updateAdjustControlPositions'](){const _0x49a7b9=_0x2b58b8;this[_0x49a7b9(0x2a8)]();}[_0x2b58b8(0x140)](_0x1a3194,_0x4bcfed,_0x23ae0f){const _0x26c20c=_0x2b58b8;let _0x444d74=_0xd9a358['FromArray']([_0x4bcfed,_0x23ae0f]),_0xa4d856=_0x1a3194['getActiveViewportByCoord'](_0x444d74)??_0x1a3194[_0x26c20c(0x221)]()[0x0];return(_0xa4d856==null?void 0x0:_0xa4d856['transformVector2SceneCoord'](_0x444d74))??_0x444d74;}[_0x2b58b8(0x30d)](_0x4722b3,_0x467cb6,_0x27ba1d){const _0x48a438=_0x2b58b8;this['disposeWithMe'](_0x390b1(_0x4722b3[_0x48a438(0x353)][_0x48a438(0x321)]((_0x99148b,_0x1a6785)=>{const _0x34ba63=_0x48a438;var _0x2e06bc;let _0x3cd680=_0x4722b3['getDrawingSearch']();this[_0x34ba63(0x351)]=this[_0x34ba63(0x1bd)](_0x3cd680[_0x34ba63(0x383)],_0x3cd680[_0x34ba63(0x21e)],_0x3cd680[_0x34ba63(0x160)],_0x27ba1d),this[_0x34ba63(0x2dd)]=this[_0x34ba63(0x33f)]['getShapeModel'](_0x3cd680[_0x34ba63(0x383)],_0x3cd680['subUnitId'],_0x3cd680[_0x34ba63(0x160)]);let _0x286b2d=this[_0x34ba63(0x384)](),_0x702fa8=_0x286b2d==null?void 0x0:_0x286b2d['transform'];if(!_0x286b2d||!_0x702fa8||!this[_0x34ba63(0x2dd)])return;this[_0x34ba63(0x28a)]=_0x702fa8[_0x34ba63(0x112)]||0x0,this[_0x34ba63(0x147)]=_0x702fa8[_0x34ba63(0x12e)]||0x0,this[_0x34ba63(0x32f)]=_0x702fa8['width']||0x0,this['_baseShapeHeight']=_0x702fa8[_0x34ba63(0x174)]||0x0;let _0x352b3c=!!_0x702fa8[_0x34ba63(0x24d)],_0x1d99aa=!!_0x702fa8[_0x34ba63(0x18e)],_0x529684=_0x702fa8[_0x34ba63(0x276)]||0x0,_0x259bcb={...((_0x2e06bc=this[_0x34ba63(0x351)])==null?void 0x0:_0x2e06bc['currentAdjustValues'])??{}};this['_isStartAdjusting']=!0x0,_0x467cb6[_0x34ba63(0x189)](),this['_adjHandlerPointerMove']=_0x467cb6[_0x34ba63(0x20e)][_0x34ba63(0x321)]((_0x7f0e06,_0x53c067)=>{const _0x12a393=_0x34ba63;var _0x178014;if(!this[_0x12a393(0x126)]||!this[_0x12a393(0x2dd)]||!this[_0x12a393(0x351)])return;_0x467cb6[_0x12a393(0x189)](),_0x467cb6[_0x12a393(0x382)](_0x5c1434[_0x12a393(0x31c)]);let _0x4e9b53=this[_0x12a393(0x140)](_0x467cb6,_0x7f0e06[_0x12a393(0x137)],_0x7f0e06['offsetY']),_0x2ca111=_0x4e9b53['x']-this['_baseShapeLeft'],_0x14f89e=_0x4e9b53['y']-this['_baseShapeTop'];if(_0x529684!==0x0){let _0xee0f7c=this['_baseShapeWidth']/0x2,_0x325245=this[_0x12a393(0x206)]/0x2,_0x13a132=_0x529684*Math['PI']/0xb4,_0x17d43b=Math['cos'](_0x13a132),_0x1c7d3f=Math[_0x12a393(0x2cf)](_0x13a132),_0x132ceb=_0x2ca111-_0xee0f7c,_0x3ac161=_0x14f89e-_0x325245;_0x2ca111=_0xee0f7c+(_0x132ceb*_0x17d43b+_0x3ac161*_0x1c7d3f),_0x14f89e=_0x325245+(-_0x132ceb*_0x1c7d3f+_0x3ac161*_0x17d43b);}_0x352b3c&&(_0x2ca111=this['_baseShapeWidth']-_0x2ca111),_0x1d99aa&&(_0x14f89e=this[_0x12a393(0x206)]-_0x14f89e);let _0x1d2625={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x12a393(0x206)]},_0x5571e9=this[_0x12a393(0x2dd)][_0x12a393(0x2d8)](_0x1d2625,{'x':_0x2ca111,'y':_0x14f89e},this[_0x12a393(0x351)],_0x352b3c,_0x1d99aa);if(Object['keys'](_0x5571e9)['length']!==0x0){for(let [_0x47bd83,_0x22f683]of Object[_0x12a393(0x125)](_0x5571e9))this[_0x12a393(0x2dd)][_0x12a393(0x1bf)](_0x47bd83,_0x22f683);this[_0x12a393(0x2dd)][_0x12a393(0x1f8)]({'width':this[_0x12a393(0x32f)],'height':this['_baseShapeHeight']}),(_0x178014=this[_0x12a393(0x36e)](_0x467cb6))==null||_0x178014[_0x12a393(0x2ee)](!0x0),this[_0x12a393(0x387)]=this['_getShapeAdjustPointListById'](_0x3cd680[_0x12a393(0x383)],_0x3cd680['subUnitId'],_0x3cd680['drawingId']),this[_0x12a393(0x134)](),_0x53c067[_0x12a393(0x158)]();}}),this[_0x34ba63(0x198)]=_0x467cb6['onPointerUp$']['subscribeEvent']((_0x27d032,_0xce1d16)=>{const _0x237715=_0x34ba63;var _0x3d913c,_0x1576b3;(_0x3d913c=this[_0x237715(0x2aa)])==null||_0x3d913c[_0x237715(0x1de)](),(_0x1576b3=this[_0x237715(0x198)])==null||_0x1576b3['unsubscribe'](),_0x467cb6['resetCursor']();let _0x2a538f=this[_0x237715(0x351)];if(_0x2a538f&&this['_activeShapeModel']){let _0x2aad20={};for(let _0x3d0390 of Object['keys'](_0x2a538f[_0x237715(0x209)])){let _0x32a1aa=this[_0x237715(0x2dd)][_0x237715(0x31f)](_0x3d0390);_0x32a1aa!==void 0x0&&(_0x2aad20[_0x3d0390]=_0x32a1aa);}Object[_0x237715(0x279)](_0x2aad20)[_0x237715(0x364)]>0x0&&Yr(this['_commandService'],_0x3cd680[_0x237715(0x383)],_0x3cd680[_0x237715(0x21e)],_0x3cd680[_0x237715(0x160)],{'oldShapeData':{'adjustValues':_0x259bcb}},{'adjustValues':_0x2aad20});}this['_activeAdjustInfo']=void 0x0,this[_0x237715(0x2dd)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x467cb6[_0x237715(0x291)](),_0xce1d16[_0x237715(0x158)]();}),_0x1a6785[_0x34ba63(0x158)]();})));}[_0x2b58b8(0x2fe)](){const _0x1c0219=_0x2b58b8;let {scene:_0x5a2c1d}=this[_0x1c0219(0x37f)],_0x462800=_0x5a2c1d[_0x1c0219(0x319)]();this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x2dc)]['subscribe'](_0x55d30f=>{const _0x137ae=_0x1c0219;this[_0x137ae(0x2a8)](),_0x55d30f[_0x137ae(0x344)]!==null&&_0x55d30f['objects'][_0x137ae(0x25f)]===0x1&&_0x55d30f[_0x137ae(0x344)][_0x137ae(0x199)]()['next']()[_0x137ae(0x1dc)]instanceof Y&&(this[_0x137ae(0x32c)]=!0x0);})),this[_0x1c0219(0x32d)](_0x462800['changing$'][_0x1c0219(0x138)](()=>{const _0x104274=_0x1c0219;this[_0x104274(0x32c)]&&this[_0x104274(0x2cd)]();})),this[_0x1c0219(0x32d)](_0x5a2c1d[_0x1c0219(0x20a)][_0x1c0219(0x321)](()=>{const _0x2eda05=_0x1c0219;this[_0x2eda05(0x32c)]&&(this[_0x2eda05(0x32c)]=!0x1,this[_0x2eda05(0x2a8)]());})),this[_0x1c0219(0x32d)](_0x462800[_0x1c0219(0x356)][_0x1c0219(0x138)](()=>{const _0x5b523e=_0x1c0219;this['_unitId']&&this[_0x5b523e(0x37c)]&&this[_0x5b523e(0x1b9)]&&(this[_0x5b523e(0x387)]=this[_0x5b523e(0x187)](this['_unitId'],this[_0x5b523e(0x37c)],this[_0x5b523e(0x1b9)]),this[_0x5b523e(0x134)]());}));}['_registerDrawingFocusChangeHandler'](){const _0x1ab318=_0x2b58b8;this[_0x1ab318(0x32d)](this['_commandService'][_0x1ab318(0x19e)](_0xb4eb8a=>{const _0x2c52db=_0x1ab318;if(_0xb4eb8a['id']!==_0x3d4cfc['id'])return;let {unitId:_0x216300,shapeId:_0x4b8b25}=_0xb4eb8a[_0x2c52db(0x339)];_0x216300===this[_0x2c52db(0x30c)]&&_0x4b8b25===this['_activeShapeId']&&this[_0x2c52db(0x309)]();})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f3)][_0x1ab318(0x138)](_0x27285e=>{const _0x489a1f=_0x1ab318;if(_0x27285e[_0x489a1f(0x364)]===0x1){let _0x185115=_0x27285e[0x0],_0x1333b5=this['_drawingManagerService']['getDrawingByParam'](_0x185115);if((_0x1333b5==null?void 0x0:_0x1333b5[_0x489a1f(0x142)])===_0x11efaa[_0x489a1f(0x14f)]){this[_0x489a1f(0x1b9)]=_0x185115[_0x489a1f(0x160)],this[_0x489a1f(0x30c)]=_0x185115['unitId'],this[_0x489a1f(0x37c)]=_0x185115[_0x489a1f(0x21e)],this[_0x489a1f(0x387)]=this['_getShapeAdjustPointListById'](_0x185115[_0x489a1f(0x383)],_0x185115[_0x489a1f(0x21e)],_0x185115[_0x489a1f(0x160)]),this[_0x489a1f(0x2cd)](),this[_0x489a1f(0x2a8)]();return;}}this[_0x489a1f(0x1b9)]=null,this[_0x489a1f(0x387)]=void 0x0,this[_0x489a1f(0x30c)]=null,this[_0x489a1f(0x37c)]=null,this['_clearShapeAdjustControls']();})),this[_0x1ab318(0x32d)](_0x3f58bc(this[_0x1ab318(0x324)]['update$'],this[_0x1ab318(0x324)][_0x1ab318(0x1b3)])[_0x1ab318(0x138)](_0x231f81=>{const _0x23ff20=_0x1ab318;var _0x50b722;let _0x4170b1=_0x231f81['find'](_0xd66d1=>_0xd66d1[_0x23ff20(0x160)]===this[_0x23ff20(0x1b9)]&&_0xd66d1[_0x23ff20(0x383)]===this['_unitId']&&_0xd66d1[_0x23ff20(0x21e)]===this[_0x23ff20(0x37c)]);_0x4170b1&&((_0x50b722=this[_0x23ff20(0x324)]['getDrawingByParam'](_0x4170b1))==null?void 0x0:_0x50b722[_0x23ff20(0x142)])===_0x11efaa['DRAWING_SHAPE']&&this[_0x23ff20(0x26c)](!0x0);})),this[_0x1ab318(0x32d)](this[_0x1ab318(0x324)][_0x1ab318(0x2f2)][_0x1ab318(0x138)](_0x52c3e3=>{const _0x410136=_0x1ab318;for(let _0x196d09 of _0x52c3e3)this['_activeShapeId']===_0x196d09[_0x410136(0x160)]&&(this[_0x410136(0x1b9)]=null,this[_0x410136(0x387)]=void 0x0,this[_0x410136(0x30c)]=null,this[_0x410136(0x37c)]=null,this[_0x410136(0x2cd)]());}));}};Ji=q([K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0x5f3c0a)],Ji);let X=class extends _0x587b62{constructor(_0x3189ee,_0x3ebc1f){const _0x372cae=_0x2b58b8;super(),this[_0x372cae(0x121)]=_0x3189ee,this[_0x372cae(0x281)]=_0x3ebc1f,J(this,_0x372cae(0x16c),new _0x4ac5d9(null)),J(this,_0x372cae(0x371),this['_editingParams$'][_0x372cae(0x1f9)]()),J(this,_0x372cae(0x2bb),new _0x4ac5d9(!0x1)),J(this,'onSavingEditorData$',this[_0x372cae(0x2bb)][_0x372cae(0x1f9)]()),J(this,'_completionFrame',void 0x0),this[_0x372cae(0x32d)](this[_0x372cae(0x121)][_0x372cae(0x27f)][_0x372cae(0x138)](()=>{const _0x3f803f=_0x372cae;let _0x1503f0=this[_0x3f803f(0x2c5)]();_0x1503f0!=null&&_0x1503f0[_0x3f803f(0x306)]&&!this[_0x3f803f(0x163)](_0x1503f0)&&this['setEditing'](null);}));}[_0x2b58b8(0x12f)](){const _0x28cd4a=_0x2b58b8;this[_0x28cd4a(0x1af)](),this['_editingParams$'][_0x28cd4a(0x225)](null),this[_0x28cd4a(0x16c)][_0x28cd4a(0x260)](),this[_0x28cd4a(0x2bb)][_0x28cd4a(0x225)](!0x1),this['_onSavingEditorData$'][_0x28cd4a(0x260)](),super['dispose']();}[_0x2b58b8(0x2e8)](_0x4b22ce){const _0x48270f=_0x2b58b8;(_0x4b22ce==null||!_0x4b22ce[_0x48270f(0x306)]||this[_0x48270f(0x163)](_0x4b22ce))&&(this[_0x48270f(0x1af)](),this['_editingParams$'][_0x48270f(0x225)](_0x4b22ce),(_0x4b22ce==null||_0x4b22ce[_0x48270f(0x306)]&&this['_onSavingEditorData$'][_0x48270f(0x347)]())&&this['_onSavingEditorData$'][_0x48270f(0x225)](!0x1));}['setOnSavingEditorData'](_0x4eb8e3){const _0x2c4750=_0x2b58b8;this[_0x2c4750(0x2bb)][_0x2c4750(0x225)](_0x4eb8e3);}[_0x2b58b8(0x2c5)](){return this['_editingParams$']['getValue']();}[_0x2b58b8(0x163)](_0x47e97f){const _0x4c8896=_0x2b58b8;let _0x4f1f3d=this[_0x4c8896(0x281)]['getUnit'](_0x47e97f[_0x4c8896(0x383)],_0x19a5e9[_0x4c8896(0x234)]);if(!_0x4f1f3d)return!0x0;let _0x2091bb=_0x384956(_0x4f1f3d,_0x47e97f[_0x4c8896(0x1a7)]);return _0x353611(this[_0x4c8896(0x121)],_0x47e97f[_0x4c8896(0x383)],[..._0x4fa6cb(_0x4f1f3d,_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)]),_0x418902(_0x2091bb,_0x4c8896(0x33e),_0x47e97f[_0x4c8896(0x1a7)])]);}['completeEditing'](_0x41b202){const _0x34a219=_0x2b58b8;let _0x1bede8=this[_0x34a219(0x2c5)]();_0x1bede8&&this[_0x34a219(0x271)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0x34a219(0x271)]=requestAnimationFrame(()=>{const _0x55f227=_0x34a219;this['_completionFrame']=void 0x0,this[_0x55f227(0x2c5)]()===_0x1bede8&&this[_0x55f227(0x2e8)](null);}));}[_0x2b58b8(0x1af)](){const _0x515253=_0x2b58b8;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x515253(0x271)]),this['_completionFrame']=void 0x0);}[_0x2b58b8(0x2cb)](){const _0x276035=_0x2b58b8;this[_0x276035(0x2c5)]()&&this[_0x276035(0x2e8)](null);}};X=q([K(0x0,_0x562515),K(0x1,_0x52a285)],X);function Yi(_0x43353c){const _0x25724e=_0x2b58b8;return _0x43353c['behindText']===!0x0||_0x43353c[_0x25724e(0x13a)]===_0x562bb0['TRUE']||_0x43353c[_0x25724e(0x118)]===_0x292c91['WRAP_NONE']&&_0x43353c[_0x25724e(0x26f)]===_0x562bb0['TRUE']?_0x191d2f-0x1:_0x59670b;}let Z=class extends _0x587b62{constructor(_0x44c43e,_0x20fcd7,_0x15a84c,_0x533693,_0x3b3d66,_0xcad525,_0xe2d148){const _0x224d6a=_0x2b58b8;super(),this[_0x224d6a(0x324)]=_0x44c43e,this[_0x224d6a(0x33f)]=_0x20fcd7,this[_0x224d6a(0x204)]=_0x15a84c,this['_imageIoService']=_0x533693,this[_0x224d6a(0x211)]=_0x3b3d66,this[_0x224d6a(0x1aa)]=_0xcad525,this['_shapeFormulaService']=_0xe2d148,J(this,_0x224d6a(0x2a4),new Map()),this[_0x224d6a(0x32d)](this[_0x224d6a(0x376)][_0x224d6a(0x18f)][_0x224d6a(0x138)](_0x401c2e=>{const _0x15f068=_0x224d6a;var _0x243c22;(_0x243c22=this['_formulaShapes'][_0x15f068(0x113)](this['_formulaKey'](_0x401c2e[_0x15f068(0x383)],_0x401c2e[_0x15f068(0x21e)],_0x401c2e[_0x15f068(0x1a7)])))==null||_0x243c22[_0x15f068(0x30e)](_0x548d11=>_0x548d11[_0x15f068(0x2b5)](_0x401c2e['presentation'],_0x401c2e[_0x15f068(0x129)]));})),this['disposeWithMe'](this['_drawingManagerService']['remove$']['subscribe'](_0x3daa66=>{const _0x2d01f3=_0x224d6a;_0x3daa66[_0x2d01f3(0x30e)](_0x5770bf=>{const _0x3adbbb=_0x2d01f3;this['_shapeFormulaService']['unregister']({'unitId':_0x5770bf[_0x3adbbb(0x383)],'subUnitId':_0x5770bf[_0x3adbbb(0x21e)],'shapeId':_0x5770bf[_0x3adbbb(0x160)]}),this[_0x3adbbb(0x2a4)]['delete'](this[_0x3adbbb(0x16a)](_0x5770bf['unitId'],_0x5770bf[_0x3adbbb(0x21e)],_0x5770bf[_0x3adbbb(0x160)]));});}));}[_0x2b58b8(0x1ce)](_0x2f5668,_0x6969d2){const _0x5c64a4=_0x2b58b8;let {transform:_0x8e8678,drawingType:_0x26f5dc,srcRect:_0x4407e2,prstGeom:_0x2497d8,groupId:_0x6ebbe6,unitId:_0x496ba9,subUnitId:_0x45afc5,drawingId:_0x25f9b6,isMultiTransform:_0x143927,transforms:_0x2595df,hidden:_0x1a6f40,selectable:_0x37ae7f}=_0x2f5668;if(_0x26f5dc!==_0x11efaa[_0x5c64a4(0x14f)]||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]()||_0x8e8678==null)return;let _0x30e5dc=this['_drawingManagerService'][_0x5c64a4(0x20d)](),_0x5a4a3f=_0x143927&&_0x2595df?_0x2595df:[_0x8e8678],_0x4c7f98=[];for(let [_0x35d5fd,_0x5ae1c3]of _0x5a4a3f['entries']()){let {left:_0x48d536,top:_0x3af56b,width:_0x59d2b0,height:_0x4e6df8,angle:_0x4c6a41,flipX:_0x29a9ee,flipY:_0x25a8ee,skewX:_0x31593a,skewY:_0x46135d}=_0x5ae1c3,_0x512767=_0x3ac7e0({'unitId':_0x496ba9,'subUnitId':_0x45afc5,'drawingId':_0x25f9b6},_0x143927?_0x35d5fd:void 0x0),_0x150037=_0x6969d2[_0x5c64a4(0x202)](_0x512767);if(_0x150037!=null){let _0x1129e3={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x150037 instanceof Y&&this[_0x5c64a4(0x224)](_0x150037,_0x1129e3),_0x150037['transformByState']({'left':_0x48d536,'top':_0x3af56b,'width':_0x59d2b0,'height':_0x4e6df8,'angle':_0x4c6a41,'flipX':_0x29a9ee,'flipY':_0x25a8ee,'skewX':_0x31593a,'skewY':_0x46135d});continue;}let _0x1074d0=this[_0x5c64a4(0x324)][_0x5c64a4(0x1ec)](_0x496ba9,_0x45afc5),_0x1be685=_0x1074d0['indexOf'](_0x25f9b6);if(_0x6969d2[_0x5c64a4(0x202)](_0x512767)||!this[_0x5c64a4(0x324)][_0x5c64a4(0x1ff)]())continue;let _0x10094c=this[_0x5c64a4(0x33f)]['getShapeModel'](_0x496ba9,_0x45afc5,_0x25f9b6);if(!_0x10094c)continue;let _0x37a7b8=_0x3a6b70(_0x10094c[_0x5c64a4(0x11f)]())?{..._0x48d4bb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x48d4bb,_0x215767=_0x10094c['getShapeData']()[_0x5c64a4(0x328)],_0x5da622={'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6};_0x215767&&this[_0x5c64a4(0x376)][_0x5c64a4(0x109)](_0x5da622,_0x215767);let _0x4d45f2=new Y(_0x512767,{..._0x5ae1c3,'zIndex':_0x1be685===-0x1?_0x1074d0[_0x5c64a4(0x364)]-0x1:_0x1be685,'shapeModel':_0x10094c,'localeService':this[_0x5c64a4(0x204)],'shapeId':_0x25f9b6,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'visible':_0x1a6f40!==!0x0,'evented':_0x37ae7f!==!0x1,'formulaPresentation':_0x215767?this[_0x5c64a4(0x376)][_0x5c64a4(0x315)](_0x5da622):void 0x0,'animateFormulaPresentation':(_0x215767==null?void 0x0:_0x215767[_0x5c64a4(0x129)])!==!0x1,'transformerConfig':_0x37a7b8});if(_0x215767){let _0x39b098=this['_formulaKey'](_0x496ba9,_0x45afc5,_0x25f9b6),_0x4cc6c7=this[_0x5c64a4(0x2a4)][_0x5c64a4(0x113)](_0x39b098)??new Set();_0x4cc6c7[_0x5c64a4(0x11a)](_0x4d45f2),this['_formulaShapes'][_0x5c64a4(0x1dd)](_0x39b098,_0x4cc6c7);}this['disposeWithMe'](_0x390b1(_0x4d45f2[_0x5c64a4(0x369)]['subscribeEvent']((_0x37d832,_0x13baaa)=>{const _0x5a9c7a=_0x5c64a4;_0x10094c[_0x5a9c7a(0x2b2)]()||_0x215767||(this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x496ba9,'subUnitId':_0x45afc5,'shapeId':_0x25f9b6,'shapeKey':_0x4d45f2[_0x5a9c7a(0x11b)]}),_0x13baaa['stopPropagation']());}))),_0x6969d2[_0x5c64a4(0x386)](_0x4d45f2,Yi(_0x2f5668)),_0x30e5dc&&_0x6969d2[_0x5c64a4(0x23b)](_0x4d45f2),_0x6ebbe6&&_0xfd7c86({'drawingId':_0x6ebbe6,'unitId':_0x496ba9,'subUnitId':_0x45afc5},_0x4d45f2,_0x6969d2,this[_0x5c64a4(0x324)],_0x143927?_0x35d5fd:void 0x0),_0x2497d8!=null&&_0x4d45f2['setPrstGeom'](_0x2497d8),_0x4407e2!=null&&_0x4d45f2[_0x5c64a4(0x2fa)](_0x4407e2),this[_0x5c64a4(0x2df)](_0x4d45f2,_0x10094c[_0x5c64a4(0x170)]()),_0x4c7f98['push'](_0x4d45f2);}return _0x4c7f98;}[_0x2b58b8(0x16a)](_0x2d61c9,_0x33936f,_0x436c9c){return _0x2d61c9+'\x00'+_0x33936f+'\x00'+_0x436c9c;}[_0x2b58b8(0x224)](_0x6e5971,_0x2be3f0){const _0x147a43=_0x2b58b8;let _0x321693=this[_0x147a43(0x33f)][_0x147a43(0x348)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]),_0x4c8908=_0x321693==null?void 0x0:_0x321693[_0x147a43(0x170)]()[_0x147a43(0x328)],_0x8d4529=this[_0x147a43(0x16a)](_0x2be3f0[_0x147a43(0x383)],_0x2be3f0[_0x147a43(0x21e)],_0x2be3f0[_0x147a43(0x1a7)]);if(_0x4c8908){this[_0x147a43(0x376)]['register'](_0x2be3f0,_0x4c8908);let _0x51c852=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529)??new Set();_0x51c852[_0x147a43(0x11a)](_0x6e5971),this[_0x147a43(0x2a4)][_0x147a43(0x1dd)](_0x8d4529,_0x51c852);}else{var _0x25efa0;this[_0x147a43(0x376)]['unregister'](_0x2be3f0),(_0x25efa0=this[_0x147a43(0x2a4)][_0x147a43(0x113)](_0x8d4529))==null||_0x25efa0[_0x147a43(0x1a2)](_0x6e5971);}_0x6e5971['setFormulaPresentation'](_0x4c8908?this['_shapeFormulaService'][_0x147a43(0x315)](_0x2be3f0):void 0x0,(_0x4c8908==null?void 0x0:_0x4c8908['animationEnabled'])!==!0x1);}[_0x2b58b8(0x380)](_0x2d9439){const _0x5e71b4=_0x2b58b8;let _0xa2713b=_0x2d9439[_0x5e71b4(0x17c)]['getShapeData'](),_0x41fbb4=_0xa2713b[_0x5e71b4(0x180)];if(!_0x41fbb4||_0x41fbb4[_0x5e71b4(0x334)]!==_0x377cba[_0x5e71b4(0x1b6)]||!_0x41fbb4[_0x5e71b4(0x136)]){_0x2d9439['setFillImage'](void 0x0);return;}this[_0x5e71b4(0x2df)](_0x2d9439,_0xa2713b);}[_0x2b58b8(0x2df)](_0xc71f70,_0x32b6a3){const _0x20bc64=_0x2b58b8;let _0x18f95a=_0x32b6a3[_0x20bc64(0x180)];if(!_0x18f95a||_0x18f95a[_0x20bc64(0x334)]!==_0x377cba[_0x20bc64(0x1b6)]||!_0x18f95a[_0x20bc64(0x136)])return;let _0x10abfd=_0x18f95a[_0x20bc64(0x136)],_0x35081f=_0x18f95a[_0x20bc64(0x2a0)]??_0x34e787[_0x20bc64(0x36d)],_0x4db42f=this['_imageIoService'][_0x20bc64(0x2e3)](_0x10abfd,_0x35081f);if(_0x4db42f){_0xc71f70[_0x20bc64(0x293)](_0x4db42f);return;}this[_0x20bc64(0x275)](_0xc71f70,_0x10abfd,_0x35081f);}async[_0x2b58b8(0x275)](_0x1b04d2,_0x47f4af,_0x3fa949){const _0x4f4482=_0x2b58b8;let _0x14bbe9;try{if(_0x3fa949===_0x34e787[_0x4f4482(0x238)])_0x14bbe9=await this[_0x4f4482(0x253)][_0x4f4482(0x273)](_0x47f4af);else{if(_0x3fa949===_0x34e787[_0x4f4482(0x36d)])try{_0x14bbe9=await this[_0x4f4482(0x211)][_0x4f4482(0x273)](_0x47f4af);}catch{_0x14bbe9=_0x47f4af;}else _0x14bbe9=_0x47f4af;}}catch(_0x1d3b5d){console[_0x4f4482(0x346)](_0x4f4482(0x332),_0x1d3b5d);return;}let _0x4ec56e=new window[(_0x4f4482(0x1cc))]();_0x4ec56e[_0x4f4482(0x24e)]=()=>{const _0x1090b3=_0x4f4482;this[_0x1090b3(0x253)][_0x1090b3(0x2ec)](_0x47f4af,_0x3fa949,_0x4ec56e),_0x1b04d2[_0x1090b3(0x293)](_0x4ec56e);},_0x4ec56e['onerror']=()=>{const _0x4b0fb6=_0x4f4482;console[_0x4b0fb6(0x346)](_0x4b0fb6(0x16e),_0x47f4af);},_0x4ec56e[_0x4f4482(0x259)]=_0x14bbe9;}};Z=q([K(0x0,_0x1f1d2f),K(0x1,_0xbdb0e2(_0xc58a76)),K(0x2,_0xbdb0e2(_0x5af3e2)),K(0x3,_0x1ec634),K(0x4,_0x57ea26),K(0x5,_0xbdb0e2(X)),K(0x6,_0xbdb0e2(_0x13f23d))],Z);let Xi=class extends _0x587b62{constructor(_0x1dc795,_0x41c511,_0x3d7643){const _0x35fe22=_0x2b58b8;super(),this[_0x35fe22(0x2bf)]=_0x1dc795,this[_0x35fe22(0x324)]=_0x41c511,this[_0x35fe22(0x316)]=_0x3d7643,this[_0x35fe22(0x123)]();}['_initPrinting'](){const _0x31b1d4=_0x2b58b8;this[_0x31b1d4(0x32d)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x130)](this[_0x31b1d4(0x2bf)][_0x31b1d4(0x1e1)][_0x31b1d4(0x373)]()[_0x31b1d4(0x217)],{'handler':(_0x1787c3,_0x3ce185,_0x6d5c66)=>{const _0x4adcc0=_0x31b1d4;var _0x12eb01;let {unitId:_0x682242,scene:_0x37a417,skeleton:_0x2f3f6e}=_0x3ce185,{pageIndex:_0x3f8c56}=_0x3ce185,_0x39d8c9=(_0x12eb01=this[_0x4adcc0(0x324)][_0x4adcc0(0x272)](_0x682242))==null?void 0x0:_0x12eb01[_0x682242],_0x2c6ac0=Zi(this[_0x4adcc0(0x2bf)],_0x2f3f6e,_0x3f8c56);return _0x39d8c9==null||_0x39d8c9[_0x4adcc0(0x127)][_0x4adcc0(0x30e)](_0x19fde7=>{const _0x3eb1cf=_0x4adcc0;if(_0x2c6ac0&&!_0x2c6ac0[_0x3eb1cf(0x25c)](_0x19fde7))return;let _0x2e9934=_0x39d8c9[_0x3eb1cf(0x23e)][_0x19fde7];_0x2e9934[_0x3eb1cf(0x142)]===_0x11efaa[_0x3eb1cf(0x14f)]&&!_0x2e9934['hidden']&&this[_0x3eb1cf(0x316)][_0x3eb1cf(0x1ce)](_0x2e9934,_0x37a417);}),_0x6d5c66(_0x1787c3);}}));}};Xi=q([K(0x0,_0xbdb0e2(_0x50c28a)),K(0x1,_0x1f1d2f),K(0x2,_0xbdb0e2(Z))],Xi);function Zi(_0x578ce9,_0x458a22,_0x3c552f){const _0x3e12c4=_0x2b58b8;var _0xd1e80b,_0x10c09f;let _0x19ebec=_0x578ce9;if(_0x19ebec['getPageDrawingIds'])return _0x19ebec[_0x3e12c4(0x139)](_0x458a22,_0x3c552f);let _0x435adb=_0x458a22[_0x3e12c4(0x36b)]();if(!_0x435adb||_0x435adb[_0x3e12c4(0x300)][_0x3e12c4(0x364)]<=0x1||_0x3c552f==null)return null;let _0x15a90a=new Set(),_0x3b0daf=_0x435adb[_0x3e12c4(0x300)][_0x3c552f];if(!_0x3b0daf)return _0x15a90a;Qi(_0x3b0daf,_0x15a90a);let _0x4bb6a9=(_0xd1e80b=_0x435adb[_0x3e12c4(0x1a9)][_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x2be)]))==null?void 0x0:_0xd1e80b[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x167)]??_0x3b0daf[_0x3e12c4(0x1ab)]),_0x1a0c1c=(_0x10c09f=_0x435adb[_0x3e12c4(0x111)]['get'](_0x3b0daf[_0x3e12c4(0x1bb)]))==null?void 0x0:_0x10c09f[_0x3e12c4(0x113)](_0x3b0daf[_0x3e12c4(0x263)]??_0x3b0daf['pageWidth']);return _0x4bb6a9&&Qi(_0x4bb6a9,_0x15a90a),_0x1a0c1c&&Qi(_0x1a0c1c,_0x15a90a),_0x15a90a;}function Qi(_0x541383,_0xab12ba){const _0x1a8d83=_0x2b58b8;for(let _0x1796fe of _0x541383['skeDrawings'][_0x1a8d83(0x279)]())_0xab12ba[_0x1a8d83(0x11a)](_0x1796fe);for(let _0x1bbaa9 of _0x541383[_0x1a8d83(0x1b0)][_0x1a8d83(0x199)]())for(let _0x2d822b of _0x1bbaa9['rows'])for(let _0x4f7417 of _0x2d822b[_0x1a8d83(0x176)])Qi(_0x4f7417,_0xab12ba);}function $i(_0x5709fd){return _0x9daf1d(Ur,{..._0x5709fd,'PickerComponent':_0xe027d8});}function ea(){const _0x421c24=_0x2b58b8;let _0x4a5d90=_0x16858b(_0x5af3e2),_0x27f654=Br(),[_0x9aca3,_0x15e41f]=_0x1960d6(!0x1);return _0x29ba63(_0x421c24(0x385),{'className':'univer-grid\x20univer-gap-3','children':[_0x9daf1d(_0x1cbd0b,{'title':_0x4a5d90['t']('docs-shape-ui.crop.shape'),'aria-expanded':_0x9aca3,'variant':_0x421c24(0x168),'trailing':_0x9daf1d(_0x9aca3?_0x1f633b:_0x4067c9,{}),'onClick':()=>_0x15e41f(_0x36cd5b=>!_0x36cd5b)}),_0x9aca3&&_0x9daf1d(_0xe027d8,{'excludeGroups':[_0x1aea6e[_0x421c24(0x32e)]],'onShapeClick':_0x200a78=>{_0x27f654(_0x200a78),_0x15e41f(!0x1);}})]});}function ta(_0x299cbf){return _0x299cbf['trim']()||void 0x0;}function na(_0x3d5ece,_0x237ce6,_0x4d35b3){const _0x55b798=_0x2b58b8;var _0x2b45fd,_0x21c82e;return((_0x2b45fd=_0x3d5ece[_0x55b798(0x183)])==null?void 0x0:_0x2b45fd[_0x55b798(0x1e4)]())||((_0x21c82e=_0x3d5ece['title'])==null?void 0x0:_0x21c82e[_0x55b798(0x1e4)]())||_0x4d35b3['t'](_0x55b798(0x381)+_0x29fa97(_0x3d5ece[_0x55b798(0x142)]))+'\x20'+(_0x237ce6+0x1);}function ra({PanelComponent:_0x334045=_0x77d035}){const _0x36908f=_0x2b58b8;let _0x7a3f78=_0x16858b(_0x5af3e2),_0x25e8b9={'title':_0x7a3f78['t'](_0x36908f(0x367)),'empty':_0x7a3f78['t'](_0x36908f(0x33d)),'showAll':_0x7a3f78['t'](_0x36908f(0x1e3)),'hideAll':_0x7a3f78['t'](_0x36908f(0x1c0)),'lockAll':_0x7a3f78['t'](_0x36908f(0x1fa)),'unlockAll':_0x7a3f78['t'](_0x36908f(0x17d)),'moveForward':_0x7a3f78['t'](_0x36908f(0x1c6)),'moveBackward':_0x7a3f78['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x7a3f78['t'](_0x36908f(0x10a)),'show':_0x7a3f78['t'](_0x36908f(0x2d2)),'hide':_0x7a3f78['t'](_0x36908f(0x357)),'lock':_0x7a3f78['t'](_0x36908f(0x28d)),'unlock':_0x7a3f78['t'](_0x36908f(0x173)),'lockHint':_0x7a3f78['t'](_0x36908f(0x1cf)),'unlockHint':_0x7a3f78['t'](_0x36908f(0x219)),'name':_0x7a3f78['t'](_0x36908f(0x29f)),'nameInput':_0x7a3f78['t'](_0x36908f(0x25a)),'description':_0x7a3f78['t'](_0x36908f(0x35f)),'descriptionPlaceholder':_0x7a3f78['t'](_0x36908f(0x358)),'details':_0x7a3f78['t'](_0x36908f(0x23f)),'noSelection':_0x7a3f78['t'](_0x36908f(0x1b4)),'locate':_0x7a3f78['t'](_0x36908f(0x2c2)),'expand':_0x7a3f78['t'](_0x36908f(0x1d5)),'collapse':_0x7a3f78['t'](_0x36908f(0x1a8)),'dragToReorder':_0x7a3f78['t']('drawing-ui.objectListPanel.dragToReorder'),'search':_0x7a3f78['t'](_0x36908f(0x264)),'filterAll':_0x7a3f78['t'](_0x36908f(0x252)),'filterHidden':_0x7a3f78['t'](_0x36908f(0x24b)),'filterLocked':_0x7a3f78['t'](_0x36908f(0x361)),'sectionCanvas':_0x7a3f78['t'](_0x36908f(0x31b)),'sectionFloating':_0x7a3f78['t'](_0x36908f(0x2d4))},_0x22d8c1=_0x16858b(_0x5f3c0a),_0x291e8a=_0x16858b(_0x52a285),_0xc16b18=_0x16858b(_0x1c6928),_0x1b3e99=_0x16858b(_0x1f1d2f),_0x4679fa=_0x16858b(_0x5479fc),[,_0x1f38cd]=_0x3f2dd0(_0x1430ee=>_0x1430ee+0x1,0x0),_0x43cb8d=_0x291e8a[_0x36908f(0x2b6)](_0x19a5e9['UNIVER_DOC']),_0x34cbb4=(_0x43cb8d==null?void 0x0:_0x43cb8d[_0x36908f(0x274)]())??'',_0x45d489=_0x34cbb4,_0x268e31=_0x104db2(()=>_0x1b3e99['focus$'],_0x1b3e99[_0x36908f(0x262)](),!0x1,[_0x1b3e99]);_0x2951cf(()=>{const _0x2abb08=_0x36908f;let _0x5036d2=_0x22d8c1['onCommandExecuted'](()=>_0x1f38cd());return()=>_0x5036d2[_0x2abb08(0x12f)]();},[_0x22d8c1]);let _0x27735e=_0x34cbb4?_0xc16b18[_0x36908f(0x213)](_0x34cbb4,_0x45d489):{},_0x237a15=(_0x34cbb4?_0xc16b18[_0x36908f(0x1ec)](_0x34cbb4,_0x45d489):[])['map'](_0x4b7c40=>_0x27735e[_0x4b7c40])[_0x36908f(0x16f)](_0x708e1f=>!!_0x708e1f)[_0x36908f(0x2d5)](),_0x2ec814=_0x237a15['reduce']((_0x2ca533,_0x30907e)=>(_0x2ca533[_0x590bb6(_0x30907e[_0x36908f(0x142)])]+=0x1,_0x2ca533),{'canvas':0x0,'floating':0x0}),_0x370abb={'canvas':0x0,'floating':0x0},_0x4803cc=_0x237a15[_0x36908f(0x166)]((_0x213131,_0x493c76)=>{const _0x367af0=_0x36908f;let _0x308704=_0x590bb6(_0x213131['drawingType']),_0xace63c=_0x308704===_0xa72627,_0x5add61=_0x370abb[_0x308704]++;return{'id':_0x213131[_0x367af0(0x160)],'name':na(_0x213131,_0x493c76,_0x7a3f78),'description':_0x213131[_0x367af0(0x246)],'visible':_0x213131[_0x367af0(0x2a1)]!==!0x0,'selectable':_0x213131['selectable']!==!0x1,'sectionId':_0x308704,'sectionTitle':_0xace63c?_0x25e8b9[_0x367af0(0x29d)]:_0x25e8b9[_0x367af0(0x120)],'capabilities':_0xace63c?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xace63c&&_0x5add61>0x0,'canMoveBackward':!_0xace63c&&_0x5add61<_0x2ec814[_0x367af0(0x2f6)]-0x1,'canReorder':!_0xace63c};}),_0x50351d=_0x17c0eb(()=>(_0x268e31??[])[_0x36908f(0x16f)](_0x294fa6=>_0x294fa6[_0x36908f(0x383)]===_0x34cbb4&&_0x294fa6[_0x36908f(0x21e)]===_0x45d489)['map'](_0x14a50c=>_0x14a50c[_0x36908f(0x160)]),[_0x268e31,_0x45d489,_0x34cbb4]),_0x18e08f=_0x50351d[_0x50351d[_0x36908f(0x364)]-0x1]??null,_0x595942=_0x5d0240=>_0xc16b18[_0x36908f(0x247)]({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x5d0240})??null,_0x2777ad=async _0x195c8d=>{const _0x22defb=_0x36908f;_0x34cbb4&&_0x195c8d[_0x22defb(0x364)]&&await _0x22d8c1[_0x22defb(0x362)](_0x155b37['id'],{'unitId':_0x34cbb4,'patches':_0x195c8d});},_0x458042=(_0x1ac0ec,_0x22ae2d)=>{const _0x2c9af9=_0x36908f;if(!_0x34cbb4)return;let _0x5057f5=_0x22ae2d?_0x50351d['includes'](_0x1ac0ec)?_0x50351d[_0x2c9af9(0x16f)](_0x18ddc9=>_0x18ddc9!==_0x1ac0ec):[..._0x50351d,_0x1ac0ec]:[_0x1ac0ec];_0x22d8c1[_0x2c9af9(0x363)](_0x2aa15c['id'],_0x5057f5[_0x2c9af9(0x166)](_0x542376=>({'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x542376})));let _0x43d22a=_0x5057f5[_0x5057f5[_0x2c9af9(0x364)]-0x1];_0x43d22a?_0x30f783(_0x4679fa,{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingId':_0x43d22a}):_0x168dd8(_0x4679fa,_0x34cbb4);},_0x12b583=async(_0x1390d3,_0x307c1d)=>{const _0x5920d7=_0x36908f;await _0x2777ad(_0x1390d3[_0x5920d7(0x166)](_0x5abd0a=>_0x595942(_0x5abd0a))['filter'](_0x41a3d3=>!!_0x41a3d3)[_0x5920d7(0x16f)](_0x5bf0d0=>_0x5bf0d0[_0x5920d7(0x2a1)]!==!0x0!==_0x307c1d)[_0x5920d7(0x166)](_0x4c3129=>({'drawingId':_0x4c3129[_0x5920d7(0x160)],'hidden':!_0x307c1d})));},_0xdb595e=async(_0x134b70,_0x3d17ca)=>{const _0x48a57c=_0x36908f;await _0x2777ad(_0x134b70['map'](_0x4723b0=>_0x595942(_0x4723b0))[_0x48a57c(0x16f)](_0x481923=>!!_0x481923)['filter'](_0x396623=>_0x396623[_0x48a57c(0x1da)]!==!0x1!==_0x3d17ca)[_0x48a57c(0x166)](_0x50e59f=>({'drawingId':_0x50e59f[_0x48a57c(0x160)],'selectable':_0x3d17ca})));},_0x1d9ac8=_0xe1a804=>{const _0x4e7e26=_0x36908f;let _0x51f169=_0x595942(_0xe1a804);if(_0x51f169)return _0xdb595e([_0xe1a804],_0x51f169[_0x4e7e26(0x1da)]===!0x1);},_0x14ea6c=async(_0x5a7f20,_0x109be2)=>{const _0x145ff7=_0x36908f;let _0x31459a=_0x595942(_0x5a7f20),_0x564a08=ta(_0x109be2);!_0x31459a||(_0x31459a[_0x145ff7(0x183)]??void 0x0)===_0x564a08&&(_0x31459a[_0x145ff7(0x172)]||void 0x0)===_0x564a08||await _0x2777ad([{'drawingId':_0x5a7f20,'name':_0x564a08,'title':_0x564a08}]);},_0x45b411=async(_0x1505b5,_0x2492bf)=>{const _0x1e00bc=_0x36908f;let _0x3f2f1a=_0x595942(_0x1505b5),_0x5a66db=ta(_0x2492bf);_0x3f2f1a&&(_0x3f2f1a[_0x1e00bc(0x246)]??void 0x0)!==_0x5a66db&&await _0x2777ad([{'drawingId':_0x1505b5,'description':_0x5a66db}]);},_0x504af9=async(_0x50d24f,_0x4c6f78)=>{const _0x1fea44=_0x36908f;_0x34cbb4&&await _0x22d8c1[_0x1fea44(0x362)](_0x441b4f['id'],{'unitId':_0x34cbb4,'subUnitId':_0x45d489,'drawingIds':[_0x50d24f],'arrangeType':_0x4c6f78});};return _0x34cbb4?_0x9daf1d(_0x334045,{'labels':_0x25e8b9,'renderPermissionAction':_0x475326=>_0x43cb8d?_0x9daf1d(_0x3d2d26,{'target':{'unitId':_0x34cbb4,'objectId':_0x418902(_0x384956(_0x43cb8d,_0x475326['id']),_0x36908f(0x33e),_0x475326['id']),'objectType':_0xb843b5[_0x36908f(0x203)]},'name':_0x475326[_0x36908f(0x183)],'commandId':_0x2ba39d['id'],'exists':()=>!!_0x595942(_0x475326['id'])},_0x34cbb4+'/'+_0x475326['id']):null,'items':_0x4803cc,'selectedIds':_0x50351d,'focusedId':_0x18e08f,'showHeader':!0x1,'onSelect':_0x458042,'onSetVisible':_0x12b583,'onSetSelectable':_0xdb595e,'onCommitName':_0x14ea6c,'onCommitDescription':_0x45b411,'onMoveForward':async _0x511752=>_0x504af9(_0x511752,_0x3963c4[_0x36908f(0x1bc)]),'onMoveBackward':async _0x5154e4=>_0x504af9(_0x5154e4,_0x3963c4[_0x36908f(0x186)]),'onToggleSelectable':_0x1d9ac8}):_0x9daf1d(_0x36908f(0x385),{'className':_0x36908f(0x248),'children':_0x25e8b9[_0x36908f(0x172)]});}function ia(){return _0x9daf1d(ra,{'PanelComponent':_0x4bf5db});}let aa=class{constructor(_0x2dd0b7){const _0x406eb0=_0x2b58b8;this[_0x406eb0(0x35c)]=_0x2dd0b7;}[_0x2b58b8(0x1c5)](_0x970028,_0x28668e){const _0x11d2a6=_0x2b58b8;let _0x5e5bd8=this[_0x11d2a6(0x35c)][_0x11d2a6(0x1c9)](_0x970028[_0x11d2a6(0x383)]),_0x25e82a=_0x5e5bd8==null?void 0x0:_0x5e5bd8[_0x11d2a6(0x10b)];if(!_0x25e82a)return;let _0x5ba697=_0x3ac7e0(_0x970028),_0x1e5fe8=_0x25e82a[_0x11d2a6(0x202)](_0x5ba697);_0x1e5fe8==null||_0x1e5fe8['setFillImage'](_0x28668e);}};aa=q([K(0x0,_0x5479fc)],aa);function oa(){const _0x42fb6d=_0x2b58b8;let _0x497f45=_0x16858b(_0x1f1d2f),_0x39433a=_0x104db2(()=>_0x497f45[_0x42fb6d(0x2f3)],_0x497f45['getFocusDrawings'](),!0x1,[_0x497f45]);return _0x39433a[_0x42fb6d(0x364)]===0x0?null:_0x9daf1d(_0x42fb6d(0x385),{'children':_0x29ba63(_0x42fb6d(0x385),{'className':_0x42fb6d(0x21f),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x39433a,'hasCropper':!0x1}),_0x9daf1d(_0x4fb651,{'drawings':_0x39433a}),_0x9daf1d(_0x1adf5f,{'drawings':_0x39433a})]})});}function sa(_0x23e905){let {unitId:_0x88c620,subUnitId:_0xfaf7fe,shapeId:_0x5ac31a,PositionComponent:_0x43a911=oa}=_0x23e905,_0x5b2847=_0x16858b(_0x5f3c0a),_0x226718=_0x16858b(aa);return _0x9daf1d(_0x11d750,{..._0x23e905,'positionEditor':_0x9daf1d(_0x43a911,{}),'onUpdateShapeData':(_0x2b0f6a,_0x5c6d33)=>{Yr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x2b0f6a,_0x5c6d33);},'onUpdateLineShapeData':(_0x4c37f0,_0x5782e5)=>{Xr(_0x5b2847,_0x88c620,_0xfaf7fe,_0x5ac31a,_0x4c37f0,_0x5782e5);},'onUpdateShapeFillImage':_0xa3a936=>{_0x226718['updateShapeFillImage']({'unitId':_0x88c620,'subUnitId':_0xfaf7fe,'drawingId':_0x5ac31a},_0xa3a936);}});}function ca(){const _0x10facb=_0x2b58b8;let _0x571500=_0x16858b(_0x1f1d2f),_0x440c8f=_0x104db2(_0x571500[_0x10facb(0x2f3)],_0x571500[_0x10facb(0x262)]());return _0x440c8f[_0x10facb(0x364)]===0x0?null:_0x29ba63(_0x10facb(0x385),{'className':_0x10facb(0x338),'children':[_0x9daf1d(_0x45ca4b,{'drawings':_0x440c8f,'hasCropper':!0x1}),_0x9daf1d(_0x44ac19,{'drawings':_0x440c8f}),_0x9daf1d(_0x3ac16a,{'drawings':_0x440c8f})]});}function la(_0x542521){return _0x9daf1d(_0x406ee5,{'children':_0x9daf1d(sa,{..._0x542521,'PositionComponent':ca})});}function ua({popup:_0x5347cf}){const _0x5a6061=_0x2b58b8;let _0x3c0173=_0x16858b(_0x5af3e2),{shapeType:_0x26ce75,onText:_0x5b5999,onStyle:_0xdc2c85,onDelete:_0x5ad0c0}=_0x5347cf[_0x5a6061(0x2c7)],_0x511e79=[{'key':_0x5a6061(0x10d),'order':0x0,'item':{'id':'text','type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x354)),'disabled$':_0x156e35(_0x3a6b70(_0x26ce75))}},{'key':_0x5a6061(0x135),'order':0x1,'item':{'id':_0x5a6061(0x135),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x312))}},{'key':_0x5a6061(0x1a2),'order':0x2,'item':{'id':_0x5a6061(0x1a2),'type':_0x56fa91['BUTTON'],'title':_0x3c0173['t'](_0x5a6061(0x1fe))}}];return _0x9daf1d(_0x2cf0e1,{'schemas':_0x511e79,'presentation':_0x5a6061(0x350),'onOptionSelect':async({id:_0x3a423b})=>{const _0x3a4608=_0x5a6061;_0x3a423b===_0x3a4608(0x10d)?await _0x5b5999():_0x3a423b===_0x3a4608(0x135)?await _0xdc2c85():_0x3a423b===_0x3a4608(0x1a2)&&await _0x5ad0c0();}});}const da=_0x2b58b8(0x290);function fa(_0xe1805a,_0x286006){const _0x2db006=_0x2b58b8;var _0xa351cd;let _0x264005=_0xe1805a==null||(_0xa351cd=_0xe1805a[_0x2db006(0x110)]()[_0x2db006(0x1a4)])==null?void 0x0:_0xa351cd[_0x286006];return _0x264005?_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x178)]?_0x264005[_0x2db006(0x26f)]===_0x562bb0[_0x2db006(0x1f7)]?_0x31600f[_0x2db006(0x115)]:_0x31600f[_0x2db006(0x28f)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x322)]?_0x31600f[_0x2db006(0x322)]:_0x264005[_0x2db006(0x118)]===_0x292c91[_0x2db006(0x26b)]?_0x31600f[_0x2db006(0x26b)]:_0x31600f[_0x2db006(0x1db)]:_0x31600f[_0x2db006(0x1db)];}function pa(_0x2384ce){const _0x464a93=_0x2b58b8;let _0x11a175=_0x16858b(_0x54ad5c),_0x2adf0a=_0x104db2(()=>_0x11a175['visible$'],_0x11a175[_0x464a93(0x13b)](),!0x1,[_0x11a175]),_0x2a7cf8=_0x2384ce[_0x464a93(0x17f)][_0x464a93(0x2c7)];return _0x2adf0a?_0x9daf1d(ma,{..._0x2a7cf8,'canvasElement':_0x2384ce['popup'][_0x464a93(0x232)]}):null;}function ma(_0x5e38db){const _0x42a935=_0x2b58b8;let _0x44e8e0=_0x16858b(_0x5f3c0a),_0x314853=_0x16858b(_0x5af3e2),_0x485309=_0x16858b(_0xc58a76),_0x1d236e=_0x16858b(_0x52a285),{unitId:_0x2ef3de,subUnitId:_0x293725,drawingId:_0x17d1a5,shapeType:_0x4b123b}=_0x5e38db,[_0x3a1243,_0x52f4ab]=_0x1960d6(_0x5e38db[_0x42a935(0x1ae)]),_0x1afa68=_0x1d236e[_0x42a935(0x283)](_0x2ef3de,_0x19a5e9[_0x42a935(0x234)])??void 0x0,[_0x3449c1,_0x1f45af]=_0x1960d6(()=>fa(_0x1afa68,_0x17d1a5)),_0x3f7891=_0x17c0eb(()=>_0x2f8313(_0x3a1243),[_0x3a1243]),_0xfd48f7=_0x17c0eb(()=>_0xf92dc(_0x3a1243),[_0x3a1243]);_0x2951cf(()=>{const _0x4a5e5c=_0x42a935;let _0xab3a33=_0x44e8e0[_0x4a5e5c(0x19e)](_0x311b20=>{const _0x309aa4=_0x4a5e5c;if(_0x311b20['id']!==_0x3d4cfc['id'])return;let _0x48806b=_0x485309[_0x309aa4(0x152)](_0x2ef3de,_0x293725,_0x17d1a5);_0x48806b&&_0x52f4ab(_0x48806b);});return()=>_0xab3a33[_0x4a5e5c(0x12f)]();},[_0x44e8e0,_0x485309,_0x17d1a5,_0x293725,_0x2ef3de]);let _0x1eefe6=_0x234773=>{_0x52f4ab(_0x3193ac=>({..._0x3193ac,..._0x234773}));},_0x444cdc=_0x521f11=>{const _0x589a79=_0x42a935;let _0x24df7a=_0x4b7a9f(_0x3a1243,_0x521f11);Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'shapeText':_0x3a1243[_0x589a79(0x188)]}},_0x24df7a),_0x1eefe6(_0x24df7a);},_0x2cee01=_0x4b54f3=>{_0x1f45af(_0x4b54f3),_0x44e8e0['executeCommand'](_0x210103['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}],'wrappingStyle':_0x4b54f3});},_0x482394=_0x4bb66f({'hostType':_0x19a5e9[_0x42a935(0x234)],'unitId':_0x2ef3de,'subUnitId':_0x293725,'shapeId':_0x17d1a5,'shapeData':_0x3a1243,'onUpdateBinding':_0x3c915a=>{let _0xc6ac0a={'formulaBinding':_0x3c915a};Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,{'oldShapeData':{'formulaBinding':_0x3a1243['formulaBinding']}},_0xc6ac0a),_0x1eefe6(_0xc6ac0a);}}),_0x21d203=[{'label':_0x314853['t'](_0x42a935(0x379)),'value':_0x31600f[_0x42a935(0x1db)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x20b)),'value':_0x31600f['WRAP_SQUARE'],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x31600f[_0x42a935(0x26b)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t'](_0x42a935(0x28e)),'value':_0x31600f[_0x42a935(0x115)],'icon':_0x9daf1d(_0x5e10e7,{})},{'label':_0x314853['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x31600f[_0x42a935(0x28f)],'icon':_0x9daf1d(_0x5e10e7,{})}];return _0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x1ee75a,{'canvasElement':_0x5e38db[_0x42a935(0x232)],'shapeData':_0x3a1243,'shapeType':_0x4b123b,'textStyle':{'ff':_0xda9354[_0x42a935(0x188)]['fontFamily'],'fs':_0xda9354['shapeText']['fontSize'],'cl':{'rgb':_0xda9354[_0x42a935(0x188)][_0x42a935(0x2af)]},..._0x3f7891},'textModel':_0xfd48f7?{'ha':_0xfd48f7['ha']??_0x5cdaf0[_0x42a935(0x205)],'va':_0xfd48f7['va']??_0x41d65f['TOP']}:null,'wrappingStyle':_0x3449c1,'wrappingStyleOptions':_0x21d203,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0xda9354['fill'],'defaultGradientEndColor':_0xda9354[_0x42a935(0x35e)],'defaultStrokeColor':_0xda9354[_0x42a935(0x191)],'extensionGroups':_0x482394[_0x42a935(0x243)],'floatingObjectToolbarPosition':_0x825cf2['DOC'],'onUpdateShapeData':(_0x589e04,_0x41d8da)=>{Yr(_0x44e8e0,_0x2ef3de,_0x293725,_0x17d1a5,_0x589e04,_0x41d8da),_0x41d8da&&_0x1eefe6(_0x41d8da);},'onUpdateText':_0x444cdc,'onUpdateWrappingStyle':_0x7f8d64=>_0x2cee01(_0x7f8d64),'onOpenPanel':()=>{const _0x2c1859=_0x42a935;_0x44e8e0[_0x2c1859(0x362)](G['id'],{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5});},'onDelete':()=>{_0x44e8e0['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2ef3de,'drawings':[{'unitId':_0x2ef3de,'subUnitId':_0x293725,'drawingId':_0x17d1a5}]});}}),_0x482394[_0x42a935(0x169)]]});}function ha({variant:_0x86348,extend:_0x385342,..._0x53e7d3}){const _0x4f6a74=_0x2b58b8;let _0xb5f7bf=_0x9daf1d(_0x4f6a74(0x34b),{'x':'7','y':_0x4f6a74(0x1ef),'width':'6','height':'9','rx':'1','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':_0x4f6a74(0x22d),'strokeWidth':'1.2'});return _0x29ba63(_0x4f6a74(0x37b),{'aria-hidden':_0x4f6a74(0x1c8),'fill':_0x4f6a74(0x24c),'height':_0x4f6a74(0x1f3),'viewBox':_0x4f6a74(0x162),'width':_0x4f6a74(0x1f3),..._0x53e7d3,'children':[_0x86348===_0x4f6a74(0x1e5)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d('path',{'d':_0x4f6a74(0x2d6),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0x9daf1d('rect',{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x4f6a74(0x333),'stroke':'currentColor','strokeWidth':'1.2'})]}),_0x86348==='square'&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x2ef),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x114)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':'M2\x203h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':_0x4f6a74(0x1d4)}),_0xb5f7bf]}),_0x86348===_0x4f6a74(0x155)&&_0x29ba63(_0x18996c,{'children':[_0xb5f7bf,_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':_0x4f6a74(0x22d),'strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'})]}),_0x86348===_0x4f6a74(0x1d1)&&_0x29ba63(_0x18996c,{'children':[_0x9daf1d(_0x4f6a74(0x1e9),{'d':_0x4f6a74(0x18d),'stroke':'currentColor','strokeLinecap':_0x4f6a74(0x2b8),'strokeWidth':'1.2'}),_0x9daf1d('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x4f6a74(0x22d)})]})]});}const ga=_0x10ed21=>_0x30c780=>_0x9daf1d(ha,{..._0x30c780,'variant':_0x10ed21}),_a={'DocsShapeWrapInlineIcon':ga(_0x2b58b8(0x1e5)),'DocsShapeWrapSquareIcon':ga(_0x2b58b8(0x284)),'DocsShapeWrapTopBottomIcon':ga('top-bottom'),'DocsShapeWrapBehindTextIcon':ga(_0x2b58b8(0x155)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x2b58b8(0x1d1))},va=_0x4417c9(()=>{const _0x91215c=_0x2b58b8;let _0x528fe5=_0x16858b(X),_0x566d8f=_0x16858b(_0xc58a76),_0xd20f83=_0x16858b(_0x1f1d2f),_0x5ccc1e=_0x16858b(_0x5f3c0a),_0x1ba832=_0x17c0eb(()=>({'getShapeModel':(_0x17ade3,_0x36ff79,_0x23423f)=>_0x566d8f[_0x91215c(0x348)](_0x17ade3,_0x36ff79,_0x23423f),'getShapeData':(_0x100254,_0x4b1c46,_0x40dcc7)=>_0x566d8f[_0x91215c(0x152)](_0x100254,_0x4b1c46,_0x40dcc7),'getDrawingTransform':(_0x140815,_0x43490f,_0x201869)=>{const _0x3de243=_0x91215c;let _0x2d85c8=_0xd20f83[_0x3de243(0x247)]({'unitId':_0x140815,'subUnitId':_0x43490f,'drawingId':_0x201869});return _0x2d85c8==null?void 0x0:_0x2d85c8[_0x3de243(0x277)];},'updateShapeText':({unitId:_0x3ac69a,shapeId:_0x23d6e4,shapeText:_0x400b67,oldShapeText:_0x280d00})=>{const _0x4ab78a=_0x91215c;_0x5ccc1e[_0x4ab78a(0x362)](_0x544402['id'],{'unitId':_0x3ac69a,'shapeId':_0x23d6e4,'shapeData':{'shapeText':_0x400b67},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x280d00}}});},'updateHostSize':({unitId:_0x4794e9,subUnitId:_0x1c24a7,shapeId:_0x896b5,width:_0xe2d6d4,height:_0x5dbb29})=>{const _0x902888=_0x91215c;_0x5ccc1e[_0x902888(0x362)](_0x2f3fc9['id'],{'unitId':_0x4794e9,'subUnitId':_0x1c24a7,'drawings':[{'drawingId':_0x896b5,'key':_0x902888(0x25f),'value':{'width':_0xe2d6d4,'height':_0x5dbb29}}]});},'allowHostSizeShrink':({unitId:_0x3915bd,subUnitId:_0x41172f,shapeId:_0x1f71a6})=>_0x37cf60(_0x566d8f[_0x91215c(0x152)](_0x3915bd,_0x41172f,_0x1f71a6))}),[_0x5ccc1e,_0x566d8f,_0xd20f83]),_0x4cba35=_0x17c0eb(()=>({'viewportKeys':{'main':_0x59aab8[_0x91215c(0x359)]}}),[]);return _0x9daf1d(_0x4573e8,{'adapter':_0x1ba832,'editingService':_0x528fe5,'editorUnitId':kr,'positionOptions':_0x4cba35});});let ya=class extends _0x587b62{constructor(_0x34a911,_0xc7f499){const _0x2b3c79=_0x2b58b8;super(),this[_0x2b3c79(0x14c)]=_0x34a911,this['_iconManager']=_0xc7f499,this['_registerIcons'](),this[_0x2b3c79(0x122)]();}[_0x2b58b8(0x304)](){const _0x29cd43=_0x2b58b8;this['_iconManager']['has'](_0x29cd43(0x278))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)]['register']({'ObjectLayersIcon':_0x7b836})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2a7))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'BottomIcon':_0x30111e})),this[_0x29cd43(0x19b)]['has'](_0x29cd43(0x302))||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x28b))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)](_0x29cd43(0x2c3))||this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x29cd43(0x19b)][_0x29cd43(0x25c)]('TopmostIcon')||this[_0x29cd43(0x32d)](this['_iconManager'][_0x29cd43(0x109)]({'TopmostIcon':_0x37e31f})),this[_0x29cd43(0x32d)](this[_0x29cd43(0x19b)][_0x29cd43(0x109)](_a));}[_0x2b58b8(0x122)](){const _0x11a294=_0x2b58b8;this['disposeWithMe'](this[_0x11a294(0x14c)]['register'](W,la)),this['_registerObjectListPanel'](),this[_0x11a294(0x2f1)](),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Qr,ii)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Zr,ai)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)]($r,oi)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)]['register'](ei,si)),this[_0x11a294(0x32d)](this['_componentManager'][_0x11a294(0x109)](ti,ci)),this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](Ar,_0x2439df)),this[_0x11a294(0x267)](),this[_0x11a294(0x14c)]['hasDefault'](_0x2c1395)||this[_0x11a294(0x32d)](this[_0x11a294(0x14c)][_0x11a294(0x109)](_0x2c1395,Hr)),this['disposeWithMe'](this[_0x11a294(0x14c)][_0x11a294(0x109)](jr,va));}['_registerObjectListPanel'](){const _0x5e9121=_0x2b58b8;this[_0x5e9121(0x32d)](this[_0x5e9121(0x14c)][_0x5e9121(0x109)](Or,ia));}[_0x2b58b8(0x2f1)](){const _0x217622=_0x2b58b8;this[_0x217622(0x32d)](this[_0x217622(0x14c)][_0x217622(0x109)](da,ua));}[_0x2b58b8(0x267)](){const _0x43c47c=_0x2b58b8;this['disposeWithMe'](this[_0x43c47c(0x14c)][_0x43c47c(0x109)](Lr,$i)),this[_0x43c47c(0x32d)](this['_componentManager'][_0x43c47c(0x109)](Rr,ea));}};ya=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],ya);let ba=class extends _0x587b62{constructor(_0x281761,_0x3f4092,_0x33b4a4,_0x2dd95e,_0x501ecb,_0x3a0cb3,_0x2ac4c4,_0x18579b,_0x3ac66b,_0x56aa8b,_0x4d6443,_0x599ccc,_0x4b8896){const _0x2707a9=_0x2b58b8;super(),this[_0x2707a9(0x165)]=_0x281761,this[_0x2707a9(0x2a5)]=_0x3f4092,this[_0x2707a9(0x34e)]=_0x33b4a4,this[_0x2707a9(0x33f)]=_0x2dd95e,this[_0x2707a9(0x204)]=_0x501ecb,this[_0x2707a9(0x34d)]=_0x3a0cb3,this['_drawingManagerService']=_0x2ac4c4,this[_0x2707a9(0x2d0)]=_0x18579b,this[_0x2707a9(0x35c)]=_0x3ac66b,this['_contextService']=_0x56aa8b,this[_0x2707a9(0x1aa)]=_0x4d6443,this[_0x2707a9(0x121)]=_0x599ccc,this[_0x2707a9(0x1e8)]=_0x4b8896,J(this,_0x2707a9(0x320),null),J(this,_0x2707a9(0x15d),null),J(this,_0x2707a9(0x37e),!0x1),J(this,_0x2707a9(0x368),0x0),J(this,_0x2707a9(0x329),new Map()),J(this,_0x2707a9(0x313),new Map()),this[_0x2707a9(0x15b)](),this['disposeWithMe'](this[_0x2707a9(0x165)][_0x2707a9(0x228)](_0x19a5e9[_0x2707a9(0x234)])[_0x2707a9(0x138)](_0x927b67=>{const _0x1e7c7a=_0x2707a9;if(!_0x927b67){var _0x4a17c3;(_0x4a17c3=this[_0x1e7c7a(0x320)])==null||_0x4a17c3[_0x1e7c7a(0x12f)]();}})),this['_registerOperations'](),this[_0x2707a9(0x32d)](_0x59c4f1(this['_renderManagerService'],_0x19a5e9[_0x2707a9(0x234)],_0x57e90a=>this['_popupMenuListener'](_0x57e90a))),this[_0x2707a9(0x32d)](this[_0x2707a9(0x1aa)][_0x2707a9(0x371)]['subscribe'](_0x152931=>{const _0x1b2931=_0x2707a9;_0x152931&&this[_0x1b2931(0x1eb)](void 0x0,!0x0);})),this[_0x2707a9(0x32d)](this[_0x2707a9(0x121)][_0x2707a9(0x27f)][_0x2707a9(0x138)](()=>{const _0x3675ec=_0x2707a9;this[_0x3675ec(0x324)][_0x3675ec(0x262)]()[_0x3675ec(0x310)](_0x386fc6=>_0x386fc6[_0x3675ec(0x142)]===_0x11efaa['DRAWING_SHAPE']&&this['_univerInstanceService'][_0x3675ec(0x1b5)](_0x386fc6['unitId'])===_0x19a5e9[_0x3675ec(0x234)]&&!this['_canEditShape'](_0x386fc6[_0x3675ec(0x383)],_0x386fc6['drawingId']))&&(this[_0x3675ec(0x1eb)](void 0x0,!0x0),this[_0x3675ec(0x2f7)]());}));}[_0x2b58b8(0x2a6)](_0x843b4b,_0x3e6211,_0x4a03f4,_0x5cb7dc){const _0x5d62e8=_0x2b58b8;return[{'label':_0x5d62e8(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':_0x5cb7dc===_0x11efaa[_0x5d62e8(0x32b)]},{'label':_0x5d62e8(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x843b4b,'drawings':[{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4}]},'disable':!0x1},{'label':_0x5d62e8(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x843b4b,'subUnitId':_0x3e6211,'drawingId':_0x4a03f4},'disable':!0x1}];}[_0x2b58b8(0x15b)](){this['_menuManagerService']['mergeMenu'](Li);}[_0x2b58b8(0x325)](_0x7ce41,_0x30465c,_0x5d0423){const _0x7e9eef=_0x2b58b8;let _0xfd7bd3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x1ac)](_0x7ce41,_0x30465c,_0x5d0423),_0x5f07a3=this[_0x7e9eef(0x33f)][_0x7e9eef(0x152)](_0x7ce41,_0x30465c,_0x5d0423);return _0xfd7bd3===void 0x0||_0x5f07a3===void 0x0?null:{'shapeData':_0x5f07a3,'shapeId':_0x5d0423,'shapeType':_0xfd7bd3,'unitId':_0x7ce41,'subUnitId':_0x30465c,'version':this[_0x7e9eef(0x368)],'disableShapeOption':!0x1};}[_0x2b58b8(0x1eb)](_0xbc3a94,_0x1e77a5=!0x1){const _0x569339=_0x2b58b8;if(_0xbc3a94==null){[...this[_0x569339(0x329)]['keys']()][_0x569339(0x30e)](_0x2e673e=>this[_0x569339(0x1eb)](_0x2e673e,_0x1e77a5));return;}let _0xaaa34e=this[_0x569339(0x329)][_0x569339(0x113)](_0xbc3a94);if(_0xaaa34e){for(let _0x2bb704=_0xaaa34e[_0x569339(0x364)]-0x1;_0x2bb704>=0x0;--_0x2bb704){let _0x931a3a=_0xaaa34e[_0x2bb704];(_0x1e77a5||_0x931a3a[_0x569339(0x1a0)]())&&(_0x931a3a['dispose'](),_0xaaa34e[_0x569339(0x35b)](_0x2bb704,0x1));}_0xaaa34e['length']===0x0&&(this['_disposePopupsByUnit'][_0x569339(0x1a2)](_0xbc3a94),this['_popupTargetKeys'][_0x569339(0x1a2)](_0xbc3a94));}}['_getDisposePopups'](_0x3efbc){const _0x390981=_0x2b58b8;let _0x2910a2=this[_0x390981(0x329)][_0x390981(0x113)](_0x3efbc);if(_0x2910a2)return _0x2910a2;let _0x498689=[];return this[_0x390981(0x329)]['set'](_0x3efbc,_0x498689),_0x498689;}[_0x2b58b8(0x34f)](_0x5990b1){const _0x21e4a9=_0x2b58b8;var _0x52afb2;let _0x9e8597=new _0x5570bd(),_0x151299=(_0x52afb2=this[_0x21e4a9(0x35c)]['getAllRenderersOfType'](_0x19a5e9['UNIVER_DOC'])[_0x21e4a9(0x30b)](_0x571d37=>_0x571d37[_0x21e4a9(0x10b)]['getTransformerByCreate']()===_0x5990b1))==null?void 0x0:_0x52afb2['unitId'];return _0x151299?(_0x9e8597['add'](_0x5990b1[_0x21e4a9(0x193)][_0x21e4a9(0x138)](()=>this[_0x21e4a9(0x1d0)](_0x5990b1,_0x151299))),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x365)][_0x21e4a9(0x138)](()=>{const _0x595a78=_0x21e4a9;this[_0x595a78(0x1eb)](_0x151299),queueMicrotask(()=>{const _0x198709=_0x595a78;_0x5990b1[_0x198709(0x11d)]()[_0x198709(0x25f)]>0x0||!this[_0x198709(0x324)]['getFocusDrawings']()['some'](_0x2c9c13=>_0x2c9c13[_0x198709(0x383)]===_0x151299)||(this[_0x198709(0x2ff)][_0x198709(0x2d1)](_0x1ec544,!0x1),this[_0x198709(0x324)][_0x198709(0x2e5)](null));});})),_0x9e8597[_0x21e4a9(0x11a)](_0x5990b1[_0x21e4a9(0x37a)][_0x21e4a9(0x138)](()=>{this['_clearPopups'](_0x151299,!0x0);})),_0x9e8597):_0x9e8597;}[_0x2b58b8(0x1d0)](_0x1baaf6,_0x567849){const _0x3cfe1a=_0x2b58b8;let _0x6b1f5f=_0x1baaf6[_0x3cfe1a(0x11d)]();if(this[_0x3cfe1a(0x37e)]){this[_0x3cfe1a(0x1eb)](_0x567849,!0x0);return;}if(_0x6b1f5f['size']>0x1){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let _0x1a0060=_0x6b1f5f[_0x3cfe1a(0x199)]()[_0x3cfe1a(0x225)]()[_0x3cfe1a(0x1dc)];if(!_0x1a0060){this['_clearPopups'](_0x567849);return;}let _0x4abbaa=this['_drawingManagerService']['getDrawingOKey'](_0x1a0060[_0x3cfe1a(0x11b)]);if(!_0x4abbaa||_0x4abbaa[_0x3cfe1a(0x142)]!==_0x11efaa[_0x3cfe1a(0x14f)]){this[_0x3cfe1a(0x1eb)](_0x567849);return;}let {unitId:_0x4a8731,subUnitId:_0x4d1f7e,drawingId:_0x110e85}=_0x4abbaa;if(!this[_0x3cfe1a(0x1f1)](_0x4a8731,_0x110e85)){this['_clearPopups'](_0x567849,!0x0);return;}let _0x31574c=this[_0x3cfe1a(0x325)](_0x4a8731,_0x4d1f7e,_0x110e85);if(!_0x31574c){this['_clearPopups'](_0x567849);return;}let _0x4a4aca=this[_0x3cfe1a(0x329)][_0x3cfe1a(0x113)](_0x567849),_0x4d60ec=_0x4a8731+':'+_0x4d1f7e+':'+_0x110e85;if(this[_0x3cfe1a(0x313)]['get'](_0x567849)===_0x4d60ec&&_0x4a4aca!=null&&_0x4a4aca[_0x3cfe1a(0x364)])return;this[_0x3cfe1a(0x1eb)](_0x567849);let _0x3bdc4d=this[_0x3cfe1a(0x35c)][_0x3cfe1a(0x1c9)](_0x4a8731),_0x158120=((_0x3bdc4d==null?void 0x0:_0x3bdc4d[_0x3cfe1a(0x29a)])===!0x1?_0x3bdc4d[_0x3cfe1a(0x18b)](_0x44b27e):this[_0x3cfe1a(0x2d0)])[_0x3cfe1a(0x294)](_0x1a0060,this[_0x3cfe1a(0x305)](_0x31574c,()=>this['_clearPopups'](_0x567849,!0x0)),_0x4a8731);this[_0x3cfe1a(0x32d)](_0x158120),this[_0x3cfe1a(0x171)](_0x567849)[_0x3cfe1a(0x335)](_0x158120),this['_popupTargetKeys'][_0x3cfe1a(0x1dd)](_0x567849,_0x4d60ec),this['_drawingManagerService'][_0x3cfe1a(0x262)]()['some'](_0x4c643b=>_0x4c643b[_0x3cfe1a(0x383)]===_0x4a8731&&_0x4c643b[_0x3cfe1a(0x21e)]===_0x4d1f7e&&_0x4c643b['drawingId']===_0x110e85)||this[_0x3cfe1a(0x324)]['focusDrawing']([{'unitId':_0x4a8731,'subUnitId':_0x4d1f7e,'drawingId':_0x110e85}]);}[_0x2b58b8(0x305)](_0x52f97,_0x57b116){const _0x2d2add=_0x2b58b8;let {unitId:_0x2f3e6c,subUnitId:_0x2c3b33,shapeId:_0x3e9310}=_0x52f97,_0xb9b053={'hostType':_0x19a5e9[_0x2d2add(0x234)],'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'shapeId':_0x3e9310};return{'componentKey':da,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0x52f97[_0x2d2add(0x1d6)],'onText':()=>{const _0x549315=_0x2d2add;_0x57b116(),this[_0x549315(0x1e8)][_0x549315(0x2ca)](_0x549315(0x10d),_0xb9b053);},'onStyle':()=>{const _0x5df95b=_0x2d2add;_0x57b116(),this[_0x5df95b(0x1e8)][_0x5df95b(0x2ca)]('style',_0xb9b053);},'onDelete':()=>this[_0x2d2add(0x34d)]['executeCommand'](_0x6ceb84['id'],{'unitId':_0x2f3e6c,'drawings':[{'unitId':_0x2f3e6c,'subUnitId':_0x2c3b33,'drawingId':_0x3e9310}]})}};}[_0x2b58b8(0x1f1)](_0x4aabd4,_0x4837ab){const _0x469e55=_0x2b58b8;let _0x3558d8=this[_0x469e55(0x165)][_0x469e55(0x283)](_0x4aabd4,_0x19a5e9[_0x469e55(0x234)]);if(!_0x3558d8)return!0x1;let _0x33948e=_0x384956(_0x3558d8,_0x4837ab);return _0x353611(this[_0x469e55(0x121)],_0x4aabd4,[..._0x4fa6cb(_0x3558d8,_0x33948e,_0x469e55(0x33e),_0x4837ab),_0x418902(_0x33948e,'drawing',_0x4837ab)]);}['_registerOperations'](){const _0x3ff816=_0x2b58b8;this[_0x3ff816(0x32d)](this[_0x3ff816(0x34d)]['onCommandExecuted'](_0x123a10=>{const _0x49a44e=_0x3ff816;if(_0x123a10['id']===G['id']){let {unitId:_0x23ad05,subUnitId:_0x678a48,drawingId:_0x471c35}=_0x123a10[_0x49a44e(0x339)];this[_0x49a44e(0x368)]+=0x1,this[_0x49a44e(0x15d)]=this[_0x49a44e(0x325)](_0x23ad05,_0x678a48,_0x471c35),this['_clearPopups'](void 0x0,!0x0),this[_0x49a44e(0x2eb)]();}if(_0x123a10['id']===Bi['id']&&(this[_0x49a44e(0x15d)]=null,this['_closeShapeEditPanel']()),_0x123a10['id']===_0x3d4cfc['id']){var _0x500244;let {unitId:_0x4264e8,shapeId:_0x3c87c1}=_0x123a10[_0x49a44e(0x339)];if(((_0x500244=this['_activeShapeInfo'])==null?void 0x0:_0x500244['shapeId'])===_0x3c87c1){let _0x2477a9=this['_getShapeInfo'](_0x4264e8,this[_0x49a44e(0x15d)]['subUnitId'],_0x3c87c1);_0x2477a9&&(this[_0x49a44e(0x368)]+=0x1,_0x2477a9[_0x49a44e(0x179)]=this['_shapeEditPanelVersion'],this[_0x49a44e(0x15d)]=_0x2477a9,this[_0x49a44e(0x37e)]&&this[_0x49a44e(0x2eb)]());}}})),this[_0x3ff816(0x32d)](this[_0x3ff816(0x324)][_0x3ff816(0x2f3)][_0x3ff816(0x138)](_0x344942=>{const _0x39964f=_0x3ff816;if(!this[_0x39964f(0x37e)])return;if(_0x344942['length']===0x0){this['_activeShapeInfo']=null,this[_0x39964f(0x2f7)]();return;}if(_0x344942[_0x39964f(0x364)]===0x1&&_0x344942[0x0][_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]&&(this[_0x39964f(0x368)]+=0x1,this[_0x39964f(0x15d)]=this[_0x39964f(0x325)](_0x344942[0x0]['unitId'],_0x344942[0x0]['subUnitId'],_0x344942[0x0]['drawingId']),this[_0x39964f(0x15d)])){this[_0x39964f(0x2eb)]();return;}let _0x43770a=_0x344942[_0x39964f(0x16f)](_0x3679ae=>_0x3679ae[_0x39964f(0x142)]===_0x11efaa[_0x39964f(0x14f)]);if(this[_0x39964f(0x368)]+=0x1,this['_activeShapeInfo']=this[_0x39964f(0x325)](_0x344942[0x0][_0x39964f(0x383)],_0x344942[0x0][_0x39964f(0x21e)],_0x344942[0x0][_0x39964f(0x160)]),this['_activeShapeInfo']&&_0x344942[_0x39964f(0x364)]>0x1&&_0x43770a[_0x39964f(0x364)]===_0x344942[_0x39964f(0x364)]){this['_openShapeEditPanel']();return;}if(this[_0x39964f(0x15d)]&&_0x43770a[_0x39964f(0x364)]!==_0x344942[_0x39964f(0x364)]){this[_0x39964f(0x15d)]['disableShapeOption']=!0x0,this['_openShapeEditPanel']();return;}this[_0x39964f(0x2f7)]();}));}[_0x2b58b8(0x2eb)](){const _0x17fe4e=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x17fe4e(0x320)]=this[_0x17fe4e(0x2a5)][_0x17fe4e(0x2ca)]({'id':W,'header':{'title':this['_localeService']['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x45391b=_0x17fe4e;this[_0x45391b(0x324)][_0x45391b(0x2e5)](null),this['_contextService'][_0x45391b(0x2d1)](_0x1ec544,!0x1),this[_0x45391b(0x320)]=null;}}),this[_0x17fe4e(0x37e)]=!0x0);}[_0x2b58b8(0x2f7)](){const _0x40e7d4=_0x2b58b8;this[_0x40e7d4(0x37e)]=!0x1,this[_0x40e7d4(0x2a5)][_0x40e7d4(0x214)](W),this['_sidebarDisposable']=null,this['_contextService']['setContextValue'](_0x1ec544,!0x1),this[_0x40e7d4(0x324)]['focusDrawing'](null);}};ba=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515),K(0xc,_0xbdb0e2(_0x4b38a4))],ba);const xa=_0x2b58b8(0x2b1);let Sa=class extends _0x587b62{constructor(_0x5e74c5,_0x1edb81,_0x5d0bf1,_0x496b16,_0x25dbb4,_0x2e3bdb){const _0x11b257=_0x2b58b8;super(),this[_0x11b257(0x34e)]=_0x5e74c5,this[_0x11b257(0x249)]=_0x1edb81,this['_drawingManagerService']=_0x5d0bf1,this[_0x11b257(0x165)]=_0x496b16,this[_0x11b257(0x35c)]=_0x25dbb4,this[_0x11b257(0x22f)]=_0x2e3bdb,J(this,_0x11b257(0x377),!0x1),this[_0x11b257(0x34e)][_0x11b257(0x244)](Ii),this['disposeWithMe'](_0x390b1(this['_drawingManagerService'][_0x11b257(0x2f3)][_0x11b257(0x138)](()=>this[_0x11b257(0x132)]()))),this[_0x11b257(0x132)]();}[_0x2b58b8(0x12f)](){const _0x1ebc33=_0x2b58b8;this[_0x1ebc33(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x1ebc33(0x2f9)](),super[_0x1ebc33(0x12f)]();}[_0x2b58b8(0x132)](){const _0x54ba1b=_0x2b58b8;var _0x137e4d;let _0xc4d82e=this['_drawingManagerService'][_0x54ba1b(0x262)](),_0x49c827=_0xc4d82e['length']===0x1?_0xc4d82e[0x0]:void 0x0;if((_0x49c827==null?void 0x0:_0x49c827[_0x54ba1b(0x142)])!==_0x11efaa['DRAWING_SHAPE']||this['_univerInstanceService']['getUnitType'](_0x49c827['unitId'])!==_0x19a5e9[_0x54ba1b(0x234)]){this[_0x54ba1b(0x22f)]['setFallbackVisible'](!0x1,xa),this[_0x54ba1b(0x2f9)]();return;}let _0x191585=(_0x137e4d=this[_0x54ba1b(0x35c)][_0x54ba1b(0x1c9)](_0x49c827['unitId']))==null?void 0x0:_0x137e4d['engine']['getCanvasElement'](),_0x5a8b5e=_0x5387c5(_0x191585)==='isolated';if(this[_0x54ba1b(0x22f)][_0x54ba1b(0x2a9)](_0x5a8b5e,xa),_0x5a8b5e){this[_0x54ba1b(0x2f9)]();return;}this['_visible']=!0x0,this[_0x54ba1b(0x249)][_0x54ba1b(0x287)](Dr,{'activate':!0x0});}[_0x2b58b8(0x2f9)](){const _0x3dada0=_0x2b58b8;this[_0x3dada0(0x377)]&&(this[_0x3dada0(0x377)]=!0x1,this[_0x3dada0(0x249)]['hideContextualTab'](Dr),this[_0x3dada0(0x249)][_0x3dada0(0x184)]([]));}};Sa=q([K(0x0,_0x955a33),K(0x1,_0x16839e),K(0x2,_0x1f1d2f),K(0x3,_0x52a285),K(0x4,_0x5479fc),K(0x5,_0xbdb0e2(_0x54ad5c))],Sa);let Ca=class extends _0x587b62{constructor(_0x2a8c6b,_0x28ee80,_0x288800,_0x39d526){const _0x30bcdd=_0x2b58b8;super(),this[_0x30bcdd(0x34d)]=_0x2a8c6b,this[_0x30bcdd(0x35c)]=_0x28ee80,this[_0x30bcdd(0x324)]=_0x288800,this[_0x30bcdd(0x212)]=_0x39d526,this['_initialize']();}['_initialize'](){const _0x5e75a4=_0x2b58b8;this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x2f8)]['subscribe'](_0x151d78=>this[_0x5e75a4(0x1b2)](_0x151d78))),this[_0x5e75a4(0x32d)](this[_0x5e75a4(0x324)][_0x5e75a4(0x226)][_0x5e75a4(0x138)](_0x5ddec4=>{const _0x225aeb=_0x5e75a4;_0x5ddec4[_0x225aeb(0x30e)](_0x19e1f0=>this['_updateShape'](_0x19e1f0));})),this[_0x5e75a4(0x32d)](this['_commandService']['onCommandExecuted'](_0x3a2de2=>{const _0x381fcd=_0x5e75a4;if(_0x3a2de2['id']!==_0x3d4cfc['id'])return;let {unitId:_0x322c2e,shapeId:_0x3f5228}=_0x3a2de2[_0x381fcd(0x339)];this[_0x381fcd(0x1cb)]({'unitId':_0x322c2e,'subUnitId':_0x322c2e,'drawingId':_0x3f5228});}));}[_0x2b58b8(0x1b2)](_0x22c10b){_0x22c10b['forEach'](_0x110751=>{const _0x7cf17c=_0x73b8;let _0x1b55b9=this[_0x7cf17c(0x12a)](_0x110751[_0x7cf17c(0x383)]);if(!_0x1b55b9)return;let _0x2f7d1a=this[_0x7cf17c(0x324)]['getDrawingByParam'](_0x110751);(_0x2f7d1a==null?void 0x0:_0x2f7d1a['drawingType'])===_0x11efaa[_0x7cf17c(0x14f)]&&this['_docDrawingShapeRenderController'][_0x7cf17c(0x1ce)](_0x2f7d1a,_0x1b55b9[_0x7cf17c(0x10b)]);});}[_0x2b58b8(0x13d)](_0x1c3e11){const _0x303ca1=_0x2b58b8;let _0x2b8e8f=this[_0x303ca1(0x324)][_0x303ca1(0x247)](_0x1c3e11);if((_0x2b8e8f==null?void 0x0:_0x2b8e8f[_0x303ca1(0x142)])!==_0x11efaa['DRAWING_SHAPE'])return;let _0xdb6979=this[_0x303ca1(0x12a)](_0x1c3e11[_0x303ca1(0x383)]);if(!_0xdb6979||_0x2b8e8f['transform']==null)return;let _0x46009f=_0x3ac7e0(_0x1c3e11),_0xe0fe10=_0xdb6979[_0x303ca1(0x10b)][_0x303ca1(0x202)](_0x46009f);_0xe0fe10&&(_0xe0fe10[_0x303ca1(0x2fa)](_0x2b8e8f['srcRect']),_0xe0fe10[_0x303ca1(0x1df)](_0x2b8e8f[_0x303ca1(0x17e)]),_0xe0fe10[_0x303ca1(0x2ee)](!0x0));}['_refreshShapeData'](_0x33f6e5){const _0x82d73b=_0x2b58b8;let _0x2af9ae=this[_0x82d73b(0x12a)](_0x33f6e5[_0x82d73b(0x383)]);if(!_0x2af9ae)return;let _0x821294=_0x3ac7e0(_0x33f6e5),_0x29ff4b=_0x2af9ae['scene'][_0x82d73b(0x202)](_0x821294);_0x29ff4b&&(this[_0x82d73b(0x212)]['refreshShapeFillImage'](_0x29ff4b),this['_docDrawingShapeRenderController'][_0x82d73b(0x224)](_0x29ff4b,{'unitId':_0x33f6e5[_0x82d73b(0x383)],'subUnitId':_0x33f6e5[_0x82d73b(0x21e)],'shapeId':_0x33f6e5[_0x82d73b(0x160)]}),_0x29ff4b[_0x82d73b(0x2ee)](!0x0));}['_getSceneByUnitId'](_0x2eaff6){const _0x4069ba=_0x2b58b8;if(_0x2eaff6==null)return null;let _0x4e62a8=this[_0x4069ba(0x35c)][_0x4069ba(0x1c9)](_0x2eaff6),_0x32dd8b=_0x4e62a8==null?void 0x0:_0x4e62a8[_0x4069ba(0x10b)];return _0x32dd8b==null?null:{'scene':_0x32dd8b};}};Ca=q([K(0x0,_0x5f3c0a),K(0x1,_0x5479fc),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(Z))],Ca);let Q=class extends _0x2f0f12{constructor(_0xd1be00=Hi,_0x5f1c78,_0x734bbf,_0x29c18c,_0x1509a4){const _0x60ccf5=_0x2b58b8;super(),this[_0x60ccf5(0x270)]=_0xd1be00,this[_0x60ccf5(0x181)]=_0x5f1c78,this[_0x60ccf5(0x34d)]=_0x734bbf,this['_configService']=_0x29c18c,this[_0x60ccf5(0x35c)]=_0x1509a4;let {menu:_0x14d13e,..._0x4e2c09}=_0x4cbbbe({},Hi,this['_config']);_0x14d13e&&this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](_0x60ccf5(0x157),_0x14d13e,{'merge':!0x0}),this[_0x60ccf5(0x25d)][_0x60ccf5(0x154)](Vi,_0x4e2c09),[U,Bi,G,Mr,Pr,Fr][_0x60ccf5(0x30e)](_0x2bc1d0=>this[_0x60ccf5(0x32d)](this[_0x60ccf5(0x34d)]['registerCommand'](_0x2bc1d0)));}[_0x2b58b8(0x1a6)](){const _0x467d3a=_0x2b58b8;let _0x1a71d7=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x4136fc(this['_injector'],_0x1a71d7),this[_0x467d3a(0x181)]['get'](ya);}['onReady'](){const _0x5deb2c=_0x2b58b8;this[_0x5deb2c(0x32d)](this[_0x5deb2c(0x35c)][_0x5deb2c(0x218)](_0x19a5e9[_0x5deb2c(0x234)],[Ji])),_0x44a503(this[_0x5deb2c(0x181)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x2b58b8(0x326),_0x19a5e9[_0x2b58b8(0x234)]),J(Q,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J(Q,_0x2b58b8(0x151),Ri),J(Q,_0x2b58b8(0x179),zi),Q=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x10c85b,_0xd9d11,_0x4a5d16,_0x4f835e,_0x5994c3,_0x33aa0d,_0x3b9966),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],Q);let wa=class extends _0x587b62{constructor(_0x3c4e60,_0x2cf552){const _0x30f7fb=_0x2b58b8;super(),this[_0x30f7fb(0x14c)]=_0x3c4e60,this[_0x30f7fb(0x19b)]=_0x2cf552,this[_0x30f7fb(0x304)](),this[_0x30f7fb(0x122)]();}[_0x2b58b8(0x304)](){const _0x31338d=_0x2b58b8;this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x278))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'ObjectLayersIcon':_0x7b836})),this[_0x31338d(0x19b)]['has'](_0x31338d(0x2a7))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'BottomIcon':_0x30111e})),this['_iconManager'][_0x31338d(0x25c)]('MoveDownIcon')||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveDownIcon':_0x23588f})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x28b))||this['disposeWithMe'](this[_0x31338d(0x19b)][_0x31338d(0x109)]({'MoveUpIcon':_0x50d193})),this[_0x31338d(0x19b)][_0x31338d(0x25c)]('ShapeFormatSettingIcon')||this[_0x31338d(0x32d)](this['_iconManager'][_0x31338d(0x109)]({'ShapeFormatSettingIcon':_0x38092e})),this[_0x31338d(0x19b)][_0x31338d(0x25c)](_0x31338d(0x1ba))||this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register']({'TopmostIcon':_0x37e31f})),this[_0x31338d(0x32d)](this[_0x31338d(0x19b)]['register'](_a));}[_0x2b58b8(0x122)](){const _0x528df0=_0x2b58b8;this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](W,sa)),this['_registerObjectListPanel'](),this[_0x528df0(0x2f1)](),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Qr,ii)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)]['register'](Zr,ai)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)]($r,oi)),this['disposeWithMe'](this[_0x528df0(0x14c)][_0x528df0(0x109)](ei,si)),this[_0x528df0(0x32d)](this['_componentManager'][_0x528df0(0x109)](ti,ci)),this['disposeWithMe'](this['_componentManager']['register'](Ar,_0x2439df)),this[_0x528df0(0x267)](),this[_0x528df0(0x14c)][_0x528df0(0x35a)](_0x2c1395)||this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](_0x2c1395,Hr)),this[_0x528df0(0x32d)](this[_0x528df0(0x14c)][_0x528df0(0x109)](jr,va));}[_0x2b58b8(0x2c0)](){const _0x87c3b0=_0x2b58b8;this[_0x87c3b0(0x32d)](this['_componentManager']['register'](Or,ra));}['_registerFloatingToolbar'](){const _0x5a0c8f=_0x2b58b8;this[_0x5a0c8f(0x32d)](this['_componentManager'][_0x5a0c8f(0x109)](da,pa));}[_0x2b58b8(0x267)](){const _0x3cec8a=_0x2b58b8;this[_0x3cec8a(0x32d)](this[_0x3cec8a(0x14c)][_0x3cec8a(0x109)](Lr,Ur)),this[_0x3cec8a(0x32d)](this['_componentManager'][_0x3cec8a(0x109)](Rr,Vr));}};function _0x73b8(_0x392d80,_0x2066fc){_0x392d80=_0x392d80-0x105;const _0x3bfd31=_0x3bfd();let _0x73b804=_0x3bfd31[_0x392d80];return _0x73b804;}wa=q([K(0x0,_0xbdb0e2(_0x391057)),K(0x1,_0xbdb0e2(_0x3fa0b0))],wa);let Ta=class extends _0x587b62{constructor(_0x3b92d1,_0x3fa2ca,_0x5c9f34,_0x5b0abb,_0x2e20b5,_0x55e7ae,_0x1c5ade,_0x23f16c,_0x421e7b){const _0x165e2f=_0x2b58b8;super();let _0x332297=_0x3af52b=>{const _0x2c797a=_0x73b8;let _0x317a92=_0x55e7ae[_0x2c797a(0x283)](_0x3af52b['unitId'],_0x19a5e9[_0x2c797a(0x234)]),_0x2e2ad0=_0x317a92?_0x384956(_0x317a92,_0x3af52b['shapeId']):'';return!!_0x317a92&&_0x353611(_0x23f16c,_0x3af52b['unitId'],[_0x418902(_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)]),..._0x4fa6cb(_0x317a92,_0x2e2ad0,'drawing',_0x3af52b[_0x2c797a(0x1a7)])]);},_0x3cf0fb=_0x28dc51=>_0x28dc51[_0x165e2f(0x1a7)]&&_0x332297(_0x28dc51)?_0x5c9f34[_0x165e2f(0x152)](_0x28dc51[_0x165e2f(0x383)],_0x28dc51['shapeId'])??null:null,_0x3b32d2=()=>{const _0x59e8aa=_0x165e2f;let _0x8464be=_0x2e20b5[_0x59e8aa(0x262)](),_0x1d289b=_0x8464be[_0x59e8aa(0x364)]===0x1?_0x8464be[0x0]:null;return(_0x1d289b==null?void 0x0:_0x1d289b[_0x59e8aa(0x142)])===_0x11efaa['DRAWING_SHAPE']&&_0x1d289b[_0x59e8aa(0x383)]===_0x3b92d1[_0x59e8aa(0x383)]?{'unitId':_0x1d289b[_0x59e8aa(0x383)],'subUnitId':_0x1d289b[_0x59e8aa(0x21e)],'shapeId':_0x1d289b[_0x59e8aa(0x160)]}:null;};this[_0x165e2f(0x32d)](_0x3dbd87(_0x3b92d1,_0x3fa2ca,{'changes$':_0x3f58bc(_0x2e20b5[_0x165e2f(0x2f3)],_0x5b0abb['editingParams$'],_0x23f16c[_0x165e2f(0x27f)]),'isActive':()=>{const _0x34728f=_0x165e2f;var _0x237122;return((_0x237122=_0x55e7ae['getFocusedUnit']())==null?void 0x0:_0x237122['getUnitId']())===_0x3b92d1['unitId']&&!_0x1c5ade[_0x34728f(0x237)](_0x386d22)&&_0x2e20b5[_0x34728f(0x262)]()['some'](_0x2cf2cb=>_0x2cf2cb[_0x34728f(0x383)]===_0x3b92d1['unitId']);},'getSelectedTarget':_0x3b32d2,'getSource':()=>{let _0x39fec1=_0x3b32d2();return _0x39fec1?_0x3cf0fb(_0x39fec1):null;},'getTarget':_0x4a8d53=>{const _0x9413=_0x165e2f;let _0x1f28e9=_0x3b92d1[_0x9413(0x10b)][_0x9413(0x2e2)](new _0xd9a358(_0x4a8d53[_0x9413(0x137)],_0x4a8d53['offsetY']));if(!(_0x1f28e9 instanceof Y))return null;let _0x3c1aec={'unitId':_0x3b92d1[_0x9413(0x383)],'subUnitId':_0x3b92d1[_0x9413(0x383)],'shapeId':_0x1f28e9['shapeId']};return _0x332297(_0x3c1aec)?_0x3c1aec:null;},'getShape':_0x3cf0fb,'update':(_0x4a1c0c,_0x41da53,_0x46df68)=>_0x421e7b[_0x165e2f(0x362)](_0x544402['id'],{..._0x4a1c0c,'shapeData':_0x46df68,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x41da53}})}));}};Ta=q([K(0x1,_0xbdb0e2(_0x292d84)),K(0x2,_0xbdb0e2(_0xc58a76)),K(0x3,_0xbdb0e2(X)),K(0x4,_0x1f1d2f),K(0x5,_0x52a285),K(0x6,_0x311686),K(0x7,_0x562515),K(0x8,_0x5f3c0a)],Ta);function Ea(_0x10589e,_0x28148e){const _0x2ad5dd=_0x2b58b8;let _0x5f463f=_0x10589e;for(;_0x5f463f;){if(_0x28148e(_0x5f463f))return _0x5f463f;_0x5f463f=typeof _0x5f463f[_0x2ad5dd(0x1d8)]==_0x2ad5dd(0x195)?_0x5f463f[_0x2ad5dd(0x1d8)]():null;}return null;}function Da(_0x2601e9){return Ea(_0x2601e9,_0x1f7b0b=>_0x1f7b0b instanceof Y);}function Oa(_0x4d0000){const _0x40293a=_0x2b58b8;return(_0x4d0000==null?void 0x0:_0x4d0000[_0x40293a(0x328)])==null;}let ka=class extends _0x587b62{constructor(_0x124265,_0x5448e7,_0x199e7e,_0x525c51,_0x58641a){const _0x2717ef=_0x2b58b8;super(),this[_0x2717ef(0x37f)]=_0x124265,this['_shapeTextEditingService']=_0x5448e7,this[_0x2717ef(0x324)]=_0x199e7e,this[_0x2717ef(0x164)]=_0x525c51,this['_docsShapeService']=_0x58641a,J(this,_0x2717ef(0x106),null),J(this,_0x2717ef(0x216),null),this[_0x2717ef(0x27c)](),this['_initSelection'](),this[_0x2717ef(0x2e6)]();}[_0x2b58b8(0x12f)](){this['_endLayoutInteraction'](),super['dispose']();}['_initEvents'](){const _0x33ce20=_0x2b58b8;let {scene:_0x5030f9}=this[_0x33ce20(0x37f)];this['disposeWithMe'](_0x5030f9[_0x33ce20(0x369)][_0x33ce20(0x321)]((_0x9ac695,_0x2e9e02)=>{const _0x327e86=_0x33ce20;let {offsetX:_0x2fcfdb,offsetY:_0x2710fb}=_0x9ac695,_0x3cc421=_0xd9a358[_0x327e86(0x1ca)]([_0x2fcfdb,_0x2710fb]),_0x19f6a0=Da(_0x5030f9[_0x327e86(0x2e2)](_0x3cc421))??this[_0x327e86(0x2e0)](_0x3cc421);if(_0x19f6a0){_0x2e9e02[_0x327e86(0x158)]();let _0x3ba83a=this[_0x327e86(0x33f)]['getShapeModel'](_0x19f6a0[_0x327e86(0x383)],_0x19f6a0[_0x327e86(0x21e)],_0x19f6a0[_0x327e86(0x1a7)]);if(!_0x3ba83a||_0x3a6b70(_0x3ba83a[_0x327e86(0x11f)]())||!Oa(_0x3ba83a[_0x327e86(0x170)]()))return;this[_0x327e86(0x1aa)][_0x327e86(0x2e8)]({'visible':!0x0,'unitId':_0x19f6a0[_0x327e86(0x383)],'subUnitId':_0x19f6a0[_0x327e86(0x21e)],'shapeId':_0x19f6a0[_0x327e86(0x1a7)],'shapeKey':_0x19f6a0[_0x327e86(0x11b)]});}}));}[_0x2b58b8(0x2e0)](_0xb25c9c){const _0x557774=_0x2b58b8;let {scene:_0x2ee3b3}=this[_0x557774(0x37f)];return this[_0x557774(0x324)][_0x557774(0x262)]()['map'](_0x2195bd=>_0x2ee3b3[_0x557774(0x202)](_0x3ac7e0(_0x2195bd)))[_0x557774(0x30b)](_0x241d89=>_0x241d89 instanceof Y&&_0x241d89[_0x557774(0x299)](_0xb25c9c))??null;}['_initSelection'](){const _0x39b96f=_0x2b58b8;this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)][_0x39b96f(0x2f3)]['subscribe'](_0x160ce9=>{const _0x571ece=_0x39b96f;if(_0x160ce9[_0x571ece(0x364)]===0x1){let _0x3ef938=_0x160ce9[0x0],_0x3fca97=this[_0x571ece(0x324)][_0x571ece(0x247)](_0x3ef938);if((_0x3fca97==null?void 0x0:_0x3fca97[_0x571ece(0x142)])===_0x11efaa['DRAWING_SHAPE']){let _0x4b9a33=this['_shapeTextEditingService'][_0x571ece(0x2c5)]();if((_0x4b9a33==null?void 0x0:_0x4b9a33[_0x571ece(0x1a7)])===_0x3ef938[_0x571ece(0x160)]&&_0x4b9a33['visible'])return;_0x3a6b70(this[_0x571ece(0x33f)][_0x571ece(0x11f)](_0x3ef938[_0x571ece(0x383)],_0x3ef938[_0x571ece(0x21e)],_0x3ef938[_0x571ece(0x160)]))&&this[_0x571ece(0x1aa)][_0x571ece(0x2e8)](null);}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();}else this[_0x571ece(0x1aa)][_0x571ece(0x26e)]();})),this[_0x39b96f(0x32d)](this[_0x39b96f(0x324)]['remove$'][_0x39b96f(0x138)](_0x47349d=>{const _0x397196=_0x39b96f;let _0xbc1219=this[_0x397196(0x1aa)][_0x397196(0x2c5)]();_0xbc1219&&_0x47349d[_0x397196(0x310)](_0x27bd3e=>_0x27bd3e[_0x397196(0x160)]===_0xbc1219['shapeId'])&&this[_0x397196(0x1aa)][_0x397196(0x2e8)](null);}));}[_0x2b58b8(0x2e6)](){const _0x5f34c3=_0x2b58b8;this[_0x5f34c3(0x32d)](this['_shapeTextEditingService'][_0x5f34c3(0x371)][_0x5f34c3(0x138)](_0x4a06e1=>{const _0x29304e=_0x5f34c3;(_0x4a06e1==null?void 0x0:_0x4a06e1[_0x29304e(0x306)])===!0x0&&_0x4a06e1['unitId']===this['_context'][_0x29304e(0x383)]?this[_0x29304e(0x216)]??=this[_0x29304e(0x164)][_0x29304e(0x239)]():this[_0x29304e(0x292)]();let {scene:_0x8645a9}=this['_context'];if(this['_lastEditingShapeKey']){let _0x59dc8a=_0x8645a9['getObjectIncludeInGroup'](this[_0x29304e(0x106)]);_0x59dc8a&&_0x59dc8a[_0x29304e(0x2e8)](!0x1);}if(_0x4a06e1){let _0x38a044=!!_0x4a06e1[_0x29304e(0x306)],_0x4a65a9=_0x8645a9[_0x29304e(0x202)](_0x4a06e1[_0x29304e(0x144)]);_0x4a65a9&&(_0x4a65a9[_0x29304e(0x2e8)](_0x38a044),this[_0x29304e(0x106)]=_0x4a06e1[_0x29304e(0x144)]);}else this[_0x29304e(0x106)]=null;}));}['_endLayoutInteraction'](){const _0xa5f135=_0x2b58b8;var _0x4e5bfe;(_0x4e5bfe=this['_layoutInteraction'])==null||_0x4e5bfe['dispose'](),this[_0xa5f135(0x216)]=null;}};ka=q([K(0x1,_0xbdb0e2(X)),K(0x2,_0x1f1d2f),K(0x3,_0xbdb0e2(_0x4c3397)),K(0x4,_0xbdb0e2(_0xc58a76))],ka);let Aa=class extends _0x4f9593{constructor(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63){super(_0x513081,_0x36b6c1,_0xba0ef2,_0x15c7d7,_0x24dc24,_0x5da567,_0x11fe83,_0x3d73f8,_0x82f99f,_0x4c7a63,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0xbdb0e2(_0x30b345)),K(0x2,_0xbdb0e2(_0x44b27e)),K(0x3,_0xbdb0e2(_0x56a574)),K(0x4,_0x5f3c0a),K(0x5,_0xbdb0e2(_0x20631e)),K(0x6,_0xbdb0e2(_0x1edd14)),K(0x7,_0xbdb0e2(_0x267fb9)),K(0x8,_0xbdb0e2(_0x2215d8)),K(0x9,_0xbdb0e2(X))],Aa);let ja=class extends _0x436d06{constructor(_0x690a70,_0x2131d4,_0x529f0b,_0x552a7c,_0x1915a3){const _0x2e1d1d=_0x2b58b8;super(_0x690a70,_0x2131d4,{'editing$':_0x529f0b[_0x2e1d1d(0x371)],'resolve':_0x14e620=>{const _0x2564f4=_0x2e1d1d;var _0x3f34fc;let _0x217fed=new _0xd9a358(_0x14e620[_0x2564f4(0x137)],_0x14e620[_0x2564f4(0x29c)]),_0x4295c6=((_0x3f34fc=_0x690a70[_0x2564f4(0x10b)][_0x2564f4(0x27d)](_0x217fed))==null?void 0x0:_0x3f34fc[_0x2564f4(0x230)](_0x217fed))??_0x217fed,_0xe9a916=_0xb163f0(_0x690a70['scene'][_0x2564f4(0x2e2)](_0x217fed)??null,_0x4295c6);if(!(_0xe9a916 instanceof Y))return null;let _0x44a6aa=_0xe9a916[_0x2564f4(0x269)](_0x4295c6);if(!_0x44a6aa)return null;let _0x542bac=_0xe9a916,_0x18e794={'componentKey':_0x1151ff[_0x2564f4(0x323)],'direction':_0x2564f4(0x2ac),'offset':[0x0,0xa],'onClickOutside':()=>_0x2131d4['hideInfoPopup']()};return{'object':_0xe9a916,'info':{..._0x44a6aa,'unitId':_0xe9a916[_0x2564f4(0x383)],'subUnitId':_0xe9a916[_0x2564f4(0x21e)],'shapeKey':_0xe9a916[_0x2564f4(0x11b)],'readonly':!0x0,'copyable':_0x196f76(_0x1915a3,_0xe9a916[_0x2564f4(0x383)],_0xe9a916['unitId'],_0x5c2975[_0x2564f4(0x26a)])},'attachPopup':()=>_0x552a7c['attachPopupToObject'](_0x542bac,_0x18e794,_0x542bac['unitId'])};}});}};ja=q([K(0x1,_0xbdb0e2(_0x1edd14)),K(0x2,_0xbdb0e2(X)),K(0x3,_0xbdb0e2(_0x44b27e)),K(0x4,_0x562515)],ja);let Ma=class extends _0x587b62{constructor(_0xeef241,_0x213bc6,_0x4cc73f,_0x1ded50,_0xf90252,_0x21aab0,_0x18adb6,_0x191735,_0x2749dd,_0x4f44a7,_0x2537b8,_0x24cf81){const _0x4ef146=_0x2b58b8;super(),this[_0x4ef146(0x165)]=_0xeef241,this[_0x4ef146(0x2a5)]=_0x213bc6,this['_menuManagerService']=_0x4cc73f,this[_0x4ef146(0x33f)]=_0x1ded50,this[_0x4ef146(0x204)]=_0xf90252,this[_0x4ef146(0x34d)]=_0x21aab0,this['_drawingManagerService']=_0x18adb6,this[_0x4ef146(0x2d0)]=_0x191735,this[_0x4ef146(0x35c)]=_0x2749dd,this['_contextService']=_0x4f44a7,this[_0x4ef146(0x1aa)]=_0x2537b8,this['_permissionService']=_0x24cf81,J(this,_0x4ef146(0x320),null),J(this,_0x4ef146(0x15d),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,_0x4ef146(0x368),0x0),J(this,_0x4ef146(0x329),new Map()),J(this,_0x4ef146(0x313),new Map()),this[_0x4ef146(0x15b)](),this[_0x4ef146(0x32d)](this[_0x4ef146(0x165)][_0x4ef146(0x228)](_0x19a5e9[_0x4ef146(0x234)])['subscribe'](_0x415839=>{const _0x93267=_0x4ef146;if(!_0x415839){var _0x2c5830;(_0x2c5830=this[_0x93267(0x320)])==null||_0x2c5830[_0x93267(0x12f)]();}})),this['_registerOperations'](),this['disposeWithMe'](_0x59c4f1(this[_0x4ef146(0x35c)],_0x19a5e9['UNIVER_DOC'],_0x330f2f=>this[_0x4ef146(0x34f)](_0x330f2f))),this['disposeWithMe'](this[_0x4ef146(0x1aa)][_0x4ef146(0x371)][_0x4ef146(0x138)](_0x51d387=>{const _0x5da3ce=_0x4ef146;_0x51d387&&this[_0x5da3ce(0x1eb)](void 0x0,!0x0);})),this[_0x4ef146(0x32d)](this[_0x4ef146(0x121)][_0x4ef146(0x27f)][_0x4ef146(0x138)](()=>{const _0x1d7c2d=_0x4ef146;this['_drawingManagerService'][_0x1d7c2d(0x262)]()[_0x1d7c2d(0x310)](_0x3928e4=>_0x3928e4['drawingType']===_0x11efaa['DRAWING_SHAPE']&&this[_0x1d7c2d(0x165)][_0x1d7c2d(0x1b5)](_0x3928e4[_0x1d7c2d(0x383)])===_0x19a5e9[_0x1d7c2d(0x234)]&&!this[_0x1d7c2d(0x1f1)](_0x3928e4[_0x1d7c2d(0x383)],_0x3928e4['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1d7c2d(0x2f7)]());}));}[_0x2b58b8(0x15b)](){const _0x3c4c89=_0x2b58b8;this[_0x3c4c89(0x34e)]['mergeMenu'](Li);}[_0x2b58b8(0x2a6)](_0x5f47c9,_0x2b7218,_0x1e07fb,_0x4b516f){const _0x33005f=_0x2b58b8;return[{'label':_0x33005f(0x26d),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':_0x4b516f===_0x11efaa[_0x33005f(0x32b)]},{'label':_0x33005f(0x1f5),'index':0x1,'commandId':_0x6ceb84['id'],'commandParams':{'unitId':_0x5f47c9,'drawings':[{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb}]},'disable':!0x1},{'label':_0x33005f(0x1c3),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x5f47c9,'subUnitId':_0x2b7218,'drawingId':_0x1e07fb},'disable':!0x1}];}[_0x2b58b8(0x325)](_0x3bc161,_0x1e7f40,_0x116d72){const _0x88bd43=_0x2b58b8;let _0x2e7bf6=this[_0x88bd43(0x33f)][_0x88bd43(0x1ac)](_0x3bc161,_0x1e7f40,_0x116d72),_0x269505=this[_0x88bd43(0x33f)][_0x88bd43(0x152)](_0x3bc161,_0x1e7f40,_0x116d72);return _0x2e7bf6!==void 0x0&&_0x269505!==void 0x0?{'shapeData':_0x269505,'shapeId':_0x116d72,'shapeType':_0x2e7bf6,'unitId':_0x3bc161,'subUnitId':_0x1e7f40,'version':this[_0x88bd43(0x368)],'disableShapeOption':!0x1}:null;}[_0x2b58b8(0x1eb)](_0x2751b7,_0x5b7a4c=!0x1){const _0x57ea49=_0x2b58b8;if(_0x2751b7==null){[...this['_disposePopupsByUnit'][_0x57ea49(0x279)]()]['forEach'](_0x2e6c44=>this[_0x57ea49(0x1eb)](_0x2e6c44,_0x5b7a4c));return;}let _0x224138=this[_0x57ea49(0x329)][_0x57ea49(0x113)](_0x2751b7);if(_0x224138){for(let _0x4bb27e=_0x224138[_0x57ea49(0x364)]-0x1;_0x4bb27e>=0x0;--_0x4bb27e){let _0x354d3b=_0x224138[_0x4bb27e];(_0x5b7a4c||_0x354d3b[_0x57ea49(0x1a0)]())&&(_0x354d3b['dispose'](),_0x224138['splice'](_0x4bb27e,0x1));}_0x224138[_0x57ea49(0x364)]===0x0&&(this[_0x57ea49(0x329)][_0x57ea49(0x1a2)](_0x2751b7),this['_popupTargetKeys'][_0x57ea49(0x1a2)](_0x2751b7));}}[_0x2b58b8(0x171)](_0x2b8097){const _0x4ee8e0=_0x2b58b8;let _0x29b573=this[_0x4ee8e0(0x329)]['get'](_0x2b8097);if(_0x29b573)return _0x29b573;let _0x2397b0=[];return this[_0x4ee8e0(0x329)][_0x4ee8e0(0x1dd)](_0x2b8097,_0x2397b0),_0x2397b0;}[_0x2b58b8(0x34f)](_0x2f1293){const _0x49ed95=_0x2b58b8;var _0x261f98;let _0x309086=new _0x5570bd(),_0xf181d=(_0x261f98=this[_0x49ed95(0x35c)][_0x49ed95(0x298)](_0x19a5e9[_0x49ed95(0x234)])[_0x49ed95(0x30b)](_0x27493b=>_0x27493b['scene'][_0x49ed95(0x319)]()===_0x2f1293))==null?void 0x0:_0x261f98['unitId'];return _0xf181d?(_0x309086[_0x49ed95(0x11a)](_0x2f1293['createControl$'][_0x49ed95(0x138)](()=>this[_0x49ed95(0x1d0)](_0x2f1293,_0xf181d))),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x365)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d),queueMicrotask(()=>{const _0x486dd9=_0x73b8;_0x2f1293[_0x486dd9(0x11d)]()[_0x486dd9(0x25f)]>0x0||!this['_drawingManagerService'][_0x486dd9(0x262)]()['some'](_0x214de0=>_0x214de0[_0x486dd9(0x383)]===_0xf181d)||(this[_0x486dd9(0x2ff)][_0x486dd9(0x2d1)](_0x1ec544,!0x1),this[_0x486dd9(0x324)]['focusDrawing'](null));});})),_0x309086[_0x49ed95(0x11a)](_0x2f1293[_0x49ed95(0x37a)][_0x49ed95(0x138)](()=>{this['_clearPopups'](_0xf181d,!0x0);})),_0x309086):_0x309086;}[_0x2b58b8(0x1d0)](_0x63f8e7,_0x3a8a8d){const _0x4b73ea=_0x2b58b8;let _0x1180d8=_0x63f8e7[_0x4b73ea(0x11d)]();if(this[_0x4b73ea(0x37e)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}if(_0x1180d8['size']>0x1){this['_clearPopups'](_0x3a8a8d);return;}let _0x386315=_0x1180d8[_0x4b73ea(0x199)]()[_0x4b73ea(0x225)]()['value'];if(!_0x386315){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x270874=this[_0x4b73ea(0x324)][_0x4b73ea(0x2a2)](_0x386315['oKey']);if(!_0x270874||_0x270874['drawingType']!==_0x11efaa[_0x4b73ea(0x14f)]){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let {unitId:_0x285db7,subUnitId:_0x42a460,drawingId:_0x490f5a,drawingType:_0x26b6fc}=_0x270874;if(!this[_0x4b73ea(0x1f1)](_0x285db7,_0x490f5a)){this[_0x4b73ea(0x1eb)](_0x3a8a8d,!0x0);return;}let _0x28b0e6=this[_0x4b73ea(0x325)](_0x285db7,_0x42a460,_0x490f5a);if(!_0x28b0e6){this[_0x4b73ea(0x1eb)](_0x3a8a8d);return;}let _0x46b96f=this[_0x4b73ea(0x329)]['get'](_0x3a8a8d),_0x31dc1a=_0x285db7+':'+_0x42a460+':'+_0x490f5a;if(this[_0x4b73ea(0x313)][_0x4b73ea(0x113)](_0x3a8a8d)===_0x31dc1a&&_0x46b96f&&_0x46b96f[_0x4b73ea(0x364)]>0x0)return;this['_clearPopups'](_0x3a8a8d);let _0x4ed101=this[_0x4b73ea(0x35c)][_0x4b73ea(0x1c9)](_0x285db7),_0x4dd1c6=((_0x4ed101==null?void 0x0:_0x4ed101[_0x4b73ea(0x29a)])===!0x1?_0x4ed101[_0x4b73ea(0x18b)](_0x44b27e):this[_0x4b73ea(0x2d0)])['attachPopupToObject'](_0x386315,this[_0x4b73ea(0x305)](_0x28b0e6,_0x26b6fc),_0x285db7);this[_0x4b73ea(0x32d)](_0x4dd1c6),this['_getDisposePopups'](_0x3a8a8d)[_0x4b73ea(0x335)](_0x4dd1c6),this[_0x4b73ea(0x313)][_0x4b73ea(0x1dd)](_0x3a8a8d,_0x31dc1a),this[_0x4b73ea(0x324)][_0x4b73ea(0x262)]()['some'](_0x36937f=>_0x36937f[_0x4b73ea(0x383)]===_0x285db7&&_0x36937f[_0x4b73ea(0x21e)]===_0x42a460&&_0x36937f[_0x4b73ea(0x160)]===_0x490f5a)||this['_drawingManagerService'][_0x4b73ea(0x2e5)]([{'unitId':_0x285db7,'subUnitId':_0x42a460,'drawingId':_0x490f5a}]);}[_0x2b58b8(0x305)](_0x8aed6d,_0x531dd7){const _0x1c9fbc=_0x2b58b8;return{'componentKey':da,'direction':_0x1c9fbc(0x254),'offset':[0x0,_0x199a5b],'extraProps':{'unitId':_0x8aed6d[_0x1c9fbc(0x383)],'subUnitId':_0x8aed6d['subUnitId'],'drawingId':_0x8aed6d[_0x1c9fbc(0x1a7)],'drawingType':_0x531dd7,'shapeType':_0x8aed6d[_0x1c9fbc(0x1d6)],'shapeData':_0x8aed6d[_0x1c9fbc(0x1ae)]}};}['_canEditShape'](_0xf75ae0,_0x170ee1){const _0x474ce6=_0x2b58b8;let _0x253d41=this['_univerInstanceService'][_0x474ce6(0x283)](_0xf75ae0,_0x19a5e9[_0x474ce6(0x234)]);if(!_0x253d41)return!0x1;let _0x4e1b52=_0x384956(_0x253d41,_0x170ee1);return _0x353611(this[_0x474ce6(0x121)],_0xf75ae0,[..._0x4fa6cb(_0x253d41,_0x4e1b52,'drawing',_0x170ee1),_0x418902(_0x4e1b52,_0x474ce6(0x33e),_0x170ee1)]);}[_0x2b58b8(0x2b0)](){const _0x19fee1=_0x2b58b8;this[_0x19fee1(0x32d)](this['_commandService'][_0x19fee1(0x19e)](_0x2f59c9=>{const _0x4c1d5e=_0x19fee1;if(_0x2f59c9['id']===G['id']){let {unitId:_0x3d62e8,subUnitId:_0xb6c18b,drawingId:_0x109a7b}=_0x2f59c9['params'];this[_0x4c1d5e(0x368)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x3d62e8,_0xb6c18b,_0x109a7b),this[_0x4c1d5e(0x1eb)](void 0x0,!0x0),this[_0x4c1d5e(0x2eb)]();}if(_0x2f59c9['id']===Bi['id']&&(this[_0x4c1d5e(0x15d)]=null,this[_0x4c1d5e(0x2f7)]()),_0x2f59c9['id']===_0x3d4cfc['id']){let {unitId:_0x52bba4,shapeId:_0x447678}=_0x2f59c9['params'];if(this['_activeShapeInfo']&&this[_0x4c1d5e(0x15d)]['shapeId']===_0x447678){let _0xb408c6=this['_getShapeInfo'](_0x52bba4,this[_0x4c1d5e(0x15d)][_0x4c1d5e(0x21e)],_0x447678);_0xb408c6&&(this['_shapeEditPanelVersion']+=0x1,_0xb408c6[_0x4c1d5e(0x179)]=this[_0x4c1d5e(0x368)],this[_0x4c1d5e(0x15d)]=_0xb408c6,this[_0x4c1d5e(0x37e)]&&this[_0x4c1d5e(0x2eb)]());}}})),this['disposeWithMe'](this['_drawingManagerService'][_0x19fee1(0x2f3)][_0x19fee1(0x138)](_0x550bed=>{const _0x4b5ed6=_0x19fee1;if(this[_0x4b5ed6(0x37e)]===!0x1)return;if(_0x550bed[_0x4b5ed6(0x364)]===0x0){this[_0x4b5ed6(0x15d)]=null,this[_0x4b5ed6(0x2f7)]();return;}if(_0x550bed['length']===0x1&&_0x550bed[0x0]['drawingType']===_0x11efaa[_0x4b5ed6(0x14f)]&&(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)])){this[_0x4b5ed6(0x2eb)]();return;}let _0x1e1aac=_0x550bed['filter'](_0xbc0036=>_0xbc0036[_0x4b5ed6(0x142)]===_0x11efaa[_0x4b5ed6(0x14f)]);if(_0x550bed[_0x4b5ed6(0x364)]>0x1&&_0x1e1aac[_0x4b5ed6(0x364)]===_0x550bed['length']){if(this[_0x4b5ed6(0x368)]+=0x1,this[_0x4b5ed6(0x15d)]=this['_getShapeInfo'](_0x550bed[0x0][_0x4b5ed6(0x383)],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this['_activeShapeInfo']){this[_0x4b5ed6(0x2eb)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0x4b5ed6(0x15d)]=this[_0x4b5ed6(0x325)](_0x550bed[0x0]['unitId'],_0x550bed[0x0][_0x4b5ed6(0x21e)],_0x550bed[0x0][_0x4b5ed6(0x160)]),this[_0x4b5ed6(0x15d)]){this['_activeShapeInfo'][_0x4b5ed6(0x2c4)]=!0x0,this[_0x4b5ed6(0x2eb)]();return;}}this['_closeShapeEditPanel']();}));}['_openShapeEditPanel'](){const _0x11e08b=_0x2b58b8;this['_activeShapeInfo']&&(this[_0x11e08b(0x320)]=this[_0x11e08b(0x2a5)][_0x11e08b(0x2ca)]({'id':W,'header':{'title':this[_0x11e08b(0x204)]['t'](_0x11e08b(0x29e))},'width':0x184,'children':{'label':W,...this[_0x11e08b(0x15d)]},'onClose':()=>{const _0x4ff980=_0x11e08b;this[_0x4ff980(0x324)]['focusDrawing'](null),this[_0x4ff980(0x2ff)][_0x4ff980(0x2d1)](_0x1ec544,!0x1),this[_0x4ff980(0x320)]=null;}}),this[_0x11e08b(0x37e)]=!0x0);}['_closeShapeEditPanel'](){const _0x1a9eb2=_0x2b58b8;this[_0x1a9eb2(0x37e)]=!0x1,this[_0x1a9eb2(0x2a5)][_0x1a9eb2(0x214)](W),this['_sidebarDisposable']=null,this[_0x1a9eb2(0x2ff)][_0x1a9eb2(0x2d1)](_0x1ec544,!0x1),this['_drawingManagerService'][_0x1a9eb2(0x2e5)](null);}};Ma=q([K(0x0,_0x52a285),K(0x1,_0xbdb0e2(_0x4bee7b)),K(0x2,_0x955a33),K(0x3,_0xbdb0e2(_0xc58a76)),K(0x4,_0xbdb0e2(_0x5af3e2)),K(0x5,_0x5f3c0a),K(0x6,_0x1f1d2f),K(0x7,_0xbdb0e2(_0x44b27e)),K(0x8,_0x5479fc),K(0x9,_0x311686),K(0xa,_0xbdb0e2(X)),K(0xb,_0x562515)],Ma);let Na=class extends _0x587b62{constructor(_0x99c53f,_0x5ed2e7){const _0x8ad870=_0x2b58b8;super(),this[_0x8ad870(0x33f)]=_0x99c53f,this['_localeService']=_0x5ed2e7,this[_0x8ad870(0x32d)](_0x390b1(_0x3e088f((_0x5cc37f,_0x5f025e,_0x1aba4f)=>this['_measure'](_0x5cc37f,_0x5f025e,_0x1aba4f))));}[_0x2b58b8(0x35d)](_0xc274e,_0x52900e,_0x366cb3){const _0x493fde=_0x2b58b8;let _0xaa6f0d=this[_0x493fde(0x33f)][_0x493fde(0x348)](_0xc274e,_0x52900e);if(!_0xaa6f0d)return null;let _0x1c85ef=_0xaa6f0d[_0x493fde(0x170)](),_0x3c46cd=_0x49519b(_0x1c85ef),_0x406c93=_0x1c85ef['shapeText'];if(!_0x406c93||_0x3c46cd[_0x493fde(0x27a)]!==_0x52fc4f[_0x493fde(0x297)])return null;let _0x2168ca=_0x366cb3[_0x493fde(0x2fc)],_0x1e7eb6=_0x366cb3[_0x493fde(0x141)];_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6});let _0x390669=_0xaa6f0d['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}),_0x5a1926=_0x361202(_0x493fde(0x25e)in _0x406c93?_0x406c93[_0x493fde(0x25e)]:void 0x0),_0x427f80=(_0x5a1926==null?void 0x0:_0x5a1926[_0x493fde(0x36c)])??('isRichText'in _0x406c93?_0x20f7f3(_0x406c93,_0x52900e+_0x493fde(0x11c)):null);if(!_0x427f80)return null;let _0x1c7a2d=_0x57aa48({'documentData':_0x427f80,'height':_0x1e7eb6,'shapeData':_0x1c85ef,'textRect':_0x390669,'width':_0x2168ca,'widthBuffer':0x0});_0x1c7a2d&&({width:_0x2168ca,height:_0x1e7eb6}=_0x1c7a2d,_0xaa6f0d['updateContext']({'width':_0x2168ca,'height':_0x1e7eb6}),_0x390669=_0xaa6f0d[_0x493fde(0x2b9)]({'left':0x0,'top':0x0,'width':_0x2168ca,'height':_0x1e7eb6}));let _0x34cc85=_0x406c93[_0x493fde(0x20c)]!==!0x1,_0x4b51e3=_0x1bee13(_0x427f80,{'isHorizontal':_0x34cc85,'textRect':_0x390669,'verticalAlign':_0x5a1926==null?void 0x0:_0x5a1926['va'],'horizontalAlign':_0x5a1926==null?void 0x0:_0x5a1926['ha'],'wrapStrategy':_0x46d47a(_0x1c85ef)}),_0x1db65c=new _0x4107fb(_0x4b51e3),_0x33bcaa=new _0x2f6ee9(_0x1db65c),_0x5d470c=_0x297bbe[_0x493fde(0x1cd)](_0x33bcaa,this[_0x493fde(0x204)]);try{var _0x30b954,_0x25b200;_0x5d470c['calculate']();let _0xd47b8f=((_0x30b954=_0x5d470c['getSkeletonData']())==null?void 0x0:_0x30b954['pages'])??[],_0x4a9e0b=_0xd47b8f[_0xd47b8f['length']-0x1],_0x5378f0=_0x4a9e0b?Math[_0x493fde(0x1d3)](0x0,((_0x25b200=_0x5abd28(_0x4a9e0b))==null?void 0x0:_0x25b200[_0x493fde(0x240)])??0x0):0x0,_0x3fb210=_0x5d470c[_0x493fde(0x133)]()[_0x493fde(0x327)]+_0x5378f0-(_0x34cc85?_0x390669[_0x493fde(0x174)]:_0x390669[_0x493fde(0x177)]);return Number[_0x493fde(0x233)](_0x3fb210)?_0x34cc85?{'width':_0x2168ca,'height':Math[_0x493fde(0x1d3)](0x1,_0x1e7eb6+_0x3fb210)}:{'width':Math['max'](0x1,_0x2168ca+_0x3fb210),'height':_0x1e7eb6}:null;}finally{_0x5d470c[_0x493fde(0x12f)](),_0x33bcaa[_0x493fde(0x12f)](),_0x1db65c[_0x493fde(0x12f)]();}}};Na=q([K(0x0,_0xbdb0e2(_0xc58a76)),K(0x1,_0xbdb0e2(_0x5af3e2))],Na);let $=class extends _0x2f0f12{constructor(_0x33674d=Hi,_0x327e93,_0x57e6d4,_0x273e79,_0x3c085b){const _0x5da4f2=_0x2b58b8;super(),this[_0x5da4f2(0x270)]=_0x33674d,this['_injector']=_0x327e93,this['_commandService']=_0x57e6d4,this[_0x5da4f2(0x25d)]=_0x273e79,this[_0x5da4f2(0x35c)]=_0x3c085b;let {menu:_0xb05b2d,..._0x467322}=_0x4cbbbe({},Hi,this[_0x5da4f2(0x270)]);_0xb05b2d&&this['_configService'][_0x5da4f2(0x154)](_0x5da4f2(0x157),_0xb05b2d,{'merge':!0x0}),this[_0x5da4f2(0x25d)][_0x5da4f2(0x154)](Vi,_0x467322),this[_0x5da4f2(0x21a)]();}[_0x2b58b8(0x1a6)](){const _0x27aac7=_0x2b58b8;_0x4136fc(this[_0x27aac7(0x181)],this[_0x27aac7(0x161)]()),this[_0x27aac7(0x181)][_0x27aac7(0x113)](wa),this[_0x27aac7(0x34a)]();}['_getDependencies'](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x2b58b8(0x2f4)](){const _0x556e9b=_0x2b58b8;this[_0x556e9b(0x200)]()[_0x556e9b(0x30e)](_0x429cd5=>{const _0xce37c2=_0x556e9b;this[_0xce37c2(0x32d)](this['_renderManagerService'][_0xce37c2(0x218)](_0x19a5e9[_0xce37c2(0x234)],_0x429cd5));}),_0x44a503(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}[_0x2b58b8(0x200)](){return[[Ji],[ka],[ja],[Ta]];}[_0x2b58b8(0x235)](){const _0x23d16c=_0x2b58b8;this['disposeWithMe'](this[_0x23d16c(0x35c)][_0x23d16c(0x218)](_0x19a5e9[_0x23d16c(0x234)],[Aa]));}[_0x2b58b8(0x21a)](){const _0x4e44e8=_0x2b58b8;[U,Bi,G,Mr,Pr,Fr][_0x4e44e8(0x30e)](_0x1b344f=>this[_0x4e44e8(0x32d)](this[_0x4e44e8(0x34d)]['registerCommand'](_0x1b344f)));}['_initUIPart'](){const _0xb231f3=_0x2b58b8;let _0x195066=this[_0xb231f3(0x181)],_0x64af41=_0x195066[_0xb231f3(0x113)](_0x4050f2);this[_0xb231f3(0x32d)](_0x64af41[_0xb231f3(0x366)](_0xf47892['CONTENT'],()=>_0x370dd2(va,_0x195066)));}};J($,_0x2b58b8(0x326),_0x19a5e9['UNIVER_DOC']),J($,_0x2b58b8(0x21b),_0x2b58b8(0x12d)),J($,'packageName',Ri),J($,_0x2b58b8(0x179),zi),$=q([_0x5d76b8(_0x23a3e9,_0x2627bb,_0x224c4f,_0x38457f,_0xd9d11,_0x191fd8,_0x4f835e,_0x26ca13,_0x33aa0d,_0x21cd82),K(0x1,_0xbdb0e2(_0x57c331)),K(0x2,_0x5f3c0a),K(0x3,_0x2f3c71),K(0x4,_0x5479fc)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};