@univerjs-pro/docs-shape-ui 1.0.0-rc.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +16 -0
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/controllers/components.controller.d.ts +5 -2
  63. package/lib/types/controllers/format-painter.controller.d.ts +10 -0
  64. package/lib/types/controllers/mobile/components.controller.d.ts +12 -0
  65. package/lib/types/controllers/mobile/ui.controller.d.ts +68 -0
  66. package/lib/types/controllers/ui.controller.d.ts +12 -1
  67. package/lib/types/index.d.ts +1 -0
  68. package/lib/types/locale/en-US.d.ts +5 -0
  69. package/lib/types/mobile-plugin.d.ts +17 -0
  70. package/lib/types/plugin.d.ts +4 -1
  71. package/lib/types/services/shape-layout.service.d.ts +9 -0
  72. package/lib/types/views/ShapePicker.d.ts +11 -1
  73. package/lib/types/views/mobile/ShapePicker.d.ts +4 -0
  74. package/lib/types/views/object-list-panel/DocDrawingObjectListPanel.d.ts +5 -1
  75. package/lib/types/views/object-list-panel/MobileDocDrawingObjectListPanel.d.ts +1 -0
  76. package/lib/types/views/shape-editor-panel/MobileDocShapeEditPanel.d.ts +17 -0
  77. package/lib/types/views/shape-editor-panel/ShapeEditorPanel.d.ts +4 -3
  78. package/lib/types/views/shape-floating-toolbar/DocsShapeMobileMenu.d.ts +13 -0
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +22 -19
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x41d120=_0x8115;(function(_0x447906,_0x1dbb41){const _0x24fa72=_0x8115,_0x66ed41=_0x447906();while(!![]){try{const _0x28a0df=-parseInt(_0x24fa72(0x2e0))/0x1+parseInt(_0x24fa72(0x2f8))/0x2*(parseInt(_0x24fa72(0x2df))/0x3)+-parseInt(_0x24fa72(0x1e1))/0x4+parseInt(_0x24fa72(0x2dd))/0x5+parseInt(_0x24fa72(0x2c0))/0x6+-parseInt(_0x24fa72(0x2a9))/0x7+-parseInt(_0x24fa72(0x2fd))/0x8*(-parseInt(_0x24fa72(0x229))/0x9);if(_0x28a0df===_0x1dbb41)break;else _0x66ed41['push'](_0x66ed41['shift']());}catch(_0x5c0d9f){_0x66ed41['push'](_0x66ed41['shift']());}}}(_0x1257,0x99c05));import{FormulaShapeAnimationController as _0x1471eb,SHAPE_CHANGE_PICKER_COMPONENT as _0xd2be98,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x45903d,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x148206,ShapeEditPanel as _0x125ba6,ShapeFloatingToolbar as _0x5ce32d,ShapeFloatingToolbarService as _0x32780b,ShapeFloatingToolbarToggleFactory as _0x67aef4,ShapeFormulaRibbonControl as _0x123823,ShapeGroupEnum as _0x20d46f,ShapePickerDropdown as _0xe7eab5,ShapePickerPanel as _0xa89292,ShapeQuickStyleGallery as _0xd60f0b,ShapeStyleRibbonControl as _0x1564d0,ShapeTextEditorContainer as _0x5e5b07,ShapeTextFloatMenuRenderControllerBase as _0x598e79,ShapeTextFloatToolbar as _0x2095d7,ShapeTextHyperLinkPopupService as _0xd7258d,ShapeTextRibbonControl as _0x5bbbed,ToggleShapeFloatingToolbarOperation as _0x4ed973,UniverShapeEditorUIPlugin as _0x2296aa,activateDrawingObject as _0x451eaf,bindRenderTransformerLifecycle as _0x4be971,buildShapeTextDataUpdate as _0x59eb77,clearActiveDrawingObjects as _0x3f648a,drawFormulaShapeAnimationLayers as _0x3e4fa2,getDrawingTypeNameKey as _0x5c67c8,getTextModel as _0x949d76,getTextStyle as _0x5a5c9c,normalizeShapeTextModel as _0x1a2c03,plainShapeTextToDocumentData as _0x603a35,prepareShapeTextDocumentData as _0x5b57e6,resolveFormulaShapeAutoFitSize as _0x6df263,resolveShapeContextualRibbonHostMode as _0x308562,resolveShapeTextDocumentRenderLayout as _0x16acdb,resolveShapeTextEditorBehaviorShapeData as _0x1f30bd,resolveShapeTextEditorWrapStrategy as _0x204fdb,shouldAllowShapeTextEditorHostSizeShrink as _0x238249,shouldClipShapeTextDocument as _0x208c24,useFormulaShapeToolbar as _0x15b7a6}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x537cca,DOC_CONTENT_INSERT_MENU_ID as _0x5360a1,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x1b38cd,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x1f36f4,DocCanvasPopManagerService as _0x561a66,DocEventManagerService as _0x476746,DocLayoutInteractionService as _0x5e8b0c,DocParagraphMenuService as _0x372580,DocPrintInterceptorService as _0x492542,DocRenderController as _0xba2b22,DocSelectionRenderService as _0x42e24b,EMPTY_PARAGRAPH_MENU_ID as _0x21201e,INSERT_BELLOW_MENU_ID as _0x1aad80,UniverDocsUIPlugin as _0x3c196d,VIEWPORT_KEY as _0x558dd9}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x2bd135,ComponentManager as _0x5c399d,ContextMenuGroup as _0x3286d2,ContextMenuPosition as _0x3dbbfe,FloatingObjectToolbarPosition as _0x123791,IMenuManagerService as _0x1c8406,IRibbonService as _0x192f31,ISidebarService as _0xd923e6,IUIPartsService as _0x860f6c,IconManager as _0x45ed7a,MenuItemType as _0x450aa9,MenuManagerPosition as _0x4d6b84,ObjectPermissionButton as _0x4bb7e4,RibbonInsertGroup as _0x482124,connectInjector as _0x2cb13f,getMenuHiddenObservable as _0x265bbd,useDependency as _0x39fb42,useObservable as _0x20a78f}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x49dd27,DEFAULT_DOC_SHAPE_WIDTH as _0x32c2b9,DocShapeAnchorPosition as _0xdbd4dc,DocsShapeService as _0x24791d,InsertDocShapeCommand as _0x38739c,UniverDocsShapePlugin as _0x40b485,UpdateDocDrawingMetadataCommand as _0x8a432e,UpdateDocShapeDataCommand as _0x192378,UpdateDocShapeDataMutation as _0x4aba9e}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x186244,ShapeArrowSizeEnum as _0x1cac7d,ShapeArrowTypeEnum as _0x2b912b,ShapeDefaultConfig as _0x4c8b25,ShapeFillEnum as _0x30544b,ShapeLineTypeEnum as _0x114837,ShapeModel as _0x487176,ShapeRenderModeEnum as _0x508f43,ShapeTypeEnum as _0x4d1c45,isConnectorShape as _0x5d2da3}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x2e4dd9,UniverShapeEditorPlugin as _0x452f87,applyQuickStyleToShapeData as _0x33d892,cloneShapeDataForType as _0x4618d8,createShapeFormulaDocument as _0x2bd38c,createShapeTextBoxShapeData as _0x18fc8d,getShapeQuickStylePreset as _0x560339,getShapeQuickStyleType as _0x6a2c26,resolveActiveShapeQuickStylePresetId as _0xf3b431}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x1fe04b,BooleanNumber as _0x68c01b,CommandType as _0x42c6dd,DependentOn as _0x4cacbc,Disposable as _0x551e8f,DisposableCollection as _0x1a6d15,DocumentDataModel as _0x396bb5,DrawingTypeEnum as _0x5c59f7,FOCUSING_COMMON_DRAWINGS as _0x48f297,FOCUSING_SHAPE_TEXT_EDITOR as _0x3cc1bc,HorizontalAlign as _0xf7193e,ICommandService as _0xa37c8c,IConfigService as _0x3c8a54,IContextService as _0x2c4674,IImageIoService as _0x39d4f5,IPermissionService as _0x51a150,IURLImageService as _0x59cbaa,IUniverInstanceService as _0x4e0d4e,Inject as _0x11aaeb,Injector as _0x1a3e30,LocaleService as _0x3bb114,Plugin as _0x5c29c6,PositionedObjectLayoutType as _0x522855,UniverInstanceType as _0x4d852a,VerticalAlign as _0x5221b7,createInternalEditorID as _0x4139ee,generateRandomId as _0x4f52c0,getParagraphContentStartOffset as _0x488913,merge as _0x30eda9,registerDependencies as _0x806294,toDisposable as _0x1c7696,touchDependencies as _0x570121}from'@univerjs/core';import{DocInterceptorService as _0x29730c,DocSelectionManagerService as _0x4f1043,RichTextEditingMutation as _0x1e24a4,SetDocumentPermissionCommand as _0x4dd521,UniverDocsPlugin as _0x5f54a6,canEditDocumentTargets as _0x510802,getDocumentDrawingSegmentId as _0x7077b2,getDocumentEntityParentPermissionObjectIds as _0x15ba16,getDocumentEntityPermissionObjectId as _0x459888}from'@univerjs/docs';import{IDocDrawingService as _0x166c7f,RemoveDocDrawingCommand as _0x4c1db7,SetDocDrawingArrangeCommand as _0x4223fb,TextWrappingStyle as _0xb4b4d4,UpdateDocDrawingWrappingStyleCommand as _0x28aae7,UpdateDrawingDocTransformCommand as _0x338c0a}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x27764a,Circle as _0x39f3c6,DRAWING_OBJECT_LAYER_INDEX as _0x1f8984,DocumentSkeleton as _0xde10ae,DocumentViewModel as _0x5c76d9,Documents as _0x4491f7,IRenderManagerService as _0x48f112,RENDER_CLASS_TYPE as _0x3d4b85,Shape as _0x469c75,Transform as _0x23c898,UniverRenderEnginePlugin as _0x29d9e5,Vector2 as _0x1f43bb}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4af33c,SetDrawingSelectedOperation as _0x206ec6,UniverDrawingPlugin as _0x22f91b,getDrawingShapeKeyByDrawingSearch as _0x1b0d92}from'@univerjs/drawing';import{DrawingCommonPanel as _0x42f982,DrawingImageClipService as _0xe8a123,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x21fc03,OBJECT_LIST_FLOATING_SECTION_ID as _0x1a1968,ObjectListPanelBase as _0x47f551,UniverDrawingUIPlugin as _0x4d4a79,getObjectListPanelLabels as _0x587bf8,getObjectListPanelSectionIdForDrawingType as _0x328935,getObjectListPanelTypeName as _0x10c420,insertGroupObject as _0x10e3b3}from'@univerjs/drawing-ui';import{Fragment as _0x5b7fbd,jsx as _0x570b01,jsxs as _0x9fc940}from'react/jsx-runtime';import{BehaviorSubject as _0x50c264,Observable as _0x4f1ccc,distinctUntilChanged as _0x2694e2,map as _0x2524ca,merge as _0x1ac5e2,startWith as _0x58e7eb}from'rxjs';import{UniverLicensePlugin as _0x52790b}from'@univerjs-pro/license';import{DocDrawingPosition as _0xd22301,DocDrawingTextWrap as _0x42f808,UniverDocsDrawingUIPlugin as _0x4c398b}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x466f15,MoveDownIcon as _0x379490,MoveUpIcon as _0x56d13f,ObjectLayersIcon as _0x358ce2,ShapeFormatSettingIcon as _0xc8ae6c,TextWrapShapeIcon as _0x17f44c,TopmostIcon as _0x222d2d}from'@univerjs/icons';import{UnitObject as _0x452dcf}from'@univerjs/protocol';import{memo as _0x58742e,useEffect as _0x4e899e,useMemo as _0x45f8a8,useReducer as _0x17c085,useState as _0x4603ae}from'react';function Kn(_0x4b4be4,_0x5b3bb2){const _0x4f9c7b=_0x8115;if(_0x5b3bb2){if(_0x5d2da3(_0x4b4be4)&&(_0x5b3bb2['startArrow']||_0x5b3bb2[_0x4f9c7b(0x377)]))return{'ln':{'startArrow':_0x5b3bb2[_0x4f9c7b(0x326)]?{'type':_0x2b912b[_0x4f9c7b(0x193)],'size':_0x1cac7d[_0x4f9c7b(0x248)]}:void 0x0,'endArrow':_0x5b3bb2['endArrow']?{'type':_0x2b912b[_0x4f9c7b(0x193)],'size':_0x1cac7d['Large']}:void 0x0}};if(_0x4b4be4===_0x4d1c45[_0x4f9c7b(0x236)]&&(_0x5b3bb2[_0x4f9c7b(0x1fc)]||_0x5b3bb2[_0x4f9c7b(0x34f)]))return _0x18fc8d({'fill':{'fillType':_0x30544b[_0x4f9c7b(0x279)],'color':_0x4f9c7b(0x1b0)},'isHorizontal':!!_0x5b3bb2[_0x4f9c7b(0x1fc)],'stroke':{'lineStrokeType':_0x114837['SolidLine'],'width':0x1,'color':_0x4f9c7b(0x319)}});}}function qn(_0xccbcf,_0x556cf5){const _0x5e5b8f=_0x8115;var _0x3ce4ce;let _0x152f97=_0x556cf5[_0x5e5b8f(0x30a)]??'',_0x4c22d1=(_0x3ce4ce=_0xccbcf[_0x5e5b8f(0x34d)](_0x152f97))==null?void 0x0:_0x3ce4ce[_0x5e5b8f(0x1f6)]();if(!_0x4c22d1)return null;let _0x4cc640=_0x4c22d1[_0x5e5b8f(0x1c7)]??[],_0x5c4c0b=_0x4cc640[_0x5e5b8f(0x241)](_0x461bd5=>{const _0x125c58=_0x5e5b8f;let _0x2303d2=_0x488913(_0x4c22d1,_0x461bd5);return _0x556cf5[_0x125c58(0x32f)]>=_0x2303d2&&_0x556cf5['startOffset']<=_0x461bd5[_0x125c58(0x1da)];})??_0x4cc640[_0x4cc640[_0x5e5b8f(0x28d)]-0x1];return _0x5c4c0b?{'paragraphId':_0x5c4c0b['paragraphId'],'segmentId':_0x152f97,'position':_0xdbd4dc[_0x5e5b8f(0x2ec)],'offset':_0x556cf5[_0x5e5b8f(0x32f)]-_0x488913(_0x4c22d1,_0x5c4c0b)}:null;}function Jn(_0x463ab8,_0x4d44fd,_0x5b6fb7){const _0x5c2cab=_0x8115;var _0x5b2f60,_0x26bf3b;if(!_0x5b6fb7)return null;let _0x35d711=(_0x5b2f60=_0x463ab8[_0x5c2cab(0x373)](_0x48f112)[_0x5c2cab(0x239)](_0x4d44fd))==null?void 0x0:_0x5b2f60[_0x5c2cab(0x327)](_0x372580)[_0x5c2cab(0x188)];if(!_0x35d711)return null;let _0x2bff3a=_0x5b6fb7===_0x5c2cab(0x186)?{'startOffset':_0x35d711[_0x5c2cab(0x23b)]['endOffset'],'endOffset':_0x35d711['moveRange'][_0x5c2cab(0x332)]}:_0x35d711['menuRange'];return{'startOffset':_0x2bff3a['startOffset'],'endOffset':_0x2bff3a[_0x5c2cab(0x332)],'collapsed':_0x2bff3a[_0x5c2cab(0x32f)]===_0x2bff3a[_0x5c2cab(0x332)],'segmentId':((_0x26bf3b=_0x35d711['paragraph'])==null?void 0x0:_0x26bf3b['segmentId'])??''};}const q={'type':_0x42c6dd[_0x41d120(0x271)],'id':_0x41d120(0x1aa),'handler':async(_0x434446,_0x3588b6)=>{const _0x5e06ee=_0x41d120;let _0x170b88=_0x434446[_0x5e06ee(0x373)](_0x4e0d4e)[_0x5e06ee(0x16d)](_0x4d852a[_0x5e06ee(0x2d7)]);if(!_0x170b88)return!0x1;let _0x29b248=_0x434446[_0x5e06ee(0x373)](_0xa37c8c),_0x40417c=_0x170b88[_0x5e06ee(0x170)](),_0x2e7556=_0x3588b6[_0x5e06ee(0x22d)]??_0x4f52c0(),_0x438960=_0x3588b6[_0x5e06ee(0x22f)]??_0x32c2b9,_0x16f1ff=_0x3588b6['height']??_0x49dd27,_0x2ac65d=_0x3588b6[_0x5e06ee(0x298)]??Kn(_0x3588b6[_0x5e06ee(0x255)],_0x3588b6[_0x5e06ee(0x28c)]),_0x5576b7=Jn(_0x434446,_0x40417c,_0x3588b6[_0x5e06ee(0x265)])??_0x434446[_0x5e06ee(0x373)](_0x4f1043)[_0x5e06ee(0x27b)]();if(!_0x5576b7)return!0x1;let _0x437d1c=qn(_0x170b88,_0x5576b7);return _0x437d1c?!!_0x29b248[_0x5e06ee(0x2f2)](_0x38739c['id'],{'unitId':_0x40417c,'shapeId':_0x2e7556,'shapeType':_0x3588b6['value'],'shapeData':_0x2ac65d,'transform':{'width':_0x438960,'height':_0x16f1ff},'placement':{'wrappingStyle':_0xb4b4d4[_0x5e06ee(0x34c)],'anchor':_0x437d1c}}):!0x1;}},Yn=_0x41d120(0x338),Xn=_0x41d120(0x20d),Zn='doc.shape.object-list.panel',Qn=_0x4139ee(_0x41d120(0x1b5)),$n=_0x41d120(0x278),er={'id':_0x41d120(0x252),'type':_0x42c6dd[_0x41d120(0x271)],'handler':(_0x27a922,_0x17cdfc)=>{const _0x3b7bc5=_0x41d120;let _0x51026a=_0x27a922['get'](_0xd923e6),_0x32d175=_0x27a922[_0x3b7bc5(0x373)](_0x3bb114),_0x4c8db6=_0x27a922[_0x3b7bc5(0x373)](_0x4af33c);return(_0x17cdfc==null?void 0x0:_0x17cdfc['value'])==='close'?(_0x51026a[_0x3b7bc5(0x301)](Zn),!0x0):(_0x51026a[_0x3b7bc5(0x1c8)]({'id':Zn,'header':{'title':_0x32d175['t'](_0x3b7bc5(0x17f))},'children':{'label':Zn},'onClose':()=>{_0x4c8db6['focusDrawing'](null);},'width':0x168}),!0x0);}},tr={'type':_0x42c6dd[_0x41d120(0x35e)],'id':_0x41d120(0x358),'handler'(){return!0x0;}};function nr(_0x2fd2ab){const _0x6e772c=_0x41d120;let _0x1fc6db=_0x2fd2ab[_0x6e772c(0x373)](_0x4af33c)['getFocusDrawings'](),_0x36afd9=_0x1fc6db[_0x6e772c(0x28d)]===0x1?_0x1fc6db[0x0]:null;if(!_0x36afd9||_0x36afd9[_0x6e772c(0x220)]!==_0x5c59f7[_0x6e772c(0x21f)])return null;let _0x3ef879=_0x2fd2ab[_0x6e772c(0x373)](_0x24791d),_0x78bb42=_0x3ef879['getShapeTypeById'](_0x36afd9[_0x6e772c(0x1a1)],_0x36afd9[_0x6e772c(0x168)],_0x36afd9[_0x6e772c(0x2e2)]),_0x407db7=_0x3ef879[_0x6e772c(0x16c)](_0x36afd9[_0x6e772c(0x1a1)],_0x36afd9[_0x6e772c(0x168)],_0x36afd9[_0x6e772c(0x2e2)]);return _0x78bb42===void 0x0||!_0x407db7?null:{'drawing':_0x36afd9,'shapeData':_0x407db7,'shapeType':_0x78bb42};}const rr={'id':_0x41d120(0x1c3),'type':_0x42c6dd[_0x41d120(0x35e)],'handler':(_0x5011ce,_0x1d6cd6)=>{const _0x2e4f57=_0x41d120;let _0x5efa24=nr(_0x5011ce),_0x2f0a3a=_0x560339((_0x1d6cd6==null?void 0x0:_0x1d6cd6[_0x2e4f57(0x1e7)])??(_0x1d6cd6==null?void 0x0:_0x1d6cd6[_0x2e4f57(0x255)])??'');if(!_0x5efa24||!_0x2f0a3a||_0x2f0a3a[_0x2e4f57(0x1ed)]!==_0x6a2c26(_0x5efa24['shapeData']))return!0x1;let _0x5be102=_0x33d892(_0x5efa24[_0x2e4f57(0x298)],_0x2f0a3a);if(!_0x5be102)return!0x1;let {drawing:_0x276cb0}=_0x5efa24;return _0x5011ce[_0x2e4f57(0x373)](_0xa37c8c)[_0x2e4f57(0x31c)](_0x192378['id'],{'unitId':_0x276cb0[_0x2e4f57(0x1a1)],'shapeId':_0x276cb0[_0x2e4f57(0x2e2)],'shapeData':_0x5be102,'oldShapeJSON':{'oldShapeData':_0x5efa24[_0x2e4f57(0x298)]}});}},ir={'id':'doc.operation.update-shape-type','type':_0x42c6dd[_0x41d120(0x35e)],'handler':(_0x1c4104,_0x33072f)=>{const _0x1e8da9=_0x41d120;let _0x2fe673=nr(_0x1c4104),_0x3a59a5=(_0x33072f==null?void 0x0:_0x33072f[_0x1e8da9(0x25d)])??(_0x33072f==null?void 0x0:_0x33072f[_0x1e8da9(0x255)]);if(!_0x2fe673||!_0x3a59a5||_0x5d2da3(_0x2fe673['shapeType'])||_0x5d2da3(_0x3a59a5))return!0x1;let _0x2dabd9=_0x4618d8(_0x2fe673[_0x1e8da9(0x298)],_0x3a59a5);if(!_0x2dabd9)return!0x1;let {drawing:_0x443f23}=_0x2fe673;return _0x1c4104[_0x1e8da9(0x373)](_0xa37c8c)[_0x1e8da9(0x31c)](_0x192378['id'],{'unitId':_0x443f23[_0x1e8da9(0x1a1)],'shapeId':_0x443f23[_0x1e8da9(0x2e2)],'shapeType':_0x3a59a5,'shapeData':_0x2dabd9,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2fe673[_0x1e8da9(0x25d)],'oldShapeData':_0x2fe673[_0x1e8da9(0x298)]}});}};function J(_0x3d31ac,_0x50da23){return function(_0x9eac97,_0x16d641){_0x50da23(_0x9eac97,_0x16d641,_0x3d31ac);};}function Y(_0x44a087,_0x58d026,_0x33547e,_0x44fe19){const _0xe41c60=_0x41d120;var _0x5a4c7d=arguments[_0xe41c60(0x28d)],_0x59b5c3=_0x5a4c7d<0x3?_0x58d026:_0x44fe19===null?_0x44fe19=Object[_0xe41c60(0x30d)](_0x58d026,_0x33547e):_0x44fe19,_0xe13e15;if(typeof Reflect==_0xe41c60(0x304)&&typeof Reflect[_0xe41c60(0x191)]==_0xe41c60(0x1d5))_0x59b5c3=Reflect[_0xe41c60(0x191)](_0x44a087,_0x58d026,_0x33547e,_0x44fe19);else{for(var _0x12358c=_0x44a087[_0xe41c60(0x28d)]-0x1;_0x12358c>=0x0;_0x12358c--)(_0xe13e15=_0x44a087[_0x12358c])&&(_0x59b5c3=(_0x5a4c7d<0x3?_0xe13e15(_0x59b5c3):_0x5a4c7d>0x3?_0xe13e15(_0x58d026,_0x33547e,_0x59b5c3):_0xe13e15(_0x58d026,_0x33547e))||_0x59b5c3);}return _0x5a4c7d>0x3&&_0x59b5c3&&Object['defineProperty'](_0x58d026,_0x33547e,_0x59b5c3),_0x59b5c3;}let ar=class extends _0x551e8f{constructor(_0x13f017,_0x1b2235){const _0x21d6b7=_0x41d120;super(),this['_clipService']=_0x13f017,this[_0x21d6b7(0x25e)]=_0x1b2235,this[_0x21d6b7(0x318)](),this[_0x21d6b7(0x36a)]['setCanUseShapeClip'](!0x0),this[_0x21d6b7(0x38b)]({'dispose':()=>this['_clipService'][_0x21d6b7(0x285)](!0x1)});}[_0x41d120(0x318)](){const _0x26832f=_0x41d120;let _0x364785=new Map(),_0x2a2aa4=this['_clipService'][_0x26832f(0x2bb)]((_0x41bb1c,_0x37635f,_0x42575e,_0x580ad6,_0x13586e)=>{const _0x3dd2b9=_0x26832f;let _0x4f31f3=_0x37635f;if(_0x4f31f3===_0x4d1c45[_0x3dd2b9(0x315)]||_0x37635f===_0x3dd2b9(0x17a))return!0x1;try{let _0x5dd613=_0x364785[_0x3dd2b9(0x373)](_0x37635f);return _0x5dd613||(_0x5dd613=new _0x487176(_0x4f31f3,'clip-'+_0x37635f),_0x364785[_0x3dd2b9(0x2b9)](_0x37635f,_0x5dd613)),_0x5dd613['clearAdjustValue'](),_0x13586e&&Object[_0x3dd2b9(0x15c)](_0x13586e)[_0x3dd2b9(0x28d)]>0x0&&_0x5dd613[_0x3dd2b9(0x2f0)]({'adjustValues':_0x13586e},!0x0),_0x5dd613[_0x3dd2b9(0x2d3)]({'width':_0x42575e,'height':_0x580ad6}),_0x5dd613[_0x3dd2b9(0x2a1)](_0x41bb1c,{'left':0x0,'top':0x0,'width':_0x42575e,'height':_0x580ad6});}catch{return!0x1;}});this[_0x26832f(0x38b)](_0x2a2aa4),this[_0x26832f(0x38b)]({'dispose':()=>_0x364785[_0x26832f(0x26e)]()});}[_0x41d120(0x203)](_0x2da7f6,_0x3d899c,_0x2c54f4,_0x36810f,_0x1ae5a1){const _0x468eee=_0x41d120;let _0x36d6e1=this['_drawingManagerService']['getDrawingData'](_0x2da7f6,_0x3d899c)[_0x2c54f4];!_0x36d6e1||_0x36d6e1[_0x468eee(0x220)]!==_0x5c59f7['DRAWING_IMAGE']||this[_0x468eee(0x25e)][_0x468eee(0x372)]([{..._0x36d6e1,'prstGeom':_0x36810f,'adjustValues':_0x1ae5a1}]);}};ar=Y([J(0x0,_0x11aaeb(_0xe8a123)),J(0x1,_0x11aaeb(_0x4af33c))],ar);const or=_0x41d120(0x169),sr=_0x41d120(0x206);function cr({onShapeClick:_0xdb5050,excludeGroups:_0x2fc22e}){const _0x3b2be1=_0x41d120;return _0x570b01(_0xa89292,{'excludeGroups':_0x2fc22e,'onShapeClick':_0xdb5050,'scrollContainer':_0x3b2be1(0x36f)});}function lr(){const _0x437421=_0x41d120;let _0x12d556=_0x39fb42(_0x4af33c),_0x733660=_0x39fb42(ar);return _0x570b01(_0xe7eab5,{'buttonLabel':_0x437421(0x352),'excludeGroups':[_0x20d46f[_0x437421(0x1f5)]],'onShapeClick':_0x566e28=>{const _0x3a38fd=_0x437421;let _0x59041d=_0x12d556[_0x3a38fd(0x2eb)]()['find'](_0x3c29aa=>_0x3c29aa[_0x3a38fd(0x220)]===_0x5c59f7[_0x3a38fd(0x299)]);if(!_0x59041d)return;let {unitId:_0x464d13,subUnitId:_0xd10eb2,drawingId:_0x45027e}=_0x59041d;_0x733660[_0x3a38fd(0x203)](_0x464d13,_0xd10eb2,_0x45027e,_0x566e28[_0x3a38fd(0x1ed)]);}});}function ur(){const _0x220b33=_0x41d120;let _0x11fcd3=_0x39fb42(_0x5c399d),_0x249b03=_0x39fb42(_0x4af33c),_0x6ac8ab=_0x39fb42(_0x4e0d4e),_0x4efe77=_0x249b03[_0x220b33(0x2eb)]()[0x0],_0x2b9b64=_0x4efe77?_0x6ac8ab['getUnitType'](_0x4efe77[_0x220b33(0x1a1)]):void 0x0,_0x2215ce=_0x2b9b64===_0x4d852a[_0x220b33(0x2d7)]?sr:_0x2b9b64===_0x4d852a[_0x220b33(0x274)]?'sheet.image-clip.shape-picker.component':void 0x0,_0x322e43=_0x2215ce?_0x11fcd3[_0x220b33(0x373)](_0x2215ce):void 0x0;return _0x322e43?_0x570b01(_0x322e43,{}):null;}function dr({paragraphMenuPlacement:_0x165275}){let _0x312710=_0x39fb42(_0xa37c8c);return _0x570b01(cr,{'onShapeClick':_0x12c3ab=>{const _0x4df9c6=_0x8115;_0x312710['executeCommand'](q['id'],{'paragraphMenuPlacement':_0x165275,'value':_0x12c3ab[_0x4df9c6(0x1ed)],'enhanceParams':{'endArrow':_0x12c3ab[_0x4df9c6(0x377)],'startArrow':_0x12c3ab[_0x4df9c6(0x326)],'horizontal':_0x12c3ab[_0x4df9c6(0x1fc)],'vertical':_0x12c3ab[_0x4df9c6(0x34f)]}});}});}function fr(_0x245835){const _0x2a3e69=_0x41d120;return _0x1a06e5=>({'id':q['id'],'type':_0x450aa9['SELECTOR'],'selections':[{'label':{'name':or,'hoverable':!0x1,'selectable':!0x1,'props':_0x245835?{'id':q['id'],'paragraphMenuPlacement':_0x245835}:{'id':q['id']}}}],'icon':_0x2a3e69(0x1e9),'title':'docs-shape-ui.insertShape','tooltip':'docs-shape-ui.insertShape','hidden$':_0x265bbd(_0x1a06e5,_0x4d852a['UNIVER_DOC'])});}const pr=fr(),mr=fr(_0x41d120(0x186)),hr=fr(_0x41d120(0x2c2));function gr(_0x5a30c5){const _0x3f2c39=_0x41d120;return{'id':er['id'],'type':_0x450aa9[_0x3f2c39(0x347)],'icon':_0x3f2c39(0x215),'title':_0x3f2c39(0x223),'tooltip':_0x3f2c39(0x223),'hidden$':_0x265bbd(_0x5a30c5,_0x4d852a['UNIVER_DOC'])};}function _r(_0x574ca6,_0x3aa65d,_0x337e81,_0x13cefa,_0x5dedbe,_0x311b38){const _0x40b784=_0x41d120;let _0x585987={'unitId':_0x3aa65d,'shapeId':_0x13cefa,'shapeData':_0x311b38,'oldShapeJSON':_0x5dedbe};return _0x574ca6[_0x40b784(0x31c)](_0x192378['id'],_0x585987);}function vr(_0x1f01c3,_0x2e7b0f,_0x357a58,_0x6fbadc,_0x39ebc8,_0x1f9cf5){const _0x10a818=_0x41d120;let _0x2aaf28={'unitId':_0x2e7b0f,'shapeId':_0x6fbadc,'shapeData':_0x1f9cf5,'oldShapeJSON':_0x39ebc8};return _0x1f01c3[_0x10a818(0x31c)](_0x192378['id'],_0x2aaf28);}const yr=_0x41d120(0x30f),br=_0x41d120(0x27c),xr='docs-shape-ui.shape-format.text-ribbon-control',Sr='docs-shape-ui.shape-format.formula-ribbon-control',Cr=_0x41d120(0x1df),wr=[{'value':_0xb4b4d4['INLINE'],'label':'docs-shape-ui.textWrap.inline','icon':_0x41d120(0x2ff)},{'value':_0xb4b4d4[_0x41d120(0x189)],'label':_0x41d120(0x2aa),'icon':'DocsShapeWrapSquareIcon'},{'value':_0xb4b4d4[_0x41d120(0x29c)],'label':_0x41d120(0x208),'icon':_0x41d120(0x2be)},{'value':_0xb4b4d4[_0x41d120(0x2b6)],'label':_0x41d120(0x1f4),'icon':_0x41d120(0x281)},{'value':_0xb4b4d4[_0x41d120(0x1db)],'label':'docs-shape-ui.textWrap.inFrontText','icon':_0x41d120(0x312)}];function Tr(){let _0x49052d=_0x39fb42(_0xa37c8c),_0x44c671=_0x39fb42(_0x4af33c),_0x86854e=_0x39fb42(_0x24791d),_0x2ac629=()=>{const _0x25beda=_0x8115;var _0x5c7662;let _0x199a7b=_0x44c671[_0x25beda(0x2eb)]();if(_0x199a7b[_0x25beda(0x28d)]!==0x1||((_0x5c7662=_0x199a7b[0x0])==null?void 0x0:_0x5c7662[_0x25beda(0x220)])!==_0x5c59f7[_0x25beda(0x21f)])return null;let {unitId:_0x1a3d98,subUnitId:_0x3c3d08,drawingId:_0x58e876}=_0x199a7b[0x0],_0x117d69=_0x86854e[_0x25beda(0x329)](_0x1a3d98,_0x3c3d08,_0x58e876),_0x44ff32=_0x86854e[_0x25beda(0x16c)](_0x1a3d98,_0x3c3d08,_0x58e876);return _0x117d69===void 0x0||!_0x44ff32?null:{'unitId':_0x1a3d98,'subUnitId':_0x3c3d08,'drawingId':_0x58e876,'shapeType':_0x117d69,'shapeData':_0x44ff32};},_0x2ef936=_0x20a78f(()=>new _0x4f1ccc(_0x578458=>{const _0x5402ee=_0x8115;let _0xd2239=()=>_0x578458[_0x5402ee(0x354)](_0x2ac629()),_0x137b24=_0x44c671[_0x5402ee(0x38c)][_0x5402ee(0x1f8)](_0xd2239),_0x42d753=_0x49052d[_0x5402ee(0x1ab)](_0x47f3f1=>{_0x47f3f1['id']===_0x4aba9e['id']&&_0xd2239();});return _0xd2239(),()=>{const _0x381ca4=_0x5402ee;_0x137b24[_0x381ca4(0x291)](),_0x42d753[_0x381ca4(0x35a)]();};}),_0x2ac629(),!0x1,[_0x49052d,_0x86854e,_0x44c671]);return{'selection':_0x2ef936,'updateShapeData':_0x2b34d9=>{const _0x1ec0bf=_0x8115;_0x2ef936&&_r(_0x49052d,_0x2ef936[_0x1ec0bf(0x1a1)],_0x2ef936['subUnitId'],_0x2ef936['drawingId'],{'oldShapeData':_0x2ef936[_0x1ec0bf(0x298)]},_0x2b34d9);}};}function Er(){const _0x9a42f7=_0x41d120;let {selection:_0x5811e2,updateShapeData:_0x123a46}=Tr();return _0x5811e2?_0x570b01(_0x1564d0,{'shapeData':_0x5811e2[_0x9a42f7(0x298)],'shapeType':_0x5811e2[_0x9a42f7(0x25d)],'onUpdateShapeData':_0x123a46}):null;}function Dr(){const _0x67b3b5=_0x41d120;let _0x1a8023=_0x39fb42(_0xa37c8c),_0x5b5006=_0x39fb42(_0x3bb114),{selection:_0x29cf00}=Tr();return _0x29cf00?_0x570b01(_0xd60f0b,{'type':_0x6a2c26(_0x29cf00['shapeData']),'ariaLabel':_0x5b5006['t'](_0x67b3b5(0x330)),'activePresetId':_0xf3b431(_0x29cf00[_0x67b3b5(0x298)]),'onSelect':_0x2a53f3=>_0x1a8023[_0x67b3b5(0x31c)](rr['id'],{'presetId':_0x2a53f3})}):null;}function Or(){const _0x283262=_0x41d120;let {selection:_0x4f18cf,updateShapeData:_0x44adc4}=Tr();return _0x4f18cf?_0x570b01(_0x5bbbed,{'fontFamilyPopupDataComponent':_0x283262(0x22e),'shapeData':_0x4f18cf[_0x283262(0x298)],'onUpdateShapeData':_0x44adc4}):null;}function kr(){const _0x49baf6=_0x41d120;var _0x31b77c;let {selection:_0xfa278c,updateShapeData:_0x1909fc}=Tr(),_0x13a816=_0x15b7a6({'hostType':_0x4d852a['UNIVER_DOC'],'unitId':(_0xfa278c==null?void 0x0:_0xfa278c[_0x49baf6(0x1a1)])??'','subUnitId':(_0xfa278c==null?void 0x0:_0xfa278c[_0x49baf6(0x168)])??'','shapeId':(_0xfa278c==null?void 0x0:_0xfa278c['drawingId'])??'','shapeData':_0xfa278c==null?void 0x0:_0xfa278c[_0x49baf6(0x298)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x49baf6(0x15f),'onUpdateBinding':_0x2c89cc=>_0x1909fc({'formulaBinding':_0x2c89cc})}),_0x27f3b7=((_0x31b77c=_0x13a816[_0x49baf6(0x1ae)])==null?void 0x0:_0x31b77c[_0x49baf6(0x1a3)](_0x7b6d81=>_0x7b6d81[_0x49baf6(0x341)])['filter'](_0x4bc5a6=>_0x4bc5a6[_0x49baf6(0x240)]!==!0x1))??[];return _0xfa278c!=null&&_0xfa278c[_0x49baf6(0x298)]['formulaBinding']?_0x570b01(_0x123823,{'actions':_0x27f3b7,'panel':_0x13a816[_0x49baf6(0x27f)]}):null;}function Ar({value:_0x45c77a}){const _0x3d9746=_0x41d120;let _0x9fc675=_0x39fb42(_0x3bb114),_0x555e54=wr[_0x3d9746(0x241)](_0x1bac7d=>_0x1bac7d[_0x3d9746(0x255)]===_0x45c77a)??wr[0x0];return _0x555e54?_0x570b01(_0x3d9746(0x1e0),{'children':_0x9fc675['t'](_0x555e54[_0x3d9746(0x178)])}):null;}const jr=_0x41d120(0x204),Mr='docs-shape-ui.ribbon.shape-format.text-control',Nr=_0x41d120(0x269),Pr=_0x41d120(0x261),Fr=_0x41d120(0x19f),Ir=_0x41d120(0x28b),Lr=_0x41d120(0x346),Rr=_0x41d120(0x250);function zr(_0x8370f6){const _0xd4aad9=_0x41d120;let _0x5b232d=_0x8370f6[_0xd4aad9(0x373)](_0xa37c8c),_0x5da7ba=_0x8370f6[_0xd4aad9(0x373)](_0x4af33c),_0x1d728f=_0x8370f6['get'](_0x24791d);return new _0x4f1ccc(_0x357cf2=>{const _0x43dbec=_0xd4aad9;let _0x1e7eb5=()=>{const _0x7214eb=_0x8115;let _0x104c2e=X(_0x8370f6),_0x2ff9e5=_0x104c2e?_0x1d728f['getShapeDataById'](_0x104c2e['unitId'],_0x104c2e[_0x7214eb(0x168)],_0x104c2e[_0x7214eb(0x2e2)]):null;_0x357cf2['next'](_0x2ff9e5?_0xf3b431(_0x2ff9e5)??'':'');},_0x456e2c=_0x5da7ba[_0x43dbec(0x38c)]['subscribe'](_0x1e7eb5),_0x1b8ace=_0x5b232d[_0x43dbec(0x1ab)](_0x335c0c=>{_0x335c0c['id']===_0x4aba9e['id']&&_0x1e7eb5();});return _0x1e7eb5(),()=>{const _0x2f780e=_0x43dbec;_0x456e2c[_0x2f780e(0x291)](),_0x1b8ace[_0x2f780e(0x35a)]();};});}function X(_0x2271ea){const _0x4ea683=_0x41d120;var _0x3385c2;let _0x118192=_0x2271ea[_0x4ea683(0x373)](_0x4af33c)[_0x4ea683(0x2eb)]();return _0x118192[_0x4ea683(0x28d)]===0x1&&((_0x3385c2=_0x118192[0x0])==null?void 0x0:_0x3385c2[_0x4ea683(0x220)])===_0x5c59f7[_0x4ea683(0x21f)]?_0x118192[0x0]:null;}function Br(_0x50ac1b){const _0x2449bd=_0x41d120;return(_0x50ac1b==null?void 0x0:_0x50ac1b[_0x2449bd(0x2e9)])===_0x522855[_0x2449bd(0x1e8)]?_0x50ac1b[_0x2449bd(0x277)]===_0x68c01b['TRUE']?_0xb4b4d4[_0x2449bd(0x2b6)]:_0xb4b4d4['IN_FRONT_OF_TEXT']:(_0x50ac1b==null?void 0x0:_0x50ac1b[_0x2449bd(0x2e9)])===_0x522855['WRAP_SQUARE']?_0xb4b4d4[_0x2449bd(0x189)]:(_0x50ac1b==null?void 0x0:_0x50ac1b[_0x2449bd(0x2e9)])===_0x522855['WRAP_TOP_AND_BOTTOM']?_0xb4b4d4[_0x2449bd(0x29c)]:_0xb4b4d4['INLINE'];}function Vr(_0x14b935){const _0x39264d=_0x41d120;let _0x13b611=_0x14b935[_0x39264d(0x373)](_0xa37c8c),_0x5321e6=_0x14b935[_0x39264d(0x373)](_0x4af33c),_0x6be74d=_0x14b935[_0x39264d(0x373)](_0x4e0d4e);return new _0x4f1ccc(_0x21df6e=>{const _0x46dca6=_0x39264d;let _0x12f6c0=()=>{const _0x424209=_0x8115;var _0x296883;let _0x44a4f3=X(_0x14b935),_0x4047dc=_0x44a4f3?_0x6be74d[_0x424209(0x2f6)](_0x44a4f3[_0x424209(0x1a1)],_0x4d852a[_0x424209(0x2d7)]):void 0x0;_0x21df6e[_0x424209(0x354)](Br(_0x44a4f3?_0x4047dc==null||(_0x296883=_0x4047dc['getSnapshot']()['drawings'])==null?void 0x0:_0x296883[_0x44a4f3['drawingId']]:void 0x0));},_0x1b6abc=_0x5321e6[_0x46dca6(0x38c)][_0x46dca6(0x1f8)](_0x12f6c0),_0x37004b=_0x13b611[_0x46dca6(0x1ab)](_0x5d848e=>{_0x5d848e['id']===_0x1e24a4['id']&&_0x12f6c0();});return _0x12f6c0(),()=>{const _0x3a528b=_0x46dca6;_0x1b6abc[_0x3a528b(0x291)](),_0x37004b['dispose']();};})[_0x39264d(0x24e)](_0x2694e2());}function Hr(_0x14fc20,_0x221d24=!0x1){const _0x4d15ff=_0x41d120;let _0x496901=_0x14fc20[_0x4d15ff(0x373)](_0xa37c8c),_0x3fa557=_0x14fc20[_0x4d15ff(0x373)](_0x4af33c),_0x12392b=_0x14fc20[_0x4d15ff(0x373)](_0x24791d);return new _0x4f1ccc(_0x180fc2=>{const _0x3e46cd=_0x4d15ff;let _0xd37c61=()=>{const _0x5a714d=_0x8115;let _0x2f1201=X(_0x14fc20);if(!_0x2f1201){_0x180fc2[_0x5a714d(0x354)](!0x0);return;}let _0x4d24d6=_0x12392b[_0x5a714d(0x16c)](_0x2f1201[_0x5a714d(0x1a1)],_0x2f1201['subUnitId'],_0x2f1201[_0x5a714d(0x2e2)]);_0x180fc2[_0x5a714d(0x354)](!_0x4d24d6||_0x221d24&&_0x4d24d6[_0x5a714d(0x306)]==null);},_0x32983b=_0x3fa557['focus$']['subscribe'](_0xd37c61),_0xd7fd6c=_0x496901[_0x3e46cd(0x1ab)](_0x31e8ad=>{_0x31e8ad['id']===_0x4aba9e['id']&&_0xd37c61();});return _0xd37c61(),()=>{_0x32983b['unsubscribe'](),_0xd7fd6c['dispose']();};});}function Ur(_0xba002a){const _0xa0e38=_0x41d120;let _0x1b80fe=_0xba002a[_0xa0e38(0x373)](_0x4af33c),_0x5f1811=_0xba002a[_0xa0e38(0x373)](_0x24791d);return _0x1b80fe['focus$'][_0xa0e38(0x24e)](_0x58e7eb(_0x1b80fe['getFocusDrawings']()),_0x2524ca(()=>{const _0xbb0d=_0xa0e38;let _0x1fd7fa=X(_0xba002a),_0x18bc73=_0x1fd7fa?_0x5f1811[_0xbb0d(0x329)](_0x1fd7fa[_0xbb0d(0x1a1)],_0x1fd7fa[_0xbb0d(0x168)],_0x1fd7fa[_0xbb0d(0x2e2)]):void 0x0;return _0x18bc73===void 0x0||_0x5d2da3(_0x18bc73);}));}function Wr(_0x1e345b){const _0x2da057=_0x41d120;return{'id':rr['id'],'type':_0x450aa9[_0x2da057(0x22c)],'icon':_0x2da057(0x1c5),'title':_0x2da057(0x2e6),'tooltip':_0x2da057(0x2e6),'selections':[{'label':{'name':yr,'hoverable':!0x1,'selectable':!0x1}}],'value$':zr(_0x1e345b),'hidden$':Hr(_0x1e345b)};}function Gr(_0x55eca1){const _0x1b1eac=_0x41d120;return{'id':ir['id'],'type':_0x450aa9[_0x1b1eac(0x22c)],'icon':_0x1b1eac(0x1e9),'title':'shape-editor-ui.toolbar.changeShape','tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0xd2be98,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Ur(_0x55eca1)};}function Kr(_0x46a1dd,_0x39a149,_0x1853c6=!0x1){const _0xd753b0=_0x41d120;return _0x2fec35=>({'id':_0x46a1dd,'type':_0x450aa9[_0xd753b0(0x347)],'label':{'name':_0x39a149,'hoverable':!0x1,'selectable':!0x1},'hidden$':Hr(_0x2fec35,_0x1853c6)});}const qr=Kr(jr,br),Jr=Kr(Mr,xr),Yr=Kr(Nr,Sr,!0x0);function Xr(_0x9441af){const _0x856640=_0x41d120;return{'id':Rr,'type':_0x450aa9[_0x856640(0x22c)],'icon':wr[0x0]['icon'],'label':Cr,'selectionsCommandId':_0x28aae7['id'],'selections':wr['map'](({icon:_0x8e882a,label:_0x5ac501,value:_0x3e91e3})=>({'value':_0x3e91e3,'label':_0x5ac501,'icon':_0x8e882a,'params':()=>{const _0x28a55f=_0x856640;let _0x584b87=X(_0x9441af);return _0x584b87?{'unitId':_0x584b87['unitId'],'subUnitId':_0x584b87['subUnitId'],'drawings':[{'unitId':_0x584b87[_0x28a55f(0x1a1)],'subUnitId':_0x584b87[_0x28a55f(0x168)],'drawingId':_0x584b87[_0x28a55f(0x2e2)]}],'wrappingStyle':_0x3e91e3}:void 0x0;}})),'value$':Vr(_0x9441af),'hidden$':Hr(_0x9441af)};}function Zr(_0x15099d,_0x4fb00a,_0x1a65f7,_0x9fbdbc){const _0x260287=_0x41d120;return _0x4df653=>({'id':_0x15099d,'commandId':_0x4223fb['id'],'type':_0x450aa9[_0x260287(0x347)],'icon':_0x1a65f7,'title':_0x9fbdbc,'tooltip':_0x9fbdbc,'hidden$':Hr(_0x4df653),'params':()=>{const _0xca6a15=_0x260287;let _0x350434=X(_0x4df653);return _0x350434?{'unitId':_0x350434[_0xca6a15(0x1a1)],'subUnitId':_0x350434[_0xca6a15(0x168)],'drawingIds':[_0x350434[_0xca6a15(0x2e2)]],'arrangeType':_0x4fb00a}:void 0x0;}});}const Qr=Zr(Pr,_0x1fe04b[_0x41d120(0x308)],_0x41d120(0x1d7),_0x41d120(0x2a4)),$r=Zr(Fr,_0x1fe04b[_0x41d120(0x26c)],_0x41d120(0x2d6),_0x41d120(0x362)),ei=Zr(Ir,_0x1fe04b[_0x41d120(0x2e1)],_0x41d120(0x23a),_0x41d120(0x344)),ti=Zr(Lr,_0x1fe04b['back'],_0x41d120(0x34a),'shape-editor-ui.arrange.back');function ni(_0x394f07){const _0xabf5f3=_0x41d120;return{'id':tr['id'],'type':_0x450aa9[_0xabf5f3(0x347)],'icon':_0xabf5f3(0x16b),'title':_0xabf5f3(0x367),'tooltip':_0xabf5f3(0x367),'hidden$':Hr(_0x394f07),'params':()=>{const _0x45f148=_0xabf5f3;let _0x59fe86=X(_0x394f07);return _0x59fe86?{'unitId':_0x59fe86[_0x45f148(0x1a1)],'subUnitId':_0x59fe86[_0x45f148(0x168)],'drawingId':_0x59fe86['drawingId']}:void 0x0;}};}const ri={[_0x4d6b84[_0x41d120(0x15d)]]:{[Xn]:{'order':0x64,'title':'docs-shape-ui.formatShape','contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[rr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Wr},[ir['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':Gr}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[jr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':qr}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[Mr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Jr}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Rr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':Xr},[Pr]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Qr},[Fr]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':$r},[Ir]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':ei},[Lr]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':ti}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[Nr]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Yr}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':ni},[_0x4ed973['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x67aef4}}}}},ii={[_0x482124[_0x41d120(0x296)]]:{[q['id']]:{'order':0x4,'menuItemFactory':_0x20fca5=>({...pr(_0x20fca5),'title':void 0x0})}},[_0x482124[_0x41d120(0x1a9)]]:{[er['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':gr}},[_0x3dbbfe[_0x41d120(0x238)]]:{[_0x3286d2[_0x41d120(0x2d4)]]:{[_0x1aad80]:{[q['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':mr}}},[_0x5360a1]:{[_0x3286d2[_0x41d120(0x2d4)]]:{[q['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':mr}}},[_0x21201e]:{[_0x3286d2[_0x41d120(0x2d4)]]:{[q['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':hr}}},[_0x1f36f4]:{'insert':{[q['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':pr}}},[_0x1b38cd]:{'insert':{[q['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':mr}}}}};var ai=_0x41d120(0x163),oi=_0x41d120(0x1f1);const si={'type':_0x42c6dd['OPERATION'],'id':_0x41d120(0x1cb),'handler'(){return!0x0;}},ci={};function li(_0x56d501){return _0x56d501['trim']()||void 0x0;}function ui(_0x9951bd,_0x27e80a,_0x2f6d06){const _0x43f2b4=_0x41d120;var _0x3fa3c3,_0x3cf84d;return((_0x3fa3c3=_0x9951bd[_0x43f2b4(0x35d)])==null?void 0x0:_0x3fa3c3[_0x43f2b4(0x259)]())||((_0x3cf84d=_0x9951bd['title'])==null?void 0x0:_0x3cf84d['trim']())||_0x10c420(_0x2f6d06,_0x5c67c8(_0x9951bd[_0x43f2b4(0x220)]))+'\x20'+(_0x27e80a+0x1);}function di(){const _0x1c84c7=_0x41d120;let _0x588151=_0x39fb42(_0x3bb114),_0x2a8b56=_0x39fb42(_0xa37c8c),_0x50b86a=_0x39fb42(_0x4e0d4e),_0x52f272=_0x39fb42(_0x166c7f),_0xe641ef=_0x39fb42(_0x4af33c),_0x498116=_0x39fb42(_0x48f112),[,_0x527b02]=_0x17c085(_0x3cd8ed=>_0x3cd8ed+0x1,0x0),_0x2f098e=_0x50b86a[_0x1c84c7(0x16d)](_0x4d852a[_0x1c84c7(0x2d7)]),_0x42f88e=(_0x2f098e==null?void 0x0:_0x2f098e[_0x1c84c7(0x170)]())??'',_0x12c38b=_0x42f88e,_0x44a616=_0x20a78f(()=>_0xe641ef[_0x1c84c7(0x38c)],_0xe641ef[_0x1c84c7(0x2eb)](),!0x1,[_0xe641ef]);_0x4e899e(()=>{const _0x566d46=_0x1c84c7;let _0x56d532=_0x2a8b56[_0x566d46(0x1ab)](()=>_0x527b02());return()=>_0x56d532[_0x566d46(0x35a)]();},[_0x2a8b56]);let _0x15d142=_0x45f8a8(()=>_0x587bf8(_0x588151),[_0x588151]),_0x33e3a5=_0x42f88e?_0x52f272['getDrawingData'](_0x42f88e,_0x12c38b):{},_0x4eb589=(_0x42f88e?_0x52f272[_0x1c84c7(0x20f)](_0x42f88e,_0x12c38b):[])['map'](_0x4b3c18=>_0x33e3a5[_0x4b3c18])[_0x1c84c7(0x209)](_0x13a22b=>!!_0x13a22b)[_0x1c84c7(0x1d8)](),_0x385d14=_0x4eb589['reduce']((_0x4203ce,_0x4cdd68)=>(_0x4203ce[_0x328935(_0x4cdd68[_0x1c84c7(0x220)])]+=0x1,_0x4203ce),{'canvas':0x0,'floating':0x0}),_0x42dc97={'canvas':0x0,'floating':0x0},_0x34dd03=_0x4eb589[_0x1c84c7(0x1ca)]((_0x5d00dd,_0x18f564)=>{const _0x433fe0=_0x1c84c7;let _0x1c8200=_0x328935(_0x5d00dd[_0x433fe0(0x220)]),_0x3ead9a=_0x1c8200===_0x1a1968,_0x448e2b=_0x42dc97[_0x1c8200]++;return{'id':_0x5d00dd['drawingId'],'name':ui(_0x5d00dd,_0x18f564,_0x588151),'description':_0x5d00dd[_0x433fe0(0x217)],'visible':_0x5d00dd[_0x433fe0(0x1e4)]!==!0x0,'selectable':_0x5d00dd[_0x433fe0(0x307)]!==!0x1,'sectionId':_0x1c8200,'sectionTitle':_0x3ead9a?_0x15d142[_0x433fe0(0x2a8)]:_0x15d142[_0x433fe0(0x246)],'capabilities':_0x3ead9a?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3ead9a&&_0x448e2b>0x0,'canMoveBackward':!_0x3ead9a&&_0x448e2b<_0x385d14['canvas']-0x1,'canReorder':!_0x3ead9a};}),_0x44f818=_0x45f8a8(()=>(_0x44a616??[])[_0x1c84c7(0x209)](_0x1cc1bf=>_0x1cc1bf[_0x1c84c7(0x1a1)]===_0x42f88e&&_0x1cc1bf['subUnitId']===_0x12c38b)[_0x1c84c7(0x1ca)](_0x1a94ec=>_0x1a94ec[_0x1c84c7(0x2e2)]),[_0x44a616,_0x12c38b,_0x42f88e]),_0x505e5d=_0x44f818[_0x44f818['length']-0x1]??null,_0x505b48=_0x3d3a9b=>_0x52f272[_0x1c84c7(0x214)]({'unitId':_0x42f88e,'subUnitId':_0x12c38b,'drawingId':_0x3d3a9b})??null,_0x1805ea=async _0x135c64=>{!_0x42f88e||!_0x135c64['length']||await _0x2a8b56['executeCommand'](_0x8a432e['id'],{'unitId':_0x42f88e,'patches':_0x135c64});},_0x2fff65=(_0x3a8a93,_0x507144)=>{const _0x14176b=_0x1c84c7;if(!_0x42f88e)return;let _0x1a3071=_0x507144?_0x44f818['includes'](_0x3a8a93)?_0x44f818[_0x14176b(0x209)](_0x9bcfb0=>_0x9bcfb0!==_0x3a8a93):[..._0x44f818,_0x3a8a93]:[_0x3a8a93];_0x2a8b56[_0x14176b(0x2f2)](_0x206ec6['id'],_0x1a3071['map'](_0x11dd57=>({'unitId':_0x42f88e,'subUnitId':_0x12c38b,'drawingId':_0x11dd57})));let _0x395a22=_0x1a3071[_0x1a3071[_0x14176b(0x28d)]-0x1];_0x395a22?_0x451eaf(_0x498116,{'unitId':_0x42f88e,'subUnitId':_0x12c38b,'drawingId':_0x395a22}):_0x3f648a(_0x498116,_0x42f88e);},_0x162b6e=async(_0x30b288,_0x16240c)=>{const _0x2c36ce=_0x1c84c7;await _0x1805ea(_0x30b288[_0x2c36ce(0x1ca)](_0x43c62f=>_0x505b48(_0x43c62f))[_0x2c36ce(0x209)](_0x1d8e12=>!!_0x1d8e12)[_0x2c36ce(0x209)](_0x13b011=>_0x13b011[_0x2c36ce(0x1e4)]!==!0x0!==_0x16240c)[_0x2c36ce(0x1ca)](_0x5e1dfc=>({'drawingId':_0x5e1dfc[_0x2c36ce(0x2e2)],'hidden':!_0x16240c})));},_0x311084=async(_0x2c67fb,_0x2e1e50)=>{const _0x535166=_0x1c84c7;await _0x1805ea(_0x2c67fb[_0x535166(0x1ca)](_0x824eb6=>_0x505b48(_0x824eb6))['filter'](_0x562025=>!!_0x562025)['filter'](_0x2f7782=>_0x2f7782[_0x535166(0x307)]!==!0x1!==_0x2e1e50)['map'](_0x5d4a87=>({'drawingId':_0x5d4a87[_0x535166(0x2e2)],'selectable':_0x2e1e50})));},_0x1e5cf0=_0x4a2468=>{const _0x4d975d=_0x1c84c7;let _0x35740d=_0x505b48(_0x4a2468);if(_0x35740d)return _0x311084([_0x4a2468],_0x35740d[_0x4d975d(0x307)]===!0x1);},_0x3326ca=async(_0x81d6da,_0x439ed3)=>{let _0xc7a416=_0x505b48(_0x81d6da),_0x72a9ff=li(_0x439ed3);!_0xc7a416||(_0xc7a416['name']??void 0x0)===_0x72a9ff&&(_0xc7a416['title']||void 0x0)===_0x72a9ff||await _0x1805ea([{'drawingId':_0x81d6da,'name':_0x72a9ff,'title':_0x72a9ff}]);},_0x3fddf8=async(_0x25be78,_0x57afa6)=>{const _0xdc5469=_0x1c84c7;let _0x253f0e=_0x505b48(_0x25be78),_0x490189=li(_0x57afa6);!_0x253f0e||(_0x253f0e[_0xdc5469(0x217)]??void 0x0)===_0x490189||await _0x1805ea([{'drawingId':_0x25be78,'description':_0x490189}]);},_0x276841=async(_0x49970a,_0x40d20e)=>{const _0x2cd810=_0x1c84c7;_0x42f88e&&await _0x2a8b56[_0x2cd810(0x31c)](_0x4223fb['id'],{'unitId':_0x42f88e,'subUnitId':_0x12c38b,'drawingIds':[_0x49970a],'arrangeType':_0x40d20e});};return _0x42f88e?_0x570b01(_0x47f551,{'renderPermissionAction':_0x2340ea=>_0x2f098e?_0x570b01(_0x4bb7e4,{'target':{'unitId':_0x42f88e,'objectId':_0x459888(_0x7077b2(_0x2f098e,_0x2340ea['id']),_0x1c84c7(0x2a6),_0x2340ea['id']),'objectType':_0x452dcf['DocumentEntity']},'name':_0x2340ea[_0x1c84c7(0x35d)],'commandId':_0x4dd521['id'],'exists':()=>!!_0x505b48(_0x2340ea['id'])},_0x42f88e+'/'+_0x2340ea['id']):null,'items':_0x34dd03,'selectedIds':_0x44f818,'focusedId':_0x505e5d,'labels':_0x15d142,'showHeader':!0x1,'onSelect':_0x2fff65,'onSetVisible':_0x162b6e,'onSetSelectable':_0x311084,'onCommitName':_0x3326ca,'onCommitDescription':_0x3fddf8,'onMoveForward':async _0x52bb99=>_0x276841(_0x52bb99,_0x1fe04b[_0x1c84c7(0x308)]),'onMoveBackward':async _0x5dcc6f=>_0x276841(_0x5dcc6f,_0x1fe04b[_0x1c84c7(0x26c)]),'onToggleSelectable':_0x1e5cf0}):_0x570b01(_0x1c84c7(0x242),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x15d142[_0x1c84c7(0x331)]});}let fi=class{constructor(_0x2a2318){const _0x4998a7=_0x41d120;this[_0x4998a7(0x364)]=_0x2a2318;}['updateShapeFillImage'](_0xa0d220,_0x39016e){const _0x54c730=_0x41d120;let _0x1f9915=this[_0x54c730(0x364)]['getRenderUnitById'](_0xa0d220[_0x54c730(0x1a1)]),_0x1beca3=_0x1f9915==null?void 0x0:_0x1f9915['scene'];if(!_0x1beca3)return;let _0x3bddf0=_0x1b0d92(_0xa0d220),_0x7a7256=_0x1beca3[_0x54c730(0x173)](_0x3bddf0);_0x7a7256==null||_0x7a7256[_0x54c730(0x1ce)](_0x39016e);}};fi=Y([J(0x0,_0x48f112)],fi);function pi(){const _0xc7ef91=_0x41d120;let _0x26bec1=_0x39fb42(_0x4af33c),_0x5ae777=_0x20a78f(()=>_0x26bec1[_0xc7ef91(0x38c)],_0x26bec1[_0xc7ef91(0x2eb)](),!0x1,[_0x26bec1]);return _0x5ae777[_0xc7ef91(0x28d)]===0x0?null:_0x570b01(_0xc7ef91(0x242),{'children':_0x9fc940(_0xc7ef91(0x242),{'className':_0xc7ef91(0x303),'children':[_0x570b01(_0x42f982,{'drawings':_0x5ae777,'hasCropper':!0x1}),_0x570b01(_0x42f808,{'drawings':_0x5ae777}),_0x570b01(_0xd22301,{'drawings':_0x5ae777})]})});}function mi(_0x9ddb4b){let {unitId:_0x38475f,subUnitId:_0x5ea8f3,shapeId:_0x12364b}=_0x9ddb4b,_0x128552=_0x39fb42(_0xa37c8c),_0xc13f1=_0x39fb42(fi);return _0x570b01(_0x125ba6,{..._0x9ddb4b,'positionEditor':_0x570b01(pi,{}),'onUpdateShapeData':(_0x10b21c,_0x211a26)=>{_r(_0x128552,_0x38475f,_0x5ea8f3,_0x12364b,_0x10b21c,_0x211a26);},'onUpdateLineShapeData':(_0x1fe842,_0x42a8b1)=>{vr(_0x128552,_0x38475f,_0x5ea8f3,_0x12364b,_0x1fe842,_0x42a8b1);},'onUpdateShapeFillImage':_0x388a93=>{const _0x59797a=_0x8115;_0xc13f1[_0x59797a(0x267)]({'unitId':_0x38475f,'subUnitId':_0x5ea8f3,'drawingId':_0x12364b},_0x388a93);}});}const hi=_0x41d120(0x175);function gi(_0x34c9bf,_0x14892a){const _0x44cb0b=_0x41d120;var _0x5aa7bc;let _0x442798=_0x34c9bf==null||(_0x5aa7bc=_0x34c9bf['getSnapshot']()[_0x44cb0b(0x322)])==null?void 0x0:_0x5aa7bc[_0x14892a];return _0x442798?_0x442798[_0x44cb0b(0x2e9)]===_0x522855[_0x44cb0b(0x1e8)]?_0x442798[_0x44cb0b(0x277)]===_0x68c01b[_0x44cb0b(0x361)]?_0xb4b4d4[_0x44cb0b(0x2b6)]:_0xb4b4d4['IN_FRONT_OF_TEXT']:_0x442798['layoutType']===_0x522855['WRAP_SQUARE']?_0xb4b4d4[_0x44cb0b(0x189)]:_0x442798[_0x44cb0b(0x2e9)]===_0x522855['WRAP_TOP_AND_BOTTOM']?_0xb4b4d4[_0x44cb0b(0x29c)]:_0xb4b4d4[_0x44cb0b(0x34c)]:_0xb4b4d4['INLINE'];}function _0x1257(){const _0x39eb1f=['_baseShapeWidth','docs-shape-ui.textWrap.topAndBottom','filter','_openShapeEditPanel','translateWithPrecision','getMatrix','docs-shape-ui.ribbon.shape-format','popup','getDrawingOrder','adjHandleSize','asObservable','headerId','drawWith','getDrawingByParam','ObjectLayersIcon','sin','description','_registerComponents','scene','clipTop','_iconManager','getImage','_configService','_releaseRenderCache','DRAWING_SHAPE','drawingType','_registerIcons','setFallbackVisible','docs-shape-ui.objectListPanel.open','default','onTransformChange$','refreshFormulaPresentation','getUnitType','_popupMenuListener','1994229gmhgXh','isLineShape','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','SELECTOR','shapeId','docs-shape-format-font-family-menu','width','addImageSourceCache','draw','changeEnd$','_shapeTextEditingService','animationEnabled','_lastEditingShapeKey','Rect','getPageDrawingIds','PARAGRAPH','getRenderUnitById','TopmostIcon','moveRange','_drawRichTextLayer','createControl$','beginInteraction','restore','visible','find','div','DocsShapeTextEditorContainer','getParent','canDispose','sectionCanvas','setFormulaPresentation','Medium','_drawingType','_setTransForm','_getFocusedShapeAtPoint','contentVerticalOffset','shapeText','pipe','visible$','docs-shape-ui.ribbon.shape-format.wrapping-style','behindText','doc.operation.open-shape-object-list-panel','docs-shape-ui.textWrap.inline','setPresentation','value','skeFooters','isHit','version','trim','register','_initialize','setPrstGeom','shapeType','_drawingManagerService','_formulaShapes','menu','docs-shape-ui.ribbon.shape-format.arrange-forward','_renderWithCache','docs-shape-ui.config','transformByState','paragraphMenuPlacement','animateFormulaPresentation','updateShapeFillImage','svg','docs-shape-ui.ribbon.shape-format.formula-control','onPointerDown$','offsetY','backward','PictureFill','clear','focusDrawing','clip','COMMAND','_createShapeAdjustControls','getActiveViewportByCoord','UNIVER_SHEET','entries','isEditing','behindDoc','doc.shape.text.float-menu','SolidFill','_props','getActiveTextRange','docs-shape-ui.shape-format.style-ribbon-control','isRenderLinePointsMode','changeStart$','panel','flipX','DocsShapeWrapBehindTextIcon','0.14','onDblclick$','stopPropagation','setCanUseShapeClip','dataModel','top','getSkeletonData','renderDrawingShape','_toScenePoint','docs-shape-ui.ribbon.shape-format.arrange-front','enhanceParams','length','top-bottom','update$','_getActiveDrawingShape','unsubscribe','_permissionService','prstGeom','getAdjustInfoByName','_transformCalculateSrcRect','MEDIA','docs-shape-ui.deleteShape','shapeData','DRAWING_IMAGE','intercept','_baseShapeHeight','WRAP_TOP_AND_BOTTOM','symbol','interceptor','transformVector2SceneCoord','fill','buildClipPath','subscribeEvent','_drawSimpleText','shape-editor-ui.arrange.forward','getPresentation','drawing','isRichText','sectionFloating','5990061FqfLHa','docs-shape-ui.textWrap.square','setEditing','_addShapeAdjustControl','_docsShapeService','fontSize','rows','_initCommands','_adjustPointObjects','clipHeight','getShapeModel','presentation','_univerInstanceService','BEHIND_TEXT','_initEditingParams','_drawRichText','set','_sidebarDisposable','registerClipDelegate','1em','_initUIPart','DocsShapeWrapTopBottomIcon','adjName','6934524qLDRrN','_initPrinting','target','isHorizontal','currentColor','_docLayoutInteractionService','_getDisposePopups','0.8','has','refreshShapeFillImage','strokeWidth','fillImageSourceType','_shapeFloatingToolbarService','gradientEndColor','disableObjectsEvent','getShapeTextData','_draw','adjHandleFill','unregister','updateContext','LAYOUT','getAutoFitPresentations','MoveDownIcon','UNIVER_DOC','_updateAdjustControlPositions','_unitId','getEditing','docs-shape-ui.hidePanel','_attachAdjustEvent','2278275mxUKmB','onRendered','3vsJpMM','638809pZYZXE','front','drawingId','doc','_registerOperations','DOCS_SHAPE_UI_PLUGIN','shape-editor-ui.toolbar.quickStyles','5.5','getActualSize','layoutType','getRealBound','getFocusDrawings','OFFSET','transform','data','adjHandleStroke','setShapeData','_getShapeInfo','syncExecuteCommand','_sidebarService','string','push','getUnit','remove$','1443496UhDcWN','getDrawingPoints','_shapeEditPanelVersion','_imageIoService','translate','32HFAjgX','isDrawingObject','DocsShapeWrapInlineIcon','cancelEditing','close','_clearCompletionFrame','univer-box-border\x20univer-px-4\x20univer-text-sm','object','cells','formulaBinding','selectable','forward','_editingParams$','segmentId','_toVisualAdjustPoint','size','getOwnPropertyDescriptor','_getSceneByUnitId','docs-shape-ui.shape-format.quick-style-gallery','Image','_activeShapeId','DocsShapeWrapInFrontOfTextIcon','pageWidth','_menuManagerService','None','_applyFormulaAutoFitSize','_activeShapeAdjustPointList','_registerImageShapeClipDelegate','#2563EB','pages','flipY','executeCommand','_handleCreateControl','_baseShapeLeft','left','getInverseCoord','onPointerUp$','drawings','calculate','pick','_context','startArrow','with','_shapeRenderController','getShapeTypeById','URL','_baseShapeTop','round','setShapeProps','VIEW_MAIN','startOffset','docs-shape-ui.quickStyles','title','endOffset','1.2','_disposePopupsByUnit','isolated','_clearShapeAdjustControls','changing$','doc.shape.edit.panel','render','_isShouldShowDrawingShapeAdjust','isInGroup','_init','editingParams$','setConfig','_registerDrawingTransformHandler','error','actions','fillType','_canEditShape','shape-editor-ui.arrange.front','packageName','docs-shape-ui.ribbon.shape-format.arrange-back','BUTTON','onStarting','create','BottomIcon','_localeService','INLINE','getSelfOrHeaderFooterModel','getTransformerByCreate','vertical','DRAWING_DOM','_updateShapeAdjustControls','docs-shape-ui.crop.shape','permissionPointUpdate$','next','getSelectedObjectMap','delete','onload','doc.operation.open-doc-shape-format-panel','clone','dispose','values','forEach','name','OPERATION','_refreshShapeData','_isOpenedShapeEditPanel','TRUE','shape-editor-ui.arrange.backward','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','_renderManagerService','setContextValue','_closeShapeEditPanel','docs-shape-ui.formatShape','_popupTargetKeys','UUID','_clipService','LEFT','ancestorTransform','getViewports','canvasElement','parent','isRender','currentAdjustValues','featurePluginUpdateNotification','get','_updateShape','registerCommand','_config','endArrow','footerId','oKey','vertical-center','_componentManager','angle','offsetX','getImageSourceCache','_activeShapeInfo','_shapeId','contentHeight','getShapeData','enableObjectsEvent','onPointerMove$','resize','_injector','objects','complete','add','src','disposeWithMe','focus$','shapeKey','wrapStrategy','registerRenderModule','_getActiveDrawingParam','_initMenu','_activeShapeModel','shapeModel','square','keys','RIBBON','_initEvents','bottom','marginTop','composeMatrix','_update','@univerjs-pro/docs-shape-ui','transformForAngle','_loadAndSetImage','presentationChanged$','0\x200\x2020\x2020','subUnitId','doc.shape.picker.component','_instanceService','ShapeFormatSettingIcon','getShapeDataById','getCurrentUnitOfType','engine','setSrcRect','getUnitId','_initSelection','fontFamily','getObjectIncludeInGroup','calcAdjValues','doc.shape.floating-toolbar','_insertShapes','shape-text-','label','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','custom','_getShapeAdjustInfosById','beginPath','_contextService','resetCursor','docs-shape-ui.objectListPanel.title','isMainScene','_hide','getDrawingDataForUnit','height','SHAPE','formulaPresentation','below','attachPopupToObject','activeTarget','WRAP_SQUARE','_formulaAnimation','indexOf','_adjName','_docCanvasPopManagerService','true','_completionFrame','FromArray','decorate','_clearPopups','Arrow','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','getShapeType','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','refreshAdjustControls','docs-shape-contextual-ribbon','GROUP','attachTransformerTo','doc-shape-adjust-point-','_isStartAdjusting','some','save','docs-shape-ui.ribbon.shape-format.arrange-backward','TOP','unitId','classType','flatMap','_shapeFormulaService','_loadShapePictureFill','localeService','_formulaKey','_adjHandlerPointerMove','OTHERS','doc.command.menu-insert-shape','onCommandExecuted','completeEditing','_ribbonService','extensionGroups','constructor','#3B82F6','behind','_onSavingEditorData$','Path','mergeMenu','SHAPE_TEXT','M2\x203h16M2\x2017h16','warn','getDrawingSearch','none','onReady','inline','applyPoint','registerComponent','_adjHandlerPointerUp','getVisible','fillImageSource','clearAdjustControls','_activeAdjustInfo','doc.operation.apply-shape-quick-style','skeHeaders','PaintIcon','getValue','paragraphs','open','_visible','map','doc.operation.close-doc-shape-format-panel','srcRect','cos','setFillImage','_subUnitId','getDrawingVisible','makeDirty','getShapePopupMenus','setOnSavingEditorData','text','function','_docDrawingShapeRenderController','MoveUpIcon','reverse','actualHeight','startIndex','IN_FRONT_OF_TEXT','getDrawingEffectBounds','_getShapeAdjustPointListById','_commandService','docs-shape-ui.shape-format.wrapping-style-label','span','4380736AJwNxz','docs-shape-text-','params','hidden','getCanvasElement','call','presetId','WRAP_NONE','ShapeIcon','setCollapsedIds','_registerDrawingFocusChangeHandler','getState','type','_endLayoutInteraction','addObject','invert','1.0.0-rc.0','_transform','_canEdit','docs-shape-ui.textWrap.behindText','Line','getBody','getShapeTextRect','subscribe','rect','updateDocumentDataMargin','_docPrintInterceptorService','horizontal','getDrawingOKey','_layoutInteraction','multiply','path','add$','_drawShapeText','clipByShape','docs-shape-ui.ribbon.shape-format.style-control','docs-shape-ui.textWrap.inFrontText','doc.image-clip.shape-picker.component'];_0x1257=function(){return _0x39eb1f;};return _0x1257();}function _i(_0x5a8619){const _0x314b36=_0x41d120;let _0x259061=_0x39fb42(_0x32780b),_0x3a426e=_0x20a78f(()=>_0x259061[_0x314b36(0x24f)],_0x259061[_0x314b36(0x1bf)](),!0x1,[_0x259061]),_0x486015=_0x5a8619[_0x314b36(0x20e)]['extraProps'];return _0x3a426e?_0x570b01(vi,{..._0x486015,'canvasElement':_0x5a8619[_0x314b36(0x20e)][_0x314b36(0x36e)]}):null;}function vi(_0x4c9492){const _0x36501b=_0x41d120;let _0x8b1666=_0x39fb42(_0xa37c8c),_0x3cae81=_0x39fb42(_0x3bb114),_0xe29d44=_0x39fb42(_0x24791d),_0xd83f40=_0x39fb42(_0x4e0d4e),{unitId:_0x442736,subUnitId:_0x49a7f6,drawingId:_0x570a64,shapeType:_0x309f2c}=_0x4c9492,[_0x4fd9f1,_0x49181a]=_0x4603ae(_0x4c9492[_0x36501b(0x298)]),_0x4e6400=_0xd83f40['getUnit'](_0x442736,_0x4d852a['UNIVER_DOC'])??void 0x0,[_0x25f1fb,_0x202fc8]=_0x4603ae(()=>gi(_0x4e6400,_0x570a64)),_0x124cd7=_0x45f8a8(()=>_0x5a5c9c(_0x4fd9f1),[_0x4fd9f1]),_0x3f8de5=_0x45f8a8(()=>_0x949d76(_0x4fd9f1),[_0x4fd9f1]);_0x4e899e(()=>{const _0x416f4c=_0x36501b;let _0x33c008=_0x8b1666[_0x416f4c(0x1ab)](_0x3eb063=>{const _0x2d4bd4=_0x416f4c;if(_0x3eb063['id']!==_0x4aba9e['id'])return;let _0x478bf0=_0xe29d44[_0x2d4bd4(0x16c)](_0x442736,_0x49a7f6,_0x570a64);_0x478bf0&&_0x49181a(_0x478bf0);});return()=>_0x33c008[_0x416f4c(0x35a)]();},[_0x8b1666,_0xe29d44,_0x570a64,_0x49a7f6,_0x442736]);let _0x5146a1=_0x45496f=>{_0x49181a(_0x4f4d22=>({..._0x4f4d22,..._0x45496f}));},_0x20ff8e=_0x56aee3=>{let _0x2cc0a0=_0x59eb77(_0x4fd9f1,_0x56aee3);_r(_0x8b1666,_0x442736,_0x49a7f6,_0x570a64,{'oldShapeData':{'shapeText':_0x4fd9f1['shapeText']}},_0x2cc0a0),_0x5146a1(_0x2cc0a0);},_0x1d6406=_0x50ebfd=>{_0x202fc8(_0x50ebfd),_0x8b1666['executeCommand'](_0x28aae7['id'],{'unitId':_0x442736,'subUnitId':_0x49a7f6,'drawings':[{'unitId':_0x442736,'subUnitId':_0x49a7f6,'drawingId':_0x570a64}],'wrappingStyle':_0x50ebfd});},_0xdf2514=_0x15b7a6({'hostType':_0x4d852a['UNIVER_DOC'],'unitId':_0x442736,'subUnitId':_0x49a7f6,'shapeId':_0x570a64,'shapeData':_0x4fd9f1,'onUpdateBinding':_0x15ed6c=>{const _0x4c0d14=_0x36501b;let _0x31eccf={'formulaBinding':_0x15ed6c};_r(_0x8b1666,_0x442736,_0x49a7f6,_0x570a64,{'oldShapeData':{'formulaBinding':_0x4fd9f1[_0x4c0d14(0x306)]}},_0x31eccf),_0x5146a1(_0x31eccf);}}),_0x283d01=[{'label':_0x3cae81['t'](_0x36501b(0x253)),'value':_0xb4b4d4[_0x36501b(0x34c)],'icon':_0x570b01(_0x17f44c,{})},{'label':_0x3cae81['t'](_0x36501b(0x2aa)),'value':_0xb4b4d4[_0x36501b(0x189)],'icon':_0x570b01(_0x17f44c,{})},{'label':_0x3cae81['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0xb4b4d4['WRAP_TOP_AND_BOTTOM'],'icon':_0x570b01(_0x17f44c,{})},{'label':_0x3cae81['t'](_0x36501b(0x1f4)),'value':_0xb4b4d4['BEHIND_TEXT'],'icon':_0x570b01(_0x17f44c,{})},{'label':_0x3cae81['t'](_0x36501b(0x205)),'value':_0xb4b4d4[_0x36501b(0x1db)],'icon':_0x570b01(_0x17f44c,{})}];return _0x9fc940(_0x5b7fbd,{'children':[_0x570b01(_0x5ce32d,{'canvasElement':_0x4c9492[_0x36501b(0x36e)],'shapeData':_0x4fd9f1,'shapeType':_0x309f2c,'textStyle':{'ff':_0x4c8b25[_0x36501b(0x24d)][_0x36501b(0x172)],'fs':_0x4c8b25[_0x36501b(0x24d)][_0x36501b(0x2ae)],'cl':{'rgb':_0x4c8b25[_0x36501b(0x24d)]['color']},..._0x124cd7},'textModel':_0x3f8de5?{'ha':_0x3f8de5['ha']??_0xf7193e[_0x36501b(0x36b)],'va':_0x3f8de5['va']??_0x5221b7[_0x36501b(0x1a0)]}:null,'wrappingStyle':_0x25f1fb,'wrappingStyleOptions':_0x283d01,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c8b25[_0x36501b(0x2a0)],'defaultGradientEndColor':_0x4c8b25[_0x36501b(0x2cd)],'defaultStrokeColor':_0x4c8b25['stroke'],'extensionGroups':_0xdf2514[_0x36501b(0x1ae)],'floatingObjectToolbarPosition':_0x123791['DOC'],'onUpdateShapeData':(_0x2d209b,_0x1bc406)=>{_r(_0x8b1666,_0x442736,_0x49a7f6,_0x570a64,_0x2d209b,_0x1bc406),_0x1bc406&&_0x5146a1(_0x1bc406);},'onUpdateText':_0x20ff8e,'onUpdateWrappingStyle':_0x26cb80=>_0x1d6406(_0x26cb80),'onOpenPanel':()=>{_0x8b1666['executeCommand'](tr['id'],{'unitId':_0x442736,'subUnitId':_0x49a7f6,'drawingId':_0x570a64});},'onDelete':()=>{const _0x3ae97f=_0x36501b;_0x8b1666[_0x3ae97f(0x31c)](_0x4c1db7['id'],{'unitId':_0x442736,'drawings':[{'unitId':_0x442736,'subUnitId':_0x49a7f6,'drawingId':_0x570a64}]});}}),_0xdf2514['panel']]});}function yi({variant:_0x60672c,extend:_0x1b76d0,..._0x358f97}){const _0x37020b=_0x41d120;let _0x5c9182=_0x570b01('rect',{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x37020b(0x2c4),'fillOpacity':_0x37020b(0x282),'stroke':'currentColor','strokeWidth':_0x37020b(0x333)});return _0x9fc940(_0x37020b(0x268),{'aria-hidden':_0x37020b(0x18e),'fill':_0x37020b(0x1b9),'height':'1em','viewBox':_0x37020b(0x167),'width':_0x37020b(0x2bc),..._0x358f97,'children':[_0x60672c===_0x37020b(0x1bb)&&_0x9fc940(_0x5b7fbd,{'children':[_0x570b01(_0x37020b(0x200),{'d':_0x37020b(0x196),'stroke':_0x37020b(0x2c4),'strokeLinecap':'round','strokeWidth':_0x37020b(0x333)}),_0x570b01('rect',{'x':'8','y':'7','width':'4','height':'6','rx':_0x37020b(0x2c7),'fill':_0x37020b(0x2c4),'fillOpacity':_0x37020b(0x282),'stroke':_0x37020b(0x2c4),'strokeWidth':'1.2'})]}),_0x60672c===_0x37020b(0x15b)&&_0x9fc940(_0x5b7fbd,{'children':[_0x570b01(_0x37020b(0x200),{'d':_0x37020b(0x22b),'stroke':'currentColor','strokeLinecap':_0x37020b(0x32c),'strokeWidth':_0x37020b(0x333)}),_0x5c9182]}),_0x60672c===_0x37020b(0x28e)&&_0x9fc940(_0x5b7fbd,{'children':[_0x570b01(_0x37020b(0x200),{'d':_0x37020b(0x1b6),'stroke':_0x37020b(0x2c4),'strokeLinecap':'round','strokeWidth':_0x37020b(0x333)}),_0x5c9182]}),_0x60672c==='behind'&&_0x9fc940(_0x5b7fbd,{'children':[_0x5c9182,_0x570b01(_0x37020b(0x200),{'d':_0x37020b(0x194),'stroke':_0x37020b(0x2c4),'strokeLinecap':_0x37020b(0x32c),'strokeWidth':_0x37020b(0x333)})]}),_0x60672c===_0x37020b(0x2e1)&&_0x9fc940(_0x5b7fbd,{'children':[_0x570b01('path',{'d':_0x37020b(0x194),'stroke':_0x37020b(0x2c4),'strokeLinecap':_0x37020b(0x32c),'strokeWidth':'1.2'}),_0x570b01(_0x37020b(0x1f9),{'x':'7','y':_0x37020b(0x2e7),'width':'6','height':'9','rx':'1','fill':'currentColor'})]})]});}const bi=_0x1433ec=>_0x197204=>_0x570b01(yi,{..._0x197204,'variant':_0x1433ec}),xi={'DocsShapeWrapInlineIcon':bi(_0x41d120(0x1bb)),'DocsShapeWrapSquareIcon':bi(_0x41d120(0x15b)),'DocsShapeWrapTopBottomIcon':bi(_0x41d120(0x28e)),'DocsShapeWrapBehindTextIcon':bi(_0x41d120(0x1b1)),'DocsShapeWrapInFrontOfTextIcon':bi(_0x41d120(0x2e1))};function Si(_0x1620fb){'@babel/helpers - typeof';const _0x5bc25c=_0x41d120;return Si=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x5bc25c(0x29d)?function(_0xb83d97){return typeof _0xb83d97;}:function(_0x1a722d){const _0x396a9e=_0x5bc25c;return _0x1a722d&&typeof Symbol==_0x396a9e(0x1d5)&&_0x1a722d[_0x396a9e(0x1af)]===Symbol&&_0x1a722d!==Symbol['prototype']?'symbol':typeof _0x1a722d;},Si(_0x1620fb);}function Ci(_0x3a9bf9,_0x3fccca){const _0x5de49a=_0x41d120;if(Si(_0x3a9bf9)!='object'||!_0x3a9bf9)return _0x3a9bf9;var _0x53ad0c=_0x3a9bf9[Symbol['toPrimitive']];if(_0x53ad0c!==void 0x0){var _0x49f5d1=_0x53ad0c[_0x5de49a(0x1e6)](_0x3a9bf9,_0x3fccca||_0x5de49a(0x224));if(Si(_0x49f5d1)!='object')return _0x49f5d1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3fccca===_0x5de49a(0x2f4)?String:Number)(_0x3a9bf9);}function wi(_0x586d15){const _0x3a04de=_0x41d120;var _0xc89748=Ci(_0x586d15,_0x3a04de(0x2f4));return Si(_0xc89748)==_0x3a04de(0x29d)?_0xc89748:_0xc89748+'';}function Z(_0x31742a,_0x2fe6b7,_0x2a1d7b){return(_0x2fe6b7=wi(_0x2fe6b7))in _0x31742a?Object['defineProperty'](_0x31742a,_0x2fe6b7,{'value':_0x2a1d7b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x31742a[_0x2fe6b7]=_0x2a1d7b,_0x31742a;}let Q=class extends _0x551e8f{constructor(_0x122635,_0xc5b0de){const _0x5aceb7=_0x41d120;super(),this[_0x5aceb7(0x292)]=_0x122635,this[_0x5aceb7(0x16a)]=_0xc5b0de,Z(this,_0x5aceb7(0x309),new _0x50c264(null)),Z(this,_0x5aceb7(0x33d),this[_0x5aceb7(0x309)][_0x5aceb7(0x211)]()),Z(this,_0x5aceb7(0x1b2),new _0x50c264(!0x1)),Z(this,'onSavingEditorData$',this['_onSavingEditorData$'][_0x5aceb7(0x211)]()),Z(this,'_completionFrame',void 0x0),this[_0x5aceb7(0x38b)](this['_permissionService']['permissionPointUpdate$']['subscribe'](()=>{const _0x884ea5=_0x5aceb7;let _0x115250=this[_0x884ea5(0x2da)]();_0x115250!=null&&_0x115250[_0x884ea5(0x240)]&&!this['_canEdit'](_0x115250)&&this[_0x884ea5(0x2ab)](null);}));}[_0x41d120(0x35a)](){const _0xb612f6=_0x41d120;this['_clearCompletionFrame'](),this[_0xb612f6(0x309)]['next'](null),this[_0xb612f6(0x309)]['complete'](),this['_onSavingEditorData$'][_0xb612f6(0x354)](!0x1),this[_0xb612f6(0x1b2)][_0xb612f6(0x388)](),super[_0xb612f6(0x35a)]();}[_0x41d120(0x2ab)](_0x513cef){const _0x3fea30=_0x41d120;_0x513cef!=null&&_0x513cef[_0x3fea30(0x240)]&&!this['_canEdit'](_0x513cef)||(this[_0x3fea30(0x302)](),this['_editingParams$']['next'](_0x513cef),(_0x513cef==null||_0x513cef[_0x3fea30(0x240)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x3fea30(0x1b2)]['next'](!0x1));}[_0x41d120(0x1d3)](_0x5ac27f){const _0x10c962=_0x41d120;this[_0x10c962(0x1b2)][_0x10c962(0x354)](_0x5ac27f);}[_0x41d120(0x2da)](){const _0x1b2d03=_0x41d120;return this['_editingParams$'][_0x1b2d03(0x1c6)]();}[_0x41d120(0x1f3)](_0x495270){const _0x5143f7=_0x41d120;let _0x27aad2=this[_0x5143f7(0x16a)][_0x5143f7(0x2f6)](_0x495270['unitId'],_0x4d852a['UNIVER_DOC']);if(!_0x27aad2)return!0x0;let _0x4afdff=_0x7077b2(_0x27aad2,_0x495270[_0x5143f7(0x22d)]);return _0x510802(this['_permissionService'],_0x495270[_0x5143f7(0x1a1)],[..._0x15ba16(_0x27aad2,_0x4afdff,'drawing',_0x495270[_0x5143f7(0x22d)]),_0x459888(_0x4afdff,_0x5143f7(0x2a6),_0x495270[_0x5143f7(0x22d)])]);}[_0x41d120(0x1ac)](_0x7dd3f8){const _0x188ed5=_0x41d120;let _0x4f7e0c=this[_0x188ed5(0x2da)]();!_0x4f7e0c||this[_0x188ed5(0x18f)]!==void 0x0||(this[_0x188ed5(0x1d3)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x4162d2=_0x188ed5;this['_completionFrame']=void 0x0,this[_0x4162d2(0x2da)]()===_0x4f7e0c&&this[_0x4162d2(0x2ab)](null);}));}[_0x41d120(0x302)](){const _0x5035c7=_0x41d120;this[_0x5035c7(0x18f)]!==void 0x0&&(cancelAnimationFrame(this[_0x5035c7(0x18f)]),this[_0x5035c7(0x18f)]=void 0x0);}[_0x41d120(0x300)](){const _0x21945b=_0x41d120;this['getEditing']()&&this[_0x21945b(0x2ab)](null);}};Q=Y([J(0x0,_0x51a150),J(0x1,_0x4e0d4e)],Q);const Ti=_0x58742e(()=>{const _0x4cbe33=_0x41d120;let _0x30baa4=_0x39fb42(Q),_0x4e2742=_0x39fb42(_0x24791d),_0x239662=_0x39fb42(_0x4af33c),_0x3fabfe=_0x39fb42(_0xa37c8c);return _0x570b01(_0x5e5b07,{'adapter':_0x45f8a8(()=>({'getShapeModel':(_0x43e8aa,_0x174cc6,_0x148332)=>_0x4e2742[_0x4cbe33(0x2b3)](_0x43e8aa,_0x174cc6,_0x148332),'getShapeData':(_0x16029e,_0x20f5c1,_0x2bfeaf)=>_0x4e2742[_0x4cbe33(0x16c)](_0x16029e,_0x20f5c1,_0x2bfeaf),'getDrawingTransform':(_0x587b6c,_0x207850,_0x23eb22)=>{const _0x89a399=_0x4cbe33;let _0x47dc5d=_0x239662[_0x89a399(0x214)]({'unitId':_0x587b6c,'subUnitId':_0x207850,'drawingId':_0x23eb22});return _0x47dc5d==null?void 0x0:_0x47dc5d[_0x89a399(0x2ed)];},'updateShapeText':({unitId:_0x21f174,shapeId:_0x5c1566,shapeText:_0x4cdc70,oldShapeText:_0x3cfe37})=>{const _0x36f2c5=_0x4cbe33;_0x3fabfe[_0x36f2c5(0x31c)](_0x192378['id'],{'unitId':_0x21f174,'shapeId':_0x5c1566,'shapeData':{'shapeText':_0x4cdc70},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3cfe37}}});},'updateHostSize':({unitId:_0x104085,subUnitId:_0x34cd63,shapeId:_0x58debd,width:_0x4abb8b,height:_0x3c2b7a})=>{const _0x48bf5a=_0x4cbe33;_0x3fabfe['executeCommand'](_0x338c0a['id'],{'unitId':_0x104085,'subUnitId':_0x34cd63,'drawings':[{'drawingId':_0x58debd,'key':_0x48bf5a(0x30c),'value':{'width':_0x4abb8b,'height':_0x3c2b7a}}]});},'allowHostSizeShrink':({unitId:_0x30afbf,subUnitId:_0x334344,shapeId:_0x36f28f})=>_0x238249(_0x4e2742[_0x4cbe33(0x16c)](_0x30afbf,_0x334344,_0x36f28f))}),[_0x3fabfe,_0x4e2742,_0x239662]),'editingService':_0x30baa4,'editorUnitId':Qn,'positionOptions':_0x45f8a8(()=>({'viewportKeys':{'main':_0x558dd9[_0x4cbe33(0x32e)]}}),[])});});let Ei=class extends _0x551e8f{constructor(_0x5de272,_0x122409){const _0x2e4aea=_0x41d120;super(),this[_0x2e4aea(0x37b)]=_0x5de272,this['_iconManager']=_0x122409,this[_0x2e4aea(0x221)](),this[_0x2e4aea(0x218)]();}['_registerIcons'](){const _0x52281f=_0x41d120;this[_0x52281f(0x21b)]['has'](_0x52281f(0x215))||this[_0x52281f(0x38b)](this[_0x52281f(0x21b)][_0x52281f(0x25a)]({'ObjectLayersIcon':_0x358ce2})),this[_0x52281f(0x21b)][_0x52281f(0x2c8)](_0x52281f(0x34a))||this[_0x52281f(0x38b)](this[_0x52281f(0x21b)][_0x52281f(0x25a)]({'BottomIcon':_0x466f15})),this[_0x52281f(0x21b)]['has'](_0x52281f(0x2d6))||this[_0x52281f(0x38b)](this['_iconManager'][_0x52281f(0x25a)]({'MoveDownIcon':_0x379490})),this['_iconManager']['has']('MoveUpIcon')||this[_0x52281f(0x38b)](this[_0x52281f(0x21b)][_0x52281f(0x25a)]({'MoveUpIcon':_0x56d13f})),this[_0x52281f(0x21b)]['has'](_0x52281f(0x16b))||this[_0x52281f(0x38b)](this[_0x52281f(0x21b)]['register']({'ShapeFormatSettingIcon':_0xc8ae6c})),this[_0x52281f(0x21b)][_0x52281f(0x2c8)](_0x52281f(0x23a))||this[_0x52281f(0x38b)](this[_0x52281f(0x21b)][_0x52281f(0x25a)]({'TopmostIcon':_0x222d2d})),this[_0x52281f(0x38b)](this[_0x52281f(0x21b)][_0x52281f(0x25a)](xi));}[_0x41d120(0x218)](){const _0x44aa88=_0x41d120;this['disposeWithMe'](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](Yn,mi)),this[_0x44aa88(0x38b)](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](Zn,di)),this[_0x44aa88(0x38b)](this['_componentManager'][_0x44aa88(0x25a)](hi,_i)),this[_0x44aa88(0x38b)](this[_0x44aa88(0x37b)]['register'](br,Er)),this[_0x44aa88(0x38b)](this['_componentManager'][_0x44aa88(0x25a)](yr,Dr)),this[_0x44aa88(0x38b)](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](xr,Or)),this[_0x44aa88(0x38b)](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](Sr,kr)),this[_0x44aa88(0x38b)](this['_componentManager'][_0x44aa88(0x25a)](Cr,Ar)),this['disposeWithMe'](this['_componentManager'][_0x44aa88(0x25a)]($n,_0x2095d7)),this['disposeWithMe'](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](or,dr)),this['disposeWithMe'](this['_componentManager'][_0x44aa88(0x25a)](sr,lr)),this[_0x44aa88(0x37b)][_0x44aa88(0x373)](_0x21fc03)||this[_0x44aa88(0x38b)](this[_0x44aa88(0x37b)][_0x44aa88(0x25a)](_0x21fc03,ur)),this['disposeWithMe'](this['_componentManager'][_0x44aa88(0x25a)](_0x44aa88(0x243),Ti));}};Ei=Y([J(0x0,_0x11aaeb(_0x5c399d)),J(0x1,_0x11aaeb(_0x45ed7a))],Ei);var Di=class extends _0x469c75{constructor(_0x123f3e,_0x2097c8){const _0x361123=_0x41d120;super(_0x123f3e,_0x2097c8),Z(this,_0x361123(0x380),null),Z(this,_0x361123(0x18c),null),Z(this,_0x361123(0x2d9),null),Z(this,_0x361123(0x1cf),null),_0x2097c8&&this['setShapeProps'](_0x2097c8);}[_0x41d120(0x1b8)](){const _0x26c492=_0x41d120;return{'unitId':this[_0x26c492(0x2d9)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x26c492(0x380)]};}[_0x41d120(0x32d)](_0x21060b){const _0x3eccd2=_0x41d120;_0x21060b[_0x3eccd2(0x22d)]!==void 0x0&&(this[_0x3eccd2(0x380)]=_0x21060b[_0x3eccd2(0x22d)]),_0x21060b[_0x3eccd2(0x2bf)]!==void 0x0&&(this[_0x3eccd2(0x18c)]=_0x21060b['adjName']),_0x21060b['unitId']!==void 0x0&&(this[_0x3eccd2(0x2d9)]=_0x21060b[_0x3eccd2(0x1a1)]),_0x21060b[_0x3eccd2(0x168)]!==void 0x0&&(this[_0x3eccd2(0x1cf)]=_0x21060b[_0x3eccd2(0x168)]),this[_0x3eccd2(0x264)]({'width':_0x21060b[_0x3eccd2(0x22f)],'height':_0x21060b[_0x3eccd2(0x183)]});}['_draw'](_0x1b3d5){const _0x3ae567=_0x41d120;_0x39f3c6[_0x3ae567(0x213)](_0x1b3d5,{'radius':_0x4c8b25[_0x3ae567(0x210)],'fill':_0x4c8b25[_0x3ae567(0x2d1)],'stroke':_0x4c8b25[_0x3ae567(0x2ef)],'strokeWidth':0x1,'evented':!0x0});}};function Oi(_0x2e77ac,_0x2f14d8,_0x4756ca){const _0x5ef122=_0x41d120;let _0x12cb41=_0x1f30bd(_0x2e77ac,{..._0x2f14d8,'dataModel':{..._0x2f14d8[_0x5ef122(0x286)]??{},..._0x4756ca?{'doc':_0x4756ca}:null}}),_0x3ca751=_0x204fdb(_0x12cb41);return{'clip':_0x208c24(_0x12cb41,_0x3ca751),'wrapStrategy':_0x3ca751};}var ki=class extends _0x469c75{constructor(_0x1d08a3,_0x95b19a){const _0x16d3cf=_0x41d120;super(_0x1d08a3,_0x95b19a),Z(this,'_props',void 0x0),Z(this,'_formulaAnimation',new _0x1471eb(()=>this['makeDirty'](!0x0),()=>this[_0x16d3cf(0x316)]())),Z(this,_0x16d3cf(0x295),!0x0),Z(this,_0x16d3cf(0x249),_0x5c59f7['DRAWING_SHAPE']),Z(this,_0x16d3cf(0x2fe),!0x0),this[_0x16d3cf(0x27a)]={..._0x95b19a},this['_formulaAnimation'][_0x16d3cf(0x254)](_0x95b19a[_0x16d3cf(0x185)],_0x95b19a[_0x16d3cf(0x266)]!==!0x1),this[_0x16d3cf(0x33c)](),this[_0x16d3cf(0x316)]();}[_0x41d120(0x33c)](){const _0x52ecab=_0x41d120;this[_0x52ecab(0x225)][_0x52ecab(0x2a2)](_0x59d582=>{this['_updateSrcRectByTransform'](_0x59d582);});}[_0x41d120(0x25c)](_0x4e7471){const _0x42c9ed=_0x41d120;this['_props'][_0x42c9ed(0x293)]=_0x4e7471;}[_0x41d120(0x2ab)](_0x412858){const _0x147e4d=_0x41d120;this[_0x147e4d(0x27a)][_0x147e4d(0x276)]=_0x412858,this[_0x147e4d(0x1d1)](!0x0);}[_0x41d120(0x247)](_0x481e8b,_0x2ccfde=!0x0){const _0x1fd618=_0x41d120;this[_0x1fd618(0x18a)][_0x1fd618(0x254)](_0x481e8b,_0x2ccfde),this[_0x1fd618(0x27a)][_0x1fd618(0x185)]=_0x481e8b,this[_0x1fd618(0x316)](),this[_0x1fd618(0x1d1)](!0x0);}[_0x41d120(0x316)](){const _0x1f1912=_0x41d120;let _0x43aac5=this[_0x1f1912(0x27a)]['shapeModel'],_0x3ea55f=_0x43aac5['getShapeTextData'](),_0x48e0c5=_0x1a2c03(_0x3ea55f==null?void 0x0:_0x3ea55f['dataModel']),_0x14c96c=_0x48e0c5==null?void 0x0:_0x48e0c5[_0x1f1912(0x2e3)],_0x3ec91b=this[_0x1f1912(0x18a)][_0x1f1912(0x2d5)]();if(!_0x14c96c||_0x3ec91b[_0x1f1912(0x28d)]===0x0)return;_0x43aac5[_0x1f1912(0x2d3)]({'width':this[_0x1f1912(0x22f)],'height':this[_0x1f1912(0x183)]});let _0x3e123d=_0x6df263({'documentData':_0x3ec91b[_0x1f1912(0x1ca)](_0x530f23=>_0x2bd38c(_0x14c96c,_0x530f23)),'height':this[_0x1f1912(0x183)],'shapeData':_0x43aac5[_0x1f1912(0x382)](),'textRect':_0x43aac5[_0x1f1912(0x1f7)]({'left':0x0,'top':0x0,'width':this[_0x1f1912(0x22f)],'height':this[_0x1f1912(0x183)]}),'width':this[_0x1f1912(0x22f)]});if(_0x3e123d){var _0x3ea4b6;this[_0x1f1912(0x385)](_0x3e123d[_0x1f1912(0x22f)],_0x3e123d[_0x1f1912(0x183)]),(_0x3ea4b6=this['getScene']())==null||(_0x3ea4b6=_0x3ea4b6['getTransformer']())==null||_0x3ea4b6['debounceRefreshControls']();}}get[_0x41d120(0x1a1)](){const _0x175c22=_0x41d120;return this[_0x175c22(0x27a)]['unitId'];}get[_0x41d120(0x168)](){const _0x125f57=_0x41d120;return this['_props'][_0x125f57(0x168)];}['_updateSrcRectByTransform'](_0x183121){const _0x581a3c=_0x41d120;if(this[_0x581a3c(0x27a)][_0x581a3c(0x1cc)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x54b23c,height:_0x2483e6}=this,{width:_0x345a31=0x0,height:_0x48ed1b=0x0}=_0x183121['preValue'],{left:_0x48e490=0x0,top:_0x546c62=0x0,right:_0x3f42e5=0x0,bottom:_0x26ccc5=0x0}=this[_0x581a3c(0x27a)][_0x581a3c(0x1cc)],_0x2095c1=_0x48e490,_0x1f9415=_0x546c62,_0x3e9827=_0x3f42e5,_0x32d268=_0x26ccc5,_0x5b8a85=!0x1;if(_0x345a31!==0x0&&_0x345a31!==_0x54b23c){let _0x386b01=_0x48e490/_0x345a31,_0x4d65a3=_0x3f42e5/_0x345a31;_0x2095c1=_0x54b23c*_0x386b01,_0x3e9827=_0x54b23c*_0x4d65a3,_0x5b8a85=!0x0;}if(_0x48ed1b!==0x0&&_0x48ed1b!==_0x2483e6){let _0x26765a=_0x546c62/_0x48ed1b,_0x52c18e=_0x26ccc5/_0x48ed1b;_0x1f9415=_0x2483e6*_0x26765a,_0x32d268=_0x2483e6*_0x52c18e,_0x5b8a85=!0x0;}_0x5b8a85&&this[_0x581a3c(0x16f)]({'left':_0x2095c1,'top':_0x1f9415,'right':_0x3e9827,'bottom':_0x32d268});}['setSrcRect'](_0x56f762){const _0x320cf9=_0x41d120;this[_0x320cf9(0x27a)]['srcRect']=_0x56f762,this[_0x320cf9(0x1d1)](!0x0);}[_0x41d120(0x1ce)](_0x431c62){const _0x552f6d=_0x41d120;this[_0x552f6d(0x27a)]['image']=_0x431c62,this[_0x552f6d(0x1d1)](!0x0);}set[_0x41d120(0x2ed)](_0x198c15){const _0x3bedf4=_0x41d120;this[_0x3bedf4(0x1f2)]=_0x198c15;}get['transform'](){const _0x436baf=_0x41d120;this[_0x436baf(0x1f2)]||this[_0x436baf(0x24a)]();let _0x44dcf5=this[_0x436baf(0x1f2)][_0x436baf(0x359)]();return this[_0x436baf(0x164)](_0x44dcf5);}get[_0x41d120(0x15a)](){const _0x4324d5=_0x41d120;return this[_0x4324d5(0x27a)]['shapeModel'];}get[_0x41d120(0x22d)](){return this['_props']['shapeId'];}get[_0x41d120(0x1a2)](){const _0x27c746=_0x41d120;return _0x3d4b85[_0x27c746(0x184)];}['_draw'](_0x5aa5d8,_0x5dbfa7,_0x18f28b,_0x31b3c4){const _0x1f89dc=_0x41d120;let _0x57e5dc=this[_0x1f89dc(0x27a)]['shapeModel'];if(!_0x57e5dc||!_0x5dbfa7)return;let _0x20c572=_0x18f28b??this[_0x1f89dc(0x22f)],_0x48ded9=_0x31b3c4??this[_0x1f89dc(0x183)],_0xa7e52f={'shapeType':_0x57e5dc[_0x1f89dc(0x195)](),'width':_0x20c572,'height':_0x48ded9},_0x1fa70d={'renderMode':_0x508f43[_0x1f89dc(0x1b3)],'oKey':this[_0x1f89dc(0x379)],'image':this['_props']['image'],'angle':this[_0x1f89dc(0x37c)]};_0x57e5dc[_0x1f89dc(0x2d3)](_0xa7e52f),_0x5aa5d8[_0x1f89dc(0x19e)]();let _0x5b3f6c={'top':0x0,'left':0x0,'width':_0x20c572,'height':_0x48ded9},_0x35e33d=_0x57e5dc[_0x1f89dc(0x1dc)](_0x5b3f6c);_0x35e33d?this[_0x1f89dc(0x262)](_0x5aa5d8,_0x35e33d,_0x2a0670=>{const _0xc216c4=_0x1f89dc;_0x57e5dc[_0xc216c4(0x339)](_0x2a0670,_0x5b3f6c,_0x1fa70d);}):(this[_0x1f89dc(0x21e)](),_0x57e5dc['render'](_0x5aa5d8,_0x5b3f6c,_0x1fa70d)),_0x5aa5d8[_0x1f89dc(0x23f)]();let _0x4bccc5=_0x57e5dc[_0x1f89dc(0x2cf)](),_0x55d14c=_0x57e5dc[_0x1f89dc(0x1f7)](_0x5b3f6c),_0xb215a3=_0x57e5dc['isLineShape']();if(_0x4bccc5&&_0x55d14c&&!_0xb215a3){_0x5aa5d8['save'](),this[_0x1f89dc(0x1ec)]()[_0x1f89dc(0x280)]&&_0x5aa5d8['scale'](-0x1,0x1);let _0x480628=_0x20c572/0x2,_0x2b0d4c=_0x48ded9/0x2;_0x5aa5d8[_0x1f89dc(0x2fc)](-_0x480628,-_0x2b0d4c),_0x5aa5d8[_0x1f89dc(0x17c)](),this[_0x1f89dc(0x202)](_0x5aa5d8,_0x4bccc5,_0x55d14c),_0x5aa5d8['restore']();}}[_0x41d120(0x2f9)](_0x54959d){}[_0x41d120(0x202)](_0x1b6177,_0x288022,_0x176b1b){const _0x39636e=_0x41d120;var _0x20c4ec;this[_0x39636e(0x27a)][_0x39636e(0x276)]||(!((_0x20c4ec=_0x288022['dataModel'])!=null&&_0x20c4ec[_0x39636e(0x2e3)])&&_0x39636e(0x2a7)in _0x288022&&_0x288022['isRichText']===!0x1?this[_0x39636e(0x2a3)](_0x1b6177,_0x288022,_0x176b1b):this[_0x39636e(0x2b8)](_0x1b6177,_0x288022,_0x176b1b));}[_0x41d120(0x2a3)](_0x30c390,_0x31d8e3,_0x44adfc){const _0x284c9f=_0x41d120;this['_drawRichText'](_0x30c390,{..._0x31d8e3,'text':_0x31d8e3[_0x284c9f(0x1d4)]??'','dataModel':{'doc':_0x603a35(_0x31d8e3,_0x284c9f(0x1e2)+this[_0x284c9f(0x379)])}},_0x44adfc);}[_0x41d120(0x2b8)](_0x5a8600,_0xb34908,_0x9be17e){_0x3e4fa2(_0x5a8600,this['_formulaAnimation'],(_0x3c52c0,_0x3b05a9)=>{this['_drawRichTextLayer'](_0x3c52c0,_0xb34908,_0x9be17e,_0x3b05a9);});}[_0x41d120(0x23c)](_0x1ae211,_0x6d2143,_0x1362ed,_0x32dd42){const _0x128e04=_0x41d120;let _0x452428=this[_0x128e04(0x27a)][_0x128e04(0x1a6)];if(!_0x6d2143[_0x128e04(0x286)]||!_0x452428){_0x452428||console[_0x128e04(0x1b7)](_0x128e04(0x363));return;}let _0x5940fc=_0x1a2c03(_0x6d2143[_0x128e04(0x286)]);if(!_0x5940fc)return;let _0x28d96e=_0x5940fc[_0x128e04(0x2e3)];if(!_0x28d96e)return;let _0x415269=_0x2bd38c(_0x28d96e,_0x32dd42),_0x441f98=_0x5940fc['va']??_0x5221b7[_0x128e04(0x1a0)],_0x202482=_0x5940fc['ha']??_0xf7193e[_0x128e04(0x36b)],_0x5de54c=Oi(this[_0x128e04(0x27a)][_0x128e04(0x15a)][_0x128e04(0x382)](),_0x6d2143,_0x415269),_0x2e390c=_0x6d2143[_0x128e04(0x2c3)],_0x22806b=new _0x396bb5(_0x5b57e6(_0x415269,{'isHorizontal':_0x2e390c!==!0x1,'textRect':_0x1362ed,'verticalAlign':_0x441f98,'horizontalAlign':_0x202482,'wrapStrategy':_0x5de54c[_0x128e04(0x38e)]})),_0x445408=new _0x5c76d9(_0x22806b),_0x2e0d36=_0xde10ae[_0x128e04(0x349)](_0x445408,_0x452428);_0x2e0d36[_0x128e04(0x323)]();let _0x5f5831=_0x2e0d36[_0x128e04(0x2e8)]()[_0x128e04(0x1d9)],_0x41eb56=_0x16acdb({'contentHeight':_0x5f5831,'verticalAlign':_0x441f98,'viewportHeight':_0x1362ed[_0x128e04(0x183)]});_0x22806b['updateDocumentStyle']({'pageSize':{'width':_0x2e390c===!0x1?_0x1362ed[_0x128e04(0x183)]:_0x1362ed[_0x128e04(0x22f)],'height':_0x41eb56[_0x128e04(0x381)]}}),_0x22806b[_0x128e04(0x1fa)]({'t':_0x41eb56[_0x128e04(0x160)]}),_0x2e0d36['calculate']();let _0x57d63f=new _0x4491f7(_0x128e04(0x177)+this['oKey'],_0x2e0d36,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x128e04(0x1d1)](!0x0)});_0x57d63f[_0x128e04(0x385)](_0x1362ed['width'],_0x41eb56['contentHeight']),_0x1ae211[_0x128e04(0x19e)](),_0x1ae211[_0x128e04(0x20b)](_0x1362ed['left'],_0x1362ed[_0x128e04(0x287)]),_0x5de54c[_0x128e04(0x270)]&&(_0x1ae211[_0x128e04(0x17c)](),_0x1ae211[_0x128e04(0x1f9)](0x0,_0x41eb56[_0x128e04(0x21a)],_0x1362ed[_0x128e04(0x22f)],_0x41eb56[_0x128e04(0x2b2)]),_0x1ae211[_0x128e04(0x270)]()),_0x41eb56[_0x128e04(0x24c)]&&_0x1ae211[_0x128e04(0x20b)](0x0,_0x41eb56[_0x128e04(0x24c)]),_0x57d63f[_0x128e04(0x231)](_0x1ae211),_0x1ae211[_0x128e04(0x23f)](),_0x57d63f[_0x128e04(0x35a)](),_0x2e0d36[_0x128e04(0x35a)](),_0x445408[_0x128e04(0x35a)](),_0x22806b['dispose']();}[_0x41d120(0x339)](_0x2eb20c,_0x34930d,_0x585d02=!0x1){const _0xb42eb4=_0x41d120;if(!this[_0xb42eb4(0x240)])return this[_0xb42eb4(0x1d1)](!0x1),this;let {width:_0x5f5186,height:_0x305d99,left:_0x20ec10,top:_0x2876e6}=this,_0x3d64ab=this[_0xb42eb4(0x2ea)]();if(_0x5f5186=_0x3d64ab['width'],_0x305d99=_0x3d64ab[_0xb42eb4(0x183)],_0x20ec10=_0x3d64ab[_0xb42eb4(0x31f)],_0x2876e6=_0x3d64ab[_0xb42eb4(0x287)],this[_0xb42eb4(0x370)](_0x34930d)){let {top:_0x171b2a,left:_0xc0f92c,bottom:_0x1cb35a,right:_0x1d3960}=_0x34930d['viewBound'];if(_0x5f5186+this['strokeWidth']+_0x20ec10<_0xc0f92c||_0x1d3960<_0x20ec10||_0x305d99+this[_0xb42eb4(0x2ca)]+_0x2876e6<_0x171b2a||_0x1cb35a<_0x2876e6)return this;}let _0x47677f=_0x20ec10+_0x5f5186/0x2,_0x1b75ae=_0x2876e6+_0x305d99/0x2,_0xf6734f=this[_0xb42eb4(0x2ed)][_0xb42eb4(0x20c)]();if(this[_0xb42eb4(0x27a)][_0xb42eb4(0x276)]){let _0x14ccb7=this['getState'](),_0x498555=new _0x23c898();_0x498555[_0xb42eb4(0x161)]({..._0x14ccb7}),_0xf6734f=_0x498555['getMatrix']();}return _0x2eb20c[_0xb42eb4(0x19e)](),this['_props'][_0xb42eb4(0x15a)][_0xb42eb4(0x27d)]===!0x0||_0x2eb20c[_0xb42eb4(0x2ed)](_0xf6734f[0x0],_0xf6734f[0x1],_0xf6734f[0x2],_0xf6734f[0x3],_0x47677f,_0x1b75ae),this[_0xb42eb4(0x2d0)](_0x2eb20c,_0x34930d,_0x5f5186,_0x305d99),_0x2eb20c[_0xb42eb4(0x23f)](),this[_0xb42eb4(0x1d1)](!0x1),this;}[_0x41d120(0x320)](_0x33ae6a){const _0x5bc35b=_0x41d120;let {left:_0x2d7088,top:_0x5e2155,width:_0x3300ca,height:_0x3bfaf8}=this['getRealBound'](),_0x1d6a52=this[_0x5bc35b(0x2ed)][_0x5bc35b(0x20c)](),_0x2364eb=_0x2d7088+_0x3300ca/0x2,_0x55a9b7=_0x5e2155+_0x3bfaf8/0x2,_0x4ab1d7=new _0x23c898([_0x1d6a52[0x0],_0x1d6a52[0x1],_0x1d6a52[0x2],_0x1d6a52[0x3],_0x2364eb,_0x55a9b7]),_0x125817=this['getParent']();return(this[_0x5bc35b(0x33b)]&&(_0x125817==null?void 0x0:_0x125817['classType'])===_0x3d4b85[_0x5bc35b(0x199)]?_0x125817[_0x5bc35b(0x36c)]['multiply'](_0x4ab1d7):_0x4ab1d7)[_0x5bc35b(0x1f0)]()[_0x5bc35b(0x1bc)](_0x33ae6a);}['isHit'](_0x3ecc00){const _0x3f6d72=_0x41d120;let {left:_0x47104f,top:_0x5af1e5,width:_0x4e81b6,height:_0x12f150}=this[_0x3f6d72(0x2ea)](),_0xa61249=_0x47104f+_0x4e81b6/0x2,_0x282c5b=_0x5af1e5+_0x12f150/0x2,_0x47db0b=this[_0x3f6d72(0x2ed)][_0x3f6d72(0x20c)](),_0x85d0dd=new _0x23c898([_0x47db0b[0x0],_0x47db0b[0x1],_0x47db0b[0x2],_0x47db0b[0x3],_0xa61249,_0x282c5b]),_0x30b3cb=this[_0x3f6d72(0x244)](),_0x4b7cf5=(this[_0x3f6d72(0x33b)]&&(_0x30b3cb==null?void 0x0:_0x30b3cb[_0x3f6d72(0x1a2)])===_0x3d4b85[_0x3f6d72(0x199)]?_0x30b3cb[_0x3f6d72(0x36c)][_0x3f6d72(0x1ff)](_0x85d0dd):_0x85d0dd)[_0x3f6d72(0x1f0)]()[_0x3f6d72(0x1bc)](_0x3ecc00),_0x166db2=_0x4e81b6/0x2,_0x4e4cde=_0x12f150/0x2,_0x54177e=this[_0x3f6d72(0x27a)][_0x3f6d72(0x15a)];return _0x54177e&&_0x54177e[_0x3f6d72(0x22a)]()?_0x54177e['isHitLine'](_0x4b7cf5['x'],_0x4b7cf5['y'],_0x4e81b6,_0x12f150):_0x4b7cf5['x']>=-_0x166db2-this[_0x3f6d72(0x2ca)]/0x2&&_0x4b7cf5['x']<=_0x166db2+this['strokeWidth']/0x2&&_0x4b7cf5['y']>=-_0x4e4cde-this[_0x3f6d72(0x2ca)]/0x2&&_0x4b7cf5['y']<=_0x4e4cde+this[_0x3f6d72(0x2ca)]/0x2;}['dispose'](){const _0x5152dd=_0x41d120;this[_0x5152dd(0x18a)][_0x5152dd(0x35a)](),this[_0x5152dd(0x27a)][_0x5152dd(0x15a)]=null,super[_0x5152dd(0x35a)]();}};let Ai=class extends _0x551e8f{constructor(_0x404180,_0xfc5fee,_0x45f69d,_0x4daadc){const _0x2f5e0d=_0x41d120;super(),this[_0x2f5e0d(0x325)]=_0x404180,this[_0x2f5e0d(0x25e)]=_0xfc5fee,this[_0x2f5e0d(0x2ad)]=_0x45f69d,this['_commandService']=_0x4daadc,Z(this,_0x2f5e0d(0x311),null),Z(this,_0x2f5e0d(0x2d9),null),Z(this,_0x2f5e0d(0x1cf),null),Z(this,_0x2f5e0d(0x317),void 0x0),Z(this,_0x2f5e0d(0x2b1),[]),Z(this,_0x2f5e0d(0x31e),0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0x2f5e0d(0x207),0x0),Z(this,'_baseShapeHeight',0x0),Z(this,'_isStartAdjusting',!0x1),Z(this,'_isShouldShowDrawingShapeAdjust',!0x1),Z(this,_0x2f5e0d(0x1c2),void 0x0),Z(this,_0x2f5e0d(0x159),void 0x0),Z(this,_0x2f5e0d(0x1a8),void 0x0),Z(this,'_adjHandlerPointerUp',void 0x0),this[_0x2f5e0d(0x1eb)](),this[_0x2f5e0d(0x33f)]();}[_0x41d120(0x1c1)](){const _0x317211=_0x41d120;this[_0x317211(0x336)]();}[_0x41d120(0x197)](){this['_updateShapeAdjustControls'](!0x0);}['_getShapeAdjustPointListById'](_0x4cb404,_0x277a68,_0x38394f){const _0x36e040=_0x41d120;var _0x7a7e24;return(_0x7a7e24=this[_0x36e040(0x2ad)][_0x36e040(0x2b3)](_0x4cb404,_0x277a68,_0x38394f))==null?void 0x0:_0x7a7e24[_0x36e040(0x2f9)]();}[_0x41d120(0x17b)](_0x10ffea,_0x54cb2a,_0xab429,_0x141e6b){const _0x28849f=_0x41d120;var _0x5a979e;return(_0x5a979e=this[_0x28849f(0x2ad)][_0x28849f(0x2b3)](_0x10ffea,_0x54cb2a,_0xab429))==null?void 0x0:_0x5a979e[_0x28849f(0x294)](_0x141e6b);}[_0x41d120(0x157)](){const _0x6936e0=_0x41d120;return this[_0x6936e0(0x2d9)]===null||this[_0x6936e0(0x1cf)]===null||this[_0x6936e0(0x311)]===null?null:this[_0x6936e0(0x25e)][_0x6936e0(0x214)]({'unitId':this['_unitId'],'subUnitId':this[_0x6936e0(0x1cf)],'drawingId':this[_0x6936e0(0x311)]})??null;}[_0x41d120(0x290)](_0x483507){const _0xdee284=_0x41d120;if(this[_0xdee284(0x2d9)]===null||this[_0xdee284(0x1cf)]===null||this['_activeShapeId']===null)return null;let _0x10e5b6=_0x1b0d92({'unitId':this[_0xdee284(0x2d9)],'subUnitId':this[_0xdee284(0x1cf)],'drawingId':this[_0xdee284(0x311)]}),_0x9f574f=_0x483507[_0xdee284(0x173)](_0x10e5b6);return _0x9f574f instanceof ki?_0x9f574f:null;}[_0x41d120(0x272)](_0x20a243=!0x1){const _0x19e9b7=_0x41d120;if(this[_0x19e9b7(0x2d9)]===null||this['_subUnitId']===null||this[_0x19e9b7(0x311)]===null)return;let _0x4828ba=this[_0x19e9b7(0x157)]();if((_0x4828ba==null?void 0x0:_0x4828ba[_0x19e9b7(0x220)])!==_0x5c59f7[_0x19e9b7(0x21f)]||!_0x4828ba[_0x19e9b7(0x2ed)])return;let _0x55a07b=this[_0x19e9b7(0x2ad)]['getShapeModel'](this[_0x19e9b7(0x2d9)],this[_0x19e9b7(0x1cf)],this[_0x19e9b7(0x311)]);if(!_0x55a07b||_0x55a07b['isLineShape']())return;let {left:_0x1327ea=0x0,top:_0x22b254=0x0,width:_0x57014d=0x0,height:_0x46c3d1=0x0,flipX:_0x22e758,flipY:_0x254bf7,angle:_0x3c7b4f=0x0}=_0x4828ba[_0x19e9b7(0x2ed)];(_0x20a243||!this[_0x19e9b7(0x317)])&&(_0x55a07b[_0x19e9b7(0x2d3)]({'width':_0x57014d,'height':_0x46c3d1}),this[_0x19e9b7(0x317)]=_0x55a07b[_0x19e9b7(0x2f9)]());let _0x31fb22=this[_0x19e9b7(0x317)];if(!(_0x31fb22!=null&&_0x31fb22[_0x19e9b7(0x28d)]))return;let {scene:_0x1068f4}=this[_0x19e9b7(0x325)];for(let _0x4016ce of _0x31fb22){let _0x5d0c0f=this[_0x19e9b7(0x30b)](_0x4016ce,_0x57014d,_0x46c3d1,!!_0x22e758,!!_0x254bf7,_0x3c7b4f);this[_0x19e9b7(0x2ac)](_0x1068f4,_0x5d0c0f,_0x5d0c0f['adjName'],_0x1327ea,_0x22b254,this[_0x19e9b7(0x2d9)],this['_subUnitId']);}}['_toVisualAdjustPoint'](_0x2e8f6e,_0x490d31,_0x5c1cf2,_0x4765a3,_0x5c816c,_0x47a6dd){const _0x18f212=_0x41d120;let _0x2745a9=_0x2e8f6e['x'],_0x8080cd=_0x2e8f6e['y'];if(_0x4765a3&&(_0x2745a9=_0x490d31-_0x2745a9),_0x5c816c&&(_0x8080cd=_0x5c1cf2-_0x8080cd),_0x47a6dd!==0x0){let _0x1c53ea=_0x490d31/0x2,_0x211b41=_0x5c1cf2/0x2,_0x2ef252=_0x47a6dd*Math['PI']/0xb4,_0x371270=Math[_0x18f212(0x1cd)](_0x2ef252),_0x40e835=Math['sin'](_0x2ef252),_0x11f3dd=_0x2745a9-_0x1c53ea,_0x2ca5a9=_0x8080cd-_0x211b41;_0x2745a9=_0x1c53ea+(_0x11f3dd*_0x371270-_0x2ca5a9*_0x40e835),_0x8080cd=_0x211b41+(_0x11f3dd*_0x40e835+_0x2ca5a9*_0x371270);}return{'x':_0x2745a9,'y':_0x8080cd,'adjName':_0x2e8f6e[_0x18f212(0x2bf)]};}[_0x41d120(0x351)](_0x3506f9=!0x1){const _0x22f91d=_0x41d120;_0x3506f9&&this[_0x22f91d(0x336)](),this[_0x22f91d(0x272)](_0x3506f9);}['_addShapeAdjustControl'](_0x24bdc5,_0x573f45,_0x4319f4,_0x297b03,_0x111419,_0x38d023,_0x558838){const _0x1a60a8=_0x41d120;if(!this['_activeShapeId'])return;let _0x18c7c7=_0x1a60a8(0x19b)+this['_activeShapeId']+'-'+_0x4319f4,_0xf250bf=_0x24bdc5[_0x1a60a8(0x173)](_0x18c7c7);if(_0xf250bf){_0xf250bf[_0x1a60a8(0x264)]({'left':_0x573f45['x']+_0x297b03-_0x4c8b25[_0x1a60a8(0x210)],'top':_0x573f45['y']+_0x111419-_0x4c8b25[_0x1a60a8(0x210)]}),_0xf250bf['makeDirty'](!0x0);return;}let _0x18091f=new Di(_0x18c7c7,{'left':_0x573f45['x']+_0x297b03-_0x4c8b25[_0x1a60a8(0x210)],'top':_0x573f45['y']+_0x111419-_0x4c8b25[_0x1a60a8(0x210)],'adjName':_0x4319f4,'shapeId':this[_0x1a60a8(0x311)],'unitId':_0x38d023,'subUnitId':_0x558838,'width':_0x4c8b25[_0x1a60a8(0x210)]+0x8,'height':_0x4c8b25[_0x1a60a8(0x210)]+0x8,'zIndex':_0x1f8984+0x1,'evented':!0x0});this[_0x1a60a8(0x2b1)][_0x1a60a8(0x2f5)](_0x18091f),this[_0x1a60a8(0x2dc)](_0x18091f,_0x24bdc5,_0x4319f4),_0x24bdc5['addObject'](_0x18091f,_0x1f8984+0x1);}[_0x41d120(0x336)](){const _0x5f0bd5=_0x41d120;this[_0x5f0bd5(0x2b1)][_0x5f0bd5(0x35c)](_0x5efd6b=>_0x5efd6b[_0x5f0bd5(0x35a)]()),this[_0x5f0bd5(0x2b1)]=[];}['_updateAdjustControlPositions'](){this['_createShapeAdjustControls']();}['_toScenePoint'](_0x5783c8,_0x34bde0,_0x2b6238){const _0x4976c2=_0x41d120;let _0x7809bd=_0x1f43bb[_0x4976c2(0x190)]([_0x34bde0,_0x2b6238]),_0x5ece85=_0x5783c8[_0x4976c2(0x273)](_0x7809bd)??_0x5783c8[_0x4976c2(0x36d)]()[0x0];return(_0x5ece85==null?void 0x0:_0x5ece85[_0x4976c2(0x29f)](_0x7809bd))??_0x7809bd;}[_0x41d120(0x2dc)](_0x566779,_0x5e5d96,_0x4d1610){const _0x247d93=_0x41d120;this[_0x247d93(0x38b)](_0x1c7696(_0x566779[_0x247d93(0x26a)][_0x247d93(0x2a2)]((_0x485a57,_0x5c5c57)=>{const _0x45b74f=_0x247d93;var _0x35e21b;let _0x144161=_0x566779[_0x45b74f(0x1b8)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x144161['unitId'],_0x144161[_0x45b74f(0x168)],_0x144161['drawingId'],_0x4d1610),this[_0x45b74f(0x159)]=this[_0x45b74f(0x2ad)][_0x45b74f(0x2b3)](_0x144161[_0x45b74f(0x1a1)],_0x144161[_0x45b74f(0x168)],_0x144161[_0x45b74f(0x2e2)]);let _0x5f41c7=this[_0x45b74f(0x157)](),_0x5b4a5f=_0x5f41c7==null?void 0x0:_0x5f41c7[_0x45b74f(0x2ed)];if(!_0x5f41c7||!_0x5b4a5f||!this[_0x45b74f(0x159)])return;this[_0x45b74f(0x31e)]=_0x5b4a5f[_0x45b74f(0x31f)]||0x0,this['_baseShapeTop']=_0x5b4a5f[_0x45b74f(0x287)]||0x0,this[_0x45b74f(0x207)]=_0x5b4a5f[_0x45b74f(0x22f)]||0x0,this[_0x45b74f(0x29b)]=_0x5b4a5f['height']||0x0;let _0x4273cc=!!_0x5b4a5f[_0x45b74f(0x280)],_0x30acc6=!!_0x5b4a5f[_0x45b74f(0x31b)],_0xd9f63f=_0x5b4a5f[_0x45b74f(0x37c)]||0x0,_0x5a9605={...((_0x35e21b=this[_0x45b74f(0x1c2)])==null?void 0x0:_0x35e21b[_0x45b74f(0x371)])??{}};this[_0x45b74f(0x19c)]=!0x0,_0x5e5d96[_0x45b74f(0x2ce)](),this['_adjHandlerPointerMove']=_0x5e5d96[_0x45b74f(0x384)][_0x45b74f(0x2a2)]((_0x54790f,_0x11eb0b)=>{const _0x2d4080=_0x45b74f;var _0x5c9919;if(!this['_isStartAdjusting']||!this[_0x2d4080(0x159)]||!this[_0x2d4080(0x1c2)])return;_0x5e5d96[_0x2d4080(0x2ce)](),_0x5e5d96['setCursor'](_0x27764a['CROSSHAIR']);let _0x567b22=this[_0x2d4080(0x28a)](_0x5e5d96,_0x54790f[_0x2d4080(0x37d)],_0x54790f[_0x2d4080(0x26b)]),_0x71ff0f=_0x567b22['x']-this[_0x2d4080(0x31e)],_0x5c29d8=_0x567b22['y']-this[_0x2d4080(0x32b)];if(_0xd9f63f!==0x0){let _0x436ad9=this['_baseShapeWidth']/0x2,_0x42bbe6=this['_baseShapeHeight']/0x2,_0x15889d=_0xd9f63f*Math['PI']/0xb4,_0x58fe77=Math[_0x2d4080(0x1cd)](_0x15889d),_0x1bd4d2=Math[_0x2d4080(0x216)](_0x15889d),_0x21a6a2=_0x71ff0f-_0x436ad9,_0x3eb966=_0x5c29d8-_0x42bbe6;_0x71ff0f=_0x436ad9+(_0x21a6a2*_0x58fe77+_0x3eb966*_0x1bd4d2),_0x5c29d8=_0x42bbe6+(-_0x21a6a2*_0x1bd4d2+_0x3eb966*_0x58fe77);}_0x4273cc&&(_0x71ff0f=this['_baseShapeWidth']-_0x71ff0f),_0x30acc6&&(_0x5c29d8=this[_0x2d4080(0x29b)]-_0x5c29d8);let _0x326814={'left':0x0,'top':0x0,'width':this[_0x2d4080(0x207)],'height':this[_0x2d4080(0x29b)]},_0x583467=this[_0x2d4080(0x159)][_0x2d4080(0x174)](_0x326814,{'x':_0x71ff0f,'y':_0x5c29d8},this[_0x2d4080(0x1c2)],_0x4273cc,_0x30acc6);if(Object['keys'](_0x583467)[_0x2d4080(0x28d)]!==0x0){for(let [_0x42a440,_0x3af94d]of Object[_0x2d4080(0x275)](_0x583467))this[_0x2d4080(0x159)]['setAdjustValueByName'](_0x42a440,_0x3af94d);this[_0x2d4080(0x159)][_0x2d4080(0x2d3)]({'width':this['_baseShapeWidth'],'height':this[_0x2d4080(0x29b)]}),(_0x5c9919=this[_0x2d4080(0x290)](_0x5e5d96))==null||_0x5c9919[_0x2d4080(0x1d1)](!0x0),this[_0x2d4080(0x317)]=this[_0x2d4080(0x1dd)](_0x144161[_0x2d4080(0x1a1)],_0x144161[_0x2d4080(0x168)],_0x144161[_0x2d4080(0x2e2)]),this[_0x2d4080(0x2d8)](),_0x11eb0b['stopPropagation']();}}),this[_0x45b74f(0x1be)]=_0x5e5d96[_0x45b74f(0x321)][_0x45b74f(0x2a2)]((_0x24aefe,_0x5dc155)=>{const _0x19b606=_0x45b74f;var _0x48b812,_0x45a007;(_0x48b812=this[_0x19b606(0x1a8)])==null||_0x48b812['unsubscribe'](),(_0x45a007=this[_0x19b606(0x1be)])==null||_0x45a007[_0x19b606(0x291)](),_0x5e5d96[_0x19b606(0x17e)]();let _0x12b9b1=this[_0x19b606(0x1c2)];if(_0x12b9b1&&this[_0x19b606(0x159)]){let _0x52bf7e={};for(let _0x2fd7c1 of Object['keys'](_0x12b9b1[_0x19b606(0x371)])){let _0x1bb43a=this[_0x19b606(0x159)]['getAdjustValueByName'](_0x2fd7c1);_0x1bb43a!==void 0x0&&(_0x52bf7e[_0x2fd7c1]=_0x1bb43a);}Object[_0x19b606(0x15c)](_0x52bf7e)[_0x19b606(0x28d)]>0x0&&_r(this[_0x19b606(0x1de)],_0x144161[_0x19b606(0x1a1)],_0x144161[_0x19b606(0x168)],_0x144161['drawingId'],{'oldShapeData':{'adjustValues':_0x5a9605}},{'adjustValues':_0x52bf7e});}this[_0x19b606(0x1c2)]=void 0x0,this[_0x19b606(0x159)]=void 0x0,this[_0x19b606(0x19c)]=!0x1,_0x5e5d96[_0x19b606(0x383)](),_0x5dc155['stopPropagation']();}),_0x5c5c57[_0x45b74f(0x284)]();})));}[_0x41d120(0x33f)](){const _0x41aa70=_0x41d120;let {scene:_0x2ab339}=this['_context'],_0x462581=_0x2ab339['getTransformerByCreate']();this[_0x41aa70(0x38b)](_0x462581[_0x41aa70(0x27e)][_0x41aa70(0x1f8)](_0x58a4ea=>{const _0x29f256=_0x41aa70;this[_0x29f256(0x272)](),_0x58a4ea[_0x29f256(0x387)]!==null&&_0x58a4ea[_0x29f256(0x387)]['size']===0x1&&_0x58a4ea[_0x29f256(0x387)][_0x29f256(0x35b)]()[_0x29f256(0x354)]()[_0x29f256(0x255)]instanceof ki&&(this[_0x29f256(0x33a)]=!0x0);})),this[_0x41aa70(0x38b)](_0x462581[_0x41aa70(0x337)]['subscribe'](()=>{const _0x2f61d9=_0x41aa70;this[_0x2f61d9(0x33a)]&&this['_clearShapeAdjustControls']();})),this[_0x41aa70(0x38b)](_0x2ab339['onPointerUp$'][_0x41aa70(0x2a2)](()=>{const _0x5693ed=_0x41aa70;this[_0x5693ed(0x33a)]&&(this[_0x5693ed(0x33a)]=!0x1,this[_0x5693ed(0x272)]());})),this['disposeWithMe'](_0x462581[_0x41aa70(0x232)]['subscribe'](()=>{const _0x57fb58=_0x41aa70;this[_0x57fb58(0x2d9)]&&this[_0x57fb58(0x1cf)]&&this['_activeShapeId']&&(this[_0x57fb58(0x317)]=this[_0x57fb58(0x1dd)](this['_unitId'],this['_subUnitId'],this[_0x57fb58(0x311)]),this[_0x57fb58(0x2d8)]());}));}[_0x41d120(0x1eb)](){const _0x3ee73a=_0x41d120;this[_0x3ee73a(0x38b)](this[_0x3ee73a(0x1de)]['onCommandExecuted'](_0x5618d8=>{const _0x283acb=_0x3ee73a;if(_0x5618d8['id']!==_0x4aba9e['id'])return;let {unitId:_0x427e3a,shapeId:_0x15c559}=_0x5618d8['params'];_0x427e3a===this[_0x283acb(0x2d9)]&&_0x15c559===this[_0x283acb(0x311)]&&this[_0x283acb(0x197)]();})),this[_0x3ee73a(0x38b)](this['_drawingManagerService']['focus$'][_0x3ee73a(0x1f8)](_0x146332=>{const _0x11949d=_0x3ee73a;if(_0x146332[_0x11949d(0x28d)]===0x1){let _0x1a0f3a=_0x146332[0x0],_0x38de7=this[_0x11949d(0x25e)][_0x11949d(0x214)](_0x1a0f3a);if((_0x38de7==null?void 0x0:_0x38de7['drawingType'])===_0x5c59f7[_0x11949d(0x21f)]){this[_0x11949d(0x311)]=_0x1a0f3a['drawingId'],this['_unitId']=_0x1a0f3a[_0x11949d(0x1a1)],this[_0x11949d(0x1cf)]=_0x1a0f3a[_0x11949d(0x168)],this['_activeShapeAdjustPointList']=this[_0x11949d(0x1dd)](_0x1a0f3a[_0x11949d(0x1a1)],_0x1a0f3a['subUnitId'],_0x1a0f3a[_0x11949d(0x2e2)]),this[_0x11949d(0x336)](),this['_createShapeAdjustControls']();return;}}this[_0x11949d(0x311)]=null,this[_0x11949d(0x317)]=void 0x0,this[_0x11949d(0x2d9)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this['disposeWithMe'](_0x1ac5e2(this[_0x3ee73a(0x25e)][_0x3ee73a(0x28f)],this[_0x3ee73a(0x25e)]['refreshTransform$'])['subscribe'](_0x5375bc=>{const _0x2750de=_0x3ee73a;var _0x585f92;let _0xd540e2=_0x5375bc[_0x2750de(0x241)](_0x7033f0=>_0x7033f0[_0x2750de(0x2e2)]===this['_activeShapeId']&&_0x7033f0[_0x2750de(0x1a1)]===this[_0x2750de(0x2d9)]&&_0x7033f0[_0x2750de(0x168)]===this[_0x2750de(0x1cf)]);_0xd540e2&&((_0x585f92=this[_0x2750de(0x25e)][_0x2750de(0x214)](_0xd540e2))==null?void 0x0:_0x585f92[_0x2750de(0x220)])===_0x5c59f7['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x3ee73a(0x38b)](this[_0x3ee73a(0x25e)][_0x3ee73a(0x2f7)][_0x3ee73a(0x1f8)](_0x4a7c21=>{const _0x4d35a9=_0x3ee73a;for(let _0x11c140 of _0x4a7c21)this[_0x4d35a9(0x311)]===_0x11c140[_0x4d35a9(0x2e2)]&&(this[_0x4d35a9(0x311)]=null,this[_0x4d35a9(0x317)]=void 0x0,this[_0x4d35a9(0x2d9)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());}));}};Ai=Y([J(0x1,_0x4af33c),J(0x2,_0x11aaeb(_0x24791d)),J(0x3,_0xa37c8c)],Ai);function ji(_0x2ddb44){const _0x127b08=_0x41d120;return _0x2ddb44[_0x127b08(0x251)]===!0x0||_0x2ddb44['behindText']===_0x68c01b[_0x127b08(0x361)]||_0x2ddb44[_0x127b08(0x2e9)]===_0x522855[_0x127b08(0x1e8)]&&_0x2ddb44[_0x127b08(0x277)]===_0x68c01b['TRUE']?_0x537cca-0x1:_0x1f8984;}let Mi=class extends _0x551e8f{constructor(_0x4f157b,_0x4cf5a5,_0x25878d,_0x4aa5d8,_0x3506d0,_0x46cdae,_0x1799e0){const _0x154041=_0x41d120;super(),this[_0x154041(0x25e)]=_0x4f157b,this[_0x154041(0x2ad)]=_0x4cf5a5,this[_0x154041(0x34b)]=_0x25878d,this['_imageIoService']=_0x4aa5d8,this['_urlImageService']=_0x3506d0,this[_0x154041(0x233)]=_0x46cdae,this[_0x154041(0x1a4)]=_0x1799e0,Z(this,_0x154041(0x25f),new Map()),this['disposeWithMe'](this[_0x154041(0x1a4)][_0x154041(0x166)][_0x154041(0x1f8)](_0x4f2b9a=>{const _0x1f12bf=_0x154041;var _0x48578c;(_0x48578c=this['_formulaShapes'][_0x1f12bf(0x373)](this[_0x1f12bf(0x1a7)](_0x4f2b9a[_0x1f12bf(0x1a1)],_0x4f2b9a[_0x1f12bf(0x168)],_0x4f2b9a[_0x1f12bf(0x22d)])))==null||_0x48578c[_0x1f12bf(0x35c)](_0x59c300=>_0x59c300[_0x1f12bf(0x247)](_0x4f2b9a[_0x1f12bf(0x2b4)],_0x4f2b9a['animationEnabled']));})),this[_0x154041(0x38b)](this['_drawingManagerService'][_0x154041(0x2f7)]['subscribe'](_0x26d6a7=>{const _0x47682e=_0x154041;_0x26d6a7[_0x47682e(0x35c)](_0x5e7aaf=>{const _0x42d9bd=_0x47682e;this[_0x42d9bd(0x1a4)][_0x42d9bd(0x2d2)]({'unitId':_0x5e7aaf['unitId'],'subUnitId':_0x5e7aaf['subUnitId'],'shapeId':_0x5e7aaf[_0x42d9bd(0x2e2)]}),this[_0x42d9bd(0x25f)][_0x42d9bd(0x356)](this[_0x42d9bd(0x1a7)](_0x5e7aaf[_0x42d9bd(0x1a1)],_0x5e7aaf['subUnitId'],_0x5e7aaf[_0x42d9bd(0x2e2)]));});}));}[_0x41d120(0x289)](_0x188744,_0x37298e){const _0x58cac2=_0x41d120;let {transform:_0x35fc19,drawingType:_0x220b81,srcRect:_0x55b000,prstGeom:_0x33da21,groupId:_0x310542,unitId:_0x2d9a13,subUnitId:_0xa5029b,drawingId:_0x5f474e,isMultiTransform:_0x574d13,transforms:_0x4a35b5,hidden:_0x5b91a9,selectable:_0x19bb62}=_0x188744;if(_0x220b81!==_0x5c59f7['DRAWING_SHAPE']||!this[_0x58cac2(0x25e)][_0x58cac2(0x1d0)]()||_0x35fc19==null)return;let _0x181f44=this['_drawingManagerService']['getDrawingEditable'](),_0x2db0cf=_0x574d13&&_0x4a35b5?_0x4a35b5:[_0x35fc19],_0x1355c6=[];for(let _0x4f7475 of _0x2db0cf){let {left:_0x134cfe,top:_0x2959af,width:_0x31ce3d,height:_0x1f1516,angle:_0x2356ec,flipX:_0x1e8f5a,flipY:_0x4a24ce,skewX:_0x4ac5af,skewY:_0x122cf9}=_0x4f7475,_0x5e413b=_0x2db0cf['indexOf'](_0x4f7475),_0x483d8a=_0x1b0d92({'unitId':_0x2d9a13,'subUnitId':_0xa5029b,'drawingId':_0x5f474e},_0x574d13?_0x5e413b:void 0x0),_0x1e30c0=_0x37298e[_0x58cac2(0x173)](_0x483d8a);if(_0x1e30c0!=null){let _0x26d905={'unitId':_0x2d9a13,'subUnitId':_0xa5029b,'shapeId':_0x5f474e};_0x1e30c0 instanceof ki&&this[_0x58cac2(0x226)](_0x1e30c0,_0x26d905),_0x1e30c0[_0x58cac2(0x264)]({'left':_0x134cfe,'top':_0x2959af,'width':_0x31ce3d,'height':_0x1f1516,'angle':_0x2356ec,'flipX':_0x1e8f5a,'flipY':_0x4a24ce,'skewX':_0x4ac5af,'skewY':_0x122cf9});continue;}let _0x3f7704=this[_0x58cac2(0x25e)][_0x58cac2(0x20f)](_0x2d9a13,_0xa5029b),_0xdc0721=_0x3f7704[_0x58cac2(0x18b)](_0x5f474e);if(_0x37298e[_0x58cac2(0x173)](_0x483d8a)||!this[_0x58cac2(0x25e)][_0x58cac2(0x1d0)]())continue;let _0x183e37=this[_0x58cac2(0x2ad)][_0x58cac2(0x2b3)](_0x2d9a13,_0xa5029b,_0x5f474e);if(!_0x183e37)continue;let _0x34f30a=_0x5d2da3(_0x183e37[_0x58cac2(0x195)]())?{..._0x45903d,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x45903d,_0x412e97=_0x183e37[_0x58cac2(0x382)]()['formulaBinding'],_0x24c9db={'unitId':_0x2d9a13,'subUnitId':_0xa5029b,'shapeId':_0x5f474e};_0x412e97&&this['_shapeFormulaService'][_0x58cac2(0x25a)](_0x24c9db,_0x412e97);let _0x165921=new ki(_0x483d8a,{..._0x4f7475,'zIndex':_0xdc0721===-0x1?_0x3f7704[_0x58cac2(0x28d)]-0x1:_0xdc0721,'shapeModel':_0x183e37,'localeService':this[_0x58cac2(0x34b)],'shapeId':_0x5f474e,'unitId':_0x2d9a13,'subUnitId':_0xa5029b,'visible':_0x5b91a9!==!0x0,'evented':_0x19bb62!==!0x1,'formulaPresentation':_0x412e97?this[_0x58cac2(0x1a4)][_0x58cac2(0x2a5)](_0x24c9db):void 0x0,'animateFormulaPresentation':(_0x412e97==null?void 0x0:_0x412e97[_0x58cac2(0x234)])!==!0x1,'transformerConfig':_0x34f30a});if(_0x412e97){let _0x904d56=this[_0x58cac2(0x1a7)](_0x2d9a13,_0xa5029b,_0x5f474e),_0x24e953=this['_formulaShapes'][_0x58cac2(0x373)](_0x904d56)??new Set();_0x24e953['add'](_0x165921),this['_formulaShapes'][_0x58cac2(0x2b9)](_0x904d56,_0x24e953);}this[_0x58cac2(0x38b)](_0x1c7696(_0x165921[_0x58cac2(0x283)][_0x58cac2(0x2a2)]((_0x1e0e70,_0x482f2f)=>{const _0x10e259=_0x58cac2;_0x183e37[_0x10e259(0x22a)]()||_0x412e97||(this[_0x10e259(0x233)][_0x10e259(0x2ab)]({'visible':!0x0,'unitId':_0x2d9a13,'subUnitId':_0xa5029b,'shapeId':_0x5f474e,'shapeKey':_0x165921[_0x10e259(0x379)]}),_0x482f2f[_0x10e259(0x284)]());}))),_0x37298e[_0x58cac2(0x1ef)](_0x165921,ji(_0x188744)),_0x181f44&&_0x37298e[_0x58cac2(0x19a)](_0x165921),_0x310542&&_0x10e3b3({'drawingId':_0x310542,'unitId':_0x2d9a13,'subUnitId':_0xa5029b},_0x165921,_0x37298e,this[_0x58cac2(0x25e)]),_0x33da21!=null&&_0x165921['setPrstGeom'](_0x33da21),_0x55b000!=null&&_0x165921[_0x58cac2(0x16f)](_0x55b000),this['_loadShapePictureFill'](_0x165921,_0x183e37[_0x58cac2(0x382)]()),_0x1355c6['push'](_0x165921);}return _0x1355c6;}[_0x41d120(0x1a7)](_0x9d6fc7,_0x4881bf,_0x4f8617){return _0x9d6fc7+'\x00'+_0x4881bf+'\x00'+_0x4f8617;}[_0x41d120(0x226)](_0x25b901,_0x4dabe9){const _0x6cc30d=_0x41d120;let _0x36030e=this[_0x6cc30d(0x2ad)][_0x6cc30d(0x2b3)](_0x4dabe9[_0x6cc30d(0x1a1)],_0x4dabe9['subUnitId'],_0x4dabe9[_0x6cc30d(0x22d)]),_0x55321d=_0x36030e==null?void 0x0:_0x36030e[_0x6cc30d(0x382)]()['formulaBinding'],_0x1853de=this['_formulaKey'](_0x4dabe9['unitId'],_0x4dabe9[_0x6cc30d(0x168)],_0x4dabe9[_0x6cc30d(0x22d)]);if(_0x55321d){this['_shapeFormulaService'][_0x6cc30d(0x25a)](_0x4dabe9,_0x55321d);let _0x39d75e=this['_formulaShapes'][_0x6cc30d(0x373)](_0x1853de)??new Set();_0x39d75e[_0x6cc30d(0x389)](_0x25b901),this[_0x6cc30d(0x25f)][_0x6cc30d(0x2b9)](_0x1853de,_0x39d75e);}else{var _0x381feb;this['_shapeFormulaService']['unregister'](_0x4dabe9),(_0x381feb=this[_0x6cc30d(0x25f)][_0x6cc30d(0x373)](_0x1853de))==null||_0x381feb[_0x6cc30d(0x356)](_0x25b901);}_0x25b901[_0x6cc30d(0x247)](_0x55321d?this['_shapeFormulaService'][_0x6cc30d(0x2a5)](_0x4dabe9):void 0x0,(_0x55321d==null?void 0x0:_0x55321d[_0x6cc30d(0x234)])!==!0x1);}[_0x41d120(0x2c9)](_0x1d9c11){const _0x46e5fa=_0x41d120;let _0x40314e=_0x1d9c11[_0x46e5fa(0x15a)][_0x46e5fa(0x382)](),_0x1534a3=_0x40314e['fill'];if(!_0x1534a3||_0x1534a3[_0x46e5fa(0x342)]!==_0x30544b[_0x46e5fa(0x26d)]||!_0x1534a3[_0x46e5fa(0x1c0)]){_0x1d9c11[_0x46e5fa(0x1ce)](void 0x0);return;}this['_loadShapePictureFill'](_0x1d9c11,_0x40314e);}[_0x41d120(0x1a5)](_0x14182d,_0x51477a){const _0x4049b5=_0x41d120;let _0x4e4159=_0x51477a[_0x4049b5(0x2a0)];if(!_0x4e4159||_0x4e4159[_0x4049b5(0x342)]!==_0x30544b['PictureFill']||!_0x4e4159[_0x4049b5(0x1c0)])return;let _0x157655=_0x4e4159[_0x4049b5(0x1c0)],_0x5a2180=_0x4e4159[_0x4049b5(0x2cb)]??_0x186244[_0x4049b5(0x32a)],_0x2d5a47=this[_0x4049b5(0x2fb)][_0x4049b5(0x37e)](_0x157655,_0x5a2180);if(_0x2d5a47){_0x14182d[_0x4049b5(0x1ce)](_0x2d5a47);return;}this[_0x4049b5(0x165)](_0x14182d,_0x157655,_0x5a2180);}async[_0x41d120(0x165)](_0x34b265,_0x1581a6,_0x5b2064){const _0x37afbe=_0x41d120;let _0x59bf61;try{if(_0x5b2064===_0x186244[_0x37afbe(0x369)])_0x59bf61=await this[_0x37afbe(0x2fb)][_0x37afbe(0x21c)](_0x1581a6);else{if(_0x5b2064===_0x186244[_0x37afbe(0x32a)])try{_0x59bf61=await this['_urlImageService']['getImage'](_0x1581a6);}catch{_0x59bf61=_0x1581a6;}else _0x59bf61=_0x1581a6;}}catch(_0x3b5b8e){console['error']('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3b5b8e);return;}let _0x29db79=new window[(_0x37afbe(0x310))]();_0x29db79[_0x37afbe(0x357)]=()=>{const _0x1b6d28=_0x37afbe;this[_0x1b6d28(0x2fb)][_0x1b6d28(0x230)](_0x1581a6,_0x5b2064,_0x29db79),_0x34b265[_0x1b6d28(0x1ce)](_0x29db79);},_0x29db79['onerror']=()=>{const _0x49b10f=_0x37afbe;console[_0x49b10f(0x340)](_0x49b10f(0x179),_0x1581a6);},_0x29db79[_0x37afbe(0x38a)]=_0x59bf61;}};Mi=Y([J(0x0,_0x4af33c),J(0x1,_0x11aaeb(_0x24791d)),J(0x2,_0x11aaeb(_0x3bb114)),J(0x3,_0x39d4f5),J(0x4,_0x59cbaa),J(0x5,_0x11aaeb(Q)),J(0x6,_0x11aaeb(_0x2e4dd9))],Mi);let Ni=class extends _0x551e8f{constructor(_0x31ab27,_0x4c0a36,_0x5e2de3){const _0x30937c=_0x41d120;super(),this[_0x30937c(0x1fb)]=_0x31ab27,this[_0x30937c(0x25e)]=_0x4c0a36,this[_0x30937c(0x328)]=_0x5e2de3,this[_0x30937c(0x2c1)]();}[_0x41d120(0x2c1)](){const _0x44b51d=_0x41d120;this[_0x44b51d(0x38b)](this[_0x44b51d(0x1fb)][_0x44b51d(0x29e)][_0x44b51d(0x29a)](this[_0x44b51d(0x1fb)][_0x44b51d(0x29e)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x3b8aca,_0x48f556,_0x12c319)=>{const _0x47706c=_0x44b51d;var _0x27c8eb;let {unitId:_0x781493,scene:_0x3b2ced,skeleton:_0x38bb30}=_0x48f556,{pageIndex:_0x460fd2}=_0x48f556,_0xd9f30e=(_0x27c8eb=this['_drawingManagerService'][_0x47706c(0x182)](_0x781493))==null?void 0x0:_0x27c8eb[_0x781493],_0x38869a=Pi(this['_docPrintInterceptorService'],_0x38bb30,_0x460fd2);return _0xd9f30e==null||_0xd9f30e['order']['forEach'](_0xe80426=>{const _0x32a80d=_0x47706c;if(_0x38869a&&!_0x38869a[_0x32a80d(0x2c8)](_0xe80426))return;let _0x121c56=_0xd9f30e[_0x32a80d(0x2ee)][_0xe80426];_0x121c56[_0x32a80d(0x220)]===_0x5c59f7[_0x32a80d(0x21f)]&&!_0x121c56[_0x32a80d(0x1e4)]&&this[_0x32a80d(0x328)]['renderDrawingShape'](_0x121c56,_0x3b2ced);}),_0x12c319(_0x3b8aca);}}));}};Ni=Y([J(0x0,_0x11aaeb(_0x492542)),J(0x1,_0x4af33c),J(0x2,_0x11aaeb(Mi))],Ni);function Pi(_0x32a3e3,_0x4c9c2b,_0x39fc6a){const _0x98128f=_0x41d120;var _0x321bfd,_0x40651e;let _0x15d8be=_0x32a3e3;if(_0x15d8be[_0x98128f(0x237)])return _0x15d8be[_0x98128f(0x237)](_0x4c9c2b,_0x39fc6a);let _0x306a6b=_0x4c9c2b[_0x98128f(0x288)]();if(!_0x306a6b||_0x306a6b[_0x98128f(0x31a)][_0x98128f(0x28d)]<=0x1||_0x39fc6a==null)return null;let _0x4f7770=new Set(),_0x347ad5=_0x306a6b[_0x98128f(0x31a)][_0x39fc6a];if(!_0x347ad5)return _0x4f7770;Fi(_0x347ad5,_0x4f7770);let _0x78d757=(_0x321bfd=_0x306a6b[_0x98128f(0x1c4)][_0x98128f(0x373)](_0x347ad5[_0x98128f(0x212)]))==null?void 0x0:_0x321bfd[_0x98128f(0x373)](_0x347ad5[_0x98128f(0x313)]),_0x20246e=(_0x40651e=_0x306a6b[_0x98128f(0x256)][_0x98128f(0x373)](_0x347ad5[_0x98128f(0x378)]))==null?void 0x0:_0x40651e[_0x98128f(0x373)](_0x347ad5[_0x98128f(0x313)]);return _0x78d757&&Fi(_0x78d757,_0x4f7770),_0x20246e&&Fi(_0x20246e,_0x4f7770),_0x4f7770;}function Fi(_0x50f620,_0x2aa6fe){const _0x1191ed=_0x41d120;for(let _0x1c68e3 of _0x50f620['skeDrawings']['keys']())_0x2aa6fe[_0x1191ed(0x389)](_0x1c68e3);for(let _0x15ac4a of _0x50f620['skeTables'][_0x1191ed(0x35b)]())for(let _0x163c7d of _0x15ac4a[_0x1191ed(0x2af)])for(let _0x3bb088 of _0x163c7d[_0x1191ed(0x305)])Fi(_0x3bb088,_0x2aa6fe);}const Ii=_0x41d120(0x198);function _0x8115(_0xaab506,_0x5cf606){_0xaab506=_0xaab506-0x157;const _0x1257e4=_0x1257();let _0x8115e1=_0x1257e4[_0xaab506];return _0x8115e1;}let Li=class extends _0x551e8f{constructor(_0x1e78ea,_0x2910df,_0x5e22f7,_0x38a5aa,_0x411383,_0x5d86cf){const _0x417189=_0x41d120;super(),this[_0x417189(0x314)]=_0x1e78ea,this['_ribbonService']=_0x2910df,this[_0x417189(0x25e)]=_0x5e22f7,this[_0x417189(0x2b5)]=_0x38a5aa,this['_renderManagerService']=_0x411383,this[_0x417189(0x2cc)]=_0x5d86cf,Z(this,_0x417189(0x1c9),!0x1),this['_menuManagerService']['mergeMenu'](ri),this[_0x417189(0x38b)](_0x1c7696(this['_drawingManagerService'][_0x417189(0x38c)][_0x417189(0x1f8)](()=>this[_0x417189(0x162)]()))),this[_0x417189(0x162)]();}[_0x41d120(0x35a)](){const _0x43e4d6=_0x41d120;this[_0x43e4d6(0x2cc)][_0x43e4d6(0x222)](!0x1,Ii),this['_hide'](),super[_0x43e4d6(0x35a)]();}['_update'](){const _0x2b6180=_0x41d120;var _0x456283;let _0x4a6879=this[_0x2b6180(0x25e)]['getFocusDrawings'](),_0x304fbf=_0x4a6879[_0x2b6180(0x28d)]===0x1?_0x4a6879[0x0]:void 0x0;if((_0x304fbf==null?void 0x0:_0x304fbf[_0x2b6180(0x220)])!==_0x5c59f7[_0x2b6180(0x21f)]||this[_0x2b6180(0x2b5)][_0x2b6180(0x227)](_0x304fbf['unitId'])!==_0x4d852a[_0x2b6180(0x2d7)]){this['_shapeFloatingToolbarService'][_0x2b6180(0x222)](!0x1,Ii),this['_hide']();return;}let _0x44fbb1=_0x308562((_0x456283=this['_renderManagerService']['getRenderUnitById'](_0x304fbf['unitId']))==null?void 0x0:_0x456283[_0x2b6180(0x16e)][_0x2b6180(0x1e5)]())===_0x2b6180(0x335);if(this[_0x2b6180(0x2cc)][_0x2b6180(0x222)](_0x44fbb1,Ii),_0x44fbb1){this[_0x2b6180(0x181)]();return;}this[_0x2b6180(0x1c9)]||(this['_visible']=!0x0,this[_0x2b6180(0x1ad)]['showContextualTab'](Xn,{'activate':!0x0}));}[_0x41d120(0x181)](){const _0x320a15=_0x41d120;this[_0x320a15(0x1c9)]&&(this['_visible']=!0x1,this['_ribbonService']['hideContextualTab'](Xn),this['_ribbonService'][_0x320a15(0x1ea)]([]));}};Li=Y([J(0x0,_0x1c8406),J(0x1,_0x192f31),J(0x2,_0x4af33c),J(0x3,_0x4e0d4e),J(0x4,_0x48f112),J(0x5,_0x11aaeb(_0x32780b))],Li);function Ri(_0x4c7b71,_0x43d4f9){const _0x3dc263=_0x41d120;let _0x513273=_0x4c7b71;for(;_0x513273;){if(_0x43d4f9(_0x513273))return _0x513273;_0x513273=typeof _0x513273[_0x3dc263(0x244)]==_0x3dc263(0x1d5)?_0x513273[_0x3dc263(0x244)]():null;}return null;}function zi(_0x58cbcd){return Ri(_0x58cbcd,_0x455b56=>_0x455b56 instanceof ki);}function Bi(_0x3068ed){return(_0x3068ed==null?void 0x0:_0x3068ed['formulaBinding'])==null;}let Vi=class extends _0x551e8f{constructor(_0x42d621,_0x431046,_0x37a769,_0x489e2d,_0x201abf,_0x57d398){const _0x38a7e6=_0x41d120;super(),this['_context']=_0x42d621,this['_shapeTextEditingService']=_0x431046,this[_0x38a7e6(0x25e)]=_0x37a769,this[_0x38a7e6(0x17d)]=_0x489e2d,this[_0x38a7e6(0x2c5)]=_0x201abf,this[_0x38a7e6(0x2ad)]=_0x57d398,Z(this,_0x38a7e6(0x235),null),Z(this,'_layoutInteraction',null),this[_0x38a7e6(0x15e)](),this[_0x38a7e6(0x171)](),this[_0x38a7e6(0x2b7)]();}[_0x41d120(0x35a)](){const _0x728bbe=_0x41d120;this['_endLayoutInteraction'](),super[_0x728bbe(0x35a)]();}[_0x41d120(0x15e)](){const _0x23910d=_0x41d120;let {scene:_0x18c6d8}=this[_0x23910d(0x325)];this[_0x23910d(0x38b)](_0x18c6d8[_0x23910d(0x283)][_0x23910d(0x2a2)]((_0x5319bc,_0x1c1c00)=>{const _0x59fe49=_0x23910d;let {offsetX:_0x28c491,offsetY:_0x104cb2}=_0x5319bc,_0x58089c=_0x1f43bb[_0x59fe49(0x190)]([_0x28c491,_0x104cb2]),_0x3efc14=zi(_0x18c6d8[_0x59fe49(0x324)](_0x58089c))??this['_getFocusedShapeAtPoint'](_0x58089c);if(_0x3efc14){_0x1c1c00[_0x59fe49(0x284)]();let _0x4c6d17=this[_0x59fe49(0x2ad)][_0x59fe49(0x2b3)](_0x3efc14[_0x59fe49(0x1a1)],_0x3efc14[_0x59fe49(0x168)],_0x3efc14[_0x59fe49(0x22d)]);if(!_0x4c6d17||_0x5d2da3(_0x4c6d17[_0x59fe49(0x195)]())||!Bi(_0x4c6d17[_0x59fe49(0x382)]()))return;this['_shapeTextEditingService'][_0x59fe49(0x2ab)]({'visible':!0x0,'unitId':_0x3efc14[_0x59fe49(0x1a1)],'subUnitId':_0x3efc14['subUnitId'],'shapeId':_0x3efc14[_0x59fe49(0x22d)],'shapeKey':_0x3efc14[_0x59fe49(0x379)]});}}));}[_0x41d120(0x24b)](_0x26e328){const _0x4ca753=_0x41d120;let {scene:_0x45f659}=this['_context'];return this[_0x4ca753(0x25e)][_0x4ca753(0x2eb)]()[_0x4ca753(0x1ca)](_0x5e59e0=>_0x45f659[_0x4ca753(0x173)](_0x1b0d92(_0x5e59e0)))[_0x4ca753(0x241)](_0x11eeb5=>_0x11eeb5 instanceof ki&&_0x11eeb5[_0x4ca753(0x257)](_0x26e328))??null;}['_initSelection'](){const _0x387ea3=_0x41d120;this[_0x387ea3(0x38b)](this['_drawingManagerService'][_0x387ea3(0x38c)]['subscribe'](_0x56743e=>{const _0x186651=_0x387ea3;if(_0x56743e[_0x186651(0x28d)]===0x1){let _0x3819d4=_0x56743e[0x0],_0x2736d2=this[_0x186651(0x25e)][_0x186651(0x214)](_0x3819d4);if((_0x2736d2==null?void 0x0:_0x2736d2[_0x186651(0x220)])===_0x5c59f7[_0x186651(0x21f)]){let _0x3eba16=this[_0x186651(0x233)][_0x186651(0x2da)]();if((_0x3eba16==null?void 0x0:_0x3eba16['shapeId'])===_0x3819d4['drawingId']&&_0x3eba16[_0x186651(0x240)])return;_0x5d2da3(this['_docsShapeService'][_0x186651(0x195)](_0x3819d4[_0x186651(0x1a1)],_0x3819d4[_0x186651(0x168)],_0x3819d4[_0x186651(0x2e2)]))&&this[_0x186651(0x233)][_0x186651(0x2ab)](null);}else this['_shapeTextEditingService'][_0x186651(0x1ac)]();}else this[_0x186651(0x233)][_0x186651(0x1ac)]();})),this[_0x387ea3(0x38b)](this[_0x387ea3(0x25e)][_0x387ea3(0x2f7)]['subscribe'](_0x131136=>{const _0xb2c44f=_0x387ea3;let _0x6be893=this[_0xb2c44f(0x233)][_0xb2c44f(0x2da)]();_0x6be893&&_0x131136[_0xb2c44f(0x19d)](_0x296fff=>_0x296fff[_0xb2c44f(0x2e2)]===_0x6be893[_0xb2c44f(0x22d)])&&this[_0xb2c44f(0x233)]['setEditing'](null);}));}['_initEditingParams'](){const _0xf11912=_0x41d120;this[_0xf11912(0x38b)](this[_0xf11912(0x233)][_0xf11912(0x33d)][_0xf11912(0x1f8)](_0x4ec6ad=>{const _0x3c0a6d=_0xf11912;(_0x4ec6ad==null?void 0x0:_0x4ec6ad[_0x3c0a6d(0x240)])===!0x0&&_0x4ec6ad['unitId']===this[_0x3c0a6d(0x325)][_0x3c0a6d(0x1a1)]?this[_0x3c0a6d(0x1fe)]??=this['_docLayoutInteractionService'][_0x3c0a6d(0x23e)]():this[_0x3c0a6d(0x1ee)]();let {scene:_0x575e7a}=this[_0x3c0a6d(0x325)];if(this[_0x3c0a6d(0x235)]){let _0x8d10ea=_0x575e7a[_0x3c0a6d(0x173)](this[_0x3c0a6d(0x235)]);_0x8d10ea&&_0x8d10ea[_0x3c0a6d(0x2ab)](!0x1);}if(_0x4ec6ad){let _0x349f71=!!_0x4ec6ad[_0x3c0a6d(0x240)],_0x80bbd7=_0x575e7a[_0x3c0a6d(0x173)](_0x4ec6ad[_0x3c0a6d(0x38d)]);_0x80bbd7&&(_0x80bbd7[_0x3c0a6d(0x2ab)](_0x349f71),this[_0x3c0a6d(0x235)]=_0x4ec6ad['shapeKey']),this[_0x3c0a6d(0x17d)][_0x3c0a6d(0x365)](_0x3cc1bc,_0x349f71);}else this[_0x3c0a6d(0x235)]=null,this['_contextService'][_0x3c0a6d(0x365)](_0x3cc1bc,!0x1);}));}['_endLayoutInteraction'](){const _0x206ade=_0x41d120;var _0x4351ff;(_0x4351ff=this[_0x206ade(0x1fe)])==null||_0x4351ff[_0x206ade(0x35a)](),this[_0x206ade(0x1fe)]=null;}};Vi=Y([J(0x1,_0x11aaeb(Q)),J(0x2,_0x4af33c),J(0x3,_0x2c4674),J(0x4,_0x11aaeb(_0x5e8b0c)),J(0x5,_0x11aaeb(_0x24791d))],Vi);let Hi=class extends _0x598e79{constructor(_0x41de2b,_0x5b6057,_0x4e703e,_0x1eea8d,_0x5d93ad,_0x3e69d6,_0x7d7398,_0x2e41c6,_0x51bed7,_0x5011ed){super(_0x41de2b,_0x5b6057,_0x4e703e,_0x1eea8d,_0x5d93ad,_0x3e69d6,_0x7d7398,_0x2e41c6,_0x51bed7,_0x5011ed,{'componentKey':$n,'editorUnitId':Qn});}};Hi=Y([J(0x1,_0x11aaeb(_0x4f1043)),J(0x2,_0x11aaeb(_0x561a66)),J(0x3,_0x11aaeb(_0x42e24b)),J(0x4,_0xa37c8c),J(0x5,_0x11aaeb(_0x476746)),J(0x6,_0x11aaeb(_0xd7258d)),J(0x7,_0x11aaeb(_0x29730c)),J(0x8,_0x11aaeb(_0xba2b22)),J(0x9,_0x11aaeb(Q))],Hi);let Ui=class extends _0x551e8f{constructor(_0x161e33,_0x3bf77c,_0x36446a,_0x4dff39){const _0x243c20=_0x41d120;super(),this[_0x243c20(0x1de)]=_0x161e33,this['_renderManagerService']=_0x3bf77c,this['_drawingManagerService']=_0x36446a,this['_docDrawingShapeRenderController']=_0x4dff39,this[_0x243c20(0x25b)]();}['_initialize'](){const _0xee077a=_0x41d120;this[_0xee077a(0x38b)](this[_0xee077a(0x25e)][_0xee077a(0x201)][_0xee077a(0x1f8)](_0x318af6=>this['_insertShapes'](_0x318af6))),this[_0xee077a(0x38b)](this[_0xee077a(0x25e)][_0xee077a(0x28f)][_0xee077a(0x1f8)](_0x564d34=>{const _0x49d8a7=_0xee077a;_0x564d34[_0x49d8a7(0x35c)](_0x1d44f5=>this[_0x49d8a7(0x374)](_0x1d44f5));})),this[_0xee077a(0x38b)](this[_0xee077a(0x1de)]['onCommandExecuted'](_0x25bad1=>{const _0x535e60=_0xee077a;if(_0x25bad1['id']!==_0x4aba9e['id'])return;let {unitId:_0x1cbabd,shapeId:_0x5cb0dd}=_0x25bad1[_0x535e60(0x1e3)];this[_0x535e60(0x35f)]({'unitId':_0x1cbabd,'subUnitId':_0x1cbabd,'drawingId':_0x5cb0dd});}));}[_0x41d120(0x176)](_0x2b0672){const _0x2bc08f=_0x41d120;_0x2b0672[_0x2bc08f(0x35c)](_0x1be1db=>{const _0x37aa7f=_0x2bc08f;let _0x462197=this[_0x37aa7f(0x30e)](_0x1be1db[_0x37aa7f(0x1a1)]);if(!_0x462197)return;let _0x35adb0=this[_0x37aa7f(0x25e)][_0x37aa7f(0x214)](_0x1be1db);(_0x35adb0==null?void 0x0:_0x35adb0['drawingType'])===_0x5c59f7[_0x37aa7f(0x21f)]&&this[_0x37aa7f(0x1d6)][_0x37aa7f(0x289)](_0x35adb0,_0x462197[_0x37aa7f(0x219)]);});}[_0x41d120(0x374)](_0x38d22c){const _0x2a7249=_0x41d120;let _0x40cbfe=this[_0x2a7249(0x25e)][_0x2a7249(0x214)](_0x38d22c);if((_0x40cbfe==null?void 0x0:_0x40cbfe['drawingType'])!==_0x5c59f7[_0x2a7249(0x21f)])return;let _0x47e8b9=this[_0x2a7249(0x30e)](_0x38d22c[_0x2a7249(0x1a1)]);if(!_0x47e8b9||_0x40cbfe[_0x2a7249(0x2ed)]==null)return;let _0x542631=_0x1b0d92(_0x38d22c),_0x565aff=_0x47e8b9['scene'][_0x2a7249(0x173)](_0x542631);_0x565aff&&(_0x565aff[_0x2a7249(0x16f)](_0x40cbfe[_0x2a7249(0x1cc)]),_0x565aff[_0x2a7249(0x25c)](_0x40cbfe['prstGeom']),_0x565aff[_0x2a7249(0x1d1)](!0x0));}[_0x41d120(0x35f)](_0x52c631){const _0x187b47=_0x41d120;let _0x9ab948=this['_getSceneByUnitId'](_0x52c631['unitId']);if(!_0x9ab948)return;let _0x282507=_0x1b0d92(_0x52c631),_0x12218e=_0x9ab948[_0x187b47(0x219)]['getObjectIncludeInGroup'](_0x282507);_0x12218e&&(this['_docDrawingShapeRenderController'][_0x187b47(0x2c9)](_0x12218e),this['_docDrawingShapeRenderController']['refreshFormulaPresentation'](_0x12218e,{'unitId':_0x52c631['unitId'],'subUnitId':_0x52c631[_0x187b47(0x168)],'shapeId':_0x52c631[_0x187b47(0x2e2)]}),_0x12218e[_0x187b47(0x1d1)](!0x0));}[_0x41d120(0x30e)](_0x265194){const _0x4cf1f6=_0x41d120;if(_0x265194==null)return null;let _0x302f5b=this[_0x4cf1f6(0x364)]['getRenderUnitById'](_0x265194),_0x7196e4=_0x302f5b==null?void 0x0:_0x302f5b[_0x4cf1f6(0x219)];return _0x7196e4==null?null:{'scene':_0x7196e4};}};Ui=Y([J(0x0,_0xa37c8c),J(0x1,_0x48f112),J(0x2,_0x4af33c),J(0x3,_0x11aaeb(Mi))],Ui);let Wi=class extends _0x551e8f{constructor(_0x17789a,_0x20f44e,_0x4e65a5,_0x56df12,_0x374f84,_0x17c6fa,_0x2402cc,_0x2feb6f,_0x25a5ac,_0x35286e,_0x363a8a,_0x538e4b){const _0x4db93a=_0x41d120;super(),this[_0x4db93a(0x2b5)]=_0x17789a,this[_0x4db93a(0x2f3)]=_0x20f44e,this['_menuManagerService']=_0x4e65a5,this[_0x4db93a(0x2ad)]=_0x56df12,this[_0x4db93a(0x34b)]=_0x374f84,this[_0x4db93a(0x1de)]=_0x17c6fa,this[_0x4db93a(0x25e)]=_0x2402cc,this[_0x4db93a(0x18d)]=_0x2feb6f,this[_0x4db93a(0x364)]=_0x25a5ac,this['_contextService']=_0x35286e,this[_0x4db93a(0x233)]=_0x363a8a,this['_permissionService']=_0x538e4b,Z(this,_0x4db93a(0x2ba),null),Z(this,_0x4db93a(0x37f),null),Z(this,_0x4db93a(0x360),!0x1),Z(this,_0x4db93a(0x2fa),0x0),Z(this,_0x4db93a(0x334),new Map()),Z(this,_0x4db93a(0x368),new Map()),this[_0x4db93a(0x158)](),this['disposeWithMe'](this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x4d852a[_0x4db93a(0x2d7)])[_0x4db93a(0x1f8)](_0x37e2aa=>{const _0x4cd9f7=_0x4db93a;if(!_0x37e2aa){var _0x340ee3;(_0x340ee3=this['_sidebarDisposable'])==null||_0x340ee3[_0x4cd9f7(0x35a)]();}})),this['_registerOperations'](),this[_0x4db93a(0x38b)](_0x4be971(this[_0x4db93a(0x364)],_0x4d852a[_0x4db93a(0x2d7)],_0x1c4686=>this[_0x4db93a(0x228)](_0x1c4686))),this[_0x4db93a(0x38b)](this[_0x4db93a(0x233)]['editingParams$']['subscribe'](_0x29fe60=>{const _0x4663be=_0x4db93a;_0x29fe60&&this[_0x4663be(0x192)](void 0x0,!0x0);})),this[_0x4db93a(0x38b)](this[_0x4db93a(0x292)][_0x4db93a(0x353)][_0x4db93a(0x1f8)](()=>{const _0x310c42=_0x4db93a;this[_0x310c42(0x25e)][_0x310c42(0x2eb)]()[_0x310c42(0x19d)](_0xfd75d2=>_0xfd75d2[_0x310c42(0x220)]===_0x5c59f7['DRAWING_SHAPE']&&this[_0x310c42(0x2b5)][_0x310c42(0x227)](_0xfd75d2['unitId'])===_0x4d852a[_0x310c42(0x2d7)]&&!this[_0x310c42(0x343)](_0xfd75d2[_0x310c42(0x1a1)],_0xfd75d2['drawingId']))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x310c42(0x366)]());}));}[_0x41d120(0x158)](){const _0x1e9394=_0x41d120;this[_0x1e9394(0x314)][_0x1e9394(0x1b4)](ii);}[_0x41d120(0x1d2)](_0x3d5380,_0x4c2e6b,_0x4a0046,_0x4ca036){const _0x36e980=_0x41d120;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':tr['id'],'commandParams':{'unitId':_0x3d5380,'subUnitId':_0x4c2e6b,'drawingId':_0x4a0046},'disable':_0x4ca036===_0x5c59f7[_0x36e980(0x350)]},{'label':_0x36e980(0x297),'index':0x1,'commandId':_0x4c1db7['id'],'commandParams':{'unitId':_0x3d5380,'drawings':[{'unitId':_0x3d5380,'subUnitId':_0x4c2e6b,'drawingId':_0x4a0046}]},'disable':!0x1},{'label':_0x36e980(0x2db),'index':0x2,'commandId':si['id'],'commandParams':{'unitId':_0x3d5380,'subUnitId':_0x4c2e6b,'drawingId':_0x4a0046},'disable':!0x1}];}['_getShapeInfo'](_0x2c609f,_0x3b7c41,_0x4f106a){const _0x2a17dc=_0x41d120;let _0x5876e9=this[_0x2a17dc(0x2ad)]['getShapeTypeById'](_0x2c609f,_0x3b7c41,_0x4f106a),_0x1d314f=this[_0x2a17dc(0x2ad)][_0x2a17dc(0x16c)](_0x2c609f,_0x3b7c41,_0x4f106a);return _0x5876e9!==void 0x0&&_0x1d314f!==void 0x0?{'shapeData':_0x1d314f,'shapeId':_0x4f106a,'shapeType':_0x5876e9,'unitId':_0x2c609f,'subUnitId':_0x3b7c41,'version':this[_0x2a17dc(0x2fa)],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0xbf423b,_0x65f6ae=!0x1){const _0x2806ce=_0x41d120;if(_0xbf423b==null){[...this[_0x2806ce(0x334)][_0x2806ce(0x15c)]()][_0x2806ce(0x35c)](_0x3c364e=>this[_0x2806ce(0x192)](_0x3c364e,_0x65f6ae));return;}let _0x4bf9d9=this[_0x2806ce(0x334)]['get'](_0xbf423b);if(_0x4bf9d9){for(let _0x2d024c=_0x4bf9d9[_0x2806ce(0x28d)]-0x1;_0x2d024c>=0x0;--_0x2d024c){let _0x415e43=_0x4bf9d9[_0x2d024c];(_0x65f6ae||_0x415e43[_0x2806ce(0x245)]())&&(_0x415e43[_0x2806ce(0x35a)](),_0x4bf9d9['splice'](_0x2d024c,0x1));}_0x4bf9d9[_0x2806ce(0x28d)]===0x0&&(this[_0x2806ce(0x334)]['delete'](_0xbf423b),this[_0x2806ce(0x368)][_0x2806ce(0x356)](_0xbf423b));}}['_getDisposePopups'](_0x1a6e55){const _0xdffad5=_0x41d120;let _0xeec876=this[_0xdffad5(0x334)][_0xdffad5(0x373)](_0x1a6e55);if(_0xeec876)return _0xeec876;let _0x255e9d=[];return this[_0xdffad5(0x334)][_0xdffad5(0x2b9)](_0x1a6e55,_0x255e9d),_0x255e9d;}[_0x41d120(0x228)](_0x45dc18){const _0x203cf7=_0x41d120;var _0x19d7a4;let _0x3e11b9=new _0x1a6d15(),_0x294575=(_0x19d7a4=this[_0x203cf7(0x364)]['getAllRenderersOfType'](_0x4d852a[_0x203cf7(0x2d7)])[_0x203cf7(0x241)](_0x460fd5=>_0x460fd5['scene'][_0x203cf7(0x34e)]()===_0x45dc18))==null?void 0x0:_0x19d7a4['unitId'];return _0x294575?(_0x3e11b9[_0x203cf7(0x389)](_0x45dc18[_0x203cf7(0x23d)][_0x203cf7(0x1f8)](()=>this['_handleCreateControl'](_0x45dc18,_0x294575))),_0x3e11b9[_0x203cf7(0x389)](_0x45dc18['clearControl$'][_0x203cf7(0x1f8)](()=>{const _0x3dd31a=_0x203cf7;this[_0x3dd31a(0x192)](_0x294575),queueMicrotask(()=>{const _0x868f5d=_0x3dd31a;_0x45dc18['getSelectedObjectMap']()[_0x868f5d(0x30c)]>0x0||(this[_0x868f5d(0x17d)][_0x868f5d(0x365)](_0x48f297,!0x1),this[_0x868f5d(0x25e)][_0x868f5d(0x26f)](null));});})),_0x3e11b9[_0x203cf7(0x389)](_0x45dc18[_0x203cf7(0x337)][_0x203cf7(0x1f8)](()=>{const _0x5e8a98=_0x203cf7;this[_0x5e8a98(0x192)](_0x294575,!0x0);})),_0x3e11b9):_0x3e11b9;}[_0x41d120(0x31d)](_0x2d4e00,_0x1fb55f){const _0x27ac23=_0x41d120;let _0x3cdcd6=_0x2d4e00[_0x27ac23(0x355)]();if(this[_0x27ac23(0x360)]){this['_clearPopups'](_0x1fb55f,!0x0);return;}if(_0x3cdcd6[_0x27ac23(0x30c)]>0x1){this['_clearPopups'](_0x1fb55f);return;}let _0x353869=_0x3cdcd6[_0x27ac23(0x35b)]()[_0x27ac23(0x354)]()[_0x27ac23(0x255)];if(!_0x353869){this[_0x27ac23(0x192)](_0x1fb55f);return;}let _0x585cd0=this[_0x27ac23(0x25e)][_0x27ac23(0x1fd)](_0x353869[_0x27ac23(0x379)]);if(!_0x585cd0||_0x585cd0[_0x27ac23(0x220)]!==_0x5c59f7[_0x27ac23(0x21f)]){this[_0x27ac23(0x192)](_0x1fb55f);return;}let {unitId:_0x2efb1d,subUnitId:_0x7ec6fb,drawingId:_0x1512a9,drawingType:_0x552172}=_0x585cd0;if(!this[_0x27ac23(0x343)](_0x2efb1d,_0x1512a9)){this['_clearPopups'](_0x1fb55f,!0x0);return;}let _0x3fd24a=this[_0x27ac23(0x2f1)](_0x2efb1d,_0x7ec6fb,_0x1512a9);if(!_0x3fd24a){this[_0x27ac23(0x192)](_0x1fb55f);return;}let _0x3d6e35=this[_0x27ac23(0x334)][_0x27ac23(0x373)](_0x1fb55f),_0x4b397a=_0x2efb1d+':'+_0x7ec6fb+':'+_0x1512a9;if(this[_0x27ac23(0x368)][_0x27ac23(0x373)](_0x1fb55f)===_0x4b397a&&_0x3d6e35&&_0x3d6e35[_0x27ac23(0x28d)]>0x0)return;this[_0x27ac23(0x192)](_0x1fb55f);let _0x2989de=this[_0x27ac23(0x364)][_0x27ac23(0x239)](_0x2efb1d),_0x1056d6=((_0x2989de==null?void 0x0:_0x2989de[_0x27ac23(0x180)])===!0x1?_0x2989de[_0x27ac23(0x327)](_0x561a66):this['_docCanvasPopManagerService'])[_0x27ac23(0x187)](_0x353869,{'componentKey':hi,'direction':_0x27ac23(0x37a),'offset':[0x0,_0x148206],'extraProps':{'unitId':_0x2efb1d,'subUnitId':_0x7ec6fb,'drawingId':_0x1512a9,'drawingType':_0x552172,'shapeType':_0x3fd24a[_0x27ac23(0x25d)],'shapeData':_0x3fd24a['shapeData']}},_0x2efb1d);this[_0x27ac23(0x38b)](_0x1056d6),this[_0x27ac23(0x2c6)](_0x1fb55f)[_0x27ac23(0x2f5)](_0x1056d6),this[_0x27ac23(0x368)][_0x27ac23(0x2b9)](_0x1fb55f,_0x4b397a),this['_drawingManagerService']['getFocusDrawings']()['some'](_0x278087=>_0x278087[_0x27ac23(0x1a1)]===_0x2efb1d&&_0x278087['subUnitId']===_0x7ec6fb&&_0x278087[_0x27ac23(0x2e2)]===_0x1512a9)||this[_0x27ac23(0x25e)][_0x27ac23(0x26f)]([{'unitId':_0x2efb1d,'subUnitId':_0x7ec6fb,'drawingId':_0x1512a9}]);}[_0x41d120(0x343)](_0x4d7edf,_0x1316b8){const _0x352a50=_0x41d120;let _0x571152=this[_0x352a50(0x2b5)][_0x352a50(0x2f6)](_0x4d7edf,_0x4d852a[_0x352a50(0x2d7)]);if(!_0x571152)return!0x1;let _0x17fd20=_0x7077b2(_0x571152,_0x1316b8);return _0x510802(this[_0x352a50(0x292)],_0x4d7edf,[..._0x15ba16(_0x571152,_0x17fd20,_0x352a50(0x2a6),_0x1316b8),_0x459888(_0x17fd20,_0x352a50(0x2a6),_0x1316b8)]);}[_0x41d120(0x2e4)](){const _0xbdca00=_0x41d120;this[_0xbdca00(0x38b)](this['_commandService'][_0xbdca00(0x1ab)](_0x2fd34f=>{const _0xc00069=_0xbdca00;if(_0x2fd34f['id']===tr['id']){let {unitId:_0x468de6,subUnitId:_0x20df16,drawingId:_0x4aeb28}=_0x2fd34f[_0xc00069(0x1e3)];this['_shapeEditPanelVersion']+=0x1,this[_0xc00069(0x37f)]=this[_0xc00069(0x2f1)](_0x468de6,_0x20df16,_0x4aeb28),this['_clearPopups'](void 0x0,!0x0),this[_0xc00069(0x20a)]();}if(_0x2fd34f['id']===si['id']&&(this[_0xc00069(0x37f)]=null,this[_0xc00069(0x366)]()),_0x2fd34f['id']===_0x4aba9e['id']){let {unitId:_0x219280,shapeId:_0x2f1d4f}=_0x2fd34f['params'];if(this[_0xc00069(0x37f)]&&this[_0xc00069(0x37f)][_0xc00069(0x22d)]===_0x2f1d4f){let _0x3a1a7e=this[_0xc00069(0x2f1)](_0x219280,this[_0xc00069(0x37f)]['subUnitId'],_0x2f1d4f);_0x3a1a7e&&(this[_0xc00069(0x2fa)]+=0x1,_0x3a1a7e['version']=this[_0xc00069(0x2fa)],this['_activeShapeInfo']=_0x3a1a7e,this[_0xc00069(0x360)]&&this[_0xc00069(0x20a)]());}}})),this[_0xbdca00(0x38b)](this[_0xbdca00(0x25e)]['focus$'][_0xbdca00(0x1f8)](_0x5ad0af=>{const _0x264896=_0xbdca00;if(this[_0x264896(0x360)]===!0x1)return;if(_0x5ad0af[_0x264896(0x28d)]===0x0){this[_0x264896(0x37f)]=null,this[_0x264896(0x366)]();return;}if(_0x5ad0af[_0x264896(0x28d)]===0x1&&_0x5ad0af[0x0][_0x264896(0x220)]===_0x5c59f7[_0x264896(0x21f)]&&(this[_0x264896(0x2fa)]+=0x1,this[_0x264896(0x37f)]=this[_0x264896(0x2f1)](_0x5ad0af[0x0][_0x264896(0x1a1)],_0x5ad0af[0x0][_0x264896(0x168)],_0x5ad0af[0x0][_0x264896(0x2e2)]),this[_0x264896(0x37f)])){this['_openShapeEditPanel']();return;}let _0xea0bb0=_0x5ad0af[_0x264896(0x209)](_0x5a817c=>_0x5a817c[_0x264896(0x220)]===_0x5c59f7['DRAWING_SHAPE']);if(_0x5ad0af[_0x264896(0x28d)]>0x1&&_0xea0bb0[_0x264896(0x28d)]===_0x5ad0af['length']){if(this['_shapeEditPanelVersion']+=0x1,this[_0x264896(0x37f)]=this[_0x264896(0x2f1)](_0x5ad0af[0x0][_0x264896(0x1a1)],_0x5ad0af[0x0][_0x264896(0x168)],_0x5ad0af[0x0][_0x264896(0x2e2)]),this[_0x264896(0x37f)]){this[_0x264896(0x20a)]();return;}}else{if(this[_0x264896(0x2fa)]+=0x1,this[_0x264896(0x37f)]=this[_0x264896(0x2f1)](_0x5ad0af[0x0][_0x264896(0x1a1)],_0x5ad0af[0x0]['subUnitId'],_0x5ad0af[0x0]['drawingId']),this[_0x264896(0x37f)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this['_openShapeEditPanel']();return;}}this[_0x264896(0x366)]();}));}[_0x41d120(0x20a)](){const _0x4d41b0=_0x41d120;this[_0x4d41b0(0x37f)]&&(this[_0x4d41b0(0x2ba)]=this[_0x4d41b0(0x2f3)][_0x4d41b0(0x1c8)]({'id':Yn,'header':{'title':this['_localeService']['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':Yn,...this[_0x4d41b0(0x37f)]},'onClose':()=>{const _0x35f1ce=_0x4d41b0;this[_0x35f1ce(0x25e)][_0x35f1ce(0x26f)](null),this[_0x35f1ce(0x17d)][_0x35f1ce(0x365)](_0x48f297,!0x1),this['_sidebarDisposable']=null;}}),this[_0x4d41b0(0x360)]=!0x0);}['_closeShapeEditPanel'](){const _0x49eee6=_0x41d120;this[_0x49eee6(0x360)]=!0x1,this[_0x49eee6(0x2f3)][_0x49eee6(0x301)](Yn),this[_0x49eee6(0x2ba)]=null,this[_0x49eee6(0x17d)][_0x49eee6(0x365)](_0x48f297,!0x1),this[_0x49eee6(0x25e)][_0x49eee6(0x26f)](null);}};Wi=Y([J(0x0,_0x4e0d4e),J(0x1,_0x11aaeb(_0xd923e6)),J(0x2,_0x1c8406),J(0x3,_0x11aaeb(_0x24791d)),J(0x4,_0x11aaeb(_0x3bb114)),J(0x5,_0xa37c8c),J(0x6,_0x4af33c),J(0x7,_0x11aaeb(_0x561a66)),J(0x8,_0x48f112),J(0x9,_0x2c4674),J(0xa,_0x11aaeb(Q)),J(0xb,_0x51a150)],Wi);let $=class extends _0x5c29c6{constructor(_0x43b945=ci,_0x2cfdbb,_0x431ab6,_0x127a8a,_0x33ff79){const _0xcbbafc=_0x41d120;super(),this[_0xcbbafc(0x376)]=_0x43b945,this[_0xcbbafc(0x386)]=_0x2cfdbb,this[_0xcbbafc(0x1de)]=_0x431ab6,this[_0xcbbafc(0x21d)]=_0x127a8a,this['_renderManagerService']=_0x33ff79;let {menu:_0x50ba9d,..._0x57cbcb}=_0x30eda9({},ci,this[_0xcbbafc(0x376)]);_0x50ba9d&&this[_0xcbbafc(0x21d)][_0xcbbafc(0x33e)](_0xcbbafc(0x260),_0x50ba9d,{'merge':!0x0}),this[_0xcbbafc(0x21d)][_0xcbbafc(0x33e)](_0xcbbafc(0x263),_0x57cbcb),this[_0xcbbafc(0x2b0)]();}[_0x41d120(0x348)](){const _0x5c1d4e=_0x41d120;this[_0x5c1d4e(0x386)][_0x5c1d4e(0x389)]([Ei]),this[_0x5c1d4e(0x386)][_0x5c1d4e(0x373)](Ei),_0x806294(this[_0x5c1d4e(0x386)],[[Wi],[Ui],[Mi],[Ni],[Ai],[ar],[fi],[Q],[Li]]),this[_0x5c1d4e(0x2bd)]();}[_0x41d120(0x1ba)](){const _0x57feaf=_0x41d120;this[_0x57feaf(0x364)][_0x57feaf(0x38f)](_0x4d852a[_0x57feaf(0x2d7)],[Ai]),this['_renderManagerService'][_0x57feaf(0x38f)](_0x4d852a[_0x57feaf(0x2d7)],[Vi]),_0x570121(this[_0x57feaf(0x386)],[[Wi],[Ui],[Mi],[Ni],[ar],[fi],[Q],[Li]]);}[_0x41d120(0x2de)](){const _0xb6e0c5=_0x41d120;this['_renderManagerService']['registerRenderModule'](_0x4d852a[_0xb6e0c5(0x2d7)],[Hi]);}[_0x41d120(0x2b0)](){const _0x33f88c=_0x41d120;[q,si,tr,er,rr,ir][_0x33f88c(0x35c)](_0x17dfba=>this[_0x33f88c(0x38b)](this[_0x33f88c(0x1de)][_0x33f88c(0x375)](_0x17dfba)));}[_0x41d120(0x2bd)](){const _0x176e75=_0x41d120;let _0x3c1d4b=this[_0x176e75(0x386)],_0x2e57c6=_0x3c1d4b[_0x176e75(0x373)](_0x860f6c);this['disposeWithMe'](_0x2e57c6[_0x176e75(0x1bd)](_0x2bd135['CONTENT'],()=>_0x2cb13f(Ti,_0x3c1d4b)));}};Z($,'type',_0x4d852a[_0x41d120(0x2d7)]),Z($,'pluginName',_0x41d120(0x2e5)),Z($,_0x41d120(0x345),ai),Z($,_0x41d120(0x258),oi),$=Y([_0x4cacbc(_0x52790b,_0x5f54a6,_0x22f91b,_0x4d4a79,_0x29d9e5,_0x3c196d,_0x452f87,_0x4c398b,_0x40b485,_0x2296aa),J(0x1,_0x11aaeb(_0x1a3e30)),J(0x2,_0xa37c8c),J(0x3,_0x3c8a54),J(0x4,_0x48f112)],$);export{ii as DocsShapeUIMenuSchema,$ as UniverDocsShapeUIPlugin};
1
+ const _0x16bf5e=_0x5363;(function(_0x596304,_0x3c013a){const _0x5cdd14=_0x5363,_0x414238=_0x596304();while(!![]){try{const _0xd806db=-parseInt(_0x5cdd14(0x34d))/0x1+parseInt(_0x5cdd14(0x128))/0x2+parseInt(_0x5cdd14(0x2d9))/0x3*(-parseInt(_0x5cdd14(0x343))/0x4)+parseInt(_0x5cdd14(0x1a7))/0x5+parseInt(_0x5cdd14(0x32b))/0x6+parseInt(_0x5cdd14(0x347))/0x7+-parseInt(_0x5cdd14(0x2df))/0x8*(parseInt(_0x5cdd14(0x331))/0x9);if(_0xd806db===_0x3c013a)break;else _0x414238['push'](_0x414238['shift']());}catch(_0xa3c555){_0x414238['push'](_0x414238['shift']());}}}(_0x261b,0xebf42));import{FormulaShapeAnimationController as _0x3a602c,MobileShapeEditorControls as _0x5b92b1,MobileShapeEditorService as _0x38f3b5,MobileShapePickerPanel as _0x240761,SHAPE_CHANGE_PICKER_COMPONENT as _0x4afcd7,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2a73fb,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x5b3daa,ShapeEditPanel as _0x5015c8,ShapeFloatingToolbar as _0x5c383f,ShapeFloatingToolbarService as _0x345a12,ShapeFloatingToolbarToggleFactory as _0x558a4c,ShapeFormulaRibbonControl as _0x3d3054,ShapeGroupEnum as _0x2e5f24,ShapePickerDropdown as _0x1d2956,ShapePickerPanel as _0x526005,ShapeQuickStyleGallery as _0x1927de,ShapeStyleRibbonControl as _0x6341fb,ShapeTextEditorContainer as _0x43cf54,ShapeTextFloatMenuRenderControllerBase as _0x2d6c19,ShapeTextFloatToolbar as _0x42d58e,ShapeTextHyperLinkPopupService as _0x2408bc,ShapeTextRibbonControl as _0x8a4229,ToggleShapeFloatingToolbarOperation as _0x36c9d6,UniverShapeEditorMobileUIPlugin as _0xb1c350,UniverShapeEditorUIPlugin as _0x2bfba6,activateDrawingObject as _0x139fb0,bindRenderTransformerLifecycle as _0xeca305,buildShapeTextDataUpdate as _0x411156,clearActiveDrawingObjects as _0x152640,drawFormulaShapeAnimationLayers as _0x3ae758,getDrawingTypeNameKey as _0x363aef,getTextModel as _0x58243d,getTextStyle as _0x2f5a49,normalizeShapeTextModel as _0x4a9cfc,plainShapeTextToDocumentData as _0x2ad81b,prepareShapeTextDocumentData as _0x5f49cc,prepareShapeTextDocumentData as _0x39bbf1,registerShapeFormatPainter as _0x33b5f0,resolveFormulaShapeAutoFitSize as _0x203556,resolveShapeContextualRibbonHostMode as _0x23ca1c,resolveShapeTextDocumentPageHeight as _0x28de7f,resolveShapeTextDocumentRenderLayout as _0x208c0b,resolveShapeTextEditorBehaviorShapeData as _0x4a5314,resolveShapeTextEditorWrapStrategy as _0x103b43,shouldAllowShapeTextEditorHostSizeShrink as _0x1cb49f,shouldClipShapeTextDocument as _0x560777,useFormulaShapeToolbar as _0xfc437f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x31db56,DOC_CONTENT_INSERT_MENU_ID as _0x73acf7,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x4261b3,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3f2bb5,DocCanvasPopManagerService as _0x42fe30,DocEventManagerService as _0x5ef133,DocLayoutInteractionService as _0x408b8e,DocParagraphMenuService as _0x147815,DocPrintInterceptorService as _0x4ccf7e,DocRenderController as _0x269678,DocSelectionRenderService as _0x101f6f,EMPTY_PARAGRAPH_MENU_ID as _0x26aab8,INSERT_BELLOW_MENU_ID as _0x22e8c4,UniverDocsMobileUIPlugin as _0x4f7aa3,UniverDocsUIPlugin as _0x1739f6,VIEWPORT_KEY as _0x1718ab}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x58e59d,ComponentManager as _0x6a795a,ContextMenuGroup as _0x36c690,ContextMenuPosition as _0xf321b5,FloatingObjectToolbarPosition as _0x1919f0,FormatPainterSessionService as _0xbbc0b9,IMenuManagerService as _0x358623,IRibbonService as _0x2e4512,ISidebarService as _0x2e36b7,IUIPartsService as _0x278843,IconManager as _0x3df9c1,MenuItemType as _0x124b8a,MenuManagerPosition as _0x32bcc5,MobileMenu as _0x2eea3a,ObjectPermissionButton as _0x976fdd,RibbonInsertGroup as _0x4b0cb4,connectInjector as _0x4bde98,getMenuHiddenObservable as _0x1bbe01,useDependency as _0x10e4db,useObservable as _0x39adc0}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x28a73b,DEFAULT_DOC_SHAPE_WIDTH as _0x248fe1,DocShapeAnchorPosition as _0x3e48d3,DocsShapeService as _0xda92b6,InsertDocShapeCommand as _0x479479,UniverDocsShapePlugin as _0x384ed5,UpdateDocDrawingMetadataCommand as _0x2505fd,UpdateDocShapeDataCommand as _0x9d3fcb,UpdateDocShapeDataMutation as _0x135998}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x33465c,ShapeArrowSizeEnum as _0x303f88,ShapeArrowTypeEnum as _0x58b98b,ShapeDefaultConfig as _0x4c92e4,ShapeFillEnum as _0x31b6bd,ShapeLineTypeEnum as _0x326619,ShapeModel as _0x2dd6ac,ShapeRenderModeEnum as _0x42d4f9,ShapeTextAutoFitType as _0x3c6783,ShapeTypeEnum as _0x25ce09,isConnectorShape as _0x15125c,resolveShapeTextBodyBehavior as _0x428285}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x5cd2c6,UniverShapeEditorPlugin as _0x496014,applyQuickStyleToShapeData as _0x2db3e5,cloneShapeDataForType as _0x1e1154,createShapeFormulaDocument as _0x1eb974,createShapeTextBoxShapeData as _0x4e61a4,getShapeQuickStylePreset as _0x47b09e,getShapeQuickStyleType as _0x296933,resolveActiveShapeQuickStylePresetId as _0x293a67}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x10c839,BooleanNumber as _0x2fa3f8,CommandType as _0x1ef837,DependentOn as _0x4396f9,Disposable as _0x3db69a,DisposableCollection as _0x45b9fb,DocumentDataModel as _0x1d7f7d,DrawingTypeEnum as _0x21524c,FOCUSING_COMMON_DRAWINGS as _0x3a52be,FOCUSING_SHAPE_TEXT_EDITOR as _0x3cbde6,HorizontalAlign as _0x165288,ICommandService as _0x38aa04,IConfigService as _0x205da2,IContextService as _0x1be7b7,IImageIoService as _0xa426f,IPermissionService as _0x137531,IURLImageService as _0x545102,IUniverInstanceService as _0x3fa0e3,Inject as _0x1f7d38,Injector as _0xd87dbc,LocaleService as _0x26ba4d,Plugin as _0x194e5b,PositionedObjectLayoutType as _0x2cf572,UniverInstanceType as _0x5a336e,VerticalAlign as _0xf861a6,createInternalEditorID as _0x5e7889,generateRandomId as _0x487c28,getParagraphContentStartOffset as _0x4c18a7,merge as _0x4b28ed,registerDependencies as _0x182f9f,toDisposable as _0x5bca0e,touchDependencies as _0x53ce1a}from'@univerjs/core';import{DocInterceptorService as _0x2d8b15,DocSelectionManagerService as _0x371d66,RichTextEditingMutation as _0x59724c,SetDocumentPermissionCommand as _0x44c286,UniverDocsPlugin as _0x1b3dd2,canEditDocumentTargets as _0x1aefa3,getDocumentDrawingSegmentId as _0x359abd,getDocumentEntityParentPermissionObjectIds as _0x2f3e76,getDocumentEntityPermissionObjectId as _0x3200bc}from'@univerjs/docs';import{IDocDrawingService as _0x4d163d,RemoveDocDrawingCommand as _0x1d5a93,SetDocDrawingArrangeCommand as _0x41b423,TextWrappingStyle as _0x4965c4,UpdateDocDrawingWrappingStyleCommand as _0x4b8558,UpdateDrawingDocTransformCommand as _0xeab56b}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x1dfb4e,Circle as _0x3166ca,DRAWING_OBJECT_LAYER_INDEX as _0x19f6eb,DocumentSkeleton as _0x116815,DocumentViewModel as _0x47d8e5,Documents as _0x51fa0b,IRenderManagerService as _0x33251a,RENDER_CLASS_TYPE as _0x80275a,Shape as _0x35795a,Transform as _0x60df43,UniverRenderEnginePlugin as _0x418575,Vector2 as _0xed2876,getLastLine as _0x4e6d0e,setDocsCustomBlockRenderViewportProvider as _0x4e18db}from'@univerjs/engine-render';import{IDrawingManagerService as _0x30fd72,SetDrawingSelectedOperation as _0x5b0fd5,UniverDrawingPlugin as _0x1c720d,getDrawingShapeKeyByDrawingSearch as _0xf14320}from'@univerjs/drawing';import{DrawingCommonPanel as _0x1f2b6b,DrawingImageClipService as _0x51f4be,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0xd24491,MobileObjectListPanel as _0x2533a6,OBJECT_LIST_FLOATING_SECTION_ID as _0x2bd9a9,ObjectListPanelBase as _0x2a48a3,UniverDrawingMobileUIPlugin as _0x1bc339,UniverDrawingUIPlugin as _0x3eece4,getObjectListPanelSectionIdForDrawingType as _0x380920,insertGroupObject as _0x50ac62}from'@univerjs/drawing-ui';import{Fragment as _0x1da262,jsx as _0xaa621a,jsxs as _0x136064}from'react/jsx-runtime';import{BehaviorSubject as _0x54747c,Observable as _0x4ff9ba,distinctUntilChanged as _0x417d82,map as _0x5a04a3,merge as _0x71248,of as _0x3fee7b,startWith as _0x48e294}from'rxjs';import{UniverLicensePlugin as _0x29dd55}from'@univerjs-pro/license';import{DocDrawingPosition as _0x4d45c5,DocDrawingTextWrap as _0x60b61c,MobileDocDrawingPosition as _0x182904,MobileDocDrawingTextWrap as _0x57a820,UniverDocsDrawingMobileUIPlugin as _0x464ec2,UniverDocsDrawingUIPlugin as _0x990e5d}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x2ea734,MoreDownIcon as _0x4f82a3,MoreUpIcon as _0x4dc00f,MoveDownIcon as _0x29b216,MoveUpIcon as _0x8804f5,ObjectLayersIcon as _0xe4ac2,ShapeFormatSettingIcon as _0x197da5,TextWrapShapeIcon as _0x103936,TopmostIcon as _0x1bc7b9}from'@univerjs/icons';import{MobileActionRow as _0x298766}from'@univerjs/design';import{memo as _0x11b938,useEffect as _0x37fbe0,useMemo as _0x391527,useReducer as _0x5b5614,useState as _0x47b1e4}from'react';import{UnitObject as _0x4dfd1d}from'@univerjs/protocol';function hr(_0x55221a,_0x55e0c4){const _0x3da126=_0x5363;if(_0x55e0c4){if(_0x15125c(_0x55221a)&&(_0x55e0c4['startArrow']||_0x55e0c4[_0x3da126(0x239)]))return{'ln':{'startArrow':_0x55e0c4['startArrow']?{'type':_0x58b98b['Arrow'],'size':_0x303f88[_0x3da126(0x21f)]}:void 0x0,'endArrow':_0x55e0c4[_0x3da126(0x239)]?{'type':_0x58b98b[_0x3da126(0x115)],'size':_0x303f88[_0x3da126(0x327)]}:void 0x0}};if(_0x55221a===_0x25ce09[_0x3da126(0x309)]&&(_0x55e0c4[_0x3da126(0x21a)]||_0x55e0c4['vertical']))return _0x4e61a4({'fill':{'fillType':_0x31b6bd['SolidFill'],'color':'#3B82F6'},'isHorizontal':!!_0x55e0c4[_0x3da126(0x21a)],'stroke':{'lineStrokeType':_0x326619[_0x3da126(0x362)],'width':0x1,'color':'#2563EB'}});}}function gr(_0x368399,_0x47add1){const _0xf896c8=_0x5363;var _0x30c5c6;let _0x3250e2=_0x47add1['segmentId']??'',_0x5ba5f5=(_0x30c5c6=_0x368399[_0xf896c8(0x2fc)](_0x3250e2))==null?void 0x0:_0x30c5c6[_0xf896c8(0x2ce)]();if(!_0x5ba5f5)return null;let _0x4c8a95=_0x5ba5f5['paragraphs']??[],_0x46c1ba=_0x4c8a95[_0xf896c8(0x2de)](_0x58da53=>{const _0x4b88ef=_0xf896c8;let _0x16290d=_0x4c18a7(_0x5ba5f5,_0x58da53);return _0x47add1[_0x4b88ef(0x1f5)]>=_0x16290d&&_0x47add1['startOffset']<=_0x58da53[_0x4b88ef(0x265)];})??_0x4c8a95[_0x4c8a95[_0xf896c8(0x116)]-0x1];return _0x46c1ba?{'paragraphId':_0x46c1ba[_0xf896c8(0x2ab)],'segmentId':_0x3250e2,'position':_0x3e48d3['OFFSET'],'offset':_0x47add1['startOffset']-_0x4c18a7(_0x5ba5f5,_0x46c1ba)}:null;}function _r(_0x54f5b5,_0x391688,_0x5852b8){const _0x573414=_0x5363;var _0x39982a,_0x5e2053;if(!_0x5852b8)return null;let _0x294f7a=(_0x39982a=_0x54f5b5['get'](_0x33251a)[_0x573414(0x260)](_0x391688))==null?void 0x0:_0x39982a['with'](_0x147815)[_0x573414(0x323)];if(!_0x294f7a)return null;let _0x449ef5=_0x5852b8===_0x573414(0x270)?{'startOffset':_0x294f7a['moveRange'][_0x573414(0x317)],'endOffset':_0x294f7a['moveRange'][_0x573414(0x317)]}:_0x294f7a['menuRange'];return{'startOffset':_0x449ef5[_0x573414(0x1f5)],'endOffset':_0x449ef5['endOffset'],'collapsed':_0x449ef5[_0x573414(0x1f5)]===_0x449ef5['endOffset'],'segmentId':((_0x5e2053=_0x294f7a['paragraph'])==null?void 0x0:_0x5e2053['segmentId'])??''};}const G={'type':_0x1ef837[_0x16bf5e(0x2c9)],'id':_0x16bf5e(0x242),'handler':async(_0x47e8e0,_0x3e7ace)=>{const _0x5745df=_0x16bf5e;let _0x35b6bd=_0x47e8e0[_0x5745df(0x2f5)](_0x3fa0e3)[_0x5745df(0x150)](_0x5a336e[_0x5745df(0x1e2)]);if(!_0x35b6bd)return!0x1;let _0xe00ce7=_0x47e8e0[_0x5745df(0x2f5)](_0x38aa04),_0x14acb9=_0x35b6bd[_0x5745df(0x2e3)](),_0x22989a=_0x3e7ace[_0x5745df(0x226)]??_0x487c28(),_0xc7c990=_0x3e7ace['width']??_0x248fe1,_0x277423=_0x3e7ace[_0x5745df(0x322)]??_0x28a73b,_0xaa92b8=_0x3e7ace[_0x5745df(0x2f2)]??hr(_0x3e7ace[_0x5745df(0x171)],_0x3e7ace['enhanceParams']),_0x5d1abf=_r(_0x47e8e0,_0x14acb9,_0x3e7ace[_0x5745df(0x118)])??_0x47e8e0[_0x5745df(0x2f5)](_0x371d66)['getActiveTextRange']();if(!_0x5d1abf)return!0x1;let _0x34128a=gr(_0x35b6bd,_0x5d1abf);return _0x34128a?!!_0xe00ce7[_0x5745df(0x147)](_0x479479['id'],{'unitId':_0x14acb9,'shapeId':_0x22989a,'shapeType':_0x3e7ace['value'],'shapeData':_0xaa92b8,'transform':{'width':_0xc7c990,'height':_0x277423},'placement':{'wrappingStyle':_0x4965c4[_0x5745df(0x307)],'anchor':_0x34128a}}):!0x1;}},K=_0x16bf5e(0x246),vr=_0x16bf5e(0x1e3),yr='doc.shape.object-list.panel',br=_0x5e7889(_0x16bf5e(0x2bf)),xr=_0x16bf5e(0x214),Sr=_0x16bf5e(0x183),Cr={'id':_0x16bf5e(0x13d),'type':_0x1ef837[_0x16bf5e(0x2c9)],'handler':(_0x1d0199,_0x139fa0)=>{const _0x1c2c70=_0x16bf5e;let _0x26c7c5=_0x1d0199[_0x1c2c70(0x2f5)](_0x2e36b7),_0x4ca1bb=_0x1d0199['get'](_0x26ba4d),_0x5d735b=_0x1d0199[_0x1c2c70(0x2f5)](_0x30fd72);return(_0x139fa0==null?void 0x0:_0x139fa0['value'])===_0x1c2c70(0x19e)?(_0x26c7c5[_0x1c2c70(0x19e)](yr),!0x0):(_0x26c7c5[_0x1c2c70(0x2e7)]({'id':yr,'header':{'title':_0x4ca1bb['t'](_0x1c2c70(0x2fd))},'children':{'label':yr},'onClose':()=>{const _0x4ae759=_0x1c2c70;_0x5d735b[_0x4ae759(0x30c)](null);},'width':0x168}),!0x0);}},q={'type':_0x1ef837[_0x16bf5e(0x166)],'id':_0x16bf5e(0x21e),'handler'(){return!0x0;}};function wr(_0x4d1287){const _0x45f54b=_0x16bf5e;let _0x15f4c3=_0x4d1287[_0x45f54b(0x2f5)](_0x30fd72)[_0x45f54b(0x2b1)](),_0x3f96d9=_0x15f4c3['length']===0x1?_0x15f4c3[0x0]:null;if(!_0x3f96d9||_0x3f96d9['drawingType']!==_0x21524c['DRAWING_SHAPE'])return null;let _0x4d3f83=_0x4d1287[_0x45f54b(0x2f5)](_0xda92b6),_0x55ab5c=_0x4d3f83[_0x45f54b(0x253)](_0x3f96d9[_0x45f54b(0x29e)],_0x3f96d9['subUnitId'],_0x3f96d9[_0x45f54b(0x344)]),_0x45cafa=_0x4d3f83['getShapeDataById'](_0x3f96d9[_0x45f54b(0x29e)],_0x3f96d9[_0x45f54b(0x23b)],_0x3f96d9[_0x45f54b(0x344)]);return _0x55ab5c===void 0x0||!_0x45cafa?null:{'drawing':_0x3f96d9,'shapeData':_0x45cafa,'shapeType':_0x55ab5c};}const Tr={'id':'doc.operation.apply-shape-quick-style','type':_0x1ef837[_0x16bf5e(0x166)],'handler':(_0x239c34,_0x2bbc12)=>{const _0x1b3132=_0x16bf5e;let _0x1f7f2d=wr(_0x239c34),_0x342298=_0x47b09e((_0x2bbc12==null?void 0x0:_0x2bbc12[_0x1b3132(0x28e)])??(_0x2bbc12==null?void 0x0:_0x2bbc12[_0x1b3132(0x171)])??'');if(!_0x1f7f2d||!_0x342298||_0x342298['type']!==_0x296933(_0x1f7f2d[_0x1b3132(0x2f2)]))return!0x1;let _0x21f46f=_0x2db3e5(_0x1f7f2d['shapeData'],_0x342298);if(!_0x21f46f)return!0x1;let {drawing:_0x51efb8}=_0x1f7f2d;return _0x239c34['get'](_0x38aa04)[_0x1b3132(0x232)](_0x9d3fcb['id'],{'unitId':_0x51efb8[_0x1b3132(0x29e)],'shapeId':_0x51efb8[_0x1b3132(0x344)],'shapeData':_0x21f46f,'oldShapeJSON':{'oldShapeData':_0x1f7f2d[_0x1b3132(0x2f2)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x1ef837[_0x16bf5e(0x166)],'handler':(_0x1f52be,_0x3dc8dc)=>{const _0x3915d5=_0x16bf5e;let _0x5479fe=wr(_0x1f52be),_0x3ecb86=(_0x3dc8dc==null?void 0x0:_0x3dc8dc[_0x3915d5(0x324)])??(_0x3dc8dc==null?void 0x0:_0x3dc8dc['value']);if(!_0x5479fe||!_0x3ecb86||_0x15125c(_0x5479fe[_0x3915d5(0x324)])||_0x15125c(_0x3ecb86))return!0x1;let _0x3ed6b0=_0x1e1154(_0x5479fe[_0x3915d5(0x2f2)],_0x3ecb86);if(!_0x3ed6b0)return!0x1;let {drawing:_0x3de696}=_0x5479fe;return _0x1f52be[_0x3915d5(0x2f5)](_0x38aa04)[_0x3915d5(0x232)](_0x9d3fcb['id'],{'unitId':_0x3de696[_0x3915d5(0x29e)],'shapeId':_0x3de696[_0x3915d5(0x344)],'shapeType':_0x3ecb86,'shapeData':_0x3ed6b0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x5479fe['shapeType'],'oldShapeData':_0x5479fe['shapeData']}});}};function J(_0x1f0e80,_0x52f8df){return function(_0x4b608c,_0x56608d){_0x52f8df(_0x4b608c,_0x56608d,_0x1f0e80);};}function Y(_0x5a0c26,_0x2955e7,_0x350624,_0x409d52){const _0xa89e90=_0x16bf5e;var _0x41fca9=arguments[_0xa89e90(0x116)],_0x112918=_0x41fca9<0x3?_0x2955e7:_0x409d52===null?_0x409d52=Object[_0xa89e90(0x25e)](_0x2955e7,_0x350624):_0x409d52,_0xf6a95e;if(typeof Reflect==_0xa89e90(0x25d)&&typeof Reflect[_0xa89e90(0x26e)]==_0xa89e90(0x26a))_0x112918=Reflect[_0xa89e90(0x26e)](_0x5a0c26,_0x2955e7,_0x350624,_0x409d52);else{for(var _0x34a839=_0x5a0c26[_0xa89e90(0x116)]-0x1;_0x34a839>=0x0;_0x34a839--)(_0xf6a95e=_0x5a0c26[_0x34a839])&&(_0x112918=(_0x41fca9<0x3?_0xf6a95e(_0x112918):_0x41fca9>0x3?_0xf6a95e(_0x2955e7,_0x350624,_0x112918):_0xf6a95e(_0x2955e7,_0x350624))||_0x112918);}return _0x41fca9>0x3&&_0x112918&&Object[_0xa89e90(0x19f)](_0x2955e7,_0x350624,_0x112918),_0x112918;}let X=class extends _0x3db69a{constructor(_0x4d5c7f,_0x4079c3){const _0x52f87c=_0x16bf5e;super(),this['_clipService']=_0x4d5c7f,this[_0x52f87c(0x154)]=_0x4079c3,this[_0x52f87c(0x178)](),this[_0x52f87c(0x198)][_0x52f87c(0x140)](!0x0),this[_0x52f87c(0x371)]({'dispose':()=>this[_0x52f87c(0x198)]['setCanUseShapeClip'](!0x1)});}[_0x16bf5e(0x178)](){const _0xa637a1=_0x16bf5e;let _0x2c47a4=new Map(),_0x45f049=this[_0xa637a1(0x198)][_0xa637a1(0x110)]((_0x515ceb,_0x36276d,_0x374225,_0x1a3491,_0x39a195)=>{const _0x159d37=_0xa637a1;let _0x24b161=_0x36276d;if(_0x24b161===_0x25ce09[_0x159d37(0x203)]||_0x36276d===_0x159d37(0x2b8))return!0x1;try{let _0x3536ea=_0x2c47a4['get'](_0x36276d);return _0x3536ea||(_0x3536ea=new _0x2dd6ac(_0x24b161,_0x159d37(0x314)+_0x36276d),_0x2c47a4[_0x159d37(0x342)](_0x36276d,_0x3536ea)),_0x3536ea[_0x159d37(0x1dc)](),_0x39a195&&Object[_0x159d37(0x130)](_0x39a195)['length']>0x0&&_0x3536ea[_0x159d37(0x1d7)]({'adjustValues':_0x39a195},!0x0),_0x3536ea[_0x159d37(0x300)]({'width':_0x374225,'height':_0x1a3491}),_0x3536ea[_0x159d37(0x328)](_0x515ceb,{'left':0x0,'top':0x0,'width':_0x374225,'height':_0x1a3491});}catch{return!0x1;}});this[_0xa637a1(0x371)](_0x45f049),this[_0xa637a1(0x371)]({'dispose':()=>_0x2c47a4['clear']()});}[_0x16bf5e(0x32e)](_0x4436de,_0x56c47e,_0x183e09,_0x182dfd,_0x4704bf){const _0x14a6a4=_0x16bf5e;let _0x3afc3a=this[_0x14a6a4(0x154)][_0x14a6a4(0x170)](_0x4436de,_0x56c47e)[_0x183e09];_0x3afc3a&&_0x3afc3a[_0x14a6a4(0x2a4)]===_0x21524c[_0x14a6a4(0x1cf)]&&this[_0x14a6a4(0x154)][_0x14a6a4(0x370)]([{..._0x3afc3a,'prstGeom':_0x182dfd,'adjustValues':_0x4704bf}]);}};X=Y([J(0x0,_0x1f7d38(_0x51f4be)),J(0x1,_0x1f7d38(_0x30fd72))],X);const Dr=_0x16bf5e(0x15b),Or=_0x16bf5e(0x16d);function kr({onShapeClick:_0x4b62af,excludeGroups:_0x443c70}){const _0xe78e8d=_0x16bf5e;return _0xaa621a(_0x526005,{'excludeGroups':_0x443c70,'onShapeClick':_0x4b62af,'scrollContainer':_0xe78e8d(0x2c5)});}function Ar(){let _0x3ed3eb=_0x10e4db(_0x30fd72),_0x7a3f9c=_0x10e4db(X);return _0x5ac0af=>{const _0x1d2e70=_0x5363;let _0x5b3750=_0x3ed3eb[_0x1d2e70(0x2b1)]()[_0x1d2e70(0x2de)](_0x3a4a62=>_0x3a4a62['drawingType']===_0x21524c[_0x1d2e70(0x1cf)]);_0x5b3750&&_0x7a3f9c[_0x1d2e70(0x32e)](_0x5b3750['unitId'],_0x5b3750[_0x1d2e70(0x23b)],_0x5b3750[_0x1d2e70(0x344)],_0x5ac0af['type']);};}function jr(){const _0xe8821a=_0x16bf5e;let _0x8c107f=Ar();return _0xaa621a(_0x1d2956,{'buttonLabel':_0xe8821a(0x319),'excludeGroups':[_0x2e5f24[_0xe8821a(0x29b)]],'onShapeClick':_0x8c107f});}function Mr(){const _0x5135a6=_0x16bf5e;let _0x5e039c=_0x10e4db(_0x6a795a),_0x2a402d=_0x10e4db(_0x30fd72),_0x2d492c=_0x10e4db(_0x3fa0e3),_0x50cf9c=_0x2a402d[_0x5135a6(0x2b1)]()[0x0],_0x40e1d1=_0x50cf9c?_0x2d492c[_0x5135a6(0x2b6)](_0x50cf9c[_0x5135a6(0x29e)]):void 0x0,_0x3199cd=_0x40e1d1===_0x5a336e[_0x5135a6(0x1e2)]?Or:_0x40e1d1===_0x5a336e[_0x5135a6(0x290)]?_0x5135a6(0x281):void 0x0,_0x1a7895=_0x3199cd?_0x5e039c[_0x5135a6(0x2f5)](_0x3199cd):void 0x0;return _0x1a7895?_0xaa621a(_0x1a7895,{}):null;}function Nr({paragraphMenuPlacement:_0x2c7a31,PickerComponent:_0x1aa02e=kr}){let _0x1ad3d7=_0x10e4db(_0x38aa04);return _0xaa621a(_0x1aa02e,{'onShapeClick':_0x29ef5d=>{const _0x54c7ba=_0x5363;_0x1ad3d7[_0x54c7ba(0x232)](G['id'],{'paragraphMenuPlacement':_0x2c7a31,'value':_0x29ef5d[_0x54c7ba(0x35e)],'enhanceParams':{'endArrow':_0x29ef5d[_0x54c7ba(0x239)],'startArrow':_0x29ef5d['startArrow'],'horizontal':_0x29ef5d['horizontal'],'vertical':_0x29ef5d['vertical']}});}});}function Pr(_0x5d48d9){const _0x51212e=_0x16bf5e;return _0x2fcbc6=>({'id':G['id'],'type':_0x124b8a[_0x51212e(0x284)],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x5d48d9?{'id':G['id'],'paragraphMenuPlacement':_0x5d48d9}:{'id':G['id']}}}],'icon':_0x51212e(0x135),'title':_0x51212e(0x345),'tooltip':_0x51212e(0x345),'hidden$':_0x1bbe01(_0x2fcbc6,_0x5a336e[_0x51212e(0x1e2)])});}const Fr=Pr(),Ir=Pr(_0x16bf5e(0x270)),Lr=Pr('target');function Rr(_0x2e0364){const _0x167583=_0x16bf5e;return{'id':Cr['id'],'type':_0x124b8a['BUTTON'],'icon':'ObjectLayersIcon','title':'docs-shape-ui.objectListPanel.open','tooltip':_0x167583(0x325),'hidden$':_0x1bbe01(_0x2e0364,_0x5a336e[_0x167583(0x1e2)])};}function zr(_0xf584e2,_0xa2ca2e,_0x415bf4,_0x166b7e,_0x59555e,_0x5baf7a){const _0x4eca12=_0x16bf5e;let _0x1e1153={'unitId':_0xa2ca2e,'shapeId':_0x166b7e,'shapeData':_0x5baf7a,'oldShapeJSON':_0x59555e};return _0xf584e2[_0x4eca12(0x232)](_0x9d3fcb['id'],_0x1e1153);}function Br(_0x1e44fe,_0x2b06a7,_0x223107,_0x351cfc,_0x507b98,_0x5c68bf){const _0xd48491=_0x16bf5e;let _0x382b91={'unitId':_0x2b06a7,'shapeId':_0x351cfc,'shapeData':_0x5c68bf,'oldShapeJSON':_0x507b98};return _0x1e44fe[_0xd48491(0x232)](_0x9d3fcb['id'],_0x382b91);}const Vr=_0x16bf5e(0x340),Hr=_0x16bf5e(0x1af),Ur='docs-shape-ui.shape-format.text-ribbon-control',Wr='docs-shape-ui.shape-format.formula-ribbon-control',Gr='docs-shape-ui.shape-format.wrapping-style-label',Kr=[{'value':_0x4965c4[_0x16bf5e(0x307)],'label':_0x16bf5e(0x16c),'icon':_0x16bf5e(0x181)},{'value':_0x4965c4[_0x16bf5e(0x2b5)],'label':_0x16bf5e(0x338),'icon':_0x16bf5e(0x266)},{'value':_0x4965c4['WRAP_TOP_AND_BOTTOM'],'label':_0x16bf5e(0x1d9),'icon':_0x16bf5e(0x1f0)},{'value':_0x4965c4[_0x16bf5e(0x176)],'label':_0x16bf5e(0x32f),'icon':_0x16bf5e(0x1a3)},{'value':_0x4965c4['IN_FRONT_OF_TEXT'],'label':_0x16bf5e(0x20a),'icon':_0x16bf5e(0x34f)}];function qr(){let _0x5bee87=_0x10e4db(_0x38aa04),_0x2b5dd0=_0x10e4db(_0x30fd72),_0x4163d1=_0x10e4db(_0xda92b6),_0x276efd=()=>{const _0x477554=_0x5363;var _0x1a1ebf;let _0x3d884d=_0x2b5dd0['getFocusDrawings']();if(_0x3d884d[_0x477554(0x116)]!==0x1||((_0x1a1ebf=_0x3d884d[0x0])==null?void 0x0:_0x1a1ebf['drawingType'])!==_0x21524c[_0x477554(0x247)])return null;let {unitId:_0x31a76f,subUnitId:_0x132230,drawingId:_0x4497f6}=_0x3d884d[0x0],_0x100521=_0x4163d1['getShapeTypeById'](_0x31a76f,_0x132230,_0x4497f6),_0x2a707d=_0x4163d1['getShapeDataById'](_0x31a76f,_0x132230,_0x4497f6);return _0x100521===void 0x0||!_0x2a707d?null:{'unitId':_0x31a76f,'subUnitId':_0x132230,'drawingId':_0x4497f6,'shapeType':_0x100521,'shapeData':_0x2a707d};},_0x54acfa=_0x39adc0(()=>new _0x4ff9ba(_0xf9fe89=>{const _0x31a5fa=_0x5363;let _0x54be65=()=>_0xf9fe89['next'](_0x276efd()),_0x4bc97f=_0x2b5dd0[_0x31a5fa(0x149)][_0x31a5fa(0x1e1)](_0x54be65),_0x2f1f81=_0x5bee87[_0x31a5fa(0x188)](_0x162898=>{_0x162898['id']===_0x135998['id']&&_0x54be65();});return _0x54be65(),()=>{const _0x40a8fe=_0x31a5fa;_0x4bc97f[_0x40a8fe(0x1ae)](),_0x2f1f81[_0x40a8fe(0x1ca)]();};}),_0x276efd(),!0x1,[_0x5bee87,_0x4163d1,_0x2b5dd0]);return{'selection':_0x54acfa,'updateShapeData':_0x33a540=>{const _0x493342=_0x5363;_0x54acfa&&zr(_0x5bee87,_0x54acfa[_0x493342(0x29e)],_0x54acfa['subUnitId'],_0x54acfa[_0x493342(0x344)],{'oldShapeData':_0x54acfa[_0x493342(0x2f2)]},_0x33a540);}};}function Jr(){const _0x46b1eb=_0x16bf5e;let {selection:_0x3e1d47,updateShapeData:_0xd25fcf}=qr();return _0x3e1d47?_0xaa621a(_0x6341fb,{'shapeData':_0x3e1d47[_0x46b1eb(0x2f2)],'shapeType':_0x3e1d47[_0x46b1eb(0x324)],'onUpdateShapeData':_0xd25fcf}):null;}function Yr(){const _0x5c1774=_0x16bf5e;let _0x5ed60b=_0x10e4db(_0x38aa04),_0x39a265=_0x10e4db(_0x26ba4d),{selection:_0x46b6af}=qr();return _0x46b6af?_0xaa621a(_0x1927de,{'type':_0x296933(_0x46b6af[_0x5c1774(0x2f2)]),'ariaLabel':_0x39a265['t'](_0x5c1774(0x1a5)),'activePresetId':_0x293a67(_0x46b6af[_0x5c1774(0x2f2)]),'onSelect':_0x4d9972=>_0x5ed60b['executeCommand'](Tr['id'],{'presetId':_0x4d9972})}):null;}function Xr(){const _0x12f73a=_0x16bf5e;let {selection:_0x5f0043,updateShapeData:_0x1a8f51}=qr();return _0x5f0043?_0xaa621a(_0x8a4229,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x5f0043[_0x12f73a(0x2f2)],'onUpdateShapeData':_0x1a8f51}):null;}function Zr(){const _0x21f185=_0x16bf5e;var _0x1af358;let {selection:_0x4e3f58,updateShapeData:_0x4c500b}=qr(),_0x2ff9b6=_0xfc437f({'hostType':_0x5a336e[_0x21f185(0x1e2)],'unitId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x29e)])??'','subUnitId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x23b)])??'','shapeId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x344)])??'','shapeData':_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x2f2)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x1e3a5b=>_0x4c500b({'formulaBinding':_0x1e3a5b})}),_0x508c70=((_0x1af358=_0x2ff9b6['extensionGroups'])==null?void 0x0:_0x1af358['flatMap'](_0x36cd37=>_0x36cd37[_0x21f185(0x194)])['filter'](_0x4b42a3=>_0x4b42a3[_0x21f185(0x142)]!==!0x1))??[];return _0x4e3f58!=null&&_0x4e3f58[_0x21f185(0x2f2)][_0x21f185(0x164)]?_0xaa621a(_0x3d3054,{'actions':_0x508c70,'panel':_0x2ff9b6['panel']}):null;}function Qr({value:_0x283a50}){const _0x438baf=_0x16bf5e;let _0x100500=_0x10e4db(_0x26ba4d),_0x1d205a=Kr[_0x438baf(0x2de)](_0x58f029=>_0x58f029[_0x438baf(0x171)]===_0x283a50)??Kr[0x0];return _0x1d205a?_0xaa621a(_0x438baf(0x22e),{'children':_0x100500['t'](_0x1d205a['label'])}):null;}const $r=_0x16bf5e(0x1b7),ei='docs-shape-ui.ribbon.shape-format.text-control',ti=_0x16bf5e(0x1eb),ni=_0x16bf5e(0x2d6),ri='docs-shape-ui.ribbon.shape-format.arrange-backward',ii=_0x16bf5e(0x11b),ai=_0x16bf5e(0x2db),oi=_0x16bf5e(0x1d3);function si(_0x1ea28c){const _0x17be62=_0x16bf5e;let _0xf48248=_0x1ea28c[_0x17be62(0x2f5)](_0x38aa04),_0x34d0c5=_0x1ea28c[_0x17be62(0x2f5)](_0x30fd72),_0x55a5b6=_0x1ea28c['get'](_0xda92b6);return new _0x4ff9ba(_0x35b2d3=>{const _0x453690=_0x17be62;let _0x3c0915=()=>{const _0x4be553=_0x5363;let _0x360ae1=ci(_0x1ea28c),_0x4370a6=_0x360ae1?_0x55a5b6['getShapeDataById'](_0x360ae1[_0x4be553(0x29e)],_0x360ae1[_0x4be553(0x23b)],_0x360ae1[_0x4be553(0x344)]):null;_0x35b2d3[_0x4be553(0x2c7)](_0x4370a6?_0x293a67(_0x4370a6)??'':'');},_0x2bd76d=_0x34d0c5[_0x453690(0x149)]['subscribe'](_0x3c0915),_0x283d83=_0xf48248[_0x453690(0x188)](_0x402137=>{_0x402137['id']===_0x135998['id']&&_0x3c0915();});return _0x3c0915(),()=>{const _0x36a7b8=_0x453690;_0x2bd76d['unsubscribe'](),_0x283d83[_0x36a7b8(0x1ca)]();};});}function ci(_0x3a9535){const _0x1eb971=_0x16bf5e;var _0x34e021;let _0xa25de0=_0x3a9535[_0x1eb971(0x2f5)](_0x30fd72)[_0x1eb971(0x2b1)]();return _0xa25de0['length']===0x1&&((_0x34e021=_0xa25de0[0x0])==null?void 0x0:_0x34e021[_0x1eb971(0x2a4)])===_0x21524c[_0x1eb971(0x247)]?_0xa25de0[0x0]:null;}function li(_0x30a4af){const _0xf9f5e0=_0x16bf5e;return(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x126)]?_0x30a4af[_0xf9f5e0(0x137)]===_0x2fa3f8[_0xf9f5e0(0x2f6)]?_0x4965c4[_0xf9f5e0(0x176)]:_0x4965c4[_0xf9f5e0(0x272)]:(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x2b5)]?_0x4965c4['WRAP_SQUARE']:(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x28c)]?_0x4965c4[_0xf9f5e0(0x28c)]:_0x4965c4[_0xf9f5e0(0x307)];}function ui(_0x37cd19){const _0x7d65af=_0x16bf5e;let _0x4523b5=_0x37cd19[_0x7d65af(0x2f5)](_0x38aa04),_0x46c90a=_0x37cd19[_0x7d65af(0x2f5)](_0x30fd72),_0x23abe5=_0x37cd19[_0x7d65af(0x2f5)](_0x3fa0e3);return new _0x4ff9ba(_0x573a22=>{const _0x256367=_0x7d65af;let _0x3f9bb2=()=>{const _0x2fba77=_0x5363;var _0x39ba15;let _0x43c6d4=ci(_0x37cd19),_0x209911=_0x43c6d4?_0x23abe5[_0x2fba77(0x258)](_0x43c6d4['unitId'],_0x5a336e[_0x2fba77(0x1e2)]):void 0x0;_0x573a22[_0x2fba77(0x2c7)](li(_0x43c6d4?_0x209911==null||(_0x39ba15=_0x209911['getSnapshot']()[_0x2fba77(0x1dd)])==null?void 0x0:_0x39ba15[_0x43c6d4[_0x2fba77(0x344)]]:void 0x0));},_0x3ff53e=_0x46c90a['focus$'][_0x256367(0x1e1)](_0x3f9bb2),_0x2b3ec6=_0x4523b5[_0x256367(0x188)](_0x361c55=>{_0x361c55['id']===_0x59724c['id']&&_0x3f9bb2();});return _0x3f9bb2(),()=>{const _0x8e1852=_0x256367;_0x3ff53e['unsubscribe'](),_0x2b3ec6[_0x8e1852(0x1ca)]();};})[_0x7d65af(0x218)](_0x417d82());}function di(_0x23bf33,_0x3d86f0=!0x1){const _0x3fe309=_0x16bf5e;let _0x1925fc=_0x23bf33[_0x3fe309(0x2f5)](_0x38aa04),_0x5c22c1=_0x23bf33[_0x3fe309(0x2f5)](_0x30fd72),_0x559ad4=_0x23bf33[_0x3fe309(0x2f5)](_0xda92b6);return new _0x4ff9ba(_0x2ffca0=>{const _0x2833ac=_0x3fe309;let _0x2336c8=()=>{const _0x1a9148=_0x5363;let _0x37a42f=ci(_0x23bf33);if(!_0x37a42f){_0x2ffca0[_0x1a9148(0x2c7)](!0x0);return;}let _0x2b6bd3=_0x559ad4[_0x1a9148(0x177)](_0x37a42f[_0x1a9148(0x29e)],_0x37a42f[_0x1a9148(0x23b)],_0x37a42f['drawingId']);_0x2ffca0[_0x1a9148(0x2c7)](!_0x2b6bd3||_0x3d86f0&&_0x2b6bd3[_0x1a9148(0x164)]==null);},_0x2dc551=_0x5c22c1[_0x2833ac(0x149)][_0x2833ac(0x1e1)](_0x2336c8),_0x1039c9=_0x1925fc[_0x2833ac(0x188)](_0x5cd94f=>{_0x5cd94f['id']===_0x135998['id']&&_0x2336c8();});return _0x2336c8(),()=>{const _0x458d6a=_0x2833ac;_0x2dc551[_0x458d6a(0x1ae)](),_0x1039c9[_0x458d6a(0x1ca)]();};});}function fi(_0x1f7688){const _0x486fc1=_0x16bf5e;let _0x37a046=_0x1f7688['get'](_0x30fd72),_0xdfca28=_0x1f7688[_0x486fc1(0x2f5)](_0xda92b6);return _0x37a046['focus$'][_0x486fc1(0x218)](_0x48e294(_0x37a046[_0x486fc1(0x2b1)]()),_0x5a04a3(()=>{const _0x349191=_0x486fc1;let _0x5ea21e=ci(_0x1f7688),_0x54a97f=_0x5ea21e?_0xdfca28[_0x349191(0x253)](_0x5ea21e['unitId'],_0x5ea21e[_0x349191(0x23b)],_0x5ea21e['drawingId']):void 0x0;return _0x54a97f===void 0x0||_0x15125c(_0x54a97f);}));}function pi(_0x75bf46){const _0x595cbb=_0x16bf5e;return{'id':Tr['id'],'type':_0x124b8a['SELECTOR'],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x595cbb(0x1c1),'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x75bf46),'hidden$':di(_0x75bf46)};}function mi(_0x365d7f){const _0x3a3b28=_0x16bf5e;return{'id':Er['id'],'type':_0x124b8a['SELECTOR'],'icon':_0x3a3b28(0x135),'title':_0x3a3b28(0x111),'tooltip':_0x3a3b28(0x111),'slot':!0x0,'selections':[{'label':{'name':_0x4afcd7,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0x365d7f)};}function hi(_0x5c4dd7,_0x372822,_0x537da2=!0x1){const _0xaa74b6=_0x16bf5e;return _0x3bbfff=>({'id':_0x5c4dd7,'type':_0x124b8a[_0xaa74b6(0x11d)],'label':{'name':_0x372822,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x3bbfff,_0x537da2)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x44c7cd){const _0x486e3a=_0x16bf5e;return{'id':oi,'type':_0x124b8a['SELECTOR'],'icon':Kr[0x0][_0x486e3a(0x1cb)],'label':Gr,'selectionsCommandId':_0x4b8558['id'],'selections':Kr['map'](({icon:_0x1ed727,label:_0x21fde2,value:_0x47cc76})=>({'value':_0x47cc76,'label':_0x21fde2,'icon':_0x1ed727,'params':()=>{const _0x2617b6=_0x486e3a;let _0x4d7bd6=ci(_0x44c7cd);return _0x4d7bd6?{'unitId':_0x4d7bd6[_0x2617b6(0x29e)],'subUnitId':_0x4d7bd6['subUnitId'],'drawings':[{'unitId':_0x4d7bd6[_0x2617b6(0x29e)],'subUnitId':_0x4d7bd6[_0x2617b6(0x23b)],'drawingId':_0x4d7bd6[_0x2617b6(0x344)]}],'wrappingStyle':_0x47cc76}:void 0x0;}})),'value$':ui(_0x44c7cd),'hidden$':di(_0x44c7cd)};}function bi(_0x268520,_0x3061ad,_0x2f78fc,_0x318ca6){const _0x4ade28=_0x16bf5e;return _0x5b06ed=>({'id':_0x268520,'commandId':_0x41b423['id'],'type':_0x124b8a[_0x4ade28(0x11d)],'icon':_0x2f78fc,'title':_0x318ca6,'tooltip':_0x318ca6,'hidden$':di(_0x5b06ed),'params':()=>{const _0xe16cc2=_0x4ade28;let _0x335850=ci(_0x5b06ed);return _0x335850?{'unitId':_0x335850[_0xe16cc2(0x29e)],'subUnitId':_0x335850[_0xe16cc2(0x23b)],'drawingIds':[_0x335850[_0xe16cc2(0x344)]],'arrangeType':_0x3061ad}:void 0x0;}});}const xi=bi(ni,_0x10c839[_0x16bf5e(0x1f2)],_0x16bf5e(0x217),'shape-editor-ui.arrange.forward'),Si=bi(ri,_0x10c839[_0x16bf5e(0x2bb)],'MoveDownIcon',_0x16bf5e(0x19c)),Ci=bi(ii,_0x10c839['front'],_0x16bf5e(0x306),'shape-editor-ui.arrange.front'),wi=bi(ai,_0x10c839[_0x16bf5e(0x15a)],_0x16bf5e(0x123),_0x16bf5e(0x2f3));function Ti(_0x4a9b28){const _0x3d1ba7=_0x16bf5e;return{'id':q['id'],'type':_0x124b8a[_0x3d1ba7(0x11d)],'icon':_0x3d1ba7(0x31f),'title':'docs-shape-ui.formatShape','tooltip':_0x3d1ba7(0x365),'hidden$':di(_0x4a9b28),'params':()=>{const _0x339f1e=_0x3d1ba7;let _0x32e9cb=ci(_0x4a9b28);return _0x32e9cb?{'unitId':_0x32e9cb['unitId'],'subUnitId':_0x32e9cb[_0x339f1e(0x23b)],'drawingId':_0x32e9cb[_0x339f1e(0x344)]}:void 0x0;}};}const Ei={[_0x32bcc5['RIBBON']]:{[vr]:{'order':0x64,'title':_0x16bf5e(0x365),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[Er['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':mi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':gi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_i}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':yi},[ni]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':xi},[ri]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Si},[ii]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ci},[ai]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ti]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':vi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[q['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti},[_0x36c9d6['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x558a4c}}}}},Di={[_0x4b0cb4[_0x16bf5e(0x204)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x5d9877=>({...Fr(_0x5d9877),'title':void 0x0})}},[_0x4b0cb4[_0x16bf5e(0x112)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0xf321b5[_0x16bf5e(0x122)]]:{[_0x36c690['LAYOUT']]:{[_0x22e8c4]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x73acf7]:{[_0x36c690['LAYOUT']]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x26aab8]:{[_0x36c690[_0x16bf5e(0x363)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x3f2bb5]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x4261b3]:{'insert':{[G['id']+_0x16bf5e(0x33d)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};function _0x5363(_0x30381d,_0x1ffc9b){_0x30381d=_0x30381d-0x110;const _0x261b9e=_0x261b();let _0x536378=_0x261b9e[_0x30381d];return _0x536378;}var Oi=_0x16bf5e(0x29c),ki=_0x16bf5e(0x20b);const Ai={'type':_0x1ef837[_0x16bf5e(0x166)],'id':_0x16bf5e(0x1ba),'handler'(){return!0x0;}},ji=_0x16bf5e(0x271),Mi={};function Ni(_0x56fb23){'@babel/helpers - typeof';const _0x472d03=_0x16bf5e;return Ni=typeof Symbol==_0x472d03(0x26a)&&typeof Symbol[_0x472d03(0x14d)]==_0x472d03(0x2d3)?function(_0x40bd2e){return typeof _0x40bd2e;}:function(_0x44c124){const _0x4a57e9=_0x472d03;return _0x44c124&&typeof Symbol=='function'&&_0x44c124[_0x4a57e9(0x2f9)]===Symbol&&_0x44c124!==Symbol[_0x4a57e9(0x2b3)]?'symbol':typeof _0x44c124;},Ni(_0x56fb23);}function Pi(_0x2b0ebb,_0xaa8847){const _0x1cecba=_0x16bf5e;if(Ni(_0x2b0ebb)!=_0x1cecba(0x25d)||!_0x2b0ebb)return _0x2b0ebb;var _0x1b0d12=_0x2b0ebb[Symbol[_0x1cecba(0x1fb)]];if(_0x1b0d12!==void 0x0){var _0x4b3d4a=_0x1b0d12['call'](_0x2b0ebb,_0xaa8847||_0x1cecba(0x11e));if(Ni(_0x4b3d4a)!=_0x1cecba(0x25d))return _0x4b3d4a;throw TypeError(_0x1cecba(0x172));}return(_0xaa8847==='string'?String:Number)(_0x2b0ebb);}function Fi(_0x41c687){const _0x1fee48=_0x16bf5e;var _0x6c7b21=Pi(_0x41c687,'string');return Ni(_0x6c7b21)==_0x1fee48(0x2d3)?_0x6c7b21:_0x6c7b21+'';}function Z(_0x408010,_0x5151b3,_0x12fa89){const _0x4c5208=_0x16bf5e;return(_0x5151b3=Fi(_0x5151b3))in _0x408010?Object[_0x4c5208(0x19f)](_0x408010,_0x5151b3,{'value':_0x12fa89,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x408010[_0x5151b3]=_0x12fa89,_0x408010;}var Ii=class extends _0x35795a{constructor(_0x21e1e1,_0x1ecea1){const _0x40a78a=_0x16bf5e;super(_0x21e1e1,_0x1ecea1),Z(this,_0x40a78a(0x32d),null),Z(this,_0x40a78a(0x349),null),Z(this,_0x40a78a(0x2a6),null),Z(this,_0x40a78a(0x17d),null),_0x1ecea1&&this[_0x40a78a(0x30a)](_0x1ecea1);}['getDrawingSearch'](){const _0x286c50=_0x16bf5e;return{'unitId':this[_0x286c50(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x286c50(0x32d)]};}[_0x16bf5e(0x30a)](_0x4800a4){const _0x55eb4c=_0x16bf5e;_0x4800a4['shapeId']!==void 0x0&&(this['_shapeId']=_0x4800a4['shapeId']),_0x4800a4[_0x55eb4c(0x332)]!==void 0x0&&(this[_0x55eb4c(0x349)]=_0x4800a4[_0x55eb4c(0x332)]),_0x4800a4[_0x55eb4c(0x29e)]!==void 0x0&&(this[_0x55eb4c(0x2a6)]=_0x4800a4[_0x55eb4c(0x29e)]),_0x4800a4[_0x55eb4c(0x23b)]!==void 0x0&&(this[_0x55eb4c(0x17d)]=_0x4800a4[_0x55eb4c(0x23b)]),this[_0x55eb4c(0x1b1)]({'width':_0x4800a4[_0x55eb4c(0x18c)],'height':_0x4800a4['height']});}['_draw'](_0x17be61){const _0x188b80=_0x16bf5e;_0x3166ca[_0x188b80(0x168)](_0x17be61,{'radius':_0x4c92e4[_0x188b80(0x299)],'fill':_0x4c92e4[_0x188b80(0x209)],'stroke':_0x4c92e4['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0xc57ed0,_0x219412,_0x33c778){const _0x495818=_0x16bf5e;let _0x5cc608={..._0x219412,'dataModel':{..._0x219412[_0x495818(0x1ef)]??{},..._0x33c778?{'doc':_0x33c778}:null}},_0x37e18a=_0x4a5314(_0xc57ed0,_0x5cc608),_0x96510c=_0x103b43(_0x37e18a);return{'clip':_0x560777(_0x37e18a,_0x96510c),'wrapStrategy':_0x96510c};}var Ri=class extends _0x35795a{constructor(_0x1144ec,_0x2d5686){const _0x1df6f2=_0x16bf5e;super(_0x1144ec,_0x2d5686),Z(this,_0x1df6f2(0x152),void 0x0),Z(this,'_formulaAnimation',new _0x3a602c(()=>this[_0x1df6f2(0x250)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Z(this,_0x1df6f2(0x227),!0x0),Z(this,_0x1df6f2(0x251),_0x21524c[_0x1df6f2(0x247)]),Z(this,_0x1df6f2(0x139),!0x0),this['_props']={..._0x2d5686},this[_0x1df6f2(0x2bc)][_0x1df6f2(0x1de)](_0x2d5686[_0x1df6f2(0x2ff)],_0x2d5686[_0x1df6f2(0x1e6)]!==!0x1),this[_0x1df6f2(0x2c3)](),this[_0x1df6f2(0x197)]();}[_0x16bf5e(0x2c3)](){const _0x5e641b=_0x16bf5e;this[_0x5e641b(0x23c)][_0x5e641b(0x1b2)](_0x43b842=>{const _0x37dee9=_0x5e641b;this[_0x37dee9(0x2f7)](_0x43b842);});}[_0x16bf5e(0x207)](_0x15fe30){const _0x8e8561=_0x16bf5e;this['_props'][_0x8e8561(0x1b9)]=_0x15fe30;}['setEditing'](_0x5848cd){const _0x4ba73c=_0x16bf5e;this[_0x4ba73c(0x152)]['isEditing']=_0x5848cd,this[_0x4ba73c(0x250)](!0x0);}[_0x16bf5e(0x167)](_0x3ca162,_0x2a1542=!0x0){const _0x321af3=_0x16bf5e;this['_formulaAnimation']['setPresentation'](_0x3ca162,_0x2a1542),this[_0x321af3(0x152)][_0x321af3(0x2ff)]=_0x3ca162,this[_0x321af3(0x197)](),this[_0x321af3(0x250)](!0x0);}[_0x16bf5e(0x197)](){const _0xadc5dc=_0x16bf5e;let _0x20a88c=this[_0xadc5dc(0x152)]['shapeModel'],_0x28f859=_0x20a88c[_0xadc5dc(0x1aa)](),_0x3e2d91=_0x4a9cfc(_0x28f859==null?void 0x0:_0x28f859[_0xadc5dc(0x1ef)]),_0x5b4cdc=_0x3e2d91==null?void 0x0:_0x3e2d91[_0xadc5dc(0x238)],_0x1959ee=this[_0xadc5dc(0x2bc)][_0xadc5dc(0x25f)]();if(!_0x5b4cdc||_0x1959ee[_0xadc5dc(0x116)]===0x0)return;_0x20a88c['updateContext']({'width':this[_0xadc5dc(0x18c)],'height':this[_0xadc5dc(0x322)]});let _0x38c37c=_0x203556({'documentData':_0x1959ee[_0xadc5dc(0x210)](_0x32f322=>_0x1eb974(_0x5b4cdc,_0x32f322)),'height':this[_0xadc5dc(0x322)],'shapeData':_0x20a88c[_0xadc5dc(0x18e)](),'textRect':_0x20a88c[_0xadc5dc(0x236)]({'left':0x0,'top':0x0,'width':this[_0xadc5dc(0x18c)],'height':this[_0xadc5dc(0x322)]}),'width':this[_0xadc5dc(0x18c)]});if(_0x38c37c){var _0x2de126;this[_0xadc5dc(0x35c)](_0x38c37c[_0xadc5dc(0x18c)],_0x38c37c[_0xadc5dc(0x322)]),(_0x2de126=this[_0xadc5dc(0x1ff)]())==null||(_0x2de126=_0x2de126['getTransformer']())==null||_0x2de126[_0xadc5dc(0x33e)]();}}get['unitId'](){const _0x25b8fb=_0x16bf5e;return this['_props'][_0x25b8fb(0x29e)];}get['subUnitId'](){const _0x54378e=_0x16bf5e;return this[_0x54378e(0x152)][_0x54378e(0x23b)];}[_0x16bf5e(0x2f7)](_0xa4b6ad){const _0x251bbb=_0x16bf5e;if(this['_props']['srcRect']==null||!this[_0x251bbb(0x227)])return;let {width:_0x18573b,height:_0xabc08f}=this,{width:_0x5b1400=0x0,height:_0x2bd7e1=0x0}=_0xa4b6ad[_0x251bbb(0x235)],{left:_0x3b084d=0x0,top:_0x2cbf32=0x0,right:_0x4e3d48=0x0,bottom:_0x34b123=0x0}=this[_0x251bbb(0x152)]['srcRect'],_0x3f6bdf=_0x3b084d,_0x1abdce=_0x2cbf32,_0x410ba4=_0x4e3d48,_0x2bd75f=_0x34b123,_0x585809=!0x1;if(_0x5b1400!==0x0&&_0x5b1400!==_0x18573b){let _0x2367e1=_0x3b084d/_0x5b1400,_0x201459=_0x4e3d48/_0x5b1400;_0x3f6bdf=_0x18573b*_0x2367e1,_0x410ba4=_0x18573b*_0x201459,_0x585809=!0x0;}if(_0x2bd7e1!==0x0&&_0x2bd7e1!==_0xabc08f){let _0x319b44=_0x2cbf32/_0x2bd7e1,_0x4b9d24=_0x34b123/_0x2bd7e1;_0x1abdce=_0xabc08f*_0x319b44,_0x2bd75f=_0xabc08f*_0x4b9d24,_0x585809=!0x0;}_0x585809&&this[_0x251bbb(0x34e)]({'left':_0x3f6bdf,'top':_0x1abdce,'right':_0x410ba4,'bottom':_0x2bd75f});}[_0x16bf5e(0x34e)](_0x199f29){const _0x4e369f=_0x16bf5e;this[_0x4e369f(0x152)][_0x4e369f(0x11a)]=_0x199f29,this[_0x4e369f(0x250)](!0x0);}[_0x16bf5e(0x34a)](_0x30cec9){const _0x355095=_0x16bf5e;this['_props'][_0x355095(0x29f)]=_0x30cec9,this['makeDirty'](!0x0);}set['transform'](_0x2f0020){this['_transform']=_0x2f0020;}get[_0x16bf5e(0x1e9)](){const _0x146db3=_0x16bf5e;this[_0x146db3(0x121)]||this[_0x146db3(0x296)]();let _0x45002e=this[_0x146db3(0x121)]['clone']();return this['transformForAngle'](_0x45002e);}get[_0x16bf5e(0x1c7)](){const _0x16af86=_0x16bf5e;return this[_0x16af86(0x152)][_0x16af86(0x1c7)];}get['shapeId'](){const _0x56398e=_0x16bf5e;return this['_props'][_0x56398e(0x226)];}get[_0x16bf5e(0x2cd)](){const _0x399113=_0x16bf5e;return _0x80275a[_0x399113(0x1be)];}[_0x16bf5e(0x14e)](_0x52a2b5,_0xad4c79,_0x4edf3f,_0x49ed32){const _0x3dadbc=_0x16bf5e;let _0x53a7eb=this[_0x3dadbc(0x152)][_0x3dadbc(0x1c7)];if(!_0x53a7eb||!_0xad4c79)return;let _0x194314=_0x4edf3f??this['width'],_0x49ed19=_0x49ed32??this[_0x3dadbc(0x322)],_0x1bfc82={'shapeType':_0x53a7eb[_0x3dadbc(0x12d)](),'width':_0x194314,'height':_0x49ed19},_0x146f8c={'renderMode':_0x42d4f9[_0x3dadbc(0x18f)],'oKey':this[_0x3dadbc(0x1a9)],'image':this[_0x3dadbc(0x152)][_0x3dadbc(0x29f)],'angle':this['angle']};_0x53a7eb[_0x3dadbc(0x300)](_0x1bfc82),_0x52a2b5[_0x3dadbc(0x302)]();let _0x5a3ecc={'top':0x0,'left':0x0,'width':_0x194314,'height':_0x49ed19},_0x34ca36=_0x53a7eb[_0x3dadbc(0x336)](_0x5a3ecc);_0x34ca36?this[_0x3dadbc(0x124)](_0x52a2b5,_0x34ca36,_0x34ab00=>{const _0x154904=_0x3dadbc;_0x53a7eb[_0x154904(0x237)](_0x34ab00,_0x5a3ecc,_0x146f8c);}):(this['_releaseRenderCache'](),_0x53a7eb['render'](_0x52a2b5,_0x5a3ecc,_0x146f8c)),_0x52a2b5[_0x3dadbc(0x16f)]();let _0x41bbc6=_0x53a7eb[_0x3dadbc(0x1aa)](),_0x37472e=_0x53a7eb[_0x3dadbc(0x236)](_0x5a3ecc),_0x2bb871=_0x53a7eb[_0x3dadbc(0x354)]();if(_0x41bbc6&&_0x37472e&&!_0x2bb871){_0x52a2b5[_0x3dadbc(0x302)](),this['getState']()[_0x3dadbc(0x353)]&&_0x52a2b5[_0x3dadbc(0x32a)](-0x1,0x1);let _0x5866f3=_0x194314/0x2,_0x3e2c18=_0x49ed19/0x2;_0x52a2b5[_0x3dadbc(0x337)](-_0x5866f3,-_0x3e2c18),_0x52a2b5[_0x3dadbc(0x234)](),this[_0x3dadbc(0x316)](_0x52a2b5,_0x41bbc6,_0x37472e),_0x52a2b5[_0x3dadbc(0x16f)]();}}[_0x16bf5e(0x12e)](_0x7ba3c4){}['_drawShapeText'](_0x7143f4,_0x53c9d5,_0x58aa30){const _0x4513ec=_0x16bf5e;var _0x4137da;this[_0x4513ec(0x152)][_0x4513ec(0x134)]||(!((_0x4137da=_0x53c9d5[_0x4513ec(0x1ef)])!=null&&_0x4137da[_0x4513ec(0x238)])&&_0x4513ec(0x175)in _0x53c9d5&&_0x53c9d5[_0x4513ec(0x175)]===!0x1?this[_0x4513ec(0x1f8)](_0x7143f4,_0x53c9d5,_0x58aa30):this['_drawRichText'](_0x7143f4,_0x53c9d5,_0x58aa30));}[_0x16bf5e(0x1f8)](_0x641a03,_0x3c67e3,_0x141749){const _0x4cc3c0=_0x16bf5e;this[_0x4cc3c0(0x27b)](_0x641a03,{..._0x3c67e3,'text':_0x3c67e3[_0x4cc3c0(0x36b)]??'','dataModel':{'doc':_0x2ad81b(_0x3c67e3,_0x4cc3c0(0x2a0)+this['oKey'])}},_0x141749);}[_0x16bf5e(0x27b)](_0x42ab5a,_0x1cc606,_0x388762){const _0x4b0501=_0x16bf5e;_0x3ae758(_0x42ab5a,this[_0x4b0501(0x2bc)],(_0x420244,_0x141f2b)=>{const _0x4a2da0=_0x4b0501;this[_0x4a2da0(0x33a)](_0x420244,_0x1cc606,_0x388762,_0x141f2b);});}[_0x16bf5e(0x33a)](_0x5101c4,_0x24b103,_0x2d7ee,_0x327953){const _0x17cc8c=_0x16bf5e;let _0x26a03a=this[_0x17cc8c(0x152)][_0x17cc8c(0x19d)];if(!_0x24b103[_0x17cc8c(0x1ef)]||!_0x26a03a){_0x26a03a||console[_0x17cc8c(0x2ba)](_0x17cc8c(0x269));return;}let _0x58d3b1=_0x4a9cfc(_0x24b103[_0x17cc8c(0x1ef)]);if(!_0x58d3b1)return;let _0x5938ef=_0x58d3b1['doc'];if(!_0x5938ef)return;let _0x331c96=_0x1eb974(_0x5938ef,_0x327953),_0x1feb7e=_0x58d3b1['va']??_0xf861a6[_0x17cc8c(0x174)],_0x3379b8=_0x58d3b1['ha']??_0x165288[_0x17cc8c(0x13b)],_0x56569a=Li(this[_0x17cc8c(0x152)][_0x17cc8c(0x1c7)][_0x17cc8c(0x18e)](),_0x24b103,_0x331c96),_0x4dd642=_0x24b103['isHorizontal'],_0x303a34=_0x39bbf1(_0x331c96,{'isHorizontal':_0x4dd642!==!0x1,'textRect':_0x2d7ee,'verticalAlign':_0x1feb7e,'horizontalAlign':_0x3379b8,'wrapStrategy':_0x56569a[_0x17cc8c(0x179)]}),_0x4773c1=new _0x1d7f7d(_0x303a34),_0x502f5e=new _0x47d8e5(_0x4773c1),_0x923d6b=_0x116815[_0x17cc8c(0x206)](_0x502f5e,_0x26a03a);_0x923d6b[_0x17cc8c(0x24b)]();let _0x52da30=_0x923d6b[_0x17cc8c(0x1c3)]()['actualHeight'],_0x125073=_0x208c0b({'contentHeight':_0x52da30,'verticalAlign':_0x1feb7e,'viewportHeight':_0x2d7ee[_0x17cc8c(0x322)]});_0x4773c1[_0x17cc8c(0x213)]({'pageSize':{'width':_0x4dd642===!0x1?_0x2d7ee[_0x17cc8c(0x322)]:_0x2d7ee[_0x17cc8c(0x18c)],'height':_0x28de7f(_0x331c96,_0x125073['contentHeight'])}}),_0x4773c1[_0x17cc8c(0x15d)]({'t':_0x125073[_0x17cc8c(0x315)]}),_0x923d6b[_0x17cc8c(0x24b)]();let _0x5556fa=new _0x51fa0b(_0x17cc8c(0x127)+this[_0x17cc8c(0x1a9)],_0x923d6b,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x5556fa['resize'](_0x2d7ee['width'],_0x125073[_0x17cc8c(0x2c8)]),_0x5101c4[_0x17cc8c(0x302)](),_0x5101c4['translateWithPrecision'](_0x2d7ee[_0x17cc8c(0x241)],_0x2d7ee[_0x17cc8c(0x27e)]),_0x56569a['clip']&&(_0x5101c4[_0x17cc8c(0x234)](),_0x5101c4[_0x17cc8c(0x2a9)](0x0,_0x125073[_0x17cc8c(0x2e1)],_0x2d7ee[_0x17cc8c(0x18c)],_0x125073[_0x17cc8c(0x187)]),_0x5101c4[_0x17cc8c(0x23d)]()),_0x125073['contentVerticalOffset']&&_0x5101c4[_0x17cc8c(0x31e)](0x0,_0x125073[_0x17cc8c(0x2cc)]),_0x5556fa['draw'](_0x5101c4),_0x5101c4['restore'](),_0x5556fa[_0x17cc8c(0x1ca)](),_0x923d6b[_0x17cc8c(0x1ca)](),_0x502f5e['dispose'](),_0x4773c1[_0x17cc8c(0x1ca)]();}[_0x16bf5e(0x237)](_0x1f938e,_0x180549,_0x21a0e1=!0x1){const _0x4d9996=_0x16bf5e;if(!this[_0x4d9996(0x142)])return this[_0x4d9996(0x250)](!0x1),this;let {width:_0x285f59,height:_0x36ff09,left:_0x5d0836,top:_0x14da64}=this,_0x364648=this[_0x4d9996(0x2f4)]();if(_0x285f59=_0x364648[_0x4d9996(0x18c)],_0x36ff09=_0x364648[_0x4d9996(0x322)],_0x5d0836=_0x364648[_0x4d9996(0x241)],_0x14da64=_0x364648[_0x4d9996(0x27e)],this[_0x4d9996(0x28a)](_0x180549)){let {top:_0x1bcc60,left:_0x4a2ca1,bottom:_0xb5964,right:_0xc51fe1}=_0x180549['viewBound'];if(_0x285f59+this[_0x4d9996(0x31b)]+_0x5d0836<_0x4a2ca1||_0xc51fe1<_0x5d0836||_0x36ff09+this[_0x4d9996(0x31b)]+_0x14da64<_0x1bcc60||_0xb5964<_0x14da64)return this;}let _0x1fa0af=_0x5d0836+_0x285f59/0x2,_0x1ed401=_0x14da64+_0x36ff09/0x2,_0x37d4fa=this['transform'][_0x4d9996(0x25b)]();if(this['_props'][_0x4d9996(0x134)]){let _0x5a7627=this[_0x4d9996(0x1a6)](),_0x182c73=new _0x60df43();_0x182c73[_0x4d9996(0x2a1)]({..._0x5a7627}),_0x37d4fa=_0x182c73['getMatrix']();}return _0x1f938e[_0x4d9996(0x302)](),this[_0x4d9996(0x152)][_0x4d9996(0x1c7)][_0x4d9996(0x1f6)]===!0x0||_0x1f938e['transform'](_0x37d4fa[0x0],_0x37d4fa[0x1],_0x37d4fa[0x2],_0x37d4fa[0x3],_0x1fa0af,_0x1ed401),this[_0x4d9996(0x14e)](_0x1f938e,_0x180549,_0x285f59,_0x36ff09),_0x1f938e[_0x4d9996(0x16f)](),this['makeDirty'](!0x1),this;}[_0x16bf5e(0x138)](_0x575d05){const _0x1a680d=_0x16bf5e;let {left:_0x239cb9,top:_0x5992c0,width:_0x11870e,height:_0xcf753d}=this['getRealBound'](),_0x46378d=this[_0x1a680d(0x1e9)][_0x1a680d(0x25b)](),_0x21ccc1=_0x239cb9+_0x11870e/0x2,_0x619a50=_0x5992c0+_0xcf753d/0x2,_0x34ee3c=new _0x60df43([_0x46378d[0x0],_0x46378d[0x1],_0x46378d[0x2],_0x46378d[0x3],_0x21ccc1,_0x619a50]),_0xe392cd=this['getParent']();return(this[_0x1a680d(0x301)]&&(_0xe392cd==null?void 0x0:_0xe392cd[_0x1a680d(0x2cd)])===_0x80275a[_0x1a680d(0x1e0)]?_0xe392cd[_0x1a680d(0x1b3)][_0x1a680d(0x2cb)](_0x34ee3c):_0x34ee3c)[_0x1a680d(0x368)]()[_0x1a680d(0x14c)](_0x575d05);}[_0x16bf5e(0x120)](_0x285687){const _0x4c725d=_0x16bf5e;let {left:_0x4cad0c,top:_0x504aa8,width:_0x967ac6,height:_0xe52467}=this[_0x4c725d(0x2f4)](),_0x17e9fa=_0x4cad0c+_0x967ac6/0x2,_0x486091=_0x504aa8+_0xe52467/0x2,_0x46509f=this[_0x4c725d(0x1e9)][_0x4c725d(0x25b)](),_0x2dd4c8=new _0x60df43([_0x46509f[0x0],_0x46509f[0x1],_0x46509f[0x2],_0x46509f[0x3],_0x17e9fa,_0x486091]),_0x5e7432=this[_0x4c725d(0x133)](),_0x187187=(this[_0x4c725d(0x301)]&&(_0x5e7432==null?void 0x0:_0x5e7432['classType'])===_0x80275a[_0x4c725d(0x1e0)]?_0x5e7432[_0x4c725d(0x1b3)][_0x4c725d(0x2cb)](_0x2dd4c8):_0x2dd4c8)[_0x4c725d(0x368)]()[_0x4c725d(0x14c)](_0x285687),_0x412501=_0x967ac6/0x2,_0xd7107=_0xe52467/0x2,_0x45d6c1=this[_0x4c725d(0x152)][_0x4c725d(0x1c7)];return _0x45d6c1&&_0x45d6c1[_0x4c725d(0x354)]()?_0x45d6c1[_0x4c725d(0x157)](_0x187187['x'],_0x187187['y'],_0x967ac6,_0xe52467):_0x187187['x']>=-_0x412501-this[_0x4c725d(0x31b)]/0x2&&_0x187187['x']<=_0x412501+this[_0x4c725d(0x31b)]/0x2&&_0x187187['y']>=-_0xd7107-this[_0x4c725d(0x31b)]/0x2&&_0x187187['y']<=_0xd7107+this['strokeWidth']/0x2;}[_0x16bf5e(0x1ca)](){const _0xa73637=_0x16bf5e;this[_0xa73637(0x2bc)][_0xa73637(0x1ca)](),this[_0xa73637(0x152)][_0xa73637(0x1c7)]=null,super[_0xa73637(0x1ca)]();}};let zi=class extends _0x3db69a{constructor(_0x224200,_0x49040c,_0x463c96,_0x4073c6){const _0x373b1b=_0x16bf5e;super(),this[_0x373b1b(0x159)]=_0x224200,this[_0x373b1b(0x154)]=_0x49040c,this[_0x373b1b(0x355)]=_0x463c96,this[_0x373b1b(0x180)]=_0x4073c6,Z(this,_0x373b1b(0x125),null),Z(this,_0x373b1b(0x2a6),null),Z(this,_0x373b1b(0x17d),null),Z(this,_0x373b1b(0x292),void 0x0),Z(this,_0x373b1b(0x2af),[]),Z(this,_0x373b1b(0x2f8),0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0x373b1b(0x367),0x0),Z(this,'_baseShapeHeight',0x0),Z(this,_0x373b1b(0x267),!0x1),Z(this,'_isShouldShowDrawingShapeAdjust',!0x1),Z(this,_0x373b1b(0x24f),void 0x0),Z(this,_0x373b1b(0x2ad),void 0x0),Z(this,_0x373b1b(0x1db),void 0x0),Z(this,_0x373b1b(0x2ea),void 0x0),this[_0x373b1b(0x24e)](),this[_0x373b1b(0x15e)]();}['clearAdjustControls'](){const _0x1ebc9f=_0x16bf5e;this[_0x1ebc9f(0x1ab)]();}[_0x16bf5e(0x27d)](){const _0x66e2a3=_0x16bf5e;this[_0x66e2a3(0x14f)](!0x0);}['_getShapeAdjustPointListById'](_0x349aa6,_0x17d451,_0xe5c40e){const _0x262e42=_0x16bf5e;var _0x76618e;return(_0x76618e=this[_0x262e42(0x355)]['getShapeModel'](_0x349aa6,_0x17d451,_0xe5c40e))==null?void 0x0:_0x76618e[_0x262e42(0x12e)]();}['_getShapeAdjustInfosById'](_0x1d30ee,_0x131e26,_0x576e91,_0x2a414e){const _0x429f5b=_0x16bf5e;var _0x380ab5;return(_0x380ab5=this[_0x429f5b(0x355)][_0x429f5b(0x27c)](_0x1d30ee,_0x131e26,_0x576e91))==null?void 0x0:_0x380ab5[_0x429f5b(0x1e7)](_0x2a414e);}[_0x16bf5e(0x132)](){const _0x2ef5d4=_0x16bf5e;return this[_0x2ef5d4(0x2a6)]===null||this[_0x2ef5d4(0x17d)]===null||this['_activeShapeId']===null?null:this[_0x2ef5d4(0x154)][_0x2ef5d4(0x1ce)]({'unitId':this[_0x2ef5d4(0x2a6)],'subUnitId':this[_0x2ef5d4(0x17d)],'drawingId':this[_0x2ef5d4(0x125)]})??null;}[_0x16bf5e(0x1c0)](_0x23fcb1){const _0x57d8dd=_0x16bf5e;if(this[_0x57d8dd(0x2a6)]===null||this[_0x57d8dd(0x17d)]===null||this[_0x57d8dd(0x125)]===null)return null;let _0x50274d=_0xf14320({'unitId':this[_0x57d8dd(0x2a6)],'subUnitId':this[_0x57d8dd(0x17d)],'drawingId':this['_activeShapeId']}),_0x5306f9=_0x23fcb1[_0x57d8dd(0x289)](_0x50274d);return _0x5306f9 instanceof Ri?_0x5306f9:null;}[_0x16bf5e(0x2b2)](_0x29f55d=!0x1){const _0x3dcdcb=_0x16bf5e;if(this['_unitId']===null||this[_0x3dcdcb(0x17d)]===null||this[_0x3dcdcb(0x125)]===null)return;let _0x4b986d=this[_0x3dcdcb(0x132)]();if((_0x4b986d==null?void 0x0:_0x4b986d[_0x3dcdcb(0x2a4)])!==_0x21524c[_0x3dcdcb(0x247)]||!_0x4b986d[_0x3dcdcb(0x1e9)])return;let _0x48fb5e=this[_0x3dcdcb(0x355)][_0x3dcdcb(0x27c)](this['_unitId'],this['_subUnitId'],this[_0x3dcdcb(0x125)]);if(!_0x48fb5e||_0x48fb5e[_0x3dcdcb(0x354)]())return;let {left:_0x2bfd3d=0x0,top:_0x165027=0x0,width:_0x14f2d9=0x0,height:_0x41ed9d=0x0,flipX:_0x103ff9,flipY:_0x54829a,angle:_0x43cbb7=0x0}=_0x4b986d['transform'];(_0x29f55d||!this[_0x3dcdcb(0x292)])&&(_0x48fb5e[_0x3dcdcb(0x300)]({'width':_0x14f2d9,'height':_0x41ed9d}),this[_0x3dcdcb(0x292)]=_0x48fb5e[_0x3dcdcb(0x12e)]());let _0x4d5552=this[_0x3dcdcb(0x292)];if(!(_0x4d5552!=null&&_0x4d5552[_0x3dcdcb(0x116)]))return;let {scene:_0x133d8e}=this[_0x3dcdcb(0x159)];for(let _0x4f42f8 of _0x4d5552){let _0x59b5b8=this[_0x3dcdcb(0x372)](_0x4f42f8,_0x14f2d9,_0x41ed9d,!!_0x103ff9,!!_0x54829a,_0x43cbb7);this['_addShapeAdjustControl'](_0x133d8e,_0x59b5b8,_0x59b5b8['adjName'],_0x2bfd3d,_0x165027,this[_0x3dcdcb(0x2a6)],this[_0x3dcdcb(0x17d)]);}}[_0x16bf5e(0x372)](_0x11b3d3,_0x4d0276,_0x443866,_0x4decab,_0xc8e98f,_0x2de569){const _0x376f35=_0x16bf5e;let _0x351d5c=_0x11b3d3['x'],_0x24c2c0=_0x11b3d3['y'];if(_0x4decab&&(_0x351d5c=_0x4d0276-_0x351d5c),_0xc8e98f&&(_0x24c2c0=_0x443866-_0x24c2c0),_0x2de569!==0x0){let _0x3da080=_0x4d0276/0x2,_0x1cf852=_0x443866/0x2,_0x1a928e=_0x2de569*Math['PI']/0xb4,_0x2ccb5b=Math[_0x376f35(0x30d)](_0x1a928e),_0x252a4e=Math[_0x376f35(0x2e5)](_0x1a928e),_0x2f0eab=_0x351d5c-_0x3da080,_0xf42fdd=_0x24c2c0-_0x1cf852;_0x351d5c=_0x3da080+(_0x2f0eab*_0x2ccb5b-_0xf42fdd*_0x252a4e),_0x24c2c0=_0x1cf852+(_0x2f0eab*_0x252a4e+_0xf42fdd*_0x2ccb5b);}return{'x':_0x351d5c,'y':_0x24c2c0,'adjName':_0x11b3d3[_0x376f35(0x332)]};}[_0x16bf5e(0x14f)](_0x52409e=!0x1){const _0x273900=_0x16bf5e;_0x52409e&&this[_0x273900(0x1ab)](),this[_0x273900(0x2b2)](_0x52409e);}['_addShapeAdjustControl'](_0x2005d4,_0x32797d,_0xc690ab,_0x4bc932,_0x43d41b,_0x4ca2b6,_0xd7d4cf){const _0x43731e=_0x16bf5e;if(!this[_0x43731e(0x125)])return;let _0xebebfa=_0x43731e(0x29a)+this[_0x43731e(0x125)]+'-'+_0xc690ab,_0x4036d8=_0x2005d4[_0x43731e(0x289)](_0xebebfa);if(_0x4036d8){_0x4036d8[_0x43731e(0x1b1)]({'left':_0x32797d['x']+_0x4bc932-_0x4c92e4[_0x43731e(0x299)],'top':_0x32797d['y']+_0x43d41b-_0x4c92e4[_0x43731e(0x299)]}),_0x4036d8[_0x43731e(0x250)](!0x0);return;}let _0xb7dc54=new Ii(_0xebebfa,{'left':_0x32797d['x']+_0x4bc932-_0x4c92e4[_0x43731e(0x299)],'top':_0x32797d['y']+_0x43d41b-_0x4c92e4['adjHandleSize'],'adjName':_0xc690ab,'shapeId':this[_0x43731e(0x125)],'unitId':_0x4ca2b6,'subUnitId':_0xd7d4cf,'width':_0x4c92e4[_0x43731e(0x299)]+0x8,'height':_0x4c92e4['adjHandleSize']+0x8,'zIndex':_0x19f6eb+0x1,'evented':!0x0});this[_0x43731e(0x2af)][_0x43731e(0x1bc)](_0xb7dc54),this['_attachAdjustEvent'](_0xb7dc54,_0x2005d4,_0xc690ab),_0x2005d4[_0x43731e(0x200)](_0xb7dc54,_0x19f6eb+0x1);}[_0x16bf5e(0x1ab)](){const _0x2b598a=_0x16bf5e;this[_0x2b598a(0x2af)][_0x2b598a(0x276)](_0x556739=>_0x556739[_0x2b598a(0x1ca)]()),this[_0x2b598a(0x2af)]=[];}['_updateAdjustControlPositions'](){const _0x363a8d=_0x16bf5e;this[_0x363a8d(0x2b2)]();}[_0x16bf5e(0x35b)](_0x4a65ef,_0x41d047,_0x4a7caa){const _0x290c12=_0x16bf5e;let _0x2bbb96=_0xed2876[_0x290c12(0x259)]([_0x41d047,_0x4a7caa]),_0x5b7e99=_0x4a65ef['getActiveViewportByCoord'](_0x2bbb96)??_0x4a65ef[_0x290c12(0x310)]()[0x0];return(_0x5b7e99==null?void 0x0:_0x5b7e99[_0x290c12(0x195)](_0x2bbb96))??_0x2bbb96;}[_0x16bf5e(0x35d)](_0x102df0,_0x38ae5a,_0x1740e7){const _0x5e8437=_0x16bf5e;this[_0x5e8437(0x371)](_0x5bca0e(_0x102df0[_0x5e8437(0x229)][_0x5e8437(0x1b2)]((_0x2b1c0b,_0x36af56)=>{const _0x53a72b=_0x5e8437;var _0x455493;let _0x33b910=_0x102df0[_0x53a72b(0x11f)]();this[_0x53a72b(0x24f)]=this[_0x53a72b(0x1e4)](_0x33b910[_0x53a72b(0x29e)],_0x33b910['subUnitId'],_0x33b910[_0x53a72b(0x344)],_0x1740e7),this[_0x53a72b(0x2ad)]=this[_0x53a72b(0x355)][_0x53a72b(0x27c)](_0x33b910[_0x53a72b(0x29e)],_0x33b910[_0x53a72b(0x23b)],_0x33b910[_0x53a72b(0x344)]);let _0x3dde8a=this[_0x53a72b(0x132)](),_0x5680a8=_0x3dde8a==null?void 0x0:_0x3dde8a[_0x53a72b(0x1e9)];if(!_0x3dde8a||!_0x5680a8||!this[_0x53a72b(0x2ad)])return;this[_0x53a72b(0x2f8)]=_0x5680a8[_0x53a72b(0x241)]||0x0,this[_0x53a72b(0x18d)]=_0x5680a8['top']||0x0,this[_0x53a72b(0x367)]=_0x5680a8['width']||0x0,this[_0x53a72b(0x155)]=_0x5680a8[_0x53a72b(0x322)]||0x0;let _0x3c1f64=!!_0x5680a8[_0x53a72b(0x353)],_0x35df57=!!_0x5680a8['flipY'],_0x55368d=_0x5680a8[_0x53a72b(0x298)]||0x0,_0x12339d={...((_0x455493=this['_activeAdjustInfo'])==null?void 0x0:_0x455493[_0x53a72b(0x350)])??{}};this[_0x53a72b(0x267)]=!0x0,_0x38ae5a[_0x53a72b(0x245)](),this['_adjHandlerPointerMove']=_0x38ae5a['onPointerMove$'][_0x53a72b(0x1b2)]((_0x3af7f1,_0x3b59b2)=>{const _0x2e1e25=_0x53a72b;var _0x1de2bf;if(!this['_isStartAdjusting']||!this['_activeShapeModel']||!this[_0x2e1e25(0x24f)])return;_0x38ae5a[_0x2e1e25(0x245)](),_0x38ae5a['setCursor'](_0x1dfb4e[_0x2e1e25(0x17a)]);let _0x339a7e=this[_0x2e1e25(0x35b)](_0x38ae5a,_0x3af7f1[_0x2e1e25(0x35f)],_0x3af7f1[_0x2e1e25(0x283)]),_0x287377=_0x339a7e['x']-this[_0x2e1e25(0x2f8)],_0x23c481=_0x339a7e['y']-this[_0x2e1e25(0x18d)];if(_0x55368d!==0x0){let _0x430bd5=this[_0x2e1e25(0x367)]/0x2,_0x49d878=this['_baseShapeHeight']/0x2,_0x39e1db=_0x55368d*Math['PI']/0xb4,_0x41d834=Math[_0x2e1e25(0x30d)](_0x39e1db),_0xc3b788=Math['sin'](_0x39e1db),_0x1743ea=_0x287377-_0x430bd5,_0x9b909b=_0x23c481-_0x49d878;_0x287377=_0x430bd5+(_0x1743ea*_0x41d834+_0x9b909b*_0xc3b788),_0x23c481=_0x49d878+(-_0x1743ea*_0xc3b788+_0x9b909b*_0x41d834);}_0x3c1f64&&(_0x287377=this[_0x2e1e25(0x367)]-_0x287377),_0x35df57&&(_0x23c481=this[_0x2e1e25(0x155)]-_0x23c481);let _0x93f780={'left':0x0,'top':0x0,'width':this[_0x2e1e25(0x367)],'height':this[_0x2e1e25(0x155)]},_0x15c540=this[_0x2e1e25(0x2ad)]['calcAdjValues'](_0x93f780,{'x':_0x287377,'y':_0x23c481},this['_activeAdjustInfo'],_0x3c1f64,_0x35df57);if(Object[_0x2e1e25(0x130)](_0x15c540)['length']!==0x0){for(let [_0x1bef99,_0x5a07ae]of Object['entries'](_0x15c540))this['_activeShapeModel']['setAdjustValueByName'](_0x1bef99,_0x5a07ae);this['_activeShapeModel'][_0x2e1e25(0x300)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0x1de2bf=this[_0x2e1e25(0x1c0)](_0x38ae5a))==null||_0x1de2bf[_0x2e1e25(0x250)](!0x0),this[_0x2e1e25(0x292)]=this[_0x2e1e25(0x2aa)](_0x33b910[_0x2e1e25(0x29e)],_0x33b910[_0x2e1e25(0x23b)],_0x33b910[_0x2e1e25(0x344)]),this[_0x2e1e25(0x2a3)](),_0x3b59b2[_0x2e1e25(0x189)]();}}),this[_0x53a72b(0x2ea)]=_0x38ae5a[_0x53a72b(0x2e4)]['subscribeEvent']((_0x1e04cc,_0x2e1204)=>{const _0x5eed5d=_0x53a72b;var _0x2e56bf,_0x463bc1;(_0x2e56bf=this[_0x5eed5d(0x1db)])==null||_0x2e56bf[_0x5eed5d(0x1ae)](),(_0x463bc1=this[_0x5eed5d(0x2ea)])==null||_0x463bc1['unsubscribe'](),_0x38ae5a[_0x5eed5d(0x285)]();let _0x52805d=this[_0x5eed5d(0x24f)];if(_0x52805d&&this[_0x5eed5d(0x2ad)]){let _0x1bf9be={};for(let _0x373d02 of Object[_0x5eed5d(0x130)](_0x52805d[_0x5eed5d(0x350)])){let _0x102bbb=this[_0x5eed5d(0x2ad)][_0x5eed5d(0x1ed)](_0x373d02);_0x102bbb!==void 0x0&&(_0x1bf9be[_0x373d02]=_0x102bbb);}Object[_0x5eed5d(0x130)](_0x1bf9be)['length']>0x0&&zr(this['_commandService'],_0x33b910['unitId'],_0x33b910['subUnitId'],_0x33b910[_0x5eed5d(0x344)],{'oldShapeData':{'adjustValues':_0x12339d}},{'adjustValues':_0x1bf9be});}this[_0x5eed5d(0x24f)]=void 0x0,this[_0x5eed5d(0x2ad)]=void 0x0,this[_0x5eed5d(0x267)]=!0x1,_0x38ae5a['enableObjectsEvent'](),_0x2e1204[_0x5eed5d(0x189)]();}),_0x36af56[_0x53a72b(0x189)]();})));}[_0x16bf5e(0x15e)](){const _0x5ec281=_0x16bf5e;let {scene:_0x3b8102}=this[_0x5ec281(0x159)],_0x4af57c=_0x3b8102['getTransformerByCreate']();this[_0x5ec281(0x371)](_0x4af57c['changeStart$']['subscribe'](_0x154ea4=>{const _0x568776=_0x5ec281;this[_0x568776(0x2b2)](),_0x154ea4['objects']!==null&&_0x154ea4[_0x568776(0x17e)][_0x568776(0x14a)]===0x1&&_0x154ea4[_0x568776(0x17e)][_0x568776(0x12f)]()[_0x568776(0x2c7)]()[_0x568776(0x171)]instanceof Ri&&(this[_0x568776(0x117)]=!0x0);})),this[_0x5ec281(0x371)](_0x4af57c['changing$'][_0x5ec281(0x1e1)](()=>{const _0x18b15f=_0x5ec281;this[_0x18b15f(0x117)]&&this[_0x18b15f(0x1ab)]();})),this[_0x5ec281(0x371)](_0x3b8102[_0x5ec281(0x2e4)][_0x5ec281(0x1b2)](()=>{const _0x5e2251=_0x5ec281;this[_0x5e2251(0x117)]&&(this[_0x5e2251(0x117)]=!0x1,this[_0x5e2251(0x2b2)]());})),this[_0x5ec281(0x371)](_0x4af57c['changeEnd$'][_0x5ec281(0x1e1)](()=>{const _0x219efa=_0x5ec281;this[_0x219efa(0x2a6)]&&this[_0x219efa(0x17d)]&&this[_0x219efa(0x125)]&&(this[_0x219efa(0x292)]=this[_0x219efa(0x2aa)](this[_0x219efa(0x2a6)],this[_0x219efa(0x17d)],this[_0x219efa(0x125)]),this[_0x219efa(0x2a3)]());}));}[_0x16bf5e(0x24e)](){const _0x413b36=_0x16bf5e;this[_0x413b36(0x371)](this['_commandService'][_0x413b36(0x188)](_0xac07a2=>{const _0x4554cc=_0x413b36;if(_0xac07a2['id']!==_0x135998['id'])return;let {unitId:_0x51dc02,shapeId:_0x493b07}=_0xac07a2[_0x4554cc(0x2ef)];_0x51dc02===this[_0x4554cc(0x2a6)]&&_0x493b07===this['_activeShapeId']&&this['refreshAdjustControls']();})),this[_0x413b36(0x371)](this['_drawingManagerService'][_0x413b36(0x149)]['subscribe'](_0x502eb7=>{const _0x330ed4=_0x413b36;if(_0x502eb7[_0x330ed4(0x116)]===0x1){let _0x78f3a7=_0x502eb7[0x0],_0x235cb5=this[_0x330ed4(0x154)][_0x330ed4(0x1ce)](_0x78f3a7);if((_0x235cb5==null?void 0x0:_0x235cb5[_0x330ed4(0x2a4)])===_0x21524c['DRAWING_SHAPE']){this[_0x330ed4(0x125)]=_0x78f3a7[_0x330ed4(0x344)],this[_0x330ed4(0x2a6)]=_0x78f3a7['unitId'],this[_0x330ed4(0x17d)]=_0x78f3a7['subUnitId'],this[_0x330ed4(0x292)]=this[_0x330ed4(0x2aa)](_0x78f3a7[_0x330ed4(0x29e)],_0x78f3a7['subUnitId'],_0x78f3a7[_0x330ed4(0x344)]),this[_0x330ed4(0x1ab)](),this['_createShapeAdjustControls']();return;}}this[_0x330ed4(0x125)]=null,this[_0x330ed4(0x292)]=void 0x0,this['_unitId']=null,this[_0x330ed4(0x17d)]=null,this['_clearShapeAdjustControls']();})),this[_0x413b36(0x371)](_0x71248(this[_0x413b36(0x154)][_0x413b36(0x2c6)],this['_drawingManagerService'][_0x413b36(0x360)])[_0x413b36(0x1e1)](_0x37eec8=>{const _0x5cf7b8=_0x413b36;var _0x3ff854;let _0x2df632=_0x37eec8['find'](_0x141925=>_0x141925[_0x5cf7b8(0x344)]===this['_activeShapeId']&&_0x141925[_0x5cf7b8(0x29e)]===this[_0x5cf7b8(0x2a6)]&&_0x141925[_0x5cf7b8(0x23b)]===this[_0x5cf7b8(0x17d)]);_0x2df632&&((_0x3ff854=this[_0x5cf7b8(0x154)][_0x5cf7b8(0x1ce)](_0x2df632))==null?void 0x0:_0x3ff854[_0x5cf7b8(0x2a4)])===_0x21524c[_0x5cf7b8(0x247)]&&this[_0x5cf7b8(0x14f)](!0x0);})),this[_0x413b36(0x371)](this[_0x413b36(0x154)][_0x413b36(0x1d2)][_0x413b36(0x1e1)](_0x588fd1=>{const _0xe263ed=_0x413b36;for(let _0x4c7a4d of _0x588fd1)this[_0xe263ed(0x125)]===_0x4c7a4d['drawingId']&&(this[_0xe263ed(0x125)]=null,this[_0xe263ed(0x292)]=void 0x0,this[_0xe263ed(0x2a6)]=null,this[_0xe263ed(0x17d)]=null,this[_0xe263ed(0x1ab)]());}));}};zi=Y([J(0x1,_0x30fd72),J(0x2,_0x1f7d38(_0xda92b6)),J(0x3,_0x38aa04)],zi);let Q=class extends _0x3db69a{constructor(_0xc2b796,_0x3b3517){const _0x3a1970=_0x16bf5e;super(),this[_0x3a1970(0x16a)]=_0xc2b796,this[_0x3a1970(0x1b0)]=_0x3b3517,Z(this,_0x3a1970(0x34b),new _0x54747c(null)),Z(this,_0x3a1970(0x2b9),this[_0x3a1970(0x34b)][_0x3a1970(0x1d5)]()),Z(this,_0x3a1970(0x346),new _0x54747c(!0x1)),Z(this,'onSavingEditorData$',this['_onSavingEditorData$']['asObservable']()),Z(this,_0x3a1970(0x261),void 0x0),this['disposeWithMe'](this[_0x3a1970(0x16a)]['permissionPointUpdate$']['subscribe'](()=>{const _0x571b3c=_0x3a1970;let _0x3e8e16=this[_0x571b3c(0x136)]();_0x3e8e16!=null&&_0x3e8e16[_0x571b3c(0x142)]&&!this[_0x571b3c(0x1a4)](_0x3e8e16)&&this[_0x571b3c(0x1cd)](null);}));}['dispose'](){const _0x57ca2c=_0x16bf5e;this['_clearCompletionFrame'](),this[_0x57ca2c(0x34b)]['next'](null),this[_0x57ca2c(0x34b)][_0x57ca2c(0x318)](),this[_0x57ca2c(0x346)][_0x57ca2c(0x2c7)](!0x1),this['_onSavingEditorData$'][_0x57ca2c(0x318)](),super[_0x57ca2c(0x1ca)]();}[_0x16bf5e(0x1cd)](_0x5aeeb3){const _0x468c4b=_0x16bf5e;(_0x5aeeb3==null||!_0x5aeeb3[_0x468c4b(0x142)]||this[_0x468c4b(0x1a4)](_0x5aeeb3))&&(this['_clearCompletionFrame'](),this[_0x468c4b(0x34b)][_0x468c4b(0x2c7)](_0x5aeeb3),(_0x5aeeb3==null||_0x5aeeb3[_0x468c4b(0x142)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x468c4b(0x346)][_0x468c4b(0x2c7)](!0x1));}[_0x16bf5e(0x1f7)](_0x58ddb1){const _0x241c4b=_0x16bf5e;this[_0x241c4b(0x346)][_0x241c4b(0x2c7)](_0x58ddb1);}[_0x16bf5e(0x136)](){const _0x5d7a17=_0x16bf5e;return this[_0x5d7a17(0x34b)]['getValue']();}[_0x16bf5e(0x1a4)](_0x5f6ca4){const _0x5aee2b=_0x16bf5e;let _0xf06a8b=this[_0x5aee2b(0x1b0)][_0x5aee2b(0x258)](_0x5f6ca4[_0x5aee2b(0x29e)],_0x5a336e[_0x5aee2b(0x1e2)]);if(!_0xf06a8b)return!0x0;let _0x338182=_0x359abd(_0xf06a8b,_0x5f6ca4[_0x5aee2b(0x226)]);return _0x1aefa3(this['_permissionService'],_0x5f6ca4[_0x5aee2b(0x29e)],[..._0x2f3e76(_0xf06a8b,_0x338182,_0x5aee2b(0x305),_0x5f6ca4[_0x5aee2b(0x226)]),_0x3200bc(_0x338182,_0x5aee2b(0x305),_0x5f6ca4[_0x5aee2b(0x226)])]);}[_0x16bf5e(0x15c)](_0x998e97){const _0x3e0174=_0x16bf5e;let _0x2b835f=this[_0x3e0174(0x136)]();_0x2b835f&&this[_0x3e0174(0x261)]===void 0x0&&(this[_0x3e0174(0x1f7)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0xb937c3=_0x3e0174;this[_0xb937c3(0x261)]=void 0x0,this[_0xb937c3(0x136)]()===_0x2b835f&&this[_0xb937c3(0x1cd)](null);}));}[_0x16bf5e(0x1da)](){const _0x52d1fb=_0x16bf5e;this[_0x52d1fb(0x261)]!==void 0x0&&(cancelAnimationFrame(this[_0x52d1fb(0x261)]),this[_0x52d1fb(0x261)]=void 0x0);}[_0x16bf5e(0x31a)](){const _0xcb725b=_0x16bf5e;this[_0xcb725b(0x136)]()&&this['setEditing'](null);}};function _0x261b(){const _0x166a27=['clipTop','some','getUnitId','onPointerUp$','sin','delete','open','packageName','fillImageSource','_adjHandlerPointerUp','round','gradientEndColor','style','visible$','params','data','_refreshShapeData','shapeData','shape-editor-ui.arrange.back','getRealBound','get','TRUE','_updateSrcRectByTransform','_baseShapeLeft','constructor','filter','univer-box-border\x20univer-px-4\x20univer-text-sm','getSelfOrHeaderFooterModel','docs-shape-ui.objectListPanel.title','presentation','formulaPresentation','updateContext','isInGroup','save','drawing-ui.objectListPanel.collapse','layoutType','drawing','TopmostIcon','INLINE','docs-shape-ui.hidePanel','Rect','setShapeProps','_getShapeInfo','focusDrawing','cos','_getShapePopup','_shapeEditPanelVersion','getViewports','description','_imageIoService','add','clip-','marginTop','_drawShapeText','endOffset','complete','docs-shape-ui.crop.shape','cancelEditing','strokeWidth','intercept','VIEW_MAIN','translateWithPrecision','ShapeFormatSettingIcon','actualHeight','_endLayoutInteraction','height','activeTarget','shapeType','docs-shape-ui.objectListPanel.open','entries','Large','buildClipPath','isMainScene','scale','7678620rhaGDn','getImage','_shapeId','clipByShape','docs-shape-ui.textWrap.behindText','_disposePopupsByUnit','58113jMUvLg','adjName','_popupMenuListener','_getFocusedShapeAtPoint','_getDependencies','getDrawingEffectBounds','translate','docs-shape-ui.textWrap.square','getVisible','_drawRichTextLayer','_getSceneByUnitId','_menuManagerService','.below','debounceRefreshControls','_getRenderModules','docs-shape-ui.shape-format.quick-style-gallery','setFallbackVisible','set','28SRnmWu','drawingId','docs-shape-ui.insertShape','_onSavingEditorData$','7242396tQVasj','registerRenderModule','_adjName','setFillImage','_editingParams$','getFocusedUnit','133511yGfdOA','setSrcRect','DocsShapeWrapInFrontOfTextIcon','currentAdjustValues','drawing-ui.objectListPanel.filterHidden','0.14','flipX','isLineShape','_docsShapeService','sectionFloating','CONTENT','registerComponent','register','_update','_toScenePoint','resize','_attachAdjustEvent','type','offsetX','refreshTransform$','skeFooters','SolidLine','LAYOUT','drawing-ui.objectListPanel.lock','docs-shape-ui.formatShape','interceptor','_baseShapeWidth','invert','_docDrawingShapeRenderController','_componentManager','text','_hide','_initSelection','_layoutInteraction','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','featurePluginUpdateNotification','disposeWithMe','_toVisualAdjustPoint','registerClipDelegate','shape-editor-ui.toolbar.changeShape','OTHERS','popup','color','Arrow','length','_isShouldShowDrawingShapeAdjust','paragraphMenuPlacement','_closeShapeEditPanel','srcRect','docs-shape-ui.ribbon.shape-format.arrange-front','5.5','BUTTON','default','getDrawingSearch','isHit','_transform','PARAGRAPH','BottomIcon','_renderWithCache','_activeShapeId','WRAP_NONE','shape-text-','3716022wmEpsv','doc.shape.floating-toolbar','getSkeletonData','panel','isolated','getShapeType','getDrawingPoints','values','keys','trim','_getActiveDrawingParam','getParent','isEditing','ShapeIcon','getEditing','behindDoc','getInverseCoord','isDrawingObject','refreshFormulaPresentation','LEFT','_iconManager','doc.operation.open-shape-object-list-panel','splice','_initEditingParams','setCanUseShapeClip','_isOpenedShapeEditPanel','visible','attachPopupToObject','drawing-ui.objectListPanel.hide','setContextValue','drawing-ui.objectListPanel.noSelection','syncExecuteCommand','menu','focus$','size','onDblclick$','applyPoint','iterator','_draw','_updateShapeAdjustControls','getCurrentUnitOfType','_registerComponents','_props','drawing-ui.objectListPanel.moveBackward','_drawingManagerService','_baseShapeHeight','drawing-ui.objectListPanel.sectionFloating','isHitLine','pages','_context','back','doc.shape.picker.component','completeEditing','updateDocumentDataMargin','_registerDrawingTransformHandler','getPresentation','drawing-ui.objectListPanel.showAll','skeTables','extraProps','canvas','formulaBinding','_contextService','OPERATION','setFormulaPresentation','drawWith','clearControl$','_permissionService','_initialize','docs-shape-ui.textWrap.inline','doc.image-clip.shape-picker.component','univer-grid\x20univer-gap-5\x20univer-p-3','restore','getDrawingData','value','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_canEditShape','TOP','isRichText','BEHIND_TEXT','getShapeDataById','_registerImageShapeClipDelegate','wrapStrategy','CROSSHAIR','getDrawingDataForUnit','_docCanvasPopManagerService','_subUnitId','objects','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','_commandService','DocsShapeWrapInlineIcon','refreshShapeFillImage','DocsShapeTextEditorContainer','renderDrawingShape','permissionPointUpdate$','_renderManagerService','clipHeight','onCommandExecuted','stopPropagation','_popupTargetKeys','drawing-ui.objectListPanel.dragToReorder','width','_baseShapeTop','getShapeData','Path','_registerIcons','engine','docs-shape-ui.mobile.text','_localeService','actions','transformVector2SceneCoord','DRAWING_DOM','_applyFormulaAutoFitSize','_clipService','drawing-ui.objectListPanel.title','footerId','_clearPopups','shape-editor-ui.arrange.backward','localeService','close','defineProperty','skeDrawings','selectable','createControl$','DocsShapeWrapBehindTextIcon','_canEdit','docs-shape-ui.quickStyles','getState','2534790uPlytR','_activeShapeInfo','oKey','getShapeTextData','_clearShapeAdjustControls','_registerPickers','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','unsubscribe','docs-shape-ui.shape-format.style-ribbon-control','_instanceService','transformByState','subscribeEvent','ancestorTransform','shapeKey','true','reduce','docs-shape-ui.ribbon.shape-format.style-control','max','prstGeom','doc.operation.close-doc-shape-format-panel','changing$','push','_lastEditingShapeKey','SHAPE','_shapeTextEditingService','_getActiveDrawingShape','shape-editor-ui.toolbar.quickStyles','onload','getActualSize','pick','rows','_sidebarDisposable','shapeModel','_shapeRenderController','pluginName','dispose','icon','_openShapeEditPanel','setEditing','getDrawingByParam','DRAWING_IMAGE','fontSize','_univerInstanceService','remove$','docs-shape-ui.ribbon.shape-format.wrapping-style','add$','asObservable','_handleCreateControl','setShapeData','_shapeFormulaService','docs-shape-ui.textWrap.topAndBottom','_clearCompletionFrame','_adjHandlerPointerMove','clearAdjustValue','drawings','setPresentation','scene','GROUP','subscribe','UNIVER_DOC','docs-shape-ui.ribbon.shape-format','_getShapeAdjustInfosById','sectionCanvas','animateFormulaPresentation','getAdjustInfoByName','drawing-ui.objectListPanel.locate','transform','includes','docs-shape-ui.ribbon.shape-format.formula-control','drawing-ui.objectListPanel.unlock','getAdjustValueByName','path','dataModel','DocsShapeWrapTopBottomIcon','_measure','forward','ObjectLayersIcon','_loadShapePictureFill','startOffset','isRenderLinePointsMode','setOnSavingEditorData','_drawSimpleText','top-bottom','drawing-ui.objectListPanel.expand','toPrimitive','_sidebarService','getTransformerByCreate','autoFitType','getScene','addObject','getDrawingOrder','unregister','None','MEDIA','getDrawingEditable','create','setPrstGeom','_shapeFloatingToolbarService','adjHandleFill','docs-shape-ui.textWrap.inFrontText','1.0.1','showContextualTab','_initCommands','pageWidth','_registerOperations','map','_mobileEditorService','docs-shape-ui.mobile.delete','updateDocumentStyle','doc.shape.text.float-menu','_formulaShapes','PRINTING_COMPONENT_COLLECT','MoveUpIcon','pipe','has','horizontal','_initUIPart','getPageDrawingIds','title','doc.operation.open-doc-shape-format-panel','Medium','onReady','registerCommand','_configService','getAllRenderersOfType','onStarting','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shapeId','_transformCalculateSrcRect','DocumentEntity','onPointerDown$','presentationChanged$','getInterceptPoints','_updateShape','drawing-ui.objectListPanel.lockAll','span','svg','fallbackWidth','_ribbonService','executeCommand','src','beginPath','preValue','getShapeTextRect','render','doc','endArrow','onRendered','subUnitId','onTransformChange$','clip','_initEvents','div','front','left','doc.command.menu-insert-shape','mergeMenu','onerror','disableObjectsEvent','doc.shape.edit.panel','DRAWING_SHAPE','drawing-ui.objectListPanel.filterAll','_formulaKey','_getDisposePopups','calculate','indexOf','docs-shape-ui.deleteShape','_registerDrawingFocusChangeHandler','_activeAdjustInfo','makeDirty','_drawingType','behind','getShapeTypeById','-layout','reverse','cells','fillImageSourceType','getUnit','FromArray','spaceBelowApply','getMatrix','extensionGroups','object','getOwnPropertyDescriptor','getAutoFitPresentations','getRenderUnitById','_completionFrame','attachTransformerTo','docs-shape-ui.openPanel','getSelectedObjectMap','startIndex','DocsShapeWrapSquareIcon','_isStartAdjusting','skeHeaders','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','function','_docLayoutInteractionService','getDrawingOKey','_initPrinting','decorate','with','below','docs-shape-ui.config','IN_FRONT_OF_TEXT','fontFamily','drawing-ui.objectListPanel.filterLocked','drawing-ui.objectListPanel.unlockAll','forEach','_loadAndSetImage','drawing-ui.objectListPanel.hideAll','currentColor','drawing-ui.objectListPanel.lockHint','_drawRichText','getShapeModel','refreshAdjustControls','top','_insertShapes','animationEnabled','sheet.image-clip.shape-picker.component','behindText','offsetY','SELECTOR','resetCursor','getCurrentTypeOfUnit$','drawing-ui.objectListPanel.unlockHint','drawing-ui.objectListPanel.search','getObjectIncludeInGroup','isRender','drawing-ui.objectListPanel.typeNames.','WRAP_TOP_AND_BOTTOM','_injector','presetId','_urlImageService','UNIVER_SHEET','updateShapeFillImage','_activeShapeAdjustPointList','drawing-ui.objectListPanel.nameInput','square','MoveDownIcon','_setTransForm','hidden','angle','adjHandleSize','doc-shape-adjust-point-','Line','@univerjs-pro/docs-shape-ui','DOCS_SHAPE_UI_PLUGIN','unitId','image','docs-shape-text-','composeMatrix','canDispose','_updateAdjustControlPositions','drawingType','drawing-ui.objectListPanel.sectionCanvas','_unitId','setCollapsedIds','version','rect','_getShapeAdjustPointListById','paragraphId','isFinite','_activeShapeModel','_registerFloatingToolbar','_adjustPointObjects','inline','getFocusDrawings','_createShapeAdjustControls','prototype','_docPrintInterceptorService','WRAP_SQUARE','getUnitType','drawing-ui.objectListPanel.empty','custom','editingParams$','warn','backward','_formulaAnimation','_registerObjectListPanel','error','SHAPE_TEXT','1.2','fallbackHeight','addImageSourceCache','_init','0.8','parent','update$','next','contentHeight','COMMAND','disableShapeOption','multiply','contentVerticalOffset','classType','getBody','fill','_config','shapeText','_initMenu','symbol','_visible','SpAutoFit','docs-shape-ui.ribbon.shape-format.arrange-forward','PictureFill','top-center','601449GqzQaA','setConfig','docs-shape-ui.ribbon.shape-format.arrange-back','1em','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','find','2696oJyagt','canvasElement'];_0x261b=function(){return _0x166a27;};return _0x261b();}Q=Y([J(0x0,_0x137531),J(0x1,_0x3fa0e3)],Q);function Bi(_0x27e8e8){const _0x5061fa=_0x16bf5e;return _0x27e8e8[_0x5061fa(0x282)]===!0x0||_0x27e8e8['behindText']===_0x2fa3f8[_0x5061fa(0x2f6)]||_0x27e8e8[_0x5061fa(0x304)]===_0x2cf572[_0x5061fa(0x126)]&&_0x27e8e8[_0x5061fa(0x137)]===_0x2fa3f8['TRUE']?_0x31db56-0x1:_0x19f6eb;}let $=class extends _0x3db69a{constructor(_0x2fd1bc,_0x4a1324,_0x52b0d1,_0x31c7c6,_0x5d3f6d,_0x4644da,_0x55c41e){const _0xc4e39a=_0x16bf5e;super(),this['_drawingManagerService']=_0x2fd1bc,this[_0xc4e39a(0x355)]=_0x4a1324,this['_localeService']=_0x52b0d1,this[_0xc4e39a(0x312)]=_0x31c7c6,this[_0xc4e39a(0x28f)]=_0x5d3f6d,this[_0xc4e39a(0x1bf)]=_0x4644da,this['_shapeFormulaService']=_0x55c41e,Z(this,_0xc4e39a(0x215),new Map()),this[_0xc4e39a(0x371)](this[_0xc4e39a(0x1d8)][_0xc4e39a(0x22a)][_0xc4e39a(0x1e1)](_0x51dc3c=>{const _0x319cd3=_0xc4e39a;var _0x36ad8f;(_0x36ad8f=this[_0x319cd3(0x215)][_0x319cd3(0x2f5)](this[_0x319cd3(0x249)](_0x51dc3c[_0x319cd3(0x29e)],_0x51dc3c['subUnitId'],_0x51dc3c['shapeId'])))==null||_0x36ad8f['forEach'](_0x5c898a=>_0x5c898a[_0x319cd3(0x167)](_0x51dc3c[_0x319cd3(0x2fe)],_0x51dc3c[_0x319cd3(0x280)]));})),this['disposeWithMe'](this[_0xc4e39a(0x154)]['remove$'][_0xc4e39a(0x1e1)](_0x7e0424=>{const _0x45d447=_0xc4e39a;_0x7e0424[_0x45d447(0x276)](_0x53f089=>{const _0x47d5c7=_0x45d447;this[_0x47d5c7(0x1d8)][_0x47d5c7(0x202)]({'unitId':_0x53f089[_0x47d5c7(0x29e)],'subUnitId':_0x53f089['subUnitId'],'shapeId':_0x53f089[_0x47d5c7(0x344)]}),this[_0x47d5c7(0x215)][_0x47d5c7(0x2e6)](this[_0x47d5c7(0x249)](_0x53f089['unitId'],_0x53f089[_0x47d5c7(0x23b)],_0x53f089['drawingId']));});}));}[_0x16bf5e(0x184)](_0x18888f,_0x38acf1){const _0x51410a=_0x16bf5e;let {transform:_0x52e494,drawingType:_0x2e74a3,srcRect:_0x19a8a3,prstGeom:_0x22d41f,groupId:_0x4b4718,unitId:_0x1f8441,subUnitId:_0x206216,drawingId:_0xb131a0,isMultiTransform:_0x54feac,transforms:_0x453c6f,hidden:_0x2cc674,selectable:_0x49a275}=_0x18888f;if(_0x2e74a3!==_0x21524c[_0x51410a(0x247)]||!this['_drawingManagerService']['getDrawingVisible']()||_0x52e494==null)return;let _0x248ace=this[_0x51410a(0x154)][_0x51410a(0x205)](),_0x3966dd=_0x54feac&&_0x453c6f?_0x453c6f:[_0x52e494],_0x5f5c52=[];for(let [_0x7342ce,_0x3c25fb]of _0x3966dd[_0x51410a(0x326)]()){let {left:_0x4d0bbd,top:_0x1f4f60,width:_0x17f08e,height:_0x1220f5,angle:_0x34b4c4,flipX:_0x311e6c,flipY:_0x4d1204,skewX:_0x321d56,skewY:_0x5e0312}=_0x3c25fb,_0xce0c44=_0xf14320({'unitId':_0x1f8441,'subUnitId':_0x206216,'drawingId':_0xb131a0},_0x54feac?_0x7342ce:void 0x0),_0xa6d24c=_0x38acf1['getObjectIncludeInGroup'](_0xce0c44);if(_0xa6d24c!=null){let _0x2bac28={'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0};_0xa6d24c instanceof Ri&&this[_0x51410a(0x13a)](_0xa6d24c,_0x2bac28),_0xa6d24c[_0x51410a(0x1b1)]({'left':_0x4d0bbd,'top':_0x1f4f60,'width':_0x17f08e,'height':_0x1220f5,'angle':_0x34b4c4,'flipX':_0x311e6c,'flipY':_0x4d1204,'skewX':_0x321d56,'skewY':_0x5e0312});continue;}let _0x1012d8=this['_drawingManagerService'][_0x51410a(0x201)](_0x1f8441,_0x206216),_0x3db257=_0x1012d8[_0x51410a(0x24c)](_0xb131a0);if(_0x38acf1[_0x51410a(0x289)](_0xce0c44)||!this[_0x51410a(0x154)]['getDrawingVisible']())continue;let _0x1fde8e=this[_0x51410a(0x355)][_0x51410a(0x27c)](_0x1f8441,_0x206216,_0xb131a0);if(!_0x1fde8e)continue;let _0x5337e7=_0x15125c(_0x1fde8e['getShapeType']())?{..._0x2a73fb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x2a73fb,_0x3f4793=_0x1fde8e['getShapeData']()['formulaBinding'],_0x294775={'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0};_0x3f4793&&this['_shapeFormulaService'][_0x51410a(0x359)](_0x294775,_0x3f4793);let _0x236221=new Ri(_0xce0c44,{..._0x3c25fb,'zIndex':_0x3db257===-0x1?_0x1012d8[_0x51410a(0x116)]-0x1:_0x3db257,'shapeModel':_0x1fde8e,'localeService':this[_0x51410a(0x193)],'shapeId':_0xb131a0,'unitId':_0x1f8441,'subUnitId':_0x206216,'visible':_0x2cc674!==!0x0,'evented':_0x49a275!==!0x1,'formulaPresentation':_0x3f4793?this[_0x51410a(0x1d8)][_0x51410a(0x15f)](_0x294775):void 0x0,'animateFormulaPresentation':(_0x3f4793==null?void 0x0:_0x3f4793[_0x51410a(0x280)])!==!0x1,'transformerConfig':_0x5337e7});if(_0x3f4793){let _0x1dc26f=this[_0x51410a(0x249)](_0x1f8441,_0x206216,_0xb131a0),_0x97e733=this[_0x51410a(0x215)][_0x51410a(0x2f5)](_0x1dc26f)??new Set();_0x97e733[_0x51410a(0x313)](_0x236221),this[_0x51410a(0x215)][_0x51410a(0x342)](_0x1dc26f,_0x97e733);}this['disposeWithMe'](_0x5bca0e(_0x236221['onDblclick$'][_0x51410a(0x1b2)]((_0xe9e830,_0x1cc8c0)=>{const _0x5a212f=_0x51410a;_0x1fde8e[_0x5a212f(0x354)]()||_0x3f4793||(this[_0x5a212f(0x1bf)]['setEditing']({'visible':!0x0,'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0,'shapeKey':_0x236221[_0x5a212f(0x1a9)]}),_0x1cc8c0['stopPropagation']());}))),_0x38acf1[_0x51410a(0x200)](_0x236221,Bi(_0x18888f)),_0x248ace&&_0x38acf1[_0x51410a(0x262)](_0x236221),_0x4b4718&&_0x50ac62({'drawingId':_0x4b4718,'unitId':_0x1f8441,'subUnitId':_0x206216},_0x236221,_0x38acf1,this[_0x51410a(0x154)],_0x54feac?_0x7342ce:void 0x0),_0x22d41f!=null&&_0x236221['setPrstGeom'](_0x22d41f),_0x19a8a3!=null&&_0x236221['setSrcRect'](_0x19a8a3),this[_0x51410a(0x1f4)](_0x236221,_0x1fde8e[_0x51410a(0x18e)]()),_0x5f5c52[_0x51410a(0x1bc)](_0x236221);}return _0x5f5c52;}[_0x16bf5e(0x249)](_0x353e8c,_0x3d2dbd,_0x431b2d){return _0x353e8c+'\x00'+_0x3d2dbd+'\x00'+_0x431b2d;}[_0x16bf5e(0x13a)](_0x5075d0,_0x134883){const _0x33593c=_0x16bf5e;let _0x480d0f=this['_docsShapeService']['getShapeModel'](_0x134883['unitId'],_0x134883[_0x33593c(0x23b)],_0x134883['shapeId']),_0x4887db=_0x480d0f==null?void 0x0:_0x480d0f[_0x33593c(0x18e)]()['formulaBinding'],_0x5310e3=this['_formulaKey'](_0x134883[_0x33593c(0x29e)],_0x134883[_0x33593c(0x23b)],_0x134883['shapeId']);if(_0x4887db){this[_0x33593c(0x1d8)][_0x33593c(0x359)](_0x134883,_0x4887db);let _0x18ac17=this['_formulaShapes']['get'](_0x5310e3)??new Set();_0x18ac17[_0x33593c(0x313)](_0x5075d0),this['_formulaShapes'][_0x33593c(0x342)](_0x5310e3,_0x18ac17);}else{var _0x39d68f;this[_0x33593c(0x1d8)][_0x33593c(0x202)](_0x134883),(_0x39d68f=this[_0x33593c(0x215)][_0x33593c(0x2f5)](_0x5310e3))==null||_0x39d68f['delete'](_0x5075d0);}_0x5075d0[_0x33593c(0x167)](_0x4887db?this['_shapeFormulaService'][_0x33593c(0x15f)](_0x134883):void 0x0,(_0x4887db==null?void 0x0:_0x4887db[_0x33593c(0x280)])!==!0x1);}['refreshShapeFillImage'](_0x2225c4){const _0x15e7d8=_0x16bf5e;let _0x429bf4=_0x2225c4[_0x15e7d8(0x1c7)][_0x15e7d8(0x18e)](),_0x339e71=_0x429bf4[_0x15e7d8(0x2cf)];if(!_0x339e71||_0x339e71['fillType']!==_0x31b6bd[_0x15e7d8(0x2d7)]||!_0x339e71[_0x15e7d8(0x2e9)]){_0x2225c4['setFillImage'](void 0x0);return;}this[_0x15e7d8(0x1f4)](_0x2225c4,_0x429bf4);}[_0x16bf5e(0x1f4)](_0x4a1f49,_0x2e5d8c){const _0x504850=_0x16bf5e;let _0x3efdac=_0x2e5d8c[_0x504850(0x2cf)];if(!_0x3efdac||_0x3efdac['fillType']!==_0x31b6bd[_0x504850(0x2d7)]||!_0x3efdac[_0x504850(0x2e9)])return;let _0x1477a7=_0x3efdac[_0x504850(0x2e9)],_0xd5b6dd=_0x3efdac[_0x504850(0x257)]??_0x33465c['URL'],_0x52e701=this[_0x504850(0x312)]['getImageSourceCache'](_0x1477a7,_0xd5b6dd);if(_0x52e701){_0x4a1f49['setFillImage'](_0x52e701);return;}this[_0x504850(0x277)](_0x4a1f49,_0x1477a7,_0xd5b6dd);}async[_0x16bf5e(0x277)](_0x1f2281,_0x551b50,_0x5974f5){const _0x1d7cde=_0x16bf5e;let _0x5e77c7;try{if(_0x5974f5===_0x33465c['UUID'])_0x5e77c7=await this[_0x1d7cde(0x312)][_0x1d7cde(0x32c)](_0x551b50);else{if(_0x5974f5===_0x33465c['URL'])try{_0x5e77c7=await this[_0x1d7cde(0x28f)][_0x1d7cde(0x32c)](_0x551b50);}catch{_0x5e77c7=_0x551b50;}else _0x5e77c7=_0x551b50;}}catch(_0x55021a){console['error'](_0x1d7cde(0x225),_0x55021a);return;}let _0x53e43f=new window['Image']();_0x53e43f[_0x1d7cde(0x1c2)]=()=>{const _0x2e86c4=_0x1d7cde;this[_0x2e86c4(0x312)][_0x2e86c4(0x2c2)](_0x551b50,_0x5974f5,_0x53e43f),_0x1f2281[_0x2e86c4(0x34a)](_0x53e43f);},_0x53e43f[_0x1d7cde(0x244)]=()=>{const _0x302b90=_0x1d7cde;console[_0x302b90(0x2be)](_0x302b90(0x2dd),_0x551b50);},_0x53e43f[_0x1d7cde(0x233)]=_0x5e77c7;}};$=Y([J(0x0,_0x30fd72),J(0x1,_0x1f7d38(_0xda92b6)),J(0x2,_0x1f7d38(_0x26ba4d)),J(0x3,_0xa426f),J(0x4,_0x545102),J(0x5,_0x1f7d38(Q)),J(0x6,_0x1f7d38(_0x5cd2c6))],$);let Vi=class extends _0x3db69a{constructor(_0x5a8e75,_0x4d617e,_0x4adb58){const _0x565aa5=_0x16bf5e;super(),this[_0x565aa5(0x2b4)]=_0x5a8e75,this[_0x565aa5(0x154)]=_0x4d617e,this[_0x565aa5(0x1c8)]=_0x4adb58,this[_0x565aa5(0x26d)]();}[_0x16bf5e(0x26d)](){const _0x1c4402=_0x16bf5e;this[_0x1c4402(0x371)](this[_0x1c4402(0x2b4)][_0x1c4402(0x366)][_0x1c4402(0x31c)](this[_0x1c4402(0x2b4)][_0x1c4402(0x366)][_0x1c4402(0x22b)]()[_0x1c4402(0x216)],{'handler':(_0x3c4c1b,_0x79cc4,_0x27e164)=>{const _0xd1c57e=_0x1c4402;var _0x522d94;let {unitId:_0x43cf3f,scene:_0x2a6812,skeleton:_0x208072}=_0x79cc4,{pageIndex:_0x5a357b}=_0x79cc4,_0x2449de=(_0x522d94=this[_0xd1c57e(0x154)][_0xd1c57e(0x17b)](_0x43cf3f))==null?void 0x0:_0x522d94[_0x43cf3f],_0x346c4b=Hi(this[_0xd1c57e(0x2b4)],_0x208072,_0x5a357b);return _0x2449de==null||_0x2449de['order'][_0xd1c57e(0x276)](_0x290600=>{const _0x10b293=_0xd1c57e;if(_0x346c4b&&!_0x346c4b['has'](_0x290600))return;let _0x47589d=_0x2449de[_0x10b293(0x2f0)][_0x290600];_0x47589d[_0x10b293(0x2a4)]===_0x21524c[_0x10b293(0x247)]&&!_0x47589d[_0x10b293(0x297)]&&this['_shapeRenderController'][_0x10b293(0x184)](_0x47589d,_0x2a6812);}),_0x27e164(_0x3c4c1b);}}));}};Vi=Y([J(0x0,_0x1f7d38(_0x4ccf7e)),J(0x1,_0x30fd72),J(0x2,_0x1f7d38($))],Vi);function Hi(_0x50b028,_0x2682f1,_0x291310){const _0x11e8c0=_0x16bf5e;var _0x3203de,_0x3fcbbf;let _0x317dd3=_0x50b028;if(_0x317dd3[_0x11e8c0(0x21c)])return _0x317dd3[_0x11e8c0(0x21c)](_0x2682f1,_0x291310);let _0x22699c=_0x2682f1[_0x11e8c0(0x12a)]();if(!_0x22699c||_0x22699c['pages'][_0x11e8c0(0x116)]<=0x1||_0x291310==null)return null;let _0x47fb7c=new Set(),_0x78218c=_0x22699c[_0x11e8c0(0x158)][_0x291310];if(!_0x78218c)return _0x47fb7c;Ui(_0x78218c,_0x47fb7c);let _0x3d8d63=(_0x3203de=_0x22699c[_0x11e8c0(0x268)][_0x11e8c0(0x2f5)](_0x78218c['headerId']))==null?void 0x0:_0x3203de[_0x11e8c0(0x2f5)](_0x78218c[_0x11e8c0(0x20e)]),_0xabc980=(_0x3fcbbf=_0x22699c[_0x11e8c0(0x361)]['get'](_0x78218c[_0x11e8c0(0x19a)]))==null?void 0x0:_0x3fcbbf[_0x11e8c0(0x2f5)](_0x78218c['pageWidth']);return _0x3d8d63&&Ui(_0x3d8d63,_0x47fb7c),_0xabc980&&Ui(_0xabc980,_0x47fb7c),_0x47fb7c;}function Ui(_0x7321a5,_0xad4e53){const _0x1192e5=_0x16bf5e;for(let _0x56ed1e of _0x7321a5[_0x1192e5(0x1a0)][_0x1192e5(0x130)]())_0xad4e53[_0x1192e5(0x313)](_0x56ed1e);for(let _0x2c1b83 of _0x7321a5[_0x1192e5(0x161)][_0x1192e5(0x12f)]())for(let _0x55b546 of _0x2c1b83[_0x1192e5(0x1c5)])for(let _0x325369 of _0x55b546[_0x1192e5(0x256)])Ui(_0x325369,_0xad4e53);}function Wi(_0x485ef3){return _0xaa621a(Nr,{..._0x485ef3,'PickerComponent':_0x240761});}function Gi(){const _0x57d329=_0x16bf5e;let _0xf63ba2=_0x10e4db(_0x26ba4d),_0x3cf25b=Ar(),[_0xee4ae8,_0x51dbd2]=_0x47b1e4(!0x1);return _0x136064(_0x57d329(0x23f),{'className':'univer-grid\x20univer-gap-3','children':[_0xaa621a(_0x298766,{'title':_0xf63ba2['t'](_0x57d329(0x319)),'aria-expanded':_0xee4ae8,'variant':'subtle','trailing':_0xaa621a(_0xee4ae8?_0x4dc00f:_0x4f82a3,{}),'onClick':()=>_0x51dbd2(_0xcdcab0=>!_0xcdcab0)}),_0xee4ae8&&_0xaa621a(_0x240761,{'excludeGroups':[_0x2e5f24[_0x57d329(0x29b)]],'onShapeClick':_0x4dc8c0=>{_0x3cf25b(_0x4dc8c0),_0x51dbd2(!0x1);}})]});}function Ki(_0x5848d2){return _0x5848d2['trim']()||void 0x0;}function qi(_0x2e4e97,_0x1be472,_0x1df99a){const _0x294c5a=_0x16bf5e;var _0x44ffa2,_0x140fe0;return((_0x44ffa2=_0x2e4e97['name'])==null?void 0x0:_0x44ffa2[_0x294c5a(0x131)]())||((_0x140fe0=_0x2e4e97[_0x294c5a(0x21d)])==null?void 0x0:_0x140fe0['trim']())||_0x1df99a['t'](_0x294c5a(0x28b)+_0x363aef(_0x2e4e97[_0x294c5a(0x2a4)]))+'\x20'+(_0x1be472+0x1);}function Ji({PanelComponent:_0x56f529=_0x2a48a3}){const _0x442f21=_0x16bf5e;let _0x1662af=_0x10e4db(_0x26ba4d),_0x55b90e={'title':_0x1662af['t'](_0x442f21(0x199)),'empty':_0x1662af['t'](_0x442f21(0x2b7)),'showAll':_0x1662af['t'](_0x442f21(0x160)),'hideAll':_0x1662af['t'](_0x442f21(0x278)),'lockAll':_0x1662af['t'](_0x442f21(0x22d)),'unlockAll':_0x1662af['t'](_0x442f21(0x275)),'moveForward':_0x1662af['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x1662af['t'](_0x442f21(0x153)),'close':_0x1662af['t']('drawing-ui.objectListPanel.close'),'show':_0x1662af['t']('drawing-ui.objectListPanel.show'),'hide':_0x1662af['t'](_0x442f21(0x144)),'lock':_0x1662af['t'](_0x442f21(0x364)),'unlock':_0x1662af['t'](_0x442f21(0x1ec)),'lockHint':_0x1662af['t'](_0x442f21(0x27a)),'unlockHint':_0x1662af['t'](_0x442f21(0x287)),'name':_0x1662af['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x1662af['t'](_0x442f21(0x293)),'description':_0x1662af['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x1662af['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x1662af['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x1662af['t'](_0x442f21(0x146)),'locate':_0x1662af['t'](_0x442f21(0x1e8)),'expand':_0x1662af['t'](_0x442f21(0x1fa)),'collapse':_0x1662af['t'](_0x442f21(0x303)),'dragToReorder':_0x1662af['t'](_0x442f21(0x18b)),'search':_0x1662af['t'](_0x442f21(0x288)),'filterAll':_0x1662af['t'](_0x442f21(0x248)),'filterHidden':_0x1662af['t'](_0x442f21(0x351)),'filterLocked':_0x1662af['t'](_0x442f21(0x274)),'sectionCanvas':_0x1662af['t'](_0x442f21(0x2a5)),'sectionFloating':_0x1662af['t'](_0x442f21(0x156))},_0x20a7cb=_0x10e4db(_0x38aa04),_0x460b87=_0x10e4db(_0x3fa0e3),_0x434db6=_0x10e4db(_0x4d163d),_0x30f79d=_0x10e4db(_0x30fd72),_0x5265b3=_0x10e4db(_0x33251a),[,_0xff7fd3]=_0x5b5614(_0x49e031=>_0x49e031+0x1,0x0),_0x4f80a2=_0x460b87[_0x442f21(0x150)](_0x5a336e[_0x442f21(0x1e2)]),_0x2a83c0=(_0x4f80a2==null?void 0x0:_0x4f80a2[_0x442f21(0x2e3)]())??'',_0x293847=_0x2a83c0,_0x31e905=_0x39adc0(()=>_0x30f79d[_0x442f21(0x149)],_0x30f79d[_0x442f21(0x2b1)](),!0x1,[_0x30f79d]);_0x37fbe0(()=>{const _0x1db217=_0x442f21;let _0x381b1c=_0x20a7cb[_0x1db217(0x188)](()=>_0xff7fd3());return()=>_0x381b1c['dispose']();},[_0x20a7cb]);let _0x41799b=_0x2a83c0?_0x434db6['getDrawingData'](_0x2a83c0,_0x293847):{},_0x22b699=(_0x2a83c0?_0x434db6[_0x442f21(0x201)](_0x2a83c0,_0x293847):[])[_0x442f21(0x210)](_0x590ed1=>_0x41799b[_0x590ed1])['filter'](_0x441f90=>!!_0x441f90)[_0x442f21(0x255)](),_0x37263f=_0x22b699[_0x442f21(0x1b6)]((_0x3516a8,_0x1fe737)=>(_0x3516a8[_0x380920(_0x1fe737['drawingType'])]+=0x1,_0x3516a8),{'canvas':0x0,'floating':0x0}),_0x23ae8a={'canvas':0x0,'floating':0x0},_0x457dde=_0x22b699[_0x442f21(0x210)]((_0x4973a2,_0x41455f)=>{const _0x40b997=_0x442f21;let _0x4267fb=_0x380920(_0x4973a2[_0x40b997(0x2a4)]),_0x3ecdb1=_0x4267fb===_0x2bd9a9,_0x2c6fd1=_0x23ae8a[_0x4267fb]++;return{'id':_0x4973a2[_0x40b997(0x344)],'name':qi(_0x4973a2,_0x41455f,_0x1662af),'description':_0x4973a2[_0x40b997(0x311)],'visible':_0x4973a2[_0x40b997(0x297)]!==!0x0,'selectable':_0x4973a2['selectable']!==!0x1,'sectionId':_0x4267fb,'sectionTitle':_0x3ecdb1?_0x55b90e[_0x40b997(0x356)]:_0x55b90e[_0x40b997(0x1e5)],'capabilities':_0x3ecdb1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3ecdb1&&_0x2c6fd1>0x0,'canMoveBackward':!_0x3ecdb1&&_0x2c6fd1<_0x37263f[_0x40b997(0x163)]-0x1,'canReorder':!_0x3ecdb1};}),_0x398f3e=_0x391527(()=>(_0x31e905??[])[_0x442f21(0x2fa)](_0xb0b07b=>_0xb0b07b[_0x442f21(0x29e)]===_0x2a83c0&&_0xb0b07b[_0x442f21(0x23b)]===_0x293847)[_0x442f21(0x210)](_0x42caf0=>_0x42caf0['drawingId']),[_0x31e905,_0x293847,_0x2a83c0]),_0x309b14=_0x398f3e[_0x398f3e[_0x442f21(0x116)]-0x1]??null,_0x18ca19=_0x4b32d1=>_0x434db6[_0x442f21(0x1ce)]({'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x4b32d1})??null,_0x4ed4dc=async _0x2e99a2=>{const _0x12ae7b=_0x442f21;_0x2a83c0&&_0x2e99a2[_0x12ae7b(0x116)]&&await _0x20a7cb[_0x12ae7b(0x232)](_0x2505fd['id'],{'unitId':_0x2a83c0,'patches':_0x2e99a2});},_0x2bdde6=(_0x203cc5,_0x2695f5)=>{const _0x3fcc92=_0x442f21;if(!_0x2a83c0)return;let _0x17e10d=_0x2695f5?_0x398f3e[_0x3fcc92(0x1ea)](_0x203cc5)?_0x398f3e[_0x3fcc92(0x2fa)](_0x4940ea=>_0x4940ea!==_0x203cc5):[..._0x398f3e,_0x203cc5]:[_0x203cc5];_0x20a7cb[_0x3fcc92(0x147)](_0x5b0fd5['id'],_0x17e10d[_0x3fcc92(0x210)](_0x1069c9=>({'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x1069c9})));let _0x2c1f21=_0x17e10d[_0x17e10d[_0x3fcc92(0x116)]-0x1];_0x2c1f21?_0x139fb0(_0x5265b3,{'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x2c1f21}):_0x152640(_0x5265b3,_0x2a83c0);},_0x3d118b=async(_0x41ca6d,_0x1c3b90)=>{const _0x3861ff=_0x442f21;await _0x4ed4dc(_0x41ca6d[_0x3861ff(0x210)](_0xcb4b75=>_0x18ca19(_0xcb4b75))[_0x3861ff(0x2fa)](_0x1ce597=>!!_0x1ce597)[_0x3861ff(0x2fa)](_0x7c5997=>_0x7c5997[_0x3861ff(0x297)]!==!0x0!==_0x1c3b90)[_0x3861ff(0x210)](_0x215e73=>({'drawingId':_0x215e73[_0x3861ff(0x344)],'hidden':!_0x1c3b90})));},_0x4851ba=async(_0x32c6c9,_0x17256d)=>{const _0xdbc1f6=_0x442f21;await _0x4ed4dc(_0x32c6c9[_0xdbc1f6(0x210)](_0x4c7725=>_0x18ca19(_0x4c7725))[_0xdbc1f6(0x2fa)](_0x1e833a=>!!_0x1e833a)[_0xdbc1f6(0x2fa)](_0x229299=>_0x229299[_0xdbc1f6(0x1a1)]!==!0x1!==_0x17256d)[_0xdbc1f6(0x210)](_0x4f3eff=>({'drawingId':_0x4f3eff[_0xdbc1f6(0x344)],'selectable':_0x17256d})));},_0xbe252=_0x41fd1e=>{const _0x42b675=_0x442f21;let _0x11213a=_0x18ca19(_0x41fd1e);if(_0x11213a)return _0x4851ba([_0x41fd1e],_0x11213a[_0x42b675(0x1a1)]===!0x1);},_0x1752b6=async(_0x43a6b4,_0x52bbd8)=>{let _0x2eef1d=_0x18ca19(_0x43a6b4),_0x5a0553=Ki(_0x52bbd8);!_0x2eef1d||(_0x2eef1d['name']??void 0x0)===_0x5a0553&&(_0x2eef1d['title']||void 0x0)===_0x5a0553||await _0x4ed4dc([{'drawingId':_0x43a6b4,'name':_0x5a0553,'title':_0x5a0553}]);},_0x3d3d7b=async(_0x21570a,_0x4c51e2)=>{const _0x84200f=_0x442f21;let _0x14c1fb=_0x18ca19(_0x21570a),_0x1cb62e=Ki(_0x4c51e2);_0x14c1fb&&(_0x14c1fb[_0x84200f(0x311)]??void 0x0)!==_0x1cb62e&&await _0x4ed4dc([{'drawingId':_0x21570a,'description':_0x1cb62e}]);},_0x7cb2a9=async(_0x29cbbf,_0x1943e1)=>{const _0x4f2836=_0x442f21;_0x2a83c0&&await _0x20a7cb[_0x4f2836(0x232)](_0x41b423['id'],{'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingIds':[_0x29cbbf],'arrangeType':_0x1943e1});};return _0x2a83c0?_0xaa621a(_0x56f529,{'labels':_0x55b90e,'renderPermissionAction':_0x4c8fc7=>_0x4f80a2?_0xaa621a(_0x976fdd,{'target':{'unitId':_0x2a83c0,'objectId':_0x3200bc(_0x359abd(_0x4f80a2,_0x4c8fc7['id']),_0x442f21(0x305),_0x4c8fc7['id']),'objectType':_0x4dfd1d[_0x442f21(0x228)]},'name':_0x4c8fc7['name'],'commandId':_0x44c286['id'],'exists':()=>!!_0x18ca19(_0x4c8fc7['id'])},_0x2a83c0+'/'+_0x4c8fc7['id']):null,'items':_0x457dde,'selectedIds':_0x398f3e,'focusedId':_0x309b14,'showHeader':!0x1,'onSelect':_0x2bdde6,'onSetVisible':_0x3d118b,'onSetSelectable':_0x4851ba,'onCommitName':_0x1752b6,'onCommitDescription':_0x3d3d7b,'onMoveForward':async _0x158188=>_0x7cb2a9(_0x158188,_0x10c839[_0x442f21(0x1f2)]),'onMoveBackward':async _0x51ef67=>_0x7cb2a9(_0x51ef67,_0x10c839[_0x442f21(0x2bb)]),'onToggleSelectable':_0xbe252}):_0xaa621a(_0x442f21(0x23f),{'className':_0x442f21(0x36f),'children':_0x55b90e[_0x442f21(0x21d)]});}function Yi(){return _0xaa621a(Ji,{'PanelComponent':_0x2533a6});}let Xi=class{constructor(_0x173c9d){const _0x597b78=_0x16bf5e;this[_0x597b78(0x186)]=_0x173c9d;}['updateShapeFillImage'](_0x2abfc6,_0x2c4980){const _0x4a8e19=_0x16bf5e;let _0x46f424=this[_0x4a8e19(0x186)]['getRenderUnitById'](_0x2abfc6[_0x4a8e19(0x29e)]),_0x3d53d3=_0x46f424==null?void 0x0:_0x46f424['scene'];if(!_0x3d53d3)return;let _0x30cb23=_0xf14320(_0x2abfc6),_0x13c656=_0x3d53d3[_0x4a8e19(0x289)](_0x30cb23);_0x13c656==null||_0x13c656[_0x4a8e19(0x34a)](_0x2c4980);}};Xi=Y([J(0x0,_0x33251a)],Xi);function Zi(){const _0x3671d0=_0x16bf5e;let _0x453aea=_0x10e4db(_0x30fd72),_0x1ffe78=_0x39adc0(()=>_0x453aea['focus$'],_0x453aea[_0x3671d0(0x2b1)](),!0x1,[_0x453aea]);return _0x1ffe78[_0x3671d0(0x116)]===0x0?null:_0xaa621a('div',{'children':_0x136064(_0x3671d0(0x23f),{'className':_0x3671d0(0x2fb),'children':[_0xaa621a(_0x1f2b6b,{'drawings':_0x1ffe78,'hasCropper':!0x1}),_0xaa621a(_0x60b61c,{'drawings':_0x1ffe78}),_0xaa621a(_0x4d45c5,{'drawings':_0x1ffe78})]})});}function Qi(_0x3c6479){let {unitId:_0x596b77,subUnitId:_0x5021c5,shapeId:_0x27207b,PositionComponent:_0x3a01fc=Zi}=_0x3c6479,_0x460c58=_0x10e4db(_0x38aa04),_0x3c7439=_0x10e4db(Xi);return _0xaa621a(_0x5015c8,{..._0x3c6479,'positionEditor':_0xaa621a(_0x3a01fc,{}),'onUpdateShapeData':(_0x55878a,_0x20e6c5)=>{zr(_0x460c58,_0x596b77,_0x5021c5,_0x27207b,_0x55878a,_0x20e6c5);},'onUpdateLineShapeData':(_0x358356,_0x53147b)=>{Br(_0x460c58,_0x596b77,_0x5021c5,_0x27207b,_0x358356,_0x53147b);},'onUpdateShapeFillImage':_0x2dcd2f=>{const _0x1c6f54=_0x5363;_0x3c7439[_0x1c6f54(0x291)]({'unitId':_0x596b77,'subUnitId':_0x5021c5,'drawingId':_0x27207b},_0x2dcd2f);}});}function $i(){const _0x13a69a=_0x16bf5e;let _0x38723a=_0x10e4db(_0x30fd72),_0x3b8a25=_0x39adc0(_0x38723a[_0x13a69a(0x149)],_0x38723a['getFocusDrawings']());return _0x3b8a25[_0x13a69a(0x116)]===0x0?null:_0x136064(_0x13a69a(0x23f),{'className':_0x13a69a(0x16e),'children':[_0xaa621a(_0x1f2b6b,{'drawings':_0x3b8a25,'hasCropper':!0x1}),_0xaa621a(_0x57a820,{'drawings':_0x3b8a25}),_0xaa621a(_0x182904,{'drawings':_0x3b8a25})]});}function ea(_0x3bedcc){return _0xaa621a(_0x5b92b1,{'children':_0xaa621a(Qi,{..._0x3bedcc,'PositionComponent':$i})});}function ta({popup:_0x46381b}){const _0x361903=_0x16bf5e;let _0x43de6a=_0x10e4db(_0x26ba4d),{shapeType:_0x4b3c82,onText:_0x4886a5,onStyle:_0x2ab583,onDelete:_0x3f8fd8}=_0x46381b[_0x361903(0x162)],_0x3bd81b=[{'key':_0x361903(0x36b),'order':0x0,'item':{'id':_0x361903(0x36b),'type':_0x124b8a['BUTTON'],'title':_0x43de6a['t'](_0x361903(0x192)),'disabled$':_0x3fee7b(_0x15125c(_0x4b3c82))}},{'key':'style','order':0x1,'item':{'id':'style','type':_0x124b8a[_0x361903(0x11d)],'title':_0x43de6a['t']('docs-shape-ui.mobile.style')}},{'key':_0x361903(0x2e6),'order':0x2,'item':{'id':'delete','type':_0x124b8a[_0x361903(0x11d)],'title':_0x43de6a['t'](_0x361903(0x212))}}];return _0xaa621a(_0x2eea3a,{'schemas':_0x3bd81b,'presentation':'context-bar','onOptionSelect':async({id:_0x20d86b})=>{const _0x2f17e7=_0x361903;_0x20d86b===_0x2f17e7(0x36b)?await _0x4886a5():_0x20d86b===_0x2f17e7(0x2ed)?await _0x2ab583():_0x20d86b==='delete'&&await _0x3f8fd8();}});}const na=_0x16bf5e(0x129);function ra(_0x4b1ff1,_0x15379e){const _0x43ad30=_0x16bf5e;var _0x5741e6;let _0xa43256=_0x4b1ff1==null||(_0x5741e6=_0x4b1ff1['getSnapshot']()[_0x43ad30(0x1dd)])==null?void 0x0:_0x5741e6[_0x15379e];return _0xa43256?_0xa43256[_0x43ad30(0x304)]===_0x2cf572[_0x43ad30(0x126)]?_0xa43256[_0x43ad30(0x137)]===_0x2fa3f8[_0x43ad30(0x2f6)]?_0x4965c4[_0x43ad30(0x176)]:_0x4965c4[_0x43ad30(0x272)]:_0xa43256[_0x43ad30(0x304)]===_0x2cf572[_0x43ad30(0x2b5)]?_0x4965c4['WRAP_SQUARE']:_0xa43256['layoutType']===_0x2cf572[_0x43ad30(0x28c)]?_0x4965c4['WRAP_TOP_AND_BOTTOM']:_0x4965c4['INLINE']:_0x4965c4[_0x43ad30(0x307)];}function ia(_0x595506){const _0x2323a4=_0x16bf5e;let _0x4d20d1=_0x10e4db(_0x345a12),_0x51d759=_0x39adc0(()=>_0x4d20d1[_0x2323a4(0x2ee)],_0x4d20d1[_0x2323a4(0x339)](),!0x1,[_0x4d20d1]),_0x3855f6=_0x595506[_0x2323a4(0x113)][_0x2323a4(0x162)];return _0x51d759?_0xaa621a(aa,{..._0x3855f6,'canvasElement':_0x595506[_0x2323a4(0x113)][_0x2323a4(0x2e0)]}):null;}function aa(_0x25dc7a){const _0x459e3e=_0x16bf5e;let _0x56ff02=_0x10e4db(_0x38aa04),_0x547d7e=_0x10e4db(_0x26ba4d),_0xb43d80=_0x10e4db(_0xda92b6),_0x16f1c9=_0x10e4db(_0x3fa0e3),{unitId:_0x2353f1,subUnitId:_0x4473a8,drawingId:_0x2422dc,shapeType:_0x1fabbb}=_0x25dc7a,[_0x1b0813,_0x6306db]=_0x47b1e4(_0x25dc7a[_0x459e3e(0x2f2)]),_0x36334b=_0x16f1c9[_0x459e3e(0x258)](_0x2353f1,_0x5a336e[_0x459e3e(0x1e2)])??void 0x0,[_0x39cd4c,_0x18fac9]=_0x47b1e4(()=>ra(_0x36334b,_0x2422dc)),_0x4d92b4=_0x391527(()=>_0x2f5a49(_0x1b0813),[_0x1b0813]),_0x2b60fc=_0x391527(()=>_0x58243d(_0x1b0813),[_0x1b0813]);_0x37fbe0(()=>{const _0x1faaad=_0x459e3e;let _0x272715=_0x56ff02[_0x1faaad(0x188)](_0x2dd9ac=>{const _0x5402fd=_0x1faaad;if(_0x2dd9ac['id']!==_0x135998['id'])return;let _0x4fd794=_0xb43d80[_0x5402fd(0x177)](_0x2353f1,_0x4473a8,_0x2422dc);_0x4fd794&&_0x6306db(_0x4fd794);});return()=>_0x272715[_0x1faaad(0x1ca)]();},[_0x56ff02,_0xb43d80,_0x2422dc,_0x4473a8,_0x2353f1]);let _0x50892c=_0x6716a3=>{_0x6306db(_0x214273=>({..._0x214273,..._0x6716a3}));},_0x3a1fe0=_0x2bb260=>{let _0x2ddff0=_0x411156(_0x1b0813,_0x2bb260);zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,{'oldShapeData':{'shapeText':_0x1b0813['shapeText']}},_0x2ddff0),_0x50892c(_0x2ddff0);},_0x1dd184=_0x2cc5df=>{const _0x3a1417=_0x459e3e;_0x18fac9(_0x2cc5df),_0x56ff02[_0x3a1417(0x232)](_0x4b8558['id'],{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawings':[{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc}],'wrappingStyle':_0x2cc5df});},_0x268ed4=_0xfc437f({'hostType':_0x5a336e[_0x459e3e(0x1e2)],'unitId':_0x2353f1,'subUnitId':_0x4473a8,'shapeId':_0x2422dc,'shapeData':_0x1b0813,'onUpdateBinding':_0x47c258=>{let _0x55c93f={'formulaBinding':_0x47c258};zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,{'oldShapeData':{'formulaBinding':_0x1b0813['formulaBinding']}},_0x55c93f),_0x50892c(_0x55c93f);}}),_0x5c9d4c=[{'label':_0x547d7e['t'](_0x459e3e(0x16c)),'value':_0x4965c4[_0x459e3e(0x307)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t'](_0x459e3e(0x338)),'value':_0x4965c4[_0x459e3e(0x2b5)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x4965c4[_0x459e3e(0x28c)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t'](_0x459e3e(0x32f)),'value':_0x4965c4['BEHIND_TEXT'],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4965c4[_0x459e3e(0x272)],'icon':_0xaa621a(_0x103936,{})}];return _0x136064(_0x1da262,{'children':[_0xaa621a(_0x5c383f,{'canvasElement':_0x25dc7a[_0x459e3e(0x2e0)],'shapeData':_0x1b0813,'shapeType':_0x1fabbb,'textStyle':{'ff':_0x4c92e4[_0x459e3e(0x2d1)][_0x459e3e(0x273)],'fs':_0x4c92e4['shapeText'][_0x459e3e(0x1d0)],'cl':{'rgb':_0x4c92e4['shapeText'][_0x459e3e(0x114)]},..._0x4d92b4},'textModel':_0x2b60fc?{'ha':_0x2b60fc['ha']??_0x165288[_0x459e3e(0x13b)],'va':_0x2b60fc['va']??_0xf861a6[_0x459e3e(0x174)]}:null,'wrappingStyle':_0x39cd4c,'wrappingStyleOptions':_0x5c9d4c,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c92e4[_0x459e3e(0x2cf)],'defaultGradientEndColor':_0x4c92e4[_0x459e3e(0x2ec)],'defaultStrokeColor':_0x4c92e4['stroke'],'extensionGroups':_0x268ed4[_0x459e3e(0x25c)],'floatingObjectToolbarPosition':_0x1919f0['DOC'],'onUpdateShapeData':(_0x50cb18,_0x30c663)=>{zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,_0x50cb18,_0x30c663),_0x30c663&&_0x50892c(_0x30c663);},'onUpdateText':_0x3a1fe0,'onUpdateWrappingStyle':_0x18f185=>_0x1dd184(_0x18f185),'onOpenPanel':()=>{const _0x1471d5=_0x459e3e;_0x56ff02[_0x1471d5(0x232)](q['id'],{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc});},'onDelete':()=>{const _0x1c44d7=_0x459e3e;_0x56ff02[_0x1c44d7(0x232)](_0x1d5a93['id'],{'unitId':_0x2353f1,'drawings':[{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc}]});}}),_0x268ed4[_0x459e3e(0x12b)]]});}function oa({variant:_0x3451f1,extend:_0x20f07e,..._0x35b44b}){const _0x37ede3=_0x16bf5e;let _0x10bb49=_0xaa621a(_0x37ede3(0x2a9),{'x':'7','y':_0x37ede3(0x11c),'width':'6','height':'9','rx':'1','fill':_0x37ede3(0x279),'fillOpacity':_0x37ede3(0x352),'stroke':_0x37ede3(0x279),'strokeWidth':'1.2'});return _0x136064(_0x37ede3(0x22f),{'aria-hidden':_0x37ede3(0x1b5),'fill':'none','height':_0x37ede3(0x2dc),'viewBox':'0\x200\x2020\x2020','width':_0x37ede3(0x2dc),..._0x35b44b,'children':[_0x3451f1===_0x37ede3(0x2b0)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':'M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','stroke':'currentColor','strokeLinecap':'round','strokeWidth':'1.2'}),_0xaa621a(_0x37ede3(0x2a9),{'x':'8','y':'7','width':'4','height':'6','rx':_0x37ede3(0x2c4),'fill':'currentColor','fillOpacity':_0x37ede3(0x352),'stroke':'currentColor','strokeWidth':_0x37ede3(0x2c0)})]}),_0x3451f1===_0x37ede3(0x294)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':_0x37ede3(0x17f),'stroke':_0x37ede3(0x279),'strokeLinecap':_0x37ede3(0x2eb),'strokeWidth':_0x37ede3(0x2c0)}),_0x10bb49]}),_0x3451f1===_0x37ede3(0x1f9)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':'M2\x203h16M2\x2017h16','stroke':_0x37ede3(0x279),'strokeLinecap':'round','strokeWidth':_0x37ede3(0x2c0)}),_0x10bb49]}),_0x3451f1==='behind'&&_0x136064(_0x1da262,{'children':[_0x10bb49,_0xaa621a('path',{'d':_0x37ede3(0x1ad),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x37ede3(0x2c0)})]}),_0x3451f1===_0x37ede3(0x240)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':_0x37ede3(0x1ad),'stroke':_0x37ede3(0x279),'strokeLinecap':_0x37ede3(0x2eb),'strokeWidth':_0x37ede3(0x2c0)}),_0xaa621a(_0x37ede3(0x2a9),{'x':'7','y':_0x37ede3(0x11c),'width':'6','height':'9','rx':'1','fill':_0x37ede3(0x279)})]})]});}const sa=_0x4f59c3=>_0x2f8786=>_0xaa621a(oa,{..._0x2f8786,'variant':_0x4f59c3}),ca={'DocsShapeWrapInlineIcon':sa(_0x16bf5e(0x2b0)),'DocsShapeWrapSquareIcon':sa(_0x16bf5e(0x294)),'DocsShapeWrapTopBottomIcon':sa('top-bottom'),'DocsShapeWrapBehindTextIcon':sa(_0x16bf5e(0x252)),'DocsShapeWrapInFrontOfTextIcon':sa(_0x16bf5e(0x240))},la=_0x11b938(()=>{const _0x141e18=_0x16bf5e;let _0x59f61c=_0x10e4db(Q),_0x361771=_0x10e4db(_0xda92b6),_0xfed423=_0x10e4db(_0x30fd72),_0x155de4=_0x10e4db(_0x38aa04),_0x29bd87=_0x391527(()=>({'getShapeModel':(_0x15c703,_0x366790,_0x5b44b4)=>_0x361771[_0x141e18(0x27c)](_0x15c703,_0x366790,_0x5b44b4),'getShapeData':(_0x37e69d,_0x594fdd,_0x386ef8)=>_0x361771['getShapeDataById'](_0x37e69d,_0x594fdd,_0x386ef8),'getDrawingTransform':(_0x1d47a6,_0x19ca68,_0x261109)=>{const _0x8f19a=_0x141e18;let _0x5697f9=_0xfed423[_0x8f19a(0x1ce)]({'unitId':_0x1d47a6,'subUnitId':_0x19ca68,'drawingId':_0x261109});return _0x5697f9==null?void 0x0:_0x5697f9['transform'];},'updateShapeText':({unitId:_0x2de29a,shapeId:_0x178ca6,shapeText:_0x52d16c,oldShapeText:_0x54fb83})=>{const _0x2c09a2=_0x141e18;_0x155de4[_0x2c09a2(0x232)](_0x9d3fcb['id'],{'unitId':_0x2de29a,'shapeId':_0x178ca6,'shapeData':{'shapeText':_0x52d16c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x54fb83}}});},'updateHostSize':({unitId:_0x416101,subUnitId:_0x364948,shapeId:_0x2154d4,width:_0x5429f6,height:_0x57881e})=>{const _0x132abb=_0x141e18;_0x155de4[_0x132abb(0x232)](_0xeab56b['id'],{'unitId':_0x416101,'subUnitId':_0x364948,'drawings':[{'drawingId':_0x2154d4,'key':_0x132abb(0x14a),'value':{'width':_0x5429f6,'height':_0x57881e}}]});},'allowHostSizeShrink':({unitId:_0x5187d7,subUnitId:_0x3f6472,shapeId:_0x3b1156})=>_0x1cb49f(_0x361771[_0x141e18(0x177)](_0x5187d7,_0x3f6472,_0x3b1156))}),[_0x155de4,_0x361771,_0xfed423]),_0x3bb14c=_0x391527(()=>({'viewportKeys':{'main':_0x1718ab[_0x141e18(0x31d)]}}),[]);return _0xaa621a(_0x43cf54,{'adapter':_0x29bd87,'editingService':_0x59f61c,'editorUnitId':br,'positionOptions':_0x3bb14c});});let ua=class extends _0x3db69a{constructor(_0x359f11,_0x106b8f){const _0x4d899a=_0x16bf5e;super(),this[_0x4d899a(0x36a)]=_0x359f11,this[_0x4d899a(0x13c)]=_0x106b8f,this[_0x4d899a(0x190)](),this[_0x4d899a(0x151)]();}[_0x16bf5e(0x190)](){const _0x1f7c9f=_0x16bf5e;this[_0x1f7c9f(0x13c)]['has'](_0x1f7c9f(0x1f3))||this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)]({'ObjectLayersIcon':_0xe4ac2})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x123))||this[_0x1f7c9f(0x371)](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'BottomIcon':_0x2ea734})),this['_iconManager']['has'](_0x1f7c9f(0x295))||this['disposeWithMe'](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'MoveDownIcon':_0x29b216})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x217))||this[_0x1f7c9f(0x371)](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'MoveUpIcon':_0x8804f5})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x31f))||this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)]({'ShapeFormatSettingIcon':_0x197da5})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)]('TopmostIcon')||this['disposeWithMe'](this[_0x1f7c9f(0x13c)]['register']({'TopmostIcon':_0x1bc7b9})),this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)](ca));}[_0x16bf5e(0x151)](){const _0x257bdb=_0x16bf5e;this['disposeWithMe'](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](K,ea)),this[_0x257bdb(0x2bd)](),this['_registerFloatingToolbar'](),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Hr,Jr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)]['register'](Vr,Yr)),this['disposeWithMe'](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](Ur,Xr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](Wr,Zr)),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Gr,Qr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](xr,_0x42d58e)),this[_0x257bdb(0x1ac)](),this[_0x257bdb(0x36a)][_0x257bdb(0x2f5)](_0xd24491)||this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](_0xd24491,Mr)),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Sr,la));}[_0x16bf5e(0x2bd)](){const _0xad4092=_0x16bf5e;this['disposeWithMe'](this[_0xad4092(0x36a)][_0xad4092(0x359)](yr,Yi));}[_0x16bf5e(0x2ae)](){const _0x552bbd=_0x16bf5e;this['disposeWithMe'](this[_0x552bbd(0x36a)][_0x552bbd(0x359)](na,ta));}['_registerPickers'](){const _0x92de7d=_0x16bf5e;this['disposeWithMe'](this['_componentManager']['register'](Dr,Wi)),this[_0x92de7d(0x371)](this[_0x92de7d(0x36a)]['register'](Or,Gi));}};ua=Y([J(0x0,_0x1f7d38(_0x6a795a)),J(0x1,_0x1f7d38(_0x3df9c1))],ua);let da=class extends _0x3db69a{constructor(_0xe365f4,_0x34d1ba,_0x1506b7,_0x4a58e6,_0x382e70,_0x1e76ac,_0x3154ef,_0x4adb1a,_0x5e1295,_0xae7249,_0x46657a,_0x23375c,_0x108dd0){const _0x43e49f=_0x16bf5e;super(),this[_0x43e49f(0x1d1)]=_0xe365f4,this[_0x43e49f(0x1fc)]=_0x34d1ba,this[_0x43e49f(0x33c)]=_0x1506b7,this[_0x43e49f(0x355)]=_0x4a58e6,this['_localeService']=_0x382e70,this['_commandService']=_0x1e76ac,this[_0x43e49f(0x154)]=_0x3154ef,this[_0x43e49f(0x17c)]=_0x4adb1a,this[_0x43e49f(0x186)]=_0x5e1295,this[_0x43e49f(0x165)]=_0xae7249,this[_0x43e49f(0x1bf)]=_0x46657a,this['_permissionService']=_0x23375c,this['_mobileEditorService']=_0x108dd0,Z(this,_0x43e49f(0x1c6),null),Z(this,'_activeShapeInfo',null),Z(this,_0x43e49f(0x141),!0x1),Z(this,_0x43e49f(0x30f),0x0),Z(this,'_disposePopupsByUnit',new Map()),Z(this,_0x43e49f(0x18a),new Map()),this[_0x43e49f(0x2d2)](),this[_0x43e49f(0x371)](this[_0x43e49f(0x1d1)][_0x43e49f(0x286)](_0x5a336e['UNIVER_DOC'])[_0x43e49f(0x1e1)](_0xc80d1c=>{const _0x1058c4=_0x43e49f;if(!_0xc80d1c){var _0x10e83f;(_0x10e83f=this[_0x1058c4(0x1c6)])==null||_0x10e83f[_0x1058c4(0x1ca)]();}})),this[_0x43e49f(0x20f)](),this[_0x43e49f(0x371)](_0xeca305(this[_0x43e49f(0x186)],_0x5a336e[_0x43e49f(0x1e2)],_0x3f52ad=>this[_0x43e49f(0x333)](_0x3f52ad))),this[_0x43e49f(0x371)](this[_0x43e49f(0x1bf)][_0x43e49f(0x2b9)]['subscribe'](_0x4474a5=>{const _0x5e4bc2=_0x43e49f;_0x4474a5&&this[_0x5e4bc2(0x19b)](void 0x0,!0x0);})),this['disposeWithMe'](this['_permissionService'][_0x43e49f(0x185)][_0x43e49f(0x1e1)](()=>{const _0x374130=_0x43e49f;this[_0x374130(0x154)]['getFocusDrawings']()[_0x374130(0x2e2)](_0x137921=>_0x137921[_0x374130(0x2a4)]===_0x21524c['DRAWING_SHAPE']&&this[_0x374130(0x1d1)]['getUnitType'](_0x137921[_0x374130(0x29e)])===_0x5a336e['UNIVER_DOC']&&!this[_0x374130(0x173)](_0x137921[_0x374130(0x29e)],_0x137921[_0x374130(0x344)]))&&(this[_0x374130(0x19b)](void 0x0,!0x0),this[_0x374130(0x119)]());}));}['getShapePopupMenus'](_0x583136,_0x4b752e,_0x4797d1,_0xf32c53){const _0x32c336=_0x16bf5e;return[{'label':_0x32c336(0x263),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1},'disable':_0xf32c53===_0x21524c[_0x32c336(0x196)]},{'label':_0x32c336(0x24d),'index':0x1,'commandId':_0x1d5a93['id'],'commandParams':{'unitId':_0x583136,'drawings':[{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1}]},'disable':!0x1},{'label':_0x32c336(0x308),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1},'disable':!0x1}];}['_initMenu'](){const _0x24f1ec=_0x16bf5e;this['_menuManagerService'][_0x24f1ec(0x243)](Di);}[_0x16bf5e(0x30b)](_0x43eedf,_0x5d1153,_0x34881d){const _0x40e3db=_0x16bf5e;let _0x2439fc=this[_0x40e3db(0x355)][_0x40e3db(0x253)](_0x43eedf,_0x5d1153,_0x34881d),_0x31bbb5=this[_0x40e3db(0x355)]['getShapeDataById'](_0x43eedf,_0x5d1153,_0x34881d);return _0x2439fc===void 0x0||_0x31bbb5===void 0x0?null:{'shapeData':_0x31bbb5,'shapeId':_0x34881d,'shapeType':_0x2439fc,'unitId':_0x43eedf,'subUnitId':_0x5d1153,'version':this[_0x40e3db(0x30f)],'disableShapeOption':!0x1};}[_0x16bf5e(0x19b)](_0xaae270,_0x4471bd=!0x1){const _0x173ebd=_0x16bf5e;if(_0xaae270==null){[...this[_0x173ebd(0x330)]['keys']()][_0x173ebd(0x276)](_0x1ad939=>this[_0x173ebd(0x19b)](_0x1ad939,_0x4471bd));return;}let _0x1ba500=this[_0x173ebd(0x330)][_0x173ebd(0x2f5)](_0xaae270);if(_0x1ba500){for(let _0x52fc89=_0x1ba500[_0x173ebd(0x116)]-0x1;_0x52fc89>=0x0;--_0x52fc89){let _0x316a4d=_0x1ba500[_0x52fc89];(_0x4471bd||_0x316a4d['canDispose']())&&(_0x316a4d[_0x173ebd(0x1ca)](),_0x1ba500[_0x173ebd(0x13e)](_0x52fc89,0x1));}_0x1ba500[_0x173ebd(0x116)]===0x0&&(this[_0x173ebd(0x330)][_0x173ebd(0x2e6)](_0xaae270),this['_popupTargetKeys'][_0x173ebd(0x2e6)](_0xaae270));}}[_0x16bf5e(0x24a)](_0x51f4fc){const _0x394c7d=_0x16bf5e;let _0x3d7ce2=this['_disposePopupsByUnit']['get'](_0x51f4fc);if(_0x3d7ce2)return _0x3d7ce2;let _0x40022=[];return this[_0x394c7d(0x330)][_0x394c7d(0x342)](_0x51f4fc,_0x40022),_0x40022;}[_0x16bf5e(0x333)](_0x216a4e){const _0x2a7ff7=_0x16bf5e;var _0x12c1e1;let _0xbfcb1a=new _0x45b9fb(),_0x2a15a1=(_0x12c1e1=this[_0x2a7ff7(0x186)][_0x2a7ff7(0x223)](_0x5a336e['UNIVER_DOC'])[_0x2a7ff7(0x2de)](_0x17f623=>_0x17f623['scene'][_0x2a7ff7(0x1fd)]()===_0x216a4e))==null?void 0x0:_0x12c1e1[_0x2a7ff7(0x29e)];return _0x2a15a1?(_0xbfcb1a['add'](_0x216a4e[_0x2a7ff7(0x1a2)][_0x2a7ff7(0x1e1)](()=>this[_0x2a7ff7(0x1d6)](_0x216a4e,_0x2a15a1))),_0xbfcb1a[_0x2a7ff7(0x313)](_0x216a4e[_0x2a7ff7(0x169)]['subscribe'](()=>{this['_clearPopups'](_0x2a15a1),queueMicrotask(()=>{const _0x38d129=_0x5363;_0x216a4e[_0x38d129(0x264)]()[_0x38d129(0x14a)]>0x0||(this[_0x38d129(0x165)][_0x38d129(0x145)](_0x3a52be,!0x1),this[_0x38d129(0x154)][_0x38d129(0x30c)](null));});})),_0xbfcb1a[_0x2a7ff7(0x313)](_0x216a4e['changing$'][_0x2a7ff7(0x1e1)](()=>{const _0x35b638=_0x2a7ff7;this[_0x35b638(0x19b)](_0x2a15a1,!0x0);})),_0xbfcb1a):_0xbfcb1a;}[_0x16bf5e(0x1d6)](_0x228b4f,_0x1ca2a3){const _0x40d6ef=_0x16bf5e;let _0x2f5b8f=_0x228b4f[_0x40d6ef(0x264)]();if(this['_isOpenedShapeEditPanel']){this[_0x40d6ef(0x19b)](_0x1ca2a3,!0x0);return;}if(_0x2f5b8f[_0x40d6ef(0x14a)]>0x1){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let _0x316a54=_0x2f5b8f[_0x40d6ef(0x12f)]()[_0x40d6ef(0x2c7)]()[_0x40d6ef(0x171)];if(!_0x316a54){this['_clearPopups'](_0x1ca2a3);return;}let _0x4123fd=this[_0x40d6ef(0x154)][_0x40d6ef(0x26c)](_0x316a54['oKey']);if(!_0x4123fd||_0x4123fd['drawingType']!==_0x21524c['DRAWING_SHAPE']){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let {unitId:_0x462162,subUnitId:_0x4ba0c0,drawingId:_0x4e118b}=_0x4123fd;if(!this[_0x40d6ef(0x173)](_0x462162,_0x4e118b)){this[_0x40d6ef(0x19b)](_0x1ca2a3,!0x0);return;}let _0x1ec55b=this[_0x40d6ef(0x30b)](_0x462162,_0x4ba0c0,_0x4e118b);if(!_0x1ec55b){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let _0x506402=this['_disposePopupsByUnit'][_0x40d6ef(0x2f5)](_0x1ca2a3),_0x758628=_0x462162+':'+_0x4ba0c0+':'+_0x4e118b;if(this['_popupTargetKeys'][_0x40d6ef(0x2f5)](_0x1ca2a3)===_0x758628&&_0x506402!=null&&_0x506402[_0x40d6ef(0x116)])return;this[_0x40d6ef(0x19b)](_0x1ca2a3);let _0x3e735c=this['_renderManagerService'][_0x40d6ef(0x260)](_0x462162),_0x3256a6=((_0x3e735c==null?void 0x0:_0x3e735c[_0x40d6ef(0x329)])===!0x1?_0x3e735c['with'](_0x42fe30):this['_docCanvasPopManagerService'])[_0x40d6ef(0x143)](_0x316a54,this[_0x40d6ef(0x30e)](_0x1ec55b,()=>this['_clearPopups'](_0x1ca2a3,!0x0)),_0x462162);this[_0x40d6ef(0x371)](_0x3256a6),this[_0x40d6ef(0x24a)](_0x1ca2a3)[_0x40d6ef(0x1bc)](_0x3256a6),this[_0x40d6ef(0x18a)][_0x40d6ef(0x342)](_0x1ca2a3,_0x758628),this[_0x40d6ef(0x154)]['getFocusDrawings']()[_0x40d6ef(0x2e2)](_0x54f562=>_0x54f562[_0x40d6ef(0x29e)]===_0x462162&&_0x54f562[_0x40d6ef(0x23b)]===_0x4ba0c0&&_0x54f562[_0x40d6ef(0x344)]===_0x4e118b)||this[_0x40d6ef(0x154)]['focusDrawing']([{'unitId':_0x462162,'subUnitId':_0x4ba0c0,'drawingId':_0x4e118b}]);}['_getShapePopup'](_0x5ea788,_0x5ba322){const _0xd0a056=_0x16bf5e;let {unitId:_0x2d2c0c,subUnitId:_0x56cbd4,shapeId:_0x488d62}=_0x5ea788,_0x4ca528={'hostType':_0x5a336e[_0xd0a056(0x1e2)],'unitId':_0x2d2c0c,'subUnitId':_0x56cbd4,'shapeId':_0x488d62};return{'componentKey':na,'direction':_0xd0a056(0x2d8),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x5ea788[_0xd0a056(0x324)],'onText':()=>{const _0x53add4=_0xd0a056;_0x5ba322(),this[_0x53add4(0x211)]['open'](_0x53add4(0x36b),_0x4ca528);},'onStyle':()=>{const _0x403eb7=_0xd0a056;_0x5ba322(),this[_0x403eb7(0x211)]['open']('style',_0x4ca528);},'onDelete':()=>this[_0xd0a056(0x180)]['executeCommand'](_0x1d5a93['id'],{'unitId':_0x2d2c0c,'drawings':[{'unitId':_0x2d2c0c,'subUnitId':_0x56cbd4,'drawingId':_0x488d62}]})}};}[_0x16bf5e(0x173)](_0x3e851f,_0x4692e8){const _0x51de01=_0x16bf5e;let _0x2243e7=this[_0x51de01(0x1d1)]['getUnit'](_0x3e851f,_0x5a336e[_0x51de01(0x1e2)]);if(!_0x2243e7)return!0x1;let _0x536f20=_0x359abd(_0x2243e7,_0x4692e8);return _0x1aefa3(this['_permissionService'],_0x3e851f,[..._0x2f3e76(_0x2243e7,_0x536f20,_0x51de01(0x305),_0x4692e8),_0x3200bc(_0x536f20,_0x51de01(0x305),_0x4692e8)]);}[_0x16bf5e(0x20f)](){const _0x165413=_0x16bf5e;this[_0x165413(0x371)](this['_commandService'][_0x165413(0x188)](_0x4e7849=>{const _0x52f057=_0x165413;if(_0x4e7849['id']===q['id']){let {unitId:_0x38249d,subUnitId:_0x53f849,drawingId:_0x4bc0f4}=_0x4e7849['params'];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x38249d,_0x53f849,_0x4bc0f4),this[_0x52f057(0x19b)](void 0x0,!0x0),this[_0x52f057(0x1cc)]();}if(_0x4e7849['id']===Ai['id']&&(this[_0x52f057(0x1a8)]=null,this[_0x52f057(0x119)]()),_0x4e7849['id']===_0x135998['id']){var _0xf1e590;let {unitId:_0x33f96f,shapeId:_0x34eecf}=_0x4e7849['params'];if(((_0xf1e590=this[_0x52f057(0x1a8)])==null?void 0x0:_0xf1e590[_0x52f057(0x226)])===_0x34eecf){let _0xed4162=this[_0x52f057(0x30b)](_0x33f96f,this['_activeShapeInfo'][_0x52f057(0x23b)],_0x34eecf);_0xed4162&&(this[_0x52f057(0x30f)]+=0x1,_0xed4162[_0x52f057(0x2a8)]=this[_0x52f057(0x30f)],this[_0x52f057(0x1a8)]=_0xed4162,this[_0x52f057(0x141)]&&this['_openShapeEditPanel']());}}})),this[_0x165413(0x371)](this[_0x165413(0x154)][_0x165413(0x149)][_0x165413(0x1e1)](_0x406a39=>{const _0x25cf60=_0x165413;if(!this['_isOpenedShapeEditPanel'])return;if(_0x406a39[_0x25cf60(0x116)]===0x0){this[_0x25cf60(0x1a8)]=null,this['_closeShapeEditPanel']();return;}if(_0x406a39[_0x25cf60(0x116)]===0x1&&_0x406a39[0x0]['drawingType']===_0x21524c[_0x25cf60(0x247)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x25cf60(0x1a8)]=this[_0x25cf60(0x30b)](_0x406a39[0x0]['unitId'],_0x406a39[0x0][_0x25cf60(0x23b)],_0x406a39[0x0]['drawingId']),this[_0x25cf60(0x1a8)])){this[_0x25cf60(0x1cc)]();return;}let _0x12139e=_0x406a39['filter'](_0x341f75=>_0x341f75[_0x25cf60(0x2a4)]===_0x21524c['DRAWING_SHAPE']);if(this[_0x25cf60(0x30f)]+=0x1,this[_0x25cf60(0x1a8)]=this['_getShapeInfo'](_0x406a39[0x0][_0x25cf60(0x29e)],_0x406a39[0x0][_0x25cf60(0x23b)],_0x406a39[0x0][_0x25cf60(0x344)]),this[_0x25cf60(0x1a8)]&&_0x406a39[_0x25cf60(0x116)]>0x1&&_0x12139e[_0x25cf60(0x116)]===_0x406a39[_0x25cf60(0x116)]){this[_0x25cf60(0x1cc)]();return;}if(this['_activeShapeInfo']&&_0x12139e[_0x25cf60(0x116)]!==_0x406a39[_0x25cf60(0x116)]){this[_0x25cf60(0x1a8)]['disableShapeOption']=!0x0,this[_0x25cf60(0x1cc)]();return;}this['_closeShapeEditPanel']();}));}[_0x16bf5e(0x1cc)](){const _0x2d54fc=_0x16bf5e;this[_0x2d54fc(0x1a8)]&&(this[_0x2d54fc(0x1c6)]=this[_0x2d54fc(0x1fc)]['open']({'id':K,'header':{'title':this[_0x2d54fc(0x193)]['t'](_0x2d54fc(0x365))},'width':0x184,'children':{'label':K,...this['_activeShapeInfo']},'onClose':()=>{const _0x1c88f3=_0x2d54fc;this['_drawingManagerService']['focusDrawing'](null),this[_0x1c88f3(0x165)][_0x1c88f3(0x145)](_0x3a52be,!0x1),this[_0x1c88f3(0x1c6)]=null;}}),this[_0x2d54fc(0x141)]=!0x0);}[_0x16bf5e(0x119)](){const _0x4f2b3a=_0x16bf5e;this[_0x4f2b3a(0x141)]=!0x1,this[_0x4f2b3a(0x1fc)]['close'](K),this[_0x4f2b3a(0x1c6)]=null,this[_0x4f2b3a(0x165)][_0x4f2b3a(0x145)](_0x3a52be,!0x1),this['_drawingManagerService'][_0x4f2b3a(0x30c)](null);}};da=Y([J(0x0,_0x3fa0e3),J(0x1,_0x1f7d38(_0x2e36b7)),J(0x2,_0x358623),J(0x3,_0x1f7d38(_0xda92b6)),J(0x4,_0x1f7d38(_0x26ba4d)),J(0x5,_0x38aa04),J(0x6,_0x30fd72),J(0x7,_0x1f7d38(_0x42fe30)),J(0x8,_0x33251a),J(0x9,_0x1be7b7),J(0xa,_0x1f7d38(Q)),J(0xb,_0x137531),J(0xc,_0x1f7d38(_0x38f3b5))],da);const fa='docs-shape-contextual-ribbon';let pa=class extends _0x3db69a{constructor(_0x4a6843,_0x3c95b4,_0x3e3b66,_0x2a8bef,_0x2abd82,_0x3c068f){const _0x10c72b=_0x16bf5e;super(),this[_0x10c72b(0x33c)]=_0x4a6843,this[_0x10c72b(0x231)]=_0x3c95b4,this[_0x10c72b(0x154)]=_0x3e3b66,this[_0x10c72b(0x1d1)]=_0x2a8bef,this[_0x10c72b(0x186)]=_0x2abd82,this[_0x10c72b(0x208)]=_0x3c068f,Z(this,_0x10c72b(0x2d4),!0x1),this[_0x10c72b(0x33c)][_0x10c72b(0x243)](Ei),this[_0x10c72b(0x371)](_0x5bca0e(this[_0x10c72b(0x154)][_0x10c72b(0x149)]['subscribe'](()=>this[_0x10c72b(0x35a)]()))),this[_0x10c72b(0x35a)]();}[_0x16bf5e(0x1ca)](){const _0x14298c=_0x16bf5e;this[_0x14298c(0x208)][_0x14298c(0x341)](!0x1,fa),this[_0x14298c(0x36c)](),super['dispose']();}[_0x16bf5e(0x35a)](){const _0x4c01ce=_0x16bf5e;var _0x51658e;let _0x5b40a5=this[_0x4c01ce(0x154)][_0x4c01ce(0x2b1)](),_0x3c4b3d=_0x5b40a5[_0x4c01ce(0x116)]===0x1?_0x5b40a5[0x0]:void 0x0;if((_0x3c4b3d==null?void 0x0:_0x3c4b3d[_0x4c01ce(0x2a4)])!==_0x21524c[_0x4c01ce(0x247)]||this['_univerInstanceService'][_0x4c01ce(0x2b6)](_0x3c4b3d[_0x4c01ce(0x29e)])!==_0x5a336e[_0x4c01ce(0x1e2)]){this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,fa),this['_hide']();return;}let _0x2f88e5=(_0x51658e=this[_0x4c01ce(0x186)]['getRenderUnitById'](_0x3c4b3d[_0x4c01ce(0x29e)]))==null?void 0x0:_0x51658e[_0x4c01ce(0x191)]['getCanvasElement'](),_0x362632=_0x23ca1c(_0x2f88e5)===_0x4c01ce(0x12c);if(this[_0x4c01ce(0x208)]['setFallbackVisible'](_0x362632,fa),_0x362632){this[_0x4c01ce(0x36c)]();return;}this[_0x4c01ce(0x2d4)]||(this[_0x4c01ce(0x2d4)]=!0x0,this['_ribbonService'][_0x4c01ce(0x20c)](vr,{'activate':!0x0}));}[_0x16bf5e(0x36c)](){const _0x5eabdd=_0x16bf5e;this[_0x5eabdd(0x2d4)]&&(this['_visible']=!0x1,this['_ribbonService']['hideContextualTab'](vr),this[_0x5eabdd(0x231)][_0x5eabdd(0x2a7)]([]));}};pa=Y([J(0x0,_0x358623),J(0x1,_0x2e4512),J(0x2,_0x30fd72),J(0x3,_0x3fa0e3),J(0x4,_0x33251a),J(0x5,_0x1f7d38(_0x345a12))],pa);let ma=class extends _0x3db69a{constructor(_0x56aa62,_0x3ac0f7,_0xc95e53,_0xb4404d){const _0x5687ca=_0x16bf5e;super(),this[_0x5687ca(0x180)]=_0x56aa62,this[_0x5687ca(0x186)]=_0x3ac0f7,this[_0x5687ca(0x154)]=_0xc95e53,this[_0x5687ca(0x369)]=_0xb4404d,this[_0x5687ca(0x16b)]();}[_0x16bf5e(0x16b)](){const _0x1df62a=_0x16bf5e;this[_0x1df62a(0x371)](this['_drawingManagerService'][_0x1df62a(0x1d4)][_0x1df62a(0x1e1)](_0x2691ab=>this[_0x1df62a(0x27f)](_0x2691ab))),this[_0x1df62a(0x371)](this[_0x1df62a(0x154)][_0x1df62a(0x2c6)][_0x1df62a(0x1e1)](_0x5498eb=>{const _0x4841f2=_0x1df62a;_0x5498eb[_0x4841f2(0x276)](_0x20bb76=>this[_0x4841f2(0x22c)](_0x20bb76));})),this[_0x1df62a(0x371)](this[_0x1df62a(0x180)][_0x1df62a(0x188)](_0x54ac06=>{const _0x513aa3=_0x1df62a;if(_0x54ac06['id']!==_0x135998['id'])return;let {unitId:_0x58d7c8,shapeId:_0x4672ce}=_0x54ac06[_0x513aa3(0x2ef)];this[_0x513aa3(0x2f1)]({'unitId':_0x58d7c8,'subUnitId':_0x58d7c8,'drawingId':_0x4672ce});}));}[_0x16bf5e(0x27f)](_0x4a54a4){const _0x5c3846=_0x16bf5e;_0x4a54a4[_0x5c3846(0x276)](_0x2e4c12=>{const _0x4a8aeb=_0x5c3846;let _0x647222=this[_0x4a8aeb(0x33b)](_0x2e4c12[_0x4a8aeb(0x29e)]);if(!_0x647222)return;let _0x22d99d=this[_0x4a8aeb(0x154)]['getDrawingByParam'](_0x2e4c12);(_0x22d99d==null?void 0x0:_0x22d99d[_0x4a8aeb(0x2a4)])===_0x21524c[_0x4a8aeb(0x247)]&&this[_0x4a8aeb(0x369)][_0x4a8aeb(0x184)](_0x22d99d,_0x647222[_0x4a8aeb(0x1df)]);});}[_0x16bf5e(0x22c)](_0x53b155){const _0x335bd7=_0x16bf5e;let _0x275d96=this[_0x335bd7(0x154)]['getDrawingByParam'](_0x53b155);if((_0x275d96==null?void 0x0:_0x275d96['drawingType'])!==_0x21524c[_0x335bd7(0x247)])return;let _0x1d2132=this['_getSceneByUnitId'](_0x53b155[_0x335bd7(0x29e)]);if(!_0x1d2132||_0x275d96['transform']==null)return;let _0x4bdff3=_0xf14320(_0x53b155),_0x5ec4a6=_0x1d2132[_0x335bd7(0x1df)][_0x335bd7(0x289)](_0x4bdff3);_0x5ec4a6&&(_0x5ec4a6[_0x335bd7(0x34e)](_0x275d96[_0x335bd7(0x11a)]),_0x5ec4a6['setPrstGeom'](_0x275d96['prstGeom']),_0x5ec4a6['makeDirty'](!0x0));}['_refreshShapeData'](_0x196876){const _0x4a00d6=_0x16bf5e;let _0x298b1c=this['_getSceneByUnitId'](_0x196876['unitId']);if(!_0x298b1c)return;let _0x12d62f=_0xf14320(_0x196876),_0x2f3410=_0x298b1c[_0x4a00d6(0x1df)][_0x4a00d6(0x289)](_0x12d62f);_0x2f3410&&(this[_0x4a00d6(0x369)][_0x4a00d6(0x182)](_0x2f3410),this['_docDrawingShapeRenderController'][_0x4a00d6(0x13a)](_0x2f3410,{'unitId':_0x196876[_0x4a00d6(0x29e)],'subUnitId':_0x196876[_0x4a00d6(0x23b)],'shapeId':_0x196876['drawingId']}),_0x2f3410[_0x4a00d6(0x250)](!0x0));}[_0x16bf5e(0x33b)](_0x13e036){const _0x517464=_0x16bf5e;if(_0x13e036==null)return null;let _0x1ebd89=this[_0x517464(0x186)][_0x517464(0x260)](_0x13e036),_0x122dc0=_0x1ebd89==null?void 0x0:_0x1ebd89[_0x517464(0x1df)];return _0x122dc0==null?null:{'scene':_0x122dc0};}};ma=Y([J(0x0,_0x38aa04),J(0x1,_0x33251a),J(0x2,_0x30fd72),J(0x3,_0x1f7d38($))],ma);let ha=class extends _0x194e5b{constructor(_0x535e39=Mi,_0x523400,_0x1da805,_0x115754,_0x23bacb){const _0x45f7c5=_0x16bf5e;super(),this[_0x45f7c5(0x2d0)]=_0x535e39,this[_0x45f7c5(0x28d)]=_0x523400,this['_commandService']=_0x1da805,this[_0x45f7c5(0x222)]=_0x115754,this['_renderManagerService']=_0x23bacb;let {menu:_0x1429eb,..._0xacc2da}=_0x4b28ed({},Mi,this[_0x45f7c5(0x2d0)]);_0x1429eb&&this[_0x45f7c5(0x222)][_0x45f7c5(0x2da)](_0x45f7c5(0x148),_0x1429eb,{'merge':!0x0}),this['_configService'][_0x45f7c5(0x2da)](ji,_0xacc2da),[G,Ai,q,Cr,Tr,Er][_0x45f7c5(0x276)](_0x5111dc=>this[_0x45f7c5(0x371)](this['_commandService'][_0x45f7c5(0x221)](_0x5111dc)));}[_0x16bf5e(0x224)](){const _0x57d6f1=_0x16bf5e;let _0x17dc57=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x182f9f(this['_injector'],_0x17dc57),this[_0x57d6f1(0x28d)][_0x57d6f1(0x2f5)](ua);}[_0x16bf5e(0x220)](){const _0x11f91d=_0x16bf5e;this[_0x11f91d(0x371)](this['_renderManagerService']['registerRenderModule'](_0x5a336e[_0x11f91d(0x1e2)],[zi])),_0x53ce1a(this['_injector'],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0x16bf5e(0x35e),_0x5a336e[_0x16bf5e(0x1e2)]),Z(ha,_0x16bf5e(0x1c9),_0x16bf5e(0x29d)),Z(ha,_0x16bf5e(0x2e8),Oi),Z(ha,_0x16bf5e(0x2a8),ki),ha=Y([_0x4396f9(_0x29dd55,_0x1b3dd2,_0x1c720d,_0x1bc339,_0x418575,_0x4f7aa3,_0x496014,_0x464ec2,_0x384ed5,_0xb1c350),J(0x1,_0x1f7d38(_0xd87dbc)),J(0x2,_0x38aa04),J(0x3,_0x205da2),J(0x4,_0x33251a)],ha);let ga=class extends _0x3db69a{constructor(_0x50519f,_0x1a73a4){const _0x517c0f=_0x16bf5e;super(),this[_0x517c0f(0x36a)]=_0x50519f,this[_0x517c0f(0x13c)]=_0x1a73a4,this[_0x517c0f(0x190)](),this['_registerComponents']();}[_0x16bf5e(0x190)](){const _0x49b285=_0x16bf5e;this[_0x49b285(0x13c)][_0x49b285(0x219)]('ObjectLayersIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'ObjectLayersIcon':_0xe4ac2})),this[_0x49b285(0x13c)][_0x49b285(0x219)]('BottomIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'BottomIcon':_0x2ea734})),this[_0x49b285(0x13c)][_0x49b285(0x219)](_0x49b285(0x295))||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'MoveDownIcon':_0x29b216})),this[_0x49b285(0x13c)][_0x49b285(0x219)](_0x49b285(0x217))||this[_0x49b285(0x371)](this[_0x49b285(0x13c)]['register']({'MoveUpIcon':_0x8804f5})),this[_0x49b285(0x13c)][_0x49b285(0x219)]('ShapeFormatSettingIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'ShapeFormatSettingIcon':_0x197da5})),this[_0x49b285(0x13c)]['has'](_0x49b285(0x306))||this['disposeWithMe'](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'TopmostIcon':_0x1bc7b9})),this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)](ca));}[_0x16bf5e(0x151)](){const _0xd22d7c=_0x16bf5e;this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)]['register'](K,Qi)),this['_registerObjectListPanel'](),this[_0xd22d7c(0x2ae)](),this[_0xd22d7c(0x371)](this['_componentManager'][_0xd22d7c(0x359)](Hr,Jr)),this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Vr,Yr)),this['disposeWithMe'](this['_componentManager'][_0xd22d7c(0x359)](Ur,Xr)),this['disposeWithMe'](this['_componentManager'][_0xd22d7c(0x359)](Wr,Zr)),this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Gr,Qr)),this['disposeWithMe'](this['_componentManager']['register'](xr,_0x42d58e)),this['_registerPickers'](),this[_0xd22d7c(0x36a)][_0xd22d7c(0x2f5)](_0xd24491)||this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](_0xd24491,Mr)),this['disposeWithMe'](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Sr,la));}[_0x16bf5e(0x2bd)](){const _0x463b46=_0x16bf5e;this['disposeWithMe'](this[_0x463b46(0x36a)][_0x463b46(0x359)](yr,Ji));}['_registerFloatingToolbar'](){const _0x59d5f2=_0x16bf5e;this['disposeWithMe'](this[_0x59d5f2(0x36a)][_0x59d5f2(0x359)](na,ia));}[_0x16bf5e(0x1ac)](){const _0x83baae=_0x16bf5e;this[_0x83baae(0x371)](this['_componentManager'][_0x83baae(0x359)](Dr,Nr)),this[_0x83baae(0x371)](this[_0x83baae(0x36a)][_0x83baae(0x359)](Or,jr));}};ga=Y([J(0x0,_0x1f7d38(_0x6a795a)),J(0x1,_0x1f7d38(_0x3df9c1))],ga);let _a=class extends _0x3db69a{constructor(_0x52be70,_0x17e20b,_0x5d5ebe,_0x224e0d,_0x12a001,_0x1e1285,_0xf79a54,_0x171325,_0x2dc256){const _0x17fced=_0x16bf5e;super();let _0x2f487b=_0x39d581=>{const _0x47fbd1=_0x5363;let _0x3d3c02=_0x1e1285[_0x47fbd1(0x258)](_0x39d581[_0x47fbd1(0x29e)],_0x5a336e[_0x47fbd1(0x1e2)]),_0x21a345=_0x3d3c02?_0x359abd(_0x3d3c02,_0x39d581[_0x47fbd1(0x226)]):'';return!!_0x3d3c02&&_0x1aefa3(_0x171325,_0x39d581[_0x47fbd1(0x29e)],[_0x3200bc(_0x21a345,_0x47fbd1(0x305),_0x39d581[_0x47fbd1(0x226)]),..._0x2f3e76(_0x3d3c02,_0x21a345,_0x47fbd1(0x305),_0x39d581['shapeId'])]);},_0x1b645c=_0x4894db=>_0x4894db[_0x17fced(0x226)]&&_0x2f487b(_0x4894db)?_0x5d5ebe[_0x17fced(0x177)](_0x4894db[_0x17fced(0x29e)],_0x4894db['shapeId'])??null:null,_0x24063d=()=>{const _0x34a23f=_0x17fced;let _0x12faca=_0x12a001[_0x34a23f(0x2b1)](),_0x2c7824=_0x12faca[_0x34a23f(0x116)]===0x1?_0x12faca[0x0]:null;return(_0x2c7824==null?void 0x0:_0x2c7824[_0x34a23f(0x2a4)])===_0x21524c[_0x34a23f(0x247)]&&_0x2c7824[_0x34a23f(0x29e)]===_0x52be70['unitId']?{'unitId':_0x2c7824[_0x34a23f(0x29e)],'subUnitId':_0x2c7824['subUnitId'],'shapeId':_0x2c7824['drawingId']}:null;};this[_0x17fced(0x371)](_0x33b5f0(_0x52be70,_0x17e20b,{'changes$':_0x71248(_0x12a001['focus$'],_0x224e0d[_0x17fced(0x2b9)],_0x171325[_0x17fced(0x185)]),'isActive':()=>{const _0x15f9e7=_0x17fced;var _0x19ffb1;return((_0x19ffb1=_0x1e1285[_0x15f9e7(0x34c)]())==null?void 0x0:_0x19ffb1[_0x15f9e7(0x2e3)]())===_0x52be70[_0x15f9e7(0x29e)]&&!_0xf79a54['getContextValue'](_0x3cbde6)&&_0x12a001[_0x15f9e7(0x2b1)]()[_0x15f9e7(0x2e2)](_0x259aab=>_0x259aab[_0x15f9e7(0x29e)]===_0x52be70[_0x15f9e7(0x29e)]);},'getSelectedTarget':_0x24063d,'getSource':()=>{let _0x2fdfc5=_0x24063d();return _0x2fdfc5?_0x1b645c(_0x2fdfc5):null;},'getTarget':_0x55f8a6=>{const _0x53b317=_0x17fced;let _0x370532=_0x52be70[_0x53b317(0x1df)]['pick'](new _0xed2876(_0x55f8a6['offsetX'],_0x55f8a6[_0x53b317(0x283)]));if(!(_0x370532 instanceof Ri))return null;let _0x312383={'unitId':_0x52be70[_0x53b317(0x29e)],'subUnitId':_0x52be70[_0x53b317(0x29e)],'shapeId':_0x370532['shapeId']};return _0x2f487b(_0x312383)?_0x312383:null;},'getShape':_0x1b645c,'update':(_0x4696c2,_0x4dd643,_0x369688)=>_0x2dc256[_0x17fced(0x232)](_0x9d3fcb['id'],{..._0x4696c2,'shapeData':_0x369688,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x4dd643}})}));}};_a=Y([J(0x1,_0x1f7d38(_0xbbc0b9)),J(0x2,_0x1f7d38(_0xda92b6)),J(0x3,_0x1f7d38(Q)),J(0x4,_0x30fd72),J(0x5,_0x3fa0e3),J(0x6,_0x1be7b7),J(0x7,_0x137531),J(0x8,_0x38aa04)],_a);function va(_0x20cec7,_0xd81ef1){const _0x351f9d=_0x16bf5e;let _0x5ca43c=_0x20cec7;for(;_0x5ca43c;){if(_0xd81ef1(_0x5ca43c))return _0x5ca43c;_0x5ca43c=typeof _0x5ca43c['getParent']==_0x351f9d(0x26a)?_0x5ca43c['getParent']():null;}return null;}function ya(_0x3ada30){return va(_0x3ada30,_0x1f934b=>_0x1f934b instanceof Ri);}function ba(_0x569bcd){const _0xda318b=_0x16bf5e;return(_0x569bcd==null?void 0x0:_0x569bcd[_0xda318b(0x164)])==null;}let xa=class extends _0x3db69a{constructor(_0x27b3b6,_0xb1f386,_0x43f51e,_0xbf5868,_0x4990a3,_0x649877){const _0x3c91a2=_0x16bf5e;super(),this[_0x3c91a2(0x159)]=_0x27b3b6,this['_shapeTextEditingService']=_0xb1f386,this[_0x3c91a2(0x154)]=_0x43f51e,this[_0x3c91a2(0x165)]=_0xbf5868,this[_0x3c91a2(0x26b)]=_0x4990a3,this['_docsShapeService']=_0x649877,Z(this,_0x3c91a2(0x1bd),null),Z(this,_0x3c91a2(0x36e),null),this[_0x3c91a2(0x23e)](),this[_0x3c91a2(0x36d)](),this[_0x3c91a2(0x13f)]();}['dispose'](){const _0x128ac7=_0x16bf5e;this[_0x128ac7(0x321)](),super[_0x128ac7(0x1ca)]();}[_0x16bf5e(0x23e)](){const _0x33f2c4=_0x16bf5e;let {scene:_0xab5e1b}=this[_0x33f2c4(0x159)];this[_0x33f2c4(0x371)](_0xab5e1b[_0x33f2c4(0x14b)][_0x33f2c4(0x1b2)]((_0x506c61,_0x249380)=>{const _0x126b8c=_0x33f2c4;let {offsetX:_0x1ce2b4,offsetY:_0x2edc7a}=_0x506c61,_0x345653=_0xed2876[_0x126b8c(0x259)]([_0x1ce2b4,_0x2edc7a]),_0x5df58f=ya(_0xab5e1b[_0x126b8c(0x1c4)](_0x345653))??this[_0x126b8c(0x334)](_0x345653);if(_0x5df58f){_0x249380[_0x126b8c(0x189)]();let _0x307a21=this[_0x126b8c(0x355)][_0x126b8c(0x27c)](_0x5df58f[_0x126b8c(0x29e)],_0x5df58f[_0x126b8c(0x23b)],_0x5df58f[_0x126b8c(0x226)]);if(!_0x307a21||_0x15125c(_0x307a21[_0x126b8c(0x12d)]())||!ba(_0x307a21['getShapeData']()))return;this[_0x126b8c(0x1bf)][_0x126b8c(0x1cd)]({'visible':!0x0,'unitId':_0x5df58f[_0x126b8c(0x29e)],'subUnitId':_0x5df58f[_0x126b8c(0x23b)],'shapeId':_0x5df58f[_0x126b8c(0x226)],'shapeKey':_0x5df58f['oKey']});}}));}[_0x16bf5e(0x334)](_0xccf12b){const _0x1bca62=_0x16bf5e;let {scene:_0x15895d}=this['_context'];return this[_0x1bca62(0x154)]['getFocusDrawings']()['map'](_0x5c7261=>_0x15895d['getObjectIncludeInGroup'](_0xf14320(_0x5c7261)))[_0x1bca62(0x2de)](_0xfba835=>_0xfba835 instanceof Ri&&_0xfba835[_0x1bca62(0x120)](_0xccf12b))??null;}['_initSelection'](){const _0x38b0b2=_0x16bf5e;this[_0x38b0b2(0x371)](this[_0x38b0b2(0x154)][_0x38b0b2(0x149)][_0x38b0b2(0x1e1)](_0x393704=>{const _0x1b4509=_0x38b0b2;if(_0x393704[_0x1b4509(0x116)]===0x1){let _0x2932c8=_0x393704[0x0],_0x4bc61e=this['_drawingManagerService'][_0x1b4509(0x1ce)](_0x2932c8);if((_0x4bc61e==null?void 0x0:_0x4bc61e[_0x1b4509(0x2a4)])===_0x21524c['DRAWING_SHAPE']){let _0x36337b=this[_0x1b4509(0x1bf)][_0x1b4509(0x136)]();if((_0x36337b==null?void 0x0:_0x36337b[_0x1b4509(0x226)])===_0x2932c8['drawingId']&&_0x36337b[_0x1b4509(0x142)])return;_0x15125c(this[_0x1b4509(0x355)][_0x1b4509(0x12d)](_0x2932c8[_0x1b4509(0x29e)],_0x2932c8['subUnitId'],_0x2932c8[_0x1b4509(0x344)]))&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x1b4509(0x1bf)]['completeEditing']();}else this['_shapeTextEditingService'][_0x1b4509(0x15c)]();})),this[_0x38b0b2(0x371)](this[_0x38b0b2(0x154)][_0x38b0b2(0x1d2)][_0x38b0b2(0x1e1)](_0x1e20b=>{const _0x2ec98a=_0x38b0b2;let _0x514056=this[_0x2ec98a(0x1bf)][_0x2ec98a(0x136)]();_0x514056&&_0x1e20b[_0x2ec98a(0x2e2)](_0x1e318d=>_0x1e318d[_0x2ec98a(0x344)]===_0x514056[_0x2ec98a(0x226)])&&this[_0x2ec98a(0x1bf)]['setEditing'](null);}));}[_0x16bf5e(0x13f)](){const _0x46f827=_0x16bf5e;this['disposeWithMe'](this[_0x46f827(0x1bf)][_0x46f827(0x2b9)][_0x46f827(0x1e1)](_0x56821d=>{const _0x44b95d=_0x46f827;(_0x56821d==null?void 0x0:_0x56821d['visible'])===!0x0&&_0x56821d[_0x44b95d(0x29e)]===this[_0x44b95d(0x159)][_0x44b95d(0x29e)]?this[_0x44b95d(0x36e)]??=this[_0x44b95d(0x26b)]['beginInteraction']():this[_0x44b95d(0x321)]();let {scene:_0x2c7cbe}=this[_0x44b95d(0x159)];if(this[_0x44b95d(0x1bd)]){let _0x181042=_0x2c7cbe[_0x44b95d(0x289)](this[_0x44b95d(0x1bd)]);_0x181042&&_0x181042['setEditing'](!0x1);}if(_0x56821d){let _0x315dce=!!_0x56821d[_0x44b95d(0x142)],_0x56c1a2=_0x2c7cbe[_0x44b95d(0x289)](_0x56821d[_0x44b95d(0x1b4)]);_0x56c1a2&&(_0x56c1a2[_0x44b95d(0x1cd)](_0x315dce),this[_0x44b95d(0x1bd)]=_0x56821d[_0x44b95d(0x1b4)]),this['_contextService'][_0x44b95d(0x145)](_0x3cbde6,_0x315dce);}else this['_lastEditingShapeKey']=null,this[_0x44b95d(0x165)][_0x44b95d(0x145)](_0x3cbde6,!0x1);}));}['_endLayoutInteraction'](){const _0x8a8a58=_0x16bf5e;var _0x251d35;(_0x251d35=this[_0x8a8a58(0x36e)])==null||_0x251d35[_0x8a8a58(0x1ca)](),this[_0x8a8a58(0x36e)]=null;}};xa=Y([J(0x1,_0x1f7d38(Q)),J(0x2,_0x30fd72),J(0x3,_0x1be7b7),J(0x4,_0x1f7d38(_0x408b8e)),J(0x5,_0x1f7d38(_0xda92b6))],xa);let Sa=class extends _0x2d6c19{constructor(_0x19b602,_0x1dcbef,_0x95c53c,_0x2c5c06,_0x4a8bd8,_0x5c5cb2,_0x4d1519,_0x1e04c6,_0x138cee,_0x4ead1e){super(_0x19b602,_0x1dcbef,_0x95c53c,_0x2c5c06,_0x4a8bd8,_0x5c5cb2,_0x4d1519,_0x1e04c6,_0x138cee,_0x4ead1e,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x1f7d38(_0x371d66)),J(0x2,_0x1f7d38(_0x42fe30)),J(0x3,_0x1f7d38(_0x101f6f)),J(0x4,_0x38aa04),J(0x5,_0x1f7d38(_0x5ef133)),J(0x6,_0x1f7d38(_0x2408bc)),J(0x7,_0x1f7d38(_0x2d8b15)),J(0x8,_0x1f7d38(_0x269678)),J(0x9,_0x1f7d38(Q))],Sa);let Ca=class extends _0x3db69a{constructor(_0x140cc7,_0x14361e,_0x2ac9df,_0x2cfd39,_0x5586b7,_0x556f1c,_0x5be81b,_0x910b51,_0x276539,_0x524848,_0x4c0e0b,_0x20db04){const _0x382768=_0x16bf5e;super(),this['_univerInstanceService']=_0x140cc7,this[_0x382768(0x1fc)]=_0x14361e,this[_0x382768(0x33c)]=_0x2ac9df,this['_docsShapeService']=_0x2cfd39,this[_0x382768(0x193)]=_0x5586b7,this[_0x382768(0x180)]=_0x556f1c,this[_0x382768(0x154)]=_0x5be81b,this[_0x382768(0x17c)]=_0x910b51,this['_renderManagerService']=_0x276539,this['_contextService']=_0x524848,this[_0x382768(0x1bf)]=_0x4c0e0b,this[_0x382768(0x16a)]=_0x20db04,Z(this,_0x382768(0x1c6),null),Z(this,_0x382768(0x1a8),null),Z(this,'_isOpenedShapeEditPanel',!0x1),Z(this,_0x382768(0x30f),0x0),Z(this,_0x382768(0x330),new Map()),Z(this,_0x382768(0x18a),new Map()),this[_0x382768(0x2d2)](),this[_0x382768(0x371)](this[_0x382768(0x1d1)][_0x382768(0x286)](_0x5a336e['UNIVER_DOC'])[_0x382768(0x1e1)](_0x2b3225=>{const _0x28f90c=_0x382768;if(!_0x2b3225){var _0x3ab48c;(_0x3ab48c=this[_0x28f90c(0x1c6)])==null||_0x3ab48c['dispose']();}})),this[_0x382768(0x20f)](),this[_0x382768(0x371)](_0xeca305(this[_0x382768(0x186)],_0x5a336e[_0x382768(0x1e2)],_0x23e29c=>this[_0x382768(0x333)](_0x23e29c))),this[_0x382768(0x371)](this[_0x382768(0x1bf)]['editingParams$'][_0x382768(0x1e1)](_0xe5609=>{const _0x2f591c=_0x382768;_0xe5609&&this[_0x2f591c(0x19b)](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x382768(0x16a)][_0x382768(0x185)][_0x382768(0x1e1)](()=>{const _0x4518cc=_0x382768;this['_drawingManagerService'][_0x4518cc(0x2b1)]()[_0x4518cc(0x2e2)](_0x5de4d6=>_0x5de4d6['drawingType']===_0x21524c[_0x4518cc(0x247)]&&this[_0x4518cc(0x1d1)][_0x4518cc(0x2b6)](_0x5de4d6[_0x4518cc(0x29e)])===_0x5a336e[_0x4518cc(0x1e2)]&&!this[_0x4518cc(0x173)](_0x5de4d6['unitId'],_0x5de4d6[_0x4518cc(0x344)]))&&(this[_0x4518cc(0x19b)](void 0x0,!0x0),this[_0x4518cc(0x119)]());}));}[_0x16bf5e(0x2d2)](){const _0x282e68=_0x16bf5e;this['_menuManagerService'][_0x282e68(0x243)](Di);}['getShapePopupMenus'](_0x30e4cb,_0x407779,_0xcc3280,_0x27e885){const _0x527801=_0x16bf5e;return[{'label':_0x527801(0x263),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280},'disable':_0x27e885===_0x21524c[_0x527801(0x196)]},{'label':'docs-shape-ui.deleteShape','index':0x1,'commandId':_0x1d5a93['id'],'commandParams':{'unitId':_0x30e4cb,'drawings':[{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280}]},'disable':!0x1},{'label':_0x527801(0x308),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280},'disable':!0x1}];}[_0x16bf5e(0x30b)](_0x323e9f,_0xee8c8a,_0x4940b4){const _0x1ba49e=_0x16bf5e;let _0x27d570=this[_0x1ba49e(0x355)]['getShapeTypeById'](_0x323e9f,_0xee8c8a,_0x4940b4),_0x446740=this[_0x1ba49e(0x355)][_0x1ba49e(0x177)](_0x323e9f,_0xee8c8a,_0x4940b4);return _0x27d570!==void 0x0&&_0x446740!==void 0x0?{'shapeData':_0x446740,'shapeId':_0x4940b4,'shapeType':_0x27d570,'unitId':_0x323e9f,'subUnitId':_0xee8c8a,'version':this[_0x1ba49e(0x30f)],'disableShapeOption':!0x1}:null;}[_0x16bf5e(0x19b)](_0x847888,_0x17167c=!0x1){const _0x21dc06=_0x16bf5e;if(_0x847888==null){[...this[_0x21dc06(0x330)][_0x21dc06(0x130)]()]['forEach'](_0xad3dd1=>this[_0x21dc06(0x19b)](_0xad3dd1,_0x17167c));return;}let _0x3ad478=this[_0x21dc06(0x330)]['get'](_0x847888);if(_0x3ad478){for(let _0xcc049=_0x3ad478[_0x21dc06(0x116)]-0x1;_0xcc049>=0x0;--_0xcc049){let _0x19d0d8=_0x3ad478[_0xcc049];(_0x17167c||_0x19d0d8[_0x21dc06(0x2a2)]())&&(_0x19d0d8[_0x21dc06(0x1ca)](),_0x3ad478[_0x21dc06(0x13e)](_0xcc049,0x1));}_0x3ad478[_0x21dc06(0x116)]===0x0&&(this['_disposePopupsByUnit'][_0x21dc06(0x2e6)](_0x847888),this[_0x21dc06(0x18a)][_0x21dc06(0x2e6)](_0x847888));}}['_getDisposePopups'](_0x3f2ded){const _0x29e706=_0x16bf5e;let _0xb15c10=this['_disposePopupsByUnit'][_0x29e706(0x2f5)](_0x3f2ded);if(_0xb15c10)return _0xb15c10;let _0x31395b=[];return this[_0x29e706(0x330)][_0x29e706(0x342)](_0x3f2ded,_0x31395b),_0x31395b;}[_0x16bf5e(0x333)](_0x50d6ed){const _0x2b56dd=_0x16bf5e;var _0x21d704;let _0x4305b7=new _0x45b9fb(),_0xb00ea1=(_0x21d704=this[_0x2b56dd(0x186)]['getAllRenderersOfType'](_0x5a336e[_0x2b56dd(0x1e2)])[_0x2b56dd(0x2de)](_0x27d2a0=>_0x27d2a0[_0x2b56dd(0x1df)][_0x2b56dd(0x1fd)]()===_0x50d6ed))==null?void 0x0:_0x21d704[_0x2b56dd(0x29e)];return _0xb00ea1?(_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed['createControl$'][_0x2b56dd(0x1e1)](()=>this[_0x2b56dd(0x1d6)](_0x50d6ed,_0xb00ea1))),_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed[_0x2b56dd(0x169)][_0x2b56dd(0x1e1)](()=>{const _0xbeb6aa=_0x2b56dd;this[_0xbeb6aa(0x19b)](_0xb00ea1),queueMicrotask(()=>{const _0x14110a=_0xbeb6aa;_0x50d6ed[_0x14110a(0x264)]()[_0x14110a(0x14a)]>0x0||(this[_0x14110a(0x165)][_0x14110a(0x145)](_0x3a52be,!0x1),this[_0x14110a(0x154)]['focusDrawing'](null));});})),_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed[_0x2b56dd(0x1bb)][_0x2b56dd(0x1e1)](()=>{const _0x2c50d9=_0x2b56dd;this[_0x2c50d9(0x19b)](_0xb00ea1,!0x0);})),_0x4305b7):_0x4305b7;}['_handleCreateControl'](_0x3b86d5,_0x295ee0){const _0x2fe9ff=_0x16bf5e;let _0x2e3cf6=_0x3b86d5['getSelectedObjectMap']();if(this['_isOpenedShapeEditPanel']){this[_0x2fe9ff(0x19b)](_0x295ee0,!0x0);return;}if(_0x2e3cf6[_0x2fe9ff(0x14a)]>0x1){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let _0x6133ad=_0x2e3cf6[_0x2fe9ff(0x12f)]()[_0x2fe9ff(0x2c7)]()[_0x2fe9ff(0x171)];if(!_0x6133ad){this['_clearPopups'](_0x295ee0);return;}let _0x56d0af=this[_0x2fe9ff(0x154)]['getDrawingOKey'](_0x6133ad[_0x2fe9ff(0x1a9)]);if(!_0x56d0af||_0x56d0af[_0x2fe9ff(0x2a4)]!==_0x21524c[_0x2fe9ff(0x247)]){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let {unitId:_0x4342a5,subUnitId:_0x3a9e9b,drawingId:_0x13549c,drawingType:_0x841043}=_0x56d0af;if(!this[_0x2fe9ff(0x173)](_0x4342a5,_0x13549c)){this[_0x2fe9ff(0x19b)](_0x295ee0,!0x0);return;}let _0x2eb1bc=this[_0x2fe9ff(0x30b)](_0x4342a5,_0x3a9e9b,_0x13549c);if(!_0x2eb1bc){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let _0x2e532e=this[_0x2fe9ff(0x330)]['get'](_0x295ee0),_0x2fd0b2=_0x4342a5+':'+_0x3a9e9b+':'+_0x13549c;if(this[_0x2fe9ff(0x18a)][_0x2fe9ff(0x2f5)](_0x295ee0)===_0x2fd0b2&&_0x2e532e&&_0x2e532e[_0x2fe9ff(0x116)]>0x0)return;this[_0x2fe9ff(0x19b)](_0x295ee0);let _0x2cd814=this[_0x2fe9ff(0x186)][_0x2fe9ff(0x260)](_0x4342a5),_0x27bd5d=((_0x2cd814==null?void 0x0:_0x2cd814[_0x2fe9ff(0x329)])===!0x1?_0x2cd814[_0x2fe9ff(0x26f)](_0x42fe30):this[_0x2fe9ff(0x17c)])[_0x2fe9ff(0x143)](_0x6133ad,this['_getShapePopup'](_0x2eb1bc,_0x841043),_0x4342a5);this[_0x2fe9ff(0x371)](_0x27bd5d),this[_0x2fe9ff(0x24a)](_0x295ee0)[_0x2fe9ff(0x1bc)](_0x27bd5d),this['_popupTargetKeys'][_0x2fe9ff(0x342)](_0x295ee0,_0x2fd0b2),this[_0x2fe9ff(0x154)][_0x2fe9ff(0x2b1)]()[_0x2fe9ff(0x2e2)](_0x152c06=>_0x152c06[_0x2fe9ff(0x29e)]===_0x4342a5&&_0x152c06[_0x2fe9ff(0x23b)]===_0x3a9e9b&&_0x152c06[_0x2fe9ff(0x344)]===_0x13549c)||this[_0x2fe9ff(0x154)][_0x2fe9ff(0x30c)]([{'unitId':_0x4342a5,'subUnitId':_0x3a9e9b,'drawingId':_0x13549c}]);}[_0x16bf5e(0x30e)](_0x3682b5,_0xd13cd6){const _0x5570f8=_0x16bf5e;return{'componentKey':na,'direction':'vertical-center','offset':[0x0,_0x5b3daa],'extraProps':{'unitId':_0x3682b5[_0x5570f8(0x29e)],'subUnitId':_0x3682b5[_0x5570f8(0x23b)],'drawingId':_0x3682b5[_0x5570f8(0x226)],'drawingType':_0xd13cd6,'shapeType':_0x3682b5[_0x5570f8(0x324)],'shapeData':_0x3682b5[_0x5570f8(0x2f2)]}};}['_canEditShape'](_0x572725,_0x4804f5){const _0x1cbd8a=_0x16bf5e;let _0xff41f9=this[_0x1cbd8a(0x1d1)][_0x1cbd8a(0x258)](_0x572725,_0x5a336e[_0x1cbd8a(0x1e2)]);if(!_0xff41f9)return!0x1;let _0x5b810f=_0x359abd(_0xff41f9,_0x4804f5);return _0x1aefa3(this[_0x1cbd8a(0x16a)],_0x572725,[..._0x2f3e76(_0xff41f9,_0x5b810f,_0x1cbd8a(0x305),_0x4804f5),_0x3200bc(_0x5b810f,_0x1cbd8a(0x305),_0x4804f5)]);}[_0x16bf5e(0x20f)](){const _0x32619b=_0x16bf5e;this['disposeWithMe'](this[_0x32619b(0x180)][_0x32619b(0x188)](_0x2e412f=>{const _0x58796b=_0x32619b;if(_0x2e412f['id']===q['id']){let {unitId:_0x1b05f2,subUnitId:_0x153aa4,drawingId:_0x1a577b}=_0x2e412f[_0x58796b(0x2ef)];this[_0x58796b(0x30f)]+=0x1,this[_0x58796b(0x1a8)]=this[_0x58796b(0x30b)](_0x1b05f2,_0x153aa4,_0x1a577b),this['_clearPopups'](void 0x0,!0x0),this[_0x58796b(0x1cc)]();}if(_0x2e412f['id']===Ai['id']&&(this[_0x58796b(0x1a8)]=null,this[_0x58796b(0x119)]()),_0x2e412f['id']===_0x135998['id']){let {unitId:_0x1b66db,shapeId:_0x42b9bf}=_0x2e412f[_0x58796b(0x2ef)];if(this[_0x58796b(0x1a8)]&&this['_activeShapeInfo'][_0x58796b(0x226)]===_0x42b9bf){let _0x5995d8=this[_0x58796b(0x30b)](_0x1b66db,this['_activeShapeInfo'][_0x58796b(0x23b)],_0x42b9bf);_0x5995d8&&(this[_0x58796b(0x30f)]+=0x1,_0x5995d8[_0x58796b(0x2a8)]=this[_0x58796b(0x30f)],this[_0x58796b(0x1a8)]=_0x5995d8,this[_0x58796b(0x141)]&&this[_0x58796b(0x1cc)]());}}})),this[_0x32619b(0x371)](this[_0x32619b(0x154)][_0x32619b(0x149)]['subscribe'](_0x44aee7=>{const _0x25df49=_0x32619b;if(this[_0x25df49(0x141)]===!0x1)return;if(_0x44aee7[_0x25df49(0x116)]===0x0){this[_0x25df49(0x1a8)]=null,this[_0x25df49(0x119)]();return;}if(_0x44aee7[_0x25df49(0x116)]===0x1&&_0x44aee7[0x0][_0x25df49(0x2a4)]===_0x21524c[_0x25df49(0x247)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0][_0x25df49(0x29e)],_0x44aee7[0x0][_0x25df49(0x23b)],_0x44aee7[0x0][_0x25df49(0x344)]),this['_activeShapeInfo'])){this[_0x25df49(0x1cc)]();return;}let _0x438581=_0x44aee7[_0x25df49(0x2fa)](_0x5b55d1=>_0x5b55d1['drawingType']===_0x21524c[_0x25df49(0x247)]);if(_0x44aee7['length']>0x1&&_0x438581['length']===_0x44aee7[_0x25df49(0x116)]){if(this[_0x25df49(0x30f)]+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0][_0x25df49(0x29e)],_0x44aee7[0x0]['subUnitId'],_0x44aee7[0x0][_0x25df49(0x344)]),this[_0x25df49(0x1a8)]){this[_0x25df49(0x1cc)]();return;}}else{if(this[_0x25df49(0x30f)]+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0]['unitId'],_0x44aee7[0x0][_0x25df49(0x23b)],_0x44aee7[0x0][_0x25df49(0x344)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x25df49(0x2ca)]=!0x0,this[_0x25df49(0x1cc)]();return;}}this[_0x25df49(0x119)]();}));}['_openShapeEditPanel'](){const _0xf6693e=_0x16bf5e;this[_0xf6693e(0x1a8)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0xf6693e(0x2e7)]({'id':K,'header':{'title':this['_localeService']['t'](_0xf6693e(0x365))},'width':0x184,'children':{'label':K,...this[_0xf6693e(0x1a8)]},'onClose':()=>{const _0x19ccb5=_0xf6693e;this[_0x19ccb5(0x154)][_0x19ccb5(0x30c)](null),this['_contextService'][_0x19ccb5(0x145)](_0x3a52be,!0x1),this[_0x19ccb5(0x1c6)]=null;}}),this[_0xf6693e(0x141)]=!0x0);}[_0x16bf5e(0x119)](){const _0x3d090d=_0x16bf5e;this[_0x3d090d(0x141)]=!0x1,this[_0x3d090d(0x1fc)][_0x3d090d(0x19e)](K),this[_0x3d090d(0x1c6)]=null,this[_0x3d090d(0x165)][_0x3d090d(0x145)](_0x3a52be,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ca=Y([J(0x0,_0x3fa0e3),J(0x1,_0x1f7d38(_0x2e36b7)),J(0x2,_0x358623),J(0x3,_0x1f7d38(_0xda92b6)),J(0x4,_0x1f7d38(_0x26ba4d)),J(0x5,_0x38aa04),J(0x6,_0x30fd72),J(0x7,_0x1f7d38(_0x42fe30)),J(0x8,_0x33251a),J(0x9,_0x1be7b7),J(0xa,_0x1f7d38(Q)),J(0xb,_0x137531)],Ca);let wa=class extends _0x3db69a{constructor(_0x1a31d5,_0x5b084c){const _0x14bcb6=_0x16bf5e;super(),this['_docsShapeService']=_0x1a31d5,this[_0x14bcb6(0x193)]=_0x5b084c,this[_0x14bcb6(0x371)](_0x5bca0e(_0x4e18db((_0xab2497,_0x1998f2,_0x38b1f1)=>this[_0x14bcb6(0x1f1)](_0xab2497,_0x1998f2,_0x38b1f1))));}[_0x16bf5e(0x1f1)](_0x55c8f1,_0x747872,_0x49854e){const _0x196336=_0x16bf5e;let _0x314604=this[_0x196336(0x355)]['getShapeModel'](_0x55c8f1,_0x747872);if(!_0x314604)return null;let _0x309b9a=_0x314604[_0x196336(0x18e)](),_0x2feaf7=_0x428285(_0x309b9a),_0x2b4f21=_0x309b9a[_0x196336(0x2d1)];if(!_0x2b4f21||_0x2feaf7[_0x196336(0x1fe)]!==_0x3c6783[_0x196336(0x2d5)])return null;let _0x27b602=_0x49854e[_0x196336(0x230)],_0x3b915d=_0x49854e[_0x196336(0x2c1)];_0x314604['updateContext']({'width':_0x27b602,'height':_0x3b915d});let _0x1c4c6a=_0x314604[_0x196336(0x236)]({'left':0x0,'top':0x0,'width':_0x27b602,'height':_0x3b915d}),_0x1ca6c9=_0x4a9cfc('dataModel'in _0x2b4f21?_0x2b4f21['dataModel']:void 0x0),_0x4c0fe4=(_0x1ca6c9==null?void 0x0:_0x1ca6c9['doc'])??('isRichText'in _0x2b4f21?_0x2ad81b(_0x2b4f21,_0x747872+_0x196336(0x254)):null);if(!_0x4c0fe4)return null;let _0x2ac1c6=_0x203556({'documentData':_0x4c0fe4,'height':_0x3b915d,'shapeData':_0x309b9a,'textRect':_0x1c4c6a,'width':_0x27b602,'widthBuffer':0x0});_0x2ac1c6&&({width:_0x27b602,height:_0x3b915d}=_0x2ac1c6,_0x314604[_0x196336(0x300)]({'width':_0x27b602,'height':_0x3b915d}),_0x1c4c6a=_0x314604['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x27b602,'height':_0x3b915d}));let _0x4e3bb5=_0x2b4f21['isHorizontal']!==!0x1,_0x3fc309=_0x5f49cc(_0x4c0fe4,{'isHorizontal':_0x4e3bb5,'textRect':_0x1c4c6a,'verticalAlign':_0x1ca6c9==null?void 0x0:_0x1ca6c9['va'],'horizontalAlign':_0x1ca6c9==null?void 0x0:_0x1ca6c9['ha'],'wrapStrategy':_0x103b43(_0x309b9a)}),_0x5dd645=new _0x1d7f7d(_0x3fc309),_0x94b727=new _0x47d8e5(_0x5dd645),_0x3b7575=_0x116815[_0x196336(0x206)](_0x94b727,this[_0x196336(0x193)]);try{var _0x25698f,_0x1a27db;_0x3b7575[_0x196336(0x24b)]();let _0x5cf428=((_0x25698f=_0x3b7575[_0x196336(0x12a)]())==null?void 0x0:_0x25698f[_0x196336(0x158)])??[],_0x44d34a=_0x5cf428[_0x5cf428[_0x196336(0x116)]-0x1],_0xc3d7df=_0x44d34a?Math[_0x196336(0x1b8)](0x0,((_0x1a27db=_0x4e6d0e(_0x44d34a))==null?void 0x0:_0x1a27db[_0x196336(0x25a)])??0x0):0x0,_0x184bd5=_0x3b7575[_0x196336(0x1c3)]()[_0x196336(0x320)]+_0xc3d7df-(_0x4e3bb5?_0x1c4c6a[_0x196336(0x322)]:_0x1c4c6a[_0x196336(0x18c)]);return Number[_0x196336(0x2ac)](_0x184bd5)?_0x4e3bb5?{'width':_0x27b602,'height':Math[_0x196336(0x1b8)](0x1,_0x3b915d+_0x184bd5)}:{'width':Math[_0x196336(0x1b8)](0x1,_0x27b602+_0x184bd5),'height':_0x3b915d}:null;}finally{_0x3b7575[_0x196336(0x1ca)](),_0x94b727[_0x196336(0x1ca)](),_0x5dd645['dispose']();}}};wa=Y([J(0x0,_0x1f7d38(_0xda92b6)),J(0x1,_0x1f7d38(_0x26ba4d))],wa);let Ta=class extends _0x194e5b{constructor(_0x1309e4=Mi,_0x5c460a,_0x2dde43,_0x57c815,_0x2bbd89){const _0x530959=_0x16bf5e;super(),this[_0x530959(0x2d0)]=_0x1309e4,this[_0x530959(0x28d)]=_0x5c460a,this[_0x530959(0x180)]=_0x2dde43,this[_0x530959(0x222)]=_0x57c815,this['_renderManagerService']=_0x2bbd89;let {menu:_0x8a9be7,..._0x42a762}=_0x4b28ed({},Mi,this['_config']);_0x8a9be7&&this['_configService'][_0x530959(0x2da)](_0x530959(0x148),_0x8a9be7,{'merge':!0x0}),this[_0x530959(0x222)][_0x530959(0x2da)](ji,_0x42a762),this[_0x530959(0x20d)]();}[_0x16bf5e(0x224)](){const _0x3a937d=_0x16bf5e;_0x182f9f(this[_0x3a937d(0x28d)],this['_getDependencies']()),this[_0x3a937d(0x28d)]['get'](ga),this[_0x3a937d(0x21b)]();}[_0x16bf5e(0x335)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}[_0x16bf5e(0x220)](){const _0x118563=_0x16bf5e;this[_0x118563(0x33f)]()[_0x118563(0x276)](_0x4ec7d1=>{const _0x1f07d6=_0x118563;this['disposeWithMe'](this[_0x1f07d6(0x186)][_0x1f07d6(0x348)](_0x5a336e[_0x1f07d6(0x1e2)],_0x4ec7d1));}),_0x53ce1a(this[_0x118563(0x28d)],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}[_0x16bf5e(0x33f)](){return[[zi],[xa],[_a]];}[_0x16bf5e(0x23a)](){const _0x3e7728=_0x16bf5e;this[_0x3e7728(0x371)](this[_0x3e7728(0x186)][_0x3e7728(0x348)](_0x5a336e[_0x3e7728(0x1e2)],[Sa]));}[_0x16bf5e(0x20d)](){const _0x743754=_0x16bf5e;[G,Ai,q,Cr,Tr,Er]['forEach'](_0x35d35c=>this[_0x743754(0x371)](this[_0x743754(0x180)][_0x743754(0x221)](_0x35d35c)));}['_initUIPart'](){const _0x3fb32e=_0x16bf5e;let _0x360834=this[_0x3fb32e(0x28d)],_0x3b0a13=_0x360834[_0x3fb32e(0x2f5)](_0x278843);this[_0x3fb32e(0x371)](_0x3b0a13[_0x3fb32e(0x358)](_0x58e59d[_0x3fb32e(0x357)],()=>_0x4bde98(la,_0x360834)));}};Z(Ta,_0x16bf5e(0x35e),_0x5a336e[_0x16bf5e(0x1e2)]),Z(Ta,_0x16bf5e(0x1c9),'DOCS_SHAPE_UI_PLUGIN'),Z(Ta,_0x16bf5e(0x2e8),Oi),Z(Ta,_0x16bf5e(0x2a8),ki),Ta=Y([_0x4396f9(_0x29dd55,_0x1b3dd2,_0x1c720d,_0x3eece4,_0x418575,_0x1739f6,_0x496014,_0x990e5d,_0x384ed5,_0x2bfba6),J(0x1,_0x1f7d38(_0xd87dbc)),J(0x2,_0x38aa04),J(0x3,_0x205da2),J(0x4,_0x33251a)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};