@univerjs-pro/docs-shape-ui 1.0.0-alpha.0 → 1.0.0-alpha.2
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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +0 -108
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/components.controller.d.ts +2 -4
- package/lib/types/controllers/shape-update.controller.d.ts +0 -2
- package/lib/types/locale/en-US.d.ts +0 -291
- package/lib/types/services/shape-render-update.service.d.ts +7 -0
- package/lib/types/views/ShapePicker.d.ts +0 -2
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -16
- package/lib/types/views/shapes.d.ts +0 -58
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x130702=_0x10a5;(function(_0x49bc0d,_0x522928){const _0x3a4f6e=_0x10a5,_0x20395e=_0x49bc0d();while(!![]){try{const _0x12dc89=-parseInt(_0x3a4f6e(0x3ca))/0x1+parseInt(_0x3a4f6e(0x228))/0x2+-parseInt(_0x3a4f6e(0xff))/0x3+-parseInt(_0x3a4f6e(0x2ba))/0x4+parseInt(_0x3a4f6e(0x338))/0x5*(-parseInt(_0x3a4f6e(0x176))/0x6)+-parseInt(_0x3a4f6e(0x28a))/0x7*(-parseInt(_0x3a4f6e(0x25e))/0x8)+parseInt(_0x3a4f6e(0x1cd))/0x9;if(_0x12dc89===_0x522928)break;else _0x20395e['push'](_0x20395e['shift']());}catch(_0x5808c5){_0x20395e['push'](_0x20395e['shift']());}}}(_0x2bd4,0x55197));import{DEFAULT_DOC_SHAPE_HEIGHT as _0x54d5d6,DEFAULT_DOC_SHAPE_WIDTH as _0x4a2dd0,DocsShapeService as _0x2118c4,InsertDocShapeMutation as _0x255e66,UniverDocsShapePlugin as _0x4f49b5,UpdateDocShapeDataCommand as _0x47f49e,UpdateDocShapeDataMutation as _0x5982e6}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x27109d,ShapeArrowSizeEnum as _0x27c05f,ShapeArrowTypeEnum as _0x19787c,ShapeDefaultConfig as _0x21fcf0,ShapeFillEnum as _0x287024,ShapeLineTypeEnum as _0xda36dd,ShapeModel as _0x143585,ShapeRenderModeEnum as _0x1210eb,ShapeTypeEnum as _0x332c7f,isConnectorShape as _0x1757f3}from'@univerjs-pro/engine-shape';import{BooleanNumber as _0x4b9697,CommandType as _0x21ca15,DependentOn as _0x50e9e5,Disposable as _0x3fcc5c,DocumentDataModel as _0x437d59,DrawingTypeEnum as _0x4fb2bf,FOCUSING_COMMON_DRAWINGS as _0x2b9968,FOCUSING_SHAPE_TEXT_EDITOR as _0x4b3a16,GridType as _0x5b8915,HorizontalAlign as _0x4264f8,ICommandService as _0x56458c,IConfigService as _0x241fe7,IContextService as _0x54b7a3,IURLImageService as _0x1dfb93,IUniverInstanceService as _0xaea7bd,Inject as _0x33309c,Injector as _0x30da42,LocaleService as _0x470e84,ObjectRelativeFromH as _0x2e239e,ObjectRelativeFromV as _0xab53ed,Plugin as _0x289022,PositionedObjectLayoutType as _0x1c131b,Tools as _0x314dc0,UniverInstanceType as _0x2ded89,VerticalAlign as _0x19072b,WrapStrategy as _0x474da5,WrapTextType as _0x170522,createInternalEditorID as _0x34604d,generateRandomId as _0x1bba9d,merge as _0x269ee8,registerDependencies as _0x1ed5d3,toDisposable as _0x5d41e1,touchDependencies as _0x2afea8}from'@univerjs/core';import{DocContentInsertService as _0x14f083,DocSelectionManagerService as _0x373df0}from'@univerjs/docs';import{DocDrawingPosition as _0x51237b,DocDrawingTextWrap as _0x43e3a5,InsertDocDrawingCommand as _0x482c4c,RemoveDocDrawingCommand as _0x365499,UniverDocsDrawingUIPlugin as _0x68c679}from'@univerjs/docs-drawing-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x149c8b,DOC_CONTENT_INSERT_MENU_ID as _0x376483,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x42cc90,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x151e28,DocCanvasPopManagerService as _0x23a71d,DocParagraphMenuService as _0x2828fa,DocSelectionRenderService as _0x20066e,EMPTY_PARAGRAPH_MENU_ID as _0x142b77,INSERT_BELLOW_MENU_ID as _0x1abdc2,VIEWPORT_KEY as _0x145fa5,docDrawingPositionToTransform as _0x102c9d}from'@univerjs/docs-ui';import{CURSOR_TYPE as _0x4a6c9d,Circle as _0x20b985,DRAWING_OBJECT_LAYER_INDEX as _0x3ebd69,DocumentSkeleton as _0x521df0,DocumentViewModel as _0x3b87fd,Documents as _0x5a0da0,IRenderManagerService as _0x446451,RENDER_CLASS_TYPE as _0x439b82,Shape as _0x2607a3,Transform as _0x1ecdbe,VERTICAL_ROTATE_ANGLE as _0x49c7e8,Vector2 as _0x529e7d}from'@univerjs/engine-render';import{IDrawingManagerService as _0x5c72b9,IImageIoService as _0xf77436,getDrawingShapeKeyByDrawingSearch as _0x1d7f86}from'@univerjs/drawing';import{BuiltInUIPart as _0x55c578,ComponentManager as _0x52a9bb,ContextMenuGroup as _0x56c602,ContextMenuPosition as _0x219a5a,IFontService as _0x34967e,IMenuManagerService as _0x565f6d,ISidebarService as _0x5f2949,IUIPartsService as _0x2c4c79,IconManager as _0x1a3d08,MenuItemType as _0x19271d,RibbonInsertGroup as _0x216bd6,connectInjector as _0x2ad088,getMenuHiddenObservable as _0x3b75bd,useDependency as _0x3ffba1}from'@univerjs/ui';import{Button as _0x340ae1,Dropdown as _0x232960}from'@univerjs/design';import{DrawingCommonPanel as _0x1868a1,DrawingImageClipService as _0x709aa8,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3d9ff1,insertGroupObject as _0x40ac00}from'@univerjs/drawing-ui';import{memo as _0x220ba1,useEffect as _0x64dd7b,useMemo as _0x4f8589,useState as _0x510af1}from'react';import{jsx as _0x429252,jsxs as _0x5376f4}from'react/jsx-runtime';import{BehaviorSubject as _0x5505cc}from'rxjs';import{ShapeEditPanel as _0x14ea07,ShapeFloatingToolbar as _0xfaa4e1,ShapeTextEditorContainer as _0x22e3bd,ShapeTextFloatMenuRenderControllerBase as _0x141be8,ShapeTextFloatToolbar as _0x30056b,TextWrapShapeIcon as _0x560ded,buildShapeTextDataUpdate as _0x16189a}from'@univerjs-pro/shape-editor-ui';import{UniverLicensePlugin as _0x4310f8}from'@univerjs-pro/license';import{ShapeAccentBorderCallout1Icon as _0x3bd578,ShapeAccentBorderCallout2Icon as _0x46e8a2,ShapeAccentBorderCallout3Icon as _0x2c93a1,ShapeAccentCallout1Icon as _0x1b8738,ShapeAccentCallout2Icon as _0x41da72,ShapeAccentCallout3Icon as _0x553e54,ShapeActionButtonBackPreviousIcon as _0x33d74e,ShapeActionButtonBeginningIcon as _0x5c053a,ShapeActionButtonBlankIcon as _0x566c39,ShapeActionButtonDocumentIcon as _0x45c79f,ShapeActionButtonEndIcon as _0x1d40d1,ShapeActionButtonForwardNextIcon as _0x62e239,ShapeActionButtonHelpIcon as _0x5f2f95,ShapeActionButtonHomeIcon as _0x5b4664,ShapeActionButtonInformationIcon as _0x430718,ShapeActionButtonMovieIcon as _0x423acb,ShapeActionButtonReturnIcon as _0x2d8725,ShapeActionButtonSoundIcon as _0x13e62f,ShapeArcIcon as _0xf2017f,ShapeBentArrowIcon as _0xd41b74,ShapeBentConnector3Arrow1Icon as _0x11ab6d,ShapeBentConnector3Arrow2Icon as _0x336889,ShapeBentConnector3Icon as _0x4b503a,ShapeBentUpArrowIcon as _0x680337,ShapeBevelIcon as _0x25a8b4,ShapeBlockArcIcon as _0x3c1cb5,ShapeBorderCallout1Icon as _0x1fb181,ShapeBorderCallout2Icon as _0x3882c8,ShapeBorderCallout3Icon as _0x21b6f1,ShapeBracePairIcon as _0x474dbd,ShapeBracketPairIcon as _0x439b49,ShapeCallout1Icon as _0x560f89,ShapeCallout2Icon as _0x3b0c27,ShapeCallout3Icon as _0x322f93,ShapeCanIcon as _0x509114,ShapeChartPlusIcon as _0x349863,ShapeChartStarIcon as _0x52a524,ShapeChartXIcon as _0x54d52c,ShapeChevronIcon as _0x139e2a,ShapeChordIcon as _0x2132d4,ShapeCircularArrowIcon as _0x2aefd3,ShapeCloudCalloutIcon as _0x46f501,ShapeCloudIcon as _0x9b0878,ShapeCornerIcon as _0x15256f,ShapeCornerTabsIcon as _0x3b84fc,ShapeCubeIcon as _0x1b4cc1,ShapeCurvedConnector3Arrow1Icon as _0x49ab0a,ShapeCurvedConnector3Arrow2Icon as _0x2f11a3,ShapeCurvedConnector3Icon as _0xdcc992,ShapeCurvedDownArrowIcon as _0x742753,ShapeCurvedLeftArrowIcon as _0x41f4a9,ShapeCurvedRightArrowIcon as _0x17c010,ShapeCurvedUpArrowIcon as _0x2598eb,ShapeDecagonIcon as _0x16a370,ShapeDiagStripeIcon as _0xd0e78a,ShapeDiamondIcon as _0xa3150e,ShapeDodecagonIcon as _0x592ea2,ShapeDonutIcon as _0x47dd32,ShapeDoubleWaveIcon as _0x5e7ac2,ShapeDownArrowCalloutIcon as _0x20ab4a,ShapeDownArrowIcon as _0x4c8fd3,ShapeEllipseIcon as _0x353f25,ShapeEllipseRibbon2Icon as _0x23c1f5,ShapeEllipseRibbonIcon as _0x941f05,ShapeFlowChartAlternateProcessIcon as _0x3f69bf,ShapeFlowChartCollateIcon as _0x448238,ShapeFlowChartConnectorIcon as _0xc3767b,ShapeFlowChartDecisionIcon as _0x55b6f9,ShapeFlowChartDelayIcon as _0x270a2c,ShapeFlowChartDisplayIcon as _0x2536f0,ShapeFlowChartDocumentIcon as _0x1f1e50,ShapeFlowChartExtractIcon as _0x362246,ShapeFlowChartInputOutputIcon as _0xfada14,ShapeFlowChartInternalStorageIcon as _0x5588e9,ShapeFlowChartMagneticDiskIcon as _0x24da01,ShapeFlowChartMagneticDrumIcon as _0x335cfb,ShapeFlowChartMagneticTapeIcon as _0x3a1bef,ShapeFlowChartManualInputIcon as _0x117589,ShapeFlowChartManualOperationIcon as _0x327bad,ShapeFlowChartMergeIcon as _0x248408,ShapeFlowChartMultidocumentIcon as _0x507e38,ShapeFlowChartOfflineStorageIcon as _0x276fd1,ShapeFlowChartOffpageConnectorIcon as _0x292a2f,ShapeFlowChartOnlineStorageIcon as _0x342818,ShapeFlowChartOrIcon as _0x527473,ShapeFlowChartPredefinedProcessIcon as _0x1a1711,ShapeFlowChartPreparationIcon as _0x11b262,ShapeFlowChartProcessIcon as _0x54f913,ShapeFlowChartPunchedCardIcon as _0x32a2a3,ShapeFlowChartPunchedTapeIcon as _0x16b999,ShapeFlowChartSortIcon as _0x1cc378,ShapeFlowChartSummingJunctionIcon as _0x3e8e22,ShapeFlowChartTerminatorIcon as _0xabff00,ShapeFolderCornerIcon as _0x41d0c0,ShapeFrameIcon as _0xa58595,ShapeFunnelIcon as _0x34b8c3,ShapeGear6Icon as _0x56bbb0,ShapeGear9Icon as _0x4b5133,ShapeHalfFrameIcon as _0x404bbb,ShapeHeartIcon as _0x1e2df3,ShapeHeptagonIcon as _0x489f28,ShapeHexagonIcon as _0x420660,ShapeHomePlateIcon as _0x1da8fe,ShapeHorizontalScrollIcon as _0x4134e3,ShapeIrregularSeal1Icon as _0x57b6a4,ShapeIrregularSeal2Icon as _0x2f6663,ShapeLeftArrowCalloutIcon as _0x1fe9a6,ShapeLeftArrowIcon as _0x5278ff,ShapeLeftBraceIcon as _0x34d5d3,ShapeLeftBracketIcon as _0x45de1f,ShapeLeftCircularArrowIcon as _0x551875,ShapeLeftRightArrowCalloutIcon as _0x444744,ShapeLeftRightArrowIcon as _0x24c350,ShapeLeftRightCircularArrowIcon as _0x1afc1c,ShapeLeftRightRibbonIcon as _0x322e6a,ShapeLeftRightUpArrowIcon as _0x59716e,ShapeLeftUpArrowIcon as _0x1d17f8,ShapeLightningBoltIcon as _0x2f7893,ShapeLineIcon as _0x44b31b,ShapeLineInvIcon as _0x2b9270,ShapeMathDivideIcon as _0x3b0f96,ShapeMathEqualIcon as _0x8929d6,ShapeMathMinusIcon as _0x3980f2,ShapeMathMultiplyIcon as _0x2b2daa,ShapeMathNotEqualIcon as _0x4baa65,ShapeMathPlusIcon as _0x33374c,ShapeMoonIcon as _0x181d61,ShapeNoSmokingIcon as _0x55fb8e,ShapeNonIsoscelesTrapezoidIcon as _0x19e869,ShapeNotchedRightArrowIcon as _0x3f3ba3,ShapeOctagonIcon as _0x561daf,ShapeParallelogramIcon as _0x5a2a0b,ShapePentagonIcon as _0x243fa6,ShapePieIcon as _0x436849,ShapePieWedgeIcon as _0x4085c8,ShapePlaqueIcon as _0x2c7338,ShapePlaqueTabsIcon as _0x31f888,ShapePlusIcon as _0x1dfa59,ShapeQuadArrowCalloutIcon as _0x3d02ab,ShapeQuadArrowIcon as _0x10a727,ShapeRectIcon as _0xad7084,ShapeRectTextboxHorizontalIcon as _0x1e8ef4,ShapeRectTextboxVerticalIcon as _0x7c1a1d,ShapeRibbon2Icon as _0x39ab76,ShapeRibbonIcon as _0x32c30e,ShapeRightArrowCalloutIcon as _0x4e9ade,ShapeRightArrowIcon as _0x48f794,ShapeRightBraceIcon as _0x3411fe,ShapeRightBracketIcon as _0x37f61f,ShapeRound1RectIcon as _0x1359b8,ShapeRound2DiagRectIcon as _0x4384d9,ShapeRound2SameRectIcon as _0xb942df,ShapeRoundRectIcon as _0x83bf8a,ShapeRtTriangleIcon as _0x8f215c,ShapeSmileyFaceIcon as _0x2adb56,ShapeSnip1RectIcon as _0x241932,ShapeSnip2DiagRectIcon as _0x1d541e,ShapeSnip2SameRectIcon as _0x4b7376,ShapeSnipRoundRectIcon as _0x5c2a23,ShapeSquareTabsIcon as _0x55e8c4,ShapeStar10Icon as _0x1f7b6d,ShapeStar12Icon as _0x5e5fd4,ShapeStar16Icon as _0x512105,ShapeStar24Icon as _0x229491,ShapeStar32Icon as _0xbfcde8,ShapeStar4Icon as _0x520549,ShapeStar5Icon as _0x4f2575,ShapeStar6Icon as _0x4ea69a,ShapeStar7Icon as _0x1a9dd3,ShapeStar8Icon as _0x117d1e,ShapeStraightConnector1Icon as _0x3dc14e,ShapeStraightConnector2Icon as _0x1e5c6b,ShapeStripedRightArrowIcon as _0x4507a4,ShapeSunIcon as _0x2960ba,ShapeSwooshArrowIcon as _0x3d3681,ShapeTeardropIcon as _0xecf075,ShapeTrapezoidIcon as _0x517d58,ShapeTriangleIcon as _0x517c45,ShapeUpArrowCalloutIcon as _0x4acb17,ShapeUpArrowIcon as _0x59b135,ShapeUpDownArrowCalloutIcon as _0x41aea3,ShapeUpDownArrowIcon as _0x2f6ee7,ShapeUturnArrowIcon as _0x3cb5af,ShapeVerticalScrollIcon as _0x1b028f,ShapeWaveIcon as _0x1332d9,ShapeWedgeEllipseCalloutIcon as _0x391c82,ShapeWedgeRectCalloutIcon as _0x27b8a7,ShapeWedgeRoundRectCalloutIcon as _0x49e7bd}from'@univerjs/icons';const Zi=_0x130702(0xf9),Qi='#2563EB';function $i(_0x5b92c6,_0x4d0a89){const _0x58c780=_0x130702;if(_0x4d0a89){if(_0x1757f3(_0x5b92c6)&&(_0x4d0a89[_0x58c780(0x214)]||_0x4d0a89[_0x58c780(0x2f1)]))return{'ln':{'startArrow':_0x4d0a89[_0x58c780(0x214)]?{'type':_0x19787c[_0x58c780(0x22f)],'size':_0x27c05f[_0x58c780(0x29f)]}:void 0x0,'endArrow':_0x4d0a89['endArrow']?{'type':_0x19787c[_0x58c780(0x22f)],'size':_0x27c05f[_0x58c780(0x342)]}:void 0x0}};if(_0x5b92c6===_0x332c7f['Rect']&&(_0x4d0a89[_0x58c780(0x302)]||_0x4d0a89[_0x58c780(0x11e)]))return{'fill':{'fillType':_0x287024[_0x58c780(0x22c)],'color':Zi},'stroke':{'lineStrokeType':_0xda36dd[_0x58c780(0x190)],'width':0x1,'color':Qi},'shapeText':{'isHorizontal':!!_0x4d0a89['horizontal']}};}}function ea(_0xd9a10,_0x36d191){const _0x3ae37c=_0x130702;var _0x85d9ac;let _0x40b9cf=_0xd9a10['get'](_0x446451)[_0x3ae37c(0x16a)](_0x36d191),_0x1c2c23=_0x40b9cf==null||(_0x85d9ac=_0x40b9cf[_0x3ae37c(0x135)](_0x20066e)['getActiveTextRange']())==null?void 0x0:_0x85d9ac[_0x3ae37c(0x395)]();return _0x1c2c23?{'left':_0x1c2c23[_0x3ae37c(0x13e)],'top':_0x1c2c23[_0x3ae37c(0x237)]}:null;}function ta(_0x31a3b3,_0x208d72,_0x4fb462){const _0x533ad9=_0x130702;var _0x52e0f0,_0x2e5560,_0x1bfd36;if(!_0x4fb462)return null;let _0x53bf18=_0x31a3b3[_0x533ad9(0x3e9)](_0x446451)[_0x533ad9(0x16a)](_0x208d72),_0x1de945=_0x53bf18==null?void 0x0:_0x53bf18[_0x533ad9(0x135)](_0x2828fa)['activeTarget'];if(!_0x1de945)return null;let _0x506968=_0x4fb462===_0x533ad9(0x234)?{'startOffset':_0x1de945['moveRange'][_0x533ad9(0x372)],'endOffset':_0x1de945[_0x533ad9(0x363)][_0x533ad9(0x372)]}:_0x1de945['menuRange'];return{'range':{'unitId':_0x208d72,'startOffset':_0x506968[_0x533ad9(0x221)],'endOffset':_0x506968[_0x533ad9(0x372)],'segmentId':(_0x52e0f0=(_0x2e5560=_0x1de945[_0x533ad9(0x1e1)])==null?void 0x0:_0x2e5560['segmentId'])==null?'':_0x52e0f0},'position':(_0x1bfd36=_0x1de945[_0x533ad9(0x1e1)])!=null&&_0x1bfd36[_0x533ad9(0x10c)]?{'left':_0x1de945['paragraph'][_0x533ad9(0x10c)][_0x533ad9(0x13e)],'top':_0x4fb462==='below'?_0x1de945[_0x533ad9(0x1e1)]['rect']['bottom']:_0x1de945[_0x533ad9(0x1e1)][_0x533ad9(0x10c)][_0x533ad9(0x237)]}:null};}function na(_0x2db04c,_0x2f896c,_0x158fa0){const _0x40241f=_0x130702;var _0x23f787;return{'size':{'width':_0x2db04c,'height':_0x2f896c},'positionH':{'relativeFrom':_0x2e239e['PAGE'],'posOffset':(_0x23f787=_0x158fa0==null?void 0x0:_0x158fa0[_0x40241f(0x13e)])==null?0x0:_0x23f787},'positionV':{'relativeFrom':_0xab53ed[_0x40241f(0x235)],'posOffset':0x0},'angle':0x0};}const B={'type':_0x21ca15[_0x130702(0xf7)],'id':_0x130702(0x29a),'handler':async(_0x164ef3,_0x50d74a)=>{const _0x1b0335=_0x130702;var _0x330979,_0x3780cb,_0x4dac66,_0x12c2b4,_0x4c8898,_0x1e5764;let _0x4e7caf=_0x164ef3[_0x1b0335(0x3e9)](_0xaea7bd)[_0x1b0335(0x1dd)]();if(!_0x4e7caf)return!0x1;let _0x4651ad=_0x164ef3[_0x1b0335(0x3e9)](_0x56458c),_0x4cf7db=_0x4e7caf['getUnitId'](),_0x3eecf7=_0x4cf7db,_0xdbede5=(_0x330979=_0x50d74a[_0x1b0335(0x132)])==null?_0x1bba9d():_0x330979,_0xc3ab3a=(_0x3780cb=_0x50d74a[_0x1b0335(0x368)])==null?_0x4a2dd0:_0x3780cb,_0x5b44be=(_0x4dac66=_0x50d74a['height'])==null?_0x54d5d6:_0x4dac66,_0x12e38c=(_0x12c2b4=(_0x4c8898=_0x50d74a[_0x1b0335(0x116)])==null?$i(_0x50d74a[_0x1b0335(0x17d)],_0x50d74a[_0x1b0335(0x3f8)]):_0x4c8898)==null?{'fill':{'fillType':_0x287024['SolidFill'],'color':Zi},'stroke':{'lineStrokeType':_0xda36dd[_0x1b0335(0x190)],'width':0x1,'color':Qi}}:_0x12c2b4,_0xa50e72=ta(_0x164ef3,_0x4cf7db,_0x50d74a[_0x1b0335(0xf0)]),_0x26e6f1=(_0x1e5764=_0xa50e72==null?void 0x0:_0xa50e72['position'])==null?ea(_0x164ef3,_0x4cf7db):_0x1e5764,_0x187294=na(_0xc3ab3a,_0x5b44be,_0x26e6f1),_0x195630=_0x102c9d(_0x187294);_0x195630&&_0x26e6f1&&(_0x195630[_0x1b0335(0x237)]=_0x26e6f1['top']),_0x4651ad['syncExecuteCommand'](_0x255e66['id'],{'unitId':_0x4cf7db,'shapeId':_0xdbede5,'shapeType':_0x50d74a[_0x1b0335(0x17d)],'shapeData':_0x12e38c}),_0xa50e72&&_0x164ef3[_0x1b0335(0x3e9)](_0x14f083)[_0x1b0335(0x1cc)](_0xa50e72[_0x1b0335(0x3b4)]);let _0x438ee8={'unitId':_0x4cf7db,'subUnitId':_0x3eecf7,'drawingId':_0xdbede5,'drawingType':_0x4fb2bf['DRAWING_SHAPE'],'transform':_0x195630,'docTransform':_0x187294,'data':{'shapeType':_0x50d74a[_0x1b0335(0x17d)],'shapeData':_0x12e38c},'behindDoc':_0x4b9697[_0x1b0335(0x2f7)],'title':'','description':'','layoutType':_0x1c131b[_0x1b0335(0x3aa)],'wrapText':_0x170522[_0x1b0335(0x3e7)],'distB':0x0,'distL':0x0,'distR':0x0,'distT':0x0,'allowTransform':!0x0};return!!_0x4651ad[_0x1b0335(0x1e7)](_0x482c4c['id'],{'unitId':_0x4cf7db,'drawings':[_0x438ee8]});}},ra={'type':_0x21ca15[_0x130702(0x21a)],'id':'doc.operation.close-doc-shape-format-panel','handler'(){return!0x0;}},V={'type':_0x21ca15['OPERATION'],'id':_0x130702(0xe9),'handler'(){return!0x0;}},H=_0x130702(0x19d),ia=_0x34604d('SHAPE_TEXT');function U(_0x553d5c,_0x51375a){return function(_0x2ab239,_0x564ead){_0x51375a(_0x2ab239,_0x564ead,_0x553d5c);};}function W(_0x2d8b2a,_0x4dde2e,_0x2e9df9,_0x103b43){const _0x24fa85=_0x130702;var _0x4f51fc=arguments[_0x24fa85(0x1c3)],_0x13f978=_0x4f51fc<0x3?_0x4dde2e:_0x103b43===null?_0x103b43=Object['getOwnPropertyDescriptor'](_0x4dde2e,_0x2e9df9):_0x103b43,_0x43687e;if(typeof Reflect==_0x24fa85(0x1a8)&&typeof Reflect['decorate']=='function')_0x13f978=Reflect[_0x24fa85(0x344)](_0x2d8b2a,_0x4dde2e,_0x2e9df9,_0x103b43);else{for(var _0x29b8c2=_0x2d8b2a['length']-0x1;_0x29b8c2>=0x0;_0x29b8c2--)(_0x43687e=_0x2d8b2a[_0x29b8c2])&&(_0x13f978=(_0x4f51fc<0x3?_0x43687e(_0x13f978):_0x4f51fc>0x3?_0x43687e(_0x4dde2e,_0x2e9df9,_0x13f978):_0x43687e(_0x4dde2e,_0x2e9df9))||_0x13f978);}return _0x4f51fc>0x3&&_0x13f978&&Object[_0x24fa85(0x252)](_0x4dde2e,_0x2e9df9,_0x13f978),_0x13f978;}let G=class extends _0x3fcc5c{constructor(_0x4f4c47,_0x532daf){const _0x14adf7=_0x130702;super(),this[_0x14adf7(0x1cb)]=_0x4f4c47,this[_0x14adf7(0x1c9)]=_0x532daf,this['_registerImageShapeClipDelegate'](),this[_0x14adf7(0x1cb)]['setCanUseShapeClip'](!0x0),this['disposeWithMe']({'dispose':()=>this[_0x14adf7(0x1cb)][_0x14adf7(0x1c6)](!0x1)});}[_0x130702(0x162)](){const _0x68327b=_0x130702;let _0x3145c5=new Map(),_0x4caebb=this['_clipService']['registerClipDelegate']((_0x254d40,_0x48b625,_0x5aec67,_0x43913d,_0x483025)=>{const _0x427938=_0x10a5;let _0x4758a0=_0x48b625;if(_0x4758a0===_0x332c7f[_0x427938(0x1ca)]||_0x48b625==='custom')return!0x1;try{let _0x1698fe=_0x3145c5['get'](_0x48b625);return _0x1698fe||(_0x1698fe=new _0x143585(_0x4758a0,'clip-'+_0x48b625),_0x3145c5[_0x427938(0x17a)](_0x48b625,_0x1698fe)),_0x483025&&_0x1698fe[_0x427938(0xf1)]({'adjustValues':_0x483025},!0x0),_0x1698fe[_0x427938(0xf3)]({'width':_0x5aec67,'height':_0x43913d}),_0x1698fe['buildClipPath'](_0x254d40,{'left':0x0,'top':0x0,'width':_0x5aec67,'height':_0x43913d});}catch{return!0x1;}});this[_0x68327b(0x34a)](_0x4caebb),this[_0x68327b(0x34a)]({'dispose':()=>_0x3145c5['clear']()});}[_0x130702(0x28e)](_0x3ed0db,_0x40686c,_0x3053ce,_0x577361,_0x53de20){const _0x311cf4=_0x130702;let _0x47cf65=this[_0x311cf4(0x1c9)]['getDrawingData'](_0x3ed0db,_0x40686c)[_0x3053ce];!_0x47cf65||_0x47cf65[_0x311cf4(0x37b)]!==_0x4fb2bf[_0x311cf4(0xbc)]||this[_0x311cf4(0x1c9)][_0x311cf4(0x2ea)]([{..._0x47cf65,'prstGeom':_0x577361,'adjustValues':_0x53de20}]);}};G=W([U(0x0,_0x33309c(_0x709aa8)),U(0x1,_0x33309c(_0x5c72b9))],G);const aa=[{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x2eb)],'icon':_0x130702(0x293),'name':_0x130702(0x37a)},{'group':'line','type':_0x332c7f[_0x130702(0x14b)],'icon':_0x130702(0x3f2),'name':_0x130702(0x39e),'endArrow':!0x0},{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x14b)],'icon':_0x130702(0x187),'name':_0x130702(0x1fb),'endArrow':!0x0,'startArrow':!0x0},{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x3ec)],'icon':_0x130702(0x257),'name':_0x130702(0x1b6)},{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x3ec)],'icon':_0x130702(0xfa),'name':_0x130702(0x250),'endArrow':!0x0},{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x3ec)],'icon':_0x130702(0x357),'name':'docs-shape-ui.shape.type.bent-connector3-arrow2','endArrow':!0x0,'startArrow':!0x0},{'group':_0x130702(0x359),'type':_0x332c7f['CurvedConnector3'],'icon':_0x130702(0x16d),'name':_0x130702(0x3b8)},{'group':_0x130702(0x359),'type':_0x332c7f[_0x130702(0x15b)],'icon':_0x130702(0x3bb),'name':_0x130702(0x2e9),'endArrow':!0x0},{'group':'line','type':_0x332c7f['CurvedConnector3'],'icon':'ShapeCurvedConnector3Arrow2Icon','name':_0x130702(0x273),'endArrow':!0x0,'startArrow':!0x0},{'group':'rectangle','type':_0x332c7f['Rect'],'icon':'ShapeRectIcon','name':_0x130702(0x11f)},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x308)],'icon':_0x130702(0x122),'name':'docs-shape-ui.shape.type.round-rect'},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x1c1)],'icon':_0x130702(0x3f4),'name':'docs-shape-ui.shape.type.snip1-rect'},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0xc7)],'icon':_0x130702(0x3c3),'name':_0x130702(0x262)},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x348)],'icon':'ShapeSnip2DiagRectIcon','name':_0x130702(0x1fc)},{'group':_0x130702(0x298),'type':_0x332c7f['SnipRoundRect'],'icon':_0x130702(0x261),'name':_0x130702(0x165)},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x3fe)],'icon':'ShapeRound1RectIcon','name':'docs-shape-ui.shape.type.round1-rect'},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x3f7)],'icon':_0x130702(0x278),'name':_0x130702(0x2aa)},{'group':_0x130702(0x298),'type':_0x332c7f[_0x130702(0x376)],'icon':_0x130702(0x20b),'name':'docs-shape-ui.shape.type.round2-diag-rect'},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x239)],'icon':_0x130702(0x131),'name':_0x130702(0x347),'horizontal':!0x0},{'group':'basicShape','type':_0x332c7f['Rect'],'icon':_0x130702(0x288),'name':_0x130702(0x391),'vertical':!0x0},{'group':'basicShape','type':_0x332c7f['Ellipse'],'icon':_0x130702(0x2f8),'name':_0x130702(0x34c)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x365)],'icon':_0x130702(0x26f),'name':_0x130702(0x388)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x295)],'icon':_0x130702(0x1c7),'name':'docs-shape-ui.shape.type.rt-triangle'},{'group':'basicShape','type':_0x332c7f[_0x130702(0x1f1)],'icon':_0x130702(0x25d),'name':_0x130702(0x1a1)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x35e)],'icon':_0x130702(0x36e),'name':_0x130702(0x18d)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x3bf)],'icon':'ShapeDiamondIcon','name':_0x130702(0x1c8)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x247)],'icon':_0x130702(0x2df),'name':'docs-shape-ui.shape.type.pentagon'},{'group':_0x130702(0xf6),'type':_0x332c7f['Hexagon'],'icon':_0x130702(0x341),'name':_0x130702(0x16c)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2fe)],'icon':_0x130702(0x358),'name':_0x130702(0x14d)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x362)],'icon':'ShapeOctagonIcon','name':_0x130702(0x128)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2ee)],'icon':_0x130702(0x3af),'name':_0x130702(0x18e)},{'group':_0x130702(0xf6),'type':_0x332c7f['Dodecagon'],'icon':_0x130702(0x25c),'name':'docs-shape-ui.shape.type.dodecagon'},{'group':'basicShape','type':_0x332c7f['Pie'],'icon':'ShapePieIcon','name':_0x130702(0x2bc)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0xbb)],'icon':'ShapeChordIcon','name':_0x130702(0x331)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x27b)],'icon':_0x130702(0x3b2),'name':'docs-shape-ui.shape.type.teardrop'},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x264)],'icon':_0x130702(0x277),'name':_0x130702(0x37c)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2b9)],'icon':_0x130702(0x259),'name':_0x130702(0x24c)},{'group':_0x130702(0xf6),'type':_0x332c7f['Corner'],'icon':_0x130702(0x28d),'name':_0x130702(0x2b1)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2d5)],'icon':_0x130702(0x11b),'name':_0x130702(0xdf)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2d3)],'icon':'ShapePlusIcon','name':'docs-shape-ui.shape.type.plus'},{'group':'basicShape','type':_0x332c7f[_0x130702(0x2ae)],'icon':_0x130702(0x375),'name':_0x130702(0x10a)},{'group':_0x130702(0xf6),'type':_0x332c7f['Can'],'icon':_0x130702(0x12a),'name':_0x130702(0xd1)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x3cc)],'icon':'ShapeCubeIcon','name':_0x130702(0x3a0)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x3de)],'icon':_0x130702(0x285),'name':_0x130702(0x2ab)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x226)],'icon':_0x130702(0x31e),'name':_0x130702(0x177)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x27a)],'icon':_0x130702(0x2cc),'name':_0x130702(0x3eb)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2a3)],'icon':'ShapeBlockArcIcon','name':_0x130702(0x390)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x3e8)],'icon':'ShapeFolderCornerIcon','name':_0x130702(0x3b9)},{'group':'basicShape','type':_0x332c7f['SmileyFace'],'icon':'ShapeSmileyFaceIcon','name':_0x130702(0x291)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x37d)],'icon':_0x130702(0x360),'name':_0x130702(0x20f)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x2cd)],'icon':_0x130702(0xd6),'name':_0x130702(0x23c)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x2da)],'icon':_0x130702(0x36c),'name':'docs-shape-ui.shape.type.sun'},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x3a8)],'icon':_0x130702(0x383),'name':_0x130702(0x14f)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x1ba)],'icon':'ShapeCloudIcon','name':_0x130702(0x32b)},{'group':_0x130702(0xf6),'type':_0x332c7f['Arc'],'icon':_0x130702(0x3c8),'name':_0x130702(0x328)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x281)],'icon':'ShapeBracketPairIcon','name':'docs-shape-ui.shape.type.bracket-pair'},{'group':'basicShape','type':_0x332c7f[_0x130702(0x1d3)],'icon':_0x130702(0x1f7),'name':_0x130702(0x2e6)},{'group':_0x130702(0xf6),'type':_0x332c7f[_0x130702(0x267)],'icon':_0x130702(0x23a),'name':'docs-shape-ui.shape.type.left-bracket'},{'group':'basicShape','type':_0x332c7f[_0x130702(0x17e)],'icon':_0x130702(0x272),'name':_0x130702(0x14e)},{'group':'basicShape','type':_0x332c7f[_0x130702(0x185)],'icon':_0x130702(0x2d2),'name':'docs-shape-ui.shape.type.left-brace'},{'group':'basicShape','type':_0x332c7f['RightBrace'],'icon':_0x130702(0x1a2),'name':'docs-shape-ui.shape.type.right-brace'},{'group':'blockArrow','type':_0x332c7f[_0x130702(0x327)],'icon':'ShapeRightArrowIcon','name':_0x130702(0x37e)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x399)],'icon':'ShapeLeftArrowIcon','name':_0x130702(0x10e)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x19f)],'icon':'ShapeUpArrowIcon','name':_0x130702(0x15a)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x103)],'icon':_0x130702(0x2a9),'name':_0x130702(0x172)},{'group':_0x130702(0x3f6),'type':_0x332c7f['LeftRightArrow'],'icon':'ShapeLeftRightArrowIcon','name':'docs-shape-ui.shape.type.left-right-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f['UpDownArrow'],'icon':_0x130702(0x3a2),'name':'docs-shape-ui.shape.type.up-down-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x26e)],'icon':'ShapeQuadArrowIcon','name':_0x130702(0x10f)},{'group':_0x130702(0x3f6),'type':_0x332c7f['LeftRightUpArrow'],'icon':'ShapeLeftRightUpArrowIcon','name':_0x130702(0x2f0)},{'group':_0x130702(0x3f6),'type':_0x332c7f['BentArrow'],'icon':_0x130702(0x2b8),'name':_0x130702(0x37f)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0xea)],'icon':'ShapeUturnArrowIcon','name':'docs-shape-ui.shape.type.uturn-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x3ed)],'icon':_0x130702(0x2a4),'name':_0x130702(0x216)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x3d0)],'icon':_0x130702(0x3c0),'name':'docs-shape-ui.shape.type.bent-up-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f['CurvedRightArrow'],'icon':'ShapeCurvedRightArrowIcon','name':'docs-shape-ui.shape.type.curved-right-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x168)],'icon':_0x130702(0x104),'name':_0x130702(0x1b5)},{'group':'blockArrow','type':_0x332c7f['CurvedUpArrow'],'icon':_0x130702(0x279),'name':_0x130702(0xfb)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x3ee)],'icon':_0x130702(0xcb),'name':_0x130702(0xd3)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x193)],'icon':_0x130702(0x2e3),'name':'docs-shape-ui.shape.type.striped-right-arrow'},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x367)],'icon':'ShapeNotchedRightArrowIcon','name':_0x130702(0x1e8)},{'group':'blockArrow','type':_0x332c7f[_0x130702(0x31f)],'icon':_0x130702(0x246),'name':_0x130702(0x24a)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x317)],'icon':'ShapeChevronIcon','name':'docs-shape-ui.shape.type.chevron'},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x2ca)],'icon':_0x130702(0x3fb),'name':_0x130702(0x18a)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x312)],'icon':_0x130702(0x125),'name':_0x130702(0x2af)},{'group':_0x130702(0x3f6),'type':_0x332c7f['LeftArrowCallout'],'icon':_0x130702(0xfc),'name':_0x130702(0x380)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x248)],'icon':_0x130702(0x2e0),'name':_0x130702(0x183)},{'group':'blockArrow','type':_0x332c7f[_0x130702(0x2ec)],'icon':'ShapeLeftRightArrowCalloutIcon','name':_0x130702(0x39f)},{'group':_0x130702(0x3f6),'type':_0x332c7f[_0x130702(0x3a7)],'icon':'ShapeQuadArrowCalloutIcon','name':_0x130702(0x130)},{'group':'blockArrow','type':_0x332c7f[_0x130702(0x31c)],'icon':'ShapeCircularArrowIcon','name':_0x130702(0x1d8)},{'group':_0x130702(0x2c7),'type':_0x332c7f[_0x130702(0x29d)],'icon':_0x130702(0x1a9),'name':_0x130702(0xbf)},{'group':_0x130702(0x2c7),'type':_0x332c7f[_0x130702(0x2b0)],'icon':_0x130702(0xcc),'name':_0x130702(0x378)},{'group':_0x130702(0x2c7),'type':_0x332c7f[_0x130702(0x322)],'icon':_0x130702(0x107),'name':_0x130702(0x141)},{'group':_0x130702(0x2c7),'type':_0x332c7f['MathDivide'],'icon':_0x130702(0x105),'name':_0x130702(0x325)},{'group':_0x130702(0x2c7),'type':_0x332c7f['MathEqual'],'icon':_0x130702(0x1c5),'name':_0x130702(0x129)},{'group':_0x130702(0x2c7),'type':_0x332c7f[_0x130702(0x265)],'icon':_0x130702(0x3cb),'name':_0x130702(0xd0)},{'group':'flowchart','type':_0x332c7f[_0x130702(0x186)],'icon':_0x130702(0x10d),'name':_0x130702(0x127)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x323)],'icon':'ShapeFlowChartAlternateProcessIcon','name':'docs-shape-ui.shape.type.flow-chart-alternate-process'},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0xe1)],'icon':'ShapeFlowChartDecisionIcon','name':_0x130702(0x173)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2ce)],'icon':_0x130702(0x137),'name':_0x130702(0x1f0)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x35d)],'icon':_0x130702(0x3d9),'name':'docs-shape-ui.shape.type.flow-chart-predefined-process'},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2e7)],'icon':_0x130702(0x1cf),'name':'docs-shape-ui.shape.type.flow-chart-internal-storage'},{'group':'flowchart','type':_0x332c7f['FlowchartDocument'],'icon':_0x130702(0xca),'name':_0x130702(0x3dc)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2bd)],'icon':_0x130702(0x3bd),'name':_0x130702(0x396)},{'group':_0x130702(0x3c5),'type':_0x332c7f['FlowchartTerminator'],'icon':_0x130702(0x26b),'name':_0x130702(0x370)},{'group':'flowchart','type':_0x332c7f[_0x130702(0x36a)],'icon':_0x130702(0x33f),'name':'docs-shape-ui.shape.type.flow-chart-preparation'},{'group':_0x130702(0x3c5),'type':_0x332c7f['FlowchartManualInput'],'icon':_0x130702(0x15f),'name':_0x130702(0x39c)},{'group':'flowchart','type':_0x332c7f['FlowchartManualOperation'],'icon':'ShapeFlowChartManualOperationIcon','name':_0x130702(0x339)},{'group':_0x130702(0x3c5),'type':_0x332c7f['FlowchartConnector'],'icon':_0x130702(0x386),'name':_0x130702(0x2de)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x178)],'icon':_0x130702(0x1da),'name':'docs-shape-ui.shape.type.flow-chart-offpage-connector'},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x153)],'icon':'ShapeFlowChartPunchedCardIcon','name':_0x130702(0x1de)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0xd7)],'icon':_0x130702(0x3be),'name':_0x130702(0x2a6)},{'group':'flowchart','type':_0x332c7f[_0x130702(0x1a7)],'icon':_0x130702(0x256),'name':_0x130702(0x364)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2dd)],'icon':'ShapeFlowChartOrIcon','name':_0x130702(0x11d)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x3d5)],'icon':_0x130702(0x1f3),'name':_0x130702(0x3dd)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2d0)],'icon':_0x130702(0x1d4),'name':_0x130702(0x334)},{'group':'flowchart','type':_0x332c7f[_0x130702(0xcd)],'icon':_0x130702(0x18b),'name':_0x130702(0x140)},{'group':'flowchart','type':_0x332c7f[_0x130702(0x1fd)],'icon':_0x130702(0x1af),'name':_0x130702(0x26d)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x35c)],'icon':_0x130702(0x1aa),'name':'docs-shape-ui.shape.type.flow-chart-online-storage'},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x381)],'icon':_0x130702(0x1f2),'name':'docs-shape-ui.shape.type.flow-chart-delay'},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x13f)],'icon':_0x130702(0x3b7),'name':_0x130702(0x3e5)},{'group':'flowchart','type':_0x332c7f[_0x130702(0x311)],'icon':'ShapeFlowChartMagneticDiskIcon','name':_0x130702(0x210)},{'group':_0x130702(0x3c5),'type':_0x332c7f[_0x130702(0x2dc)],'icon':'ShapeFlowChartMagneticDrumIcon','name':_0x130702(0x305)},{'group':_0x130702(0x3c5),'type':_0x332c7f['FlowchartDisplay'],'icon':_0x130702(0x393),'name':_0x130702(0x3a6)},{'group':_0x130702(0x2cf),'type':_0x332c7f['IrregularSeal1'],'icon':_0x130702(0x3d7),'name':_0x130702(0x3b1)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x232)],'icon':_0x130702(0x2b4),'name':_0x130702(0x2db)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x3ae)],'icon':_0x130702(0x14c),'name':_0x130702(0x3c9)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x205)],'icon':_0x130702(0x218),'name':_0x130702(0xc1)},{'group':'starAndBanner','type':_0x332c7f['Star6'],'icon':_0x130702(0x215),'name':_0x130702(0x2a0)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x1e2)],'icon':_0x130702(0x101),'name':_0x130702(0x346)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x1d2)],'icon':_0x130702(0x1ec),'name':'docs-shape-ui.shape.type.star8'},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x301)],'icon':_0x130702(0x2e4),'name':'docs-shape-ui.shape.type.star10'},{'group':'starAndBanner','type':_0x332c7f[_0x130702(0x3f3)],'icon':'ShapeStar12Icon','name':'docs-shape-ui.shape.type.star12'},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x354)],'icon':'ShapeStar16Icon','name':_0x130702(0x3e6)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x11c)],'icon':_0x130702(0x402),'name':_0x130702(0x156)},{'group':_0x130702(0x2cf),'type':_0x332c7f['Star32'],'icon':_0x130702(0x2a5),'name':_0x130702(0x233)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x3f1)],'icon':_0x130702(0x163),'name':_0x130702(0x32d)},{'group':_0x130702(0x2cf),'type':_0x332c7f['Ribbon'],'icon':_0x130702(0x36f),'name':_0x130702(0x254)},{'group':'starAndBanner','type':_0x332c7f['EllipseRibbon2'],'icon':_0x130702(0x194),'name':_0x130702(0x203)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x385)],'icon':'ShapeEllipseRibbonIcon','name':_0x130702(0x3d3)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x1e6)],'icon':_0x130702(0x32c),'name':'docs-shape-ui.shape.type.vertical-scroll'},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x2f6)],'icon':'ShapeHorizontalScrollIcon','name':_0x130702(0x2c5)},{'group':_0x130702(0x2cf),'type':_0x332c7f[_0x130702(0x316)],'icon':'ShapeWaveIcon','name':_0x130702(0x1b2)},{'group':_0x130702(0x2cf),'type':_0x332c7f['DoubleWave'],'icon':'ShapeDoubleWaveIcon','name':_0x130702(0x1df)},{'group':'callout','type':_0x332c7f['WedgeRectCallout'],'icon':'ShapeWedgeRectCalloutIcon','name':'docs-shape-ui.shape.type.wedge-rect-callout'},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x329)],'icon':_0x130702(0x2e8),'name':_0x130702(0x2cb)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x3c4)],'icon':_0x130702(0x12e),'name':_0x130702(0x23f)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x3f0)],'icon':_0x130702(0x351),'name':_0x130702(0x13a)},{'group':'callout','type':_0x332c7f[_0x130702(0x174)],'icon':_0x130702(0x19b),'name':_0x130702(0xb8)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x2bb)],'icon':_0x130702(0x374),'name':_0x130702(0x2ac)},{'group':'callout','type':_0x332c7f[_0x130702(0x1ff)],'icon':_0x130702(0x230),'name':_0x130702(0x2f3)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x30a)],'icon':'ShapeAccentCallout1Icon','name':_0x130702(0x12d)},{'group':_0x130702(0x3c1),'type':_0x332c7f['AccentCallout2'],'icon':'ShapeAccentCallout2Icon','name':'docs-shape-ui.shape.type.accent-callout2'},{'group':_0x130702(0x3c1),'type':_0x332c7f['AccentCallout3'],'icon':_0x130702(0x287),'name':_0x130702(0x181)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x2c4)],'icon':_0x130702(0x151),'name':_0x130702(0x394)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x3fc)],'icon':_0x130702(0x152),'name':'docs-shape-ui.shape.type.callout2'},{'group':'callout','type':_0x332c7f['Callout3'],'icon':'ShapeCallout3Icon','name':_0x130702(0x1ee)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x2be)],'icon':_0x130702(0x32e),'name':_0x130702(0xd2)},{'group':_0x130702(0x3c1),'type':_0x332c7f[_0x130702(0x139)],'icon':_0x130702(0x34f),'name':_0x130702(0x202)},{'group':_0x130702(0x3c1),'type':_0x332c7f['AccentBorderCallout3'],'icon':_0x130702(0x245),'name':_0x130702(0x36d)},{'group':_0x130702(0x397),'type':_0x332c7f['LeftCircularArrow'],'icon':_0x130702(0x23d),'name':_0x130702(0x30c)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x307)],'icon':_0x130702(0xe7),'name':_0x130702(0x2f5)},{'group':'other','type':_0x332c7f[_0x130702(0x167)],'icon':_0x130702(0x1dc),'name':_0x130702(0x169)},{'group':_0x130702(0x397),'type':_0x332c7f['LeftRightRibbon'],'icon':_0x130702(0x38f),'name':'docs-shape-ui.shape.type.left-right-ribbon'},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x17f)],'icon':_0x130702(0x36b),'name':_0x130702(0xdd)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x147)],'icon':_0x130702(0x1f8),'name':_0x130702(0x350)},{'group':'other','type':_0x332c7f['Gear6'],'icon':_0x130702(0x21b),'name':'docs-shape-ui.shape.type.gear6'},{'group':_0x130702(0x397),'type':_0x332c7f['Gear9'],'icon':_0x130702(0x160),'name':'docs-shape-ui.shape.type.gear9'},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x22a)],'icon':_0x130702(0x20c),'name':_0x130702(0x236)},{'group':'other','type':_0x332c7f[_0x130702(0x29e)],'icon':_0x130702(0x117),'name':_0x130702(0xda)},{'group':'other','type':_0x332c7f[_0x130702(0xcf)],'icon':'ShapeActionButtonForwardNextIcon','name':_0x130702(0x309)},{'group':'other','type':_0x332c7f['ActionButtonBeginning'],'icon':_0x130702(0x1a0),'name':'docs-shape-ui.shape.type.action-button-beginning'},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x115)],'icon':_0x130702(0x38e),'name':_0x130702(0x27f)},{'group':'other','type':_0x332c7f[_0x130702(0x299)],'icon':_0x130702(0x297),'name':_0x130702(0x1a3)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0xfd)],'icon':_0x130702(0x34b),'name':_0x130702(0x28f)},{'group':'other','type':_0x332c7f[_0x130702(0x224)],'icon':_0x130702(0x199),'name':_0x130702(0x196)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x283)],'icon':_0x130702(0x2ef),'name':_0x130702(0xf2)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x33c)],'icon':'ShapeActionButtonDocumentIcon','name':_0x130702(0x22e)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x387)],'icon':_0x130702(0x2d8),'name':_0x130702(0x3b0)},{'group':'other','type':_0x332c7f[_0x130702(0x159)],'icon':'ShapeActionButtonHelpIcon','name':_0x130702(0x242)},{'group':'other','type':_0x332c7f[_0x130702(0x39a)],'icon':_0x130702(0x263),'name':_0x130702(0xe5)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x164)],'icon':_0x130702(0x110),'name':_0x130702(0x25a)},{'group':_0x130702(0x397),'type':_0x332c7f['ChartStar'],'icon':_0x130702(0x16f),'name':'docs-shape-ui.shape.type.chart-star'},{'group':'other','type':_0x332c7f[_0x130702(0x12f)],'icon':_0x130702(0x303),'name':_0x130702(0x1e5)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x211)],'icon':_0x130702(0x315),'name':_0x130702(0x220)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0xc5)],'icon':_0x130702(0x1ae),'name':_0x130702(0x35a)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x1b8)],'icon':_0x130702(0xdc),'name':'docs-shape-ui.shape.type.plaque-tabs'},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0xeb)],'icon':_0x130702(0x1ea),'name':_0x130702(0x3b3)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x2b7)],'icon':_0x130702(0x310),'name':_0x130702(0xd9)},{'group':_0x130702(0x397),'type':_0x332c7f[_0x130702(0x106)],'icon':_0x130702(0x294),'name':'docs-shape-ui.shape.type.non-isosceles-trapezoid'}],oa=_0x130702(0x1f5);function sa({onShapeClick:_0x30d122,excludeGroups:_0x10720c}){const _0x13bdbf=_0x130702;let _0x5694e7=_0x3ffba1(_0x470e84),_0x54bad4=_0x3ffba1(_0x1a3d08),_0x1383d1=(_0x10720c?aa['filter'](_0x4cae0b=>!_0x10720c[_0x13bdbf(0x274)](_0x4cae0b[_0x13bdbf(0x208)])):aa)[_0x13bdbf(0x3ea)]((_0x398294,_0x1ef814)=>(_0x398294[_0x1ef814[_0x13bdbf(0x208)]]||(_0x398294[_0x1ef814[_0x13bdbf(0x208)]]=[]),_0x398294[_0x1ef814[_0x13bdbf(0x208)]][_0x13bdbf(0x3f5)](_0x1ef814),_0x398294),{});return _0x429252(_0x13bdbf(0x3e4),{'className':'univer-max-h-[75vh]\x20univer-w-[320px]\x20univer-pb-2','children':Object['entries'](_0x1383d1)[_0x13bdbf(0x207)](([_0x19beff,_0x4cba3a])=>_0x5376f4(_0x13bdbf(0x3e4),{'className':'univer-mb-2','children':[_0x429252(_0x13bdbf(0x3e4),{'className':_0x13bdbf(0xde),'children':_0x5694e7['t']('docs-shape-ui.shape.group.'+_0x19beff)}),_0x429252(_0x13bdbf(0x3e4),{'className':_0x13bdbf(0x1fe),'children':_0x4cba3a[_0x13bdbf(0x207)](_0x4e47d2=>{const _0x42a6ed=_0x13bdbf;let _0x1a2588=_0x54bad4[_0x42a6ed(0x3e9)](_0x4e47d2[_0x42a6ed(0x12b)]);return _0x429252(_0x42a6ed(0x3e4),{'title':_0x5694e7['t'](_0x4e47d2['name']),'onClick':()=>_0x30d122(_0x4e47d2),'className':'univer-flex\x20univer-aspect-square\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-p-1\x20univer-text-gray-700\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-700','children':_0x1a2588&&_0x429252(_0x1a2588,{'className':_0x42a6ed(0xed)})},_0x4e47d2[_0x42a6ed(0x2c8)]);})})]},_0x19beff))});}function ca(){const _0x296458=_0x130702;let _0x55d266=_0x3ffba1(_0x470e84),_0x39db8f=_0x3ffba1(_0x5c72b9),_0x123e3b=_0x3ffba1(G),[_0x523ebb,_0x3c9c92]=_0x510af1(!0x1);return _0x429252(_0x232960,{'side':_0x296458(0x13e),'open':_0x523ebb,'onOpenChange':_0x3c9c92,'overlay':_0x429252(sa,{'onShapeClick':_0x48d567=>{const _0x995ade=_0x296458;let _0x1ee396=_0x39db8f[_0x995ade(0x2a7)]()[_0x995ade(0x3ce)](_0x3110fd=>_0x3110fd['drawingType']===_0x4fb2bf[_0x995ade(0xbc)]);if(!_0x1ee396)return;let {unitId:_0x5497b5,subUnitId:_0x257936,drawingId:_0x15ad66}=_0x1ee396;_0x123e3b[_0x995ade(0x28e)](_0x5497b5,_0x257936,_0x15ad66,_0x48d567[_0x995ade(0x2f4)]),_0x3c9c92(!0x1);},'excludeGroups':[_0x296458(0x359)]}),'children':_0x429252(_0x340ae1,{'children':_0x55d266['t']('docs-shape-ui.crop.shape')})});}function la({paragraphMenuPlacement:_0x5090bd}){let _0x18c6a6=_0x3ffba1(_0x56458c);return _0x429252(sa,{'onShapeClick':_0x1cea83=>{const _0x3ff7e2=_0x10a5;_0x18c6a6[_0x3ff7e2(0x192)](B['id'],{'paragraphMenuPlacement':_0x5090bd,'value':_0x1cea83[_0x3ff7e2(0x2f4)],'enhanceParams':{'endArrow':_0x1cea83[_0x3ff7e2(0x2f1)],'startArrow':_0x1cea83[_0x3ff7e2(0x214)],'horizontal':_0x1cea83['horizontal'],'vertical':_0x1cea83[_0x3ff7e2(0x11e)]}});}});}function ua(_0x2db6a3){const _0x232bcd=_0x130702;return _0x21fc8e=>({'id':B['id'],'type':_0x19271d[_0x232bcd(0x33b)],'selections':[{'label':{'name':oa,'hoverable':!0x1,'selectable':!0x1,'props':_0x2db6a3?{'id':B['id'],'paragraphMenuPlacement':_0x2db6a3}:{'id':B['id']}}}],'icon':_0x232bcd(0x3c2),'title':_0x232bcd(0x2fb),'tooltip':_0x232bcd(0x2fb),'hidden$':_0x3b75bd(_0x21fc8e,_0x2ded89[_0x232bcd(0x29b)])});}const da=ua(),fa=ua(_0x130702(0x234)),pa=ua(_0x130702(0x2c3)),ma={[_0x216bd6['MEDIA']]:{[B['id']]:{'order':0x4,'menuItemFactory':da}},[_0x219a5a[_0x130702(0x235)]]:{[_0x56c602[_0x130702(0xe6)]]:{[_0x1abdc2]:{[B['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':fa}}},[_0x376483]:{[_0x56c602['LAYOUT']]:{[B['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':fa}}},[_0x142b77]:{[_0x56c602['LAYOUT']]:{[B['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':pa}}},[_0x151e28]:{'insert':{[B['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':da}}},[_0x42cc90]:{'insert':{[B['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':fa}}}}};function K(_0x1cf4f9){'@babel/helpers - typeof';const _0x1be0fe=_0x130702;return K=typeof Symbol==_0x1be0fe(0x111)&&typeof Symbol[_0x1be0fe(0x1d6)]=='symbol'?function(_0x1f6471){return typeof _0x1f6471;}:function(_0x194cfe){const _0x16d073=_0x1be0fe;return _0x194cfe&&typeof Symbol==_0x16d073(0x111)&&_0x194cfe['constructor']===Symbol&&_0x194cfe!==Symbol[_0x16d073(0x3df)]?_0x16d073(0x149):typeof _0x194cfe;},K(_0x1cf4f9);}function ha(_0x16ce95,_0x1dab88){const _0x49f5bc=_0x130702;if(K(_0x16ce95)!=_0x49f5bc(0x1a8)||!_0x16ce95)return _0x16ce95;var _0x6efa2c=_0x16ce95[Symbol['toPrimitive']];if(_0x6efa2c!==void 0x0){var _0x546ba2=_0x6efa2c[_0x49f5bc(0x14a)](_0x16ce95,_0x1dab88||_0x49f5bc(0x24d));if(K(_0x546ba2)!=_0x49f5bc(0x1a8))return _0x546ba2;throw TypeError(_0x49f5bc(0x2e1));}return(_0x1dab88==='string'?String:Number)(_0x16ce95);}function ga(_0x581d1b){const _0xcabc2f=_0x130702;var _0xd90177=ha(_0x581d1b,_0xcabc2f(0x266));return K(_0xd90177)==_0xcabc2f(0x149)?_0xd90177:_0xd90177+'';}function q(_0x3fbfe6,_0xe0f59,_0x439225){const _0x8f40c1=_0x130702;return(_0xe0f59=ga(_0xe0f59))in _0x3fbfe6?Object[_0x8f40c1(0x252)](_0x3fbfe6,_0xe0f59,{'value':_0x439225,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3fbfe6[_0xe0f59]=_0x439225,_0x3fbfe6;}var J=class extends _0x3fcc5c{constructor(..._0x4d88e2){const _0x1e12f3=_0x130702;super(..._0x4d88e2),q(this,_0x1e12f3(0x324),new _0x5505cc(null)),q(this,_0x1e12f3(0x2e2),this[_0x1e12f3(0x324)][_0x1e12f3(0x27e)]()),q(this,_0x1e12f3(0x335),new _0x5505cc(!0x1)),q(this,'onSavingEditorData$',this['_onSavingEditorData$']['asObservable']());}[_0x130702(0x349)](){const _0x133923=_0x130702;this[_0x133923(0x324)][_0x133923(0x3e3)](null),this['_editingParams$'][_0x133923(0xb9)](),this['_onSavingEditorData$'][_0x133923(0x3e3)](!0x1),this[_0x133923(0x335)][_0x133923(0xb9)](),super['dispose']();}[_0x130702(0x120)](_0x21fb96){const _0x4fad75=_0x130702;this[_0x4fad75(0x324)][_0x4fad75(0x3e3)](_0x21fb96),_0x21fb96==null&&this[_0x4fad75(0x335)][_0x4fad75(0x3e3)](!0x1);}[_0x130702(0x270)](_0x5b5daf){const _0xe7fe7a=_0x130702;this['_onSavingEditorData$'][_0xe7fe7a(0x3e3)](_0x5b5daf);}[_0x130702(0x1d1)](){const _0x55c7f3=_0x130702;return this[_0x55c7f3(0x324)][_0x55c7f3(0x161)]();}};function _a(_0x449b84,_0x3a7195,_0x51ddc6,_0x18f9ba,_0x3e96ba,_0x31651a){const _0x1d99a0=_0x130702;let _0x804f57={'unitId':_0x3a7195,'shapeId':_0x18f9ba,'shapeData':_0x31651a,'oldShapeJSON':_0x3e96ba};return _0x449b84[_0x1d99a0(0x192)](_0x47f49e['id'],_0x804f57);}function va(_0x46a344,_0x3a19a0,_0x5edf50,_0x33405a,_0x3eb365,_0x2fab57){const _0x10d981=_0x130702;let _0x4bef19={'unitId':_0x3a19a0,'shapeId':_0x33405a,'shapeData':_0x2fab57,'oldShapeJSON':_0x3eb365};return _0x46a344[_0x10d981(0x192)](_0x47f49e['id'],_0x4bef19);}const ya=_0x130702(0x319);function ba(_0x3346f6){const _0x39bcd2=_0x130702;let _0x11612e=_0x3346f6[_0x39bcd2(0x292)];return _0x11612e&&_0x39bcd2(0xee)in _0x11612e&&_0x11612e[_0x39bcd2(0xee)]?_0x11612e[_0x39bcd2(0xee)]:null;}function xa(_0x44bc1d){const _0x418b1f=_0x130702;var _0x25bfbc,_0x217b6b,_0x229141,_0x1fcf7c;let _0x2e1a3f=(_0x25bfbc=ba(_0x44bc1d))==null?void 0x0:_0x25bfbc[_0x418b1f(0x2fc)],_0x4cd7ad=(_0x217b6b=_0x2e1a3f==null||(_0x229141=_0x2e1a3f[_0x418b1f(0x3c6)])==null||(_0x229141=_0x229141[_0x418b1f(0x1ab)])==null||(_0x229141=_0x229141[0x0])==null?void 0x0:_0x229141['ts'])==null?{}:_0x217b6b;return{..._0x2e1a3f==null||(_0x1fcf7c=_0x2e1a3f[_0x418b1f(0x240)])==null?void 0x0:_0x1fcf7c[_0x418b1f(0x332)],..._0x4cd7ad};}function Sa(_0x408ea3,_0x10da8b){const _0x1e0e84=_0x130702;var _0x174f03;let _0x3f91b7=_0x408ea3==null||(_0x174f03=_0x408ea3[_0x1e0e84(0x32a)]()['drawings'])==null?void 0x0:_0x174f03[_0x10da8b];return _0x3f91b7?_0x3f91b7[_0x1e0e84(0x333)]===_0x1c131b[_0x1e0e84(0x1db)]?_0x3f91b7[_0x1e0e84(0x20a)]===_0x4b9697[_0x1e0e84(0x268)]?_0x1e0e84(0x1bb):_0x1e0e84(0x166):_0x3f91b7[_0x1e0e84(0x333)]===_0x1c131b[_0x1e0e84(0x188)]?_0x1e0e84(0x392):_0x3f91b7[_0x1e0e84(0x333)]===_0x1c131b[_0x1e0e84(0x33a)]?'wrapTopAndBottom':'inline':_0x1e0e84(0x191);}function Ca(_0x4c06fb){const _0x319d91=_0x130702;var _0x3e7c27,_0x27c143,_0x1e338e;let _0x19327e=_0x4c06fb[_0x319d91(0x126)][_0x319d91(0x1c2)],_0x329009=_0x3ffba1(_0x56458c),_0x3fc000=_0x3ffba1(_0x470e84),_0x1141b1=_0x3ffba1(_0x2118c4),_0x3994b3=_0x3ffba1(_0xaea7bd),_0x1775fe=_0x3ffba1(_0x34967e),{unitId:_0x4fd663,subUnitId:_0x2e5a10,drawingId:_0x27162c,shapeType:_0x19d31a}=_0x19327e,[_0x3a2ec1,_0x44f10d]=_0x510af1(_0x19327e[_0x319d91(0x116)]),[_0xa1c386,_0x5c7f48]=_0x510af1(()=>_0x1775fe[_0x319d91(0x1f4)]()),_0x3f5f3a=(_0x3e7c27=_0x3994b3['getUnit'](_0x4fd663,_0x2ded89['UNIVER_DOC']))==null?void 0x0:_0x3e7c27,[_0x2f72a2,_0x7ca788]=_0x510af1(()=>Sa(_0x3f5f3a,_0x27162c)),_0x4b515e=_0x4f8589(()=>xa(_0x3a2ec1),[_0x3a2ec1]),_0x4ba8fc=_0x4f8589(()=>ba(_0x3a2ec1),[_0x3a2ec1]);_0x64dd7b(()=>{const _0x115217=_0x319d91;let _0x5c4401=_0x329009['onCommandExecuted'](_0x4ac3fb=>{if(_0x4ac3fb['id']!==_0x5982e6['id'])return;let _0x5bacc3=_0x1141b1['getShapeDataById'](_0x4fd663,_0x2e5a10,_0x27162c);_0x5bacc3&&_0x44f10d(_0x5bacc3);});return()=>_0x5c4401[_0x115217(0x349)]();},[_0x329009,_0x1141b1,_0x27162c,_0x2e5a10,_0x4fd663]),_0x64dd7b(()=>{const _0x38f724=_0x319d91;let _0x2f9726=_0x1775fe[_0x38f724(0x24e)][_0x38f724(0x144)](_0x38d8b3=>{_0x5c7f48(_0x38d8b3);});return()=>_0x2f9726['unsubscribe']();},[_0x1775fe]);let _0x3408e4=_0x3147bb=>{_0x44f10d(_0x36bd7e=>({..._0x36bd7e,..._0x3147bb}));},_0x10b576=_0x24289f=>{const _0x4ec08c=_0x319d91;let _0x5f498d=_0x16189a(_0x3a2ec1,_0x24289f);_a(_0x329009,_0x4fd663,_0x2e5a10,_0x27162c,{'oldShapeData':{'shapeText':_0x3a2ec1[_0x4ec08c(0x292)]}},_0x5f498d),_0x3408e4(_0x5f498d);},_0xaf3deb=_0x2824e4=>{const _0x1119f9=_0x319d91;_0x7ca788(_0x2824e4),_0x329009[_0x1119f9(0x192)](_0x1119f9(0xd5),{'unitId':_0x4fd663,'subUnitId':_0x2e5a10,'drawings':[{'unitId':_0x4fd663,'subUnitId':_0x2e5a10,'drawingId':_0x27162c}],'wrappingStyle':_0x2824e4});},_0x3c78e5=_0xa1c386[_0x319d91(0x207)](_0x5d73f3=>({'label':_0x3fc000['t'](_0x5d73f3[_0x319d91(0xe2)]),'value':_0x5d73f3[_0x319d91(0x17d)]})),_0x1c52d9=[{'label':_0x3fc000['t'](_0x319d91(0x1d0)),'value':_0x319d91(0x191),'icon':_0x429252(_0x560ded,{})},{'label':_0x3fc000['t'](_0x319d91(0x284)),'value':_0x319d91(0x392),'icon':_0x429252(_0x560ded,{})},{'label':_0x3fc000['t'](_0x319d91(0x28c)),'value':'wrapTopAndBottom','icon':_0x429252(_0x560ded,{})},{'label':_0x3fc000['t'](_0x319d91(0x3d1)),'value':_0x319d91(0x1bb),'icon':_0x429252(_0x560ded,{})},{'label':_0x3fc000['t']('docs-shape-ui.textWrap.inFrontText'),'value':'inFrontOfText','icon':_0x429252(_0x560ded,{})}];return _0x429252(_0xfaa4e1,{'shapeData':_0x3a2ec1,'shapeType':_0x19d31a,'textStyle':{'cl':{'rgb':_0x319d91(0x33e)},..._0x4b515e},'textModel':_0x4ba8fc?{'ha':(_0x27c143=_0x4ba8fc['ha'])==null?_0x4264f8[_0x319d91(0x343)]:_0x27c143,'va':(_0x1e338e=_0x4ba8fc['va'])==null?_0x19072b['TOP']:_0x1e338e}:null,'fontOptions':_0x3c78e5,'wrappingStyle':_0x2f72a2,'wrappingStyleOptions':_0x1c52d9,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'onUpdateShapeData':(_0x4ea166,_0x590fe6)=>{_a(_0x329009,_0x4fd663,_0x2e5a10,_0x27162c,_0x4ea166,_0x590fe6),_0x590fe6&&_0x3408e4(_0x590fe6);},'onUpdateText':_0x10b576,'onUpdateWrappingStyle':_0x43e845=>_0xaf3deb(_0x43e845),'onOpenPanel':()=>{_0x329009['executeCommand'](V['id'],{'unitId':_0x4fd663,'subUnitId':_0x2e5a10,'drawingId':_0x27162c});},'onDelete':()=>{const _0x1140c6=_0x319d91;_0x329009[_0x1140c6(0x192)](_0x365499['id'],{'unitId':_0x4fd663,'drawings':[{'unitId':_0x4fd663,'subUnitId':_0x2e5a10,'drawingId':_0x27162c}]});}});}let Y=class extends _0x3fcc5c{constructor(_0x258275,_0x5a1b6b,_0x58ad4e,_0x11d410,_0x5a7fec,_0x27f5fc,_0x6b6460,_0xf1a6f4,_0x2150e7,_0x45b97d,_0x21360b){const _0xe45f13=_0x130702;super(),this['_univerInstanceService']=_0x258275,this[_0xe45f13(0x2b6)]=_0x5a1b6b,this[_0xe45f13(0x27c)]=_0x58ad4e,this[_0xe45f13(0x1b0)]=_0x11d410,this['_localeService']=_0x5a7fec,this[_0xe45f13(0x22d)]=_0x27f5fc,this[_0xe45f13(0x1c9)]=_0x6b6460,this[_0xe45f13(0x1e9)]=_0xf1a6f4,this[_0xe45f13(0x19a)]=_0x2150e7,this[_0xe45f13(0x3da)]=_0x45b97d,this['_shapeTextEditingService']=_0x21360b,q(this,_0xe45f13(0x373),null),q(this,_0xe45f13(0x35b),null),q(this,_0xe45f13(0x377),!0x1),q(this,_0xe45f13(0x3f9),0x0),q(this,_0xe45f13(0x3a9),new Set()),q(this,'_disposePopups',[]),this[_0xe45f13(0xc6)](),this[_0xe45f13(0x34a)](this[_0xe45f13(0x330)][_0xe45f13(0x23b)](_0x2ded89[_0xe45f13(0x29b)])[_0xe45f13(0x144)](_0x459469=>{const _0x1c2792=_0xe45f13;if(!_0x459469){var _0x32638d;(_0x32638d=this[_0x1c2792(0x373)])==null||_0x32638d[_0x1c2792(0x349)]();return;}this[_0x1c2792(0x306)](_0x459469);})),this[_0xe45f13(0x15e)](),this[_0xe45f13(0x1a5)](),this['disposeWithMe'](this[_0xe45f13(0x124)][_0xe45f13(0x2e2)][_0xe45f13(0x144)](_0x392100=>{const _0x46198c=_0xe45f13;_0x392100&&this[_0x46198c(0x145)]();}));}[_0x130702(0xc6)](){const _0x1d9eca=_0x130702;this[_0x1d9eca(0x27c)][_0x1d9eca(0x3e2)](ma);}[_0x130702(0x1a5)](){const _0xe89bc=_0x130702;this[_0xe89bc(0x330)][_0xe89bc(0xd4)](_0x2ded89['UNIVER_DOC'])[_0xe89bc(0x1bd)](_0x15fc21=>this['_createShapePopupMenu'](_0x15fc21));}['getShapePopupMenus'](_0x17b426,_0x4c928b,_0xe2e34c,_0x26c498){const _0x2090b6=_0x130702;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':V['id'],'commandParams':{'unitId':_0x17b426,'subUnitId':_0x4c928b,'drawingId':_0xe2e34c},'disable':_0x26c498===_0x4fb2bf[_0x2090b6(0x1ce)]},{'label':_0x2090b6(0x282),'index':0x1,'commandId':_0x365499['id'],'commandParams':{'unitId':_0x17b426,'drawings':[{'unitId':_0x17b426,'subUnitId':_0x4c928b,'drawingId':_0xe2e34c}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':ra['id'],'commandParams':{'unitId':_0x17b426,'subUnitId':_0x4c928b,'drawingId':_0xe2e34c},'disable':!0x1}];}['_getShapeInfo'](_0x49d810,_0xa6c1dd,_0x6171c1){const _0x2e3827=_0x130702;let _0x3e0dc0=this[_0x2e3827(0x1b0)][_0x2e3827(0x269)](_0x49d810,_0xa6c1dd,_0x6171c1),_0x7be118=this[_0x2e3827(0x1b0)]['getShapeDataById'](_0x49d810,_0xa6c1dd,_0x6171c1);return _0x3e0dc0!==void 0x0&&_0x7be118!==void 0x0?{'shapeData':_0x7be118,'shapeId':_0x6171c1,'shapeType':_0x3e0dc0,'unitId':_0x49d810,'subUnitId':_0xa6c1dd,'version':this[_0x2e3827(0x3f9)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x29fe8b){const _0x4604d6=_0x130702;if(!_0x29fe8b)return;let _0xaf417a=_0x29fe8b['getUnitId']();this['_renderManagerService'][_0x4604d6(0x371)](_0xaf417a)&&!this['_initializedShapePopupMenu'][_0x4604d6(0x371)](_0xaf417a)&&(this[_0x4604d6(0x118)](_0xaf417a),this['_initializedShapePopupMenu'][_0x4604d6(0x1c0)](_0xaf417a));}[_0x130702(0x145)](){const _0x39ac07=_0x130702;this[_0x39ac07(0x2c2)][_0x39ac07(0x1bd)](_0x5a2b91=>_0x5a2b91[_0x39ac07(0x349)]()),this[_0x39ac07(0x2c2)][_0x39ac07(0x1c3)]=0x0;}['_popupMenuListener'](_0x3d3399){const _0x132577=_0x130702;var _0x17e286;let _0x1d8681=(_0x17e286=this['_renderManagerService'][_0x132577(0x16a)](_0x3d3399))==null?void 0x0:_0x17e286[_0x132577(0x31b)],_0xab62ec=_0x1d8681==null?void 0x0:_0x1d8681[_0x132577(0x3a4)]();!_0x1d8681||!_0xab62ec||(this[_0x132577(0x34a)](_0xab62ec['createControl$']['subscribe'](()=>{const _0x5cca16=_0x132577;let _0x3a19e4=_0xab62ec[_0x5cca16(0x213)]();if(this[_0x5cca16(0x145)](),this[_0x5cca16(0x377)]||_0x3a19e4[_0x5cca16(0x296)]>0x1)return;let _0x4c1f0d=_0x3a19e4[_0x5cca16(0x29c)]()['next']()[_0x5cca16(0x17d)];if(!_0x4c1f0d)return;let _0x51d87a=this[_0x5cca16(0x1c9)][_0x5cca16(0x39d)](_0x4c1f0d['oKey']);if(!_0x51d87a||_0x51d87a[_0x5cca16(0x37b)]!==_0x4fb2bf[_0x5cca16(0x206)])return;let {unitId:_0x5584cc,subUnitId:_0x3ae9bc,drawingId:_0x488815,drawingType:_0x4a05b5}=_0x51d87a,_0x1411ed=this[_0x5cca16(0x314)](_0x5584cc,_0x3ae9bc,_0x488815);if(!_0x1411ed)return;let _0x14b1c8=this[_0x5cca16(0x1e9)][_0x5cca16(0x320)](_0x4c1f0d,{'componentKey':ya,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'unitId':_0x5584cc,'subUnitId':_0x3ae9bc,'drawingId':_0x488815,'drawingType':_0x4a05b5,'shapeType':_0x1411ed['shapeType'],'shapeData':_0x1411ed[_0x5cca16(0x116)]}},_0x5584cc);this['_disposePopups']['push'](this['disposeWithMe'](_0x14b1c8)),this[_0x5cca16(0x1c9)][_0x5cca16(0x2a7)]()[_0x5cca16(0x3ce)](_0x52cb82=>_0x52cb82['unitId']===_0x5584cc&&_0x52cb82[_0x5cca16(0x1be)]===_0x3ae9bc&&_0x52cb82[_0x5cca16(0x146)]===_0x488815)||this[_0x5cca16(0x1c9)]['focusDrawing']([{'unitId':_0x5584cc,'subUnitId':_0x3ae9bc,'drawingId':_0x488815}]);})),this['disposeWithMe'](_0xab62ec[_0x132577(0x2b2)][_0x132577(0x144)](()=>{const _0x3233ec=_0x132577;this[_0x3233ec(0x145)](),this[_0x3233ec(0x3da)][_0x3233ec(0x13c)](_0x2b9968,!0x1),this[_0x3233ec(0x1c9)][_0x3233ec(0x30f)](null);})),this[_0x132577(0x34a)](_0xab62ec[_0x132577(0x2d7)][_0x132577(0x144)](()=>{const _0x143ede=_0x132577;this[_0x143ede(0x145)]();})),this[_0x132577(0x34a)](_0xab62ec[_0x132577(0x18f)][_0x132577(0x144)](()=>{const _0x3edb69=_0x132577;this[_0x3edb69(0x145)]();})));}[_0x130702(0x15e)](){const _0x1f78e1=_0x130702;this['disposeWithMe'](this[_0x1f78e1(0x22d)]['onCommandExecuted'](_0x59a0d6=>{const _0x3e3bf8=_0x1f78e1;if(_0x59a0d6['id']===V['id']){let {unitId:_0x28d2cc,subUnitId:_0x2fe6e7,drawingId:_0xec1a29}=_0x59a0d6[_0x3e3bf8(0x2e5)];this[_0x3e3bf8(0x3f9)]+=0x1,this[_0x3e3bf8(0x35b)]=this['_getShapeInfo'](_0x28d2cc,_0x2fe6e7,_0xec1a29),this[_0x3e3bf8(0x145)](),this[_0x3e3bf8(0x189)]();}if(_0x59a0d6['id']===ra['id']&&(this[_0x3e3bf8(0x35b)]=null,this[_0x3e3bf8(0x227)]()),_0x59a0d6['id']===_0x5982e6['id']){let {unitId:_0x106b54,shapeId:_0x193202}=_0x59a0d6[_0x3e3bf8(0x2e5)];if(this[_0x3e3bf8(0x35b)]&&this['_activeShapeInfo']['shapeId']===_0x193202){let _0x22d0c3=this[_0x3e3bf8(0x314)](_0x106b54,this[_0x3e3bf8(0x35b)][_0x3e3bf8(0x1be)],_0x193202);_0x22d0c3&&(this['_shapeEditPanelVersion']+=0x1,_0x22d0c3['version']=this[_0x3e3bf8(0x3f9)],this[_0x3e3bf8(0x35b)]=_0x22d0c3,this[_0x3e3bf8(0x377)]&&this[_0x3e3bf8(0x189)]());}}})),this[_0x1f78e1(0x34a)](this[_0x1f78e1(0x1c9)][_0x1f78e1(0x184)][_0x1f78e1(0x144)](_0x3db985=>{const _0x270a5b=_0x1f78e1;if(this[_0x270a5b(0x377)]===!0x1)return;if(_0x3db985[_0x270a5b(0x1c3)]===0x0){this[_0x270a5b(0x35b)]=null,this[_0x270a5b(0x227)]();return;}if(_0x3db985[_0x270a5b(0x1c3)]===0x1&&_0x3db985[0x0][_0x270a5b(0x37b)]===_0x4fb2bf[_0x270a5b(0x206)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x270a5b(0x35b)]=this[_0x270a5b(0x314)](_0x3db985[0x0][_0x270a5b(0x1e0)],_0x3db985[0x0][_0x270a5b(0x1be)],_0x3db985[0x0][_0x270a5b(0x146)]),this[_0x270a5b(0x35b)])){this['_openShapeEditPanel']();return;}let _0x60b361=_0x3db985['filter'](_0xff9d71=>_0xff9d71['drawingType']===_0x4fb2bf['DRAWING_SHAPE']);if(_0x3db985[_0x270a5b(0x1c3)]>0x1&&_0x60b361[_0x270a5b(0x1c3)]===_0x3db985[_0x270a5b(0x1c3)]){if(this[_0x270a5b(0x3f9)]+=0x1,this[_0x270a5b(0x35b)]=this[_0x270a5b(0x314)](_0x3db985[0x0][_0x270a5b(0x1e0)],_0x3db985[0x0]['subUnitId'],_0x3db985[0x0][_0x270a5b(0x146)]),this[_0x270a5b(0x35b)]){this[_0x270a5b(0x189)]();return;}}else{if(this[_0x270a5b(0x3f9)]+=0x1,this[_0x270a5b(0x35b)]=this[_0x270a5b(0x314)](_0x3db985[0x0]['unitId'],_0x3db985[0x0][_0x270a5b(0x1be)],_0x3db985[0x0]['drawingId']),this[_0x270a5b(0x35b)]){this[_0x270a5b(0x35b)][_0x270a5b(0x138)]=!0x0,this[_0x270a5b(0x189)]();return;}}this['_closeShapeEditPanel']();}));}[_0x130702(0x189)](){const _0x4a1dde=_0x130702;this[_0x4a1dde(0x35b)]&&(this['_sidebarDisposable']=this[_0x4a1dde(0x2b6)]['open']({'id':H,'header':{'title':this['_localeService']['t'](_0x4a1dde(0x38c))},'width':0x184,'children':{'label':H,...this['_activeShapeInfo']},'onClose':()=>{const _0x2e7857=_0x4a1dde;this['_drawingManagerService'][_0x2e7857(0x30f)](null),this[_0x2e7857(0x3da)]['setContextValue'](_0x2b9968,!0x1),this[_0x2e7857(0x373)]=null;}}),this[_0x4a1dde(0x377)]=!0x0);}[_0x130702(0x227)](){const _0x52e4fb=_0x130702;this[_0x52e4fb(0x377)]=!0x1,this[_0x52e4fb(0x2b6)][_0x52e4fb(0x219)](H),this[_0x52e4fb(0x373)]=null,this[_0x52e4fb(0x3da)]['setContextValue'](_0x2b9968,!0x1),this[_0x52e4fb(0x1c9)][_0x52e4fb(0x30f)](null);}};Y=W([U(0x0,_0xaea7bd),U(0x1,_0x33309c(_0x5f2949)),U(0x2,_0x565f6d),U(0x3,_0x33309c(_0x2118c4)),U(0x4,_0x33309c(_0x470e84)),U(0x5,_0x56458c),U(0x6,_0x5c72b9),U(0x7,_0x33309c(_0x23a71d)),U(0x8,_0x446451),U(0x9,_0x54b7a3),U(0xa,_0x33309c(J))],Y);var wa=_0x130702(0x30e),Ta=_0x130702(0x345);const Ea={};function Da(_0x43606b){const _0xae8946=_0x130702;var _0x5662a7,_0x545a57,_0x191ede,_0x4ecc2c;let _0x1e4698=(_0x5662a7=(_0x545a57=_0x43606b[_0xae8946(0x3c6)])==null||(_0x545a57=_0x545a57[_0xae8946(0x1bf)])==null?void 0x0:_0x545a57[_0xae8946(0x1c3)])==null?0x0:_0x5662a7,_0x44c4a0=(_0x191ede=_0x43606b['body'])==null?void 0x0:_0x191ede[_0xae8946(0x1e4)];if(_0x44c4a0!=null&&_0x44c4a0[_0xae8946(0x1c3)])for(let _0x2b938b of _0x44c4a0){var _0x237c79;_0x2b938b[_0xae8946(0x337)]=(_0x237c79=_0x2b938b[_0xae8946(0x337)])==null?_0x5b8915[_0xae8946(0x143)]:_0x237c79;}else _0x43606b[_0xae8946(0x3c6)]&&(_0x43606b['body']['sectionBreaks']=[{'startIndex':Math['max'](0x0,_0x1e4698-0x1),'gridType':_0x5b8915[_0xae8946(0x143)]}]);let _0x288c84=(_0x4ecc2c=_0x43606b[_0xae8946(0x3c6)])==null?void 0x0:_0x4ecc2c[_0xae8946(0x352)];if(_0x288c84)for(let _0xa0999b of _0x288c84){var _0x362d6a,_0x160f31,_0x24ccf2,_0x389b1c,_0x1079b7,_0x2cb18b,_0x5971d6,_0x1160e4;_0xa0999b[_0xae8946(0x1f9)]={..._0xa0999b[_0xae8946(0x1f9)],'lineSpacing':(_0x362d6a=(_0x160f31=_0xa0999b[_0xae8946(0x1f9)])==null?void 0x0:_0x160f31[_0xae8946(0xf8)])==null?0x1:_0x362d6a,'snapToGrid':(_0x24ccf2=(_0x389b1c=_0xa0999b[_0xae8946(0x1f9)])==null?void 0x0:_0x389b1c[_0xae8946(0x1ad)])==null?_0x4b9697[_0xae8946(0x2f7)]:_0x24ccf2,'spaceAbove':(_0x1079b7=(_0x2cb18b=_0xa0999b[_0xae8946(0x1f9)])==null?void 0x0:_0x2cb18b[_0xae8946(0x25f)])==null?{'v':0x0}:_0x1079b7,'spaceBelow':(_0x5971d6=(_0x1160e4=_0xa0999b[_0xae8946(0x1f9)])==null?void 0x0:_0x1160e4[_0xae8946(0x3b5)])==null?{'v':0x0}:_0x5971d6};}}function Oa(_0x29d2ec){const _0x1be03d=_0x130702;let _0x2fb169=_0x29d2ec[_0x1be03d(0x3c6)],_0x54665e=_0x2fb169==null?void 0x0:_0x2fb169[_0x1be03d(0x352)],_0x2ef67f=_0x2fb169==null?void 0x0:_0x2fb169['dataStream'];if(!_0x2fb169||!(_0x54665e!=null&&_0x54665e['length'])||!_0x2ef67f)return;let _0x2b9f72=[];for(let _0x114522=0x0;_0x114522<_0x2ef67f['length'];_0x114522++)_0x2ef67f[_0x114522]==='\x0d'&&_0x2b9f72[_0x1be03d(0x3f5)](_0x114522);_0x2b9f72[_0x1be03d(0x1c3)]===_0x54665e[_0x1be03d(0x1c3)]&&(_0x2fb169[_0x1be03d(0x352)]=_0x54665e['map']((_0x139580,_0x5e0290)=>({..._0x139580,'startIndex':_0x2b9f72[_0x5e0290]})));}function ka(_0x61b817,_0x1ea465){const _0x310860=_0x130702;var _0x11ca45,_0x3f8ef4,_0x12f73a;let {isHorizontal:_0x2cc754,textRect:_0x58dff9,verticalAlign:_0x336948}=_0x1ea465,_0x21d438=_0x2cc754?_0x58dff9[_0x310860(0x368)]:_0x58dff9[_0x310860(0x170)],_0x242849=_0x314dc0[_0x310860(0x15d)](_0x61b817),_0xc187f6=(_0x11ca45=_0x242849[_0x310860(0x240)])==null?{}:_0x11ca45,_0x198c66={..._0xc187f6['renderConfig'],'centerAngle':_0x2cc754?0x0:_0x49c7e8,'vertexAngle':_0x2cc754?0x0:_0x49c7e8,'wrapStrategy':_0x474da5[_0x310860(0x209)],'zeroWidthParagraphBreak':(_0x3f8ef4=(_0x12f73a=_0xc187f6[_0x310860(0x2c0)])==null?void 0x0:_0x12f73a[_0x310860(0x289)])==null?_0x4b9697[_0x310860(0x268)]:_0x3f8ef4};if(_0x336948!==void 0x0&&(_0x198c66['verticalAlign']=_0x336948),_0x1ea465[_0x310860(0x30b)]!==void 0x0){var _0x4a01ab;_0x198c66[_0x310860(0x30b)]=_0x1ea465[_0x310860(0x30b)];let _0x532215=(_0x4a01ab=_0x242849[_0x310860(0x3c6)])==null?void 0x0:_0x4a01ab[_0x310860(0x352)];if(_0x532215){for(let _0x35a255 of _0x532215)_0x35a255[_0x310860(0x1f9)]||(_0x35a255[_0x310860(0x1f9)]={}),_0x35a255[_0x310860(0x1f9)][_0x310860(0x30b)]=_0x1ea465['horizontalAlign'];}}return _0x242849[_0x310860(0x240)]={..._0xc187f6,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x21d438,'height':0x1/0x0},'renderConfig':_0x198c66},Oa(_0x242849),Da(_0x242849),_0x242849;}var X=class extends _0x2607a3{constructor(_0x52d12d,_0xb08f){const _0x35b224=_0x130702;super(_0x52d12d,_0xb08f),q(this,_0x35b224(0x1b7),void 0x0),q(this,_0x35b224(0x318),!0x0),q(this,'_drawingType',_0x4fb2bf[_0x35b224(0x206)]),q(this,'isDrawingObject',!0x0),this[_0x35b224(0x1b7)]={..._0xb08f},this['_init']();}['_init'](){this['onTransformChange$']['subscribeEvent'](_0xc381b4=>{const _0x5ce832=_0x10a5;this[_0x5ce832(0x133)](_0xc381b4);});}[_0x130702(0x321)](_0x323a88){const _0x1a4a36=_0x130702;this[_0x1a4a36(0x1b7)]['prstGeom']=_0x323a88;}[_0x130702(0x120)](_0xf078ca){const _0xb3cec8=_0x130702;this[_0xb3cec8(0x1b7)][_0xb3cec8(0x16b)]=_0xf078ca,this[_0xb3cec8(0xc2)](!0x0);}get[_0x130702(0x1e0)](){const _0x1960ba=_0x130702;return this[_0x1960ba(0x1b7)][_0x1960ba(0x1e0)];}get['subUnitId'](){const _0x390e5f=_0x130702;return this[_0x390e5f(0x1b7)][_0x390e5f(0x1be)];}[_0x130702(0x133)](_0x3c5c1d){const _0xa21b8b=_0x130702;if(this[_0xa21b8b(0x1b7)][_0xa21b8b(0x1c4)]==null||!this[_0xa21b8b(0x318)])return;let {width:_0x1a0035,height:_0x29849a}=this,{width:_0xc43188=0x0,height:_0x13d073=0x0}=_0x3c5c1d['preValue'],{left:_0x46a90e=0x0,top:_0x3de93f=0x0,right:_0x35883a=0x0,bottom:_0x235962=0x0}=this[_0xa21b8b(0x1b7)][_0xa21b8b(0x1c4)],_0x33879e=_0x46a90e,_0x25da34=_0x3de93f,_0x14d2ef=_0x35883a,_0x54b0c9=_0x235962,_0x4d5453=!0x1;if(_0xc43188!==0x0&&_0xc43188!==_0x1a0035){let _0x247fea=_0x46a90e/_0xc43188,_0x5abd08=_0x35883a/_0xc43188;_0x33879e=_0x1a0035*_0x247fea,_0x14d2ef=_0x1a0035*_0x5abd08,_0x4d5453=!0x0;}if(_0x13d073!==0x0&&_0x13d073!==_0x29849a){let _0x2f37dd=_0x3de93f/_0x13d073,_0x55839a=_0x235962/_0x13d073;_0x25da34=_0x29849a*_0x2f37dd,_0x54b0c9=_0x29849a*_0x55839a,_0x4d5453=!0x0;}_0x4d5453&&this['setSrcRect']({'left':_0x33879e,'top':_0x25da34,'right':_0x14d2ef,'bottom':_0x54b0c9});}[_0x130702(0x3fd)](_0x2e4a61){const _0x55d556=_0x130702;this[_0x55d556(0x1b7)][_0x55d556(0x1c4)]=_0x2e4a61,this[_0x55d556(0xc2)](!0x0);}[_0x130702(0x33d)](_0x467bcb){const _0x446cd8=_0x130702;this[_0x446cd8(0x1b7)][_0x446cd8(0x271)]=_0x467bcb,this['makeDirty'](!0x0);}set['transform'](_0x3c28a5){const _0xc683ef=_0x130702;this[_0xc683ef(0x251)]=_0x3c28a5;}get['transform'](){const _0x10cca0=_0x130702;this[_0x10cca0(0x251)]||this[_0x10cca0(0x31d)]();let _0x36d867=this[_0x10cca0(0x251)][_0x10cca0(0x1d5)]();return this[_0x10cca0(0x31a)](_0x36d867);}get['shapeModel'](){const _0x1dcef6=_0x130702;return this[_0x1dcef6(0x1b7)]['shapeModel'];}get['shapeId'](){const _0x5a49a5=_0x130702;return this[_0x5a49a5(0x1b7)]['shapeId'];}get['classType'](){const _0x2b2b11=_0x130702;return _0x439b82[_0x2b2b11(0x2a1)];}[_0x130702(0x276)](_0xd5d4ad,_0x4c9a0e,_0x2f7e53,_0x12d7e1){const _0x4937fb=_0x130702;let _0x128a6c=this[_0x4937fb(0x1b7)]['shapeModel'];if(!_0x128a6c||!_0x4c9a0e)return;let _0x1af39c=_0x2f7e53==null?this['width']:_0x2f7e53,_0x2a5db7=_0x12d7e1==null?this[_0x4937fb(0x170)]:_0x12d7e1,_0x3e6158={'shapeType':_0x128a6c[_0x4937fb(0x313)](),'width':_0x1af39c,'height':_0x2a5db7},_0x54a0d0={'renderMode':_0x1210eb[_0x4937fb(0x217)],'oKey':this[_0x4937fb(0x24f)],'image':this['_props'][_0x4937fb(0x271)],'angle':this[_0x4937fb(0x382)]};_0x128a6c[_0x4937fb(0xf3)](_0x3e6158),_0xd5d4ad['save']();let _0x56e67d={'top':0x0,'left':0x0,'width':_0x1af39c,'height':_0x2a5db7};_0x128a6c[_0x4937fb(0x2a2)](_0xd5d4ad,_0x56e67d,_0x54a0d0),_0xd5d4ad[_0x4937fb(0x34e)]();let _0x4d10c8=_0x128a6c[_0x4937fb(0xb6)](),_0x43d78f=_0x128a6c[_0x4937fb(0x150)](_0x56e67d),_0xaea462=_0x128a6c['isLineShape']();if(_0x4d10c8&&_0x43d78f&&!_0xaea462){_0xd5d4ad[_0x4937fb(0x38a)](),this['getState']()['flipX']&&_0xd5d4ad[_0x4937fb(0x3cf)](-0x1,0x1);let _0x56f2eb=_0x1af39c/0x2,_0x4a96d9=_0x2a5db7/0x2;_0xd5d4ad['translate'](-_0x56f2eb,-_0x4a96d9),_0xd5d4ad[_0x4937fb(0x19e)](),this[_0x4937fb(0x112)](_0xd5d4ad,_0x4d10c8,_0x43d78f),_0xd5d4ad[_0x4937fb(0x34e)]();}}[_0x130702(0x2ff)](_0x42a01b){}[_0x130702(0x112)](_0x40867d,_0x49817e,_0x41b67c){const _0x2f5f18=_0x130702;this[_0x2f5f18(0x1b7)]['isEditing']||(_0x2f5f18(0x26c)in _0x49817e&&_0x49817e[_0x2f5f18(0x26c)]===!0x1?this['_drawSimpleText'](_0x40867d,_0x49817e,_0x41b67c):this[_0x2f5f18(0x355)](_0x40867d,_0x49817e,_0x41b67c));}['_drawSimpleText'](_0x55dffa,_0x1cdc7,_0x14333b){}[_0x130702(0x355)](_0x1f1a42,_0x278f45,_0x4a9725){const _0x4ef518=_0x130702;var _0x19712c,_0x487c35;let _0x325a44=this[_0x4ef518(0x1b7)][_0x4ef518(0x300)];if(!_0x278f45['dataModel']||!_0x325a44){_0x325a44||console[_0x4ef518(0x2d9)](_0x4ef518(0x401));return;}let _0x512f4c=_0x278f45[_0x4ef518(0xee)],_0xbd19cb=_0x512f4c[_0x4ef518(0x2fc)],_0x5a9dd1=(_0x19712c=_0x512f4c['va'])==null?_0x19072b[_0x4ef518(0x286)]:_0x19712c,_0x3beb91=(_0x487c35=_0x512f4c['ha'])==null?_0x4264f8[_0x4ef518(0x343)]:_0x487c35;if(!_0xbd19cb)return;let _0x320d6d=_0x278f45[_0x4ef518(0x175)],_0x5b7116=new _0x437d59(ka(_0xbd19cb,{'isHorizontal':_0x320d6d!==!0x1,'textRect':_0x4a9725,'verticalAlign':_0x5a9dd1,'horizontalAlign':_0x3beb91})),_0x1f022f=new _0x3b87fd(_0x5b7116),_0x45bec2=_0x521df0[_0x4ef518(0x198)](_0x1f022f,_0x325a44);_0x45bec2[_0x4ef518(0x225)]();let _0x56f1bf=new _0x5a0da0(_0x4ef518(0x1eb)+this[_0x4ef518(0x24f)],_0x45bec2,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x56f1bf[_0x4ef518(0x30d)](_0x4a9725[_0x4ef518(0x368)],_0x4a9725[_0x4ef518(0x170)]),_0x1f1a42[_0x4ef518(0x38a)](),_0x1f1a42['translateWithPrecision'](_0x4a9725['left'],_0x4a9725[_0x4ef518(0x237)]),_0x1f1a42[_0x4ef518(0x19e)](),_0x1f1a42[_0x4ef518(0x10c)](0x0,0x0,_0x4a9725[_0x4ef518(0x368)],_0x4a9725[_0x4ef518(0x170)]),_0x1f1a42[_0x4ef518(0x3d6)](),_0x56f1bf[_0x4ef518(0x21d)](_0x1f1a42),_0x1f1a42[_0x4ef518(0x34e)](),_0x56f1bf['dispose'](),_0x45bec2[_0x4ef518(0x349)](),_0x1f022f[_0x4ef518(0x349)](),_0x5b7116[_0x4ef518(0x349)]();}[_0x130702(0x2a2)](_0x47ec2a,_0x4ca898,_0x150dcd=!0x1){const _0x400a4e=_0x130702;if(!this[_0x400a4e(0xce)])return this[_0x400a4e(0xc2)](!0x1),this;let {width:_0x415e51,height:_0x414358,left:_0x4a75fb,top:_0x7306d9}=this,_0x54cacc=this[_0x400a4e(0x21f)]();if(_0x415e51=_0x54cacc['width'],_0x414358=_0x54cacc[_0x400a4e(0x170)],_0x4a75fb=_0x54cacc['left'],_0x7306d9=_0x54cacc[_0x400a4e(0x237)],this[_0x400a4e(0x13d)](_0x4ca898)){let {top:_0x2ff241,left:_0x4ab7dc,bottom:_0x3081b4,right:_0x41360d}=_0x4ca898[_0x400a4e(0x258)];if(_0x415e51+this[_0x400a4e(0x2c6)]+_0x4a75fb<_0x4ab7dc||_0x41360d<_0x4a75fb||_0x414358+this[_0x400a4e(0x2c6)]+_0x7306d9<_0x2ff241||_0x3081b4<_0x7306d9)return this;}let _0x1b549c=_0x4a75fb+_0x415e51/0x2,_0x5555f4=_0x7306d9+_0x414358/0x2,_0x5979d8=this[_0x400a4e(0xe8)][_0x400a4e(0x3d2)]();if(this[_0x400a4e(0x1b7)][_0x400a4e(0x16b)]){let _0xe20a0f=this[_0x400a4e(0x3d4)](),_0x2689e2=new _0x1ecdbe();_0x2689e2[_0x400a4e(0xc4)]({..._0xe20a0f}),_0x5979d8=_0x2689e2[_0x400a4e(0x3d2)]();}return _0x47ec2a['save'](),this[_0x400a4e(0x1b7)][_0x400a4e(0x255)][_0x400a4e(0x182)]===!0x0||_0x47ec2a[_0x400a4e(0xe8)](_0x5979d8[0x0],_0x5979d8[0x1],_0x5979d8[0x2],_0x5979d8[0x3],_0x1b549c,_0x5555f4),this[_0x400a4e(0x276)](_0x47ec2a,_0x4ca898,_0x415e51,_0x414358),_0x47ec2a['restore'](),this[_0x400a4e(0xc2)](!0x1),this;}['getInverseCoord'](_0x26eec3){const _0x23a6ca=_0x130702;let {left:_0x27e756,top:_0x506e0f,width:_0x2cba34,height:_0x4596a7}=this[_0x23a6ca(0x21f)](),_0x1dacac=this[_0x23a6ca(0xe8)][_0x23a6ca(0x3d2)](),_0xe6fbbf=_0x27e756+_0x2cba34/0x2,_0x2918c6=_0x506e0f+_0x4596a7/0x2,_0x387983=new _0x1ecdbe([_0x1dacac[0x0],_0x1dacac[0x1],_0x1dacac[0x2],_0x1dacac[0x3],_0xe6fbbf,_0x2918c6]),_0x21845c=this[_0x23a6ca(0x19c)]();return(this['isInGroup']&&(_0x21845c==null?void 0x0:_0x21845c[_0x23a6ca(0x26a)])===_0x439b82[_0x23a6ca(0x260)]?_0x21845c[_0x23a6ca(0x253)][_0x23a6ca(0xf5)](_0x387983):_0x387983)[_0x23a6ca(0x2fd)]()[_0x23a6ca(0x2b3)](_0x26eec3);}[_0x130702(0xb7)](_0xa73447){const _0x196bf7=_0x130702;let {left:_0x3b2935,top:_0x2ed7d8,width:_0x34d5f5,height:_0x2a9b06}=this[_0x196bf7(0x21f)](),_0x241b41=_0x3b2935+_0x34d5f5/0x2,_0x353373=_0x2ed7d8+_0x2a9b06/0x2,_0x4b7076=this[_0x196bf7(0xe8)][_0x196bf7(0x3d2)](),_0x468639=new _0x1ecdbe([_0x4b7076[0x0],_0x4b7076[0x1],_0x4b7076[0x2],_0x4b7076[0x3],_0x241b41,_0x353373]),_0x75af15=this[_0x196bf7(0x19c)](),_0x1e5c25=(this['isInGroup']&&(_0x75af15==null?void 0x0:_0x75af15[_0x196bf7(0x26a)])===_0x439b82['GROUP']?_0x75af15[_0x196bf7(0x253)][_0x196bf7(0xf5)](_0x468639):_0x468639)['invert']()[_0x196bf7(0x2b3)](_0xa73447),_0x45b31b=_0x34d5f5/0x2,_0x318f9b=_0x2a9b06/0x2,_0xe2bcec=this[_0x196bf7(0x1b7)][_0x196bf7(0x255)];return _0xe2bcec&&_0xe2bcec['isLineShape']()?_0xe2bcec['isHitLine'](_0x1e5c25['x'],_0x1e5c25['y'],_0x34d5f5,_0x2a9b06):_0x1e5c25['x']>=-_0x45b31b-this[_0x196bf7(0x2c6)]/0x2&&_0x1e5c25['x']<=_0x45b31b+this[_0x196bf7(0x2c6)]/0x2&&_0x1e5c25['y']>=-_0x318f9b-this[_0x196bf7(0x2c6)]/0x2&&_0x1e5c25['y']<=_0x318f9b+this[_0x196bf7(0x2c6)]/0x2;}['dispose'](){const _0x3ffc13=_0x130702;this['_props'][_0x3ffc13(0x255)]=null,super[_0x3ffc13(0x349)]();}};function Aa(_0x1082aa){const _0x361826=_0x130702;return _0x1082aa['behindText']===!0x0||_0x1082aa[_0x361826(0x1bb)]===_0x4b9697['TRUE']||_0x1082aa[_0x361826(0x333)]===_0x1c131b[_0x361826(0x1db)]&&_0x1082aa[_0x361826(0x20a)]===_0x4b9697[_0x361826(0x268)]?_0x149c8b-0x1:_0x3ebd69;}let Z=class extends _0x3fcc5c{constructor(_0x5ae251,_0x570b24,_0xd4f17b,_0x17a918,_0x535547,_0x1e6b77){const _0x43b1c0=_0x130702;super(),this['_drawingManagerService']=_0x5ae251,this[_0x43b1c0(0x1b0)]=_0x570b24,this[_0x43b1c0(0x326)]=_0xd4f17b,this[_0x43b1c0(0x398)]=_0x17a918,this[_0x43b1c0(0x3d8)]=_0x535547,this['_shapeTextEditingService']=_0x1e6b77;}[_0x130702(0x108)](_0x294c1d,_0x100a3f){const _0x274922=_0x130702;let {transform:_0x5bd7ba,drawingType:_0x227e01,srcRect:_0x50081d,prstGeom:_0x2191d5,groupId:_0x2268f9,unitId:_0x28f8cd,subUnitId:_0x28d99e,drawingId:_0x374235,isMultiTransform:_0x5bbed0,transforms:_0x24f2a8,hidden:_0x26ed96}=_0x294c1d;if(_0x227e01!==_0x4fb2bf['DRAWING_SHAPE']||!this[_0x274922(0x1c9)][_0x274922(0xe0)]()||_0x5bd7ba==null)return;let _0x50ccd3=_0x5bbed0&&_0x24f2a8?_0x24f2a8:[_0x5bd7ba],_0x4a374f=[];for(let _0x3bfe91 of _0x50ccd3){let {left:_0x5d10b4,top:_0x181efd,width:_0x4c0c4c,height:_0x521c39,angle:_0x4894ba,flipX:_0x3d591e,flipY:_0x2fe7af,skewX:_0x26e1a8,skewY:_0x1ecfa6}=_0x3bfe91,_0x462c3f=_0x50ccd3[_0x274922(0x21c)](_0x3bfe91),_0x4371ab=_0x1d7f86({'unitId':_0x28f8cd,'subUnitId':_0x28d99e,'drawingId':_0x374235},_0x5bbed0?_0x462c3f:void 0x0),_0x2fd332=_0x100a3f['getObjectIncludeInGroup'](_0x4371ab);if(_0x2fd332!=null){_0x2fd332[_0x274922(0x3a1)]({'left':_0x5d10b4,'top':_0x181efd,'width':_0x4c0c4c,'height':_0x521c39,'angle':_0x4894ba,'flipX':_0x3d591e,'flipY':_0x2fe7af,'skewX':_0x26e1a8,'skewY':_0x1ecfa6});continue;}let _0x43bd02=this['_drawingManagerService']['getDrawingOrder'](_0x28f8cd,_0x28d99e),_0x46c456=_0x43bd02[_0x274922(0x21c)](_0x374235);if(_0x100a3f[_0x274922(0xc0)](_0x4371ab)||!this[_0x274922(0x1c9)][_0x274922(0xe0)]())continue;let _0x2bd58b=this['_docsShapeService'][_0x274922(0x1bc)](_0x28f8cd,_0x28d99e,_0x374235);if(!_0x2bd58b)continue;let _0x2ff4cb=new X(_0x4371ab,{..._0x1757f3(_0x2bd58b[_0x274922(0x313)]())?{..._0x3bfe91,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0x3bfe91},'zIndex':_0x46c456===-0x1?_0x43bd02[_0x274922(0x1c3)]-0x1:_0x46c456,'shapeModel':_0x2bd58b,'localeService':this[_0x274922(0x326)],'shapeId':_0x374235,'unitId':_0x28f8cd,'subUnitId':_0x28d99e,'visible':_0x26ed96!==!0x0});this['disposeWithMe'](_0x5d41e1(_0x2ff4cb[_0x274922(0xbd)]['subscribeEvent']((_0x1fd811,_0x3fff5c)=>{const _0x2a2b48=_0x274922;_0x2bd58b['isLineShape']()||(this[_0x2a2b48(0x124)][_0x2a2b48(0x120)]({'visible':!0x0,'unitId':_0x28f8cd,'subUnitId':_0x28d99e,'shapeId':_0x374235,'shapeKey':_0x2ff4cb[_0x2a2b48(0x24f)]}),_0x3fff5c[_0x2a2b48(0x3ac)]());}))),_0x100a3f[_0x274922(0x1b3)](_0x2ff4cb,Aa(_0x294c1d)),this[_0x274922(0x1c9)][_0x274922(0x249)]()&&_0x100a3f[_0x274922(0x109)](_0x2ff4cb),_0x2268f9&&_0x40ac00({'drawingId':_0x2268f9,'unitId':_0x28f8cd,'subUnitId':_0x28d99e},_0x2ff4cb,_0x100a3f,this[_0x274922(0x1c9)]),_0x2191d5!=null&&_0x2ff4cb[_0x274922(0x321)](_0x2191d5),_0x50081d!=null&&_0x2ff4cb[_0x274922(0x3fd)](_0x50081d),this['_loadShapePictureFill'](_0x2ff4cb,_0x2bd58b['getShapeData']()),_0x4a374f[_0x274922(0x3f5)](_0x2ff4cb);}return _0x4a374f;}[_0x130702(0x2ad)](_0x31abc2){const _0x5b7f9b=_0x130702;let _0x33e2f7=_0x31abc2[_0x5b7f9b(0x255)][_0x5b7f9b(0x12c)](),_0x532c34=_0x33e2f7[_0x5b7f9b(0x113)];if(!_0x532c34||_0x532c34['fillType']!==_0x287024[_0x5b7f9b(0x21e)]||!_0x532c34[_0x5b7f9b(0x13b)]){_0x31abc2[_0x5b7f9b(0x33d)](void 0x0);return;}this[_0x5b7f9b(0x304)](_0x31abc2,_0x33e2f7);}[_0x130702(0x304)](_0x1629cf,_0x23e0c7){const _0x341c21=_0x130702;var _0x4c9242;let _0x1b928e=_0x23e0c7[_0x341c21(0x113)];if(!_0x1b928e||_0x1b928e[_0x341c21(0x1f6)]!==_0x287024[_0x341c21(0x21e)]||!_0x1b928e[_0x341c21(0x13b)])return;let _0x2bc3eb=_0x1b928e[_0x341c21(0x13b)],_0x5a0625=(_0x4c9242=_0x1b928e['fillImageSourceType'])==null?_0x27109d[_0x341c21(0x3e0)]:_0x4c9242,_0x11a0a5=this[_0x341c21(0x398)]['getImageSourceCache'](_0x2bc3eb,_0x5a0625);if(_0x11a0a5){_0x1629cf[_0x341c21(0x33d)](_0x11a0a5);return;}this[_0x341c21(0x238)](_0x1629cf,_0x2bc3eb,_0x5a0625);}async[_0x130702(0x238)](_0x277987,_0x5caa8a,_0x16c178){const _0x2f8177=_0x130702;let _0x3c5d4e;try{if(_0x16c178===_0x27109d[_0x2f8177(0x1ef)])_0x3c5d4e=await this[_0x2f8177(0x398)][_0x2f8177(0xf4)](_0x5caa8a);else{if(_0x16c178===_0x27109d[_0x2f8177(0x3e0)])try{_0x3c5d4e=await this['_urlImageService']['getImage'](_0x5caa8a);}catch{_0x3c5d4e=_0x5caa8a;}else _0x3c5d4e=_0x5caa8a;}}catch(_0x2d1a8d){console[_0x2f8177(0x3ef)](_0x2f8177(0xd8),_0x2d1a8d);return;}let _0x565ca3=new window[(_0x2f8177(0x20d))]();_0x565ca3['onload']=()=>{const _0x2b241f=_0x2f8177;this[_0x2b241f(0x398)]['addImageSourceCache'](_0x5caa8a,_0x16c178,_0x565ca3),_0x277987['setFillImage'](_0x565ca3);},_0x565ca3[_0x2f8177(0xe4)]=()=>{const _0x11d968=_0x2f8177;console['error'](_0x11d968(0xfe),_0x5caa8a);},_0x565ca3['src']=_0x3c5d4e;}};Z=W([U(0x0,_0x5c72b9),U(0x1,_0x33309c(_0x2118c4)),U(0x2,_0x33309c(_0x470e84)),U(0x3,_0xf77436),U(0x4,_0x1dfb93),U(0x5,_0x33309c(J))],Z);let Q=class extends _0x3fcc5c{constructor(_0x2614f4,_0x208963,_0x3ca4b6,_0x49705d){const _0x37852c=_0x130702;super(),this['_commandService']=_0x2614f4,this[_0x37852c(0x19a)]=_0x208963,this['_drawingManagerService']=_0x3ca4b6,this['_docDrawingShapeRenderController']=_0x49705d,this[_0x37852c(0x3db)]();}[_0x130702(0x3db)](){const _0x558cd8=_0x130702;this[_0x558cd8(0x34a)](this['_drawingManagerService'][_0x558cd8(0xba)][_0x558cd8(0x144)](_0x15dffc=>this[_0x558cd8(0x39b)](_0x15dffc))),this[_0x558cd8(0x34a)](this['_drawingManagerService'][_0x558cd8(0x119)][_0x558cd8(0x144)](_0x22b1df=>{const _0x5e9773=_0x558cd8;_0x22b1df['forEach'](_0x516cb9=>this[_0x5e9773(0x2b5)](_0x516cb9));})),this[_0x558cd8(0x34a)](this['_commandService'][_0x558cd8(0x222)](_0x2b4bbf=>{if(_0x2b4bbf['id']!==_0x5982e6['id'])return;let {unitId:_0x3da9c8,shapeId:_0x483ac9}=_0x2b4bbf['params'];this['_refreshShapeData']({'unitId':_0x3da9c8,'subUnitId':_0x3da9c8,'drawingId':_0x483ac9});}));}[_0x130702(0x3ad)](_0x49ad14,_0x3404e7){const _0x3bfea8=_0x130702;let _0x36a12a=this[_0x3bfea8(0x3ab)](_0x49ad14[_0x3bfea8(0x1e0)]),_0x39299f=_0x1d7f86(_0x49ad14),_0x1cb161=_0x36a12a==null?void 0x0:_0x36a12a[_0x3bfea8(0x31b)][_0x3bfea8(0xc0)](_0x39299f);_0x1cb161==null||_0x1cb161[_0x3bfea8(0x33d)](_0x3404e7);}[_0x130702(0x39b)](_0x5c2c9d){_0x5c2c9d['forEach'](_0x51b606=>{const _0x165901=_0x10a5;var _0x1b2fec;let _0x142118=this[_0x165901(0x3ab)](_0x51b606[_0x165901(0x1e0)]);if(!_0x142118)return;let _0x4c5503=this[_0x165901(0x1c9)][_0x165901(0x204)](_0x51b606);(_0x4c5503==null?void 0x0:_0x4c5503[_0x165901(0x37b)])===_0x4fb2bf[_0x165901(0x206)]&&(_0x1757f3((_0x1b2fec=_0x4c5503[_0x165901(0x1b9)])==null?void 0x0:_0x1b2fec[_0x165901(0x195)])&&_0x4c5503[_0x165901(0xe8)]&&(_0x4c5503[_0x165901(0xe8)]={..._0x4c5503[_0x165901(0xe8)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}),this[_0x165901(0x1c9)][_0x165901(0x1ed)]([_0x4c5503]),this[_0x165901(0x3bc)][_0x165901(0x108)](_0x4c5503,_0x142118['scene']));});}[_0x130702(0x2b5)](_0x53095e){const _0x2302da=_0x130702;let _0xfba3c7=this[_0x2302da(0x1c9)][_0x2302da(0x204)](_0x53095e);if((_0xfba3c7==null?void 0x0:_0xfba3c7['drawingType'])!==_0x4fb2bf['DRAWING_SHAPE'])return;let _0x538948=this['_getSceneByUnitId'](_0x53095e[_0x2302da(0x1e0)]);if(!_0x538948||_0xfba3c7[_0x2302da(0xe8)]==null)return;let _0x4f0a64=_0x1d7f86(_0x53095e),_0x5672eb=_0x538948[_0x2302da(0x31b)][_0x2302da(0xc0)](_0x4f0a64);_0x5672eb&&(_0x5672eb['setSrcRect'](_0xfba3c7['srcRect']),_0x5672eb['setPrstGeom'](_0xfba3c7[_0x2302da(0xef)]),_0x5672eb[_0x2302da(0xc2)](!0x0));}['_refreshShapeData'](_0x346b19){const _0x39996f=_0x130702;let _0x28df9c=this[_0x39996f(0x3ab)](_0x346b19['unitId']);if(!_0x28df9c)return;let _0x225c22=_0x1d7f86(_0x346b19),_0x5585b6=_0x28df9c[_0x39996f(0x31b)][_0x39996f(0xc0)](_0x225c22);_0x5585b6&&(this[_0x39996f(0x3bc)][_0x39996f(0x2ad)](_0x5585b6),_0x5585b6['makeDirty'](!0x0));}[_0x130702(0x3ab)](_0x21a00e){const _0x48874e=_0x130702;if(_0x21a00e==null)return null;let _0x2f1631=this[_0x48874e(0x19a)][_0x48874e(0x16a)](_0x21a00e),_0x22d39c=_0x2f1631==null?void 0x0:_0x2f1631['scene'];return _0x22d39c==null?null:{'scene':_0x22d39c};}};Q=W([U(0x0,_0x56458c),U(0x1,_0x446451),U(0x2,_0x5c72b9),U(0x3,_0x33309c(Z))],Q);function ja(){const _0x19e665=_0x130702;let _0x4a8ad0=_0x3ffba1(_0x5c72b9),[_0x442749,_0x5d6311]=_0x510af1(_0x4a8ad0[_0x19e665(0x2a7)]());return _0x64dd7b(()=>{const _0x303720=_0x19e665;let _0x14b601=_0x4a8ad0['focus$'][_0x303720(0x144)](_0x2c6866=>{_0x5d6311(_0x2c6866);});return()=>{const _0x32d325=_0x303720;_0x14b601[_0x32d325(0x3cd)]();};},[]),_0x442749[_0x19e665(0x1c3)]===0x0?null:_0x429252(_0x19e665(0x3e4),{'children':_0x5376f4('div',{'className':_0x19e665(0x154),'children':[_0x429252(_0x1868a1,{'drawings':_0x442749,'hasCropper':!0x1}),_0x429252(_0x43e3a5,{'drawings':_0x442749}),_0x429252(_0x51237b,{'drawings':_0x442749})]})});}function Ma(_0x1b2ddb){let {unitId:_0x11f938,subUnitId:_0x28173d,shapeId:_0x5dda5b}=_0x1b2ddb,_0x44c665=_0x3ffba1(_0x56458c),_0x142966=_0x3ffba1(Q);return _0x429252(_0x14ea07,{..._0x1b2ddb,'positionEditor':_0x429252(ja,{}),'onUpdateShapeData':(_0x3701f8,_0x2c9ce9)=>{_a(_0x44c665,_0x11f938,_0x28173d,_0x5dda5b,_0x3701f8,_0x2c9ce9);},'onUpdateLineShapeData':(_0x518f24,_0x466045)=>{va(_0x44c665,_0x11f938,_0x28173d,_0x5dda5b,_0x518f24,_0x466045);},'onUpdateShapeFillImage':_0x3ead3d=>{const _0x4f94e9=_0x10a5;_0x142966[_0x4f94e9(0x3ad)]({'unitId':_0x11f938,'subUnitId':_0x28173d,'drawingId':_0x5dda5b},_0x3ead3d);}});}const Na=_0x220ba1(()=>{const _0xee1253=_0x130702;let _0x2dc126=_0x3ffba1(J),_0x4dfdb5=_0x3ffba1(_0x2118c4),_0x5e48c7=_0x3ffba1(_0x5c72b9),_0x51f2a5=_0x3ffba1(_0x56458c);return _0x429252(_0x22e3bd,{'adapter':_0x4f8589(()=>({'getShapeModel':(_0x2dc64d,_0x4e4320,_0x2ada1e)=>_0x4dfdb5['getShapeModel'](_0x2dc64d,_0x4e4320,_0x2ada1e),'getDrawingTransform':(_0x38a80c,_0x5d5a02,_0xcb6c3c)=>{const _0x165368=_0x10a5;let _0x52d085=_0x5e48c7[_0x165368(0x204)]({'unitId':_0x38a80c,'subUnitId':_0x5d5a02,'drawingId':_0xcb6c3c});return _0x52d085==null?void 0x0:_0x52d085[_0x165368(0xe8)];},'updateShapeText':({unitId:_0x23028f,shapeId:_0x122177,shapeText:_0xa98632,oldShapeText:_0x2d0692})=>{const _0x101057=_0x10a5;_0x51f2a5[_0x101057(0x192)](_0x47f49e['id'],{'unitId':_0x23028f,'shapeId':_0x122177,'shapeData':{'shapeText':_0xa98632},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2d0692}}});}}),[_0x51f2a5,_0x4dfdb5,_0x5e48c7]),'editingService':_0x2dc126,'editorUnitId':ia,'positionOptions':_0x4f8589(()=>({'viewportKeys':{'main':_0x145fa5[_0xee1253(0x2fa)]}}),[])});});let Pa=class extends _0x3fcc5c{constructor(_0x29142e,_0x3f4fae){const _0x31e712=_0x130702;super(),this[_0x31e712(0x1fa)]=_0x29142e,this['_iconManager']=_0x3f4fae,this[_0x31e712(0x200)](),this[_0x31e712(0x3fa)]();}[_0x130702(0x200)](){const _0x3f0ec6=_0x130702;this[_0x3f0ec6(0x34a)](this[_0x3f0ec6(0x1ac)]['register']({'ShapeAccentBorderCallout1Icon':_0x3bd578,'ShapeAccentBorderCallout2Icon':_0x46e8a2,'ShapeAccentBorderCallout3Icon':_0x2c93a1,'ShapeAccentCallout1Icon':_0x1b8738,'ShapeAccentCallout2Icon':_0x41da72,'ShapeAccentCallout3Icon':_0x553e54,'ShapeActionButtonBackPreviousIcon':_0x33d74e,'ShapeActionButtonBeginningIcon':_0x5c053a,'ShapeActionButtonBlankIcon':_0x566c39,'ShapeActionButtonDocumentIcon':_0x45c79f,'ShapeActionButtonEndIcon':_0x1d40d1,'ShapeActionButtonForwardNextIcon':_0x62e239,'ShapeActionButtonHelpIcon':_0x5f2f95,'ShapeActionButtonHomeIcon':_0x5b4664,'ShapeActionButtonInformationIcon':_0x430718,'ShapeActionButtonMovieIcon':_0x423acb,'ShapeActionButtonReturnIcon':_0x2d8725,'ShapeActionButtonSoundIcon':_0x13e62f,'ShapeArcIcon':_0xf2017f,'ShapeBentArrowIcon':_0xd41b74,'ShapeBentConnector3Arrow1Icon':_0x11ab6d,'ShapeBentConnector3Arrow2Icon':_0x336889,'ShapeBentConnector3Icon':_0x4b503a,'ShapeBentUpArrowIcon':_0x680337,'ShapeBevelIcon':_0x25a8b4,'ShapeBlockArcIcon':_0x3c1cb5,'ShapeBorderCallout1Icon':_0x1fb181,'ShapeBorderCallout2Icon':_0x3882c8,'ShapeBorderCallout3Icon':_0x21b6f1,'ShapeBracePairIcon':_0x474dbd,'ShapeBracketPairIcon':_0x439b49,'ShapeCallout1Icon':_0x560f89,'ShapeCallout2Icon':_0x3b0c27,'ShapeCallout3Icon':_0x322f93,'ShapeCanIcon':_0x509114,'ShapeChartPlusIcon':_0x349863,'ShapeChartStarIcon':_0x52a524,'ShapeChartXIcon':_0x54d52c,'ShapeChevronIcon':_0x139e2a,'ShapeChordIcon':_0x2132d4,'ShapeCircularArrowIcon':_0x2aefd3,'ShapeCloudCalloutIcon':_0x46f501,'ShapeCloudIcon':_0x9b0878,'ShapeCornerIcon':_0x15256f,'ShapeCornerTabsIcon':_0x3b84fc,'ShapeCubeIcon':_0x1b4cc1,'ShapeCurvedConnector3Arrow1Icon':_0x49ab0a,'ShapeCurvedConnector3Arrow2Icon':_0x2f11a3,'ShapeCurvedConnector3Icon':_0xdcc992,'ShapeCurvedDownArrowIcon':_0x742753,'ShapeCurvedLeftArrowIcon':_0x41f4a9,'ShapeCurvedRightArrowIcon':_0x17c010,'ShapeCurvedUpArrowIcon':_0x2598eb,'ShapeDecagonIcon':_0x16a370,'ShapeDiagStripeIcon':_0xd0e78a,'ShapeDiamondIcon':_0xa3150e,'ShapeDodecagonIcon':_0x592ea2,'ShapeDonutIcon':_0x47dd32,'ShapeDoubleWaveIcon':_0x5e7ac2,'ShapeDownArrowCalloutIcon':_0x20ab4a,'ShapeDownArrowIcon':_0x4c8fd3,'ShapeEllipseIcon':_0x353f25,'ShapeEllipseRibbon2Icon':_0x23c1f5,'ShapeEllipseRibbonIcon':_0x941f05,'ShapeFlowChartAlternateProcessIcon':_0x3f69bf,'ShapeFlowChartCollateIcon':_0x448238,'ShapeFlowChartConnectorIcon':_0xc3767b,'ShapeFlowChartDecisionIcon':_0x55b6f9,'ShapeFlowChartDelayIcon':_0x270a2c,'ShapeFlowChartDisplayIcon':_0x2536f0,'ShapeFlowChartDocumentIcon':_0x1f1e50,'ShapeFlowChartExtractIcon':_0x362246,'ShapeFlowChartInputOutputIcon':_0xfada14,'ShapeFlowChartInternalStorageIcon':_0x5588e9,'ShapeFlowChartMagneticDiskIcon':_0x24da01,'ShapeFlowChartMagneticDrumIcon':_0x335cfb,'ShapeFlowChartMagneticTapeIcon':_0x3a1bef,'ShapeFlowChartManualInputIcon':_0x117589,'ShapeFlowChartManualOperationIcon':_0x327bad,'ShapeFlowChartMergeIcon':_0x248408,'ShapeFlowChartMultidocumentIcon':_0x507e38,'ShapeFlowChartOfflineStorageIcon':_0x276fd1,'ShapeFlowChartOffpageConnectorIcon':_0x292a2f,'ShapeFlowChartOnlineStorageIcon':_0x342818,'ShapeFlowChartOrIcon':_0x527473,'ShapeFlowChartPredefinedProcessIcon':_0x1a1711,'ShapeFlowChartPreparationIcon':_0x11b262,'ShapeFlowChartProcessIcon':_0x54f913,'ShapeFlowChartPunchedCardIcon':_0x32a2a3,'ShapeFlowChartPunchedTapeIcon':_0x16b999,'ShapeFlowChartSortIcon':_0x1cc378,'ShapeFlowChartSummingJunctionIcon':_0x3e8e22,'ShapeFlowChartTerminatorIcon':_0xabff00,'ShapeFolderCornerIcon':_0x41d0c0,'ShapeFrameIcon':_0xa58595,'ShapeFunnelIcon':_0x34b8c3,'ShapeGear6Icon':_0x56bbb0,'ShapeGear9Icon':_0x4b5133,'ShapeHalfFrameIcon':_0x404bbb,'ShapeHeartIcon':_0x1e2df3,'ShapeHeptagonIcon':_0x489f28,'ShapeHexagonIcon':_0x420660,'ShapeHomePlateIcon':_0x1da8fe,'ShapeHorizontalScrollIcon':_0x4134e3,'ShapeIrregularSeal1Icon':_0x57b6a4,'ShapeIrregularSeal2Icon':_0x2f6663,'ShapeLeftArrowCalloutIcon':_0x1fe9a6,'ShapeLeftArrowIcon':_0x5278ff,'ShapeLeftBraceIcon':_0x34d5d3,'ShapeLeftBracketIcon':_0x45de1f,'ShapeLeftCircularArrowIcon':_0x551875,'ShapeLeftRightArrowCalloutIcon':_0x444744,'ShapeLeftRightArrowIcon':_0x24c350,'ShapeLeftRightCircularArrowIcon':_0x1afc1c,'ShapeLeftRightRibbonIcon':_0x322e6a,'ShapeLeftRightUpArrowIcon':_0x59716e,'ShapeLeftUpArrowIcon':_0x1d17f8,'ShapeLightningBoltIcon':_0x2f7893,'ShapeLineIcon':_0x44b31b,'ShapeLineInvIcon':_0x2b9270,'ShapeMathDivideIcon':_0x3b0f96,'ShapeMathEqualIcon':_0x8929d6,'ShapeMathMinusIcon':_0x3980f2,'ShapeMathMultiplyIcon':_0x2b2daa,'ShapeMathNotEqualIcon':_0x4baa65,'ShapeMathPlusIcon':_0x33374c,'ShapeMoonIcon':_0x181d61,'ShapeNoSmokingIcon':_0x55fb8e,'ShapeNonIsoscelesTrapezoidIcon':_0x19e869,'ShapeNotchedRightArrowIcon':_0x3f3ba3,'ShapeOctagonIcon':_0x561daf,'ShapeParallelogramIcon':_0x5a2a0b,'ShapePentagonIcon':_0x243fa6,'ShapePieIcon':_0x436849,'ShapePieWedgeIcon':_0x4085c8,'ShapePlaqueIcon':_0x2c7338,'ShapePlaqueTabsIcon':_0x31f888,'ShapePlusIcon':_0x1dfa59,'ShapeQuadArrowCalloutIcon':_0x3d02ab,'ShapeQuadArrowIcon':_0x10a727,'ShapeRectIcon':_0xad7084,'ShapeRectTextboxHorizontalIcon':_0x1e8ef4,'ShapeRectTextboxVerticalIcon':_0x7c1a1d,'ShapeRibbon2Icon':_0x39ab76,'ShapeRibbonIcon':_0x32c30e,'ShapeRightArrowCalloutIcon':_0x4e9ade,'ShapeRightArrowIcon':_0x48f794,'ShapeRightBraceIcon':_0x3411fe,'ShapeRightBracketIcon':_0x37f61f,'ShapeRound1RectIcon':_0x1359b8,'ShapeRound2DiagRectIcon':_0x4384d9,'ShapeRound2SameRectIcon':_0xb942df,'ShapeRoundRectIcon':_0x83bf8a,'ShapeRtTriangleIcon':_0x8f215c,'ShapeSmileyFaceIcon':_0x2adb56,'ShapeSnip1RectIcon':_0x241932,'ShapeSnip2DiagRectIcon':_0x1d541e,'ShapeSnip2SameRectIcon':_0x4b7376,'ShapeSnipRoundRectIcon':_0x5c2a23,'ShapeSquareTabsIcon':_0x55e8c4,'ShapeStar10Icon':_0x1f7b6d,'ShapeStar12Icon':_0x5e5fd4,'ShapeStar16Icon':_0x512105,'ShapeStar24Icon':_0x229491,'ShapeStar32Icon':_0xbfcde8,'ShapeStar4Icon':_0x520549,'ShapeStar5Icon':_0x4f2575,'ShapeStar6Icon':_0x4ea69a,'ShapeStar7Icon':_0x1a9dd3,'ShapeStar8Icon':_0x117d1e,'ShapeStraightConnector1Icon':_0x3dc14e,'ShapeStraightConnector2Icon':_0x1e5c6b,'ShapeStripedRightArrowIcon':_0x4507a4,'ShapeSunIcon':_0x2960ba,'ShapeSwooshArrowIcon':_0x3d3681,'ShapeTeardropIcon':_0xecf075,'ShapeTrapezoidIcon':_0x517d58,'ShapeTriangleIcon':_0x517c45,'ShapeUpArrowCalloutIcon':_0x4acb17,'ShapeUpArrowIcon':_0x59b135,'ShapeUpDownArrowCalloutIcon':_0x41aea3,'ShapeUpDownArrowIcon':_0x2f6ee7,'ShapeUturnArrowIcon':_0x3cb5af,'ShapeVerticalScrollIcon':_0x1b028f,'ShapeWaveIcon':_0x1332d9,'ShapeWedgeEllipseCalloutIcon':_0x391c82,'ShapeWedgeRectCalloutIcon':_0x27b8a7,'ShapeWedgeRoundRectCalloutIcon':_0x49e7bd}));}[_0x130702(0x3fa)](){const _0x41f58e=_0x130702;this['disposeWithMe'](this[_0x41f58e(0x1fa)][_0x41f58e(0x34d)](H,Ma)),this[_0x41f58e(0x34a)](this['_componentManager'][_0x41f58e(0x34d)](ya,Ca)),this[_0x41f58e(0x34a)](this[_0x41f58e(0x1fa)][_0x41f58e(0x34d)](oa,la)),this[_0x41f58e(0x34a)](this['_componentManager'][_0x41f58e(0x34d)](_0x3d9ff1,ca)),this['disposeWithMe'](this['_componentManager'][_0x41f58e(0x34d)](_0x41f58e(0x16e),Na));}};Pa=W([U(0x0,_0x33309c(_0x52a9bb)),U(0x1,_0x33309c(_0x1a3d08))],Pa);var Fa=class extends _0x2607a3{constructor(_0x321c66,_0xbaf697){const _0x14aa3c=_0x130702;super(_0x321c66,_0xbaf697),q(this,_0x14aa3c(0x2d1),null),q(this,'_adjName',null),q(this,'_unitId',null),q(this,_0x14aa3c(0x11a),null),_0xbaf697&&this[_0x14aa3c(0x353)](_0xbaf697);}[_0x130702(0x201)](){const _0x5f2028=_0x130702;return{'unitId':this[_0x5f2028(0x2bf)],'subUnitId':this[_0x5f2028(0x11a)],'drawingId':this['_shapeId']};}[_0x130702(0x353)](_0x42d81a){const _0x31b7cf=_0x130702;_0x42d81a[_0x31b7cf(0x132)]!==void 0x0&&(this['_shapeId']=_0x42d81a['shapeId']),_0x42d81a[_0x31b7cf(0x22b)]!==void 0x0&&(this[_0x31b7cf(0x197)]=_0x42d81a['adjName']),_0x42d81a[_0x31b7cf(0x1e0)]!==void 0x0&&(this[_0x31b7cf(0x2bf)]=_0x42d81a[_0x31b7cf(0x1e0)]),_0x42d81a['subUnitId']!==void 0x0&&(this[_0x31b7cf(0x11a)]=_0x42d81a[_0x31b7cf(0x1be)]),this[_0x31b7cf(0x3a1)]({'width':_0x42d81a[_0x31b7cf(0x368)],'height':_0x42d81a[_0x31b7cf(0x170)]});}[_0x130702(0x276)](_0x57c66c){const _0x258fd2=_0x130702;_0x20b985[_0x258fd2(0x241)](_0x57c66c,{'radius':_0x21fcf0[_0x258fd2(0x2d4)],'fill':_0x21fcf0['adjHandleFill'],'stroke':_0x21fcf0[_0x258fd2(0x1b1)],'strokeWidth':0x1,'evented':!0x0});}};function _0x10a5(_0x5d17c7,_0x4abb14){_0x5d17c7=_0x5d17c7-0xb6;const _0x2bd471=_0x2bd4();let _0x10a55b=_0x2bd471[_0x5d17c7];return _0x10a55b;}let Ia=class extends _0x3fcc5c{constructor(_0x548969,_0x3f3a99,_0x40bfb6,_0x43850f){const _0x645c9f=_0x130702;super(),this[_0x645c9f(0xec)]=_0x548969,this[_0x645c9f(0x1c9)]=_0x3f3a99,this[_0x645c9f(0x1b0)]=_0x40bfb6,this['_commandService']=_0x43850f,q(this,_0x645c9f(0x23e),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x645c9f(0xc8),[]),q(this,_0x645c9f(0x35f),0x0),q(this,_0x645c9f(0x356),0x0),q(this,_0x645c9f(0x384),0x0),q(this,_0x645c9f(0x1d7),0x0),q(this,_0x645c9f(0x24b),!0x1),q(this,_0x645c9f(0x114),!0x1),q(this,_0x645c9f(0x27d),void 0x0),q(this,_0x645c9f(0x1e3),void 0x0),q(this,'_adjHandlerPointerMove',void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),this[_0x645c9f(0x340)](),this['_registerDrawingTransformHandler']();}[_0x130702(0x38b)](){const _0x906542=_0x130702;this[_0x906542(0x2d6)]();}['refreshAdjustControls'](){this['_updateShapeAdjustControls'](!0x0);}[_0x130702(0x3e1)](_0x2bc4da,_0xaab28e,_0x25c8c6){const _0xd8751b=_0x130702;var _0x51f6b4;return(_0x51f6b4=this[_0xd8751b(0x1b0)][_0xd8751b(0x1bc)](_0x2bc4da,_0xaab28e,_0x25c8c6))==null?void 0x0:_0x51f6b4['getDrawingPoints']();}[_0x130702(0x2c1)](_0x2ec074,_0x362255,_0x2a2a59,_0x2e727d){const _0x24d02e=_0x130702;var _0x345890;return(_0x345890=this[_0x24d02e(0x1b0)]['getShapeModel'](_0x2ec074,_0x362255,_0x2a2a59))==null?void 0x0:_0x345890[_0x24d02e(0x3a5)](_0x2e727d);}['_getActiveDrawingParam'](){const _0x48d92e=_0x130702;if(this['_unitId']===null||this[_0x48d92e(0x11a)]===null||this[_0x48d92e(0x23e)]===null)return null;let _0x17e154=this['_drawingManagerService'][_0x48d92e(0x204)]({'unitId':this[_0x48d92e(0x2bf)],'subUnitId':this[_0x48d92e(0x11a)],'drawingId':this[_0x48d92e(0x23e)]});return _0x17e154==null?null:_0x17e154;}[_0x130702(0x121)](_0x29d47a){const _0x2bf764=_0x130702;if(this[_0x2bf764(0x2bf)]===null||this[_0x2bf764(0x11a)]===null||this[_0x2bf764(0x23e)]===null)return null;let _0x382577=_0x1d7f86({'unitId':this[_0x2bf764(0x2bf)],'subUnitId':this[_0x2bf764(0x11a)],'drawingId':this[_0x2bf764(0x23e)]}),_0x3f972f=_0x29d47a[_0x2bf764(0xc0)](_0x382577);return _0x3f972f instanceof X?_0x3f972f:null;}[_0x130702(0x155)](_0x2f49ba=!0x1){const _0x4846a9=_0x130702;if(this[_0x4846a9(0x2bf)]===null||this[_0x4846a9(0x11a)]===null||this['_activeShapeId']===null)return;let _0x5b71d1=this[_0x4846a9(0x223)]();if((_0x5b71d1==null?void 0x0:_0x5b71d1[_0x4846a9(0x37b)])!==_0x4fb2bf[_0x4846a9(0x206)]||!_0x5b71d1[_0x4846a9(0xe8)])return;let _0x241b49=this['_docsShapeService'][_0x4846a9(0x1bc)](this[_0x4846a9(0x2bf)],this[_0x4846a9(0x11a)],this[_0x4846a9(0x23e)]);if(!_0x241b49||_0x241b49['isLineShape']())return;(_0x2f49ba||!this[_0x4846a9(0x17c)])&&(this['_activeShapeAdjustPointList']=this[_0x4846a9(0x3e1)](this[_0x4846a9(0x2bf)],this[_0x4846a9(0x11a)],this[_0x4846a9(0x23e)]));let _0x481b5b=this[_0x4846a9(0x17c)];if(!(_0x481b5b!=null&&_0x481b5b[_0x4846a9(0x1c3)]))return;let {scene:_0x2edd31}=this[_0x4846a9(0xec)],{left:_0x24b2e2=0x0,top:_0x38302c=0x0,width:_0x4998ba=0x0,height:_0x11bb4d=0x0,flipX:_0x2d4ac0,flipY:_0x4cf752,angle:_0xf6a933=0x0}=_0x5b71d1[_0x4846a9(0xe8)];for(let _0x3e12c1 of _0x481b5b){let _0x2286f0=this[_0x4846a9(0x136)](_0x3e12c1,_0x4998ba,_0x11bb4d,!!_0x2d4ac0,!!_0x4cf752,_0xf6a933);this['_addShapeAdjustControl'](_0x2edd31,_0x2286f0,_0x2286f0['adjName'],_0x24b2e2,_0x38302c,this['_unitId'],this[_0x4846a9(0x11a)]);}}[_0x130702(0x136)](_0x1add39,_0x5b0bda,_0xf1e1d0,_0x2c695d,_0x3f0f11,_0x3823c8){const _0x30a557=_0x130702;let _0x1ebe31=_0x1add39['x'],_0x3fedf1=_0x1add39['y'];if(_0x2c695d&&(_0x1ebe31=_0x5b0bda-_0x1ebe31),_0x3f0f11&&(_0x3fedf1=_0xf1e1d0-_0x3fedf1),_0x3823c8!==0x0){let _0x505799=_0x5b0bda/0x2,_0x195e9d=_0xf1e1d0/0x2,_0x376a2e=_0x3823c8*Math['PI']/0xb4,_0x4d031c=Math[_0x30a557(0x3a3)](_0x376a2e),_0x7e2d6c=Math['sin'](_0x376a2e),_0x1232b5=_0x1ebe31-_0x505799,_0xc1f449=_0x3fedf1-_0x195e9d;_0x1ebe31=_0x505799+(_0x1232b5*_0x4d031c-_0xc1f449*_0x7e2d6c),_0x3fedf1=_0x195e9d+(_0x1232b5*_0x7e2d6c+_0xc1f449*_0x4d031c);}return{'x':_0x1ebe31,'y':_0x3fedf1,'adjName':_0x1add39[_0x30a557(0x22b)]};}[_0x130702(0x18c)](_0x24583d=!0x1){const _0x3d61d0=_0x130702;_0x24583d&&this['_clearShapeAdjustControls'](),this[_0x3d61d0(0x155)](_0x24583d);}[_0x130702(0x336)](_0x552f1b,_0x2bae19,_0x44b272,_0x167dd6,_0x2aeb92,_0x1ff594,_0x33332a){const _0x45e24d=_0x130702;if(!this[_0x45e24d(0x23e)])return;let _0x25b2d7=_0x45e24d(0x369)+this[_0x45e24d(0x23e)]+'-'+_0x44b272,_0x532109=_0x552f1b[_0x45e24d(0xc0)](_0x25b2d7);if(_0x532109){_0x532109[_0x45e24d(0x3a1)]({'left':_0x2bae19['x']+_0x167dd6-_0x21fcf0[_0x45e24d(0x2d4)],'top':_0x2bae19['y']+_0x2aeb92-_0x21fcf0[_0x45e24d(0x2d4)]}),_0x532109[_0x45e24d(0xc2)](!0x0);return;}let _0x3f9285=new Fa(_0x25b2d7,{'left':_0x2bae19['x']+_0x167dd6-_0x21fcf0[_0x45e24d(0x2d4)],'top':_0x2bae19['y']+_0x2aeb92-_0x21fcf0[_0x45e24d(0x2d4)],'adjName':_0x44b272,'shapeId':this[_0x45e24d(0x23e)],'unitId':_0x1ff594,'subUnitId':_0x33332a,'width':_0x21fcf0[_0x45e24d(0x2d4)]+0x8,'height':_0x21fcf0[_0x45e24d(0x2d4)]+0x8,'zIndex':_0x3ebd69+0x1,'evented':!0x0});this[_0x45e24d(0xc8)][_0x45e24d(0x3f5)](_0x3f9285),this[_0x45e24d(0x244)](_0x3f9285,_0x552f1b,_0x44b272),_0x552f1b[_0x45e24d(0x1b3)](_0x3f9285,_0x3ebd69+0x1);}[_0x130702(0x2d6)](){const _0xdc3d3e=_0x130702;this[_0xdc3d3e(0xc8)]['forEach'](_0x345ad3=>_0x345ad3[_0xdc3d3e(0x349)]()),this[_0xdc3d3e(0xc8)]=[];}[_0x130702(0x10b)](){const _0x1f6408=_0x130702;this[_0x1f6408(0x155)]();}[_0x130702(0x157)](_0x40fcd6,_0x362b7,_0x3abe64){const _0x1a139a=_0x130702;var _0x4df860,_0x5056e7;let _0xf0ef1e=_0x529e7d[_0x1a139a(0x148)]([_0x362b7,_0x3abe64]),_0x2a8a2b=(_0x4df860=_0x40fcd6[_0x1a139a(0x180)](_0xf0ef1e))==null?_0x40fcd6[_0x1a139a(0x290)]()[0x0]:_0x4df860;return(_0x5056e7=_0x2a8a2b==null?void 0x0:_0x2a8a2b['transformVector2SceneCoord'](_0xf0ef1e))==null?_0xf0ef1e:_0x5056e7;}['_attachAdjustEvent'](_0x483c88,_0x35c7f6,_0x41ae9e){const _0x2dc9d9=_0x130702;this['disposeWithMe'](_0x5d41e1(_0x483c88[_0x2dc9d9(0x3c7)][_0x2dc9d9(0x229)]((_0xf942d,_0x1c9d30)=>{const _0x97ef18=_0x2dc9d9;var _0x5b4e9a,_0x277d01,_0x3c7a1b,_0x3b804e;let _0x5292b8=_0x483c88[_0x97ef18(0x201)]();this[_0x97ef18(0x27d)]=this['_getShapeAdjustInfosById'](_0x5292b8[_0x97ef18(0x1e0)],_0x5292b8['subUnitId'],_0x5292b8['drawingId'],_0x41ae9e),this['_activeShapeModel']=this['_docsShapeService'][_0x97ef18(0x1bc)](_0x5292b8['unitId'],_0x5292b8[_0x97ef18(0x1be)],_0x5292b8[_0x97ef18(0x146)]);let _0x21642a=this[_0x97ef18(0x223)](),_0x4de4ff=_0x21642a==null?void 0x0:_0x21642a[_0x97ef18(0xe8)];if(!_0x21642a||!_0x4de4ff||!this[_0x97ef18(0x1e3)])return;this[_0x97ef18(0x35f)]=_0x4de4ff[_0x97ef18(0x13e)]||0x0,this[_0x97ef18(0x356)]=_0x4de4ff['top']||0x0,this[_0x97ef18(0x384)]=_0x4de4ff[_0x97ef18(0x368)]||0x0,this[_0x97ef18(0x1d7)]=_0x4de4ff[_0x97ef18(0x170)]||0x0;let _0x2d8150=!!_0x4de4ff['flipX'],_0x45618f=!!_0x4de4ff[_0x97ef18(0x275)],_0x2d4eac=_0x4de4ff[_0x97ef18(0x382)]||0x0,_0x44215f=((_0x5b4e9a=this[_0x97ef18(0x27d)])==null?void 0x0:_0x5b4e9a['gdRefX'])||((_0x277d01=this[_0x97ef18(0x27d)])==null?void 0x0:_0x277d01['gdRefY'])||((_0x3c7a1b=this[_0x97ef18(0x27d)])==null?void 0x0:_0x3c7a1b[_0x97ef18(0x389)])||((_0x3b804e=this[_0x97ef18(0x27d)])==null?void 0x0:_0x3b804e['gdRefR'])||_0x41ae9e,_0x2e488=this[_0x97ef18(0x1e3)][_0x97ef18(0x1d9)](_0x44215f),_0x595484={[_0x44215f]:_0x2e488};this[_0x97ef18(0x24b)]=!0x0,_0x35c7f6['disableObjectsEvent'](),this[_0x97ef18(0xc9)]=_0x35c7f6[_0x97ef18(0x280)][_0x97ef18(0x229)]((_0x1cb39d,_0x4f3fdf)=>{const _0x244001=_0x97ef18;var _0x6c76be;if(!this[_0x244001(0x24b)]||!this[_0x244001(0x1e3)]||!this['_activeAdjustInfo'])return;_0x35c7f6[_0x244001(0x3b6)](),_0x35c7f6[_0x244001(0x1a6)](_0x4a6c9d[_0x244001(0x3ba)]);let _0x212e09=this[_0x244001(0x157)](_0x35c7f6,_0x1cb39d[_0x244001(0x123)],_0x1cb39d[_0x244001(0x38d)]),_0x5cf55f=_0x212e09['x']-this[_0x244001(0x35f)],_0x1698f3=_0x212e09['y']-this[_0x244001(0x356)];if(_0x2d4eac!==0x0){let _0x4e6fc4=this[_0x244001(0x384)]/0x2,_0xf25c39=this[_0x244001(0x1d7)]/0x2,_0x4959ad=_0x2d4eac*Math['PI']/0xb4,_0x386d2f=Math[_0x244001(0x3a3)](_0x4959ad),_0x38ec51=Math['sin'](_0x4959ad),_0x160f06=_0x5cf55f-_0x4e6fc4,_0x50ca0a=_0x1698f3-_0xf25c39;_0x5cf55f=_0x4e6fc4+(_0x160f06*_0x386d2f+_0x50ca0a*_0x38ec51),_0x1698f3=_0xf25c39+(-_0x160f06*_0x38ec51+_0x50ca0a*_0x386d2f);}_0x2d8150&&(_0x5cf55f=this['_baseShapeWidth']-_0x5cf55f),_0x45618f&&(_0x1698f3=this[_0x244001(0x1d7)]-_0x1698f3);let _0x9507ce={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0x244001(0x1d7)]},_0x1753d5=this[_0x244001(0x1e3)][_0x244001(0x366)](_0x9507ce,{'x':_0x5cf55f,'y':_0x1698f3},this['_activeAdjustInfo'],_0x2d8150,_0x45618f),_0x3aca01=this[_0x244001(0x27d)][_0x244001(0x32f)]||this['_activeAdjustInfo'][_0x244001(0xdb)]||this['_activeAdjustInfo'][_0x244001(0x389)]||this[_0x244001(0x27d)][_0x244001(0xe3)];_0x3aca01!==void 0x0&&(this[_0x244001(0x1e3)][_0x244001(0x20e)](_0x3aca01,_0x1753d5),(_0x6c76be=this[_0x244001(0x121)](_0x35c7f6))==null||_0x6c76be[_0x244001(0xc2)](!0x0),this[_0x244001(0x17c)]=this[_0x244001(0x3e1)](_0x5292b8['unitId'],_0x5292b8[_0x244001(0x1be)],_0x5292b8[_0x244001(0x146)]),this[_0x244001(0x10b)](),_0x4f3fdf[_0x244001(0x3ac)]());}),this[_0x97ef18(0x102)]=_0x35c7f6[_0x97ef18(0xbe)][_0x97ef18(0x229)]((_0x6c7023,_0x55c41d)=>{const _0x3c637e=_0x97ef18;var _0x345099,_0x18b5a0;(_0x345099=this[_0x3c637e(0xc9)])==null||_0x345099[_0x3c637e(0x3cd)](),(_0x18b5a0=this[_0x3c637e(0x102)])==null||_0x18b5a0['unsubscribe'](),_0x35c7f6['resetCursor']();let _0x61c148=this[_0x3c637e(0x27d)];if(_0x61c148&&this['_activeShapeModel']){let _0x2324e5=_0x61c148['gdRefX']||_0x61c148[_0x3c637e(0xdb)]||_0x61c148[_0x3c637e(0x389)]||_0x61c148[_0x3c637e(0xe3)];if(_0x2324e5!==void 0x0){let _0x35f2d6=this[_0x3c637e(0x1e3)]['getAdjustValueByName'](_0x2324e5);_0x35f2d6!==void 0x0&&_a(this['_commandService'],_0x5292b8['unitId'],_0x5292b8[_0x3c637e(0x1be)],_0x5292b8['drawingId'],{'oldShapeData':{'adjustValues':_0x595484}},{'adjustValues':{[_0x2324e5]:_0x35f2d6}});}}this[_0x3c637e(0x27d)]=void 0x0,this[_0x3c637e(0x1e3)]=void 0x0,this[_0x3c637e(0x24b)]=!0x1,_0x35c7f6[_0x3c637e(0x100)](),_0x55c41d['stopPropagation']();}),_0x1c9d30['stopPropagation']();})));}[_0x130702(0xc3)](){const _0x5a229f=_0x130702;let {scene:_0x344da0}=this['_context'],_0x2b3cfa=_0x344da0[_0x5a229f(0x3a4)]();this['disposeWithMe'](_0x2b3cfa['changeStart$']['subscribe'](_0x463565=>{const _0xeb48dc=_0x5a229f;this[_0xeb48dc(0x155)](),_0x463565[_0xeb48dc(0x231)]!==null&&_0x463565[_0xeb48dc(0x231)][_0xeb48dc(0x296)]===0x1&&_0x463565[_0xeb48dc(0x231)]['values']()['next']()[_0xeb48dc(0x17d)]instanceof X&&(this[_0xeb48dc(0x114)]=!0x0);})),this[_0x5a229f(0x34a)](_0x2b3cfa[_0x5a229f(0x2d7)]['subscribe'](()=>{const _0x5e4e11=_0x5a229f;this[_0x5e4e11(0x114)]&&this['_clearShapeAdjustControls']();})),this[_0x5a229f(0x34a)](_0x344da0[_0x5a229f(0xbe)][_0x5a229f(0x229)](()=>{const _0x5cde07=_0x5a229f;this[_0x5cde07(0x114)]&&(this[_0x5cde07(0x114)]=!0x1,this['_createShapeAdjustControls']());})),this[_0x5a229f(0x34a)](_0x2b3cfa['changeEnd$']['subscribe'](()=>{const _0xeff1cd=_0x5a229f;this['_unitId']&&this['_subUnitId']&&this[_0xeff1cd(0x23e)]&&(this['_activeShapeAdjustPointList']=this[_0xeff1cd(0x3e1)](this[_0xeff1cd(0x2bf)],this[_0xeff1cd(0x11a)],this[_0xeff1cd(0x23e)]),this[_0xeff1cd(0x10b)]());}));}[_0x130702(0x340)](){const _0x32d21d=_0x130702;this['disposeWithMe'](this['_drawingManagerService'][_0x32d21d(0x184)][_0x32d21d(0x144)](_0x5a8b84=>{const _0x5c7e47=_0x32d21d;if(_0x5a8b84[_0x5c7e47(0x1c3)]===0x1){let _0x321f98=_0x5a8b84[0x0],_0x4d4fd3=this[_0x5c7e47(0x1c9)][_0x5c7e47(0x204)](_0x321f98);if((_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5c7e47(0x37b)])===_0x4fb2bf[_0x5c7e47(0x206)]){this[_0x5c7e47(0x23e)]=_0x321f98[_0x5c7e47(0x146)],this[_0x5c7e47(0x2bf)]=_0x321f98['unitId'],this[_0x5c7e47(0x11a)]=_0x321f98[_0x5c7e47(0x1be)],this[_0x5c7e47(0x17c)]=this[_0x5c7e47(0x3e1)](_0x321f98[_0x5c7e47(0x1e0)],_0x321f98[_0x5c7e47(0x1be)],_0x321f98[_0x5c7e47(0x146)]),this[_0x5c7e47(0x2d6)](),this['_createShapeAdjustControls']();return;}}this[_0x5c7e47(0x23e)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x5c7e47(0x2bf)]=null,this['_subUnitId']=null,this[_0x5c7e47(0x2d6)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x32d21d(0x119)]['subscribe'](_0x19ec63=>{const _0xf97047=_0x32d21d;if(_0x19ec63[_0xf97047(0x1c3)]===0x1){var _0x47cc0a;((_0x47cc0a=this[_0xf97047(0x1c9)][_0xf97047(0x204)](_0x19ec63[0x0]))==null?void 0x0:_0x47cc0a['drawingType'])===_0x4fb2bf[_0xf97047(0x206)]&&this[_0xf97047(0x18c)](!0x0);}})),this[_0x32d21d(0x34a)](this[_0x32d21d(0x1c9)]['remove$'][_0x32d21d(0x144)](_0x21adc5=>{const _0x3ad599=_0x32d21d;for(let _0x57930d of _0x21adc5)this[_0x3ad599(0x23e)]===_0x57930d[_0x3ad599(0x146)]&&(this[_0x3ad599(0x23e)]=null,this[_0x3ad599(0x17c)]=void 0x0,this[_0x3ad599(0x2bf)]=null,this[_0x3ad599(0x11a)]=null,this['_clearShapeAdjustControls']());}));}};Ia=W([U(0x1,_0x5c72b9),U(0x2,_0x33309c(_0x2118c4)),U(0x3,_0x56458c)],Ia);function La(_0x3a94dd,_0x2f842f){const _0x5281c2=_0x130702;let _0x491af2=_0x3a94dd;for(;_0x491af2;){if(_0x2f842f(_0x491af2))return _0x491af2;_0x491af2=typeof _0x491af2[_0x5281c2(0x19c)]==_0x5281c2(0x111)?_0x491af2[_0x5281c2(0x19c)]():null;}return null;}function Ra(_0x5cd9e9){return La(_0x5cd9e9,_0x173626=>_0x173626 instanceof X);}let za=class extends _0x3fcc5c{constructor(_0x4bde2f,_0xcc3016,_0x160325,_0x2e794a,_0x2e2305){const _0x2c212f=_0x130702;super(),this[_0x2c212f(0xec)]=_0x4bde2f,this['_shapeTextEditingService']=_0xcc3016,this[_0x2c212f(0x1c9)]=_0x160325,this[_0x2c212f(0x3da)]=_0x2e794a,this[_0x2c212f(0x1b0)]=_0x2e2305,q(this,_0x2c212f(0x25b),null),this[_0x2c212f(0x2c9)](),this[_0x2c212f(0x179)](),this[_0x2c212f(0x171)]();}[_0x130702(0x2c9)](){const _0x49b52a=_0x130702;let {scene:_0x19a8fe}=this[_0x49b52a(0xec)];this[_0x49b52a(0x34a)](_0x19a8fe[_0x49b52a(0xbd)][_0x49b52a(0x229)](_0xdbed14=>{const _0x591001=_0x49b52a;var _0x3df03a;let {offsetX:_0x33ea81,offsetY:_0x558294}=_0xdbed14,_0x3c0677=_0x529e7d[_0x591001(0x148)]([_0x33ea81,_0x558294]),_0x2001d8=(_0x3df03a=Ra(_0x19a8fe[_0x591001(0x134)](_0x3c0677)))==null?this['_getFocusedShapeAtPoint'](_0x3c0677):_0x3df03a;if(_0x2001d8){if(_0x1757f3(this[_0x591001(0x1b0)][_0x591001(0x313)](_0x2001d8[_0x591001(0x1e0)],_0x2001d8[_0x591001(0x1be)],_0x2001d8[_0x591001(0x132)])))return;this[_0x591001(0x124)]['setEditing']({'visible':!0x0,'unitId':_0x2001d8[_0x591001(0x1e0)],'subUnitId':_0x2001d8['subUnitId'],'shapeId':_0x2001d8[_0x591001(0x132)],'shapeKey':_0x2001d8[_0x591001(0x24f)]});}}));}[_0x130702(0x158)](_0x451025){const _0x31067d=_0x130702;let {scene:_0x34e0ff}=this[_0x31067d(0xec)],_0x361af4=this[_0x31067d(0x1c9)][_0x31067d(0x2a7)]()[_0x31067d(0x207)](_0x3ecb75=>_0x34e0ff[_0x31067d(0xc0)](_0x1d7f86(_0x3ecb75)))[_0x31067d(0x3ce)](_0x103def=>_0x103def instanceof X&&_0x103def[_0x31067d(0xb7)](_0x451025));return _0x361af4==null?null:_0x361af4;}[_0x130702(0x179)](){const _0x52c3d3=_0x130702;this['disposeWithMe'](this['_drawingManagerService'][_0x52c3d3(0x184)][_0x52c3d3(0x144)](_0x440e3e=>{const _0x1eb7c=_0x52c3d3;if(_0x440e3e[_0x1eb7c(0x1c3)]===0x1){let _0x5309c2=_0x440e3e[0x0],_0x429e9f=this[_0x1eb7c(0x1c9)][_0x1eb7c(0x204)](_0x5309c2);if((_0x429e9f==null?void 0x0:_0x429e9f[_0x1eb7c(0x37b)])===_0x4fb2bf[_0x1eb7c(0x206)]){let _0x2a841b=this['_shapeTextEditingService']['getEditing']();if((_0x2a841b==null?void 0x0:_0x2a841b[_0x1eb7c(0x132)])===_0x5309c2['drawingId']&&_0x2a841b['visible'])return;_0x1757f3(this[_0x1eb7c(0x1b0)][_0x1eb7c(0x313)](_0x5309c2['unitId'],_0x5309c2['subUnitId'],_0x5309c2[_0x1eb7c(0x146)]))&&this[_0x1eb7c(0x124)]['setEditing'](null);}else this['_shapeTextEditingService'][_0x1eb7c(0x1d1)]()&&(this['_shapeTextEditingService'][_0x1eb7c(0x270)](!0x0),requestAnimationFrame(()=>{const _0x4fd48f=_0x1eb7c;this[_0x4fd48f(0x124)][_0x4fd48f(0x120)](null);}));}else this[_0x1eb7c(0x124)][_0x1eb7c(0x1d1)]()&&(this[_0x1eb7c(0x124)][_0x1eb7c(0x270)](!0x0),requestAnimationFrame(()=>{const _0x4b1969=_0x1eb7c;this['_shapeTextEditingService'][_0x4b1969(0x120)](null);}));})),this[_0x52c3d3(0x34a)](this[_0x52c3d3(0x1c9)][_0x52c3d3(0x28b)]['subscribe'](_0xced95b=>{const _0x77aaa6=_0x52c3d3;let _0x31bb83=this[_0x77aaa6(0x124)][_0x77aaa6(0x1d1)]();_0x31bb83&&_0xced95b['some'](_0x59fb83=>_0x59fb83['drawingId']===_0x31bb83[_0x77aaa6(0x132)])&&this[_0x77aaa6(0x124)][_0x77aaa6(0x120)](null);}));}['_initEditingParams'](){const _0x454376=_0x130702;this[_0x454376(0x34a)](this[_0x454376(0x124)]['editingParams$'][_0x454376(0x144)](_0x2ac8ad=>{const _0x33a452=_0x454376;let {scene:_0x113941}=this['_context'];if(this['_lastEditingShapeKey']){let _0x392b12=_0x113941[_0x33a452(0xc0)](this[_0x33a452(0x25b)]);_0x392b12&&_0x392b12['setEditing'](!0x1);}if(_0x2ac8ad){let _0x2e478e=!!_0x2ac8ad[_0x33a452(0xce)],_0x49c75a=_0x113941['getObjectIncludeInGroup'](_0x2ac8ad[_0x33a452(0x2f2)]);_0x49c75a&&(_0x49c75a[_0x33a452(0x120)](_0x2e478e),this['_lastEditingShapeKey']=_0x2ac8ad[_0x33a452(0x2f2)]),this[_0x33a452(0x3da)][_0x33a452(0x13c)](_0x4b3a16,_0x2e478e);}else this['_lastEditingShapeKey']=null,this['_contextService']['setContextValue'](_0x4b3a16,!0x1);}));}};za=W([U(0x1,_0x33309c(J)),U(0x2,_0x5c72b9),U(0x3,_0x54b7a3),U(0x4,_0x33309c(_0x2118c4))],za);function Ba(){return _0x429252(_0x30056b,{});}let Va=class extends _0x141be8{constructor(_0xa89582,_0x5e5224,_0x553545,_0x5bbc90,_0x21cbf8){const _0x3f7ef2=_0x130702;super(_0xa89582,_0x5e5224,_0x553545,_0x5bbc90,_0x21cbf8,{'componentKey':_0x3f7ef2(0x1a4),'editorUnitId':ia,'toolbarComponent':Ba});}};function _0x2bd4(){const _0x299224=['RightArrowCallout','docs-shape-ui.shape.type.wedge-round-rect-callout','ShapeNoSmokingIcon','LightningBolt','FlowChartInputOutput','starAndBanner','FlowchartSort','_shapeId','ShapeLeftBraceIcon','Plus','adjHandleSize','DiagStripe','_clearShapeAdjustControls','changing$','ShapeActionButtonSoundIcon','warn','Sun','docs-shape-ui.shape.type.irregular-seal2','FlowchartMagneticDrum','FlowchartOr','docs-shape-ui.shape.type.flow-chart-connector','ShapePentagonIcon','ShapeUpArrowCalloutIcon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','editingParams$','ShapeStripedRightArrowIcon','ShapeStar10Icon','params','docs-shape-ui.shape.type.brace-pair','FlowchartInternalStorage','ShapeWedgeRoundRectCalloutIcon','docs-shape-ui.shape.type.curved-connector3-arrow1','featurePluginUpdateNotification','Line','LeftRightArrowCallout','registerComponent','Decagon','ShapeActionButtonMovieIcon','docs-shape-ui.shape.type.left-right-up-arrow','endArrow','shapeKey','docs-shape-ui.shape.type.border-callout3','type','docs-shape-ui.shape.type.left-right-circular-arrow','HorizontalScroll','FALSE','ShapeEllipseIcon','_config','VIEW_MAIN','docs-shape-ui.insertShape','doc','invert','Heptagon','getDrawingPoints','localeService','Star10','horizontal','ShapeChartXIcon','_loadShapePictureFill','docs-shape-ui.shape.type.flow-chart-magnetic-drum','_createShapePopupMenu','LeftRightCircularArrow','RoundRect','docs-shape-ui.shape.type.action-button-forward-next','AccentCallout1','horizontalAlign','docs-shape-ui.shape.type.left-circular-arrow','resize','@univerjs-pro/docs-shape-ui','focusDrawing','ShapeUpDownArrowCalloutIcon','FlowchartMagneticDisk','DownArrowCallout','getShapeType','_getShapeInfo','ShapeFlowChartOfflineStorageIcon','Wave','Chevron','_transformCalculateSrcRect','doc.shape.floating-toolbar','transformForAngle','scene','CircularArrow','_setTransForm','ShapeDonutIcon','HomePlate','attachPopupToObject','setPrstGeom','MathMultiply','FlowchartAlternateProcess','_editingParams$','docs-shape-ui.shape.type.math-divide','_localeService','RightArrow','docs-shape-ui.shape.type.arc','WedgeRoundRectCallout','getSnapshot','docs-shape-ui.shape.type.cloud','ShapeVerticalScrollIcon','docs-shape-ui.shape.type.ribbon2','ShapeAccentBorderCallout1Icon','gdRefX','_univerInstanceService','docs-shape-ui.shape.type.chord','textStyle','layoutType','docs-shape-ui.shape.type.flow-chart-sort','_onSavingEditorData$','_addShapeAdjustControl','gridType','424940PuZtDZ','docs-shape-ui.shape.type.flow-chart-manual-operation','WRAP_TOP_AND_BOTTOM','SELECTOR','ActionButtonDocument','setFillImage','#111827','ShapeFlowChartPreparationIcon','_registerDrawingFocusChangeHandler','ShapeHexagonIcon','Large','LEFT','decorate','1.0.0-alpha.0','docs-shape-ui.shape.type.star7','docs-shape-ui.shape.type.rect-textbox-horizontal','Snip2DiagRect','dispose','disposeWithMe','ShapeActionButtonInformationIcon','docs-shape-ui.shape.type.ellipse','register','restore','ShapeAccentBorderCallout2Icon','docs-shape-ui.shape.type.funnel','ShapeCloudCalloutIcon','paragraphs','setShapeProps','Star16','_drawRichText','_baseShapeTop','ShapeBentConnector3Arrow2Icon','ShapeHeptagonIcon','line','docs-shape-ui.shape.type.line-inv','_activeShapeInfo','FlowchartOnlineStorage','FlowchartPredefinedProcess','Trapezoid','_baseShapeLeft','ShapeHeartIcon','_configService','Octagon','moveRange','docs-shape-ui.shape.type.flow-chart-summing-junction','Triangle','calcAdjValue','NotchedRightArrow','width','doc-shape-adjust-point-','FlowchartPreparation','ShapePieWedgeIcon','ShapeSunIcon','docs-shape-ui.shape.type.accent-border-callout3','ShapeTrapezoidIcon','ShapeRibbonIcon','docs-shape-ui.shape.type.flow-chart-terminator','has','endOffset','_sidebarDisposable','ShapeBorderCallout2Icon','ShapePlaqueIcon','Round2DiagRect','_isOpenedShapeEditPanel','docs-shape-ui.shape.type.math-minus','_injector','docs-shape-ui.shape.type.line','drawingType','docs-shape-ui.shape.type.frame','Heart','docs-shape-ui.shape.type.right-arrow','docs-shape-ui.shape.type.bent-arrow','docs-shape-ui.shape.type.left-arrow-callout','FlowchartDelay','angle','ShapeMoonIcon','_baseShapeWidth','EllipseRibbon','ShapeFlowChartConnectorIcon','ActionButtonSound','docs-shape-ui.shape.type.triangle','gdRefAng','save','clearAdjustControls','docs-shape-ui.formatShape','offsetY','ShapeActionButtonEndIcon','ShapeLeftRightRibbonIcon','docs-shape-ui.shape.type.block-arc','docs-shape-ui.shape.type.rect-textbox-vertical','wrapSquare','ShapeFlowChartDisplayIcon','docs-shape-ui.shape.type.callout1','getAbsolutePosition','docs-shape-ui.shape.type.flow-chart-multidocument','other','_imageIoService','LeftArrow','ActionButtonBlank','_insertShapes','docs-shape-ui.shape.type.flow-chart-manual-input','getDrawingOKey','docs-shape-ui.shape.type.straight-connector1','docs-shape-ui.shape.type.left-right-arrow-callout','docs-shape-ui.shape.type.cube','transformByState','ShapeUpDownArrowIcon','cos','getTransformerByCreate','getAdjustInfoByName','docs-shape-ui.shape.type.flow-chart-display','QuadArrowCallout','Moon','_initializedShapePopupMenu','INLINE','_getSceneByUnitId','stopPropagation','updateShapeFillImage','Star4','ShapeDecagonIcon','docs-shape-ui.shape.type.action-button-sound','docs-shape-ui.shape.type.irregular-seal1','ShapeTeardropIcon','docs-shape-ui.shape.type.square-tabs','range','spaceBelow','disableObjectsEvent','ShapeFlowChartMagneticTapeIcon','docs-shape-ui.shape.type.curved-connector3','docs-shape-ui.shape.type.folder-corner','CROSSHAIR','ShapeCurvedConnector3Arrow1Icon','_docDrawingShapeRenderController','ShapeFlowChartMultidocumentIcon','ShapeFlowChartPunchedTapeIcon','Diamond','ShapeBentUpArrowIcon','callout','ShapeIcon','ShapeSnip2SameRectIcon','WedgeEllipseCallout','flowchart','body','onPointerDown$','ShapeArcIcon','docs-shape-ui.shape.type.star4','58386ynDAuG','ShapeMathNotEqualIcon','Cube','unsubscribe','find','scale','BentUpArrow','docs-shape-ui.textWrap.behindText','getMatrix','docs-shape-ui.shape.type.ellipse-ribbon','getState','FlowchartCollate','clip','ShapeIrregularSeal1Icon','_urlImageService','ShapeFlowChartPredefinedProcessIcon','_contextService','_initialize','docs-shape-ui.shape.type.flow-chart-document','docs-shape-ui.shape.type.flow-chart-collate','Bevel','prototype','URL','_getShapeAdjustPointListById','mergeMenu','next','div','docs-shape-ui.shape.type.flow-chart-magnetic-tape','docs-shape-ui.shape.type.star16','BOTH_SIDES','FoldedCorner','get','reduce','docs-shape-ui.shape.type.no-smoking','BentConnector3','LeftUpArrow','CurvedDownArrow','error','CloudCallout','Ribbon2','ShapeStraightConnector1Icon','Star12','ShapeSnip1RectIcon','push','blockArrow','Round2SameRect','enhanceParams','_shapeEditPanelVersion','_registerComponents','ShapeRightArrowCalloutIcon','Callout2','setSrcRect','Round1Rect','onReady','setConfig','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','ShapeStar24Icon','getShapeTextData','isHit','docs-shape-ui.shape.type.border-callout1','complete','add$','Chord','DRAWING_IMAGE','onDblclick$','onPointerUp$','docs-shape-ui.shape.type.math-plus','getObjectIncludeInGroup','docs-shape-ui.shape.type.star5','makeDirty','_registerDrawingTransformHandler','composeMatrix','LineInv','_initMenu','Snip2SameRect','_adjustPointObjects','_adjHandlerPointerMove','ShapeFlowChartDocumentIcon','ShapeCurvedDownArrowIcon','ShapeMathMinusIcon','FlowchartExtract','visible','ActionButtonForwardNext','docs-shape-ui.shape.type.math-not-equal','docs-shape-ui.shape.type.can','docs-shape-ui.shape.type.accent-border-callout1','docs-shape-ui.shape.type.curved-down-arrow','getAllUnitsForType','doc.command.update-doc-drawing-wrapping-style','ShapeLightningBoltIcon','FlowchartPunchedTape','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','docs-shape-ui.shape.type.up-down-arrow-callout','docs-shape-ui.shape.type.action-button-back-previous','gdRefY','ShapePlaqueTabsIcon','docs-shape-ui.shape.type.pie-wedge','univer-mb-1\x20univer-rounded\x20univer-bg-gray-100\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-bg-gray-800\x20dark:!univer-text-gray-200','docs-shape-ui.shape.type.diag-stripe','getDrawingVisible','FlowchartDecision','label','gdRefR','onerror','docs-shape-ui.shape.type.action-button-blank','LAYOUT','ShapeLeftRightCircularArrowIcon','transform','doc.operation.open-doc-shape-format-panel','UturnArrow','SquareTabs','_context','univer-size-full','dataModel','prstGeom','paragraphMenuPlacement','setShapeData','docs-shape-ui.shape.type.action-button-movie','updateContext','getImage','multiply','basicShape','COMMAND','lineSpacing','#3B82F6','ShapeBentConnector3Arrow1Icon','docs-shape-ui.shape.type.curved-up-arrow','ShapeLeftArrowCalloutIcon','ActionButtonInformation','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','207255vREAbi','enableObjectsEvent','ShapeStar7Icon','_adjHandlerPointerUp','DownArrow','ShapeCurvedLeftArrowIcon','ShapeMathDivideIcon','NonIsoscelesTrapezoid','ShapeMathMultiplyIcon','renderDrawingShape','attachTransformerTo','docs-shape-ui.shape.type.plaque','_updateAdjustControlPositions','rect','ShapeFlowChartProcessIcon','docs-shape-ui.shape.type.left-arrow','docs-shape-ui.shape.type.quad-arrow','ShapeChartPlusIcon','function','_drawShapeText','fill','_isShouldShowDrawingShapeAdjust','ActionButtonEnd','shapeData','ShapeActionButtonBackPreviousIcon','_popupMenuListener','update$','_subUnitId','ShapeDiagStripeIcon','Star24','docs-shape-ui.shape.type.flow-chart-or','vertical','docs-shape-ui.shape.type.rect','setEditing','_getActiveDrawingShape','ShapeRoundRectIcon','offsetX','_shapeTextEditingService','ShapeDownArrowCalloutIcon','popup','docs-shape-ui.shape.type.flow-chart-process','docs-shape-ui.shape.type.octagon','docs-shape-ui.shape.type.math-equal','ShapeCanIcon','icon','getShapeData','docs-shape-ui.shape.type.accent-callout1','ShapeWedgeEllipseCalloutIcon','ChartX','docs-shape-ui.shape.type.quad-arrow-callout','ShapeRectTextboxHorizontalIcon','shapeId','_updateSrcRectByTransform','pick','with','_toVisualAdjustPoint','ShapeFlowChartInputOutputIcon','disableShapeOption','AccentBorderCallout2','docs-shape-ui.shape.type.cloud-callout','fillImageSource','setContextValue','isRender','left','FlowchartMagneticTape','docs-shape-ui.shape.type.flow-chart-extract','docs-shape-ui.shape.type.math-multiply','registerRenderModule','DEFAULT','subscribe','_clearPopups','drawingId','Funnel','FromArray','symbol','call','StraightConnector1','ShapeStar4Icon','docs-shape-ui.shape.type.heptagon','docs-shape-ui.shape.type.right-bracket','docs-shape-ui.shape.type.moon','getShapeTextRect','ShapeCallout1Icon','ShapeCallout2Icon','FlowchartPunchedCard','univer-box-border\x20univer-px-4\x20univer-text-sm','_createShapeAdjustControls','docs-shape-ui.shape.type.star24','_toScenePoint','_getFocusedShapeAtPoint','ActionButtonHelp','docs-shape-ui.shape.type.up-arrow','CurvedConnector3','_initUIPart','deepClone','_registerOperations','ShapeFlowChartManualInputIcon','ShapeGear9Icon','getValue','_registerImageShapeClipDelegate','ShapeRibbon2Icon','ChartPlus','docs-shape-ui.shape.type.snip-round-rect','inFrontOfText','SwooshArrow','CurvedLeftArrow','docs-shape-ui.shape.type.swoosh-arrow','getRenderById','isEditing','docs-shape-ui.shape.type.hexagon','ShapeCurvedConnector3Icon','ShapeTextEditorContainer','ShapeChartStarIcon','height','_initEditingParams','docs-shape-ui.shape.type.down-arrow','docs-shape-ui.shape.type.flow-chart-decision','BorderCallout1','isHorizontal','12WWGCZt','docs-shape-ui.shape.type.donut','FlowchartOffPageConnector','_initSelection','set','_initCommands','_activeShapeAdjustPointList','value','RightBracket','PieWedge','getActiveViewportByCoord','docs-shape-ui.shape.type.accent-callout3','isRenderLinePointsMode','docs-shape-ui.shape.type.up-arrow-callout','focus$','LeftBrace','FlowchartProcess','ShapeStraightConnector2Icon','WRAP_SQUARE','_openShapeEditPanel','docs-shape-ui.shape.type.right-arrow-callout','ShapeFlowChartExtractIcon','_updateShapeAdjustControls','docs-shape-ui.shape.type.trapezoid','docs-shape-ui.shape.type.decagon','changeStart$','SolidLine','inline','executeCommand','StripedRightArrow','ShapeEllipseRibbon2Icon','shapeType','docs-shape-ui.shape.type.action-button-return','_adjName','create','ShapeActionButtonReturnIcon','_renderManagerService','ShapeBorderCallout1Icon','getParent','doc.shape.edit.panel','beginPath','UpArrow','ShapeActionButtonBeginningIcon','docs-shape-ui.shape.type.parallelogram','ShapeRightBraceIcon','docs-shape-ui.shape.type.action-button-home','doc.shape.text.float-menu','_initShapePopupMenu','setCursor','FlowchartSummingJunction','object','ShapeMathPlusIcon','ShapeFlowChartOnlineStorageIcon','textRuns','_iconManager','snapToGrid','ShapeLineInvIcon','ShapeFlowChartMergeIcon','_docsShapeService','adjHandleStroke','docs-shape-ui.shape.type.wave','addObject','onStarting','docs-shape-ui.shape.type.curved-left-arrow','docs-shape-ui.shape.type.bent-connector3','_props','PlaqueTabs','data','Cloud','behindText','getShapeModel','forEach','subUnitId','dataStream','add','Snip1Rect','extraProps','length','srcRect','ShapeMathEqualIcon','setCanUseShapeClip','ShapeRtTriangleIcon','docs-shape-ui.shape.type.diamond','_drawingManagerService','None','_clipService','setInsertRange','113409sYwVBy','DRAWING_DOM','ShapeFlowChartInternalStorageIcon','docs-shape-ui.textWrap.inline','getEditing','Star8','BracePair','ShapeFlowChartSortIcon','clone','iterator','_baseShapeHeight','docs-shape-ui.shape.type.circular-arrow','getAdjustValueByName','ShapeFlowChartOffpageConnectorIcon','WRAP_NONE','ShapeSwooshArrowIcon','getCurrentUniverDocInstance','docs-shape-ui.shape.type.flow-chart-punched-card','docs-shape-ui.shape.type.double-wave','unitId','paragraph','Star7','_activeShapeModel','sectionBreaks','docs-shape-ui.shape.type.chart-x','VerticalScroll','syncExecuteCommand','docs-shape-ui.shape.type.notched-right-arrow','_docCanvasPopManagerService','ShapeSquareTabsIcon','shape-text-','ShapeStar8Icon','refreshTransform','docs-shape-ui.shape.type.callout3','UUID','docs-shape-ui.shape.type.flow-chart-input-output','Parallelogram','ShapeFlowChartDelayIcon','ShapeFlowChartCollateIcon','getFonts','doc.shape.picker.component','fillType','ShapeBracePairIcon','ShapeFunnelIcon','paragraphStyle','_componentManager','docs-shape-ui.shape.type.straight-connector2','docs-shape-ui.shape.type.snip2-diag-rect','FlowchartMerge','univer-grid\x20univer-grid-cols-10\x20univer-gap-1','BorderCallout3','_registerIcons','getDrawingSearch','docs-shape-ui.shape.type.accent-border-callout2','docs-shape-ui.shape.type.ellipse-ribbon2','getDrawingByParam','Star5','DRAWING_SHAPE','map','group','WRAP','behindDoc','ShapeRound2DiagRectIcon','ShapeCornerTabsIcon','Image','setAdjustValueByName','docs-shape-ui.shape.type.heart','docs-shape-ui.shape.type.flow-chart-magnetic-disk','FlowChartOfflineStorage','menu','getSelectedObjectMap','startArrow','ShapeStar6Icon','docs-shape-ui.shape.type.left-up-arrow','Path','ShapeStar5Icon','close','OPERATION','ShapeGear6Icon','indexOf','draw','PictureFill','getRealBound','docs-shape-ui.shape.type.flow-chart-offline-storage','startOffset','onCommandExecuted','_getActiveDrawingParam','ActionButtonReturn','calculate','Donut','_closeShapeEditPanel','905572anBQdG','subscribeEvent','CornerTabs','adjName','SolidFill','_commandService','docs-shape-ui.shape.type.action-button-document','Arrow','ShapeBorderCallout3Icon','objects','IrregularSeal2','docs-shape-ui.shape.type.star32','below','PARAGRAPH','docs-shape-ui.shape.type.corner-tabs','top','_loadAndSetImage','Rect','ShapeLeftBracketIcon','getCurrentTypeOfUnit$','docs-shape-ui.shape.type.lightning-bolt','ShapeLeftCircularArrowIcon','_activeShapeId','docs-shape-ui.shape.type.wedge-ellipse-callout','documentStyle','drawWith','docs-shape-ui.shape.type.action-button-help','version','_attachAdjustEvent','ShapeAccentBorderCallout3Icon','ShapeHomePlateIcon','Pentagon','UpArrowCallout','getDrawingEditable','docs-shape-ui.shape.type.home-plate','_isStartAdjusting','docs-shape-ui.shape.type.half-frame','default','fonts$','oKey','docs-shape-ui.shape.type.bent-connector3-arrow1','_transform','defineProperty','ancestorTransform','docs-shape-ui.shape.type.ribbon','shapeModel','ShapeFlowChartSummingJunctionIcon','ShapeBentConnector3Icon','viewBound','ShapeHalfFrameIcon','docs-shape-ui.shape.type.chart-plus','_lastEditingShapeKey','ShapeDodecagonIcon','ShapeParallelogramIcon','13992jjGLFF','spaceAbove','GROUP','ShapeSnipRoundRectIcon','docs-shape-ui.shape.type.snip2-same-rect','ShapeActionButtonBlankIcon','Frame','MathNotEqual','string','LeftBracket','TRUE','getShapeTypeById','classType','ShapeFlowChartTerminatorIcon','isRichText','docs-shape-ui.shape.type.flow-chart-merge','QuadArrow','ShapeTriangleIcon','setOnSavingEditorData','image','ShapeRightBracketIcon','docs-shape-ui.shape.type.curved-connector3-arrow2','includes','flipY','_draw','ShapeFrameIcon','ShapeRound2SameRectIcon','ShapeCurvedUpArrowIcon','NoSmoking','Teardrop','_menuManagerService','_activeAdjustInfo','asObservable','docs-shape-ui.shape.type.action-button-end','onPointerMove$','BracketPair','docs-shape-ui.deleteShape','ActionButtonMovie','docs-shape-ui.textWrap.square','ShapeBevelIcon','TOP','ShapeAccentCallout3Icon','ShapeRectTextboxVerticalIcon','zeroWidthParagraphBreak','1379DPOKcH','remove$','docs-shape-ui.textWrap.topAndBottom','ShapeCornerIcon','clipByShape','docs-shape-ui.shape.type.action-button-information','getViewports','docs-shape-ui.shape.type.smiley-face','shapeText','ShapeLineIcon','ShapeNonIsoscelesTrapezoidIcon','RightTriangle','size','ShapeActionButtonHomeIcon','rectangle','ActionButtonHome','doc.command.menu-insert-shape','UNIVER_DOC','values','MathPlus','ActionButtonBackPrevious','Medium','docs-shape-ui.shape.type.star6','SHAPE','render','BlockArc','ShapeLeftUpArrowIcon','ShapeStar32Icon','docs-shape-ui.shape.type.flow-chart-punched-tape','getFocusDrawings','DOCS_SHAPE_UI_PLUGIN','ShapeDownArrowIcon','docs-shape-ui.shape.type.round2-same-rect','docs-shape-ui.shape.type.bevel','docs-shape-ui.shape.type.border-callout2','refreshShapeFillImage','Plaque','docs-shape-ui.shape.type.down-arrow-callout','MathMinus','docs-shape-ui.shape.type.corner','clearControl$','applyPoint','ShapeIrregularSeal2Icon','_updateShape','_sidebarService','UpDownArrowCallout','ShapeBentArrowIcon','HalfFrame','655704ybuNXR','BorderCallout2','docs-shape-ui.shape.type.pie','FlowchartMultiDocument','AccentBorderCallout1','_unitId','renderConfig','_getShapeAdjustInfosById','_disposePopups','target','Callout1','docs-shape-ui.shape.type.horizontal-scroll','strokeWidth','equationShape','name','_initEvents'];_0x2bd4=function(){return _0x299224;};return _0x2bd4();}Va=W([U(0x1,_0x33309c(_0x373df0)),U(0x2,_0x33309c(_0x23a71d)),U(0x3,_0x33309c(_0x52a9bb)),U(0x4,_0x33309c(_0x20066e))],Va);let $=class extends _0x289022{constructor(_0x2ad90e=Ea,_0x58b413,_0x5abfc4,_0xd4d92b,_0x54c85c){const _0x47fff1=_0x130702;super(),this['_config']=_0x2ad90e,this['_injector']=_0x58b413,this[_0x47fff1(0x22d)]=_0x5abfc4,this[_0x47fff1(0x361)]=_0xd4d92b,this[_0x47fff1(0x19a)]=_0x54c85c;let {menu:_0x1859b4,..._0x8c3003}=_0x269ee8({},Ea,this[_0x47fff1(0x2f9)]);_0x1859b4&&this[_0x47fff1(0x361)][_0x47fff1(0x400)](_0x47fff1(0x212),_0x1859b4,{'merge':!0x0}),this['_configService'][_0x47fff1(0x400)]('docs-shape-ui.config',_0x8c3003),this[_0x47fff1(0x17b)]();}[_0x130702(0x1b4)](){const _0x2459ae=_0x130702;this[_0x2459ae(0x379)][_0x2459ae(0x1c0)]([Pa]),this['_injector'][_0x2459ae(0x3e9)](Pa),_0x1ed5d3(this[_0x2459ae(0x379)],[[Y],[Q],[Z],[Ia],[G],[J]]),this[_0x2459ae(0x15c)]();}[_0x130702(0x3ff)](){const _0x361dcf=_0x130702;this[_0x361dcf(0x19a)][_0x361dcf(0x142)](_0x2ded89[_0x361dcf(0x29b)],[Ia]),this[_0x361dcf(0x19a)][_0x361dcf(0x142)](_0x2ded89['UNIVER_DOC'],[za]),this[_0x361dcf(0x19a)][_0x361dcf(0x142)](_0x2ded89[_0x361dcf(0x29b)],[Va]),_0x2afea8(this[_0x361dcf(0x379)],[[Y],[Q],[Z],[G],[J]]);}[_0x130702(0x17b)](){const _0x3dfb45=_0x130702;[B,ra,V]['forEach'](_0x5cf1a6=>this[_0x3dfb45(0x34a)](this['_commandService']['registerCommand'](_0x5cf1a6)));}[_0x130702(0x15c)](){const _0x53606=_0x130702;let _0x1049a6=this[_0x53606(0x379)],_0x1db6e7=_0x1049a6['get'](_0x2c4c79);this['disposeWithMe'](_0x1db6e7[_0x53606(0x2ed)](_0x55c578['CONTENT'],()=>_0x2ad088(Na,_0x1049a6)));}};q($,_0x130702(0x2f4),_0x2ded89['UNIVER_DOC']),q($,'pluginName',_0x130702(0x2a8)),q($,'packageName',wa),q($,_0x130702(0x243),Ta),$=W([_0x50e9e5(_0x4310f8,_0x68c679,_0x4f49b5),U(0x1,_0x33309c(_0x30da42)),U(0x2,_0x56458c),U(0x3,_0x241fe7),U(0x4,_0x446451)],$);export{ra as CloseDocShapeFormatPanelOperation,Y as DocsShapeUIController,B as MenuInsertShapeCommand,V as OpenDocShapeFormatPanelOperation,$ as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0x1bbd40=_0x4f1b;(function(_0x586526,_0x38c600){const _0x3e3af3=_0x4f1b,_0x4818f6=_0x586526();while(!![]){try{const _0x47e063=-parseInt(_0x3e3af3(0xf8))/0x1+-parseInt(_0x3e3af3(0x24c))/0x2*(-parseInt(_0x3e3af3(0x105))/0x3)+parseInt(_0x3e3af3(0x159))/0x4+-parseInt(_0x3e3af3(0x1d8))/0x5+parseInt(_0x3e3af3(0xfb))/0x6+parseInt(_0x3e3af3(0x1d4))/0x7*(parseInt(_0x3e3af3(0x22d))/0x8)+parseInt(_0x3e3af3(0x220))/0x9*(-parseInt(_0x3e3af3(0x13f))/0xa);if(_0x47e063===_0x38c600)break;else _0x4818f6['push'](_0x4818f6['shift']());}catch(_0x54c61b){_0x4818f6['push'](_0x4818f6['shift']());}}}(_0x345a,0x797e7));import{DEFAULT_DOC_SHAPE_HEIGHT as _0x41b068,DEFAULT_DOC_SHAPE_WIDTH as _0x5c37b1,DocsShapeService as _0x5d1274,InsertDocShapeMutation as _0x10a2a1,UniverDocsShapePlugin as _0x415ce7,UpdateDocShapeDataCommand as _0x552717,UpdateDocShapeDataMutation as _0x45fcbf}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2d97ef,ShapeArrowSizeEnum as _0x96dbec,ShapeArrowTypeEnum as _0x2ff46c,ShapeDefaultConfig as _0x422975,ShapeFillEnum as _0x5c3d0e,ShapeLineTypeEnum as _0x3296f8,ShapeModel as _0x123dc3,ShapeRenderModeEnum as _0x15090c,ShapeTypeEnum as _0x4adef7,isConnectorShape as _0x1d0db4}from'@univerjs-pro/engine-shape';import{BooleanNumber as _0x48a9fb,CommandType as _0x30b14e,DependentOn as _0x37196e,Disposable as _0x85f344,DocumentDataModel as _0x4afae8,DrawingTypeEnum as _0x4d493a,FOCUSING_COMMON_DRAWINGS as _0x498191,FOCUSING_SHAPE_TEXT_EDITOR as _0x19322a,GridType as _0x5dac55,HorizontalAlign as _0x3f4132,ICommandService as _0x4f0a70,IConfigService as _0x157fe9,IContextService as _0x34c950,IURLImageService as _0x3ff91b,IUniverInstanceService as _0x349157,Inject as _0x34aebd,Injector as _0xed1485,LocaleService as _0x569932,ObjectRelativeFromH as _0x495e58,ObjectRelativeFromV as _0x36fe51,Plugin as _0x2b5c51,PositionedObjectLayoutType as _0x3c1880,Tools as _0x348975,UniverInstanceType as _0x4ed47c,VerticalAlign as _0x289ae6,WrapStrategy as _0x220b46,WrapTextType as _0x40cbb0,createInternalEditorID as _0x1dacbc,generateRandomId as _0x5a6f05,merge as _0x5b666f,registerDependencies as _0x202f0c,toDisposable as _0x3fd961,touchDependencies as _0xe8fd5b}from'@univerjs/core';import{DocContentInsertService as _0x1ff6fc,DocSelectionManagerService as _0x4e083d}from'@univerjs/docs';import{DocDrawingPosition as _0x5154df,DocDrawingTextWrap as _0x52e48b,InsertDocDrawingCommand as _0x1d7cf6,RemoveDocDrawingCommand as _0x2b24da,UniverDocsDrawingUIPlugin as _0x3b7eea}from'@univerjs/docs-drawing-ui';function _0x4f1b(_0x286b8e,_0x105c94){_0x286b8e=_0x286b8e-0xbd;const _0x345ac6=_0x345a();let _0x4f1b96=_0x345ac6[_0x286b8e];return _0x4f1b96;}import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x59e32f,DOC_CONTENT_INSERT_MENU_ID as _0x12619f,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x50fee6,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x2419eb,DocCanvasPopManagerService as _0x5ad9f9,DocParagraphMenuService as _0x2d6f1c,DocSelectionRenderService as _0x27784a,EMPTY_PARAGRAPH_MENU_ID as _0x200db8,INSERT_BELLOW_MENU_ID as _0x353bba,VIEWPORT_KEY as _0x38ba01,docDrawingPositionToTransform as _0x3f3f19}from'@univerjs/docs-ui';import{CURSOR_TYPE as _0x262607,Circle as _0x24796b,DRAWING_OBJECT_LAYER_INDEX as _0x5e28c1,DocumentSkeleton as _0x50d814,DocumentViewModel as _0x4563f6,Documents as _0x5af252,IRenderManagerService as _0x296a13,RENDER_CLASS_TYPE as _0x2d98d9,Shape as _0x12df3c,Transform as _0x1d3b77,VERTICAL_ROTATE_ANGLE as _0x4f7ac3,Vector2 as _0x1110ec}from'@univerjs/engine-render';import{IDrawingManagerService as _0x34a81f,IImageIoService as _0x5c2ad5,getDrawingShapeKeyByDrawingSearch as _0x586d8f}from'@univerjs/drawing';import{BuiltInUIPart as _0x107fca,ComponentManager as _0x526e80,ContextMenuGroup as _0x2ae9ca,ContextMenuPosition as _0x2e5468,IMenuManagerService as _0x2e5075,ISidebarService as _0xa9df1f,IUIPartsService as _0x883bbc,MenuItemType as _0x52d607,RibbonInsertGroup as _0x4353c7,connectInjector as _0x5bced6,getMenuHiddenObservable as _0x2aa09f,useDependency as _0x5d4092}from'@univerjs/ui';import{ShapeEditPanel as _0x5893a6,ShapeFloatingToolbar as _0xab006b,ShapeGroupEnum as _0x1f5463,ShapePickerDropdown as _0x2063f7,ShapePickerPanel as _0x436943,ShapeTextEditorContainer as _0x34e90d,ShapeTextFloatMenuRenderControllerBase as _0x50ec2b,ShapeTextFloatToolbar as _0x5260cf,TextWrapShapeIcon as _0x47a145,UniverShapeEditorUIPlugin as _0x1e708a,buildShapeTextDataUpdate as _0x173237}from'@univerjs-pro/shape-editor-ui';import{DrawingCommonPanel as _0x4bc954,DrawingImageClipService as _0x4046b0,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x291fc7,insertGroupObject as _0x3636f6}from'@univerjs/drawing-ui';import{jsx as _0x21da97,jsxs as _0x7554e4}from'react/jsx-runtime';import{BehaviorSubject as _0x58c496}from'rxjs';import{memo as _0x56a1e9,useEffect as _0x598978,useMemo as _0x35c590,useState as _0xbdcd9}from'react';import{UniverLicensePlugin as _0x12db1a}from'@univerjs-pro/license';const Tt=_0x1bbd40(0x1cc),Et=_0x1bbd40(0x222);function Dt(_0x27beea,_0x4c74c9){const _0x95d2e9=_0x1bbd40;if(_0x4c74c9){if(_0x1d0db4(_0x27beea)&&(_0x4c74c9[_0x95d2e9(0x1e9)]||_0x4c74c9[_0x95d2e9(0x13a)]))return{'ln':{'startArrow':_0x4c74c9[_0x95d2e9(0x1e9)]?{'type':_0x2ff46c[_0x95d2e9(0xfa)],'size':_0x96dbec['Medium']}:void 0x0,'endArrow':_0x4c74c9['endArrow']?{'type':_0x2ff46c['Arrow'],'size':_0x96dbec[_0x95d2e9(0x1f7)]}:void 0x0}};if(_0x27beea===_0x4adef7[_0x95d2e9(0xdc)]&&(_0x4c74c9[_0x95d2e9(0xdd)]||_0x4c74c9[_0x95d2e9(0xed)]))return{'fill':{'fillType':_0x5c3d0e[_0x95d2e9(0x255)],'color':Tt},'stroke':{'lineStrokeType':_0x3296f8[_0x95d2e9(0x219)],'width':0x1,'color':Et},'shapeText':{'isHorizontal':!!_0x4c74c9[_0x95d2e9(0xdd)]}};}}function Ot(_0x116808,_0x3e94f2){const _0x18a21f=_0x1bbd40;var _0x3cfee0;let _0x447205=_0x116808[_0x18a21f(0x169)](_0x296a13)[_0x18a21f(0x12f)](_0x3e94f2),_0x5bfb16=_0x447205==null||(_0x3cfee0=_0x447205[_0x18a21f(0x18c)](_0x27784a)[_0x18a21f(0x192)]())==null?void 0x0:_0x3cfee0[_0x18a21f(0x140)]();return _0x5bfb16?{'left':_0x5bfb16[_0x18a21f(0x132)],'top':_0x5bfb16[_0x18a21f(0xc3)]}:null;}function kt(_0x27054a,_0x3f408c,_0x5c5526){const _0x1220d3=_0x1bbd40;var _0x12de72,_0x27afbe,_0x175166;if(!_0x5c5526)return null;let _0x2c3693=_0x27054a[_0x1220d3(0x169)](_0x296a13)[_0x1220d3(0x12f)](_0x3f408c),_0x1f047e=_0x2c3693==null?void 0x0:_0x2c3693[_0x1220d3(0x18c)](_0x2d6f1c)[_0x1220d3(0x1d6)];if(!_0x1f047e)return null;let _0x1717cd=_0x5c5526===_0x1220d3(0x217)?{'startOffset':_0x1f047e[_0x1220d3(0xee)][_0x1220d3(0xd0)],'endOffset':_0x1f047e['moveRange'][_0x1220d3(0xd0)]}:_0x1f047e[_0x1220d3(0x206)];return{'range':{'unitId':_0x3f408c,'startOffset':_0x1717cd[_0x1220d3(0xbe)],'endOffset':_0x1717cd[_0x1220d3(0xd0)],'segmentId':(_0x12de72=(_0x27afbe=_0x1f047e[_0x1220d3(0xcd)])==null?void 0x0:_0x27afbe[_0x1220d3(0x11b)])==null?'':_0x12de72},'position':(_0x175166=_0x1f047e[_0x1220d3(0xcd)])!=null&&_0x175166['rect']?{'left':_0x1f047e['paragraph'][_0x1220d3(0x191)][_0x1220d3(0x132)],'top':_0x5c5526===_0x1220d3(0x217)?_0x1f047e[_0x1220d3(0xcd)][_0x1220d3(0x191)]['bottom']:_0x1f047e['paragraph'][_0x1220d3(0x191)][_0x1220d3(0xc3)]}:null};}function At(_0x3ad936,_0x57ceb6,_0x10df65){const _0xe46d20=_0x1bbd40;var _0x488f59;return{'size':{'width':_0x3ad936,'height':_0x57ceb6},'positionH':{'relativeFrom':_0x495e58[_0xe46d20(0x216)],'posOffset':(_0x488f59=_0x10df65==null?void 0x0:_0x10df65[_0xe46d20(0x132)])==null?0x0:_0x488f59},'positionV':{'relativeFrom':_0x36fe51[_0xe46d20(0x11e)],'posOffset':0x0},'angle':0x0};}const z={'type':_0x30b14e['COMMAND'],'id':_0x1bbd40(0x21a),'handler':async(_0x58c50d,_0x146d25)=>{const _0x3ccbfd=_0x1bbd40;var _0x58e28d,_0x4a56d2,_0x1199e7,_0x507394,_0x4a428b,_0x148ff4;let _0x2ceac8=_0x58c50d[_0x3ccbfd(0x169)](_0x349157)[_0x3ccbfd(0xc4)](_0x4ed47c[_0x3ccbfd(0x1ae)]);if(!_0x2ceac8)return!0x1;let _0x4e2472=_0x58c50d[_0x3ccbfd(0x169)](_0x4f0a70),_0xd9fb3b=_0x2ceac8['getUnitId'](),_0x18f797=_0xd9fb3b,_0x4320bf=(_0x58e28d=_0x146d25['shapeId'])==null?_0x5a6f05():_0x58e28d,_0x450639=(_0x4a56d2=_0x146d25[_0x3ccbfd(0x1ef)])==null?_0x5c37b1:_0x4a56d2,_0x24ec5f=(_0x1199e7=_0x146d25[_0x3ccbfd(0xe1)])==null?_0x41b068:_0x1199e7,_0x157eb2=(_0x507394=(_0x4a428b=_0x146d25[_0x3ccbfd(0x21c)])==null?Dt(_0x146d25[_0x3ccbfd(0x18b)],_0x146d25[_0x3ccbfd(0x241)]):_0x4a428b)==null?{'fill':{'fillType':_0x5c3d0e['SolidFill'],'color':Tt},'stroke':{'lineStrokeType':_0x3296f8['SolidLine'],'width':0x1,'color':Et}}:_0x507394,_0xa4646f=kt(_0x58c50d,_0xd9fb3b,_0x146d25['paragraphMenuPlacement']),_0x1f359e=(_0x148ff4=_0xa4646f==null?void 0x0:_0xa4646f[_0x3ccbfd(0x1f2)])==null?Ot(_0x58c50d,_0xd9fb3b):_0x148ff4,_0x4b2026=At(_0x450639,_0x24ec5f,_0x1f359e),_0x2981bf=_0x3f3f19(_0x4b2026);_0x2981bf&&_0x1f359e&&(_0x2981bf['top']=_0x1f359e[_0x3ccbfd(0xc3)]),_0x4e2472['syncExecuteCommand'](_0x10a2a1['id'],{'unitId':_0xd9fb3b,'shapeId':_0x4320bf,'shapeType':_0x146d25[_0x3ccbfd(0x18b)],'shapeData':_0x157eb2}),_0xa4646f&&_0x58c50d[_0x3ccbfd(0x169)](_0x1ff6fc)[_0x3ccbfd(0x237)](_0xa4646f['range']);let _0x3692ad={'unitId':_0xd9fb3b,'subUnitId':_0x18f797,'drawingId':_0x4320bf,'drawingType':_0x4d493a[_0x3ccbfd(0x112)],'transform':_0x2981bf,'docTransform':_0x4b2026,'data':{'shapeType':_0x146d25[_0x3ccbfd(0x18b)],'shapeData':_0x157eb2},'behindDoc':_0x48a9fb[_0x3ccbfd(0x148)],'title':'','description':'','layoutType':_0x3c1880[_0x3ccbfd(0x15d)],'wrapText':_0x40cbb0[_0x3ccbfd(0x23c)],'distB':0x0,'distL':0x0,'distR':0x0,'distT':0x0,'allowTransform':!0x0};return!!_0x4e2472[_0x3ccbfd(0x134)](_0x1d7cf6['id'],{'unitId':_0xd9fb3b,'drawings':[_0x3692ad]});}},jt={'type':_0x30b14e['OPERATION'],'id':'doc.operation.close-doc-shape-format-panel','handler'(){return!0x0;}},B={'type':_0x30b14e[_0x1bbd40(0x173)],'id':_0x1bbd40(0x239),'handler'(){return!0x0;}},Mt=_0x1bbd40(0xf4),Nt=_0x1dacbc(_0x1bbd40(0x1d2));function V(_0x55f521,_0x2b348b){return function(_0xceb342,_0x499776){_0x2b348b(_0xceb342,_0x499776,_0x55f521);};}function H(_0x1b9d1a,_0x57d703,_0xd40970,_0x144250){const _0x1e2b82=_0x1bbd40;var _0x7dc725=arguments[_0x1e2b82(0x21f)],_0x3645af=_0x7dc725<0x3?_0x57d703:_0x144250===null?_0x144250=Object['getOwnPropertyDescriptor'](_0x57d703,_0xd40970):_0x144250,_0x2cf7cf;if(typeof Reflect==_0x1e2b82(0x131)&&typeof Reflect[_0x1e2b82(0x1f0)]==_0x1e2b82(0x1a9))_0x3645af=Reflect[_0x1e2b82(0x1f0)](_0x1b9d1a,_0x57d703,_0xd40970,_0x144250);else{for(var _0xc112ac=_0x1b9d1a[_0x1e2b82(0x21f)]-0x1;_0xc112ac>=0x0;_0xc112ac--)(_0x2cf7cf=_0x1b9d1a[_0xc112ac])&&(_0x3645af=(_0x7dc725<0x3?_0x2cf7cf(_0x3645af):_0x7dc725>0x3?_0x2cf7cf(_0x57d703,_0xd40970,_0x3645af):_0x2cf7cf(_0x57d703,_0xd40970))||_0x3645af);}return _0x7dc725>0x3&&_0x3645af&&Object[_0x1e2b82(0x116)](_0x57d703,_0xd40970,_0x3645af),_0x3645af;}let U=class extends _0x85f344{constructor(_0x4b4321,_0x91530){const _0x583b65=_0x1bbd40;super(),this[_0x583b65(0x1e5)]=_0x4b4321,this[_0x583b65(0x139)]=_0x91530,this[_0x583b65(0x143)](),this[_0x583b65(0x1e5)][_0x583b65(0x1a2)](!0x0),this[_0x583b65(0x103)]({'dispose':()=>this[_0x583b65(0x1e5)][_0x583b65(0x1a2)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x55abe0=_0x1bbd40;let _0x19cdd6=new Map(),_0x51ed52=this[_0x55abe0(0x1e5)][_0x55abe0(0xd7)]((_0x591297,_0xd93551,_0x38a627,_0x28b41d,_0x308dd2)=>{const _0x2c77ea=_0x55abe0;let _0x4f3a3c=_0xd93551;if(_0x4f3a3c===_0x4adef7[_0x2c77ea(0x160)]||_0xd93551===_0x2c77ea(0xe9))return!0x1;try{let _0x41a775=_0x19cdd6[_0x2c77ea(0x169)](_0xd93551);return _0x41a775||(_0x41a775=new _0x123dc3(_0x4f3a3c,_0x2c77ea(0xd9)+_0xd93551),_0x19cdd6[_0x2c77ea(0x11a)](_0xd93551,_0x41a775)),_0x308dd2&&_0x41a775[_0x2c77ea(0x13d)]({'adjustValues':_0x308dd2},!0x0),_0x41a775[_0x2c77ea(0xf7)]({'width':_0x38a627,'height':_0x28b41d}),_0x41a775[_0x2c77ea(0x165)](_0x591297,{'left':0x0,'top':0x0,'width':_0x38a627,'height':_0x28b41d});}catch{return!0x1;}});this[_0x55abe0(0x103)](_0x51ed52),this['disposeWithMe']({'dispose':()=>_0x19cdd6[_0x55abe0(0x111)]()});}[_0x1bbd40(0x1dc)](_0x463bf1,_0x3dfad1,_0x56beba,_0x359afa,_0x3435db){const _0x238aee=_0x1bbd40;let _0x32cf4a=this[_0x238aee(0x139)][_0x238aee(0x174)](_0x463bf1,_0x3dfad1)[_0x56beba];!_0x32cf4a||_0x32cf4a['drawingType']!==_0x4d493a['DRAWING_IMAGE']||this[_0x238aee(0x139)][_0x238aee(0x15f)]([{..._0x32cf4a,'prstGeom':_0x359afa,'adjustValues':_0x3435db}]);}};U=H([V(0x0,_0x34aebd(_0x4046b0)),V(0x1,_0x34aebd(_0x34a81f))],U);const Pt=_0x1bbd40(0x10b);function Ft({onShapeClick:_0x3b400f,excludeGroups:_0x2fb0af}){return _0x21da97(_0x436943,{'excludeGroups':_0x2fb0af,'onShapeClick':_0x3b400f});}function It(){const _0xb8b405=_0x1bbd40;let _0x3e48a5=_0x5d4092(_0x34a81f),_0x2978a8=_0x5d4092(U);return _0x21da97(_0x2063f7,{'buttonLabel':_0xb8b405(0xcf),'excludeGroups':[_0x1f5463[_0xb8b405(0x100)]],'onShapeClick':_0x5c6ff3=>{const _0x26bcc3=_0xb8b405;let _0x4b4ec4=_0x3e48a5['getFocusDrawings']()[_0x26bcc3(0x166)](_0x1b3009=>_0x1b3009['drawingType']===_0x4d493a[_0x26bcc3(0xef)]);if(!_0x4b4ec4)return;let {unitId:_0x3e4363,subUnitId:_0x30c5f9,drawingId:_0x2e3e6b}=_0x4b4ec4;_0x2978a8['clipByShape'](_0x3e4363,_0x30c5f9,_0x2e3e6b,_0x5c6ff3['type']);}});}function Lt({paragraphMenuPlacement:_0x44191d}){let _0x1fff69=_0x5d4092(_0x4f0a70);return _0x21da97(Ft,{'onShapeClick':_0xc9765b=>{const _0x257164=_0x4f1b;_0x1fff69['executeCommand'](z['id'],{'paragraphMenuPlacement':_0x44191d,'value':_0xc9765b[_0x257164(0xff)],'enhanceParams':{'endArrow':_0xc9765b[_0x257164(0x13a)],'startArrow':_0xc9765b[_0x257164(0x1e9)],'horizontal':_0xc9765b['horizontal'],'vertical':_0xc9765b['vertical']}});}});}function Rt(_0x70fb68){const _0x376ebd=_0x1bbd40;return _0x57eaf2=>({'id':z['id'],'type':_0x52d607[_0x376ebd(0x204)],'selections':[{'label':{'name':Pt,'hoverable':!0x1,'selectable':!0x1,'props':_0x70fb68?{'id':z['id'],'paragraphMenuPlacement':_0x70fb68}:{'id':z['id']}}}],'icon':_0x376ebd(0x20e),'title':_0x376ebd(0x15b),'tooltip':_0x376ebd(0x15b),'hidden$':_0x2aa09f(_0x57eaf2,_0x4ed47c[_0x376ebd(0x1ae)])});}const zt=Rt(),Bt=Rt(_0x1bbd40(0x217)),Vt=Rt(_0x1bbd40(0xf5)),Ht={[_0x4353c7[_0x1bbd40(0xe8)]]:{[z['id']]:{'order':0x4,'menuItemFactory':zt}},[_0x2e5468['PARAGRAPH']]:{[_0x2ae9ca['LAYOUT']]:{[_0x353bba]:{[z['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Bt}}},[_0x12619f]:{[_0x2ae9ca[_0x1bbd40(0x115)]]:{[z['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Bt}}},[_0x200db8]:{[_0x2ae9ca[_0x1bbd40(0x115)]]:{[z['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Vt}}},[_0x2419eb]:{'insert':{[z['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':zt}}},[_0x50fee6]:{'insert':{[z['id']+_0x1bbd40(0x1ad)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Bt}}}}};function W(_0x27135f){'@babel/helpers - typeof';const _0x54b0ec=_0x1bbd40;return W=typeof Symbol==_0x54b0ec(0x1a9)&&typeof Symbol[_0x54b0ec(0x227)]=='symbol'?function(_0x45dff0){return typeof _0x45dff0;}:function(_0x22e5f8){const _0x519b9c=_0x54b0ec;return _0x22e5f8&&typeof Symbol=='function'&&_0x22e5f8[_0x519b9c(0x248)]===Symbol&&_0x22e5f8!==Symbol['prototype']?'symbol':typeof _0x22e5f8;},W(_0x27135f);}function Ut(_0x31e533,_0x5c254c){const _0x52b19b=_0x1bbd40;if(W(_0x31e533)!=_0x52b19b(0x131)||!_0x31e533)return _0x31e533;var _0x95102e=_0x31e533[Symbol[_0x52b19b(0x194)]];if(_0x95102e!==void 0x0){var _0x3e4be4=_0x95102e[_0x52b19b(0x1c9)](_0x31e533,_0x5c254c||'default');if(W(_0x3e4be4)!=_0x52b19b(0x131))return _0x3e4be4;throw TypeError(_0x52b19b(0x14b));}return(_0x5c254c===_0x52b19b(0x246)?String:Number)(_0x31e533);}function Wt(_0x361e58){const _0x3f890d=_0x1bbd40;var _0xb0979e=Ut(_0x361e58,_0x3f890d(0x246));return W(_0xb0979e)=='symbol'?_0xb0979e:_0xb0979e+'';}function G(_0x3b8cd9,_0x1aff45,_0x1bda12){const _0x2f84ea=_0x1bbd40;return(_0x1aff45=Wt(_0x1aff45))in _0x3b8cd9?Object[_0x2f84ea(0x116)](_0x3b8cd9,_0x1aff45,{'value':_0x1bda12,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b8cd9[_0x1aff45]=_0x1bda12,_0x3b8cd9;}var K=class extends _0x85f344{constructor(..._0x2845a8){const _0x3f7589=_0x1bbd40;super(..._0x2845a8),G(this,_0x3f7589(0x16d),new _0x58c496(null)),G(this,_0x3f7589(0x1ce),this[_0x3f7589(0x16d)][_0x3f7589(0x167)]()),G(this,_0x3f7589(0xc0),new _0x58c496(!0x1)),G(this,_0x3f7589(0x11f),this['_onSavingEditorData$'][_0x3f7589(0x167)]());}[_0x1bbd40(0x1ee)](){const _0xdd5026=_0x1bbd40;this[_0xdd5026(0x16d)][_0xdd5026(0x203)](null),this[_0xdd5026(0x16d)][_0xdd5026(0x209)](),this[_0xdd5026(0xc0)][_0xdd5026(0x203)](!0x1),this['_onSavingEditorData$'][_0xdd5026(0x209)](),super[_0xdd5026(0x1ee)]();}[_0x1bbd40(0x242)](_0x4eef6a){const _0x4b8471=_0x1bbd40;this[_0x4b8471(0x16d)][_0x4b8471(0x203)](_0x4eef6a),_0x4eef6a==null&&this[_0x4b8471(0xc0)]['next'](!0x1);}[_0x1bbd40(0x1f9)](_0x1ae4cf){const _0xdeed34=_0x1bbd40;this['_onSavingEditorData$'][_0xdeed34(0x203)](_0x1ae4cf);}['getEditing'](){const _0x45e06e=_0x1bbd40;return this[_0x45e06e(0x16d)]['getValue']();}};function Gt(_0x12826d,_0x5a504f,_0x45c840,_0x5b2198,_0x743e9,_0x2cd758){const _0x3bc733=_0x1bbd40;let _0xb255ce={'unitId':_0x5a504f,'shapeId':_0x5b2198,'shapeData':_0x2cd758,'oldShapeJSON':_0x743e9};return _0x12826d[_0x3bc733(0x190)](_0x552717['id'],_0xb255ce);}function Kt(_0x39e584,_0x51b777,_0x3faa2b,_0x2369c4,_0xe7a1e5,_0xe9c3ac){const _0x91f177=_0x1bbd40;let _0x15e3b9={'unitId':_0x51b777,'shapeId':_0x2369c4,'shapeData':_0xe9c3ac,'oldShapeJSON':_0xe7a1e5};return _0x39e584[_0x91f177(0x190)](_0x552717['id'],_0x15e3b9);}const qt=_0x1bbd40(0x124);function Jt(_0xd86026){const _0x5c08a3=_0x1bbd40;let _0x2c4cb0=_0xd86026[_0x5c08a3(0x152)];return _0x2c4cb0&&'dataModel'in _0x2c4cb0&&_0x2c4cb0[_0x5c08a3(0x1cf)]?_0x2c4cb0[_0x5c08a3(0x1cf)]:null;}function Yt(_0x580db8){const _0x1bf4e5=_0x1bbd40;var _0x264536,_0x23cdcb,_0x3fdbd1,_0x2b0149;let _0x162bd6=(_0x264536=Jt(_0x580db8))==null?void 0x0:_0x264536[_0x1bf4e5(0x213)],_0x289be7=(_0x23cdcb=_0x162bd6==null||(_0x3fdbd1=_0x162bd6[_0x1bf4e5(0xe2)])==null||(_0x3fdbd1=_0x3fdbd1['textRuns'])==null||(_0x3fdbd1=_0x3fdbd1[0x0])==null?void 0x0:_0x3fdbd1['ts'])==null?{}:_0x23cdcb;return{..._0x162bd6==null||(_0x2b0149=_0x162bd6[_0x1bf4e5(0x129)])==null?void 0x0:_0x2b0149['textStyle'],..._0x289be7};}function Xt(_0x463565,_0xc00b40){const _0x175f17=_0x1bbd40;var _0x5c122b;let _0x2370f7=_0x463565==null||(_0x5c122b=_0x463565[_0x175f17(0x208)]()[_0x175f17(0x245)])==null?void 0x0:_0x5c122b[_0xc00b40];return _0x2370f7?_0x2370f7['layoutType']===_0x3c1880[_0x175f17(0x172)]?_0x2370f7[_0x175f17(0xf2)]===_0x48a9fb['TRUE']?_0x175f17(0x1a8):'inFrontOfText':_0x2370f7[_0x175f17(0x1af)]===_0x3c1880[_0x175f17(0x225)]?'wrapSquare':_0x2370f7['layoutType']===_0x3c1880['WRAP_TOP_AND_BOTTOM']?_0x175f17(0xdf):_0x175f17(0x181):_0x175f17(0x181);}function Zt(_0x5bfe09){const _0xffdd90=_0x1bbd40;var _0x298737,_0xfc4f84,_0x574aa3;let _0x1d9480=_0x5bfe09[_0xffdd90(0x12d)]['extraProps'],_0x456b39=_0x5d4092(_0x4f0a70),_0x593c9e=_0x5d4092(_0x569932),_0x3c7c8a=_0x5d4092(_0x5d1274),_0xd333fa=_0x5d4092(_0x349157),{unitId:_0x6bd6aa,subUnitId:_0x2ef79f,drawingId:_0x43a0e6,shapeType:_0x26a7b8}=_0x1d9480,[_0x540943,_0x4468cb]=_0xbdcd9(_0x1d9480[_0xffdd90(0x21c)]),_0x12a926=(_0x298737=_0xd333fa['getUnit'](_0x6bd6aa,_0x4ed47c[_0xffdd90(0x1ae)]))==null?void 0x0:_0x298737,[_0x229f47,_0x34a2d2]=_0xbdcd9(()=>Xt(_0x12a926,_0x43a0e6)),_0x5ba96b=_0x35c590(()=>Yt(_0x540943),[_0x540943]),_0x53333c=_0x35c590(()=>Jt(_0x540943),[_0x540943]);_0x598978(()=>{const _0x4674e9=_0xffdd90;let _0x2eb0dd=_0x456b39[_0x4674e9(0x23e)](_0x53f46e=>{if(_0x53f46e['id']!==_0x45fcbf['id'])return;let _0x51c4f6=_0x3c7c8a['getShapeDataById'](_0x6bd6aa,_0x2ef79f,_0x43a0e6);_0x51c4f6&&_0x4468cb(_0x51c4f6);});return()=>_0x2eb0dd[_0x4674e9(0x1ee)]();},[_0x456b39,_0x3c7c8a,_0x43a0e6,_0x2ef79f,_0x6bd6aa]);let _0x7f3e67=_0x56a618=>{_0x4468cb(_0x4ea716=>({..._0x4ea716,..._0x56a618}));},_0x2189b6=_0x448fd2=>{let _0x461d07=_0x173237(_0x540943,_0x448fd2);Gt(_0x456b39,_0x6bd6aa,_0x2ef79f,_0x43a0e6,{'oldShapeData':{'shapeText':_0x540943['shapeText']}},_0x461d07),_0x7f3e67(_0x461d07);},_0x280f19=_0x1c84ad=>{const _0x289037=_0xffdd90;_0x34a2d2(_0x1c84ad),_0x456b39[_0x289037(0x190)](_0x289037(0x1f8),{'unitId':_0x6bd6aa,'subUnitId':_0x2ef79f,'drawings':[{'unitId':_0x6bd6aa,'subUnitId':_0x2ef79f,'drawingId':_0x43a0e6}],'wrappingStyle':_0x1c84ad});},_0x439fac=[{'label':_0x593c9e['t'](_0xffdd90(0xd1)),'value':_0xffdd90(0x181),'icon':_0x21da97(_0x47a145,{})},{'label':_0x593c9e['t'](_0xffdd90(0x240)),'value':_0xffdd90(0x1d9),'icon':_0x21da97(_0x47a145,{})},{'label':_0x593c9e['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0xffdd90(0xdf),'icon':_0x21da97(_0x47a145,{})},{'label':_0x593c9e['t'](_0xffdd90(0x1c2)),'value':'behindText','icon':_0x21da97(_0x47a145,{})},{'label':_0x593c9e['t'](_0xffdd90(0xc6)),'value':_0xffdd90(0x151),'icon':_0x21da97(_0x47a145,{})}];return _0x21da97(_0xab006b,{'shapeData':_0x540943,'shapeType':_0x26a7b8,'textStyle':{'cl':{'rgb':_0xffdd90(0x195)},..._0x5ba96b},'textModel':_0x53333c?{'ha':(_0xfc4f84=_0x53333c['ha'])==null?_0x3f4132[_0xffdd90(0x1b5)]:_0xfc4f84,'va':(_0x574aa3=_0x53333c['va'])==null?_0x289ae6['TOP']:_0x574aa3}:null,'wrappingStyle':_0x229f47,'wrappingStyleOptions':_0x439fac,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'onUpdateShapeData':(_0x54b0b0,_0x312178)=>{Gt(_0x456b39,_0x6bd6aa,_0x2ef79f,_0x43a0e6,_0x54b0b0,_0x312178),_0x312178&&_0x7f3e67(_0x312178);},'onUpdateText':_0x2189b6,'onUpdateWrappingStyle':_0x39b0b8=>_0x280f19(_0x39b0b8),'onOpenPanel':()=>{const _0x2442cd=_0xffdd90;_0x456b39[_0x2442cd(0x190)](B['id'],{'unitId':_0x6bd6aa,'subUnitId':_0x2ef79f,'drawingId':_0x43a0e6});},'onDelete':()=>{const _0x2c1aa2=_0xffdd90;_0x456b39[_0x2c1aa2(0x190)](_0x2b24da['id'],{'unitId':_0x6bd6aa,'drawings':[{'unitId':_0x6bd6aa,'subUnitId':_0x2ef79f,'drawingId':_0x43a0e6}]});}});}let q=class extends _0x85f344{constructor(_0x583358,_0x136fee,_0x471751,_0x41e49f,_0x1758ce,_0x5c4af7,_0xcb88f,_0x5b3467,_0x25ad3c,_0x2e4748,_0x4d20d3){const _0x141a54=_0x1bbd40;super(),this[_0x141a54(0x141)]=_0x583358,this[_0x141a54(0x1b3)]=_0x136fee,this[_0x141a54(0x18f)]=_0x471751,this[_0x141a54(0xcc)]=_0x41e49f,this[_0x141a54(0x110)]=_0x1758ce,this[_0x141a54(0x102)]=_0x5c4af7,this[_0x141a54(0x139)]=_0xcb88f,this['_docCanvasPopManagerService']=_0x5b3467,this[_0x141a54(0x228)]=_0x25ad3c,this[_0x141a54(0x10d)]=_0x2e4748,this[_0x141a54(0xfd)]=_0x4d20d3,G(this,_0x141a54(0xeb),null),G(this,_0x141a54(0x20c),null),G(this,_0x141a54(0x182),!0x1),G(this,'_shapeEditPanelVersion',0x0),G(this,_0x141a54(0x170),new Set()),G(this,_0x141a54(0x1dd),[]),this['_initMenu'](),this[_0x141a54(0x103)](this[_0x141a54(0x141)][_0x141a54(0x10a)](_0x4ed47c[_0x141a54(0x1ae)])['subscribe'](_0x506827=>{const _0x2289b3=_0x141a54;if(!_0x506827){var _0x4231d5;(_0x4231d5=this[_0x2289b3(0xeb)])==null||_0x4231d5[_0x2289b3(0x1ee)]();return;}this[_0x2289b3(0x184)](_0x506827);})),this[_0x141a54(0x226)](),this[_0x141a54(0x210)](),this[_0x141a54(0x103)](this[_0x141a54(0xfd)][_0x141a54(0x1ce)][_0x141a54(0x1ab)](_0x1b5a80=>{_0x1b5a80&&this['_clearPopups']();}));}[_0x1bbd40(0x16e)](){const _0x43aaa6=_0x1bbd40;this[_0x43aaa6(0x18f)]['mergeMenu'](Ht);}[_0x1bbd40(0x210)](){const _0x1d0bd5=_0x1bbd40;this[_0x1d0bd5(0x141)][_0x1d0bd5(0x177)](_0x4ed47c[_0x1d0bd5(0x1ae)])['forEach'](_0x299d2e=>this['_createShapePopupMenu'](_0x299d2e));}[_0x1bbd40(0x1fe)](_0x2e6794,_0x319e03,_0x582772,_0x331391){const _0x33d546=_0x1bbd40;return[{'label':_0x33d546(0x180),'index':0x0,'commandId':B['id'],'commandParams':{'unitId':_0x2e6794,'subUnitId':_0x319e03,'drawingId':_0x582772},'disable':_0x331391===_0x4d493a['DRAWING_DOM']},{'label':'docs-shape-ui.deleteShape','index':0x1,'commandId':_0x2b24da['id'],'commandParams':{'unitId':_0x2e6794,'drawings':[{'unitId':_0x2e6794,'subUnitId':_0x319e03,'drawingId':_0x582772}]},'disable':!0x1},{'label':_0x33d546(0x12a),'index':0x2,'commandId':jt['id'],'commandParams':{'unitId':_0x2e6794,'subUnitId':_0x319e03,'drawingId':_0x582772},'disable':!0x1}];}[_0x1bbd40(0x243)](_0x36a3e7,_0x5ad971,_0x5d1972){const _0x2dcf88=_0x1bbd40;let _0x524d07=this['_docsShapeService']['getShapeTypeById'](_0x36a3e7,_0x5ad971,_0x5d1972),_0xe89eb6=this[_0x2dcf88(0xcc)][_0x2dcf88(0x1ca)](_0x36a3e7,_0x5ad971,_0x5d1972);return _0x524d07!==void 0x0&&_0xe89eb6!==void 0x0?{'shapeData':_0xe89eb6,'shapeId':_0x5d1972,'shapeType':_0x524d07,'unitId':_0x36a3e7,'subUnitId':_0x5ad971,'version':this[_0x2dcf88(0x229)],'disableShapeOption':!0x1}:null;}['_createShapePopupMenu'](_0x169c11){const _0x394d63=_0x1bbd40;if(!_0x169c11)return;let _0x1e42d3=_0x169c11[_0x394d63(0x1a0)]();this['_renderManagerService'][_0x394d63(0x138)](_0x1e42d3)&&!this[_0x394d63(0x170)][_0x394d63(0x138)](_0x1e42d3)&&(this[_0x394d63(0x128)](_0x1e42d3),this[_0x394d63(0x170)]['add'](_0x1e42d3));}[_0x1bbd40(0x233)](){const _0x17f5d0=_0x1bbd40;this[_0x17f5d0(0x1dd)][_0x17f5d0(0x1aa)](_0x1a9aab=>_0x1a9aab[_0x17f5d0(0x1ee)]()),this[_0x17f5d0(0x1dd)][_0x17f5d0(0x21f)]=0x0;}[_0x1bbd40(0x128)](_0x1c1029){const _0x552be8=_0x1bbd40;var _0x167162;let _0x345aa5=(_0x167162=this[_0x552be8(0x228)][_0x552be8(0x12f)](_0x1c1029))==null?void 0x0:_0x167162['scene'],_0x40159f=_0x345aa5==null?void 0x0:_0x345aa5[_0x552be8(0x258)]();!_0x345aa5||!_0x40159f||(this['disposeWithMe'](_0x40159f['createControl$'][_0x552be8(0x1ab)](()=>{const _0x1aa88e=_0x552be8;let _0x445e0c=_0x40159f['getSelectedObjectMap']();if(this[_0x1aa88e(0x233)](),this[_0x1aa88e(0x182)]||_0x445e0c[_0x1aa88e(0x130)]>0x1)return;let _0x4b314b=_0x445e0c[_0x1aa88e(0xd6)]()['next']()[_0x1aa88e(0x18b)];if(!_0x4b314b)return;let _0x3ef333=this[_0x1aa88e(0x139)][_0x1aa88e(0x17a)](_0x4b314b[_0x1aa88e(0x250)]);if(!_0x3ef333||_0x3ef333[_0x1aa88e(0x212)]!==_0x4d493a[_0x1aa88e(0x112)])return;let {unitId:_0x48a520,subUnitId:_0x7649b,drawingId:_0x3b9382,drawingType:_0x19a61a}=_0x3ef333,_0x2b1c39=this[_0x1aa88e(0x243)](_0x48a520,_0x7649b,_0x3b9382);if(!_0x2b1c39)return;let _0x251263=this[_0x1aa88e(0x202)][_0x1aa88e(0xda)](_0x4b314b,{'componentKey':qt,'direction':_0x1aa88e(0xea),'offset':[0x0,0x8],'extraProps':{'unitId':_0x48a520,'subUnitId':_0x7649b,'drawingId':_0x3b9382,'drawingType':_0x19a61a,'shapeType':_0x2b1c39[_0x1aa88e(0x22f)],'shapeData':_0x2b1c39[_0x1aa88e(0x21c)]}},_0x48a520);this[_0x1aa88e(0x1dd)][_0x1aa88e(0x235)](this[_0x1aa88e(0x103)](_0x251263)),this[_0x1aa88e(0x139)][_0x1aa88e(0x1d1)]()[_0x1aa88e(0x166)](_0x3b2575=>_0x3b2575[_0x1aa88e(0x1f3)]===_0x48a520&&_0x3b2575['subUnitId']===_0x7649b&&_0x3b2575['drawingId']===_0x3b9382)||this[_0x1aa88e(0x139)][_0x1aa88e(0x145)]([{'unitId':_0x48a520,'subUnitId':_0x7649b,'drawingId':_0x3b9382}]);})),this[_0x552be8(0x103)](_0x40159f['clearControl$'][_0x552be8(0x1ab)](()=>{const _0x3ea3ff=_0x552be8;this['_clearPopups'](),this[_0x3ea3ff(0x10d)][_0x3ea3ff(0x257)](_0x498191,!0x1),this[_0x3ea3ff(0x139)][_0x3ea3ff(0x145)](null);})),this['disposeWithMe'](_0x40159f[_0x552be8(0x1ea)]['subscribe'](()=>{const _0x414400=_0x552be8;this[_0x414400(0x233)]();})),this[_0x552be8(0x103)](_0x40159f[_0x552be8(0x113)][_0x552be8(0x1ab)](()=>{const _0x7bdbcf=_0x552be8;this[_0x7bdbcf(0x233)]();})));}[_0x1bbd40(0x226)](){const _0x21a1f8=_0x1bbd40;this[_0x21a1f8(0x103)](this[_0x21a1f8(0x102)][_0x21a1f8(0x23e)](_0x3e7017=>{const _0x18ce5e=_0x21a1f8;if(_0x3e7017['id']===B['id']){let {unitId:_0x138d28,subUnitId:_0x534816,drawingId:_0x4b0745}=_0x3e7017[_0x18ce5e(0x117)];this[_0x18ce5e(0x229)]+=0x1,this[_0x18ce5e(0x20c)]=this[_0x18ce5e(0x243)](_0x138d28,_0x534816,_0x4b0745),this[_0x18ce5e(0x233)](),this[_0x18ce5e(0x1a7)]();}if(_0x3e7017['id']===jt['id']&&(this['_activeShapeInfo']=null,this[_0x18ce5e(0x13e)]()),_0x3e7017['id']===_0x45fcbf['id']){let {unitId:_0x95fb0b,shapeId:_0x52a038}=_0x3e7017[_0x18ce5e(0x117)];if(this[_0x18ce5e(0x20c)]&&this['_activeShapeInfo'][_0x18ce5e(0x24a)]===_0x52a038){let _0x14c67a=this[_0x18ce5e(0x243)](_0x95fb0b,this['_activeShapeInfo'][_0x18ce5e(0x1e7)],_0x52a038);_0x14c67a&&(this[_0x18ce5e(0x229)]+=0x1,_0x14c67a[_0x18ce5e(0x1d7)]=this[_0x18ce5e(0x229)],this[_0x18ce5e(0x20c)]=_0x14c67a,this[_0x18ce5e(0x182)]&&this['_openShapeEditPanel']());}}})),this[_0x21a1f8(0x103)](this['_drawingManagerService'][_0x21a1f8(0x185)][_0x21a1f8(0x1ab)](_0x27c2a4=>{const _0x1335c0=_0x21a1f8;if(this[_0x1335c0(0x182)]===!0x1)return;if(_0x27c2a4[_0x1335c0(0x21f)]===0x0){this[_0x1335c0(0x20c)]=null,this[_0x1335c0(0x13e)]();return;}if(_0x27c2a4[_0x1335c0(0x21f)]===0x1&&_0x27c2a4[0x0][_0x1335c0(0x212)]===_0x4d493a[_0x1335c0(0x112)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x1335c0(0x20c)]=this[_0x1335c0(0x243)](_0x27c2a4[0x0]['unitId'],_0x27c2a4[0x0][_0x1335c0(0x1e7)],_0x27c2a4[0x0][_0x1335c0(0x196)]),this['_activeShapeInfo'])){this[_0x1335c0(0x1a7)]();return;}let _0xdba681=_0x27c2a4[_0x1335c0(0x10c)](_0x499144=>_0x499144[_0x1335c0(0x212)]===_0x4d493a[_0x1335c0(0x112)]);if(_0x27c2a4['length']>0x1&&_0xdba681[_0x1335c0(0x21f)]===_0x27c2a4[_0x1335c0(0x21f)]){if(this[_0x1335c0(0x229)]+=0x1,this[_0x1335c0(0x20c)]=this['_getShapeInfo'](_0x27c2a4[0x0][_0x1335c0(0x1f3)],_0x27c2a4[0x0][_0x1335c0(0x1e7)],_0x27c2a4[0x0][_0x1335c0(0x196)]),this[_0x1335c0(0x20c)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x1335c0(0x229)]+=0x1,this[_0x1335c0(0x20c)]=this[_0x1335c0(0x243)](_0x27c2a4[0x0][_0x1335c0(0x1f3)],_0x27c2a4[0x0][_0x1335c0(0x1e7)],_0x27c2a4[0x0][_0x1335c0(0x196)]),this[_0x1335c0(0x20c)]){this[_0x1335c0(0x20c)][_0x1335c0(0x154)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x1bbd40(0x1a7)](){const _0x255f7f=_0x1bbd40;this[_0x255f7f(0x20c)]&&(this[_0x255f7f(0xeb)]=this[_0x255f7f(0x1b3)][_0x255f7f(0xfc)]({'id':Mt,'header':{'title':this[_0x255f7f(0x110)]['t'](_0x255f7f(0x118))},'width':0x184,'children':{'label':Mt,...this[_0x255f7f(0x20c)]},'onClose':()=>{const _0x262737=_0x255f7f;this['_drawingManagerService'][_0x262737(0x145)](null),this[_0x262737(0x10d)]['setContextValue'](_0x498191,!0x1),this['_sidebarDisposable']=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x36b783=_0x1bbd40;this[_0x36b783(0x182)]=!0x1,this[_0x36b783(0x1b3)]['close'](Mt),this[_0x36b783(0xeb)]=null,this[_0x36b783(0x10d)][_0x36b783(0x257)](_0x498191,!0x1),this['_drawingManagerService'][_0x36b783(0x145)](null);}};q=H([V(0x0,_0x349157),V(0x1,_0x34aebd(_0xa9df1f)),V(0x2,_0x2e5075),V(0x3,_0x34aebd(_0x5d1274)),V(0x4,_0x34aebd(_0x569932)),V(0x5,_0x4f0a70),V(0x6,_0x34a81f),V(0x7,_0x34aebd(_0x5ad9f9)),V(0x8,_0x296a13),V(0x9,_0x34c950),V(0xa,_0x34aebd(K))],q);var Qt=_0x1bbd40(0x254),$t='1.0.0-alpha.2';const en={};let J=class{constructor(_0x2669cb){const _0x27ea4b=_0x1bbd40;this[_0x27ea4b(0x228)]=_0x2669cb;}[_0x1bbd40(0xf6)](_0x44c259,_0x40cd88){const _0x2b19c0=_0x1bbd40;let _0x1a9e58=this[_0x2b19c0(0x228)][_0x2b19c0(0x12f)](_0x44c259['unitId']),_0x5c6a1e=_0x1a9e58==null?void 0x0:_0x1a9e58[_0x2b19c0(0x224)];if(!_0x5c6a1e)return;let _0x52f5d3=_0x586d8f(_0x44c259),_0x3f098f=_0x5c6a1e[_0x2b19c0(0x1db)](_0x52f5d3);_0x3f098f==null||_0x3f098f[_0x2b19c0(0x12b)](_0x40cd88);}};J=H([V(0x0,_0x296a13)],J);function tn(){const _0x408032=_0x1bbd40;let _0x56ddcc=_0x5d4092(_0x34a81f),[_0x10132b,_0x95658f]=_0xbdcd9(_0x56ddcc[_0x408032(0x1d1)]());return _0x598978(()=>{const _0x35cdb9=_0x408032;let _0x304b99=_0x56ddcc[_0x35cdb9(0x185)][_0x35cdb9(0x1ab)](_0x29841d=>{_0x95658f(_0x29841d);});return()=>{const _0x17984b=_0x35cdb9;_0x304b99[_0x17984b(0x17d)]();};},[]),_0x10132b['length']===0x0?null:_0x21da97(_0x408032(0x149),{'children':_0x7554e4('div',{'className':_0x408032(0x183),'children':[_0x21da97(_0x4bc954,{'drawings':_0x10132b,'hasCropper':!0x1}),_0x21da97(_0x52e48b,{'drawings':_0x10132b}),_0x21da97(_0x5154df,{'drawings':_0x10132b})]})});}function nn(_0x4ba80d){let {unitId:_0x18ffa5,subUnitId:_0x1a2962,shapeId:_0x42676a}=_0x4ba80d,_0x3c0dcc=_0x5d4092(_0x4f0a70),_0x57a655=_0x5d4092(J);return _0x21da97(_0x5893a6,{..._0x4ba80d,'positionEditor':_0x21da97(tn,{}),'onUpdateShapeData':(_0x5b2d6a,_0x2d775a)=>{Gt(_0x3c0dcc,_0x18ffa5,_0x1a2962,_0x42676a,_0x5b2d6a,_0x2d775a);},'onUpdateLineShapeData':(_0x4065c6,_0x1ffd28)=>{Kt(_0x3c0dcc,_0x18ffa5,_0x1a2962,_0x42676a,_0x4065c6,_0x1ffd28);},'onUpdateShapeFillImage':_0x4e42ac=>{_0x57a655['updateShapeFillImage']({'unitId':_0x18ffa5,'subUnitId':_0x1a2962,'drawingId':_0x42676a},_0x4e42ac);}});}const rn=_0x56a1e9(()=>{const _0x10839d=_0x1bbd40;let _0xb09bd5=_0x5d4092(K),_0x4db437=_0x5d4092(_0x5d1274),_0x2fb19c=_0x5d4092(_0x34a81f),_0x2a3b4e=_0x5d4092(_0x4f0a70);return _0x21da97(_0x34e90d,{'adapter':_0x35c590(()=>({'getShapeModel':(_0x276043,_0x14d237,_0x20edd1)=>_0x4db437[_0x10839d(0x1ec)](_0x276043,_0x14d237,_0x20edd1),'getDrawingTransform':(_0x56e7d6,_0x11de3c,_0x2fb6ef)=>{const _0x5e6eb4=_0x10839d;let _0x12c733=_0x2fb19c[_0x5e6eb4(0x21b)]({'unitId':_0x56e7d6,'subUnitId':_0x11de3c,'drawingId':_0x2fb6ef});return _0x12c733==null?void 0x0:_0x12c733['transform'];},'updateShapeText':({unitId:_0x9f381f,shapeId:_0x4c892e,shapeText:_0x35a715,oldShapeText:_0x5dd2bc})=>{const _0x34e47f=_0x10839d;_0x2a3b4e[_0x34e47f(0x190)](_0x552717['id'],{'unitId':_0x9f381f,'shapeId':_0x4c892e,'shapeData':{'shapeText':_0x35a715},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x5dd2bc}}});}}),[_0x2a3b4e,_0x4db437,_0x2fb19c]),'editingService':_0xb09bd5,'editorUnitId':Nt,'positionOptions':_0x35c590(()=>({'viewportKeys':{'main':_0x38ba01['VIEW_MAIN']}}),[])});});let an=class extends _0x85f344{constructor(_0x4544e1){const _0x1d5eb1=_0x1bbd40;super(),this[_0x1d5eb1(0xc1)]=_0x4544e1,this[_0x1d5eb1(0x20d)]();}['_registerComponents'](){const _0x1cf165=_0x1bbd40;this[_0x1cf165(0x103)](this[_0x1cf165(0xc1)][_0x1cf165(0x121)](Mt,nn)),this[_0x1cf165(0x103)](this[_0x1cf165(0xc1)][_0x1cf165(0x121)](qt,Zt)),this['disposeWithMe'](this[_0x1cf165(0xc1)]['register'](Pt,Lt)),this['disposeWithMe'](this['_componentManager'][_0x1cf165(0x121)](_0x291fc7,It)),this[_0x1cf165(0x103)](this['_componentManager'][_0x1cf165(0x121)]('ShapeTextEditorContainer',rn));}};an=H([V(0x0,_0x34aebd(_0x526e80))],an);function _0x345a(){const _0x5f54d8=['attachTransformerTo','docs-shape-ui.textWrap.square','enhanceParams','setEditing','_getShapeInfo','_shapeId','drawings','string','isLineShape','constructor','_registerDrawingFocusChangeHandler','shapeId','spaceBelow','9332iytmdi','shapeKey','invert','setSrcRect','oKey','CONTENT','setPrstGeom','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','@univerjs-pro/docs-shape-ui','SolidFill','_lastEditingShapeKey','setContextValue','getTransformerByCreate','registerRenderModule','startOffset','renderDrawingShape','_onSavingEditorData$','_componentManager','viewBound','top','getCurrentUnitOfType','_drawShapeText','docs-shape-ui.textWrap.inFrontText','transformVector2SceneCoord','_adjustPointObjects','src','registerCommand','addImageSourceCache','_docsShapeService','paragraph','getAdjustValueByName','docs-shape-ui.crop.shape','endOffset','docs-shape-ui.textWrap.inline','render','map','_baseShapeWidth','getShapeType','values','registerClipDelegate','add','clip-','attachPopupToObject','isRender','Rect','horizontal','_context','wrapTopAndBottom','beginPath','height','body','isDrawingObject','shapeModel','objects','_createShapeAdjustControls','isRichText','MEDIA','custom','top-center','_sidebarDisposable','_loadShapePictureFill','vertical','moveRange','DRAWING_IMAGE','getActiveViewportByCoord','composeMatrix','behindDoc','_transform','doc.shape.edit.panel','target','updateShapeFillImage','updateContext','343927MhxrMh','_setTransForm','Arrow','1601724knTnGX','open','_shapeTextEditingService','_updateShapeAdjustControls','type','Line','setConfig','_commandService','disposeWithMe','subscribeEvent','603uqhjjc','_initCommands','_loadAndSetImage','getRealBound','_updateAdjustControlPositions','getCurrentTypeOfUnit$','doc.shape.picker.component','filter','_contextService','_clearShapeAdjustControls','PictureFill','_localeService','clear','DRAWING_SHAPE','changeStart$','adjHandleSize','LAYOUT','defineProperty','params','docs-shape-ui.formatShape','disableObjectsEvent','set','segmentId','deepClone','max','PARAGRAPH','onSavingEditorData$','DOCS_SHAPE_UI_PLUGIN','register','gdRefY','gdRefR','doc.shape.floating-toolbar','_docDrawingShapeRenderController','fillImageSourceType','getDrawingPoints','_popupMenuListener','documentStyle','docs-shape-ui.hidePanel','setFillImage','refreshAdjustControls','popup','onTransformChange$','getRenderById','size','object','left','getEditing','syncExecuteCommand','_refreshShapeData','_activeShapeModel','Image','has','_drawingManagerService','endArrow','GROUP','enableObjectsEvent','setShapeData','_closeShapeEditPanel','3958490eOnirj','getAbsolutePosition','_univerInstanceService','_baseShapeLeft','_registerImageShapeClipDelegate','paragraphStyle','focusDrawing','_getShapeAdjustPointListById','onPointerMove$','FALSE','div','getState','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','renderConfig','gdRefX','setShapeProps','FromArray','inFrontOfText','shapeText','_toScenePoint','disableShapeOption','_configService','_getActiveDrawingParam','srcRect','offsetY','1656920dkhvKn','isRenderLinePointsMode','docs-shape-ui.insertShape','CROSSHAIR','INLINE','_urlImageService','featurePluginUpdateNotification','None','getInverseCoord','draw','UUID','translateWithPrecision','buildClipPath','find','asObservable','_isStartAdjusting','get','_adjHandlerPointerMove','_activeAdjustInfo','restore','_editingParams$','_initMenu','update$','_initializedShapePopupMenu','localeService','WRAP_NONE','OPERATION','getDrawingData','DEFAULT','_initEditingParams','getAllUnitsForType','_adjName','gridType','getDrawingOKey','offsetX','gdRefAng','unsubscribe','_addShapeAdjustControl','_unitId','docs-shape-ui.openPanel','inline','_isOpenedShapeEditPanel','univer-box-border\x20univer-px-4\x20univer-text-sm','_createShapePopupMenu','focus$','TOP','_imageIoService','doc.shape.text.float-menu','strokeWidth','some','value','with','_initialize','_subUnitId','_menuManagerService','executeCommand','rect','getActiveTextRange','Path','toPrimitive','#111827','drawingId','isInGroup','_attachAdjustEvent','calculate','_getActiveDrawingShape','multiply','save','isHit','_drawSimpleText','onload','getUnitId','refreshShapeFillImage','setCanUseShapeClip','_initUIPart','_getSceneByUnitId','onReady','_baseShapeTop','_openShapeEditPanel','behindText','function','forEach','subscribe','_updateShape','.below','UNIVER_DOC','layoutType','fillType','_getShapeAdjustInfosById','_activeShapeId','_sidebarService','_activeShapeAdjustPointList','LEFT','getDrawingSearch','_config','getParent','clip','pluginName','SHAPE','_toVisualAdjustPoint','adjHandleStroke','create','URL','_insertShapes','isHitLine','docs-shape-ui.textWrap.behindText','clearAdjustControls','getViewports','indexOf','changeEnd$','getShapeTextData','error','call','getShapeDataById','getShapeData','#3B82F6','setCursor','editingParams$','dataModel','_baseShapeHeight','getFocusDrawings','SHAPE_TEXT','fill','196SilBYc','getAdjustInfoByName','activeTarget','version','2611955aZEXoH','wrapSquare','visible','getObjectIncludeInGroup','clipByShape','_disposePopups','prstGeom','snapToGrid','_updateSrcRectByTransform','getImage','dataStream','_isShouldShowDrawingShapeAdjust','fillImageSource','_clipService','horizontalAlign','subUnitId','zeroWidthParagraphBreak','startArrow','changing$','_injector','getShapeModel','onDblclick$','dispose','width','decorate','getDrawingVisible','position','unitId','_transformCalculateSrcRect','_init','paragraphs','Large','doc.command.update-doc-drawing-wrapping-style','setOnSavingEditorData','adjHandleFill','addObject','calcAdjValue','_adjHandlerPointerUp','getShapePopupMenus','getDrawingOrder','sectionBreaks','stopPropagation','_docCanvasPopManagerService','next','SELECTOR','WRAP','menuRange','ancestorTransform','getSnapshot','complete','add$','classType','_activeShapeInfo','_registerComponents','ShapeIcon','flipX','_initShapePopupMenu','docs-shape-ui.config','drawingType','doc','onerror','_drawingType','PAGE','below','TRUE','SolidLine','doc.command.menu-insert-shape','getDrawingByParam','shapeData','preValue','getMatrix','length','9GheBVX','_props','#2563EB','warn','scene','WRAP_SQUARE','_registerOperations','iterator','_renderManagerService','_shapeEditPanelVersion','transformByState','lineSpacing','applyPoint','40216FIjgiW','shape-text-','shapeType','transform','adjName','pick','_clearPopups','getShapeTextRect','push','getDrawingEditable','setInsertRange','cos','doc.operation.open-doc-shape-format-panel','image','onPointerUp$','BOTH_SIDES','makeDirty','onCommandExecuted'];_0x345a=function(){return _0x5f54d8;};return _0x345a();}var on=class extends _0x12df3c{constructor(_0x16bcac,_0x2e1a4f){const _0x4bdd5a=_0x1bbd40;super(_0x16bcac,_0x2e1a4f),G(this,_0x4bdd5a(0x244),null),G(this,_0x4bdd5a(0x178),null),G(this,_0x4bdd5a(0x17f),null),G(this,_0x4bdd5a(0x18e),null),_0x2e1a4f&&this[_0x4bdd5a(0x14f)](_0x2e1a4f);}['getDrawingSearch'](){const _0x1beae7=_0x1bbd40;return{'unitId':this[_0x1beae7(0x17f)],'subUnitId':this[_0x1beae7(0x18e)],'drawingId':this[_0x1beae7(0x244)]};}[_0x1bbd40(0x14f)](_0x5364c2){const _0x1e86ef=_0x1bbd40;_0x5364c2[_0x1e86ef(0x24a)]!==void 0x0&&(this['_shapeId']=_0x5364c2['shapeId']),_0x5364c2[_0x1e86ef(0x231)]!==void 0x0&&(this[_0x1e86ef(0x178)]=_0x5364c2[_0x1e86ef(0x231)]),_0x5364c2[_0x1e86ef(0x1f3)]!==void 0x0&&(this['_unitId']=_0x5364c2['unitId']),_0x5364c2[_0x1e86ef(0x1e7)]!==void 0x0&&(this[_0x1e86ef(0x18e)]=_0x5364c2['subUnitId']),this[_0x1e86ef(0x22a)]({'width':_0x5364c2[_0x1e86ef(0x1ef)],'height':_0x5364c2[_0x1e86ef(0xe1)]});}['_draw'](_0x142cde){const _0x13dba7=_0x1bbd40;_0x24796b['drawWith'](_0x142cde,{'radius':_0x422975[_0x13dba7(0x114)],'fill':_0x422975[_0x13dba7(0x1fa)],'stroke':_0x422975[_0x13dba7(0x1bd)],'strokeWidth':0x1,'evented':!0x0});}};function sn(_0x338d28){const _0x38010a=_0x1bbd40;var _0x585882,_0x20d46b,_0x1d917e,_0x4c111b;let _0x183ac1=(_0x585882=(_0x20d46b=_0x338d28[_0x38010a(0xe2)])==null||(_0x20d46b=_0x20d46b['dataStream'])==null?void 0x0:_0x20d46b[_0x38010a(0x21f)])==null?0x0:_0x585882,_0x120cb5=(_0x1d917e=_0x338d28[_0x38010a(0xe2)])==null?void 0x0:_0x1d917e[_0x38010a(0x200)];if(_0x120cb5!=null&&_0x120cb5[_0x38010a(0x21f)])for(let _0x203924 of _0x120cb5){var _0x1cd01d;_0x203924[_0x38010a(0x179)]=(_0x1cd01d=_0x203924[_0x38010a(0x179)])==null?_0x5dac55[_0x38010a(0x175)]:_0x1cd01d;}else _0x338d28[_0x38010a(0xe2)]&&(_0x338d28[_0x38010a(0xe2)][_0x38010a(0x200)]=[{'startIndex':Math[_0x38010a(0x11d)](0x0,_0x183ac1-0x1),'gridType':_0x5dac55[_0x38010a(0x175)]}]);let _0x3e80f5=(_0x4c111b=_0x338d28['body'])==null?void 0x0:_0x4c111b['paragraphs'];if(_0x3e80f5)for(let _0x5b3a45 of _0x3e80f5){var _0x2a998c,_0x34484f,_0x53a8a3,_0x1b71d3,_0x383e11,_0x2a6767,_0x414e3f,_0x2516df;_0x5b3a45[_0x38010a(0x144)]={..._0x5b3a45[_0x38010a(0x144)],'lineSpacing':(_0x2a998c=(_0x34484f=_0x5b3a45['paragraphStyle'])==null?void 0x0:_0x34484f[_0x38010a(0x22b)])==null?0x1:_0x2a998c,'snapToGrid':(_0x53a8a3=(_0x1b71d3=_0x5b3a45[_0x38010a(0x144)])==null?void 0x0:_0x1b71d3[_0x38010a(0x1df)])==null?_0x48a9fb[_0x38010a(0x148)]:_0x53a8a3,'spaceAbove':(_0x383e11=(_0x2a6767=_0x5b3a45[_0x38010a(0x144)])==null?void 0x0:_0x2a6767['spaceAbove'])==null?{'v':0x0}:_0x383e11,'spaceBelow':(_0x414e3f=(_0x2516df=_0x5b3a45[_0x38010a(0x144)])==null?void 0x0:_0x2516df[_0x38010a(0x24b)])==null?{'v':0x0}:_0x414e3f};}}function cn(_0x2b4bae){const _0x73dedb=_0x1bbd40;let _0x3f4528=_0x2b4bae[_0x73dedb(0xe2)],_0x583b12=_0x3f4528==null?void 0x0:_0x3f4528[_0x73dedb(0x1f6)],_0x47e558=_0x3f4528==null?void 0x0:_0x3f4528[_0x73dedb(0x1e2)];if(!_0x3f4528||!(_0x583b12!=null&&_0x583b12[_0x73dedb(0x21f)])||!_0x47e558)return;let _0x5c0702=[];for(let _0x353c88=0x0;_0x353c88<_0x47e558[_0x73dedb(0x21f)];_0x353c88++)_0x47e558[_0x353c88]==='\x0d'&&_0x5c0702[_0x73dedb(0x235)](_0x353c88);_0x5c0702[_0x73dedb(0x21f)]===_0x583b12[_0x73dedb(0x21f)]&&(_0x3f4528[_0x73dedb(0x1f6)]=_0x583b12['map']((_0x3b19e8,_0x5e9ba8)=>({..._0x3b19e8,'startIndex':_0x5c0702[_0x5e9ba8]})));}function ln(_0x21607f,_0x537e08){const _0x36812c=_0x1bbd40;var _0x36f5c9,_0x5919e2,_0x103b62;let {isHorizontal:_0x3d79bf,textRect:_0x2ea58e,verticalAlign:_0x174554}=_0x537e08,_0x1f945d=_0x3d79bf?_0x2ea58e[_0x36812c(0x1ef)]:_0x2ea58e[_0x36812c(0xe1)],_0x1ccff4=_0x348975[_0x36812c(0x11c)](_0x21607f),_0x56e804=(_0x36f5c9=_0x1ccff4[_0x36812c(0x129)])==null?{}:_0x36f5c9,_0xb064c2={..._0x56e804['renderConfig'],'centerAngle':_0x3d79bf?0x0:_0x4f7ac3,'vertexAngle':_0x3d79bf?0x0:_0x4f7ac3,'wrapStrategy':_0x220b46[_0x36812c(0x205)],'zeroWidthParagraphBreak':(_0x5919e2=(_0x103b62=_0x56e804[_0x36812c(0x14d)])==null?void 0x0:_0x103b62[_0x36812c(0x1e8)])==null?_0x48a9fb[_0x36812c(0x218)]:_0x5919e2};if(_0x174554!==void 0x0&&(_0xb064c2['verticalAlign']=_0x174554),_0x537e08[_0x36812c(0x1e6)]!==void 0x0){var _0x1dcfe3;_0xb064c2[_0x36812c(0x1e6)]=_0x537e08[_0x36812c(0x1e6)];let _0x475935=(_0x1dcfe3=_0x1ccff4['body'])==null?void 0x0:_0x1dcfe3[_0x36812c(0x1f6)];if(_0x475935){for(let _0x543569 of _0x475935)_0x543569['paragraphStyle']||(_0x543569[_0x36812c(0x144)]={}),_0x543569[_0x36812c(0x144)][_0x36812c(0x1e6)]=_0x537e08[_0x36812c(0x1e6)];}}return _0x1ccff4[_0x36812c(0x129)]={..._0x56e804,'marginTop':0x0,'marginBottom':0x0,'marginLeft':0x0,'marginRight':0x0,'pageSize':{'width':_0x1f945d,'height':0x1/0x0},'renderConfig':_0xb064c2},cn(_0x1ccff4),sn(_0x1ccff4),_0x1ccff4;}var Y=class extends _0x12df3c{constructor(_0x59b962,_0xd31dc0){const _0x5992ee=_0x1bbd40;super(_0x59b962,_0xd31dc0),G(this,_0x5992ee(0x221),void 0x0),G(this,_0x5992ee(0x1f4),!0x0),G(this,_0x5992ee(0x215),_0x4d493a[_0x5992ee(0x112)]),G(this,_0x5992ee(0xe3),!0x0),this['_props']={..._0xd31dc0},this[_0x5992ee(0x1f5)]();}['_init'](){const _0x554df7=_0x1bbd40;this[_0x554df7(0x12e)]['subscribeEvent'](_0x2a12b6=>{const _0x28d963=_0x554df7;this[_0x28d963(0x1e0)](_0x2a12b6);});}[_0x1bbd40(0x252)](_0x2be21c){const _0x12f49a=_0x1bbd40;this['_props'][_0x12f49a(0x1de)]=_0x2be21c;}['setEditing'](_0x370d61){const _0x383553=_0x1bbd40;this[_0x383553(0x221)]['isEditing']=_0x370d61,this[_0x383553(0x23d)](!0x0);}get['unitId'](){const _0x501617=_0x1bbd40;return this[_0x501617(0x221)][_0x501617(0x1f3)];}get[_0x1bbd40(0x1e7)](){return this['_props']['subUnitId'];}[_0x1bbd40(0x1e0)](_0x5ed02e){const _0x203d81=_0x1bbd40;if(this['_props'][_0x203d81(0x157)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0xa51286,height:_0x4360d5}=this,{width:_0x4986e3=0x0,height:_0x68bb0d=0x0}=_0x5ed02e[_0x203d81(0x21d)],{left:_0x1961a1=0x0,top:_0x250c84=0x0,right:_0x297232=0x0,bottom:_0x494625=0x0}=this['_props'][_0x203d81(0x157)],_0x16794e=_0x1961a1,_0x475b23=_0x250c84,_0x50aefd=_0x297232,_0x1e4b5c=_0x494625,_0x390c71=!0x1;if(_0x4986e3!==0x0&&_0x4986e3!==_0xa51286){let _0x3161e7=_0x1961a1/_0x4986e3,_0x4727d4=_0x297232/_0x4986e3;_0x16794e=_0xa51286*_0x3161e7,_0x50aefd=_0xa51286*_0x4727d4,_0x390c71=!0x0;}if(_0x68bb0d!==0x0&&_0x68bb0d!==_0x4360d5){let _0x555bb8=_0x250c84/_0x68bb0d,_0x216fdf=_0x494625/_0x68bb0d;_0x475b23=_0x4360d5*_0x555bb8,_0x1e4b5c=_0x4360d5*_0x216fdf,_0x390c71=!0x0;}_0x390c71&&this[_0x203d81(0x24f)]({'left':_0x16794e,'top':_0x475b23,'right':_0x50aefd,'bottom':_0x1e4b5c});}[_0x1bbd40(0x24f)](_0x4ff553){const _0x1dba27=_0x1bbd40;this['_props'][_0x1dba27(0x157)]=_0x4ff553,this[_0x1dba27(0x23d)](!0x0);}['setFillImage'](_0x496823){const _0x5420e0=_0x1bbd40;this[_0x5420e0(0x221)]['image']=_0x496823,this[_0x5420e0(0x23d)](!0x0);}set[_0x1bbd40(0x230)](_0x1881d7){const _0x26a39c=_0x1bbd40;this[_0x26a39c(0xf3)]=_0x1881d7;}get['transform'](){const _0x172b29=_0x1bbd40;this[_0x172b29(0xf3)]||this[_0x172b29(0xf9)]();let _0x3edfe4=this[_0x172b29(0xf3)]['clone']();return this['transformForAngle'](_0x3edfe4);}get[_0x1bbd40(0xe4)](){const _0x38a602=_0x1bbd40;return this[_0x38a602(0x221)][_0x38a602(0xe4)];}get[_0x1bbd40(0x24a)](){const _0x17121b=_0x1bbd40;return this[_0x17121b(0x221)][_0x17121b(0x24a)];}get[_0x1bbd40(0x20b)](){const _0x1b8338=_0x1bbd40;return _0x2d98d9[_0x1b8338(0x1bb)];}['_draw'](_0x4df947,_0x3dfcc5,_0x3d4d12,_0x157be3){const _0x289c6c=_0x1bbd40;let _0x5acc5a=this[_0x289c6c(0x221)]['shapeModel'];if(!_0x5acc5a||!_0x3dfcc5)return;let _0x5299c9=_0x3d4d12==null?this[_0x289c6c(0x1ef)]:_0x3d4d12,_0x1fb3b5=_0x157be3==null?this[_0x289c6c(0xe1)]:_0x157be3,_0x28ad07={'shapeType':_0x5acc5a[_0x289c6c(0xd5)](),'width':_0x5299c9,'height':_0x1fb3b5},_0x2e5740={'renderMode':_0x15090c[_0x289c6c(0x193)],'oKey':this[_0x289c6c(0x250)],'image':this[_0x289c6c(0x221)][_0x289c6c(0x23a)],'angle':this['angle']};_0x5acc5a[_0x289c6c(0xf7)](_0x28ad07),_0x4df947[_0x289c6c(0x19c)]();let _0x2576e4={'top':0x0,'left':0x0,'width':_0x5299c9,'height':_0x1fb3b5};_0x5acc5a[_0x289c6c(0xd2)](_0x4df947,_0x2576e4,_0x2e5740),_0x4df947[_0x289c6c(0x16c)]();let _0x505fce=_0x5acc5a[_0x289c6c(0x1c7)](),_0x16d47f=_0x5acc5a[_0x289c6c(0x234)](_0x2576e4),_0x30fcd3=_0x5acc5a[_0x289c6c(0x247)]();if(_0x505fce&&_0x16d47f&&!_0x30fcd3){_0x4df947['save'](),this[_0x289c6c(0x14a)]()[_0x289c6c(0x20f)]&&_0x4df947['scale'](-0x1,0x1);let _0x2bc337=_0x5299c9/0x2,_0x22dff5=_0x1fb3b5/0x2;_0x4df947['translate'](-_0x2bc337,-_0x22dff5),_0x4df947[_0x289c6c(0xe0)](),this[_0x289c6c(0xc5)](_0x4df947,_0x505fce,_0x16d47f),_0x4df947[_0x289c6c(0x16c)]();}}['getDrawingPoints'](_0x51bc53){}[_0x1bbd40(0xc5)](_0x7cb987,_0x5aa672,_0x21c7c2){const _0x4abff8=_0x1bbd40;this[_0x4abff8(0x221)]['isEditing']||(_0x4abff8(0xe7)in _0x5aa672&&_0x5aa672[_0x4abff8(0xe7)]===!0x1?this[_0x4abff8(0x19e)](_0x7cb987,_0x5aa672,_0x21c7c2):this['_drawRichText'](_0x7cb987,_0x5aa672,_0x21c7c2));}[_0x1bbd40(0x19e)](_0x5990a5,_0x4d12c0,_0x57e7f3){}['_drawRichText'](_0x4c64c7,_0x5b032d,_0x351c85){const _0xde7487=_0x1bbd40;var _0x10be5f,_0x9e5da4;let _0x32ed7a=this['_props'][_0xde7487(0x171)];if(!_0x5b032d[_0xde7487(0x1cf)]||!_0x32ed7a){_0x32ed7a||console[_0xde7487(0x223)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0x4607f8=_0x5b032d[_0xde7487(0x1cf)],_0x1d3d7f=_0x4607f8[_0xde7487(0x213)],_0x5309a0=(_0x10be5f=_0x4607f8['va'])==null?_0x289ae6[_0xde7487(0x186)]:_0x10be5f,_0x4d7f77=(_0x9e5da4=_0x4607f8['ha'])==null?_0x3f4132[_0xde7487(0x1b5)]:_0x9e5da4;if(!_0x1d3d7f)return;let _0x3cdb1e=_0x5b032d['isHorizontal'],_0x300986=new _0x4afae8(ln(_0x1d3d7f,{'isHorizontal':_0x3cdb1e!==!0x1,'textRect':_0x351c85,'verticalAlign':_0x5309a0,'horizontalAlign':_0x4d7f77})),_0x34310e=new _0x4563f6(_0x300986),_0x3f20a8=_0x50d814[_0xde7487(0x1be)](_0x34310e,_0x32ed7a);_0x3f20a8[_0xde7487(0x199)]();let _0x5437b3=new _0x5af252(_0xde7487(0x22e)+this[_0xde7487(0x250)],_0x3f20a8,{'pageMarginLeft':0x0,'pageMarginTop':0x0});_0x5437b3['resize'](_0x351c85[_0xde7487(0x1ef)],_0x351c85[_0xde7487(0xe1)]),_0x4c64c7['save'](),_0x4c64c7[_0xde7487(0x164)](_0x351c85['left'],_0x351c85[_0xde7487(0xc3)]),_0x4c64c7[_0xde7487(0xe0)](),_0x4c64c7[_0xde7487(0x191)](0x0,0x0,_0x351c85['width'],_0x351c85[_0xde7487(0xe1)]),_0x4c64c7[_0xde7487(0x1b9)](),_0x5437b3[_0xde7487(0x162)](_0x4c64c7),_0x4c64c7[_0xde7487(0x16c)](),_0x5437b3[_0xde7487(0x1ee)](),_0x3f20a8['dispose'](),_0x34310e['dispose'](),_0x300986['dispose']();}[_0x1bbd40(0xd2)](_0x129a97,_0x1e9f32,_0x5d1165=!0x1){const _0x488907=_0x1bbd40;if(!this[_0x488907(0x1da)])return this['makeDirty'](!0x1),this;let {width:_0x36c274,height:_0x566dcb,left:_0x168159,top:_0x3cad35}=this,_0x35b20c=this[_0x488907(0x108)]();if(_0x36c274=_0x35b20c['width'],_0x566dcb=_0x35b20c[_0x488907(0xe1)],_0x168159=_0x35b20c[_0x488907(0x132)],_0x3cad35=_0x35b20c[_0x488907(0xc3)],this[_0x488907(0xdb)](_0x1e9f32)){let {top:_0xbfccbf,left:_0x46a183,bottom:_0x23a134,right:_0x79e98c}=_0x1e9f32[_0x488907(0xc2)];if(_0x36c274+this[_0x488907(0x189)]+_0x168159<_0x46a183||_0x79e98c<_0x168159||_0x566dcb+this[_0x488907(0x189)]+_0x3cad35<_0xbfccbf||_0x23a134<_0x3cad35)return this;}let _0x3b498f=_0x168159+_0x36c274/0x2,_0x3572da=_0x3cad35+_0x566dcb/0x2,_0x453a6b=this[_0x488907(0x230)]['getMatrix']();if(this[_0x488907(0x221)]['isEditing']){let _0x3eae39=this[_0x488907(0x14a)](),_0x1944ab=new _0x1d3b77();_0x1944ab[_0x488907(0xf1)]({..._0x3eae39}),_0x453a6b=_0x1944ab[_0x488907(0x21e)]();}return _0x129a97[_0x488907(0x19c)](),this['_props']['shapeModel'][_0x488907(0x15a)]===!0x0||_0x129a97[_0x488907(0x230)](_0x453a6b[0x0],_0x453a6b[0x1],_0x453a6b[0x2],_0x453a6b[0x3],_0x3b498f,_0x3572da),this['_draw'](_0x129a97,_0x1e9f32,_0x36c274,_0x566dcb),_0x129a97[_0x488907(0x16c)](),this[_0x488907(0x23d)](!0x1),this;}[_0x1bbd40(0x161)](_0x39fcca){const _0x4fe647=_0x1bbd40;let {left:_0x538ed4,top:_0x2835fc,width:_0x4e76e5,height:_0x319479}=this[_0x4fe647(0x108)](),_0x6f7285=this[_0x4fe647(0x230)][_0x4fe647(0x21e)](),_0x126761=_0x538ed4+_0x4e76e5/0x2,_0x20e11a=_0x2835fc+_0x319479/0x2,_0x5008bc=new _0x1d3b77([_0x6f7285[0x0],_0x6f7285[0x1],_0x6f7285[0x2],_0x6f7285[0x3],_0x126761,_0x20e11a]),_0x5a6da4=this[_0x4fe647(0x1b8)]();return(this[_0x4fe647(0x197)]&&(_0x5a6da4==null?void 0x0:_0x5a6da4[_0x4fe647(0x20b)])===_0x2d98d9['GROUP']?_0x5a6da4['ancestorTransform'][_0x4fe647(0x19b)](_0x5008bc):_0x5008bc)[_0x4fe647(0x24e)]()[_0x4fe647(0x22c)](_0x39fcca);}[_0x1bbd40(0x19d)](_0x172b82){const _0x2cf065=_0x1bbd40;let {left:_0x5690f1,top:_0x4524a5,width:_0x375269,height:_0x4546f2}=this[_0x2cf065(0x108)](),_0x4f47cb=_0x5690f1+_0x375269/0x2,_0x2f73b7=_0x4524a5+_0x4546f2/0x2,_0x139f66=this[_0x2cf065(0x230)][_0x2cf065(0x21e)](),_0x50a22c=new _0x1d3b77([_0x139f66[0x0],_0x139f66[0x1],_0x139f66[0x2],_0x139f66[0x3],_0x4f47cb,_0x2f73b7]),_0x53400f=this[_0x2cf065(0x1b8)](),_0x52dd3b=(this['isInGroup']&&(_0x53400f==null?void 0x0:_0x53400f['classType'])===_0x2d98d9[_0x2cf065(0x13b)]?_0x53400f[_0x2cf065(0x207)]['multiply'](_0x50a22c):_0x50a22c)[_0x2cf065(0x24e)]()[_0x2cf065(0x22c)](_0x172b82),_0x4e2070=_0x375269/0x2,_0x575481=_0x4546f2/0x2,_0x592d8f=this[_0x2cf065(0x221)][_0x2cf065(0xe4)];return _0x592d8f&&_0x592d8f['isLineShape']()?_0x592d8f[_0x2cf065(0x1c1)](_0x52dd3b['x'],_0x52dd3b['y'],_0x375269,_0x4546f2):_0x52dd3b['x']>=-_0x4e2070-this[_0x2cf065(0x189)]/0x2&&_0x52dd3b['x']<=_0x4e2070+this[_0x2cf065(0x189)]/0x2&&_0x52dd3b['y']>=-_0x575481-this[_0x2cf065(0x189)]/0x2&&_0x52dd3b['y']<=_0x575481+this[_0x2cf065(0x189)]/0x2;}[_0x1bbd40(0x1ee)](){const _0x8fbc8c=_0x1bbd40;this[_0x8fbc8c(0x221)]['shapeModel']=null,super[_0x8fbc8c(0x1ee)]();}};let X=class extends _0x85f344{constructor(_0x14adf8,_0x22c1a8,_0x2427f0,_0x54b60c){const _0x407499=_0x1bbd40;super(),this['_context']=_0x14adf8,this[_0x407499(0x139)]=_0x22c1a8,this[_0x407499(0xcc)]=_0x2427f0,this[_0x407499(0x102)]=_0x54b60c,G(this,_0x407499(0x1b2),null),G(this,'_unitId',null),G(this,_0x407499(0x18e),null),G(this,_0x407499(0x1b4),void 0x0),G(this,_0x407499(0xc8),[]),G(this,'_baseShapeLeft',0x0),G(this,_0x407499(0x1a6),0x0),G(this,_0x407499(0xd4),0x0),G(this,'_baseShapeHeight',0x0),G(this,_0x407499(0x168),!0x1),G(this,_0x407499(0x1e3),!0x1),G(this,_0x407499(0x16b),void 0x0),G(this,_0x407499(0x136),void 0x0),G(this,_0x407499(0x16a),void 0x0),G(this,_0x407499(0x1fd),void 0x0),this[_0x407499(0x249)](),this['_registerDrawingTransformHandler']();}[_0x1bbd40(0x1c3)](){const _0x5603bc=_0x1bbd40;this[_0x5603bc(0x10e)]();}[_0x1bbd40(0x12c)](){const _0x14f2fc=_0x1bbd40;this[_0x14f2fc(0xfe)](!0x0);}[_0x1bbd40(0x146)](_0x2bab6b,_0x566417,_0x48bd4b){const _0x2212f9=_0x1bbd40;var _0xd7ef04;return(_0xd7ef04=this[_0x2212f9(0xcc)][_0x2212f9(0x1ec)](_0x2bab6b,_0x566417,_0x48bd4b))==null?void 0x0:_0xd7ef04[_0x2212f9(0x127)]();}[_0x1bbd40(0x1b1)](_0x20ed3d,_0xaaf9e9,_0x82c71a,_0x2cffb5){const _0x1ca554=_0x1bbd40;var _0x528c81;return(_0x528c81=this[_0x1ca554(0xcc)][_0x1ca554(0x1ec)](_0x20ed3d,_0xaaf9e9,_0x82c71a))==null?void 0x0:_0x528c81[_0x1ca554(0x1d5)](_0x2cffb5);}['_getActiveDrawingParam'](){const _0x42ed9d=_0x1bbd40;if(this['_unitId']===null||this[_0x42ed9d(0x18e)]===null||this[_0x42ed9d(0x1b2)]===null)return null;let _0x386124=this[_0x42ed9d(0x139)][_0x42ed9d(0x21b)]({'unitId':this[_0x42ed9d(0x17f)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x42ed9d(0x1b2)]});return _0x386124==null?null:_0x386124;}['_getActiveDrawingShape'](_0x3d94dc){const _0x3ab24b=_0x1bbd40;if(this[_0x3ab24b(0x17f)]===null||this['_subUnitId']===null||this['_activeShapeId']===null)return null;let _0x25c14b=_0x586d8f({'unitId':this[_0x3ab24b(0x17f)],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x133cd6=_0x3d94dc['getObjectIncludeInGroup'](_0x25c14b);return _0x133cd6 instanceof Y?_0x133cd6:null;}[_0x1bbd40(0xe6)](_0x548c6b=!0x1){const _0x4e4a7e=_0x1bbd40;if(this[_0x4e4a7e(0x17f)]===null||this[_0x4e4a7e(0x18e)]===null||this[_0x4e4a7e(0x1b2)]===null)return;let _0x278761=this[_0x4e4a7e(0x156)]();if((_0x278761==null?void 0x0:_0x278761[_0x4e4a7e(0x212)])!==_0x4d493a[_0x4e4a7e(0x112)]||!_0x278761[_0x4e4a7e(0x230)])return;let _0x3e59fd=this['_docsShapeService'][_0x4e4a7e(0x1ec)](this[_0x4e4a7e(0x17f)],this[_0x4e4a7e(0x18e)],this[_0x4e4a7e(0x1b2)]);if(!_0x3e59fd||_0x3e59fd['isLineShape']())return;(_0x548c6b||!this[_0x4e4a7e(0x1b4)])&&(this[_0x4e4a7e(0x1b4)]=this[_0x4e4a7e(0x146)](this['_unitId'],this[_0x4e4a7e(0x18e)],this[_0x4e4a7e(0x1b2)]));let _0x18520e=this['_activeShapeAdjustPointList'];if(!(_0x18520e!=null&&_0x18520e[_0x4e4a7e(0x21f)]))return;let {scene:_0xc0a50e}=this[_0x4e4a7e(0xde)],{left:_0x72312f=0x0,top:_0x40538d=0x0,width:_0x41c6b6=0x0,height:_0x747d28=0x0,flipX:_0x291648,flipY:_0x1a020e,angle:_0x5bee88=0x0}=_0x278761[_0x4e4a7e(0x230)];for(let _0x24f17f of _0x18520e){let _0x19541a=this['_toVisualAdjustPoint'](_0x24f17f,_0x41c6b6,_0x747d28,!!_0x291648,!!_0x1a020e,_0x5bee88);this[_0x4e4a7e(0x17e)](_0xc0a50e,_0x19541a,_0x19541a[_0x4e4a7e(0x231)],_0x72312f,_0x40538d,this['_unitId'],this['_subUnitId']);}}[_0x1bbd40(0x1bc)](_0x5af572,_0x3ed3c6,_0xf5f9ad,_0x490083,_0xf2538e,_0x3ab6ec){const _0x5efcaf=_0x1bbd40;let _0x289009=_0x5af572['x'],_0x289498=_0x5af572['y'];if(_0x490083&&(_0x289009=_0x3ed3c6-_0x289009),_0xf2538e&&(_0x289498=_0xf5f9ad-_0x289498),_0x3ab6ec!==0x0){let _0x45e5bf=_0x3ed3c6/0x2,_0x1e6bb8=_0xf5f9ad/0x2,_0x1167d4=_0x3ab6ec*Math['PI']/0xb4,_0xa796f3=Math[_0x5efcaf(0x238)](_0x1167d4),_0xb1807e=Math['sin'](_0x1167d4),_0x4e0553=_0x289009-_0x45e5bf,_0xb03379=_0x289498-_0x1e6bb8;_0x289009=_0x45e5bf+(_0x4e0553*_0xa796f3-_0xb03379*_0xb1807e),_0x289498=_0x1e6bb8+(_0x4e0553*_0xb1807e+_0xb03379*_0xa796f3);}return{'x':_0x289009,'y':_0x289498,'adjName':_0x5af572['adjName']};}[_0x1bbd40(0xfe)](_0x5cc784=!0x1){_0x5cc784&&this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls'](_0x5cc784);}[_0x1bbd40(0x17e)](_0x480d59,_0x5c0101,_0x583354,_0x474d86,_0x4681b1,_0x99ec03,_0x5e59c6){const _0x3246d2=_0x1bbd40;if(!this['_activeShapeId'])return;let _0x16cd78='doc-shape-adjust-point-'+this[_0x3246d2(0x1b2)]+'-'+_0x583354,_0x8907c7=_0x480d59[_0x3246d2(0x1db)](_0x16cd78);if(_0x8907c7){_0x8907c7[_0x3246d2(0x22a)]({'left':_0x5c0101['x']+_0x474d86-_0x422975[_0x3246d2(0x114)],'top':_0x5c0101['y']+_0x4681b1-_0x422975[_0x3246d2(0x114)]}),_0x8907c7[_0x3246d2(0x23d)](!0x0);return;}let _0x8b13f0=new on(_0x16cd78,{'left':_0x5c0101['x']+_0x474d86-_0x422975['adjHandleSize'],'top':_0x5c0101['y']+_0x4681b1-_0x422975[_0x3246d2(0x114)],'adjName':_0x583354,'shapeId':this[_0x3246d2(0x1b2)],'unitId':_0x99ec03,'subUnitId':_0x5e59c6,'width':_0x422975[_0x3246d2(0x114)]+0x8,'height':_0x422975[_0x3246d2(0x114)]+0x8,'zIndex':_0x5e28c1+0x1,'evented':!0x0});this['_adjustPointObjects'][_0x3246d2(0x235)](_0x8b13f0),this[_0x3246d2(0x198)](_0x8b13f0,_0x480d59,_0x583354),_0x480d59[_0x3246d2(0x1fb)](_0x8b13f0,_0x5e28c1+0x1);}['_clearShapeAdjustControls'](){const _0x194ccb=_0x1bbd40;this['_adjustPointObjects']['forEach'](_0x497ebb=>_0x497ebb[_0x194ccb(0x1ee)]()),this['_adjustPointObjects']=[];}[_0x1bbd40(0x109)](){const _0x545cc9=_0x1bbd40;this[_0x545cc9(0xe6)]();}['_toScenePoint'](_0x56a812,_0x18f8f9,_0x49019d){const _0x4044ab=_0x1bbd40;var _0x18cff1,_0x33a076;let _0x40f035=_0x1110ec[_0x4044ab(0x150)]([_0x18f8f9,_0x49019d]),_0x172f8c=(_0x18cff1=_0x56a812[_0x4044ab(0xf0)](_0x40f035))==null?_0x56a812[_0x4044ab(0x1c4)]()[0x0]:_0x18cff1;return(_0x33a076=_0x172f8c==null?void 0x0:_0x172f8c[_0x4044ab(0xc7)](_0x40f035))==null?_0x40f035:_0x33a076;}[_0x1bbd40(0x198)](_0x5258e6,_0x165bdd,_0x2cc9e1){const _0x8572f=_0x1bbd40;this[_0x8572f(0x103)](_0x3fd961(_0x5258e6['onPointerDown$'][_0x8572f(0x104)]((_0x5d7658,_0x2b3c85)=>{const _0x414cc3=_0x8572f;var _0x5c0f39,_0x2113b9,_0x39bdd4,_0x39c873;let _0x2db99f=_0x5258e6[_0x414cc3(0x1b6)]();this[_0x414cc3(0x16b)]=this[_0x414cc3(0x1b1)](_0x2db99f[_0x414cc3(0x1f3)],_0x2db99f['subUnitId'],_0x2db99f['drawingId'],_0x2cc9e1),this[_0x414cc3(0x136)]=this[_0x414cc3(0xcc)][_0x414cc3(0x1ec)](_0x2db99f[_0x414cc3(0x1f3)],_0x2db99f['subUnitId'],_0x2db99f[_0x414cc3(0x196)]);let _0x5f1112=this['_getActiveDrawingParam'](),_0x1e96a2=_0x5f1112==null?void 0x0:_0x5f1112['transform'];if(!_0x5f1112||!_0x1e96a2||!this[_0x414cc3(0x136)])return;this[_0x414cc3(0x142)]=_0x1e96a2[_0x414cc3(0x132)]||0x0,this[_0x414cc3(0x1a6)]=_0x1e96a2['top']||0x0,this[_0x414cc3(0xd4)]=_0x1e96a2[_0x414cc3(0x1ef)]||0x0,this[_0x414cc3(0x1d0)]=_0x1e96a2[_0x414cc3(0xe1)]||0x0;let _0x2005f4=!!_0x1e96a2[_0x414cc3(0x20f)],_0x5bad9e=!!_0x1e96a2['flipY'],_0x34333e=_0x1e96a2['angle']||0x0,_0x37f0e3=((_0x5c0f39=this[_0x414cc3(0x16b)])==null?void 0x0:_0x5c0f39[_0x414cc3(0x14e)])||((_0x2113b9=this['_activeAdjustInfo'])==null?void 0x0:_0x2113b9[_0x414cc3(0x122)])||((_0x39bdd4=this[_0x414cc3(0x16b)])==null?void 0x0:_0x39bdd4[_0x414cc3(0x17c)])||((_0x39c873=this['_activeAdjustInfo'])==null?void 0x0:_0x39c873[_0x414cc3(0x123)])||_0x2cc9e1,_0x21ccc1=this[_0x414cc3(0x136)][_0x414cc3(0xce)](_0x37f0e3),_0x1aa37f={[_0x37f0e3]:_0x21ccc1};this['_isStartAdjusting']=!0x0,_0x165bdd[_0x414cc3(0x119)](),this[_0x414cc3(0x16a)]=_0x165bdd[_0x414cc3(0x147)][_0x414cc3(0x104)]((_0x4c4e6a,_0x589609)=>{const _0x322448=_0x414cc3;var _0xa401f1;if(!this[_0x322448(0x168)]||!this['_activeShapeModel']||!this[_0x322448(0x16b)])return;_0x165bdd[_0x322448(0x119)](),_0x165bdd[_0x322448(0x1cd)](_0x262607[_0x322448(0x15c)]);let _0x31ba73=this[_0x322448(0x153)](_0x165bdd,_0x4c4e6a[_0x322448(0x17b)],_0x4c4e6a[_0x322448(0x158)]),_0x53fca1=_0x31ba73['x']-this[_0x322448(0x142)],_0x257f4e=_0x31ba73['y']-this[_0x322448(0x1a6)];if(_0x34333e!==0x0){let _0xd6f655=this[_0x322448(0xd4)]/0x2,_0x61debf=this[_0x322448(0x1d0)]/0x2,_0x4d2fd5=_0x34333e*Math['PI']/0xb4,_0x4c0bb2=Math['cos'](_0x4d2fd5),_0x5cb1ae=Math['sin'](_0x4d2fd5),_0x53e74b=_0x53fca1-_0xd6f655,_0x531558=_0x257f4e-_0x61debf;_0x53fca1=_0xd6f655+(_0x53e74b*_0x4c0bb2+_0x531558*_0x5cb1ae),_0x257f4e=_0x61debf+(-_0x53e74b*_0x5cb1ae+_0x531558*_0x4c0bb2);}_0x2005f4&&(_0x53fca1=this[_0x322448(0xd4)]-_0x53fca1),_0x5bad9e&&(_0x257f4e=this[_0x322448(0x1d0)]-_0x257f4e);let _0x14f7e5={'left':0x0,'top':0x0,'width':this[_0x322448(0xd4)],'height':this[_0x322448(0x1d0)]},_0x4bd765=this['_activeShapeModel'][_0x322448(0x1fc)](_0x14f7e5,{'x':_0x53fca1,'y':_0x257f4e},this[_0x322448(0x16b)],_0x2005f4,_0x5bad9e),_0x499a20=this[_0x322448(0x16b)][_0x322448(0x14e)]||this['_activeAdjustInfo']['gdRefY']||this['_activeAdjustInfo'][_0x322448(0x17c)]||this[_0x322448(0x16b)][_0x322448(0x123)];_0x499a20!==void 0x0&&(this[_0x322448(0x136)]['setAdjustValueByName'](_0x499a20,_0x4bd765),(_0xa401f1=this[_0x322448(0x19a)](_0x165bdd))==null||_0xa401f1[_0x322448(0x23d)](!0x0),this[_0x322448(0x1b4)]=this[_0x322448(0x146)](_0x2db99f[_0x322448(0x1f3)],_0x2db99f[_0x322448(0x1e7)],_0x2db99f[_0x322448(0x196)]),this[_0x322448(0x109)](),_0x589609[_0x322448(0x201)]());}),this[_0x414cc3(0x1fd)]=_0x165bdd[_0x414cc3(0x23b)][_0x414cc3(0x104)]((_0xea6336,_0x5ea15e)=>{const _0x4869f8=_0x414cc3;var _0x3bfe56,_0x40c998;(_0x3bfe56=this[_0x4869f8(0x16a)])==null||_0x3bfe56[_0x4869f8(0x17d)](),(_0x40c998=this['_adjHandlerPointerUp'])==null||_0x40c998['unsubscribe'](),_0x165bdd['resetCursor']();let _0x3edb6a=this[_0x4869f8(0x16b)];if(_0x3edb6a&&this[_0x4869f8(0x136)]){let _0x233a0c=_0x3edb6a[_0x4869f8(0x14e)]||_0x3edb6a['gdRefY']||_0x3edb6a[_0x4869f8(0x17c)]||_0x3edb6a[_0x4869f8(0x123)];if(_0x233a0c!==void 0x0){let _0x3b8c1e=this['_activeShapeModel']['getAdjustValueByName'](_0x233a0c);_0x3b8c1e!==void 0x0&&Gt(this[_0x4869f8(0x102)],_0x2db99f[_0x4869f8(0x1f3)],_0x2db99f[_0x4869f8(0x1e7)],_0x2db99f[_0x4869f8(0x196)],{'oldShapeData':{'adjustValues':_0x1aa37f}},{'adjustValues':{[_0x233a0c]:_0x3b8c1e}});}}this[_0x4869f8(0x16b)]=void 0x0,this[_0x4869f8(0x136)]=void 0x0,this[_0x4869f8(0x168)]=!0x1,_0x165bdd[_0x4869f8(0x13c)](),_0x5ea15e[_0x4869f8(0x201)]();}),_0x2b3c85['stopPropagation']();})));}['_registerDrawingTransformHandler'](){const _0x520165=_0x1bbd40;let {scene:_0x1a30e2}=this[_0x520165(0xde)],_0x35cf2e=_0x1a30e2[_0x520165(0x258)]();this[_0x520165(0x103)](_0x35cf2e['changeStart$'][_0x520165(0x1ab)](_0x31b78a=>{const _0x35f7ac=_0x520165;this[_0x35f7ac(0xe6)](),_0x31b78a[_0x35f7ac(0xe5)]!==null&&_0x31b78a[_0x35f7ac(0xe5)][_0x35f7ac(0x130)]===0x1&&_0x31b78a[_0x35f7ac(0xe5)][_0x35f7ac(0xd6)]()['next']()[_0x35f7ac(0x18b)]instanceof Y&&(this[_0x35f7ac(0x1e3)]=!0x0);})),this[_0x520165(0x103)](_0x35cf2e[_0x520165(0x1ea)][_0x520165(0x1ab)](()=>{const _0x1ebe14=_0x520165;this[_0x1ebe14(0x1e3)]&&this[_0x1ebe14(0x10e)]();})),this['disposeWithMe'](_0x1a30e2[_0x520165(0x23b)][_0x520165(0x104)](()=>{const _0x1b8619=_0x520165;this[_0x1b8619(0x1e3)]&&(this[_0x1b8619(0x1e3)]=!0x1,this['_createShapeAdjustControls']());})),this[_0x520165(0x103)](_0x35cf2e[_0x520165(0x1c6)][_0x520165(0x1ab)](()=>{const _0x2df8c0=_0x520165;this[_0x2df8c0(0x17f)]&&this[_0x2df8c0(0x18e)]&&this[_0x2df8c0(0x1b2)]&&(this[_0x2df8c0(0x1b4)]=this[_0x2df8c0(0x146)](this[_0x2df8c0(0x17f)],this[_0x2df8c0(0x18e)],this[_0x2df8c0(0x1b2)]),this[_0x2df8c0(0x109)]());}));}[_0x1bbd40(0x249)](){const _0xde8609=_0x1bbd40;this[_0xde8609(0x103)](this['_drawingManagerService'][_0xde8609(0x185)][_0xde8609(0x1ab)](_0x1a32dd=>{const _0x3b5ead=_0xde8609;if(_0x1a32dd[_0x3b5ead(0x21f)]===0x1){let _0x4a558f=_0x1a32dd[0x0],_0x2ea55e=this['_drawingManagerService']['getDrawingByParam'](_0x4a558f);if((_0x2ea55e==null?void 0x0:_0x2ea55e[_0x3b5ead(0x212)])===_0x4d493a['DRAWING_SHAPE']){this[_0x3b5ead(0x1b2)]=_0x4a558f[_0x3b5ead(0x196)],this[_0x3b5ead(0x17f)]=_0x4a558f[_0x3b5ead(0x1f3)],this[_0x3b5ead(0x18e)]=_0x4a558f[_0x3b5ead(0x1e7)],this[_0x3b5ead(0x1b4)]=this[_0x3b5ead(0x146)](_0x4a558f[_0x3b5ead(0x1f3)],_0x4a558f['subUnitId'],_0x4a558f[_0x3b5ead(0x196)]),this[_0x3b5ead(0x10e)](),this['_createShapeAdjustControls']();return;}}this[_0x3b5ead(0x1b2)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x3b5ead(0x17f)]=null,this[_0x3b5ead(0x18e)]=null,this[_0x3b5ead(0x10e)]();})),this['disposeWithMe'](this[_0xde8609(0x139)][_0xde8609(0x16f)][_0xde8609(0x1ab)](_0x246a4e=>{const _0x1ae09c=_0xde8609;if(_0x246a4e[_0x1ae09c(0x21f)]===0x1){var _0x18701f;((_0x18701f=this[_0x1ae09c(0x139)][_0x1ae09c(0x21b)](_0x246a4e[0x0]))==null?void 0x0:_0x18701f['drawingType'])===_0x4d493a[_0x1ae09c(0x112)]&&this['_updateShapeAdjustControls'](!0x0);}})),this[_0xde8609(0x103)](this[_0xde8609(0x139)]['remove$']['subscribe'](_0xf79c35=>{const _0x344797=_0xde8609;for(let _0x355cdb of _0xf79c35)this['_activeShapeId']===_0x355cdb['drawingId']&&(this['_activeShapeId']=null,this[_0x344797(0x1b4)]=void 0x0,this[_0x344797(0x17f)]=null,this[_0x344797(0x18e)]=null,this[_0x344797(0x10e)]());}));}};X=H([V(0x1,_0x34a81f),V(0x2,_0x34aebd(_0x5d1274)),V(0x3,_0x4f0a70)],X);function un(_0x42b809){const _0x5eef6e=_0x1bbd40;return _0x42b809[_0x5eef6e(0x1a8)]===!0x0||_0x42b809[_0x5eef6e(0x1a8)]===_0x48a9fb[_0x5eef6e(0x218)]||_0x42b809[_0x5eef6e(0x1af)]===_0x3c1880['WRAP_NONE']&&_0x42b809['behindDoc']===_0x48a9fb[_0x5eef6e(0x218)]?_0x59e32f-0x1:_0x5e28c1;}let Z=class extends _0x85f344{constructor(_0x1099e3,_0x5ba5ab,_0x2785d2,_0x3c0850,_0x14d5b6,_0x36cd2c){const _0x531594=_0x1bbd40;super(),this[_0x531594(0x139)]=_0x1099e3,this[_0x531594(0xcc)]=_0x5ba5ab,this[_0x531594(0x110)]=_0x2785d2,this['_imageIoService']=_0x3c0850,this[_0x531594(0x15e)]=_0x14d5b6,this[_0x531594(0xfd)]=_0x36cd2c;}[_0x1bbd40(0xbf)](_0x39b34b,_0x55656d){const _0x3627fe=_0x1bbd40;let {transform:_0x488f5c,drawingType:_0x3524b1,srcRect:_0x3b111d,prstGeom:_0x4ee2ca,groupId:_0x2595ca,unitId:_0xc23796,subUnitId:_0x1b4351,drawingId:_0xa19f92,isMultiTransform:_0x2e7844,transforms:_0x40a7d7,hidden:_0x3288de}=_0x39b34b;if(_0x3524b1!==_0x4d493a[_0x3627fe(0x112)]||!this[_0x3627fe(0x139)]['getDrawingVisible']()||_0x488f5c==null)return;let _0x5a8913=_0x2e7844&&_0x40a7d7?_0x40a7d7:[_0x488f5c],_0x2ff37d=[];for(let _0xdc5b31 of _0x5a8913){let {left:_0x45e882,top:_0x250b2e,width:_0x2ca964,height:_0x37f712,angle:_0x1c7a65,flipX:_0x4b3fbc,flipY:_0x548031,skewX:_0xadea18,skewY:_0x42d4e1}=_0xdc5b31,_0x374a46=_0x5a8913['indexOf'](_0xdc5b31),_0x513087=_0x586d8f({'unitId':_0xc23796,'subUnitId':_0x1b4351,'drawingId':_0xa19f92},_0x2e7844?_0x374a46:void 0x0),_0x40a99c=_0x55656d['getObjectIncludeInGroup'](_0x513087);if(_0x40a99c!=null){_0x40a99c[_0x3627fe(0x22a)]({'left':_0x45e882,'top':_0x250b2e,'width':_0x2ca964,'height':_0x37f712,'angle':_0x1c7a65,'flipX':_0x4b3fbc,'flipY':_0x548031,'skewX':_0xadea18,'skewY':_0x42d4e1});continue;}let _0x17ad93=this[_0x3627fe(0x139)][_0x3627fe(0x1ff)](_0xc23796,_0x1b4351),_0xf58871=_0x17ad93[_0x3627fe(0x1c5)](_0xa19f92);if(_0x55656d['getObjectIncludeInGroup'](_0x513087)||!this[_0x3627fe(0x139)][_0x3627fe(0x1f1)]())continue;let _0x1214c4=this[_0x3627fe(0xcc)][_0x3627fe(0x1ec)](_0xc23796,_0x1b4351,_0xa19f92);if(!_0x1214c4)continue;let _0x404ffb=new Y(_0x513087,{..._0x1d0db4(_0x1214c4[_0x3627fe(0xd5)]())?{..._0xdc5b31,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:{..._0xdc5b31},'zIndex':_0xf58871===-0x1?_0x17ad93['length']-0x1:_0xf58871,'shapeModel':_0x1214c4,'localeService':this['_localeService'],'shapeId':_0xa19f92,'unitId':_0xc23796,'subUnitId':_0x1b4351,'visible':_0x3288de!==!0x0});this['disposeWithMe'](_0x3fd961(_0x404ffb[_0x3627fe(0x1ed)][_0x3627fe(0x104)]((_0x4e1bf0,_0x22977e)=>{const _0x3790f4=_0x3627fe;_0x1214c4[_0x3790f4(0x247)]()||(this[_0x3790f4(0xfd)][_0x3790f4(0x242)]({'visible':!0x0,'unitId':_0xc23796,'subUnitId':_0x1b4351,'shapeId':_0xa19f92,'shapeKey':_0x404ffb[_0x3790f4(0x250)]}),_0x22977e[_0x3790f4(0x201)]());}))),_0x55656d[_0x3627fe(0x1fb)](_0x404ffb,un(_0x39b34b)),this[_0x3627fe(0x139)][_0x3627fe(0x236)]()&&_0x55656d[_0x3627fe(0x23f)](_0x404ffb),_0x2595ca&&_0x3636f6({'drawingId':_0x2595ca,'unitId':_0xc23796,'subUnitId':_0x1b4351},_0x404ffb,_0x55656d,this[_0x3627fe(0x139)]),_0x4ee2ca!=null&&_0x404ffb['setPrstGeom'](_0x4ee2ca),_0x3b111d!=null&&_0x404ffb['setSrcRect'](_0x3b111d),this[_0x3627fe(0xec)](_0x404ffb,_0x1214c4[_0x3627fe(0x1cb)]()),_0x2ff37d[_0x3627fe(0x235)](_0x404ffb);}return _0x2ff37d;}[_0x1bbd40(0x1a1)](_0xc225aa){const _0x48a8d2=_0x1bbd40;let _0xb7e3df=_0xc225aa[_0x48a8d2(0xe4)][_0x48a8d2(0x1cb)](),_0x4af476=_0xb7e3df['fill'];if(!_0x4af476||_0x4af476[_0x48a8d2(0x1b0)]!==_0x5c3d0e[_0x48a8d2(0x10f)]||!_0x4af476[_0x48a8d2(0x1e4)]){_0xc225aa[_0x48a8d2(0x12b)](void 0x0);return;}this[_0x48a8d2(0xec)](_0xc225aa,_0xb7e3df);}[_0x1bbd40(0xec)](_0x2735f5,_0x3ecb89){const _0x2369d6=_0x1bbd40;var _0x20322b;let _0x3158e0=_0x3ecb89[_0x2369d6(0x1d3)];if(!_0x3158e0||_0x3158e0['fillType']!==_0x5c3d0e[_0x2369d6(0x10f)]||!_0x3158e0['fillImageSource'])return;let _0x36d976=_0x3158e0[_0x2369d6(0x1e4)],_0x3b20ee=(_0x20322b=_0x3158e0[_0x2369d6(0x126)])==null?_0x2d97ef[_0x2369d6(0x1bf)]:_0x20322b,_0x1826fd=this['_imageIoService']['getImageSourceCache'](_0x36d976,_0x3b20ee);if(_0x1826fd){_0x2735f5['setFillImage'](_0x1826fd);return;}this[_0x2369d6(0x107)](_0x2735f5,_0x36d976,_0x3b20ee);}async[_0x1bbd40(0x107)](_0x2c9131,_0xf88c60,_0x3923a4){const _0x3b5ecb=_0x1bbd40;let _0x44f1da;try{if(_0x3923a4===_0x2d97ef[_0x3b5ecb(0x163)])_0x44f1da=await this[_0x3b5ecb(0x187)][_0x3b5ecb(0x1e1)](_0xf88c60);else{if(_0x3923a4===_0x2d97ef[_0x3b5ecb(0x1bf)])try{_0x44f1da=await this['_urlImageService'][_0x3b5ecb(0x1e1)](_0xf88c60);}catch{_0x44f1da=_0xf88c60;}else _0x44f1da=_0xf88c60;}}catch(_0xf54213){console['error'](_0x3b5ecb(0x253),_0xf54213);return;}let _0x54b169=new window[(_0x3b5ecb(0x137))]();_0x54b169[_0x3b5ecb(0x19f)]=()=>{const _0x586da1=_0x3b5ecb;this[_0x586da1(0x187)][_0x586da1(0xcb)](_0xf88c60,_0x3923a4,_0x54b169),_0x2c9131[_0x586da1(0x12b)](_0x54b169);},_0x54b169[_0x3b5ecb(0x214)]=()=>{const _0x56662f=_0x3b5ecb;console[_0x56662f(0x1c8)](_0x56662f(0x14c),_0xf88c60);},_0x54b169[_0x3b5ecb(0xc9)]=_0x44f1da;}};Z=H([V(0x0,_0x34a81f),V(0x1,_0x34aebd(_0x5d1274)),V(0x2,_0x34aebd(_0x569932)),V(0x3,_0x5c2ad5),V(0x4,_0x3ff91b),V(0x5,_0x34aebd(K))],Z);function dn(_0x1730a1,_0x2a4f41){const _0x542ef2=_0x1bbd40;let _0x1b729d=_0x1730a1;for(;_0x1b729d;){if(_0x2a4f41(_0x1b729d))return _0x1b729d;_0x1b729d=typeof _0x1b729d[_0x542ef2(0x1b8)]=='function'?_0x1b729d[_0x542ef2(0x1b8)]():null;}return null;}function fn(_0x7bdca8){return dn(_0x7bdca8,_0x25e01e=>_0x25e01e instanceof Y);}let pn=class extends _0x85f344{constructor(_0x4bc1fe,_0x180526,_0x189d16,_0x2d62f9,_0x499c0a){const _0x37f3ce=_0x1bbd40;super(),this[_0x37f3ce(0xde)]=_0x4bc1fe,this[_0x37f3ce(0xfd)]=_0x180526,this[_0x37f3ce(0x139)]=_0x189d16,this[_0x37f3ce(0x10d)]=_0x2d62f9,this[_0x37f3ce(0xcc)]=_0x499c0a,G(this,'_lastEditingShapeKey',null),this['_initEvents'](),this['_initSelection'](),this['_initEditingParams']();}['_initEvents'](){const _0x2f2ebd=_0x1bbd40;let {scene:_0x216beb}=this[_0x2f2ebd(0xde)];this[_0x2f2ebd(0x103)](_0x216beb[_0x2f2ebd(0x1ed)][_0x2f2ebd(0x104)](_0x1910ba=>{const _0x2b03a1=_0x2f2ebd;var _0x4db1a2;let {offsetX:_0x51d9b5,offsetY:_0x10f726}=_0x1910ba,_0x57a8e9=_0x1110ec[_0x2b03a1(0x150)]([_0x51d9b5,_0x10f726]),_0x58a86b=(_0x4db1a2=fn(_0x216beb[_0x2b03a1(0x232)](_0x57a8e9)))==null?this['_getFocusedShapeAtPoint'](_0x57a8e9):_0x4db1a2;if(_0x58a86b){if(_0x1d0db4(this['_docsShapeService'][_0x2b03a1(0xd5)](_0x58a86b['unitId'],_0x58a86b[_0x2b03a1(0x1e7)],_0x58a86b[_0x2b03a1(0x24a)])))return;this['_shapeTextEditingService'][_0x2b03a1(0x242)]({'visible':!0x0,'unitId':_0x58a86b[_0x2b03a1(0x1f3)],'subUnitId':_0x58a86b[_0x2b03a1(0x1e7)],'shapeId':_0x58a86b[_0x2b03a1(0x24a)],'shapeKey':_0x58a86b[_0x2b03a1(0x250)]});}}));}['_getFocusedShapeAtPoint'](_0x5dfef2){const _0x4aa5b7=_0x1bbd40;let {scene:_0x340ac4}=this[_0x4aa5b7(0xde)],_0x5a2822=this[_0x4aa5b7(0x139)]['getFocusDrawings']()[_0x4aa5b7(0xd3)](_0x43655d=>_0x340ac4[_0x4aa5b7(0x1db)](_0x586d8f(_0x43655d)))[_0x4aa5b7(0x166)](_0x2282c1=>_0x2282c1 instanceof Y&&_0x2282c1[_0x4aa5b7(0x19d)](_0x5dfef2));return _0x5a2822==null?null:_0x5a2822;}['_initSelection'](){const _0x17dfa0=_0x1bbd40;this['disposeWithMe'](this[_0x17dfa0(0x139)]['focus$'][_0x17dfa0(0x1ab)](_0x5a22ee=>{const _0x17df5e=_0x17dfa0;if(_0x5a22ee[_0x17df5e(0x21f)]===0x1){let _0x182a83=_0x5a22ee[0x0],_0x26e926=this[_0x17df5e(0x139)][_0x17df5e(0x21b)](_0x182a83);if((_0x26e926==null?void 0x0:_0x26e926[_0x17df5e(0x212)])===_0x4d493a[_0x17df5e(0x112)]){let _0x44b2b5=this[_0x17df5e(0xfd)]['getEditing']();if((_0x44b2b5==null?void 0x0:_0x44b2b5['shapeId'])===_0x182a83[_0x17df5e(0x196)]&&_0x44b2b5[_0x17df5e(0x1da)])return;_0x1d0db4(this['_docsShapeService'][_0x17df5e(0xd5)](_0x182a83['unitId'],_0x182a83[_0x17df5e(0x1e7)],_0x182a83[_0x17df5e(0x196)]))&&this[_0x17df5e(0xfd)][_0x17df5e(0x242)](null);}else this[_0x17df5e(0xfd)]['getEditing']()&&(this[_0x17df5e(0xfd)][_0x17df5e(0x1f9)](!0x0),requestAnimationFrame(()=>{const _0x249a2f=_0x17df5e;this[_0x249a2f(0xfd)]['setEditing'](null);}));}else this[_0x17df5e(0xfd)][_0x17df5e(0x133)]()&&(this['_shapeTextEditingService'][_0x17df5e(0x1f9)](!0x0),requestAnimationFrame(()=>{const _0x139975=_0x17df5e;this['_shapeTextEditingService'][_0x139975(0x242)](null);}));})),this[_0x17dfa0(0x103)](this[_0x17dfa0(0x139)]['remove$'][_0x17dfa0(0x1ab)](_0x487ec3=>{const _0x3da17f=_0x17dfa0;let _0x3d139b=this[_0x3da17f(0xfd)][_0x3da17f(0x133)]();_0x3d139b&&_0x487ec3[_0x3da17f(0x18a)](_0x20b43a=>_0x20b43a[_0x3da17f(0x196)]===_0x3d139b[_0x3da17f(0x24a)])&&this[_0x3da17f(0xfd)][_0x3da17f(0x242)](null);}));}[_0x1bbd40(0x176)](){const _0x1faeb0=_0x1bbd40;this[_0x1faeb0(0x103)](this[_0x1faeb0(0xfd)][_0x1faeb0(0x1ce)]['subscribe'](_0x5aa30b=>{const _0x123450=_0x1faeb0;let {scene:_0x5dd5c5}=this['_context'];if(this[_0x123450(0x256)]){let _0x5ef123=_0x5dd5c5[_0x123450(0x1db)](this['_lastEditingShapeKey']);_0x5ef123&&_0x5ef123[_0x123450(0x242)](!0x1);}if(_0x5aa30b){let _0x559c34=!!_0x5aa30b[_0x123450(0x1da)],_0x1beaa4=_0x5dd5c5[_0x123450(0x1db)](_0x5aa30b['shapeKey']);_0x1beaa4&&(_0x1beaa4[_0x123450(0x242)](_0x559c34),this[_0x123450(0x256)]=_0x5aa30b[_0x123450(0x24d)]),this[_0x123450(0x10d)][_0x123450(0x257)](_0x19322a,_0x559c34);}else this[_0x123450(0x256)]=null,this[_0x123450(0x10d)]['setContextValue'](_0x19322a,!0x1);}));}};pn=H([V(0x1,_0x34aebd(K)),V(0x2,_0x34a81f),V(0x3,_0x34c950),V(0x4,_0x34aebd(_0x5d1274))],pn);function mn(){return _0x21da97(_0x5260cf,{});}let hn=class extends _0x50ec2b{constructor(_0xf58c63,_0x3b894e,_0x2b55c6,_0x4f671a,_0x5cb644){const _0xf0bfe1=_0x1bbd40;super(_0xf58c63,_0x3b894e,_0x2b55c6,_0x4f671a,_0x5cb644,{'componentKey':_0xf0bfe1(0x188),'editorUnitId':Nt,'toolbarComponent':mn});}};hn=H([V(0x1,_0x34aebd(_0x4e083d)),V(0x2,_0x34aebd(_0x5ad9f9)),V(0x3,_0x34aebd(_0x526e80)),V(0x4,_0x34aebd(_0x27784a))],hn);let Q=class extends _0x85f344{constructor(_0x590e9e,_0x2f1ce7,_0x40c9ba,_0x56d7c0){const _0x539cb6=_0x1bbd40;super(),this[_0x539cb6(0x102)]=_0x590e9e,this[_0x539cb6(0x228)]=_0x2f1ce7,this[_0x539cb6(0x139)]=_0x40c9ba,this['_docDrawingShapeRenderController']=_0x56d7c0,this[_0x539cb6(0x18d)]();}[_0x1bbd40(0x18d)](){const _0xaba401=_0x1bbd40;this[_0xaba401(0x103)](this[_0xaba401(0x139)][_0xaba401(0x20a)][_0xaba401(0x1ab)](_0x37ec70=>this[_0xaba401(0x1c0)](_0x37ec70))),this[_0xaba401(0x103)](this['_drawingManagerService']['update$'][_0xaba401(0x1ab)](_0x30bb09=>{const _0xe1efce=_0xaba401;_0x30bb09[_0xe1efce(0x1aa)](_0x2a8c1b=>this['_updateShape'](_0x2a8c1b));})),this['disposeWithMe'](this[_0xaba401(0x102)][_0xaba401(0x23e)](_0x2e19ca=>{const _0x51daed=_0xaba401;if(_0x2e19ca['id']!==_0x45fcbf['id'])return;let {unitId:_0x52137f,shapeId:_0x5c8a74}=_0x2e19ca[_0x51daed(0x117)];this[_0x51daed(0x135)]({'unitId':_0x52137f,'subUnitId':_0x52137f,'drawingId':_0x5c8a74});}));}[_0x1bbd40(0x1c0)](_0xedb399){const _0x21fb5b=_0x1bbd40;_0xedb399[_0x21fb5b(0x1aa)](_0x131f4b=>{const _0x5707c8=_0x21fb5b;var _0x4539e6;let _0x3e52d5=this[_0x5707c8(0x1a4)](_0x131f4b['unitId']);if(!_0x3e52d5)return;let _0x458ebc=this['_drawingManagerService'][_0x5707c8(0x21b)](_0x131f4b);(_0x458ebc==null?void 0x0:_0x458ebc[_0x5707c8(0x212)])===_0x4d493a[_0x5707c8(0x112)]&&(_0x1d0db4((_0x4539e6=_0x458ebc['data'])==null?void 0x0:_0x4539e6[_0x5707c8(0x22f)])&&_0x458ebc[_0x5707c8(0x230)]&&(_0x458ebc[_0x5707c8(0x230)]={..._0x458ebc[_0x5707c8(0x230)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}),this[_0x5707c8(0x139)]['refreshTransform']([_0x458ebc]),this[_0x5707c8(0x125)][_0x5707c8(0xbf)](_0x458ebc,_0x3e52d5['scene']));});}[_0x1bbd40(0x1ac)](_0x2b0331){const _0x584cac=_0x1bbd40;let _0x56d784=this[_0x584cac(0x139)][_0x584cac(0x21b)](_0x2b0331);if((_0x56d784==null?void 0x0:_0x56d784[_0x584cac(0x212)])!==_0x4d493a[_0x584cac(0x112)])return;let _0xd763bc=this[_0x584cac(0x1a4)](_0x2b0331[_0x584cac(0x1f3)]);if(!_0xd763bc||_0x56d784[_0x584cac(0x230)]==null)return;let _0x13256f=_0x586d8f(_0x2b0331),_0xbda396=_0xd763bc[_0x584cac(0x224)][_0x584cac(0x1db)](_0x13256f);_0xbda396&&(_0xbda396[_0x584cac(0x24f)](_0x56d784['srcRect']),_0xbda396[_0x584cac(0x252)](_0x56d784[_0x584cac(0x1de)]),_0xbda396['makeDirty'](!0x0));}[_0x1bbd40(0x135)](_0x445ff0){const _0x422c39=_0x1bbd40;let _0x49b1d2=this['_getSceneByUnitId'](_0x445ff0[_0x422c39(0x1f3)]);if(!_0x49b1d2)return;let _0x4d2554=_0x586d8f(_0x445ff0),_0x209057=_0x49b1d2['scene'][_0x422c39(0x1db)](_0x4d2554);_0x209057&&(this['_docDrawingShapeRenderController']['refreshShapeFillImage'](_0x209057),_0x209057[_0x422c39(0x23d)](!0x0));}[_0x1bbd40(0x1a4)](_0x2374dd){const _0x45ec90=_0x1bbd40;if(_0x2374dd==null)return null;let _0x680034=this[_0x45ec90(0x228)][_0x45ec90(0x12f)](_0x2374dd),_0x5cd9e0=_0x680034==null?void 0x0:_0x680034[_0x45ec90(0x224)];return _0x5cd9e0==null?null:{'scene':_0x5cd9e0};}};Q=H([V(0x0,_0x4f0a70),V(0x1,_0x296a13),V(0x2,_0x34a81f),V(0x3,_0x34aebd(Z))],Q);let $=class extends _0x2b5c51{constructor(_0x2d3d1e=en,_0x2cfa91,_0x5a2223,_0x2e7fba,_0x2c3a8c){const _0x3064cb=_0x1bbd40;super(),this[_0x3064cb(0x1b7)]=_0x2d3d1e,this[_0x3064cb(0x1eb)]=_0x2cfa91,this[_0x3064cb(0x102)]=_0x5a2223,this[_0x3064cb(0x155)]=_0x2e7fba,this['_renderManagerService']=_0x2c3a8c;let {menu:_0x659e2c,..._0x3b8286}=_0x5b666f({},en,this[_0x3064cb(0x1b7)]);_0x659e2c&&this[_0x3064cb(0x155)][_0x3064cb(0x101)]('menu',_0x659e2c,{'merge':!0x0}),this[_0x3064cb(0x155)]['setConfig'](_0x3064cb(0x211),_0x3b8286),this[_0x3064cb(0x106)]();}['onStarting'](){const _0x1721dd=_0x1bbd40;this[_0x1721dd(0x1eb)][_0x1721dd(0xd8)]([an]),this['_injector'][_0x1721dd(0x169)](an),_0x202f0c(this[_0x1721dd(0x1eb)],[[q],[Q],[Z],[X],[U],[J],[K]]),this[_0x1721dd(0x1a3)]();}[_0x1bbd40(0x1a5)](){const _0x4d43c7=_0x1bbd40;this[_0x4d43c7(0x228)][_0x4d43c7(0xbd)](_0x4ed47c['UNIVER_DOC'],[X]),this[_0x4d43c7(0x228)][_0x4d43c7(0xbd)](_0x4ed47c['UNIVER_DOC'],[pn]),this[_0x4d43c7(0x228)][_0x4d43c7(0xbd)](_0x4ed47c[_0x4d43c7(0x1ae)],[hn]),_0xe8fd5b(this[_0x4d43c7(0x1eb)],[[q],[Q],[Z],[U],[J],[K]]);}['_initCommands'](){const _0x2fb612=_0x1bbd40;[z,jt,B]['forEach'](_0x1d1778=>this[_0x2fb612(0x103)](this[_0x2fb612(0x102)][_0x2fb612(0xca)](_0x1d1778)));}[_0x1bbd40(0x1a3)](){const _0x83bfdf=_0x1bbd40;let _0x104e47=this[_0x83bfdf(0x1eb)],_0x1bca09=_0x104e47[_0x83bfdf(0x169)](_0x883bbc);this['disposeWithMe'](_0x1bca09['registerComponent'](_0x107fca[_0x83bfdf(0x251)],()=>_0x5bced6(rn,_0x104e47)));}};G($,_0x1bbd40(0xff),_0x4ed47c['UNIVER_DOC']),G($,_0x1bbd40(0x1ba),_0x1bbd40(0x120)),G($,'packageName',Qt),G($,_0x1bbd40(0x1d7),$t),$=H([_0x37196e(_0x1e708a,_0x12db1a,_0x3b7eea,_0x415ce7),V(0x1,_0x34aebd(_0xed1485)),V(0x2,_0x4f0a70),V(0x3,_0x157fe9),V(0x4,_0x296a13)],$);export{jt as CloseDocShapeFormatPanelOperation,q as DocsShapeUIController,z as MenuInsertShapeCommand,B as OpenDocShapeFormatPanelOperation,$ as UniverDocsShapeUIPlugin};
|