@univerjs-pro/docs-shape-ui 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +7 -7
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.css +5 -4
  43. package/lib/index.js +1 -1
  44. package/lib/locale/ar-SA.js +1 -1
  45. package/lib/locale/ca-ES.js +1 -1
  46. package/lib/locale/de-DE.js +1 -1
  47. package/lib/locale/en-US.js +1 -1
  48. package/lib/locale/es-ES.js +1 -1
  49. package/lib/locale/fa-IR.js +1 -1
  50. package/lib/locale/fr-FR.js +1 -1
  51. package/lib/locale/id-ID.js +1 -1
  52. package/lib/locale/it-IT.js +1 -1
  53. package/lib/locale/ja-JP.js +1 -1
  54. package/lib/locale/ko-KR.js +1 -1
  55. package/lib/locale/pl-PL.js +1 -1
  56. package/lib/locale/pt-BR.js +1 -1
  57. package/lib/locale/ru-RU.js +1 -1
  58. package/lib/locale/sk-SK.js +1 -1
  59. package/lib/locale/vi-VN.js +1 -1
  60. package/lib/locale/zh-CN.js +1 -1
  61. package/lib/locale/zh-HK.js +1 -1
  62. package/lib/locale/zh-TW.js +1 -1
  63. package/lib/umd/index.js +1 -1
  64. package/lib/umd/locale/ar-SA.js +1 -1
  65. package/lib/umd/locale/ca-ES.js +1 -1
  66. package/lib/umd/locale/de-DE.js +1 -1
  67. package/lib/umd/locale/en-US.js +1 -1
  68. package/lib/umd/locale/es-ES.js +1 -1
  69. package/lib/umd/locale/fa-IR.js +1 -1
  70. package/lib/umd/locale/fr-FR.js +1 -1
  71. package/lib/umd/locale/id-ID.js +1 -1
  72. package/lib/umd/locale/it-IT.js +1 -1
  73. package/lib/umd/locale/ja-JP.js +1 -1
  74. package/lib/umd/locale/ko-KR.js +1 -1
  75. package/lib/umd/locale/pl-PL.js +1 -1
  76. package/lib/umd/locale/pt-BR.js +1 -1
  77. package/lib/umd/locale/ru-RU.js +1 -1
  78. package/lib/umd/locale/sk-SK.js +1 -1
  79. package/lib/umd/locale/vi-VN.js +1 -1
  80. package/lib/umd/locale/zh-CN.js +1 -1
  81. package/lib/umd/locale/zh-HK.js +1 -1
  82. package/lib/umd/locale/zh-TW.js +1 -1
  83. package/package.json +22 -22
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x33b4ed=_0x3935;(function(_0x2686ae,_0x4b37f7){const _0x1bd910=_0x3935,_0x1ef46a=_0x2686ae();while(!![]){try{const _0x4d407b=parseInt(_0x1bd910(0x1c0))/0x1*(-parseInt(_0x1bd910(0x2d2))/0x2)+-parseInt(_0x1bd910(0x297))/0x3+parseInt(_0x1bd910(0x1d0))/0x4+parseInt(_0x1bd910(0x3d1))/0x5+parseInt(_0x1bd910(0x216))/0x6+parseInt(_0x1bd910(0x2ff))/0x7*(parseInt(_0x1bd910(0x3d5))/0x8)+-parseInt(_0x1bd910(0x3bd))/0x9*(parseInt(_0x1bd910(0x255))/0xa);if(_0x4d407b===_0x4b37f7)break;else _0x1ef46a['push'](_0x1ef46a['shift']());}catch(_0x44c1c5){_0x1ef46a['push'](_0x1ef46a['shift']());}}}(_0x15fc,0xb8c4e));import{FormulaShapeAnimationController as _0x111cfb,MobileShapeEditorControls as _0x5c71dd,MobileShapeEditorService as _0x10d1ab,MobileShapePickerPanel as _0x45ec05,SHAPE_CHANGE_PICKER_COMPONENT as _0x52abb9,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xd0974d,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x51c5f7,ShapeEditPanel as _0x46d3f3,ShapeFloatingToolbar as _0x38e7bd,ShapeFloatingToolbarService as _0xafbc38,ShapeFloatingToolbarToggleFactory as _0x43dbc6,ShapeFormulaRibbonControl as _0x3315fc,ShapeGroupEnum as _0x18936a,ShapePickerDropdown as _0x1b348e,ShapePickerPanel as _0x36a009,ShapeQuickStyleGallery as _0x1d6539,ShapeStyleRibbonControl as _0x45d8f7,ShapeTextEditorContainer as _0x587c3f,ShapeTextFloatMenuRenderControllerBase as _0xafa84c,ShapeTextFloatToolbar as _0x171fcd,ShapeTextHyperLinkHoverController as _0x4093ea,ShapeTextHyperLinkInfo as _0xb65d9,ShapeTextHyperLinkPopupService as _0x3c0cac,ShapeTextRibbonControl as _0x1e0283,ToggleShapeFloatingToolbarOperation as _0xe63565,UniverShapeEditorMobileUIPlugin as _0x198fdd,UniverShapeEditorUIPlugin as _0x2e48c9,activateDrawingObject as _0x1968c3,bindRenderTransformerLifecycle as _0x312ad1,buildShapeTextDataUpdate as _0x1f2428,clearActiveDrawingObjects as _0x2e5f7a,createShapeTextHyperLinkRegions as _0x267ed3,drawFormulaShapeAnimationLayers as _0x398cb3,getDrawingTypeNameKey as _0x23090a,getTextModel as _0x565786,getTextStyle as _0xea05c7,normalizeShapeTextModel as _0x323514,plainShapeTextToDocumentData as _0x269d0d,prepareShapeTextDocumentData as _0x3b60aa,prepareShapeTextDocumentData as _0x5e7a93,registerShapeFormatPainter as _0x4c0695,resolveFormulaShapeAutoFitSize as _0x1e5357,resolveShapeContextualRibbonHostMode as _0x26f91d,resolveShapeTextDocumentPageHeight as _0x2da653,resolveShapeTextDocumentRenderLayout as _0x391f73,resolveShapeTextEditorBehaviorShapeData as _0x2cef43,resolveShapeTextEditorWrapStrategy as _0x3f29ab,resolveShapeTextHyperLinkAt as _0x3680bf,resolveShapeTextHyperLinkObject as _0x2efdd6,shouldAllowShapeTextEditorHostSizeShrink as _0x2db28c,shouldClipShapeTextDocument as _0x4917b7,useFormulaShapeToolbar as _0x1abe68}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x33fcfd,DOC_CONTENT_INSERT_MENU_ID as _0x2c757d,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x39bc40,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x1dc7cd,DocCanvasPopManagerService as _0x506b97,DocEventManagerService as _0x4e8139,DocLayoutInteractionService as _0x2431a6,DocParagraphMenuService as _0x3a0006,DocPrintInterceptorService as _0x592c88,DocRenderController as _0x50c2a2,DocSelectionRenderService as _0x277f8c,EMPTY_PARAGRAPH_MENU_ID as _0x2ca167,INSERT_BELLOW_MENU_ID as _0x57f28d,UniverDocsMobileUIPlugin as _0x5173fc,UniverDocsUIPlugin as _0x4dda97,VIEWPORT_KEY as _0x55f01c}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x42abda,ComponentManager as _0x497683,ContextMenuGroup as _0x441439,ContextMenuPosition as _0x48c8ed,FloatingObjectToolbarPosition as _0x52cb5e,FormatPainterSessionService as _0x575a29,IMenuManagerService as _0x4b4118,IRibbonService as _0x18d17b,ISidebarService as _0x1658ad,IUIPartsService as _0x94208e,IconManager as _0x4a3fd6,MenuItemType as _0x7efdf3,MenuManagerPosition as _0x5160ee,MobileMenu as _0x1e551c,ObjectPermissionButton as _0x5ec452,RibbonInsertGroup as _0x2b5ce5,connectInjector as _0x6c788,getMenuHiddenObservable as _0x1a292c,useDependency as _0x4f0443,useObservable as _0x182392}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x254783,DEFAULT_DOC_SHAPE_WIDTH as _0x1544b6,DocShapeAnchorPosition as _0x4206dc,DocsShapeService as _0x2b6cfd,InsertDocShapeCommand as _0x2eb417,UniverDocsShapePlugin as _0x2ef163,UpdateDocDrawingMetadataCommand as _0x7a9285,UpdateDocShapeDataCommand as _0x1a49e3,UpdateDocShapeDataMutation as _0xee5b39}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x336c0b,ShapeArrowSizeEnum as _0x462d37,ShapeArrowTypeEnum as _0x1262bd,ShapeDefaultConfig as _0x45f006,ShapeFillEnum as _0x663a07,ShapeLineTypeEnum as _0x1d7fb3,ShapeModel as _0x42b479,ShapeRenderModeEnum as _0x300492,ShapeTextAutoFitType as _0x251b87,ShapeTypeEnum as _0x31901e,isConnectorShape as _0x394312,resolveShapeTextBodyBehavior as _0x3ab30e}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x28fd23,UniverShapeEditorPlugin as _0x1a75fd,applyQuickStyleToShapeData as _0x17a77d,cloneShapeDataForType as _0x1ae742,createShapeFormulaDocument as _0xd798cf,createShapeTextBoxShapeData as _0x43ec31,getShapeQuickStylePreset as _0x630a9c,getShapeQuickStyleType as _0x416d3a,resolveActiveShapeQuickStylePresetId as _0x378bff}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x2adc43,BooleanNumber as _0x51c9cc,CommandType as _0x596f1a,DependentOn as _0xeaf711,Disposable as _0x256e8f,DisposableCollection as _0x107b45,DocumentDataModel as _0x483eaa,DrawingTypeEnum as _0x197ccb,FOCUSING_COMMON_DRAWINGS as _0x2a75d8,FOCUSING_SHAPE_TEXT_EDITOR as _0x48ed79,HorizontalAlign as _0x163f8a,ICommandService as _0x2474c3,IConfigService as _0x4747a4,IContextService as _0x651387,IImageIoService as _0xadc7af,IPermissionService as _0x371e1a,IURLImageService as _0x2f2fe2,IUniverInstanceService as _0x1e69fb,Inject as _0x179bf2,Injector as _0x3193fa,LocaleService as _0x5a1674,Plugin as _0x43bd26,PositionedObjectLayoutType as _0x2cd4cd,UniverInstanceType as _0x248b26,VerticalAlign as _0x9ed22a,createInternalEditorID as _0x35e317,generateRandomId as _0x599b17,getParagraphContentStartOffset as _0x51a026,merge as _0x2d69fe,registerDependencies as _0x490b6f,toDisposable as _0x519bb5,touchDependencies as _0x899513}from'@univerjs/core';import{DocInterceptorService as _0x3ac20b,DocSelectionManagerService as _0x1507b5,RichTextEditingMutation as _0x3ee887,SetDocumentPermissionCommand as _0x272850,UniverDocsPlugin as _0x2db5f7,canEditDocumentTargets as _0x1e4951,getDocumentDrawingSegmentId as _0x1142fd,getDocumentEntityParentPermissionObjectIds as _0x2e9cb2,getDocumentEntityPermissionObjectId as _0x365faa,getDocumentPermissionValue as _0x5efff4}from'@univerjs/docs';import{IDocDrawingService as _0x314cd0,RemoveDocDrawingCommand as _0x3f45a7,SetDocDrawingArrangeCommand as _0x207919,TextWrappingStyle as _0x4a5267,UpdateDocDrawingWrappingStyleCommand as _0x5ef581,UpdateDrawingDocTransformCommand as _0x39bf96}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0xb952ae,Circle as _0x3776a7,DRAWING_OBJECT_LAYER_INDEX as _0xbe605e,DocumentSkeleton as _0x11abd9,DocumentViewModel as _0x2fd191,Documents as _0x2bcd1b,IRenderManagerService as _0x456b85,RENDER_CLASS_TYPE as _0x33187e,Shape as _0x3c37d7,Transform as _0x3ab4ed,UniverRenderEnginePlugin as _0x28d240,Vector2 as _0x482a77,getLastLine as _0x522a83,setDocsCustomBlockRenderViewportProvider as _0x1201f1}from'@univerjs/engine-render';import{IDrawingManagerService as _0x8501d,SetDrawingSelectedOperation as _0x4974f9,UniverDrawingPlugin as _0x2b9ee4,getDrawingShapeKeyByDrawingSearch as _0x2d5511}from'@univerjs/drawing';import{DrawingCommonPanel as _0x5f290d,DrawingImageClipService as _0x2426eb,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x34cbd7,MobileObjectListPanel as _0x54d238,OBJECT_LIST_FLOATING_SECTION_ID as _0x6b425e,ObjectListPanelBase as _0x17f792,UniverDrawingMobileUIPlugin as _0x173033,UniverDrawingUIPlugin as _0x11c27b,getObjectListPanelSectionIdForDrawingType as _0xa06520,insertGroupObject as _0x2a4d00}from'@univerjs/drawing-ui';import{Fragment as _0x74fc90,jsx as _0x204a1f,jsxs as _0x5c5a38}from'react/jsx-runtime';import{BehaviorSubject as _0x3c3cbc,Observable as _0x5c7fe4,defer as _0x34fb2d,distinctUntilChanged as _0x53e830,map as _0x2d1e10,merge as _0x231b03,of as _0x336782,startWith as _0x24843f}from'rxjs';import{UniverLicensePlugin as _0x3c2eb4}from'@univerjs-pro/license';import{DocDrawingPosition as _0x3da229,DocDrawingTextWrap as _0x50fdaf,MobileDocDrawingPosition as _0xe32e88,MobileDocDrawingTextWrap as _0x100c92,UniverDocsDrawingMobileUIPlugin as _0x4f5b06,UniverDocsDrawingUIPlugin as _0x428172}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x58619f,MoreDownIcon as _0x27a17d,MoreUpIcon as _0x278e80,MoveDownIcon as _0x51ed93,MoveUpIcon as _0x5aa3fa,ObjectLayersIcon as _0x3d0405,ShapeFormatSettingIcon as _0x31ef3a,TextWrapShapeIcon as _0x15512e,TopmostIcon as _0x1ff755}from'@univerjs/icons';import{MobileActionRow as _0x1f7a84}from'@univerjs/design';function _0x15fc(){const _0x51342e=['_imageIoService','setFormulaPresentation','isDrawingObject','_localeService','_closeShapeEditPanel','Path','RIBBON','_getSceneByUnitId','animateFormulaPresentation','docs-shape-ui.mobile.text','_mobileEditorService','drawingId','_handleCreateControl','SolidFill','doc','_editingParams$','_shapeFormulaService','keys','SHAPE','_baseShapeTop','filter','renderDrawingShape','cancelEditing','PARAGRAPH','enhanceParams','doc.image-clip.shape-picker.component','menu','menuRange','_registerIcons','BUTTON','height','value','_initSelection','top-center','setContextValue','set','_activeShapeInfo','wrapStrategy','_urlImageService','panel','drawing-ui.objectListPanel.sectionFloating','#3B82F6','setCanUseShapeClip','behind','_instanceService','_shapeRenderController','_docCanvasPopManagerService','0\x200\x2020\x2020','svg','docs-shape-ui.shape-format.quick-style-gallery','clipTop','_onSavingEditorData$','next','close','pipe','setFillImage','object','_measure','behindDoc','_sidebarDisposable','_refreshShapeData','getImage','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_isStartAdjusting','forward','rect','none','length','pick','docs-shape-ui.insertShape','presentationChanged$','refreshTransform$','setSrcRect','createControl$','doc.operation.open-doc-shape-format-panel','stopPropagation','_clearPopups','getAllRenderersOfType','localeService','refreshShapeFillImage','isHit','_drawingManagerService','doc.operation.update-shape-type','showContextualTab','getRenderUnitById','setCursor','constructor','text','_drawSimpleText','isRenderLinePointsMode','docs-shape-ui.shape-format.formula-ribbon-control','getShapePopupMenus','refreshFormulaPresentation','5.5','_addShapeAdjustControl','subscribe','getValue','max','path','_config','_unitId','changing$','interceptor','endOffset','adjHandleStroke','canDispose','getShapeModel','_toVisualAdjustPoint','composeMatrix','Line','doc.operation.open-shape-object-list-panel','DRAWING_SHAPE','_getShapeAdjustPointListById','_permissionService','function','draw','update$','onPointerUp$','Image','getObjectIncludeInGroup','drawing-ui.objectListPanel.nameInput','_props','drawing-ui.objectListPanel.locate','drawing-ui.objectListPanel.show','_clipService','fallbackHeight','BottomIcon','div','isHitLine','below','drawing-ui.objectListPanel.showAll','WRAP_TOP_AND_BOTTOM','calculate','SELECTOR','translate','clearControl$','getFocusedUnit','FromArray','round','_endLayoutInteraction','size','type','multiply','horizontal','updateContext','_configService','true','_initEvents','paragraphs','disposeWithMe','_getActiveDrawingShape','executeCommand','error','getSelectedObjectMap','docs-shape-ui.quickStyles','unregister','_popupTargetKeys','has','hidden','getDrawingData','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','getTransformer','offsetX','MEDIA','_visible','docs-shape-ui.ribbon.shape-format.arrange-forward','getActiveViewportByCoord','mergeMenu','drawing-ui.objectListPanel.unlockHint','getOwnPropertyDescriptor','drawing-ui.objectListPanel.moveBackward','docs-shape-ui.hidePanel','translateWithPrecision','version','autoFitType','_clearCompletionFrame','addObject','symbol','resolveHyperLinkAt','drawing-ui.objectListPanel.hide','image','setPresentation','getDrawingEffectBounds','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','9ObQbJO','URL','title','indexOf','Medium','applyPoint','shapeKey','delete','getUnit','DRAWING_IMAGE','DocsShapeWrapBehindTextIcon','_shapeTextEditingService','onTransformChange$','doc.operation.apply-shape-quick-style','univer-box-border\x20univer-px-4\x20univer-text-sm','docs-shape-ui.ribbon.shape-format.arrange-backward','transform','presentation','setPrstGeom','sin','3285435qNFzKu','back','getSelfOrHeaderFooterModel','_initMenu','2404664CntgYH','_getRenderModules','getRealBound','get','startOffset','span','push','getCurrentTypeOfUnit$','makeDirty','_canEditShape','transformVector2SceneCoord','skeTables','formulaPresentation','drawing-ui.objectListPanel.lockAll','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','selectable','toPrimitive','_loadAndSetImage','getViewports','docs-shape-ui.objectListPanel.title','docs-shape-ui.mobile.style','OPERATION','setAdjustValueByName','_hyperLinkRegions','docs-shape-ui.textWrap.inFrontText','_formulaAnimation','ancestorTransform','isRichText','getActiveTextRange','COMMAND','layoutType','extraProps','add$','drawing-ui.objectListPanel.unlockAll','shape-editor-ui.arrange.front','render','contentVerticalOffset','WRAP_SQUARE','restore','setOnSavingEditorData','startArrow','shape-editor-ui.arrange.backward','drawing-ui.objectListPanel.sectionCanvas','getShapeType','_baseShapeHeight','shapeId','defineProperty','_getShapeAdjustInfosById','preValue','getImageSourceCache','.below','MoveDownIcon','sidebarOptions$','docs-shape-text-','open','featurePluginUpdateNotification','adjName','VIEW_MAIN','_shapeId','asObservable','beginInteraction','hideContextualTab','label','_renderManagerService','drawing-ui.objectListPanel.descriptionPlaceholder','CONTENT','current','docs-shape-ui.config','TOP','_updateShape','_docPrintInterceptorService','setCollapsedIds','map','_setTransForm','currentColor','setConfig','_initialize','onDblclick$','animationEnabled','TRUE','drawing-ui.objectListPanel.expand','editingParams$','_initPrinting','docs-shape-ui.mobile.delete','getShapeTextRect','#2563EB','_getActiveDrawingParam','_subUnitId','docs-shape-ui.shape-format.text-ribbon-control','hideInfoPopup','_init','_attachAdjustEvent','_drawRichTextLayer','UNIVER_DOC','_docsShapeService','_toScenePoint','5bKYmnM','getSkeletonData','_shapeEditPanelVersion','shape-editor-ui.arrange.forward','_createShapeAdjustControls','getDrawingSearch','subUnitId','unitId','square','iterator','_completionFrame','hasDefault','debounceRefreshControls','pageWidth','IN_FRONT_OF_TEXT','oKey','1752140NhMiBW','clip-','setFallbackVisible','fontSize','buildClipPath','dataModel','attachPopupToObject','vertical-center','focus$','startIndex','register','_registerDrawingTransformHandler','shapeModel','stroke','docs-shape-ui.textWrap.behindText','remove$','getShapeDataById','_sidebarService','_registerDrawingFocusChangeHandler','_componentManager','_registerImageShapeClipDelegate','1.2','intercept','top-bottom','cos','segmentId','formulaBinding','BEHIND_TEXT','docs-shape-ui.crop.shape','_menuManagerService','doc.shape.picker.component','_insertShapes','getDrawingVisible','_layoutInteraction','values','updateShapeFillImage','docs-shape-ui.openPanel','params','_isOpenedShapeEditPanel','unsubscribe','currentAdjustValues','getPageDrawingIds','footerId','doc.shape.text.float-menu','INLINE','headerId','clearAdjustControls','PRINTING_COMPONENT_COLLECT','getUnitType','docs-shape-ui.formatShape','_initUIPart','splice','drawing-ui.objectListPanel.lockHint','add','disableShapeOption','complete','shape-editor-ui.toolbar.quickStyles','context-bar','pluginName','endArrow','onPointerMove$','permissionPointUpdate$','getContextValue','options','docs-shape-ui.ribbon.shape-format.arrange-front','bottom','ShapeFormatSettingIcon','getSnapshot','docs-shape-ui.ribbon.shape-format.formula-control','PictureFill','1129980kAQDgo','srcRect','MoveUpIcon','getVisible','invert','docs-shape-ui.textWrap.inline','docs-shape-ui.shape-format.wrapping-style-label','fillType','rows','_getDependencies','registerCommand','drawingType','M2\x203h16M2\x2017h16','getUnitId','None','SHAPE_TEXT','fallbackWidth','getCanvasElement','LAYOUT','description','SpAutoFit','_updateShapeAdjustControls','GROUP','_lastEditingShapeKey','shapeText','drawing-ui.objectListPanel.unlock','clone','_adjName','docs-shape-ui.textWrap.topAndBottom','_injector','getDrawingPoints','1em','doc.command.menu-insert-shape','_activeShapeId','_clearShapeAdjustControls','top','_docLayoutInteractionService','_isShouldShowDrawingShapeAdjust','docs-shape-ui.ribbon.shape-format.style-control','univer-grid\x20univer-gap-3','getInterceptPoints','getInverseCoord','updateDocumentStyle','_getShapeInfo','getCurrentUnitOfType','shapeType','getShapeData','getParent','clipHeight','drawing-ui.objectListPanel.empty','registerRenderModule','sheet.image-clip.shape-picker.component','getEditing','_registerOperations','isolated','_iconManager','_ribbonService','subtle','drawing-ui.objectListPanel.typeNames.','sectionFloating','resize','_renderWithCache','_getShapePopup','11662810kSvwLn','clipByShape','trim','drawings','drawing-ui.objectListPanel.description','left','sectionCanvas','decorate','offsetY','flipY','getAdjustValueByName','drawing-ui.objectListPanel.lock','_hide','_adjHandlerPointerUp','_contextService','getShapeTextData','isFinite','create','DRAWING_DOM','getDrawingByParam','fillImageSourceType','skeHeaders','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','getFocusDrawings','drawing','icon','-layout','flipX','setShapeProps','_transform','_canEdit','_drawShapeText','pages','paragraphMenuPlacement','OFFSET','transformForAngle','_activeShapeAdjustPointList','forEach','_popupMenuListener','getDrawingDataForUnit','_baseShapeLeft','DocsShapeWrapInlineIcon','_univerInstanceService','getMatrix','setEditing','onStarting','_getDisposePopups','objects','docs-shape-ui.deleteShape','doc.shape.edit.panel','_docDrawingShapeRenderController','_openShapeEditPanel','0.14','docs-shape-ui.objectListPanel.open','univer-grid\x20univer-gap-5\x20univer-p-3','refreshAdjustControls','front','transformByState','with','@univerjs-pro/docs-shape-ui','docs-shape-ui.ribbon.shape-format.wrapping-style','inline','scale','doc.shape.object-list.panel','shapeData','includes','1435536IsfeoN','visible','docs-shape-ui.textWrap.square','0.8','beginPath','_initEditingParams','_applyFormulaAutoFitSize','default','getTransformerByCreate','spaceBelowApply','extensionGroups','_initCommands','_getFocusedShapeAtPoint','fill','setShapeData','_activeShapeModel','getShapeTypeById','isHorizontal','visible$','classType','getPresentation','docs-shape-ui.ribbon.shape-format','isLineShape','_baseShapeWidth','getAutoFitPresentations','adjHandleSize','DocsShapeWrapInFrontOfTextIcon','canvasElement','_activeAdjustInfo','changeEnd$','subscribeEvent','drawing-ui.objectListPanel.moveForward','width','clip','disableObjectsEvent','_disposePopupsByUnit','fillImageSource','completeEditing','_drawRichText','_context','componentKey','canvas','isMainScene','_updateAdjustControlPositions','Arrow','engine','docs-shape-ui.shape-format.style-ribbon-control','changeStart$','_draw','_commandService','reduce','_shapeFloatingToolbarService','_adjustPointObjects','find','DOCS_SHAPE_UI_PLUGIN','data','_formulaShapes','actualHeight','_update','153904vqZjvD','onReady','docs-shape-ui.ribbon.shape-format.text-control','focusDrawing','TopmostIcon','doc.operation.close-doc-shape-format-panel','Copy','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','SolidLine','packageName','_registerComponents','name','onSavingEditorData$','onCommandExecuted','some','calcAdjValues','save','isEditing','behindText','dispose','getDrawingOrder','_loadShapePictureFill','ObjectLayersIcon','scene','angle','_transformCalculateSrcRect','popup','drawing-ui.objectListPanel.dragToReorder','ShapeIcon','getDrawingOKey','WRAP_NONE','getState','isInGroup','moveRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DocsShapeWrapTopBottomIcon','color','viewBound','drawing-ui.objectListPanel.name','strokeWidth','reverse','doc.shape.floating-toolbar','onPointerDown$','backward','_formulaKey','35IzgoWG','entries','style','shape-editor-ui.toolbar.changeShape','custom','attachTransformerTo'];_0x15fc=function(){return _0x51342e;};return _0x15fc();}import{memo as _0x20bf0f,useEffect as _0x335468,useMemo as _0x536a10,useReducer as _0x55cb68,useState as _0x5ed182}from'react';import{UnitAction as _0x4f9b0b,UnitObject as _0xfcd145}from'@univerjs/protocol';function Tr(_0x34c2d6,_0x5a2a5a){const _0x73c9a1=_0x3935;if(_0x5a2a5a){if(_0x394312(_0x34c2d6)&&(_0x5a2a5a[_0x73c9a1(0x3fd)]||_0x5a2a5a[_0x73c9a1(0x20b)]))return{'ln':{'startArrow':_0x5a2a5a[_0x73c9a1(0x3fd)]?{'type':_0x1262bd[_0x73c9a1(0x2c3)],'size':_0x462d37[_0x73c9a1(0x3c1)]}:void 0x0,'endArrow':_0x5a2a5a[_0x73c9a1(0x20b)]?{'type':_0x1262bd['Arrow'],'size':_0x462d37['Large']}:void 0x0}};if(_0x34c2d6===_0x31901e['Rect']&&(_0x5a2a5a[_0x73c9a1(0x394)]||_0x5a2a5a['vertical']))return _0x43ec31({'fill':{'fillType':_0x663a07[_0x73c9a1(0x312)],'color':_0x73c9a1(0x32e)},'isHorizontal':!!_0x5a2a5a['horizontal'],'stroke':{'lineStrokeType':_0x1d7fb3[_0x73c9a1(0x2da)],'width':0x1,'color':_0x73c9a1(0x42a)}});}}function Er(_0x32441b,_0x40e6dd){const _0x316513=_0x3935;var _0x30c2c6;let _0x1f0248=_0x40e6dd[_0x316513(0x1e9)]??'',_0x5d488a=(_0x30c2c6=_0x32441b[_0x316513(0x3d3)](_0x1f0248))==null?void 0x0:_0x30c2c6['getBody']();if(!_0x5d488a)return null;let _0x53f4ae=_0x5d488a[_0x316513(0x399)]??[],_0x1492fa=_0x53f4ae[_0x316513(0x2cc)](_0x31a267=>{const _0x3cfea0=_0x316513;let _0x3ffe2c=_0x51a026(_0x5d488a,_0x31a267);return _0x40e6dd[_0x3cfea0(0x3d9)]>=_0x3ffe2c&&_0x40e6dd['startOffset']<=_0x31a267[_0x3cfea0(0x1d9)];})??_0x53f4ae[_0x53f4ae[_0x316513(0x348)]-0x1];return _0x1492fa?{'paragraphId':_0x1492fa['paragraphId'],'segmentId':_0x1f0248,'position':_0x4206dc[_0x316513(0x277)],'offset':_0x40e6dd['startOffset']-_0x51a026(_0x5d488a,_0x1492fa)}:null;}function Dr(_0x35926f,_0x1cae50,_0x59e0be){const _0x1ae7ed=_0x3935;var _0x15bd16,_0x1e517d;if(!_0x59e0be)return null;let _0x4bace0=(_0x15bd16=_0x35926f['get'](_0x456b85)[_0x1ae7ed(0x359)](_0x1cae50))==null?void 0x0:_0x15bd16[_0x1ae7ed(0x28f)](_0x3a0006)['activeTarget'];if(!_0x4bace0)return null;let _0x2342c4=_0x59e0be===_0x1ae7ed(0x386)?{'startOffset':_0x4bace0[_0x1ae7ed(0x2f3)][_0x1ae7ed(0x36c)],'endOffset':_0x4bace0['moveRange']['endOffset']}:_0x4bace0[_0x1ae7ed(0x320)];return{'startOffset':_0x2342c4['startOffset'],'endOffset':_0x2342c4['endOffset'],'collapsed':_0x2342c4[_0x1ae7ed(0x3d9)]===_0x2342c4[_0x1ae7ed(0x36c)],'segmentId':((_0x1e517d=_0x4bace0['paragraph'])==null?void 0x0:_0x1e517d['segmentId'])??''};}const U={'type':_0x596f1a[_0x33b4ed(0x3f2)],'id':_0x33b4ed(0x236),'handler':async(_0x2af7b9,_0x4e30bb)=>{const _0x5cb0a7=_0x33b4ed;let _0x509cbe=_0x2af7b9[_0x5cb0a7(0x3d8)](_0x1e69fb)[_0x5cb0a7(0x242)](_0x248b26['UNIVER_DOC']);if(!_0x509cbe)return!0x1;let _0x4fda8c=_0x2af7b9['get'](_0x2474c3),_0x2fe49d=_0x509cbe[_0x5cb0a7(0x223)](),_0x29f239=_0x4e30bb[_0x5cb0a7(0x402)]??_0x599b17(),_0x35f305=_0x4e30bb['width']??_0x1544b6,_0x2669e1=_0x4e30bb[_0x5cb0a7(0x323)]??_0x254783,_0x5f4d5c=_0x4e30bb[_0x5cb0a7(0x295)]??Tr(_0x4e30bb[_0x5cb0a7(0x324)],_0x4e30bb[_0x5cb0a7(0x31d)]),_0x16f8fe=Dr(_0x2af7b9,_0x2fe49d,_0x4e30bb[_0x5cb0a7(0x276)])??_0x2af7b9['get'](_0x1507b5)[_0x5cb0a7(0x3f1)]();if(!_0x16f8fe)return!0x1;let _0x1578a3=Er(_0x509cbe,_0x16f8fe);return _0x1578a3?!!_0x4fda8c['syncExecuteCommand'](_0x2eb417['id'],{'unitId':_0x2fe49d,'shapeId':_0x29f239,'shapeType':_0x4e30bb['value'],'shapeData':_0x5f4d5c,'transform':{'width':_0x35f305,'height':_0x2669e1},'placement':{'wrappingStyle':_0x4a5267[_0x5cb0a7(0x1fc)],'anchor':_0x1578a3}}):!0x1;}},W='doc.shape.edit.panel',Or=_0x33b4ed(0x2ac),kr='doc.shape.object-list.panel',Ar=_0x35e317(_0x33b4ed(0x225)),jr=_0x33b4ed(0x1fb),Mr='DocsShapeTextEditorContainer',Nr={'id':_0x33b4ed(0x373),'type':_0x596f1a[_0x33b4ed(0x3f2)],'handler':(_0x3e58df,_0x433063)=>{const _0x125c35=_0x33b4ed;let _0x1b26e5=_0x3e58df[_0x125c35(0x3d8)](_0x1658ad),_0x4c98ce=_0x3e58df[_0x125c35(0x3d8)](_0x5a1674),_0x46e755=_0x3e58df[_0x125c35(0x3d8)](_0x8501d);return(_0x433063==null?void 0x0:_0x433063[_0x125c35(0x324)])===_0x125c35(0x33a)?(_0x1b26e5['close'](kr),!0x0):(_0x1b26e5[_0x125c35(0x40b)]({'id':kr,'header':{'title':_0x4c98ce['t'](_0x125c35(0x3e8))},'children':{'label':kr},'onClose':()=>{const _0x4a0195=_0x125c35;_0x46e755[_0x4a0195(0x2d5)](null);},'width':0x168}),!0x0);}},G={'type':_0x596f1a[_0x33b4ed(0x3ea)],'id':_0x33b4ed(0x34f),'handler'(){return!0x0;}};function Pr(_0x325631){const _0x5e7f62=_0x33b4ed;let _0xa20369=_0x325631['get'](_0x8501d)['getFocusDrawings'](),_0x27690f=_0xa20369['length']===0x1?_0xa20369[0x0]:null;if(!_0x27690f||_0x27690f[_0x5e7f62(0x221)]!==_0x197ccb[_0x5e7f62(0x374)])return null;let _0x2ff910=_0x325631[_0x5e7f62(0x3d8)](_0x2b6cfd),_0x559d7c=_0x2ff910['getShapeTypeById'](_0x27690f[_0x5e7f62(0x1c7)],_0x27690f['subUnitId'],_0x27690f[_0x5e7f62(0x310)]),_0x1a1a3e=_0x2ff910[_0x5e7f62(0x1e0)](_0x27690f[_0x5e7f62(0x1c7)],_0x27690f[_0x5e7f62(0x1c6)],_0x27690f['drawingId']);return _0x559d7c===void 0x0||!_0x1a1a3e?null:{'drawing':_0x27690f,'shapeData':_0x1a1a3e,'shapeType':_0x559d7c};}const Fr={'id':_0x33b4ed(0x3ca),'type':_0x596f1a[_0x33b4ed(0x3ea)],'handler':(_0x110a9d,_0xd60ef)=>{const _0x131327=_0x33b4ed;let _0x588ca4=Pr(_0x110a9d),_0x542581=_0x630a9c((_0xd60ef==null?void 0x0:_0xd60ef['presetId'])??(_0xd60ef==null?void 0x0:_0xd60ef[_0x131327(0x324)])??'');if(!_0x588ca4||!_0x542581||_0x542581[_0x131327(0x392)]!==_0x416d3a(_0x588ca4['shapeData']))return!0x1;let _0x1509c3=_0x17a77d(_0x588ca4['shapeData'],_0x542581);if(!_0x1509c3)return!0x1;let {drawing:_0x5c6f81}=_0x588ca4;return _0x110a9d[_0x131327(0x3d8)](_0x2474c3)[_0x131327(0x39c)](_0x1a49e3['id'],{'unitId':_0x5c6f81[_0x131327(0x1c7)],'shapeId':_0x5c6f81[_0x131327(0x310)],'shapeData':_0x1509c3,'oldShapeJSON':{'oldShapeData':_0x588ca4[_0x131327(0x295)]}});}},Ir={'id':_0x33b4ed(0x357),'type':_0x596f1a[_0x33b4ed(0x3ea)],'handler':(_0xc6f848,_0x32682d)=>{const _0x2da608=_0x33b4ed;let _0x3f8a8d=Pr(_0xc6f848),_0x336a69=(_0x32682d==null?void 0x0:_0x32682d['shapeType'])??(_0x32682d==null?void 0x0:_0x32682d['value']);if(!_0x3f8a8d||!_0x336a69||_0x394312(_0x3f8a8d[_0x2da608(0x243)])||_0x394312(_0x336a69))return!0x1;let _0xb577ec=_0x1ae742(_0x3f8a8d[_0x2da608(0x295)],_0x336a69);if(!_0xb577ec)return!0x1;let {drawing:_0x53569d}=_0x3f8a8d;return _0xc6f848['get'](_0x2474c3)[_0x2da608(0x39c)](_0x1a49e3['id'],{'unitId':_0x53569d[_0x2da608(0x1c7)],'shapeId':_0x53569d[_0x2da608(0x310)],'shapeType':_0x336a69,'shapeData':_0xb577ec,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3f8a8d[_0x2da608(0x243)],'oldShapeData':_0x3f8a8d[_0x2da608(0x295)]}});}};function K(_0x81995c,_0x3f3e79){return function(_0x7b0f79,_0x434bf0){_0x3f3e79(_0x7b0f79,_0x434bf0,_0x81995c);};}function q(_0x3a2baa,_0x60b915,_0x2077b0,_0x4ac5d3){const _0x5dd28d=_0x33b4ed;var _0xb77e0e=arguments[_0x5dd28d(0x348)],_0x48fc50=_0xb77e0e<0x3?_0x60b915:_0x4ac5d3===null?_0x4ac5d3=Object[_0x5dd28d(0x3ae)](_0x60b915,_0x2077b0):_0x4ac5d3,_0x34c42b;if(typeof Reflect==_0x5dd28d(0x33d)&&typeof Reflect[_0x5dd28d(0x25c)]==_0x5dd28d(0x377))_0x48fc50=Reflect[_0x5dd28d(0x25c)](_0x3a2baa,_0x60b915,_0x2077b0,_0x4ac5d3);else{for(var _0x4b870f=_0x3a2baa['length']-0x1;_0x4b870f>=0x0;_0x4b870f--)(_0x34c42b=_0x3a2baa[_0x4b870f])&&(_0x48fc50=(_0xb77e0e<0x3?_0x34c42b(_0x48fc50):_0xb77e0e>0x3?_0x34c42b(_0x60b915,_0x2077b0,_0x48fc50):_0x34c42b(_0x60b915,_0x2077b0))||_0x48fc50);}return _0xb77e0e>0x3&&_0x48fc50&&Object[_0x5dd28d(0x403)](_0x60b915,_0x2077b0,_0x48fc50),_0x48fc50;}let J=class extends _0x256e8f{constructor(_0x3090d1,_0x2d2c8f){const _0x1f1e28=_0x33b4ed;super(),this[_0x1f1e28(0x381)]=_0x3090d1,this['_drawingManagerService']=_0x2d2c8f,this[_0x1f1e28(0x1e4)](),this[_0x1f1e28(0x381)][_0x1f1e28(0x32f)](!0x0),this[_0x1f1e28(0x39a)]({'dispose':()=>this[_0x1f1e28(0x381)][_0x1f1e28(0x32f)](!0x1)});}[_0x33b4ed(0x1e4)](){const _0x4998ef=_0x33b4ed;let _0x406b40=new Map(),_0x45e216=this[_0x4998ef(0x381)]['registerClipDelegate']((_0x3876ce,_0x57ddb7,_0x226ce1,_0x3442b7,_0x2bf80e)=>{const _0x444d10=_0x4998ef;let _0x5cae3d=_0x57ddb7;if(_0x5cae3d===_0x31901e[_0x444d10(0x224)]||_0x57ddb7===_0x444d10(0x303))return!0x1;try{let _0x17d03d=_0x406b40[_0x444d10(0x3d8)](_0x57ddb7);return _0x17d03d||(_0x17d03d=new _0x42b479(_0x5cae3d,_0x444d10(0x1d1)+_0x57ddb7),_0x406b40[_0x444d10(0x328)](_0x57ddb7,_0x17d03d)),_0x17d03d['clearAdjustValue'](),_0x2bf80e&&Object[_0x444d10(0x316)](_0x2bf80e)[_0x444d10(0x348)]>0x0&&_0x17d03d[_0x444d10(0x2a5)]({'adjustValues':_0x2bf80e},!0x0),_0x17d03d[_0x444d10(0x395)]({'width':_0x226ce1,'height':_0x3442b7}),_0x17d03d[_0x444d10(0x1d4)](_0x3876ce,{'left':0x0,'top':0x0,'width':_0x226ce1,'height':_0x3442b7});}catch{return!0x1;}});this[_0x4998ef(0x39a)](_0x45e216),this[_0x4998ef(0x39a)]({'dispose':()=>_0x406b40['clear']()});}[_0x33b4ed(0x256)](_0xc82511,_0x3659f0,_0x15b18f,_0x5e1805,_0x1a9d54){const _0x38bbbf=_0x33b4ed;let _0x28a5c4=this['_drawingManagerService'][_0x38bbbf(0x3a4)](_0xc82511,_0x3659f0)[_0x15b18f];_0x28a5c4&&_0x28a5c4[_0x38bbbf(0x221)]===_0x197ccb[_0x38bbbf(0x3c6)]&&this[_0x38bbbf(0x356)][_0x38bbbf(0x40c)]([{..._0x28a5c4,'prstGeom':_0x5e1805,'adjustValues':_0x1a9d54}]);}};J=q([K(0x0,_0x179bf2(_0x2426eb)),K(0x1,_0x179bf2(_0x8501d))],J);const Lr=_0x33b4ed(0x1ee),Rr=_0x33b4ed(0x31e);function zr({onShapeClick:_0x502460,excludeGroups:_0xb771d2}){return _0x204a1f(_0x36a009,{'excludeGroups':_0xb771d2,'onShapeClick':_0x502460,'scrollContainer':'parent'});}function Br(){let _0x397ed4=_0x4f0443(_0x8501d),_0x1f6c22=_0x4f0443(J);return _0x40d72c=>{const _0x2a786e=_0x3935;let _0x5df29f=_0x397ed4['getFocusDrawings']()['find'](_0x14cfa5=>_0x14cfa5[_0x2a786e(0x221)]===_0x197ccb[_0x2a786e(0x3c6)]);_0x5df29f&&_0x1f6c22[_0x2a786e(0x256)](_0x5df29f['unitId'],_0x5df29f[_0x2a786e(0x1c6)],_0x5df29f[_0x2a786e(0x310)],_0x40d72c['type']);};}function Vr(){const _0x282aee=_0x33b4ed;let _0xbb5b29=Br();return _0x204a1f(_0x1b348e,{'buttonLabel':'docs-shape-ui.crop.shape','excludeGroups':[_0x18936a[_0x282aee(0x372)]],'onShapeClick':_0xbb5b29});}function Hr(){const _0x4df970=_0x33b4ed;let _0x26401b=_0x4f0443(_0x497683),_0x22cd64=_0x4f0443(_0x8501d),_0x372499=_0x4f0443(_0x1e69fb),_0x90ae2a=_0x22cd64['getFocusDrawings']()[0x0],_0x544fb3=_0x90ae2a?_0x372499['getUnitType'](_0x90ae2a[_0x4df970(0x1c7)]):void 0x0,_0x4b7bd1=_0x544fb3===_0x248b26[_0x4df970(0x1bd)]?Rr:_0x544fb3===_0x248b26['UNIVER_SHEET']?_0x4df970(0x249):void 0x0,_0x379238=_0x4b7bd1?_0x26401b[_0x4df970(0x3d8)](_0x4b7bd1):void 0x0;return _0x379238?_0x204a1f(_0x379238,{}):null;}function Ur({paragraphMenuPlacement:_0x2380af,PickerComponent:_0x4952db=zr}){let _0x5cd163=_0x4f0443(_0x2474c3);return _0x204a1f(_0x4952db,{'onShapeClick':_0x276ee1=>{const _0x2f9b2d=_0x3935;_0x5cd163[_0x2f9b2d(0x39c)](U['id'],{'paragraphMenuPlacement':_0x2380af,'value':_0x276ee1['type'],'enhanceParams':{'endArrow':_0x276ee1['endArrow'],'startArrow':_0x276ee1[_0x2f9b2d(0x3fd)],'horizontal':_0x276ee1[_0x2f9b2d(0x394)],'vertical':_0x276ee1['vertical']}});}});}function Wr(_0x32adb4){const _0x32ae73=_0x33b4ed;return _0x2d4fa9=>({'id':U['id'],'type':_0x7efdf3[_0x32ae73(0x38a)],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x32adb4?{'id':U['id'],'paragraphMenuPlacement':_0x32adb4}:{'id':U['id']}}}],'icon':'ShapeIcon','title':'docs-shape-ui.insertShape','tooltip':_0x32ae73(0x34a),'hidden$':_0x1a292c(_0x2d4fa9,_0x248b26[_0x32ae73(0x1bd)])});}const Gr=Wr(),Kr=Wr(_0x33b4ed(0x386)),qr=Wr('target');function Jr(_0x4e4508){const _0x386bf7=_0x33b4ed;let _0x526a15=_0x4e4508[_0x386bf7(0x3d8)](_0x1658ad);return{'id':Nr['id'],'type':_0x7efdf3[_0x386bf7(0x322)],'icon':_0x386bf7(0x2e8),'title':_0x386bf7(0x28a),'tooltip':_0x386bf7(0x28a),'activated$':_0x34fb2d(()=>_0x526a15[_0x386bf7(0x409)][_0x386bf7(0x33b)](_0x24843f(_0x526a15[_0x386bf7(0x20f)]),_0x2d1e10(_0x502c28=>_0x502c28[_0x386bf7(0x298)]===!0x0&&_0x502c28['id']===_0x386bf7(0x294)),_0x53e830())),'hidden$':_0x1a292c(_0x4e4508,_0x248b26[_0x386bf7(0x1bd)])};}function Yr(_0x5ad7ed,_0x16f54a,_0x1d1ea1,_0x407b6a,_0x3071f9,_0x4f93e1){let _0x1c2c31={'unitId':_0x16f54a,'shapeId':_0x407b6a,'shapeData':_0x4f93e1,'oldShapeJSON':_0x3071f9};return _0x5ad7ed['executeCommand'](_0x1a49e3['id'],_0x1c2c31);}function Xr(_0x3d0ea8,_0x5e6a4d,_0x15d605,_0x531f83,_0x469564,_0x3f58d8){const _0x1f5c91=_0x33b4ed;let _0x4266ed={'unitId':_0x5e6a4d,'shapeId':_0x531f83,'shapeData':_0x3f58d8,'oldShapeJSON':_0x469564};return _0x3d0ea8[_0x1f5c91(0x39c)](_0x1a49e3['id'],_0x4266ed);}const Zr=_0x33b4ed(0x336),Qr=_0x33b4ed(0x2c5),$r=_0x33b4ed(0x42d),ei=_0x33b4ed(0x35f),ti=_0x33b4ed(0x21c),ni=[{'value':_0x4a5267[_0x33b4ed(0x1fc)],'label':_0x33b4ed(0x21b),'icon':_0x33b4ed(0x27e)},{'value':_0x4a5267['WRAP_SQUARE'],'label':_0x33b4ed(0x299),'icon':'DocsShapeWrapSquareIcon'},{'value':_0x4a5267[_0x33b4ed(0x388)],'label':_0x33b4ed(0x232),'icon':_0x33b4ed(0x2f5)},{'value':_0x4a5267[_0x33b4ed(0x1eb)],'label':_0x33b4ed(0x1de),'icon':_0x33b4ed(0x3c7)},{'value':_0x4a5267[_0x33b4ed(0x1ce)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x33b4ed(0x2b1)}];function ri(){let _0x7f241c=_0x4f0443(_0x2474c3),_0xa14d99=_0x4f0443(_0x8501d),_0x2c5638=_0x4f0443(_0x2b6cfd),_0x18ed67=()=>{const _0x82b94a=_0x3935;var _0x50a127;let _0x3e79d6=_0xa14d99[_0x82b94a(0x26c)]();if(_0x3e79d6[_0x82b94a(0x348)]!==0x1||((_0x50a127=_0x3e79d6[0x0])==null?void 0x0:_0x50a127['drawingType'])!==_0x197ccb[_0x82b94a(0x374)])return null;let {unitId:_0x3ddb82,subUnitId:_0x5f129e,drawingId:_0x5d5e6a}=_0x3e79d6[0x0],_0x4f9958=_0x2c5638['getShapeTypeById'](_0x3ddb82,_0x5f129e,_0x5d5e6a),_0x2e0786=_0x2c5638[_0x82b94a(0x1e0)](_0x3ddb82,_0x5f129e,_0x5d5e6a);return _0x4f9958===void 0x0||!_0x2e0786?null:{'unitId':_0x3ddb82,'subUnitId':_0x5f129e,'drawingId':_0x5d5e6a,'shapeType':_0x4f9958,'shapeData':_0x2e0786};},_0x4075b2=_0x182392(()=>new _0x5c7fe4(_0x54673e=>{const _0x5c8496=_0x3935;let _0x4c77b1=()=>_0x54673e['next'](_0x18ed67()),_0x5ce6c5=_0xa14d99[_0x5c8496(0x1d8)][_0x5c8496(0x364)](_0x4c77b1),_0x2fdc76=_0x7f241c[_0x5c8496(0x2df)](_0x3d4854=>{_0x3d4854['id']===_0xee5b39['id']&&_0x4c77b1();});return _0x4c77b1(),()=>{const _0x368b0b=_0x5c8496;_0x5ce6c5[_0x368b0b(0x1f7)](),_0x2fdc76[_0x368b0b(0x2e5)]();};}),_0x18ed67(),!0x1,[_0x7f241c,_0x2c5638,_0xa14d99]);return{'selection':_0x4075b2,'updateShapeData':_0xe3666d=>{const _0x19ecbd=_0x3935;_0x4075b2&&Yr(_0x7f241c,_0x4075b2[_0x19ecbd(0x1c7)],_0x4075b2['subUnitId'],_0x4075b2[_0x19ecbd(0x310)],{'oldShapeData':_0x4075b2['shapeData']},_0xe3666d);}};}function ii(){const _0x22b899=_0x33b4ed;let {selection:_0x414b81,updateShapeData:_0x103ad7}=ri();return _0x414b81?_0x204a1f(_0x45d8f7,{'shapeData':_0x414b81[_0x22b899(0x295)],'shapeType':_0x414b81[_0x22b899(0x243)],'onUpdateShapeData':_0x103ad7}):null;}function ai(){const _0x1f828b=_0x33b4ed;let _0x4d7d2c=_0x4f0443(_0x2474c3),_0x306da0=_0x4f0443(_0x5a1674),{selection:_0x9af48c}=ri();return _0x9af48c?_0x204a1f(_0x1d6539,{'type':_0x416d3a(_0x9af48c[_0x1f828b(0x295)]),'ariaLabel':_0x306da0['t'](_0x1f828b(0x39f)),'activePresetId':_0x378bff(_0x9af48c['shapeData']),'onSelect':_0x418aba=>_0x4d7d2c[_0x1f828b(0x39c)](Fr['id'],{'presetId':_0x418aba})}):null;}function oi(){const _0x1a6c04=_0x33b4ed;let {selection:_0x595cf2,updateShapeData:_0x5ba421}=ri();return _0x595cf2?_0x204a1f(_0x1e0283,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x595cf2[_0x1a6c04(0x295)],'onUpdateShapeData':_0x5ba421}):null;}function si(){const _0x2712d6=_0x33b4ed;var _0x504dad;let {selection:_0x2bf915,updateShapeData:_0x4c668e}=ri(),_0xbe3a8e=_0x1abe68({'hostType':_0x248b26['UNIVER_DOC'],'unitId':(_0x2bf915==null?void 0x0:_0x2bf915['unitId'])??'','subUnitId':(_0x2bf915==null?void 0x0:_0x2bf915[_0x2712d6(0x1c6)])??'','shapeId':(_0x2bf915==null?void 0x0:_0x2bf915[_0x2712d6(0x310)])??'','shapeData':_0x2bf915==null?void 0x0:_0x2bf915['shapeData'],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x2712d6(0x211),'onUpdateBinding':_0x97027c=>_0x4c668e({'formulaBinding':_0x97027c})}),_0x41b7fc=((_0x504dad=_0xbe3a8e[_0x2712d6(0x2a1)])==null?void 0x0:_0x504dad['flatMap'](_0xc10e21=>_0xc10e21['actions'])[_0x2712d6(0x319)](_0x40091c=>_0x40091c[_0x2712d6(0x298)]!==!0x1))??[];return _0x2bf915!=null&&_0x2bf915[_0x2712d6(0x295)][_0x2712d6(0x1ea)]?_0x204a1f(_0x3315fc,{'actions':_0x41b7fc,'panel':_0xbe3a8e[_0x2712d6(0x32c)]}):null;}function ci({value:_0xaadcb8}){const _0x5bab30=_0x33b4ed;let _0x41cf4c=_0x4f0443(_0x5a1674),_0x152ae4=ni[_0x5bab30(0x2cc)](_0x219934=>_0x219934[_0x5bab30(0x324)]===_0xaadcb8)??ni[0x0];return _0x152ae4?_0x204a1f(_0x5bab30(0x3da),{'children':_0x41cf4c['t'](_0x152ae4[_0x5bab30(0x413)])}):null;}const li=_0x33b4ed(0x23c),ui=_0x33b4ed(0x2d4),di=_0x33b4ed(0x214),fi=_0x33b4ed(0x3aa),pi=_0x33b4ed(0x3cc),mi=_0x33b4ed(0x210),hi='docs-shape-ui.ribbon.shape-format.arrange-back',gi=_0x33b4ed(0x291);function _i(_0x52fd80){const _0x5c9341=_0x33b4ed;let _0x2f1a99=_0x52fd80['get'](_0x2474c3),_0x5c3b02=_0x52fd80[_0x5c9341(0x3d8)](_0x8501d),_0x4d6b7f=_0x52fd80['get'](_0x2b6cfd);return new _0x5c7fe4(_0x478847=>{const _0x424e35=_0x5c9341;let _0x407543=()=>{const _0x38e553=_0x3935;let _0x2b79ab=Y(_0x52fd80),_0x5cadcc=_0x2b79ab?_0x4d6b7f[_0x38e553(0x1e0)](_0x2b79ab[_0x38e553(0x1c7)],_0x2b79ab[_0x38e553(0x1c6)],_0x2b79ab[_0x38e553(0x310)]):null;_0x478847['next'](_0x5cadcc?_0x378bff(_0x5cadcc)??'':'');},_0x439edd=_0x5c3b02['focus$'][_0x424e35(0x364)](_0x407543),_0x18058c=_0x2f1a99[_0x424e35(0x2df)](_0x451404=>{_0x451404['id']===_0xee5b39['id']&&_0x407543();});return _0x407543(),()=>{const _0x11f1bc=_0x424e35;_0x439edd[_0x11f1bc(0x1f7)](),_0x18058c['dispose']();};});}function Y(_0x3409fd){const _0x4c2cc6=_0x33b4ed;var _0x1894d0;let _0x5ab841=_0x3409fd[_0x4c2cc6(0x3d8)](_0x8501d)[_0x4c2cc6(0x26c)]();return _0x5ab841[_0x4c2cc6(0x348)]===0x1&&((_0x1894d0=_0x5ab841[0x0])==null?void 0x0:_0x1894d0[_0x4c2cc6(0x221)])===_0x197ccb[_0x4c2cc6(0x374)]?_0x5ab841[0x0]:null;}function vi(_0x1f2aa1){const _0x3e0468=_0x33b4ed;return(_0x1f2aa1==null?void 0x0:_0x1f2aa1['layoutType'])===_0x2cd4cd[_0x3e0468(0x2f0)]?_0x1f2aa1['behindDoc']===_0x51c9cc[_0x3e0468(0x424)]?_0x4a5267[_0x3e0468(0x1eb)]:_0x4a5267[_0x3e0468(0x1ce)]:(_0x1f2aa1==null?void 0x0:_0x1f2aa1[_0x3e0468(0x3f3)])===_0x2cd4cd[_0x3e0468(0x3fa)]?_0x4a5267[_0x3e0468(0x3fa)]:(_0x1f2aa1==null?void 0x0:_0x1f2aa1['layoutType'])===_0x2cd4cd[_0x3e0468(0x388)]?_0x4a5267['WRAP_TOP_AND_BOTTOM']:_0x4a5267[_0x3e0468(0x1fc)];}function yi(_0x166846){const _0x69efbf=_0x33b4ed;let _0x50cb48=_0x166846[_0x69efbf(0x3d8)](_0x2474c3),_0x20ca9f=_0x166846['get'](_0x8501d),_0x56c9a6=_0x166846[_0x69efbf(0x3d8)](_0x1e69fb);return new _0x5c7fe4(_0x685436=>{const _0x30b58d=_0x69efbf;let _0x3b06f2=()=>{const _0x264c83=_0x3935;var _0x10730a;let _0x53ab48=Y(_0x166846),_0x128511=_0x53ab48?_0x56c9a6['getUnit'](_0x53ab48['unitId'],_0x248b26[_0x264c83(0x1bd)]):void 0x0;_0x685436['next'](vi(_0x53ab48?_0x128511==null||(_0x10730a=_0x128511[_0x264c83(0x213)]()[_0x264c83(0x258)])==null?void 0x0:_0x10730a[_0x53ab48[_0x264c83(0x310)]]:void 0x0));},_0x212c8f=_0x20ca9f[_0x30b58d(0x1d8)][_0x30b58d(0x364)](_0x3b06f2),_0x39f1ed=_0x50cb48['onCommandExecuted'](_0x18cd10=>{_0x18cd10['id']===_0x3ee887['id']&&_0x3b06f2();});return _0x3b06f2(),()=>{const _0x202c11=_0x30b58d;_0x212c8f['unsubscribe'](),_0x39f1ed[_0x202c11(0x2e5)]();};})[_0x69efbf(0x33b)](_0x53e830());}function bi(_0x7b97b0,_0x4fae7d=!0x1){const _0x54c4f2=_0x33b4ed;let _0x8ba394=_0x7b97b0['get'](_0x2474c3),_0x555d55=_0x7b97b0[_0x54c4f2(0x3d8)](_0x8501d),_0x5722b2=_0x7b97b0['get'](_0x2b6cfd);return new _0x5c7fe4(_0x4bd208=>{const _0x235b3d=_0x54c4f2;let _0x2f103b=()=>{const _0x1cbaac=_0x3935;let _0x1434e1=Y(_0x7b97b0);if(!_0x1434e1){_0x4bd208[_0x1cbaac(0x339)](!0x0);return;}let _0x597d0c=_0x5722b2['getShapeDataById'](_0x1434e1[_0x1cbaac(0x1c7)],_0x1434e1[_0x1cbaac(0x1c6)],_0x1434e1[_0x1cbaac(0x310)]);_0x4bd208['next'](!_0x597d0c||_0x4fae7d&&_0x597d0c['formulaBinding']==null);},_0x5a9e8b=_0x555d55[_0x235b3d(0x1d8)]['subscribe'](_0x2f103b),_0x5cfb99=_0x8ba394[_0x235b3d(0x2df)](_0x2addef=>{_0x2addef['id']===_0xee5b39['id']&&_0x2f103b();});return _0x2f103b(),()=>{const _0x4d2daa=_0x235b3d;_0x5a9e8b['unsubscribe'](),_0x5cfb99[_0x4d2daa(0x2e5)]();};});}function xi(_0x1334e2){const _0x79c6c=_0x33b4ed;let _0x56b1c9=_0x1334e2[_0x79c6c(0x3d8)](_0x8501d),_0x3b1621=_0x1334e2[_0x79c6c(0x3d8)](_0x2b6cfd);return _0x56b1c9[_0x79c6c(0x1d8)]['pipe'](_0x24843f(_0x56b1c9[_0x79c6c(0x26c)]()),_0x2d1e10(()=>{const _0x24e2f8=_0x79c6c;let _0x56a50b=Y(_0x1334e2),_0x2afced=_0x56a50b?_0x3b1621['getShapeTypeById'](_0x56a50b[_0x24e2f8(0x1c7)],_0x56a50b[_0x24e2f8(0x1c6)],_0x56a50b[_0x24e2f8(0x310)]):void 0x0;return _0x2afced===void 0x0||_0x394312(_0x2afced);}));}function Si(_0x27b57c){const _0x4251e5=_0x33b4ed;return{'id':Fr['id'],'type':_0x7efdf3[_0x4251e5(0x38a)],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x4251e5(0x208),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x27b57c),'hidden$':bi(_0x27b57c)};}function Ci(_0x129f3e){const _0x3a7cad=_0x33b4ed;return{'id':Ir['id'],'type':_0x7efdf3[_0x3a7cad(0x38a)],'icon':_0x3a7cad(0x2ee),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3a7cad(0x302),'slot':!0x0,'selections':[{'label':{'name':_0x52abb9,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':xi(_0x129f3e)};}function wi(_0x2a8d10,_0x376254,_0x2dbdbe=!0x1){return _0x2ef948=>({'id':_0x2a8d10,'type':_0x7efdf3['BUTTON'],'label':{'name':_0x376254,'hoverable':!0x1,'selectable':!0x1},'hidden$':bi(_0x2ef948,_0x2dbdbe)});}const Ti=wi(li,Qr),Ei=wi(ui,$r),Di=wi(di,ei,!0x0);function Oi(_0x53b946){const _0x10ad5e=_0x33b4ed;return{'id':gi,'type':_0x7efdf3[_0x10ad5e(0x38a)],'icon':ni[0x0][_0x10ad5e(0x26e)],'label':ti,'selectionsCommandId':_0x5ef581['id'],'selections':ni[_0x10ad5e(0x41d)](({icon:_0x539c71,label:_0x174f81,value:_0x1240fc})=>({'value':_0x1240fc,'label':_0x174f81,'icon':_0x539c71,'params':()=>{const _0x52a716=_0x10ad5e;let _0x55f9d7=Y(_0x53b946);return _0x55f9d7?{'unitId':_0x55f9d7[_0x52a716(0x1c7)],'subUnitId':_0x55f9d7[_0x52a716(0x1c6)],'drawings':[{'unitId':_0x55f9d7[_0x52a716(0x1c7)],'subUnitId':_0x55f9d7[_0x52a716(0x1c6)],'drawingId':_0x55f9d7['drawingId']}],'wrappingStyle':_0x1240fc}:void 0x0;}})),'value$':yi(_0x53b946),'hidden$':bi(_0x53b946)};}function ki(_0x4c09bf,_0x960969,_0x30940c,_0x1108b6){const _0x588064=_0x33b4ed;return _0x5332fa=>({'id':_0x4c09bf,'commandId':_0x207919['id'],'type':_0x7efdf3[_0x588064(0x322)],'icon':_0x30940c,'title':_0x1108b6,'tooltip':_0x1108b6,'hidden$':bi(_0x5332fa),'params':()=>{const _0x5f20a3=_0x588064;let _0x149cf5=Y(_0x5332fa);return _0x149cf5?{'unitId':_0x149cf5[_0x5f20a3(0x1c7)],'subUnitId':_0x149cf5[_0x5f20a3(0x1c6)],'drawingIds':[_0x149cf5[_0x5f20a3(0x310)]],'arrangeType':_0x960969}:void 0x0;}});}const Ai=ki(fi,_0x2adc43[_0x33b4ed(0x345)],_0x33b4ed(0x218),_0x33b4ed(0x1c3)),ji=ki(pi,_0x2adc43['backward'],_0x33b4ed(0x408),_0x33b4ed(0x3fe)),Mi=ki(mi,_0x2adc43[_0x33b4ed(0x28d)],_0x33b4ed(0x2d6),_0x33b4ed(0x3f7)),Ni=ki(hi,_0x2adc43[_0x33b4ed(0x3d2)],_0x33b4ed(0x383),'shape-editor-ui.arrange.back');function Pi(_0x4020e9){const _0x31eb18=_0x33b4ed;let _0x22d28f=_0x4020e9[_0x31eb18(0x3d8)](_0x1658ad);return{'activated$':_0x34fb2d(()=>_0x22d28f['sidebarOptions$']['pipe'](_0x24843f(_0x22d28f[_0x31eb18(0x20f)]),_0x2d1e10(_0x162851=>_0x162851[_0x31eb18(0x298)]===!0x0&&_0x162851['id']===_0x31eb18(0x286)),_0x53e830())),'id':G['id'],'type':_0x7efdf3[_0x31eb18(0x322)],'icon':_0x31eb18(0x212),'title':_0x31eb18(0x201),'tooltip':_0x31eb18(0x201),'hidden$':bi(_0x4020e9),'params':()=>{const _0x2678f=_0x31eb18;let _0x38700d=Y(_0x4020e9);return _0x38700d?{'unitId':_0x38700d[_0x2678f(0x1c7)],'subUnitId':_0x38700d[_0x2678f(0x1c6)],'drawingId':_0x38700d['drawingId']}:void 0x0;}};}const Fi={[_0x5160ee[_0x33b4ed(0x30b)]]:{[Or]:{'order':0x64,'title':_0x33b4ed(0x201),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Fr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Si},[Ir['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ti}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Oi},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ai},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':ji},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Mi},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ni}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0xe63565['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x43dbc6}}}}},Ii={[_0x2b5ce5[_0x33b4ed(0x3a8)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x58cb23=>({...Gr(_0x58cb23),'title':void 0x0})}},[_0x2b5ce5['OTHERS']]:{[Nr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x48c8ed[_0x33b4ed(0x31c)]]:{[_0x441439[_0x33b4ed(0x228)]]:{[_0x57f28d]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x2c757d]:{[_0x441439[_0x33b4ed(0x228)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x2ca167]:{[_0x441439[_0x33b4ed(0x228)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x1dc7cd]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x39bc40]:{'insert':{[U['id']+_0x33b4ed(0x407)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Li=_0x33b4ed(0x290),Ri='1.4.0';const zi={'type':_0x596f1a[_0x33b4ed(0x3ea)],'id':_0x33b4ed(0x2d7),'handler'(){return!0x0;}},Bi=_0x33b4ed(0x418),Vi={};function Hi(_0x22ba91){'@babel/helpers - typeof';const _0x45d959=_0x33b4ed;return Hi=typeof Symbol=='function'&&typeof Symbol[_0x45d959(0x1c9)]=='symbol'?function(_0x20b2cc){return typeof _0x20b2cc;}:function(_0x290ffe){const _0x3bea12=_0x45d959;return _0x290ffe&&typeof Symbol==_0x3bea12(0x377)&&_0x290ffe[_0x3bea12(0x35b)]===Symbol&&_0x290ffe!==Symbol['prototype']?_0x3bea12(0x3b6):typeof _0x290ffe;},Hi(_0x22ba91);}function Ui(_0xa21129,_0x21f3a6){const _0x2ff356=_0x33b4ed;if(Hi(_0xa21129)!=_0x2ff356(0x33d)||!_0xa21129)return _0xa21129;var _0x586178=_0xa21129[Symbol[_0x2ff356(0x3e5)]];if(_0x586178!==void 0x0){var _0x446d59=_0x586178['call'](_0xa21129,_0x21f3a6||_0x2ff356(0x29e));if(Hi(_0x446d59)!=_0x2ff356(0x33d))return _0x446d59;throw TypeError(_0x2ff356(0x2f4));}return(_0x21f3a6==='string'?String:Number)(_0xa21129);}function Wi(_0x2a7a48){var _0x46075e=Ui(_0x2a7a48,'string');return Hi(_0x46075e)=='symbol'?_0x46075e:_0x46075e+'';}function X(_0x4efc56,_0x17d3bb,_0x3462a7){const _0x4308d6=_0x33b4ed;return(_0x17d3bb=Wi(_0x17d3bb))in _0x4efc56?Object[_0x4308d6(0x403)](_0x4efc56,_0x17d3bb,{'value':_0x3462a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4efc56[_0x17d3bb]=_0x3462a7,_0x4efc56;}var Gi=class extends _0x3c37d7{constructor(_0xb2f080,_0x4ba903){const _0x12c863=_0x33b4ed;super(_0xb2f080,_0x4ba903),X(this,_0x12c863(0x40f),null),X(this,'_adjName',null),X(this,_0x12c863(0x369),null),X(this,_0x12c863(0x42c),null),_0x4ba903&&this[_0x12c863(0x271)](_0x4ba903);}[_0x33b4ed(0x1c5)](){const _0x34fa14=_0x33b4ed;return{'unitId':this[_0x34fa14(0x369)],'subUnitId':this[_0x34fa14(0x42c)],'drawingId':this[_0x34fa14(0x40f)]};}[_0x33b4ed(0x271)](_0x305600){const _0x3ad42e=_0x33b4ed;_0x305600[_0x3ad42e(0x402)]!==void 0x0&&(this[_0x3ad42e(0x40f)]=_0x305600[_0x3ad42e(0x402)]),_0x305600[_0x3ad42e(0x40d)]!==void 0x0&&(this[_0x3ad42e(0x231)]=_0x305600[_0x3ad42e(0x40d)]),_0x305600[_0x3ad42e(0x1c7)]!==void 0x0&&(this[_0x3ad42e(0x369)]=_0x305600['unitId']),_0x305600[_0x3ad42e(0x1c6)]!==void 0x0&&(this[_0x3ad42e(0x42c)]=_0x305600[_0x3ad42e(0x1c6)]),this[_0x3ad42e(0x28e)]({'width':_0x305600[_0x3ad42e(0x2b7)],'height':_0x305600[_0x3ad42e(0x323)]});}[_0x33b4ed(0x2c7)](_0x35fd05){const _0x4fe73f=_0x33b4ed;_0x3776a7['drawWith'](_0x35fd05,{'radius':_0x45f006['adjHandleSize'],'fill':_0x45f006['adjHandleFill'],'stroke':_0x45f006[_0x4fe73f(0x36d)],'strokeWidth':0x1,'evented':!0x0});}};function Ki(_0x1e75fc,_0x1b2e4f,_0x3aca36){const _0x408144=_0x33b4ed;let _0xaf3858={..._0x1b2e4f,'dataModel':{..._0x1b2e4f[_0x408144(0x1d5)]??{},..._0x3aca36?{'doc':_0x3aca36}:null}},_0x5ca6ce=_0x2cef43(_0x1e75fc,_0xaf3858),_0x23b13f=_0x3f29ab(_0x5ca6ce);return{'clip':_0x4917b7(_0x5ca6ce,_0x23b13f),'wrapStrategy':_0x23b13f};}var Z=class extends _0x3c37d7{constructor(_0x138869,_0x506712){const _0x5dacbe=_0x33b4ed;super(_0x138869,_0x506712),X(this,_0x5dacbe(0x3ec),[]),X(this,_0x5dacbe(0x37e),void 0x0),X(this,_0x5dacbe(0x3ee),new _0x111cfb(()=>this[_0x5dacbe(0x3dd)](!0x0),()=>this[_0x5dacbe(0x29d)]())),X(this,_0x5dacbe(0x2eb),!0x0),X(this,'_drawingType',_0x197ccb[_0x5dacbe(0x374)]),X(this,_0x5dacbe(0x307),!0x0),this['_props']={..._0x506712},this[_0x5dacbe(0x3ee)]['setPresentation'](_0x506712[_0x5dacbe(0x3e1)],_0x506712[_0x5dacbe(0x30d)]!==!0x1),this[_0x5dacbe(0x42f)](),this['_applyFormulaAutoFitSize']();}[_0x33b4ed(0x42f)](){const _0x4a2532=_0x33b4ed;this[_0x4a2532(0x3c9)][_0x4a2532(0x2b5)](_0xbd9b02=>{this['_updateSrcRectByTransform'](_0xbd9b02);});}['setPrstGeom'](_0x310ef8){const _0x40dbb6=_0x33b4ed;this[_0x40dbb6(0x37e)]['prstGeom']=_0x310ef8;}[_0x33b4ed(0x3b7)](_0x27514f){const _0xc232dd=_0x33b4ed;if(this[_0xc232dd(0x37e)]['isEditing'])return null;let _0x114aeb=this[_0xc232dd(0x23f)](_0x27514f),{width:_0x35b4d6,height:_0x23894f}=this[_0xc232dd(0x3d7)]();return _0x3680bf(this[_0xc232dd(0x3ec)],{'x':(this['flipX']?-_0x114aeb['x']:_0x114aeb['x'])+_0x35b4d6/0x2,'y':_0x114aeb['y']+_0x23894f/0x2});}[_0x33b4ed(0x281)](_0x345baf){const _0x4d6daf=_0x33b4ed;this[_0x4d6daf(0x37e)][_0x4d6daf(0x2e3)]=_0x345baf,this[_0x4d6daf(0x3dd)](!0x0);}[_0x33b4ed(0x306)](_0x234cc3,_0x1ead5c=!0x0){const _0x52166d=_0x33b4ed;this['_formulaAnimation'][_0x52166d(0x3ba)](_0x234cc3,_0x1ead5c),this[_0x52166d(0x37e)][_0x52166d(0x3e1)]=_0x234cc3,this[_0x52166d(0x29d)](),this[_0x52166d(0x3dd)](!0x0);}[_0x33b4ed(0x29d)](){const _0x51e29b=_0x33b4ed;let _0x55d92c=this['_props'][_0x51e29b(0x1dc)],_0x2a0a13=_0x55d92c[_0x51e29b(0x264)](),_0x409135=_0x323514(_0x2a0a13==null?void 0x0:_0x2a0a13[_0x51e29b(0x1d5)]),_0x1c45a7=_0x409135==null?void 0x0:_0x409135['doc'],_0x23c313=this[_0x51e29b(0x3ee)][_0x51e29b(0x2af)]();if(!_0x1c45a7||_0x23c313[_0x51e29b(0x348)]===0x0)return;_0x55d92c[_0x51e29b(0x395)]({'width':this['width'],'height':this[_0x51e29b(0x323)]});let _0x58e02d=_0x1e5357({'documentData':_0x23c313[_0x51e29b(0x41d)](_0x5008f9=>_0xd798cf(_0x1c45a7,_0x5008f9)),'height':this[_0x51e29b(0x323)],'shapeData':_0x55d92c['getShapeData'](),'textRect':_0x55d92c['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this['height']}),'width':this[_0x51e29b(0x2b7)]});if(_0x58e02d){var _0x2c7bde;this[_0x51e29b(0x252)](_0x58e02d[_0x51e29b(0x2b7)],_0x58e02d[_0x51e29b(0x323)]),(_0x2c7bde=this['getScene']())==null||(_0x2c7bde=_0x2c7bde[_0x51e29b(0x3a6)]())==null||_0x2c7bde[_0x51e29b(0x1cc)]();}}get['unitId'](){const _0x8569f9=_0x33b4ed;return this[_0x8569f9(0x37e)][_0x8569f9(0x1c7)];}get[_0x33b4ed(0x1c6)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x306b04){const _0x39d445=_0x33b4ed;if(this['_props'][_0x39d445(0x217)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x4af741,height:_0x1b28f5}=this,{width:_0x3c9735=0x0,height:_0x348775=0x0}=_0x306b04[_0x39d445(0x405)],{left:_0x415b36=0x0,top:_0x3ddae9=0x0,right:_0x40c9d2=0x0,bottom:_0x520412=0x0}=this['_props'][_0x39d445(0x217)],_0x5c2e49=_0x415b36,_0x91bd75=_0x3ddae9,_0x37b5cc=_0x40c9d2,_0x129423=_0x520412,_0x481949=!0x1;if(_0x3c9735!==0x0&&_0x3c9735!==_0x4af741){let _0x22f929=_0x415b36/_0x3c9735,_0x5c1f81=_0x40c9d2/_0x3c9735;_0x5c2e49=_0x4af741*_0x22f929,_0x37b5cc=_0x4af741*_0x5c1f81,_0x481949=!0x0;}if(_0x348775!==0x0&&_0x348775!==_0x1b28f5){let _0x54be36=_0x3ddae9/_0x348775,_0x20c93c=_0x520412/_0x348775;_0x91bd75=_0x1b28f5*_0x54be36,_0x129423=_0x1b28f5*_0x20c93c,_0x481949=!0x0;}_0x481949&&this[_0x39d445(0x34d)]({'left':_0x5c2e49,'top':_0x91bd75,'right':_0x37b5cc,'bottom':_0x129423});}[_0x33b4ed(0x34d)](_0x8187d6){const _0x1cec35=_0x33b4ed;this['_props'][_0x1cec35(0x217)]=_0x8187d6,this[_0x1cec35(0x3dd)](!0x0);}['setFillImage'](_0x5a6f0f){const _0x4446f2=_0x33b4ed;this[_0x4446f2(0x37e)][_0x4446f2(0x3b9)]=_0x5a6f0f,this['makeDirty'](!0x0);}set[_0x33b4ed(0x3cd)](_0x2a61e3){const _0x3d8d7c=_0x33b4ed;this[_0x3d8d7c(0x272)]=_0x2a61e3;}get[_0x33b4ed(0x3cd)](){const _0x490c5a=_0x33b4ed;this[_0x490c5a(0x272)]||this[_0x490c5a(0x41e)]();let _0x117e39=this[_0x490c5a(0x272)][_0x490c5a(0x230)]();return this[_0x490c5a(0x278)](_0x117e39);}get[_0x33b4ed(0x1dc)](){const _0x2d592a=_0x33b4ed;return this[_0x2d592a(0x37e)][_0x2d592a(0x1dc)];}get['shapeId'](){const _0x2290ef=_0x33b4ed;return this[_0x2290ef(0x37e)][_0x2290ef(0x402)];}get[_0x33b4ed(0x2aa)](){const _0x25c555=_0x33b4ed;return _0x33187e[_0x25c555(0x317)];}['_draw'](_0x488b42,_0x180806,_0x2b0b28,_0x458b3f){const _0x439c8a=_0x33b4ed;let _0x15665b=this['_props'][_0x439c8a(0x1dc)];if(!_0x15665b||!_0x180806)return;let _0x4e84f8=_0x2b0b28??this[_0x439c8a(0x2b7)],_0x5727b3=_0x458b3f??this[_0x439c8a(0x323)],_0x5a5500={'shapeType':_0x15665b['getShapeType'](),'width':_0x4e84f8,'height':_0x5727b3},_0x217e7d={'renderMode':_0x300492[_0x439c8a(0x30a)],'oKey':this[_0x439c8a(0x1cf)],'image':this[_0x439c8a(0x37e)][_0x439c8a(0x3b9)],'angle':this[_0x439c8a(0x2ea)]};_0x15665b['updateContext'](_0x5a5500),_0x488b42[_0x439c8a(0x2e2)]();let _0x1a2a12={'top':0x0,'left':0x0,'width':_0x4e84f8,'height':_0x5727b3},_0x102fde=_0x15665b[_0x439c8a(0x3bb)](_0x1a2a12);_0x102fde?this[_0x439c8a(0x253)](_0x488b42,_0x102fde,_0x2c09a5=>{const _0x17ee9b=_0x439c8a;_0x15665b[_0x17ee9b(0x3f8)](_0x2c09a5,_0x1a2a12,_0x217e7d);}):(this['_releaseRenderCache'](),_0x15665b[_0x439c8a(0x3f8)](_0x488b42,_0x1a2a12,_0x217e7d)),_0x488b42[_0x439c8a(0x3fb)]();let _0x184bc6=_0x15665b['getShapeTextData'](),_0x914667=_0x15665b['getShapeTextRect'](_0x1a2a12),_0x51e45b=_0x15665b[_0x439c8a(0x2ad)]();if(_0x184bc6&&_0x914667&&!_0x51e45b){_0x488b42[_0x439c8a(0x2e2)](),this[_0x439c8a(0x2f1)]()[_0x439c8a(0x270)]&&_0x488b42[_0x439c8a(0x293)](-0x1,0x1);let _0x3e00b7=_0x4e84f8/0x2,_0x366aa1=_0x5727b3/0x2;_0x488b42[_0x439c8a(0x38b)](-_0x3e00b7,-_0x366aa1),_0x488b42[_0x439c8a(0x29b)](),this[_0x439c8a(0x274)](_0x488b42,_0x184bc6,_0x914667),_0x488b42[_0x439c8a(0x3fb)]();}}['getDrawingPoints'](_0x27b52c){}[_0x33b4ed(0x274)](_0x444a50,_0x48ff56,_0x1abb68){const _0x2081ec=_0x33b4ed;var _0x1fa403;this[_0x2081ec(0x3ec)]=[],this['_props'][_0x2081ec(0x2e3)]||(!((_0x1fa403=_0x48ff56[_0x2081ec(0x1d5)])!=null&&_0x1fa403[_0x2081ec(0x313)])&&_0x2081ec(0x3f0)in _0x48ff56&&_0x48ff56[_0x2081ec(0x3f0)]===!0x1?this[_0x2081ec(0x35d)](_0x444a50,_0x48ff56,_0x1abb68):this[_0x2081ec(0x2bd)](_0x444a50,_0x48ff56,_0x1abb68));}['_drawSimpleText'](_0x26b465,_0x4d8c99,_0xaf58e2){const _0x1c21e0=_0x33b4ed;this[_0x1c21e0(0x2bd)](_0x26b465,{..._0x4d8c99,'text':_0x4d8c99[_0x1c21e0(0x35c)]??'','dataModel':{'doc':_0x269d0d(_0x4d8c99,_0x1c21e0(0x40a)+this[_0x1c21e0(0x1cf)])}},_0xaf58e2);}['_drawRichText'](_0x4453b7,_0x241bf2,_0xa6828e){const _0x3c92df=_0x33b4ed;_0x398cb3(_0x4453b7,this[_0x3c92df(0x3ee)],(_0x3e4d1c,_0x5e466c,_0x4798f3)=>{const _0x25a82b=_0x3c92df;this[_0x25a82b(0x431)](_0x3e4d1c,_0x241bf2,_0xa6828e,_0x5e466c,_0x4798f3===_0x25a82b(0x417));});}[_0x33b4ed(0x431)](_0x355b27,_0x2644e0,_0x21dfc7,_0x206610,_0x478d9a){const _0x1e2ec9=_0x33b4ed;let _0x4b2e73=this[_0x1e2ec9(0x37e)][_0x1e2ec9(0x353)];if(!_0x2644e0[_0x1e2ec9(0x1d5)]||!_0x4b2e73){_0x4b2e73||console['warn'](_0x1e2ec9(0x26b));return;}let _0x11a60f=_0x323514(_0x2644e0['dataModel']);if(!_0x11a60f)return;let _0x3b5d46=_0x11a60f['doc'];if(!_0x3b5d46)return;let _0x56676f=_0xd798cf(_0x3b5d46,_0x206610),_0x13c965=_0x11a60f['va']??_0x9ed22a['TOP'],_0x23a7de=_0x11a60f['ha']??_0x163f8a['LEFT'],_0x2af284=Ki(this[_0x1e2ec9(0x37e)]['shapeModel'][_0x1e2ec9(0x244)](),_0x2644e0,_0x56676f),_0xc1f585=_0x2644e0[_0x1e2ec9(0x2a8)],_0x4e5496=_0x5e7a93(_0x56676f,{'isHorizontal':_0xc1f585!==!0x1,'textRect':_0x21dfc7,'verticalAlign':_0x13c965,'horizontalAlign':_0x23a7de,'wrapStrategy':_0x2af284[_0x1e2ec9(0x32a)]}),_0x1ea7c5=new _0x483eaa(_0x4e5496),_0xd100a0=new _0x2fd191(_0x1ea7c5),_0x1b4b1f=_0x11abd9[_0x1e2ec9(0x266)](_0xd100a0,_0x4b2e73);_0x1b4b1f['calculate']();let _0x57f56e=_0x1b4b1f['getActualSize']()[_0x1e2ec9(0x2d0)],_0xdfb60a=_0x391f73({'contentHeight':_0x57f56e,'verticalAlign':_0x13c965,'viewportHeight':_0x21dfc7['height']});_0x1ea7c5[_0x1e2ec9(0x240)]({'pageSize':{'width':_0xc1f585===!0x1?_0x21dfc7[_0x1e2ec9(0x323)]:_0x21dfc7[_0x1e2ec9(0x2b7)],'height':_0x2da653(_0x56676f,_0xdfb60a['contentHeight'])}}),_0x1ea7c5['updateDocumentDataMargin']({'t':_0xdfb60a['marginTop']}),_0x1b4b1f[_0x1e2ec9(0x389)]();let _0x26bb91=new _0x2bcd1b('shape-text-'+this['oKey'],_0x1b4b1f,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x1e2ec9(0x3dd)](!0x0)});_0x26bb91[_0x1e2ec9(0x252)](_0x21dfc7[_0x1e2ec9(0x2b7)],_0xdfb60a['contentHeight']),_0x355b27[_0x1e2ec9(0x2e2)](),_0x355b27[_0x1e2ec9(0x3b1)](_0x21dfc7['left'],_0x21dfc7['top']),_0x2af284[_0x1e2ec9(0x2b8)]&&(_0x355b27[_0x1e2ec9(0x29b)](),_0x355b27[_0x1e2ec9(0x346)](0x0,_0xdfb60a[_0x1e2ec9(0x337)],_0x21dfc7[_0x1e2ec9(0x2b7)],_0xdfb60a['clipHeight']),_0x355b27[_0x1e2ec9(0x2b8)]()),_0xdfb60a[_0x1e2ec9(0x3f9)]&&_0x355b27[_0x1e2ec9(0x3b1)](0x0,_0xdfb60a[_0x1e2ec9(0x3f9)]),_0x26bb91[_0x1e2ec9(0x378)](_0x355b27),_0x478d9a&&(this[_0x1e2ec9(0x3ec)]=_0x267ed3(_0x26bb91,{'left':_0x21dfc7[_0x1e2ec9(0x25a)],'top':_0x21dfc7[_0x1e2ec9(0x239)]+_0xdfb60a['contentVerticalOffset']},_0x2af284[_0x1e2ec9(0x2b8)]?{'left':_0x21dfc7[_0x1e2ec9(0x25a)],'right':_0x21dfc7[_0x1e2ec9(0x25a)]+_0x21dfc7[_0x1e2ec9(0x2b7)],'top':_0x21dfc7['top']+_0xdfb60a[_0x1e2ec9(0x337)],'bottom':_0x21dfc7[_0x1e2ec9(0x239)]+_0xdfb60a[_0x1e2ec9(0x337)]+_0xdfb60a[_0x1e2ec9(0x246)]}:void 0x0)),_0x355b27[_0x1e2ec9(0x3fb)](),_0x26bb91[_0x1e2ec9(0x2e5)](),_0x1b4b1f[_0x1e2ec9(0x2e5)](),_0xd100a0[_0x1e2ec9(0x2e5)](),_0x1ea7c5[_0x1e2ec9(0x2e5)]();}[_0x33b4ed(0x3f8)](_0x39066a,_0x1a3054,_0x159417=!0x1){const _0x365a4c=_0x33b4ed;if(!this[_0x365a4c(0x298)])return this[_0x365a4c(0x3dd)](!0x1),this;let {width:_0x1d2ec6,height:_0x55978f,left:_0x48e7c9,top:_0x1551e1}=this,_0x1cc94f=this[_0x365a4c(0x3d7)]();if(_0x1d2ec6=_0x1cc94f['width'],_0x55978f=_0x1cc94f[_0x365a4c(0x323)],_0x48e7c9=_0x1cc94f[_0x365a4c(0x25a)],_0x1551e1=_0x1cc94f[_0x365a4c(0x239)],this['isRender'](_0x1a3054)){let {top:_0xbb4043,left:_0x58ea85,bottom:_0x2a358c,right:_0x8dca84}=_0x1a3054[_0x365a4c(0x2f7)];if(_0x1d2ec6+this[_0x365a4c(0x2f9)]+_0x48e7c9<_0x58ea85||_0x8dca84<_0x48e7c9||_0x55978f+this[_0x365a4c(0x2f9)]+_0x1551e1<_0xbb4043||_0x2a358c<_0x1551e1)return this;}let _0x18bead=_0x48e7c9+_0x1d2ec6/0x2,_0x561a2b=_0x1551e1+_0x55978f/0x2,_0xbf202=this[_0x365a4c(0x3cd)]['getMatrix']();if(this[_0x365a4c(0x37e)][_0x365a4c(0x2e3)]){let _0x110bac=this['getState'](),_0x3be80d=new _0x3ab4ed();_0x3be80d[_0x365a4c(0x371)]({..._0x110bac}),_0xbf202=_0x3be80d[_0x365a4c(0x280)]();}return _0x39066a[_0x365a4c(0x2e2)](),this[_0x365a4c(0x37e)][_0x365a4c(0x1dc)][_0x365a4c(0x35e)]===!0x0||_0x39066a['transform'](_0xbf202[0x0],_0xbf202[0x1],_0xbf202[0x2],_0xbf202[0x3],_0x18bead,_0x561a2b),this[_0x365a4c(0x2c7)](_0x39066a,_0x1a3054,_0x1d2ec6,_0x55978f),_0x39066a['restore'](),this[_0x365a4c(0x3dd)](!0x1),this;}[_0x33b4ed(0x23f)](_0x3218c3){const _0x2a3afe=_0x33b4ed;let {left:_0x39db4f,top:_0x356c85,width:_0x2d84a0,height:_0x53d6d1}=this['getRealBound'](),_0x26f090=this[_0x2a3afe(0x3cd)][_0x2a3afe(0x280)](),_0x4bf9bc=_0x39db4f+_0x2d84a0/0x2,_0x2b462e=_0x356c85+_0x53d6d1/0x2,_0x5c09a4=new _0x3ab4ed([_0x26f090[0x0],_0x26f090[0x1],_0x26f090[0x2],_0x26f090[0x3],_0x4bf9bc,_0x2b462e]),_0x7ca7d0=this[_0x2a3afe(0x245)]();return(this['isInGroup']&&(_0x7ca7d0==null?void 0x0:_0x7ca7d0[_0x2a3afe(0x2aa)])===_0x33187e[_0x2a3afe(0x22c)]?_0x7ca7d0[_0x2a3afe(0x3ef)][_0x2a3afe(0x393)](_0x5c09a4):_0x5c09a4)[_0x2a3afe(0x21a)]()[_0x2a3afe(0x3c2)](_0x3218c3);}[_0x33b4ed(0x355)](_0x35518e){const _0x2fda84=_0x33b4ed;let {left:_0x5697ae,top:_0x1d591e,width:_0x4b391b,height:_0x16ef97}=this[_0x2fda84(0x3d7)](),_0x5c6146=_0x5697ae+_0x4b391b/0x2,_0x3b8f94=_0x1d591e+_0x16ef97/0x2,_0x2a9daf=this['transform']['getMatrix'](),_0x47acf6=new _0x3ab4ed([_0x2a9daf[0x0],_0x2a9daf[0x1],_0x2a9daf[0x2],_0x2a9daf[0x3],_0x5c6146,_0x3b8f94]),_0x17f2aa=this[_0x2fda84(0x245)](),_0x92bc0d=(this[_0x2fda84(0x2f2)]&&(_0x17f2aa==null?void 0x0:_0x17f2aa[_0x2fda84(0x2aa)])===_0x33187e[_0x2fda84(0x22c)]?_0x17f2aa['ancestorTransform'][_0x2fda84(0x393)](_0x47acf6):_0x47acf6)[_0x2fda84(0x21a)]()[_0x2fda84(0x3c2)](_0x35518e),_0x3533f9=_0x4b391b/0x2,_0x24b83e=_0x16ef97/0x2,_0x293cab=this[_0x2fda84(0x37e)][_0x2fda84(0x1dc)];return _0x293cab&&_0x293cab['isLineShape']()?_0x293cab[_0x2fda84(0x385)](_0x92bc0d['x'],_0x92bc0d['y'],_0x4b391b,_0x16ef97):_0x92bc0d['x']>=-_0x3533f9-this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['x']<=_0x3533f9+this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['y']>=-_0x24b83e-this[_0x2fda84(0x2f9)]/0x2&&_0x92bc0d['y']<=_0x24b83e+this['strokeWidth']/0x2;}[_0x33b4ed(0x2e5)](){const _0xab166d=_0x33b4ed;this[_0xab166d(0x3ee)][_0xab166d(0x2e5)](),this[_0xab166d(0x37e)][_0xab166d(0x1dc)]=null,super['dispose']();}};let qi=class extends _0x256e8f{constructor(_0x4a4b4f,_0x3fe2ca,_0x1d9cfd,_0x599895){const _0x57b925=_0x33b4ed;super(),this[_0x57b925(0x2be)]=_0x4a4b4f,this[_0x57b925(0x356)]=_0x3fe2ca,this[_0x57b925(0x1be)]=_0x1d9cfd,this[_0x57b925(0x2c8)]=_0x599895,X(this,'_activeShapeId',null),X(this,_0x57b925(0x369),null),X(this,_0x57b925(0x42c),null),X(this,'_activeShapeAdjustPointList',void 0x0),X(this,_0x57b925(0x2cb),[]),X(this,_0x57b925(0x27d),0x0),X(this,_0x57b925(0x318),0x0),X(this,_0x57b925(0x2ae),0x0),X(this,_0x57b925(0x401),0x0),X(this,_0x57b925(0x344),!0x1),X(this,'_isShouldShowDrawingShapeAdjust',!0x1),X(this,_0x57b925(0x2b3),void 0x0),X(this,'_activeShapeModel',void 0x0),X(this,'_adjHandlerPointerMove',void 0x0),X(this,'_adjHandlerPointerUp',void 0x0),this['_registerDrawingFocusChangeHandler'](),this[_0x57b925(0x1db)]();}[_0x33b4ed(0x1fe)](){const _0x197a0e=_0x33b4ed;this[_0x197a0e(0x238)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x33b4ed(0x375)](_0x5ce054,_0x37c286,_0x2dadb9){const _0x576275=_0x33b4ed;var _0x313e81;return(_0x313e81=this['_docsShapeService'][_0x576275(0x36f)](_0x5ce054,_0x37c286,_0x2dadb9))==null?void 0x0:_0x313e81['getDrawingPoints']();}[_0x33b4ed(0x404)](_0x2d23a1,_0x225bf5,_0x1c1545,_0x505daa){const _0x40cd9c=_0x33b4ed;var _0x4f6d49;return(_0x4f6d49=this[_0x40cd9c(0x1be)][_0x40cd9c(0x36f)](_0x2d23a1,_0x225bf5,_0x1c1545))==null?void 0x0:_0x4f6d49['getAdjustInfoByName'](_0x505daa);}[_0x33b4ed(0x42b)](){const _0x35f532=_0x33b4ed;return this[_0x35f532(0x369)]===null||this[_0x35f532(0x42c)]===null||this[_0x35f532(0x237)]===null?null:this['_drawingManagerService'][_0x35f532(0x268)]({'unitId':this[_0x35f532(0x369)],'subUnitId':this[_0x35f532(0x42c)],'drawingId':this[_0x35f532(0x237)]})??null;}[_0x33b4ed(0x39b)](_0x44588f){const _0x27c731=_0x33b4ed;if(this[_0x27c731(0x369)]===null||this[_0x27c731(0x42c)]===null||this[_0x27c731(0x237)]===null)return null;let _0x17814c=_0x2d5511({'unitId':this['_unitId'],'subUnitId':this[_0x27c731(0x42c)],'drawingId':this[_0x27c731(0x237)]}),_0x5a8c1f=_0x44588f[_0x27c731(0x37c)](_0x17814c);return _0x5a8c1f instanceof Z?_0x5a8c1f:null;}[_0x33b4ed(0x1c4)](_0x5c3659=!0x1){const _0x2c406f=_0x33b4ed;if(this[_0x2c406f(0x369)]===null||this[_0x2c406f(0x42c)]===null||this[_0x2c406f(0x237)]===null)return;let _0x34503c=this[_0x2c406f(0x42b)]();if((_0x34503c==null?void 0x0:_0x34503c[_0x2c406f(0x221)])!==_0x197ccb['DRAWING_SHAPE']||!_0x34503c[_0x2c406f(0x3cd)])return;let _0x8cfe70=this['_docsShapeService'][_0x2c406f(0x36f)](this['_unitId'],this[_0x2c406f(0x42c)],this['_activeShapeId']);if(!_0x8cfe70||_0x8cfe70['isLineShape']())return;let {left:_0x533337=0x0,top:_0x5314b7=0x0,width:_0x4860a7=0x0,height:_0x3604a2=0x0,flipX:_0x243102,flipY:_0x573719,angle:_0x11bb28=0x0}=_0x34503c[_0x2c406f(0x3cd)];(_0x5c3659||!this[_0x2c406f(0x279)])&&(_0x8cfe70[_0x2c406f(0x395)]({'width':_0x4860a7,'height':_0x3604a2}),this['_activeShapeAdjustPointList']=_0x8cfe70[_0x2c406f(0x234)]());let _0x1d14e1=this[_0x2c406f(0x279)];if(!(_0x1d14e1!=null&&_0x1d14e1['length']))return;let {scene:_0x539896}=this[_0x2c406f(0x2be)];for(let _0x4c91f3 of _0x1d14e1){let _0xd0b402=this['_toVisualAdjustPoint'](_0x4c91f3,_0x4860a7,_0x3604a2,!!_0x243102,!!_0x573719,_0x11bb28);this[_0x2c406f(0x363)](_0x539896,_0xd0b402,_0xd0b402[_0x2c406f(0x40d)],_0x533337,_0x5314b7,this[_0x2c406f(0x369)],this[_0x2c406f(0x42c)]);}}[_0x33b4ed(0x370)](_0x25b1de,_0x1caaad,_0x3097de,_0x1cb15d,_0x59b3c4,_0x59a598){const _0x4a0969=_0x33b4ed;let _0x33daef=_0x25b1de['x'],_0x538f82=_0x25b1de['y'];if(_0x1cb15d&&(_0x33daef=_0x1caaad-_0x33daef),_0x59b3c4&&(_0x538f82=_0x3097de-_0x538f82),_0x59a598!==0x0){let _0x4a1515=_0x1caaad/0x2,_0x3e775e=_0x3097de/0x2,_0x10c7d4=_0x59a598*Math['PI']/0xb4,_0x42c8bf=Math[_0x4a0969(0x1e8)](_0x10c7d4),_0x2da085=Math[_0x4a0969(0x3d0)](_0x10c7d4),_0x12fab3=_0x33daef-_0x4a1515,_0x4f9dd2=_0x538f82-_0x3e775e;_0x33daef=_0x4a1515+(_0x12fab3*_0x42c8bf-_0x4f9dd2*_0x2da085),_0x538f82=_0x3e775e+(_0x12fab3*_0x2da085+_0x4f9dd2*_0x42c8bf);}return{'x':_0x33daef,'y':_0x538f82,'adjName':_0x25b1de['adjName']};}[_0x33b4ed(0x22b)](_0x5a6a11=!0x1){const _0x3e5f00=_0x33b4ed;_0x5a6a11&&this[_0x3e5f00(0x238)](),this['_createShapeAdjustControls'](_0x5a6a11);}[_0x33b4ed(0x363)](_0x36b29d,_0x43def0,_0x5f40d4,_0x1eac45,_0x395e66,_0x5c3cc2,_0x3034d2){const _0x110bc3=_0x33b4ed;if(!this[_0x110bc3(0x237)])return;let _0x39e46c='doc-shape-adjust-point-'+this[_0x110bc3(0x237)]+'-'+_0x5f40d4,_0x2bc052=_0x36b29d[_0x110bc3(0x37c)](_0x39e46c);if(_0x2bc052){_0x2bc052[_0x110bc3(0x28e)]({'left':_0x43def0['x']+_0x1eac45-_0x45f006['adjHandleSize'],'top':_0x43def0['y']+_0x395e66-_0x45f006[_0x110bc3(0x2b0)]}),_0x2bc052[_0x110bc3(0x3dd)](!0x0);return;}let _0x117dfc=new Gi(_0x39e46c,{'left':_0x43def0['x']+_0x1eac45-_0x45f006[_0x110bc3(0x2b0)],'top':_0x43def0['y']+_0x395e66-_0x45f006['adjHandleSize'],'adjName':_0x5f40d4,'shapeId':this[_0x110bc3(0x237)],'unitId':_0x5c3cc2,'subUnitId':_0x3034d2,'width':_0x45f006[_0x110bc3(0x2b0)]+0x8,'height':_0x45f006[_0x110bc3(0x2b0)]+0x8,'zIndex':_0xbe605e+0x1,'evented':!0x0});this[_0x110bc3(0x2cb)][_0x110bc3(0x3db)](_0x117dfc),this[_0x110bc3(0x430)](_0x117dfc,_0x36b29d,_0x5f40d4),_0x36b29d[_0x110bc3(0x3b5)](_0x117dfc,_0xbe605e+0x1);}['_clearShapeAdjustControls'](){const _0x3c89da=_0x33b4ed;this[_0x3c89da(0x2cb)][_0x3c89da(0x27a)](_0x340445=>_0x340445[_0x3c89da(0x2e5)]()),this['_adjustPointObjects']=[];}[_0x33b4ed(0x2c2)](){const _0x3d8f47=_0x33b4ed;this[_0x3d8f47(0x1c4)]();}[_0x33b4ed(0x1bf)](_0x5bf9dd,_0x4f6c0d,_0x24d163){const _0x1836c7=_0x33b4ed;let _0x73086a=_0x482a77[_0x1836c7(0x38e)]([_0x4f6c0d,_0x24d163]),_0x4024ff=_0x5bf9dd[_0x1836c7(0x3ab)](_0x73086a)??_0x5bf9dd[_0x1836c7(0x3e7)]()[0x0];return(_0x4024ff==null?void 0x0:_0x4024ff[_0x1836c7(0x3df)](_0x73086a))??_0x73086a;}['_attachAdjustEvent'](_0x54c413,_0x367ea8,_0x4c147c){const _0x29142d=_0x33b4ed;this['disposeWithMe'](_0x519bb5(_0x54c413[_0x29142d(0x2fc)]['subscribeEvent']((_0x237999,_0x5dbd47)=>{const _0x4b6d03=_0x29142d;var _0x530ff1;let _0x413212=_0x54c413['getDrawingSearch']();this['_activeAdjustInfo']=this[_0x4b6d03(0x404)](_0x413212[_0x4b6d03(0x1c7)],_0x413212['subUnitId'],_0x413212[_0x4b6d03(0x310)],_0x4c147c),this[_0x4b6d03(0x2a6)]=this[_0x4b6d03(0x1be)][_0x4b6d03(0x36f)](_0x413212[_0x4b6d03(0x1c7)],_0x413212['subUnitId'],_0x413212[_0x4b6d03(0x310)]);let _0x44a98c=this[_0x4b6d03(0x42b)](),_0x74251c=_0x44a98c==null?void 0x0:_0x44a98c[_0x4b6d03(0x3cd)];if(!_0x44a98c||!_0x74251c||!this[_0x4b6d03(0x2a6)])return;this[_0x4b6d03(0x27d)]=_0x74251c[_0x4b6d03(0x25a)]||0x0,this[_0x4b6d03(0x318)]=_0x74251c[_0x4b6d03(0x239)]||0x0,this[_0x4b6d03(0x2ae)]=_0x74251c[_0x4b6d03(0x2b7)]||0x0,this[_0x4b6d03(0x401)]=_0x74251c[_0x4b6d03(0x323)]||0x0;let _0x5ab06e=!!_0x74251c[_0x4b6d03(0x270)],_0x327197=!!_0x74251c[_0x4b6d03(0x25e)],_0x4d4846=_0x74251c[_0x4b6d03(0x2ea)]||0x0,_0x358e8c={...((_0x530ff1=this['_activeAdjustInfo'])==null?void 0x0:_0x530ff1[_0x4b6d03(0x1f8)])??{}};this['_isStartAdjusting']=!0x0,_0x367ea8[_0x4b6d03(0x2b9)](),this['_adjHandlerPointerMove']=_0x367ea8[_0x4b6d03(0x20c)][_0x4b6d03(0x2b5)]((_0x29f34e,_0x3ca6ee)=>{const _0x50fcf3=_0x4b6d03;var _0x52f23a;if(!this['_isStartAdjusting']||!this[_0x50fcf3(0x2a6)]||!this[_0x50fcf3(0x2b3)])return;_0x367ea8[_0x50fcf3(0x2b9)](),_0x367ea8[_0x50fcf3(0x35a)](_0xb952ae['CROSSHAIR']);let _0x27f4e6=this[_0x50fcf3(0x1bf)](_0x367ea8,_0x29f34e[_0x50fcf3(0x3a7)],_0x29f34e[_0x50fcf3(0x25d)]),_0x5ced7b=_0x27f4e6['x']-this[_0x50fcf3(0x27d)],_0x47f8de=_0x27f4e6['y']-this[_0x50fcf3(0x318)];if(_0x4d4846!==0x0){let _0x57a272=this[_0x50fcf3(0x2ae)]/0x2,_0x1471a2=this['_baseShapeHeight']/0x2,_0x5290b1=_0x4d4846*Math['PI']/0xb4,_0x1efe2e=Math['cos'](_0x5290b1),_0x543ab5=Math['sin'](_0x5290b1),_0x2cafdb=_0x5ced7b-_0x57a272,_0x1421ca=_0x47f8de-_0x1471a2;_0x5ced7b=_0x57a272+(_0x2cafdb*_0x1efe2e+_0x1421ca*_0x543ab5),_0x47f8de=_0x1471a2+(-_0x2cafdb*_0x543ab5+_0x1421ca*_0x1efe2e);}_0x5ab06e&&(_0x5ced7b=this['_baseShapeWidth']-_0x5ced7b),_0x327197&&(_0x47f8de=this[_0x50fcf3(0x401)]-_0x47f8de);let _0x27a3f9={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0x1bce66=this[_0x50fcf3(0x2a6)][_0x50fcf3(0x2e1)](_0x27a3f9,{'x':_0x5ced7b,'y':_0x47f8de},this[_0x50fcf3(0x2b3)],_0x5ab06e,_0x327197);if(Object['keys'](_0x1bce66)['length']!==0x0){for(let [_0x21d7d3,_0x2bc60b]of Object[_0x50fcf3(0x300)](_0x1bce66))this[_0x50fcf3(0x2a6)][_0x50fcf3(0x3eb)](_0x21d7d3,_0x2bc60b);this[_0x50fcf3(0x2a6)][_0x50fcf3(0x395)]({'width':this[_0x50fcf3(0x2ae)],'height':this['_baseShapeHeight']}),(_0x52f23a=this[_0x50fcf3(0x39b)](_0x367ea8))==null||_0x52f23a[_0x50fcf3(0x3dd)](!0x0),this[_0x50fcf3(0x279)]=this[_0x50fcf3(0x375)](_0x413212[_0x50fcf3(0x1c7)],_0x413212[_0x50fcf3(0x1c6)],_0x413212[_0x50fcf3(0x310)]),this[_0x50fcf3(0x2c2)](),_0x3ca6ee[_0x50fcf3(0x350)]();}}),this['_adjHandlerPointerUp']=_0x367ea8[_0x4b6d03(0x37a)]['subscribeEvent']((_0x3e3af1,_0x12b2e4)=>{const _0x414ff0=_0x4b6d03;var _0x256a10,_0x510322;(_0x256a10=this['_adjHandlerPointerMove'])==null||_0x256a10[_0x414ff0(0x1f7)](),(_0x510322=this[_0x414ff0(0x262)])==null||_0x510322['unsubscribe'](),_0x367ea8['resetCursor']();let _0x33f1a4=this[_0x414ff0(0x2b3)];if(_0x33f1a4&&this[_0x414ff0(0x2a6)]){let _0x4b2591={};for(let _0x1d89b2 of Object[_0x414ff0(0x316)](_0x33f1a4[_0x414ff0(0x1f8)])){let _0x21c197=this[_0x414ff0(0x2a6)][_0x414ff0(0x25f)](_0x1d89b2);_0x21c197!==void 0x0&&(_0x4b2591[_0x1d89b2]=_0x21c197);}Object['keys'](_0x4b2591)['length']>0x0&&Yr(this[_0x414ff0(0x2c8)],_0x413212[_0x414ff0(0x1c7)],_0x413212[_0x414ff0(0x1c6)],_0x413212['drawingId'],{'oldShapeData':{'adjustValues':_0x358e8c}},{'adjustValues':_0x4b2591});}this[_0x414ff0(0x2b3)]=void 0x0,this[_0x414ff0(0x2a6)]=void 0x0,this[_0x414ff0(0x344)]=!0x1,_0x367ea8['enableObjectsEvent'](),_0x12b2e4[_0x414ff0(0x350)]();}),_0x5dbd47['stopPropagation']();})));}[_0x33b4ed(0x1db)](){const _0x5a595c=_0x33b4ed;let {scene:_0x407735}=this[_0x5a595c(0x2be)],_0x23e251=_0x407735[_0x5a595c(0x29f)]();this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x2c6)][_0x5a595c(0x364)](_0x27cb4f=>{const _0x37bdff=_0x5a595c;this[_0x37bdff(0x1c4)](),_0x27cb4f[_0x37bdff(0x284)]!==null&&_0x27cb4f[_0x37bdff(0x284)][_0x37bdff(0x391)]===0x1&&_0x27cb4f[_0x37bdff(0x284)][_0x37bdff(0x1f2)]()['next']()[_0x37bdff(0x324)]instanceof Z&&(this[_0x37bdff(0x23b)]=!0x0);})),this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x36a)][_0x5a595c(0x364)](()=>{const _0x5a0da1=_0x5a595c;this[_0x5a0da1(0x23b)]&&this[_0x5a0da1(0x238)]();})),this['disposeWithMe'](_0x407735[_0x5a595c(0x37a)][_0x5a595c(0x2b5)](()=>{const _0x4d669c=_0x5a595c;this[_0x4d669c(0x23b)]&&(this[_0x4d669c(0x23b)]=!0x1,this[_0x4d669c(0x1c4)]());})),this[_0x5a595c(0x39a)](_0x23e251[_0x5a595c(0x2b4)][_0x5a595c(0x364)](()=>{const _0x4741cb=_0x5a595c;this[_0x4741cb(0x369)]&&this['_subUnitId']&&this['_activeShapeId']&&(this['_activeShapeAdjustPointList']=this[_0x4741cb(0x375)](this[_0x4741cb(0x369)],this[_0x4741cb(0x42c)],this['_activeShapeId']),this[_0x4741cb(0x2c2)]());}));}[_0x33b4ed(0x1e2)](){const _0x5d7603=_0x33b4ed;this[_0x5d7603(0x39a)](this[_0x5d7603(0x2c8)][_0x5d7603(0x2df)](_0x3970ce=>{const _0x222385=_0x5d7603;if(_0x3970ce['id']!==_0xee5b39['id'])return;let {unitId:_0x23882c,shapeId:_0x31f34}=_0x3970ce[_0x222385(0x1f5)];_0x23882c===this['_unitId']&&_0x31f34===this[_0x222385(0x237)]&&this[_0x222385(0x28c)]();})),this['disposeWithMe'](this['_drawingManagerService']['focus$'][_0x5d7603(0x364)](_0x4f67c3=>{const _0x2a0d5c=_0x5d7603;if(_0x4f67c3[_0x2a0d5c(0x348)]===0x1){let _0x4c4f27=_0x4f67c3[0x0],_0x16192b=this[_0x2a0d5c(0x356)][_0x2a0d5c(0x268)](_0x4c4f27);if((_0x16192b==null?void 0x0:_0x16192b[_0x2a0d5c(0x221)])===_0x197ccb[_0x2a0d5c(0x374)]){this[_0x2a0d5c(0x237)]=_0x4c4f27['drawingId'],this['_unitId']=_0x4c4f27['unitId'],this[_0x2a0d5c(0x42c)]=_0x4c4f27[_0x2a0d5c(0x1c6)],this[_0x2a0d5c(0x279)]=this[_0x2a0d5c(0x375)](_0x4c4f27[_0x2a0d5c(0x1c7)],_0x4c4f27[_0x2a0d5c(0x1c6)],_0x4c4f27[_0x2a0d5c(0x310)]),this[_0x2a0d5c(0x238)](),this[_0x2a0d5c(0x1c4)]();return;}}this[_0x2a0d5c(0x237)]=null,this['_activeShapeAdjustPointList']=void 0x0,this['_unitId']=null,this[_0x2a0d5c(0x42c)]=null,this[_0x2a0d5c(0x238)]();})),this['disposeWithMe'](_0x231b03(this[_0x5d7603(0x356)]['update$'],this[_0x5d7603(0x356)][_0x5d7603(0x34c)])[_0x5d7603(0x364)](_0x159731=>{const _0x696fbe=_0x5d7603;var _0x161924;let _0xe587c1=_0x159731[_0x696fbe(0x2cc)](_0x48ed41=>_0x48ed41['drawingId']===this[_0x696fbe(0x237)]&&_0x48ed41['unitId']===this[_0x696fbe(0x369)]&&_0x48ed41['subUnitId']===this[_0x696fbe(0x42c)]);_0xe587c1&&((_0x161924=this[_0x696fbe(0x356)][_0x696fbe(0x268)](_0xe587c1))==null?void 0x0:_0x161924[_0x696fbe(0x221)])===_0x197ccb[_0x696fbe(0x374)]&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x5d7603(0x39a)](this['_drawingManagerService'][_0x5d7603(0x1df)][_0x5d7603(0x364)](_0x3bfb34=>{const _0x2344c4=_0x5d7603;for(let _0xfd0d3c of _0x3bfb34)this['_activeShapeId']===_0xfd0d3c[_0x2344c4(0x310)]&&(this['_activeShapeId']=null,this[_0x2344c4(0x279)]=void 0x0,this[_0x2344c4(0x369)]=null,this[_0x2344c4(0x42c)]=null,this['_clearShapeAdjustControls']());}));}};qi=q([K(0x1,_0x8501d),K(0x2,_0x179bf2(_0x2b6cfd)),K(0x3,_0x2474c3)],qi);let Q=class extends _0x256e8f{constructor(_0x5bf454,_0x357716){const _0x53a133=_0x33b4ed;super(),this[_0x53a133(0x376)]=_0x5bf454,this[_0x53a133(0x331)]=_0x357716,X(this,_0x53a133(0x314),new _0x3c3cbc(null)),X(this,'editingParams$',this[_0x53a133(0x314)][_0x53a133(0x410)]()),X(this,_0x53a133(0x338),new _0x3c3cbc(!0x1)),X(this,_0x53a133(0x2de),this[_0x53a133(0x338)]['asObservable']()),X(this,_0x53a133(0x1ca),void 0x0),this[_0x53a133(0x39a)](this[_0x53a133(0x376)][_0x53a133(0x20d)][_0x53a133(0x364)](()=>{const _0x38d52b=_0x53a133;let _0x19d32e=this[_0x38d52b(0x24a)]();_0x19d32e!=null&&_0x19d32e['visible']&&!this[_0x38d52b(0x273)](_0x19d32e)&&this[_0x38d52b(0x281)](null);}));}['dispose'](){const _0x3dbf03=_0x33b4ed;this[_0x3dbf03(0x3b4)](),this[_0x3dbf03(0x314)][_0x3dbf03(0x339)](null),this[_0x3dbf03(0x314)]['complete'](),this[_0x3dbf03(0x338)][_0x3dbf03(0x339)](!0x1),this[_0x3dbf03(0x338)][_0x3dbf03(0x207)](),super[_0x3dbf03(0x2e5)]();}[_0x33b4ed(0x281)](_0x26f7dd){const _0x4f0efa=_0x33b4ed;(_0x26f7dd==null||!_0x26f7dd['visible']||this[_0x4f0efa(0x273)](_0x26f7dd))&&(this[_0x4f0efa(0x3b4)](),this[_0x4f0efa(0x314)][_0x4f0efa(0x339)](_0x26f7dd),(_0x26f7dd==null||_0x26f7dd[_0x4f0efa(0x298)]&&this[_0x4f0efa(0x338)][_0x4f0efa(0x365)]())&&this[_0x4f0efa(0x338)][_0x4f0efa(0x339)](!0x1));}[_0x33b4ed(0x3fc)](_0x511661){const _0x5305fd=_0x33b4ed;this[_0x5305fd(0x338)][_0x5305fd(0x339)](_0x511661);}['getEditing'](){const _0x433f44=_0x33b4ed;return this['_editingParams$'][_0x433f44(0x365)]();}[_0x33b4ed(0x273)](_0x3f4cf5){const _0x27a59f=_0x33b4ed;let _0x118942=this[_0x27a59f(0x331)]['getUnit'](_0x3f4cf5['unitId'],_0x248b26[_0x27a59f(0x1bd)]);if(!_0x118942)return!0x0;let _0x40d6fc=_0x1142fd(_0x118942,_0x3f4cf5['shapeId']);return _0x1e4951(this['_permissionService'],_0x3f4cf5[_0x27a59f(0x1c7)],[..._0x2e9cb2(_0x118942,_0x40d6fc,_0x27a59f(0x26d),_0x3f4cf5[_0x27a59f(0x402)]),_0x365faa(_0x40d6fc,_0x27a59f(0x26d),_0x3f4cf5[_0x27a59f(0x402)])]);}['completeEditing'](_0x492e12){const _0xd265c7=_0x33b4ed;let _0x12de4d=this['getEditing']();_0x12de4d&&this[_0xd265c7(0x1ca)]===void 0x0&&(this['setOnSavingEditorData'](!0x0),this[_0xd265c7(0x1ca)]=requestAnimationFrame(()=>{const _0x195334=_0xd265c7;this[_0x195334(0x1ca)]=void 0x0,this[_0x195334(0x24a)]()===_0x12de4d&&this[_0x195334(0x281)](null);}));}[_0x33b4ed(0x3b4)](){const _0x5ed5a1=_0x33b4ed;this[_0x5ed5a1(0x1ca)]!==void 0x0&&(cancelAnimationFrame(this[_0x5ed5a1(0x1ca)]),this[_0x5ed5a1(0x1ca)]=void 0x0);}[_0x33b4ed(0x31b)](){const _0x33459b=_0x33b4ed;this[_0x33459b(0x24a)]()&&this[_0x33459b(0x281)](null);}};Q=q([K(0x0,_0x371e1a),K(0x1,_0x1e69fb)],Q);function Ji(_0x1ecb23){const _0x523699=_0x33b4ed;return _0x1ecb23[_0x523699(0x2e4)]===!0x0||_0x1ecb23[_0x523699(0x2e4)]===_0x51c9cc[_0x523699(0x424)]||_0x1ecb23[_0x523699(0x3f3)]===_0x2cd4cd[_0x523699(0x2f0)]&&_0x1ecb23['behindDoc']===_0x51c9cc[_0x523699(0x424)]?_0x33fcfd-0x1:_0xbe605e;}let $=class extends _0x256e8f{constructor(_0x49314a,_0xc41af3,_0xbf468,_0x40e955,_0x2b1e37,_0x5d9b4a,_0x50bc0d){const _0x4b4abb=_0x33b4ed;super(),this[_0x4b4abb(0x356)]=_0x49314a,this['_docsShapeService']=_0xc41af3,this[_0x4b4abb(0x308)]=_0xbf468,this[_0x4b4abb(0x305)]=_0x40e955,this[_0x4b4abb(0x32b)]=_0x2b1e37,this[_0x4b4abb(0x3c8)]=_0x5d9b4a,this[_0x4b4abb(0x315)]=_0x50bc0d,X(this,_0x4b4abb(0x2cf),new Map()),this['disposeWithMe'](this[_0x4b4abb(0x315)][_0x4b4abb(0x34b)][_0x4b4abb(0x364)](_0x141595=>{const _0x3a70c6=_0x4b4abb;var _0x238dad;(_0x238dad=this[_0x3a70c6(0x2cf)][_0x3a70c6(0x3d8)](this[_0x3a70c6(0x2fe)](_0x141595[_0x3a70c6(0x1c7)],_0x141595[_0x3a70c6(0x1c6)],_0x141595[_0x3a70c6(0x402)])))==null||_0x238dad['forEach'](_0x1802db=>_0x1802db[_0x3a70c6(0x306)](_0x141595[_0x3a70c6(0x3ce)],_0x141595[_0x3a70c6(0x423)]));})),this[_0x4b4abb(0x39a)](this[_0x4b4abb(0x356)][_0x4b4abb(0x1df)][_0x4b4abb(0x364)](_0x3aa2ad=>{const _0x2cb1c0=_0x4b4abb;_0x3aa2ad[_0x2cb1c0(0x27a)](_0x521380=>{const _0x113801=_0x2cb1c0;this[_0x113801(0x315)][_0x113801(0x3a0)]({'unitId':_0x521380[_0x113801(0x1c7)],'subUnitId':_0x521380[_0x113801(0x1c6)],'shapeId':_0x521380[_0x113801(0x310)]}),this[_0x113801(0x2cf)]['delete'](this['_formulaKey'](_0x521380[_0x113801(0x1c7)],_0x521380[_0x113801(0x1c6)],_0x521380['drawingId']));});}));}[_0x33b4ed(0x31a)](_0x2af9f6,_0x10c4dd){const _0x4e2b0e=_0x33b4ed;let {transform:_0x33038f,drawingType:_0x557f19,srcRect:_0x559eaa,prstGeom:_0x3d3119,groupId:_0x4450eb,unitId:_0x2f2c27,subUnitId:_0x1b3257,drawingId:_0xb093c5,isMultiTransform:_0x2debd4,transforms:_0x254e5c,hidden:_0x1b9173,selectable:_0xfd3233}=_0x2af9f6;if(_0x557f19!==_0x197ccb[_0x4e2b0e(0x374)]||!this[_0x4e2b0e(0x356)]['getDrawingVisible']()||_0x33038f==null)return;let _0x1df353=this[_0x4e2b0e(0x356)]['getDrawingEditable'](),_0x48ffd7=_0x2debd4&&_0x254e5c?_0x254e5c:[_0x33038f],_0x233b69=[];for(let [_0x38a25e,_0x53f055]of _0x48ffd7[_0x4e2b0e(0x300)]()){let {left:_0x1fda87,top:_0x221051,width:_0xde76be,height:_0x4c9c82,angle:_0x5ea645,flipX:_0x5f20ec,flipY:_0x3e8ff8,skewX:_0x3ec50f,skewY:_0x559c66}=_0x53f055,_0x36348d=_0x2d5511({'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'drawingId':_0xb093c5},_0x2debd4?_0x38a25e:void 0x0),_0x1ed1df=_0x10c4dd['getObjectIncludeInGroup'](_0x36348d);if(_0x1ed1df!=null){let _0x5e40b9={'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5};_0x1ed1df instanceof Z&&this[_0x4e2b0e(0x361)](_0x1ed1df,_0x5e40b9),_0x1ed1df[_0x4e2b0e(0x28e)]({'left':_0x1fda87,'top':_0x221051,'width':_0xde76be,'height':_0x4c9c82,'angle':_0x5ea645,'flipX':_0x5f20ec,'flipY':_0x3e8ff8,'skewX':_0x3ec50f,'skewY':_0x559c66});continue;}let _0x11432b=this['_drawingManagerService'][_0x4e2b0e(0x2e6)](_0x2f2c27,_0x1b3257),_0x2fafea=_0x11432b[_0x4e2b0e(0x3c0)](_0xb093c5);if(_0x10c4dd[_0x4e2b0e(0x37c)](_0x36348d)||!this[_0x4e2b0e(0x356)][_0x4e2b0e(0x1f0)]())continue;let _0x4c117e=this['_docsShapeService'][_0x4e2b0e(0x36f)](_0x2f2c27,_0x1b3257,_0xb093c5);if(!_0x4c117e)continue;let _0x1d5025=_0x394312(_0x4c117e['getShapeType']())?{..._0xd0974d,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xd0974d,_0x5c5a06=_0x4c117e['getShapeData']()[_0x4e2b0e(0x1ea)],_0x39a668={'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5};_0x5c5a06&&this['_shapeFormulaService'][_0x4e2b0e(0x1da)](_0x39a668,_0x5c5a06);let _0x2bd336=new Z(_0x36348d,{..._0x53f055,'zIndex':_0x2fafea===-0x1?_0x11432b['length']-0x1:_0x2fafea,'shapeModel':_0x4c117e,'localeService':this[_0x4e2b0e(0x308)],'shapeId':_0xb093c5,'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'visible':_0x1b9173!==!0x0,'evented':_0xfd3233!==!0x1,'formulaPresentation':_0x5c5a06?this[_0x4e2b0e(0x315)]['getPresentation'](_0x39a668):void 0x0,'animateFormulaPresentation':(_0x5c5a06==null?void 0x0:_0x5c5a06[_0x4e2b0e(0x423)])!==!0x1,'transformerConfig':_0x1d5025});if(_0x5c5a06){let _0x595404=this[_0x4e2b0e(0x2fe)](_0x2f2c27,_0x1b3257,_0xb093c5),_0x1f8421=this[_0x4e2b0e(0x2cf)][_0x4e2b0e(0x3d8)](_0x595404)??new Set();_0x1f8421[_0x4e2b0e(0x205)](_0x2bd336),this[_0x4e2b0e(0x2cf)]['set'](_0x595404,_0x1f8421);}this[_0x4e2b0e(0x39a)](_0x519bb5(_0x2bd336[_0x4e2b0e(0x422)][_0x4e2b0e(0x2b5)]((_0x2d587c,_0x1568f3)=>{const _0x389a64=_0x4e2b0e;_0x4c117e['isLineShape']()||_0x5c5a06||(this[_0x389a64(0x3c8)][_0x389a64(0x281)]({'visible':!0x0,'unitId':_0x2f2c27,'subUnitId':_0x1b3257,'shapeId':_0xb093c5,'shapeKey':_0x2bd336[_0x389a64(0x1cf)]}),_0x1568f3[_0x389a64(0x350)]());}))),_0x10c4dd['addObject'](_0x2bd336,Ji(_0x2af9f6)),_0x1df353&&_0x10c4dd[_0x4e2b0e(0x304)](_0x2bd336),_0x4450eb&&_0x2a4d00({'drawingId':_0x4450eb,'unitId':_0x2f2c27,'subUnitId':_0x1b3257},_0x2bd336,_0x10c4dd,this[_0x4e2b0e(0x356)],_0x2debd4?_0x38a25e:void 0x0),_0x3d3119!=null&&_0x2bd336[_0x4e2b0e(0x3cf)](_0x3d3119),_0x559eaa!=null&&_0x2bd336[_0x4e2b0e(0x34d)](_0x559eaa),this['_loadShapePictureFill'](_0x2bd336,_0x4c117e[_0x4e2b0e(0x244)]()),_0x233b69[_0x4e2b0e(0x3db)](_0x2bd336);}return _0x233b69;}[_0x33b4ed(0x2fe)](_0x300f5e,_0x541dfa,_0x3de373){return _0x300f5e+'\x00'+_0x541dfa+'\x00'+_0x3de373;}[_0x33b4ed(0x361)](_0x17060d,_0x47cef2){const _0x415835=_0x33b4ed;let _0xaa75d3=this[_0x415835(0x1be)][_0x415835(0x36f)](_0x47cef2[_0x415835(0x1c7)],_0x47cef2[_0x415835(0x1c6)],_0x47cef2[_0x415835(0x402)]),_0x3972ff=_0xaa75d3==null?void 0x0:_0xaa75d3[_0x415835(0x244)]()[_0x415835(0x1ea)],_0x40a10f=this[_0x415835(0x2fe)](_0x47cef2['unitId'],_0x47cef2[_0x415835(0x1c6)],_0x47cef2[_0x415835(0x402)]);if(_0x3972ff){this[_0x415835(0x315)][_0x415835(0x1da)](_0x47cef2,_0x3972ff);let _0x22306f=this[_0x415835(0x2cf)][_0x415835(0x3d8)](_0x40a10f)??new Set();_0x22306f[_0x415835(0x205)](_0x17060d),this[_0x415835(0x2cf)]['set'](_0x40a10f,_0x22306f);}else{var _0x2151ff;this['_shapeFormulaService']['unregister'](_0x47cef2),(_0x2151ff=this[_0x415835(0x2cf)][_0x415835(0x3d8)](_0x40a10f))==null||_0x2151ff[_0x415835(0x3c4)](_0x17060d);}_0x17060d[_0x415835(0x306)](_0x3972ff?this[_0x415835(0x315)][_0x415835(0x2ab)](_0x47cef2):void 0x0,(_0x3972ff==null?void 0x0:_0x3972ff[_0x415835(0x423)])!==!0x1);}[_0x33b4ed(0x354)](_0x380d42){const _0xf23b33=_0x33b4ed;let _0x2ec5ad=_0x380d42['shapeModel']['getShapeData'](),_0x3c2301=_0x2ec5ad[_0xf23b33(0x2a4)];!_0x3c2301||_0x3c2301[_0xf23b33(0x21d)]!==_0x663a07[_0xf23b33(0x215)]||!_0x3c2301[_0xf23b33(0x2bb)]?_0x380d42[_0xf23b33(0x33c)](void 0x0):this[_0xf23b33(0x2e7)](_0x380d42,_0x2ec5ad);}[_0x33b4ed(0x2e7)](_0x3f2d01,_0x5126fa){const _0xf2fcdd=_0x33b4ed;let _0x37721e=_0x5126fa[_0xf2fcdd(0x2a4)];if(!_0x37721e||_0x37721e['fillType']!==_0x663a07[_0xf2fcdd(0x215)]||!_0x37721e[_0xf2fcdd(0x2bb)])return;let _0x2c46b3=_0x37721e[_0xf2fcdd(0x2bb)],_0x2271b3=_0x37721e[_0xf2fcdd(0x269)]??_0x336c0b['URL'],_0x138080=this[_0xf2fcdd(0x305)][_0xf2fcdd(0x406)](_0x2c46b3,_0x2271b3);_0x138080?_0x3f2d01[_0xf2fcdd(0x33c)](_0x138080):this[_0xf2fcdd(0x3e6)](_0x3f2d01,_0x2c46b3,_0x2271b3);}async[_0x33b4ed(0x3e6)](_0xe0f52f,_0x34c33b,_0x244077){const _0x4aace7=_0x33b4ed;let _0x4d2215;try{if(_0x244077===_0x336c0b['UUID'])_0x4d2215=await this['_imageIoService'][_0x4aace7(0x342)](_0x34c33b);else{if(_0x244077===_0x336c0b[_0x4aace7(0x3be)])try{_0x4d2215=await this['_urlImageService']['getImage'](_0x34c33b);}catch{_0x4d2215=_0x34c33b;}else _0x4d2215=_0x34c33b;}}catch(_0x5ebdbf){console[_0x4aace7(0x39d)](_0x4aace7(0x3bc),_0x5ebdbf);return;}let _0x414def=new window[(_0x4aace7(0x37b))]();_0x414def['onload']=()=>{this['_imageIoService']['addImageSourceCache'](_0x34c33b,_0x244077,_0x414def),_0xe0f52f['setFillImage'](_0x414def);},_0x414def['onerror']=()=>{const _0x472eca=_0x4aace7;console[_0x472eca(0x39d)](_0x472eca(0x3a5),_0x34c33b);},_0x414def['src']=_0x4d2215;}};$=q([K(0x0,_0x8501d),K(0x1,_0x179bf2(_0x2b6cfd)),K(0x2,_0x179bf2(_0x5a1674)),K(0x3,_0xadc7af),K(0x4,_0x2f2fe2),K(0x5,_0x179bf2(Q)),K(0x6,_0x179bf2(_0x28fd23))],$);let Yi=class extends _0x256e8f{constructor(_0xa78732,_0x88d158,_0x8ef0fe){const _0x22c1b1=_0x33b4ed;super(),this[_0x22c1b1(0x41b)]=_0xa78732,this['_drawingManagerService']=_0x88d158,this[_0x22c1b1(0x332)]=_0x8ef0fe,this[_0x22c1b1(0x427)]();}[_0x33b4ed(0x427)](){const _0xfc9039=_0x33b4ed;this[_0xfc9039(0x39a)](this[_0xfc9039(0x41b)][_0xfc9039(0x36b)][_0xfc9039(0x1e6)](this[_0xfc9039(0x41b)][_0xfc9039(0x36b)][_0xfc9039(0x23e)]()[_0xfc9039(0x1ff)],{'handler':(_0x1edd8f,_0x3c1dcb,_0x477ca0)=>{const _0x563ddd=_0xfc9039;var _0x11d2dd;let {unitId:_0xe813f3,scene:_0x2fea82,skeleton:_0xbf599b}=_0x3c1dcb,{pageIndex:_0x3e03e2}=_0x3c1dcb,_0x426012=(_0x11d2dd=this['_drawingManagerService'][_0x563ddd(0x27c)](_0xe813f3))==null?void 0x0:_0x11d2dd[_0xe813f3],_0xb7eab0=Xi(this[_0x563ddd(0x41b)],_0xbf599b,_0x3e03e2);return _0x426012==null||_0x426012['order'][_0x563ddd(0x27a)](_0x1b2031=>{const _0x4346c7=_0x563ddd;if(_0xb7eab0&&!_0xb7eab0[_0x4346c7(0x3a2)](_0x1b2031))return;let _0x5ea1ec=_0x426012[_0x4346c7(0x2ce)][_0x1b2031];_0x5ea1ec[_0x4346c7(0x221)]===_0x197ccb[_0x4346c7(0x374)]&&!_0x5ea1ec[_0x4346c7(0x3a3)]&&this[_0x4346c7(0x332)][_0x4346c7(0x31a)](_0x5ea1ec,_0x2fea82);}),_0x477ca0(_0x1edd8f);}}));}};Yi=q([K(0x0,_0x179bf2(_0x592c88)),K(0x1,_0x8501d),K(0x2,_0x179bf2($))],Yi);function Xi(_0x2d15f8,_0x18ab24,_0x19889e){const _0x4a6e7a=_0x33b4ed;var _0x4f4168,_0xd6d07;let _0x40033e=_0x2d15f8;if(_0x40033e[_0x4a6e7a(0x1f9)])return _0x40033e[_0x4a6e7a(0x1f9)](_0x18ab24,_0x19889e);let _0x352fe0=_0x18ab24['getSkeletonData']();if(!_0x352fe0||_0x352fe0[_0x4a6e7a(0x275)][_0x4a6e7a(0x348)]<=0x1||_0x19889e==null)return null;let _0x55fe76=new Set(),_0x31c5be=_0x352fe0[_0x4a6e7a(0x275)][_0x19889e];if(!_0x31c5be)return _0x55fe76;Zi(_0x31c5be,_0x55fe76);let _0x33876e=(_0x4f4168=_0x352fe0[_0x4a6e7a(0x26a)]['get'](_0x31c5be[_0x4a6e7a(0x1fd)]))==null?void 0x0:_0x4f4168['get'](_0x31c5be['headerLayoutKey']??_0x31c5be[_0x4a6e7a(0x1cd)]),_0x7ca6d0=(_0xd6d07=_0x352fe0['skeFooters'][_0x4a6e7a(0x3d8)](_0x31c5be[_0x4a6e7a(0x1fa)]))==null?void 0x0:_0xd6d07[_0x4a6e7a(0x3d8)](_0x31c5be['footerLayoutKey']??_0x31c5be[_0x4a6e7a(0x1cd)]);return _0x33876e&&Zi(_0x33876e,_0x55fe76),_0x7ca6d0&&Zi(_0x7ca6d0,_0x55fe76),_0x55fe76;}function Zi(_0xdac164,_0x132104){const _0x43aa10=_0x33b4ed;for(let _0x4ecd03 of _0xdac164['skeDrawings']['keys']())_0x132104[_0x43aa10(0x205)](_0x4ecd03);for(let _0x58b8e9 of _0xdac164[_0x43aa10(0x3e0)][_0x43aa10(0x1f2)]())for(let _0x5c5ad7 of _0x58b8e9[_0x43aa10(0x21e)])for(let _0xa76e4b of _0x5c5ad7['cells'])Zi(_0xa76e4b,_0x132104);}function Qi(_0x511fde){return _0x204a1f(Ur,{..._0x511fde,'PickerComponent':_0x45ec05});}function $i(){const _0x4279f6=_0x33b4ed;let _0xec3694=_0x4f0443(_0x5a1674),_0x36223a=Br(),[_0x16d51c,_0x17e417]=_0x5ed182(!0x1);return _0x5c5a38('div',{'className':_0x4279f6(0x23d),'children':[_0x204a1f(_0x1f7a84,{'title':_0xec3694['t'](_0x4279f6(0x1ec)),'aria-expanded':_0x16d51c,'variant':_0x4279f6(0x24f),'trailing':_0x204a1f(_0x16d51c?_0x278e80:_0x27a17d,{}),'onClick':()=>_0x17e417(_0x2ce9b6=>!_0x2ce9b6)}),_0x16d51c&&_0x204a1f(_0x45ec05,{'excludeGroups':[_0x18936a[_0x4279f6(0x372)]],'onShapeClick':_0x18aa21=>{_0x36223a(_0x18aa21),_0x17e417(!0x1);}})]});}function ea(_0x1331a1){const _0x511364=_0x33b4ed;return _0x1331a1[_0x511364(0x257)]()||void 0x0;}function ta(_0x4edadc,_0x29b14b,_0x876b79){const _0x2d74eb=_0x33b4ed;var _0x4b8722,_0x397fdf;return((_0x4b8722=_0x4edadc[_0x2d74eb(0x2dd)])==null?void 0x0:_0x4b8722[_0x2d74eb(0x257)]())||((_0x397fdf=_0x4edadc[_0x2d74eb(0x3bf)])==null?void 0x0:_0x397fdf[_0x2d74eb(0x257)]())||_0x876b79['t'](_0x2d74eb(0x250)+_0x23090a(_0x4edadc[_0x2d74eb(0x221)]))+'\x20'+(_0x29b14b+0x1);}function na({PanelComponent:_0x30c140=_0x17f792}){const _0x3a8761=_0x33b4ed;let _0x45e81f=_0x4f0443(_0x5a1674),_0x519305={'title':_0x45e81f['t']('drawing-ui.objectListPanel.title'),'empty':_0x45e81f['t'](_0x3a8761(0x247)),'showAll':_0x45e81f['t'](_0x3a8761(0x387)),'hideAll':_0x45e81f['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x45e81f['t'](_0x3a8761(0x3e2)),'unlockAll':_0x45e81f['t'](_0x3a8761(0x3f6)),'moveForward':_0x45e81f['t'](_0x3a8761(0x2b6)),'moveBackward':_0x45e81f['t'](_0x3a8761(0x3af)),'close':_0x45e81f['t']('drawing-ui.objectListPanel.close'),'show':_0x45e81f['t'](_0x3a8761(0x380)),'hide':_0x45e81f['t'](_0x3a8761(0x3b8)),'lock':_0x45e81f['t'](_0x3a8761(0x260)),'unlock':_0x45e81f['t'](_0x3a8761(0x22f)),'lockHint':_0x45e81f['t'](_0x3a8761(0x204)),'unlockHint':_0x45e81f['t'](_0x3a8761(0x3ad)),'name':_0x45e81f['t'](_0x3a8761(0x2f8)),'nameInput':_0x45e81f['t'](_0x3a8761(0x37d)),'description':_0x45e81f['t'](_0x3a8761(0x259)),'descriptionPlaceholder':_0x45e81f['t'](_0x3a8761(0x415)),'details':_0x45e81f['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x45e81f['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x45e81f['t'](_0x3a8761(0x37f)),'expand':_0x45e81f['t'](_0x3a8761(0x425)),'collapse':_0x45e81f['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x45e81f['t'](_0x3a8761(0x2ed)),'search':_0x45e81f['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x45e81f['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x45e81f['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x45e81f['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x45e81f['t'](_0x3a8761(0x3ff)),'sectionFloating':_0x45e81f['t'](_0x3a8761(0x32d))},_0x3bc176=_0x4f0443(_0x2474c3),_0x565e5f=_0x4f0443(_0x1e69fb),_0x1c6af1=_0x4f0443(_0x314cd0),_0x2fa9e9=_0x4f0443(_0x8501d),_0x4387c9=_0x4f0443(_0x456b85),[,_0x59c5a7]=_0x55cb68(_0x54f429=>_0x54f429+0x1,0x0),_0x360c21=_0x565e5f[_0x3a8761(0x242)](_0x248b26[_0x3a8761(0x1bd)]),_0x5c364b=(_0x360c21==null?void 0x0:_0x360c21['getUnitId']())??'',_0x5b9a02=_0x5c364b,_0x375ac0=_0x182392(()=>_0x2fa9e9[_0x3a8761(0x1d8)],_0x2fa9e9[_0x3a8761(0x26c)](),!0x1,[_0x2fa9e9]);_0x335468(()=>{const _0x223a64=_0x3a8761;let _0x312fba=_0x3bc176['onCommandExecuted'](()=>_0x59c5a7());return()=>_0x312fba[_0x223a64(0x2e5)]();},[_0x3bc176]);let _0x1c4352=_0x5c364b?_0x1c6af1[_0x3a8761(0x3a4)](_0x5c364b,_0x5b9a02):{},_0x346df9=(_0x5c364b?_0x1c6af1[_0x3a8761(0x2e6)](_0x5c364b,_0x5b9a02):[])[_0x3a8761(0x41d)](_0x163248=>_0x1c4352[_0x163248])['filter'](_0x38cde2=>!!_0x38cde2)[_0x3a8761(0x2fa)](),_0x448519=_0x346df9[_0x3a8761(0x2c9)]((_0x54d358,_0x3f2dd6)=>(_0x54d358[_0xa06520(_0x3f2dd6['drawingType'])]+=0x1,_0x54d358),{'canvas':0x0,'floating':0x0}),_0xae6a9b={'canvas':0x0,'floating':0x0},_0x50dbfb=_0x346df9[_0x3a8761(0x41d)]((_0xc12d39,_0x3ae7c4)=>{const _0x584c78=_0x3a8761;let _0x599d4c=_0xa06520(_0xc12d39[_0x584c78(0x221)]),_0x5568e1=_0x599d4c===_0x6b425e,_0x63173=_0xae6a9b[_0x599d4c]++;return{'id':_0xc12d39['drawingId'],'name':ta(_0xc12d39,_0x3ae7c4,_0x45e81f),'description':_0xc12d39[_0x584c78(0x229)],'visible':_0xc12d39[_0x584c78(0x3a3)]!==!0x0,'selectable':_0xc12d39[_0x584c78(0x3e4)]!==!0x1,'sectionId':_0x599d4c,'sectionTitle':_0x5568e1?_0x519305[_0x584c78(0x251)]:_0x519305[_0x584c78(0x25b)],'capabilities':_0x5568e1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x5568e1&&_0x63173>0x0,'canMoveBackward':!_0x5568e1&&_0x63173<_0x448519[_0x584c78(0x2c0)]-0x1,'canReorder':!_0x5568e1};}),_0x1c9bdb=_0x536a10(()=>(_0x375ac0??[])[_0x3a8761(0x319)](_0x17f924=>_0x17f924[_0x3a8761(0x1c7)]===_0x5c364b&&_0x17f924[_0x3a8761(0x1c6)]===_0x5b9a02)['map'](_0x273ea0=>_0x273ea0[_0x3a8761(0x310)]),[_0x375ac0,_0x5b9a02,_0x5c364b]),_0x17ee10=_0x1c9bdb[_0x1c9bdb['length']-0x1]??null,_0x21db5d=_0xbee96f=>_0x1c6af1[_0x3a8761(0x268)]({'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0xbee96f})??null,_0x23dec9=async _0x2e98b8=>{const _0x17581e=_0x3a8761;_0x5c364b&&_0x2e98b8[_0x17581e(0x348)]&&await _0x3bc176['executeCommand'](_0x7a9285['id'],{'unitId':_0x5c364b,'patches':_0x2e98b8});},_0x4bc335=(_0x598d38,_0x17896c)=>{const _0x150e86=_0x3a8761;if(!_0x5c364b)return;let _0x10053b=_0x17896c?_0x1c9bdb[_0x150e86(0x296)](_0x598d38)?_0x1c9bdb[_0x150e86(0x319)](_0x240266=>_0x240266!==_0x598d38):[..._0x1c9bdb,_0x598d38]:[_0x598d38];_0x3bc176['syncExecuteCommand'](_0x4974f9['id'],_0x10053b['map'](_0xb89ba6=>({'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0xb89ba6})));let _0x357cc2=_0x10053b[_0x10053b['length']-0x1];_0x357cc2?_0x1968c3(_0x4387c9,{'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingId':_0x357cc2}):_0x2e5f7a(_0x4387c9,_0x5c364b);},_0x320544=async(_0x161aaf,_0x2be181)=>{const _0x5bfbe0=_0x3a8761;await _0x23dec9(_0x161aaf[_0x5bfbe0(0x41d)](_0x3d6dcd=>_0x21db5d(_0x3d6dcd))[_0x5bfbe0(0x319)](_0x59ceca=>!!_0x59ceca)[_0x5bfbe0(0x319)](_0x3ce565=>_0x3ce565['hidden']!==!0x0!==_0x2be181)[_0x5bfbe0(0x41d)](_0x5cd83c=>({'drawingId':_0x5cd83c['drawingId'],'hidden':!_0x2be181})));},_0x3bfc05=async(_0x4d0bf6,_0x1975b4)=>{const _0x9aab12=_0x3a8761;await _0x23dec9(_0x4d0bf6[_0x9aab12(0x41d)](_0x10a12a=>_0x21db5d(_0x10a12a))[_0x9aab12(0x319)](_0x28967e=>!!_0x28967e)[_0x9aab12(0x319)](_0x2e4fdb=>_0x2e4fdb[_0x9aab12(0x3e4)]!==!0x1!==_0x1975b4)['map'](_0x40561a=>({'drawingId':_0x40561a[_0x9aab12(0x310)],'selectable':_0x1975b4})));},_0x360f58=_0x299df5=>{const _0x612516=_0x3a8761;let _0x390d3d=_0x21db5d(_0x299df5);if(_0x390d3d)return _0x3bfc05([_0x299df5],_0x390d3d[_0x612516(0x3e4)]===!0x1);},_0x13c372=async(_0x4da097,_0x1c13c3)=>{const _0x248de6=_0x3a8761;let _0x12469d=_0x21db5d(_0x4da097),_0x377b96=ea(_0x1c13c3);!_0x12469d||(_0x12469d[_0x248de6(0x2dd)]??void 0x0)===_0x377b96&&(_0x12469d[_0x248de6(0x3bf)]||void 0x0)===_0x377b96||await _0x23dec9([{'drawingId':_0x4da097,'name':_0x377b96,'title':_0x377b96}]);},_0xf44063=async(_0x1349a7,_0x3fa21f)=>{let _0x5d6c05=_0x21db5d(_0x1349a7),_0x355d5b=ea(_0x3fa21f);_0x5d6c05&&(_0x5d6c05['description']??void 0x0)!==_0x355d5b&&await _0x23dec9([{'drawingId':_0x1349a7,'description':_0x355d5b}]);},_0x379849=async(_0x37014c,_0x436983)=>{const _0x50c2c0=_0x3a8761;_0x5c364b&&await _0x3bc176[_0x50c2c0(0x39c)](_0x207919['id'],{'unitId':_0x5c364b,'subUnitId':_0x5b9a02,'drawingIds':[_0x37014c],'arrangeType':_0x436983});};return _0x5c364b?_0x204a1f(_0x30c140,{'labels':_0x519305,'renderPermissionAction':_0x540f63=>_0x360c21?_0x204a1f(_0x5ec452,{'target':{'unitId':_0x5c364b,'objectId':_0x365faa(_0x1142fd(_0x360c21,_0x540f63['id']),_0x3a8761(0x26d),_0x540f63['id']),'objectType':_0xfcd145['DocumentEntity']},'name':_0x540f63['name'],'commandId':_0x272850['id'],'exists':()=>!!_0x21db5d(_0x540f63['id'])},_0x5c364b+'/'+_0x540f63['id']):null,'items':_0x50dbfb,'selectedIds':_0x1c9bdb,'focusedId':_0x17ee10,'showHeader':!0x1,'onSelect':_0x4bc335,'onSetVisible':_0x320544,'onSetSelectable':_0x3bfc05,'onCommitName':_0x13c372,'onCommitDescription':_0xf44063,'onMoveForward':async _0x56781f=>_0x379849(_0x56781f,_0x2adc43[_0x3a8761(0x345)]),'onMoveBackward':async _0xe986c3=>_0x379849(_0xe986c3,_0x2adc43[_0x3a8761(0x2fd)]),'onToggleSelectable':_0x360f58}):_0x204a1f(_0x3a8761(0x384),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x519305[_0x3a8761(0x3bf)]});}function ra(){return _0x204a1f(na,{'PanelComponent':_0x54d238});}let ia=class{constructor(_0xa8119d){const _0x5f0cfc=_0x33b4ed;this[_0x5f0cfc(0x414)]=_0xa8119d;}[_0x33b4ed(0x1f3)](_0x2c95b4,_0x583957){const _0x5214e1=_0x33b4ed;let _0x320279=this[_0x5214e1(0x414)][_0x5214e1(0x359)](_0x2c95b4[_0x5214e1(0x1c7)]),_0x5a0a38=_0x320279==null?void 0x0:_0x320279[_0x5214e1(0x2e9)];if(!_0x5a0a38)return;let _0x3aba2e=_0x2d5511(_0x2c95b4),_0x205984=_0x5a0a38[_0x5214e1(0x37c)](_0x3aba2e);_0x205984==null||_0x205984['setFillImage'](_0x583957);}};ia=q([K(0x0,_0x456b85)],ia);function aa(){const _0x21d62b=_0x33b4ed;let _0xd7b1e2=_0x4f0443(_0x8501d),_0x119054=_0x182392(()=>_0xd7b1e2['focus$'],_0xd7b1e2[_0x21d62b(0x26c)](),!0x1,[_0xd7b1e2]);return _0x119054[_0x21d62b(0x348)]===0x0?null:_0x204a1f(_0x21d62b(0x384),{'children':_0x5c5a38(_0x21d62b(0x384),{'className':_0x21d62b(0x3cb),'children':[_0x204a1f(_0x5f290d,{'drawings':_0x119054,'hasCropper':!0x1}),_0x204a1f(_0x50fdaf,{'drawings':_0x119054}),_0x204a1f(_0x3da229,{'drawings':_0x119054})]})});}function oa(_0x4eaffd){let {unitId:_0x5803ac,subUnitId:_0x35c150,shapeId:_0x167b3c,PositionComponent:_0x419576=aa}=_0x4eaffd,_0x5a01bf=_0x4f0443(_0x2474c3),_0x4fa12c=_0x4f0443(ia);return _0x204a1f(_0x46d3f3,{..._0x4eaffd,'positionEditor':_0x204a1f(_0x419576,{}),'onUpdateShapeData':(_0x56098e,_0x168a68)=>{Yr(_0x5a01bf,_0x5803ac,_0x35c150,_0x167b3c,_0x56098e,_0x168a68);},'onUpdateLineShapeData':(_0x3d9568,_0x22dc37)=>{Xr(_0x5a01bf,_0x5803ac,_0x35c150,_0x167b3c,_0x3d9568,_0x22dc37);},'onUpdateShapeFillImage':_0x40a186=>{const _0x4f26af=_0x3935;_0x4fa12c[_0x4f26af(0x1f3)]({'unitId':_0x5803ac,'subUnitId':_0x35c150,'drawingId':_0x167b3c},_0x40a186);}});}function sa(){const _0x37da75=_0x33b4ed;let _0x343ae3=_0x4f0443(_0x8501d),_0x538899=_0x182392(_0x343ae3['focus$'],_0x343ae3['getFocusDrawings']());return _0x538899[_0x37da75(0x348)]===0x0?null:_0x5c5a38('div',{'className':_0x37da75(0x28b),'children':[_0x204a1f(_0x5f290d,{'drawings':_0x538899,'hasCropper':!0x1}),_0x204a1f(_0x100c92,{'drawings':_0x538899}),_0x204a1f(_0xe32e88,{'drawings':_0x538899})]});}function ca(_0x1fc75f){return _0x204a1f(_0x5c71dd,{'children':_0x204a1f(oa,{..._0x1fc75f,'PositionComponent':sa})});}function la({popup:_0x3f73fe}){const _0x33a417=_0x33b4ed;let _0x410569=_0x4f0443(_0x5a1674),{shapeType:_0x234fc9,onText:_0x495b37,onStyle:_0x30acd0,onDelete:_0x22b313}=_0x3f73fe[_0x33a417(0x3f4)],_0x1ca8f7=[{'key':_0x33a417(0x35c),'order':0x0,'item':{'id':_0x33a417(0x35c),'type':_0x7efdf3[_0x33a417(0x322)],'title':_0x410569['t'](_0x33a417(0x30e)),'disabled$':_0x336782(_0x394312(_0x234fc9))}},{'key':_0x33a417(0x301),'order':0x1,'item':{'id':'style','type':_0x7efdf3['BUTTON'],'title':_0x410569['t'](_0x33a417(0x3e9))}},{'key':_0x33a417(0x3c4),'order':0x2,'item':{'id':_0x33a417(0x3c4),'type':_0x7efdf3['BUTTON'],'title':_0x410569['t'](_0x33a417(0x428))}}];return _0x204a1f(_0x1e551c,{'schemas':_0x1ca8f7,'presentation':_0x33a417(0x209),'onOptionSelect':async({id:_0x93af73})=>{const _0x359ef7=_0x33a417;_0x93af73===_0x359ef7(0x35c)?await _0x495b37():_0x93af73===_0x359ef7(0x301)?await _0x30acd0():_0x93af73===_0x359ef7(0x3c4)&&await _0x22b313();}});}const ua=_0x33b4ed(0x2fb);function da(_0x10c278,_0x5103c0){const _0x36fd60=_0x33b4ed;var _0x5d5e89;let _0x4bca6d=_0x10c278==null||(_0x5d5e89=_0x10c278[_0x36fd60(0x213)]()[_0x36fd60(0x258)])==null?void 0x0:_0x5d5e89[_0x5103c0];return _0x4bca6d?_0x4bca6d['layoutType']===_0x2cd4cd['WRAP_NONE']?_0x4bca6d[_0x36fd60(0x33f)]===_0x51c9cc[_0x36fd60(0x424)]?_0x4a5267[_0x36fd60(0x1eb)]:_0x4a5267[_0x36fd60(0x1ce)]:_0x4bca6d[_0x36fd60(0x3f3)]===_0x2cd4cd[_0x36fd60(0x3fa)]?_0x4a5267[_0x36fd60(0x3fa)]:_0x4bca6d['layoutType']===_0x2cd4cd['WRAP_TOP_AND_BOTTOM']?_0x4a5267[_0x36fd60(0x388)]:_0x4a5267[_0x36fd60(0x1fc)]:_0x4a5267[_0x36fd60(0x1fc)];}function fa(_0x5024b2){const _0x18d6a6=_0x33b4ed;let _0x537d51=_0x4f0443(_0xafbc38),_0x39fe05=_0x182392(()=>_0x537d51[_0x18d6a6(0x2a9)],_0x537d51[_0x18d6a6(0x219)](),!0x1,[_0x537d51]),_0xba7fda=_0x5024b2[_0x18d6a6(0x2ec)][_0x18d6a6(0x3f4)];return _0x39fe05?_0x204a1f(pa,{..._0xba7fda,'canvasElement':_0x5024b2[_0x18d6a6(0x2ec)][_0x18d6a6(0x2b2)]}):null;}function pa(_0x5e52b6){const _0x2046cc=_0x33b4ed;let _0x48f519=_0x4f0443(_0x2474c3),_0x5a95ba=_0x4f0443(_0x5a1674),_0x3450ed=_0x4f0443(_0x2b6cfd),_0x5b250f=_0x4f0443(_0x1e69fb),{unitId:_0x10410a,subUnitId:_0xe1d718,drawingId:_0xffc913,shapeType:_0x5432bc}=_0x5e52b6,[_0x43d2a8,_0x5866ea]=_0x5ed182(_0x5e52b6['shapeData']),_0x315b87=_0x5b250f[_0x2046cc(0x3c5)](_0x10410a,_0x248b26[_0x2046cc(0x1bd)])??void 0x0,[_0x4bc231,_0x22fa62]=_0x5ed182(()=>da(_0x315b87,_0xffc913)),_0x2073ef=_0x536a10(()=>_0xea05c7(_0x43d2a8),[_0x43d2a8]),_0x3e4132=_0x536a10(()=>_0x565786(_0x43d2a8),[_0x43d2a8]);_0x335468(()=>{const _0x5da373=_0x2046cc;let _0x3bda53=_0x48f519[_0x5da373(0x2df)](_0x3eb7cf=>{const _0x2a08f5=_0x5da373;if(_0x3eb7cf['id']!==_0xee5b39['id'])return;let _0x429c2f=_0x3450ed[_0x2a08f5(0x1e0)](_0x10410a,_0xe1d718,_0xffc913);_0x429c2f&&_0x5866ea(_0x429c2f);});return()=>_0x3bda53[_0x5da373(0x2e5)]();},[_0x48f519,_0x3450ed,_0xffc913,_0xe1d718,_0x10410a]);let _0x58af00=_0x45e5c1=>{_0x5866ea(_0x5041bc=>({..._0x5041bc,..._0x45e5c1}));},_0x51cf1a=_0x48ac52=>{let _0x4a557b=_0x1f2428(_0x43d2a8,_0x48ac52);Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,{'oldShapeData':{'shapeText':_0x43d2a8['shapeText']}},_0x4a557b),_0x58af00(_0x4a557b);},_0x15535f=_0xf9df13=>{_0x22fa62(_0xf9df13),_0x48f519['executeCommand'](_0x5ef581['id'],{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawings':[{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913}],'wrappingStyle':_0xf9df13});},_0x23ccfe=_0x1abe68({'hostType':_0x248b26['UNIVER_DOC'],'unitId':_0x10410a,'subUnitId':_0xe1d718,'shapeId':_0xffc913,'shapeData':_0x43d2a8,'onUpdateBinding':_0x30318b=>{const _0x1c499c=_0x2046cc;let _0x21c1d6={'formulaBinding':_0x30318b};Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,{'oldShapeData':{'formulaBinding':_0x43d2a8[_0x1c499c(0x1ea)]}},_0x21c1d6),_0x58af00(_0x21c1d6);}}),_0x115464=[{'label':_0x5a95ba['t'](_0x2046cc(0x21b)),'value':_0x4a5267[_0x2046cc(0x1fc)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t']('docs-shape-ui.textWrap.square'),'value':_0x4a5267[_0x2046cc(0x3fa)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x232)),'value':_0x4a5267[_0x2046cc(0x388)],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x1de)),'value':_0x4a5267['BEHIND_TEXT'],'icon':_0x204a1f(_0x15512e,{})},{'label':_0x5a95ba['t'](_0x2046cc(0x3ed)),'value':_0x4a5267[_0x2046cc(0x1ce)],'icon':_0x204a1f(_0x15512e,{})}];return _0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x38e7bd,{'canvasElement':_0x5e52b6[_0x2046cc(0x2b2)],'shapeData':_0x43d2a8,'shapeType':_0x5432bc,'textStyle':{'ff':_0x45f006['shapeText']['fontFamily'],'fs':_0x45f006[_0x2046cc(0x22e)][_0x2046cc(0x1d3)],'cl':{'rgb':_0x45f006[_0x2046cc(0x22e)][_0x2046cc(0x2f6)]},..._0x2073ef},'textModel':_0x3e4132?{'ha':_0x3e4132['ha']??_0x163f8a['LEFT'],'va':_0x3e4132['va']??_0x9ed22a[_0x2046cc(0x419)]}:null,'wrappingStyle':_0x4bc231,'wrappingStyleOptions':_0x115464,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x45f006[_0x2046cc(0x2a4)],'defaultGradientEndColor':_0x45f006['gradientEndColor'],'defaultStrokeColor':_0x45f006[_0x2046cc(0x1dd)],'extensionGroups':_0x23ccfe['extensionGroups'],'floatingObjectToolbarPosition':_0x52cb5e['DOC'],'onUpdateShapeData':(_0x39ba95,_0x40fe08)=>{Yr(_0x48f519,_0x10410a,_0xe1d718,_0xffc913,_0x39ba95,_0x40fe08),_0x40fe08&&_0x58af00(_0x40fe08);},'onUpdateText':_0x51cf1a,'onUpdateWrappingStyle':_0x536399=>_0x15535f(_0x536399),'onOpenPanel':()=>{const _0x2d7555=_0x2046cc;_0x48f519[_0x2d7555(0x39c)](G['id'],{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913});},'onDelete':()=>{const _0x59647d=_0x2046cc;_0x48f519[_0x59647d(0x39c)](_0x3f45a7['id'],{'unitId':_0x10410a,'drawings':[{'unitId':_0x10410a,'subUnitId':_0xe1d718,'drawingId':_0xffc913}]});}}),_0x23ccfe[_0x2046cc(0x32c)]]});}function ma({variant:_0x47df01,extend:_0x373260,..._0x458b58}){const _0x3b33f9=_0x33b4ed;let _0x215f8f=_0x204a1f(_0x3b33f9(0x346),{'x':'7','y':_0x3b33f9(0x362),'width':'6','height':'9','rx':'1','fill':_0x3b33f9(0x41f),'fillOpacity':'0.14','stroke':'currentColor','strokeWidth':'1.2'});return _0x5c5a38(_0x3b33f9(0x335),{'aria-hidden':_0x3b33f9(0x397),'fill':_0x3b33f9(0x347),'height':'1em','viewBox':_0x3b33f9(0x334),'width':_0x3b33f9(0x235),..._0x458b58,'children':[_0x47df01===_0x3b33f9(0x292)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':_0x3b33f9(0x343),'stroke':'currentColor','strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x204a1f('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0x3b33f9(0x29a),'fill':_0x3b33f9(0x41f),'fillOpacity':_0x3b33f9(0x289),'stroke':_0x3b33f9(0x41f),'strokeWidth':_0x3b33f9(0x1e5)})]}),_0x47df01===_0x3b33f9(0x1c8)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':_0x3b33f9(0x3e3),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x3b33f9(0x1e5)}),_0x215f8f]}),_0x47df01===_0x3b33f9(0x1e7)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f('path',{'d':_0x3b33f9(0x222),'stroke':_0x3b33f9(0x41f),'strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x215f8f]}),_0x47df01===_0x3b33f9(0x330)&&_0x5c5a38(_0x74fc90,{'children':[_0x215f8f,_0x204a1f('path',{'d':_0x3b33f9(0x2d9),'stroke':_0x3b33f9(0x41f),'strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':'1.2'})]}),_0x47df01===_0x3b33f9(0x28d)&&_0x5c5a38(_0x74fc90,{'children':[_0x204a1f(_0x3b33f9(0x367),{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':'currentColor','strokeLinecap':_0x3b33f9(0x38f),'strokeWidth':_0x3b33f9(0x1e5)}),_0x204a1f('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x3b33f9(0x41f)})]})]});}const ha=_0x2eb4d8=>_0x3d8ab8=>_0x204a1f(ma,{..._0x3d8ab8,'variant':_0x2eb4d8}),ga={'DocsShapeWrapInlineIcon':ha('inline'),'DocsShapeWrapSquareIcon':ha(_0x33b4ed(0x1c8)),'DocsShapeWrapTopBottomIcon':ha(_0x33b4ed(0x1e7)),'DocsShapeWrapBehindTextIcon':ha(_0x33b4ed(0x330)),'DocsShapeWrapInFrontOfTextIcon':ha(_0x33b4ed(0x28d))},_a=_0x20bf0f(()=>{const _0x5dc05f=_0x33b4ed;let _0x253d68=_0x4f0443(Q),_0x33009d=_0x4f0443(_0x2b6cfd),_0x3fcf80=_0x4f0443(_0x8501d),_0x4c1ca9=_0x4f0443(_0x2474c3),_0x5d1e6a=_0x536a10(()=>({'getShapeModel':(_0x38018f,_0xe6dbe1,_0x14b0e1)=>_0x33009d[_0x5dc05f(0x36f)](_0x38018f,_0xe6dbe1,_0x14b0e1),'getShapeData':(_0x5715f5,_0x5093d2,_0x33dcda)=>_0x33009d['getShapeDataById'](_0x5715f5,_0x5093d2,_0x33dcda),'getDrawingTransform':(_0x48b2fd,_0x38cff4,_0xd6883e)=>{const _0x396f26=_0x5dc05f;let _0x855be2=_0x3fcf80[_0x396f26(0x268)]({'unitId':_0x48b2fd,'subUnitId':_0x38cff4,'drawingId':_0xd6883e});return _0x855be2==null?void 0x0:_0x855be2[_0x396f26(0x3cd)];},'updateShapeText':({unitId:_0x413cbe,shapeId:_0xa2d327,shapeText:_0x1db220,oldShapeText:_0x51138f})=>{const _0x51e476=_0x5dc05f;_0x4c1ca9[_0x51e476(0x39c)](_0x1a49e3['id'],{'unitId':_0x413cbe,'shapeId':_0xa2d327,'shapeData':{'shapeText':_0x1db220},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x51138f}}});},'updateHostSize':({unitId:_0xc9e09,subUnitId:_0x3b278c,shapeId:_0x2248ac,width:_0x175817,height:_0x1af576})=>{const _0x5ca12d=_0x5dc05f;_0x4c1ca9[_0x5ca12d(0x39c)](_0x39bf96['id'],{'unitId':_0xc9e09,'subUnitId':_0x3b278c,'drawings':[{'drawingId':_0x2248ac,'key':'size','value':{'width':_0x175817,'height':_0x1af576}}]});},'allowHostSizeShrink':({unitId:_0x6a6510,subUnitId:_0x2b9281,shapeId:_0x32bd92})=>_0x2db28c(_0x33009d[_0x5dc05f(0x1e0)](_0x6a6510,_0x2b9281,_0x32bd92))}),[_0x4c1ca9,_0x33009d,_0x3fcf80]),_0x64e81b=_0x536a10(()=>({'viewportKeys':{'main':_0x55f01c[_0x5dc05f(0x40e)]}}),[]);return _0x204a1f(_0x587c3f,{'adapter':_0x5d1e6a,'editingService':_0x253d68,'editorUnitId':Ar,'positionOptions':_0x64e81b});});let va=class extends _0x256e8f{constructor(_0x16af7d,_0x585188){const _0x30bccc=_0x33b4ed;super(),this['_componentManager']=_0x16af7d,this['_iconManager']=_0x585188,this['_registerIcons'](),this[_0x30bccc(0x2dc)]();}[_0x33b4ed(0x321)](){const _0x3d87b7=_0x33b4ed;this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x2e8))||this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'ObjectLayersIcon':_0x3d0405})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x383))||this['disposeWithMe'](this[_0x3d87b7(0x24d)]['register']({'BottomIcon':_0x58619f})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x408))||this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'MoveDownIcon':_0x51ed93})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x218))||this[_0x3d87b7(0x39a)](this['_iconManager'][_0x3d87b7(0x1da)]({'MoveUpIcon':_0x5aa3fa})),this['_iconManager'][_0x3d87b7(0x3a2)](_0x3d87b7(0x212))||this[_0x3d87b7(0x39a)](this['_iconManager'][_0x3d87b7(0x1da)]({'ShapeFormatSettingIcon':_0x31ef3a})),this[_0x3d87b7(0x24d)][_0x3d87b7(0x3a2)](_0x3d87b7(0x2d6))||this['disposeWithMe'](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)]({'TopmostIcon':_0x1ff755})),this[_0x3d87b7(0x39a)](this[_0x3d87b7(0x24d)][_0x3d87b7(0x1da)](ga));}[_0x33b4ed(0x2dc)](){const _0x28a388=_0x33b4ed;this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)](W,ca)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](kr,ra)),this['disposeWithMe'](this[_0x28a388(0x1e3)]['register'](ua,la)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Qr,ii)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Zr,ai)),this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)]($r,oi)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](ei,si)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)]['register'](ti,ci)),this['disposeWithMe'](this[_0x28a388(0x1e3)]['register'](jr,_0x171fcd)),this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Lr,Qi)),this[_0x28a388(0x39a)](this['_componentManager'][_0x28a388(0x1da)](Rr,$i)),this[_0x28a388(0x1e3)][_0x28a388(0x1cb)](_0x34cbd7)||this[_0x28a388(0x39a)](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](_0x34cbd7,Hr)),this['disposeWithMe'](this[_0x28a388(0x1e3)][_0x28a388(0x1da)](Mr,_a));}};va=q([K(0x0,_0x179bf2(_0x497683)),K(0x1,_0x179bf2(_0x4a3fd6))],va);let ya=class extends _0x256e8f{constructor(_0x5c6c42,_0x5980da,_0x40c487,_0x3628f9,_0x53e1d5,_0xbbf25b,_0x279122,_0xcbcca7,_0x3dcf67,_0xadcf2,_0x1cc86b,_0x4adada,_0x153a6e){const _0x2120aa=_0x33b4ed;super(),this['_univerInstanceService']=_0x5c6c42,this['_sidebarService']=_0x5980da,this[_0x2120aa(0x1ed)]=_0x40c487,this[_0x2120aa(0x1be)]=_0x3628f9,this['_localeService']=_0x53e1d5,this[_0x2120aa(0x2c8)]=_0xbbf25b,this['_drawingManagerService']=_0x279122,this[_0x2120aa(0x333)]=_0xcbcca7,this[_0x2120aa(0x414)]=_0x3dcf67,this[_0x2120aa(0x263)]=_0xadcf2,this['_shapeTextEditingService']=_0x1cc86b,this[_0x2120aa(0x376)]=_0x4adada,this[_0x2120aa(0x30f)]=_0x153a6e,X(this,_0x2120aa(0x340),null),X(this,_0x2120aa(0x329),null),X(this,_0x2120aa(0x1f6),!0x1),X(this,_0x2120aa(0x1c2),0x0),X(this,_0x2120aa(0x2ba),new Map()),X(this,'_popupTargetKeys',new Map()),this[_0x2120aa(0x3d4)](),this['disposeWithMe'](this[_0x2120aa(0x27f)]['getCurrentTypeOfUnit$'](_0x248b26[_0x2120aa(0x1bd)])[_0x2120aa(0x364)](_0x31a0c5=>{const _0x27d939=_0x2120aa;if(!_0x31a0c5){var _0x16ec69;(_0x16ec69=this[_0x27d939(0x340)])==null||_0x16ec69[_0x27d939(0x2e5)]();}})),this['_registerOperations'](),this[_0x2120aa(0x39a)](this[_0x2120aa(0x356)][_0x2120aa(0x1df)][_0x2120aa(0x364)](_0x4975ed=>{const _0x51c5d0=_0x2120aa;for(let _0x27f2c0 of _0x4975ed){let _0x39eb8a=_0x27f2c0[_0x51c5d0(0x1c7)]+':'+_0x27f2c0[_0x51c5d0(0x1c6)]+':'+_0x27f2c0[_0x51c5d0(0x310)];for(let [_0x277492,_0x22d928]of this[_0x51c5d0(0x3a1)])_0x22d928===_0x39eb8a&&this[_0x51c5d0(0x351)](_0x277492,!0x0);}})),this[_0x2120aa(0x39a)](_0x312ad1(this[_0x2120aa(0x414)],_0x248b26['UNIVER_DOC'],_0x403d12=>this[_0x2120aa(0x27b)](_0x403d12))),this['disposeWithMe'](this['_shapeTextEditingService'][_0x2120aa(0x426)][_0x2120aa(0x364)](_0x5e87ca=>{const _0x2efa4a=_0x2120aa;_0x5e87ca&&this[_0x2efa4a(0x351)](void 0x0,!0x0);})),this[_0x2120aa(0x39a)](this['_permissionService'][_0x2120aa(0x20d)]['subscribe'](()=>{const _0x559b33=_0x2120aa;this[_0x559b33(0x356)][_0x559b33(0x26c)]()[_0x559b33(0x2e0)](_0x9cb239=>_0x9cb239['drawingType']===_0x197ccb['DRAWING_SHAPE']&&this['_univerInstanceService']['getUnitType'](_0x9cb239[_0x559b33(0x1c7)])===_0x248b26[_0x559b33(0x1bd)]&&!this[_0x559b33(0x3de)](_0x9cb239[_0x559b33(0x1c7)],_0x9cb239[_0x559b33(0x310)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x559b33(0x309)]());}));}[_0x33b4ed(0x360)](_0x343ccd,_0x55b003,_0x1bb9a9,_0x304e47){const _0x4cbc09=_0x33b4ed;return[{'label':_0x4cbc09(0x1f4),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9},'disable':_0x304e47===_0x197ccb['DRAWING_DOM']},{'label':_0x4cbc09(0x285),'index':0x1,'commandId':_0x3f45a7['id'],'commandParams':{'unitId':_0x343ccd,'drawings':[{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9}]},'disable':!0x1},{'label':_0x4cbc09(0x3b0),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x343ccd,'subUnitId':_0x55b003,'drawingId':_0x1bb9a9},'disable':!0x1}];}['_initMenu'](){const _0x1a187b=_0x33b4ed;this['_menuManagerService'][_0x1a187b(0x3ac)](Ii);}[_0x33b4ed(0x241)](_0x532982,_0x39ab87,_0x289637){const _0x25ceb1=_0x33b4ed;let _0x382a68=this['_docsShapeService'][_0x25ceb1(0x2a7)](_0x532982,_0x39ab87,_0x289637),_0xc0efbb=this[_0x25ceb1(0x1be)][_0x25ceb1(0x1e0)](_0x532982,_0x39ab87,_0x289637);return _0x382a68===void 0x0||_0xc0efbb===void 0x0?null:{'shapeData':_0xc0efbb,'shapeId':_0x289637,'shapeType':_0x382a68,'unitId':_0x532982,'subUnitId':_0x39ab87,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1};}[_0x33b4ed(0x351)](_0x575e9d,_0x321225=!0x1){const _0x593e20=_0x33b4ed;if(_0x575e9d==null){[...this[_0x593e20(0x2ba)][_0x593e20(0x316)]()][_0x593e20(0x27a)](_0x417710=>this[_0x593e20(0x351)](_0x417710,_0x321225));return;}let _0x17ca71=this['_disposePopupsByUnit'][_0x593e20(0x3d8)](_0x575e9d);if(_0x17ca71){for(let _0x302017=_0x17ca71[_0x593e20(0x348)]-0x1;_0x302017>=0x0;--_0x302017){let _0x545fa0=_0x17ca71[_0x302017];(_0x321225||_0x545fa0[_0x593e20(0x36e)]())&&(_0x545fa0['dispose'](),_0x17ca71[_0x593e20(0x203)](_0x302017,0x1));}_0x17ca71[_0x593e20(0x348)]===0x0&&(this[_0x593e20(0x2ba)][_0x593e20(0x3c4)](_0x575e9d),this['_popupTargetKeys'][_0x593e20(0x3c4)](_0x575e9d));}}[_0x33b4ed(0x283)](_0x13ecd0){const _0x2919c1=_0x33b4ed;let _0x553400=this[_0x2919c1(0x2ba)]['get'](_0x13ecd0);if(_0x553400)return _0x553400;let _0x49b93b=[];return this[_0x2919c1(0x2ba)][_0x2919c1(0x328)](_0x13ecd0,_0x49b93b),_0x49b93b;}[_0x33b4ed(0x27b)](_0x4d9f75){const _0x36148b=_0x33b4ed;var _0x4d78d4;let _0x2aef98=new _0x107b45(),_0x6f3192=(_0x4d78d4=this[_0x36148b(0x414)][_0x36148b(0x352)](_0x248b26['UNIVER_DOC'])['find'](_0x43b54b=>_0x43b54b['scene'][_0x36148b(0x29f)]()===_0x4d9f75))==null?void 0x0:_0x4d78d4[_0x36148b(0x1c7)];return _0x6f3192&&(_0x2aef98[_0x36148b(0x205)](_0x4d9f75[_0x36148b(0x34e)][_0x36148b(0x364)](()=>this[_0x36148b(0x311)](_0x4d9f75,_0x6f3192))),_0x2aef98[_0x36148b(0x205)](_0x4d9f75['clearControl$'][_0x36148b(0x364)](()=>{const _0x4e6d21=_0x36148b;this[_0x4e6d21(0x351)](_0x6f3192),queueMicrotask(()=>{const _0x19e895=_0x4e6d21;_0x4d9f75['getSelectedObjectMap']()[_0x19e895(0x391)]>0x0||!this[_0x19e895(0x356)][_0x19e895(0x26c)]()['some'](_0x150c28=>_0x150c28[_0x19e895(0x1c7)]===_0x6f3192)||(this[_0x19e895(0x263)][_0x19e895(0x327)](_0x2a75d8,!0x1),this['_drawingManagerService'][_0x19e895(0x2d5)](null));});})),_0x2aef98[_0x36148b(0x205)](_0x4d9f75[_0x36148b(0x36a)][_0x36148b(0x364)](()=>{const _0x560c1c=_0x36148b;this[_0x560c1c(0x351)](_0x6f3192,!0x0);}))),_0x2aef98;}[_0x33b4ed(0x311)](_0x4f2e53,_0x185d21){const _0x1617ad=_0x33b4ed;let _0x377a1b=_0x4f2e53['getSelectedObjectMap']();if(this[_0x1617ad(0x1f6)]){this[_0x1617ad(0x351)](_0x185d21,!0x0);return;}if(_0x377a1b['size']>0x1){this['_clearPopups'](_0x185d21);return;}let _0x4e7248=_0x377a1b[_0x1617ad(0x1f2)]()['next']()['value'];if(!_0x4e7248){this[_0x1617ad(0x351)](_0x185d21);return;}let _0x50f3a5=this['_drawingManagerService'][_0x1617ad(0x2ef)](_0x4e7248['oKey']);if(!_0x50f3a5||_0x50f3a5[_0x1617ad(0x221)]!==_0x197ccb[_0x1617ad(0x374)]){this[_0x1617ad(0x351)](_0x185d21);return;}let {unitId:_0x57f957,subUnitId:_0x228c16,drawingId:_0x307a28}=_0x50f3a5;if(!this[_0x1617ad(0x3de)](_0x57f957,_0x307a28)){this[_0x1617ad(0x351)](_0x185d21,!0x0);return;}let _0xfc1474=this[_0x1617ad(0x241)](_0x57f957,_0x228c16,_0x307a28);if(!_0xfc1474){this['_clearPopups'](_0x185d21);return;}let _0x2fa32c=this[_0x1617ad(0x2ba)][_0x1617ad(0x3d8)](_0x185d21),_0x406e88=_0x57f957+':'+_0x228c16+':'+_0x307a28;if(this[_0x1617ad(0x3a1)][_0x1617ad(0x3d8)](_0x185d21)===_0x406e88&&_0x2fa32c!=null&&_0x2fa32c['length'])return;this['_clearPopups'](_0x185d21);let _0x2e7789=this['_renderManagerService'][_0x1617ad(0x359)](_0x57f957),_0x51c27f=((_0x2e7789==null?void 0x0:_0x2e7789['isMainScene'])===!0x1?_0x2e7789['with'](_0x506b97):this[_0x1617ad(0x333)])['attachPopupToObject'](_0x4e7248,this[_0x1617ad(0x254)](_0xfc1474,()=>this[_0x1617ad(0x351)](_0x185d21,!0x0)),_0x57f957);this[_0x1617ad(0x39a)](_0x51c27f),this[_0x1617ad(0x283)](_0x185d21)[_0x1617ad(0x3db)](_0x51c27f),this[_0x1617ad(0x3a1)][_0x1617ad(0x328)](_0x185d21,_0x406e88),this[_0x1617ad(0x356)][_0x1617ad(0x26c)]()[_0x1617ad(0x2e0)](_0x14d0eb=>_0x14d0eb[_0x1617ad(0x1c7)]===_0x57f957&&_0x14d0eb[_0x1617ad(0x1c6)]===_0x228c16&&_0x14d0eb[_0x1617ad(0x310)]===_0x307a28)||this[_0x1617ad(0x356)]['focusDrawing']([{'unitId':_0x57f957,'subUnitId':_0x228c16,'drawingId':_0x307a28}]);}[_0x33b4ed(0x254)](_0x4b2a99,_0x51c461){const _0x26a0bd=_0x33b4ed;let {unitId:_0x28ddae,subUnitId:_0x284d82,shapeId:_0x4910b0}=_0x4b2a99,_0x12f692={'hostType':_0x248b26['UNIVER_DOC'],'unitId':_0x28ddae,'subUnitId':_0x284d82,'shapeId':_0x4910b0};return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x26a0bd(0x326),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x4b2a99['shapeType'],'onText':()=>{const _0x2570bb=_0x26a0bd;_0x51c461(),this[_0x2570bb(0x30f)][_0x2570bb(0x40b)](_0x2570bb(0x35c),_0x12f692);},'onStyle':()=>{const _0x4cd187=_0x26a0bd;_0x51c461(),this['_mobileEditorService']['open'](_0x4cd187(0x301),_0x12f692);},'onDelete':()=>this['_commandService'][_0x26a0bd(0x39c)](_0x3f45a7['id'],{'unitId':_0x28ddae,'drawings':[{'unitId':_0x28ddae,'subUnitId':_0x284d82,'drawingId':_0x4910b0}]})}};}[_0x33b4ed(0x3de)](_0x3e21b9,_0x6cecc3){const _0x350627=_0x33b4ed;let _0x5981b0=this[_0x350627(0x27f)]['getUnit'](_0x3e21b9,_0x248b26['UNIVER_DOC']);if(!_0x5981b0)return!0x1;let _0x4ea522=_0x1142fd(_0x5981b0,_0x6cecc3);return _0x1e4951(this[_0x350627(0x376)],_0x3e21b9,[..._0x2e9cb2(_0x5981b0,_0x4ea522,_0x350627(0x26d),_0x6cecc3),_0x365faa(_0x4ea522,_0x350627(0x26d),_0x6cecc3)]);}['_registerOperations'](){const _0x3059c7=_0x33b4ed;this[_0x3059c7(0x39a)](this['_commandService'][_0x3059c7(0x2df)](_0x5f4eb0=>{const _0x1d93ae=_0x3059c7;if(_0x5f4eb0['id']===G['id']){let {unitId:_0x3beaf5,subUnitId:_0x3b1eaa,drawingId:_0x186bae}=_0x5f4eb0['params'];this['_shapeEditPanelVersion']+=0x1,this[_0x1d93ae(0x329)]=this[_0x1d93ae(0x241)](_0x3beaf5,_0x3b1eaa,_0x186bae),this[_0x1d93ae(0x351)](void 0x0,!0x0),this[_0x1d93ae(0x288)]();}if(_0x5f4eb0['id']===zi['id']&&(this['_activeShapeInfo']=null,this[_0x1d93ae(0x309)]()),_0x5f4eb0['id']===_0xee5b39['id']){var _0x40903d;let {unitId:_0x439f16,shapeId:_0x256c08}=_0x5f4eb0['params'];if(((_0x40903d=this[_0x1d93ae(0x329)])==null?void 0x0:_0x40903d[_0x1d93ae(0x402)])===_0x256c08){let _0xc18e4f=this[_0x1d93ae(0x241)](_0x439f16,this[_0x1d93ae(0x329)][_0x1d93ae(0x1c6)],_0x256c08);_0xc18e4f&&(this[_0x1d93ae(0x1c2)]+=0x1,_0xc18e4f[_0x1d93ae(0x3b2)]=this[_0x1d93ae(0x1c2)],this[_0x1d93ae(0x329)]=_0xc18e4f,this[_0x1d93ae(0x1f6)]&&this[_0x1d93ae(0x288)]());}}})),this[_0x3059c7(0x39a)](this[_0x3059c7(0x356)]['focus$'][_0x3059c7(0x364)](_0x4d7b85=>{const _0x4120cf=_0x3059c7;if(!this[_0x4120cf(0x1f6)])return;if(_0x4d7b85[_0x4120cf(0x348)]===0x0){this[_0x4120cf(0x329)]=null,this[_0x4120cf(0x309)]();return;}if(_0x4d7b85[_0x4120cf(0x348)]===0x1&&_0x4d7b85[0x0][_0x4120cf(0x221)]===_0x197ccb[_0x4120cf(0x374)]&&(this[_0x4120cf(0x1c2)]+=0x1,this['_activeShapeInfo']=this[_0x4120cf(0x241)](_0x4d7b85[0x0][_0x4120cf(0x1c7)],_0x4d7b85[0x0]['subUnitId'],_0x4d7b85[0x0][_0x4120cf(0x310)]),this[_0x4120cf(0x329)])){this[_0x4120cf(0x288)]();return;}let _0x1341fb=_0x4d7b85[_0x4120cf(0x319)](_0xf52daa=>_0xf52daa['drawingType']===_0x197ccb[_0x4120cf(0x374)]);this['_shapeEditPanelVersion']+=0x1,this[_0x4120cf(0x329)]=this[_0x4120cf(0x241)](_0x4d7b85[0x0][_0x4120cf(0x1c7)],_0x4d7b85[0x0]['subUnitId'],_0x4d7b85[0x0][_0x4120cf(0x310)]),this[_0x4120cf(0x329)]&&_0x4d7b85[_0x4120cf(0x348)]>0x1&&_0x1341fb[_0x4120cf(0x348)]===_0x4d7b85['length']?this[_0x4120cf(0x288)]():this[_0x4120cf(0x329)]&&_0x1341fb['length']!==_0x4d7b85[_0x4120cf(0x348)]?(this[_0x4120cf(0x329)][_0x4120cf(0x206)]=!0x0,this[_0x4120cf(0x288)]()):this[_0x4120cf(0x309)]();}));}[_0x33b4ed(0x288)](){const _0x12be9f=_0x33b4ed;this[_0x12be9f(0x329)]&&(this['_sidebarDisposable']=this[_0x12be9f(0x1e1)]['open']({'id':W,'header':{'title':this[_0x12be9f(0x308)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x12be9f(0x329)]},'onClose':()=>{const _0x25520a=_0x12be9f;this[_0x25520a(0x356)][_0x25520a(0x2d5)](null),this[_0x25520a(0x263)][_0x25520a(0x327)](_0x2a75d8,!0x1),this[_0x25520a(0x340)]=null;}}),this[_0x12be9f(0x1f6)]=!0x0);}[_0x33b4ed(0x309)](){const _0x3ccdb7=_0x33b4ed;this[_0x3ccdb7(0x1f6)]=!0x1,this[_0x3ccdb7(0x1e1)][_0x3ccdb7(0x33a)](W),this['_sidebarDisposable']=null,this[_0x3ccdb7(0x263)][_0x3ccdb7(0x327)](_0x2a75d8,!0x1),this['_drawingManagerService'][_0x3ccdb7(0x2d5)](null);}};ya=q([K(0x0,_0x1e69fb),K(0x1,_0x179bf2(_0x1658ad)),K(0x2,_0x4b4118),K(0x3,_0x179bf2(_0x2b6cfd)),K(0x4,_0x179bf2(_0x5a1674)),K(0x5,_0x2474c3),K(0x6,_0x8501d),K(0x7,_0x179bf2(_0x506b97)),K(0x8,_0x456b85),K(0x9,_0x651387),K(0xa,_0x179bf2(Q)),K(0xb,_0x371e1a),K(0xc,_0x179bf2(_0x10d1ab))],ya);const ba='docs-shape-contextual-ribbon';let xa=class extends _0x256e8f{constructor(_0x58e032,_0xd66c62,_0x2ac8e3,_0x1e18f8,_0x3cf51a,_0x379c53){const _0x84b7cd=_0x33b4ed;super(),this['_menuManagerService']=_0x58e032,this[_0x84b7cd(0x24e)]=_0xd66c62,this['_drawingManagerService']=_0x2ac8e3,this[_0x84b7cd(0x27f)]=_0x1e18f8,this['_renderManagerService']=_0x3cf51a,this[_0x84b7cd(0x2ca)]=_0x379c53,X(this,_0x84b7cd(0x3a9),!0x1),this[_0x84b7cd(0x1ed)][_0x84b7cd(0x3ac)](Fi),this[_0x84b7cd(0x39a)](_0x519bb5(this[_0x84b7cd(0x356)][_0x84b7cd(0x1d8)][_0x84b7cd(0x364)](()=>this[_0x84b7cd(0x2d1)]()))),this[_0x84b7cd(0x2d1)]();}[_0x33b4ed(0x2e5)](){const _0x230d62=_0x33b4ed;this[_0x230d62(0x2ca)][_0x230d62(0x1d2)](!0x1,ba),this['_hide'](),super[_0x230d62(0x2e5)]();}['_update'](){const _0x1df246=_0x33b4ed;var _0x293000;let _0xdfca08=this[_0x1df246(0x356)][_0x1df246(0x26c)](),_0x389847=_0xdfca08[_0x1df246(0x348)]===0x1?_0xdfca08[0x0]:void 0x0;if((_0x389847==null?void 0x0:_0x389847[_0x1df246(0x221)])!==_0x197ccb[_0x1df246(0x374)]||this[_0x1df246(0x27f)][_0x1df246(0x200)](_0x389847['unitId'])!==_0x248b26[_0x1df246(0x1bd)]){this[_0x1df246(0x2ca)][_0x1df246(0x1d2)](!0x1,ba),this['_hide']();return;}let _0x2daa69=(_0x293000=this[_0x1df246(0x414)]['getRenderUnitById'](_0x389847[_0x1df246(0x1c7)]))==null?void 0x0:_0x293000[_0x1df246(0x2c4)][_0x1df246(0x227)](),_0x333c2c=_0x26f91d(_0x2daa69)===_0x1df246(0x24c);this['_shapeFloatingToolbarService'][_0x1df246(0x1d2)](_0x333c2c,ba),_0x333c2c?this['_hide']():(this['_visible']=!0x0,this[_0x1df246(0x24e)][_0x1df246(0x358)](Or,{'activate':!0x0}));}[_0x33b4ed(0x261)](){const _0x342de7=_0x33b4ed;this['_visible']&&(this[_0x342de7(0x3a9)]=!0x1,this[_0x342de7(0x24e)][_0x342de7(0x412)](Or),this['_ribbonService'][_0x342de7(0x41c)]([]));}};xa=q([K(0x0,_0x4b4118),K(0x1,_0x18d17b),K(0x2,_0x8501d),K(0x3,_0x1e69fb),K(0x4,_0x456b85),K(0x5,_0x179bf2(_0xafbc38))],xa);let Sa=class extends _0x256e8f{constructor(_0x1d7fc4,_0x42d03a,_0x26ed76,_0x2c746c){const _0xa96d7f=_0x33b4ed;super(),this[_0xa96d7f(0x2c8)]=_0x1d7fc4,this[_0xa96d7f(0x414)]=_0x42d03a,this[_0xa96d7f(0x356)]=_0x26ed76,this[_0xa96d7f(0x287)]=_0x2c746c,this[_0xa96d7f(0x421)]();}['_initialize'](){const _0x1ada23=_0x33b4ed;this[_0x1ada23(0x39a)](this[_0x1ada23(0x356)][_0x1ada23(0x3f5)][_0x1ada23(0x364)](_0x10dea4=>this[_0x1ada23(0x1ef)](_0x10dea4))),this[_0x1ada23(0x39a)](this[_0x1ada23(0x356)][_0x1ada23(0x379)][_0x1ada23(0x364)](_0x2c74a1=>{const _0x4381da=_0x1ada23;_0x2c74a1['forEach'](_0x977306=>this[_0x4381da(0x41a)](_0x977306));})),this['disposeWithMe'](this[_0x1ada23(0x2c8)][_0x1ada23(0x2df)](_0x118876=>{const _0x4fe9ca=_0x1ada23;if(_0x118876['id']!==_0xee5b39['id'])return;let {unitId:_0x3c66fc,shapeId:_0x4c467c}=_0x118876[_0x4fe9ca(0x1f5)];this[_0x4fe9ca(0x341)]({'unitId':_0x3c66fc,'subUnitId':_0x3c66fc,'drawingId':_0x4c467c});}));}[_0x33b4ed(0x1ef)](_0x446b66){_0x446b66['forEach'](_0x240a8b=>{const _0x4f8319=_0x3935;let _0x2a4df8=this[_0x4f8319(0x30c)](_0x240a8b[_0x4f8319(0x1c7)]);if(!_0x2a4df8)return;let _0x3bdfc7=this[_0x4f8319(0x356)][_0x4f8319(0x268)](_0x240a8b);(_0x3bdfc7==null?void 0x0:_0x3bdfc7[_0x4f8319(0x221)])===_0x197ccb[_0x4f8319(0x374)]&&this[_0x4f8319(0x287)][_0x4f8319(0x31a)](_0x3bdfc7,_0x2a4df8[_0x4f8319(0x2e9)]);});}[_0x33b4ed(0x41a)](_0x1ba532){const _0x5b4ee1=_0x33b4ed;let _0x2aa180=this[_0x5b4ee1(0x356)]['getDrawingByParam'](_0x1ba532);if((_0x2aa180==null?void 0x0:_0x2aa180[_0x5b4ee1(0x221)])!==_0x197ccb[_0x5b4ee1(0x374)])return;let _0x230612=this[_0x5b4ee1(0x30c)](_0x1ba532['unitId']);if(!_0x230612||_0x2aa180['transform']==null)return;let _0x432caa=_0x2d5511(_0x1ba532),_0x23ff28=_0x230612[_0x5b4ee1(0x2e9)][_0x5b4ee1(0x37c)](_0x432caa);_0x23ff28&&(_0x23ff28[_0x5b4ee1(0x34d)](_0x2aa180[_0x5b4ee1(0x217)]),_0x23ff28[_0x5b4ee1(0x3cf)](_0x2aa180['prstGeom']),_0x23ff28[_0x5b4ee1(0x3dd)](!0x0));}[_0x33b4ed(0x341)](_0x36d38c){const _0x47d602=_0x33b4ed;let _0x312f03=this[_0x47d602(0x30c)](_0x36d38c[_0x47d602(0x1c7)]);if(!_0x312f03)return;let _0x3799a9=_0x2d5511(_0x36d38c),_0x4dee2f=_0x312f03[_0x47d602(0x2e9)][_0x47d602(0x37c)](_0x3799a9);_0x4dee2f&&(this[_0x47d602(0x287)][_0x47d602(0x354)](_0x4dee2f),this[_0x47d602(0x287)][_0x47d602(0x361)](_0x4dee2f,{'unitId':_0x36d38c[_0x47d602(0x1c7)],'subUnitId':_0x36d38c['subUnitId'],'shapeId':_0x36d38c[_0x47d602(0x310)]}),_0x4dee2f['makeDirty'](!0x0));}[_0x33b4ed(0x30c)](_0x5e3520){const _0x5875b2=_0x33b4ed;if(_0x5e3520==null)return null;let _0x2530fd=this[_0x5875b2(0x414)][_0x5875b2(0x359)](_0x5e3520),_0x500d11=_0x2530fd==null?void 0x0:_0x2530fd[_0x5875b2(0x2e9)];return _0x500d11==null?null:{'scene':_0x500d11};}};Sa=q([K(0x0,_0x2474c3),K(0x1,_0x456b85),K(0x2,_0x8501d),K(0x3,_0x179bf2($))],Sa);let Ca=class extends _0x43bd26{constructor(_0x2817e8=Vi,_0xe3092b,_0x45ef90,_0xea44b7,_0x2173da){const _0x4f8907=_0x33b4ed;super(),this[_0x4f8907(0x368)]=_0x2817e8,this['_injector']=_0xe3092b,this[_0x4f8907(0x2c8)]=_0x45ef90,this['_configService']=_0xea44b7,this[_0x4f8907(0x414)]=_0x2173da;let {menu:_0x50fd79,..._0x450bfb}=_0x2d69fe({},Vi,this[_0x4f8907(0x368)]);_0x50fd79&&this['_configService']['setConfig']('menu',_0x50fd79,{'merge':!0x0}),this[_0x4f8907(0x396)][_0x4f8907(0x420)](Bi,_0x450bfb),[U,zi,G,Nr,Fr,Ir][_0x4f8907(0x27a)](_0x2007f3=>this[_0x4f8907(0x39a)](this[_0x4f8907(0x2c8)][_0x4f8907(0x220)](_0x2007f3)));}[_0x33b4ed(0x282)](){const _0x35d4f5=_0x33b4ed;let _0x4d1970=[[va],[ya],[Sa],[$],[Yi],[qi],[J],[ia],[Q],[xa]];_0x490b6f(this['_injector'],_0x4d1970),this[_0x35d4f5(0x233)][_0x35d4f5(0x3d8)](va);}[_0x33b4ed(0x2d3)](){const _0x51b323=_0x33b4ed;this[_0x51b323(0x39a)](this[_0x51b323(0x414)][_0x51b323(0x248)](_0x248b26[_0x51b323(0x1bd)],[qi])),_0x899513(this[_0x51b323(0x233)],[[ya],[Sa],[$],[Yi],[J],[ia],[Q],[xa]]);}};function _0x3935(_0x316339,_0x12e5bf){_0x316339=_0x316339-0x1bd;const _0x15fc7a=_0x15fc();let _0x393598=_0x15fc7a[_0x316339];return _0x393598;}X(Ca,_0x33b4ed(0x392),_0x248b26['UNIVER_DOC']),X(Ca,_0x33b4ed(0x20a),_0x33b4ed(0x2cd)),X(Ca,_0x33b4ed(0x2db),Li),X(Ca,_0x33b4ed(0x3b2),Ri),Ca=q([_0xeaf711(_0x3c2eb4,_0x2db5f7,_0x2b9ee4,_0x173033,_0x28d240,_0x5173fc,_0x1a75fd,_0x4f5b06,_0x2ef163,_0x198fdd),K(0x1,_0x179bf2(_0x3193fa)),K(0x2,_0x2474c3),K(0x3,_0x4747a4),K(0x4,_0x456b85)],Ca);let wa=class extends _0x256e8f{constructor(_0x4f26bd,_0x296582){const _0x2b4b98=_0x33b4ed;super(),this[_0x2b4b98(0x1e3)]=_0x4f26bd,this[_0x2b4b98(0x24d)]=_0x296582,this[_0x2b4b98(0x321)](),this[_0x2b4b98(0x2dc)]();}['_registerIcons'](){const _0xabe1b4=_0x33b4ed;this[_0xabe1b4(0x24d)]['has'](_0xabe1b4(0x2e8))||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)]['register']({'ObjectLayersIcon':_0x3d0405})),this[_0xabe1b4(0x24d)]['has']('BottomIcon')||this['disposeWithMe'](this['_iconManager'][_0xabe1b4(0x1da)]({'BottomIcon':_0x58619f})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)](_0xabe1b4(0x408))||this['disposeWithMe'](this[_0xabe1b4(0x24d)]['register']({'MoveDownIcon':_0x51ed93})),this[_0xabe1b4(0x24d)]['has'](_0xabe1b4(0x218))||this['disposeWithMe'](this['_iconManager'][_0xabe1b4(0x1da)]({'MoveUpIcon':_0x5aa3fa})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)](_0xabe1b4(0x212))||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)]({'ShapeFormatSettingIcon':_0x31ef3a})),this[_0xabe1b4(0x24d)][_0xabe1b4(0x3a2)]('TopmostIcon')||this[_0xabe1b4(0x39a)](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)]({'TopmostIcon':_0x1ff755})),this['disposeWithMe'](this[_0xabe1b4(0x24d)][_0xabe1b4(0x1da)](ga));}[_0x33b4ed(0x2dc)](){const _0x1df50c=_0x33b4ed;this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](W,oa)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](kr,na)),this['disposeWithMe'](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ua,fa)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Qr,ii)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Zr,ai)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)]($r,oi)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ei,si)),this['disposeWithMe'](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](ti,ci)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](jr,_0x171fcd)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](Lr,Ur)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)]['register'](Rr,Vr)),this[_0x1df50c(0x1e3)]['hasDefault'](_0x34cbd7)||this[_0x1df50c(0x39a)](this['_componentManager'][_0x1df50c(0x1da)](_0x34cbd7,Hr)),this[_0x1df50c(0x39a)](this[_0x1df50c(0x1e3)][_0x1df50c(0x1da)](Mr,_a));}};wa=q([K(0x0,_0x179bf2(_0x497683)),K(0x1,_0x179bf2(_0x4a3fd6))],wa);let Ta=class extends _0x256e8f{constructor(_0x53cbec,_0xc4720d,_0x3bc670,_0x1dbaa9,_0x4d7668,_0x272bab,_0x42a737,_0x4da815,_0x3aa6c0){const _0x2281bb=_0x33b4ed;super();let _0x4b2495=_0x5259ff=>{const _0x17cdaf=_0x3935;let _0x3bfd6a=_0x272bab[_0x17cdaf(0x3c5)](_0x5259ff[_0x17cdaf(0x1c7)],_0x248b26[_0x17cdaf(0x1bd)]),_0x534075=_0x3bfd6a?_0x1142fd(_0x3bfd6a,_0x5259ff['shapeId']):'';return!!_0x3bfd6a&&_0x1e4951(_0x4da815,_0x5259ff[_0x17cdaf(0x1c7)],[_0x365faa(_0x534075,_0x17cdaf(0x26d),_0x5259ff['shapeId']),..._0x2e9cb2(_0x3bfd6a,_0x534075,'drawing',_0x5259ff[_0x17cdaf(0x402)])]);},_0x7dd30a=_0xcad723=>_0xcad723[_0x2281bb(0x402)]&&_0x4b2495(_0xcad723)?_0x3bc670[_0x2281bb(0x1e0)](_0xcad723['unitId'],_0xcad723[_0x2281bb(0x402)])??null:null,_0x152d7a=()=>{const _0x30d168=_0x2281bb;let _0x2832dc=_0x4d7668[_0x30d168(0x26c)](),_0x32c895=_0x2832dc[_0x30d168(0x348)]===0x1?_0x2832dc[0x0]:null;return(_0x32c895==null?void 0x0:_0x32c895[_0x30d168(0x221)])===_0x197ccb['DRAWING_SHAPE']&&_0x32c895[_0x30d168(0x1c7)]===_0x53cbec[_0x30d168(0x1c7)]?{'unitId':_0x32c895[_0x30d168(0x1c7)],'subUnitId':_0x32c895[_0x30d168(0x1c6)],'shapeId':_0x32c895[_0x30d168(0x310)]}:null;};this[_0x2281bb(0x39a)](_0x4c0695(_0x53cbec,_0xc4720d,{'changes$':_0x231b03(_0x4d7668[_0x2281bb(0x1d8)],_0x1dbaa9[_0x2281bb(0x426)],_0x4da815[_0x2281bb(0x20d)]),'isActive':()=>{const _0x1c26c2=_0x2281bb;var _0x32979f;return((_0x32979f=_0x272bab[_0x1c26c2(0x38d)]())==null?void 0x0:_0x32979f[_0x1c26c2(0x223)]())===_0x53cbec[_0x1c26c2(0x1c7)]&&!_0x42a737[_0x1c26c2(0x20e)](_0x48ed79)&&_0x4d7668[_0x1c26c2(0x26c)]()[_0x1c26c2(0x2e0)](_0x1c6342=>_0x1c6342[_0x1c26c2(0x1c7)]===_0x53cbec[_0x1c26c2(0x1c7)]);},'getSelectedTarget':_0x152d7a,'getSource':()=>{let _0x39dd6f=_0x152d7a();return _0x39dd6f?_0x7dd30a(_0x39dd6f):null;},'getTarget':_0x36dc46=>{const _0x267c1e=_0x2281bb;let _0x5a83df=_0x53cbec[_0x267c1e(0x2e9)]['pick'](new _0x482a77(_0x36dc46['offsetX'],_0x36dc46[_0x267c1e(0x25d)]));if(!(_0x5a83df instanceof Z))return null;let _0x3acccc={'unitId':_0x53cbec['unitId'],'subUnitId':_0x53cbec['unitId'],'shapeId':_0x5a83df[_0x267c1e(0x402)]};return _0x4b2495(_0x3acccc)?_0x3acccc:null;},'getShape':_0x7dd30a,'update':(_0x158154,_0x2a8a26,_0x51fc1d)=>_0x3aa6c0[_0x2281bb(0x39c)](_0x1a49e3['id'],{..._0x158154,'shapeData':_0x51fc1d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x2a8a26}})}));}};Ta=q([K(0x1,_0x179bf2(_0x575a29)),K(0x2,_0x179bf2(_0x2b6cfd)),K(0x3,_0x179bf2(Q)),K(0x4,_0x8501d),K(0x5,_0x1e69fb),K(0x6,_0x651387),K(0x7,_0x371e1a),K(0x8,_0x2474c3)],Ta);function Ea(_0x229383,_0x3d4d64){const _0x438f7d=_0x33b4ed;let _0x195142=_0x229383;for(;_0x195142;){if(_0x3d4d64(_0x195142))return _0x195142;_0x195142=typeof _0x195142[_0x438f7d(0x245)]==_0x438f7d(0x377)?_0x195142['getParent']():null;}return null;}function Da(_0x1b9ed6){return Ea(_0x1b9ed6,_0x1960ef=>_0x1960ef instanceof Z);}function Oa(_0x2c8b75){const _0x3d7ef0=_0x33b4ed;return(_0x2c8b75==null?void 0x0:_0x2c8b75[_0x3d7ef0(0x1ea)])==null;}let ka=class extends _0x256e8f{constructor(_0x4ce02e,_0x183818,_0x5f0b3f,_0x2fc61a,_0x27526f){const _0x1e1b91=_0x33b4ed;super(),this[_0x1e1b91(0x2be)]=_0x4ce02e,this[_0x1e1b91(0x3c8)]=_0x183818,this[_0x1e1b91(0x356)]=_0x5f0b3f,this[_0x1e1b91(0x23a)]=_0x2fc61a,this[_0x1e1b91(0x1be)]=_0x27526f,X(this,_0x1e1b91(0x22d),null),X(this,_0x1e1b91(0x1f1),null),this['_initEvents'](),this[_0x1e1b91(0x325)](),this['_initEditingParams']();}[_0x33b4ed(0x2e5)](){const _0x227088=_0x33b4ed;this[_0x227088(0x390)](),super[_0x227088(0x2e5)]();}[_0x33b4ed(0x398)](){const _0x26e6ca=_0x33b4ed;let {scene:_0x419814}=this[_0x26e6ca(0x2be)];this[_0x26e6ca(0x39a)](_0x419814[_0x26e6ca(0x422)][_0x26e6ca(0x2b5)]((_0x322a2d,_0x3b6000)=>{const _0x573e48=_0x26e6ca;let {offsetX:_0x10e187,offsetY:_0x4be566}=_0x322a2d,_0x484361=_0x482a77[_0x573e48(0x38e)]([_0x10e187,_0x4be566]),_0x2f29b3=Da(_0x419814[_0x573e48(0x349)](_0x484361))??this[_0x573e48(0x2a3)](_0x484361);if(_0x2f29b3){_0x3b6000[_0x573e48(0x350)]();let _0x511b8c=this[_0x573e48(0x1be)][_0x573e48(0x36f)](_0x2f29b3[_0x573e48(0x1c7)],_0x2f29b3[_0x573e48(0x1c6)],_0x2f29b3[_0x573e48(0x402)]);if(!_0x511b8c||_0x394312(_0x511b8c[_0x573e48(0x400)]())||!Oa(_0x511b8c[_0x573e48(0x244)]()))return;this[_0x573e48(0x3c8)]['setEditing']({'visible':!0x0,'unitId':_0x2f29b3[_0x573e48(0x1c7)],'subUnitId':_0x2f29b3['subUnitId'],'shapeId':_0x2f29b3['shapeId'],'shapeKey':_0x2f29b3[_0x573e48(0x1cf)]});}}));}[_0x33b4ed(0x2a3)](_0x442b22){const _0x482b4d=_0x33b4ed;let {scene:_0x52df8f}=this[_0x482b4d(0x2be)];return this[_0x482b4d(0x356)][_0x482b4d(0x26c)]()[_0x482b4d(0x41d)](_0x4b8dc4=>_0x52df8f['getObjectIncludeInGroup'](_0x2d5511(_0x4b8dc4)))['find'](_0x4e9822=>_0x4e9822 instanceof Z&&_0x4e9822[_0x482b4d(0x355)](_0x442b22))??null;}['_initSelection'](){const _0x5b694b=_0x33b4ed;this['disposeWithMe'](this[_0x5b694b(0x356)][_0x5b694b(0x1d8)][_0x5b694b(0x364)](_0x29206d=>{const _0x1d6ae6=_0x5b694b;if(_0x29206d[_0x1d6ae6(0x348)]===0x1){let _0x4713d3=_0x29206d[0x0],_0x4041a1=this[_0x1d6ae6(0x356)][_0x1d6ae6(0x268)](_0x4713d3);if((_0x4041a1==null?void 0x0:_0x4041a1['drawingType'])===_0x197ccb[_0x1d6ae6(0x374)]){let _0x6cf40=this[_0x1d6ae6(0x3c8)]['getEditing']();if((_0x6cf40==null?void 0x0:_0x6cf40['shapeId'])===_0x4713d3[_0x1d6ae6(0x310)]&&_0x6cf40[_0x1d6ae6(0x298)])return;_0x394312(this['_docsShapeService'][_0x1d6ae6(0x400)](_0x4713d3[_0x1d6ae6(0x1c7)],_0x4713d3['subUnitId'],_0x4713d3[_0x1d6ae6(0x310)]))&&this[_0x1d6ae6(0x3c8)]['setEditing'](null);}else this[_0x1d6ae6(0x3c8)][_0x1d6ae6(0x2bc)]();}else this[_0x1d6ae6(0x3c8)][_0x1d6ae6(0x2bc)]();})),this[_0x5b694b(0x39a)](this['_drawingManagerService'][_0x5b694b(0x1df)]['subscribe'](_0x3da0c0=>{const _0x205fdf=_0x5b694b;let _0x422c46=this[_0x205fdf(0x3c8)][_0x205fdf(0x24a)]();_0x422c46&&_0x3da0c0[_0x205fdf(0x2e0)](_0x1f4736=>_0x1f4736[_0x205fdf(0x310)]===_0x422c46[_0x205fdf(0x402)])&&this['_shapeTextEditingService'][_0x205fdf(0x281)](null);}));}[_0x33b4ed(0x29c)](){const _0x3fe3c2=_0x33b4ed;this['disposeWithMe'](this[_0x3fe3c2(0x3c8)][_0x3fe3c2(0x426)][_0x3fe3c2(0x364)](_0x542097=>{const _0x1c3d50=_0x3fe3c2;(_0x542097==null?void 0x0:_0x542097[_0x1c3d50(0x298)])===!0x0&&_0x542097[_0x1c3d50(0x1c7)]===this['_context'][_0x1c3d50(0x1c7)]?this['_layoutInteraction']??=this[_0x1c3d50(0x23a)][_0x1c3d50(0x411)]():this[_0x1c3d50(0x390)]();let {scene:_0x34983c}=this[_0x1c3d50(0x2be)];if(this['_lastEditingShapeKey']){let _0x16bcb6=_0x34983c[_0x1c3d50(0x37c)](this[_0x1c3d50(0x22d)]);_0x16bcb6&&_0x16bcb6[_0x1c3d50(0x281)](!0x1);}if(_0x542097){let _0x4123b5=!!_0x542097[_0x1c3d50(0x298)],_0x21d3a4=_0x34983c[_0x1c3d50(0x37c)](_0x542097[_0x1c3d50(0x3c3)]);_0x21d3a4&&(_0x21d3a4[_0x1c3d50(0x281)](_0x4123b5),this[_0x1c3d50(0x22d)]=_0x542097[_0x1c3d50(0x3c3)]);}else this[_0x1c3d50(0x22d)]=null;}));}[_0x33b4ed(0x390)](){const _0x23755a=_0x33b4ed;var _0x4dda06;(_0x4dda06=this[_0x23755a(0x1f1)])==null||_0x4dda06[_0x23755a(0x2e5)](),this[_0x23755a(0x1f1)]=null;}};ka=q([K(0x1,_0x179bf2(Q)),K(0x2,_0x8501d),K(0x3,_0x179bf2(_0x2431a6)),K(0x4,_0x179bf2(_0x2b6cfd))],ka);let Aa=class extends _0xafa84c{constructor(_0x2d29c2,_0x26acd9,_0x34b330,_0x32a0b0,_0x31bf6f,_0x3da4f4,_0x3bdc98,_0x1668dc,_0x4180cd,_0x169c5e){super(_0x2d29c2,_0x26acd9,_0x34b330,_0x32a0b0,_0x31bf6f,_0x3da4f4,_0x3bdc98,_0x1668dc,_0x4180cd,_0x169c5e,{'componentKey':jr,'editorUnitId':Ar});}};Aa=q([K(0x1,_0x179bf2(_0x1507b5)),K(0x2,_0x179bf2(_0x506b97)),K(0x3,_0x179bf2(_0x277f8c)),K(0x4,_0x2474c3),K(0x5,_0x179bf2(_0x4e8139)),K(0x6,_0x179bf2(_0x3c0cac)),K(0x7,_0x179bf2(_0x3ac20b)),K(0x8,_0x179bf2(_0x50c2a2)),K(0x9,_0x179bf2(Q))],Aa);let ja=class extends _0x4093ea{constructor(_0x34dc5a,_0x1c33d2,_0x1f43d4,_0x115a28,_0x2a0249){const _0x54750b=_0x33b4ed;super(_0x34dc5a,_0x1c33d2,{'editing$':_0x1f43d4[_0x54750b(0x426)],'resolve':_0x5ec860=>{const _0x429bab=_0x54750b;var _0x954275;let _0x4f0853=new _0x482a77(_0x5ec860[_0x429bab(0x3a7)],_0x5ec860[_0x429bab(0x25d)]),_0x38f3b9=((_0x954275=_0x34dc5a['scene'][_0x429bab(0x3ab)](_0x4f0853))==null?void 0x0:_0x954275[_0x429bab(0x3df)](_0x4f0853))??_0x4f0853,_0x5d4525=_0x2efdd6(_0x34dc5a['scene']['pick'](_0x4f0853)??null,_0x38f3b9);if(!(_0x5d4525 instanceof Z))return null;let _0x5275d1=_0x5d4525[_0x429bab(0x3b7)](_0x38f3b9);if(!_0x5275d1)return null;let _0x43e9b1=_0x5d4525,_0x160b1f={'componentKey':_0xb65d9[_0x429bab(0x2bf)],'direction':_0x429bab(0x326),'offset':[0x0,0xa],'onClickOutside':()=>_0x1c33d2[_0x429bab(0x42e)]()};return{'object':_0x5d4525,'info':{..._0x5275d1,'unitId':_0x5d4525[_0x429bab(0x1c7)],'subUnitId':_0x5d4525[_0x429bab(0x1c6)],'shapeKey':_0x5d4525[_0x429bab(0x1cf)],'readonly':!0x0,'copyable':_0x5efff4(_0x2a0249,_0x5d4525['unitId'],_0x5d4525['unitId'],_0x4f9b0b[_0x429bab(0x2d8)])},'attachPopup':()=>_0x115a28[_0x429bab(0x1d6)](_0x43e9b1,_0x160b1f,_0x43e9b1[_0x429bab(0x1c7)])};}});}};ja=q([K(0x1,_0x179bf2(_0x3c0cac)),K(0x2,_0x179bf2(Q)),K(0x3,_0x179bf2(_0x506b97)),K(0x4,_0x371e1a)],ja);let Ma=class extends _0x256e8f{constructor(_0x45a037,_0x5e02a3,_0x3988ad,_0x7614f1,_0x412d49,_0x342898,_0xbabf28,_0x2f4be2,_0x179992,_0x41af6c,_0x10d49b,_0x15daf2){const _0x13e85f=_0x33b4ed;super(),this[_0x13e85f(0x27f)]=_0x45a037,this['_sidebarService']=_0x5e02a3,this['_menuManagerService']=_0x3988ad,this[_0x13e85f(0x1be)]=_0x7614f1,this[_0x13e85f(0x308)]=_0x412d49,this[_0x13e85f(0x2c8)]=_0x342898,this[_0x13e85f(0x356)]=_0xbabf28,this['_docCanvasPopManagerService']=_0x2f4be2,this[_0x13e85f(0x414)]=_0x179992,this[_0x13e85f(0x263)]=_0x41af6c,this[_0x13e85f(0x3c8)]=_0x10d49b,this[_0x13e85f(0x376)]=_0x15daf2,X(this,_0x13e85f(0x340),null),X(this,'_activeShapeInfo',null),X(this,_0x13e85f(0x1f6),!0x1),X(this,_0x13e85f(0x1c2),0x0),X(this,'_disposePopupsByUnit',new Map()),X(this,_0x13e85f(0x3a1),new Map()),this[_0x13e85f(0x3d4)](),this[_0x13e85f(0x39a)](this[_0x13e85f(0x27f)][_0x13e85f(0x3dc)](_0x248b26['UNIVER_DOC'])[_0x13e85f(0x364)](_0x3f62e2=>{const _0x5e820=_0x13e85f;if(!_0x3f62e2){var _0x4cd315;(_0x4cd315=this['_sidebarDisposable'])==null||_0x4cd315[_0x5e820(0x2e5)]();}})),this[_0x13e85f(0x24b)](),this[_0x13e85f(0x39a)](this[_0x13e85f(0x356)]['remove$']['subscribe'](_0x4429c1=>{const _0x26d58b=_0x13e85f;for(let _0x2e876b of _0x4429c1){let _0x3b3019=_0x2e876b[_0x26d58b(0x1c7)]+':'+_0x2e876b[_0x26d58b(0x1c6)]+':'+_0x2e876b[_0x26d58b(0x310)];for(let [_0x92333c,_0x368c8d]of this['_popupTargetKeys'])_0x368c8d===_0x3b3019&&this[_0x26d58b(0x351)](_0x92333c,!0x0);}})),this[_0x13e85f(0x39a)](_0x312ad1(this[_0x13e85f(0x414)],_0x248b26[_0x13e85f(0x1bd)],_0xe28349=>this[_0x13e85f(0x27b)](_0xe28349))),this[_0x13e85f(0x39a)](this[_0x13e85f(0x3c8)][_0x13e85f(0x426)][_0x13e85f(0x364)](_0x58b540=>{_0x58b540&&this['_clearPopups'](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x13e85f(0x376)][_0x13e85f(0x20d)]['subscribe'](()=>{const _0x440393=_0x13e85f;this[_0x440393(0x356)]['getFocusDrawings']()[_0x440393(0x2e0)](_0x2ab639=>_0x2ab639['drawingType']===_0x197ccb[_0x440393(0x374)]&&this[_0x440393(0x27f)][_0x440393(0x200)](_0x2ab639['unitId'])===_0x248b26['UNIVER_DOC']&&!this[_0x440393(0x3de)](_0x2ab639[_0x440393(0x1c7)],_0x2ab639[_0x440393(0x310)]))&&(this[_0x440393(0x351)](void 0x0,!0x0),this['_closeShapeEditPanel']());}));}['_initMenu'](){const _0x94948c=_0x33b4ed;this[_0x94948c(0x1ed)]['mergeMenu'](Ii);}[_0x33b4ed(0x360)](_0x3d7ef4,_0x5013b1,_0x5f33b3,_0x484db8){const _0x488832=_0x33b4ed;return[{'label':_0x488832(0x1f4),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3},'disable':_0x484db8===_0x197ccb[_0x488832(0x267)]},{'label':_0x488832(0x285),'index':0x1,'commandId':_0x3f45a7['id'],'commandParams':{'unitId':_0x3d7ef4,'drawings':[{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3}]},'disable':!0x1},{'label':_0x488832(0x3b0),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x3d7ef4,'subUnitId':_0x5013b1,'drawingId':_0x5f33b3},'disable':!0x1}];}[_0x33b4ed(0x241)](_0x18d681,_0x244463,_0x1d855c){const _0x11613c=_0x33b4ed;let _0x51b78a=this[_0x11613c(0x1be)][_0x11613c(0x2a7)](_0x18d681,_0x244463,_0x1d855c),_0x132274=this[_0x11613c(0x1be)][_0x11613c(0x1e0)](_0x18d681,_0x244463,_0x1d855c);return _0x51b78a!==void 0x0&&_0x132274!==void 0x0?{'shapeData':_0x132274,'shapeId':_0x1d855c,'shapeType':_0x51b78a,'unitId':_0x18d681,'subUnitId':_0x244463,'version':this[_0x11613c(0x1c2)],'disableShapeOption':!0x1}:null;}[_0x33b4ed(0x351)](_0x15f40d,_0x18b85c=!0x1){const _0x2d6a6a=_0x33b4ed;if(_0x15f40d==null){[...this[_0x2d6a6a(0x2ba)][_0x2d6a6a(0x316)]()][_0x2d6a6a(0x27a)](_0x154bb9=>this['_clearPopups'](_0x154bb9,_0x18b85c));return;}let _0x5b703a=this[_0x2d6a6a(0x2ba)][_0x2d6a6a(0x3d8)](_0x15f40d);if(_0x5b703a){for(let _0x2a071d=_0x5b703a['length']-0x1;_0x2a071d>=0x0;--_0x2a071d){let _0x4bd975=_0x5b703a[_0x2a071d];(_0x18b85c||_0x4bd975['canDispose']())&&(_0x4bd975[_0x2d6a6a(0x2e5)](),_0x5b703a[_0x2d6a6a(0x203)](_0x2a071d,0x1));}_0x5b703a['length']===0x0&&(this[_0x2d6a6a(0x2ba)]['delete'](_0x15f40d),this[_0x2d6a6a(0x3a1)][_0x2d6a6a(0x3c4)](_0x15f40d));}}['_getDisposePopups'](_0xa7b35d){const _0xdc41b7=_0x33b4ed;let _0x29390e=this[_0xdc41b7(0x2ba)]['get'](_0xa7b35d);if(_0x29390e)return _0x29390e;let _0x1d22dd=[];return this[_0xdc41b7(0x2ba)][_0xdc41b7(0x328)](_0xa7b35d,_0x1d22dd),_0x1d22dd;}[_0x33b4ed(0x27b)](_0xab6837){const _0x2276cd=_0x33b4ed;var _0x437789;let _0x2aa802=new _0x107b45(),_0x2473fd=(_0x437789=this['_renderManagerService'][_0x2276cd(0x352)](_0x248b26[_0x2276cd(0x1bd)])[_0x2276cd(0x2cc)](_0x8a4929=>_0x8a4929[_0x2276cd(0x2e9)][_0x2276cd(0x29f)]()===_0xab6837))==null?void 0x0:_0x437789[_0x2276cd(0x1c7)];return _0x2473fd&&(_0x2aa802[_0x2276cd(0x205)](_0xab6837[_0x2276cd(0x34e)]['subscribe'](()=>this['_handleCreateControl'](_0xab6837,_0x2473fd))),_0x2aa802['add'](_0xab6837[_0x2276cd(0x38c)][_0x2276cd(0x364)](()=>{const _0x337db3=_0x2276cd;this[_0x337db3(0x351)](_0x2473fd),queueMicrotask(()=>{const _0xa7eb1e=_0x337db3;_0xab6837[_0xa7eb1e(0x39e)]()['size']>0x0||!this[_0xa7eb1e(0x356)][_0xa7eb1e(0x26c)]()[_0xa7eb1e(0x2e0)](_0x1230f0=>_0x1230f0['unitId']===_0x2473fd)||(this[_0xa7eb1e(0x263)][_0xa7eb1e(0x327)](_0x2a75d8,!0x1),this[_0xa7eb1e(0x356)][_0xa7eb1e(0x2d5)](null));});})),_0x2aa802['add'](_0xab6837[_0x2276cd(0x36a)][_0x2276cd(0x364)](()=>{const _0xd28be9=_0x2276cd;this[_0xd28be9(0x351)](_0x2473fd,!0x0);}))),_0x2aa802;}['_handleCreateControl'](_0xbd7e6c,_0x61bb35){const _0x5f5a00=_0x33b4ed;let _0x55ea98=_0xbd7e6c[_0x5f5a00(0x39e)]();if(this[_0x5f5a00(0x1f6)]){this[_0x5f5a00(0x351)](_0x61bb35,!0x0);return;}if(_0x55ea98[_0x5f5a00(0x391)]>0x1){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x4d8855=_0x55ea98[_0x5f5a00(0x1f2)]()[_0x5f5a00(0x339)]()['value'];if(!_0x4d8855){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x2a6765=this[_0x5f5a00(0x356)][_0x5f5a00(0x2ef)](_0x4d8855['oKey']);if(!_0x2a6765||_0x2a6765[_0x5f5a00(0x221)]!==_0x197ccb[_0x5f5a00(0x374)]){this[_0x5f5a00(0x351)](_0x61bb35);return;}let {unitId:_0x3c85a3,subUnitId:_0x512f86,drawingId:_0x3b58ce,drawingType:_0x373167}=_0x2a6765;if(!this[_0x5f5a00(0x3de)](_0x3c85a3,_0x3b58ce)){this['_clearPopups'](_0x61bb35,!0x0);return;}let _0x13c792=this['_getShapeInfo'](_0x3c85a3,_0x512f86,_0x3b58ce);if(!_0x13c792){this[_0x5f5a00(0x351)](_0x61bb35);return;}let _0x9bbcee=this[_0x5f5a00(0x2ba)][_0x5f5a00(0x3d8)](_0x61bb35),_0x3957a0=_0x3c85a3+':'+_0x512f86+':'+_0x3b58ce;if(this[_0x5f5a00(0x3a1)][_0x5f5a00(0x3d8)](_0x61bb35)===_0x3957a0&&_0x9bbcee&&_0x9bbcee['length']>0x0)return;this['_clearPopups'](_0x61bb35);let _0x5e54e7=this[_0x5f5a00(0x414)][_0x5f5a00(0x359)](_0x3c85a3),_0x2d95af=((_0x5e54e7==null?void 0x0:_0x5e54e7[_0x5f5a00(0x2c1)])===!0x1?_0x5e54e7[_0x5f5a00(0x28f)](_0x506b97):this[_0x5f5a00(0x333)])[_0x5f5a00(0x1d6)](_0x4d8855,this['_getShapePopup'](_0x13c792,_0x373167),_0x3c85a3);this[_0x5f5a00(0x39a)](_0x2d95af),this['_getDisposePopups'](_0x61bb35)[_0x5f5a00(0x3db)](_0x2d95af),this[_0x5f5a00(0x3a1)][_0x5f5a00(0x328)](_0x61bb35,_0x3957a0),this[_0x5f5a00(0x356)]['getFocusDrawings']()[_0x5f5a00(0x2e0)](_0x1c4616=>_0x1c4616[_0x5f5a00(0x1c7)]===_0x3c85a3&&_0x1c4616[_0x5f5a00(0x1c6)]===_0x512f86&&_0x1c4616[_0x5f5a00(0x310)]===_0x3b58ce)||this[_0x5f5a00(0x356)][_0x5f5a00(0x2d5)]([{'unitId':_0x3c85a3,'subUnitId':_0x512f86,'drawingId':_0x3b58ce}]);}['_getShapePopup'](_0x1ae738,_0x1f0684){const _0x48cefb=_0x33b4ed;return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x48cefb(0x1d7),'offset':[0x0,_0x51c5f7],'extraProps':{'unitId':_0x1ae738[_0x48cefb(0x1c7)],'subUnitId':_0x1ae738[_0x48cefb(0x1c6)],'drawingId':_0x1ae738['shapeId'],'drawingType':_0x1f0684,'shapeType':_0x1ae738['shapeType'],'shapeData':_0x1ae738[_0x48cefb(0x295)]}};}['_canEditShape'](_0x8b2dc9,_0x1c1e5c){const _0x5a9a25=_0x33b4ed;let _0x3b51b9=this[_0x5a9a25(0x27f)][_0x5a9a25(0x3c5)](_0x8b2dc9,_0x248b26[_0x5a9a25(0x1bd)]);if(!_0x3b51b9)return!0x1;let _0x5ed6eb=_0x1142fd(_0x3b51b9,_0x1c1e5c);return _0x1e4951(this[_0x5a9a25(0x376)],_0x8b2dc9,[..._0x2e9cb2(_0x3b51b9,_0x5ed6eb,'drawing',_0x1c1e5c),_0x365faa(_0x5ed6eb,'drawing',_0x1c1e5c)]);}[_0x33b4ed(0x24b)](){const _0x2c2718=_0x33b4ed;this[_0x2c2718(0x39a)](this['_commandService'][_0x2c2718(0x2df)](_0x3c5120=>{const _0x5d8ee0=_0x2c2718;if(_0x3c5120['id']===G['id']){let {unitId:_0x3a330b,subUnitId:_0x37b6c6,drawingId:_0x1ec92a}=_0x3c5120[_0x5d8ee0(0x1f5)];this[_0x5d8ee0(0x1c2)]+=0x1,this[_0x5d8ee0(0x329)]=this['_getShapeInfo'](_0x3a330b,_0x37b6c6,_0x1ec92a),this['_clearPopups'](void 0x0,!0x0),this[_0x5d8ee0(0x288)]();}if(_0x3c5120['id']===zi['id']&&(this[_0x5d8ee0(0x329)]=null,this[_0x5d8ee0(0x309)]()),_0x3c5120['id']===_0xee5b39['id']){let {unitId:_0x3c5de6,shapeId:_0xbc43a7}=_0x3c5120[_0x5d8ee0(0x1f5)];if(this[_0x5d8ee0(0x329)]&&this[_0x5d8ee0(0x329)][_0x5d8ee0(0x402)]===_0xbc43a7){let _0x269db8=this[_0x5d8ee0(0x241)](_0x3c5de6,this[_0x5d8ee0(0x329)][_0x5d8ee0(0x1c6)],_0xbc43a7);_0x269db8&&(this[_0x5d8ee0(0x1c2)]+=0x1,_0x269db8[_0x5d8ee0(0x3b2)]=this[_0x5d8ee0(0x1c2)],this[_0x5d8ee0(0x329)]=_0x269db8,this['_isOpenedShapeEditPanel']&&this[_0x5d8ee0(0x288)]());}}})),this['disposeWithMe'](this[_0x2c2718(0x356)][_0x2c2718(0x1d8)]['subscribe'](_0x175ae0=>{const _0x55f513=_0x2c2718;if(this[_0x55f513(0x1f6)]===!0x1)return;if(_0x175ae0[_0x55f513(0x348)]===0x0){this['_activeShapeInfo']=null,this[_0x55f513(0x309)]();return;}if(_0x175ae0['length']===0x1&&_0x175ae0[0x0][_0x55f513(0x221)]===_0x197ccb[_0x55f513(0x374)]&&(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0][_0x55f513(0x1c7)],_0x175ae0[0x0][_0x55f513(0x1c6)],_0x175ae0[0x0][_0x55f513(0x310)]),this[_0x55f513(0x329)])){this[_0x55f513(0x288)]();return;}let _0x3c89db=_0x175ae0[_0x55f513(0x319)](_0x4298a0=>_0x4298a0[_0x55f513(0x221)]===_0x197ccb['DRAWING_SHAPE']);if(_0x175ae0[_0x55f513(0x348)]>0x1&&_0x3c89db[_0x55f513(0x348)]===_0x175ae0[_0x55f513(0x348)]){if(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0][_0x55f513(0x1c7)],_0x175ae0[0x0]['subUnitId'],_0x175ae0[0x0][_0x55f513(0x310)]),this['_activeShapeInfo']){this[_0x55f513(0x288)]();return;}}else{if(this[_0x55f513(0x1c2)]+=0x1,this[_0x55f513(0x329)]=this[_0x55f513(0x241)](_0x175ae0[0x0]['unitId'],_0x175ae0[0x0][_0x55f513(0x1c6)],_0x175ae0[0x0][_0x55f513(0x310)]),this[_0x55f513(0x329)]){this[_0x55f513(0x329)][_0x55f513(0x206)]=!0x0,this[_0x55f513(0x288)]();return;}}this[_0x55f513(0x309)]();}));}[_0x33b4ed(0x288)](){const _0x1687e3=_0x33b4ed;this['_activeShapeInfo']&&(this[_0x1687e3(0x340)]=this['_sidebarService']['open']({'id':W,'header':{'title':this[_0x1687e3(0x308)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':W,...this[_0x1687e3(0x329)]},'onClose':()=>{const _0x2a9f48=_0x1687e3;this[_0x2a9f48(0x356)]['focusDrawing'](null),this['_contextService'][_0x2a9f48(0x327)](_0x2a75d8,!0x1),this[_0x2a9f48(0x340)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x33b4ed(0x309)](){const _0x5a962b=_0x33b4ed;this['_isOpenedShapeEditPanel']=!0x1,this[_0x5a962b(0x1e1)][_0x5a962b(0x33a)](W),this['_sidebarDisposable']=null,this[_0x5a962b(0x263)][_0x5a962b(0x327)](_0x2a75d8,!0x1),this[_0x5a962b(0x356)]['focusDrawing'](null);}};Ma=q([K(0x0,_0x1e69fb),K(0x1,_0x179bf2(_0x1658ad)),K(0x2,_0x4b4118),K(0x3,_0x179bf2(_0x2b6cfd)),K(0x4,_0x179bf2(_0x5a1674)),K(0x5,_0x2474c3),K(0x6,_0x8501d),K(0x7,_0x179bf2(_0x506b97)),K(0x8,_0x456b85),K(0x9,_0x651387),K(0xa,_0x179bf2(Q)),K(0xb,_0x371e1a)],Ma);let Na=class extends _0x256e8f{constructor(_0x3a4378,_0x368361){const _0x355d8a=_0x33b4ed;super(),this[_0x355d8a(0x1be)]=_0x3a4378,this[_0x355d8a(0x308)]=_0x368361,this[_0x355d8a(0x39a)](_0x519bb5(_0x1201f1((_0x48a88c,_0x5daecf,_0x347a55)=>this['_measure'](_0x48a88c,_0x5daecf,_0x347a55))));}[_0x33b4ed(0x33e)](_0x510ac4,_0x37c442,_0x531344){const _0x11fefd=_0x33b4ed;let _0x3fbb72=this['_docsShapeService']['getShapeModel'](_0x510ac4,_0x37c442);if(!_0x3fbb72)return null;let _0x14d53b=_0x3fbb72[_0x11fefd(0x244)](),_0x4fb974=_0x3ab30e(_0x14d53b),_0x5bcadd=_0x14d53b['shapeText'];if(!_0x5bcadd||_0x4fb974[_0x11fefd(0x3b3)]!==_0x251b87[_0x11fefd(0x22a)])return null;let _0x1e21fc=_0x531344[_0x11fefd(0x226)],_0x25cae6=_0x531344[_0x11fefd(0x382)];_0x3fbb72[_0x11fefd(0x395)]({'width':_0x1e21fc,'height':_0x25cae6});let _0x1b78c8=_0x3fbb72[_0x11fefd(0x429)]({'left':0x0,'top':0x0,'width':_0x1e21fc,'height':_0x25cae6}),_0x41f659=_0x323514(_0x11fefd(0x1d5)in _0x5bcadd?_0x5bcadd[_0x11fefd(0x1d5)]:void 0x0),_0x4c4d82=(_0x41f659==null?void 0x0:_0x41f659[_0x11fefd(0x313)])??('isRichText'in _0x5bcadd?_0x269d0d(_0x5bcadd,_0x37c442+_0x11fefd(0x26f)):null);if(!_0x4c4d82)return null;let _0x1332e0=_0x1e5357({'documentData':_0x4c4d82,'height':_0x25cae6,'shapeData':_0x14d53b,'textRect':_0x1b78c8,'width':_0x1e21fc,'widthBuffer':0x0});_0x1332e0&&({width:_0x1e21fc,height:_0x25cae6}=_0x1332e0,_0x3fbb72[_0x11fefd(0x395)]({'width':_0x1e21fc,'height':_0x25cae6}),_0x1b78c8=_0x3fbb72['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x1e21fc,'height':_0x25cae6}));let _0x58dd63=_0x5bcadd['isHorizontal']!==!0x1,_0x3a4419=_0x3b60aa(_0x4c4d82,{'isHorizontal':_0x58dd63,'textRect':_0x1b78c8,'verticalAlign':_0x41f659==null?void 0x0:_0x41f659['va'],'horizontalAlign':_0x41f659==null?void 0x0:_0x41f659['ha'],'wrapStrategy':_0x3f29ab(_0x14d53b)}),_0x185c11=new _0x483eaa(_0x3a4419),_0x4c757b=new _0x2fd191(_0x185c11),_0x308589=_0x11abd9['create'](_0x4c757b,this[_0x11fefd(0x308)]);try{var _0x2b8a4d,_0x43067a;_0x308589[_0x11fefd(0x389)]();let _0x440558=((_0x2b8a4d=_0x308589[_0x11fefd(0x1c1)]())==null?void 0x0:_0x2b8a4d['pages'])??[],_0x5661ea=_0x440558[_0x440558[_0x11fefd(0x348)]-0x1],_0x4d8d41=_0x5661ea?Math[_0x11fefd(0x366)](0x0,((_0x43067a=_0x522a83(_0x5661ea))==null?void 0x0:_0x43067a[_0x11fefd(0x2a0)])??0x0):0x0,_0x5cdbc9=_0x308589['getActualSize']()['actualHeight']+_0x4d8d41-(_0x58dd63?_0x1b78c8['height']:_0x1b78c8['width']);return Number[_0x11fefd(0x265)](_0x5cdbc9)?_0x58dd63?{'width':_0x1e21fc,'height':Math[_0x11fefd(0x366)](0x1,_0x25cae6+_0x5cdbc9)}:{'width':Math['max'](0x1,_0x1e21fc+_0x5cdbc9),'height':_0x25cae6}:null;}finally{_0x308589[_0x11fefd(0x2e5)](),_0x4c757b[_0x11fefd(0x2e5)](),_0x185c11[_0x11fefd(0x2e5)]();}}};Na=q([K(0x0,_0x179bf2(_0x2b6cfd)),K(0x1,_0x179bf2(_0x5a1674))],Na);let Pa=class extends _0x43bd26{constructor(_0x5d6c65=Vi,_0xa802b9,_0x487747,_0x2a8090,_0x51336b){const _0x50739f=_0x33b4ed;super(),this[_0x50739f(0x368)]=_0x5d6c65,this[_0x50739f(0x233)]=_0xa802b9,this['_commandService']=_0x487747,this[_0x50739f(0x396)]=_0x2a8090,this[_0x50739f(0x414)]=_0x51336b;let {menu:_0x473745,..._0x5857b4}=_0x2d69fe({},Vi,this[_0x50739f(0x368)]);_0x473745&&this[_0x50739f(0x396)][_0x50739f(0x420)](_0x50739f(0x31f),_0x473745,{'merge':!0x0}),this[_0x50739f(0x396)]['setConfig'](Bi,_0x5857b4),this[_0x50739f(0x2a2)]();}[_0x33b4ed(0x282)](){const _0x526720=_0x33b4ed;_0x490b6f(this[_0x526720(0x233)],this[_0x526720(0x21f)]()),this[_0x526720(0x233)][_0x526720(0x3d8)](wa),this['_initUIPart']();}[_0x33b4ed(0x21f)](){return[[wa],[Ma],[Sa],[$],[Yi],[qi],[J],[ia],[Na],[Q],[xa]];}[_0x33b4ed(0x2d3)](){const _0x2cec05=_0x33b4ed;this['_getRenderModules']()['forEach'](_0x19ad6e=>{const _0x33e117=_0x3935;this['disposeWithMe'](this[_0x33e117(0x414)][_0x33e117(0x248)](_0x248b26['UNIVER_DOC'],_0x19ad6e));}),_0x899513(this[_0x2cec05(0x233)],[[Ma],[Sa],[$],[Yi],[J],[ia],[Na],[Q],[xa]]);}[_0x33b4ed(0x3d6)](){return[[qi],[ka],[ja],[Ta]];}['onRendered'](){const _0x54db57=_0x33b4ed;this[_0x54db57(0x39a)](this[_0x54db57(0x414)][_0x54db57(0x248)](_0x248b26['UNIVER_DOC'],[Aa]));}[_0x33b4ed(0x2a2)](){const _0x151201=_0x33b4ed;[U,zi,G,Nr,Fr,Ir][_0x151201(0x27a)](_0x6eb092=>this[_0x151201(0x39a)](this[_0x151201(0x2c8)]['registerCommand'](_0x6eb092)));}[_0x33b4ed(0x202)](){const _0x367d18=_0x33b4ed;let _0xea524c=this['_injector'],_0x2d6cff=_0xea524c[_0x367d18(0x3d8)](_0x94208e);this[_0x367d18(0x39a)](_0x2d6cff['registerComponent'](_0x42abda[_0x367d18(0x416)],()=>_0x6c788(_a,_0xea524c)));}};X(Pa,'type',_0x248b26['UNIVER_DOC']),X(Pa,_0x33b4ed(0x20a),'DOCS_SHAPE_UI_PLUGIN'),X(Pa,'packageName',Li),X(Pa,'version',Ri),Pa=q([_0xeaf711(_0x3c2eb4,_0x2db5f7,_0x2b9ee4,_0x11c27b,_0x28d240,_0x4dda97,_0x1a75fd,_0x428172,_0x2ef163,_0x2e48c9),K(0x1,_0x179bf2(_0x3193fa)),K(0x2,_0x2474c3),K(0x3,_0x4747a4),K(0x4,_0x456b85)],Pa);export{Ii as DocsShapeUIMenuSchema,Ca as UniverDocsShapeMobileUIPlugin,Pa as UniverDocsShapeUIPlugin};
1
+ const _0x32a71f=_0x1001;(function(_0x19f2ad,_0x33a2fe){const _0xca5b64=_0x1001,_0x25511e=_0x19f2ad();while(!![]){try{const _0x310ccf=parseInt(_0xca5b64(0x23f))/0x1*(-parseInt(_0xca5b64(0x29e))/0x2)+-parseInt(_0xca5b64(0x1e1))/0x3+-parseInt(_0xca5b64(0x1bc))/0x4+parseInt(_0xca5b64(0x29b))/0x5*(parseInt(_0xca5b64(0x155))/0x6)+-parseInt(_0xca5b64(0x1e7))/0x7+parseInt(_0xca5b64(0x151))/0x8*(parseInt(_0xca5b64(0x218))/0x9)+parseInt(_0xca5b64(0x145))/0xa;if(_0x310ccf===_0x33a2fe)break;else _0x25511e['push'](_0x25511e['shift']());}catch(_0x3048c0){_0x25511e['push'](_0x25511e['shift']());}}}(_0x28d4,0x416fc));import{FormulaShapeAnimationController as _0x18e468,MobileShapeEditorControls as _0x2c7fe0,MobileShapeEditorService as _0x3428e7,MobileShapePickerPanel as _0x27b091,SHAPE_CHANGE_PICKER_COMPONENT as _0x42e893,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x57df74,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x30e9cd,ShapeEditPanel as _0x51c0ee,ShapeFloatingToolbar as _0x44d488,ShapeFloatingToolbarService as _0x430d17,ShapeFloatingToolbarToggleFactory as _0x2db638,ShapeFormulaRibbonControl as _0x309ffa,ShapeGroupEnum as _0x559780,ShapePickerDropdown as _0x4fa07b,ShapePickerPanel as _0x5b57b2,ShapeQuickStyleGallery as _0x175d27,ShapeStyleRibbonControl as _0x3be322,ShapeTextEditorContainer as _0x214ef0,ShapeTextFloatMenuRenderControllerBase as _0x333d7a,ShapeTextFloatToolbar as _0x23abff,ShapeTextHyperLinkHoverController as _0x48ac61,ShapeTextHyperLinkInfo as _0x2b9edd,ShapeTextHyperLinkPopupService as _0x2936de,ShapeTextRibbonControl as _0x4c4d93,ToggleShapeFloatingToolbarOperation as _0x4401be,UniverShapeEditorMobileUIPlugin as _0x13e226,UniverShapeEditorUIPlugin as _0x1dfb76,activateDrawingObject as _0x39a301,bindRenderTransformerLifecycle as _0x3b2a2e,buildShapeTextDataUpdate as _0xefb2e4,clearActiveDrawingObjects as _0x2a4339,createShapeTextHyperLinkRegions as _0x47d7d2,drawFormulaShapeAnimationLayers as _0x5f1fa7,getDrawingTypeNameKey as _0x514963,getTextModel as _0x5b2914,getTextStyle as _0x427742,normalizeShapeTextModel as _0x50f618,plainShapeTextToDocumentData as _0x53583b,prepareShapeTextDocumentData as _0x2e8990,prepareShapeTextDocumentData as _0x927fd0,registerShapeFormatPainter as _0x285f85,resolveFormulaShapeAutoFitSize as _0x1a341c,resolveShapeContextualRibbonHostMode as _0x44344d,resolveShapeTextDocumentPageHeight as _0x397b43,resolveShapeTextDocumentRenderLayout as _0xef14b1,resolveShapeTextEditorBehaviorShapeData as _0x185bbf,resolveShapeTextEditorWrapStrategy as _0x4fb842,resolveShapeTextHyperLinkAt as _0x495676,resolveShapeTextHyperLinkObject as _0x1cbc43,shouldAllowShapeTextEditorHostSizeShrink as _0x39b2d7,shouldClipShapeTextDocument as _0x5638fb,useFormulaShapeToolbar as _0x5e25a0}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x1a7818,DOC_CONTENT_INSERT_MENU_ID as _0xecf749,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x21e77b,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x5924b6,DocCanvasPopManagerService as _0x4f5bac,DocEventManagerService as _0x3b113a,DocLayoutInteractionService as _0x35ca2b,DocParagraphMenuService as _0xbb9349,DocPrintInterceptorService as _0x3ef681,DocRenderController as _0x372b92,DocSelectionRenderService as _0x39efa1,EMPTY_PARAGRAPH_MENU_ID as _0x5aa79b,INSERT_BELLOW_MENU_ID as _0x572e5e,UniverDocsMobileUIPlugin as _0x2e0958,UniverDocsUIPlugin as _0x12a8a9,VIEWPORT_KEY as _0x57ffaa}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x10447e,ComponentManager as _0x4a21c5,ContextMenuGroup as _0x2963c8,ContextMenuPosition as _0x232bdb,FloatingObjectToolbarPosition as _0x27b29d,FormatPainterSessionService as _0x3da8f7,IMenuManagerService as _0x5dfdbd,IRibbonService as _0x1f72f6,ISidebarService as _0xe1f947,IUIPartsService as _0x4963d7,IconManager as _0x1ffafb,MenuItemType as _0x12a09a,MenuManagerPosition as _0x7b07c8,MobileMenu as _0x1aa39b,ObjectPermissionButton as _0x59c9c0,RibbonInsertGroup as _0x39d1bd,connectInjector as _0x126ef4,getMenuHiddenObservable as _0x1e9e84,useDependency as _0x524c26,useObservable as _0x182a72}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4c06da,DEFAULT_DOC_SHAPE_WIDTH as _0x56df4e,DocShapeAnchorPosition as _0x459af1,DocsShapeService as _0x184287,InsertDocShapeCommand as _0x388b3f,UniverDocsShapePlugin as _0x32cb29,UpdateDocDrawingMetadataCommand as _0x44bd72,UpdateDocShapeDataCommand as _0x3ef3ef,UpdateDocShapeDataMutation as _0x365039}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x1f7d45,ShapeArrowSizeEnum as _0x487ead,ShapeArrowTypeEnum as _0x152cac,ShapeDefaultConfig as _0x4e34b8,ShapeFillEnum as _0x1c8a88,ShapeLineTypeEnum as _0x4d16dc,ShapeModel as _0x33354b,ShapeRenderModeEnum as _0x59ddea,ShapeTextAutoFitType as _0xc8b38f,ShapeTypeEnum as _0x5211ce,isConnectorShape as _0x9d2c65,resolveShapeTextBodyBehavior as _0x45cef0}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x485ba6,UniverShapeEditorPlugin as _0xba057e,applyQuickStyleToShapeData as _0x76735e,cloneShapeDataForType as _0x1a5257,createShapeFormulaDocument as _0x22660d,createShapeTextBoxShapeData as _0x342d6c,getShapeQuickStylePreset as _0x1d66e,getShapeQuickStyleType as _0x2622a3,resolveActiveShapeQuickStylePresetId as _0x53a1f5}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x5e8379,BooleanNumber as _0x388e66,CommandType as _0x3471d8,DependentOn as _0x33e084,Disposable as _0x2c4c7f,DisposableCollection as _0x56165f,DocumentDataModel as _0x431d8e,DrawingTypeEnum as _0x27f24b,FOCUSING_COMMON_DRAWINGS as _0x2ec367,FOCUSING_SHAPE_TEXT_EDITOR as _0x141bb0,HorizontalAlign as _0x42ecd8,ICommandService as _0x4129fd,IConfigService as _0x5e645f,IContextService as _0x2ee1da,IImageIoService as _0xc8030d,IPermissionService as _0x4929ce,IURLImageService as _0x23dfb2,IUniverInstanceService as _0x434573,Inject as _0x9fe2f5,Injector as _0x56b06a,LocaleService as _0x7eb730,Plugin as _0x1fd758,PositionedObjectLayoutType as _0x54d491,UniverInstanceType as _0x5be7f7,VerticalAlign as _0x431afd,createInternalEditorID as _0x5b7aff,generateRandomId as _0x42773f,getParagraphContentStartOffset as _0x40d58c,merge as _0x30c246,registerDependencies as _0x4b3c2e,toDisposable as _0x8215d0,touchDependencies as _0xc0378d}from'@univerjs/core';import{DocInterceptorService as _0x3d657f,DocSelectionManagerService as _0x55aa00,RichTextEditingMutation as _0x206fac,SetDocumentPermissionCommand as _0x5eda77,UniverDocsPlugin as _0x528d37,canEditDocumentTargets as _0x55fe4b,getDocumentDrawingSegmentId as _0x4a6ec5,getDocumentEntityParentPermissionObjectIds as _0x1b791b,getDocumentEntityPermissionObjectId as _0x1c073e,getDocumentPermissionValue as _0xc184a4}from'@univerjs/docs';import{IDocDrawingService as _0x14a9e5,RemoveDocDrawingCommand as _0xa19455,SetDocDrawingArrangeCommand as _0x37ac4f,TextWrappingStyle as _0x47e1e5,UpdateDocDrawingWrappingStyleCommand as _0x3c0255,UpdateDrawingDocTransformCommand as _0x4c10e3}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x373d45,Circle as _0x17301a,DRAWING_OBJECT_LAYER_INDEX as _0x3c2d59,DocumentSkeleton as _0x4c3814,DocumentViewModel as _0x2d0ea1,Documents as _0x241399,IRenderManagerService as _0x4ad11d,RENDER_CLASS_TYPE as _0x5b306f,Shape as _0x47f417,Transform as _0x47a678,UniverRenderEnginePlugin as _0x15a661,Vector2 as _0x5bda34,getLastLine as _0x37e0a3,setDocsCustomBlockRenderViewportProvider as _0x391145}from'@univerjs/engine-render';import{IDrawingManagerService as _0x543f62,SetDrawingSelectedOperation as _0x22624d,UniverDrawingPlugin as _0x3d47f7,getDrawingShapeKeyByDrawingSearch as _0x362385}from'@univerjs/drawing';import{DrawingCommonPanel as _0x278b76,DrawingImageClipService as _0x549f80,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x306f90,MobileObjectListPanel as _0x4ba5fa,OBJECT_LIST_FLOATING_SECTION_ID as _0x16da46,ObjectListPanelBase as _0x43db65,UniverDrawingMobileUIPlugin as _0x4e337d,UniverDrawingUIPlugin as _0x3cac42,getObjectListPanelSectionIdForDrawingType as _0x54f200,insertGroupObject as _0x278be3}from'@univerjs/drawing-ui';import{Fragment as _0x146d4d,jsx as _0x5f386f,jsxs as _0x4e3d2c}from'react/jsx-runtime';import{BehaviorSubject as _0x26dc0a,Observable as _0x5533c8,defer as _0x50d862,distinctUntilChanged as _0x33dd29,map as _0x3741c9,merge as _0x4e55e8,of as _0x36eaca,startWith as _0x1b256c}from'rxjs';import{UniverLicensePlugin as _0x210dd0}from'@univerjs-pro/license';import{DocDrawingPosition as _0x24c73e,DocDrawingTextWrap as _0x52bfcc,MobileDocDrawingPosition as _0x548055,MobileDocDrawingTextWrap as _0x2675c0,UniverDocsDrawingMobileUIPlugin as _0x32ba78,UniverDocsDrawingUIPlugin as _0x27a5fe}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x32515c,MoreDownIcon as _0x291589,MoreUpIcon as _0x1e8bd3,MoveDownIcon as _0x2eb674,MoveUpIcon as _0x14f2ec,ObjectLayersIcon as _0x537f0c,ShapeFormatSettingIcon as _0x1d4214,TextWrapShapeIcon as _0x31d46d,TopmostIcon as _0x3e2c9d}from'@univerjs/icons';import{MobileActionRow as _0x2b6cd2}from'@univerjs/design';import{memo as _0x56f84a,useEffect as _0x1e3c60,useMemo as _0x49a817,useReducer as _0x5f5b79,useState as _0x7e4eb9}from'react';import{UnitAction as _0x4fdac2,UnitObject as _0x2c44d5}from'@univerjs/protocol';function Tr(_0x4ae7e2,_0x5dc46d){const _0x52f4a4=_0x1001;if(_0x5dc46d){if(_0x9d2c65(_0x4ae7e2)&&(_0x5dc46d[_0x52f4a4(0x17a)]||_0x5dc46d[_0x52f4a4(0x177)]))return{'ln':{'startArrow':_0x5dc46d[_0x52f4a4(0x17a)]?{'type':_0x152cac[_0x52f4a4(0x2ff)],'size':_0x487ead[_0x52f4a4(0x337)]}:void 0x0,'endArrow':_0x5dc46d[_0x52f4a4(0x177)]?{'type':_0x152cac['Arrow'],'size':_0x487ead['Large']}:void 0x0}};if(_0x4ae7e2===_0x5211ce[_0x52f4a4(0x289)]&&(_0x5dc46d[_0x52f4a4(0x2ac)]||_0x5dc46d[_0x52f4a4(0x305)]))return _0x342d6c({'fill':{'fillType':_0x1c8a88['SolidFill'],'color':_0x52f4a4(0x135)},'isHorizontal':!!_0x5dc46d[_0x52f4a4(0x2ac)],'stroke':{'lineStrokeType':_0x4d16dc[_0x52f4a4(0x353)],'width':0x1,'color':_0x52f4a4(0x264)}});}}function Er(_0x395541,_0x3d3ffe){const _0x27aa8c=_0x1001;var _0x4d6e89;let _0xf0f1b0=_0x3d3ffe[_0x27aa8c(0x2e7)]??'',_0x2806cd=(_0x4d6e89=_0x395541[_0x27aa8c(0x223)](_0xf0f1b0))==null?void 0x0:_0x4d6e89[_0x27aa8c(0x2f5)]();if(!_0x2806cd)return null;let _0x17a2a2=_0x2806cd[_0x27aa8c(0x216)]??[],_0x3b38fa=_0x17a2a2[_0x27aa8c(0x108)](_0x5be413=>{const _0x46b70a=_0x27aa8c;let _0x3b168f=_0x40d58c(_0x2806cd,_0x5be413);return _0x3d3ffe[_0x46b70a(0x21c)]>=_0x3b168f&&_0x3d3ffe['startOffset']<=_0x5be413[_0x46b70a(0x113)];})??_0x17a2a2[_0x17a2a2['length']-0x1];return _0x3b38fa?{'paragraphId':_0x3b38fa[_0x27aa8c(0x1f5)],'segmentId':_0xf0f1b0,'position':_0x459af1['OFFSET'],'offset':_0x3d3ffe[_0x27aa8c(0x21c)]-_0x40d58c(_0x2806cd,_0x3b38fa)}:null;}function Dr(_0x395867,_0x3931ad,_0x2b6b94){const _0x5ddf6d=_0x1001;var _0x3af6ca,_0x4bacb5;if(!_0x2b6b94)return null;let _0xc82330=(_0x3af6ca=_0x395867['get'](_0x4ad11d)[_0x5ddf6d(0x35e)](_0x3931ad))==null?void 0x0:_0x3af6ca[_0x5ddf6d(0x303)](_0xbb9349)[_0x5ddf6d(0x282)];if(!_0xc82330)return null;let _0x2861c8=_0x2b6b94===_0x5ddf6d(0x2be)?{'startOffset':_0xc82330[_0x5ddf6d(0x365)][_0x5ddf6d(0x296)],'endOffset':_0xc82330[_0x5ddf6d(0x365)][_0x5ddf6d(0x296)]}:_0xc82330[_0x5ddf6d(0x252)];return{'startOffset':_0x2861c8[_0x5ddf6d(0x21c)],'endOffset':_0x2861c8[_0x5ddf6d(0x296)],'collapsed':_0x2861c8[_0x5ddf6d(0x21c)]===_0x2861c8[_0x5ddf6d(0x296)],'segmentId':((_0x4bacb5=_0xc82330[_0x5ddf6d(0x220)])==null?void 0x0:_0x4bacb5[_0x5ddf6d(0x2e7)])??''};}const U={'type':_0x3471d8[_0x32a71f(0x359)],'id':'doc.command.menu-insert-shape','handler':async(_0x31abee,_0x37ae5a)=>{const _0x12ac04=_0x32a71f;let _0x39c1a7=_0x31abee[_0x12ac04(0x2ee)](_0x434573)[_0x12ac04(0x109)](_0x5be7f7[_0x12ac04(0x1c0)]);if(!_0x39c1a7)return!0x1;let _0x4a74d1=_0x31abee[_0x12ac04(0x2ee)](_0x4129fd),_0x12ed95=_0x39c1a7[_0x12ac04(0x1fc)](),_0x80ded6=_0x37ae5a[_0x12ac04(0x174)]??_0x42773f(),_0x332560=_0x37ae5a[_0x12ac04(0x200)]??_0x56df4e,_0x5911a5=_0x37ae5a[_0x12ac04(0x17f)]??_0x4c06da,_0x5d87fc=_0x37ae5a[_0x12ac04(0x33d)]??Tr(_0x37ae5a[_0x12ac04(0x1f3)],_0x37ae5a[_0x12ac04(0x2a2)]),_0x420934=Dr(_0x31abee,_0x12ed95,_0x37ae5a[_0x12ac04(0x2f3)])??_0x31abee[_0x12ac04(0x2ee)](_0x55aa00)[_0x12ac04(0x1ac)]();if(!_0x420934)return!0x1;let _0x2c53f7=Er(_0x39c1a7,_0x420934);return _0x2c53f7?!!_0x4a74d1[_0x12ac04(0x241)](_0x388b3f['id'],{'unitId':_0x12ed95,'shapeId':_0x80ded6,'shapeType':_0x37ae5a[_0x12ac04(0x1f3)],'shapeData':_0x5d87fc,'transform':{'width':_0x332560,'height':_0x5911a5},'placement':{'wrappingStyle':_0x47e1e5[_0x12ac04(0x1d1)],'anchor':_0x2c53f7}}):!0x1;}},W=_0x32a71f(0x1db),Or=_0x32a71f(0x2bb),kr='doc.shape.object-list.panel',Ar=_0x5b7aff(_0x32a71f(0x11b)),jr=_0x32a71f(0x1c5),Mr=_0x32a71f(0x18c),Nr={'id':_0x32a71f(0x302),'type':_0x3471d8['COMMAND'],'handler':(_0x5094a7,_0x5cea52)=>{const _0x204655=_0x32a71f;let _0x15d0ca=_0x5094a7['get'](_0xe1f947),_0x38850e=_0x5094a7['get'](_0x7eb730),_0x303586=_0x5094a7['get'](_0x543f62);return(_0x5cea52==null?void 0x0:_0x5cea52[_0x204655(0x1f3)])==='close'?(_0x15d0ca[_0x204655(0x2cc)](kr),!0x0):(_0x15d0ca[_0x204655(0x11d)]({'id':kr,'header':{'title':_0x38850e['t'](_0x204655(0x196))},'children':{'label':kr},'onClose':()=>{const _0xbf8caf=_0x204655;_0x303586[_0xbf8caf(0x306)](null);},'width':0x168}),!0x0);}},G={'type':_0x3471d8[_0x32a71f(0x2de)],'id':_0x32a71f(0x149),'handler'(){return!0x0;}};function Pr(_0x5902fa){const _0x5825da=_0x32a71f;let _0xc0a55c=_0x5902fa[_0x5825da(0x2ee)](_0x543f62)[_0x5825da(0x1d6)](),_0x4f5d53=_0xc0a55c[_0x5825da(0x1a1)]===0x1?_0xc0a55c[0x0]:null;if(!_0x4f5d53||_0x4f5d53['drawingType']!==_0x27f24b[_0x5825da(0x10d)])return null;let _0x524521=_0x5902fa[_0x5825da(0x2ee)](_0x184287),_0x4efe2c=_0x524521['getShapeTypeById'](_0x4f5d53['unitId'],_0x4f5d53[_0x5825da(0x356)],_0x4f5d53[_0x5825da(0x335)]),_0x24aef5=_0x524521[_0x5825da(0x373)](_0x4f5d53['unitId'],_0x4f5d53[_0x5825da(0x356)],_0x4f5d53[_0x5825da(0x335)]);return _0x4efe2c===void 0x0||!_0x24aef5?null:{'drawing':_0x4f5d53,'shapeData':_0x24aef5,'shapeType':_0x4efe2c};}const Fr={'id':'doc.operation.apply-shape-quick-style','type':_0x3471d8[_0x32a71f(0x2de)],'handler':(_0x7ac7f6,_0x52592f)=>{const _0xebb6aa=_0x32a71f;let _0x33f7f1=Pr(_0x7ac7f6),_0x435538=_0x1d66e((_0x52592f==null?void 0x0:_0x52592f[_0xebb6aa(0x1bb)])??(_0x52592f==null?void 0x0:_0x52592f[_0xebb6aa(0x1f3)])??'');if(!_0x33f7f1||!_0x435538||_0x435538['type']!==_0x2622a3(_0x33f7f1[_0xebb6aa(0x33d)]))return!0x1;let _0x180020=_0x76735e(_0x33f7f1[_0xebb6aa(0x33d)],_0x435538);if(!_0x180020)return!0x1;let {drawing:_0x194b9d}=_0x33f7f1;return _0x7ac7f6[_0xebb6aa(0x2ee)](_0x4129fd)[_0xebb6aa(0x2b2)](_0x3ef3ef['id'],{'unitId':_0x194b9d[_0xebb6aa(0x2c4)],'shapeId':_0x194b9d[_0xebb6aa(0x335)],'shapeData':_0x180020,'oldShapeJSON':{'oldShapeData':_0x33f7f1[_0xebb6aa(0x33d)]}});}},Ir={'id':_0x32a71f(0x34b),'type':_0x3471d8[_0x32a71f(0x2de)],'handler':(_0x2f2e53,_0x259d49)=>{const _0x2dc85c=_0x32a71f;let _0x34dd52=Pr(_0x2f2e53),_0x2b3a19=(_0x259d49==null?void 0x0:_0x259d49['shapeType'])??(_0x259d49==null?void 0x0:_0x259d49[_0x2dc85c(0x1f3)]);if(!_0x34dd52||!_0x2b3a19||_0x9d2c65(_0x34dd52[_0x2dc85c(0x168)])||_0x9d2c65(_0x2b3a19))return!0x1;let _0x32c16d=_0x1a5257(_0x34dd52['shapeData'],_0x2b3a19);if(!_0x32c16d)return!0x1;let {drawing:_0x35f6ec}=_0x34dd52;return _0x2f2e53['get'](_0x4129fd)[_0x2dc85c(0x2b2)](_0x3ef3ef['id'],{'unitId':_0x35f6ec[_0x2dc85c(0x2c4)],'shapeId':_0x35f6ec[_0x2dc85c(0x335)],'shapeType':_0x2b3a19,'shapeData':_0x32c16d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x34dd52[_0x2dc85c(0x168)],'oldShapeData':_0x34dd52[_0x2dc85c(0x33d)]}});}};function K(_0x5944cc,_0x2f8bc2){return function(_0x57a724,_0x42f8ca){_0x2f8bc2(_0x57a724,_0x42f8ca,_0x5944cc);};}function q(_0x27f298,_0x4aef7c,_0x4ad4be,_0x5a35e4){const _0x3aaa9d=_0x32a71f;var _0x1cc2a0=arguments['length'],_0x45b1c1=_0x1cc2a0<0x3?_0x4aef7c:_0x5a35e4===null?_0x5a35e4=Object['getOwnPropertyDescriptor'](_0x4aef7c,_0x4ad4be):_0x5a35e4,_0x2d4da3;if(typeof Reflect==_0x3aaa9d(0x2e6)&&typeof Reflect[_0x3aaa9d(0x1e5)]==_0x3aaa9d(0x321))_0x45b1c1=Reflect['decorate'](_0x27f298,_0x4aef7c,_0x4ad4be,_0x5a35e4);else{for(var _0x14c97c=_0x27f298[_0x3aaa9d(0x1a1)]-0x1;_0x14c97c>=0x0;_0x14c97c--)(_0x2d4da3=_0x27f298[_0x14c97c])&&(_0x45b1c1=(_0x1cc2a0<0x3?_0x2d4da3(_0x45b1c1):_0x1cc2a0>0x3?_0x2d4da3(_0x4aef7c,_0x4ad4be,_0x45b1c1):_0x2d4da3(_0x4aef7c,_0x4ad4be))||_0x45b1c1);}return _0x1cc2a0>0x3&&_0x45b1c1&&Object['defineProperty'](_0x4aef7c,_0x4ad4be,_0x45b1c1),_0x45b1c1;}let J=class extends _0x2c4c7f{constructor(_0x30d94c,_0x59a914){const _0x632479=_0x32a71f;super(),this['_clipService']=_0x30d94c,this[_0x632479(0x2d2)]=_0x59a914,this[_0x632479(0x183)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x632479(0x12f)]({'dispose':()=>this[_0x632479(0x293)]['setCanUseShapeClip'](!0x1)});}[_0x32a71f(0x183)](){const _0x1d7651=_0x32a71f;let _0x20ef05=new Map(),_0x7dec6f=this[_0x1d7651(0x293)][_0x1d7651(0x21b)]((_0x2d08f9,_0x3c398f,_0x5addcb,_0x1c163b,_0x565d7a)=>{const _0x44ddb2=_0x1d7651;let _0x552e77=_0x3c398f;if(_0x552e77===_0x5211ce[_0x44ddb2(0x1b4)]||_0x3c398f===_0x44ddb2(0x34c))return!0x1;try{let _0x30bfa3=_0x20ef05[_0x44ddb2(0x2ee)](_0x3c398f);return _0x30bfa3||(_0x30bfa3=new _0x33354b(_0x552e77,_0x44ddb2(0x22f)+_0x3c398f),_0x20ef05['set'](_0x3c398f,_0x30bfa3)),_0x30bfa3['clearAdjustValue'](),_0x565d7a&&Object['keys'](_0x565d7a)[_0x44ddb2(0x1a1)]>0x0&&_0x30bfa3[_0x44ddb2(0x322)]({'adjustValues':_0x565d7a},!0x0),_0x30bfa3[_0x44ddb2(0x2c7)]({'width':_0x5addcb,'height':_0x1c163b}),_0x30bfa3[_0x44ddb2(0x309)](_0x2d08f9,{'left':0x0,'top':0x0,'width':_0x5addcb,'height':_0x1c163b});}catch{return!0x1;}});this[_0x1d7651(0x12f)](_0x7dec6f),this[_0x1d7651(0x12f)]({'dispose':()=>_0x20ef05['clear']()});}[_0x32a71f(0x36a)](_0x203799,_0x503ce0,_0x4f10c1,_0x3e4272,_0x297062){const _0x5017d3=_0x32a71f;let _0x5916b6=this['_drawingManagerService'][_0x5017d3(0x334)](_0x203799,_0x503ce0)[_0x4f10c1];_0x5916b6&&_0x5916b6[_0x5017d3(0x32a)]===_0x27f24b['DRAWING_IMAGE']&&this[_0x5017d3(0x2d2)][_0x5017d3(0x153)]([{..._0x5916b6,'prstGeom':_0x3e4272,'adjustValues':_0x297062}]);}};J=q([K(0x0,_0x9fe2f5(_0x549f80)),K(0x1,_0x9fe2f5(_0x543f62))],J);const Lr='doc.shape.picker.component',Rr='doc.image-clip.shape-picker.component';function zr({onShapeClick:_0x27b475,excludeGroups:_0x5577f7}){const _0x4c2ce7=_0x32a71f;return _0x5f386f(_0x5b57b2,{'excludeGroups':_0x5577f7,'onShapeClick':_0x27b475,'scrollContainer':_0x4c2ce7(0x17d)});}function Br(){let _0x4be739=_0x524c26(_0x543f62),_0x3cc159=_0x524c26(J);return _0x2cf033=>{const _0x25db5a=_0x1001;let _0x3aa959=_0x4be739[_0x25db5a(0x1d6)]()['find'](_0x536558=>_0x536558[_0x25db5a(0x32a)]===_0x27f24b[_0x25db5a(0x205)]);_0x3aa959&&_0x3cc159[_0x25db5a(0x36a)](_0x3aa959[_0x25db5a(0x2c4)],_0x3aa959[_0x25db5a(0x356)],_0x3aa959[_0x25db5a(0x335)],_0x2cf033[_0x25db5a(0x1cc)]);};}function Vr(){const _0x26a729=_0x32a71f;let _0x44df38=Br();return _0x5f386f(_0x4fa07b,{'buttonLabel':_0x26a729(0x30b),'excludeGroups':[_0x559780[_0x26a729(0x23e)]],'onShapeClick':_0x44df38});}function Hr(){const _0x3284b9=_0x32a71f;let _0x234d25=_0x524c26(_0x4a21c5),_0x2afe0e=_0x524c26(_0x543f62),_0x3aa4bc=_0x524c26(_0x434573),_0x18101c=_0x2afe0e[_0x3284b9(0x1d6)]()[0x0],_0x184ad4=_0x18101c?_0x3aa4bc[_0x3284b9(0x15d)](_0x18101c[_0x3284b9(0x2c4)]):void 0x0,_0x9e30aa=_0x184ad4===_0x5be7f7[_0x3284b9(0x1c0)]?Rr:_0x184ad4===_0x5be7f7['UNIVER_SHEET']?_0x3284b9(0x349):void 0x0,_0x45ecf5=_0x9e30aa?_0x234d25[_0x3284b9(0x2ee)](_0x9e30aa):void 0x0;return _0x45ecf5?_0x5f386f(_0x45ecf5,{}):null;}function Ur({paragraphMenuPlacement:_0x107b41,PickerComponent:_0x3c81fd=zr}){let _0x4c588c=_0x524c26(_0x4129fd);return _0x5f386f(_0x3c81fd,{'onShapeClick':_0x182280=>{const _0x2001fb=_0x1001;_0x4c588c[_0x2001fb(0x2b2)](U['id'],{'paragraphMenuPlacement':_0x107b41,'value':_0x182280[_0x2001fb(0x1cc)],'enhanceParams':{'endArrow':_0x182280[_0x2001fb(0x177)],'startArrow':_0x182280[_0x2001fb(0x17a)],'horizontal':_0x182280['horizontal'],'vertical':_0x182280['vertical']}});}});}function Wr(_0x46d90d){const _0x1f9b7a=_0x32a71f;return _0x171b52=>({'id':U['id'],'type':_0x12a09a[_0x1f9b7a(0x15a)],'selections':[{'label':{'name':Lr,'hoverable':!0x1,'selectable':!0x1,'props':_0x46d90d?{'id':U['id'],'paragraphMenuPlacement':_0x46d90d}:{'id':U['id']}}}],'icon':_0x1f9b7a(0x226),'title':_0x1f9b7a(0x13b),'tooltip':_0x1f9b7a(0x13b),'hidden$':_0x1e9e84(_0x171b52,_0x5be7f7[_0x1f9b7a(0x1c0)])});}const Gr=Wr(),Kr=Wr(_0x32a71f(0x2be)),qr=Wr(_0x32a71f(0x140));function Jr(_0x3903e3){const _0x1ebfcc=_0x32a71f;let _0x30a098=_0x3903e3['get'](_0xe1f947);return{'id':Nr['id'],'type':_0x12a09a['BUTTON'],'icon':_0x1ebfcc(0x27d),'title':_0x1ebfcc(0x304),'tooltip':_0x1ebfcc(0x304),'activated$':_0x50d862(()=>_0x30a098[_0x1ebfcc(0x27e)][_0x1ebfcc(0x247)](_0x1b256c(_0x30a098[_0x1ebfcc(0x32c)]),_0x3741c9(_0xd94fed=>_0xd94fed['visible']===!0x0&&_0xd94fed['id']==='doc.shape.object-list.panel'),_0x33dd29())),'hidden$':_0x1e9e84(_0x3903e3,_0x5be7f7[_0x1ebfcc(0x1c0)])};}function Yr(_0x44d9c8,_0xa216f1,_0x5a71d2,_0x58bba7,_0x3133c7,_0x4317ef){const _0x401a7c=_0x32a71f;let _0xb71692={'unitId':_0xa216f1,'shapeId':_0x58bba7,'shapeData':_0x4317ef,'oldShapeJSON':_0x3133c7};return _0x44d9c8[_0x401a7c(0x2b2)](_0x3ef3ef['id'],_0xb71692);}function Xr(_0x344ecd,_0x5d4f4c,_0x450f2d,_0x114a5e,_0xd9b34e,_0x2bc558){let _0x446977={'unitId':_0x5d4f4c,'shapeId':_0x114a5e,'shapeData':_0x2bc558,'oldShapeJSON':_0xd9b34e};return _0x344ecd['executeCommand'](_0x3ef3ef['id'],_0x446977);}const Zr=_0x32a71f(0x2ba),Qr=_0x32a71f(0x2a5),$r='docs-shape-ui.shape-format.text-ribbon-control',ei=_0x32a71f(0x1c9),ti=_0x32a71f(0x245),ni=[{'value':_0x47e1e5['INLINE'],'label':_0x32a71f(0x281),'icon':'DocsShapeWrapInlineIcon'},{'value':_0x47e1e5['WRAP_SQUARE'],'label':_0x32a71f(0x203),'icon':_0x32a71f(0x1a3)},{'value':_0x47e1e5[_0x32a71f(0x1cd)],'label':_0x32a71f(0x284),'icon':_0x32a71f(0x1f9)},{'value':_0x47e1e5[_0x32a71f(0x36c)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x32a71f(0x125)},{'value':_0x47e1e5['IN_FRONT_OF_TEXT'],'label':_0x32a71f(0x1ef),'icon':_0x32a71f(0x111)}];function ri(){let _0x3a5606=_0x524c26(_0x4129fd),_0x504bac=_0x524c26(_0x543f62),_0x4cfe50=_0x524c26(_0x184287),_0x330075=()=>{const _0x12c517=_0x1001;var _0x29203f;let _0x2a27e7=_0x504bac[_0x12c517(0x1d6)]();if(_0x2a27e7[_0x12c517(0x1a1)]!==0x1||((_0x29203f=_0x2a27e7[0x0])==null?void 0x0:_0x29203f['drawingType'])!==_0x27f24b[_0x12c517(0x10d)])return null;let {unitId:_0x14e040,subUnitId:_0x4a607e,drawingId:_0x5116b5}=_0x2a27e7[0x0],_0x254cb2=_0x4cfe50[_0x12c517(0x13c)](_0x14e040,_0x4a607e,_0x5116b5),_0x1f4e94=_0x4cfe50[_0x12c517(0x373)](_0x14e040,_0x4a607e,_0x5116b5);return _0x254cb2===void 0x0||!_0x1f4e94?null:{'unitId':_0x14e040,'subUnitId':_0x4a607e,'drawingId':_0x5116b5,'shapeType':_0x254cb2,'shapeData':_0x1f4e94};},_0x585b06=_0x182a72(()=>new _0x5533c8(_0x24b399=>{const _0x36cb9a=_0x1001;let _0x14f897=()=>_0x24b399['next'](_0x330075()),_0x46d358=_0x504bac[_0x36cb9a(0x329)][_0x36cb9a(0x25c)](_0x14f897),_0x4c8a4a=_0x3a5606[_0x36cb9a(0x2a6)](_0x5aa62e=>{_0x5aa62e['id']===_0x365039['id']&&_0x14f897();});return _0x14f897(),()=>{const _0x346b55=_0x36cb9a;_0x46d358['unsubscribe'](),_0x4c8a4a[_0x346b55(0x10f)]();};}),_0x330075(),!0x1,[_0x3a5606,_0x4cfe50,_0x504bac]);return{'selection':_0x585b06,'updateShapeData':_0x45dcaf=>{const _0x35b2b4=_0x1001;_0x585b06&&Yr(_0x3a5606,_0x585b06[_0x35b2b4(0x2c4)],_0x585b06['subUnitId'],_0x585b06[_0x35b2b4(0x335)],{'oldShapeData':_0x585b06[_0x35b2b4(0x33d)]},_0x45dcaf);}};}function ii(){const _0x172a30=_0x32a71f;let {selection:_0x232d7f,updateShapeData:_0x32b1ff}=ri();return _0x232d7f?_0x5f386f(_0x3be322,{'shapeData':_0x232d7f[_0x172a30(0x33d)],'shapeType':_0x232d7f[_0x172a30(0x168)],'onUpdateShapeData':_0x32b1ff}):null;}function ai(){const _0x4d0d3f=_0x32a71f;let _0x93578f=_0x524c26(_0x4129fd),_0x1581cd=_0x524c26(_0x7eb730),{selection:_0x1dbd1e}=ri();return _0x1dbd1e?_0x5f386f(_0x175d27,{'type':_0x2622a3(_0x1dbd1e[_0x4d0d3f(0x33d)]),'ariaLabel':_0x1581cd['t'](_0x4d0d3f(0x1fe)),'activePresetId':_0x53a1f5(_0x1dbd1e['shapeData']),'onSelect':_0x2d5242=>_0x93578f[_0x4d0d3f(0x2b2)](Fr['id'],{'presetId':_0x2d5242})}):null;}function oi(){const _0x2f8bfe=_0x32a71f;let {selection:_0x1d18c5,updateShapeData:_0x286046}=ri();return _0x1d18c5?_0x5f386f(_0x4c4d93,{'fontFamilyPopupDataComponent':_0x2f8bfe(0x20c),'shapeData':_0x1d18c5['shapeData'],'onUpdateShapeData':_0x286046}):null;}function si(){const _0x1ce7b7=_0x32a71f;var _0x4acfd9;let {selection:_0x206613,updateShapeData:_0x1921b3}=ri(),_0x46cdc0=_0x5e25a0({'hostType':_0x5be7f7[_0x1ce7b7(0x1c0)],'unitId':(_0x206613==null?void 0x0:_0x206613[_0x1ce7b7(0x2c4)])??'','subUnitId':(_0x206613==null?void 0x0:_0x206613[_0x1ce7b7(0x356)])??'','shapeId':(_0x206613==null?void 0x0:_0x206613['drawingId'])??'','shapeData':_0x206613==null?void 0x0:_0x206613[_0x1ce7b7(0x33d)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x3888c5=>_0x1921b3({'formulaBinding':_0x3888c5})}),_0x45abeb=((_0x4acfd9=_0x46cdc0[_0x1ce7b7(0x18d)])==null?void 0x0:_0x4acfd9[_0x1ce7b7(0x199)](_0x1cca7c=>_0x1cca7c[_0x1ce7b7(0x31f)])[_0x1ce7b7(0x277)](_0x57fb6d=>_0x57fb6d[_0x1ce7b7(0x186)]!==!0x1))??[];return _0x206613!=null&&_0x206613['shapeData'][_0x1ce7b7(0x1b9)]?_0x5f386f(_0x309ffa,{'actions':_0x45abeb,'panel':_0x46cdc0[_0x1ce7b7(0x33c)]}):null;}function ci({value:_0x57f698}){const _0xc16856=_0x32a71f;let _0x5dc37a=_0x524c26(_0x7eb730),_0x5b9303=ni[_0xc16856(0x108)](_0x5cfbc2=>_0x5cfbc2[_0xc16856(0x1f3)]===_0x57f698)??ni[0x0];return _0x5b9303?_0x5f386f(_0xc16856(0x119),{'children':_0x5dc37a['t'](_0x5b9303['label'])}):null;}const li='docs-shape-ui.ribbon.shape-format.style-control',ui=_0x32a71f(0x114),di='docs-shape-ui.ribbon.shape-format.formula-control',fi='docs-shape-ui.ribbon.shape-format.arrange-forward',pi='docs-shape-ui.ribbon.shape-format.arrange-backward',mi=_0x32a71f(0x148),hi=_0x32a71f(0x1e3),gi=_0x32a71f(0x33f);function _i(_0xfc20d1){const _0x2fbb0c=_0x32a71f;let _0x35cfe2=_0xfc20d1['get'](_0x4129fd),_0x1b6a48=_0xfc20d1[_0x2fbb0c(0x2ee)](_0x543f62),_0x3e1a3e=_0xfc20d1[_0x2fbb0c(0x2ee)](_0x184287);return new _0x5533c8(_0x13d477=>{const _0x164862=_0x2fbb0c;let _0x22fab3=()=>{const _0xad731c=_0x1001;let _0x1c582c=Y(_0xfc20d1),_0x3baf5d=_0x1c582c?_0x3e1a3e[_0xad731c(0x373)](_0x1c582c[_0xad731c(0x2c4)],_0x1c582c[_0xad731c(0x356)],_0x1c582c['drawingId']):null;_0x13d477[_0xad731c(0x276)](_0x3baf5d?_0x53a1f5(_0x3baf5d)??'':'');},_0xcf72ef=_0x1b6a48[_0x164862(0x329)][_0x164862(0x25c)](_0x22fab3),_0x483cdb=_0x35cfe2['onCommandExecuted'](_0x51e6be=>{_0x51e6be['id']===_0x365039['id']&&_0x22fab3();});return _0x22fab3(),()=>{const _0xb7572a=_0x164862;_0xcf72ef[_0xb7572a(0x342)](),_0x483cdb['dispose']();};});}function Y(_0x5b0c4e){const _0x3ec1d8=_0x32a71f;var _0x5d7224;let _0xe7f11d=_0x5b0c4e[_0x3ec1d8(0x2ee)](_0x543f62)['getFocusDrawings']();return _0xe7f11d[_0x3ec1d8(0x1a1)]===0x1&&((_0x5d7224=_0xe7f11d[0x0])==null?void 0x0:_0x5d7224[_0x3ec1d8(0x32a)])===_0x27f24b[_0x3ec1d8(0x10d)]?_0xe7f11d[0x0]:null;}function vi(_0x4a533b){const _0x32d5fd=_0x32a71f;return(_0x4a533b==null?void 0x0:_0x4a533b['layoutType'])===_0x54d491['WRAP_NONE']?_0x4a533b['behindDoc']===_0x388e66[_0x32d5fd(0x16e)]?_0x47e1e5[_0x32d5fd(0x36c)]:_0x47e1e5[_0x32d5fd(0x1c1)]:(_0x4a533b==null?void 0x0:_0x4a533b[_0x32d5fd(0x1bf)])===_0x54d491[_0x32d5fd(0x229)]?_0x47e1e5[_0x32d5fd(0x229)]:(_0x4a533b==null?void 0x0:_0x4a533b[_0x32d5fd(0x1bf)])===_0x54d491[_0x32d5fd(0x1cd)]?_0x47e1e5['WRAP_TOP_AND_BOTTOM']:_0x47e1e5[_0x32d5fd(0x1d1)];}function yi(_0x19e8e0){const _0x1f31aa=_0x32a71f;let _0x34ba10=_0x19e8e0[_0x1f31aa(0x2ee)](_0x4129fd),_0x2fff6b=_0x19e8e0[_0x1f31aa(0x2ee)](_0x543f62),_0x423bee=_0x19e8e0['get'](_0x434573);return new _0x5533c8(_0x585763=>{const _0x21d03c=_0x1f31aa;let _0x8ca8b5=()=>{const _0x23d572=_0x1001;var _0x5b10ca;let _0x1e1005=Y(_0x19e8e0),_0x104ae1=_0x1e1005?_0x423bee[_0x23d572(0x2ea)](_0x1e1005[_0x23d572(0x2c4)],_0x5be7f7[_0x23d572(0x1c0)]):void 0x0;_0x585763[_0x23d572(0x276)](vi(_0x1e1005?_0x104ae1==null||(_0x5b10ca=_0x104ae1[_0x23d572(0x15c)]()['drawings'])==null?void 0x0:_0x5b10ca[_0x1e1005[_0x23d572(0x335)]]:void 0x0));},_0x38bb0f=_0x2fff6b[_0x21d03c(0x329)][_0x21d03c(0x25c)](_0x8ca8b5),_0x3cdcfc=_0x34ba10['onCommandExecuted'](_0x53d918=>{_0x53d918['id']===_0x206fac['id']&&_0x8ca8b5();});return _0x8ca8b5(),()=>{const _0x212dbf=_0x21d03c;_0x38bb0f[_0x212dbf(0x342)](),_0x3cdcfc['dispose']();};})[_0x1f31aa(0x247)](_0x33dd29());}function bi(_0x28d325,_0x38b08d=!0x1){const _0x11679e=_0x32a71f;let _0x5cce91=_0x28d325[_0x11679e(0x2ee)](_0x4129fd),_0x577adc=_0x28d325[_0x11679e(0x2ee)](_0x543f62),_0x1ceef7=_0x28d325['get'](_0x184287);return new _0x5533c8(_0x313e9c=>{const _0x4eaea9=_0x11679e;let _0xed965f=()=>{const _0x1ddccf=_0x1001;let _0x58527c=Y(_0x28d325);if(!_0x58527c){_0x313e9c[_0x1ddccf(0x276)](!0x0);return;}let _0x545495=_0x1ceef7[_0x1ddccf(0x373)](_0x58527c[_0x1ddccf(0x2c4)],_0x58527c[_0x1ddccf(0x356)],_0x58527c[_0x1ddccf(0x335)]);_0x313e9c[_0x1ddccf(0x276)](!_0x545495||_0x38b08d&&_0x545495[_0x1ddccf(0x1b9)]==null);},_0x19c330=_0x577adc[_0x4eaea9(0x329)]['subscribe'](_0xed965f),_0x5201b6=_0x5cce91[_0x4eaea9(0x2a6)](_0x14f4f8=>{_0x14f4f8['id']===_0x365039['id']&&_0xed965f();});return _0xed965f(),()=>{const _0x359e83=_0x4eaea9;_0x19c330['unsubscribe'](),_0x5201b6[_0x359e83(0x10f)]();};});}function xi(_0x4d7f3a){const _0x3f5e22=_0x32a71f;let _0x5e5350=_0x4d7f3a[_0x3f5e22(0x2ee)](_0x543f62),_0x26fcdc=_0x4d7f3a[_0x3f5e22(0x2ee)](_0x184287);return _0x5e5350[_0x3f5e22(0x329)][_0x3f5e22(0x247)](_0x1b256c(_0x5e5350['getFocusDrawings']()),_0x3741c9(()=>{const _0x5783dd=_0x3f5e22;let _0x36b184=Y(_0x4d7f3a),_0x54df52=_0x36b184?_0x26fcdc[_0x5783dd(0x13c)](_0x36b184[_0x5783dd(0x2c4)],_0x36b184[_0x5783dd(0x356)],_0x36b184[_0x5783dd(0x335)]):void 0x0;return _0x54df52===void 0x0||_0x9d2c65(_0x54df52);}));}function Si(_0x19ed83){const _0x2cabe5=_0x32a71f;return{'id':Fr['id'],'type':_0x12a09a[_0x2cabe5(0x15a)],'icon':_0x2cabe5(0x188),'title':_0x2cabe5(0x1c3),'tooltip':_0x2cabe5(0x1c3),'selections':[{'label':{'name':Zr,'hoverable':!0x1,'selectable':!0x1}}],'value$':_i(_0x19ed83),'hidden$':bi(_0x19ed83)};}function Ci(_0x5f43e9){const _0x2683cf=_0x32a71f;return{'id':Ir['id'],'type':_0x12a09a[_0x2683cf(0x15a)],'icon':_0x2683cf(0x226),'title':'shape-editor-ui.toolbar.changeShape','tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x42e893,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':xi(_0x5f43e9)};}function wi(_0x681188,_0xd86b1c,_0x52f047=!0x1){const _0x8bbddb=_0x32a71f;return _0xce3d88=>({'id':_0x681188,'type':_0x12a09a[_0x8bbddb(0x35a)],'label':{'name':_0xd86b1c,'hoverable':!0x1,'selectable':!0x1},'hidden$':bi(_0xce3d88,_0x52f047)});}const Ti=wi(li,Qr),Ei=wi(ui,$r),Di=wi(di,ei,!0x0);function Oi(_0x156f76){const _0x19d0e0=_0x32a71f;return{'id':gi,'type':_0x12a09a[_0x19d0e0(0x15a)],'icon':ni[0x0][_0x19d0e0(0x266)],'label':ti,'selectionsCommandId':_0x3c0255['id'],'selections':ni[_0x19d0e0(0x1de)](({icon:_0x7c05ac,label:_0x342c2b,value:_0x4261f4})=>({'value':_0x4261f4,'label':_0x342c2b,'icon':_0x7c05ac,'params':()=>{const _0x5cf72a=_0x19d0e0;let _0x2581c3=Y(_0x156f76);return _0x2581c3?{'unitId':_0x2581c3[_0x5cf72a(0x2c4)],'subUnitId':_0x2581c3[_0x5cf72a(0x356)],'drawings':[{'unitId':_0x2581c3['unitId'],'subUnitId':_0x2581c3[_0x5cf72a(0x356)],'drawingId':_0x2581c3[_0x5cf72a(0x335)]}],'wrappingStyle':_0x4261f4}:void 0x0;}})),'value$':yi(_0x156f76),'hidden$':bi(_0x156f76)};}function ki(_0x4afe21,_0x4ecc60,_0x428a1c,_0x2c0009){const _0x457c16=_0x32a71f;return _0x1fa1b9=>({'id':_0x4afe21,'commandId':_0x37ac4f['id'],'type':_0x12a09a[_0x457c16(0x35a)],'icon':_0x428a1c,'title':_0x2c0009,'tooltip':_0x2c0009,'hidden$':bi(_0x1fa1b9),'params':()=>{const _0x12094a=_0x457c16;let _0xa57bab=Y(_0x1fa1b9);return _0xa57bab?{'unitId':_0xa57bab[_0x12094a(0x2c4)],'subUnitId':_0xa57bab[_0x12094a(0x356)],'drawingIds':[_0xa57bab[_0x12094a(0x335)]],'arrangeType':_0x4ecc60}:void 0x0;}});}const Ai=ki(fi,_0x5e8379[_0x32a71f(0x2b0)],'MoveUpIcon','shape-editor-ui.arrange.forward'),ji=ki(pi,_0x5e8379['backward'],_0x32a71f(0x362),_0x32a71f(0x11a)),Mi=ki(mi,_0x5e8379[_0x32a71f(0x12d)],_0x32a71f(0x10a),'shape-editor-ui.arrange.front'),Ni=ki(hi,_0x5e8379[_0x32a71f(0x227)],_0x32a71f(0x34f),_0x32a71f(0x265));function Pi(_0x5559b2){const _0xc8404a=_0x32a71f;let _0x4a718e=_0x5559b2[_0xc8404a(0x2ee)](_0xe1f947);return{'activated$':_0x50d862(()=>_0x4a718e['sidebarOptions$'][_0xc8404a(0x247)](_0x1b256c(_0x4a718e[_0xc8404a(0x32c)]),_0x3741c9(_0x53fc62=>_0x53fc62[_0xc8404a(0x186)]===!0x0&&_0x53fc62['id']===_0xc8404a(0x1db)),_0x33dd29())),'id':G['id'],'type':_0x12a09a[_0xc8404a(0x35a)],'icon':'ShapeFormatSettingIcon','title':_0xc8404a(0x193),'tooltip':_0xc8404a(0x193),'hidden$':bi(_0x5559b2),'params':()=>{const _0x154ed6=_0xc8404a;let _0x29b4c7=Y(_0x5559b2);return _0x29b4c7?{'unitId':_0x29b4c7[_0x154ed6(0x2c4)],'subUnitId':_0x29b4c7[_0x154ed6(0x356)],'drawingId':_0x29b4c7[_0x154ed6(0x335)]}:void 0x0;}};}const Fi={[_0x7b07c8[_0x32a71f(0x1e2)]]:{[Or]:{'order':0x64,'title':_0x32a71f(0x193),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Fr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Si},[Ir['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ci}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[li]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ti}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ui]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Ei}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[gi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Oi},[fi]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ai},[pi]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':ji},[mi]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Mi},[hi]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ni}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[di]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Di}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[G['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Pi},[_0x4401be['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x2db638}}}}},Ii={[_0x39d1bd[_0x32a71f(0x278)]]:{[U['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x4529d2=>({...Gr(_0x4529d2),'title':void 0x0})}},[_0x39d1bd[_0x32a71f(0x261)]]:{[Nr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Jr}},[_0x232bdb[_0x32a71f(0x127)]]:{[_0x2963c8['LAYOUT']]:{[_0x572e5e]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0xecf749]:{[_0x2963c8[_0x32a71f(0x270)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Kr}}},[_0x5aa79b]:{[_0x2963c8[_0x32a71f(0x270)]]:{[U['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':qr}}},[_0x5924b6]:{'insert':{[U['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Gr}}},[_0x21e77b]:{'insert':{[U['id']+_0x32a71f(0x33a)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Kr}}}}};var Li=_0x32a71f(0x26c),Ri=_0x32a71f(0x2c9);const zi={'type':_0x3471d8[_0x32a71f(0x2de)],'id':_0x32a71f(0x13e),'handler'(){return!0x0;}},Bi=_0x32a71f(0x1dd),Vi={};function Hi(_0x5bf175){'@babel/helpers - typeof';const _0x168534=_0x32a71f;return Hi=typeof Symbol==_0x168534(0x321)&&typeof Symbol[_0x168534(0x2aa)]==_0x168534(0x249)?function(_0x5298d9){return typeof _0x5298d9;}:function(_0x5c4bac){const _0x59e984=_0x168534;return _0x5c4bac&&typeof Symbol==_0x59e984(0x321)&&_0x5c4bac[_0x59e984(0x31e)]===Symbol&&_0x5c4bac!==Symbol[_0x59e984(0x2a4)]?'symbol':typeof _0x5c4bac;},Hi(_0x5bf175);}function _0x1001(_0x1247e7,_0xc75018){_0x1247e7=_0x1247e7-0x106;const _0x28d461=_0x28d4();let _0x100148=_0x28d461[_0x1247e7];return _0x100148;}function _0x28d4(){const _0x80d6be=['shape-editor-ui.arrange.back','icon','onPointerDown$','drawing-ui.objectListPanel.close','resize','presentationChanged$','invert','@univerjs-pro/docs-shape-ui','_isShouldShowDrawingShapeAdjust','selectable','stroke','LAYOUT','_renderManagerService','gradientEndColor','getDrawingOKey','warn','unregister','next','filter','MEDIA','stopPropagation','div','_activeShapeInfo','drawing-ui.objectListPanel.descriptionPlaceholder','ObjectLayersIcon','sidebarOptions$','drawing-ui.objectListPanel.collapse','set','docs-shape-ui.textWrap.inline','activeTarget','_addShapeAdjustControl','docs-shape-ui.textWrap.topAndBottom','getActualSize','save','name','_popupMenuListener','Rect','_shapeFormulaService','0.8','ShapeFormatSettingIcon','attachPopupToObject','isEditing','getScene','setFormulaPresentation','_updateSrcRectByTransform','LEFT','_clipService','prstGeom','defineProperty','endOffset','_getActiveDrawingShape','_initUIPart','_docLayoutInteractionService','isMainScene','1012540ZbNIoU','_formulaShapes','reverse','2622cbjOZD','getShapeTextData','_getShapePopup','drawing-ui.objectListPanel.details','enhanceParams','_univerInstanceService','prototype','docs-shape-ui.shape-format.style-ribbon-control','onCommandExecuted','getTransformerByCreate','drawing-ui.objectListPanel.locate','getCurrentTypeOfUnit$','iterator','Image','horizontal','_activeShapeAdjustPointList','top-center','version','forward','_updateAdjustControlPositions','executeCommand','DOC','formulaPresentation','_getShapeAdjustInfosById','skeHeaders','fillImageSource','drawing-ui.objectListPanel.typeNames.','_measure','docs-shape-ui.shape-format.quick-style-gallery','docs-shape-ui.ribbon.shape-format','drawing-ui.objectListPanel.sectionCanvas','_unitId','below','-layout','pages','flipX','onSavingEditorData$','drawing-ui.objectListPanel.filterAll','unitId','onTransformChange$','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','updateContext','_adjHandlerPointerMove','1.5.1','_injector','render','close','_adjustPointObjects','5.5','hidden','_registerIcons','srcRect','_drawingManagerService','headerId','drawing-ui.objectListPanel.unlockAll','_imageIoService','_initEvents','_handleCreateControl','drawing-ui.objectListPanel.hideAll','getInverseCoord','disableObjectsEvent','getViewports','makeDirty','FromArray','OPERATION','trim','onReady','_initSelection','_onSavingEditorData$','sin','pluginName','getObjectIncludeInGroup','object','segmentId','_getSceneByUnitId','_updateShapeAdjustControls','getUnit','DRAWING_DOM','classType','transformByState','get','drawing-ui.objectListPanel.filterLocked','offsetY','forEach','updateDocumentDataMargin','paragraphMenuPlacement','getValue','getBody','complete','ancestorTransform','docs-shape-ui.mobile.style','backward','_popupTargetKeys','_menuManagerService','_drawingType','docs-shape-ui.mobile.delete','getAllRenderersOfType','Arrow','_baseShapeTop','getTransformer','doc.operation.open-shape-object-list-panel','with','docs-shape-ui.objectListPanel.open','vertical','focusDrawing','0\x200\x2020\x2020','flipY','buildClipPath','drawing-ui.objectListPanel.hide','docs-shape-ui.crop.shape','transform','animationEnabled','getDrawingByParam','canvas','_closeShapeEditPanel','_clearCompletionFrame','refreshShapeFillImage','drawing-ui.objectListPanel.lock','_subUnitId','intercept','isInGroup','adjHandleStroke','splice','addImageSourceCache','image','getShapeModel','getShapeTextRect','CROSSHAIR','constructor','actions','current','function','setShapeData','_lastEditingShapeKey','_disposePopupsByUnit','_getActiveDrawingParam','getPageDrawingIds','drawing-ui.objectListPanel.name','error','focus$','drawingType','cos','options','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','remove$','includes','string','drawing-ui.objectListPanel.empty','top','scene','getDrawingData','drawingId','getAutoFitPresentations','Medium','_initEditingParams','_getDependencies','.below','clone','panel','shapeData','clip','docs-shape-ui.ribbon.shape-format.wrapping-style','_activeShapeId','onload','unsubscribe','_canEdit','1.2','svg','disableShapeOption','_shapeTextEditingService','_toScenePoint','sheet.image-clip.shape-picker.component','changing$','doc.operation.update-shape-type','custom','setFallbackVisible','beginInteraction','BottomIcon','componentKey','TOP','shapeKey','SolidLine','_clearPopups','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','subUnitId','setEditing','enableObjectsEvent','COMMAND','BUTTON','DOCS_SHAPE_UI_PLUGIN','isHit','docs-shape-ui.deleteShape','getRenderUnitById','vertical-center','square','create','MoveDownIcon','_drawRichTextLayer','asObservable','moveRange','add$','setAdjustValueByName','clipTop','_createShapeAdjustControls','clipByShape','_activeShapeModel','BEHIND_TEXT','_adjName','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','_applyFormulaAutoFitSize','setCursor','_registerComponents','_editingParams$','getShapeDataById','WRAP_NONE','register','getShapePopupMenus','clearControl$','find','getCurrentUnitOfType','TopmostIcon','adjHandleSize','1em','DRAWING_SHAPE','_contextService','dispose','currentAdjustValues','DocsShapeWrapInFrontOfTextIcon','marginTop','startIndex','docs-shape-ui.ribbon.shape-format.text-control','univer-box-border\x20univer-px-4\x20univer-text-sm','clipHeight','restore','resolveHyperLinkAt','span','shape-editor-ui.arrange.backward','SHAPE_TEXT','_shapeId','open','offsetX','style','canvasElement','path','setFillImage','isDrawingObject','data','DocsShapeWrapBehindTextIcon','_baseShapeWidth','PARAGRAPH','drawing-ui.objectListPanel.description','_toVisualAdjustPoint','updateShapeFillImage','behindText','resetCursor','front','drawing-ui.objectListPanel.unlockHint','disposeWithMe','getSkeletonData','onStarting','skeFooters','oKey','sectionCanvas','#3B82F6','indexOf','_formulaKey','drawing-ui.objectListPanel.title','_completionFrame','getPresentation','docs-shape-ui.insertShape','getShapeTypeById','drawing-ui.objectListPanel.moveForward','doc.operation.close-doc-shape-format-panel','keys','target','menu','draw','getImage','_initCommands','6354550hOymtR','_shapeRenderController','shape-text-','docs-shape-ui.ribbon.shape-format.arrange-front','doc.operation.open-doc-shape-format-panel','rect','currentColor','delete','_getRenderModules','SpAutoFit','wrapStrategy','_transformCalculateSrcRect','328HEjTor','_docCanvasPopManagerService','featurePluginUpdateNotification','_transform','12WmpOBP','M2\x203h16M2\x2017h16','_iconManager','_componentManager','GROUP','SELECTOR','skeTables','getSnapshot','getUnitType','getCanvasElement','none','permissionPointUpdate$','_adjHandlerPointerUp','multiply','clearAdjustControls','editingParams$','_initialize','drawing-ui.objectListPanel.unlock','_clearShapeAdjustControls','shapeType','translateWithPrecision','popup','_config','fontFamily','getShapeType','TRUE','update$','dataModel','calculate','_commandService','canDispose','shapeId','push','_urlImageService','endArrow','onPointerUp$','spaceBelowApply','startArrow','getParent','_configService','parent','engine','height','getImageSourceCache','_renderWithCache','URL','_registerImageShapeClipDelegate','drawing-ui.objectListPanel.moveBackward','title','visible','objects','PaintIcon','MoveUpIcon','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','_refreshShapeData','DocsShapeTextEditorContainer','extensionGroups','getAdjustValueByName','round','getDrawingEffectBounds','_drawSimpleText','getState','docs-shape-ui.formatShape','isHitLine','0.14','docs-shape-ui.objectListPanel.title','setSrcRect','strokeWidth','flatMap','shapeModel','drawing-ui.objectListPanel.search','_activeAdjustInfo','getDrawingOrder','refreshAdjustControls','contentHeight','SHAPE','length','_registerDrawingFocusChangeHandler','DocsShapeWrapSquareIcon','_getShapeInfo','docs-shape-text-','setConfig','_initMenu','adjName','getRealBound','transformVector2SceneCoord','context-bar','getActiveTextRange','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','_loadShapePictureFill','_getFocusedShapeAtPoint','setOnSavingEditorData','drawing-ui.objectListPanel.show','presentation','pageWidth','None','cells','drawing-ui.objectListPanel.lockAll','params','registerCommand','formulaBinding','some','presetId','1516932jzXKbC','getDrawingSearch','_visible','layoutType','UNIVER_DOC','IN_FRONT_OF_TEXT','applyPoint','shape-editor-ui.toolbar.quickStyles','_endLayoutInteraction','doc.shape.text.float-menu','rows','_shapeEditPanelVersion','_docPrintInterceptorService','docs-shape-ui.shape-format.formula-ribbon-control','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','_openShapeEditPanel','type','WRAP_TOP_AND_BOTTOM','_formulaAnimation','_hyperLinkRegions','_hide','INLINE','mergeMenu','translate','onDblclick$','_sidebarService','getFocusDrawings','subtle','_getShapeAdjustPointListById','has','setCollapsedIds','doc.shape.edit.panel','_canEditShape','docs-shape-ui.config','map','hideInfoPopup','subscribeEvent','1417467odQalC','RIBBON','docs-shape-ui.ribbon.shape-format.arrange-back','createControl$','decorate','onerror','96194GcLpbn','_init','fallbackHeight','behind','getEditing','packageName','getSelectedObjectMap','scale','docs-shape-ui.textWrap.inFrontText','pick','size','_insertShapes','value','docs-shape-ui.hidePanel','paragraphId','hideContextualTab','_sidebarDisposable','fillType','DocsShapeWrapTopBottomIcon','_docsShapeService','docs-shape-contextual-ribbon','getUnitId','getShapeData','docs-shape-ui.quickStyles','add','width','left','_baseShapeHeight','docs-shape-ui.textWrap.square','drawing-ui.objectListPanel.filterHidden','DRAWING_IMAGE','_drawRichText','isRenderLinePointsMode','refreshFormulaPresentation','shapeText','setPrstGeom','hasDefault','docs-shape-format-font-family-menu','getDrawingEditable','sectionFloating','setShapeProps','_localeService','drawing','isHorizontal','_isStartAdjusting','updateDocumentStyle','getMatrix','paragraphs','max','88911eNAEAr','entries','skeDrawings','registerClipDelegate','startOffset','docs-shape-ui.textWrap.behindText','CONTENT','_isOpenedShapeEditPanel','paragraph','changeStart$','docs-shape-ui.openPanel','getSelfOrHeaderFooterModel','actualHeight','doc','ShapeIcon','back','drawing-ui.objectListPanel.noSelection','WRAP_SQUARE','contentVerticalOffset','_mobileEditorService','drawing-ui.objectListPanel.dragToReorder','isRender','_instanceService','clip-','_getDisposePopups','_shapeFloatingToolbarService','DocumentEntity','getDrawingPoints','interceptor','values','onRendered','isLineShape','doc.shape.floating-toolbar','addObject','_context','getActiveViewportByCoord','text','_draw','Line','238QEhGMp','_updateShape','syncExecuteCommand','setContextValue','drawing-ui.objectListPanel.expand','_docDrawingShapeRenderController','docs-shape-ui.shape-format.wrapping-style-label','_baseShapeLeft','pipe','call','symbol','_registerDrawingTransformHandler','UUID','fill','_registerOperations','Copy','isRichText','_ribbonService','_permissionService','menuRange','registerRenderModule','localeService','completeEditing','VIEW_MAIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_props','order','_initPrinting','toPrimitive','subscribe','true','Path','beginPath','_layoutInteraction','OTHERS','reduce','PRINTING_COMPONENT_COLLECT','#2563EB'];_0x28d4=function(){return _0x80d6be;};return _0x28d4();}function Ui(_0x47775b,_0x31e5b7){const _0x8ffaf7=_0x32a71f;if(Hi(_0x47775b)!=_0x8ffaf7(0x2e6)||!_0x47775b)return _0x47775b;var _0x36091d;if(typeof Symbol<'u'&&(_0x36091d=_0x47775b[Symbol[_0x8ffaf7(0x25b)]])!==void 0x0){var _0x4dae49=_0x36091d[_0x8ffaf7(0x248)](_0x47775b,_0x31e5b7||'default');if(Hi(_0x4dae49)!=_0x8ffaf7(0x2e6))return _0x4dae49;throw TypeError(_0x8ffaf7(0x257));}return(_0x31e5b7===_0x8ffaf7(0x330)?String:Number)(_0x47775b);}function Wi(_0x36199b){const _0x2a3a16=_0x32a71f;var _0x21c6f8=Ui(_0x36199b,_0x2a3a16(0x330));return Hi(_0x21c6f8)==_0x2a3a16(0x249)?_0x21c6f8:_0x21c6f8+'';}function X(_0xec3aa,_0x39e914,_0x37ea8b){const _0x2eba8a=_0x32a71f;return(_0x39e914=Wi(_0x39e914))in _0xec3aa?Object[_0x2eba8a(0x295)](_0xec3aa,_0x39e914,{'value':_0x37ea8b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xec3aa[_0x39e914]=_0x37ea8b,_0xec3aa;}var Gi=class extends _0x47f417{constructor(_0x24305d,_0x32a717){const _0x527e9f=_0x32a71f;super(_0x24305d,_0x32a717),X(this,_0x527e9f(0x11c),null),X(this,'_adjName',null),X(this,_0x527e9f(0x2bd),null),X(this,_0x527e9f(0x314),null),_0x32a717&&this[_0x527e9f(0x20f)](_0x32a717);}[_0x32a71f(0x1bd)](){const _0x3b9912=_0x32a71f;return{'unitId':this[_0x3b9912(0x2bd)],'subUnitId':this[_0x3b9912(0x314)],'drawingId':this[_0x3b9912(0x11c)]};}['setShapeProps'](_0x1c117d){const _0x558929=_0x32a71f;_0x1c117d[_0x558929(0x174)]!==void 0x0&&(this[_0x558929(0x11c)]=_0x1c117d['shapeId']),_0x1c117d['adjName']!==void 0x0&&(this[_0x558929(0x36d)]=_0x1c117d[_0x558929(0x1a8)]),_0x1c117d[_0x558929(0x2c4)]!==void 0x0&&(this[_0x558929(0x2bd)]=_0x1c117d['unitId']),_0x1c117d[_0x558929(0x356)]!==void 0x0&&(this['_subUnitId']=_0x1c117d['subUnitId']),this[_0x558929(0x2ed)]({'width':_0x1c117d[_0x558929(0x200)],'height':_0x1c117d[_0x558929(0x17f)]});}[_0x32a71f(0x23d)](_0x24492a){const _0x310864=_0x32a71f;_0x17301a['drawWith'](_0x24492a,{'radius':_0x4e34b8['adjHandleSize'],'fill':_0x4e34b8['adjHandleFill'],'stroke':_0x4e34b8[_0x310864(0x317)],'strokeWidth':0x1,'evented':!0x0});}};function Ki(_0x28ff3a,_0x22d776,_0x45b527){let _0x3eb9d2={..._0x22d776,'dataModel':{..._0x22d776['dataModel']??{},..._0x45b527?{'doc':_0x45b527}:null}},_0x4a4684=_0x185bbf(_0x28ff3a,_0x3eb9d2),_0x1954ed=_0x4fb842(_0x4a4684);return{'clip':_0x5638fb(_0x4a4684,_0x1954ed),'wrapStrategy':_0x1954ed};}var Z=class extends _0x47f417{constructor(_0x42338a,_0x265d1d){const _0x20a580=_0x32a71f;super(_0x42338a,_0x265d1d),X(this,_0x20a580(0x1cf),[]),X(this,_0x20a580(0x258),void 0x0),X(this,_0x20a580(0x1ce),new _0x18e468(()=>this[_0x20a580(0x2dc)](!0x0),()=>this[_0x20a580(0x36f)]())),X(this,'_transformCalculateSrcRect',!0x0),X(this,_0x20a580(0x2fc),_0x27f24b['DRAWING_SHAPE']),X(this,_0x20a580(0x123),!0x0),this[_0x20a580(0x258)]={..._0x265d1d},this['_formulaAnimation']['setPresentation'](_0x265d1d['formulaPresentation'],_0x265d1d['animateFormulaPresentation']!==!0x1),this[_0x20a580(0x1e8)](),this['_applyFormulaAutoFitSize']();}[_0x32a71f(0x1e8)](){const _0x59bb0b=_0x32a71f;this[_0x59bb0b(0x2c5)]['subscribeEvent'](_0xcba8cd=>{const _0x42d7c6=_0x59bb0b;this[_0x42d7c6(0x291)](_0xcba8cd);});}[_0x32a71f(0x20a)](_0x18a4eb){const _0x4a7f93=_0x32a71f;this[_0x4a7f93(0x258)][_0x4a7f93(0x294)]=_0x18a4eb;}[_0x32a71f(0x118)](_0x4c4ae4){const _0x22d920=_0x32a71f;if(this[_0x22d920(0x258)]['isEditing'])return null;let _0x46ffdd=this[_0x22d920(0x2d9)](_0x4c4ae4),{width:_0x3b4a68,height:_0xd4da06}=this[_0x22d920(0x1a9)]();return _0x495676(this[_0x22d920(0x1cf)],{'x':(this[_0x22d920(0x2c1)]?-_0x46ffdd['x']:_0x46ffdd['x'])+_0x3b4a68/0x2,'y':_0x46ffdd['y']+_0xd4da06/0x2});}['setEditing'](_0x2c69c6){const _0x47e27a=_0x32a71f;this[_0x47e27a(0x258)][_0x47e27a(0x28e)]=_0x2c69c6,this[_0x47e27a(0x2dc)](!0x0);}[_0x32a71f(0x290)](_0x1d183e,_0x26b4a6=!0x0){const _0x1ca9a1=_0x32a71f;this[_0x1ca9a1(0x1ce)]['setPresentation'](_0x1d183e,_0x26b4a6),this[_0x1ca9a1(0x258)][_0x1ca9a1(0x2b4)]=_0x1d183e,this[_0x1ca9a1(0x36f)](),this[_0x1ca9a1(0x2dc)](!0x0);}[_0x32a71f(0x36f)](){const _0x324cd4=_0x32a71f;let _0x326a6b=this['_props'][_0x324cd4(0x19a)],_0x3d2068=_0x326a6b[_0x324cd4(0x29f)](),_0x289206=_0x50f618(_0x3d2068==null?void 0x0:_0x3d2068[_0x324cd4(0x170)]),_0x45a32a=_0x289206==null?void 0x0:_0x289206['doc'],_0x3ef11a=this['_formulaAnimation'][_0x324cd4(0x336)]();if(!_0x45a32a||_0x3ef11a[_0x324cd4(0x1a1)]===0x0)return;_0x326a6b['updateContext']({'width':this['width'],'height':this[_0x324cd4(0x17f)]});let _0x497ace=_0x1a341c({'documentData':_0x3ef11a['map'](_0x437679=>_0x22660d(_0x45a32a,_0x437679)),'height':this[_0x324cd4(0x17f)],'shapeData':_0x326a6b[_0x324cd4(0x1fd)](),'textRect':_0x326a6b[_0x324cd4(0x31c)]({'left':0x0,'top':0x0,'width':this[_0x324cd4(0x200)],'height':this[_0x324cd4(0x17f)]}),'width':this[_0x324cd4(0x200)]});if(_0x497ace){var _0x1421e3;this['resize'](_0x497ace['width'],_0x497ace['height']),(_0x1421e3=this[_0x324cd4(0x28f)]())==null||(_0x1421e3=_0x1421e3[_0x324cd4(0x301)]())==null||_0x1421e3['debounceRefreshControls']();}}get[_0x32a71f(0x2c4)](){const _0x287390=_0x32a71f;return this[_0x287390(0x258)][_0x287390(0x2c4)];}get[_0x32a71f(0x356)](){const _0xcd9a75=_0x32a71f;return this[_0xcd9a75(0x258)]['subUnitId'];}[_0x32a71f(0x291)](_0x4dc17a){const _0x5b948b=_0x32a71f;if(this[_0x5b948b(0x258)][_0x5b948b(0x2d1)]==null||!this[_0x5b948b(0x150)])return;let {width:_0x371d74,height:_0x17df7b}=this,{width:_0xc8acc9=0x0,height:_0x27d54a=0x0}=_0x4dc17a['preValue'],{left:_0x372f9a=0x0,top:_0x294b78=0x0,right:_0xac99cb=0x0,bottom:_0x11f2ec=0x0}=this[_0x5b948b(0x258)]['srcRect'],_0x535342=_0x372f9a,_0x539880=_0x294b78,_0x4e01d0=_0xac99cb,_0xbbbb25=_0x11f2ec,_0x5cbe92=!0x1;if(_0xc8acc9!==0x0&&_0xc8acc9!==_0x371d74){let _0x26cb87=_0x372f9a/_0xc8acc9,_0x2f3753=_0xac99cb/_0xc8acc9;_0x535342=_0x371d74*_0x26cb87,_0x4e01d0=_0x371d74*_0x2f3753,_0x5cbe92=!0x0;}if(_0x27d54a!==0x0&&_0x27d54a!==_0x17df7b){let _0x91c0dd=_0x294b78/_0x27d54a,_0x5a1c68=_0x11f2ec/_0x27d54a;_0x539880=_0x17df7b*_0x91c0dd,_0xbbbb25=_0x17df7b*_0x5a1c68,_0x5cbe92=!0x0;}_0x5cbe92&&this['setSrcRect']({'left':_0x535342,'top':_0x539880,'right':_0x4e01d0,'bottom':_0xbbbb25});}[_0x32a71f(0x197)](_0x5bf401){const _0x4c61f0=_0x32a71f;this['_props'][_0x4c61f0(0x2d1)]=_0x5bf401,this[_0x4c61f0(0x2dc)](!0x0);}[_0x32a71f(0x122)](_0x4e4051){const _0x18e0f3=_0x32a71f;this[_0x18e0f3(0x258)][_0x18e0f3(0x31a)]=_0x4e4051,this[_0x18e0f3(0x2dc)](!0x0);}set[_0x32a71f(0x30c)](_0x5493d6){this['_transform']=_0x5493d6;}get[_0x32a71f(0x30c)](){const _0x7bb227=_0x32a71f;this[_0x7bb227(0x154)]||this['_setTransForm']();let _0x273de5=this[_0x7bb227(0x154)][_0x7bb227(0x33b)]();return this['transformForAngle'](_0x273de5);}get[_0x32a71f(0x19a)](){const _0x43a95d=_0x32a71f;return this['_props'][_0x43a95d(0x19a)];}get[_0x32a71f(0x174)](){const _0x3b4ea5=_0x32a71f;return this[_0x3b4ea5(0x258)][_0x3b4ea5(0x174)];}get['classType'](){const _0x54d0db=_0x32a71f;return _0x5b306f[_0x54d0db(0x1a0)];}[_0x32a71f(0x23d)](_0x4c90e7,_0xe4f555,_0x50c5c3,_0x38480f){const _0x92f55c=_0x32a71f;let _0xe9969e=this[_0x92f55c(0x258)][_0x92f55c(0x19a)];if(!_0xe9969e||!_0xe4f555)return;let _0x34e751=_0x50c5c3??this[_0x92f55c(0x200)],_0x23dc3e=_0x38480f??this[_0x92f55c(0x17f)],_0x260612={'shapeType':_0xe9969e['getShapeType'](),'width':_0x34e751,'height':_0x23dc3e},_0x3b0e10={'renderMode':_0x59ddea[_0x92f55c(0x25e)],'oKey':this[_0x92f55c(0x133)],'image':this['_props'][_0x92f55c(0x31a)],'angle':this['angle']};_0xe9969e[_0x92f55c(0x2c7)](_0x260612),_0x4c90e7[_0x92f55c(0x286)]();let _0x41836a={'top':0x0,'left':0x0,'width':_0x34e751,'height':_0x23dc3e},_0x2ba75b=_0xe9969e[_0x92f55c(0x190)](_0x41836a);_0x2ba75b?this[_0x92f55c(0x181)](_0x4c90e7,_0x2ba75b,_0xa64a80=>{const _0x285fdf=_0x92f55c;_0xe9969e[_0x285fdf(0x2cb)](_0xa64a80,_0x41836a,_0x3b0e10);}):(this['_releaseRenderCache'](),_0xe9969e[_0x92f55c(0x2cb)](_0x4c90e7,_0x41836a,_0x3b0e10)),_0x4c90e7[_0x92f55c(0x117)]();let _0x3ccb89=_0xe9969e[_0x92f55c(0x29f)](),_0x1aba77=_0xe9969e['getShapeTextRect'](_0x41836a),_0x11821f=_0xe9969e[_0x92f55c(0x237)]();if(_0x3ccb89&&_0x1aba77&&!_0x11821f){_0x4c90e7[_0x92f55c(0x286)](),this[_0x92f55c(0x192)]()['flipX']&&_0x4c90e7[_0x92f55c(0x1ee)](-0x1,0x1);let _0x5217cd=_0x34e751/0x2,_0x4483c4=_0x23dc3e/0x2;_0x4c90e7[_0x92f55c(0x1d3)](-_0x5217cd,-_0x4483c4),_0x4c90e7[_0x92f55c(0x25f)](),this['_drawShapeText'](_0x4c90e7,_0x3ccb89,_0x1aba77),_0x4c90e7[_0x92f55c(0x117)]();}}[_0x32a71f(0x233)](_0x2864fc){}['_drawShapeText'](_0x227320,_0x544e7c,_0x49a15f){const _0x147882=_0x32a71f;var _0x46a21d;this[_0x147882(0x1cf)]=[],this[_0x147882(0x258)][_0x147882(0x28e)]||(!((_0x46a21d=_0x544e7c[_0x147882(0x170)])!=null&&_0x46a21d[_0x147882(0x225)])&&_0x147882(0x24f)in _0x544e7c&&_0x544e7c[_0x147882(0x24f)]===!0x1?this[_0x147882(0x191)](_0x227320,_0x544e7c,_0x49a15f):this['_drawRichText'](_0x227320,_0x544e7c,_0x49a15f));}['_drawSimpleText'](_0x454780,_0x4550b9,_0x3add2b){const _0x5a97a6=_0x32a71f;this[_0x5a97a6(0x206)](_0x454780,{..._0x4550b9,'text':_0x4550b9['text']??'','dataModel':{'doc':_0x53583b(_0x4550b9,_0x5a97a6(0x1a5)+this['oKey'])}},_0x3add2b);}[_0x32a71f(0x206)](_0x5bc8d7,_0x2b8bb4,_0x4e9121){const _0x18d3b9=_0x32a71f;_0x5f1fa7(_0x5bc8d7,this[_0x18d3b9(0x1ce)],(_0x564951,_0x2e555f,_0x4f99f3)=>{const _0x48192d=_0x18d3b9;this[_0x48192d(0x363)](_0x564951,_0x2b8bb4,_0x4e9121,_0x2e555f,_0x4f99f3===_0x48192d(0x320));});}[_0x32a71f(0x363)](_0x5cd181,_0x3027ad,_0x17eb70,_0x59857d,_0x526f8e){const _0xd19562=_0x32a71f;let _0x52b8ac=this[_0xd19562(0x258)][_0xd19562(0x254)];if(!_0x3027ad[_0xd19562(0x170)]||!_0x52b8ac){_0x52b8ac||console[_0xd19562(0x274)](_0xd19562(0x355));return;}let _0x5bdeb1=_0x50f618(_0x3027ad[_0xd19562(0x170)]);if(!_0x5bdeb1)return;let _0x1dcd5e=_0x5bdeb1[_0xd19562(0x225)];if(!_0x1dcd5e)return;let _0x370b92=_0x22660d(_0x1dcd5e,_0x59857d),_0x256da5=_0x5bdeb1['va']??_0x431afd[_0xd19562(0x351)],_0x3206aa=_0x5bdeb1['ha']??_0x42ecd8['LEFT'],_0x357cf1=Ki(this[_0xd19562(0x258)][_0xd19562(0x19a)]['getShapeData'](),_0x3027ad,_0x370b92),_0x1a2aa3=_0x3027ad[_0xd19562(0x212)],_0x3c7f32=_0x2e8990(_0x370b92,{'isHorizontal':_0x1a2aa3!==!0x1,'textRect':_0x17eb70,'verticalAlign':_0x256da5,'horizontalAlign':_0x3206aa,'wrapStrategy':_0x357cf1[_0xd19562(0x14f)]}),_0x510c8f=new _0x431d8e(_0x3c7f32),_0x53d771=new _0x2d0ea1(_0x510c8f),_0x4735d1=_0x4c3814[_0xd19562(0x361)](_0x53d771,_0x52b8ac);_0x4735d1[_0xd19562(0x171)]();let _0x114904=_0x4735d1[_0xd19562(0x285)]()[_0xd19562(0x224)],_0x877232=_0xef14b1({'contentHeight':_0x114904,'verticalAlign':_0x256da5,'viewportHeight':_0x17eb70[_0xd19562(0x17f)]});_0x510c8f[_0xd19562(0x214)]({'pageSize':{'width':_0x1a2aa3===!0x1?_0x17eb70[_0xd19562(0x17f)]:_0x17eb70['width'],'height':_0x397b43(_0x370b92,_0x877232['contentHeight'])}}),_0x510c8f[_0xd19562(0x2f2)]({'t':_0x877232[_0xd19562(0x112)]}),_0x4735d1['calculate']();let _0x36fa36=new _0x241399(_0xd19562(0x147)+this[_0xd19562(0x133)],_0x4735d1,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0xd19562(0x2dc)](!0x0)});_0x36fa36[_0xd19562(0x269)](_0x17eb70[_0xd19562(0x200)],_0x877232[_0xd19562(0x19f)]),_0x5cd181[_0xd19562(0x286)](),_0x5cd181[_0xd19562(0x169)](_0x17eb70[_0xd19562(0x201)],_0x17eb70[_0xd19562(0x332)]),_0x357cf1[_0xd19562(0x33e)]&&(_0x5cd181['beginPath'](),_0x5cd181[_0xd19562(0x14a)](0x0,_0x877232['clipTop'],_0x17eb70[_0xd19562(0x200)],_0x877232['clipHeight']),_0x5cd181['clip']()),_0x877232[_0xd19562(0x22a)]&&_0x5cd181[_0xd19562(0x169)](0x0,_0x877232['contentVerticalOffset']),_0x36fa36[_0xd19562(0x142)](_0x5cd181),_0x526f8e&&(this['_hyperLinkRegions']=_0x47d7d2(_0x36fa36,{'left':_0x17eb70[_0xd19562(0x201)],'top':_0x17eb70[_0xd19562(0x332)]+_0x877232[_0xd19562(0x22a)]},_0x357cf1['clip']?{'left':_0x17eb70[_0xd19562(0x201)],'right':_0x17eb70[_0xd19562(0x201)]+_0x17eb70[_0xd19562(0x200)],'top':_0x17eb70['top']+_0x877232[_0xd19562(0x368)],'bottom':_0x17eb70[_0xd19562(0x332)]+_0x877232[_0xd19562(0x368)]+_0x877232[_0xd19562(0x116)]}:void 0x0)),_0x5cd181[_0xd19562(0x117)](),_0x36fa36[_0xd19562(0x10f)](),_0x4735d1[_0xd19562(0x10f)](),_0x53d771[_0xd19562(0x10f)](),_0x510c8f[_0xd19562(0x10f)]();}[_0x32a71f(0x2cb)](_0x567d37,_0x58ae36,_0x1cba2f=!0x1){const _0x768401=_0x32a71f;if(!this[_0x768401(0x186)])return this[_0x768401(0x2dc)](!0x1),this;let {width:_0x2e1b63,height:_0x44ea10,left:_0x7c3228,top:_0x1090cd}=this,_0x14edfa=this[_0x768401(0x1a9)]();if(_0x2e1b63=_0x14edfa[_0x768401(0x200)],_0x44ea10=_0x14edfa['height'],_0x7c3228=_0x14edfa['left'],_0x1090cd=_0x14edfa[_0x768401(0x332)],this[_0x768401(0x22d)](_0x58ae36)){let {top:_0x152016,left:_0x58c070,bottom:_0x3f02e8,right:_0x219429}=_0x58ae36['viewBound'];if(_0x2e1b63+this[_0x768401(0x198)]+_0x7c3228<_0x58c070||_0x219429<_0x7c3228||_0x44ea10+this[_0x768401(0x198)]+_0x1090cd<_0x152016||_0x3f02e8<_0x1090cd)return this;}let _0x392cb0=_0x7c3228+_0x2e1b63/0x2,_0x3674c8=_0x1090cd+_0x44ea10/0x2,_0x3c9651=this[_0x768401(0x30c)][_0x768401(0x215)]();if(this[_0x768401(0x258)][_0x768401(0x28e)]){let _0x2acd75=this[_0x768401(0x192)](),_0x53038b=new _0x47a678();_0x53038b['composeMatrix']({..._0x2acd75}),_0x3c9651=_0x53038b[_0x768401(0x215)]();}return _0x567d37[_0x768401(0x286)](),this['_props']['shapeModel'][_0x768401(0x207)]===!0x0||_0x567d37[_0x768401(0x30c)](_0x3c9651[0x0],_0x3c9651[0x1],_0x3c9651[0x2],_0x3c9651[0x3],_0x392cb0,_0x3674c8),this['_draw'](_0x567d37,_0x58ae36,_0x2e1b63,_0x44ea10),_0x567d37['restore'](),this[_0x768401(0x2dc)](!0x1),this;}[_0x32a71f(0x2d9)](_0x239a26){const _0x4e9166=_0x32a71f;let {left:_0x241d7d,top:_0x14f4ea,width:_0x5a6841,height:_0x10c998}=this[_0x4e9166(0x1a9)](),_0x2fd52b=this[_0x4e9166(0x30c)][_0x4e9166(0x215)](),_0x44e5d3=_0x241d7d+_0x5a6841/0x2,_0x315aa2=_0x14f4ea+_0x10c998/0x2,_0x12c157=new _0x47a678([_0x2fd52b[0x0],_0x2fd52b[0x1],_0x2fd52b[0x2],_0x2fd52b[0x3],_0x44e5d3,_0x315aa2]),_0x2c01d7=this[_0x4e9166(0x17b)]();return(this[_0x4e9166(0x316)]&&(_0x2c01d7==null?void 0x0:_0x2c01d7[_0x4e9166(0x2ec)])===_0x5b306f[_0x4e9166(0x159)]?_0x2c01d7[_0x4e9166(0x2f7)][_0x4e9166(0x162)](_0x12c157):_0x12c157)[_0x4e9166(0x26b)]()[_0x4e9166(0x1c2)](_0x239a26);}[_0x32a71f(0x35c)](_0x36b84b){const _0x50923d=_0x32a71f;let {left:_0x261b74,top:_0x38365f,width:_0x1ebc3c,height:_0x49b4c2}=this[_0x50923d(0x1a9)](),_0x3dc6fb=_0x261b74+_0x1ebc3c/0x2,_0xb1b08c=_0x38365f+_0x49b4c2/0x2,_0x2ecbe6=this[_0x50923d(0x30c)][_0x50923d(0x215)](),_0x183fc0=new _0x47a678([_0x2ecbe6[0x0],_0x2ecbe6[0x1],_0x2ecbe6[0x2],_0x2ecbe6[0x3],_0x3dc6fb,_0xb1b08c]),_0x1b52c8=this[_0x50923d(0x17b)](),_0x471e2b=(this[_0x50923d(0x316)]&&(_0x1b52c8==null?void 0x0:_0x1b52c8['classType'])===_0x5b306f[_0x50923d(0x159)]?_0x1b52c8[_0x50923d(0x2f7)]['multiply'](_0x183fc0):_0x183fc0)[_0x50923d(0x26b)]()[_0x50923d(0x1c2)](_0x36b84b),_0x3f63de=_0x1ebc3c/0x2,_0x22e837=_0x49b4c2/0x2,_0xf91f3f=this[_0x50923d(0x258)][_0x50923d(0x19a)];return _0xf91f3f&&_0xf91f3f[_0x50923d(0x237)]()?_0xf91f3f[_0x50923d(0x194)](_0x471e2b['x'],_0x471e2b['y'],_0x1ebc3c,_0x49b4c2):_0x471e2b['x']>=-_0x3f63de-this[_0x50923d(0x198)]/0x2&&_0x471e2b['x']<=_0x3f63de+this[_0x50923d(0x198)]/0x2&&_0x471e2b['y']>=-_0x22e837-this[_0x50923d(0x198)]/0x2&&_0x471e2b['y']<=_0x22e837+this[_0x50923d(0x198)]/0x2;}[_0x32a71f(0x10f)](){const _0x4e2e1d=_0x32a71f;this[_0x4e2e1d(0x1ce)]['dispose'](),this['_props']['shapeModel']=null,super[_0x4e2e1d(0x10f)]();}};let qi=class extends _0x2c4c7f{constructor(_0x72e128,_0x290ed2,_0xc9e963,_0x130768){const _0x5ccdee=_0x32a71f;super(),this[_0x5ccdee(0x23a)]=_0x72e128,this[_0x5ccdee(0x2d2)]=_0x290ed2,this[_0x5ccdee(0x1fa)]=_0xc9e963,this[_0x5ccdee(0x172)]=_0x130768,X(this,_0x5ccdee(0x340),null),X(this,_0x5ccdee(0x2bd),null),X(this,_0x5ccdee(0x314),null),X(this,_0x5ccdee(0x2ad),void 0x0),X(this,'_adjustPointObjects',[]),X(this,_0x5ccdee(0x246),0x0),X(this,_0x5ccdee(0x300),0x0),X(this,_0x5ccdee(0x126),0x0),X(this,_0x5ccdee(0x202),0x0),X(this,_0x5ccdee(0x213),!0x1),X(this,'_isShouldShowDrawingShapeAdjust',!0x1),X(this,_0x5ccdee(0x19c),void 0x0),X(this,'_activeShapeModel',void 0x0),X(this,_0x5ccdee(0x2c8),void 0x0),X(this,'_adjHandlerPointerUp',void 0x0),this[_0x5ccdee(0x1a2)](),this[_0x5ccdee(0x24a)]();}[_0x32a71f(0x163)](){this['_clearShapeAdjustControls']();}[_0x32a71f(0x19e)](){this['_updateShapeAdjustControls'](!0x0);}[_0x32a71f(0x1d8)](_0x6d4ac8,_0x1c8d09,_0x1973e6){const _0x2f8208=_0x32a71f;var _0x5499bc;return(_0x5499bc=this[_0x2f8208(0x1fa)][_0x2f8208(0x31b)](_0x6d4ac8,_0x1c8d09,_0x1973e6))==null?void 0x0:_0x5499bc['getDrawingPoints']();}[_0x32a71f(0x2b5)](_0x5bc861,_0x317c99,_0x17d719,_0x242c13){const _0x250d27=_0x32a71f;var _0x5a5c87;return(_0x5a5c87=this[_0x250d27(0x1fa)][_0x250d27(0x31b)](_0x5bc861,_0x317c99,_0x17d719))==null?void 0x0:_0x5a5c87['getAdjustInfoByName'](_0x242c13);}[_0x32a71f(0x325)](){const _0xd51562=_0x32a71f;return this[_0xd51562(0x2bd)]===null||this[_0xd51562(0x314)]===null||this[_0xd51562(0x340)]===null?null:this[_0xd51562(0x2d2)][_0xd51562(0x30e)]({'unitId':this[_0xd51562(0x2bd)],'subUnitId':this[_0xd51562(0x314)],'drawingId':this[_0xd51562(0x340)]})??null;}['_getActiveDrawingShape'](_0x2a261b){const _0x483b40=_0x32a71f;if(this[_0x483b40(0x2bd)]===null||this[_0x483b40(0x314)]===null||this['_activeShapeId']===null)return null;let _0x135bcc=_0x362385({'unitId':this['_unitId'],'subUnitId':this[_0x483b40(0x314)],'drawingId':this[_0x483b40(0x340)]}),_0x180fc7=_0x2a261b['getObjectIncludeInGroup'](_0x135bcc);return _0x180fc7 instanceof Z?_0x180fc7:null;}[_0x32a71f(0x369)](_0x4c804d=!0x1){const _0x5344d5=_0x32a71f;if(this[_0x5344d5(0x2bd)]===null||this['_subUnitId']===null||this[_0x5344d5(0x340)]===null)return;let _0x1d4510=this[_0x5344d5(0x325)]();if((_0x1d4510==null?void 0x0:_0x1d4510[_0x5344d5(0x32a)])!==_0x27f24b[_0x5344d5(0x10d)]||!_0x1d4510[_0x5344d5(0x30c)])return;let _0x373129=this[_0x5344d5(0x1fa)][_0x5344d5(0x31b)](this[_0x5344d5(0x2bd)],this[_0x5344d5(0x314)],this['_activeShapeId']);if(!_0x373129||_0x373129[_0x5344d5(0x237)]())return;let {left:_0x536741=0x0,top:_0x4b6e16=0x0,width:_0x806a72=0x0,height:_0x273834=0x0,flipX:_0x2440c0,flipY:_0x476bba,angle:_0x1f3846=0x0}=_0x1d4510[_0x5344d5(0x30c)];(_0x4c804d||!this['_activeShapeAdjustPointList'])&&(_0x373129[_0x5344d5(0x2c7)]({'width':_0x806a72,'height':_0x273834}),this['_activeShapeAdjustPointList']=_0x373129[_0x5344d5(0x233)]());let _0x48ae9a=this[_0x5344d5(0x2ad)];if(!(_0x48ae9a!=null&&_0x48ae9a[_0x5344d5(0x1a1)]))return;let {scene:_0x2d6abc}=this[_0x5344d5(0x23a)];for(let _0x44cf5f of _0x48ae9a){let _0x34ffb3=this[_0x5344d5(0x129)](_0x44cf5f,_0x806a72,_0x273834,!!_0x2440c0,!!_0x476bba,_0x1f3846);this[_0x5344d5(0x283)](_0x2d6abc,_0x34ffb3,_0x34ffb3['adjName'],_0x536741,_0x4b6e16,this['_unitId'],this[_0x5344d5(0x314)]);}}[_0x32a71f(0x129)](_0x5c65a9,_0x150173,_0x44628e,_0x2a4166,_0x9eef11,_0x181e7c){const _0x18e3fa=_0x32a71f;let _0x4b0c9f=_0x5c65a9['x'],_0x1c3bea=_0x5c65a9['y'];if(_0x2a4166&&(_0x4b0c9f=_0x150173-_0x4b0c9f),_0x9eef11&&(_0x1c3bea=_0x44628e-_0x1c3bea),_0x181e7c!==0x0){let _0x17038e=_0x150173/0x2,_0x542c26=_0x44628e/0x2,_0x49a9e7=_0x181e7c*Math['PI']/0xb4,_0x49c461=Math[_0x18e3fa(0x32b)](_0x49a9e7),_0x1791f3=Math[_0x18e3fa(0x2e3)](_0x49a9e7),_0x2d9c5a=_0x4b0c9f-_0x17038e,_0x2a8311=_0x1c3bea-_0x542c26;_0x4b0c9f=_0x17038e+(_0x2d9c5a*_0x49c461-_0x2a8311*_0x1791f3),_0x1c3bea=_0x542c26+(_0x2d9c5a*_0x1791f3+_0x2a8311*_0x49c461);}return{'x':_0x4b0c9f,'y':_0x1c3bea,'adjName':_0x5c65a9[_0x18e3fa(0x1a8)]};}[_0x32a71f(0x2e9)](_0x3b83a4=!0x1){const _0x5a12d3=_0x32a71f;_0x3b83a4&&this[_0x5a12d3(0x167)](),this[_0x5a12d3(0x369)](_0x3b83a4);}[_0x32a71f(0x283)](_0x3821da,_0x5a2088,_0x27d9db,_0x14ce5b,_0x11988c,_0x1d4cc7,_0x1fe1d0){const _0x128819=_0x32a71f;if(!this[_0x128819(0x340)])return;let _0x94bfdd='doc-shape-adjust-point-'+this[_0x128819(0x340)]+'-'+_0x27d9db,_0x205e60=_0x3821da[_0x128819(0x2e5)](_0x94bfdd);if(_0x205e60){_0x205e60['transformByState']({'left':_0x5a2088['x']+_0x14ce5b-_0x4e34b8['adjHandleSize'],'top':_0x5a2088['y']+_0x11988c-_0x4e34b8[_0x128819(0x10b)]}),_0x205e60[_0x128819(0x2dc)](!0x0);return;}let _0x20dac9=new Gi(_0x94bfdd,{'left':_0x5a2088['x']+_0x14ce5b-_0x4e34b8['adjHandleSize'],'top':_0x5a2088['y']+_0x11988c-_0x4e34b8['adjHandleSize'],'adjName':_0x27d9db,'shapeId':this[_0x128819(0x340)],'unitId':_0x1d4cc7,'subUnitId':_0x1fe1d0,'width':_0x4e34b8[_0x128819(0x10b)]+0x8,'height':_0x4e34b8[_0x128819(0x10b)]+0x8,'zIndex':_0x3c2d59+0x1,'evented':!0x0});this[_0x128819(0x2cd)][_0x128819(0x175)](_0x20dac9),this['_attachAdjustEvent'](_0x20dac9,_0x3821da,_0x27d9db),_0x3821da[_0x128819(0x239)](_0x20dac9,_0x3c2d59+0x1);}[_0x32a71f(0x167)](){const _0x2361c2=_0x32a71f;this[_0x2361c2(0x2cd)][_0x2361c2(0x2f1)](_0x2be2bb=>_0x2be2bb[_0x2361c2(0x10f)]()),this[_0x2361c2(0x2cd)]=[];}[_0x32a71f(0x2b1)](){this['_createShapeAdjustControls']();}[_0x32a71f(0x348)](_0x136798,_0x20c332,_0x55ebc1){const _0x1481ee=_0x32a71f;let _0x5c992=_0x5bda34['FromArray']([_0x20c332,_0x55ebc1]),_0x4fef61=_0x136798[_0x1481ee(0x23b)](_0x5c992)??_0x136798[_0x1481ee(0x2db)]()[0x0];return(_0x4fef61==null?void 0x0:_0x4fef61[_0x1481ee(0x1aa)](_0x5c992))??_0x5c992;}['_attachAdjustEvent'](_0x180088,_0x186ccf,_0x4edad7){const _0x34d627=_0x32a71f;this[_0x34d627(0x12f)](_0x8215d0(_0x180088[_0x34d627(0x267)]['subscribeEvent']((_0x478309,_0x30090e)=>{const _0x40dfc0=_0x34d627;var _0x4ccddf;let _0x3dcae7=_0x180088[_0x40dfc0(0x1bd)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x3dcae7[_0x40dfc0(0x2c4)],_0x3dcae7[_0x40dfc0(0x356)],_0x3dcae7['drawingId'],_0x4edad7),this[_0x40dfc0(0x36b)]=this[_0x40dfc0(0x1fa)][_0x40dfc0(0x31b)](_0x3dcae7[_0x40dfc0(0x2c4)],_0x3dcae7['subUnitId'],_0x3dcae7['drawingId']);let _0x40e9ed=this[_0x40dfc0(0x325)](),_0xc4aaa4=_0x40e9ed==null?void 0x0:_0x40e9ed[_0x40dfc0(0x30c)];if(!_0x40e9ed||!_0xc4aaa4||!this[_0x40dfc0(0x36b)])return;this['_baseShapeLeft']=_0xc4aaa4[_0x40dfc0(0x201)]||0x0,this[_0x40dfc0(0x300)]=_0xc4aaa4[_0x40dfc0(0x332)]||0x0,this['_baseShapeWidth']=_0xc4aaa4[_0x40dfc0(0x200)]||0x0,this[_0x40dfc0(0x202)]=_0xc4aaa4[_0x40dfc0(0x17f)]||0x0;let _0x545d54=!!_0xc4aaa4[_0x40dfc0(0x2c1)],_0x510dcc=!!_0xc4aaa4[_0x40dfc0(0x308)],_0x3ddbdf=_0xc4aaa4['angle']||0x0,_0x5650e6={...((_0x4ccddf=this['_activeAdjustInfo'])==null?void 0x0:_0x4ccddf['currentAdjustValues'])??{}};this['_isStartAdjusting']=!0x0,_0x186ccf[_0x40dfc0(0x2da)](),this['_adjHandlerPointerMove']=_0x186ccf['onPointerMove$'][_0x40dfc0(0x1e0)]((_0x5dd8bf,_0x301fe8)=>{const _0xf2efc3=_0x40dfc0;var _0x465f0b;if(!this['_isStartAdjusting']||!this[_0xf2efc3(0x36b)]||!this[_0xf2efc3(0x19c)])return;_0x186ccf[_0xf2efc3(0x2da)](),_0x186ccf[_0xf2efc3(0x370)](_0x373d45[_0xf2efc3(0x31d)]);let _0x2c2aac=this['_toScenePoint'](_0x186ccf,_0x5dd8bf['offsetX'],_0x5dd8bf[_0xf2efc3(0x2f0)]),_0x277c17=_0x2c2aac['x']-this[_0xf2efc3(0x246)],_0xa4a131=_0x2c2aac['y']-this[_0xf2efc3(0x300)];if(_0x3ddbdf!==0x0){let _0x19cf48=this[_0xf2efc3(0x126)]/0x2,_0x38d8dd=this['_baseShapeHeight']/0x2,_0x403d74=_0x3ddbdf*Math['PI']/0xb4,_0x47b08c=Math[_0xf2efc3(0x32b)](_0x403d74),_0x489def=Math[_0xf2efc3(0x2e3)](_0x403d74),_0x1deb19=_0x277c17-_0x19cf48,_0x45455f=_0xa4a131-_0x38d8dd;_0x277c17=_0x19cf48+(_0x1deb19*_0x47b08c+_0x45455f*_0x489def),_0xa4a131=_0x38d8dd+(-_0x1deb19*_0x489def+_0x45455f*_0x47b08c);}_0x545d54&&(_0x277c17=this[_0xf2efc3(0x126)]-_0x277c17),_0x510dcc&&(_0xa4a131=this['_baseShapeHeight']-_0xa4a131);let _0x5b0966={'left':0x0,'top':0x0,'width':this[_0xf2efc3(0x126)],'height':this[_0xf2efc3(0x202)]},_0x1650f0=this[_0xf2efc3(0x36b)]['calcAdjValues'](_0x5b0966,{'x':_0x277c17,'y':_0xa4a131},this[_0xf2efc3(0x19c)],_0x545d54,_0x510dcc);if(Object[_0xf2efc3(0x13f)](_0x1650f0)[_0xf2efc3(0x1a1)]!==0x0){for(let [_0x24520a,_0x5b3b9f]of Object[_0xf2efc3(0x219)](_0x1650f0))this[_0xf2efc3(0x36b)][_0xf2efc3(0x367)](_0x24520a,_0x5b3b9f);this['_activeShapeModel']['updateContext']({'width':this[_0xf2efc3(0x126)],'height':this[_0xf2efc3(0x202)]}),(_0x465f0b=this[_0xf2efc3(0x297)](_0x186ccf))==null||_0x465f0b[_0xf2efc3(0x2dc)](!0x0),this['_activeShapeAdjustPointList']=this[_0xf2efc3(0x1d8)](_0x3dcae7[_0xf2efc3(0x2c4)],_0x3dcae7[_0xf2efc3(0x356)],_0x3dcae7['drawingId']),this[_0xf2efc3(0x2b1)](),_0x301fe8['stopPropagation']();}}),this['_adjHandlerPointerUp']=_0x186ccf[_0x40dfc0(0x178)][_0x40dfc0(0x1e0)]((_0x193a1b,_0x1292cf)=>{const _0x131968=_0x40dfc0;var _0x1cc702,_0x2ea130;(_0x1cc702=this[_0x131968(0x2c8)])==null||_0x1cc702['unsubscribe'](),(_0x2ea130=this[_0x131968(0x161)])==null||_0x2ea130['unsubscribe'](),_0x186ccf[_0x131968(0x12c)]();let _0x35f142=this['_activeAdjustInfo'];if(_0x35f142&&this[_0x131968(0x36b)]){let _0x18f574={};for(let _0x4cc4f5 of Object[_0x131968(0x13f)](_0x35f142[_0x131968(0x110)])){let _0x54d5b7=this[_0x131968(0x36b)][_0x131968(0x18e)](_0x4cc4f5);_0x54d5b7!==void 0x0&&(_0x18f574[_0x4cc4f5]=_0x54d5b7);}Object[_0x131968(0x13f)](_0x18f574)[_0x131968(0x1a1)]>0x0&&Yr(this['_commandService'],_0x3dcae7[_0x131968(0x2c4)],_0x3dcae7['subUnitId'],_0x3dcae7['drawingId'],{'oldShapeData':{'adjustValues':_0x5650e6}},{'adjustValues':_0x18f574});}this[_0x131968(0x19c)]=void 0x0,this['_activeShapeModel']=void 0x0,this['_isStartAdjusting']=!0x1,_0x186ccf[_0x131968(0x358)](),_0x1292cf['stopPropagation']();}),_0x30090e[_0x40dfc0(0x279)]();})));}[_0x32a71f(0x24a)](){const _0x455e70=_0x32a71f;let {scene:_0x115bd0}=this[_0x455e70(0x23a)],_0x243d17=_0x115bd0['getTransformerByCreate']();this[_0x455e70(0x12f)](_0x243d17[_0x455e70(0x221)]['subscribe'](_0x1f53d9=>{const _0x18b22a=_0x455e70;this[_0x18b22a(0x369)](),_0x1f53d9[_0x18b22a(0x187)]!==null&&_0x1f53d9[_0x18b22a(0x187)]['size']===0x1&&_0x1f53d9[_0x18b22a(0x187)][_0x18b22a(0x235)]()[_0x18b22a(0x276)]()[_0x18b22a(0x1f3)]instanceof Z&&(this[_0x18b22a(0x26d)]=!0x0);})),this[_0x455e70(0x12f)](_0x243d17[_0x455e70(0x34a)][_0x455e70(0x25c)](()=>{const _0x44b82c=_0x455e70;this[_0x44b82c(0x26d)]&&this[_0x44b82c(0x167)]();})),this['disposeWithMe'](_0x115bd0[_0x455e70(0x178)][_0x455e70(0x1e0)](()=>{this['_isShouldShowDrawingShapeAdjust']&&(this['_isShouldShowDrawingShapeAdjust']=!0x1,this['_createShapeAdjustControls']());})),this[_0x455e70(0x12f)](_0x243d17['changeEnd$'][_0x455e70(0x25c)](()=>{const _0x53e9ba=_0x455e70;this[_0x53e9ba(0x2bd)]&&this[_0x53e9ba(0x314)]&&this[_0x53e9ba(0x340)]&&(this[_0x53e9ba(0x2ad)]=this[_0x53e9ba(0x1d8)](this[_0x53e9ba(0x2bd)],this['_subUnitId'],this['_activeShapeId']),this[_0x53e9ba(0x2b1)]());}));}[_0x32a71f(0x1a2)](){const _0x1b71aa=_0x32a71f;this['disposeWithMe'](this['_commandService'][_0x1b71aa(0x2a6)](_0x1057ca=>{const _0x4534e3=_0x1b71aa;if(_0x1057ca['id']!==_0x365039['id'])return;let {unitId:_0x455e83,shapeId:_0x48caa4}=_0x1057ca['params'];_0x455e83===this[_0x4534e3(0x2bd)]&&_0x48caa4===this[_0x4534e3(0x340)]&&this[_0x4534e3(0x19e)]();})),this[_0x1b71aa(0x12f)](this[_0x1b71aa(0x2d2)]['focus$'][_0x1b71aa(0x25c)](_0x46292b=>{const _0x264092=_0x1b71aa;if(_0x46292b['length']===0x1){let _0x1f4ea5=_0x46292b[0x0],_0x21a80d=this[_0x264092(0x2d2)][_0x264092(0x30e)](_0x1f4ea5);if((_0x21a80d==null?void 0x0:_0x21a80d[_0x264092(0x32a)])===_0x27f24b['DRAWING_SHAPE']){this[_0x264092(0x340)]=_0x1f4ea5[_0x264092(0x335)],this[_0x264092(0x2bd)]=_0x1f4ea5['unitId'],this[_0x264092(0x314)]=_0x1f4ea5[_0x264092(0x356)],this[_0x264092(0x2ad)]=this[_0x264092(0x1d8)](_0x1f4ea5[_0x264092(0x2c4)],_0x1f4ea5[_0x264092(0x356)],_0x1f4ea5[_0x264092(0x335)]),this[_0x264092(0x167)](),this[_0x264092(0x369)]();return;}}this[_0x264092(0x340)]=null,this[_0x264092(0x2ad)]=void 0x0,this[_0x264092(0x2bd)]=null,this[_0x264092(0x314)]=null,this[_0x264092(0x167)]();})),this[_0x1b71aa(0x12f)](_0x4e55e8(this['_drawingManagerService'][_0x1b71aa(0x16f)],this['_drawingManagerService']['refreshTransform$'])[_0x1b71aa(0x25c)](_0x454101=>{const _0x3b69db=_0x1b71aa;var _0x2612ed;let _0x1cac0e=_0x454101[_0x3b69db(0x108)](_0x4d196d=>_0x4d196d['drawingId']===this[_0x3b69db(0x340)]&&_0x4d196d[_0x3b69db(0x2c4)]===this[_0x3b69db(0x2bd)]&&_0x4d196d[_0x3b69db(0x356)]===this['_subUnitId']);_0x1cac0e&&((_0x2612ed=this[_0x3b69db(0x2d2)][_0x3b69db(0x30e)](_0x1cac0e))==null?void 0x0:_0x2612ed[_0x3b69db(0x32a)])===_0x27f24b['DRAWING_SHAPE']&&this[_0x3b69db(0x2e9)](!0x0);})),this[_0x1b71aa(0x12f)](this[_0x1b71aa(0x2d2)]['remove$'][_0x1b71aa(0x25c)](_0x294111=>{const _0x5fd534=_0x1b71aa;for(let _0x299f62 of _0x294111)this[_0x5fd534(0x340)]===_0x299f62[_0x5fd534(0x335)]&&(this[_0x5fd534(0x340)]=null,this[_0x5fd534(0x2ad)]=void 0x0,this[_0x5fd534(0x2bd)]=null,this[_0x5fd534(0x314)]=null,this[_0x5fd534(0x167)]());}));}};qi=q([K(0x1,_0x543f62),K(0x2,_0x9fe2f5(_0x184287)),K(0x3,_0x4129fd)],qi);let Q=class extends _0x2c4c7f{constructor(_0x3340ea,_0x1e5895){const _0x5092f6=_0x32a71f;super(),this[_0x5092f6(0x251)]=_0x3340ea,this[_0x5092f6(0x22e)]=_0x1e5895,X(this,_0x5092f6(0x372),new _0x26dc0a(null)),X(this,_0x5092f6(0x164),this[_0x5092f6(0x372)][_0x5092f6(0x364)]()),X(this,_0x5092f6(0x2e2),new _0x26dc0a(!0x1)),X(this,_0x5092f6(0x2c2),this[_0x5092f6(0x2e2)]['asObservable']()),X(this,_0x5092f6(0x139),void 0x0),this[_0x5092f6(0x12f)](this[_0x5092f6(0x251)]['permissionPointUpdate$'][_0x5092f6(0x25c)](()=>{const _0x5b1e0d=_0x5092f6;let _0xc6150f=this[_0x5b1e0d(0x1eb)]();_0xc6150f!=null&&_0xc6150f[_0x5b1e0d(0x186)]&&!this[_0x5b1e0d(0x343)](_0xc6150f)&&this[_0x5b1e0d(0x357)](null);}));}[_0x32a71f(0x10f)](){const _0x1fbf07=_0x32a71f;this['_clearCompletionFrame'](),this[_0x1fbf07(0x372)]['next'](null),this[_0x1fbf07(0x372)][_0x1fbf07(0x2f6)](),this['_onSavingEditorData$'][_0x1fbf07(0x276)](!0x1),this[_0x1fbf07(0x2e2)]['complete'](),super[_0x1fbf07(0x10f)]();}[_0x32a71f(0x357)](_0x51f111){const _0xfea080=_0x32a71f;(_0x51f111==null||!_0x51f111[_0xfea080(0x186)]||this[_0xfea080(0x343)](_0x51f111))&&(this['_clearCompletionFrame'](),this[_0xfea080(0x372)][_0xfea080(0x276)](_0x51f111),(_0x51f111==null||_0x51f111['visible']&&this['_onSavingEditorData$']['getValue']())&&this['_onSavingEditorData$'][_0xfea080(0x276)](!0x1));}[_0x32a71f(0x1b0)](_0x3330f4){const _0x477363=_0x32a71f;this[_0x477363(0x2e2)]['next'](_0x3330f4);}[_0x32a71f(0x1eb)](){const _0x3f29d7=_0x32a71f;return this[_0x3f29d7(0x372)][_0x3f29d7(0x2f4)]();}['_canEdit'](_0x32845e){const _0x5b71b9=_0x32a71f;let _0x4be40b=this['_instanceService']['getUnit'](_0x32845e[_0x5b71b9(0x2c4)],_0x5be7f7[_0x5b71b9(0x1c0)]);if(!_0x4be40b)return!0x0;let _0x357373=_0x4a6ec5(_0x4be40b,_0x32845e[_0x5b71b9(0x174)]);return _0x55fe4b(this[_0x5b71b9(0x251)],_0x32845e[_0x5b71b9(0x2c4)],[..._0x1b791b(_0x4be40b,_0x357373,'drawing',_0x32845e[_0x5b71b9(0x174)]),_0x1c073e(_0x357373,'drawing',_0x32845e['shapeId'])]);}[_0x32a71f(0x255)](_0x1eab01){const _0x148e32=_0x32a71f;let _0x357a82=this[_0x148e32(0x1eb)]();_0x357a82&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x481333=_0x148e32;this[_0x481333(0x139)]=void 0x0,this[_0x481333(0x1eb)]()===_0x357a82&&this['setEditing'](null);}));}[_0x32a71f(0x311)](){const _0x31e436=_0x32a71f;this[_0x31e436(0x139)]!==void 0x0&&(cancelAnimationFrame(this[_0x31e436(0x139)]),this[_0x31e436(0x139)]=void 0x0);}['cancelEditing'](){const _0x150ea1=_0x32a71f;this[_0x150ea1(0x1eb)]()&&this['setEditing'](null);}};Q=q([K(0x0,_0x4929ce),K(0x1,_0x434573)],Q);function Ji(_0x488a97){const _0xc71ded=_0x32a71f;return _0x488a97['behindText']===!0x0||_0x488a97[_0xc71ded(0x12b)]===_0x388e66[_0xc71ded(0x16e)]||_0x488a97[_0xc71ded(0x1bf)]===_0x54d491['WRAP_NONE']&&_0x488a97['behindDoc']===_0x388e66[_0xc71ded(0x16e)]?_0x1a7818-0x1:_0x3c2d59;}let $=class extends _0x2c4c7f{constructor(_0x948acf,_0x24890a,_0x37dbee,_0x13cfe3,_0x2e2912,_0x38a9a2,_0x2f2f36){const _0x2a9e5a=_0x32a71f;super(),this[_0x2a9e5a(0x2d2)]=_0x948acf,this[_0x2a9e5a(0x1fa)]=_0x24890a,this[_0x2a9e5a(0x210)]=_0x37dbee,this[_0x2a9e5a(0x2d5)]=_0x13cfe3,this['_urlImageService']=_0x2e2912,this[_0x2a9e5a(0x347)]=_0x38a9a2,this[_0x2a9e5a(0x28a)]=_0x2f2f36,X(this,_0x2a9e5a(0x29c),new Map()),this[_0x2a9e5a(0x12f)](this[_0x2a9e5a(0x28a)][_0x2a9e5a(0x26a)][_0x2a9e5a(0x25c)](_0x5bb3d7=>{const _0x5c528b=_0x2a9e5a;var _0x2d7c28;(_0x2d7c28=this[_0x5c528b(0x29c)][_0x5c528b(0x2ee)](this[_0x5c528b(0x137)](_0x5bb3d7['unitId'],_0x5bb3d7[_0x5c528b(0x356)],_0x5bb3d7[_0x5c528b(0x174)])))==null||_0x2d7c28[_0x5c528b(0x2f1)](_0x3c89ad=>_0x3c89ad[_0x5c528b(0x290)](_0x5bb3d7[_0x5c528b(0x1b2)],_0x5bb3d7['animationEnabled']));})),this[_0x2a9e5a(0x12f)](this[_0x2a9e5a(0x2d2)][_0x2a9e5a(0x32e)][_0x2a9e5a(0x25c)](_0x24d209=>{_0x24d209['forEach'](_0x135cc3=>{const _0x45cb37=_0x1001;this[_0x45cb37(0x28a)][_0x45cb37(0x275)]({'unitId':_0x135cc3[_0x45cb37(0x2c4)],'subUnitId':_0x135cc3[_0x45cb37(0x356)],'shapeId':_0x135cc3[_0x45cb37(0x335)]}),this[_0x45cb37(0x29c)][_0x45cb37(0x14c)](this[_0x45cb37(0x137)](_0x135cc3[_0x45cb37(0x2c4)],_0x135cc3[_0x45cb37(0x356)],_0x135cc3[_0x45cb37(0x335)]));});}));}['renderDrawingShape'](_0x24c485,_0x40b437){const _0x5d549e=_0x32a71f;let {transform:_0x4212cd,drawingType:_0x5b14c5,srcRect:_0x92966c,prstGeom:_0x51d284,groupId:_0x44167b,unitId:_0x28147e,subUnitId:_0x277347,drawingId:_0xaa07e2,isMultiTransform:_0x40960e,transforms:_0x2f194a,hidden:_0x578618,selectable:_0x353d33}=_0x24c485;if(_0x5b14c5!==_0x27f24b[_0x5d549e(0x10d)]||!this[_0x5d549e(0x2d2)]['getDrawingVisible']()||_0x4212cd==null)return;let _0x319f95=this['_drawingManagerService'][_0x5d549e(0x20d)](),_0x470fd6=_0x40960e&&_0x2f194a?_0x2f194a:[_0x4212cd],_0xd24e54=[];for(let [_0x19c028,_0x5c2d2d]of _0x470fd6['entries']()){let {left:_0x462e8f,top:_0x3c4930,width:_0x25fbc9,height:_0x458832,angle:_0x293c81,flipX:_0x15478e,flipY:_0x26e545,skewX:_0x361d03,skewY:_0x259a25}=_0x5c2d2d,_0x35fa42=_0x362385({'unitId':_0x28147e,'subUnitId':_0x277347,'drawingId':_0xaa07e2},_0x40960e?_0x19c028:void 0x0),_0x15aa60=_0x40b437[_0x5d549e(0x2e5)](_0x35fa42);if(_0x15aa60!=null){let _0x1048b0={'unitId':_0x28147e,'subUnitId':_0x277347,'shapeId':_0xaa07e2};_0x15aa60 instanceof Z&&this[_0x5d549e(0x208)](_0x15aa60,_0x1048b0),_0x15aa60[_0x5d549e(0x2ed)]({'left':_0x462e8f,'top':_0x3c4930,'width':_0x25fbc9,'height':_0x458832,'angle':_0x293c81,'flipX':_0x15478e,'flipY':_0x26e545,'skewX':_0x361d03,'skewY':_0x259a25});continue;}let _0x47f36d=this[_0x5d549e(0x2d2)][_0x5d549e(0x19d)](_0x28147e,_0x277347),_0x4655d9=_0x47f36d[_0x5d549e(0x136)](_0xaa07e2);if(_0x40b437[_0x5d549e(0x2e5)](_0x35fa42)||!this[_0x5d549e(0x2d2)]['getDrawingVisible']())continue;let _0x6ae8b=this['_docsShapeService'][_0x5d549e(0x31b)](_0x28147e,_0x277347,_0xaa07e2);if(!_0x6ae8b)continue;let _0x42ec1f=_0x9d2c65(_0x6ae8b[_0x5d549e(0x16d)]())?{..._0x57df74,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x57df74,_0x3b15f4=_0x6ae8b[_0x5d549e(0x1fd)]()[_0x5d549e(0x1b9)],_0xcf6cd7={'unitId':_0x28147e,'subUnitId':_0x277347,'shapeId':_0xaa07e2};_0x3b15f4&&this[_0x5d549e(0x28a)]['register'](_0xcf6cd7,_0x3b15f4);let _0x5f30ce=new Z(_0x35fa42,{..._0x5c2d2d,'zIndex':_0x4655d9===-0x1?_0x47f36d[_0x5d549e(0x1a1)]-0x1:_0x4655d9,'shapeModel':_0x6ae8b,'localeService':this['_localeService'],'shapeId':_0xaa07e2,'unitId':_0x28147e,'subUnitId':_0x277347,'visible':_0x578618!==!0x0,'evented':_0x353d33!==!0x1,'formulaPresentation':_0x3b15f4?this[_0x5d549e(0x28a)][_0x5d549e(0x13a)](_0xcf6cd7):void 0x0,'animateFormulaPresentation':(_0x3b15f4==null?void 0x0:_0x3b15f4[_0x5d549e(0x30d)])!==!0x1,'transformerConfig':_0x42ec1f});if(_0x3b15f4){let _0x3437ca=this['_formulaKey'](_0x28147e,_0x277347,_0xaa07e2),_0x4420a0=this[_0x5d549e(0x29c)][_0x5d549e(0x2ee)](_0x3437ca)??new Set();_0x4420a0[_0x5d549e(0x1ff)](_0x5f30ce),this[_0x5d549e(0x29c)][_0x5d549e(0x280)](_0x3437ca,_0x4420a0);}this[_0x5d549e(0x12f)](_0x8215d0(_0x5f30ce['onDblclick$'][_0x5d549e(0x1e0)]((_0x522006,_0x6fd6c7)=>{const _0x33e29d=_0x5d549e;_0x6ae8b[_0x33e29d(0x237)]()||_0x3b15f4||(this['_shapeTextEditingService']['setEditing']({'visible':!0x0,'unitId':_0x28147e,'subUnitId':_0x277347,'shapeId':_0xaa07e2,'shapeKey':_0x5f30ce[_0x33e29d(0x133)]}),_0x6fd6c7[_0x33e29d(0x279)]());}))),_0x40b437[_0x5d549e(0x239)](_0x5f30ce,Ji(_0x24c485)),_0x319f95&&_0x40b437['attachTransformerTo'](_0x5f30ce),_0x44167b&&_0x278be3({'drawingId':_0x44167b,'unitId':_0x28147e,'subUnitId':_0x277347},_0x5f30ce,_0x40b437,this['_drawingManagerService'],_0x40960e?_0x19c028:void 0x0),_0x51d284!=null&&_0x5f30ce[_0x5d549e(0x20a)](_0x51d284),_0x92966c!=null&&_0x5f30ce[_0x5d549e(0x197)](_0x92966c),this[_0x5d549e(0x1ae)](_0x5f30ce,_0x6ae8b[_0x5d549e(0x1fd)]()),_0xd24e54['push'](_0x5f30ce);}return _0xd24e54;}[_0x32a71f(0x137)](_0xd673b8,_0x5bc42c,_0x45b3b4){return _0xd673b8+'\x00'+_0x5bc42c+'\x00'+_0x45b3b4;}[_0x32a71f(0x208)](_0x186226,_0x3733a2){const _0x347ea8=_0x32a71f;let _0x117ecc=this[_0x347ea8(0x1fa)][_0x347ea8(0x31b)](_0x3733a2['unitId'],_0x3733a2[_0x347ea8(0x356)],_0x3733a2['shapeId']),_0x48063b=_0x117ecc==null?void 0x0:_0x117ecc[_0x347ea8(0x1fd)]()[_0x347ea8(0x1b9)],_0x1ac286=this[_0x347ea8(0x137)](_0x3733a2[_0x347ea8(0x2c4)],_0x3733a2[_0x347ea8(0x356)],_0x3733a2[_0x347ea8(0x174)]);if(_0x48063b){this[_0x347ea8(0x28a)][_0x347ea8(0x375)](_0x3733a2,_0x48063b);let _0xccab1e=this[_0x347ea8(0x29c)][_0x347ea8(0x2ee)](_0x1ac286)??new Set();_0xccab1e[_0x347ea8(0x1ff)](_0x186226),this['_formulaShapes']['set'](_0x1ac286,_0xccab1e);}else{var _0x3908b3;this['_shapeFormulaService'][_0x347ea8(0x275)](_0x3733a2),(_0x3908b3=this[_0x347ea8(0x29c)][_0x347ea8(0x2ee)](_0x1ac286))==null||_0x3908b3[_0x347ea8(0x14c)](_0x186226);}_0x186226[_0x347ea8(0x290)](_0x48063b?this[_0x347ea8(0x28a)][_0x347ea8(0x13a)](_0x3733a2):void 0x0,(_0x48063b==null?void 0x0:_0x48063b['animationEnabled'])!==!0x1);}['refreshShapeFillImage'](_0x1fefb2){const _0x3c6144=_0x32a71f;let _0x255af2=_0x1fefb2[_0x3c6144(0x19a)][_0x3c6144(0x1fd)](),_0x46e05d=_0x255af2[_0x3c6144(0x24c)];!_0x46e05d||_0x46e05d['fillType']!==_0x1c8a88['PictureFill']||!_0x46e05d[_0x3c6144(0x2b7)]?_0x1fefb2[_0x3c6144(0x122)](void 0x0):this[_0x3c6144(0x1ae)](_0x1fefb2,_0x255af2);}[_0x32a71f(0x1ae)](_0x42b456,_0x4b336d){const _0x4a7ed3=_0x32a71f;let _0xef5721=_0x4b336d[_0x4a7ed3(0x24c)];if(!_0xef5721||_0xef5721[_0x4a7ed3(0x1f8)]!==_0x1c8a88['PictureFill']||!_0xef5721[_0x4a7ed3(0x2b7)])return;let _0x74207a=_0xef5721[_0x4a7ed3(0x2b7)],_0x4103ea=_0xef5721['fillImageSourceType']??_0x1f7d45['URL'],_0x136c6a=this['_imageIoService'][_0x4a7ed3(0x180)](_0x74207a,_0x4103ea);_0x136c6a?_0x42b456[_0x4a7ed3(0x122)](_0x136c6a):this['_loadAndSetImage'](_0x42b456,_0x74207a,_0x4103ea);}async['_loadAndSetImage'](_0x19b713,_0xf55d3f,_0x267e2e){const _0x1c76ee=_0x32a71f;let _0x536a80;try{if(_0x267e2e===_0x1f7d45[_0x1c76ee(0x24b)])_0x536a80=await this[_0x1c76ee(0x2d5)][_0x1c76ee(0x143)](_0xf55d3f);else{if(_0x267e2e===_0x1f7d45[_0x1c76ee(0x182)])try{_0x536a80=await this[_0x1c76ee(0x176)]['getImage'](_0xf55d3f);}catch{_0x536a80=_0xf55d3f;}else _0x536a80=_0xf55d3f;}}catch(_0x495319){console[_0x1c76ee(0x328)](_0x1c76ee(0x1ad),_0x495319);return;}let _0x4f4248=new window[(_0x1c76ee(0x2ab))]();_0x4f4248[_0x1c76ee(0x341)]=()=>{const _0x561277=_0x1c76ee;this[_0x561277(0x2d5)][_0x561277(0x319)](_0xf55d3f,_0x267e2e,_0x4f4248),_0x19b713['setFillImage'](_0x4f4248);},_0x4f4248[_0x1c76ee(0x1e6)]=()=>{const _0x313de4=_0x1c76ee;console[_0x313de4(0x328)](_0x313de4(0x32d),_0xf55d3f);},_0x4f4248['src']=_0x536a80;}};$=q([K(0x0,_0x543f62),K(0x1,_0x9fe2f5(_0x184287)),K(0x2,_0x9fe2f5(_0x7eb730)),K(0x3,_0xc8030d),K(0x4,_0x23dfb2),K(0x5,_0x9fe2f5(Q)),K(0x6,_0x9fe2f5(_0x485ba6))],$);let Yi=class extends _0x2c4c7f{constructor(_0x5873d4,_0x2cd499,_0x402143){const _0xce0aa=_0x32a71f;super(),this[_0xce0aa(0x1c8)]=_0x5873d4,this[_0xce0aa(0x2d2)]=_0x2cd499,this[_0xce0aa(0x146)]=_0x402143,this['_initPrinting']();}[_0x32a71f(0x25a)](){const _0x42ebce=_0x32a71f;this[_0x42ebce(0x12f)](this[_0x42ebce(0x1c8)][_0x42ebce(0x234)][_0x42ebce(0x315)](this[_0x42ebce(0x1c8)][_0x42ebce(0x234)]['getInterceptPoints']()[_0x42ebce(0x263)],{'handler':(_0x2628aa,_0x59842e,_0x346d76)=>{const _0x14043b=_0x42ebce;var _0xbd9665;let {unitId:_0x51168c,scene:_0x2ebbe4,skeleton:_0x3643ab}=_0x59842e,{pageIndex:_0x3ac6fc}=_0x59842e,_0x2bd175=(_0xbd9665=this[_0x14043b(0x2d2)]['getDrawingDataForUnit'](_0x51168c))==null?void 0x0:_0xbd9665[_0x51168c],_0x3ee992=Xi(this[_0x14043b(0x1c8)],_0x3643ab,_0x3ac6fc);return _0x2bd175==null||_0x2bd175[_0x14043b(0x259)][_0x14043b(0x2f1)](_0x1a8180=>{const _0x315e27=_0x14043b;if(_0x3ee992&&!_0x3ee992[_0x315e27(0x1d9)](_0x1a8180))return;let _0x34148d=_0x2bd175[_0x315e27(0x124)][_0x1a8180];_0x34148d[_0x315e27(0x32a)]===_0x27f24b[_0x315e27(0x10d)]&&!_0x34148d['hidden']&&this[_0x315e27(0x146)]['renderDrawingShape'](_0x34148d,_0x2ebbe4);}),_0x346d76(_0x2628aa);}}));}};Yi=q([K(0x0,_0x9fe2f5(_0x3ef681)),K(0x1,_0x543f62),K(0x2,_0x9fe2f5($))],Yi);function Xi(_0x56f318,_0x41af53,_0x9b29dd){const _0x1316c9=_0x32a71f;var _0x217a99,_0x359822;let _0xfc78e6=_0x56f318;if(_0xfc78e6[_0x1316c9(0x326)])return _0xfc78e6[_0x1316c9(0x326)](_0x41af53,_0x9b29dd);let _0x1a601d=_0x41af53[_0x1316c9(0x130)]();if(!_0x1a601d||_0x1a601d[_0x1316c9(0x2c0)][_0x1316c9(0x1a1)]<=0x1||_0x9b29dd==null)return null;let _0x634c83=new Set(),_0x145d3e=_0x1a601d[_0x1316c9(0x2c0)][_0x9b29dd];if(!_0x145d3e)return _0x634c83;Zi(_0x145d3e,_0x634c83);let _0x2c8ff8=(_0x217a99=_0x1a601d[_0x1316c9(0x2b6)]['get'](_0x145d3e[_0x1316c9(0x2d3)]))==null?void 0x0:_0x217a99['get'](_0x145d3e['headerLayoutKey']??_0x145d3e[_0x1316c9(0x1b3)]),_0x553485=(_0x359822=_0x1a601d[_0x1316c9(0x132)][_0x1316c9(0x2ee)](_0x145d3e['footerId']))==null?void 0x0:_0x359822[_0x1316c9(0x2ee)](_0x145d3e['footerLayoutKey']??_0x145d3e['pageWidth']);return _0x2c8ff8&&Zi(_0x2c8ff8,_0x634c83),_0x553485&&Zi(_0x553485,_0x634c83),_0x634c83;}function Zi(_0xe673d6,_0x3ae29c){const _0x4b867d=_0x32a71f;for(let _0x823ab9 of _0xe673d6[_0x4b867d(0x21a)][_0x4b867d(0x13f)]())_0x3ae29c['add'](_0x823ab9);for(let _0x2472c4 of _0xe673d6[_0x4b867d(0x15b)][_0x4b867d(0x235)]())for(let _0xa1b267 of _0x2472c4[_0x4b867d(0x1c6)])for(let _0x4cc6ce of _0xa1b267[_0x4b867d(0x1b5)])Zi(_0x4cc6ce,_0x3ae29c);}function Qi(_0x5a33a3){return _0x5f386f(Ur,{..._0x5a33a3,'PickerComponent':_0x27b091});}function $i(){const _0x1c6f52=_0x32a71f;let _0x115b6f=_0x524c26(_0x7eb730),_0x2fdb60=Br(),[_0x3f7a9b,_0x1664dc]=_0x7e4eb9(!0x1);return _0x4e3d2c(_0x1c6f52(0x27a),{'className':'univer-grid\x20univer-gap-3','children':[_0x5f386f(_0x2b6cd2,{'title':_0x115b6f['t']('docs-shape-ui.crop.shape'),'aria-expanded':_0x3f7a9b,'variant':_0x1c6f52(0x1d7),'trailing':_0x5f386f(_0x3f7a9b?_0x1e8bd3:_0x291589,{}),'onClick':()=>_0x1664dc(_0x28702c=>!_0x28702c)}),_0x3f7a9b&&_0x5f386f(_0x27b091,{'excludeGroups':[_0x559780[_0x1c6f52(0x23e)]],'onShapeClick':_0x5bb959=>{_0x2fdb60(_0x5bb959),_0x1664dc(!0x1);}})]});}function ea(_0x1024b5){return _0x1024b5['trim']()||void 0x0;}function ta(_0x599685,_0x24d703,_0x1801ad){const _0x253062=_0x32a71f;var _0x1970d7,_0x2b1c65;return((_0x1970d7=_0x599685[_0x253062(0x287)])==null?void 0x0:_0x1970d7[_0x253062(0x2df)]())||((_0x2b1c65=_0x599685[_0x253062(0x185)])==null?void 0x0:_0x2b1c65[_0x253062(0x2df)]())||_0x1801ad['t'](_0x253062(0x2b8)+_0x514963(_0x599685[_0x253062(0x32a)]))+'\x20'+(_0x24d703+0x1);}function na({PanelComponent:_0x8c6b1f=_0x43db65}){const _0x44bbef=_0x32a71f;let _0x23db68=_0x524c26(_0x7eb730),_0x11c4ad={'title':_0x23db68['t'](_0x44bbef(0x138)),'empty':_0x23db68['t'](_0x44bbef(0x331)),'showAll':_0x23db68['t']('drawing-ui.objectListPanel.showAll'),'hideAll':_0x23db68['t'](_0x44bbef(0x2d8)),'lockAll':_0x23db68['t'](_0x44bbef(0x1b6)),'unlockAll':_0x23db68['t'](_0x44bbef(0x2d4)),'moveForward':_0x23db68['t'](_0x44bbef(0x13d)),'moveBackward':_0x23db68['t'](_0x44bbef(0x184)),'close':_0x23db68['t'](_0x44bbef(0x268)),'show':_0x23db68['t'](_0x44bbef(0x1b1)),'hide':_0x23db68['t'](_0x44bbef(0x30a)),'lock':_0x23db68['t'](_0x44bbef(0x313)),'unlock':_0x23db68['t'](_0x44bbef(0x166)),'lockHint':_0x23db68['t']('drawing-ui.objectListPanel.lockHint'),'unlockHint':_0x23db68['t'](_0x44bbef(0x12e)),'name':_0x23db68['t'](_0x44bbef(0x327)),'nameInput':_0x23db68['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x23db68['t'](_0x44bbef(0x128)),'descriptionPlaceholder':_0x23db68['t'](_0x44bbef(0x27c)),'details':_0x23db68['t'](_0x44bbef(0x2a1)),'noSelection':_0x23db68['t'](_0x44bbef(0x228)),'locate':_0x23db68['t'](_0x44bbef(0x2a8)),'expand':_0x23db68['t'](_0x44bbef(0x243)),'collapse':_0x23db68['t'](_0x44bbef(0x27f)),'dragToReorder':_0x23db68['t'](_0x44bbef(0x22c)),'search':_0x23db68['t'](_0x44bbef(0x19b)),'filterAll':_0x23db68['t'](_0x44bbef(0x2c3)),'filterHidden':_0x23db68['t'](_0x44bbef(0x204)),'filterLocked':_0x23db68['t'](_0x44bbef(0x2ef)),'sectionCanvas':_0x23db68['t'](_0x44bbef(0x2bc)),'sectionFloating':_0x23db68['t']('drawing-ui.objectListPanel.sectionFloating')},_0x498c7d=_0x524c26(_0x4129fd),_0x340f9d=_0x524c26(_0x434573),_0x15fc77=_0x524c26(_0x14a9e5),_0x5c07f2=_0x524c26(_0x543f62),_0x2220d2=_0x524c26(_0x4ad11d),[,_0x2781db]=_0x5f5b79(_0x244267=>_0x244267+0x1,0x0),_0x2e13a3=_0x340f9d[_0x44bbef(0x109)](_0x5be7f7[_0x44bbef(0x1c0)]),_0x24d5ad=(_0x2e13a3==null?void 0x0:_0x2e13a3['getUnitId']())??'',_0x574dfb=_0x24d5ad,_0x58584a=_0x182a72(()=>_0x5c07f2[_0x44bbef(0x329)],_0x5c07f2[_0x44bbef(0x1d6)](),!0x1,[_0x5c07f2]);_0x1e3c60(()=>{let _0x3e48b7=_0x498c7d['onCommandExecuted'](()=>_0x2781db());return()=>_0x3e48b7['dispose']();},[_0x498c7d]);let _0x598453=_0x24d5ad?_0x15fc77[_0x44bbef(0x334)](_0x24d5ad,_0x574dfb):{},_0x4c5674=(_0x24d5ad?_0x15fc77[_0x44bbef(0x19d)](_0x24d5ad,_0x574dfb):[])[_0x44bbef(0x1de)](_0x225272=>_0x598453[_0x225272])[_0x44bbef(0x277)](_0x56a0ad=>!!_0x56a0ad)[_0x44bbef(0x29d)](),_0x48b61d=_0x4c5674[_0x44bbef(0x262)]((_0x52bff3,_0x31b484)=>(_0x52bff3[_0x54f200(_0x31b484['drawingType'])]+=0x1,_0x52bff3),{'canvas':0x0,'floating':0x0}),_0xb67821={'canvas':0x0,'floating':0x0},_0x2541e3=_0x4c5674[_0x44bbef(0x1de)]((_0x1fc9ca,_0x21fc59)=>{const _0x5cc875=_0x44bbef;let _0xc566f1=_0x54f200(_0x1fc9ca[_0x5cc875(0x32a)]),_0x50cb6d=_0xc566f1===_0x16da46,_0x5e84c6=_0xb67821[_0xc566f1]++;return{'id':_0x1fc9ca[_0x5cc875(0x335)],'name':ta(_0x1fc9ca,_0x21fc59,_0x23db68),'description':_0x1fc9ca['description'],'visible':_0x1fc9ca[_0x5cc875(0x2cf)]!==!0x0,'selectable':_0x1fc9ca['selectable']!==!0x1,'sectionId':_0xc566f1,'sectionTitle':_0x50cb6d?_0x11c4ad[_0x5cc875(0x20e)]:_0x11c4ad[_0x5cc875(0x134)],'capabilities':_0x50cb6d?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x50cb6d&&_0x5e84c6>0x0,'canMoveBackward':!_0x50cb6d&&_0x5e84c6<_0x48b61d[_0x5cc875(0x30f)]-0x1,'canReorder':!_0x50cb6d};}),_0x34c1dc=_0x49a817(()=>(_0x58584a??[])[_0x44bbef(0x277)](_0x2f132d=>_0x2f132d[_0x44bbef(0x2c4)]===_0x24d5ad&&_0x2f132d[_0x44bbef(0x356)]===_0x574dfb)['map'](_0x19f934=>_0x19f934['drawingId']),[_0x58584a,_0x574dfb,_0x24d5ad]),_0x2a27a5=_0x34c1dc[_0x34c1dc[_0x44bbef(0x1a1)]-0x1]??null,_0x3aa382=_0x4f3650=>_0x15fc77[_0x44bbef(0x30e)]({'unitId':_0x24d5ad,'subUnitId':_0x574dfb,'drawingId':_0x4f3650})??null,_0x44a423=async _0xe4b61a=>{const _0xd1a01d=_0x44bbef;_0x24d5ad&&_0xe4b61a[_0xd1a01d(0x1a1)]&&await _0x498c7d[_0xd1a01d(0x2b2)](_0x44bd72['id'],{'unitId':_0x24d5ad,'patches':_0xe4b61a});},_0x12b3d0=(_0x4deb01,_0x45fbb9)=>{const _0x3b08a7=_0x44bbef;if(!_0x24d5ad)return;let _0x205d2e=_0x45fbb9?_0x34c1dc[_0x3b08a7(0x32f)](_0x4deb01)?_0x34c1dc['filter'](_0x5069d2=>_0x5069d2!==_0x4deb01):[..._0x34c1dc,_0x4deb01]:[_0x4deb01];_0x498c7d[_0x3b08a7(0x241)](_0x22624d['id'],_0x205d2e[_0x3b08a7(0x1de)](_0x47dc3c=>({'unitId':_0x24d5ad,'subUnitId':_0x574dfb,'drawingId':_0x47dc3c})));let _0x4a8e78=_0x205d2e[_0x205d2e['length']-0x1];_0x4a8e78?_0x39a301(_0x2220d2,{'unitId':_0x24d5ad,'subUnitId':_0x574dfb,'drawingId':_0x4a8e78}):_0x2a4339(_0x2220d2,_0x24d5ad);},_0x25970e=async(_0x5b04b1,_0x5f4d27)=>{const _0x14222b=_0x44bbef;await _0x44a423(_0x5b04b1[_0x14222b(0x1de)](_0x1fe1b1=>_0x3aa382(_0x1fe1b1))[_0x14222b(0x277)](_0x13b22d=>!!_0x13b22d)['filter'](_0x17d8ff=>_0x17d8ff['hidden']!==!0x0!==_0x5f4d27)[_0x14222b(0x1de)](_0x4586bb=>({'drawingId':_0x4586bb[_0x14222b(0x335)],'hidden':!_0x5f4d27})));},_0x363877=async(_0x3a9d9b,_0x414602)=>{const _0x2803d6=_0x44bbef;await _0x44a423(_0x3a9d9b[_0x2803d6(0x1de)](_0x6c0f75=>_0x3aa382(_0x6c0f75))[_0x2803d6(0x277)](_0x34c1fb=>!!_0x34c1fb)['filter'](_0x14e553=>_0x14e553[_0x2803d6(0x26e)]!==!0x1!==_0x414602)[_0x2803d6(0x1de)](_0x570daa=>({'drawingId':_0x570daa[_0x2803d6(0x335)],'selectable':_0x414602})));},_0x596ebf=_0x2dc123=>{let _0x30f2a4=_0x3aa382(_0x2dc123);if(_0x30f2a4)return _0x363877([_0x2dc123],_0x30f2a4['selectable']===!0x1);},_0x16d723=async(_0x524b12,_0x2873c8)=>{let _0x4a98bc=_0x3aa382(_0x524b12),_0x391fe8=ea(_0x2873c8);!_0x4a98bc||(_0x4a98bc['name']??void 0x0)===_0x391fe8&&(_0x4a98bc['title']||void 0x0)===_0x391fe8||await _0x44a423([{'drawingId':_0x524b12,'name':_0x391fe8,'title':_0x391fe8}]);},_0x20d117=async(_0x50a959,_0x53dffc)=>{let _0x44bac7=_0x3aa382(_0x50a959),_0x45e5e0=ea(_0x53dffc);_0x44bac7&&(_0x44bac7['description']??void 0x0)!==_0x45e5e0&&await _0x44a423([{'drawingId':_0x50a959,'description':_0x45e5e0}]);},_0x171d0d=async(_0x59791d,_0x442e69)=>{const _0x3b217d=_0x44bbef;_0x24d5ad&&await _0x498c7d[_0x3b217d(0x2b2)](_0x37ac4f['id'],{'unitId':_0x24d5ad,'subUnitId':_0x574dfb,'drawingIds':[_0x59791d],'arrangeType':_0x442e69});};return _0x24d5ad?_0x5f386f(_0x8c6b1f,{'labels':_0x11c4ad,'renderPermissionAction':_0x52e63d=>_0x2e13a3?_0x5f386f(_0x59c9c0,{'target':{'unitId':_0x24d5ad,'objectId':_0x1c073e(_0x4a6ec5(_0x2e13a3,_0x52e63d['id']),_0x44bbef(0x211),_0x52e63d['id']),'objectType':_0x2c44d5[_0x44bbef(0x232)]},'name':_0x52e63d['name'],'commandId':_0x5eda77['id'],'exists':()=>!!_0x3aa382(_0x52e63d['id'])},_0x24d5ad+'/'+_0x52e63d['id']):null,'items':_0x2541e3,'selectedIds':_0x34c1dc,'focusedId':_0x2a27a5,'showHeader':!0x1,'onSelect':_0x12b3d0,'onSetVisible':_0x25970e,'onSetSelectable':_0x363877,'onCommitName':_0x16d723,'onCommitDescription':_0x20d117,'onMoveForward':async _0x510978=>_0x171d0d(_0x510978,_0x5e8379[_0x44bbef(0x2b0)]),'onMoveBackward':async _0x48ab6b=>_0x171d0d(_0x48ab6b,_0x5e8379[_0x44bbef(0x2f9)]),'onToggleSelectable':_0x596ebf}):_0x5f386f(_0x44bbef(0x27a),{'className':_0x44bbef(0x18a),'children':_0x11c4ad[_0x44bbef(0x185)]});}function ra(){return _0x5f386f(na,{'PanelComponent':_0x4ba5fa});}let ia=class{constructor(_0x58f3bc){this['_renderManagerService']=_0x58f3bc;}['updateShapeFillImage'](_0x54d458,_0x3246bf){const _0x4d4b60=_0x32a71f;let _0x573305=this[_0x4d4b60(0x271)][_0x4d4b60(0x35e)](_0x54d458[_0x4d4b60(0x2c4)]),_0x3c6200=_0x573305==null?void 0x0:_0x573305[_0x4d4b60(0x333)];if(!_0x3c6200)return;let _0x25665c=_0x362385(_0x54d458),_0x7c62bc=_0x3c6200[_0x4d4b60(0x2e5)](_0x25665c);_0x7c62bc==null||_0x7c62bc[_0x4d4b60(0x122)](_0x3246bf);}};ia=q([K(0x0,_0x4ad11d)],ia);function aa(){const _0x92212b=_0x32a71f;let _0x4fa58a=_0x524c26(_0x543f62),_0x55a98b=_0x182a72(()=>_0x4fa58a[_0x92212b(0x329)],_0x4fa58a[_0x92212b(0x1d6)](),!0x1,[_0x4fa58a]);return _0x55a98b['length']===0x0?null:_0x5f386f(_0x92212b(0x27a),{'children':_0x4e3d2c(_0x92212b(0x27a),{'className':_0x92212b(0x115),'children':[_0x5f386f(_0x278b76,{'drawings':_0x55a98b,'hasCropper':!0x1}),_0x5f386f(_0x52bfcc,{'drawings':_0x55a98b}),_0x5f386f(_0x24c73e,{'drawings':_0x55a98b})]})});}function oa(_0xa7eb20){let {unitId:_0x13b21a,subUnitId:_0x1180ae,shapeId:_0x1fa10e,PositionComponent:_0x48d7d0=aa}=_0xa7eb20,_0x231530=_0x524c26(_0x4129fd),_0x4a372a=_0x524c26(ia);return _0x5f386f(_0x51c0ee,{..._0xa7eb20,'positionEditor':_0x5f386f(_0x48d7d0,{}),'onUpdateShapeData':(_0x5e4818,_0x381cbc)=>{Yr(_0x231530,_0x13b21a,_0x1180ae,_0x1fa10e,_0x5e4818,_0x381cbc);},'onUpdateLineShapeData':(_0xbd4d76,_0x143725)=>{Xr(_0x231530,_0x13b21a,_0x1180ae,_0x1fa10e,_0xbd4d76,_0x143725);},'onUpdateShapeFillImage':_0x74a981=>{const _0x1d7a02=_0x1001;_0x4a372a[_0x1d7a02(0x12a)]({'unitId':_0x13b21a,'subUnitId':_0x1180ae,'drawingId':_0x1fa10e},_0x74a981);}});}function sa(){const _0x2ecc63=_0x32a71f;let _0x2e7b51=_0x524c26(_0x543f62),_0x49e783=_0x182a72(_0x2e7b51[_0x2ecc63(0x329)],_0x2e7b51[_0x2ecc63(0x1d6)]());return _0x49e783['length']===0x0?null:_0x4e3d2c(_0x2ecc63(0x27a),{'className':'univer-grid\x20univer-gap-5\x20univer-px-4\x20univer-py-3','children':[_0x5f386f(_0x278b76,{'drawings':_0x49e783,'hasCropper':!0x1}),_0x5f386f(_0x2675c0,{'drawings':_0x49e783}),_0x5f386f(_0x548055,{'drawings':_0x49e783})]});}function ca(_0x1910ef){return _0x5f386f(_0x2c7fe0,{'children':_0x5f386f(oa,{..._0x1910ef,'PositionComponent':sa})});}function la({popup:_0x2629bb}){const _0x446413=_0x32a71f;let _0xb63d74=_0x524c26(_0x7eb730),{shapeType:_0x9cd5be,onText:_0x512b4a,onStyle:_0x4a0474,onDelete:_0x5e101f}=_0x2629bb['extraProps'],_0x27b10f=[{'key':_0x446413(0x23c),'order':0x0,'item':{'id':_0x446413(0x23c),'type':_0x12a09a['BUTTON'],'title':_0xb63d74['t']('docs-shape-ui.mobile.text'),'disabled$':_0x36eaca(_0x9d2c65(_0x9cd5be))}},{'key':_0x446413(0x11f),'order':0x1,'item':{'id':_0x446413(0x11f),'type':_0x12a09a[_0x446413(0x35a)],'title':_0xb63d74['t'](_0x446413(0x2f8))}},{'key':_0x446413(0x14c),'order':0x2,'item':{'id':_0x446413(0x14c),'type':_0x12a09a[_0x446413(0x35a)],'title':_0xb63d74['t'](_0x446413(0x2fd))}}];return _0x5f386f(_0x1aa39b,{'schemas':_0x27b10f,'presentation':_0x446413(0x1ab),'onOptionSelect':async({id:_0x278656})=>{const _0x2b9a3b=_0x446413;_0x278656===_0x2b9a3b(0x23c)?await _0x512b4a():_0x278656===_0x2b9a3b(0x11f)?await _0x4a0474():_0x278656==='delete'&&await _0x5e101f();}});}const ua=_0x32a71f(0x238);function da(_0x25afa6,_0xd666fd){const _0x29195f=_0x32a71f;var _0x577c05;let _0x43732b=_0x25afa6==null||(_0x577c05=_0x25afa6[_0x29195f(0x15c)]()['drawings'])==null?void 0x0:_0x577c05[_0xd666fd];return _0x43732b?_0x43732b[_0x29195f(0x1bf)]===_0x54d491[_0x29195f(0x374)]?_0x43732b['behindDoc']===_0x388e66[_0x29195f(0x16e)]?_0x47e1e5[_0x29195f(0x36c)]:_0x47e1e5[_0x29195f(0x1c1)]:_0x43732b[_0x29195f(0x1bf)]===_0x54d491[_0x29195f(0x229)]?_0x47e1e5[_0x29195f(0x229)]:_0x43732b['layoutType']===_0x54d491['WRAP_TOP_AND_BOTTOM']?_0x47e1e5[_0x29195f(0x1cd)]:_0x47e1e5[_0x29195f(0x1d1)]:_0x47e1e5[_0x29195f(0x1d1)];}function fa(_0x571c5d){const _0x426ee3=_0x32a71f;let _0x537f63=_0x524c26(_0x430d17),_0x2f8c53=_0x182a72(()=>_0x537f63['visible$'],_0x537f63['getVisible'](),!0x1,[_0x537f63]),_0x56e25e=_0x571c5d[_0x426ee3(0x16a)]['extraProps'];return _0x2f8c53?_0x5f386f(pa,{..._0x56e25e,'canvasElement':_0x571c5d[_0x426ee3(0x16a)][_0x426ee3(0x120)]}):null;}function pa(_0x4e3e0d){const _0x30a677=_0x32a71f;let _0x15e392=_0x524c26(_0x4129fd),_0xa0efda=_0x524c26(_0x7eb730),_0x467a40=_0x524c26(_0x184287),_0x2cde86=_0x524c26(_0x434573),{unitId:_0x2a0577,subUnitId:_0x1a328b,drawingId:_0x4e9080,shapeType:_0xfd4044}=_0x4e3e0d,[_0x4a8ee5,_0x8dbcd2]=_0x7e4eb9(_0x4e3e0d['shapeData']),_0x401628=_0x2cde86[_0x30a677(0x2ea)](_0x2a0577,_0x5be7f7['UNIVER_DOC'])??void 0x0,[_0x4aa888,_0x348df0]=_0x7e4eb9(()=>da(_0x401628,_0x4e9080)),_0x17d714=_0x49a817(()=>_0x427742(_0x4a8ee5),[_0x4a8ee5]),_0x2546d8=_0x49a817(()=>_0x5b2914(_0x4a8ee5),[_0x4a8ee5]);_0x1e3c60(()=>{const _0x33788c=_0x30a677;let _0x1b2820=_0x15e392[_0x33788c(0x2a6)](_0x5b9259=>{const _0x446b11=_0x33788c;if(_0x5b9259['id']!==_0x365039['id'])return;let _0x2b1806=_0x467a40[_0x446b11(0x373)](_0x2a0577,_0x1a328b,_0x4e9080);_0x2b1806&&_0x8dbcd2(_0x2b1806);});return()=>_0x1b2820[_0x33788c(0x10f)]();},[_0x15e392,_0x467a40,_0x4e9080,_0x1a328b,_0x2a0577]);let _0x4e87d9=_0x3281d6=>{_0x8dbcd2(_0x1684c0=>({..._0x1684c0,..._0x3281d6}));},_0x22e68=_0x475c30=>{const _0x113a36=_0x30a677;let _0x1ca87d=_0xefb2e4(_0x4a8ee5,_0x475c30);Yr(_0x15e392,_0x2a0577,_0x1a328b,_0x4e9080,{'oldShapeData':{'shapeText':_0x4a8ee5[_0x113a36(0x209)]}},_0x1ca87d),_0x4e87d9(_0x1ca87d);},_0x2ef433=_0x420147=>{const _0x4e41b5=_0x30a677;_0x348df0(_0x420147),_0x15e392[_0x4e41b5(0x2b2)](_0x3c0255['id'],{'unitId':_0x2a0577,'subUnitId':_0x1a328b,'drawings':[{'unitId':_0x2a0577,'subUnitId':_0x1a328b,'drawingId':_0x4e9080}],'wrappingStyle':_0x420147});},_0x515f30=_0x5e25a0({'hostType':_0x5be7f7[_0x30a677(0x1c0)],'unitId':_0x2a0577,'subUnitId':_0x1a328b,'shapeId':_0x4e9080,'shapeData':_0x4a8ee5,'onUpdateBinding':_0x5ad658=>{const _0x192d0d=_0x30a677;let _0x7a3763={'formulaBinding':_0x5ad658};Yr(_0x15e392,_0x2a0577,_0x1a328b,_0x4e9080,{'oldShapeData':{'formulaBinding':_0x4a8ee5[_0x192d0d(0x1b9)]}},_0x7a3763),_0x4e87d9(_0x7a3763);}}),_0x245923=[{'label':_0xa0efda['t'](_0x30a677(0x281)),'value':_0x47e1e5[_0x30a677(0x1d1)],'icon':_0x5f386f(_0x31d46d,{})},{'label':_0xa0efda['t'](_0x30a677(0x203)),'value':_0x47e1e5[_0x30a677(0x229)],'icon':_0x5f386f(_0x31d46d,{})},{'label':_0xa0efda['t'](_0x30a677(0x284)),'value':_0x47e1e5[_0x30a677(0x1cd)],'icon':_0x5f386f(_0x31d46d,{})},{'label':_0xa0efda['t'](_0x30a677(0x21d)),'value':_0x47e1e5['BEHIND_TEXT'],'icon':_0x5f386f(_0x31d46d,{})},{'label':_0xa0efda['t'](_0x30a677(0x1ef)),'value':_0x47e1e5[_0x30a677(0x1c1)],'icon':_0x5f386f(_0x31d46d,{})}];return _0x4e3d2c(_0x146d4d,{'children':[_0x5f386f(_0x44d488,{'canvasElement':_0x4e3e0d['canvasElement'],'shapeData':_0x4a8ee5,'shapeType':_0xfd4044,'textStyle':{'ff':_0x4e34b8[_0x30a677(0x209)][_0x30a677(0x16c)],'fs':_0x4e34b8[_0x30a677(0x209)]['fontSize'],'cl':{'rgb':_0x4e34b8[_0x30a677(0x209)]['color']},..._0x17d714},'textModel':_0x2546d8?{'ha':_0x2546d8['ha']??_0x42ecd8[_0x30a677(0x292)],'va':_0x2546d8['va']??_0x431afd[_0x30a677(0x351)]}:null,'wrappingStyle':_0x4aa888,'wrappingStyleOptions':_0x245923,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4e34b8[_0x30a677(0x24c)],'defaultGradientEndColor':_0x4e34b8[_0x30a677(0x272)],'defaultStrokeColor':_0x4e34b8[_0x30a677(0x26f)],'extensionGroups':_0x515f30[_0x30a677(0x18d)],'floatingObjectToolbarPosition':_0x27b29d[_0x30a677(0x2b3)],'onUpdateShapeData':(_0x4e6e76,_0x31991a)=>{Yr(_0x15e392,_0x2a0577,_0x1a328b,_0x4e9080,_0x4e6e76,_0x31991a),_0x31991a&&_0x4e87d9(_0x31991a);},'onUpdateText':_0x22e68,'onUpdateWrappingStyle':_0x3fcc71=>_0x2ef433(_0x3fcc71),'onOpenPanel':()=>{const _0x35993f=_0x30a677;_0x15e392[_0x35993f(0x2b2)](G['id'],{'unitId':_0x2a0577,'subUnitId':_0x1a328b,'drawingId':_0x4e9080});},'onDelete':()=>{const _0x3d60a1=_0x30a677;_0x15e392[_0x3d60a1(0x2b2)](_0xa19455['id'],{'unitId':_0x2a0577,'drawings':[{'unitId':_0x2a0577,'subUnitId':_0x1a328b,'drawingId':_0x4e9080}]});}}),_0x515f30[_0x30a677(0x33c)]]});}function ma({variant:_0xf71d68,extend:_0x77340d,..._0x5c2d07}){const _0x61737c=_0x32a71f;let _0xa5c970=_0x5f386f(_0x61737c(0x14a),{'x':'7','y':_0x61737c(0x2ce),'width':'6','height':'9','rx':'1','fill':_0x61737c(0x14b),'fillOpacity':_0x61737c(0x195),'stroke':_0x61737c(0x14b),'strokeWidth':_0x61737c(0x344)});return _0x4e3d2c(_0x61737c(0x345),{'aria-hidden':_0x61737c(0x25d),'fill':_0x61737c(0x15f),'height':_0x61737c(0x10c),'viewBox':_0x61737c(0x307),'width':_0x61737c(0x10c),..._0x5c2d07,'children':[_0xf71d68==='inline'&&_0x4e3d2c(_0x146d4d,{'children':[_0x5f386f(_0x61737c(0x121),{'d':_0x61737c(0x36e),'stroke':'currentColor','strokeLinecap':_0x61737c(0x18f),'strokeWidth':_0x61737c(0x344)}),_0x5f386f(_0x61737c(0x14a),{'x':'8','y':'7','width':'4','height':'6','rx':_0x61737c(0x28b),'fill':_0x61737c(0x14b),'fillOpacity':_0x61737c(0x195),'stroke':_0x61737c(0x14b),'strokeWidth':_0x61737c(0x344)})]}),_0xf71d68===_0x61737c(0x360)&&_0x4e3d2c(_0x146d4d,{'children':[_0x5f386f('path',{'d':_0x61737c(0x1ca),'stroke':_0x61737c(0x14b),'strokeLinecap':_0x61737c(0x18f),'strokeWidth':'1.2'}),_0xa5c970]}),_0xf71d68==='top-bottom'&&_0x4e3d2c(_0x146d4d,{'children':[_0x5f386f(_0x61737c(0x121),{'d':_0x61737c(0x156),'stroke':_0x61737c(0x14b),'strokeLinecap':_0x61737c(0x18f),'strokeWidth':_0x61737c(0x344)}),_0xa5c970]}),_0xf71d68===_0x61737c(0x1ea)&&_0x4e3d2c(_0x146d4d,{'children':[_0xa5c970,_0x5f386f('path',{'d':_0x61737c(0x2c6),'stroke':_0x61737c(0x14b),'strokeLinecap':_0x61737c(0x18f),'strokeWidth':_0x61737c(0x344)})]}),_0xf71d68==='front'&&_0x4e3d2c(_0x146d4d,{'children':[_0x5f386f(_0x61737c(0x121),{'d':_0x61737c(0x2c6),'stroke':_0x61737c(0x14b),'strokeLinecap':_0x61737c(0x18f),'strokeWidth':_0x61737c(0x344)}),_0x5f386f('rect',{'x':'7','y':_0x61737c(0x2ce),'width':'6','height':'9','rx':'1','fill':'currentColor'})]})]});}const ha=_0x1a6e3d=>_0x12df33=>_0x5f386f(ma,{..._0x12df33,'variant':_0x1a6e3d}),ga={'DocsShapeWrapInlineIcon':ha('inline'),'DocsShapeWrapSquareIcon':ha(_0x32a71f(0x360)),'DocsShapeWrapTopBottomIcon':ha('top-bottom'),'DocsShapeWrapBehindTextIcon':ha(_0x32a71f(0x1ea)),'DocsShapeWrapInFrontOfTextIcon':ha('front')},_a=_0x56f84a(()=>{const _0x40abdf=_0x32a71f;let _0x1d5a0e=_0x524c26(Q),_0xba4aee=_0x524c26(_0x184287),_0x4b19bd=_0x524c26(_0x543f62),_0x1de622=_0x524c26(_0x4129fd),_0x198ced=_0x49a817(()=>({'getShapeModel':(_0x4b5857,_0x53d558,_0x38e406)=>_0xba4aee['getShapeModel'](_0x4b5857,_0x53d558,_0x38e406),'getShapeData':(_0xdfcfb8,_0x524768,_0x42bb0f)=>_0xba4aee[_0x40abdf(0x373)](_0xdfcfb8,_0x524768,_0x42bb0f),'getDrawingTransform':(_0x29b30b,_0x1219b1,_0x313965)=>{let _0x28b7df=_0x4b19bd['getDrawingByParam']({'unitId':_0x29b30b,'subUnitId':_0x1219b1,'drawingId':_0x313965});return _0x28b7df==null?void 0x0:_0x28b7df['transform'];},'updateShapeText':({unitId:_0x3a59bd,shapeId:_0x500353,shapeText:_0x3e745f,oldShapeText:_0x200282})=>{const _0x45ec74=_0x40abdf;_0x1de622[_0x45ec74(0x2b2)](_0x3ef3ef['id'],{'unitId':_0x3a59bd,'shapeId':_0x500353,'shapeData':{'shapeText':_0x3e745f},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x200282}}});},'updateHostSize':({unitId:_0x48d36a,subUnitId:_0x257216,shapeId:_0x982160,width:_0x275080,height:_0x3afa43})=>{const _0x36efb7=_0x40abdf;_0x1de622[_0x36efb7(0x2b2)](_0x4c10e3['id'],{'unitId':_0x48d36a,'subUnitId':_0x257216,'drawings':[{'drawingId':_0x982160,'key':_0x36efb7(0x1f1),'value':{'width':_0x275080,'height':_0x3afa43}}]});},'allowHostSizeShrink':({unitId:_0x3e22d9,subUnitId:_0x5ab622,shapeId:_0x468d4b})=>_0x39b2d7(_0xba4aee['getShapeDataById'](_0x3e22d9,_0x5ab622,_0x468d4b))}),[_0x1de622,_0xba4aee,_0x4b19bd]),_0x48454b=_0x49a817(()=>({'viewportKeys':{'main':_0x57ffaa[_0x40abdf(0x256)]}}),[]);return _0x5f386f(_0x214ef0,{'adapter':_0x198ced,'editingService':_0x1d5a0e,'editorUnitId':Ar,'positionOptions':_0x48454b});});let va=class extends _0x2c4c7f{constructor(_0x30da25,_0x4dd5cd){const _0x347180=_0x32a71f;super(),this[_0x347180(0x158)]=_0x30da25,this[_0x347180(0x157)]=_0x4dd5cd,this[_0x347180(0x2d0)](),this['_registerComponents']();}[_0x32a71f(0x2d0)](){const _0x4448ee=_0x32a71f;this[_0x4448ee(0x157)][_0x4448ee(0x1d9)]('ObjectLayersIcon')||this[_0x4448ee(0x12f)](this[_0x4448ee(0x157)]['register']({'ObjectLayersIcon':_0x537f0c})),this[_0x4448ee(0x157)]['has'](_0x4448ee(0x34f))||this[_0x4448ee(0x12f)](this['_iconManager'][_0x4448ee(0x375)]({'BottomIcon':_0x32515c})),this['_iconManager'][_0x4448ee(0x1d9)]('MoveDownIcon')||this['disposeWithMe'](this[_0x4448ee(0x157)]['register']({'MoveDownIcon':_0x2eb674})),this['_iconManager'][_0x4448ee(0x1d9)](_0x4448ee(0x189))||this[_0x4448ee(0x12f)](this[_0x4448ee(0x157)][_0x4448ee(0x375)]({'MoveUpIcon':_0x14f2ec})),this['_iconManager']['has'](_0x4448ee(0x28c))||this[_0x4448ee(0x12f)](this['_iconManager'][_0x4448ee(0x375)]({'ShapeFormatSettingIcon':_0x1d4214})),this[_0x4448ee(0x157)][_0x4448ee(0x1d9)](_0x4448ee(0x10a))||this[_0x4448ee(0x12f)](this[_0x4448ee(0x157)][_0x4448ee(0x375)]({'TopmostIcon':_0x3e2c9d})),this['disposeWithMe'](this[_0x4448ee(0x157)][_0x4448ee(0x375)](ga));}[_0x32a71f(0x371)](){const _0x222dd1=_0x32a71f;this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](W,ca)),this['disposeWithMe'](this['_componentManager'][_0x222dd1(0x375)](kr,ra)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](ua,la)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](Qr,ii)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](Zr,ai)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)]($r,oi)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](ei,si)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](ti,ci)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](jr,_0x23abff)),this[_0x222dd1(0x12f)](this['_componentManager'][_0x222dd1(0x375)](Lr,Qi)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](Rr,$i)),this['_componentManager'][_0x222dd1(0x20b)](_0x306f90)||this['disposeWithMe'](this[_0x222dd1(0x158)][_0x222dd1(0x375)](_0x306f90,Hr)),this[_0x222dd1(0x12f)](this[_0x222dd1(0x158)][_0x222dd1(0x375)](Mr,_a));}};va=q([K(0x0,_0x9fe2f5(_0x4a21c5)),K(0x1,_0x9fe2f5(_0x1ffafb))],va);let ya=class extends _0x2c4c7f{constructor(_0x137cb7,_0x41226a,_0x5b360a,_0x2640d2,_0x41ab9c,_0x159fa2,_0x1b3e32,_0x354d16,_0x5eaeb,_0x82f0ec,_0xf19a37,_0x1df4a8,_0x4e9f6b){const _0x28c0f9=_0x32a71f;super(),this[_0x28c0f9(0x2a3)]=_0x137cb7,this['_sidebarService']=_0x41226a,this['_menuManagerService']=_0x5b360a,this[_0x28c0f9(0x1fa)]=_0x2640d2,this[_0x28c0f9(0x210)]=_0x41ab9c,this[_0x28c0f9(0x172)]=_0x159fa2,this[_0x28c0f9(0x2d2)]=_0x1b3e32,this[_0x28c0f9(0x152)]=_0x354d16,this['_renderManagerService']=_0x5eaeb,this['_contextService']=_0x82f0ec,this[_0x28c0f9(0x347)]=_0xf19a37,this['_permissionService']=_0x1df4a8,this[_0x28c0f9(0x22b)]=_0x4e9f6b,X(this,'_sidebarDisposable',null),X(this,'_activeShapeInfo',null),X(this,_0x28c0f9(0x21f),!0x1),X(this,'_shapeEditPanelVersion',0x0),X(this,_0x28c0f9(0x324),new Map()),X(this,_0x28c0f9(0x2fa),new Map()),this['_initMenu'](),this[_0x28c0f9(0x12f)](this['_univerInstanceService'][_0x28c0f9(0x2a9)](_0x5be7f7[_0x28c0f9(0x1c0)])[_0x28c0f9(0x25c)](_0x5f1ca3=>{const _0x233633=_0x28c0f9;if(!_0x5f1ca3){var _0x2032b8;(_0x2032b8=this[_0x233633(0x1f7)])==null||_0x2032b8['dispose']();}})),this[_0x28c0f9(0x24d)](),this['disposeWithMe'](this[_0x28c0f9(0x2d2)][_0x28c0f9(0x32e)][_0x28c0f9(0x25c)](_0x2e2062=>{const _0x5aa05d=_0x28c0f9;for(let _0x222146 of _0x2e2062){let _0x4d1997=_0x222146['unitId']+':'+_0x222146[_0x5aa05d(0x356)]+':'+_0x222146[_0x5aa05d(0x335)];for(let [_0x3bcd69,_0x2f9693]of this[_0x5aa05d(0x2fa)])_0x2f9693===_0x4d1997&&this[_0x5aa05d(0x354)](_0x3bcd69,!0x0);}})),this[_0x28c0f9(0x12f)](_0x3b2a2e(this[_0x28c0f9(0x271)],_0x5be7f7[_0x28c0f9(0x1c0)],_0x1224ae=>this[_0x28c0f9(0x288)](_0x1224ae))),this[_0x28c0f9(0x12f)](this[_0x28c0f9(0x347)]['editingParams$'][_0x28c0f9(0x25c)](_0x36787d=>{const _0x4ed62f=_0x28c0f9;_0x36787d&&this[_0x4ed62f(0x354)](void 0x0,!0x0);})),this[_0x28c0f9(0x12f)](this[_0x28c0f9(0x251)][_0x28c0f9(0x160)][_0x28c0f9(0x25c)](()=>{const _0x49bb90=_0x28c0f9;this[_0x49bb90(0x2d2)][_0x49bb90(0x1d6)]()['some'](_0x34e0d6=>_0x34e0d6[_0x49bb90(0x32a)]===_0x27f24b[_0x49bb90(0x10d)]&&this[_0x49bb90(0x2a3)][_0x49bb90(0x15d)](_0x34e0d6[_0x49bb90(0x2c4)])===_0x5be7f7[_0x49bb90(0x1c0)]&&!this['_canEditShape'](_0x34e0d6[_0x49bb90(0x2c4)],_0x34e0d6[_0x49bb90(0x335)]))&&(this[_0x49bb90(0x354)](void 0x0,!0x0),this[_0x49bb90(0x310)]());}));}[_0x32a71f(0x106)](_0x59e4ef,_0x1a0122,_0x1ba810,_0x380a95){const _0x8ed074=_0x32a71f;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x59e4ef,'subUnitId':_0x1a0122,'drawingId':_0x1ba810},'disable':_0x380a95===_0x27f24b[_0x8ed074(0x2eb)]},{'label':_0x8ed074(0x35d),'index':0x1,'commandId':_0xa19455['id'],'commandParams':{'unitId':_0x59e4ef,'drawings':[{'unitId':_0x59e4ef,'subUnitId':_0x1a0122,'drawingId':_0x1ba810}]},'disable':!0x1},{'label':_0x8ed074(0x1f4),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x59e4ef,'subUnitId':_0x1a0122,'drawingId':_0x1ba810},'disable':!0x1}];}[_0x32a71f(0x1a7)](){const _0x2614ef=_0x32a71f;this[_0x2614ef(0x2fb)][_0x2614ef(0x1d2)](Ii);}[_0x32a71f(0x1a4)](_0x1b79df,_0x4a159c,_0x5d64c0){const _0x1b2d27=_0x32a71f;let _0x26ed61=this[_0x1b2d27(0x1fa)][_0x1b2d27(0x13c)](_0x1b79df,_0x4a159c,_0x5d64c0),_0x534d82=this[_0x1b2d27(0x1fa)][_0x1b2d27(0x373)](_0x1b79df,_0x4a159c,_0x5d64c0);return _0x26ed61===void 0x0||_0x534d82===void 0x0?null:{'shapeData':_0x534d82,'shapeId':_0x5d64c0,'shapeType':_0x26ed61,'unitId':_0x1b79df,'subUnitId':_0x4a159c,'version':this[_0x1b2d27(0x1c7)],'disableShapeOption':!0x1};}['_clearPopups'](_0x5db508,_0x51262b=!0x1){const _0x88a875=_0x32a71f;if(_0x5db508==null){[...this[_0x88a875(0x324)][_0x88a875(0x13f)]()][_0x88a875(0x2f1)](_0x36f6b8=>this['_clearPopups'](_0x36f6b8,_0x51262b));return;}let _0x3d43c3=this[_0x88a875(0x324)][_0x88a875(0x2ee)](_0x5db508);if(_0x3d43c3){for(let _0x1f1376=_0x3d43c3[_0x88a875(0x1a1)]-0x1;_0x1f1376>=0x0;--_0x1f1376){let _0x437f69=_0x3d43c3[_0x1f1376];(_0x51262b||_0x437f69['canDispose']())&&(_0x437f69[_0x88a875(0x10f)](),_0x3d43c3[_0x88a875(0x318)](_0x1f1376,0x1));}_0x3d43c3[_0x88a875(0x1a1)]===0x0&&(this[_0x88a875(0x324)][_0x88a875(0x14c)](_0x5db508),this['_popupTargetKeys'][_0x88a875(0x14c)](_0x5db508));}}[_0x32a71f(0x230)](_0x1262eb){const _0xf8a562=_0x32a71f;let _0x119612=this['_disposePopupsByUnit'][_0xf8a562(0x2ee)](_0x1262eb);if(_0x119612)return _0x119612;let _0xbefdfc=[];return this[_0xf8a562(0x324)][_0xf8a562(0x280)](_0x1262eb,_0xbefdfc),_0xbefdfc;}[_0x32a71f(0x288)](_0x56793c){const _0x1aeee9=_0x32a71f;var _0xe6f64b;let _0xfadad=new _0x56165f(),_0x333536=(_0xe6f64b=this['_renderManagerService']['getAllRenderersOfType'](_0x5be7f7['UNIVER_DOC'])['find'](_0x15391a=>_0x15391a[_0x1aeee9(0x333)][_0x1aeee9(0x2a7)]()===_0x56793c))==null?void 0x0:_0xe6f64b[_0x1aeee9(0x2c4)];return _0x333536&&(_0xfadad[_0x1aeee9(0x1ff)](_0x56793c[_0x1aeee9(0x1e4)]['subscribe'](()=>this[_0x1aeee9(0x2d7)](_0x56793c,_0x333536))),_0xfadad['add'](_0x56793c[_0x1aeee9(0x107)][_0x1aeee9(0x25c)](()=>{const _0x4b9233=_0x1aeee9;this[_0x4b9233(0x354)](_0x333536),queueMicrotask(()=>{const _0x4852f6=_0x4b9233;_0x56793c[_0x4852f6(0x1ed)]()['size']>0x0||!this['_drawingManagerService']['getFocusDrawings']()[_0x4852f6(0x1ba)](_0x2adfa3=>_0x2adfa3[_0x4852f6(0x2c4)]===_0x333536)||(this['_contextService']['setContextValue'](_0x2ec367,!0x1),this[_0x4852f6(0x2d2)]['focusDrawing'](null));});})),_0xfadad[_0x1aeee9(0x1ff)](_0x56793c[_0x1aeee9(0x34a)]['subscribe'](()=>{const _0x3cf523=_0x1aeee9;this[_0x3cf523(0x354)](_0x333536,!0x0);}))),_0xfadad;}['_handleCreateControl'](_0x2efff7,_0x3ef734){const _0x1107e7=_0x32a71f;let _0xa529f2=_0x2efff7[_0x1107e7(0x1ed)]();if(this[_0x1107e7(0x21f)]){this['_clearPopups'](_0x3ef734,!0x0);return;}if(_0xa529f2[_0x1107e7(0x1f1)]>0x1){this[_0x1107e7(0x354)](_0x3ef734);return;}let _0x392d2b=_0xa529f2[_0x1107e7(0x235)]()[_0x1107e7(0x276)]()[_0x1107e7(0x1f3)];if(!_0x392d2b){this[_0x1107e7(0x354)](_0x3ef734);return;}let _0x25de39=this['_drawingManagerService'][_0x1107e7(0x273)](_0x392d2b[_0x1107e7(0x133)]);if(!_0x25de39||_0x25de39[_0x1107e7(0x32a)]!==_0x27f24b[_0x1107e7(0x10d)]){this[_0x1107e7(0x354)](_0x3ef734);return;}let {unitId:_0x4dbcd7,subUnitId:_0x293cff,drawingId:_0x35386b}=_0x25de39;if(!this['_canEditShape'](_0x4dbcd7,_0x35386b)){this[_0x1107e7(0x354)](_0x3ef734,!0x0);return;}let _0x436726=this['_getShapeInfo'](_0x4dbcd7,_0x293cff,_0x35386b);if(!_0x436726){this[_0x1107e7(0x354)](_0x3ef734);return;}let _0xbddf3f=this[_0x1107e7(0x324)][_0x1107e7(0x2ee)](_0x3ef734),_0x20b26b=_0x4dbcd7+':'+_0x293cff+':'+_0x35386b;if(this[_0x1107e7(0x2fa)][_0x1107e7(0x2ee)](_0x3ef734)===_0x20b26b&&_0xbddf3f!=null&&_0xbddf3f[_0x1107e7(0x1a1)])return;this['_clearPopups'](_0x3ef734);let _0x1fdd52=this[_0x1107e7(0x271)][_0x1107e7(0x35e)](_0x4dbcd7),_0x4419a5=((_0x1fdd52==null?void 0x0:_0x1fdd52[_0x1107e7(0x29a)])===!0x1?_0x1fdd52['with'](_0x4f5bac):this[_0x1107e7(0x152)])[_0x1107e7(0x28d)](_0x392d2b,this['_getShapePopup'](_0x436726,()=>this[_0x1107e7(0x354)](_0x3ef734,!0x0)),_0x4dbcd7);this[_0x1107e7(0x12f)](_0x4419a5),this[_0x1107e7(0x230)](_0x3ef734)[_0x1107e7(0x175)](_0x4419a5),this[_0x1107e7(0x2fa)][_0x1107e7(0x280)](_0x3ef734,_0x20b26b),this[_0x1107e7(0x2d2)][_0x1107e7(0x1d6)]()[_0x1107e7(0x1ba)](_0xa797d3=>_0xa797d3[_0x1107e7(0x2c4)]===_0x4dbcd7&&_0xa797d3[_0x1107e7(0x356)]===_0x293cff&&_0xa797d3[_0x1107e7(0x335)]===_0x35386b)||this['_drawingManagerService'][_0x1107e7(0x306)]([{'unitId':_0x4dbcd7,'subUnitId':_0x293cff,'drawingId':_0x35386b}]);}[_0x32a71f(0x2a0)](_0x13b529,_0x486677){const _0x125181=_0x32a71f;let {unitId:_0x46fafe,subUnitId:_0x4164c5,shapeId:_0x2605eb}=_0x13b529,_0x2e41fa={'hostType':_0x5be7f7[_0x125181(0x1c0)],'unitId':_0x46fafe,'subUnitId':_0x4164c5,'shapeId':_0x2605eb};return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x125181(0x2ae),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x13b529[_0x125181(0x168)],'onText':()=>{const _0x4bc202=_0x125181;_0x486677(),this['_mobileEditorService'][_0x4bc202(0x11d)](_0x4bc202(0x23c),_0x2e41fa);},'onStyle':()=>{const _0x5d2677=_0x125181;_0x486677(),this[_0x5d2677(0x22b)][_0x5d2677(0x11d)]('style',_0x2e41fa);},'onDelete':()=>this[_0x125181(0x172)][_0x125181(0x2b2)](_0xa19455['id'],{'unitId':_0x46fafe,'drawings':[{'unitId':_0x46fafe,'subUnitId':_0x4164c5,'drawingId':_0x2605eb}]})}};}[_0x32a71f(0x1dc)](_0x1b6f23,_0x3c7e72){const _0x50b7ee=_0x32a71f;let _0x568b0c=this['_univerInstanceService'][_0x50b7ee(0x2ea)](_0x1b6f23,_0x5be7f7[_0x50b7ee(0x1c0)]);if(!_0x568b0c)return!0x1;let _0x3a2a11=_0x4a6ec5(_0x568b0c,_0x3c7e72);return _0x55fe4b(this[_0x50b7ee(0x251)],_0x1b6f23,[..._0x1b791b(_0x568b0c,_0x3a2a11,_0x50b7ee(0x211),_0x3c7e72),_0x1c073e(_0x3a2a11,_0x50b7ee(0x211),_0x3c7e72)]);}[_0x32a71f(0x24d)](){const _0x461562=_0x32a71f;this[_0x461562(0x12f)](this['_commandService'][_0x461562(0x2a6)](_0x5ecbf6=>{const _0x2d8d0f=_0x461562;if(_0x5ecbf6['id']===G['id']){let {unitId:_0x3e70b1,subUnitId:_0x52d908,drawingId:_0x3dc5d8}=_0x5ecbf6[_0x2d8d0f(0x1b7)];this[_0x2d8d0f(0x1c7)]+=0x1,this[_0x2d8d0f(0x27b)]=this[_0x2d8d0f(0x1a4)](_0x3e70b1,_0x52d908,_0x3dc5d8),this[_0x2d8d0f(0x354)](void 0x0,!0x0),this[_0x2d8d0f(0x1cb)]();}if(_0x5ecbf6['id']===zi['id']&&(this[_0x2d8d0f(0x27b)]=null,this[_0x2d8d0f(0x310)]()),_0x5ecbf6['id']===_0x365039['id']){var _0x5a2485;let {unitId:_0x16df28,shapeId:_0x400532}=_0x5ecbf6[_0x2d8d0f(0x1b7)];if(((_0x5a2485=this[_0x2d8d0f(0x27b)])==null?void 0x0:_0x5a2485[_0x2d8d0f(0x174)])===_0x400532){let _0x1b13eb=this[_0x2d8d0f(0x1a4)](_0x16df28,this[_0x2d8d0f(0x27b)][_0x2d8d0f(0x356)],_0x400532);_0x1b13eb&&(this['_shapeEditPanelVersion']+=0x1,_0x1b13eb[_0x2d8d0f(0x2af)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x1b13eb,this[_0x2d8d0f(0x21f)]&&this[_0x2d8d0f(0x1cb)]());}}})),this[_0x461562(0x12f)](this[_0x461562(0x2d2)][_0x461562(0x329)][_0x461562(0x25c)](_0x5d821b=>{const _0x14a194=_0x461562;if(!this[_0x14a194(0x21f)])return;if(_0x5d821b[_0x14a194(0x1a1)]===0x0){this['_activeShapeInfo']=null,this[_0x14a194(0x310)]();return;}if(_0x5d821b['length']===0x1&&_0x5d821b[0x0][_0x14a194(0x32a)]===_0x27f24b[_0x14a194(0x10d)]&&(this[_0x14a194(0x1c7)]+=0x1,this['_activeShapeInfo']=this[_0x14a194(0x1a4)](_0x5d821b[0x0][_0x14a194(0x2c4)],_0x5d821b[0x0][_0x14a194(0x356)],_0x5d821b[0x0][_0x14a194(0x335)]),this[_0x14a194(0x27b)])){this['_openShapeEditPanel']();return;}let _0x389411=_0x5d821b[_0x14a194(0x277)](_0x346a55=>_0x346a55[_0x14a194(0x32a)]===_0x27f24b[_0x14a194(0x10d)]);this[_0x14a194(0x1c7)]+=0x1,this[_0x14a194(0x27b)]=this['_getShapeInfo'](_0x5d821b[0x0][_0x14a194(0x2c4)],_0x5d821b[0x0][_0x14a194(0x356)],_0x5d821b[0x0][_0x14a194(0x335)]),this[_0x14a194(0x27b)]&&_0x5d821b[_0x14a194(0x1a1)]>0x1&&_0x389411[_0x14a194(0x1a1)]===_0x5d821b[_0x14a194(0x1a1)]?this[_0x14a194(0x1cb)]():this[_0x14a194(0x27b)]&&_0x389411[_0x14a194(0x1a1)]!==_0x5d821b[_0x14a194(0x1a1)]?(this[_0x14a194(0x27b)]['disableShapeOption']=!0x0,this[_0x14a194(0x1cb)]()):this[_0x14a194(0x310)]();}));}[_0x32a71f(0x1cb)](){const _0x533fd1=_0x32a71f;this[_0x533fd1(0x27b)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0x533fd1(0x11d)]({'id':W,'header':{'title':this['_localeService']['t'](_0x533fd1(0x193))},'width':0x184,'children':{'label':W,...this[_0x533fd1(0x27b)]},'onClose':()=>{const _0x475824=_0x533fd1;this[_0x475824(0x2d2)][_0x475824(0x306)](null),this[_0x475824(0x10e)]['setContextValue'](_0x2ec367,!0x1),this[_0x475824(0x1f7)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x32a71f(0x310)](){const _0x31ad84=_0x32a71f;this['_isOpenedShapeEditPanel']=!0x1,this['_sidebarService'][_0x31ad84(0x2cc)](W),this[_0x31ad84(0x1f7)]=null,this[_0x31ad84(0x10e)][_0x31ad84(0x242)](_0x2ec367,!0x1),this[_0x31ad84(0x2d2)][_0x31ad84(0x306)](null);}};ya=q([K(0x0,_0x434573),K(0x1,_0x9fe2f5(_0xe1f947)),K(0x2,_0x5dfdbd),K(0x3,_0x9fe2f5(_0x184287)),K(0x4,_0x9fe2f5(_0x7eb730)),K(0x5,_0x4129fd),K(0x6,_0x543f62),K(0x7,_0x9fe2f5(_0x4f5bac)),K(0x8,_0x4ad11d),K(0x9,_0x2ee1da),K(0xa,_0x9fe2f5(Q)),K(0xb,_0x4929ce),K(0xc,_0x9fe2f5(_0x3428e7))],ya);const ba=_0x32a71f(0x1fb);let xa=class extends _0x2c4c7f{constructor(_0x4798ec,_0x4c3862,_0xbd4f86,_0x52c229,_0x414af4,_0x2f5e0d){const _0x413140=_0x32a71f;super(),this[_0x413140(0x2fb)]=_0x4798ec,this[_0x413140(0x250)]=_0x4c3862,this[_0x413140(0x2d2)]=_0xbd4f86,this[_0x413140(0x2a3)]=_0x52c229,this[_0x413140(0x271)]=_0x414af4,this[_0x413140(0x231)]=_0x2f5e0d,X(this,_0x413140(0x1be),!0x1),this[_0x413140(0x2fb)]['mergeMenu'](Fi),this[_0x413140(0x12f)](_0x8215d0(this[_0x413140(0x2d2)]['focus$'][_0x413140(0x25c)](()=>this['_update']()))),this['_update']();}[_0x32a71f(0x10f)](){const _0x308264=_0x32a71f;this[_0x308264(0x231)]['setFallbackVisible'](!0x1,ba),this[_0x308264(0x1d0)](),super['dispose']();}['_update'](){const _0x77467f=_0x32a71f;var _0x474946;let _0x31d232=this[_0x77467f(0x2d2)]['getFocusDrawings'](),_0x59d0f5=_0x31d232[_0x77467f(0x1a1)]===0x1?_0x31d232[0x0]:void 0x0;if((_0x59d0f5==null?void 0x0:_0x59d0f5[_0x77467f(0x32a)])!==_0x27f24b[_0x77467f(0x10d)]||this[_0x77467f(0x2a3)]['getUnitType'](_0x59d0f5['unitId'])!==_0x5be7f7['UNIVER_DOC']){this['_shapeFloatingToolbarService'][_0x77467f(0x34d)](!0x1,ba),this['_hide']();return;}let _0x3ee576=(_0x474946=this[_0x77467f(0x271)][_0x77467f(0x35e)](_0x59d0f5[_0x77467f(0x2c4)]))==null?void 0x0:_0x474946[_0x77467f(0x17e)][_0x77467f(0x15e)](),_0xd18854=_0x44344d(_0x3ee576)==='isolated';this[_0x77467f(0x231)][_0x77467f(0x34d)](_0xd18854,ba),_0xd18854?this[_0x77467f(0x1d0)]():(this[_0x77467f(0x1be)]=!0x0,this[_0x77467f(0x250)]['showContextualTab'](Or,{'activate':!0x0}));}[_0x32a71f(0x1d0)](){const _0x2a8cff=_0x32a71f;this[_0x2a8cff(0x1be)]&&(this[_0x2a8cff(0x1be)]=!0x1,this[_0x2a8cff(0x250)][_0x2a8cff(0x1f6)](Or),this[_0x2a8cff(0x250)][_0x2a8cff(0x1da)]([]));}};xa=q([K(0x0,_0x5dfdbd),K(0x1,_0x1f72f6),K(0x2,_0x543f62),K(0x3,_0x434573),K(0x4,_0x4ad11d),K(0x5,_0x9fe2f5(_0x430d17))],xa);let Sa=class extends _0x2c4c7f{constructor(_0x52aad2,_0x3bde8a,_0x263f47,_0xfc8c4c){const _0x3d83ef=_0x32a71f;super(),this['_commandService']=_0x52aad2,this[_0x3d83ef(0x271)]=_0x3bde8a,this[_0x3d83ef(0x2d2)]=_0x263f47,this['_docDrawingShapeRenderController']=_0xfc8c4c,this[_0x3d83ef(0x165)]();}[_0x32a71f(0x165)](){const _0x6b372a=_0x32a71f;this['disposeWithMe'](this['_drawingManagerService'][_0x6b372a(0x366)][_0x6b372a(0x25c)](_0x537f39=>this[_0x6b372a(0x1f2)](_0x537f39))),this[_0x6b372a(0x12f)](this[_0x6b372a(0x2d2)][_0x6b372a(0x16f)][_0x6b372a(0x25c)](_0x216417=>{const _0x22c58d=_0x6b372a;_0x216417[_0x22c58d(0x2f1)](_0x1263d9=>this[_0x22c58d(0x240)](_0x1263d9));})),this[_0x6b372a(0x12f)](this[_0x6b372a(0x172)][_0x6b372a(0x2a6)](_0xb95d5c=>{const _0x14a4c8=_0x6b372a;if(_0xb95d5c['id']!==_0x365039['id'])return;let {unitId:_0x4b8b27,shapeId:_0x37e952}=_0xb95d5c['params'];this[_0x14a4c8(0x18b)]({'unitId':_0x4b8b27,'subUnitId':_0x4b8b27,'drawingId':_0x37e952});}));}['_insertShapes'](_0x38b936){const _0x2ed755=_0x32a71f;_0x38b936[_0x2ed755(0x2f1)](_0x5373f5=>{const _0x3e1bd3=_0x2ed755;let _0x54ffe1=this['_getSceneByUnitId'](_0x5373f5[_0x3e1bd3(0x2c4)]);if(!_0x54ffe1)return;let _0x37ed40=this['_drawingManagerService'][_0x3e1bd3(0x30e)](_0x5373f5);(_0x37ed40==null?void 0x0:_0x37ed40[_0x3e1bd3(0x32a)])===_0x27f24b[_0x3e1bd3(0x10d)]&&this[_0x3e1bd3(0x244)]['renderDrawingShape'](_0x37ed40,_0x54ffe1[_0x3e1bd3(0x333)]);});}['_updateShape'](_0x5b1f3e){const _0x3d47de=_0x32a71f;let _0x5a1109=this['_drawingManagerService'][_0x3d47de(0x30e)](_0x5b1f3e);if((_0x5a1109==null?void 0x0:_0x5a1109[_0x3d47de(0x32a)])!==_0x27f24b[_0x3d47de(0x10d)])return;let _0x2f2eac=this[_0x3d47de(0x2e8)](_0x5b1f3e[_0x3d47de(0x2c4)]);if(!_0x2f2eac||_0x5a1109['transform']==null)return;let _0x49a5f3=_0x362385(_0x5b1f3e),_0x33052d=_0x2f2eac[_0x3d47de(0x333)][_0x3d47de(0x2e5)](_0x49a5f3);_0x33052d&&(_0x33052d[_0x3d47de(0x197)](_0x5a1109['srcRect']),_0x33052d[_0x3d47de(0x20a)](_0x5a1109[_0x3d47de(0x294)]),_0x33052d[_0x3d47de(0x2dc)](!0x0));}['_refreshShapeData'](_0x278dee){const _0x4c4f40=_0x32a71f;let _0x517fd4=this[_0x4c4f40(0x2e8)](_0x278dee[_0x4c4f40(0x2c4)]);if(!_0x517fd4)return;let _0x407586=_0x362385(_0x278dee),_0xf65da6=_0x517fd4[_0x4c4f40(0x333)]['getObjectIncludeInGroup'](_0x407586);_0xf65da6&&(this[_0x4c4f40(0x244)][_0x4c4f40(0x312)](_0xf65da6),this[_0x4c4f40(0x244)][_0x4c4f40(0x208)](_0xf65da6,{'unitId':_0x278dee[_0x4c4f40(0x2c4)],'subUnitId':_0x278dee[_0x4c4f40(0x356)],'shapeId':_0x278dee[_0x4c4f40(0x335)]}),_0xf65da6[_0x4c4f40(0x2dc)](!0x0));}['_getSceneByUnitId'](_0x5a1479){const _0x55c101=_0x32a71f;if(_0x5a1479==null)return null;let _0x97b67b=this[_0x55c101(0x271)]['getRenderUnitById'](_0x5a1479),_0x275774=_0x97b67b==null?void 0x0:_0x97b67b[_0x55c101(0x333)];return _0x275774==null?null:{'scene':_0x275774};}};Sa=q([K(0x0,_0x4129fd),K(0x1,_0x4ad11d),K(0x2,_0x543f62),K(0x3,_0x9fe2f5($))],Sa);let Ca=class extends _0x1fd758{constructor(_0x1f2683=Vi,_0x3b227e,_0x2ca99a,_0x5e330f,_0x37e4b5){const _0x1fe1ef=_0x32a71f;super(),this['_config']=_0x1f2683,this[_0x1fe1ef(0x2ca)]=_0x3b227e,this[_0x1fe1ef(0x172)]=_0x2ca99a,this[_0x1fe1ef(0x17c)]=_0x5e330f,this['_renderManagerService']=_0x37e4b5;let {menu:_0x1625e5,..._0x24450e}=_0x30c246({},Vi,this[_0x1fe1ef(0x16b)]);_0x1625e5&&this[_0x1fe1ef(0x17c)][_0x1fe1ef(0x1a6)](_0x1fe1ef(0x141),_0x1625e5,{'merge':!0x0}),this['_configService'][_0x1fe1ef(0x1a6)](Bi,_0x24450e),[U,zi,G,Nr,Fr,Ir][_0x1fe1ef(0x2f1)](_0x235299=>this[_0x1fe1ef(0x12f)](this['_commandService'][_0x1fe1ef(0x1b8)](_0x235299)));}[_0x32a71f(0x131)](){const _0x2863ee=_0x32a71f;let _0xc76ab3=[[va],[ya],[Sa],[$],[Yi],[qi],[J],[ia],[Q],[xa]];_0x4b3c2e(this[_0x2863ee(0x2ca)],_0xc76ab3),this[_0x2863ee(0x2ca)][_0x2863ee(0x2ee)](va);}[_0x32a71f(0x2e0)](){const _0xc3ac94=_0x32a71f;this[_0xc3ac94(0x12f)](this[_0xc3ac94(0x271)][_0xc3ac94(0x253)](_0x5be7f7['UNIVER_DOC'],[qi])),_0xc0378d(this[_0xc3ac94(0x2ca)],[[ya],[Sa],[$],[Yi],[J],[ia],[Q],[xa]]);}};X(Ca,_0x32a71f(0x1cc),_0x5be7f7[_0x32a71f(0x1c0)]),X(Ca,_0x32a71f(0x2e4),_0x32a71f(0x35b)),X(Ca,'packageName',Li),X(Ca,_0x32a71f(0x2af),Ri),Ca=q([_0x33e084(_0x210dd0,_0x528d37,_0x3d47f7,_0x4e337d,_0x15a661,_0x2e0958,_0xba057e,_0x32ba78,_0x32cb29,_0x13e226),K(0x1,_0x9fe2f5(_0x56b06a)),K(0x2,_0x4129fd),K(0x3,_0x5e645f),K(0x4,_0x4ad11d)],Ca);let wa=class extends _0x2c4c7f{constructor(_0x1bc64a,_0x5d2221){const _0x43f403=_0x32a71f;super(),this['_componentManager']=_0x1bc64a,this[_0x43f403(0x157)]=_0x5d2221,this[_0x43f403(0x2d0)](),this[_0x43f403(0x371)]();}['_registerIcons'](){const _0x2047ae=_0x32a71f;this['_iconManager'][_0x2047ae(0x1d9)](_0x2047ae(0x27d))||this[_0x2047ae(0x12f)](this[_0x2047ae(0x157)][_0x2047ae(0x375)]({'ObjectLayersIcon':_0x537f0c})),this[_0x2047ae(0x157)]['has']('BottomIcon')||this[_0x2047ae(0x12f)](this[_0x2047ae(0x157)]['register']({'BottomIcon':_0x32515c})),this[_0x2047ae(0x157)][_0x2047ae(0x1d9)](_0x2047ae(0x362))||this['disposeWithMe'](this[_0x2047ae(0x157)][_0x2047ae(0x375)]({'MoveDownIcon':_0x2eb674})),this[_0x2047ae(0x157)]['has'](_0x2047ae(0x189))||this['disposeWithMe'](this['_iconManager'][_0x2047ae(0x375)]({'MoveUpIcon':_0x14f2ec})),this[_0x2047ae(0x157)][_0x2047ae(0x1d9)](_0x2047ae(0x28c))||this['disposeWithMe'](this[_0x2047ae(0x157)][_0x2047ae(0x375)]({'ShapeFormatSettingIcon':_0x1d4214})),this[_0x2047ae(0x157)][_0x2047ae(0x1d9)]('TopmostIcon')||this[_0x2047ae(0x12f)](this['_iconManager'][_0x2047ae(0x375)]({'TopmostIcon':_0x3e2c9d})),this[_0x2047ae(0x12f)](this[_0x2047ae(0x157)]['register'](ga));}[_0x32a71f(0x371)](){const _0x1c347c=_0x32a71f;this['disposeWithMe'](this[_0x1c347c(0x158)][_0x1c347c(0x375)](W,oa)),this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)][_0x1c347c(0x375)](kr,na)),this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)][_0x1c347c(0x375)](ua,fa)),this['disposeWithMe'](this[_0x1c347c(0x158)][_0x1c347c(0x375)](Qr,ii)),this['disposeWithMe'](this['_componentManager'][_0x1c347c(0x375)](Zr,ai)),this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)][_0x1c347c(0x375)]($r,oi)),this['disposeWithMe'](this[_0x1c347c(0x158)][_0x1c347c(0x375)](ei,si)),this[_0x1c347c(0x12f)](this['_componentManager'][_0x1c347c(0x375)](ti,ci)),this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)]['register'](jr,_0x23abff)),this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)]['register'](Lr,Ur)),this['disposeWithMe'](this[_0x1c347c(0x158)][_0x1c347c(0x375)](Rr,Vr)),this[_0x1c347c(0x158)][_0x1c347c(0x20b)](_0x306f90)||this[_0x1c347c(0x12f)](this[_0x1c347c(0x158)][_0x1c347c(0x375)](_0x306f90,Hr)),this['disposeWithMe'](this[_0x1c347c(0x158)][_0x1c347c(0x375)](Mr,_a));}};wa=q([K(0x0,_0x9fe2f5(_0x4a21c5)),K(0x1,_0x9fe2f5(_0x1ffafb))],wa);let Ta=class extends _0x2c4c7f{constructor(_0x453076,_0x312e0c,_0x3fd609,_0x1f1330,_0x1defeb,_0x20caf6,_0x4d2a28,_0x388e08,_0x14dfe7){const _0x38ec50=_0x32a71f;super();let _0x341f9c=_0x129c23=>{const _0x66d01e=_0x1001;let _0x1e913a=_0x20caf6[_0x66d01e(0x2ea)](_0x129c23[_0x66d01e(0x2c4)],_0x5be7f7[_0x66d01e(0x1c0)]),_0x5935ab=_0x1e913a?_0x4a6ec5(_0x1e913a,_0x129c23[_0x66d01e(0x174)]):'';return!!_0x1e913a&&_0x55fe4b(_0x388e08,_0x129c23[_0x66d01e(0x2c4)],[_0x1c073e(_0x5935ab,_0x66d01e(0x211),_0x129c23[_0x66d01e(0x174)]),..._0x1b791b(_0x1e913a,_0x5935ab,_0x66d01e(0x211),_0x129c23[_0x66d01e(0x174)])]);},_0x19fda3=_0x53344e=>_0x53344e[_0x38ec50(0x174)]&&_0x341f9c(_0x53344e)?_0x3fd609[_0x38ec50(0x373)](_0x53344e[_0x38ec50(0x2c4)],_0x53344e[_0x38ec50(0x174)])??null:null,_0x3d6fd1=()=>{const _0x175e33=_0x38ec50;let _0x57e52a=_0x1defeb[_0x175e33(0x1d6)](),_0x5ba0a2=_0x57e52a['length']===0x1?_0x57e52a[0x0]:null;return(_0x5ba0a2==null?void 0x0:_0x5ba0a2[_0x175e33(0x32a)])===_0x27f24b['DRAWING_SHAPE']&&_0x5ba0a2[_0x175e33(0x2c4)]===_0x453076['unitId']?{'unitId':_0x5ba0a2[_0x175e33(0x2c4)],'subUnitId':_0x5ba0a2[_0x175e33(0x356)],'shapeId':_0x5ba0a2[_0x175e33(0x335)]}:null;};this['disposeWithMe'](_0x285f85(_0x453076,_0x312e0c,{'changes$':_0x4e55e8(_0x1defeb[_0x38ec50(0x329)],_0x1f1330[_0x38ec50(0x164)],_0x388e08[_0x38ec50(0x160)]),'isActive':()=>{const _0x474da7=_0x38ec50;var _0x2a9fa5;return((_0x2a9fa5=_0x20caf6['getFocusedUnit']())==null?void 0x0:_0x2a9fa5[_0x474da7(0x1fc)]())===_0x453076['unitId']&&!_0x4d2a28['getContextValue'](_0x141bb0)&&_0x1defeb[_0x474da7(0x1d6)]()[_0x474da7(0x1ba)](_0xbd7910=>_0xbd7910[_0x474da7(0x2c4)]===_0x453076['unitId']);},'getSelectedTarget':_0x3d6fd1,'getSource':()=>{let _0x5dcd42=_0x3d6fd1();return _0x5dcd42?_0x19fda3(_0x5dcd42):null;},'getTarget':_0x11e1b6=>{const _0x2f088d=_0x38ec50;let _0x36e1d7=_0x453076[_0x2f088d(0x333)][_0x2f088d(0x1f0)](new _0x5bda34(_0x11e1b6['offsetX'],_0x11e1b6[_0x2f088d(0x2f0)]));if(!(_0x36e1d7 instanceof Z))return null;let _0x1cab29={'unitId':_0x453076[_0x2f088d(0x2c4)],'subUnitId':_0x453076[_0x2f088d(0x2c4)],'shapeId':_0x36e1d7[_0x2f088d(0x174)]};return _0x341f9c(_0x1cab29)?_0x1cab29:null;},'getShape':_0x19fda3,'update':(_0xc3264f,_0x47d717,_0x3424df)=>_0x14dfe7[_0x38ec50(0x2b2)](_0x3ef3ef['id'],{..._0xc3264f,'shapeData':_0x3424df,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x47d717}})}));}};Ta=q([K(0x1,_0x9fe2f5(_0x3da8f7)),K(0x2,_0x9fe2f5(_0x184287)),K(0x3,_0x9fe2f5(Q)),K(0x4,_0x543f62),K(0x5,_0x434573),K(0x6,_0x2ee1da),K(0x7,_0x4929ce),K(0x8,_0x4129fd)],Ta);function Ea(_0x577bc4,_0x2c0ada){const _0x25fb50=_0x32a71f;let _0x566407=_0x577bc4;for(;_0x566407;){if(_0x2c0ada(_0x566407))return _0x566407;_0x566407=typeof _0x566407[_0x25fb50(0x17b)]==_0x25fb50(0x321)?_0x566407[_0x25fb50(0x17b)]():null;}return null;}function Da(_0x223a0c){return Ea(_0x223a0c,_0x117c2b=>_0x117c2b instanceof Z);}function Oa(_0xf9d6c8){const _0x5b9269=_0x32a71f;return(_0xf9d6c8==null?void 0x0:_0xf9d6c8[_0x5b9269(0x1b9)])==null;}let ka=class extends _0x2c4c7f{constructor(_0x1ac9a0,_0xe29496,_0xd3ec42,_0xb05630,_0x529b2c){const _0x3f031f=_0x32a71f;super(),this[_0x3f031f(0x23a)]=_0x1ac9a0,this[_0x3f031f(0x347)]=_0xe29496,this[_0x3f031f(0x2d2)]=_0xd3ec42,this['_docLayoutInteractionService']=_0xb05630,this[_0x3f031f(0x1fa)]=_0x529b2c,X(this,_0x3f031f(0x323),null),X(this,_0x3f031f(0x260),null),this[_0x3f031f(0x2d6)](),this[_0x3f031f(0x2e1)](),this[_0x3f031f(0x338)]();}[_0x32a71f(0x10f)](){const _0x3656e6=_0x32a71f;this[_0x3656e6(0x1c4)](),super[_0x3656e6(0x10f)]();}['_initEvents'](){const _0x1bb4d6=_0x32a71f;let {scene:_0x13b439}=this[_0x1bb4d6(0x23a)];this[_0x1bb4d6(0x12f)](_0x13b439[_0x1bb4d6(0x1d4)][_0x1bb4d6(0x1e0)]((_0x3c9e83,_0x1cce17)=>{const _0x4f5776=_0x1bb4d6;let {offsetX:_0x3fd146,offsetY:_0x5b9004}=_0x3c9e83,_0x387954=_0x5bda34[_0x4f5776(0x2dd)]([_0x3fd146,_0x5b9004]),_0x5521ad=Da(_0x13b439['pick'](_0x387954))??this[_0x4f5776(0x1af)](_0x387954);if(_0x5521ad){_0x1cce17[_0x4f5776(0x279)]();let _0x5b41d9=this[_0x4f5776(0x1fa)][_0x4f5776(0x31b)](_0x5521ad[_0x4f5776(0x2c4)],_0x5521ad[_0x4f5776(0x356)],_0x5521ad['shapeId']);if(!_0x5b41d9||_0x9d2c65(_0x5b41d9['getShapeType']())||!Oa(_0x5b41d9['getShapeData']()))return;this['_shapeTextEditingService'][_0x4f5776(0x357)]({'visible':!0x0,'unitId':_0x5521ad['unitId'],'subUnitId':_0x5521ad[_0x4f5776(0x356)],'shapeId':_0x5521ad[_0x4f5776(0x174)],'shapeKey':_0x5521ad['oKey']});}}));}[_0x32a71f(0x1af)](_0xbffa14){const _0x260b23=_0x32a71f;let {scene:_0x3fa168}=this[_0x260b23(0x23a)];return this[_0x260b23(0x2d2)][_0x260b23(0x1d6)]()[_0x260b23(0x1de)](_0x53a8c5=>_0x3fa168['getObjectIncludeInGroup'](_0x362385(_0x53a8c5)))['find'](_0x37c33b=>_0x37c33b instanceof Z&&_0x37c33b[_0x260b23(0x35c)](_0xbffa14))??null;}[_0x32a71f(0x2e1)](){const _0x2b6f4e=_0x32a71f;this[_0x2b6f4e(0x12f)](this['_drawingManagerService'][_0x2b6f4e(0x329)][_0x2b6f4e(0x25c)](_0x108b7e=>{const _0x3b6c66=_0x2b6f4e;if(_0x108b7e['length']===0x1){let _0x4f3b59=_0x108b7e[0x0],_0x267ee3=this['_drawingManagerService'][_0x3b6c66(0x30e)](_0x4f3b59);if((_0x267ee3==null?void 0x0:_0x267ee3['drawingType'])===_0x27f24b[_0x3b6c66(0x10d)]){let _0xa28508=this[_0x3b6c66(0x347)]['getEditing']();if((_0xa28508==null?void 0x0:_0xa28508[_0x3b6c66(0x174)])===_0x4f3b59[_0x3b6c66(0x335)]&&_0xa28508['visible'])return;_0x9d2c65(this[_0x3b6c66(0x1fa)][_0x3b6c66(0x16d)](_0x4f3b59[_0x3b6c66(0x2c4)],_0x4f3b59[_0x3b6c66(0x356)],_0x4f3b59['drawingId']))&&this[_0x3b6c66(0x347)][_0x3b6c66(0x357)](null);}else this[_0x3b6c66(0x347)]['completeEditing']();}else this[_0x3b6c66(0x347)][_0x3b6c66(0x255)]();})),this[_0x2b6f4e(0x12f)](this['_drawingManagerService'][_0x2b6f4e(0x32e)][_0x2b6f4e(0x25c)](_0x3c88a9=>{const _0xf7efd3=_0x2b6f4e;let _0x43ef3e=this[_0xf7efd3(0x347)][_0xf7efd3(0x1eb)]();_0x43ef3e&&_0x3c88a9[_0xf7efd3(0x1ba)](_0x3148c3=>_0x3148c3[_0xf7efd3(0x335)]===_0x43ef3e['shapeId'])&&this[_0xf7efd3(0x347)][_0xf7efd3(0x357)](null);}));}[_0x32a71f(0x338)](){const _0x23ac3a=_0x32a71f;this[_0x23ac3a(0x12f)](this[_0x23ac3a(0x347)][_0x23ac3a(0x164)]['subscribe'](_0x5e8be1=>{const _0x13e6de=_0x23ac3a;(_0x5e8be1==null?void 0x0:_0x5e8be1['visible'])===!0x0&&_0x5e8be1['unitId']===this[_0x13e6de(0x23a)][_0x13e6de(0x2c4)]?this[_0x13e6de(0x260)]??=this[_0x13e6de(0x299)][_0x13e6de(0x34e)]():this[_0x13e6de(0x1c4)]();let {scene:_0x15e3c1}=this[_0x13e6de(0x23a)];if(this[_0x13e6de(0x323)]){let _0x10d326=_0x15e3c1[_0x13e6de(0x2e5)](this[_0x13e6de(0x323)]);_0x10d326&&_0x10d326[_0x13e6de(0x357)](!0x1);}if(_0x5e8be1){let _0x304deb=!!_0x5e8be1[_0x13e6de(0x186)],_0x5d2274=_0x15e3c1[_0x13e6de(0x2e5)](_0x5e8be1[_0x13e6de(0x352)]);_0x5d2274&&(_0x5d2274['setEditing'](_0x304deb),this[_0x13e6de(0x323)]=_0x5e8be1[_0x13e6de(0x352)]);}else this[_0x13e6de(0x323)]=null;}));}[_0x32a71f(0x1c4)](){const _0x544c40=_0x32a71f;var _0x3233b5;(_0x3233b5=this[_0x544c40(0x260)])==null||_0x3233b5[_0x544c40(0x10f)](),this[_0x544c40(0x260)]=null;}};ka=q([K(0x1,_0x9fe2f5(Q)),K(0x2,_0x543f62),K(0x3,_0x9fe2f5(_0x35ca2b)),K(0x4,_0x9fe2f5(_0x184287))],ka);let Aa=class extends _0x333d7a{constructor(_0x45cb47,_0x22bd8e,_0x276fa4,_0x4aa683,_0x440c9b,_0x166599,_0x27b25e,_0x436098,_0x435d5e,_0x20c3c1){super(_0x45cb47,_0x22bd8e,_0x276fa4,_0x4aa683,_0x440c9b,_0x166599,_0x27b25e,_0x436098,_0x435d5e,_0x20c3c1,{'componentKey':jr,'editorUnitId':Ar});}};Aa=q([K(0x1,_0x9fe2f5(_0x55aa00)),K(0x2,_0x9fe2f5(_0x4f5bac)),K(0x3,_0x9fe2f5(_0x39efa1)),K(0x4,_0x4129fd),K(0x5,_0x9fe2f5(_0x3b113a)),K(0x6,_0x9fe2f5(_0x2936de)),K(0x7,_0x9fe2f5(_0x3d657f)),K(0x8,_0x9fe2f5(_0x372b92)),K(0x9,_0x9fe2f5(Q))],Aa);let ja=class extends _0x48ac61{constructor(_0x4c0842,_0x1374f7,_0x25709f,_0x4d70f0,_0x9eb683){const _0x3e24f2=_0x32a71f;super(_0x4c0842,_0x1374f7,{'editing$':_0x25709f[_0x3e24f2(0x164)],'resolve':_0x56ebfe=>{const _0x855109=_0x3e24f2;var _0x4a06c5;let _0x49e1c4=new _0x5bda34(_0x56ebfe[_0x855109(0x11e)],_0x56ebfe[_0x855109(0x2f0)]),_0x2767be=((_0x4a06c5=_0x4c0842['scene'][_0x855109(0x23b)](_0x49e1c4))==null?void 0x0:_0x4a06c5[_0x855109(0x1aa)](_0x49e1c4))??_0x49e1c4,_0x5ea902=_0x1cbc43(_0x4c0842['scene']['pick'](_0x49e1c4)??null,_0x2767be);if(!(_0x5ea902 instanceof Z))return null;let _0x3a9ab7=_0x5ea902[_0x855109(0x118)](_0x2767be);if(!_0x3a9ab7)return null;let _0x327e2a=_0x5ea902,_0xb8509a={'componentKey':_0x2b9edd[_0x855109(0x350)],'direction':_0x855109(0x2ae),'offset':[0x0,0xa],'onClickOutside':()=>_0x1374f7[_0x855109(0x1df)]()};return{'object':_0x5ea902,'info':{..._0x3a9ab7,'unitId':_0x5ea902[_0x855109(0x2c4)],'subUnitId':_0x5ea902[_0x855109(0x356)],'shapeKey':_0x5ea902['oKey'],'readonly':!0x0,'copyable':_0xc184a4(_0x9eb683,_0x5ea902[_0x855109(0x2c4)],_0x5ea902[_0x855109(0x2c4)],_0x4fdac2[_0x855109(0x24e)])},'attachPopup':()=>_0x4d70f0[_0x855109(0x28d)](_0x327e2a,_0xb8509a,_0x327e2a[_0x855109(0x2c4)])};}});}};ja=q([K(0x1,_0x9fe2f5(_0x2936de)),K(0x2,_0x9fe2f5(Q)),K(0x3,_0x9fe2f5(_0x4f5bac)),K(0x4,_0x4929ce)],ja);let Ma=class extends _0x2c4c7f{constructor(_0x360519,_0x459cdf,_0x1855dc,_0x1e70df,_0x5eb3f2,_0x2dc00c,_0xe4c66d,_0x57e43f,_0x29ae16,_0x58b81b,_0xb39229,_0x1433cd){const _0xbcce3b=_0x32a71f;super(),this['_univerInstanceService']=_0x360519,this['_sidebarService']=_0x459cdf,this[_0xbcce3b(0x2fb)]=_0x1855dc,this[_0xbcce3b(0x1fa)]=_0x1e70df,this['_localeService']=_0x5eb3f2,this[_0xbcce3b(0x172)]=_0x2dc00c,this[_0xbcce3b(0x2d2)]=_0xe4c66d,this['_docCanvasPopManagerService']=_0x57e43f,this[_0xbcce3b(0x271)]=_0x29ae16,this[_0xbcce3b(0x10e)]=_0x58b81b,this[_0xbcce3b(0x347)]=_0xb39229,this[_0xbcce3b(0x251)]=_0x1433cd,X(this,_0xbcce3b(0x1f7),null),X(this,_0xbcce3b(0x27b),null),X(this,_0xbcce3b(0x21f),!0x1),X(this,_0xbcce3b(0x1c7),0x0),X(this,_0xbcce3b(0x324),new Map()),X(this,'_popupTargetKeys',new Map()),this[_0xbcce3b(0x1a7)](),this[_0xbcce3b(0x12f)](this[_0xbcce3b(0x2a3)]['getCurrentTypeOfUnit$'](_0x5be7f7[_0xbcce3b(0x1c0)])['subscribe'](_0x1080f7=>{const _0x3af01d=_0xbcce3b;if(!_0x1080f7){var _0xde24a7;(_0xde24a7=this[_0x3af01d(0x1f7)])==null||_0xde24a7[_0x3af01d(0x10f)]();}})),this['_registerOperations'](),this[_0xbcce3b(0x12f)](this['_drawingManagerService']['remove$'][_0xbcce3b(0x25c)](_0x344f65=>{const _0x5c4fa6=_0xbcce3b;for(let _0x23af46 of _0x344f65){let _0x144fe4=_0x23af46[_0x5c4fa6(0x2c4)]+':'+_0x23af46[_0x5c4fa6(0x356)]+':'+_0x23af46[_0x5c4fa6(0x335)];for(let [_0x46f9fe,_0x3f70b0]of this[_0x5c4fa6(0x2fa)])_0x3f70b0===_0x144fe4&&this[_0x5c4fa6(0x354)](_0x46f9fe,!0x0);}})),this[_0xbcce3b(0x12f)](_0x3b2a2e(this[_0xbcce3b(0x271)],_0x5be7f7[_0xbcce3b(0x1c0)],_0x3539bb=>this[_0xbcce3b(0x288)](_0x3539bb))),this[_0xbcce3b(0x12f)](this[_0xbcce3b(0x347)]['editingParams$'][_0xbcce3b(0x25c)](_0x180155=>{const _0x244ae3=_0xbcce3b;_0x180155&&this[_0x244ae3(0x354)](void 0x0,!0x0);})),this[_0xbcce3b(0x12f)](this[_0xbcce3b(0x251)]['permissionPointUpdate$'][_0xbcce3b(0x25c)](()=>{const _0x597ee0=_0xbcce3b;this[_0x597ee0(0x2d2)][_0x597ee0(0x1d6)]()['some'](_0xfeb33f=>_0xfeb33f['drawingType']===_0x27f24b[_0x597ee0(0x10d)]&&this['_univerInstanceService'][_0x597ee0(0x15d)](_0xfeb33f[_0x597ee0(0x2c4)])===_0x5be7f7['UNIVER_DOC']&&!this[_0x597ee0(0x1dc)](_0xfeb33f[_0x597ee0(0x2c4)],_0xfeb33f[_0x597ee0(0x335)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x597ee0(0x310)]());}));}[_0x32a71f(0x1a7)](){const _0xec514c=_0x32a71f;this[_0xec514c(0x2fb)]['mergeMenu'](Ii);}[_0x32a71f(0x106)](_0x1321cb,_0x133983,_0x145726,_0x54ce3b){const _0xad5d34=_0x32a71f;return[{'label':_0xad5d34(0x222),'index':0x0,'commandId':G['id'],'commandParams':{'unitId':_0x1321cb,'subUnitId':_0x133983,'drawingId':_0x145726},'disable':_0x54ce3b===_0x27f24b[_0xad5d34(0x2eb)]},{'label':_0xad5d34(0x35d),'index':0x1,'commandId':_0xa19455['id'],'commandParams':{'unitId':_0x1321cb,'drawings':[{'unitId':_0x1321cb,'subUnitId':_0x133983,'drawingId':_0x145726}]},'disable':!0x1},{'label':_0xad5d34(0x1f4),'index':0x2,'commandId':zi['id'],'commandParams':{'unitId':_0x1321cb,'subUnitId':_0x133983,'drawingId':_0x145726},'disable':!0x1}];}[_0x32a71f(0x1a4)](_0x1ab824,_0x4ea90f,_0x15b7db){const _0x372e48=_0x32a71f;let _0xfbdbdd=this[_0x372e48(0x1fa)][_0x372e48(0x13c)](_0x1ab824,_0x4ea90f,_0x15b7db),_0x54d1b4=this[_0x372e48(0x1fa)]['getShapeDataById'](_0x1ab824,_0x4ea90f,_0x15b7db);return _0xfbdbdd!==void 0x0&&_0x54d1b4!==void 0x0?{'shapeData':_0x54d1b4,'shapeId':_0x15b7db,'shapeType':_0xfbdbdd,'unitId':_0x1ab824,'subUnitId':_0x4ea90f,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0x12c3c0,_0x22200e=!0x1){const _0x3f8a39=_0x32a71f;if(_0x12c3c0==null){[...this[_0x3f8a39(0x324)][_0x3f8a39(0x13f)]()][_0x3f8a39(0x2f1)](_0x3cc3d3=>this[_0x3f8a39(0x354)](_0x3cc3d3,_0x22200e));return;}let _0x6320af=this[_0x3f8a39(0x324)][_0x3f8a39(0x2ee)](_0x12c3c0);if(_0x6320af){for(let _0x403ad9=_0x6320af[_0x3f8a39(0x1a1)]-0x1;_0x403ad9>=0x0;--_0x403ad9){let _0x11ed7a=_0x6320af[_0x403ad9];(_0x22200e||_0x11ed7a[_0x3f8a39(0x173)]())&&(_0x11ed7a[_0x3f8a39(0x10f)](),_0x6320af['splice'](_0x403ad9,0x1));}_0x6320af[_0x3f8a39(0x1a1)]===0x0&&(this[_0x3f8a39(0x324)][_0x3f8a39(0x14c)](_0x12c3c0),this[_0x3f8a39(0x2fa)][_0x3f8a39(0x14c)](_0x12c3c0));}}[_0x32a71f(0x230)](_0x40909e){const _0x2e1381=_0x32a71f;let _0x4216f8=this[_0x2e1381(0x324)][_0x2e1381(0x2ee)](_0x40909e);if(_0x4216f8)return _0x4216f8;let _0x3053fc=[];return this['_disposePopupsByUnit'][_0x2e1381(0x280)](_0x40909e,_0x3053fc),_0x3053fc;}['_popupMenuListener'](_0x423f4b){const _0x348979=_0x32a71f;var _0x2b5341;let _0x362a30=new _0x56165f(),_0x2a5108=(_0x2b5341=this[_0x348979(0x271)][_0x348979(0x2fe)](_0x5be7f7[_0x348979(0x1c0)])['find'](_0x3bbf31=>_0x3bbf31['scene']['getTransformerByCreate']()===_0x423f4b))==null?void 0x0:_0x2b5341['unitId'];return _0x2a5108&&(_0x362a30['add'](_0x423f4b[_0x348979(0x1e4)]['subscribe'](()=>this['_handleCreateControl'](_0x423f4b,_0x2a5108))),_0x362a30[_0x348979(0x1ff)](_0x423f4b[_0x348979(0x107)][_0x348979(0x25c)](()=>{const _0x1096ee=_0x348979;this[_0x1096ee(0x354)](_0x2a5108),queueMicrotask(()=>{const _0x396832=_0x1096ee;_0x423f4b[_0x396832(0x1ed)]()[_0x396832(0x1f1)]>0x0||!this[_0x396832(0x2d2)][_0x396832(0x1d6)]()[_0x396832(0x1ba)](_0x5f5219=>_0x5f5219[_0x396832(0x2c4)]===_0x2a5108)||(this['_contextService']['setContextValue'](_0x2ec367,!0x1),this['_drawingManagerService'][_0x396832(0x306)](null));});})),_0x362a30['add'](_0x423f4b[_0x348979(0x34a)][_0x348979(0x25c)](()=>{const _0x29289a=_0x348979;this[_0x29289a(0x354)](_0x2a5108,!0x0);}))),_0x362a30;}[_0x32a71f(0x2d7)](_0x2bb87b,_0x7b3c15){const _0x1c3395=_0x32a71f;let _0x3034fe=_0x2bb87b[_0x1c3395(0x1ed)]();if(this['_isOpenedShapeEditPanel']){this[_0x1c3395(0x354)](_0x7b3c15,!0x0);return;}if(_0x3034fe[_0x1c3395(0x1f1)]>0x1){this[_0x1c3395(0x354)](_0x7b3c15);return;}let _0xa0555f=_0x3034fe['values']()[_0x1c3395(0x276)]()['value'];if(!_0xa0555f){this[_0x1c3395(0x354)](_0x7b3c15);return;}let _0x348478=this[_0x1c3395(0x2d2)][_0x1c3395(0x273)](_0xa0555f[_0x1c3395(0x133)]);if(!_0x348478||_0x348478['drawingType']!==_0x27f24b[_0x1c3395(0x10d)]){this['_clearPopups'](_0x7b3c15);return;}let {unitId:_0x1ac8c2,subUnitId:_0x4c2315,drawingId:_0x5b9e6a,drawingType:_0x15a061}=_0x348478;if(!this['_canEditShape'](_0x1ac8c2,_0x5b9e6a)){this[_0x1c3395(0x354)](_0x7b3c15,!0x0);return;}let _0x31c8b0=this[_0x1c3395(0x1a4)](_0x1ac8c2,_0x4c2315,_0x5b9e6a);if(!_0x31c8b0){this[_0x1c3395(0x354)](_0x7b3c15);return;}let _0x5143db=this[_0x1c3395(0x324)][_0x1c3395(0x2ee)](_0x7b3c15),_0x1c4c3b=_0x1ac8c2+':'+_0x4c2315+':'+_0x5b9e6a;if(this['_popupTargetKeys'][_0x1c3395(0x2ee)](_0x7b3c15)===_0x1c4c3b&&_0x5143db&&_0x5143db['length']>0x0)return;this[_0x1c3395(0x354)](_0x7b3c15);let _0x41a645=this['_renderManagerService'][_0x1c3395(0x35e)](_0x1ac8c2),_0x2b30e8=((_0x41a645==null?void 0x0:_0x41a645[_0x1c3395(0x29a)])===!0x1?_0x41a645[_0x1c3395(0x303)](_0x4f5bac):this[_0x1c3395(0x152)])[_0x1c3395(0x28d)](_0xa0555f,this[_0x1c3395(0x2a0)](_0x31c8b0,_0x15a061),_0x1ac8c2);this[_0x1c3395(0x12f)](_0x2b30e8),this[_0x1c3395(0x230)](_0x7b3c15)[_0x1c3395(0x175)](_0x2b30e8),this['_popupTargetKeys'][_0x1c3395(0x280)](_0x7b3c15,_0x1c4c3b),this['_drawingManagerService']['getFocusDrawings']()[_0x1c3395(0x1ba)](_0x1ed90c=>_0x1ed90c[_0x1c3395(0x2c4)]===_0x1ac8c2&&_0x1ed90c[_0x1c3395(0x356)]===_0x4c2315&&_0x1ed90c[_0x1c3395(0x335)]===_0x5b9e6a)||this[_0x1c3395(0x2d2)][_0x1c3395(0x306)]([{'unitId':_0x1ac8c2,'subUnitId':_0x4c2315,'drawingId':_0x5b9e6a}]);}[_0x32a71f(0x2a0)](_0x3593af,_0xbd8113){const _0x66757e=_0x32a71f;return{'componentKey':ua,'requiresStableLayout':!0x1,'direction':_0x66757e(0x35f),'offset':[0x0,_0x30e9cd],'extraProps':{'unitId':_0x3593af[_0x66757e(0x2c4)],'subUnitId':_0x3593af[_0x66757e(0x356)],'drawingId':_0x3593af[_0x66757e(0x174)],'drawingType':_0xbd8113,'shapeType':_0x3593af[_0x66757e(0x168)],'shapeData':_0x3593af['shapeData']}};}[_0x32a71f(0x1dc)](_0x7d060c,_0x1e0d22){const _0x10f9d0=_0x32a71f;let _0x44bacb=this[_0x10f9d0(0x2a3)][_0x10f9d0(0x2ea)](_0x7d060c,_0x5be7f7['UNIVER_DOC']);if(!_0x44bacb)return!0x1;let _0x38083f=_0x4a6ec5(_0x44bacb,_0x1e0d22);return _0x55fe4b(this['_permissionService'],_0x7d060c,[..._0x1b791b(_0x44bacb,_0x38083f,_0x10f9d0(0x211),_0x1e0d22),_0x1c073e(_0x38083f,_0x10f9d0(0x211),_0x1e0d22)]);}[_0x32a71f(0x24d)](){const _0x5299e6=_0x32a71f;this[_0x5299e6(0x12f)](this[_0x5299e6(0x172)][_0x5299e6(0x2a6)](_0x5ad1a2=>{const _0x4b555b=_0x5299e6;if(_0x5ad1a2['id']===G['id']){let {unitId:_0x349f36,subUnitId:_0x30dc16,drawingId:_0x6d6887}=_0x5ad1a2[_0x4b555b(0x1b7)];this[_0x4b555b(0x1c7)]+=0x1,this['_activeShapeInfo']=this[_0x4b555b(0x1a4)](_0x349f36,_0x30dc16,_0x6d6887),this[_0x4b555b(0x354)](void 0x0,!0x0),this[_0x4b555b(0x1cb)]();}if(_0x5ad1a2['id']===zi['id']&&(this[_0x4b555b(0x27b)]=null,this[_0x4b555b(0x310)]()),_0x5ad1a2['id']===_0x365039['id']){let {unitId:_0x320a35,shapeId:_0x40bbe7}=_0x5ad1a2[_0x4b555b(0x1b7)];if(this[_0x4b555b(0x27b)]&&this[_0x4b555b(0x27b)][_0x4b555b(0x174)]===_0x40bbe7){let _0x3a6566=this[_0x4b555b(0x1a4)](_0x320a35,this['_activeShapeInfo'][_0x4b555b(0x356)],_0x40bbe7);_0x3a6566&&(this[_0x4b555b(0x1c7)]+=0x1,_0x3a6566[_0x4b555b(0x2af)]=this[_0x4b555b(0x1c7)],this['_activeShapeInfo']=_0x3a6566,this['_isOpenedShapeEditPanel']&&this['_openShapeEditPanel']());}}})),this[_0x5299e6(0x12f)](this[_0x5299e6(0x2d2)][_0x5299e6(0x329)][_0x5299e6(0x25c)](_0x249f78=>{const _0x53cb8e=_0x5299e6;if(this[_0x53cb8e(0x21f)]===!0x1)return;if(_0x249f78[_0x53cb8e(0x1a1)]===0x0){this[_0x53cb8e(0x27b)]=null,this[_0x53cb8e(0x310)]();return;}if(_0x249f78['length']===0x1&&_0x249f78[0x0]['drawingType']===_0x27f24b[_0x53cb8e(0x10d)]&&(this[_0x53cb8e(0x1c7)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x249f78[0x0]['unitId'],_0x249f78[0x0][_0x53cb8e(0x356)],_0x249f78[0x0][_0x53cb8e(0x335)]),this['_activeShapeInfo'])){this[_0x53cb8e(0x1cb)]();return;}let _0x50941b=_0x249f78[_0x53cb8e(0x277)](_0x55a67a=>_0x55a67a[_0x53cb8e(0x32a)]===_0x27f24b[_0x53cb8e(0x10d)]);if(_0x249f78['length']>0x1&&_0x50941b[_0x53cb8e(0x1a1)]===_0x249f78[_0x53cb8e(0x1a1)]){if(this[_0x53cb8e(0x1c7)]+=0x1,this[_0x53cb8e(0x27b)]=this[_0x53cb8e(0x1a4)](_0x249f78[0x0][_0x53cb8e(0x2c4)],_0x249f78[0x0]['subUnitId'],_0x249f78[0x0][_0x53cb8e(0x335)]),this[_0x53cb8e(0x27b)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x53cb8e(0x1c7)]+=0x1,this[_0x53cb8e(0x27b)]=this[_0x53cb8e(0x1a4)](_0x249f78[0x0][_0x53cb8e(0x2c4)],_0x249f78[0x0][_0x53cb8e(0x356)],_0x249f78[0x0][_0x53cb8e(0x335)]),this[_0x53cb8e(0x27b)]){this['_activeShapeInfo'][_0x53cb8e(0x346)]=!0x0,this[_0x53cb8e(0x1cb)]();return;}}this['_closeShapeEditPanel']();}));}[_0x32a71f(0x1cb)](){const _0x464c3c=_0x32a71f;this[_0x464c3c(0x27b)]&&(this['_sidebarDisposable']=this[_0x464c3c(0x1d5)]['open']({'id':W,'header':{'title':this['_localeService']['t'](_0x464c3c(0x193))},'width':0x184,'children':{'label':W,...this['_activeShapeInfo']},'onClose':()=>{const _0x4ef8bb=_0x464c3c;this[_0x4ef8bb(0x2d2)][_0x4ef8bb(0x306)](null),this[_0x4ef8bb(0x10e)][_0x4ef8bb(0x242)](_0x2ec367,!0x1),this[_0x4ef8bb(0x1f7)]=null;}}),this[_0x464c3c(0x21f)]=!0x0);}['_closeShapeEditPanel'](){const _0x254044=_0x32a71f;this[_0x254044(0x21f)]=!0x1,this[_0x254044(0x1d5)][_0x254044(0x2cc)](W),this['_sidebarDisposable']=null,this[_0x254044(0x10e)][_0x254044(0x242)](_0x2ec367,!0x1),this['_drawingManagerService'][_0x254044(0x306)](null);}};Ma=q([K(0x0,_0x434573),K(0x1,_0x9fe2f5(_0xe1f947)),K(0x2,_0x5dfdbd),K(0x3,_0x9fe2f5(_0x184287)),K(0x4,_0x9fe2f5(_0x7eb730)),K(0x5,_0x4129fd),K(0x6,_0x543f62),K(0x7,_0x9fe2f5(_0x4f5bac)),K(0x8,_0x4ad11d),K(0x9,_0x2ee1da),K(0xa,_0x9fe2f5(Q)),K(0xb,_0x4929ce)],Ma);let Na=class extends _0x2c4c7f{constructor(_0x288653,_0xde60dc){const _0x226f7c=_0x32a71f;super(),this[_0x226f7c(0x1fa)]=_0x288653,this['_localeService']=_0xde60dc,this[_0x226f7c(0x12f)](_0x8215d0(_0x391145((_0x12258d,_0x16724e,_0x3a1772)=>this[_0x226f7c(0x2b9)](_0x12258d,_0x16724e,_0x3a1772))));}[_0x32a71f(0x2b9)](_0x342775,_0xcab5b2,_0x1f9dff){const _0xbf2db=_0x32a71f;let _0x4e0689=this['_docsShapeService'][_0xbf2db(0x31b)](_0x342775,_0xcab5b2);if(!_0x4e0689)return null;let _0xbd8bbf=_0x4e0689[_0xbf2db(0x1fd)](),_0x4a02ef=_0x45cef0(_0xbd8bbf),_0x40183a=_0xbd8bbf[_0xbf2db(0x209)];if(!_0x40183a||_0x4a02ef['autoFitType']!==_0xc8b38f[_0xbf2db(0x14e)])return null;let _0x1b07de=_0x1f9dff['fallbackWidth'],_0x5cb9bf=_0x1f9dff[_0xbf2db(0x1e9)];_0x4e0689['updateContext']({'width':_0x1b07de,'height':_0x5cb9bf});let _0x151bc2=_0x4e0689['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x1b07de,'height':_0x5cb9bf}),_0x2a6906=_0x50f618(_0xbf2db(0x170)in _0x40183a?_0x40183a[_0xbf2db(0x170)]:void 0x0),_0x3eab7b=(_0x2a6906==null?void 0x0:_0x2a6906[_0xbf2db(0x225)])??(_0xbf2db(0x24f)in _0x40183a?_0x53583b(_0x40183a,_0xcab5b2+_0xbf2db(0x2bf)):null);if(!_0x3eab7b)return null;let _0x3564c0=_0x1a341c({'documentData':_0x3eab7b,'height':_0x5cb9bf,'shapeData':_0xbd8bbf,'textRect':_0x151bc2,'width':_0x1b07de,'widthBuffer':0x0});_0x3564c0&&({width:_0x1b07de,height:_0x5cb9bf}=_0x3564c0,_0x4e0689[_0xbf2db(0x2c7)]({'width':_0x1b07de,'height':_0x5cb9bf}),_0x151bc2=_0x4e0689['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x1b07de,'height':_0x5cb9bf}));let _0x2c40d8=_0x40183a[_0xbf2db(0x212)]!==!0x1,_0x13f220=_0x927fd0(_0x3eab7b,{'isHorizontal':_0x2c40d8,'textRect':_0x151bc2,'verticalAlign':_0x2a6906==null?void 0x0:_0x2a6906['va'],'horizontalAlign':_0x2a6906==null?void 0x0:_0x2a6906['ha'],'wrapStrategy':_0x4fb842(_0xbd8bbf)}),_0x29767f=new _0x431d8e(_0x13f220),_0x4646fd=new _0x2d0ea1(_0x29767f),_0x348956=_0x4c3814[_0xbf2db(0x361)](_0x4646fd,this[_0xbf2db(0x210)]);try{var _0x5e91ea,_0x415725;_0x348956[_0xbf2db(0x171)]();let _0x6c1eed=((_0x5e91ea=_0x348956[_0xbf2db(0x130)]())==null?void 0x0:_0x5e91ea[_0xbf2db(0x2c0)])??[],_0x2e8630=_0x6c1eed[_0x6c1eed[_0xbf2db(0x1a1)]-0x1],_0x310110=_0x2e8630?Math[_0xbf2db(0x217)](0x0,((_0x415725=_0x37e0a3(_0x2e8630))==null?void 0x0:_0x415725[_0xbf2db(0x179)])??0x0):0x0,_0x1e5f36=_0x348956[_0xbf2db(0x285)]()['actualHeight']+_0x310110-(_0x2c40d8?_0x151bc2[_0xbf2db(0x17f)]:_0x151bc2['width']);return Number['isFinite'](_0x1e5f36)?_0x2c40d8?{'width':_0x1b07de,'height':Math[_0xbf2db(0x217)](0x1,_0x5cb9bf+_0x1e5f36)}:{'width':Math['max'](0x1,_0x1b07de+_0x1e5f36),'height':_0x5cb9bf}:null;}finally{_0x348956[_0xbf2db(0x10f)](),_0x4646fd[_0xbf2db(0x10f)](),_0x29767f[_0xbf2db(0x10f)]();}}};Na=q([K(0x0,_0x9fe2f5(_0x184287)),K(0x1,_0x9fe2f5(_0x7eb730))],Na);let Pa=class extends _0x1fd758{constructor(_0x26c3da=Vi,_0x191ce3,_0x1d8d31,_0x32b3a6,_0x3d6ac7){const _0x1a1e3a=_0x32a71f;super(),this[_0x1a1e3a(0x16b)]=_0x26c3da,this[_0x1a1e3a(0x2ca)]=_0x191ce3,this[_0x1a1e3a(0x172)]=_0x1d8d31,this[_0x1a1e3a(0x17c)]=_0x32b3a6,this[_0x1a1e3a(0x271)]=_0x3d6ac7;let {menu:_0x29d974,..._0x468c02}=_0x30c246({},Vi,this[_0x1a1e3a(0x16b)]);_0x29d974&&this['_configService'][_0x1a1e3a(0x1a6)](_0x1a1e3a(0x141),_0x29d974,{'merge':!0x0}),this[_0x1a1e3a(0x17c)][_0x1a1e3a(0x1a6)](Bi,_0x468c02),this[_0x1a1e3a(0x144)]();}[_0x32a71f(0x131)](){const _0x366276=_0x32a71f;_0x4b3c2e(this['_injector'],this[_0x366276(0x339)]()),this[_0x366276(0x2ca)]['get'](wa),this['_initUIPart']();}['_getDependencies'](){return[[wa],[Ma],[Sa],[$],[Yi],[qi],[J],[ia],[Na],[Q],[xa]];}[_0x32a71f(0x2e0)](){const _0x57a219=_0x32a71f;this[_0x57a219(0x14d)]()[_0x57a219(0x2f1)](_0x31bc7c=>{const _0x3f9cd8=_0x57a219;this[_0x3f9cd8(0x12f)](this['_renderManagerService'][_0x3f9cd8(0x253)](_0x5be7f7[_0x3f9cd8(0x1c0)],_0x31bc7c));}),_0xc0378d(this[_0x57a219(0x2ca)],[[Ma],[Sa],[$],[Yi],[J],[ia],[Na],[Q],[xa]]);}[_0x32a71f(0x14d)](){return[[qi],[ka],[ja],[Ta]];}[_0x32a71f(0x236)](){const _0x4ef4a1=_0x32a71f;this['disposeWithMe'](this[_0x4ef4a1(0x271)][_0x4ef4a1(0x253)](_0x5be7f7['UNIVER_DOC'],[Aa]));}[_0x32a71f(0x144)](){const _0x20ff0d=_0x32a71f;[U,zi,G,Nr,Fr,Ir][_0x20ff0d(0x2f1)](_0x135100=>this[_0x20ff0d(0x12f)](this[_0x20ff0d(0x172)]['registerCommand'](_0x135100)));}[_0x32a71f(0x298)](){const _0x27b44c=_0x32a71f;let _0x588515=this[_0x27b44c(0x2ca)],_0x54f9a2=_0x588515[_0x27b44c(0x2ee)](_0x4963d7);this[_0x27b44c(0x12f)](_0x54f9a2['registerComponent'](_0x10447e[_0x27b44c(0x21e)],()=>_0x126ef4(_a,_0x588515)));}};X(Pa,'type',_0x5be7f7['UNIVER_DOC']),X(Pa,_0x32a71f(0x2e4),_0x32a71f(0x35b)),X(Pa,_0x32a71f(0x1ec),Li),X(Pa,_0x32a71f(0x2af),Ri),Pa=q([_0x33e084(_0x210dd0,_0x528d37,_0x3d47f7,_0x3cac42,_0x15a661,_0x12a8a9,_0xba057e,_0x27a5fe,_0x32cb29,_0x1dfb76),K(0x1,_0x9fe2f5(_0x56b06a)),K(0x2,_0x4129fd),K(0x3,_0x5e645f),K(0x4,_0x4ad11d)],Pa);export{Ii as DocsShapeUIMenuSchema,Ca as UniverDocsShapeMobileUIPlugin,Pa as UniverDocsShapeUIPlugin};