@univerjs-pro/sheets-shape-ui 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +22 -22
- package/lib/types/commands/command/set-shape-text-align.command.d.ts +0 -5
- package/lib/types/commands/command/set-shape-text-style.command.d.ts +0 -7
- package/lib/types/commands/command/set-shape-text-vertical-align.command.d.ts +0 -5
- package/lib/types/commands/command/shape-doc-align.command.d.ts +0 -10
- package/lib/types/commands/menu/menu-dependencies.d.ts +0 -2
- package/lib/types/commands/menu/object-list.menu.d.ts +0 -4
- package/lib/types/commands/menu/shape-doc-format.menu.d.ts +0 -19
- package/lib/types/commands/menu/shape-font-size.menu.d.ts +0 -6
- package/lib/types/commands/menu/shape-text-align.menu.d.ts +0 -10
- package/lib/types/commands/menu/shape-vertical-align.menu.d.ts +0 -10
- package/lib/types/commands/operations/actvie-drawing-operation.d.ts +0 -2
- package/lib/types/view-model/shape-data-model.d.ts +0 -8
- package/lib/types/views/ShapeOptions.d.ts +0 -26
- package/lib/types/views/shape-editor-panel/ShapeLineEditor.d.ts +0 -12
- package/lib/types/views/shape-editor-panel/index.d.ts +0 -1
- package/lib/types/views/shape-text-editor/ShapeTextFloatToolbar.d.ts +0 -2
- package/lib/types/views/shapes.d.ts +0 -58
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x40a3e1=_0x214c;(function(_0x2137e7,_0x583801){const _0x2fc5a7=_0x214c,_0x3596ed=_0x2137e7();while(!![]){try{const _0x23fce4=parseInt(_0x2fc5a7(0x1e0))/0x1*(parseInt(_0x2fc5a7(0x37a))/0x2)+parseInt(_0x2fc5a7(0x291))/0x3*(-parseInt(_0x2fc5a7(0x350))/0x4)+-parseInt(_0x2fc5a7(0x28d))/0x5*(parseInt(_0x2fc5a7(0x37d))/0x6)+-parseInt(_0x2fc5a7(0x29b))/0x7*(-parseInt(_0x2fc5a7(0x2c4))/0x8)+parseInt(_0x2fc5a7(0x1fd))/0x9*(parseInt(_0x2fc5a7(0x248))/0xa)+parseInt(_0x2fc5a7(0x35f))/0xb*(-parseInt(_0x2fc5a7(0x3c4))/0xc)+-parseInt(_0x2fc5a7(0x34b))/0xd*(-parseInt(_0x2fc5a7(0x225))/0xe);if(_0x23fce4===_0x583801)break;else _0x3596ed['push'](_0x3596ed['shift']());}catch(_0x12913c){_0x3596ed['push'](_0x3596ed['shift']());}}}(_0x4acb,0xa723d));import{FormulaShapeAnimationController as _0x4ae454,MobileShapeEditorService as _0xd18c3c,SHAPE_CHANGE_PICKER_COMPONENT as _0x37ce7a,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0xc2fb67,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0xd4bd0a,ShapeEditPanel as _0x4ced55,ShapeFloatingToolbar as _0x23aeb0,ShapeFloatingToolbarService as _0xfc879,ShapeFloatingToolbarToggleFactory as _0x1d0040,ShapeFormulaRibbonControl as _0x46df00,ShapeGroupEnum as _0x416c0a,ShapePickerDropdown as _0x276ebe,ShapePickerPanel as _0xc763c4,ShapeQuickStyleGallery as _0x506439,ShapeStyleRibbonControl as _0x171727,ShapeTextEditorContainer as _0x5afdbc,ShapeTextFloatMenuRenderControllerBase as _0x41bb9b,ShapeTextFloatToolbar as _0x3eed75,ShapeTextHyperLinkHoverController as _0x3a1637,ShapeTextHyperLinkInfo as _0x6a8cbb,ShapeTextHyperLinkPopupService as _0x31dfd7,ShapeTextRibbonControl as _0x4f2621,ToggleShapeFloatingToolbarOperation as _0x326f6f,UniverShapeEditorMobileUIPlugin as _0x255e95,UniverShapeEditorUIPlugin as _0x48041f,activateDrawingObject as _0x5312c2,bindRenderTransformerLifecycle as _0x429510,buildShapeTextDataUpdate as _0x25fcc6,clearActiveDrawingObjects as _0x1da64c,createShapeTextHyperLinkRegions as _0x2db872,drawFormulaShapeAnimationLayers as _0xdd2b48,getDrawingTypeNameKey as _0x5d4a8c,getTextModel as _0x5add35,getTextStyle as _0x1503fd,normalizeShapeTextModel as _0x557c0f,plainShapeTextToDocumentData as _0x4e6013,prepareShapeTextDocumentData as _0x56440a,registerShapeFormatPainter as _0x3cf394,resolveFormulaShapeAutoFitSize as _0x4b51b7,resolveShapeContextualRibbonHostMode as _0x542739,resolveShapeTextDocumentPageHeight as _0x338660,resolveShapeTextDocumentRenderLayout as _0x2ffc08,resolveShapeTextEditorBehaviorShapeData as _0x263e98,resolveShapeTextEditorWrapStrategy as _0xbf2fdd,resolveShapeTextHyperLinkAt as _0x271bf0,resolveShapeTextHyperLinkObject as _0x2c8700,shouldAllowShapeTextEditorHostSizeShrink as _0x4bf744,shouldClipShapeTextDocument as _0x38d030,useFormulaShapeToolbar as _0x31f90f}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x203616,ContextMenuGroup as _0x4caf77,ContextMenuPosition as _0x420dc4,FloatingObjectToolbarPosition as _0x36ba8a,FormatPainterSessionService as _0x4e03be,IMenuManagerService as _0x2a7418,IRibbonService as _0xbd47b4,ISidebarService as _0x4edbc3,IconManager as _0x3141ce,MenuItemType as _0x3cc54f,MenuManagerPosition as _0x15f1c1,RibbonInsertGroup as _0x30f74f,UndoRedoGroupService as _0x1b9e9a,UniverMobileUIPlugin as _0x31c67a,getMenuHiddenObservable as _0x5b0d7c,useDependency as _0x3911a9,useObservable as _0x17fdf6}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x28f453,ImageSourceTypeEnum as _0x58be7c,ShapeArrowSizeEnum as _0x49eb54,ShapeArrowTypeEnum as _0x5a007b,ShapeDefaultConfig as _0x2c02a7,ShapeFillEnum as _0xbc8bca,ShapeLineTypeEnum as _0x4ccbce,ShapeModel as _0x442f4b,ShapeRenderModeEnum as _0x200468,ShapeTypeEnum as _0x27efd2,computeConnectorRouteLayout as _0x1306f6,getBasicShapeRotateBound as _0x149266,isConnectorShape as _0x421dc8,isCurvedConnectorShape as _0xa7da83,routeConnectorLineShape as _0x4ed1b6}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x343dc9,UniverShapeEditorPlugin as _0x4fffad,applyQuickStyleToShapeData as _0x46bc18,cloneShapeDataForType as _0x4013e1,createShapeFormulaDocument as _0xb20a3a,createShapeTextBoxShapeData as _0x57c405,getShapeQuickStylePreset as _0x583dc0,getShapeQuickStyleType as _0x3e70c6,resolveActiveShapeQuickStylePresetId as _0x244835}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x68b808,InsertSheetsShapeMutation as _0x30d486,RemoveSheetsShapeMutation as _0x950b4f,SetShapeDrawingDataCommand as _0x2e6ede,SheetsShapeService as _0x25eee4,ToggleSheetsShapeFlipCommand as _0x559a4e,UniverSheetsShapePlugin as _0xb1acc8,UpdateConnectorRelationCommand as _0x56d2bf,UpdateLineShapeResizeCommand as _0x521bba,UpdateSheetsShapeDataMutation as _0x2abe23}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x387bee,CommandType as _0x47a509,DependentOn as _0x5da42f,Disposable as _0x1f1ba9,DisposableCollection as _0x2bf40d,DocumentDataModel as _0x18e868,DrawingTypeEnum as _0x204a86,FOCUSING_COMMON_DRAWINGS as _0x4c4f0c,FOCUSING_SHAPE_TEXT_EDITOR as _0x22723e,HorizontalAlign as _0x1388a6,ICommandService as _0x3a4817,IConfigService as _0x4b4871,IContextService as _0x264df0,IImageIoService as _0x227de8,IPermissionService as _0x579508,IURLImageService as _0x4646eb,IUndoRedoService as _0x21d046,IUniverInstanceService as _0x3a3cc8,Inject as _0x34f57e,Injector as _0xa4fd93,LocaleService as _0x1fc669,Plugin as _0x5e7af4,UniverInstanceType as _0x2f72d4,VerticalAlign as _0x11de6,createInternalEditorID as _0xd3eef3,generateRandomId as _0x57f70d,merge as _0x2b5604,registerDependencies as _0x457bb0,toDisposable as _0x35229e,touchDependencies as _0x557f52}from'@univerjs/core';import{CopySheetCommand as _0x143b18,RemoveSheetCommand as _0x590306,SheetInterceptorService as _0x20a0fd,SheetPermissionCheckController as _0xe3fb01,SheetSkeletonService as _0x2b81a7,SheetsSelectionsService as _0x28680f,UniverSheetsPlugin as _0x1b66b7,WorkbookCopyPermission as _0x2b4124,WorkbookEditablePermission as _0x3edb9a,WorksheetCopyPermission as _0x4974af,WorksheetEditPermission as _0x2e8354,attachRangeWithCoord as _0x500c4e,discreteRangeToRange as _0x32c5b6,getSheetCommandTarget as _0x1eaf70}from'@univerjs/sheets';import{IDrawingManagerService as _0x2d58e3,SetDrawingSelectedOperation as _0x5bb1f9,UniverDrawingPlugin as _0x499a28,getDrawingShapeKeyByDrawingSearch as _0x4eca2a,getOrCreateDrawingCopyPlan as _0x25a00d}from'@univerjs/drawing';import{CURSOR_TYPE as _0x27b168,Circle as _0x597d7e,DRAWING_OBJECT_LAYER_INDEX as _0x1301e0,DocumentSkeleton as _0x32a266,DocumentViewModel as _0x12e277,Documents as _0x214f4b,IRenderManagerService as _0x5a17c7,Image as _0x2b9b89,RENDER_CLASS_TYPE as _0x5caa7e,SHEET_VIEWPORT_KEY as _0x4b46ff,Shape as _0x4d9757,Transform as _0x270023,UniverRenderEnginePlugin as _0x29d435,Vector2 as _0x1e9d06}from'@univerjs/engine-render';import{COPY_TYPE as _0x483eee,ISheetClipboardService as _0x5ddcd0,PREDEFINED_HOOK_NAME as _0x20a41f,SheetCanvasPopManagerService as _0x2bf47d,SheetPrintInterceptorService as _0x118b16,SheetScrollManagerService as _0x1d24d6,SheetSkeletonManagerService as _0x22bccb,UniverSheetsMobileUIPlugin as _0x330621,UniverSheetsUIPlugin as _0x18a7f0,deriveStateFromActiveSheet$ as _0x297af0,getCurrentRangeDisable$ as _0x587855,getViewportByCell as _0xf578ae}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x1343c7,EMPTY as _0x50a9a5,Observable as _0x38e630,map as _0x1b0143,merge as _0x378593,of as _0x3cb66b,startWith as _0x56668c,switchMap as _0x59c42a}from'rxjs';import{DrawingCommonPanel as _0x297d10,DrawingImageClipService as _0x5706e2,DrawingRenderService as _0xe326a7,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x48abb2,MobileObjectListPanel as _0x320793,OBJECT_LIST_FLOATING_SECTION_ID as _0x4460bf,ObjectListPanelBase as _0x2814d9,UniverDrawingUIPlugin as _0x2a1c33,getCurrentUnitInfo as _0x296f70,getObjectListPanelSectionIdForDrawingType as _0x295780,insertGroupObject as _0x4218fd}from'@univerjs/drawing-ui';import{MobileDropdown as _0x5d0172}from'@univerjs/design';import{Fragment as _0x470de9,jsx as _0xf2bc1d,jsxs as _0x2ae626}from'react/jsx-runtime';import{DrawingApplyType as _0x55dd60,ISheetDrawingService as _0x40f806,RemoveSheetDrawingCommand as _0x2982ca,SetDrawingApplyMutation as _0x2bb859,SetDrawingArrangeCommand as _0x5a5e2c,SetSheetDrawingCommand as _0x33b43a,UniverSheetsDrawingPlugin as _0x211085,transformToAxisAlignPosition as _0x48d94d,transformToDrawingPosition as _0x588a4b}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1146d0}from'@univerjs-pro/license';import{DocInterceptorService as _0x3f7435,DocSelectionManagerService as _0x4e6c7e,UniverDocsPlugin as _0x40457b}from'@univerjs/docs';import{DocCanvasPopManagerService as _0xd91da3,DocEventManagerService as _0x156cf6,DocRenderController as _0x285cfc,DocSelectionRenderService as _0x35cd82,UniverDocsUIPlugin as _0x5b0db3}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x3f9b53,SheetsDrawingGroupCopyPasteController as _0x250565,UniverSheetsDrawingMobileUIPlugin as _0x6be2d1,UniverSheetsDrawingUIPlugin as _0xf463fc}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x5aa288,FlipHorizontalIcon as _0x4ef5a4,FlipVerticalIcon as _0x132c9b,MoveDownIcon as _0x560a3c,MoveUpIcon as _0x543917,ObjectLayersIcon as _0x351aa4,ShapeFormatSettingIcon as _0x4333c8,TopmostIcon as _0x41d425}from'@univerjs/icons';import{memo as _0x3fd15d,useEffect as _0x4f4595,useMemo as _0x21a1e7,useReducer as _0x4d2c52,useState as _0x1e43f1}from'react';function Er(_0x5496bc,_0x4a2041){const _0x52d833=_0x214c;let _0x204424={};for(let _0x4ee951 of Object[_0x52d833(0x413)](_0x4a2041)){let _0x4b504b=_0x4a2041[_0x4ee951],_0x1632c2=_0x5496bc[_0x4ee951];if(_0x1632c2===void 0x0){_0x204424[_0x4ee951]=void 0x0;continue;}_0x204424[_0x4ee951]=typeof _0x4b504b==_0x52d833(0x32c)&&_0x4b504b&&!Array[_0x52d833(0x297)](_0x4b504b)&&typeof _0x1632c2==_0x52d833(0x32c)&&_0x1632c2&&!Array['isArray'](_0x1632c2)?Er(_0x1632c2,_0x4b504b):_0x1632c2;}return _0x204424;}function _0x214c(_0x7fd82e,_0x24d9a9){_0x7fd82e=_0x7fd82e-0x1b7;const _0x4acb95=_0x4acb();let _0x214cb2=_0x4acb95[_0x7fd82e];return _0x214cb2;}const K={'type':_0x47a509[_0x40a3e1(0x1f2)],'id':_0x40a3e1(0x23c),'handler':(_0x2296bb,_0x4f9bca)=>{const _0x181690=_0x40a3e1;let _0x276dc8=_0x2296bb['get'](_0x25eee4),{unitId:_0x4a7354,subUnitId:_0x21251e,shapeType:_0x3771c4,shapeId:_0x4e2b1b,shapeData:_0x3684bd,replaceShapeData:_0x5a4d07,oldShapeJSON:_0x130356}=_0x4f9bca;if(!_0x276dc8[_0x181690(0x3f9)](_0x4a7354,_0x21251e,_0x4e2b1b))return!0x1;let _0xd304aa=_0x2296bb[_0x181690(0x270)](_0x3a4817),_0x190123=_0x2296bb[_0x181690(0x270)](_0x21d046),{oldShapeType:_0x41f1a0,oldShapeData:_0x43a38b={}}=_0x130356,_0x385b61=_0x5a4d07?_0x43a38b:Er(_0x43a38b,_0x3684bd||{}),_0x3085e6={'id':_0x2abe23['id'],'params':{'unitId':_0x4a7354,'subUnitId':_0x21251e,'shapeId':_0x4e2b1b,'shapeType':_0x3771c4,'shapeData':_0x3684bd,'replace':_0x5a4d07}},_0x50a761={'id':_0x2abe23['id'],'params':{'unitId':_0x4a7354,'subUnitId':_0x21251e,'shapeId':_0x4e2b1b,'shapeType':_0x41f1a0,'shapeData':_0x385b61,'replace':_0x5a4d07}};return _0xd304aa['syncExecuteCommand'](_0x3085e6['id'],_0x3085e6['params'])?(_0x190123['pushUndoRedo']({'unitID':_0x4a7354,'undoMutations':[_0x50a761],'redoMutations':[_0x3085e6]}),!0x0):!0x1;}};function Dr(_0x49ef6e,_0x1ee7ae,_0xea956e,_0x587714,_0x3ab20e,_0x3fc571){const _0x29c2d3=_0x40a3e1;let _0x360056={'unitId':_0x1ee7ae,'subUnitId':_0xea956e,'shapeId':_0x587714,'shapeData':_0x3fc571,'oldShapeJSON':_0x3ab20e};return _0x49ef6e[_0x29c2d3(0x2d5)](K['id'],_0x360056);}function Or(_0x12a7be,_0x382bc4,_0x2e7a8c,_0x264a42,_0x30a80a,_0x3654f4){const _0x5b6832=_0x40a3e1;let _0xbe8e45={'unitId':_0x382bc4,'subUnitId':_0x2e7a8c,'shapeId':_0x264a42,'shapeData':_0x3654f4,'oldShapeJSON':_0x30a80a};return _0x12a7be[_0x5b6832(0x2d5)](K['id'],_0xbe8e45);}function kr(_0x29601d){'@babel/helpers - typeof';const _0x4923a6=_0x40a3e1;return kr=typeof Symbol=='function'&&typeof Symbol[_0x4923a6(0x29e)]==_0x4923a6(0x220)?function(_0x4620fc){return typeof _0x4620fc;}:function(_0x194708){const _0x9f31c0=_0x4923a6;return _0x194708&&typeof Symbol==_0x9f31c0(0x380)&&_0x194708[_0x9f31c0(0x2fa)]===Symbol&&_0x194708!==Symbol[_0x9f31c0(0x261)]?_0x9f31c0(0x220):typeof _0x194708;},kr(_0x29601d);}function Ar(_0x312a34,_0x43e7b9){const _0x37d482=_0x40a3e1;if(kr(_0x312a34)!=_0x37d482(0x32c)||!_0x312a34)return _0x312a34;var _0x498294=_0x312a34[Symbol['toPrimitive']];if(_0x498294!==void 0x0){var _0x2abd80=_0x498294[_0x37d482(0x1e8)](_0x312a34,_0x43e7b9||_0x37d482(0x2ed));if(kr(_0x2abd80)!=_0x37d482(0x32c))return _0x2abd80;throw TypeError(_0x37d482(0x449));}return(_0x43e7b9==='string'?String:Number)(_0x312a34);}function jr(_0x5274af){const _0x2eaae4=_0x40a3e1;var _0x315764=Ar(_0x5274af,_0x2eaae4(0x35a));return kr(_0x315764)==_0x2eaae4(0x220)?_0x315764:_0x315764+'';}function q(_0x4b90e1,_0x1882aa,_0x17e338){const _0x42f788=_0x40a3e1;return(_0x1882aa=jr(_0x1882aa))in _0x4b90e1?Object[_0x42f788(0x288)](_0x4b90e1,_0x1882aa,{'value':_0x17e338,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b90e1[_0x1882aa]=_0x17e338,_0x4b90e1;}function Mr(_0x19c3db,_0x549a40,_0x3c06ce){const _0x48f5b6=_0x40a3e1;let _0x4cc1b1={..._0x549a40,'dataModel':{..._0x549a40[_0x48f5b6(0x224)]??{},..._0x3c06ce?{'doc':_0x3c06ce}:null}},_0x174e4c=_0x263e98(_0x19c3db,_0x4cc1b1),_0x3d2a09=_0xbf2fdd(_0x174e4c);return{'clip':_0x38d030(_0x174e4c,_0x3d2a09),'wrapStrategy':_0x3d2a09};}var J=class extends _0x4d9757{constructor(_0x378ff9,_0x3a506a){const _0x11dfd0=_0x40a3e1;super(_0x378ff9,_0x3a506a),q(this,_0x11dfd0(0x40c),[]),q(this,_0x11dfd0(0x1db),void 0x0),q(this,_0x11dfd0(0x441),new _0x4ae454(()=>this['makeDirty'](!0x0),()=>this[_0x11dfd0(0x36f)]())),q(this,_0x11dfd0(0x28b),!0x0),q(this,'_drawingType',_0x204a86['DRAWING_SHAPE']),q(this,_0x11dfd0(0x2da),!0x0),this[_0x11dfd0(0x1db)]={..._0x3a506a},this['_formulaAnimation'][_0x11dfd0(0x26a)](_0x3a506a[_0x11dfd0(0x349)],_0x3a506a['animateFormulaPresentation']!==!0x1),this[_0x11dfd0(0x3e9)](),this[_0x11dfd0(0x36f)]();}[_0x40a3e1(0x3e9)](){const _0x90bfbd=_0x40a3e1;this[_0x90bfbd(0x3be)][_0x90bfbd(0x42f)](_0x45af16=>{this['_updateSrcRectByTransform'](_0x45af16);});}[_0x40a3e1(0x240)](_0x30b5f0){const _0x2e96ca=_0x40a3e1;this[_0x2e96ca(0x1db)]['prstGeom']=_0x30b5f0;}[_0x40a3e1(0x2bc)](_0x206d85){const _0x41f013=_0x40a3e1;if(this[_0x41f013(0x1db)][_0x41f013(0x3cb)])return null;let _0x5cbb5a=this['getInverseCoord'](_0x206d85),{width:_0x2c4e3f,height:_0xa8e2b1}=this[_0x41f013(0x43c)]();return _0x271bf0(this['_hyperLinkRegions'],{'x':(this[_0x41f013(0x405)]?-_0x5cbb5a['x']:_0x5cbb5a['x'])+_0x2c4e3f/0x2,'y':_0x5cbb5a['y']+_0xa8e2b1/0x2});}[_0x40a3e1(0x29d)](_0x1f0bdf){const _0x5c5b55=_0x40a3e1;this[_0x5c5b55(0x1db)]['isEditing']=_0x1f0bdf,this[_0x5c5b55(0x33f)](!0x0);}[_0x40a3e1(0x43f)](_0x4c5dcf,_0x1b6036=!0x0){const _0x35ea31=_0x40a3e1;this[_0x35ea31(0x441)][_0x35ea31(0x26a)](_0x4c5dcf,_0x1b6036),this[_0x35ea31(0x1db)][_0x35ea31(0x349)]=_0x4c5dcf,this[_0x35ea31(0x36f)](),this['makeDirty'](!0x0);}[_0x40a3e1(0x36f)](){const _0x5ad028=_0x40a3e1;let _0x4b1bea=this[_0x5ad028(0x1db)]['shapeModel'],_0x57c36b=_0x4b1bea['getShapeTextData'](),_0x221ef5=_0x557c0f(_0x57c36b==null?void 0x0:_0x57c36b['dataModel']),_0x74e459=_0x221ef5==null?void 0x0:_0x221ef5['doc'],_0x3a287a=this['_formulaAnimation'][_0x5ad028(0x25a)]();if(!_0x74e459||_0x3a287a[_0x5ad028(0x46d)]===0x0)return;_0x4b1bea['updateContext']({'width':this[_0x5ad028(0x294)],'height':this['height']});let _0x4f3087=_0x4b51b7({'documentData':_0x3a287a[_0x5ad028(0x241)](_0x31bb7f=>_0xb20a3a(_0x74e459,_0x31bb7f)),'height':this[_0x5ad028(0x222)],'shapeData':_0x4b1bea[_0x5ad028(0x295)](),'textRect':_0x4b1bea[_0x5ad028(0x1d5)]({'left':0x0,'top':0x0,'width':this[_0x5ad028(0x294)],'height':this[_0x5ad028(0x222)]}),'width':this[_0x5ad028(0x294)]});if(_0x4f3087){var _0x5f273d;this[_0x5ad028(0x340)](_0x4f3087[_0x5ad028(0x294)],_0x4f3087[_0x5ad028(0x222)]),(_0x5f273d=this[_0x5ad028(0x44c)]())==null||(_0x5f273d=_0x5f273d['getTransformer']())==null||_0x5f273d['debounceRefreshControls']();}}get[_0x40a3e1(0x43a)](){const _0x184d08=_0x40a3e1;return this[_0x184d08(0x1db)]['unitId'];}get['subUnitId'](){const _0xe6015d=_0x40a3e1;return this[_0xe6015d(0x1db)]['subUnitId'];}[_0x40a3e1(0x2f0)](_0x50668d){const _0x2b3ba2=_0x40a3e1;if(this[_0x2b3ba2(0x1db)][_0x2b3ba2(0x37c)]==null||!this['_transformCalculateSrcRect'])return;let {width:_0x32a01e,height:_0x432793}=this,{width:_0x40655a=0x0,height:_0x3b1695=0x0}=_0x50668d['preValue'],{left:_0x22ea8d=0x0,top:_0x3489a1=0x0,right:_0x434eaa=0x0,bottom:_0x44c414=0x0}=this[_0x2b3ba2(0x1db)][_0x2b3ba2(0x37c)],_0x5009ea=_0x22ea8d,_0x5d4e70=_0x3489a1,_0xe9021c=_0x434eaa,_0x2c7ed3=_0x44c414,_0x437db2=!0x1;if(_0x40655a!==0x0&&_0x40655a!==_0x32a01e){let _0x58d14a=_0x22ea8d/_0x40655a,_0x1f5f48=_0x434eaa/_0x40655a;_0x5009ea=_0x32a01e*_0x58d14a,_0xe9021c=_0x32a01e*_0x1f5f48,_0x437db2=!0x0;}if(_0x3b1695!==0x0&&_0x3b1695!==_0x432793){let _0x25d198=_0x3489a1/_0x3b1695,_0x3307a6=_0x44c414/_0x3b1695;_0x5d4e70=_0x432793*_0x25d198,_0x2c7ed3=_0x432793*_0x3307a6,_0x437db2=!0x0;}_0x437db2&&this[_0x2b3ba2(0x292)]({'left':_0x5009ea,'top':_0x5d4e70,'right':_0xe9021c,'bottom':_0x2c7ed3});}[_0x40a3e1(0x292)](_0x29adae){const _0x6d5b07=_0x40a3e1;this[_0x6d5b07(0x1db)][_0x6d5b07(0x37c)]=_0x29adae,this[_0x6d5b07(0x33f)](!0x0);}[_0x40a3e1(0x3b9)](_0x25071b){const _0x55eab5=_0x40a3e1;this[_0x55eab5(0x1db)][_0x55eab5(0x444)]=_0x25071b,this['makeDirty'](!0x0);}set['transform'](_0x3d4a71){const _0x2d1cf4=_0x40a3e1;this[_0x2d1cf4(0x247)]=_0x3d4a71;}get[_0x40a3e1(0x412)](){const _0x296b1f=_0x40a3e1;this['_transform']||this[_0x296b1f(0x2bf)]();let _0x221e3d=this[_0x296b1f(0x247)][_0x296b1f(0x2d9)]();return this['transformForAngle'](_0x221e3d);}get['shapeModel'](){const _0x4964c8=_0x40a3e1;return this[_0x4964c8(0x1db)]['shapeModel'];}get['shapeId'](){return this['_props']['shapeId'];}get['classType'](){return _0x5caa7e['SHAPE'];}['_draw'](_0x12ecc5,_0x1834ee,_0x24bea8,_0x3bed59){const _0x3e3279=_0x40a3e1;let _0x5dddf4=this[_0x3e3279(0x1db)]['shapeModel'];if(!_0x5dddf4||!_0x1834ee)return;let _0x2843f2=_0x24bea8??this[_0x3e3279(0x294)],_0x5084dc=_0x3bed59??this[_0x3e3279(0x222)],_0x1baa5d={'shapeType':_0x5dddf4['getShapeType'](),'width':_0x2843f2,'height':_0x5084dc},_0x5427bf={'renderMode':_0x200468[_0x3e3279(0x2e7)],'oKey':this['oKey'],'image':this['_props'][_0x3e3279(0x444)],'angle':this['angle']};_0x5dddf4[_0x3e3279(0x2e0)](_0x1baa5d),_0x12ecc5[_0x3e3279(0x26f)]();let _0x27a029={'top':0x0,'left':0x0,'width':_0x2843f2,'height':_0x5084dc},_0xf0c755=_0x5dddf4[_0x3e3279(0x438)](_0x27a029);_0xf0c755?this['_renderWithCache'](_0x12ecc5,_0xf0c755,_0x4cfe31=>{const _0x1eada2=_0x3e3279;_0x5dddf4[_0x1eada2(0x41c)](_0x4cfe31,_0x27a029,_0x5427bf);}):(this['_releaseRenderCache'](),_0x5dddf4['render'](_0x12ecc5,_0x27a029,_0x5427bf)),_0x12ecc5[_0x3e3279(0x27d)]();let _0x5535ac=_0x5dddf4[_0x3e3279(0x1bb)](),_0x5d3983=_0x5dddf4['getShapeTextRect'](_0x27a029),_0x726b0a=_0x5dddf4[_0x3e3279(0x390)]();if(_0x5535ac&&_0x5d3983&&!_0x726b0a){_0x12ecc5[_0x3e3279(0x26f)](),this[_0x3e3279(0x36e)]()[_0x3e3279(0x405)]&&_0x12ecc5[_0x3e3279(0x281)](-0x1,0x1);let _0x5741c6=_0x2843f2/0x2,_0xb0223f=_0x5084dc/0x2;_0x12ecc5[_0x3e3279(0x2e4)](-_0x5741c6,-_0xb0223f),_0x12ecc5[_0x3e3279(0x38b)](),this[_0x3e3279(0x46a)](_0x12ecc5,_0x5535ac,_0x5d3983),_0x12ecc5[_0x3e3279(0x27d)]();}}['getDrawingPoints'](_0x41b0fc){}['_drawShapeText'](_0x59f6c1,_0x1290c5,_0x220876){const _0x32eb39=_0x40a3e1;var _0x4e67d8;this[_0x32eb39(0x40c)]=[],!this[_0x32eb39(0x1db)][_0x32eb39(0x3cb)]&&(!((_0x4e67d8=_0x1290c5['dataModel'])!=null&&_0x4e67d8[_0x32eb39(0x379)])&&_0x32eb39(0x2d6)in _0x1290c5&&_0x1290c5[_0x32eb39(0x2d6)]===!0x1?this[_0x32eb39(0x338)](_0x59f6c1,_0x1290c5,_0x220876):this[_0x32eb39(0x2f3)](_0x59f6c1,_0x1290c5,_0x220876));}[_0x40a3e1(0x338)](_0x37a961,_0x387d4b,_0x5236f9){const _0x210e34=_0x40a3e1;this[_0x210e34(0x2f3)](_0x37a961,{..._0x387d4b,'text':_0x387d4b[_0x210e34(0x319)]??'','dataModel':{'doc':_0x4e6013(_0x387d4b,_0x210e34(0x366)+this[_0x210e34(0x39f)])}},_0x5236f9);}[_0x40a3e1(0x2f3)](_0x34c28a,_0x5af303,_0x4e08d9){const _0x11a6b4=_0x40a3e1;_0xdd2b48(_0x34c28a,this[_0x11a6b4(0x441)],(_0x1bc3e3,_0x27ccd4,_0x451b11)=>{const _0x5394e0=_0x11a6b4;this['_drawRichTextLayer'](_0x1bc3e3,_0x5af303,_0x4e08d9,_0x27ccd4,_0x451b11===_0x5394e0(0x34d));});}[_0x40a3e1(0x3bb)](_0x1020e0,_0x42c185,_0x5b7c54,_0x5839b3,_0x42e4fa){const _0x187ec2=_0x40a3e1;let _0x57a543=this['_props']['localeService'];if(!_0x42c185['dataModel']||!_0x57a543)return;let _0x1c7924=_0x557c0f(_0x42c185[_0x187ec2(0x224)]);if(!_0x1c7924)return;let _0xf9d50e=_0x1c7924['doc'];if(!_0xf9d50e)return;let _0x16ee1d=_0xb20a3a(_0xf9d50e,_0x5839b3),_0xc2b095=_0x1c7924['va']??_0x11de6[_0x187ec2(0x32a)],_0x5382ba=_0x1c7924['ha']??_0x1388a6[_0x187ec2(0x1d9)],_0x472e36=Mr(this[_0x187ec2(0x1db)][_0x187ec2(0x450)][_0x187ec2(0x295)](),_0x42c185,_0x16ee1d),_0x5384ca=_0x42c185['isHorizontal'],_0x200d78=_0x56440a(_0x16ee1d,{'isHorizontal':_0x5384ca!==!0x1,'textRect':_0x5b7c54,'verticalAlign':_0xc2b095,'horizontalAlign':_0x5382ba,'wrapStrategy':_0x472e36[_0x187ec2(0x231)]}),_0x3c0152=new _0x18e868(_0x200d78),_0x52946d=new _0x12e277(_0x3c0152),_0x557636=_0x32a266[_0x187ec2(0x3d9)](_0x52946d,_0x57a543);_0x557636[_0x187ec2(0x1d8)]();let _0x167151=_0x557636[_0x187ec2(0x2be)]()[_0x187ec2(0x336)],_0x2aed75=_0x2ffc08({'contentHeight':_0x167151,'verticalAlign':_0xc2b095,'viewportHeight':_0x5b7c54[_0x187ec2(0x222)]});_0x3c0152[_0x187ec2(0x43e)]({'pageSize':{'width':_0x5384ca===!0x1?_0x5b7c54[_0x187ec2(0x222)]:_0x5b7c54[_0x187ec2(0x294)],'height':_0x338660(_0x16ee1d,_0x2aed75[_0x187ec2(0x3f2)])}}),_0x3c0152[_0x187ec2(0x325)]({'t':_0x2aed75[_0x187ec2(0x274)]}),_0x557636[_0x187ec2(0x1d8)]();let _0x382e2f=new _0x214f4b(_0x187ec2(0x45a)+this[_0x187ec2(0x39f)],_0x557636,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x187ec2(0x33f)](!0x0)});_0x382e2f[_0x187ec2(0x340)](_0x5b7c54[_0x187ec2(0x294)],_0x2aed75[_0x187ec2(0x3f2)]),_0x1020e0[_0x187ec2(0x26f)](),_0x1020e0[_0x187ec2(0x1c1)](_0x5b7c54[_0x187ec2(0x3d3)],_0x5b7c54[_0x187ec2(0x473)]),_0x472e36['clip']&&(_0x1020e0[_0x187ec2(0x38b)](),_0x1020e0['rect'](0x0,_0x2aed75[_0x187ec2(0x3fa)],_0x5b7c54[_0x187ec2(0x294)],_0x2aed75[_0x187ec2(0x2cc)]),_0x1020e0[_0x187ec2(0x347)]()),_0x2aed75['contentVerticalOffset']&&_0x1020e0['translateWithPrecision'](0x0,_0x2aed75[_0x187ec2(0x1f3)]),_0x382e2f[_0x187ec2(0x3e5)](_0x1020e0),_0x42e4fa&&(this[_0x187ec2(0x40c)]=_0x2db872(_0x382e2f,{'left':_0x5b7c54[_0x187ec2(0x3d3)],'top':_0x5b7c54[_0x187ec2(0x473)]+_0x2aed75['contentVerticalOffset']},_0x472e36[_0x187ec2(0x347)]?{'left':_0x5b7c54[_0x187ec2(0x3d3)],'right':_0x5b7c54['left']+_0x5b7c54[_0x187ec2(0x294)],'top':_0x5b7c54[_0x187ec2(0x473)]+_0x2aed75[_0x187ec2(0x3fa)],'bottom':_0x5b7c54['top']+_0x2aed75['clipTop']+_0x2aed75[_0x187ec2(0x2cc)]}:void 0x0)),_0x1020e0[_0x187ec2(0x27d)](),_0x382e2f[_0x187ec2(0x223)](),_0x557636[_0x187ec2(0x223)](),_0x52946d['dispose'](),_0x3c0152['dispose']();}[_0x40a3e1(0x41c)](_0x43e30d,_0x216807,_0x47229a=!0x1){const _0x6c684f=_0x40a3e1;if(!this[_0x6c684f(0x3e8)])return this[_0x6c684f(0x33f)](!0x1),this;let {width:_0x41fb9f,height:_0x53f452,left:_0x7e6f32,top:_0x3ca2d3}=this,_0x352598=this[_0x6c684f(0x43c)]();if(_0x41fb9f=_0x352598['width'],_0x53f452=_0x352598[_0x6c684f(0x222)],_0x7e6f32=_0x352598[_0x6c684f(0x3d3)],_0x3ca2d3=_0x352598[_0x6c684f(0x473)],this[_0x6c684f(0x436)](_0x216807)){let {top:_0x513887,left:_0xcd67a5,bottom:_0x406b48,right:_0x53e0ad}=_0x216807[_0x6c684f(0x213)];if(_0x41fb9f+this[_0x6c684f(0x230)]+_0x7e6f32<_0xcd67a5||_0x53e0ad<_0x7e6f32||_0x53f452+this[_0x6c684f(0x230)]+_0x3ca2d3<_0x513887||_0x406b48<_0x3ca2d3)return this;}let _0x2eba49=_0x7e6f32+_0x41fb9f/0x2,_0x409322=_0x3ca2d3+_0x53f452/0x2,_0x544b11=this[_0x6c684f(0x412)][_0x6c684f(0x411)]();if(this[_0x6c684f(0x1db)]['isEditing']){let _0xc9f760=this[_0x6c684f(0x36e)](),_0x2b4efb=new _0x270023();_0x2b4efb[_0x6c684f(0x362)]({..._0xc9f760}),_0x544b11=_0x2b4efb[_0x6c684f(0x411)]();}return _0x43e30d[_0x6c684f(0x26f)](),this[_0x6c684f(0x1db)][_0x6c684f(0x450)]['isRenderLinePointsMode']===!0x0||_0x43e30d[_0x6c684f(0x412)](_0x544b11[0x0],_0x544b11[0x1],_0x544b11[0x2],_0x544b11[0x3],_0x2eba49,_0x409322),this['_draw'](_0x43e30d,_0x216807,_0x41fb9f,_0x53f452),_0x43e30d[_0x6c684f(0x27d)](),this['makeDirty'](!0x1),this;}['getInverseCoord'](_0xae96ce){const _0x48e3db=_0x40a3e1;let {left:_0x521619,top:_0x3f5800,width:_0xc44c6f,height:_0x3fdbac}=this[_0x48e3db(0x43c)](),_0x8ee5c8=this[_0x48e3db(0x412)][_0x48e3db(0x411)](),_0x30bee8=_0x521619+_0xc44c6f/0x2,_0x153435=_0x3f5800+_0x3fdbac/0x2,_0x2a94b1=new _0x270023([_0x8ee5c8[0x0],_0x8ee5c8[0x1],_0x8ee5c8[0x2],_0x8ee5c8[0x3],_0x30bee8,_0x153435]),_0x13ff95=this['getParent']();return(this['isInGroup']&&(_0x13ff95==null?void 0x0:_0x13ff95[_0x48e3db(0x3b0)])===_0x5caa7e[_0x48e3db(0x45d)]?_0x13ff95['ancestorTransform'][_0x48e3db(0x376)](_0x2a94b1):_0x2a94b1)[_0x48e3db(0x420)]()[_0x48e3db(0x415)](_0xae96ce);}['isHit'](_0x4d24ef){const _0x34ea34=_0x40a3e1;let {left:_0x529574,top:_0x17fd00,width:_0x233339,height:_0x8181d5}=this[_0x34ea34(0x43c)](),_0xd012ff=_0x529574+_0x233339/0x2,_0x19afc0=_0x17fd00+_0x8181d5/0x2,_0x11d197=this[_0x34ea34(0x412)]['getMatrix'](),_0x15d8db=new _0x270023([_0x11d197[0x0],_0x11d197[0x1],_0x11d197[0x2],_0x11d197[0x3],_0xd012ff,_0x19afc0]),_0x4998ea=this[_0x34ea34(0x374)](),_0x2482e9=(this[_0x34ea34(0x384)]&&(_0x4998ea==null?void 0x0:_0x4998ea[_0x34ea34(0x3b0)])===_0x5caa7e['GROUP']?_0x4998ea['ancestorTransform'][_0x34ea34(0x376)](_0x15d8db):_0x15d8db)['invert']()[_0x34ea34(0x415)](_0x4d24ef),_0x48e8d4=_0x233339/0x2,_0x1efecd=_0x8181d5/0x2,_0x258ec3=this['_props'][_0x34ea34(0x450)];return _0x258ec3&&_0x258ec3[_0x34ea34(0x390)]()?_0x258ec3[_0x34ea34(0x202)](_0x2482e9['x'],_0x2482e9['y'],_0x233339,_0x8181d5):_0x2482e9['x']>=-_0x48e8d4-this[_0x34ea34(0x230)]/0x2&&_0x2482e9['x']<=_0x48e8d4+this[_0x34ea34(0x230)]/0x2&&_0x2482e9['y']>=-_0x1efecd-this[_0x34ea34(0x230)]/0x2&&_0x2482e9['y']<=_0x1efecd+this[_0x34ea34(0x230)]/0x2;}['dispose'](){const _0x15d1b6=_0x40a3e1;this[_0x15d1b6(0x441)][_0x15d1b6(0x223)](),this[_0x15d1b6(0x1db)][_0x15d1b6(0x450)]=null,super[_0x15d1b6(0x223)]();}},Nr=class extends _0x4d9757{constructor(_0x336a25,_0x222256){const _0x524aac=_0x40a3e1;super(_0x336a25,_0x222256),q(this,'_shapeId',null),q(this,_0x524aac(0x3ad),null),q(this,_0x524aac(0x34f),null),q(this,_0x524aac(0x465),null),_0x222256&&this['setShapeProps'](_0x222256);}[_0x40a3e1(0x2fc)](){const _0x32c5ca=_0x40a3e1;return{'unitId':this[_0x32c5ca(0x34f)],'subUnitId':this[_0x32c5ca(0x465)],'drawingId':this[_0x32c5ca(0x3d8)]};}[_0x40a3e1(0x268)](_0x57acc6){const _0x2d66cd=_0x40a3e1;_0x57acc6[_0x2d66cd(0x464)]!==void 0x0&&(this[_0x2d66cd(0x3d8)]=_0x57acc6[_0x2d66cd(0x464)]),_0x57acc6['adjName']!==void 0x0&&(this[_0x2d66cd(0x3ad)]=_0x57acc6[_0x2d66cd(0x391)]),_0x57acc6['unitId']!==void 0x0&&(this[_0x2d66cd(0x34f)]=_0x57acc6['unitId']),_0x57acc6[_0x2d66cd(0x330)]!==void 0x0&&(this[_0x2d66cd(0x465)]=_0x57acc6[_0x2d66cd(0x330)]),this[_0x2d66cd(0x3a6)]({'width':_0x57acc6[_0x2d66cd(0x294)],'height':_0x57acc6[_0x2d66cd(0x222)]});}[_0x40a3e1(0x1ed)](_0x4aaa5b){const _0x348eb5=_0x40a3e1;_0x597d7e['drawWith'](_0x4aaa5b,{'radius':_0x2c02a7[_0x348eb5(0x22c)],'fill':_0x2c02a7[_0x348eb5(0x284)],'stroke':_0x2c02a7[_0x348eb5(0x423)],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x426c96,_0x444c04){return function(_0x151fe3,_0x1a1a86){_0x444c04(_0x151fe3,_0x1a1a86,_0x426c96);};}function X(_0x2fcb20,_0x22f3dc,_0x2d5f58,_0x1c6a25){const _0x4e1623=_0x40a3e1;var _0x839ff3=arguments[_0x4e1623(0x46d)],_0x18069f=_0x839ff3<0x3?_0x22f3dc:_0x1c6a25===null?_0x1c6a25=Object[_0x4e1623(0x2c9)](_0x22f3dc,_0x2d5f58):_0x1c6a25,_0x3d4fcb;if(typeof Reflect==_0x4e1623(0x32c)&&typeof Reflect[_0x4e1623(0x22a)]==_0x4e1623(0x380))_0x18069f=Reflect[_0x4e1623(0x22a)](_0x2fcb20,_0x22f3dc,_0x2d5f58,_0x1c6a25);else{for(var _0x3f88df=_0x2fcb20[_0x4e1623(0x46d)]-0x1;_0x3f88df>=0x0;_0x3f88df--)(_0x3d4fcb=_0x2fcb20[_0x3f88df])&&(_0x18069f=(_0x839ff3<0x3?_0x3d4fcb(_0x18069f):_0x839ff3>0x3?_0x3d4fcb(_0x22f3dc,_0x2d5f58,_0x18069f):_0x3d4fcb(_0x22f3dc,_0x2d5f58))||_0x18069f);}return _0x839ff3>0x3&&_0x18069f&&Object[_0x4e1623(0x288)](_0x22f3dc,_0x2d5f58,_0x18069f),_0x18069f;}let Z=class extends _0x1f1ba9{constructor(_0x307d60,_0xe1873a,_0x5df784,_0x2915ec,_0x5dc381,_0x4cc6bd){const _0x58f025=_0x40a3e1;super(),this[_0x58f025(0x2f1)]=_0x307d60,this[_0x58f025(0x285)]=_0xe1873a,this[_0x58f025(0x1d3)]=_0x5df784,this[_0x58f025(0x414)]=_0x2915ec,this[_0x58f025(0x1c2)]=_0x5dc381,this[_0x58f025(0x3ed)]=_0x4cc6bd,q(this,_0x58f025(0x432),new Map()),this[_0x58f025(0x1c6)](this['_shapeFormulaService']['presentationChanged$'][_0x58f025(0x1ff)](_0x337a59=>{const _0x3cf06c=_0x58f025;var _0x3dc53e;(_0x3dc53e=this[_0x3cf06c(0x432)][_0x3cf06c(0x270)](this['_formulaKey'](_0x337a59[_0x3cf06c(0x43a)],_0x337a59[_0x3cf06c(0x330)],_0x337a59['shapeId'])))==null||_0x3dc53e['forEach'](_0xd957b2=>_0xd957b2[_0x3cf06c(0x43f)](_0x337a59[_0x3cf06c(0x21d)],_0x337a59['animationEnabled']));})),this[_0x58f025(0x1c6)](this[_0x58f025(0x2f1)][_0x58f025(0x2f6)][_0x58f025(0x1ff)](_0x4817eb=>{const _0x2b82b9=_0x58f025;_0x4817eb[_0x2b82b9(0x46b)](_0x24aafe=>{const _0x3f3434=_0x2b82b9;this['_shapeFormulaService'][_0x3f3434(0x1e2)]({'unitId':_0x24aafe[_0x3f3434(0x43a)],'subUnitId':_0x24aafe[_0x3f3434(0x330)],'shapeId':_0x24aafe[_0x3f3434(0x35b)]}),this[_0x3f3434(0x432)]['delete'](this[_0x3f3434(0x1c8)](_0x24aafe['unitId'],_0x24aafe[_0x3f3434(0x330)],_0x24aafe[_0x3f3434(0x35b)]));});}));}[_0x40a3e1(0x359)](_0x461d5c,_0xc48a2b,_0x2fa6a4){const _0x2c0cea=_0x40a3e1;let {transform:_0x2cb953,drawingType:_0x226354,srcRect:_0x4fdb4c,prstGeom:_0x46b686,groupId:_0x23ffa6,unitId:_0x56581e,subUnitId:_0x5cff17,drawingId:_0x29e28c,isMultiTransform:_0x24c463,transforms:_0x353246,hidden:_0xc3f1bc,selectable:_0x5d2a49}=_0x461d5c;if(_0x226354!==_0x204a86['DRAWING_SHAPE']||!this[_0x2c0cea(0x2f1)][_0x2c0cea(0x243)]()||_0x2cb953==null)return;let _0xb32390=this[_0x2c0cea(0x2f1)][_0x2c0cea(0x1b7)](),_0x392133=_0x24c463&&_0x353246?_0x353246:[_0x2cb953],_0x31168e=[];for(let _0x4bea31 of _0x392133){let {left:_0x3d81cd,top:_0x16a3f8,width:_0x106cb5,height:_0x569bd2,angle:_0xfaa9cf,flipX:_0x324f9e,flipY:_0x1aebf2,skewX:_0x50a21d,skewY:_0x4489ce}=_0x4bea31,_0x203610=_0x392133[_0x2c0cea(0x25e)](_0x4bea31),_0x19780a=_0x4eca2a({'unitId':_0x56581e,'subUnitId':_0x5cff17,'drawingId':_0x29e28c},_0x24c463?_0x203610:void 0x0),_0x293eab=_0xc48a2b[_0x2c0cea(0x2d2)](_0x19780a);if(_0x293eab!=null){let _0x17a898={'unitId':_0x56581e,'subUnitId':_0x5cff17,'shapeId':_0x29e28c};_0x293eab instanceof J&&this[_0x2c0cea(0x3de)](_0x293eab,_0x17a898),_0x293eab['transformByState']({'left':_0x3d81cd,'top':_0x16a3f8,'width':_0x106cb5,'height':_0x569bd2,'angle':_0xfaa9cf,'flipX':_0x324f9e,'flipY':_0x1aebf2,'skewX':_0x50a21d,'skewY':_0x4489ce});continue;}let _0x464b10=this[_0x2c0cea(0x2f1)][_0x2c0cea(0x310)](_0x56581e,_0x5cff17),_0x13e7dd=_0x464b10[_0x2c0cea(0x25e)](_0x29e28c);if(_0xc48a2b[_0x2c0cea(0x2d2)](_0x19780a)||!this['_drawingManagerService'][_0x2c0cea(0x243)]())continue;let _0x440413=this['_sheetsShapeService'][_0x2c0cea(0x3f9)](_0x56581e,_0x5cff17,_0x29e28c);if(!_0x440413)continue;let _0x4cc752=_0x421dc8(_0x440413[_0x2c0cea(0x3e1)]())?{..._0xc2fb67,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0xc2fb67,_0x3722ac=_0x440413[_0x2c0cea(0x295)]()[_0x2c0cea(0x40f)],_0x3edc98={'unitId':_0x56581e,'subUnitId':_0x5cff17,'shapeId':_0x29e28c};_0x3722ac&&this[_0x2c0cea(0x3ed)][_0x2c0cea(0x3f1)](_0x3edc98,_0x3722ac);let _0x4c39ee=new J(_0x19780a,{..._0x4bea31,'zIndex':_0x13e7dd===-0x1?_0x464b10[_0x2c0cea(0x46d)]-0x1:_0x13e7dd,'shapeModel':_0x440413,'localeService':this[_0x2c0cea(0x1d3)],'shapeId':_0x29e28c,'unitId':_0x56581e,'subUnitId':_0x5cff17,'visible':_0xc3f1bc!==!0x0,'evented':_0x5d2a49!==!0x1,'formulaPresentation':_0x3722ac?this['_shapeFormulaService'][_0x2c0cea(0x22b)](_0x3edc98):void 0x0,'animateFormulaPresentation':(_0x3722ac==null?void 0x0:_0x3722ac['animationEnabled'])!==!0x1,'transformerConfig':_0x4cc752});if(_0x3722ac){let _0x2b771b=this['_formulaKey'](_0x56581e,_0x5cff17,_0x29e28c),_0x575d04=this[_0x2c0cea(0x432)][_0x2c0cea(0x270)](_0x2b771b)??new Set();_0x575d04[_0x2c0cea(0x38e)](_0x4c39ee),this[_0x2c0cea(0x432)]['set'](_0x2b771b,_0x575d04);}_0xc48a2b[_0x2c0cea(0x3ae)](_0x4c39ee,_0x1301e0),_0xb32390&&_0xc48a2b[_0x2c0cea(0x47b)](_0x4c39ee),_0x23ffa6&&_0x4218fd({'drawingId':_0x23ffa6,'unitId':_0x56581e,'subUnitId':_0x5cff17},_0x4c39ee,_0xc48a2b,this['_drawingManagerService']),_0x46b686!=null&&_0x4c39ee['setPrstGeom'](_0x46b686),_0x4fdb4c!=null&&_0x4c39ee['setSrcRect'](_0x4fdb4c);let _0x2c895e=this[_0x2c0cea(0x2fe)](_0x4c39ee,_0x440413[_0x2c0cea(0x295)]());if(_0x2c895e){var _0x156ae4;_0x2fa6a4==null||(_0x156ae4=_0x2fa6a4[_0x2c0cea(0x23f)])==null||_0x156ae4['add'](_0x2c895e);}_0x31168e['push'](_0x4c39ee);}return _0x31168e;}[_0x40a3e1(0x1c8)](_0x2c59f0,_0x35581a,_0xb16851){return _0x2c59f0+'\x00'+_0x35581a+'\x00'+_0xb16851;}[_0x40a3e1(0x3de)](_0x1ad2ec,_0x25e372){const _0x36611c=_0x40a3e1;let _0x293af9=this[_0x36611c(0x285)][_0x36611c(0x3f9)](_0x25e372[_0x36611c(0x43a)],_0x25e372['subUnitId'],_0x25e372['shapeId']),_0xcad65=_0x293af9==null?void 0x0:_0x293af9['getShapeData']()['formulaBinding'],_0xaa8741=this[_0x36611c(0x1c8)](_0x25e372[_0x36611c(0x43a)],_0x25e372[_0x36611c(0x330)],_0x25e372[_0x36611c(0x464)]);if(_0xcad65){this[_0x36611c(0x3ed)][_0x36611c(0x3f1)](_0x25e372,_0xcad65);let _0x36773=this[_0x36611c(0x432)][_0x36611c(0x270)](_0xaa8741)??new Set();_0x36773[_0x36611c(0x38e)](_0x1ad2ec),this[_0x36611c(0x432)]['set'](_0xaa8741,_0x36773);}else{var _0x798e84;this['_shapeFormulaService'][_0x36611c(0x1e2)](_0x25e372),(_0x798e84=this[_0x36611c(0x432)][_0x36611c(0x270)](_0xaa8741))==null||_0x798e84['delete'](_0x1ad2ec);}_0x1ad2ec[_0x36611c(0x43f)](_0xcad65?this[_0x36611c(0x3ed)][_0x36611c(0x22b)](_0x25e372):void 0x0,(_0xcad65==null?void 0x0:_0xcad65[_0x36611c(0x3a8)])!==!0x1);}[_0x40a3e1(0x3dd)](_0x346a14){const _0x5b5963=_0x40a3e1;let _0x882b71=_0x346a14[_0x5b5963(0x450)]['getShapeData'](),_0x2da268=_0x882b71[_0x5b5963(0x2fb)];if(!_0x2da268||_0x2da268[_0x5b5963(0x2bb)]!==_0xbc8bca[_0x5b5963(0x22e)]||!_0x2da268['fillImageSource']){_0x346a14[_0x5b5963(0x3b9)](void 0x0);return;}this[_0x5b5963(0x2fe)](_0x346a14,_0x882b71);}[_0x40a3e1(0x2fe)](_0x124d81,_0x5bb5ce){const _0x2f408d=_0x40a3e1;let _0x1dc9eb=_0x5bb5ce[_0x2f408d(0x2fb)];if(!_0x1dc9eb||_0x1dc9eb[_0x2f408d(0x2bb)]!==_0xbc8bca['PictureFill']||!_0x1dc9eb[_0x2f408d(0x217)])return;let _0xd9298a=_0x1dc9eb[_0x2f408d(0x217)],_0x593c65=_0x1dc9eb[_0x2f408d(0x2e1)]??_0x58be7c[_0x2f408d(0x260)],_0x47917d=this['_imageIoService'][_0x2f408d(0x1e5)](_0xd9298a,_0x593c65);if(_0x47917d){_0x124d81[_0x2f408d(0x3b9)](_0x47917d);return;}return this[_0x2f408d(0x205)](_0x124d81,_0xd9298a,_0x593c65);}async['_loadAndSetImage'](_0x303f58,_0x3009ab,_0x44f3c4){const _0x2333bb=_0x40a3e1;let _0x431f0f;try{if(_0x44f3c4===_0x58be7c[_0x2333bb(0x3c5)])_0x431f0f=await this[_0x2333bb(0x414)][_0x2333bb(0x3c7)](_0x3009ab);else{if(_0x44f3c4===_0x58be7c[_0x2333bb(0x260)])try{_0x431f0f=await this[_0x2333bb(0x1c2)][_0x2333bb(0x3c7)](_0x3009ab);}catch{_0x431f0f=_0x3009ab;}else _0x431f0f=_0x3009ab;}}catch(_0x407f44){console[_0x2333bb(0x27a)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x407f44);return;}await new Promise(_0x26c4b0=>{const _0x4c2f6d=_0x2333bb;let _0x5755a8=new window[(_0x4c2f6d(0x459))]();_0x5755a8[_0x4c2f6d(0x2b9)]=()=>{const _0x49576a=_0x4c2f6d;this['_imageIoService'][_0x49576a(0x440)](_0x3009ab,_0x44f3c4,_0x5755a8),_0x303f58[_0x49576a(0x3b9)](_0x5755a8),_0x26c4b0();},_0x5755a8[_0x4c2f6d(0x1e4)]=()=>{const _0x434fc=_0x4c2f6d;console['error'](_0x434fc(0x333),_0x3009ab),_0x26c4b0();},_0x5755a8[_0x4c2f6d(0x39d)]=_0x431f0f;});}};Z=X([Y(0x0,_0x2d58e3),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x34f57e(_0x1fc669)),Y(0x3,_0x227de8),Y(0x4,_0x4646eb),Y(0x5,_0x34f57e(_0x343dc9))],Z);let Pr=class extends _0x1f1ba9{constructor(_0x349867,_0x1ea8ab,_0x35a104,_0x4b7262,_0x4ed905,_0xaf8932){const _0x2299bd=_0x40a3e1;super(),this[_0x2299bd(0x2f1)]=_0x349867,this['_sheetsShapeService']=_0x1ea8ab,this[_0x2299bd(0x258)]=_0x35a104,this['_sheetDrawingShapeRenderController']=_0x4b7262,this['_univerInstanceService']=_0x4ed905,this[_0x2299bd(0x279)]=_0xaf8932,q(this,_0x2299bd(0x27c),null),q(this,'_unitId',null),q(this,'_subUnitId',null),q(this,_0x2299bd(0x408),void 0x0),q(this,_0x2299bd(0x203),[]),q(this,_0x2299bd(0x35c),0x0),q(this,_0x2299bd(0x1f7),0x0),q(this,'_baseShapeWidth',0x0),q(this,_0x2299bd(0x40a),0x0),q(this,_0x2299bd(0x3f8),!0x1),q(this,_0x2299bd(0x26d),void 0x0),q(this,_0x2299bd(0x1d7),void 0x0),q(this,_0x2299bd(0x472),void 0x0),q(this,_0x2299bd(0x395),void 0x0),q(this,_0x2299bd(0x3d6),!0x1),this[_0x2299bd(0x28e)](),this[_0x2299bd(0x451)]();}['_getShapeAdjustPointListById'](_0x265379,_0x34f852,_0x235c7c){const _0x1acf88=_0x40a3e1;let _0x507964=this[_0x1acf88(0x285)][_0x1acf88(0x3f9)](_0x265379,_0x34f852,_0x235c7c);if(_0x507964)return _0x507964[_0x1acf88(0x3b2)]();}[_0x40a3e1(0x377)](){const _0x5e5ca0=_0x40a3e1;this[_0x5e5ca0(0x3a2)]();}[_0x40a3e1(0x1e9)](){const _0x13bc5c=_0x40a3e1;this[_0x13bc5c(0x3f0)](!0x0);}['setShouldShowAdjust'](_0x3152b7){const _0x1aed7d=_0x40a3e1;this[_0x1aed7d(0x3d6)]=_0x3152b7;}[_0x40a3e1(0x404)](_0x71f1a6,_0x55e003,_0x172cb1,_0x437a46){const _0x5b1ac4=_0x40a3e1;let _0x2b1826=this['_sheetsShapeService'][_0x5b1ac4(0x3f9)](_0x71f1a6,_0x55e003,_0x172cb1);if(_0x2b1826)return _0x2b1826[_0x5b1ac4(0x42e)](_0x437a46);}[_0x40a3e1(0x2a7)](_0x4412eb=!0x1){const _0x4ff82d=_0x40a3e1;if(this[_0x4ff82d(0x34f)]===null||this[_0x4ff82d(0x465)]===null||this[_0x4ff82d(0x27c)]===null)return;let _0x589037=this['_renderManagerService']['getRenderUnitById'](this[_0x4ff82d(0x34f)]);if(!_0x589037||!_0x589037[_0x4ff82d(0x433)](_0x22bccb)[_0x4ff82d(0x23e)]())return;let {scene:_0x1ce0ab}=_0x589037,_0x4c9253={'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x4ff82d(0x27c)]},_0xe64eb9=this[_0x4ff82d(0x2f1)]['getDrawingByParam'](_0x4c9253),{transform:_0x2fcc39}=_0xe64eb9;if(!_0x2fcc39||_0xe64eb9[_0x4ff82d(0x221)]!==_0x204a86[_0x4ff82d(0x41a)])return;let {left:_0x51bb68,top:_0x3a7200,width:_0x432ad4,height:_0x43f0a1,flipX:_0x21a940,flipY:_0x5da3d0,angle:_0x369434=0x0}=_0x2fcc39;if(_0x51bb68===void 0x0||_0x3a7200===void 0x0)return;if(_0x4412eb){let _0x2239b9=this['_sheetsShapeService']['getShapeModel'](this['_unitId'],this[_0x4ff82d(0x465)],this[_0x4ff82d(0x27c)]);_0x2239b9==null||_0x2239b9[_0x4ff82d(0x2e0)]({'width':_0x432ad4??0x0,'height':_0x43f0a1??0x0}),this[_0x4ff82d(0x408)]=_0x2239b9==null?void 0x0:_0x2239b9[_0x4ff82d(0x3b2)]();}let _0x53461f=this['_activeShapeAdjustPointList'];for(let _0x131329=0x0;_0x131329<_0x53461f[_0x4ff82d(0x46d)];_0x131329++){let _0x56f8c7=_0x53461f[_0x131329],_0x4a1b96=_0x56f8c7['x'],_0xc4084f=_0x56f8c7['y'];if(_0x21a940&&(_0x4a1b96=(_0x432ad4||0x0)-_0x4a1b96),_0x5da3d0&&(_0xc4084f=(_0x43f0a1||0x0)-_0xc4084f),_0x369434!==0x0){let _0xf50673=(_0x432ad4||0x0)/0x2,_0x3d313f=(_0x43f0a1||0x0)/0x2,_0x4758bb=_0x369434*Math['PI']/0xb4,_0x9d37b2=Math[_0x4ff82d(0x3d2)](_0x4758bb),_0x2e22d4=Math[_0x4ff82d(0x332)](_0x4758bb),_0x3e8dbe=_0x4a1b96-_0xf50673,_0x3c5ef5=_0xc4084f-_0x3d313f;_0x4a1b96=_0xf50673+(_0x3e8dbe*_0x9d37b2-_0x3c5ef5*_0x2e22d4),_0xc4084f=_0x3d313f+(_0x3e8dbe*_0x2e22d4+_0x3c5ef5*_0x9d37b2);}let _0x5b6365={'x':_0x4a1b96,'y':_0xc4084f,'adjName':_0x56f8c7[_0x4ff82d(0x391)]};this[_0x4ff82d(0x2c7)](_0x1ce0ab,_0x5b6365,_0x5b6365['adjName'],_0x51bb68,_0x3a7200,this[_0x4ff82d(0x34f)],this[_0x4ff82d(0x465)]);}}[_0x40a3e1(0x3f0)](_0x1320db=!0x1){const _0x378dc7=_0x40a3e1;_0x1320db&&(this[_0x378dc7(0x3a2)](),this['_createShapeAdjustControls'](_0x1320db));}[_0x40a3e1(0x2c7)](_0xe83146,_0x460172,_0x5624ca,_0x4ef103,_0x5e2dc7,_0x22f93b,_0x13fb25){const _0xa15974=_0x40a3e1;if(!this[_0xa15974(0x27c)])return;let _0x3b48d5=_0xe83146['getObjectIncludeInGroup']('shape-adjust-point-'+this[_0xa15974(0x27c)]+'-'+_0x5624ca);if(_0x3b48d5){_0x3b48d5[_0xa15974(0x3a6)]({'left':_0x460172['x']+_0x4ef103-_0x2c02a7[_0xa15974(0x22c)],'top':_0x460172['y']+_0x5e2dc7-_0x2c02a7[_0xa15974(0x22c)]});return;}let _0x3ba40d={'left':_0x460172['x']+_0x4ef103-_0x2c02a7['adjHandleSize'],'top':_0x460172['y']+_0x5e2dc7-_0x2c02a7[_0xa15974(0x22c)],'adjName':_0x5624ca,'shapeId':this[_0xa15974(0x27c)],'unitId':_0x22f93b,'subUnitId':_0x13fb25,'width':_0x2c02a7[_0xa15974(0x22c)]+0x8,'height':_0x2c02a7['adjHandleSize']+0x8,'zIndex':_0x1301e0+0x1,'evented':!0x0},_0x57fc99=new Nr(_0xa15974(0x21c)+this['_activeShapeId']+'-'+_0x5624ca,_0x3ba40d);this[_0xa15974(0x203)][_0xa15974(0x346)](_0x57fc99),this[_0xa15974(0x286)](_0x57fc99,_0xe83146,_0x5624ca),_0xe83146['addObject'](_0x57fc99,_0x1301e0+0x1);}[_0x40a3e1(0x3a2)](){const _0x22d3ad=_0x40a3e1;this[_0x22d3ad(0x203)][_0x22d3ad(0x46d)]!==0x0&&(this[_0x22d3ad(0x203)][_0x22d3ad(0x46b)](_0x2bddd0=>{const _0x4ffa03=_0x22d3ad;_0x2bddd0[_0x4ffa03(0x223)]();}),this[_0x22d3ad(0x203)]=[]);}[_0x40a3e1(0x2b1)](){this['_createShapeAdjustControls']();}['_getScrollInfo'](_0x5a8897,_0x16cf87){const _0x2a7283=_0x40a3e1;var _0x3790bf;let _0x1c932d={'x':0x0,'y':0x0};if(!_0x5a8897||!_0x16cf87)return _0x1c932d;let _0x4840a2=this['_renderManagerService']['getRenderUnitById'](_0x5a8897);if(!_0x4840a2||!_0x4840a2['with'](_0x22bccb)['getSkeleton'](_0x16cf87))return _0x1c932d;let _0x1094c8=_0x4840a2[_0x2a7283(0x433)](_0x1d24d6),_0x5db560=_0x1094c8==null?void 0x0:_0x1094c8[_0x2a7283(0x369)]();if(!_0x5db560)return _0x1c932d;let _0x1a1ba5=(_0x3790bf=this[_0x2a7283(0x2c3)][_0x2a7283(0x2fd)](_0x5a8897))==null?void 0x0:_0x3790bf[_0x2a7283(0x475)](_0x16cf87);if(!_0x1a1ba5)return _0x1c932d;let _0x47b3df=_0xf578ae(_0x5db560['sheetViewStartRow'],_0x5db560['sheetViewStartColumn'],_0x4840a2[_0x2a7283(0x25b)],_0x1a1ba5);return _0x47b3df?{'x':_0x47b3df[_0x2a7283(0x253)],'y':_0x47b3df[_0x2a7283(0x393)]}:_0x1c932d;}[_0x40a3e1(0x454)](_0x4ed136,_0x4b6d58){const _0xd4e94a=_0x40a3e1;var _0x2c4a79;let _0x67d2b4=(_0x2c4a79=this[_0xd4e94a(0x2c3)][_0xd4e94a(0x2fd)](_0x4ed136))==null?void 0x0:_0x2c4a79[_0xd4e94a(0x475)](_0x4b6d58);return(_0x67d2b4==null?void 0x0:_0x67d2b4[_0xd4e94a(0x474)]())??0x1;}[_0x40a3e1(0x286)](_0xb4990b,_0x2e4828,_0x33d698){const _0x757556=_0x40a3e1;this[_0x757556(0x1c6)](_0x35229e(_0xb4990b[_0x757556(0x200)][_0x757556(0x42f)]((_0x42d2d3,_0x2cb9ea)=>{const _0x90a069=_0x757556;var _0x40f686,_0x945445,_0x46c3d1,_0x28bd24;let _0x52ca53=_0xb4990b[_0x90a069(0x2fc)]();this[_0x90a069(0x26d)]=this['_getShapeAdjustInfosById'](_0x52ca53[_0x90a069(0x43a)],_0x52ca53['subUnitId'],_0x52ca53[_0x90a069(0x35b)],_0x33d698),this[_0x90a069(0x1d7)]=this[_0x90a069(0x285)][_0x90a069(0x3f9)](_0x52ca53[_0x90a069(0x43a)],_0x52ca53[_0x90a069(0x330)],_0x52ca53[_0x90a069(0x35b)]);let _0x155da9=this[_0x90a069(0x2f1)][_0x90a069(0x31f)]({'unitId':this[_0x90a069(0x34f)],'subUnitId':this[_0x90a069(0x465)],'drawingId':this[_0x90a069(0x27c)]}),{transform:_0x5df69d}=_0x155da9;if(_0x5df69d){let {left:_0x5e9333,top:_0x47914d,width:_0x46f61b,height:_0x37a990}=_0x5df69d;this[_0x90a069(0x35c)]=_0x5e9333||0x0,this[_0x90a069(0x1f7)]=_0x47914d||0x0,this[_0x90a069(0x235)]=_0x46f61b||0x0,this[_0x90a069(0x40a)]=_0x37a990||0x0;}let _0x1bd5b6=!!((_0x40f686=_0x155da9[_0x90a069(0x412)])!=null&&_0x40f686[_0x90a069(0x405)]),_0x879075=!!((_0x945445=_0x155da9[_0x90a069(0x412)])!=null&&_0x945445[_0x90a069(0x305)]),_0x2d3585=((_0x46c3d1=_0x155da9[_0x90a069(0x412)])==null?void 0x0:_0x46c3d1[_0x90a069(0x2f9)])||0x0;this['_isStartAdjusting']=!0x0,_0x2e4828[_0x90a069(0x29c)]();let _0x59da5a={...((_0x28bd24=this[_0x90a069(0x26d)])==null?void 0x0:_0x28bd24[_0x90a069(0x2b2)])??{}};this[_0x90a069(0x472)]=_0x2e4828[_0x90a069(0x427)][_0x90a069(0x42f)]((_0x46062f,_0x17c2bf)=>{const _0x3fb582=_0x90a069;if(!this[_0x3fb582(0x3f8)])return;let {offsetX:_0x17477c,offsetY:_0x4388b8}=_0x46062f,_0x11b6af=this['_activeAdjustInfo'];if(this[_0x3fb582(0x1d7)]&&_0x11b6af){_0x2e4828['disableObjectsEvent'](),_0x2e4828['setCursor'](_0x27b168['CROSSHAIR']);let _0x48d785={'left':0x0,'top':0x0,'width':this[_0x3fb582(0x235)],'height':this[_0x3fb582(0x40a)]},_0x156a70=this[_0x3fb582(0x3d4)](this['_unitId'],this[_0x3fb582(0x465)]),_0x1e14a5=this[_0x3fb582(0x454)](this[_0x3fb582(0x34f)],this[_0x3fb582(0x465)]),_0x408bf2=_0x17477c/_0x1e14a5+_0x156a70['x']-this[_0x3fb582(0x35c)],_0x14bd0d=_0x4388b8/_0x1e14a5+_0x156a70['y']-this['_baseShapeTop'];if(_0x2d3585!==0x0){let _0x272b90=this[_0x3fb582(0x235)]/0x2,_0x51428d=this['_baseShapeHeight']/0x2,_0x22768d=_0x2d3585*Math['PI']/0xb4,_0x95045b=Math[_0x3fb582(0x3d2)](_0x22768d),_0x5aee4b=Math[_0x3fb582(0x332)](_0x22768d),_0x73ffa0=_0x408bf2-_0x272b90,_0x532e51=_0x14bd0d-_0x51428d;_0x408bf2=_0x272b90+(_0x73ffa0*_0x95045b+_0x532e51*_0x5aee4b),_0x14bd0d=_0x51428d+(-_0x73ffa0*_0x5aee4b+_0x532e51*_0x95045b);}_0x1bd5b6&&(_0x408bf2=this[_0x3fb582(0x235)]-_0x408bf2),_0x879075&&(_0x14bd0d=this[_0x3fb582(0x40a)]-_0x14bd0d);let _0x55e98e={'x':_0x408bf2,'y':_0x14bd0d},_0x2e0c22=this['_activeShapeModel'][_0x3fb582(0x302)](_0x48d785,_0x55e98e,_0x11b6af,_0x1bd5b6,_0x879075);if(Object[_0x3fb582(0x413)](_0x2e0c22)[_0x3fb582(0x46d)]===0x0)return;for(let [_0x4f35a3,_0x580334]of Object['entries'](_0x2e0c22))this[_0x3fb582(0x1d7)][_0x3fb582(0x1fc)](_0x4f35a3,_0x580334);this['_activeShapeModel'][_0x3fb582(0x2e0)]({'width':this[_0x3fb582(0x235)],'height':this[_0x3fb582(0x40a)]});let _0x51bc2a=this[_0x3fb582(0x2f1)][_0x3fb582(0x31f)]({'unitId':_0x52ca53[_0x3fb582(0x43a)],'subUnitId':_0x52ca53['subUnitId'],'drawingId':_0x52ca53[_0x3fb582(0x35b)]});_0x51bc2a&&(this[_0x3fb582(0x2c0)]['renderDrawingShape'](_0x51bc2a,_0x2e4828),this[_0x3fb582(0x408)]=this[_0x3fb582(0x46c)](_0x52ca53['unitId'],_0x52ca53[_0x3fb582(0x330)],_0x52ca53['drawingId']),this['_updateAdjustControlPositions']());}_0x17c2bf[_0x3fb582(0x204)]();}),this[_0x90a069(0x395)]=_0x2e4828[_0x90a069(0x304)][_0x90a069(0x42f)]((_0x4185b5,_0x5f3bc5)=>{const _0xc00013=_0x90a069;this[_0xc00013(0x472)]['unsubscribe'](),this[_0xc00013(0x395)][_0xc00013(0x2a2)](),_0x2e4828[_0xc00013(0x39e)]();let _0x458c6a=this['_activeAdjustInfo'];if(_0x458c6a){let _0x6651bb=_0x52ca53[_0xc00013(0x43a)],_0x3f0529=_0x52ca53[_0xc00013(0x330)],_0x59fe97=_0x52ca53[_0xc00013(0x35b)],_0x49b473={};for(let _0x262371 of Object['keys'](_0x458c6a['currentAdjustValues'])){var _0x55e274;let _0x13212e=(_0x55e274=this[_0xc00013(0x1d7)])==null?void 0x0:_0x55e274[_0xc00013(0x1d1)](_0x262371);_0x13212e!==void 0x0&&(_0x49b473[_0x262371]=_0x13212e);}Object[_0xc00013(0x413)](_0x49b473)[_0xc00013(0x46d)]>0x0&&Dr(this[_0xc00013(0x279)],_0x6651bb,_0x3f0529,_0x59fe97,{'oldShapeData':{'adjustValues':_0x59da5a}},{'adjustValues':_0x49b473});}this['_activeAdjustInfo']=void 0x0,this[_0xc00013(0x1d7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x5f3bc5[_0xc00013(0x204)](),_0x2e4828[_0xc00013(0x3fc)]();}),_0x2cb9ea[_0x90a069(0x204)]();})));}[_0x40a3e1(0x451)](){const _0x186689=_0x40a3e1;let _0x3c2dd3=this[_0x186689(0x2c3)][_0x186689(0x293)](_0x2f72d4[_0x186689(0x2ce)]);this[_0x186689(0x1c6)](_0x3c2dd3[_0x186689(0x300)](_0x59c42a(_0x46bf3d=>_0x46bf3d?_0x46bf3d['activeSheet$'][_0x186689(0x300)](_0x59c42a(_0x32f8cc=>{const _0x353853=_0x186689;if(!_0x32f8cc)return _0x50a9a5;let _0x5def04=_0x46bf3d[_0x353853(0x2ae)](),_0x1ebb04=this[_0x353853(0x258)][_0x353853(0x2cf)](_0x5def04),_0xab1723=_0x1ebb04==null?void 0x0:_0x1ebb04[_0x353853(0x25b)];return _0xab1723?_0x3cb66b(_0xab1723):_0x50a9a5;})):_0x50a9a5))['subscribe'](_0x49cc85=>{const _0x397d09=_0x186689;let _0x53ab96=_0x49cc85[_0x397d09(0x282)]();this[_0x397d09(0x1c6)](_0x49cc85[_0x397d09(0x427)][_0x397d09(0x42f)](()=>{this['_isShouldShowDrawingShapeAdjust'];})),this['disposeWithMe'](_0x53ab96['changeStart$']['subscribe'](_0x28fd07=>{const _0x5ac830=_0x397d09;let {objects:_0x352130}=_0x28fd07;this[_0x5ac830(0x2a7)](),_0x352130!==null&&_0x352130['size']===0x1&&_0x352130['values']()[_0x5ac830(0x24c)]()[_0x5ac830(0x437)]instanceof J&&this[_0x5ac830(0x32f)](!0x0);})),this['disposeWithMe'](_0x53ab96[_0x397d09(0x303)]['subscribe'](()=>{const _0x3f40d3=_0x397d09;this['_isShouldShowDrawingShapeAdjust']&&this[_0x3f40d3(0x3a2)]();})),this[_0x397d09(0x1c6)](_0x49cc85[_0x397d09(0x304)][_0x397d09(0x42f)](()=>{const _0x45ad98=_0x397d09;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x45ad98(0x32f)](!0x1),this[_0x45ad98(0x2a7)]());})),this[_0x397d09(0x1c6)](_0x53ab96[_0x397d09(0x44f)][_0x397d09(0x1ff)](()=>{const _0x2e4eee=_0x397d09;this[_0x2e4eee(0x34f)]&&this['_subUnitId']&&this[_0x2e4eee(0x27c)]&&this[_0x2e4eee(0x2f1)]['getDrawingByParam']({'unitId':this[_0x2e4eee(0x34f)],'subUnitId':this[_0x2e4eee(0x465)],'drawingId':this[_0x2e4eee(0x27c)]})&&(this['_activeShapeAdjustPointList']=this['_getShapeAdjustPointListById'](this[_0x2e4eee(0x34f)],this['_subUnitId'],this[_0x2e4eee(0x27c)]),this[_0x2e4eee(0x2b1)]());}));}));}[_0x40a3e1(0x28e)](){const _0x230eb7=_0x40a3e1;this[_0x230eb7(0x1c6)](this[_0x230eb7(0x279)][_0x230eb7(0x3a7)](_0x219d48=>{const _0x16a850=_0x230eb7;if(_0x219d48['id']!==_0x2abe23['id'])return;let {unitId:_0x56ca6f,subUnitId:_0xeced0,shapeId:_0x51c669}=_0x219d48[_0x16a850(0x1fa)];_0x56ca6f===this[_0x16a850(0x34f)]&&_0xeced0===this[_0x16a850(0x465)]&&_0x51c669===this['_activeShapeId']&&this[_0x16a850(0x1e9)]();})),this['disposeWithMe'](this[_0x230eb7(0x2f1)]['focus$'][_0x230eb7(0x1ff)](_0x5f58a4=>{const _0x9b3a70=_0x230eb7;if(_0x5f58a4[_0x9b3a70(0x46d)]===0x1){let _0x1a76e2=_0x5f58a4[0x0];if(_0x1a76e2['drawingType']===_0x204a86[_0x9b3a70(0x41a)]&&this[_0x9b3a70(0x2c3)]['getUnitType'](_0x1a76e2['unitId'])===_0x2f72d4['UNIVER_SHEET']){this[_0x9b3a70(0x27c)]=_0x1a76e2[_0x9b3a70(0x35b)];let {unitId:_0x386df2,subUnitId:_0xf8efc9}=_0x1a76e2;this[_0x9b3a70(0x408)]=this[_0x9b3a70(0x46c)](_0x386df2,_0xf8efc9,this[_0x9b3a70(0x27c)]),this[_0x9b3a70(0x34f)]=_0x386df2,this[_0x9b3a70(0x465)]=_0xf8efc9,this[_0x9b3a70(0x3a2)](),this[_0x9b3a70(0x2a7)]();return;}}this['_activeShapeId']=null,this[_0x9b3a70(0x408)]=void 0x0,this[_0x9b3a70(0x34f)]=null,this[_0x9b3a70(0x465)]=null,this['_clearShapeAdjustControls']();})),this[_0x230eb7(0x1c6)](this[_0x230eb7(0x2f1)][_0x230eb7(0x2a3)][_0x230eb7(0x1ff)](_0x51a85d=>{const _0x5bb0a8=_0x230eb7;if(_0x51a85d[_0x5bb0a8(0x46d)]===0x1){var _0x1bd597;let _0x25b213=_0x51a85d[0x0];((_0x1bd597=this[_0x5bb0a8(0x2f1)][_0x5bb0a8(0x31f)](_0x25b213))==null?void 0x0:_0x1bd597[_0x5bb0a8(0x221)])===_0x204a86[_0x5bb0a8(0x41a)]&&this[_0x5bb0a8(0x3f0)](!0x0);}})),this[_0x230eb7(0x1c6)](this[_0x230eb7(0x2f1)][_0x230eb7(0x2f6)]['subscribe'](_0x588869=>{const _0x1b214d=_0x230eb7;for(let _0x3fce02 of _0x588869)this[_0x1b214d(0x27c)]===_0x3fce02[_0x1b214d(0x35b)]&&(this['_activeShapeId']=null,this[_0x1b214d(0x408)]=void 0x0,this[_0x1b214d(0x34f)]=null,this[_0x1b214d(0x465)]=null,this[_0x1b214d(0x3a2)]());}));}};Pr=X([Y(0x0,_0x2d58e3),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x34f57e(_0x5a17c7)),Y(0x3,_0x34f57e(Z)),Y(0x4,_0x3a3cc8),Y(0x5,_0x3a4817)],Pr);const Fr={'id':_0x40a3e1(0x25c),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0x4e48a1,_0x1831de)=>{const _0x46b9f0=_0x40a3e1;let _0x891345=_0x4e48a1[_0x46b9f0(0x270)](_0x2d58e3),_0x225d45=_0x4e48a1[_0x46b9f0(0x270)](_0x5a17c7),_0xe960a3=_0x4e48a1['get'](Pr);if(_0x1831de==null)return!0x0;if(_0x1831de[_0x46b9f0(0x46d)]>0x0){var _0x542110;let _0x42692d=(_0x542110=_0x225d45[_0x46b9f0(0x2cf)](_0x1831de[0x0]['unitId']))==null?void 0x0:_0x542110[_0x46b9f0(0x25b)];if(_0x42692d){let {unitId:_0x4b1962,subUnitId:_0x3cef61,drawingId:_0x3a8b71}=_0x1831de[0x0],_0x2b66d7=_0x4eca2a({'unitId':_0x4b1962,'subUnitId':_0x3cef61,'drawingId':_0x3a8b71},void 0x0),_0x46f7d7=_0x42692d[_0x46b9f0(0x2d2)](_0x2b66d7);if(_0x46f7d7){var _0x34a9c3;(_0x34a9c3=_0x225d45[_0x46b9f0(0x2cf)](_0x1831de[0x0][_0x46b9f0(0x43a)]))==null||(_0x34a9c3=_0x34a9c3[_0x46b9f0(0x25b)][_0x46b9f0(0x401)]())==null||_0x34a9c3[_0x46b9f0(0x476)](_0x46f7d7);}}_0x891345[_0x46b9f0(0x40e)](_0x1831de),_0xe960a3[_0x46b9f0(0x32f)](!0x1);}return!0x0;}},Ir={'type':_0x47a509['COMMAND'],'id':'sheet.command.menu-insert-shape','handler':async(_0x54550a,_0x4c4cae)=>{const _0x2ff711=_0x40a3e1;let _0x17e502=_0x1eaf70(_0x54550a[_0x2ff711(0x270)](_0x3a3cc8));if(!_0x17e502)return!0x1;let _0x37a748=_0x54550a['get'](_0x28680f)[_0x2ff711(0x3fb)]();if(!_0x37a748)return!0x1;let _0x234e58=_0x54550a[_0x2ff711(0x270)](_0x3a4817),{unitId:_0x47ba13,subUnitId:_0x2ac9a6}=_0x17e502,{value:_0x1ac8f7,enhanceParams:_0x5b22bb}=_0x4c4cae,{range:_0x53a374}=_0x37a748,_0x452be9={'unitId':_0x47ba13,'subUnitId':_0x2ac9a6,'shapeType':_0x1ac8f7,'range':_0x53a374,'shapeId':_0x57f70d()};if(_0x5b22bb){let _0x2093ff=_0x421dc8(_0x1ac8f7),_0x355b9a=_0x1ac8f7===_0x27efd2[_0x2ff711(0x469)];_0x2093ff&&(_0x5b22bb[_0x2ff711(0x232)]||_0x5b22bb['endArrow'])&&(_0x452be9[_0x2ff711(0x1eb)]={'ln':{'startArrow':_0x5b22bb[_0x2ff711(0x232)]?{'type':_0x5a007b[_0x2ff711(0x1b9)],'size':_0x49eb54[_0x2ff711(0x27b)]}:void 0x0,'endArrow':_0x5b22bb[_0x2ff711(0x1e1)]?{'type':_0x5a007b['Arrow'],'size':_0x49eb54[_0x2ff711(0x2b8)]}:void 0x0}}),_0x355b9a&&(_0x5b22bb[_0x2ff711(0x3c1)]||_0x5b22bb['vertical'])&&(_0x452be9[_0x2ff711(0x1eb)]=_0x57c405({'fill':{'fillType':_0xbc8bca['SolidFill'],'color':_0x2ff711(0x33b)},'isHorizontal':!!_0x5b22bb[_0x2ff711(0x3c1)],'stroke':{'lineStrokeType':_0x4ccbce[_0x2ff711(0x339)],'width':0x1,'color':_0x2ff711(0x29a)}}));}let _0x10962e=_0x234e58['syncExecuteCommand'](_0x68b808['id'],_0x452be9);return setTimeout(()=>{const _0x462a3f=_0x2ff711;_0x234e58[_0x462a3f(0x2d5)](Fr['id'],[{'unitId':_0x47ba13,'subUnitId':_0x2ac9a6,'drawingId':_0x452be9['shapeId']}]);},0xc8),_0x10962e;}},Lr=_0x40a3e1(0x3c8),Rr=_0x40a3e1(0x269),zr=_0x40a3e1(0x3eb),Br=_0x40a3e1(0x400),Vr=_0xd3eef3(_0x40a3e1(0x3fd)),Hr=_0x40a3e1(0x36a),Ur={'id':'sheet.operation.open-shape-object-list-panel','type':_0x47a509['COMMAND'],'handler':(_0x12a300,_0x1738fc)=>{const _0x6829e3=_0x40a3e1;let _0x6431f9=_0x12a300[_0x6829e3(0x270)](_0x4edbc3),_0x34dba2=_0x12a300[_0x6829e3(0x270)](_0x1fc669),_0x2cd746=_0x12a300[_0x6829e3(0x270)](_0x3a3cc8),_0x295265=_0x12a300[_0x6829e3(0x270)](_0x3a4817);return _0x1eaf70(_0x2cd746)?(_0x1738fc==null?void 0x0:_0x1738fc[_0x6829e3(0x437)])==='close'?(_0x6431f9['close'](Rr),!0x0):(_0x6431f9[_0x6829e3(0x361)]({'id':Rr,'header':{'title':_0x34dba2['t'](_0x6829e3(0x43b))},'children':{'label':Rr},'onClose':()=>{_0x295265['syncExecuteCommand'](_0x5bb1f9['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x47a509[_0x40a3e1(0x31e)],'id':_0x40a3e1(0x39a),'handler'(){return!0x0;}};function Gr(_0x2d0c97){const _0x4626c7=_0x40a3e1;let _0x56af7c=_0x2d0c97['get'](_0x2d58e3)[_0x4626c7(0x23d)](),_0x5aa8f6=_0x56af7c[_0x4626c7(0x46d)]===0x1?_0x56af7c[0x0]:null;if(!_0x5aa8f6||_0x5aa8f6[_0x4626c7(0x221)]!==_0x204a86[_0x4626c7(0x41a)])return null;let _0x2e36ec=_0x2d0c97[_0x4626c7(0x270)](_0x25eee4),_0x21bf8f=_0x2e36ec[_0x4626c7(0x38a)](_0x5aa8f6['unitId'],_0x5aa8f6[_0x4626c7(0x330)],_0x5aa8f6[_0x4626c7(0x35b)]),_0x363810=_0x2e36ec[_0x4626c7(0x1df)](_0x5aa8f6[_0x4626c7(0x43a)],_0x5aa8f6[_0x4626c7(0x330)],_0x5aa8f6['drawingId']);return _0x21bf8f===void 0x0||!_0x363810?null:{'drawing':_0x5aa8f6,'shapeData':_0x363810,'shapeType':_0x21bf8f};}const Kr={'id':_0x40a3e1(0x3e4),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0xc6295d,_0x2058b9)=>{const _0xe7c452=_0x40a3e1;let _0x3c0a65=Gr(_0xc6295d),_0x201bdf=_0x583dc0((_0x2058b9==null?void 0x0:_0x2058b9[_0xe7c452(0x3f4)])??(_0x2058b9==null?void 0x0:_0x2058b9[_0xe7c452(0x437)])??'');if(!_0x3c0a65||!_0x201bdf||_0x201bdf['type']!==_0x3e70c6(_0x3c0a65[_0xe7c452(0x1eb)]))return!0x1;let _0x1e1578=_0x46bc18(_0x3c0a65[_0xe7c452(0x1eb)],_0x201bdf);if(!_0x1e1578)return!0x1;let {drawing:_0x402ec8}=_0x3c0a65;return _0xc6295d[_0xe7c452(0x270)](_0x3a4817)[_0xe7c452(0x2d5)](K['id'],{'unitId':_0x402ec8['unitId'],'subUnitId':_0x402ec8['subUnitId'],'shapeId':_0x402ec8['drawingId'],'shapeData':_0x1e1578,'oldShapeJSON':{'oldShapeData':_0x3c0a65[_0xe7c452(0x1eb)]}});}},qr={'id':_0x40a3e1(0x370),'type':_0x47a509[_0x40a3e1(0x31e)],'handler':(_0x16c1e0,_0x26958e)=>{const _0x3fa144=_0x40a3e1;let _0x2e8683=Gr(_0x16c1e0),_0x50d807=(_0x26958e==null?void 0x0:_0x26958e['shapeType'])??(_0x26958e==null?void 0x0:_0x26958e[_0x3fa144(0x437)]);if(!_0x2e8683||!_0x50d807||_0x421dc8(_0x2e8683[_0x3fa144(0x1bc)])||_0x421dc8(_0x50d807))return!0x1;let _0x26e329=_0x4013e1(_0x2e8683[_0x3fa144(0x1eb)],_0x50d807);if(!_0x26e329)return!0x1;let {drawing:_0x2cb3c5}=_0x2e8683;return _0x16c1e0['get'](_0x3a4817)[_0x3fa144(0x2d5)](K['id'],{'unitId':_0x2cb3c5['unitId'],'subUnitId':_0x2cb3c5['subUnitId'],'shapeId':_0x2cb3c5[_0x3fa144(0x35b)],'shapeType':_0x50d807,'shapeData':_0x26e329,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x2e8683[_0x3fa144(0x1bc)],'oldShapeData':_0x2e8683[_0x3fa144(0x1eb)]}});}};let Q=class extends _0x1f1ba9{constructor(_0x4495de,_0x4aff0d){const _0x33a14c=_0x40a3e1;super(),this['_clipService']=_0x4495de,this[_0x33a14c(0x2f1)]=_0x4aff0d,this[_0x33a14c(0x41f)](),this['_clipService']['setCanUseShapeClip'](!0x0),this[_0x33a14c(0x1c6)]({'dispose':()=>this['_clipService']['setCanUseShapeClip'](!0x1)});}[_0x40a3e1(0x41f)](){const _0x30e9f9=_0x40a3e1;let _0x55315a=this['_clipService'],_0x13cfe1=new Map(),_0x5cf92e=_0x55315a[_0x30e9f9(0x3d0)]((_0x3e9b68,_0x1c1e6b,_0x3daf81,_0x35dd70,_0xdb1c0b)=>{const _0x4a8721=_0x30e9f9;let _0x3be01a=_0x1c1e6b;if(_0x3be01a===_0x27efd2[_0x4a8721(0x3ab)]||_0x1c1e6b==='custom')return!0x1;try{let _0x307de3=_0x13cfe1['get'](_0x1c1e6b);return _0x307de3||(_0x307de3=new _0x442f4b(_0x3be01a,_0x4a8721(0x3cc)+_0x1c1e6b),_0x13cfe1[_0x4a8721(0x3a0)](_0x1c1e6b,_0x307de3)),_0x307de3[_0x4a8721(0x416)](),_0xdb1c0b&&Object[_0x4a8721(0x413)](_0xdb1c0b)[_0x4a8721(0x46d)]>0x0&&_0x307de3[_0x4a8721(0x45e)]({'adjustValues':_0xdb1c0b},!0x0),_0x307de3[_0x4a8721(0x2e0)]({'width':_0x3daf81,'height':_0x35dd70}),_0x307de3[_0x4a8721(0x289)](_0x3e9b68,{'left':0x0,'top':0x0,'width':_0x3daf81,'height':_0x35dd70});}catch{return!0x1;}});this['disposeWithMe'](_0x5cf92e),this[_0x30e9f9(0x1c6)]({'dispose':()=>_0x13cfe1[_0x30e9f9(0x3b6)]()});}[_0x40a3e1(0x25d)](_0x3272bb,_0x16846e,_0x4f3ba6,_0x4b358b,_0x1f8946){const _0x31b0da=_0x40a3e1;let _0x3ba50e=this[_0x31b0da(0x2f1)][_0x31b0da(0x1d0)](_0x3272bb,_0x16846e);if(!_0x3ba50e[_0x4f3ba6])return;let _0x58b173={..._0x3ba50e[_0x4f3ba6],'prstGeom':_0x4b358b,'adjustValues':_0x1f8946};this[_0x31b0da(0x2f1)]['featurePluginUpdateNotification']([_0x58b173]);}};Q=X([Y(0x0,_0x34f57e(_0x5706e2)),Y(0x1,_0x34f57e(_0x2d58e3))],Q);const Jr='sheet.shape.picker.component',Yr=_0x40a3e1(0x3f5);function Xr({onShapeClick:_0x192721,excludeGroups:_0x488706}){const _0x34ec13=_0x40a3e1;return _0xf2bc1d(_0xc763c4,{'excludeGroups':_0x488706,'onShapeClick':_0x192721,'scrollContainer':_0x34ec13(0x1e3)});}function Zr(){const _0x344ad0=_0x40a3e1;let _0x4a9886=_0x3911a9(_0x2d58e3),_0x87536d=_0x3911a9(Q);return _0xf2bc1d(_0x276ebe,{'buttonLabel':_0x344ad0(0x2c5),'excludeGroups':[_0x416c0a['Line']],'onShapeClick':_0x166bbd=>{const _0x5727f8=_0x344ad0;let _0x38e5c0=_0x4a9886['getFocusDrawings']()['find'](_0x1f154c=>_0x1f154c[_0x5727f8(0x221)]===_0x204a86['DRAWING_IMAGE']);if(!_0x38e5c0)return;let {unitId:_0x30cbb6,subUnitId:_0x35cf4b,drawingId:_0x5b9857}=_0x38e5c0;_0x87536d['clipByShape'](_0x30cbb6,_0x35cf4b,_0x5b9857,_0x166bbd['type']);}});}function Qr(){const _0x55b194=_0x40a3e1;let _0x62f087=_0x3911a9(_0x2d58e3),_0x393c6e=_0x3911a9(Q);return _0xf2bc1d(_0x276ebe,{'buttonLabel':_0x55b194(0x2c5),'excludeGroups':[_0x416c0a[_0x55b194(0x3ef)]],'DropdownComponent':_0x5d0172,'onShapeClick':_0x62b36e=>{const _0x5884d2=_0x55b194;let _0x113ffd=_0x62f087[_0x5884d2(0x23d)]()[_0x5884d2(0x278)](_0x223d84=>_0x223d84[_0x5884d2(0x221)]===_0x204a86[_0x5884d2(0x1fe)]);if(!_0x113ffd)return;let {unitId:_0x3744ff,subUnitId:_0x3c1c73,drawingId:_0x5c808b}=_0x113ffd;_0x393c6e[_0x5884d2(0x25d)](_0x3744ff,_0x3c1c73,_0x5c808b,_0x62b36e[_0x5884d2(0x275)]);}});}function $r(){const _0x46578f=_0x40a3e1;let _0x22afab=_0x3911a9(_0x203616),_0x4da5fc=_0x3911a9(_0x2d58e3),_0x10c881=_0x3911a9(_0x3a3cc8),_0x3fdae2=_0x4da5fc[_0x46578f(0x23d)]()[0x0],_0x50b317=_0x3fdae2?_0x10c881['getUnitType'](_0x3fdae2[_0x46578f(0x43a)]):void 0x0,_0x21c6ab=_0x50b317===_0x2f72d4[_0x46578f(0x44d)]?_0x46578f(0x2ee):_0x50b317===_0x2f72d4[_0x46578f(0x2ce)]?Yr:void 0x0,_0xf6adfe=_0x21c6ab?_0x22afab[_0x46578f(0x270)](_0x21c6ab):void 0x0;return _0xf6adfe?_0xf2bc1d(_0xf6adfe,{}):null;}function ei(){let _0x44cf70=_0x3911a9(_0x3a4817);return _0xf2bc1d(Xr,{'onShapeClick':_0x1fcba6=>{const _0x4945a0=_0x214c;_0x44cf70['executeCommand'](Ir['id'],{'value':_0x1fcba6[_0x4945a0(0x275)],'enhanceParams':{'endArrow':_0x1fcba6[_0x4945a0(0x1e1)],'startArrow':_0x1fcba6[_0x4945a0(0x232)],'horizontal':_0x1fcba6[_0x4945a0(0x3c1)],'vertical':_0x1fcba6[_0x4945a0(0x42c)]}});}});}function ti(){return _0xf2bc1d(ei,{});}function ni(_0x3d2c14){const _0x40041e=_0x40a3e1;let _0x4a3869=_0x3d2c14[_0x40041e(0x270)](_0x3a3cc8);return{'id':Ir['id'],'type':_0x3cc54f[_0x40041e(0x44a)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':'ShapeIcon','tooltip':_0x40041e(0x335),'activated$':_0x297af0(_0x4a3869,!0x1,()=>new _0x38e630(_0x32f695=>{const _0x31c1b8=_0x40041e;_0x32f695[_0x31c1b8(0x24c)](!0x1);})),'hidden$':_0x5b0d7c(_0x3d2c14,_0x2f72d4['UNIVER_SHEET']),'disabled$':_0x587855(_0x3d2c14)};}function ri(_0xbff9ce){const _0xa184d1=_0x40a3e1;let _0x66174=_0xbff9ce[_0xa184d1(0x270)](_0x3a3cc8);return{'id':Ur['id'],'type':_0x3cc54f[_0xa184d1(0x2b5)],'icon':_0xa184d1(0x20f),'title':_0xa184d1(0x1fb),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x297af0(_0x66174,!0x1,()=>new _0x38e630(_0x33eae7=>{_0x33eae7['next'](!0x1);})),'hidden$':_0x5b0d7c(_0xbff9ce,_0x2f72d4['UNIVER_SHEET']),'disabled$':_0x587855(_0xbff9ce)};}const ii='sheet.menu.shape.flip-horizontal',ai=_0x40a3e1(0x312);function oi(_0x4739a7){const _0x3bc95a=_0x40a3e1;let _0x5f189b=_0x4739a7['get'](_0x2d58e3)[_0x3bc95a(0x23d)]();return _0x5f189b[_0x3bc95a(0x46d)]===0x1&&_0x5f189b[0x0][_0x3bc95a(0x221)]===_0x204a86[_0x3bc95a(0x41a)]?_0x5f189b[0x0]:null;}function si(_0x266483){const _0x2e47b4=_0x40a3e1;let _0x22cccd=_0x266483[_0x2e47b4(0x270)](_0x2d58e3);return _0x22cccd[_0x2e47b4(0x2f5)][_0x2e47b4(0x300)](_0x56668c(_0x22cccd['getFocusDrawings']()),_0x1b0143(_0x227669=>_0x227669['length']!==0x1||_0x227669[0x0][_0x2e47b4(0x221)]!==_0x204a86[_0x2e47b4(0x41a)]));}function ci(_0xe09fae){const _0x1f5c97=_0x40a3e1;return{'id':ii,'commandId':_0x559a4e['id'],'type':_0x3cc54f[_0x1f5c97(0x2b5)],'title':_0x1f5c97(0x210),'tooltip':_0x1f5c97(0x210),'icon':_0x1f5c97(0x329),'hidden$':si(_0xe09fae),'params':()=>{const _0xa076c6=_0x1f5c97;let _0x56341c=oi(_0xe09fae);return _0x56341c?{'unitId':_0x56341c[_0xa076c6(0x43a)],'subUnitId':_0x56341c[_0xa076c6(0x330)],'shapeId':_0x56341c['drawingId'],'flipH':!0x0}:void 0x0;}};}function li(_0x1fb8b7){const _0x91603a=_0x40a3e1;return{'id':ai,'commandId':_0x559a4e['id'],'type':_0x3cc54f[_0x91603a(0x2b5)],'title':_0x91603a(0x3cf),'tooltip':_0x91603a(0x3cf),'icon':_0x91603a(0x2d1),'hidden$':si(_0x1fb8b7),'params':()=>{const _0x4d088c=_0x91603a;let _0x321677=oi(_0x1fb8b7);return _0x321677?{'unitId':_0x321677[_0x4d088c(0x43a)],'subUnitId':_0x321677[_0x4d088c(0x330)],'shapeId':_0x321677[_0x4d088c(0x35b)],'flipV':!0x0}:void 0x0;}};}const ui=_0x40a3e1(0x478),di=_0x40a3e1(0x3b7),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x40a3e1(0x407);function mi(){let _0x5a6622=_0x3911a9(_0x3a4817),_0x561c65=_0x3911a9(_0x2d58e3),_0x200c25=_0x3911a9(_0x25eee4),_0x175563=()=>{const _0x148243=_0x214c;var _0x1d4cd1;let _0x4381b0=_0x561c65[_0x148243(0x23d)]();if(_0x4381b0['length']!==0x1||((_0x1d4cd1=_0x4381b0[0x0])==null?void 0x0:_0x1d4cd1['drawingType'])!==_0x204a86[_0x148243(0x41a)])return null;let {unitId:_0xbd1b56,subUnitId:_0x5079b8,drawingId:_0x45bbbf}=_0x4381b0[0x0],_0x322866=_0x200c25[_0x148243(0x38a)](_0xbd1b56,_0x5079b8,_0x45bbbf),_0x57a3d1=_0x200c25[_0x148243(0x1df)](_0xbd1b56,_0x5079b8,_0x45bbbf);return _0x322866===void 0x0||!_0x57a3d1?null:{'unitId':_0xbd1b56,'subUnitId':_0x5079b8,'drawingId':_0x45bbbf,'shapeType':_0x322866,'shapeData':_0x57a3d1};},_0x27741b=_0x17fdf6(()=>new _0x38e630(_0x9ed82d=>{const _0x1054f4=_0x214c;let _0x36acaa=()=>_0x9ed82d[_0x1054f4(0x24c)](_0x175563()),_0x665b16=_0x561c65['focus$']['subscribe'](_0x36acaa),_0x2fd3f1=_0x5a6622[_0x1054f4(0x3a7)](_0x1d3520=>{_0x1d3520['id']===_0x2abe23['id']&&_0x36acaa();});return _0x36acaa(),()=>{const _0x30e76f=_0x1054f4;_0x665b16[_0x30e76f(0x2a2)](),_0x2fd3f1[_0x30e76f(0x223)]();};}),_0x175563(),!0x1,[_0x5a6622,_0x561c65,_0x200c25]);return{'selection':_0x27741b,'updateShapeData':_0x908070=>{const _0x42c92b=_0x214c;_0x27741b&&Dr(_0x5a6622,_0x27741b[_0x42c92b(0x43a)],_0x27741b[_0x42c92b(0x330)],_0x27741b[_0x42c92b(0x35b)],{'oldShapeData':_0x27741b[_0x42c92b(0x1eb)]},_0x908070);}};}function hi(){const _0x506ac5=_0x40a3e1;let {selection:_0x3cce8c,updateShapeData:_0x205ac3}=mi();return _0x3cce8c?_0xf2bc1d(_0x171727,{'shapeData':_0x3cce8c['shapeData'],'shapeType':_0x3cce8c[_0x506ac5(0x1bc)],'onUpdateShapeData':_0x205ac3}):null;}function gi(){const _0x5cd64f=_0x40a3e1;let _0x4f4404=_0x3911a9(_0x3a4817),_0x22a5bd=_0x3911a9(_0x1fc669),{selection:_0x5a8fe0}=mi();return _0x5a8fe0?_0xf2bc1d(_0x506439,{'type':_0x3e70c6(_0x5a8fe0[_0x5cd64f(0x1eb)]),'ariaLabel':_0x22a5bd['t'](_0x5cd64f(0x228)),'activePresetId':_0x244835(_0x5a8fe0[_0x5cd64f(0x1eb)]),'onSelect':_0x351c42=>_0x4f4404[_0x5cd64f(0x2d5)](Kr['id'],{'presetId':_0x351c42})}):null;}function _i(){const _0x29e082=_0x40a3e1;let {selection:_0x3de0b8,updateShapeData:_0xf998af}=mi();return _0x3de0b8?_0xf2bc1d(_0x4f2621,{'fontFamilyPopupDataComponent':_0x29e082(0x448),'shapeData':_0x3de0b8[_0x29e082(0x1eb)],'onUpdateShapeData':_0xf998af}):null;}function vi(){const _0xdfd452=_0x40a3e1;var _0x2c229d;let {selection:_0xc252e1,updateShapeData:_0x425723}=mi(),_0x25e57f=_0x31f90f({'hostType':_0x2f72d4[_0xdfd452(0x2ce)],'unitId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x43a)])??'','subUnitId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x330)])??'','shapeId':(_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x35b)])??'','shapeData':_0xc252e1==null?void 0x0:_0xc252e1[_0xdfd452(0x1eb)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0xdfd452(0x396),'onUpdateBinding':_0x51dd5d=>_0x425723({'formulaBinding':_0x51dd5d})}),_0x350b34=((_0x2c229d=_0x25e57f[_0xdfd452(0x33d)])==null?void 0x0:_0x2c229d[_0xdfd452(0x3bf)](_0x380642=>_0x380642['actions'])[_0xdfd452(0x385)](_0x403f25=>_0x403f25[_0xdfd452(0x3e8)]!==!0x1))??[];return _0xc252e1!=null&&_0xc252e1['shapeData']['formulaBinding']?_0xf2bc1d(_0x46df00,{'actions':_0x350b34,'panel':_0x25e57f['panel']}):null;}const yi='sheets-shape-ui.ribbon.shape-format.style-control',bi='sheets-shape-ui.ribbon.shape-format.text-control',xi='sheets-shape-ui.ribbon.shape-format.formula-control',Si='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ci=_0x40a3e1(0x2d8),wi=_0x40a3e1(0x277),Ti=_0x40a3e1(0x463);function Ei(_0x7979d2){const _0x2f4400=_0x40a3e1;let _0x5d5278=_0x7979d2['get'](_0x3a4817),_0x3b581e=_0x7979d2[_0x2f4400(0x270)](_0x2d58e3),_0x4726d0=_0x7979d2[_0x2f4400(0x270)](_0x25eee4);return new _0x38e630(_0x4f1371=>{const _0x113a50=_0x2f4400;let _0x378b8e=()=>{const _0x594b75=_0x214c;let _0x4b0072=Di(_0x7979d2),_0x5681fd=_0x4b0072?_0x4726d0['getShapeDataById'](_0x4b0072[_0x594b75(0x43a)],_0x4b0072[_0x594b75(0x330)],_0x4b0072[_0x594b75(0x35b)]):null;_0x4f1371[_0x594b75(0x24c)](_0x5681fd?_0x244835(_0x5681fd)??'':'');},_0xa59bc8=_0x3b581e['focus$'][_0x113a50(0x1ff)](_0x378b8e),_0x50f92b=_0x5d5278['onCommandExecuted'](_0x33ca7c=>{_0x33ca7c['id']===_0x2abe23['id']&&_0x378b8e();});return _0x378b8e(),()=>{const _0x153d09=_0x113a50;_0xa59bc8[_0x153d09(0x2a2)](),_0x50f92b['dispose']();};});}function Di(_0x499274){const _0x2c0961=_0x40a3e1;var _0x3fc972;let _0x1e12c0=_0x499274[_0x2c0961(0x270)](_0x2d58e3)[_0x2c0961(0x23d)]();return _0x1e12c0[_0x2c0961(0x46d)]===0x1&&((_0x3fc972=_0x1e12c0[0x0])==null?void 0x0:_0x3fc972[_0x2c0961(0x221)])===_0x204a86[_0x2c0961(0x41a)]?_0x1e12c0[0x0]:null;}function Oi(_0xb4f509,_0x4adad0=!0x1){const _0x3b53f7=_0x40a3e1;let _0x269d7d=_0xb4f509[_0x3b53f7(0x270)](_0x3a4817),_0x55705a=_0xb4f509[_0x3b53f7(0x270)](_0x2d58e3),_0x19e346=_0xb4f509['get'](_0x25eee4);return new _0x38e630(_0x3d663f=>{const _0x242672=_0x3b53f7;let _0x5a0d59=()=>{const _0x1c714a=_0x214c;let _0x488bff=Di(_0xb4f509);if(!_0x488bff){_0x3d663f[_0x1c714a(0x24c)](!0x0);return;}let _0x1b9343=_0x19e346[_0x1c714a(0x1df)](_0x488bff[_0x1c714a(0x43a)],_0x488bff[_0x1c714a(0x330)],_0x488bff[_0x1c714a(0x35b)]);_0x3d663f[_0x1c714a(0x24c)](!_0x1b9343||_0x4adad0&&_0x1b9343['formulaBinding']==null);},_0x44a825=_0x55705a[_0x242672(0x2f5)]['subscribe'](_0x5a0d59),_0x2bd21b=_0x269d7d[_0x242672(0x3a7)](_0x54346f=>{_0x54346f['id']===_0x2abe23['id']&&_0x5a0d59();});return _0x5a0d59(),()=>{const _0x265ffb=_0x242672;_0x44a825[_0x265ffb(0x2a2)](),_0x2bd21b[_0x265ffb(0x223)]();};});}function ki(_0x2d6b7f){const _0x1c7dca=_0x40a3e1;let _0x2c4ae4=_0x2d6b7f[_0x1c7dca(0x270)](_0x2d58e3),_0x4565f8=_0x2d6b7f[_0x1c7dca(0x270)](_0x25eee4);return _0x2c4ae4['focus$']['pipe'](_0x56668c(_0x2c4ae4['getFocusDrawings']()),_0x1b0143(()=>{const _0x557dc7=_0x1c7dca;let _0x1240bc=Di(_0x2d6b7f),_0x20d897=_0x1240bc?_0x4565f8[_0x557dc7(0x38a)](_0x1240bc[_0x557dc7(0x43a)],_0x1240bc[_0x557dc7(0x330)],_0x1240bc[_0x557dc7(0x35b)]):void 0x0;return _0x20d897===void 0x0||_0x421dc8(_0x20d897);}));}function Ai(_0x5824a6){const _0x27ce1f=_0x40a3e1;return{'id':Kr['id'],'type':_0x3cc54f[_0x27ce1f(0x44a)],'icon':'PaintIcon','title':_0x27ce1f(0x381),'tooltip':_0x27ce1f(0x381),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x5824a6),'hidden$':Oi(_0x5824a6)};}function ji(_0x4dec21){const _0x91de4a=_0x40a3e1;return{'id':qr['id'],'type':_0x3cc54f[_0x91de4a(0x44a)],'icon':_0x91de4a(0x21a),'title':_0x91de4a(0x30b),'tooltip':_0x91de4a(0x30b),'slot':!0x0,'selections':[{'label':{'name':_0x37ce7a,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x4dec21)};}function Mi(_0x18159b,_0x10a877,_0x40be3a=!0x1){const _0xcad484=_0x40a3e1;return _0x129a89=>({'id':_0x18159b,'type':_0x3cc54f[_0xcad484(0x2b5)],'label':{'name':_0x10a877,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x129a89,_0x40be3a)});}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x3d37b4,_0x34c11b,_0x5c31a9,_0x1ec4b2){const _0x16d423=_0x40a3e1;return _0x2a33e5=>({'id':_0x3d37b4,'commandId':_0x5a5e2c['id'],'type':_0x3cc54f[_0x16d423(0x2b5)],'icon':_0x5c31a9,'title':_0x1ec4b2,'tooltip':_0x1ec4b2,'hidden$':Oi(_0x2a33e5),'params':()=>{const _0x1c4e55=_0x16d423;let _0x267790=Di(_0x2a33e5);return _0x267790?{'unitId':_0x267790['unitId'],'subUnitId':_0x267790['subUnitId'],'drawingIds':[_0x267790[_0x1c4e55(0x35b)]],'arrangeType':_0x34c11b}:void 0x0;}});}const Li=Ii(Si,_0x387bee[_0x40a3e1(0x41b)],'MoveUpIcon',_0x40a3e1(0x38c)),Ri=Ii(Ci,_0x387bee[_0x40a3e1(0x2bd)],'MoveDownIcon',_0x40a3e1(0x357)),zi=Ii(wi,_0x387bee[_0x40a3e1(0x3fe)],_0x40a3e1(0x3e2),'shape-editor-ui.arrange.front'),Bi=Ii(Ti,_0x387bee[_0x40a3e1(0x439)],_0x40a3e1(0x298),_0x40a3e1(0x356));function Vi(_0x3f2001){const _0x49afb3=_0x40a3e1;return{'id':Wr['id'],'type':_0x3cc54f['BUTTON'],'icon':_0x49afb3(0x27e),'title':_0x49afb3(0x256),'tooltip':_0x49afb3(0x256),'hidden$':Oi(_0x3f2001),'params':()=>{const _0x288447=_0x49afb3;let _0x5bd8fa=Di(_0x3f2001);return _0x5bd8fa?{'unitId':_0x5bd8fa[_0x288447(0x43a)],'subUnitId':_0x5bd8fa[_0x288447(0x330)],'drawingId':_0x5bd8fa[_0x288447(0x35b)]}:void 0x0;}};}const Hi={[_0x15f1c1['RIBBON']]:{[Br]:{'order':0x64,'title':'sheets-shape-ui.formatShape','contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x326f6f['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x1d0040}}}}},Ui={[_0x30f74f[_0x40a3e1(0x353)]]:{[Ir['id']]:{'order':0x4,'menuItemFactory':ni}}},Wi={...Ui,[_0x30f74f[_0x40a3e1(0x3a5)]]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x420dc4[_0x40a3e1(0x272)]]:{[_0x4caf77['OTHERS']]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi=_0x40a3e1(0x409),Ki='1.0.4';const qi={'id':_0x40a3e1(0x447),'type':_0x47a509[_0x40a3e1(0x31e)],'handler'(_0x31402c,_0x4be94b){const _0x34d4c1=_0x40a3e1;return _0x4be94b?(_0x31402c['get'](_0xd18c3c)[_0x34d4c1(0x361)](_0x4be94b['mode'],{'hostType':_0x2f72d4[_0x34d4c1(0x2ce)],'shapeId':_0x4be94b[_0x34d4c1(0x35b)],'subUnitId':_0x4be94b[_0x34d4c1(0x330)],'unitId':_0x4be94b[_0x34d4c1(0x43a)]}),!0x0):!0x1;}},Ji='sheets-shape-ui.config',Yi={};let Xi=class extends _0x1f1ba9{constructor(_0xb4d1d7,_0x57fd5e,_0x1fd250,_0x325d74,_0x18d9ae){const _0x907035=_0x40a3e1;super(),this['_context']=_0xb4d1d7,this[_0x907035(0x2f1)]=_0x57fd5e,this[_0x907035(0x258)]=_0x1fd250,this[_0x907035(0x2c3)]=_0x325d74,this[_0x907035(0x322)]=_0x18d9ae,q(this,_0x907035(0x1ee),null),q(this,_0x907035(0x34f),null),q(this,'_subUnitId',null),q(this,'_activeAdjustPointList',void 0x0),q(this,'_shapes',[]),q(this,_0x907035(0x21e),0x0),q(this,_0x907035(0x388),0x0),q(this,_0x907035(0x32b),0x0),q(this,'_baseHeight',0x0),q(this,'_isStartAdjusting',!0x1),q(this,_0x907035(0x26d),void 0x0),q(this,_0x907035(0x1d7),void 0x0),q(this,_0x907035(0x472),void 0x0),q(this,'_adjHandlerPointerUp',void 0x0),q(this,_0x907035(0x392),!0x1),this[_0x907035(0x443)](),this[_0x907035(0x323)]();}[_0x40a3e1(0x377)](){const _0x57422c=_0x40a3e1;this[_0x57422c(0x3e3)]();}['refreshAdjustControls'](){const _0x11e912=_0x40a3e1;this[_0x11e912(0x3e3)](),this[_0x11e912(0x434)](!0x0);}[_0x40a3e1(0x212)](_0x1cc816,_0xc2740c,_0x35b7f3,_0xa21097){const _0x5a7623=_0x40a3e1;let _0x428738=_0x1cc816;if(_0x428738!==_0x27efd2['None']&&_0x1cc816!==_0x5a7623(0x344))try{let _0x438211=new _0x442f4b(_0x428738,_0x5a7623(0x386)+_0x1cc816);return _0xa21097&&_0x438211[_0x5a7623(0x45e)]({'adjustValues':_0xa21097},!0x0),_0x438211['updateContext']({'width':_0xc2740c,'height':_0x35b7f3}),_0x438211;}catch{return;}}[_0x40a3e1(0x40d)](_0x1c8dfd,_0x36bdfb,_0x5981b4){const _0x4c9b49=_0x40a3e1;let _0xd50c82={'unitId':_0x1c8dfd,'subUnitId':_0x36bdfb,'drawingId':_0x5981b4},_0x15a8a5=this[_0x4c9b49(0x2f1)]['getDrawingByParam'](_0xd50c82);if(_0x15a8a5&&_0x15a8a5[_0x4c9b49(0x221)]===_0x204a86[_0x4c9b49(0x1fe)])return _0x15a8a5;}['_getImagePrstGeom'](_0x5f1226,_0x53adcc,_0x2dfbaf){const _0x35e6c7=_0x40a3e1;let _0x5b40ea=this[_0x35e6c7(0x258)]['getRenderUnitById'](_0x5f1226);if(!_0x5b40ea)return;let {scene:_0x13cae1}=_0x5b40ea,_0x17b50b=_0x4eca2a({'unitId':_0x5f1226,'subUnitId':_0x53adcc,'drawingId':_0x2dfbaf}),_0xd84d4e=_0x13cae1[_0x35e6c7(0x2e9)](_0x17b50b);if(_0xd84d4e instanceof _0x2b9b89){let _0x1a8684=_0xd84d4e[_0x35e6c7(0x365)];if(_0x1a8684)return{'prstGeom':_0x1a8684,'adjustValues':_0xd84d4e[_0x35e6c7(0x206)]};}}[_0x40a3e1(0x434)](_0x47aafc=!0x1){const _0x213724=_0x40a3e1;if(!this[_0x213724(0x34f)]||!this[_0x213724(0x465)]||!this['_activeImageId'])return;let _0x3ee643=this[_0x213724(0x258)][_0x213724(0x2cf)](this['_unitId']);if(!_0x3ee643||!_0x3ee643[_0x213724(0x433)](_0x22bccb)['getCurrentSkeleton']())return;let {scene:_0x51cda4}=_0x3ee643,_0x486d93=this[_0x213724(0x40d)](this[_0x213724(0x34f)],this[_0x213724(0x465)],this[_0x213724(0x1ee)]);if(!_0x486d93)return;let {transform:_0x596d63}=_0x486d93;if(!_0x596d63)return;let {left:_0x38bf0d,top:_0x17da50,width:_0x9ad193,height:_0x134ca0,flipX:_0x20c8d4,flipY:_0x4f3e59,angle:_0x254170=0x0}=_0x596d63;if(_0x38bf0d===void 0x0||_0x17da50===void 0x0)return;let _0x56cfb4=this[_0x213724(0x360)](this['_unitId'],this[_0x213724(0x465)],this['_activeImageId']);if(!_0x56cfb4)return;if(_0x47aafc){let _0x56345a=this[_0x213724(0x212)](_0x56cfb4[_0x213724(0x365)],_0x9ad193||0x0,_0x134ca0||0x0,_0x56cfb4['adjustValues']);if(!_0x56345a)return;this['_activeAdjustPointList']=_0x56345a[_0x213724(0x3b2)]();}let _0x2dff6c=this['_activeAdjustPointList'];if(_0x2dff6c&&_0x2dff6c[_0x213724(0x46d)]!==0x0)for(let _0x12563d=0x0;_0x12563d<_0x2dff6c['length'];_0x12563d++){let _0x399b89=_0x2dff6c[_0x12563d],_0x416a87=_0x399b89['x'],_0x1658f1=_0x399b89['y'];if(_0x20c8d4&&(_0x416a87=(_0x9ad193||0x0)-_0x416a87),_0x4f3e59&&(_0x1658f1=(_0x134ca0||0x0)-_0x1658f1),_0x254170!==0x0){let _0x461b90=(_0x9ad193||0x0)/0x2,_0x20395c=(_0x134ca0||0x0)/0x2,_0x238d65=_0x254170*Math['PI']/0xb4,_0x6eea5f=Math[_0x213724(0x3d2)](_0x238d65),_0x5689c5=Math[_0x213724(0x332)](_0x238d65),_0x193543=_0x416a87-_0x461b90,_0x3c020d=_0x1658f1-_0x20395c;_0x416a87=_0x461b90+(_0x193543*_0x6eea5f-_0x3c020d*_0x5689c5),_0x1658f1=_0x20395c+(_0x193543*_0x5689c5+_0x3c020d*_0x6eea5f);}let _0x3f9ad7={'x':_0x416a87,'y':_0x1658f1,'adjName':_0x399b89[_0x213724(0x391)]};this['_addControl'](_0x51cda4,_0x3f9ad7,_0x3f9ad7[_0x213724(0x391)],_0x38bf0d,_0x17da50,this['_unitId'],this['_subUnitId']);}}[_0x40a3e1(0x34a)](_0x117a30,_0x3d1c0a,_0x1fee0f,_0x28dfa9,_0x5f3894,_0x4dab1c,_0x18e4e7){const _0x5aad51=_0x40a3e1;if(!this[_0x5aad51(0x1ee)])return;let _0x4cbf8f=_0x5aad51(0x2d3)+this[_0x5aad51(0x1ee)]+'-'+_0x1fee0f,_0x3e368a=_0x117a30[_0x5aad51(0x2d2)](_0x4cbf8f);if(_0x3e368a){_0x3e368a[_0x5aad51(0x3a6)]({'left':_0x3d1c0a['x']+_0x28dfa9-_0x2c02a7[_0x5aad51(0x22c)],'top':_0x3d1c0a['y']+_0x5f3894-_0x2c02a7[_0x5aad51(0x22c)]});return;}let _0x357821=new Nr(_0x4cbf8f,{'left':_0x3d1c0a['x']+_0x28dfa9-_0x2c02a7[_0x5aad51(0x22c)],'top':_0x3d1c0a['y']+_0x5f3894-_0x2c02a7[_0x5aad51(0x22c)],'adjName':_0x1fee0f,'shapeId':this['_activeImageId'],'unitId':_0x4dab1c,'subUnitId':_0x18e4e7,'width':_0x2c02a7[_0x5aad51(0x22c)]+0x8,'height':_0x2c02a7[_0x5aad51(0x22c)]+0x8,'zIndex':_0x1301e0+0x1,'evented':!0x0});this[_0x5aad51(0x203)]['push'](_0x357821),this['_attachAdjustEvent'](_0x357821,_0x117a30,_0x1fee0f),_0x117a30[_0x5aad51(0x3ae)](_0x357821,_0x1301e0+0x1);}[_0x40a3e1(0x3e3)](){const _0x2bc2d1=_0x40a3e1;this[_0x2bc2d1(0x203)][_0x2bc2d1(0x46d)]!==0x0&&(this[_0x2bc2d1(0x203)]['forEach'](_0x3333fc=>_0x3333fc[_0x2bc2d1(0x223)]()),this['_shapes']=[]);}[_0x40a3e1(0x3d4)](_0x56f38e,_0x2ce8e5){const _0x508a64=_0x40a3e1;var _0x2fcc9f;let _0x1a3f86={'x':0x0,'y':0x0},_0xeffbda=this[_0x508a64(0x258)][_0x508a64(0x2cf)](_0x56f38e);if(!_0xeffbda||!_0xeffbda[_0x508a64(0x433)](_0x22bccb)[_0x508a64(0x1d6)](_0x2ce8e5))return _0x1a3f86;let _0x239476=_0xeffbda[_0x508a64(0x433)](_0x1d24d6),_0xdc6799=_0x239476==null?void 0x0:_0x239476['getCurrentScrollState']();if(!_0xdc6799)return _0x1a3f86;let _0x363145=(_0x2fcc9f=this[_0x508a64(0x2c3)][_0x508a64(0x2fd)](_0x56f38e))==null?void 0x0:_0x2fcc9f[_0x508a64(0x475)](_0x2ce8e5);if(!_0x363145)return _0x1a3f86;let _0x5251db=_0xf578ae(_0xdc6799[_0x508a64(0x3c9)],_0xdc6799[_0x508a64(0x3a3)],_0xeffbda['scene'],_0x363145);return _0x5251db?{'x':_0x5251db[_0x508a64(0x253)],'y':_0x5251db[_0x508a64(0x393)]}:_0x1a3f86;}[_0x40a3e1(0x454)](_0x3e6e2f,_0x27b305){const _0x1530df=_0x40a3e1;var _0xb6fdb8;let _0x1711a5=(_0xb6fdb8=this['_univerInstanceService']['getUnit'](_0x3e6e2f))==null?void 0x0:_0xb6fdb8[_0x1530df(0x475)](_0x27b305);return(_0x1711a5==null?void 0x0:_0x1711a5[_0x1530df(0x474)]())??0x1;}[_0x40a3e1(0x286)](_0x54ba46,_0x4ec8f0,_0x12161b){const _0x4939c8=_0x40a3e1;this[_0x4939c8(0x1c6)](_0x35229e(_0x54ba46[_0x4939c8(0x200)][_0x4939c8(0x42f)]((_0x17fdba,_0x25fcb9)=>{const _0x5e9c64=_0x4939c8;var _0x40ce23,_0x2473aa,_0x124ae6;let {unitId:_0x379a27,subUnitId:_0x4c5c80,drawingId:_0x45783c}=_0x54ba46[_0x5e9c64(0x2fc)](),_0x23acd1=this[_0x5e9c64(0x40d)](_0x379a27,_0x4c5c80,_0x45783c);if(!(_0x23acd1!=null&&_0x23acd1[_0x5e9c64(0x412)]))return;let {left:_0x279190,top:_0x5e4bbd,width:_0x20bfd6,height:_0x2bbcbe}=_0x23acd1[_0x5e9c64(0x412)];this['_baseLeft']=_0x279190||0x0,this[_0x5e9c64(0x388)]=_0x5e4bbd||0x0,this[_0x5e9c64(0x32b)]=_0x20bfd6||0x0,this[_0x5e9c64(0x45f)]=_0x2bbcbe||0x0;let _0x8a14ce=!!((_0x40ce23=_0x23acd1[_0x5e9c64(0x412)])!=null&&_0x40ce23[_0x5e9c64(0x405)]),_0x456332=!!((_0x2473aa=_0x23acd1[_0x5e9c64(0x412)])!=null&&_0x2473aa[_0x5e9c64(0x305)]),_0x1f3b2d=((_0x124ae6=_0x23acd1[_0x5e9c64(0x412)])==null?void 0x0:_0x124ae6['angle'])||0x0,_0x3e6132=this['_getImagePrstGeom'](_0x379a27,_0x4c5c80,_0x45783c);if(!_0x3e6132)return;let _0x282e71=this[_0x5e9c64(0x212)](_0x3e6132['prstGeom'],this['_baseWidth'],this['_baseHeight'],_0x3e6132[_0x5e9c64(0x3df)]);if(!_0x282e71||(this[_0x5e9c64(0x1d7)]=_0x282e71,this['_activeAdjustInfo']=_0x282e71[_0x5e9c64(0x42e)](_0x12161b),!this[_0x5e9c64(0x26d)]))return;this[_0x5e9c64(0x3f8)]=!0x0,_0x4ec8f0[_0x5e9c64(0x29c)]();let _0x1a79dd=_0x3e6132[_0x5e9c64(0x365)];this[_0x5e9c64(0x472)]=_0x4ec8f0['onPointerMove$'][_0x5e9c64(0x42f)]((_0x11179f,_0x3f5951)=>{const _0x421261=_0x5e9c64;if(!this[_0x421261(0x3f8)])return;let {offsetX:_0x23dca2,offsetY:_0x43351c}=_0x11179f,_0x1a2412=this[_0x421261(0x26d)];if(!this[_0x421261(0x1d7)]||!_0x1a2412)return;_0x4ec8f0[_0x421261(0x29c)](),_0x4ec8f0[_0x421261(0x26c)](_0x27b168['CROSSHAIR']);let _0x388dd3={'left':0x0,'top':0x0,'width':this[_0x421261(0x32b)],'height':this[_0x421261(0x45f)]},_0x475392=this[_0x421261(0x3d4)](_0x379a27,_0x4c5c80),_0x283fb5=this[_0x421261(0x454)](_0x379a27,_0x4c5c80),_0x2fac7d=_0x23dca2/_0x283fb5+_0x475392['x']-this['_baseLeft'],_0x5eadb4=_0x43351c/_0x283fb5+_0x475392['y']-this['_baseTop'];if(_0x1f3b2d!==0x0){let _0x212a9a=this[_0x421261(0x32b)]/0x2,_0x349d99=this[_0x421261(0x45f)]/0x2,_0xa7f452=_0x1f3b2d*Math['PI']/0xb4,_0x269202=Math[_0x421261(0x3d2)](_0xa7f452),_0x154930=Math[_0x421261(0x332)](_0xa7f452),_0x5cae1d=_0x2fac7d-_0x212a9a,_0x1b41dd=_0x5eadb4-_0x349d99;_0x2fac7d=_0x212a9a+(_0x5cae1d*_0x269202+_0x1b41dd*_0x154930),_0x5eadb4=_0x349d99+(-_0x5cae1d*_0x154930+_0x1b41dd*_0x269202);}_0x8a14ce&&(_0x2fac7d=this[_0x421261(0x32b)]-_0x2fac7d),_0x456332&&(_0x5eadb4=this[_0x421261(0x45f)]-_0x5eadb4);let _0x4bb371=this[_0x421261(0x1d7)][_0x421261(0x302)](_0x388dd3,{'x':_0x2fac7d,'y':_0x5eadb4},_0x1a2412,_0x8a14ce,_0x456332);if(Object[_0x421261(0x413)](_0x4bb371)[_0x421261(0x46d)]!==0x0){for(let [_0x5249d2,_0x98a69c]of Object[_0x421261(0x417)](_0x4bb371))this[_0x421261(0x1d7)]['setAdjustValueByName'](_0x5249d2,_0x98a69c);this[_0x421261(0x1d7)][_0x421261(0x2e0)]({'width':this['_baseWidth'],'height':this[_0x421261(0x45f)]}),this[_0x421261(0x211)](_0x379a27,_0x4c5c80,_0x45783c,_0x4bb371),this[_0x421261(0x20b)]=this['_activeShapeModel'][_0x421261(0x3b2)](),this[_0x421261(0x434)](),_0x3f5951['stopPropagation']();}}),this['_adjHandlerPointerUp']=_0x4ec8f0[_0x5e9c64(0x304)]['subscribeEvent']((_0x375291,_0x2dd235)=>{const _0x28e435=_0x5e9c64;if(this[_0x28e435(0x472)][_0x28e435(0x2a2)](),this['_adjHandlerPointerUp'][_0x28e435(0x2a2)](),_0x4ec8f0[_0x28e435(0x39e)](),this[_0x28e435(0x1d7)]){let _0x400bc6=this[_0x28e435(0x1d7)][_0x28e435(0x226)](),_0x14a7e5={};for(let _0x555829 of _0x400bc6){let _0x2633a0=this[_0x28e435(0x1d7)][_0x28e435(0x1d1)](_0x555829);_0x2633a0!==void 0x0&&(_0x14a7e5[_0x555829]=_0x2633a0);}this[_0x28e435(0x322)]['clipByShape'](_0x379a27,_0x4c5c80,_0x45783c,_0x1a79dd,_0x14a7e5);}this['_activeAdjustInfo']=void 0x0,this[_0x28e435(0x1d7)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x2dd235[_0x28e435(0x204)](),_0x4ec8f0[_0x28e435(0x3fc)]();}),_0x25fcb9[_0x5e9c64(0x204)]();})));}['_updateImageAdjValues'](_0x234af0,_0x62607,_0x4db2dc,_0x162ce2){const _0x37b873=_0x40a3e1;let _0x1ba91e=this[_0x37b873(0x258)][_0x37b873(0x2cf)](_0x234af0);if(!_0x1ba91e)return;let {scene:_0xad5438}=_0x1ba91e,_0x4024ec=_0x4eca2a({'unitId':_0x234af0,'subUnitId':_0x62607,'drawingId':_0x4db2dc}),_0x3e4c2e=_0xad5438['getObject'](_0x4024ec);if(_0x3e4c2e instanceof _0x2b9b89){let _0x4579b3=_0x3e4c2e[_0x37b873(0x206)]??{};_0x3e4c2e['setPrstGeomAdjValues']({..._0x4579b3,..._0x162ce2}),_0x3e4c2e['makeDirty'](!0x0);}}[_0x40a3e1(0x323)](){const _0x1f8d74=_0x40a3e1;let _0x362245=this[_0x1f8d74(0x2c3)][_0x1f8d74(0x293)](_0x2f72d4[_0x1f8d74(0x2ce)]);this[_0x1f8d74(0x1c6)](_0x362245['pipe'](_0x59c42a(_0x4841a2=>_0x4841a2?_0x4841a2['activeSheet$'][_0x1f8d74(0x300)](_0x59c42a(_0x19de68=>{const _0x5a8c5a=_0x1f8d74;if(!_0x19de68)return _0x50a9a5;let _0x3e19ca=_0x4841a2[_0x5a8c5a(0x2ae)](),_0xd1a286=this[_0x5a8c5a(0x258)]['getRenderUnitById'](_0x3e19ca),_0x694fb7=_0xd1a286==null?void 0x0:_0xd1a286[_0x5a8c5a(0x25b)];return _0x694fb7?_0x3cb66b(_0x694fb7):_0x50a9a5;})):_0x50a9a5))['subscribe'](_0x20bb51=>{const _0x466f46=_0x1f8d74;let _0x56331a=_0x20bb51['getTransformerByCreate']();this[_0x466f46(0x1c6)](_0x20bb51[_0x466f46(0x427)][_0x466f46(0x42f)](()=>{const _0x4ac1b8=_0x466f46;this[_0x4ac1b8(0x392)]&&this[_0x4ac1b8(0x3e3)]();})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x37f)][_0x466f46(0x1ff)](_0x50e0f6=>{const _0x43c537=_0x466f46;let {objects:_0x4e4f74}=_0x50e0f6;if(this[_0x43c537(0x434)](),_0x4e4f74!==null&&_0x4e4f74[_0x43c537(0x219)]===0x1){let _0x1c792e=_0x4e4f74['values']()['next']()[_0x43c537(0x437)];_0x1c792e instanceof _0x2b9b89&&_0x1c792e[_0x43c537(0x365)]&&(this[_0x43c537(0x392)]=!0x0);}})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x303)][_0x466f46(0x1ff)](()=>{this['_isImagePointerDown']&&this['_clearControls']();})),this[_0x466f46(0x1c6)](_0x20bb51[_0x466f46(0x304)][_0x466f46(0x42f)](()=>{const _0x490237=_0x466f46;this[_0x490237(0x392)]&&(this[_0x490237(0x392)]=!0x1,this[_0x490237(0x434)]());})),this[_0x466f46(0x1c6)](_0x56331a[_0x466f46(0x44f)][_0x466f46(0x1ff)](()=>{const _0x4b0205=_0x466f46;if(this[_0x4b0205(0x34f)]&&this[_0x4b0205(0x465)]&&this[_0x4b0205(0x1ee)]){let _0xeeda06=this[_0x4b0205(0x360)](this[_0x4b0205(0x34f)],this[_0x4b0205(0x465)],this[_0x4b0205(0x1ee)]);if(_0xeeda06){var _0x287fe0,_0x392e8c;let _0x5f58b6=this[_0x4b0205(0x40d)](this[_0x4b0205(0x34f)],this[_0x4b0205(0x465)],this[_0x4b0205(0x1ee)]),_0x3ffe5f=(_0x5f58b6==null||(_0x287fe0=_0x5f58b6[_0x4b0205(0x412)])==null?void 0x0:_0x287fe0[_0x4b0205(0x294)])||0x0,_0x5be514=(_0x5f58b6==null||(_0x392e8c=_0x5f58b6[_0x4b0205(0x412)])==null?void 0x0:_0x392e8c[_0x4b0205(0x222)])||0x0,_0x170598=this[_0x4b0205(0x212)](_0xeeda06[_0x4b0205(0x365)],_0x3ffe5f,_0x5be514,_0xeeda06[_0x4b0205(0x3df)]);_0x170598&&(this['_activeAdjustPointList']=_0x170598[_0x4b0205(0x3b2)](),this[_0x4b0205(0x3e3)](),this[_0x4b0205(0x434)](!0x0));}}}));}));}['_registerFocusChangeHandler'](){const _0x107859=_0x40a3e1;this[_0x107859(0x1c6)](this['_drawingManagerService'][_0x107859(0x2f5)][_0x107859(0x1ff)](_0x4c9ffe=>{const _0x485c69=_0x107859;if(_0x4c9ffe[_0x485c69(0x46d)]===0x1){let _0x2b14f2=_0x4c9ffe[0x0];if(_0x2b14f2[_0x485c69(0x221)]===_0x204a86[_0x485c69(0x1fe)]){let {unitId:_0x134598,subUnitId:_0x1a2138,drawingId:_0x2ac9e8}=_0x2b14f2,_0x25b43d=this[_0x485c69(0x360)](_0x134598,_0x1a2138,_0x2ac9e8);if(_0x25b43d){var _0x1a7457,_0x172f15;this[_0x485c69(0x1ee)]=_0x2ac9e8,this[_0x485c69(0x34f)]=_0x134598,this['_subUnitId']=_0x1a2138;let _0x108dbb=this[_0x485c69(0x40d)](_0x134598,_0x1a2138,_0x2ac9e8),_0x5e5ff6=(_0x108dbb==null||(_0x1a7457=_0x108dbb['transform'])==null?void 0x0:_0x1a7457[_0x485c69(0x294)])||0x0,_0x1bbff6=(_0x108dbb==null||(_0x172f15=_0x108dbb[_0x485c69(0x412)])==null?void 0x0:_0x172f15[_0x485c69(0x222)])||0x0,_0x46a7e2=this[_0x485c69(0x212)](_0x25b43d[_0x485c69(0x365)],_0x5e5ff6,_0x1bbff6,_0x25b43d[_0x485c69(0x3df)]);_0x46a7e2&&(this[_0x485c69(0x20b)]=_0x46a7e2['getDrawingPoints']()),this[_0x485c69(0x3e3)](),this[_0x485c69(0x434)](!0x0);}else this[_0x485c69(0x1f0)]();}else this[_0x485c69(0x1f0)]();}else this[_0x485c69(0x1f0)]();})),this[_0x107859(0x1c6)](this[_0x107859(0x2f1)]['update$'][_0x107859(0x1ff)](_0x2b90c4=>{const _0x5e3337=_0x107859;if(_0x2b90c4[_0x5e3337(0x46d)]===0x1){let _0x50238a=_0x2b90c4[0x0],_0x3dcfc4=this['_drawingManagerService'][_0x5e3337(0x31f)](_0x50238a);(_0x3dcfc4==null?void 0x0:_0x3dcfc4[_0x5e3337(0x221)])===_0x204a86['DRAWING_IMAGE']&&this[_0x5e3337(0x1ee)]===_0x50238a[_0x5e3337(0x35b)]&&(this[_0x5e3337(0x3e3)](),this['_createControls'](!0x0));}})),this[_0x107859(0x1c6)](this['_drawingManagerService'][_0x107859(0x2f6)][_0x107859(0x1ff)](_0x173c43=>{const _0x47ea09=_0x107859;for(let _0x3e0716 of _0x173c43)this[_0x47ea09(0x1ee)]===_0x3e0716[_0x47ea09(0x35b)]&&this[_0x47ea09(0x1f0)]();}));}[_0x40a3e1(0x1f0)](){const _0x4f8ee8=_0x40a3e1;this[_0x4f8ee8(0x1ee)]=null,this[_0x4f8ee8(0x34f)]=null,this[_0x4f8ee8(0x465)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x4f8ee8(0x3e3)]();}};Xi=X([Y(0x1,_0x2d58e3),Y(0x2,_0x34f57e(_0x5a17c7)),Y(0x3,_0x3a3cc8),Y(0x4,_0x34f57e(Q))],Xi);function Zi(_0x2c9911){const _0x23bed7=_0x40a3e1;return _0x2c9911[_0x23bed7(0x24b)]()||void 0x0;}function Qi(_0x20a4ae,_0x50a64c,_0x55fc8b){const _0x5d8091=_0x40a3e1;var _0x3a3b9a;return((_0x3a3b9a=_0x20a4ae[_0x5d8091(0x445)])==null?void 0x0:_0x3a3b9a[_0x5d8091(0x24b)]())||_0x55fc8b['t']('drawing-ui.objectListPanel.typeNames.'+_0x5d4a8c(_0x20a4ae[_0x5d8091(0x221)]))+'\x20'+(_0x50a64c+0x1);}function $i({PanelComponent:_0x4eb32d=_0x2814d9}){const _0xc9b28b=_0x40a3e1;var _0x4c73c8;let _0x4de0c6=_0x3911a9(_0x1fc669),_0x147088={'title':_0x4de0c6['t'](_0xc9b28b(0x3ea)),'empty':_0x4de0c6['t']('drawing-ui.objectListPanel.empty'),'showAll':_0x4de0c6['t'](_0xc9b28b(0x273)),'hideAll':_0x4de0c6['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x4de0c6['t'](_0xc9b28b(0x22f)),'unlockAll':_0x4de0c6['t'](_0xc9b28b(0x1c7)),'moveForward':_0x4de0c6['t'](_0xc9b28b(0x3aa)),'moveBackward':_0x4de0c6['t'](_0xc9b28b(0x2ec)),'close':_0x4de0c6['t']('drawing-ui.objectListPanel.close'),'show':_0x4de0c6['t'](_0xc9b28b(0x252)),'hide':_0x4de0c6['t'](_0xc9b28b(0x2b7)),'lock':_0x4de0c6['t'](_0xc9b28b(0x421)),'unlock':_0x4de0c6['t'](_0xc9b28b(0x327)),'lockHint':_0x4de0c6['t'](_0xc9b28b(0x215)),'unlockHint':_0x4de0c6['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0x4de0c6['t'](_0xc9b28b(0x2af)),'nameInput':_0x4de0c6['t']('drawing-ui.objectListPanel.nameInput'),'description':_0x4de0c6['t']('drawing-ui.objectListPanel.description'),'descriptionPlaceholder':_0x4de0c6['t'](_0xc9b28b(0x328)),'details':_0x4de0c6['t'](_0xc9b28b(0x22d)),'noSelection':_0x4de0c6['t'](_0xc9b28b(0x35e)),'locate':_0x4de0c6['t'](_0xc9b28b(0x402)),'expand':_0x4de0c6['t'](_0xc9b28b(0x1f6)),'collapse':_0x4de0c6['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0x4de0c6['t'](_0xc9b28b(0x214)),'search':_0x4de0c6['t'](_0xc9b28b(0x3d1)),'filterAll':_0x4de0c6['t'](_0xc9b28b(0x431)),'filterHidden':_0x4de0c6['t'](_0xc9b28b(0x20e)),'filterLocked':_0x4de0c6['t']('drawing-ui.objectListPanel.filterLocked'),'sectionCanvas':_0x4de0c6['t'](_0xc9b28b(0x36c)),'sectionFloating':_0x4de0c6['t'](_0xc9b28b(0x382))},_0x50b035=_0x3911a9(_0x3a4817),_0x203a36=_0x3911a9(_0x3a3cc8),_0x3e656f=_0x3911a9(_0x40f806),_0x5953a1=_0x3911a9(_0x2d58e3),_0x59c367=_0x3911a9(_0x5a17c7),[,_0x20981c]=_0x4d2c52(_0x49778e=>_0x49778e+0x1,0x0),_0x77936f=_0x203a36[_0xc9b28b(0x2ad)](_0x2f72d4[_0xc9b28b(0x2ce)]),_0xba3cd0=(_0x77936f==null?void 0x0:_0x77936f[_0xc9b28b(0x2ae)]())??'',_0x4670db=(_0x77936f==null||(_0x4c73c8=_0x77936f[_0xc9b28b(0x41e)]())==null?void 0x0:_0x4c73c8[_0xc9b28b(0x418)]())??'',_0x9d97d7=_0x17fdf6(()=>_0x5953a1[_0xc9b28b(0x2f5)],_0x5953a1[_0xc9b28b(0x23d)](),!0x1,[_0x5953a1]);_0x4f4595(()=>{const _0xf5e5a1=_0xc9b28b;let _0x4cebb8=_0x50b035[_0xf5e5a1(0x3a7)](()=>_0x20981c());return()=>_0x4cebb8[_0xf5e5a1(0x223)]();},[_0x50b035]);let _0x2c1cca=_0xba3cd0&&_0x4670db?_0x3e656f[_0xc9b28b(0x1d0)](_0xba3cd0,_0x4670db):{},_0x5e6085=(_0xba3cd0&&_0x4670db?_0x3e656f[_0xc9b28b(0x310)](_0xba3cd0,_0x4670db):[])[_0xc9b28b(0x241)](_0x9a8fa8=>_0x2c1cca[_0x9a8fa8])[_0xc9b28b(0x385)](_0x4cdf8f=>!!_0x4cdf8f)[_0xc9b28b(0x3b5)](),_0x12c28f=_0x5e6085['reduce']((_0x5c80bb,_0x374667)=>(_0x5c80bb[_0x295780(_0x374667['drawingType'])]+=0x1,_0x5c80bb),{'canvas':0x0,'floating':0x0}),_0x5cd7c3={'canvas':0x0,'floating':0x0},_0x342f79=_0x5e6085[_0xc9b28b(0x241)]((_0x3d2669,_0x1b7830)=>{const _0x41d540=_0xc9b28b;let _0x1a46e0=_0x295780(_0x3d2669[_0x41d540(0x221)]),_0x448ebb=_0x1a46e0===_0x4460bf,_0x161669=_0x5cd7c3[_0x1a46e0]++;return{'id':_0x3d2669[_0x41d540(0x35b)],'name':Qi(_0x3d2669,_0x1b7830,_0x4de0c6),'description':_0x3d2669['description'],'visible':_0x3d2669[_0x41d540(0x44e)]!==!0x0,'selectable':_0x3d2669[_0x41d540(0x3b8)]!==!0x1,'sectionId':_0x1a46e0,'sectionTitle':_0x448ebb?_0x147088[_0x41d540(0x262)]:_0x147088[_0x41d540(0x299)],'capabilities':_0x448ebb?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x448ebb&&_0x161669>0x0,'canMoveBackward':!_0x448ebb&&_0x161669<_0x12c28f[_0x41d540(0x2e2)]-0x1,'canReorder':!_0x448ebb};}),_0x1642b7=_0x21a1e7(()=>(_0x9d97d7??[])[_0xc9b28b(0x385)](_0x10af1b=>_0x10af1b['unitId']===_0xba3cd0&&_0x10af1b['subUnitId']===_0x4670db)[_0xc9b28b(0x241)](_0x15292f=>_0x15292f[_0xc9b28b(0x35b)]),[_0x9d97d7,_0x4670db,_0xba3cd0]),_0x5f586a=_0x1642b7[_0x1642b7['length']-0x1]??null,_0x2c38d6=_0x30c490=>_0x3e656f[_0xc9b28b(0x31f)]({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x30c490})??null,_0x4def3d=async _0x4a477b=>{const _0x2ef0ce=_0xc9b28b;_0xba3cd0&&_0x4a477b[_0x2ef0ce(0x46d)]&&await _0x50b035['executeCommand'](_0x33b43a['id'],{'unitId':_0xba3cd0,'drawings':_0x4a477b});},_0x1c90b9=async(_0x5ee18c,_0x3d44d7)=>{_0x2c38d6(_0x5ee18c)&&await _0x4def3d([{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x5ee18c,..._0x3d44d7}]);},_0x5d724a=(_0x36bac1,_0x5789fe)=>{const _0x64463b=_0xc9b28b;if(!_0xba3cd0||!_0x4670db)return;let _0x22f2a6=_0x5789fe?_0x1642b7[_0x64463b(0x3d7)](_0x36bac1)?_0x1642b7['filter'](_0x19edcc=>_0x19edcc!==_0x36bac1):[..._0x1642b7,_0x36bac1]:[_0x36bac1];_0x50b035['syncExecuteCommand'](_0x5bb1f9['id'],_0x22f2a6[_0x64463b(0x241)](_0x4f7e33=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x4f7e33})));let _0x5629a4=_0x22f2a6[_0x22f2a6['length']-0x1];_0x5629a4?_0x5312c2(_0x59c367,{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x5629a4}):_0x1da64c(_0x59c367,_0xba3cd0);},_0x2a8053=async(_0x2417cf,_0x5ce29f)=>{const _0x1cee1b=_0xc9b28b;await _0x4def3d(_0x2417cf[_0x1cee1b(0x241)](_0x5cef8a=>_0x2c38d6(_0x5cef8a))['filter'](_0x42c2bc=>!!_0x42c2bc)['filter'](_0x588aac=>_0x588aac['hidden']!==!0x0!==_0x5ce29f)[_0x1cee1b(0x241)](_0x14f1a3=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x14f1a3[_0x1cee1b(0x35b)],'hidden':!_0x5ce29f})));},_0x38f03e=async(_0x1e0197,_0x3a7614)=>{const _0x5b0446=_0xc9b28b;await _0x4def3d(_0x1e0197['map'](_0x6d2b4c=>_0x2c38d6(_0x6d2b4c))[_0x5b0446(0x385)](_0x448aed=>!!_0x448aed)[_0x5b0446(0x385)](_0x1bfd60=>_0x1bfd60[_0x5b0446(0x3b8)]!==!0x1!==_0x3a7614)[_0x5b0446(0x241)](_0x1e1a96=>({'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingId':_0x1e1a96[_0x5b0446(0x35b)],'selectable':_0x3a7614})));},_0x27f1bb=_0x319555=>{const _0xc46e5b=_0xc9b28b;let _0x32886b=_0x2c38d6(_0x319555);if(_0x32886b)return _0x38f03e([_0x319555],_0x32886b[_0xc46e5b(0x3b8)]===!0x1);},_0x3fc2ee=async(_0x5013f4,_0x11f009)=>{const _0x3461e1=_0xc9b28b;var _0x54fd58;let _0x25f424=Zi(_0x11f009);(((_0x54fd58=_0x2c38d6(_0x5013f4))==null?void 0x0:_0x54fd58[_0x3461e1(0x445)])??void 0x0)!==_0x25f424&&await _0x1c90b9(_0x5013f4,{'name':_0x25f424});},_0x1fc206=async(_0x10fd56,_0xf725fb)=>{var _0x5c3cb6;let _0x284da6=Zi(_0xf725fb);(((_0x5c3cb6=_0x2c38d6(_0x10fd56))==null?void 0x0:_0x5c3cb6['description'])??void 0x0)!==_0x284da6&&await _0x1c90b9(_0x10fd56,{'description':_0x284da6});},_0x340710=async(_0x1e83c8,_0x5dbf02)=>{const _0x129dd2=_0xc9b28b;_0xba3cd0&&_0x4670db&&await _0x50b035[_0x129dd2(0x2d5)](_0x5a5e2c['id'],{'unitId':_0xba3cd0,'subUnitId':_0x4670db,'drawingIds':[_0x1e83c8],'arrangeType':_0x5dbf02});};return!_0xba3cd0||!_0x4670db?_0xf2bc1d(_0xc9b28b(0x1b8),{'className':'univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x147088[_0xc9b28b(0x296)]}):_0xf2bc1d(_0x4eb32d,{'labels':_0x147088,'items':_0x342f79,'selectedIds':_0x1642b7,'focusedId':_0x5f586a,'showHeader':!0x1,'onSelect':_0x5d724a,'onSetVisible':_0x2a8053,'onSetSelectable':_0x38f03e,'onCommitName':_0x3fc2ee,'onCommitDescription':_0x1fc206,'onMoveForward':async _0x609396=>_0x340710(_0x609396,_0x387bee[_0xc9b28b(0x41b)]),'onMoveBackward':async _0x4d31bd=>_0x340710(_0x4d31bd,_0x387bee[_0xc9b28b(0x2bd)]),'onToggleSelectable':_0x27f1bb});}function ea(){return _0xf2bc1d($i,{'PanelComponent':_0x320793});}let ta=class extends _0x1f1ba9{constructor(_0x12160a,_0x45544d){const _0x36cf84=_0x40a3e1;super(),this[_0x36cf84(0x1c6)](_0x12160a[_0x36cf84(0x3f1)](Rr,ea)),this[_0x36cf84(0x1c6)](_0x45544d[_0x36cf84(0x3f1)]({'BottomIcon':_0x5aa288,'FlipHorizontalIcon':_0x4ef5a4,'FlipVerticalIcon':_0x132c9b,'MoveDownIcon':_0x560a3c,'MoveUpIcon':_0x543917,'ObjectLayersIcon':_0x351aa4,'ShapeFormatSettingIcon':_0x4333c8,'TopmostIcon':_0x41d425})),this['disposeWithMe'](_0x12160a[_0x36cf84(0x3f1)](Jr,ti)),this[_0x36cf84(0x1c6)](_0x12160a['register'](Yr,Qr)),_0x12160a[_0x36cf84(0x430)](_0x48abb2)||this['disposeWithMe'](_0x12160a['register'](_0x48abb2,$r));}};ta=X([Y(0x0,_0x34f57e(_0x203616)),Y(0x1,_0x34f57e(_0x3141ce))],ta);let $=class extends _0x1f1ba9{constructor(_0xbe5c17){const _0x161e1c=_0x40a3e1;super(),this[_0x161e1c(0x363)]=_0xbe5c17,q(this,'_editingParams$',new _0x1343c7(null)),q(this,_0x161e1c(0x342),this[_0x161e1c(0x236)]['asObservable']()),q(this,_0x161e1c(0x2a1),new _0x1343c7(!0x1)),q(this,_0x161e1c(0x32d),this[_0x161e1c(0x2a1)]['asObservable']()),q(this,'_completionFrame',void 0x0),this[_0x161e1c(0x1c6)](this[_0x161e1c(0x363)][_0x161e1c(0x373)][_0x161e1c(0x1ff)](()=>{const _0x2ac22c=_0x161e1c;let _0xab35d=this[_0x2ac22c(0x24f)]();_0xab35d!=null&&_0xab35d[_0x2ac22c(0x3e8)]&&!this[_0x2ac22c(0x3ac)](_0xab35d)&&this[_0x2ac22c(0x29d)](null);}));}[_0x40a3e1(0x223)](){const _0xf2424d=_0x40a3e1;this[_0xf2424d(0x3c2)](),this[_0xf2424d(0x236)][_0xf2424d(0x24c)](null),this[_0xf2424d(0x236)][_0xf2424d(0x313)](),this['_onSavingEditorData$'][_0xf2424d(0x24c)](!0x1),this['_onSavingEditorData$'][_0xf2424d(0x313)](),super['dispose']();}['setEditing'](_0x2cfcd2){const _0x3e710b=_0x40a3e1;(_0x2cfcd2==null||!_0x2cfcd2[_0x3e710b(0x3e8)]||this[_0x3e710b(0x3ac)](_0x2cfcd2))&&(this[_0x3e710b(0x3c2)](),this['_editingParams$'][_0x3e710b(0x24c)](_0x2cfcd2),(_0x2cfcd2==null||_0x2cfcd2['visible']&&this['_onSavingEditorData$'][_0x3e710b(0x345)]())&&this[_0x3e710b(0x2a1)]['next'](!0x1));}[_0x40a3e1(0x47c)](_0x4a2872){const _0x134c63=_0x40a3e1;this[_0x134c63(0x2a1)][_0x134c63(0x24c)](_0x4a2872);}['getEditing'](){const _0x2ca389=_0x40a3e1;return this[_0x2ca389(0x236)][_0x2ca389(0x345)]();}['_canEdit'](_0x41f628){const _0x443bcf=_0x40a3e1;let _0x54ec26=this[_0x443bcf(0x363)]['getPermissionPoint'](new _0x3edb9a(_0x41f628[_0x443bcf(0x43a)])['id']),_0x169c5c=this['_permissionService'][_0x443bcf(0x287)](new _0x2e8354(_0x41f628['unitId'],_0x41f628[_0x443bcf(0x330)])['id']);return((_0x54ec26==null?void 0x0:_0x54ec26['value'])??!0x0)&&((_0x169c5c==null?void 0x0:_0x169c5c[_0x443bcf(0x437)])??!0x0);}[_0x40a3e1(0x2a5)](_0x17935b){const _0x5197ce=_0x40a3e1;let _0x38eea1=this['getEditing']();_0x38eea1&&this[_0x5197ce(0x364)]===void 0x0&&(this[_0x5197ce(0x47c)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x1cf7bf=_0x5197ce;this['_completionFrame']=void 0x0,this[_0x1cf7bf(0x24f)]()===_0x38eea1&&this[_0x1cf7bf(0x29d)](null);}));}['_clearCompletionFrame'](){const _0x19e2a3=_0x40a3e1;this[_0x19e2a3(0x364)]!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x19e2a3(0x364)]=void 0x0);}['cancelEditing'](){const _0xe48430=_0x40a3e1;this['getEditing']()&&this[_0xe48430(0x29d)](null);}};$=X([Y(0x0,_0x579508)],$);let na=class extends _0x1f1ba9{constructor(_0x1a887b,_0x3b86a4,_0x3af857,_0x4ec830,_0x5a2bf1,_0xea44b8){const _0x294776=_0x40a3e1;super(),this['_context']=_0x1a887b,this[_0x294776(0x315)]=_0x3b86a4,this['_shapeTextEditingService']=_0x3af857,this[_0x294776(0x2f1)]=_0x4ec830,this['_contextService']=_0x5a2bf1,this[_0x294776(0x285)]=_0xea44b8,q(this,_0x294776(0x26b),null),this['_initEvents'](),this[_0x294776(0x2e3)](),this[_0x294776(0x20a)]();}[_0x40a3e1(0x30a)](){const _0x2f74d5=_0x40a3e1;let {scene:_0xf059ef}=this[_0x2f74d5(0x40b)];this[_0x2f74d5(0x1c6)](_0xf059ef[_0x2f74d5(0x267)][_0x2f74d5(0x42f)](_0x1ed99e=>{const _0x7d0977=_0x2f74d5;let {offsetX:_0x13e057,offsetY:_0x7bdda3}=_0x1ed99e,_0x1eba7d=_0xf059ef[_0x7d0977(0x479)](_0x1e9d06[_0x7d0977(0x3c3)]([_0x13e057,_0x7bdda3]));if(_0x1eba7d instanceof J){let _0x487032=this[_0x7d0977(0x285)][_0x7d0977(0x3f9)](_0x1eba7d[_0x7d0977(0x43a)],_0x1eba7d[_0x7d0977(0x330)],_0x1eba7d[_0x7d0977(0x464)]);if(_0x421dc8(this[_0x7d0977(0x285)][_0x7d0977(0x3e1)](_0x1eba7d['unitId'],_0x1eba7d[_0x7d0977(0x330)],_0x1eba7d[_0x7d0977(0x464)]))||_0x487032!=null&&_0x487032[_0x7d0977(0x295)]()['formulaBinding'])return;this[_0x7d0977(0x218)][_0x7d0977(0x29d)]({'visible':!0x0,'unitId':_0x1eba7d['unitId'],'subUnitId':_0x1eba7d[_0x7d0977(0x330)],'shapeId':_0x1eba7d[_0x7d0977(0x464)],'shapeKey':_0x1eba7d[_0x7d0977(0x39f)]});}}));}[_0x40a3e1(0x2e3)](){const _0x49875f=_0x40a3e1;this[_0x49875f(0x1c6)](this['_drawingManagerService']['focus$'][_0x49875f(0x1ff)](_0x12a6e6=>{const _0x335196=_0x49875f;if(_0x12a6e6[_0x335196(0x46d)]===0x1){let _0x45d0df=_0x12a6e6[0x0],_0xdcf151=this[_0x335196(0x2f1)][_0x335196(0x31f)](_0x45d0df);if((_0xdcf151==null?void 0x0:_0xdcf151[_0x335196(0x221)])===_0x204a86['DRAWING_SHAPE']){var _0x278b7f;let _0x16920c=this[_0x335196(0x218)][_0x335196(0x24f)]();if((_0x16920c==null?void 0x0:_0x16920c[_0x335196(0x464)])===_0x45d0df['drawingId']&&_0x16920c[_0x335196(0x3e8)])return;let _0x44047b=_0x421dc8(this[_0x335196(0x285)][_0x335196(0x3e1)](_0x45d0df[_0x335196(0x43a)],_0x45d0df[_0x335196(0x330)],_0x45d0df[_0x335196(0x35b)])),_0x1d4d21=!!((_0x278b7f=this[_0x335196(0x285)][_0x335196(0x3f9)](_0x45d0df[_0x335196(0x43a)],_0x45d0df[_0x335196(0x330)],_0x45d0df[_0x335196(0x35b)]))!=null&&_0x278b7f['getShapeData']()[_0x335196(0x40f)]);(_0x44047b||_0x1d4d21)&&this[_0x335196(0x218)][_0x335196(0x29d)](null);}else this[_0x335196(0x218)][_0x335196(0x2a5)]();}else this[_0x335196(0x218)][_0x335196(0x2a5)]();})),this[_0x49875f(0x1c6)](this['_drawingManagerService']['remove$'][_0x49875f(0x1ff)](_0x3d1c5a=>{const _0x16502f=_0x49875f;let _0x507ff9=this['_shapeTextEditingService'][_0x16502f(0x24f)]();_0x507ff9&&_0x3d1c5a[_0x16502f(0x435)](_0x187d7b=>_0x187d7b[_0x16502f(0x35b)]===_0x507ff9[_0x16502f(0x464)])&&this[_0x16502f(0x218)][_0x16502f(0x29d)](null);}));}[_0x40a3e1(0x20a)](){const _0x5a6b4f=_0x40a3e1;this[_0x5a6b4f(0x1c6)](this[_0x5a6b4f(0x218)]['editingParams$'][_0x5a6b4f(0x1ff)](_0x846c06=>{const _0x5e8ee1=_0x5a6b4f;let {scene:_0x1665ed}=this['_context'];if(this[_0x5e8ee1(0x26b)]){let _0xc695d6=_0x1665ed[_0x5e8ee1(0x2d2)](this[_0x5e8ee1(0x26b)]);_0xc695d6&&_0xc695d6[_0x5e8ee1(0x29d)](!0x1);}if(_0x846c06){let _0x246e40=!!_0x846c06[_0x5e8ee1(0x3e8)],_0x19b797=_0x1665ed[_0x5e8ee1(0x2d2)](_0x846c06[_0x5e8ee1(0x3f3)]);_0x19b797&&(_0x19b797[_0x5e8ee1(0x29d)](_0x246e40),this['_lastEditingShapeKey']=_0x846c06[_0x5e8ee1(0x3f3)]),this[_0x5e8ee1(0x394)][_0x5e8ee1(0x1f4)](_0x22723e,_0x246e40);}else this[_0x5e8ee1(0x26b)]=null,this[_0x5e8ee1(0x394)][_0x5e8ee1(0x1f4)](_0x22723e,!0x1);}));}};na=X([Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x34f57e($)),Y(0x3,_0x2d58e3),Y(0x4,_0x264df0),Y(0x5,_0x34f57e(_0x25eee4))],na);var ra=class extends na{[_0x40a3e1(0x30a)](){const _0x420b9b=_0x40a3e1;let {scene:_0x44a5aa}=this[_0x420b9b(0x40b)],_0x5ea2d3=this[_0x420b9b(0x315)][_0x420b9b(0x270)](_0xd18c3c);this[_0x420b9b(0x1c6)](_0x44a5aa[_0x420b9b(0x267)][_0x420b9b(0x42f)](_0x45600a=>{const _0x26f552=_0x420b9b;let {offsetX:_0x56dc86,offsetY:_0x2f7727}=_0x45600a,_0x19a077=_0x44a5aa[_0x26f552(0x479)](_0x1e9d06[_0x26f552(0x3c3)]([_0x56dc86,_0x2f7727]));if(!(_0x19a077 instanceof J))return;let _0x1f6263=this[_0x26f552(0x285)][_0x26f552(0x3f9)](_0x19a077[_0x26f552(0x43a)],_0x19a077[_0x26f552(0x330)],_0x19a077[_0x26f552(0x464)]);_0x421dc8(this[_0x26f552(0x285)][_0x26f552(0x3e1)](_0x19a077[_0x26f552(0x43a)],_0x19a077[_0x26f552(0x330)],_0x19a077[_0x26f552(0x464)]))||_0x1f6263!=null&&_0x1f6263[_0x26f552(0x295)]()[_0x26f552(0x40f)]||_0x5ea2d3[_0x26f552(0x361)]('text',{'hostType':_0x2f72d4[_0x26f552(0x2ce)],'unitId':_0x19a077[_0x26f552(0x43a)],'subUnitId':_0x19a077['subUnitId'],'shapeId':_0x19a077['shapeId']});}));}};const ia={...Ui};let aa=class extends _0x1f1ba9{constructor(_0xe64c4b,_0x5036d5,_0x48855b,_0xe73561,_0x1f7610,_0x1bca94,_0x2713e1,_0x1dd501){const _0x5f2f55=_0x40a3e1;super(),this[_0x5f2f55(0x246)]=_0xe64c4b,this[_0x5f2f55(0x285)]=_0x5036d5,this['_commandService']=_0x48855b,this['_drawingManagerService']=_0xe73561,this[_0x5f2f55(0x331)]=_0x1f7610,this[_0x5f2f55(0x394)]=_0x1bca94,this['_renderManagerService']=_0x2713e1,this[_0x5f2f55(0x218)]=_0x1dd501,q(this,'_shapePopupMenuDisposable',null),this[_0x5f2f55(0x246)][_0x5f2f55(0x227)](ia),this[_0x5f2f55(0x242)](),this[_0x5f2f55(0x1c6)](this[_0x5f2f55(0x218)][_0x5f2f55(0x342)][_0x5f2f55(0x1ff)](_0x2e942a=>{const _0x194409=_0x5f2f55;_0x2e942a&&this[_0x194409(0x2c1)]();}));}[_0x40a3e1(0x33e)](){const _0x56a050=_0x40a3e1;this[_0x56a050(0x35d)]||=this['disposeWithMe'](_0x429510(this[_0x56a050(0x258)],_0x2f72d4[_0x56a050(0x2ce)],_0x2cbed4=>this[_0x56a050(0x1c3)](_0x2cbed4)));}[_0x40a3e1(0x242)](){const _0x59cd52=_0x40a3e1;this[_0x59cd52(0x331)]['registerFeatureMenu'](_0x204a86[_0x59cd52(0x41a)],(_0x53d765,_0x447a8e,_0x1690e9,_0x81ce3f)=>{const _0x58eab4=_0x59cd52;let _0x51eebe=this[_0x58eab4(0x285)][_0x58eab4(0x38a)](_0x53d765,_0x447a8e,_0x1690e9),_0x20ef63=this[_0x58eab4(0x285)][_0x58eab4(0x1df)](_0x53d765,_0x447a8e,_0x1690e9),_0x215945=_0x51eebe!==void 0x0&&!_0x421dc8(_0x51eebe)&&!(_0x20ef63!=null&&_0x20ef63['formulaBinding']);return[{'label':_0x58eab4(0x1e7),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'mode':_0x58eab4(0x467)},'disable':!0x1},..._0x215945?[{'label':'sheets-shape-ui.editText','index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'mode':_0x58eab4(0x319)},'disable':!0x1}]:[],{'label':_0x58eab4(0x1cd),'index':0x2,'commandId':_0x2982ca['id'],'commandParams':{'unitId':_0x53d765,'drawings':[{'unitId':_0x53d765,'subUnitId':_0x447a8e,'drawingId':_0x1690e9,'drawingType':_0x81ce3f}]},'disable':!0x1},{'label':'sheets-shape-ui.flipHorizontal','index':0x3,'commandId':_0x559a4e['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'shapeId':_0x1690e9,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x559a4e['id'],'commandParams':{'unitId':_0x53d765,'subUnitId':_0x447a8e,'shapeId':_0x1690e9,'flipV':!0x0},'disable':!0x1}];},_0x59cd52(0x3af));}[_0x40a3e1(0x1c3)](_0x22f349){const _0x343db2=_0x40a3e1;let _0x18c889=new _0x2bf40d(),_0xe754e1=null,_0x3f82fb=()=>{const _0xc5e430=_0x214c;if(!_0xe754e1)return;let _0x571e0e=this['_drawingManagerService'][_0xc5e430(0x23d)](),_0x216efe=_0x571e0e['length']===0x0||_0x571e0e[_0xc5e430(0x46d)]===0x1&&_0x571e0e[_0xc5e430(0x435)](_0x3233ca=>_0x3233ca[_0xc5e430(0x43a)]===(_0xe754e1==null?void 0x0:_0xe754e1[_0xc5e430(0x43a)])&&_0x3233ca[_0xc5e430(0x330)]===(_0xe754e1==null?void 0x0:_0xe754e1['subUnitId'])&&_0x3233ca['drawingId']===(_0xe754e1==null?void 0x0:_0xe754e1[_0xc5e430(0x35b)]));_0xe754e1=null,_0x216efe&&(this['_contextService'][_0xc5e430(0x1f4)](_0x4c4f0c,!0x1),this[_0xc5e430(0x2f1)][_0xc5e430(0x40e)](null));};return _0x18c889[_0x343db2(0x38e)](_0x22f349[_0x343db2(0x3b1)]['subscribe'](()=>{const _0x2e070b=_0x343db2;let _0x2151fc=_0x22f349[_0x2e070b(0x307)]();if(_0x2151fc[_0x2e070b(0x219)]>0x1){_0x3f82fb();return;}let _0xf49576=_0x2151fc[_0x2e070b(0x209)]()[_0x2e070b(0x24c)]()[_0x2e070b(0x437)];if(!_0xf49576){_0x3f82fb();return;}let _0x5c4f57=this[_0x2e070b(0x2f1)][_0x2e070b(0x1dd)](_0xf49576[_0x2e070b(0x39f)]);if(!_0x5c4f57||_0x5c4f57[_0x2e070b(0x221)]!==_0x204a86[_0x2e070b(0x41a)]){_0x3f82fb();return;}let {unitId:_0x5aa240,subUnitId:_0x3d1853,drawingId:_0x53135e}=_0x5c4f57;_0xe754e1={'unitId':_0x5aa240,'subUnitId':_0x3d1853,'drawingId':_0x53135e},this[_0x2e070b(0x394)][_0x2e070b(0x1f4)](_0x4c4f0c,!0x0),this['_drawingManagerService'][_0x2e070b(0x23d)]()[_0x2e070b(0x278)](_0xd639b3=>_0xd639b3[_0x2e070b(0x43a)]===_0x5aa240&&_0xd639b3[_0x2e070b(0x330)]===_0x3d1853&&_0xd639b3[_0x2e070b(0x35b)]===_0x53135e)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x5aa240,'subUnitId':_0x3d1853,'drawingId':_0x53135e}]);})),_0x18c889[_0x343db2(0x38e)](_0x22f349[_0x343db2(0x1e6)][_0x343db2(0x1ff)](()=>{_0x3f82fb();})),_0x35229e(()=>{const _0x3ea5d9=_0x343db2;_0x18c889[_0x3ea5d9(0x223)](),_0x3f82fb();});}[_0x40a3e1(0x2c1)](){const _0x3e5047=_0x40a3e1;this[_0x3e5047(0x394)][_0x3e5047(0x1f4)](_0x4c4f0c,!0x1),this[_0x3e5047(0x2f1)]['focusDrawing'](null);}};aa=X([Y(0x0,_0x2a7418),Y(0x1,_0x34f57e(_0x25eee4)),Y(0x2,_0x3a4817),Y(0x3,_0x2d58e3),Y(0x4,_0x34f57e(_0x2bf47d)),Y(0x5,_0x264df0),Y(0x6,_0x5a17c7),Y(0x7,_0x34f57e($))],aa);function oa(_0x47779c,_0x256ae3,_0x272218,_0x1ab3ca){const _0x5eb7c5=_0x40a3e1;let _0x18272b=_0x25a00d(_0x47779c,_0x256ae3,_0x272218),_0x7c0c49=[];for(let _0x25da28 of _0x256ae3){let _0x505b8b=_0x18272b['idMap'][_0x5eb7c5(0x270)](_0x25da28[_0x5eb7c5(0x35b)]),_0x204846=_0x1ab3ca(_0x25da28);_0x505b8b&&_0x204846&&_0x7c0c49[_0x5eb7c5(0x346)]({'targetShapeId':_0x505b8b,'source':_0x204846});}return _0x7c0c49;}let sa=class extends _0x1f1ba9{constructor(_0x3c3663,_0x192ded,_0x1ed558,_0x148098){const _0xb466d5=_0x40a3e1;super(),this[_0xb466d5(0x2c3)]=_0x3c3663,this['_sheetInterceptorService']=_0x192ded,this[_0xb466d5(0x410)]=_0x1ed558,this[_0xb466d5(0x285)]=_0x148098,this[_0xb466d5(0x28a)]();}[_0x40a3e1(0x28a)](){const _0x1dc79f=_0x40a3e1;this['disposeWithMe'](this['_sheetInterceptorService'][_0x1dc79f(0x250)]({'getMutations':_0x561733=>{const _0x40ae7c=_0x1dc79f;if(_0x561733['id']===_0x590306['id']){let _0x1c8cdf=_0x1eaf70(this[_0x40ae7c(0x2c3)],_0x561733[_0x40ae7c(0x1fa)]);if(!_0x1c8cdf)return{'redos':[],'undos':[]};let {unitId:_0x336048,subUnitId:_0xfaf2f3}=_0x1c8cdf,_0x26a1b8=this[_0x40ae7c(0x410)][_0x40ae7c(0x1d0)](_0x336048,_0xfaf2f3),_0x552487=Object[_0x40ae7c(0x209)](_0x26a1b8)['filter'](_0x393065=>_0x393065[_0x40ae7c(0x221)]===_0x204a86['DRAWING_SHAPE']);if(_0x552487[_0x40ae7c(0x46d)]===0x0)return{'redos':[],'undos':[]};let _0x3e1046=[],_0x52a841=[];for(let _0x39fedc=0x0;_0x39fedc<_0x552487[_0x40ae7c(0x46d)];_0x39fedc++){let _0x24fbcd=_0x552487[_0x39fedc],_0x186bb5=this[_0x40ae7c(0x285)][_0x40ae7c(0x3f9)](_0x24fbcd[_0x40ae7c(0x43a)],_0x24fbcd[_0x40ae7c(0x330)],_0x24fbcd['drawingId']);_0x186bb5&&(_0x3e1046['push']({'id':_0x950b4f['id'],'params':{'unitId':_0x336048,'subUnitId':_0xfaf2f3,'shapeId':_0x24fbcd[_0x40ae7c(0x35b)]}}),_0x52a841[_0x40ae7c(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x336048,'subUnitId':_0xfaf2f3,'shapeId':_0x24fbcd[_0x40ae7c(0x35b)],'shapeType':_0x186bb5[_0x40ae7c(0x3e1)](),'shapeData':JSON[_0x40ae7c(0x424)](JSON[_0x40ae7c(0x3a9)](_0x186bb5[_0x40ae7c(0x295)]()))}}));}return{'redos':_0x3e1046,'undos':_0x52a841};}if(_0x561733['id']===_0x143b18['id']){let {unitId:_0x1dbf6a,subUnitId:_0xff61e,targetSubUnitId:_0x5caaf9,copyContext:_0x27ea4c}=_0x561733[_0x40ae7c(0x1fa)];if(!_0x1dbf6a||!_0xff61e||!_0x5caaf9)return{'redos':[],'undos':[]};let _0x3c42a1=this[_0x40ae7c(0x410)]['getDrawingData'](_0x1dbf6a,_0xff61e),_0x5278b5=Object[_0x40ae7c(0x209)](_0x3c42a1)[_0x40ae7c(0x385)](_0x174ce0=>_0x174ce0[_0x40ae7c(0x221)]===_0x204a86[_0x40ae7c(0x41a)]);if(_0x5278b5[_0x40ae7c(0x46d)]===0x0)return{'redos':[],'undos':[]};let _0xf2a64a=oa(_0x27ea4c,_0x5278b5,{'unitId':_0x1dbf6a,'sourceSubUnitId':_0xff61e,'targetSubUnitId':_0x5caaf9},_0x467f41=>{const _0x4eb16a=_0x40ae7c;let _0x47413b=this['_sheetsShapeService'][_0x4eb16a(0x3f9)](_0x467f41[_0x4eb16a(0x43a)],_0x467f41[_0x4eb16a(0x330)],_0x467f41['drawingId']);if(_0x47413b)return{'shapeType':_0x47413b[_0x4eb16a(0x3e1)](),'shapeData':JSON['parse'](JSON[_0x4eb16a(0x3a9)](_0x47413b[_0x4eb16a(0x295)]()))};}),_0x4aed5d=[],_0x1361d4=[];for(let {targetShapeId:_0x1b9b1d,source:_0x13b927}of _0xf2a64a)_0x4aed5d[_0x40ae7c(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x1dbf6a,'subUnitId':_0x5caaf9,'shapeId':_0x1b9b1d,'shapeType':_0x13b927[_0x40ae7c(0x1bc)],'shapeData':_0x13b927[_0x40ae7c(0x1eb)]}}),_0x1361d4[_0x40ae7c(0x346)]({'id':_0x950b4f['id'],'params':{'unitId':_0x1dbf6a,'subUnitId':_0x5caaf9,'shapeId':_0x1b9b1d}});return{'redos':_0x4aed5d,'undos':_0x1361d4};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x34f57e(_0x3a3cc8)),Y(0x1,_0x34f57e(_0x20a0fd)),Y(0x2,_0x34f57e(_0x40f806)),Y(0x3,_0x34f57e(_0x25eee4))],sa);let ca=class extends _0x1f1ba9{constructor(_0x470beb,_0x2e95f6,_0x4a9b93,_0x36ce19,_0x551edd,_0x3c34b9){const _0x4f2e5f=_0x40a3e1;super(),this[_0x4f2e5f(0x279)]=_0x470beb,this[_0x4f2e5f(0x258)]=_0x2e95f6,this[_0x4f2e5f(0x2f1)]=_0x4a9b93,this[_0x4f2e5f(0x466)]=_0x36ce19,this['_drawingRenderService']=_0x551edd,this[_0x4f2e5f(0x2c0)]=_0x3c34b9,q(this,_0x4f2e5f(0x397),new Set()),this[_0x4f2e5f(0x2f2)]();}[_0x40a3e1(0x2f2)](){const _0x20610b=_0x40a3e1;this[_0x20610b(0x30f)](),this['_commandExecutedListener'](),this[_0x20610b(0x351)]();}['_drawingAddListener'](){const _0x388e87=_0x40a3e1;this[_0x388e87(0x1c6)](this[_0x388e87(0x2f1)][_0x388e87(0x42b)][_0x388e87(0x1ff)](_0x10aa17=>{this['_insertShapes'](_0x10aa17);}));}[_0x40a3e1(0x207)](){const _0x3e998a=_0x40a3e1;this['disposeWithMe'](this[_0x3e998a(0x279)][_0x3e998a(0x3a7)]((_0x3af2d7,_0x4123a0)=>{const _0x4b4610=_0x3e998a;if(_0x3af2d7['id']===_0x2abe23['id']){let {unitId:_0x3acc38,subUnitId:_0x34db00,shapeId:_0x4c7836}=_0x3af2d7[_0x4b4610(0x1fa)],_0x37e75f=this[_0x4b4610(0x36d)](_0x3acc38),_0x5d4503=_0x4eca2a({'unitId':_0x3acc38,'subUnitId':_0x34db00,'drawingId':_0x4c7836}),_0x1ca358=_0x37e75f==null?void 0x0:_0x37e75f[_0x4b4610(0x25b)][_0x4b4610(0x2d2)](_0x5d4503);_0x1ca358&&(this['_sheetDrawingShapeRenderController'][_0x4b4610(0x3dd)](_0x1ca358),this[_0x4b4610(0x2c0)][_0x4b4610(0x3de)](_0x1ca358,{'unitId':_0x3acc38,'subUnitId':_0x34db00,'shapeId':_0x4c7836}),_0x1ca358[_0x4b4610(0x33f)](!0x0));return;}if(_0x3af2d7['id']===_0x30d486['id']){var _0x2b04c8;let {unitId:_0x13a80b,subUnitId:_0x1f08d1,shapeId:_0x5b7e7e}=_0x3af2d7[_0x4b4610(0x1fa)],_0x316ce7=this[_0x4b4610(0x36d)](_0x13a80b);if(_0x316ce7==null)return;let {scene:_0x1ce24e}=_0x316ce7,_0x41e045=_0x4eca2a({'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}),_0x16e424=_0x1ce24e['getObjectIncludeInGroup'](_0x41e045);if(!((_0x2b04c8=this[_0x4b4610(0x258)]['getRenderUnitById'](_0x13a80b))!=null&&_0x2b04c8['with'](_0x22bccb)[_0x4b4610(0x1d6)](_0x1f08d1)))return!0x1;if(_0x16e424)return;if(_0x4123a0!=null&&_0x4123a0[_0x4b4610(0x403)]){queueMicrotask(()=>{const _0x3b978c=_0x4b4610;this[_0x3b978c(0x31a)]||this[_0x3b978c(0x24e)]([{'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}]);});return;}this[_0x4b4610(0x24e)]([{'unitId':_0x13a80b,'subUnitId':_0x1f08d1,'drawingId':_0x5b7e7e}]);}}));}['_shapeUpdateListener'](){const _0x1bb093=_0x40a3e1;this['disposeWithMe'](this[_0x1bb093(0x2f1)][_0x1bb093(0x2a3)][_0x1bb093(0x1ff)](_0x581b37=>{const _0x240ada=_0x1bb093;_0x581b37[_0x240ada(0x46b)](_0x48b0c7=>{const _0x50b010=_0x240ada;let {unitId:_0x302256,subUnitId:_0x5e0843,drawingId:_0x5b8911}=_0x48b0c7,_0x4c045d=this[_0x50b010(0x2f1)][_0x50b010(0x31f)](_0x48b0c7);if(_0x4c045d==null)return;let {transform:_0x42f10a,drawingType:_0x4f23cb,srcRect:_0x35891c,prstGeom:_0x3c60d2}=_0x4c045d;if(_0x4f23cb!==_0x204a86['DRAWING_SHAPE'])return;let _0x3438df=this[_0x50b010(0x36d)](_0x302256);if(_0x3438df==null)return;let {scene:_0x298291,transformer:_0x253b36}=_0x3438df;if(_0x42f10a==null)return!0x0;let _0x379d40=_0x4eca2a({'unitId':_0x302256,'subUnitId':_0x5e0843,'drawingId':_0x5b8911}),_0x3f4664=_0x298291['getObjectIncludeInGroup'](_0x379d40);if(_0x3f4664==null)return!0x0;_0x3f4664['setSrcRect'](_0x35891c),_0x3f4664[_0x50b010(0x240)](_0x3c60d2);});}));}[_0x40a3e1(0x24e)](_0x40a339){const _0x81c3f5=_0x40a3e1;for(let _0x2eec47 of _0x40a339){var _0x23b519;let {unitId:_0xd25a6f,subUnitId:_0x4a899c,drawingId:_0xaf5b5}=_0x2eec47,_0x112d1a=this['_getSceneAndTransformerByDrawingSearch'](_0xd25a6f),_0x4f737b=(_0x23b519=_0x296f70(this[_0x81c3f5(0x466)],_0xd25a6f))==null?void 0x0:_0x23b519['subUnitId'];if(_0x112d1a==null||_0x4f737b!==_0x4a899c)return;let _0x48582b=_0x4eca2a({'unitId':_0xd25a6f,'subUnitId':_0x4a899c,'drawingId':_0xaf5b5});if(this[_0x81c3f5(0x397)][_0x81c3f5(0x2df)](_0x48582b)||_0x112d1a[_0x81c3f5(0x25b)]['getObjectIncludeInGroup'](_0x48582b)!=null)return;let _0x33eb75=this[_0x81c3f5(0x2f1)][_0x81c3f5(0x31f)](_0x2eec47);if(_0x33eb75==null||_0x33eb75['drawingType']!==_0x204a86['DRAWING_SHAPE'])return;let _0x49860f=_0x33eb75[_0x81c3f5(0x406)]||{};if(_0x421dc8(_0x49860f[_0x81c3f5(0x1bc)])){let _0x190176=_0x33eb75[_0x81c3f5(0x412)];_0x190176&&(_0x33eb75[_0x81c3f5(0x412)]={..._0x190176,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x81c3f5(0x397)][_0x81c3f5(0x38e)](_0x48582b);try{this['_sheetDrawingShapeRenderController'][_0x81c3f5(0x359)](_0x33eb75,_0x112d1a['scene']);}finally{this['_insertingShapeKeys']['delete'](_0x48582b);}queueMicrotask(()=>{const _0x1f22d9=_0x81c3f5;if(this[_0x1f22d9(0x31a)])return;let _0x4a1fd3=_0x4eca2a(_0x2eec47);if(!_0x112d1a[_0x1f22d9(0x25b)][_0x1f22d9(0x2d2)](_0x4a1fd3))return;let _0x103a89=this[_0x1f22d9(0x2f1)][_0x1f22d9(0x31f)](_0x2eec47);_0x103a89&&this['_drawingManagerService']['refreshTransform']([_0x103a89]);});}}['_getSceneAndTransformerByDrawingSearch'](_0x3810fd){const _0xa8ec1e=_0x40a3e1;if(_0x3810fd==null)return;let _0x266186=this[_0xa8ec1e(0x258)][_0xa8ec1e(0x2cf)](_0x3810fd),_0xe5c67a=_0x266186==null?void 0x0:_0x266186[_0xa8ec1e(0x25b)];return _0xe5c67a==null?null:{'scene':_0xe5c67a,'transformer':_0xe5c67a['getTransformerByCreate']()};}};ca=X([Y(0x0,_0x3a4817),Y(0x1,_0x5a17c7),Y(0x2,_0x2d58e3),Y(0x3,_0x3a3cc8),Y(0x4,_0x34f57e(_0xe326a7)),Y(0x5,_0x34f57e(Z))],ca);const la={'normal':{'fill':_0x2c02a7[_0x40a3e1(0x387)],'stroke':_0x2c02a7[_0x40a3e1(0x2b0)],'strokeWidth':_0x2c02a7['cxnPointStrokeWidth']},'highlighted':{'fill':_0x40a3e1(0x259),'stroke':'#1a73e8','strokeWidth':0x2}};var ua=class extends _0x4d9757{constructor(_0x3f9b78,_0x4a4f8f){const _0x36c63e=_0x40a3e1;super(_0x3f9b78,_0x4a4f8f),q(this,'_targetShapeId',''),q(this,'_cxnIndex',-0x1),q(this,'_unitId',''),q(this,_0x36c63e(0x465),''),q(this,_0x36c63e(0x468),!0x1),_0x4a4f8f&&this[_0x36c63e(0x268)](_0x4a4f8f);}[_0x40a3e1(0x257)](){const _0x121f19=_0x40a3e1;return{'unitId':this['_unitId'],'subUnitId':this[_0x121f19(0x465)],'shapeId':this['_targetShapeId'],'cxnIndex':this[_0x121f19(0x1f5)]};}[_0x40a3e1(0x34e)](_0x77b50c){const _0x48f6dd=_0x40a3e1;this[_0x48f6dd(0x468)]!==_0x77b50c&&(this[_0x48f6dd(0x468)]=_0x77b50c,this[_0x48f6dd(0x33f)](!0x0));}[_0x40a3e1(0x39c)](){const _0xdaf1d1=_0x40a3e1;return this[_0xdaf1d1(0x468)];}[_0x40a3e1(0x268)](_0x19e763){const _0x53dbb4=_0x40a3e1;_0x19e763[_0x53dbb4(0x3ee)]!==void 0x0&&(this['_targetShapeId']=_0x19e763[_0x53dbb4(0x3ee)]),_0x19e763[_0x53dbb4(0x3d5)]!==void 0x0&&(this[_0x53dbb4(0x1f5)]=_0x19e763['cxnIndex']),_0x19e763[_0x53dbb4(0x43a)]!==void 0x0&&(this[_0x53dbb4(0x34f)]=_0x19e763[_0x53dbb4(0x43a)]),_0x19e763['subUnitId']!==void 0x0&&(this[_0x53dbb4(0x465)]=_0x19e763[_0x53dbb4(0x330)]),_0x19e763[_0x53dbb4(0x39c)]!==void 0x0&&(this[_0x53dbb4(0x468)]=_0x19e763[_0x53dbb4(0x39c)]),this['transformByState']({'width':_0x19e763[_0x53dbb4(0x294)]??_0x2c02a7[_0x53dbb4(0x314)]*0x2,'height':_0x19e763[_0x53dbb4(0x222)]??_0x2c02a7[_0x53dbb4(0x314)]*0x2});}[_0x40a3e1(0x1ed)](_0x279935){const _0x26508f=_0x40a3e1;let _0x58b2ce=this[_0x26508f(0x468)]?la['highlighted']:la[_0x26508f(0x43d)];_0x597d7e['drawWith'](_0x279935,{'radius':_0x2c02a7[_0x26508f(0x314)],'fill':_0x58b2ce[_0x26508f(0x2fb)],'stroke':_0x58b2ce[_0x26508f(0x453)],'strokeWidth':_0x58b2ce['strokeWidth'],'evented':!0x0});}};let da=class extends _0x1f1ba9{constructor(_0x38626c,_0x4ca4aa,_0x1996b2,_0x196186){const _0x39162e=_0x40a3e1;super(),this[_0x39162e(0x40b)]=_0x38626c,this[_0x39162e(0x258)]=_0x4ca4aa,this[_0x39162e(0x2f1)]=_0x1996b2,this[_0x39162e(0x285)]=_0x196186,q(this,_0x39162e(0x201),[]),q(this,_0x39162e(0x21b),null),q(this,_0x39162e(0x372),-0x1),q(this,_0x39162e(0x1cc),null),q(this,_0x39162e(0x34f),''),q(this,_0x39162e(0x465),''),q(this,_0x39162e(0x3f6),null);}[_0x40a3e1(0x343)](_0x1d51de,_0x583650,_0x24b721,_0x3006e6){const _0x46aa7e=_0x40a3e1;this[_0x46aa7e(0x1cc)]=_0x1d51de,this['_unitId']=_0x583650,this['_subUnitId']=_0x24b721,this[_0x46aa7e(0x3f6)]=_0x3006e6;}[_0x40a3e1(0x29f)](_0xcbce8f){const _0x1ebafc=_0x40a3e1;if(!this[_0x1ebafc(0x1cc)])return null;let _0x10e76d=this[_0x1ebafc(0x42d)](_0xcbce8f);return _0x10e76d?(this[_0x1ebafc(0x21b)]!==_0x10e76d[_0x1ebafc(0x464)]&&(this['_clearConnectionSites'](),this[_0x1ebafc(0x37e)](_0x10e76d[_0x1ebafc(0x464)],_0x10e76d[_0x1ebafc(0x450)]),this['_activeTargetShapeId']=_0x10e76d[_0x1ebafc(0x464)]),this[_0x1ebafc(0x28f)](_0xcbce8f)):(this['_activeTargetShapeId']!==null&&(this[_0x1ebafc(0x38f)](),this[_0x1ebafc(0x21b)]=null),null);}[_0x40a3e1(0x46f)](){const _0x1c0d8a=_0x40a3e1;this[_0x1c0d8a(0x38f)](),this['_currentScene']=null,this[_0x1c0d8a(0x21b)]=null,this[_0x1c0d8a(0x372)]=-0x1,this[_0x1c0d8a(0x3f6)]=null;}[_0x40a3e1(0x31c)](){const _0x487259=_0x40a3e1;return this[_0x487259(0x21b)]===null||this[_0x487259(0x372)]<0x0?null:{'shapeId':this[_0x487259(0x21b)],'cxnIndex':this[_0x487259(0x372)]};}[_0x40a3e1(0x42d)](_0x4f4589){const _0x2681db=_0x40a3e1;let _0x558cd5=this[_0x2681db(0x2f1)]['getDrawingData'](this[_0x2681db(0x34f)],this['_subUnitId']);for(let _0x586834 of Object[_0x2681db(0x413)](_0x558cd5)){if(_0x586834===this[_0x2681db(0x3f6)]||_0x558cd5[_0x586834][_0x2681db(0x221)]!==_0x204a86[_0x2681db(0x41a)])continue;let _0x512623=this[_0x2681db(0x285)][_0x2681db(0x3f9)](this[_0x2681db(0x34f)],this[_0x2681db(0x465)],_0x586834);if(!_0x512623||_0x421dc8(_0x512623[_0x2681db(0x3e1)]())||_0x512623[_0x2681db(0x3ca)]()['length']===0x0||!this[_0x2681db(0x1cc)])continue;let _0x39d741=_0x4eca2a({'unitId':this['_unitId'],'subUnitId':this[_0x2681db(0x465)],'drawingId':_0x586834}),_0x38f0dc=this[_0x2681db(0x1cc)][_0x2681db(0x2d2)](_0x39d741);if(!_0x38f0dc)continue;let {left:_0x43d380,top:_0x359689,width:_0x5a8657,height:_0x57e709}=_0x38f0dc['getRealBound'](),_0x529a69=_0x43d380+_0x5a8657/0x2,_0x3b63a3=_0x359689+_0x57e709/0x2,_0x5cc140=_0x38f0dc[_0x2681db(0x412)][_0x2681db(0x411)](),_0x1c6cd1=new _0x270023([_0x5cc140[0x0],_0x5cc140[0x1],_0x5cc140[0x2],_0x5cc140[0x3],_0x529a69,_0x3b63a3]),_0x4aeb29=_0x38f0dc[_0x2681db(0x374)](),_0xcb56fb=(_0x38f0dc[_0x2681db(0x384)]&&(_0x4aeb29==null?void 0x0:_0x4aeb29[_0x2681db(0x3b0)])===_0x5caa7e['GROUP']?_0x4aeb29[_0x2681db(0x320)][_0x2681db(0x376)](_0x1c6cd1):_0x1c6cd1)[_0x2681db(0x420)]()[_0x2681db(0x415)](_0x4f4589),_0x2d64c7=_0x5a8657/0x2,_0x401137=_0x57e709/0x2;if(_0xcb56fb['x']>=-_0x2d64c7-0x5&&_0xcb56fb['x']<=_0x2d64c7+0x5&&_0xcb56fb['y']>=-_0x401137-0x5&&_0xcb56fb['y']<=_0x401137+0x5)return{'shapeId':_0x586834,'shapeModel':_0x512623};}return null;}[_0x40a3e1(0x37e)](_0x1dfbe9,_0x38bfb9){const _0x44c25c=_0x40a3e1;if(!this[_0x44c25c(0x1cc)])return;let _0x1a35ce=_0x4eca2a({'unitId':this[_0x44c25c(0x34f)],'subUnitId':this['_subUnitId'],'drawingId':_0x1dfbe9}),_0x3f7a43=this[_0x44c25c(0x1cc)][_0x44c25c(0x2d2)](_0x1a35ce);if(!_0x3f7a43)return;let {left:_0x29c9b3,top:_0x2ded42,width:_0x1c8c9f,height:_0x1db188}=_0x3f7a43['getRealBound'](),_0x5bea2d=_0x29c9b3+_0x1c8c9f/0x2,_0x566db1=_0x2ded42+_0x1db188/0x2,_0x19619a=_0x3f7a43[_0x44c25c(0x412)]['getMatrix'](),_0x404b2f=new _0x270023([_0x19619a[0x0],_0x19619a[0x1],_0x19619a[0x2],_0x19619a[0x3],_0x5bea2d,_0x566db1]),_0x3f7f5d=_0x3f7a43[_0x44c25c(0x374)](),_0xdd678f=_0x3f7a43[_0x44c25c(0x384)]&&(_0x3f7f5d==null?void 0x0:_0x3f7f5d[_0x44c25c(0x3b0)])===_0x5caa7e['GROUP']?_0x3f7f5d['ancestorTransform'][_0x44c25c(0x376)](_0x404b2f):_0x404b2f;_0x38bfb9[_0x44c25c(0x2e0)]({'width':_0x1c8c9f,'height':_0x1db188});let _0x22635c=_0x38bfb9[_0x44c25c(0x3ca)]();for(let _0x44250b of _0x22635c){let _0x1cb4cd=_0x44250b['x']-_0x1c8c9f/0x2,_0x111e0e=_0x44250b['y']-_0x1db188/0x2,_0x32ab4b=_0xdd678f['applyPoint']({'x':_0x1cb4cd,'y':_0x111e0e}),_0x62229=_0x32ab4b['x'],_0x4592b0=_0x32ab4b['y'],_0x3bf9fb=new ua('connection-site-'+_0x1dfbe9+'-'+_0x44250b[_0x44c25c(0x352)],{'left':_0x62229-_0x2c02a7[_0x44c25c(0x314)],'top':_0x4592b0-_0x2c02a7[_0x44c25c(0x314)],'targetShapeId':_0x1dfbe9,'cxnIndex':_0x44250b['index'],'unitId':this['_unitId'],'subUnitId':this[_0x44c25c(0x465)],'width':_0x2c02a7['cxnPointRadius']*0x2,'height':_0x2c02a7[_0x44c25c(0x314)]*0x2,'zIndex':_0x1301e0+0x2,'evented':!0x1});this['_connectionSiteObjects'][_0x44c25c(0x346)](_0x3bf9fb),this[_0x44c25c(0x1cc)][_0x44c25c(0x3ae)](_0x3bf9fb,_0x1301e0+0x2);}}['_findNearestConnectionSite'](_0x2f1b6c){const _0x4be77a=_0x40a3e1;let _0x454331=null,_0xf92f32=0x1/0x0,_0x1f49d5=null;for(let _0x1327b1 of this[_0x4be77a(0x201)]){let _0x3476e8=_0x1327b1['left']+_0x2c02a7[_0x4be77a(0x314)],_0x476ee8=_0x1327b1[_0x4be77a(0x473)]+_0x2c02a7['cxnPointRadius'],_0x119232=_0x2f1b6c['x']-_0x3476e8,_0x3d6e2f=_0x2f1b6c['y']-_0x476ee8,_0x12a776=Math[_0x4be77a(0x3dc)](_0x119232*_0x119232+_0x3d6e2f*_0x3d6e2f);_0x12a776<_0xf92f32&&(_0xf92f32=_0x12a776,_0x454331=_0x1327b1,_0x1f49d5={'x':_0x3476e8,'y':_0x476ee8});}let _0x3ac9db=_0xf92f32<=0xa&&_0x454331?_0x454331['getConnectionInfo']()[_0x4be77a(0x3d5)]:-0x1;if(_0x3ac9db!==this[_0x4be77a(0x372)]){for(let _0x588b6e of this['_connectionSiteObjects']){let _0x596d68=_0x588b6e[_0x4be77a(0x257)]();_0x588b6e['setHighlighted'](_0x596d68[_0x4be77a(0x3d5)]===_0x3ac9db);}this['_highlightedSiteIndex']=_0x3ac9db;}if(_0xf92f32<=0xa&&_0x454331&&_0x1f49d5){let _0x546607=_0x454331['getConnectionInfo'](),_0x2f0a32=this[_0x4be77a(0x2e5)](_0x546607[_0x4be77a(0x464)],_0x546607[_0x4be77a(0x3d5)]);return{'shapeId':_0x546607[_0x4be77a(0x464)],'cxnIndex':_0x546607[_0x4be77a(0x3d5)],'unitId':_0x546607[_0x4be77a(0x43a)],'subUnitId':_0x546607['subUnitId'],'worldPoint':_0x1f49d5,'angle':_0x2f0a32};}return null;}[_0x40a3e1(0x2e5)](_0x5b5b0e,_0x179f6a){const _0xf72345=_0x40a3e1;let _0x1561c5=this['_sheetsShapeService'][_0xf72345(0x3f9)](this['_unitId'],this[_0xf72345(0x465)],_0x5b5b0e);if(!_0x1561c5)return 0x0;let _0x1117dd=this[_0xf72345(0x2f1)][_0xf72345(0x31f)]({'unitId':this['_unitId'],'subUnitId':this[_0xf72345(0x465)],'drawingId':_0x5b5b0e});if(!(_0x1117dd!=null&&_0x1117dd[_0xf72345(0x412)]))return 0x0;let {width:_0x123da9=0x0,height:_0x1256cf=0x0,flipX:_0x47fad6=!0x1,flipY:_0x19e0f2=!0x1}=_0x1117dd['transform'];_0x1561c5[_0xf72345(0x2e0)]({'width':_0x123da9,'height':_0x1256cf});let _0x4bdd5e=_0x1561c5['getConnectionSiteList']()['find'](_0x46d613=>_0x46d613[_0xf72345(0x352)]===_0x179f6a);if(!_0x4bdd5e)return 0x0;let _0x4576aa=_0x4bdd5e[_0xf72345(0x308)]/0xea60;return _0x47fad6&&(_0x4576aa=0xb4-_0x4576aa),_0x19e0f2&&(_0x4576aa=-_0x4576aa),_0x4576aa=(_0x4576aa%0x168+0x168)%0x168,_0x4576aa;}[_0x40a3e1(0x38f)](){const _0x68f3db=_0x40a3e1;for(let _0x2d696d of this[_0x68f3db(0x201)])_0x2d696d['dispose']();this[_0x68f3db(0x201)]=[],this['_highlightedSiteIndex']=-0x1;}[_0x40a3e1(0x223)](){const _0xe5f3d7=_0x40a3e1;this[_0xe5f3d7(0x38f)](),super[_0xe5f3d7(0x223)]();}};da=X([Y(0x1,_0x34f57e(_0x5a17c7)),Y(0x2,_0x34f57e(_0x2d58e3)),Y(0x3,_0x34f57e(_0x25eee4))],da);let fa=class extends _0x1f1ba9{constructor(_0x39899d,_0x3951e9,_0x1032da,_0x59f5e3,_0xb5ed1){const _0x799150=_0x40a3e1;super(),this[_0x799150(0x3ba)]=_0x39899d,this[_0x799150(0x3b4)]=_0x3951e9,this[_0x799150(0x410)]=_0x1032da,this[_0x799150(0x3bc)]=_0x59f5e3,this['_groupCopyPasteController']=_0xb5ed1,q(this,_0x799150(0x3f7),void 0x0),this['_initCopyPaste'](),this['_registerGroupFeaturePasteHook']();}get[_0x40a3e1(0x1cb)](){const _0x2ec5de=_0x40a3e1;return this[_0x2ec5de(0x410)][_0x2ec5de(0x23d)]();}[_0x40a3e1(0x3db)](){const _0x5515d7=_0x40a3e1;this[_0x5515d7(0x283)][_0x5515d7(0x26e)](({fromUnitId:_0x3c278d,fromSubUnitId:_0x489d66,toUnitId:_0x1c6d7c,toSubUnitId:_0x378293,idMap:_0x45293e})=>{const _0x35c84a=_0x5515d7;let _0x5b927c=[],_0xa3a367=[];for(let [_0x1e3419,_0x53dc6f]of _0x45293e['entries']()){let _0x1fe0d0=this[_0x35c84a(0x3bc)][_0x35c84a(0x3f9)](_0x3c278d,_0x489d66,_0x1e3419);if(!_0x1fe0d0)continue;let _0x511dc3=_0x1fe0d0[_0x35c84a(0x3e1)](),_0x4831bc=JSON['parse'](JSON['stringify'](_0x1fe0d0['getShapeData']()));if(_0x4831bc[_0x35c84a(0x276)]){var _0x2e2d23,_0x27d6b4;let _0x3a69d2=(_0x2e2d23=_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)])==null?void 0x0:_0x2e2d23['shapeId'],_0x50b41d=(_0x27d6b4=_0x4831bc[_0x35c84a(0x276)]['to'])==null?void 0x0:_0x27d6b4[_0x35c84a(0x464)],_0x2b5f5f=!_0x3a69d2||_0x45293e[_0x35c84a(0x2df)](_0x3a69d2),_0x25d507=!_0x50b41d||_0x45293e[_0x35c84a(0x2df)](_0x50b41d);_0x2b5f5f&&_0x3a69d2&&_0x4831bc[_0x35c84a(0x276)]['from']?_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)]={..._0x4831bc['relation'][_0x35c84a(0x354)],'shapeId':_0x45293e['get'](_0x3a69d2)}:_0x4831bc[_0x35c84a(0x276)][_0x35c84a(0x354)]=void 0x0,_0x25d507&&_0x50b41d&&_0x4831bc['relation']['to']?_0x4831bc['relation']['to']={..._0x4831bc[_0x35c84a(0x276)]['to'],'shapeId':_0x45293e[_0x35c84a(0x270)](_0x50b41d)}:_0x4831bc['relation']['to']=void 0x0;}_0x5b927c[_0x35c84a(0x346)]({'id':_0x30d486['id'],'params':{'unitId':_0x1c6d7c,'subUnitId':_0x378293,'shapeId':_0x53dc6f,'shapeType':_0x511dc3,'shapeData':_0x4831bc}}),_0xa3a367['push']({'id':_0x950b4f['id'],'params':{'unitId':_0x1c6d7c,'subUnitId':_0x378293,'shapeId':_0x53dc6f}});}return{'redos':_0x5b927c,'undos':_0xa3a367};});}[_0x40a3e1(0x1c5)](){const _0x51a936=_0x40a3e1;this[_0x51a936(0x1c6)](this['_sheetClipboardService'][_0x51a936(0x2a8)]({'id':_0x51a936(0x428),'onBeforeCopyFocusedObject':(_0x7917d5,_0xab419e,_0x1f4d7e)=>{const _0x23c44d=_0x51a936;this[_0x23c44d(0x3f7)]=null;let _0x4b6860=this[_0x23c44d(0x1cb)][_0x23c44d(0x385)](_0x34cd83=>_0x34cd83[_0x23c44d(0x221)]===_0x204a86[_0x23c44d(0x41a)]);return _0x4b6860[_0x23c44d(0x46d)]!==0x0&&(this[_0x23c44d(0x3f7)]={'unitId':_0x7917d5,'subUnitId':_0xab419e,'copyType':_0x1f4d7e,'drawings':_0x4b6860},!0x0);},'onBeforeCopy':(_0x1b99f5,_0x5e4b65,_0xb192de,_0x24c935)=>{this['_copyInfo']=null,this['_createCopyInfoByRange'](_0x1b99f5,_0x5e4b65,_0xb192de,_0x24c935);},'onPasteCells':(_0x241e0a,_0x19189f,_0x1b6bf5,_0x8b43ee)=>{const _0x34df09=_0x51a936;if(!_0x8b43ee['copyId']||!_0x241e0a||!this[_0x34df09(0x3f7)])return{'redos':[],'undos':[]};let {pasteType:_0x33132a}=_0x8b43ee;return _0x33132a===_0x20a41f[_0x34df09(0x456)]?this[_0x34df09(0x399)](_0x19189f,this[_0x34df09(0x3f7)][_0x34df09(0x290)]===_0x483eee['CUT']):{'redos':[],'undos':[]};}}));}[_0x40a3e1(0x263)](_0x3b796a,_0x2cb1cb,_0x3e651f,_0x34c119){const _0xb9a172=_0x40a3e1;let _0x1efc26=this['_sheetSkeletonService']['getSkeleton'](_0x3b796a,_0x2cb1cb);if(!_0x1efc26)return;let _0x58dcfb=_0x500c4e(_0x1efc26,_0x3e651f);if(!_0x58dcfb)return;let {startX:_0x5131fe,endX:_0x578197,startY:_0x2f0d16,endY:_0x5e3c67}=_0x58dcfb,_0x6fc265=this[_0xb9a172(0x410)][_0xb9a172(0x1d0)](_0x3b796a,_0x2cb1cb),_0x445e59=[];for(let [_0x22e384,_0x32a508]of Object[_0xb9a172(0x417)](_0x6fc265)){if(_0x32a508[_0xb9a172(0x221)]!==_0x204a86[_0xb9a172(0x41a)])continue;let {transform:_0x5ae639}=_0x32a508;if(!_0x5ae639)continue;let {left:_0x2f2e14=0x0,top:_0x51a56f=0x0,width:_0xbd8a90=0x0,height:_0x4f1732=0x0}=_0x5ae639;_0x5131fe<=_0x2f2e14&&_0x578197>=_0x2f2e14+_0xbd8a90&&_0x2f0d16<=_0x51a56f&&_0x5e3c67>=_0x51a56f+_0x4f1732&&_0x445e59['push'](_0x32a508);}_0x445e59['length']>0x0&&(this['_copyInfo']={'unitId':_0x3b796a,'subUnitId':_0x2cb1cb,'copyType':_0x34c119,'copyRange':_0x3e651f,'drawings':_0x445e59});}[_0x40a3e1(0x399)](_0x58b45e,_0x30e2ca){const _0x3bf670=_0x40a3e1;let {unitId:_0x5b7a93,subUnitId:_0x4b1ef7,range:_0x16be56}=_0x58b45e,_0x387925=this[_0x3bf670(0x3ba)][_0x3bf670(0x1d6)](_0x5b7a93,_0x4b1ef7);if(!_0x387925)return{'redos':[],'undos':[]};let _0x335c88=_0x32c5b6(_0x16be56),{unitId:_0x38966f,subUnitId:_0x45c52b,copyRange:_0x2a2771,drawings:_0x34c92e}=this[_0x3bf670(0x3f7)],_0x42a3c9=this[_0x3bf670(0x3ba)]['getSkeleton'](_0x38966f,_0x45c52b);if(!_0x42a3c9)return{'redos':[],'undos':[]};let _0x57962a;if(!_0x2a2771){let _0x4ec917=0x1/0x0,_0x33b6bb=0x1/0x0;for(let _0x55da9d of _0x34c92e){let {left:_0x43c8b2=0x0,top:_0x3b30c6=0x0}=_0x55da9d['transform']??{};_0x43c8b2<_0x4ec917&&(_0x4ec917=_0x43c8b2),_0x3b30c6<_0x33b6bb&&(_0x33b6bb=_0x3b30c6);}_0x4ec917!==0x1/0x0&&_0x33b6bb!==0x1/0x0&&(_0x57962a={'left':_0x4ec917,'top':_0x33b6bb});}let _0x13a82b=new Map();if(!_0x30e2ca){for(let _0x3308d4 of _0x34c92e)_0x13a82b['set'](_0x3308d4[_0x3bf670(0x35b)],_0x57f70d());}let _0x5b47e8=[],_0x11287b=[];for(let _0x3e2cc1 of _0x34c92e){let {drawingId:_0x75fc5b,transform:_0x45eabc,sheetTransform:_0x5c034f}=_0x3e2cc1;if(!_0x45eabc||!_0x5c034f)continue;let _0x48a93b=this[_0x3bf670(0x27f)]({'transform':_0x45eabc,'sheetTransform':_0x5c034f},{'skeleton':_0x42a3c9,'range':_0x2a2771},{'skeleton':_0x387925,'range':_0x335c88},_0x57962a);if(_0x30e2ca){let {redos:_0x5b594f,undos:_0x226755}=this['_generateCutPasteMutations']({'fromUnitId':_0x38966f,'fromSubUnitId':_0x45c52b,'toUnitId':_0x5b7a93,'toSubUnitId':_0x4b1ef7,'drawing':_0x3e2cc1,'newTransforms':_0x48a93b});_0x5b47e8[_0x3bf670(0x346)](..._0x5b594f),_0x11287b[_0x3bf670(0x346)](..._0x226755);continue;}let {redos:_0x5cd1c6,undos:_0x50e283}=this[_0x3bf670(0x1cf)]({'toUnitId':_0x5b7a93,'toSubUnitId':_0x4b1ef7,'drawing':_0x3e2cc1,'newTransforms':_0x48a93b,'newDrawingId':_0x13a82b[_0x3bf670(0x270)](_0x75fc5b),'idMap':_0x13a82b});_0x5b47e8[_0x3bf670(0x346)](..._0x5cd1c6),_0x11287b[_0x3bf670(0x346)](..._0x50e283);}return{'redos':_0x5b47e8,'undos':_0x11287b};}[_0x40a3e1(0x389)](_0x313acc){const _0x11c148=_0x40a3e1;let {fromUnitId:_0x2f9dc5,fromSubUnitId:_0x1be9ce,toUnitId:_0x191b4e,toSubUnitId:_0x3fdb17,drawing:_0x4f5efa,newTransforms:_0x7a8b3c}=_0x313acc,_0x22d0c9={..._0x4f5efa,'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'transform':_0x7a8b3c['transform'],'sheetTransform':_0x7a8b3c[_0x11c148(0x33c)]};if(_0x191b4e===_0x2f9dc5&&_0x3fdb17===_0x1be9ce){let {redo:_0x3c5620,undo:_0x37cf4e,objects:_0x1ce6f3}=this['_sheetDrawingService'][_0x11c148(0x33a)]([_0x22d0c9]);return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60['UPDATE'],'op':_0x3c5620,'objects':_0x1ce6f3}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60[_0x11c148(0x455)],'op':_0x37cf4e,'objects':_0x1ce6f3}}]};}{let _0x4ac7e8=this[_0x11c148(0x410)][_0x11c148(0x3a4)]([_0x4f5efa]),_0x3dda28=this[_0x11c148(0x410)][_0x11c148(0x24d)]([_0x22d0c9]),_0x29c9cd=this['_shapeService']['getShapeModel'](_0x4f5efa[_0x11c148(0x43a)],_0x4f5efa[_0x11c148(0x330)],_0x4f5efa[_0x11c148(0x35b)]);if(!_0x29c9cd)return{'redos':[],'undos':[]};let _0x25a054=_0x29c9cd['getShapeType'](),_0xc1567c=JSON[_0x11c148(0x424)](JSON['stringify'](_0x29c9cd[_0x11c148(0x295)]()));return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'type':_0x55dd60['REMOVE'],'op':_0x4ac7e8[_0x11c148(0x41d)],'objects':_0x4ac7e8[_0x11c148(0x2dc)]}},{'id':_0x950b4f['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'shapeId':_0x4f5efa[_0x11c148(0x35b)]}},{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60[_0x11c148(0x1ef)],'op':_0x3dda28[_0x11c148(0x41d)],'objects':_0x3dda28['objects']}},{'id':_0x30d486['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'shapeId':_0x4f5efa[_0x11c148(0x35b)],'shapeType':_0x25a054,'shapeData':_0xc1567c}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'type':_0x55dd60[_0x11c148(0x1ef)],'op':_0x4ac7e8[_0x11c148(0x2a9)],'objects':_0x4ac7e8['objects']}},{'id':_0x30d486['id'],'params':{'unitId':_0x2f9dc5,'subUnitId':_0x1be9ce,'shapeId':_0x4f5efa['drawingId'],'shapeType':_0x25a054,'shapeData':_0xc1567c}},{'id':_0x2bb859['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'type':_0x55dd60['REMOVE'],'op':_0x3dda28[_0x11c148(0x2a9)],'objects':_0x3dda28['objects']}},{'id':_0x950b4f['id'],'params':{'unitId':_0x191b4e,'subUnitId':_0x3fdb17,'shapeId':_0x4f5efa[_0x11c148(0x35b)]}}]};}}[_0x40a3e1(0x1cf)](_0x550a30){const _0x5e7991=_0x40a3e1;let {toUnitId:_0x23c2ec,toSubUnitId:_0x3e1bc3,drawing:_0x5dfb1f,newTransforms:_0xff9456,newDrawingId:_0x53d15f,idMap:_0x24710b}=_0x550a30,_0x1f0acf={..._0x5dfb1f,'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'drawingId':_0x53d15f,'transform':_0xff9456['transform'],'sheetTransform':_0xff9456[_0x5e7991(0x33c)]},{redo:_0x33c96e,undo:_0x5272d1,objects:_0x59b311}=this[_0x5e7991(0x410)][_0x5e7991(0x24d)]([_0x1f0acf]),_0x38bdff=this['_shapeService'][_0x5e7991(0x3f9)](_0x5dfb1f[_0x5e7991(0x43a)],_0x5dfb1f[_0x5e7991(0x330)],_0x5dfb1f['drawingId']);if(!_0x38bdff)return{'redos':[],'undos':[]};let _0x179c6a=_0x38bdff['getShapeType'](),_0x3b9d3b=JSON[_0x5e7991(0x424)](JSON[_0x5e7991(0x3a9)](_0x38bdff[_0x5e7991(0x295)]()));if(_0x3b9d3b['relation']){var _0x1f3d4d,_0xaa6bbb;let _0x900bf3=(_0x1f3d4d=_0x3b9d3b['relation'][_0x5e7991(0x354)])==null?void 0x0:_0x1f3d4d[_0x5e7991(0x464)],_0x3ed7c8=(_0xaa6bbb=_0x3b9d3b[_0x5e7991(0x276)]['to'])==null?void 0x0:_0xaa6bbb[_0x5e7991(0x464)],_0x56fcfd=!_0x900bf3||_0x24710b[_0x5e7991(0x2df)](_0x900bf3),_0x3d84c1=!_0x3ed7c8||_0x24710b['has'](_0x3ed7c8);_0x56fcfd&&_0x900bf3&&_0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)]?_0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)]={..._0x3b9d3b[_0x5e7991(0x276)][_0x5e7991(0x354)],'shapeId':_0x24710b[_0x5e7991(0x270)](_0x900bf3)}:_0x3b9d3b['relation'][_0x5e7991(0x354)]=void 0x0,_0x3d84c1&&_0x3ed7c8&&_0x3b9d3b['relation']['to']?_0x3b9d3b['relation']['to']={..._0x3b9d3b[_0x5e7991(0x276)]['to'],'shapeId':_0x24710b[_0x5e7991(0x270)](_0x3ed7c8)}:_0x3b9d3b[_0x5e7991(0x276)]['to']=void 0x0;}return{'redos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'type':_0x55dd60[_0x5e7991(0x1ef)],'op':_0x33c96e,'objects':_0x59b311}},{'id':_0x30d486['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'shapeId':_0x53d15f,'shapeType':_0x179c6a,'shapeData':_0x3b9d3b}}],'undos':[{'id':_0x2bb859['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'type':_0x55dd60[_0x5e7991(0x238)],'op':_0x5272d1,'objects':_0x59b311}},{'id':_0x950b4f['id'],'params':{'unitId':_0x23c2ec,'subUnitId':_0x3e1bc3,'shapeId':_0x53d15f}}]};}[_0x40a3e1(0x27f)](_0x27c06c,_0x424aee,_0xb851de,_0x3b1f00){const _0x578429=_0x40a3e1;let {range:_0x251e75,skeleton:_0x12023b}=_0x424aee,{range:_0x121768,skeleton:_0x16ec19}=_0xb851de,{transform:_0x307f0c,sheetTransform:_0x3872a5}=_0x27c06c,_0x5761fa={..._0x307f0c};if(_0x251e75){let _0x3eb19b=_0x500c4e(_0x12023b,_0x251e75),_0x48f735=_0x500c4e(_0x16ec19,_0x121768);if(_0x3eb19b&&_0x48f735){let _0x2d3049=_0x48f735[_0x578429(0x31b)]-_0x3eb19b[_0x578429(0x31b)],_0x439604=_0x48f735['startY']-_0x3eb19b[_0x578429(0x2a4)];_0x5761fa[_0x578429(0x3d3)]=(_0x5761fa[_0x578429(0x3d3)]??0x0)+_0x2d3049,_0x5761fa['top']=(_0x5761fa[_0x578429(0x473)]??0x0)+_0x439604;}}else{let _0x39d50d=_0x500c4e(_0x16ec19,_0x121768);if(_0x3b1f00&&_0x39d50d){let _0x4fce7c=(_0x5761fa[_0x578429(0x3d3)]??0x0)-_0x3b1f00[_0x578429(0x3d3)],_0x47943b=(_0x5761fa[_0x578429(0x473)]??0x0)-_0x3b1f00['top'];_0x5761fa[_0x578429(0x3d3)]=_0x39d50d[_0x578429(0x31b)]+_0x4fce7c,_0x5761fa['top']=_0x39d50d[_0x578429(0x2a4)]+_0x47943b;}else _0x5761fa[_0x578429(0x3d3)]=_0x39d50d==null?void 0x0:_0x39d50d[_0x578429(0x31b)],_0x5761fa['top']=_0x39d50d==null?void 0x0:_0x39d50d[_0x578429(0x2a4)];}return{'transform':_0x5761fa,'sheetTransform':_0x588a4b(_0x5761fa,_0x16ec19)??_0x3872a5};}};fa=X([Y(0x0,_0x34f57e(_0x2b81a7)),Y(0x1,_0x34f57e(_0x5ddcd0)),Y(0x2,_0x34f57e(_0x40f806)),Y(0x3,_0x34f57e(_0x25eee4)),Y(0x4,_0x34f57e(_0x250565))],fa);var pa=class extends _0x4d9757{constructor(_0x2ac554,_0x80d306){const _0x3e9269=_0x40a3e1;super(_0x2ac554,_0x80d306),q(this,_0x3e9269(0x3d8),null),q(this,_0x3e9269(0x2dd),null),q(this,_0x3e9269(0x34f),null),q(this,_0x3e9269(0x465),null),q(this,_0x3e9269(0x348),!0x1),_0x80d306&&this[_0x3e9269(0x268)](_0x80d306);}['getDrawingSearch'](){const _0x4edb51=_0x40a3e1;return{'unitId':this['_unitId'],'subUnitId':this[_0x4edb51(0x465)],'drawingId':this['_shapeId']};}[_0x40a3e1(0x268)](_0x20a602){const _0x4b425d=_0x40a3e1;_0x20a602[_0x4b425d(0x464)]!==void 0x0&&(this['_shapeId']=_0x20a602[_0x4b425d(0x464)]),_0x20a602['unitId']!==void 0x0&&(this[_0x4b425d(0x34f)]=_0x20a602[_0x4b425d(0x43a)]),_0x20a602[_0x4b425d(0x330)]!==void 0x0&&(this['_subUnitId']=_0x20a602[_0x4b425d(0x330)]),_0x20a602[_0x4b425d(0x2f4)]!==void 0x0&&(this[_0x4b425d(0x348)]=_0x20a602['isStartConnectorPoint']),this['transformByState']({'width':_0x20a602['width'],'height':_0x20a602[_0x4b425d(0x222)]});}[_0x40a3e1(0x1ed)](_0x3c6504){const _0x1edaa6=_0x40a3e1;_0x597d7e[_0x1edaa6(0x3e6)](_0x3c6504,{'radius':_0x2c02a7[_0x1edaa6(0x314)],'fill':_0x2c02a7[_0x1edaa6(0x387)],'stroke':_0x2c02a7['cxnPointStroke'],'strokeWidth':_0x2c02a7[_0x1edaa6(0x1c9)],'evented':!0x0});}};let ma=class extends _0x1f1ba9{constructor(_0x10dd2c,_0x5ac449,_0x48b845,_0x3f1759,_0x33df8e,_0x20e485,_0x5e02fa,_0x2e0b4b){const _0x59135b=_0x40a3e1;super(),this[_0x59135b(0x40b)]=_0x10dd2c,this[_0x59135b(0x279)]=_0x5ac449,this[_0x59135b(0x258)]=_0x48b845,this[_0x59135b(0x2f1)]=_0x3f1759,this[_0x59135b(0x2c3)]=_0x33df8e,this['_sheetsShapeService']=_0x20e485,this[_0x59135b(0x383)]=_0x5e02fa,this['_sheetBasicShapeConnectionPointController']=_0x2e0b4b,q(this,_0x59135b(0x27c),void 0x0),q(this,_0x59135b(0x34f),void 0x0),q(this,'_subUnitId',void 0x0),q(this,_0x59135b(0x309),[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x59135b(0x1d7),void 0x0),q(this,_0x59135b(0x47a),!0x1),q(this,_0x59135b(0x233),!0x1),q(this,'_hasReset',!0x1),q(this,_0x59135b(0x208),void 0x0),q(this,_0x59135b(0x2db),void 0x0),q(this,_0x59135b(0x324),null),this[_0x59135b(0x2f2)]();}[_0x40a3e1(0x2f2)](){const _0x298ccc=_0x40a3e1;this[_0x298ccc(0x28e)](),this[_0x298ccc(0x451)]();}[_0x40a3e1(0x462)](){const _0x3e5c22=_0x40a3e1;if(!this[_0x3e5c22(0x34f)]||!this[_0x3e5c22(0x465)]||!this['_activeShapeId'])return;let _0x3ac7ef={'unitId':this['_unitId'],'subUnitId':this[_0x3e5c22(0x465)],'drawingId':this['_activeShapeId']},{transform:_0x128de1}=this[_0x3e5c22(0x2f1)][_0x3e5c22(0x31f)](_0x3ac7ef);if(_0x128de1)return{'left':_0x128de1[_0x3e5c22(0x3d3)]||0x0,'top':_0x128de1['top']||0x0,'width':_0x128de1[_0x3e5c22(0x294)]||0x0,'height':_0x128de1[_0x3e5c22(0x222)]||0x0,'flipX':_0x128de1[_0x3e5c22(0x405)]||!0x1,'flipY':_0x128de1['flipY']||!0x1,'angle':_0x128de1['angle']};}[_0x40a3e1(0x28c)](){const _0x302944=_0x40a3e1;if(this[_0x302944(0x34f)]===void 0x0||this[_0x302944(0x465)]===void 0x0||this[_0x302944(0x27c)]===void 0x0)return;let _0xf437f7=this[_0x302944(0x258)][_0x302944(0x2cf)](this['_unitId']);if(!_0xf437f7||!_0xf437f7[_0x302944(0x433)](_0x22bccb)['getCurrentSkeleton']())return;let {scene:_0x2f0ef1}=_0xf437f7,_0x515efc=this[_0x302944(0x462)]();if(!_0x515efc)return;let _0x3c7090=this[_0x302944(0x285)][_0x302944(0x3f9)](this[_0x302944(0x34f)],this[_0x302944(0x465)],this['_activeShapeId']);if(!_0x3c7090||!_0x421dc8(_0x3c7090[_0x302944(0x3e1)]()))return;let _0x2ec2be=_0x3c7090['getConnectorLinePoints']();if(_0x2ec2be[_0x302944(0x46d)]<0x2)return;let _0x17c965=new _0x28f453(_0x515efc),_0x184cb9=_0x2ec2be[0x0],_0x859001=_0x2ec2be[_0x2ec2be[_0x302944(0x46d)]-0x1],_0x1b8899=_0x17c965[_0x302944(0x442)](_0x184cb9),_0x5e8e64=_0x17c965[_0x302944(0x442)](_0x859001);this[_0x302944(0x3bd)](_0x2f0ef1,{..._0x1b8899},!0x0),this[_0x302944(0x3bd)](_0x2f0ef1,{..._0x5e8e64},!0x1);}[_0x40a3e1(0x3bd)](_0x410d4c,_0x5b3a7e,_0x4ad202){const _0x2d3b8c=_0x40a3e1;if(this['_activeShapeId']===void 0x0||this[_0x2d3b8c(0x34f)]===void 0x0||this[_0x2d3b8c(0x465)]===void 0x0)return;let _0x37d55f=_0x2d3b8c(0x1f9)+this['_unitId']+'-'+this[_0x2d3b8c(0x465)]+'-'+this[_0x2d3b8c(0x27c)]+'-'+(_0x4ad202?_0x2d3b8c(0x1bf):_0x2d3b8c(0x23b)),_0x45a819=_0x410d4c[_0x2d3b8c(0x2d2)](_0x37d55f);if(_0x45a819){_0x45a819[_0x2d3b8c(0x3a6)]({'left':_0x5b3a7e['x']-_0x2c02a7[_0x2d3b8c(0x314)],'top':_0x5b3a7e['y']-_0x2c02a7[_0x2d3b8c(0x314)]});return;}let _0x26298e=new pa(_0x37d55f,{'left':_0x5b3a7e['x']-_0x2c02a7[_0x2d3b8c(0x314)],'top':_0x5b3a7e['y']-_0x2c02a7[_0x2d3b8c(0x314)],'shapeId':this[_0x2d3b8c(0x27c)],'unitId':this[_0x2d3b8c(0x34f)],'subUnitId':this[_0x2d3b8c(0x465)],'isStartConnectorPoint':_0x4ad202,'width':_0x2c02a7[_0x2d3b8c(0x314)]*0x2,'height':_0x2c02a7[_0x2d3b8c(0x314)]*0x2,'zIndex':_0x1301e0+0x1,'evented':!0x0});this['_connectorObjects'][_0x2d3b8c(0x346)](_0x26298e),this[_0x2d3b8c(0x341)](_0x26298e,_0x410d4c,_0x4ad202),_0x410d4c[_0x2d3b8c(0x3ae)](_0x26298e,_0x1301e0+0x1);}[_0x40a3e1(0x3d4)](_0x391649,_0x4982f7){const _0x42f4ed=_0x40a3e1;var _0x4228f5;let _0x410f03={'x':0x0,'y':0x0};if(!_0x391649||!_0x4982f7)return _0x410f03;let _0x5b2ebb=this[_0x42f4ed(0x258)][_0x42f4ed(0x2cf)](_0x391649);if(!_0x5b2ebb||!_0x5b2ebb['with'](_0x22bccb)[_0x42f4ed(0x1d6)](_0x4982f7))return _0x410f03;let _0x249ffb=_0x5b2ebb['with'](_0x1d24d6),_0x4a002a=_0x249ffb==null?void 0x0:_0x249ffb[_0x42f4ed(0x369)]();if(!_0x4a002a)return _0x410f03;let _0x31521e=(_0x4228f5=this['_univerInstanceService'][_0x42f4ed(0x2fd)](_0x391649))==null?void 0x0:_0x4228f5[_0x42f4ed(0x475)](_0x4982f7);if(!_0x31521e)return _0x410f03;let _0x1c2f59=_0xf578ae(_0x4a002a[_0x42f4ed(0x3c9)],_0x4a002a['sheetViewStartColumn'],_0x5b2ebb[_0x42f4ed(0x25b)],_0x31521e);return _0x1c2f59?{'x':_0x1c2f59['viewportScrollX'],'y':_0x1c2f59[_0x42f4ed(0x393)]}:_0x410f03;}[_0x40a3e1(0x454)](_0x1c7f7b,_0x21818c){const _0x147601=_0x40a3e1;var _0x2c9e53;let _0x52d637=(_0x2c9e53=this[_0x147601(0x2c3)][_0x147601(0x2fd)](_0x1c7f7b))==null?void 0x0:_0x2c9e53[_0x147601(0x475)](_0x21818c);return(_0x52d637==null?void 0x0:_0x52d637[_0x147601(0x474)]())??0x1;}[_0x40a3e1(0x38d)](_0xc3df63,_0x195c21,_0x36df7f,_0x3c9263,_0x49aa38){const _0x2e5ad8=_0x40a3e1;this[_0x2e5ad8(0x208)][_0x2e5ad8(0x2a2)](),this['_cxtHandlerPointerUp']['unsubscribe'](),this[_0x2e5ad8(0x383)][_0x2e5ad8(0x1e9)]();let _0x57384a=this[_0x2e5ad8(0x324)];this[_0x2e5ad8(0x461)]['endConnectionDetection']();let _0x4ed965=this[_0x2e5ad8(0x3d4)](this[_0x2e5ad8(0x34f)],this['_subUnitId']),_0x4e1a50=this['_getZoomRatio'](this[_0x2e5ad8(0x34f)],this['_subUnitId']),_0x56d133={'x':_0x36df7f[_0x2e5ad8(0x2d7)]/_0x4e1a50+_0x4ed965['x'],'y':_0x36df7f[_0x2e5ad8(0x2cd)]/_0x4e1a50+_0x4ed965['y']},_0x59c70d=_0x57384a?_0x57384a[_0x2e5ad8(0x426)]:_0x56d133,_0x2d0ece=_0x3c9263?this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x30e)]():this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x1d2)](),_0x6b145a=this[_0x2e5ad8(0x1d7)][_0x2e5ad8(0x3e1)]();_0x2d0ece?this['_handleConnectedEndpointPointerUp'](_0x2d0ece,_0x59c70d,_0x3c9263,_0x57384a,_0x49aa38):this[_0x2e5ad8(0x457)](_0x195c21,_0x59c70d,_0x3c9263,_0x57384a,_0x49aa38,_0x6b145a),this[_0x2e5ad8(0x47a)]=!0x1,this[_0x2e5ad8(0x3c0)]=!0x1,this[_0x2e5ad8(0x324)]=null,_0xc3df63[_0x2e5ad8(0x3fc)]();}[_0x40a3e1(0x457)](_0x1e2a21,_0x1d7d47,_0x58a50e,_0x188402,_0x2992a5,_0x3ac176){const _0x5550a5=_0x40a3e1;let _0x151fc5=_0x3ac176===_0x27efd2[_0x5550a5(0x3ef)]||_0x3ac176===_0x27efd2[_0x5550a5(0x271)],_0x2b2d89=_0x58a50e?_0x1d7d47:_0x1e2a21,_0x415cf5=_0x58a50e?_0x1e2a21:_0x1d7d47,_0x5169fb=this[_0x5550a5(0x1d7)][_0x5550a5(0x3e7)](),_0xc9b008=this[_0x5550a5(0x1d7)][_0x5550a5(0x3e1)](),_0x347e41=_0xa7da83(_0xc9b008),_0x2646b1=_0x28f453['getBentTypeFromPoints'](_0x5169fb,_0x347e41),_0xaaae13=_0x151fc5?_0x28f453['computeStraightConnectorLayout'](_0x2b2d89,_0x415cf5):_0x28f453[_0x5550a5(0x337)](_0x1e2a21,_0x1d7d47,_0x58a50e,_0x2646b1);_0x188402?this[_0x5550a5(0x316)](_0xaaae13,_0x188402,_0x58a50e,_0x2992a5):this[_0x5550a5(0x398)](_0xaaae13,_0x2992a5);}[_0x40a3e1(0x452)](_0x38ad7a,_0x42a07c,_0x3a97a6,_0x5223c2,_0x105796){const _0x451a85=_0x40a3e1;let _0x144521=this[_0x451a85(0x375)](_0x38ad7a);if(!_0x144521)return;let _0x3d0fd7=_0x5223c2?_0x5223c2['angle']:this[_0x451a85(0x36b)](_0x144521[_0x451a85(0x249)],_0x42a07c),_0x3f4a77;if(_0x5223c2){let _0x7da299=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x5223c2[_0x451a85(0x43a)],'subUnitId':_0x5223c2[_0x451a85(0x330)],'drawingId':_0x5223c2[_0x451a85(0x464)]});if(_0x7da299!=null&&_0x7da299[_0x451a85(0x412)]){let {left:_0x48e3bf=0x0,top:_0xcec39d=0x0,width:_0x29cee4=0x0,height:_0x306258=0x0,angle:_0x4a79b0}=_0x7da299[_0x451a85(0x412)];_0x3f4a77=_0x149266({'left':_0x48e3bf,'top':_0xcec39d,'width':_0x29cee4,'height':_0x306258},_0x4a79b0||0x0);}else _0x3f4a77={'left':_0x42a07c['x'],'top':_0x42a07c['y'],'width':0x0,'height':0x0};}else _0x3f4a77={'left':_0x42a07c['x'],'top':_0x42a07c['y'],'width':0x0,'height':0x0};let _0x469b0d={'point':_0x42a07c,'angle':_0x3d0fd7,'bounds':_0x3f4a77},_0x279785=_0x3a97a6?_0x469b0d:_0x144521,_0x23a948=_0x3a97a6?_0x144521:_0x469b0d,_0x348b41=this[_0x451a85(0x1d7)][_0x451a85(0x3e1)](),_0x376154=_0x4ed1b6(_0x279785,_0x23a948,_0x348b41);this['_activeShapeModel'][_0x451a85(0x2a0)]();let _0x21bc51=_0x1306f6(_0x376154,_0x348b41);_0x5223c2?this['_executeConnectedRouteConnectionCommand'](_0x21bc51,_0x5223c2,_0x38ad7a,_0x3a97a6,_0x105796):this['_executeConnectedRouteResizeCommand'](_0x21bc51,_0x38ad7a,_0x3a97a6,_0x105796);}[_0x40a3e1(0x316)](_0x2a30ae,_0x1a99e3,_0x35f7e7,_0x36bf6c){const _0x374e8b=_0x40a3e1;let _0x3b9705=this[_0x374e8b(0x1d7)][_0x374e8b(0x295)]()[_0x374e8b(0x276)],_0x352eff={..._0x3b9705},_0x1aeb86={'shapeId':_0x1a99e3[_0x374e8b(0x464)],'cxnIndex':_0x1a99e3[_0x374e8b(0x3d5)]};_0x35f7e7?_0x352eff['from']=_0x1aeb86:_0x352eff['to']=_0x1aeb86;let _0x46a37c=this[_0x374e8b(0x1d7)]['getShapeType'](),_0x48c926=_0x1306f6(_0x2a30ae[_0x374e8b(0x31d)],_0x46a37c),_0x1b653d={'unitId':this[_0x374e8b(0x34f)],'subUnitId':this[_0x374e8b(0x465)],'connectorShapeId':this[_0x374e8b(0x27c)],'width':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x294)],'height':_0x2a30ae[_0x374e8b(0x21f)]['height'],'left':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x3d3)],'top':_0x2a30ae[_0x374e8b(0x21f)][_0x374e8b(0x473)],'flipX':_0x2a30ae['worldRect'][_0x374e8b(0x405)]||!0x1,'flipY':_0x2a30ae['worldRect'][_0x374e8b(0x305)]||!0x1,'newAdjustValues':_0x48c926['adjustValues'],'oldAdjustValues':_0x36bf6c,'oldRelation':_0x3b9705,'newRelation':_0x352eff,'newLineType':_0x48c926[_0x374e8b(0x34c)],'oldLineType':_0x46a37c};this['_commandService'][_0x374e8b(0x2d5)](_0x56d2bf['id'],_0x1b653d);}[_0x40a3e1(0x398)](_0x5e5be6,_0x275614){const _0x599429=_0x40a3e1;let _0x24a3c6=this[_0x599429(0x1d7)][_0x599429(0x3e1)](),_0x227777=_0x1306f6(_0x5e5be6['worldPoints'],_0x24a3c6),_0x4d6499={'unitId':this[_0x599429(0x34f)],'subUnitId':this[_0x599429(0x465)],'shapeId':this[_0x599429(0x27c)],'width':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x294)],'height':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x222)],'left':_0x5e5be6[_0x599429(0x21f)][_0x599429(0x3d3)],'top':_0x5e5be6['worldRect']['top'],'flipX':_0x5e5be6[_0x599429(0x21f)]['flipX']||!0x1,'flipY':_0x5e5be6[_0x599429(0x21f)]['flipY']||!0x1,'angle':_0x5e5be6[_0x599429(0x21f)]['angle']||0x0,'newAdjustValues':_0x227777[_0x599429(0x3df)],'oldAdjustValues':_0x275614,'newLineType':_0x227777[_0x599429(0x34c)],'oldLineType':_0x24a3c6};this['_commandService'][_0x599429(0x2d5)](_0x521bba['id'],_0x4d6499);}['_executeConnectedRouteConnectionCommand'](_0x2a9b83,_0x38fe36,_0x4b6c07,_0x5cffed,_0x565c35){const _0x33fb83=_0x40a3e1;let _0x32d0fc=this[_0x33fb83(0x1d7)][_0x33fb83(0x295)]()[_0x33fb83(0x276)],_0x1c60be={..._0x32d0fc},_0x5e9169={'shapeId':_0x38fe36[_0x33fb83(0x464)],'cxnIndex':_0x38fe36[_0x33fb83(0x3d5)]};_0x5cffed?(_0x1c60be[_0x33fb83(0x354)]=_0x5e9169,_0x1c60be['to']=_0x4b6c07):(_0x1c60be[_0x33fb83(0x354)]=_0x4b6c07,_0x1c60be['to']=_0x5e9169);let _0x15374c={'unitId':this[_0x33fb83(0x34f)],'subUnitId':this[_0x33fb83(0x465)],'connectorShapeId':this[_0x33fb83(0x27c)],'width':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x294)],'height':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x222)],'left':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x3d3)],'top':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x473)],'flipX':_0x2a9b83['worldRect'][_0x33fb83(0x405)]||!0x1,'flipY':_0x2a9b83[_0x33fb83(0x21f)][_0x33fb83(0x305)]||!0x1,'oldAdjustValues':_0x565c35,'newAdjustValues':_0x2a9b83[_0x33fb83(0x3df)],'newLineType':_0x2a9b83[_0x33fb83(0x34c)],'rotation':_0x2a9b83['rotation'],'oldRelation':_0x32d0fc,'newRelation':_0x1c60be};this[_0x33fb83(0x279)][_0x33fb83(0x2d5)](_0x56d2bf['id'],_0x15374c);}[_0x40a3e1(0x44b)](_0x32de79,_0x4b7639,_0x2b71f8,_0x528298){const _0x11ad8f=_0x40a3e1;let _0x4fbac6=this['_activeShapeModel']['getShapeData']()[_0x11ad8f(0x276)],_0x2ad7f7={};_0x2b71f8?(_0x2ad7f7['to']=_0x4b7639,_0x2ad7f7[_0x11ad8f(0x354)]=void 0x0):(_0x2ad7f7[_0x11ad8f(0x354)]=_0x4b7639,_0x2ad7f7['to']=void 0x0);let _0x48149e={'unitId':this['_unitId'],'subUnitId':this[_0x11ad8f(0x465)],'connectorShapeId':this['_activeShapeId'],'width':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x294)],'height':_0x32de79[_0x11ad8f(0x21f)]['height'],'left':_0x32de79[_0x11ad8f(0x21f)]['left'],'top':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x473)],'flipX':_0x32de79[_0x11ad8f(0x21f)][_0x11ad8f(0x405)]||!0x1,'flipY':_0x32de79[_0x11ad8f(0x21f)]['flipY']||!0x1,'oldAdjustValues':_0x528298,'newAdjustValues':_0x32de79[_0x11ad8f(0x3df)],'newLineType':_0x32de79[_0x11ad8f(0x34c)],'rotation':_0x32de79[_0x11ad8f(0x2b3)],'oldRelation':_0x4fbac6,'newRelation':_0x2ad7f7};this[_0x11ad8f(0x279)][_0x11ad8f(0x2d5)](_0x56d2bf['id'],_0x48149e);}[_0x40a3e1(0x341)](_0x248d9c,_0x2f0ff2,_0x577713){const _0x21b1c1=_0x40a3e1;this[_0x21b1c1(0x1c6)](_0x35229e(_0x248d9c[_0x21b1c1(0x200)]['subscribeEvent']((_0x318cfe,_0x54db43)=>{const _0x3a35d5=_0x21b1c1;let _0xcd68f2=_0x248d9c[_0x3a35d5(0x2fc)]();if(this['_activeShapeModel']=this[_0x3a35d5(0x285)][_0x3a35d5(0x3f9)](_0xcd68f2[_0x3a35d5(0x43a)],_0xcd68f2['subUnitId'],_0xcd68f2[_0x3a35d5(0x35b)]),!this['_activeShapeModel'])return;let _0x14973a={};this[_0x3a35d5(0x1d7)][_0x3a35d5(0x226)]()[_0x3a35d5(0x46b)](_0x1da188=>{const _0x237d82=_0x3a35d5;let _0x5619c7=this[_0x237d82(0x1d7)][_0x237d82(0x1d1)](_0x1da188);_0x5619c7!==void 0x0&&(_0x14973a[_0x1da188]=_0x5619c7);});let _0xa6559=this['_getDrawingRect']();if(!_0xa6559)return;this[_0x3a35d5(0x3c6)]={..._0xa6559};let _0x21ae62=new _0x28f453(this[_0x3a35d5(0x3c6)]),_0x79217c=_0x4eca2a({'unitId':this[_0x3a35d5(0x34f)],'subUnitId':this[_0x3a35d5(0x465)],'drawingId':this['_activeShapeId']}),_0x26ab91=_0x2f0ff2[_0x3a35d5(0x2d2)](_0x79217c);this[_0x3a35d5(0x47a)]=!0x0,_0x2f0ff2[_0x3a35d5(0x29c)](),this[_0x3a35d5(0x461)][_0x3a35d5(0x343)](_0x2f0ff2,this[_0x3a35d5(0x34f)],this['_subUnitId'],this['_activeShapeId']),this['_currentConnectionTarget']=null;let _0x46e161=this[_0x3a35d5(0x1d7)][_0x3a35d5(0x3e7)](),_0x16b6d0=_0x46e161[0x0],_0x2ac415=_0x46e161[_0x46e161[_0x3a35d5(0x46d)]-0x1],_0x23cb4d=_0x577713?_0x21ae62[_0x3a35d5(0x442)](_0x2ac415):_0x21ae62['localToWorld'](_0x16b6d0);this[_0x3a35d5(0x208)]=_0x2f0ff2[_0x3a35d5(0x427)][_0x3a35d5(0x42f)]((_0x1b5b93,_0x457267)=>{const _0x3e0b0c=_0x3a35d5;if(!this[_0x3e0b0c(0x47a)]||!this[_0x3e0b0c(0x1d7)])return;this['_hasReset']||=(this[_0x3e0b0c(0x383)][_0x3e0b0c(0x377)](),this[_0x3e0b0c(0x1d7)][_0x3e0b0c(0x416)](),!0x0);let _0x1e9728=this[_0x3e0b0c(0x3d4)](this[_0x3e0b0c(0x34f)],this[_0x3e0b0c(0x465)]),_0x3ac217=this['_getZoomRatio'](this[_0x3e0b0c(0x34f)],this[_0x3e0b0c(0x465)]),_0x3ceb7a={'x':_0x1b5b93['offsetX']/_0x3ac217+_0x1e9728['x'],'y':_0x1b5b93[_0x3e0b0c(0x2cd)]/_0x3ac217+_0x1e9728['y']},_0x14792a=this['_sheetBasicShapeConnectionPointController'][_0x3e0b0c(0x29f)](_0x3ceb7a);if(_0x14792a){let {shapeId:_0x6cec26,unitId:_0xbbfaec,subUnitId:_0xc5e0a9}=_0x14792a;if(_0x6cec26&&_0xbbfaec&&_0xc5e0a9){let _0x46cc0f=_0x4eca2a({'unitId':_0xbbfaec,'subUnitId':_0xc5e0a9,'drawingId':_0x6cec26});_0x14792a[_0x3e0b0c(0x2f9)]=(_0x2f0ff2[_0x3e0b0c(0x2d2)](_0x46cc0f)[_0x3e0b0c(0x2f9)]||0x0)+_0x14792a[_0x3e0b0c(0x2f9)];}}this[_0x3e0b0c(0x324)]=_0x14792a;let _0x3a8406=_0x577713?this[_0x3e0b0c(0x1d7)][_0x3e0b0c(0x30e)]():this[_0x3e0b0c(0x1d7)]['getStartConnectInfo']();if(_0x3a8406){this[_0x3e0b0c(0x2de)](_0x3a8406,_0x3ceb7a,_0x577713,_0x26ab91,_0x248d9c);return;}this[_0x3e0b0c(0x458)](_0x3ceb7a,_0x23cb4d,_0x577713,_0x26ab91,_0x248d9c);}),this[_0x3a35d5(0x2db)]=_0x2f0ff2[_0x3a35d5(0x304)][_0x3a35d5(0x42f)]((_0x200814,_0x36ee7f)=>{const _0x5c09ef=_0x3a35d5;this[_0x5c09ef(0x38d)](_0x2f0ff2,_0x23cb4d,_0x200814,_0x577713,_0x14973a);}),_0x54db43[_0x3a35d5(0x204)]();})));}[_0x40a3e1(0x2ef)](_0x2ddd91,_0x4c2f0c,_0x2c0090){const _0x561a9d=_0x40a3e1;let _0x33510d=this[_0x561a9d(0x285)][_0x561a9d(0x3e0)](_0x2ddd91,_0x4c2f0c,_0x2c0090);if(!_0x33510d||_0x33510d['length']===0x0)return;let _0x15be20=this[_0x561a9d(0x258)][_0x561a9d(0x2cf)](_0x2ddd91);if(!_0x15be20)return;let {scene:_0x30233b}=_0x15be20;for(let _0x3f8e02 of _0x33510d){let _0x5997fb=_0x3f8e02['lineShapeId'],_0x5927dc=this['_sheetsShapeService'][_0x561a9d(0x3f9)](_0x2ddd91,_0x4c2f0c,_0x5997fb);if(!_0x5927dc)continue;let _0x4204a4=_0x5927dc['getStartConnectInfo'](),_0x488618=_0x5927dc[_0x561a9d(0x30e)](),_0xac51f3=(_0x4204a4==null?void 0x0:_0x4204a4[_0x561a9d(0x464)])===_0x2c0090,_0x417efb=_0x4eca2a({'unitId':_0x2ddd91,'subUnitId':_0x4c2f0c,'drawingId':_0x5997fb}),_0x47f979=_0x30233b[_0x561a9d(0x2d2)](_0x417efb);if(!_0x47f979)continue;let _0x2f9f31=this[_0x561a9d(0x2f1)][_0x561a9d(0x31f)]({'unitId':_0x2ddd91,'subUnitId':_0x4c2f0c,'drawingId':_0x5997fb});_0x2f9f31!=null&&_0x2f9f31[_0x561a9d(0x412)]&&(_0x4204a4&&_0x488618?this[_0x561a9d(0x2b4)](_0x2ddd91,_0x4c2f0c,_0x5997fb,_0x5927dc,_0x4204a4,_0x488618,_0x47f979):this[_0x561a9d(0x321)](_0x2ddd91,_0x4c2f0c,_0x5997fb,_0x5927dc,_0xac51f3?_0x4204a4:_0x488618,_0xac51f3,_0x2f9f31,_0x47f979));}}[_0x40a3e1(0x2b4)](_0x252ec5,_0x1cf9af,_0x3f9f2a,_0xf79fd6,_0x189b1c,_0x88980a,_0x14cb4a){const _0xe34439=_0x40a3e1;let _0x2c87e9=this[_0xe34439(0x34f)],_0x349678=this[_0xe34439(0x465)];this[_0xe34439(0x34f)]=_0x252ec5,this[_0xe34439(0x465)]=_0x1cf9af;let _0x54d301=this[_0xe34439(0x375)](_0x189b1c),_0x3db7bc=this['_getConnectPointInfo'](_0x88980a);if(this[_0xe34439(0x34f)]=_0x2c87e9,this[_0xe34439(0x465)]=_0x349678,!_0x54d301||!_0x3db7bc)return;let _0xbf3e81=_0xf79fd6['getShapeType'](),_0x57b42a=_0x4ed1b6(_0x54d301,_0x3db7bc,_0xbf3e81);_0x57b42a&&_0xf79fd6[_0xe34439(0x2c2)](_0x57b42a);let _0x2318a3=_0x1306f6(_0x57b42a,_0xbf3e81);_0x2318a3[_0xe34439(0x34c)]!==_0xbf3e81&&_0xf79fd6[_0xe34439(0x244)](_0x2318a3['lineType']),_0xf79fd6[_0xe34439(0x416)]();for(let [_0xf872bd,_0x105e40]of Object[_0xe34439(0x417)](_0x2318a3[_0xe34439(0x3df)]))_0xf79fd6['setAdjustValueByName'](_0xf872bd,_0x105e40);_0xf79fd6['updateContext']({'width':_0x2318a3['worldRect'][_0xe34439(0x294)],'height':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x222)]}),_0x14cb4a[_0xe34439(0x3a6)]({'flipX':_0x2318a3[_0xe34439(0x21f)]['flipX'],'flipY':_0x2318a3[_0xe34439(0x21f)]['flipY'],'left':_0x2318a3['worldRect']['left'],'top':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x473)],'width':_0x2318a3['worldRect'][_0xe34439(0x294)],'height':_0x2318a3[_0xe34439(0x21f)][_0xe34439(0x222)],'angle':_0x2318a3[_0xe34439(0x2b3)]}),_0xf79fd6['removeLinePoints']();}[_0x40a3e1(0x321)](_0x2de7aa,_0x3dbfd4,_0x584e9e,_0xd6887,_0x535d62,_0x341502,_0x46afa8,_0x44f803){const _0x3f9972=_0x40a3e1;let _0x36ba13=this[_0x3f9972(0x34f)],_0x3446d9=this[_0x3f9972(0x465)];this[_0x3f9972(0x34f)]=_0x2de7aa,this[_0x3f9972(0x465)]=_0x3dbfd4;let _0x550820=this['_getConnectPointInfo'](_0x535d62);if(this[_0x3f9972(0x34f)]=_0x36ba13,this[_0x3f9972(0x465)]=_0x3446d9,!_0x550820)return;let {left:_0x249645=0x0,top:_0x5a0d18=0x0,width:_0x74eef5=0x0,height:_0xb74bb7=0x0,flipX:_0x311969=!0x1,flipY:_0x4bb764=!0x1}=_0x46afa8[_0x3f9972(0x412)],_0x343aef=_0xd6887['getConnectorLinePoints']();if(_0x343aef[_0x3f9972(0x46d)]<0x2)return;let _0x16840c=new _0x28f453({'left':_0x249645,'top':_0x5a0d18,'width':_0x74eef5,'height':_0xb74bb7,'flipX':_0x311969,'flipY':_0x4bb764}),_0x453fa1=_0x341502?_0x343aef[_0x343aef[_0x3f9972(0x46d)]-0x1]:_0x343aef[0x0],_0x6102f7=_0x16840c[_0x3f9972(0x442)](_0x453fa1),_0x429a91=_0x28f453[_0x3f9972(0x337)](_0x6102f7,_0x550820['point'],!_0x341502);_0x44f803[_0x3f9972(0x3a6)]({'flipX':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x405)],'flipY':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x305)],'left':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x3d3)],'top':_0x429a91['worldRect'][_0x3f9972(0x473)],'width':_0x429a91['worldRect'][_0x3f9972(0x294)],'height':_0x429a91['worldRect'][_0x3f9972(0x222)],'angle':_0x429a91[_0x3f9972(0x21f)][_0x3f9972(0x2f9)]}),_0x44f803['makeDirty'](!0x0);}['_clearShapeConnectorHandlerObjects'](){const _0x5eb804=_0x40a3e1;this[_0x5eb804(0x309)][_0x5eb804(0x46d)]!==0x0&&(this['_connectorObjects'][_0x5eb804(0x46b)](_0x22d55c=>{_0x22d55c['dispose']();}),this[_0x5eb804(0x309)]=[]);}['_registerDrawingMoveHandler'](){const _0x2d119b=_0x40a3e1;let _0x3be967=this['_univerInstanceService']['getCurrentTypeOfUnit$'](_0x2f72d4[_0x2d119b(0x2ce)]);this[_0x2d119b(0x1c6)](_0x3be967[_0x2d119b(0x300)](_0x59c42a(_0x40b043=>_0x40b043?_0x40b043[_0x2d119b(0x251)][_0x2d119b(0x300)](_0x59c42a(_0x3ef725=>{const _0x588a1c=_0x2d119b;if(!_0x3ef725)return _0x50a9a5;let _0x27a773=_0x40b043[_0x588a1c(0x2ae)](),_0x175e2e=this[_0x588a1c(0x258)][_0x588a1c(0x2cf)](_0x27a773),_0x37ce19=_0x175e2e==null?void 0x0:_0x175e2e[_0x588a1c(0x25b)];return _0x37ce19?_0x3cb66b(_0x37ce19):_0x50a9a5;})):_0x50a9a5))[_0x2d119b(0x1ff)](_0xed6003=>{const _0x51a315=_0x2d119b;let _0x33a16e=_0xed6003[_0x51a315(0x282)]();this['disposeWithMe'](_0xed6003[_0x51a315(0x427)][_0x51a315(0x42f)](_0x4d03b9=>{const _0x3ef75f=_0x51a315;this[_0x3ef75f(0x233)]&&this[_0x3ef75f(0x27c)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x51a315(0x1c6)](_0x33a16e[_0x51a315(0x37f)][_0x51a315(0x1ff)](_0x40d1f7=>{const _0x29ff8b=_0x51a315;let {objects:_0x3a77c6}=_0x40d1f7;this[_0x29ff8b(0x20d)](),_0x3a77c6!==null&&_0x3a77c6[_0x29ff8b(0x219)]===0x1&&_0x3a77c6['values']()['next']()[_0x29ff8b(0x437)]instanceof J&&(this['_isDrawingShapePointDown']=!0x0);})),this[_0x51a315(0x1c6)](_0x33a16e[_0x51a315(0x303)][_0x51a315(0x1ff)](_0x308666=>{const _0x532c07=_0x51a315;this[_0x532c07(0x233)]&&this[_0x532c07(0x20d)]();})),this['disposeWithMe'](_0xed6003[_0x51a315(0x304)][_0x51a315(0x42f)](()=>{const _0x34237c=_0x51a315;this['_isDrawingShapePointDown']&&(this[_0x34237c(0x233)]=!0x1,this['_addShapeConnectorHandlerObjects']());})),this['disposeWithMe'](_0x33a16e[_0x51a315(0x44f)]['subscribe'](()=>{const _0x231e7e=_0x51a315;this[_0x231e7e(0x34f)]&&this[_0x231e7e(0x465)]&&this[_0x231e7e(0x27c)]&&this[_0x231e7e(0x2f1)][_0x231e7e(0x31f)]({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x231e7e(0x27c)]})&&(this['_clearShapeConnectorHandlerObjects'](),this[_0x231e7e(0x28c)]());}));}));}[_0x40a3e1(0x28e)](){const _0x2fc07f=_0x40a3e1;this['disposeWithMe'](this[_0x2fc07f(0x2f1)][_0x2fc07f(0x2f5)][_0x2fc07f(0x1ff)](_0x2353f3=>{const _0x55e996=_0x2fc07f;if(_0x2353f3[_0x55e996(0x46d)]===0x1){let _0x4bd3d9=_0x2353f3[0x0];if(_0x4bd3d9[_0x55e996(0x221)]===_0x204a86['DRAWING_SHAPE']){let _0x16704b=this[_0x55e996(0x285)][_0x55e996(0x3f9)](_0x4bd3d9['unitId'],_0x4bd3d9[_0x55e996(0x330)],_0x4bd3d9[_0x55e996(0x35b)]);if(_0x16704b&&_0x421dc8(_0x16704b[_0x55e996(0x3e1)]())){this['_activeShapeId']=_0x4bd3d9[_0x55e996(0x35b)],this[_0x55e996(0x34f)]=_0x4bd3d9[_0x55e996(0x43a)],this[_0x55e996(0x465)]=_0x4bd3d9[_0x55e996(0x330)],this[_0x55e996(0x20d)](),this[_0x55e996(0x28c)]();return;}}}this[_0x55e996(0x27c)]=void 0x0,this[_0x55e996(0x34f)]=void 0x0,this[_0x55e996(0x465)]=void 0x0,this[_0x55e996(0x20d)]();})),this[_0x2fc07f(0x1c6)](this[_0x2fc07f(0x2f1)][_0x2fc07f(0x2a3)][_0x2fc07f(0x1ff)](_0x1081b2=>{const _0x3c43cc=_0x2fc07f;if(_0x1081b2[_0x3c43cc(0x46d)]===0x1){var _0x5e3ddb;let _0x141a8f=_0x1081b2[0x0],_0x5ad352=(_0x5e3ddb=this[_0x3c43cc(0x2f1)]['getDrawingByParam'](_0x141a8f))==null?void 0x0:_0x5e3ddb['drawingType'];_0x5ad352===_0x204a86[_0x3c43cc(0x41a)]&&_0x141a8f['drawingId']===this[_0x3c43cc(0x27c)]?(this[_0x3c43cc(0x20d)](),this[_0x3c43cc(0x28c)]()):!this['_activeShapeId']&&_0x5ad352===_0x204a86[_0x3c43cc(0x41a)]&&this[_0x3c43cc(0x2ef)](_0x141a8f[_0x3c43cc(0x43a)],_0x141a8f[_0x3c43cc(0x330)],_0x141a8f[_0x3c43cc(0x35b)]);}})),this[_0x2fc07f(0x1c6)](this['_drawingManagerService'][_0x2fc07f(0x2f6)]['subscribe'](_0x263339=>{const _0x42a69d=_0x2fc07f;for(let _0x38e1d9 of _0x263339){let {drawingId:_0x546c9c}=_0x38e1d9;if(this[_0x42a69d(0x27c)]===_0x546c9c){this[_0x42a69d(0x2f7)]();return;}}}));}[_0x40a3e1(0x2de)](_0x52de6f,_0x508a79,_0x3c86e0,_0x272e71,_0x15f73d){const _0x3459e8=_0x40a3e1;var _0x3bd4fe;if(!this[_0x3459e8(0x1d7)])return;let _0x187fa8=this[_0x3459e8(0x375)](_0x52de6f);if(!_0x187fa8)return;let _0x39a2dc=this[_0x3459e8(0x324)]?this['_currentConnectionTarget'][_0x3459e8(0x426)]:_0x508a79,_0x5ddb3e=this[_0x3459e8(0x324)]?this[_0x3459e8(0x324)]['angle']:this[_0x3459e8(0x36b)](_0x187fa8['point'],_0x39a2dc),_0x5d8702;if(this['_currentConnectionTarget']){let _0x3547b2=this[_0x3459e8(0x2f1)]['getDrawingByParam']({'unitId':this['_currentConnectionTarget']['unitId'],'subUnitId':this[_0x3459e8(0x324)][_0x3459e8(0x330)],'drawingId':this[_0x3459e8(0x324)][_0x3459e8(0x464)]});if(_0x3547b2!=null&&_0x3547b2[_0x3459e8(0x412)]){let {left:_0x373535=0x0,top:_0x312f8f=0x0,width:_0x5e79f4=0x0,height:_0xc37579=0x0,angle:_0x39dd7d}=_0x3547b2['transform'];_0x5d8702=_0x149266({'left':_0x373535,'top':_0x312f8f,'width':_0x5e79f4,'height':_0xc37579},_0x39dd7d||0x0);}else _0x5d8702={'left':_0x39a2dc['x'],'top':_0x39a2dc['y'],'width':0x0,'height':0x0};}else _0x5d8702={'left':_0x39a2dc['x'],'top':_0x39a2dc['y'],'width':0x0,'height':0x0};let _0x19ac6b={'point':_0x39a2dc,'angle':_0x5ddb3e,'bounds':_0x5d8702},_0x2aef36=_0x3c86e0?_0x19ac6b:_0x187fa8,_0x232bb8=_0x3c86e0?_0x187fa8:_0x19ac6b,_0x4974d2=this['_activeShapeModel'][_0x3459e8(0x3e1)](),_0x5b1bfb=_0x4ed1b6(_0x2aef36,_0x232bb8,_0x4974d2);_0x5b1bfb&&this[_0x3459e8(0x1d7)][_0x3459e8(0x2c2)](_0x5b1bfb);let _0x262ba8=_0x1306f6(_0x5b1bfb,_0x4974d2);_0x262ba8[_0x3459e8(0x34c)]!==_0x4974d2&&this[_0x3459e8(0x1d7)][_0x3459e8(0x244)](_0x262ba8[_0x3459e8(0x34c)]);for(let [_0x2674a2,_0x32f084]of Object[_0x3459e8(0x417)](_0x262ba8['adjustValues']))this[_0x3459e8(0x1d7)][_0x3459e8(0x1fc)](_0x2674a2,_0x32f084);this[_0x3459e8(0x1d7)][_0x3459e8(0x2e0)]({'width':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x294)],'height':_0x262ba8[_0x3459e8(0x21f)]['height']}),_0x272e71['transformByState']({'flipX':_0x262ba8['worldRect']['flipX'],'flipY':_0x262ba8['worldRect']['flipY'],'left':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x3d3)],'top':_0x262ba8['worldRect'][_0x3459e8(0x473)],'width':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x294)],'height':_0x262ba8[_0x3459e8(0x21f)][_0x3459e8(0x222)],'angle':_0x262ba8['rotation']}),_0x272e71[_0x3459e8(0x33f)](!0x0);let _0x32e6d0=((_0x3bd4fe=this['_currentConnectionTarget'])==null?void 0x0:_0x3bd4fe[_0x3459e8(0x426)])??_0x508a79;_0x15f73d['transformByState']({'left':_0x32e6d0['x']-_0x2c02a7[_0x3459e8(0x314)],'top':_0x32e6d0['y']-_0x2c02a7[_0x3459e8(0x314)]});}[_0x40a3e1(0x458)](_0xb5fd66,_0xf6c344,_0x2a6d92,_0x8c4a27,_0x14b23d){const _0x35973d=_0x40a3e1;var _0x267209,_0x2b5827;let _0xdd9b49=((_0x267209=this[_0x35973d(0x324)])==null?void 0x0:_0x267209['worldPoint'])??_0xb5fd66,_0x548800=_0x28f453[_0x35973d(0x337)](_0xf6c344,_0xdd9b49,_0x2a6d92);_0x8c4a27[_0x35973d(0x3a6)]({'flipX':_0x548800[_0x35973d(0x21f)]['flipX'],'flipY':_0x548800[_0x35973d(0x21f)]['flipY'],'left':_0x548800[_0x35973d(0x21f)]['left'],'top':_0x548800[_0x35973d(0x21f)]['top'],'width':_0x548800['worldRect']['width'],'height':_0x548800['worldRect'][_0x35973d(0x222)],'angle':_0x548800[_0x35973d(0x21f)][_0x35973d(0x2f9)]});let _0x5e7d73=((_0x2b5827=this[_0x35973d(0x324)])==null?void 0x0:_0x2b5827[_0x35973d(0x426)])??_0xb5fd66;_0x14b23d[_0x35973d(0x3a6)]({'left':_0x5e7d73['x']-_0x2c02a7[_0x35973d(0x314)],'top':_0x5e7d73['y']-_0x2c02a7[_0x35973d(0x314)]});}[_0x40a3e1(0x375)](_0x2f8022){const _0x5e2d46=_0x40a3e1;if(!this[_0x5e2d46(0x34f)]||!this[_0x5e2d46(0x465)])return null;let {shapeId:_0xc3bd7d,cxnIndex:_0x52ee97}=_0x2f8022,_0x35303f=this['_sheetsShapeService'][_0x5e2d46(0x3f9)](this[_0x5e2d46(0x34f)],this['_subUnitId'],_0xc3bd7d);if(!_0x35303f)return null;let _0x4ddd25=this[_0x5e2d46(0x2f1)][_0x5e2d46(0x31f)]({'unitId':this['_unitId'],'subUnitId':this[_0x5e2d46(0x465)],'drawingId':_0xc3bd7d});if(!(_0x4ddd25!=null&&_0x4ddd25[_0x5e2d46(0x412)]))return null;let {left:_0x6bd6bc=0x0,top:_0x4ed20d=0x0,width:_0x36f878=0x0,height:_0x58d260=0x0,flipX:_0x4e0ba9=!0x1,flipY:_0x5411e5=!0x1,angle:_0x1c16ca}=_0x4ddd25[_0x5e2d46(0x412)];_0x35303f[_0x5e2d46(0x2e0)]({'width':_0x36f878,'height':_0x58d260});let _0xfb6a14=_0x35303f['getConnectionSiteList']()[_0x5e2d46(0x278)](_0x49a128=>_0x49a128[_0x5e2d46(0x352)]===_0x52ee97);if(!_0xfb6a14)return null;let _0x5a772f=_0x4e0ba9?_0x36f878-_0xfb6a14['x']:_0xfb6a14['x'],_0x20279a=_0x5411e5?_0x58d260-_0xfb6a14['y']:_0xfb6a14['y'];if(_0x1c16ca!==0x0&&_0x1c16ca!=null){let _0x25a790=_0x1c16ca*Math['PI']/0xb4,_0x450cf0=Math[_0x5e2d46(0x3d2)](_0x25a790),_0x26dd88=Math[_0x5e2d46(0x332)](_0x25a790),_0x2b0721=_0x36f878/0x2,_0x58e022=_0x58d260/0x2,_0x2ae902=_0x5a772f-_0x2b0721,_0x1f8621=_0x20279a-_0x58e022;_0x5a772f=_0x2b0721+_0x2ae902*_0x450cf0-_0x1f8621*_0x26dd88,_0x20279a=_0x58e022+_0x2ae902*_0x26dd88+_0x1f8621*_0x450cf0;}_0x5a772f+=_0x6bd6bc,_0x20279a+=_0x4ed20d;let _0x351b1c=_0xfb6a14[_0x5e2d46(0x308)]/0xea60;_0x4e0ba9&&(_0x351b1c=0xb4-_0x351b1c),_0x5411e5&&(_0x351b1c=-_0x351b1c),_0x351b1c+=_0x1c16ca||0x0,_0x351b1c=(_0x351b1c%0x168+0x168)%0x168;let _0x1003bb=_0x149266({'left':_0x6bd6bc,'top':_0x4ed20d,'width':_0x36f878,'height':_0x58d260},_0x1c16ca||0x0);return{'point':{'x':_0x5a772f,'y':_0x20279a},'angle':_0x351b1c,'bounds':_0x1003bb};}[_0x40a3e1(0x36b)](_0x459b3d,_0x13f748){const _0x359f7e=_0x40a3e1;let _0x7e1cda=_0x13f748['x']-_0x459b3d['x'],_0x5e17d2=_0x13f748['y']-_0x459b3d['y'];return Math['abs'](_0x7e1cda)>=Math[_0x359f7e(0x32e)](_0x5e17d2)?_0x7e1cda>=0x0?0xb4:0x0:_0x5e17d2>=0x0?0x10e:0x5a;}[_0x40a3e1(0x2f7)](){const _0x335783=_0x40a3e1;this['_activeShapeId']=void 0x0,this['_unitId']=void 0x0,this['_subUnitId']=void 0x0,this[_0x335783(0x20d)]();}[_0x40a3e1(0x223)](){const _0x270694=_0x40a3e1;this['_clearShapeConnectorHandlerObjects'](),super[_0x270694(0x223)]();}};ma=X([Y(0x1,_0x3a4817),Y(0x2,_0x5a17c7),Y(0x3,_0x2d58e3),Y(0x4,_0x3a3cc8),Y(0x5,_0x34f57e(_0x25eee4)),Y(0x6,_0x34f57e(Pr)),Y(0x7,_0x34f57e(da))],ma);let ha=class extends _0x1f1ba9{constructor(_0x54389f,_0x106ba7,_0x227e27){const _0x48cea7=_0x40a3e1;super(),this[_0x48cea7(0x1d4)]=_0x54389f,this[_0x48cea7(0x2f1)]=_0x106ba7,this[_0x48cea7(0x239)]=_0x227e27,this[_0x48cea7(0x334)]();}[_0x40a3e1(0x334)](){const _0x303f3c=_0x40a3e1;this['disposeWithMe'](this[_0x303f3c(0x1d4)]['interceptor'][_0x303f3c(0x245)](this['_sheetPrintInterceptorService'][_0x303f3c(0x378)][_0x303f3c(0x1f8)]()[_0x303f3c(0x371)],{'handler':(_0x16ad1a,_0x3061c0,_0x460d9f)=>{const _0x40e8ef=_0x303f3c;var _0x172bed;let {unitId:_0x4db447,subUnitId:_0x3c6655,scene:_0x330f95,resourceCollector:_0x2748e6}=_0x3061c0,_0x591c75=(_0x172bed=this[_0x40e8ef(0x2f1)][_0x40e8ef(0x1c4)](_0x4db447))==null?void 0x0:_0x172bed[_0x3c6655];return _0x591c75==null||_0x591c75['order']['forEach'](_0x4a7a99=>{const _0x50e5ae=_0x40e8ef;let _0x5c3e04=_0x591c75[_0x50e5ae(0x406)][_0x4a7a99];_0x5c3e04[_0x50e5ae(0x221)]===_0x204a86[_0x50e5ae(0x41a)]&&!_0x5c3e04[_0x50e5ae(0x44e)]&&this[_0x50e5ae(0x239)][_0x50e5ae(0x359)](_0x5c3e04,_0x330f95,{'resourceCollector':_0x2748e6});}),_0x460d9f(_0x16ad1a);}}));}};ha=X([Y(0x0,_0x34f57e(_0x118b16)),Y(0x1,_0x2d58e3),Y(0x2,_0x34f57e(Z))],ha);let ga=class extends _0x1f1ba9{constructor(_0x27d3f3,_0x100434,_0x4dc577){const _0x4cacae=_0x40a3e1;super(),this[_0x4cacae(0x279)]=_0x27d3f3,this[_0x4cacae(0x1d3)]=_0x100434,this[_0x4cacae(0x1ec)]=_0x4dc577,this[_0x4cacae(0x1ba)]();}['_initPermission'](){const _0x29b14a=_0x40a3e1;this[_0x29b14a(0x1c6)](this['_commandService']['beforeCommandExecuted'](_0x2fe561=>{const _0x3c03bd=_0x29b14a;let _0x313173,_0x534c21;if(_0x2fe561['id']===_0x68b808['id']||_0x2fe561['id']===_0x2e6ede['id']||_0x2fe561['id']===_0x56d2bf['id']){let _0x366069=_0x2fe561['params'];_0x313173=_0x366069[_0x3c03bd(0x43a)],_0x534c21=_0x366069[_0x3c03bd(0x330)];}_0x313173&&_0x534c21&&(this[_0x3c03bd(0x1ec)][_0x3c03bd(0x1bd)]({'workbookTypes':[_0x3edb9a],'worksheetTypes':[_0x2e8354]},_0x313173,_0x534c21)||this[_0x3c03bd(0x1ec)][_0x3c03bd(0x367)](this['_localeService']['t'](_0x3c03bd(0x237))));}));}};ga=X([Y(0x0,_0x34f57e(_0x3a4817)),Y(0x1,_0x34f57e(_0x1fc669)),Y(0x2,_0x34f57e(_0xe3fb01))],ga);let _a=class{constructor(_0x3e64db){const _0x1f62b6=_0x40a3e1;this[_0x1f62b6(0x258)]=_0x3e64db;}['updateShapeFillImage'](_0x4cca11,_0x1379d8){const _0x16570a=_0x40a3e1;let _0x136e60=this[_0x16570a(0x258)][_0x16570a(0x2cf)](_0x4cca11[_0x16570a(0x43a)]),_0x11b217=_0x136e60==null?void 0x0:_0x136e60[_0x16570a(0x25b)];if(!_0x11b217)return;let _0x1143f6=_0x4eca2a(_0x4cca11),_0x37f138=_0x11b217[_0x16570a(0x2d2)](_0x1143f6);_0x37f138==null||_0x37f138[_0x16570a(0x3b9)](_0x1379d8);}};function _0x4acb(){const _0x5637bb=['hideContextualTab','pipe','transformVector2SceneCoord','calcAdjValues','changing$','onPointerUp$','flipY','_registerComponents','getSelectedObjectMap','ang','_connectorObjects','_initEvents','shape-editor-ui.toolbar.changeShape','setConfig','onStarting','getEndConnectInfo','_drawingAddListener','getDrawingOrder','univer-box-border\x20univer-px-4\x20univer-text-sm','sheet.menu.shape.flip-vertical','complete','cxnPointRadius','_injector','_executeConnectionCommand','extraProps','skeleton','text','_disposed','startX','getConnectionRelation','worldPoints','OPERATION','getDrawingByParam','ancestorTransform','_moveConnectorWithShape','_imageShapeClipController','_registerMoveHandler','_currentConnectionTarget','updateDocumentDataMargin','unit','drawing-ui.objectListPanel.unlock','drawing-ui.objectListPanel.descriptionPlaceholder','FlipHorizontalIcon','TOP','_baseWidth','object','onSavingEditorData$','abs','setShouldShowAdjust','subUnitId','_sheetCanvasPopManagerService','sin','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_initPrinting','sheets-shape-ui.insertShape','actualHeight','computeConnectorResizeLayout','_drawSimpleText','SolidLine','getBatchUpdateOp','#FFFFFF','sheetTransform','extensionGroups','initShapePopupMenu','makeDirty','resize','_attachConnectorObjectEvent','editingParams$','startConnectionDetection','custom','getValue','push','clip','_isStartConnectorPoint','formulaPresentation','_addControl','11258FlSpSW','lineType','current','setHighlighted','_unitId','76zLBcJV','_shapeUpdateListener','index','MEDIA','from','_shapeFloatingToolbarService','shape-editor-ui.arrange.back','shape-editor-ui.arrange.backward','_clearPopups','renderDrawingShape','string','drawingId','_baseShapeLeft','_shapePopupMenuDisposable','drawing-ui.objectListPanel.noSelection','5896nUfrrk','_getImagePrstGeom','open','composeMatrix','_permissionService','_completionFrame','prstGeom','sheets-shape-text-','blockExecuteWithoutPermission','panel','getCurrentScrollState','sheet.shape.text.float-menu','_calculateFreeEndpointAngle','drawing-ui.objectListPanel.sectionCanvas','_getSceneAndTransformerByDrawingSearch','getState','_applyFormulaAutoFitSize','sheet.operation.update-shape-type','PRINTING_COMPONENT_COLLECT','_highlightedSiteIndex','permissionPointUpdate$','getParent','_getConnectPointInfo','multiply','clearAdjustControls','interceptor','doc','1026106HwlhDr','updateShapeFillImage','srcRect','24RITCka','_showConnectionSites','changeStart$','function','shape-editor-ui.toolbar.quickStyles','drawing-ui.objectListPanel.sectionFloating','_sheetShapeAdjustController','isInGroup','filter','clip-adj-','cxnPointFill','_baseTop','_generateCutPasteMutations','getShapeTypeById','beginPath','shape-editor-ui.arrange.forward','_handleConnectorPointerUp','add','_clearConnectionSites','isLineShape','adjName','_isImagePointerDown','viewportScrollY','_contextService','_adjHandlerPointerUp','bottom','_insertingShapeKeys','_executeResizeCommand','_generatePasteMutations','sheet.operation.open-sheet-shape-format-panel','_registerIcons','isHighlighted','src','resetCursor','oKey','set','_hide','_clearShapeAdjustControls','sheetViewStartColumn','getBatchRemoveOp','OTHERS','transformByState','onCommandExecuted','animationEnabled','stringify','drawing-ui.objectListPanel.moveForward','None','_canEdit','_adjName','addObject','sheets-shape-ui.title','classType','createControl$','getDrawingPoints','visible$','_sheetClipboardService','reverse','clear','sheets-shape-ui.shape-format.style-ribbon-control','selectable','setFillImage','_sheetSkeletonService','_drawRichTextLayer','_shapeService','_addShapeConnectorHandlerObject','onTransformChange$','flatMap','_hasReset','horizontal','_clearCompletionFrame','FromArray','14376MAPglc','UUID','_baseDrawingRect','getImage','sheet.shape.edit.panel','sheetViewStartRow','getConnectionSiteList','isEditing','clip-','axisAlignSheetTransform','gradientEndColor','sheets-shape-ui.flipVertical','registerClipDelegate','drawing-ui.objectListPanel.search','cos','left','_getScrollInfo','cxnIndex','_isShouldShowDrawingShapeAdjust','includes','_shapeId','create','_initMenu','_registerGroupFeaturePasteHook','sqrt','refreshShapeFillImage','refreshFormulaPresentation','adjustValues','getBasicShapeRelation','getShapeType','TopmostIcon','_clearControls','sheet.operation.apply-shape-quick-style','draw','drawWith','getConnectorLinePoints','visible','_init','drawing-ui.objectListPanel.title','sheet.shape.floating-toolbar','onReady','_shapeFormulaService','targetShapeId','Line','_updateShapeAdjustControls','register','contentHeight','shapeKey','presetId','sheet.image-clip.shape-picker.component','_draggingConnectorId','_copyInfo','_isStartAdjusting','getShapeModel','clipTop','getCurrentLastSelection','enableObjectsEvent','SHAPE_TEXT','front','_sidebarService','sheets-shape-ui.ribbon.shape-format','getTransformer','drawing-ui.objectListPanel.locate','fromChangeset','_getShapeAdjustInfosById','flipX','data','sheets-shape-ui.shape-format.formula-ribbon-control','_activeShapeAdjustPointList','@univerjs-pro/sheets-shape-ui','_baseShapeHeight','_context','_hyperLinkRegions','_getImageDrawingInfo','focusDrawing','formulaBinding','_sheetDrawingService','getMatrix','transform','keys','_imageIoService','applyPoint','clearAdjustValue','entries','getSheetId','componentKey','DRAWING_SHAPE','forward','render','redo','getActiveSheet','_registerImageShapeClipDelegate','invert','drawing-ui.objectListPanel.lock','fontSize','adjHandleStroke','parse','_activeShapeInfo','worldPoint','onPointerMove$','sheets-shape-ui','_visible','pluginName','add$','vertical','_findShapeAtPoint','getAdjustInfoByName','subscribeEvent','hasDefault','drawing-ui.objectListPanel.filterAll','_formulaShapes','with','_createControls','some','isRender','value','getDrawingEffectBounds','back','unitId','sheets-shape-ui.objectListPanel.title','getRealBound','normal','updateDocumentStyle','setFormulaPresentation','addImageSourceCache','_formulaAnimation','localToWorld','_registerFocusChangeHandler','image','name','VIEW_MAIN_LEFT_TOP','sheet.operation.open-mobile-shape-editor','sheets-shape-format-font-family-menu','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SELECTOR','_executeConnectedRouteResizeCommand','getScene','UNIVER_DOC','hidden','changeEnd$','shapeModel','_registerDrawingMoveHandler','_handleConnectedEndpointPointerUp','stroke','_getZoomRatio','UPDATE','DEFAULT_PASTE','_handleFreeEndpointPointerUp','_handleFreeEndpointMove','Image','shape-text-','fontFamily','_iconManager','GROUP','setShapeData','_baseHeight','getActiveViewportByCoord','_sheetBasicShapeConnectionPointController','_getDrawingRect','sheets-shape-ui.ribbon.shape-format.arrange-back','shapeId','_subUnitId','_currentUniverService','style','_isHighlighted','Rect','_drawShapeText','forEach','_getShapeAdjustPointListById','length','popup','endConnectionDetection','getSkeletonParam','sheets-shape-contextual-ribbon','_adjHandlerPointerMove','top','getZoomRatio','getSheetBySheetId','activeAnObject','_initCommands','sheets-shape-ui.shape-format.quick-style-gallery','pick','_isConnecting','attachTransformerTo','setOnSavingEditorData','getDrawingEditable','div','Arrow','_initPermission','getShapeTextData','shapeType','permissionCheckWithoutRange','_shapeEditPanelVersion','start','SheetShapeTextEditorContainer','translateWithPrecision','_urlImageService','_popupMenuListener','getDrawingDataForUnit','_initCopyPaste','disposeWithMe','drawing-ui.objectListPanel.unlockAll','_formulaKey','cxnPointStrokeWidth','setCollapsedIds','_focusedDrawings','_currentScene','sheets-shape-ui.deleteShape','onSteady','_generateCopyPasteMutations','getDrawingData','getAdjustValueByName','getStartConnectInfo','_localeService','_sheetPrintInterceptorService','getShapeTextRect','getSkeleton','_activeShapeModel','calculate','LEFT','top-center','_props','_ribbonService','getDrawingOKey','syncExecuteCommand','getShapeDataById','1ktQujE','endArrow','unregister','parent','onerror','getImageSourceCache','clearControl$','sheets-shape-ui.editShape','call','refreshAdjustControls','registerCommand','shapeData','_sheetPermissionCheckController','_draw','_activeImageId','INSERT','_resetState','_sidebarDisposable','COMMAND','contentVerticalOffset','setContextValue','_cxnIndex','drawing-ui.objectListPanel.expand','_baseShapeTop','getInterceptPoints','connector-handler-','params','sheets-shape-ui.objectListPanel.open','setAdjustValueByName','48366iVXEbY','DRAWING_IMAGE','subscribe','onPointerDown$','_connectionSiteObjects','isHitLine','_shapes','stopPropagation','_loadAndSetImage','prstGeomAdjValues','_commandExecutedListener','_cxtHandlerPointerMove','values','_initEditingParams','_activeAdjustPointList','onRendered','_clearShapeConnectorHandlerObjects','drawing-ui.objectListPanel.filterHidden','ObjectLayersIcon','sheets-shape-ui.flipHorizontal','_updateImageAdjValues','_getOrCreateShapeModel','viewBound','drawing-ui.objectListPanel.dragToReorder','drawing-ui.objectListPanel.lockHint','vertical-center','fillImageSource','_shapeTextEditingService','size','ShapeIcon','_activeTargetShapeId','shape-adjust-point-','presentation','_baseLeft','worldRect','symbol','drawingType','height','dispose','dataModel','9926ESStXZ','getAdjustNames','mergeMenu','sheets-shape-ui.quickStyles','_registerOperations','decorate','getPresentation','adjHandleSize','drawing-ui.objectListPanel.details','PictureFill','drawing-ui.objectListPanel.lockAll','strokeWidth','wrapStrategy','startArrow','_isDrawingShapePointDown','hideInfoPopup','_baseShapeWidth','_editingParams$','sheets-shape-ui.permission.editErr','REMOVE','_shapeRenderController','_closeShapeEditPanel','end','sheet.command.update-shape-data','getFocusDrawings','getCurrentSkeleton','resourceCollector','setPrstGeom','map','_registerFeatureMenu','getDrawingVisible','changeShapeType','intercept','_menuManagerService','_transform','1460EKeakg','point','_isOpenedShapeEditPanel','trim','next','getBatchAddOp','_insertShapes','getEditing','interceptCommand','activeSheet$','drawing-ui.objectListPanel.show','viewportScrollX','getContextValue','_config','sheets-shape-ui.formatShape','getConnectionInfo','_renderManagerService','#4285f4','getAutoFitPresentations','scene','drawing.operation.set-drawing-active','clipByShape','indexOf','MoveDownIcon','URL','prototype','sectionFloating','_createCopyInfoByRange','registerRenderModule','getCanvasElement','VIEW_MAIN','onDblclick$','setShapeProps','sheet.shape.object-list.panel','setPresentation','_lastEditingShapeKey','setCursor','_activeAdjustInfo','registerFeaturePasteHook','save','get','StraightConnector1','DRAWING','drawing-ui.objectListPanel.showAll','marginTop','type','relation','sheets-shape-ui.ribbon.shape-format.arrange-front','find','_commandService','error','Medium','_activeShapeId','restore','ShapeFormatSettingIcon','_updateTransform','setFallbackVisible','scale','getTransformerByCreate','_groupCopyPasteController','adjHandleFill','_sheetsShapeService','_attachAdjustEvent','getPermissionPoint','defineProperty','buildClipPath','_initSheetChange','_transformCalculateSrcRect','_addShapeConnectorHandlerObjects','1628860qmUzGs','_registerDrawingFocusChangeHandler','_findNearestConnectionSite','copyType','95955vgfHFi','setSrcRect','getCurrentTypeOfUnit$','width','getShapeData','title','isArray','BottomIcon','sectionCanvas','#bcbcbc','9281195wXxWiM','disableObjectsEvent','setEditing','iterator','updateConnectionDetection','removeLinePoints','_onSavingEditorData$','unsubscribe','update$','startY','completeEditing','getVisible','_createShapeAdjustControls','addClipboardHook','undo','color','isMainScene','_openShapeEditPanel','getCurrentUnitOfType','getUnitId','drawing-ui.objectListPanel.name','cxnPointStroke','_updateAdjustControlPositions','currentAdjustValues','rotation','_rerouteConnectorLine','BUTTON','_disposePopups','drawing-ui.objectListPanel.hide','Large','onload','shapeText','fillType','resolveHyperLinkAt','backward','getActualSize','_setTransForm','_sheetDrawingShapeRenderController','_clearFocusedShape','updateLinePoints','_univerInstanceService','8EZgSJQ','sheets-shape-ui.imagePanel.crop.shape','attachPopupToObject','_addShapeAdjustControl','canvasElement','getOwnPropertyDescriptor','_configService','version','clipHeight','offsetY','UNIVER_SHEET','getRenderUnitById','isolated','FlipVerticalIcon','getObjectIncludeInGroup','image-clip-adjust-point-','SHEET_SHAPE_UI_PLUGIN','executeCommand','isRichText','offsetX','sheets-shape-ui.ribbon.shape-format.arrange-backward','clone','isDrawingObject','_cxtHandlerPointerUp','objects','_index','_handleConnectedEndpointMove','has','updateContext','fillImageSourceType','canvas','_initSelection','translate','_getConnectionSiteAngle','_componentManager','Path','_getShapeInfo','getObject','packageName','showContextualTab','drawing-ui.objectListPanel.moveBackward','default','doc.image-clip.shape-picker.component','_handleBasicShapeUpdateConnectorLineShape','_updateSrcRectByTransform','_drawingManagerService','_initialize','_drawRichText','isStartConnectorPoint','focus$','remove$','_reset','_update','angle','constructor','fill','getDrawingSearch','getUnit','_loadShapePictureFill'];_0x4acb=function(){return _0x5637bb;};return _0x4acb();}_a=X([Y(0x0,_0x5a17c7)],_a);let va=class extends _0x5e7af4{constructor(_0x402819=Yi,_0x59db70,_0x33153d,_0x1f202b,_0x22be97){const _0xc3c2f9=_0x40a3e1;super(),this[_0xc3c2f9(0x255)]=_0x402819,this[_0xc3c2f9(0x315)]=_0x59db70,this[_0xc3c2f9(0x279)]=_0x33153d,this[_0xc3c2f9(0x2ca)]=_0x1f202b,this[_0xc3c2f9(0x258)]=_0x22be97;let {..._0x18bf3e}=_0x2b5604({},Yi,this[_0xc3c2f9(0x255)]);this[_0xc3c2f9(0x2ca)][_0xc3c2f9(0x30c)](Ji,_0x18bf3e),this[_0xc3c2f9(0x477)]();}['onStarting'](){const _0x22dd80=_0x40a3e1;this['_injector'][_0x22dd80(0x38e)]([ta]),this['_injector'][_0x22dd80(0x270)](ta),_0x457bb0(this[_0x22dd80(0x315)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x40a3e1(0x3ec)](){const _0x4a75f8=_0x40a3e1;_0x457bb0(this['_injector'],[[da],[Pr],[fa]]),_0x557f52(this[_0x4a75f8(0x315)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x4a75f8(0x46b)](_0x1d909e=>{const _0x46d6b5=_0x4a75f8;this[_0x46d6b5(0x1c6)](this[_0x46d6b5(0x258)][_0x46d6b5(0x264)](_0x2f72d4[_0x46d6b5(0x2ce)],_0x1d909e));});}[_0x40a3e1(0x20c)](){const _0x281536=_0x40a3e1;_0x557f52(this[_0x281536(0x315)],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x40a3e1(0x1ce)](){const _0x33f241=_0x40a3e1;this[_0x33f241(0x315)][_0x33f241(0x270)](aa)[_0x33f241(0x33e)]();}[_0x40a3e1(0x477)](){const _0x5c41d8=_0x40a3e1;[Ir,K,Fr,qi][_0x5c41d8(0x46b)](_0x2bc58b=>this[_0x5c41d8(0x1c6)](this[_0x5c41d8(0x279)][_0x5c41d8(0x1ea)](_0x2bc58b)));}};q(va,_0x40a3e1(0x275),_0x2f72d4[_0x40a3e1(0x2ce)]),q(va,_0x40a3e1(0x42a),_0x40a3e1(0x2d4)),q(va,'packageName',Gi),q(va,'version',Ki),va=X([_0x5da42f(_0x1146d0,_0x40457b,_0x499a28,_0x29d435,_0x1b66b7,_0x5b0db3,_0x211085,_0x4fffad,_0x6be2d1,_0xb1acc8,_0x330621,_0x255e95,_0x31c67a),Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x3a4817),Y(0x3,_0x4b4871),Y(0x4,_0x5a17c7)],va);const ya={'type':_0x47a509[_0x40a3e1(0x31e)],'id':'sheet.operation.close-sheet-shape-format-panel','handler'(){return!0x0;}};function ba(){const _0xfe7dba=_0x40a3e1;let _0x55637a=_0x3911a9(_0x2d58e3),_0x1b2f9f=_0x17fdf6(()=>_0x55637a[_0xfe7dba(0x2f5)],_0x55637a['getFocusDrawings'](),!0x1,[_0x55637a]);return _0x1b2f9f[_0xfe7dba(0x46d)]===0x0?null:_0xf2bc1d(_0xfe7dba(0x1b8),{'children':_0x2ae626(_0xfe7dba(0x1b8),{'className':_0xfe7dba(0x311),'children':[_0xf2bc1d(_0x297d10,{'drawings':_0x1b2f9f,'hasCropper':!0x1}),_0xf2bc1d(_0x3f9b53,{'drawings':_0x1b2f9f})]})});}function xa(_0x53aba3){let {unitId:_0x192a4e,subUnitId:_0x1ef6a4,shapeId:_0x15b152}=_0x53aba3,_0x71374d=_0x3911a9(_0x3a4817),_0x4f6b30=_0x3911a9(_a);return _0xf2bc1d(_0x4ced55,{..._0x53aba3,'positionEditor':_0xf2bc1d(ba,{}),'onUpdateShapeData':(_0x2bf9a6,_0xa059bc)=>{Dr(_0x71374d,_0x192a4e,_0x1ef6a4,_0x15b152,_0x2bf9a6,_0xa059bc);},'onUpdateLineShapeData':(_0x177586,_0x3a2a5e)=>{Or(_0x71374d,_0x192a4e,_0x1ef6a4,_0x15b152,_0x177586,_0x3a2a5e);},'onUpdateShapeFillImage':_0x2dae3a=>{const _0x47160c=_0x214c;_0x4f6b30[_0x47160c(0x37b)]({'unitId':_0x192a4e,'subUnitId':_0x1ef6a4,'drawingId':_0x15b152},_0x2dae3a);}});}function Sa(_0x255371){const _0x3513ed=_0x40a3e1;let _0x22e796=_0x3911a9(_0xfc879),_0x5162a6=_0x17fdf6(()=>_0x22e796[_0x3513ed(0x3b3)],_0x22e796[_0x3513ed(0x2a6)](),!0x1,[_0x22e796]),_0x1577a9=_0x255371['popup'][_0x3513ed(0x317)];return!_0x1577a9||!_0x5162a6?null:_0xf2bc1d(Ca,{..._0x1577a9,'canvasElement':_0x255371[_0x3513ed(0x46e)][_0x3513ed(0x2c8)]});}function Ca(_0x41c183){const _0x23f790=_0x40a3e1;let _0x39a877=_0x3911a9(_0x3a4817),_0x1db577=_0x3911a9(_0x25eee4),{unitId:_0x5d5afc,subUnitId:_0x5b7e81,drawingId:_0x3e2f4e,drawingType:_0x57aa63,shapeType:_0x531124}=_0x41c183,[_0x1d5877,_0x541bec]=_0x1e43f1(_0x41c183[_0x23f790(0x1eb)]),_0x4b7561=_0x21a1e7(()=>_0x1503fd(_0x1d5877),[_0x1d5877]),_0x1b12fe=_0x21a1e7(()=>_0x5add35(_0x1d5877),[_0x1d5877]);_0x4f4595(()=>{const _0x2cf861=_0x23f790;let _0x580213=_0x39a877['onCommandExecuted'](_0x147356=>{const _0x4d22d4=_0x214c;if(_0x147356['id']!==_0x2abe23['id'])return;let _0x374c3d=_0x1db577[_0x4d22d4(0x1df)](_0x5d5afc,_0x5b7e81,_0x3e2f4e);_0x374c3d&&_0x541bec(_0x374c3d);});return()=>_0x580213[_0x2cf861(0x223)]();},[_0x39a877,_0x3e2f4e,_0x1db577,_0x5b7e81,_0x5d5afc]);let _0x57aaa7=_0x40e45c=>{_0x541bec(_0x3ab4be=>({..._0x3ab4be,..._0x40e45c}));},_0x16e84c=_0x213407=>{const _0x442ba5=_0x23f790;let _0x14d4f1=_0x25fcc6(_0x1d5877,_0x213407);Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,{'oldShapeData':{'shapeText':_0x1d5877[_0x442ba5(0x2ba)]}},_0x14d4f1),_0x57aaa7(_0x14d4f1);},_0x28dde0=_0x31f90f({'hostType':_0x2f72d4[_0x23f790(0x2ce)],'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'shapeId':_0x3e2f4e,'shapeData':_0x1d5877,'onUpdateBinding':_0x1f8905=>{const _0x18e269=_0x23f790;let _0x3894e2={'formulaBinding':_0x1f8905};Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,{'oldShapeData':{'formulaBinding':_0x1d5877[_0x18e269(0x40f)]}},_0x3894e2),_0x57aaa7(_0x3894e2);}});return _0x2ae626(_0x470de9,{'children':[_0xf2bc1d(_0x23aeb0,{'canvasElement':_0x41c183[_0x23f790(0x2c8)],'shapeData':_0x1d5877,'shapeType':_0x531124,'textStyle':{'ff':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x45b)],'fs':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x422)],'cl':{'rgb':_0x2c02a7[_0x23f790(0x2ba)][_0x23f790(0x2aa)]},..._0x4b7561},'textModel':_0x1b12fe?{'ha':_0x1b12fe['ha']??_0x1388a6['LEFT'],'va':_0x1b12fe['va']??_0x11de6['TOP']}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x2c02a7[_0x23f790(0x2fb)],'defaultGradientEndColor':_0x2c02a7[_0x23f790(0x3ce)],'defaultStrokeColor':_0x2c02a7[_0x23f790(0x453)],'extensionGroups':_0x28dde0[_0x23f790(0x33d)],'floatingObjectToolbarPosition':_0x36ba8a['SHEET'],'onUpdateShapeData':(_0x10af35,_0x480a66)=>{Dr(_0x39a877,_0x5d5afc,_0x5b7e81,_0x3e2f4e,_0x10af35,_0x480a66),_0x480a66&&_0x57aaa7(_0x480a66);},'onUpdateText':_0x16e84c,'onOpenPanel':()=>{_0x39a877['executeCommand'](Wr['id'],{'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'drawingId':_0x3e2f4e});},'onDelete':()=>{const _0xfea9fb=_0x23f790;_0x39a877[_0xfea9fb(0x2d5)](_0x2982ca['id'],{'unitId':_0x5d5afc,'drawings':[{'unitId':_0x5d5afc,'subUnitId':_0x5b7e81,'drawingId':_0x3e2f4e,'drawingType':_0x57aa63}]});}}),_0x28dde0[_0x23f790(0x368)]]});}function wa(_0x4d1774){const _0xb7a845=_0x40a3e1;return!!_0x4d1774&&_0xb7a845(0x3cd)in _0x4d1774&&'sheetTransform'in _0x4d1774;}const Ta=_0x3fd15d(()=>{const _0x5b375d=_0x40a3e1;let _0x7a415f=_0x3911a9($),_0x5ee3b3=_0x3911a9(_0x25eee4),_0x3b1129=_0x3911a9(_0x2d58e3),_0xf47e90=_0x3911a9(_0x3a4817),_0x5cb8a1=_0x3911a9(_0x1b9e9a),_0x275b90=_0x3911a9(_0x5a17c7),_0x59868e=_0x21a1e7(()=>({'getShapeModel':(_0x5de7e5,_0x5e8626,_0x325711)=>_0x5ee3b3[_0x5b375d(0x3f9)](_0x5de7e5,_0x5e8626,_0x325711),'getShapeData':(_0x530f8d,_0x183c30,_0x1a2d4e)=>_0x5ee3b3['getShapeDataById'](_0x530f8d,_0x183c30,_0x1a2d4e),'getDrawingTransform':(_0x19d6c4,_0x4ba9e6,_0x42a6c7)=>{const _0x2f0317=_0x5b375d;let _0x525c7b=_0x3b1129[_0x2f0317(0x31f)]({'unitId':_0x19d6c4,'subUnitId':_0x4ba9e6,'drawingId':_0x42a6c7});return _0x525c7b==null?void 0x0:_0x525c7b[_0x2f0317(0x412)];},'updateShapeText':({unitId:_0x147c5e,subUnitId:_0x57d8cc,shapeId:_0x2d5938,shapeText:_0x3fe6c0,oldShapeText:_0x3e7b7f,hostSize:_0x215fe6})=>{_0x5cb8a1['run'](_0x147c5e,()=>{const _0x3204a2=_0x214c;var _0x19b590;let _0x299946=_0xf47e90['syncExecuteCommand'](K['id'],{'unitId':_0x147c5e,'subUnitId':_0x57d8cc,'shapeId':_0x2d5938,'shapeData':{'shapeText':_0x3fe6c0},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x3e7b7f}}});if(!_0x299946||!_0x215fe6)return _0x299946;let _0x3cb445=_0x3b1129[_0x3204a2(0x31f)]({'unitId':_0x147c5e,'subUnitId':_0x57d8cc,'drawingId':_0x2d5938}),_0x4cac76=_0x3cb445==null?void 0x0:_0x3cb445[_0x3204a2(0x412)];if(!wa(_0x3cb445)||!_0x4cac76)return!0x1;let _0x1db940={..._0x4cac76,'width':_0x215fe6[_0x3204a2(0x294)],'height':_0x215fe6[_0x3204a2(0x222)]},_0x5604c4=(_0x19b590=_0x275b90['getRenderUnitById'](_0x147c5e))==null||(_0x19b590=_0x19b590[_0x3204a2(0x433)](_0x22bccb)[_0x3204a2(0x470)](_0x57d8cc))==null?void 0x0:_0x19b590[_0x3204a2(0x318)];return _0xf47e90[_0x3204a2(0x1de)](_0x33b43a['id'],{'unitId':_0x147c5e,'drawings':[{..._0x3cb445,'transform':_0x1db940,'sheetTransform':_0x5604c4?_0x588a4b(_0x1db940,_0x5604c4)??_0x3cb445['sheetTransform']:_0x3cb445[_0x3204a2(0x33c)],'axisAlignSheetTransform':_0x5604c4?_0x48d94d(_0x1db940,_0x5604c4)??_0x3cb445[_0x3204a2(0x3cd)]:_0x3cb445[_0x3204a2(0x3cd)]}]});});},'updateHostSize':({unitId:_0x5b2427,subUnitId:_0x4c6aa6,shapeId:_0xeca85,width:_0x107a7b,height:_0x2fe103})=>{const _0x449708=_0x5b375d;var _0x233b4f;let _0x1c2651=_0x3b1129[_0x449708(0x31f)]({'unitId':_0x5b2427,'subUnitId':_0x4c6aa6,'drawingId':_0xeca85}),_0x254242=_0x1c2651==null?void 0x0:_0x1c2651['transform'];if(!wa(_0x1c2651)||!_0x254242)return;let _0x200f0e={..._0x254242,'width':_0x107a7b,'height':_0x2fe103},_0x546320=(_0x233b4f=_0x275b90['getRenderUnitById'](_0x5b2427))==null||(_0x233b4f=_0x233b4f[_0x449708(0x433)](_0x22bccb)[_0x449708(0x470)](_0x4c6aa6))==null?void 0x0:_0x233b4f['skeleton'],_0x1d6edc=_0x546320?_0x588a4b(_0x200f0e,_0x546320)??_0x1c2651['sheetTransform']:_0x1c2651[_0x449708(0x33c)],_0xaa27e9=_0x546320?_0x48d94d(_0x200f0e,_0x546320)??_0x1c2651[_0x449708(0x3cd)]:_0x1c2651[_0x449708(0x3cd)];_0xf47e90['executeCommand'](_0x33b43a['id'],{'unitId':_0x5b2427,'drawings':[{..._0x1c2651,'transform':_0x200f0e,'sheetTransform':_0x1d6edc,'axisAlignSheetTransform':_0xaa27e9}]});},'allowHostSizeShrink':({unitId:_0x59ceac,subUnitId:_0x1b02f4,shapeId:_0x29e1dd})=>_0x4bf744(_0x5ee3b3[_0x5b375d(0x1df)](_0x59ceac,_0x1b02f4,_0x29e1dd)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0xf47e90,_0x3b1129,_0x275b90,_0x5ee3b3,_0x5cb8a1]),_0x33d3a9=_0x21a1e7(()=>({'viewportKeys':{'main':_0x4b46ff[_0x5b375d(0x266)],'leftTop':_0x4b46ff[_0x5b375d(0x446)],'top':_0x4b46ff['VIEW_MAIN_TOP'],'left':_0x4b46ff['VIEW_MAIN_LEFT']},'getSkeleton':(_0x5b6da2,_0x22a969)=>{const _0x196164=_0x5b375d;var _0x8b039c;return((_0x8b039c=_0x5b6da2['with'](_0x22bccb)['getSkeletonParam'](_0x22a969['subUnitId']))==null?void 0x0:_0x8b039c[_0x196164(0x318)])??null;}}),[]);return _0xf2bc1d(_0x5afdbc,{'adapter':_0x59868e,'editingService':_0x7a415f,'editorUnitId':Vr,'positionOptions':_0x33d3a9});});let Ea=class extends _0x1f1ba9{constructor(_0x228cff,_0x5d2c77){const _0x2e7dc0=_0x40a3e1;super(),this[_0x2e7dc0(0x2e6)]=_0x228cff,this['_iconManager']=_0x5d2c77,this[_0x2e7dc0(0x39b)](),this['_registerComponents']();}['_registerIcons'](){const _0x4406a8=_0x40a3e1;this[_0x4406a8(0x45c)][_0x4406a8(0x2df)](_0x4406a8(0x20f))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)]['register']({'ObjectLayersIcon':_0x351aa4})),this['_iconManager']['has'](_0x4406a8(0x329))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'FlipHorizontalIcon':_0x4ef5a4})),this[_0x4406a8(0x45c)][_0x4406a8(0x2df)]('FlipVerticalIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'FlipVerticalIcon':_0x132c9b})),this[_0x4406a8(0x45c)][_0x4406a8(0x2df)](_0x4406a8(0x298))||this['disposeWithMe'](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'BottomIcon':_0x5aa288})),this[_0x4406a8(0x45c)]['has'](_0x4406a8(0x25f))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'MoveDownIcon':_0x560a3c})),this['_iconManager'][_0x4406a8(0x2df)]('MoveUpIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)]['register']({'MoveUpIcon':_0x543917})),this['_iconManager'][_0x4406a8(0x2df)](_0x4406a8(0x27e))||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'ShapeFormatSettingIcon':_0x4333c8})),this['_iconManager'][_0x4406a8(0x2df)]('TopmostIcon')||this[_0x4406a8(0x1c6)](this[_0x4406a8(0x45c)][_0x4406a8(0x3f1)]({'TopmostIcon':_0x41d425}));}[_0x40a3e1(0x306)](){const _0x4039eb=_0x40a3e1;this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](Lr,xa)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](Rr,$i)),this[_0x4039eb(0x1c6)](this['_componentManager'][_0x4039eb(0x3f1)](Jr,ei)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](Yr,Zr)),this[_0x4039eb(0x2e6)]['hasDefault'](_0x48abb2)||this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](_0x48abb2,$r)),this['disposeWithMe'](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](zr,Sa)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](di,hi)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](ui,gi)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](fi,_i)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](pi,vi)),this['disposeWithMe'](this[_0x4039eb(0x2e6)][_0x4039eb(0x3f1)](Hr,_0x3eed75)),this[_0x4039eb(0x1c6)](this[_0x4039eb(0x2e6)]['register'](_0x4039eb(0x1c0),Ta));}};Ea=X([Y(0x0,_0x34f57e(_0x203616)),Y(0x1,_0x34f57e(_0x3141ce))],Ea);let Da=class extends _0x1f1ba9{constructor(_0x47eff1,_0x223819,_0x594cf6,_0xe5dcb0,_0x32327e,_0xc46945,_0x5ec8e7,_0x276d46,_0x222685){const _0xe78ba2=_0x40a3e1;super();let _0x2fc41b=_0x36bf4a=>{const _0x5a8b22=_0x214c;var _0x33290f,_0x290792;return(((_0x33290f=_0x276d46['getPermissionPoint'](new _0x3edb9a(_0x36bf4a[_0x5a8b22(0x43a)])['id']))==null?void 0x0:_0x33290f[_0x5a8b22(0x437)])??!0x0)&&(((_0x290792=_0x276d46['getPermissionPoint'](new _0x2e8354(_0x36bf4a[_0x5a8b22(0x43a)],_0x36bf4a[_0x5a8b22(0x330)])['id']))==null?void 0x0:_0x290792['value'])??!0x0);},_0x4f4ff3=_0x4d7674=>_0x4d7674['shapeId']&&_0x2fc41b(_0x4d7674)?_0x594cf6[_0xe78ba2(0x1df)](_0x4d7674[_0xe78ba2(0x43a)],_0x4d7674[_0xe78ba2(0x330)],_0x4d7674[_0xe78ba2(0x464)])??null:null,_0x59db82=()=>{const _0x21a24a=_0xe78ba2;let _0x6dd7b7=_0x32327e['getFocusDrawings'](),_0x41ee05=_0x6dd7b7[_0x21a24a(0x46d)]===0x1?_0x6dd7b7[0x0]:null;return(_0x41ee05==null?void 0x0:_0x41ee05[_0x21a24a(0x221)])===_0x204a86['DRAWING_SHAPE']&&_0x41ee05['unitId']===_0x47eff1[_0x21a24a(0x43a)]?{'unitId':_0x41ee05[_0x21a24a(0x43a)],'subUnitId':_0x41ee05[_0x21a24a(0x330)],'shapeId':_0x41ee05[_0x21a24a(0x35b)]}:null;};this[_0xe78ba2(0x1c6)](_0x3cf394(_0x47eff1,_0x223819,{'changes$':_0x378593(_0x32327e[_0xe78ba2(0x2f5)],_0xe5dcb0[_0xe78ba2(0x342)],_0x276d46[_0xe78ba2(0x373)]),'isActive':()=>{const _0x5c9a5e=_0xe78ba2;var _0x419e0f;return((_0x419e0f=_0xc46945['getFocusedUnit']())==null?void 0x0:_0x419e0f[_0x5c9a5e(0x2ae)]())===_0x47eff1[_0x5c9a5e(0x43a)]&&!_0x5ec8e7[_0x5c9a5e(0x254)](_0x22723e)&&_0x32327e[_0x5c9a5e(0x23d)]()['some'](_0x307787=>_0x307787[_0x5c9a5e(0x43a)]===_0x47eff1[_0x5c9a5e(0x43a)]);},'getSelectedTarget':_0x59db82,'getSource':()=>{let _0x140aae=_0x59db82();return _0x140aae?_0x4f4ff3(_0x140aae):null;},'getTarget':_0x596d21=>{const _0x4a6a2b=_0xe78ba2;let _0x521224=_0x47eff1['scene'][_0x4a6a2b(0x479)](new _0x1e9d06(_0x596d21[_0x4a6a2b(0x2d7)],_0x596d21[_0x4a6a2b(0x2cd)]));if(!(_0x521224 instanceof J))return null;let _0x471b66={'unitId':_0x47eff1['unitId'],'subUnitId':_0x521224['subUnitId'],'shapeId':_0x521224[_0x4a6a2b(0x464)]};return _0x2fc41b(_0x471b66)?_0x471b66:null;},'getShape':_0x4f4ff3,'update':(_0x45604a,_0x38223f,_0x548d97)=>_0x222685['executeCommand'](K['id'],{..._0x45604a,'shapeData':_0x548d97,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x38223f}})}));}};Da=X([Y(0x1,_0x34f57e(_0x4e03be)),Y(0x2,_0x34f57e(_0x25eee4)),Y(0x3,_0x34f57e($)),Y(0x4,_0x2d58e3),Y(0x5,_0x3a3cc8),Y(0x6,_0x264df0),Y(0x7,_0x579508),Y(0x8,_0x3a4817)],Da);const Oa=_0x40a3e1(0x471);let ka=class extends _0x1f1ba9{constructor(_0x515b8c,_0x33390d,_0x2ec596,_0x5c0fd9,_0x5347a0,_0x4dafc7){const _0x188574=_0x40a3e1;super(),this['_menuManagerService']=_0x515b8c,this[_0x188574(0x1dc)]=_0x33390d,this[_0x188574(0x2f1)]=_0x2ec596,this[_0x188574(0x2c3)]=_0x5c0fd9,this[_0x188574(0x258)]=_0x5347a0,this['_shapeFloatingToolbarService']=_0x4dafc7,q(this,_0x188574(0x429),!0x1),this['_menuManagerService'][_0x188574(0x227)](Hi),this['disposeWithMe'](_0x35229e(this['_drawingManagerService']['focus$'][_0x188574(0x1ff)](()=>this[_0x188574(0x2f8)]()))),this[_0x188574(0x2f8)]();}[_0x40a3e1(0x223)](){const _0x40a371=_0x40a3e1;this[_0x40a371(0x355)][_0x40a371(0x280)](!0x1,Oa),this[_0x40a371(0x3a1)](),super['dispose']();}['_update'](){const _0x55ce3b=_0x40a3e1;var _0x5e1016;let _0x8329d2=this[_0x55ce3b(0x2f1)][_0x55ce3b(0x23d)](),_0x56008f=_0x8329d2[_0x55ce3b(0x46d)]===0x1?_0x8329d2[0x0]:void 0x0;if((_0x56008f==null?void 0x0:_0x56008f['drawingType'])!==_0x204a86[_0x55ce3b(0x41a)]||this['_univerInstanceService']['getUnitType'](_0x56008f[_0x55ce3b(0x43a)])!==_0x2f72d4['UNIVER_SHEET']){this[_0x55ce3b(0x355)][_0x55ce3b(0x280)](!0x1,Oa),this['_hide']();return;}let _0x393a5d=(_0x5e1016=this[_0x55ce3b(0x258)][_0x55ce3b(0x2cf)](_0x56008f[_0x55ce3b(0x43a)]))==null?void 0x0:_0x5e1016['engine'][_0x55ce3b(0x265)](),_0x5b3cad=_0x542739(_0x393a5d)===_0x55ce3b(0x2d0);if(this['_shapeFloatingToolbarService'][_0x55ce3b(0x280)](_0x5b3cad,Oa),_0x5b3cad){this[_0x55ce3b(0x3a1)]();return;}this['_visible']||(this[_0x55ce3b(0x429)]=!0x0,this[_0x55ce3b(0x1dc)][_0x55ce3b(0x2eb)](Br,{'activate':!0x0}));}['_hide'](){const _0x464119=_0x40a3e1;this['_visible']&&(this[_0x464119(0x429)]=!0x1,this[_0x464119(0x1dc)][_0x464119(0x2ff)](Br),this[_0x464119(0x1dc)][_0x464119(0x1ca)]([]));}};ka=X([Y(0x0,_0x2a7418),Y(0x1,_0xbd47b4),Y(0x2,_0x2d58e3),Y(0x3,_0x3a3cc8),Y(0x4,_0x5a17c7),Y(0x5,_0x34f57e(_0xfc879))],ka);let Aa=class extends _0x41bb9b{constructor(_0x2e63c1,_0x201785,_0x1e16c8,_0x5e3416,_0x8c31aa,_0x483329,_0x522296,_0x54fc32,_0x1f6aee,_0x197642){super(_0x2e63c1,_0x201785,_0x1e16c8,_0x5e3416,_0x8c31aa,_0x483329,_0x522296,_0x54fc32,_0x1f6aee,_0x197642,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x34f57e(_0x4e6c7e)),Y(0x2,_0x34f57e(_0xd91da3)),Y(0x3,_0x34f57e(_0x35cd82)),Y(0x4,_0x3a4817),Y(0x5,_0x34f57e(_0x156cf6)),Y(0x6,_0x34f57e(_0x31dfd7)),Y(0x7,_0x34f57e(_0x3f7435)),Y(0x8,_0x34f57e(_0x285cfc)),Y(0x9,_0x34f57e($))],Aa);let ja=class extends _0x3a1637{constructor(_0x58f40c,_0x1b1478,_0x30bdfd,_0x94fc10,_0x1194ff){const _0x399464=_0x40a3e1;super(_0x58f40c,_0x1b1478,{'editing$':_0x30bdfd[_0x399464(0x342)],'resolve':_0x1dca43=>{const _0xa32da=_0x399464;var _0x2cf5c6,_0x4667ba,_0x59b5b5;let _0x4524b7=new _0x1e9d06(_0x1dca43[_0xa32da(0x2d7)],_0x1dca43['offsetY']),_0x524676=((_0x2cf5c6=_0x58f40c['scene'][_0xa32da(0x460)](_0x4524b7))==null?void 0x0:_0x2cf5c6[_0xa32da(0x301)](_0x4524b7))??_0x4524b7,_0x3ab7a2=_0x2c8700(_0x58f40c[_0xa32da(0x25b)][_0xa32da(0x479)](_0x4524b7)??null,_0x524676);if(!(_0x3ab7a2 instanceof J))return null;let _0x3718eb=_0x3ab7a2[_0xa32da(0x2bc)](_0x524676);if(!_0x3718eb)return null;let _0x3d34cb=_0x3ab7a2,_0x124f9c={'componentKey':_0x6a8cbb[_0xa32da(0x419)],'direction':_0xa32da(0x1da),'offset':[0x0,0xa],'onClickOutside':()=>_0x1b1478[_0xa32da(0x234)]()};return{'object':_0x3ab7a2,'info':{..._0x3718eb,'unitId':_0x3ab7a2[_0xa32da(0x43a)],'subUnitId':_0x3ab7a2[_0xa32da(0x330)],'shapeKey':_0x3ab7a2[_0xa32da(0x39f)],'readonly':!0x0,'copyable':((_0x4667ba=_0x1194ff[_0xa32da(0x287)](new _0x2b4124(_0x3ab7a2[_0xa32da(0x43a)])['id']))==null?void 0x0:_0x4667ba['value'])!==!0x1&&((_0x59b5b5=_0x1194ff[_0xa32da(0x287)](new _0x4974af(_0x3ab7a2[_0xa32da(0x43a)],_0x3ab7a2['subUnitId'])['id']))==null?void 0x0:_0x59b5b5[_0xa32da(0x437)])!==!0x1},'attachPopup':()=>_0x94fc10[_0xa32da(0x2c6)](_0x3d34cb,_0x124f9c)};}}),this[_0x399464(0x1c6)](_0x58f40c[_0x399464(0x326)][_0x399464(0x251)][_0x399464(0x1ff)](()=>this[_0x399464(0x3b6)]()));}};ja=X([Y(0x1,_0x34f57e(_0x31dfd7)),Y(0x2,_0x34f57e($)),Y(0x3,_0x34f57e(_0x2bf47d)),Y(0x4,_0x579508)],ja);let Ma=class extends _0x1f1ba9{constructor(_0x22d27c,_0x4cbac8,_0x456ba2,_0x5edb46,_0x138238,_0x115b41,_0x51cde3,_0x158791,_0x42178f,_0x32e32a,_0x189e44){const _0x12370f=_0x40a3e1;super(),this[_0x12370f(0x2c3)]=_0x22d27c,this[_0x12370f(0x3ff)]=_0x4cbac8,this[_0x12370f(0x246)]=_0x456ba2,this[_0x12370f(0x285)]=_0x5edb46,this[_0x12370f(0x1d3)]=_0x138238,this[_0x12370f(0x279)]=_0x115b41,this[_0x12370f(0x2f1)]=_0x51cde3,this[_0x12370f(0x331)]=_0x158791,this[_0x12370f(0x394)]=_0x42178f,this['_renderManagerService']=_0x32e32a,this[_0x12370f(0x218)]=_0x189e44,q(this,_0x12370f(0x1f1),null),q(this,_0x12370f(0x425),null),q(this,_0x12370f(0x24a),!0x1),q(this,'_shapeEditPanelVersion',0x0),q(this,_0x12370f(0x35d),null),q(this,'_disposePopups',[]),this[_0x12370f(0x3da)](),this[_0x12370f(0x1c6)](this[_0x12370f(0x2c3)][_0x12370f(0x293)](_0x2f72d4['UNIVER_SHEET'])[_0x12370f(0x1ff)](_0x199163=>{const _0x1fe1dd=_0x12370f;if(!_0x199163){var _0x2db72e;(_0x2db72e=this['_sidebarDisposable'])==null||_0x2db72e[_0x1fe1dd(0x223)]();}})),this[_0x12370f(0x229)](),this[_0x12370f(0x33e)](),this[_0x12370f(0x1c6)](this['_shapeTextEditingService']['editingParams$'][_0x12370f(0x1ff)](_0x5f58eb=>{const _0xa5ee3d=_0x12370f;_0x5f58eb&&this[_0xa5ee3d(0x358)]();}));}[_0x40a3e1(0x3da)](){const _0x399c1f=_0x40a3e1;this[_0x399c1f(0x246)]['mergeMenu'](Wi);}['initShapePopupMenu'](){const _0x25536f=_0x40a3e1;this['_shapePopupMenuDisposable']||=this[_0x25536f(0x1c6)](_0x429510(this[_0x25536f(0x258)],_0x2f72d4[_0x25536f(0x2ce)],_0x128c4f=>this[_0x25536f(0x1c3)](_0x128c4f)));}[_0x40a3e1(0x2e8)](_0xc48c08,_0x2f4d1c,_0x30d610){const _0x624cb2=_0x40a3e1;let _0x4f019e=this[_0x624cb2(0x285)]['getShapeTypeById'](_0xc48c08,_0x2f4d1c,_0x30d610),_0x4cde8f=this[_0x624cb2(0x285)]['getShapeDataById'](_0xc48c08,_0x2f4d1c,_0x30d610);return _0x4f019e!==void 0x0&&_0x4cde8f!==void 0x0?{'shapeData':_0x4cde8f,'shapeId':_0x30d610,'shapeType':_0x4f019e,'unitId':_0xc48c08,'subUnitId':_0x2f4d1c,'version':this[_0x624cb2(0x1be)],'disableShapeOption':!0x1}:null;}[_0x40a3e1(0x358)](){const _0x55ca55=_0x40a3e1;this[_0x55ca55(0x2b6)][_0x55ca55(0x46b)](_0x23c901=>_0x23c901[_0x55ca55(0x223)]()),this[_0x55ca55(0x2b6)][_0x55ca55(0x46d)]=0x0;}['_popupMenuListener'](_0x5c496b){const _0x5aa6d0=_0x40a3e1;let _0x38e0c7=new _0x2bf40d();return _0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b['createControl$'][_0x5aa6d0(0x1ff)](()=>{const _0xde6697=_0x5aa6d0;let _0x1559b7=_0x5c496b['getSelectedObjectMap']();if(this[_0xde6697(0x358)](),this[_0xde6697(0x24a)]||_0x1559b7[_0xde6697(0x219)]>0x1)return;let _0x82feb8=_0x1559b7[_0xde6697(0x209)]()[_0xde6697(0x24c)]()[_0xde6697(0x437)];if(!_0x82feb8)return;let _0x5e2c17=this[_0xde6697(0x2f1)]['getDrawingOKey'](_0x82feb8[_0xde6697(0x39f)]);if(!_0x5e2c17||_0x5e2c17['drawingType']!==_0x204a86[_0xde6697(0x41a)])return;let {unitId:_0x17fbe6,subUnitId:_0x130ff7,drawingId:_0x4cfa6c,drawingType:_0x5444e2}=_0x5e2c17,_0x31cbc1=this['_getShapeInfo'](_0x17fbe6,_0x130ff7,_0x4cfa6c);if(!_0x31cbc1)return;this[_0xde6697(0x394)]['setContextValue'](_0x4c4f0c,!0x0);let _0x1223df=this[_0xde6697(0x258)][_0xde6697(0x2cf)](_0x17fbe6),_0x4cd30f=((_0x1223df==null?void 0x0:_0x1223df[_0xde6697(0x2ab)])===!0x1?_0x1223df[_0xde6697(0x433)](_0x2bf47d):this[_0xde6697(0x331)])['attachPopupToObject'](_0x82feb8,{'componentKey':zr,'direction':_0xde6697(0x216),'offset':[0x0,_0xd4bd0a],'extraProps':{'unitId':_0x17fbe6,'subUnitId':_0x130ff7,'drawingId':_0x4cfa6c,'drawingType':_0x5444e2,'shapeType':_0x31cbc1['shapeType'],'shapeData':_0x31cbc1[_0xde6697(0x1eb)]}});this[_0xde6697(0x2b6)]['push'](this['disposeWithMe'](_0x4cd30f)),this[_0xde6697(0x2f1)]['getFocusDrawings']()[_0xde6697(0x278)](_0x5092a2=>_0x5092a2[_0xde6697(0x43a)]===_0x17fbe6&&_0x5092a2[_0xde6697(0x330)]===_0x130ff7&&_0x5092a2['drawingId']===_0x4cfa6c)||this[_0xde6697(0x2f1)][_0xde6697(0x40e)]([{'unitId':_0x17fbe6,'subUnitId':_0x130ff7,'drawingId':_0x4cfa6c}]);})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b[_0x5aa6d0(0x1e6)][_0x5aa6d0(0x1ff)](()=>{const _0x43434c=_0x5aa6d0;this[_0x43434c(0x358)](),this[_0x43434c(0x394)][_0x43434c(0x1f4)](_0x4c4f0c,!0x1),this[_0x43434c(0x2f1)][_0x43434c(0x40e)](null);})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b[_0x5aa6d0(0x303)][_0x5aa6d0(0x1ff)](()=>{const _0x5347b7=_0x5aa6d0;this[_0x5347b7(0x358)]();})),_0x38e0c7[_0x5aa6d0(0x38e)](_0x5c496b['changeStart$'][_0x5aa6d0(0x1ff)](()=>{const _0x2059d4=_0x5aa6d0;this[_0x2059d4(0x358)]();})),_0x35229e(()=>{const _0x230b1f=_0x5aa6d0;_0x38e0c7[_0x230b1f(0x223)](),this[_0x230b1f(0x358)]();});}[_0x40a3e1(0x229)](){const _0x47c3a6=_0x40a3e1;this['disposeWithMe'](this['_commandService'][_0x47c3a6(0x3a7)](_0x50f6e4=>{const _0x90cbc7=_0x47c3a6;if(_0x50f6e4['id']===Wr['id']){let {unitId:_0x4378bc,subUnitId:_0x1bd770,drawingId:_0x2040d1}=_0x50f6e4[_0x90cbc7(0x1fa)];this[_0x90cbc7(0x1be)]+=0x1,this[_0x90cbc7(0x425)]=this['_getShapeInfo'](_0x4378bc,_0x1bd770,_0x2040d1),this[_0x90cbc7(0x358)](),this[_0x90cbc7(0x2ac)]();}if(_0x50f6e4['id']===ya['id']&&(this[_0x90cbc7(0x425)]=null,this[_0x90cbc7(0x23a)]()),_0x50f6e4['id']===_0x2abe23['id']){let {unitId:_0x14a1bc,subUnitId:_0x5bfe19,shapeId:_0x1a554a}=_0x50f6e4[_0x90cbc7(0x1fa)];if(this[_0x90cbc7(0x425)]&&this[_0x90cbc7(0x425)][_0x90cbc7(0x464)]===_0x1a554a){let _0x59a2fc=this[_0x90cbc7(0x2e8)](_0x14a1bc,_0x5bfe19,_0x1a554a);_0x59a2fc&&(this[_0x90cbc7(0x1be)]+=0x1,_0x59a2fc['version']=this[_0x90cbc7(0x1be)],this['_activeShapeInfo']=_0x59a2fc,this[_0x90cbc7(0x24a)]&&this[_0x90cbc7(0x2ac)]());}}})),this['disposeWithMe'](this[_0x47c3a6(0x2f1)][_0x47c3a6(0x2f5)][_0x47c3a6(0x1ff)](_0x4c4d36=>{const _0x24866d=_0x47c3a6;if(this['_isOpenedShapeEditPanel']===!0x1)return;if(_0x4c4d36['length']===0x0){this[_0x24866d(0x425)]=null,this['_closeShapeEditPanel']();return;}if(_0x4c4d36[_0x24866d(0x46d)]===0x1&&_0x4c4d36[0x0][_0x24866d(0x221)]===_0x204a86[_0x24866d(0x41a)]&&(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this[_0x24866d(0x2e8)](_0x4c4d36[0x0][_0x24866d(0x43a)],_0x4c4d36[0x0]['subUnitId'],_0x4c4d36[0x0][_0x24866d(0x35b)]),this['_activeShapeInfo'])){this[_0x24866d(0x2ac)]();return;}let _0x478927=_0x4c4d36[_0x24866d(0x385)](_0x2a243c=>_0x2a243c[_0x24866d(0x221)]===_0x204a86[_0x24866d(0x41a)]);if(_0x4c4d36[_0x24866d(0x46d)]>0x1&&_0x478927[_0x24866d(0x46d)]===_0x4c4d36[_0x24866d(0x46d)]){if(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this[_0x24866d(0x2e8)](_0x4c4d36[0x0]['unitId'],_0x4c4d36[0x0]['subUnitId'],_0x4c4d36[0x0]['drawingId']),this[_0x24866d(0x425)]){this['_openShapeEditPanel']();return;}}else{if(this[_0x24866d(0x1be)]+=0x1,this[_0x24866d(0x425)]=this['_getShapeInfo'](_0x4c4d36[0x0][_0x24866d(0x43a)],_0x4c4d36[0x0][_0x24866d(0x330)],_0x4c4d36[0x0][_0x24866d(0x35b)]),this[_0x24866d(0x425)]){this[_0x24866d(0x425)]['disableShapeOption']=!0x0,this[_0x24866d(0x2ac)]();return;}}this[_0x24866d(0x23a)]();}));}[_0x40a3e1(0x2ac)](){const _0x17a2da=_0x40a3e1;this['_activeShapeInfo']&&(this[_0x17a2da(0x1f1)]=this[_0x17a2da(0x3ff)][_0x17a2da(0x361)]({'id':Lr,'header':{'title':this[_0x17a2da(0x1d3)]['t'](_0x17a2da(0x256))},'width':0x184,'children':{'label':Lr,...this[_0x17a2da(0x425)]},'onClose':()=>{const _0x43786a=_0x17a2da;this[_0x43786a(0x2f1)][_0x43786a(0x40e)](null),this[_0x43786a(0x394)]['setContextValue'](_0x4c4f0c,!0x1),this[_0x43786a(0x1f1)]=null;}}),this[_0x17a2da(0x24a)]=!0x0);}[_0x40a3e1(0x23a)](){const _0x43bd34=_0x40a3e1;this[_0x43bd34(0x24a)]=!0x1,this[_0x43bd34(0x3ff)]['close'](Lr),this['_sidebarDisposable']=null,this[_0x43bd34(0x394)][_0x43bd34(0x1f4)](_0x4c4f0c,!0x1),this['_drawingManagerService']['focusDrawing'](null);}};Ma=X([Y(0x0,_0x3a3cc8),Y(0x1,_0x34f57e(_0x4edbc3)),Y(0x2,_0x2a7418),Y(0x3,_0x34f57e(_0x25eee4)),Y(0x4,_0x34f57e(_0x1fc669)),Y(0x5,_0x3a4817),Y(0x6,_0x2d58e3),Y(0x7,_0x34f57e(_0x2bf47d)),Y(0x8,_0x264df0),Y(0x9,_0x5a17c7),Y(0xa,_0x34f57e($))],Ma);let Na=class extends _0x5e7af4{constructor(_0x1b71f1=Yi,_0x293d1d,_0x5f1612,_0x1e79df,_0x21078a){const _0x9d39ae=_0x40a3e1;super(),this[_0x9d39ae(0x255)]=_0x1b71f1,this[_0x9d39ae(0x315)]=_0x293d1d,this[_0x9d39ae(0x279)]=_0x5f1612,this[_0x9d39ae(0x2ca)]=_0x1e79df,this[_0x9d39ae(0x258)]=_0x21078a;let {..._0x2ad20c}=_0x2b5604({},Yi,this[_0x9d39ae(0x255)]);this['_configService']['setConfig'](Ji,_0x2ad20c),this[_0x9d39ae(0x477)]();}[_0x40a3e1(0x20c)](){const _0x32ee07=_0x40a3e1;this[_0x32ee07(0x258)][_0x32ee07(0x264)](_0x2f72d4['UNIVER_DOC'],[Aa]),_0x557f52(this['_injector'],[[Ma],[ca],[Z],[ha]]);}[_0x40a3e1(0x1ce)](){const _0x593e4d=_0x40a3e1;this['_injector']['get'](Ma)[_0x593e4d(0x33e)]();}['onReady'](){const _0x13974d=_0x40a3e1;[[da],[Pr],[fa]][_0x13974d(0x46b)](_0x494923=>this[_0x13974d(0x315)][_0x13974d(0x38e)](_0x494923)),_0x557f52(this[_0x13974d(0x315)],[[fa],[Pr]]),this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4['UNIVER_SHEET'],[da]),this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[Xi]),this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[ma]),this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[na]),this[_0x13974d(0x1c6)](this[_0x13974d(0x258)][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[ja])),this[_0x13974d(0x1c6)](this['_renderManagerService'][_0x13974d(0x264)](_0x2f72d4[_0x13974d(0x2ce)],[Da]));}[_0x40a3e1(0x30d)](){const _0x10ff0b=_0x40a3e1;this['_injector'][_0x10ff0b(0x38e)]([Ea]),this[_0x10ff0b(0x315)][_0x10ff0b(0x270)](Ea);let _0x1c435a=this['_injector'];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]][_0x10ff0b(0x46b)](_0x5ed117=>_0x1c435a[_0x10ff0b(0x38e)](_0x5ed117)),_0x557f52(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x40a3e1(0x477)](){const _0x1603dd=_0x40a3e1;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x1603dd(0x46b)](_0x5d2de2=>this[_0x1603dd(0x1c6)](this[_0x1603dd(0x279)][_0x1603dd(0x1ea)](_0x5d2de2)));}};q(Na,_0x40a3e1(0x275),_0x2f72d4['UNIVER_SHEET']),q(Na,_0x40a3e1(0x42a),_0x40a3e1(0x2d4)),q(Na,_0x40a3e1(0x2ea),Gi),q(Na,_0x40a3e1(0x2cb),Ki),Na=X([_0x5da42f(_0x1146d0,_0x40457b,_0x499a28,_0x2a1c33,_0x29d435,_0x1b66b7,_0x5b0db3,_0x211085,_0x4fffad,_0xf463fc,_0xb1acc8,_0x18a7f0,_0x48041f),Y(0x1,_0x34f57e(_0xa4fd93)),Y(0x2,_0x3a4817),Y(0x3,_0x4b4871),Y(0x4,_0x5a17c7)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|
|
1
|
+
const _0x232df7=_0x2028;(function(_0x320413,_0x285452){const _0x200e21=_0x2028,_0x5e796f=_0x320413();while(!![]){try{const _0x1e4932=parseInt(_0x200e21(0x32e))/0x1+-parseInt(_0x200e21(0x15c))/0x2*(-parseInt(_0x200e21(0x388))/0x3)+parseInt(_0x200e21(0x258))/0x4*(parseInt(_0x200e21(0x294))/0x5)+-parseInt(_0x200e21(0x2dd))/0x6*(parseInt(_0x200e21(0x321))/0x7)+-parseInt(_0x200e21(0x14b))/0x8*(parseInt(_0x200e21(0x151))/0x9)+parseInt(_0x200e21(0x386))/0xa*(parseInt(_0x200e21(0x225))/0xb)+parseInt(_0x200e21(0x10f))/0xc;if(_0x1e4932===_0x285452)break;else _0x5e796f['push'](_0x5e796f['shift']());}catch(_0x438cce){_0x5e796f['push'](_0x5e796f['shift']());}}}(_0x1606,0x576ec));import{FormulaShapeAnimationController as _0x19210e,MobileShapeEditorService as _0x8e92cf,SHAPE_CHANGE_PICKER_COMPONENT as _0x1b9682,SHAPE_EDITOR_TRANSFORMER_CONFIG as _0x16a405,SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET as _0x54a031,ShapeEditPanel as _0x1f5908,ShapeFloatingToolbar as _0xaf994a,ShapeFloatingToolbarService as _0xee6e88,ShapeFloatingToolbarToggleFactory as _0x1bd401,ShapeFormulaRibbonControl as _0x13101b,ShapeGroupEnum as _0x56b27d,ShapePickerDropdown as _0x5bb7e1,ShapePickerPanel as _0x2c8a8a,ShapeQuickStyleGallery as _0x5cc351,ShapeStyleRibbonControl as _0x54731a,ShapeTextEditorContainer as _0x3977ad,ShapeTextFloatMenuRenderControllerBase as _0x553e20,ShapeTextFloatToolbar as _0x5dc698,ShapeTextHyperLinkHoverController as _0x1e07e2,ShapeTextHyperLinkInfo as _0x5c9174,ShapeTextHyperLinkPopupService as _0x258cdf,ShapeTextRibbonControl as _0x4c605a,ToggleShapeFloatingToolbarOperation as _0x1f2f61,UniverShapeEditorMobileUIPlugin as _0x42ad3b,UniverShapeEditorUIPlugin as _0x52023d,activateDrawingObject as _0x10780b,bindRenderTransformerLifecycle as _0xd29261,buildShapeTextDataUpdate as _0x2a4875,clearActiveDrawingObjects as _0x4e12a4,createShapeTextHyperLinkRegions as _0xbb0e6c,drawFormulaShapeAnimationLayers as _0x3d37bc,getDrawingTypeNameKey as _0xa2ace3,getTextModel as _0x1f9271,getTextStyle as _0x37bae9,normalizeShapeTextModel as _0x1bba65,plainShapeTextToDocumentData as _0x3d4a09,prepareShapeTextDocumentData as _0x3da194,registerShapeFormatPainter as _0xf449a5,resolveFormulaShapeAutoFitSize as _0x359b16,resolveShapeContextualRibbonHostMode as _0x2a5096,resolveShapeTextDocumentPageHeight as _0x12abcc,resolveShapeTextDocumentRenderLayout as _0x171327,resolveShapeTextEditorBehaviorShapeData as _0x35ac29,resolveShapeTextEditorWrapStrategy as _0x4819b1,resolveShapeTextHyperLinkAt as _0x1dbce6,resolveShapeTextHyperLinkObject as _0x33a154,shouldAllowShapeTextEditorHostSizeShrink as _0x35f3c5,shouldClipShapeTextDocument as _0x34a45a,useFormulaShapeToolbar as _0x5433fa}from'@univerjs-pro/shape-editor-ui';import{ComponentManager as _0x2359f7,ContextMenuGroup as _0x1f1f30,ContextMenuPosition as _0x29b253,FloatingObjectToolbarPosition as _0x28d51f,FormatPainterSessionService as _0x37b7ed,IMenuManagerService as _0x4cc398,IRibbonService as _0x2fcf59,ISidebarService as _0x5c788d,IconManager as _0x22aeed,MenuItemType as _0x27279c,MenuManagerPosition as _0x541bd0,RibbonInsertGroup as _0x3a3389,UndoRedoGroupService as _0x49cd39,UniverMobileUIPlugin as _0x6ff3b1,getMenuHiddenObservable as _0x2c14fa,useDependency as _0x3a3b93,useObservable as _0xe01eb2}from'@univerjs/ui';import{ConnectorCoordinateTransform as _0x5d44cb,ImageSourceTypeEnum as _0x456deb,ShapeArrowSizeEnum as _0x1dac15,ShapeArrowTypeEnum as _0x152eab,ShapeDefaultConfig as _0x4c61a8,ShapeFillEnum as _0x44f004,ShapeLineTypeEnum as _0x5053e4,ShapeModel as _0x243526,ShapeRenderModeEnum as _0x5a1729,ShapeTypeEnum as _0xe73d9c,computeConnectorRouteLayout as _0x3cbafa,getBasicShapeRotateBound as _0x109e70,isConnectorShape as _0x52f76f,isCurvedConnectorShape as _0x2be336,routeConnectorLineShape as _0x201266}from'@univerjs-pro/engine-shape';import{ShapeFormulaService as _0x907d04,UniverShapeEditorPlugin as _0x4831fe,applyQuickStyleToShapeData as _0x413e75,cloneShapeDataForType as _0x294ee8,createShapeFormulaDocument as _0x52663b,createShapeTextBoxShapeData as _0x25f18f,getShapeQuickStylePreset as _0xff4b3b,getShapeQuickStyleType as _0x11da62,resolveActiveShapeQuickStylePresetId as _0x553651}from'@univerjs-pro/shape-editor';import{InsertShapeCommand as _0x143510,InsertSheetsShapeMutation as _0x5cdf0c,RemoveSheetsShapeMutation as _0x10857b,SetShapeDrawingDataCommand as _0x37673b,SheetsShapeService as _0x5c2303,ToggleSheetsShapeFlipCommand as _0x1f7ef3,UniverSheetsShapePlugin as _0x1fa068,UpdateConnectorRelationCommand as _0xa22292,UpdateLineShapeResizeCommand as _0x44659f,UpdateSheetsShapeDataMutation as _0x4af43a}from'@univerjs-pro/sheets-shape';import{ArrangeTypeEnum as _0x32c897,CommandType as _0x33172f,DependentOn as _0x18c7c6,Disposable as _0x2bb0e8,DisposableCollection as _0x498b31,DocumentDataModel as _0x228348,DrawingTypeEnum as _0x190419,FOCUSING_COMMON_DRAWINGS as _0x20a63c,FOCUSING_SHAPE_TEXT_EDITOR as _0x29a73c,HorizontalAlign as _0x4dc457,ICommandService as _0x1b156e,IConfigService as _0x40ca43,IContextService as _0x49d586,IImageIoService as _0xe46211,IPermissionService as _0x300477,IURLImageService as _0x38d6c5,IUndoRedoService as _0x1f9c2c,IUniverInstanceService as _0x304294,Inject as _0x229e82,Injector as _0x3fb460,LocaleService as _0x16b0b7,Plugin as _0x407af,UniverInstanceType as _0xe0c4a6,VerticalAlign as _0x2cccb9,createInternalEditorID as _0x20e235,generateRandomId as _0x3a0ce3,merge as _0x32987f,registerDependencies as _0x365af4,toDisposable as _0x169987,touchDependencies as _0x3ece4a}from'@univerjs/core';import{CopySheetCommand as _0xbddc40,RemoveSheetCommand as _0x8eced1,SheetInterceptorService as _0x427085,SheetPermissionCheckController as _0x2c9f0d,SheetSkeletonService as _0x117a83,SheetsSelectionsService as _0x22a39b,UniverSheetsPlugin as _0x7f5329,WorkbookCopyPermission as _0x429dc6,WorkbookEditablePermission as _0x48f387,WorksheetCopyPermission as _0x102e28,WorksheetEditPermission as _0x459023,attachRangeWithCoord as _0x3b9770,discreteRangeToRange as _0x3062da,getSheetCommandTarget as _0x2dc1b6}from'@univerjs/sheets';import{IDrawingManagerService as _0x3deb35,SetDrawingSelectedOperation as _0x2b2ab1,UniverDrawingPlugin as _0x2036ef,getDrawingShapeKeyByDrawingSearch as _0x3023e5,getOrCreateDrawingCopyPlan as _0x118346}from'@univerjs/drawing';import{CURSOR_TYPE as _0x1d110f,Circle as _0x4a02a1,DRAWING_OBJECT_LAYER_INDEX as _0x4489b8,DocumentSkeleton as _0x2bf98e,DocumentViewModel as _0x2437bc,Documents as _0x25e368,IRenderManagerService as _0x422c1e,Image as _0x2cc9fc,RENDER_CLASS_TYPE as _0x432f17,SHEET_VIEWPORT_KEY as _0x1e57e3,Shape as _0x147ce5,Transform as _0x9667eb,UniverRenderEnginePlugin as _0x524cd0,Vector2 as _0x17a8a4}from'@univerjs/engine-render';import{COPY_TYPE as _0x536860,ISheetClipboardService as _0x2be9d9,PREDEFINED_HOOK_NAME as _0x2bfd21,SheetCanvasPopManagerService as _0x5969c8,SheetPrintInterceptorService as _0x3e6e4c,SheetScrollManagerService as _0x5ccab7,SheetSkeletonManagerService as _0x54a66d,UniverSheetsMobileUIPlugin as _0x281d56,UniverSheetsUIPlugin as _0x296a09,deriveStateFromActiveSheet$ as _0x6c9f0d,getCurrentRangeDisable$ as _0x5af922,getViewportByCell as _0x56d9fe}from'@univerjs/sheets-ui';import{BehaviorSubject as _0x519e70,EMPTY as _0x5f31a2,Observable as _0x55611e,map as _0x1e2b1f,merge as _0x6568cf,of as _0x24a70f,startWith as _0x56d968,switchMap as _0x4faa1d}from'rxjs';import{DrawingCommonPanel as _0x4f1e4b,DrawingImageClipService as _0x3a97fd,DrawingRenderService as _0x40a01d,IMAGE_CLIP_SHAPE_PICKER_COMPONENT as _0x48d256,MobileObjectListPanel as _0xaa2832,OBJECT_LIST_FLOATING_SECTION_ID as _0x255c3c,ObjectListPanelBase as _0x31400b,UniverDrawingUIPlugin as _0x106471,getCurrentUnitInfo as _0x15a737,getObjectListPanelSectionIdForDrawingType as _0x33d0f6,insertGroupObject as _0x4e0f39}from'@univerjs/drawing-ui';import{MobileDropdown as _0x217736}from'@univerjs/design';import{Fragment as _0xe1ac43,jsx as _0x386576,jsxs as _0x61d32d}from'react/jsx-runtime';import{DrawingApplyType as _0x4be448,ISheetDrawingService as _0x4458c8,RemoveSheetDrawingCommand as _0x29b5e1,SetDrawingApplyMutation as _0x5097ca,SetDrawingArrangeCommand as _0x535c91,SetSheetDrawingCommand as _0x47d60a,UniverSheetsDrawingPlugin as _0x434230,transformToAxisAlignPosition as _0x544983,transformToDrawingPosition as _0x1f42db}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x42123a}from'@univerjs-pro/license';import{DocInterceptorService as _0x2dfb69,DocSelectionManagerService as _0x25b5fd,UniverDocsPlugin as _0x47964d}from'@univerjs/docs';import{DocCanvasPopManagerService as _0x9982b4,DocEventManagerService as _0x3fd001,DocRenderController as _0x312210,DocSelectionRenderService as _0x5f1788,UniverDocsUIPlugin as _0xc91a83}from'@univerjs/docs-ui';import{SheetDrawingAnchor as _0x4ef3b5,SheetsDrawingGroupCopyPasteController as _0x344b7d,UniverSheetsDrawingMobileUIPlugin as _0x212ef7,UniverSheetsDrawingUIPlugin as _0x372423}from'@univerjs/sheets-drawing-ui';import{BottomIcon as _0x7cbde6,FlipHorizontalIcon as _0x3c3c9d,FlipVerticalIcon as _0x134503,MoveDownIcon as _0x1cd4bd,MoveUpIcon as _0x5818fa,ObjectLayersIcon as _0x562db7,ShapeFormatSettingIcon as _0x4a1cd8,TopmostIcon as _0xc502f4}from'@univerjs/icons';import{memo as _0x979643,useEffect as _0x3ac889,useMemo as _0x53eb09,useReducer as _0x1268dd,useState as _0x2c04bf}from'react';function Er(_0x21aad9,_0x231ea7){const _0x34b8aa=_0x2028;let _0x226df3={};for(let _0x12a756 of Object[_0x34b8aa(0x1be)](_0x231ea7)){let _0x56fcad=_0x231ea7[_0x12a756],_0x18ac38=_0x21aad9[_0x12a756];_0x226df3[_0x12a756]=_0x18ac38===void 0x0?void 0x0:typeof _0x56fcad=='object'&&_0x56fcad&&!Array[_0x34b8aa(0x265)](_0x56fcad)&&typeof _0x18ac38=='object'&&_0x18ac38&&!Array[_0x34b8aa(0x265)](_0x18ac38)?Er(_0x18ac38,_0x56fcad):_0x18ac38;}return _0x226df3;}const K={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1b5),'handler':(_0xcdd4ea,_0x436419)=>{const _0x33acae=_0x232df7;let _0x22c442=_0xcdd4ea[_0x33acae(0x14a)](_0x5c2303),{unitId:_0x12ffdd,subUnitId:_0x5659b7,shapeType:_0x4be46a,shapeId:_0x544694,shapeData:_0x550b7a,replaceShapeData:_0x120f66,oldShapeJSON:_0x4b56e5}=_0x436419;if(!_0x22c442['getShapeModel'](_0x12ffdd,_0x5659b7,_0x544694))return!0x1;let _0x32d37a=_0xcdd4ea[_0x33acae(0x14a)](_0x1b156e),_0x58fe22=_0xcdd4ea[_0x33acae(0x14a)](_0x1f9c2c),{oldShapeType:_0x494e5b,oldShapeData:_0x2ae54b={}}=_0x4b56e5,_0x49d3da=_0x120f66?_0x2ae54b:Er(_0x2ae54b,_0x550b7a||{}),_0x1c39aa={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x4be46a,'shapeData':_0x550b7a,'replace':_0x120f66}},_0x4eb22f={'id':_0x4af43a['id'],'params':{'unitId':_0x12ffdd,'subUnitId':_0x5659b7,'shapeId':_0x544694,'shapeType':_0x494e5b,'shapeData':_0x49d3da,'replace':_0x120f66}};return _0x32d37a[_0x33acae(0x325)](_0x1c39aa['id'],_0x1c39aa[_0x33acae(0x1aa)])?(_0x58fe22[_0x33acae(0x3a4)]({'unitID':_0x12ffdd,'undoMutations':[_0x4eb22f],'redoMutations':[_0x1c39aa]}),!0x0):!0x1;}};function Dr(_0x22b17f,_0x2dca8d,_0x4be724,_0x25b7c0,_0x5b4844,_0x5ebf02){const _0x5d05d5=_0x232df7;let _0x239268={'unitId':_0x2dca8d,'subUnitId':_0x4be724,'shapeId':_0x25b7c0,'shapeData':_0x5ebf02,'oldShapeJSON':_0x5b4844};return _0x22b17f[_0x5d05d5(0x286)](K['id'],_0x239268);}function Or(_0x3156a4,_0x34bd54,_0x186dad,_0x3ba8e0,_0x4b2b9f,_0x31b005){const _0x33657f=_0x232df7;let _0x5e2e61={'unitId':_0x34bd54,'subUnitId':_0x186dad,'shapeId':_0x3ba8e0,'shapeData':_0x31b005,'oldShapeJSON':_0x4b2b9f};return _0x3156a4[_0x33657f(0x286)](K['id'],_0x5e2e61);}function kr(_0x1d5adf){'@babel/helpers - typeof';const _0x2a4293=_0x232df7;return kr=typeof Symbol==_0x2a4293(0x1b4)&&typeof Symbol[_0x2a4293(0x13e)]==_0x2a4293(0x10b)?function(_0x37b987){return typeof _0x37b987;}:function(_0x31e126){const _0x24bf0e=_0x2a4293;return _0x31e126&&typeof Symbol=='function'&&_0x31e126[_0x24bf0e(0x1a4)]===Symbol&&_0x31e126!==Symbol[_0x24bf0e(0x1e4)]?'symbol':typeof _0x31e126;},kr(_0x1d5adf);}function Ar(_0x222cb0,_0x5a14a4){const _0xa6153f=_0x232df7;if(kr(_0x222cb0)!=_0xa6153f(0x392)||!_0x222cb0)return _0x222cb0;var _0x1240a4=_0x222cb0[Symbol[_0xa6153f(0x2b7)]];if(_0x1240a4!==void 0x0){var _0x40dc37=_0x1240a4[_0xa6153f(0x2e2)](_0x222cb0,_0x5a14a4||_0xa6153f(0x16a));if(kr(_0x40dc37)!='object')return _0x40dc37;throw TypeError(_0xa6153f(0x11e));}return(_0x5a14a4===_0xa6153f(0x1ef)?String:Number)(_0x222cb0);}function jr(_0x5bf273){const _0x51667a=_0x232df7;var _0x5895b8=Ar(_0x5bf273,_0x51667a(0x1ef));return kr(_0x5895b8)==_0x51667a(0x10b)?_0x5895b8:_0x5895b8+'';}function q(_0x4e47cc,_0x2afd8c,_0x579383){const _0x1385ca=_0x232df7;return(_0x2afd8c=jr(_0x2afd8c))in _0x4e47cc?Object[_0x1385ca(0x33a)](_0x4e47cc,_0x2afd8c,{'value':_0x579383,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e47cc[_0x2afd8c]=_0x579383,_0x4e47cc;}function Mr(_0x2a2dbe,_0x4c5893,_0x5d17bf){const _0x51bca1=_0x232df7;let _0x4ed030={..._0x4c5893,'dataModel':{..._0x4c5893[_0x51bca1(0x137)]??{},..._0x5d17bf?{'doc':_0x5d17bf}:null}},_0x26cde7=_0x35ac29(_0x2a2dbe,_0x4ed030),_0x121921=_0x4819b1(_0x26cde7);return{'clip':_0x34a45a(_0x26cde7,_0x121921),'wrapStrategy':_0x121921};}var J=class extends _0x147ce5{constructor(_0x836b17,_0x54d8f3){const _0x5c17a0=_0x232df7;super(_0x836b17,_0x54d8f3),q(this,_0x5c17a0(0x39e),[]),q(this,'_props',void 0x0),q(this,_0x5c17a0(0x132),new _0x19210e(()=>this[_0x5c17a0(0x390)](!0x0),()=>this['_applyFormulaAutoFitSize']())),q(this,_0x5c17a0(0x13d),!0x0),q(this,_0x5c17a0(0xeb),_0x190419[_0x5c17a0(0x21d)]),q(this,'isDrawingObject',!0x0),this[_0x5c17a0(0x27d)]={..._0x54d8f3},this['_formulaAnimation'][_0x5c17a0(0x2fa)](_0x54d8f3[_0x5c17a0(0x157)],_0x54d8f3[_0x5c17a0(0xe0)]!==!0x1),this['_init'](),this[_0x5c17a0(0x348)]();}['_init'](){const _0x5c1746=_0x232df7;this[_0x5c1746(0x2cb)][_0x5c1746(0x2e4)](_0x208cf5=>{const _0x5d97c7=_0x5c1746;this[_0x5d97c7(0x218)](_0x208cf5);});}[_0x232df7(0x1fd)](_0x2baadc){const _0x231ba3=_0x232df7;this['_props'][_0x231ba3(0x320)]=_0x2baadc;}[_0x232df7(0x1c1)](_0x1fa8bd){const _0x394228=_0x232df7;if(this[_0x394228(0x27d)]['isEditing'])return null;let _0x5dbbfa=this[_0x394228(0x364)](_0x1fa8bd),{width:_0x33b90e,height:_0x36a1a3}=this[_0x394228(0x213)]();return _0x1dbce6(this[_0x394228(0x39e)],{'x':(this[_0x394228(0x270)]?-_0x5dbbfa['x']:_0x5dbbfa['x'])+_0x33b90e/0x2,'y':_0x5dbbfa['y']+_0x36a1a3/0x2});}[_0x232df7(0x1f5)](_0x546f39){const _0x314209=_0x232df7;this['_props']['isEditing']=_0x546f39,this[_0x314209(0x390)](!0x0);}[_0x232df7(0x14c)](_0x24bb56,_0xd2d817=!0x0){const _0x5c6139=_0x232df7;this[_0x5c6139(0x132)][_0x5c6139(0x2fa)](_0x24bb56,_0xd2d817),this[_0x5c6139(0x27d)][_0x5c6139(0x157)]=_0x24bb56,this[_0x5c6139(0x348)](),this['makeDirty'](!0x0);}[_0x232df7(0x348)](){const _0x2f15ba=_0x232df7;let _0x431868=this['_props'][_0x2f15ba(0x2c9)],_0x459677=_0x431868[_0x2f15ba(0xf9)](),_0x504b35=_0x1bba65(_0x459677==null?void 0x0:_0x459677[_0x2f15ba(0x137)]),_0x381219=_0x504b35==null?void 0x0:_0x504b35['doc'],_0x943ab6=this['_formulaAnimation']['getAutoFitPresentations']();if(!_0x381219||_0x943ab6[_0x2f15ba(0x333)]===0x0)return;_0x431868[_0x2f15ba(0x2bd)]({'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]});let _0x36fd89=_0x359b16({'documentData':_0x943ab6[_0x2f15ba(0x35b)](_0xc8c9cb=>_0x52663b(_0x381219,_0xc8c9cb)),'height':this[_0x2f15ba(0x39a)],'shapeData':_0x431868[_0x2f15ba(0x1c7)](),'textRect':_0x431868['getShapeTextRect']({'left':0x0,'top':0x0,'width':this[_0x2f15ba(0x324)],'height':this[_0x2f15ba(0x39a)]}),'width':this[_0x2f15ba(0x324)]});if(_0x36fd89){var _0x2cf825;this[_0x2f15ba(0x2b0)](_0x36fd89['width'],_0x36fd89[_0x2f15ba(0x39a)]),(_0x2cf825=this[_0x2f15ba(0x271)]())==null||(_0x2cf825=_0x2cf825[_0x2f15ba(0x122)]())==null||_0x2cf825[_0x2f15ba(0x19f)]();}}get[_0x232df7(0x1e3)](){const _0x67bbb=_0x232df7;return this[_0x67bbb(0x27d)][_0x67bbb(0x1e3)];}get[_0x232df7(0x26c)](){const _0x5f0c60=_0x232df7;return this[_0x5f0c60(0x27d)][_0x5f0c60(0x26c)];}[_0x232df7(0x218)](_0x23b4fc){const _0x3808af=_0x232df7;if(this[_0x3808af(0x27d)]['srcRect']==null||!this[_0x3808af(0x13d)])return;let {width:_0x42240c,height:_0x4b9cad}=this,{width:_0x4bbd41=0x0,height:_0x4785b2=0x0}=_0x23b4fc[_0x3808af(0x160)],{left:_0xcbfeb2=0x0,top:_0xf7339f=0x0,right:_0x45a344=0x0,bottom:_0x2724c4=0x0}=this[_0x3808af(0x27d)]['srcRect'],_0xfa0250=_0xcbfeb2,_0x1ecc18=_0xf7339f,_0x5a2051=_0x45a344,_0x4e5733=_0x2724c4,_0x24723f=!0x1;if(_0x4bbd41!==0x0&&_0x4bbd41!==_0x42240c){let _0x24c0d9=_0xcbfeb2/_0x4bbd41,_0x8dfc44=_0x45a344/_0x4bbd41;_0xfa0250=_0x42240c*_0x24c0d9,_0x5a2051=_0x42240c*_0x8dfc44,_0x24723f=!0x0;}if(_0x4785b2!==0x0&&_0x4785b2!==_0x4b9cad){let _0x420007=_0xf7339f/_0x4785b2,_0x656fbd=_0x2724c4/_0x4785b2;_0x1ecc18=_0x4b9cad*_0x420007,_0x4e5733=_0x4b9cad*_0x656fbd,_0x24723f=!0x0;}_0x24723f&&this['setSrcRect']({'left':_0xfa0250,'top':_0x1ecc18,'right':_0x5a2051,'bottom':_0x4e5733});}[_0x232df7(0x1eb)](_0x3ce463){const _0x23c334=_0x232df7;this[_0x23c334(0x27d)][_0x23c334(0x243)]=_0x3ce463,this['makeDirty'](!0x0);}[_0x232df7(0x35a)](_0x2d85e5){const _0x1a25e4=_0x232df7;this[_0x1a25e4(0x27d)][_0x1a25e4(0x2f5)]=_0x2d85e5,this[_0x1a25e4(0x390)](!0x0);}set[_0x232df7(0x15f)](_0x2e7be5){const _0x2bb0c7=_0x232df7;this[_0x2bb0c7(0x2be)]=_0x2e7be5;}get[_0x232df7(0x15f)](){this['_transform']||this['_setTransForm']();let _0xbbe62c=this['_transform']['clone']();return this['transformForAngle'](_0xbbe62c);}get[_0x232df7(0x2c9)](){const _0x94a359=_0x232df7;return this[_0x94a359(0x27d)]['shapeModel'];}get[_0x232df7(0x275)](){return this['_props']['shapeId'];}get[_0x232df7(0x398)](){const _0x4fa65b=_0x232df7;return _0x432f17[_0x4fa65b(0x2c8)];}[_0x232df7(0x356)](_0x1bcfb2,_0xb93127,_0x3988da,_0x1e2e57){const _0x26faf9=_0x232df7;let _0x436238=this[_0x26faf9(0x27d)][_0x26faf9(0x2c9)];if(!_0x436238||!_0xb93127)return;let _0x37307d=_0x3988da??this[_0x26faf9(0x324)],_0x5c1bcc=_0x1e2e57??this[_0x26faf9(0x39a)],_0x5479fc={'shapeType':_0x436238[_0x26faf9(0x134)](),'width':_0x37307d,'height':_0x5c1bcc},_0x1bf72b={'renderMode':_0x5a1729[_0x26faf9(0xfb)],'oKey':this[_0x26faf9(0x283)],'image':this[_0x26faf9(0x27d)][_0x26faf9(0x2f5)],'angle':this[_0x26faf9(0x140)]};_0x436238['updateContext'](_0x5479fc),_0x1bcfb2[_0x26faf9(0x35e)]();let _0x299eb2={'top':0x0,'left':0x0,'width':_0x37307d,'height':_0x5c1bcc},_0x59abf7=_0x436238['getDrawingEffectBounds'](_0x299eb2);_0x59abf7?this['_renderWithCache'](_0x1bcfb2,_0x59abf7,_0x3aa5d1=>{const _0x29cc76=_0x26faf9;_0x436238[_0x29cc76(0x181)](_0x3aa5d1,_0x299eb2,_0x1bf72b);}):(this[_0x26faf9(0x123)](),_0x436238[_0x26faf9(0x181)](_0x1bcfb2,_0x299eb2,_0x1bf72b)),_0x1bcfb2[_0x26faf9(0x18b)]();let _0x44e411=_0x436238[_0x26faf9(0xf9)](),_0x1f5b0c=_0x436238['getShapeTextRect'](_0x299eb2),_0x4eff42=_0x436238['isLineShape']();if(_0x44e411&&_0x1f5b0c&&!_0x4eff42){_0x1bcfb2['save'](),this['getState']()[_0x26faf9(0x270)]&&_0x1bcfb2[_0x26faf9(0x36e)](-0x1,0x1);let _0x4c842a=_0x37307d/0x2,_0x58de49=_0x5c1bcc/0x2;_0x1bcfb2[_0x26faf9(0x251)](-_0x4c842a,-_0x58de49),_0x1bcfb2[_0x26faf9(0x14d)](),this[_0x26faf9(0x238)](_0x1bcfb2,_0x44e411,_0x1f5b0c),_0x1bcfb2[_0x26faf9(0x18b)]();}}[_0x232df7(0x158)](_0x444100){}['_drawShapeText'](_0x2d4e06,_0x3adae8,_0x407520){const _0x404cab=_0x232df7;var _0x3d5aa7;this[_0x404cab(0x39e)]=[],!this[_0x404cab(0x27d)][_0x404cab(0x2f6)]&&(!((_0x3d5aa7=_0x3adae8[_0x404cab(0x137)])!=null&&_0x3d5aa7[_0x404cab(0xf6)])&&'isRichText'in _0x3adae8&&_0x3adae8[_0x404cab(0x1f7)]===!0x1?this[_0x404cab(0x371)](_0x2d4e06,_0x3adae8,_0x407520):this['_drawRichText'](_0x2d4e06,_0x3adae8,_0x407520));}[_0x232df7(0x371)](_0x35e080,_0x12edd4,_0x6f745c){const _0x1af3c5=_0x232df7;this[_0x1af3c5(0x240)](_0x35e080,{..._0x12edd4,'text':_0x12edd4[_0x1af3c5(0x1a6)]??'','dataModel':{'doc':_0x3d4a09(_0x12edd4,'sheets-shape-text-'+this[_0x1af3c5(0x283)])}},_0x6f745c);}[_0x232df7(0x240)](_0x470544,_0x495279,_0x1a5c7f){const _0x569fc6=_0x232df7;_0x3d37bc(_0x470544,this[_0x569fc6(0x132)],(_0x109a5c,_0x2971dc,_0x14ede3)=>{const _0x384a37=_0x569fc6;this['_drawRichTextLayer'](_0x109a5c,_0x495279,_0x1a5c7f,_0x2971dc,_0x14ede3===_0x384a37(0x32b));});}['_drawRichTextLayer'](_0x5db83b,_0x2f0fe1,_0x370ef1,_0x2cec95,_0x16aadb){const _0x458f23=_0x232df7;let _0x1b65da=this['_props'][_0x458f23(0x39c)];if(!_0x2f0fe1[_0x458f23(0x137)]||!_0x1b65da)return;let _0x1dcb87=_0x1bba65(_0x2f0fe1['dataModel']);if(!_0x1dcb87)return;let _0x3ab50d=_0x1dcb87['doc'];if(!_0x3ab50d)return;let _0x475070=_0x52663b(_0x3ab50d,_0x2cec95),_0x538ab1=_0x1dcb87['va']??_0x2cccb9[_0x458f23(0x115)],_0x51c2e9=_0x1dcb87['ha']??_0x4dc457[_0x458f23(0xf0)],_0x592774=Mr(this[_0x458f23(0x27d)][_0x458f23(0x2c9)][_0x458f23(0x1c7)](),_0x2f0fe1,_0x475070),_0x315d7d=_0x2f0fe1['isHorizontal'],_0x323f0d=_0x3da194(_0x475070,{'isHorizontal':_0x315d7d!==!0x1,'textRect':_0x370ef1,'verticalAlign':_0x538ab1,'horizontalAlign':_0x51c2e9,'wrapStrategy':_0x592774[_0x458f23(0x299)]}),_0x475178=new _0x228348(_0x323f0d),_0x38fefb=new _0x2437bc(_0x475178),_0x59141e=_0x2bf98e[_0x458f23(0x164)](_0x38fefb,_0x1b65da);_0x59141e['calculate']();let _0x72c6b9=_0x59141e[_0x458f23(0x165)]()['actualHeight'],_0x18fa44=_0x171327({'contentHeight':_0x72c6b9,'verticalAlign':_0x538ab1,'viewportHeight':_0x370ef1[_0x458f23(0x39a)]});_0x475178[_0x458f23(0x376)]({'pageSize':{'width':_0x315d7d===!0x1?_0x370ef1[_0x458f23(0x39a)]:_0x370ef1[_0x458f23(0x324)],'height':_0x12abcc(_0x475070,_0x18fa44[_0x458f23(0x1c0)])}}),_0x475178[_0x458f23(0x17b)]({'t':_0x18fa44[_0x458f23(0x2b9)]}),_0x59141e[_0x458f23(0x252)]();let _0x5c1bab=new _0x25e368(_0x458f23(0x22e)+this[_0x458f23(0x283)],_0x59141e,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x458f23(0x390)](!0x0)});_0x5c1bab[_0x458f23(0x2b0)](_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x1c0)]),_0x5db83b['save'](),_0x5db83b[_0x458f23(0x313)](_0x370ef1[_0x458f23(0xe4)],_0x370ef1[_0x458f23(0x1b9)]),_0x592774[_0x458f23(0x2a2)]&&(_0x5db83b[_0x458f23(0x14d)](),_0x5db83b[_0x458f23(0x378)](0x0,_0x18fa44[_0x458f23(0x38b)],_0x370ef1[_0x458f23(0x324)],_0x18fa44[_0x458f23(0x379)]),_0x5db83b[_0x458f23(0x2a2)]()),_0x18fa44[_0x458f23(0x19d)]&&_0x5db83b[_0x458f23(0x313)](0x0,_0x18fa44[_0x458f23(0x19d)]),_0x5c1bab[_0x458f23(0xf3)](_0x5db83b),_0x16aadb&&(this[_0x458f23(0x39e)]=_0xbb0e6c(_0x5c1bab,{'left':_0x370ef1[_0x458f23(0xe4)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x19d)]},_0x592774[_0x458f23(0x2a2)]?{'left':_0x370ef1[_0x458f23(0xe4)],'right':_0x370ef1[_0x458f23(0xe4)]+_0x370ef1[_0x458f23(0x324)],'top':_0x370ef1['top']+_0x18fa44[_0x458f23(0x38b)],'bottom':_0x370ef1['top']+_0x18fa44['clipTop']+_0x18fa44['clipHeight']}:void 0x0)),_0x5db83b[_0x458f23(0x18b)](),_0x5c1bab[_0x458f23(0x296)](),_0x59141e['dispose'](),_0x38fefb[_0x458f23(0x296)](),_0x475178[_0x458f23(0x296)]();}[_0x232df7(0x181)](_0x942f65,_0x19deba,_0x2893dd=!0x1){const _0x55f1dd=_0x232df7;if(!this[_0x55f1dd(0x346)])return this['makeDirty'](!0x1),this;let {width:_0x531569,height:_0x135128,left:_0x1ad463,top:_0x58a864}=this,_0x11e5b6=this[_0x55f1dd(0x213)]();if(_0x531569=_0x11e5b6[_0x55f1dd(0x324)],_0x135128=_0x11e5b6['height'],_0x1ad463=_0x11e5b6['left'],_0x58a864=_0x11e5b6[_0x55f1dd(0x1b9)],this['isRender'](_0x19deba)){let {top:_0xa3fb93,left:_0x38b46f,bottom:_0x3560be,right:_0x1ecb74}=_0x19deba[_0x55f1dd(0x38e)];if(_0x531569+this[_0x55f1dd(0x230)]+_0x1ad463<_0x38b46f||_0x1ecb74<_0x1ad463||_0x135128+this['strokeWidth']+_0x58a864<_0xa3fb93||_0x3560be<_0x58a864)return this;}let _0x55b9e7=_0x1ad463+_0x531569/0x2,_0x3dc64d=_0x58a864+_0x135128/0x2,_0x2d2822=this[_0x55f1dd(0x15f)][_0x55f1dd(0x27c)]();if(this[_0x55f1dd(0x27d)][_0x55f1dd(0x2f6)]){let _0x41a0b8=this[_0x55f1dd(0x289)](),_0x403a26=new _0x9667eb();_0x403a26[_0x55f1dd(0x2f0)]({..._0x41a0b8}),_0x2d2822=_0x403a26['getMatrix']();}return _0x942f65['save'](),this[_0x55f1dd(0x27d)][_0x55f1dd(0x2c9)][_0x55f1dd(0x1af)]===!0x0||_0x942f65[_0x55f1dd(0x15f)](_0x2d2822[0x0],_0x2d2822[0x1],_0x2d2822[0x2],_0x2d2822[0x3],_0x55b9e7,_0x3dc64d),this[_0x55f1dd(0x356)](_0x942f65,_0x19deba,_0x531569,_0x135128),_0x942f65['restore'](),this[_0x55f1dd(0x390)](!0x1),this;}[_0x232df7(0x364)](_0x5116aa){const _0x18947f=_0x232df7;let {left:_0x455f75,top:_0x12dea5,width:_0x78df0a,height:_0x530b3a}=this[_0x18947f(0x213)](),_0x32a93a=this['transform'][_0x18947f(0x27c)](),_0x44a575=_0x455f75+_0x78df0a/0x2,_0x14073f=_0x12dea5+_0x530b3a/0x2,_0x2b070c=new _0x9667eb([_0x32a93a[0x0],_0x32a93a[0x1],_0x32a93a[0x2],_0x32a93a[0x3],_0x44a575,_0x14073f]),_0xa568e7=this['getParent']();return(this[_0x18947f(0xe3)]&&(_0xa568e7==null?void 0x0:_0xa568e7[_0x18947f(0x398)])===_0x432f17[_0x18947f(0x34e)]?_0xa568e7[_0x18947f(0x21b)][_0x18947f(0x2a1)](_0x2b070c):_0x2b070c)[_0x18947f(0x354)]()[_0x18947f(0x30c)](_0x5116aa);}[_0x232df7(0x24e)](_0x5f04fc){const _0x456d3a=_0x232df7;let {left:_0x551146,top:_0x2012c5,width:_0x702b3,height:_0x3eec79}=this[_0x456d3a(0x213)](),_0x446f7b=_0x551146+_0x702b3/0x2,_0x5f0a80=_0x2012c5+_0x3eec79/0x2,_0x422a6e=this[_0x456d3a(0x15f)][_0x456d3a(0x27c)](),_0x38be7f=new _0x9667eb([_0x422a6e[0x0],_0x422a6e[0x1],_0x422a6e[0x2],_0x422a6e[0x3],_0x446f7b,_0x5f0a80]),_0x8aacf1=this[_0x456d3a(0x1e5)](),_0x3fa81e=(this[_0x456d3a(0xe3)]&&(_0x8aacf1==null?void 0x0:_0x8aacf1['classType'])===_0x432f17[_0x456d3a(0x34e)]?_0x8aacf1[_0x456d3a(0x21b)][_0x456d3a(0x2a1)](_0x38be7f):_0x38be7f)['invert']()[_0x456d3a(0x30c)](_0x5f04fc),_0x46deba=_0x702b3/0x2,_0x1b91d6=_0x3eec79/0x2,_0x3a402e=this[_0x456d3a(0x27d)][_0x456d3a(0x2c9)];return _0x3a402e&&_0x3a402e[_0x456d3a(0x25c)]()?_0x3a402e[_0x456d3a(0x318)](_0x3fa81e['x'],_0x3fa81e['y'],_0x702b3,_0x3eec79):_0x3fa81e['x']>=-_0x46deba-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['x']<=_0x46deba+this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']>=-_0x1b91d6-this[_0x456d3a(0x230)]/0x2&&_0x3fa81e['y']<=_0x1b91d6+this[_0x456d3a(0x230)]/0x2;}[_0x232df7(0x296)](){const _0x45c739=_0x232df7;this['_formulaAnimation'][_0x45c739(0x296)](),this[_0x45c739(0x27d)]['shapeModel']=null,super[_0x45c739(0x296)]();}},Nr=class extends _0x147ce5{constructor(_0x4cdf04,_0x25fb0f){const _0x2e7093=_0x232df7;super(_0x4cdf04,_0x25fb0f),q(this,_0x2e7093(0x1f2),null),q(this,_0x2e7093(0x3a1),null),q(this,_0x2e7093(0x102),null),q(this,_0x2e7093(0x161),null),_0x25fb0f&&this[_0x2e7093(0x1da)](_0x25fb0f);}[_0x232df7(0xe5)](){const _0x5c832=_0x232df7;return{'unitId':this[_0x5c832(0x102)],'subUnitId':this[_0x5c832(0x161)],'drawingId':this[_0x5c832(0x1f2)]};}[_0x232df7(0x1da)](_0x3f6a1f){const _0x905c49=_0x232df7;_0x3f6a1f[_0x905c49(0x275)]!==void 0x0&&(this[_0x905c49(0x1f2)]=_0x3f6a1f[_0x905c49(0x275)]),_0x3f6a1f[_0x905c49(0x18d)]!==void 0x0&&(this[_0x905c49(0x3a1)]=_0x3f6a1f[_0x905c49(0x18d)]),_0x3f6a1f[_0x905c49(0x1e3)]!==void 0x0&&(this['_unitId']=_0x3f6a1f[_0x905c49(0x1e3)]),_0x3f6a1f['subUnitId']!==void 0x0&&(this[_0x905c49(0x161)]=_0x3f6a1f[_0x905c49(0x26c)]),this[_0x905c49(0x234)]({'width':_0x3f6a1f['width'],'height':_0x3f6a1f[_0x905c49(0x39a)]});}[_0x232df7(0x356)](_0x4bad0e){const _0x6cc66e=_0x232df7;_0x4a02a1[_0x6cc66e(0x1a8)](_0x4bad0e,{'radius':_0x4c61a8[_0x6cc66e(0x1a9)],'fill':_0x4c61a8['adjHandleFill'],'stroke':_0x4c61a8['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function Y(_0x52b93e,_0x4ab924){return function(_0x58f5a7,_0x3c5b9b){_0x4ab924(_0x58f5a7,_0x3c5b9b,_0x52b93e);};}function X(_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847){const _0x30e0cc=_0x232df7;var _0x103c2d=arguments['length'],_0x241a4e=_0x103c2d<0x3?_0x53cfc6:_0x18d847===null?_0x18d847=Object[_0x30e0cc(0x150)](_0x53cfc6,_0x21771d):_0x18d847,_0x2654d2;if(typeof Reflect==_0x30e0cc(0x392)&&typeof Reflect[_0x30e0cc(0x2af)]==_0x30e0cc(0x1b4))_0x241a4e=Reflect[_0x30e0cc(0x2af)](_0x3cd1b0,_0x53cfc6,_0x21771d,_0x18d847);else{for(var _0x13e546=_0x3cd1b0[_0x30e0cc(0x333)]-0x1;_0x13e546>=0x0;_0x13e546--)(_0x2654d2=_0x3cd1b0[_0x13e546])&&(_0x241a4e=(_0x103c2d<0x3?_0x2654d2(_0x241a4e):_0x103c2d>0x3?_0x2654d2(_0x53cfc6,_0x21771d,_0x241a4e):_0x2654d2(_0x53cfc6,_0x21771d))||_0x241a4e);}return _0x103c2d>0x3&&_0x241a4e&&Object[_0x30e0cc(0x33a)](_0x53cfc6,_0x21771d,_0x241a4e),_0x241a4e;}let Z=class extends _0x2bb0e8{constructor(_0x229c70,_0x1fdbc7,_0xb6c89,_0x5d32a5,_0x231cea,_0x22f8b4){const _0x208107=_0x232df7;super(),this[_0x208107(0x11c)]=_0x229c70,this['_sheetsShapeService']=_0x1fdbc7,this[_0x208107(0x184)]=_0xb6c89,this['_imageIoService']=_0x5d32a5,this['_urlImageService']=_0x231cea,this[_0x208107(0x172)]=_0x22f8b4,q(this,_0x208107(0x119),new Map()),this[_0x208107(0x2db)](this['_shapeFormulaService'][_0x208107(0x2a7)]['subscribe'](_0x291999=>{const _0x2eafec=_0x208107;var _0x2caabe;(_0x2caabe=this[_0x2eafec(0x119)][_0x2eafec(0x14a)](this[_0x2eafec(0x2a8)](_0x291999[_0x2eafec(0x1e3)],_0x291999[_0x2eafec(0x26c)],_0x291999[_0x2eafec(0x275)])))==null||_0x2caabe[_0x2eafec(0x385)](_0x1bdfc1=>_0x1bdfc1[_0x2eafec(0x14c)](_0x291999[_0x2eafec(0x3a5)],_0x291999[_0x2eafec(0x16e)]));})),this[_0x208107(0x2db)](this['_drawingManagerService'][_0x208107(0x36d)]['subscribe'](_0x230728=>{const _0x4ca660=_0x208107;_0x230728[_0x4ca660(0x385)](_0x2f400c=>{const _0x2595ee=_0x4ca660;this[_0x2595ee(0x172)][_0x2595ee(0x23e)]({'unitId':_0x2f400c[_0x2595ee(0x1e3)],'subUnitId':_0x2f400c[_0x2595ee(0x26c)],'shapeId':_0x2f400c[_0x2595ee(0x36c)]}),this[_0x2595ee(0x119)][_0x2595ee(0x2a9)](this[_0x2595ee(0x2a8)](_0x2f400c[_0x2595ee(0x1e3)],_0x2f400c[_0x2595ee(0x26c)],_0x2f400c[_0x2595ee(0x36c)]));});}));}[_0x232df7(0x226)](_0x34589e,_0x263432,_0x1e0f92){const _0x3a2bc8=_0x232df7;let {transform:_0x3dea94,drawingType:_0x19d97b,srcRect:_0x2ffa35,prstGeom:_0x3e744c,groupId:_0x112118,unitId:_0x3a952b,subUnitId:_0x349a03,drawingId:_0x419791,isMultiTransform:_0x52b010,transforms:_0x271833,hidden:_0x4bdcb3,selectable:_0x191db2}=_0x34589e;if(_0x19d97b!==_0x190419[_0x3a2bc8(0x21d)]||!this[_0x3a2bc8(0x11c)][_0x3a2bc8(0xe2)]()||_0x3dea94==null)return;let _0xae63f9=this[_0x3a2bc8(0x11c)]['getDrawingEditable'](),_0x5c31a3=_0x52b010&&_0x271833?_0x271833:[_0x3dea94],_0x12039a=[];for(let _0x4dac68 of _0x5c31a3){let {left:_0x330461,top:_0x3920e0,width:_0xb34c72,height:_0x10f331,angle:_0xb66c46,flipX:_0x24992c,flipY:_0x2d9cec,skewX:_0x29aca2,skewY:_0x4d9723}=_0x4dac68,_0x3b68bc=_0x5c31a3[_0x3a2bc8(0x259)](_0x4dac68),_0x38cd5c=_0x3023e5({'unitId':_0x3a952b,'subUnitId':_0x349a03,'drawingId':_0x419791},_0x52b010?_0x3b68bc:void 0x0),_0x2d3ccc=_0x263432[_0x3a2bc8(0x3a9)](_0x38cd5c);if(_0x2d3ccc!=null){let _0x3369bc={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x2d3ccc instanceof J&&this[_0x3a2bc8(0x194)](_0x2d3ccc,_0x3369bc),_0x2d3ccc[_0x3a2bc8(0x234)]({'left':_0x330461,'top':_0x3920e0,'width':_0xb34c72,'height':_0x10f331,'angle':_0xb66c46,'flipX':_0x24992c,'flipY':_0x2d9cec,'skewX':_0x29aca2,'skewY':_0x4d9723});continue;}let _0x2cd0e7=this[_0x3a2bc8(0x11c)][_0x3a2bc8(0x2bf)](_0x3a952b,_0x349a03),_0x8207c0=_0x2cd0e7['indexOf'](_0x419791);if(_0x263432['getObjectIncludeInGroup'](_0x38cd5c)||!this[_0x3a2bc8(0x11c)]['getDrawingVisible']())continue;let _0x29eae4=this[_0x3a2bc8(0x3aa)][_0x3a2bc8(0x1cf)](_0x3a952b,_0x349a03,_0x419791);if(!_0x29eae4)continue;let _0x484a99=_0x52f76f(_0x29eae4['getShapeType']())?{..._0x16a405,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:_0x16a405,_0x5145e6=_0x29eae4['getShapeData']()[_0x3a2bc8(0x2da)],_0x323924={'unitId':_0x3a952b,'subUnitId':_0x349a03,'shapeId':_0x419791};_0x5145e6&&this[_0x3a2bc8(0x172)][_0x3a2bc8(0x114)](_0x323924,_0x5145e6);let _0x374a73=new J(_0x38cd5c,{..._0x4dac68,'zIndex':_0x8207c0===-0x1?_0x2cd0e7['length']-0x1:_0x8207c0,'shapeModel':_0x29eae4,'localeService':this[_0x3a2bc8(0x184)],'shapeId':_0x419791,'unitId':_0x3a952b,'subUnitId':_0x349a03,'visible':_0x4bdcb3!==!0x0,'evented':_0x191db2!==!0x1,'formulaPresentation':_0x5145e6?this[_0x3a2bc8(0x172)][_0x3a2bc8(0x21f)](_0x323924):void 0x0,'animateFormulaPresentation':(_0x5145e6==null?void 0x0:_0x5145e6['animationEnabled'])!==!0x1,'transformerConfig':_0x484a99});if(_0x5145e6){let _0x288767=this['_formulaKey'](_0x3a952b,_0x349a03,_0x419791),_0x1e2588=this[_0x3a2bc8(0x119)][_0x3a2bc8(0x14a)](_0x288767)??new Set();_0x1e2588[_0x3a2bc8(0x19c)](_0x374a73),this[_0x3a2bc8(0x119)][_0x3a2bc8(0x2e6)](_0x288767,_0x1e2588);}_0x263432[_0x3a2bc8(0x23d)](_0x374a73,_0x4489b8),_0xae63f9&&_0x263432[_0x3a2bc8(0x363)](_0x374a73),_0x112118&&_0x4e0f39({'drawingId':_0x112118,'unitId':_0x3a952b,'subUnitId':_0x349a03},_0x374a73,_0x263432,this['_drawingManagerService']),_0x3e744c!=null&&_0x374a73['setPrstGeom'](_0x3e744c),_0x2ffa35!=null&&_0x374a73['setSrcRect'](_0x2ffa35);let _0x595fff=this[_0x3a2bc8(0x14e)](_0x374a73,_0x29eae4[_0x3a2bc8(0x1c7)]());if(_0x595fff){var _0x3de60a;_0x1e0f92==null||(_0x3de60a=_0x1e0f92['resourceCollector'])==null||_0x3de60a[_0x3a2bc8(0x19c)](_0x595fff);}_0x12039a[_0x3a2bc8(0x29a)](_0x374a73);}return _0x12039a;}[_0x232df7(0x2a8)](_0x180067,_0xd9425e,_0x398a4a){return _0x180067+'\x00'+_0xd9425e+'\x00'+_0x398a4a;}[_0x232df7(0x194)](_0x61425b,_0x32f246){const _0x5253d7=_0x232df7;let _0x435b7c=this[_0x5253d7(0x3aa)][_0x5253d7(0x1cf)](_0x32f246[_0x5253d7(0x1e3)],_0x32f246[_0x5253d7(0x26c)],_0x32f246[_0x5253d7(0x275)]),_0x21d4b9=_0x435b7c==null?void 0x0:_0x435b7c[_0x5253d7(0x1c7)]()[_0x5253d7(0x2da)],_0x355988=this[_0x5253d7(0x2a8)](_0x32f246['unitId'],_0x32f246['subUnitId'],_0x32f246[_0x5253d7(0x275)]);if(_0x21d4b9){this[_0x5253d7(0x172)][_0x5253d7(0x114)](_0x32f246,_0x21d4b9);let _0x1b0fe2=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988)??new Set();_0x1b0fe2[_0x5253d7(0x19c)](_0x61425b),this[_0x5253d7(0x119)]['set'](_0x355988,_0x1b0fe2);}else{var _0x38d365;this[_0x5253d7(0x172)][_0x5253d7(0x23e)](_0x32f246),(_0x38d365=this[_0x5253d7(0x119)][_0x5253d7(0x14a)](_0x355988))==null||_0x38d365[_0x5253d7(0x2a9)](_0x61425b);}_0x61425b['setFormulaPresentation'](_0x21d4b9?this['_shapeFormulaService'][_0x5253d7(0x21f)](_0x32f246):void 0x0,(_0x21d4b9==null?void 0x0:_0x21d4b9[_0x5253d7(0x16e)])!==!0x1);}[_0x232df7(0x306)](_0x2b87c7){const _0x373641=_0x232df7;let _0x3c9ff9=_0x2b87c7['shapeModel'][_0x373641(0x1c7)](),_0x27237a=_0x3c9ff9[_0x373641(0x33e)];!_0x27237a||_0x27237a[_0x373641(0xfc)]!==_0x44f004[_0x373641(0x25f)]||!_0x27237a['fillImageSource']?_0x2b87c7[_0x373641(0x35a)](void 0x0):this[_0x373641(0x14e)](_0x2b87c7,_0x3c9ff9);}['_loadShapePictureFill'](_0xc490f5,_0x254267){const _0x36cb29=_0x232df7;let _0x2d3ca4=_0x254267[_0x36cb29(0x33e)];if(!_0x2d3ca4||_0x2d3ca4['fillType']!==_0x44f004[_0x36cb29(0x25f)]||!_0x2d3ca4['fillImageSource'])return;let _0x417664=_0x2d3ca4[_0x36cb29(0x399)],_0x320afe=_0x2d3ca4[_0x36cb29(0x147)]??_0x456deb['URL'],_0x5f3ab7=this[_0x36cb29(0x30a)][_0x36cb29(0x1db)](_0x417664,_0x320afe);if(_0x5f3ab7)_0xc490f5['setFillImage'](_0x5f3ab7);else return this[_0x36cb29(0x347)](_0xc490f5,_0x417664,_0x320afe);}async[_0x232df7(0x347)](_0x23e47c,_0x4fe657,_0x25fe8b){const _0x345410=_0x232df7;let _0x6614f3;try{if(_0x25fe8b===_0x456deb['UUID'])_0x6614f3=await this[_0x345410(0x30a)][_0x345410(0x10e)](_0x4fe657);else{if(_0x25fe8b===_0x456deb['URL'])try{_0x6614f3=await this['_urlImageService']['getImage'](_0x4fe657);}catch{_0x6614f3=_0x4fe657;}else _0x6614f3=_0x4fe657;}}catch(_0x114dfa){console[_0x345410(0x2cf)](_0x345410(0x105),_0x114dfa);return;}await new Promise(_0x3f8b12=>{const _0x41c83d=_0x345410;let _0x5800c0=new window[(_0x41c83d(0x338))]();_0x5800c0[_0x41c83d(0x15e)]=()=>{const _0x3db9ed=_0x41c83d;this[_0x3db9ed(0x30a)][_0x3db9ed(0x394)](_0x4fe657,_0x25fe8b,_0x5800c0),_0x23e47c[_0x3db9ed(0x35a)](_0x5800c0),_0x3f8b12();},_0x5800c0[_0x41c83d(0x2eb)]=()=>{const _0x3cd923=_0x41c83d;console[_0x3cd923(0x2cf)](_0x3cd923(0x307),_0x4fe657),_0x3f8b12();},_0x5800c0[_0x41c83d(0x1ee)]=_0x6614f3;});}};Z=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x16b0b7)),Y(0x3,_0xe46211),Y(0x4,_0x38d6c5),Y(0x5,_0x229e82(_0x907d04))],Z);let Pr=class extends _0x2bb0e8{constructor(_0x3ac1e4,_0x5dfd8c,_0x259a17,_0x4ec0d9,_0x1fad70,_0x240f58){const _0x458e6f=_0x232df7;super(),this[_0x458e6f(0x11c)]=_0x3ac1e4,this['_sheetsShapeService']=_0x5dfd8c,this[_0x458e6f(0x209)]=_0x259a17,this['_sheetDrawingShapeRenderController']=_0x4ec0d9,this[_0x458e6f(0x2d4)]=_0x1fad70,this[_0x458e6f(0x232)]=_0x240f58,q(this,_0x458e6f(0x362),null),q(this,_0x458e6f(0x102),null),q(this,'_subUnitId',null),q(this,'_activeShapeAdjustPointList',void 0x0),q(this,_0x458e6f(0x2b1),[]),q(this,'_baseShapeLeft',0x0),q(this,'_baseShapeTop',0x0),q(this,'_baseShapeWidth',0x0),q(this,'_baseShapeHeight',0x0),q(this,_0x458e6f(0x173),!0x1),q(this,'_activeAdjustInfo',void 0x0),q(this,_0x458e6f(0x1d8),void 0x0),q(this,_0x458e6f(0x30b),void 0x0),q(this,_0x458e6f(0x290),void 0x0),q(this,_0x458e6f(0x314),!0x1),this['_registerDrawingFocusChangeHandler'](),this[_0x458e6f(0x156)]();}[_0x232df7(0x393)](_0x301527,_0x2a84fb,_0x3bddca){const _0x391787=_0x232df7;let _0x471e35=this[_0x391787(0x3aa)]['getShapeModel'](_0x301527,_0x2a84fb,_0x3bddca);if(_0x471e35)return _0x471e35[_0x391787(0x158)]();}[_0x232df7(0x23a)](){const _0x4fb756=_0x232df7;this[_0x4fb756(0x163)]();}[_0x232df7(0x1cb)](){const _0x1af1ee=_0x232df7;this[_0x1af1ee(0x285)](!0x0);}[_0x232df7(0x1d7)](_0x474bc3){const _0x230a63=_0x232df7;this[_0x230a63(0x314)]=_0x474bc3;}[_0x232df7(0x260)](_0x4493d4,_0x2494ff,_0x44affb,_0x4efa3d){const _0x3fdfab=_0x232df7;let _0x2c6a8c=this['_sheetsShapeService'][_0x3fdfab(0x1cf)](_0x4493d4,_0x2494ff,_0x44affb);if(_0x2c6a8c)return _0x2c6a8c[_0x3fdfab(0x219)](_0x4efa3d);}[_0x232df7(0x190)](_0x2bbc4c=!0x1){const _0x979925=_0x232df7;if(this[_0x979925(0x102)]===null||this[_0x979925(0x161)]===null||this['_activeShapeId']===null)return;let _0x5edd94=this[_0x979925(0x209)]['getRenderUnitById'](this[_0x979925(0x102)]);if(!_0x5edd94||!_0x5edd94[_0x979925(0x18c)](_0x54a66d)[_0x979925(0x2ee)]())return;let {scene:_0x431965}=_0x5edd94,_0x7c0153={'unitId':this[_0x979925(0x102)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x979925(0x362)]},_0x421544=this[_0x979925(0x11c)][_0x979925(0x282)](_0x7c0153),{transform:_0x447072}=_0x421544;if(!_0x447072||_0x421544['drawingType']!==_0x190419['DRAWING_SHAPE'])return;let {left:_0x41f803,top:_0x49797f,width:_0x51e625,height:_0x138da3,flipX:_0x3d39c8,flipY:_0x59fcf5,angle:_0x35ef7d=0x0}=_0x447072;if(_0x41f803===void 0x0||_0x49797f===void 0x0)return;if(_0x2bbc4c){let _0x23bdfc=this[_0x979925(0x3aa)][_0x979925(0x1cf)](this[_0x979925(0x102)],this[_0x979925(0x161)],this[_0x979925(0x362)]);_0x23bdfc==null||_0x23bdfc[_0x979925(0x2bd)]({'width':_0x51e625??0x0,'height':_0x138da3??0x0}),this[_0x979925(0x23c)]=_0x23bdfc==null?void 0x0:_0x23bdfc['getDrawingPoints']();}let _0x43ade3=this['_activeShapeAdjustPointList'];for(let _0x53a557=0x0;_0x53a557<_0x43ade3[_0x979925(0x333)];_0x53a557++){let _0x2500b8=_0x43ade3[_0x53a557],_0x10ffbb=_0x2500b8['x'],_0x5915ee=_0x2500b8['y'];if(_0x3d39c8&&(_0x10ffbb=(_0x51e625||0x0)-_0x10ffbb),_0x59fcf5&&(_0x5915ee=(_0x138da3||0x0)-_0x5915ee),_0x35ef7d!==0x0){let _0x58bcfa=(_0x51e625||0x0)/0x2,_0x25f66d=(_0x138da3||0x0)/0x2,_0x1b6ea4=_0x35ef7d*Math['PI']/0xb4,_0x492bba=Math['cos'](_0x1b6ea4),_0xb12fd0=Math[_0x979925(0x159)](_0x1b6ea4),_0x217d5d=_0x10ffbb-_0x58bcfa,_0x2a508b=_0x5915ee-_0x25f66d;_0x10ffbb=_0x58bcfa+(_0x217d5d*_0x492bba-_0x2a508b*_0xb12fd0),_0x5915ee=_0x25f66d+(_0x217d5d*_0xb12fd0+_0x2a508b*_0x492bba);}let _0x46ae2d={'x':_0x10ffbb,'y':_0x5915ee,'adjName':_0x2500b8[_0x979925(0x18d)]};this['_addShapeAdjustControl'](_0x431965,_0x46ae2d,_0x46ae2d[_0x979925(0x18d)],_0x41f803,_0x49797f,this['_unitId'],this[_0x979925(0x161)]);}}[_0x232df7(0x285)](_0x338706=!0x1){const _0x5794a7=_0x232df7;_0x338706&&(this[_0x5794a7(0x163)](),this[_0x5794a7(0x190)](_0x338706));}['_addShapeAdjustControl'](_0x445315,_0x52f976,_0x3935a6,_0x19b210,_0x1a9b7a,_0x40f77b,_0x31b8d3){const _0x59ea3b=_0x232df7;if(!this[_0x59ea3b(0x362)])return;let _0x5b2b87=_0x445315['getObjectIncludeInGroup'](_0x59ea3b(0x255)+this[_0x59ea3b(0x362)]+'-'+_0x3935a6);if(_0x5b2b87){_0x5b2b87[_0x59ea3b(0x234)]({'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)]});return;}let _0x441d60={'left':_0x52f976['x']+_0x19b210-_0x4c61a8[_0x59ea3b(0x1a9)],'top':_0x52f976['y']+_0x1a9b7a-_0x4c61a8[_0x59ea3b(0x1a9)],'adjName':_0x3935a6,'shapeId':this[_0x59ea3b(0x362)],'unitId':_0x40f77b,'subUnitId':_0x31b8d3,'width':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'height':_0x4c61a8[_0x59ea3b(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0},_0x2be4a3=new Nr(_0x59ea3b(0x255)+this['_activeShapeId']+'-'+_0x3935a6,_0x441d60);this['_shapes'][_0x59ea3b(0x29a)](_0x2be4a3),this[_0x59ea3b(0x2ac)](_0x2be4a3,_0x445315,_0x3935a6),_0x445315[_0x59ea3b(0x23d)](_0x2be4a3,_0x4489b8+0x1);}[_0x232df7(0x163)](){const _0x2bf80d=_0x232df7;this['_shapes'][_0x2bf80d(0x333)]!==0x0&&(this[_0x2bf80d(0x2b1)][_0x2bf80d(0x385)](_0xa504eb=>{const _0x1559ce=_0x2bf80d;_0xa504eb[_0x1559ce(0x296)]();}),this[_0x2bf80d(0x2b1)]=[]);}[_0x232df7(0xea)](){const _0x39616d=_0x232df7;this[_0x39616d(0x190)]();}[_0x232df7(0x1c6)](_0x10b2ed,_0xeeea9){const _0x48b033=_0x232df7;var _0x6c4595;let _0x59d44a={'x':0x0,'y':0x0};if(!_0x10b2ed||!_0xeeea9)return _0x59d44a;let _0x41d4ec=this[_0x48b033(0x209)]['getRenderUnitById'](_0x10b2ed);if(!_0x41d4ec||!_0x41d4ec['with'](_0x54a66d)[_0x48b033(0x38a)](_0xeeea9))return _0x59d44a;let _0x335193=_0x41d4ec[_0x48b033(0x18c)](_0x5ccab7),_0x11a97a=_0x335193==null?void 0x0:_0x335193[_0x48b033(0x1e9)]();if(!_0x11a97a)return _0x59d44a;let _0x3f74c1=(_0x6c4595=this['_univerInstanceService']['getUnit'](_0x10b2ed))==null?void 0x0:_0x6c4595[_0x48b033(0x339)](_0xeeea9);if(!_0x3f74c1)return _0x59d44a;let _0xc9a2b8=_0x56d9fe(_0x11a97a['sheetViewStartRow'],_0x11a97a[_0x48b033(0x3ab)],_0x41d4ec[_0x48b033(0x381)],_0x3f74c1);return _0xc9a2b8?{'x':_0xc9a2b8[_0x48b033(0x397)],'y':_0xc9a2b8[_0x48b033(0x125)]}:_0x59d44a;}[_0x232df7(0x1d9)](_0x2b5e57,_0x256dd5){const _0x281ee4=_0x232df7;var _0x4d6644;let _0x26b29c=(_0x4d6644=this[_0x281ee4(0x2d4)][_0x281ee4(0x2e7)](_0x2b5e57))==null?void 0x0:_0x4d6644[_0x281ee4(0x339)](_0x256dd5);return(_0x26b29c==null?void 0x0:_0x26b29c['getZoomRatio']())??0x1;}[_0x232df7(0x2ac)](_0x149a10,_0x23c93a,_0x1b26a8){const _0x380635=_0x232df7;this[_0x380635(0x2db)](_0x169987(_0x149a10[_0x380635(0x197)][_0x380635(0x2e4)]((_0x31ba73,_0x42d2d3)=>{const _0x32f459=_0x380635;var _0x21b0a1,_0x47baa0,_0x39860e,_0xac7d09;let _0x5d5b74=_0x149a10[_0x32f459(0xe5)]();this[_0x32f459(0x192)]=this['_getShapeAdjustInfosById'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74[_0x32f459(0x26c)],_0x5d5b74[_0x32f459(0x36c)],_0x1b26a8),this[_0x32f459(0x1d8)]=this[_0x32f459(0x3aa)]['getShapeModel'](_0x5d5b74[_0x32f459(0x1e3)],_0x5d5b74['subUnitId'],_0x5d5b74[_0x32f459(0x36c)]);let _0x43b04c=this[_0x32f459(0x11c)][_0x32f459(0x282)]({'unitId':this[_0x32f459(0x102)],'subUnitId':this[_0x32f459(0x161)],'drawingId':this[_0x32f459(0x362)]}),{transform:_0x29196c}=_0x43b04c;if(_0x29196c){let {left:_0x3d9d0c,top:_0x1e0ca9,width:_0x11be6f,height:_0x32349d}=_0x29196c;this[_0x32f459(0x112)]=_0x3d9d0c||0x0,this[_0x32f459(0x288)]=_0x1e0ca9||0x0,this[_0x32f459(0x155)]=_0x11be6f||0x0,this[_0x32f459(0x1f6)]=_0x32349d||0x0;}let _0x93b115=!!((_0x21b0a1=_0x43b04c['transform'])!=null&&_0x21b0a1[_0x32f459(0x270)]),_0x4661b6=!!((_0x47baa0=_0x43b04c[_0x32f459(0x15f)])!=null&&_0x47baa0[_0x32f459(0x25e)]),_0x56d768=((_0x39860e=_0x43b04c['transform'])==null?void 0x0:_0x39860e['angle'])||0x0;this[_0x32f459(0x173)]=!0x0,_0x23c93a[_0x32f459(0x3a2)]();let _0x2e5f87={...((_0xac7d09=this[_0x32f459(0x192)])==null?void 0x0:_0xac7d09['currentAdjustValues'])??{}};this['_adjHandlerPointerMove']=_0x23c93a['onPointerMove$'][_0x32f459(0x2e4)]((_0x119fd5,_0x4af716)=>{const _0xf5183b=_0x32f459;if(!this[_0xf5183b(0x173)])return;let {offsetX:_0x1342a6,offsetY:_0x2d949e}=_0x119fd5,_0x3885a6=this['_activeAdjustInfo'];if(this[_0xf5183b(0x1d8)]&&_0x3885a6){_0x23c93a[_0xf5183b(0x3a2)](),_0x23c93a[_0xf5183b(0x331)](_0x1d110f[_0xf5183b(0x1a7)]);let _0x2524e8={'left':0x0,'top':0x0,'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]},_0x35efbe=this[_0xf5183b(0x1c6)](this[_0xf5183b(0x102)],this['_subUnitId']),_0x52cc17=this[_0xf5183b(0x1d9)](this['_unitId'],this[_0xf5183b(0x161)]),_0x25d8fc=_0x1342a6/_0x52cc17+_0x35efbe['x']-this[_0xf5183b(0x112)],_0x55e7b9=_0x2d949e/_0x52cc17+_0x35efbe['y']-this[_0xf5183b(0x288)];if(_0x56d768!==0x0){let _0x2d52b8=this[_0xf5183b(0x155)]/0x2,_0x24c7e6=this[_0xf5183b(0x1f6)]/0x2,_0x4a43c0=_0x56d768*Math['PI']/0xb4,_0x47033f=Math[_0xf5183b(0x2cd)](_0x4a43c0),_0x4679a4=Math[_0xf5183b(0x159)](_0x4a43c0),_0x2e2fa1=_0x25d8fc-_0x2d52b8,_0xb746c4=_0x55e7b9-_0x24c7e6;_0x25d8fc=_0x2d52b8+(_0x2e2fa1*_0x47033f+_0xb746c4*_0x4679a4),_0x55e7b9=_0x24c7e6+(-_0x2e2fa1*_0x4679a4+_0xb746c4*_0x47033f);}_0x93b115&&(_0x25d8fc=this[_0xf5183b(0x155)]-_0x25d8fc),_0x4661b6&&(_0x55e7b9=this['_baseShapeHeight']-_0x55e7b9);let _0x434b2e={'x':_0x25d8fc,'y':_0x55e7b9},_0x5d6c39=this[_0xf5183b(0x1d8)]['calcAdjValues'](_0x2524e8,_0x434b2e,_0x3885a6,_0x93b115,_0x4661b6);if(Object[_0xf5183b(0x1be)](_0x5d6c39)[_0xf5183b(0x333)]===0x0)return;for(let [_0x7d9e0d,_0x2d09a9]of Object[_0xf5183b(0x17e)](_0x5d6c39))this['_activeShapeModel'][_0xf5183b(0x359)](_0x7d9e0d,_0x2d09a9);this[_0xf5183b(0x1d8)][_0xf5183b(0x2bd)]({'width':this['_baseShapeWidth'],'height':this[_0xf5183b(0x1f6)]});let _0x1a3043=this[_0xf5183b(0x11c)]['getDrawingByParam']({'unitId':_0x5d5b74['unitId'],'subUnitId':_0x5d5b74[_0xf5183b(0x26c)],'drawingId':_0x5d5b74[_0xf5183b(0x36c)]});_0x1a3043&&(this[_0xf5183b(0x199)]['renderDrawingShape'](_0x1a3043,_0x23c93a),this[_0xf5183b(0x23c)]=this[_0xf5183b(0x393)](_0x5d5b74[_0xf5183b(0x1e3)],_0x5d5b74[_0xf5183b(0x26c)],_0x5d5b74[_0xf5183b(0x36c)]),this['_updateAdjustControlPositions']());}_0x4af716['stopPropagation']();}),this[_0x32f459(0x290)]=_0x23c93a[_0x32f459(0x2c7)][_0x32f459(0x2e4)]((_0xf61764,_0x242d2e)=>{const _0x3ede22=_0x32f459;this[_0x3ede22(0x30b)][_0x3ede22(0x1d2)](),this[_0x3ede22(0x290)][_0x3ede22(0x1d2)](),_0x23c93a[_0x3ede22(0x2fe)]();let _0x5e44ba=this[_0x3ede22(0x192)];if(_0x5e44ba){let _0x5a0978=_0x5d5b74[_0x3ede22(0x1e3)],_0x520c2a=_0x5d5b74['subUnitId'],_0x3f598f=_0x5d5b74['drawingId'],_0x2bd578={};for(let _0x4cbb5d of Object[_0x3ede22(0x1be)](_0x5e44ba[_0x3ede22(0x166)])){var _0x3757df;let _0x6861b8=(_0x3757df=this[_0x3ede22(0x1d8)])==null?void 0x0:_0x3757df['getAdjustValueByName'](_0x4cbb5d);_0x6861b8!==void 0x0&&(_0x2bd578[_0x4cbb5d]=_0x6861b8);}Object[_0x3ede22(0x1be)](_0x2bd578)[_0x3ede22(0x333)]>0x0&&Dr(this[_0x3ede22(0x232)],_0x5a0978,_0x520c2a,_0x3f598f,{'oldShapeData':{'adjustValues':_0x2e5f87}},{'adjustValues':_0x2bd578});}this[_0x3ede22(0x192)]=void 0x0,this[_0x3ede22(0x1d8)]=void 0x0,this[_0x3ede22(0x173)]=!0x1,_0x242d2e[_0x3ede22(0x345)](),_0x23c93a['enableObjectsEvent']();}),_0x42d2d3['stopPropagation']();})));}['_registerDrawingMoveHandler'](){const _0x135cf2=_0x232df7;let _0x4f5a40=this[_0x135cf2(0x2d4)]['getCurrentTypeOfUnit$'](_0xe0c4a6[_0x135cf2(0x277)]);this[_0x135cf2(0x2db)](_0x4f5a40['pipe'](_0x4faa1d(_0x534568=>_0x534568?_0x534568[_0x135cf2(0xe1)][_0x135cf2(0x16f)](_0x4faa1d(_0x916f5=>{const _0x23b2b6=_0x135cf2;if(!_0x916f5)return _0x5f31a2;let _0x279bc1=_0x534568[_0x23b2b6(0x3a3)](),_0x9f933a=this[_0x23b2b6(0x209)][_0x23b2b6(0x124)](_0x279bc1),_0x36f675=_0x9f933a==null?void 0x0:_0x9f933a[_0x23b2b6(0x381)];return _0x36f675?_0x24a70f(_0x36f675):_0x5f31a2;})):_0x5f31a2))[_0x135cf2(0x268)](_0xc2eeaf=>{const _0x2648f8=_0x135cf2;let _0x149120=_0xc2eeaf[_0x2648f8(0x372)]();this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c6)]['subscribeEvent'](()=>{const _0x4414e9=_0x2648f8;this[_0x4414e9(0x314)];})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x22f)][_0x2648f8(0x268)](_0x2a3b01=>{const _0x363bf5=_0x2648f8;let {objects:_0x2ddc6c}=_0x2a3b01;this[_0x363bf5(0x190)](),_0x2ddc6c!==null&&_0x2ddc6c[_0x363bf5(0x292)]===0x1&&_0x2ddc6c[_0x363bf5(0x212)]()['next']()[_0x363bf5(0x30f)]instanceof J&&this['setShouldShowAdjust'](!0x0);})),this['disposeWithMe'](_0x149120[_0x2648f8(0x2fd)][_0x2648f8(0x268)](()=>{const _0x59b219=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&this[_0x59b219(0x163)]();})),this[_0x2648f8(0x2db)](_0xc2eeaf[_0x2648f8(0x2c7)][_0x2648f8(0x2e4)](()=>{const _0x78dea0=_0x2648f8;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x78dea0(0x1d7)](!0x1),this['_createShapeAdjustControls']());})),this[_0x2648f8(0x2db)](_0x149120[_0x2648f8(0x334)][_0x2648f8(0x268)](()=>{const _0x5bbe16=_0x2648f8;this[_0x5bbe16(0x102)]&&this['_subUnitId']&&this[_0x5bbe16(0x362)]&&this[_0x5bbe16(0x11c)]['getDrawingByParam']({'unitId':this['_unitId'],'subUnitId':this[_0x5bbe16(0x161)],'drawingId':this[_0x5bbe16(0x362)]})&&(this['_activeShapeAdjustPointList']=this[_0x5bbe16(0x393)](this[_0x5bbe16(0x102)],this[_0x5bbe16(0x161)],this[_0x5bbe16(0x362)]),this[_0x5bbe16(0xea)]());}));}));}[_0x232df7(0x1f0)](){const _0x1b09f1=_0x232df7;this['disposeWithMe'](this[_0x1b09f1(0x232)]['onCommandExecuted'](_0x24e4c5=>{const _0x39ba2b=_0x1b09f1;if(_0x24e4c5['id']!==_0x4af43a['id'])return;let {unitId:_0x451749,subUnitId:_0x5a38c5,shapeId:_0x8acede}=_0x24e4c5[_0x39ba2b(0x1aa)];_0x451749===this['_unitId']&&_0x5a38c5===this[_0x39ba2b(0x161)]&&_0x8acede===this[_0x39ba2b(0x362)]&&this[_0x39ba2b(0x1cb)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x19a)][_0x1b09f1(0x268)](_0x817b44=>{const _0x596674=_0x1b09f1;if(_0x817b44['length']===0x1){let _0x3725fb=_0x817b44[0x0];if(_0x3725fb[_0x596674(0x183)]===_0x190419[_0x596674(0x21d)]&&this[_0x596674(0x2d4)][_0x596674(0xef)](_0x3725fb[_0x596674(0x1e3)])===_0xe0c4a6[_0x596674(0x277)]){this[_0x596674(0x362)]=_0x3725fb['drawingId'];let {unitId:_0x47f8bb,subUnitId:_0x3a4ced}=_0x3725fb;this[_0x596674(0x23c)]=this['_getShapeAdjustPointListById'](_0x47f8bb,_0x3a4ced,this[_0x596674(0x362)]),this[_0x596674(0x102)]=_0x47f8bb,this['_subUnitId']=_0x3a4ced,this[_0x596674(0x163)](),this[_0x596674(0x190)]();return;}}this[_0x596674(0x362)]=null,this[_0x596674(0x23c)]=void 0x0,this[_0x596674(0x102)]=null,this[_0x596674(0x161)]=null,this[_0x596674(0x163)]();})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x274)][_0x1b09f1(0x268)](_0x52f084=>{const _0x3d8733=_0x1b09f1;if(_0x52f084['length']===0x1){var _0x3ca95c;let _0x2256bd=_0x52f084[0x0];((_0x3ca95c=this[_0x3d8733(0x11c)]['getDrawingByParam'](_0x2256bd))==null?void 0x0:_0x3ca95c[_0x3d8733(0x183)])===_0x190419[_0x3d8733(0x21d)]&&this[_0x3d8733(0x285)](!0x0);}})),this[_0x1b09f1(0x2db)](this[_0x1b09f1(0x11c)][_0x1b09f1(0x36d)][_0x1b09f1(0x268)](_0x53365e=>{const _0x55ff33=_0x1b09f1;for(let _0x2c8469 of _0x53365e)this['_activeShapeId']===_0x2c8469['drawingId']&&(this[_0x55ff33(0x362)]=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x55ff33(0x102)]=null,this[_0x55ff33(0x161)]=null,this[_0x55ff33(0x163)]());}));}};Pr=X([Y(0x0,_0x3deb35),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x229e82(Z)),Y(0x4,_0x304294),Y(0x5,_0x1b156e)],Pr);const Fr={'id':'drawing.operation.set-drawing-active','type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x11a35d,_0x571396)=>{const _0x5ebff2=_0x232df7;let _0x2cf874=_0x11a35d['get'](_0x3deb35),_0xc1988=_0x11a35d[_0x5ebff2(0x14a)](_0x422c1e),_0x4946b6=_0x11a35d[_0x5ebff2(0x14a)](Pr);if(_0x571396==null)return!0x0;if(_0x571396[_0x5ebff2(0x333)]>0x0){var _0x31ffde;let _0x1c73b2=(_0x31ffde=_0xc1988[_0x5ebff2(0x124)](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null?void 0x0:_0x31ffde[_0x5ebff2(0x381)];if(_0x1c73b2){let {unitId:_0x32f9a7,subUnitId:_0x59f826,drawingId:_0x237402}=_0x571396[0x0],_0xe3816f=_0x3023e5({'unitId':_0x32f9a7,'subUnitId':_0x59f826,'drawingId':_0x237402},void 0x0),_0x350e6d=_0x1c73b2[_0x5ebff2(0x3a9)](_0xe3816f);if(_0x350e6d){var _0x4c20c9;(_0x4c20c9=_0xc1988['getRenderUnitById'](_0x571396[0x0][_0x5ebff2(0x1e3)]))==null||(_0x4c20c9=_0x4c20c9['scene'][_0x5ebff2(0x122)]())==null||_0x4c20c9[_0x5ebff2(0x2e0)](_0x350e6d);}}_0x2cf874['focusDrawing'](_0x571396),_0x4946b6[_0x5ebff2(0x1d7)](!0x1);}return!0x0;}},Ir={'type':_0x33172f[_0x232df7(0xfe)],'id':_0x232df7(0x1bf),'handler':async(_0x1516e3,_0x45d3e2)=>{const _0x2dbde1=_0x232df7;let _0x251d9a=_0x2dc1b6(_0x1516e3[_0x2dbde1(0x14a)](_0x304294));if(!_0x251d9a)return!0x1;let _0x226d0f=_0x1516e3['get'](_0x22a39b)['getCurrentLastSelection']();if(!_0x226d0f)return!0x1;let _0xf28bd=_0x1516e3[_0x2dbde1(0x14a)](_0x1b156e),{unitId:_0x43e99d,subUnitId:_0x398653}=_0x251d9a,{value:_0x13e8bd,enhanceParams:_0x19a822}=_0x45d3e2,{range:_0x531388}=_0x226d0f,_0x2312f9={'unitId':_0x43e99d,'subUnitId':_0x398653,'shapeType':_0x13e8bd,'range':_0x531388,'shapeId':_0x3a0ce3()};if(_0x19a822){let _0x2ec111=_0x52f76f(_0x13e8bd),_0x4b6b7b=_0x13e8bd===_0xe73d9c[_0x2dbde1(0x200)];_0x2ec111&&(_0x19a822[_0x2dbde1(0xed)]||_0x19a822['endArrow'])&&(_0x2312f9[_0x2dbde1(0x1b6)]={'ln':{'startArrow':_0x19a822[_0x2dbde1(0xed)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15[_0x2dbde1(0x1bc)]}:void 0x0,'endArrow':_0x19a822[_0x2dbde1(0x305)]?{'type':_0x152eab[_0x2dbde1(0x246)],'size':_0x1dac15['Large']}:void 0x0}}),_0x4b6b7b&&(_0x19a822[_0x2dbde1(0x143)]||_0x19a822['vertical'])&&(_0x2312f9[_0x2dbde1(0x1b6)]=_0x25f18f({'fill':{'fillType':_0x44f004[_0x2dbde1(0x276)],'color':_0x2dbde1(0x1f1)},'isHorizontal':!!_0x19a822['horizontal'],'stroke':{'lineStrokeType':_0x5053e4[_0x2dbde1(0x1e7)],'width':0x1,'color':_0x2dbde1(0x1f8)}}));}let _0x432df1=_0xf28bd['syncExecuteCommand'](_0x143510['id'],_0x2312f9);return setTimeout(()=>{const _0x3628ec=_0x2dbde1;_0xf28bd[_0x3628ec(0x286)](Fr['id'],[{'unitId':_0x43e99d,'subUnitId':_0x398653,'drawingId':_0x2312f9[_0x3628ec(0x275)]}]);},0xc8),_0x432df1;}},Lr=_0x232df7(0x1c8),Rr='sheet.shape.object-list.panel',zr=_0x232df7(0x377),Br=_0x232df7(0x2a6),Vr=_0x20e235(_0x232df7(0x31e)),Hr=_0x232df7(0x301),Ur={'id':_0x232df7(0x1de),'type':_0x33172f[_0x232df7(0xfe)],'handler':(_0x320947,_0x2d147f)=>{const _0x13b99e=_0x232df7;let _0x5b2874=_0x320947['get'](_0x5c788d),_0xf8545d=_0x320947[_0x13b99e(0x14a)](_0x16b0b7),_0x27a566=_0x320947[_0x13b99e(0x14a)](_0x304294),_0xfe39f5=_0x320947[_0x13b99e(0x14a)](_0x1b156e);return _0x2dc1b6(_0x27a566)?(_0x2d147f==null?void 0x0:_0x2d147f[_0x13b99e(0x30f)])===_0x13b99e(0x384)?(_0x5b2874[_0x13b99e(0x384)](Rr),!0x0):(_0x5b2874[_0x13b99e(0x22b)]({'id':Rr,'header':{'title':_0xf8545d['t'](_0x13b99e(0x1fe))},'children':{'label':Rr},'onClose':()=>{const _0x20e022=_0x13b99e;_0xfe39f5[_0x20e022(0x325)](_0x2b2ab1['id'],[]);},'width':0x168}),!0x0):!0x1;}},Wr={'type':_0x33172f['OPERATION'],'id':_0x232df7(0x367),'handler'(){return!0x0;}};function Gr(_0x3fe6ef){const _0x278738=_0x232df7;let _0x4e712a=_0x3fe6ef[_0x278738(0x14a)](_0x3deb35)[_0x278738(0x310)](),_0xf4f629=_0x4e712a[_0x278738(0x333)]===0x1?_0x4e712a[0x0]:null;if(!_0xf4f629||_0xf4f629[_0x278738(0x183)]!==_0x190419[_0x278738(0x21d)])return null;let _0x5721e6=_0x3fe6ef['get'](_0x5c2303),_0x5e7811=_0x5721e6[_0x278738(0x280)](_0xf4f629[_0x278738(0x1e3)],_0xf4f629[_0x278738(0x26c)],_0xf4f629['drawingId']),_0xe56d2b=_0x5721e6['getShapeDataById'](_0xf4f629[_0x278738(0x1e3)],_0xf4f629['subUnitId'],_0xf4f629[_0x278738(0x36c)]);return _0x5e7811===void 0x0||!_0xe56d2b?null:{'drawing':_0xf4f629,'shapeData':_0xe56d2b,'shapeType':_0x5e7811};}const Kr={'id':_0x232df7(0x261),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x3f0c12,_0xf5892a)=>{const _0x3d413a=_0x232df7;let _0x481af0=Gr(_0x3f0c12),_0x2152f9=_0xff4b3b((_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x149)])??(_0xf5892a==null?void 0x0:_0xf5892a[_0x3d413a(0x30f)])??'');if(!_0x481af0||!_0x2152f9||_0x2152f9['type']!==_0x11da62(_0x481af0[_0x3d413a(0x1b6)]))return!0x1;let _0x55640=_0x413e75(_0x481af0['shapeData'],_0x2152f9);if(!_0x55640)return!0x1;let {drawing:_0x5641cb}=_0x481af0;return _0x3f0c12[_0x3d413a(0x14a)](_0x1b156e)['executeCommand'](K['id'],{'unitId':_0x5641cb[_0x3d413a(0x1e3)],'subUnitId':_0x5641cb[_0x3d413a(0x26c)],'shapeId':_0x5641cb[_0x3d413a(0x36c)],'shapeData':_0x55640,'oldShapeJSON':{'oldShapeData':_0x481af0[_0x3d413a(0x1b6)]}});}},qr={'id':_0x232df7(0x304),'type':_0x33172f[_0x232df7(0x2ab)],'handler':(_0x223fff,_0x373a0e)=>{const _0x102ded=_0x232df7;let _0x3d3dd9=Gr(_0x223fff),_0x491781=(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x15b)])??(_0x373a0e==null?void 0x0:_0x373a0e[_0x102ded(0x30f)]);if(!_0x3d3dd9||!_0x491781||_0x52f76f(_0x3d3dd9[_0x102ded(0x15b)])||_0x52f76f(_0x491781))return!0x1;let _0x4ae69a=_0x294ee8(_0x3d3dd9[_0x102ded(0x1b6)],_0x491781);if(!_0x4ae69a)return!0x1;let {drawing:_0x53e4f6}=_0x3d3dd9;return _0x223fff[_0x102ded(0x14a)](_0x1b156e)[_0x102ded(0x286)](K['id'],{'unitId':_0x53e4f6[_0x102ded(0x1e3)],'subUnitId':_0x53e4f6[_0x102ded(0x26c)],'shapeId':_0x53e4f6[_0x102ded(0x36c)],'shapeType':_0x491781,'shapeData':_0x4ae69a,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3d3dd9[_0x102ded(0x15b)],'oldShapeData':_0x3d3dd9[_0x102ded(0x1b6)]}});}};let Q=class extends _0x2bb0e8{constructor(_0x51b5d5,_0x505cf4){const _0x177d10=_0x232df7;super(),this[_0x177d10(0x11f)]=_0x51b5d5,this[_0x177d10(0x11c)]=_0x505cf4,this[_0x177d10(0x2aa)](),this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x0),this[_0x177d10(0x2db)]({'dispose':()=>this[_0x177d10(0x11f)][_0x177d10(0x1ff)](!0x1)});}[_0x232df7(0x2aa)](){const _0x48b3ad=_0x232df7;let _0x1c7bb2=this['_clipService'],_0x23d64d=new Map(),_0x9f443a=_0x1c7bb2[_0x48b3ad(0x185)]((_0x49c94d,_0x2b9e80,_0x9a5d42,_0x8e2228,_0x54b4a3)=>{const _0x10a6da=_0x48b3ad;let _0x5f3d12=_0x2b9e80;if(_0x5f3d12===_0xe73d9c[_0x10a6da(0x374)]||_0x2b9e80===_0x10a6da(0x27e))return!0x1;try{let _0x552634=_0x23d64d['get'](_0x2b9e80);return _0x552634||(_0x552634=new _0x243526(_0x5f3d12,_0x10a6da(0x111)+_0x2b9e80),_0x23d64d['set'](_0x2b9e80,_0x552634)),_0x552634[_0x10a6da(0x28d)](),_0x54b4a3&&Object[_0x10a6da(0x1be)](_0x54b4a3)[_0x10a6da(0x333)]>0x0&&_0x552634['setShapeData']({'adjustValues':_0x54b4a3},!0x0),_0x552634['updateContext']({'width':_0x9a5d42,'height':_0x8e2228}),_0x552634['buildClipPath'](_0x49c94d,{'left':0x0,'top':0x0,'width':_0x9a5d42,'height':_0x8e2228});}catch{return!0x1;}});this['disposeWithMe'](_0x9f443a),this[_0x48b3ad(0x2db)]({'dispose':()=>_0x23d64d[_0x48b3ad(0x2b3)]()});}[_0x232df7(0x1ca)](_0x476b77,_0x5dee86,_0x995d17,_0x5137d6,_0x1d65d6){const _0x2ac8f4=_0x232df7;let _0xba183=this['_drawingManagerService']['getDrawingData'](_0x476b77,_0x5dee86);if(!_0xba183[_0x995d17])return;let _0xd4de59={..._0xba183[_0x995d17],'prstGeom':_0x5137d6,'adjustValues':_0x1d65d6};this[_0x2ac8f4(0x11c)][_0x2ac8f4(0x373)]([_0xd4de59]);}};Q=X([Y(0x0,_0x229e82(_0x3a97fd)),Y(0x1,_0x229e82(_0x3deb35))],Q);const Jr=_0x232df7(0x118),Yr='sheet.image-clip.shape-picker.component';function Xr({onShapeClick:_0x4b2f9a,excludeGroups:_0xd663aa}){const _0x399349=_0x232df7;return _0x386576(_0x2c8a8a,{'excludeGroups':_0xd663aa,'onShapeClick':_0x4b2f9a,'scrollContainer':_0x399349(0x106)});}function Zr(){const _0x2e43a1=_0x232df7;let _0x3d6220=_0x3a3b93(_0x3deb35),_0x1f5344=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d[_0x2e43a1(0x171)]],'onShapeClick':_0x4a2cb9=>{const _0x443498=_0x2e43a1;let _0xce8c55=_0x3d6220[_0x443498(0x310)]()[_0x443498(0x12b)](_0xc566e7=>_0xc566e7['drawingType']===_0x190419[_0x443498(0x1a0)]);if(!_0xce8c55)return;let {unitId:_0x568ca9,subUnitId:_0x30fafa,drawingId:_0x2588b7}=_0xce8c55;_0x1f5344[_0x443498(0x1ca)](_0x568ca9,_0x30fafa,_0x2588b7,_0x4a2cb9[_0x443498(0xf1)]);}});}function Qr(){let _0x3b64d6=_0x3a3b93(_0x3deb35),_0x23db18=_0x3a3b93(Q);return _0x386576(_0x5bb7e1,{'buttonLabel':'sheets-shape-ui.imagePanel.crop.shape','excludeGroups':[_0x56b27d['Line']],'DropdownComponent':_0x217736,'onShapeClick':_0x194aeb=>{const _0x264072=_0x2028;let _0x473edd=_0x3b64d6[_0x264072(0x310)]()[_0x264072(0x12b)](_0x4e6d11=>_0x4e6d11[_0x264072(0x183)]===_0x190419[_0x264072(0x1a0)]);if(!_0x473edd)return;let {unitId:_0x4a71d4,subUnitId:_0x53bb76,drawingId:_0x2a8298}=_0x473edd;_0x23db18[_0x264072(0x1ca)](_0x4a71d4,_0x53bb76,_0x2a8298,_0x194aeb['type']);}});}function $r(){const _0x3a97cf=_0x232df7;let _0x2bec92=_0x3a3b93(_0x2359f7),_0x23eec5=_0x3a3b93(_0x3deb35),_0x14d37d=_0x3a3b93(_0x304294),_0x5624e0=_0x23eec5[_0x3a97cf(0x310)]()[0x0],_0x156aa1=_0x5624e0?_0x14d37d[_0x3a97cf(0xef)](_0x5624e0['unitId']):void 0x0,_0x538497=_0x156aa1===_0xe0c4a6[_0x3a97cf(0x2ed)]?_0x3a97cf(0x1e8):_0x156aa1===_0xe0c4a6[_0x3a97cf(0x277)]?Yr:void 0x0,_0x380051=_0x538497?_0x2bec92[_0x3a97cf(0x14a)](_0x538497):void 0x0;return _0x380051?_0x386576(_0x380051,{}):null;}function ei(){let _0x351425=_0x3a3b93(_0x1b156e);return _0x386576(Xr,{'onShapeClick':_0x509b3b=>{const _0x219674=_0x2028;_0x351425['executeCommand'](Ir['id'],{'value':_0x509b3b[_0x219674(0xf1)],'enhanceParams':{'endArrow':_0x509b3b[_0x219674(0x305)],'startArrow':_0x509b3b[_0x219674(0xed)],'horizontal':_0x509b3b['horizontal'],'vertical':_0x509b3b['vertical']}});}});}function ti(){return _0x386576(ei,{});}function ni(_0x258585){const _0x384a2e=_0x232df7;let _0x390652=_0x258585[_0x384a2e(0x14a)](_0x304294);return{'id':Ir['id'],'type':_0x27279c[_0x384a2e(0x135)],'selections':[{'label':{'name':Jr,'hoverable':!0x1,'selectable':!0x1,'props':{'id':Ir['id']}}}],'icon':_0x384a2e(0x369),'tooltip':_0x384a2e(0x21a),'activated$':_0x6c9f0d(_0x390652,!0x1,()=>new _0x55611e(_0x4caf7b=>{const _0x196582=_0x384a2e;_0x4caf7b[_0x196582(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x258585,_0xe0c4a6[_0x384a2e(0x277)]),'disabled$':_0x5af922(_0x258585)};}function ri(_0x350579){const _0x1dc7e0=_0x232df7;let _0x124c47=_0x350579['get'](_0x304294);return{'id':Ur['id'],'type':_0x27279c['BUTTON'],'icon':_0x1dc7e0(0x1ea),'title':_0x1dc7e0(0x2f1),'tooltip':'sheets-shape-ui.objectListPanel.open','activated$':_0x6c9f0d(_0x124c47,!0x1,()=>new _0x55611e(_0x18d999=>{const _0x3f29c5=_0x1dc7e0;_0x18d999[_0x3f29c5(0x360)](!0x1);})),'hidden$':_0x2c14fa(_0x350579,_0xe0c4a6[_0x1dc7e0(0x277)]),'disabled$':_0x5af922(_0x350579)};}const ii=_0x232df7(0x2d7),ai=_0x232df7(0xfd);function oi(_0x3d79e5){const _0x2d1187=_0x232df7;let _0x229f57=_0x3d79e5[_0x2d1187(0x14a)](_0x3deb35)['getFocusDrawings']();return _0x229f57[_0x2d1187(0x333)]===0x1&&_0x229f57[0x0][_0x2d1187(0x183)]===_0x190419[_0x2d1187(0x21d)]?_0x229f57[0x0]:null;}function si(_0x34811e){const _0x41add0=_0x232df7;let _0x3dcb0b=_0x34811e[_0x41add0(0x14a)](_0x3deb35);return _0x3dcb0b['focus$']['pipe'](_0x56d968(_0x3dcb0b['getFocusDrawings']()),_0x1e2b1f(_0x5b86de=>_0x5b86de['length']!==0x1||_0x5b86de[0x0]['drawingType']!==_0x190419['DRAWING_SHAPE']));}function ci(_0x2b172d){const _0x251453=_0x232df7;return{'id':ii,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x251453(0x2a3)],'title':_0x251453(0x16b),'tooltip':'sheets-shape-ui.flipHorizontal','icon':_0x251453(0x1ab),'hidden$':si(_0x2b172d),'params':()=>{const _0x7363a5=_0x251453;let _0x39be07=oi(_0x2b172d);return _0x39be07?{'unitId':_0x39be07[_0x7363a5(0x1e3)],'subUnitId':_0x39be07[_0x7363a5(0x26c)],'shapeId':_0x39be07[_0x7363a5(0x36c)],'flipH':!0x0}:void 0x0;}};}function li(_0x916094){const _0x16bb61=_0x232df7;return{'id':ai,'commandId':_0x1f7ef3['id'],'type':_0x27279c[_0x16bb61(0x2a3)],'title':_0x16bb61(0x291),'tooltip':_0x16bb61(0x291),'icon':_0x16bb61(0x3a0),'hidden$':si(_0x916094),'params':()=>{const _0x161368=_0x16bb61;let _0x5327ed=oi(_0x916094);return _0x5327ed?{'unitId':_0x5327ed[_0x161368(0x1e3)],'subUnitId':_0x5327ed['subUnitId'],'shapeId':_0x5327ed[_0x161368(0x36c)],'flipV':!0x0}:void 0x0;}};}const ui=_0x232df7(0x20e),di=_0x232df7(0x250),fi='sheets-shape-ui.shape-format.text-ribbon-control',pi=_0x232df7(0x195);function mi(){let _0x326a6b=_0x3a3b93(_0x1b156e),_0xd5091c=_0x3a3b93(_0x3deb35),_0x439036=_0x3a3b93(_0x5c2303),_0x1e7a92=()=>{const _0x2113d4=_0x2028;var _0x6e46d2;let _0x3fc88b=_0xd5091c[_0x2113d4(0x310)]();if(_0x3fc88b['length']!==0x1||((_0x6e46d2=_0x3fc88b[0x0])==null?void 0x0:_0x6e46d2[_0x2113d4(0x183)])!==_0x190419[_0x2113d4(0x21d)])return null;let {unitId:_0x12f157,subUnitId:_0x42c4bd,drawingId:_0x22e4be}=_0x3fc88b[0x0],_0x32faee=_0x439036[_0x2113d4(0x280)](_0x12f157,_0x42c4bd,_0x22e4be),_0x27e4d8=_0x439036[_0x2113d4(0x329)](_0x12f157,_0x42c4bd,_0x22e4be);return _0x32faee===void 0x0||!_0x27e4d8?null:{'unitId':_0x12f157,'subUnitId':_0x42c4bd,'drawingId':_0x22e4be,'shapeType':_0x32faee,'shapeData':_0x27e4d8};},_0x351d6f=_0xe01eb2(()=>new _0x55611e(_0x12003d=>{const _0x583f69=_0x2028;let _0x274521=()=>_0x12003d['next'](_0x1e7a92()),_0x5a61e8=_0xd5091c[_0x583f69(0x19a)][_0x583f69(0x268)](_0x274521),_0x153464=_0x326a6b[_0x583f69(0x224)](_0x259b86=>{_0x259b86['id']===_0x4af43a['id']&&_0x274521();});return _0x274521(),()=>{const _0x57be96=_0x583f69;_0x5a61e8[_0x57be96(0x1d2)](),_0x153464[_0x57be96(0x296)]();};}),_0x1e7a92(),!0x1,[_0x326a6b,_0xd5091c,_0x439036]);return{'selection':_0x351d6f,'updateShapeData':_0x50960d=>{const _0x35ce61=_0x2028;_0x351d6f&&Dr(_0x326a6b,_0x351d6f[_0x35ce61(0x1e3)],_0x351d6f[_0x35ce61(0x26c)],_0x351d6f[_0x35ce61(0x36c)],{'oldShapeData':_0x351d6f[_0x35ce61(0x1b6)]},_0x50960d);}};}function hi(){const _0x42ef43=_0x232df7;let {selection:_0x2bb5b7,updateShapeData:_0x148da3}=mi();return _0x2bb5b7?_0x386576(_0x54731a,{'shapeData':_0x2bb5b7['shapeData'],'shapeType':_0x2bb5b7[_0x42ef43(0x15b)],'onUpdateShapeData':_0x148da3}):null;}function gi(){const _0x4646e9=_0x232df7;let _0x4db89b=_0x3a3b93(_0x1b156e),_0x47006e=_0x3a3b93(_0x16b0b7),{selection:_0x5d1261}=mi();return _0x5d1261?_0x386576(_0x5cc351,{'type':_0x11da62(_0x5d1261[_0x4646e9(0x1b6)]),'ariaLabel':_0x47006e['t']('sheets-shape-ui.quickStyles'),'activePresetId':_0x553651(_0x5d1261['shapeData']),'onSelect':_0x54418f=>_0x4db89b['executeCommand'](Kr['id'],{'presetId':_0x54418f})}):null;}function _i(){const _0x46bd07=_0x232df7;let {selection:_0x5c182b,updateShapeData:_0x422060}=mi();return _0x5c182b?_0x386576(_0x4c605a,{'fontFamilyPopupDataComponent':'sheets-shape-format-font-family-menu','shapeData':_0x5c182b[_0x46bd07(0x1b6)],'onUpdateShapeData':_0x422060}):null;}function vi(){const _0x153d68=_0x232df7;var _0xa8a1bb;let {selection:_0x46d70a,updateShapeData:_0x18719d}=mi(),_0xcc0c4b=_0x5433fa({'hostType':_0xe0c4a6['UNIVER_SHEET'],'unitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1e3)])??'','subUnitId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x26c)])??'','shapeId':(_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x36c)])??'','shapeData':_0x46d70a==null?void 0x0:_0x46d70a[_0x153d68(0x1b6)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x153d68(0x344),'onUpdateBinding':_0x3372a2=>_0x18719d({'formulaBinding':_0x3372a2})}),_0x1b5e7c=((_0xa8a1bb=_0xcc0c4b[_0x153d68(0x1fc)])==null?void 0x0:_0xa8a1bb['flatMap'](_0x184d67=>_0x184d67[_0x153d68(0x1e0)])[_0x153d68(0x34b)](_0x1dcf26=>_0x1dcf26[_0x153d68(0x346)]!==!0x1))??[];return _0x46d70a!=null&&_0x46d70a[_0x153d68(0x1b6)][_0x153d68(0x2da)]?_0x386576(_0x13101b,{'actions':_0x1b5e7c,'panel':_0xcc0c4b[_0x153d68(0x284)]}):null;}const yi='sheets-shape-ui.ribbon.shape-format.style-control',bi=_0x232df7(0x244),xi=_0x232df7(0xec),Si='sheets-shape-ui.ribbon.shape-format.arrange-forward',Ci=_0x232df7(0x19b),wi=_0x232df7(0x2e1),Ti=_0x232df7(0x178);function Ei(_0x19cb6d){const _0x2c1a44=_0x232df7;let _0x530acb=_0x19cb6d[_0x2c1a44(0x14a)](_0x1b156e),_0x969d43=_0x19cb6d[_0x2c1a44(0x14a)](_0x3deb35),_0x111b84=_0x19cb6d[_0x2c1a44(0x14a)](_0x5c2303);return new _0x55611e(_0x19dacd=>{const _0x104ab6=_0x2c1a44;let _0x57627=()=>{const _0x505205=_0x2028;let _0x390a53=Di(_0x19cb6d),_0x2024f8=_0x390a53?_0x111b84[_0x505205(0x329)](_0x390a53[_0x505205(0x1e3)],_0x390a53[_0x505205(0x26c)],_0x390a53['drawingId']):null;_0x19dacd[_0x505205(0x360)](_0x2024f8?_0x553651(_0x2024f8)??'':'');},_0x26bb56=_0x969d43[_0x104ab6(0x19a)][_0x104ab6(0x268)](_0x57627),_0x3efaec=_0x530acb['onCommandExecuted'](_0x295a62=>{_0x295a62['id']===_0x4af43a['id']&&_0x57627();});return _0x57627(),()=>{const _0x97f913=_0x104ab6;_0x26bb56[_0x97f913(0x1d2)](),_0x3efaec[_0x97f913(0x296)]();};});}function Di(_0x3ee324){const _0x46310f=_0x232df7;var _0x1c0e37;let _0x59fb83=_0x3ee324[_0x46310f(0x14a)](_0x3deb35)[_0x46310f(0x310)]();return _0x59fb83[_0x46310f(0x333)]===0x1&&((_0x1c0e37=_0x59fb83[0x0])==null?void 0x0:_0x1c0e37[_0x46310f(0x183)])===_0x190419[_0x46310f(0x21d)]?_0x59fb83[0x0]:null;}function Oi(_0x3a7437,_0x41584=!0x1){const _0x124f6a=_0x232df7;let _0x25a525=_0x3a7437[_0x124f6a(0x14a)](_0x1b156e),_0x5415fa=_0x3a7437['get'](_0x3deb35),_0x37a2dd=_0x3a7437[_0x124f6a(0x14a)](_0x5c2303);return new _0x55611e(_0x2d4690=>{const _0x3fd46e=_0x124f6a;let _0x75c755=()=>{const _0x103ead=_0x2028;let _0x8fa5d0=Di(_0x3a7437);if(!_0x8fa5d0){_0x2d4690[_0x103ead(0x360)](!0x0);return;}let _0x16b3ff=_0x37a2dd[_0x103ead(0x329)](_0x8fa5d0[_0x103ead(0x1e3)],_0x8fa5d0[_0x103ead(0x26c)],_0x8fa5d0['drawingId']);_0x2d4690[_0x103ead(0x360)](!_0x16b3ff||_0x41584&&_0x16b3ff['formulaBinding']==null);},_0x1675f3=_0x5415fa['focus$'][_0x3fd46e(0x268)](_0x75c755),_0x3985bb=_0x25a525[_0x3fd46e(0x224)](_0x4078e2=>{_0x4078e2['id']===_0x4af43a['id']&&_0x75c755();});return _0x75c755(),()=>{const _0x2a19d1=_0x3fd46e;_0x1675f3['unsubscribe'](),_0x3985bb[_0x2a19d1(0x296)]();};});}function ki(_0x5be7ba){const _0x12c018=_0x232df7;let _0x2de8b2=_0x5be7ba[_0x12c018(0x14a)](_0x3deb35),_0x4cb51d=_0x5be7ba[_0x12c018(0x14a)](_0x5c2303);return _0x2de8b2[_0x12c018(0x19a)][_0x12c018(0x16f)](_0x56d968(_0x2de8b2[_0x12c018(0x310)]()),_0x1e2b1f(()=>{const _0x57e80d=_0x12c018;let _0xd03ba4=Di(_0x5be7ba),_0x371768=_0xd03ba4?_0x4cb51d[_0x57e80d(0x280)](_0xd03ba4[_0x57e80d(0x1e3)],_0xd03ba4[_0x57e80d(0x26c)],_0xd03ba4[_0x57e80d(0x36c)]):void 0x0;return _0x371768===void 0x0||_0x52f76f(_0x371768);}));}function Ai(_0x189ddf){const _0x224a0f=_0x232df7;return{'id':Kr['id'],'type':_0x27279c[_0x224a0f(0x135)],'icon':_0x224a0f(0x2d1),'title':_0x224a0f(0x29c),'tooltip':_0x224a0f(0x29c),'selections':[{'label':{'name':ui,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ei(_0x189ddf),'hidden$':Oi(_0x189ddf)};}function ji(_0x4ca055){const _0x14dc1c=_0x232df7;return{'id':qr['id'],'type':_0x27279c[_0x14dc1c(0x135)],'icon':'ShapeIcon','title':_0x14dc1c(0x33b),'tooltip':'shape-editor-ui.toolbar.changeShape','slot':!0x0,'selections':[{'label':{'name':_0x1b9682,'hoverable':!0x1,'selectable':!0x1}}],'hidden$':ki(_0x4ca055)};}function Mi(_0x45792f,_0x11b61f,_0x3bc551=!0x1){const _0x4cca22=_0x232df7;return _0x2d7133=>({'id':_0x45792f,'type':_0x27279c[_0x4cca22(0x2a3)],'label':{'name':_0x11b61f,'hoverable':!0x1,'selectable':!0x1},'hidden$':Oi(_0x2d7133,_0x3bc551)});}function _0x2028(_0x369708,_0x23b888){_0x369708=_0x369708-0xdf;const _0x1606af=_0x1606();let _0x2028a5=_0x1606af[_0x369708];return _0x2028a5;}const Ni=Mi(yi,di),Pi=Mi(bi,fi),Fi=Mi(xi,pi,!0x0);function Ii(_0x32a6c2,_0x25b0a8,_0x2e38bf,_0x3693eb){const _0x375b37=_0x232df7;return _0xc85c8=>({'id':_0x32a6c2,'commandId':_0x535c91['id'],'type':_0x27279c[_0x375b37(0x2a3)],'icon':_0x2e38bf,'title':_0x3693eb,'tooltip':_0x3693eb,'hidden$':Oi(_0xc85c8),'params':()=>{const _0x433d4c=_0x375b37;let _0x377b9e=Di(_0xc85c8);return _0x377b9e?{'unitId':_0x377b9e[_0x433d4c(0x1e3)],'subUnitId':_0x377b9e[_0x433d4c(0x26c)],'drawingIds':[_0x377b9e[_0x433d4c(0x36c)]],'arrangeType':_0x25b0a8}:void 0x0;}});}const Li=Ii(Si,_0x32c897[_0x232df7(0x239)],_0x232df7(0x13b),_0x232df7(0x108)),Ri=Ii(Ci,_0x32c897[_0x232df7(0x1bd)],_0x232df7(0x1d5),_0x232df7(0x28c)),zi=Ii(wi,_0x32c897[_0x232df7(0x20b)],_0x232df7(0x2de),'shape-editor-ui.arrange.front'),Bi=Ii(Ti,_0x32c897[_0x232df7(0x273)],'BottomIcon',_0x232df7(0x193));function Vi(_0x4a6104){const _0x4d976=_0x232df7;return{'id':Wr['id'],'type':_0x27279c[_0x4d976(0x2a3)],'icon':_0x4d976(0x120),'title':_0x4d976(0x1b0),'tooltip':'sheets-shape-ui.formatShape','hidden$':Oi(_0x4a6104),'params':()=>{const _0x497fca=_0x4d976;let _0x2cde72=Di(_0x4a6104);return _0x2cde72?{'unitId':_0x2cde72[_0x497fca(0x1e3)],'subUnitId':_0x2cde72[_0x497fca(0x26c)],'drawingId':_0x2cde72[_0x497fca(0x36c)]}:void 0x0;}};}const Hi={[_0x541bd0['RIBBON']]:{[Br]:{'order':0x64,'title':_0x232df7(0x1b0),'contextual':!0x0,'sheets-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[Kr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Ai},[qr['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ji}},'sheets-shape-ui.ribbon.shape-format.style':{'order':0x1,[yi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ni}},'sheets-shape-ui.ribbon.shape-format.text':{'order':0x2,[bi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':Pi}},'sheets-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[ii]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1},'menuItemFactory':ci},[ai]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':li},[Si]:{'order':0x2,'gridLayout':{'row':0x1,'column':0x2},'menuItemFactory':Li},[Ci]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':Ri},[wi]:{'order':0x4,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':zi},[Ti]:{'order':0x5,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':Bi}},'sheets-shape-ui.ribbon.shape-format.formula':{'order':0x4,[xi]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Fi}},'sheets-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[Wr['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Vi},[_0x1f2f61['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':_0x1bd401}}}}},Ui={[_0x3a3389[_0x232df7(0x26e)]]:{[Ir['id']]:{'order':0x3,'menuItemFactory':ni}}},Wi={...Ui,[_0x3a3389['OTHERS']]:{[Ur['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':ri}},[_0x29b253['DRAWING']]:{[_0x1f1f30[_0x232df7(0x34c)]]:{[ii]:{'order':0x4,'menuItemFactory':ci},[ai]:{'order':0x5,'menuItemFactory':li}}}};var Gi='@univerjs-pro/sheets-shape-ui',Ki=_0x232df7(0x1df);const qi={'id':_0x232df7(0x10d),'type':_0x33172f[_0x232df7(0x2ab)],'handler'(_0x55c102,_0x305462){const _0x348a1c=_0x232df7;return _0x305462?(_0x55c102[_0x348a1c(0x14a)](_0x8e92cf)[_0x348a1c(0x22b)](_0x305462[_0x348a1c(0x1b8)],{'hostType':_0xe0c4a6[_0x348a1c(0x277)],'shapeId':_0x305462[_0x348a1c(0x36c)],'subUnitId':_0x305462['subUnitId'],'unitId':_0x305462['unitId']}),!0x0):!0x1;}},Ji=_0x232df7(0x17c),Yi={};let Xi=class extends _0x2bb0e8{constructor(_0x440a3b,_0x1e3539,_0x39e2a3,_0x4194ed,_0x12eb69){const _0x228c0c=_0x232df7;super(),this['_context']=_0x440a3b,this['_drawingManagerService']=_0x1e3539,this[_0x228c0c(0x209)]=_0x39e2a3,this[_0x228c0c(0x2d4)]=_0x4194ed,this[_0x228c0c(0x1ec)]=_0x12eb69,q(this,_0x228c0c(0x1b2),null),q(this,_0x228c0c(0x102),null),q(this,_0x228c0c(0x161),null),q(this,_0x228c0c(0x2ad),void 0x0),q(this,_0x228c0c(0x2b1),[]),q(this,_0x228c0c(0x144),0x0),q(this,_0x228c0c(0x222),0x0),q(this,_0x228c0c(0x343),0x0),q(this,_0x228c0c(0x336),0x0),q(this,_0x228c0c(0x173),!0x1),q(this,_0x228c0c(0x192),void 0x0),q(this,'_activeShapeModel',void 0x0),q(this,_0x228c0c(0x30b),void 0x0),q(this,_0x228c0c(0x290),void 0x0),q(this,_0x228c0c(0x25d),!0x1),this['_registerFocusChangeHandler'](),this['_registerMoveHandler']();}[_0x232df7(0x23a)](){const _0x2647b2=_0x232df7;this[_0x2647b2(0x352)]();}['refreshAdjustControls'](){const _0x20f832=_0x232df7;this[_0x20f832(0x352)](),this['_createControls'](!0x0);}[_0x232df7(0x2bc)](_0x2eb29c,_0x295c70,_0x2ba968,_0x305033){const _0x1b5986=_0x232df7;let _0x157283=_0x2eb29c;if(_0x157283!==_0xe73d9c[_0x1b5986(0x374)]&&_0x2eb29c!==_0x1b5986(0x27e))try{let _0x2ed691=new _0x243526(_0x157283,_0x1b5986(0xe7)+_0x2eb29c);return _0x305033&&_0x2ed691[_0x1b5986(0x2f8)]({'adjustValues':_0x305033},!0x0),_0x2ed691[_0x1b5986(0x2bd)]({'width':_0x295c70,'height':_0x2ba968}),_0x2ed691;}catch{return;}}[_0x232df7(0x133)](_0x36f0e9,_0x10abd1,_0x5670b4){const _0x5288ad=_0x232df7;let _0x1113a6={'unitId':_0x36f0e9,'subUnitId':_0x10abd1,'drawingId':_0x5670b4},_0x255ace=this[_0x5288ad(0x11c)]['getDrawingByParam'](_0x1113a6);if(_0x255ace&&_0x255ace[_0x5288ad(0x183)]===_0x190419[_0x5288ad(0x1a0)])return _0x255ace;}[_0x232df7(0x1ae)](_0x5708a4,_0x4c5e81,_0x34de4a){const _0x2366e2=_0x232df7;let _0x9a28af=this[_0x2366e2(0x209)][_0x2366e2(0x124)](_0x5708a4);if(!_0x9a28af)return;let {scene:_0x23ab3f}=_0x9a28af,_0x4dd364=_0x3023e5({'unitId':_0x5708a4,'subUnitId':_0x4c5e81,'drawingId':_0x34de4a}),_0x5c6b64=_0x23ab3f[_0x2366e2(0x17a)](_0x4dd364);if(_0x5c6b64 instanceof _0x2cc9fc){let _0x1b26f7=_0x5c6b64[_0x2366e2(0x320)];if(_0x1b26f7)return{'prstGeom':_0x1b26f7,'adjustValues':_0x5c6b64['prstGeomAdjValues']};}}[_0x232df7(0x22d)](_0x217ad3=!0x1){const _0x21bf5a=_0x232df7;if(!this[_0x21bf5a(0x102)]||!this[_0x21bf5a(0x161)]||!this[_0x21bf5a(0x1b2)])return;let _0x243c9a=this[_0x21bf5a(0x209)][_0x21bf5a(0x124)](this[_0x21bf5a(0x102)]);if(!_0x243c9a||!_0x243c9a[_0x21bf5a(0x18c)](_0x54a66d)[_0x21bf5a(0x2ee)]())return;let {scene:_0x2feed0}=_0x243c9a,_0x43a15c=this[_0x21bf5a(0x133)](this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0x43a15c)return;let {transform:_0x498e12}=_0x43a15c;if(!_0x498e12)return;let {left:_0x1bc35d,top:_0x296631,width:_0x3231dd,height:_0x1ba528,flipX:_0x289144,flipY:_0x565da2,angle:_0x37b980=0x0}=_0x498e12;if(_0x1bc35d===void 0x0||_0x296631===void 0x0)return;let _0xb2008b=this[_0x21bf5a(0x1ae)](this['_unitId'],this[_0x21bf5a(0x161)],this[_0x21bf5a(0x1b2)]);if(!_0xb2008b)return;if(_0x217ad3){let _0x28871e=this[_0x21bf5a(0x2bc)](_0xb2008b[_0x21bf5a(0x320)],_0x3231dd||0x0,_0x1ba528||0x0,_0xb2008b[_0x21bf5a(0x29d)]);if(!_0x28871e)return;this[_0x21bf5a(0x2ad)]=_0x28871e[_0x21bf5a(0x158)]();}let _0x1b5672=this['_activeAdjustPointList'];if(_0x1b5672&&_0x1b5672[_0x21bf5a(0x333)]!==0x0)for(let _0x133e50=0x0;_0x133e50<_0x1b5672[_0x21bf5a(0x333)];_0x133e50++){let _0x57f254=_0x1b5672[_0x133e50],_0x26c9fe=_0x57f254['x'],_0x18949b=_0x57f254['y'];if(_0x289144&&(_0x26c9fe=(_0x3231dd||0x0)-_0x26c9fe),_0x565da2&&(_0x18949b=(_0x1ba528||0x0)-_0x18949b),_0x37b980!==0x0){let _0x45f708=(_0x3231dd||0x0)/0x2,_0x51b110=(_0x1ba528||0x0)/0x2,_0x3c28bd=_0x37b980*Math['PI']/0xb4,_0x12ed66=Math[_0x21bf5a(0x2cd)](_0x3c28bd),_0x26b657=Math[_0x21bf5a(0x159)](_0x3c28bd),_0x59a259=_0x26c9fe-_0x45f708,_0x37a19a=_0x18949b-_0x51b110;_0x26c9fe=_0x45f708+(_0x59a259*_0x12ed66-_0x37a19a*_0x26b657),_0x18949b=_0x51b110+(_0x59a259*_0x26b657+_0x37a19a*_0x12ed66);}let _0xce8f30={'x':_0x26c9fe,'y':_0x18949b,'adjName':_0x57f254[_0x21bf5a(0x18d)]};this['_addControl'](_0x2feed0,_0xce8f30,_0xce8f30[_0x21bf5a(0x18d)],_0x1bc35d,_0x296631,this[_0x21bf5a(0x102)],this[_0x21bf5a(0x161)]);}}['_addControl'](_0x4a5fad,_0x4a0a5c,_0x33c7a6,_0x34023e,_0x446e93,_0x25c375,_0x2ef4ef){const _0x4760d7=_0x232df7;if(!this[_0x4760d7(0x1b2)])return;let _0x250927=_0x4760d7(0x262)+this[_0x4760d7(0x1b2)]+'-'+_0x33c7a6,_0x4674d9=_0x4a5fad['getObjectIncludeInGroup'](_0x250927);if(_0x4674d9){_0x4674d9['transformByState']({'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize']});return;}let _0x1bdce4=new Nr(_0x250927,{'left':_0x4a0a5c['x']+_0x34023e-_0x4c61a8[_0x4760d7(0x1a9)],'top':_0x4a0a5c['y']+_0x446e93-_0x4c61a8['adjHandleSize'],'adjName':_0x33c7a6,'shapeId':this['_activeImageId'],'unitId':_0x25c375,'subUnitId':_0x2ef4ef,'width':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'height':_0x4c61a8[_0x4760d7(0x1a9)]+0x8,'zIndex':_0x4489b8+0x1,'evented':!0x0});this['_shapes'][_0x4760d7(0x29a)](_0x1bdce4),this[_0x4760d7(0x2ac)](_0x1bdce4,_0x4a5fad,_0x33c7a6),_0x4a5fad['addObject'](_0x1bdce4,_0x4489b8+0x1);}[_0x232df7(0x352)](){const _0x3705a2=_0x232df7;this[_0x3705a2(0x2b1)][_0x3705a2(0x333)]!==0x0&&(this[_0x3705a2(0x2b1)][_0x3705a2(0x385)](_0x4c8f96=>_0x4c8f96[_0x3705a2(0x296)]()),this[_0x3705a2(0x2b1)]=[]);}['_getScrollInfo'](_0x5f553c,_0x22150d){const _0x473c4f=_0x232df7;var _0x3fecaa;let _0x27d6d4={'x':0x0,'y':0x0},_0x19bee0=this['_renderManagerService']['getRenderUnitById'](_0x5f553c);if(!_0x19bee0||!_0x19bee0[_0x473c4f(0x18c)](_0x54a66d)[_0x473c4f(0x38a)](_0x22150d))return _0x27d6d4;let _0x34a014=_0x19bee0[_0x473c4f(0x18c)](_0x5ccab7),_0x5644bf=_0x34a014==null?void 0x0:_0x34a014['getCurrentScrollState']();if(!_0x5644bf)return _0x27d6d4;let _0xabd6d4=(_0x3fecaa=this['_univerInstanceService']['getUnit'](_0x5f553c))==null?void 0x0:_0x3fecaa[_0x473c4f(0x339)](_0x22150d);if(!_0xabd6d4)return _0x27d6d4;let _0x230bcc=_0x56d9fe(_0x5644bf['sheetViewStartRow'],_0x5644bf['sheetViewStartColumn'],_0x19bee0[_0x473c4f(0x381)],_0xabd6d4);return _0x230bcc?{'x':_0x230bcc[_0x473c4f(0x397)],'y':_0x230bcc[_0x473c4f(0x125)]}:_0x27d6d4;}['_getZoomRatio'](_0x3c40e7,_0x470f35){const _0x18b00f=_0x232df7;var _0x1ebfe9;let _0x1b9d75=(_0x1ebfe9=this[_0x18b00f(0x2d4)][_0x18b00f(0x2e7)](_0x3c40e7))==null?void 0x0:_0x1ebfe9[_0x18b00f(0x339)](_0x470f35);return(_0x1b9d75==null?void 0x0:_0x1b9d75[_0x18b00f(0x3a7)]())??0x1;}['_attachAdjustEvent'](_0x755849,_0x3da325,_0x81b304){const _0x126b25=_0x232df7;this[_0x126b25(0x2db)](_0x169987(_0x755849[_0x126b25(0x197)]['subscribeEvent']((_0xe08841,_0x5d1243)=>{const _0x5bf9d2=_0x126b25;var _0x4ab453,_0x436aaf,_0x56f1b0;let {unitId:_0x11190e,subUnitId:_0x47a5fc,drawingId:_0x2fbfed}=_0x755849[_0x5bf9d2(0xe5)](),_0x5c76ba=this['_getImageDrawingInfo'](_0x11190e,_0x47a5fc,_0x2fbfed);if(!(_0x5c76ba!=null&&_0x5c76ba['transform']))return;let {left:_0x312c75,top:_0xf7fc57,width:_0x5f6146,height:_0xc1818b}=_0x5c76ba['transform'];this[_0x5bf9d2(0x144)]=_0x312c75||0x0,this['_baseTop']=_0xf7fc57||0x0,this['_baseWidth']=_0x5f6146||0x0,this[_0x5bf9d2(0x336)]=_0xc1818b||0x0;let _0x395fff=!!((_0x4ab453=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x4ab453[_0x5bf9d2(0x270)]),_0xe9e6aa=!!((_0x436aaf=_0x5c76ba[_0x5bf9d2(0x15f)])!=null&&_0x436aaf[_0x5bf9d2(0x25e)]),_0x3e1c6f=((_0x56f1b0=_0x5c76ba[_0x5bf9d2(0x15f)])==null?void 0x0:_0x56f1b0['angle'])||0x0,_0x13842a=this[_0x5bf9d2(0x1ae)](_0x11190e,_0x47a5fc,_0x2fbfed);if(!_0x13842a)return;let _0x23a17b=this['_getOrCreateShapeModel'](_0x13842a[_0x5bf9d2(0x320)],this[_0x5bf9d2(0x343)],this['_baseHeight'],_0x13842a[_0x5bf9d2(0x29d)]);if(!_0x23a17b||(this['_activeShapeModel']=_0x23a17b,this['_activeAdjustInfo']=_0x23a17b[_0x5bf9d2(0x219)](_0x81b304),!this[_0x5bf9d2(0x192)]))return;this[_0x5bf9d2(0x173)]=!0x0,_0x3da325[_0x5bf9d2(0x3a2)]();let _0x1a3c75=_0x13842a[_0x5bf9d2(0x320)];this[_0x5bf9d2(0x30b)]=_0x3da325[_0x5bf9d2(0x2c6)]['subscribeEvent']((_0x6ff62e,_0x1c0bfe)=>{const _0x5a3e4c=_0x5bf9d2;if(!this[_0x5a3e4c(0x173)])return;let {offsetX:_0x5c35c3,offsetY:_0x43fa6b}=_0x6ff62e,_0x36191=this['_activeAdjustInfo'];if(!this['_activeShapeModel']||!_0x36191)return;_0x3da325[_0x5a3e4c(0x3a2)](),_0x3da325[_0x5a3e4c(0x331)](_0x1d110f[_0x5a3e4c(0x1a7)]);let _0x4a35e7={'left':0x0,'top':0x0,'width':this[_0x5a3e4c(0x343)],'height':this['_baseHeight']},_0x13761f=this[_0x5a3e4c(0x1c6)](_0x11190e,_0x47a5fc),_0xfb1e98=this[_0x5a3e4c(0x1d9)](_0x11190e,_0x47a5fc),_0x387e87=_0x5c35c3/_0xfb1e98+_0x13761f['x']-this[_0x5a3e4c(0x144)],_0x24f22a=_0x43fa6b/_0xfb1e98+_0x13761f['y']-this['_baseTop'];if(_0x3e1c6f!==0x0){let _0x35f277=this[_0x5a3e4c(0x343)]/0x2,_0x4b23d8=this[_0x5a3e4c(0x336)]/0x2,_0x1757da=_0x3e1c6f*Math['PI']/0xb4,_0x1beea6=Math[_0x5a3e4c(0x2cd)](_0x1757da),_0x50da1d=Math['sin'](_0x1757da),_0x414cfc=_0x387e87-_0x35f277,_0x142e4d=_0x24f22a-_0x4b23d8;_0x387e87=_0x35f277+(_0x414cfc*_0x1beea6+_0x142e4d*_0x50da1d),_0x24f22a=_0x4b23d8+(-_0x414cfc*_0x50da1d+_0x142e4d*_0x1beea6);}_0x395fff&&(_0x387e87=this[_0x5a3e4c(0x343)]-_0x387e87),_0xe9e6aa&&(_0x24f22a=this[_0x5a3e4c(0x336)]-_0x24f22a);let _0xb7c31b=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x391)](_0x4a35e7,{'x':_0x387e87,'y':_0x24f22a},_0x36191,_0x395fff,_0xe9e6aa);if(Object[_0x5a3e4c(0x1be)](_0xb7c31b)[_0x5a3e4c(0x333)]!==0x0){for(let [_0x5d2a29,_0x1be863]of Object['entries'](_0xb7c31b))this['_activeShapeModel'][_0x5a3e4c(0x359)](_0x5d2a29,_0x1be863);this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x2bd)]({'width':this[_0x5a3e4c(0x343)],'height':this[_0x5a3e4c(0x336)]}),this[_0x5a3e4c(0x191)](_0x11190e,_0x47a5fc,_0x2fbfed,_0xb7c31b),this[_0x5a3e4c(0x2ad)]=this[_0x5a3e4c(0x1d8)][_0x5a3e4c(0x158)](),this[_0x5a3e4c(0x22d)](),_0x1c0bfe['stopPropagation']();}}),this[_0x5bf9d2(0x290)]=_0x3da325[_0x5bf9d2(0x2c7)][_0x5bf9d2(0x2e4)]((_0x5d5d4c,_0x231b00)=>{const _0x2dedc0=_0x5bf9d2;if(this[_0x2dedc0(0x30b)][_0x2dedc0(0x1d2)](),this[_0x2dedc0(0x290)][_0x2dedc0(0x1d2)](),_0x3da325[_0x2dedc0(0x2fe)](),this['_activeShapeModel']){let _0x4255db=this[_0x2dedc0(0x1d8)][_0x2dedc0(0x12f)](),_0x52a896={};for(let _0x2c09f1 of _0x4255db){let _0x3cfdf6=this['_activeShapeModel'][_0x2dedc0(0x357)](_0x2c09f1);_0x3cfdf6!==void 0x0&&(_0x52a896[_0x2c09f1]=_0x3cfdf6);}this[_0x2dedc0(0x1ec)][_0x2dedc0(0x1ca)](_0x11190e,_0x47a5fc,_0x2fbfed,_0x1a3c75,_0x52a896);}this[_0x2dedc0(0x192)]=void 0x0,this[_0x2dedc0(0x1d8)]=void 0x0,this['_isStartAdjusting']=!0x1,_0x231b00[_0x2dedc0(0x345)](),_0x3da325[_0x2dedc0(0x34f)]();}),_0x5d1243['stopPropagation']();})));}[_0x232df7(0x191)](_0xf563f8,_0x33264c,_0x25ca81,_0x5067e7){const _0x29e4f1=_0x232df7;let _0x53cd30=this[_0x29e4f1(0x209)]['getRenderUnitById'](_0xf563f8);if(!_0x53cd30)return;let {scene:_0x42aad0}=_0x53cd30,_0x533474=_0x3023e5({'unitId':_0xf563f8,'subUnitId':_0x33264c,'drawingId':_0x25ca81}),_0x18704e=_0x42aad0[_0x29e4f1(0x17a)](_0x533474);if(_0x18704e instanceof _0x2cc9fc){let _0x221bc9=_0x18704e[_0x29e4f1(0x236)]??{};_0x18704e[_0x29e4f1(0x176)]({..._0x221bc9,..._0x5067e7}),_0x18704e[_0x29e4f1(0x390)](!0x0);}}[_0x232df7(0xe8)](){const _0x51ad39=_0x232df7;let _0x6cbebc=this['_univerInstanceService'][_0x51ad39(0x2d0)](_0xe0c4a6[_0x51ad39(0x277)]);this[_0x51ad39(0x2db)](_0x6cbebc[_0x51ad39(0x16f)](_0x4faa1d(_0x26bf90=>_0x26bf90?_0x26bf90[_0x51ad39(0xe1)]['pipe'](_0x4faa1d(_0x2163c1=>{const _0x5cd522=_0x51ad39;if(!_0x2163c1)return _0x5f31a2;let _0x721986=_0x26bf90['getUnitId'](),_0xac53f3=this[_0x5cd522(0x209)][_0x5cd522(0x124)](_0x721986),_0x5631ed=_0xac53f3==null?void 0x0:_0xac53f3[_0x5cd522(0x381)];return _0x5631ed?_0x24a70f(_0x5631ed):_0x5f31a2;})):_0x5f31a2))[_0x51ad39(0x268)](_0x1d279a=>{const _0x47c35d=_0x51ad39;let _0x5df118=_0x1d279a['getTransformerByCreate']();this[_0x47c35d(0x2db)](_0x1d279a['onPointerMove$']['subscribeEvent'](()=>{const _0x2bd7e8=_0x47c35d;this[_0x2bd7e8(0x25d)]&&this[_0x2bd7e8(0x352)]();})),this[_0x47c35d(0x2db)](_0x5df118[_0x47c35d(0x22f)]['subscribe'](_0x43fd9a=>{const _0x55d443=_0x47c35d;let {objects:_0x51f67e}=_0x43fd9a;if(this[_0x55d443(0x22d)](),_0x51f67e!==null&&_0x51f67e[_0x55d443(0x292)]===0x1){let _0x35d9ef=_0x51f67e['values']()[_0x55d443(0x360)]()['value'];_0x35d9ef instanceof _0x2cc9fc&&_0x35d9ef[_0x55d443(0x320)]&&(this[_0x55d443(0x25d)]=!0x0);}})),this['disposeWithMe'](_0x5df118[_0x47c35d(0x2fd)][_0x47c35d(0x268)](()=>{const _0x255fe7=_0x47c35d;this[_0x255fe7(0x25d)]&&this[_0x255fe7(0x352)]();})),this[_0x47c35d(0x2db)](_0x1d279a[_0x47c35d(0x2c7)][_0x47c35d(0x2e4)](()=>{const _0x4b11a8=_0x47c35d;this[_0x4b11a8(0x25d)]&&(this[_0x4b11a8(0x25d)]=!0x1,this[_0x4b11a8(0x22d)]());})),this[_0x47c35d(0x2db)](_0x5df118['changeEnd$']['subscribe'](()=>{const _0x42ea38=_0x47c35d;if(this[_0x42ea38(0x102)]&&this['_subUnitId']&&this[_0x42ea38(0x1b2)]){let _0x1f4f73=this['_getImagePrstGeom'](this[_0x42ea38(0x102)],this['_subUnitId'],this[_0x42ea38(0x1b2)]);if(_0x1f4f73){var _0x19f12c,_0x4f5b94;let _0x3dcf8f=this[_0x42ea38(0x133)](this[_0x42ea38(0x102)],this[_0x42ea38(0x161)],this[_0x42ea38(0x1b2)]),_0xed96be=(_0x3dcf8f==null||(_0x19f12c=_0x3dcf8f[_0x42ea38(0x15f)])==null?void 0x0:_0x19f12c[_0x42ea38(0x324)])||0x0,_0x457807=(_0x3dcf8f==null||(_0x4f5b94=_0x3dcf8f['transform'])==null?void 0x0:_0x4f5b94[_0x42ea38(0x39a)])||0x0,_0x5b027e=this[_0x42ea38(0x2bc)](_0x1f4f73[_0x42ea38(0x320)],_0xed96be,_0x457807,_0x1f4f73[_0x42ea38(0x29d)]);_0x5b027e&&(this['_activeAdjustPointList']=_0x5b027e[_0x42ea38(0x158)](),this[_0x42ea38(0x352)](),this[_0x42ea38(0x22d)](!0x0));}}}));}));}[_0x232df7(0x22c)](){const _0x1f7517=_0x232df7;this['disposeWithMe'](this[_0x1f7517(0x11c)][_0x1f7517(0x19a)][_0x1f7517(0x268)](_0x36418a=>{const _0x38b0b0=_0x1f7517;if(_0x36418a[_0x38b0b0(0x333)]===0x1){let _0x165b3f=_0x36418a[0x0];if(_0x165b3f[_0x38b0b0(0x183)]===_0x190419[_0x38b0b0(0x1a0)]){let {unitId:_0x3adf51,subUnitId:_0x4f43b5,drawingId:_0x4aecee}=_0x165b3f,_0x34ceb7=this[_0x38b0b0(0x1ae)](_0x3adf51,_0x4f43b5,_0x4aecee);if(_0x34ceb7){var _0x38f96,_0x1a7391;this[_0x38b0b0(0x1b2)]=_0x4aecee,this[_0x38b0b0(0x102)]=_0x3adf51,this[_0x38b0b0(0x161)]=_0x4f43b5;let _0x2f1da7=this[_0x38b0b0(0x133)](_0x3adf51,_0x4f43b5,_0x4aecee),_0x404035=(_0x2f1da7==null||(_0x38f96=_0x2f1da7['transform'])==null?void 0x0:_0x38f96['width'])||0x0,_0x1e0314=(_0x2f1da7==null||(_0x1a7391=_0x2f1da7['transform'])==null?void 0x0:_0x1a7391[_0x38b0b0(0x39a)])||0x0,_0x5083ce=this['_getOrCreateShapeModel'](_0x34ceb7['prstGeom'],_0x404035,_0x1e0314,_0x34ceb7[_0x38b0b0(0x29d)]);_0x5083ce&&(this[_0x38b0b0(0x2ad)]=_0x5083ce[_0x38b0b0(0x158)]()),this[_0x38b0b0(0x352)](),this[_0x38b0b0(0x22d)](!0x0);}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();}else this[_0x38b0b0(0x109)]();})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)][_0x1f7517(0x274)][_0x1f7517(0x268)](_0x5a7e65=>{const _0x47c2b4=_0x1f7517;if(_0x5a7e65['length']===0x1){let _0x549ee8=_0x5a7e65[0x0],_0x669927=this[_0x47c2b4(0x11c)][_0x47c2b4(0x282)](_0x549ee8);(_0x669927==null?void 0x0:_0x669927[_0x47c2b4(0x183)])===_0x190419[_0x47c2b4(0x1a0)]&&this['_activeImageId']===_0x549ee8[_0x47c2b4(0x36c)]&&(this['_clearControls'](),this['_createControls'](!0x0));}})),this[_0x1f7517(0x2db)](this[_0x1f7517(0x11c)]['remove$'][_0x1f7517(0x268)](_0x15996b=>{const _0x3c1347=_0x1f7517;for(let _0x299ec8 of _0x15996b)this[_0x3c1347(0x1b2)]===_0x299ec8[_0x3c1347(0x36c)]&&this[_0x3c1347(0x109)]();}));}[_0x232df7(0x109)](){const _0x37d258=_0x232df7;this[_0x37d258(0x1b2)]=null,this[_0x37d258(0x102)]=null,this[_0x37d258(0x161)]=null,this['_activeAdjustPointList']=void 0x0,this[_0x37d258(0x352)]();}};Xi=X([Y(0x1,_0x3deb35),Y(0x2,_0x229e82(_0x422c1e)),Y(0x3,_0x304294),Y(0x4,_0x229e82(Q))],Xi);function Zi(_0x1d43d7){return _0x1d43d7['trim']()||void 0x0;}function _0x1606(){const _0x2c94c6=['createControl$','_baseHeight','BottomIcon','Image','getSheetBySheetId','defineProperty','shape-editor-ui.toolbar.changeShape','drawing-ui.objectListPanel.search','_shapeUpdateListener','fill','getSkeletonParam','cxnPointStrokeWidth','computeStraightConnectorLayout','_baseDrawingRect','_baseWidth','bottom','stopPropagation','visible','_loadAndSetImage','_applyFormulaAutoFitSize','_getDrawingRect','_createCopyInfoByRange','filter','OTHERS','fromChangeset','GROUP','enableObjectsEvent','_draggingConnectorId','run','_clearControls','_shapeRenderController','invert','_hasReset','_draw','getAdjustValueByName','_iconManager','setAdjustValueByName','setFillImage','map','getCurrentUnitOfType','_context','save','hideInfoPopup','next','drawing-ui.objectListPanel.lockHint','_activeShapeId','attachTransformerTo','getInverseCoord','StraightConnector1','normal','sheet.operation.open-sheet-shape-format-panel','copyId','ShapeIcon','mergeMenu','_openShapeEditPanel','drawingId','remove$','scale','_canEdit','_connectionSiteObjects','_drawSimpleText','getTransformerByCreate','featurePluginUpdateNotification','None','_initSelection','updateDocumentStyle','sheet.shape.floating-toolbar','rect','clipHeight','drawing-ui.objectListPanel.filterLocked','parse','gradientEndColor','selectable','_sheetShapeAdjustController','_highlightedSiteIndex','endConnectionDetection','scene','_insertingShapeKeys','shapeKey','close','forEach','70YkXNkh','sheets-shape-ui.permission.editErr','30534GRkaXH','complete','getSkeleton','clipTop','getBasicShapeRelation','drawing-ui.objectListPanel.typeNames.','viewBound','_handleConnectorPointerUp','makeDirty','calcAdjValues','object','_getShapeAdjustPointListById','addImageSourceCache','showContextualTab','shapeText','viewportScrollX','classType','fillImageSource','height','getContextValue','localeService','drawing-ui.objectListPanel.show','_hyperLinkRegions','_shapeService','FlipVerticalIcon','_adjName','disableObjectsEvent','getUnitId','pushUndoRedo','presentation','_cxnIndex','getZoomRatio','registerRenderModule','getObjectIncludeInGroup','_sheetsShapeService','sheetViewStartColumn','_executeConnectionCommand','animateFormulaPresentation','activeSheet$','getDrawingVisible','isInGroup','left','getDrawingSearch','_activeTargetShapeId','clip-adj-','_registerMoveHandler','color','_updateAdjustControlPositions','_drawingType','sheets-shape-ui.ribbon.shape-format.formula-control','startArrow','beforeCommandExecuted','getUnitType','LEFT','type','updateConnectionDetection','draw','_initSheetChange','focusDrawing','doc','isHighlighted','_getShapeInfo','getShapeTextData','packageName','Path','fillType','sheet.menu.shape.flip-vertical','COMMAND','_isHighlighted','end','_shapeTextEditingService','_unitId','setConfig','has','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','parent','setOnSavingEditorData','shape-editor-ui.arrange.forward','_resetState','pick','symbol','_clearConnectionSites','sheet.operation.open-mobile-shape-editor','getImage','3119676sbQiWL','visible$','clip-','_baseShapeLeft','removeLinePoints','register','TOP','drawing-ui.objectListPanel.dragToReorder','_updateTransform','sheet.shape.picker.component','_formulaShapes','data','getDrawingData','_drawingManagerService','_permissionService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_clipService','ShapeFormatSettingIcon','div','getTransformer','_releaseRenderCache','getRenderUnitById','viewportScrollY','onSteady','title','_shapePopupMenuDisposable','_isOpenedShapeEditPanel','cxnPointStroke','find','_insertShapes','worldPoints','some','getAdjustNames','lineType','getBentTypeFromPoints','_formulaAnimation','_getImageDrawingInfo','getShapeType','SELECTOR','#1a73e8','dataModel','setFallbackVisible','from','_completionFrame','MoveUpIcon','SHEET','_transformCalculateSrcRect','iterator','drawing-ui.objectListPanel.close','angle','_drawingAddListener','interceptor','horizontal','_baseLeft','_registerComponents','reduce','fillImageSourceType','getEndConnectInfo','presetId','get','8pOahDv','setFormulaPresentation','beginPath','_loadShapePictureFill','cancelEditing','getOwnPropertyDescriptor','2723913sHgXFG','setContextValue','_attachConnectorObjectEvent','getBatchRemoveOp','_baseShapeWidth','_registerDrawingMoveHandler','formulaPresentation','getDrawingPoints','sin','_sidebarDisposable','shapeType','58gmdCKT','drawing-ui.objectListPanel.name','onload','transform','preValue','_subUnitId','_configService','_clearShapeAdjustControls','create','getActualSize','currentAdjustValues','_cxtHandlerPointerUp','getStartConnectInfo','onSavingEditorData$','default','sheets-shape-ui.flipHorizontal','_registerGroupFeaturePasteHook','_currentUniverService','animationEnabled','pipe','targetShapeId','Line','_shapeFormulaService','_isStartAdjusting','order','changeShapeType','setPrstGeomAdjValues','_handleConnectedEndpointPointerUp','sheets-shape-ui.ribbon.shape-format.arrange-back','initShapePopupMenu','getObject','updateDocumentDataMargin','sheets-shape-ui.config','_registerFeatureMenu','entries','startX','style','render','_sheetPrintInterceptorService','drawingType','_localeService','registerClipDelegate','_isStartConnectorPoint','editingParams$','_closeShapeEditPanel','drawing-ui.objectListPanel.lock','_activeShapeInfo','restore','with','adjName','drawing-ui.objectListPanel.hideAll','pluginName','_createShapeAdjustControls','_updateImageAdjValues','_activeAdjustInfo','shape-editor-ui.arrange.back','refreshFormulaPresentation','sheets-shape-ui.shape-format.formula-ribbon-control','stroke','onPointerDown$','index','_sheetDrawingShapeRenderController','focus$','sheets-shape-ui.ribbon.shape-format.arrange-backward','add','contentVerticalOffset','_sheetClipboardService','debounceRefreshControls','DRAWING_IMAGE','_sheetCanvasPopManagerService','_sheetPermissionCheckController','getInterceptPoints','constructor','_sheetInterceptorService','text','CROSSHAIR','drawWith','adjHandleSize','params','FlipHorizontalIcon','axisAlignSheetTransform','getValue','_getImagePrstGeom','isRenderLinePointsMode','sheets-shape-ui.formatShape','UPDATE','_activeImageId','_onSavingEditorData$','function','sheet.command.update-shape-data','shapeData','onStarting','mode','top','worldPoint','fontFamily','Medium','backward','keys','sheet.command.menu-insert-shape','contentHeight','resolveHyperLinkAt','_lastEditingShapeKey','univer-box-border\x20univer-px-4\x20univer-text-sm','stringify','_getConnectionSiteAngle','_getScrollInfo','getShapeData','sheet.shape.edit.panel','onReady','clipByShape','refreshAdjustControls','onDblclick$','clearControl$','undo','getShapeModel','hidden','completeEditing','unsubscribe','getActiveViewportByCoord','_ribbonService','MoveDownIcon','offsetY','setShouldShowAdjust','_activeShapeModel','_getZoomRatio','setShapeProps','getImageSourceCache','trim','drawing-ui.objectListPanel.hide','sheet.operation.open-shape-object-list-panel','1.1.0','actions','_injector','_drawingRenderService','unitId','prototype','getParent','popup','SolidLine','doc.image-clip.shape-picker.component','getCurrentScrollState','ObjectLayersIcon','setSrcRect','_imageShapeClipController','copyType','src','string','_registerDrawingFocusChangeHandler','#FFFFFF','_shapeId','canvas','addClipboardHook','setEditing','_baseShapeHeight','isRichText','#bcbcbc','_handleFreeEndpointMove','_sheetDrawingService','cxnIndex','extensionGroups','setPrstGeom','sheets-shape-ui.objectListPanel.title','setCanUseShapeClip','Rect','drawing-ui.objectListPanel.unlockAll','getConnectionRelation','drawing-ui.objectListPanel.title','registerCommand','sheetViewStartRow','attachPopupToObject','fontSize','_initMenu','_renderManagerService','canvasElement','front','top-center','_getConnectPointInfo','sheets-shape-ui.shape-format.quick-style-gallery','_initPrinting','_sidebarService','isolated','values','getRealBound','worldRect','cxnPointRadius','componentKey','_registerOperations','_updateSrcRectByTransform','getAdjustInfoByName','sheets-shape-ui.insertShape','ancestorTransform','_targetShapeId','DRAWING_SHAPE','_disposePopups','getPresentation','_menuManagerService','_initEvents','_baseTop','_currentConnectionTarget','onCommandExecuted','665687NUFWIw','renderDrawingShape','abs','_popupMenuListener','REMOVE','sheets-shape-ui.editShape','open','_registerFocusChangeHandler','_createControls','shape-text-','changeStart$','strokeWidth','_currentScene','_commandService','sheet.operation.close-sheet-shape-format-panel','transformByState','skeleton','prstGeomAdjValues','drawing-ui.objectListPanel.filterHidden','_drawShapeText','forward','clearAdjustControls','_findNearestConnectionSite','_activeShapeAdjustPointList','addObject','unregister','sectionCanvas','_drawRichText','sqrt','setCollapsedIds','srcRect','sheets-shape-ui.ribbon.shape-format.text-control','getVisible','Arrow','computeConnectorResizeLayout','_executeResizeCommand','sheets-shape-ui','_executeConnectedRouteConnectionCommand','drawing-ui.objectListPanel.moveBackward','_editingParams$','_initCopyPaste','isHit','isMainScene','sheets-shape-ui.shape-format.style-ribbon-control','translate','calculate','_handleConnectedEndpointMove','getDrawingOKey','shape-adjust-point-','cxnPointFill','transformVector2SceneCoord','40ztfurt','indexOf','permissionPointUpdate$','_clearCompletionFrame','isLineShape','_isImagePointerDown','flipY','PictureFill','_getShapeAdjustInfosById','sheet.operation.apply-shape-quick-style','image-clip-adjust-point-','drawing-ui.objectListPanel.description','rotation','isArray','_generateCutPasteMutations','_moveConnectorWithShape','subscribe','_hide','_initCommands','INSERT','subUnitId','getConnectionSiteList','MEDIA','offsetX','flipX','getScene','_isDrawingShapePointDown','back','update$','shapeId','SolidFill','UNIVER_SHEET','getActiveSheet','_commandExecutedListener','PRINTING_COMPONENT_COLLECT','drawing-ui.objectListPanel.showAll','getMatrix','_props','custom','_initialize','getShapeTypeById','asObservable','getDrawingByParam','oKey','panel','_updateShapeAdjustControls','executeCommand','getDrawingDataForUnit','_baseShapeTop','getState','blockExecuteWithoutPermission','registerFeaturePasteHook','shape-editor-ui.arrange.backward','clearAdjustValue','drawing-ui.objectListPanel.details','registerFeatureMenu','_adjHandlerPointerUp','sheets-shape-ui.flipVertical','size','_getSceneAndTransformerByDrawingSearch','98715yeqLrW','getBatchAddOp','dispose','_showConnectionSites','name','wrapStrategy','push','_initPermission','shape-editor-ui.toolbar.quickStyles','adjustValues','_copyInfo','getBatchUpdateOp','sheetTransform','multiply','clip','BUTTON','_addShapeConnectorHandlerObject','_handleBasicShapeUpdateConnectorLineShape','sheets-shape-ui.ribbon.shape-format','presentationChanged$','_formulaKey','delete','_registerImageShapeClipDelegate','OPERATION','_attachAdjustEvent','_activeAdjustPointList','_componentManager','decorate','resize','_shapes','_contextService','clear','_groupCopyPasteController','_config','version','toPrimitive','_update','marginTop','start','SheetShapeTextEditorContainer','_getOrCreateShapeModel','updateContext','_transform','getDrawingOrder','_calculateFreeEndpointAngle','drawing-ui.objectListPanel.nameInput','includes','interceptCommand','connection-site-','highlighted','onPointerMove$','onPointerUp$','SHAPE','shapeModel','getSelectedObjectMap','onTransformChange$','#4285f4','cos','_shapeFloatingToolbarService','error','getCurrentTypeOfUnit$','PaintIcon','hideContextualTab','_shapeEditPanelVersion','_univerInstanceService','_clearShapeConnectorHandlerObjects','_cxtHandlerPointerMove','sheet.menu.shape.flip-horizontal','_clearFocusedShape','_handleFreeEndpointPointerUp','formulaBinding','disposeWithMe','drawing-ui.objectListPanel.expand','1621206mkMcTz','TopmostIcon','relation','activeAnObject','sheets-shape-ui.ribbon.shape-format.arrange-front','call','getConnectorLinePoints','subscribeEvent','getConnectionInfo','set','getUnit','drawing-ui.objectListPanel.sectionFloating','_initEditingParams','getFocusedUnit','onerror','_clearPopups','UNIVER_DOC','getCurrentSkeleton','VIEW_MAIN','composeMatrix','sheets-shape-ui.objectListPanel.open','drawing-ui.objectListPanel.sectionCanvas','hasDefault','sheets-shape-ui.editText','image','isEditing','objects','setShapeData','description','setPresentation','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','lineShapeId','changing$','resetCursor','redo','startY','sheet.shape.text.float-menu','updateLinePoints','_generatePasteMutations','sheet.operation.update-shape-type','endArrow','refreshShapeFillImage','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','_reset','getSheetId','_imageIoService','_adjHandlerPointerMove','applyPoint','drawing-ui.objectListPanel.filterAll','drawing-ui.objectListPanel.locate','value','getFocusDrawings','onRendered','SHEET_SHAPE_UI_PLUGIN','translateWithPrecision','_isShouldShowDrawingShapeAdjust','_focusedDrawings','_sheetSkeletonService','_addShapeConnectorHandlerObjects','isHitLine','_registerIcons','localToWorld','getPermissionPoint','vertical-center','disableShapeOption','SHAPE_TEXT','_sheetBasicShapeConnectionPointController','prstGeom','14KBOhRP','_isConnecting','_disposed','width','syncExecuteCommand','setHighlighted','_visible','drawing-ui.objectListPanel.lockAll','getShapeDataById','point','current','_findShapeAtPoint','_connectorObjects','24999anVTjz','FromArray','getEditing','setCursor','sheets-shape-contextual-ribbon','length','changeEnd$'];_0x1606=function(){return _0x2c94c6;};return _0x1606();}function Qi(_0x5a3890,_0x59e75b,_0x361f38){const _0x5832af=_0x232df7;var _0x567088;return((_0x567088=_0x5a3890[_0x5832af(0x298)])==null?void 0x0:_0x567088[_0x5832af(0x1dc)]())||_0x361f38['t'](_0x5832af(0x38d)+_0xa2ace3(_0x5a3890[_0x5832af(0x183)]))+'\x20'+(_0x59e75b+0x1);}function $i({PanelComponent:_0x171bbf=_0x31400b}){const _0x4cac93=_0x232df7;var _0x5b64f1;let _0xf04099=_0x3a3b93(_0x16b0b7),_0x2b6071={'title':_0xf04099['t'](_0x4cac93(0x203)),'empty':_0xf04099['t']('drawing-ui.objectListPanel.empty'),'showAll':_0xf04099['t'](_0x4cac93(0x27b)),'hideAll':_0xf04099['t'](_0x4cac93(0x18e)),'lockAll':_0xf04099['t'](_0x4cac93(0x328)),'unlockAll':_0xf04099['t'](_0x4cac93(0x201)),'moveForward':_0xf04099['t']('drawing-ui.objectListPanel.moveForward'),'moveBackward':_0xf04099['t'](_0x4cac93(0x24b)),'close':_0xf04099['t'](_0x4cac93(0x13f)),'show':_0xf04099['t'](_0x4cac93(0x39d)),'hide':_0xf04099['t'](_0x4cac93(0x1dd)),'lock':_0xf04099['t'](_0x4cac93(0x189)),'unlock':_0xf04099['t']('drawing-ui.objectListPanel.unlock'),'lockHint':_0xf04099['t'](_0x4cac93(0x361)),'unlockHint':_0xf04099['t']('drawing-ui.objectListPanel.unlockHint'),'name':_0xf04099['t'](_0x4cac93(0x15d)),'nameInput':_0xf04099['t'](_0x4cac93(0x2c1)),'description':_0xf04099['t'](_0x4cac93(0x263)),'descriptionPlaceholder':_0xf04099['t']('drawing-ui.objectListPanel.descriptionPlaceholder'),'details':_0xf04099['t'](_0x4cac93(0x28e)),'noSelection':_0xf04099['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0xf04099['t'](_0x4cac93(0x30e)),'expand':_0xf04099['t'](_0x4cac93(0x2dc)),'collapse':_0xf04099['t']('drawing-ui.objectListPanel.collapse'),'dragToReorder':_0xf04099['t'](_0x4cac93(0x116)),'search':_0xf04099['t'](_0x4cac93(0x33c)),'filterAll':_0xf04099['t'](_0x4cac93(0x30d)),'filterHidden':_0xf04099['t'](_0x4cac93(0x237)),'filterLocked':_0xf04099['t'](_0x4cac93(0x37a)),'sectionCanvas':_0xf04099['t'](_0x4cac93(0x2f2)),'sectionFloating':_0xf04099['t'](_0x4cac93(0x2e8))},_0x495e36=_0x3a3b93(_0x1b156e),_0xa4aefd=_0x3a3b93(_0x304294),_0x2fab87=_0x3a3b93(_0x4458c8),_0x554b22=_0x3a3b93(_0x3deb35),_0x2dfce1=_0x3a3b93(_0x422c1e),[,_0x5329fb]=_0x1268dd(_0x443cc3=>_0x443cc3+0x1,0x0),_0x1cb0ae=_0xa4aefd[_0x4cac93(0x35c)](_0xe0c4a6[_0x4cac93(0x277)]),_0x134ca9=(_0x1cb0ae==null?void 0x0:_0x1cb0ae['getUnitId']())??'',_0x1d4039=(_0x1cb0ae==null||(_0x5b64f1=_0x1cb0ae[_0x4cac93(0x278)]())==null?void 0x0:_0x5b64f1[_0x4cac93(0x309)]())??'',_0x48038a=_0xe01eb2(()=>_0x554b22[_0x4cac93(0x19a)],_0x554b22[_0x4cac93(0x310)](),!0x1,[_0x554b22]);_0x3ac889(()=>{const _0x25c4b7=_0x4cac93;let _0x33b3d7=_0x495e36[_0x25c4b7(0x224)](()=>_0x5329fb());return()=>_0x33b3d7[_0x25c4b7(0x296)]();},[_0x495e36]);let _0x16cea3=_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x11b)](_0x134ca9,_0x1d4039):{},_0x30f90c=(_0x134ca9&&_0x1d4039?_0x2fab87[_0x4cac93(0x2bf)](_0x134ca9,_0x1d4039):[])[_0x4cac93(0x35b)](_0x33b1a7=>_0x16cea3[_0x33b1a7])[_0x4cac93(0x34b)](_0x3fb5ee=>!!_0x3fb5ee)['reverse'](),_0x59190a=_0x30f90c[_0x4cac93(0x146)]((_0x1e25bd,_0x923282)=>(_0x1e25bd[_0x33d0f6(_0x923282[_0x4cac93(0x183)])]+=0x1,_0x1e25bd),{'canvas':0x0,'floating':0x0}),_0x563d16={'canvas':0x0,'floating':0x0},_0x1da710=_0x30f90c[_0x4cac93(0x35b)]((_0x23eb1b,_0x4907bc)=>{const _0x22b94b=_0x4cac93;let _0x57baf0=_0x33d0f6(_0x23eb1b['drawingType']),_0x17d739=_0x57baf0===_0x255c3c,_0x5268d9=_0x563d16[_0x57baf0]++;return{'id':_0x23eb1b[_0x22b94b(0x36c)],'name':Qi(_0x23eb1b,_0x4907bc,_0xf04099),'description':_0x23eb1b['description'],'visible':_0x23eb1b[_0x22b94b(0x1d0)]!==!0x0,'selectable':_0x23eb1b['selectable']!==!0x1,'sectionId':_0x57baf0,'sectionTitle':_0x17d739?_0x2b6071['sectionFloating']:_0x2b6071[_0x22b94b(0x23f)],'capabilities':_0x17d739?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x17d739&&_0x5268d9>0x0,'canMoveBackward':!_0x17d739&&_0x5268d9<_0x59190a[_0x22b94b(0x1f3)]-0x1,'canReorder':!_0x17d739};}),_0x1ed469=_0x53eb09(()=>(_0x48038a??[])[_0x4cac93(0x34b)](_0x436a36=>_0x436a36[_0x4cac93(0x1e3)]===_0x134ca9&&_0x436a36[_0x4cac93(0x26c)]===_0x1d4039)[_0x4cac93(0x35b)](_0x25aec9=>_0x25aec9[_0x4cac93(0x36c)]),[_0x48038a,_0x1d4039,_0x134ca9]),_0x43fd0c=_0x1ed469[_0x1ed469[_0x4cac93(0x333)]-0x1]??null,_0x3d78d6=_0x324f42=>_0x2fab87[_0x4cac93(0x282)]({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x324f42})??null,_0xb2744=async _0x2e7c17=>{const _0x4f6aa1=_0x4cac93;_0x134ca9&&_0x2e7c17['length']&&await _0x495e36[_0x4f6aa1(0x286)](_0x47d60a['id'],{'unitId':_0x134ca9,'drawings':_0x2e7c17});},_0x7e46bb=async(_0x122a29,_0x41b98d)=>{_0x3d78d6(_0x122a29)&&await _0xb2744([{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x122a29,..._0x41b98d}]);},_0xc5b4c2=(_0x278367,_0x212259)=>{const _0x56f925=_0x4cac93;if(!_0x134ca9||!_0x1d4039)return;let _0x2ba24c=_0x212259?_0x1ed469[_0x56f925(0x2c2)](_0x278367)?_0x1ed469[_0x56f925(0x34b)](_0x8151c9=>_0x8151c9!==_0x278367):[..._0x1ed469,_0x278367]:[_0x278367];_0x495e36['syncExecuteCommand'](_0x2b2ab1['id'],_0x2ba24c[_0x56f925(0x35b)](_0x1cfe9f=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x1cfe9f})));let _0x3f8a93=_0x2ba24c[_0x2ba24c['length']-0x1];_0x3f8a93?_0x10780b(_0x2dfce1,{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x3f8a93}):_0x4e12a4(_0x2dfce1,_0x134ca9);},_0x417e69=async(_0x5e88cb,_0x29813)=>{const _0x4ebd2c=_0x4cac93;await _0xb2744(_0x5e88cb[_0x4ebd2c(0x35b)](_0x1438dc=>_0x3d78d6(_0x1438dc))[_0x4ebd2c(0x34b)](_0x1d4144=>!!_0x1d4144)['filter'](_0x13d0d0=>_0x13d0d0[_0x4ebd2c(0x1d0)]!==!0x0!==_0x29813)[_0x4ebd2c(0x35b)](_0x568b13=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x568b13['drawingId'],'hidden':!_0x29813})));},_0x213a09=async(_0x279ffd,_0x309b2e)=>{const _0x37fead=_0x4cac93;await _0xb2744(_0x279ffd[_0x37fead(0x35b)](_0x13bd78=>_0x3d78d6(_0x13bd78))[_0x37fead(0x34b)](_0x3cc633=>!!_0x3cc633)[_0x37fead(0x34b)](_0x1a5fa0=>_0x1a5fa0[_0x37fead(0x37d)]!==!0x1!==_0x309b2e)['map'](_0x525d96=>({'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingId':_0x525d96[_0x37fead(0x36c)],'selectable':_0x309b2e})));},_0x473661=_0x1ff8d3=>{let _0x2c3aec=_0x3d78d6(_0x1ff8d3);if(_0x2c3aec)return _0x213a09([_0x1ff8d3],_0x2c3aec['selectable']===!0x1);},_0x382495=async(_0x5f1d84,_0x48dcfc)=>{var _0x3b4ea6;let _0x57a47e=Zi(_0x48dcfc);(((_0x3b4ea6=_0x3d78d6(_0x5f1d84))==null?void 0x0:_0x3b4ea6['name'])??void 0x0)!==_0x57a47e&&await _0x7e46bb(_0x5f1d84,{'name':_0x57a47e});},_0x164e0f=async(_0x51426d,_0x3bb7ac)=>{const _0x4687a9=_0x4cac93;var _0x3d9123;let _0x3dc279=Zi(_0x3bb7ac);(((_0x3d9123=_0x3d78d6(_0x51426d))==null?void 0x0:_0x3d9123[_0x4687a9(0x2f9)])??void 0x0)!==_0x3dc279&&await _0x7e46bb(_0x51426d,{'description':_0x3dc279});},_0x55802e=async(_0x3fc2fe,_0xf6e126)=>{const _0x43dc41=_0x4cac93;_0x134ca9&&_0x1d4039&&await _0x495e36[_0x43dc41(0x286)](_0x535c91['id'],{'unitId':_0x134ca9,'subUnitId':_0x1d4039,'drawingIds':[_0x3fc2fe],'arrangeType':_0xf6e126});};return!_0x134ca9||!_0x1d4039?_0x386576('div',{'className':_0x4cac93(0x2fb),'children':_0x2b6071[_0x4cac93(0x127)]}):_0x386576(_0x171bbf,{'labels':_0x2b6071,'items':_0x1da710,'selectedIds':_0x1ed469,'focusedId':_0x43fd0c,'showHeader':!0x1,'onSelect':_0xc5b4c2,'onSetVisible':_0x417e69,'onSetSelectable':_0x213a09,'onCommitName':_0x382495,'onCommitDescription':_0x164e0f,'onMoveForward':async _0x5afb28=>_0x55802e(_0x5afb28,_0x32c897['forward']),'onMoveBackward':async _0x3cbfea=>_0x55802e(_0x3cbfea,_0x32c897[_0x4cac93(0x1bd)]),'onToggleSelectable':_0x473661});}function ea(){return _0x386576($i,{'PanelComponent':_0xaa2832});}let ta=class extends _0x2bb0e8{constructor(_0x3b22fc,_0x3235c5){const _0x28abf9=_0x232df7;super(),this['disposeWithMe'](_0x3b22fc['register'](Rr,ea)),this['disposeWithMe'](_0x3235c5[_0x28abf9(0x114)]({'BottomIcon':_0x7cbde6,'FlipHorizontalIcon':_0x3c3c9d,'FlipVerticalIcon':_0x134503,'MoveDownIcon':_0x1cd4bd,'MoveUpIcon':_0x5818fa,'ObjectLayersIcon':_0x562db7,'ShapeFormatSettingIcon':_0x4a1cd8,'TopmostIcon':_0xc502f4})),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Jr,ti)),this[_0x28abf9(0x2db)](_0x3b22fc[_0x28abf9(0x114)](Yr,Qr)),_0x3b22fc[_0x28abf9(0x2f3)](_0x48d256)||this[_0x28abf9(0x2db)](_0x3b22fc['register'](_0x48d256,$r));}};ta=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],ta);let $=class extends _0x2bb0e8{constructor(_0x4a6dde){const _0x1468bd=_0x232df7;super(),this[_0x1468bd(0x11d)]=_0x4a6dde,q(this,'_editingParams$',new _0x519e70(null)),q(this,'editingParams$',this[_0x1468bd(0x24c)][_0x1468bd(0x281)]()),q(this,'_onSavingEditorData$',new _0x519e70(!0x1)),q(this,_0x1468bd(0x169),this[_0x1468bd(0x1b3)][_0x1468bd(0x281)]()),q(this,_0x1468bd(0x13a),void 0x0),this['disposeWithMe'](this[_0x1468bd(0x11d)][_0x1468bd(0x25a)][_0x1468bd(0x268)](()=>{const _0x20a7e6=_0x1468bd;let _0x3c5c91=this[_0x20a7e6(0x330)]();_0x3c5c91!=null&&_0x3c5c91[_0x20a7e6(0x346)]&&!this[_0x20a7e6(0x36f)](_0x3c5c91)&&this[_0x20a7e6(0x1f5)](null);}));}[_0x232df7(0x296)](){const _0x3fc2cb=_0x232df7;this[_0x3fc2cb(0x25b)](),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x360)](null),this[_0x3fc2cb(0x24c)][_0x3fc2cb(0x389)](),this[_0x3fc2cb(0x1b3)][_0x3fc2cb(0x360)](!0x1),this['_onSavingEditorData$'][_0x3fc2cb(0x389)](),super[_0x3fc2cb(0x296)]();}['setEditing'](_0x2b3606){const _0x2abd49=_0x232df7;(_0x2b3606==null||!_0x2b3606[_0x2abd49(0x346)]||this[_0x2abd49(0x36f)](_0x2b3606))&&(this[_0x2abd49(0x25b)](),this['_editingParams$']['next'](_0x2b3606),(_0x2b3606==null||_0x2b3606['visible']&&this[_0x2abd49(0x1b3)][_0x2abd49(0x1ad)]())&&this[_0x2abd49(0x1b3)][_0x2abd49(0x360)](!0x1));}[_0x232df7(0x107)](_0x489372){const _0x55247d=_0x232df7;this[_0x55247d(0x1b3)][_0x55247d(0x360)](_0x489372);}['getEditing'](){return this['_editingParams$']['getValue']();}[_0x232df7(0x36f)](_0x47cb9b){const _0x1f10a1=_0x232df7;let _0x42274f=this['_permissionService'][_0x1f10a1(0x31b)](new _0x48f387(_0x47cb9b[_0x1f10a1(0x1e3)])['id']),_0xb69482=this['_permissionService']['getPermissionPoint'](new _0x459023(_0x47cb9b['unitId'],_0x47cb9b[_0x1f10a1(0x26c)])['id']);return((_0x42274f==null?void 0x0:_0x42274f[_0x1f10a1(0x30f)])??!0x0)&&((_0xb69482==null?void 0x0:_0xb69482[_0x1f10a1(0x30f)])??!0x0);}['completeEditing'](_0x299331){const _0x16369f=_0x232df7;let _0x18172f=this['getEditing']();_0x18172f&&this[_0x16369f(0x13a)]===void 0x0&&(this[_0x16369f(0x107)](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x5c5d07=_0x16369f;this[_0x5c5d07(0x13a)]=void 0x0,this[_0x5c5d07(0x330)]()===_0x18172f&&this[_0x5c5d07(0x1f5)](null);}));}[_0x232df7(0x25b)](){const _0x1fb1f9=_0x232df7;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x1fb1f9(0x13a)]),this[_0x1fb1f9(0x13a)]=void 0x0);}[_0x232df7(0x14f)](){const _0x489de8=_0x232df7;this[_0x489de8(0x330)]()&&this['setEditing'](null);}};$=X([Y(0x0,_0x300477)],$);let na=class extends _0x2bb0e8{constructor(_0x37933b,_0x153aa6,_0x2c7d87,_0x38b951,_0x127d2a,_0x4da913){const _0x84ef78=_0x232df7;super(),this[_0x84ef78(0x35d)]=_0x37933b,this[_0x84ef78(0x1e1)]=_0x153aa6,this['_shapeTextEditingService']=_0x2c7d87,this[_0x84ef78(0x11c)]=_0x38b951,this[_0x84ef78(0x2b2)]=_0x127d2a,this[_0x84ef78(0x3aa)]=_0x4da913,q(this,_0x84ef78(0x1c2),null),this[_0x84ef78(0x221)](),this[_0x84ef78(0x375)](),this['_initEditingParams']();}[_0x232df7(0x221)](){const _0x256fcf=_0x232df7;let {scene:_0x485e9c}=this[_0x256fcf(0x35d)];this[_0x256fcf(0x2db)](_0x485e9c[_0x256fcf(0x1cc)][_0x256fcf(0x2e4)](_0xb5e394=>{const _0x5c3afb=_0x256fcf;let {offsetX:_0x40bf67,offsetY:_0x2d629b}=_0xb5e394,_0x534074=_0x485e9c[_0x5c3afb(0x10a)](_0x17a8a4[_0x5c3afb(0x32f)]([_0x40bf67,_0x2d629b]));if(_0x534074 instanceof J){let _0x52a1d7=this[_0x5c3afb(0x3aa)][_0x5c3afb(0x1cf)](_0x534074['unitId'],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]);if(_0x52f76f(this[_0x5c3afb(0x3aa)]['getShapeType'](_0x534074[_0x5c3afb(0x1e3)],_0x534074[_0x5c3afb(0x26c)],_0x534074[_0x5c3afb(0x275)]))||_0x52a1d7!=null&&_0x52a1d7[_0x5c3afb(0x1c7)]()[_0x5c3afb(0x2da)])return;this[_0x5c3afb(0x101)]['setEditing']({'visible':!0x0,'unitId':_0x534074[_0x5c3afb(0x1e3)],'subUnitId':_0x534074[_0x5c3afb(0x26c)],'shapeId':_0x534074[_0x5c3afb(0x275)],'shapeKey':_0x534074[_0x5c3afb(0x283)]});}}));}[_0x232df7(0x375)](){const _0x591d48=_0x232df7;this[_0x591d48(0x2db)](this['_drawingManagerService'][_0x591d48(0x19a)]['subscribe'](_0x58f1f9=>{const _0x67c82f=_0x591d48;if(_0x58f1f9[_0x67c82f(0x333)]===0x1){let _0x4c8a8c=_0x58f1f9[0x0],_0x251d67=this['_drawingManagerService'][_0x67c82f(0x282)](_0x4c8a8c);if((_0x251d67==null?void 0x0:_0x251d67[_0x67c82f(0x183)])===_0x190419[_0x67c82f(0x21d)]){var _0xbed944;let _0x3c53af=this[_0x67c82f(0x101)][_0x67c82f(0x330)]();if((_0x3c53af==null?void 0x0:_0x3c53af['shapeId'])===_0x4c8a8c[_0x67c82f(0x36c)]&&_0x3c53af[_0x67c82f(0x346)])return;let _0x6d65c0=_0x52f76f(this[_0x67c82f(0x3aa)][_0x67c82f(0x134)](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)])),_0x21bee6=!!((_0xbed944=this[_0x67c82f(0x3aa)]['getShapeModel'](_0x4c8a8c[_0x67c82f(0x1e3)],_0x4c8a8c[_0x67c82f(0x26c)],_0x4c8a8c[_0x67c82f(0x36c)]))!=null&&_0xbed944['getShapeData']()[_0x67c82f(0x2da)]);(_0x6d65c0||_0x21bee6)&&this[_0x67c82f(0x101)][_0x67c82f(0x1f5)](null);}else this[_0x67c82f(0x101)][_0x67c82f(0x1d1)]();}else this['_shapeTextEditingService'][_0x67c82f(0x1d1)]();})),this[_0x591d48(0x2db)](this[_0x591d48(0x11c)][_0x591d48(0x36d)][_0x591d48(0x268)](_0x4e2b59=>{const _0x16c5b0=_0x591d48;let _0x3e11f2=this[_0x16c5b0(0x101)][_0x16c5b0(0x330)]();_0x3e11f2&&_0x4e2b59[_0x16c5b0(0x12e)](_0x4c0651=>_0x4c0651[_0x16c5b0(0x36c)]===_0x3e11f2[_0x16c5b0(0x275)])&&this['_shapeTextEditingService']['setEditing'](null);}));}[_0x232df7(0x2e9)](){const _0x3cd727=_0x232df7;this[_0x3cd727(0x2db)](this[_0x3cd727(0x101)]['editingParams$'][_0x3cd727(0x268)](_0x5931ee=>{const _0x5a2d98=_0x3cd727;let {scene:_0x8e4c89}=this['_context'];if(this[_0x5a2d98(0x1c2)]){let _0x844867=_0x8e4c89[_0x5a2d98(0x3a9)](this[_0x5a2d98(0x1c2)]);_0x844867&&_0x844867[_0x5a2d98(0x1f5)](!0x1);}if(_0x5931ee){let _0x1237ce=!!_0x5931ee[_0x5a2d98(0x346)],_0x276ed4=_0x8e4c89[_0x5a2d98(0x3a9)](_0x5931ee['shapeKey']);_0x276ed4&&(_0x276ed4[_0x5a2d98(0x1f5)](_0x1237ce),this[_0x5a2d98(0x1c2)]=_0x5931ee[_0x5a2d98(0x383)]),this[_0x5a2d98(0x2b2)][_0x5a2d98(0x152)](_0x29a73c,_0x1237ce);}else this[_0x5a2d98(0x1c2)]=null,this['_contextService'][_0x5a2d98(0x152)](_0x29a73c,!0x1);}));}};na=X([Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x229e82($)),Y(0x3,_0x3deb35),Y(0x4,_0x49d586),Y(0x5,_0x229e82(_0x5c2303))],na);var ra=class extends na{[_0x232df7(0x221)](){const _0x4149cb=_0x232df7;let {scene:_0x130e91}=this[_0x4149cb(0x35d)],_0x2b7fb3=this[_0x4149cb(0x1e1)][_0x4149cb(0x14a)](_0x8e92cf);this[_0x4149cb(0x2db)](_0x130e91[_0x4149cb(0x1cc)]['subscribeEvent'](_0x501d33=>{const _0x17baa2=_0x4149cb;let {offsetX:_0x5d474f,offsetY:_0x4d56a1}=_0x501d33,_0xacf96a=_0x130e91['pick'](_0x17a8a4[_0x17baa2(0x32f)]([_0x5d474f,_0x4d56a1]));if(!(_0xacf96a instanceof J))return;let _0x5548d8=this[_0x17baa2(0x3aa)][_0x17baa2(0x1cf)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']);_0x52f76f(this[_0x17baa2(0x3aa)][_0x17baa2(0x134)](_0xacf96a[_0x17baa2(0x1e3)],_0xacf96a[_0x17baa2(0x26c)],_0xacf96a['shapeId']))||_0x5548d8!=null&&_0x5548d8[_0x17baa2(0x1c7)]()[_0x17baa2(0x2da)]||_0x2b7fb3[_0x17baa2(0x22b)]('text',{'hostType':_0xe0c4a6[_0x17baa2(0x277)],'unitId':_0xacf96a[_0x17baa2(0x1e3)],'subUnitId':_0xacf96a[_0x17baa2(0x26c)],'shapeId':_0xacf96a[_0x17baa2(0x275)]});}));}};const ia={...Ui};let aa=class extends _0x2bb0e8{constructor(_0x46d519,_0x38831a,_0x74a86,_0x253a4e,_0x133cf3,_0x17c1ae,_0xd1d488,_0x115e79){const _0x1158ff=_0x232df7;super(),this[_0x1158ff(0x220)]=_0x46d519,this[_0x1158ff(0x3aa)]=_0x38831a,this[_0x1158ff(0x232)]=_0x74a86,this[_0x1158ff(0x11c)]=_0x253a4e,this[_0x1158ff(0x1a1)]=_0x133cf3,this[_0x1158ff(0x2b2)]=_0x17c1ae,this['_renderManagerService']=_0xd1d488,this[_0x1158ff(0x101)]=_0x115e79,q(this,_0x1158ff(0x128),null),this[_0x1158ff(0x220)][_0x1158ff(0x36a)](ia),this[_0x1158ff(0x17d)](),this[_0x1158ff(0x2db)](this[_0x1158ff(0x101)][_0x1158ff(0x187)]['subscribe'](_0x3a8d5a=>{const _0xefaf6c=_0x1158ff;_0x3a8d5a&&this[_0xefaf6c(0x2d8)]();}));}[_0x232df7(0x179)](){const _0x4ae489=_0x232df7;this[_0x4ae489(0x128)]||=this[_0x4ae489(0x2db)](_0xd29261(this[_0x4ae489(0x209)],_0xe0c4a6[_0x4ae489(0x277)],_0x3c0e1e=>this['_popupMenuListener'](_0x3c0e1e)));}[_0x232df7(0x17d)](){const _0x5b3815=_0x232df7;this['_sheetCanvasPopManagerService'][_0x5b3815(0x28f)](_0x190419[_0x5b3815(0x21d)],(_0x41d373,_0x587cd2,_0x159db5,_0x2db5ab)=>{const _0x1003a7=_0x5b3815;let _0x405e56=this[_0x1003a7(0x3aa)]['getShapeTypeById'](_0x41d373,_0x587cd2,_0x159db5),_0x4fad0b=this[_0x1003a7(0x3aa)][_0x1003a7(0x329)](_0x41d373,_0x587cd2,_0x159db5),_0x1c1e63=_0x405e56!==void 0x0&&!_0x52f76f(_0x405e56)&&!(_0x4fad0b!=null&&_0x4fad0b['formulaBinding']);return[{'label':_0x1003a7(0x22a),'index':0x0,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':_0x1003a7(0x180)},'disable':!0x1},..._0x1c1e63?[{'label':_0x1003a7(0x2f4),'index':0x1,'commandId':qi['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'mode':'text'},'disable':!0x1}]:[],{'label':'sheets-shape-ui.deleteShape','index':0x2,'commandId':_0x29b5e1['id'],'commandParams':{'unitId':_0x41d373,'drawings':[{'unitId':_0x41d373,'subUnitId':_0x587cd2,'drawingId':_0x159db5,'drawingType':_0x2db5ab}]},'disable':!0x1},{'label':_0x1003a7(0x16b),'index':0x3,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipH':!0x0},'disable':!0x1},{'label':'sheets-shape-ui.flipVertical','index':0x4,'commandId':_0x1f7ef3['id'],'commandParams':{'unitId':_0x41d373,'subUnitId':_0x587cd2,'shapeId':_0x159db5,'flipV':!0x0},'disable':!0x1}];},'sheets-shape-ui.title');}[_0x232df7(0x228)](_0xbd6850){const _0x3706b4=_0x232df7;let _0x59b390=new _0x498b31(),_0x551e8a=null,_0x309aa3=()=>{const _0x25f8fa=_0x2028;if(!_0x551e8a)return;let _0xdae979=this[_0x25f8fa(0x11c)][_0x25f8fa(0x310)](),_0x48f68d=_0xdae979[_0x25f8fa(0x333)]===0x0||_0xdae979['length']===0x1&&_0xdae979[_0x25f8fa(0x12e)](_0x322ae8=>_0x322ae8[_0x25f8fa(0x1e3)]===(_0x551e8a==null?void 0x0:_0x551e8a['unitId'])&&_0x322ae8[_0x25f8fa(0x26c)]===(_0x551e8a==null?void 0x0:_0x551e8a['subUnitId'])&&_0x322ae8[_0x25f8fa(0x36c)]===(_0x551e8a==null?void 0x0:_0x551e8a[_0x25f8fa(0x36c)]));_0x551e8a=null,_0x48f68d&&(this['_contextService'][_0x25f8fa(0x152)](_0x20a63c,!0x1),this[_0x25f8fa(0x11c)][_0x25f8fa(0xf5)](null));};return _0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x335)]['subscribe'](()=>{const _0x1fc451=_0x3706b4;let _0x61eed9=_0xbd6850[_0x1fc451(0x2ca)]();if(_0x61eed9[_0x1fc451(0x292)]>0x1){_0x309aa3();return;}let _0x926dec=_0x61eed9[_0x1fc451(0x212)]()[_0x1fc451(0x360)]()[_0x1fc451(0x30f)];if(!_0x926dec){_0x309aa3();return;}let _0x206396=this[_0x1fc451(0x11c)][_0x1fc451(0x254)](_0x926dec['oKey']);if(!_0x206396||_0x206396[_0x1fc451(0x183)]!==_0x190419[_0x1fc451(0x21d)]){_0x309aa3();return;}let {unitId:_0x307f30,subUnitId:_0xcf509,drawingId:_0x26c036}=_0x206396;_0x551e8a={'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036},this['_contextService'][_0x1fc451(0x152)](_0x20a63c,!0x0),this['_drawingManagerService'][_0x1fc451(0x310)]()['find'](_0x15547e=>_0x15547e['unitId']===_0x307f30&&_0x15547e[_0x1fc451(0x26c)]===_0xcf509&&_0x15547e['drawingId']===_0x26c036)||this['_drawingManagerService']['focusDrawing']([{'unitId':_0x307f30,'subUnitId':_0xcf509,'drawingId':_0x26c036}]);})),_0x59b390[_0x3706b4(0x19c)](_0xbd6850[_0x3706b4(0x1cd)]['subscribe'](()=>{_0x309aa3();})),_0x169987(()=>{const _0x3aa3c3=_0x3706b4;_0x59b390[_0x3aa3c3(0x296)](),_0x309aa3();});}[_0x232df7(0x2d8)](){const _0x4e654c=_0x232df7;this[_0x4e654c(0x2b2)][_0x4e654c(0x152)](_0x20a63c,!0x1),this['_drawingManagerService'][_0x4e654c(0xf5)](null);}};aa=X([Y(0x0,_0x4cc398),Y(0x1,_0x229e82(_0x5c2303)),Y(0x2,_0x1b156e),Y(0x3,_0x3deb35),Y(0x4,_0x229e82(_0x5969c8)),Y(0x5,_0x49d586),Y(0x6,_0x422c1e),Y(0x7,_0x229e82($))],aa);function oa(_0x290bf6,_0x178101,_0x496699,_0x5663a5){const _0x180832=_0x232df7;let _0x4c603b=_0x118346(_0x290bf6,_0x178101,_0x496699),_0x1c53c8=[];for(let _0x5708ec of _0x178101){let _0x6cf43f=_0x4c603b['idMap'][_0x180832(0x14a)](_0x5708ec[_0x180832(0x36c)]),_0x18c04e=_0x5663a5(_0x5708ec);_0x6cf43f&&_0x18c04e&&_0x1c53c8[_0x180832(0x29a)]({'targetShapeId':_0x6cf43f,'source':_0x18c04e});}return _0x1c53c8;}let sa=class extends _0x2bb0e8{constructor(_0x90451,_0x2b1a9a,_0x2a01cd,_0x16e2bd){const _0x2a43e7=_0x232df7;super(),this[_0x2a43e7(0x2d4)]=_0x90451,this[_0x2a43e7(0x1a5)]=_0x2b1a9a,this[_0x2a43e7(0x1fa)]=_0x2a01cd,this['_sheetsShapeService']=_0x16e2bd,this['_initSheetChange']();}[_0x232df7(0xf4)](){const _0x4bf561=_0x232df7;this[_0x4bf561(0x2db)](this[_0x4bf561(0x1a5)][_0x4bf561(0x2c3)]({'getMutations':_0x3f7dca=>{const _0x1d719a=_0x4bf561;if(_0x3f7dca['id']===_0x8eced1['id']){let _0x425ac6=_0x2dc1b6(this[_0x1d719a(0x2d4)],_0x3f7dca[_0x1d719a(0x1aa)]);if(!_0x425ac6)return{'redos':[],'undos':[]};let {unitId:_0x442e3f,subUnitId:_0x527940}=_0x425ac6,_0x49ffd9=this['_sheetDrawingService']['getDrawingData'](_0x442e3f,_0x527940),_0xa31ac5=Object[_0x1d719a(0x212)](_0x49ffd9)[_0x1d719a(0x34b)](_0x320a32=>_0x320a32['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0xa31ac5['length']===0x0)return{'redos':[],'undos':[]};let _0x272af5=[],_0x40f935=[];for(let _0xa4e384=0x0;_0xa4e384<_0xa31ac5['length'];_0xa4e384++){let _0x26feb0=_0xa31ac5[_0xa4e384],_0xb9fd72=this[_0x1d719a(0x3aa)]['getShapeModel'](_0x26feb0['unitId'],_0x26feb0[_0x1d719a(0x26c)],_0x26feb0[_0x1d719a(0x36c)]);_0xb9fd72&&(_0x272af5[_0x1d719a(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)]}}),_0x40f935[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x442e3f,'subUnitId':_0x527940,'shapeId':_0x26feb0[_0x1d719a(0x36c)],'shapeType':_0xb9fd72[_0x1d719a(0x134)](),'shapeData':JSON[_0x1d719a(0x37b)](JSON[_0x1d719a(0x1c4)](_0xb9fd72[_0x1d719a(0x1c7)]()))}}));}return{'redos':_0x272af5,'undos':_0x40f935};}if(_0x3f7dca['id']===_0xbddc40['id']){let {unitId:_0x4ef3d3,subUnitId:_0x30d54a,targetSubUnitId:_0x233b32,copyContext:_0x56600f}=_0x3f7dca[_0x1d719a(0x1aa)];if(!_0x4ef3d3||!_0x30d54a||!_0x233b32)return{'redos':[],'undos':[]};let _0x1c6c1f=this[_0x1d719a(0x1fa)][_0x1d719a(0x11b)](_0x4ef3d3,_0x30d54a),_0x4368a7=Object[_0x1d719a(0x212)](_0x1c6c1f)[_0x1d719a(0x34b)](_0x773a4f=>_0x773a4f['drawingType']===_0x190419[_0x1d719a(0x21d)]);if(_0x4368a7[_0x1d719a(0x333)]===0x0)return{'redos':[],'undos':[]};let _0x25b218=oa(_0x56600f,_0x4368a7,{'unitId':_0x4ef3d3,'sourceSubUnitId':_0x30d54a,'targetSubUnitId':_0x233b32},_0x5353dd=>{const _0x173528=_0x1d719a;let _0x17e223=this[_0x173528(0x3aa)][_0x173528(0x1cf)](_0x5353dd[_0x173528(0x1e3)],_0x5353dd['subUnitId'],_0x5353dd[_0x173528(0x36c)]);if(_0x17e223)return{'shapeType':_0x17e223[_0x173528(0x134)](),'shapeData':JSON['parse'](JSON[_0x173528(0x1c4)](_0x17e223['getShapeData']()))};}),_0x2c9f87=[],_0xf9025a=[];for(let {targetShapeId:_0x33a796,source:_0x479748}of _0x25b218)_0x2c9f87[_0x1d719a(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796,'shapeType':_0x479748[_0x1d719a(0x15b)],'shapeData':_0x479748[_0x1d719a(0x1b6)]}}),_0xf9025a['push']({'id':_0x10857b['id'],'params':{'unitId':_0x4ef3d3,'subUnitId':_0x233b32,'shapeId':_0x33a796}});return{'redos':_0x2c9f87,'undos':_0xf9025a};}return{'redos':[],'undos':[]};}}));}};sa=X([Y(0x0,_0x229e82(_0x304294)),Y(0x1,_0x229e82(_0x427085)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303))],sa);let ca=class extends _0x2bb0e8{constructor(_0xeac7b,_0x2318f9,_0x22243e,_0x13c4b2,_0x46c6ec,_0x5d747f){const _0xdc4fe5=_0x232df7;super(),this[_0xdc4fe5(0x232)]=_0xeac7b,this['_renderManagerService']=_0x2318f9,this[_0xdc4fe5(0x11c)]=_0x22243e,this[_0xdc4fe5(0x16d)]=_0x13c4b2,this[_0xdc4fe5(0x1e2)]=_0x46c6ec,this['_sheetDrawingShapeRenderController']=_0x5d747f,q(this,_0xdc4fe5(0x382),new Set()),this[_0xdc4fe5(0x27f)]();}[_0x232df7(0x27f)](){const _0x1af5ba=_0x232df7;this[_0x1af5ba(0x141)](),this[_0x1af5ba(0x279)](),this[_0x1af5ba(0x33d)]();}[_0x232df7(0x141)](){const _0xb11ce0=_0x232df7;this[_0xb11ce0(0x2db)](this[_0xb11ce0(0x11c)]['add$']['subscribe'](_0x28a0c3=>{const _0x4ae0c1=_0xb11ce0;this[_0x4ae0c1(0x12c)](_0x28a0c3);}));}[_0x232df7(0x279)](){const _0x530056=_0x232df7;this[_0x530056(0x2db)](this[_0x530056(0x232)][_0x530056(0x224)]((_0x1963bb,_0x188931)=>{const _0x193c19=_0x530056;if(_0x1963bb['id']===_0x4af43a['id']){let {unitId:_0xc25544,subUnitId:_0x143381,shapeId:_0x2d8356}=_0x1963bb['params'],_0x336393=this[_0x193c19(0x293)](_0xc25544),_0x2ac48e=_0x3023e5({'unitId':_0xc25544,'subUnitId':_0x143381,'drawingId':_0x2d8356}),_0x12184b=_0x336393==null?void 0x0:_0x336393[_0x193c19(0x381)][_0x193c19(0x3a9)](_0x2ac48e);_0x12184b&&(this[_0x193c19(0x199)][_0x193c19(0x306)](_0x12184b),this[_0x193c19(0x199)]['refreshFormulaPresentation'](_0x12184b,{'unitId':_0xc25544,'subUnitId':_0x143381,'shapeId':_0x2d8356}),_0x12184b['makeDirty'](!0x0));}else{if(_0x1963bb['id']===_0x5cdf0c['id']){var _0x347fef;let {unitId:_0x3ae1ad,subUnitId:_0x574283,shapeId:_0x196b37}=_0x1963bb[_0x193c19(0x1aa)],_0x54fa66=this[_0x193c19(0x293)](_0x3ae1ad);if(_0x54fa66==null)return;let {scene:_0x2b7a34}=_0x54fa66,_0x9ef5=_0x3023e5({'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}),_0x131389=_0x2b7a34[_0x193c19(0x3a9)](_0x9ef5);if(!((_0x347fef=this[_0x193c19(0x209)][_0x193c19(0x124)](_0x3ae1ad))!=null&&_0x347fef[_0x193c19(0x18c)](_0x54a66d)[_0x193c19(0x38a)](_0x574283)))return!0x1;if(_0x131389)return;if(_0x188931!=null&&_0x188931[_0x193c19(0x34d)]){queueMicrotask(()=>{const _0x1c6788=_0x193c19;this[_0x1c6788(0x323)]||this[_0x1c6788(0x12c)]([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);});return;}this['_insertShapes']([{'unitId':_0x3ae1ad,'subUnitId':_0x574283,'drawingId':_0x196b37}]);}}}));}[_0x232df7(0x33d)](){const _0x260a55=_0x232df7;this['disposeWithMe'](this['_drawingManagerService'][_0x260a55(0x274)]['subscribe'](_0x19ebbd=>{const _0x2f5325=_0x260a55;_0x19ebbd[_0x2f5325(0x385)](_0x44f3cc=>{const _0x33a668=_0x2f5325;let {unitId:_0x582bd8,subUnitId:_0x96890e,drawingId:_0x2d0851}=_0x44f3cc,_0x3babca=this[_0x33a668(0x11c)][_0x33a668(0x282)](_0x44f3cc);if(_0x3babca==null)return;let {transform:_0x44509d,drawingType:_0x21328a,srcRect:_0x459723,prstGeom:_0x15aa54}=_0x3babca;if(_0x21328a!==_0x190419[_0x33a668(0x21d)])return;let _0x5582b5=this[_0x33a668(0x293)](_0x582bd8);if(_0x5582b5==null)return;let {scene:_0x45ad8a,transformer:_0x5c6a4d}=_0x5582b5;if(_0x44509d==null)return!0x0;let _0x309066=_0x3023e5({'unitId':_0x582bd8,'subUnitId':_0x96890e,'drawingId':_0x2d0851}),_0x35b180=_0x45ad8a['getObjectIncludeInGroup'](_0x309066);if(_0x35b180==null)return!0x0;_0x35b180['setSrcRect'](_0x459723),_0x35b180[_0x33a668(0x1fd)](_0x15aa54);});}));}[_0x232df7(0x12c)](_0x3c70cb){const _0x2205a5=_0x232df7;for(let _0x3fb071 of _0x3c70cb){var _0x4c0b7b;let {unitId:_0x3cab40,subUnitId:_0x2dfb54,drawingId:_0x35cc08}=_0x3fb071,_0x133374=this[_0x2205a5(0x293)](_0x3cab40),_0x48f7e7=(_0x4c0b7b=_0x15a737(this[_0x2205a5(0x16d)],_0x3cab40))==null?void 0x0:_0x4c0b7b[_0x2205a5(0x26c)];if(_0x133374==null||_0x48f7e7!==_0x2dfb54)return;let _0x3b5d43=_0x3023e5({'unitId':_0x3cab40,'subUnitId':_0x2dfb54,'drawingId':_0x35cc08});if(this['_insertingShapeKeys']['has'](_0x3b5d43)||_0x133374[_0x2205a5(0x381)][_0x2205a5(0x3a9)](_0x3b5d43)!=null)return;let _0x3397ec=this[_0x2205a5(0x11c)][_0x2205a5(0x282)](_0x3fb071);if(_0x3397ec==null||_0x3397ec[_0x2205a5(0x183)]!==_0x190419[_0x2205a5(0x21d)])return;let _0x127fc0=_0x3397ec['data']||{};if(_0x52f76f(_0x127fc0[_0x2205a5(0x15b)])){let _0x5af5aa=_0x3397ec[_0x2205a5(0x15f)];_0x5af5aa&&(_0x3397ec[_0x2205a5(0x15f)]={..._0x5af5aa,'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1});}this[_0x2205a5(0x382)][_0x2205a5(0x19c)](_0x3b5d43);try{this[_0x2205a5(0x199)][_0x2205a5(0x226)](_0x3397ec,_0x133374[_0x2205a5(0x381)]);}finally{this['_insertingShapeKeys'][_0x2205a5(0x2a9)](_0x3b5d43);}queueMicrotask(()=>{const _0x5ef969=_0x2205a5;if(this[_0x5ef969(0x323)])return;let _0xf3b528=_0x3023e5(_0x3fb071);if(!_0x133374[_0x5ef969(0x381)][_0x5ef969(0x3a9)](_0xf3b528))return;let _0x71b203=this[_0x5ef969(0x11c)][_0x5ef969(0x282)](_0x3fb071);_0x71b203&&this['_drawingManagerService']['refreshTransform']([_0x71b203]);});}}[_0x232df7(0x293)](_0x3aca48){const _0x5c8c76=_0x232df7;if(_0x3aca48==null)return;let _0x5e9119=this[_0x5c8c76(0x209)]['getRenderUnitById'](_0x3aca48),_0x15f595=_0x5e9119==null?void 0x0:_0x5e9119[_0x5c8c76(0x381)];return _0x15f595==null?null:{'scene':_0x15f595,'transformer':_0x15f595[_0x5c8c76(0x372)]()};}};ca=X([Y(0x0,_0x1b156e),Y(0x1,_0x422c1e),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x229e82(_0x40a01d)),Y(0x5,_0x229e82(Z))],ca);const la={'normal':{'fill':_0x4c61a8[_0x232df7(0x256)],'stroke':_0x4c61a8[_0x232df7(0x12a)],'strokeWidth':_0x4c61a8[_0x232df7(0x340)]},'highlighted':{'fill':_0x232df7(0x2cc),'stroke':_0x232df7(0x136),'strokeWidth':0x2}};var ua=class extends _0x147ce5{constructor(_0x2a0fa7,_0x4651de){const _0x213134=_0x232df7;super(_0x2a0fa7,_0x4651de),q(this,_0x213134(0x21c),''),q(this,_0x213134(0x3a6),-0x1),q(this,_0x213134(0x102),''),q(this,_0x213134(0x161),''),q(this,_0x213134(0xff),!0x1),_0x4651de&&this[_0x213134(0x1da)](_0x4651de);}['getConnectionInfo'](){const _0xf1a425=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this[_0xf1a425(0x161)],'shapeId':this[_0xf1a425(0x21c)],'cxnIndex':this['_cxnIndex']};}[_0x232df7(0x326)](_0xd4399c){const _0x30d571=_0x232df7;this[_0x30d571(0xff)]!==_0xd4399c&&(this[_0x30d571(0xff)]=_0xd4399c,this[_0x30d571(0x390)](!0x0));}['isHighlighted'](){const _0x55e00d=_0x232df7;return this[_0x55e00d(0xff)];}['setShapeProps'](_0x469cf5){const _0x290222=_0x232df7;_0x469cf5[_0x290222(0x170)]!==void 0x0&&(this[_0x290222(0x21c)]=_0x469cf5[_0x290222(0x170)]),_0x469cf5[_0x290222(0x1fb)]!==void 0x0&&(this[_0x290222(0x3a6)]=_0x469cf5[_0x290222(0x1fb)]),_0x469cf5[_0x290222(0x1e3)]!==void 0x0&&(this['_unitId']=_0x469cf5[_0x290222(0x1e3)]),_0x469cf5['subUnitId']!==void 0x0&&(this[_0x290222(0x161)]=_0x469cf5[_0x290222(0x26c)]),_0x469cf5[_0x290222(0xf7)]!==void 0x0&&(this[_0x290222(0xff)]=_0x469cf5[_0x290222(0xf7)]),this['transformByState']({'width':_0x469cf5[_0x290222(0x324)]??_0x4c61a8[_0x290222(0x215)]*0x2,'height':_0x469cf5[_0x290222(0x39a)]??_0x4c61a8[_0x290222(0x215)]*0x2});}['_draw'](_0x20d616){const _0x8ebbd=_0x232df7;let _0x205d0a=this[_0x8ebbd(0xff)]?la[_0x8ebbd(0x2c5)]:la[_0x8ebbd(0x366)];_0x4a02a1['drawWith'](_0x20d616,{'radius':_0x4c61a8['cxnPointRadius'],'fill':_0x205d0a['fill'],'stroke':_0x205d0a[_0x8ebbd(0x196)],'strokeWidth':_0x205d0a['strokeWidth'],'evented':!0x0});}};let da=class extends _0x2bb0e8{constructor(_0x9d369a,_0x56795e,_0x2ea102,_0x71e715){const _0x63afc6=_0x232df7;super(),this['_context']=_0x9d369a,this[_0x63afc6(0x209)]=_0x56795e,this['_drawingManagerService']=_0x2ea102,this['_sheetsShapeService']=_0x71e715,q(this,_0x63afc6(0x370),[]),q(this,_0x63afc6(0xe6),null),q(this,_0x63afc6(0x37f),-0x1),q(this,_0x63afc6(0x231),null),q(this,'_unitId',''),q(this,'_subUnitId',''),q(this,_0x63afc6(0x350),null);}['startConnectionDetection'](_0x4b4b42,_0x51c197,_0x55f1e9,_0x292048){const _0x2ebe71=_0x232df7;this['_currentScene']=_0x4b4b42,this[_0x2ebe71(0x102)]=_0x51c197,this[_0x2ebe71(0x161)]=_0x55f1e9,this['_draggingConnectorId']=_0x292048;}['updateConnectionDetection'](_0x3293a8){const _0x1a9425=_0x232df7;if(!this[_0x1a9425(0x231)])return null;let _0x44a4fa=this['_findShapeAtPoint'](_0x3293a8);return _0x44a4fa?(this[_0x1a9425(0xe6)]!==_0x44a4fa[_0x1a9425(0x275)]&&(this['_clearConnectionSites'](),this['_showConnectionSites'](_0x44a4fa[_0x1a9425(0x275)],_0x44a4fa[_0x1a9425(0x2c9)]),this['_activeTargetShapeId']=_0x44a4fa[_0x1a9425(0x275)]),this[_0x1a9425(0x23b)](_0x3293a8)):(this[_0x1a9425(0xe6)]!==null&&(this[_0x1a9425(0x10c)](),this[_0x1a9425(0xe6)]=null),null);}[_0x232df7(0x380)](){const _0x239646=_0x232df7;this[_0x239646(0x10c)](),this['_currentScene']=null,this['_activeTargetShapeId']=null,this[_0x239646(0x37f)]=-0x1,this[_0x239646(0x350)]=null;}[_0x232df7(0x202)](){const _0x1effe4=_0x232df7;return this[_0x1effe4(0xe6)]===null||this[_0x1effe4(0x37f)]<0x0?null:{'shapeId':this['_activeTargetShapeId'],'cxnIndex':this[_0x1effe4(0x37f)]};}[_0x232df7(0x32c)](_0x1911b0){const _0x26d6f7=_0x232df7;let _0xf28e87=this['_drawingManagerService'][_0x26d6f7(0x11b)](this['_unitId'],this['_subUnitId']);for(let _0x58b4de of Object['keys'](_0xf28e87)){if(_0x58b4de===this[_0x26d6f7(0x350)]||_0xf28e87[_0x58b4de][_0x26d6f7(0x183)]!==_0x190419[_0x26d6f7(0x21d)])continue;let _0x14e9c0=this[_0x26d6f7(0x3aa)]['getShapeModel'](this[_0x26d6f7(0x102)],this[_0x26d6f7(0x161)],_0x58b4de);if(!_0x14e9c0||_0x52f76f(_0x14e9c0[_0x26d6f7(0x134)]())||_0x14e9c0['getConnectionSiteList']()[_0x26d6f7(0x333)]===0x0||!this[_0x26d6f7(0x231)])continue;let _0x430ff6=_0x3023e5({'unitId':this[_0x26d6f7(0x102)],'subUnitId':this['_subUnitId'],'drawingId':_0x58b4de}),_0x270e28=this['_currentScene']['getObjectIncludeInGroup'](_0x430ff6);if(!_0x270e28)continue;let {left:_0x1ed74b,top:_0x320e80,width:_0x44b030,height:_0x292d95}=_0x270e28[_0x26d6f7(0x213)](),_0x548fa4=_0x1ed74b+_0x44b030/0x2,_0x7624c8=_0x320e80+_0x292d95/0x2,_0x36128a=_0x270e28[_0x26d6f7(0x15f)]['getMatrix'](),_0x3ee918=new _0x9667eb([_0x36128a[0x0],_0x36128a[0x1],_0x36128a[0x2],_0x36128a[0x3],_0x548fa4,_0x7624c8]),_0x140924=_0x270e28['getParent'](),_0x176334=(_0x270e28[_0x26d6f7(0xe3)]&&(_0x140924==null?void 0x0:_0x140924[_0x26d6f7(0x398)])===_0x432f17[_0x26d6f7(0x34e)]?_0x140924[_0x26d6f7(0x21b)][_0x26d6f7(0x2a1)](_0x3ee918):_0x3ee918)[_0x26d6f7(0x354)]()[_0x26d6f7(0x30c)](_0x1911b0),_0x495892=_0x44b030/0x2,_0x5e39f0=_0x292d95/0x2;if(_0x176334['x']>=-_0x495892-0x5&&_0x176334['x']<=_0x495892+0x5&&_0x176334['y']>=-_0x5e39f0-0x5&&_0x176334['y']<=_0x5e39f0+0x5)return{'shapeId':_0x58b4de,'shapeModel':_0x14e9c0};}return null;}[_0x232df7(0x297)](_0xc53f98,_0x1439c3){const _0x10b7b8=_0x232df7;if(!this[_0x10b7b8(0x231)])return;let _0x441c4a=_0x3023e5({'unitId':this[_0x10b7b8(0x102)],'subUnitId':this[_0x10b7b8(0x161)],'drawingId':_0xc53f98}),_0x287d20=this[_0x10b7b8(0x231)]['getObjectIncludeInGroup'](_0x441c4a);if(!_0x287d20)return;let {left:_0x23f93b,top:_0x308e3d,width:_0x40def9,height:_0x32a79a}=_0x287d20[_0x10b7b8(0x213)](),_0x1edd19=_0x23f93b+_0x40def9/0x2,_0x4a7dad=_0x308e3d+_0x32a79a/0x2,_0x30195a=_0x287d20[_0x10b7b8(0x15f)][_0x10b7b8(0x27c)](),_0x5deb4d=new _0x9667eb([_0x30195a[0x0],_0x30195a[0x1],_0x30195a[0x2],_0x30195a[0x3],_0x1edd19,_0x4a7dad]),_0x3bf56d=_0x287d20[_0x10b7b8(0x1e5)](),_0x239a0d=_0x287d20[_0x10b7b8(0xe3)]&&(_0x3bf56d==null?void 0x0:_0x3bf56d[_0x10b7b8(0x398)])===_0x432f17[_0x10b7b8(0x34e)]?_0x3bf56d[_0x10b7b8(0x21b)][_0x10b7b8(0x2a1)](_0x5deb4d):_0x5deb4d;_0x1439c3['updateContext']({'width':_0x40def9,'height':_0x32a79a});let _0x51abd3=_0x1439c3['getConnectionSiteList']();for(let _0x5ddbc6 of _0x51abd3){let _0x5d4f30=_0x5ddbc6['x']-_0x40def9/0x2,_0x5d7278=_0x5ddbc6['y']-_0x32a79a/0x2,_0x4929fe=_0x239a0d['applyPoint']({'x':_0x5d4f30,'y':_0x5d7278}),_0x33694d=_0x4929fe['x'],_0x9052e=_0x4929fe['y'],_0x284ac6=new ua(_0x10b7b8(0x2c4)+_0xc53f98+'-'+_0x5ddbc6[_0x10b7b8(0x198)],{'left':_0x33694d-_0x4c61a8[_0x10b7b8(0x215)],'top':_0x9052e-_0x4c61a8[_0x10b7b8(0x215)],'targetShapeId':_0xc53f98,'cxnIndex':_0x5ddbc6[_0x10b7b8(0x198)],'unitId':this[_0x10b7b8(0x102)],'subUnitId':this['_subUnitId'],'width':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'height':_0x4c61a8[_0x10b7b8(0x215)]*0x2,'zIndex':_0x4489b8+0x2,'evented':!0x1});this[_0x10b7b8(0x370)][_0x10b7b8(0x29a)](_0x284ac6),this[_0x10b7b8(0x231)][_0x10b7b8(0x23d)](_0x284ac6,_0x4489b8+0x2);}}[_0x232df7(0x23b)](_0x186c7d){const _0x544745=_0x232df7;let _0x1926c8=null,_0x3e9ab8=0x1/0x0,_0x99ebda=null;for(let _0x145fc2 of this[_0x544745(0x370)]){let _0xc6462b=_0x145fc2[_0x544745(0xe4)]+_0x4c61a8[_0x544745(0x215)],_0x181675=_0x145fc2[_0x544745(0x1b9)]+_0x4c61a8['cxnPointRadius'],_0x5bce06=_0x186c7d['x']-_0xc6462b,_0x370de4=_0x186c7d['y']-_0x181675,_0x369238=Math[_0x544745(0x241)](_0x5bce06*_0x5bce06+_0x370de4*_0x370de4);_0x369238<_0x3e9ab8&&(_0x3e9ab8=_0x369238,_0x1926c8=_0x145fc2,_0x99ebda={'x':_0xc6462b,'y':_0x181675});}let _0x1d3f68=_0x3e9ab8<=0xa&&_0x1926c8?_0x1926c8['getConnectionInfo']()[_0x544745(0x1fb)]:-0x1;if(_0x1d3f68!==this[_0x544745(0x37f)]){for(let _0x8b51e8 of this[_0x544745(0x370)]){let _0x8f99c5=_0x8b51e8['getConnectionInfo']();_0x8b51e8[_0x544745(0x326)](_0x8f99c5[_0x544745(0x1fb)]===_0x1d3f68);}this[_0x544745(0x37f)]=_0x1d3f68;}if(_0x3e9ab8<=0xa&&_0x1926c8&&_0x99ebda){let _0x2b3ebf=_0x1926c8[_0x544745(0x2e5)](),_0x387a8e=this[_0x544745(0x1c5)](_0x2b3ebf[_0x544745(0x275)],_0x2b3ebf[_0x544745(0x1fb)]);return{'shapeId':_0x2b3ebf[_0x544745(0x275)],'cxnIndex':_0x2b3ebf[_0x544745(0x1fb)],'unitId':_0x2b3ebf[_0x544745(0x1e3)],'subUnitId':_0x2b3ebf[_0x544745(0x26c)],'worldPoint':_0x99ebda,'angle':_0x387a8e};}return null;}[_0x232df7(0x1c5)](_0x3039b0,_0x5e0062){const _0x41b530=_0x232df7;let _0x5035ab=this[_0x41b530(0x3aa)][_0x41b530(0x1cf)](this[_0x41b530(0x102)],this[_0x41b530(0x161)],_0x3039b0);if(!_0x5035ab)return 0x0;let _0x37b681=this[_0x41b530(0x11c)][_0x41b530(0x282)]({'unitId':this[_0x41b530(0x102)],'subUnitId':this[_0x41b530(0x161)],'drawingId':_0x3039b0});if(!(_0x37b681!=null&&_0x37b681['transform']))return 0x0;let {width:_0xf5e6e2=0x0,height:_0x2c0c19=0x0,flipX:_0x31d113=!0x1,flipY:_0x18863e=!0x1}=_0x37b681[_0x41b530(0x15f)];_0x5035ab[_0x41b530(0x2bd)]({'width':_0xf5e6e2,'height':_0x2c0c19});let _0x469d96=_0x5035ab['getConnectionSiteList']()['find'](_0x4fa783=>_0x4fa783[_0x41b530(0x198)]===_0x5e0062);if(!_0x469d96)return 0x0;let _0x5675cf=_0x469d96['ang']/0xea60;return _0x31d113&&(_0x5675cf=0xb4-_0x5675cf),_0x18863e&&(_0x5675cf=-_0x5675cf),_0x5675cf=(_0x5675cf%0x168+0x168)%0x168,_0x5675cf;}[_0x232df7(0x10c)](){const _0x9fbbfa=_0x232df7;for(let _0xbfb74a of this[_0x9fbbfa(0x370)])_0xbfb74a[_0x9fbbfa(0x296)]();this[_0x9fbbfa(0x370)]=[],this[_0x9fbbfa(0x37f)]=-0x1;}[_0x232df7(0x296)](){const _0x161949=_0x232df7;this[_0x161949(0x10c)](),super['dispose']();}};da=X([Y(0x1,_0x229e82(_0x422c1e)),Y(0x2,_0x229e82(_0x3deb35)),Y(0x3,_0x229e82(_0x5c2303))],da);let fa=class extends _0x2bb0e8{constructor(_0x589936,_0x5c69a0,_0x1473d1,_0x55df34,_0x24b688){const _0x49485c=_0x232df7;super(),this[_0x49485c(0x316)]=_0x589936,this[_0x49485c(0x19e)]=_0x5c69a0,this['_sheetDrawingService']=_0x1473d1,this['_shapeService']=_0x55df34,this[_0x49485c(0x2b4)]=_0x24b688,q(this,'_copyInfo',void 0x0),this[_0x49485c(0x24d)](),this[_0x49485c(0x16c)]();}get['_focusedDrawings'](){const _0x390121=_0x232df7;return this[_0x390121(0x1fa)][_0x390121(0x310)]();}[_0x232df7(0x16c)](){const _0x238d68=_0x232df7;this[_0x238d68(0x2b4)][_0x238d68(0x28b)](({fromUnitId:_0x57984d,fromSubUnitId:_0x202093,toUnitId:_0x2c49ed,toSubUnitId:_0x1ffe02,idMap:_0x5eabbc})=>{const _0x539017=_0x238d68;let _0x386713=[],_0x36fc46=[];for(let [_0x14e1b4,_0x35d1a6]of _0x5eabbc[_0x539017(0x17e)]()){let _0x47d1bd=this['_shapeService'][_0x539017(0x1cf)](_0x57984d,_0x202093,_0x14e1b4);if(!_0x47d1bd)continue;let _0x1d00aa=_0x47d1bd[_0x539017(0x134)](),_0x597d06=JSON[_0x539017(0x37b)](JSON[_0x539017(0x1c4)](_0x47d1bd[_0x539017(0x1c7)]()));if(_0x597d06[_0x539017(0x2df)]){var _0x3c3b23,_0x26b7da;let _0x3f9b93=(_0x3c3b23=_0x597d06[_0x539017(0x2df)]['from'])==null?void 0x0:_0x3c3b23[_0x539017(0x275)],_0x4702f3=(_0x26b7da=_0x597d06['relation']['to'])==null?void 0x0:_0x26b7da[_0x539017(0x275)],_0x59d021=!_0x3f9b93||_0x5eabbc['has'](_0x3f9b93),_0x58621f=!_0x4702f3||_0x5eabbc[_0x539017(0x104)](_0x4702f3);_0x59d021&&_0x3f9b93&&_0x597d06['relation'][_0x539017(0x139)]?_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]={..._0x597d06[_0x539017(0x2df)][_0x539017(0x139)],'shapeId':_0x5eabbc['get'](_0x3f9b93)}:_0x597d06[_0x539017(0x2df)][_0x539017(0x139)]=void 0x0,_0x58621f&&_0x4702f3&&_0x597d06[_0x539017(0x2df)]['to']?_0x597d06[_0x539017(0x2df)]['to']={..._0x597d06[_0x539017(0x2df)]['to'],'shapeId':_0x5eabbc[_0x539017(0x14a)](_0x4702f3)}:_0x597d06[_0x539017(0x2df)]['to']=void 0x0;}_0x386713[_0x539017(0x29a)]({'id':_0x5cdf0c['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6,'shapeType':_0x1d00aa,'shapeData':_0x597d06}}),_0x36fc46[_0x539017(0x29a)]({'id':_0x10857b['id'],'params':{'unitId':_0x2c49ed,'subUnitId':_0x1ffe02,'shapeId':_0x35d1a6}});}return{'redos':_0x386713,'undos':_0x36fc46};});}[_0x232df7(0x24d)](){const _0x2b8bd7=_0x232df7;this[_0x2b8bd7(0x2db)](this[_0x2b8bd7(0x19e)][_0x2b8bd7(0x1f4)]({'id':_0x2b8bd7(0x249),'onBeforeCopyFocusedObject':(_0x41bacb,_0x45e5e8,_0x5636a0)=>{const _0x6c7ad6=_0x2b8bd7;this[_0x6c7ad6(0x29e)]=null;let _0x18fa6=this[_0x6c7ad6(0x315)][_0x6c7ad6(0x34b)](_0x3ca333=>_0x3ca333[_0x6c7ad6(0x183)]===_0x190419[_0x6c7ad6(0x21d)]);return _0x18fa6[_0x6c7ad6(0x333)]!==0x0&&(this[_0x6c7ad6(0x29e)]={'unitId':_0x41bacb,'subUnitId':_0x45e5e8,'copyType':_0x5636a0,'drawings':_0x18fa6},!0x0);},'onBeforeCopy':(_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f)=>{const _0x564fa4=_0x2b8bd7;this[_0x564fa4(0x29e)]=null,this[_0x564fa4(0x34a)](_0xee70e1,_0x1ae29a,_0x27511a,_0x398b4f);},'onPasteCells':(_0x3f99c8,_0x70ca2c,_0x48da25,_0x29d3c8)=>{const _0x282cbe=_0x2b8bd7;if(!_0x29d3c8[_0x282cbe(0x368)]||!_0x3f99c8||!this[_0x282cbe(0x29e)])return{'redos':[],'undos':[]};let {pasteType:_0x3e27e0}=_0x29d3c8;return _0x3e27e0===_0x2bfd21['DEFAULT_PASTE']?this[_0x282cbe(0x303)](_0x70ca2c,this['_copyInfo'][_0x282cbe(0x1ed)]===_0x536860['CUT']):{'redos':[],'undos':[]};}}));}['_createCopyInfoByRange'](_0x311a8e,_0x365c50,_0x563df6,_0x2b4617){const _0x426658=_0x232df7;let _0x532a7d=this[_0x426658(0x316)][_0x426658(0x38a)](_0x311a8e,_0x365c50);if(!_0x532a7d)return;let _0x38f05b=_0x3b9770(_0x532a7d,_0x563df6);if(!_0x38f05b)return;let {startX:_0x41ae44,endX:_0xfd5a83,startY:_0x23bad3,endY:_0x348574}=_0x38f05b,_0xba0d56=this[_0x426658(0x1fa)][_0x426658(0x11b)](_0x311a8e,_0x365c50),_0x22c774=[];for(let [_0x5cbc4a,_0x2d4afe]of Object[_0x426658(0x17e)](_0xba0d56)){if(_0x2d4afe[_0x426658(0x183)]!==_0x190419['DRAWING_SHAPE'])continue;let {transform:_0x22ffbd}=_0x2d4afe;if(!_0x22ffbd)continue;let {left:_0x4ce995=0x0,top:_0x166bae=0x0,width:_0x82f556=0x0,height:_0x107963=0x0}=_0x22ffbd;_0x41ae44<=_0x4ce995&&_0xfd5a83>=_0x4ce995+_0x82f556&&_0x23bad3<=_0x166bae&&_0x348574>=_0x166bae+_0x107963&&_0x22c774['push'](_0x2d4afe);}_0x22c774[_0x426658(0x333)]>0x0&&(this[_0x426658(0x29e)]={'unitId':_0x311a8e,'subUnitId':_0x365c50,'copyType':_0x2b4617,'copyRange':_0x563df6,'drawings':_0x22c774});}[_0x232df7(0x303)](_0x2dd269,_0x58ff95){const _0x24138f=_0x232df7;let {unitId:_0x47e959,subUnitId:_0xcd8de6,range:_0x340b85}=_0x2dd269,_0x38a708=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x47e959,_0xcd8de6);if(!_0x38a708)return{'redos':[],'undos':[]};let _0x1aa71c=_0x3062da(_0x340b85),{unitId:_0x358d01,subUnitId:_0x1dd978,copyRange:_0x4a03d5,drawings:_0x3ea1e2}=this[_0x24138f(0x29e)],_0x3938ea=this[_0x24138f(0x316)][_0x24138f(0x38a)](_0x358d01,_0x1dd978);if(!_0x3938ea)return{'redos':[],'undos':[]};let _0x18af2b;if(!_0x4a03d5){let _0x578ba2=0x1/0x0,_0x17a69f=0x1/0x0;for(let _0x38fe3c of _0x3ea1e2){let {left:_0x3ed2cb=0x0,top:_0x3e7766=0x0}=_0x38fe3c[_0x24138f(0x15f)]??{};_0x3ed2cb<_0x578ba2&&(_0x578ba2=_0x3ed2cb),_0x3e7766<_0x17a69f&&(_0x17a69f=_0x3e7766);}_0x578ba2!==0x1/0x0&&_0x17a69f!==0x1/0x0&&(_0x18af2b={'left':_0x578ba2,'top':_0x17a69f});}let _0x22d4e4=new Map();if(!_0x58ff95){for(let _0x10b233 of _0x3ea1e2)_0x22d4e4[_0x24138f(0x2e6)](_0x10b233[_0x24138f(0x36c)],_0x3a0ce3());}let _0x535111=[],_0x192693=[];for(let _0x5289aa of _0x3ea1e2){let {drawingId:_0x59f7dd,transform:_0x53acc3,sheetTransform:_0x1b7167}=_0x5289aa;if(!_0x53acc3||!_0x1b7167)continue;let _0x174294=this[_0x24138f(0x117)]({'transform':_0x53acc3,'sheetTransform':_0x1b7167},{'skeleton':_0x3938ea,'range':_0x4a03d5},{'skeleton':_0x38a708,'range':_0x1aa71c},_0x18af2b);if(_0x58ff95){let {redos:_0x8b3597,undos:_0x2a2607}=this[_0x24138f(0x266)]({'fromUnitId':_0x358d01,'fromSubUnitId':_0x1dd978,'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294});_0x535111[_0x24138f(0x29a)](..._0x8b3597),_0x192693[_0x24138f(0x29a)](..._0x2a2607);continue;}let {redos:_0x2b9411,undos:_0x1b38cc}=this['_generateCopyPasteMutations']({'toUnitId':_0x47e959,'toSubUnitId':_0xcd8de6,'drawing':_0x5289aa,'newTransforms':_0x174294,'newDrawingId':_0x22d4e4[_0x24138f(0x14a)](_0x59f7dd),'idMap':_0x22d4e4});_0x535111[_0x24138f(0x29a)](..._0x2b9411),_0x192693[_0x24138f(0x29a)](..._0x1b38cc);}return{'redos':_0x535111,'undos':_0x192693};}[_0x232df7(0x266)](_0x417c14){const _0x40e730=_0x232df7;let {fromUnitId:_0xdfc7f9,fromSubUnitId:_0x430670,toUnitId:_0x59d09f,toSubUnitId:_0x461227,drawing:_0x10b6e0,newTransforms:_0x10b842}=_0x417c14,_0x217b39={..._0x10b6e0,'unitId':_0x59d09f,'subUnitId':_0x461227,'transform':_0x10b842['transform'],'sheetTransform':_0x10b842['sheetTransform']};if(_0x59d09f===_0xdfc7f9&&_0x461227===_0x430670){let {redo:_0x27813d,undo:_0x503ea2,objects:_0x5aefc8}=this[_0x40e730(0x1fa)][_0x40e730(0x29f)]([_0x217b39]);return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x27813d,'objects':_0x5aefc8}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x1b1)],'op':_0x503ea2,'objects':_0x5aefc8}}]};}{let _0x3e3a46=this[_0x40e730(0x1fa)][_0x40e730(0x154)]([_0x10b6e0]),_0xfb0b60=this['_sheetDrawingService'][_0x40e730(0x295)]([_0x217b39]),_0x524ee2=this[_0x40e730(0x39f)][_0x40e730(0x1cf)](_0x10b6e0[_0x40e730(0x1e3)],_0x10b6e0[_0x40e730(0x26c)],_0x10b6e0[_0x40e730(0x36c)]);if(!_0x524ee2)return{'redos':[],'undos':[]};let _0x1068d7=_0x524ee2[_0x40e730(0x134)](),_0x2467b7=JSON[_0x40e730(0x37b)](JSON[_0x40e730(0x1c4)](_0x524ee2[_0x40e730(0x1c7)]()));return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['REMOVE'],'op':_0x3e3a46[_0x40e730(0x2ff)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448['INSERT'],'op':_0xfb0b60[_0x40e730(0x2ff)],'objects':_0xfb0b60['objects']}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'type':_0x4be448['INSERT'],'op':_0x3e3a46[_0x40e730(0x1ce)],'objects':_0x3e3a46[_0x40e730(0x2f7)]}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0xdfc7f9,'subUnitId':_0x430670,'shapeId':_0x10b6e0[_0x40e730(0x36c)],'shapeType':_0x1068d7,'shapeData':_0x2467b7}},{'id':_0x5097ca['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'type':_0x4be448[_0x40e730(0x229)],'op':_0xfb0b60[_0x40e730(0x1ce)],'objects':_0xfb0b60[_0x40e730(0x2f7)]}},{'id':_0x10857b['id'],'params':{'unitId':_0x59d09f,'subUnitId':_0x461227,'shapeId':_0x10b6e0[_0x40e730(0x36c)]}}]};}}['_generateCopyPasteMutations'](_0x1b9a7c){const _0x264644=_0x232df7;let {toUnitId:_0x469779,toSubUnitId:_0x4b8f7b,drawing:_0x130fb8,newTransforms:_0x56417a,newDrawingId:_0x1b3e14,idMap:_0x1c9060}=_0x1b9a7c,_0xe233d2={..._0x130fb8,'unitId':_0x469779,'subUnitId':_0x4b8f7b,'drawingId':_0x1b3e14,'transform':_0x56417a['transform'],'sheetTransform':_0x56417a[_0x264644(0x2a0)]},{redo:_0x4b8ee3,undo:_0x4dbebd,objects:_0x370476}=this[_0x264644(0x1fa)][_0x264644(0x295)]([_0xe233d2]),_0x9d3d6e=this[_0x264644(0x39f)][_0x264644(0x1cf)](_0x130fb8[_0x264644(0x1e3)],_0x130fb8['subUnitId'],_0x130fb8[_0x264644(0x36c)]);if(!_0x9d3d6e)return{'redos':[],'undos':[]};let _0x2a5148=_0x9d3d6e[_0x264644(0x134)](),_0xb9f6d3=JSON[_0x264644(0x37b)](JSON[_0x264644(0x1c4)](_0x9d3d6e[_0x264644(0x1c7)]()));if(_0xb9f6d3[_0x264644(0x2df)]){var _0x331fea,_0x30fe50;let _0x5ea3bb=(_0x331fea=_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)])==null?void 0x0:_0x331fea[_0x264644(0x275)],_0x271ca6=(_0x30fe50=_0xb9f6d3[_0x264644(0x2df)]['to'])==null?void 0x0:_0x30fe50[_0x264644(0x275)],_0x494751=!_0x5ea3bb||_0x1c9060[_0x264644(0x104)](_0x5ea3bb),_0x5ecf8=!_0x271ca6||_0x1c9060[_0x264644(0x104)](_0x271ca6);_0x494751&&_0x5ea3bb&&_0xb9f6d3['relation']['from']?_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]={..._0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x5ea3bb)}:_0xb9f6d3[_0x264644(0x2df)][_0x264644(0x139)]=void 0x0,_0x5ecf8&&_0x271ca6&&_0xb9f6d3['relation']['to']?_0xb9f6d3[_0x264644(0x2df)]['to']={..._0xb9f6d3[_0x264644(0x2df)]['to'],'shapeId':_0x1c9060[_0x264644(0x14a)](_0x271ca6)}:_0xb9f6d3[_0x264644(0x2df)]['to']=void 0x0;}return{'redos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448[_0x264644(0x26b)],'op':_0x4b8ee3,'objects':_0x370476}},{'id':_0x5cdf0c['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14,'shapeType':_0x2a5148,'shapeData':_0xb9f6d3}}],'undos':[{'id':_0x5097ca['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'type':_0x4be448['REMOVE'],'op':_0x4dbebd,'objects':_0x370476}},{'id':_0x10857b['id'],'params':{'unitId':_0x469779,'subUnitId':_0x4b8f7b,'shapeId':_0x1b3e14}}]};}['_updateTransform'](_0x52e4ed,_0xa0a15c,_0x38a866,_0x5ce333){const _0x2a203c=_0x232df7;let {range:_0x326e6f,skeleton:_0x2fabd1}=_0xa0a15c,{range:_0x4e08de,skeleton:_0x384823}=_0x38a866,{transform:_0x5b183a,sheetTransform:_0x403fab}=_0x52e4ed,_0x2ab6b9={..._0x5b183a};if(_0x326e6f){let _0x6c9da0=_0x3b9770(_0x2fabd1,_0x326e6f),_0x51bdbb=_0x3b9770(_0x384823,_0x4e08de);if(_0x6c9da0&&_0x51bdbb){let _0x348d7a=_0x51bdbb[_0x2a203c(0x17f)]-_0x6c9da0['startX'],_0x335481=_0x51bdbb['startY']-_0x6c9da0[_0x2a203c(0x300)];_0x2ab6b9[_0x2a203c(0xe4)]=(_0x2ab6b9[_0x2a203c(0xe4)]??0x0)+_0x348d7a,_0x2ab6b9[_0x2a203c(0x1b9)]=(_0x2ab6b9['top']??0x0)+_0x335481;}}else{let _0x24268e=_0x3b9770(_0x384823,_0x4e08de);if(_0x5ce333&&_0x24268e){let _0x144a90=(_0x2ab6b9['left']??0x0)-_0x5ce333[_0x2a203c(0xe4)],_0x2985f2=(_0x2ab6b9['top']??0x0)-_0x5ce333['top'];_0x2ab6b9[_0x2a203c(0xe4)]=_0x24268e[_0x2a203c(0x17f)]+_0x144a90,_0x2ab6b9[_0x2a203c(0x1b9)]=_0x24268e[_0x2a203c(0x300)]+_0x2985f2;}else _0x2ab6b9['left']=_0x24268e==null?void 0x0:_0x24268e['startX'],_0x2ab6b9['top']=_0x24268e==null?void 0x0:_0x24268e[_0x2a203c(0x300)];}return{'transform':_0x2ab6b9,'sheetTransform':_0x1f42db(_0x2ab6b9,_0x384823)??_0x403fab};}};fa=X([Y(0x0,_0x229e82(_0x117a83)),Y(0x1,_0x229e82(_0x2be9d9)),Y(0x2,_0x229e82(_0x4458c8)),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x344b7d))],fa);var pa=class extends _0x147ce5{constructor(_0x248ef3,_0x13311e){const _0x2d53c2=_0x232df7;super(_0x248ef3,_0x13311e),q(this,_0x2d53c2(0x1f2),null),q(this,'_index',null),q(this,_0x2d53c2(0x102),null),q(this,_0x2d53c2(0x161),null),q(this,'_isStartConnectorPoint',!0x1),_0x13311e&&this[_0x2d53c2(0x1da)](_0x13311e);}[_0x232df7(0xe5)](){const _0x2d82c3=_0x232df7;return{'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this[_0x2d82c3(0x1f2)]};}['setShapeProps'](_0x35e148){const _0x1c4545=_0x232df7;_0x35e148[_0x1c4545(0x275)]!==void 0x0&&(this[_0x1c4545(0x1f2)]=_0x35e148[_0x1c4545(0x275)]),_0x35e148['unitId']!==void 0x0&&(this[_0x1c4545(0x102)]=_0x35e148[_0x1c4545(0x1e3)]),_0x35e148['subUnitId']!==void 0x0&&(this[_0x1c4545(0x161)]=_0x35e148[_0x1c4545(0x26c)]),_0x35e148['isStartConnectorPoint']!==void 0x0&&(this[_0x1c4545(0x186)]=_0x35e148['isStartConnectorPoint']),this[_0x1c4545(0x234)]({'width':_0x35e148[_0x1c4545(0x324)],'height':_0x35e148[_0x1c4545(0x39a)]});}[_0x232df7(0x356)](_0xc4e89c){const _0x2619ba=_0x232df7;_0x4a02a1[_0x2619ba(0x1a8)](_0xc4e89c,{'radius':_0x4c61a8[_0x2619ba(0x215)],'fill':_0x4c61a8[_0x2619ba(0x256)],'stroke':_0x4c61a8[_0x2619ba(0x12a)],'strokeWidth':_0x4c61a8[_0x2619ba(0x340)],'evented':!0x0});}};let ma=class extends _0x2bb0e8{constructor(_0x202c89,_0x190230,_0x311cda,_0xe5df12,_0xb71360,_0x30bfbd,_0x383626,_0x4dd0d9){const _0x35c7a4=_0x232df7;super(),this[_0x35c7a4(0x35d)]=_0x202c89,this[_0x35c7a4(0x232)]=_0x190230,this[_0x35c7a4(0x209)]=_0x311cda,this[_0x35c7a4(0x11c)]=_0xe5df12,this[_0x35c7a4(0x2d4)]=_0xb71360,this[_0x35c7a4(0x3aa)]=_0x30bfbd,this[_0x35c7a4(0x37e)]=_0x383626,this['_sheetBasicShapeConnectionPointController']=_0x4dd0d9,q(this,_0x35c7a4(0x362),void 0x0),q(this,_0x35c7a4(0x102),void 0x0),q(this,'_subUnitId',void 0x0),q(this,'_connectorObjects',[]),q(this,'_baseDrawingRect',{'left':0x0,'top':0x0,'width':0x0,'height':0x0,'flipX':!0x1,'flipY':!0x1}),q(this,_0x35c7a4(0x1d8),void 0x0),q(this,_0x35c7a4(0x322),!0x1),q(this,_0x35c7a4(0x272),!0x1),q(this,_0x35c7a4(0x355),!0x1),q(this,_0x35c7a4(0x2d6),void 0x0),q(this,_0x35c7a4(0x167),void 0x0),q(this,_0x35c7a4(0x223),null),this['_initialize']();}['_initialize'](){this['_registerDrawingFocusChangeHandler'](),this['_registerDrawingMoveHandler']();}[_0x232df7(0x349)](){const _0x4e0fe6=_0x232df7;if(!this['_unitId']||!this[_0x4e0fe6(0x161)]||!this['_activeShapeId'])return;let _0x2e89d2={'unitId':this['_unitId'],'subUnitId':this[_0x4e0fe6(0x161)],'drawingId':this['_activeShapeId']},{transform:_0x58e3d8}=this['_drawingManagerService']['getDrawingByParam'](_0x2e89d2);if(_0x58e3d8)return{'left':_0x58e3d8[_0x4e0fe6(0xe4)]||0x0,'top':_0x58e3d8[_0x4e0fe6(0x1b9)]||0x0,'width':_0x58e3d8[_0x4e0fe6(0x324)]||0x0,'height':_0x58e3d8[_0x4e0fe6(0x39a)]||0x0,'flipX':_0x58e3d8['flipX']||!0x1,'flipY':_0x58e3d8[_0x4e0fe6(0x25e)]||!0x1,'angle':_0x58e3d8[_0x4e0fe6(0x140)]};}['_addShapeConnectorHandlerObjects'](){const _0x45cb3a=_0x232df7;if(this[_0x45cb3a(0x102)]===void 0x0||this[_0x45cb3a(0x161)]===void 0x0||this[_0x45cb3a(0x362)]===void 0x0)return;let _0x4d5ec2=this[_0x45cb3a(0x209)][_0x45cb3a(0x124)](this[_0x45cb3a(0x102)]);if(!_0x4d5ec2||!_0x4d5ec2['with'](_0x54a66d)[_0x45cb3a(0x2ee)]())return;let {scene:_0x26854a}=_0x4d5ec2,_0x50bd94=this[_0x45cb3a(0x349)]();if(!_0x50bd94)return;let _0x3b5ee2=this[_0x45cb3a(0x3aa)][_0x45cb3a(0x1cf)](this['_unitId'],this[_0x45cb3a(0x161)],this[_0x45cb3a(0x362)]);if(!_0x3b5ee2||!_0x52f76f(_0x3b5ee2[_0x45cb3a(0x134)]()))return;let _0x37cba0=_0x3b5ee2[_0x45cb3a(0x2e3)]();if(_0x37cba0[_0x45cb3a(0x333)]<0x2)return;let _0x5356b4=new _0x5d44cb(_0x50bd94),_0x36bbb8=_0x37cba0[0x0],_0x4cda89=_0x37cba0[_0x37cba0[_0x45cb3a(0x333)]-0x1],_0x43592e=_0x5356b4[_0x45cb3a(0x31a)](_0x36bbb8),_0x2fa5da=_0x5356b4['localToWorld'](_0x4cda89);this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x43592e},!0x0),this[_0x45cb3a(0x2a4)](_0x26854a,{..._0x2fa5da},!0x1);}[_0x232df7(0x2a4)](_0x24faa9,_0x33ba17,_0x148860){const _0x10441c=_0x232df7;if(this[_0x10441c(0x362)]===void 0x0||this[_0x10441c(0x102)]===void 0x0||this[_0x10441c(0x161)]===void 0x0)return;let _0x4e08b7='connector-handler-'+this[_0x10441c(0x102)]+'-'+this[_0x10441c(0x161)]+'-'+this['_activeShapeId']+'-'+(_0x148860?_0x10441c(0x2ba):_0x10441c(0x100)),_0x39c9a4=_0x24faa9[_0x10441c(0x3a9)](_0x4e08b7);if(_0x39c9a4){_0x39c9a4[_0x10441c(0x234)]({'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)]});return;}let _0x1c436a=new pa(_0x4e08b7,{'left':_0x33ba17['x']-_0x4c61a8['cxnPointRadius'],'top':_0x33ba17['y']-_0x4c61a8[_0x10441c(0x215)],'shapeId':this[_0x10441c(0x362)],'unitId':this[_0x10441c(0x102)],'subUnitId':this['_subUnitId'],'isStartConnectorPoint':_0x148860,'width':_0x4c61a8['cxnPointRadius']*0x2,'height':_0x4c61a8[_0x10441c(0x215)]*0x2,'zIndex':_0x4489b8+0x1,'evented':!0x0});this[_0x10441c(0x32d)][_0x10441c(0x29a)](_0x1c436a),this[_0x10441c(0x153)](_0x1c436a,_0x24faa9,_0x148860),_0x24faa9[_0x10441c(0x23d)](_0x1c436a,_0x4489b8+0x1);}[_0x232df7(0x1c6)](_0x5a03b0,_0x33dbf8){const _0x1562b1=_0x232df7;var _0x2f7de9;let _0x2365b2={'x':0x0,'y':0x0};if(!_0x5a03b0||!_0x33dbf8)return _0x2365b2;let _0x3fa373=this[_0x1562b1(0x209)][_0x1562b1(0x124)](_0x5a03b0);if(!_0x3fa373||!_0x3fa373[_0x1562b1(0x18c)](_0x54a66d)['getSkeleton'](_0x33dbf8))return _0x2365b2;let _0xe39df5=_0x3fa373[_0x1562b1(0x18c)](_0x5ccab7),_0x263bce=_0xe39df5==null?void 0x0:_0xe39df5[_0x1562b1(0x1e9)]();if(!_0x263bce)return _0x2365b2;let _0x474cee=(_0x2f7de9=this[_0x1562b1(0x2d4)][_0x1562b1(0x2e7)](_0x5a03b0))==null?void 0x0:_0x2f7de9[_0x1562b1(0x339)](_0x33dbf8);if(!_0x474cee)return _0x2365b2;let _0x9831f=_0x56d9fe(_0x263bce[_0x1562b1(0x205)],_0x263bce[_0x1562b1(0x3ab)],_0x3fa373[_0x1562b1(0x381)],_0x474cee);return _0x9831f?{'x':_0x9831f[_0x1562b1(0x397)],'y':_0x9831f[_0x1562b1(0x125)]}:_0x2365b2;}[_0x232df7(0x1d9)](_0x4d7dc3,_0x237d82){const _0x4aa14a=_0x232df7;var _0x2e4b97;let _0x30d56f=(_0x2e4b97=this[_0x4aa14a(0x2d4)][_0x4aa14a(0x2e7)](_0x4d7dc3))==null?void 0x0:_0x2e4b97[_0x4aa14a(0x339)](_0x237d82);return(_0x30d56f==null?void 0x0:_0x30d56f[_0x4aa14a(0x3a7)]())??0x1;}[_0x232df7(0x38f)](_0x55b758,_0x5823f9,_0x32909e,_0x3c637e,_0x8bcc7a){const _0x5e9b9b=_0x232df7;this['_cxtHandlerPointerMove']['unsubscribe'](),this[_0x5e9b9b(0x167)]['unsubscribe'](),this['_sheetShapeAdjustController'][_0x5e9b9b(0x1cb)]();let _0x583b3b=this[_0x5e9b9b(0x223)];this[_0x5e9b9b(0x31f)][_0x5e9b9b(0x380)]();let _0xc7a2fd=this[_0x5e9b9b(0x1c6)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x22d4ea=this[_0x5e9b9b(0x1d9)](this['_unitId'],this[_0x5e9b9b(0x161)]),_0x3166ab={'x':_0x32909e['offsetX']/_0x22d4ea+_0xc7a2fd['x'],'y':_0x32909e[_0x5e9b9b(0x1d6)]/_0x22d4ea+_0xc7a2fd['y']},_0x1a024e=_0x583b3b?_0x583b3b[_0x5e9b9b(0x1ba)]:_0x3166ab,_0x344632=_0x3c637e?this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x148)]():this[_0x5e9b9b(0x1d8)][_0x5e9b9b(0x168)](),_0x1d5483=this['_activeShapeModel'][_0x5e9b9b(0x134)]();_0x344632?this['_handleConnectedEndpointPointerUp'](_0x344632,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a):this[_0x5e9b9b(0x2d9)](_0x5823f9,_0x1a024e,_0x3c637e,_0x583b3b,_0x8bcc7a,_0x1d5483),this['_isConnecting']=!0x1,this[_0x5e9b9b(0x355)]=!0x1,this[_0x5e9b9b(0x223)]=null,_0x55b758[_0x5e9b9b(0x34f)]();}[_0x232df7(0x2d9)](_0x45087e,_0x5b940d,_0x5806c2,_0x3f191c,_0x42256d,_0x9a93d5){const _0x2831ce=_0x232df7;let _0x5e580a=_0x9a93d5===_0xe73d9c[_0x2831ce(0x171)]||_0x9a93d5===_0xe73d9c[_0x2831ce(0x365)],_0x3060f5=_0x5806c2?_0x5b940d:_0x45087e,_0x4fda38=_0x5806c2?_0x45087e:_0x5b940d,_0x14b587=this[_0x2831ce(0x1d8)]['getConnectorLinePoints'](),_0x7fb144=this[_0x2831ce(0x1d8)][_0x2831ce(0x134)](),_0x1e3567=_0x2be336(_0x7fb144),_0xa4a612=_0x5d44cb[_0x2831ce(0x131)](_0x14b587,_0x1e3567),_0x60f45f=_0x5e580a?_0x5d44cb[_0x2831ce(0x341)](_0x3060f5,_0x4fda38):_0x5d44cb['computeConnectorResizeLayout'](_0x45087e,_0x5b940d,_0x5806c2,_0xa4a612);_0x3f191c?this['_executeConnectionCommand'](_0x60f45f,_0x3f191c,_0x5806c2,_0x42256d):this[_0x2831ce(0x248)](_0x60f45f,_0x42256d);}[_0x232df7(0x177)](_0x282c81,_0x5e8b3d,_0x5611f7,_0x5614ed,_0x14e0b1){const _0x3a1b4b=_0x232df7;let _0x1bc0b6=this[_0x3a1b4b(0x20d)](_0x282c81);if(!_0x1bc0b6)return;let _0x4b80a6=_0x5614ed?_0x5614ed[_0x3a1b4b(0x140)]:this[_0x3a1b4b(0x2c0)](_0x1bc0b6[_0x3a1b4b(0x32a)],_0x5e8b3d),_0x597e90;if(_0x5614ed){let _0x3bb68a=this[_0x3a1b4b(0x11c)][_0x3a1b4b(0x282)]({'unitId':_0x5614ed['unitId'],'subUnitId':_0x5614ed[_0x3a1b4b(0x26c)],'drawingId':_0x5614ed[_0x3a1b4b(0x275)]});if(_0x3bb68a!=null&&_0x3bb68a['transform']){let {left:_0x3ac22d=0x0,top:_0xd1713c=0x0,width:_0x59273c=0x0,height:_0x69957a=0x0,angle:_0x2c9164}=_0x3bb68a[_0x3a1b4b(0x15f)];_0x597e90=_0x109e70({'left':_0x3ac22d,'top':_0xd1713c,'width':_0x59273c,'height':_0x69957a},_0x2c9164||0x0);}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};}else _0x597e90={'left':_0x5e8b3d['x'],'top':_0x5e8b3d['y'],'width':0x0,'height':0x0};let _0x6e05ca={'point':_0x5e8b3d,'angle':_0x4b80a6,'bounds':_0x597e90},_0x55bec6=_0x5611f7?_0x6e05ca:_0x1bc0b6,_0x1aa3f0=_0x5611f7?_0x1bc0b6:_0x6e05ca,_0x40b57d=this[_0x3a1b4b(0x1d8)]['getShapeType'](),_0x2b6145=_0x201266(_0x55bec6,_0x1aa3f0,_0x40b57d);this['_activeShapeModel'][_0x3a1b4b(0x113)]();let _0x13abfe=_0x3cbafa(_0x2b6145,_0x40b57d);_0x5614ed?this[_0x3a1b4b(0x24a)](_0x13abfe,_0x5614ed,_0x282c81,_0x5611f7,_0x14e0b1):this['_executeConnectedRouteResizeCommand'](_0x13abfe,_0x282c81,_0x5611f7,_0x14e0b1);}[_0x232df7(0xdf)](_0x73caf7,_0x1fbf15,_0x4c8791,_0x221195){const _0x233468=_0x232df7;let _0x40c1ae=this[_0x233468(0x1d8)][_0x233468(0x1c7)]()[_0x233468(0x2df)],_0xbfafed={..._0x40c1ae},_0x19ced5={'shapeId':_0x1fbf15[_0x233468(0x275)],'cxnIndex':_0x1fbf15[_0x233468(0x1fb)]};_0x4c8791?_0xbfafed[_0x233468(0x139)]=_0x19ced5:_0xbfafed['to']=_0x19ced5;let _0x58918f=this[_0x233468(0x1d8)][_0x233468(0x134)](),_0x1e5c6d=_0x3cbafa(_0x73caf7[_0x233468(0x12d)],_0x58918f),_0x1b824a={'unitId':this['_unitId'],'subUnitId':this[_0x233468(0x161)],'connectorShapeId':this[_0x233468(0x362)],'width':_0x73caf7[_0x233468(0x214)][_0x233468(0x324)],'height':_0x73caf7[_0x233468(0x214)]['height'],'left':_0x73caf7[_0x233468(0x214)]['left'],'top':_0x73caf7[_0x233468(0x214)][_0x233468(0x1b9)],'flipX':_0x73caf7['worldRect'][_0x233468(0x270)]||!0x1,'flipY':_0x73caf7[_0x233468(0x214)]['flipY']||!0x1,'newAdjustValues':_0x1e5c6d[_0x233468(0x29d)],'oldAdjustValues':_0x221195,'oldRelation':_0x40c1ae,'newRelation':_0xbfafed,'newLineType':_0x1e5c6d[_0x233468(0x130)],'oldLineType':_0x58918f};this['_commandService']['executeCommand'](_0xa22292['id'],_0x1b824a);}[_0x232df7(0x248)](_0x243b51,_0x23c366){const _0x3cbd26=_0x232df7;let _0x2eafe7=this['_activeShapeModel'][_0x3cbd26(0x134)](),_0x2cfa73=_0x3cbafa(_0x243b51[_0x3cbd26(0x12d)],_0x2eafe7),_0x657ed9={'unitId':this[_0x3cbd26(0x102)],'subUnitId':this[_0x3cbd26(0x161)],'shapeId':this['_activeShapeId'],'width':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x324)],'height':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x39a)],'left':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0xe4)],'top':_0x243b51[_0x3cbd26(0x214)]['top'],'flipX':_0x243b51[_0x3cbd26(0x214)]['flipX']||!0x1,'flipY':_0x243b51[_0x3cbd26(0x214)][_0x3cbd26(0x25e)]||!0x1,'angle':_0x243b51[_0x3cbd26(0x214)]['angle']||0x0,'newAdjustValues':_0x2cfa73['adjustValues'],'oldAdjustValues':_0x23c366,'newLineType':_0x2cfa73[_0x3cbd26(0x130)],'oldLineType':_0x2eafe7};this[_0x3cbd26(0x232)][_0x3cbd26(0x286)](_0x44659f['id'],_0x657ed9);}['_executeConnectedRouteConnectionCommand'](_0x5c7290,_0x286bcd,_0x4d99d1,_0x361e8c,_0xf4a4f6){const _0x31171c=_0x232df7;let _0x495683=this[_0x31171c(0x1d8)][_0x31171c(0x1c7)]()['relation'],_0x15b4a7={..._0x495683},_0x54f007={'shapeId':_0x286bcd[_0x31171c(0x275)],'cxnIndex':_0x286bcd[_0x31171c(0x1fb)]};_0x361e8c?(_0x15b4a7['from']=_0x54f007,_0x15b4a7['to']=_0x4d99d1):(_0x15b4a7['from']=_0x4d99d1,_0x15b4a7['to']=_0x54f007);let _0x10e81b={'unitId':this[_0x31171c(0x102)],'subUnitId':this['_subUnitId'],'connectorShapeId':this[_0x31171c(0x362)],'width':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x324)],'height':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x39a)],'left':_0x5c7290[_0x31171c(0x214)]['left'],'top':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x1b9)],'flipX':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x270)]||!0x1,'flipY':_0x5c7290[_0x31171c(0x214)][_0x31171c(0x25e)]||!0x1,'oldAdjustValues':_0xf4a4f6,'newAdjustValues':_0x5c7290[_0x31171c(0x29d)],'newLineType':_0x5c7290['lineType'],'rotation':_0x5c7290[_0x31171c(0x264)],'oldRelation':_0x495683,'newRelation':_0x15b4a7};this['_commandService'][_0x31171c(0x286)](_0xa22292['id'],_0x10e81b);}['_executeConnectedRouteResizeCommand'](_0x20c5c2,_0x34e93f,_0x20e42c,_0x24fcd6){const _0x5aa060=_0x232df7;let _0x3517ee=this[_0x5aa060(0x1d8)]['getShapeData']()[_0x5aa060(0x2df)],_0x4dd86b={};_0x20e42c?(_0x4dd86b['to']=_0x34e93f,_0x4dd86b[_0x5aa060(0x139)]=void 0x0):(_0x4dd86b['from']=_0x34e93f,_0x4dd86b['to']=void 0x0);let _0x3b3e6d={'unitId':this[_0x5aa060(0x102)],'subUnitId':this[_0x5aa060(0x161)],'connectorShapeId':this[_0x5aa060(0x362)],'width':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x324)],'height':_0x20c5c2['worldRect']['height'],'left':_0x20c5c2[_0x5aa060(0x214)]['left'],'top':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x1b9)],'flipX':_0x20c5c2[_0x5aa060(0x214)]['flipX']||!0x1,'flipY':_0x20c5c2[_0x5aa060(0x214)][_0x5aa060(0x25e)]||!0x1,'oldAdjustValues':_0x24fcd6,'newAdjustValues':_0x20c5c2[_0x5aa060(0x29d)],'newLineType':_0x20c5c2[_0x5aa060(0x130)],'rotation':_0x20c5c2[_0x5aa060(0x264)],'oldRelation':_0x3517ee,'newRelation':_0x4dd86b};this['_commandService'][_0x5aa060(0x286)](_0xa22292['id'],_0x3b3e6d);}[_0x232df7(0x153)](_0x272239,_0x90e0ef,_0x554ea1){const _0x5a4e58=_0x232df7;this[_0x5a4e58(0x2db)](_0x169987(_0x272239[_0x5a4e58(0x197)][_0x5a4e58(0x2e4)]((_0x15054b,_0x5a5ed0)=>{const _0x1ad76c=_0x5a4e58;let _0x2c233f=_0x272239[_0x1ad76c(0xe5)]();if(this['_activeShapeModel']=this['_sheetsShapeService'][_0x1ad76c(0x1cf)](_0x2c233f[_0x1ad76c(0x1e3)],_0x2c233f[_0x1ad76c(0x26c)],_0x2c233f['drawingId']),!this[_0x1ad76c(0x1d8)])return;let _0x3462ef={};this[_0x1ad76c(0x1d8)][_0x1ad76c(0x12f)]()['forEach'](_0x154aaa=>{const _0x247391=_0x1ad76c;let _0xd27e1a=this[_0x247391(0x1d8)][_0x247391(0x357)](_0x154aaa);_0xd27e1a!==void 0x0&&(_0x3462ef[_0x154aaa]=_0xd27e1a);});let _0x58a0a9=this[_0x1ad76c(0x349)]();if(!_0x58a0a9)return;this[_0x1ad76c(0x342)]={..._0x58a0a9};let _0x2c3f86=new _0x5d44cb(this['_baseDrawingRect']),_0x2041e2=_0x3023e5({'unitId':this['_unitId'],'subUnitId':this['_subUnitId'],'drawingId':this['_activeShapeId']}),_0x23ae7e=_0x90e0ef['getObjectIncludeInGroup'](_0x2041e2);this[_0x1ad76c(0x322)]=!0x0,_0x90e0ef[_0x1ad76c(0x3a2)](),this[_0x1ad76c(0x31f)]['startConnectionDetection'](_0x90e0ef,this[_0x1ad76c(0x102)],this[_0x1ad76c(0x161)],this[_0x1ad76c(0x362)]),this['_currentConnectionTarget']=null;let _0x559d32=this[_0x1ad76c(0x1d8)][_0x1ad76c(0x2e3)](),_0x3eb53f=_0x559d32[0x0],_0x30cd4e=_0x559d32[_0x559d32[_0x1ad76c(0x333)]-0x1],_0x282d19=_0x554ea1?_0x2c3f86[_0x1ad76c(0x31a)](_0x30cd4e):_0x2c3f86[_0x1ad76c(0x31a)](_0x3eb53f);this[_0x1ad76c(0x2d6)]=_0x90e0ef[_0x1ad76c(0x2c6)]['subscribeEvent']((_0x43d576,_0x247d5c)=>{const _0x5052d6=_0x1ad76c;if(!this[_0x5052d6(0x322)]||!this['_activeShapeModel'])return;this[_0x5052d6(0x355)]||=(this['_sheetShapeAdjustController'][_0x5052d6(0x23a)](),this['_activeShapeModel'][_0x5052d6(0x28d)](),!0x0);let _0xf9b33f=this['_getScrollInfo'](this[_0x5052d6(0x102)],this['_subUnitId']),_0x519074=this['_getZoomRatio'](this['_unitId'],this[_0x5052d6(0x161)]),_0x56020b={'x':_0x43d576['offsetX']/_0x519074+_0xf9b33f['x'],'y':_0x43d576[_0x5052d6(0x1d6)]/_0x519074+_0xf9b33f['y']},_0x120108=this['_sheetBasicShapeConnectionPointController'][_0x5052d6(0xf2)](_0x56020b);if(_0x120108){let {shapeId:_0x55e43c,unitId:_0x22eaaa,subUnitId:_0x22f8cc}=_0x120108;if(_0x55e43c&&_0x22eaaa&&_0x22f8cc){let _0x10edb8=_0x3023e5({'unitId':_0x22eaaa,'subUnitId':_0x22f8cc,'drawingId':_0x55e43c});_0x120108[_0x5052d6(0x140)]=(_0x90e0ef[_0x5052d6(0x3a9)](_0x10edb8)[_0x5052d6(0x140)]||0x0)+_0x120108[_0x5052d6(0x140)];}}this['_currentConnectionTarget']=_0x120108;let _0xaae330=_0x554ea1?this[_0x5052d6(0x1d8)]['getEndConnectInfo']():this[_0x5052d6(0x1d8)]['getStartConnectInfo']();_0xaae330?this[_0x5052d6(0x253)](_0xaae330,_0x56020b,_0x554ea1,_0x23ae7e,_0x272239):this[_0x5052d6(0x1f9)](_0x56020b,_0x282d19,_0x554ea1,_0x23ae7e,_0x272239);}),this['_cxtHandlerPointerUp']=_0x90e0ef[_0x1ad76c(0x2c7)][_0x1ad76c(0x2e4)]((_0x5a39ca,_0x105b1e)=>{const _0x4431bc=_0x1ad76c;this[_0x4431bc(0x38f)](_0x90e0ef,_0x282d19,_0x5a39ca,_0x554ea1,_0x3462ef);}),_0x5a5ed0[_0x1ad76c(0x345)]();})));}[_0x232df7(0x2a5)](_0x908d93,_0x280baa,_0x54f2d3){const _0x525b65=_0x232df7;let _0x48d7a2=this['_sheetsShapeService'][_0x525b65(0x38c)](_0x908d93,_0x280baa,_0x54f2d3);if(!_0x48d7a2||_0x48d7a2['length']===0x0)return;let _0x1814fb=this['_renderManagerService']['getRenderUnitById'](_0x908d93);if(!_0x1814fb)return;let {scene:_0x34f044}=_0x1814fb;for(let _0x45a3db of _0x48d7a2){let _0x19f50f=_0x45a3db[_0x525b65(0x2fc)],_0x38aa2e=this[_0x525b65(0x3aa)][_0x525b65(0x1cf)](_0x908d93,_0x280baa,_0x19f50f);if(!_0x38aa2e)continue;let _0x178269=_0x38aa2e['getStartConnectInfo'](),_0xe6714b=_0x38aa2e[_0x525b65(0x148)](),_0x4c33f1=(_0x178269==null?void 0x0:_0x178269['shapeId'])===_0x54f2d3,_0x7d32eb=_0x3023e5({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f}),_0xf4a7a4=_0x34f044['getObjectIncludeInGroup'](_0x7d32eb);if(!_0xf4a7a4)continue;let _0x5a8859=this['_drawingManagerService'][_0x525b65(0x282)]({'unitId':_0x908d93,'subUnitId':_0x280baa,'drawingId':_0x19f50f});_0x5a8859!=null&&_0x5a8859[_0x525b65(0x15f)]&&(_0x178269&&_0xe6714b?this['_rerouteConnectorLine'](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x178269,_0xe6714b,_0xf4a7a4):this[_0x525b65(0x267)](_0x908d93,_0x280baa,_0x19f50f,_0x38aa2e,_0x4c33f1?_0x178269:_0xe6714b,_0x4c33f1,_0x5a8859,_0xf4a7a4));}}['_rerouteConnectorLine'](_0x294b08,_0x3853ef,_0x445135,_0x1fc819,_0x239382,_0x56d774,_0x405ee7){const _0x524b42=_0x232df7;let _0xd0682c=this[_0x524b42(0x102)],_0xa42781=this[_0x524b42(0x161)];this[_0x524b42(0x102)]=_0x294b08,this[_0x524b42(0x161)]=_0x3853ef;let _0x12e650=this[_0x524b42(0x20d)](_0x239382),_0x4f1b99=this[_0x524b42(0x20d)](_0x56d774);if(this['_unitId']=_0xd0682c,this[_0x524b42(0x161)]=_0xa42781,!_0x12e650||!_0x4f1b99)return;let _0x47be21=_0x1fc819[_0x524b42(0x134)](),_0x127f3a=_0x201266(_0x12e650,_0x4f1b99,_0x47be21);_0x127f3a&&_0x1fc819[_0x524b42(0x302)](_0x127f3a);let _0x5c106f=_0x3cbafa(_0x127f3a,_0x47be21);_0x5c106f[_0x524b42(0x130)]!==_0x47be21&&_0x1fc819[_0x524b42(0x175)](_0x5c106f['lineType']),_0x1fc819[_0x524b42(0x28d)]();for(let [_0x2f9f99,_0x3431fe]of Object[_0x524b42(0x17e)](_0x5c106f[_0x524b42(0x29d)]))_0x1fc819[_0x524b42(0x359)](_0x2f9f99,_0x3431fe);_0x1fc819[_0x524b42(0x2bd)]({'width':_0x5c106f[_0x524b42(0x214)]['width'],'height':_0x5c106f[_0x524b42(0x214)]['height']}),_0x405ee7[_0x524b42(0x234)]({'flipX':_0x5c106f[_0x524b42(0x214)]['flipX'],'flipY':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x25e)],'left':_0x5c106f[_0x524b42(0x214)]['left'],'top':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x1b9)],'width':_0x5c106f[_0x524b42(0x214)][_0x524b42(0x324)],'height':_0x5c106f['worldRect']['height'],'angle':_0x5c106f[_0x524b42(0x264)]}),_0x1fc819['removeLinePoints']();}[_0x232df7(0x267)](_0x100db3,_0x50899d,_0x589d45,_0x499d40,_0x5b3746,_0x2d4829,_0x7bfd8d,_0x59ea6d){const _0x4aa27d=_0x232df7;let _0xee2b34=this[_0x4aa27d(0x102)],_0x14c031=this[_0x4aa27d(0x161)];this[_0x4aa27d(0x102)]=_0x100db3,this['_subUnitId']=_0x50899d;let _0x283a61=this[_0x4aa27d(0x20d)](_0x5b3746);if(this[_0x4aa27d(0x102)]=_0xee2b34,this[_0x4aa27d(0x161)]=_0x14c031,!_0x283a61)return;let {left:_0x37f174=0x0,top:_0x46c148=0x0,width:_0x276613=0x0,height:_0x2c2480=0x0,flipX:_0x5d438d=!0x1,flipY:_0x23ed5d=!0x1}=_0x7bfd8d[_0x4aa27d(0x15f)],_0x24eb6d=_0x499d40[_0x4aa27d(0x2e3)]();if(_0x24eb6d[_0x4aa27d(0x333)]<0x2)return;let _0x966bba=new _0x5d44cb({'left':_0x37f174,'top':_0x46c148,'width':_0x276613,'height':_0x2c2480,'flipX':_0x5d438d,'flipY':_0x23ed5d}),_0x4acdac=_0x2d4829?_0x24eb6d[_0x24eb6d[_0x4aa27d(0x333)]-0x1]:_0x24eb6d[0x0],_0x1a65ba=_0x966bba[_0x4aa27d(0x31a)](_0x4acdac),_0x515ca4=_0x5d44cb[_0x4aa27d(0x247)](_0x1a65ba,_0x283a61[_0x4aa27d(0x32a)],!_0x2d4829);_0x59ea6d[_0x4aa27d(0x234)]({'flipX':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x270)],'flipY':_0x515ca4[_0x4aa27d(0x214)]['flipY'],'left':_0x515ca4['worldRect'][_0x4aa27d(0xe4)],'top':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x1b9)],'width':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x324)],'height':_0x515ca4[_0x4aa27d(0x214)]['height'],'angle':_0x515ca4[_0x4aa27d(0x214)][_0x4aa27d(0x140)]}),_0x59ea6d[_0x4aa27d(0x390)](!0x0);}[_0x232df7(0x2d5)](){const _0xa8b3da=_0x232df7;this[_0xa8b3da(0x32d)][_0xa8b3da(0x333)]!==0x0&&(this[_0xa8b3da(0x32d)]['forEach'](_0x3c672c=>{const _0x4968ad=_0xa8b3da;_0x3c672c[_0x4968ad(0x296)]();}),this[_0xa8b3da(0x32d)]=[]);}[_0x232df7(0x156)](){const _0x2bfac3=_0x232df7;let _0x399e03=this[_0x2bfac3(0x2d4)][_0x2bfac3(0x2d0)](_0xe0c4a6['UNIVER_SHEET']);this['disposeWithMe'](_0x399e03[_0x2bfac3(0x16f)](_0x4faa1d(_0x5ceb26=>_0x5ceb26?_0x5ceb26[_0x2bfac3(0xe1)][_0x2bfac3(0x16f)](_0x4faa1d(_0x1432e8=>{const _0xf108b2=_0x2bfac3;if(!_0x1432e8)return _0x5f31a2;let _0x547271=_0x5ceb26['getUnitId'](),_0x3ce2b1=this[_0xf108b2(0x209)][_0xf108b2(0x124)](_0x547271),_0x48c891=_0x3ce2b1==null?void 0x0:_0x3ce2b1[_0xf108b2(0x381)];return _0x48c891?_0x24a70f(_0x48c891):_0x5f31a2;})):_0x5f31a2))['subscribe'](_0x364619=>{const _0x512605=_0x2bfac3;let _0x3af3e3=_0x364619[_0x512605(0x372)]();this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c6)]['subscribeEvent'](_0x469f82=>{const _0x3cf434=_0x512605;this[_0x3cf434(0x272)]&&this[_0x3cf434(0x362)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x22f)][_0x512605(0x268)](_0x256a82=>{const _0x1fe58e=_0x512605;let {objects:_0x796022}=_0x256a82;this[_0x1fe58e(0x2d5)](),_0x796022!==null&&_0x796022[_0x1fe58e(0x292)]===0x1&&_0x796022[_0x1fe58e(0x212)]()['next']()[_0x1fe58e(0x30f)]instanceof J&&(this[_0x1fe58e(0x272)]=!0x0);})),this[_0x512605(0x2db)](_0x3af3e3[_0x512605(0x2fd)][_0x512605(0x268)](_0x44ab6c=>{const _0x15ce0f=_0x512605;this[_0x15ce0f(0x272)]&&this['_clearShapeConnectorHandlerObjects']();})),this[_0x512605(0x2db)](_0x364619[_0x512605(0x2c7)][_0x512605(0x2e4)](()=>{const _0x140f6b=_0x512605;this[_0x140f6b(0x272)]&&(this[_0x140f6b(0x272)]=!0x1,this[_0x140f6b(0x317)]());})),this[_0x512605(0x2db)](_0x3af3e3['changeEnd$'][_0x512605(0x268)](()=>{const _0x32aa21=_0x512605;this[_0x32aa21(0x102)]&&this[_0x32aa21(0x161)]&&this['_activeShapeId']&&this[_0x32aa21(0x11c)]['getDrawingByParam']({'unitId':this[_0x32aa21(0x102)],'subUnitId':this[_0x32aa21(0x161)],'drawingId':this['_activeShapeId']})&&(this[_0x32aa21(0x2d5)](),this['_addShapeConnectorHandlerObjects']());}));}));}[_0x232df7(0x1f0)](){const _0xad266c=_0x232df7;this[_0xad266c(0x2db)](this['_drawingManagerService'][_0xad266c(0x19a)][_0xad266c(0x268)](_0xa655d1=>{const _0x17ebfa=_0xad266c;if(_0xa655d1[_0x17ebfa(0x333)]===0x1){let _0x371540=_0xa655d1[0x0];if(_0x371540[_0x17ebfa(0x183)]===_0x190419['DRAWING_SHAPE']){let _0x33fb0c=this[_0x17ebfa(0x3aa)]['getShapeModel'](_0x371540[_0x17ebfa(0x1e3)],_0x371540[_0x17ebfa(0x26c)],_0x371540[_0x17ebfa(0x36c)]);if(_0x33fb0c&&_0x52f76f(_0x33fb0c[_0x17ebfa(0x134)]())){this['_activeShapeId']=_0x371540['drawingId'],this[_0x17ebfa(0x102)]=_0x371540[_0x17ebfa(0x1e3)],this[_0x17ebfa(0x161)]=_0x371540[_0x17ebfa(0x26c)],this['_clearShapeConnectorHandlerObjects'](),this['_addShapeConnectorHandlerObjects']();return;}}}this['_activeShapeId']=void 0x0,this[_0x17ebfa(0x102)]=void 0x0,this[_0x17ebfa(0x161)]=void 0x0,this[_0x17ebfa(0x2d5)]();})),this[_0xad266c(0x2db)](this['_drawingManagerService']['update$'][_0xad266c(0x268)](_0x15afad=>{const _0x554cfb=_0xad266c;if(_0x15afad['length']===0x1){var _0xa0ba81;let _0x5cf4be=_0x15afad[0x0],_0x24417c=(_0xa0ba81=this[_0x554cfb(0x11c)][_0x554cfb(0x282)](_0x5cf4be))==null?void 0x0:_0xa0ba81[_0x554cfb(0x183)];_0x24417c===_0x190419[_0x554cfb(0x21d)]&&_0x5cf4be['drawingId']===this[_0x554cfb(0x362)]?(this[_0x554cfb(0x2d5)](),this[_0x554cfb(0x317)]()):!this[_0x554cfb(0x362)]&&_0x24417c===_0x190419['DRAWING_SHAPE']&&this[_0x554cfb(0x2a5)](_0x5cf4be[_0x554cfb(0x1e3)],_0x5cf4be['subUnitId'],_0x5cf4be['drawingId']);}})),this[_0xad266c(0x2db)](this[_0xad266c(0x11c)][_0xad266c(0x36d)]['subscribe'](_0x52e0b8=>{const _0x597038=_0xad266c;for(let _0x34ca76 of _0x52e0b8){let {drawingId:_0x305835}=_0x34ca76;if(this[_0x597038(0x362)]===_0x305835){this[_0x597038(0x308)]();return;}}}));}['_handleConnectedEndpointMove'](_0x141c7d,_0x502b71,_0x7d6a84,_0x4e91c4,_0x1636eb){const _0x5c65ad=_0x232df7;var _0x47456c;if(!this[_0x5c65ad(0x1d8)])return;let _0x53ab34=this[_0x5c65ad(0x20d)](_0x141c7d);if(!_0x53ab34)return;let _0x209715=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)]['worldPoint']:_0x502b71,_0x437abc=this[_0x5c65ad(0x223)]?this[_0x5c65ad(0x223)][_0x5c65ad(0x140)]:this[_0x5c65ad(0x2c0)](_0x53ab34['point'],_0x209715),_0x127905;if(this[_0x5c65ad(0x223)]){let _0x3070e4=this[_0x5c65ad(0x11c)]['getDrawingByParam']({'unitId':this[_0x5c65ad(0x223)]['unitId'],'subUnitId':this[_0x5c65ad(0x223)][_0x5c65ad(0x26c)],'drawingId':this[_0x5c65ad(0x223)][_0x5c65ad(0x275)]});if(_0x3070e4!=null&&_0x3070e4[_0x5c65ad(0x15f)]){let {left:_0x30427c=0x0,top:_0x44b249=0x0,width:_0x199efe=0x0,height:_0x2f6af7=0x0,angle:_0xa5a256}=_0x3070e4[_0x5c65ad(0x15f)];_0x127905=_0x109e70({'left':_0x30427c,'top':_0x44b249,'width':_0x199efe,'height':_0x2f6af7},_0xa5a256||0x0);}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};}else _0x127905={'left':_0x209715['x'],'top':_0x209715['y'],'width':0x0,'height':0x0};let _0x214267={'point':_0x209715,'angle':_0x437abc,'bounds':_0x127905},_0x19f3ea=_0x7d6a84?_0x214267:_0x53ab34,_0xdbe900=_0x7d6a84?_0x53ab34:_0x214267,_0x400fc0=this['_activeShapeModel'][_0x5c65ad(0x134)](),_0x23dd88=_0x201266(_0x19f3ea,_0xdbe900,_0x400fc0);_0x23dd88&&this[_0x5c65ad(0x1d8)]['updateLinePoints'](_0x23dd88);let _0x44e6ea=_0x3cbafa(_0x23dd88,_0x400fc0);_0x44e6ea[_0x5c65ad(0x130)]!==_0x400fc0&&this['_activeShapeModel'][_0x5c65ad(0x175)](_0x44e6ea[_0x5c65ad(0x130)]);for(let [_0x590c73,_0x4080b7]of Object['entries'](_0x44e6ea[_0x5c65ad(0x29d)]))this[_0x5c65ad(0x1d8)][_0x5c65ad(0x359)](_0x590c73,_0x4080b7);this[_0x5c65ad(0x1d8)]['updateContext']({'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)]}),_0x4e91c4[_0x5c65ad(0x234)]({'flipX':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x270)],'flipY':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x25e)],'left':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0xe4)],'top':_0x44e6ea[_0x5c65ad(0x214)]['top'],'width':_0x44e6ea['worldRect'][_0x5c65ad(0x324)],'height':_0x44e6ea[_0x5c65ad(0x214)][_0x5c65ad(0x39a)],'angle':_0x44e6ea[_0x5c65ad(0x264)]}),_0x4e91c4[_0x5c65ad(0x390)](!0x0);let _0x2198d3=((_0x47456c=this['_currentConnectionTarget'])==null?void 0x0:_0x47456c[_0x5c65ad(0x1ba)])??_0x502b71;_0x1636eb[_0x5c65ad(0x234)]({'left':_0x2198d3['x']-_0x4c61a8['cxnPointRadius'],'top':_0x2198d3['y']-_0x4c61a8['cxnPointRadius']});}[_0x232df7(0x1f9)](_0x835cd,_0x4de425,_0x291070,_0x56cb48,_0x9eeda7){const _0x514d4c=_0x232df7;var _0xd33eb7,_0x3135b8;let _0x282137=((_0xd33eb7=this[_0x514d4c(0x223)])==null?void 0x0:_0xd33eb7[_0x514d4c(0x1ba)])??_0x835cd,_0x22559e=_0x5d44cb[_0x514d4c(0x247)](_0x4de425,_0x282137,_0x291070);_0x56cb48['transformByState']({'flipX':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x270)],'flipY':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x25e)],'left':_0x22559e[_0x514d4c(0x214)]['left'],'top':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x1b9)],'width':_0x22559e['worldRect'][_0x514d4c(0x324)],'height':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x39a)],'angle':_0x22559e[_0x514d4c(0x214)][_0x514d4c(0x140)]});let _0x575626=((_0x3135b8=this[_0x514d4c(0x223)])==null?void 0x0:_0x3135b8['worldPoint'])??_0x835cd;_0x9eeda7[_0x514d4c(0x234)]({'left':_0x575626['x']-_0x4c61a8['cxnPointRadius'],'top':_0x575626['y']-_0x4c61a8[_0x514d4c(0x215)]});}[_0x232df7(0x20d)](_0x1be3de){const _0x4dcb45=_0x232df7;if(!this[_0x4dcb45(0x102)]||!this['_subUnitId'])return null;let {shapeId:_0x460b7d,cxnIndex:_0x52811d}=_0x1be3de,_0x387aed=this[_0x4dcb45(0x3aa)]['getShapeModel'](this['_unitId'],this[_0x4dcb45(0x161)],_0x460b7d);if(!_0x387aed)return null;let _0x524e0c=this[_0x4dcb45(0x11c)][_0x4dcb45(0x282)]({'unitId':this['_unitId'],'subUnitId':this[_0x4dcb45(0x161)],'drawingId':_0x460b7d});if(!(_0x524e0c!=null&&_0x524e0c['transform']))return null;let {left:_0x415fb3=0x0,top:_0x27c8e2=0x0,width:_0x1bbf45=0x0,height:_0x1cc60d=0x0,flipX:_0x5b7e0f=!0x1,flipY:_0x54dc12=!0x1,angle:_0x4200d1}=_0x524e0c[_0x4dcb45(0x15f)];_0x387aed[_0x4dcb45(0x2bd)]({'width':_0x1bbf45,'height':_0x1cc60d});let _0x4dd5a6=_0x387aed[_0x4dcb45(0x26d)]()[_0x4dcb45(0x12b)](_0x2b4951=>_0x2b4951[_0x4dcb45(0x198)]===_0x52811d);if(!_0x4dd5a6)return null;let _0x3c2336=_0x5b7e0f?_0x1bbf45-_0x4dd5a6['x']:_0x4dd5a6['x'],_0x19b109=_0x54dc12?_0x1cc60d-_0x4dd5a6['y']:_0x4dd5a6['y'];if(_0x4200d1!==0x0&&_0x4200d1!=null){let _0xaa42a5=_0x4200d1*Math['PI']/0xb4,_0xf25474=Math['cos'](_0xaa42a5),_0x143eab=Math[_0x4dcb45(0x159)](_0xaa42a5),_0x13caef=_0x1bbf45/0x2,_0x4305b6=_0x1cc60d/0x2,_0xab298c=_0x3c2336-_0x13caef,_0x4d61b6=_0x19b109-_0x4305b6;_0x3c2336=_0x13caef+_0xab298c*_0xf25474-_0x4d61b6*_0x143eab,_0x19b109=_0x4305b6+_0xab298c*_0x143eab+_0x4d61b6*_0xf25474;}_0x3c2336+=_0x415fb3,_0x19b109+=_0x27c8e2;let _0x199624=_0x4dd5a6['ang']/0xea60;_0x5b7e0f&&(_0x199624=0xb4-_0x199624),_0x54dc12&&(_0x199624=-_0x199624),_0x199624+=_0x4200d1||0x0,_0x199624=(_0x199624%0x168+0x168)%0x168;let _0x3939d5=_0x109e70({'left':_0x415fb3,'top':_0x27c8e2,'width':_0x1bbf45,'height':_0x1cc60d},_0x4200d1||0x0);return{'point':{'x':_0x3c2336,'y':_0x19b109},'angle':_0x199624,'bounds':_0x3939d5};}[_0x232df7(0x2c0)](_0x48e88a,_0x4c9d29){const _0x4a5973=_0x232df7;let _0x534471=_0x4c9d29['x']-_0x48e88a['x'],_0x216fa0=_0x4c9d29['y']-_0x48e88a['y'];return Math[_0x4a5973(0x227)](_0x534471)>=Math[_0x4a5973(0x227)](_0x216fa0)?_0x534471>=0x0?0xb4:0x0:_0x216fa0>=0x0?0x10e:0x5a;}[_0x232df7(0x308)](){const _0x1edea7=_0x232df7;this['_activeShapeId']=void 0x0,this[_0x1edea7(0x102)]=void 0x0,this['_subUnitId']=void 0x0,this[_0x1edea7(0x2d5)]();}[_0x232df7(0x296)](){this['_clearShapeConnectorHandlerObjects'](),super['dispose']();}};ma=X([Y(0x1,_0x1b156e),Y(0x2,_0x422c1e),Y(0x3,_0x3deb35),Y(0x4,_0x304294),Y(0x5,_0x229e82(_0x5c2303)),Y(0x6,_0x229e82(Pr)),Y(0x7,_0x229e82(da))],ma);let ha=class extends _0x2bb0e8{constructor(_0x2ebb35,_0x36611a,_0x4f3d2b){const _0x5c332a=_0x232df7;super(),this[_0x5c332a(0x182)]=_0x2ebb35,this['_drawingManagerService']=_0x36611a,this['_shapeRenderController']=_0x4f3d2b,this[_0x5c332a(0x20f)]();}[_0x232df7(0x20f)](){const _0x38e484=_0x232df7;this[_0x38e484(0x2db)](this['_sheetPrintInterceptorService'][_0x38e484(0x142)]['intercept'](this[_0x38e484(0x182)][_0x38e484(0x142)][_0x38e484(0x1a3)]()[_0x38e484(0x27a)],{'handler':(_0x55abe4,_0x4a62e4,_0xed0019)=>{const _0xe498f0=_0x38e484;var _0xb41570;let {unitId:_0x432bdf,subUnitId:_0x4e8b8d,scene:_0x29d643,resourceCollector:_0x22c986}=_0x4a62e4,_0x35858c=(_0xb41570=this[_0xe498f0(0x11c)][_0xe498f0(0x287)](_0x432bdf))==null?void 0x0:_0xb41570[_0x4e8b8d];return _0x35858c==null||_0x35858c[_0xe498f0(0x174)][_0xe498f0(0x385)](_0x50f996=>{const _0x31b358=_0xe498f0;let _0xc1fbf=_0x35858c[_0x31b358(0x11a)][_0x50f996];_0xc1fbf[_0x31b358(0x183)]===_0x190419[_0x31b358(0x21d)]&&!_0xc1fbf[_0x31b358(0x1d0)]&&this[_0x31b358(0x353)]['renderDrawingShape'](_0xc1fbf,_0x29d643,{'resourceCollector':_0x22c986});}),_0xed0019(_0x55abe4);}}));}};ha=X([Y(0x0,_0x229e82(_0x3e6e4c)),Y(0x1,_0x3deb35),Y(0x2,_0x229e82(Z))],ha);let ga=class extends _0x2bb0e8{constructor(_0x4f816d,_0x18783c,_0x106fae){const _0x364d3d=_0x232df7;super(),this[_0x364d3d(0x232)]=_0x4f816d,this[_0x364d3d(0x184)]=_0x18783c,this[_0x364d3d(0x1a2)]=_0x106fae,this[_0x364d3d(0x29b)]();}[_0x232df7(0x29b)](){const _0xca8d16=_0x232df7;this[_0xca8d16(0x2db)](this['_commandService'][_0xca8d16(0xee)](_0x3f5646=>{const _0x4499db=_0xca8d16;let _0x4d9608,_0x32570c;if(_0x3f5646['id']===_0x143510['id']||_0x3f5646['id']===_0x37673b['id']||_0x3f5646['id']===_0xa22292['id']){let _0x38cbac=_0x3f5646[_0x4499db(0x1aa)];_0x4d9608=_0x38cbac[_0x4499db(0x1e3)],_0x32570c=_0x38cbac['subUnitId'];}_0x4d9608&&_0x32570c&&(this[_0x4499db(0x1a2)]['permissionCheckWithoutRange']({'workbookTypes':[_0x48f387],'worksheetTypes':[_0x459023]},_0x4d9608,_0x32570c)||this[_0x4499db(0x1a2)][_0x4499db(0x28a)](this[_0x4499db(0x184)]['t'](_0x4499db(0x387))));}));}};ga=X([Y(0x0,_0x229e82(_0x1b156e)),Y(0x1,_0x229e82(_0x16b0b7)),Y(0x2,_0x229e82(_0x2c9f0d))],ga);let _a=class{constructor(_0xbc1ac5){const _0x4c57da=_0x232df7;this[_0x4c57da(0x209)]=_0xbc1ac5;}['updateShapeFillImage'](_0x109481,_0xa5b7ad){const _0x2f396b=_0x232df7;let _0x20b6a9=this[_0x2f396b(0x209)]['getRenderUnitById'](_0x109481[_0x2f396b(0x1e3)]),_0x36d93b=_0x20b6a9==null?void 0x0:_0x20b6a9[_0x2f396b(0x381)];if(!_0x36d93b)return;let _0x4566f9=_0x3023e5(_0x109481),_0x1de6d6=_0x36d93b[_0x2f396b(0x3a9)](_0x4566f9);_0x1de6d6==null||_0x1de6d6['setFillImage'](_0xa5b7ad);}};_a=X([Y(0x0,_0x422c1e)],_a);let va=class extends _0x407af{constructor(_0x422c4b=Yi,_0xcb1a55,_0x142a8c,_0x3a2b76,_0x4f1f27){const _0x18e630=_0x232df7;super(),this[_0x18e630(0x2b5)]=_0x422c4b,this[_0x18e630(0x1e1)]=_0xcb1a55,this['_commandService']=_0x142a8c,this[_0x18e630(0x162)]=_0x3a2b76,this[_0x18e630(0x209)]=_0x4f1f27;let {..._0x567c89}=_0x32987f({},Yi,this['_config']);this[_0x18e630(0x162)][_0x18e630(0x103)](Ji,_0x567c89),this[_0x18e630(0x26a)]();}[_0x232df7(0x1b7)](){const _0x244572=_0x232df7;this['_injector']['add']([ta]),this[_0x244572(0x1e1)]['get'](ta),_0x365af4(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x1c9)](){const _0x1422b0=_0x232df7;_0x365af4(this[_0x1422b0(0x1e1)],[[da],[Pr],[fa]]),_0x3ece4a(this[_0x1422b0(0x1e1)],[[fa],[Pr]]),[[da],[Xi],[ma],[ra]][_0x1422b0(0x385)](_0x516bbe=>{const _0x26492e=_0x1422b0;this['disposeWithMe'](this[_0x26492e(0x209)][_0x26492e(0x3a8)](_0xe0c4a6[_0x26492e(0x277)],_0x516bbe));});}[_0x232df7(0x311)](){_0x3ece4a(this['_injector'],[[aa],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga]]);}[_0x232df7(0x126)](){const _0x5486fb=_0x232df7;this[_0x5486fb(0x1e1)][_0x5486fb(0x14a)](aa)[_0x5486fb(0x179)]();}['_initCommands'](){const _0x3f368f=_0x232df7;[Ir,K,Fr,qi][_0x3f368f(0x385)](_0x10e090=>this[_0x3f368f(0x2db)](this[_0x3f368f(0x232)][_0x3f368f(0x204)](_0x10e090)));}};q(va,_0x232df7(0xf1),_0xe0c4a6[_0x232df7(0x277)]),q(va,_0x232df7(0x18f),_0x232df7(0x312)),q(va,_0x232df7(0xfa),Gi),q(va,'version',Ki),va=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x212ef7,_0x1fa068,_0x281d56,_0x42ad3b,_0x6ff3b1),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],va);const ya={'type':_0x33172f[_0x232df7(0x2ab)],'id':_0x232df7(0x233),'handler'(){return!0x0;}};function ba(){const _0x185ff5=_0x232df7;let _0x5cf681=_0x3a3b93(_0x3deb35),_0x3010bf=_0xe01eb2(()=>_0x5cf681['focus$'],_0x5cf681[_0x185ff5(0x310)](),!0x1,[_0x5cf681]);return _0x3010bf[_0x185ff5(0x333)]===0x0?null:_0x386576(_0x185ff5(0x121),{'children':_0x61d32d('div',{'className':_0x185ff5(0x1c3),'children':[_0x386576(_0x4f1e4b,{'drawings':_0x3010bf,'hasCropper':!0x1}),_0x386576(_0x4ef3b5,{'drawings':_0x3010bf})]})});}function xa(_0xc4fcc9){let {unitId:_0x49a6af,subUnitId:_0x12c6fa,shapeId:_0xe37968}=_0xc4fcc9,_0x34046d=_0x3a3b93(_0x1b156e),_0x5f0b2e=_0x3a3b93(_a);return _0x386576(_0x1f5908,{..._0xc4fcc9,'positionEditor':_0x386576(ba,{}),'onUpdateShapeData':(_0x4d9155,_0x45ac06)=>{Dr(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0x4d9155,_0x45ac06);},'onUpdateLineShapeData':(_0xeeb462,_0x4f5083)=>{Or(_0x34046d,_0x49a6af,_0x12c6fa,_0xe37968,_0xeeb462,_0x4f5083);},'onUpdateShapeFillImage':_0x4e9b5b=>{_0x5f0b2e['updateShapeFillImage']({'unitId':_0x49a6af,'subUnitId':_0x12c6fa,'drawingId':_0xe37968},_0x4e9b5b);}});}function Sa(_0x590e10){const _0x32d31e=_0x232df7;let _0x378df6=_0x3a3b93(_0xee6e88),_0x56d566=_0xe01eb2(()=>_0x378df6[_0x32d31e(0x110)],_0x378df6[_0x32d31e(0x245)](),!0x1,[_0x378df6]),_0x10d8e8=_0x590e10[_0x32d31e(0x1e6)]['extraProps'];return!_0x10d8e8||!_0x56d566?null:_0x386576(Ca,{..._0x10d8e8,'canvasElement':_0x590e10['popup'][_0x32d31e(0x20a)]});}function Ca(_0x39898a){const _0x268bd3=_0x232df7;let _0x2ddd8e=_0x3a3b93(_0x1b156e),_0x93bafe=_0x3a3b93(_0x5c2303),{unitId:_0x310402,subUnitId:_0x4919a4,drawingId:_0x1fd734,drawingType:_0x291fd2,shapeType:_0x5a99a9}=_0x39898a,[_0x2830d2,_0x23be4e]=_0x2c04bf(_0x39898a['shapeData']),_0xcba01e=_0x53eb09(()=>_0x37bae9(_0x2830d2),[_0x2830d2]),_0x2e1301=_0x53eb09(()=>_0x1f9271(_0x2830d2),[_0x2830d2]);_0x3ac889(()=>{const _0x2910c9=_0x2028;let _0x551daf=_0x2ddd8e[_0x2910c9(0x224)](_0x177c32=>{const _0x33825d=_0x2910c9;if(_0x177c32['id']!==_0x4af43a['id'])return;let _0x3825f5=_0x93bafe[_0x33825d(0x329)](_0x310402,_0x4919a4,_0x1fd734);_0x3825f5&&_0x23be4e(_0x3825f5);});return()=>_0x551daf[_0x2910c9(0x296)]();},[_0x2ddd8e,_0x1fd734,_0x93bafe,_0x4919a4,_0x310402]);let _0x4fe9ce=_0xd82528=>{_0x23be4e(_0x3afc72=>({..._0x3afc72,..._0xd82528}));},_0xcfb7a=_0xb5b02e=>{const _0x5ee07e=_0x2028;let _0x2c4549=_0x2a4875(_0x2830d2,_0xb5b02e);Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'shapeText':_0x2830d2[_0x5ee07e(0x396)]}},_0x2c4549),_0x4fe9ce(_0x2c4549);},_0x4b999e=_0x5433fa({'hostType':_0xe0c4a6[_0x268bd3(0x277)],'unitId':_0x310402,'subUnitId':_0x4919a4,'shapeId':_0x1fd734,'shapeData':_0x2830d2,'onUpdateBinding':_0x44f945=>{const _0x1eff68=_0x268bd3;let _0x3027d5={'formulaBinding':_0x44f945};Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,{'oldShapeData':{'formulaBinding':_0x2830d2[_0x1eff68(0x2da)]}},_0x3027d5),_0x4fe9ce(_0x3027d5);}});return _0x61d32d(_0xe1ac43,{'children':[_0x386576(_0xaf994a,{'canvasElement':_0x39898a[_0x268bd3(0x20a)],'shapeData':_0x2830d2,'shapeType':_0x5a99a9,'textStyle':{'ff':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0x1bb)],'fs':_0x4c61a8['shapeText'][_0x268bd3(0x207)],'cl':{'rgb':_0x4c61a8[_0x268bd3(0x396)][_0x268bd3(0xe9)]},..._0xcba01e},'textModel':_0x2e1301?{'ha':_0x2e1301['ha']??_0x4dc457[_0x268bd3(0xf0)],'va':_0x2e1301['va']??_0x2cccb9[_0x268bd3(0x115)]}:null,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':_0x4c61a8[_0x268bd3(0x33e)],'defaultGradientEndColor':_0x4c61a8[_0x268bd3(0x37c)],'defaultStrokeColor':_0x4c61a8['stroke'],'extensionGroups':_0x4b999e['extensionGroups'],'floatingObjectToolbarPosition':_0x28d51f[_0x268bd3(0x13c)],'onUpdateShapeData':(_0x7ea891,_0x3590f0)=>{Dr(_0x2ddd8e,_0x310402,_0x4919a4,_0x1fd734,_0x7ea891,_0x3590f0),_0x3590f0&&_0x4fe9ce(_0x3590f0);},'onUpdateText':_0xcfb7a,'onOpenPanel':()=>{const _0x4718c7=_0x268bd3;_0x2ddd8e[_0x4718c7(0x286)](Wr['id'],{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734});},'onDelete':()=>{const _0x464b04=_0x268bd3;_0x2ddd8e[_0x464b04(0x286)](_0x29b5e1['id'],{'unitId':_0x310402,'drawings':[{'unitId':_0x310402,'subUnitId':_0x4919a4,'drawingId':_0x1fd734,'drawingType':_0x291fd2}]});}}),_0x4b999e[_0x268bd3(0x284)]]});}function wa(_0x1dac17){const _0x54ce7b=_0x232df7;return!!_0x1dac17&&'axisAlignSheetTransform'in _0x1dac17&&_0x54ce7b(0x2a0)in _0x1dac17;}const Ta=_0x979643(()=>{const _0x356e93=_0x232df7;let _0x722863=_0x3a3b93($),_0x5838ea=_0x3a3b93(_0x5c2303),_0x4c8ea4=_0x3a3b93(_0x3deb35),_0x5561c7=_0x3a3b93(_0x1b156e),_0x325528=_0x3a3b93(_0x49cd39),_0x40cb97=_0x3a3b93(_0x422c1e),_0x48204b=_0x53eb09(()=>({'getShapeModel':(_0x116505,_0x3950f5,_0x321338)=>_0x5838ea[_0x356e93(0x1cf)](_0x116505,_0x3950f5,_0x321338),'getShapeData':(_0x87104d,_0x1b027b,_0x445c0b)=>_0x5838ea['getShapeDataById'](_0x87104d,_0x1b027b,_0x445c0b),'getDrawingTransform':(_0x9d8e7b,_0x2aea8f,_0xa23cc0)=>{const _0x357739=_0x356e93;let _0x8776c0=_0x4c8ea4[_0x357739(0x282)]({'unitId':_0x9d8e7b,'subUnitId':_0x2aea8f,'drawingId':_0xa23cc0});return _0x8776c0==null?void 0x0:_0x8776c0[_0x357739(0x15f)];},'updateShapeText':({unitId:_0x25632c,subUnitId:_0x3aa7ec,shapeId:_0x534d66,shapeText:_0xef3e27,oldShapeText:_0x548d64,hostSize:_0x371173})=>{const _0x2c0ed3=_0x356e93;_0x325528[_0x2c0ed3(0x351)](_0x25632c,()=>{const _0x2525b5=_0x2c0ed3;var _0x19bb4c;let _0x233f97=_0x5561c7[_0x2525b5(0x325)](K['id'],{'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'shapeId':_0x534d66,'shapeData':{'shapeText':_0xef3e27},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x548d64}}});if(!_0x233f97||!_0x371173)return _0x233f97;let _0x192b00=_0x4c8ea4[_0x2525b5(0x282)]({'unitId':_0x25632c,'subUnitId':_0x3aa7ec,'drawingId':_0x534d66}),_0xfc28a4=_0x192b00==null?void 0x0:_0x192b00[_0x2525b5(0x15f)];if(!wa(_0x192b00)||!_0xfc28a4)return!0x1;let _0x395577={..._0xfc28a4,'width':_0x371173['width'],'height':_0x371173[_0x2525b5(0x39a)]},_0x3acdbd=(_0x19bb4c=_0x40cb97[_0x2525b5(0x124)](_0x25632c))==null||(_0x19bb4c=_0x19bb4c['with'](_0x54a66d)[_0x2525b5(0x33f)](_0x3aa7ec))==null?void 0x0:_0x19bb4c[_0x2525b5(0x235)];return _0x5561c7[_0x2525b5(0x325)](_0x47d60a['id'],{'unitId':_0x25632c,'drawings':[{..._0x192b00,'transform':_0x395577,'sheetTransform':_0x3acdbd?_0x1f42db(_0x395577,_0x3acdbd)??_0x192b00['sheetTransform']:_0x192b00['sheetTransform'],'axisAlignSheetTransform':_0x3acdbd?_0x544983(_0x395577,_0x3acdbd)??_0x192b00[_0x2525b5(0x1ac)]:_0x192b00['axisAlignSheetTransform']}]});});},'updateHostSize':({unitId:_0x24c824,subUnitId:_0x18904b,shapeId:_0x21323b,width:_0x1adf7a,height:_0x406749})=>{const _0x1700b8=_0x356e93;var _0x5b6d24;let _0x248113=_0x4c8ea4[_0x1700b8(0x282)]({'unitId':_0x24c824,'subUnitId':_0x18904b,'drawingId':_0x21323b}),_0x1c19c3=_0x248113==null?void 0x0:_0x248113[_0x1700b8(0x15f)];if(!wa(_0x248113)||!_0x1c19c3)return;let _0x4bfef9={..._0x1c19c3,'width':_0x1adf7a,'height':_0x406749},_0xdc9538=(_0x5b6d24=_0x40cb97[_0x1700b8(0x124)](_0x24c824))==null||(_0x5b6d24=_0x5b6d24[_0x1700b8(0x18c)](_0x54a66d)[_0x1700b8(0x33f)](_0x18904b))==null?void 0x0:_0x5b6d24['skeleton'],_0x5a8c8c=_0xdc9538?_0x1f42db(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x2a0)]:_0x248113[_0x1700b8(0x2a0)],_0x44f338=_0xdc9538?_0x544983(_0x4bfef9,_0xdc9538)??_0x248113[_0x1700b8(0x1ac)]:_0x248113['axisAlignSheetTransform'];_0x5561c7[_0x1700b8(0x286)](_0x47d60a['id'],{'unitId':_0x24c824,'drawings':[{..._0x248113,'transform':_0x4bfef9,'sheetTransform':_0x5a8c8c,'axisAlignSheetTransform':_0x44f338}]});},'allowHostSizeShrink':({unitId:_0x319934,subUnitId:_0x5b752f,shapeId:_0x3bad98})=>_0x35f3c5(_0x5838ea[_0x356e93(0x329)](_0x319934,_0x5b752f,_0x3bad98)),'deferHostSizeUpdateDuringEditing':()=>!0x0}),[_0x5561c7,_0x4c8ea4,_0x40cb97,_0x5838ea,_0x325528]),_0x1f3159=_0x53eb09(()=>({'viewportKeys':{'main':_0x1e57e3[_0x356e93(0x2ef)],'leftTop':_0x1e57e3['VIEW_MAIN_LEFT_TOP'],'top':_0x1e57e3['VIEW_MAIN_TOP'],'left':_0x1e57e3['VIEW_MAIN_LEFT']},'getSkeleton':(_0x474fb1,_0x8b72ef)=>{const _0x6c66f2=_0x356e93;var _0x309ed5;return((_0x309ed5=_0x474fb1[_0x6c66f2(0x18c)](_0x54a66d)[_0x6c66f2(0x33f)](_0x8b72ef[_0x6c66f2(0x26c)]))==null?void 0x0:_0x309ed5[_0x6c66f2(0x235)])??null;}}),[]);return _0x386576(_0x3977ad,{'adapter':_0x48204b,'editingService':_0x722863,'editorUnitId':Vr,'positionOptions':_0x1f3159});});let Ea=class extends _0x2bb0e8{constructor(_0x2b4ff8,_0x24fc71){const _0x2a8f64=_0x232df7;super(),this[_0x2a8f64(0x2ae)]=_0x2b4ff8,this[_0x2a8f64(0x358)]=_0x24fc71,this[_0x2a8f64(0x319)](),this[_0x2a8f64(0x145)]();}[_0x232df7(0x319)](){const _0x4c576e=_0x232df7;this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ea))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'ObjectLayersIcon':_0x562db7})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1ab))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'FlipHorizontalIcon':_0x3c3c9d})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x3a0))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'FlipVerticalIcon':_0x134503})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x337))||this[_0x4c576e(0x2db)](this['_iconManager']['register']({'BottomIcon':_0x7cbde6})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x1d5))||this[_0x4c576e(0x2db)](this['_iconManager'][_0x4c576e(0x114)]({'MoveDownIcon':_0x1cd4bd})),this['_iconManager']['has'](_0x4c576e(0x13b))||this['disposeWithMe'](this['_iconManager'][_0x4c576e(0x114)]({'MoveUpIcon':_0x5818fa})),this[_0x4c576e(0x358)][_0x4c576e(0x104)]('ShapeFormatSettingIcon')||this[_0x4c576e(0x2db)](this[_0x4c576e(0x358)]['register']({'ShapeFormatSettingIcon':_0x4a1cd8})),this[_0x4c576e(0x358)][_0x4c576e(0x104)](_0x4c576e(0x2de))||this['disposeWithMe'](this[_0x4c576e(0x358)][_0x4c576e(0x114)]({'TopmostIcon':_0xc502f4}));}[_0x232df7(0x145)](){const _0x3f8ecf=_0x232df7;this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Lr,xa)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Rr,$i)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Jr,ei)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Yr,Zr)),this['_componentManager'][_0x3f8ecf(0x2f3)](_0x48d256)||this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](_0x48d256,$r)),this['disposeWithMe'](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](zr,Sa)),this['disposeWithMe'](this['_componentManager']['register'](di,hi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](ui,gi)),this[_0x3f8ecf(0x2db)](this['_componentManager'][_0x3f8ecf(0x114)](fi,_i)),this['disposeWithMe'](this['_componentManager'][_0x3f8ecf(0x114)](pi,vi)),this[_0x3f8ecf(0x2db)](this[_0x3f8ecf(0x2ae)][_0x3f8ecf(0x114)](Hr,_0x5dc698)),this[_0x3f8ecf(0x2db)](this['_componentManager']['register'](_0x3f8ecf(0x2bb),Ta));}};Ea=X([Y(0x0,_0x229e82(_0x2359f7)),Y(0x1,_0x229e82(_0x22aeed))],Ea);let Da=class extends _0x2bb0e8{constructor(_0x1e5d2e,_0x14289c,_0x34852a,_0x260f9e,_0x5a7b31,_0x485783,_0x2e3143,_0x4bdfa7,_0x5bedaa){const _0x33639f=_0x232df7;super();let _0x80e973=_0x5628ee=>{const _0xc6ea2c=_0x2028;var _0x21cbe5,_0x4d05d2;return(((_0x21cbe5=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x48f387(_0x5628ee['unitId'])['id']))==null?void 0x0:_0x21cbe5[_0xc6ea2c(0x30f)])??!0x0)&&(((_0x4d05d2=_0x4bdfa7[_0xc6ea2c(0x31b)](new _0x459023(_0x5628ee[_0xc6ea2c(0x1e3)],_0x5628ee[_0xc6ea2c(0x26c)])['id']))==null?void 0x0:_0x4d05d2[_0xc6ea2c(0x30f)])??!0x0);},_0x5218d0=_0x9c6e10=>_0x9c6e10['shapeId']&&_0x80e973(_0x9c6e10)?_0x34852a[_0x33639f(0x329)](_0x9c6e10[_0x33639f(0x1e3)],_0x9c6e10[_0x33639f(0x26c)],_0x9c6e10['shapeId'])??null:null,_0x2c257c=()=>{const _0x5686ed=_0x33639f;let _0x539364=_0x5a7b31[_0x5686ed(0x310)](),_0x18d401=_0x539364['length']===0x1?_0x539364[0x0]:null;return(_0x18d401==null?void 0x0:_0x18d401['drawingType'])===_0x190419[_0x5686ed(0x21d)]&&_0x18d401[_0x5686ed(0x1e3)]===_0x1e5d2e[_0x5686ed(0x1e3)]?{'unitId':_0x18d401[_0x5686ed(0x1e3)],'subUnitId':_0x18d401[_0x5686ed(0x26c)],'shapeId':_0x18d401[_0x5686ed(0x36c)]}:null;};this['disposeWithMe'](_0xf449a5(_0x1e5d2e,_0x14289c,{'changes$':_0x6568cf(_0x5a7b31[_0x33639f(0x19a)],_0x260f9e[_0x33639f(0x187)],_0x4bdfa7[_0x33639f(0x25a)]),'isActive':()=>{const _0x11954d=_0x33639f;var _0x45cddf;return((_0x45cddf=_0x485783[_0x11954d(0x2ea)]())==null?void 0x0:_0x45cddf[_0x11954d(0x3a3)]())===_0x1e5d2e['unitId']&&!_0x2e3143[_0x11954d(0x39b)](_0x29a73c)&&_0x5a7b31[_0x11954d(0x310)]()['some'](_0x48dc0f=>_0x48dc0f[_0x11954d(0x1e3)]===_0x1e5d2e[_0x11954d(0x1e3)]);},'getSelectedTarget':_0x2c257c,'getSource':()=>{let _0x1e7b09=_0x2c257c();return _0x1e7b09?_0x5218d0(_0x1e7b09):null;},'getTarget':_0x2c7040=>{const _0x336826=_0x33639f;let _0x147ff8=_0x1e5d2e[_0x336826(0x381)]['pick'](new _0x17a8a4(_0x2c7040['offsetX'],_0x2c7040[_0x336826(0x1d6)]));if(!(_0x147ff8 instanceof J))return null;let _0x5b2535={'unitId':_0x1e5d2e['unitId'],'subUnitId':_0x147ff8[_0x336826(0x26c)],'shapeId':_0x147ff8[_0x336826(0x275)]};return _0x80e973(_0x5b2535)?_0x5b2535:null;},'getShape':_0x5218d0,'update':(_0x2a49d4,_0x3196cb,_0x46277d)=>_0x5bedaa[_0x33639f(0x286)](K['id'],{..._0x2a49d4,'shapeData':_0x46277d,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x3196cb}})}));}};Da=X([Y(0x1,_0x229e82(_0x37b7ed)),Y(0x2,_0x229e82(_0x5c2303)),Y(0x3,_0x229e82($)),Y(0x4,_0x3deb35),Y(0x5,_0x304294),Y(0x6,_0x49d586),Y(0x7,_0x300477),Y(0x8,_0x1b156e)],Da);const Oa=_0x232df7(0x332);let ka=class extends _0x2bb0e8{constructor(_0x1245c1,_0x32cf59,_0x4711a4,_0x5c8957,_0x4dda52,_0x25431a){const _0x1d371a=_0x232df7;super(),this[_0x1d371a(0x220)]=_0x1245c1,this['_ribbonService']=_0x32cf59,this[_0x1d371a(0x11c)]=_0x4711a4,this['_univerInstanceService']=_0x5c8957,this[_0x1d371a(0x209)]=_0x4dda52,this['_shapeFloatingToolbarService']=_0x25431a,q(this,'_visible',!0x1),this['_menuManagerService'][_0x1d371a(0x36a)](Hi),this[_0x1d371a(0x2db)](_0x169987(this[_0x1d371a(0x11c)][_0x1d371a(0x19a)][_0x1d371a(0x268)](()=>this[_0x1d371a(0x2b8)]()))),this['_update']();}[_0x232df7(0x296)](){const _0xf2d82e=_0x232df7;this[_0xf2d82e(0x2ce)][_0xf2d82e(0x138)](!0x1,Oa),this[_0xf2d82e(0x269)](),super[_0xf2d82e(0x296)]();}['_update'](){const _0x50e049=_0x232df7;var _0xdcdd84;let _0x3df1b7=this[_0x50e049(0x11c)][_0x50e049(0x310)](),_0x9348ca=_0x3df1b7['length']===0x1?_0x3df1b7[0x0]:void 0x0;if((_0x9348ca==null?void 0x0:_0x9348ca[_0x50e049(0x183)])!==_0x190419[_0x50e049(0x21d)]||this[_0x50e049(0x2d4)]['getUnitType'](_0x9348ca[_0x50e049(0x1e3)])!==_0xe0c4a6[_0x50e049(0x277)]){this[_0x50e049(0x2ce)][_0x50e049(0x138)](!0x1,Oa),this[_0x50e049(0x269)]();return;}let _0x2d0c1a=(_0xdcdd84=this[_0x50e049(0x209)][_0x50e049(0x124)](_0x9348ca[_0x50e049(0x1e3)]))==null?void 0x0:_0xdcdd84['engine']['getCanvasElement'](),_0x26c0d3=_0x2a5096(_0x2d0c1a)===_0x50e049(0x211);this[_0x50e049(0x2ce)][_0x50e049(0x138)](_0x26c0d3,Oa),_0x26c0d3?this[_0x50e049(0x269)]():this[_0x50e049(0x327)]||(this[_0x50e049(0x327)]=!0x0,this['_ribbonService'][_0x50e049(0x395)](Br,{'activate':!0x0}));}['_hide'](){const _0x3d350f=_0x232df7;this[_0x3d350f(0x327)]&&(this[_0x3d350f(0x327)]=!0x1,this[_0x3d350f(0x1d4)][_0x3d350f(0x2d2)](Br),this['_ribbonService'][_0x3d350f(0x242)]([]));}};ka=X([Y(0x0,_0x4cc398),Y(0x1,_0x2fcf59),Y(0x2,_0x3deb35),Y(0x3,_0x304294),Y(0x4,_0x422c1e),Y(0x5,_0x229e82(_0xee6e88))],ka);let Aa=class extends _0x553e20{constructor(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2){super(_0x305ea9,_0x5e80d5,_0x553429,_0x5aed0c,_0x18b4ff,_0x2644fd,_0x3a45dc,_0xc8eba9,_0x3531e6,_0x2675c2,{'componentKey':Hr,'editorUnitId':Vr});}};Aa=X([Y(0x1,_0x229e82(_0x25b5fd)),Y(0x2,_0x229e82(_0x9982b4)),Y(0x3,_0x229e82(_0x5f1788)),Y(0x4,_0x1b156e),Y(0x5,_0x229e82(_0x3fd001)),Y(0x6,_0x229e82(_0x258cdf)),Y(0x7,_0x229e82(_0x2dfb69)),Y(0x8,_0x229e82(_0x312210)),Y(0x9,_0x229e82($))],Aa);let ja=class extends _0x1e07e2{constructor(_0x28d5a3,_0x59ad1d,_0x570d79,_0x35a569,_0x4a578e){const _0x9991c9=_0x232df7;super(_0x28d5a3,_0x59ad1d,{'editing$':_0x570d79[_0x9991c9(0x187)],'resolve':_0x51da98=>{const _0x30de6f=_0x9991c9;var _0x2b45bd,_0x4a99f3,_0x3dc936;let _0x2f25ef=new _0x17a8a4(_0x51da98[_0x30de6f(0x26f)],_0x51da98[_0x30de6f(0x1d6)]),_0x39f15a=((_0x2b45bd=_0x28d5a3[_0x30de6f(0x381)][_0x30de6f(0x1d3)](_0x2f25ef))==null?void 0x0:_0x2b45bd[_0x30de6f(0x257)](_0x2f25ef))??_0x2f25ef,_0x4eae45=_0x33a154(_0x28d5a3['scene'][_0x30de6f(0x10a)](_0x2f25ef)??null,_0x39f15a);if(!(_0x4eae45 instanceof J))return null;let _0x58a2b7=_0x4eae45[_0x30de6f(0x1c1)](_0x39f15a);if(!_0x58a2b7)return null;let _0x66bb9f=_0x4eae45,_0xceab={'componentKey':_0x5c9174[_0x30de6f(0x216)],'direction':_0x30de6f(0x20c),'offset':[0x0,0xa],'onClickOutside':()=>_0x59ad1d[_0x30de6f(0x35f)]()};return{'object':_0x4eae45,'info':{..._0x58a2b7,'unitId':_0x4eae45[_0x30de6f(0x1e3)],'subUnitId':_0x4eae45[_0x30de6f(0x26c)],'shapeKey':_0x4eae45[_0x30de6f(0x283)],'readonly':!0x0,'copyable':((_0x4a99f3=_0x4a578e[_0x30de6f(0x31b)](new _0x429dc6(_0x4eae45[_0x30de6f(0x1e3)])['id']))==null?void 0x0:_0x4a99f3[_0x30de6f(0x30f)])!==!0x1&&((_0x3dc936=_0x4a578e['getPermissionPoint'](new _0x102e28(_0x4eae45[_0x30de6f(0x1e3)],_0x4eae45[_0x30de6f(0x26c)])['id']))==null?void 0x0:_0x3dc936['value'])!==!0x1},'attachPopup':()=>_0x35a569['attachPopupToObject'](_0x66bb9f,_0xceab)};}}),this[_0x9991c9(0x2db)](_0x28d5a3['unit'][_0x9991c9(0xe1)]['subscribe'](()=>this[_0x9991c9(0x2b3)]()));}};ja=X([Y(0x1,_0x229e82(_0x258cdf)),Y(0x2,_0x229e82($)),Y(0x3,_0x229e82(_0x5969c8)),Y(0x4,_0x300477)],ja);let Ma=class extends _0x2bb0e8{constructor(_0x40611b,_0xced429,_0x5f23bd,_0x27542a,_0x45b825,_0x1e5f9c,_0x595a8,_0x2ea61b,_0x3f590a,_0x29eda5,_0x296905){const _0x481aef=_0x232df7;super(),this[_0x481aef(0x2d4)]=_0x40611b,this[_0x481aef(0x210)]=_0xced429,this[_0x481aef(0x220)]=_0x5f23bd,this[_0x481aef(0x3aa)]=_0x27542a,this[_0x481aef(0x184)]=_0x45b825,this['_commandService']=_0x1e5f9c,this[_0x481aef(0x11c)]=_0x595a8,this['_sheetCanvasPopManagerService']=_0x2ea61b,this[_0x481aef(0x2b2)]=_0x3f590a,this[_0x481aef(0x209)]=_0x29eda5,this[_0x481aef(0x101)]=_0x296905,q(this,_0x481aef(0x15a),null),q(this,_0x481aef(0x18a),null),q(this,_0x481aef(0x129),!0x1),q(this,_0x481aef(0x2d3),0x0),q(this,_0x481aef(0x128),null),q(this,_0x481aef(0x21e),[]),this[_0x481aef(0x208)](),this[_0x481aef(0x2db)](this[_0x481aef(0x2d4)][_0x481aef(0x2d0)](_0xe0c4a6[_0x481aef(0x277)])[_0x481aef(0x268)](_0x90cea6=>{const _0x222721=_0x481aef;if(!_0x90cea6){var _0x47773a;(_0x47773a=this[_0x222721(0x15a)])==null||_0x47773a[_0x222721(0x296)]();}})),this[_0x481aef(0x217)](),this[_0x481aef(0x179)](),this['disposeWithMe'](this[_0x481aef(0x101)][_0x481aef(0x187)][_0x481aef(0x268)](_0x180a9f=>{const _0x7016a4=_0x481aef;_0x180a9f&&this[_0x7016a4(0x2ec)]();}));}[_0x232df7(0x208)](){const _0x379544=_0x232df7;this[_0x379544(0x220)][_0x379544(0x36a)](Wi);}[_0x232df7(0x179)](){const _0x241b52=_0x232df7;this[_0x241b52(0x128)]||=this['disposeWithMe'](_0xd29261(this[_0x241b52(0x209)],_0xe0c4a6[_0x241b52(0x277)],_0x2a4e8b=>this['_popupMenuListener'](_0x2a4e8b)));}[_0x232df7(0xf8)](_0x12a882,_0x1ee493,_0x44b997){const _0x5bc447=_0x232df7;let _0x35a17f=this[_0x5bc447(0x3aa)][_0x5bc447(0x280)](_0x12a882,_0x1ee493,_0x44b997),_0x754682=this[_0x5bc447(0x3aa)][_0x5bc447(0x329)](_0x12a882,_0x1ee493,_0x44b997);return _0x35a17f!==void 0x0&&_0x754682!==void 0x0?{'shapeData':_0x754682,'shapeId':_0x44b997,'shapeType':_0x35a17f,'unitId':_0x12a882,'subUnitId':_0x1ee493,'version':this['_shapeEditPanelVersion'],'disableShapeOption':!0x1}:null;}[_0x232df7(0x2ec)](){const _0x59c0ce=_0x232df7;this[_0x59c0ce(0x21e)][_0x59c0ce(0x385)](_0x20bd56=>_0x20bd56[_0x59c0ce(0x296)]()),this['_disposePopups'][_0x59c0ce(0x333)]=0x0;}[_0x232df7(0x228)](_0x20f1c0){const _0x19e41d=_0x232df7;let _0x58041e=new _0x498b31();return _0x58041e[_0x19e41d(0x19c)](_0x20f1c0['createControl$'][_0x19e41d(0x268)](()=>{const _0x43e22a=_0x19e41d;let _0x44ae8b=_0x20f1c0[_0x43e22a(0x2ca)]();if(this[_0x43e22a(0x2ec)](),this['_isOpenedShapeEditPanel']||_0x44ae8b[_0x43e22a(0x292)]>0x1)return;let _0x589f7e=_0x44ae8b[_0x43e22a(0x212)]()[_0x43e22a(0x360)]()['value'];if(!_0x589f7e)return;let _0x39a9d5=this[_0x43e22a(0x11c)]['getDrawingOKey'](_0x589f7e[_0x43e22a(0x283)]);if(!_0x39a9d5||_0x39a9d5[_0x43e22a(0x183)]!==_0x190419['DRAWING_SHAPE'])return;let {unitId:_0x2df96d,subUnitId:_0x57418b,drawingId:_0x51d64d,drawingType:_0x22e219}=_0x39a9d5,_0x1771e6=this[_0x43e22a(0xf8)](_0x2df96d,_0x57418b,_0x51d64d);if(!_0x1771e6)return;this[_0x43e22a(0x2b2)][_0x43e22a(0x152)](_0x20a63c,!0x0);let _0x4cbd0e=this[_0x43e22a(0x209)][_0x43e22a(0x124)](_0x2df96d),_0x42a5bd=((_0x4cbd0e==null?void 0x0:_0x4cbd0e[_0x43e22a(0x24f)])===!0x1?_0x4cbd0e[_0x43e22a(0x18c)](_0x5969c8):this[_0x43e22a(0x1a1)])[_0x43e22a(0x206)](_0x589f7e,{'componentKey':zr,'direction':_0x43e22a(0x31c),'offset':[0x0,_0x54a031],'extraProps':{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d,'drawingType':_0x22e219,'shapeType':_0x1771e6[_0x43e22a(0x15b)],'shapeData':_0x1771e6[_0x43e22a(0x1b6)]}});this[_0x43e22a(0x21e)]['push'](this[_0x43e22a(0x2db)](_0x42a5bd)),this['_drawingManagerService'][_0x43e22a(0x310)]()['find'](_0x404750=>_0x404750[_0x43e22a(0x1e3)]===_0x2df96d&&_0x404750[_0x43e22a(0x26c)]===_0x57418b&&_0x404750[_0x43e22a(0x36c)]===_0x51d64d)||this[_0x43e22a(0x11c)][_0x43e22a(0xf5)]([{'unitId':_0x2df96d,'subUnitId':_0x57418b,'drawingId':_0x51d64d}]);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x1cd)]['subscribe'](()=>{const _0x36441c=_0x19e41d;this[_0x36441c(0x2ec)](),this[_0x36441c(0x2b2)][_0x36441c(0x152)](_0x20a63c,!0x1),this[_0x36441c(0x11c)][_0x36441c(0xf5)](null);})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0[_0x19e41d(0x2fd)][_0x19e41d(0x268)](()=>{this['_clearPopups']();})),_0x58041e[_0x19e41d(0x19c)](_0x20f1c0['changeStart$']['subscribe'](()=>{this['_clearPopups']();})),_0x169987(()=>{const _0x209d91=_0x19e41d;_0x58041e['dispose'](),this[_0x209d91(0x2ec)]();});}['_registerOperations'](){const _0x14e33d=_0x232df7;this['disposeWithMe'](this[_0x14e33d(0x232)][_0x14e33d(0x224)](_0x5670ea=>{const _0x3c00b7=_0x14e33d;if(_0x5670ea['id']===Wr['id']){let {unitId:_0x53538b,subUnitId:_0x252cef,drawingId:_0x17b4e5}=_0x5670ea[_0x3c00b7(0x1aa)];this[_0x3c00b7(0x2d3)]+=0x1,this[_0x3c00b7(0x18a)]=this[_0x3c00b7(0xf8)](_0x53538b,_0x252cef,_0x17b4e5),this[_0x3c00b7(0x2ec)](),this[_0x3c00b7(0x36b)]();}if(_0x5670ea['id']===ya['id']&&(this['_activeShapeInfo']=null,this[_0x3c00b7(0x188)]()),_0x5670ea['id']===_0x4af43a['id']){let {unitId:_0x5c6779,subUnitId:_0x5dbecf,shapeId:_0x3a9de3}=_0x5670ea[_0x3c00b7(0x1aa)];if(this['_activeShapeInfo']&&this['_activeShapeInfo'][_0x3c00b7(0x275)]===_0x3a9de3){let _0x3dfa40=this[_0x3c00b7(0xf8)](_0x5c6779,_0x5dbecf,_0x3a9de3);_0x3dfa40&&(this['_shapeEditPanelVersion']+=0x1,_0x3dfa40['version']=this[_0x3c00b7(0x2d3)],this[_0x3c00b7(0x18a)]=_0x3dfa40,this[_0x3c00b7(0x129)]&&this[_0x3c00b7(0x36b)]());}}})),this['disposeWithMe'](this[_0x14e33d(0x11c)][_0x14e33d(0x19a)][_0x14e33d(0x268)](_0x18a381=>{const _0x397641=_0x14e33d;if(this[_0x397641(0x129)]===!0x1)return;if(_0x18a381[_0x397641(0x333)]===0x0){this[_0x397641(0x18a)]=null,this[_0x397641(0x188)]();return;}if(_0x18a381[_0x397641(0x333)]===0x1&&_0x18a381[0x0][_0x397641(0x183)]===_0x190419[_0x397641(0x21d)]&&(this[_0x397641(0x2d3)]+=0x1,this['_activeShapeInfo']=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)])){this[_0x397641(0x36b)]();return;}let _0x57c6f6=_0x18a381[_0x397641(0x34b)](_0x4a764a=>_0x4a764a[_0x397641(0x183)]===_0x190419['DRAWING_SHAPE']);if(_0x18a381[_0x397641(0x333)]>0x1&&_0x57c6f6[_0x397641(0x333)]===_0x18a381[_0x397641(0x333)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0][_0x397641(0x26c)],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x36b)]();return;}}else{if(this[_0x397641(0x2d3)]+=0x1,this[_0x397641(0x18a)]=this[_0x397641(0xf8)](_0x18a381[0x0][_0x397641(0x1e3)],_0x18a381[0x0]['subUnitId'],_0x18a381[0x0][_0x397641(0x36c)]),this[_0x397641(0x18a)]){this[_0x397641(0x18a)][_0x397641(0x31d)]=!0x0,this['_openShapeEditPanel']();return;}}this['_closeShapeEditPanel']();}));}[_0x232df7(0x36b)](){const _0x37a33e=_0x232df7;this['_activeShapeInfo']&&(this[_0x37a33e(0x15a)]=this[_0x37a33e(0x210)][_0x37a33e(0x22b)]({'id':Lr,'header':{'title':this['_localeService']['t']('sheets-shape-ui.formatShape')},'width':0x184,'children':{'label':Lr,...this['_activeShapeInfo']},'onClose':()=>{const _0xffced3=_0x37a33e;this[_0xffced3(0x11c)][_0xffced3(0xf5)](null),this[_0xffced3(0x2b2)]['setContextValue'](_0x20a63c,!0x1),this[_0xffced3(0x15a)]=null;}}),this[_0x37a33e(0x129)]=!0x0);}['_closeShapeEditPanel'](){const _0xd30177=_0x232df7;this[_0xd30177(0x129)]=!0x1,this['_sidebarService']['close'](Lr),this[_0xd30177(0x15a)]=null,this['_contextService']['setContextValue'](_0x20a63c,!0x1),this[_0xd30177(0x11c)][_0xd30177(0xf5)](null);}};Ma=X([Y(0x0,_0x304294),Y(0x1,_0x229e82(_0x5c788d)),Y(0x2,_0x4cc398),Y(0x3,_0x229e82(_0x5c2303)),Y(0x4,_0x229e82(_0x16b0b7)),Y(0x5,_0x1b156e),Y(0x6,_0x3deb35),Y(0x7,_0x229e82(_0x5969c8)),Y(0x8,_0x49d586),Y(0x9,_0x422c1e),Y(0xa,_0x229e82($))],Ma);let Na=class extends _0x407af{constructor(_0x54b4b3=Yi,_0x14aaad,_0x34a892,_0x3f3603,_0x47cd19){const _0x57a90c=_0x232df7;super(),this['_config']=_0x54b4b3,this['_injector']=_0x14aaad,this['_commandService']=_0x34a892,this['_configService']=_0x3f3603,this[_0x57a90c(0x209)]=_0x47cd19;let {..._0x23b3ed}=_0x32987f({},Yi,this[_0x57a90c(0x2b5)]);this['_configService'][_0x57a90c(0x103)](Ji,_0x23b3ed),this[_0x57a90c(0x26a)]();}[_0x232df7(0x311)](){const _0x5715b9=_0x232df7;this[_0x5715b9(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5715b9(0x2ed)],[Aa]),_0x3ece4a(this[_0x5715b9(0x1e1)],[[Ma],[ca],[Z],[ha]]);}[_0x232df7(0x126)](){const _0x1bf48c=_0x232df7;this[_0x1bf48c(0x1e1)]['get'](Ma)[_0x1bf48c(0x179)]();}[_0x232df7(0x1c9)](){const _0x5959e=_0x232df7;[[da],[Pr],[fa]][_0x5959e(0x385)](_0x37eda8=>this['_injector'][_0x5959e(0x19c)](_0x37eda8)),_0x3ece4a(this[_0x5959e(0x1e1)],[[fa],[Pr]]),this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[da]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[Xi]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[ma]),this[_0x5959e(0x209)]['registerRenderModule'](_0xe0c4a6[_0x5959e(0x277)],[na]),this[_0x5959e(0x2db)](this['_renderManagerService'][_0x5959e(0x3a8)](_0xe0c4a6['UNIVER_SHEET'],[ja])),this['disposeWithMe'](this[_0x5959e(0x209)][_0x5959e(0x3a8)](_0xe0c4a6[_0x5959e(0x277)],[Da]));}[_0x232df7(0x1b7)](){const _0x53d978=_0x232df7;this[_0x53d978(0x1e1)][_0x53d978(0x19c)]([Ea]),this[_0x53d978(0x1e1)][_0x53d978(0x14a)](Ea);let _0x213c4f=this[_0x53d978(0x1e1)];[[Ma],[ca],[Z],[ha],[_a],[$],[sa],[Q],[ga],[ka]]['forEach'](_0x33337b=>_0x213c4f[_0x53d978(0x19c)](_0x33337b)),_0x3ece4a(this['_injector'],[[Ma],[ca],[Z],[_a],[$],[sa],[Q],[ga],[ka]]);}[_0x232df7(0x26a)](){const _0x28aef7=_0x232df7;[Ir,K,ya,Wr,Ur,Fr,Kr,qr][_0x28aef7(0x385)](_0x5d5ec8=>this[_0x28aef7(0x2db)](this['_commandService'][_0x28aef7(0x204)](_0x5d5ec8)));}};q(Na,_0x232df7(0xf1),_0xe0c4a6['UNIVER_SHEET']),q(Na,_0x232df7(0x18f),_0x232df7(0x312)),q(Na,_0x232df7(0xfa),Gi),q(Na,_0x232df7(0x2b6),Ki),Na=X([_0x18c7c6(_0x42123a,_0x47964d,_0x2036ef,_0x106471,_0x524cd0,_0x7f5329,_0xc91a83,_0x434230,_0x4831fe,_0x372423,_0x1fa068,_0x296a09,_0x52023d),Y(0x1,_0x229e82(_0x3fb460)),Y(0x2,_0x1b156e),Y(0x3,_0x40ca43),Y(0x4,_0x422c1e)],Na);export{Hi as SheetsShapeUIContextualRibbonSchema,Wi as SheetsShapeUIMenuSchema,va as UniverSheetsShapeMobileUIPlugin,Na as UniverSheetsShapeUIPlugin};
|