@univerjs-pro/docs-shape-ui 1.0.1 → 1.0.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.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/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 +21 -21
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x16bf5e=_0x5363;(function(_0x596304,_0x3c013a){const _0x5cdd14=_0x5363,_0x414238=_0x596304();while(!![]){try{const _0xd806db=-parseInt(_0x5cdd14(0x34d))/0x1+parseInt(_0x5cdd14(0x128))/0x2+parseInt(_0x5cdd14(0x2d9))/0x3*(-parseInt(_0x5cdd14(0x343))/0x4)+parseInt(_0x5cdd14(0x1a7))/0x5+parseInt(_0x5cdd14(0x32b))/0x6+parseInt(_0x5cdd14(0x347))/0x7+-parseInt(_0x5cdd14(0x2df))/0x8*(parseInt(_0x5cdd14(0x331))/0x9);if(_0xd806db===_0x3c013a)break;else _0x414238['push'](_0x414238['shift']());}catch(_0xa3c555){_0x414238['push'](_0x414238['shift']());}}}(_0x261b,0xebf42));import{FormulaShapeAnimationController as _0x3a602c,MobileShapeEditorControls as _0x5b92b1,MobileShapeEditorService as _0x38f3b5,MobileShapePickerPanel as _0x240761,SHAPE_CHANGE_PICKER_COMPONENT as _0x4afcd7,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x2a73fb,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x5b3daa,ShapeEditPanel as _0x5015c8,ShapeFloatingToolbar as _0x5c383f,ShapeFloatingToolbarService as _0x345a12,ShapeFloatingToolbarToggleFactory as _0x558a4c,ShapeFormulaRibbonControl as _0x3d3054,ShapeGroupEnum as _0x2e5f24,ShapePickerDropdown as _0x1d2956,ShapePickerPanel as _0x526005,ShapeQuickStyleGallery as _0x1927de,ShapeStyleRibbonControl as _0x6341fb,ShapeTextEditorContainer as _0x43cf54,ShapeTextFloatMenuRenderControllerBase as _0x2d6c19,ShapeTextFloatToolbar as _0x42d58e,ShapeTextHyperLinkPopupService as _0x2408bc,ShapeTextRibbonControl as _0x8a4229,ToggleShapeFloatingToolbarOperation as _0x36c9d6,UniverShapeEditorMobileUIPlugin as _0xb1c350,UniverShapeEditorUIPlugin as _0x2bfba6,activateDrawingObject as _0x139fb0,bindRenderTransformerLifecycle as _0xeca305,buildShapeTextDataUpdate as _0x411156,clearActiveDrawingObjects as _0x152640,drawFormulaShapeAnimationLayers as _0x3ae758,getDrawingTypeNameKey as _0x363aef,getTextModel as _0x58243d,getTextStyle as _0x2f5a49,normalizeShapeTextModel as _0x4a9cfc,plainShapeTextToDocumentData as _0x2ad81b,prepareShapeTextDocumentData as _0x5f49cc,prepareShapeTextDocumentData as _0x39bbf1,registerShapeFormatPainter as _0x33b5f0,resolveFormulaShapeAutoFitSize as _0x203556,resolveShapeContextualRibbonHostMode as _0x23ca1c,resolveShapeTextDocumentPageHeight as _0x28de7f,resolveShapeTextDocumentRenderLayout as _0x208c0b,resolveShapeTextEditorBehaviorShapeData as _0x4a5314,resolveShapeTextEditorWrapStrategy as _0x103b43,shouldAllowShapeTextEditorHostSizeShrink as _0x1cb49f,shouldClipShapeTextDocument as _0x560777,useFormulaShapeToolbar as _0xfc437f}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x31db56,DOC_CONTENT_INSERT_MENU_ID as _0x73acf7,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x4261b3,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3f2bb5,DocCanvasPopManagerService as _0x42fe30,DocEventManagerService as _0x5ef133,DocLayoutInteractionService as _0x408b8e,DocParagraphMenuService as _0x147815,DocPrintInterceptorService as _0x4ccf7e,DocRenderController as _0x269678,DocSelectionRenderService as _0x101f6f,EMPTY_PARAGRAPH_MENU_ID as _0x26aab8,INSERT_BELLOW_MENU_ID as _0x22e8c4,UniverDocsMobileUIPlugin as _0x4f7aa3,UniverDocsUIPlugin as _0x1739f6,VIEWPORT_KEY as _0x1718ab}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x58e59d,ComponentManager as _0x6a795a,ContextMenuGroup as _0x36c690,ContextMenuPosition as _0xf321b5,FloatingObjectToolbarPosition as _0x1919f0,FormatPainterSessionService as _0xbbc0b9,IMenuManagerService as _0x358623,IRibbonService as _0x2e4512,ISidebarService as _0x2e36b7,IUIPartsService as _0x278843,IconManager as _0x3df9c1,MenuItemType as _0x124b8a,MenuManagerPosition as _0x32bcc5,MobileMenu as _0x2eea3a,ObjectPermissionButton as _0x976fdd,RibbonInsertGroup as _0x4b0cb4,connectInjector as _0x4bde98,getMenuHiddenObservable as _0x1bbe01,useDependency as _0x10e4db,useObservable as _0x39adc0}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x28a73b,DEFAULT_DOC_SHAPE_WIDTH as _0x248fe1,DocShapeAnchorPosition as _0x3e48d3,DocsShapeService as _0xda92b6,InsertDocShapeCommand as _0x479479,UniverDocsShapePlugin as _0x384ed5,UpdateDocDrawingMetadataCommand as _0x2505fd,UpdateDocShapeDataCommand as _0x9d3fcb,UpdateDocShapeDataMutation as _0x135998}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x33465c,ShapeArrowSizeEnum as _0x303f88,ShapeArrowTypeEnum as _0x58b98b,ShapeDefaultConfig as _0x4c92e4,ShapeFillEnum as _0x31b6bd,ShapeLineTypeEnum as _0x326619,ShapeModel as _0x2dd6ac,ShapeRenderModeEnum as _0x42d4f9,ShapeTextAutoFitType as _0x3c6783,ShapeTypeEnum as _0x25ce09,isConnectorShape as _0x15125c,resolveShapeTextBodyBehavior as _0x428285}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x5cd2c6,UniverShapeEditorPlugin as _0x496014,applyQuickStyleToShapeData as _0x2db3e5,cloneShapeDataForType as _0x1e1154,createShapeFormulaDocument as _0x1eb974,createShapeTextBoxShapeData as _0x4e61a4,getShapeQuickStylePreset as _0x47b09e,getShapeQuickStyleType as _0x296933,resolveActiveShapeQuickStylePresetId as _0x293a67}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x10c839,BooleanNumber as _0x2fa3f8,CommandType as _0x1ef837,DependentOn as _0x4396f9,Disposable as _0x3db69a,DisposableCollection as _0x45b9fb,DocumentDataModel as _0x1d7f7d,DrawingTypeEnum as _0x21524c,FOCUSING_COMMON_DRAWINGS as _0x3a52be,FOCUSING_SHAPE_TEXT_EDITOR as _0x3cbde6,HorizontalAlign as _0x165288,ICommandService as _0x38aa04,IConfigService as _0x205da2,IContextService as _0x1be7b7,IImageIoService as _0xa426f,IPermissionService as _0x137531,IURLImageService as _0x545102,IUniverInstanceService as _0x3fa0e3,Inject as _0x1f7d38,Injector as _0xd87dbc,LocaleService as _0x26ba4d,Plugin as _0x194e5b,PositionedObjectLayoutType as _0x2cf572,UniverInstanceType as _0x5a336e,VerticalAlign as _0xf861a6,createInternalEditorID as _0x5e7889,generateRandomId as _0x487c28,getParagraphContentStartOffset as _0x4c18a7,merge as _0x4b28ed,registerDependencies as _0x182f9f,toDisposable as _0x5bca0e,touchDependencies as _0x53ce1a}from'@univerjs/core';import{DocInterceptorService as _0x2d8b15,DocSelectionManagerService as _0x371d66,RichTextEditingMutation as _0x59724c,SetDocumentPermissionCommand as _0x44c286,UniverDocsPlugin as _0x1b3dd2,canEditDocumentTargets as _0x1aefa3,getDocumentDrawingSegmentId as _0x359abd,getDocumentEntityParentPermissionObjectIds as _0x2f3e76,getDocumentEntityPermissionObjectId as _0x3200bc}from'@univerjs/docs';import{IDocDrawingService as _0x4d163d,RemoveDocDrawingCommand as _0x1d5a93,SetDocDrawingArrangeCommand as _0x41b423,TextWrappingStyle as _0x4965c4,UpdateDocDrawingWrappingStyleCommand as _0x4b8558,UpdateDrawingDocTransformCommand as _0xeab56b}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x1dfb4e,Circle as _0x3166ca,DRAWING_OBJECT_LAYER_INDEX as _0x19f6eb,DocumentSkeleton as _0x116815,DocumentViewModel as _0x47d8e5,Documents as _0x51fa0b,IRenderManagerService as _0x33251a,RENDER_CLASS_TYPE as _0x80275a,Shape as _0x35795a,Transform as _0x60df43,UniverRenderEnginePlugin as _0x418575,Vector2 as _0xed2876,getLastLine as _0x4e6d0e,setDocsCustomBlockRenderViewportProvider as _0x4e18db}from'@univerjs/engine-render';import{IDrawingManagerService as _0x30fd72,SetDrawingSelectedOperation as _0x5b0fd5,UniverDrawingPlugin as _0x1c720d,getDrawingShapeKeyByDrawingSearch as _0xf14320}from'@univerjs/drawing';import{DrawingCommonPanel as _0x1f2b6b,DrawingImageClipService as _0x51f4be,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0xd24491,MobileObjectListPanel as _0x2533a6,OBJECT_LIST_FLOATING_SECTION_ID as _0x2bd9a9,ObjectListPanelBase as _0x2a48a3,UniverDrawingMobileUIPlugin as _0x1bc339,UniverDrawingUIPlugin as _0x3eece4,getObjectListPanelSectionIdForDrawingType as _0x380920,insertGroupObject as _0x50ac62}from'@univerjs/drawing-ui';import{Fragment as _0x1da262,jsx as _0xaa621a,jsxs as _0x136064}from'react/jsx-runtime';import{BehaviorSubject as _0x54747c,Observable as _0x4ff9ba,distinctUntilChanged as _0x417d82,map as _0x5a04a3,merge as _0x71248,of as _0x3fee7b,startWith as _0x48e294}from'rxjs';import{UniverLicensePlugin as _0x29dd55}from'@univerjs-pro/license';import{DocDrawingPosition as _0x4d45c5,DocDrawingTextWrap as _0x60b61c,MobileDocDrawingPosition as _0x182904,MobileDocDrawingTextWrap as _0x57a820,UniverDocsDrawingMobileUIPlugin as _0x464ec2,UniverDocsDrawingUIPlugin as _0x990e5d}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x2ea734,MoreDownIcon as _0x4f82a3,MoreUpIcon as _0x4dc00f,MoveDownIcon as _0x29b216,MoveUpIcon as _0x8804f5,ObjectLayersIcon as _0xe4ac2,ShapeFormatSettingIcon as _0x197da5,TextWrapShapeIcon as _0x103936,TopmostIcon as _0x1bc7b9}from'@univerjs/icons';import{MobileActionRow as _0x298766}from'@univerjs/design';import{memo as _0x11b938,useEffect as _0x37fbe0,useMemo as _0x391527,useReducer as _0x5b5614,useState as _0x47b1e4}from'react';import{UnitObject as _0x4dfd1d}from'@univerjs/protocol';function hr(_0x55221a,_0x55e0c4){const _0x3da126=_0x5363;if(_0x55e0c4){if(_0x15125c(_0x55221a)&&(_0x55e0c4['startArrow']||_0x55e0c4[_0x3da126(0x239)]))return{'ln':{'startArrow':_0x55e0c4['startArrow']?{'type':_0x58b98b['Arrow'],'size':_0x303f88[_0x3da126(0x21f)]}:void 0x0,'endArrow':_0x55e0c4[_0x3da126(0x239)]?{'type':_0x58b98b[_0x3da126(0x115)],'size':_0x303f88[_0x3da126(0x327)]}:void 0x0}};if(_0x55221a===_0x25ce09[_0x3da126(0x309)]&&(_0x55e0c4[_0x3da126(0x21a)]||_0x55e0c4['vertical']))return _0x4e61a4({'fill':{'fillType':_0x31b6bd['SolidFill'],'color':'#3B82F6'},'isHorizontal':!!_0x55e0c4[_0x3da126(0x21a)],'stroke':{'lineStrokeType':_0x326619[_0x3da126(0x362)],'width':0x1,'color':'#2563EB'}});}}function gr(_0x368399,_0x47add1){const _0xf896c8=_0x5363;var _0x30c5c6;let _0x3250e2=_0x47add1['segmentId']??'',_0x5ba5f5=(_0x30c5c6=_0x368399[_0xf896c8(0x2fc)](_0x3250e2))==null?void 0x0:_0x30c5c6[_0xf896c8(0x2ce)]();if(!_0x5ba5f5)return null;let _0x4c8a95=_0x5ba5f5['paragraphs']??[],_0x46c1ba=_0x4c8a95[_0xf896c8(0x2de)](_0x58da53=>{const _0x4b88ef=_0xf896c8;let _0x16290d=_0x4c18a7(_0x5ba5f5,_0x58da53);return _0x47add1[_0x4b88ef(0x1f5)]>=_0x16290d&&_0x47add1['startOffset']<=_0x58da53[_0x4b88ef(0x265)];})??_0x4c8a95[_0x4c8a95[_0xf896c8(0x116)]-0x1];return _0x46c1ba?{'paragraphId':_0x46c1ba[_0xf896c8(0x2ab)],'segmentId':_0x3250e2,'position':_0x3e48d3['OFFSET'],'offset':_0x47add1['startOffset']-_0x4c18a7(_0x5ba5f5,_0x46c1ba)}:null;}function _r(_0x54f5b5,_0x391688,_0x5852b8){const _0x573414=_0x5363;var _0x39982a,_0x5e2053;if(!_0x5852b8)return null;let _0x294f7a=(_0x39982a=_0x54f5b5['get'](_0x33251a)[_0x573414(0x260)](_0x391688))==null?void 0x0:_0x39982a['with'](_0x147815)[_0x573414(0x323)];if(!_0x294f7a)return null;let _0x449ef5=_0x5852b8===_0x573414(0x270)?{'startOffset':_0x294f7a['moveRange'][_0x573414(0x317)],'endOffset':_0x294f7a['moveRange'][_0x573414(0x317)]}:_0x294f7a['menuRange'];return{'startOffset':_0x449ef5[_0x573414(0x1f5)],'endOffset':_0x449ef5['endOffset'],'collapsed':_0x449ef5[_0x573414(0x1f5)]===_0x449ef5['endOffset'],'segmentId':((_0x5e2053=_0x294f7a['paragraph'])==null?void 0x0:_0x5e2053['segmentId'])??''};}const G={'type':_0x1ef837[_0x16bf5e(0x2c9)],'id':_0x16bf5e(0x242),'handler':async(_0x47e8e0,_0x3e7ace)=>{const _0x5745df=_0x16bf5e;let _0x35b6bd=_0x47e8e0[_0x5745df(0x2f5)](_0x3fa0e3)[_0x5745df(0x150)](_0x5a336e[_0x5745df(0x1e2)]);if(!_0x35b6bd)return!0x1;let _0xe00ce7=_0x47e8e0[_0x5745df(0x2f5)](_0x38aa04),_0x14acb9=_0x35b6bd[_0x5745df(0x2e3)](),_0x22989a=_0x3e7ace[_0x5745df(0x226)]??_0x487c28(),_0xc7c990=_0x3e7ace['width']??_0x248fe1,_0x277423=_0x3e7ace[_0x5745df(0x322)]??_0x28a73b,_0xaa92b8=_0x3e7ace[_0x5745df(0x2f2)]??hr(_0x3e7ace[_0x5745df(0x171)],_0x3e7ace['enhanceParams']),_0x5d1abf=_r(_0x47e8e0,_0x14acb9,_0x3e7ace[_0x5745df(0x118)])??_0x47e8e0[_0x5745df(0x2f5)](_0x371d66)['getActiveTextRange']();if(!_0x5d1abf)return!0x1;let _0x34128a=gr(_0x35b6bd,_0x5d1abf);return _0x34128a?!!_0xe00ce7[_0x5745df(0x147)](_0x479479['id'],{'unitId':_0x14acb9,'shapeId':_0x22989a,'shapeType':_0x3e7ace['value'],'shapeData':_0xaa92b8,'transform':{'width':_0xc7c990,'height':_0x277423},'placement':{'wrappingStyle':_0x4965c4[_0x5745df(0x307)],'anchor':_0x34128a}}):!0x1;}},K=_0x16bf5e(0x246),vr=_0x16bf5e(0x1e3),yr='doc.shape.object-list.panel',br=_0x5e7889(_0x16bf5e(0x2bf)),xr=_0x16bf5e(0x214),Sr=_0x16bf5e(0x183),Cr={'id':_0x16bf5e(0x13d),'type':_0x1ef837[_0x16bf5e(0x2c9)],'handler':(_0x1d0199,_0x139fa0)=>{const _0x1c2c70=_0x16bf5e;let _0x26c7c5=_0x1d0199[_0x1c2c70(0x2f5)](_0x2e36b7),_0x4ca1bb=_0x1d0199['get'](_0x26ba4d),_0x5d735b=_0x1d0199[_0x1c2c70(0x2f5)](_0x30fd72);return(_0x139fa0==null?void 0x0:_0x139fa0['value'])===_0x1c2c70(0x19e)?(_0x26c7c5[_0x1c2c70(0x19e)](yr),!0x0):(_0x26c7c5[_0x1c2c70(0x2e7)]({'id':yr,'header':{'title':_0x4ca1bb['t'](_0x1c2c70(0x2fd))},'children':{'label':yr},'onClose':()=>{const _0x4ae759=_0x1c2c70;_0x5d735b[_0x4ae759(0x30c)](null);},'width':0x168}),!0x0);}},q={'type':_0x1ef837[_0x16bf5e(0x166)],'id':_0x16bf5e(0x21e),'handler'(){return!0x0;}};function wr(_0x4d1287){const _0x45f54b=_0x16bf5e;let _0x15f4c3=_0x4d1287[_0x45f54b(0x2f5)](_0x30fd72)[_0x45f54b(0x2b1)](),_0x3f96d9=_0x15f4c3['length']===0x1?_0x15f4c3[0x0]:null;if(!_0x3f96d9||_0x3f96d9['drawingType']!==_0x21524c['DRAWING_SHAPE'])return null;let _0x4d3f83=_0x4d1287[_0x45f54b(0x2f5)](_0xda92b6),_0x55ab5c=_0x4d3f83[_0x45f54b(0x253)](_0x3f96d9[_0x45f54b(0x29e)],_0x3f96d9['subUnitId'],_0x3f96d9[_0x45f54b(0x344)]),_0x45cafa=_0x4d3f83['getShapeDataById'](_0x3f96d9[_0x45f54b(0x29e)],_0x3f96d9[_0x45f54b(0x23b)],_0x3f96d9[_0x45f54b(0x344)]);return _0x55ab5c===void 0x0||!_0x45cafa?null:{'drawing':_0x3f96d9,'shapeData':_0x45cafa,'shapeType':_0x55ab5c};}const Tr={'id':'doc.operation.apply-shape-quick-style','type':_0x1ef837[_0x16bf5e(0x166)],'handler':(_0x239c34,_0x2bbc12)=>{const _0x1b3132=_0x16bf5e;let _0x1f7f2d=wr(_0x239c34),_0x342298=_0x47b09e((_0x2bbc12==null?void 0x0:_0x2bbc12[_0x1b3132(0x28e)])??(_0x2bbc12==null?void 0x0:_0x2bbc12[_0x1b3132(0x171)])??'');if(!_0x1f7f2d||!_0x342298||_0x342298['type']!==_0x296933(_0x1f7f2d[_0x1b3132(0x2f2)]))return!0x1;let _0x21f46f=_0x2db3e5(_0x1f7f2d['shapeData'],_0x342298);if(!_0x21f46f)return!0x1;let {drawing:_0x51efb8}=_0x1f7f2d;return _0x239c34['get'](_0x38aa04)[_0x1b3132(0x232)](_0x9d3fcb['id'],{'unitId':_0x51efb8[_0x1b3132(0x29e)],'shapeId':_0x51efb8[_0x1b3132(0x344)],'shapeData':_0x21f46f,'oldShapeJSON':{'oldShapeData':_0x1f7f2d[_0x1b3132(0x2f2)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x1ef837[_0x16bf5e(0x166)],'handler':(_0x1f52be,_0x3dc8dc)=>{const _0x3915d5=_0x16bf5e;let _0x5479fe=wr(_0x1f52be),_0x3ecb86=(_0x3dc8dc==null?void 0x0:_0x3dc8dc[_0x3915d5(0x324)])??(_0x3dc8dc==null?void 0x0:_0x3dc8dc['value']);if(!_0x5479fe||!_0x3ecb86||_0x15125c(_0x5479fe[_0x3915d5(0x324)])||_0x15125c(_0x3ecb86))return!0x1;let _0x3ed6b0=_0x1e1154(_0x5479fe[_0x3915d5(0x2f2)],_0x3ecb86);if(!_0x3ed6b0)return!0x1;let {drawing:_0x3de696}=_0x5479fe;return _0x1f52be[_0x3915d5(0x2f5)](_0x38aa04)[_0x3915d5(0x232)](_0x9d3fcb['id'],{'unitId':_0x3de696[_0x3915d5(0x29e)],'shapeId':_0x3de696[_0x3915d5(0x344)],'shapeType':_0x3ecb86,'shapeData':_0x3ed6b0,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x5479fe['shapeType'],'oldShapeData':_0x5479fe['shapeData']}});}};function J(_0x1f0e80,_0x52f8df){return function(_0x4b608c,_0x56608d){_0x52f8df(_0x4b608c,_0x56608d,_0x1f0e80);};}function Y(_0x5a0c26,_0x2955e7,_0x350624,_0x409d52){const _0xa89e90=_0x16bf5e;var _0x41fca9=arguments[_0xa89e90(0x116)],_0x112918=_0x41fca9<0x3?_0x2955e7:_0x409d52===null?_0x409d52=Object[_0xa89e90(0x25e)](_0x2955e7,_0x350624):_0x409d52,_0xf6a95e;if(typeof Reflect==_0xa89e90(0x25d)&&typeof Reflect[_0xa89e90(0x26e)]==_0xa89e90(0x26a))_0x112918=Reflect[_0xa89e90(0x26e)](_0x5a0c26,_0x2955e7,_0x350624,_0x409d52);else{for(var _0x34a839=_0x5a0c26[_0xa89e90(0x116)]-0x1;_0x34a839>=0x0;_0x34a839--)(_0xf6a95e=_0x5a0c26[_0x34a839])&&(_0x112918=(_0x41fca9<0x3?_0xf6a95e(_0x112918):_0x41fca9>0x3?_0xf6a95e(_0x2955e7,_0x350624,_0x112918):_0xf6a95e(_0x2955e7,_0x350624))||_0x112918);}return _0x41fca9>0x3&&_0x112918&&Object[_0xa89e90(0x19f)](_0x2955e7,_0x350624,_0x112918),_0x112918;}let X=class extends _0x3db69a{constructor(_0x4d5c7f,_0x4079c3){const _0x52f87c=_0x16bf5e;super(),this['_clipService']=_0x4d5c7f,this[_0x52f87c(0x154)]=_0x4079c3,this[_0x52f87c(0x178)](),this[_0x52f87c(0x198)][_0x52f87c(0x140)](!0x0),this[_0x52f87c(0x371)]({'dispose':()=>this[_0x52f87c(0x198)]['setCanUseShapeClip'](!0x1)});}[_0x16bf5e(0x178)](){const _0xa637a1=_0x16bf5e;let _0x2c47a4=new Map(),_0x45f049=this[_0xa637a1(0x198)][_0xa637a1(0x110)]((_0x515ceb,_0x36276d,_0x374225,_0x1a3491,_0x39a195)=>{const _0x159d37=_0xa637a1;let _0x24b161=_0x36276d;if(_0x24b161===_0x25ce09[_0x159d37(0x203)]||_0x36276d===_0x159d37(0x2b8))return!0x1;try{let _0x3536ea=_0x2c47a4['get'](_0x36276d);return _0x3536ea||(_0x3536ea=new _0x2dd6ac(_0x24b161,_0x159d37(0x314)+_0x36276d),_0x2c47a4[_0x159d37(0x342)](_0x36276d,_0x3536ea)),_0x3536ea[_0x159d37(0x1dc)](),_0x39a195&&Object[_0x159d37(0x130)](_0x39a195)['length']>0x0&&_0x3536ea[_0x159d37(0x1d7)]({'adjustValues':_0x39a195},!0x0),_0x3536ea[_0x159d37(0x300)]({'width':_0x374225,'height':_0x1a3491}),_0x3536ea[_0x159d37(0x328)](_0x515ceb,{'left':0x0,'top':0x0,'width':_0x374225,'height':_0x1a3491});}catch{return!0x1;}});this[_0xa637a1(0x371)](_0x45f049),this[_0xa637a1(0x371)]({'dispose':()=>_0x2c47a4['clear']()});}[_0x16bf5e(0x32e)](_0x4436de,_0x56c47e,_0x183e09,_0x182dfd,_0x4704bf){const _0x14a6a4=_0x16bf5e;let _0x3afc3a=this[_0x14a6a4(0x154)][_0x14a6a4(0x170)](_0x4436de,_0x56c47e)[_0x183e09];_0x3afc3a&&_0x3afc3a[_0x14a6a4(0x2a4)]===_0x21524c[_0x14a6a4(0x1cf)]&&this[_0x14a6a4(0x154)][_0x14a6a4(0x370)]([{..._0x3afc3a,'prstGeom':_0x182dfd,'adjustValues':_0x4704bf}]);}};X=Y([J(0x0,_0x1f7d38(_0x51f4be)),J(0x1,_0x1f7d38(_0x30fd72))],X);const Dr=_0x16bf5e(0x15b),Or=_0x16bf5e(0x16d);function kr({onShapeClick:_0x4b62af,excludeGroups:_0x443c70}){const _0xe78e8d=_0x16bf5e;return _0xaa621a(_0x526005,{'excludeGroups':_0x443c70,'onShapeClick':_0x4b62af,'scrollContainer':_0xe78e8d(0x2c5)});}function Ar(){let _0x3ed3eb=_0x10e4db(_0x30fd72),_0x7a3f9c=_0x10e4db(X);return _0x5ac0af=>{const _0x1d2e70=_0x5363;let _0x5b3750=_0x3ed3eb[_0x1d2e70(0x2b1)]()[_0x1d2e70(0x2de)](_0x3a4a62=>_0x3a4a62['drawingType']===_0x21524c[_0x1d2e70(0x1cf)]);_0x5b3750&&_0x7a3f9c[_0x1d2e70(0x32e)](_0x5b3750['unitId'],_0x5b3750[_0x1d2e70(0x23b)],_0x5b3750[_0x1d2e70(0x344)],_0x5ac0af['type']);};}function jr(){const _0xe8821a=_0x16bf5e;let _0x8c107f=Ar();return _0xaa621a(_0x1d2956,{'buttonLabel':_0xe8821a(0x319),'excludeGroups':[_0x2e5f24[_0xe8821a(0x29b)]],'onShapeClick':_0x8c107f});}function Mr(){const _0x5135a6=_0x16bf5e;let _0x5e039c=_0x10e4db(_0x6a795a),_0x2a402d=_0x10e4db(_0x30fd72),_0x2d492c=_0x10e4db(_0x3fa0e3),_0x50cf9c=_0x2a402d[_0x5135a6(0x2b1)]()[0x0],_0x40e1d1=_0x50cf9c?_0x2d492c[_0x5135a6(0x2b6)](_0x50cf9c[_0x5135a6(0x29e)]):void 0x0,_0x3199cd=_0x40e1d1===_0x5a336e[_0x5135a6(0x1e2)]?Or:_0x40e1d1===_0x5a336e[_0x5135a6(0x290)]?_0x5135a6(0x281):void 0x0,_0x1a7895=_0x3199cd?_0x5e039c[_0x5135a6(0x2f5)](_0x3199cd):void 0x0;return _0x1a7895?_0xaa621a(_0x1a7895,{}):null;}function Nr({paragraphMenuPlacement:_0x2c7a31,PickerComponent:_0x1aa02e=kr}){let _0x1ad3d7=_0x10e4db(_0x38aa04);return _0xaa621a(_0x1aa02e,{'onShapeClick':_0x29ef5d=>{const _0x54c7ba=_0x5363;_0x1ad3d7[_0x54c7ba(0x232)](G['id'],{'paragraphMenuPlacement':_0x2c7a31,'value':_0x29ef5d[_0x54c7ba(0x35e)],'enhanceParams':{'endArrow':_0x29ef5d[_0x54c7ba(0x239)],'startArrow':_0x29ef5d['startArrow'],'horizontal':_0x29ef5d['horizontal'],'vertical':_0x29ef5d['vertical']}});}});}function Pr(_0x5d48d9){const _0x51212e=_0x16bf5e;return _0x2fcbc6=>({'id':G['id'],'type':_0x124b8a[_0x51212e(0x284)],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x5d48d9?{'id':G['id'],'paragraphMenuPlacement':_0x5d48d9}:{'id':G['id']}}}],'icon':_0x51212e(0x135),'title':_0x51212e(0x345),'tooltip':_0x51212e(0x345),'hidden$':_0x1bbe01(_0x2fcbc6,_0x5a336e[_0x51212e(0x1e2)])});}const Fr=Pr(),Ir=Pr(_0x16bf5e(0x270)),Lr=Pr('target');function Rr(_0x2e0364){const _0x167583=_0x16bf5e;return{'id':Cr['id'],'type':_0x124b8a['BUTTON'],'icon':'ObjectLayersIcon','title':'docs-shape-ui.objectListPanel.open','tooltip':_0x167583(0x325),'hidden$':_0x1bbe01(_0x2e0364,_0x5a336e[_0x167583(0x1e2)])};}function zr(_0xf584e2,_0xa2ca2e,_0x415bf4,_0x166b7e,_0x59555e,_0x5baf7a){const _0x4eca12=_0x16bf5e;let _0x1e1153={'unitId':_0xa2ca2e,'shapeId':_0x166b7e,'shapeData':_0x5baf7a,'oldShapeJSON':_0x59555e};return _0xf584e2[_0x4eca12(0x232)](_0x9d3fcb['id'],_0x1e1153);}function Br(_0x1e44fe,_0x2b06a7,_0x223107,_0x351cfc,_0x507b98,_0x5c68bf){const _0xd48491=_0x16bf5e;let _0x382b91={'unitId':_0x2b06a7,'shapeId':_0x351cfc,'shapeData':_0x5c68bf,'oldShapeJSON':_0x507b98};return _0x1e44fe[_0xd48491(0x232)](_0x9d3fcb['id'],_0x382b91);}const Vr=_0x16bf5e(0x340),Hr=_0x16bf5e(0x1af),Ur='docs-shape-ui.shape-format.text-ribbon-control',Wr='docs-shape-ui.shape-format.formula-ribbon-control',Gr='docs-shape-ui.shape-format.wrapping-style-label',Kr=[{'value':_0x4965c4[_0x16bf5e(0x307)],'label':_0x16bf5e(0x16c),'icon':_0x16bf5e(0x181)},{'value':_0x4965c4[_0x16bf5e(0x2b5)],'label':_0x16bf5e(0x338),'icon':_0x16bf5e(0x266)},{'value':_0x4965c4['WRAP_TOP_AND_BOTTOM'],'label':_0x16bf5e(0x1d9),'icon':_0x16bf5e(0x1f0)},{'value':_0x4965c4[_0x16bf5e(0x176)],'label':_0x16bf5e(0x32f),'icon':_0x16bf5e(0x1a3)},{'value':_0x4965c4['IN_FRONT_OF_TEXT'],'label':_0x16bf5e(0x20a),'icon':_0x16bf5e(0x34f)}];function qr(){let _0x5bee87=_0x10e4db(_0x38aa04),_0x2b5dd0=_0x10e4db(_0x30fd72),_0x4163d1=_0x10e4db(_0xda92b6),_0x276efd=()=>{const _0x477554=_0x5363;var _0x1a1ebf;let _0x3d884d=_0x2b5dd0['getFocusDrawings']();if(_0x3d884d[_0x477554(0x116)]!==0x1||((_0x1a1ebf=_0x3d884d[0x0])==null?void 0x0:_0x1a1ebf['drawingType'])!==_0x21524c[_0x477554(0x247)])return null;let {unitId:_0x31a76f,subUnitId:_0x132230,drawingId:_0x4497f6}=_0x3d884d[0x0],_0x100521=_0x4163d1['getShapeTypeById'](_0x31a76f,_0x132230,_0x4497f6),_0x2a707d=_0x4163d1['getShapeDataById'](_0x31a76f,_0x132230,_0x4497f6);return _0x100521===void 0x0||!_0x2a707d?null:{'unitId':_0x31a76f,'subUnitId':_0x132230,'drawingId':_0x4497f6,'shapeType':_0x100521,'shapeData':_0x2a707d};},_0x54acfa=_0x39adc0(()=>new _0x4ff9ba(_0xf9fe89=>{const _0x31a5fa=_0x5363;let _0x54be65=()=>_0xf9fe89['next'](_0x276efd()),_0x4bc97f=_0x2b5dd0[_0x31a5fa(0x149)][_0x31a5fa(0x1e1)](_0x54be65),_0x2f1f81=_0x5bee87[_0x31a5fa(0x188)](_0x162898=>{_0x162898['id']===_0x135998['id']&&_0x54be65();});return _0x54be65(),()=>{const _0x40a8fe=_0x31a5fa;_0x4bc97f[_0x40a8fe(0x1ae)](),_0x2f1f81[_0x40a8fe(0x1ca)]();};}),_0x276efd(),!0x1,[_0x5bee87,_0x4163d1,_0x2b5dd0]);return{'selection':_0x54acfa,'updateShapeData':_0x33a540=>{const _0x493342=_0x5363;_0x54acfa&&zr(_0x5bee87,_0x54acfa[_0x493342(0x29e)],_0x54acfa['subUnitId'],_0x54acfa[_0x493342(0x344)],{'oldShapeData':_0x54acfa[_0x493342(0x2f2)]},_0x33a540);}};}function Jr(){const _0x46b1eb=_0x16bf5e;let {selection:_0x3e1d47,updateShapeData:_0xd25fcf}=qr();return _0x3e1d47?_0xaa621a(_0x6341fb,{'shapeData':_0x3e1d47[_0x46b1eb(0x2f2)],'shapeType':_0x3e1d47[_0x46b1eb(0x324)],'onUpdateShapeData':_0xd25fcf}):null;}function Yr(){const _0x5c1774=_0x16bf5e;let _0x5ed60b=_0x10e4db(_0x38aa04),_0x39a265=_0x10e4db(_0x26ba4d),{selection:_0x46b6af}=qr();return _0x46b6af?_0xaa621a(_0x1927de,{'type':_0x296933(_0x46b6af[_0x5c1774(0x2f2)]),'ariaLabel':_0x39a265['t'](_0x5c1774(0x1a5)),'activePresetId':_0x293a67(_0x46b6af[_0x5c1774(0x2f2)]),'onSelect':_0x4d9972=>_0x5ed60b['executeCommand'](Tr['id'],{'presetId':_0x4d9972})}):null;}function Xr(){const _0x12f73a=_0x16bf5e;let {selection:_0x5f0043,updateShapeData:_0x1a8f51}=qr();return _0x5f0043?_0xaa621a(_0x8a4229,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x5f0043[_0x12f73a(0x2f2)],'onUpdateShapeData':_0x1a8f51}):null;}function Zr(){const _0x21f185=_0x16bf5e;var _0x1af358;let {selection:_0x4e3f58,updateShapeData:_0x4c500b}=qr(),_0x2ff9b6=_0xfc437f({'hostType':_0x5a336e[_0x21f185(0x1e2)],'unitId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x29e)])??'','subUnitId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x23b)])??'','shapeId':(_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x344)])??'','shapeData':_0x4e3f58==null?void 0x0:_0x4e3f58[_0x21f185(0x2f2)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x1e3a5b=>_0x4c500b({'formulaBinding':_0x1e3a5b})}),_0x508c70=((_0x1af358=_0x2ff9b6['extensionGroups'])==null?void 0x0:_0x1af358['flatMap'](_0x36cd37=>_0x36cd37[_0x21f185(0x194)])['filter'](_0x4b42a3=>_0x4b42a3[_0x21f185(0x142)]!==!0x1))??[];return _0x4e3f58!=null&&_0x4e3f58[_0x21f185(0x2f2)][_0x21f185(0x164)]?_0xaa621a(_0x3d3054,{'actions':_0x508c70,'panel':_0x2ff9b6['panel']}):null;}function Qr({value:_0x283a50}){const _0x438baf=_0x16bf5e;let _0x100500=_0x10e4db(_0x26ba4d),_0x1d205a=Kr[_0x438baf(0x2de)](_0x58f029=>_0x58f029[_0x438baf(0x171)]===_0x283a50)??Kr[0x0];return _0x1d205a?_0xaa621a(_0x438baf(0x22e),{'children':_0x100500['t'](_0x1d205a['label'])}):null;}const $r=_0x16bf5e(0x1b7),ei='docs-shape-ui.ribbon.shape-format.text-control',ti=_0x16bf5e(0x1eb),ni=_0x16bf5e(0x2d6),ri='docs-shape-ui.ribbon.shape-format.arrange-backward',ii=_0x16bf5e(0x11b),ai=_0x16bf5e(0x2db),oi=_0x16bf5e(0x1d3);function si(_0x1ea28c){const _0x17be62=_0x16bf5e;let _0xf48248=_0x1ea28c[_0x17be62(0x2f5)](_0x38aa04),_0x34d0c5=_0x1ea28c[_0x17be62(0x2f5)](_0x30fd72),_0x55a5b6=_0x1ea28c['get'](_0xda92b6);return new _0x4ff9ba(_0x35b2d3=>{const _0x453690=_0x17be62;let _0x3c0915=()=>{const _0x4be553=_0x5363;let _0x360ae1=ci(_0x1ea28c),_0x4370a6=_0x360ae1?_0x55a5b6['getShapeDataById'](_0x360ae1[_0x4be553(0x29e)],_0x360ae1[_0x4be553(0x23b)],_0x360ae1[_0x4be553(0x344)]):null;_0x35b2d3[_0x4be553(0x2c7)](_0x4370a6?_0x293a67(_0x4370a6)??'':'');},_0x2bd76d=_0x34d0c5[_0x453690(0x149)]['subscribe'](_0x3c0915),_0x283d83=_0xf48248[_0x453690(0x188)](_0x402137=>{_0x402137['id']===_0x135998['id']&&_0x3c0915();});return _0x3c0915(),()=>{const _0x36a7b8=_0x453690;_0x2bd76d['unsubscribe'](),_0x283d83[_0x36a7b8(0x1ca)]();};});}function ci(_0x3a9535){const _0x1eb971=_0x16bf5e;var _0x34e021;let _0xa25de0=_0x3a9535[_0x1eb971(0x2f5)](_0x30fd72)[_0x1eb971(0x2b1)]();return _0xa25de0['length']===0x1&&((_0x34e021=_0xa25de0[0x0])==null?void 0x0:_0x34e021[_0x1eb971(0x2a4)])===_0x21524c[_0x1eb971(0x247)]?_0xa25de0[0x0]:null;}function li(_0x30a4af){const _0xf9f5e0=_0x16bf5e;return(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x126)]?_0x30a4af[_0xf9f5e0(0x137)]===_0x2fa3f8[_0xf9f5e0(0x2f6)]?_0x4965c4[_0xf9f5e0(0x176)]:_0x4965c4[_0xf9f5e0(0x272)]:(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x2b5)]?_0x4965c4['WRAP_SQUARE']:(_0x30a4af==null?void 0x0:_0x30a4af[_0xf9f5e0(0x304)])===_0x2cf572[_0xf9f5e0(0x28c)]?_0x4965c4[_0xf9f5e0(0x28c)]:_0x4965c4[_0xf9f5e0(0x307)];}function ui(_0x37cd19){const _0x7d65af=_0x16bf5e;let _0x4523b5=_0x37cd19[_0x7d65af(0x2f5)](_0x38aa04),_0x46c90a=_0x37cd19[_0x7d65af(0x2f5)](_0x30fd72),_0x23abe5=_0x37cd19[_0x7d65af(0x2f5)](_0x3fa0e3);return new _0x4ff9ba(_0x573a22=>{const _0x256367=_0x7d65af;let _0x3f9bb2=()=>{const _0x2fba77=_0x5363;var _0x39ba15;let _0x43c6d4=ci(_0x37cd19),_0x209911=_0x43c6d4?_0x23abe5[_0x2fba77(0x258)](_0x43c6d4['unitId'],_0x5a336e[_0x2fba77(0x1e2)]):void 0x0;_0x573a22[_0x2fba77(0x2c7)](li(_0x43c6d4?_0x209911==null||(_0x39ba15=_0x209911['getSnapshot']()[_0x2fba77(0x1dd)])==null?void 0x0:_0x39ba15[_0x43c6d4[_0x2fba77(0x344)]]:void 0x0));},_0x3ff53e=_0x46c90a['focus$'][_0x256367(0x1e1)](_0x3f9bb2),_0x2b3ec6=_0x4523b5[_0x256367(0x188)](_0x361c55=>{_0x361c55['id']===_0x59724c['id']&&_0x3f9bb2();});return _0x3f9bb2(),()=>{const _0x8e1852=_0x256367;_0x3ff53e['unsubscribe'](),_0x2b3ec6[_0x8e1852(0x1ca)]();};})[_0x7d65af(0x218)](_0x417d82());}function di(_0x23bf33,_0x3d86f0=!0x1){const _0x3fe309=_0x16bf5e;let _0x1925fc=_0x23bf33[_0x3fe309(0x2f5)](_0x38aa04),_0x5c22c1=_0x23bf33[_0x3fe309(0x2f5)](_0x30fd72),_0x559ad4=_0x23bf33[_0x3fe309(0x2f5)](_0xda92b6);return new _0x4ff9ba(_0x2ffca0=>{const _0x2833ac=_0x3fe309;let _0x2336c8=()=>{const _0x1a9148=_0x5363;let _0x37a42f=ci(_0x23bf33);if(!_0x37a42f){_0x2ffca0[_0x1a9148(0x2c7)](!0x0);return;}let _0x2b6bd3=_0x559ad4[_0x1a9148(0x177)](_0x37a42f[_0x1a9148(0x29e)],_0x37a42f[_0x1a9148(0x23b)],_0x37a42f['drawingId']);_0x2ffca0[_0x1a9148(0x2c7)](!_0x2b6bd3||_0x3d86f0&&_0x2b6bd3[_0x1a9148(0x164)]==null);},_0x2dc551=_0x5c22c1[_0x2833ac(0x149)][_0x2833ac(0x1e1)](_0x2336c8),_0x1039c9=_0x1925fc[_0x2833ac(0x188)](_0x5cd94f=>{_0x5cd94f['id']===_0x135998['id']&&_0x2336c8();});return _0x2336c8(),()=>{const _0x458d6a=_0x2833ac;_0x2dc551[_0x458d6a(0x1ae)](),_0x1039c9[_0x458d6a(0x1ca)]();};});}function fi(_0x1f7688){const _0x486fc1=_0x16bf5e;let _0x37a046=_0x1f7688['get'](_0x30fd72),_0xdfca28=_0x1f7688[_0x486fc1(0x2f5)](_0xda92b6);return _0x37a046['focus$'][_0x486fc1(0x218)](_0x48e294(_0x37a046[_0x486fc1(0x2b1)]()),_0x5a04a3(()=>{const _0x349191=_0x486fc1;let _0x5ea21e=ci(_0x1f7688),_0x54a97f=_0x5ea21e?_0xdfca28[_0x349191(0x253)](_0x5ea21e['unitId'],_0x5ea21e[_0x349191(0x23b)],_0x5ea21e['drawingId']):void 0x0;return _0x54a97f===void 0x0||_0x15125c(_0x54a97f);}));}function pi(_0x75bf46){const _0x595cbb=_0x16bf5e;return{'id':Tr['id'],'type':_0x124b8a['SELECTOR'],'icon':'PaintIcon','title':'shape-editor-ui.toolbar.quickStyles','tooltip':_0x595cbb(0x1c1),'selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x75bf46),'hidden$':di(_0x75bf46)};}function mi(_0x365d7f){const _0x3a3b28=_0x16bf5e;return{'id':Er['id'],'type':_0x124b8a['SELECTOR'],'icon':_0x3a3b28(0x135),'title':_0x3a3b28(0x111),'tooltip':_0x3a3b28(0x111),'slot':!0x0,'selections':[{'label':{'name':_0x4afcd7,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0x365d7f)};}function hi(_0x5c4dd7,_0x372822,_0x537da2=!0x1){const _0xaa74b6=_0x16bf5e;return _0x3bbfff=>({'id':_0x5c4dd7,'type':_0x124b8a[_0xaa74b6(0x11d)],'label':{'name':_0x372822,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x3bbfff,_0x537da2)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x44c7cd){const _0x486e3a=_0x16bf5e;return{'id':oi,'type':_0x124b8a['SELECTOR'],'icon':Kr[0x0][_0x486e3a(0x1cb)],'label':Gr,'selectionsCommandId':_0x4b8558['id'],'selections':Kr['map'](({icon:_0x1ed727,label:_0x21fde2,value:_0x47cc76})=>({'value':_0x47cc76,'label':_0x21fde2,'icon':_0x1ed727,'params':()=>{const _0x2617b6=_0x486e3a;let _0x4d7bd6=ci(_0x44c7cd);return _0x4d7bd6?{'unitId':_0x4d7bd6[_0x2617b6(0x29e)],'subUnitId':_0x4d7bd6['subUnitId'],'drawings':[{'unitId':_0x4d7bd6[_0x2617b6(0x29e)],'subUnitId':_0x4d7bd6[_0x2617b6(0x23b)],'drawingId':_0x4d7bd6[_0x2617b6(0x344)]}],'wrappingStyle':_0x47cc76}:void 0x0;}})),'value$':ui(_0x44c7cd),'hidden$':di(_0x44c7cd)};}function bi(_0x268520,_0x3061ad,_0x2f78fc,_0x318ca6){const _0x4ade28=_0x16bf5e;return _0x5b06ed=>({'id':_0x268520,'commandId':_0x41b423['id'],'type':_0x124b8a[_0x4ade28(0x11d)],'icon':_0x2f78fc,'title':_0x318ca6,'tooltip':_0x318ca6,'hidden$':di(_0x5b06ed),'params':()=>{const _0xe16cc2=_0x4ade28;let _0x335850=ci(_0x5b06ed);return _0x335850?{'unitId':_0x335850[_0xe16cc2(0x29e)],'subUnitId':_0x335850[_0xe16cc2(0x23b)],'drawingIds':[_0x335850[_0xe16cc2(0x344)]],'arrangeType':_0x3061ad}:void 0x0;}});}const xi=bi(ni,_0x10c839[_0x16bf5e(0x1f2)],_0x16bf5e(0x217),'shape-editor-ui.arrange.forward'),Si=bi(ri,_0x10c839[_0x16bf5e(0x2bb)],'MoveDownIcon',_0x16bf5e(0x19c)),Ci=bi(ii,_0x10c839['front'],_0x16bf5e(0x306),'shape-editor-ui.arrange.front'),wi=bi(ai,_0x10c839[_0x16bf5e(0x15a)],_0x16bf5e(0x123),_0x16bf5e(0x2f3));function Ti(_0x4a9b28){const _0x3d1ba7=_0x16bf5e;return{'id':q['id'],'type':_0x124b8a[_0x3d1ba7(0x11d)],'icon':_0x3d1ba7(0x31f),'title':'docs-shape-ui.formatShape','tooltip':_0x3d1ba7(0x365),'hidden$':di(_0x4a9b28),'params':()=>{const _0x339f1e=_0x3d1ba7;let _0x32e9cb=ci(_0x4a9b28);return _0x32e9cb?{'unitId':_0x32e9cb['unitId'],'subUnitId':_0x32e9cb[_0x339f1e(0x23b)],'drawingId':_0x32e9cb[_0x339f1e(0x344)]}:void 0x0;}};}const Ei={[_0x32bcc5['RIBBON']]:{[vr]:{'order':0x64,'title':_0x16bf5e(0x365),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[Er['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':mi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':gi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_i}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':yi},[ni]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':xi},[ri]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Si},[ii]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ci},[ai]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ti]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':vi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[q['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti},[_0x36c9d6['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x558a4c}}}}},Di={[_0x4b0cb4[_0x16bf5e(0x204)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x5d9877=>({...Fr(_0x5d9877),'title':void 0x0})}},[_0x4b0cb4[_0x16bf5e(0x112)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0xf321b5[_0x16bf5e(0x122)]]:{[_0x36c690['LAYOUT']]:{[_0x22e8c4]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x73acf7]:{[_0x36c690['LAYOUT']]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x26aab8]:{[_0x36c690[_0x16bf5e(0x363)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x3f2bb5]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x4261b3]:{'insert':{[G['id']+_0x16bf5e(0x33d)]:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};function _0x5363(_0x30381d,_0x1ffc9b){_0x30381d=_0x30381d-0x110;const _0x261b9e=_0x261b();let _0x536378=_0x261b9e[_0x30381d];return _0x536378;}var Oi=_0x16bf5e(0x29c),ki=_0x16bf5e(0x20b);const Ai={'type':_0x1ef837[_0x16bf5e(0x166)],'id':_0x16bf5e(0x1ba),'handler'(){return!0x0;}},ji=_0x16bf5e(0x271),Mi={};function Ni(_0x56fb23){'@babel/helpers - typeof';const _0x472d03=_0x16bf5e;return Ni=typeof Symbol==_0x472d03(0x26a)&&typeof Symbol[_0x472d03(0x14d)]==_0x472d03(0x2d3)?function(_0x40bd2e){return typeof _0x40bd2e;}:function(_0x44c124){const _0x4a57e9=_0x472d03;return _0x44c124&&typeof Symbol=='function'&&_0x44c124[_0x4a57e9(0x2f9)]===Symbol&&_0x44c124!==Symbol[_0x4a57e9(0x2b3)]?'symbol':typeof _0x44c124;},Ni(_0x56fb23);}function Pi(_0x2b0ebb,_0xaa8847){const _0x1cecba=_0x16bf5e;if(Ni(_0x2b0ebb)!=_0x1cecba(0x25d)||!_0x2b0ebb)return _0x2b0ebb;var _0x1b0d12=_0x2b0ebb[Symbol[_0x1cecba(0x1fb)]];if(_0x1b0d12!==void 0x0){var _0x4b3d4a=_0x1b0d12['call'](_0x2b0ebb,_0xaa8847||_0x1cecba(0x11e));if(Ni(_0x4b3d4a)!=_0x1cecba(0x25d))return _0x4b3d4a;throw TypeError(_0x1cecba(0x172));}return(_0xaa8847==='string'?String:Number)(_0x2b0ebb);}function Fi(_0x41c687){const _0x1fee48=_0x16bf5e;var _0x6c7b21=Pi(_0x41c687,'string');return Ni(_0x6c7b21)==_0x1fee48(0x2d3)?_0x6c7b21:_0x6c7b21+'';}function Z(_0x408010,_0x5151b3,_0x12fa89){const _0x4c5208=_0x16bf5e;return(_0x5151b3=Fi(_0x5151b3))in _0x408010?Object[_0x4c5208(0x19f)](_0x408010,_0x5151b3,{'value':_0x12fa89,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x408010[_0x5151b3]=_0x12fa89,_0x408010;}var Ii=class extends _0x35795a{constructor(_0x21e1e1,_0x1ecea1){const _0x40a78a=_0x16bf5e;super(_0x21e1e1,_0x1ecea1),Z(this,_0x40a78a(0x32d),null),Z(this,_0x40a78a(0x349),null),Z(this,_0x40a78a(0x2a6),null),Z(this,_0x40a78a(0x17d),null),_0x1ecea1&&this[_0x40a78a(0x30a)](_0x1ecea1);}['getDrawingSearch'](){const _0x286c50=_0x16bf5e;return{'unitId':this[_0x286c50(0x2a6)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x286c50(0x32d)]};}[_0x16bf5e(0x30a)](_0x4800a4){const _0x55eb4c=_0x16bf5e;_0x4800a4['shapeId']!==void 0x0&&(this['_shapeId']=_0x4800a4['shapeId']),_0x4800a4[_0x55eb4c(0x332)]!==void 0x0&&(this[_0x55eb4c(0x349)]=_0x4800a4[_0x55eb4c(0x332)]),_0x4800a4[_0x55eb4c(0x29e)]!==void 0x0&&(this[_0x55eb4c(0x2a6)]=_0x4800a4[_0x55eb4c(0x29e)]),_0x4800a4[_0x55eb4c(0x23b)]!==void 0x0&&(this[_0x55eb4c(0x17d)]=_0x4800a4[_0x55eb4c(0x23b)]),this[_0x55eb4c(0x1b1)]({'width':_0x4800a4[_0x55eb4c(0x18c)],'height':_0x4800a4['height']});}['_draw'](_0x17be61){const _0x188b80=_0x16bf5e;_0x3166ca[_0x188b80(0x168)](_0x17be61,{'radius':_0x4c92e4[_0x188b80(0x299)],'fill':_0x4c92e4[_0x188b80(0x209)],'stroke':_0x4c92e4['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0xc57ed0,_0x219412,_0x33c778){const _0x495818=_0x16bf5e;let _0x5cc608={..._0x219412,'dataModel':{..._0x219412[_0x495818(0x1ef)]??{},..._0x33c778?{'doc':_0x33c778}:null}},_0x37e18a=_0x4a5314(_0xc57ed0,_0x5cc608),_0x96510c=_0x103b43(_0x37e18a);return{'clip':_0x560777(_0x37e18a,_0x96510c),'wrapStrategy':_0x96510c};}var Ri=class extends _0x35795a{constructor(_0x1144ec,_0x2d5686){const _0x1df6f2=_0x16bf5e;super(_0x1144ec,_0x2d5686),Z(this,_0x1df6f2(0x152),void 0x0),Z(this,'_formulaAnimation',new _0x3a602c(()=>this[_0x1df6f2(0x250)](!0x0),()=>this['_applyFormulaAutoFitSize']())),Z(this,_0x1df6f2(0x227),!0x0),Z(this,_0x1df6f2(0x251),_0x21524c[_0x1df6f2(0x247)]),Z(this,_0x1df6f2(0x139),!0x0),this['_props']={..._0x2d5686},this[_0x1df6f2(0x2bc)][_0x1df6f2(0x1de)](_0x2d5686[_0x1df6f2(0x2ff)],_0x2d5686[_0x1df6f2(0x1e6)]!==!0x1),this[_0x1df6f2(0x2c3)](),this[_0x1df6f2(0x197)]();}[_0x16bf5e(0x2c3)](){const _0x5e641b=_0x16bf5e;this[_0x5e641b(0x23c)][_0x5e641b(0x1b2)](_0x43b842=>{const _0x37dee9=_0x5e641b;this[_0x37dee9(0x2f7)](_0x43b842);});}[_0x16bf5e(0x207)](_0x15fe30){const _0x8e8561=_0x16bf5e;this['_props'][_0x8e8561(0x1b9)]=_0x15fe30;}['setEditing'](_0x5848cd){const _0x4ba73c=_0x16bf5e;this[_0x4ba73c(0x152)]['isEditing']=_0x5848cd,this[_0x4ba73c(0x250)](!0x0);}[_0x16bf5e(0x167)](_0x3ca162,_0x2a1542=!0x0){const _0x321af3=_0x16bf5e;this['_formulaAnimation']['setPresentation'](_0x3ca162,_0x2a1542),this[_0x321af3(0x152)][_0x321af3(0x2ff)]=_0x3ca162,this[_0x321af3(0x197)](),this[_0x321af3(0x250)](!0x0);}[_0x16bf5e(0x197)](){const _0xadc5dc=_0x16bf5e;let _0x20a88c=this[_0xadc5dc(0x152)]['shapeModel'],_0x28f859=_0x20a88c[_0xadc5dc(0x1aa)](),_0x3e2d91=_0x4a9cfc(_0x28f859==null?void 0x0:_0x28f859[_0xadc5dc(0x1ef)]),_0x5b4cdc=_0x3e2d91==null?void 0x0:_0x3e2d91[_0xadc5dc(0x238)],_0x1959ee=this[_0xadc5dc(0x2bc)][_0xadc5dc(0x25f)]();if(!_0x5b4cdc||_0x1959ee[_0xadc5dc(0x116)]===0x0)return;_0x20a88c['updateContext']({'width':this[_0xadc5dc(0x18c)],'height':this[_0xadc5dc(0x322)]});let _0x38c37c=_0x203556({'documentData':_0x1959ee[_0xadc5dc(0x210)](_0x32f322=>_0x1eb974(_0x5b4cdc,_0x32f322)),'height':this[_0xadc5dc(0x322)],'shapeData':_0x20a88c[_0xadc5dc(0x18e)](),'textRect':_0x20a88c[_0xadc5dc(0x236)]({'left':0x0,'top':0x0,'width':this[_0xadc5dc(0x18c)],'height':this[_0xadc5dc(0x322)]}),'width':this[_0xadc5dc(0x18c)]});if(_0x38c37c){var _0x2de126;this[_0xadc5dc(0x35c)](_0x38c37c[_0xadc5dc(0x18c)],_0x38c37c[_0xadc5dc(0x322)]),(_0x2de126=this[_0xadc5dc(0x1ff)]())==null||(_0x2de126=_0x2de126['getTransformer']())==null||_0x2de126[_0xadc5dc(0x33e)]();}}get['unitId'](){const _0x25b8fb=_0x16bf5e;return this['_props'][_0x25b8fb(0x29e)];}get['subUnitId'](){const _0x54378e=_0x16bf5e;return this[_0x54378e(0x152)][_0x54378e(0x23b)];}[_0x16bf5e(0x2f7)](_0xa4b6ad){const _0x251bbb=_0x16bf5e;if(this['_props']['srcRect']==null||!this[_0x251bbb(0x227)])return;let {width:_0x18573b,height:_0xabc08f}=this,{width:_0x5b1400=0x0,height:_0x2bd7e1=0x0}=_0xa4b6ad[_0x251bbb(0x235)],{left:_0x3b084d=0x0,top:_0x2cbf32=0x0,right:_0x4e3d48=0x0,bottom:_0x34b123=0x0}=this[_0x251bbb(0x152)]['srcRect'],_0x3f6bdf=_0x3b084d,_0x1abdce=_0x2cbf32,_0x410ba4=_0x4e3d48,_0x2bd75f=_0x34b123,_0x585809=!0x1;if(_0x5b1400!==0x0&&_0x5b1400!==_0x18573b){let _0x2367e1=_0x3b084d/_0x5b1400,_0x201459=_0x4e3d48/_0x5b1400;_0x3f6bdf=_0x18573b*_0x2367e1,_0x410ba4=_0x18573b*_0x201459,_0x585809=!0x0;}if(_0x2bd7e1!==0x0&&_0x2bd7e1!==_0xabc08f){let _0x319b44=_0x2cbf32/_0x2bd7e1,_0x4b9d24=_0x34b123/_0x2bd7e1;_0x1abdce=_0xabc08f*_0x319b44,_0x2bd75f=_0xabc08f*_0x4b9d24,_0x585809=!0x0;}_0x585809&&this[_0x251bbb(0x34e)]({'left':_0x3f6bdf,'top':_0x1abdce,'right':_0x410ba4,'bottom':_0x2bd75f});}[_0x16bf5e(0x34e)](_0x199f29){const _0x4e369f=_0x16bf5e;this[_0x4e369f(0x152)][_0x4e369f(0x11a)]=_0x199f29,this[_0x4e369f(0x250)](!0x0);}[_0x16bf5e(0x34a)](_0x30cec9){const _0x355095=_0x16bf5e;this['_props'][_0x355095(0x29f)]=_0x30cec9,this['makeDirty'](!0x0);}set['transform'](_0x2f0020){this['_transform']=_0x2f0020;}get[_0x16bf5e(0x1e9)](){const _0x146db3=_0x16bf5e;this[_0x146db3(0x121)]||this[_0x146db3(0x296)]();let _0x45002e=this[_0x146db3(0x121)]['clone']();return this['transformForAngle'](_0x45002e);}get[_0x16bf5e(0x1c7)](){const _0x16af86=_0x16bf5e;return this[_0x16af86(0x152)][_0x16af86(0x1c7)];}get['shapeId'](){const _0x56398e=_0x16bf5e;return this['_props'][_0x56398e(0x226)];}get[_0x16bf5e(0x2cd)](){const _0x399113=_0x16bf5e;return _0x80275a[_0x399113(0x1be)];}[_0x16bf5e(0x14e)](_0x52a2b5,_0xad4c79,_0x4edf3f,_0x49ed32){const _0x3dadbc=_0x16bf5e;let _0x53a7eb=this[_0x3dadbc(0x152)][_0x3dadbc(0x1c7)];if(!_0x53a7eb||!_0xad4c79)return;let _0x194314=_0x4edf3f??this['width'],_0x49ed19=_0x49ed32??this[_0x3dadbc(0x322)],_0x1bfc82={'shapeType':_0x53a7eb[_0x3dadbc(0x12d)](),'width':_0x194314,'height':_0x49ed19},_0x146f8c={'renderMode':_0x42d4f9[_0x3dadbc(0x18f)],'oKey':this[_0x3dadbc(0x1a9)],'image':this[_0x3dadbc(0x152)][_0x3dadbc(0x29f)],'angle':this['angle']};_0x53a7eb[_0x3dadbc(0x300)](_0x1bfc82),_0x52a2b5[_0x3dadbc(0x302)]();let _0x5a3ecc={'top':0x0,'left':0x0,'width':_0x194314,'height':_0x49ed19},_0x34ca36=_0x53a7eb[_0x3dadbc(0x336)](_0x5a3ecc);_0x34ca36?this[_0x3dadbc(0x124)](_0x52a2b5,_0x34ca36,_0x34ab00=>{const _0x154904=_0x3dadbc;_0x53a7eb[_0x154904(0x237)](_0x34ab00,_0x5a3ecc,_0x146f8c);}):(this['_releaseRenderCache'](),_0x53a7eb['render'](_0x52a2b5,_0x5a3ecc,_0x146f8c)),_0x52a2b5[_0x3dadbc(0x16f)]();let _0x41bbc6=_0x53a7eb[_0x3dadbc(0x1aa)](),_0x37472e=_0x53a7eb[_0x3dadbc(0x236)](_0x5a3ecc),_0x2bb871=_0x53a7eb[_0x3dadbc(0x354)]();if(_0x41bbc6&&_0x37472e&&!_0x2bb871){_0x52a2b5[_0x3dadbc(0x302)](),this['getState']()[_0x3dadbc(0x353)]&&_0x52a2b5[_0x3dadbc(0x32a)](-0x1,0x1);let _0x5866f3=_0x194314/0x2,_0x3e2c18=_0x49ed19/0x2;_0x52a2b5[_0x3dadbc(0x337)](-_0x5866f3,-_0x3e2c18),_0x52a2b5[_0x3dadbc(0x234)](),this[_0x3dadbc(0x316)](_0x52a2b5,_0x41bbc6,_0x37472e),_0x52a2b5[_0x3dadbc(0x16f)]();}}[_0x16bf5e(0x12e)](_0x7ba3c4){}['_drawShapeText'](_0x7143f4,_0x53c9d5,_0x58aa30){const _0x4513ec=_0x16bf5e;var _0x4137da;this[_0x4513ec(0x152)][_0x4513ec(0x134)]||(!((_0x4137da=_0x53c9d5[_0x4513ec(0x1ef)])!=null&&_0x4137da[_0x4513ec(0x238)])&&_0x4513ec(0x175)in _0x53c9d5&&_0x53c9d5[_0x4513ec(0x175)]===!0x1?this[_0x4513ec(0x1f8)](_0x7143f4,_0x53c9d5,_0x58aa30):this['_drawRichText'](_0x7143f4,_0x53c9d5,_0x58aa30));}[_0x16bf5e(0x1f8)](_0x641a03,_0x3c67e3,_0x141749){const _0x4cc3c0=_0x16bf5e;this[_0x4cc3c0(0x27b)](_0x641a03,{..._0x3c67e3,'text':_0x3c67e3[_0x4cc3c0(0x36b)]??'','dataModel':{'doc':_0x2ad81b(_0x3c67e3,_0x4cc3c0(0x2a0)+this['oKey'])}},_0x141749);}[_0x16bf5e(0x27b)](_0x42ab5a,_0x1cc606,_0x388762){const _0x4b0501=_0x16bf5e;_0x3ae758(_0x42ab5a,this[_0x4b0501(0x2bc)],(_0x420244,_0x141f2b)=>{const _0x4a2da0=_0x4b0501;this[_0x4a2da0(0x33a)](_0x420244,_0x1cc606,_0x388762,_0x141f2b);});}[_0x16bf5e(0x33a)](_0x5101c4,_0x24b103,_0x2d7ee,_0x327953){const _0x17cc8c=_0x16bf5e;let _0x26a03a=this[_0x17cc8c(0x152)][_0x17cc8c(0x19d)];if(!_0x24b103[_0x17cc8c(0x1ef)]||!_0x26a03a){_0x26a03a||console[_0x17cc8c(0x2ba)](_0x17cc8c(0x269));return;}let _0x58d3b1=_0x4a9cfc(_0x24b103[_0x17cc8c(0x1ef)]);if(!_0x58d3b1)return;let _0x5938ef=_0x58d3b1['doc'];if(!_0x5938ef)return;let _0x331c96=_0x1eb974(_0x5938ef,_0x327953),_0x1feb7e=_0x58d3b1['va']??_0xf861a6[_0x17cc8c(0x174)],_0x3379b8=_0x58d3b1['ha']??_0x165288[_0x17cc8c(0x13b)],_0x56569a=Li(this[_0x17cc8c(0x152)][_0x17cc8c(0x1c7)][_0x17cc8c(0x18e)](),_0x24b103,_0x331c96),_0x4dd642=_0x24b103['isHorizontal'],_0x303a34=_0x39bbf1(_0x331c96,{'isHorizontal':_0x4dd642!==!0x1,'textRect':_0x2d7ee,'verticalAlign':_0x1feb7e,'horizontalAlign':_0x3379b8,'wrapStrategy':_0x56569a[_0x17cc8c(0x179)]}),_0x4773c1=new _0x1d7f7d(_0x303a34),_0x502f5e=new _0x47d8e5(_0x4773c1),_0x923d6b=_0x116815[_0x17cc8c(0x206)](_0x502f5e,_0x26a03a);_0x923d6b[_0x17cc8c(0x24b)]();let _0x52da30=_0x923d6b[_0x17cc8c(0x1c3)]()['actualHeight'],_0x125073=_0x208c0b({'contentHeight':_0x52da30,'verticalAlign':_0x1feb7e,'viewportHeight':_0x2d7ee[_0x17cc8c(0x322)]});_0x4773c1[_0x17cc8c(0x213)]({'pageSize':{'width':_0x4dd642===!0x1?_0x2d7ee[_0x17cc8c(0x322)]:_0x2d7ee[_0x17cc8c(0x18c)],'height':_0x28de7f(_0x331c96,_0x125073['contentHeight'])}}),_0x4773c1[_0x17cc8c(0x15d)]({'t':_0x125073[_0x17cc8c(0x315)]}),_0x923d6b[_0x17cc8c(0x24b)]();let _0x5556fa=new _0x51fa0b(_0x17cc8c(0x127)+this[_0x17cc8c(0x1a9)],_0x923d6b,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x5556fa['resize'](_0x2d7ee['width'],_0x125073[_0x17cc8c(0x2c8)]),_0x5101c4[_0x17cc8c(0x302)](),_0x5101c4['translateWithPrecision'](_0x2d7ee[_0x17cc8c(0x241)],_0x2d7ee[_0x17cc8c(0x27e)]),_0x56569a['clip']&&(_0x5101c4[_0x17cc8c(0x234)](),_0x5101c4[_0x17cc8c(0x2a9)](0x0,_0x125073[_0x17cc8c(0x2e1)],_0x2d7ee[_0x17cc8c(0x18c)],_0x125073[_0x17cc8c(0x187)]),_0x5101c4[_0x17cc8c(0x23d)]()),_0x125073['contentVerticalOffset']&&_0x5101c4[_0x17cc8c(0x31e)](0x0,_0x125073[_0x17cc8c(0x2cc)]),_0x5556fa['draw'](_0x5101c4),_0x5101c4['restore'](),_0x5556fa[_0x17cc8c(0x1ca)](),_0x923d6b[_0x17cc8c(0x1ca)](),_0x502f5e['dispose'](),_0x4773c1[_0x17cc8c(0x1ca)]();}[_0x16bf5e(0x237)](_0x1f938e,_0x180549,_0x21a0e1=!0x1){const _0x4d9996=_0x16bf5e;if(!this[_0x4d9996(0x142)])return this[_0x4d9996(0x250)](!0x1),this;let {width:_0x285f59,height:_0x36ff09,left:_0x5d0836,top:_0x14da64}=this,_0x364648=this[_0x4d9996(0x2f4)]();if(_0x285f59=_0x364648[_0x4d9996(0x18c)],_0x36ff09=_0x364648[_0x4d9996(0x322)],_0x5d0836=_0x364648[_0x4d9996(0x241)],_0x14da64=_0x364648[_0x4d9996(0x27e)],this[_0x4d9996(0x28a)](_0x180549)){let {top:_0x1bcc60,left:_0x4a2ca1,bottom:_0xb5964,right:_0xc51fe1}=_0x180549['viewBound'];if(_0x285f59+this[_0x4d9996(0x31b)]+_0x5d0836<_0x4a2ca1||_0xc51fe1<_0x5d0836||_0x36ff09+this[_0x4d9996(0x31b)]+_0x14da64<_0x1bcc60||_0xb5964<_0x14da64)return this;}let _0x1fa0af=_0x5d0836+_0x285f59/0x2,_0x1ed401=_0x14da64+_0x36ff09/0x2,_0x37d4fa=this['transform'][_0x4d9996(0x25b)]();if(this['_props'][_0x4d9996(0x134)]){let _0x5a7627=this[_0x4d9996(0x1a6)](),_0x182c73=new _0x60df43();_0x182c73[_0x4d9996(0x2a1)]({..._0x5a7627}),_0x37d4fa=_0x182c73['getMatrix']();}return _0x1f938e[_0x4d9996(0x302)](),this[_0x4d9996(0x152)][_0x4d9996(0x1c7)][_0x4d9996(0x1f6)]===!0x0||_0x1f938e['transform'](_0x37d4fa[0x0],_0x37d4fa[0x1],_0x37d4fa[0x2],_0x37d4fa[0x3],_0x1fa0af,_0x1ed401),this[_0x4d9996(0x14e)](_0x1f938e,_0x180549,_0x285f59,_0x36ff09),_0x1f938e[_0x4d9996(0x16f)](),this['makeDirty'](!0x1),this;}[_0x16bf5e(0x138)](_0x575d05){const _0x1a680d=_0x16bf5e;let {left:_0x239cb9,top:_0x5992c0,width:_0x11870e,height:_0xcf753d}=this['getRealBound'](),_0x46378d=this[_0x1a680d(0x1e9)][_0x1a680d(0x25b)](),_0x21ccc1=_0x239cb9+_0x11870e/0x2,_0x619a50=_0x5992c0+_0xcf753d/0x2,_0x34ee3c=new _0x60df43([_0x46378d[0x0],_0x46378d[0x1],_0x46378d[0x2],_0x46378d[0x3],_0x21ccc1,_0x619a50]),_0xe392cd=this['getParent']();return(this[_0x1a680d(0x301)]&&(_0xe392cd==null?void 0x0:_0xe392cd[_0x1a680d(0x2cd)])===_0x80275a[_0x1a680d(0x1e0)]?_0xe392cd[_0x1a680d(0x1b3)][_0x1a680d(0x2cb)](_0x34ee3c):_0x34ee3c)[_0x1a680d(0x368)]()[_0x1a680d(0x14c)](_0x575d05);}[_0x16bf5e(0x120)](_0x285687){const _0x4c725d=_0x16bf5e;let {left:_0x4cad0c,top:_0x504aa8,width:_0x967ac6,height:_0xe52467}=this[_0x4c725d(0x2f4)](),_0x17e9fa=_0x4cad0c+_0x967ac6/0x2,_0x486091=_0x504aa8+_0xe52467/0x2,_0x46509f=this[_0x4c725d(0x1e9)][_0x4c725d(0x25b)](),_0x2dd4c8=new _0x60df43([_0x46509f[0x0],_0x46509f[0x1],_0x46509f[0x2],_0x46509f[0x3],_0x17e9fa,_0x486091]),_0x5e7432=this[_0x4c725d(0x133)](),_0x187187=(this[_0x4c725d(0x301)]&&(_0x5e7432==null?void 0x0:_0x5e7432['classType'])===_0x80275a[_0x4c725d(0x1e0)]?_0x5e7432[_0x4c725d(0x1b3)][_0x4c725d(0x2cb)](_0x2dd4c8):_0x2dd4c8)[_0x4c725d(0x368)]()[_0x4c725d(0x14c)](_0x285687),_0x412501=_0x967ac6/0x2,_0xd7107=_0xe52467/0x2,_0x45d6c1=this[_0x4c725d(0x152)][_0x4c725d(0x1c7)];return _0x45d6c1&&_0x45d6c1[_0x4c725d(0x354)]()?_0x45d6c1[_0x4c725d(0x157)](_0x187187['x'],_0x187187['y'],_0x967ac6,_0xe52467):_0x187187['x']>=-_0x412501-this[_0x4c725d(0x31b)]/0x2&&_0x187187['x']<=_0x412501+this[_0x4c725d(0x31b)]/0x2&&_0x187187['y']>=-_0xd7107-this[_0x4c725d(0x31b)]/0x2&&_0x187187['y']<=_0xd7107+this['strokeWidth']/0x2;}[_0x16bf5e(0x1ca)](){const _0xa73637=_0x16bf5e;this[_0xa73637(0x2bc)][_0xa73637(0x1ca)](),this[_0xa73637(0x152)][_0xa73637(0x1c7)]=null,super[_0xa73637(0x1ca)]();}};let zi=class extends _0x3db69a{constructor(_0x224200,_0x49040c,_0x463c96,_0x4073c6){const _0x373b1b=_0x16bf5e;super(),this[_0x373b1b(0x159)]=_0x224200,this[_0x373b1b(0x154)]=_0x49040c,this[_0x373b1b(0x355)]=_0x463c96,this[_0x373b1b(0x180)]=_0x4073c6,Z(this,_0x373b1b(0x125),null),Z(this,_0x373b1b(0x2a6),null),Z(this,_0x373b1b(0x17d),null),Z(this,_0x373b1b(0x292),void 0x0),Z(this,_0x373b1b(0x2af),[]),Z(this,_0x373b1b(0x2f8),0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0x373b1b(0x367),0x0),Z(this,'_baseShapeHeight',0x0),Z(this,_0x373b1b(0x267),!0x1),Z(this,'_isShouldShowDrawingShapeAdjust',!0x1),Z(this,_0x373b1b(0x24f),void 0x0),Z(this,_0x373b1b(0x2ad),void 0x0),Z(this,_0x373b1b(0x1db),void 0x0),Z(this,_0x373b1b(0x2ea),void 0x0),this[_0x373b1b(0x24e)](),this[_0x373b1b(0x15e)]();}['clearAdjustControls'](){const _0x1ebc9f=_0x16bf5e;this[_0x1ebc9f(0x1ab)]();}[_0x16bf5e(0x27d)](){const _0x66e2a3=_0x16bf5e;this[_0x66e2a3(0x14f)](!0x0);}['_getShapeAdjustPointListById'](_0x349aa6,_0x17d451,_0xe5c40e){const _0x262e42=_0x16bf5e;var _0x76618e;return(_0x76618e=this[_0x262e42(0x355)]['getShapeModel'](_0x349aa6,_0x17d451,_0xe5c40e))==null?void 0x0:_0x76618e[_0x262e42(0x12e)]();}['_getShapeAdjustInfosById'](_0x1d30ee,_0x131e26,_0x576e91,_0x2a414e){const _0x429f5b=_0x16bf5e;var _0x380ab5;return(_0x380ab5=this[_0x429f5b(0x355)][_0x429f5b(0x27c)](_0x1d30ee,_0x131e26,_0x576e91))==null?void 0x0:_0x380ab5[_0x429f5b(0x1e7)](_0x2a414e);}[_0x16bf5e(0x132)](){const _0x2ef5d4=_0x16bf5e;return this[_0x2ef5d4(0x2a6)]===null||this[_0x2ef5d4(0x17d)]===null||this['_activeShapeId']===null?null:this[_0x2ef5d4(0x154)][_0x2ef5d4(0x1ce)]({'unitId':this[_0x2ef5d4(0x2a6)],'subUnitId':this[_0x2ef5d4(0x17d)],'drawingId':this[_0x2ef5d4(0x125)]})??null;}[_0x16bf5e(0x1c0)](_0x23fcb1){const _0x57d8dd=_0x16bf5e;if(this[_0x57d8dd(0x2a6)]===null||this[_0x57d8dd(0x17d)]===null||this[_0x57d8dd(0x125)]===null)return null;let _0x50274d=_0xf14320({'unitId':this[_0x57d8dd(0x2a6)],'subUnitId':this[_0x57d8dd(0x17d)],'drawingId':this['_activeShapeId']}),_0x5306f9=_0x23fcb1[_0x57d8dd(0x289)](_0x50274d);return _0x5306f9 instanceof Ri?_0x5306f9:null;}[_0x16bf5e(0x2b2)](_0x29f55d=!0x1){const _0x3dcdcb=_0x16bf5e;if(this['_unitId']===null||this[_0x3dcdcb(0x17d)]===null||this[_0x3dcdcb(0x125)]===null)return;let _0x4b986d=this[_0x3dcdcb(0x132)]();if((_0x4b986d==null?void 0x0:_0x4b986d[_0x3dcdcb(0x2a4)])!==_0x21524c[_0x3dcdcb(0x247)]||!_0x4b986d[_0x3dcdcb(0x1e9)])return;let _0x48fb5e=this[_0x3dcdcb(0x355)][_0x3dcdcb(0x27c)](this['_unitId'],this['_subUnitId'],this[_0x3dcdcb(0x125)]);if(!_0x48fb5e||_0x48fb5e[_0x3dcdcb(0x354)]())return;let {left:_0x2bfd3d=0x0,top:_0x165027=0x0,width:_0x14f2d9=0x0,height:_0x41ed9d=0x0,flipX:_0x103ff9,flipY:_0x54829a,angle:_0x43cbb7=0x0}=_0x4b986d['transform'];(_0x29f55d||!this[_0x3dcdcb(0x292)])&&(_0x48fb5e[_0x3dcdcb(0x300)]({'width':_0x14f2d9,'height':_0x41ed9d}),this[_0x3dcdcb(0x292)]=_0x48fb5e[_0x3dcdcb(0x12e)]());let _0x4d5552=this[_0x3dcdcb(0x292)];if(!(_0x4d5552!=null&&_0x4d5552[_0x3dcdcb(0x116)]))return;let {scene:_0x133d8e}=this[_0x3dcdcb(0x159)];for(let _0x4f42f8 of _0x4d5552){let _0x59b5b8=this[_0x3dcdcb(0x372)](_0x4f42f8,_0x14f2d9,_0x41ed9d,!!_0x103ff9,!!_0x54829a,_0x43cbb7);this['_addShapeAdjustControl'](_0x133d8e,_0x59b5b8,_0x59b5b8['adjName'],_0x2bfd3d,_0x165027,this[_0x3dcdcb(0x2a6)],this[_0x3dcdcb(0x17d)]);}}[_0x16bf5e(0x372)](_0x11b3d3,_0x4d0276,_0x443866,_0x4decab,_0xc8e98f,_0x2de569){const _0x376f35=_0x16bf5e;let _0x351d5c=_0x11b3d3['x'],_0x24c2c0=_0x11b3d3['y'];if(_0x4decab&&(_0x351d5c=_0x4d0276-_0x351d5c),_0xc8e98f&&(_0x24c2c0=_0x443866-_0x24c2c0),_0x2de569!==0x0){let _0x3da080=_0x4d0276/0x2,_0x1cf852=_0x443866/0x2,_0x1a928e=_0x2de569*Math['PI']/0xb4,_0x2ccb5b=Math[_0x376f35(0x30d)](_0x1a928e),_0x252a4e=Math[_0x376f35(0x2e5)](_0x1a928e),_0x2f0eab=_0x351d5c-_0x3da080,_0xf42fdd=_0x24c2c0-_0x1cf852;_0x351d5c=_0x3da080+(_0x2f0eab*_0x2ccb5b-_0xf42fdd*_0x252a4e),_0x24c2c0=_0x1cf852+(_0x2f0eab*_0x252a4e+_0xf42fdd*_0x2ccb5b);}return{'x':_0x351d5c,'y':_0x24c2c0,'adjName':_0x11b3d3[_0x376f35(0x332)]};}[_0x16bf5e(0x14f)](_0x52409e=!0x1){const _0x273900=_0x16bf5e;_0x52409e&&this[_0x273900(0x1ab)](),this[_0x273900(0x2b2)](_0x52409e);}['_addShapeAdjustControl'](_0x2005d4,_0x32797d,_0xc690ab,_0x4bc932,_0x43d41b,_0x4ca2b6,_0xd7d4cf){const _0x43731e=_0x16bf5e;if(!this[_0x43731e(0x125)])return;let _0xebebfa=_0x43731e(0x29a)+this[_0x43731e(0x125)]+'-'+_0xc690ab,_0x4036d8=_0x2005d4[_0x43731e(0x289)](_0xebebfa);if(_0x4036d8){_0x4036d8[_0x43731e(0x1b1)]({'left':_0x32797d['x']+_0x4bc932-_0x4c92e4[_0x43731e(0x299)],'top':_0x32797d['y']+_0x43d41b-_0x4c92e4[_0x43731e(0x299)]}),_0x4036d8[_0x43731e(0x250)](!0x0);return;}let _0xb7dc54=new Ii(_0xebebfa,{'left':_0x32797d['x']+_0x4bc932-_0x4c92e4[_0x43731e(0x299)],'top':_0x32797d['y']+_0x43d41b-_0x4c92e4['adjHandleSize'],'adjName':_0xc690ab,'shapeId':this[_0x43731e(0x125)],'unitId':_0x4ca2b6,'subUnitId':_0xd7d4cf,'width':_0x4c92e4[_0x43731e(0x299)]+0x8,'height':_0x4c92e4['adjHandleSize']+0x8,'zIndex':_0x19f6eb+0x1,'evented':!0x0});this[_0x43731e(0x2af)][_0x43731e(0x1bc)](_0xb7dc54),this['_attachAdjustEvent'](_0xb7dc54,_0x2005d4,_0xc690ab),_0x2005d4[_0x43731e(0x200)](_0xb7dc54,_0x19f6eb+0x1);}[_0x16bf5e(0x1ab)](){const _0x2b598a=_0x16bf5e;this[_0x2b598a(0x2af)][_0x2b598a(0x276)](_0x556739=>_0x556739[_0x2b598a(0x1ca)]()),this[_0x2b598a(0x2af)]=[];}['_updateAdjustControlPositions'](){const _0x363a8d=_0x16bf5e;this[_0x363a8d(0x2b2)]();}[_0x16bf5e(0x35b)](_0x4a65ef,_0x41d047,_0x4a7caa){const _0x290c12=_0x16bf5e;let _0x2bbb96=_0xed2876[_0x290c12(0x259)]([_0x41d047,_0x4a7caa]),_0x5b7e99=_0x4a65ef['getActiveViewportByCoord'](_0x2bbb96)??_0x4a65ef[_0x290c12(0x310)]()[0x0];return(_0x5b7e99==null?void 0x0:_0x5b7e99[_0x290c12(0x195)](_0x2bbb96))??_0x2bbb96;}[_0x16bf5e(0x35d)](_0x102df0,_0x38ae5a,_0x1740e7){const _0x5e8437=_0x16bf5e;this[_0x5e8437(0x371)](_0x5bca0e(_0x102df0[_0x5e8437(0x229)][_0x5e8437(0x1b2)]((_0x2b1c0b,_0x36af56)=>{const _0x53a72b=_0x5e8437;var _0x455493;let _0x33b910=_0x102df0[_0x53a72b(0x11f)]();this[_0x53a72b(0x24f)]=this[_0x53a72b(0x1e4)](_0x33b910[_0x53a72b(0x29e)],_0x33b910['subUnitId'],_0x33b910[_0x53a72b(0x344)],_0x1740e7),this[_0x53a72b(0x2ad)]=this[_0x53a72b(0x355)][_0x53a72b(0x27c)](_0x33b910[_0x53a72b(0x29e)],_0x33b910[_0x53a72b(0x23b)],_0x33b910[_0x53a72b(0x344)]);let _0x3dde8a=this[_0x53a72b(0x132)](),_0x5680a8=_0x3dde8a==null?void 0x0:_0x3dde8a[_0x53a72b(0x1e9)];if(!_0x3dde8a||!_0x5680a8||!this[_0x53a72b(0x2ad)])return;this[_0x53a72b(0x2f8)]=_0x5680a8[_0x53a72b(0x241)]||0x0,this[_0x53a72b(0x18d)]=_0x5680a8['top']||0x0,this[_0x53a72b(0x367)]=_0x5680a8['width']||0x0,this[_0x53a72b(0x155)]=_0x5680a8[_0x53a72b(0x322)]||0x0;let _0x3c1f64=!!_0x5680a8[_0x53a72b(0x353)],_0x35df57=!!_0x5680a8['flipY'],_0x55368d=_0x5680a8[_0x53a72b(0x298)]||0x0,_0x12339d={...((_0x455493=this['_activeAdjustInfo'])==null?void 0x0:_0x455493[_0x53a72b(0x350)])??{}};this[_0x53a72b(0x267)]=!0x0,_0x38ae5a[_0x53a72b(0x245)](),this['_adjHandlerPointerMove']=_0x38ae5a['onPointerMove$'][_0x53a72b(0x1b2)]((_0x3af7f1,_0x3b59b2)=>{const _0x2e1e25=_0x53a72b;var _0x1de2bf;if(!this['_isStartAdjusting']||!this['_activeShapeModel']||!this[_0x2e1e25(0x24f)])return;_0x38ae5a[_0x2e1e25(0x245)](),_0x38ae5a['setCursor'](_0x1dfb4e[_0x2e1e25(0x17a)]);let _0x339a7e=this[_0x2e1e25(0x35b)](_0x38ae5a,_0x3af7f1[_0x2e1e25(0x35f)],_0x3af7f1[_0x2e1e25(0x283)]),_0x287377=_0x339a7e['x']-this[_0x2e1e25(0x2f8)],_0x23c481=_0x339a7e['y']-this[_0x2e1e25(0x18d)];if(_0x55368d!==0x0){let _0x430bd5=this[_0x2e1e25(0x367)]/0x2,_0x49d878=this['_baseShapeHeight']/0x2,_0x39e1db=_0x55368d*Math['PI']/0xb4,_0x41d834=Math[_0x2e1e25(0x30d)](_0x39e1db),_0xc3b788=Math['sin'](_0x39e1db),_0x1743ea=_0x287377-_0x430bd5,_0x9b909b=_0x23c481-_0x49d878;_0x287377=_0x430bd5+(_0x1743ea*_0x41d834+_0x9b909b*_0xc3b788),_0x23c481=_0x49d878+(-_0x1743ea*_0xc3b788+_0x9b909b*_0x41d834);}_0x3c1f64&&(_0x287377=this[_0x2e1e25(0x367)]-_0x287377),_0x35df57&&(_0x23c481=this[_0x2e1e25(0x155)]-_0x23c481);let _0x93f780={'left':0x0,'top':0x0,'width':this[_0x2e1e25(0x367)],'height':this[_0x2e1e25(0x155)]},_0x15c540=this[_0x2e1e25(0x2ad)]['calcAdjValues'](_0x93f780,{'x':_0x287377,'y':_0x23c481},this['_activeAdjustInfo'],_0x3c1f64,_0x35df57);if(Object[_0x2e1e25(0x130)](_0x15c540)['length']!==0x0){for(let [_0x1bef99,_0x5a07ae]of Object['entries'](_0x15c540))this['_activeShapeModel']['setAdjustValueByName'](_0x1bef99,_0x5a07ae);this['_activeShapeModel'][_0x2e1e25(0x300)]({'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']}),(_0x1de2bf=this[_0x2e1e25(0x1c0)](_0x38ae5a))==null||_0x1de2bf[_0x2e1e25(0x250)](!0x0),this[_0x2e1e25(0x292)]=this[_0x2e1e25(0x2aa)](_0x33b910[_0x2e1e25(0x29e)],_0x33b910[_0x2e1e25(0x23b)],_0x33b910[_0x2e1e25(0x344)]),this[_0x2e1e25(0x2a3)](),_0x3b59b2[_0x2e1e25(0x189)]();}}),this[_0x53a72b(0x2ea)]=_0x38ae5a[_0x53a72b(0x2e4)]['subscribeEvent']((_0x1e04cc,_0x2e1204)=>{const _0x5eed5d=_0x53a72b;var _0x2e56bf,_0x463bc1;(_0x2e56bf=this[_0x5eed5d(0x1db)])==null||_0x2e56bf[_0x5eed5d(0x1ae)](),(_0x463bc1=this[_0x5eed5d(0x2ea)])==null||_0x463bc1['unsubscribe'](),_0x38ae5a[_0x5eed5d(0x285)]();let _0x52805d=this[_0x5eed5d(0x24f)];if(_0x52805d&&this[_0x5eed5d(0x2ad)]){let _0x1bf9be={};for(let _0x373d02 of Object[_0x5eed5d(0x130)](_0x52805d[_0x5eed5d(0x350)])){let _0x102bbb=this[_0x5eed5d(0x2ad)][_0x5eed5d(0x1ed)](_0x373d02);_0x102bbb!==void 0x0&&(_0x1bf9be[_0x373d02]=_0x102bbb);}Object[_0x5eed5d(0x130)](_0x1bf9be)['length']>0x0&&zr(this['_commandService'],_0x33b910['unitId'],_0x33b910['subUnitId'],_0x33b910[_0x5eed5d(0x344)],{'oldShapeData':{'adjustValues':_0x12339d}},{'adjustValues':_0x1bf9be});}this[_0x5eed5d(0x24f)]=void 0x0,this[_0x5eed5d(0x2ad)]=void 0x0,this[_0x5eed5d(0x267)]=!0x1,_0x38ae5a['enableObjectsEvent'](),_0x2e1204[_0x5eed5d(0x189)]();}),_0x36af56[_0x53a72b(0x189)]();})));}[_0x16bf5e(0x15e)](){const _0x5ec281=_0x16bf5e;let {scene:_0x3b8102}=this[_0x5ec281(0x159)],_0x4af57c=_0x3b8102['getTransformerByCreate']();this[_0x5ec281(0x371)](_0x4af57c['changeStart$']['subscribe'](_0x154ea4=>{const _0x568776=_0x5ec281;this[_0x568776(0x2b2)](),_0x154ea4['objects']!==null&&_0x154ea4[_0x568776(0x17e)][_0x568776(0x14a)]===0x1&&_0x154ea4[_0x568776(0x17e)][_0x568776(0x12f)]()[_0x568776(0x2c7)]()[_0x568776(0x171)]instanceof Ri&&(this[_0x568776(0x117)]=!0x0);})),this[_0x5ec281(0x371)](_0x4af57c['changing$'][_0x5ec281(0x1e1)](()=>{const _0x18b15f=_0x5ec281;this[_0x18b15f(0x117)]&&this[_0x18b15f(0x1ab)]();})),this[_0x5ec281(0x371)](_0x3b8102[_0x5ec281(0x2e4)][_0x5ec281(0x1b2)](()=>{const _0x5e2251=_0x5ec281;this[_0x5e2251(0x117)]&&(this[_0x5e2251(0x117)]=!0x1,this[_0x5e2251(0x2b2)]());})),this[_0x5ec281(0x371)](_0x4af57c['changeEnd$'][_0x5ec281(0x1e1)](()=>{const _0x219efa=_0x5ec281;this[_0x219efa(0x2a6)]&&this[_0x219efa(0x17d)]&&this[_0x219efa(0x125)]&&(this[_0x219efa(0x292)]=this[_0x219efa(0x2aa)](this[_0x219efa(0x2a6)],this[_0x219efa(0x17d)],this[_0x219efa(0x125)]),this[_0x219efa(0x2a3)]());}));}[_0x16bf5e(0x24e)](){const _0x413b36=_0x16bf5e;this[_0x413b36(0x371)](this['_commandService'][_0x413b36(0x188)](_0xac07a2=>{const _0x4554cc=_0x413b36;if(_0xac07a2['id']!==_0x135998['id'])return;let {unitId:_0x51dc02,shapeId:_0x493b07}=_0xac07a2[_0x4554cc(0x2ef)];_0x51dc02===this[_0x4554cc(0x2a6)]&&_0x493b07===this['_activeShapeId']&&this['refreshAdjustControls']();})),this[_0x413b36(0x371)](this['_drawingManagerService'][_0x413b36(0x149)]['subscribe'](_0x502eb7=>{const _0x330ed4=_0x413b36;if(_0x502eb7[_0x330ed4(0x116)]===0x1){let _0x78f3a7=_0x502eb7[0x0],_0x235cb5=this[_0x330ed4(0x154)][_0x330ed4(0x1ce)](_0x78f3a7);if((_0x235cb5==null?void 0x0:_0x235cb5[_0x330ed4(0x2a4)])===_0x21524c['DRAWING_SHAPE']){this[_0x330ed4(0x125)]=_0x78f3a7[_0x330ed4(0x344)],this[_0x330ed4(0x2a6)]=_0x78f3a7['unitId'],this[_0x330ed4(0x17d)]=_0x78f3a7['subUnitId'],this[_0x330ed4(0x292)]=this[_0x330ed4(0x2aa)](_0x78f3a7[_0x330ed4(0x29e)],_0x78f3a7['subUnitId'],_0x78f3a7[_0x330ed4(0x344)]),this[_0x330ed4(0x1ab)](),this['_createShapeAdjustControls']();return;}}this[_0x330ed4(0x125)]=null,this[_0x330ed4(0x292)]=void 0x0,this['_unitId']=null,this[_0x330ed4(0x17d)]=null,this['_clearShapeAdjustControls']();})),this[_0x413b36(0x371)](_0x71248(this[_0x413b36(0x154)][_0x413b36(0x2c6)],this['_drawingManagerService'][_0x413b36(0x360)])[_0x413b36(0x1e1)](_0x37eec8=>{const _0x5cf7b8=_0x413b36;var _0x3ff854;let _0x2df632=_0x37eec8['find'](_0x141925=>_0x141925[_0x5cf7b8(0x344)]===this['_activeShapeId']&&_0x141925[_0x5cf7b8(0x29e)]===this[_0x5cf7b8(0x2a6)]&&_0x141925[_0x5cf7b8(0x23b)]===this[_0x5cf7b8(0x17d)]);_0x2df632&&((_0x3ff854=this[_0x5cf7b8(0x154)][_0x5cf7b8(0x1ce)](_0x2df632))==null?void 0x0:_0x3ff854[_0x5cf7b8(0x2a4)])===_0x21524c[_0x5cf7b8(0x247)]&&this[_0x5cf7b8(0x14f)](!0x0);})),this[_0x413b36(0x371)](this[_0x413b36(0x154)][_0x413b36(0x1d2)][_0x413b36(0x1e1)](_0x588fd1=>{const _0xe263ed=_0x413b36;for(let _0x4c7a4d of _0x588fd1)this[_0xe263ed(0x125)]===_0x4c7a4d['drawingId']&&(this[_0xe263ed(0x125)]=null,this[_0xe263ed(0x292)]=void 0x0,this[_0xe263ed(0x2a6)]=null,this[_0xe263ed(0x17d)]=null,this[_0xe263ed(0x1ab)]());}));}};zi=Y([J(0x1,_0x30fd72),J(0x2,_0x1f7d38(_0xda92b6)),J(0x3,_0x38aa04)],zi);let Q=class extends _0x3db69a{constructor(_0xc2b796,_0x3b3517){const _0x3a1970=_0x16bf5e;super(),this[_0x3a1970(0x16a)]=_0xc2b796,this[_0x3a1970(0x1b0)]=_0x3b3517,Z(this,_0x3a1970(0x34b),new _0x54747c(null)),Z(this,_0x3a1970(0x2b9),this[_0x3a1970(0x34b)][_0x3a1970(0x1d5)]()),Z(this,_0x3a1970(0x346),new _0x54747c(!0x1)),Z(this,'onSavingEditorData$',this['_onSavingEditorData$']['asObservable']()),Z(this,_0x3a1970(0x261),void 0x0),this['disposeWithMe'](this[_0x3a1970(0x16a)]['permissionPointUpdate$']['subscribe'](()=>{const _0x571b3c=_0x3a1970;let _0x3e8e16=this[_0x571b3c(0x136)]();_0x3e8e16!=null&&_0x3e8e16[_0x571b3c(0x142)]&&!this[_0x571b3c(0x1a4)](_0x3e8e16)&&this[_0x571b3c(0x1cd)](null);}));}['dispose'](){const _0x57ca2c=_0x16bf5e;this['_clearCompletionFrame'](),this[_0x57ca2c(0x34b)]['next'](null),this[_0x57ca2c(0x34b)][_0x57ca2c(0x318)](),this[_0x57ca2c(0x346)][_0x57ca2c(0x2c7)](!0x1),this['_onSavingEditorData$'][_0x57ca2c(0x318)](),super[_0x57ca2c(0x1ca)]();}[_0x16bf5e(0x1cd)](_0x5aeeb3){const _0x468c4b=_0x16bf5e;(_0x5aeeb3==null||!_0x5aeeb3[_0x468c4b(0x142)]||this[_0x468c4b(0x1a4)](_0x5aeeb3))&&(this['_clearCompletionFrame'](),this[_0x468c4b(0x34b)][_0x468c4b(0x2c7)](_0x5aeeb3),(_0x5aeeb3==null||_0x5aeeb3[_0x468c4b(0x142)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x468c4b(0x346)][_0x468c4b(0x2c7)](!0x1));}[_0x16bf5e(0x1f7)](_0x58ddb1){const _0x241c4b=_0x16bf5e;this[_0x241c4b(0x346)][_0x241c4b(0x2c7)](_0x58ddb1);}[_0x16bf5e(0x136)](){const _0x5d7a17=_0x16bf5e;return this[_0x5d7a17(0x34b)]['getValue']();}[_0x16bf5e(0x1a4)](_0x5f6ca4){const _0x5aee2b=_0x16bf5e;let _0xf06a8b=this[_0x5aee2b(0x1b0)][_0x5aee2b(0x258)](_0x5f6ca4[_0x5aee2b(0x29e)],_0x5a336e[_0x5aee2b(0x1e2)]);if(!_0xf06a8b)return!0x0;let _0x338182=_0x359abd(_0xf06a8b,_0x5f6ca4[_0x5aee2b(0x226)]);return _0x1aefa3(this['_permissionService'],_0x5f6ca4[_0x5aee2b(0x29e)],[..._0x2f3e76(_0xf06a8b,_0x338182,_0x5aee2b(0x305),_0x5f6ca4[_0x5aee2b(0x226)]),_0x3200bc(_0x338182,_0x5aee2b(0x305),_0x5f6ca4[_0x5aee2b(0x226)])]);}[_0x16bf5e(0x15c)](_0x998e97){const _0x3e0174=_0x16bf5e;let _0x2b835f=this[_0x3e0174(0x136)]();_0x2b835f&&this[_0x3e0174(0x261)]===void 0x0&&(this[_0x3e0174(0x1f7)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0xb937c3=_0x3e0174;this[_0xb937c3(0x261)]=void 0x0,this[_0xb937c3(0x136)]()===_0x2b835f&&this[_0xb937c3(0x1cd)](null);}));}[_0x16bf5e(0x1da)](){const _0x52d1fb=_0x16bf5e;this[_0x52d1fb(0x261)]!==void 0x0&&(cancelAnimationFrame(this[_0x52d1fb(0x261)]),this[_0x52d1fb(0x261)]=void 0x0);}[_0x16bf5e(0x31a)](){const _0xcb725b=_0x16bf5e;this[_0xcb725b(0x136)]()&&this['setEditing'](null);}};function _0x261b(){const _0x166a27=['clipTop','some','getUnitId','onPointerUp$','sin','delete','open','packageName','fillImageSource','_adjHandlerPointerUp','round','gradientEndColor','style','visible$','params','data','_refreshShapeData','shapeData','shape-editor-ui.arrange.back','getRealBound','get','TRUE','_updateSrcRectByTransform','_baseShapeLeft','constructor','filter','univer-box-border\x20univer-px-4\x20univer-text-sm','getSelfOrHeaderFooterModel','docs-shape-ui.objectListPanel.title','presentation','formulaPresentation','updateContext','isInGroup','save','drawing-ui.objectListPanel.collapse','layoutType','drawing','TopmostIcon','INLINE','docs-shape-ui.hidePanel','Rect','setShapeProps','_getShapeInfo','focusDrawing','cos','_getShapePopup','_shapeEditPanelVersion','getViewports','description','_imageIoService','add','clip-','marginTop','_drawShapeText','endOffset','complete','docs-shape-ui.crop.shape','cancelEditing','strokeWidth','intercept','VIEW_MAIN','translateWithPrecision','ShapeFormatSettingIcon','actualHeight','_endLayoutInteraction','height','activeTarget','shapeType','docs-shape-ui.objectListPanel.open','entries','Large','buildClipPath','isMainScene','scale','7678620rhaGDn','getImage','_shapeId','clipByShape','docs-shape-ui.textWrap.behindText','_disposePopupsByUnit','58113jMUvLg','adjName','_popupMenuListener','_getFocusedShapeAtPoint','_getDependencies','getDrawingEffectBounds','translate','docs-shape-ui.textWrap.square','getVisible','_drawRichTextLayer','_getSceneByUnitId','_menuManagerService','.below','debounceRefreshControls','_getRenderModules','docs-shape-ui.shape-format.quick-style-gallery','setFallbackVisible','set','28SRnmWu','drawingId','docs-shape-ui.insertShape','_onSavingEditorData$','7242396tQVasj','registerRenderModule','_adjName','setFillImage','_editingParams$','getFocusedUnit','133511yGfdOA','setSrcRect','DocsShapeWrapInFrontOfTextIcon','currentAdjustValues','drawing-ui.objectListPanel.filterHidden','0.14','flipX','isLineShape','_docsShapeService','sectionFloating','CONTENT','registerComponent','register','_update','_toScenePoint','resize','_attachAdjustEvent','type','offsetX','refreshTransform$','skeFooters','SolidLine','LAYOUT','drawing-ui.objectListPanel.lock','docs-shape-ui.formatShape','interceptor','_baseShapeWidth','invert','_docDrawingShapeRenderController','_componentManager','text','_hide','_initSelection','_layoutInteraction','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','featurePluginUpdateNotification','disposeWithMe','_toVisualAdjustPoint','registerClipDelegate','shape-editor-ui.toolbar.changeShape','OTHERS','popup','color','Arrow','length','_isShouldShowDrawingShapeAdjust','paragraphMenuPlacement','_closeShapeEditPanel','srcRect','docs-shape-ui.ribbon.shape-format.arrange-front','5.5','BUTTON','default','getDrawingSearch','isHit','_transform','PARAGRAPH','BottomIcon','_renderWithCache','_activeShapeId','WRAP_NONE','shape-text-','3716022wmEpsv','doc.shape.floating-toolbar','getSkeletonData','panel','isolated','getShapeType','getDrawingPoints','values','keys','trim','_getActiveDrawingParam','getParent','isEditing','ShapeIcon','getEditing','behindDoc','getInverseCoord','isDrawingObject','refreshFormulaPresentation','LEFT','_iconManager','doc.operation.open-shape-object-list-panel','splice','_initEditingParams','setCanUseShapeClip','_isOpenedShapeEditPanel','visible','attachPopupToObject','drawing-ui.objectListPanel.hide','setContextValue','drawing-ui.objectListPanel.noSelection','syncExecuteCommand','menu','focus$','size','onDblclick$','applyPoint','iterator','_draw','_updateShapeAdjustControls','getCurrentUnitOfType','_registerComponents','_props','drawing-ui.objectListPanel.moveBackward','_drawingManagerService','_baseShapeHeight','drawing-ui.objectListPanel.sectionFloating','isHitLine','pages','_context','back','doc.shape.picker.component','completeEditing','updateDocumentDataMargin','_registerDrawingTransformHandler','getPresentation','drawing-ui.objectListPanel.showAll','skeTables','extraProps','canvas','formulaBinding','_contextService','OPERATION','setFormulaPresentation','drawWith','clearControl$','_permissionService','_initialize','docs-shape-ui.textWrap.inline','doc.image-clip.shape-picker.component','univer-grid\x20univer-gap-5\x20univer-p-3','restore','getDrawingData','value','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_canEditShape','TOP','isRichText','BEHIND_TEXT','getShapeDataById','_registerImageShapeClipDelegate','wrapStrategy','CROSSHAIR','getDrawingDataForUnit','_docCanvasPopManagerService','_subUnitId','objects','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','_commandService','DocsShapeWrapInlineIcon','refreshShapeFillImage','DocsShapeTextEditorContainer','renderDrawingShape','permissionPointUpdate$','_renderManagerService','clipHeight','onCommandExecuted','stopPropagation','_popupTargetKeys','drawing-ui.objectListPanel.dragToReorder','width','_baseShapeTop','getShapeData','Path','_registerIcons','engine','docs-shape-ui.mobile.text','_localeService','actions','transformVector2SceneCoord','DRAWING_DOM','_applyFormulaAutoFitSize','_clipService','drawing-ui.objectListPanel.title','footerId','_clearPopups','shape-editor-ui.arrange.backward','localeService','close','defineProperty','skeDrawings','selectable','createControl$','DocsShapeWrapBehindTextIcon','_canEdit','docs-shape-ui.quickStyles','getState','2534790uPlytR','_activeShapeInfo','oKey','getShapeTextData','_clearShapeAdjustControls','_registerPickers','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','unsubscribe','docs-shape-ui.shape-format.style-ribbon-control','_instanceService','transformByState','subscribeEvent','ancestorTransform','shapeKey','true','reduce','docs-shape-ui.ribbon.shape-format.style-control','max','prstGeom','doc.operation.close-doc-shape-format-panel','changing$','push','_lastEditingShapeKey','SHAPE','_shapeTextEditingService','_getActiveDrawingShape','shape-editor-ui.toolbar.quickStyles','onload','getActualSize','pick','rows','_sidebarDisposable','shapeModel','_shapeRenderController','pluginName','dispose','icon','_openShapeEditPanel','setEditing','getDrawingByParam','DRAWING_IMAGE','fontSize','_univerInstanceService','remove$','docs-shape-ui.ribbon.shape-format.wrapping-style','add$','asObservable','_handleCreateControl','setShapeData','_shapeFormulaService','docs-shape-ui.textWrap.topAndBottom','_clearCompletionFrame','_adjHandlerPointerMove','clearAdjustValue','drawings','setPresentation','scene','GROUP','subscribe','UNIVER_DOC','docs-shape-ui.ribbon.shape-format','_getShapeAdjustInfosById','sectionCanvas','animateFormulaPresentation','getAdjustInfoByName','drawing-ui.objectListPanel.locate','transform','includes','docs-shape-ui.ribbon.shape-format.formula-control','drawing-ui.objectListPanel.unlock','getAdjustValueByName','path','dataModel','DocsShapeWrapTopBottomIcon','_measure','forward','ObjectLayersIcon','_loadShapePictureFill','startOffset','isRenderLinePointsMode','setOnSavingEditorData','_drawSimpleText','top-bottom','drawing-ui.objectListPanel.expand','toPrimitive','_sidebarService','getTransformerByCreate','autoFitType','getScene','addObject','getDrawingOrder','unregister','None','MEDIA','getDrawingEditable','create','setPrstGeom','_shapeFloatingToolbarService','adjHandleFill','docs-shape-ui.textWrap.inFrontText','1.0.1','showContextualTab','_initCommands','pageWidth','_registerOperations','map','_mobileEditorService','docs-shape-ui.mobile.delete','updateDocumentStyle','doc.shape.text.float-menu','_formulaShapes','PRINTING_COMPONENT_COLLECT','MoveUpIcon','pipe','has','horizontal','_initUIPart','getPageDrawingIds','title','doc.operation.open-doc-shape-format-panel','Medium','onReady','registerCommand','_configService','getAllRenderersOfType','onStarting','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','shapeId','_transformCalculateSrcRect','DocumentEntity','onPointerDown$','presentationChanged$','getInterceptPoints','_updateShape','drawing-ui.objectListPanel.lockAll','span','svg','fallbackWidth','_ribbonService','executeCommand','src','beginPath','preValue','getShapeTextRect','render','doc','endArrow','onRendered','subUnitId','onTransformChange$','clip','_initEvents','div','front','left','doc.command.menu-insert-shape','mergeMenu','onerror','disableObjectsEvent','doc.shape.edit.panel','DRAWING_SHAPE','drawing-ui.objectListPanel.filterAll','_formulaKey','_getDisposePopups','calculate','indexOf','docs-shape-ui.deleteShape','_registerDrawingFocusChangeHandler','_activeAdjustInfo','makeDirty','_drawingType','behind','getShapeTypeById','-layout','reverse','cells','fillImageSourceType','getUnit','FromArray','spaceBelowApply','getMatrix','extensionGroups','object','getOwnPropertyDescriptor','getAutoFitPresentations','getRenderUnitById','_completionFrame','attachTransformerTo','docs-shape-ui.openPanel','getSelectedObjectMap','startIndex','DocsShapeWrapSquareIcon','_isStartAdjusting','skeHeaders','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','function','_docLayoutInteractionService','getDrawingOKey','_initPrinting','decorate','with','below','docs-shape-ui.config','IN_FRONT_OF_TEXT','fontFamily','drawing-ui.objectListPanel.filterLocked','drawing-ui.objectListPanel.unlockAll','forEach','_loadAndSetImage','drawing-ui.objectListPanel.hideAll','currentColor','drawing-ui.objectListPanel.lockHint','_drawRichText','getShapeModel','refreshAdjustControls','top','_insertShapes','animationEnabled','sheet.image-clip.shape-picker.component','behindText','offsetY','SELECTOR','resetCursor','getCurrentTypeOfUnit$','drawing-ui.objectListPanel.unlockHint','drawing-ui.objectListPanel.search','getObjectIncludeInGroup','isRender','drawing-ui.objectListPanel.typeNames.','WRAP_TOP_AND_BOTTOM','_injector','presetId','_urlImageService','UNIVER_SHEET','updateShapeFillImage','_activeShapeAdjustPointList','drawing-ui.objectListPanel.nameInput','square','MoveDownIcon','_setTransForm','hidden','angle','adjHandleSize','doc-shape-adjust-point-','Line','@univerjs-pro/docs-shape-ui','DOCS_SHAPE_UI_PLUGIN','unitId','image','docs-shape-text-','composeMatrix','canDispose','_updateAdjustControlPositions','drawingType','drawing-ui.objectListPanel.sectionCanvas','_unitId','setCollapsedIds','version','rect','_getShapeAdjustPointListById','paragraphId','isFinite','_activeShapeModel','_registerFloatingToolbar','_adjustPointObjects','inline','getFocusDrawings','_createShapeAdjustControls','prototype','_docPrintInterceptorService','WRAP_SQUARE','getUnitType','drawing-ui.objectListPanel.empty','custom','editingParams$','warn','backward','_formulaAnimation','_registerObjectListPanel','error','SHAPE_TEXT','1.2','fallbackHeight','addImageSourceCache','_init','0.8','parent','update$','next','contentHeight','COMMAND','disableShapeOption','multiply','contentVerticalOffset','classType','getBody','fill','_config','shapeText','_initMenu','symbol','_visible','SpAutoFit','docs-shape-ui.ribbon.shape-format.arrange-forward','PictureFill','top-center','601449GqzQaA','setConfig','docs-shape-ui.ribbon.shape-format.arrange-back','1em','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','find','2696oJyagt','canvasElement'];_0x261b=function(){return _0x166a27;};return _0x261b();}Q=Y([J(0x0,_0x137531),J(0x1,_0x3fa0e3)],Q);function Bi(_0x27e8e8){const _0x5061fa=_0x16bf5e;return _0x27e8e8[_0x5061fa(0x282)]===!0x0||_0x27e8e8['behindText']===_0x2fa3f8[_0x5061fa(0x2f6)]||_0x27e8e8[_0x5061fa(0x304)]===_0x2cf572[_0x5061fa(0x126)]&&_0x27e8e8[_0x5061fa(0x137)]===_0x2fa3f8['TRUE']?_0x31db56-0x1:_0x19f6eb;}let $=class extends _0x3db69a{constructor(_0x2fd1bc,_0x4a1324,_0x52b0d1,_0x31c7c6,_0x5d3f6d,_0x4644da,_0x55c41e){const _0xc4e39a=_0x16bf5e;super(),this['_drawingManagerService']=_0x2fd1bc,this[_0xc4e39a(0x355)]=_0x4a1324,this['_localeService']=_0x52b0d1,this[_0xc4e39a(0x312)]=_0x31c7c6,this[_0xc4e39a(0x28f)]=_0x5d3f6d,this[_0xc4e39a(0x1bf)]=_0x4644da,this['_shapeFormulaService']=_0x55c41e,Z(this,_0xc4e39a(0x215),new Map()),this[_0xc4e39a(0x371)](this[_0xc4e39a(0x1d8)][_0xc4e39a(0x22a)][_0xc4e39a(0x1e1)](_0x51dc3c=>{const _0x319cd3=_0xc4e39a;var _0x36ad8f;(_0x36ad8f=this[_0x319cd3(0x215)][_0x319cd3(0x2f5)](this[_0x319cd3(0x249)](_0x51dc3c[_0x319cd3(0x29e)],_0x51dc3c['subUnitId'],_0x51dc3c['shapeId'])))==null||_0x36ad8f['forEach'](_0x5c898a=>_0x5c898a[_0x319cd3(0x167)](_0x51dc3c[_0x319cd3(0x2fe)],_0x51dc3c[_0x319cd3(0x280)]));})),this['disposeWithMe'](this[_0xc4e39a(0x154)]['remove$'][_0xc4e39a(0x1e1)](_0x7e0424=>{const _0x45d447=_0xc4e39a;_0x7e0424[_0x45d447(0x276)](_0x53f089=>{const _0x47d5c7=_0x45d447;this[_0x47d5c7(0x1d8)][_0x47d5c7(0x202)]({'unitId':_0x53f089[_0x47d5c7(0x29e)],'subUnitId':_0x53f089['subUnitId'],'shapeId':_0x53f089[_0x47d5c7(0x344)]}),this[_0x47d5c7(0x215)][_0x47d5c7(0x2e6)](this[_0x47d5c7(0x249)](_0x53f089['unitId'],_0x53f089[_0x47d5c7(0x23b)],_0x53f089['drawingId']));});}));}[_0x16bf5e(0x184)](_0x18888f,_0x38acf1){const _0x51410a=_0x16bf5e;let {transform:_0x52e494,drawingType:_0x2e74a3,srcRect:_0x19a8a3,prstGeom:_0x22d41f,groupId:_0x4b4718,unitId:_0x1f8441,subUnitId:_0x206216,drawingId:_0xb131a0,isMultiTransform:_0x54feac,transforms:_0x453c6f,hidden:_0x2cc674,selectable:_0x49a275}=_0x18888f;if(_0x2e74a3!==_0x21524c[_0x51410a(0x247)]||!this['_drawingManagerService']['getDrawingVisible']()||_0x52e494==null)return;let _0x248ace=this[_0x51410a(0x154)][_0x51410a(0x205)](),_0x3966dd=_0x54feac&&_0x453c6f?_0x453c6f:[_0x52e494],_0x5f5c52=[];for(let [_0x7342ce,_0x3c25fb]of _0x3966dd[_0x51410a(0x326)]()){let {left:_0x4d0bbd,top:_0x1f4f60,width:_0x17f08e,height:_0x1220f5,angle:_0x34b4c4,flipX:_0x311e6c,flipY:_0x4d1204,skewX:_0x321d56,skewY:_0x5e0312}=_0x3c25fb,_0xce0c44=_0xf14320({'unitId':_0x1f8441,'subUnitId':_0x206216,'drawingId':_0xb131a0},_0x54feac?_0x7342ce:void 0x0),_0xa6d24c=_0x38acf1['getObjectIncludeInGroup'](_0xce0c44);if(_0xa6d24c!=null){let _0x2bac28={'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0};_0xa6d24c instanceof Ri&&this[_0x51410a(0x13a)](_0xa6d24c,_0x2bac28),_0xa6d24c[_0x51410a(0x1b1)]({'left':_0x4d0bbd,'top':_0x1f4f60,'width':_0x17f08e,'height':_0x1220f5,'angle':_0x34b4c4,'flipX':_0x311e6c,'flipY':_0x4d1204,'skewX':_0x321d56,'skewY':_0x5e0312});continue;}let _0x1012d8=this['_drawingManagerService'][_0x51410a(0x201)](_0x1f8441,_0x206216),_0x3db257=_0x1012d8[_0x51410a(0x24c)](_0xb131a0);if(_0x38acf1[_0x51410a(0x289)](_0xce0c44)||!this[_0x51410a(0x154)]['getDrawingVisible']())continue;let _0x1fde8e=this[_0x51410a(0x355)][_0x51410a(0x27c)](_0x1f8441,_0x206216,_0xb131a0);if(!_0x1fde8e)continue;let _0x5337e7=_0x15125c(_0x1fde8e['getShapeType']())?{..._0x2a73fb,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x2a73fb,_0x3f4793=_0x1fde8e['getShapeData']()['formulaBinding'],_0x294775={'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0};_0x3f4793&&this['_shapeFormulaService'][_0x51410a(0x359)](_0x294775,_0x3f4793);let _0x236221=new Ri(_0xce0c44,{..._0x3c25fb,'zIndex':_0x3db257===-0x1?_0x1012d8[_0x51410a(0x116)]-0x1:_0x3db257,'shapeModel':_0x1fde8e,'localeService':this[_0x51410a(0x193)],'shapeId':_0xb131a0,'unitId':_0x1f8441,'subUnitId':_0x206216,'visible':_0x2cc674!==!0x0,'evented':_0x49a275!==!0x1,'formulaPresentation':_0x3f4793?this[_0x51410a(0x1d8)][_0x51410a(0x15f)](_0x294775):void 0x0,'animateFormulaPresentation':(_0x3f4793==null?void 0x0:_0x3f4793[_0x51410a(0x280)])!==!0x1,'transformerConfig':_0x5337e7});if(_0x3f4793){let _0x1dc26f=this[_0x51410a(0x249)](_0x1f8441,_0x206216,_0xb131a0),_0x97e733=this[_0x51410a(0x215)][_0x51410a(0x2f5)](_0x1dc26f)??new Set();_0x97e733[_0x51410a(0x313)](_0x236221),this[_0x51410a(0x215)][_0x51410a(0x342)](_0x1dc26f,_0x97e733);}this['disposeWithMe'](_0x5bca0e(_0x236221['onDblclick$'][_0x51410a(0x1b2)]((_0xe9e830,_0x1cc8c0)=>{const _0x5a212f=_0x51410a;_0x1fde8e[_0x5a212f(0x354)]()||_0x3f4793||(this[_0x5a212f(0x1bf)]['setEditing']({'visible':!0x0,'unitId':_0x1f8441,'subUnitId':_0x206216,'shapeId':_0xb131a0,'shapeKey':_0x236221[_0x5a212f(0x1a9)]}),_0x1cc8c0['stopPropagation']());}))),_0x38acf1[_0x51410a(0x200)](_0x236221,Bi(_0x18888f)),_0x248ace&&_0x38acf1[_0x51410a(0x262)](_0x236221),_0x4b4718&&_0x50ac62({'drawingId':_0x4b4718,'unitId':_0x1f8441,'subUnitId':_0x206216},_0x236221,_0x38acf1,this[_0x51410a(0x154)],_0x54feac?_0x7342ce:void 0x0),_0x22d41f!=null&&_0x236221['setPrstGeom'](_0x22d41f),_0x19a8a3!=null&&_0x236221['setSrcRect'](_0x19a8a3),this[_0x51410a(0x1f4)](_0x236221,_0x1fde8e[_0x51410a(0x18e)]()),_0x5f5c52[_0x51410a(0x1bc)](_0x236221);}return _0x5f5c52;}[_0x16bf5e(0x249)](_0x353e8c,_0x3d2dbd,_0x431b2d){return _0x353e8c+'\x00'+_0x3d2dbd+'\x00'+_0x431b2d;}[_0x16bf5e(0x13a)](_0x5075d0,_0x134883){const _0x33593c=_0x16bf5e;let _0x480d0f=this['_docsShapeService']['getShapeModel'](_0x134883['unitId'],_0x134883[_0x33593c(0x23b)],_0x134883['shapeId']),_0x4887db=_0x480d0f==null?void 0x0:_0x480d0f[_0x33593c(0x18e)]()['formulaBinding'],_0x5310e3=this['_formulaKey'](_0x134883[_0x33593c(0x29e)],_0x134883[_0x33593c(0x23b)],_0x134883['shapeId']);if(_0x4887db){this[_0x33593c(0x1d8)][_0x33593c(0x359)](_0x134883,_0x4887db);let _0x18ac17=this['_formulaShapes']['get'](_0x5310e3)??new Set();_0x18ac17[_0x33593c(0x313)](_0x5075d0),this['_formulaShapes'][_0x33593c(0x342)](_0x5310e3,_0x18ac17);}else{var _0x39d68f;this[_0x33593c(0x1d8)][_0x33593c(0x202)](_0x134883),(_0x39d68f=this[_0x33593c(0x215)][_0x33593c(0x2f5)](_0x5310e3))==null||_0x39d68f['delete'](_0x5075d0);}_0x5075d0[_0x33593c(0x167)](_0x4887db?this['_shapeFormulaService'][_0x33593c(0x15f)](_0x134883):void 0x0,(_0x4887db==null?void 0x0:_0x4887db[_0x33593c(0x280)])!==!0x1);}['refreshShapeFillImage'](_0x2225c4){const _0x15e7d8=_0x16bf5e;let _0x429bf4=_0x2225c4[_0x15e7d8(0x1c7)][_0x15e7d8(0x18e)](),_0x339e71=_0x429bf4[_0x15e7d8(0x2cf)];if(!_0x339e71||_0x339e71['fillType']!==_0x31b6bd[_0x15e7d8(0x2d7)]||!_0x339e71[_0x15e7d8(0x2e9)]){_0x2225c4['setFillImage'](void 0x0);return;}this[_0x15e7d8(0x1f4)](_0x2225c4,_0x429bf4);}[_0x16bf5e(0x1f4)](_0x4a1f49,_0x2e5d8c){const _0x504850=_0x16bf5e;let _0x3efdac=_0x2e5d8c[_0x504850(0x2cf)];if(!_0x3efdac||_0x3efdac['fillType']!==_0x31b6bd[_0x504850(0x2d7)]||!_0x3efdac[_0x504850(0x2e9)])return;let _0x1477a7=_0x3efdac[_0x504850(0x2e9)],_0xd5b6dd=_0x3efdac[_0x504850(0x257)]??_0x33465c['URL'],_0x52e701=this[_0x504850(0x312)]['getImageSourceCache'](_0x1477a7,_0xd5b6dd);if(_0x52e701){_0x4a1f49['setFillImage'](_0x52e701);return;}this[_0x504850(0x277)](_0x4a1f49,_0x1477a7,_0xd5b6dd);}async[_0x16bf5e(0x277)](_0x1f2281,_0x551b50,_0x5974f5){const _0x1d7cde=_0x16bf5e;let _0x5e77c7;try{if(_0x5974f5===_0x33465c['UUID'])_0x5e77c7=await this[_0x1d7cde(0x312)][_0x1d7cde(0x32c)](_0x551b50);else{if(_0x5974f5===_0x33465c['URL'])try{_0x5e77c7=await this[_0x1d7cde(0x28f)][_0x1d7cde(0x32c)](_0x551b50);}catch{_0x5e77c7=_0x551b50;}else _0x5e77c7=_0x551b50;}}catch(_0x55021a){console['error'](_0x1d7cde(0x225),_0x55021a);return;}let _0x53e43f=new window['Image']();_0x53e43f[_0x1d7cde(0x1c2)]=()=>{const _0x2e86c4=_0x1d7cde;this[_0x2e86c4(0x312)][_0x2e86c4(0x2c2)](_0x551b50,_0x5974f5,_0x53e43f),_0x1f2281[_0x2e86c4(0x34a)](_0x53e43f);},_0x53e43f[_0x1d7cde(0x244)]=()=>{const _0x302b90=_0x1d7cde;console[_0x302b90(0x2be)](_0x302b90(0x2dd),_0x551b50);},_0x53e43f[_0x1d7cde(0x233)]=_0x5e77c7;}};$=Y([J(0x0,_0x30fd72),J(0x1,_0x1f7d38(_0xda92b6)),J(0x2,_0x1f7d38(_0x26ba4d)),J(0x3,_0xa426f),J(0x4,_0x545102),J(0x5,_0x1f7d38(Q)),J(0x6,_0x1f7d38(_0x5cd2c6))],$);let Vi=class extends _0x3db69a{constructor(_0x5a8e75,_0x4d617e,_0x4adb58){const _0x565aa5=_0x16bf5e;super(),this[_0x565aa5(0x2b4)]=_0x5a8e75,this[_0x565aa5(0x154)]=_0x4d617e,this[_0x565aa5(0x1c8)]=_0x4adb58,this[_0x565aa5(0x26d)]();}[_0x16bf5e(0x26d)](){const _0x1c4402=_0x16bf5e;this[_0x1c4402(0x371)](this[_0x1c4402(0x2b4)][_0x1c4402(0x366)][_0x1c4402(0x31c)](this[_0x1c4402(0x2b4)][_0x1c4402(0x366)][_0x1c4402(0x22b)]()[_0x1c4402(0x216)],{'handler':(_0x3c4c1b,_0x79cc4,_0x27e164)=>{const _0xd1c57e=_0x1c4402;var _0x522d94;let {unitId:_0x43cf3f,scene:_0x2a6812,skeleton:_0x208072}=_0x79cc4,{pageIndex:_0x5a357b}=_0x79cc4,_0x2449de=(_0x522d94=this[_0xd1c57e(0x154)][_0xd1c57e(0x17b)](_0x43cf3f))==null?void 0x0:_0x522d94[_0x43cf3f],_0x346c4b=Hi(this[_0xd1c57e(0x2b4)],_0x208072,_0x5a357b);return _0x2449de==null||_0x2449de['order'][_0xd1c57e(0x276)](_0x290600=>{const _0x10b293=_0xd1c57e;if(_0x346c4b&&!_0x346c4b['has'](_0x290600))return;let _0x47589d=_0x2449de[_0x10b293(0x2f0)][_0x290600];_0x47589d[_0x10b293(0x2a4)]===_0x21524c[_0x10b293(0x247)]&&!_0x47589d[_0x10b293(0x297)]&&this['_shapeRenderController'][_0x10b293(0x184)](_0x47589d,_0x2a6812);}),_0x27e164(_0x3c4c1b);}}));}};Vi=Y([J(0x0,_0x1f7d38(_0x4ccf7e)),J(0x1,_0x30fd72),J(0x2,_0x1f7d38($))],Vi);function Hi(_0x50b028,_0x2682f1,_0x291310){const _0x11e8c0=_0x16bf5e;var _0x3203de,_0x3fcbbf;let _0x317dd3=_0x50b028;if(_0x317dd3[_0x11e8c0(0x21c)])return _0x317dd3[_0x11e8c0(0x21c)](_0x2682f1,_0x291310);let _0x22699c=_0x2682f1[_0x11e8c0(0x12a)]();if(!_0x22699c||_0x22699c['pages'][_0x11e8c0(0x116)]<=0x1||_0x291310==null)return null;let _0x47fb7c=new Set(),_0x78218c=_0x22699c[_0x11e8c0(0x158)][_0x291310];if(!_0x78218c)return _0x47fb7c;Ui(_0x78218c,_0x47fb7c);let _0x3d8d63=(_0x3203de=_0x22699c[_0x11e8c0(0x268)][_0x11e8c0(0x2f5)](_0x78218c['headerId']))==null?void 0x0:_0x3203de[_0x11e8c0(0x2f5)](_0x78218c[_0x11e8c0(0x20e)]),_0xabc980=(_0x3fcbbf=_0x22699c[_0x11e8c0(0x361)]['get'](_0x78218c[_0x11e8c0(0x19a)]))==null?void 0x0:_0x3fcbbf[_0x11e8c0(0x2f5)](_0x78218c['pageWidth']);return _0x3d8d63&&Ui(_0x3d8d63,_0x47fb7c),_0xabc980&&Ui(_0xabc980,_0x47fb7c),_0x47fb7c;}function Ui(_0x7321a5,_0xad4e53){const _0x1192e5=_0x16bf5e;for(let _0x56ed1e of _0x7321a5[_0x1192e5(0x1a0)][_0x1192e5(0x130)]())_0xad4e53[_0x1192e5(0x313)](_0x56ed1e);for(let _0x2c1b83 of _0x7321a5[_0x1192e5(0x161)][_0x1192e5(0x12f)]())for(let _0x55b546 of _0x2c1b83[_0x1192e5(0x1c5)])for(let _0x325369 of _0x55b546[_0x1192e5(0x256)])Ui(_0x325369,_0xad4e53);}function Wi(_0x485ef3){return _0xaa621a(Nr,{..._0x485ef3,'PickerComponent':_0x240761});}function Gi(){const _0x57d329=_0x16bf5e;let _0xf63ba2=_0x10e4db(_0x26ba4d),_0x3cf25b=Ar(),[_0xee4ae8,_0x51dbd2]=_0x47b1e4(!0x1);return _0x136064(_0x57d329(0x23f),{'className':'univer-grid\x20univer-gap-3','children':[_0xaa621a(_0x298766,{'title':_0xf63ba2['t'](_0x57d329(0x319)),'aria-expanded':_0xee4ae8,'variant':'subtle','trailing':_0xaa621a(_0xee4ae8?_0x4dc00f:_0x4f82a3,{}),'onClick':()=>_0x51dbd2(_0xcdcab0=>!_0xcdcab0)}),_0xee4ae8&&_0xaa621a(_0x240761,{'excludeGroups':[_0x2e5f24[_0x57d329(0x29b)]],'onShapeClick':_0x4dc8c0=>{_0x3cf25b(_0x4dc8c0),_0x51dbd2(!0x1);}})]});}function Ki(_0x5848d2){return _0x5848d2['trim']()||void 0x0;}function qi(_0x2e4e97,_0x1be472,_0x1df99a){const _0x294c5a=_0x16bf5e;var _0x44ffa2,_0x140fe0;return((_0x44ffa2=_0x2e4e97['name'])==null?void 0x0:_0x44ffa2[_0x294c5a(0x131)]())||((_0x140fe0=_0x2e4e97[_0x294c5a(0x21d)])==null?void 0x0:_0x140fe0['trim']())||_0x1df99a['t'](_0x294c5a(0x28b)+_0x363aef(_0x2e4e97[_0x294c5a(0x2a4)]))+'\x20'+(_0x1be472+0x1);}function Ji({PanelComponent:_0x56f529=_0x2a48a3}){const _0x442f21=_0x16bf5e;let _0x1662af=_0x10e4db(_0x26ba4d),_0x55b90e={'title':_0x1662af['t'](_0x442f21(0x199)),'empty':_0x1662af['t'](_0x442f21(0x2b7)),'showAll':_0x1662af['t'](_0x442f21(0x160)),'hideAll':_0x1662af['t'](_0x442f21(0x278)),'lockAll':_0x1662af['t'](_0x442f21(0x22d)),'unlockAll':_0x1662af['t'](_0x442f21(0x275)),'moveForward':_0x1662af['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0x1662af['t'](_0x442f21(0x153)),'close':_0x1662af['t']('drawing-ui.objectListPanel.close'),'show':_0x1662af['t']('drawing-ui.objectListPanel.show'),'hide':_0x1662af['t'](_0x442f21(0x144)),'lock':_0x1662af['t'](_0x442f21(0x364)),'unlock':_0x1662af['t'](_0x442f21(0x1ec)),'lockHint':_0x1662af['t'](_0x442f21(0x27a)),'unlockHint':_0x1662af['t'](_0x442f21(0x287)),'name':_0x1662af['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x1662af['t'](_0x442f21(0x293)),'description':_0x1662af['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x1662af['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0x1662af['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x1662af['t'](_0x442f21(0x146)),'locate':_0x1662af['t'](_0x442f21(0x1e8)),'expand':_0x1662af['t'](_0x442f21(0x1fa)),'collapse':_0x1662af['t'](_0x442f21(0x303)),'dragToReorder':_0x1662af['t'](_0x442f21(0x18b)),'search':_0x1662af['t'](_0x442f21(0x288)),'filterAll':_0x1662af['t'](_0x442f21(0x248)),'filterHidden':_0x1662af['t'](_0x442f21(0x351)),'filterLocked':_0x1662af['t'](_0x442f21(0x274)),'sectionCanvas':_0x1662af['t'](_0x442f21(0x2a5)),'sectionFloating':_0x1662af['t'](_0x442f21(0x156))},_0x20a7cb=_0x10e4db(_0x38aa04),_0x460b87=_0x10e4db(_0x3fa0e3),_0x434db6=_0x10e4db(_0x4d163d),_0x30f79d=_0x10e4db(_0x30fd72),_0x5265b3=_0x10e4db(_0x33251a),[,_0xff7fd3]=_0x5b5614(_0x49e031=>_0x49e031+0x1,0x0),_0x4f80a2=_0x460b87[_0x442f21(0x150)](_0x5a336e[_0x442f21(0x1e2)]),_0x2a83c0=(_0x4f80a2==null?void 0x0:_0x4f80a2[_0x442f21(0x2e3)]())??'',_0x293847=_0x2a83c0,_0x31e905=_0x39adc0(()=>_0x30f79d[_0x442f21(0x149)],_0x30f79d[_0x442f21(0x2b1)](),!0x1,[_0x30f79d]);_0x37fbe0(()=>{const _0x1db217=_0x442f21;let _0x381b1c=_0x20a7cb[_0x1db217(0x188)](()=>_0xff7fd3());return()=>_0x381b1c['dispose']();},[_0x20a7cb]);let _0x41799b=_0x2a83c0?_0x434db6['getDrawingData'](_0x2a83c0,_0x293847):{},_0x22b699=(_0x2a83c0?_0x434db6[_0x442f21(0x201)](_0x2a83c0,_0x293847):[])[_0x442f21(0x210)](_0x590ed1=>_0x41799b[_0x590ed1])['filter'](_0x441f90=>!!_0x441f90)[_0x442f21(0x255)](),_0x37263f=_0x22b699[_0x442f21(0x1b6)]((_0x3516a8,_0x1fe737)=>(_0x3516a8[_0x380920(_0x1fe737['drawingType'])]+=0x1,_0x3516a8),{'canvas':0x0,'floating':0x0}),_0x23ae8a={'canvas':0x0,'floating':0x0},_0x457dde=_0x22b699[_0x442f21(0x210)]((_0x4973a2,_0x41455f)=>{const _0x40b997=_0x442f21;let _0x4267fb=_0x380920(_0x4973a2[_0x40b997(0x2a4)]),_0x3ecdb1=_0x4267fb===_0x2bd9a9,_0x2c6fd1=_0x23ae8a[_0x4267fb]++;return{'id':_0x4973a2[_0x40b997(0x344)],'name':qi(_0x4973a2,_0x41455f,_0x1662af),'description':_0x4973a2[_0x40b997(0x311)],'visible':_0x4973a2[_0x40b997(0x297)]!==!0x0,'selectable':_0x4973a2['selectable']!==!0x1,'sectionId':_0x4267fb,'sectionTitle':_0x3ecdb1?_0x55b90e[_0x40b997(0x356)]:_0x55b90e[_0x40b997(0x1e5)],'capabilities':_0x3ecdb1?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x3ecdb1&&_0x2c6fd1>0x0,'canMoveBackward':!_0x3ecdb1&&_0x2c6fd1<_0x37263f[_0x40b997(0x163)]-0x1,'canReorder':!_0x3ecdb1};}),_0x398f3e=_0x391527(()=>(_0x31e905??[])[_0x442f21(0x2fa)](_0xb0b07b=>_0xb0b07b[_0x442f21(0x29e)]===_0x2a83c0&&_0xb0b07b[_0x442f21(0x23b)]===_0x293847)[_0x442f21(0x210)](_0x42caf0=>_0x42caf0['drawingId']),[_0x31e905,_0x293847,_0x2a83c0]),_0x309b14=_0x398f3e[_0x398f3e[_0x442f21(0x116)]-0x1]??null,_0x18ca19=_0x4b32d1=>_0x434db6[_0x442f21(0x1ce)]({'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x4b32d1})??null,_0x4ed4dc=async _0x2e99a2=>{const _0x12ae7b=_0x442f21;_0x2a83c0&&_0x2e99a2[_0x12ae7b(0x116)]&&await _0x20a7cb[_0x12ae7b(0x232)](_0x2505fd['id'],{'unitId':_0x2a83c0,'patches':_0x2e99a2});},_0x2bdde6=(_0x203cc5,_0x2695f5)=>{const _0x3fcc92=_0x442f21;if(!_0x2a83c0)return;let _0x17e10d=_0x2695f5?_0x398f3e[_0x3fcc92(0x1ea)](_0x203cc5)?_0x398f3e[_0x3fcc92(0x2fa)](_0x4940ea=>_0x4940ea!==_0x203cc5):[..._0x398f3e,_0x203cc5]:[_0x203cc5];_0x20a7cb[_0x3fcc92(0x147)](_0x5b0fd5['id'],_0x17e10d[_0x3fcc92(0x210)](_0x1069c9=>({'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x1069c9})));let _0x2c1f21=_0x17e10d[_0x17e10d[_0x3fcc92(0x116)]-0x1];_0x2c1f21?_0x139fb0(_0x5265b3,{'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingId':_0x2c1f21}):_0x152640(_0x5265b3,_0x2a83c0);},_0x3d118b=async(_0x41ca6d,_0x1c3b90)=>{const _0x3861ff=_0x442f21;await _0x4ed4dc(_0x41ca6d[_0x3861ff(0x210)](_0xcb4b75=>_0x18ca19(_0xcb4b75))[_0x3861ff(0x2fa)](_0x1ce597=>!!_0x1ce597)[_0x3861ff(0x2fa)](_0x7c5997=>_0x7c5997[_0x3861ff(0x297)]!==!0x0!==_0x1c3b90)[_0x3861ff(0x210)](_0x215e73=>({'drawingId':_0x215e73[_0x3861ff(0x344)],'hidden':!_0x1c3b90})));},_0x4851ba=async(_0x32c6c9,_0x17256d)=>{const _0xdbc1f6=_0x442f21;await _0x4ed4dc(_0x32c6c9[_0xdbc1f6(0x210)](_0x4c7725=>_0x18ca19(_0x4c7725))[_0xdbc1f6(0x2fa)](_0x1e833a=>!!_0x1e833a)[_0xdbc1f6(0x2fa)](_0x229299=>_0x229299[_0xdbc1f6(0x1a1)]!==!0x1!==_0x17256d)[_0xdbc1f6(0x210)](_0x4f3eff=>({'drawingId':_0x4f3eff[_0xdbc1f6(0x344)],'selectable':_0x17256d})));},_0xbe252=_0x41fd1e=>{const _0x42b675=_0x442f21;let _0x11213a=_0x18ca19(_0x41fd1e);if(_0x11213a)return _0x4851ba([_0x41fd1e],_0x11213a[_0x42b675(0x1a1)]===!0x1);},_0x1752b6=async(_0x43a6b4,_0x52bbd8)=>{let _0x2eef1d=_0x18ca19(_0x43a6b4),_0x5a0553=Ki(_0x52bbd8);!_0x2eef1d||(_0x2eef1d['name']??void 0x0)===_0x5a0553&&(_0x2eef1d['title']||void 0x0)===_0x5a0553||await _0x4ed4dc([{'drawingId':_0x43a6b4,'name':_0x5a0553,'title':_0x5a0553}]);},_0x3d3d7b=async(_0x21570a,_0x4c51e2)=>{const _0x84200f=_0x442f21;let _0x14c1fb=_0x18ca19(_0x21570a),_0x1cb62e=Ki(_0x4c51e2);_0x14c1fb&&(_0x14c1fb[_0x84200f(0x311)]??void 0x0)!==_0x1cb62e&&await _0x4ed4dc([{'drawingId':_0x21570a,'description':_0x1cb62e}]);},_0x7cb2a9=async(_0x29cbbf,_0x1943e1)=>{const _0x4f2836=_0x442f21;_0x2a83c0&&await _0x20a7cb[_0x4f2836(0x232)](_0x41b423['id'],{'unitId':_0x2a83c0,'subUnitId':_0x293847,'drawingIds':[_0x29cbbf],'arrangeType':_0x1943e1});};return _0x2a83c0?_0xaa621a(_0x56f529,{'labels':_0x55b90e,'renderPermissionAction':_0x4c8fc7=>_0x4f80a2?_0xaa621a(_0x976fdd,{'target':{'unitId':_0x2a83c0,'objectId':_0x3200bc(_0x359abd(_0x4f80a2,_0x4c8fc7['id']),_0x442f21(0x305),_0x4c8fc7['id']),'objectType':_0x4dfd1d[_0x442f21(0x228)]},'name':_0x4c8fc7['name'],'commandId':_0x44c286['id'],'exists':()=>!!_0x18ca19(_0x4c8fc7['id'])},_0x2a83c0+'/'+_0x4c8fc7['id']):null,'items':_0x457dde,'selectedIds':_0x398f3e,'focusedId':_0x309b14,'showHeader':!0x1,'onSelect':_0x2bdde6,'onSetVisible':_0x3d118b,'onSetSelectable':_0x4851ba,'onCommitName':_0x1752b6,'onCommitDescription':_0x3d3d7b,'onMoveForward':async _0x158188=>_0x7cb2a9(_0x158188,_0x10c839[_0x442f21(0x1f2)]),'onMoveBackward':async _0x51ef67=>_0x7cb2a9(_0x51ef67,_0x10c839[_0x442f21(0x2bb)]),'onToggleSelectable':_0xbe252}):_0xaa621a(_0x442f21(0x23f),{'className':_0x442f21(0x36f),'children':_0x55b90e[_0x442f21(0x21d)]});}function Yi(){return _0xaa621a(Ji,{'PanelComponent':_0x2533a6});}let Xi=class{constructor(_0x173c9d){const _0x597b78=_0x16bf5e;this[_0x597b78(0x186)]=_0x173c9d;}['updateShapeFillImage'](_0x2abfc6,_0x2c4980){const _0x4a8e19=_0x16bf5e;let _0x46f424=this[_0x4a8e19(0x186)]['getRenderUnitById'](_0x2abfc6[_0x4a8e19(0x29e)]),_0x3d53d3=_0x46f424==null?void 0x0:_0x46f424['scene'];if(!_0x3d53d3)return;let _0x30cb23=_0xf14320(_0x2abfc6),_0x13c656=_0x3d53d3[_0x4a8e19(0x289)](_0x30cb23);_0x13c656==null||_0x13c656[_0x4a8e19(0x34a)](_0x2c4980);}};Xi=Y([J(0x0,_0x33251a)],Xi);function Zi(){const _0x3671d0=_0x16bf5e;let _0x453aea=_0x10e4db(_0x30fd72),_0x1ffe78=_0x39adc0(()=>_0x453aea['focus$'],_0x453aea[_0x3671d0(0x2b1)](),!0x1,[_0x453aea]);return _0x1ffe78[_0x3671d0(0x116)]===0x0?null:_0xaa621a('div',{'children':_0x136064(_0x3671d0(0x23f),{'className':_0x3671d0(0x2fb),'children':[_0xaa621a(_0x1f2b6b,{'drawings':_0x1ffe78,'hasCropper':!0x1}),_0xaa621a(_0x60b61c,{'drawings':_0x1ffe78}),_0xaa621a(_0x4d45c5,{'drawings':_0x1ffe78})]})});}function Qi(_0x3c6479){let {unitId:_0x596b77,subUnitId:_0x5021c5,shapeId:_0x27207b,PositionComponent:_0x3a01fc=Zi}=_0x3c6479,_0x460c58=_0x10e4db(_0x38aa04),_0x3c7439=_0x10e4db(Xi);return _0xaa621a(_0x5015c8,{..._0x3c6479,'positionEditor':_0xaa621a(_0x3a01fc,{}),'onUpdateShapeData':(_0x55878a,_0x20e6c5)=>{zr(_0x460c58,_0x596b77,_0x5021c5,_0x27207b,_0x55878a,_0x20e6c5);},'onUpdateLineShapeData':(_0x358356,_0x53147b)=>{Br(_0x460c58,_0x596b77,_0x5021c5,_0x27207b,_0x358356,_0x53147b);},'onUpdateShapeFillImage':_0x2dcd2f=>{const _0x1c6f54=_0x5363;_0x3c7439[_0x1c6f54(0x291)]({'unitId':_0x596b77,'subUnitId':_0x5021c5,'drawingId':_0x27207b},_0x2dcd2f);}});}function $i(){const _0x13a69a=_0x16bf5e;let _0x38723a=_0x10e4db(_0x30fd72),_0x3b8a25=_0x39adc0(_0x38723a[_0x13a69a(0x149)],_0x38723a['getFocusDrawings']());return _0x3b8a25[_0x13a69a(0x116)]===0x0?null:_0x136064(_0x13a69a(0x23f),{'className':_0x13a69a(0x16e),'children':[_0xaa621a(_0x1f2b6b,{'drawings':_0x3b8a25,'hasCropper':!0x1}),_0xaa621a(_0x57a820,{'drawings':_0x3b8a25}),_0xaa621a(_0x182904,{'drawings':_0x3b8a25})]});}function ea(_0x3bedcc){return _0xaa621a(_0x5b92b1,{'children':_0xaa621a(Qi,{..._0x3bedcc,'PositionComponent':$i})});}function ta({popup:_0x46381b}){const _0x361903=_0x16bf5e;let _0x43de6a=_0x10e4db(_0x26ba4d),{shapeType:_0x4b3c82,onText:_0x4886a5,onStyle:_0x2ab583,onDelete:_0x3f8fd8}=_0x46381b[_0x361903(0x162)],_0x3bd81b=[{'key':_0x361903(0x36b),'order':0x0,'item':{'id':_0x361903(0x36b),'type':_0x124b8a['BUTTON'],'title':_0x43de6a['t'](_0x361903(0x192)),'disabled$':_0x3fee7b(_0x15125c(_0x4b3c82))}},{'key':'style','order':0x1,'item':{'id':'style','type':_0x124b8a[_0x361903(0x11d)],'title':_0x43de6a['t']('docs-shape-ui.mobile.style')}},{'key':_0x361903(0x2e6),'order':0x2,'item':{'id':'delete','type':_0x124b8a[_0x361903(0x11d)],'title':_0x43de6a['t'](_0x361903(0x212))}}];return _0xaa621a(_0x2eea3a,{'schemas':_0x3bd81b,'presentation':'context-bar','onOptionSelect':async({id:_0x20d86b})=>{const _0x2f17e7=_0x361903;_0x20d86b===_0x2f17e7(0x36b)?await _0x4886a5():_0x20d86b===_0x2f17e7(0x2ed)?await _0x2ab583():_0x20d86b==='delete'&&await _0x3f8fd8();}});}const na=_0x16bf5e(0x129);function ra(_0x4b1ff1,_0x15379e){const _0x43ad30=_0x16bf5e;var _0x5741e6;let _0xa43256=_0x4b1ff1==null||(_0x5741e6=_0x4b1ff1['getSnapshot']()[_0x43ad30(0x1dd)])==null?void 0x0:_0x5741e6[_0x15379e];return _0xa43256?_0xa43256[_0x43ad30(0x304)]===_0x2cf572[_0x43ad30(0x126)]?_0xa43256[_0x43ad30(0x137)]===_0x2fa3f8[_0x43ad30(0x2f6)]?_0x4965c4[_0x43ad30(0x176)]:_0x4965c4[_0x43ad30(0x272)]:_0xa43256[_0x43ad30(0x304)]===_0x2cf572[_0x43ad30(0x2b5)]?_0x4965c4['WRAP_SQUARE']:_0xa43256['layoutType']===_0x2cf572[_0x43ad30(0x28c)]?_0x4965c4['WRAP_TOP_AND_BOTTOM']:_0x4965c4['INLINE']:_0x4965c4[_0x43ad30(0x307)];}function ia(_0x595506){const _0x2323a4=_0x16bf5e;let _0x4d20d1=_0x10e4db(_0x345a12),_0x51d759=_0x39adc0(()=>_0x4d20d1[_0x2323a4(0x2ee)],_0x4d20d1[_0x2323a4(0x339)](),!0x1,[_0x4d20d1]),_0x3855f6=_0x595506[_0x2323a4(0x113)][_0x2323a4(0x162)];return _0x51d759?_0xaa621a(aa,{..._0x3855f6,'canvasElement':_0x595506[_0x2323a4(0x113)][_0x2323a4(0x2e0)]}):null;}function aa(_0x25dc7a){const _0x459e3e=_0x16bf5e;let _0x56ff02=_0x10e4db(_0x38aa04),_0x547d7e=_0x10e4db(_0x26ba4d),_0xb43d80=_0x10e4db(_0xda92b6),_0x16f1c9=_0x10e4db(_0x3fa0e3),{unitId:_0x2353f1,subUnitId:_0x4473a8,drawingId:_0x2422dc,shapeType:_0x1fabbb}=_0x25dc7a,[_0x1b0813,_0x6306db]=_0x47b1e4(_0x25dc7a[_0x459e3e(0x2f2)]),_0x36334b=_0x16f1c9[_0x459e3e(0x258)](_0x2353f1,_0x5a336e[_0x459e3e(0x1e2)])??void 0x0,[_0x39cd4c,_0x18fac9]=_0x47b1e4(()=>ra(_0x36334b,_0x2422dc)),_0x4d92b4=_0x391527(()=>_0x2f5a49(_0x1b0813),[_0x1b0813]),_0x2b60fc=_0x391527(()=>_0x58243d(_0x1b0813),[_0x1b0813]);_0x37fbe0(()=>{const _0x1faaad=_0x459e3e;let _0x272715=_0x56ff02[_0x1faaad(0x188)](_0x2dd9ac=>{const _0x5402fd=_0x1faaad;if(_0x2dd9ac['id']!==_0x135998['id'])return;let _0x4fd794=_0xb43d80[_0x5402fd(0x177)](_0x2353f1,_0x4473a8,_0x2422dc);_0x4fd794&&_0x6306db(_0x4fd794);});return()=>_0x272715[_0x1faaad(0x1ca)]();},[_0x56ff02,_0xb43d80,_0x2422dc,_0x4473a8,_0x2353f1]);let _0x50892c=_0x6716a3=>{_0x6306db(_0x214273=>({..._0x214273,..._0x6716a3}));},_0x3a1fe0=_0x2bb260=>{let _0x2ddff0=_0x411156(_0x1b0813,_0x2bb260);zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,{'oldShapeData':{'shapeText':_0x1b0813['shapeText']}},_0x2ddff0),_0x50892c(_0x2ddff0);},_0x1dd184=_0x2cc5df=>{const _0x3a1417=_0x459e3e;_0x18fac9(_0x2cc5df),_0x56ff02[_0x3a1417(0x232)](_0x4b8558['id'],{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawings':[{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc}],'wrappingStyle':_0x2cc5df});},_0x268ed4=_0xfc437f({'hostType':_0x5a336e[_0x459e3e(0x1e2)],'unitId':_0x2353f1,'subUnitId':_0x4473a8,'shapeId':_0x2422dc,'shapeData':_0x1b0813,'onUpdateBinding':_0x47c258=>{let _0x55c93f={'formulaBinding':_0x47c258};zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,{'oldShapeData':{'formulaBinding':_0x1b0813['formulaBinding']}},_0x55c93f),_0x50892c(_0x55c93f);}}),_0x5c9d4c=[{'label':_0x547d7e['t'](_0x459e3e(0x16c)),'value':_0x4965c4[_0x459e3e(0x307)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t'](_0x459e3e(0x338)),'value':_0x4965c4[_0x459e3e(0x2b5)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t']('docs-shape-ui.textWrap.topAndBottom'),'value':_0x4965c4[_0x459e3e(0x28c)],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t'](_0x459e3e(0x32f)),'value':_0x4965c4['BEHIND_TEXT'],'icon':_0xaa621a(_0x103936,{})},{'label':_0x547d7e['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4965c4[_0x459e3e(0x272)],'icon':_0xaa621a(_0x103936,{})}];return _0x136064(_0x1da262,{'children':[_0xaa621a(_0x5c383f,{'canvasElement':_0x25dc7a[_0x459e3e(0x2e0)],'shapeData':_0x1b0813,'shapeType':_0x1fabbb,'textStyle':{'ff':_0x4c92e4[_0x459e3e(0x2d1)][_0x459e3e(0x273)],'fs':_0x4c92e4['shapeText'][_0x459e3e(0x1d0)],'cl':{'rgb':_0x4c92e4['shapeText'][_0x459e3e(0x114)]},..._0x4d92b4},'textModel':_0x2b60fc?{'ha':_0x2b60fc['ha']??_0x165288[_0x459e3e(0x13b)],'va':_0x2b60fc['va']??_0xf861a6[_0x459e3e(0x174)]}:null,'wrappingStyle':_0x39cd4c,'wrappingStyleOptions':_0x5c9d4c,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c92e4[_0x459e3e(0x2cf)],'defaultGradientEndColor':_0x4c92e4[_0x459e3e(0x2ec)],'defaultStrokeColor':_0x4c92e4['stroke'],'extensionGroups':_0x268ed4[_0x459e3e(0x25c)],'floatingObjectToolbarPosition':_0x1919f0['DOC'],'onUpdateShapeData':(_0x50cb18,_0x30c663)=>{zr(_0x56ff02,_0x2353f1,_0x4473a8,_0x2422dc,_0x50cb18,_0x30c663),_0x30c663&&_0x50892c(_0x30c663);},'onUpdateText':_0x3a1fe0,'onUpdateWrappingStyle':_0x18f185=>_0x1dd184(_0x18f185),'onOpenPanel':()=>{const _0x1471d5=_0x459e3e;_0x56ff02[_0x1471d5(0x232)](q['id'],{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc});},'onDelete':()=>{const _0x1c44d7=_0x459e3e;_0x56ff02[_0x1c44d7(0x232)](_0x1d5a93['id'],{'unitId':_0x2353f1,'drawings':[{'unitId':_0x2353f1,'subUnitId':_0x4473a8,'drawingId':_0x2422dc}]});}}),_0x268ed4[_0x459e3e(0x12b)]]});}function oa({variant:_0x3451f1,extend:_0x20f07e,..._0x35b44b}){const _0x37ede3=_0x16bf5e;let _0x10bb49=_0xaa621a(_0x37ede3(0x2a9),{'x':'7','y':_0x37ede3(0x11c),'width':'6','height':'9','rx':'1','fill':_0x37ede3(0x279),'fillOpacity':_0x37ede3(0x352),'stroke':_0x37ede3(0x279),'strokeWidth':'1.2'});return _0x136064(_0x37ede3(0x22f),{'aria-hidden':_0x37ede3(0x1b5),'fill':'none','height':_0x37ede3(0x2dc),'viewBox':'0\x200\x2020\x2020','width':_0x37ede3(0x2dc),..._0x35b44b,'children':[_0x3451f1===_0x37ede3(0x2b0)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':'M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','stroke':'currentColor','strokeLinecap':'round','strokeWidth':'1.2'}),_0xaa621a(_0x37ede3(0x2a9),{'x':'8','y':'7','width':'4','height':'6','rx':_0x37ede3(0x2c4),'fill':'currentColor','fillOpacity':_0x37ede3(0x352),'stroke':'currentColor','strokeWidth':_0x37ede3(0x2c0)})]}),_0x3451f1===_0x37ede3(0x294)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':_0x37ede3(0x17f),'stroke':_0x37ede3(0x279),'strokeLinecap':_0x37ede3(0x2eb),'strokeWidth':_0x37ede3(0x2c0)}),_0x10bb49]}),_0x3451f1===_0x37ede3(0x1f9)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':'M2\x203h16M2\x2017h16','stroke':_0x37ede3(0x279),'strokeLinecap':'round','strokeWidth':_0x37ede3(0x2c0)}),_0x10bb49]}),_0x3451f1==='behind'&&_0x136064(_0x1da262,{'children':[_0x10bb49,_0xaa621a('path',{'d':_0x37ede3(0x1ad),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x37ede3(0x2c0)})]}),_0x3451f1===_0x37ede3(0x240)&&_0x136064(_0x1da262,{'children':[_0xaa621a(_0x37ede3(0x1ee),{'d':_0x37ede3(0x1ad),'stroke':_0x37ede3(0x279),'strokeLinecap':_0x37ede3(0x2eb),'strokeWidth':_0x37ede3(0x2c0)}),_0xaa621a(_0x37ede3(0x2a9),{'x':'7','y':_0x37ede3(0x11c),'width':'6','height':'9','rx':'1','fill':_0x37ede3(0x279)})]})]});}const sa=_0x4f59c3=>_0x2f8786=>_0xaa621a(oa,{..._0x2f8786,'variant':_0x4f59c3}),ca={'DocsShapeWrapInlineIcon':sa(_0x16bf5e(0x2b0)),'DocsShapeWrapSquareIcon':sa(_0x16bf5e(0x294)),'DocsShapeWrapTopBottomIcon':sa('top-bottom'),'DocsShapeWrapBehindTextIcon':sa(_0x16bf5e(0x252)),'DocsShapeWrapInFrontOfTextIcon':sa(_0x16bf5e(0x240))},la=_0x11b938(()=>{const _0x141e18=_0x16bf5e;let _0x59f61c=_0x10e4db(Q),_0x361771=_0x10e4db(_0xda92b6),_0xfed423=_0x10e4db(_0x30fd72),_0x155de4=_0x10e4db(_0x38aa04),_0x29bd87=_0x391527(()=>({'getShapeModel':(_0x15c703,_0x366790,_0x5b44b4)=>_0x361771[_0x141e18(0x27c)](_0x15c703,_0x366790,_0x5b44b4),'getShapeData':(_0x37e69d,_0x594fdd,_0x386ef8)=>_0x361771['getShapeDataById'](_0x37e69d,_0x594fdd,_0x386ef8),'getDrawingTransform':(_0x1d47a6,_0x19ca68,_0x261109)=>{const _0x8f19a=_0x141e18;let _0x5697f9=_0xfed423[_0x8f19a(0x1ce)]({'unitId':_0x1d47a6,'subUnitId':_0x19ca68,'drawingId':_0x261109});return _0x5697f9==null?void 0x0:_0x5697f9['transform'];},'updateShapeText':({unitId:_0x2de29a,shapeId:_0x178ca6,shapeText:_0x52d16c,oldShapeText:_0x54fb83})=>{const _0x2c09a2=_0x141e18;_0x155de4[_0x2c09a2(0x232)](_0x9d3fcb['id'],{'unitId':_0x2de29a,'shapeId':_0x178ca6,'shapeData':{'shapeText':_0x52d16c},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x54fb83}}});},'updateHostSize':({unitId:_0x416101,subUnitId:_0x364948,shapeId:_0x2154d4,width:_0x5429f6,height:_0x57881e})=>{const _0x132abb=_0x141e18;_0x155de4[_0x132abb(0x232)](_0xeab56b['id'],{'unitId':_0x416101,'subUnitId':_0x364948,'drawings':[{'drawingId':_0x2154d4,'key':_0x132abb(0x14a),'value':{'width':_0x5429f6,'height':_0x57881e}}]});},'allowHostSizeShrink':({unitId:_0x5187d7,subUnitId:_0x3f6472,shapeId:_0x3b1156})=>_0x1cb49f(_0x361771[_0x141e18(0x177)](_0x5187d7,_0x3f6472,_0x3b1156))}),[_0x155de4,_0x361771,_0xfed423]),_0x3bb14c=_0x391527(()=>({'viewportKeys':{'main':_0x1718ab[_0x141e18(0x31d)]}}),[]);return _0xaa621a(_0x43cf54,{'adapter':_0x29bd87,'editingService':_0x59f61c,'editorUnitId':br,'positionOptions':_0x3bb14c});});let ua=class extends _0x3db69a{constructor(_0x359f11,_0x106b8f){const _0x4d899a=_0x16bf5e;super(),this[_0x4d899a(0x36a)]=_0x359f11,this[_0x4d899a(0x13c)]=_0x106b8f,this[_0x4d899a(0x190)](),this[_0x4d899a(0x151)]();}[_0x16bf5e(0x190)](){const _0x1f7c9f=_0x16bf5e;this[_0x1f7c9f(0x13c)]['has'](_0x1f7c9f(0x1f3))||this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)]({'ObjectLayersIcon':_0xe4ac2})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x123))||this[_0x1f7c9f(0x371)](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'BottomIcon':_0x2ea734})),this['_iconManager']['has'](_0x1f7c9f(0x295))||this['disposeWithMe'](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'MoveDownIcon':_0x29b216})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x217))||this[_0x1f7c9f(0x371)](this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x359)]({'MoveUpIcon':_0x8804f5})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)](_0x1f7c9f(0x31f))||this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)]({'ShapeFormatSettingIcon':_0x197da5})),this[_0x1f7c9f(0x13c)][_0x1f7c9f(0x219)]('TopmostIcon')||this['disposeWithMe'](this[_0x1f7c9f(0x13c)]['register']({'TopmostIcon':_0x1bc7b9})),this[_0x1f7c9f(0x371)](this['_iconManager'][_0x1f7c9f(0x359)](ca));}[_0x16bf5e(0x151)](){const _0x257bdb=_0x16bf5e;this['disposeWithMe'](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](K,ea)),this[_0x257bdb(0x2bd)](),this['_registerFloatingToolbar'](),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Hr,Jr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)]['register'](Vr,Yr)),this['disposeWithMe'](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](Ur,Xr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](Wr,Zr)),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Gr,Qr)),this[_0x257bdb(0x371)](this[_0x257bdb(0x36a)][_0x257bdb(0x359)](xr,_0x42d58e)),this[_0x257bdb(0x1ac)](),this[_0x257bdb(0x36a)][_0x257bdb(0x2f5)](_0xd24491)||this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](_0xd24491,Mr)),this[_0x257bdb(0x371)](this['_componentManager'][_0x257bdb(0x359)](Sr,la));}[_0x16bf5e(0x2bd)](){const _0xad4092=_0x16bf5e;this['disposeWithMe'](this[_0xad4092(0x36a)][_0xad4092(0x359)](yr,Yi));}[_0x16bf5e(0x2ae)](){const _0x552bbd=_0x16bf5e;this['disposeWithMe'](this[_0x552bbd(0x36a)][_0x552bbd(0x359)](na,ta));}['_registerPickers'](){const _0x92de7d=_0x16bf5e;this['disposeWithMe'](this['_componentManager']['register'](Dr,Wi)),this[_0x92de7d(0x371)](this[_0x92de7d(0x36a)]['register'](Or,Gi));}};ua=Y([J(0x0,_0x1f7d38(_0x6a795a)),J(0x1,_0x1f7d38(_0x3df9c1))],ua);let da=class extends _0x3db69a{constructor(_0xe365f4,_0x34d1ba,_0x1506b7,_0x4a58e6,_0x382e70,_0x1e76ac,_0x3154ef,_0x4adb1a,_0x5e1295,_0xae7249,_0x46657a,_0x23375c,_0x108dd0){const _0x43e49f=_0x16bf5e;super(),this[_0x43e49f(0x1d1)]=_0xe365f4,this[_0x43e49f(0x1fc)]=_0x34d1ba,this[_0x43e49f(0x33c)]=_0x1506b7,this[_0x43e49f(0x355)]=_0x4a58e6,this['_localeService']=_0x382e70,this['_commandService']=_0x1e76ac,this[_0x43e49f(0x154)]=_0x3154ef,this[_0x43e49f(0x17c)]=_0x4adb1a,this[_0x43e49f(0x186)]=_0x5e1295,this[_0x43e49f(0x165)]=_0xae7249,this[_0x43e49f(0x1bf)]=_0x46657a,this['_permissionService']=_0x23375c,this['_mobileEditorService']=_0x108dd0,Z(this,_0x43e49f(0x1c6),null),Z(this,'_activeShapeInfo',null),Z(this,_0x43e49f(0x141),!0x1),Z(this,_0x43e49f(0x30f),0x0),Z(this,'_disposePopupsByUnit',new Map()),Z(this,_0x43e49f(0x18a),new Map()),this[_0x43e49f(0x2d2)](),this[_0x43e49f(0x371)](this[_0x43e49f(0x1d1)][_0x43e49f(0x286)](_0x5a336e['UNIVER_DOC'])[_0x43e49f(0x1e1)](_0xc80d1c=>{const _0x1058c4=_0x43e49f;if(!_0xc80d1c){var _0x10e83f;(_0x10e83f=this[_0x1058c4(0x1c6)])==null||_0x10e83f[_0x1058c4(0x1ca)]();}})),this[_0x43e49f(0x20f)](),this[_0x43e49f(0x371)](_0xeca305(this[_0x43e49f(0x186)],_0x5a336e[_0x43e49f(0x1e2)],_0x3f52ad=>this[_0x43e49f(0x333)](_0x3f52ad))),this[_0x43e49f(0x371)](this[_0x43e49f(0x1bf)][_0x43e49f(0x2b9)]['subscribe'](_0x4474a5=>{const _0x5e4bc2=_0x43e49f;_0x4474a5&&this[_0x5e4bc2(0x19b)](void 0x0,!0x0);})),this['disposeWithMe'](this['_permissionService'][_0x43e49f(0x185)][_0x43e49f(0x1e1)](()=>{const _0x374130=_0x43e49f;this[_0x374130(0x154)]['getFocusDrawings']()[_0x374130(0x2e2)](_0x137921=>_0x137921[_0x374130(0x2a4)]===_0x21524c['DRAWING_SHAPE']&&this[_0x374130(0x1d1)]['getUnitType'](_0x137921[_0x374130(0x29e)])===_0x5a336e['UNIVER_DOC']&&!this[_0x374130(0x173)](_0x137921[_0x374130(0x29e)],_0x137921[_0x374130(0x344)]))&&(this[_0x374130(0x19b)](void 0x0,!0x0),this[_0x374130(0x119)]());}));}['getShapePopupMenus'](_0x583136,_0x4b752e,_0x4797d1,_0xf32c53){const _0x32c336=_0x16bf5e;return[{'label':_0x32c336(0x263),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1},'disable':_0xf32c53===_0x21524c[_0x32c336(0x196)]},{'label':_0x32c336(0x24d),'index':0x1,'commandId':_0x1d5a93['id'],'commandParams':{'unitId':_0x583136,'drawings':[{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1}]},'disable':!0x1},{'label':_0x32c336(0x308),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x583136,'subUnitId':_0x4b752e,'drawingId':_0x4797d1},'disable':!0x1}];}['_initMenu'](){const _0x24f1ec=_0x16bf5e;this['_menuManagerService'][_0x24f1ec(0x243)](Di);}[_0x16bf5e(0x30b)](_0x43eedf,_0x5d1153,_0x34881d){const _0x40e3db=_0x16bf5e;let _0x2439fc=this[_0x40e3db(0x355)][_0x40e3db(0x253)](_0x43eedf,_0x5d1153,_0x34881d),_0x31bbb5=this[_0x40e3db(0x355)]['getShapeDataById'](_0x43eedf,_0x5d1153,_0x34881d);return _0x2439fc===void 0x0||_0x31bbb5===void 0x0?null:{'shapeData':_0x31bbb5,'shapeId':_0x34881d,'shapeType':_0x2439fc,'unitId':_0x43eedf,'subUnitId':_0x5d1153,'version':this[_0x40e3db(0x30f)],'disableShapeOption':!0x1};}[_0x16bf5e(0x19b)](_0xaae270,_0x4471bd=!0x1){const _0x173ebd=_0x16bf5e;if(_0xaae270==null){[...this[_0x173ebd(0x330)]['keys']()][_0x173ebd(0x276)](_0x1ad939=>this[_0x173ebd(0x19b)](_0x1ad939,_0x4471bd));return;}let _0x1ba500=this[_0x173ebd(0x330)][_0x173ebd(0x2f5)](_0xaae270);if(_0x1ba500){for(let _0x52fc89=_0x1ba500[_0x173ebd(0x116)]-0x1;_0x52fc89>=0x0;--_0x52fc89){let _0x316a4d=_0x1ba500[_0x52fc89];(_0x4471bd||_0x316a4d['canDispose']())&&(_0x316a4d[_0x173ebd(0x1ca)](),_0x1ba500[_0x173ebd(0x13e)](_0x52fc89,0x1));}_0x1ba500[_0x173ebd(0x116)]===0x0&&(this[_0x173ebd(0x330)][_0x173ebd(0x2e6)](_0xaae270),this['_popupTargetKeys'][_0x173ebd(0x2e6)](_0xaae270));}}[_0x16bf5e(0x24a)](_0x51f4fc){const _0x394c7d=_0x16bf5e;let _0x3d7ce2=this['_disposePopupsByUnit']['get'](_0x51f4fc);if(_0x3d7ce2)return _0x3d7ce2;let _0x40022=[];return this[_0x394c7d(0x330)][_0x394c7d(0x342)](_0x51f4fc,_0x40022),_0x40022;}[_0x16bf5e(0x333)](_0x216a4e){const _0x2a7ff7=_0x16bf5e;var _0x12c1e1;let _0xbfcb1a=new _0x45b9fb(),_0x2a15a1=(_0x12c1e1=this[_0x2a7ff7(0x186)][_0x2a7ff7(0x223)](_0x5a336e['UNIVER_DOC'])[_0x2a7ff7(0x2de)](_0x17f623=>_0x17f623['scene'][_0x2a7ff7(0x1fd)]()===_0x216a4e))==null?void 0x0:_0x12c1e1[_0x2a7ff7(0x29e)];return _0x2a15a1?(_0xbfcb1a['add'](_0x216a4e[_0x2a7ff7(0x1a2)][_0x2a7ff7(0x1e1)](()=>this[_0x2a7ff7(0x1d6)](_0x216a4e,_0x2a15a1))),_0xbfcb1a[_0x2a7ff7(0x313)](_0x216a4e[_0x2a7ff7(0x169)]['subscribe'](()=>{this['_clearPopups'](_0x2a15a1),queueMicrotask(()=>{const _0x38d129=_0x5363;_0x216a4e[_0x38d129(0x264)]()[_0x38d129(0x14a)]>0x0||(this[_0x38d129(0x165)][_0x38d129(0x145)](_0x3a52be,!0x1),this[_0x38d129(0x154)][_0x38d129(0x30c)](null));});})),_0xbfcb1a[_0x2a7ff7(0x313)](_0x216a4e['changing$'][_0x2a7ff7(0x1e1)](()=>{const _0x35b638=_0x2a7ff7;this[_0x35b638(0x19b)](_0x2a15a1,!0x0);})),_0xbfcb1a):_0xbfcb1a;}[_0x16bf5e(0x1d6)](_0x228b4f,_0x1ca2a3){const _0x40d6ef=_0x16bf5e;let _0x2f5b8f=_0x228b4f[_0x40d6ef(0x264)]();if(this['_isOpenedShapeEditPanel']){this[_0x40d6ef(0x19b)](_0x1ca2a3,!0x0);return;}if(_0x2f5b8f[_0x40d6ef(0x14a)]>0x1){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let _0x316a54=_0x2f5b8f[_0x40d6ef(0x12f)]()[_0x40d6ef(0x2c7)]()[_0x40d6ef(0x171)];if(!_0x316a54){this['_clearPopups'](_0x1ca2a3);return;}let _0x4123fd=this[_0x40d6ef(0x154)][_0x40d6ef(0x26c)](_0x316a54['oKey']);if(!_0x4123fd||_0x4123fd['drawingType']!==_0x21524c['DRAWING_SHAPE']){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let {unitId:_0x462162,subUnitId:_0x4ba0c0,drawingId:_0x4e118b}=_0x4123fd;if(!this[_0x40d6ef(0x173)](_0x462162,_0x4e118b)){this[_0x40d6ef(0x19b)](_0x1ca2a3,!0x0);return;}let _0x1ec55b=this[_0x40d6ef(0x30b)](_0x462162,_0x4ba0c0,_0x4e118b);if(!_0x1ec55b){this[_0x40d6ef(0x19b)](_0x1ca2a3);return;}let _0x506402=this['_disposePopupsByUnit'][_0x40d6ef(0x2f5)](_0x1ca2a3),_0x758628=_0x462162+':'+_0x4ba0c0+':'+_0x4e118b;if(this['_popupTargetKeys'][_0x40d6ef(0x2f5)](_0x1ca2a3)===_0x758628&&_0x506402!=null&&_0x506402[_0x40d6ef(0x116)])return;this[_0x40d6ef(0x19b)](_0x1ca2a3);let _0x3e735c=this['_renderManagerService'][_0x40d6ef(0x260)](_0x462162),_0x3256a6=((_0x3e735c==null?void 0x0:_0x3e735c[_0x40d6ef(0x329)])===!0x1?_0x3e735c['with'](_0x42fe30):this['_docCanvasPopManagerService'])[_0x40d6ef(0x143)](_0x316a54,this[_0x40d6ef(0x30e)](_0x1ec55b,()=>this['_clearPopups'](_0x1ca2a3,!0x0)),_0x462162);this[_0x40d6ef(0x371)](_0x3256a6),this[_0x40d6ef(0x24a)](_0x1ca2a3)[_0x40d6ef(0x1bc)](_0x3256a6),this[_0x40d6ef(0x18a)][_0x40d6ef(0x342)](_0x1ca2a3,_0x758628),this[_0x40d6ef(0x154)]['getFocusDrawings']()[_0x40d6ef(0x2e2)](_0x54f562=>_0x54f562[_0x40d6ef(0x29e)]===_0x462162&&_0x54f562[_0x40d6ef(0x23b)]===_0x4ba0c0&&_0x54f562[_0x40d6ef(0x344)]===_0x4e118b)||this[_0x40d6ef(0x154)]['focusDrawing']([{'unitId':_0x462162,'subUnitId':_0x4ba0c0,'drawingId':_0x4e118b}]);}['_getShapePopup'](_0x5ea788,_0x5ba322){const _0xd0a056=_0x16bf5e;let {unitId:_0x2d2c0c,subUnitId:_0x56cbd4,shapeId:_0x488d62}=_0x5ea788,_0x4ca528={'hostType':_0x5a336e[_0xd0a056(0x1e2)],'unitId':_0x2d2c0c,'subUnitId':_0x56cbd4,'shapeId':_0x488d62};return{'componentKey':na,'direction':_0xd0a056(0x2d8),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x5ea788[_0xd0a056(0x324)],'onText':()=>{const _0x53add4=_0xd0a056;_0x5ba322(),this[_0x53add4(0x211)]['open'](_0x53add4(0x36b),_0x4ca528);},'onStyle':()=>{const _0x403eb7=_0xd0a056;_0x5ba322(),this[_0x403eb7(0x211)]['open']('style',_0x4ca528);},'onDelete':()=>this[_0xd0a056(0x180)]['executeCommand'](_0x1d5a93['id'],{'unitId':_0x2d2c0c,'drawings':[{'unitId':_0x2d2c0c,'subUnitId':_0x56cbd4,'drawingId':_0x488d62}]})}};}[_0x16bf5e(0x173)](_0x3e851f,_0x4692e8){const _0x51de01=_0x16bf5e;let _0x2243e7=this[_0x51de01(0x1d1)]['getUnit'](_0x3e851f,_0x5a336e[_0x51de01(0x1e2)]);if(!_0x2243e7)return!0x1;let _0x536f20=_0x359abd(_0x2243e7,_0x4692e8);return _0x1aefa3(this['_permissionService'],_0x3e851f,[..._0x2f3e76(_0x2243e7,_0x536f20,_0x51de01(0x305),_0x4692e8),_0x3200bc(_0x536f20,_0x51de01(0x305),_0x4692e8)]);}[_0x16bf5e(0x20f)](){const _0x165413=_0x16bf5e;this[_0x165413(0x371)](this['_commandService'][_0x165413(0x188)](_0x4e7849=>{const _0x52f057=_0x165413;if(_0x4e7849['id']===q['id']){let {unitId:_0x38249d,subUnitId:_0x53f849,drawingId:_0x4bc0f4}=_0x4e7849['params'];this['_shapeEditPanelVersion']+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x38249d,_0x53f849,_0x4bc0f4),this[_0x52f057(0x19b)](void 0x0,!0x0),this[_0x52f057(0x1cc)]();}if(_0x4e7849['id']===Ai['id']&&(this[_0x52f057(0x1a8)]=null,this[_0x52f057(0x119)]()),_0x4e7849['id']===_0x135998['id']){var _0xf1e590;let {unitId:_0x33f96f,shapeId:_0x34eecf}=_0x4e7849['params'];if(((_0xf1e590=this[_0x52f057(0x1a8)])==null?void 0x0:_0xf1e590[_0x52f057(0x226)])===_0x34eecf){let _0xed4162=this[_0x52f057(0x30b)](_0x33f96f,this['_activeShapeInfo'][_0x52f057(0x23b)],_0x34eecf);_0xed4162&&(this[_0x52f057(0x30f)]+=0x1,_0xed4162[_0x52f057(0x2a8)]=this[_0x52f057(0x30f)],this[_0x52f057(0x1a8)]=_0xed4162,this[_0x52f057(0x141)]&&this['_openShapeEditPanel']());}}})),this[_0x165413(0x371)](this[_0x165413(0x154)][_0x165413(0x149)][_0x165413(0x1e1)](_0x406a39=>{const _0x25cf60=_0x165413;if(!this['_isOpenedShapeEditPanel'])return;if(_0x406a39[_0x25cf60(0x116)]===0x0){this[_0x25cf60(0x1a8)]=null,this['_closeShapeEditPanel']();return;}if(_0x406a39[_0x25cf60(0x116)]===0x1&&_0x406a39[0x0]['drawingType']===_0x21524c[_0x25cf60(0x247)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x25cf60(0x1a8)]=this[_0x25cf60(0x30b)](_0x406a39[0x0]['unitId'],_0x406a39[0x0][_0x25cf60(0x23b)],_0x406a39[0x0]['drawingId']),this[_0x25cf60(0x1a8)])){this[_0x25cf60(0x1cc)]();return;}let _0x12139e=_0x406a39['filter'](_0x341f75=>_0x341f75[_0x25cf60(0x2a4)]===_0x21524c['DRAWING_SHAPE']);if(this[_0x25cf60(0x30f)]+=0x1,this[_0x25cf60(0x1a8)]=this['_getShapeInfo'](_0x406a39[0x0][_0x25cf60(0x29e)],_0x406a39[0x0][_0x25cf60(0x23b)],_0x406a39[0x0][_0x25cf60(0x344)]),this[_0x25cf60(0x1a8)]&&_0x406a39[_0x25cf60(0x116)]>0x1&&_0x12139e[_0x25cf60(0x116)]===_0x406a39[_0x25cf60(0x116)]){this[_0x25cf60(0x1cc)]();return;}if(this['_activeShapeInfo']&&_0x12139e[_0x25cf60(0x116)]!==_0x406a39[_0x25cf60(0x116)]){this[_0x25cf60(0x1a8)]['disableShapeOption']=!0x0,this[_0x25cf60(0x1cc)]();return;}this['_closeShapeEditPanel']();}));}[_0x16bf5e(0x1cc)](){const _0x2d54fc=_0x16bf5e;this[_0x2d54fc(0x1a8)]&&(this[_0x2d54fc(0x1c6)]=this[_0x2d54fc(0x1fc)]['open']({'id':K,'header':{'title':this[_0x2d54fc(0x193)]['t'](_0x2d54fc(0x365))},'width':0x184,'children':{'label':K,...this['_activeShapeInfo']},'onClose':()=>{const _0x1c88f3=_0x2d54fc;this['_drawingManagerService']['focusDrawing'](null),this[_0x1c88f3(0x165)][_0x1c88f3(0x145)](_0x3a52be,!0x1),this[_0x1c88f3(0x1c6)]=null;}}),this[_0x2d54fc(0x141)]=!0x0);}[_0x16bf5e(0x119)](){const _0x4f2b3a=_0x16bf5e;this[_0x4f2b3a(0x141)]=!0x1,this[_0x4f2b3a(0x1fc)]['close'](K),this[_0x4f2b3a(0x1c6)]=null,this[_0x4f2b3a(0x165)][_0x4f2b3a(0x145)](_0x3a52be,!0x1),this['_drawingManagerService'][_0x4f2b3a(0x30c)](null);}};da=Y([J(0x0,_0x3fa0e3),J(0x1,_0x1f7d38(_0x2e36b7)),J(0x2,_0x358623),J(0x3,_0x1f7d38(_0xda92b6)),J(0x4,_0x1f7d38(_0x26ba4d)),J(0x5,_0x38aa04),J(0x6,_0x30fd72),J(0x7,_0x1f7d38(_0x42fe30)),J(0x8,_0x33251a),J(0x9,_0x1be7b7),J(0xa,_0x1f7d38(Q)),J(0xb,_0x137531),J(0xc,_0x1f7d38(_0x38f3b5))],da);const fa='docs-shape-contextual-ribbon';let pa=class extends _0x3db69a{constructor(_0x4a6843,_0x3c95b4,_0x3e3b66,_0x2a8bef,_0x2abd82,_0x3c068f){const _0x10c72b=_0x16bf5e;super(),this[_0x10c72b(0x33c)]=_0x4a6843,this[_0x10c72b(0x231)]=_0x3c95b4,this[_0x10c72b(0x154)]=_0x3e3b66,this[_0x10c72b(0x1d1)]=_0x2a8bef,this[_0x10c72b(0x186)]=_0x2abd82,this[_0x10c72b(0x208)]=_0x3c068f,Z(this,_0x10c72b(0x2d4),!0x1),this[_0x10c72b(0x33c)][_0x10c72b(0x243)](Ei),this[_0x10c72b(0x371)](_0x5bca0e(this[_0x10c72b(0x154)][_0x10c72b(0x149)]['subscribe'](()=>this[_0x10c72b(0x35a)]()))),this[_0x10c72b(0x35a)]();}[_0x16bf5e(0x1ca)](){const _0x14298c=_0x16bf5e;this[_0x14298c(0x208)][_0x14298c(0x341)](!0x1,fa),this[_0x14298c(0x36c)](),super['dispose']();}[_0x16bf5e(0x35a)](){const _0x4c01ce=_0x16bf5e;var _0x51658e;let _0x5b40a5=this[_0x4c01ce(0x154)][_0x4c01ce(0x2b1)](),_0x3c4b3d=_0x5b40a5[_0x4c01ce(0x116)]===0x1?_0x5b40a5[0x0]:void 0x0;if((_0x3c4b3d==null?void 0x0:_0x3c4b3d[_0x4c01ce(0x2a4)])!==_0x21524c[_0x4c01ce(0x247)]||this['_univerInstanceService'][_0x4c01ce(0x2b6)](_0x3c4b3d[_0x4c01ce(0x29e)])!==_0x5a336e[_0x4c01ce(0x1e2)]){this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,fa),this['_hide']();return;}let _0x2f88e5=(_0x51658e=this[_0x4c01ce(0x186)]['getRenderUnitById'](_0x3c4b3d[_0x4c01ce(0x29e)]))==null?void 0x0:_0x51658e[_0x4c01ce(0x191)]['getCanvasElement'](),_0x362632=_0x23ca1c(_0x2f88e5)===_0x4c01ce(0x12c);if(this[_0x4c01ce(0x208)]['setFallbackVisible'](_0x362632,fa),_0x362632){this[_0x4c01ce(0x36c)]();return;}this[_0x4c01ce(0x2d4)]||(this[_0x4c01ce(0x2d4)]=!0x0,this['_ribbonService'][_0x4c01ce(0x20c)](vr,{'activate':!0x0}));}[_0x16bf5e(0x36c)](){const _0x5eabdd=_0x16bf5e;this[_0x5eabdd(0x2d4)]&&(this['_visible']=!0x1,this['_ribbonService']['hideContextualTab'](vr),this[_0x5eabdd(0x231)][_0x5eabdd(0x2a7)]([]));}};pa=Y([J(0x0,_0x358623),J(0x1,_0x2e4512),J(0x2,_0x30fd72),J(0x3,_0x3fa0e3),J(0x4,_0x33251a),J(0x5,_0x1f7d38(_0x345a12))],pa);let ma=class extends _0x3db69a{constructor(_0x56aa62,_0x3ac0f7,_0xc95e53,_0xb4404d){const _0x5687ca=_0x16bf5e;super(),this[_0x5687ca(0x180)]=_0x56aa62,this[_0x5687ca(0x186)]=_0x3ac0f7,this[_0x5687ca(0x154)]=_0xc95e53,this[_0x5687ca(0x369)]=_0xb4404d,this[_0x5687ca(0x16b)]();}[_0x16bf5e(0x16b)](){const _0x1df62a=_0x16bf5e;this[_0x1df62a(0x371)](this['_drawingManagerService'][_0x1df62a(0x1d4)][_0x1df62a(0x1e1)](_0x2691ab=>this[_0x1df62a(0x27f)](_0x2691ab))),this[_0x1df62a(0x371)](this[_0x1df62a(0x154)][_0x1df62a(0x2c6)][_0x1df62a(0x1e1)](_0x5498eb=>{const _0x4841f2=_0x1df62a;_0x5498eb[_0x4841f2(0x276)](_0x20bb76=>this[_0x4841f2(0x22c)](_0x20bb76));})),this[_0x1df62a(0x371)](this[_0x1df62a(0x180)][_0x1df62a(0x188)](_0x54ac06=>{const _0x513aa3=_0x1df62a;if(_0x54ac06['id']!==_0x135998['id'])return;let {unitId:_0x58d7c8,shapeId:_0x4672ce}=_0x54ac06[_0x513aa3(0x2ef)];this[_0x513aa3(0x2f1)]({'unitId':_0x58d7c8,'subUnitId':_0x58d7c8,'drawingId':_0x4672ce});}));}[_0x16bf5e(0x27f)](_0x4a54a4){const _0x5c3846=_0x16bf5e;_0x4a54a4[_0x5c3846(0x276)](_0x2e4c12=>{const _0x4a8aeb=_0x5c3846;let _0x647222=this[_0x4a8aeb(0x33b)](_0x2e4c12[_0x4a8aeb(0x29e)]);if(!_0x647222)return;let _0x22d99d=this[_0x4a8aeb(0x154)]['getDrawingByParam'](_0x2e4c12);(_0x22d99d==null?void 0x0:_0x22d99d[_0x4a8aeb(0x2a4)])===_0x21524c[_0x4a8aeb(0x247)]&&this[_0x4a8aeb(0x369)][_0x4a8aeb(0x184)](_0x22d99d,_0x647222[_0x4a8aeb(0x1df)]);});}[_0x16bf5e(0x22c)](_0x53b155){const _0x335bd7=_0x16bf5e;let _0x275d96=this[_0x335bd7(0x154)]['getDrawingByParam'](_0x53b155);if((_0x275d96==null?void 0x0:_0x275d96['drawingType'])!==_0x21524c[_0x335bd7(0x247)])return;let _0x1d2132=this['_getSceneByUnitId'](_0x53b155[_0x335bd7(0x29e)]);if(!_0x1d2132||_0x275d96['transform']==null)return;let _0x4bdff3=_0xf14320(_0x53b155),_0x5ec4a6=_0x1d2132[_0x335bd7(0x1df)][_0x335bd7(0x289)](_0x4bdff3);_0x5ec4a6&&(_0x5ec4a6[_0x335bd7(0x34e)](_0x275d96[_0x335bd7(0x11a)]),_0x5ec4a6['setPrstGeom'](_0x275d96['prstGeom']),_0x5ec4a6['makeDirty'](!0x0));}['_refreshShapeData'](_0x196876){const _0x4a00d6=_0x16bf5e;let _0x298b1c=this['_getSceneByUnitId'](_0x196876['unitId']);if(!_0x298b1c)return;let _0x12d62f=_0xf14320(_0x196876),_0x2f3410=_0x298b1c[_0x4a00d6(0x1df)][_0x4a00d6(0x289)](_0x12d62f);_0x2f3410&&(this[_0x4a00d6(0x369)][_0x4a00d6(0x182)](_0x2f3410),this['_docDrawingShapeRenderController'][_0x4a00d6(0x13a)](_0x2f3410,{'unitId':_0x196876[_0x4a00d6(0x29e)],'subUnitId':_0x196876[_0x4a00d6(0x23b)],'shapeId':_0x196876['drawingId']}),_0x2f3410[_0x4a00d6(0x250)](!0x0));}[_0x16bf5e(0x33b)](_0x13e036){const _0x517464=_0x16bf5e;if(_0x13e036==null)return null;let _0x1ebd89=this[_0x517464(0x186)][_0x517464(0x260)](_0x13e036),_0x122dc0=_0x1ebd89==null?void 0x0:_0x1ebd89[_0x517464(0x1df)];return _0x122dc0==null?null:{'scene':_0x122dc0};}};ma=Y([J(0x0,_0x38aa04),J(0x1,_0x33251a),J(0x2,_0x30fd72),J(0x3,_0x1f7d38($))],ma);let ha=class extends _0x194e5b{constructor(_0x535e39=Mi,_0x523400,_0x1da805,_0x115754,_0x23bacb){const _0x45f7c5=_0x16bf5e;super(),this[_0x45f7c5(0x2d0)]=_0x535e39,this[_0x45f7c5(0x28d)]=_0x523400,this['_commandService']=_0x1da805,this[_0x45f7c5(0x222)]=_0x115754,this['_renderManagerService']=_0x23bacb;let {menu:_0x1429eb,..._0xacc2da}=_0x4b28ed({},Mi,this[_0x45f7c5(0x2d0)]);_0x1429eb&&this[_0x45f7c5(0x222)][_0x45f7c5(0x2da)](_0x45f7c5(0x148),_0x1429eb,{'merge':!0x0}),this['_configService'][_0x45f7c5(0x2da)](ji,_0xacc2da),[G,Ai,q,Cr,Tr,Er][_0x45f7c5(0x276)](_0x5111dc=>this[_0x45f7c5(0x371)](this['_commandService'][_0x45f7c5(0x221)](_0x5111dc)));}[_0x16bf5e(0x224)](){const _0x57d6f1=_0x16bf5e;let _0x17dc57=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x182f9f(this['_injector'],_0x17dc57),this[_0x57d6f1(0x28d)][_0x57d6f1(0x2f5)](ua);}[_0x16bf5e(0x220)](){const _0x11f91d=_0x16bf5e;this[_0x11f91d(0x371)](this['_renderManagerService']['registerRenderModule'](_0x5a336e[_0x11f91d(0x1e2)],[zi])),_0x53ce1a(this['_injector'],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0x16bf5e(0x35e),_0x5a336e[_0x16bf5e(0x1e2)]),Z(ha,_0x16bf5e(0x1c9),_0x16bf5e(0x29d)),Z(ha,_0x16bf5e(0x2e8),Oi),Z(ha,_0x16bf5e(0x2a8),ki),ha=Y([_0x4396f9(_0x29dd55,_0x1b3dd2,_0x1c720d,_0x1bc339,_0x418575,_0x4f7aa3,_0x496014,_0x464ec2,_0x384ed5,_0xb1c350),J(0x1,_0x1f7d38(_0xd87dbc)),J(0x2,_0x38aa04),J(0x3,_0x205da2),J(0x4,_0x33251a)],ha);let ga=class extends _0x3db69a{constructor(_0x50519f,_0x1a73a4){const _0x517c0f=_0x16bf5e;super(),this[_0x517c0f(0x36a)]=_0x50519f,this[_0x517c0f(0x13c)]=_0x1a73a4,this[_0x517c0f(0x190)](),this['_registerComponents']();}[_0x16bf5e(0x190)](){const _0x49b285=_0x16bf5e;this[_0x49b285(0x13c)][_0x49b285(0x219)]('ObjectLayersIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'ObjectLayersIcon':_0xe4ac2})),this[_0x49b285(0x13c)][_0x49b285(0x219)]('BottomIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'BottomIcon':_0x2ea734})),this[_0x49b285(0x13c)][_0x49b285(0x219)](_0x49b285(0x295))||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'MoveDownIcon':_0x29b216})),this[_0x49b285(0x13c)][_0x49b285(0x219)](_0x49b285(0x217))||this[_0x49b285(0x371)](this[_0x49b285(0x13c)]['register']({'MoveUpIcon':_0x8804f5})),this[_0x49b285(0x13c)][_0x49b285(0x219)]('ShapeFormatSettingIcon')||this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'ShapeFormatSettingIcon':_0x197da5})),this[_0x49b285(0x13c)]['has'](_0x49b285(0x306))||this['disposeWithMe'](this[_0x49b285(0x13c)][_0x49b285(0x359)]({'TopmostIcon':_0x1bc7b9})),this[_0x49b285(0x371)](this[_0x49b285(0x13c)][_0x49b285(0x359)](ca));}[_0x16bf5e(0x151)](){const _0xd22d7c=_0x16bf5e;this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)]['register'](K,Qi)),this['_registerObjectListPanel'](),this[_0xd22d7c(0x2ae)](),this[_0xd22d7c(0x371)](this['_componentManager'][_0xd22d7c(0x359)](Hr,Jr)),this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Vr,Yr)),this['disposeWithMe'](this['_componentManager'][_0xd22d7c(0x359)](Ur,Xr)),this['disposeWithMe'](this['_componentManager'][_0xd22d7c(0x359)](Wr,Zr)),this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Gr,Qr)),this['disposeWithMe'](this['_componentManager']['register'](xr,_0x42d58e)),this['_registerPickers'](),this[_0xd22d7c(0x36a)][_0xd22d7c(0x2f5)](_0xd24491)||this[_0xd22d7c(0x371)](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](_0xd24491,Mr)),this['disposeWithMe'](this[_0xd22d7c(0x36a)][_0xd22d7c(0x359)](Sr,la));}[_0x16bf5e(0x2bd)](){const _0x463b46=_0x16bf5e;this['disposeWithMe'](this[_0x463b46(0x36a)][_0x463b46(0x359)](yr,Ji));}['_registerFloatingToolbar'](){const _0x59d5f2=_0x16bf5e;this['disposeWithMe'](this[_0x59d5f2(0x36a)][_0x59d5f2(0x359)](na,ia));}[_0x16bf5e(0x1ac)](){const _0x83baae=_0x16bf5e;this[_0x83baae(0x371)](this['_componentManager'][_0x83baae(0x359)](Dr,Nr)),this[_0x83baae(0x371)](this[_0x83baae(0x36a)][_0x83baae(0x359)](Or,jr));}};ga=Y([J(0x0,_0x1f7d38(_0x6a795a)),J(0x1,_0x1f7d38(_0x3df9c1))],ga);let _a=class extends _0x3db69a{constructor(_0x52be70,_0x17e20b,_0x5d5ebe,_0x224e0d,_0x12a001,_0x1e1285,_0xf79a54,_0x171325,_0x2dc256){const _0x17fced=_0x16bf5e;super();let _0x2f487b=_0x39d581=>{const _0x47fbd1=_0x5363;let _0x3d3c02=_0x1e1285[_0x47fbd1(0x258)](_0x39d581[_0x47fbd1(0x29e)],_0x5a336e[_0x47fbd1(0x1e2)]),_0x21a345=_0x3d3c02?_0x359abd(_0x3d3c02,_0x39d581[_0x47fbd1(0x226)]):'';return!!_0x3d3c02&&_0x1aefa3(_0x171325,_0x39d581[_0x47fbd1(0x29e)],[_0x3200bc(_0x21a345,_0x47fbd1(0x305),_0x39d581[_0x47fbd1(0x226)]),..._0x2f3e76(_0x3d3c02,_0x21a345,_0x47fbd1(0x305),_0x39d581['shapeId'])]);},_0x1b645c=_0x4894db=>_0x4894db[_0x17fced(0x226)]&&_0x2f487b(_0x4894db)?_0x5d5ebe[_0x17fced(0x177)](_0x4894db[_0x17fced(0x29e)],_0x4894db['shapeId'])??null:null,_0x24063d=()=>{const _0x34a23f=_0x17fced;let _0x12faca=_0x12a001[_0x34a23f(0x2b1)](),_0x2c7824=_0x12faca[_0x34a23f(0x116)]===0x1?_0x12faca[0x0]:null;return(_0x2c7824==null?void 0x0:_0x2c7824[_0x34a23f(0x2a4)])===_0x21524c[_0x34a23f(0x247)]&&_0x2c7824[_0x34a23f(0x29e)]===_0x52be70['unitId']?{'unitId':_0x2c7824[_0x34a23f(0x29e)],'subUnitId':_0x2c7824['subUnitId'],'shapeId':_0x2c7824['drawingId']}:null;};this[_0x17fced(0x371)](_0x33b5f0(_0x52be70,_0x17e20b,{'changes$':_0x71248(_0x12a001['focus$'],_0x224e0d[_0x17fced(0x2b9)],_0x171325[_0x17fced(0x185)]),'isActive':()=>{const _0x15f9e7=_0x17fced;var _0x19ffb1;return((_0x19ffb1=_0x1e1285[_0x15f9e7(0x34c)]())==null?void 0x0:_0x19ffb1[_0x15f9e7(0x2e3)]())===_0x52be70[_0x15f9e7(0x29e)]&&!_0xf79a54['getContextValue'](_0x3cbde6)&&_0x12a001[_0x15f9e7(0x2b1)]()[_0x15f9e7(0x2e2)](_0x259aab=>_0x259aab[_0x15f9e7(0x29e)]===_0x52be70[_0x15f9e7(0x29e)]);},'getSelectedTarget':_0x24063d,'getSource':()=>{let _0x2fdfc5=_0x24063d();return _0x2fdfc5?_0x1b645c(_0x2fdfc5):null;},'getTarget':_0x55f8a6=>{const _0x53b317=_0x17fced;let _0x370532=_0x52be70[_0x53b317(0x1df)]['pick'](new _0xed2876(_0x55f8a6['offsetX'],_0x55f8a6[_0x53b317(0x283)]));if(!(_0x370532 instanceof Ri))return null;let _0x312383={'unitId':_0x52be70[_0x53b317(0x29e)],'subUnitId':_0x52be70[_0x53b317(0x29e)],'shapeId':_0x370532['shapeId']};return _0x2f487b(_0x312383)?_0x312383:null;},'getShape':_0x1b645c,'update':(_0x4696c2,_0x4dd643,_0x369688)=>_0x2dc256[_0x17fced(0x232)](_0x9d3fcb['id'],{..._0x4696c2,'shapeData':_0x369688,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x4dd643}})}));}};_a=Y([J(0x1,_0x1f7d38(_0xbbc0b9)),J(0x2,_0x1f7d38(_0xda92b6)),J(0x3,_0x1f7d38(Q)),J(0x4,_0x30fd72),J(0x5,_0x3fa0e3),J(0x6,_0x1be7b7),J(0x7,_0x137531),J(0x8,_0x38aa04)],_a);function va(_0x20cec7,_0xd81ef1){const _0x351f9d=_0x16bf5e;let _0x5ca43c=_0x20cec7;for(;_0x5ca43c;){if(_0xd81ef1(_0x5ca43c))return _0x5ca43c;_0x5ca43c=typeof _0x5ca43c['getParent']==_0x351f9d(0x26a)?_0x5ca43c['getParent']():null;}return null;}function ya(_0x3ada30){return va(_0x3ada30,_0x1f934b=>_0x1f934b instanceof Ri);}function ba(_0x569bcd){const _0xda318b=_0x16bf5e;return(_0x569bcd==null?void 0x0:_0x569bcd[_0xda318b(0x164)])==null;}let xa=class extends _0x3db69a{constructor(_0x27b3b6,_0xb1f386,_0x43f51e,_0xbf5868,_0x4990a3,_0x649877){const _0x3c91a2=_0x16bf5e;super(),this[_0x3c91a2(0x159)]=_0x27b3b6,this['_shapeTextEditingService']=_0xb1f386,this[_0x3c91a2(0x154)]=_0x43f51e,this[_0x3c91a2(0x165)]=_0xbf5868,this[_0x3c91a2(0x26b)]=_0x4990a3,this['_docsShapeService']=_0x649877,Z(this,_0x3c91a2(0x1bd),null),Z(this,_0x3c91a2(0x36e),null),this[_0x3c91a2(0x23e)](),this[_0x3c91a2(0x36d)](),this[_0x3c91a2(0x13f)]();}['dispose'](){const _0x128ac7=_0x16bf5e;this[_0x128ac7(0x321)](),super[_0x128ac7(0x1ca)]();}[_0x16bf5e(0x23e)](){const _0x33f2c4=_0x16bf5e;let {scene:_0xab5e1b}=this[_0x33f2c4(0x159)];this[_0x33f2c4(0x371)](_0xab5e1b[_0x33f2c4(0x14b)][_0x33f2c4(0x1b2)]((_0x506c61,_0x249380)=>{const _0x126b8c=_0x33f2c4;let {offsetX:_0x1ce2b4,offsetY:_0x2edc7a}=_0x506c61,_0x345653=_0xed2876[_0x126b8c(0x259)]([_0x1ce2b4,_0x2edc7a]),_0x5df58f=ya(_0xab5e1b[_0x126b8c(0x1c4)](_0x345653))??this[_0x126b8c(0x334)](_0x345653);if(_0x5df58f){_0x249380[_0x126b8c(0x189)]();let _0x307a21=this[_0x126b8c(0x355)][_0x126b8c(0x27c)](_0x5df58f[_0x126b8c(0x29e)],_0x5df58f[_0x126b8c(0x23b)],_0x5df58f[_0x126b8c(0x226)]);if(!_0x307a21||_0x15125c(_0x307a21[_0x126b8c(0x12d)]())||!ba(_0x307a21['getShapeData']()))return;this[_0x126b8c(0x1bf)][_0x126b8c(0x1cd)]({'visible':!0x0,'unitId':_0x5df58f[_0x126b8c(0x29e)],'subUnitId':_0x5df58f[_0x126b8c(0x23b)],'shapeId':_0x5df58f[_0x126b8c(0x226)],'shapeKey':_0x5df58f['oKey']});}}));}[_0x16bf5e(0x334)](_0xccf12b){const _0x1bca62=_0x16bf5e;let {scene:_0x15895d}=this['_context'];return this[_0x1bca62(0x154)]['getFocusDrawings']()['map'](_0x5c7261=>_0x15895d['getObjectIncludeInGroup'](_0xf14320(_0x5c7261)))[_0x1bca62(0x2de)](_0xfba835=>_0xfba835 instanceof Ri&&_0xfba835[_0x1bca62(0x120)](_0xccf12b))??null;}['_initSelection'](){const _0x38b0b2=_0x16bf5e;this[_0x38b0b2(0x371)](this[_0x38b0b2(0x154)][_0x38b0b2(0x149)][_0x38b0b2(0x1e1)](_0x393704=>{const _0x1b4509=_0x38b0b2;if(_0x393704[_0x1b4509(0x116)]===0x1){let _0x2932c8=_0x393704[0x0],_0x4bc61e=this['_drawingManagerService'][_0x1b4509(0x1ce)](_0x2932c8);if((_0x4bc61e==null?void 0x0:_0x4bc61e[_0x1b4509(0x2a4)])===_0x21524c['DRAWING_SHAPE']){let _0x36337b=this[_0x1b4509(0x1bf)][_0x1b4509(0x136)]();if((_0x36337b==null?void 0x0:_0x36337b[_0x1b4509(0x226)])===_0x2932c8['drawingId']&&_0x36337b[_0x1b4509(0x142)])return;_0x15125c(this[_0x1b4509(0x355)][_0x1b4509(0x12d)](_0x2932c8[_0x1b4509(0x29e)],_0x2932c8['subUnitId'],_0x2932c8[_0x1b4509(0x344)]))&&this['_shapeTextEditingService']['setEditing'](null);}else this[_0x1b4509(0x1bf)]['completeEditing']();}else this['_shapeTextEditingService'][_0x1b4509(0x15c)]();})),this[_0x38b0b2(0x371)](this[_0x38b0b2(0x154)][_0x38b0b2(0x1d2)][_0x38b0b2(0x1e1)](_0x1e20b=>{const _0x2ec98a=_0x38b0b2;let _0x514056=this[_0x2ec98a(0x1bf)][_0x2ec98a(0x136)]();_0x514056&&_0x1e20b[_0x2ec98a(0x2e2)](_0x1e318d=>_0x1e318d[_0x2ec98a(0x344)]===_0x514056[_0x2ec98a(0x226)])&&this[_0x2ec98a(0x1bf)]['setEditing'](null);}));}[_0x16bf5e(0x13f)](){const _0x46f827=_0x16bf5e;this['disposeWithMe'](this[_0x46f827(0x1bf)][_0x46f827(0x2b9)][_0x46f827(0x1e1)](_0x56821d=>{const _0x44b95d=_0x46f827;(_0x56821d==null?void 0x0:_0x56821d['visible'])===!0x0&&_0x56821d[_0x44b95d(0x29e)]===this[_0x44b95d(0x159)][_0x44b95d(0x29e)]?this[_0x44b95d(0x36e)]??=this[_0x44b95d(0x26b)]['beginInteraction']():this[_0x44b95d(0x321)]();let {scene:_0x2c7cbe}=this[_0x44b95d(0x159)];if(this[_0x44b95d(0x1bd)]){let _0x181042=_0x2c7cbe[_0x44b95d(0x289)](this[_0x44b95d(0x1bd)]);_0x181042&&_0x181042['setEditing'](!0x1);}if(_0x56821d){let _0x315dce=!!_0x56821d[_0x44b95d(0x142)],_0x56c1a2=_0x2c7cbe[_0x44b95d(0x289)](_0x56821d[_0x44b95d(0x1b4)]);_0x56c1a2&&(_0x56c1a2[_0x44b95d(0x1cd)](_0x315dce),this[_0x44b95d(0x1bd)]=_0x56821d[_0x44b95d(0x1b4)]),this['_contextService'][_0x44b95d(0x145)](_0x3cbde6,_0x315dce);}else this['_lastEditingShapeKey']=null,this[_0x44b95d(0x165)][_0x44b95d(0x145)](_0x3cbde6,!0x1);}));}['_endLayoutInteraction'](){const _0x8a8a58=_0x16bf5e;var _0x251d35;(_0x251d35=this[_0x8a8a58(0x36e)])==null||_0x251d35[_0x8a8a58(0x1ca)](),this[_0x8a8a58(0x36e)]=null;}};xa=Y([J(0x1,_0x1f7d38(Q)),J(0x2,_0x30fd72),J(0x3,_0x1be7b7),J(0x4,_0x1f7d38(_0x408b8e)),J(0x5,_0x1f7d38(_0xda92b6))],xa);let Sa=class extends _0x2d6c19{constructor(_0x19b602,_0x1dcbef,_0x95c53c,_0x2c5c06,_0x4a8bd8,_0x5c5cb2,_0x4d1519,_0x1e04c6,_0x138cee,_0x4ead1e){super(_0x19b602,_0x1dcbef,_0x95c53c,_0x2c5c06,_0x4a8bd8,_0x5c5cb2,_0x4d1519,_0x1e04c6,_0x138cee,_0x4ead1e,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x1f7d38(_0x371d66)),J(0x2,_0x1f7d38(_0x42fe30)),J(0x3,_0x1f7d38(_0x101f6f)),J(0x4,_0x38aa04),J(0x5,_0x1f7d38(_0x5ef133)),J(0x6,_0x1f7d38(_0x2408bc)),J(0x7,_0x1f7d38(_0x2d8b15)),J(0x8,_0x1f7d38(_0x269678)),J(0x9,_0x1f7d38(Q))],Sa);let Ca=class extends _0x3db69a{constructor(_0x140cc7,_0x14361e,_0x2ac9df,_0x2cfd39,_0x5586b7,_0x556f1c,_0x5be81b,_0x910b51,_0x276539,_0x524848,_0x4c0e0b,_0x20db04){const _0x382768=_0x16bf5e;super(),this['_univerInstanceService']=_0x140cc7,this[_0x382768(0x1fc)]=_0x14361e,this[_0x382768(0x33c)]=_0x2ac9df,this['_docsShapeService']=_0x2cfd39,this[_0x382768(0x193)]=_0x5586b7,this[_0x382768(0x180)]=_0x556f1c,this[_0x382768(0x154)]=_0x5be81b,this[_0x382768(0x17c)]=_0x910b51,this['_renderManagerService']=_0x276539,this['_contextService']=_0x524848,this[_0x382768(0x1bf)]=_0x4c0e0b,this[_0x382768(0x16a)]=_0x20db04,Z(this,_0x382768(0x1c6),null),Z(this,_0x382768(0x1a8),null),Z(this,'_isOpenedShapeEditPanel',!0x1),Z(this,_0x382768(0x30f),0x0),Z(this,_0x382768(0x330),new Map()),Z(this,_0x382768(0x18a),new Map()),this[_0x382768(0x2d2)](),this[_0x382768(0x371)](this[_0x382768(0x1d1)][_0x382768(0x286)](_0x5a336e['UNIVER_DOC'])[_0x382768(0x1e1)](_0x2b3225=>{const _0x28f90c=_0x382768;if(!_0x2b3225){var _0x3ab48c;(_0x3ab48c=this[_0x28f90c(0x1c6)])==null||_0x3ab48c['dispose']();}})),this[_0x382768(0x20f)](),this[_0x382768(0x371)](_0xeca305(this[_0x382768(0x186)],_0x5a336e[_0x382768(0x1e2)],_0x23e29c=>this[_0x382768(0x333)](_0x23e29c))),this[_0x382768(0x371)](this[_0x382768(0x1bf)]['editingParams$'][_0x382768(0x1e1)](_0xe5609=>{const _0x2f591c=_0x382768;_0xe5609&&this[_0x2f591c(0x19b)](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x382768(0x16a)][_0x382768(0x185)][_0x382768(0x1e1)](()=>{const _0x4518cc=_0x382768;this['_drawingManagerService'][_0x4518cc(0x2b1)]()[_0x4518cc(0x2e2)](_0x5de4d6=>_0x5de4d6['drawingType']===_0x21524c[_0x4518cc(0x247)]&&this[_0x4518cc(0x1d1)][_0x4518cc(0x2b6)](_0x5de4d6[_0x4518cc(0x29e)])===_0x5a336e[_0x4518cc(0x1e2)]&&!this[_0x4518cc(0x173)](_0x5de4d6['unitId'],_0x5de4d6[_0x4518cc(0x344)]))&&(this[_0x4518cc(0x19b)](void 0x0,!0x0),this[_0x4518cc(0x119)]());}));}[_0x16bf5e(0x2d2)](){const _0x282e68=_0x16bf5e;this['_menuManagerService'][_0x282e68(0x243)](Di);}['getShapePopupMenus'](_0x30e4cb,_0x407779,_0xcc3280,_0x27e885){const _0x527801=_0x16bf5e;return[{'label':_0x527801(0x263),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280},'disable':_0x27e885===_0x21524c[_0x527801(0x196)]},{'label':'docs-shape-ui.deleteShape','index':0x1,'commandId':_0x1d5a93['id'],'commandParams':{'unitId':_0x30e4cb,'drawings':[{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280}]},'disable':!0x1},{'label':_0x527801(0x308),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x30e4cb,'subUnitId':_0x407779,'drawingId':_0xcc3280},'disable':!0x1}];}[_0x16bf5e(0x30b)](_0x323e9f,_0xee8c8a,_0x4940b4){const _0x1ba49e=_0x16bf5e;let _0x27d570=this[_0x1ba49e(0x355)]['getShapeTypeById'](_0x323e9f,_0xee8c8a,_0x4940b4),_0x446740=this[_0x1ba49e(0x355)][_0x1ba49e(0x177)](_0x323e9f,_0xee8c8a,_0x4940b4);return _0x27d570!==void 0x0&&_0x446740!==void 0x0?{'shapeData':_0x446740,'shapeId':_0x4940b4,'shapeType':_0x27d570,'unitId':_0x323e9f,'subUnitId':_0xee8c8a,'version':this[_0x1ba49e(0x30f)],'disableShapeOption':!0x1}:null;}[_0x16bf5e(0x19b)](_0x847888,_0x17167c=!0x1){const _0x21dc06=_0x16bf5e;if(_0x847888==null){[...this[_0x21dc06(0x330)][_0x21dc06(0x130)]()]['forEach'](_0xad3dd1=>this[_0x21dc06(0x19b)](_0xad3dd1,_0x17167c));return;}let _0x3ad478=this[_0x21dc06(0x330)]['get'](_0x847888);if(_0x3ad478){for(let _0xcc049=_0x3ad478[_0x21dc06(0x116)]-0x1;_0xcc049>=0x0;--_0xcc049){let _0x19d0d8=_0x3ad478[_0xcc049];(_0x17167c||_0x19d0d8[_0x21dc06(0x2a2)]())&&(_0x19d0d8[_0x21dc06(0x1ca)](),_0x3ad478[_0x21dc06(0x13e)](_0xcc049,0x1));}_0x3ad478[_0x21dc06(0x116)]===0x0&&(this['_disposePopupsByUnit'][_0x21dc06(0x2e6)](_0x847888),this[_0x21dc06(0x18a)][_0x21dc06(0x2e6)](_0x847888));}}['_getDisposePopups'](_0x3f2ded){const _0x29e706=_0x16bf5e;let _0xb15c10=this['_disposePopupsByUnit'][_0x29e706(0x2f5)](_0x3f2ded);if(_0xb15c10)return _0xb15c10;let _0x31395b=[];return this[_0x29e706(0x330)][_0x29e706(0x342)](_0x3f2ded,_0x31395b),_0x31395b;}[_0x16bf5e(0x333)](_0x50d6ed){const _0x2b56dd=_0x16bf5e;var _0x21d704;let _0x4305b7=new _0x45b9fb(),_0xb00ea1=(_0x21d704=this[_0x2b56dd(0x186)]['getAllRenderersOfType'](_0x5a336e[_0x2b56dd(0x1e2)])[_0x2b56dd(0x2de)](_0x27d2a0=>_0x27d2a0[_0x2b56dd(0x1df)][_0x2b56dd(0x1fd)]()===_0x50d6ed))==null?void 0x0:_0x21d704[_0x2b56dd(0x29e)];return _0xb00ea1?(_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed['createControl$'][_0x2b56dd(0x1e1)](()=>this[_0x2b56dd(0x1d6)](_0x50d6ed,_0xb00ea1))),_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed[_0x2b56dd(0x169)][_0x2b56dd(0x1e1)](()=>{const _0xbeb6aa=_0x2b56dd;this[_0xbeb6aa(0x19b)](_0xb00ea1),queueMicrotask(()=>{const _0x14110a=_0xbeb6aa;_0x50d6ed[_0x14110a(0x264)]()[_0x14110a(0x14a)]>0x0||(this[_0x14110a(0x165)][_0x14110a(0x145)](_0x3a52be,!0x1),this[_0x14110a(0x154)]['focusDrawing'](null));});})),_0x4305b7[_0x2b56dd(0x313)](_0x50d6ed[_0x2b56dd(0x1bb)][_0x2b56dd(0x1e1)](()=>{const _0x2c50d9=_0x2b56dd;this[_0x2c50d9(0x19b)](_0xb00ea1,!0x0);})),_0x4305b7):_0x4305b7;}['_handleCreateControl'](_0x3b86d5,_0x295ee0){const _0x2fe9ff=_0x16bf5e;let _0x2e3cf6=_0x3b86d5['getSelectedObjectMap']();if(this['_isOpenedShapeEditPanel']){this[_0x2fe9ff(0x19b)](_0x295ee0,!0x0);return;}if(_0x2e3cf6[_0x2fe9ff(0x14a)]>0x1){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let _0x6133ad=_0x2e3cf6[_0x2fe9ff(0x12f)]()[_0x2fe9ff(0x2c7)]()[_0x2fe9ff(0x171)];if(!_0x6133ad){this['_clearPopups'](_0x295ee0);return;}let _0x56d0af=this[_0x2fe9ff(0x154)]['getDrawingOKey'](_0x6133ad[_0x2fe9ff(0x1a9)]);if(!_0x56d0af||_0x56d0af[_0x2fe9ff(0x2a4)]!==_0x21524c[_0x2fe9ff(0x247)]){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let {unitId:_0x4342a5,subUnitId:_0x3a9e9b,drawingId:_0x13549c,drawingType:_0x841043}=_0x56d0af;if(!this[_0x2fe9ff(0x173)](_0x4342a5,_0x13549c)){this[_0x2fe9ff(0x19b)](_0x295ee0,!0x0);return;}let _0x2eb1bc=this[_0x2fe9ff(0x30b)](_0x4342a5,_0x3a9e9b,_0x13549c);if(!_0x2eb1bc){this[_0x2fe9ff(0x19b)](_0x295ee0);return;}let _0x2e532e=this[_0x2fe9ff(0x330)]['get'](_0x295ee0),_0x2fd0b2=_0x4342a5+':'+_0x3a9e9b+':'+_0x13549c;if(this[_0x2fe9ff(0x18a)][_0x2fe9ff(0x2f5)](_0x295ee0)===_0x2fd0b2&&_0x2e532e&&_0x2e532e[_0x2fe9ff(0x116)]>0x0)return;this[_0x2fe9ff(0x19b)](_0x295ee0);let _0x2cd814=this[_0x2fe9ff(0x186)][_0x2fe9ff(0x260)](_0x4342a5),_0x27bd5d=((_0x2cd814==null?void 0x0:_0x2cd814[_0x2fe9ff(0x329)])===!0x1?_0x2cd814[_0x2fe9ff(0x26f)](_0x42fe30):this[_0x2fe9ff(0x17c)])[_0x2fe9ff(0x143)](_0x6133ad,this['_getShapePopup'](_0x2eb1bc,_0x841043),_0x4342a5);this[_0x2fe9ff(0x371)](_0x27bd5d),this[_0x2fe9ff(0x24a)](_0x295ee0)[_0x2fe9ff(0x1bc)](_0x27bd5d),this['_popupTargetKeys'][_0x2fe9ff(0x342)](_0x295ee0,_0x2fd0b2),this[_0x2fe9ff(0x154)][_0x2fe9ff(0x2b1)]()[_0x2fe9ff(0x2e2)](_0x152c06=>_0x152c06[_0x2fe9ff(0x29e)]===_0x4342a5&&_0x152c06[_0x2fe9ff(0x23b)]===_0x3a9e9b&&_0x152c06[_0x2fe9ff(0x344)]===_0x13549c)||this[_0x2fe9ff(0x154)][_0x2fe9ff(0x30c)]([{'unitId':_0x4342a5,'subUnitId':_0x3a9e9b,'drawingId':_0x13549c}]);}[_0x16bf5e(0x30e)](_0x3682b5,_0xd13cd6){const _0x5570f8=_0x16bf5e;return{'componentKey':na,'direction':'vertical-center','offset':[0x0,_0x5b3daa],'extraProps':{'unitId':_0x3682b5[_0x5570f8(0x29e)],'subUnitId':_0x3682b5[_0x5570f8(0x23b)],'drawingId':_0x3682b5[_0x5570f8(0x226)],'drawingType':_0xd13cd6,'shapeType':_0x3682b5[_0x5570f8(0x324)],'shapeData':_0x3682b5[_0x5570f8(0x2f2)]}};}['_canEditShape'](_0x572725,_0x4804f5){const _0x1cbd8a=_0x16bf5e;let _0xff41f9=this[_0x1cbd8a(0x1d1)][_0x1cbd8a(0x258)](_0x572725,_0x5a336e[_0x1cbd8a(0x1e2)]);if(!_0xff41f9)return!0x1;let _0x5b810f=_0x359abd(_0xff41f9,_0x4804f5);return _0x1aefa3(this[_0x1cbd8a(0x16a)],_0x572725,[..._0x2f3e76(_0xff41f9,_0x5b810f,_0x1cbd8a(0x305),_0x4804f5),_0x3200bc(_0x5b810f,_0x1cbd8a(0x305),_0x4804f5)]);}[_0x16bf5e(0x20f)](){const _0x32619b=_0x16bf5e;this['disposeWithMe'](this[_0x32619b(0x180)][_0x32619b(0x188)](_0x2e412f=>{const _0x58796b=_0x32619b;if(_0x2e412f['id']===q['id']){let {unitId:_0x1b05f2,subUnitId:_0x153aa4,drawingId:_0x1a577b}=_0x2e412f[_0x58796b(0x2ef)];this[_0x58796b(0x30f)]+=0x1,this[_0x58796b(0x1a8)]=this[_0x58796b(0x30b)](_0x1b05f2,_0x153aa4,_0x1a577b),this['_clearPopups'](void 0x0,!0x0),this[_0x58796b(0x1cc)]();}if(_0x2e412f['id']===Ai['id']&&(this[_0x58796b(0x1a8)]=null,this[_0x58796b(0x119)]()),_0x2e412f['id']===_0x135998['id']){let {unitId:_0x1b66db,shapeId:_0x42b9bf}=_0x2e412f[_0x58796b(0x2ef)];if(this[_0x58796b(0x1a8)]&&this['_activeShapeInfo'][_0x58796b(0x226)]===_0x42b9bf){let _0x5995d8=this[_0x58796b(0x30b)](_0x1b66db,this['_activeShapeInfo'][_0x58796b(0x23b)],_0x42b9bf);_0x5995d8&&(this[_0x58796b(0x30f)]+=0x1,_0x5995d8[_0x58796b(0x2a8)]=this[_0x58796b(0x30f)],this[_0x58796b(0x1a8)]=_0x5995d8,this[_0x58796b(0x141)]&&this[_0x58796b(0x1cc)]());}}})),this[_0x32619b(0x371)](this[_0x32619b(0x154)][_0x32619b(0x149)]['subscribe'](_0x44aee7=>{const _0x25df49=_0x32619b;if(this[_0x25df49(0x141)]===!0x1)return;if(_0x44aee7[_0x25df49(0x116)]===0x0){this[_0x25df49(0x1a8)]=null,this[_0x25df49(0x119)]();return;}if(_0x44aee7[_0x25df49(0x116)]===0x1&&_0x44aee7[0x0][_0x25df49(0x2a4)]===_0x21524c[_0x25df49(0x247)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0][_0x25df49(0x29e)],_0x44aee7[0x0][_0x25df49(0x23b)],_0x44aee7[0x0][_0x25df49(0x344)]),this['_activeShapeInfo'])){this[_0x25df49(0x1cc)]();return;}let _0x438581=_0x44aee7[_0x25df49(0x2fa)](_0x5b55d1=>_0x5b55d1['drawingType']===_0x21524c[_0x25df49(0x247)]);if(_0x44aee7['length']>0x1&&_0x438581['length']===_0x44aee7[_0x25df49(0x116)]){if(this[_0x25df49(0x30f)]+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0][_0x25df49(0x29e)],_0x44aee7[0x0]['subUnitId'],_0x44aee7[0x0][_0x25df49(0x344)]),this[_0x25df49(0x1a8)]){this[_0x25df49(0x1cc)]();return;}}else{if(this[_0x25df49(0x30f)]+=0x1,this[_0x25df49(0x1a8)]=this[_0x25df49(0x30b)](_0x44aee7[0x0]['unitId'],_0x44aee7[0x0][_0x25df49(0x23b)],_0x44aee7[0x0][_0x25df49(0x344)]),this['_activeShapeInfo']){this['_activeShapeInfo'][_0x25df49(0x2ca)]=!0x0,this[_0x25df49(0x1cc)]();return;}}this[_0x25df49(0x119)]();}));}['_openShapeEditPanel'](){const _0xf6693e=_0x16bf5e;this[_0xf6693e(0x1a8)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0xf6693e(0x2e7)]({'id':K,'header':{'title':this['_localeService']['t'](_0xf6693e(0x365))},'width':0x184,'children':{'label':K,...this[_0xf6693e(0x1a8)]},'onClose':()=>{const _0x19ccb5=_0xf6693e;this[_0x19ccb5(0x154)][_0x19ccb5(0x30c)](null),this['_contextService'][_0x19ccb5(0x145)](_0x3a52be,!0x1),this[_0x19ccb5(0x1c6)]=null;}}),this[_0xf6693e(0x141)]=!0x0);}[_0x16bf5e(0x119)](){const _0x3d090d=_0x16bf5e;this[_0x3d090d(0x141)]=!0x1,this[_0x3d090d(0x1fc)][_0x3d090d(0x19e)](K),this[_0x3d090d(0x1c6)]=null,this[_0x3d090d(0x165)][_0x3d090d(0x145)](_0x3a52be,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ca=Y([J(0x0,_0x3fa0e3),J(0x1,_0x1f7d38(_0x2e36b7)),J(0x2,_0x358623),J(0x3,_0x1f7d38(_0xda92b6)),J(0x4,_0x1f7d38(_0x26ba4d)),J(0x5,_0x38aa04),J(0x6,_0x30fd72),J(0x7,_0x1f7d38(_0x42fe30)),J(0x8,_0x33251a),J(0x9,_0x1be7b7),J(0xa,_0x1f7d38(Q)),J(0xb,_0x137531)],Ca);let wa=class extends _0x3db69a{constructor(_0x1a31d5,_0x5b084c){const _0x14bcb6=_0x16bf5e;super(),this['_docsShapeService']=_0x1a31d5,this[_0x14bcb6(0x193)]=_0x5b084c,this[_0x14bcb6(0x371)](_0x5bca0e(_0x4e18db((_0xab2497,_0x1998f2,_0x38b1f1)=>this[_0x14bcb6(0x1f1)](_0xab2497,_0x1998f2,_0x38b1f1))));}[_0x16bf5e(0x1f1)](_0x55c8f1,_0x747872,_0x49854e){const _0x196336=_0x16bf5e;let _0x314604=this[_0x196336(0x355)]['getShapeModel'](_0x55c8f1,_0x747872);if(!_0x314604)return null;let _0x309b9a=_0x314604[_0x196336(0x18e)](),_0x2feaf7=_0x428285(_0x309b9a),_0x2b4f21=_0x309b9a[_0x196336(0x2d1)];if(!_0x2b4f21||_0x2feaf7[_0x196336(0x1fe)]!==_0x3c6783[_0x196336(0x2d5)])return null;let _0x27b602=_0x49854e[_0x196336(0x230)],_0x3b915d=_0x49854e[_0x196336(0x2c1)];_0x314604['updateContext']({'width':_0x27b602,'height':_0x3b915d});let _0x1c4c6a=_0x314604[_0x196336(0x236)]({'left':0x0,'top':0x0,'width':_0x27b602,'height':_0x3b915d}),_0x1ca6c9=_0x4a9cfc('dataModel'in _0x2b4f21?_0x2b4f21['dataModel']:void 0x0),_0x4c0fe4=(_0x1ca6c9==null?void 0x0:_0x1ca6c9['doc'])??('isRichText'in _0x2b4f21?_0x2ad81b(_0x2b4f21,_0x747872+_0x196336(0x254)):null);if(!_0x4c0fe4)return null;let _0x2ac1c6=_0x203556({'documentData':_0x4c0fe4,'height':_0x3b915d,'shapeData':_0x309b9a,'textRect':_0x1c4c6a,'width':_0x27b602,'widthBuffer':0x0});_0x2ac1c6&&({width:_0x27b602,height:_0x3b915d}=_0x2ac1c6,_0x314604[_0x196336(0x300)]({'width':_0x27b602,'height':_0x3b915d}),_0x1c4c6a=_0x314604['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x27b602,'height':_0x3b915d}));let _0x4e3bb5=_0x2b4f21['isHorizontal']!==!0x1,_0x3fc309=_0x5f49cc(_0x4c0fe4,{'isHorizontal':_0x4e3bb5,'textRect':_0x1c4c6a,'verticalAlign':_0x1ca6c9==null?void 0x0:_0x1ca6c9['va'],'horizontalAlign':_0x1ca6c9==null?void 0x0:_0x1ca6c9['ha'],'wrapStrategy':_0x103b43(_0x309b9a)}),_0x5dd645=new _0x1d7f7d(_0x3fc309),_0x94b727=new _0x47d8e5(_0x5dd645),_0x3b7575=_0x116815[_0x196336(0x206)](_0x94b727,this[_0x196336(0x193)]);try{var _0x25698f,_0x1a27db;_0x3b7575[_0x196336(0x24b)]();let _0x5cf428=((_0x25698f=_0x3b7575[_0x196336(0x12a)]())==null?void 0x0:_0x25698f[_0x196336(0x158)])??[],_0x44d34a=_0x5cf428[_0x5cf428[_0x196336(0x116)]-0x1],_0xc3d7df=_0x44d34a?Math[_0x196336(0x1b8)](0x0,((_0x1a27db=_0x4e6d0e(_0x44d34a))==null?void 0x0:_0x1a27db[_0x196336(0x25a)])??0x0):0x0,_0x184bd5=_0x3b7575[_0x196336(0x1c3)]()[_0x196336(0x320)]+_0xc3d7df-(_0x4e3bb5?_0x1c4c6a[_0x196336(0x322)]:_0x1c4c6a[_0x196336(0x18c)]);return Number[_0x196336(0x2ac)](_0x184bd5)?_0x4e3bb5?{'width':_0x27b602,'height':Math[_0x196336(0x1b8)](0x1,_0x3b915d+_0x184bd5)}:{'width':Math[_0x196336(0x1b8)](0x1,_0x27b602+_0x184bd5),'height':_0x3b915d}:null;}finally{_0x3b7575[_0x196336(0x1ca)](),_0x94b727[_0x196336(0x1ca)](),_0x5dd645['dispose']();}}};wa=Y([J(0x0,_0x1f7d38(_0xda92b6)),J(0x1,_0x1f7d38(_0x26ba4d))],wa);let Ta=class extends _0x194e5b{constructor(_0x1309e4=Mi,_0x5c460a,_0x2dde43,_0x57c815,_0x2bbd89){const _0x530959=_0x16bf5e;super(),this[_0x530959(0x2d0)]=_0x1309e4,this[_0x530959(0x28d)]=_0x5c460a,this[_0x530959(0x180)]=_0x2dde43,this[_0x530959(0x222)]=_0x57c815,this['_renderManagerService']=_0x2bbd89;let {menu:_0x8a9be7,..._0x42a762}=_0x4b28ed({},Mi,this['_config']);_0x8a9be7&&this['_configService'][_0x530959(0x2da)](_0x530959(0x148),_0x8a9be7,{'merge':!0x0}),this[_0x530959(0x222)][_0x530959(0x2da)](ji,_0x42a762),this[_0x530959(0x20d)]();}[_0x16bf5e(0x224)](){const _0x3a937d=_0x16bf5e;_0x182f9f(this[_0x3a937d(0x28d)],this['_getDependencies']()),this[_0x3a937d(0x28d)]['get'](ga),this[_0x3a937d(0x21b)]();}[_0x16bf5e(0x335)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}[_0x16bf5e(0x220)](){const _0x118563=_0x16bf5e;this[_0x118563(0x33f)]()[_0x118563(0x276)](_0x4ec7d1=>{const _0x1f07d6=_0x118563;this['disposeWithMe'](this[_0x1f07d6(0x186)][_0x1f07d6(0x348)](_0x5a336e[_0x1f07d6(0x1e2)],_0x4ec7d1));}),_0x53ce1a(this[_0x118563(0x28d)],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}[_0x16bf5e(0x33f)](){return[[zi],[xa],[_a]];}[_0x16bf5e(0x23a)](){const _0x3e7728=_0x16bf5e;this[_0x3e7728(0x371)](this[_0x3e7728(0x186)][_0x3e7728(0x348)](_0x5a336e[_0x3e7728(0x1e2)],[Sa]));}[_0x16bf5e(0x20d)](){const _0x743754=_0x16bf5e;[G,Ai,q,Cr,Tr,Er]['forEach'](_0x35d35c=>this[_0x743754(0x371)](this[_0x743754(0x180)][_0x743754(0x221)](_0x35d35c)));}['_initUIPart'](){const _0x3fb32e=_0x16bf5e;let _0x360834=this[_0x3fb32e(0x28d)],_0x3b0a13=_0x360834[_0x3fb32e(0x2f5)](_0x278843);this[_0x3fb32e(0x371)](_0x3b0a13[_0x3fb32e(0x358)](_0x58e59d[_0x3fb32e(0x357)],()=>_0x4bde98(la,_0x360834)));}};Z(Ta,_0x16bf5e(0x35e),_0x5a336e[_0x16bf5e(0x1e2)]),Z(Ta,_0x16bf5e(0x1c9),'DOCS_SHAPE_UI_PLUGIN'),Z(Ta,_0x16bf5e(0x2e8),Oi),Z(Ta,_0x16bf5e(0x2a8),ki),Ta=Y([_0x4396f9(_0x29dd55,_0x1b3dd2,_0x1c720d,_0x3eece4,_0x418575,_0x1739f6,_0x496014,_0x990e5d,_0x384ed5,_0x2bfba6),J(0x1,_0x1f7d38(_0xd87dbc)),J(0x2,_0x38aa04),J(0x3,_0x205da2),J(0x4,_0x33251a)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};
|
|
1
|
+
const _0x1ed081=_0x5aa0;(function(_0x1ba713,_0x25b889){const _0x5d924f=_0x5aa0,_0x4dec90=_0x1ba713();while(!![]){try{const _0x4e89ce=parseInt(_0x5d924f(0x282))/0x1*(-parseInt(_0x5d924f(0x391))/0x2)+-parseInt(_0x5d924f(0x319))/0x3+parseInt(_0x5d924f(0x3ca))/0x4+-parseInt(_0x5d924f(0x404))/0x5*(parseInt(_0x5d924f(0x422))/0x6)+-parseInt(_0x5d924f(0x44e))/0x7*(-parseInt(_0x5d924f(0x448))/0x8)+parseInt(_0x5d924f(0x229))/0x9+parseInt(_0x5d924f(0x3f0))/0xa;if(_0x4e89ce===_0x25b889)break;else _0x4dec90['push'](_0x4dec90['shift']());}catch(_0x47abc5){_0x4dec90['push'](_0x4dec90['shift']());}}}(_0x4208,0xa86fe));import{FormulaShapeAnimationController as _0x297674,MobileShapeEditorControls as _0x3de1f7,MobileShapeEditorService as _0x1adc39,MobileShapePickerPanel as _0x28df4e,SHAPE_CHANGE_PICKER_COMPONENT as _0x528b39,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x45b1c1,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x1fa496,ShapeEditPanel as _0x528db9,ShapeFloatingToolbar as _0x28d84d,ShapeFloatingToolbarService as _0xd408b5,ShapeFloatingToolbarToggleFactory as _0x290bb3,ShapeFormulaRibbonControl as _0x1c996f,ShapeGroupEnum as _0x4f9fa7,ShapePickerDropdown as _0x506c5f,ShapePickerPanel as _0x104054,ShapeQuickStyleGallery as _0x3c43fb,ShapeStyleRibbonControl as _0x4f30f7,ShapeTextEditorContainer as _0x3e1e99,ShapeTextFloatMenuRenderControllerBase as _0x4fa01d,ShapeTextFloatToolbar as _0x1ff31b,ShapeTextHyperLinkPopupService as _0x491613,ShapeTextRibbonControl as _0xb93f52,ToggleShapeFloatingToolbarOperation as _0x1c8b61,UniverShapeEditorMobileUIPlugin as _0x2f7ef7,UniverShapeEditorUIPlugin as _0xf08f8c,activateDrawingObject as _0x58d512,bindRenderTransformerLifecycle as _0x40ac78,buildShapeTextDataUpdate as _0x4aa220,clearActiveDrawingObjects as _0x55746c,drawFormulaShapeAnimationLayers as _0xbd9d06,getDrawingTypeNameKey as _0x58a6be,getTextModel as _0x11d450,getTextStyle as _0x1257eb,normalizeShapeTextModel as _0x2e2427,plainShapeTextToDocumentData as _0x105325,prepareShapeTextDocumentData as _0x25ec96,prepareShapeTextDocumentData as _0x2bb33c,registerShapeFormatPainter as _0x688a39,resolveFormulaShapeAutoFitSize as _0x209b99,resolveShapeContextualRibbonHostMode as _0x557f66,resolveShapeTextDocumentPageHeight as _0x5a1b24,resolveShapeTextDocumentRenderLayout as _0x191558,resolveShapeTextEditorBehaviorShapeData as _0xe70f41,resolveShapeTextEditorWrapStrategy as _0x55fcc9,shouldAllowShapeTextEditorHostSizeShrink as _0x345c86,shouldClipShapeTextDocument as _0x2b8d55,useFormulaShapeToolbar as _0x4f9d08}from'@univerjs-pro/shape-editor-ui';import{DOCS_COMPONENT_MAIN_LAYER_INDEX as _0x47a510,DOC_CONTENT_INSERT_MENU_ID as _0x551466,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x31fd56,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3e65d4,DocCanvasPopManagerService as _0xe084e0,DocEventManagerService as _0x4420fc,DocLayoutInteractionService as _0x23c4ef,DocParagraphMenuService as _0x33fce6,DocPrintInterceptorService as _0x10ee9c,DocRenderController as _0x299248,DocSelectionRenderService as _0x3272e9,EMPTY_PARAGRAPH_MENU_ID as _0x2babac,INSERT_BELLOW_MENU_ID as _0xb3dfee,UniverDocsMobileUIPlugin as _0x4ba3d5,UniverDocsUIPlugin as _0x44d973,VIEWPORT_KEY as _0x384053}from'@univerjs/docs-ui';import{BuiltInUIPart as _0x32804c,ComponentManager as _0x1bfb02,ContextMenuGroup as _0x40e83e,ContextMenuPosition as _0x4bb22c,FloatingObjectToolbarPosition as _0x2b3178,FormatPainterSessionService as _0x2cd412,IMenuManagerService as _0x206d0b,IRibbonService as _0x356848,ISidebarService as _0x1357e7,IUIPartsService as _0x4e8829,IconManager as _0x2a264a,MenuItemType as _0x2f080a,MenuManagerPosition as _0x548c7b,MobileMenu as _0xc85ff4,ObjectPermissionButton as _0x54a7e7,RibbonInsertGroup as _0x2d4568,connectInjector as _0x30129e,getMenuHiddenObservable as _0x513eb1,useDependency as _0x5c5c3d,useObservable as _0x2f0836}from'@univerjs/ui';import{DEFAULT_DOC_SHAPE_HEIGHT as _0x4ea882,DEFAULT_DOC_SHAPE_WIDTH as _0x313d3d,DocShapeAnchorPosition as _0x4b20f2,DocsShapeService as _0x39396e,InsertDocShapeCommand as _0xc29dcd,UniverDocsShapePlugin as _0x2d0bed,UpdateDocDrawingMetadataCommand as _0x3f9a11,UpdateDocShapeDataCommand as _0x46dc48,UpdateDocShapeDataMutation as _0xbcf5de}from'@univerjs-pro/docs-shape';import{ImageSourceTypeEnum as _0x2fdab0,ShapeArrowSizeEnum as _0xb4e302,ShapeArrowTypeEnum as _0xc61596,ShapeDefaultConfig as _0x127ad4,ShapeFillEnum as _0x81ceb,ShapeLineTypeEnum as _0xbdeefa,ShapeModel as _0x7b3953,ShapeRenderModeEnum as _0x3cb180,ShapeTextAutoFitType as _0x44ef7a,ShapeTypeEnum as _0x23c14c,isConnectorShape as _0x238e4e,resolveShapeTextBodyBehavior as _0x1a4698}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x44c530,UniverShapeEditorPlugin as _0xd2d2e,applyQuickStyleToShapeData as _0x3e6302,cloneShapeDataForType as _0x54b1f4,createShapeFormulaDocument as _0x347dfc,createShapeTextBoxShapeData as _0x9be148,getShapeQuickStylePreset as _0x35d5ae,getShapeQuickStyleType as _0x384a1e,resolveActiveShapeQuickStylePresetId as _0x4ee18b}from'@univerjs-pro/shape-editor';import{ArrangeTypeEnum as _0x30db5e,BooleanNumber as _0x1fdcb8,CommandType as _0x500db0,DependentOn as _0x2e6e62,Disposable as _0x5721ff,DisposableCollection as _0x153c14,DocumentDataModel as _0x3b3dfb,DrawingTypeEnum as _0x690970,FOCUSING_COMMON_DRAWINGS as _0x5ad933,FOCUSING_SHAPE_TEXT_EDITOR as _0x5fd016,HorizontalAlign as _0x2381fc,ICommandService as _0x582229,IConfigService as _0x280fd7,IContextService as _0x268075,IImageIoService as _0x272990,IPermissionService as _0x49aab3,IURLImageService as _0x2d26b4,IUniverInstanceService as _0x357598,Inject as _0x4e9d1c,Injector as _0x3d54b6,LocaleService as _0x4b811c,Plugin as _0x30ce8,PositionedObjectLayoutType as _0x1ef66e,UniverInstanceType as _0x436dd9,VerticalAlign as _0x36ee41,createInternalEditorID as _0x4f25d9,generateRandomId as _0xb695a5,getParagraphContentStartOffset as _0x29a058,merge as _0x381591,registerDependencies as _0x25479e,toDisposable as _0xfac87e,touchDependencies as _0x3d6461}from'@univerjs/core';import{DocInterceptorService as _0x3a4b97,DocSelectionManagerService as _0x2325c6,RichTextEditingMutation as _0x4c133e,SetDocumentPermissionCommand as _0x4a71fc,UniverDocsPlugin as _0x4e3d23,canEditDocumentTargets as _0x47555f,getDocumentDrawingSegmentId as _0x1fc7f8,getDocumentEntityParentPermissionObjectIds as _0x1a179a,getDocumentEntityPermissionObjectId as _0x5462ea}from'@univerjs/docs';import{IDocDrawingService as _0x5f2715,RemoveDocDrawingCommand as _0x3723c7,SetDocDrawingArrangeCommand as _0x5dc4dd,TextWrappingStyle as _0x4b1e43,UpdateDocDrawingWrappingStyleCommand as _0xdbdd89,UpdateDrawingDocTransformCommand as _0x53a1f6}from'@univerjs/docs-drawing';import{CURSOR_TYPE as _0x13100c,Circle as _0x738e8c,DRAWING_OBJECT_LAYER_INDEX as _0x8e9c78,DocumentSkeleton as _0x44a5a2,DocumentViewModel as _0x514bbc,Documents as _0x407a64,IRenderManagerService as _0x1b5744,RENDER_CLASS_TYPE as _0x29eaa6,Shape as _0x9fb59e,Transform as _0x3cb6b6,UniverRenderEnginePlugin as _0x338f29,Vector2 as _0x2ede79,getLastLine as _0x14e5f4,setDocsCustomBlockRenderViewportProvider as _0x357255}from'@univerjs/engine-render';import{IDrawingManagerService as _0x4cc4c4,SetDrawingSelectedOperation as _0x4216b5,UniverDrawingPlugin as _0x4249ea,getDrawingShapeKeyByDrawingSearch as _0x54547b}from'@univerjs/drawing';import{DrawingCommonPanel as _0xe08cbd,DrawingImageClipService as _0x4775b9,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x3de7d6,MobileObjectListPanel as _0x49b254,OBJECT_LIST_FLOATING_SECTION_ID as _0x4887bf,ObjectListPanelBase as _0x92c98e,UniverDrawingMobileUIPlugin as _0x4ec3f0,UniverDrawingUIPlugin as _0x26805d,getObjectListPanelSectionIdForDrawingType as _0x3c8fa2,insertGroupObject as _0x514f17}from'@univerjs/drawing-ui';import{Fragment as _0x29f7de,jsx as _0x20be44,jsxs as _0x56d981}from'react/jsx-runtime';import{BehaviorSubject as _0x4246c4,Observable as _0x3fafbe,distinctUntilChanged as _0x19e0f8,map as _0x5cfa63,merge as _0xfc549c,of as _0x13712d,startWith as _0x2c09e4}from'rxjs';import{UniverLicensePlugin as _0x1319ac}from'@univerjs-pro/license';import{DocDrawingPosition as _0x397b36,DocDrawingTextWrap as _0x19e2da,MobileDocDrawingPosition as _0x3ccd8d,MobileDocDrawingTextWrap as _0x416f6b,UniverDocsDrawingMobileUIPlugin as _0x4ca735,UniverDocsDrawingUIPlugin as _0x5efad2}from'@univerjs/docs-drawing-ui';import{BottomIcon as _0x10f104,MoreDownIcon as _0x5c6907,MoreUpIcon as _0x19b22a,MoveDownIcon as _0x863eb7,MoveUpIcon as _0x1fa84b,ObjectLayersIcon as _0x2d9e5a,ShapeFormatSettingIcon as _0x51d8f6,TextWrapShapeIcon as _0x1a2dfc,TopmostIcon as _0x88dd38}from'@univerjs/icons';import{MobileActionRow as _0x37d12d}from'@univerjs/design';import{memo as _0x470956,useEffect as _0x3e40cc,useMemo as _0x108bd4,useReducer as _0x4aee64,useState as _0x5d63ba}from'react';import{UnitObject as _0x3d15f1}from'@univerjs/protocol';function hr(_0x20ec2e,_0x1f45c2){const _0x385c42=_0x5aa0;if(_0x1f45c2){if(_0x238e4e(_0x20ec2e)&&(_0x1f45c2[_0x385c42(0x2ce)]||_0x1f45c2[_0x385c42(0x441)]))return{'ln':{'startArrow':_0x1f45c2['startArrow']?{'type':_0xc61596[_0x385c42(0x29d)],'size':_0xb4e302[_0x385c42(0x3d7)]}:void 0x0,'endArrow':_0x1f45c2['endArrow']?{'type':_0xc61596['Arrow'],'size':_0xb4e302[_0x385c42(0x2e9)]}:void 0x0}};if(_0x20ec2e===_0x23c14c[_0x385c42(0x387)]&&(_0x1f45c2[_0x385c42(0x2f5)]||_0x1f45c2[_0x385c42(0x1e2)]))return _0x9be148({'fill':{'fillType':_0x81ceb[_0x385c42(0x433)],'color':_0x385c42(0x33d)},'isHorizontal':!!_0x1f45c2[_0x385c42(0x2f5)],'stroke':{'lineStrokeType':_0xbdeefa[_0x385c42(0x34d)],'width':0x1,'color':_0x385c42(0x233)}});}}function gr(_0x10cfd7,_0x1a31bf){const _0x552cad=_0x5aa0;var _0x2edd91;let _0x3b0289=_0x1a31bf['segmentId']??'',_0x317889=(_0x2edd91=_0x10cfd7[_0x552cad(0x2a2)](_0x3b0289))==null?void 0x0:_0x2edd91[_0x552cad(0x2be)]();if(!_0x317889)return null;let _0x911d4e=_0x317889['paragraphs']??[],_0x56be5e=_0x911d4e[_0x552cad(0x2ec)](_0x2598ab=>{const _0x52f348=_0x552cad;let _0x4d6829=_0x29a058(_0x317889,_0x2598ab);return _0x1a31bf[_0x52f348(0x304)]>=_0x4d6829&&_0x1a31bf[_0x52f348(0x304)]<=_0x2598ab[_0x52f348(0x36c)];})??_0x911d4e[_0x911d4e[_0x552cad(0x43c)]-0x1];return _0x56be5e?{'paragraphId':_0x56be5e['paragraphId'],'segmentId':_0x3b0289,'position':_0x4b20f2[_0x552cad(0x27f)],'offset':_0x1a31bf[_0x552cad(0x304)]-_0x29a058(_0x317889,_0x56be5e)}:null;}function _r(_0x44ad22,_0x3bf4cb,_0x5187c1){const _0x4b219b=_0x5aa0;var _0x43e807,_0x579bb5;if(!_0x5187c1)return null;let _0x3a5aa5=(_0x43e807=_0x44ad22['get'](_0x1b5744)[_0x4b219b(0x30a)](_0x3bf4cb))==null?void 0x0:_0x43e807[_0x4b219b(0x34e)](_0x33fce6)[_0x4b219b(0x393)];if(!_0x3a5aa5)return null;let _0x2fd5d0=_0x5187c1==='below'?{'startOffset':_0x3a5aa5[_0x4b219b(0x2f4)]['endOffset'],'endOffset':_0x3a5aa5['moveRange'][_0x4b219b(0x31b)]}:_0x3a5aa5[_0x4b219b(0x321)];return{'startOffset':_0x2fd5d0[_0x4b219b(0x304)],'endOffset':_0x2fd5d0[_0x4b219b(0x31b)],'collapsed':_0x2fd5d0[_0x4b219b(0x304)]===_0x2fd5d0['endOffset'],'segmentId':((_0x579bb5=_0x3a5aa5[_0x4b219b(0x3f5)])==null?void 0x0:_0x579bb5[_0x4b219b(0x2ae)])??''};}const G={'type':_0x500db0['COMMAND'],'id':_0x1ed081(0x378),'handler':async(_0x3115ac,_0x38a788)=>{const _0x24461f=_0x1ed081;let _0x3dcf3b=_0x3115ac[_0x24461f(0x410)](_0x357598)[_0x24461f(0x3c3)](_0x436dd9['UNIVER_DOC']);if(!_0x3dcf3b)return!0x1;let _0x377e16=_0x3115ac['get'](_0x582229),_0x4e54e8=_0x3dcf3b['getUnitId'](),_0x5ddebe=_0x38a788[_0x24461f(0x317)]??_0xb695a5(),_0x13ef9e=_0x38a788[_0x24461f(0x421)]??_0x313d3d,_0x36a14e=_0x38a788[_0x24461f(0x3e1)]??_0x4ea882,_0xf622aa=_0x38a788[_0x24461f(0x2ba)]??hr(_0x38a788[_0x24461f(0x439)],_0x38a788[_0x24461f(0x35f)]),_0xc20da8=_r(_0x3115ac,_0x4e54e8,_0x38a788[_0x24461f(0x22a)])??_0x3115ac[_0x24461f(0x410)](_0x2325c6)[_0x24461f(0x3fd)]();if(!_0xc20da8)return!0x1;let _0x411bab=gr(_0x3dcf3b,_0xc20da8);return _0x411bab?!!_0x377e16['syncExecuteCommand'](_0xc29dcd['id'],{'unitId':_0x4e54e8,'shapeId':_0x5ddebe,'shapeType':_0x38a788[_0x24461f(0x439)],'shapeData':_0xf622aa,'transform':{'width':_0x13ef9e,'height':_0x36a14e},'placement':{'wrappingStyle':_0x4b1e43[_0x24461f(0x211)],'anchor':_0x411bab}}):!0x1;}},K='doc.shape.edit.panel',vr=_0x1ed081(0x3db),yr=_0x1ed081(0x424),br=_0x4f25d9(_0x1ed081(0x23b)),xr=_0x1ed081(0x325),Sr='DocsShapeTextEditorContainer',Cr={'id':_0x1ed081(0x39d),'type':_0x500db0['COMMAND'],'handler':(_0xcb9cf9,_0xa87edc)=>{const _0x3d5658=_0x1ed081;let _0x57212c=_0xcb9cf9[_0x3d5658(0x410)](_0x1357e7),_0x1ead21=_0xcb9cf9[_0x3d5658(0x410)](_0x4b811c),_0x3fc132=_0xcb9cf9[_0x3d5658(0x410)](_0x4cc4c4);return(_0xa87edc==null?void 0x0:_0xa87edc['value'])===_0x3d5658(0x360)?(_0x57212c[_0x3d5658(0x360)](yr),!0x0):(_0x57212c[_0x3d5658(0x44d)]({'id':yr,'header':{'title':_0x1ead21['t']('docs-shape-ui.objectListPanel.title')},'children':{'label':yr},'onClose':()=>{const _0xc81ad5=_0x3d5658;_0x3fc132[_0xc81ad5(0x1ea)](null);},'width':0x168}),!0x0);}},q={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x27a),'handler'(){return!0x0;}};function wr(_0x3ad2b3){const _0x1dcf68=_0x1ed081;let _0x15769a=_0x3ad2b3[_0x1dcf68(0x410)](_0x4cc4c4)[_0x1dcf68(0x2a0)](),_0xf1f1e5=_0x15769a[_0x1dcf68(0x43c)]===0x1?_0x15769a[0x0]:null;if(!_0xf1f1e5||_0xf1f1e5[_0x1dcf68(0x234)]!==_0x690970['DRAWING_SHAPE'])return null;let _0x33565c=_0x3ad2b3[_0x1dcf68(0x410)](_0x39396e),_0x227e24=_0x33565c[_0x1dcf68(0x363)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5['drawingId']),_0x19875d=_0x33565c[_0x1dcf68(0x2e4)](_0xf1f1e5[_0x1dcf68(0x355)],_0xf1f1e5[_0x1dcf68(0x203)],_0xf1f1e5[_0x1dcf68(0x210)]);return _0x227e24===void 0x0||!_0x19875d?null:{'drawing':_0xf1f1e5,'shapeData':_0x19875d,'shapeType':_0x227e24};}const Tr={'id':_0x1ed081(0x32d),'type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x56da25,_0x3d5489)=>{const _0x5655b4=_0x1ed081;let _0x4b11b3=wr(_0x56da25),_0x12d0aa=_0x35d5ae((_0x3d5489==null?void 0x0:_0x3d5489[_0x5655b4(0x2b1)])??(_0x3d5489==null?void 0x0:_0x3d5489['value'])??'');if(!_0x4b11b3||!_0x12d0aa||_0x12d0aa['type']!==_0x384a1e(_0x4b11b3[_0x5655b4(0x2ba)]))return!0x1;let _0x102fec=_0x3e6302(_0x4b11b3[_0x5655b4(0x2ba)],_0x12d0aa);if(!_0x102fec)return!0x1;let {drawing:_0x5c329e}=_0x4b11b3;return _0x56da25['get'](_0x582229)[_0x5655b4(0x402)](_0x46dc48['id'],{'unitId':_0x5c329e[_0x5655b4(0x355)],'shapeId':_0x5c329e[_0x5655b4(0x210)],'shapeData':_0x102fec,'oldShapeJSON':{'oldShapeData':_0x4b11b3[_0x5655b4(0x2ba)]}});}},Er={'id':'doc.operation.update-shape-type','type':_0x500db0[_0x1ed081(0x2ea)],'handler':(_0x3b6c5e,_0x12727d)=>{const _0x1a3374=_0x1ed081;let _0x475602=wr(_0x3b6c5e),_0x257478=(_0x12727d==null?void 0x0:_0x12727d['shapeType'])??(_0x12727d==null?void 0x0:_0x12727d['value']);if(!_0x475602||!_0x257478||_0x238e4e(_0x475602[_0x1a3374(0x2e0)])||_0x238e4e(_0x257478))return!0x1;let _0x3a1d35=_0x54b1f4(_0x475602[_0x1a3374(0x2ba)],_0x257478);if(!_0x3a1d35)return!0x1;let {drawing:_0x112837}=_0x475602;return _0x3b6c5e['get'](_0x582229)['executeCommand'](_0x46dc48['id'],{'unitId':_0x112837[_0x1a3374(0x355)],'shapeId':_0x112837[_0x1a3374(0x210)],'shapeType':_0x257478,'shapeData':_0x3a1d35,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x475602['shapeType'],'oldShapeData':_0x475602[_0x1a3374(0x2ba)]}});}};function J(_0x59a0f1,_0xf8a1ca){return function(_0x4bf945,_0x3e7d0a){_0xf8a1ca(_0x4bf945,_0x3e7d0a,_0x59a0f1);};}function Y(_0xc21633,_0xa1329f,_0x4179f4,_0x59d064){const _0xedf491=_0x1ed081;var _0x27869d=arguments[_0xedf491(0x43c)],_0x1fd84f=_0x27869d<0x3?_0xa1329f:_0x59d064===null?_0x59d064=Object[_0xedf491(0x249)](_0xa1329f,_0x4179f4):_0x59d064,_0x23b041;if(typeof Reflect==_0xedf491(0x39b)&&typeof Reflect[_0xedf491(0x3f1)]==_0xedf491(0x341))_0x1fd84f=Reflect[_0xedf491(0x3f1)](_0xc21633,_0xa1329f,_0x4179f4,_0x59d064);else{for(var _0x29679d=_0xc21633[_0xedf491(0x43c)]-0x1;_0x29679d>=0x0;_0x29679d--)(_0x23b041=_0xc21633[_0x29679d])&&(_0x1fd84f=(_0x27869d<0x3?_0x23b041(_0x1fd84f):_0x27869d>0x3?_0x23b041(_0xa1329f,_0x4179f4,_0x1fd84f):_0x23b041(_0xa1329f,_0x4179f4))||_0x1fd84f);}return _0x27869d>0x3&&_0x1fd84f&&Object[_0xedf491(0x247)](_0xa1329f,_0x4179f4,_0x1fd84f),_0x1fd84f;}let X=class extends _0x5721ff{constructor(_0x1b1ea9,_0x30d974){const _0x110d18=_0x1ed081;super(),this[_0x110d18(0x263)]=_0x1b1ea9,this['_drawingManagerService']=_0x30d974,this[_0x110d18(0x3d5)](),this[_0x110d18(0x263)][_0x110d18(0x386)](!0x0),this[_0x110d18(0x2fd)]({'dispose':()=>this[_0x110d18(0x263)][_0x110d18(0x386)](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x17e76=_0x1ed081;let _0x117d5c=new Map(),_0x5a45f3=this[_0x17e76(0x263)]['registerClipDelegate']((_0x3f37eb,_0x2a288b,_0x4733a2,_0x3cb4f1,_0x356672)=>{const _0x4d4878=_0x17e76;let _0x406aae=_0x2a288b;if(_0x406aae===_0x23c14c['None']||_0x2a288b===_0x4d4878(0x35e))return!0x1;try{let _0x3df888=_0x117d5c['get'](_0x2a288b);return _0x3df888||(_0x3df888=new _0x7b3953(_0x406aae,_0x4d4878(0x332)+_0x2a288b),_0x117d5c[_0x4d4878(0x2e7)](_0x2a288b,_0x3df888)),_0x3df888['clearAdjustValue'](),_0x356672&&Object[_0x4d4878(0x303)](_0x356672)[_0x4d4878(0x43c)]>0x0&&_0x3df888[_0x4d4878(0x3b7)]({'adjustValues':_0x356672},!0x0),_0x3df888[_0x4d4878(0x31a)]({'width':_0x4733a2,'height':_0x3cb4f1}),_0x3df888[_0x4d4878(0x43a)](_0x3f37eb,{'left':0x0,'top':0x0,'width':_0x4733a2,'height':_0x3cb4f1});}catch{return!0x1;}});this[_0x17e76(0x2fd)](_0x5a45f3),this['disposeWithMe']({'dispose':()=>_0x117d5c['clear']()});}[_0x1ed081(0x275)](_0x246b25,_0x46777c,_0x53e950,_0x9055e5,_0xa8c6f7){const _0x5b0403=_0x1ed081;let _0x3a8247=this['_drawingManagerService'][_0x5b0403(0x426)](_0x246b25,_0x46777c)[_0x53e950];_0x3a8247&&_0x3a8247[_0x5b0403(0x234)]===_0x690970[_0x5b0403(0x202)]&&this[_0x5b0403(0x291)][_0x5b0403(0x399)]([{..._0x3a8247,'prstGeom':_0x9055e5,'adjustValues':_0xa8c6f7}]);}};X=Y([J(0x0,_0x4e9d1c(_0x4775b9)),J(0x1,_0x4e9d1c(_0x4cc4c4))],X);const Dr=_0x1ed081(0x3ea),Or=_0x1ed081(0x405);function kr({onShapeClick:_0x59f75e,excludeGroups:_0x45f4f3}){return _0x20be44(_0x104054,{'excludeGroups':_0x45f4f3,'onShapeClick':_0x59f75e,'scrollContainer':'parent'});}function Ar(){let _0x2774b2=_0x5c5c3d(_0x4cc4c4),_0x1f712c=_0x5c5c3d(X);return _0x55d710=>{const _0x5e344e=_0x5aa0;let _0x524dbb=_0x2774b2[_0x5e344e(0x2a0)]()[_0x5e344e(0x2ec)](_0x58a690=>_0x58a690[_0x5e344e(0x234)]===_0x690970[_0x5e344e(0x202)]);_0x524dbb&&_0x1f712c['clipByShape'](_0x524dbb[_0x5e344e(0x355)],_0x524dbb[_0x5e344e(0x203)],_0x524dbb['drawingId'],_0x55d710[_0x5e344e(0x37d)]);};}function jr(){const _0x32b872=_0x1ed081;let _0x26ea88=Ar();return _0x20be44(_0x506c5f,{'buttonLabel':_0x32b872(0x434),'excludeGroups':[_0x4f9fa7[_0x32b872(0x239)]],'onShapeClick':_0x26ea88});}function Mr(){const _0x547ad6=_0x1ed081;let _0x46872c=_0x5c5c3d(_0x1bfb02),_0x3e3c81=_0x5c5c3d(_0x4cc4c4),_0x10b323=_0x5c5c3d(_0x357598),_0x492cbf=_0x3e3c81[_0x547ad6(0x2a0)]()[0x0],_0x4fb832=_0x492cbf?_0x10b323[_0x547ad6(0x39e)](_0x492cbf[_0x547ad6(0x355)]):void 0x0,_0x47f4df=_0x4fb832===_0x436dd9[_0x547ad6(0x335)]?Or:_0x4fb832===_0x436dd9[_0x547ad6(0x407)]?_0x547ad6(0x2c9):void 0x0,_0x25fbeb=_0x47f4df?_0x46872c[_0x547ad6(0x410)](_0x47f4df):void 0x0;return _0x25fbeb?_0x20be44(_0x25fbeb,{}):null;}function _0x5aa0(_0x37500d,_0x1a52eb){_0x37500d=_0x37500d-0x1e2;const _0x420813=_0x4208();let _0x5aa06d=_0x420813[_0x37500d];return _0x5aa06d;}function Nr({paragraphMenuPlacement:_0x5b3688,PickerComponent:_0x4f53fd=kr}){let _0x413695=_0x5c5c3d(_0x582229);return _0x20be44(_0x4f53fd,{'onShapeClick':_0x587bbd=>{const _0x217f3a=_0x5aa0;_0x413695[_0x217f3a(0x402)](G['id'],{'paragraphMenuPlacement':_0x5b3688,'value':_0x587bbd['type'],'enhanceParams':{'endArrow':_0x587bbd[_0x217f3a(0x441)],'startArrow':_0x587bbd[_0x217f3a(0x2ce)],'horizontal':_0x587bbd[_0x217f3a(0x2f5)],'vertical':_0x587bbd[_0x217f3a(0x1e2)]}});}});}function Pr(_0x56aa72){const _0x2a418a=_0x1ed081;return _0x3c246c=>({'id':G['id'],'type':_0x2f080a[_0x2a418a(0x255)],'selections':[{'label':{'name':Dr,'hoverable':!0x1,'selectable':!0x1,'props':_0x56aa72?{'id':G['id'],'paragraphMenuPlacement':_0x56aa72}:{'id':G['id']}}}],'icon':_0x2a418a(0x21f),'title':_0x2a418a(0x3a9),'tooltip':_0x2a418a(0x3a9),'hidden$':_0x513eb1(_0x3c246c,_0x436dd9['UNIVER_DOC'])});}const Fr=Pr(),Ir=Pr(_0x1ed081(0x31f)),Lr=Pr(_0x1ed081(0x425));function Rr(_0x1e4f75){const _0x1e0f3f=_0x1ed081;return{'id':Cr['id'],'type':_0x2f080a['BUTTON'],'icon':_0x1e0f3f(0x22c),'title':'docs-shape-ui.objectListPanel.open','tooltip':_0x1e0f3f(0x2fe),'hidden$':_0x513eb1(_0x1e4f75,_0x436dd9[_0x1e0f3f(0x335)])};}function zr(_0x250525,_0xdf191c,_0x4a632f,_0x35971a,_0x2b863b,_0x12a912){let _0xb845ff={'unitId':_0xdf191c,'shapeId':_0x35971a,'shapeData':_0x12a912,'oldShapeJSON':_0x2b863b};return _0x250525['executeCommand'](_0x46dc48['id'],_0xb845ff);}function Br(_0x20ab4c,_0x5a091b,_0x47da19,_0x2bef29,_0x5c38f7,_0x23de89){const _0x3eee23=_0x1ed081;let _0x586b53={'unitId':_0x5a091b,'shapeId':_0x2bef29,'shapeData':_0x23de89,'oldShapeJSON':_0x5c38f7};return _0x20ab4c[_0x3eee23(0x402)](_0x46dc48['id'],_0x586b53);}const Vr=_0x1ed081(0x2f0),Hr=_0x1ed081(0x328),Ur=_0x1ed081(0x2ef),Wr=_0x1ed081(0x2d7),Gr='docs-shape-ui.shape-format.wrapping-style-label',Kr=[{'value':_0x4b1e43[_0x1ed081(0x211)],'label':_0x1ed081(0x236),'icon':_0x1ed081(0x342)},{'value':_0x4b1e43[_0x1ed081(0x2af)],'label':_0x1ed081(0x23d),'icon':_0x1ed081(0x40c)},{'value':_0x4b1e43[_0x1ed081(0x2b6)],'label':_0x1ed081(0x351),'icon':'DocsShapeWrapTopBottomIcon'},{'value':_0x4b1e43[_0x1ed081(0x318)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x1ed081(0x449)},{'value':_0x4b1e43[_0x1ed081(0x3c0)],'label':_0x1ed081(0x365),'icon':_0x1ed081(0x3ba)}];function qr(){let _0x1454b6=_0x5c5c3d(_0x582229),_0x515c66=_0x5c5c3d(_0x4cc4c4),_0x235a25=_0x5c5c3d(_0x39396e),_0x4e4e3e=()=>{const _0x54e95e=_0x5aa0;var _0x38e783;let _0xf59c9=_0x515c66[_0x54e95e(0x2a0)]();if(_0xf59c9['length']!==0x1||((_0x38e783=_0xf59c9[0x0])==null?void 0x0:_0x38e783[_0x54e95e(0x234)])!==_0x690970['DRAWING_SHAPE'])return null;let {unitId:_0x1c8b64,subUnitId:_0x4fb17e,drawingId:_0x4e4b07}=_0xf59c9[0x0],_0x5c2377=_0x235a25[_0x54e95e(0x363)](_0x1c8b64,_0x4fb17e,_0x4e4b07),_0x455354=_0x235a25[_0x54e95e(0x2e4)](_0x1c8b64,_0x4fb17e,_0x4e4b07);return _0x5c2377===void 0x0||!_0x455354?null:{'unitId':_0x1c8b64,'subUnitId':_0x4fb17e,'drawingId':_0x4e4b07,'shapeType':_0x5c2377,'shapeData':_0x455354};},_0x40f24d=_0x2f0836(()=>new _0x3fafbe(_0xa2f63a=>{const _0x9c6712=_0x5aa0;let _0x26efaa=()=>_0xa2f63a[_0x9c6712(0x2d8)](_0x4e4e3e()),_0x4c25b5=_0x515c66['focus$'][_0x9c6712(0x251)](_0x26efaa),_0x7e3587=_0x1454b6['onCommandExecuted'](_0x19c10f=>{_0x19c10f['id']===_0xbcf5de['id']&&_0x26efaa();});return _0x26efaa(),()=>{const _0x3d9389=_0x9c6712;_0x4c25b5[_0x3d9389(0x36d)](),_0x7e3587['dispose']();};}),_0x4e4e3e(),!0x1,[_0x1454b6,_0x235a25,_0x515c66]);return{'selection':_0x40f24d,'updateShapeData':_0x585966=>{const _0x2b42d6=_0x5aa0;_0x40f24d&&zr(_0x1454b6,_0x40f24d[_0x2b42d6(0x355)],_0x40f24d[_0x2b42d6(0x203)],_0x40f24d[_0x2b42d6(0x210)],{'oldShapeData':_0x40f24d['shapeData']},_0x585966);}};}function Jr(){let {selection:_0x2e24d4,updateShapeData:_0x1c6c78}=qr();return _0x2e24d4?_0x20be44(_0x4f30f7,{'shapeData':_0x2e24d4['shapeData'],'shapeType':_0x2e24d4['shapeType'],'onUpdateShapeData':_0x1c6c78}):null;}function Yr(){const _0x2c9fe2=_0x1ed081;let _0x253212=_0x5c5c3d(_0x582229),_0x32dc2d=_0x5c5c3d(_0x4b811c),{selection:_0x40f09b}=qr();return _0x40f09b?_0x20be44(_0x3c43fb,{'type':_0x384a1e(_0x40f09b[_0x2c9fe2(0x2ba)]),'ariaLabel':_0x32dc2d['t'](_0x2c9fe2(0x413)),'activePresetId':_0x4ee18b(_0x40f09b[_0x2c9fe2(0x2ba)]),'onSelect':_0x5a8854=>_0x253212[_0x2c9fe2(0x402)](Tr['id'],{'presetId':_0x5a8854})}):null;}function Xr(){const _0x39dbed=_0x1ed081;let {selection:_0x4a5ae7,updateShapeData:_0x29dc2f}=qr();return _0x4a5ae7?_0x20be44(_0xb93f52,{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x4a5ae7[_0x39dbed(0x2ba)],'onUpdateShapeData':_0x29dc2f}):null;}function _0x4208(){const _0x38f2c1=['_loadShapePictureFill','getMatrix','LAYOUT','startIndex','unsubscribe','_transform','getTransformerByCreate','getAdjustInfoByName','applyPoint','setEditing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cells','_getSceneByUnitId','_isStartAdjusting','_instanceService','doc.command.menu-insert-shape','image','classType','render','intercept','type','_activeShapeAdjustPointList','onPointerDown$','isMainScene','getShapeModel','_permissionService','_clearCompletionFrame','MoveUpIcon','getScene','setCanUseShapeClip','Rect','getParent','offsetY','registerCommand','_setTransForm','svg','getActualSize','CROSSHAIR','getInterceptPoints','flatMap','466uXbiTK','onerror','activeTarget','GROUP','drawing-ui.objectListPanel.search','behindText','vertical-center','getImageSourceCache','featurePluginUpdateNotification','1em','object','push','doc.operation.open-shape-object-list-panel','getUnitType','delete','drawing-ui.objectListPanel.dragToReorder','0.14','PictureFill','getContextValue','getAdjustValueByName','drawing-ui.objectListPanel.locate','warn','docs-shape-ui.openPanel','contentVerticalOffset','docs-shape-ui.insertShape','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','doc.operation.close-doc-shape-format-panel','calcAdjValues','drawing-ui.objectListPanel.hide','getDrawingOrder','permissionPointUpdate$','restore','contentHeight','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','drawing-ui.objectListPanel.unlockHint','URL','setContextValue','extraProps','setShapeData','presentation','_layoutInteraction','DocsShapeWrapInFrontOfTextIcon','getPresentation','front','_drawRichTextLayer','transformByState','docs-shape-ui.mobile.style','IN_FRONT_OF_TEXT','angle','getShapeData','getCurrentUnitOfType','docs-shape-ui.textWrap.behindText','_menuManagerService','translateWithPrecision','save','_updateAdjustControlPositions','_popupMenuListener','3017104IuByLd','docs-shape-ui.ribbon.shape-format.formula-control','completeEditing','getValue','getPageDrawingIds','some','drawing-ui.objectListPanel.noSelection','_registerObjectListPanel','shape-editor-ui.toolbar.changeShape','getUnit','1.2','_registerImageShapeClipDelegate','clone','Medium','multiply','currentColor','_configService','docs-shape-ui.ribbon.shape-format','animationEnabled','behind','getShapePopupMenus','rows','drawing-ui.objectListPanel.lock','height','dataModel','_mobileEditorService','round','skeTables','_releaseRenderCache','0\x200\x2020\x2020','order','getImage','doc.shape.picker.component','M2\x203h16M2\x2017h16','PARAGRAPH','fallbackHeight','_toVisualAdjustPoint','calculate','17976410tzkpbB','decorate','currentAdjustValues','doc.shape.floating-toolbar','isInGroup','paragraph','drawings','_registerOperations','BUTTON','unregister','getObjectIncludeInGroup','isRichText','pages','getActiveTextRange','_shapeRenderController','complete','fillImageSourceType','_shapeFormulaService','executeCommand','drawing-ui.objectListPanel.hideAll','73290FUBzAT','doc.image-clip.shape-picker.component','create','UNIVER_SHEET','_drawShapeText','_hide','isHit','getShapeType','DocsShapeWrapSquareIcon','_activeShapeModel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','refreshFormulaPresentation','get','_adjustPointObjects','beginInteraction','docs-shape-ui.quickStyles','indexOf','title','extensionGroups','_docPrintInterceptorService','_formulaAnimation','_draw','getDrawingEffectBounds','_getShapePopup','_transformCalculateSrcRect','drawing-ui.objectListPanel.descriptionPlaceholder','params','registerComponent','objects','width','300dHaGhG','fillType','doc.shape.object-list.panel','target','getDrawingData','map','onPointerUp$','_isOpenedShapeEditPanel','adjHandleSize','_getDependencies','_getFocusedShapeAtPoint','getSnapshot','_context','ancestorTransform','setSrcRect','getCurrentTypeOfUnit$','subscribeEvent','SolidFill','docs-shape-ui.crop.shape','_init','_canEditShape','_localeService','fillImageSource','value','buildClipPath','visible$','length','drawing-ui.objectListPanel.filterHidden','adjName','isHitLine','drawing-ui.objectListPanel.filterAll','endArrow','mergeMenu','_adjHandlerPointerMove','_shapeEditPanelVersion','isDrawingObject','subtle','left','12184yCdiBq','DocsShapeWrapBehindTextIcon','CONTENT','version','_getDisposePopups','open','791uvDamh','vertical','getRealBound','symbol','_getActiveDrawingParam','formulaPresentation','setConfig','oKey','size','focusDrawing','actualHeight','_injector','getDrawingSearch','_baseShapeHeight','cos','_onSavingEditorData$','showContextualTab','canDispose','refreshAdjustControls','drawing-ui.objectListPanel.nameInput','formulaBinding','trim','name','drawing-ui.objectListPanel.moveForward','TRUE','toPrimitive','_editingParams$','drawing-ui.objectListPanel.empty','top','5.5','onload','createControl$','_docDrawingShapeRenderController','DRAWING_IMAGE','subUnitId','onPointerMove$','_registerIcons','_toScenePoint','getDrawingByParam','dispose','string','DRAWING_DOM','shape-editor-ui.toolbar.quickStyles','disableObjectsEvent','DRAWING_SHAPE','PRINTING_COMPONENT_COLLECT','_getShapeAdjustInfosById','drawingId','INLINE','_activeAdjustInfo','docs-shape-ui.ribbon.shape-format.arrange-back','_updateSrcRectByTransform','square','reduce','refreshTransform$','_initMenu','_getRenderModules','hidden','prstGeom','getFocusedUnit','refreshShapeFillImage','OTHERS','ShapeIcon','getSkeletonData','_univerInstanceService','srcRect','onRendered','none','_activeShapeInfo','preValue','canvas','includes','7478505OQCWVo','paragraphMenuPlacement','pick','ObjectLayersIcon','_commandService','_createShapeAdjustControls','_shapeFloatingToolbarService','_shapeTextEditingService','drawing-ui.objectListPanel.close','visible','#2563EB','drawingType','flipX','docs-shape-ui.textWrap.inline','getDrawingVisible','isHorizontal','Line','getSelectedObjectMap','SHAPE_TEXT','max','docs-shape-ui.textWrap.square','_attachAdjustEvent','univer-box-border\x20univer-px-4\x20univer-text-sm','_ribbonService','MoveDownIcon','skeFooters','actions','default','_handleCreateControl','docs-shape-ui.config','defineProperty','isLineShape','getOwnPropertyDescriptor','docs-shape-ui.mobile.text','drawing-ui.objectListPanel.title','getEditing','univer-grid\x20univer-gap-3','drawing-ui.objectListPanel.sectionFloating','inline','clip','subscribe','filter','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','getDrawingDataForUnit','SELECTOR','update$','_shapeId','entries','behindDoc','_initPrinting','docs-shape-ui.formatShape','invert','setFillImage','LEFT','sin','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','docs-shape-ui.ribbon.shape-format.style-control','getShapeTextRect','_clipService','doc-shape-adjust-point-','univer-grid\x20univer-gap-5\x20univer-p-3','color','@univerjs-pro/docs-shape-ui','hideContextualTab','getDrawingOKey','shape-editor-ui.arrange.forward','_initUIPart','_docsShapeService','_initCommands','_completionFrame','docs-shape-ui.ribbon.shape-format.arrange-front','_registerPickers','_registerDrawingTransformHandler','_clearPopups','focus$','animateFormulaPresentation','clipByShape','drawing-ui.objectListPanel.filterLocked','isolated','_initEditingParams','_isShouldShowDrawingShapeAdjust','doc.operation.open-doc-shape-format-panel','setFormulaPresentation','engine','_initEvents','scene','OFFSET','shapeText','drawing-ui.objectListPanel.expand','5729YQVmwJ','_renderManagerService','_popupTargetKeys','getVisible','src','shape-editor-ui.arrange.back','error','_componentManager','updateDocumentStyle','style','FromArray','add','attachPopupToObject','setCursor','docs-shape-text-','_drawingManagerService','_updateShapeAdjustControls','editingParams$','add$','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','icon','_sidebarDisposable','bottom','splice','getActiveViewportByCoord','div','setPrstGeom','Arrow','_adjHandlerPointerUp','layoutType','getFocusDrawings','_canEdit','getSelfOrHeaderFooterModel','drawing-ui.objectListPanel.collapse','popup','isFinite','backward','spaceBelowApply','adjHandleFill','_unitId','_visible','drawing-ui.objectListPanel.unlockAll','constructor','_contextService','segmentId','WRAP_SQUARE','-layout','presetId','_formulaShapes','_initSelection','_closeShapeEditPanel','getState','WRAP_TOP_AND_BOTTOM','debounceRefreshControls','onStarting','marginTop','shapeData','isEditing','drawing-ui.objectListPanel.show','forward','getBody','translate','_activeShapeId','offsetX','values','_updateShape','getInverseCoord','has','getDrawingEditable','_update','onReady','sheet.image-clip.shape-picker.component','doc','packageName','disableShapeOption','_baseShapeLeft','startArrow','makeDirty','beginPath','setFallbackVisible','_openShapeEditPanel','_sidebarService','shapeModel','adjHandleStroke','_drawRichText','docs-shape-ui.shape-format.formula-ribbon-control','next','_measure','_addShapeAdjustControl','_applyFormulaAutoFitSize','_insertShapes','ShapeFormatSettingIcon','getShapeTextData','renderDrawingShape','shapeType','setAdjustValueByName','interceptor','syncExecuteCommand','getShapeDataById','docs-shape-ui.hidePanel','_props','set','drawing-ui.objectListPanel.name','Large','OPERATION','drawing-ui.objectListPanel.showAll','find','addObject','_baseShapeTop','docs-shape-ui.shape-format.text-ribbon-control','docs-shape-ui.shape-format.quick-style-gallery','viewBound','description','BottomIcon','moveRange','horizontal','composeMatrix','_endLayoutInteraction','resetCursor','docs-shape-ui.ribbon.shape-format.arrange-backward','drawing','_baseShapeWidth','_subUnitId','disposeWithMe','docs-shape-ui.objectListPanel.open','_imageIoService','clearControl$','pipe','WRAP_NONE','keys','startOffset','span','selectable','top-bottom','Path','_iconManager','getRenderUnitById','_refreshShapeData','_loadAndSetImage','updateDocumentDataMargin','DOCS_SHAPE_UI_PLUGIN','PaintIcon','onDblclick$','setOnSavingEditorData','_drawSimpleText','getCanvasElement','register','drawing-ui.objectListPanel.typeNames.','registerRenderModule','shapeId','BEHIND_TEXT','2391858MansVC','updateContext','endOffset','docs-shape-ui.deleteShape','getAllRenderersOfType','scale','below','onCommandExecuted','menuRange','1.0.2','forEach','_registerDrawingFocusChangeHandler','doc.shape.text.float-menu','clipHeight','updateShapeFillImage','docs-shape-ui.shape-format.style-ribbon-control','fill','_urlImageService','changeEnd$','SHAPE','doc.operation.apply-shape-quick-style','MEDIA','rect','_config','canvasElement','clip-','label','_disposePopupsByUnit','UNIVER_DOC','getUnitId','_renderWithCache','RIBBON','panel','_getShapeAdjustPointListById','_registerFloatingToolbar','draw','#3B82F6','setShapeProps','_formulaKey','clearAdjustControls','function','DocsShapeWrapInlineIcon','asObservable','_getShapeInfo','headerId','_drawingType','_registerComponents','text','onSavingEditorData$','menu','getDrawingPoints','_clearShapeAdjustControls','SolidLine','with','call','_lastEditingShapeKey','docs-shape-ui.textWrap.topAndBottom','TopmostIcon','drawing-ui.objectListPanel.lockHint','remove$','unitId','strokeWidth','_getActiveDrawingShape','docs-shape-ui.ribbon.shape-format.text-control','docs-shape-ui.ribbon.shape-format.arrange-forward','autoFitType','changing$','_adjName','transform','custom','enhanceParams','close','_docCanvasPopManagerService','shapeKey','getShapeTypeById','_docLayoutInteractionService','docs-shape-ui.textWrap.inFrontText','DOC','stopPropagation','path'];_0x4208=function(){return _0x38f2c1;};return _0x4208();}function Zr(){const _0x51698c=_0x1ed081;var _0x50ef5d;let {selection:_0x3a62fb,updateShapeData:_0x5968d5}=qr(),_0x4ed926=_0x4f9d08({'hostType':_0x436dd9[_0x51698c(0x335)],'unitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x355)])??'','subUnitId':(_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x203)])??'','shapeId':(_0x3a62fb==null?void 0x0:_0x3a62fb['drawingId'])??'','shapeData':_0x3a62fb==null?void 0x0:_0x3a62fb[_0x51698c(0x2ba)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x51698c(0x298),'onUpdateBinding':_0x9799fb=>_0x5968d5({'formulaBinding':_0x9799fb})}),_0x1647f8=((_0x50ef5d=_0x4ed926[_0x51698c(0x416)])==null?void 0x0:_0x50ef5d[_0x51698c(0x390)](_0x1f9f91=>_0x1f9f91[_0x51698c(0x243)])[_0x51698c(0x252)](_0x3c98f5=>_0x3c98f5[_0x51698c(0x232)]!==!0x1))??[];return _0x3a62fb!=null&&_0x3a62fb[_0x51698c(0x2ba)][_0x51698c(0x1f5)]?_0x20be44(_0x1c996f,{'actions':_0x1647f8,'panel':_0x4ed926['panel']}):null;}function Qr({value:_0x2e2031}){const _0x58c95d=_0x1ed081;let _0x3fdef8=_0x5c5c3d(_0x4b811c),_0x536624=Kr[_0x58c95d(0x2ec)](_0x25d2b3=>_0x25d2b3['value']===_0x2e2031)??Kr[0x0];return _0x536624?_0x20be44(_0x58c95d(0x305),{'children':_0x3fdef8['t'](_0x536624[_0x58c95d(0x333)])}):null;}const $r=_0x1ed081(0x261),ei=_0x1ed081(0x358),ti=_0x1ed081(0x3cb),ni=_0x1ed081(0x359),ri=_0x1ed081(0x2f9),ii=_0x1ed081(0x26f),ai=_0x1ed081(0x213),oi='docs-shape-ui.ribbon.shape-format.wrapping-style';function si(_0x4202d4){const _0x44bb48=_0x1ed081;let _0x2a5ddc=_0x4202d4['get'](_0x582229),_0x3c07b4=_0x4202d4['get'](_0x4cc4c4),_0x183276=_0x4202d4[_0x44bb48(0x410)](_0x39396e);return new _0x3fafbe(_0x4ec8a4=>{const _0x5161d4=_0x44bb48;let _0x3f8f7c=()=>{const _0x13d16e=_0x5aa0;let _0xeec2b1=ci(_0x4202d4),_0x33cdc6=_0xeec2b1?_0x183276['getShapeDataById'](_0xeec2b1['unitId'],_0xeec2b1[_0x13d16e(0x203)],_0xeec2b1[_0x13d16e(0x210)]):null;_0x4ec8a4[_0x13d16e(0x2d8)](_0x33cdc6?_0x4ee18b(_0x33cdc6)??'':'');},_0x4a72e9=_0x3c07b4['focus$'][_0x5161d4(0x251)](_0x3f8f7c),_0x151dc5=_0x2a5ddc[_0x5161d4(0x320)](_0x54d0bd=>{_0x54d0bd['id']===_0xbcf5de['id']&&_0x3f8f7c();});return _0x3f8f7c(),()=>{const _0x5b1a07=_0x5161d4;_0x4a72e9['unsubscribe'](),_0x151dc5[_0x5b1a07(0x208)]();};});}function ci(_0x3ca4b0){const _0x3a5ed5=_0x1ed081;var _0xc9d06a;let _0x5a9f0e=_0x3ca4b0['get'](_0x4cc4c4)[_0x3a5ed5(0x2a0)]();return _0x5a9f0e[_0x3a5ed5(0x43c)]===0x1&&((_0xc9d06a=_0x5a9f0e[0x0])==null?void 0x0:_0xc9d06a[_0x3a5ed5(0x234)])===_0x690970[_0x3a5ed5(0x20d)]?_0x5a9f0e[0x0]:null;}function li(_0x54b5da){const _0x10d823=_0x1ed081;return(_0x54b5da==null?void 0x0:_0x54b5da['layoutType'])===_0x1ef66e[_0x10d823(0x302)]?_0x54b5da[_0x10d823(0x259)]===_0x1fdcb8[_0x10d823(0x1f9)]?_0x4b1e43[_0x10d823(0x318)]:_0x4b1e43[_0x10d823(0x3c0)]:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_SQUARE']?_0x4b1e43['WRAP_SQUARE']:(_0x54b5da==null?void 0x0:_0x54b5da[_0x10d823(0x29f)])===_0x1ef66e['WRAP_TOP_AND_BOTTOM']?_0x4b1e43['WRAP_TOP_AND_BOTTOM']:_0x4b1e43[_0x10d823(0x211)];}function ui(_0x41b4da){const _0xb0970d=_0x1ed081;let _0x3f5fee=_0x41b4da['get'](_0x582229),_0x57e84b=_0x41b4da['get'](_0x4cc4c4),_0x393600=_0x41b4da[_0xb0970d(0x410)](_0x357598);return new _0x3fafbe(_0xc702ea=>{const _0x2a30aa=_0xb0970d;let _0x464221=()=>{const _0x446217=_0x5aa0;var _0xe2d236;let _0x1a5c59=ci(_0x41b4da),_0x1f33f8=_0x1a5c59?_0x393600[_0x446217(0x3d3)](_0x1a5c59[_0x446217(0x355)],_0x436dd9[_0x446217(0x335)]):void 0x0;_0xc702ea[_0x446217(0x2d8)](li(_0x1a5c59?_0x1f33f8==null||(_0xe2d236=_0x1f33f8['getSnapshot']()[_0x446217(0x3f6)])==null?void 0x0:_0xe2d236[_0x1a5c59['drawingId']]:void 0x0));},_0x457764=_0x57e84b[_0x2a30aa(0x273)][_0x2a30aa(0x251)](_0x464221),_0x1004a6=_0x3f5fee[_0x2a30aa(0x320)](_0x502d68=>{_0x502d68['id']===_0x4c133e['id']&&_0x464221();});return _0x464221(),()=>{const _0x39eca6=_0x2a30aa;_0x457764['unsubscribe'](),_0x1004a6[_0x39eca6(0x208)]();};})[_0xb0970d(0x301)](_0x19e0f8());}function di(_0xd34c35,_0x344685=!0x1){const _0x21ff6a=_0x1ed081;let _0x57dbd0=_0xd34c35['get'](_0x582229),_0x198520=_0xd34c35[_0x21ff6a(0x410)](_0x4cc4c4),_0x74ae82=_0xd34c35[_0x21ff6a(0x410)](_0x39396e);return new _0x3fafbe(_0x1eb839=>{const _0x373daf=_0x21ff6a;let _0x4836bf=()=>{const _0x1b53a3=_0x5aa0;let _0x164aa0=ci(_0xd34c35);if(!_0x164aa0){_0x1eb839[_0x1b53a3(0x2d8)](!0x0);return;}let _0x4fd048=_0x74ae82[_0x1b53a3(0x2e4)](_0x164aa0[_0x1b53a3(0x355)],_0x164aa0['subUnitId'],_0x164aa0['drawingId']);_0x1eb839[_0x1b53a3(0x2d8)](!_0x4fd048||_0x344685&&_0x4fd048[_0x1b53a3(0x1f5)]==null);},_0xd327f=_0x198520[_0x373daf(0x273)]['subscribe'](_0x4836bf),_0x30b95f=_0x57dbd0[_0x373daf(0x320)](_0x54acc3=>{_0x54acc3['id']===_0xbcf5de['id']&&_0x4836bf();});return _0x4836bf(),()=>{const _0x29d0d2=_0x373daf;_0xd327f['unsubscribe'](),_0x30b95f[_0x29d0d2(0x208)]();};});}function fi(_0x2bc761){const _0x53a969=_0x1ed081;let _0x2e0527=_0x2bc761['get'](_0x4cc4c4),_0x2351f0=_0x2bc761[_0x53a969(0x410)](_0x39396e);return _0x2e0527[_0x53a969(0x273)][_0x53a969(0x301)](_0x2c09e4(_0x2e0527['getFocusDrawings']()),_0x5cfa63(()=>{const _0x4d2cd5=_0x53a969;let _0x5e8f4d=ci(_0x2bc761),_0x2db076=_0x5e8f4d?_0x2351f0[_0x4d2cd5(0x363)](_0x5e8f4d[_0x4d2cd5(0x355)],_0x5e8f4d[_0x4d2cd5(0x203)],_0x5e8f4d['drawingId']):void 0x0;return _0x2db076===void 0x0||_0x238e4e(_0x2db076);}));}function pi(_0x4c4e6a){const _0x1800ab=_0x1ed081;return{'id':Tr['id'],'type':_0x2f080a[_0x1800ab(0x255)],'icon':_0x1800ab(0x30f),'title':_0x1800ab(0x20b),'tooltip':'shape-editor-ui.toolbar.quickStyles','selections':[{'label':{'name':Vr,'hoverable':!0x1,'selectable':!0x1}}],'value$':si(_0x4c4e6a),'hidden$':di(_0x4c4e6a)};}function mi(_0x504679){const _0x3ae536=_0x1ed081;return{'id':Er['id'],'type':_0x2f080a['SELECTOR'],'icon':_0x3ae536(0x21f),'title':'shape-editor-ui.toolbar.changeShape','tooltip':_0x3ae536(0x3d2),'slot':!0x0,'selections':[{'label':{'name':_0x528b39,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':fi(_0x504679)};}function hi(_0x52947f,_0xf66239,_0x5b9837=!0x1){return _0x240b88=>({'id':_0x52947f,'type':_0x2f080a['BUTTON'],'label':{'name':_0xf66239,'hoverable':!0x1,'selectable':!0x1},'hidden$':di(_0x240b88,_0x5b9837)});}const gi=hi($r,Hr),_i=hi(ei,Ur),vi=hi(ti,Wr,!0x0);function yi(_0x2d8033){const _0x51559c=_0x1ed081;return{'id':oi,'type':_0x2f080a['SELECTOR'],'icon':Kr[0x0][_0x51559c(0x296)],'label':Gr,'selectionsCommandId':_0xdbdd89['id'],'selections':Kr['map'](({icon:_0x2504e6,label:_0x46b290,value:_0x3526f0})=>({'value':_0x3526f0,'label':_0x46b290,'icon':_0x2504e6,'params':()=>{const _0x4ebffd=_0x51559c;let _0x31a708=ci(_0x2d8033);return _0x31a708?{'unitId':_0x31a708['unitId'],'subUnitId':_0x31a708['subUnitId'],'drawings':[{'unitId':_0x31a708[_0x4ebffd(0x355)],'subUnitId':_0x31a708[_0x4ebffd(0x203)],'drawingId':_0x31a708['drawingId']}],'wrappingStyle':_0x3526f0}:void 0x0;}})),'value$':ui(_0x2d8033),'hidden$':di(_0x2d8033)};}function bi(_0x80cf32,_0x484a70,_0x19e7ef,_0x26a4ea){const _0x28891c=_0x1ed081;return _0x256ba4=>({'id':_0x80cf32,'commandId':_0x5dc4dd['id'],'type':_0x2f080a[_0x28891c(0x3f8)],'icon':_0x19e7ef,'title':_0x26a4ea,'tooltip':_0x26a4ea,'hidden$':di(_0x256ba4),'params':()=>{const _0x408d01=_0x28891c;let _0x5ac71f=ci(_0x256ba4);return _0x5ac71f?{'unitId':_0x5ac71f['unitId'],'subUnitId':_0x5ac71f[_0x408d01(0x203)],'drawingIds':[_0x5ac71f[_0x408d01(0x210)]],'arrangeType':_0x484a70}:void 0x0;}});}const xi=bi(ni,_0x30db5e[_0x1ed081(0x2bd)],'MoveUpIcon',_0x1ed081(0x26a)),Si=bi(ri,_0x30db5e[_0x1ed081(0x2a6)],_0x1ed081(0x241),'shape-editor-ui.arrange.backward'),Ci=bi(ii,_0x30db5e[_0x1ed081(0x3bc)],'TopmostIcon','shape-editor-ui.arrange.front'),wi=bi(ai,_0x30db5e['back'],'BottomIcon',_0x1ed081(0x287));function Ti(_0x607a3a){const _0x3855c3=_0x1ed081;return{'id':q['id'],'type':_0x2f080a['BUTTON'],'icon':_0x3855c3(0x2dd),'title':_0x3855c3(0x25b),'tooltip':'docs-shape-ui.formatShape','hidden$':di(_0x607a3a),'params':()=>{const _0x15e9a9=_0x3855c3;let _0x57990d=ci(_0x607a3a);return _0x57990d?{'unitId':_0x57990d[_0x15e9a9(0x355)],'subUnitId':_0x57990d[_0x15e9a9(0x203)],'drawingId':_0x57990d[_0x15e9a9(0x210)]}:void 0x0;}};}const Ei={[_0x548c7b[_0x1ed081(0x338)]]:{[vr]:{'order':0x64,'title':_0x1ed081(0x25b),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Tr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':pi},[Er['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':mi}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[$r]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':gi}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[ei]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':_i}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[oi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':yi},[ni]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':xi},[ri]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Si},[ii]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Ci},[ai]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':wi}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[ti]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':vi}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[q['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ti},[_0x1c8b61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x290bb3}}}}},Di={[_0x2d4568[_0x1ed081(0x32e)]]:{[G['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x2a9bf4=>({...Fr(_0x2a9bf4),'title':void 0x0})}},[_0x2d4568[_0x1ed081(0x21e)]]:{[Cr['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':Rr}},[_0x4bb22c[_0x1ed081(0x3ec)]]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[_0xb3dfee]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x551466]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Ir}}},[_0x2babac]:{[_0x40e83e[_0x1ed081(0x36b)]]:{[G['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':Lr}}},[_0x3e65d4]:{'insert':{[G['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':Fr}}},[_0x31fd56]:{'insert':{[G['id']+'.below']:{'replace':!0x0,'order':0x2,'menuItemFactory':Ir}}}}};var Oi=_0x1ed081(0x267),ki=_0x1ed081(0x322);const Ai={'type':_0x500db0[_0x1ed081(0x2ea)],'id':_0x1ed081(0x3ab),'handler'(){return!0x0;}},ji=_0x1ed081(0x246),Mi={};function Ni(_0x30d0fc){'@babel/helpers - typeof';const _0x395444=_0x1ed081;return Ni=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x395444(0x1e4)?function(_0x4b20ae){return typeof _0x4b20ae;}:function(_0x28d01f){const _0x112fdf=_0x395444;return _0x28d01f&&typeof Symbol==_0x112fdf(0x341)&&_0x28d01f[_0x112fdf(0x2ac)]===Symbol&&_0x28d01f!==Symbol['prototype']?'symbol':typeof _0x28d01f;},Ni(_0x30d0fc);}function Pi(_0x28aa25,_0x4b1820){const _0x31c2d9=_0x1ed081;if(Ni(_0x28aa25)!=_0x31c2d9(0x39b)||!_0x28aa25)return _0x28aa25;var _0x5a0bf4=_0x28aa25[Symbol[_0x31c2d9(0x1fa)]];if(_0x5a0bf4!==void 0x0){var _0x3b53a0=_0x5a0bf4[_0x31c2d9(0x34f)](_0x28aa25,_0x4b1820||_0x31c2d9(0x244));if(Ni(_0x3b53a0)!=_0x31c2d9(0x39b))return _0x3b53a0;throw TypeError(_0x31c2d9(0x373));}return(_0x4b1820==='string'?String:Number)(_0x28aa25);}function Fi(_0x418c1f){const _0x3c8a04=_0x1ed081;var _0xdcf171=Pi(_0x418c1f,_0x3c8a04(0x209));return Ni(_0xdcf171)==_0x3c8a04(0x1e4)?_0xdcf171:_0xdcf171+'';}function Z(_0x58f768,_0x3bc367,_0x18c7c5){const _0x92bfc2=_0x1ed081;return(_0x3bc367=Fi(_0x3bc367))in _0x58f768?Object[_0x92bfc2(0x247)](_0x58f768,_0x3bc367,{'value':_0x18c7c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x58f768[_0x3bc367]=_0x18c7c5,_0x58f768;}var Ii=class extends _0x9fb59e{constructor(_0x128700,_0x5e7c0e){const _0x26d072=_0x1ed081;super(_0x128700,_0x5e7c0e),Z(this,'_shapeId',null),Z(this,_0x26d072(0x35c),null),Z(this,_0x26d072(0x2a9),null),Z(this,_0x26d072(0x2fc),null),_0x5e7c0e&&this['setShapeProps'](_0x5e7c0e);}['getDrawingSearch'](){const _0x875075=_0x1ed081;return{'unitId':this['_unitId'],'subUnitId':this[_0x875075(0x2fc)],'drawingId':this['_shapeId']};}[_0x1ed081(0x33e)](_0x24b76c){const _0x5679d2=_0x1ed081;_0x24b76c[_0x5679d2(0x317)]!==void 0x0&&(this[_0x5679d2(0x257)]=_0x24b76c[_0x5679d2(0x317)]),_0x24b76c[_0x5679d2(0x43e)]!==void 0x0&&(this[_0x5679d2(0x35c)]=_0x24b76c['adjName']),_0x24b76c[_0x5679d2(0x355)]!==void 0x0&&(this[_0x5679d2(0x2a9)]=_0x24b76c[_0x5679d2(0x355)]),_0x24b76c[_0x5679d2(0x203)]!==void 0x0&&(this['_subUnitId']=_0x24b76c['subUnitId']),this[_0x5679d2(0x3be)]({'width':_0x24b76c[_0x5679d2(0x421)],'height':_0x24b76c[_0x5679d2(0x3e1)]});}[_0x1ed081(0x419)](_0x5a815a){const _0x31e499=_0x1ed081;_0x738e8c['drawWith'](_0x5a815a,{'radius':_0x127ad4[_0x31e499(0x42a)],'fill':_0x127ad4[_0x31e499(0x2a8)],'stroke':_0x127ad4[_0x31e499(0x2d5)],'strokeWidth':0x1,'evented':!0x0});}};function Li(_0x451224,_0x458389,_0x3dd22c){const _0x5df600=_0x1ed081;let _0x3b2ddb={..._0x458389,'dataModel':{..._0x458389[_0x5df600(0x3e2)]??{},..._0x3dd22c?{'doc':_0x3dd22c}:null}},_0x347d03=_0xe70f41(_0x451224,_0x3b2ddb),_0x18d3fb=_0x55fcc9(_0x347d03);return{'clip':_0x2b8d55(_0x347d03,_0x18d3fb),'wrapStrategy':_0x18d3fb};}var Ri=class extends _0x9fb59e{constructor(_0x4d9cd2,_0x775f6b){const _0x20ec42=_0x1ed081;super(_0x4d9cd2,_0x775f6b),Z(this,'_props',void 0x0),Z(this,_0x20ec42(0x418),new _0x297674(()=>this[_0x20ec42(0x2cf)](!0x0),()=>this[_0x20ec42(0x2db)]())),Z(this,_0x20ec42(0x41c),!0x0),Z(this,_0x20ec42(0x346),_0x690970[_0x20ec42(0x20d)]),Z(this,_0x20ec42(0x445),!0x0),this[_0x20ec42(0x2e6)]={..._0x775f6b},this['_formulaAnimation']['setPresentation'](_0x775f6b[_0x20ec42(0x1e6)],_0x775f6b[_0x20ec42(0x274)]!==!0x1),this['_init'](),this[_0x20ec42(0x2db)]();}[_0x1ed081(0x435)](){this['onTransformChange$']['subscribeEvent'](_0x2aa114=>{const _0x100f9c=_0x5aa0;this[_0x100f9c(0x214)](_0x2aa114);});}[_0x1ed081(0x29c)](_0x912306){const _0x325e4c=_0x1ed081;this[_0x325e4c(0x2e6)][_0x325e4c(0x21b)]=_0x912306;}[_0x1ed081(0x372)](_0x56a52a){const _0xa56a37=_0x1ed081;this[_0xa56a37(0x2e6)]['isEditing']=_0x56a52a,this[_0xa56a37(0x2cf)](!0x0);}[_0x1ed081(0x27b)](_0x1f55f,_0x2ad77b=!0x0){const _0x389781=_0x1ed081;this[_0x389781(0x418)]['setPresentation'](_0x1f55f,_0x2ad77b),this[_0x389781(0x2e6)][_0x389781(0x1e6)]=_0x1f55f,this[_0x389781(0x2db)](),this['makeDirty'](!0x0);}[_0x1ed081(0x2db)](){const _0x45147d=_0x1ed081;let _0x14066a=this['_props'][_0x45147d(0x2d4)],_0x30364c=_0x14066a['getShapeTextData'](),_0x105053=_0x2e2427(_0x30364c==null?void 0x0:_0x30364c['dataModel']),_0x5f467b=_0x105053==null?void 0x0:_0x105053[_0x45147d(0x2ca)],_0x42359d=this[_0x45147d(0x418)]['getAutoFitPresentations']();if(!_0x5f467b||_0x42359d['length']===0x0)return;_0x14066a[_0x45147d(0x31a)]({'width':this[_0x45147d(0x421)],'height':this[_0x45147d(0x3e1)]});let _0x5f44b7=_0x209b99({'documentData':_0x42359d['map'](_0x4697c8=>_0x347dfc(_0x5f467b,_0x4697c8)),'height':this[_0x45147d(0x3e1)],'shapeData':_0x14066a[_0x45147d(0x3c2)](),'textRect':_0x14066a['getShapeTextRect']({'left':0x0,'top':0x0,'width':this['width'],'height':this[_0x45147d(0x3e1)]}),'width':this['width']});if(_0x5f44b7){var _0x143aa6;this['resize'](_0x5f44b7[_0x45147d(0x421)],_0x5f44b7['height']),(_0x143aa6=this[_0x45147d(0x385)]())==null||(_0x143aa6=_0x143aa6['getTransformer']())==null||_0x143aa6[_0x45147d(0x2b7)]();}}get['unitId'](){const _0x500b8e=_0x1ed081;return this[_0x500b8e(0x2e6)][_0x500b8e(0x355)];}get[_0x1ed081(0x203)](){const _0x3a7365=_0x1ed081;return this[_0x3a7365(0x2e6)]['subUnitId'];}['_updateSrcRectByTransform'](_0x2c2f6f){const _0x4d81ab=_0x1ed081;if(this['_props'][_0x4d81ab(0x222)]==null||!this[_0x4d81ab(0x41c)])return;let {width:_0x1be501,height:_0x1532d6}=this,{width:_0x586478=0x0,height:_0x5b4428=0x0}=_0x2c2f6f[_0x4d81ab(0x226)],{left:_0x5cac18=0x0,top:_0x47cabe=0x0,right:_0x96bad3=0x0,bottom:_0x2206f7=0x0}=this[_0x4d81ab(0x2e6)][_0x4d81ab(0x222)],_0x5ae710=_0x5cac18,_0x57d959=_0x47cabe,_0x156ceb=_0x96bad3,_0x1f710b=_0x2206f7,_0x4f3510=!0x1;if(_0x586478!==0x0&&_0x586478!==_0x1be501){let _0x3188e3=_0x5cac18/_0x586478,_0x52cd8f=_0x96bad3/_0x586478;_0x5ae710=_0x1be501*_0x3188e3,_0x156ceb=_0x1be501*_0x52cd8f,_0x4f3510=!0x0;}if(_0x5b4428!==0x0&&_0x5b4428!==_0x1532d6){let _0x376f46=_0x47cabe/_0x5b4428,_0x4979e3=_0x2206f7/_0x5b4428;_0x57d959=_0x1532d6*_0x376f46,_0x1f710b=_0x1532d6*_0x4979e3,_0x4f3510=!0x0;}_0x4f3510&&this['setSrcRect']({'left':_0x5ae710,'top':_0x57d959,'right':_0x156ceb,'bottom':_0x1f710b});}[_0x1ed081(0x430)](_0x1a3637){const _0x15240b=_0x1ed081;this[_0x15240b(0x2e6)]['srcRect']=_0x1a3637,this[_0x15240b(0x2cf)](!0x0);}[_0x1ed081(0x25d)](_0x99855){const _0x12f378=_0x1ed081;this[_0x12f378(0x2e6)]['image']=_0x99855,this[_0x12f378(0x2cf)](!0x0);}set[_0x1ed081(0x35d)](_0x277efb){this['_transform']=_0x277efb;}get[_0x1ed081(0x35d)](){const _0x4304eb=_0x1ed081;this[_0x4304eb(0x36e)]||this[_0x4304eb(0x38b)]();let _0x2f0ce4=this[_0x4304eb(0x36e)][_0x4304eb(0x3d6)]();return this['transformForAngle'](_0x2f0ce4);}get[_0x1ed081(0x2d4)](){const _0x215a7d=_0x1ed081;return this[_0x215a7d(0x2e6)]['shapeModel'];}get[_0x1ed081(0x317)](){const _0x21b8a9=_0x1ed081;return this[_0x21b8a9(0x2e6)]['shapeId'];}get[_0x1ed081(0x37a)](){const _0x487404=_0x1ed081;return _0x29eaa6[_0x487404(0x32c)];}[_0x1ed081(0x419)](_0x5e7fa6,_0x347ee2,_0x21a447,_0x379d6f){const _0x413b44=_0x1ed081;let _0x368d6c=this[_0x413b44(0x2e6)][_0x413b44(0x2d4)];if(!_0x368d6c||!_0x347ee2)return;let _0x5690cb=_0x21a447??this[_0x413b44(0x421)],_0x5e6eec=_0x379d6f??this[_0x413b44(0x3e1)],_0x182b79={'shapeType':_0x368d6c[_0x413b44(0x40b)](),'width':_0x5690cb,'height':_0x5e6eec},_0x1756a3={'renderMode':_0x3cb180[_0x413b44(0x308)],'oKey':this[_0x413b44(0x1e8)],'image':this[_0x413b44(0x2e6)][_0x413b44(0x379)],'angle':this[_0x413b44(0x3c1)]};_0x368d6c[_0x413b44(0x31a)](_0x182b79),_0x5e7fa6[_0x413b44(0x3c7)]();let _0x1b525d={'top':0x0,'left':0x0,'width':_0x5690cb,'height':_0x5e6eec},_0x6c41ca=_0x368d6c[_0x413b44(0x41a)](_0x1b525d);_0x6c41ca?this[_0x413b44(0x337)](_0x5e7fa6,_0x6c41ca,_0x5c4916=>{const _0x21b509=_0x413b44;_0x368d6c[_0x21b509(0x37b)](_0x5c4916,_0x1b525d,_0x1756a3);}):(this[_0x413b44(0x3e6)](),_0x368d6c[_0x413b44(0x37b)](_0x5e7fa6,_0x1b525d,_0x1756a3)),_0x5e7fa6[_0x413b44(0x3b0)]();let _0x571b09=_0x368d6c[_0x413b44(0x2de)](),_0x1e8b04=_0x368d6c[_0x413b44(0x262)](_0x1b525d),_0x1c4a35=_0x368d6c[_0x413b44(0x248)]();if(_0x571b09&&_0x1e8b04&&!_0x1c4a35){_0x5e7fa6[_0x413b44(0x3c7)](),this['getState']()['flipX']&&_0x5e7fa6[_0x413b44(0x31e)](-0x1,0x1);let _0x6eb6c5=_0x5690cb/0x2,_0x1e2c3b=_0x5e6eec/0x2;_0x5e7fa6[_0x413b44(0x2bf)](-_0x6eb6c5,-_0x1e2c3b),_0x5e7fa6['beginPath'](),this[_0x413b44(0x408)](_0x5e7fa6,_0x571b09,_0x1e8b04),_0x5e7fa6[_0x413b44(0x3b0)]();}}[_0x1ed081(0x34b)](_0x549455){}[_0x1ed081(0x408)](_0x133f05,_0x32b64d,_0x255a0a){const _0x4e6843=_0x1ed081;var _0xe48d2e;this['_props']['isEditing']||(!((_0xe48d2e=_0x32b64d[_0x4e6843(0x3e2)])!=null&&_0xe48d2e[_0x4e6843(0x2ca)])&&_0x4e6843(0x3fb)in _0x32b64d&&_0x32b64d[_0x4e6843(0x3fb)]===!0x1?this[_0x4e6843(0x312)](_0x133f05,_0x32b64d,_0x255a0a):this[_0x4e6843(0x2d6)](_0x133f05,_0x32b64d,_0x255a0a));}['_drawSimpleText'](_0x5ab799,_0x17355b,_0x9e74f){const _0x2b9a49=_0x1ed081;this[_0x2b9a49(0x2d6)](_0x5ab799,{..._0x17355b,'text':_0x17355b[_0x2b9a49(0x348)]??'','dataModel':{'doc':_0x105325(_0x17355b,_0x2b9a49(0x290)+this[_0x2b9a49(0x1e8)])}},_0x9e74f);}[_0x1ed081(0x2d6)](_0x49f414,_0x5c6178,_0x29fb82){const _0x233f8a=_0x1ed081;_0xbd9d06(_0x49f414,this[_0x233f8a(0x418)],(_0x4996a0,_0x162eab)=>{this['_drawRichTextLayer'](_0x4996a0,_0x5c6178,_0x29fb82,_0x162eab);});}[_0x1ed081(0x3bd)](_0x37f725,_0x2cbc80,_0x1346e1,_0x2e8080){const _0x40b4d2=_0x1ed081;let _0x1bb07f=this['_props']['localeService'];if(!_0x2cbc80['dataModel']||!_0x1bb07f){_0x1bb07f||console[_0x40b4d2(0x3a6)](_0x40b4d2(0x3aa));return;}let _0x37f5df=_0x2e2427(_0x2cbc80[_0x40b4d2(0x3e2)]);if(!_0x37f5df)return;let _0x10ac5e=_0x37f5df[_0x40b4d2(0x2ca)];if(!_0x10ac5e)return;let _0x3251b7=_0x347dfc(_0x10ac5e,_0x2e8080),_0x1e37a5=_0x37f5df['va']??_0x36ee41['TOP'],_0x231216=_0x37f5df['ha']??_0x2381fc[_0x40b4d2(0x25e)],_0xd32a84=Li(this[_0x40b4d2(0x2e6)]['shapeModel'][_0x40b4d2(0x3c2)](),_0x2cbc80,_0x3251b7),_0x4a3b7a=_0x2cbc80[_0x40b4d2(0x238)],_0x3b0b61=_0x2bb33c(_0x3251b7,{'isHorizontal':_0x4a3b7a!==!0x1,'textRect':_0x1346e1,'verticalAlign':_0x1e37a5,'horizontalAlign':_0x231216,'wrapStrategy':_0xd32a84['wrapStrategy']}),_0x37f8a0=new _0x3b3dfb(_0x3b0b61),_0x2aa9d1=new _0x514bbc(_0x37f8a0),_0x3e63b0=_0x44a5a2['create'](_0x2aa9d1,_0x1bb07f);_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x294fd1=_0x3e63b0[_0x40b4d2(0x38d)]()[_0x40b4d2(0x1eb)],_0x366e04=_0x191558({'contentHeight':_0x294fd1,'verticalAlign':_0x1e37a5,'viewportHeight':_0x1346e1['height']});_0x37f8a0[_0x40b4d2(0x28a)]({'pageSize':{'width':_0x4a3b7a===!0x1?_0x1346e1['height']:_0x1346e1[_0x40b4d2(0x421)],'height':_0x5a1b24(_0x3251b7,_0x366e04[_0x40b4d2(0x3b1)])}}),_0x37f8a0[_0x40b4d2(0x30d)]({'t':_0x366e04[_0x40b4d2(0x2b9)]}),_0x3e63b0[_0x40b4d2(0x3ef)]();let _0x484499=new _0x407a64('shape-text-'+this[_0x40b4d2(0x1e8)],_0x3e63b0,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this['makeDirty'](!0x0)});_0x484499['resize'](_0x1346e1['width'],_0x366e04['contentHeight']),_0x37f725[_0x40b4d2(0x3c7)](),_0x37f725[_0x40b4d2(0x3c6)](_0x1346e1[_0x40b4d2(0x447)],_0x1346e1[_0x40b4d2(0x1fd)]),_0xd32a84[_0x40b4d2(0x250)]&&(_0x37f725[_0x40b4d2(0x2d0)](),_0x37f725[_0x40b4d2(0x32f)](0x0,_0x366e04['clipTop'],_0x1346e1[_0x40b4d2(0x421)],_0x366e04[_0x40b4d2(0x326)]),_0x37f725['clip']()),_0x366e04['contentVerticalOffset']&&_0x37f725[_0x40b4d2(0x3c6)](0x0,_0x366e04[_0x40b4d2(0x3a8)]),_0x484499[_0x40b4d2(0x33c)](_0x37f725),_0x37f725[_0x40b4d2(0x3b0)](),_0x484499[_0x40b4d2(0x208)](),_0x3e63b0[_0x40b4d2(0x208)](),_0x2aa9d1[_0x40b4d2(0x208)](),_0x37f8a0[_0x40b4d2(0x208)]();}[_0x1ed081(0x37b)](_0x549778,_0x4e7ff2,_0x64586c=!0x1){const _0x1e8586=_0x1ed081;if(!this[_0x1e8586(0x232)])return this['makeDirty'](!0x1),this;let {width:_0x48875a,height:_0x12c313,left:_0x1cf3c5,top:_0x1bee99}=this,_0x245a8a=this[_0x1e8586(0x1e3)]();if(_0x48875a=_0x245a8a[_0x1e8586(0x421)],_0x12c313=_0x245a8a[_0x1e8586(0x3e1)],_0x1cf3c5=_0x245a8a[_0x1e8586(0x447)],_0x1bee99=_0x245a8a['top'],this['isRender'](_0x4e7ff2)){let {top:_0x2f1f2d,left:_0xbc6621,bottom:_0x51c87e,right:_0x597c43}=_0x4e7ff2[_0x1e8586(0x2f1)];if(_0x48875a+this['strokeWidth']+_0x1cf3c5<_0xbc6621||_0x597c43<_0x1cf3c5||_0x12c313+this[_0x1e8586(0x356)]+_0x1bee99<_0x2f1f2d||_0x51c87e<_0x1bee99)return this;}let _0x38ea23=_0x1cf3c5+_0x48875a/0x2,_0x5e9eae=_0x1bee99+_0x12c313/0x2,_0x41e58f=this['transform'][_0x1e8586(0x36a)]();if(this[_0x1e8586(0x2e6)][_0x1e8586(0x2bb)]){let _0x4d67ed=this[_0x1e8586(0x2b5)](),_0x2704bd=new _0x3cb6b6();_0x2704bd[_0x1e8586(0x2f6)]({..._0x4d67ed}),_0x41e58f=_0x2704bd[_0x1e8586(0x36a)]();}return _0x549778['save'](),this[_0x1e8586(0x2e6)][_0x1e8586(0x2d4)]['isRenderLinePointsMode']===!0x0||_0x549778[_0x1e8586(0x35d)](_0x41e58f[0x0],_0x41e58f[0x1],_0x41e58f[0x2],_0x41e58f[0x3],_0x38ea23,_0x5e9eae),this[_0x1e8586(0x419)](_0x549778,_0x4e7ff2,_0x48875a,_0x12c313),_0x549778[_0x1e8586(0x3b0)](),this[_0x1e8586(0x2cf)](!0x1),this;}[_0x1ed081(0x2c4)](_0x52f1fa){const _0x11aec3=_0x1ed081;let {left:_0xadc810,top:_0x10b900,width:_0x12c1fa,height:_0x357d00}=this['getRealBound'](),_0x44e716=this[_0x11aec3(0x35d)][_0x11aec3(0x36a)](),_0x548c4a=_0xadc810+_0x12c1fa/0x2,_0x425aba=_0x10b900+_0x357d00/0x2,_0x2eea3f=new _0x3cb6b6([_0x44e716[0x0],_0x44e716[0x1],_0x44e716[0x2],_0x44e716[0x3],_0x548c4a,_0x425aba]),_0x5ea2b6=this[_0x11aec3(0x388)]();return(this[_0x11aec3(0x3f4)]&&(_0x5ea2b6==null?void 0x0:_0x5ea2b6[_0x11aec3(0x37a)])===_0x29eaa6[_0x11aec3(0x394)]?_0x5ea2b6[_0x11aec3(0x42f)][_0x11aec3(0x3d8)](_0x2eea3f):_0x2eea3f)[_0x11aec3(0x25c)]()[_0x11aec3(0x371)](_0x52f1fa);}[_0x1ed081(0x40a)](_0x923b5b){const _0x46185e=_0x1ed081;let {left:_0x164ef2,top:_0x4bdfb0,width:_0x4c16da,height:_0x443da8}=this[_0x46185e(0x1e3)](),_0x13b6c6=_0x164ef2+_0x4c16da/0x2,_0x587451=_0x4bdfb0+_0x443da8/0x2,_0x5dc731=this[_0x46185e(0x35d)][_0x46185e(0x36a)](),_0x43bc74=new _0x3cb6b6([_0x5dc731[0x0],_0x5dc731[0x1],_0x5dc731[0x2],_0x5dc731[0x3],_0x13b6c6,_0x587451]),_0x2e0dd8=this[_0x46185e(0x388)](),_0x3499c8=(this[_0x46185e(0x3f4)]&&(_0x2e0dd8==null?void 0x0:_0x2e0dd8[_0x46185e(0x37a)])===_0x29eaa6['GROUP']?_0x2e0dd8[_0x46185e(0x42f)][_0x46185e(0x3d8)](_0x43bc74):_0x43bc74)['invert']()[_0x46185e(0x371)](_0x923b5b),_0x263e21=_0x4c16da/0x2,_0x3be28f=_0x443da8/0x2,_0xd1ac5e=this[_0x46185e(0x2e6)][_0x46185e(0x2d4)];return _0xd1ac5e&&_0xd1ac5e[_0x46185e(0x248)]()?_0xd1ac5e[_0x46185e(0x43f)](_0x3499c8['x'],_0x3499c8['y'],_0x4c16da,_0x443da8):_0x3499c8['x']>=-_0x263e21-this['strokeWidth']/0x2&&_0x3499c8['x']<=_0x263e21+this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']>=-_0x3be28f-this[_0x46185e(0x356)]/0x2&&_0x3499c8['y']<=_0x3be28f+this['strokeWidth']/0x2;}['dispose'](){const _0x455eb9=_0x1ed081;this[_0x455eb9(0x418)][_0x455eb9(0x208)](),this[_0x455eb9(0x2e6)][_0x455eb9(0x2d4)]=null,super[_0x455eb9(0x208)]();}};let zi=class extends _0x5721ff{constructor(_0x2a588a,_0x3733ef,_0x59f995,_0x451d04){const _0xbdf674=_0x1ed081;super(),this[_0xbdf674(0x42e)]=_0x2a588a,this[_0xbdf674(0x291)]=_0x3733ef,this['_docsShapeService']=_0x59f995,this[_0xbdf674(0x22d)]=_0x451d04,Z(this,_0xbdf674(0x2c0),null),Z(this,_0xbdf674(0x2a9),null),Z(this,_0xbdf674(0x2fc),null),Z(this,'_activeShapeAdjustPointList',void 0x0),Z(this,_0xbdf674(0x411),[]),Z(this,'_baseShapeLeft',0x0),Z(this,'_baseShapeTop',0x0),Z(this,_0xbdf674(0x2fb),0x0),Z(this,_0xbdf674(0x1ee),0x0),Z(this,'_isStartAdjusting',!0x1),Z(this,_0xbdf674(0x279),!0x1),Z(this,_0xbdf674(0x212),void 0x0),Z(this,'_activeShapeModel',void 0x0),Z(this,'_adjHandlerPointerMove',void 0x0),Z(this,'_adjHandlerPointerUp',void 0x0),this[_0xbdf674(0x324)](),this[_0xbdf674(0x271)]();}[_0x1ed081(0x340)](){this['_clearShapeAdjustControls']();}[_0x1ed081(0x1f3)](){const _0x52ac7f=_0x1ed081;this[_0x52ac7f(0x292)](!0x0);}[_0x1ed081(0x33a)](_0x58761f,_0x308e19,_0x2e87f2){const _0x93761e=_0x1ed081;var _0x1168fd;return(_0x1168fd=this[_0x93761e(0x26c)][_0x93761e(0x381)](_0x58761f,_0x308e19,_0x2e87f2))==null?void 0x0:_0x1168fd[_0x93761e(0x34b)]();}[_0x1ed081(0x20f)](_0x522dd7,_0x4b1f2e,_0x5761b1,_0x315c05){const _0x1eaa08=_0x1ed081;var _0x2b1b75;return(_0x2b1b75=this[_0x1eaa08(0x26c)][_0x1eaa08(0x381)](_0x522dd7,_0x4b1f2e,_0x5761b1))==null?void 0x0:_0x2b1b75[_0x1eaa08(0x370)](_0x315c05);}[_0x1ed081(0x1e5)](){const _0x5bdecc=_0x1ed081;return this[_0x5bdecc(0x2a9)]===null||this[_0x5bdecc(0x2fc)]===null||this[_0x5bdecc(0x2c0)]===null?null:this[_0x5bdecc(0x291)][_0x5bdecc(0x207)]({'unitId':this['_unitId'],'subUnitId':this[_0x5bdecc(0x2fc)],'drawingId':this['_activeShapeId']})??null;}[_0x1ed081(0x357)](_0x5eaf74){const _0x3390f5=_0x1ed081;if(this[_0x3390f5(0x2a9)]===null||this[_0x3390f5(0x2fc)]===null||this[_0x3390f5(0x2c0)]===null)return null;let _0xa0640d=_0x54547b({'unitId':this['_unitId'],'subUnitId':this[_0x3390f5(0x2fc)],'drawingId':this['_activeShapeId']}),_0x30d550=_0x5eaf74['getObjectIncludeInGroup'](_0xa0640d);return _0x30d550 instanceof Ri?_0x30d550:null;}[_0x1ed081(0x22e)](_0xaa5b40=!0x1){const _0x46d9e4=_0x1ed081;if(this['_unitId']===null||this[_0x46d9e4(0x2fc)]===null||this[_0x46d9e4(0x2c0)]===null)return;let _0x13b358=this[_0x46d9e4(0x1e5)]();if((_0x13b358==null?void 0x0:_0x13b358[_0x46d9e4(0x234)])!==_0x690970[_0x46d9e4(0x20d)]||!_0x13b358[_0x46d9e4(0x35d)])return;let _0x5a9e91=this[_0x46d9e4(0x26c)][_0x46d9e4(0x381)](this[_0x46d9e4(0x2a9)],this[_0x46d9e4(0x2fc)],this[_0x46d9e4(0x2c0)]);if(!_0x5a9e91||_0x5a9e91[_0x46d9e4(0x248)]())return;let {left:_0x354ec4=0x0,top:_0x3baf35=0x0,width:_0x3421a6=0x0,height:_0x2d39dc=0x0,flipX:_0x37b18a,flipY:_0x30a7f9,angle:_0x3558b9=0x0}=_0x13b358[_0x46d9e4(0x35d)];(_0xaa5b40||!this[_0x46d9e4(0x37e)])&&(_0x5a9e91[_0x46d9e4(0x31a)]({'width':_0x3421a6,'height':_0x2d39dc}),this['_activeShapeAdjustPointList']=_0x5a9e91[_0x46d9e4(0x34b)]());let _0x47b174=this[_0x46d9e4(0x37e)];if(!(_0x47b174!=null&&_0x47b174[_0x46d9e4(0x43c)]))return;let {scene:_0x5e57cc}=this[_0x46d9e4(0x42e)];for(let _0x2e041e of _0x47b174){let _0x7586dc=this[_0x46d9e4(0x3ee)](_0x2e041e,_0x3421a6,_0x2d39dc,!!_0x37b18a,!!_0x30a7f9,_0x3558b9);this[_0x46d9e4(0x2da)](_0x5e57cc,_0x7586dc,_0x7586dc[_0x46d9e4(0x43e)],_0x354ec4,_0x3baf35,this['_unitId'],this[_0x46d9e4(0x2fc)]);}}[_0x1ed081(0x3ee)](_0x308129,_0x139a4c,_0x2074ba,_0x32656f,_0x316142,_0x3184c9){const _0x399126=_0x1ed081;let _0x99aa6=_0x308129['x'],_0x5a5963=_0x308129['y'];if(_0x32656f&&(_0x99aa6=_0x139a4c-_0x99aa6),_0x316142&&(_0x5a5963=_0x2074ba-_0x5a5963),_0x3184c9!==0x0){let _0x427436=_0x139a4c/0x2,_0xe90283=_0x2074ba/0x2,_0x41b133=_0x3184c9*Math['PI']/0xb4,_0x1d7e98=Math[_0x399126(0x1ef)](_0x41b133),_0x25c957=Math['sin'](_0x41b133),_0x36c9d9=_0x99aa6-_0x427436,_0x29b08a=_0x5a5963-_0xe90283;_0x99aa6=_0x427436+(_0x36c9d9*_0x1d7e98-_0x29b08a*_0x25c957),_0x5a5963=_0xe90283+(_0x36c9d9*_0x25c957+_0x29b08a*_0x1d7e98);}return{'x':_0x99aa6,'y':_0x5a5963,'adjName':_0x308129[_0x399126(0x43e)]};}['_updateShapeAdjustControls'](_0x5916ff=!0x1){const _0x3ca55a=_0x1ed081;_0x5916ff&&this[_0x3ca55a(0x34c)](),this['_createShapeAdjustControls'](_0x5916ff);}[_0x1ed081(0x2da)](_0x5f507a,_0x5d64bb,_0x51ef36,_0x5844d4,_0x49868c,_0x567fad,_0x4a19b1){const _0x3d9c12=_0x1ed081;if(!this[_0x3d9c12(0x2c0)])return;let _0x11ab21=_0x3d9c12(0x264)+this[_0x3d9c12(0x2c0)]+'-'+_0x51ef36,_0x96e5c1=_0x5f507a[_0x3d9c12(0x3fa)](_0x11ab21);if(_0x96e5c1){_0x96e5c1[_0x3d9c12(0x3be)]({'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4[_0x3d9c12(0x42a)],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)]}),_0x96e5c1[_0x3d9c12(0x2cf)](!0x0);return;}let _0xf17003=new Ii(_0x11ab21,{'left':_0x5d64bb['x']+_0x5844d4-_0x127ad4['adjHandleSize'],'top':_0x5d64bb['y']+_0x49868c-_0x127ad4[_0x3d9c12(0x42a)],'adjName':_0x51ef36,'shapeId':this[_0x3d9c12(0x2c0)],'unitId':_0x567fad,'subUnitId':_0x4a19b1,'width':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'height':_0x127ad4[_0x3d9c12(0x42a)]+0x8,'zIndex':_0x8e9c78+0x1,'evented':!0x0});this[_0x3d9c12(0x411)][_0x3d9c12(0x39c)](_0xf17003),this[_0x3d9c12(0x23e)](_0xf17003,_0x5f507a,_0x51ef36),_0x5f507a[_0x3d9c12(0x2ed)](_0xf17003,_0x8e9c78+0x1);}[_0x1ed081(0x34c)](){const _0x5e07bc=_0x1ed081;this[_0x5e07bc(0x411)][_0x5e07bc(0x323)](_0x33f610=>_0x33f610['dispose']()),this[_0x5e07bc(0x411)]=[];}['_updateAdjustControlPositions'](){const _0x1c90d2=_0x1ed081;this[_0x1c90d2(0x22e)]();}[_0x1ed081(0x206)](_0x480d65,_0x4dcb96,_0x23952c){const _0x21a722=_0x1ed081;let _0x38e94f=_0x2ede79[_0x21a722(0x28c)]([_0x4dcb96,_0x23952c]),_0xbe2ff2=_0x480d65[_0x21a722(0x29a)](_0x38e94f)??_0x480d65['getViewports']()[0x0];return(_0xbe2ff2==null?void 0x0:_0xbe2ff2['transformVector2SceneCoord'](_0x38e94f))??_0x38e94f;}[_0x1ed081(0x23e)](_0x5e9248,_0x20f853,_0x39db83){const _0xe23a7b=_0x1ed081;this[_0xe23a7b(0x2fd)](_0xfac87e(_0x5e9248[_0xe23a7b(0x37f)][_0xe23a7b(0x432)]((_0x2c7e74,_0x27fc0d)=>{const _0x928f78=_0xe23a7b;var _0x262842;let _0x3eb6bd=_0x5e9248[_0x928f78(0x1ed)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)],_0x39db83),this[_0x928f78(0x40d)]=this[_0x928f78(0x26c)][_0x928f78(0x381)](_0x3eb6bd[_0x928f78(0x355)],_0x3eb6bd[_0x928f78(0x203)],_0x3eb6bd[_0x928f78(0x210)]);let _0x5802b9=this[_0x928f78(0x1e5)](),_0x44352f=_0x5802b9==null?void 0x0:_0x5802b9['transform'];if(!_0x5802b9||!_0x44352f||!this[_0x928f78(0x40d)])return;this['_baseShapeLeft']=_0x44352f['left']||0x0,this[_0x928f78(0x2ee)]=_0x44352f[_0x928f78(0x1fd)]||0x0,this['_baseShapeWidth']=_0x44352f[_0x928f78(0x421)]||0x0,this[_0x928f78(0x1ee)]=_0x44352f[_0x928f78(0x3e1)]||0x0;let _0x593cca=!!_0x44352f[_0x928f78(0x235)],_0x21ecaa=!!_0x44352f['flipY'],_0x2f97da=_0x44352f[_0x928f78(0x3c1)]||0x0,_0x224801={...((_0x262842=this[_0x928f78(0x212)])==null?void 0x0:_0x262842['currentAdjustValues'])??{}};this[_0x928f78(0x376)]=!0x0,_0x20f853[_0x928f78(0x20c)](),this[_0x928f78(0x443)]=_0x20f853[_0x928f78(0x204)][_0x928f78(0x432)]((_0x5ec559,_0x2c2a92)=>{const _0x2671ca=_0x928f78;var _0x51de79;if(!this['_isStartAdjusting']||!this[_0x2671ca(0x40d)]||!this['_activeAdjustInfo'])return;_0x20f853[_0x2671ca(0x20c)](),_0x20f853[_0x2671ca(0x28f)](_0x13100c[_0x2671ca(0x38e)]);let _0x3f75c5=this['_toScenePoint'](_0x20f853,_0x5ec559['offsetX'],_0x5ec559[_0x2671ca(0x389)]),_0x173989=_0x3f75c5['x']-this[_0x2671ca(0x2cd)],_0x188d10=_0x3f75c5['y']-this['_baseShapeTop'];if(_0x2f97da!==0x0){let _0x13f190=this['_baseShapeWidth']/0x2,_0x1cae59=this[_0x2671ca(0x1ee)]/0x2,_0x5b43ed=_0x2f97da*Math['PI']/0xb4,_0x175eb9=Math['cos'](_0x5b43ed),_0x416eac=Math[_0x2671ca(0x25f)](_0x5b43ed),_0x129e0a=_0x173989-_0x13f190,_0x203409=_0x188d10-_0x1cae59;_0x173989=_0x13f190+(_0x129e0a*_0x175eb9+_0x203409*_0x416eac),_0x188d10=_0x1cae59+(-_0x129e0a*_0x416eac+_0x203409*_0x175eb9);}_0x593cca&&(_0x173989=this[_0x2671ca(0x2fb)]-_0x173989),_0x21ecaa&&(_0x188d10=this[_0x2671ca(0x1ee)]-_0x188d10);let _0x151f52={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this['_baseShapeHeight']},_0xb8e4dc=this[_0x2671ca(0x40d)][_0x2671ca(0x3ac)](_0x151f52,{'x':_0x173989,'y':_0x188d10},this['_activeAdjustInfo'],_0x593cca,_0x21ecaa);if(Object[_0x2671ca(0x303)](_0xb8e4dc)[_0x2671ca(0x43c)]!==0x0){for(let [_0x54f8cd,_0x348265]of Object['entries'](_0xb8e4dc))this[_0x2671ca(0x40d)][_0x2671ca(0x2e1)](_0x54f8cd,_0x348265);this[_0x2671ca(0x40d)]['updateContext']({'width':this[_0x2671ca(0x2fb)],'height':this[_0x2671ca(0x1ee)]}),(_0x51de79=this[_0x2671ca(0x357)](_0x20f853))==null||_0x51de79[_0x2671ca(0x2cf)](!0x0),this[_0x2671ca(0x37e)]=this[_0x2671ca(0x33a)](_0x3eb6bd[_0x2671ca(0x355)],_0x3eb6bd[_0x2671ca(0x203)],_0x3eb6bd[_0x2671ca(0x210)]),this['_updateAdjustControlPositions'](),_0x2c2a92[_0x2671ca(0x367)]();}}),this['_adjHandlerPointerUp']=_0x20f853[_0x928f78(0x428)]['subscribeEvent']((_0xfcbe47,_0x8e6786)=>{const _0x3a9776=_0x928f78;var _0x52a788,_0x48b072;(_0x52a788=this[_0x3a9776(0x443)])==null||_0x52a788[_0x3a9776(0x36d)](),(_0x48b072=this[_0x3a9776(0x29e)])==null||_0x48b072[_0x3a9776(0x36d)](),_0x20f853[_0x3a9776(0x2f8)]();let _0x13cdda=this[_0x3a9776(0x212)];if(_0x13cdda&&this['_activeShapeModel']){let _0x157ed6={};for(let _0x55d754 of Object[_0x3a9776(0x303)](_0x13cdda[_0x3a9776(0x3f2)])){let _0x14d5b4=this[_0x3a9776(0x40d)][_0x3a9776(0x3a4)](_0x55d754);_0x14d5b4!==void 0x0&&(_0x157ed6[_0x55d754]=_0x14d5b4);}Object[_0x3a9776(0x303)](_0x157ed6)['length']>0x0&&zr(this[_0x3a9776(0x22d)],_0x3eb6bd[_0x3a9776(0x355)],_0x3eb6bd[_0x3a9776(0x203)],_0x3eb6bd[_0x3a9776(0x210)],{'oldShapeData':{'adjustValues':_0x224801}},{'adjustValues':_0x157ed6});}this['_activeAdjustInfo']=void 0x0,this[_0x3a9776(0x40d)]=void 0x0,this[_0x3a9776(0x376)]=!0x1,_0x20f853['enableObjectsEvent'](),_0x8e6786[_0x3a9776(0x367)]();}),_0x27fc0d[_0x928f78(0x367)]();})));}[_0x1ed081(0x271)](){const _0x270e84=_0x1ed081;let {scene:_0x429736}=this[_0x270e84(0x42e)],_0x18d1ec=_0x429736[_0x270e84(0x36f)]();this[_0x270e84(0x2fd)](_0x18d1ec['changeStart$'][_0x270e84(0x251)](_0x364bbc=>{const _0x4ea426=_0x270e84;this[_0x4ea426(0x22e)](),_0x364bbc[_0x4ea426(0x420)]!==null&&_0x364bbc[_0x4ea426(0x420)]['size']===0x1&&_0x364bbc['objects'][_0x4ea426(0x2c2)]()[_0x4ea426(0x2d8)]()[_0x4ea426(0x439)]instanceof Ri&&(this[_0x4ea426(0x279)]=!0x0);})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x35b)][_0x270e84(0x251)](()=>{const _0x5bdcce=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&this[_0x5bdcce(0x34c)]();})),this['disposeWithMe'](_0x429736[_0x270e84(0x428)][_0x270e84(0x432)](()=>{const _0x3ea271=_0x270e84;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x3ea271(0x279)]=!0x1,this['_createShapeAdjustControls']());})),this[_0x270e84(0x2fd)](_0x18d1ec[_0x270e84(0x32b)][_0x270e84(0x251)](()=>{const _0x313835=_0x270e84;this['_unitId']&&this[_0x313835(0x2fc)]&&this[_0x313835(0x2c0)]&&(this[_0x313835(0x37e)]=this[_0x313835(0x33a)](this[_0x313835(0x2a9)],this[_0x313835(0x2fc)],this[_0x313835(0x2c0)]),this[_0x313835(0x3c8)]());}));}[_0x1ed081(0x324)](){const _0x443c30=_0x1ed081;this[_0x443c30(0x2fd)](this['_commandService']['onCommandExecuted'](_0x22543b=>{const _0x83d556=_0x443c30;if(_0x22543b['id']!==_0xbcf5de['id'])return;let {unitId:_0x400c73,shapeId:_0x58ae31}=_0x22543b[_0x83d556(0x41e)];_0x400c73===this[_0x83d556(0x2a9)]&&_0x58ae31===this[_0x83d556(0x2c0)]&&this['refreshAdjustControls']();})),this['disposeWithMe'](this[_0x443c30(0x291)][_0x443c30(0x273)][_0x443c30(0x251)](_0x584489=>{const _0x40fa44=_0x443c30;if(_0x584489['length']===0x1){let _0x31f4be=_0x584489[0x0],_0x10df3c=this[_0x40fa44(0x291)][_0x40fa44(0x207)](_0x31f4be);if((_0x10df3c==null?void 0x0:_0x10df3c[_0x40fa44(0x234)])===_0x690970[_0x40fa44(0x20d)]){this[_0x40fa44(0x2c0)]=_0x31f4be[_0x40fa44(0x210)],this[_0x40fa44(0x2a9)]=_0x31f4be[_0x40fa44(0x355)],this[_0x40fa44(0x2fc)]=_0x31f4be['subUnitId'],this[_0x40fa44(0x37e)]=this[_0x40fa44(0x33a)](_0x31f4be[_0x40fa44(0x355)],_0x31f4be[_0x40fa44(0x203)],_0x31f4be[_0x40fa44(0x210)]),this[_0x40fa44(0x34c)](),this[_0x40fa44(0x22e)]();return;}}this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x40fa44(0x2a9)]=null,this[_0x40fa44(0x2fc)]=null,this[_0x40fa44(0x34c)]();})),this[_0x443c30(0x2fd)](_0xfc549c(this[_0x443c30(0x291)][_0x443c30(0x256)],this[_0x443c30(0x291)][_0x443c30(0x217)])[_0x443c30(0x251)](_0x82db28=>{const _0xab19d0=_0x443c30;var _0x37c358;let _0x2d1ac1=_0x82db28[_0xab19d0(0x2ec)](_0x4885c2=>_0x4885c2[_0xab19d0(0x210)]===this['_activeShapeId']&&_0x4885c2['unitId']===this[_0xab19d0(0x2a9)]&&_0x4885c2['subUnitId']===this[_0xab19d0(0x2fc)]);_0x2d1ac1&&((_0x37c358=this['_drawingManagerService'][_0xab19d0(0x207)](_0x2d1ac1))==null?void 0x0:_0x37c358[_0xab19d0(0x234)])===_0x690970['DRAWING_SHAPE']&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x443c30(0x2fd)](this['_drawingManagerService'][_0x443c30(0x354)][_0x443c30(0x251)](_0x910068=>{const _0x12ade9=_0x443c30;for(let _0x47f0d3 of _0x910068)this[_0x12ade9(0x2c0)]===_0x47f0d3[_0x12ade9(0x210)]&&(this[_0x12ade9(0x2c0)]=null,this[_0x12ade9(0x37e)]=void 0x0,this[_0x12ade9(0x2a9)]=null,this[_0x12ade9(0x2fc)]=null,this[_0x12ade9(0x34c)]());}));}};zi=Y([J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x582229)],zi);let Q=class extends _0x5721ff{constructor(_0x4b4491,_0x2537d7){const _0x4e0629=_0x1ed081;super(),this[_0x4e0629(0x382)]=_0x4b4491,this[_0x4e0629(0x377)]=_0x2537d7,Z(this,'_editingParams$',new _0x4246c4(null)),Z(this,_0x4e0629(0x293),this['_editingParams$'][_0x4e0629(0x343)]()),Z(this,'_onSavingEditorData$',new _0x4246c4(!0x1)),Z(this,_0x4e0629(0x349),this['_onSavingEditorData$'][_0x4e0629(0x343)]()),Z(this,_0x4e0629(0x26e),void 0x0),this[_0x4e0629(0x2fd)](this[_0x4e0629(0x382)][_0x4e0629(0x3af)][_0x4e0629(0x251)](()=>{const _0x287b0b=_0x4e0629;let _0x1cd4e3=this['getEditing']();_0x1cd4e3!=null&&_0x1cd4e3[_0x287b0b(0x232)]&&!this['_canEdit'](_0x1cd4e3)&&this[_0x287b0b(0x372)](null);}));}['dispose'](){const _0x3ab73d=_0x1ed081;this[_0x3ab73d(0x383)](),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x2d8)](null),this[_0x3ab73d(0x1fb)][_0x3ab73d(0x3ff)](),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x2d8)](!0x1),this[_0x3ab73d(0x1f0)][_0x3ab73d(0x3ff)](),super[_0x3ab73d(0x208)]();}[_0x1ed081(0x372)](_0x189af4){const _0x5950c=_0x1ed081;(_0x189af4==null||!_0x189af4[_0x5950c(0x232)]||this[_0x5950c(0x2a1)](_0x189af4))&&(this[_0x5950c(0x383)](),this[_0x5950c(0x1fb)][_0x5950c(0x2d8)](_0x189af4),(_0x189af4==null||_0x189af4['visible']&&this[_0x5950c(0x1f0)][_0x5950c(0x3cd)]())&&this[_0x5950c(0x1f0)][_0x5950c(0x2d8)](!0x1));}[_0x1ed081(0x311)](_0x4b9b4a){const _0x164d87=_0x1ed081;this[_0x164d87(0x1f0)][_0x164d87(0x2d8)](_0x4b9b4a);}[_0x1ed081(0x24c)](){const _0x932d=_0x1ed081;return this[_0x932d(0x1fb)][_0x932d(0x3cd)]();}[_0x1ed081(0x2a1)](_0x1de03c){const _0x2967fa=_0x1ed081;let _0x2a99f5=this[_0x2967fa(0x377)][_0x2967fa(0x3d3)](_0x1de03c[_0x2967fa(0x355)],_0x436dd9[_0x2967fa(0x335)]);if(!_0x2a99f5)return!0x0;let _0x7921de=_0x1fc7f8(_0x2a99f5,_0x1de03c['shapeId']);return _0x47555f(this[_0x2967fa(0x382)],_0x1de03c[_0x2967fa(0x355)],[..._0x1a179a(_0x2a99f5,_0x7921de,'drawing',_0x1de03c[_0x2967fa(0x317)]),_0x5462ea(_0x7921de,_0x2967fa(0x2fa),_0x1de03c[_0x2967fa(0x317)])]);}[_0x1ed081(0x3cc)](_0x58de5f){const _0x255614=_0x1ed081;let _0x497b46=this[_0x255614(0x24c)]();_0x497b46&&this['_completionFrame']===void 0x0&&(this[_0x255614(0x311)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5d492a=_0x255614;this[_0x5d492a(0x26e)]=void 0x0,this[_0x5d492a(0x24c)]()===_0x497b46&&this[_0x5d492a(0x372)](null);}));}[_0x1ed081(0x383)](){const _0x1b85fc=_0x1ed081;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1b85fc(0x26e)]),this[_0x1b85fc(0x26e)]=void 0x0);}['cancelEditing'](){const _0x52f407=_0x1ed081;this[_0x52f407(0x24c)]()&&this[_0x52f407(0x372)](null);}};Q=Y([J(0x0,_0x49aab3),J(0x1,_0x357598)],Q);function Bi(_0x975de3){const _0xa3d236=_0x1ed081;return _0x975de3[_0xa3d236(0x396)]===!0x0||_0x975de3[_0xa3d236(0x396)]===_0x1fdcb8[_0xa3d236(0x1f9)]||_0x975de3[_0xa3d236(0x29f)]===_0x1ef66e['WRAP_NONE']&&_0x975de3[_0xa3d236(0x259)]===_0x1fdcb8[_0xa3d236(0x1f9)]?_0x47a510-0x1:_0x8e9c78;}let $=class extends _0x5721ff{constructor(_0x2ab307,_0x5a8741,_0x36116a,_0x5c3af5,_0x235519,_0xcabf0f,_0x366b8a){const _0x16ae0c=_0x1ed081;super(),this[_0x16ae0c(0x291)]=_0x2ab307,this[_0x16ae0c(0x26c)]=_0x5a8741,this[_0x16ae0c(0x437)]=_0x36116a,this[_0x16ae0c(0x2ff)]=_0x5c3af5,this[_0x16ae0c(0x32a)]=_0x235519,this['_shapeTextEditingService']=_0xcabf0f,this[_0x16ae0c(0x401)]=_0x366b8a,Z(this,_0x16ae0c(0x2b2),new Map()),this['disposeWithMe'](this[_0x16ae0c(0x401)]['presentationChanged$'][_0x16ae0c(0x251)](_0x7f4ace=>{const _0x5acd2e=_0x16ae0c;var _0x37ec92;(_0x37ec92=this[_0x5acd2e(0x2b2)]['get'](this[_0x5acd2e(0x33f)](_0x7f4ace['unitId'],_0x7f4ace[_0x5acd2e(0x203)],_0x7f4ace[_0x5acd2e(0x317)])))==null||_0x37ec92['forEach'](_0x5e9e9a=>_0x5e9e9a[_0x5acd2e(0x27b)](_0x7f4ace[_0x5acd2e(0x3b8)],_0x7f4ace[_0x5acd2e(0x3dc)]));})),this[_0x16ae0c(0x2fd)](this[_0x16ae0c(0x291)]['remove$'][_0x16ae0c(0x251)](_0x1319b1=>{const _0x253cf6=_0x16ae0c;_0x1319b1[_0x253cf6(0x323)](_0x436006=>{const _0x4f0d28=_0x253cf6;this['_shapeFormulaService']['unregister']({'unitId':_0x436006[_0x4f0d28(0x355)],'subUnitId':_0x436006[_0x4f0d28(0x203)],'shapeId':_0x436006[_0x4f0d28(0x210)]}),this[_0x4f0d28(0x2b2)][_0x4f0d28(0x39f)](this['_formulaKey'](_0x436006['unitId'],_0x436006[_0x4f0d28(0x203)],_0x436006['drawingId']));});}));}[_0x1ed081(0x2df)](_0x439578,_0x39069a){const _0x39dbbd=_0x1ed081;let {transform:_0x3351b6,drawingType:_0x1e8c21,srcRect:_0x337fdb,prstGeom:_0x74fc89,groupId:_0x492bfc,unitId:_0x5c45f8,subUnitId:_0x4abff9,drawingId:_0x29e51c,isMultiTransform:_0x14842a,transforms:_0x5f033b,hidden:_0x594c35,selectable:_0x1622c3}=_0x439578;if(_0x1e8c21!==_0x690970[_0x39dbbd(0x20d)]||!this[_0x39dbbd(0x291)]['getDrawingVisible']()||_0x3351b6==null)return;let _0x9cf6d7=this[_0x39dbbd(0x291)][_0x39dbbd(0x2c6)](),_0x5f182c=_0x14842a&&_0x5f033b?_0x5f033b:[_0x3351b6],_0x730e44=[];for(let [_0x4a5838,_0x486789]of _0x5f182c[_0x39dbbd(0x258)]()){let {left:_0x361d07,top:_0x175242,width:_0x56ed74,height:_0x14c0b6,angle:_0x35ada6,flipX:_0x2c1f5c,flipY:_0x73cff,skewX:_0xa321ac,skewY:_0x4e2611}=_0x486789,_0x58c789=_0x54547b({'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'drawingId':_0x29e51c},_0x14842a?_0x4a5838:void 0x0),_0x4aeb89=_0x39069a['getObjectIncludeInGroup'](_0x58c789);if(_0x4aeb89!=null){let _0x4018f0={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x4aeb89 instanceof Ri&&this[_0x39dbbd(0x40f)](_0x4aeb89,_0x4018f0),_0x4aeb89[_0x39dbbd(0x3be)]({'left':_0x361d07,'top':_0x175242,'width':_0x56ed74,'height':_0x14c0b6,'angle':_0x35ada6,'flipX':_0x2c1f5c,'flipY':_0x73cff,'skewX':_0xa321ac,'skewY':_0x4e2611});continue;}let _0xc93dde=this['_drawingManagerService'][_0x39dbbd(0x3ae)](_0x5c45f8,_0x4abff9),_0x582d98=_0xc93dde[_0x39dbbd(0x414)](_0x29e51c);if(_0x39069a[_0x39dbbd(0x3fa)](_0x58c789)||!this[_0x39dbbd(0x291)][_0x39dbbd(0x237)]())continue;let _0x1594f3=this[_0x39dbbd(0x26c)]['getShapeModel'](_0x5c45f8,_0x4abff9,_0x29e51c);if(!_0x1594f3)continue;let _0x1a75c2=_0x238e4e(_0x1594f3[_0x39dbbd(0x40b)]())?{..._0x45b1c1,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x45b1c1,_0x52119b=_0x1594f3[_0x39dbbd(0x3c2)]()[_0x39dbbd(0x1f5)],_0x12761e={'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c};_0x52119b&&this[_0x39dbbd(0x401)][_0x39dbbd(0x314)](_0x12761e,_0x52119b);let _0x67366a=new Ri(_0x58c789,{..._0x486789,'zIndex':_0x582d98===-0x1?_0xc93dde[_0x39dbbd(0x43c)]-0x1:_0x582d98,'shapeModel':_0x1594f3,'localeService':this[_0x39dbbd(0x437)],'shapeId':_0x29e51c,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'visible':_0x594c35!==!0x0,'evented':_0x1622c3!==!0x1,'formulaPresentation':_0x52119b?this[_0x39dbbd(0x401)][_0x39dbbd(0x3bb)](_0x12761e):void 0x0,'animateFormulaPresentation':(_0x52119b==null?void 0x0:_0x52119b[_0x39dbbd(0x3dc)])!==!0x1,'transformerConfig':_0x1a75c2});if(_0x52119b){let _0x6facf6=this['_formulaKey'](_0x5c45f8,_0x4abff9,_0x29e51c),_0xbeb95f=this[_0x39dbbd(0x2b2)]['get'](_0x6facf6)??new Set();_0xbeb95f['add'](_0x67366a),this[_0x39dbbd(0x2b2)][_0x39dbbd(0x2e7)](_0x6facf6,_0xbeb95f);}this[_0x39dbbd(0x2fd)](_0xfac87e(_0x67366a[_0x39dbbd(0x310)]['subscribeEvent']((_0x48c4ed,_0x2d2ede)=>{const _0x2e7f0b=_0x39dbbd;_0x1594f3[_0x2e7f0b(0x248)]()||_0x52119b||(this[_0x2e7f0b(0x230)][_0x2e7f0b(0x372)]({'visible':!0x0,'unitId':_0x5c45f8,'subUnitId':_0x4abff9,'shapeId':_0x29e51c,'shapeKey':_0x67366a[_0x2e7f0b(0x1e8)]}),_0x2d2ede[_0x2e7f0b(0x367)]());}))),_0x39069a[_0x39dbbd(0x2ed)](_0x67366a,Bi(_0x439578)),_0x9cf6d7&&_0x39069a['attachTransformerTo'](_0x67366a),_0x492bfc&&_0x514f17({'drawingId':_0x492bfc,'unitId':_0x5c45f8,'subUnitId':_0x4abff9},_0x67366a,_0x39069a,this[_0x39dbbd(0x291)],_0x14842a?_0x4a5838:void 0x0),_0x74fc89!=null&&_0x67366a[_0x39dbbd(0x29c)](_0x74fc89),_0x337fdb!=null&&_0x67366a[_0x39dbbd(0x430)](_0x337fdb),this[_0x39dbbd(0x369)](_0x67366a,_0x1594f3[_0x39dbbd(0x3c2)]()),_0x730e44[_0x39dbbd(0x39c)](_0x67366a);}return _0x730e44;}['_formulaKey'](_0x47a34d,_0x277a2b,_0x574c81){return _0x47a34d+'\x00'+_0x277a2b+'\x00'+_0x574c81;}[_0x1ed081(0x40f)](_0x517030,_0x5872ff){const _0x41fcca=_0x1ed081;let _0x4d534a=this[_0x41fcca(0x26c)][_0x41fcca(0x381)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff[_0x41fcca(0x203)],_0x5872ff[_0x41fcca(0x317)]),_0x165005=_0x4d534a==null?void 0x0:_0x4d534a[_0x41fcca(0x3c2)]()[_0x41fcca(0x1f5)],_0x9e2cd3=this[_0x41fcca(0x33f)](_0x5872ff[_0x41fcca(0x355)],_0x5872ff['subUnitId'],_0x5872ff['shapeId']);if(_0x165005){this[_0x41fcca(0x401)][_0x41fcca(0x314)](_0x5872ff,_0x165005);let _0x1d4f2e=this['_formulaShapes'][_0x41fcca(0x410)](_0x9e2cd3)??new Set();_0x1d4f2e[_0x41fcca(0x28d)](_0x517030),this['_formulaShapes']['set'](_0x9e2cd3,_0x1d4f2e);}else{var _0x19e8f4;this[_0x41fcca(0x401)][_0x41fcca(0x3f9)](_0x5872ff),(_0x19e8f4=this[_0x41fcca(0x2b2)]['get'](_0x9e2cd3))==null||_0x19e8f4[_0x41fcca(0x39f)](_0x517030);}_0x517030[_0x41fcca(0x27b)](_0x165005?this['_shapeFormulaService']['getPresentation'](_0x5872ff):void 0x0,(_0x165005==null?void 0x0:_0x165005['animationEnabled'])!==!0x1);}[_0x1ed081(0x21d)](_0x21d411){const _0x172a73=_0x1ed081;let _0x9996e4=_0x21d411[_0x172a73(0x2d4)][_0x172a73(0x3c2)](),_0x1c313a=_0x9996e4[_0x172a73(0x329)];if(!_0x1c313a||_0x1c313a['fillType']!==_0x81ceb[_0x172a73(0x3a2)]||!_0x1c313a[_0x172a73(0x438)]){_0x21d411['setFillImage'](void 0x0);return;}this[_0x172a73(0x369)](_0x21d411,_0x9996e4);}[_0x1ed081(0x369)](_0x25339e,_0x47617a){const _0x3fccc2=_0x1ed081;let _0x316d26=_0x47617a[_0x3fccc2(0x329)];if(!_0x316d26||_0x316d26[_0x3fccc2(0x423)]!==_0x81ceb[_0x3fccc2(0x3a2)]||!_0x316d26[_0x3fccc2(0x438)])return;let _0x25798a=_0x316d26[_0x3fccc2(0x438)],_0x29955a=_0x316d26[_0x3fccc2(0x400)]??_0x2fdab0[_0x3fccc2(0x3b4)],_0x50b307=this[_0x3fccc2(0x2ff)][_0x3fccc2(0x398)](_0x25798a,_0x29955a);if(_0x50b307){_0x25339e[_0x3fccc2(0x25d)](_0x50b307);return;}this[_0x3fccc2(0x30c)](_0x25339e,_0x25798a,_0x29955a);}async['_loadAndSetImage'](_0x1d38e3,_0x1a6f55,_0x4dca7e){const _0x14dedf=_0x1ed081;let _0x81bb19;try{if(_0x4dca7e===_0x2fdab0['UUID'])_0x81bb19=await this[_0x14dedf(0x2ff)][_0x14dedf(0x3e9)](_0x1a6f55);else{if(_0x4dca7e===_0x2fdab0[_0x14dedf(0x3b4)])try{_0x81bb19=await this['_urlImageService'][_0x14dedf(0x3e9)](_0x1a6f55);}catch{_0x81bb19=_0x1a6f55;}else _0x81bb19=_0x1a6f55;}}catch(_0x4073d3){console[_0x14dedf(0x288)](_0x14dedf(0x260),_0x4073d3);return;}let _0x195880=new window['Image']();_0x195880[_0x14dedf(0x1ff)]=()=>{const _0x320b15=_0x14dedf;this[_0x320b15(0x2ff)]['addImageSourceCache'](_0x1a6f55,_0x4dca7e,_0x195880),_0x1d38e3[_0x320b15(0x25d)](_0x195880);},_0x195880[_0x14dedf(0x392)]=()=>{const _0x4d65e5=_0x14dedf;console[_0x4d65e5(0x288)](_0x4d65e5(0x40e),_0x1a6f55);},_0x195880[_0x14dedf(0x286)]=_0x81bb19;}};$=Y([J(0x0,_0x4cc4c4),J(0x1,_0x4e9d1c(_0x39396e)),J(0x2,_0x4e9d1c(_0x4b811c)),J(0x3,_0x272990),J(0x4,_0x2d26b4),J(0x5,_0x4e9d1c(Q)),J(0x6,_0x4e9d1c(_0x44c530))],$);let Vi=class extends _0x5721ff{constructor(_0x1b1c55,_0x1d2f23,_0x11d315){const _0x506d21=_0x1ed081;super(),this[_0x506d21(0x417)]=_0x1b1c55,this[_0x506d21(0x291)]=_0x1d2f23,this[_0x506d21(0x3fe)]=_0x11d315,this['_initPrinting']();}[_0x1ed081(0x25a)](){const _0x646805=_0x1ed081;this['disposeWithMe'](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x37c)](this[_0x646805(0x417)][_0x646805(0x2e2)][_0x646805(0x38f)]()[_0x646805(0x20e)],{'handler':(_0x5171d7,_0x396c77,_0x48e025)=>{const _0xd8fd7=_0x646805;var _0x543bd2;let {unitId:_0x494f1a,scene:_0x4c7a02,skeleton:_0x112af9}=_0x396c77,{pageIndex:_0x48133a}=_0x396c77,_0x39b73d=(_0x543bd2=this[_0xd8fd7(0x291)][_0xd8fd7(0x254)](_0x494f1a))==null?void 0x0:_0x543bd2[_0x494f1a],_0x291ca1=Hi(this[_0xd8fd7(0x417)],_0x112af9,_0x48133a);return _0x39b73d==null||_0x39b73d[_0xd8fd7(0x3e8)][_0xd8fd7(0x323)](_0x3d857a=>{const _0x1ee408=_0xd8fd7;if(_0x291ca1&&!_0x291ca1[_0x1ee408(0x2c5)](_0x3d857a))return;let _0x7679a4=_0x39b73d['data'][_0x3d857a];_0x7679a4['drawingType']===_0x690970[_0x1ee408(0x20d)]&&!_0x7679a4[_0x1ee408(0x21a)]&&this[_0x1ee408(0x3fe)][_0x1ee408(0x2df)](_0x7679a4,_0x4c7a02);}),_0x48e025(_0x5171d7);}}));}};Vi=Y([J(0x0,_0x4e9d1c(_0x10ee9c)),J(0x1,_0x4cc4c4),J(0x2,_0x4e9d1c($))],Vi);function Hi(_0x4d4656,_0x57b5c5,_0x4c544b){const _0x10e325=_0x1ed081;var _0x57982e,_0x4f127f;let _0x3fed02=_0x4d4656;if(_0x3fed02[_0x10e325(0x3ce)])return _0x3fed02[_0x10e325(0x3ce)](_0x57b5c5,_0x4c544b);let _0x2cbcf4=_0x57b5c5[_0x10e325(0x220)]();if(!_0x2cbcf4||_0x2cbcf4[_0x10e325(0x3fc)]['length']<=0x1||_0x4c544b==null)return null;let _0x409759=new Set(),_0x4a9c40=_0x2cbcf4[_0x10e325(0x3fc)][_0x4c544b];if(!_0x4a9c40)return _0x409759;Ui(_0x4a9c40,_0x409759);let _0x19849e=(_0x57982e=_0x2cbcf4['skeHeaders'][_0x10e325(0x410)](_0x4a9c40[_0x10e325(0x345)]))==null?void 0x0:_0x57982e[_0x10e325(0x410)](_0x4a9c40['pageWidth']),_0x5e9935=(_0x4f127f=_0x2cbcf4[_0x10e325(0x242)][_0x10e325(0x410)](_0x4a9c40['footerId']))==null?void 0x0:_0x4f127f[_0x10e325(0x410)](_0x4a9c40['pageWidth']);return _0x19849e&&Ui(_0x19849e,_0x409759),_0x5e9935&&Ui(_0x5e9935,_0x409759),_0x409759;}function Ui(_0x4cda65,_0x19cce3){const _0x5e2e44=_0x1ed081;for(let _0x2e676d of _0x4cda65['skeDrawings']['keys']())_0x19cce3[_0x5e2e44(0x28d)](_0x2e676d);for(let _0x85151e of _0x4cda65[_0x5e2e44(0x3e5)][_0x5e2e44(0x2c2)]())for(let _0x150a5d of _0x85151e[_0x5e2e44(0x3df)])for(let _0x143cc6 of _0x150a5d[_0x5e2e44(0x374)])Ui(_0x143cc6,_0x19cce3);}function Wi(_0x572687){return _0x20be44(Nr,{..._0x572687,'PickerComponent':_0x28df4e});}function Gi(){const _0x4e7c00=_0x1ed081;let _0x26e57f=_0x5c5c3d(_0x4b811c),_0x22f362=Ar(),[_0x4f797f,_0x5d37d1]=_0x5d63ba(!0x1);return _0x56d981(_0x4e7c00(0x29b),{'className':_0x4e7c00(0x24d),'children':[_0x20be44(_0x37d12d,{'title':_0x26e57f['t'](_0x4e7c00(0x434)),'aria-expanded':_0x4f797f,'variant':_0x4e7c00(0x446),'trailing':_0x20be44(_0x4f797f?_0x19b22a:_0x5c6907,{}),'onClick':()=>_0x5d37d1(_0x2266ed=>!_0x2266ed)}),_0x4f797f&&_0x20be44(_0x28df4e,{'excludeGroups':[_0x4f9fa7[_0x4e7c00(0x239)]],'onShapeClick':_0xc0a1d2=>{_0x22f362(_0xc0a1d2),_0x5d37d1(!0x1);}})]});}function Ki(_0x4cb6d5){const _0x5f1bdf=_0x1ed081;return _0x4cb6d5[_0x5f1bdf(0x1f6)]()||void 0x0;}function qi(_0x95761b,_0xbba491,_0x55d0d2){const _0xd7a3af=_0x1ed081;var _0x5e254e,_0x58b84e;return((_0x5e254e=_0x95761b['name'])==null?void 0x0:_0x5e254e[_0xd7a3af(0x1f6)]())||((_0x58b84e=_0x95761b['title'])==null?void 0x0:_0x58b84e[_0xd7a3af(0x1f6)]())||_0x55d0d2['t'](_0xd7a3af(0x315)+_0x58a6be(_0x95761b[_0xd7a3af(0x234)]))+'\x20'+(_0xbba491+0x1);}function Ji({PanelComponent:_0x36a83d=_0x92c98e}){const _0x4a9a5e=_0x1ed081;let _0x173e95=_0x5c5c3d(_0x4b811c),_0x1d006c={'title':_0x173e95['t'](_0x4a9a5e(0x24b)),'empty':_0x173e95['t'](_0x4a9a5e(0x1fc)),'showAll':_0x173e95['t'](_0x4a9a5e(0x2eb)),'hideAll':_0x173e95['t'](_0x4a9a5e(0x403)),'lockAll':_0x173e95['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x173e95['t'](_0x4a9a5e(0x2ab)),'moveForward':_0x173e95['t'](_0x4a9a5e(0x1f8)),'moveBackward':_0x173e95['t']('drawing-ui.objectListPanel.moveBackward'),'close':_0x173e95['t'](_0x4a9a5e(0x231)),'show':_0x173e95['t'](_0x4a9a5e(0x2bc)),'hide':_0x173e95['t'](_0x4a9a5e(0x3ad)),'lock':_0x173e95['t'](_0x4a9a5e(0x3e0)),'unlock':_0x173e95['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0x173e95['t'](_0x4a9a5e(0x353)),'unlockHint':_0x173e95['t'](_0x4a9a5e(0x3b3)),'name':_0x173e95['t'](_0x4a9a5e(0x2e8)),'nameInput':_0x173e95['t'](_0x4a9a5e(0x1f4)),'description':_0x173e95['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x173e95['t'](_0x4a9a5e(0x41d)),'details':_0x173e95['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x173e95['t'](_0x4a9a5e(0x3d0)),'locate':_0x173e95['t'](_0x4a9a5e(0x3a5)),'expand':_0x173e95['t'](_0x4a9a5e(0x281)),'collapse':_0x173e95['t'](_0x4a9a5e(0x2a3)),'dragToReorder':_0x173e95['t'](_0x4a9a5e(0x3a0)),'search':_0x173e95['t'](_0x4a9a5e(0x395)),'filterAll':_0x173e95['t'](_0x4a9a5e(0x440)),'filterHidden':_0x173e95['t'](_0x4a9a5e(0x43d)),'filterLocked':_0x173e95['t'](_0x4a9a5e(0x276)),'sectionCanvas':_0x173e95['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x173e95['t'](_0x4a9a5e(0x24e))},_0xe517f7=_0x5c5c3d(_0x582229),_0x1d9e9e=_0x5c5c3d(_0x357598),_0x553c45=_0x5c5c3d(_0x5f2715),_0x20f9d2=_0x5c5c3d(_0x4cc4c4),_0x46bfca=_0x5c5c3d(_0x1b5744),[,_0x241105]=_0x4aee64(_0x20e714=>_0x20e714+0x1,0x0),_0x9ce88f=_0x1d9e9e[_0x4a9a5e(0x3c3)](_0x436dd9['UNIVER_DOC']),_0x1fe0c7=(_0x9ce88f==null?void 0x0:_0x9ce88f[_0x4a9a5e(0x336)]())??'',_0x5ba642=_0x1fe0c7,_0x219e15=_0x2f0836(()=>_0x20f9d2[_0x4a9a5e(0x273)],_0x20f9d2[_0x4a9a5e(0x2a0)](),!0x1,[_0x20f9d2]);_0x3e40cc(()=>{const _0x4dac30=_0x4a9a5e;let _0x1dc22b=_0xe517f7['onCommandExecuted'](()=>_0x241105());return()=>_0x1dc22b[_0x4dac30(0x208)]();},[_0xe517f7]);let _0x508680=_0x1fe0c7?_0x553c45['getDrawingData'](_0x1fe0c7,_0x5ba642):{},_0x3baaf9=(_0x1fe0c7?_0x553c45[_0x4a9a5e(0x3ae)](_0x1fe0c7,_0x5ba642):[])['map'](_0x5c2338=>_0x508680[_0x5c2338])[_0x4a9a5e(0x252)](_0x5d48d2=>!!_0x5d48d2)['reverse'](),_0x385675=_0x3baaf9[_0x4a9a5e(0x216)]((_0x3bb7d9,_0x427bc5)=>(_0x3bb7d9[_0x3c8fa2(_0x427bc5[_0x4a9a5e(0x234)])]+=0x1,_0x3bb7d9),{'canvas':0x0,'floating':0x0}),_0x2e94cf={'canvas':0x0,'floating':0x0},_0x166505=_0x3baaf9[_0x4a9a5e(0x427)]((_0x294816,_0x2a0874)=>{const _0x141600=_0x4a9a5e;let _0x55b57f=_0x3c8fa2(_0x294816[_0x141600(0x234)]),_0x2a3dae=_0x55b57f===_0x4887bf,_0x2afd62=_0x2e94cf[_0x55b57f]++;return{'id':_0x294816['drawingId'],'name':qi(_0x294816,_0x2a0874,_0x173e95),'description':_0x294816['description'],'visible':_0x294816[_0x141600(0x21a)]!==!0x0,'selectable':_0x294816[_0x141600(0x306)]!==!0x1,'sectionId':_0x55b57f,'sectionTitle':_0x2a3dae?_0x1d006c['sectionFloating']:_0x1d006c['sectionCanvas'],'capabilities':_0x2a3dae?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x2a3dae&&_0x2afd62>0x0,'canMoveBackward':!_0x2a3dae&&_0x2afd62<_0x385675[_0x141600(0x227)]-0x1,'canReorder':!_0x2a3dae};}),_0x2eb9c5=_0x108bd4(()=>(_0x219e15??[])[_0x4a9a5e(0x252)](_0x224f46=>_0x224f46[_0x4a9a5e(0x355)]===_0x1fe0c7&&_0x224f46[_0x4a9a5e(0x203)]===_0x5ba642)['map'](_0x457c85=>_0x457c85['drawingId']),[_0x219e15,_0x5ba642,_0x1fe0c7]),_0x31fa8b=_0x2eb9c5[_0x2eb9c5['length']-0x1]??null,_0x2932c7=_0x5cdb4e=>_0x553c45[_0x4a9a5e(0x207)]({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x5cdb4e})??null,_0x570887=async _0x58d23f=>{const _0x783b5b=_0x4a9a5e;_0x1fe0c7&&_0x58d23f[_0x783b5b(0x43c)]&&await _0xe517f7[_0x783b5b(0x402)](_0x3f9a11['id'],{'unitId':_0x1fe0c7,'patches':_0x58d23f});},_0x462d1b=(_0x186952,_0x463e6c)=>{const _0x43415f=_0x4a9a5e;if(!_0x1fe0c7)return;let _0x4e1726=_0x463e6c?_0x2eb9c5[_0x43415f(0x228)](_0x186952)?_0x2eb9c5[_0x43415f(0x252)](_0xe3d3ef=>_0xe3d3ef!==_0x186952):[..._0x2eb9c5,_0x186952]:[_0x186952];_0xe517f7[_0x43415f(0x2e3)](_0x4216b5['id'],_0x4e1726['map'](_0x2968fa=>({'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x2968fa})));let _0x577564=_0x4e1726[_0x4e1726[_0x43415f(0x43c)]-0x1];_0x577564?_0x58d512(_0x46bfca,{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingId':_0x577564}):_0x55746c(_0x46bfca,_0x1fe0c7);},_0x2f35cd=async(_0x232cb4,_0x30d057)=>{const _0x55896a=_0x4a9a5e;await _0x570887(_0x232cb4[_0x55896a(0x427)](_0x1dae02=>_0x2932c7(_0x1dae02))[_0x55896a(0x252)](_0x582af5=>!!_0x582af5)[_0x55896a(0x252)](_0x4d6187=>_0x4d6187[_0x55896a(0x21a)]!==!0x0!==_0x30d057)[_0x55896a(0x427)](_0x3b2351=>({'drawingId':_0x3b2351[_0x55896a(0x210)],'hidden':!_0x30d057})));},_0x2cb868=async(_0xbc50d2,_0x264105)=>{const _0x5095aa=_0x4a9a5e;await _0x570887(_0xbc50d2[_0x5095aa(0x427)](_0x1d85fc=>_0x2932c7(_0x1d85fc))[_0x5095aa(0x252)](_0x30bec4=>!!_0x30bec4)[_0x5095aa(0x252)](_0xbefbbe=>_0xbefbbe[_0x5095aa(0x306)]!==!0x1!==_0x264105)[_0x5095aa(0x427)](_0x50c79e=>({'drawingId':_0x50c79e['drawingId'],'selectable':_0x264105})));},_0x41ecd0=_0x42aa2b=>{const _0x1e223f=_0x4a9a5e;let _0xa7c6c6=_0x2932c7(_0x42aa2b);if(_0xa7c6c6)return _0x2cb868([_0x42aa2b],_0xa7c6c6[_0x1e223f(0x306)]===!0x1);},_0x5db648=async(_0x34ab8c,_0xd43510)=>{const _0x271bf6=_0x4a9a5e;let _0x23c22d=_0x2932c7(_0x34ab8c),_0x5bc3d9=Ki(_0xd43510);!_0x23c22d||(_0x23c22d[_0x271bf6(0x1f7)]??void 0x0)===_0x5bc3d9&&(_0x23c22d[_0x271bf6(0x415)]||void 0x0)===_0x5bc3d9||await _0x570887([{'drawingId':_0x34ab8c,'name':_0x5bc3d9,'title':_0x5bc3d9}]);},_0x4c8b72=async(_0x4a11b2,_0x52fc3d)=>{const _0x300851=_0x4a9a5e;let _0x42c7a1=_0x2932c7(_0x4a11b2),_0xa7eec4=Ki(_0x52fc3d);_0x42c7a1&&(_0x42c7a1[_0x300851(0x2f2)]??void 0x0)!==_0xa7eec4&&await _0x570887([{'drawingId':_0x4a11b2,'description':_0xa7eec4}]);},_0x41a100=async(_0x174a6b,_0xf2f595)=>{const _0x55a8ba=_0x4a9a5e;_0x1fe0c7&&await _0xe517f7[_0x55a8ba(0x402)](_0x5dc4dd['id'],{'unitId':_0x1fe0c7,'subUnitId':_0x5ba642,'drawingIds':[_0x174a6b],'arrangeType':_0xf2f595});};return _0x1fe0c7?_0x20be44(_0x36a83d,{'labels':_0x1d006c,'renderPermissionAction':_0x3c4752=>_0x9ce88f?_0x20be44(_0x54a7e7,{'target':{'unitId':_0x1fe0c7,'objectId':_0x5462ea(_0x1fc7f8(_0x9ce88f,_0x3c4752['id']),_0x4a9a5e(0x2fa),_0x3c4752['id']),'objectType':_0x3d15f1['DocumentEntity']},'name':_0x3c4752['name'],'commandId':_0x4a71fc['id'],'exists':()=>!!_0x2932c7(_0x3c4752['id'])},_0x1fe0c7+'/'+_0x3c4752['id']):null,'items':_0x166505,'selectedIds':_0x2eb9c5,'focusedId':_0x31fa8b,'showHeader':!0x1,'onSelect':_0x462d1b,'onSetVisible':_0x2f35cd,'onSetSelectable':_0x2cb868,'onCommitName':_0x5db648,'onCommitDescription':_0x4c8b72,'onMoveForward':async _0x26d782=>_0x41a100(_0x26d782,_0x30db5e[_0x4a9a5e(0x2bd)]),'onMoveBackward':async _0xc9ad4a=>_0x41a100(_0xc9ad4a,_0x30db5e[_0x4a9a5e(0x2a6)]),'onToggleSelectable':_0x41ecd0}):_0x20be44(_0x4a9a5e(0x29b),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1d006c[_0x4a9a5e(0x415)]});}function Yi(){return _0x20be44(Ji,{'PanelComponent':_0x49b254});}let Xi=class{constructor(_0x1aab72){const _0x179e7b=_0x1ed081;this[_0x179e7b(0x283)]=_0x1aab72;}[_0x1ed081(0x327)](_0x3518e1,_0x1213f9){const _0x2d943c=_0x1ed081;let _0x47137c=this['_renderManagerService']['getRenderUnitById'](_0x3518e1[_0x2d943c(0x355)]),_0x825ff5=_0x47137c==null?void 0x0:_0x47137c[_0x2d943c(0x27e)];if(!_0x825ff5)return;let _0x1b3a56=_0x54547b(_0x3518e1),_0x4b623f=_0x825ff5['getObjectIncludeInGroup'](_0x1b3a56);_0x4b623f==null||_0x4b623f[_0x2d943c(0x25d)](_0x1213f9);}};Xi=Y([J(0x0,_0x1b5744)],Xi);function Zi(){const _0x49d260=_0x1ed081;let _0x1fca96=_0x5c5c3d(_0x4cc4c4),_0x3a2087=_0x2f0836(()=>_0x1fca96['focus$'],_0x1fca96[_0x49d260(0x2a0)](),!0x1,[_0x1fca96]);return _0x3a2087['length']===0x0?null:_0x20be44(_0x49d260(0x29b),{'children':_0x56d981(_0x49d260(0x29b),{'className':_0x49d260(0x23f),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x3a2087,'hasCropper':!0x1}),_0x20be44(_0x19e2da,{'drawings':_0x3a2087}),_0x20be44(_0x397b36,{'drawings':_0x3a2087})]})});}function Qi(_0x15147c){let {unitId:_0x479b15,subUnitId:_0x41c58a,shapeId:_0x4c45a4,PositionComponent:_0x6e12d7=Zi}=_0x15147c,_0x59ad28=_0x5c5c3d(_0x582229),_0x1690b2=_0x5c5c3d(Xi);return _0x20be44(_0x528db9,{..._0x15147c,'positionEditor':_0x20be44(_0x6e12d7,{}),'onUpdateShapeData':(_0x4068bc,_0x200614)=>{zr(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4068bc,_0x200614);},'onUpdateLineShapeData':(_0x4d83e3,_0x507ef4)=>{Br(_0x59ad28,_0x479b15,_0x41c58a,_0x4c45a4,_0x4d83e3,_0x507ef4);},'onUpdateShapeFillImage':_0x24a74e=>{_0x1690b2['updateShapeFillImage']({'unitId':_0x479b15,'subUnitId':_0x41c58a,'drawingId':_0x4c45a4},_0x24a74e);}});}function $i(){const _0x66d3ac=_0x1ed081;let _0x3a97b1=_0x5c5c3d(_0x4cc4c4),_0x10a5a4=_0x2f0836(_0x3a97b1[_0x66d3ac(0x273)],_0x3a97b1[_0x66d3ac(0x2a0)]());return _0x10a5a4[_0x66d3ac(0x43c)]===0x0?null:_0x56d981(_0x66d3ac(0x29b),{'className':_0x66d3ac(0x265),'children':[_0x20be44(_0xe08cbd,{'drawings':_0x10a5a4,'hasCropper':!0x1}),_0x20be44(_0x416f6b,{'drawings':_0x10a5a4}),_0x20be44(_0x3ccd8d,{'drawings':_0x10a5a4})]});}function ea(_0x1f5862){return _0x20be44(_0x3de1f7,{'children':_0x20be44(Qi,{..._0x1f5862,'PositionComponent':$i})});}function ta({popup:_0x332760}){const _0x9b4388=_0x1ed081;let _0x2e40c8=_0x5c5c3d(_0x4b811c),{shapeType:_0x187e48,onText:_0x2285a6,onStyle:_0x51f850,onDelete:_0x3db312}=_0x332760['extraProps'],_0x38f1e9=[{'key':_0x9b4388(0x348),'order':0x0,'item':{'id':_0x9b4388(0x348),'type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x24a)),'disabled$':_0x13712d(_0x238e4e(_0x187e48))}},{'key':_0x9b4388(0x28b),'order':0x1,'item':{'id':'style','type':_0x2f080a['BUTTON'],'title':_0x2e40c8['t'](_0x9b4388(0x3bf))}},{'key':_0x9b4388(0x39f),'order':0x2,'item':{'id':_0x9b4388(0x39f),'type':_0x2f080a[_0x9b4388(0x3f8)],'title':_0x2e40c8['t']('docs-shape-ui.mobile.delete')}}];return _0x20be44(_0xc85ff4,{'schemas':_0x38f1e9,'presentation':'context-bar','onOptionSelect':async({id:_0x5c1b0a})=>{const _0x27f430=_0x9b4388;_0x5c1b0a===_0x27f430(0x348)?await _0x2285a6():_0x5c1b0a===_0x27f430(0x28b)?await _0x51f850():_0x5c1b0a==='delete'&&await _0x3db312();}});}const na=_0x1ed081(0x3f3);function ra(_0x47194c,_0x17a903){const _0x404f57=_0x1ed081;var _0x377d6d;let _0x4a8f9b=_0x47194c==null||(_0x377d6d=_0x47194c[_0x404f57(0x42d)]()['drawings'])==null?void 0x0:_0x377d6d[_0x17a903];return _0x4a8f9b?_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x302)]?_0x4a8f9b['behindDoc']===_0x1fdcb8[_0x404f57(0x1f9)]?_0x4b1e43[_0x404f57(0x318)]:_0x4b1e43[_0x404f57(0x3c0)]:_0x4a8f9b['layoutType']===_0x1ef66e[_0x404f57(0x2af)]?_0x4b1e43['WRAP_SQUARE']:_0x4a8f9b[_0x404f57(0x29f)]===_0x1ef66e[_0x404f57(0x2b6)]?_0x4b1e43[_0x404f57(0x2b6)]:_0x4b1e43[_0x404f57(0x211)]:_0x4b1e43[_0x404f57(0x211)];}function ia(_0x2e2e1b){const _0x448ecc=_0x1ed081;let _0x2288f9=_0x5c5c3d(_0xd408b5),_0x2c8ae5=_0x2f0836(()=>_0x2288f9[_0x448ecc(0x43b)],_0x2288f9[_0x448ecc(0x285)](),!0x1,[_0x2288f9]),_0x210a16=_0x2e2e1b['popup'][_0x448ecc(0x3b6)];return _0x2c8ae5?_0x20be44(aa,{..._0x210a16,'canvasElement':_0x2e2e1b[_0x448ecc(0x2a4)]['canvasElement']}):null;}function aa(_0x4c80d7){const _0x1deb25=_0x1ed081;let _0x2f6728=_0x5c5c3d(_0x582229),_0x4ad36a=_0x5c5c3d(_0x4b811c),_0x3e2019=_0x5c5c3d(_0x39396e),_0x4cf841=_0x5c5c3d(_0x357598),{unitId:_0x3ca729,subUnitId:_0x4907b3,drawingId:_0x3621ea,shapeType:_0x3a0c37}=_0x4c80d7,[_0x4e6329,_0x514227]=_0x5d63ba(_0x4c80d7[_0x1deb25(0x2ba)]),_0x45c107=_0x4cf841[_0x1deb25(0x3d3)](_0x3ca729,_0x436dd9[_0x1deb25(0x335)])??void 0x0,[_0x2788b3,_0x5c6185]=_0x5d63ba(()=>ra(_0x45c107,_0x3621ea)),_0x3e370e=_0x108bd4(()=>_0x1257eb(_0x4e6329),[_0x4e6329]),_0x4d0f7c=_0x108bd4(()=>_0x11d450(_0x4e6329),[_0x4e6329]);_0x3e40cc(()=>{const _0x3e4b22=_0x1deb25;let _0x1e6e3b=_0x2f6728[_0x3e4b22(0x320)](_0x12ea30=>{if(_0x12ea30['id']!==_0xbcf5de['id'])return;let _0x2861be=_0x3e2019['getShapeDataById'](_0x3ca729,_0x4907b3,_0x3621ea);_0x2861be&&_0x514227(_0x2861be);});return()=>_0x1e6e3b[_0x3e4b22(0x208)]();},[_0x2f6728,_0x3e2019,_0x3621ea,_0x4907b3,_0x3ca729]);let _0x40e6b5=_0x5d8176=>{_0x514227(_0x2011a1=>({..._0x2011a1,..._0x5d8176}));},_0x1cceac=_0x31f6a1=>{const _0x355aa9=_0x1deb25;let _0x37c083=_0x4aa220(_0x4e6329,_0x31f6a1);zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'shapeText':_0x4e6329[_0x355aa9(0x280)]}},_0x37c083),_0x40e6b5(_0x37c083);},_0x876ffa=_0x17e1f3=>{const _0x3e7238=_0x1deb25;_0x5c6185(_0x17e1f3),_0x2f6728[_0x3e7238(0x402)](_0xdbdd89['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}],'wrappingStyle':_0x17e1f3});},_0x51c364=_0x4f9d08({'hostType':_0x436dd9[_0x1deb25(0x335)],'unitId':_0x3ca729,'subUnitId':_0x4907b3,'shapeId':_0x3621ea,'shapeData':_0x4e6329,'onUpdateBinding':_0x242ab5=>{let _0x325095={'formulaBinding':_0x242ab5};zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,{'oldShapeData':{'formulaBinding':_0x4e6329['formulaBinding']}},_0x325095),_0x40e6b5(_0x325095);}}),_0x5af67a=[{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inline'),'value':_0x4b1e43[_0x1deb25(0x211)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x23d)),'value':_0x4b1e43[_0x1deb25(0x2af)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x351)),'value':_0x4b1e43[_0x1deb25(0x2b6)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t'](_0x1deb25(0x3c4)),'value':_0x4b1e43[_0x1deb25(0x318)],'icon':_0x20be44(_0x1a2dfc,{})},{'label':_0x4ad36a['t']('docs-shape-ui.textWrap.inFrontText'),'value':_0x4b1e43['IN_FRONT_OF_TEXT'],'icon':_0x20be44(_0x1a2dfc,{})}];return _0x56d981(_0x29f7de,{'children':[_0x20be44(_0x28d84d,{'canvasElement':_0x4c80d7[_0x1deb25(0x331)],'shapeData':_0x4e6329,'shapeType':_0x3a0c37,'textStyle':{'ff':_0x127ad4[_0x1deb25(0x280)]['fontFamily'],'fs':_0x127ad4[_0x1deb25(0x280)]['fontSize'],'cl':{'rgb':_0x127ad4[_0x1deb25(0x280)][_0x1deb25(0x266)]},..._0x3e370e},'textModel':_0x4d0f7c?{'ha':_0x4d0f7c['ha']??_0x2381fc['LEFT'],'va':_0x4d0f7c['va']??_0x36ee41['TOP']}:null,'wrappingStyle':_0x2788b3,'wrappingStyleOptions':_0x5af67a,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x127ad4[_0x1deb25(0x329)],'defaultGradientEndColor':_0x127ad4['gradientEndColor'],'defaultStrokeColor':_0x127ad4['stroke'],'extensionGroups':_0x51c364['extensionGroups'],'floatingObjectToolbarPosition':_0x2b3178[_0x1deb25(0x366)],'onUpdateShapeData':(_0x6c1bd1,_0x18c35a)=>{zr(_0x2f6728,_0x3ca729,_0x4907b3,_0x3621ea,_0x6c1bd1,_0x18c35a),_0x18c35a&&_0x40e6b5(_0x18c35a);},'onUpdateText':_0x1cceac,'onUpdateWrappingStyle':_0xa39d93=>_0x876ffa(_0xa39d93),'onOpenPanel':()=>{const _0x318e5e=_0x1deb25;_0x2f6728[_0x318e5e(0x402)](q['id'],{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea});},'onDelete':()=>{_0x2f6728['executeCommand'](_0x3723c7['id'],{'unitId':_0x3ca729,'drawings':[{'unitId':_0x3ca729,'subUnitId':_0x4907b3,'drawingId':_0x3621ea}]});}}),_0x51c364[_0x1deb25(0x339)]]});}function oa({variant:_0x50da5f,extend:_0x50a243,..._0x2c3556}){const _0x18dd02=_0x1ed081;let _0x52fdcc=_0x20be44(_0x18dd02(0x32f),{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9),'fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)});return _0x56d981(_0x18dd02(0x38c),{'aria-hidden':'true','fill':_0x18dd02(0x224),'height':'1em','viewBox':_0x18dd02(0x3e7),'width':_0x18dd02(0x39a),..._0x2c3556,'children':[_0x50da5f===_0x18dd02(0x24f)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x295),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':'1.2'}),_0x20be44(_0x18dd02(0x32f),{'x':'8','y':'7','width':'4','height':'6','rx':'0.8','fill':'currentColor','fillOpacity':_0x18dd02(0x3a1),'stroke':_0x18dd02(0x3d9),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f==='square'&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x253),'stroke':'currentColor','strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x307)&&_0x56d981(_0x29f7de,{'children':[_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3eb),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)}),_0x52fdcc]}),_0x50da5f===_0x18dd02(0x3dd)&&_0x56d981(_0x29f7de,{'children':[_0x52fdcc,_0x20be44(_0x18dd02(0x368),{'d':_0x18dd02(0x3b2),'stroke':_0x18dd02(0x3d9),'strokeLinecap':_0x18dd02(0x3e4),'strokeWidth':_0x18dd02(0x3d4)})]}),_0x50da5f===_0x18dd02(0x3bc)&&_0x56d981(_0x29f7de,{'children':[_0x20be44('path',{'d':_0x18dd02(0x3b2),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x18dd02(0x3d4)}),_0x20be44(_0x18dd02(0x32f),{'x':'7','y':_0x18dd02(0x1fe),'width':'6','height':'9','rx':'1','fill':_0x18dd02(0x3d9)})]})]});}const sa=_0x3e993f=>_0x57608f=>_0x20be44(oa,{..._0x57608f,'variant':_0x3e993f}),ca={'DocsShapeWrapInlineIcon':sa(_0x1ed081(0x24f)),'DocsShapeWrapSquareIcon':sa(_0x1ed081(0x215)),'DocsShapeWrapTopBottomIcon':sa(_0x1ed081(0x307)),'DocsShapeWrapBehindTextIcon':sa(_0x1ed081(0x3dd)),'DocsShapeWrapInFrontOfTextIcon':sa(_0x1ed081(0x3bc))},la=_0x470956(()=>{const _0x4f9c79=_0x1ed081;let _0x3d8ce2=_0x5c5c3d(Q),_0x200ebd=_0x5c5c3d(_0x39396e),_0x194110=_0x5c5c3d(_0x4cc4c4),_0x177b7a=_0x5c5c3d(_0x582229),_0x48eeef=_0x108bd4(()=>({'getShapeModel':(_0x10c556,_0x38f71f,_0x41126c)=>_0x200ebd['getShapeModel'](_0x10c556,_0x38f71f,_0x41126c),'getShapeData':(_0x943ca,_0x34f84d,_0x3305a9)=>_0x200ebd[_0x4f9c79(0x2e4)](_0x943ca,_0x34f84d,_0x3305a9),'getDrawingTransform':(_0x1be73d,_0x26b496,_0x1e4888)=>{const _0x3e1425=_0x4f9c79;let _0x2cc0eb=_0x194110[_0x3e1425(0x207)]({'unitId':_0x1be73d,'subUnitId':_0x26b496,'drawingId':_0x1e4888});return _0x2cc0eb==null?void 0x0:_0x2cc0eb[_0x3e1425(0x35d)];},'updateShapeText':({unitId:_0x1105a2,shapeId:_0x399280,shapeText:_0x4a9d10,oldShapeText:_0x71f6ca})=>{const _0x222e07=_0x4f9c79;_0x177b7a[_0x222e07(0x402)](_0x46dc48['id'],{'unitId':_0x1105a2,'shapeId':_0x399280,'shapeData':{'shapeText':_0x4a9d10},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x71f6ca}}});},'updateHostSize':({unitId:_0x483c72,subUnitId:_0x490992,shapeId:_0x17b9ad,width:_0x559e2d,height:_0xa25a2c})=>{const _0x2a2487=_0x4f9c79;_0x177b7a[_0x2a2487(0x402)](_0x53a1f6['id'],{'unitId':_0x483c72,'subUnitId':_0x490992,'drawings':[{'drawingId':_0x17b9ad,'key':_0x2a2487(0x1e9),'value':{'width':_0x559e2d,'height':_0xa25a2c}}]});},'allowHostSizeShrink':({unitId:_0x5e3d20,subUnitId:_0x34183d,shapeId:_0x66d5ee})=>_0x345c86(_0x200ebd[_0x4f9c79(0x2e4)](_0x5e3d20,_0x34183d,_0x66d5ee))}),[_0x177b7a,_0x200ebd,_0x194110]),_0x5f524e=_0x108bd4(()=>({'viewportKeys':{'main':_0x384053['VIEW_MAIN']}}),[]);return _0x20be44(_0x3e1e99,{'adapter':_0x48eeef,'editingService':_0x3d8ce2,'editorUnitId':br,'positionOptions':_0x5f524e});});let ua=class extends _0x5721ff{constructor(_0xcab961,_0x57e888){const _0x4d9f30=_0x1ed081;super(),this[_0x4d9f30(0x289)]=_0xcab961,this['_iconManager']=_0x57e888,this[_0x4d9f30(0x205)](),this[_0x4d9f30(0x347)]();}['_registerIcons'](){const _0x3cf4c1=_0x1ed081;this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x22c))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)]('BottomIcon')||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'BottomIcon':_0x10f104})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x241))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0x3cf4c1(0x309)]['has'](_0x3cf4c1(0x384))||this['disposeWithMe'](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'MoveUpIcon':_0x1fa84b})),this['_iconManager'][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x2dd))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0x3cf4c1(0x309)][_0x3cf4c1(0x2c5)](_0x3cf4c1(0x352))||this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)]({'TopmostIcon':_0x88dd38})),this[_0x3cf4c1(0x2fd)](this[_0x3cf4c1(0x309)][_0x3cf4c1(0x314)](ca));}[_0x1ed081(0x347)](){const _0x10b93c=_0x1ed081;this['disposeWithMe'](this['_componentManager'][_0x10b93c(0x314)](K,ea)),this[_0x10b93c(0x3d1)](),this[_0x10b93c(0x33b)](),this['disposeWithMe'](this[_0x10b93c(0x289)]['register'](Hr,Jr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Vr,Yr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Ur,Xr)),this['disposeWithMe'](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Wr,Zr)),this[_0x10b93c(0x2fd)](this['_componentManager']['register'](Gr,Qr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](xr,_0x1ff31b)),this[_0x10b93c(0x270)](),this[_0x10b93c(0x289)][_0x10b93c(0x410)](_0x3de7d6)||this[_0x10b93c(0x2fd)](this['_componentManager'][_0x10b93c(0x314)](_0x3de7d6,Mr)),this[_0x10b93c(0x2fd)](this[_0x10b93c(0x289)][_0x10b93c(0x314)](Sr,la));}['_registerObjectListPanel'](){const _0x5a0444=_0x1ed081;this[_0x5a0444(0x2fd)](this['_componentManager'][_0x5a0444(0x314)](yr,Yi));}['_registerFloatingToolbar'](){const _0x2846e8=_0x1ed081;this[_0x2846e8(0x2fd)](this[_0x2846e8(0x289)][_0x2846e8(0x314)](na,ta));}[_0x1ed081(0x270)](){const _0x3f4371=_0x1ed081;this['disposeWithMe'](this[_0x3f4371(0x289)][_0x3f4371(0x314)](Dr,Wi)),this['disposeWithMe'](this[_0x3f4371(0x289)]['register'](Or,Gi));}};ua=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ua);let da=class extends _0x5721ff{constructor(_0x2d3cd1,_0x16d447,_0xd7c20f,_0x51381d,_0x1796aa,_0x7b7379,_0xa1e322,_0x1f6f4b,_0x4e02f3,_0x50f69f,_0x5b27e8,_0xe4f268,_0x29ef58){const _0x1b0f72=_0x1ed081;super(),this[_0x1b0f72(0x221)]=_0x2d3cd1,this['_sidebarService']=_0x16d447,this[_0x1b0f72(0x3c5)]=_0xd7c20f,this[_0x1b0f72(0x26c)]=_0x51381d,this[_0x1b0f72(0x437)]=_0x1796aa,this[_0x1b0f72(0x22d)]=_0x7b7379,this[_0x1b0f72(0x291)]=_0xa1e322,this[_0x1b0f72(0x361)]=_0x1f6f4b,this['_renderManagerService']=_0x4e02f3,this[_0x1b0f72(0x2ad)]=_0x50f69f,this[_0x1b0f72(0x230)]=_0x5b27e8,this[_0x1b0f72(0x382)]=_0xe4f268,this[_0x1b0f72(0x3e3)]=_0x29ef58,Z(this,_0x1b0f72(0x297),null),Z(this,_0x1b0f72(0x225),null),Z(this,_0x1b0f72(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,_0x1b0f72(0x334),new Map()),Z(this,_0x1b0f72(0x284),new Map()),this[_0x1b0f72(0x218)](),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x221)][_0x1b0f72(0x431)](_0x436dd9['UNIVER_DOC'])[_0x1b0f72(0x251)](_0x2da5ab=>{const _0x15b7d4=_0x1b0f72;if(!_0x2da5ab){var _0x47831b;(_0x47831b=this[_0x15b7d4(0x297)])==null||_0x47831b[_0x15b7d4(0x208)]();}})),this['_registerOperations'](),this[_0x1b0f72(0x2fd)](_0x40ac78(this[_0x1b0f72(0x283)],_0x436dd9[_0x1b0f72(0x335)],_0x3cf0e3=>this[_0x1b0f72(0x3c9)](_0x3cf0e3))),this[_0x1b0f72(0x2fd)](this[_0x1b0f72(0x230)]['editingParams$'][_0x1b0f72(0x251)](_0x32d4c9=>{const _0x12c4bc=_0x1b0f72;_0x32d4c9&&this[_0x12c4bc(0x272)](void 0x0,!0x0);})),this[_0x1b0f72(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x1b0f72(0x251)](()=>{const _0x1fb391=_0x1b0f72;this['_drawingManagerService'][_0x1fb391(0x2a0)]()[_0x1fb391(0x3cf)](_0x2b0298=>_0x2b0298[_0x1fb391(0x234)]===_0x690970['DRAWING_SHAPE']&&this[_0x1fb391(0x221)][_0x1fb391(0x39e)](_0x2b0298[_0x1fb391(0x355)])===_0x436dd9[_0x1fb391(0x335)]&&!this[_0x1fb391(0x436)](_0x2b0298[_0x1fb391(0x355)],_0x2b0298[_0x1fb391(0x210)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x1fb391(0x2b4)]());}));}['getShapePopupMenus'](_0x3965da,_0x47130c,_0x162a4e,_0x245778){const _0x330ed6=_0x1ed081;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':_0x245778===_0x690970[_0x330ed6(0x20a)]},{'label':_0x330ed6(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x3965da,'drawings':[{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e}]},'disable':!0x1},{'label':_0x330ed6(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x3965da,'subUnitId':_0x47130c,'drawingId':_0x162a4e},'disable':!0x1}];}[_0x1ed081(0x218)](){const _0x1f977a=_0x1ed081;this['_menuManagerService'][_0x1f977a(0x442)](Di);}[_0x1ed081(0x344)](_0x367443,_0xb71b7,_0x43b40e){const _0x3db491=_0x1ed081;let _0x18016a=this[_0x3db491(0x26c)]['getShapeTypeById'](_0x367443,_0xb71b7,_0x43b40e),_0x504bc8=this[_0x3db491(0x26c)][_0x3db491(0x2e4)](_0x367443,_0xb71b7,_0x43b40e);return _0x18016a===void 0x0||_0x504bc8===void 0x0?null:{'shapeData':_0x504bc8,'shapeId':_0x43b40e,'shapeType':_0x18016a,'unitId':_0x367443,'subUnitId':_0xb71b7,'version':this[_0x3db491(0x444)],'disableShapeOption':!0x1};}[_0x1ed081(0x272)](_0x1a4021,_0x274247=!0x1){const _0x4fca42=_0x1ed081;if(_0x1a4021==null){[...this[_0x4fca42(0x334)][_0x4fca42(0x303)]()]['forEach'](_0x4caf3e=>this['_clearPopups'](_0x4caf3e,_0x274247));return;}let _0x3396fc=this[_0x4fca42(0x334)][_0x4fca42(0x410)](_0x1a4021);if(_0x3396fc){for(let _0x36387c=_0x3396fc[_0x4fca42(0x43c)]-0x1;_0x36387c>=0x0;--_0x36387c){let _0x35c418=_0x3396fc[_0x36387c];(_0x274247||_0x35c418[_0x4fca42(0x1f2)]())&&(_0x35c418[_0x4fca42(0x208)](),_0x3396fc[_0x4fca42(0x299)](_0x36387c,0x1));}_0x3396fc[_0x4fca42(0x43c)]===0x0&&(this[_0x4fca42(0x334)][_0x4fca42(0x39f)](_0x1a4021),this[_0x4fca42(0x284)][_0x4fca42(0x39f)](_0x1a4021));}}['_getDisposePopups'](_0x234b05){const _0x1d9027=_0x1ed081;let _0x537f06=this[_0x1d9027(0x334)][_0x1d9027(0x410)](_0x234b05);if(_0x537f06)return _0x537f06;let _0x3c64d6=[];return this['_disposePopupsByUnit']['set'](_0x234b05,_0x3c64d6),_0x3c64d6;}[_0x1ed081(0x3c9)](_0x26eb99){const _0x341660=_0x1ed081;var _0x5b7efe;let _0x1d5793=new _0x153c14(),_0x27a477=(_0x5b7efe=this[_0x341660(0x283)]['getAllRenderersOfType'](_0x436dd9[_0x341660(0x335)])[_0x341660(0x2ec)](_0x3dc3ff=>_0x3dc3ff[_0x341660(0x27e)][_0x341660(0x36f)]()===_0x26eb99))==null?void 0x0:_0x5b7efe[_0x341660(0x355)];return _0x27a477?(_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x200)]['subscribe'](()=>this[_0x341660(0x245)](_0x26eb99,_0x27a477))),_0x1d5793[_0x341660(0x28d)](_0x26eb99[_0x341660(0x300)][_0x341660(0x251)](()=>{const _0x3688b1=_0x341660;this[_0x3688b1(0x272)](_0x27a477),queueMicrotask(()=>{const _0x1b1d9=_0x3688b1;_0x26eb99[_0x1b1d9(0x23a)]()[_0x1b1d9(0x1e9)]>0x0||(this[_0x1b1d9(0x2ad)][_0x1b1d9(0x3b5)](_0x5ad933,!0x1),this['_drawingManagerService'][_0x1b1d9(0x1ea)](null));});})),_0x1d5793['add'](_0x26eb99[_0x341660(0x35b)][_0x341660(0x251)](()=>{this['_clearPopups'](_0x27a477,!0x0);})),_0x1d5793):_0x1d5793;}[_0x1ed081(0x245)](_0x1937a2,_0x12f8cd){const _0x245f48=_0x1ed081;let _0x35895d=_0x1937a2['getSelectedObjectMap']();if(this[_0x245f48(0x429)]){this['_clearPopups'](_0x12f8cd,!0x0);return;}if(_0x35895d[_0x245f48(0x1e9)]>0x1){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x443689=_0x35895d[_0x245f48(0x2c2)]()['next']()[_0x245f48(0x439)];if(!_0x443689){this['_clearPopups'](_0x12f8cd);return;}let _0x3e37e6=this[_0x245f48(0x291)]['getDrawingOKey'](_0x443689[_0x245f48(0x1e8)]);if(!_0x3e37e6||_0x3e37e6[_0x245f48(0x234)]!==_0x690970[_0x245f48(0x20d)]){this[_0x245f48(0x272)](_0x12f8cd);return;}let {unitId:_0x5707f8,subUnitId:_0x5df6d3,drawingId:_0x44490a}=_0x3e37e6;if(!this[_0x245f48(0x436)](_0x5707f8,_0x44490a)){this[_0x245f48(0x272)](_0x12f8cd,!0x0);return;}let _0x52f5a5=this[_0x245f48(0x344)](_0x5707f8,_0x5df6d3,_0x44490a);if(!_0x52f5a5){this[_0x245f48(0x272)](_0x12f8cd);return;}let _0x50bea7=this[_0x245f48(0x334)][_0x245f48(0x410)](_0x12f8cd),_0x97d311=_0x5707f8+':'+_0x5df6d3+':'+_0x44490a;if(this[_0x245f48(0x284)]['get'](_0x12f8cd)===_0x97d311&&_0x50bea7!=null&&_0x50bea7[_0x245f48(0x43c)])return;this[_0x245f48(0x272)](_0x12f8cd);let _0x349f52=this[_0x245f48(0x283)]['getRenderUnitById'](_0x5707f8),_0x2b08a1=((_0x349f52==null?void 0x0:_0x349f52[_0x245f48(0x380)])===!0x1?_0x349f52['with'](_0xe084e0):this[_0x245f48(0x361)])[_0x245f48(0x28e)](_0x443689,this[_0x245f48(0x41b)](_0x52f5a5,()=>this[_0x245f48(0x272)](_0x12f8cd,!0x0)),_0x5707f8);this[_0x245f48(0x2fd)](_0x2b08a1),this[_0x245f48(0x44c)](_0x12f8cd)['push'](_0x2b08a1),this[_0x245f48(0x284)]['set'](_0x12f8cd,_0x97d311),this['_drawingManagerService'][_0x245f48(0x2a0)]()[_0x245f48(0x3cf)](_0x32965=>_0x32965[_0x245f48(0x355)]===_0x5707f8&&_0x32965[_0x245f48(0x203)]===_0x5df6d3&&_0x32965[_0x245f48(0x210)]===_0x44490a)||this['_drawingManagerService'][_0x245f48(0x1ea)]([{'unitId':_0x5707f8,'subUnitId':_0x5df6d3,'drawingId':_0x44490a}]);}[_0x1ed081(0x41b)](_0xd0a395,_0x2d5185){const _0x186cf8=_0x1ed081;let {unitId:_0x4aff24,subUnitId:_0x2162e5,shapeId:_0xa20206}=_0xd0a395,_0x370ab5={'hostType':_0x436dd9[_0x186cf8(0x335)],'unitId':_0x4aff24,'subUnitId':_0x2162e5,'shapeId':_0xa20206};return{'componentKey':na,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0xd0a395[_0x186cf8(0x2e0)],'onText':()=>{const _0x1c1456=_0x186cf8;_0x2d5185(),this[_0x1c1456(0x3e3)][_0x1c1456(0x44d)](_0x1c1456(0x348),_0x370ab5);},'onStyle':()=>{const _0x4ebf1c=_0x186cf8;_0x2d5185(),this[_0x4ebf1c(0x3e3)][_0x4ebf1c(0x44d)]('style',_0x370ab5);},'onDelete':()=>this['_commandService'][_0x186cf8(0x402)](_0x3723c7['id'],{'unitId':_0x4aff24,'drawings':[{'unitId':_0x4aff24,'subUnitId':_0x2162e5,'drawingId':_0xa20206}]})}};}[_0x1ed081(0x436)](_0x5d9fa8,_0x20020e){const _0x1a61c3=_0x1ed081;let _0x57bc43=this['_univerInstanceService'][_0x1a61c3(0x3d3)](_0x5d9fa8,_0x436dd9[_0x1a61c3(0x335)]);if(!_0x57bc43)return!0x1;let _0x8e42d7=_0x1fc7f8(_0x57bc43,_0x20020e);return _0x47555f(this[_0x1a61c3(0x382)],_0x5d9fa8,[..._0x1a179a(_0x57bc43,_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e),_0x5462ea(_0x8e42d7,_0x1a61c3(0x2fa),_0x20020e)]);}['_registerOperations'](){const _0x34597a=_0x1ed081;this[_0x34597a(0x2fd)](this[_0x34597a(0x22d)]['onCommandExecuted'](_0x1527c0=>{const _0x171ce1=_0x34597a;if(_0x1527c0['id']===q['id']){let {unitId:_0x479a3d,subUnitId:_0x1dbc80,drawingId:_0x3429ef}=_0x1527c0[_0x171ce1(0x41e)];this[_0x171ce1(0x444)]+=0x1,this[_0x171ce1(0x225)]=this[_0x171ce1(0x344)](_0x479a3d,_0x1dbc80,_0x3429ef),this[_0x171ce1(0x272)](void 0x0,!0x0),this[_0x171ce1(0x2d2)]();}if(_0x1527c0['id']===Ai['id']&&(this[_0x171ce1(0x225)]=null,this[_0x171ce1(0x2b4)]()),_0x1527c0['id']===_0xbcf5de['id']){var _0x3d4b49;let {unitId:_0x4b709a,shapeId:_0x9f20a8}=_0x1527c0[_0x171ce1(0x41e)];if(((_0x3d4b49=this[_0x171ce1(0x225)])==null?void 0x0:_0x3d4b49[_0x171ce1(0x317)])===_0x9f20a8){let _0x5c263b=this[_0x171ce1(0x344)](_0x4b709a,this[_0x171ce1(0x225)]['subUnitId'],_0x9f20a8);_0x5c263b&&(this[_0x171ce1(0x444)]+=0x1,_0x5c263b[_0x171ce1(0x44b)]=this['_shapeEditPanelVersion'],this[_0x171ce1(0x225)]=_0x5c263b,this['_isOpenedShapeEditPanel']&&this[_0x171ce1(0x2d2)]());}}})),this['disposeWithMe'](this[_0x34597a(0x291)][_0x34597a(0x273)][_0x34597a(0x251)](_0x4a96dd=>{const _0x3dd527=_0x34597a;if(!this[_0x3dd527(0x429)])return;if(_0x4a96dd[_0x3dd527(0x43c)]===0x0){this[_0x3dd527(0x225)]=null,this[_0x3dd527(0x2b4)]();return;}if(_0x4a96dd[_0x3dd527(0x43c)]===0x1&&_0x4a96dd[0x0]['drawingType']===_0x690970[_0x3dd527(0x20d)]&&(this[_0x3dd527(0x444)]+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this[_0x3dd527(0x225)])){this['_openShapeEditPanel']();return;}let _0x307908=_0x4a96dd[_0x3dd527(0x252)](_0x4be853=>_0x4be853['drawingType']===_0x690970[_0x3dd527(0x20d)]);if(this['_shapeEditPanelVersion']+=0x1,this[_0x3dd527(0x225)]=this[_0x3dd527(0x344)](_0x4a96dd[0x0][_0x3dd527(0x355)],_0x4a96dd[0x0][_0x3dd527(0x203)],_0x4a96dd[0x0][_0x3dd527(0x210)]),this['_activeShapeInfo']&&_0x4a96dd[_0x3dd527(0x43c)]>0x1&&_0x307908[_0x3dd527(0x43c)]===_0x4a96dd['length']){this[_0x3dd527(0x2d2)]();return;}if(this[_0x3dd527(0x225)]&&_0x307908['length']!==_0x4a96dd['length']){this[_0x3dd527(0x225)][_0x3dd527(0x2cc)]=!0x0,this['_openShapeEditPanel']();return;}this[_0x3dd527(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0xd810a6=_0x1ed081;this[_0xd810a6(0x225)]&&(this[_0xd810a6(0x297)]=this['_sidebarService'][_0xd810a6(0x44d)]({'id':K,'header':{'title':this[_0xd810a6(0x437)]['t'](_0xd810a6(0x25b))},'width':0x184,'children':{'label':K,...this[_0xd810a6(0x225)]},'onClose':()=>{const _0x6eafea=_0xd810a6;this[_0x6eafea(0x291)]['focusDrawing'](null),this['_contextService'][_0x6eafea(0x3b5)](_0x5ad933,!0x1),this[_0x6eafea(0x297)]=null;}}),this[_0xd810a6(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x4031ab=_0x1ed081;this[_0x4031ab(0x429)]=!0x1,this[_0x4031ab(0x2d3)][_0x4031ab(0x360)](K),this['_sidebarDisposable']=null,this['_contextService'][_0x4031ab(0x3b5)](_0x5ad933,!0x1),this[_0x4031ab(0x291)]['focusDrawing'](null);}};da=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3),J(0xc,_0x4e9d1c(_0x1adc39))],da);const fa='docs-shape-contextual-ribbon';let pa=class extends _0x5721ff{constructor(_0x3e64be,_0x21d8ed,_0x1389f4,_0x276b7b,_0x3eb856,_0x5226df){const _0x144031=_0x1ed081;super(),this[_0x144031(0x3c5)]=_0x3e64be,this[_0x144031(0x240)]=_0x21d8ed,this[_0x144031(0x291)]=_0x1389f4,this[_0x144031(0x221)]=_0x276b7b,this[_0x144031(0x283)]=_0x3eb856,this[_0x144031(0x22f)]=_0x5226df,Z(this,_0x144031(0x2aa),!0x1),this[_0x144031(0x3c5)]['mergeMenu'](Ei),this[_0x144031(0x2fd)](_0xfac87e(this[_0x144031(0x291)][_0x144031(0x273)][_0x144031(0x251)](()=>this[_0x144031(0x2c7)]()))),this[_0x144031(0x2c7)]();}['dispose'](){const _0xaae6e6=_0x1ed081;this['_shapeFloatingToolbarService'][_0xaae6e6(0x2d1)](!0x1,fa),this['_hide'](),super[_0xaae6e6(0x208)]();}[_0x1ed081(0x2c7)](){const _0x5519e2=_0x1ed081;var _0x290cc5;let _0x289b3e=this[_0x5519e2(0x291)][_0x5519e2(0x2a0)](),_0xb49721=_0x289b3e[_0x5519e2(0x43c)]===0x1?_0x289b3e[0x0]:void 0x0;if((_0xb49721==null?void 0x0:_0xb49721[_0x5519e2(0x234)])!==_0x690970[_0x5519e2(0x20d)]||this[_0x5519e2(0x221)][_0x5519e2(0x39e)](_0xb49721[_0x5519e2(0x355)])!==_0x436dd9['UNIVER_DOC']){this[_0x5519e2(0x22f)]['setFallbackVisible'](!0x1,fa),this[_0x5519e2(0x409)]();return;}let _0x5acf84=(_0x290cc5=this[_0x5519e2(0x283)]['getRenderUnitById'](_0xb49721['unitId']))==null?void 0x0:_0x290cc5[_0x5519e2(0x27c)][_0x5519e2(0x313)](),_0x1c1626=_0x557f66(_0x5acf84)===_0x5519e2(0x277);if(this[_0x5519e2(0x22f)][_0x5519e2(0x2d1)](_0x1c1626,fa),_0x1c1626){this[_0x5519e2(0x409)]();return;}this[_0x5519e2(0x2aa)]||(this[_0x5519e2(0x2aa)]=!0x0,this['_ribbonService'][_0x5519e2(0x1f1)](vr,{'activate':!0x0}));}[_0x1ed081(0x409)](){const _0x3aee19=_0x1ed081;this[_0x3aee19(0x2aa)]&&(this[_0x3aee19(0x2aa)]=!0x1,this[_0x3aee19(0x240)][_0x3aee19(0x268)](vr),this[_0x3aee19(0x240)]['setCollapsedIds']([]));}};pa=Y([J(0x0,_0x206d0b),J(0x1,_0x356848),J(0x2,_0x4cc4c4),J(0x3,_0x357598),J(0x4,_0x1b5744),J(0x5,_0x4e9d1c(_0xd408b5))],pa);let ma=class extends _0x5721ff{constructor(_0x4ee64f,_0x27325b,_0x2bd32e,_0x314b79){const _0x184d98=_0x1ed081;super(),this['_commandService']=_0x4ee64f,this[_0x184d98(0x283)]=_0x27325b,this[_0x184d98(0x291)]=_0x2bd32e,this[_0x184d98(0x201)]=_0x314b79,this['_initialize']();}['_initialize'](){const _0xced8b7=_0x1ed081;this['disposeWithMe'](this[_0xced8b7(0x291)][_0xced8b7(0x294)][_0xced8b7(0x251)](_0x4736ba=>this['_insertShapes'](_0x4736ba))),this[_0xced8b7(0x2fd)](this[_0xced8b7(0x291)][_0xced8b7(0x256)][_0xced8b7(0x251)](_0xeb7279=>{const _0x43b070=_0xced8b7;_0xeb7279['forEach'](_0x5befed=>this[_0x43b070(0x2c3)](_0x5befed));})),this['disposeWithMe'](this[_0xced8b7(0x22d)][_0xced8b7(0x320)](_0x22812b=>{const _0x57351a=_0xced8b7;if(_0x22812b['id']!==_0xbcf5de['id'])return;let {unitId:_0x55387d,shapeId:_0x1a2c84}=_0x22812b[_0x57351a(0x41e)];this[_0x57351a(0x30b)]({'unitId':_0x55387d,'subUnitId':_0x55387d,'drawingId':_0x1a2c84});}));}[_0x1ed081(0x2dc)](_0x5eb2e8){const _0x3f3ba6=_0x1ed081;_0x5eb2e8[_0x3f3ba6(0x323)](_0x5ed9d2=>{const _0x5aa4fe=_0x3f3ba6;let _0x5558bf=this[_0x5aa4fe(0x375)](_0x5ed9d2[_0x5aa4fe(0x355)]);if(!_0x5558bf)return;let _0x4acad9=this['_drawingManagerService'][_0x5aa4fe(0x207)](_0x5ed9d2);(_0x4acad9==null?void 0x0:_0x4acad9[_0x5aa4fe(0x234)])===_0x690970[_0x5aa4fe(0x20d)]&&this[_0x5aa4fe(0x201)][_0x5aa4fe(0x2df)](_0x4acad9,_0x5558bf[_0x5aa4fe(0x27e)]);});}[_0x1ed081(0x2c3)](_0x27f83e){const _0x5e38e9=_0x1ed081;let _0x20f063=this['_drawingManagerService'][_0x5e38e9(0x207)](_0x27f83e);if((_0x20f063==null?void 0x0:_0x20f063['drawingType'])!==_0x690970[_0x5e38e9(0x20d)])return;let _0x3bc74e=this[_0x5e38e9(0x375)](_0x27f83e[_0x5e38e9(0x355)]);if(!_0x3bc74e||_0x20f063[_0x5e38e9(0x35d)]==null)return;let _0x4679a4=_0x54547b(_0x27f83e),_0x4b00c9=_0x3bc74e[_0x5e38e9(0x27e)][_0x5e38e9(0x3fa)](_0x4679a4);_0x4b00c9&&(_0x4b00c9[_0x5e38e9(0x430)](_0x20f063['srcRect']),_0x4b00c9[_0x5e38e9(0x29c)](_0x20f063['prstGeom']),_0x4b00c9[_0x5e38e9(0x2cf)](!0x0));}[_0x1ed081(0x30b)](_0x108e99){const _0x10dbbb=_0x1ed081;let _0x5ebc13=this[_0x10dbbb(0x375)](_0x108e99['unitId']);if(!_0x5ebc13)return;let _0x5ba902=_0x54547b(_0x108e99),_0x1f6e20=_0x5ebc13['scene']['getObjectIncludeInGroup'](_0x5ba902);_0x1f6e20&&(this[_0x10dbbb(0x201)][_0x10dbbb(0x21d)](_0x1f6e20),this[_0x10dbbb(0x201)][_0x10dbbb(0x40f)](_0x1f6e20,{'unitId':_0x108e99['unitId'],'subUnitId':_0x108e99[_0x10dbbb(0x203)],'shapeId':_0x108e99['drawingId']}),_0x1f6e20[_0x10dbbb(0x2cf)](!0x0));}[_0x1ed081(0x375)](_0x4e3cee){const _0x5bc1eb=_0x1ed081;if(_0x4e3cee==null)return null;let _0x3678f0=this[_0x5bc1eb(0x283)]['getRenderUnitById'](_0x4e3cee),_0x2b438c=_0x3678f0==null?void 0x0:_0x3678f0[_0x5bc1eb(0x27e)];return _0x2b438c==null?null:{'scene':_0x2b438c};}};ma=Y([J(0x0,_0x582229),J(0x1,_0x1b5744),J(0x2,_0x4cc4c4),J(0x3,_0x4e9d1c($))],ma);let ha=class extends _0x30ce8{constructor(_0x5cf4ba=Mi,_0x3bf6a0,_0xea0af4,_0x1355b1,_0x133b7a){const _0x35a018=_0x1ed081;super(),this[_0x35a018(0x330)]=_0x5cf4ba,this[_0x35a018(0x1ec)]=_0x3bf6a0,this[_0x35a018(0x22d)]=_0xea0af4,this[_0x35a018(0x3da)]=_0x1355b1,this[_0x35a018(0x283)]=_0x133b7a;let {menu:_0x351bb2,..._0x5653a8}=_0x381591({},Mi,this[_0x35a018(0x330)]);_0x351bb2&&this[_0x35a018(0x3da)]['setConfig'](_0x35a018(0x34a),_0x351bb2,{'merge':!0x0}),this[_0x35a018(0x3da)][_0x35a018(0x1e7)](ji,_0x5653a8),[G,Ai,q,Cr,Tr,Er]['forEach'](_0x28b59a=>this['disposeWithMe'](this[_0x35a018(0x22d)][_0x35a018(0x38a)](_0x28b59a)));}[_0x1ed081(0x2b8)](){const _0x2031f5=_0x1ed081;let _0x3be482=[[ua],[da],[ma],[$],[Vi],[zi],[X],[Xi],[Q],[pa]];_0x25479e(this['_injector'],_0x3be482),this[_0x2031f5(0x1ec)]['get'](ua);}[_0x1ed081(0x2c8)](){const _0x472492=_0x1ed081;this[_0x472492(0x2fd)](this['_renderManagerService'][_0x472492(0x316)](_0x436dd9[_0x472492(0x335)],[zi])),_0x3d6461(this[_0x472492(0x1ec)],[[da],[ma],[$],[Vi],[X],[Xi],[Q],[pa]]);}};Z(ha,_0x1ed081(0x37d),_0x436dd9[_0x1ed081(0x335)]),Z(ha,'pluginName',_0x1ed081(0x30e)),Z(ha,'packageName',Oi),Z(ha,'version',ki),ha=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x4ec3f0,_0x338f29,_0x4ba3d5,_0xd2d2e,_0x4ca735,_0x2d0bed,_0x2f7ef7),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],ha);let ga=class extends _0x5721ff{constructor(_0x48faad,_0x1fec85){const _0x4308a4=_0x1ed081;super(),this['_componentManager']=_0x48faad,this[_0x4308a4(0x309)]=_0x1fec85,this[_0x4308a4(0x205)](),this[_0x4308a4(0x347)]();}['_registerIcons'](){const _0xeb1582=_0x1ed081;this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x22c))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'ObjectLayersIcon':_0x2d9e5a})),this[_0xeb1582(0x309)][_0xeb1582(0x2c5)](_0xeb1582(0x2f3))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'BottomIcon':_0x10f104})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x241))||this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)]({'MoveDownIcon':_0x863eb7})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x384))||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'MoveUpIcon':_0x1fa84b})),this[_0xeb1582(0x309)]['has'](_0xeb1582(0x2dd))||this[_0xeb1582(0x2fd)](this[_0xeb1582(0x309)]['register']({'ShapeFormatSettingIcon':_0x51d8f6})),this[_0xeb1582(0x309)]['has']('TopmostIcon')||this['disposeWithMe'](this[_0xeb1582(0x309)][_0xeb1582(0x314)]({'TopmostIcon':_0x88dd38})),this[_0xeb1582(0x2fd)](this['_iconManager'][_0xeb1582(0x314)](ca));}[_0x1ed081(0x347)](){const _0x32eb43=_0x1ed081;this[_0x32eb43(0x2fd)](this['_componentManager'][_0x32eb43(0x314)](K,Qi)),this['_registerObjectListPanel'](),this[_0x32eb43(0x33b)](),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Hr,Jr)),this['disposeWithMe'](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Vr,Yr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Ur,Xr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](Wr,Zr)),this['disposeWithMe'](this['_componentManager'][_0x32eb43(0x314)](Gr,Qr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)][_0x32eb43(0x314)](xr,_0x1ff31b)),this[_0x32eb43(0x270)](),this[_0x32eb43(0x289)][_0x32eb43(0x410)](_0x3de7d6)||this['disposeWithMe'](this[_0x32eb43(0x289)]['register'](_0x3de7d6,Mr)),this[_0x32eb43(0x2fd)](this[_0x32eb43(0x289)]['register'](Sr,la));}['_registerObjectListPanel'](){const _0x1ffbcd=_0x1ed081;this[_0x1ffbcd(0x2fd)](this['_componentManager'][_0x1ffbcd(0x314)](yr,Ji));}[_0x1ed081(0x33b)](){const _0x683836=_0x1ed081;this['disposeWithMe'](this[_0x683836(0x289)]['register'](na,ia));}[_0x1ed081(0x270)](){const _0x446025=_0x1ed081;this[_0x446025(0x2fd)](this['_componentManager'][_0x446025(0x314)](Dr,Nr)),this['disposeWithMe'](this[_0x446025(0x289)]['register'](Or,jr));}};ga=Y([J(0x0,_0x4e9d1c(_0x1bfb02)),J(0x1,_0x4e9d1c(_0x2a264a))],ga);let _a=class extends _0x5721ff{constructor(_0x5a4bde,_0x53126a,_0x325abc,_0x2e7513,_0x3770c0,_0x3e3899,_0x4b3ba9,_0x3d3d3d,_0x5e05e4){const _0x49ce83=_0x1ed081;super();let _0x1ddfa2=_0x8c89bc=>{const _0x3cb89f=_0x5aa0;let _0x5c7345=_0x3e3899[_0x3cb89f(0x3d3)](_0x8c89bc['unitId'],_0x436dd9['UNIVER_DOC']),_0x2b1397=_0x5c7345?_0x1fc7f8(_0x5c7345,_0x8c89bc[_0x3cb89f(0x317)]):'';return!!_0x5c7345&&_0x47555f(_0x3d3d3d,_0x8c89bc[_0x3cb89f(0x355)],[_0x5462ea(_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc['shapeId']),..._0x1a179a(_0x5c7345,_0x2b1397,_0x3cb89f(0x2fa),_0x8c89bc[_0x3cb89f(0x317)])]);},_0x16b1eb=_0x5a07e0=>_0x5a07e0[_0x49ce83(0x317)]&&_0x1ddfa2(_0x5a07e0)?_0x325abc['getShapeDataById'](_0x5a07e0[_0x49ce83(0x355)],_0x5a07e0['shapeId'])??null:null,_0xa6d308=()=>{const _0x683ceb=_0x49ce83;let _0x3c5c02=_0x3770c0[_0x683ceb(0x2a0)](),_0x39f4cf=_0x3c5c02[_0x683ceb(0x43c)]===0x1?_0x3c5c02[0x0]:null;return(_0x39f4cf==null?void 0x0:_0x39f4cf[_0x683ceb(0x234)])===_0x690970[_0x683ceb(0x20d)]&&_0x39f4cf['unitId']===_0x5a4bde['unitId']?{'unitId':_0x39f4cf[_0x683ceb(0x355)],'subUnitId':_0x39f4cf['subUnitId'],'shapeId':_0x39f4cf['drawingId']}:null;};this[_0x49ce83(0x2fd)](_0x688a39(_0x5a4bde,_0x53126a,{'changes$':_0xfc549c(_0x3770c0[_0x49ce83(0x273)],_0x2e7513[_0x49ce83(0x293)],_0x3d3d3d[_0x49ce83(0x3af)]),'isActive':()=>{const _0x2c5f3b=_0x49ce83;var _0x42bc26;return((_0x42bc26=_0x3e3899[_0x2c5f3b(0x21c)]())==null?void 0x0:_0x42bc26[_0x2c5f3b(0x336)]())===_0x5a4bde['unitId']&&!_0x4b3ba9[_0x2c5f3b(0x3a3)](_0x5fd016)&&_0x3770c0[_0x2c5f3b(0x2a0)]()[_0x2c5f3b(0x3cf)](_0x2d9a49=>_0x2d9a49[_0x2c5f3b(0x355)]===_0x5a4bde[_0x2c5f3b(0x355)]);},'getSelectedTarget':_0xa6d308,'getSource':()=>{let _0x3609e1=_0xa6d308();return _0x3609e1?_0x16b1eb(_0x3609e1):null;},'getTarget':_0x57a85f=>{const _0x561a22=_0x49ce83;let _0x142481=_0x5a4bde[_0x561a22(0x27e)][_0x561a22(0x22b)](new _0x2ede79(_0x57a85f[_0x561a22(0x2c1)],_0x57a85f['offsetY']));if(!(_0x142481 instanceof Ri))return null;let _0x2b4b5b={'unitId':_0x5a4bde[_0x561a22(0x355)],'subUnitId':_0x5a4bde[_0x561a22(0x355)],'shapeId':_0x142481[_0x561a22(0x317)]};return _0x1ddfa2(_0x2b4b5b)?_0x2b4b5b:null;},'getShape':_0x16b1eb,'update':(_0x538208,_0x3866fd,_0x3341ff)=>_0x5e05e4[_0x49ce83(0x402)](_0x46dc48['id'],{..._0x538208,'shapeData':_0x3341ff,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3866fd}})}));}};_a=Y([J(0x1,_0x4e9d1c(_0x2cd412)),J(0x2,_0x4e9d1c(_0x39396e)),J(0x3,_0x4e9d1c(Q)),J(0x4,_0x4cc4c4),J(0x5,_0x357598),J(0x6,_0x268075),J(0x7,_0x49aab3),J(0x8,_0x582229)],_a);function va(_0x5eec15,_0x17a17e){const _0x5531e3=_0x1ed081;let _0x4ebcc9=_0x5eec15;for(;_0x4ebcc9;){if(_0x17a17e(_0x4ebcc9))return _0x4ebcc9;_0x4ebcc9=typeof _0x4ebcc9[_0x5531e3(0x388)]==_0x5531e3(0x341)?_0x4ebcc9[_0x5531e3(0x388)]():null;}return null;}function ya(_0x31959d){return va(_0x31959d,_0x2e9d8c=>_0x2e9d8c instanceof Ri);}function ba(_0x342bfd){const _0x2a81ec=_0x1ed081;return(_0x342bfd==null?void 0x0:_0x342bfd[_0x2a81ec(0x1f5)])==null;}let xa=class extends _0x5721ff{constructor(_0x36c206,_0x5adb8a,_0x20159e,_0x12ecf8,_0x1a3bbd,_0x598987){const _0x597456=_0x1ed081;super(),this[_0x597456(0x42e)]=_0x36c206,this[_0x597456(0x230)]=_0x5adb8a,this[_0x597456(0x291)]=_0x20159e,this[_0x597456(0x2ad)]=_0x12ecf8,this[_0x597456(0x364)]=_0x1a3bbd,this[_0x597456(0x26c)]=_0x598987,Z(this,'_lastEditingShapeKey',null),Z(this,'_layoutInteraction',null),this[_0x597456(0x27d)](),this['_initSelection'](),this[_0x597456(0x278)]();}[_0x1ed081(0x208)](){const _0x2af216=_0x1ed081;this[_0x2af216(0x2f7)](),super['dispose']();}[_0x1ed081(0x27d)](){const _0x4e8032=_0x1ed081;let {scene:_0x32052b}=this[_0x4e8032(0x42e)];this['disposeWithMe'](_0x32052b[_0x4e8032(0x310)][_0x4e8032(0x432)]((_0x58b1fc,_0x507fad)=>{const _0x4e07b3=_0x4e8032;let {offsetX:_0x2e71f8,offsetY:_0x2ce0b7}=_0x58b1fc,_0x4ab415=_0x2ede79['FromArray']([_0x2e71f8,_0x2ce0b7]),_0x45fb45=ya(_0x32052b[_0x4e07b3(0x22b)](_0x4ab415))??this[_0x4e07b3(0x42c)](_0x4ab415);if(_0x45fb45){_0x507fad[_0x4e07b3(0x367)]();let _0xdecaa0=this[_0x4e07b3(0x26c)][_0x4e07b3(0x381)](_0x45fb45['unitId'],_0x45fb45[_0x4e07b3(0x203)],_0x45fb45[_0x4e07b3(0x317)]);if(!_0xdecaa0||_0x238e4e(_0xdecaa0['getShapeType']())||!ba(_0xdecaa0[_0x4e07b3(0x3c2)]()))return;this[_0x4e07b3(0x230)]['setEditing']({'visible':!0x0,'unitId':_0x45fb45['unitId'],'subUnitId':_0x45fb45[_0x4e07b3(0x203)],'shapeId':_0x45fb45[_0x4e07b3(0x317)],'shapeKey':_0x45fb45['oKey']});}}));}['_getFocusedShapeAtPoint'](_0x232234){const _0x3ba098=_0x1ed081;let {scene:_0x54fc22}=this[_0x3ba098(0x42e)];return this[_0x3ba098(0x291)][_0x3ba098(0x2a0)]()['map'](_0x25d3f2=>_0x54fc22['getObjectIncludeInGroup'](_0x54547b(_0x25d3f2)))[_0x3ba098(0x2ec)](_0xcf97f5=>_0xcf97f5 instanceof Ri&&_0xcf97f5[_0x3ba098(0x40a)](_0x232234))??null;}[_0x1ed081(0x2b3)](){const _0x3a0166=_0x1ed081;this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x273)][_0x3a0166(0x251)](_0x13766f=>{const _0x46a567=_0x3a0166;if(_0x13766f[_0x46a567(0x43c)]===0x1){let _0x4ae1fc=_0x13766f[0x0],_0x9c75ea=this[_0x46a567(0x291)]['getDrawingByParam'](_0x4ae1fc);if((_0x9c75ea==null?void 0x0:_0x9c75ea[_0x46a567(0x234)])===_0x690970[_0x46a567(0x20d)]){let _0x95407c=this['_shapeTextEditingService'][_0x46a567(0x24c)]();if((_0x95407c==null?void 0x0:_0x95407c[_0x46a567(0x317)])===_0x4ae1fc['drawingId']&&_0x95407c[_0x46a567(0x232)])return;_0x238e4e(this[_0x46a567(0x26c)][_0x46a567(0x40b)](_0x4ae1fc[_0x46a567(0x355)],_0x4ae1fc[_0x46a567(0x203)],_0x4ae1fc[_0x46a567(0x210)]))&&this['_shapeTextEditingService'][_0x46a567(0x372)](null);}else this[_0x46a567(0x230)]['completeEditing']();}else this[_0x46a567(0x230)][_0x46a567(0x3cc)]();})),this[_0x3a0166(0x2fd)](this[_0x3a0166(0x291)][_0x3a0166(0x354)][_0x3a0166(0x251)](_0x177abf=>{const _0x126e23=_0x3a0166;let _0x369a39=this['_shapeTextEditingService']['getEditing']();_0x369a39&&_0x177abf[_0x126e23(0x3cf)](_0x1956e0=>_0x1956e0[_0x126e23(0x210)]===_0x369a39[_0x126e23(0x317)])&&this[_0x126e23(0x230)][_0x126e23(0x372)](null);}));}[_0x1ed081(0x278)](){this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$']['subscribe'](_0x1ccea1=>{const _0x58537e=_0x5aa0;(_0x1ccea1==null?void 0x0:_0x1ccea1[_0x58537e(0x232)])===!0x0&&_0x1ccea1['unitId']===this[_0x58537e(0x42e)][_0x58537e(0x355)]?this[_0x58537e(0x3b9)]??=this[_0x58537e(0x364)][_0x58537e(0x412)]():this[_0x58537e(0x2f7)]();let {scene:_0x2413be}=this[_0x58537e(0x42e)];if(this[_0x58537e(0x350)]){let _0x4b6ed5=_0x2413be[_0x58537e(0x3fa)](this[_0x58537e(0x350)]);_0x4b6ed5&&_0x4b6ed5['setEditing'](!0x1);}if(_0x1ccea1){let _0x39353a=!!_0x1ccea1[_0x58537e(0x232)],_0x595b3d=_0x2413be[_0x58537e(0x3fa)](_0x1ccea1[_0x58537e(0x362)]);_0x595b3d&&(_0x595b3d[_0x58537e(0x372)](_0x39353a),this['_lastEditingShapeKey']=_0x1ccea1[_0x58537e(0x362)]),this[_0x58537e(0x2ad)]['setContextValue'](_0x5fd016,_0x39353a);}else this[_0x58537e(0x350)]=null,this['_contextService'][_0x58537e(0x3b5)](_0x5fd016,!0x1);}));}[_0x1ed081(0x2f7)](){const _0x4e8ad6=_0x1ed081;var _0x403dfa;(_0x403dfa=this['_layoutInteraction'])==null||_0x403dfa[_0x4e8ad6(0x208)](),this[_0x4e8ad6(0x3b9)]=null;}};xa=Y([J(0x1,_0x4e9d1c(Q)),J(0x2,_0x4cc4c4),J(0x3,_0x268075),J(0x4,_0x4e9d1c(_0x23c4ef)),J(0x5,_0x4e9d1c(_0x39396e))],xa);let Sa=class extends _0x4fa01d{constructor(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38){super(_0x5b9f32,_0x562da8,_0x5836c7,_0x18137f,_0x2bd0f6,_0x1b409c,_0x187c31,_0x245c3f,_0x1f25b9,_0x140d38,{'componentKey':xr,'editorUnitId':br});}};Sa=Y([J(0x1,_0x4e9d1c(_0x2325c6)),J(0x2,_0x4e9d1c(_0xe084e0)),J(0x3,_0x4e9d1c(_0x3272e9)),J(0x4,_0x582229),J(0x5,_0x4e9d1c(_0x4420fc)),J(0x6,_0x4e9d1c(_0x491613)),J(0x7,_0x4e9d1c(_0x3a4b97)),J(0x8,_0x4e9d1c(_0x299248)),J(0x9,_0x4e9d1c(Q))],Sa);let Ca=class extends _0x5721ff{constructor(_0x37024b,_0x4027c2,_0x416e4c,_0x2fddb6,_0x1dbfb,_0xe5696a,_0x39c1cb,_0x4eeed3,_0x5c7dd9,_0x4b1636,_0x11bead,_0x531ac8){const _0x214d7a=_0x1ed081;super(),this[_0x214d7a(0x221)]=_0x37024b,this['_sidebarService']=_0x4027c2,this['_menuManagerService']=_0x416e4c,this[_0x214d7a(0x26c)]=_0x2fddb6,this['_localeService']=_0x1dbfb,this[_0x214d7a(0x22d)]=_0xe5696a,this['_drawingManagerService']=_0x39c1cb,this['_docCanvasPopManagerService']=_0x4eeed3,this[_0x214d7a(0x283)]=_0x5c7dd9,this[_0x214d7a(0x2ad)]=_0x4b1636,this[_0x214d7a(0x230)]=_0x11bead,this[_0x214d7a(0x382)]=_0x531ac8,Z(this,_0x214d7a(0x297),null),Z(this,'_activeShapeInfo',null),Z(this,_0x214d7a(0x429),!0x1),Z(this,'_shapeEditPanelVersion',0x0),Z(this,'_disposePopupsByUnit',new Map()),Z(this,_0x214d7a(0x284),new Map()),this[_0x214d7a(0x218)](),this[_0x214d7a(0x2fd)](this['_univerInstanceService'][_0x214d7a(0x431)](_0x436dd9[_0x214d7a(0x335)])['subscribe'](_0x2acc16=>{const _0xef0dd0=_0x214d7a;if(!_0x2acc16){var _0x3d9d40;(_0x3d9d40=this[_0xef0dd0(0x297)])==null||_0x3d9d40[_0xef0dd0(0x208)]();}})),this[_0x214d7a(0x3f7)](),this['disposeWithMe'](_0x40ac78(this[_0x214d7a(0x283)],_0x436dd9[_0x214d7a(0x335)],_0x15d25e=>this[_0x214d7a(0x3c9)](_0x15d25e))),this[_0x214d7a(0x2fd)](this[_0x214d7a(0x230)][_0x214d7a(0x293)][_0x214d7a(0x251)](_0x3b81b1=>{_0x3b81b1&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x214d7a(0x2fd)](this['_permissionService']['permissionPointUpdate$'][_0x214d7a(0x251)](()=>{const _0x398d3d=_0x214d7a;this[_0x398d3d(0x291)][_0x398d3d(0x2a0)]()['some'](_0x526981=>_0x526981['drawingType']===_0x690970['DRAWING_SHAPE']&&this[_0x398d3d(0x221)]['getUnitType'](_0x526981[_0x398d3d(0x355)])===_0x436dd9['UNIVER_DOC']&&!this['_canEditShape'](_0x526981[_0x398d3d(0x355)],_0x526981[_0x398d3d(0x210)]))&&(this[_0x398d3d(0x272)](void 0x0,!0x0),this[_0x398d3d(0x2b4)]());}));}[_0x1ed081(0x218)](){const _0x465476=_0x1ed081;this['_menuManagerService'][_0x465476(0x442)](Di);}[_0x1ed081(0x3de)](_0x4f3190,_0x39bff7,_0xe3006,_0x2d0653){const _0x2a46b9=_0x1ed081;return[{'label':_0x2a46b9(0x3a7),'index':0x0,'commandId':q['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':_0x2d0653===_0x690970[_0x2a46b9(0x20a)]},{'label':_0x2a46b9(0x31c),'index':0x1,'commandId':_0x3723c7['id'],'commandParams':{'unitId':_0x4f3190,'drawings':[{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006}]},'disable':!0x1},{'label':_0x2a46b9(0x2e5),'index':0x2,'commandId':Ai['id'],'commandParams':{'unitId':_0x4f3190,'subUnitId':_0x39bff7,'drawingId':_0xe3006},'disable':!0x1}];}[_0x1ed081(0x344)](_0x30d313,_0x4bb13f,_0x2aabfa){const _0x21f471=_0x1ed081;let _0x2c6a02=this[_0x21f471(0x26c)][_0x21f471(0x363)](_0x30d313,_0x4bb13f,_0x2aabfa),_0x521cf7=this[_0x21f471(0x26c)]['getShapeDataById'](_0x30d313,_0x4bb13f,_0x2aabfa);return _0x2c6a02!==void 0x0&&_0x521cf7!==void 0x0?{'shapeData':_0x521cf7,'shapeId':_0x2aabfa,'shapeType':_0x2c6a02,'unitId':_0x30d313,'subUnitId':_0x4bb13f,'version':this[_0x21f471(0x444)],'disableShapeOption':!0x1}:null;}[_0x1ed081(0x272)](_0x3ac361,_0x38f06f=!0x1){const _0x10ac76=_0x1ed081;if(_0x3ac361==null){[...this['_disposePopupsByUnit'][_0x10ac76(0x303)]()]['forEach'](_0x57a6c5=>this[_0x10ac76(0x272)](_0x57a6c5,_0x38f06f));return;}let _0x1f3ed6=this[_0x10ac76(0x334)][_0x10ac76(0x410)](_0x3ac361);if(_0x1f3ed6){for(let _0x2cae8f=_0x1f3ed6['length']-0x1;_0x2cae8f>=0x0;--_0x2cae8f){let _0x11032f=_0x1f3ed6[_0x2cae8f];(_0x38f06f||_0x11032f[_0x10ac76(0x1f2)]())&&(_0x11032f['dispose'](),_0x1f3ed6['splice'](_0x2cae8f,0x1));}_0x1f3ed6[_0x10ac76(0x43c)]===0x0&&(this[_0x10ac76(0x334)][_0x10ac76(0x39f)](_0x3ac361),this['_popupTargetKeys'][_0x10ac76(0x39f)](_0x3ac361));}}[_0x1ed081(0x44c)](_0x3feb01){const _0x4d32e2=_0x1ed081;let _0x5055b1=this[_0x4d32e2(0x334)][_0x4d32e2(0x410)](_0x3feb01);if(_0x5055b1)return _0x5055b1;let _0x5293c0=[];return this[_0x4d32e2(0x334)][_0x4d32e2(0x2e7)](_0x3feb01,_0x5293c0),_0x5293c0;}[_0x1ed081(0x3c9)](_0x485d24){const _0x17ee05=_0x1ed081;var _0x545d2b;let _0x30926f=new _0x153c14(),_0x42c665=(_0x545d2b=this[_0x17ee05(0x283)][_0x17ee05(0x31d)](_0x436dd9[_0x17ee05(0x335)])[_0x17ee05(0x2ec)](_0x5e2fd9=>_0x5e2fd9[_0x17ee05(0x27e)][_0x17ee05(0x36f)]()===_0x485d24))==null?void 0x0:_0x545d2b['unitId'];return _0x42c665?(_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x200)][_0x17ee05(0x251)](()=>this[_0x17ee05(0x245)](_0x485d24,_0x42c665))),_0x30926f['add'](_0x485d24[_0x17ee05(0x300)]['subscribe'](()=>{const _0x5b7431=_0x17ee05;this[_0x5b7431(0x272)](_0x42c665),queueMicrotask(()=>{const _0x2b3e47=_0x5b7431;_0x485d24[_0x2b3e47(0x23a)]()[_0x2b3e47(0x1e9)]>0x0||(this[_0x2b3e47(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this[_0x2b3e47(0x291)][_0x2b3e47(0x1ea)](null));});})),_0x30926f[_0x17ee05(0x28d)](_0x485d24[_0x17ee05(0x35b)][_0x17ee05(0x251)](()=>{this['_clearPopups'](_0x42c665,!0x0);})),_0x30926f):_0x30926f;}[_0x1ed081(0x245)](_0x126a5c,_0x1a63c6){const _0x4816a7=_0x1ed081;let _0x280dae=_0x126a5c[_0x4816a7(0x23a)]();if(this['_isOpenedShapeEditPanel']){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}if(_0x280dae[_0x4816a7(0x1e9)]>0x1){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0x312359=_0x280dae['values']()[_0x4816a7(0x2d8)]()['value'];if(!_0x312359){this['_clearPopups'](_0x1a63c6);return;}let _0x449700=this[_0x4816a7(0x291)][_0x4816a7(0x269)](_0x312359[_0x4816a7(0x1e8)]);if(!_0x449700||_0x449700[_0x4816a7(0x234)]!==_0x690970[_0x4816a7(0x20d)]){this['_clearPopups'](_0x1a63c6);return;}let {unitId:_0x147d37,subUnitId:_0x1fd4b4,drawingId:_0x39d36e,drawingType:_0x2597c2}=_0x449700;if(!this[_0x4816a7(0x436)](_0x147d37,_0x39d36e)){this[_0x4816a7(0x272)](_0x1a63c6,!0x0);return;}let _0x5f5467=this[_0x4816a7(0x344)](_0x147d37,_0x1fd4b4,_0x39d36e);if(!_0x5f5467){this[_0x4816a7(0x272)](_0x1a63c6);return;}let _0xed16f8=this['_disposePopupsByUnit'][_0x4816a7(0x410)](_0x1a63c6),_0x19eff8=_0x147d37+':'+_0x1fd4b4+':'+_0x39d36e;if(this[_0x4816a7(0x284)][_0x4816a7(0x410)](_0x1a63c6)===_0x19eff8&&_0xed16f8&&_0xed16f8[_0x4816a7(0x43c)]>0x0)return;this[_0x4816a7(0x272)](_0x1a63c6);let _0x14d2d5=this[_0x4816a7(0x283)][_0x4816a7(0x30a)](_0x147d37),_0x5d0bdc=((_0x14d2d5==null?void 0x0:_0x14d2d5[_0x4816a7(0x380)])===!0x1?_0x14d2d5[_0x4816a7(0x34e)](_0xe084e0):this[_0x4816a7(0x361)])[_0x4816a7(0x28e)](_0x312359,this[_0x4816a7(0x41b)](_0x5f5467,_0x2597c2),_0x147d37);this[_0x4816a7(0x2fd)](_0x5d0bdc),this[_0x4816a7(0x44c)](_0x1a63c6)[_0x4816a7(0x39c)](_0x5d0bdc),this[_0x4816a7(0x284)]['set'](_0x1a63c6,_0x19eff8),this[_0x4816a7(0x291)][_0x4816a7(0x2a0)]()[_0x4816a7(0x3cf)](_0x367b03=>_0x367b03[_0x4816a7(0x355)]===_0x147d37&&_0x367b03['subUnitId']===_0x1fd4b4&&_0x367b03[_0x4816a7(0x210)]===_0x39d36e)||this[_0x4816a7(0x291)]['focusDrawing']([{'unitId':_0x147d37,'subUnitId':_0x1fd4b4,'drawingId':_0x39d36e}]);}[_0x1ed081(0x41b)](_0x15676a,_0x4da931){const _0x4c1091=_0x1ed081;return{'componentKey':na,'direction':_0x4c1091(0x397),'offset':[0x0,_0x1fa496],'extraProps':{'unitId':_0x15676a[_0x4c1091(0x355)],'subUnitId':_0x15676a['subUnitId'],'drawingId':_0x15676a['shapeId'],'drawingType':_0x4da931,'shapeType':_0x15676a[_0x4c1091(0x2e0)],'shapeData':_0x15676a[_0x4c1091(0x2ba)]}};}[_0x1ed081(0x436)](_0x368c25,_0xd0f819){const _0x331950=_0x1ed081;let _0x37f431=this[_0x331950(0x221)][_0x331950(0x3d3)](_0x368c25,_0x436dd9[_0x331950(0x335)]);if(!_0x37f431)return!0x1;let _0x5ecc67=_0x1fc7f8(_0x37f431,_0xd0f819);return _0x47555f(this['_permissionService'],_0x368c25,[..._0x1a179a(_0x37f431,_0x5ecc67,_0x331950(0x2fa),_0xd0f819),_0x5462ea(_0x5ecc67,_0x331950(0x2fa),_0xd0f819)]);}[_0x1ed081(0x3f7)](){const _0x5ce752=_0x1ed081;this['disposeWithMe'](this[_0x5ce752(0x22d)]['onCommandExecuted'](_0x101cbd=>{const _0x8db220=_0x5ce752;if(_0x101cbd['id']===q['id']){let {unitId:_0x55944e,subUnitId:_0x1e2d77,drawingId:_0x11547c}=_0x101cbd[_0x8db220(0x41e)];this[_0x8db220(0x444)]+=0x1,this[_0x8db220(0x225)]=this['_getShapeInfo'](_0x55944e,_0x1e2d77,_0x11547c),this[_0x8db220(0x272)](void 0x0,!0x0),this[_0x8db220(0x2d2)]();}if(_0x101cbd['id']===Ai['id']&&(this['_activeShapeInfo']=null,this[_0x8db220(0x2b4)]()),_0x101cbd['id']===_0xbcf5de['id']){let {unitId:_0x1dc078,shapeId:_0x144d8b}=_0x101cbd['params'];if(this[_0x8db220(0x225)]&&this[_0x8db220(0x225)][_0x8db220(0x317)]===_0x144d8b){let _0x8c1a1d=this[_0x8db220(0x344)](_0x1dc078,this[_0x8db220(0x225)]['subUnitId'],_0x144d8b);_0x8c1a1d&&(this['_shapeEditPanelVersion']+=0x1,_0x8c1a1d[_0x8db220(0x44b)]=this[_0x8db220(0x444)],this['_activeShapeInfo']=_0x8c1a1d,this[_0x8db220(0x429)]&&this['_openShapeEditPanel']());}}})),this[_0x5ce752(0x2fd)](this['_drawingManagerService']['focus$'][_0x5ce752(0x251)](_0x376295=>{const _0xbd3732=_0x5ce752;if(this[_0xbd3732(0x429)]===!0x1)return;if(_0x376295[_0xbd3732(0x43c)]===0x0){this[_0xbd3732(0x225)]=null,this[_0xbd3732(0x2b4)]();return;}if(_0x376295['length']===0x1&&_0x376295[0x0]['drawingType']===_0x690970[_0xbd3732(0x20d)]&&(this[_0xbd3732(0x444)]+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0xbd3732(0x2d2)]();return;}let _0x1db8d6=_0x376295[_0xbd3732(0x252)](_0x2cc9c0=>_0x2cc9c0[_0xbd3732(0x234)]===_0x690970[_0xbd3732(0x20d)]);if(_0x376295[_0xbd3732(0x43c)]>0x1&&_0x1db8d6[_0xbd3732(0x43c)]===_0x376295[_0xbd3732(0x43c)]){if(this[_0xbd3732(0x444)]+=0x1,this['_activeShapeInfo']=this[_0xbd3732(0x344)](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0]['subUnitId'],_0x376295[0x0]['drawingId']),this['_activeShapeInfo']){this[_0xbd3732(0x2d2)]();return;}}else{if(this['_shapeEditPanelVersion']+=0x1,this[_0xbd3732(0x225)]=this['_getShapeInfo'](_0x376295[0x0][_0xbd3732(0x355)],_0x376295[0x0][_0xbd3732(0x203)],_0x376295[0x0][_0xbd3732(0x210)]),this[_0xbd3732(0x225)]){this['_activeShapeInfo']['disableShapeOption']=!0x0,this[_0xbd3732(0x2d2)]();return;}}this[_0xbd3732(0x2b4)]();}));}[_0x1ed081(0x2d2)](){const _0x4228a1=_0x1ed081;this[_0x4228a1(0x225)]&&(this['_sidebarDisposable']=this[_0x4228a1(0x2d3)][_0x4228a1(0x44d)]({'id':K,'header':{'title':this[_0x4228a1(0x437)]['t'](_0x4228a1(0x25b))},'width':0x184,'children':{'label':K,...this[_0x4228a1(0x225)]},'onClose':()=>{const _0xdc9506=_0x4228a1;this[_0xdc9506(0x291)][_0xdc9506(0x1ea)](null),this[_0xdc9506(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_sidebarDisposable']=null;}}),this[_0x4228a1(0x429)]=!0x0);}[_0x1ed081(0x2b4)](){const _0x357ff3=_0x1ed081;this['_isOpenedShapeEditPanel']=!0x1,this[_0x357ff3(0x2d3)]['close'](K),this['_sidebarDisposable']=null,this[_0x357ff3(0x2ad)]['setContextValue'](_0x5ad933,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ca=Y([J(0x0,_0x357598),J(0x1,_0x4e9d1c(_0x1357e7)),J(0x2,_0x206d0b),J(0x3,_0x4e9d1c(_0x39396e)),J(0x4,_0x4e9d1c(_0x4b811c)),J(0x5,_0x582229),J(0x6,_0x4cc4c4),J(0x7,_0x4e9d1c(_0xe084e0)),J(0x8,_0x1b5744),J(0x9,_0x268075),J(0xa,_0x4e9d1c(Q)),J(0xb,_0x49aab3)],Ca);let wa=class extends _0x5721ff{constructor(_0x111c22,_0x3489f6){const _0x86b536=_0x1ed081;super(),this['_docsShapeService']=_0x111c22,this['_localeService']=_0x3489f6,this[_0x86b536(0x2fd)](_0xfac87e(_0x357255((_0x527943,_0x1892e8,_0x58f68a)=>this['_measure'](_0x527943,_0x1892e8,_0x58f68a))));}[_0x1ed081(0x2d9)](_0x44ec7a,_0x4f52f9,_0x174f34){const _0xd23d7c=_0x1ed081;let _0x1c43cc=this[_0xd23d7c(0x26c)][_0xd23d7c(0x381)](_0x44ec7a,_0x4f52f9);if(!_0x1c43cc)return null;let _0x268b9d=_0x1c43cc[_0xd23d7c(0x3c2)](),_0x5bb3cd=_0x1a4698(_0x268b9d),_0x5a9dfa=_0x268b9d['shapeText'];if(!_0x5a9dfa||_0x5bb3cd[_0xd23d7c(0x35a)]!==_0x44ef7a['SpAutoFit'])return null;let _0x5b640a=_0x174f34['fallbackWidth'],_0x2c2e7c=_0x174f34[_0xd23d7c(0x3ed)];_0x1c43cc['updateContext']({'width':_0x5b640a,'height':_0x2c2e7c});let _0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}),_0x52aeca=_0x2e2427(_0xd23d7c(0x3e2)in _0x5a9dfa?_0x5a9dfa[_0xd23d7c(0x3e2)]:void 0x0),_0x192104=(_0x52aeca==null?void 0x0:_0x52aeca[_0xd23d7c(0x2ca)])??(_0xd23d7c(0x3fb)in _0x5a9dfa?_0x105325(_0x5a9dfa,_0x4f52f9+_0xd23d7c(0x2b0)):null);if(!_0x192104)return null;let _0x24c2ff=_0x209b99({'documentData':_0x192104,'height':_0x2c2e7c,'shapeData':_0x268b9d,'textRect':_0x15dda6,'width':_0x5b640a,'widthBuffer':0x0});_0x24c2ff&&({width:_0x5b640a,height:_0x2c2e7c}=_0x24c2ff,_0x1c43cc[_0xd23d7c(0x31a)]({'width':_0x5b640a,'height':_0x2c2e7c}),_0x15dda6=_0x1c43cc[_0xd23d7c(0x262)]({'left':0x0,'top':0x0,'width':_0x5b640a,'height':_0x2c2e7c}));let _0x39c265=_0x5a9dfa['isHorizontal']!==!0x1,_0x348c15=_0x25ec96(_0x192104,{'isHorizontal':_0x39c265,'textRect':_0x15dda6,'verticalAlign':_0x52aeca==null?void 0x0:_0x52aeca['va'],'horizontalAlign':_0x52aeca==null?void 0x0:_0x52aeca['ha'],'wrapStrategy':_0x55fcc9(_0x268b9d)}),_0x8eca77=new _0x3b3dfb(_0x348c15),_0x2b2d31=new _0x514bbc(_0x8eca77),_0x293ee4=_0x44a5a2[_0xd23d7c(0x406)](_0x2b2d31,this[_0xd23d7c(0x437)]);try{var _0x3dde40,_0x4245e8;_0x293ee4[_0xd23d7c(0x3ef)]();let _0x10850b=((_0x3dde40=_0x293ee4[_0xd23d7c(0x220)]())==null?void 0x0:_0x3dde40[_0xd23d7c(0x3fc)])??[],_0x29dd75=_0x10850b[_0x10850b[_0xd23d7c(0x43c)]-0x1],_0x3f783a=_0x29dd75?Math[_0xd23d7c(0x23c)](0x0,((_0x4245e8=_0x14e5f4(_0x29dd75))==null?void 0x0:_0x4245e8[_0xd23d7c(0x2a7)])??0x0):0x0,_0x249acc=_0x293ee4[_0xd23d7c(0x38d)]()[_0xd23d7c(0x1eb)]+_0x3f783a-(_0x39c265?_0x15dda6[_0xd23d7c(0x3e1)]:_0x15dda6[_0xd23d7c(0x421)]);return Number[_0xd23d7c(0x2a5)](_0x249acc)?_0x39c265?{'width':_0x5b640a,'height':Math[_0xd23d7c(0x23c)](0x1,_0x2c2e7c+_0x249acc)}:{'width':Math['max'](0x1,_0x5b640a+_0x249acc),'height':_0x2c2e7c}:null;}finally{_0x293ee4[_0xd23d7c(0x208)](),_0x2b2d31[_0xd23d7c(0x208)](),_0x8eca77[_0xd23d7c(0x208)]();}}};wa=Y([J(0x0,_0x4e9d1c(_0x39396e)),J(0x1,_0x4e9d1c(_0x4b811c))],wa);let Ta=class extends _0x30ce8{constructor(_0x4cf939=Mi,_0x55e771,_0x56e081,_0x4027df,_0x5e330d){const _0x70cbbe=_0x1ed081;super(),this['_config']=_0x4cf939,this[_0x70cbbe(0x1ec)]=_0x55e771,this[_0x70cbbe(0x22d)]=_0x56e081,this['_configService']=_0x4027df,this[_0x70cbbe(0x283)]=_0x5e330d;let {menu:_0x257cdb,..._0xff364d}=_0x381591({},Mi,this[_0x70cbbe(0x330)]);_0x257cdb&&this['_configService'][_0x70cbbe(0x1e7)](_0x70cbbe(0x34a),_0x257cdb,{'merge':!0x0}),this[_0x70cbbe(0x3da)][_0x70cbbe(0x1e7)](ji,_0xff364d),this[_0x70cbbe(0x26d)]();}[_0x1ed081(0x2b8)](){const _0x52a525=_0x1ed081;_0x25479e(this['_injector'],this[_0x52a525(0x42b)]()),this[_0x52a525(0x1ec)][_0x52a525(0x410)](ga),this[_0x52a525(0x26b)]();}[_0x1ed081(0x42b)](){return[[ga],[Ca],[ma],[$],[Vi],[zi],[X],[Xi],[wa],[Q],[pa]];}[_0x1ed081(0x2c8)](){const _0x32a76e=_0x1ed081;this[_0x32a76e(0x219)]()[_0x32a76e(0x323)](_0x28172f=>{const _0x44570f=_0x32a76e;this[_0x44570f(0x2fd)](this[_0x44570f(0x283)]['registerRenderModule'](_0x436dd9[_0x44570f(0x335)],_0x28172f));}),_0x3d6461(this[_0x32a76e(0x1ec)],[[Ca],[ma],[$],[Vi],[X],[Xi],[wa],[Q],[pa]]);}[_0x1ed081(0x219)](){return[[zi],[xa],[_a]];}[_0x1ed081(0x223)](){const _0x42be24=_0x1ed081;this[_0x42be24(0x2fd)](this[_0x42be24(0x283)][_0x42be24(0x316)](_0x436dd9[_0x42be24(0x335)],[Sa]));}[_0x1ed081(0x26d)](){const _0x2e2468=_0x1ed081;[G,Ai,q,Cr,Tr,Er][_0x2e2468(0x323)](_0x5126c4=>this[_0x2e2468(0x2fd)](this['_commandService']['registerCommand'](_0x5126c4)));}['_initUIPart'](){const _0x29ea3a=_0x1ed081;let _0x34eafb=this[_0x29ea3a(0x1ec)],_0x2ff9b6=_0x34eafb[_0x29ea3a(0x410)](_0x4e8829);this[_0x29ea3a(0x2fd)](_0x2ff9b6[_0x29ea3a(0x41f)](_0x32804c[_0x29ea3a(0x44a)],()=>_0x30129e(la,_0x34eafb)));}};Z(Ta,'type',_0x436dd9[_0x1ed081(0x335)]),Z(Ta,'pluginName','DOCS_SHAPE_UI_PLUGIN'),Z(Ta,_0x1ed081(0x2cb),Oi),Z(Ta,_0x1ed081(0x44b),ki),Ta=Y([_0x2e6e62(_0x1319ac,_0x4e3d23,_0x4249ea,_0x26805d,_0x338f29,_0x44d973,_0xd2d2e,_0x5efad2,_0x2d0bed,_0xf08f8c),J(0x1,_0x4e9d1c(_0x3d54b6)),J(0x2,_0x582229),J(0x3,_0x280fd7),J(0x4,_0x1b5744)],Ta);export{Di as DocsShapeUIMenuSchema,ha as UniverDocsShapeMobileUIPlugin,Ta as UniverDocsShapeUIPlugin};
|