@univerjs-pro/docs-shape-ui 1.0.3 → 1.1.0

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 (91) 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 +23 -23
  83. package/lib/types/commands/command/update-doc-drawing-metadata.command.d.ts +0 -15
  84. package/lib/types/commands/menu/object-list.menu.d.ts +0 -4
  85. package/lib/types/view-model/shape-data-model.d.ts +0 -8
  86. package/lib/types/views/ShapeOptions.d.ts +0 -26
  87. package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -12
  88. package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
  89. package/lib/types/views/shape-floating-toolbar/shape-floating-toolbar-utils.d.ts +0 -1
  90. package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -2
  91. package/lib/types/views/shapes.d.ts +0 -58
package/lib/es/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 _0x43e8a4=_0xe027;(function(_0xf5f981,_0x37c09a){const _0x375de0=_0xe027,_0x2a99a9=_0xf5f981();while(!![]){try{const _0x336c43=-parseInt(_0x375de0(0xb4))/0x1+-parseInt(_0x375de0(0x1dc))/0x2+-parseInt(_0x375de0(0x1b7))/0x3*(-parseInt(_0x375de0(0x17d))/0x4)+parseInt(_0x375de0(0x1a8))/0x5+-parseInt(_0x375de0(0x2cc))/0x6+parseInt(_0x375de0(0x195))/0x7*(parseInt(_0x375de0(0x1ec))/0x8)+parseInt(_0x375de0(0xfa))/0x9*(parseInt(_0x375de0(0x112))/0xa);if(_0x336c43===_0x37c09a)break;else _0x2a99a9['push'](_0x2a99a9['shift']());}catch(_0x4ef567){_0x2a99a9['push'](_0x2a99a9['shift']());}}}(_0x3d03,0x8d0b8));import{FormulaShapeAnimationController as _0x41ef0b,MobileShapeEditorControls as _0x4ab532,MobileShapeEditorService as _0x1c4e81,MobileShapePickerPanel as _0x8f16d9,SHAPE_CHANGE_PICKER_COMPONENT as _0x12e18b,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x3257bd,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x274783,ShapeEditPanel as _0x4daa70,ShapeFloatingToolbar as _0x198192,ShapeFloatingToolbarService as _0x9377b1,ShapeFloatingToolbarToggleFactory as _0x374e3e,ShapeFormulaRibbonControl as _0xcdf079,ShapeGroupEnum as _0x29b383,ShapePickerDropdown as _0x1c6a88,ShapePickerPanel as _0x1a369d,ShapeQuickStyleGallery as _0x51195d,ShapeStyleRibbonControl as _0xd6f3ea,ShapeTextEditorContainer as _0x8f7333,ShapeTextFloatMenuRenderControllerBase as _0x4b2f89,ShapeTextFloatToolbar as _0x4eb1a6,ShapeTextHyperLinkHoverController as _0x34514a,ShapeTextHyperLinkInfo as _0x100f36,ShapeTextHyperLinkPopupService as _0x478335,ShapeTextRibbonControl as _0x473bd6,ToggleShapeFloatingToolbarOperation as _0x10dcc9,UniverShapeEditorMobileUIPlugin as _0x54a90e,UniverShapeEditorUIPlugin as _0x40cd8a,activateDrawingObject as _0x2aeb4f,bindRenderTransformerLifecycle as _0x1d984c,buildShapeTextDataUpdate as _0x2fe1a2,clearActiveDrawingObjects as _0x482003,createShapeTextHyperLinkRegions as _0x32283e,drawFormulaShapeAnimationLayers as _0x2b587f,getDrawingTypeNameKey as _0x36d1e2,getTextModel as _0x46bcad,getTextStyle as _0x11e2fa,normalizeShapeTextModel as _0x33266c,plainShapeTextToDocumentData as _0x5e99a9,prepareShapeTextDocumentData as _0x26bed1,prepareShapeTextDocumentData as _0x18300c,registerShapeFormatPainter as _0x3c87e0,resolveFormulaShapeAutoFitSize as _0x4b8d5f,resolveShapeContextualRibbonHostMode as _0x3c6397,resolveShapeTextDocumentPageHeight as _0x30a506,resolveShapeTextDocumentRenderLayout as _0x4f930a,resolveShapeTextEditorBehaviorShapeData as _0x17c928,resolveShapeTextEditorWrapStrategy as _0xd357af,resolveShapeTextHyperLinkAt as _0x436b63,resolveShapeTextHyperLinkObject as _0x2c5cc5,shouldAllowShapeTextEditorHostSizeShrink as _0x1574e0,shouldClipShapeTextDocument as _0x1c7d20,useFormulaShapeToolbar as _0x29c39b}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x4df301,DOC_CONTENT_INSERT_MENU_ID as _0x3f6de3,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0xdfd9ae,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x5e7691,DocCanvasPopManagerService as _0x58fb7f,DocEventManagerService as _0x21724d,DocLayoutInteractionService as _0xf6bc99,DocParagraphMenuService as _0x4b5937,DocPrintInterceptorService as _0x3197e2,DocRenderController as _0x3f802a,DocSelectionRenderService as _0x161ebd,EMPTY_PARAGRAPH_MENU_ID as _0x23a7e9,INSERT_BELLOW_MENU_ID as _0x4203e1,UniverDocsMobileUIPlugin as _0x3a37cf,UniverDocsUIPlugin as _0x4a2dcb,VIEWPORT_KEY as _0x28fe54}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x40e763,ComponentManager as _0x5974e5,ContextMenuGroup as _0x57116b,ContextMenuPosition as _0x26c1b2,FloatingObjectToolbarPosition as _0x7e4a12,FormatPainterSessionService as _0x22cfa6,IMenuManagerService as _0x354de5,IRibbonService as _0x1989ad,ISidebarService as _0x5cd437,IUIPartsService as _0x4c7e7e,IconManager as _0x358fdb,MenuItemType as _0x3c5886,MenuManagerPosition as _0x242878,MobileMenu as _0xab6cb4,ObjectPermissionButton as _0x6fcfc4,RibbonInsertGroup as _0x59a1a7,connectInjector as _0x3697e2,getMenuHiddenObservable as _0x546425,useDependency as _0x2f1968,useObservable as _0x24248b}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4111fb,DEFAULT_DOC_SHAPE_WIDTH as _0x5c3f4d,DocShapeAnchorPosition as _0x822ec2,DocsShapeService as _0x3e6ec4,InsertDocShapeCommand as _0x3ff9f6,UniverDocsShapePlugin as _0x2e07fc,UpdateDocDrawingMetadataCommand as _0x4054f5,UpdateDocShapeDataCommand as _0xc5bd8e,UpdateDocShapeDataMutation as _0x4aaefb}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x3423a9,ShapeArrowSizeEnum as _0x3a63cf,ShapeArrowTypeEnum as _0x42e35b,ShapeDefaultConfig as _0x1f925b,ShapeFillEnum as _0x5ea484,ShapeLineTypeEnum as _0x3f4778,ShapeModel as _0x5d1466,ShapeRenderModeEnum as _0x17498a,ShapeTextAutoFitType as _0x4b45c6,ShapeTypeEnum as _0x90f8ed,isConnectorShape as _0x3a8d31,resolveShapeTextBodyBehavior as _0x94d984}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x1fb743,UniverShapeEditorPlugin as _0x2830ac,applyQuickStyleToShapeData as _0x22ba98,cloneShapeDataForType as _0x147fa8,createShapeFormulaDocument as _0x59b1ab,createShapeTextBoxShapeData as _0x4be474,getShapeQuickStylePreset as _0x4fe810,getShapeQuickStyleType as _0x4bc092,resolveActiveShapeQuickStylePresetId as _0x3d44c4}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x1f6748,BooleanNumber as _0x2eeb60,CommandType as _0x5e8815,DependentOn as _0x1a58e1,Disposable as _0x143425,DisposableCollection as _0x4bf1ef,DocumentDataModel as _0x2925ba,DrawingTypeEnum as _0x1652cd,FOCUSING_COMMON_DRAWINGS as _0x2f74ce,FOCUSING_SHAPE_TEXT_EDITOR as _0x1e386f,HorizontalAlign as _0x19f481,ICommandService as _0x5d4fd5,IConfigService as _0x47ac1d,IContextService as _0x46b73a,IImageIoService as _0x42c7d6,IPermissionService as _0x1b33f3,IURLImageService as _0x1d2e00,IUniverInstanceService as _0x58ad01,Inject as _0x376ec2,Injector as _0x3fea17,LocaleService as _0x474b31,Plugin as _0x48417e,PositionedObjectLayoutType as _0x5e65d5,UniverInstanceType as _0x37d2f3,VerticalAlign as _0xfc8006,createInternalEditorID as _0x320a48,generateRandomId as _0x539aae,getParagraphContentStartOffset as _0x51b222,merge as _0x77c685,registerDependencies as _0x1fed5b,toDisposable as _0x44b80c,touchDependencies as _0xd342cc}from'@univerjs/core';import{DocInterceptorService as _0x106c33,DocSelectionManagerService as _0x2e2dde,RichTextEditingMutation as _0x387c40,SetDocumentPermissionCommand as _0x2502f6,UniverDocsPlugin as _0x3dc614,canEditDocumentTargets as _0xaad49,getDocumentDrawingSegmentId as _0x34c0dc,getDocumentEntityParentPermissionObjectIds as _0x1ed368,getDocumentEntityPermissionObjectId as _0x17c75c,getDocumentPermissionValue as _0x29792c}from'@univerjs/docs';import{IDocDrawingService as _0x3b1588,RemoveDocDrawingCommand as _0x1dc354,SetDocDrawingArrangeCommand as _0x3c4545,TextWrappingStyle as _0x4e8b32,UpdateDocDrawingWrappingStyleCommand as _0x35bcca,UpdateDrawingDocTransformCommand as _0x5c08e6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x1b2d0c,Circle as _0x5d9ad7,DRAWING_OBJECT_LAYER_INDEX as _0x19be61,DocumentSkeleton as _0x122642,DocumentViewModel as _0x4be549,Documents as _0x321da8,IRenderManagerService as _0x20175c,RENDER_CLASS_TYPE as _0x5ccc48,Shape as _0x479a18,Transform as _0x4d0b24,UniverRenderEnginePlugin as _0x55fd02,Vector2 as _0x7e1ba8,getLastLine as _0x5d8276,setDocsCustomBlockRenderViewportProvider as _0x387221}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4ed84c,SetDrawingSelectedOperation as _0x342bee,UniverDrawingPlugin as _0x41fe11,getDrawingShapeKeyByDrawingSearch as _0x33c05c}from'@univerjs/drawing';import{DrawingCommonPanel as _0x2438ba,DrawingImageClipService as _0x453a2,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x1efce9,MobileObjectListPanel as _0x2b8d3a,OBJECT_LIST_FLOATING_SECTION_ID as _0x1722f4,ObjectListPanelBase as _0xb10e3b,UniverDrawingMobileUIPlugin as _0x1a2f56,UniverDrawingUIPlugin as _0x1896a6,getObjectListPanelSectionIdForDrawingType as _0x3f7cdb,insertGroupObject as _0x54a7ec}from'@univerjs/drawing-ui';import{Fragment as _0xafd52b,jsx as _0x5619d4,jsxs as _0x48a5b6}from'react/jsx-runtime';import{BehaviorSubject as _0xe789cb,Observable as _0x1f9019,distinctUntilChanged as _0x598686,map as _0x573771,merge as _0x3018f6,of as _0x477cfd,startWith as _0x45bea4}from'rxjs';import{UniverLicensePlugin as _0x1f5858}from'@univerjs-pro/license';import{DocDrawingPosition as _0x328b21,DocDrawingTextWrap as _0x7f317e,MobileDocDrawingPosition as _0x10704b,MobileDocDrawingTextWrap as _0xa7fe3c,UniverDocsDrawingMobileUIPlugin as _0x1727f1,UniverDocsDrawingUIPlugin as _0x34d5cc}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x463d79,MoreDownIcon as _0x5df7dc,MoreUpIcon as _0x383f97,MoveDownIcon as _0x13639d,MoveUpIcon as _0x384086,ObjectLayersIcon as _0x362b77,ShapeFormatSettingIcon as _0x306814,TextWrapShapeIcon as _0x1e873d,TopmostIcon as _0x1b36a9}from'@univerjs/icons';import{MobileActionRow as _0x478cdc}from'@univerjs/design';import{memo as _0x5889ae,useEffect as _0x5b0cfd,useMemo as _0x39da17,useReducer as _0x597582,useState as _0x1f778c}from'react';import{UnitAction as _0x19e39f,UnitObject as _0x3314c2}from'@univerjs/protocol';function wr(_0x1782d0,_0x11f03b){const _0x544c78=_0xe027;if(_0x11f03b){if(_0x3a8d31(_0x1782d0)&&(_0x11f03b[_0x544c78(0x1a6)]||_0x11f03b['endArrow']))return{'ln':{'startArrow':_0x11f03b[_0x544c78(0x1a6)]?{'type':_0x42e35b[_0x544c78(0x191)],'size':_0x3a63cf[_0x544c78(0x28a)]}:void 0x0,'endArrow':_0x11f03b['endArrow']?{'type':_0x42e35b['Arrow'],'size':_0x3a63cf[_0x544c78(0x2a0)]}:void 0x0}};if(_0x1782d0===_0x90f8ed['Rect']&&(_0x11f03b['horizontal']||_0x11f03b[_0x544c78(0xdf)]))return _0x4be474({'fill':{'fillType':_0x5ea484[_0x544c78(0x11e)],'color':'#3B82F6'},'isHorizontal':!!_0x11f03b[_0x544c78(0x19a)],'stroke':{'lineStrokeType':_0x3f4778[_0x544c78(0xb5)],'width':0x1,'color':_0x544c78(0x15e)}});}}function Tr(_0x2fae29,_0x1b4e9d){const _0x109106=_0xe027;var _0x1f64dd;let _0x3f3f04=_0x1b4e9d[_0x109106(0x2ae)]??'',_0x41c085=(_0x1f64dd=_0x2fae29[_0x109106(0x1d6)](_0x3f3f04))==null?void 0x0:_0x1f64dd[_0x109106(0xb7)]();if(!_0x41c085)return null;let _0x462cb2=_0x41c085[_0x109106(0x16e)]??[],_0xd28db7=_0x462cb2[_0x109106(0x2d0)](_0x304ff1=>{const _0x2c2f45=_0x109106;let _0x5a96e9=_0x51b222(_0x41c085,_0x304ff1);return _0x1b4e9d[_0x2c2f45(0x1d3)]>=_0x5a96e9&&_0x1b4e9d[_0x2c2f45(0x1d3)]<=_0x304ff1[_0x2c2f45(0x184)];})??_0x462cb2[_0x462cb2[_0x109106(0x1ee)]-0x1];return _0xd28db7?{'paragraphId':_0xd28db7[_0x109106(0x12e)],'segmentId':_0x3f3f04,'position':_0x822ec2[_0x109106(0x149)],'offset':_0x1b4e9d[_0x109106(0x1d3)]-_0x51b222(_0x41c085,_0xd28db7)}:null;}function Er(_0xff7fc7,_0x398d81,_0x188671){const _0x5b9ccf=_0xe027;var _0x4e90c6,_0x2fd36a;if(!_0x188671)return null;let _0x73cd38=(_0x4e90c6=_0xff7fc7['get'](_0x20175c)[_0x5b9ccf(0x2b0)](_0x398d81))==null?void 0x0:_0x4e90c6[_0x5b9ccf(0x178)](_0x4b5937)[_0x5b9ccf(0x117)];if(!_0x73cd38)return null;let _0x417e3e=_0x188671==='below'?{'startOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)],'endOffset':_0x73cd38[_0x5b9ccf(0xea)][_0x5b9ccf(0x253)]}:_0x73cd38['menuRange'];return{'startOffset':_0x417e3e['startOffset'],'endOffset':_0x417e3e[_0x5b9ccf(0x253)],'collapsed':_0x417e3e[_0x5b9ccf(0x1d3)]===_0x417e3e[_0x5b9ccf(0x253)],'segmentId':((_0x2fd36a=_0x73cd38[_0x5b9ccf(0x1e8)])==null?void 0x0:_0x2fd36a[_0x5b9ccf(0x2ae)])??''};}const U={'type':_0x5e8815[_0x43e8a4(0x2a6)],'id':'doc.command.menu-insert-shape','handler':async(_0x46723c,_0x69ab55)=>{const _0x2060e5=_0x43e8a4;let _0xed64b2=_0x46723c[_0x2060e5(0x7a)](_0x58ad01)[_0x2060e5(0x248)](_0x37d2f3[_0x2060e5(0x10d)]);if(!_0xed64b2)return!0x1;let _0xd20fae=_0x46723c[_0x2060e5(0x7a)](_0x5d4fd5),_0x1f978a=_0xed64b2[_0x2060e5(0xe2)](),_0x43e8a7=_0x69ab55[_0x2060e5(0x1a5)]??_0x539aae(),_0x221af5=_0x69ab55['width']??_0x5c3f4d,_0x4a6410=_0x69ab55[_0x2060e5(0x204)]??_0x4111fb,_0x5f24e5=_0x69ab55[_0x2060e5(0x240)]??wr(_0x69ab55['value'],_0x69ab55[_0x2060e5(0x229)]),_0x39a93b=Er(_0x46723c,_0x1f978a,_0x69ab55[_0x2060e5(0x90)])??_0x46723c['get'](_0x2e2dde)[_0x2060e5(0x69)]();if(!_0x39a93b)return!0x1;let _0xe7e9da=Tr(_0xed64b2,_0x39a93b);return _0xe7e9da?!!_0xd20fae[_0x2060e5(0x27a)](_0x3ff9f6['id'],{'unitId':_0x1f978a,'shapeId':_0x43e8a7,'shapeType':_0x69ab55['value'],'shapeData':_0x5f24e5,'transform':{'width':_0x221af5,'height':_0x4a6410},'placement':{'wrappingStyle':_0x4e8b32[_0x2060e5(0x91)],'anchor':_0xe7e9da}}):!0x1;}},W=_0x43e8a4(0x138),Dr=_0x43e8a4(0x93),Or=_0x43e8a4(0x21e),kr=_0x320a48('SHAPE_TEXT'),Ar='doc.shape.text.float-menu',jr=_0x43e8a4(0xd3),Mr={'id':_0x43e8a4(0x225),'type':_0x5e8815['COMMAND'],'handler':(_0x24cdd8,_0x1b28c0)=>{const _0x3dfacc=_0x43e8a4;let _0x4b12e0=_0x24cdd8[_0x3dfacc(0x7a)](_0x5cd437),_0x48856e=_0x24cdd8[_0x3dfacc(0x7a)](_0x474b31),_0x41b80b=_0x24cdd8[_0x3dfacc(0x7a)](_0x4ed84c);return(_0x1b28c0==null?void 0x0:_0x1b28c0[_0x3dfacc(0x152)])===_0x3dfacc(0x234)?(_0x4b12e0[_0x3dfacc(0x234)](Or),!0x0):(_0x4b12e0[_0x3dfacc(0x29c)]({'id':Or,'header':{'title':_0x48856e['t'](_0x3dfacc(0x243))},'children':{'label':Or},'onClose':()=>{const _0x3d1372=_0x3dfacc;_0x41b80b[_0x3d1372(0xd9)](null);},'width':0x168}),!0x0);}},G={'type':_0x5e8815[_0x43e8a4(0xa5)],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function Nr(_0x9cba6a){const _0x4c6472=_0x43e8a4;let _0x278885=_0x9cba6a[_0x4c6472(0x7a)](_0x4ed84c)[_0x4c6472(0x2bf)](),_0x1d185c=_0x278885['length']===0x1?_0x278885[0x0]:null;if(!_0x1d185c||_0x1d185c[_0x4c6472(0x119)]!==_0x1652cd[_0x4c6472(0x156)])return null;let _0x19d7ae=_0x9cba6a[_0x4c6472(0x7a)](_0x3e6ec4),_0x432618=_0x19d7ae[_0x4c6472(0x20c)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c[_0x4c6472(0x198)]),_0x56bf23=_0x19d7ae[_0x4c6472(0x274)](_0x1d185c[_0x4c6472(0xa2)],_0x1d185c['subUnitId'],_0x1d185c['drawingId']);return _0x432618===void 0x0||!_0x56bf23?null:{'drawing':_0x1d185c,'shapeData':_0x56bf23,'shapeType':_0x432618};}const Pr={'id':_0x43e8a4(0x6c),'type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x14fb3c,_0x4a5a97)=>{const _0x2de703=_0x43e8a4;let _0x2d1f6d=Nr(_0x14fb3c),_0x44e34c=_0x4fe810((_0x4a5a97==null?void 0x0:_0x4a5a97[_0x2de703(0x2ab)])??(_0x4a5a97==null?void 0x0:_0x4a5a97['value'])??'');if(!_0x2d1f6d||!_0x44e34c||_0x44e34c[_0x2de703(0x297)]!==_0x4bc092(_0x2d1f6d[_0x2de703(0x240)]))return!0x1;let _0x1efc61=_0x22ba98(_0x2d1f6d[_0x2de703(0x240)],_0x44e34c);if(!_0x1efc61)return!0x1;let {drawing:_0x4c814b}=_0x2d1f6d;return _0x14fb3c[_0x2de703(0x7a)](_0x5d4fd5)[_0x2de703(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x4c814b['unitId'],'shapeId':_0x4c814b[_0x2de703(0x198)],'shapeData':_0x1efc61,'oldShapeJSON':{'oldShapeData':_0x2d1f6d[_0x2de703(0x240)]}});}},Fr={'id':'doc.operation.update-shape-type','type':_0x5e8815[_0x43e8a4(0xa5)],'handler':(_0x41b21d,_0x5a74cf)=>{const _0x211ff7=_0x43e8a4;let _0x17b925=Nr(_0x41b21d),_0x1330da=(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x6d)])??(_0x5a74cf==null?void 0x0:_0x5a74cf[_0x211ff7(0x152)]);if(!_0x17b925||!_0x1330da||_0x3a8d31(_0x17b925[_0x211ff7(0x6d)])||_0x3a8d31(_0x1330da))return!0x1;let _0x34c9e1=_0x147fa8(_0x17b925[_0x211ff7(0x240)],_0x1330da);if(!_0x34c9e1)return!0x1;let {drawing:_0x5da53d}=_0x17b925;return _0x41b21d[_0x211ff7(0x7a)](_0x5d4fd5)['executeCommand'](_0xc5bd8e['id'],{'unitId':_0x5da53d[_0x211ff7(0xa2)],'shapeId':_0x5da53d['drawingId'],'shapeType':_0x1330da,'shapeData':_0x34c9e1,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x17b925['shapeType'],'oldShapeData':_0x17b925[_0x211ff7(0x240)]}});}};function K(_0x481e5f,_0x382c7b){return function(_0x3ed2e0,_0x474523){_0x382c7b(_0x3ed2e0,_0x474523,_0x481e5f);};}function q(_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa){const _0x2276fe=_0x43e8a4;var _0x7988c0=arguments['length'],_0x4aa91e=_0x7988c0<0x3?_0x57683b:_0x2bb7aa===null?_0x2bb7aa=Object[_0x2276fe(0x135)](_0x57683b,_0x16020f):_0x2bb7aa,_0x47144b;if(typeof Reflect=='object'&&typeof Reflect[_0x2276fe(0x23c)]==_0x2276fe(0xb9))_0x4aa91e=Reflect['decorate'](_0x1c4574,_0x57683b,_0x16020f,_0x2bb7aa);else{for(var _0x20b721=_0x1c4574[_0x2276fe(0x1ee)]-0x1;_0x20b721>=0x0;_0x20b721--)(_0x47144b=_0x1c4574[_0x20b721])&&(_0x4aa91e=(_0x7988c0<0x3?_0x47144b(_0x4aa91e):_0x7988c0>0x3?_0x47144b(_0x57683b,_0x16020f,_0x4aa91e):_0x47144b(_0x57683b,_0x16020f))||_0x4aa91e);}return _0x7988c0>0x3&&_0x4aa91e&&Object[_0x2276fe(0xac)](_0x57683b,_0x16020f,_0x4aa91e),_0x4aa91e;}let Ir=class extends _0x143425{constructor(_0x97b8ad,_0x1a19dd){const _0x17a223=_0x43e8a4;super(),this[_0x17a223(0x26d)]=_0x97b8ad,this['_drawingManagerService']=_0x1a19dd,this['_registerImageShapeClipDelegate'](),this['_clipService'][_0x17a223(0x2c8)](!0x0),this[_0x17a223(0xb3)]({'dispose':()=>this[_0x17a223(0x26d)]['setCanUseShapeClip'](!0x1)});}[_0x43e8a4(0x27d)](){const _0x2ae39b=_0x43e8a4;let _0x2eeae3=new Map(),_0x253ace=this[_0x2ae39b(0x26d)][_0x2ae39b(0x285)]((_0x5e742b,_0x188169,_0x2dcc81,_0x2e4d86,_0x4dfe74)=>{const _0x121f9f=_0x2ae39b;let _0x279a7c=_0x188169;if(_0x279a7c===_0x90f8ed[_0x121f9f(0x79)]||_0x188169===_0x121f9f(0x228))return!0x1;try{let _0x5c5dfc=_0x2eeae3[_0x121f9f(0x7a)](_0x188169);return _0x5c5dfc||(_0x5c5dfc=new _0x5d1466(_0x279a7c,'clip-'+_0x188169),_0x2eeae3[_0x121f9f(0x290)](_0x188169,_0x5c5dfc)),_0x5c5dfc[_0x121f9f(0x9d)](),_0x4dfe74&&Object[_0x121f9f(0x20d)](_0x4dfe74)[_0x121f9f(0x1ee)]>0x0&&_0x5c5dfc[_0x121f9f(0x1b6)]({'adjustValues':_0x4dfe74},!0x0),_0x5c5dfc[_0x121f9f(0x2bc)]({'width':_0x2dcc81,'height':_0x2e4d86}),_0x5c5dfc[_0x121f9f(0x1b5)](_0x5e742b,{'left':0x0,'top':0x0,'width':_0x2dcc81,'height':_0x2e4d86});}catch{return!0x1;}});this[_0x2ae39b(0xb3)](_0x253ace),this[_0x2ae39b(0xb3)]({'dispose':()=>_0x2eeae3[_0x2ae39b(0x189)]()});}[_0x43e8a4(0x168)](_0x33af87,_0x35d853,_0x44cd5f,_0x3992a6,_0x2fec0a){const _0x49c4b0=_0x43e8a4;let _0x10a77e=this[_0x49c4b0(0x282)][_0x49c4b0(0xaa)](_0x33af87,_0x35d853)[_0x44cd5f];_0x10a77e&&_0x10a77e['drawingType']===_0x1652cd[_0x49c4b0(0x24e)]&&this['_drawingManagerService'][_0x49c4b0(0x1eb)]([{..._0x10a77e,'prstGeom':_0x3992a6,'adjustValues':_0x2fec0a}]);}};Ir=q([K(0x0,_0x376ec2(_0x453a2)),K(0x1,_0x376ec2(_0x4ed84c))],Ir);const Lr=_0x43e8a4(0x1fc),Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x4a16c9,excludeGroups:_0x5f12f5}){return _0x5619d4(_0x1a369d,{'excludeGroups':_0x5f12f5,'onShapeClick':_0x4a16c9,'scrollContainer':'parent'});}function Br(){let _0x589883=_0x2f1968(_0x4ed84c),_0x569a8e=_0x2f1968(Ir);return _0x55a9c7=>{const _0x2bfaa2=_0xe027;let _0x232721=_0x589883[_0x2bfaa2(0x2bf)]()[_0x2bfaa2(0x2d0)](_0x76613=>_0x76613[_0x2bfaa2(0x119)]===_0x1652cd[_0x2bfaa2(0x24e)]);_0x232721&&_0x569a8e[_0x2bfaa2(0x168)](_0x232721[_0x2bfaa2(0xa2)],_0x232721[_0x2bfaa2(0x2d2)],_0x232721[_0x2bfaa2(0x198)],_0x55a9c7[_0x2bfaa2(0x297)]);};}function Vr(){const _0x3f0b76=_0x43e8a4;let _0x50553d=Br();return _0x5619d4(_0x1c6a88,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x29b383[_0x3f0b76(0x8c)]],'onShapeClick':_0x50553d});}function Hr(){const _0x534ad2=_0x43e8a4;let _0x3201a8=_0x2f1968(_0x5974e5),_0x32e0e4=_0x2f1968(_0x4ed84c),_0x2c2be5=_0x2f1968(_0x58ad01),_0x40a524=_0x32e0e4[_0x534ad2(0x2bf)]()[0x0],_0x325db9=_0x40a524?_0x2c2be5[_0x534ad2(0x177)](_0x40a524[_0x534ad2(0xa2)]):void 0x0,_0xc08db=_0x325db9===_0x37d2f3[_0x534ad2(0x10d)]?Rr:_0x325db9===_0x37d2f3[_0x534ad2(0x84)]?_0x534ad2(0x2c4):void 0x0,_0x4e1655=_0xc08db?_0x3201a8['get'](_0xc08db):void 0x0;return _0x4e1655?_0x5619d4(_0x4e1655,{}):null;}function Ur({paragraphMenuPlacement:_0x5d8f72,PickerComponent:_0x5c6731=zr}){let _0x6e8cf6=_0x2f1968(_0x5d4fd5);return _0x5619d4(_0x5c6731,{'onShapeClick':_0x3c5980=>{const _0x5d0027=_0xe027;_0x6e8cf6[_0x5d0027(0x2cf)](U['id'],{'paragraphMenuPlacement':_0x5d8f72,'value':_0x3c5980[_0x5d0027(0x297)],'enhanceParams':{'endArrow':_0x3c5980[_0x5d0027(0xad)],'startArrow':_0x3c5980[_0x5d0027(0x1a6)],'horizontal':_0x3c5980[_0x5d0027(0x19a)],'vertical':_0x3c5980[_0x5d0027(0xdf)]}});}});}function Wr(_0x372393){const _0x132f10=_0x43e8a4;return _0x51df66=>({'id':U['id'],'type':_0x3c5886['SELECTOR'],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x372393?{'id':U['id'],'paragraphMenuPlacement':_0x372393}:{'id':U['id']}}}],'icon':_0x132f10(0x96),'title':_0x132f10(0x217),'tooltip':_0x132f10(0x217),'hidden$':_0x546425(_0x51df66,_0x37d2f3[_0x132f10(0x10d)])});}const Gr=Wr(),Kr=Wr(_0x43e8a4(0xeb)),qr=Wr(_0x43e8a4(0x10b));function Jr(_0x13e691){const _0x3f9964=_0x43e8a4;return{'id':Mr['id'],'type':_0x3c5886['BUTTON'],'icon':_0x3f9964(0x27e),'title':_0x3f9964(0x1f8),'tooltip':_0x3f9964(0x1f8),'hidden$':_0x546425(_0x13e691,_0x37d2f3[_0x3f9964(0x10d)])};}function Yr(_0x2dc88c,_0x267c39,_0x4ecba7,_0x240e86,_0x3e27fb,_0x5e82ca){let _0x15cc0e={'unitId':_0x267c39,'shapeId':_0x240e86,'shapeData':_0x5e82ca,'oldShapeJSON':_0x3e27fb};return _0x2dc88c['executeCommand'](_0xc5bd8e['id'],_0x15cc0e);}function Xr(_0x161e16,_0x5443fc,_0x30ec0e,_0x11e284,_0x181dd3,_0x86445e){const _0x490553=_0x43e8a4;let _0x5a9a32={'unitId':_0x5443fc,'shapeId':_0x11e284,'shapeData':_0x86445e,'oldShapeJSON':_0x181dd3};return _0x161e16[_0x490553(0x2cf)](_0xc5bd8e['id'],_0x5a9a32);}const Zr=_0x43e8a4(0x86),Qr=_0x43e8a4(0x25b),$r=_0x43e8a4(0x2c7),ei=_0x43e8a4(0x291),ti=_0x43e8a4(0x213),ni=[{'value':_0x4e8b32[_0x43e8a4(0x91)],'label':_0x43e8a4(0x76),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x4e8b32[_0x43e8a4(0xbd)],'label':_0x43e8a4(0x146),'icon':_0x43e8a4(0x1a1)},{'value':_0x4e8b32['WRAP_TOP_AND_BOTTOM'],'label':_0x43e8a4(0x1c5),'icon':_0x43e8a4(0x255)},{'value':_0x4e8b32[_0x43e8a4(0x221)],'label':_0x43e8a4(0x2c5),'icon':_0x43e8a4(0x286)},{'value':_0x4e8b32[_0x43e8a4(0x85)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x43e8a4(0x24f)}];function ri(){let _0x4df5c6=_0x2f1968(_0x5d4fd5),_0x77728=_0x2f1968(_0x4ed84c),_0xee6238=_0x2f1968(_0x3e6ec4),_0x4e600f=()=>{const _0x4d5536=_0xe027;var _0x27cfa2;let _0x348e06=_0x77728[_0x4d5536(0x2bf)]();if(_0x348e06[_0x4d5536(0x1ee)]!==0x1||((_0x27cfa2=_0x348e06[0x0])==null?void 0x0:_0x27cfa2['drawingType'])!==_0x1652cd[_0x4d5536(0x156)])return null;let {unitId:_0x41418f,subUnitId:_0x327800,drawingId:_0x2b1d55}=_0x348e06[0x0],_0x5988aa=_0xee6238['getShapeTypeById'](_0x41418f,_0x327800,_0x2b1d55),_0x493d55=_0xee6238[_0x4d5536(0x274)](_0x41418f,_0x327800,_0x2b1d55);return _0x5988aa===void 0x0||!_0x493d55?null:{'unitId':_0x41418f,'subUnitId':_0x327800,'drawingId':_0x2b1d55,'shapeType':_0x5988aa,'shapeData':_0x493d55};},_0x1a98da=_0x24248b(()=>new _0x1f9019(_0x158c5a=>{const _0x42fd72=_0xe027;let _0x306a6d=()=>_0x158c5a[_0x42fd72(0xbb)](_0x4e600f()),_0x98bde1=_0x77728['focus$'][_0x42fd72(0x120)](_0x306a6d),_0x1662c3=_0x4df5c6[_0x42fd72(0x1b3)](_0x1ce79d=>{_0x1ce79d['id']===_0x4aaefb['id']&&_0x306a6d();});return _0x306a6d(),()=>{const _0x2c8d3f=_0x42fd72;_0x98bde1[_0x2c8d3f(0x28b)](),_0x1662c3[_0x2c8d3f(0xb0)]();};}),_0x4e600f(),!0x1,[_0x4df5c6,_0xee6238,_0x77728]);return{'selection':_0x1a98da,'updateShapeData':_0x15c162=>{const _0x1b123f=_0xe027;_0x1a98da&&Yr(_0x4df5c6,_0x1a98da[_0x1b123f(0xa2)],_0x1a98da[_0x1b123f(0x2d2)],_0x1a98da[_0x1b123f(0x198)],{'oldShapeData':_0x1a98da[_0x1b123f(0x240)]},_0x15c162);}};}function _0x3d03(){const _0x223612=['pick','getShapeModel','sectionCanvas','transformByState','getSelectedObjectMap','drawing-ui.objectListPanel.lock','adjName','add','_adjName','fillType','getImageSourceCache','permissionPointUpdate$','target','_commandService','UNIVER_DOC','_openShapeEditPanel','pluginName','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_getFocusedShapeAtPoint','6441230yMVkRw','round','getDrawingEffectBounds','headerLayoutKey','_baseShapeTop','activeTarget','_getDisposePopups','drawingType','docs-shape-ui.quickStyles','onDblclick$','PARAGRAPH','_drawSimpleText','SolidFill','makeDirty','subscribe','filter','LAYOUT','docs-shape-ui.ribbon.shape-format.arrange-forward','angle','_docPrintInterceptorService','setFallbackVisible','PictureFill','drawing-ui.objectListPanel.name','getDrawingDataForUnit','isEditing','svg','string','strokeWidth','paragraphId','inline','_baseShapeHeight','getShapeTextRect','params','_getShapeAdjustPointListById','_attachAdjustEvent','getOwnPropertyDescriptor','translate','restore','doc.shape.edit.panel','invert','constructor','drawing-ui.objectListPanel.filterAll','delete','_adjHandlerPointerMove','_renderWithCache','onPointerMove$','_draw','onerror','FromArray','_activeAdjustInfo','focus$','isRichText','docs-shape-ui.textWrap.square','title','getPageDrawingIds','OFFSET','_registerIcons','registerComponent','register','back','toPrimitive','drawing-ui.objectListPanel.unlockHint','resolveHyperLinkAt','_refreshShapeData','value','drawing-ui.objectListPanel.hide','WRAP_TOP_AND_BOTTOM','prototype','DRAWING_SHAPE','addObject','mergeMenu','onSavingEditorData$','setEditing','RIBBON','asObservable','create','#2563EB','classType','_initUIPart','doc-shape-adjust-point-','drawing-ui.objectListPanel.lockAll','dataModel','docs-shape-format-font-family-menu','offsetX','shapeKey','sectionFloating','clipByShape','refreshFormulaPresentation','symbol','srcRect','render','drawing-ui.objectListPanel.title','paragraphs','_activeShapeAdjustPointList','none','square','updateDocumentDataMargin','drawing-ui.objectListPanel.hideAll','localeService','fill','preValue','getUnitType','with','_componentManager','draw','getObjectIncludeInGroup','drawing-ui.objectListPanel.nameInput','4ANmlPq','disableObjectsEvent','_docsShapeService','splice','getPresentation','_initEditingParams','getAllRenderersOfType','startIndex','doc.shape.floating-toolbar','transformForAngle','true','getState','clear','_formulaAnimation','_drawingType','top-bottom','clip','hideInfoPopup','docs-shape-contextual-ribbon','changing$','Arrow','setShapeProps','isMainScene','_layoutInteraction','1519665DYUHml','_urlImageService','_insertShapes','drawingId','actualHeight','horizontal','_formulaKey','formulaBinding','shapeModel','transformVector2SceneCoord','_shapeFloatingToolbarService','BottomIcon','DocsShapeWrapSquareIcon','getEditing','presentation','DocumentEntity','shapeId','startArrow','drawing-ui.objectListPanel.dragToReorder','212025JwlKOC','autoFitType','docs-shape-ui.hidePanel','_setTransForm','createControl$','extensionGroups','_injector','refreshShapeFillImage','cos','_activeShapeInfo','registerRenderModule','onCommandExecuted','visible','buildClipPath','setShapeData','2559501oxxuNI','updateDocumentStyle','getInterceptPoints','getMatrix','_drawRichTextLayer','getShapePopupMenus','version','drawing-ui.objectListPanel.description','isRenderLinePointsMode','data','complete','_isStartAdjusting','clearControl$','packageName','docs-shape-ui.textWrap.topAndBottom','_transform','refreshTransform$','CONTENT','_sidebarService','drawing-ui.objectListPanel.moveBackward','_updateAdjustControlPositions','disableShapeOption','_drawShapeText','contentHeight','updateShapeFillImage','_endLayoutInteraction','actions','drawing-ui.objectListPanel.unlockAll','startOffset','offsetY','shapeText','getSelfOrHeaderFooterModel','setSrcRect','enableObjectsEvent','onload','has','docs-shape-ui.mobile.delete','378972Jdmxxk','_props','div','top-center','shape-editor-ui.arrange.back','docs-shape-ui.config','OTHERS','shape-text-','map','getDrawingOrder','5.5','skeFooters','paragraph','skeTables','stopPropagation','featurePluginUpdateNotification','8EOXoBA','_transformCalculateSrcRect','length','setPrstGeom','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','@univerjs-pro/docs-shape-ui','attachPopupToObject','_configService','onPointerDown$','some','fillImageSource','drawings','docs-shape-ui.objectListPanel.open','isRender','_getRenderModules','_shapeId','doc.shape.picker.component','behind','_activeShapeId','backward','panel','drawing-ui.objectListPanel.descriptionPlaceholder','current','_ribbonService','height','setFillImage','layoutType','onPointerUp$','skeHeaders','completeEditing','Copy','adjHandleSize','getShapeTypeById','keys','docs-shape-ui.ribbon.shape-format.text-control','shape-editor-ui.arrange.forward','WRAP_NONE','setConfig','getShapeTextData','docs-shape-ui.shape-format.wrapping-style-label','docs-shape-ui.crop.shape','_loadShapePictureFill','MoveDownIcon','docs-shape-ui.insertShape','_permissionService','_canEdit','_isOpenedShapeEditPanel','adjHandleFill','currentColor','docs-shape-ui.formatShape','doc.shape.object-list.panel','_update','_initPrinting','BEHIND_TEXT','drawing-ui.objectListPanel.showAll','_getShapeAdjustInfosById','description','doc.operation.open-shape-object-list-panel','_lastEditingShapeKey','docs-shape-text-','custom','enhanceParams','_getDependencies','onReady','1em','values','docs-shape-ui.mobile.style','forward','_baseShapeWidth','_shapeEditPanelVersion','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','.below','close','bottom','Image','SHAPE','getSkeletonData','_addShapeAdjustControl','drawing-ui.objectListPanel.unlock','CROSSHAIR','decorate','_updateShapeAdjustControls','_initMenu','_registerPickers','shapeData','push','DOC','docs-shape-ui.objectListPanel.title','shape-editor-ui.toolbar.quickStyles','_popupTargetKeys','_registerObjectListPanel','visible$','getCurrentUnitOfType','TOP','_updateShape','drawing-ui.objectListPanel.expand','_activeShapeModel','path','DRAWING_IMAGE','DocsShapeWrapInFrontOfTextIcon','getRealBound','order','drawing-ui.objectListPanel.locate','endOffset','getUnit','DocsShapeWrapTopBottomIcon','componentKey','onStarting','getInverseCoord','docs-shape-ui.ribbon.shape-format.arrange-backward','fontFamily','docs-shape-ui.shape-format.style-ribbon-control','setContextValue','_toVisualAdjustPoint','_completionFrame','PRINTING_COMPONENT_COLLECT','transform','update$','isInGroup','SpAutoFit','_registerDrawingFocusChangeHandler','_adjustPointObjects','addImageSourceCache','_localeService','object','_drawRichText','extraProps','_releaseRenderCache','_applyFormulaAutoFitSize','_clipService','presentationChanged$','viewBound','getDrawingVisible','DRAWING_DOM','_docDrawingShapeRenderController','setPresentation','getShapeDataById','skeDrawings','_baseShapeLeft','_getShapeInfo','_init','getTransformerByCreate','syncExecuteCommand','clone','univer-grid\x20univer-gap-3','_registerImageShapeClipDelegate','ObjectLayersIcon','_createShapeAdjustControls','_initEvents','_editingParams$','_drawingManagerService','_getActiveDrawingParam','_initSelection','registerClipDelegate','DocsShapeWrapBehindTextIcon','MoveUpIcon','_clearShapeAdjustControls','default','Medium','unsubscribe','_unitId','_config','_docCanvasPopManagerService','TRUE','set','docs-shape-ui.shape-format.formula-ribbon-control','drawing','SELECTOR','drawing-ui.objectListPanel.search','selectable','_registerDrawingTransformHandler','type','docs-shape-ui.ribbon.shape-format.style-control','getShapeData','save','image','open','_isShouldShowDrawingShapeAdjust','getDrawingPoints','doc.operation.close-doc-shape-format-panel','Large','prstGeom','translateWithPrecision','changeStart$','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','icon','COMMAND','fallbackHeight','_shapeFormulaService','trim','isLineShape','presetId','docs-shape-ui.ribbon.shape-format.formula-control','BUTTON','segmentId','animationEnabled','getRenderUnitById','headerId','_iconManager','isHit','setCollapsedIds','getSnapshot','canDispose','_menuManagerService','top','drawing-ui.objectListPanel.empty','_updateSrcRectByTransform','popup','updateContext','_closeShapeEditPanel','URL','getFocusDrawings','_clearPopups','_imageIoService','getCurrentTypeOfUnit$','getContextValue','sheet.image-clip.shape-picker.component','docs-shape-ui.textWrap.behindText','getAdjustInfoByName','docs-shape-ui.shape-format.text-ribbon-control','setCanUseShapeClip','M2\x203h16M2\x2017h16','getActiveViewportByCoord','isHorizontal','3303786YBAMJw','applyPoint','composeMatrix','executeCommand','find','getShapeType','subUnitId','_registerOperations','shape-editor-ui.toolbar.changeShape','sin','style','getActiveTextRange','_docLayoutInteractionService','reduce','doc.operation.apply-shape-quick-style','shapeType','refreshAdjustControls','_loadAndSetImage','registerCommand','scene','_shapeTextEditingService','size','multiply','max','docs-shape-ui.textWrap.inline','_formulaShapes','_measure','None','get','_univerInstanceService','GROUP','width','objects','behindDoc','editingParams$','doc','_clearCompletionFrame','onTransformChange$','UNIVER_SHEET','IN_FRONT_OF_TEXT','docs-shape-ui.shape-format.quick-style-gallery','drawing-ui.objectListPanel.close','stroke','_adjHandlerPointerUp','_onSavingEditorData$','cancelEditing','Line','context-bar','_getActiveDrawingShape','menu','paragraphMenuPlacement','INLINE','pipe','docs-shape-ui.ribbon.shape-format','contentVerticalOffset','scale','ShapeIcon','docs-shape-ui.ribbon.shape-format.arrange-front','text','getCanvasElement','PaintIcon','_sidebarDisposable','hidden','clearAdjustValue','getAutoFitPresentations','_mobileEditorService','call','getImage','unitId','_renderManagerService','remove$','OPERATION','renderDrawingShape','setOnSavingEditorData','docs-shape-ui.openPanel','_handleCreateControl','getDrawingData','clipTop','defineProperty','endArrow','resetCursor','left','dispose','changeEnd$','_subUnitId','disposeWithMe','438953aIPpbk','SolidLine','_registerComponents','getBody','0.8','function','name','next','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','WRAP_SQUARE','front','pages','flipX','canvasElement','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','_visible','setFormulaPresentation','1.2','getDrawingOKey','_hyperLinkRegions','fallbackWidth','error','hideContextualTab','formulaPresentation','hasDefault','subscribeEvent','rect','_canEditShape','docs-shape-ui.deleteShape','spaceBelowApply','_getShapePopup','DocsShapeTextEditorContainer','getValue','univer-box-border\x20univer-px-4\x20univer-text-sm','forEach','beginPath','_popupMenuListener','focusDrawing','getFocusedUnit','getTransformer','_disposePopupsByUnit','TopmostIcon','_registerFloatingToolbar','vertical','gradientEndColor','entries','getUnitId','getDrawingSearch','setAdjustValueByName','drawWith','wrapStrategy','span','_getSceneByUnitId','color','moveRange','below','getViewports','_context','ShapeFormatSettingIcon','oKey','getActualSize','clipHeight','_hide','calculate','pageWidth','VIEW_MAIN','_instanceService','getParent','isDrawingObject','_initialize','9UJAndD','Path','_contextService','getDrawingByParam','attachTransformerTo'];_0x3d03=function(){return _0x223612;};return _0x3d03();}function ii(){const _0x1eade5=_0x43e8a4;let {selection:_0x637ef4,updateShapeData:_0x1c9f43}=ri();return _0x637ef4?_0x5619d4(_0xd6f3ea,{'shapeData':_0x637ef4[_0x1eade5(0x240)],'shapeType':_0x637ef4[_0x1eade5(0x6d)],'onUpdateShapeData':_0x1c9f43}):null;}function ai(){const _0x19d34e=_0x43e8a4;let _0xfe8be4=_0x2f1968(_0x5d4fd5),_0x255657=_0x2f1968(_0x474b31),{selection:_0x72d87d}=ri();return _0x72d87d?_0x5619d4(_0x51195d,{'type':_0x4bc092(_0x72d87d[_0x19d34e(0x240)]),'ariaLabel':_0x255657['t'](_0x19d34e(0x11a)),'activePresetId':_0x3d44c4(_0x72d87d[_0x19d34e(0x240)]),'onSelect':_0x4804cc=>_0xfe8be4[_0x19d34e(0x2cf)](Pr['id'],{'presetId':_0x4804cc})}):null;}function oi(){const _0x3c3fe0=_0x43e8a4;let {selection:_0x1d74d9,updateShapeData:_0x91f1df}=ri();return _0x1d74d9?_0x5619d4(_0x473bd6,{'fontFamilyPopupDataComponent':_0x3c3fe0(0x164),'shapeData':_0x1d74d9['shapeData'],'onUpdateShapeData':_0x91f1df}):null;}function si(){const _0x41910d=_0x43e8a4;var _0x1c206c;let {selection:_0x3a1806,updateShapeData:_0x436f3a}=ri(),_0x10a1f4=_0x29c39b({'hostType':_0x37d2f3[_0x41910d(0x10d)],'unitId':(_0x3a1806==null?void 0x0:_0x3a1806['unitId'])??'','subUnitId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x2d2)])??'','shapeId':(_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x198)])??'','shapeData':_0x3a1806==null?void 0x0:_0x3a1806[_0x41910d(0x240)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x41910d(0x235),'onUpdateBinding':_0x2e3478=>_0x436f3a({'formulaBinding':_0x2e3478})}),_0x55b57d=((_0x1c206c=_0x10a1f4[_0x41910d(0x1ad)])==null?void 0x0:_0x1c206c['flatMap'](_0x352be7=>_0x352be7[_0x41910d(0x1d1)])['filter'](_0x8c8680=>_0x8c8680['visible']!==!0x1))??[];return _0x3a1806!=null&&_0x3a1806['shapeData'][_0x41910d(0x19c)]?_0x5619d4(_0xcdf079,{'actions':_0x55b57d,'panel':_0x10a1f4[_0x41910d(0x200)]}):null;}function ci({value:_0x40cab1}){const _0x44c3ed=_0x43e8a4;let _0x3b84e6=_0x2f1968(_0x474b31),_0x527b88=ni[_0x44c3ed(0x2d0)](_0x577fdf=>_0x577fdf[_0x44c3ed(0x152)]===_0x40cab1)??ni[0x0];return _0x527b88?_0x5619d4(_0x44c3ed(0xe7),{'children':_0x3b84e6['t'](_0x527b88['label'])}):null;}const li=_0x43e8a4(0x298),ui=_0x43e8a4(0x20e),di=_0x43e8a4(0x2ac),fi=_0x43e8a4(0x123),pi=_0x43e8a4(0x259),mi=_0x43e8a4(0x97),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi='docs-shape-ui.ribbon.shape-format.wrapping-style';function _i(_0x318a17){const _0x2de3fa=_0x43e8a4;let _0x2cd502=_0x318a17['get'](_0x5d4fd5),_0x1c7c63=_0x318a17[_0x2de3fa(0x7a)](_0x4ed84c),_0x109ba9=_0x318a17[_0x2de3fa(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x2c4cdc=>{const _0xf7f6fb=_0x2de3fa;let _0x146e45=()=>{const _0x37aa9b=_0xe027;let _0x9ed10f=vi(_0x318a17),_0x1b680f=_0x9ed10f?_0x109ba9[_0x37aa9b(0x274)](_0x9ed10f['unitId'],_0x9ed10f[_0x37aa9b(0x2d2)],_0x9ed10f[_0x37aa9b(0x198)]):null;_0x2c4cdc['next'](_0x1b680f?_0x3d44c4(_0x1b680f)??'':'');},_0x25c476=_0x1c7c63[_0xf7f6fb(0x144)][_0xf7f6fb(0x120)](_0x146e45),_0x37a80e=_0x2cd502['onCommandExecuted'](_0x4f4230=>{_0x4f4230['id']===_0x4aaefb['id']&&_0x146e45();});return _0x146e45(),()=>{const _0x59d8cb=_0xf7f6fb;_0x25c476[_0x59d8cb(0x28b)](),_0x37a80e['dispose']();};});}function vi(_0x2c3717){const _0x33767a=_0x43e8a4;var _0x28ab6f;let _0x50750f=_0x2c3717[_0x33767a(0x7a)](_0x4ed84c)[_0x33767a(0x2bf)]();return _0x50750f[_0x33767a(0x1ee)]===0x1&&((_0x28ab6f=_0x50750f[0x0])==null?void 0x0:_0x28ab6f[_0x33767a(0x119)])===_0x1652cd[_0x33767a(0x156)]?_0x50750f[0x0]:null;}function yi(_0x6925d8){const _0xe43553=_0x43e8a4;return(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0x210)]?_0x6925d8[_0xe43553(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0xe43553(0x221)]:_0x4e8b32['IN_FRONT_OF_TEXT']:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5[_0xe43553(0xbd)]?_0x4e8b32[_0xe43553(0xbd)]:(_0x6925d8==null?void 0x0:_0x6925d8[_0xe43553(0x206)])===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0xe43553(0x154)]:_0x4e8b32[_0xe43553(0x91)];}function bi(_0x77eab5){const _0x5c9101=_0x43e8a4;let _0x4089d4=_0x77eab5['get'](_0x5d4fd5),_0x3b291a=_0x77eab5[_0x5c9101(0x7a)](_0x4ed84c),_0x17b880=_0x77eab5['get'](_0x58ad01);return new _0x1f9019(_0x4e274d=>{const _0x26d24b=_0x5c9101;let _0x2798ac=()=>{const _0x503618=_0xe027;var _0x6f6b76;let _0x791841=vi(_0x77eab5),_0x1739d2=_0x791841?_0x17b880[_0x503618(0x254)](_0x791841[_0x503618(0xa2)],_0x37d2f3[_0x503618(0x10d)]):void 0x0;_0x4e274d[_0x503618(0xbb)](yi(_0x791841?_0x1739d2==null||(_0x6f6b76=_0x1739d2[_0x503618(0x2b5)]()[_0x503618(0x1f7)])==null?void 0x0:_0x6f6b76[_0x791841[_0x503618(0x198)]]:void 0x0));},_0x21f2b3=_0x3b291a[_0x26d24b(0x144)][_0x26d24b(0x120)](_0x2798ac),_0x1d02d8=_0x4089d4[_0x26d24b(0x1b3)](_0x3f8b31=>{_0x3f8b31['id']===_0x387c40['id']&&_0x2798ac();});return _0x2798ac(),()=>{_0x21f2b3['unsubscribe'](),_0x1d02d8['dispose']();};})[_0x5c9101(0x92)](_0x598686());}function xi(_0x16100d,_0x129cdc=!0x1){const _0x331d53=_0x43e8a4;let _0x49f38a=_0x16100d['get'](_0x5d4fd5),_0x25e30c=_0x16100d['get'](_0x4ed84c),_0x1759d9=_0x16100d[_0x331d53(0x7a)](_0x3e6ec4);return new _0x1f9019(_0x3a4e31=>{const _0x307a18=_0x331d53;let _0x49de18=()=>{const _0x42d351=_0xe027;let _0xb526ba=vi(_0x16100d);if(!_0xb526ba){_0x3a4e31[_0x42d351(0xbb)](!0x0);return;}let _0x30ebba=_0x1759d9[_0x42d351(0x274)](_0xb526ba[_0x42d351(0xa2)],_0xb526ba[_0x42d351(0x2d2)],_0xb526ba[_0x42d351(0x198)]);_0x3a4e31[_0x42d351(0xbb)](!_0x30ebba||_0x129cdc&&_0x30ebba[_0x42d351(0x19c)]==null);},_0x450abb=_0x25e30c[_0x307a18(0x144)]['subscribe'](_0x49de18),_0x437920=_0x49f38a[_0x307a18(0x1b3)](_0x5e892a=>{_0x5e892a['id']===_0x4aaefb['id']&&_0x49de18();});return _0x49de18(),()=>{const _0x3ea996=_0x307a18;_0x450abb[_0x3ea996(0x28b)](),_0x437920[_0x3ea996(0xb0)]();};});}function Si(_0x4e2060){const _0x2cd690=_0x43e8a4;let _0x23d3d2=_0x4e2060[_0x2cd690(0x7a)](_0x4ed84c),_0x53f746=_0x4e2060['get'](_0x3e6ec4);return _0x23d3d2[_0x2cd690(0x144)][_0x2cd690(0x92)](_0x45bea4(_0x23d3d2['getFocusDrawings']()),_0x573771(()=>{const _0x225032=_0x2cd690;let _0x1ad070=vi(_0x4e2060),_0x377053=_0x1ad070?_0x53f746[_0x225032(0x20c)](_0x1ad070['unitId'],_0x1ad070[_0x225032(0x2d2)],_0x1ad070['drawingId']):void 0x0;return _0x377053===void 0x0||_0x3a8d31(_0x377053);}));}function Ci(_0x5bb36a){const _0x52e122=_0x43e8a4;return{'id':Pr['id'],'type':_0x3c5886[_0x52e122(0x293)],'icon':_0x52e122(0x9a),'title':_0x52e122(0x244),'tooltip':_0x52e122(0x244),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x5bb36a),'hidden$':xi(_0x5bb36a)};}function wi(_0x326d1e){const _0x4eb04d=_0x43e8a4;return{'id':Fr['id'],'type':_0x3c5886['SELECTOR'],'icon':_0x4eb04d(0x96),'title':_0x4eb04d(0x2d4),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x12e18b,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Si(_0x326d1e)};}function Ti(_0x15b202,_0x1d2abd,_0x41c09a=!0x1){const _0x4ae7ee=_0x43e8a4;return _0x4d8212=>({'id':_0x15b202,'type':_0x3c5886[_0x4ae7ee(0x2ad)],'label':{'name':_0x1d2abd,'hoverable':!0x1,'selectable':!0x1},'hidden$':xi(_0x4d8212,_0x41c09a)});}const Ei=Ti(li,Qr),Di=Ti(ui,$r),Oi=Ti(di,ei,!0x0);function ki(_0x8d854f){const _0x1a0763=_0x43e8a4;return{'id':gi,'type':_0x3c5886[_0x1a0763(0x293)],'icon':ni[0x0][_0x1a0763(0x2a5)],'label':ti,'selectionsCommandId':_0x35bcca['id'],'selections':ni[_0x1a0763(0x1e4)](({icon:_0x6bda1c,label:_0x5b1832,value:_0x209e74})=>({'value':_0x209e74,'label':_0x5b1832,'icon':_0x6bda1c,'params':()=>{const _0x24b47f=_0x1a0763;let _0x155677=vi(_0x8d854f);return _0x155677?{'unitId':_0x155677['unitId'],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawings':[{'unitId':_0x155677[_0x24b47f(0xa2)],'subUnitId':_0x155677[_0x24b47f(0x2d2)],'drawingId':_0x155677[_0x24b47f(0x198)]}],'wrappingStyle':_0x209e74}:void 0x0;}})),'value$':bi(_0x8d854f),'hidden$':xi(_0x8d854f)};}function Ai(_0x2c8e4,_0x50db02,_0x3e142e,_0x13cc7e){const _0x4db5e7=_0x43e8a4;return _0x5884fd=>({'id':_0x2c8e4,'commandId':_0x3c4545['id'],'type':_0x3c5886[_0x4db5e7(0x2ad)],'icon':_0x3e142e,'title':_0x13cc7e,'tooltip':_0x13cc7e,'hidden$':xi(_0x5884fd),'params':()=>{const _0x1bbc8a=_0x4db5e7;let _0x5bafc6=vi(_0x5884fd);return _0x5bafc6?{'unitId':_0x5bafc6[_0x1bbc8a(0xa2)],'subUnitId':_0x5bafc6[_0x1bbc8a(0x2d2)],'drawingIds':[_0x5bafc6[_0x1bbc8a(0x198)]],'arrangeType':_0x50db02}:void 0x0;}});}const ji=Ai(fi,_0x1f6748[_0x43e8a4(0x22f)],'MoveUpIcon',_0x43e8a4(0x20f)),Mi=Ai(pi,_0x1f6748[_0x43e8a4(0x1ff)],_0x43e8a4(0x216),'shape-editor-ui.arrange.backward'),Ni=Ai(mi,_0x1f6748['front'],_0x43e8a4(0xdd),'shape-editor-ui.arrange.front'),Pi=Ai(hi,_0x1f6748[_0x43e8a4(0x14d)],'BottomIcon',_0x43e8a4(0x1e0));function Fi(_0x26848f){const _0x3f650c=_0x43e8a4;return{'id':G['id'],'type':_0x3c5886['BUTTON'],'icon':'ShapeFormatSettingIcon','title':'docs-shape-ui.formatShape','tooltip':_0x3f650c(0x21d),'hidden$':xi(_0x26848f),'params':()=>{const _0x3dd8f0=_0x3f650c;let _0x23b654=vi(_0x26848f);return _0x23b654?{'unitId':_0x23b654[_0x3dd8f0(0xa2)],'subUnitId':_0x23b654[_0x3dd8f0(0x2d2)],'drawingId':_0x23b654[_0x3dd8f0(0x198)]}:void 0x0;}};}const Ii={[_0x242878[_0x43e8a4(0x15b)]]:{[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},[_0x10dcc9['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x374e3e}}}}},Li={[_0x59a1a7['MEDIA']]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x36964b=>({...Gr(_0x36964b),'title':void 0x0})}},[_0x59a1a7[_0x43e8a4(0x1e2)]]:{[Mr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x26c1b2[_0x43e8a4(0x11c)]]:{[_0x57116b[_0x43e8a4(0x122)]]:{[_0x4203e1]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x3f6de3]:{[_0x57116b['LAYOUT']]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x23a7e9]:{[_0x57116b[_0x43e8a4(0x122)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x5e7691]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0xdfd9ae]:{'insert':{[U['id']+_0x43e8a4(0x233)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Ri=_0x43e8a4(0x1f1),zi='1.1.0';const Bi={'type':_0x5e8815['OPERATION'],'id':_0x43e8a4(0x29f),'handler'(){return!0x0;}},Vi=_0x43e8a4(0x1e1),Hi={};function Ui(_0x5b6f76){'@babel/helpers - typeof';const _0x182071=_0x43e8a4;return Ui=typeof Symbol==_0x182071(0xb9)&&typeof Symbol['iterator']==_0x182071(0x16a)?function(_0x214abd){return typeof _0x214abd;}:function(_0x44fc8b){const _0x4e8e3b=_0x182071;return _0x44fc8b&&typeof Symbol=='function'&&_0x44fc8b[_0x4e8e3b(0x13a)]===Symbol&&_0x44fc8b!==Symbol[_0x4e8e3b(0x155)]?_0x4e8e3b(0x16a):typeof _0x44fc8b;},Ui(_0x5b6f76);}function Wi(_0x4c45b2,_0x2cdadb){const _0x53b88e=_0x43e8a4;if(Ui(_0x4c45b2)!=_0x53b88e(0x268)||!_0x4c45b2)return _0x4c45b2;var _0x191c78=_0x4c45b2[Symbol[_0x53b88e(0x14e)]];if(_0x191c78!==void 0x0){var _0x389171=_0x191c78[_0x53b88e(0xa0)](_0x4c45b2,_0x2cdadb||_0x53b88e(0x289));if(Ui(_0x389171)!='object')return _0x389171;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2cdadb===_0x53b88e(0x12c)?String:Number)(_0x4c45b2);}function Gi(_0x5093aa){const _0x369d17=_0x43e8a4;var _0x36ef36=Wi(_0x5093aa,_0x369d17(0x12c));return Ui(_0x36ef36)==_0x369d17(0x16a)?_0x36ef36:_0x36ef36+'';}function J(_0x114860,_0x2ef095,_0x3b0a44){const _0x3e30fb=_0x43e8a4;return(_0x2ef095=Gi(_0x2ef095))in _0x114860?Object[_0x3e30fb(0xac)](_0x114860,_0x2ef095,{'value':_0x3b0a44,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x114860[_0x2ef095]=_0x3b0a44,_0x114860;}var Ki=class extends _0x479a18{constructor(_0x280e57,_0x59c50d){const _0x1ad754=_0x43e8a4;super(_0x280e57,_0x59c50d),J(this,_0x1ad754(0x1fb),null),J(this,_0x1ad754(0x107),null),J(this,'_unitId',null),J(this,_0x1ad754(0xb2),null),_0x59c50d&&this[_0x1ad754(0x192)](_0x59c50d);}[_0x43e8a4(0xe3)](){const _0x11d9e5=_0x43e8a4;return{'unitId':this['_unitId'],'subUnitId':this[_0x11d9e5(0xb2)],'drawingId':this[_0x11d9e5(0x1fb)]};}[_0x43e8a4(0x192)](_0x1aefbc){const _0x23bc69=_0x43e8a4;_0x1aefbc[_0x23bc69(0x1a5)]!==void 0x0&&(this[_0x23bc69(0x1fb)]=_0x1aefbc[_0x23bc69(0x1a5)]),_0x1aefbc[_0x23bc69(0x105)]!==void 0x0&&(this[_0x23bc69(0x107)]=_0x1aefbc[_0x23bc69(0x105)]),_0x1aefbc[_0x23bc69(0xa2)]!==void 0x0&&(this[_0x23bc69(0x28c)]=_0x1aefbc[_0x23bc69(0xa2)]),_0x1aefbc['subUnitId']!==void 0x0&&(this['_subUnitId']=_0x1aefbc[_0x23bc69(0x2d2)]),this[_0x23bc69(0x102)]({'width':_0x1aefbc[_0x23bc69(0x7d)],'height':_0x1aefbc['height']});}[_0x43e8a4(0x140)](_0x20b9a5){const _0x4a91da=_0x43e8a4;_0x5d9ad7[_0x4a91da(0xe5)](_0x20b9a5,{'radius':_0x1f925b[_0x4a91da(0x20b)],'fill':_0x1f925b[_0x4a91da(0x21b)],'stroke':_0x1f925b['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function qi(_0x3bf224,_0x38472d,_0x14bee7){const _0xa713ff=_0x43e8a4;let _0x4c50cd={..._0x38472d,'dataModel':{..._0x38472d[_0xa713ff(0x163)]??{},..._0x14bee7?{'doc':_0x14bee7}:null}},_0x472b4a=_0x17c928(_0x3bf224,_0x4c50cd),_0x49a10b=_0xd357af(_0x472b4a);return{'clip':_0x1c7d20(_0x472b4a,_0x49a10b),'wrapStrategy':_0x49a10b};}var Y=class extends _0x479a18{constructor(_0x5c5290,_0x2f5cf9){const _0x552356=_0x43e8a4;super(_0x5c5290,_0x2f5cf9),J(this,_0x552356(0xc7),[]),J(this,_0x552356(0x1dd),void 0x0),J(this,'_formulaAnimation',new _0x41ef0b(()=>this['makeDirty'](!0x0),()=>this['_applyFormulaAutoFitSize']())),J(this,'_transformCalculateSrcRect',!0x0),J(this,_0x552356(0x18b),_0x1652cd['DRAWING_SHAPE']),J(this,_0x552356(0xf8),!0x0),this[_0x552356(0x1dd)]={..._0x2f5cf9},this['_formulaAnimation'][_0x552356(0x273)](_0x2f5cf9[_0x552356(0xcb)],_0x2f5cf9['animateFormulaPresentation']!==!0x1),this[_0x552356(0x278)](),this[_0x552356(0x26c)]();}['_init'](){const _0x44113a=_0x43e8a4;this[_0x44113a(0x83)][_0x44113a(0xcd)](_0x6652c0=>{const _0x34b078=_0x44113a;this[_0x34b078(0x2ba)](_0x6652c0);});}[_0x43e8a4(0x1ef)](_0x1ae12c){const _0xab1588=_0x43e8a4;this[_0xab1588(0x1dd)][_0xab1588(0x2a1)]=_0x1ae12c;}['resolveHyperLinkAt'](_0x39dcb8){const _0x93c6df=_0x43e8a4;if(this['_props'][_0x93c6df(0x12a)])return null;let _0xc5bff6=this[_0x93c6df(0x258)](_0x39dcb8),{width:_0x4b7592,height:_0x529126}=this[_0x93c6df(0x250)]();return _0x436b63(this[_0x93c6df(0xc7)],{'x':(this[_0x93c6df(0xc0)]?-_0xc5bff6['x']:_0xc5bff6['x'])+_0x4b7592/0x2,'y':_0xc5bff6['y']+_0x529126/0x2});}[_0x43e8a4(0x15a)](_0x548241){const _0x17721d=_0x43e8a4;this['_props'][_0x17721d(0x12a)]=_0x548241,this[_0x17721d(0x11f)](!0x0);}[_0x43e8a4(0xc4)](_0x4876ae,_0x139935=!0x0){const _0x56d107=_0x43e8a4;this[_0x56d107(0x18a)]['setPresentation'](_0x4876ae,_0x139935),this[_0x56d107(0x1dd)][_0x56d107(0xcb)]=_0x4876ae,this[_0x56d107(0x26c)](),this[_0x56d107(0x11f)](!0x0);}[_0x43e8a4(0x26c)](){const _0x13a163=_0x43e8a4;let _0xa11a3e=this[_0x13a163(0x1dd)]['shapeModel'],_0x5773f8=_0xa11a3e[_0x13a163(0x212)](),_0x3b0d52=_0x33266c(_0x5773f8==null?void 0x0:_0x5773f8[_0x13a163(0x163)]),_0x98c2cb=_0x3b0d52==null?void 0x0:_0x3b0d52[_0x13a163(0x81)],_0x5ef685=this[_0x13a163(0x18a)][_0x13a163(0x9e)]();if(!_0x98c2cb||_0x5ef685[_0x13a163(0x1ee)]===0x0)return;_0xa11a3e[_0x13a163(0x2bc)]({'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]});let _0x27114d=_0x4b8d5f({'documentData':_0x5ef685[_0x13a163(0x1e4)](_0x12e11e=>_0x59b1ab(_0x98c2cb,_0x12e11e)),'height':this[_0x13a163(0x204)],'shapeData':_0xa11a3e[_0x13a163(0x299)](),'textRect':_0xa11a3e[_0x13a163(0x131)]({'left':0x0,'top':0x0,'width':this[_0x13a163(0x7d)],'height':this[_0x13a163(0x204)]}),'width':this[_0x13a163(0x7d)]});if(_0x27114d){var _0xed22ec;this['resize'](_0x27114d[_0x13a163(0x7d)],_0x27114d[_0x13a163(0x204)]),(_0xed22ec=this['getScene']())==null||(_0xed22ec=_0xed22ec[_0x13a163(0xdb)]())==null||_0xed22ec['debounceRefreshControls']();}}get['unitId'](){return this['_props']['unitId'];}get[_0x43e8a4(0x2d2)](){const _0x5c4f57=_0x43e8a4;return this['_props'][_0x5c4f57(0x2d2)];}[_0x43e8a4(0x2ba)](_0x1dab22){const _0x34034f=_0x43e8a4;if(this[_0x34034f(0x1dd)][_0x34034f(0x16b)]==null||!this[_0x34034f(0x1ed)])return;let {width:_0x1fd54e,height:_0x223257}=this,{width:_0xa300d6=0x0,height:_0x9e2573=0x0}=_0x1dab22[_0x34034f(0x176)],{left:_0xd71235=0x0,top:_0x56c4db=0x0,right:_0x5d5538=0x0,bottom:_0x2db8c1=0x0}=this[_0x34034f(0x1dd)][_0x34034f(0x16b)],_0x5003b1=_0xd71235,_0x4438ff=_0x56c4db,_0x58e234=_0x5d5538,_0x5c9ea9=_0x2db8c1,_0x355495=!0x1;if(_0xa300d6!==0x0&&_0xa300d6!==_0x1fd54e){let _0x564482=_0xd71235/_0xa300d6,_0x2e7465=_0x5d5538/_0xa300d6;_0x5003b1=_0x1fd54e*_0x564482,_0x58e234=_0x1fd54e*_0x2e7465,_0x355495=!0x0;}if(_0x9e2573!==0x0&&_0x9e2573!==_0x223257){let _0xda409c=_0x56c4db/_0x9e2573,_0x3a00f0=_0x2db8c1/_0x9e2573;_0x4438ff=_0x223257*_0xda409c,_0x5c9ea9=_0x223257*_0x3a00f0,_0x355495=!0x0;}_0x355495&&this[_0x34034f(0x1d7)]({'left':_0x5003b1,'top':_0x4438ff,'right':_0x58e234,'bottom':_0x5c9ea9});}[_0x43e8a4(0x1d7)](_0x47b319){const _0x211e7d=_0x43e8a4;this['_props']['srcRect']=_0x47b319,this[_0x211e7d(0x11f)](!0x0);}[_0x43e8a4(0x205)](_0x2b0860){const _0x29ac12=_0x43e8a4;this[_0x29ac12(0x1dd)][_0x29ac12(0x29b)]=_0x2b0860,this[_0x29ac12(0x11f)](!0x0);}set[_0x43e8a4(0x260)](_0x233018){const _0x54743f=_0x43e8a4;this[_0x54743f(0x1c6)]=_0x233018;}get['transform'](){const _0x35bde3=_0x43e8a4;this[_0x35bde3(0x1c6)]||this[_0x35bde3(0x1ab)]();let _0x9c4bea=this[_0x35bde3(0x1c6)][_0x35bde3(0x27b)]();return this[_0x35bde3(0x186)](_0x9c4bea);}get['shapeModel'](){const _0x142410=_0x43e8a4;return this[_0x142410(0x1dd)]['shapeModel'];}get[_0x43e8a4(0x1a5)](){const _0x5e9b9c=_0x43e8a4;return this['_props'][_0x5e9b9c(0x1a5)];}get[_0x43e8a4(0x15f)](){const _0x2b9230=_0x43e8a4;return _0x5ccc48[_0x2b9230(0x237)];}[_0x43e8a4(0x140)](_0x4d096d,_0x559378,_0x2a2a3b,_0xf21f6){const _0x55fbe3=_0x43e8a4;let _0x2aa0b7=this['_props'][_0x55fbe3(0x19d)];if(!_0x2aa0b7||!_0x559378)return;let _0x37e222=_0x2a2a3b??this[_0x55fbe3(0x7d)],_0x44597c=_0xf21f6??this[_0x55fbe3(0x204)],_0x1c6047={'shapeType':_0x2aa0b7[_0x55fbe3(0x2d1)](),'width':_0x37e222,'height':_0x44597c},_0x330e24={'renderMode':_0x17498a[_0x55fbe3(0xfb)],'oKey':this[_0x55fbe3(0xef)],'image':this['_props'][_0x55fbe3(0x29b)],'angle':this['angle']};_0x2aa0b7['updateContext'](_0x1c6047),_0x4d096d[_0x55fbe3(0x29a)]();let _0x51580c={'top':0x0,'left':0x0,'width':_0x37e222,'height':_0x44597c},_0x353d51=_0x2aa0b7[_0x55fbe3(0x114)](_0x51580c);_0x353d51?this[_0x55fbe3(0x13e)](_0x4d096d,_0x353d51,_0x5f564c=>{_0x2aa0b7['render'](_0x5f564c,_0x51580c,_0x330e24);}):(this[_0x55fbe3(0x26b)](),_0x2aa0b7[_0x55fbe3(0x16c)](_0x4d096d,_0x51580c,_0x330e24)),_0x4d096d[_0x55fbe3(0x137)]();let _0x277afd=_0x2aa0b7['getShapeTextData'](),_0x4e228c=_0x2aa0b7[_0x55fbe3(0x131)](_0x51580c),_0x4ff5a9=_0x2aa0b7[_0x55fbe3(0x2aa)]();if(_0x277afd&&_0x4e228c&&!_0x4ff5a9){_0x4d096d[_0x55fbe3(0x29a)](),this['getState']()[_0x55fbe3(0xc0)]&&_0x4d096d[_0x55fbe3(0x95)](-0x1,0x1);let _0x212233=_0x37e222/0x2,_0x2d044a=_0x44597c/0x2;_0x4d096d[_0x55fbe3(0x136)](-_0x212233,-_0x2d044a),_0x4d096d[_0x55fbe3(0xd7)](),this[_0x55fbe3(0x1cd)](_0x4d096d,_0x277afd,_0x4e228c),_0x4d096d[_0x55fbe3(0x137)]();}}['getDrawingPoints'](_0x146ff0){}['_drawShapeText'](_0x147eff,_0x5583a1,_0x134d66){const _0x38cd66=_0x43e8a4;var _0x3b94cf;this[_0x38cd66(0xc7)]=[],!this[_0x38cd66(0x1dd)][_0x38cd66(0x12a)]&&(!((_0x3b94cf=_0x5583a1['dataModel'])!=null&&_0x3b94cf[_0x38cd66(0x81)])&&'isRichText'in _0x5583a1&&_0x5583a1[_0x38cd66(0x145)]===!0x1?this[_0x38cd66(0x11d)](_0x147eff,_0x5583a1,_0x134d66):this[_0x38cd66(0x269)](_0x147eff,_0x5583a1,_0x134d66));}[_0x43e8a4(0x11d)](_0x102a10,_0x16c4d2,_0x707721){const _0x319d04=_0x43e8a4;this[_0x319d04(0x269)](_0x102a10,{..._0x16c4d2,'text':_0x16c4d2['text']??'','dataModel':{'doc':_0x5e99a9(_0x16c4d2,_0x319d04(0x227)+this[_0x319d04(0xef)])}},_0x707721);}['_drawRichText'](_0x242a47,_0x3fe3e7,_0xab1864){const _0x46a03a=_0x43e8a4;_0x2b587f(_0x242a47,this[_0x46a03a(0x18a)],(_0xc78800,_0x223dc2,_0x3e6ea2)=>{const _0x30325f=_0x46a03a;this['_drawRichTextLayer'](_0xc78800,_0x3fe3e7,_0xab1864,_0x223dc2,_0x3e6ea2===_0x30325f(0x202));});}[_0x43e8a4(0x1bb)](_0x48277e,_0x6bbb4e,_0x42c06c,_0x4f1fbf,_0x14fd6b){const _0x46b882=_0x43e8a4;let _0x34fd68=this[_0x46b882(0x1dd)][_0x46b882(0x174)];if(!_0x6bbb4e[_0x46b882(0x163)]||!_0x34fd68){_0x34fd68||console['warn']('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0x1e0233=_0x33266c(_0x6bbb4e[_0x46b882(0x163)]);if(!_0x1e0233)return;let _0x2c6213=_0x1e0233[_0x46b882(0x81)];if(!_0x2c6213)return;let _0x3d5692=_0x59b1ab(_0x2c6213,_0x4f1fbf),_0x3c88cb=_0x1e0233['va']??_0xfc8006[_0x46b882(0x249)],_0x4a947b=_0x1e0233['ha']??_0x19f481['LEFT'],_0x453e31=qi(this[_0x46b882(0x1dd)][_0x46b882(0x19d)][_0x46b882(0x299)](),_0x6bbb4e,_0x3d5692),_0x57d425=_0x6bbb4e[_0x46b882(0x2cb)],_0x433573=_0x18300c(_0x3d5692,{'isHorizontal':_0x57d425!==!0x1,'textRect':_0x42c06c,'verticalAlign':_0x3c88cb,'horizontalAlign':_0x4a947b,'wrapStrategy':_0x453e31[_0x46b882(0xe6)]}),_0xb5f4eb=new _0x2925ba(_0x433573),_0x4fdf68=new _0x4be549(_0xb5f4eb),_0xa67c18=_0x122642[_0x46b882(0x15d)](_0x4fdf68,_0x34fd68);_0xa67c18['calculate']();let _0x5acdb4=_0xa67c18['getActualSize']()[_0x46b882(0x199)],_0x349a06=_0x4f930a({'contentHeight':_0x5acdb4,'verticalAlign':_0x3c88cb,'viewportHeight':_0x42c06c[_0x46b882(0x204)]});_0xb5f4eb[_0x46b882(0x1b8)]({'pageSize':{'width':_0x57d425===!0x1?_0x42c06c[_0x46b882(0x204)]:_0x42c06c['width'],'height':_0x30a506(_0x3d5692,_0x349a06['contentHeight'])}}),_0xb5f4eb[_0x46b882(0x172)]({'t':_0x349a06['marginTop']}),_0xa67c18[_0x46b882(0xf3)]();let _0x82b132=new _0x321da8(_0x46b882(0x1e3)+this[_0x46b882(0xef)],_0xa67c18,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x82b132['resize'](_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0x1ce)]),_0x48277e[_0x46b882(0x29a)](),_0x48277e[_0x46b882(0x2a2)](_0x42c06c['left'],_0x42c06c[_0x46b882(0x2b8)]),_0x453e31[_0x46b882(0x18d)]&&(_0x48277e[_0x46b882(0xd7)](),_0x48277e[_0x46b882(0xce)](0x0,_0x349a06[_0x46b882(0xab)],_0x42c06c[_0x46b882(0x7d)],_0x349a06[_0x46b882(0xf1)]),_0x48277e['clip']()),_0x349a06[_0x46b882(0x94)]&&_0x48277e[_0x46b882(0x2a2)](0x0,_0x349a06[_0x46b882(0x94)]),_0x82b132[_0x46b882(0x17a)](_0x48277e),_0x14fd6b&&(this['_hyperLinkRegions']=_0x32283e(_0x82b132,{'left':_0x42c06c[_0x46b882(0xaf)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['contentVerticalOffset']},_0x453e31[_0x46b882(0x18d)]?{'left':_0x42c06c[_0x46b882(0xaf)],'right':_0x42c06c[_0x46b882(0xaf)]+_0x42c06c[_0x46b882(0x7d)],'top':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06[_0x46b882(0xab)],'bottom':_0x42c06c[_0x46b882(0x2b8)]+_0x349a06['clipTop']+_0x349a06[_0x46b882(0xf1)]}:void 0x0)),_0x48277e[_0x46b882(0x137)](),_0x82b132[_0x46b882(0xb0)](),_0xa67c18[_0x46b882(0xb0)](),_0x4fdf68[_0x46b882(0xb0)](),_0xb5f4eb[_0x46b882(0xb0)]();}[_0x43e8a4(0x16c)](_0x115d8e,_0x37819a,_0x4ef972=!0x1){const _0x4fe97e=_0x43e8a4;if(!this[_0x4fe97e(0x1b4)])return this[_0x4fe97e(0x11f)](!0x1),this;let {width:_0x1300d3,height:_0x56a197,left:_0x43f9da,top:_0x52b64d}=this,_0x38a059=this[_0x4fe97e(0x250)]();if(_0x1300d3=_0x38a059[_0x4fe97e(0x7d)],_0x56a197=_0x38a059[_0x4fe97e(0x204)],_0x43f9da=_0x38a059[_0x4fe97e(0xaf)],_0x52b64d=_0x38a059[_0x4fe97e(0x2b8)],this[_0x4fe97e(0x1f9)](_0x37819a)){let {top:_0x2fdc3e,left:_0x267d9f,bottom:_0x3bd038,right:_0x170d4a}=_0x37819a[_0x4fe97e(0x26f)];if(_0x1300d3+this[_0x4fe97e(0x12d)]+_0x43f9da<_0x267d9f||_0x170d4a<_0x43f9da||_0x56a197+this['strokeWidth']+_0x52b64d<_0x2fdc3e||_0x3bd038<_0x52b64d)return this;}let _0x50aae9=_0x43f9da+_0x1300d3/0x2,_0x5f4691=_0x52b64d+_0x56a197/0x2,_0x179769=this[_0x4fe97e(0x260)][_0x4fe97e(0x1ba)]();if(this[_0x4fe97e(0x1dd)]['isEditing']){let _0x4d4b06=this[_0x4fe97e(0x188)](),_0x3ee8d4=new _0x4d0b24();_0x3ee8d4[_0x4fe97e(0x2ce)]({..._0x4d4b06}),_0x179769=_0x3ee8d4['getMatrix']();}return _0x115d8e['save'](),this[_0x4fe97e(0x1dd)][_0x4fe97e(0x19d)][_0x4fe97e(0x1bf)]===!0x0||_0x115d8e[_0x4fe97e(0x260)](_0x179769[0x0],_0x179769[0x1],_0x179769[0x2],_0x179769[0x3],_0x50aae9,_0x5f4691),this['_draw'](_0x115d8e,_0x37819a,_0x1300d3,_0x56a197),_0x115d8e['restore'](),this[_0x4fe97e(0x11f)](!0x1),this;}[_0x43e8a4(0x258)](_0x509918){const _0x3abecb=_0x43e8a4;let {left:_0x4590cd,top:_0x9a6ae2,width:_0x228816,height:_0x2defda}=this[_0x3abecb(0x250)](),_0x34c255=this[_0x3abecb(0x260)][_0x3abecb(0x1ba)](),_0x13ad08=_0x4590cd+_0x228816/0x2,_0x4fa435=_0x9a6ae2+_0x2defda/0x2,_0x4c3336=new _0x4d0b24([_0x34c255[0x0],_0x34c255[0x1],_0x34c255[0x2],_0x34c255[0x3],_0x13ad08,_0x4fa435]),_0x2d257f=this[_0x3abecb(0xf7)]();return(this[_0x3abecb(0x262)]&&(_0x2d257f==null?void 0x0:_0x2d257f[_0x3abecb(0x15f)])===_0x5ccc48['GROUP']?_0x2d257f['ancestorTransform'][_0x3abecb(0x74)](_0x4c3336):_0x4c3336)['invert']()[_0x3abecb(0x2cd)](_0x509918);}[_0x43e8a4(0x2b3)](_0x530bbc){const _0x561b73=_0x43e8a4;let {left:_0x5aa716,top:_0x3795f2,width:_0x5a4920,height:_0xff574}=this[_0x561b73(0x250)](),_0x374d2c=_0x5aa716+_0x5a4920/0x2,_0x409b0c=_0x3795f2+_0xff574/0x2,_0x55cbbe=this['transform'][_0x561b73(0x1ba)](),_0x221a0a=new _0x4d0b24([_0x55cbbe[0x0],_0x55cbbe[0x1],_0x55cbbe[0x2],_0x55cbbe[0x3],_0x374d2c,_0x409b0c]),_0x4d1501=this[_0x561b73(0xf7)](),_0x14e673=(this[_0x561b73(0x262)]&&(_0x4d1501==null?void 0x0:_0x4d1501[_0x561b73(0x15f)])===_0x5ccc48[_0x561b73(0x7c)]?_0x4d1501['ancestorTransform'][_0x561b73(0x74)](_0x221a0a):_0x221a0a)[_0x561b73(0x139)]()[_0x561b73(0x2cd)](_0x530bbc),_0x389794=_0x5a4920/0x2,_0xfb543f=_0xff574/0x2,_0x3d8f4a=this[_0x561b73(0x1dd)]['shapeModel'];return _0x3d8f4a&&_0x3d8f4a['isLineShape']()?_0x3d8f4a['isHitLine'](_0x14e673['x'],_0x14e673['y'],_0x5a4920,_0xff574):_0x14e673['x']>=-_0x389794-this[_0x561b73(0x12d)]/0x2&&_0x14e673['x']<=_0x389794+this['strokeWidth']/0x2&&_0x14e673['y']>=-_0xfb543f-this[_0x561b73(0x12d)]/0x2&&_0x14e673['y']<=_0xfb543f+this['strokeWidth']/0x2;}[_0x43e8a4(0xb0)](){const _0x126999=_0x43e8a4;this['_formulaAnimation'][_0x126999(0xb0)](),this[_0x126999(0x1dd)][_0x126999(0x19d)]=null,super[_0x126999(0xb0)]();}};let Ji=class extends _0x143425{constructor(_0x395cc9,_0x3ba4bc,_0xd17344,_0x52f159){const _0x4ab592=_0x43e8a4;super(),this['_context']=_0x395cc9,this[_0x4ab592(0x282)]=_0x3ba4bc,this[_0x4ab592(0x17f)]=_0xd17344,this['_commandService']=_0x52f159,J(this,_0x4ab592(0x1fe),null),J(this,_0x4ab592(0x28c),null),J(this,_0x4ab592(0xb2),null),J(this,_0x4ab592(0x16f),void 0x0),J(this,_0x4ab592(0x265),[]),J(this,_0x4ab592(0x276),0x0),J(this,'_baseShapeTop',0x0),J(this,_0x4ab592(0x230),0x0),J(this,_0x4ab592(0x130),0x0),J(this,_0x4ab592(0x1c2),!0x1),J(this,_0x4ab592(0x29d),!0x1),J(this,_0x4ab592(0x143),void 0x0),J(this,_0x4ab592(0x24c),void 0x0),J(this,_0x4ab592(0x13d),void 0x0),J(this,_0x4ab592(0x89),void 0x0),this[_0x4ab592(0x264)](),this[_0x4ab592(0x296)]();}['clearAdjustControls'](){const _0x137526=_0x43e8a4;this[_0x137526(0x288)]();}[_0x43e8a4(0x6e)](){const _0x282336=_0x43e8a4;this[_0x282336(0x23d)](!0x0);}[_0x43e8a4(0x133)](_0x27a855,_0x249b59,_0x2ca449){const _0x3cff91=_0x43e8a4;var _0xbee5e1;return(_0xbee5e1=this['_docsShapeService'][_0x3cff91(0x100)](_0x27a855,_0x249b59,_0x2ca449))==null?void 0x0:_0xbee5e1['getDrawingPoints']();}[_0x43e8a4(0x223)](_0x28b232,_0x44aaba,_0x57c289,_0x48f1f5){const _0x45907f=_0x43e8a4;var _0x1df0db;return(_0x1df0db=this['_docsShapeService']['getShapeModel'](_0x28b232,_0x44aaba,_0x57c289))==null?void 0x0:_0x1df0db[_0x45907f(0x2c6)](_0x48f1f5);}[_0x43e8a4(0x283)](){const _0x43ad60=_0x43e8a4;return this[_0x43ad60(0x28c)]===null||this[_0x43ad60(0xb2)]===null||this[_0x43ad60(0x1fe)]===null?null:this[_0x43ad60(0x282)][_0x43ad60(0xfd)]({'unitId':this['_unitId'],'subUnitId':this[_0x43ad60(0xb2)],'drawingId':this[_0x43ad60(0x1fe)]})??null;}['_getActiveDrawingShape'](_0x4455fa){const _0x3d7fd6=_0x43e8a4;if(this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null)return null;let _0xea8430=_0x33c05c({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x3d7fd6(0x1fe)]}),_0x4cd9bd=_0x4455fa[_0x3d7fd6(0x17b)](_0xea8430);return _0x4cd9bd instanceof Y?_0x4cd9bd:null;}[_0x43e8a4(0x27f)](_0x30bcf3=!0x1){const _0x51c31f=_0x43e8a4;if(this[_0x51c31f(0x28c)]===null||this[_0x51c31f(0xb2)]===null||this[_0x51c31f(0x1fe)]===null)return;let _0x2eeb78=this[_0x51c31f(0x283)]();if((_0x2eeb78==null?void 0x0:_0x2eeb78['drawingType'])!==_0x1652cd['DRAWING_SHAPE']||!_0x2eeb78[_0x51c31f(0x260)])return;let _0x312c9b=this[_0x51c31f(0x17f)][_0x51c31f(0x100)](this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)],this[_0x51c31f(0x1fe)]);if(!_0x312c9b||_0x312c9b[_0x51c31f(0x2aa)]())return;let {left:_0x12bb04=0x0,top:_0x9468d1=0x0,width:_0x16d0e9=0x0,height:_0x558119=0x0,flipX:_0xbf4dd5,flipY:_0x289aab,angle:_0x47588d=0x0}=_0x2eeb78[_0x51c31f(0x260)];(_0x30bcf3||!this[_0x51c31f(0x16f)])&&(_0x312c9b[_0x51c31f(0x2bc)]({'width':_0x16d0e9,'height':_0x558119}),this[_0x51c31f(0x16f)]=_0x312c9b[_0x51c31f(0x29e)]());let _0x2aa054=this['_activeShapeAdjustPointList'];if(!(_0x2aa054!=null&&_0x2aa054[_0x51c31f(0x1ee)]))return;let {scene:_0x30c042}=this[_0x51c31f(0xed)];for(let _0x2d9bb3 of _0x2aa054){let _0x160c51=this[_0x51c31f(0x25d)](_0x2d9bb3,_0x16d0e9,_0x558119,!!_0xbf4dd5,!!_0x289aab,_0x47588d);this[_0x51c31f(0x239)](_0x30c042,_0x160c51,_0x160c51[_0x51c31f(0x105)],_0x12bb04,_0x9468d1,this[_0x51c31f(0x28c)],this[_0x51c31f(0xb2)]);}}[_0x43e8a4(0x25d)](_0x1b19d5,_0x87d244,_0x4227ff,_0xde21c3,_0x252721,_0x2819ff){const _0x4773f9=_0x43e8a4;let _0x3d9ad2=_0x1b19d5['x'],_0x12c1f7=_0x1b19d5['y'];if(_0xde21c3&&(_0x3d9ad2=_0x87d244-_0x3d9ad2),_0x252721&&(_0x12c1f7=_0x4227ff-_0x12c1f7),_0x2819ff!==0x0){let _0x2cab27=_0x87d244/0x2,_0x1d87b4=_0x4227ff/0x2,_0x5bae27=_0x2819ff*Math['PI']/0xb4,_0x539fbf=Math[_0x4773f9(0x1b0)](_0x5bae27),_0x3a8105=Math['sin'](_0x5bae27),_0x4f2941=_0x3d9ad2-_0x2cab27,_0x343be1=_0x12c1f7-_0x1d87b4;_0x3d9ad2=_0x2cab27+(_0x4f2941*_0x539fbf-_0x343be1*_0x3a8105),_0x12c1f7=_0x1d87b4+(_0x4f2941*_0x3a8105+_0x343be1*_0x539fbf);}return{'x':_0x3d9ad2,'y':_0x12c1f7,'adjName':_0x1b19d5[_0x4773f9(0x105)]};}[_0x43e8a4(0x23d)](_0x3b2afa=!0x1){const _0x14887d=_0x43e8a4;_0x3b2afa&&this[_0x14887d(0x288)](),this[_0x14887d(0x27f)](_0x3b2afa);}['_addShapeAdjustControl'](_0x4a3a2a,_0x1ea49e,_0x3e36ad,_0x342ec9,_0x12cd20,_0x390181,_0x3a5a77){const _0x3ca69a=_0x43e8a4;if(!this[_0x3ca69a(0x1fe)])return;let _0x1a0442=_0x3ca69a(0x161)+this['_activeShapeId']+'-'+_0x3e36ad,_0x539a65=_0x4a3a2a[_0x3ca69a(0x17b)](_0x1a0442);if(_0x539a65){_0x539a65['transformByState']({'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b[_0x3ca69a(0x20b)]}),_0x539a65[_0x3ca69a(0x11f)](!0x0);return;}let _0x2e79cc=new Ki(_0x1a0442,{'left':_0x1ea49e['x']+_0x342ec9-_0x1f925b[_0x3ca69a(0x20b)],'top':_0x1ea49e['y']+_0x12cd20-_0x1f925b['adjHandleSize'],'adjName':_0x3e36ad,'shapeId':this[_0x3ca69a(0x1fe)],'unitId':_0x390181,'subUnitId':_0x3a5a77,'width':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'height':_0x1f925b[_0x3ca69a(0x20b)]+0x8,'zIndex':_0x19be61+0x1,'evented':!0x0});this['_adjustPointObjects']['push'](_0x2e79cc),this[_0x3ca69a(0x134)](_0x2e79cc,_0x4a3a2a,_0x3e36ad),_0x4a3a2a['addObject'](_0x2e79cc,_0x19be61+0x1);}[_0x43e8a4(0x288)](){const _0x344f1f=_0x43e8a4;this[_0x344f1f(0x265)][_0x344f1f(0xd6)](_0x40111b=>_0x40111b['dispose']()),this[_0x344f1f(0x265)]=[];}['_updateAdjustControlPositions'](){const _0x3acdb0=_0x43e8a4;this[_0x3acdb0(0x27f)]();}['_toScenePoint'](_0x2beb00,_0x980c25,_0x3b1330){const _0x4a8f78=_0x43e8a4;let _0x3c573b=_0x7e1ba8[_0x4a8f78(0x142)]([_0x980c25,_0x3b1330]),_0x50ae73=_0x2beb00[_0x4a8f78(0x2ca)](_0x3c573b)??_0x2beb00[_0x4a8f78(0xec)]()[0x0];return(_0x50ae73==null?void 0x0:_0x50ae73['transformVector2SceneCoord'](_0x3c573b))??_0x3c573b;}[_0x43e8a4(0x134)](_0x4419f3,_0x4b6a30,_0xe05f27){const _0x5257a8=_0x43e8a4;this['disposeWithMe'](_0x44b80c(_0x4419f3[_0x5257a8(0x1f4)][_0x5257a8(0xcd)]((_0x52fbbf,_0x2bdb23)=>{const _0x44ed37=_0x5257a8;var _0xf39ab3;let _0x138257=_0x4419f3[_0x44ed37(0xe3)]();this[_0x44ed37(0x143)]=this[_0x44ed37(0x223)](_0x138257['unitId'],_0x138257['subUnitId'],_0x138257['drawingId'],_0xe05f27),this[_0x44ed37(0x24c)]=this[_0x44ed37(0x17f)]['getShapeModel'](_0x138257[_0x44ed37(0xa2)],_0x138257[_0x44ed37(0x2d2)],_0x138257[_0x44ed37(0x198)]);let _0x1904a1=this[_0x44ed37(0x283)](),_0x404121=_0x1904a1==null?void 0x0:_0x1904a1[_0x44ed37(0x260)];if(!_0x1904a1||!_0x404121||!this[_0x44ed37(0x24c)])return;this['_baseShapeLeft']=_0x404121[_0x44ed37(0xaf)]||0x0,this[_0x44ed37(0x116)]=_0x404121[_0x44ed37(0x2b8)]||0x0,this['_baseShapeWidth']=_0x404121[_0x44ed37(0x7d)]||0x0,this[_0x44ed37(0x130)]=_0x404121[_0x44ed37(0x204)]||0x0;let _0x4fd948=!!_0x404121['flipX'],_0x45e49c=!!_0x404121['flipY'],_0x488770=_0x404121[_0x44ed37(0x124)]||0x0,_0x161aa9={...((_0xf39ab3=this['_activeAdjustInfo'])==null?void 0x0:_0xf39ab3['currentAdjustValues'])??{}};this[_0x44ed37(0x1c2)]=!0x0,_0x4b6a30[_0x44ed37(0x17e)](),this[_0x44ed37(0x13d)]=_0x4b6a30[_0x44ed37(0x13f)][_0x44ed37(0xcd)]((_0x35323e,_0x5e5367)=>{const _0x39ef2f=_0x44ed37;var _0xe150cd;if(!this['_isStartAdjusting']||!this[_0x39ef2f(0x24c)]||!this['_activeAdjustInfo'])return;_0x4b6a30[_0x39ef2f(0x17e)](),_0x4b6a30['setCursor'](_0x1b2d0c[_0x39ef2f(0x23b)]);let _0x23aeea=this['_toScenePoint'](_0x4b6a30,_0x35323e[_0x39ef2f(0x165)],_0x35323e[_0x39ef2f(0x1d4)]),_0x42272a=_0x23aeea['x']-this['_baseShapeLeft'],_0x132172=_0x23aeea['y']-this[_0x39ef2f(0x116)];if(_0x488770!==0x0){let _0x5e7d43=this[_0x39ef2f(0x230)]/0x2,_0x592162=this[_0x39ef2f(0x130)]/0x2,_0x2d52b2=_0x488770*Math['PI']/0xb4,_0x230b32=Math['cos'](_0x2d52b2),_0x64f17a=Math[_0x39ef2f(0x67)](_0x2d52b2),_0x27f77d=_0x42272a-_0x5e7d43,_0x5ed496=_0x132172-_0x592162;_0x42272a=_0x5e7d43+(_0x27f77d*_0x230b32+_0x5ed496*_0x64f17a),_0x132172=_0x592162+(-_0x27f77d*_0x64f17a+_0x5ed496*_0x230b32);}_0x4fd948&&(_0x42272a=this[_0x39ef2f(0x230)]-_0x42272a),_0x45e49c&&(_0x132172=this[_0x39ef2f(0x130)]-_0x132172);let _0xd3e714={'left':0x0,'top':0x0,'width':this[_0x39ef2f(0x230)],'height':this['_baseShapeHeight']},_0x43d564=this['_activeShapeModel']['calcAdjValues'](_0xd3e714,{'x':_0x42272a,'y':_0x132172},this[_0x39ef2f(0x143)],_0x4fd948,_0x45e49c);if(Object[_0x39ef2f(0x20d)](_0x43d564)[_0x39ef2f(0x1ee)]!==0x0){for(let [_0x27b4ff,_0x4ad07c]of Object[_0x39ef2f(0xe1)](_0x43d564))this[_0x39ef2f(0x24c)][_0x39ef2f(0xe4)](_0x27b4ff,_0x4ad07c);this['_activeShapeModel'][_0x39ef2f(0x2bc)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0xe150cd=this[_0x39ef2f(0x8e)](_0x4b6a30))==null||_0xe150cd[_0x39ef2f(0x11f)](!0x0),this['_activeShapeAdjustPointList']=this[_0x39ef2f(0x133)](_0x138257['unitId'],_0x138257[_0x39ef2f(0x2d2)],_0x138257[_0x39ef2f(0x198)]),this[_0x39ef2f(0x1cb)](),_0x5e5367[_0x39ef2f(0x1ea)]();}}),this[_0x44ed37(0x89)]=_0x4b6a30[_0x44ed37(0x207)][_0x44ed37(0xcd)]((_0x22db44,_0x32a58c)=>{const _0x4feb1e=_0x44ed37;var _0x45a958,_0x4d694b;(_0x45a958=this[_0x4feb1e(0x13d)])==null||_0x45a958[_0x4feb1e(0x28b)](),(_0x4d694b=this['_adjHandlerPointerUp'])==null||_0x4d694b['unsubscribe'](),_0x4b6a30[_0x4feb1e(0xae)]();let _0x56bc40=this[_0x4feb1e(0x143)];if(_0x56bc40&&this[_0x4feb1e(0x24c)]){let _0x23f762={};for(let _0x2b70d4 of Object[_0x4feb1e(0x20d)](_0x56bc40['currentAdjustValues'])){let _0x137aef=this['_activeShapeModel']['getAdjustValueByName'](_0x2b70d4);_0x137aef!==void 0x0&&(_0x23f762[_0x2b70d4]=_0x137aef);}Object['keys'](_0x23f762)[_0x4feb1e(0x1ee)]>0x0&&Yr(this[_0x4feb1e(0x10c)],_0x138257[_0x4feb1e(0xa2)],_0x138257[_0x4feb1e(0x2d2)],_0x138257[_0x4feb1e(0x198)],{'oldShapeData':{'adjustValues':_0x161aa9}},{'adjustValues':_0x23f762});}this[_0x4feb1e(0x143)]=void 0x0,this[_0x4feb1e(0x24c)]=void 0x0,this[_0x4feb1e(0x1c2)]=!0x1,_0x4b6a30[_0x4feb1e(0x1d8)](),_0x32a58c[_0x4feb1e(0x1ea)]();}),_0x2bdb23[_0x44ed37(0x1ea)]();})));}[_0x43e8a4(0x296)](){const _0x56dbe2=_0x43e8a4;let {scene:_0x3a7c15}=this[_0x56dbe2(0xed)],_0xc848f3=_0x3a7c15[_0x56dbe2(0x279)]();this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x2a3)][_0x56dbe2(0x120)](_0x40ffa3=>{const _0x2baf4d=_0x56dbe2;this[_0x2baf4d(0x27f)](),_0x40ffa3[_0x2baf4d(0x7e)]!==null&&_0x40ffa3['objects'][_0x2baf4d(0x73)]===0x1&&_0x40ffa3['objects'][_0x2baf4d(0x22d)]()['next']()[_0x2baf4d(0x152)]instanceof Y&&(this[_0x2baf4d(0x29d)]=!0x0);})),this[_0x56dbe2(0xb3)](_0xc848f3[_0x56dbe2(0x190)][_0x56dbe2(0x120)](()=>{const _0x2d006f=_0x56dbe2;this[_0x2d006f(0x29d)]&&this[_0x2d006f(0x288)]();})),this[_0x56dbe2(0xb3)](_0x3a7c15[_0x56dbe2(0x207)][_0x56dbe2(0xcd)](()=>{const _0x413961=_0x56dbe2;this[_0x413961(0x29d)]&&(this[_0x413961(0x29d)]=!0x1,this[_0x413961(0x27f)]());})),this['disposeWithMe'](_0xc848f3[_0x56dbe2(0xb1)][_0x56dbe2(0x120)](()=>{const _0x4f3899=_0x56dbe2;this[_0x4f3899(0x28c)]&&this[_0x4f3899(0xb2)]&&this['_activeShapeId']&&(this[_0x4f3899(0x16f)]=this[_0x4f3899(0x133)](this[_0x4f3899(0x28c)],this['_subUnitId'],this[_0x4f3899(0x1fe)]),this[_0x4f3899(0x1cb)]());}));}[_0x43e8a4(0x264)](){const _0x2fa4fc=_0x43e8a4;this['disposeWithMe'](this[_0x2fa4fc(0x10c)]['onCommandExecuted'](_0x544928=>{const _0x17d3af=_0x2fa4fc;if(_0x544928['id']!==_0x4aaefb['id'])return;let {unitId:_0x55882b,shapeId:_0x3f31f3}=_0x544928[_0x17d3af(0x132)];_0x55882b===this['_unitId']&&_0x3f31f3===this[_0x17d3af(0x1fe)]&&this['refreshAdjustControls']();})),this[_0x2fa4fc(0xb3)](this[_0x2fa4fc(0x282)][_0x2fa4fc(0x144)][_0x2fa4fc(0x120)](_0x3687c8=>{const _0x4cc5d3=_0x2fa4fc;if(_0x3687c8[_0x4cc5d3(0x1ee)]===0x1){let _0xe2d1e4=_0x3687c8[0x0],_0x15177d=this[_0x4cc5d3(0x282)][_0x4cc5d3(0xfd)](_0xe2d1e4);if((_0x15177d==null?void 0x0:_0x15177d[_0x4cc5d3(0x119)])===_0x1652cd[_0x4cc5d3(0x156)]){this[_0x4cc5d3(0x1fe)]=_0xe2d1e4[_0x4cc5d3(0x198)],this[_0x4cc5d3(0x28c)]=_0xe2d1e4[_0x4cc5d3(0xa2)],this[_0x4cc5d3(0xb2)]=_0xe2d1e4[_0x4cc5d3(0x2d2)],this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](_0xe2d1e4[_0x4cc5d3(0xa2)],_0xe2d1e4[_0x4cc5d3(0x2d2)],_0xe2d1e4[_0x4cc5d3(0x198)]),this[_0x4cc5d3(0x288)](),this[_0x4cc5d3(0x27f)]();return;}}this[_0x4cc5d3(0x1fe)]=null,this[_0x4cc5d3(0x16f)]=void 0x0,this[_0x4cc5d3(0x28c)]=null,this[_0x4cc5d3(0xb2)]=null,this[_0x4cc5d3(0x288)]();})),this[_0x2fa4fc(0xb3)](_0x3018f6(this[_0x2fa4fc(0x282)][_0x2fa4fc(0x261)],this[_0x2fa4fc(0x282)][_0x2fa4fc(0x1c7)])[_0x2fa4fc(0x120)](_0x434001=>{const _0x190641=_0x2fa4fc;var _0x4d2c8d;let _0x368440=_0x434001[_0x190641(0x2d0)](_0x3b2181=>_0x3b2181['drawingId']===this[_0x190641(0x1fe)]&&_0x3b2181['unitId']===this['_unitId']&&_0x3b2181[_0x190641(0x2d2)]===this[_0x190641(0xb2)]);_0x368440&&((_0x4d2c8d=this[_0x190641(0x282)][_0x190641(0xfd)](_0x368440))==null?void 0x0:_0x4d2c8d[_0x190641(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x190641(0x23d)](!0x0);})),this['disposeWithMe'](this[_0x2fa4fc(0x282)][_0x2fa4fc(0xa4)][_0x2fa4fc(0x120)](_0x1d4ce8=>{const _0x2a9efe=_0x2fa4fc;for(let _0x2e8751 of _0x1d4ce8)this[_0x2a9efe(0x1fe)]===_0x2e8751[_0x2a9efe(0x198)]&&(this[_0x2a9efe(0x1fe)]=null,this[_0x2a9efe(0x16f)]=void 0x0,this[_0x2a9efe(0x28c)]=null,this[_0x2a9efe(0xb2)]=null,this[_0x2a9efe(0x288)]());}));}};Ji=q([K(0x1,_0x4ed84c),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x5d4fd5)],Ji);let X=class extends _0x143425{constructor(_0x50fcf2,_0x1e56de){const _0xe5532b=_0x43e8a4;super(),this['_permissionService']=_0x50fcf2,this[_0xe5532b(0xf6)]=_0x1e56de,J(this,_0xe5532b(0x281),new _0xe789cb(null)),J(this,_0xe5532b(0x80),this[_0xe5532b(0x281)][_0xe5532b(0x15c)]()),J(this,_0xe5532b(0x8a),new _0xe789cb(!0x1)),J(this,_0xe5532b(0x159),this[_0xe5532b(0x8a)][_0xe5532b(0x15c)]()),J(this,'_completionFrame',void 0x0),this[_0xe5532b(0xb3)](this[_0xe5532b(0x218)][_0xe5532b(0x10a)][_0xe5532b(0x120)](()=>{const _0x31dc6a=_0xe5532b;let _0x545729=this[_0x31dc6a(0x1a2)]();_0x545729!=null&&_0x545729[_0x31dc6a(0x1b4)]&&!this[_0x31dc6a(0x219)](_0x545729)&&this[_0x31dc6a(0x15a)](null);}));}[_0x43e8a4(0xb0)](){const _0x54ac15=_0x43e8a4;this['_clearCompletionFrame'](),this[_0x54ac15(0x281)][_0x54ac15(0xbb)](null),this[_0x54ac15(0x281)][_0x54ac15(0x1c1)](),this[_0x54ac15(0x8a)][_0x54ac15(0xbb)](!0x1),this[_0x54ac15(0x8a)][_0x54ac15(0x1c1)](),super[_0x54ac15(0xb0)]();}[_0x43e8a4(0x15a)](_0x5db0ef){const _0x1585fe=_0x43e8a4;(_0x5db0ef==null||!_0x5db0ef['visible']||this['_canEdit'](_0x5db0ef))&&(this[_0x1585fe(0x82)](),this[_0x1585fe(0x281)][_0x1585fe(0xbb)](_0x5db0ef),(_0x5db0ef==null||_0x5db0ef[_0x1585fe(0x1b4)]&&this[_0x1585fe(0x8a)][_0x1585fe(0xd4)]())&&this['_onSavingEditorData$']['next'](!0x1));}[_0x43e8a4(0xa7)](_0x2973ac){const _0x274769=_0x43e8a4;this['_onSavingEditorData$'][_0x274769(0xbb)](_0x2973ac);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x43e8a4(0x219)](_0x2d1f61){const _0x25c08b=_0x43e8a4;let _0x41acfc=this[_0x25c08b(0xf6)][_0x25c08b(0x254)](_0x2d1f61[_0x25c08b(0xa2)],_0x37d2f3[_0x25c08b(0x10d)]);if(!_0x41acfc)return!0x0;let _0x25149e=_0x34c0dc(_0x41acfc,_0x2d1f61[_0x25c08b(0x1a5)]);return _0xaad49(this['_permissionService'],_0x2d1f61['unitId'],[..._0x1ed368(_0x41acfc,_0x25149e,_0x25c08b(0x292),_0x2d1f61[_0x25c08b(0x1a5)]),_0x17c75c(_0x25149e,_0x25c08b(0x292),_0x2d1f61['shapeId'])]);}['completeEditing'](_0x40e332){const _0x4fb66e=_0x43e8a4;let _0x1f4e90=this[_0x4fb66e(0x1a2)]();_0x1f4e90&&this[_0x4fb66e(0x25e)]===void 0x0&&(this[_0x4fb66e(0xa7)](!0x0),this[_0x4fb66e(0x25e)]=requestAnimationFrame(()=>{const _0x3b8b64=_0x4fb66e;this[_0x3b8b64(0x25e)]=void 0x0,this[_0x3b8b64(0x1a2)]()===_0x1f4e90&&this[_0x3b8b64(0x15a)](null);}));}[_0x43e8a4(0x82)](){const _0x226642=_0x43e8a4;this[_0x226642(0x25e)]!==void 0x0&&(cancelAnimationFrame(this[_0x226642(0x25e)]),this['_completionFrame']=void 0x0);}[_0x43e8a4(0x8b)](){const _0x5dc6d5=_0x43e8a4;this[_0x5dc6d5(0x1a2)]()&&this[_0x5dc6d5(0x15a)](null);}};X=q([K(0x0,_0x1b33f3),K(0x1,_0x58ad01)],X);function Yi(_0x3f66b3){const _0x7f9fbe=_0x43e8a4;return _0x3f66b3['behindText']===!0x0||_0x3f66b3['behindText']===_0x2eeb60[_0x7f9fbe(0x28f)]||_0x3f66b3[_0x7f9fbe(0x206)]===_0x5e65d5['WRAP_NONE']&&_0x3f66b3[_0x7f9fbe(0x7f)]===_0x2eeb60[_0x7f9fbe(0x28f)]?_0x4df301-0x1:_0x19be61;}let Z=class extends _0x143425{constructor(_0x1923d4,_0x51911b,_0xa97061,_0x53d162,_0x30341a,_0x5a6cc0,_0x233e7d){const _0x1aab36=_0x43e8a4;super(),this['_drawingManagerService']=_0x1923d4,this[_0x1aab36(0x17f)]=_0x51911b,this[_0x1aab36(0x267)]=_0xa97061,this[_0x1aab36(0x2c1)]=_0x53d162,this['_urlImageService']=_0x30341a,this[_0x1aab36(0x72)]=_0x5a6cc0,this['_shapeFormulaService']=_0x233e7d,J(this,_0x1aab36(0x77),new Map()),this['disposeWithMe'](this[_0x1aab36(0x2a8)][_0x1aab36(0x26e)][_0x1aab36(0x120)](_0x11339f=>{const _0x473a72=_0x1aab36;var _0x4a7416;(_0x4a7416=this['_formulaShapes'][_0x473a72(0x7a)](this[_0x473a72(0x19b)](_0x11339f[_0x473a72(0xa2)],_0x11339f[_0x473a72(0x2d2)],_0x11339f['shapeId'])))==null||_0x4a7416['forEach'](_0xc31a67=>_0xc31a67[_0x473a72(0xc4)](_0x11339f[_0x473a72(0x1a3)],_0x11339f[_0x473a72(0x2af)]));})),this['disposeWithMe'](this['_drawingManagerService'][_0x1aab36(0xa4)][_0x1aab36(0x120)](_0x37924d=>{_0x37924d['forEach'](_0x33126f=>{const _0x492bae=_0xe027;this['_shapeFormulaService']['unregister']({'unitId':_0x33126f[_0x492bae(0xa2)],'subUnitId':_0x33126f[_0x492bae(0x2d2)],'shapeId':_0x33126f[_0x492bae(0x198)]}),this['_formulaShapes']['delete'](this['_formulaKey'](_0x33126f[_0x492bae(0xa2)],_0x33126f[_0x492bae(0x2d2)],_0x33126f['drawingId']));});}));}[_0x43e8a4(0xa6)](_0x22e251,_0xac98d5){const _0x4b3537=_0x43e8a4;let {transform:_0x3b6196,drawingType:_0x8a0778,srcRect:_0x47b1fe,prstGeom:_0x531408,groupId:_0x158756,unitId:_0x5063b2,subUnitId:_0x5140f6,drawingId:_0x396d2d,isMultiTransform:_0x4c29df,transforms:_0x344aee,hidden:_0x5a94bc,selectable:_0xb2fa72}=_0x22e251;if(_0x8a0778!==_0x1652cd[_0x4b3537(0x156)]||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]()||_0x3b6196==null)return;let _0x1f0008=this[_0x4b3537(0x282)]['getDrawingEditable'](),_0x46b18b=_0x4c29df&&_0x344aee?_0x344aee:[_0x3b6196],_0xb3e4aa=[];for(let [_0xe8621c,_0x4bbfce]of _0x46b18b[_0x4b3537(0xe1)]()){let {left:_0x3563d2,top:_0x53307b,width:_0x2db7bf,height:_0x59577f,angle:_0x21d48a,flipX:_0x17e465,flipY:_0x227ac4,skewX:_0x37faf9,skewY:_0x3a2df1}=_0x4bbfce,_0x3fda6e=_0x33c05c({'unitId':_0x5063b2,'subUnitId':_0x5140f6,'drawingId':_0x396d2d},_0x4c29df?_0xe8621c:void 0x0),_0x3536f8=_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e);if(_0x3536f8!=null){let _0x1a576d={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3536f8 instanceof Y&&this[_0x4b3537(0x169)](_0x3536f8,_0x1a576d),_0x3536f8['transformByState']({'left':_0x3563d2,'top':_0x53307b,'width':_0x2db7bf,'height':_0x59577f,'angle':_0x21d48a,'flipX':_0x17e465,'flipY':_0x227ac4,'skewX':_0x37faf9,'skewY':_0x3a2df1});continue;}let _0x6993e5=this[_0x4b3537(0x282)][_0x4b3537(0x1e5)](_0x5063b2,_0x5140f6),_0x5b7ca3=_0x6993e5['indexOf'](_0x396d2d);if(_0xac98d5[_0x4b3537(0x17b)](_0x3fda6e)||!this[_0x4b3537(0x282)][_0x4b3537(0x270)]())continue;let _0xa3e0e2=this['_docsShapeService'][_0x4b3537(0x100)](_0x5063b2,_0x5140f6,_0x396d2d);if(!_0xa3e0e2)continue;let _0x243f71=_0x3a8d31(_0xa3e0e2[_0x4b3537(0x2d1)]())?{..._0x3257bd,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x3257bd,_0x3a6e88=_0xa3e0e2[_0x4b3537(0x299)]()[_0x4b3537(0x19c)],_0x57fe5c={'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d};_0x3a6e88&&this[_0x4b3537(0x2a8)]['register'](_0x57fe5c,_0x3a6e88);let _0x5383c7=new Y(_0x3fda6e,{..._0x4bbfce,'zIndex':_0x5b7ca3===-0x1?_0x6993e5[_0x4b3537(0x1ee)]-0x1:_0x5b7ca3,'shapeModel':_0xa3e0e2,'localeService':this[_0x4b3537(0x267)],'shapeId':_0x396d2d,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'visible':_0x5a94bc!==!0x0,'evented':_0xb2fa72!==!0x1,'formulaPresentation':_0x3a6e88?this[_0x4b3537(0x2a8)][_0x4b3537(0x181)](_0x57fe5c):void 0x0,'animateFormulaPresentation':(_0x3a6e88==null?void 0x0:_0x3a6e88[_0x4b3537(0x2af)])!==!0x1,'transformerConfig':_0x243f71});if(_0x3a6e88){let _0x9090ca=this[_0x4b3537(0x19b)](_0x5063b2,_0x5140f6,_0x396d2d),_0x10b547=this[_0x4b3537(0x77)][_0x4b3537(0x7a)](_0x9090ca)??new Set();_0x10b547[_0x4b3537(0x106)](_0x5383c7),this['_formulaShapes'][_0x4b3537(0x290)](_0x9090ca,_0x10b547);}this['disposeWithMe'](_0x44b80c(_0x5383c7['onDblclick$']['subscribeEvent']((_0x588669,_0x113e0b)=>{const _0x242f92=_0x4b3537;_0xa3e0e2[_0x242f92(0x2aa)]()||_0x3a6e88||(this[_0x242f92(0x72)][_0x242f92(0x15a)]({'visible':!0x0,'unitId':_0x5063b2,'subUnitId':_0x5140f6,'shapeId':_0x396d2d,'shapeKey':_0x5383c7[_0x242f92(0xef)]}),_0x113e0b[_0x242f92(0x1ea)]());}))),_0xac98d5[_0x4b3537(0x157)](_0x5383c7,Yi(_0x22e251)),_0x1f0008&&_0xac98d5[_0x4b3537(0xfe)](_0x5383c7),_0x158756&&_0x54a7ec({'drawingId':_0x158756,'unitId':_0x5063b2,'subUnitId':_0x5140f6},_0x5383c7,_0xac98d5,this[_0x4b3537(0x282)],_0x4c29df?_0xe8621c:void 0x0),_0x531408!=null&&_0x5383c7[_0x4b3537(0x1ef)](_0x531408),_0x47b1fe!=null&&_0x5383c7[_0x4b3537(0x1d7)](_0x47b1fe),this[_0x4b3537(0x215)](_0x5383c7,_0xa3e0e2[_0x4b3537(0x299)]()),_0xb3e4aa[_0x4b3537(0x241)](_0x5383c7);}return _0xb3e4aa;}[_0x43e8a4(0x19b)](_0x55a267,_0x1de76c,_0x5f56a5){return _0x55a267+'\x00'+_0x1de76c+'\x00'+_0x5f56a5;}[_0x43e8a4(0x169)](_0x53007b,_0x5db5c5){const _0x22462d=_0x43e8a4;let _0x332cab=this[_0x22462d(0x17f)][_0x22462d(0x100)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5['shapeId']),_0x497bec=_0x332cab==null?void 0x0:_0x332cab[_0x22462d(0x299)]()['formulaBinding'],_0x3ce472=this[_0x22462d(0x19b)](_0x5db5c5[_0x22462d(0xa2)],_0x5db5c5[_0x22462d(0x2d2)],_0x5db5c5[_0x22462d(0x1a5)]);if(_0x497bec){this['_shapeFormulaService'][_0x22462d(0x14c)](_0x5db5c5,_0x497bec);let _0x5aa5dd=this['_formulaShapes'][_0x22462d(0x7a)](_0x3ce472)??new Set();_0x5aa5dd[_0x22462d(0x106)](_0x53007b),this[_0x22462d(0x77)][_0x22462d(0x290)](_0x3ce472,_0x5aa5dd);}else{var _0x293ea3;this[_0x22462d(0x2a8)]['unregister'](_0x5db5c5),(_0x293ea3=this[_0x22462d(0x77)][_0x22462d(0x7a)](_0x3ce472))==null||_0x293ea3[_0x22462d(0x13c)](_0x53007b);}_0x53007b['setFormulaPresentation'](_0x497bec?this[_0x22462d(0x2a8)][_0x22462d(0x181)](_0x5db5c5):void 0x0,(_0x497bec==null?void 0x0:_0x497bec[_0x22462d(0x2af)])!==!0x1);}[_0x43e8a4(0x1af)](_0x3201ff){const _0x387769=_0x43e8a4;let _0x3b3a8d=_0x3201ff[_0x387769(0x19d)][_0x387769(0x299)](),_0x563a14=_0x3b3a8d[_0x387769(0x175)];!_0x563a14||_0x563a14[_0x387769(0x108)]!==_0x5ea484[_0x387769(0x127)]||!_0x563a14[_0x387769(0x1f6)]?_0x3201ff[_0x387769(0x205)](void 0x0):this[_0x387769(0x215)](_0x3201ff,_0x3b3a8d);}[_0x43e8a4(0x215)](_0x423cc4,_0x136275){const _0x2ce3d5=_0x43e8a4;let _0x2b7a0d=_0x136275['fill'];if(!_0x2b7a0d||_0x2b7a0d[_0x2ce3d5(0x108)]!==_0x5ea484[_0x2ce3d5(0x127)]||!_0x2b7a0d['fillImageSource'])return;let _0x3d039f=_0x2b7a0d[_0x2ce3d5(0x1f6)],_0x268e52=_0x2b7a0d['fillImageSourceType']??_0x3423a9[_0x2ce3d5(0x2be)],_0x3e798e=this[_0x2ce3d5(0x2c1)][_0x2ce3d5(0x109)](_0x3d039f,_0x268e52);_0x3e798e?_0x423cc4[_0x2ce3d5(0x205)](_0x3e798e):this[_0x2ce3d5(0x6f)](_0x423cc4,_0x3d039f,_0x268e52);}async['_loadAndSetImage'](_0x43e42c,_0x2bf887,_0x155d6c){const _0x2c7625=_0x43e8a4;let _0x334087;try{if(_0x155d6c===_0x3423a9['UUID'])_0x334087=await this[_0x2c7625(0x2c1)][_0x2c7625(0xa1)](_0x2bf887);else{if(_0x155d6c===_0x3423a9[_0x2c7625(0x2be)])try{_0x334087=await this[_0x2c7625(0x196)][_0x2c7625(0xa1)](_0x2bf887);}catch{_0x334087=_0x2bf887;}else _0x334087=_0x2bf887;}}catch(_0x9ea658){console[_0x2c7625(0xc9)](_0x2c7625(0x2a4),_0x9ea658);return;}let _0x29c2ba=new window[(_0x2c7625(0x236))]();_0x29c2ba[_0x2c7625(0x1d9)]=()=>{const _0x15f66b=_0x2c7625;this[_0x15f66b(0x2c1)][_0x15f66b(0x266)](_0x2bf887,_0x155d6c,_0x29c2ba),_0x43e42c['setFillImage'](_0x29c2ba);},_0x29c2ba[_0x2c7625(0x141)]=()=>{const _0x3f41e1=_0x2c7625;console['error'](_0x3f41e1(0xbc),_0x2bf887);},_0x29c2ba['src']=_0x334087;}};Z=q([K(0x0,_0x4ed84c),K(0x1,_0x376ec2(_0x3e6ec4)),K(0x2,_0x376ec2(_0x474b31)),K(0x3,_0x42c7d6),K(0x4,_0x1d2e00),K(0x5,_0x376ec2(X)),K(0x6,_0x376ec2(_0x1fb743))],Z);let Xi=class extends _0x143425{constructor(_0x516153,_0xa0bddf,_0x1ff762){const _0x355ffd=_0x43e8a4;super(),this[_0x355ffd(0x125)]=_0x516153,this['_drawingManagerService']=_0xa0bddf,this['_shapeRenderController']=_0x1ff762,this[_0x355ffd(0x220)]();}[_0x43e8a4(0x220)](){const _0x42fdd1=_0x43e8a4;this['disposeWithMe'](this['_docPrintInterceptorService']['interceptor']['intercept'](this[_0x42fdd1(0x125)]['interceptor'][_0x42fdd1(0x1b9)]()[_0x42fdd1(0x25f)],{'handler':(_0x3983d4,_0xbd4445,_0x4c4b9e)=>{const _0x59ff4e=_0x42fdd1;var _0x4a18aa;let {unitId:_0x3ac9bd,scene:_0x58f18c,skeleton:_0x2d2e00}=_0xbd4445,{pageIndex:_0xbd78a9}=_0xbd4445,_0x38fdb6=(_0x4a18aa=this[_0x59ff4e(0x282)][_0x59ff4e(0x129)](_0x3ac9bd))==null?void 0x0:_0x4a18aa[_0x3ac9bd],_0x2076ef=Zi(this[_0x59ff4e(0x125)],_0x2d2e00,_0xbd78a9);return _0x38fdb6==null||_0x38fdb6[_0x59ff4e(0x251)][_0x59ff4e(0xd6)](_0x391623=>{const _0x4d7e32=_0x59ff4e;if(_0x2076ef&&!_0x2076ef[_0x4d7e32(0x1da)](_0x391623))return;let _0x35414a=_0x38fdb6[_0x4d7e32(0x1c0)][_0x391623];_0x35414a[_0x4d7e32(0x119)]===_0x1652cd[_0x4d7e32(0x156)]&&!_0x35414a[_0x4d7e32(0x9c)]&&this['_shapeRenderController'][_0x4d7e32(0xa6)](_0x35414a,_0x58f18c);}),_0x4c4b9e(_0x3983d4);}}));}};Xi=q([K(0x0,_0x376ec2(_0x3197e2)),K(0x1,_0x4ed84c),K(0x2,_0x376ec2(Z))],Xi);function Zi(_0x21f2f2,_0x34a9d8,_0x2cc0e6){const _0x2822af=_0x43e8a4;var _0x59986c,_0xb48571;let _0x5f49d0=_0x21f2f2;if(_0x5f49d0[_0x2822af(0x148)])return _0x5f49d0[_0x2822af(0x148)](_0x34a9d8,_0x2cc0e6);let _0x2f90dc=_0x34a9d8[_0x2822af(0x238)]();if(!_0x2f90dc||_0x2f90dc['pages'][_0x2822af(0x1ee)]<=0x1||_0x2cc0e6==null)return null;let _0x2f2b48=new Set(),_0x1b89d2=_0x2f90dc[_0x2822af(0xbf)][_0x2cc0e6];if(!_0x1b89d2)return _0x2f2b48;Qi(_0x1b89d2,_0x2f2b48);let _0x319ac1=(_0x59986c=_0x2f90dc[_0x2822af(0x208)][_0x2822af(0x7a)](_0x1b89d2[_0x2822af(0x2b1)]))==null?void 0x0:_0x59986c['get'](_0x1b89d2[_0x2822af(0x115)]??_0x1b89d2['pageWidth']),_0x291b36=(_0xb48571=_0x2f90dc[_0x2822af(0x1e7)][_0x2822af(0x7a)](_0x1b89d2['footerId']))==null?void 0x0:_0xb48571[_0x2822af(0x7a)](_0x1b89d2['footerLayoutKey']??_0x1b89d2[_0x2822af(0xf4)]);return _0x319ac1&&Qi(_0x319ac1,_0x2f2b48),_0x291b36&&Qi(_0x291b36,_0x2f2b48),_0x2f2b48;}function Qi(_0x4b6358,_0x5c7f8d){const _0x2d054e=_0x43e8a4;for(let _0x2933fd of _0x4b6358[_0x2d054e(0x275)]['keys']())_0x5c7f8d[_0x2d054e(0x106)](_0x2933fd);for(let _0x2f2027 of _0x4b6358[_0x2d054e(0x1e9)][_0x2d054e(0x22d)]())for(let _0x204e05 of _0x2f2027['rows'])for(let _0xca97a0 of _0x204e05['cells'])Qi(_0xca97a0,_0x5c7f8d);}function $i(_0x53954d){return _0x5619d4(Ur,{..._0x53954d,'PickerComponent':_0x8f16d9});}function ea(){const _0x41b4e6=_0x43e8a4;let _0xa64c1b=_0x2f1968(_0x474b31),_0x424449=Br(),[_0x529dfc,_0x4881f2]=_0x1f778c(!0x1);return _0x48a5b6('div',{'className':_0x41b4e6(0x27c),'children':[_0x5619d4(_0x478cdc,{'title':_0xa64c1b['t'](_0x41b4e6(0x214)),'aria-expanded':_0x529dfc,'variant':'subtle','trailing':_0x5619d4(_0x529dfc?_0x383f97:_0x5df7dc,{}),'onClick':()=>_0x4881f2(_0x3a8fa1=>!_0x3a8fa1)}),_0x529dfc&&_0x5619d4(_0x8f16d9,{'excludeGroups':[_0x29b383[_0x41b4e6(0x8c)]],'onShapeClick':_0x1cbe0e=>{_0x424449(_0x1cbe0e),_0x4881f2(!0x1);}})]});}function ta(_0x70166e){const _0x30fae9=_0x43e8a4;return _0x70166e[_0x30fae9(0x2a9)]()||void 0x0;}function na(_0x37ca02,_0x214ae8,_0x4d91c5){const _0x24084a=_0x43e8a4;var _0x20cf08,_0x296dcc;return((_0x20cf08=_0x37ca02['name'])==null?void 0x0:_0x20cf08[_0x24084a(0x2a9)]())||((_0x296dcc=_0x37ca02[_0x24084a(0x147)])==null?void 0x0:_0x296dcc[_0x24084a(0x2a9)]())||_0x4d91c5['t']('drawing-ui.objectListPanel.typeNames.'+_0x36d1e2(_0x37ca02[_0x24084a(0x119)]))+'\x20'+(_0x214ae8+0x1);}function ra({PanelComponent:_0xebfc1b=_0xb10e3b}){const _0x329c6f=_0x43e8a4;let _0x30d714=_0x2f1968(_0x474b31),_0x176a2a={'title':_0x30d714['t'](_0x329c6f(0x16d)),'empty':_0x30d714['t'](_0x329c6f(0x2b9)),'showAll':_0x30d714['t'](_0x329c6f(0x222)),'hideAll':_0x30d714['t'](_0x329c6f(0x173)),'lockAll':_0x30d714['t'](_0x329c6f(0x162)),'unlockAll':_0x30d714['t'](_0x329c6f(0x1d2)),'moveForward':_0x30d714['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x30d714['t'](_0x329c6f(0x1ca)),'close':_0x30d714['t'](_0x329c6f(0x87)),'show':_0x30d714['t']('drawing-ui.objectListPanel.show'),'hide':_0x30d714['t'](_0x329c6f(0x153)),'lock':_0x30d714['t'](_0x329c6f(0x104)),'unlock':_0x30d714['t'](_0x329c6f(0x23a)),'lockHint':_0x30d714['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0x30d714['t'](_0x329c6f(0x14f)),'name':_0x30d714['t'](_0x329c6f(0x128)),'nameInput':_0x30d714['t'](_0x329c6f(0x17c)),'description':_0x30d714['t'](_0x329c6f(0x1be)),'descriptionPlaceholder':_0x30d714['t'](_0x329c6f(0x201)),'details':_0x30d714['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x30d714['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x30d714['t'](_0x329c6f(0x252)),'expand':_0x30d714['t'](_0x329c6f(0x24b)),'collapse':_0x30d714['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x30d714['t'](_0x329c6f(0x1a7)),'search':_0x30d714['t'](_0x329c6f(0x294)),'filterAll':_0x30d714['t'](_0x329c6f(0x13b)),'filterHidden':_0x30d714['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x30d714['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x30d714['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x30d714['t']('drawing-ui.objectListPanel.sectionFloating')},_0x169b6e=_0x2f1968(_0x5d4fd5),_0x7f0384=_0x2f1968(_0x58ad01),_0x5e998d=_0x2f1968(_0x3b1588),_0x5c0dbf=_0x2f1968(_0x4ed84c),_0x4c6b2b=_0x2f1968(_0x20175c),[,_0x2177ae]=_0x597582(_0x168ad8=>_0x168ad8+0x1,0x0),_0x3572fa=_0x7f0384['getCurrentUnitOfType'](_0x37d2f3[_0x329c6f(0x10d)]),_0x1a9763=(_0x3572fa==null?void 0x0:_0x3572fa[_0x329c6f(0xe2)]())??'',_0x24a4da=_0x1a9763,_0x2ff29c=_0x24248b(()=>_0x5c0dbf[_0x329c6f(0x144)],_0x5c0dbf['getFocusDrawings'](),!0x1,[_0x5c0dbf]);_0x5b0cfd(()=>{const _0x4224a3=_0x329c6f;let _0xfa0943=_0x169b6e[_0x4224a3(0x1b3)](()=>_0x2177ae());return()=>_0xfa0943[_0x4224a3(0xb0)]();},[_0x169b6e]);let _0x1a4820=_0x1a9763?_0x5e998d[_0x329c6f(0xaa)](_0x1a9763,_0x24a4da):{},_0x450080=(_0x1a9763?_0x5e998d[_0x329c6f(0x1e5)](_0x1a9763,_0x24a4da):[])[_0x329c6f(0x1e4)](_0x3709f0=>_0x1a4820[_0x3709f0])[_0x329c6f(0x121)](_0x35f479=>!!_0x35f479)['reverse'](),_0x350258=_0x450080[_0x329c6f(0x6b)]((_0x49faae,_0x88a92b)=>(_0x49faae[_0x3f7cdb(_0x88a92b[_0x329c6f(0x119)])]+=0x1,_0x49faae),{'canvas':0x0,'floating':0x0}),_0x501281={'canvas':0x0,'floating':0x0},_0x336369=_0x450080[_0x329c6f(0x1e4)]((_0x5ac944,_0x52220b)=>{const _0x36619d=_0x329c6f;let _0x1242a2=_0x3f7cdb(_0x5ac944[_0x36619d(0x119)]),_0x5284cf=_0x1242a2===_0x1722f4,_0x284ba6=_0x501281[_0x1242a2]++;return{'id':_0x5ac944['drawingId'],'name':na(_0x5ac944,_0x52220b,_0x30d714),'description':_0x5ac944['description'],'visible':_0x5ac944['hidden']!==!0x0,'selectable':_0x5ac944[_0x36619d(0x295)]!==!0x1,'sectionId':_0x1242a2,'sectionTitle':_0x5284cf?_0x176a2a[_0x36619d(0x167)]:_0x176a2a[_0x36619d(0x101)],'capabilities':_0x5284cf?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5284cf&&_0x284ba6>0x0,'canMoveBackward':!_0x5284cf&&_0x284ba6<_0x350258['canvas']-0x1,'canReorder':!_0x5284cf};}),_0x13b8f6=_0x39da17(()=>(_0x2ff29c??[])['filter'](_0x43ea5f=>_0x43ea5f[_0x329c6f(0xa2)]===_0x1a9763&&_0x43ea5f['subUnitId']===_0x24a4da)[_0x329c6f(0x1e4)](_0xf09900=>_0xf09900[_0x329c6f(0x198)]),[_0x2ff29c,_0x24a4da,_0x1a9763]),_0x1fa029=_0x13b8f6[_0x13b8f6[_0x329c6f(0x1ee)]-0x1]??null,_0x3c2577=_0x381a15=>_0x5e998d[_0x329c6f(0xfd)]({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x381a15})??null,_0x6ce5dd=async _0xe908c4=>{const _0x26da4e=_0x329c6f;_0x1a9763&&_0xe908c4['length']&&await _0x169b6e[_0x26da4e(0x2cf)](_0x4054f5['id'],{'unitId':_0x1a9763,'patches':_0xe908c4});},_0x4a05fc=(_0x2514b0,_0x2359f2)=>{const _0x3fb134=_0x329c6f;if(!_0x1a9763)return;let _0x4a564b=_0x2359f2?_0x13b8f6['includes'](_0x2514b0)?_0x13b8f6['filter'](_0x333667=>_0x333667!==_0x2514b0):[..._0x13b8f6,_0x2514b0]:[_0x2514b0];_0x169b6e[_0x3fb134(0x27a)](_0x342bee['id'],_0x4a564b[_0x3fb134(0x1e4)](_0x3e0f74=>({'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x3e0f74})));let _0x2a2a10=_0x4a564b[_0x4a564b['length']-0x1];_0x2a2a10?_0x2aeb4f(_0x4c6b2b,{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingId':_0x2a2a10}):_0x482003(_0x4c6b2b,_0x1a9763);},_0x2f9b39=async(_0x5c6028,_0x19f5e9)=>{const _0x1e89b1=_0x329c6f;await _0x6ce5dd(_0x5c6028['map'](_0x22aa54=>_0x3c2577(_0x22aa54))[_0x1e89b1(0x121)](_0x1c6309=>!!_0x1c6309)['filter'](_0x58b48c=>_0x58b48c[_0x1e89b1(0x9c)]!==!0x0!==_0x19f5e9)[_0x1e89b1(0x1e4)](_0x4e4741=>({'drawingId':_0x4e4741['drawingId'],'hidden':!_0x19f5e9})));},_0x1b7b41=async(_0x1380ed,_0x10842b)=>{const _0x4c54e6=_0x329c6f;await _0x6ce5dd(_0x1380ed[_0x4c54e6(0x1e4)](_0x16eca2=>_0x3c2577(_0x16eca2))['filter'](_0x281814=>!!_0x281814)[_0x4c54e6(0x121)](_0x88aa4f=>_0x88aa4f['selectable']!==!0x1!==_0x10842b)[_0x4c54e6(0x1e4)](_0x2bd54e=>({'drawingId':_0x2bd54e['drawingId'],'selectable':_0x10842b})));},_0x8dc47d=_0xda5315=>{const _0xf32a83=_0x329c6f;let _0x31e317=_0x3c2577(_0xda5315);if(_0x31e317)return _0x1b7b41([_0xda5315],_0x31e317[_0xf32a83(0x295)]===!0x1);},_0x3e2c52=async(_0x19866e,_0x426ac6)=>{const _0x3e9502=_0x329c6f;let _0x3819ba=_0x3c2577(_0x19866e),_0x24ff3f=ta(_0x426ac6);!_0x3819ba||(_0x3819ba['name']??void 0x0)===_0x24ff3f&&(_0x3819ba[_0x3e9502(0x147)]||void 0x0)===_0x24ff3f||await _0x6ce5dd([{'drawingId':_0x19866e,'name':_0x24ff3f,'title':_0x24ff3f}]);},_0x3acf37=async(_0x1dbb7d,_0x26a0fe)=>{const _0x48e74d=_0x329c6f;let _0x372e0d=_0x3c2577(_0x1dbb7d),_0xa4e0a8=ta(_0x26a0fe);_0x372e0d&&(_0x372e0d[_0x48e74d(0x224)]??void 0x0)!==_0xa4e0a8&&await _0x6ce5dd([{'drawingId':_0x1dbb7d,'description':_0xa4e0a8}]);},_0x302ebf=async(_0x4b2897,_0x5ed68b)=>{const _0xde65ff=_0x329c6f;_0x1a9763&&await _0x169b6e[_0xde65ff(0x2cf)](_0x3c4545['id'],{'unitId':_0x1a9763,'subUnitId':_0x24a4da,'drawingIds':[_0x4b2897],'arrangeType':_0x5ed68b});};return _0x1a9763?_0x5619d4(_0xebfc1b,{'labels':_0x176a2a,'renderPermissionAction':_0x2f18d4=>_0x3572fa?_0x5619d4(_0x6fcfc4,{'target':{'unitId':_0x1a9763,'objectId':_0x17c75c(_0x34c0dc(_0x3572fa,_0x2f18d4['id']),_0x329c6f(0x292),_0x2f18d4['id']),'objectType':_0x3314c2[_0x329c6f(0x1a4)]},'name':_0x2f18d4[_0x329c6f(0xba)],'commandId':_0x2502f6['id'],'exists':()=>!!_0x3c2577(_0x2f18d4['id'])},_0x1a9763+'/'+_0x2f18d4['id']):null,'items':_0x336369,'selectedIds':_0x13b8f6,'focusedId':_0x1fa029,'showHeader':!0x1,'onSelect':_0x4a05fc,'onSetVisible':_0x2f9b39,'onSetSelectable':_0x1b7b41,'onCommitName':_0x3e2c52,'onCommitDescription':_0x3acf37,'onMoveForward':async _0x593c93=>_0x302ebf(_0x593c93,_0x1f6748[_0x329c6f(0x22f)]),'onMoveBackward':async _0x5eaf31=>_0x302ebf(_0x5eaf31,_0x1f6748[_0x329c6f(0x1ff)]),'onToggleSelectable':_0x8dc47d}):_0x5619d4(_0x329c6f(0x1de),{'className':_0x329c6f(0x110),'children':_0x176a2a[_0x329c6f(0x147)]});}function ia(){return _0x5619d4(ra,{'PanelComponent':_0x2b8d3a});}let aa=class{constructor(_0x11b6f1){const _0x579ea2=_0x43e8a4;this[_0x579ea2(0xa3)]=_0x11b6f1;}[_0x43e8a4(0x1cf)](_0x97a2aa,_0x1cb265){const _0xb86dfc=_0x43e8a4;let _0x592ed7=this[_0xb86dfc(0xa3)][_0xb86dfc(0x2b0)](_0x97a2aa[_0xb86dfc(0xa2)]),_0x4c4fa4=_0x592ed7==null?void 0x0:_0x592ed7[_0xb86dfc(0x71)];if(!_0x4c4fa4)return;let _0x19412f=_0x33c05c(_0x97a2aa),_0x39d001=_0x4c4fa4[_0xb86dfc(0x17b)](_0x19412f);_0x39d001==null||_0x39d001['setFillImage'](_0x1cb265);}};aa=q([K(0x0,_0x20175c)],aa);function oa(){const _0x49be00=_0x43e8a4;let _0x2442d4=_0x2f1968(_0x4ed84c),_0xc183a3=_0x24248b(()=>_0x2442d4[_0x49be00(0x144)],_0x2442d4[_0x49be00(0x2bf)](),!0x1,[_0x2442d4]);return _0xc183a3[_0x49be00(0x1ee)]===0x0?null:_0x5619d4('div',{'children':_0x48a5b6('div',{'className':_0x49be00(0xd5),'children':[_0x5619d4(_0x2438ba,{'drawings':_0xc183a3,'hasCropper':!0x1}),_0x5619d4(_0x7f317e,{'drawings':_0xc183a3}),_0x5619d4(_0x328b21,{'drawings':_0xc183a3})]})});}function sa(_0x294378){let {unitId:_0x585619,subUnitId:_0x2a364b,shapeId:_0xe6a38e,PositionComponent:_0x312f13=oa}=_0x294378,_0x253fd2=_0x2f1968(_0x5d4fd5),_0x3831aa=_0x2f1968(aa);return _0x5619d4(_0x4daa70,{..._0x294378,'positionEditor':_0x5619d4(_0x312f13,{}),'onUpdateShapeData':(_0x2bfdb1,_0x3a0300)=>{Yr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x2bfdb1,_0x3a0300);},'onUpdateLineShapeData':(_0x1a85ee,_0x387f37)=>{Xr(_0x253fd2,_0x585619,_0x2a364b,_0xe6a38e,_0x1a85ee,_0x387f37);},'onUpdateShapeFillImage':_0x4654c8=>{const _0x40b4ee=_0xe027;_0x3831aa[_0x40b4ee(0x1cf)]({'unitId':_0x585619,'subUnitId':_0x2a364b,'drawingId':_0xe6a38e},_0x4654c8);}});}function ca(){const _0x5b8a6f=_0x43e8a4;let _0x2c7e75=_0x2f1968(_0x4ed84c),_0x12952d=_0x24248b(_0x2c7e75[_0x5b8a6f(0x144)],_0x2c7e75[_0x5b8a6f(0x2bf)]());return _0x12952d[_0x5b8a6f(0x1ee)]===0x0?null:_0x48a5b6(_0x5b8a6f(0x1de),{'className':'univer-grid\x20univer-gap-5\x20univer-p-3','children':[_0x5619d4(_0x2438ba,{'drawings':_0x12952d,'hasCropper':!0x1}),_0x5619d4(_0xa7fe3c,{'drawings':_0x12952d}),_0x5619d4(_0x10704b,{'drawings':_0x12952d})]});}function la(_0x2fdefe){return _0x5619d4(_0x4ab532,{'children':_0x5619d4(sa,{..._0x2fdefe,'PositionComponent':ca})});}function ua({popup:_0x4edaba}){const _0x4bb66f=_0x43e8a4;let _0xeac83b=_0x2f1968(_0x474b31),{shapeType:_0xaa5a22,onText:_0x11bb2b,onStyle:_0x1194c0,onDelete:_0x1bf469}=_0x4edaba[_0x4bb66f(0x26a)],_0xa0503d=[{'key':_0x4bb66f(0x98),'order':0x0,'item':{'id':'text','type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t']('docs-shape-ui.mobile.text'),'disabled$':_0x477cfd(_0x3a8d31(_0xaa5a22))}},{'key':'style','order':0x1,'item':{'id':_0x4bb66f(0x68),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x22e))}},{'key':_0x4bb66f(0x13c),'order':0x2,'item':{'id':_0x4bb66f(0x13c),'type':_0x3c5886[_0x4bb66f(0x2ad)],'title':_0xeac83b['t'](_0x4bb66f(0x1db))}}];return _0x5619d4(_0xab6cb4,{'schemas':_0xa0503d,'presentation':_0x4bb66f(0x8d),'onOptionSelect':async({id:_0x201b3d})=>{const _0x185810=_0x4bb66f;_0x201b3d==='text'?await _0x11bb2b():_0x201b3d===_0x185810(0x68)?await _0x1194c0():_0x201b3d===_0x185810(0x13c)&&await _0x1bf469();}});}const da=_0x43e8a4(0x185);function fa(_0x1a28c7,_0x448acb){const _0x3b4b9e=_0x43e8a4;var _0x35ad66;let _0x433cd2=_0x1a28c7==null||(_0x35ad66=_0x1a28c7[_0x3b4b9e(0x2b5)]()[_0x3b4b9e(0x1f7)])==null?void 0x0:_0x35ad66[_0x448acb];return _0x433cd2?_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0x210)]?_0x433cd2[_0x3b4b9e(0x7f)]===_0x2eeb60['TRUE']?_0x4e8b32[_0x3b4b9e(0x221)]:_0x4e8b32[_0x3b4b9e(0x85)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5[_0x3b4b9e(0xbd)]?_0x4e8b32[_0x3b4b9e(0xbd)]:_0x433cd2[_0x3b4b9e(0x206)]===_0x5e65d5['WRAP_TOP_AND_BOTTOM']?_0x4e8b32[_0x3b4b9e(0x154)]:_0x4e8b32[_0x3b4b9e(0x91)]:_0x4e8b32[_0x3b4b9e(0x91)];}function pa(_0x596d23){const _0x30ff32=_0x43e8a4;let _0x2e1432=_0x2f1968(_0x9377b1),_0x566305=_0x24248b(()=>_0x2e1432[_0x30ff32(0x247)],_0x2e1432['getVisible'](),!0x1,[_0x2e1432]),_0x2f6cfa=_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0x26a)];return _0x566305?_0x5619d4(ma,{..._0x2f6cfa,'canvasElement':_0x596d23[_0x30ff32(0x2bb)][_0x30ff32(0xc1)]}):null;}function ma(_0x4dc6d2){const _0x294e97=_0x43e8a4;let _0xdf95e=_0x2f1968(_0x5d4fd5),_0x35fe32=_0x2f1968(_0x474b31),_0x8f81d6=_0x2f1968(_0x3e6ec4),_0x20b2d6=_0x2f1968(_0x58ad01),{unitId:_0x99de2e,subUnitId:_0x5445e2,drawingId:_0x564fc1,shapeType:_0x493fc7}=_0x4dc6d2,[_0x23b536,_0x63e7db]=_0x1f778c(_0x4dc6d2[_0x294e97(0x240)]),_0x28235a=_0x20b2d6['getUnit'](_0x99de2e,_0x37d2f3[_0x294e97(0x10d)])??void 0x0,[_0x56c47f,_0x41aa13]=_0x1f778c(()=>fa(_0x28235a,_0x564fc1)),_0x45eb85=_0x39da17(()=>_0x11e2fa(_0x23b536),[_0x23b536]),_0x442c39=_0x39da17(()=>_0x46bcad(_0x23b536),[_0x23b536]);_0x5b0cfd(()=>{const _0x24dd93=_0x294e97;let _0x343d38=_0xdf95e[_0x24dd93(0x1b3)](_0x56e95b=>{const _0x5909fa=_0x24dd93;if(_0x56e95b['id']!==_0x4aaefb['id'])return;let _0x5d61e0=_0x8f81d6[_0x5909fa(0x274)](_0x99de2e,_0x5445e2,_0x564fc1);_0x5d61e0&&_0x63e7db(_0x5d61e0);});return()=>_0x343d38[_0x24dd93(0xb0)]();},[_0xdf95e,_0x8f81d6,_0x564fc1,_0x5445e2,_0x99de2e]);let _0x4245d5=_0x321ee2=>{_0x63e7db(_0x5784f3=>({..._0x5784f3,..._0x321ee2}));},_0x3d8f37=_0x4871b4=>{const _0x3d1460=_0x294e97;let _0x55bfad=_0x2fe1a2(_0x23b536,_0x4871b4);Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'shapeText':_0x23b536[_0x3d1460(0x1d5)]}},_0x55bfad),_0x4245d5(_0x55bfad);},_0x4f4502=_0x10d626=>{const _0x32cf45=_0x294e97;_0x41aa13(_0x10d626),_0xdf95e[_0x32cf45(0x2cf)](_0x35bcca['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}],'wrappingStyle':_0x10d626});},_0x41d217=_0x29c39b({'hostType':_0x37d2f3[_0x294e97(0x10d)],'unitId':_0x99de2e,'subUnitId':_0x5445e2,'shapeId':_0x564fc1,'shapeData':_0x23b536,'onUpdateBinding':_0x16cc84=>{const _0x4ae7a5=_0x294e97;let _0x488674={'formulaBinding':_0x16cc84};Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,{'oldShapeData':{'formulaBinding':_0x23b536[_0x4ae7a5(0x19c)]}},_0x488674),_0x4245d5(_0x488674);}}),_0x590685=[{'label':_0x35fe32['t'](_0x294e97(0x76)),'value':_0x4e8b32[_0x294e97(0x91)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x146)),'value':_0x4e8b32[_0x294e97(0xbd)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x4e8b32[_0x294e97(0x154)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t'](_0x294e97(0x2c5)),'value':_0x4e8b32[_0x294e97(0x221)],'icon':_0x5619d4(_0x1e873d,{})},{'label':_0x35fe32['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4e8b32[_0x294e97(0x85)],'icon':_0x5619d4(_0x1e873d,{})}];return _0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x198192,{'canvasElement':_0x4dc6d2['canvasElement'],'shapeData':_0x23b536,'shapeType':_0x493fc7,'textStyle':{'ff':_0x1f925b['shapeText'][_0x294e97(0x25a)],'fs':_0x1f925b['shapeText']['fontSize'],'cl':{'rgb':_0x1f925b[_0x294e97(0x1d5)][_0x294e97(0xe9)]},..._0x45eb85},'textModel':_0x442c39?{'ha':_0x442c39['ha']??_0x19f481['LEFT'],'va':_0x442c39['va']??_0xfc8006['TOP']}:null,'wrappingStyle':_0x56c47f,'wrappingStyleOptions':_0x590685,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x1f925b['fill'],'defaultGradientEndColor':_0x1f925b[_0x294e97(0xe0)],'defaultStrokeColor':_0x1f925b[_0x294e97(0x88)],'extensionGroups':_0x41d217['extensionGroups'],'floatingObjectToolbarPosition':_0x7e4a12[_0x294e97(0x242)],'onUpdateShapeData':(_0x4c31a7,_0xcef183)=>{Yr(_0xdf95e,_0x99de2e,_0x5445e2,_0x564fc1,_0x4c31a7,_0xcef183),_0xcef183&&_0x4245d5(_0xcef183);},'onUpdateText':_0x3d8f37,'onUpdateWrappingStyle':_0x1e4ea0=>_0x4f4502(_0x1e4ea0),'onOpenPanel':()=>{const _0x331574=_0x294e97;_0xdf95e[_0x331574(0x2cf)](G['id'],{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1});},'onDelete':()=>{const _0x500463=_0x294e97;_0xdf95e[_0x500463(0x2cf)](_0x1dc354['id'],{'unitId':_0x99de2e,'drawings':[{'unitId':_0x99de2e,'subUnitId':_0x5445e2,'drawingId':_0x564fc1}]});}}),_0x41d217[_0x294e97(0x200)]]});}function ha({variant:_0x1d1e96,extend:_0x3a0db8,..._0x2fba53}){const _0x4df0b2=_0x43e8a4;let _0x329db8=_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':_0x4df0b2(0x21c),'strokeWidth':_0x4df0b2(0xc5)});return _0x48a5b6(_0x4df0b2(0x12b),{'aria-hidden':_0x4df0b2(0x187),'fill':_0x4df0b2(0x170),'height':'1em','viewBox':'0\x200\x2020\x2020','width':_0x4df0b2(0x22c),..._0x2fba53,'children':[_0x1d1e96===_0x4df0b2(0x12f)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x232),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x5619d4(_0x4df0b2(0xce),{'x':'8','y':'7','width':'4','height':'6','rx':_0x4df0b2(0xb8),'fill':_0x4df0b2(0x21c),'fillOpacity':'0.14','stroke':'currentColor','strokeWidth':_0x4df0b2(0xc5)})]}),_0x1d1e96===_0x4df0b2(0x171)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x1f0),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x18c)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0x2c9),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'}),_0x329db8]}),_0x1d1e96===_0x4df0b2(0x1fd)&&_0x48a5b6(_0xafd52b,{'children':[_0x329db8,_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':'currentColor','strokeLinecap':_0x4df0b2(0x113),'strokeWidth':'1.2'})]}),_0x1d1e96===_0x4df0b2(0xbe)&&_0x48a5b6(_0xafd52b,{'children':[_0x5619d4(_0x4df0b2(0x24d),{'d':_0x4df0b2(0xc2),'stroke':_0x4df0b2(0x21c),'strokeLinecap':_0x4df0b2(0x113),'strokeWidth':_0x4df0b2(0xc5)}),_0x5619d4(_0x4df0b2(0xce),{'x':'7','y':_0x4df0b2(0x1e6),'width':'6','height':'9','rx':'1','fill':_0x4df0b2(0x21c)})]})]});}const ga=_0x3f8b0c=>_0x313fce=>_0x5619d4(ha,{..._0x313fce,'variant':_0x3f8b0c}),_a={'DocsShapeWrapInlineIcon':ga('inline'),'DocsShapeWrapSquareIcon':ga(_0x43e8a4(0x171)),'DocsShapeWrapTopBottomIcon':ga(_0x43e8a4(0x18c)),'DocsShapeWrapBehindTextIcon':ga(_0x43e8a4(0x1fd)),'DocsShapeWrapInFrontOfTextIcon':ga(_0x43e8a4(0xbe))},va=_0x5889ae(()=>{const _0xc9151f=_0x43e8a4;let _0xa9a5b4=_0x2f1968(X),_0x445617=_0x2f1968(_0x3e6ec4),_0x571d94=_0x2f1968(_0x4ed84c),_0x378625=_0x2f1968(_0x5d4fd5),_0x2a7bcb=_0x39da17(()=>({'getShapeModel':(_0x10f872,_0x3ecfa0,_0x4567a8)=>_0x445617[_0xc9151f(0x100)](_0x10f872,_0x3ecfa0,_0x4567a8),'getShapeData':(_0x345057,_0x484de0,_0x41d38c)=>_0x445617['getShapeDataById'](_0x345057,_0x484de0,_0x41d38c),'getDrawingTransform':(_0x34e742,_0x51d767,_0x5e68f2)=>{const _0x569418=_0xc9151f;let _0xa1e40b=_0x571d94['getDrawingByParam']({'unitId':_0x34e742,'subUnitId':_0x51d767,'drawingId':_0x5e68f2});return _0xa1e40b==null?void 0x0:_0xa1e40b[_0x569418(0x260)];},'updateShapeText':({unitId:_0x171317,shapeId:_0x45fbd2,shapeText:_0x27893c,oldShapeText:_0xb8c4a9})=>{const _0x574b37=_0xc9151f;_0x378625[_0x574b37(0x2cf)](_0xc5bd8e['id'],{'unitId':_0x171317,'shapeId':_0x45fbd2,'shapeData':{'shapeText':_0x27893c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0xb8c4a9}}});},'updateHostSize':({unitId:_0x19c893,subUnitId:_0xb20f53,shapeId:_0x139489,width:_0x5a245d,height:_0x4e537d})=>{const _0x27b386=_0xc9151f;_0x378625[_0x27b386(0x2cf)](_0x5c08e6['id'],{'unitId':_0x19c893,'subUnitId':_0xb20f53,'drawings':[{'drawingId':_0x139489,'key':_0x27b386(0x73),'value':{'width':_0x5a245d,'height':_0x4e537d}}]});},'allowHostSizeShrink':({unitId:_0x46e3cf,subUnitId:_0x5043db,shapeId:_0x3b6891})=>_0x1574e0(_0x445617[_0xc9151f(0x274)](_0x46e3cf,_0x5043db,_0x3b6891))}),[_0x378625,_0x445617,_0x571d94]),_0x45ed02=_0x39da17(()=>({'viewportKeys':{'main':_0x28fe54[_0xc9151f(0xf5)]}}),[]);return _0x5619d4(_0x8f7333,{'adapter':_0x2a7bcb,'editingService':_0xa9a5b4,'editorUnitId':kr,'positionOptions':_0x45ed02});});let ya=class extends _0x143425{constructor(_0x3ef877,_0x11c87d){const _0x34f5f2=_0x43e8a4;super(),this[_0x34f5f2(0x179)]=_0x3ef877,this['_iconManager']=_0x11c87d,this['_registerIcons'](),this['_registerComponents']();}[_0x43e8a4(0x14a)](){const _0x15a62f=_0x43e8a4;this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x27e))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'ObjectLayersIcon':_0x362b77})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)]('BottomIcon')||this['disposeWithMe'](this[_0x15a62f(0x2b2)]['register']({'BottomIcon':_0x463d79})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0x216))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'MoveDownIcon':_0x13639d})),this[_0x15a62f(0x2b2)]['has'](_0x15a62f(0x287))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'MoveUpIcon':_0x384086})),this[_0x15a62f(0x2b2)][_0x15a62f(0x1da)](_0x15a62f(0xee))||this[_0x15a62f(0xb3)](this[_0x15a62f(0x2b2)]['register']({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager']['has'](_0x15a62f(0xdd))||this['disposeWithMe'](this[_0x15a62f(0x2b2)][_0x15a62f(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x15a62f(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x42a571=_0x43e8a4;this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](W,la)),this[_0x42a571(0x246)](),this['_registerFloatingToolbar'](),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Qr,ii)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](Zr,ai)),this[_0x42a571(0xb3)](this['_componentManager']['register']($r,oi)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)]['register'](ei,si)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](ti,ci)),this[_0x42a571(0xb3)](this['_componentManager'][_0x42a571(0x14c)](Ar,_0x4eb1a6)),this[_0x42a571(0x23f)](),this[_0x42a571(0x179)][_0x42a571(0xcc)](_0x1efce9)||this[_0x42a571(0xb3)](this['_componentManager']['register'](_0x1efce9,Hr)),this[_0x42a571(0xb3)](this[_0x42a571(0x179)][_0x42a571(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0x425f44=_0x43e8a4;this[_0x425f44(0xb3)](this['_componentManager'][_0x425f44(0x14c)](Or,ia));}[_0x43e8a4(0xde)](){const _0x16b5cf=_0x43e8a4;this[_0x16b5cf(0xb3)](this[_0x16b5cf(0x179)]['register'](da,ua));}['_registerPickers'](){const _0x1636fb=_0x43e8a4;this[_0x1636fb(0xb3)](this['_componentManager']['register'](Lr,$i)),this[_0x1636fb(0xb3)](this[_0x1636fb(0x179)]['register'](Rr,ea));}};ya=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],ya);let ba=class extends _0x143425{constructor(_0x146e68,_0x375b79,_0x29f8bb,_0x1dcf86,_0x4b7687,_0x20d0de,_0x576061,_0x447e08,_0x4f31a5,_0x114014,_0x6f302c,_0x2fc6c7,_0x24d110){const _0x1f3662=_0x43e8a4;super(),this[_0x1f3662(0x7b)]=_0x146e68,this[_0x1f3662(0x1c9)]=_0x375b79,this[_0x1f3662(0x2b7)]=_0x29f8bb,this[_0x1f3662(0x17f)]=_0x1dcf86,this[_0x1f3662(0x267)]=_0x4b7687,this[_0x1f3662(0x10c)]=_0x20d0de,this['_drawingManagerService']=_0x576061,this['_docCanvasPopManagerService']=_0x447e08,this['_renderManagerService']=_0x4f31a5,this['_contextService']=_0x114014,this[_0x1f3662(0x72)]=_0x6f302c,this[_0x1f3662(0x218)]=_0x2fc6c7,this[_0x1f3662(0x9f)]=_0x24d110,J(this,_0x1f3662(0x9b),null),J(this,_0x1f3662(0x1b1),null),J(this,_0x1f3662(0x21a),!0x1),J(this,_0x1f3662(0x231),0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x1f3662(0x245),new Map()),this[_0x1f3662(0x23e)](),this['disposeWithMe'](this[_0x1f3662(0x7b)][_0x1f3662(0x2c2)](_0x37d2f3[_0x1f3662(0x10d)])[_0x1f3662(0x120)](_0x3001aa=>{const _0x28f898=_0x1f3662;if(!_0x3001aa){var _0x53b365;(_0x53b365=this[_0x28f898(0x9b)])==null||_0x53b365['dispose']();}})),this['_registerOperations'](),this[_0x1f3662(0xb3)](this[_0x1f3662(0x282)]['remove$'][_0x1f3662(0x120)](_0x57a0c2=>{const _0x8d9d65=_0x1f3662;for(let _0x589584 of _0x57a0c2){let _0x2e80e1=_0x589584[_0x8d9d65(0xa2)]+':'+_0x589584[_0x8d9d65(0x2d2)]+':'+_0x589584[_0x8d9d65(0x198)];for(let [_0x3fc72e,_0xea3c68]of this['_popupTargetKeys'])_0xea3c68===_0x2e80e1&&this[_0x8d9d65(0x2c0)](_0x3fc72e,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x1f3662(0xa3)],_0x37d2f3[_0x1f3662(0x10d)],_0x1bc558=>this[_0x1f3662(0xd8)](_0x1bc558))),this[_0x1f3662(0xb3)](this[_0x1f3662(0x72)][_0x1f3662(0x80)][_0x1f3662(0x120)](_0x45e841=>{_0x45e841&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x1f3662(0xb3)](this[_0x1f3662(0x218)][_0x1f3662(0x10a)][_0x1f3662(0x120)](()=>{const _0x48c43d=_0x1f3662;this[_0x48c43d(0x282)][_0x48c43d(0x2bf)]()[_0x48c43d(0x1f5)](_0x10b52c=>_0x10b52c[_0x48c43d(0x119)]===_0x1652cd[_0x48c43d(0x156)]&&this[_0x48c43d(0x7b)][_0x48c43d(0x177)](_0x10b52c[_0x48c43d(0xa2)])===_0x37d2f3[_0x48c43d(0x10d)]&&!this[_0x48c43d(0xcf)](_0x10b52c['unitId'],_0x10b52c['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x48c43d(0x2bd)]());}));}[_0x43e8a4(0x1bc)](_0x57aa7c,_0xdb3530,_0xa2f9e,_0x2c5ddd){const _0x5cccf1=_0x43e8a4;return[{'label':_0x5cccf1(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':_0x2c5ddd===_0x1652cd[_0x5cccf1(0x271)]},{'label':_0x5cccf1(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x57aa7c,'drawings':[{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e}]},'disable':!0x1},{'label':_0x5cccf1(0x1aa),'index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x57aa7c,'subUnitId':_0xdb3530,'drawingId':_0xa2f9e},'disable':!0x1}];}[_0x43e8a4(0x23e)](){const _0x5e3644=_0x43e8a4;this[_0x5e3644(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x277)](_0x15dee3,_0x35d7dc,_0x341e22){const _0x4427eb=_0x43e8a4;let _0x30563d=this[_0x4427eb(0x17f)]['getShapeTypeById'](_0x15dee3,_0x35d7dc,_0x341e22),_0x492a33=this[_0x4427eb(0x17f)][_0x4427eb(0x274)](_0x15dee3,_0x35d7dc,_0x341e22);return _0x30563d===void 0x0||_0x492a33===void 0x0?null:{'shapeData':_0x492a33,'shapeId':_0x341e22,'shapeType':_0x30563d,'unitId':_0x15dee3,'subUnitId':_0x35d7dc,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x43e8a4(0x2c0)](_0x30df34,_0x42b0d3=!0x1){const _0x26fd9d=_0x43e8a4;if(_0x30df34==null){[...this[_0x26fd9d(0xdc)][_0x26fd9d(0x20d)]()][_0x26fd9d(0xd6)](_0x3669e7=>this[_0x26fd9d(0x2c0)](_0x3669e7,_0x42b0d3));return;}let _0x1e759c=this[_0x26fd9d(0xdc)][_0x26fd9d(0x7a)](_0x30df34);if(_0x1e759c){for(let _0x4fcad5=_0x1e759c[_0x26fd9d(0x1ee)]-0x1;_0x4fcad5>=0x0;--_0x4fcad5){let _0x4f5fbd=_0x1e759c[_0x4fcad5];(_0x42b0d3||_0x4f5fbd[_0x26fd9d(0x2b6)]())&&(_0x4f5fbd[_0x26fd9d(0xb0)](),_0x1e759c[_0x26fd9d(0x180)](_0x4fcad5,0x1));}_0x1e759c[_0x26fd9d(0x1ee)]===0x0&&(this[_0x26fd9d(0xdc)][_0x26fd9d(0x13c)](_0x30df34),this[_0x26fd9d(0x245)][_0x26fd9d(0x13c)](_0x30df34));}}['_getDisposePopups'](_0x4ee30e){const _0x566e28=_0x43e8a4;let _0x2d34c2=this[_0x566e28(0xdc)][_0x566e28(0x7a)](_0x4ee30e);if(_0x2d34c2)return _0x2d34c2;let _0x3c6799=[];return this[_0x566e28(0xdc)][_0x566e28(0x290)](_0x4ee30e,_0x3c6799),_0x3c6799;}['_popupMenuListener'](_0x14627b){const _0x1f5e14=_0x43e8a4;var _0x262ced;let _0x4abd74=new _0x4bf1ef(),_0x56c2af=(_0x262ced=this[_0x1f5e14(0xa3)]['getAllRenderersOfType'](_0x37d2f3[_0x1f5e14(0x10d)])[_0x1f5e14(0x2d0)](_0x22fe94=>_0x22fe94[_0x1f5e14(0x71)]['getTransformerByCreate']()===_0x14627b))==null?void 0x0:_0x262ced[_0x1f5e14(0xa2)];return _0x56c2af&&(_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1ac)][_0x1f5e14(0x120)](()=>this['_handleCreateControl'](_0x14627b,_0x56c2af))),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x1c3)][_0x1f5e14(0x120)](()=>{const _0x36777c=_0x1f5e14;this[_0x36777c(0x2c0)](_0x56c2af),queueMicrotask(()=>{const _0x1fcf01=_0x36777c;_0x14627b['getSelectedObjectMap']()[_0x1fcf01(0x73)]>0x0||!this[_0x1fcf01(0x282)][_0x1fcf01(0x2bf)]()['some'](_0x5f58cb=>_0x5f58cb['unitId']===_0x56c2af)||(this[_0x1fcf01(0xfc)]['setContextValue'](_0x2f74ce,!0x1),this[_0x1fcf01(0x282)][_0x1fcf01(0xd9)](null));});})),_0x4abd74[_0x1f5e14(0x106)](_0x14627b[_0x1f5e14(0x190)][_0x1f5e14(0x120)](()=>{const _0x431488=_0x1f5e14;this[_0x431488(0x2c0)](_0x56c2af,!0x0);}))),_0x4abd74;}[_0x43e8a4(0xa9)](_0x32a1af,_0x193120){const _0x24c86e=_0x43e8a4;let _0x57123b=_0x32a1af[_0x24c86e(0x103)]();if(this[_0x24c86e(0x21a)]){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}if(_0x57123b['size']>0x1){this[_0x24c86e(0x2c0)](_0x193120);return;}let _0x3b6ce2=_0x57123b[_0x24c86e(0x22d)]()['next']()[_0x24c86e(0x152)];if(!_0x3b6ce2){this['_clearPopups'](_0x193120);return;}let _0x3239b4=this[_0x24c86e(0x282)]['getDrawingOKey'](_0x3b6ce2[_0x24c86e(0xef)]);if(!_0x3239b4||_0x3239b4['drawingType']!==_0x1652cd[_0x24c86e(0x156)]){this[_0x24c86e(0x2c0)](_0x193120);return;}let {unitId:_0x4c0be6,subUnitId:_0x418017,drawingId:_0x48b8bf}=_0x3239b4;if(!this[_0x24c86e(0xcf)](_0x4c0be6,_0x48b8bf)){this[_0x24c86e(0x2c0)](_0x193120,!0x0);return;}let _0x106c34=this[_0x24c86e(0x277)](_0x4c0be6,_0x418017,_0x48b8bf);if(!_0x106c34){this['_clearPopups'](_0x193120);return;}let _0x60d8f9=this[_0x24c86e(0xdc)][_0x24c86e(0x7a)](_0x193120),_0x3f3b48=_0x4c0be6+':'+_0x418017+':'+_0x48b8bf;if(this[_0x24c86e(0x245)]['get'](_0x193120)===_0x3f3b48&&_0x60d8f9!=null&&_0x60d8f9[_0x24c86e(0x1ee)])return;this[_0x24c86e(0x2c0)](_0x193120);let _0x583431=this['_renderManagerService']['getRenderUnitById'](_0x4c0be6),_0x444794=((_0x583431==null?void 0x0:_0x583431[_0x24c86e(0x193)])===!0x1?_0x583431[_0x24c86e(0x178)](_0x58fb7f):this[_0x24c86e(0x28e)])['attachPopupToObject'](_0x3b6ce2,this[_0x24c86e(0xd2)](_0x106c34,()=>this[_0x24c86e(0x2c0)](_0x193120,!0x0)),_0x4c0be6);this[_0x24c86e(0xb3)](_0x444794),this[_0x24c86e(0x118)](_0x193120)['push'](_0x444794),this[_0x24c86e(0x245)][_0x24c86e(0x290)](_0x193120,_0x3f3b48),this[_0x24c86e(0x282)][_0x24c86e(0x2bf)]()[_0x24c86e(0x1f5)](_0x4b2472=>_0x4b2472['unitId']===_0x4c0be6&&_0x4b2472['subUnitId']===_0x418017&&_0x4b2472['drawingId']===_0x48b8bf)||this[_0x24c86e(0x282)][_0x24c86e(0xd9)]([{'unitId':_0x4c0be6,'subUnitId':_0x418017,'drawingId':_0x48b8bf}]);}[_0x43e8a4(0xd2)](_0x598c50,_0x129a96){const _0x45e76a=_0x43e8a4;let {unitId:_0x3cd78e,subUnitId:_0x481275,shapeId:_0x5146a1}=_0x598c50,_0x54f92d={'hostType':_0x37d2f3[_0x45e76a(0x10d)],'unitId':_0x3cd78e,'subUnitId':_0x481275,'shapeId':_0x5146a1};return{'componentKey':da,'requiresStableLayout':!0x1,'direction':_0x45e76a(0x1df),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x598c50[_0x45e76a(0x6d)],'onText':()=>{const _0x539054=_0x45e76a;_0x129a96(),this['_mobileEditorService'][_0x539054(0x29c)](_0x539054(0x98),_0x54f92d);},'onStyle':()=>{const _0x2aaf86=_0x45e76a;_0x129a96(),this[_0x2aaf86(0x9f)][_0x2aaf86(0x29c)](_0x2aaf86(0x68),_0x54f92d);},'onDelete':()=>this['_commandService'][_0x45e76a(0x2cf)](_0x1dc354['id'],{'unitId':_0x3cd78e,'drawings':[{'unitId':_0x3cd78e,'subUnitId':_0x481275,'drawingId':_0x5146a1}]})}};}[_0x43e8a4(0xcf)](_0x5851da,_0x1c740f){const _0x3fd079=_0x43e8a4;let _0x5cf5a4=this[_0x3fd079(0x7b)]['getUnit'](_0x5851da,_0x37d2f3[_0x3fd079(0x10d)]);if(!_0x5cf5a4)return!0x1;let _0x39d0d5=_0x34c0dc(_0x5cf5a4,_0x1c740f);return _0xaad49(this[_0x3fd079(0x218)],_0x5851da,[..._0x1ed368(_0x5cf5a4,_0x39d0d5,_0x3fd079(0x292),_0x1c740f),_0x17c75c(_0x39d0d5,_0x3fd079(0x292),_0x1c740f)]);}[_0x43e8a4(0x2d3)](){const _0x55f4a8=_0x43e8a4;this['disposeWithMe'](this['_commandService'][_0x55f4a8(0x1b3)](_0x13b876=>{const _0x21cfda=_0x55f4a8;if(_0x13b876['id']===G['id']){let {unitId:_0x79cab9,subUnitId:_0x7fa758,drawingId:_0xaaee80}=_0x13b876[_0x21cfda(0x132)];this['_shapeEditPanelVersion']+=0x1,this[_0x21cfda(0x1b1)]=this['_getShapeInfo'](_0x79cab9,_0x7fa758,_0xaaee80),this[_0x21cfda(0x2c0)](void 0x0,!0x0),this[_0x21cfda(0x10e)]();}if(_0x13b876['id']===Bi['id']&&(this[_0x21cfda(0x1b1)]=null,this['_closeShapeEditPanel']()),_0x13b876['id']===_0x4aaefb['id']){var _0x588190;let {unitId:_0x15c45d,shapeId:_0x7898f8}=_0x13b876[_0x21cfda(0x132)];if(((_0x588190=this[_0x21cfda(0x1b1)])==null?void 0x0:_0x588190[_0x21cfda(0x1a5)])===_0x7898f8){let _0x290988=this['_getShapeInfo'](_0x15c45d,this[_0x21cfda(0x1b1)]['subUnitId'],_0x7898f8);_0x290988&&(this[_0x21cfda(0x231)]+=0x1,_0x290988[_0x21cfda(0x1bd)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x290988,this[_0x21cfda(0x21a)]&&this[_0x21cfda(0x10e)]());}}})),this[_0x55f4a8(0xb3)](this[_0x55f4a8(0x282)]['focus$'][_0x55f4a8(0x120)](_0x1a84d2=>{const _0x3d778e=_0x55f4a8;if(!this[_0x3d778e(0x21a)])return;if(_0x1a84d2[_0x3d778e(0x1ee)]===0x0){this['_activeShapeInfo']=null,this[_0x3d778e(0x2bd)]();return;}if(_0x1a84d2[_0x3d778e(0x1ee)]===0x1&&_0x1a84d2[0x0][_0x3d778e(0x119)]===_0x1652cd[_0x3d778e(0x156)]&&(this[_0x3d778e(0x231)]+=0x1,this[_0x3d778e(0x1b1)]=this[_0x3d778e(0x277)](_0x1a84d2[0x0]['unitId'],_0x1a84d2[0x0]['subUnitId'],_0x1a84d2[0x0][_0x3d778e(0x198)]),this['_activeShapeInfo'])){this['_openShapeEditPanel']();return;}let _0x2f4ad5=_0x1a84d2[_0x3d778e(0x121)](_0x372340=>_0x372340[_0x3d778e(0x119)]===_0x1652cd['DRAWING_SHAPE']);this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this[_0x3d778e(0x277)](_0x1a84d2[0x0][_0x3d778e(0xa2)],_0x1a84d2[0x0][_0x3d778e(0x2d2)],_0x1a84d2[0x0][_0x3d778e(0x198)]),this[_0x3d778e(0x1b1)]&&_0x1a84d2[_0x3d778e(0x1ee)]>0x1&&_0x2f4ad5[_0x3d778e(0x1ee)]===_0x1a84d2[_0x3d778e(0x1ee)]?this[_0x3d778e(0x10e)]():this['_activeShapeInfo']&&_0x2f4ad5['length']!==_0x1a84d2[_0x3d778e(0x1ee)]?(this[_0x3d778e(0x1b1)]['disableShapeOption']=!0x0,this[_0x3d778e(0x10e)]()):this[_0x3d778e(0x2bd)]();}));}['_openShapeEditPanel'](){const _0x2e34b2=_0x43e8a4;this['_activeShapeInfo']&&(this[_0x2e34b2(0x9b)]=this[_0x2e34b2(0x1c9)]['open']({'id':W,'header':{'title':this[_0x2e34b2(0x267)]['t'](_0x2e34b2(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x365aeb=_0x2e34b2;this[_0x365aeb(0x282)]['focusDrawing'](null),this[_0x365aeb(0xfc)][_0x365aeb(0x25c)](_0x2f74ce,!0x1),this['_sidebarDisposable']=null;}}),this[_0x2e34b2(0x21a)]=!0x0);}['_closeShapeEditPanel'](){const _0x2f92d9=_0x43e8a4;this[_0x2f92d9(0x21a)]=!0x1,this['_sidebarService'][_0x2f92d9(0x234)](W),this['_sidebarDisposable']=null,this[_0x2f92d9(0xfc)][_0x2f92d9(0x25c)](_0x2f74ce,!0x1),this[_0x2f92d9(0x282)]['focusDrawing'](null);}};ba=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3),K(0xc,_0x376ec2(_0x1c4e81))],ba);const xa=_0x43e8a4(0x18f);let Sa=class extends _0x143425{constructor(_0x3295b3,_0x3eef1a,_0x5a5132,_0x347c58,_0x53912e,_0x21f35a){const _0x54b608=_0x43e8a4;super(),this[_0x54b608(0x2b7)]=_0x3295b3,this[_0x54b608(0x203)]=_0x3eef1a,this[_0x54b608(0x282)]=_0x5a5132,this[_0x54b608(0x7b)]=_0x347c58,this['_renderManagerService']=_0x53912e,this[_0x54b608(0x19f)]=_0x21f35a,J(this,'_visible',!0x1),this[_0x54b608(0x2b7)][_0x54b608(0x158)](Ii),this[_0x54b608(0xb3)](_0x44b80c(this[_0x54b608(0x282)][_0x54b608(0x144)][_0x54b608(0x120)](()=>this[_0x54b608(0x21f)]()))),this[_0x54b608(0x21f)]();}[_0x43e8a4(0xb0)](){const _0x125e01=_0x43e8a4;this[_0x125e01(0x19f)][_0x125e01(0x126)](!0x1,xa),this[_0x125e01(0xf2)](),super[_0x125e01(0xb0)]();}[_0x43e8a4(0x21f)](){const _0x176a99=_0x43e8a4;var _0x2e3e38;let _0x414920=this[_0x176a99(0x282)][_0x176a99(0x2bf)](),_0x1e32c1=_0x414920[_0x176a99(0x1ee)]===0x1?_0x414920[0x0]:void 0x0;if((_0x1e32c1==null?void 0x0:_0x1e32c1[_0x176a99(0x119)])!==_0x1652cd[_0x176a99(0x156)]||this[_0x176a99(0x7b)][_0x176a99(0x177)](_0x1e32c1['unitId'])!==_0x37d2f3[_0x176a99(0x10d)]){this[_0x176a99(0x19f)][_0x176a99(0x126)](!0x1,xa),this[_0x176a99(0xf2)]();return;}let _0x58b771=(_0x2e3e38=this[_0x176a99(0xa3)][_0x176a99(0x2b0)](_0x1e32c1['unitId']))==null?void 0x0:_0x2e3e38['engine'][_0x176a99(0x99)](),_0x1901ab=_0x3c6397(_0x58b771)==='isolated';this['_shapeFloatingToolbarService']['setFallbackVisible'](_0x1901ab,xa),_0x1901ab?this[_0x176a99(0xf2)]():(this['_visible']=!0x0,this['_ribbonService']['showContextualTab'](Dr,{'activate':!0x0}));}[_0x43e8a4(0xf2)](){const _0x262391=_0x43e8a4;this[_0x262391(0xc3)]&&(this[_0x262391(0xc3)]=!0x1,this[_0x262391(0x203)][_0x262391(0xca)](Dr),this['_ribbonService'][_0x262391(0x2b4)]([]));}};Sa=q([K(0x0,_0x354de5),K(0x1,_0x1989ad),K(0x2,_0x4ed84c),K(0x3,_0x58ad01),K(0x4,_0x20175c),K(0x5,_0x376ec2(_0x9377b1))],Sa);let Ca=class extends _0x143425{constructor(_0x2e5fce,_0x45326d,_0x64d07b,_0x249f1a){const _0x1a4c06=_0x43e8a4;super(),this[_0x1a4c06(0x10c)]=_0x2e5fce,this['_renderManagerService']=_0x45326d,this[_0x1a4c06(0x282)]=_0x64d07b,this['_docDrawingShapeRenderController']=_0x249f1a,this[_0x1a4c06(0xf9)]();}['_initialize'](){const _0x2add24=_0x43e8a4;this[_0x2add24(0xb3)](this['_drawingManagerService']['add$']['subscribe'](_0x3a8c33=>this[_0x2add24(0x197)](_0x3a8c33))),this[_0x2add24(0xb3)](this[_0x2add24(0x282)][_0x2add24(0x261)][_0x2add24(0x120)](_0x5c6a7b=>{const _0x57ae3d=_0x2add24;_0x5c6a7b[_0x57ae3d(0xd6)](_0x5f5b4a=>this[_0x57ae3d(0x24a)](_0x5f5b4a));})),this[_0x2add24(0xb3)](this[_0x2add24(0x10c)][_0x2add24(0x1b3)](_0x23fc90=>{const _0x29f28a=_0x2add24;if(_0x23fc90['id']!==_0x4aaefb['id'])return;let {unitId:_0x2db78f,shapeId:_0x4b635d}=_0x23fc90[_0x29f28a(0x132)];this[_0x29f28a(0x151)]({'unitId':_0x2db78f,'subUnitId':_0x2db78f,'drawingId':_0x4b635d});}));}['_insertShapes'](_0x573cfa){_0x573cfa['forEach'](_0x7f9092=>{const _0x4806c8=_0xe027;let _0xd6efce=this[_0x4806c8(0xe8)](_0x7f9092[_0x4806c8(0xa2)]);if(!_0xd6efce)return;let _0x26d728=this['_drawingManagerService'][_0x4806c8(0xfd)](_0x7f9092);(_0x26d728==null?void 0x0:_0x26d728[_0x4806c8(0x119)])===_0x1652cd['DRAWING_SHAPE']&&this[_0x4806c8(0x272)][_0x4806c8(0xa6)](_0x26d728,_0xd6efce[_0x4806c8(0x71)]);});}[_0x43e8a4(0x24a)](_0x16a4ec){const _0x619492=_0x43e8a4;let _0x29750a=this[_0x619492(0x282)]['getDrawingByParam'](_0x16a4ec);if((_0x29750a==null?void 0x0:_0x29750a[_0x619492(0x119)])!==_0x1652cd[_0x619492(0x156)])return;let _0x5eb442=this[_0x619492(0xe8)](_0x16a4ec['unitId']);if(!_0x5eb442||_0x29750a[_0x619492(0x260)]==null)return;let _0x54d980=_0x33c05c(_0x16a4ec),_0x3ac1ab=_0x5eb442[_0x619492(0x71)][_0x619492(0x17b)](_0x54d980);_0x3ac1ab&&(_0x3ac1ab[_0x619492(0x1d7)](_0x29750a['srcRect']),_0x3ac1ab[_0x619492(0x1ef)](_0x29750a[_0x619492(0x2a1)]),_0x3ac1ab[_0x619492(0x11f)](!0x0));}[_0x43e8a4(0x151)](_0x179b03){const _0x452975=_0x43e8a4;let _0x54f9e3=this[_0x452975(0xe8)](_0x179b03[_0x452975(0xa2)]);if(!_0x54f9e3)return;let _0x4d4ad6=_0x33c05c(_0x179b03),_0x142503=_0x54f9e3['scene']['getObjectIncludeInGroup'](_0x4d4ad6);_0x142503&&(this['_docDrawingShapeRenderController'][_0x452975(0x1af)](_0x142503),this[_0x452975(0x272)]['refreshFormulaPresentation'](_0x142503,{'unitId':_0x179b03['unitId'],'subUnitId':_0x179b03[_0x452975(0x2d2)],'shapeId':_0x179b03['drawingId']}),_0x142503[_0x452975(0x11f)](!0x0));}[_0x43e8a4(0xe8)](_0x1570fd){const _0x265219=_0x43e8a4;if(_0x1570fd==null)return null;let _0x20591c=this[_0x265219(0xa3)]['getRenderUnitById'](_0x1570fd),_0xfce0ea=_0x20591c==null?void 0x0:_0x20591c[_0x265219(0x71)];return _0xfce0ea==null?null:{'scene':_0xfce0ea};}};Ca=q([K(0x0,_0x5d4fd5),K(0x1,_0x20175c),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(Z))],Ca);let Q=class extends _0x48417e{constructor(_0x5134cc=Hi,_0xd4bc56,_0x511d8d,_0x35aadc,_0xa5a830){const _0x3e839e=_0x43e8a4;super(),this[_0x3e839e(0x28d)]=_0x5134cc,this[_0x3e839e(0x1ae)]=_0xd4bc56,this[_0x3e839e(0x10c)]=_0x511d8d,this[_0x3e839e(0x1f3)]=_0x35aadc,this[_0x3e839e(0xa3)]=_0xa5a830;let {menu:_0x5029e2,..._0x673a70}=_0x77c685({},Hi,this['_config']);_0x5029e2&&this['_configService'][_0x3e839e(0x211)](_0x3e839e(0x8f),_0x5029e2,{'merge':!0x0}),this[_0x3e839e(0x1f3)]['setConfig'](Vi,_0x673a70),[U,Bi,G,Mr,Pr,Fr][_0x3e839e(0xd6)](_0x34fb49=>this['disposeWithMe'](this[_0x3e839e(0x10c)]['registerCommand'](_0x34fb49)));}[_0x43e8a4(0x257)](){const _0x31ccde=_0x43e8a4;let _0x58e0ed=[[ya],[ba],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[X],[Sa]];_0x1fed5b(this['_injector'],_0x58e0ed),this[_0x31ccde(0x1ae)][_0x31ccde(0x7a)](ya);}['onReady'](){const _0x940d9e=_0x43e8a4;this[_0x940d9e(0xb3)](this['_renderManagerService'][_0x940d9e(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Ji])),_0xd342cc(this[_0x940d9e(0x1ae)],[[ba],[Ca],[Z],[Xi],[Ir],[aa],[X],[Sa]]);}};J(Q,_0x43e8a4(0x297),_0x37d2f3['UNIVER_DOC']),J(Q,'pluginName','DOCS_SHAPE_UI_PLUGIN'),J(Q,'packageName',Ri),J(Q,_0x43e8a4(0x1bd),zi),Q=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1a2f56,_0x55fd02,_0x3a37cf,_0x2830ac,_0x1727f1,_0x2e07fc,_0x54a90e),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],Q);let wa=class extends _0x143425{constructor(_0x4186e6,_0x2dc274){const _0x5172f2=_0x43e8a4;super(),this[_0x5172f2(0x179)]=_0x4186e6,this[_0x5172f2(0x2b2)]=_0x2dc274,this[_0x5172f2(0x14a)](),this[_0x5172f2(0xb6)]();}[_0x43e8a4(0x14a)](){const _0x5a7060=_0x43e8a4;this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('ObjectLayersIcon')||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)]['register']({'ObjectLayersIcon':_0x362b77})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x1a0))||this['disposeWithMe'](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'BottomIcon':_0x463d79})),this[_0x5a7060(0x2b2)][_0x5a7060(0x1da)]('MoveDownIcon')||this['disposeWithMe'](this[_0x5a7060(0x2b2)]['register']({'MoveDownIcon':_0x13639d})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0x287))||this['disposeWithMe'](this['_iconManager']['register']({'MoveUpIcon':_0x384086})),this[_0x5a7060(0x2b2)]['has'](_0x5a7060(0xee))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'ShapeFormatSettingIcon':_0x306814})),this['_iconManager'][_0x5a7060(0x1da)](_0x5a7060(0xdd))||this[_0x5a7060(0xb3)](this[_0x5a7060(0x2b2)][_0x5a7060(0x14c)]({'TopmostIcon':_0x1b36a9})),this[_0x5a7060(0xb3)](this['_iconManager']['register'](_a));}[_0x43e8a4(0xb6)](){const _0x33b7da=_0x43e8a4;this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](W,sa)),this['_registerObjectListPanel'](),this[_0x33b7da(0xde)](),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](Qr,ii)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Zr,ai)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register']($r,oi)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](ei,si)),this[_0x33b7da(0xb3)](this['_componentManager'][_0x33b7da(0x14c)](ti,ci)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)]['register'](Ar,_0x4eb1a6)),this[_0x33b7da(0x23f)](),this['_componentManager'][_0x33b7da(0xcc)](_0x1efce9)||this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](_0x1efce9,Hr)),this[_0x33b7da(0xb3)](this[_0x33b7da(0x179)][_0x33b7da(0x14c)](jr,va));}[_0x43e8a4(0x246)](){const _0xa729=_0x43e8a4;this[_0xa729(0xb3)](this[_0xa729(0x179)][_0xa729(0x14c)](Or,ra));}[_0x43e8a4(0xde)](){const _0x2c7efc=_0x43e8a4;this[_0x2c7efc(0xb3)](this[_0x2c7efc(0x179)][_0x2c7efc(0x14c)](da,pa));}[_0x43e8a4(0x23f)](){const _0x1cfb10=_0x43e8a4;this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Lr,Ur)),this[_0x1cfb10(0xb3)](this[_0x1cfb10(0x179)][_0x1cfb10(0x14c)](Rr,Vr));}};wa=q([K(0x0,_0x376ec2(_0x5974e5)),K(0x1,_0x376ec2(_0x358fdb))],wa);let Ta=class extends _0x143425{constructor(_0x99c93b,_0xf31f0e,_0x545900,_0x5c2f48,_0x232223,_0x247ac9,_0x3d7447,_0x13a511,_0x54e32b){const _0x2dcfb5=_0x43e8a4;super();let _0x499f18=_0x25e218=>{const _0x3c0220=_0xe027;let _0xfb04c5=_0x247ac9[_0x3c0220(0x254)](_0x25e218[_0x3c0220(0xa2)],_0x37d2f3[_0x3c0220(0x10d)]),_0x5e2760=_0xfb04c5?_0x34c0dc(_0xfb04c5,_0x25e218[_0x3c0220(0x1a5)]):'';return!!_0xfb04c5&&_0xaad49(_0x13a511,_0x25e218[_0x3c0220(0xa2)],[_0x17c75c(_0x5e2760,'drawing',_0x25e218[_0x3c0220(0x1a5)]),..._0x1ed368(_0xfb04c5,_0x5e2760,_0x3c0220(0x292),_0x25e218[_0x3c0220(0x1a5)])]);},_0x172d05=_0x195106=>_0x195106[_0x2dcfb5(0x1a5)]&&_0x499f18(_0x195106)?_0x545900[_0x2dcfb5(0x274)](_0x195106[_0x2dcfb5(0xa2)],_0x195106[_0x2dcfb5(0x1a5)])??null:null,_0x3ec9d5=()=>{const _0x49f461=_0x2dcfb5;let _0x369f55=_0x232223[_0x49f461(0x2bf)](),_0x5a96b=_0x369f55[_0x49f461(0x1ee)]===0x1?_0x369f55[0x0]:null;return(_0x5a96b==null?void 0x0:_0x5a96b[_0x49f461(0x119)])===_0x1652cd['DRAWING_SHAPE']&&_0x5a96b[_0x49f461(0xa2)]===_0x99c93b[_0x49f461(0xa2)]?{'unitId':_0x5a96b[_0x49f461(0xa2)],'subUnitId':_0x5a96b[_0x49f461(0x2d2)],'shapeId':_0x5a96b[_0x49f461(0x198)]}:null;};this[_0x2dcfb5(0xb3)](_0x3c87e0(_0x99c93b,_0xf31f0e,{'changes$':_0x3018f6(_0x232223[_0x2dcfb5(0x144)],_0x5c2f48['editingParams$'],_0x13a511['permissionPointUpdate$']),'isActive':()=>{const _0x1d38ad=_0x2dcfb5;var _0x492135;return((_0x492135=_0x247ac9[_0x1d38ad(0xda)]())==null?void 0x0:_0x492135['getUnitId']())===_0x99c93b[_0x1d38ad(0xa2)]&&!_0x3d7447[_0x1d38ad(0x2c3)](_0x1e386f)&&_0x232223['getFocusDrawings']()['some'](_0x3f65ea=>_0x3f65ea['unitId']===_0x99c93b['unitId']);},'getSelectedTarget':_0x3ec9d5,'getSource':()=>{let _0x506cb3=_0x3ec9d5();return _0x506cb3?_0x172d05(_0x506cb3):null;},'getTarget':_0x1320e9=>{const _0x38fe4d=_0x2dcfb5;let _0x216898=_0x99c93b[_0x38fe4d(0x71)][_0x38fe4d(0xff)](new _0x7e1ba8(_0x1320e9[_0x38fe4d(0x165)],_0x1320e9[_0x38fe4d(0x1d4)]));if(!(_0x216898 instanceof Y))return null;let _0x3b6fb1={'unitId':_0x99c93b[_0x38fe4d(0xa2)],'subUnitId':_0x99c93b['unitId'],'shapeId':_0x216898[_0x38fe4d(0x1a5)]};return _0x499f18(_0x3b6fb1)?_0x3b6fb1:null;},'getShape':_0x172d05,'update':(_0x59e4b7,_0x14f8ff,_0x28a315)=>_0x54e32b[_0x2dcfb5(0x2cf)](_0xc5bd8e['id'],{..._0x59e4b7,'shapeData':_0x28a315,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x14f8ff}})}));}};Ta=q([K(0x1,_0x376ec2(_0x22cfa6)),K(0x2,_0x376ec2(_0x3e6ec4)),K(0x3,_0x376ec2(X)),K(0x4,_0x4ed84c),K(0x5,_0x58ad01),K(0x6,_0x46b73a),K(0x7,_0x1b33f3),K(0x8,_0x5d4fd5)],Ta);function Ea(_0x585f44,_0x255212){const _0x4061d6=_0x43e8a4;let _0x275694=_0x585f44;for(;_0x275694;){if(_0x255212(_0x275694))return _0x275694;_0x275694=typeof _0x275694[_0x4061d6(0xf7)]==_0x4061d6(0xb9)?_0x275694[_0x4061d6(0xf7)]():null;}return null;}function Da(_0x272b88){return Ea(_0x272b88,_0x54c020=>_0x54c020 instanceof Y);}function Oa(_0x1f4bcd){return(_0x1f4bcd==null?void 0x0:_0x1f4bcd['formulaBinding'])==null;}let ka=class extends _0x143425{constructor(_0x2ad464,_0x1e50fd,_0x3586af,_0x1ea211,_0x342f25){const _0x30ece7=_0x43e8a4;super(),this[_0x30ece7(0xed)]=_0x2ad464,this[_0x30ece7(0x72)]=_0x1e50fd,this[_0x30ece7(0x282)]=_0x3586af,this['_docLayoutInteractionService']=_0x1ea211,this[_0x30ece7(0x17f)]=_0x342f25,J(this,_0x30ece7(0x226),null),J(this,_0x30ece7(0x194),null),this[_0x30ece7(0x280)](),this[_0x30ece7(0x284)](),this[_0x30ece7(0x182)]();}[_0x43e8a4(0xb0)](){const _0xd56e78=_0x43e8a4;this[_0xd56e78(0x1d0)](),super['dispose']();}['_initEvents'](){const _0x7f8725=_0x43e8a4;let {scene:_0x271b8f}=this[_0x7f8725(0xed)];this[_0x7f8725(0xb3)](_0x271b8f[_0x7f8725(0x11b)][_0x7f8725(0xcd)]((_0x5ea1f1,_0xf47765)=>{const _0x4a6a76=_0x7f8725;let {offsetX:_0x219430,offsetY:_0x11c043}=_0x5ea1f1,_0x34524a=_0x7e1ba8[_0x4a6a76(0x142)]([_0x219430,_0x11c043]),_0x1ab20d=Da(_0x271b8f[_0x4a6a76(0xff)](_0x34524a))??this[_0x4a6a76(0x111)](_0x34524a);if(_0x1ab20d){_0xf47765[_0x4a6a76(0x1ea)]();let _0x2cf0a8=this[_0x4a6a76(0x17f)][_0x4a6a76(0x100)](_0x1ab20d[_0x4a6a76(0xa2)],_0x1ab20d[_0x4a6a76(0x2d2)],_0x1ab20d[_0x4a6a76(0x1a5)]);if(!_0x2cf0a8||_0x3a8d31(_0x2cf0a8[_0x4a6a76(0x2d1)]())||!Oa(_0x2cf0a8[_0x4a6a76(0x299)]()))return;this[_0x4a6a76(0x72)]['setEditing']({'visible':!0x0,'unitId':_0x1ab20d[_0x4a6a76(0xa2)],'subUnitId':_0x1ab20d[_0x4a6a76(0x2d2)],'shapeId':_0x1ab20d[_0x4a6a76(0x1a5)],'shapeKey':_0x1ab20d[_0x4a6a76(0xef)]});}}));}[_0x43e8a4(0x111)](_0x578e24){const _0x4e4792=_0x43e8a4;let {scene:_0x225509}=this[_0x4e4792(0xed)];return this[_0x4e4792(0x282)][_0x4e4792(0x2bf)]()[_0x4e4792(0x1e4)](_0x360f09=>_0x225509[_0x4e4792(0x17b)](_0x33c05c(_0x360f09)))[_0x4e4792(0x2d0)](_0x3262aa=>_0x3262aa instanceof Y&&_0x3262aa[_0x4e4792(0x2b3)](_0x578e24))??null;}[_0x43e8a4(0x284)](){const _0x36743d=_0x43e8a4;this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['focus$'][_0x36743d(0x120)](_0x520595=>{const _0x5218a8=_0x36743d;if(_0x520595[_0x5218a8(0x1ee)]===0x1){let _0x15f348=_0x520595[0x0],_0x28f45a=this['_drawingManagerService'][_0x5218a8(0xfd)](_0x15f348);if((_0x28f45a==null?void 0x0:_0x28f45a[_0x5218a8(0x119)])===_0x1652cd[_0x5218a8(0x156)]){let _0x9b07ad=this[_0x5218a8(0x72)][_0x5218a8(0x1a2)]();if((_0x9b07ad==null?void 0x0:_0x9b07ad[_0x5218a8(0x1a5)])===_0x15f348['drawingId']&&_0x9b07ad[_0x5218a8(0x1b4)])return;_0x3a8d31(this[_0x5218a8(0x17f)][_0x5218a8(0x2d1)](_0x15f348[_0x5218a8(0xa2)],_0x15f348[_0x5218a8(0x2d2)],_0x15f348[_0x5218a8(0x198)]))&&this['_shapeTextEditingService'][_0x5218a8(0x15a)](null);}else this[_0x5218a8(0x72)]['completeEditing']();}else this[_0x5218a8(0x72)][_0x5218a8(0x209)]();})),this[_0x36743d(0xb3)](this[_0x36743d(0x282)]['remove$'][_0x36743d(0x120)](_0x5db538=>{const _0x34cf1d=_0x36743d;let _0x48efdb=this['_shapeTextEditingService']['getEditing']();_0x48efdb&&_0x5db538['some'](_0x1c94cb=>_0x1c94cb['drawingId']===_0x48efdb[_0x34cf1d(0x1a5)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x43e8a4(0x182)](){const _0x1da622=_0x43e8a4;this['disposeWithMe'](this[_0x1da622(0x72)][_0x1da622(0x80)][_0x1da622(0x120)](_0x42bf08=>{const _0x213a71=_0x1da622;(_0x42bf08==null?void 0x0:_0x42bf08['visible'])===!0x0&&_0x42bf08[_0x213a71(0xa2)]===this[_0x213a71(0xed)][_0x213a71(0xa2)]?this[_0x213a71(0x194)]??=this[_0x213a71(0x6a)]['beginInteraction']():this['_endLayoutInteraction']();let {scene:_0x1789ac}=this[_0x213a71(0xed)];if(this[_0x213a71(0x226)]){let _0x5abbcf=_0x1789ac[_0x213a71(0x17b)](this[_0x213a71(0x226)]);_0x5abbcf&&_0x5abbcf[_0x213a71(0x15a)](!0x1);}if(_0x42bf08){let _0x157ac2=!!_0x42bf08['visible'],_0x19dc33=_0x1789ac['getObjectIncludeInGroup'](_0x42bf08[_0x213a71(0x166)]);_0x19dc33&&(_0x19dc33[_0x213a71(0x15a)](_0x157ac2),this[_0x213a71(0x226)]=_0x42bf08[_0x213a71(0x166)]);}else this[_0x213a71(0x226)]=null;}));}['_endLayoutInteraction'](){const _0x1aecaf=_0x43e8a4;var _0x47250b;(_0x47250b=this[_0x1aecaf(0x194)])==null||_0x47250b[_0x1aecaf(0xb0)](),this[_0x1aecaf(0x194)]=null;}};ka=q([K(0x1,_0x376ec2(X)),K(0x2,_0x4ed84c),K(0x3,_0x376ec2(_0xf6bc99)),K(0x4,_0x376ec2(_0x3e6ec4))],ka);let Aa=class extends _0x4b2f89{constructor(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077){super(_0x291bcc,_0x2e2cde,_0x4607ae,_0x5a6361,_0x587a8e,_0x44b2b8,_0x2cec19,_0x87d41f,_0x57f14b,_0x391077,{'componentKey':Ar,'editorUnitId':kr});}};Aa=q([K(0x1,_0x376ec2(_0x2e2dde)),K(0x2,_0x376ec2(_0x58fb7f)),K(0x3,_0x376ec2(_0x161ebd)),K(0x4,_0x5d4fd5),K(0x5,_0x376ec2(_0x21724d)),K(0x6,_0x376ec2(_0x478335)),K(0x7,_0x376ec2(_0x106c33)),K(0x8,_0x376ec2(_0x3f802a)),K(0x9,_0x376ec2(X))],Aa);let ja=class extends _0x34514a{constructor(_0x2bb791,_0x241c06,_0x3c1d79,_0xf82fac,_0x5a87f5){super(_0x2bb791,_0x241c06,{'editing$':_0x3c1d79['editingParams$'],'resolve':_0xb2d5a3=>{const _0xdd517=_0xe027;var _0x2f90af;let _0x373cab=new _0x7e1ba8(_0xb2d5a3[_0xdd517(0x165)],_0xb2d5a3['offsetY']),_0xb6af2e=((_0x2f90af=_0x2bb791['scene']['getActiveViewportByCoord'](_0x373cab))==null?void 0x0:_0x2f90af[_0xdd517(0x19e)](_0x373cab))??_0x373cab,_0x573b17=_0x2c5cc5(_0x2bb791[_0xdd517(0x71)]['pick'](_0x373cab)??null,_0xb6af2e);if(!(_0x573b17 instanceof Y))return null;let _0x4c6211=_0x573b17[_0xdd517(0x150)](_0xb6af2e);if(!_0x4c6211)return null;let _0x96fa7d=_0x573b17,_0x4f6d90={'componentKey':_0x100f36[_0xdd517(0x256)],'direction':_0xdd517(0x1df),'offset':[0x0,0xa],'onClickOutside':()=>_0x241c06[_0xdd517(0x18e)]()};return{'object':_0x573b17,'info':{..._0x4c6211,'unitId':_0x573b17[_0xdd517(0xa2)],'subUnitId':_0x573b17[_0xdd517(0x2d2)],'shapeKey':_0x573b17[_0xdd517(0xef)],'readonly':!0x0,'copyable':_0x29792c(_0x5a87f5,_0x573b17[_0xdd517(0xa2)],_0x573b17['unitId'],_0x19e39f[_0xdd517(0x20a)])},'attachPopup':()=>_0xf82fac[_0xdd517(0x1f2)](_0x96fa7d,_0x4f6d90,_0x96fa7d[_0xdd517(0xa2)])};}});}};ja=q([K(0x1,_0x376ec2(_0x478335)),K(0x2,_0x376ec2(X)),K(0x3,_0x376ec2(_0x58fb7f)),K(0x4,_0x1b33f3)],ja);let Ma=class extends _0x143425{constructor(_0x20f21e,_0x13c1b8,_0x41525e,_0x63de8e,_0xf405bc,_0x298570,_0x5157de,_0x471456,_0x3de8bd,_0x4f2844,_0x40e5cd,_0x2089e3){const _0x491d96=_0x43e8a4;super(),this[_0x491d96(0x7b)]=_0x20f21e,this[_0x491d96(0x1c9)]=_0x13c1b8,this[_0x491d96(0x2b7)]=_0x41525e,this[_0x491d96(0x17f)]=_0x63de8e,this[_0x491d96(0x267)]=_0xf405bc,this[_0x491d96(0x10c)]=_0x298570,this[_0x491d96(0x282)]=_0x5157de,this[_0x491d96(0x28e)]=_0x471456,this[_0x491d96(0xa3)]=_0x3de8bd,this[_0x491d96(0xfc)]=_0x4f2844,this[_0x491d96(0x72)]=_0x40e5cd,this[_0x491d96(0x218)]=_0x2089e3,J(this,_0x491d96(0x9b),null),J(this,_0x491d96(0x1b1),null),J(this,'_isOpenedShapeEditPanel',!0x1),J(this,'_shapeEditPanelVersion',0x0),J(this,'_disposePopupsByUnit',new Map()),J(this,_0x491d96(0x245),new Map()),this['_initMenu'](),this['disposeWithMe'](this['_univerInstanceService'][_0x491d96(0x2c2)](_0x37d2f3[_0x491d96(0x10d)])[_0x491d96(0x120)](_0x2d75ba=>{const _0x4e8e36=_0x491d96;if(!_0x2d75ba){var _0x859a1c;(_0x859a1c=this[_0x4e8e36(0x9b)])==null||_0x859a1c[_0x4e8e36(0xb0)]();}})),this['_registerOperations'](),this[_0x491d96(0xb3)](this['_drawingManagerService'][_0x491d96(0xa4)][_0x491d96(0x120)](_0x489a08=>{const _0x53238e=_0x491d96;for(let _0x47a100 of _0x489a08){let _0x1034b3=_0x47a100[_0x53238e(0xa2)]+':'+_0x47a100[_0x53238e(0x2d2)]+':'+_0x47a100['drawingId'];for(let [_0x1ff9fa,_0x346000]of this[_0x53238e(0x245)])_0x346000===_0x1034b3&&this[_0x53238e(0x2c0)](_0x1ff9fa,!0x0);}})),this['disposeWithMe'](_0x1d984c(this[_0x491d96(0xa3)],_0x37d2f3[_0x491d96(0x10d)],_0x4337df=>this['_popupMenuListener'](_0x4337df))),this['disposeWithMe'](this[_0x491d96(0x72)][_0x491d96(0x80)][_0x491d96(0x120)](_0x401dbf=>{const _0x4fbbb=_0x491d96;_0x401dbf&&this[_0x4fbbb(0x2c0)](void 0x0,!0x0);})),this[_0x491d96(0xb3)](this[_0x491d96(0x218)][_0x491d96(0x10a)]['subscribe'](()=>{const _0x204061=_0x491d96;this[_0x204061(0x282)]['getFocusDrawings']()['some'](_0xe8a444=>_0xe8a444[_0x204061(0x119)]===_0x1652cd['DRAWING_SHAPE']&&this[_0x204061(0x7b)][_0x204061(0x177)](_0xe8a444[_0x204061(0xa2)])===_0x37d2f3[_0x204061(0x10d)]&&!this[_0x204061(0xcf)](_0xe8a444[_0x204061(0xa2)],_0xe8a444[_0x204061(0x198)]))&&(this[_0x204061(0x2c0)](void 0x0,!0x0),this[_0x204061(0x2bd)]());}));}[_0x43e8a4(0x23e)](){const _0x8de1a4=_0x43e8a4;this[_0x8de1a4(0x2b7)]['mergeMenu'](Li);}[_0x43e8a4(0x1bc)](_0x2f2a44,_0x115419,_0x178c05,_0x5e48e3){const _0x5ee824=_0x43e8a4;return[{'label':_0x5ee824(0xa8),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':_0x5e48e3===_0x1652cd[_0x5ee824(0x271)]},{'label':_0x5ee824(0xd0),'index':0x1,'commandId':_0x1dc354['id'],'commandParams':{'unitId':_0x2f2a44,'drawings':[{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':Bi['id'],'commandParams':{'unitId':_0x2f2a44,'subUnitId':_0x115419,'drawingId':_0x178c05},'disable':!0x1}];}['_getShapeInfo'](_0x3ea9b9,_0x10442a,_0x53939b){const _0xe76051=_0x43e8a4;let _0x11a521=this[_0xe76051(0x17f)][_0xe76051(0x20c)](_0x3ea9b9,_0x10442a,_0x53939b),_0x316ce0=this['_docsShapeService'][_0xe76051(0x274)](_0x3ea9b9,_0x10442a,_0x53939b);return _0x11a521!==void 0x0&&_0x316ce0!==void 0x0?{'shapeData':_0x316ce0,'shapeId':_0x53939b,'shapeType':_0x11a521,'unitId':_0x3ea9b9,'subUnitId':_0x10442a,'version':this[_0xe76051(0x231)],'disableShapeOption':!0x1}:null;}[_0x43e8a4(0x2c0)](_0x590c05,_0x3f9890=!0x1){const _0x55537b=_0x43e8a4;if(_0x590c05==null){[...this[_0x55537b(0xdc)][_0x55537b(0x20d)]()][_0x55537b(0xd6)](_0x9ae27c=>this[_0x55537b(0x2c0)](_0x9ae27c,_0x3f9890));return;}let _0x5880cd=this[_0x55537b(0xdc)][_0x55537b(0x7a)](_0x590c05);if(_0x5880cd){for(let _0x4d9785=_0x5880cd[_0x55537b(0x1ee)]-0x1;_0x4d9785>=0x0;--_0x4d9785){let _0x1ea5b4=_0x5880cd[_0x4d9785];(_0x3f9890||_0x1ea5b4['canDispose']())&&(_0x1ea5b4['dispose'](),_0x5880cd[_0x55537b(0x180)](_0x4d9785,0x1));}_0x5880cd[_0x55537b(0x1ee)]===0x0&&(this['_disposePopupsByUnit'][_0x55537b(0x13c)](_0x590c05),this['_popupTargetKeys'][_0x55537b(0x13c)](_0x590c05));}}[_0x43e8a4(0x118)](_0x3493c8){const _0x1c1146=_0x43e8a4;let _0x476a10=this[_0x1c1146(0xdc)][_0x1c1146(0x7a)](_0x3493c8);if(_0x476a10)return _0x476a10;let _0x1b67c9=[];return this[_0x1c1146(0xdc)][_0x1c1146(0x290)](_0x3493c8,_0x1b67c9),_0x1b67c9;}['_popupMenuListener'](_0x3a7fe1){const _0x570f22=_0x43e8a4;var _0xfe51af;let _0x2b8969=new _0x4bf1ef(),_0x1c6518=(_0xfe51af=this['_renderManagerService'][_0x570f22(0x183)](_0x37d2f3[_0x570f22(0x10d)])[_0x570f22(0x2d0)](_0x404bd7=>_0x404bd7['scene']['getTransformerByCreate']()===_0x3a7fe1))==null?void 0x0:_0xfe51af[_0x570f22(0xa2)];return _0x1c6518&&(_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x1ac)]['subscribe'](()=>this[_0x570f22(0xa9)](_0x3a7fe1,_0x1c6518))),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1['clearControl$']['subscribe'](()=>{const _0x4b91eb=_0x570f22;this[_0x4b91eb(0x2c0)](_0x1c6518),queueMicrotask(()=>{const _0x121fb6=_0x4b91eb;_0x3a7fe1[_0x121fb6(0x103)]()[_0x121fb6(0x73)]>0x0||!this['_drawingManagerService'][_0x121fb6(0x2bf)]()[_0x121fb6(0x1f5)](_0x4d7485=>_0x4d7485['unitId']===_0x1c6518)||(this[_0x121fb6(0xfc)][_0x121fb6(0x25c)](_0x2f74ce,!0x1),this[_0x121fb6(0x282)][_0x121fb6(0xd9)](null));});})),_0x2b8969[_0x570f22(0x106)](_0x3a7fe1[_0x570f22(0x190)]['subscribe'](()=>{const _0xb7d87e=_0x570f22;this[_0xb7d87e(0x2c0)](_0x1c6518,!0x0);}))),_0x2b8969;}[_0x43e8a4(0xa9)](_0x539cd6,_0x459758){const _0x38774b=_0x43e8a4;let _0x49103a=_0x539cd6['getSelectedObjectMap']();if(this['_isOpenedShapeEditPanel']){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}if(_0x49103a[_0x38774b(0x73)]>0x1){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x36618b=_0x49103a[_0x38774b(0x22d)]()['next']()[_0x38774b(0x152)];if(!_0x36618b){this[_0x38774b(0x2c0)](_0x459758);return;}let _0x2bfa03=this[_0x38774b(0x282)][_0x38774b(0xc6)](_0x36618b[_0x38774b(0xef)]);if(!_0x2bfa03||_0x2bfa03[_0x38774b(0x119)]!==_0x1652cd[_0x38774b(0x156)]){this[_0x38774b(0x2c0)](_0x459758);return;}let {unitId:_0x303bdb,subUnitId:_0x26b744,drawingId:_0x504273,drawingType:_0x4a6890}=_0x2bfa03;if(!this[_0x38774b(0xcf)](_0x303bdb,_0x504273)){this[_0x38774b(0x2c0)](_0x459758,!0x0);return;}let _0x51457e=this[_0x38774b(0x277)](_0x303bdb,_0x26b744,_0x504273);if(!_0x51457e){this['_clearPopups'](_0x459758);return;}let _0x26b56b=this[_0x38774b(0xdc)][_0x38774b(0x7a)](_0x459758),_0x434a3e=_0x303bdb+':'+_0x26b744+':'+_0x504273;if(this[_0x38774b(0x245)][_0x38774b(0x7a)](_0x459758)===_0x434a3e&&_0x26b56b&&_0x26b56b[_0x38774b(0x1ee)]>0x0)return;this[_0x38774b(0x2c0)](_0x459758);let _0x1f39e0=this[_0x38774b(0xa3)]['getRenderUnitById'](_0x303bdb),_0x3a2319=((_0x1f39e0==null?void 0x0:_0x1f39e0[_0x38774b(0x193)])===!0x1?_0x1f39e0[_0x38774b(0x178)](_0x58fb7f):this[_0x38774b(0x28e)])[_0x38774b(0x1f2)](_0x36618b,this[_0x38774b(0xd2)](_0x51457e,_0x4a6890),_0x303bdb);this[_0x38774b(0xb3)](_0x3a2319),this[_0x38774b(0x118)](_0x459758)[_0x38774b(0x241)](_0x3a2319),this[_0x38774b(0x245)][_0x38774b(0x290)](_0x459758,_0x434a3e),this[_0x38774b(0x282)][_0x38774b(0x2bf)]()[_0x38774b(0x1f5)](_0x408445=>_0x408445[_0x38774b(0xa2)]===_0x303bdb&&_0x408445['subUnitId']===_0x26b744&&_0x408445[_0x38774b(0x198)]===_0x504273)||this[_0x38774b(0x282)][_0x38774b(0xd9)]([{'unitId':_0x303bdb,'subUnitId':_0x26b744,'drawingId':_0x504273}]);}[_0x43e8a4(0xd2)](_0x121418,_0x6846f9){const _0x567d61=_0x43e8a4;return{'componentKey':da,'requiresStableLayout':!0x1,'direction':'vertical-center','offset':[0x0,_0x274783],'extraProps':{'unitId':_0x121418[_0x567d61(0xa2)],'subUnitId':_0x121418['subUnitId'],'drawingId':_0x121418[_0x567d61(0x1a5)],'drawingType':_0x6846f9,'shapeType':_0x121418[_0x567d61(0x6d)],'shapeData':_0x121418[_0x567d61(0x240)]}};}['_canEditShape'](_0x19fbb9,_0x179d1e){const _0x4b4fd0=_0x43e8a4;let _0x201b1b=this[_0x4b4fd0(0x7b)][_0x4b4fd0(0x254)](_0x19fbb9,_0x37d2f3[_0x4b4fd0(0x10d)]);if(!_0x201b1b)return!0x1;let _0x18106f=_0x34c0dc(_0x201b1b,_0x179d1e);return _0xaad49(this['_permissionService'],_0x19fbb9,[..._0x1ed368(_0x201b1b,_0x18106f,_0x4b4fd0(0x292),_0x179d1e),_0x17c75c(_0x18106f,_0x4b4fd0(0x292),_0x179d1e)]);}[_0x43e8a4(0x2d3)](){const _0x4949e6=_0x43e8a4;this[_0x4949e6(0xb3)](this[_0x4949e6(0x10c)][_0x4949e6(0x1b3)](_0x1e7b77=>{const _0x57954e=_0x4949e6;if(_0x1e7b77['id']===G['id']){let {unitId:_0x32222c,subUnitId:_0x155de5,drawingId:_0x4f34af}=_0x1e7b77[_0x57954e(0x132)];this[_0x57954e(0x231)]+=0x1,this[_0x57954e(0x1b1)]=this[_0x57954e(0x277)](_0x32222c,_0x155de5,_0x4f34af),this[_0x57954e(0x2c0)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x1e7b77['id']===Bi['id']&&(this[_0x57954e(0x1b1)]=null,this[_0x57954e(0x2bd)]()),_0x1e7b77['id']===_0x4aaefb['id']){let {unitId:_0x501939,shapeId:_0x38e981}=_0x1e7b77['params'];if(this['_activeShapeInfo']&&this[_0x57954e(0x1b1)][_0x57954e(0x1a5)]===_0x38e981){let _0x44ca83=this[_0x57954e(0x277)](_0x501939,this[_0x57954e(0x1b1)][_0x57954e(0x2d2)],_0x38e981);_0x44ca83&&(this[_0x57954e(0x231)]+=0x1,_0x44ca83[_0x57954e(0x1bd)]=this[_0x57954e(0x231)],this[_0x57954e(0x1b1)]=_0x44ca83,this[_0x57954e(0x21a)]&&this[_0x57954e(0x10e)]());}}})),this[_0x4949e6(0xb3)](this[_0x4949e6(0x282)]['focus$'][_0x4949e6(0x120)](_0xb2d469=>{const _0xc25e90=_0x4949e6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0xb2d469['length']===0x0){this[_0xc25e90(0x1b1)]=null,this[_0xc25e90(0x2bd)]();return;}if(_0xb2d469[_0xc25e90(0x1ee)]===0x1&&_0xb2d469[0x0][_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]&&(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)])){this[_0xc25e90(0x10e)]();return;}let _0x5b416d=_0xb2d469['filter'](_0x43cb03=>_0x43cb03[_0xc25e90(0x119)]===_0x1652cd[_0xc25e90(0x156)]);if(_0xb2d469[_0xc25e90(0x1ee)]>0x1&&_0x5b416d[_0xc25e90(0x1ee)]===_0xb2d469[_0xc25e90(0x1ee)]){if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this[_0xc25e90(0x277)](_0xb2d469[0x0]['unitId'],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this['_activeShapeInfo']){this[_0xc25e90(0x10e)]();return;}}else{if(this[_0xc25e90(0x231)]+=0x1,this[_0xc25e90(0x1b1)]=this['_getShapeInfo'](_0xb2d469[0x0][_0xc25e90(0xa2)],_0xb2d469[0x0][_0xc25e90(0x2d2)],_0xb2d469[0x0][_0xc25e90(0x198)]),this[_0xc25e90(0x1b1)]){this[_0xc25e90(0x1b1)][_0xc25e90(0x1cc)]=!0x0,this[_0xc25e90(0x10e)]();return;}}this[_0xc25e90(0x2bd)]();}));}[_0x43e8a4(0x10e)](){const _0x33a63b=_0x43e8a4;this[_0x33a63b(0x1b1)]&&(this[_0x33a63b(0x9b)]=this[_0x33a63b(0x1c9)]['open']({'id':W,'header':{'title':this[_0x33a63b(0x267)]['t'](_0x33a63b(0x21d))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x103062=_0x33a63b;this[_0x103062(0x282)][_0x103062(0xd9)](null),this[_0x103062(0xfc)][_0x103062(0x25c)](_0x2f74ce,!0x1),this[_0x103062(0x9b)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x43e8a4(0x2bd)](){const _0x363556=_0x43e8a4;this[_0x363556(0x21a)]=!0x1,this[_0x363556(0x1c9)]['close'](W),this[_0x363556(0x9b)]=null,this[_0x363556(0xfc)][_0x363556(0x25c)](_0x2f74ce,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ma=q([K(0x0,_0x58ad01),K(0x1,_0x376ec2(_0x5cd437)),K(0x2,_0x354de5),K(0x3,_0x376ec2(_0x3e6ec4)),K(0x4,_0x376ec2(_0x474b31)),K(0x5,_0x5d4fd5),K(0x6,_0x4ed84c),K(0x7,_0x376ec2(_0x58fb7f)),K(0x8,_0x20175c),K(0x9,_0x46b73a),K(0xa,_0x376ec2(X)),K(0xb,_0x1b33f3)],Ma);let Na=class extends _0x143425{constructor(_0x189f1d,_0x43b57b){const _0x2c4fa1=_0x43e8a4;super(),this[_0x2c4fa1(0x17f)]=_0x189f1d,this[_0x2c4fa1(0x267)]=_0x43b57b,this[_0x2c4fa1(0xb3)](_0x44b80c(_0x387221((_0x4f8b75,_0x3481d8,_0x1fca2f)=>this[_0x2c4fa1(0x78)](_0x4f8b75,_0x3481d8,_0x1fca2f))));}[_0x43e8a4(0x78)](_0x14b2e4,_0x2f4b9f,_0x4ff36f){const _0xa42022=_0x43e8a4;let _0x390107=this[_0xa42022(0x17f)][_0xa42022(0x100)](_0x14b2e4,_0x2f4b9f);if(!_0x390107)return null;let _0x5a2945=_0x390107[_0xa42022(0x299)](),_0x4be86e=_0x94d984(_0x5a2945),_0x5aef33=_0x5a2945['shapeText'];if(!_0x5aef33||_0x4be86e[_0xa42022(0x1a9)]!==_0x4b45c6[_0xa42022(0x263)])return null;let _0x39582b=_0x4ff36f[_0xa42022(0xc8)],_0x2fec33=_0x4ff36f[_0xa42022(0x2a7)];_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33});let _0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}),_0x66e563=_0x33266c('dataModel'in _0x5aef33?_0x5aef33['dataModel']:void 0x0),_0x4adb9e=(_0x66e563==null?void 0x0:_0x66e563['doc'])??(_0xa42022(0x145)in _0x5aef33?_0x5e99a9(_0x5aef33,_0x2f4b9f+'-layout'):null);if(!_0x4adb9e)return null;let _0x226690=_0x4b8d5f({'documentData':_0x4adb9e,'height':_0x2fec33,'shapeData':_0x5a2945,'textRect':_0x431e7a,'width':_0x39582b,'widthBuffer':0x0});_0x226690&&({width:_0x39582b,height:_0x2fec33}=_0x226690,_0x390107[_0xa42022(0x2bc)]({'width':_0x39582b,'height':_0x2fec33}),_0x431e7a=_0x390107[_0xa42022(0x131)]({'left':0x0,'top':0x0,'width':_0x39582b,'height':_0x2fec33}));let _0x29b09a=_0x5aef33[_0xa42022(0x2cb)]!==!0x1,_0x116990=_0x26bed1(_0x4adb9e,{'isHorizontal':_0x29b09a,'textRect':_0x431e7a,'verticalAlign':_0x66e563==null?void 0x0:_0x66e563['va'],'horizontalAlign':_0x66e563==null?void 0x0:_0x66e563['ha'],'wrapStrategy':_0xd357af(_0x5a2945)}),_0x55155d=new _0x2925ba(_0x116990),_0x39a1bf=new _0x4be549(_0x55155d),_0x3bf27b=_0x122642['create'](_0x39a1bf,this['_localeService']);try{var _0x55adb5,_0x275868;_0x3bf27b[_0xa42022(0xf3)]();let _0x19e971=((_0x55adb5=_0x3bf27b[_0xa42022(0x238)]())==null?void 0x0:_0x55adb5['pages'])??[],_0x4e0d25=_0x19e971[_0x19e971[_0xa42022(0x1ee)]-0x1],_0x2a0ed7=_0x4e0d25?Math['max'](0x0,((_0x275868=_0x5d8276(_0x4e0d25))==null?void 0x0:_0x275868[_0xa42022(0xd1)])??0x0):0x0,_0x30130a=_0x3bf27b[_0xa42022(0xf0)]()[_0xa42022(0x199)]+_0x2a0ed7-(_0x29b09a?_0x431e7a[_0xa42022(0x204)]:_0x431e7a[_0xa42022(0x7d)]);return Number['isFinite'](_0x30130a)?_0x29b09a?{'width':_0x39582b,'height':Math[_0xa42022(0x75)](0x1,_0x2fec33+_0x30130a)}:{'width':Math[_0xa42022(0x75)](0x1,_0x39582b+_0x30130a),'height':_0x2fec33}:null;}finally{_0x3bf27b[_0xa42022(0xb0)](),_0x39a1bf['dispose'](),_0x55155d[_0xa42022(0xb0)]();}}};Na=q([K(0x0,_0x376ec2(_0x3e6ec4)),K(0x1,_0x376ec2(_0x474b31))],Na);function _0xe027(_0x1f4139,_0x427651){_0x1f4139=_0x1f4139-0x67;const _0x3d03bb=_0x3d03();let _0xe02794=_0x3d03bb[_0x1f4139];return _0xe02794;}let $=class extends _0x48417e{constructor(_0xc9c907=Hi,_0x5a997b,_0x5c8c7e,_0x4bdcee,_0x15851e){const _0x23ad2e=_0x43e8a4;super(),this[_0x23ad2e(0x28d)]=_0xc9c907,this[_0x23ad2e(0x1ae)]=_0x5a997b,this[_0x23ad2e(0x10c)]=_0x5c8c7e,this[_0x23ad2e(0x1f3)]=_0x4bdcee,this[_0x23ad2e(0xa3)]=_0x15851e;let {menu:_0x23b168,..._0x3fd391}=_0x77c685({},Hi,this['_config']);_0x23b168&&this[_0x23ad2e(0x1f3)]['setConfig']('menu',_0x23b168,{'merge':!0x0}),this[_0x23ad2e(0x1f3)][_0x23ad2e(0x211)](Vi,_0x3fd391),this['_initCommands']();}[_0x43e8a4(0x257)](){const _0x59f9b6=_0x43e8a4;_0x1fed5b(this['_injector'],this['_getDependencies']()),this[_0x59f9b6(0x1ae)][_0x59f9b6(0x7a)](wa),this[_0x59f9b6(0x160)]();}[_0x43e8a4(0x22a)](){return[[wa],[Ma],[Ca],[Z],[Xi],[Ji],[Ir],[aa],[Na],[X],[Sa]];}[_0x43e8a4(0x22b)](){const _0x5cc64e=_0x43e8a4;this[_0x5cc64e(0x1fa)]()['forEach'](_0x2679a1=>{const _0x5da197=_0x5cc64e;this[_0x5da197(0xb3)](this[_0x5da197(0xa3)]['registerRenderModule'](_0x37d2f3[_0x5da197(0x10d)],_0x2679a1));}),_0xd342cc(this['_injector'],[[Ma],[Ca],[Z],[Xi],[Ir],[aa],[Na],[X],[Sa]]);}['_getRenderModules'](){return[[Ji],[ka],[ja],[Ta]];}['onRendered'](){const _0x44c44a=_0x43e8a4;this['disposeWithMe'](this[_0x44c44a(0xa3)][_0x44c44a(0x1b2)](_0x37d2f3['UNIVER_DOC'],[Aa]));}['_initCommands'](){const _0x128220=_0x43e8a4;[U,Bi,G,Mr,Pr,Fr]['forEach'](_0x3f5291=>this['disposeWithMe'](this[_0x128220(0x10c)][_0x128220(0x70)](_0x3f5291)));}[_0x43e8a4(0x160)](){const _0x5c7364=_0x43e8a4;let _0xe2e0db=this[_0x5c7364(0x1ae)],_0x3a0b08=_0xe2e0db['get'](_0x4c7e7e);this['disposeWithMe'](_0x3a0b08[_0x5c7364(0x14b)](_0x40e763[_0x5c7364(0x1c8)],()=>_0x3697e2(va,_0xe2e0db)));}};J($,_0x43e8a4(0x297),_0x37d2f3[_0x43e8a4(0x10d)]),J($,_0x43e8a4(0x10f),'DOCS_SHAPE_UI_PLUGIN'),J($,_0x43e8a4(0x1c4),Ri),J($,_0x43e8a4(0x1bd),zi),$=q([_0x1a58e1(_0x1f5858,_0x3dc614,_0x41fe11,_0x1896a6,_0x55fd02,_0x4a2dcb,_0x2830ac,_0x34d5cc,_0x2e07fc,_0x40cd8a),K(0x1,_0x376ec2(_0x3fea17)),K(0x2,_0x5d4fd5),K(0x3,_0x47ac1d),K(0x4,_0x20175c)],$);export{Li as DocsShapeUIMenuSchema,Q as UniverDocsShapeMobileUIPlugin,$ as UniverDocsShapeUIPlugin};